@carbon/charts-vue 0.41.79 → 0.41.80

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.
@@ -1,2 +1,2 @@
1
- (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["charts-vue"]=e():t["charts-vue"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="1c25")}({"01ff":function(t,e,n){"use strict";(function(t){var r=n("92ae"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i,s=a&&r["a"].process,u=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(e){}}();e["a"]=u}).call(this,n("7326")(t))},"083f":function(t,e,n){var r=n("7526");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"0c47":function(t,e,n){var r=n("c91c"),i=n("b17e");t.exports=Object.keys||function(t){return r(t,i)}},"0e39":function(t,e,n){var r=n("f1a7"),i=n("37d1"),o=n("332c"),a=n("802e"),s=o("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),r(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},"0e93":function(t,e){t.exports=!1},"130d":function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"157c":function(t,e,n){var r=n("7526");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"185a":function(t,e,n){var r=n("d4cb"),i=n("e129"),o=n("9618"),a=n("378c"),s=n("083f"),u=n("f1a7"),c=n("7c3f"),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=a(t),e=s(e,!0),c)try{return l(t,e)}catch(n){}if(u(t,e))return o(!i.f.call(t,e),t[e])}},"1c25":function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"Chart",(function(){return s})),n.d(r,"Model",(function(){return u})),n.d(r,"Toolbar",(function(){return c})),n.d(r,"ZoomBar",(function(){return l})),n.d(r,"ZoomDomain",(function(){return h})),n.d(r,"CanvasZoom",(function(){return f})),n.d(r,"Axis",(function(){return p})),n.d(r,"Area",(function(){return d})),n.d(r,"WordCloud",(function(){return v})),n.d(r,"Pie",(function(){return g})),n.d(r,"Gauge",(function(){return m})),n.d(r,"Bar",(function(){return y})),n.d(r,"Boxplot",(function(){return _})),n.d(r,"Scatter",(function(){return b})),n.d(r,"Line",(function(){return O})),n.d(r,"Radar",(function(){return x})),n.d(r,"Treemap",(function(){return w})),n.d(r,"Tooltip",(function(){return E})),n.d(r,"Threshold",(function(){return S})),n.d(r,"Legend",(function(){return T})),n.d(r,"CirclePack",(function(){return M}));var i,o={};(n.r(o),n.d(o,"grid",(function(){return pd})),n.d(o,"ruler",(function(){return dd})),n.d(o,"baseTooltip",(function(){return vd})),n.d(o,"timeScale",(function(){return md})),n.d(o,"options",(function(){return Ud})),n.d(o,"area",(function(){return rt})),n.d(o,"axis",(function(){return it})),n.d(o,"canvasZoomSettings",(function(){return ot})),n.d(o,"circlePack",(function(){return at})),n.d(o,"color",(function(){return st})),n.d(o,"boxplot",(function(){return ut})),n.d(o,"legend",(function(){return ct})),n.d(o,"lines",(function(){return lt})),n.d(o,"meter",(function(){return ht})),n.d(o,"pie",(function(){return ft})),n.d(o,"radar",(function(){return pt})),n.d(o,"spacers",(function(){return dt})),n.d(o,"tooltips",(function(){return vt})),n.d(o,"transitions",(function(){return gt})),n.d(o,"toolbar",(function(){return mt})),n.d(o,"zoomBar",(function(){return yt})),n.d(o,"defaultLegendAdditionalItems",(function(){return _t})),"undefined"!==typeof window)&&(n("4141"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1]));n("d6de"),n("8d0f"),n("68b8"),n("8d0d"),n("9531"),n("868d"),n("ef1f"),n("c78b"),n("f3b8"),n("918c");var a,s,u,c,l,h,f,p,d,v,g,m,y,_,b,O,x,w,E,S,T,M,C=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-area-chart"})},A=[];(function(t){t["GRAPHICS_DOCUMENT"]="graphics-document",t["GRAPHICS_OBJECT"]="graphics-object",t["GRAPHICS_SYMBOL"]="graphics-symbol",t["GROUP"]="group",t["DOCUMENT"]="document",t["CHECKBOX"]="checkbox",t["BUTTON"]="button",t["MENU"]="menu",t["MENU_ITEM"]="menuitem",t["IMG"]="img"})(a||(a={})),function(t){t["RENDER_FINISHED"]="render-finished",t["RESIZE"]="chart-resize",t["MOUSEOVER"]="chart-mouseover",t["MOUSEOUT"]="chart-mouseout"}(s||(s={})),function(t){t["UPDATE"]="model-update"}(u||(u={})),function(t){t["SHOW_OVERFLOW_MENU"]="show-toolbar-overflow-menu",t["HIDE_OVERFLOW_MENU"]="hide-toolbar-overflow-menu"}(c||(c={})),function(t){t["UPDATE"]="zoom-bar-update",t["SELECTION_START"]="zoom-bar-selection-start",t["SELECTION_IN_PROGRESS"]="zoom-bar-selection-in-progress",t["SELECTION_END"]="zoom-bar-selection-end"}(l||(l={})),function(t){t["CHANGE"]="zoom-domain-change"}(h||(h={})),function(t){t["CANVAS_ZOOM_IN"]="canvas-zoom-in",t["CANVAS_ZOOM_OUT"]="canvas-zoom-out"}(f||(f={})),function(t){t["LABEL_MOUSEOVER"]="axis-label-mouseover",t["LABEL_MOUSEMOVE"]="axis-label-mousemove",t["LABEL_CLICK"]="axis-label-click",t["LABEL_MOUSEOUT"]="axis-label-mouseout"}(p||(p={})),function(t){t["AREA_MOUSEOVER"]="area-mouseover",t["AREA_MOUSEMOVE"]="area-mousemove",t["AREA_CLICK"]="area-click",t["AREA_MOUSEOUT"]="area-mouseout"}(d||(d={})),function(t){t["WORD_MOUSEOVER"]="wordcloud-word-mouseover",t["WORD_MOUSEMOVE"]="wordcloud-word-mousemove",t["WORD_CLICK"]="wordcloud-word-click",t["WORD_MOUSEOUT"]="wordcloud-word-mouseout"}(v||(v={})),function(t){t["SLICE_MOUSEOVER"]="pie-slice-mouseover",t["SLICE_MOUSEMOVE"]="pie-slice-mousemove",t["SLICE_CLICK"]="pie-slice-click",t["SLICE_MOUSEOUT"]="pie-slice-mouseout"}(g||(g={})),function(t){t["ARC_MOUSEOVER"]="gauge-arc-mouseover",t["ARC_MOUSEMOVE"]="gauge-arc-mousemove",t["ARC_CLICK"]="gauge-arc-click",t["ARC_MOUSEOUT"]="gauge-arc-mouseout"}(m||(m={})),function(t){t["BAR_MOUSEOVER"]="bar-mouseover",t["BAR_MOUSEMOVE"]="bar-mousemove",t["BAR_CLICK"]="bar-click",t["BAR_MOUSEOUT"]="bar-mouseout"}(y||(y={})),function(t){t["BOX_MOUSEOVER"]="box-mouseover",t["BOX_MOUSEMOVE"]="box-mousemove",t["BOX_CLICK"]="box-click",t["BOX_MOUSEOUT"]="box-mouseout",t["OUTLIER_MOUSEOVER"]="outlier-mouseover",t["OUTLIER_MOUSEMOVE"]="outlier-mousemove",t["OUTLIER_CLICK"]="outlier-click",t["OUTLIER_MOUSEOUT"]="outlier-mouseout"}(_||(_={})),function(t){t["SCATTER_MOUSEOVER"]="scatter-mouseover",t["SCATTER_MOUSEMOVE"]="scatter-mousemove",t["SCATTER_CLICK"]="scatter-click",t["SCATTER_MOUSEOUT"]="scatter-mouseout"}(b||(b={})),function(t){t["POINT_MOUSEOVER"]="scatter-mouseover",t["POINT_MOUSEMOVE"]="scatter-mousemove",t["POINT_CLICK"]="scatter-click",t["POINT_MOUSEOUT"]="scatter-mouseout"}(O||(O={})),function(t){t["X_AXIS_MOUSEOVER"]="radar-x-axis-mouseover",t["X_AXIS_MOUSEMOVE"]="radar-x-axis-mousemove",t["X_AXIS_CLICK"]="radar-x-axis-click",t["X_AXIS_MOUSEOUT"]="radar-x-axis-mouseout"}(x||(x={})),function(t){t["LEAF_MOUSEOVER"]="leaf-mouseover",t["LEAF_MOUSEMOVE"]="leaf-mousemove",t["LEAF_CLICK"]="leaf-click",t["LEAF_MOUSEOUT"]="leaf-mouseout"}(w||(w={})),function(t){t["SHOW"]="show-tooltip",t["MOVE"]="move-tooltip",t["HIDE"]="hide-tooltip"}(E||(E={})),function(t){t["SHOW"]="show-threshold",t["HIDE"]="hide-threshold"}(S||(S={})),function(t){t["ITEM_HOVER"]="legend-item-onhover",t["ITEM_CLICK"]="legend-item-onclick",t["ITEM_MOUSEOUT"]="legend-item-onmouseout",t["ITEMS_UPDATE"]="legend-items-update"}(T||(T={})),function(t){t["CIRCLE_MOUSEOVER"]="circle-leaf-mouseover",t["CIRCLE_CLICK"]="circle-leaf-click",t["CIRCLE_MOUSEOUT"]="circle-leaf-mouseout",t["CIRCLE_MOUSEMOVE"]="circle-leaf-mousemove"}(M||(M={}));var P,k,L,D,R,I,N,j,V,B,G,U,H,z,F,W,q,Y,Z,X,K,$,Q,J,tt,et=r;function nt(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}(function(t){t["DEFAULT"]="default",t["G100"]="g100",t["G90"]="g90",t["G10"]="g10"})(P||(P={})),function(t){t["FILL"]="fill",t["STROKE"]="stroke",t["TOOLTIP"]="tooltip"}(k||(k={})),function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"}(L||(L={})),function(t){t["GRAPH_VIEW"]="graph_view",t["SLIDER_VIEW"]="slider_view"}(D||(D={})),function(t){t["END_LINE"]="end_line",t["MID_LINE"]="mid_line",t["FRONT_LINE"]="front_line",t["NONE"]="none"}(R||(R={})),function(t){t["VERTICAL"]="vertical",t["HORIZONTAL"]="horizontal"}(I||(I={})),function(t){t["TIME"]="time",t["LINEAR"]="linear",t["LOG"]="log",t["LABELS"]="labels",t["LABELS_RATIO"]="labels-ratio"}(N||(N={})),function(t){t["RIGHT"]="right",t["LEFT"]="left",t["TOP"]="top",t["BOTTOM"]="bottom"}(j||(j={})),function(t){t["LEFT"]="left",t["CENTER"]="center",t["RIGHT"]="right"}(V||(V={})),function(t){t["HORIZONTAL"]="horizontal",t["VERTICAL"]="vertical"}(B||(B={})),function(t){t["ROW"]="row",t["COLUMN"]="column",t["ROW_REVERSE"]="row-reverse",t["COLUMN_REVERSE"]="column-reverse"}(G||(G={})),function(t){t["FIXED"]="fixed",t["PREFERRED"]="preferred",t["STRETCH"]="stretch"}(U||(U={})),function(t){t["LEFT"]="left",t["RIGHT"]="right"}(H||(H={})),function(t){t["GRID"]="grid",t["VERT_OR_HORIZ"]="vertOrHoriz",t["PIE"]="pie",t["DONUT"]="donut"}(z||(z={})),function(t){t["START"]="start",t["MIDDLE"]="middle",t["END"]="end"}(F||(F={})),function(t){t["BASELINE"]="baseline",t["MIDDLE"]="middle",t["HANGING"]="hanging"}(W||(W={})),function(t){t["SEMI"]="semi",t["FULL"]="full"}(q||(q={})),function(t){t["UP"]="up",t["DOWN"]="down"}(Y||(Y={})),function(t){t["SUCCESS"]="success",t["WARNING"]="warning",t["DANGER"]="danger"}(Z||(Z={})),function(t){t["ALWAYS"]="always",t["AUTO"]="auto",t["NEVER"]="never"}(X||(X={})),function(t){t["SCATTER"]="scatter",t["LINE"]="line",t["SIMPLE_BAR"]="simple-bar",t["STACKED_BAR"]="stacked-bar",t["GROUPED_BAR"]="grouped-bar",t["AREA"]="area",t["STACKED_AREA"]="stacked-area"}(K||(K={})),function(t){t["ZOOM_IN"]="Zoom in",t["ZOOM_OUT"]="Zoom out",t["RESET_ZOOM"]="Reset zoom"}($||($={})),function(t){t["LEFT"]="left",t["RIGHT"]="right"}(Q||(Q={})),function(t){t["CHECKBOX"]="checkbox",t["RADIUS"]="radius",t["AREA"]="area",t["SIZE"]="size",t["LINE"]="line",t["QUARTILE"]="quartile",t["ZOOM"]="zoom"}(J||(J={}));var rt={opacity:{unselected:.05,selected:.4}},it={ticks:{number:7,rotateIfSmallerThan:30,verticalSpaceRatio:2.5,horizontalSpaceRatio:3.5},ratio:{reference:"value",compareTo:"marker"},paddingRatio:.1},ot={duration:1e3,ease:nt,zoomLevel:3},at={circles:{fillOpacity:.3,hover:{stroke:"#FFF"}},padding:{mainGroup:4,children:2},hierarchyLevel:2},st={pairingOptions:{"1-color":4,"2-color":5,"3-color":5,"4-color":3,"5-color":2,"14-color":1}},ut={circle:{radius:4,opacity:{hovered:1,default:.3}},box:{opacity:{hovered:.5,default:.3}},strokeWidth:{default:1,thicker:2}},ct={items:{status:{ACTIVE:1,DISABLED:0},horizontalSpace:12,verticalSpace:24,textYOffset:8,spaceAfter:4},checkbox:{radius:6.5},radius:{iconData:[{cx:7,cy:7,r:6.5},{cx:7,cy:10,r:3.5}],fill:null,stroke:"#8c8c8c"},line:{yPosition:6,width:24,strokeWidth:1.4,fill:null,stroke:"#999999"},area:{width:24,height:13,fill:"#6f6f6f",stroke:null},size:{iconData:[{width:23,height:12},{width:13,height:6}],fill:null,stroke:"#8D8D8D"},quartile:{iconData:[{x:0,y:0,width:24,height:13},{x:11,y:4,width:1,height:4}]},zoom:{iconData:[{x:0,y:0,width:12,height:12}],color:"#8D8D8D"}},lt={opacity:{unselected:.3,selected:1},weight:{selected:2,unselected:1}},ht={statusBar:{paddingRight:5},status:{indicatorSize:16,paddingLeft:15}},ft={radiusOffset:-15,innerRadius:2,padAngle:.007,hoverArc:{outerRadiusOffset:3},xOffset:30,yOffset:20,yOffsetCallout:10,callout:{minSliceDegree:5,offsetX:15,offsetY:12,horizontalLineLength:8,textMargin:2}},pt={opacity:{unselected:.1,selected:.3},xLabelPadding:10,yLabelPadding:8,yTicksNumber:4,minRange:10,xAxisRectHeight:50,dotsRadius:5},dt={default:{size:24}},vt={horizontalOffset:10},gt={default:{duration:300},pie_slice_mouseover:{duration:100},pie_chart_titles:{duration:375},graph_element_mouseover_fill_update:{duration:100},graph_element_mouseout_fill_update:{duration:100}},mt={buttonSize:32,iconSize:20,height:32,spacerHeight:10,iconPadding:6},yt={height:(tt={},tt[D.GRAPH_VIEW]=32,tt[D.SLIDER_VIEW]=10,tt),spacerHeight:8,handleWidth:5,handleBarWidth:1,handleBarHeight:12},_t=[{type:J.RADIUS,name:"Radius"},{type:J.AREA,name:"Poor area"},{type:J.AREA,name:"Satisfactory area"},{type:J.AREA,name:"Great area"},{type:J.QUARTILE,name:"Quartiles"}];function bt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var Ot=bt,xt=n("7f0d"),wt=function(){return xt["a"].Date.now()},Et=wt,St=/\s/;function Tt(t){var e=t.length;while(e--&&St.test(t.charAt(e)));return e}var Mt=Tt,Ct=/^\s+/;function At(t){return t?t.slice(0,Mt(t)+1).replace(Ct,""):t}var Pt=At,kt=xt["a"].Symbol,Lt=kt,Dt=Object.prototype,Rt=Dt.hasOwnProperty,It=Dt.toString,Nt=Lt?Lt.toStringTag:void 0;function jt(t){var e=Rt.call(t,Nt),n=t[Nt];try{t[Nt]=void 0;var r=!0}catch(o){}var i=It.call(t);return r&&(e?t[Nt]=n:delete t[Nt]),i}var Vt=jt,Bt=Object.prototype,Gt=Bt.toString;function Ut(t){return Gt.call(t)}var Ht=Ut,zt="[object Null]",Ft="[object Undefined]",Wt=Lt?Lt.toStringTag:void 0;function qt(t){return null==t?void 0===t?Ft:zt:Wt&&Wt in Object(t)?Vt(t):Ht(t)}var Yt=qt;function Zt(t){return null!=t&&"object"==typeof t}var Xt=Zt,Kt="[object Symbol]";function $t(t){return"symbol"==typeof t||Xt(t)&&Yt(t)==Kt}var Qt=$t,Jt=NaN,te=/^[-+]0x[0-9a-f]+$/i,ee=/^0b[01]+$/i,ne=/^0o[0-7]+$/i,re=parseInt;function ie(t){if("number"==typeof t)return t;if(Qt(t))return Jt;if(Ot(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ot(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Pt(t);var n=ee.test(t);return n||ne.test(t)?re(t.slice(2),n?2:8):te.test(t)?Jt:+t}var oe=ie,ae="Expected a function",se=Math.max,ue=Math.min;function ce(t,e,n){var r,i,o,a,s,u,c=0,l=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError(ae);function p(e){var n=r,o=i;return r=i=void 0,c=e,a=t.apply(o,n),a}function d(t){return c=t,s=setTimeout(m,e),l?p(t):a}function v(t){var n=t-u,r=t-c,i=e-n;return h?ue(i,o-r):i}function g(t){var n=t-u,r=t-c;return void 0===u||n>=e||n<0||h&&r>=o}function m(){var t=Et();if(g(t))return y(t);s=setTimeout(m,v(t))}function y(t){return s=void 0,f&&r?p(t):(r=i=void 0,a)}function _(){void 0!==s&&clearTimeout(s),c=0,r=u=i=s=void 0}function b(){return void 0===s?a:y(Et())}function O(){var t=Et(),n=g(t);if(r=arguments,i=this,u=t,n){if(void 0===s)return d(u);if(h)return clearTimeout(s),s=setTimeout(m,e),p(u)}return void 0===s&&(s=setTimeout(m,e)),a}return e=oe(e)||0,Ot(n)&&(l=!!n.leading,h="maxWait"in n,o=h?se(oe(n.maxWait)||0,e):o,f="trailing"in n?!!n.trailing:f),O.cancel=_,O.flush=b,O}var le=ce;function he(){this.__data__=[],this.size=0}var fe=he;function pe(t,e){return t===e||t!==t&&e!==e}var de=pe;function ve(t,e){var n=t.length;while(n--)if(de(t[n][0],e))return n;return-1}var ge=ve,me=Array.prototype,ye=me.splice;function _e(t){var e=this.__data__,n=ge(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():ye.call(e,n,1),--this.size,!0}var be=_e;function Oe(t){var e=this.__data__,n=ge(e,t);return n<0?void 0:e[n][1]}var xe=Oe;function we(t){return ge(this.__data__,t)>-1}var Ee=we;function Se(t,e){var n=this.__data__,r=ge(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var Te=Se;function Me(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}Me.prototype.clear=fe,Me.prototype["delete"]=be,Me.prototype.get=xe,Me.prototype.has=Ee,Me.prototype.set=Te;var Ce=Me;function Ae(){this.__data__=new Ce,this.size=0}var Pe=Ae;function ke(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}var Le=ke;function De(t){return this.__data__.get(t)}var Re=De;function Ie(t){return this.__data__.has(t)}var Ne=Ie,je="[object AsyncFunction]",Ve="[object Function]",Be="[object GeneratorFunction]",Ge="[object Proxy]";function Ue(t){if(!Ot(t))return!1;var e=Yt(t);return e==Ve||e==Be||e==je||e==Ge}var He=Ue,ze=xt["a"]["__core-js_shared__"],Fe=ze,We=function(){var t=/[^.]+$/.exec(Fe&&Fe.keys&&Fe.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function qe(t){return!!We&&We in t}var Ye=qe,Ze=Function.prototype,Xe=Ze.toString;function Ke(t){if(null!=t){try{return Xe.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var $e=Ke,Qe=/[\\^$.*+?()[\]{}|]/g,Je=/^\[object .+?Constructor\]$/,tn=Function.prototype,en=Object.prototype,nn=tn.toString,rn=en.hasOwnProperty,on=RegExp("^"+nn.call(rn).replace(Qe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function an(t){if(!Ot(t)||Ye(t))return!1;var e=He(t)?on:Je;return e.test($e(t))}var sn=an;function un(t,e){return null==t?void 0:t[e]}var cn=un;function ln(t,e){var n=cn(t,e);return sn(n)?n:void 0}var hn=ln,fn=hn(xt["a"],"Map"),pn=fn,dn=hn(Object,"create"),vn=dn;function gn(){this.__data__=vn?vn(null):{},this.size=0}var mn=gn;function yn(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var _n=yn,bn="__lodash_hash_undefined__",On=Object.prototype,xn=On.hasOwnProperty;function wn(t){var e=this.__data__;if(vn){var n=e[t];return n===bn?void 0:n}return xn.call(e,t)?e[t]:void 0}var En=wn,Sn=Object.prototype,Tn=Sn.hasOwnProperty;function Mn(t){var e=this.__data__;return vn?void 0!==e[t]:Tn.call(e,t)}var Cn=Mn,An="__lodash_hash_undefined__";function Pn(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=vn&&void 0===e?An:e,this}var kn=Pn;function Ln(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}Ln.prototype.clear=mn,Ln.prototype["delete"]=_n,Ln.prototype.get=En,Ln.prototype.has=Cn,Ln.prototype.set=kn;var Dn=Ln;function Rn(){this.size=0,this.__data__={hash:new Dn,map:new(pn||Ce),string:new Dn}}var In=Rn;function Nn(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}var jn=Nn;function Vn(t,e){var n=t.__data__;return jn(e)?n["string"==typeof e?"string":"hash"]:n.map}var Bn=Vn;function Gn(t){var e=Bn(this,t)["delete"](t);return this.size-=e?1:0,e}var Un=Gn;function Hn(t){return Bn(this,t).get(t)}var zn=Hn;function Fn(t){return Bn(this,t).has(t)}var Wn=Fn;function qn(t,e){var n=Bn(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var Yn=qn;function Zn(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}Zn.prototype.clear=In,Zn.prototype["delete"]=Un,Zn.prototype.get=zn,Zn.prototype.has=Wn,Zn.prototype.set=Yn;var Xn=Zn,Kn=200;function $n(t,e){var n=this.__data__;if(n instanceof Ce){var r=n.__data__;if(!pn||r.length<Kn-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Xn(r)}return n.set(t,e),this.size=n.size,this}var Qn=$n;function Jn(t){var e=this.__data__=new Ce(t);this.size=e.size}Jn.prototype.clear=Pe,Jn.prototype["delete"]=Le,Jn.prototype.get=Re,Jn.prototype.has=Ne,Jn.prototype.set=Qn;var tr=Jn;function er(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(!1===e(t[n],n,t))break;return t}var nr=er,rr=function(){try{var t=hn(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),ir=rr;function or(t,e,n){"__proto__"==e&&ir?ir(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var ar=or,sr=Object.prototype,ur=sr.hasOwnProperty;function cr(t,e,n){var r=t[e];ur.call(t,e)&&de(r,n)&&(void 0!==n||e in t)||ar(t,e,n)}var lr=cr;function hr(t,e,n,r){var i=!n;n||(n={});var o=-1,a=e.length;while(++o<a){var s=e[o],u=r?r(n[s],t[s],s,n,t):void 0;void 0===u&&(u=t[s]),i?ar(n,s,u):lr(n,s,u)}return n}var fr=hr;function pr(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}var dr=pr,vr="[object Arguments]";function gr(t){return Xt(t)&&Yt(t)==vr}var mr=gr,yr=Object.prototype,_r=yr.hasOwnProperty,br=yr.propertyIsEnumerable,Or=mr(function(){return arguments}())?mr:function(t){return Xt(t)&&_r.call(t,"callee")&&!br.call(t,"callee")},xr=Or,wr=Array.isArray,Er=wr,Sr=n("4cf0"),Tr=9007199254740991,Mr=/^(?:0|[1-9]\d*)$/;function Cr(t,e){var n=typeof t;return e=null==e?Tr:e,!!e&&("number"==n||"symbol"!=n&&Mr.test(t))&&t>-1&&t%1==0&&t<e}var Ar=Cr,Pr=9007199254740991;function kr(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Pr}var Lr=kr,Dr="[object Arguments]",Rr="[object Array]",Ir="[object Boolean]",Nr="[object Date]",jr="[object Error]",Vr="[object Function]",Br="[object Map]",Gr="[object Number]",Ur="[object Object]",Hr="[object RegExp]",zr="[object Set]",Fr="[object String]",Wr="[object WeakMap]",qr="[object ArrayBuffer]",Yr="[object DataView]",Zr="[object Float32Array]",Xr="[object Float64Array]",Kr="[object Int8Array]",$r="[object Int16Array]",Qr="[object Int32Array]",Jr="[object Uint8Array]",ti="[object Uint8ClampedArray]",ei="[object Uint16Array]",ni="[object Uint32Array]",ri={};function ii(t){return Xt(t)&&Lr(t.length)&&!!ri[Yt(t)]}ri[Zr]=ri[Xr]=ri[Kr]=ri[$r]=ri[Qr]=ri[Jr]=ri[ti]=ri[ei]=ri[ni]=!0,ri[Dr]=ri[Rr]=ri[qr]=ri[Ir]=ri[Yr]=ri[Nr]=ri[jr]=ri[Vr]=ri[Br]=ri[Gr]=ri[Ur]=ri[Hr]=ri[zr]=ri[Fr]=ri[Wr]=!1;var oi=ii;function ai(t){return function(e){return t(e)}}var si=ai,ui=n("01ff"),ci=ui["a"]&&ui["a"].isTypedArray,li=ci?si(ci):oi,hi=li,fi=Object.prototype,pi=fi.hasOwnProperty;function di(t,e){var n=Er(t),r=!n&&xr(t),i=!n&&!r&&Object(Sr["a"])(t),o=!n&&!r&&!i&&hi(t),a=n||r||i||o,s=a?dr(t.length,String):[],u=s.length;for(var c in t)!e&&!pi.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ar(c,u))||s.push(c);return s}var vi=di,gi=Object.prototype;function mi(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||gi;return t===n}var yi=mi;function _i(t,e){return function(n){return t(e(n))}}var bi=_i,Oi=bi(Object.keys,Object),xi=Oi,wi=Object.prototype,Ei=wi.hasOwnProperty;function Si(t){if(!yi(t))return xi(t);var e=[];for(var n in Object(t))Ei.call(t,n)&&"constructor"!=n&&e.push(n);return e}var Ti=Si;function Mi(t){return null!=t&&Lr(t.length)&&!He(t)}var Ci=Mi;function Ai(t){return Ci(t)?vi(t):Ti(t)}var Pi=Ai;function ki(t,e){return t&&fr(e,Pi(e),t)}var Li=ki;function Di(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}var Ri=Di,Ii=Object.prototype,Ni=Ii.hasOwnProperty;function ji(t){if(!Ot(t))return Ri(t);var e=yi(t),n=[];for(var r in t)("constructor"!=r||!e&&Ni.call(t,r))&&n.push(r);return n}var Vi=ji;function Bi(t){return Ci(t)?vi(t,!0):Vi(t)}var Gi=Bi;function Ui(t,e){return t&&fr(e,Gi(e),t)}var Hi=Ui,zi=n("d6f0");function Fi(t,e){var n=-1,r=t.length;e||(e=Array(r));while(++n<r)e[n]=t[n];return e}var Wi=Fi;function qi(t,e){var n=-1,r=null==t?0:t.length,i=0,o=[];while(++n<r){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}var Yi=qi;function Zi(){return[]}var Xi=Zi,Ki=Object.prototype,$i=Ki.propertyIsEnumerable,Qi=Object.getOwnPropertySymbols,Ji=Qi?function(t){return null==t?[]:(t=Object(t),Yi(Qi(t),(function(e){return $i.call(t,e)})))}:Xi,to=Ji;function eo(t,e){return fr(t,to(t),e)}var no=eo;function ro(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}var io=ro,oo=bi(Object.getPrototypeOf,Object),ao=oo,so=Object.getOwnPropertySymbols,uo=so?function(t){var e=[];while(t)io(e,to(t)),t=ao(t);return e}:Xi,co=uo;function lo(t,e){return fr(t,co(t),e)}var ho=lo;function fo(t,e,n){var r=e(t);return Er(t)?r:io(r,n(t))}var po=fo;function vo(t){return po(t,Pi,to)}var go=vo;function mo(t){return po(t,Gi,co)}var yo=mo,_o=hn(xt["a"],"DataView"),bo=_o,Oo=hn(xt["a"],"Promise"),xo=Oo,wo=hn(xt["a"],"Set"),Eo=wo,So=hn(xt["a"],"WeakMap"),To=So,Mo="[object Map]",Co="[object Object]",Ao="[object Promise]",Po="[object Set]",ko="[object WeakMap]",Lo="[object DataView]",Do=$e(bo),Ro=$e(pn),Io=$e(xo),No=$e(Eo),jo=$e(To),Vo=Yt;(bo&&Vo(new bo(new ArrayBuffer(1)))!=Lo||pn&&Vo(new pn)!=Mo||xo&&Vo(xo.resolve())!=Ao||Eo&&Vo(new Eo)!=Po||To&&Vo(new To)!=ko)&&(Vo=function(t){var e=Yt(t),n=e==Co?t.constructor:void 0,r=n?$e(n):"";if(r)switch(r){case Do:return Lo;case Ro:return Mo;case Io:return Ao;case No:return Po;case jo:return ko}return e});var Bo=Vo,Go=Object.prototype,Uo=Go.hasOwnProperty;function Ho(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Uo.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var zo=Ho,Fo=xt["a"].Uint8Array,Wo=Fo;function qo(t){var e=new t.constructor(t.byteLength);return new Wo(e).set(new Wo(t)),e}var Yo=qo;function Zo(t,e){var n=e?Yo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var Xo=Zo,Ko=/\w*$/;function $o(t){var e=new t.constructor(t.source,Ko.exec(t));return e.lastIndex=t.lastIndex,e}var Qo=$o,Jo=Lt?Lt.prototype:void 0,ta=Jo?Jo.valueOf:void 0;function ea(t){return ta?Object(ta.call(t)):{}}var na=ea;function ra(t,e){var n=e?Yo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var ia=ra,oa="[object Boolean]",aa="[object Date]",sa="[object Map]",ua="[object Number]",ca="[object RegExp]",la="[object Set]",ha="[object String]",fa="[object Symbol]",pa="[object ArrayBuffer]",da="[object DataView]",va="[object Float32Array]",ga="[object Float64Array]",ma="[object Int8Array]",ya="[object Int16Array]",_a="[object Int32Array]",ba="[object Uint8Array]",Oa="[object Uint8ClampedArray]",xa="[object Uint16Array]",wa="[object Uint32Array]";function Ea(t,e,n){var r=t.constructor;switch(e){case pa:return Yo(t);case oa:case aa:return new r(+t);case da:return Xo(t,n);case va:case ga:case ma:case ya:case _a:case ba:case Oa:case xa:case wa:return ia(t,n);case sa:return new r;case ua:case ha:return new r(t);case ca:return Qo(t);case la:return new r;case fa:return na(t)}}var Sa=Ea,Ta=Object.create,Ma=function(){function t(){}return function(e){if(!Ot(e))return{};if(Ta)return Ta(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),Ca=Ma;function Aa(t){return"function"!=typeof t.constructor||yi(t)?{}:Ca(ao(t))}var Pa=Aa,ka="[object Map]";function La(t){return Xt(t)&&Bo(t)==ka}var Da=La,Ra=ui["a"]&&ui["a"].isMap,Ia=Ra?si(Ra):Da,Na=Ia,ja="[object Set]";function Va(t){return Xt(t)&&Bo(t)==ja}var Ba=Va,Ga=ui["a"]&&ui["a"].isSet,Ua=Ga?si(Ga):Ba,Ha=Ua,za=1,Fa=2,Wa=4,qa="[object Arguments]",Ya="[object Array]",Za="[object Boolean]",Xa="[object Date]",Ka="[object Error]",$a="[object Function]",Qa="[object GeneratorFunction]",Ja="[object Map]",ts="[object Number]",es="[object Object]",ns="[object RegExp]",rs="[object Set]",is="[object String]",os="[object Symbol]",as="[object WeakMap]",ss="[object ArrayBuffer]",us="[object DataView]",cs="[object Float32Array]",ls="[object Float64Array]",hs="[object Int8Array]",fs="[object Int16Array]",ps="[object Int32Array]",ds="[object Uint8Array]",vs="[object Uint8ClampedArray]",gs="[object Uint16Array]",ms="[object Uint32Array]",ys={};function _s(t,e,n,r,i,o){var a,s=e&za,u=e&Fa,c=e&Wa;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!Ot(t))return t;var l=Er(t);if(l){if(a=zo(t),!s)return Wi(t,a)}else{var h=Bo(t),f=h==$a||h==Qa;if(Object(Sr["a"])(t))return Object(zi["a"])(t,s);if(h==es||h==qa||f&&!i){if(a=u||f?{}:Pa(t),!s)return u?ho(t,Hi(a,t)):no(t,Li(a,t))}else{if(!ys[h])return i?t:{};a=Sa(t,h,s)}}o||(o=new tr);var p=o.get(t);if(p)return p;o.set(t,a),Ha(t)?t.forEach((function(r){a.add(_s(r,e,n,r,t,o))})):Na(t)&&t.forEach((function(r,i){a.set(i,_s(r,e,n,i,t,o))}));var d=c?u?yo:go:u?Gi:Pi,v=l?void 0:d(t);return nr(v||t,(function(r,i){v&&(i=r,r=t[i]),lr(a,i,_s(r,e,n,i,t,o))})),a}ys[qa]=ys[Ya]=ys[ss]=ys[us]=ys[Za]=ys[Xa]=ys[cs]=ys[ls]=ys[hs]=ys[fs]=ys[ps]=ys[Ja]=ys[ts]=ys[es]=ys[ns]=ys[rs]=ys[is]=ys[os]=ys[ds]=ys[vs]=ys[gs]=ys[ms]=!0,ys[Ka]=ys[$a]=ys[as]=!1;var bs=_s,Os=1,xs=4;function ws(t){return bs(t,Os|xs)}var Es=ws;function Ss(t,e,n){(void 0===n||de(t[e],n))&&(void 0!==n||e in t)||ar(t,e,n)}var Ts=Ss;function Ms(t){return function(e,n,r){var i=-1,o=Object(e),a=r(e),s=a.length;while(s--){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}var Cs=Ms,As=Cs(),Ps=As;function ks(t){return Xt(t)&&Ci(t)}var Ls=ks,Ds="[object Object]",Rs=Function.prototype,Is=Object.prototype,Ns=Rs.toString,js=Is.hasOwnProperty,Vs=Ns.call(Object);function Bs(t){if(!Xt(t)||Yt(t)!=Ds)return!1;var e=ao(t);if(null===e)return!0;var n=js.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ns.call(n)==Vs}var Gs=Bs;function Us(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var Hs=Us;function zs(t){return fr(t,Gi(t))}var Fs=zs;function Ws(t,e,n,r,i,o,a){var s=Hs(t,n),u=Hs(e,n),c=a.get(u);if(c)Ts(t,n,c);else{var l=o?o(s,u,n+"",t,e,a):void 0,h=void 0===l;if(h){var f=Er(u),p=!f&&Object(Sr["a"])(u),d=!f&&!p&&hi(u);l=u,f||p||d?Er(s)?l=s:Ls(s)?l=Wi(s):p?(h=!1,l=Object(zi["a"])(u,!0)):d?(h=!1,l=ia(u,!0)):l=[]:Gs(u)||xr(u)?(l=s,xr(s)?l=Fs(s):Ot(s)&&!He(s)||(l=Pa(u))):h=!1}h&&(a.set(u,l),i(l,u,r,o,a),a["delete"](u)),Ts(t,n,l)}}var qs=Ws;function Ys(t,e,n,r,i){t!==e&&Ps(e,(function(o,a){if(i||(i=new tr),Ot(o))qs(t,e,a,n,Ys,r,i);else{var s=r?r(Hs(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),Ts(t,a,s)}}),Gi)}var Zs=Ys;function Xs(t){return t}var Ks=Xs;function $s(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var Qs=$s,Js=Math.max;function tu(t,e,n){return e=Js(void 0===e?t.length-1:e,0),function(){var r=arguments,i=-1,o=Js(r.length-e,0),a=Array(o);while(++i<o)a[i]=r[e+i];i=-1;var s=Array(e+1);while(++i<e)s[i]=r[i];return s[e]=n(a),Qs(t,this,s)}}var eu=tu;function nu(t){return function(){return t}}var ru=nu,iu=ir?function(t,e){return ir(t,"toString",{configurable:!0,enumerable:!1,value:ru(e),writable:!0})}:Ks,ou=iu,au=800,su=16,uu=Date.now;function cu(t){var e=0,n=0;return function(){var r=uu(),i=su-(r-n);if(n=r,i>0){if(++e>=au)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var lu=cu,hu=lu(ou),fu=hu;function pu(t,e){return fu(eu(t,e,Ks),t+"")}var du=pu;function vu(t,e,n){if(!Ot(n))return!1;var r=typeof e;return!!("number"==r?Ci(n)&&Ar(e,n.length):"string"==r&&e in n)&&de(n[e],t)}var gu=vu;function mu(t){return du((function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&gu(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);while(++r<i){var s=n[r];s&&t(e,s,r,o)}return e}))}var yu=mu,_u=yu((function(t,e,n){Zs(t,e,n)})),bu=_u,Ou=Lt?Lt.isConcatSpreadable:void 0;function xu(t){return Er(t)||xr(t)||!!(Ou&&t&&t[Ou])}var wu=xu;function Eu(t,e,n,r,i){var o=-1,a=t.length;n||(n=wu),i||(i=[]);while(++o<a){var s=t[o];e>0&&n(s)?e>1?Eu(s,e-1,n,r,i):io(i,s):r||(i[i.length]=s)}return i}var Su=Eu,Tu="__lodash_hash_undefined__";function Mu(t){return this.__data__.set(t,Tu),this}var Cu=Mu;function Au(t){return this.__data__.has(t)}var Pu=Au;function ku(t){var e=-1,n=null==t?0:t.length;this.__data__=new Xn;while(++e<n)this.add(t[e])}ku.prototype.add=ku.prototype.push=Cu,ku.prototype.has=Pu;var Lu=ku;function Du(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(e(t[n],n,t))return!0;return!1}var Ru=Du;function Iu(t,e){return t.has(e)}var Nu=Iu,ju=1,Vu=2;function Bu(t,e,n,r,i,o){var a=n&ju,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var c=o.get(t),l=o.get(e);if(c&&l)return c==e&&l==t;var h=-1,f=!0,p=n&Vu?new Lu:void 0;o.set(t,e),o.set(e,t);while(++h<s){var d=t[h],v=e[h];if(r)var g=a?r(v,d,h,e,t,o):r(d,v,h,t,e,o);if(void 0!==g){if(g)continue;f=!1;break}if(p){if(!Ru(e,(function(t,e){if(!Nu(p,e)&&(d===t||i(d,t,n,r,o)))return p.push(e)}))){f=!1;break}}else if(d!==v&&!i(d,v,n,r,o)){f=!1;break}}return o["delete"](t),o["delete"](e),f}var Gu=Bu;function Uu(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}var Hu=Uu;function zu(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var Fu=zu,Wu=1,qu=2,Yu="[object Boolean]",Zu="[object Date]",Xu="[object Error]",Ku="[object Map]",$u="[object Number]",Qu="[object RegExp]",Ju="[object Set]",tc="[object String]",ec="[object Symbol]",nc="[object ArrayBuffer]",rc="[object DataView]",ic=Lt?Lt.prototype:void 0,oc=ic?ic.valueOf:void 0;function ac(t,e,n,r,i,o,a){switch(n){case rc:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case nc:return!(t.byteLength!=e.byteLength||!o(new Wo(t),new Wo(e)));case Yu:case Zu:case $u:return de(+t,+e);case Xu:return t.name==e.name&&t.message==e.message;case Qu:case tc:return t==e+"";case Ku:var s=Hu;case Ju:var u=r&Wu;if(s||(s=Fu),t.size!=e.size&&!u)return!1;var c=a.get(t);if(c)return c==e;r|=qu,a.set(t,e);var l=Gu(s(t),s(e),r,i,o,a);return a["delete"](t),l;case ec:if(oc)return oc.call(t)==oc.call(e)}return!1}var sc=ac,uc=1,cc=Object.prototype,lc=cc.hasOwnProperty;function hc(t,e,n,r,i,o){var a=n&uc,s=go(t),u=s.length,c=go(e),l=c.length;if(u!=l&&!a)return!1;var h=u;while(h--){var f=s[h];if(!(a?f in e:lc.call(e,f)))return!1}var p=o.get(t),d=o.get(e);if(p&&d)return p==e&&d==t;var v=!0;o.set(t,e),o.set(e,t);var g=a;while(++h<u){f=s[h];var m=t[f],y=e[f];if(r)var _=a?r(y,m,f,e,t,o):r(m,y,f,t,e,o);if(!(void 0===_?m===y||i(m,y,n,r,o):_)){v=!1;break}g||(g="constructor"==f)}if(v&&!g){var b=t.constructor,O=e.constructor;b!=O&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof O&&O instanceof O)&&(v=!1)}return o["delete"](t),o["delete"](e),v}var fc=hc,pc=1,dc="[object Arguments]",vc="[object Array]",gc="[object Object]",mc=Object.prototype,yc=mc.hasOwnProperty;function _c(t,e,n,r,i,o){var a=Er(t),s=Er(e),u=a?vc:Bo(t),c=s?vc:Bo(e);u=u==dc?gc:u,c=c==dc?gc:c;var l=u==gc,h=c==gc,f=u==c;if(f&&Object(Sr["a"])(t)){if(!Object(Sr["a"])(e))return!1;a=!0,l=!1}if(f&&!l)return o||(o=new tr),a||hi(t)?Gu(t,e,n,r,i,o):sc(t,e,u,n,r,i,o);if(!(n&pc)){var p=l&&yc.call(t,"__wrapped__"),d=h&&yc.call(e,"__wrapped__");if(p||d){var v=p?t.value():t,g=d?e.value():e;return o||(o=new tr),i(v,g,n,r,o)}}return!!f&&(o||(o=new tr),fc(t,e,n,r,i,o))}var bc=_c;function Oc(t,e,n,r,i){return t===e||(null==t||null==e||!Xt(t)&&!Xt(e)?t!==t&&e!==e:bc(t,e,n,r,Oc,i))}var xc=Oc,wc=1,Ec=2;function Sc(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;t=Object(t);while(i--){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}while(++i<o){s=n[i];var u=s[0],c=t[u],l=s[1];if(a&&s[2]){if(void 0===c&&!(u in t))return!1}else{var h=new tr;if(r)var f=r(c,l,u,t,e,h);if(!(void 0===f?xc(l,c,wc|Ec,r,h):f))return!1}}return!0}var Tc=Sc;function Mc(t){return t===t&&!Ot(t)}var Cc=Mc;function Ac(t){var e=Pi(t),n=e.length;while(n--){var r=e[n],i=t[r];e[n]=[r,i,Cc(i)]}return e}var Pc=Ac;function kc(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}var Lc=kc;function Dc(t){var e=Pc(t);return 1==e.length&&e[0][2]?Lc(e[0][0],e[0][1]):function(n){return n===t||Tc(n,t,e)}}var Rc=Dc,Ic=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nc=/^\w*$/;function jc(t,e){if(Er(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Qt(t))||(Nc.test(t)||!Ic.test(t)||null!=e&&t in Object(e))}var Vc=jc,Bc="Expected a function";function Gc(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(Bc);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Gc.Cache||Xn),n}Gc.Cache=Xn;var Uc=Gc,Hc=500;function zc(t){var e=Uc(t,(function(t){return n.size===Hc&&n.clear(),t})),n=e.cache;return e}var Fc=zc,Wc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qc=/\\(\\)?/g,Yc=Fc((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Wc,(function(t,n,r,i){e.push(r?i.replace(qc,"$1"):n||t)})),e})),Zc=Yc;function Xc(t,e){var n=-1,r=null==t?0:t.length,i=Array(r);while(++n<r)i[n]=e(t[n],n,t);return i}var Kc=Xc,$c=1/0,Qc=Lt?Lt.prototype:void 0,Jc=Qc?Qc.toString:void 0;function tl(t){if("string"==typeof t)return t;if(Er(t))return Kc(t,tl)+"";if(Qt(t))return Jc?Jc.call(t):"";var e=t+"";return"0"==e&&1/t==-$c?"-0":e}var el=tl;function nl(t){return null==t?"":el(t)}var rl=nl;function il(t,e){return Er(t)?t:Vc(t,e)?[t]:Zc(rl(t))}var ol=il,al=1/0;function sl(t){if("string"==typeof t||Qt(t))return t;var e=t+"";return"0"==e&&1/t==-al?"-0":e}var ul=sl;function cl(t,e){e=ol(e,t);var n=0,r=e.length;while(null!=t&&n<r)t=t[ul(e[n++])];return n&&n==r?t:void 0}var ll=cl;function hl(t,e,n){var r=null==t?void 0:ll(t,e);return void 0===r?n:r}var fl=hl;function pl(t,e){return null!=t&&e in Object(t)}var dl=pl;function vl(t,e,n){e=ol(e,t);var r=-1,i=e.length,o=!1;while(++r<i){var a=ul(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:(i=null==t?0:t.length,!!i&&Lr(i)&&Ar(a,i)&&(Er(t)||xr(t)))}var gl=vl;function ml(t,e){return null!=t&&gl(t,e,dl)}var yl=ml,_l=1,bl=2;function Ol(t,e){return Vc(t)&&Cc(e)?Lc(ul(t),e):function(n){var r=fl(n,t);return void 0===r&&r===e?yl(n,t):xc(e,r,_l|bl)}}var xl=Ol;function wl(t){return function(e){return null==e?void 0:e[t]}}var El=wl;function Sl(t){return function(e){return ll(e,t)}}var Tl=Sl;function Ml(t){return Vc(t)?El(ul(t)):Tl(t)}var Cl=Ml;function Al(t){return"function"==typeof t?t:null==t?Ks:"object"==typeof t?Er(t)?xl(t[0],t[1]):Rc(t):Cl(t)}var Pl=Al;function kl(t,e,n,r){var i=t.length,o=n+(r?1:-1);while(r?o--:++o<i)if(e(t[o],o,t))return o;return-1}var Ll=kl;function Dl(t){return t!==t}var Rl=Dl;function Il(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}var Nl=Il;function jl(t,e,n){return e===e?Nl(t,e,n):Ll(t,Rl,n)}var Vl=jl;function Bl(t,e){var n=null==t?0:t.length;return!!n&&Vl(t,e,0)>-1}var Gl=Bl;function Ul(t,e,n){var r=-1,i=null==t?0:t.length;while(++r<i)if(n(e,t[r]))return!0;return!1}var Hl=Ul;function zl(){}var Fl=zl,Wl=1/0,ql=Eo&&1/Fu(new Eo([,-0]))[1]==Wl?function(t){return new Eo(t)}:Fl,Yl=ql,Zl=200;function Xl(t,e,n){var r=-1,i=Gl,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=Hl;else if(o>=Zl){var c=e?null:Yl(t);if(c)return Fu(c);a=!1,i=Nu,u=new Lu}else u=e?[]:s;t:while(++r<o){var l=t[r],h=e?e(l):l;if(l=n||0!==l?l:0,a&&h===h){var f=u.length;while(f--)if(u[f]===h)continue t;e&&u.push(h),s.push(l)}else i(u,h,n)||(u!==s&&u.push(h),s.push(l))}return s}var Kl=Xl;function $l(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var Ql=$l,Jl=du((function(t){var e=Ql(t);return Ls(e)&&(e=void 0),Kl(Su(t,1,Ls,!0),Pl(e,2))})),th=Jl;function eh(t){return t&&t.length?Kl(t):[]}var nh=eh;function rh(t,e,n){return t===t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}var ih=rh;function oh(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=oe(n),n=n===n?n:0),void 0!==e&&(e=oe(e),e=e===e?e:0),ih(oe(t),e,n)}var ah=oh;function sh(t){var e=null==t?0:t.length;return e?Su(t,1):[]}var uh=sh;function ch(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;var o=Array(i);while(++r<i)o[r]=t[r+e];return o}var lh=ch;function hh(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:lh(t,e,n)}var fh=hh,ph="\\ud800-\\udfff",dh="\\u0300-\\u036f",vh="\\ufe20-\\ufe2f",gh="\\u20d0-\\u20ff",mh=dh+vh+gh,yh="\\ufe0e\\ufe0f",_h="\\u200d",bh=RegExp("["+_h+ph+mh+yh+"]");function Oh(t){return bh.test(t)}var xh=Oh;function wh(t){return t.split("")}var Eh=wh,Sh="\\ud800-\\udfff",Th="\\u0300-\\u036f",Mh="\\ufe20-\\ufe2f",Ch="\\u20d0-\\u20ff",Ah=Th+Mh+Ch,Ph="\\ufe0e\\ufe0f",kh="["+Sh+"]",Lh="["+Ah+"]",Dh="\\ud83c[\\udffb-\\udfff]",Rh="(?:"+Lh+"|"+Dh+")",Ih="[^"+Sh+"]",Nh="(?:\\ud83c[\\udde6-\\uddff]){2}",jh="[\\ud800-\\udbff][\\udc00-\\udfff]",Vh="\\u200d",Bh=Rh+"?",Gh="["+Ph+"]?",Uh="(?:"+Vh+"(?:"+[Ih,Nh,jh].join("|")+")"+Gh+Bh+")*",Hh=Gh+Bh+Uh,zh="(?:"+[Ih+Lh+"?",Lh,Nh,jh,kh].join("|")+")",Fh=RegExp(Dh+"(?="+Dh+")|"+zh+Hh,"g");function Wh(t){return t.match(Fh)||[]}var qh=Wh;function Yh(t){return xh(t)?qh(t):Eh(t)}var Zh=Yh;function Xh(t){return function(e){e=rl(e);var n=xh(e)?Zh(e):void 0,r=n?n[0]:e.charAt(0),i=n?fh(n,1).join(""):e.slice(1);return r[t]()+i}}var Kh=Xh,$h=Kh("toUpperCase"),Qh=$h;function Jh(t){return Qh(rl(t).toLowerCase())}var tf=Jh;function ef(t,e,n,r){var i=-1,o=null==t?0:t.length;r&&o&&(n=t[++i]);while(++i<o)n=e(n,t[i],i,t);return n}var nf=ef;function rf(t){return function(e){return null==t?void 0:t[e]}}var of=rf,af={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},sf=of(af),uf=sf,cf=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,lf="\\u0300-\\u036f",hf="\\ufe20-\\ufe2f",ff="\\u20d0-\\u20ff",pf=lf+hf+ff,df="["+pf+"]",vf=RegExp(df,"g");function gf(t){return t=rl(t),t&&t.replace(cf,uf).replace(vf,"")}var mf=gf,yf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function _f(t){return t.match(yf)||[]}var bf=_f,Of=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function xf(t){return Of.test(t)}var wf=xf,Ef="\\ud800-\\udfff",Sf="\\u0300-\\u036f",Tf="\\ufe20-\\ufe2f",Mf="\\u20d0-\\u20ff",Cf=Sf+Tf+Mf,Af="\\u2700-\\u27bf",Pf="a-z\\xdf-\\xf6\\xf8-\\xff",kf="\\xac\\xb1\\xd7\\xf7",Lf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Df="\\u2000-\\u206f",Rf=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",If="A-Z\\xc0-\\xd6\\xd8-\\xde",Nf="\\ufe0e\\ufe0f",jf=kf+Lf+Df+Rf,Vf="['’]",Bf="["+jf+"]",Gf="["+Cf+"]",Uf="\\d+",Hf="["+Af+"]",zf="["+Pf+"]",Ff="[^"+Ef+jf+Uf+Af+Pf+If+"]",Wf="\\ud83c[\\udffb-\\udfff]",qf="(?:"+Gf+"|"+Wf+")",Yf="[^"+Ef+"]",Zf="(?:\\ud83c[\\udde6-\\uddff]){2}",Xf="[\\ud800-\\udbff][\\udc00-\\udfff]",Kf="["+If+"]",$f="\\u200d",Qf="(?:"+zf+"|"+Ff+")",Jf="(?:"+Kf+"|"+Ff+")",tp="(?:"+Vf+"(?:d|ll|m|re|s|t|ve))?",ep="(?:"+Vf+"(?:D|LL|M|RE|S|T|VE))?",np=qf+"?",rp="["+Nf+"]?",ip="(?:"+$f+"(?:"+[Yf,Zf,Xf].join("|")+")"+rp+np+")*",op="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ap="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sp=rp+np+ip,up="(?:"+[Hf,Zf,Xf].join("|")+")"+sp,cp=RegExp([Kf+"?"+zf+"+"+tp+"(?="+[Bf,Kf,"$"].join("|")+")",Jf+"+"+ep+"(?="+[Bf,Kf+Qf,"$"].join("|")+")",Kf+"?"+Qf+"+"+tp,Kf+"+"+ep,ap,op,Uf,up].join("|"),"g");function lp(t){return t.match(cp)||[]}var hp=lp;function fp(t,e,n){return t=rl(t),e=n?void 0:e,void 0===e?wf(t)?hp(t):bf(t):t.match(e)||[]}var pp=fp,dp="['’]",vp=RegExp(dp,"g");function gp(t){return function(e){return nf(pp(mf(e).replace(vp,"")),t,"")}}var mp=gp,yp=mp((function(t,e,n){return e=e.toLowerCase(),t+(n?tf(e):e)})),_p=yp,bp="[object Map]",Op="[object Set]",xp=Object.prototype,wp=xp.hasOwnProperty;function Ep(t){if(null==t)return!0;if(Ci(t)&&(Er(t)||"string"==typeof t||"function"==typeof t.splice||Object(Sr["a"])(t)||hi(t)||xr(t)))return!t.length;var e=Bo(t);if(e==bp||e==Op)return!t.size;if(yi(t))return!Ti(t).length;for(var n in t)if(wp.call(t,n))return!1;return!0}var Sp=Ep;function Tp(t,e){return xc(t,e)}var Mp=Tp;function Cp(t,e){return t&&Ps(t,e,Pi)}var Ap=Cp;function Pp(t,e){return function(n,r){if(null==n)return n;if(!Ci(n))return t(n,r);var i=n.length,o=e?i:-1,a=Object(n);while(e?o--:++o<i)if(!1===r(a[o],o,a))break;return n}}var kp=Pp,Lp=kp(Ap),Dp=Lp;function Rp(t,e){var n=-1,r=Ci(t)?Array(t.length):[];return Dp(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}var Ip=Rp;function Np(t,e){var n=Er(t)?Kc:Ip;return n(t,Pl(e,3))}var jp=Np,Vp=1/0;function Bp(t,e){return Su(jp(t,e),Vp)}var Gp=Bp,Up=mp((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Hp=Up;function zp(t){var e=-1,n=null==t?0:t.length,r={};while(++e<n){var i=t[e];r[i[0]]=i[1]}return r}var Fp=zp;function Wp(t,e){var n;return Dp(t,(function(t,r,i){return n=e(t,r,i),!n})),!!n}var qp=Wp;function Yp(t,e,n){var r=Er(t)?Ru:qp;return n&&gu(t,e,n)&&(e=void 0),r(t,Pl(e,3))}var Zp=Yp,Xp={},Kp=null;if("undefined"!==typeof document){var $p=document.documentElement;"onmouseenter"in $p||(Xp={mouseenter:"mouseover",mouseleave:"mouseout"})}function Qp(t,e,n){return t=Jp(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function Jp(t,e,n){return function(r){var i=Kp;Kp=r;try{t.call(this,this.__data__,e,n)}finally{Kp=i}}}function td(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}}))}function ed(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function nd(t,e,n){var r=Xp.hasOwnProperty(t.type)?Qp:Jp;return function(i,o,a){var s,u=this.__on,c=r(e,o,a);if(u)for(var l=0,h=u.length;l<h;++l)if((s=u[l]).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},u?u.push(s):this.__on=[s]}}var rd=function(t,e,n){var r,i,o=td(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?nd:ed,null==n&&(n=!1),r=0;r<a;++r)this.each(s(o[r],e,n));return this}var s=this.node().__on;if(s)for(var u,c=0,l=s.length;c<l;++c)for(r=0,u=s[c];r<a;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value};function id(t,e,n,r){var i=Kp;t.sourceEvent=Kp,Kp=t;try{return e.apply(n,r)}finally{Kp=i}}var od,ad=function(){var t,e=Kp;while(t=e.sourceEvent)e=t;return e},sd=function(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()),[r.x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]},ud=function(t){var e=ad();return e.changedTouches&&(e=e.changedTouches[0]),sd(t,e)};(function(t){function e(t,e,n){var r=null;return function(){var i=this,o=arguments;i.mousePosition=ud(n),clearTimeout(r),r=setTimeout((function(){t.apply(i,o)}),e)}}function n(e,n){e=t.clone(e);var r=Object.keys(n.axes||{});for(var i in 0===r.length&&delete e.axes,e.axes)if(r.includes(i)){var o=n.axes[i];(o["primary"]||o["secondary"])&&console.warn("`primary` & `secondary` are no longer needed for axis configurations. Read more here https://carbon-design-system.github.io/carbon-charts/?path=/story/docs-tutorials--tabular-data-format");var a=o["mapsTo"];if(void 0===a||null===a){var s=o["scaleType"];void 0===s||null===s?o["mapsTo"]="value":s===N.TIME?o["mapsTo"]="date":s===N.LABELS&&(o["mapsTo"]="key")}}else delete e.axes[i];return l(e,n),t.merge(e,n)}function r(t){return{width:parseFloat(t.style.width.replace("px","")||t.offsetWidth),height:parseFloat(t.style.height.replace("px","")||t.offsetHeight)}}function i(t){if(t){var e=/translate\([0-9]+\.?[0-9]*,[0-9]+\.?[0-9]*\)/,n=t.getAttribute("transform").match(e);if(!n)return null;if(n[0]){var r=n[0].replace(/translate\(/,"").replace(/\)/,"").split(",");return{tx:r[0],ty:r[1]}}return null}}function o(t){var e=/\(([^)]+)\)/,n=e.exec(t)[1],r=n.split(",");return{x:parseFloat(r[0]),y:parseFloat(r[1])}}function a(t){var e=t.toString();return e.match(/[a-z]/i)?e:e+"px"}function s(t){return t[0].toUpperCase()+t.slice(1)}function u(t,e){var n=t/e.reduce((function(t,e){return t+e.value}),0)*100;return n%1!==0?parseFloat(n.toFixed(1)):n}function c(t,e,n){return n>t.length?t:e===R.MID_LINE?t.substr(0,n/2)+"..."+t.substr(-n/2):e===R.FRONT_LINE?"..."+t.substr(-n):e===R.END_LINE?t.substr(0,n)+"...":void 0}function l(e,n){var r=t.getProperty(e,"legend","additionalItems"),i=t.getProperty(n,"legend","additionalItems");if(r&&i){var o=i.map((function(t){return t.type})),a=r.map((function(t){return t.type})),s=_t.filter((function(t){return a.includes(t.type)&&!o.includes(t.type)}));e.legend.additionalItems=s,n.legend.additionalItems=t.unionBy(s,i,"name")}}function h(t,e){var n={missing:[],added:[]};return t.forEach((function(t){-1===e.indexOf(t)&&n.missing.push(t)})),e.forEach((function(e){-1===t.indexOf(e)&&n.added.push(e)})),n}function f(t){var e=[],n=[];return t.forEach((function(t){-1!==e.indexOf(t)&&-1===n.indexOf(t)&&n.push(t),e.push(t)})),n}function p(t){return t.each((function(){this.parentNode.appendChild(this)}))}function d(t,e,n){return n===I.VERTICAL?[t,e]:[e,t]}t.debounce=le,t.clone=Es,t.merge=bu,t.unionBy=th,t.removeArrayDuplicates=nh,t.clamp=ah,t.flatten=uh,t.camelCase=_p,t.isEmpty=Sp,t.isEqual=Mp,t.flatMapDeep=Gp,t.kebabCase=Hp,t.fromPairs=Fp,t.some=Zp,t.debounceWithD3MousePosition=e,t.mergeDefaultChartOptions=n,t.getDimensions=r,t.getTranslationValues=i,t.getTranformOffsets=o,t.formatWidthHeightValues=a,t.capitalizeFirstLetter=s,t.convertValueToPercentage=u,t.truncateLabel=c,t.updateLegendAdditionalItems=l,t.arrayDifferences=h,t.getDuplicateValues=f,t.moveToFront=p,t.getProperty=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=t;if(r){for(var i=0,o=e;i<o.length;i++){var a=o[i];if(null===r[a]||void 0===r[a])return null;r=r[a]}return r}return null},t.flipSVGCoordinatesBasedOnOrientation=function(t,e){return e===I.HORIZONTAL?{y0:t.x0,y1:t.x1,x0:t.y0,x1:t.y1}:t},t.generateSVGPathString=function(e,n){var r=t.flipSVGCoordinatesBasedOnOrientation(e,n),i=r.x0,o=r.x1,a=r.y0,s=r.y1;return"M"+i+","+a+"L"+i+","+s+"L"+o+","+s+"L"+o+","+a+"L"+i+","+a},t.flipDomainAndRangeBasedOnOrientation=d,t.compareNumeric=function(t,e){return Number(t)===Number(e)}})(od||(od={}));var cd=n("39ba"),ld=n.n(cd),hd={type:R.END_LINE,threshold:16,numCharacter:14},fd={enabled:!0,position:j.BOTTOM,clickable:!0,truncation:hd,alignment:V.LEFT,order:null,additionalItems:[]},pd={x:{enabled:!0,numberOfTicks:15,alignWithAxisTicks:!1},y:{enabled:!0,numberOfTicks:5,alignWithAxisTicks:!1}},dd={enabled:!0},vd={enabled:!0,showTotal:!0,truncation:hd,groupLabel:"Group"},gd={top:{visible:!0,includeZero:!0,truncation:hd},bottom:{visible:!0,includeZero:!0,truncation:hd},left:{visible:!0,includeZero:!0,truncation:hd},right:{visible:!0,includeZero:!0,truncation:hd}},md={addSpaceOnEdges:1,showDayName:!1,localeObject:ld.a,timeIntervalFormats:{"15seconds":{primary:"MMM d, pp",secondary:"pp"},minute:{primary:"MMM d, p",secondary:"p"},"30minutes":{primary:"MMM d, p",secondary:"p"},hourly:{primary:"MMM d, hh a",secondary:"hh a"},daily:{primary:"MMM d",secondary:"d"},weekly:{primary:"eee, MMM d",secondary:"eee"},monthly:{primary:"MMM yyyy",secondary:"MMM"},quarterly:{primary:"QQQ ''yy",secondary:"QQQ"},yearly:{primary:"yyyy",secondary:"yyyy"}}},yd={width:null,height:null,resizable:!0,tooltip:vd,legend:fd,style:{prefix:"cc"},data:{groupMapsTo:"group",loading:!1,selectedGroups:[]},color:{scale:null,pairing:{numberOfVariants:null,option:1},gradient:{enabled:!1}}},_d=od.merge({},yd,{axes:gd,timeScale:md,grid:pd,ruler:dd,zoomBar:{zoomRatio:.4,minZoomRatio:.01,top:{enabled:!1,type:D.GRAPH_VIEW}},toolbar:{enabled:!1,numberOfIcons:3,controls:[]}}),bd=od.merge({},_d,{bars:{maxWidth:16},timeScale:od.merge(md,{addSpaceOnEdges:1})}),Od=od.merge({},bd,{}),xd=od.merge({},bd,{}),wd=od.merge({},bd,{bars:od.merge({},bd.bars,{dividerSize:1.5})}),Ed=od.merge({},bd,{}),Sd=od.merge({},_d,{points:{radius:4,fillOpacity:.3,filled:!0,enabled:!0}}),Td=Sd,Md=od.merge({},Sd,{points:{radius:3,filled:!1,enabled:!0}}),Cd=od.merge({},Md,{timeScale:od.merge(md,{addSpaceOnEdges:0})}),Ad=Cd,Pd=od.merge({},_d,{bubble:{radiusMapsTo:"radius",radiusLabel:"Radius",radiusRange:function(t,e){var n=Math.min(t.width,t.height);return[3*n/400,25*n/400]},fillOpacity:.2,enabled:!0},points:{filled:!0},legend:{additionalItems:[{type:J.RADIUS,name:"Radius"}]}}),kd=od.merge({},_d,{bullet:{performanceAreaTitles:["Poor","Satisfactory","Great"]},grid:{x:{enabled:!1},y:{enabled:!1}},legend:{additionalItems:[{type:J.AREA,name:"Poor area"},{type:J.AREA,name:"Satisfactory area"},{type:J.AREA,name:"Great area"},{type:J.QUARTILE,name:"Quartiles"}]}}),Ld=od.merge({},yd,{tooltip:od.merge({},vd,{wordLabel:"Word",valueLabel:"Value"}),wordCloud:{fontSizeMapsTo:"value",fontSizeRange:function(t,e){var n=Math.min(t.width,t.height);return[20*n/400,75*n/400]},wordMapsTo:"word"}}),Dd=od.merge({},yd,{pie:{labels:{formatter:null,enabled:!0},alignment:V.LEFT,sortFunction:null}}),Rd=od.merge({},yd,{legend:{enabled:!1},gauge:{type:q.SEMI,arcWidth:16,deltaArrow:{size:function(t){return t/8},enabled:!0},showPercentageSymbol:!0,status:null,numberSpacing:10,deltaFontSize:function(t){return t/8},valueFontSize:function(t){return t/2.5},numberFormatter:function(t){return t.toFixed(2)%1!==0?t.toFixed(2).toLocaleString():t.toFixed().toLocaleString()},alignment:V.LEFT}}),Id=od.merge({},Dd,{donut:{center:{numberFontSize:function(t){return Math.min(t/100*24,24)+"px"},titleFontSize:function(t){return Math.min(t/100*15,15)+"px"},titleYPosition:function(t){return Math.min(t/80*20,20)},numberFormatter:function(t){return Math.floor(t).toLocaleString()}},alignment:V.LEFT}}),Nd=od.merge({},yd,{legend:{enabled:!1},meter:{height:8,statusBar:{percentageIndicator:{enabled:!0}}}}),jd=od.merge({},yd,{radar:{axes:{angle:"key",value:"value"},alignment:V.LEFT},tooltip:{gridline:{enabled:!0},valueFormatter:function(t){return null!==t&&void 0!==t?t:"N/A"}}}),Vd=od.merge({},bd,{comboChartTypes:[]}),Bd=od.merge({},yd,{data:od.merge(yd.data,{groupMapsTo:"name"})}),Gd=od.merge({},yd,at,{data:od.merge(yd.data,{groupMapsTo:"name"})}),Ud={chart:yd,axisChart:_d,simpleBarChart:Od,groupedBarChart:xd,stackedBarChart:wd,boxplotChart:Ed,bubbleChart:Pd,bulletChart:kd,lineChart:Md,areaChart:Cd,stackedAreaChart:Ad,scatterChart:Sd,lollipopChart:Td,pieChart:Dd,donutChart:Id,meterChart:Nd,radarChart:jd,gaugeChart:Rd,comboChart:Vd,treemapChart:Bd,circlePackChart:Gd,wordCloudChart:Ld},Hd="$";function zd(){}function Fd(t,e){var n=new zd;if(t instanceof zd)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==e)while(++i<o)n.set(i,t[i]);else while(++i<o)n.set(e(r=t[i],i,t),r)}else if(t)for(var a in t)n.set(a,t[a]);return n}zd.prototype=Fd.prototype={constructor:zd,has:function(t){return Hd+t in this},get:function(t){return this[Hd+t]},set:function(t,e){return this[Hd+t]=e,this},remove:function(t){var e=Hd+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===Hd&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===Hd&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===Hd&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===Hd&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===Hd&&++t;return t},empty:function(){for(var t in this)if(t[0]===Hd)return!1;return!0},each:function(t){for(var e in this)e[0]===Hd&&t(this[e],e.slice(1),this)}};var Wd=Fd;function qd(){}var Yd=Wd.prototype;function Zd(t,e){var n=new qd;if(t instanceof qd)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)while(++r<i)n.add(t[r]);else while(++r<i)n.add(e(t[r],r,t))}return n}qd.prototype=Zd.prototype={constructor:qd,has:Yd.has,add:function(t){return t+="",this[Hd+t]=t,this},remove:Yd.remove,clear:Yd.clear,values:Yd.keys,size:Yd.size,empty:Yd.empty,each:Yd.each};var Xd=function(t){var e=[];for(var n in t)e.push(t[n]);return e},Kd=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},$d=function(t){return 1===t.length&&(t=Qd(t)),{left:function(e,n,r,i){null==r&&(r=0),null==i&&(i=e.length);while(r<i){var o=r+i>>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){null==r&&(r=0),null==i&&(i=e.length);while(r<i){var o=r+i>>>1;t(e[o],n)>0?i=o:r=o+1}return r}}};function Qd(t){return function(e,n){return Kd(t(e),n)}}var Jd=$d(Kd),tv=Jd.right,ev=(Jd.left,tv);var nv=function(t){return null===t?NaN:+t},rv=function(t,e){var n,r,i,o=t.length,a=-1;if(null==e){while(++a<o)if(null!=(n=t[a])&&n>=n){r=i=n;while(++a<o)null!=(n=t[a])&&(r>n&&(r=n),i<n&&(i=n))}}else while(++a<o)if(null!=(n=e(t[a],a,t))&&n>=n){r=i=n;while(++a<o)null!=(n=e(t[a],a,t))&&(r>n&&(r=n),i<n&&(i=n))}return[r,i]},iv=Array.prototype,ov=(iv.slice,iv.map,function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);while(++r<i)o[r]=t+r*n;return o}),av=Math.sqrt(50),sv=Math.sqrt(10),uv=Math.sqrt(2),cv=function(t,e,n){var r,i,o,a,s=-1;if(e=+e,t=+t,n=+n,t===e&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(a=lv(t,e,n))||!isFinite(a))return[];if(a>0){t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));while(++s<i)o[s]=(t+s)*a}else{t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(i=Math.ceil(t-e+1));while(++s<i)o[s]=(t-s)/a}return r&&o.reverse(),o};function lv(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=av?10:o>=sv?5:o>=uv?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=av?10:o>=sv?5:o>=uv?2:1)}function hv(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=av?i*=10:o>=sv?i*=5:o>=uv&&(i*=2),e<t?-i:i}var fv=function(t,e,n){if(null==n&&(n=nv),r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t),s=+n(t[o+1],o+1,t);return a+(s-a)*(i-o)}},pv=function(t,e){var n,r,i=t.length,o=-1;if(null==e){while(++o<i)if(null!=(n=t[o])&&n>=n){r=n;while(++o<i)null!=(n=t[o])&&n>r&&(r=n)}}else while(++o<i)if(null!=(n=e(t[o],o,t))&&n>=n){r=n;while(++o<i)null!=(n=e(t[o],o,t))&&n>r&&(r=n)}return r},dv=function(t,e){var n,r,i=t.length,o=-1;if(null==e){while(++o<i)if(null!=(n=t[o])&&n>=n){r=n;while(++o<i)null!=(n=t[o])&&r>n&&(r=n)}}else while(++o<i)if(null!=(n=e(t[o],o,t))&&n>=n){r=n;while(++o<i)null!=(n=e(t[o],o,t))&&r>n&&(r=n)}return r},vv=function(t,e){var n,r=t.length,i=-1,o=0;if(null==e)while(++i<r)(n=+t[i])&&(o+=n);else while(++i<r)(n=+e(t[i],i,t))&&(o+=n);return o};function gv(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}var mv=Array.prototype,yv=mv.map,_v=mv.slice,bv={name:"implicit"};function Ov(){var t=Wd(),e=[],n=[],r=bv;function i(i){var o=i+"",a=t.get(o);if(!a){if(r!==bv)return r;t.set(o,a=e.push(i))}return n[(a-1)%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=Wd();var r,o,a=-1,s=n.length;while(++a<s)t.has(o=(r=n[a])+"")||t.set(o,e.push(r));return i},i.range=function(t){return arguments.length?(n=_v.call(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return Ov(e,n).unknown(r)},gv.apply(i,arguments),i}function xv(){var t,e,n=Ov().unknown(void 0),r=n.domain,i=n.range,o=[0,1],a=!1,s=0,u=0,c=.5;function l(){var n=r().length,l=o[1]<o[0],h=o[l-0],f=o[1-l];t=(f-h)/Math.max(1,n-s+2*u),a&&(t=Math.floor(t)),h+=(f-h-t*(n-s))*c,e=t*(1-s),a&&(h=Math.round(h),e=Math.round(e));var p=ov(n).map((function(e){return h+t*e}));return i(l?p.reverse():p)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),l()):r()},n.range=function(t){return arguments.length?(o=[+t[0],+t[1]],l()):o.slice()},n.rangeRound=function(t){return o=[+t[0],+t[1]],a=!0,l()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,l()):a},n.padding=function(t){return arguments.length?(s=Math.min(1,u=+t),l()):s},n.paddingInner=function(t){return arguments.length?(s=Math.min(1,t),l()):s},n.paddingOuter=function(t){return arguments.length?(u=+t,l()):u},n.align=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),l()):c},n.copy=function(){return xv(r(),o).round(a).paddingInner(s).paddingOuter(u).align(c)},gv.apply(l(),arguments)}var wv=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function Ev(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Sv(){}var Tv=.7,Mv=1/Tv,Cv="\\s*([+-]?\\d+)\\s*",Av="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Pv="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kv=/^#([0-9a-f]{3,8})$/,Lv=new RegExp("^rgb\\("+[Cv,Cv,Cv]+"\\)$"),Dv=new RegExp("^rgb\\("+[Pv,Pv,Pv]+"\\)$"),Rv=new RegExp("^rgba\\("+[Cv,Cv,Cv,Av]+"\\)$"),Iv=new RegExp("^rgba\\("+[Pv,Pv,Pv,Av]+"\\)$"),Nv=new RegExp("^hsl\\("+[Av,Pv,Pv]+"\\)$"),jv=new RegExp("^hsla\\("+[Av,Pv,Pv,Av]+"\\)$"),Vv={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 Bv(){return this.rgb().formatHex()}function Gv(){return Qv(this).formatHsl()}function Uv(){return this.rgb().formatRgb()}function Hv(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=kv.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?zv(e):3===n?new Yv(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?new Yv(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?new Yv(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=Lv.exec(t))?new Yv(e[1],e[2],e[3],1):(e=Dv.exec(t))?new Yv(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Rv.exec(t))?Fv(e[1],e[2],e[3],e[4]):(e=Iv.exec(t))?Fv(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Nv.exec(t))?$v(e[1],e[2]/100,e[3]/100,1):(e=jv.exec(t))?$v(e[1],e[2]/100,e[3]/100,e[4]):Vv.hasOwnProperty(t)?zv(Vv[t]):"transparent"===t?new Yv(NaN,NaN,NaN,0):null}function zv(t){return new Yv(t>>16&255,t>>8&255,255&t,1)}function Fv(t,e,n,r){return r<=0&&(t=e=n=NaN),new Yv(t,e,n,r)}function Wv(t){return t instanceof Sv||(t=Hv(t)),t?(t=t.rgb(),new Yv(t.r,t.g,t.b,t.opacity)):new Yv}function qv(t,e,n,r){return 1===arguments.length?Wv(t):new Yv(t,e,n,null==r?1:r)}function Yv(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Zv(){return"#"+Kv(this.r)+Kv(this.g)+Kv(this.b)}function Xv(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(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 Kv(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function $v(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new tg(t,e,n,r)}function Qv(t){if(t instanceof tg)return new tg(t.h,t.s,t.l,t.opacity);if(t instanceof Sv||(t=Hv(t)),!t)return new tg;if(t instanceof tg)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new tg(a,s,u,t.opacity)}function Jv(t,e,n,r){return 1===arguments.length?Qv(t):new tg(t,e,n,null==r?1:r)}function tg(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function eg(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 ng(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}wv(Sv,Hv,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Bv,formatHex:Bv,formatHsl:Gv,formatRgb:Uv,toString:Uv}),wv(Yv,qv,Ev(Sv,{brighter:function(t){return t=null==t?Mv:Math.pow(Mv,t),new Yv(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Tv:Math.pow(Tv,t),new Yv(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:Zv,formatHex:Zv,formatRgb:Xv,toString:Xv})),wv(tg,Jv,Ev(Sv,{brighter:function(t){return t=null==t?Mv:Math.pow(Mv,t),new tg(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Tv:Math.pow(Tv,t),new tg(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Yv(eg(t>=240?t-240:t+120,i,r),eg(t,i,r),eg(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var rg=function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<e-1?t[r+2]:2*o-i;return ng((n-r/e)*e,a,i,o,s)}},ig=function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return ng((n-r/e)*e,i,o,a,s)}},og=function(t){return function(){return t}};function ag(t,e){return function(n){return t+n*e}}function sg(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)}}function ug(t){return 1===(t=+t)?cg:function(e,n){return n-e?sg(e,n,t):og(isNaN(e)?n:e)}}function cg(t,e){var n=e-t;return n?ag(t,n):og(isNaN(t)?e:t)}var lg=function t(e){var n=ug(e);function r(t,e){var r=n((t=qv(t)).r,(e=qv(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=cg(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function hg(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=qv(e[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}hg(rg),hg(ig);var fg=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}};function pg(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function dg(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=wg(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}var vg=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}},gg=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},mg=function(t,e){var n,r={},i={};for(n in null!==t&&"object"===typeof t||(t={}),null!==e&&"object"===typeof e||(e={}),e)n in t?r[n]=wg(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},yg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_g=new RegExp(yg.source,"g");function bg(t){return function(){return t}}function Og(t){return function(e){return t(e)+""}}var xg=function(t,e){var n,r,i,o=yg.lastIndex=_g.lastIndex=0,a=-1,s=[],u=[];t+="",e+="";while((n=yg.exec(t))&&(r=_g.exec(e)))(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:gg(n,r)})),o=_g.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?Og(u[0].x):bg(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)s[(n=u[r]).i]=n.x(t);return s.join("")})},wg=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?og(e):("number"===r?gg:"string"===r?(n=Hv(e))?(e=n,lg):xg:e instanceof Hv?lg:e instanceof Date?vg:pg(e)?fg:Array.isArray(e)?dg:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?mg:gg)(t,e)},Eg=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}},Sg=function(t){return function(){return t}},Tg=function(t){return+t},Mg=[0,1];function Cg(t){return t}function Ag(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Sg(isNaN(e)?NaN:.5)}function Pg(t){var e,n=t[0],r=t[t.length-1];return n>r&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function kg(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=Ag(i,r),o=n(a,o)):(r=Ag(r,i),o=n(o,a)),function(t){return o(r(t))}}function Lg(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());while(++a<r)i[a]=Ag(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=ev(t,e,1,r)-1;return o[n](i[n](e))}}function Dg(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Rg(){var t,e,n,r,i,o,a=Mg,s=Mg,u=wg,c=Cg;function l(){return r=Math.min(a.length,s.length)>2?Lg:kg,i=o=null,h}function h(e){return isNaN(e=+e)?n:(i||(i=r(a.map(t),s,u)))(t(c(e)))}return h.invert=function(n){return c(e((o||(o=r(s,a.map(t),gg)))(n)))},h.domain=function(t){return arguments.length?(a=yv.call(t,Tg),c===Cg||(c=Pg(a)),l()):a.slice()},h.range=function(t){return arguments.length?(s=_v.call(t),l()):s.slice()},h.rangeRound=function(t){return s=_v.call(t),u=Eg,l()},h.clamp=function(t){return arguments.length?(c=t?Pg(a):Cg,h):c!==Cg},h.interpolate=function(t){return arguments.length?(u=t,l()):u},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,l()}}function Ig(t,e){return Rg()(t,e)}var Ng=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function jg(t){if(!(e=Ng.exec(t)))throw new Error("invalid format: "+t);var e;return new Vg({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 Vg(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+""}jg.prototype=Vg.prototype,Vg.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 Bg,Gg,Ug,Hg,zg=function(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)]},Fg=function(t){return t=zg(Math.abs(t)),t?t[1]:NaN},Wg=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Fg(e)/3)))-Fg(Math.abs(t)))},qg=function(t,e){return function(n,r){var i=n.length,o=[],a=0,s=t[0],u=0;while(i>0&&s>0){if(u+s+1>r&&(s=Math.max(1,r-u)),o.push(n.substring(i-=s,i+s)),(u+=s+1)>r)break;s=t[a=(a+1)%t.length]}return o.reverse().join(e)}},Yg=function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}},Zg=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(e+1):t},Xg=function(t,e){var n=zg(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(Bg=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+zg(t,Math.max(0,e+o-1))[0]},Kg=function(t,e){var n=zg(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},$g={"%":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 Kg(100*t,e)},r:Kg,s:Xg,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Qg=function(t){return t},Jg=Array.prototype.map,tm=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],em=function(t){var e=void 0===t.grouping||void 0===t.thousands?Qg:qg(Jg.call(t.grouping,Number),t.thousands+""),n=void 0===t.currency?"":t.currency[0]+"",r=void 0===t.currency?"":t.currency[1]+"",i=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?Qg:Yg(Jg.call(t.numerals,String)),a=void 0===t.percent?"%":t.percent+"",s=void 0===t.minus?"-":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function c(t){t=jg(t);var c=t.fill,l=t.align,h=t.sign,f=t.symbol,p=t.zero,d=t.width,v=t.comma,g=t.precision,m=t.trim,y=t.type;"n"===y?(v=!0,y="g"):$g[y]||(void 0===g&&(g=12),m=!0,y="g"),(p||"0"===c&&"="===l)&&(p=!0,c="0",l="=");var _="$"===f?n:"#"===f&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",b="$"===f?r:/[%p]/.test(y)?a:"",O=$g[y],x=/[defgprs%]/.test(y);function w(t){var n,r,a,f=_,w=b;if("c"===y)w=O(t)+w,t="";else{t=+t;var E=t<0;if(t=isNaN(t)?u:O(Math.abs(t),g),m&&(t=Zg(t)),E&&0===+t&&(E=!1),f=(E?"("===h?h:s:"-"===h||"("===h?"":h)+f,w=("s"===y?tm[8+Bg/3]:"")+w+(E&&"("===h?")":""),x){n=-1,r=t.length;while(++n<r)if(a=t.charCodeAt(n),48>a||a>57){w=(46===a?i+t.slice(n+1):t.slice(n))+w,t=t.slice(0,n);break}}}v&&!p&&(t=e(t,1/0));var S=f.length+t.length+w.length,T=S<d?new Array(d-S+1).join(c):"";switch(v&&p&&(t=e(T+t,T.length?d-w.length:1/0),T=""),l){case"<":t=f+t+w+T;break;case"=":t=f+T+t+w;break;case"^":t=T.slice(0,S=T.length>>1)+f+t+w+T.slice(S);break;default:t=T+f+t+w;break}return o(t)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),w.toString=function(){return t+""},w}function l(t,e){var n=c((t=jg(t),t.type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Fg(e)/3))),i=Math.pow(10,-r),o=tm[8+r/3];return function(t){return n(i*t)+o}}return{format:c,formatPrefix:l}};function nm(t){return Gg=em(t),Ug=Gg.format,Hg=Gg.formatPrefix,Gg}nm({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var rm=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Fg(e)-Fg(t))+1},im=function(t){return Math.max(0,-Fg(Math.abs(t)))},om=function(t,e,n,r){var i,o=hv(t,e,n);switch(r=jg(null==r?",f":r),r.type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=Wg(o,a))||(r.precision=i),Hg(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=rm(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=im(o))||(r.precision=i-2*("%"===r.type));break}return Ug(r)};function am(t){var e=t.domain;return t.ticks=function(t){var n=e();return cv(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return om(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),o=0,a=i.length-1,s=i[o],u=i[a];return u<s&&(r=s,s=u,u=r,r=o,o=a,a=r),r=lv(s,u,n),r>0?(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,r=lv(s,u,n)):r<0&&(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,r=lv(s,u,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(u/r)*r,e(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(u*r)/r,e(i)),t},t}function sm(){var t=Ig(Cg,Cg);return t.copy=function(){return Dg(t,sm())},gv.apply(t,arguments),am(t)}var um=function(t,e){t=t.slice();var n,r=0,i=t.length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t};function cm(t){return Math.log(t)}function lm(t){return Math.exp(t)}function hm(t){return-Math.log(-t)}function fm(t){return-Math.exp(-t)}function pm(t){return isFinite(t)?+("1e"+t):t<0?0:t}function dm(t){return 10===t?pm:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function vm(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}function gm(t){return function(e){return-t(-e)}}function mm(t){var e,n,r=t(cm,lm),i=r.domain,o=10;function a(){return e=vm(o),n=dm(o),i()[0]<0?(e=gm(e),n=gm(n),t(hm,fm)):t(cm,lm),r}return r.base=function(t){return arguments.length?(o=+t,a()):o},r.domain=function(t){return arguments.length?(i(t),a()):i()},r.ticks=function(t){var r,a=i(),s=a[0],u=a[a.length-1];(r=u<s)&&(f=s,s=u,u=f);var c,l,h,f=e(s),p=e(u),d=null==t?10:+t,v=[];if(!(o%1)&&p-f<d){if(f=Math.round(f)-1,p=Math.round(p)+1,s>0){for(;f<p;++f)for(l=1,c=n(f);l<o;++l)if(h=c*l,!(h<s)){if(h>u)break;v.push(h)}}else for(;f<p;++f)for(l=o-1,c=n(f);l>=1;--l)if(h=c*l,!(h<s)){if(h>u)break;v.push(h)}}else v=cv(f,p,Math.min(p-f,d)).map(n);return r?v.reverse():v},r.tickFormat=function(t,i){if(null==i&&(i=10===o?".0e":","),"function"!==typeof i&&(i=Ug(i)),t===1/0)return i;null==t&&(t=10);var a=Math.max(1,o*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*o<o-.5&&(r*=o),r<=a?i(t):""}},r.nice=function(){return i(um(i(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function ym(){var t=mm(Rg()).domain([1,10]);return t.copy=function(){return Dg(t,ym()).base(t.base())},gv.apply(t,arguments),t}var _m=new Date,bm=new Date;function Om(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r)||!(o>0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a<n&&n<r);return s},i.filter=function(n){return Om((function(e){if(e>=e)while(t(e),!n(e))e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)while(++r<=0)while(e(t,-1),!n(t));else while(--r>=0)while(e(t,1),!n(t));}))},n&&(i.count=function(e,r){return _m.setTime(+e),bm.setTime(+r),t(_m),t(bm),Math.floor(n(_m,bm))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t===0}:function(e){return i.count(0,e)%t===0}):i:null}),i}var xm=Om((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()}));xm.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Om((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 wm=xm,Em=(xm.range,Om((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()}))),Sm=Em,Tm=(Em.range,1e3),Mm=6e4,Cm=36e5,Am=864e5,Pm=6048e5;function km(t){return Om((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())*Mm)/Pm}))}var Lm=km(0),Dm=km(1),Rm=km(2),Im=km(3),Nm=km(4),jm=km(5),Vm=km(6),Bm=(Lm.range,Dm.range,Rm.range,Im.range,Nm.range,jm.range,Vm.range,Om((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())*Mm)/Am}),(function(t){return t.getDate()-1}))),Gm=Bm,Um=(Bm.range,Om((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Tm-t.getMinutes()*Mm)}),(function(t,e){t.setTime(+t+e*Cm)}),(function(t,e){return(e-t)/Cm}),(function(t){return t.getHours()}))),Hm=Um,zm=(Um.range,Om((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Tm)}),(function(t,e){t.setTime(+t+e*Mm)}),(function(t,e){return(e-t)/Mm}),(function(t){return t.getMinutes()}))),Fm=zm,Wm=(zm.range,Om((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*Tm)}),(function(t,e){return(e-t)/Tm}),(function(t){return t.getUTCSeconds()}))),qm=Wm,Ym=(Wm.range,Om((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t})));Ym.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Om((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Ym:null};var Zm=Ym;Ym.range;function Xm(t){return Om((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)/Pm}))}var Km=Xm(0),$m=Xm(1),Qm=Xm(2),Jm=Xm(3),ty=Xm(4),ey=Xm(5),ny=Xm(6),ry=(Km.range,$m.range,Qm.range,Jm.range,ty.range,ey.range,ny.range,Om((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/Am}),(function(t){return t.getUTCDate()-1}))),iy=ry,oy=(ry.range,Om((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()})));oy.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Om((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 ay=oy;oy.range;function sy(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 uy(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 cy(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function ly(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,c=_y(i),l=by(i),h=_y(o),f=by(o),p=_y(a),d=by(a),v=_y(s),g=by(s),m=_y(u),y=by(u),_={a:D,A:R,b:I,B:N,c:null,d:Uy,e:Uy,f:qy,H:Hy,I:zy,j:Fy,L:Wy,m:Yy,M:Zy,p:j,q:V,Q:x_,s:w_,S:Xy,u:Ky,U:$y,V:Qy,w:Jy,W:t_,x:null,X:null,y:e_,Y:n_,Z:r_,"%":O_},b={a:B,A:G,b:U,B:H,c:null,d:i_,e:i_,f:c_,H:o_,I:a_,j:s_,L:u_,m:l_,M:h_,p:z,q:F,Q:x_,s:w_,S:f_,u:p_,U:d_,V:v_,w:g_,W:m_,x:null,X:null,y:y_,Y:__,Z:b_,"%":O_},O={a:T,A:M,b:C,B:A,c:P,d:ky,e:ky,f:jy,H:Dy,I:Dy,j:Ly,L:Ny,m:Py,M:Ry,p:S,q:Ay,Q:By,s:Gy,S:Iy,u:xy,U:wy,V:Ey,w:Oy,W:Sy,x:k,X:L,y:My,Y:Ty,Z:Cy,"%":Vy};function x(t,e){return function(n){var r,i,o,a=[],s=-1,u=0,c=t.length;n instanceof Date||(n=new Date(+n));while(++s<c)37===t.charCodeAt(s)&&(a.push(t.slice(u,s)),null!=(i=py[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),u=s+1);return a.push(t.slice(u,s)),a.join("")}}function w(t,e){return function(n){var r,i,o=cy(1900,void 0,1),a=E(o,t,n+="",0);if(a!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(!e||"Z"in o||(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=uy(cy(o.y,0,1)),i=r.getUTCDay(),r=i>4||0===i?$m.ceil(r):$m(r),r=iy.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=sy(cy(o.y,0,1)),i=r.getDay(),r=i>4||0===i?Dm.ceil(r):Dm(r),r=Gm.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?uy(cy(o.y,0,1)).getUTCDay():sy(cy(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,uy(o)):sy(o)}}function E(t,e,n,r){var i,o,a=0,s=e.length,u=n.length;while(a<s){if(r>=u)return-1;if(i=e.charCodeAt(a++),37===i){if(i=e.charAt(a++),o=O[i in py?e.charAt(a++):i],!o||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function S(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=l[r[0].toLowerCase()],n+r[0].length):-1}function T(t,e,n){var r=p.exec(e.slice(n));return r?(t.w=d[r[0].toLowerCase()],n+r[0].length):-1}function M(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=f[r[0].toLowerCase()],n+r[0].length):-1}function C(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=y[r[0].toLowerCase()],n+r[0].length):-1}function A(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=g[r[0].toLowerCase()],n+r[0].length):-1}function P(t,n,r){return E(t,e,n,r)}function k(t,e,r){return E(t,n,e,r)}function L(t,e,n){return E(t,r,e,n)}function D(t){return a[t.getDay()]}function R(t){return o[t.getDay()]}function I(t){return u[t.getMonth()]}function N(t){return s[t.getMonth()]}function j(t){return i[+(t.getHours()>=12)]}function V(t){return 1+~~(t.getMonth()/3)}function B(t){return a[t.getUTCDay()]}function G(t){return o[t.getUTCDay()]}function U(t){return u[t.getUTCMonth()]}function H(t){return s[t.getUTCMonth()]}function z(t){return i[+(t.getUTCHours()>=12)]}function F(t){return 1+~~(t.getUTCMonth()/3)}return(_.x=x(n,_),_.X=x(r,_),_.c=x(e,_),b.x=x(n,b),b.X=x(r,b),b.c=x(e,b),{format:function(t){var e=x(t+="",_);return e.toString=function(){return t},e},parse:function(t){var e=w(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=w(t+="",!0);return e.toString=function(){return t},e}})}var hy,fy,py={"-":"",_:" ",0:"0"},dy=/^\s*\d+/,vy=/^%/,gy=/[\\^$*+?|[\]().{}]/g;function my(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function yy(t){return t.replace(gy,"\\$&")}function _y(t){return new RegExp("^(?:"+t.map(yy).join("|")+")","i")}function by(t){var e={},n=-1,r=t.length;while(++n<r)e[t[n].toLowerCase()]=n;return e}function Oy(t,e,n){var r=dy.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function xy(t,e,n){var r=dy.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function wy(t,e,n){var r=dy.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Ey(t,e,n){var r=dy.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Sy(t,e,n){var r=dy.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ty(t,e,n){var r=dy.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function My(t,e,n){var r=dy.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Cy(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 Ay(t,e,n){var r=dy.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Py(t,e,n){var r=dy.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ky(t,e,n){var r=dy.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Ly(t,e,n){var r=dy.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Dy(t,e,n){var r=dy.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Ry(t,e,n){var r=dy.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Iy(t,e,n){var r=dy.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Ny(t,e,n){var r=dy.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function jy(t,e,n){var r=dy.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Vy(t,e,n){var r=vy.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function By(t,e,n){var r=dy.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Gy(t,e,n){var r=dy.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Uy(t,e){return my(t.getDate(),e,2)}function Hy(t,e){return my(t.getHours(),e,2)}function zy(t,e){return my(t.getHours()%12||12,e,2)}function Fy(t,e){return my(1+Gm.count(wm(t),t),e,3)}function Wy(t,e){return my(t.getMilliseconds(),e,3)}function qy(t,e){return Wy(t,e)+"000"}function Yy(t,e){return my(t.getMonth()+1,e,2)}function Zy(t,e){return my(t.getMinutes(),e,2)}function Xy(t,e){return my(t.getSeconds(),e,2)}function Ky(t){var e=t.getDay();return 0===e?7:e}function $y(t,e){return my(Lm.count(wm(t)-1,t),e,2)}function Qy(t,e){var n=t.getDay();return t=n>=4||0===n?Nm(t):Nm.ceil(t),my(Nm.count(wm(t),t)+(4===wm(t).getDay()),e,2)}function Jy(t){return t.getDay()}function t_(t,e){return my(Dm.count(wm(t)-1,t),e,2)}function e_(t,e){return my(t.getFullYear()%100,e,2)}function n_(t,e){return my(t.getFullYear()%1e4,e,4)}function r_(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+my(e/60|0,"0",2)+my(e%60,"0",2)}function i_(t,e){return my(t.getUTCDate(),e,2)}function o_(t,e){return my(t.getUTCHours(),e,2)}function a_(t,e){return my(t.getUTCHours()%12||12,e,2)}function s_(t,e){return my(1+iy.count(ay(t),t),e,3)}function u_(t,e){return my(t.getUTCMilliseconds(),e,3)}function c_(t,e){return u_(t,e)+"000"}function l_(t,e){return my(t.getUTCMonth()+1,e,2)}function h_(t,e){return my(t.getUTCMinutes(),e,2)}function f_(t,e){return my(t.getUTCSeconds(),e,2)}function p_(t){var e=t.getUTCDay();return 0===e?7:e}function d_(t,e){return my(Km.count(ay(t)-1,t),e,2)}function v_(t,e){var n=t.getUTCDay();return t=n>=4||0===n?ty(t):ty.ceil(t),my(ty.count(ay(t),t)+(4===ay(t).getUTCDay()),e,2)}function g_(t){return t.getUTCDay()}function m_(t,e){return my($m.count(ay(t)-1,t),e,2)}function y_(t,e){return my(t.getUTCFullYear()%100,e,2)}function __(t,e){return my(t.getUTCFullYear()%1e4,e,4)}function b_(){return"+0000"}function O_(){return"%"}function x_(t){return+t}function w_(t){return Math.floor(+t/1e3)}function E_(t){return hy=ly(t),fy=hy.format,hy.parse,hy.utcFormat,hy.utcParse,hy}E_({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var S_=1e3,T_=60*S_,M_=60*T_,C_=24*M_,A_=7*C_,P_=30*C_,k_=365*C_;function L_(t){return new Date(t)}function D_(t){return t instanceof Date?+t:+new Date(+t)}function R_(t,e,n,r,i,o,a,s,u){var c=Ig(Cg,Cg),l=c.invert,h=c.domain,f=u(".%L"),p=u(":%S"),d=u("%I:%M"),v=u("%I %p"),g=u("%a %d"),m=u("%b %d"),y=u("%B"),_=u("%Y"),b=[[a,1,S_],[a,5,5*S_],[a,15,15*S_],[a,30,30*S_],[o,1,T_],[o,5,5*T_],[o,15,15*T_],[o,30,30*T_],[i,1,M_],[i,3,3*M_],[i,6,6*M_],[i,12,12*M_],[r,1,C_],[r,2,2*C_],[n,1,A_],[e,1,P_],[e,3,3*P_],[t,1,k_]];function O(s){return(a(s)<s?f:o(s)<s?p:i(s)<s?d:r(s)<s?v:e(s)<s?n(s)<s?g:m:t(s)<s?y:_)(s)}function x(e,n,r,i){if(null==e&&(e=10),"number"===typeof e){var o=Math.abs(r-n)/e,a=$d((function(t){return t[2]})).right(b,o);a===b.length?(i=hv(n/k_,r/k_,e),e=t):a?(a=b[o/b[a-1][2]<b[a][2]/o?a-1:a],i=a[1],e=a[0]):(i=Math.max(hv(n,r,e),1),e=s)}return null==i?e:e.every(i)}return c.invert=function(t){return new Date(l(t))},c.domain=function(t){return arguments.length?h(yv.call(t,D_)):h().map(L_)},c.ticks=function(t,e){var n,r=h(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=x(t,i,o,e),n=n?n.range(i,o+1):[],a?n.reverse():n},c.tickFormat=function(t,e){return null==e?O:u(e)},c.nice=function(t,e){var n=h();return(t=x(t,n[0],n[n.length-1],e))?h(um(n,t)):c},c.copy=function(){return Dg(c,R_(t,e,n,r,i,o,a,s,u))},c}var I_=function(){return gv.apply(R_(wm,Sm,Lm,Gm,Hm,Fm,qm,Zm,fy).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},N_=Om((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()})),j_=(N_.range,Om((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*Cm)}),(function(t,e){return(e-t)/Cm}),(function(t){return t.getUTCHours()}))),V_=(j_.range,Om((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*Mm)}),(function(t,e){return(e-t)/Mm}),(function(t){return t.getUTCMinutes()})));V_.range;var B_=Array.prototype.slice,G_=function(t){return function(){return t}},U_=function(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],s=a.length;o<i;++o)for(r=a,a=t[e[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},H_=function(t){var e=t.length,n=new Array(e);while(--e>=0)n[e]=e;return n};function z_(t,e){return t[e]}var F_=function(){var t=G_([]),e=H_,n=U_,r=z_;function i(i){var o,a,s=t.apply(this,arguments),u=i.length,c=s.length,l=new Array(c);for(o=0;o<c;++o){for(var h,f=s[o],p=l[o]=new Array(u),d=0;d<u;++d)p[d]=h=[0,+r(i[d],f,d,i)],h.data=i[d];p.key=f}for(o=0,a=e(l);o<c;++o)l[a[o]].index=o;return n(l,a),l}return i.keys=function(e){return arguments.length?(t="function"===typeof e?e:G_(B_.call(e)),i):t},i.value=function(t){return arguments.length?(r="function"===typeof t?t:G_(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?H_:"function"===typeof t?t:G_(B_.call(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?U_:t,i):n},i},W_=function(){return W_=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},W_.apply(this,arguments)},q_=function(){function t(t){this.state={options:{}},this.colorScale={},this.colorClassNames={},this.services=t}return t.prototype.getAllDataFromDomain=function(t){if(!this.getData())return null;var e=this.getOptions(),n=this.getData(),r=this.getDataGroups(),i=od.getProperty(e,"data").groupMapsTo,o=od.getProperty(e,"axes");return t&&(n=n.filter((function(e){return t.includes(e.group)}))),o&&Object.keys(o).forEach((function(t){var e=o[t].mapsTo,r=o[t].scaleType;if(r!==N.LINEAR&&r!==N.LOG||(n=n.map((function(t){var n;return W_(W_({},t),(n={},n[e]=null===t[e]?t[e]:Number(t[e]),n))}))),e&&o[t].domain)if(r===N.LABELS)n=n.filter((function(n){return o[t].domain.includes(n[e])}));else{var i=o[t].domain,a=i[0],s=i[1];n=n.filter((function(t){return!(e in t)||t[e]>=a&&t[e]<=s}))}})),n.filter((function(t){return r.find((function(e){return e.name===t[i]}))}))},t.prototype.getDisplayData=function(t){if(!this.get("data"))return null;var e=ct.items.status.ACTIVE,n=this.getDataGroups(t),r=this.getOptions().data.groupMapsTo,i=this.getAllDataFromDomain(t);return i.filter((function(t){return n.find((function(n){return n.name===t[r]&&n.status===e}))}))},t.prototype.getData=function(){return this.get("data")},t.prototype.isDataEmpty=function(){return!this.getData().length},t.prototype.setData=function(t){var e=this.sanitize(od.clone(t)),n=this.generateDataGroups(e);return this.set({data:e,dataGroups:n}),e},t.prototype.getDataGroups=function(t){var e=od.getProperty(this.getOptions(),"data","loading");return e?[]:t?this.get("dataGroups").filter((function(e){return t.includes(e.name)})):this.get("dataGroups")},t.prototype.getActiveDataGroups=function(t){var e=ct.items.status.ACTIVE;return this.getDataGroups(t).filter((function(t){return t.status===e}))},t.prototype.getDataGroupNames=function(t){var e=this.getDataGroups(t);return e.map((function(t){return t.name}))},t.prototype.getActiveDataGroupNames=function(t){var e=this.getActiveDataGroups(t);return e.map((function(t){return t.name}))},t.prototype.getGroupedData=function(t){var e=this.getDisplayData(t),n={},r=this.getOptions().data.groupMapsTo;return e.map((function(t){var e=t[r];null!==n[e]&&void 0!==n[e]?n[e].push(t):n[e]=[t]})),Object.keys(n).map((function(t){return{name:t,data:n[t]}}))},t.prototype.getDataValuesGroupedByKeys=function(t){var e=this,n=this.getOptions(),r=n.data.groupMapsTo,i=this.getDisplayData(t),o=Wd(i,(function(t){var n=e.services.cartesianScales.getDomainIdentifier(t);return t[n]})).keys(),a=this.services.cartesianScales.domainAxisPosition,s=n.axes[a].scaleType;s===N.TIME?o.sort((function(t,e){var n=new Date(t),r=new Date(e);return n-r})):s!==N.LOG&&s!==N.LINEAR||o.sort((function(t,e){return t-e}));var u=this.getDataGroupNames();return o.map((function(t){var n={sharedStackKey:t};return u.forEach((function(o){var a=i.find((function(n){var i=e.services.cartesianScales.getDomainIdentifier(n);return n[r]===o&&n[i].toString()===t})),s=e.services.cartesianScales.getRangeIdentifier(n);n[o]=a?a[s]:null})),n}))},t.prototype.getStackedData=function(t){var e=t.percentage,n=void 0!==e&&e,r=t.groups,i=void 0===r?null:r,o=this.getOptions(),a=o.data.groupMapsTo,s=this.getDataGroupNames(i),u=this.getDataValuesGroupedByKeys(i);if(n){var c=od.fromPairs(u.map((function(t){return[t.sharedStackKey,0]})));u.forEach((function(t){s.forEach((function(e){c[t.sharedStackKey]+=t[e]}))})),u.forEach((function(t){s.forEach((function(e){c[t.sharedStackKey]?t[e]=t[e]/c[t.sharedStackKey]*100:t[e]=0}))}))}return F_().keys(s)(u).map((function(t,e){return Object.keys(t).filter((function(t){return!isNaN(t)})).map((function(n){var r=t[n];return r[a]=s[e],r}))}))},t.prototype.getOptions=function(){return this.state.options},t.prototype.set=function(t,e){this.state=Object.assign({},this.state,t);var n=Object.assign({skipUpdate:!1,animate:!0},e);n.skipUpdate||this.update(n.animate)},t.prototype.get=function(t){return t?this.state[t]:this.state},t.prototype.setOptions=function(t){var e=this.getOptions();od.updateLegendAdditionalItems(e,t),this.set({options:od.merge(e,t)})},t.prototype.update=function(t){void 0===t&&(t=!0),this.getDisplayData()&&(this.updateAllDataGroups(),this.setCustomColorScale(),this.setColorClassNames(),this.services.events.dispatchEvent(et.Model.UPDATE,{animate:t}))},t.prototype.toggleDataLabel=function(t){var e=ct.items.status,n=e.ACTIVE,r=e.DISABLED,i=this.getDataGroups(),o=i.some((function(t){return t.status===r})),a=i.filter((function(t){return t.status===n}));if(o)if(1===a.length&&a[0].name===t)i.forEach((function(t,e){i[e].status=n}));else{var s=i.findIndex((function(e){return e.name===t}));i[s].status=i[s].status===r?n:r}else i.forEach((function(e,o){i[o].status=e.name===t?n:r}));var u=i.filter((function(t){return t.status===n})),c=this.getOptions(),l=i.some((function(t){return t.status===r}));c.data.selectedGroups=l?u.map((function(t){return t.name})):[],this.services.events.dispatchEvent(et.Legend.ITEMS_UPDATE,{dataGroups:i}),this.set({dataGroups:i})},t.prototype.getIsFilled=function(t,e,n,r){var i=this.getOptions();return i.getIsFilled?i.getIsFilled(t,e,n,r):r},t.prototype.getFillColor=function(t,e,n){var r=this.getOptions(),i=od.getProperty(this.colorScale,t);return r.getFillColor?r.getFillColor(t,e,n,i):i},t.prototype.getStrokeColor=function(t,e,n){var r=this.getOptions(),i=od.getProperty(this.colorScale,t);return r.getStrokeColor?r.getStrokeColor(t,e,n,i):i},t.prototype.isUserProvidedColorScaleValid=function(){var t=od.getProperty(this.getOptions(),"color","scale"),e=this.getDataGroups();return null!=t&&0!=Object.keys(t).length&&e.some((function(e){return Object.keys(t).includes(e.name)}))},t.prototype.getColorClassName=function(t){var e=this.colorClassNames(t.dataGroupName),n=t.originalClassName;return t.classNameTypes.forEach((function(r){return n=t.originalClassName?n+" "+r+"-"+e:r+"-"+e})),n},t.prototype.getStatus=function(){return null},t.prototype.getAllDataGroupsNames=function(){return this.allDataGroups},t.prototype.transformToTabularData=function(t){console.warn("We've updated the charting data format to be tabular by default. The current format you're using is deprecated and will be removed in v1.0, read more here https://carbon-design-system.github.io/carbon-charts/?path=/story/docs-tutorials--tabular-data-format");var e=[],n=t.datasets,r=t.labels;return n.forEach((function(t){t.data.forEach((function(n,i){var o,a=od.getProperty(t,"label");if(null===a){var s=od.getProperty(r,i);o=s||"Ungrouped"}else o=a;var u={group:o,key:r[i]};isNaN(n)?(u["value"]=n.value,u["date"]=n.date):u["value"]=n,e.push(u)}))})),e},t.prototype.getTabularData=function(t){return Array.isArray(t)?t:this.transformToTabularData(t)},t.prototype.sanitize=function(t){return t=this.getTabularData(t),t},t.prototype.updateAllDataGroups=function(){var t=this;this.allDataGroups?this.getDataGroupNames().forEach((function(e){-1===t.allDataGroups.indexOf(e)&&t.allDataGroups.push(e)})):this.allDataGroups=this.getDataGroupNames()},t.prototype.generateDataGroups=function(t){var e=this.getOptions().data.groupMapsTo,n=ct.items.status,r=n.ACTIVE,i=n.DISABLED,o=this.getOptions(),a=Wd(t,(function(t){return t[e]})).keys();if(o.data.selectedGroups.length){var s=o.data.selectedGroups.every((function(t){return a.includes(t)}));s||(o.data.selectedGroups=[])}var u=function(t){return!o.data.selectedGroups.length||o.data.selectedGroups.includes(t)?r:i};return a.map((function(t){return{name:t,status:u(t)}}))},t.prototype.setCustomColorScale=function(){var t=this;if(this.isUserProvidedColorScaleValid()){var e=this.getOptions(),n=od.getProperty(e,"color","scale");Object.keys(n).forEach((function(e){t.allDataGroups.includes(e)||console.warn('"'+e+'" does not exist in data groups.')}));var r=this.allDataGroups.filter((function(t){return n[t]}));r.forEach((function(e){return t.colorScale[e]=n[e]}))}},t.prototype.setColorClassNames=function(){var t=od.getProperty(this.getOptions(),"color","pairing"),e=od.getProperty(t,"numberOfVariants");(!e||e<this.allDataGroups.length)&&(e=this.allDataGroups.length);var n=od.getProperty(t,"option"),r=st.pairingOptions,i=e>5?14:e;n=n<=r[i+"-color"]?n:1;var o=this.allDataGroups.map((function(t,e){return i+"-"+n+"-"+(e%14+1)}));this.colorClassNames=Ov().range(o).domain(this.allDataGroups)},t}(),Y_=function(){function t(t,e){this.model=t,this.services=e,this.init()}return t.prototype.init=function(){},t.prototype.update=function(){},t.prototype.setModel=function(t){this.model=t},t.prototype.setServices=function(t){this.services=t},t}();function Z_(){}var X_=function(t){return null==t?Z_:function(){return this.querySelector(t)}},K_=function(t){"function"!==typeof t&&(t=X_(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=e[i],u=s.length,c=r[i]=new Array(u),l=0;l<u;++l)(o=s[l])&&(a=t.call(o,o.__data__,l,s))&&("__data__"in o&&(a.__data__=o.__data__),c[l]=a);return new TO(r,this._parents)};function $_(){return[]}var Q_=function(t){return null==t?$_:function(){return this.querySelectorAll(t)}},J_=function(t){"function"!==typeof t&&(t=Q_(t));for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,s=e[o],u=s.length,c=0;c<u;++c)(a=s[c])&&(r.push(t.call(a,a.__data__,c,s)),i.push(a));return new TO(r,i)},tb=function(t){return function(){return this.matches(t)}},eb=function(t){"function"!==typeof t&&(t=tb(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,u=r[i]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&u.push(o);return new TO(r,this._parents)},nb=function(t){return new Array(t.length)},rb=function(){return new TO(this._enter||this._groups.map(nb),this._parents)};function ib(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}ib.prototype={constructor:ib,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)}};var ob=function(t){return function(){return t}},ab="$";function sb(t,e,n,r,i,o){for(var a,s=0,u=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new ib(t,o[s]);for(;s<u;++s)(a=e[s])&&(i[s]=a)}function ub(t,e,n,r,i,o,a){var s,u,c,l={},h=e.length,f=o.length,p=new Array(h);for(s=0;s<h;++s)(u=e[s])&&(p[s]=c=ab+a.call(u,u.__data__,s,e),c in l?i[s]=u:l[c]=u);for(s=0;s<f;++s)c=ab+a.call(t,o[s],s,o),(u=l[c])?(r[s]=u,u.__data__=o[s],l[c]=null):n[s]=new ib(t,o[s]);for(s=0;s<h;++s)(u=e[s])&&l[p[s]]===u&&(i[s]=u)}var cb=function(t,e){if(!t)return p=new Array(this.size()),c=-1,this.each((function(t){p[++c]=t})),p;var n=e?ub:sb,r=this._parents,i=this._groups;"function"!==typeof t&&(t=ob(t));for(var o=i.length,a=new Array(o),s=new Array(o),u=new Array(o),c=0;c<o;++c){var l=r[c],h=i[c],f=h.length,p=t.call(l,l&&l.__data__,c,r),d=p.length,v=s[c]=new Array(d),g=a[c]=new Array(d),m=u[c]=new Array(f);n(l,h,v,g,m,p,e);for(var y,_,b=0,O=0;b<d;++b)if(y=v[b]){b>=O&&(O=b+1);while(!(_=g[O])&&++O<d);y._next=_||null}}return a=new TO(a,r),a._enter=s,a._exit=u,a},lb=function(){return new TO(this._exit||this._groups.map(nb),this._parents)},hb=function(t,e,n){var r=this.enter(),i=this,o=this.exit();return r="function"===typeof t?t(r):r.append(t+""),null!=e&&(i=e(i)),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},fb=function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,c=e[s],l=n[s],h=c.length,f=a[s]=new Array(h),p=0;p<h;++p)(u=c[p]||l[p])&&(f[p]=u);for(;s<r;++s)a[s]=e[s];return new TO(a,this._parents)},pb=function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},db=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=vb);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],u=s.length,c=i[o]=new Array(u),l=0;l<u;++l)(a=s[l])&&(c[l]=a);c.sort(e)}return new TO(i,this._parents).order()};function vb(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var gb=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},mb=function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},yb=function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},_b=function(){var t=0;return this.each((function(){++t})),t},bb=function(){return!this.node()},Ob=function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,s=o.length;a<s;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},xb="http://www.w3.org/1999/xhtml",wb={svg:"http://www.w3.org/2000/svg",xhtml:xb,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Eb=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),wb.hasOwnProperty(e)?{space:wb[e],local:t}:t};function Sb(t){return function(){this.removeAttribute(t)}}function Tb(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Mb(t,e){return function(){this.setAttribute(t,e)}}function Cb(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ab(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Pb(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)}}var kb=function(t,e){var n=Eb(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?Tb:Sb:"function"===typeof e?n.local?Pb:Ab:n.local?Cb:Mb)(n,e))},Lb=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function Db(t){return function(){this.style.removeProperty(t)}}function Rb(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ib(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}var Nb=function(t,e,n){return arguments.length>1?this.each((null==e?Db:"function"===typeof e?Ib:Rb)(t,e,null==n?"":n)):jb(this.node(),t)};function jb(t,e){return t.style.getPropertyValue(e)||Lb(t).getComputedStyle(t,null).getPropertyValue(e)}function Vb(t){return function(){delete this[t]}}function Bb(t,e){return function(){this[t]=e}}function Gb(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}var Ub=function(t,e){return arguments.length>1?this.each((null==e?Vb:"function"===typeof e?Gb:Bb)(t,e)):this.node()[t]};function Hb(t){return t.trim().split(/^|\s+/)}function zb(t){return t.classList||new Fb(t)}function Fb(t){this._node=t,this._names=Hb(t.getAttribute("class")||"")}function Wb(t,e){var n=zb(t),r=-1,i=e.length;while(++r<i)n.add(e[r])}function qb(t,e){var n=zb(t),r=-1,i=e.length;while(++r<i)n.remove(e[r])}function Yb(t){return function(){Wb(this,t)}}function Zb(t){return function(){qb(this,t)}}function Xb(t,e){return function(){(e.apply(this,arguments)?Wb:qb)(this,t)}}Fb.prototype={add:function(t){var e=this._names.indexOf(t);e<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 Kb=function(t,e){var n=Hb(t+"");if(arguments.length<2){var r=zb(this.node()),i=-1,o=n.length;while(++i<o)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof e?Xb:e?Yb:Zb)(n,e))};function $b(){this.textContent=""}function Qb(t){return function(){this.textContent=t}}function Jb(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}var tO=function(t){return arguments.length?this.each(null==t?$b:("function"===typeof t?Jb:Qb)(t)):this.node().textContent};function eO(){this.innerHTML=""}function nO(t){return function(){this.innerHTML=t}}function rO(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}var iO=function(t){return arguments.length?this.each(null==t?eO:("function"===typeof t?rO:nO)(t)):this.node().innerHTML};function oO(){this.nextSibling&&this.parentNode.appendChild(this)}var aO=function(){return this.each(oO)};function sO(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var uO=function(){return this.each(sO)};function cO(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===xb&&e.documentElement.namespaceURI===xb?e.createElement(t):e.createElementNS(n,t)}}function lO(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var hO=function(t){var e=Eb(t);return(e.local?lO:cO)(e)},fO=function(t){var e="function"===typeof t?t:hO(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))};function pO(){return null}var dO=function(t,e){var n="function"===typeof t?t:hO(t),r=null==e?pO:"function"===typeof e?e:X_(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))};function vO(){var t=this.parentNode;t&&t.removeChild(this)}var gO=function(){return this.each(vO)};function mO(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function yO(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var _O=function(t){return this.select(t?yO:mO)},bO=function(t){return arguments.length?this.property("__data__",t):this.node().__data__};function OO(t,e,n){var r=Lb(t),i=r.CustomEvent;"function"===typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function xO(t,e){return function(){return OO(this,t,e)}}function wO(t,e){return function(){return OO(this,t,e.apply(this,arguments))}}var EO=function(t,e){return this.each(("function"===typeof e?wO:xO)(t,e))},SO=[null];function TO(t,e){this._groups=t,this._parents=e}function MO(){return new TO([[document.documentElement]],SO)}TO.prototype=MO.prototype={constructor:TO,select:K_,selectAll:J_,filter:eb,data:cb,enter:rb,exit:lb,join:hb,merge:fb,order:pb,sort:db,call:gb,nodes:mb,node:yb,size:_b,empty:bb,each:Ob,attr:kb,style:Nb,property:Ub,classed:Kb,text:tO,html:iO,raise:aO,lower:uO,append:fO,insert:dO,remove:gO,clone:_O,datum:bO,on:rd,dispatch:EO};var CO,AO,PO=MO,kO=function(t){return"string"===typeof t?new TO([[document.querySelector(t)]],[document.documentElement]):new TO([[t]],SO)},LO={prefix:"bx",selectorTabbable:"\n a[href], area[href], input:not([disabled]):not([tabindex='-1']),\n button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),\n textarea:not([disabled]):not([tabindex='-1']),\n iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]\n "},DO=LO,RO=DO,IO=n("2da1"),NO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jO="DONT_STYLE_ME_css_styles_verifier",VO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return NO(e,t),e.getSVGElementSize=function(t,e){t.attr||(t=kO(t));var n,r,i,o,a={width:0,height:0},s=function(t){t&&Object.keys(a).forEach((function(e){if(t[e]){var n=t[e],r=parseFloat(n);n&&r>a[e]&&-1===(""+n).indexOf("%")&&(a[e]=r)}}))},u={width:t.attr("width"),height:t.attr("height")};try{n=t.node().getBBox(),r={width:n.width,height:n.height}}catch(h){}try{i=t.node().getBoundingClientRect(),o={width:i.width,height:i.height}}catch(h){}var c={width:t.node().clientWidth,height:t.node().clientHeight};if(e){if(e.useAttrs&&(s(u),a.width>0&&a.height>0))return a;if(e.useClientDimensions&&(s(c),a.width>0&&a.height>0))return c;if(e.useBBox&&(s(r),a.width>0&&a.height>0))return r;if(e.useBoundingRect&&(s(o),a.width>0&&a.height>0))return o}try{var l={width:od.getProperty(t.node(),"width","baseVal","value"),height:od.getProperty(t.node(),"height","baseVal","value")};s(l)}catch(h){s(c),s(r),s(u)}return a},e.appendOrSelect=function(t,e){var n=t.select(""+e);if(n.empty()){var r=e.split("#"),i=void 0,o=void 0;return 2===r.length?(i=r[0],r=r[1].split("."),o=r[0]):(r=e.split("."),i=r[0]),t.append(i).attr("id",o).attr("class",r.slice(1).join(" "))}return n},e.getAlignmentOffset=function(t,n,r){var i=e.getSVGElementSize(n,{useBBox:!0}),o=e.getSVGElementSize(r,{useAttr:!0}).width,a=0;return t===V.CENTER?a=Math.floor((o-i.width)/2):t===V.RIGHT&&(a=o-i.width),a},e.prototype.init=function(){this.styleHolderElement(),this.addSVGElement(),this.verifyCSSStylesBeingApplied(),this.model.getOptions().resizable&&this.addResizeListener(),this.addHolderListeners()},e.prototype.update=function(){this.styleHolderElement()},e.prototype.styleHolderElement=function(){var t=this.getHolder();kO(this.getHolder()).classed(RO.prefix+"--chart-holder",!0);var e=this.model.getOptions(),n=e.width,r=e.height;n!==this.width&&(t.style.width=n,this.width=n),r!==this.height&&(t.style.height=r,this.height=r)},e.prototype.getHolder=function(){return this.model.get("holder")},e.prototype.addSVGElement=function(){var t=this.model.getOptions(),e=od.getProperty(t,"style","prefix"),n=kO(this.getHolder()).append("svg").classed(RO.prefix+"--"+e+"--chart-svg",!0).attr("height","100%").attr("width","100%");n.append("g").attr("class",jO),this.svg=n.node()},e.prototype.verifyCSSStylesBeingApplied=function(){var t=this;setTimeout((function(){var e=kO(t.svg).select("g."+jO).node(),n=getComputedStyle(e);"hidden"===n.getPropertyValue("overflow")&&"0"===n.getPropertyValue("opacity")||console.error("Missing CSS styles for Carbon Charts. Please read the Carbon Charts getting started guide.")}))},e.prototype.setSVGMaxHeight=function(){if(!this.model.getOptions().height){var t=e.getSVGElementSize(kO(this.svg),{useBBox:!0}).height,n=kO(this.svg).attr("class"),r=kO(this.svg).selectAll("."+n+" > svg"),i=0;r.nodes().forEach((function(t){i+=Number(e.getSVGElementSize(kO(t),{useBBox:!0}).height)})),i<=t?kO(this.svg).attr("height",i):kO(this.svg).attr("height","100%")}},e.prototype.getMainSVG=function(){return this.svg},e.prototype.addHolderListeners=function(){var t=this,e=this.getHolder();e&&kO(e).on("mouseover",(function(){t.services.events.dispatchEvent(et.Chart.MOUSEOVER)})).on("mouseout",(function(){t.services.events.dispatchEvent(et.Chart.MOUSEOUT)}))},e.prototype.addResizeListener=function(){var t=this,e=this.getHolder();if(e){var n=e.clientWidth,r=e.clientHeight,i=od.debounce((function(i,o){e&&(Math.abs(n-e.clientWidth)>1||Math.abs(r-e.clientHeight)>1)&&(n=e.clientWidth,r=e.clientHeight,t.services.events.dispatchEvent(et.Chart.RESIZE))}),12.5),o=new IO["a"](i);o.observe(e)}},e}(Y_),BO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),GO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return BO(e,t),e.prototype.init=function(){this.documentFragment=document.createDocumentFragment()},e.prototype.addEventListener=function(t,e){this.documentFragment.addEventListener(t,e)},e.prototype.removeEventListener=function(t,e){this.documentFragment.removeEventListener(t,e)},e.prototype.dispatchEvent=function(t,e){var n;e?n=new CustomEvent(t,{detail:e}):(n=document.createEvent("Event"),n.initEvent(t,!1,!0)),this.documentFragment.dispatchEvent(n)},e}(Y_),UO=n("cf43"),HO=0,zO=0,FO=0,WO=1e3,qO=0,YO=0,ZO=0,XO="object"===typeof performance&&performance.now?performance:Date,KO="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function $O(){return YO||(KO(QO),YO=XO.now()+ZO)}function QO(){YO=0}function JO(){this._call=this._time=this._next=null}function tx(t,e,n){var r=new JO;return r.restart(t,e,n),r}function ex(){$O(),++HO;var t,e=CO;while(e)(t=YO-e._time)>=0&&e._call.call(null,t),e=e._next;--HO}function nx(){YO=(qO=XO.now())+ZO,HO=zO=0;try{ex()}finally{HO=0,ix(),YO=0}}function rx(){var t=XO.now(),e=t-qO;e>WO&&(ZO-=e,qO=t)}function ix(){var t,e,n=CO,r=1/0;while(n)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:CO=e);AO=t,ox(r)}function ox(t){if(!HO){zO&&(zO=clearTimeout(zO));var e=t-YO;e>24?(t<1/0&&(zO=setTimeout(nx,t-XO.now()-ZO)),FO&&(FO=clearInterval(FO))):(FO||(qO=XO.now(),FO=setInterval(rx,WO)),HO=1,KO(nx))}}JO.prototype=tx.prototype={constructor:JO,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?$O():+n)+(null==e?0:+e),this._next||AO===this||(AO?AO._next=this:CO=this,AO=this),this._call=t,this._time=n,ox()},stop:function(){this._call&&(this._call=null,this._time=1/0,ox())}};var ax=function(t,e,n){var r=new JO;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r},sx=Object(UO["a"])("start","end","cancel","interrupt"),ux=[],cx=0,lx=1,hx=2,fx=3,px=4,dx=5,vx=6,gx=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};bx(t,n,{name:e,index:r,group:i,on:sx,tween:ux,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:cx})};function mx(t,e){var n=_x(t,e);if(n.state>cx)throw new Error("too late; already scheduled");return n}function yx(t,e){var n=_x(t,e);if(n.state>fx)throw new Error("too late; already running");return n}function _x(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function bx(t,e,n){var r,i=t.__transition;function o(t){n.state=lx,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}function a(o){var c,l,h,f;if(n.state!==lx)return u();for(c in i)if(f=i[c],f.name===n.name){if(f.state===fx)return ax(a);f.state===px?(f.state=vx,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<e&&(f.state=vx,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(ax((function(){n.state===fx&&(n.state=px,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=hx,n.on.call("start",t,t.__data__,n.index,n.group),n.state===hx){for(n.state=fx,r=new Array(h=n.tween.length),c=0,l=-1;c<h;++c)(f=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(r[++l]=f);r.length=l+1}}function s(e){var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(u),n.state=dx,1),o=-1,a=r.length;while(++o<a)r[o].call(t,i);n.state===dx&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=vx,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=tx(o,0,n.time)}var Ox,xx,wx,Ex,Sx=function(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>hx&&n.state<dx,n.state=vx,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}},Tx=function(t){return this.each((function(){Sx(this,t)}))},Mx=180/Math.PI,Cx={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Ax=function(t,e,n,r,i,o){var a,s,u;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r<e*n&&(t=-t,e=-e,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*Mx,skewX:Math.atan(u)*Mx,scaleX:a,scaleY:s}};function Px(t){return"none"===t?Cx:(Ox||(Ox=document.createElement("DIV"),xx=document.documentElement,wx=document.defaultView),Ox.style.transform=t,t=wx.getComputedStyle(xx.appendChild(Ox),null).getPropertyValue("transform"),xx.removeChild(Ox),t=t.slice(7,-1).split(","),Ax(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function kx(t){return null==t?Cx:(Ex||(Ex=document.createElementNS("http://www.w3.org/2000/svg","g")),Ex.setAttribute("transform",t),(t=Ex.transform.baseVal.consolidate())?(t=t.matrix,Ax(t.a,t.b,t.c,t.d,t.e,t.f)):Cx)}function Lx(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}function o(t,r,i,o,a,s){if(t!==i||r!==o){var u=a.push("translate(",null,e,null,n);s.push({i:u-4,x:gg(t,i)},{i:u-2,x:gg(r,o)})}else(i||o)&&a.push("translate("+i+e+o+n)}function a(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:gg(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}function s(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:gg(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}function u(t,e,n,r,o,a){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:gg(t,n)},{i:s-2,x:gg(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}return function(e,n){var r=[],i=[];return e=t(e),n=t(n),o(e.translateX,e.translateY,n.translateX,n.translateY,r,i),a(e.rotate,n.rotate,r,i),s(e.skewX,n.skewX,r,i),u(e.scaleX,e.scaleY,n.scaleX,n.scaleY,r,i),e=n=null,function(t){var e,n=-1,o=i.length;while(++n<o)r[(e=i[n]).i]=e.x(t);return r.join("")}}}var Dx=Lx(Px,"px, ","px)","deg)"),Rx=Lx(kx,", ",")",")");function Ix(t,e){var n,r;return function(){var i=yx(this,t),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===e){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function Nx(t,e,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=yx(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:e,value:n},u=0,c=i.length;u<c;++u)if(i[u].name===e){i[u]=s;break}u===c&&i.push(s)}o.tween=i}}var jx=function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=_x(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?Ix:Nx)(n,t,e))};function Vx(t,e,n){var r=t._id;return t.each((function(){var t=yx(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return _x(t,r).value[e]}}var Bx=function(t,e){var n;return("number"===typeof e?gg:e instanceof Hv?lg:(n=Hv(e))?(e=n,lg):xg)(t,e)};function Gx(t){return function(){this.removeAttribute(t)}}function Ux(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Hx(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=e(r=a,n)}}function zx(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=e(r=a,n)}}function Fx(t,e,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return a=this.getAttribute(t),s=u+"",a===s?null:a===r&&s===i?o:(i=s,o=e(r=a,u));this.removeAttribute(t)}}function Wx(t,e,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return a=this.getAttributeNS(t.space,t.local),s=u+"",a===s?null:a===r&&s===i?o:(i=s,o=e(r=a,u));this.removeAttributeNS(t.space,t.local)}}var qx=function(t,e){var n=Eb(t),r="transform"===n?Rx:Bx;return this.attrTween(t,"function"===typeof e?(n.local?Wx:Fx)(n,r,Vx(this,"attr."+t,e)):null==e?(n.local?Ux:Gx)(n):(n.local?zx:Hx)(n,r,e))};function Yx(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Zx(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Xx(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Zx(t,i)),n}return i._value=e,i}function Kx(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Yx(t,i)),n}return i._value=e,i}var $x=function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!==typeof e)throw new Error;var r=Eb(t);return this.tween(n,(r.local?Xx:Kx)(r,e))};function Qx(t,e){return function(){mx(this,t).delay=+e.apply(this,arguments)}}function Jx(t,e){return e=+e,function(){mx(this,t).delay=e}}var tw=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?Qx:Jx)(e,t)):_x(this.node(),e).delay};function ew(t,e){return function(){yx(this,t).duration=+e.apply(this,arguments)}}function nw(t,e){return e=+e,function(){yx(this,t).duration=e}}var rw=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?ew:nw)(e,t)):_x(this.node(),e).duration};function iw(t,e){if("function"!==typeof e)throw new Error;return function(){yx(this,t).ease=e}}var ow=function(t){var e=this._id;return arguments.length?this.each(iw(e,t)):_x(this.node(),e).ease},aw=function(t){"function"!==typeof t&&(t=tb(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,u=r[i]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&u.push(o);return new Iw(r,this._parents,this._name,this._id)},sw=function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,c=e[s],l=n[s],h=c.length,f=a[s]=new Array(h),p=0;p<h;++p)(u=c[p]||l[p])&&(f[p]=u);for(;s<r;++s)a[s]=e[s];return new Iw(a,this._parents,this._name,this._id)};function uw(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}function cw(t,e,n){var r,i,o=uw(e)?mx:yx;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var lw=function(t,e){var n=this._id;return arguments.length<2?_x(this.node(),n).on.on(t):this.each(cw(n,t,e))};function hw(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}var fw=function(){return this.on("end.remove",hw(this._id))},pw=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=X_(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,u,c=r[a],l=c.length,h=o[a]=new Array(l),f=0;f<l;++f)(s=c[f])&&(u=t.call(s,s.__data__,f,c))&&("__data__"in s&&(u.__data__=s.__data__),h[f]=u,gx(h[f],e,n,f,h,_x(s,n)));return new Iw(o,this._parents,e,n)},dw=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=Q_(t));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u,c=r[s],l=c.length,h=0;h<l;++h)if(u=c[h]){for(var f,p=t.call(u,u.__data__,h,c),d=_x(u,n),v=0,g=p.length;v<g;++v)(f=p[v])&&gx(f,e,n,v,p,d);o.push(p),a.push(u)}return new Iw(o,a,e,n)},vw=PO.prototype.constructor,gw=function(){return new vw(this._groups,this._parents)};function mw(t,e){var n,r,i;return function(){var o=jb(this,t),a=(this.style.removeProperty(t),jb(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}function yw(t){return function(){this.style.removeProperty(t)}}function _w(t,e,n){var r,i,o=n+"";return function(){var a=jb(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}function bw(t,e,n){var r,i,o;return function(){var a=jb(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=jb(this,t)),a===u?null:a===r&&u===i?o:(i=u,o=e(r=a,s))}}function Ow(t,e){var n,r,i,o,a="style."+e,s="end."+a;return function(){var u=yx(this,t),c=u.on,l=null==u.value[a]?o||(o=yw(e)):void 0;c===n&&i===l||(r=(n=c).copy()).on(s,i=l),u.on=r}}var xw=function(t,e,n){var r="transform"===(t+="")?Dx:Bx;return null==e?this.styleTween(t,mw(t,r)).on("end.style."+t,yw(t)):"function"===typeof e?this.styleTween(t,bw(t,r,Vx(this,"style."+t,e))).each(Ow(this._id,t)):this.styleTween(t,_w(t,r,e),n).on("end.style."+t,null)};function ww(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Ew(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&ww(t,o,n)),r}return o._value=e,o}var Sw=function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!==typeof e)throw new Error;return this.tween(r,Ew(t,e,null==n?"":n))};function Tw(t){return function(){this.textContent=t}}function Mw(t){return function(){var e=t(this);this.textContent=null==e?"":e}}var Cw=function(t){return this.tween("text","function"===typeof t?Mw(Vx(this,"text",t)):Tw(null==t?"":t+""))};function Aw(t){return function(e){this.textContent=t.call(this,e)}}function Pw(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Aw(r)),e}return r._value=t,r}var kw=function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!==typeof t)throw new Error;return this.tween(e,Pw(t))},Lw=function(){for(var t=this._name,e=this._id,n=jw(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,c=0;c<u;++c)if(a=s[c]){var l=_x(a,e);gx(a,t,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Iw(r,this._parents,t,n)},Dw=function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var s={value:a},u={value:function(){0===--i&&o()}};n.each((function(){var n=yx(this,r),i=n.on;i!==t&&(e=(t=i).copy(),e._.cancel.push(s),e._.interrupt.push(s),e._.end.push(u)),n.on=e}))}))},Rw=0;function Iw(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Nw(t){return PO().transition(t)}function jw(){return++Rw}var Vw=PO.prototype;Iw.prototype=Nw.prototype={constructor:Iw,select:pw,selectAll:dw,filter:aw,merge:sw,selection:gw,transition:Lw,call:Vw.call,nodes:Vw.nodes,node:Vw.node,size:Vw.size,empty:Vw.empty,each:Vw.each,on:lw,attr:qx,attrTween:$x,style:xw,styleTween:Sw,text:Cw,textTween:kw,remove:fw,tween:jx,delay:tw,duration:rw,ease:ow,end:Dw};var Bw={time:null,delay:0,duration:250,ease:nt};function Gw(t,e){var n;while(!(n=t.__transition)||!(n=n[e]))if(!(t=t.parentNode))return Bw.time=$O(),Bw;return n}var Uw=function(t){var e,n;t instanceof Iw?(e=t._id,t=t._name):(e=jw(),(n=Bw).time=$O(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,c=0;c<u;++c)(a=s[c])&&gx(a,t,e,c,s,n||Gw(a,e));return new Iw(r,this._parents,t,e)};PO.prototype.interrupt=Tx,PO.prototype.transition=Uw;var Hw=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pendingTransitions={},e}return Hw(e,t),e.prototype.init=function(){var t=this;this.services.events.addEventListener(et.Model.UPDATE,(function(){t.pendingTransitions={}}))},e.prototype.getTransition=function(t,e){var n=this;if(!1===this.model.getOptions().animations||!1===e)return this.getInstantTransition(t);var r=Nw(t).duration(od.getProperty(gt,t,"duration")||gt.default.duration);return this.pendingTransitions[r._id]=r,r.on("end interrupt cancel",(function(){delete n.pendingTransitions[r._id]})),r},e.prototype.getInstantTransition=function(t){var e=this,n=Nw(t).duration(0);return this.pendingTransitions[n._id]=n,n.on("end interrupt cancel",(function(){delete e.pendingTransitions[n._id]})),n},e.prototype.getPendingTransitions=function(){return this.pendingTransitions},e}(Y_),Fw=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ww=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fw(e,t),e.appendOrUpdateLinearGradient=function(t){var e=t.svg.select("defs linearGradient#"+t.id);e.empty()&&(e=t.svg.append("defs").append("linearGradient").attr("id",t.id).attr("x1",t.x1).attr("x2",t.x2).attr("y1",t.y1).attr("y2",t.y2)),e.selectAll("stop").remove(),e.selectAll("stop").data(t.stops).enter().append("stop").attr("offset",(function(t){return t.offset})).style("stop-color",(function(t){return t.color})).style("stop-opacity",(function(t){return t.opacity}))},e.getOffsetRatio=function(t){var e=(100*Math.abs(t[1])/Math.abs(t[0]-t[1])).toFixed(2)+"%";return e},e.getStops=function(t,n){var r=t[0]<0&&t[1]>0,i=[{offset:"0%",color:n,opacity:"0.6"},{offset:"80%",color:n,opacity:"0"}];return r&&(i=[{offset:"0%",color:n,opacity:"0.6"},{offset:e.getOffsetRatio(t),color:n,opacity:"0"},{offset:"100%",color:n,opacity:"0.6"}]),i},e}(Y_);function qw(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===typeof t&&"[object Date]"===e?new Date(t.getTime()):"number"===typeof t||"[object Number]"===e?new Date(t):("string"!==typeof t&&"[object String]"!==e||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function Yw(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=qw(t),r=qw(e);return n.getFullYear()-r.getFullYear()}function Zw(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=qw(t),r=qw(e),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function Xw(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=qw(t),r=qw(e),i=Zw(n,r),o=Math.abs(Yw(n,r));n.setFullYear(n.getFullYear()-i*o);var a=Zw(n,r)===-i,s=i*(o-a);return 0===s?0:s}function Kw(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function $w(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=qw(t),n=e.getFullYear(),r=e.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function Qw(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=qw(t),r=Kw(e),i=n.getMonth()+r,o=new Date(0);o.setFullYear(n.getFullYear(),i,1),o.setHours(0,0,0,0);var a=$w(o);return n.setMonth(i,Math.min(a,n.getDate())),n}function Jw(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Kw(e);return Qw(t,12*n)}function tE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Kw(e);return Jw(t,-n)}function eE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=qw(t),r=qw(e),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return 12*i+o}function nE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=qw(t),r=qw(e),i=Zw(n,r),o=Math.abs(eE(n,r));n.setMonth(n.getMonth()-i*o);var a=Zw(n,r)===-i,s=i*(o-a);return 0===s?0:s}function rE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Kw(e);return Qw(t,-n)}var iE=6e4;function oE(t){var e=new Date(t.getTime()),n=Math.ceil(e.getTimezoneOffset());e.setSeconds(0,0);var r=e.getTime()%iE;return n*iE+r}function aE(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=qw(t);return e.setHours(0,0,0,0),e}var sE=864e5;function uE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=aE(t),r=aE(e),i=n.getTime()-oE(n),o=r.getTime()-oE(r);return Math.round((i-o)/sE)}function cE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=qw(t),r=qw(e),i=Zw(n,r),o=Math.abs(uE(n,r));n.setDate(n.getDate()-i*o);var a=Zw(n,r)===-i,s=i*(o-a);return 0===s?0:s}function lE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=qw(t),r=Kw(e);return n.setDate(n.getDate()+r),n}function hE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Kw(e);return lE(t,-n)}function fE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=qw(t),r=qw(e);return n.getTime()-r.getTime()}var pE=36e5;function dE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=fE(t,e)/pE;return n>0?Math.floor(n):Math.ceil(n)}function vE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=qw(t).getTime(),r=Kw(e);return new Date(n+r)}var gE=36e5;function mE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Kw(e);return vE(t,n*gE)}function yE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Kw(e);return mE(t,-n)}var _E=6e4;function bE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=fE(t,e)/_E;return n>0?Math.floor(n):Math.ceil(n)}var OE=6e4;function xE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Kw(e);return vE(t,n*OE)}function wE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Kw(e);return xE(t,-n)}function EE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=fE(t,e)/1e3;return n>0?Math.floor(n):Math.ceil(n)}function SE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Kw(e);return vE(t,1e3*n)}function TE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Kw(e);return SE(t,-n)}var ME=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),CE=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},AE=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},PE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.scaleTypes={top:null,right:null,bottom:null,left:null},e.scales={top:null,right:null,bottom:null,left:null},e}return ME(e,t),e.prototype.getDomainAxisPosition=function(t){var e,n=(void 0===t?{}:t).datum,r=void 0===n?null:n;if(this.dualAxes&&r){var i=this.model.getOptions(),o=i.data.groupMapsTo,a=od.getProperty(i,"axes",this.secondaryDomainAxisPosition),s=r[o];if((null===(e=a)||void 0===e?void 0:e.correspondingDatasets)&&a.correspondingDatasets.includes(s))return this.secondaryDomainAxisPosition}return this.domainAxisPosition},e.prototype.getRangeAxisPosition=function(t){var e,n=void 0===t?{}:t,r=n.datum,i=void 0===r?null:r,o=n.groups,a=void 0===o?null:o;if(this.dualAxes){var s=this.model.getOptions(),u=s.data.groupMapsTo,c=od.getProperty(s,"axes",this.secondaryRangeAxisPosition),l=void 0;if(null!==i?l=i[u]:a&&a.length>0&&(l=a[0]),(null===(e=c)||void 0===e?void 0:e.correspondingDatasets)&&c.correspondingDatasets.includes(l))return this.secondaryRangeAxisPosition}return this.rangeAxisPosition},e.prototype.getAxisOptions=function(t){return od.getProperty(this.model.getOptions(),"axes",t)},e.prototype.getDomainAxisOptions=function(){var t=this.getDomainAxisPosition();return this.getAxisOptions(t)},e.prototype.getRangeAxisOptions=function(){var t=this.getRangeAxisPosition();return this.getAxisOptions(t)},e.prototype.update=function(t){var e=this;void 0===t&&(t=!0),this.determineAxisDuality(),this.findDomainAndRangeAxes(),this.determineOrientation();var n=Object.keys(L).map((function(t){return L[t]}));n.forEach((function(t){e.scales[t]=e.createScale(t)}))},e.prototype.findDomainAndRangeAxes=function(){var t=this.findVerticalAxesPositions(),e=this.findHorizontalAxesPositions(),n=this.findDomainAndRangeAxesPositions(t,e);this.domainAxisPosition=n.primaryDomainAxisPosition,this.rangeAxisPosition=n.primaryRangeAxisPosition,this.isDualAxes()&&(this.secondaryDomainAxisPosition=n.secondaryDomainAxisPosition,this.secondaryRangeAxisPosition=n.secondaryRangeAxisPosition)},e.prototype.determineOrientation=function(){this.rangeAxisPosition!==L.LEFT&&this.rangeAxisPosition!==L.RIGHT||this.domainAxisPosition!==L.BOTTOM&&this.domainAxisPosition!==L.TOP?this.orientation=I.HORIZONTAL:this.orientation=I.VERTICAL},e.prototype.isDualAxes=function(){return this.dualAxes},e.prototype.determineAxisDuality=function(){var t,e,n,r,i=this.model.getOptions(),o=od.getProperty(i,"axes");((null===(t=o[L.LEFT])||void 0===t?void 0:t.correspondingDatasets)&&o[L.RIGHT]||(null===(e=o[L.RIGHT])||void 0===e?void 0:e.correspondingDatasets)&&o[L.LEFT]||(null===(n=o[L.TOP])||void 0===n?void 0:n.correspondingDatasets)&&o[L.BOTTOM]||(null===(r=o[L.BOTTOM])||void 0===r?void 0:r.correspondingDatasets)&&o[L.TOP])&&(this.dualAxes=!0)},e.prototype.getOrientation=function(){return this.orientation},e.prototype.getScaleByPosition=function(t){return this.scales[t]},e.prototype.getScaleTypeByPosition=function(t){return this.scaleTypes[t]},e.prototype.getDomainAxisScaleType=function(){var t=this.getDomainAxisPosition();return this.getScaleTypeByPosition(t)},e.prototype.getRangeAxisScaleType=function(){var t=this.getRangeAxisPosition();return this.getScaleTypeByPosition(t)},e.prototype.getDomainScale=function(){return this.scales[this.domainAxisPosition]},e.prototype.getRangeScale=function(){return this.scales[this.rangeAxisPosition]},e.prototype.getMainXAxisPosition=function(){var t=[L.BOTTOM,L.TOP];return[this.domainAxisPosition,this.rangeAxisPosition].find((function(e){return t.indexOf(e)>-1}))},e.prototype.getMainYAxisPosition=function(){var t=[L.LEFT,L.RIGHT];return[this.domainAxisPosition,this.rangeAxisPosition].find((function(e){return t.indexOf(e)>-1}))},e.prototype.getMainXScale=function(){return this.scales[this.getMainXAxisPosition()]},e.prototype.getMainYScale=function(){return this.scales[this.getMainYAxisPosition()]},e.prototype.getValueFromScale=function(t,e,n,r,i){var o,a=this.model.getOptions(),s=od.getProperty(a,"axes"),u=s[n],c=u.mapsTo,l=null!==od.getProperty(r,c)?r[c]:r;switch(e){case N.LABELS:o=t(l)+t.step()/2;break;case N.TIME:o=t(new Date(l));break;default:o=t(l)}return o},e.prototype.getBoundedScaledValues=function(t,e){var n=this.model.getOptions().bounds,r=this.scales[this.rangeAxisPosition],i=this.model.getOptions(),o=od.getProperty(i,"axes"),a=o[this.rangeAxisPosition],s=a.mapsTo,u=void 0!==t[s]?t[s]:t,c=[r(null!==od.getProperty(t,n.upperBoundMapsTo)?t[n.upperBoundMapsTo]:u),r(null!==od.getProperty(t,n.lowerBoundMapsTo)?t[n.lowerBoundMapsTo]:u)];return c},e.prototype.getValueThroughAxisPosition=function(t,e,n){var r=this.scaleTypes[t],i=this.scales[t];return this.getValueFromScale(i,r,t,e,n)},e.prototype.getDomainValue=function(t,e){var n=this.getDomainAxisPosition({datum:t});return this.getValueThroughAxisPosition(n,t,e)},e.prototype.getRangeValue=function(t,e){var n=this.getRangeAxisPosition({datum:t});return this.getValueThroughAxisPosition(n,t,e)},e.prototype.getMainXScaleType=function(){return this.getScaleTypeByPosition(this.getMainXAxisPosition())},e.prototype.getMainYScaleType=function(){return this.getScaleTypeByPosition(this.getMainYAxisPosition())},e.prototype.getDomainIdentifier=function(t){var e=this.model.getOptions();return od.getProperty(e,"axes",this.getDomainAxisPosition({datum:t}),"mapsTo")},e.prototype.getRangeIdentifier=function(t){var e=this.model.getOptions();return od.getProperty(e,"axes",this.getRangeAxisPosition({datum:t}),"mapsTo")},e.prototype.extendsDomain=function(t,e){var n=this.model.getOptions(),r=od.getProperty(n,"axes",t);if(r.scaleType===N.TIME){var i=od.getProperty(n,"timeScale","addSpaceOnEdges");return kE(e,i)}return LE(e,it.paddingRatio)},e.prototype.findVerticalAxesPositions=function(){var t=this.model.getOptions(),e=od.getProperty(t,"axes"),n=this.isDualAxes();return null===od.getProperty(e,L.LEFT)&&null!==od.getProperty(e,L.RIGHT)||!0===od.getProperty(e,L.RIGHT,"main")||n&&od.getProperty(e,L.LEFT,"correspondingDatasets")?{primary:L.RIGHT,secondary:L.LEFT}:{primary:L.LEFT,secondary:L.RIGHT}},e.prototype.findHorizontalAxesPositions=function(){var t=this.model.getOptions(),e=od.getProperty(t,"axes"),n=this.isDualAxes();return null===od.getProperty(e,L.BOTTOM)&&null!==od.getProperty(e,L.TOP)||!0===od.getProperty(e,L.TOP,"main")||n&&od.getProperty(e,L.BOTTOM,"correspondingDatasets")?{primary:L.TOP,secondary:L.BOTTOM}:{primary:L.BOTTOM,secondary:L.TOP}},e.prototype.findDomainAndRangeAxesPositions=function(t,e){var n=this.model.getOptions(),r=od.getProperty(n,"axes",t.primary),i=od.getProperty(n,"axes",e.primary),o=r.scaleType||N.LINEAR,a=i.scaleType||N.LINEAR,s={primaryDomainAxisPosition:null,secondaryDomainAxisPosition:null,primaryRangeAxisPosition:null,secondaryRangeAxisPosition:null};return s.primaryDomainAxisPosition=e.primary,s.primaryRangeAxisPosition=t.primary,s.secondaryDomainAxisPosition=e.secondary,s.secondaryRangeAxisPosition=t.secondary,(a!==N.LABELS&&a!==N.TIME&&o===N.LABELS||o===N.TIME)&&(s.primaryDomainAxisPosition=t.primary,s.primaryRangeAxisPosition=e.primary,s.secondaryDomainAxisPosition=t.secondary,s.secondaryRangeAxisPosition=e.secondary),s},e.prototype.getScaleDomain=function(t){var e=this.model.getOptions(),n=od.getProperty(e,"axes",t),r=od.getProperty(e,"bounds"),i=n.includeZero,o=od.getProperty(n,"scaleType")||N.LINEAR;if(this.model.isDataEmpty())return[];var a,s,u=this.model.getDisplayData(),c=n.extendLinearDomainBy,l=n.mapsTo,h=n.percentage,f=n.thresholds,p=it.ratio,d=p.reference,v=p.compareTo;if(n.domain)return o===N.LABELS?n.domain:(o===N.TIME&&(n.domain=n.domain.map((function(t){return void 0===t.getTime?new Date(t):t}))),this.extendsDomain(t,n.domain));if(h)return[0,100];if(n&&o===N.LABELS)return Wd(u,(function(t){return t[l]})).keys();var g=this.model.getDataGroupNames();if(o===N.LABELS_RATIO)return u.map((function(t){return t[d]+"/"+t[v]}));if(o===N.TIME)s=u.map((function(t){return+new Date(t[l])}));else if(r&&e.axes)s=[],u.forEach((function(t){s.push(t[l]),t[r.upperBoundMapsTo]&&s.push(t[r.upperBoundMapsTo]),t[r.lowerBoundMapsTo]&&s.push(t[r.lowerBoundMapsTo])}));else if(!0===n.stacked&&g&&t===this.getRangeAxisPosition()){var m=e.data.groupMapsTo,y=this.model.getDataValuesGroupedByKeys(g),_=u.filter((function(t){return!g.includes(t[m])})),b=y.map((function(t){t.sharedStackKey;var e=CE(t,["sharedStackKey"]);return vv(Xd(e))}));s=AE(b,_.map((function(t){return t[l]})))}else s=[],u.forEach((function(t){var e=t[l];Array.isArray(e)&&2===e.length?(s.push(e[0]),s.push(e[1])):(c&&s.push(Math.max(t[l],t[c])),s.push(e))}));return o!==N.TIME&&i&&s.push(0),f&&f.length>0&&f.forEach((function(t){var e=od.getProperty(t,"value");null!==e&&s.push(e)})),a=rv(s),a=this.extendsDomain(t,a),a},e.prototype.createScale=function(t){var e=this.model.getOptions(),n=od.getProperty(e,"axes",t);if(!n)return null;var r,i=od.getProperty(n,"scaleType")||N.LINEAR;return this.scaleTypes[t]=i,r=i===N.TIME?I_():i===N.LOG?ym().base(n.base||10):i===N.LABELS||i===N.LABELS_RATIO?xv():sm(),r.domain(this.getScaleDomain(t)),r},e.prototype.getHighestDomainThreshold=function(){var t=od.getProperty(this.model.getOptions(),"axes"),e=this.getDomainAxisPosition(),n=t[e].thresholds;if(!n)return null;var r=this.getDomainScale(),i=n.sort((function(t,e){return e.value-t.value}))[0],o=this.getScaleTypeByPosition(e);return o!==N.TIME||"string"!==typeof i.value&&void 0!==i.value.getTime||(i.value=new Date(i.value)),{threshold:i,scaleValue:r(i.value)}},e.prototype.getHighestRangeThreshold=function(){var t=od.getProperty(this.model.getOptions(),"axes"),e=this.getRangeAxisPosition(),n=t[e].thresholds;if(!n)return null;var r=this.getRangeScale(),i=n.sort((function(t,e){return e.value-t.value}))[0];return{threshold:i,scaleValue:r(i.value)}},e}(Y_);function kE(t,e){var n=new Date(t[0]),r=new Date(t[1]);return Xw(r,n)>1?[tE(n,e),Jw(r,e)]:nE(r,n)>1?[rE(n,e),Qw(r,e)]:cE(r,n)>1?[hE(n,e),lE(r,e)]:dE(r,n)>1?[yE(n,e),mE(r,e)]:bE(r,n)>30?[wE(n,30*e),xE(r,30*e)]:bE(r,n)>1?[wE(n,e),xE(r,e)]:EE(r,n)>15?[TE(n,15*e),SE(r,15*e)]:EE(r,n)>1?[TE(n,e),SE(r,e)]:[n,r]}function LE(t,e){var n=t[0],r=t[1],i=r-n,o=i*e,a=r<=0&&r+o>0?0:r+o,s=n>=0&&n-o<0?0:n-o;return[s,a]}function DE(t){this._context=t}DE.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);break}}};var RE=function(t){return new DE(t)},IE=function(){};function NE(t){this._context=t}NE.prototype={areaStart:IE,areaEnd:IE,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};var jE=function(t){return new NE(t)};function VE(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function BE(t){this._context=t}BE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:VE(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(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;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:VE(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var GE=function(t){return new BE(t)};function UE(t){this._context=t}UE.prototype={areaStart:IE,areaEnd:IE,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:VE(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var HE=function(t){return new UE(t)};function zE(t){this._context=t}zE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===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;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:VE(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var FE=function(t){return new zE(t)};function WE(t,e){this._basis=new BE(t),this._beta=e}WE.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0){var r,i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,u=-1;while(++u<=n)r=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(i+r*a),this._beta*e[u]+(1-this._beta)*(o+r*s))}this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var qE=function t(e){function n(t){return 1===e?new BE(t):new WE(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function YE(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function ZE(t,e){this._context=t,this._k=(1-e)/6}ZE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:YE(this,this._x1,this._y1);break}(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,this._x1=t,this._y1=e;break;case 2:this._point=3;default:YE(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var XE=function t(e){function n(t){return new ZE(t,e)}return n.tension=function(e){return t(+e)},n}(0);function KE(t,e){this._context=t,this._k=(1-e)/6}KE.prototype={areaStart:IE,areaEnd:IE,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:YE(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var $E=function t(e){function n(t){return new KE(t,e)}return n.tension=function(e){return t(+e)},n}(0);function QE(t,e){this._context=t,this._k=(1-e)/6}QE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===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;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:YE(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var JE=function t(e){function n(t){return new QE(t,e)}return n.tension=function(e){return t(+e)},n}(0),tS=Math.abs,eS=Math.atan2,nS=Math.cos,rS=Math.max,iS=Math.min,oS=Math.sin,aS=Math.sqrt,sS=1e-12,uS=Math.PI,cS=uS/2,lS=2*uS;function hS(t){return t>1?0:t<-1?uS:Math.acos(t)}function fS(t){return t>=1?cS:t<=-1?-cS:Math.asin(t)}function pS(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>sS){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>sS){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/l,a=(a*c+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function dS(t,e){this._context=t,this._alpha=e}dS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}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;default:pS(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var vS=function t(e){function n(t){return e?new dS(t,e):new ZE(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function gS(t,e){this._context=t,this._alpha=e}gS.prototype={areaStart:IE,areaEnd:IE,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:pS(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var mS=function t(e){function n(t){return e?new gS(t,e):new KE(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function yS(t,e){this._context=t,this._alpha=e}yS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:pS(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var _S=function t(e){function n(t){return e?new yS(t,e):new QE(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function bS(t){return t<0?-1:1}function OS(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(bS(o)+bS(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function xS(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function wS(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function ES(t){this._context=t}function SS(t){this._context=new TS(t)}function TS(t){this._context=t}function MS(t){return new ES(t)}function CS(t){return new SS(t)}function AS(t){this._context=t}function PS(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(i[r-1]=a[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}ES.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:wS(this,this._t0,xS(this,this._t0));break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,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,wS(this,xS(this,n=OS(this,t,e)),n);break;default:wS(this,this._t0,n=OS(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(SS.prototype=Object.create(ES.prototype)).point=function(t,e){ES.prototype.point.call(this,e,t)},TS.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},AS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=PS(t),i=PS(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var kS=function(t){return new AS(t)};function LS(t,e){this._context=t,this._t=e}LS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,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:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}this._x=t,this._y=e}};var DS=function(t){return new LS(t,.5)};function RS(t){return new LS(t,0)}function IS(t){return new LS(t,1)}var NS,jS,VS=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),BS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.curveTypes={curveLinear:RE,curveLinearClosed:jE,curveBasis:GE,curveBasisClosed:HE,curveBasisOpen:FE,curveBundle:qE,curveCardinal:XE,curveCardinalClosed:$E,curveCardinalOpen:JE,curveCatmullRom:vS,curveCatmullRomClosed:mS,curveCatmullRomOpen:_S,curveMonotoneX:MS,curveMonotoneY:CS,curveNatural:kS,curveStep:DS,curveStepAfter:IS,curveStepBefore:RS},e}return VS(e,t),e.prototype.getD3Curve=function(){var t="curveLinear",e=this.model.getOptions().curve;if(e&&(t="string"===typeof e?e:e.name),this.curveTypes[t]){var n=this.curveTypes[t];return e&&Object.keys(e).forEach((function(t){n[t]&&(n=n[t](e[t]))})),n}return console.warn("The curve type '"+t+"' is invalid, using 'curveLinear' instead"),this.curveTypes["curveLinear"]},e}(Y_),GS=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),US=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return GS(e,t),e.prototype.isZoomBarEnabled=function(){if(!this.services.cartesianScales)return!1;if(!od.getProperty(this.model.getOptions(),"zoomBar","top","enabled"))return!1;this.services.cartesianScales.findDomainAndRangeAxes();var t=this.services.cartesianScales.getMainXAxisPosition(),e=od.getProperty(this.model.getOptions(),"axes",t,"scaleType");return t===L.BOTTOM&&e===N.TIME},e.prototype.getZoomBarData=function(){var t=this.model.getZoomBarData();return t&&t.length>1?t:this.model.getDisplayData()},e.prototype.getDefaultZoomBarDomain=function(t){var e=t||this.services.zoom.getZoomBarData(),n=this.services.cartesianScales,r=n.getMainXAxisPosition(),i=n.getDomainIdentifier();return n.extendsDomain(r,rv(e,(function(t){return t[i]})))},e.prototype.handleDomainChange=function(t,e){void 0===e&&(e={dispatchEvent:!0}),this.model.set({zoomDomain:t},{animate:!1}),e.dispatchEvent&&this.services.events.dispatchEvent(et.ZoomDomain.CHANGE,{newDomain:t})},e.prototype.getZoomRatio=function(){return od.getProperty(this.model.getOptions(),"zoomBar","zoomRatio")},e.prototype.filterDataForRangeAxis=function(t,e){var n=this.model.get("zoomDomain"),r=Object.assign({stacked:!1},e),i=od.getProperty(this.model.getOptions(),"zoomBar","updateRangeAxis");if(this.isZoomBarEnabled()&&i&&n){var o=r.stacked?"sharedStackKey":this.services.cartesianScales.getDomainIdentifier(),a=t.filter((function(t){return new Date(t[o])>=n[0]&&new Date(t[o])<=n[1]}));if(a.length>0)return a}return t},e.prototype.zoomIn=function(t){void 0===t&&(t=this.getZoomRatio());var e=this.model.get("zoomDomain"),n=yt.handleWidth,r=this.services.cartesianScales.getMainXScale().copy();r.domain(this.getDefaultZoomBarDomain());var i=r(e[0]),o=r(e[1]);if(!(o-i<n+1)){var a=r.range(),s=o-i,u=Math.min((a[1]-a[0])/2*(t/2),s/2),c=i+u,l=o-u;c>=l&&(c=i+s/2-n/2,l=o-s/2+n/2);var h=[r.invert(c),r.invert(l)];e[0].valueOf()===h[0].valueOf()&&e[1].valueOf()===h[1].valueOf()||this.handleDomainChange(h)}},e.prototype.zoomOut=function(t){void 0===t&&(t=this.getZoomRatio());var e=this.model.get("zoomDomain"),n=this.services.cartesianScales.getMainXScale().copy();n.domain(this.getDefaultZoomBarDomain());var r=n(e[0]),i=n(e[1]),o=n.range(),a=(o[1]-o[0])/2*(t/2),s=Math.max(r-a,o[0]),u=Math.min(i+a,o[1]),c=[n.invert(s),n.invert(u)];e[0].valueOf()===c[0].valueOf()&&e[1].valueOf()===c[1].valueOf()||this.handleDomainChange(c)},e.prototype.resetZoomDomain=function(){var t=this.model.get("zoomDomain"),e=this.getDefaultZoomBarDomain();t[0].valueOf()===e[0].valueOf()&&t[1].valueOf()===e[1].valueOf()||this.handleDomainChange(e)},e.prototype.isMinZoomDomain=function(){var t=this.model.get("zoomDomain"),e=this.getDefaultZoomBarDomain();if(!t||!e)return!1;var n=t[1].valueOf()-t[0].valueOf(),r=e[1].valueOf()-e[0].valueOf(),i=od.getProperty(this.model.getOptions(),"zoomBar","minZoomRatio");return n/r<i},e.prototype.isMaxZoomDomain=function(){var t=this.model.get("zoomDomain"),e=this.getDefaultZoomBarDomain();return!(!t||!e||t[0].valueOf()!==e[0].valueOf()||t[1].valueOf()!==e[1].valueOf())},e.prototype.isEmptyState=function(){return 0===this.getZoomBarData().length},e.prototype.isZoomBarLoading=function(t){return od.getProperty(this.model.getOptions(),"zoomBar",t,"loading")},e.prototype.isZoomBarLocked=function(t){return od.getProperty(this.model.getOptions(),"zoomBar",t,"locked")},e}(Y_),HS=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return HS(e,t),e.prototype.zoomIn=function(t,e,n){var r,i,o,a=n||ot;t&&(r=t.x,i=t.y,o=2);var s=VO.getSVGElementSize(this.services.domUtils.getHolder(),{useClientDimensions:!0}),u=s.width,c=s.height;e.transition().duration(a.duration).ease(a.ease).attr("transform","translate("+u/2+", "+c/2+") scale("+o+") translate("+-r+","+-i+")"),this.services.events.dispatchEvent(et.CanvasZoom.CANVAS_ZOOM_IN,{element:kO(t)})},e.prototype.zoomOut=function(t,e){var n=e||ot;t.transition().duration(n.duration).ease(n.ease).attr("transform",""),this.services.events.dispatchEvent(et.CanvasZoom.CANVAS_ZOOM_OUT)},e}(Y_),FS=function(){function t(t,e,n){if(this.configs={},this.model=t,this.services=e,n&&(this.configs=n,this.configs.id)){var r=od.getProperty(this.model.getOptions(),"style","prefix");this.id=r+"--"+this.configs.id}this.parent||this.setParent(kO(this.services.domUtils.getMainSVG()))}return t.prototype.init=function(){},t.prototype.render=function(t){void 0===t&&(t=!0),console.error("render() method is not implemented")},t.prototype.destroy=function(){},t.prototype.setModel=function(t){this.model=t},t.prototype.setServices=function(t){this.services=t},t.prototype.setParent=function(t){var e=this.parent;if(this.parent=t,(!e||e.node()!==t.node())&&this.type){var n=od.getProperty(this.model.getOptions(),"style","prefix");this.parent.classed(RO.prefix+"--"+n+"--"+this.type,!0).attr("id",this.id),e&&e.classed(RO.prefix+"--"+n+"--"+this.type,!1).attr("id",this.id)}},t.prototype.getParent=function(){return this.parent},t.prototype.getContainerSVG=function(t){if(void 0===t&&(t={withinChartClip:!1}),this.type){var e=od.getProperty(this.model.getOptions(),"style","prefix"),n=this.id?"#"+this.id:"",r=VO.appendOrSelect(this.parent,"g"+n+"."+RO.prefix+"--"+e+"--"+this.type);if(t.withinChartClip){var i=this.model.get("chartClipId");i&&r.attr("clip-path","url(#"+i+")")}return r}return this.parent},t.prototype.getOptions=function(){if(this.configs.options){var t=od.merge({},this.model.getOptions(),this.configs.options);return t}return this.model.getOptions()},t}(),WS=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="legend",e}return WS(e,t),e.prototype.render=function(){var t=this,e=this.getContainerSVG().attr("role",a.GROUP).attr("data-name","legend-items"),n=this.getOptions(),r=od.getProperty(n,"legend"),i=this.model.getDataGroups(),o=od.getProperty(r,"order");o&&(i=this.sortDataGroups(i,o));var s=e.selectAll("g.legend-item").data(i,(function(t){return t.name})),u=s.enter().append("g").classed("legend-item",!0).classed("active",(function(t,e){return t.status===ct.items.status.ACTIVE})),c=od.getProperty(this.getOptions(),"legend","clickable");e.classed("clickable",c);var l=ct.checkbox.radius;u.append("rect").classed("checkbox",!0).merge(s.select("rect.checkbox")).attr("role",a.CHECKBOX).attr("tabindex",c?0:-1).attr("aria-label",(function(t){return t.name})).attr("aria-checked",(function(t){var e=t.status;return e===ct.items.status.ACTIVE})).attr("width",2*l).attr("height",2*l).attr("rx",1).attr("ry",1).attr("class",(function(e,n){return t.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:e.name,originalClassName:"checkbox"})})).style("fill",(function(e){return e.status===ct.items.status.ACTIVE?t.model.getFillColor(e.name)||t.model.getStrokeColor(e.name):null})).classed("active",(function(t,e){return t.status===ct.items.status.ACTIVE}));var h=u.append("text").merge(s.select("text"));this.truncateLegendText(h);var f={startingPoint:0,itemIndexInLine:0,lineNumber:0,lastLegendItemTextWidth:0};this.breakItemsIntoLines(u,"legend-item",f);var p=od.getProperty(n,"legend","additionalItems");if(p&&i.length){var d=this,v=e.selectAll("g.additional-item").data(p);v.exit().remove();var g,m=v.enter().append("g").merge(v).classed("additional-item",!0);m.selectAll("*").remove();var y=1;m.append("g").classed("icon",!0).each((function(t,e){var n=kO(this);g&&g==t.type?y++:(g=t.type,y=1),d.addAdditionalItem(n,t,y)}));var _=m.append("text").merge(m.select("text"));d.truncateLegendText(_),this.breakItemsIntoLines(m,"additional-item",f)}s.exit().on("mouseover",null).on("click",null).on("mouseout",null).remove(),c&&u.size()>0&&this.addEventListeners();var b=od.getProperty(r,"alignment"),O=VO.getAlignmentOffset(b,e,this.getParent());e.attr("transform","translate("+O+", 0)")},e.prototype.sortDataGroups=function(t,e){if(t.sort((function(t,n){return e.indexOf(t.name)-e.indexOf(n.name)})),e.length<t.length){var n=t.length-e.length,r=t.slice(n);return r.concat(t.slice(0,n))}return t},e.prototype.addAdditionalItem=function(t,e,n){var r=ct.area,i=r.width,s=r.height;if(e.type===J.RADIUS){var u=ct.radius,c=u.iconData,l=u.fill,h=u.stroke,f=t.attr("fill","none").selectAll("circle").data(c).enter();f.append("circle").classed("radius",!0).attr("role",a.IMG).attr("aria-label","radius").attr("cx",(function(t){return t.cx})).attr("cy",(function(t){return t.cy})).attr("r",(function(t){return t.r})).style("fill",e.fill?e.fill:l).style("stroke",e.stroke?e.stroke:h)}else if(e.type===J.LINE){var p=ct.line;t.select("line.line").empty()&&t.append("line").classed("line-"+n,!0).attr("role",a.IMG).attr("aria-label","line").attr("x1",0).attr("y1",p.yPosition).attr("x2",i).attr("y2",p.yPosition).style("stroke",e.stroke?e.stroke:p.stroke).style("stroke-width",p.strokeWidth)}else if(e.type===J.AREA)t.select("rect.area").empty()&&t.append("rect").classed("area-"+n,!0).attr("role",a.IMG).attr("aria-label","area").attr("width",i).attr("height",s).style("fill",n>3&&!e.fill?ct.area.fill:e.fill).style("stroke",e.stroke);else if(e.type===J.SIZE){var d=ct.size,v=(c=d.iconData,l=d.fill,h=d.stroke,t.attr("fill","none").attr("role",a.IMG).attr("aria-label","size").selectAll("rect").data(c).enter());v.append("rect").classed("size",!0).attr("width",(function(t){return t.width})).attr("height",(function(t){return t.height})).attr("y",(function(t){return 24-t.height})).style("fill",e.fill?e.fill:l).style("stroke",e.stroke?e.stroke:h).style("stroke-width",1)}else if(e.type===J.QUARTILE){c=ct.quartile.iconData;var g=t.selectAll("rect").attr("role",a.IMG).attr("aria-label","quartile").data(c).enter();g.append("rect").attr("class",(function(t,e){return"quartile-"+(0===e?"wrapper":"line")})).attr("x",(function(t){return t.x})).attr("y",(function(t){return t.y})).attr("width",(function(t){return t.width})).attr("height",(function(t){return t.height}))}else if(e.type===J.ZOOM){var m=od.getProperty(o,"legend","zoom"),y=(c=m.iconData,m.color),_=t.attr("role",a.IMG).attr("aria-label","zoom").selectAll("g.icon").data(c).enter();_.append("g").attr("x",(function(t){return t.x})).attr("y",(function(t){return t.y})).attr("width",(function(t){return t.width})).attr("height",(function(t){return t.height})).append("polygon").attr("points","7.7 4.82 5.78 4.82 5.78 2.89 4.82 2.89 4.82 4.82 2.89 4.82 2.89 5.78 4.82 5.78 4.82 7.7 5.78 7.7 5.78 5.78 7.7 5.78 7.7 4.82").attr("fill",(function(t){return e.color?e.color:y})),_.append("path").attr("d","M9.36,8.67A5.22,5.22,0,0,0,10.59,5.3,5.3,5.3,0,1,0,5.3,10.59,5.22,5.22,0,0,0,8.67,9.36L12.32,13l.68-.68Zm-4.06,1A4.34,4.34,0,1,1,9.63,5.3,4.33,4.33,0,0,1,5.3,9.63Z").attr("fill",(function(t){return e.color?e.color:y}))}},e.prototype.truncateLegendText=function(t){var e=od.getProperty(this.getOptions(),"legend","truncation"),n=od.getProperty(e,"type"),r=od.getProperty(e,"threshold"),i=od.getProperty(e,"numCharacter");n!==R.NONE?t.html((function(t){return t.name.length>r?od.truncateLabel(t.name,n,i):t.name})):t.html((function(t){return t.name}))},e.prototype.breakItemsIntoLines=function(t,e,n){var r=this,i=this.getContainerSVG(),o=ct.items.status.DISABLED,a=this.model.getDataGroups(),s=a.some((function(t){return t.status===o}));t.merge(i.selectAll("g."+e)).each((function(t){var e=kO(this),i=VO.getSVGElementSize(r.parent,{useAttr:!0});t.type?r.setLegendItemPosition(e,i,n,t.type):(n.hasDeactivatedItems=s,r.setLegendItemPosition(e,i,n,J.CHECKBOX))}))},e.prototype.setLegendItemPosition=function(t,e,n,r){var i=od.getProperty(this.getOptions(),"legend","orientation"),o=ct.items.horizontalSpace,a=ct.items.verticalSpace,s=ct.items.textYOffset,u=r===J.CHECKBOX||r===J.RADIUS||r===J.ZOOM?2*ct.checkbox.radius:ct.area.width,c=ct.items.spaceAfter,l=VO.getSVGElementSize(t.select("text"),{useBBox:!0}),h=ct.area.width/2-1;0===n.itemIndexInLine||0===n.lastLegendItemTextWidth||i===B.VERTICAL?n.itemIndexInLine>0&&n.lineNumber++:(n.startingPoint+=n.lastLegendItemTextWidth+u+c+o,n.startingPoint+u+c+l.width>e.width&&(n.lineNumber++,n.startingPoint=24===u?h:0,n.itemIndexInLine=0)),n.lastLegendItemTextWidth=l.width;var f=n.lineNumber*a,p=s+f+3;if(r===J.CHECKBOX){t.select("rect.checkbox").attr("x",n.startingPoint).attr("y",f),t.select("text").attr("x",n.startingPoint+u+c).attr("y",p);var d=(!i||i===B.HORIZONTAL)&&parseInt(t.select("rect.checkbox").attr("y"))%24===0,v=i===B.VERTICAL&&"0"===t.select("rect.checkbox").attr("x"),g=d||v;n.hasDeactivatedItems&&t.select("g.check").empty()&&g?(t.append("g").classed("check",!0).html('\n\t\t\t\t\t\t<svg focusable="false" preserveAspectRatio="xMidYMid meet"\n\t\t\t\t\t\t\txmlns="http://www.w3.org/2000/svg" width="32" height="32"\n\t\t\t\t\t\t\tviewBox="0 0 32 32" aria-hidden="true"\n\t\t\t\t\t\t\tstyle="will-change: transform;">\n\t\t\t\t\t\t\t<path d="M13 21.2l-7.1-7.1-1.4 1.4 7.1 7.1L13 24 27.1 9.9l-1.4-1.5z"></path>\n\t\t\t\t\t\t\t<title>Checkmark</title>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t'),t.select("g.check svg").attr("width",u-1).attr("height",u-1).attr("x",parseFloat(t.select("rect.checkbox").attr("x"))+.5).attr("y",parseFloat(t.select("rect.checkbox").attr("y"))+.5)):n.hasDeactivatedItems||t.select("g.check").empty()||t.select("g.check").remove()}else r===J.RADIUS?(t.selectAll("circle.radius").attr("cx",(function(t){return n.startingPoint+t.cx})).attr("cy",(function(t){return f+t.cy})),t.select("text").attr("x",n.startingPoint+u+c).attr("y",p)):r===J.SIZE?(t.selectAll("g.icon").attr("transform","translate("+(n.startingPoint-h)+", "+(f-12)+")"),t.select("text").attr("x",n.startingPoint+u+c-h).attr("y",p)):r===J.ZOOM?(t.selectAll("g.icon").attr("transform","translate("+n.startingPoint+", "+f+")"),t.select("text").attr("x",n.startingPoint+u+c).attr("y",p)):(t.selectAll("g.icon").attr("transform","translate("+(n.startingPoint-h)+", "+f+")"),t.select("text").attr("x",n.startingPoint+u+c-h).attr("y",p));n.itemIndexInLine++},e.prototype.addEventListeners=function(){var t=this,e=this.getContainerSVG(),n=this.getOptions(),r=od.getProperty(n,"legend"),i=od.getProperty(r,"truncation","threshold");e.selectAll("g.legend-item").on("mouseover",(function(){t.services.events.dispatchEvent(et.Legend.ITEM_HOVER,{hoveredElement:kO(this)});var e=ct.checkbox.radius,n=kO(this);n.select("rect.checkbox").classed("hovered",!0),n.append("rect").classed("hover-stroke",!0).attr("x",parseFloat(n.select("rect.checkbox").attr("x"))-2).attr("y",parseFloat(n.select("rect.checkbox").attr("y"))-2).attr("width",2*e+4).attr("height",2*e+4).attr("rx",3).attr("ry",3).lower();var r=n.datum();r.name.length>i&&t.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:n,content:r.name})})).on("mousemove",(function(){t.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("click",(function(){t.services.events.dispatchEvent(et.Legend.ITEM_CLICK,{clickedElement:kO(this)});var e=kO(this),n=e.datum();t.model.toggleDataLabel(n.name)})).on("mouseout",(function(){var e=kO(this);e.select("rect.hover-stroke").remove(),e.select("rect.checkbox").classed("hovered",!1),t.services.events.dispatchEvent(et.Tooltip.HIDE),t.services.events.dispatchEvent(et.Legend.ITEM_MOUSEOUT,{hoveredElement:e})})),e.selectAll("g.legend-item rect.checkbox").on("keyup",(function(e){!Kp.key||"Enter"!==Kp.key&&" "!==Kp.key||(Kp.preventDefault(),t.model.toggleDataLabel(e.name))})),e.selectAll("g.additional-item").on("mouseover",(function(){var e=kO(this),n=e.datum();n.name.length>i&&t.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:e,content:n.name})}))},e}(FS);(function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"})(jS||(jS={}));var YS=(NS={},NS[jS.LEFT]=function(t,e,n){return{top:t.top-Math.round(e.offsetHeight/2)+Math.round(n.height/2),left:Math.round(t.left-e.offsetWidth)}},NS[jS.RIGHT]=function(t,e,n){return{top:t.top-Math.round(e.offsetHeight/2)+Math.round(n.height/2),left:Math.round(t.left+n.width)}},NS[jS.TOP]=function(t,e,n){return{top:Math.round(t.top-e.offsetHeight),left:t.left-Math.round(e.offsetWidth/2)+Math.round(n.width/2)}},NS[jS.BOTTOM]=function(t,e,n){return{top:Math.round(t.top+n.height),left:t.left-Math.round(e.offsetWidth/2)+Math.round(n.width/2)}},NS),ZS="undefined"!==typeof window?window:{innerHeight:0,scrollY:0,innerWidth:0,scrollX:0},XS=function(){function t(t){void 0===t&&(t={}),this.positions=YS,this.positions=Object.assign({},YS,t)}return t.prototype.getRelativeOffset=function(t){var e={left:t.offsetLeft,top:t.offsetTop};while(t.offsetParent&&"static"===getComputedStyle(t.offsetParent).position)e.left+=t.offsetLeft,e.top+=t.offsetTop,t=t.offsetParent;return e},t.prototype.getAbsoluteOffset=function(t){var e=t,n={top:0,left:0};while(e.offsetParent){var r=getComputedStyle(e.offsetParent);"static"===r.position&&r.marginLeft&&r.marginTop&&(parseInt(r.marginTop,10)&&(n.top+=parseInt(r.marginTop,10)),parseInt(r.marginLeft,10)&&(n.left+=parseInt(r.marginLeft,10))),e=e.offsetParent}var i=t.getBoundingClientRect(),o=document.body.getBoundingClientRect();return{top:i.top-o.top+n.top,left:i.left-o.left+n.left}},t.prototype.findRelative=function(t,e,n){var r=this.getRelativeOffset(t),i=t.getBoundingClientRect();return this.calculatePosition(r,i,e,n)},t.prototype.findAbsolute=function(t,e,n){var r=this.getAbsoluteOffset(t),i=t.getBoundingClientRect();return this.calculatePosition(r,i,e,n)},t.prototype.findPosition=function(t,e,n,r){void 0===r&&(r=this.getAbsoluteOffset);var i=r(t),o=t.getBoundingClientRect();return this.calculatePosition(i,o,e,n)},t.prototype.findPositionAt=function(t,e,n){return this.calculatePosition(t,{height:0,width:0},e,n)},t.prototype.getPlacementBox=function(t,e){var n=t.offsetHeight+e.top,r=t.offsetWidth+e.left;return{top:e.top,bottom:n,left:e.left,right:r}},t.prototype.addOffset=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=0),Object.assign({},t,{top:t.top+e,left:t.left+n})},t.prototype.setElement=function(t,e){t.style.top=e.top+"px",t.style.left=e.left+"px"},t.prototype.findBestPlacement=function(t,e,n,r,i){var o=this;void 0===r&&(r=this.defaultContainerFunction),void 0===i&&(i=this.findPosition);var a=n.map((function(n){var a=i(t,e,n),s=o.getPlacementBox(e,a),u=s.bottom-r().height,c=s.right-r().width;u=u<0?e.offsetHeight:u,c=c<0?e.offsetWidth:c;var l=e.offsetHeight*e.offsetWidth,h=u*c,f=l-h;f=0===f?l:f;var p=f/l;return{placement:n,weight:p}}));return a.sort((function(t,e){return e.weight-t.weight})),a[0].placement},t.prototype.findBestPlacementAt=function(t,e,n,r){var i=this;void 0===r&&(r=this.defaultContainerFunction);var o=function(e,n,r){return i.findPositionAt(t,n,r)};return this.findBestPlacement(null,e,n,r,o)},t.prototype.defaultContainerFunction=function(){return{width:ZS.innerHeight-ZS.scrollY,height:ZS.innerWidth-ZS.scrollX}},t.prototype.calculatePosition=function(t,e,n,r){return this.positions[r]?this.positions[r](t,n,e):(console.error("No function found for placement, defaulting to 0,0"),{left:0,top:0})},t}(),KS=(new XS,XS);function $S(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=qw(t);return!isNaN(e)}var QS={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function JS(t,e,n){var r;return n=n||{},r="string"===typeof QS[t]?QS[t]:1===e?QS[t].one:QS[t].other.replace("{{count}}",e),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r}function tT(t){return function(e){var n=e||{},r=n.width?String(n.width):t.defaultWidth,i=t.formats[r]||t.formats[t.defaultWidth];return i}}var eT={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},nT={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},rT={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},iT={date:tT({formats:eT,defaultWidth:"full"}),time:tT({formats:nT,defaultWidth:"full"}),dateTime:tT({formats:rT,defaultWidth:"full"})},oT=iT,aT={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function sT(t,e,n,r){return aT[t]}function uT(t){return function(e,n){var r,i=n||{},o=i.context?String(i.context):"standalone";if("formatting"===o&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,s=i.width?String(i.width):a;r=t.formattingValues[s]||t.formattingValues[a]}else{var u=t.defaultWidth,c=i.width?String(i.width):t.defaultWidth;r=t.values[c]||t.values[u]}var l=t.argumentCallback?t.argumentCallback(e):e;return r[l]}}var cT={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},lT={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},hT={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},fT={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},pT={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},dT={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};function vT(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"}var gT={ordinalNumber:vT,era:uT({values:cT,defaultWidth:"wide"}),quarter:uT({values:lT,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:uT({values:hT,defaultWidth:"wide"}),day:uT({values:fT,defaultWidth:"wide"}),dayPeriod:uT({values:pT,defaultWidth:"wide",formattingValues:dT,defaultFormattingWidth:"wide"})},mT=gT;function yT(t){return function(e,n){var r=String(e),i=n||{},o=r.match(t.matchPattern);if(!o)return null;var a=o[0],s=r.match(t.parsePattern);if(!s)return null;var u=t.valueCallback?t.valueCallback(s[0]):s[0];return u=i.valueCallback?i.valueCallback(u):u,{value:u,rest:r.slice(a.length)}}}function _T(t){return function(e,n){var r=String(e),i=n||{},o=i.width,a=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=r.match(a);if(!s)return null;var u,c=s[0],l=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth];return u="[object Array]"===Object.prototype.toString.call(l)?OT(l,(function(t){return t.test(r)})):bT(l,(function(t){return t.test(r)})),u=t.valueCallback?t.valueCallback(u):u,u=i.valueCallback?i.valueCallback(u):u,{value:u,rest:r.slice(c.length)}}}function bT(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function OT(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}var xT=/^(\d+)(th|st|nd|rd)?/i,wT=/\d+/i,ET={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ST={any:[/^b/i,/^(a|c)/i]},TT={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},MT={any:[/1/i,/2/i,/3/i,/4/i]},CT={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},AT={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},PT={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},kT={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},LT={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},DT={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},RT={ordinalNumber:yT({matchPattern:xT,parsePattern:wT,valueCallback:function(t){return parseInt(t,10)}}),era:_T({matchPatterns:ET,defaultMatchWidth:"wide",parsePatterns:ST,defaultParseWidth:"any"}),quarter:_T({matchPatterns:TT,defaultMatchWidth:"wide",parsePatterns:MT,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:_T({matchPatterns:CT,defaultMatchWidth:"wide",parsePatterns:AT,defaultParseWidth:"any"}),day:_T({matchPatterns:PT,defaultMatchWidth:"wide",parsePatterns:kT,defaultParseWidth:"any"}),dayPeriod:_T({matchPatterns:LT,defaultMatchWidth:"any",parsePatterns:DT,defaultParseWidth:"any"})},IT=RT,NT={code:"en-US",formatDistance:JS,formatLong:oT,formatRelative:sT,localize:mT,match:IT,options:{weekStartsOn:0,firstWeekContainsDate:1}},jT=NT;function VT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Kw(e);return vE(t,-n)}function BT(t,e){var n=t<0?"-":"",r=Math.abs(t).toString();while(r.length<e)r="0"+r;return n+r}var GT={y:function(t,e){var n=t.getUTCFullYear(),r=n>0?n:1-n;return BT("yy"===e?r%100:r,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):BT(n+1,2)},d:function(t,e){return BT(t.getUTCDate(),e.length)},a:function(t,e){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return n.toUpperCase();case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(t,e){return BT(t.getUTCHours()%12||12,e.length)},H:function(t,e){return BT(t.getUTCHours(),e.length)},m:function(t,e){return BT(t.getUTCMinutes(),e.length)},s:function(t,e){return BT(t.getUTCSeconds(),e.length)},S:function(t,e){var n=e.length,r=t.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,n-3));return BT(i,e.length)}},UT=GT,HT=864e5;function zT(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=qw(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=n-r;return Math.floor(i/HT)+1}function FT(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=1,n=qw(t),r=n.getUTCDay(),i=(r<e?7:0)+r-e;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function WT(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=qw(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=FT(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=FT(o);return e.getTime()>=i.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function qT(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=WT(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=FT(n);return r}var YT=6048e5;function ZT(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=qw(t),n=FT(e).getTime()-qT(e).getTime();return Math.round(n/YT)+1}function XT(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=e||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,o=null==i?0:Kw(i),a=null==n.weekStartsOn?o:Kw(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=qw(t),u=s.getUTCDay(),c=(u<a?7:0)+u-a;return s.setUTCDate(s.getUTCDate()-c),s.setUTCHours(0,0,0,0),s}function KT(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=qw(t,e),r=n.getUTCFullYear(),i=e||{},o=i.locale,a=o&&o.options&&o.options.firstWeekContainsDate,s=null==a?1:Kw(a),u=null==i.firstWeekContainsDate?s:Kw(i.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(r+1,0,u),c.setUTCHours(0,0,0,0);var l=XT(c,e),h=new Date(0);h.setUTCFullYear(r,0,u),h.setUTCHours(0,0,0,0);var f=XT(h,e);return n.getTime()>=l.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function $T(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=e||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,o=null==i?1:Kw(i),a=null==n.firstWeekContainsDate?o:Kw(n.firstWeekContainsDate),s=KT(t,e),u=new Date(0);u.setUTCFullYear(s,0,a),u.setUTCHours(0,0,0,0);var c=XT(u,e);return c}var QT=6048e5;function JT(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=qw(t),r=XT(n,e).getTime()-$T(n,e).getTime();return Math.round(r/QT)+1}var tM={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},eM={G:function(t,e,n){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if("yo"===e){var r=t.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return UT.y(t,e)},Y:function(t,e,n,r){var i=KT(t,r),o=i>0?i:1-i;if("YY"===e){var a=o%100;return BT(a,2)}return"Yo"===e?n.ordinalNumber(o,{unit:"year"}):BT(o,e.length)},R:function(t,e){var n=WT(t);return BT(n,e.length)},u:function(t,e){var n=t.getUTCFullYear();return BT(n,e.length)},Q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return BT(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return BT(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){var r=t.getUTCMonth();switch(e){case"M":case"MM":return UT.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return BT(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){var i=JT(t,r);return"wo"===e?n.ordinalNumber(i,{unit:"week"}):BT(i,e.length)},I:function(t,e,n){var r=ZT(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):BT(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):UT.d(t,e)},D:function(t,e,n){var r=zT(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):BT(r,e.length)},E:function(t,e,n){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){var i=t.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return BT(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){var i=t.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return BT(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){var r=t.getUTCDay(),i=0===r?7:r;switch(e){case"i":return String(i);case"ii":return BT(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){var r=t.getUTCHours(),i=r/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){var r,i=t.getUTCHours();switch(r=12===i?tM.noon:0===i?tM.midnight:i/12>=1?"pm":"am",e){case"b":case"bb":case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,n){var r,i=t.getUTCHours();switch(r=i>=17?tM.evening:i>=12?tM.afternoon:i>=4?tM.morning:tM.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return UT.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):UT.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):BT(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):BT(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):UT.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):UT.s(t,e)},S:function(t,e){return UT.S(t,e)},X:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return rM(o);case"XXXX":case"XX":return iM(o);case"XXXXX":case"XXX":default:return iM(o,":")}},x:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"x":return rM(o);case"xxxx":case"xx":return iM(o);case"xxxxx":case"xxx":default:return iM(o,":")}},O:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+nM(o,":");case"OOOO":default:return"GMT"+iM(o,":")}},z:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+nM(o,":");case"zzzz":default:return"GMT"+iM(o,":")}},t:function(t,e,n,r){var i=r._originalDate||t,o=Math.floor(i.getTime()/1e3);return BT(o,e.length)},T:function(t,e,n,r){var i=r._originalDate||t,o=i.getTime();return BT(o,e.length)}};function nM(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=e||"";return n+String(i)+a+BT(o,2)}function rM(t,e){if(t%60===0){var n=t>0?"-":"+";return n+BT(Math.abs(t)/60,2)}return iM(t,e)}function iM(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t),o=BT(Math.floor(i/60),2),a=BT(i%60,2);return r+o+n+a}var oM=eM;function aM(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}}function sM(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}}function uM(t,e){var n,r=t.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return aM(t,e);switch(i){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;case"PPPP":default:n=e.dateTime({width:"full"});break}return n.replace("{{date}}",aM(i,e)).replace("{{time}}",sM(o,e))}var cM={p:sM,P:uM},lM=cM,hM=["D","DD"],fM=["YY","YYYY"];function pM(t){return-1!==hM.indexOf(t)}function dM(t){return-1!==fM.indexOf(t)}function vM(t){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr");if("YY"===t)throw new RangeError("Use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr");if("D"===t)throw new RangeError("Use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr");if("DD"===t)throw new RangeError("Use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr")}var gM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yM=/^'([^]*?)'?$/,_M=/''/g,bM=/[a-zA-Z]/;function OM(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=String(e),i=n||{},o=i.locale||jT,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:Kw(a),u=null==i.firstWeekContainsDate?s:Kw(i.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=o.options&&o.options.weekStartsOn,l=null==c?0:Kw(c),h=null==i.weekStartsOn?l:Kw(i.weekStartsOn);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var f=qw(t);if(!$S(f))throw new RangeError("Invalid time value");var p=oE(f),d=VT(f,p),v={firstWeekContainsDate:u,weekStartsOn:h,locale:o,_originalDate:f},g=r.match(mM).map((function(t){var e=t[0];if("p"===e||"P"===e){var n=lM[e];return n(t,o.formatLong,v)}return t})).join("").match(gM).map((function(t){if("''"===t)return"'";var e=t[0];if("'"===e)return xM(t);var n=oM[e];if(n)return!i.useAdditionalWeekYearTokens&&dM(t)&&vM(t),!i.useAdditionalDayOfYearTokens&&pM(t)&&vM(t),n(d,t,o.localize,v);if(e.match(bM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return t})).join("");return g}function xM(t){return t.match(yM)[1].replace(_M,"'")}var wM=[["15seconds",15e3],["minute",6e4],["30minutes",18e5],["hourly",36e5],["daily",864e5],["monthly",2592e6],["quarterly",7776e6],["yearly",31104e6]];function EM(t,e,n,r,i){var o=0===e,a=2===Number(OM(new Date(t),"c")),s=1===Number(OM(new Date(t),"q")),u=0!==e?n[e-1]:null;switch(r){case"15seconds":return o||PM(t)||kM(t,u)||LM(t);case"minute":return o||PM(t)||kM(t,u)||LM(t);case"30minutes":return o||PM(t)||kM(t,u)||LM(t);case"hourly":return o||PM(t)||kM(t,u)||LM(t);case"daily":return i?o||a||LM(t):o||kM(t,u)||LM(t);case"monthly":return o||LM(t);case"quarterly":return o||s;case"yearly":return!1;default:throw new Error(r+" is not a valid time interval.")}}function SM(t,e,n,r,i){var o=i.showDayName,a="daily"===r&&o?"weekly":r,s=new Date(t),u=od.getProperty(i,"timeIntervalFormats")[a],c=od.getProperty(u,"primary"),l=od.getProperty(u,"secondary"),h=EM(t,e,n,r,o)?c:l,f=i.localeObject;return OM(s,h,{locale:f})}function TM(t){var e=new Date(t);return{M:e.getMonth()+1,d:e.getDate(),H:e.getHours(),m:e.getMinutes(),s:e.getSeconds()}}function MM(t){if(t)return t.slice(1).map((function(e,n){return e-t[n]}))}function CM(t){var e=wM.reduce((function(e,n,r){n[0];var i=n[1],o=wM[e][1],a=Math.abs(o-t),s=Math.abs(i-t);return a<s?e:r}),0);return wM[e][0]}function AM(t){if(1===t.length)return"15seconds";var e=MM(t),n=dv(e);return CM(n)}function PM(t){var e=TM(t),n=e.s,r=e.m,i=e.H;return 0===i&&0===r&&0===n}function kM(t,e){var n=TM(t).M,r=TM(e).M;return n!==r}function LM(t){var e=TM(t),n=e.M,r=e.d,i=e.s,o=e.m,a=e.H;return 1===n&&1===r&&0===a&&0===o&&0===i}var DM=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),RM=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.type="threshold",r.positionService=new KS,r}return DM(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n=od.getProperty(this.getOptions(),"axes"),r=[];Object.keys(n).forEach((function(t){if(Object.values(L).includes(t)){var e=n[t];e.thresholds&&e.thresholds.length>0&&r.push({axisPosition:t,thresholds:e.thresholds})}}));var i=this.getContainerSVG({withinChartClip:!0}),o=i.selectAll("g.axis-thresholds").data(r,(function(t){return t.axisPosition}));o.exit().attr("opacity",0).remove();var a=o.enter().append("g"),s=a.merge(o);s.attr("class",(function(t){return"axis-thresholds "+t.axisPosition}));var u=s.selectAll("g.threshold-group").data((function(t){return t.thresholds.map((function(e){return e.axisPosition=t.axisPosition,e}))}));u.exit().attr("opacity",0).remove();var c=u.enter().append("g");c.append("line").attr("class","threshold-line"),c.append("rect").attr("class","threshold-hoverable-area");var l=c.merge(u);l.attr("class","threshold-group");var h=this;s.each((function(e){var n=e.axisPosition,r=h.services.cartesianScales.getScaleByPosition(n),i=h.services.cartesianScales.getScaleTypeByPosition(n),o=h.services.cartesianScales.getMainXScale(),a=h.services.cartesianScales.getMainYScale(),s=i===N.LABELS,u=o.range(),c=u[0],l=u[1],f=a.range(),p=f[0],d=f[1],v=h.services.cartesianScales,g=v.getOrientation(),m=function(t){return v.getDomainValue(t)},y=function(t){return v.getRangeValue(t)},_=od.flipDomainAndRangeBasedOnOrientation(m,y,g),b=_[0],O=_[1],x=kO(this);n===L.TOP||n===L.BOTTOM?(x.selectAll("line.threshold-line").transition(h.services.transitions.getTransition("threshold-line-update",t)).attr("y1",d).attr("y2",p).attr("x1",(function(t){var e=t.value;return b(e)+(s?r.step()/2:0)})).attr("x2",(function(t){var e=t.value;return b(e)+(s?r.step()/2:0)})).style("stroke",(function(t){var e=t.fillColor;return e})),x.selectAll("rect.threshold-hoverable-area").attr("x",0).attr("y",(function(t){var e=t.value;return-b(e)})).attr("width",Math.abs(p-d)).classed("rotate",!0)):(x.selectAll("line.threshold-line").transition(h.services.transitions.getTransition("threshold-line-update",t)).attr("x1",c).attr("x2",l).attr("y1",(function(t){var e=t.value;return O(e)+(s?r.step()/2:0)})).attr("y2",(function(t){var e=t.value;return O(e)+(s?r.step()/2:0)})).style("stroke",(function(t){var e=t.fillColor;return e})),x.selectAll("rect.threshold-hoverable-area").attr("x",c).attr("y",(function(t){var e=t.value;return O(e)})).attr("width",Math.abs(l-c)).classed("rotate",!1))})),this.services.events.addEventListener(et.Threshold.SHOW,(function(t){e.setThresholdLabelPosition(t.detail.datum),e.label.classed("hidden",!1)})),this.services.events.addEventListener(et.Threshold.HIDE,(function(t){e.label.classed("hidden",!0)})),this.appendThresholdLabel(),this.addEventListeners()},e.prototype.getFormattedValue=function(t){var e=t.value,n=t.axisPosition,r=this.getOptions(),i=this.services.cartesianScales.getScaleTypeByPosition(n);if(i===N.TIME){var o=[L.LEFT,L.RIGHT].includes(n),a=this.services.cartesianScales.getMainXScale(),s=this.services.cartesianScales.getMainYScale(),u=o?s:a,c=od.getProperty(r,"timeScale"),l=AM(u.ticks());return SM(e,0,u.ticks(),l,c)}return e.toLocaleString("en")},e.prototype.appendThresholdLabel=function(){var t=kO(this.services.domUtils.getHolder()),e=od.getProperty(this.getOptions(),"style","prefix");this.label=VO.appendOrSelect(t,"div."+RO.prefix+"--"+e+"--threshold--label").classed("hidden",!0)},e.prototype.setThresholdLabelPosition=function(t){var e=this.services.domUtils.getHolder(),n=ud(e),r=t.valueFormatter?t.valueFormatter(t.value):this.getFormattedValue(t);this.label.html((t.label||"Threshold")+": "+r).style("background-color",t.fillColor);var i=this.label.node(),o=this.positionService.findBestPlacementAt({left:n[0],top:n[1]},i,[jS.RIGHT,jS.LEFT,jS.TOP,jS.BOTTOM],(function(){return{width:e.offsetWidth,height:e.offsetHeight}})),a=this.positionService.findPositionAt({left:n[0],top:n[1]},i,o);this.positionService.setElement(i,a)},e.prototype.addEventListeners=function(){var t=this,e=this.getContainerSVG({withinChartClip:!0});e.selectAll("rect.threshold-hoverable-area").on("mouseover mousemove",(function(){kO(this.parentNode).select("line.threshold-line").classed("active",!0),t.services.events.dispatchEvent(et.Threshold.SHOW,{hoveredElement:kO(this),datum:kO(this).datum()})})).on("mouseout",(function(){kO(this.parentNode).select("line.threshold-line").classed("active",!1),t.services.events.dispatchEvent(et.Threshold.HIDE,{hoveredElement:kO(this),datum:kO(this).datum()})}))},e}(FS),IM=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),NM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="title",e}return IM(e,t),e.prototype.render=function(){var t=this.getContainerSVG(),e=t.selectAll("text.title").data([this.getOptions().title]);e.enter().append("text").classed("title",!0).merge(e).attr("x",0).attr("y","1em").html((function(t){return t}));var n=this.getMaxTitleWidth(),r=VO.appendOrSelect(t,"text.title");r.node().getComputedTextLength()>n&&n>0&&this.truncateTitle(r,n),e.exit().remove()},e.prototype.truncateTitle=function(t,e){if(!(e<=0)){var n=t.text();if(t.node().getComputedTextLength()>e){t.append("tspan").text("...");var r=VO.appendOrSelect(t,"tspan").node().getComputedTextLength(),i=t.text(),o=this.getSubstringIndex(t.node(),0,i.length-1,e-r);t.html(i.substring(0,o-1)).append("tspan").text("...");var a=this;t.on("mouseover",(function(){a.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:t,content:n})})).on("mousemove",(function(){a.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("mouseout",(function(){a.services.events.dispatchEvent(et.Tooltip.HIDE)}))}}},e.prototype.getMaxTitleWidth=function(){return VO.getSVGElementSize(this.parent.node(),{useAttr:!0}).width},e.prototype.getSubstringIndex=function(t,e,n,r){var i=Math.floor((n+e)/2);return t.getSubStringLength(0,i)>r?this.getSubstringIndex(t,e,i,r):t.getSubStringLength(0,i)<r?t.getSubStringLength(0,i+1)>r?i:this.getSubstringIndex(t,i,n,r):i},e}(FS),jM=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),VM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="meter-title",e}return jM(e,t),e.prototype.render=function(){var t=this.model.getDisplayData(),e=this.getOptions(),n=this.getContainerSVG(),r=e.data.groupMapsTo,i=n.selectAll("text.meter-title").data([t[r]]);i.enter().append("text").classed("meter-title",!0).merge(i).attr("x",0).attr("y","1em").text((function(t){return t})),i.exit().remove(),this.appendPercentage(),this.displayStatus();var o=this.getMaxTitleWidth(),a=VO.appendOrSelect(n,"text.meter-title");o>0&&a.node().getComputedTextLength()>o&&this.truncateTitle(a,o)},e.prototype.displayStatus=function(){var t=this,e=this.getContainerSVG(),n=(this.getOptions(),VO.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttr:!0})),r=n.width?n.width:this.parent.node().getAttribute("width"),i=this.model.getStatus(),o=ht.status.indicatorSize/2,a=VO.appendOrSelect(e,"g.status-indicator").attr("class",null!==i?"status-indicator status--"+i:"").attr("transform","translate("+(r-o)+", 0)"),s=i?[i]:[],u=a.selectAll("circle.status").data(s);u.enter().append("circle").merge(u).attr("class","status").attr("r",o).attr("cx",0).attr("cy","calc(1em / 2)");var c=a.selectAll("path.innerFill").data(s);c.enter().append("path").merge(c).attr("d",t.getStatusIconPathString(i)).attr("transform","translate(-"+o+", 0)").attr("class","innerFill"),c.exit().remove(),u.exit().remove()},e.prototype.appendPercentage=function(){var t=this.model.getDisplayData().value,e=this.getContainerSVG(),n=VO.appendOrSelect(e,"text.meter-title"),r=!0===od.getProperty(this.getOptions(),"meter","statusBar","percentageIndicator","enabled")?[t]:[],i=e.selectAll("text.percent-value").data(r),o=ht.statusBar.paddingRight;i.enter().append("text").classed("percent-value",!0).merge(i).text((function(t){return t+"%"})).attr("x",+n.attr("x")+n.node().getComputedTextLength()+o).attr("y",n.attr("y")),i.exit().remove()},e.prototype.truncateTitle=function(e,n){t.prototype.truncateTitle.call(this,e,n);var r=VO.appendOrSelect(this.parent,"tspan"),i=ht.statusBar.paddingRight,o=Math.ceil(r.node().getComputedTextLength()),a=VO.appendOrSelect(this.parent,"text.percent-value");a.attr("x",+e.attr("x")+e.node().getComputedTextLength()+o+i)},e.prototype.getMaxTitleWidth=function(){var t=VO.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttr:!0}),e=t.width?t.width:this.parent.node().getAttribute("width"),n=VO.appendOrSelect(this.parent,"text.percent-value"),r=ht.statusBar.paddingRight,i=n.node().getComputedTextLength(),o=VO.appendOrSelect(this.parent,"g.status-indicator").node(),a=VO.getSVGElementSize(o,{useBBox:!0}).width+ht.status.paddingLeft;return e-i-r-a},e.prototype.getStatusIconPathString=function(t){switch(t){case Z.SUCCESS:return"M6.875 11.3125 3.75 8.1875 4.74375 7.25 6.875 9.34375 11.50625 4.75 12.5 5.7375 Z";case Z.DANGER:return"M10.7 11.5 4.5 5.3 5.3 4.5 11.5 10.7 Z";case Z.WARNING:return"M7.9375,11.125 C7.41973305,11.125 7,11.544733 7,12.0625 C7,12.580267 7.41973305,13 7.9375,13 C8.45526695,13 8.875,12.580267 8.875,12.0625 C8.875,11.544733 8.45526695,11.125 7.9375,11.125 M7.3125, 3 8.5625, 3 8.5625, 9.875 7.3125, 9.875, 7.3125, 3 Z"}},e}(NM),BM=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),GM=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="tooltip",i.isEventListenerAdded=!1,i.positionService=new KS,i.handleShowTooltip=function(t){var e=t.detail.data||t.detail.items,n=i.getTooltipHTML(t),r=VO.appendOrSelect(i.tooltip,"div.content-box");if(od.getProperty(i.getOptions(),"tooltip","customHTML"))if(t.detail.content){var o='<div class="title-tooltip"><p>'+t.detail.content+"</p></div>";r.html(o)}else r.html(i.model.getOptions().tooltip.customHTML(e,n));else r.html(n);i.positionTooltip(t),i.tooltip.classed("hidden",!1).attr("aria-hidden",!1)},i.handleHideTooltip=function(){i.tooltip.classed("hidden",!0).attr("aria-hidden",!0)},i.init(),i}return BM(e,t),e.prototype.addTooltipEventListener=function(){var t=this;this.services.events.addEventListener(et.Tooltip.MOVE,(function(e){t.positionTooltip(e)})),this.services.events.addEventListener(et.Tooltip.SHOW,this.handleShowTooltip),this.services.events.addEventListener(et.Tooltip.HIDE,this.handleHideTooltip),this.services.events.addEventListener(et.Chart.MOUSEOUT,this.handleHideTooltip)},e.prototype.removeTooltipEventListener=function(){this.services.events.removeEventListener(et.Tooltip.MOVE,null),this.services.events.removeEventListener(et.Tooltip.SHOW,this.handleShowTooltip),this.services.events.removeEventListener(et.Tooltip.HIDE,this.handleHideTooltip),this.services.events.removeEventListener(et.Chart.MOUSEOUT,this.handleHideTooltip)},e.prototype.getItems=function(t){return t.detail.items?t.detail.items:[]},e.prototype.formatItems=function(t){var e=this,n=this.getOptions(),r=od.getProperty(n,"tooltip","truncation","type"),i=od.getProperty(n,"tooltip","truncation","threshold"),o=od.getProperty(n,"tooltip","truncation","numCharacter");return r!==R.NONE?t.map((function(t){var n=t.labelIcon?12:0;return t.value=t.value?e.valueFormatter(t.value,t.label):t.value,t.label&&t.label.length+n>i&&(t.label=od.truncateLabel(t.label,r,o)),t.value&&t.value.length>i&&(t.value=od.truncateLabel(t.value,r,o)),t})):t},e.prototype.getTooltipHTML=function(t){var e;if(t.detail.content)e='<div class="title-tooltip"><p>'+t.detail.content+"</p></div>";else{var n=this.getItems(t),r=this.formatItems(n);e="<ul class='multi-tooltip'>"+r.map((function(t){return'<li>\n\t\t\t\t\t\t\t<div class="datapoint-tooltip '+(t.bold?"bold":"")+'">\n\t\t\t\t\t\t\t\t'+(t.class?'<a class="tooltip-color '+t.class+'"></a>':"")+"\n\t\t\t\t\t\t\t\t"+(t.color?'<a style="background-color: '+t.color+'" class="tooltip-color"></a>':"")+'\n\t\t\t\t\t\t\t\t<div class="label">\n\t\t\t\t\t\t\t\t<p>'+(t.label||"")+"</p>\n\t\t\t\t\t\t\t\t"+(t.labelIcon?'<span class="label-icon"/>'+t.labelIcon+"</span>":"")+"\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t"+(void 0===t.value||null===t.value?"":'<p class="value"/>'+t.value+"</p>")+"\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</li>"})).join("")+"</ul>"}return e},e.prototype.valueFormatter=function(t,e){var n=this.getOptions(),r=od.getProperty(n,"tooltip","valueFormatter");return r?r(t,e):"function"===typeof t.getTime?OM(t,"MMM d, yyyy"):t.toLocaleString()},e.prototype.render=function(){var t=this.getOptions(),e=od.getProperty(t,"tooltip","enabled");if(e){var n=kO(this.services.domUtils.getHolder()),r=od.getProperty(t,"style","prefix");this.tooltip=VO.appendOrSelect(n,"div."+RO.prefix+"--"+r+"--tooltip"),this.tooltip.style("max-width",null),this.isEventListenerAdded||(this.addTooltipEventListener(),this.isEventListenerAdded=!0),this.tooltip.classed("hidden",!0)}else!e&&this.isEventListenerAdded&&(this.removeTooltipEventListener(),this.isEventListenerAdded=!1)},e.prototype.positionTooltip=function(t){var e,n=this.services.domUtils.getHolder(),r=this.tooltip.node(),i=this.getOptions(),o=od.getProperty(i,"zoomBar","top","enabled"),a=od.getProperty(t,"detail","mousePosition");if(a){var s=od.getProperty(i,"zoomBar","top","type"),u=yt.height[s];o&&(a[1]+=u+yt.spacerHeight)}else a=ud(n);var c,l=n.offsetWidth,h=n.offsetHeight;c=a[0]/l>.9?jS.LEFT:a[0]/l<.1?jS.RIGHT:this.positionService.findBestPlacementAt({left:a[0],top:a[1]},r,[jS.RIGHT,jS.LEFT,jS.TOP,jS.BOTTOM],(function(){return{width:l,height:h}}));var f=vt.horizontalOffset;c===jS.LEFT&&(f*=-1),e=this.positionService.findPositionAt({left:a[0]+f,top:a[1]},r,c),this.positionService.setElement(r,e)},e}(FS),UM=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),HM=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},zM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return UM(e,t),e.prototype.getItems=function(t){var e=this;if(t.detail.items)return t.detail.items;var n=t.detail.data;if(!n.length||!n[0])return[];var r=this.getOptions(),i=this.services.cartesianScales,o=i.getDomainAxisOptions(),a=i.getDomainIdentifier(),s=r.data.groupMapsTo,u=o.title;if(!u){var c=i.getDomainAxisPosition();u=c===L.BOTTOM||c===L.TOP?"x-value":"y-value"}var l,h=n[0][a];if(1===n.length){var f=n[0],p=i.getRangeAxisPosition({datum:f}),d=i.getRangeIdentifier(f),v=i.getAxisOptions(p),g=f[d],m=v.title;m||(m=p===L.LEFT||p===L.RIGHT?"y-value":"x-value"),l=HM([{label:u,value:h}],Array.isArray(g)&&2===g.length?[{label:"Start",value:g[0]},{label:"End",value:g[1]}]:[{label:m,value:f[d]}]),t.detail.additionalItems&&t.detail.additionalItems.forEach((function(t){return l.push({label:t.label,value:t.value})})),l.push({label:r.tooltip.groupLabel,value:f[s],color:this.model.getFillColor(f[s]),class:this.model.getColorClassName({classNameTypes:[k.TOOLTIP],dataGroupName:f[s]})})}else if(n.length>1){l=[{label:u,value:h}],l=l.concat(n.map((function(t){return{label:t[s],value:t[i.getRangeIdentifier(t)],color:e.model.getFillColor(t[s]),class:e.model.getColorClassName({classNameTypes:[k.TOOLTIP],dataGroupName:t[s]})}})).sort((function(t,e){return e.value-t.value})));var y=i.isDualAxes();if(!y&&!0===od.getProperty(r,"tooltip","showTotal")){var _=i.getRangeIdentifier();l.push({label:r.tooltip.totalLabel||"Total",value:n.reduce((function(t,e){return t+e[_]}),0),bold:!0})}}return l},e}(GM),FM=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),WM=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="chart-clip",i.chartClipId="chart-clip-id-"+Math.floor(99999999999*Math.random()),i.init(),i}return FM(e,t),e.prototype.init=function(){this.model.set({chartClipId:this.chartClipId},{skipUpdate:!0})},e.prototype.render=function(t){void 0===t&&(t=!0),this.createClipPath()},e.prototype.createClipPath=function(){var t=this.parent,e=this.services.cartesianScales,n=e.getMainXScale(),r=e.getMainYScale(),i=n.range(),o=i[0],a=i[1],s=r.range(),u=s[0],c=s[1];this.chartClipPath=VO.appendOrSelect(t,"clipPath."+this.type).attr("id",this.chartClipId);var l=VO.appendOrSelect(this.chartClipPath,"rect."+this.type);l.attr("x",o).attr("y",c).attr("width",a-o).attr("height",u-c),this.chartClipPath.merge(l).lower()},e}(FS),qM=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),YM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="canvas-chart-clip",e.chartClipId="canvas-chart-clip-id-"+Math.floor(99999999999*Math.random()),e}return qM(e,t),e.prototype.createClipPath=function(){var t=this.parent,e=VO.getSVGElementSize(this.parent,{useAttrs:!0}),n=e.width,r=e.height;this.chartClipPath=VO.appendOrSelect(t,"clipPath."+this.type).attr("id",this.chartClipId);var i=VO.appendOrSelect(this.chartClipPath,"rect."+this.type);i.attr("x",0).attr("y",0).attr("width",n).attr("height",r),this.chartClipPath.merge(i).lower()},e}(WM),ZM=Math.PI,XM=2*ZM,KM=1e-6,$M=XM-KM;function QM(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function JM(){return new QM}QM.prototype=JM.prototype={constructor:QM,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,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-t,u=r-e,c=o-t,l=a-e,h=c*c+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>KM)if(Math.abs(l*s-u*c)>KM&&i){var f=n-o,p=r-a,d=s*s+u*u,v=f*f+p*p,g=Math.sqrt(d),m=Math.sqrt(h),y=i*Math.tan((ZM-Math.acos((d+h-v)/(2*g*m)))/2),_=y/m,b=y/g;Math.abs(_-1)>KM&&(this._+="L"+(t+_*c)+","+(e+_*l)),this._+="A"+i+","+i+",0,0,"+ +(l*f>c*p)+","+(this._x1=t+b*s)+","+(this._y1=e+b*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,o){t=+t,e=+e,n=+n,o=!!o;var a=n*Math.cos(r),s=n*Math.sin(r),u=t+a,c=e+s,l=1^o,h=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+c:(Math.abs(this._x1-u)>KM||Math.abs(this._y1-c)>KM)&&(this._+="L"+u+","+c),n&&(h<0&&(h=h%XM+XM),h>$M?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):h>KM&&(this._+="A"+n+","+n+",0,"+ +(h>=ZM)+","+l+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},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 tC=JM;function eC(t){return t[0]}function nC(t){return t[1]}var rC=function(){var t=eC,e=nC,n=G_(!0),r=null,i=RE,o=null;function a(a){var s,u,c,l=a.length,h=!1;for(null==r&&(o=i(c=tC())),s=0;s<=l;++s)!(s<l&&n(u=a[s],s,a))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(u,s,a),+e(u,s,a));if(c)return o=null,c+""||null}return a.x=function(e){return arguments.length?(t="function"===typeof e?e:G_(+e),a):t},a.y=function(t){return arguments.length?(e="function"===typeof t?t:G_(+t),a):e},a.defined=function(t){return arguments.length?(n="function"===typeof t?t:G_(!!t),a):n},a.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),a):i},a.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),a):r},a},iC=function(){var t=eC,e=null,n=G_(0),r=nC,i=G_(!0),o=null,a=RE,s=null;function u(u){var c,l,h,f,p,d=u.length,v=!1,g=new Array(d),m=new Array(d);for(null==o&&(s=a(p=tC())),c=0;c<=d;++c){if(!(c<d&&i(f=u[c],c,u))===v)if(v=!v)l=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=c-1;h>=l;--h)s.point(g[h],m[h]);s.lineEnd(),s.areaEnd()}v&&(g[c]=+t(f,c,u),m[c]=+n(f,c,u),s.point(e?+e(f,c,u):g[c],r?+r(f,c,u):m[c]))}if(p)return s=null,p+""||null}function c(){return rC().defined(i).curve(a).context(o)}return u.x=function(n){return arguments.length?(t="function"===typeof n?n:G_(+n),e=null,u):t},u.x0=function(e){return arguments.length?(t="function"===typeof e?e:G_(+e),u):t},u.x1=function(t){return arguments.length?(e=null==t?null:"function"===typeof t?t:G_(+t),u):e},u.y=function(t){return arguments.length?(n="function"===typeof t?t:G_(+t),r=null,u):n},u.y0=function(t){return arguments.length?(n="function"===typeof t?t:G_(+t),u):n},u.y1=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:G_(+t),u):r},u.lineX0=u.lineY0=function(){return c().x(t).y(n)},u.lineY1=function(){return c().x(t).y(r)},u.lineX1=function(){return c().x(e).y(n)},u.defined=function(t){return arguments.length?(i="function"===typeof t?t:G_(!!t),u):i},u.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),u):a},u.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),u):o},u},oC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),aC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e.gradient_id="gradient-id-"+Math.floor(99999999999*Math.random()),e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-hover-area")).attr("opacity",(function(t){return t.name!==n.datum()["name"]?rt.opacity.unselected:rt.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-mouseout-area")).attr("opacity",rt.opacity.selected)},e}return oC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG({withinChartClip:!0}),r=[0,0],i=this.services.cartesianScales,o=i.getOrientation(),a=iC().curve(this.services.curves.getD3Curve()).defined((function(t,e){var n=i.getRangeIdentifier(),r=t[n];return null!==r&&void 0!==r})),s=this.model.getGroupedData(this.configs.groups),u=od.getProperty(this.getOptions(),"bounds"),c=u&&s&&1===s.length;!c&&u&&console.warn("Bounds can only be shown when having 1 single datagroup, you've supplied "+s.length);var l=function(t,e){return c?i.getBoundedScaledValues(t,e)[0]:i.getRangeValue(0)},h=function(t,e){return c?i.getBoundedScaledValues(t,e)[1]:i.getRangeValue(t,e)};o===I.VERTICAL?(r=this.services.cartesianScales.getMainYScale().domain(),a.x((function(t,e){return i.getDomainValue(t,e)})).y0((function(t,e){return l(t,e)})).y1((function(t,e){return h(t,e)}))):(r=this.services.cartesianScales.getMainXScale().domain(),a.x0((function(t,e){return l(t,e)})).x1((function(t,e){return h(t,e)})).y((function(t,e){return i.getDomainValue(t,e)})));var f=od.getProperty(this.getOptions(),"color","gradient","enabled"),p=s&&1===s.length&&f;s.length>1&&f&&console.error("Gradients can only be enabled when having 1 single dataset");var d=n.selectAll("path.area").data(s,(function(t){return t.name})),v=od.getProperty(this.getOptions(),"style","prefix"),g=VO.appendOrSelect(kO(this.services.domUtils.getHolder()),"svg."+RO.prefix+"--"+v+"--chart-svg");if(d.exit().attr("opacity",0).remove(),s.length){if(p){var m=g.select("path."+this.model.getColorClassName({classNameTypes:[k.STROKE],dataGroupName:s[0].name})).node(),y=void 0;if(m)y=getComputedStyle(m,null).getPropertyValue("stroke");else{var _=od.getProperty(this.model.getOptions(),"color","scale"),b=Object.keys(_);y=_[b[0]]}Ww.appendOrUpdateLinearGradient({svg:this.parent,id:s[0].name.replace(" ","")+"_"+this.gradient_id,x1:"0%",x2:"0%",y1:"0%",y2:"100%",stops:Ww.getStops(r,y)})}else this.parent.selectAll("defs linearGradient").empty()||this.parent.selectAll("defs linearGradient").each((function(){this.parentNode.remove()}));var O=this,x=d.enter().append("path");p?x.merge(d).style("fill",(function(t){return"url(#"+t.name.replace(" ","")+"_"+e.gradient_id+")"})).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t.name,originalClassName:"area"})})).attr("d",(function(t){var e=t.data;return a(e)})):(x.attr("opacity",0).merge(d).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL,k.STROKE],dataGroupName:t.name,originalClassName:"area"})})).style("fill",(function(t){return O.model.getFillColor(t.name)})).transition(this.services.transitions.getTransition("area-update-enter",t)).attr("opacity",c?1:rt.opacity.selected).attr("d",(function(t){var e=t.data;return a(e)})),c&&x.attr("fill-opacity",rt.opacity.selected).style("stroke",(function(t){return O.model.getStrokeColor(t.name)})).style("stroke-dasharray","2, 2").attr("stroke-width","0.7px"))}},e.prototype.destroy=function(){this.parent.selectAll("path.area").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(FS),sC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),uC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area-stacked",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions(),i=r.data.groupMapsTo;e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-hover-area")).attr("opacity",(function(t){return od.getProperty(t,0,i)!==n.datum().name?rt.opacity.unselected:rt.opacity.selected}))},e.handleLegendMouseOut=function(){e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-mouseout-area")).attr("opacity",rt.opacity.selected)},e}return sC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG({withinChartClip:!0}),r=this,i=this.getOptions(),o=i.data.groupMapsTo,s=Object.keys(i.axes).some((function(t){return i.axes[t].percentage})),u=this.model.getStackedData({percentage:s,groups:this.configs.groups}),c=od.getProperty(u,0,0),l=this.services.cartesianScales.getDomainAxisPosition({firstDatum:c}),h=this.services.cartesianScales.getRangeAxisPosition({firstDatum:c}),f=this.services.cartesianScales.getScaleByPosition(h),p=n.selectAll("path.area").data(u,(function(t){return od.getProperty(t,0,o)}));this.areaGenerator=iC().x((function(t,n){return e.services.cartesianScales.getValueThroughAxisPosition(l,t.data.sharedStackKey,n)})).y0((function(t){return f(t[0])})).y1((function(t){return f(t[1])})).curve(this.services.curves.getD3Curve()),p.exit().attr("opacity",0).remove();var d=p.enter().append("path").attr("opacity",0);d.merge(p).data(u,(function(t){return od.getProperty(t,0,o)})).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:od.getProperty(t,0,o),originalClassName:"area"})})).style("fill",(function(t){return r.model.getFillColor(od.getProperty(t,0,o))})).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","area").transition(this.services.transitions.getTransition("area-update-enter",t)).attr("opacity",rt.opacity.selected).attr("d",this.areaGenerator)},e.prototype.destroy=function(){this.parent.selectAll("path.area").on("mouseover",null).on("mousemove",null).on("mouseout",null)},e}(FS),cC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return cC(e,t),e.prototype.getBarWidth=function(t){var e=this.getOptions();if(e.bars.width)return e.bars.width;var n=this.model.getDisplayData().length,r=this.services.cartesianScales.getMainXScale(),i=VO.getSVGElementSize(this.parent,{useAttrs:!0}).width;return r.step?Math.min(e.bars.maxWidth,r.step()/2):Math.min(e.bars.maxWidth,.25*i/n)},e.prototype.isOutsideZoomedDomain=function(t,e){var n=this.model.getDisplayData().length;if(n<=1)return!1;var r=this.model.get("zoomDomain");if(void 0!==r){var i=this.services.cartesianScales.getDomainScale();return t<i(r[0])||e>i(r[1])}return!1},e}(FS),hC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="simple-bar",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-hover-simple-bar")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-mouseout-simple-bar")).attr("opacity",1)},e}return hC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getOptions(),r=n.data.groupMapsTo,i=this.getContainerSVG({withinChartClip:!0}),o=this.model.getDisplayData(this.configs.groups),s=this.services.cartesianScales.getOrientation(),u=i.selectAll("path.bar").data(o,(function(t){return t[r]}));u.exit().attr("opacity",0).remove();var c=u.enter().append("path").attr("opacity",0);c.merge(u).classed("bar",!0).attr("width",this.getBarWidth.bind(this)).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t[r],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[r])})).attr("d",(function(t,n){var r,i,o=e.services.cartesianScales.getRangeIdentifier(),a=e.getBarWidth(),u=t[o],c=e.services.cartesianScales.getDomainValue(t,n)-a/2,l=c+a;if(Array.isArray(u)&&2===u.length)r=e.services.cartesianScales.getRangeValue(u[0]),i=e.services.cartesianScales.getRangeValue(u[1],n);else{var h=e.services.cartesianScales.getRangeScale(),f=h.domain()[0];r=e.services.cartesianScales.getRangeValue(Math.max(0,f)),i=e.services.cartesianScales.getRangeValue(t,n)}var p=Math.abs(i-r);if(0!==p&&p<2&&(i=u>0&&s===I.VERTICAL||u<0&&s===I.HORIZONTAL?r-2:r+2),!e.isOutsideZoomedDomain(c,l))return od.generateSVGPathString({x0:c,x1:l,y0:r,y1:i},s)})).attr("opacity",1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("path.bar").on("mouseover",(function(e){var n=kO(this);n.classed("hovered",!0),n.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")),t.services.events.dispatchEvent(et.Bar.BAR_MOUSEOVER,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:n,data:[e]})})).on("mousemove",(function(e){kO(this);t.services.events.dispatchEvent(et.Bar.BAR_MOUSEMOVE,{element:kO(this),datum:e}),t.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(et.Bar.BAR_CLICK,{element:kO(this),datum:e})})).on("mouseout",(function(e){var n=kO(this);n.classed("hovered",!1),n.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")),t.services.events.dispatchEvent(et.Bar.BAR_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.destroy=function(){this.parent.selectAll("path.bar").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(lC),pC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grouped-bar",e.padding=5,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-mouseout-bar")).attr("opacity",1)},e}return pC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.model.getDisplayData(this.configs.groups),r=this.getOptions(),i=r.data.groupMapsTo;this.setGroupScale();var o=this.getContainerSVG({withinChartClip:!0}),s=Wd(n,(function(t){var n=e.services.cartesianScales.getDomainIdentifier(t);return t[n]})).keys(),u=o.selectAll("g.bars").data(s,(function(t){return t}));u.exit().attr("opacity",0).remove();var c=u.enter().append("g").classed("bars",!0).attr("role",a.GROUP).attr("data-name","bars"),l=c.merge(u);l.transition(this.services.transitions.getTransition("bar-group-update-enter",t)).attr("transform",(function(t,n){var r=e.services.cartesianScales.getDomainValue(t,n),i=r-e.getGroupWidth()/2;return e.services.cartesianScales.getOrientation()===I.VERTICAL?"translate("+i+", 0)":"translate(0, "+i+")"}));var h=l.selectAll("path.bar").data((function(t){return e.getDataCorrespondingToLabel(t)}),(function(t){return t[i]}));h.exit().attr("opacity",0).remove();var f=h.enter().append("path").attr("opacity",0);f.merge(h).classed("bar",!0).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t[i],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[i])})).attr("d",(function(t){var n=e.groupScale(t[i]),r=e.getBarWidth(),o=n,a=n+r,s=e.services.cartesianScales.getRangeAxisPosition({datum:t}),u=e.services.cartesianScales.getValueThroughAxisPosition(s,0),c=e.services.cartesianScales.getRangeValue(t);if(!e.isOutsideZoomedDomain(o,a))return od.generateSVGPathString({x0:o,x1:a,y0:u,y1:c},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("path.bar").on("mouseover",(function(e){var n=kO(this);n.classed("hovered",!0),n.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")),t.services.events.dispatchEvent(et.Bar.BAR_MOUSEOVER,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:n,data:[e]})})).on("mousemove",(function(e){var n=kO(this);t.services.events.dispatchEvent(et.Bar.BAR_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(et.Bar.BAR_CLICK,{element:kO(this),datum:e})})).on("mouseout",(function(e){var n=kO(this);n.classed("hovered",!1),n.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")),t.services.events.dispatchEvent(et.Bar.BAR_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.destroy=function(){this.parent.selectAll("path.bar").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.getDataCorrespondingToLabel=function(t){var e=this,n=this.model.getDisplayData(this.configs.groups);return n.filter((function(n){var r=e.services.cartesianScales.getDomainIdentifier(n);return n[r]===t}))},e.prototype.getGroupWidth=function(){var t=this.model.getGroupedData(this.configs.groups),e=this.getTotalGroupPadding();return this.getBarWidth()*t.length+e},e.prototype.getTotalGroupPadding=function(){var t=this.model.getGroupedData(this.configs.groups);if(1===t.length)return 0;var e=this.services.cartesianScales.getDomainScale(),n=Math.min(5,e.step()/70*5);return n*(t.length-1)},e.prototype.getBarWidth=function(){var t=this.getOptions(),e=od.getProperty(t,"bars","width"),n=od.getProperty(t,"bars","maxWidth");if(null!==e&&(null===n||e<=n))return e;var r=this.model.getGroupedData(this.configs.groups),i=r.length,o=this.getTotalGroupPadding(),a=this.services.cartesianScales.getDomainScale();return Math.min(n,(a.step()-o)/i)},e.prototype.setGroupScale=function(){var t=this.model.getActiveDataGroupNames(this.configs.groups);this.groupScale=xv().domain(t).rangeRound([0,this.getGroupWidth()])},e}(lC),vC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stacked-bar",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.model.getOptions().data.groupMapsTo;e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-mouseout-bar")).attr("opacity",1)},e}return vC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getContainerSVG({withinChartClip:!0}),r=this.getOptions(),i=r.data.groupMapsTo,o=this.model.getStackedData({groups:this.configs.groups}),s=n.selectAll("g.bars").data(o,(function(t){return od.getProperty(t,0,i)}));s.exit().attr("opacity",0).remove(),s.enter().append("g").classed("bars",!0).attr("role",a.GROUP).attr("data-name","bars");var u=n.selectAll("g.bars").selectAll("path.bar").data((function(t){return t}),(function(t){return t.data.sharedStackKey}));u.exit().remove(),u.enter().append("path").merge(u).classed("bar",!0).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t[i],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[i])})).attr("d",(function(t,n){var i=t.data.sharedStackKey,o=e.getBarWidth(),a=e.services.cartesianScales.getDomainValue(i,n)-o/2,s=a+o,u=e.services.cartesianScales.getRangeValue(t[0],n),c=e.services.cartesianScales.getRangeValue(t[1],n);if(!e.isOutsideZoomedDomain(a,s))return Math.abs(c-u)>0&&Math.abs(c-u)>r.bars.dividerSize&&(e.services.cartesianScales.getOrientation()===I.VERTICAL?c+=1:c-=1),od.generateSVGPathString({x0:a,x1:s,y0:u,y1:c},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t[1]-t[0]})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=this;this.parent.selectAll("path.bar").on("mouseover",(function(t){var r,i=kO(this);i.classed("hovered",!0),i.transition(n.services.transitions.getTransition("graph_element_mouseover_fill_update")),n.services.events.dispatchEvent(et.Bar.BAR_MOUSEOVER,{element:i,datum:t});var o=n.model.getDisplayData(n.configs.groups),a=o.find((function(r){var i=n.services.cartesianScales.getDomainIdentifier(r),o=n.services.cartesianScales.getRangeIdentifier(r);return r[o]===t.data[t.group]&&r[i].toString()===t.data.sharedStackKey&&r[e]===t.group}));if(void 0===a){var s=n.services.cartesianScales.getDomainIdentifier(),u=n.services.cartesianScales.getRangeIdentifier();r={},r[s]=t.data.sharedStackKey,r[u]=t.data[t.group],r[e]=t.group,a=r}n.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:i,data:[a]})})).on("mousemove",(function(t){var e=kO(this);n.services.events.dispatchEvent(et.Bar.BAR_MOUSEMOVE,{element:e,datum:t}),n.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("click",(function(t){n.services.events.dispatchEvent(et.Bar.BAR_CLICK,{element:kO(this),datum:t})})).on("mouseout",(function(t){var e=kO(this);e.classed("hovered",!1),n.services.events.dispatchEvent(et.Bar.BAR_MOUSEOUT,{element:e,datum:t}),n.services.events.dispatchEvent(et.Tooltip.HIDE,{hoveredElement:e})}))},e.prototype.destroy=function(){this.parent.selectAll("path.bar").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(lC),mC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="boxplot",e}return mC(e,t),e.prototype.render=function(t){var e=this,n=this.getContainerSVG({withinChartClip:!0}),r=this.getOptions(),i=r.data.groupMapsTo,o=this.model.getDataGroupNames(),s=this.services.cartesianScales.getMainXScale(),u=this.services.cartesianScales.getMainYScale(),c=s.range(),l=c[0],h=c[1],f=u.range(),p=f[0],d=f[1],v=h-l,g=p-d;if(0!==v){var m=this.services.cartesianScales,y=m.getOrientation(),_=y===I.VERTICAL,b=od.flipDomainAndRangeBasedOnOrientation((function(t,n){return e.services.cartesianScales.getDomainValue(t,n)}),(function(t,n){return e.services.cartesianScales.getRangeValue(t,n)}),y),O=b[0],x=b[1],w=Math.floor((_?v:g)/o.length),E=Math.min(w/2,16),S=this.model.getBoxplotData(),T=n.selectAll(".box-group").data(S);T.exit().remove();var M=T.enter().append("g").attr("class","box-group"),C=T.merge(M);M.append("path").merge(T.select("path.vertical-line.start")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.STROKE],originalClassName:"vertical-line start"})})).attr("stroke-width",ut.strokeWidth.default).attr("fill","none").transition(this.services.transitions.getTransition("boxplot-update-verticalstartline",t)).attr("d",(function(t){var e=m.getDomainValue(t[i]),n=e,r=m.getRangeValue(t.whiskers.min),o=m.getRangeValue(t.quartiles.q_25);return od.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(T.select("path.vertical-line.end")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.STROKE],originalClassName:"vertical-line end"})})).attr("stroke-width",ut.strokeWidth.default).attr("fill","none").transition(this.services.transitions.getTransition("boxplot-update-verticalendline",t)).attr("d",(function(t){var e=m.getDomainValue(t[i]),n=e,r=m.getRangeValue(t.whiskers.max),o=m.getRangeValue(t.quartiles.q_75);return od.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(T.select("path.box")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.FILL,k.STROKE],originalClassName:"box"})})).attr("fill-opacity",ut.box.opacity.default).attr("stroke-width",ut.strokeWidth.default).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","box").transition(this.services.transitions.getTransition("boxplot-update-quartiles",t)).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/2,n=e+E,r=m.getRangeValue(Math[_?"max":"min"](t.quartiles.q_75,t.quartiles.q_25)),o=r+Math.abs(m.getRangeValue(t.quartiles.q_75)-m.getRangeValue(t.quartiles.q_25));return od.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(T.select("path.highlight-area")).attr("class","highlight-area").attr("opacity",0).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/2,n=e+E,r=m.getRangeValue(t.whiskers.min),o=m.getRangeValue(t.whiskers.max);return od.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(T.select("path.whisker.start")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.STROKE],originalClassName:"whisker start"})})).attr("stroke-width",ut.strokeWidth.thicker).attr("fill","none").transition(this.services.transitions.getTransition("boxplot-update-startingwhisker",t)).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/4,n=e+E/2,r=m.getRangeValue(t.whiskers.min),o=m.getRangeValue(t.whiskers.min);return od.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(T.select("path.median")).attr("fill","none").attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.STROKE],originalClassName:"median"})})).attr("stroke-width",2).transition(this.services.transitions.getTransition("boxplot-update-median",t)).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/2,n=e+E,r=m.getRangeValue(t.quartiles.q_50),o=r;return od.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(T.select("path.whisker.end")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.STROKE],originalClassName:"whisker end"})})).attr("stroke-width",ut.strokeWidth.thicker).attr("fill","none").transition(this.services.transitions.getTransition("boxplot-update-endingwhisker",t)).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/4,n=e+E/2,r=m.getRangeValue(t.whiskers.max),o=m.getRangeValue(t.whiskers.max);return od.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)}));var A=C.selectAll("circle.outlier").data((function(t){return t.outliers.map((function(e){var n;return n={min:t.whiskers.min,max:t.whiskers.max},n[i]=t[i],n.value=e,n}))}));A.exit().remove();var P=A.enter().append("circle");A.merge(P).attr("r",ut.circle.radius).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.FILL,k.STROKE],originalClassName:"outlier"})})).attr("fill-opacity",ut.circle.opacity.default).attr("cx",O).transition(this.services.transitions.getTransition("boxplot-update-circles",t)).attr("cy",x),this.addBoxEventListeners(),this.addCircleEventListeners()}},e.prototype.addBoxEventListeners=function(){var t=this,e=this.getOptions(),n=e.data.groupMapsTo;this.parent.selectAll("path.highlight-area").on("mouseover",(function(r){var i=kO(this),o=kO(this.parentNode);o.select("path.box").classed("hovered",!0).attr("fill-opacity",ut.box.opacity.hovered),t.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:i,items:[{label:e.tooltip.groupLabel,value:r[n],class:t.model.getColorClassName({classNameTypes:[k.TOOLTIP]})},{label:"Minimum",value:r.whiskers.min},{label:"Q1",value:r.quartiles.q_25},{label:"Median",value:r.quartiles.q_50},{label:"Q3",value:r.quartiles.q_75},{label:"Maximum",value:r.whiskers.max},{label:"IQR",value:r.quartiles.q_75-r.quartiles.q_25}]}),t.services.events.dispatchEvent(et.Boxplot.BOX_MOUSEOVER,{element:i,datum:r})})).on("mousemove",(function(e){var n=kO(this);t.services.events.dispatchEvent(et.Boxplot.BOX_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(et.Boxplot.BOX_CLICK,{element:kO(this),datum:e})})).on("mouseout",(function(e){var n=kO(this),r=kO(this.parentNode);r.select("path.box").classed("hovered",!1).attr("fill-opacity",ut.box.opacity.default),t.services.events.dispatchEvent(et.Boxplot.BOX_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.addCircleEventListeners=function(){var t=this,e=this.getOptions(),n=e.data.groupMapsTo,r=this.services.cartesianScales.getRangeIdentifier();this.parent.selectAll("circle").on("mouseover",(function(i){var o=kO(this);o.classed("hovered",!0).attr("fill-opacity",ut.circle.opacity.hovered).classed("unfilled",!1),t.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:o,items:[{label:e.tooltip.groupLabel,value:i[n],class:t.model.getColorClassName({classNameTypes:[k.TOOLTIP]})},{label:"Outlier",value:i[r]}]}),t.services.events.dispatchEvent(et.Boxplot.OUTLIER_MOUSEOVER,{element:o,datum:i})})).on("mousemove",(function(e){var n=kO(this);t.services.events.dispatchEvent(et.Boxplot.OUTLIER_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(et.Boxplot.OUTLIER_CLICK,{element:kO(this),datum:e})})).on("mouseout",(function(e){var n=kO(this);n.classed("hovered",!1).attr("fill-opacity",ut.circle.opacity.default),t.services.events.dispatchEvent(et.Boxplot.OUTLIER_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.HIDE,{hoveredElement:n})}))},e}(FS),_C=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="scatter",e.handleChartHolderOnHover=function(t){e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("chart-holder-hover-scatter")).attr("opacity",1)},e.handleChartHolderOnMouseOut=function(t){e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("chart-holder-mouseout-scatter")).attr("opacity",0)},e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("legend-hover-scatter")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("legend-mouseout-scatter")).attr("opacity",1)},e}return _C(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut);var e=this.configs.fadeInOnChartHolderMouseover;e&&(t.addEventListener(et.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.addEventListener(et.Chart.MOUSEOUT,this.handleChartHolderOnMouseOut))},e.prototype.filterBasedOnZoomDomain=function(t){var e=this.services.cartesianScales.getDomainIdentifier(t),n=this.model.get("zoomDomain");return void 0!==n?t.filter((function(t){return t[e].getTime()>n[0].getTime()&&t[e].getTime()<n[1].getTime()})):t},e.prototype.getScatterData=function(){var t,e=this,n=this.getOptions(),r=this.configs.stacked;if(r){var i=Object.keys(n.axes).some((function(t){return n.axes[t].percentage}));t=this.model.getStackedData({groups:this.configs.groups,percentage:i})}else t=this.model.getDisplayData(this.configs.groups).filter((function(t){var n=e.services.cartesianScales.getRangeIdentifier(t);return void 0!==t[n]&&null!==t[n]}));return this.filterBasedOnZoomDomain(t)},e.prototype.render=function(t){var e=od.getProperty(this.getOptions(),"points","enabled")||od.getProperty(this.getOptions(),"bubble","enabled");if(e){var n=this.getContainerSVG({withinChartClip:!0}),r=this.getOptions(),i=r.data.groupMapsTo,o=this.services.cartesianScales.getDomainIdentifier(),a=n.selectAll("circle.dot").data(this.getScatterData(),(function(t){return t[i]+"-"+t[o]}));a.exit().attr("opacity",0).remove();var s=a.enter().append("circle").classed("dot",!0).attr("opacity",0),u=s.merge(a);this.styleCircles(u,t),this.addEventListeners()}},e.prototype.isDatapointThresholdAnomaly=function(t,e){var n=this,r=this.configs.handleThresholds;if(!r)return!1;var i=this.services.cartesianScales,o=i.getOrientation(),a=od.flipDomainAndRangeBasedOnOrientation(this.services.cartesianScales.getHighestDomainThreshold(),this.services.cartesianScales.getHighestRangeThreshold(),o),s=a[0],u=a[1],c=od.flipDomainAndRangeBasedOnOrientation((function(t,e){return n.services.cartesianScales.getDomainValue(t,e)}),(function(t,e){return n.services.cartesianScales.getRangeValue(t,e)}),o),l=c[0],h=c[1],f=l(t,e),p=h(t,e);return u&&s?p<=u.scaleValue&&f>=s.scaleValue:u?p<=u.scaleValue:s?f>=s.scaleValue:void 0},e.prototype.styleCircles=function(t,e){var n=this,r=this.getOptions(),i=r.points,o=i.filled,s=i.fillOpacity,u=this.services,c=u.cartesianScales,l=u.transitions,h=r.data.groupMapsTo,f=function(t,e){return c.getDomainValue(t,e)},p=function(t,e){return c.getRangeValue(t,e)},d=od.flipDomainAndRangeBasedOnOrientation(f,p,c.getOrientation()),v=d[0],g=d[1],m=this.configs.fadeInOnChartHolderMouseover;t.raise().classed("dot",!0).attr("class",(function(t){var e=c.getDomainIdentifier(t),r=n.model.getIsFilled(t[h],t[e],t,o),i=r?[k.FILL,k.STROKE]:[k.STROKE];return n.model.getColorClassName({classNameTypes:i,dataGroupName:t[h],originalClassName:"dot"})})).classed("threshold-anomaly",(function(t,e){return n.isDatapointThresholdAnomaly(t,e)})).classed("filled",(function(t){var e=c.getDomainIdentifier(t);return n.model.getIsFilled(t[h],t[e],t,o)})).classed("unfilled",(function(t){var e=c.getDomainIdentifier(t);return!n.model.getIsFilled(t[h],t[e],t,o)})).transition(l.getTransition("scatter-update-enter",e)).attr("cx",v).attr("cy",g).attr("r",r.points.radius).style("fill",(function(t){var e=c.getDomainIdentifier(t);if(n.model.getIsFilled(t[h],t[e],t,o))return n.model.getFillColor(t[h],t[e],t)})).style("stroke",(function(t){var e=c.getDomainIdentifier(t);return n.model.getStrokeColor(t[h],t[e],t)})).attr("fill-opacity",o?s:1).attr("opacity",m?0:1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","point").attr("aria-label",(function(t){var e=c.getRangeIdentifier(t);return t[e]})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this,e=t.getOptions().data.groupMapsTo;this.parent.selectAll("circle").on("mouseover",(function(n){var r=kO(this);r.classed("hovered",!0).attr("class",(function(n){return t.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:n[e],originalClassName:r.attr("class")})})).style("fill",(function(n){var r=t.services.cartesianScales.getDomainIdentifier(n);return t.model.getFillColor(n[e],n[r],n)})).classed("unfilled",!1);var i=od.getProperty(t.getOptions(),"bubble");t.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:r,data:[n],additionalItems:[{label:od.getProperty(i,"radiusLabel"),value:n[od.getProperty(i,"radiusMapsTo")]}]}),t.services.events.dispatchEvent(et.Scatter.SCATTER_MOUSEOVER,{element:r,datum:n})})).on("mousemove",(function(e){var n=kO(this);t.services.events.dispatchEvent(et.Scatter.SCATTER_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(et.Scatter.SCATTER_CLICK,{element:kO(this),datum:e})})).on("mouseout",(function(n){var r=kO(this);if(r.classed("hovered",!1),!t.configs.filled){var i=t.getOptions().points.filled,o=t.services.cartesianScales.getDomainIdentifier(n),a=t.model.getIsFilled(n[e],n[o],n,i);r.classed("unfilled",!a).style("fill",(function(n){return a||i?t.model.getFillColor(n[e],n[o],n):null}))}t.services.events.dispatchEvent(et.Scatter.SCATTER_MOUSEOUT,{element:r,datum:n}),t.services.events.dispatchEvent(et.Tooltip.HIDE,{hoveredElement:r})}))},e.prototype.destroy=function(){this.parent.selectAll("circle").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),t.removeEventListener(et.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.removeEventListener(et.Chart.MOUSEOUT,this.handleChartHolderOnMouseOut)},e}(FS),OC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bubble",e}return OC(e,t),e.prototype.getRadiusScale=function(t){var e=this.getOptions(),n=e.bubble.radiusMapsTo,r=t.data(),i=r.map((function(t){return t[n]})).filter((function(t){return t})),o=VO.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttr:!0}),a=i.length>0,s=a?rv(i):[1,1];return sm().domain(s).range(a?e.bubble.radiusRange(o,r):[4,4])},e.prototype.styleCircles=function(t,e){var n=this,r=this.getOptions(),i=r.bubble.radiusMapsTo,o=this.getRadiusScale(t),s=r.data.groupMapsTo,u=this.services.cartesianScales,c=function(t,e){return u.getDomainValue(t,e)},l=function(t,e){return u.getRangeValue(t,e)},h=od.flipDomainAndRangeBasedOnOrientation(c,l,u.getOrientation()),f=h[0],p=h[1];t.raise().classed("dot",!0).attr("role",a.GRAPHICS_SYMBOL).transition(this.services.transitions.getTransition("bubble-update-enter",e)).attr("cx",f).attr("cy",p).attr("r",(function(t){return o(t[i]||1)})).attr("class",(function(t){return n.model.getColorClassName({classNameTypes:[k.FILL,k.STROKE],dataGroupName:t[s],originalClassName:"dot"})})).style("fill",(function(t){var e=n.services.cartesianScales.getDomainIdentifier(t);return n.model.getFillColor(t[s],t[e],t)})).style("stroke",(function(t){var e=n.services.cartesianScales.getDomainIdentifier(t);return n.model.getStrokeColor(t[s],t[e],t)})).attr("fill-opacity",r.bubble.fillOpacity).attr("opacity",1)},e}(bC),wC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),EC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bullet",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-hover-simple-bar")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-mouseout-simple-bar")).attr("opacity",1)},e}return wC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getOptions(),r=n.data.groupMapsTo,i=this.getContainerSVG({withinChartClip:!0}),o=this.model.getDisplayData(this.configs.groups),s=this.services.cartesianScales.getRangeScale(),u=this.services.cartesianScales.getRangeIdentifier(),c=s.range(),l=c[0],h=c[1],f=s.domain(),p=(f[0],f[1]),d=function(){var n=[];o.forEach((function(t){t.ranges?t.ranges.forEach((function(e,r){null!==e&&void 0!==e&&e<p&&n.push({datum:t,value:e,order:r+1})})):n.push({datum:t,order:1})}));var a=VO.appendOrSelect(i,"g.range-boxes").selectAll("path.range-box").data(n,(function(t){return t[r]+"-"+t.order}));a.exit().attr("opacity",0).remove();var s=a.enter().append("path").attr("opacity",0);s.merge(a).attr("class",(function(t){return"range-box order-"+t.order})).transition(e.services.transitions.getTransition("bullet-range-box-update-enter",t)).attr("d",(function(t,n){var r,i,o,a,s=16;return 1===t.order?(r=e.services.cartesianScales.getDomainValue(t.datum,n)-s/2,i=r+s,o=h-2,a=l+1):(r=e.services.cartesianScales.getDomainValue(t.datum,n)-s/2,i=r+s,o=e.services.cartesianScales.getRangeValue(t.value,n),a=h),od.generateSVGPathString({x0:r,x1:i,y0:o,y1:a},e.services.cartesianScales.getOrientation())})).attr("opacity",1)},v=function(){var n=VO.appendOrSelect(i,"g.bars").selectAll("path.bar").data(o,(function(t){return t[r]}));n.exit().attr("opacity",0).remove();var s=n.enter().append("path").attr("opacity",0);s.merge(n).classed("bar",!0).transition(e.services.transitions.getTransition("bullet-bar-update-enter",t)).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t[r],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[r])})).attr("d",(function(t,n){var r=8,i=e.services.cartesianScales.getDomainValue(t,n)-r/2,o=i+r,a=e.services.cartesianScales.getRangeValue(0)+1,s=e.services.cartesianScales.getRangeValue(t,n);return od.generateSVGPathString({x0:i,x1:o,y0:a,y1:s},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value}))},g=function(){var n=VO.appendOrSelect(i,"g.markers").selectAll("path.marker").data(o.filter((function(t){return null!==od.getProperty(t,"marker")})),(function(t){return t[r]}));n.exit().attr("opacity",0).remove();var a=n.enter().append("path").attr("opacity",0);a.merge(n).classed("marker",!0).transition(e.services.transitions.getTransition("bullet-marker-update-enter",t)).attr("d",(function(t,n){var r=24,i=e.services.cartesianScales.getDomainValue(t,n)-r/2,o=i+r,a=e.services.cartesianScales.getRangeValue(t.marker,n),s=a;return od.generateSVGPathString({x0:i,x1:o,y0:a,y1:s},e.services.cartesianScales.getOrientation())})).attr("opacity",1)},m=function(){var n=[];o.filter((function(t){return null!==od.getProperty(t,"marker")})).forEach((function(t){var e=t.marker,r=t[u];n=n.concat([{datum:t,value:.25*e,barValue:r},{datum:t,value:.5*e,barValue:r},{datum:t,value:.75*e,barValue:r}])}));var a=VO.appendOrSelect(i,"g.quartiles").selectAll("path.quartile").data(n,(function(t){return t[r]}));a.exit().attr("opacity",0).remove();var s=a.enter().append("path").attr("opacity",0);s.merge(a).attr("class",(function(t){return"quartile "+(t.value<=t.barValue?"over-bar":"")})).transition(e.services.transitions.getTransition("bullet-quartile-update-enter",t)).attr("d",(function(t,n){var r=t.datum,i=t.value,o=4;r.ranges&&-1!==r.ranges.indexOf(i)&&(o=8);var a=e.services.cartesianScales.getDomainValue(r,n)-o/2,s=a+o,u=e.services.cartesianScales.getRangeValue(i,n),c=u;return od.generateSVGPathString({x0:a,x1:s,y0:u,y1:c},e.services.cartesianScales.getOrientation())})).attr("opacity",1)};d(),v(),g(),m(),this.addEventListeners()},e.prototype.getMatchingRangeIndexForDatapoint=function(t){for(var e,n=t.ranges.length-1;n>0;n--){var r=t.ranges[n];if(t.value>=r)return e=n,e}return 0},e.prototype.addEventListeners=function(){var t=this,e=this.getOptions(),n=e.data.groupMapsTo,r=this.services.cartesianScales.getRangeIdentifier();this.parent.selectAll("path.bar").on("mouseover",(function(i){var o=kO(this);o.classed("hovered",!0),o.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")),t.services.events.dispatchEvent(et.Bar.BAR_MOUSEOVER,{element:o,datum:i});var a=od.getProperty(e,"bullet","performanceAreaTitles"),s=t.getMatchingRangeIndexForDatapoint(i);t.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:o,items:[{label:e.tooltip.groupLabel||"Group",value:i[n],class:t.model.getColorClassName({classNameTypes:[k.TOOLTIP],dataGroupName:i[n]})},{label:"Value",value:i[r]},{label:"Target",value:i.marker},{label:"Percentage",value:Math.floor(i[r]/i.marker*100)+"%"},{label:"Performance",value:a[s]}]})})).on("mousemove",(function(e){t.services.events.dispatchEvent(et.Bar.BAR_MOUSEMOVE,{element:kO(this),datum:e}),t.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(et.Bar.BAR_CLICK,{element:kO(this),datum:e})})).on("mouseout",(function(e){var n=kO(this);n.classed("hovered",!1),n.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")),t.services.events.dispatchEvent(et.Bar.BAR_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.destroy=function(){this.parent.selectAll("path.bar").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(FS),SC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),TC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("path.line").transition(e.services.transitions.getTransition("legend-hover-line")).attr("opacity",(function(t){return t.name!==n.datum()["name"]?lt.opacity.unselected:lt.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.line").transition(e.services.transitions.getTransition("legend-mouseout-line")).attr("opacity",lt.opacity.selected)},e}return SC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG({withinChartClip:!0}),r=this.services,i=r.cartesianScales,o=r.curves,s=function(t,e){return i.getDomainValue(t,e)},u=function(t,e){return i.getRangeValue(t,e)},c=od.flipDomainAndRangeBasedOnOrientation(s,u,i.getOrientation()),l=c[0],h=c[1],f=this.getOptions(),p=rC().x(l).y(h).curve(o.getD3Curve()).defined((function(t,e){var n=i.getRangeIdentifier(t),r=t[n];return null!==r&&void 0!==r})),d=[];if(this.configs.stacked){var v=Object.keys(f.axes).some((function(t){return f.axes[t].percentage})),g=f.data.groupMapsTo,m=this.model.getStackedData({groups:this.configs.groups,percentage:v});d=m.map((function(t){var n=e.services.cartesianScales.getDomainIdentifier(t),r=e.services.cartesianScales.getRangeIdentifier(t);return{name:od.getProperty(t,0,g),data:t.map((function(t){var e;return e={},e[n]=t.data.sharedStackKey,e[g]=t[g],e[r]=t[1],e})),hidden:!od.some(t,(function(t){return t[0]!==t[1]}))}}))}else d=this.model.getGroupedData(this.configs.groups);var y=n.selectAll("path.line").data(d,(function(t){return t.name}));y.exit().attr("opacity",0).remove();var _=y.enter().append("path").classed("line",!0).attr("opacity",0);_.merge(y).data(d,(function(t){return t.name})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.STROKE],dataGroupName:t.name,originalClassName:"line"})})).style("stroke",(function(t){return e.model.getStrokeColor(t.name)})).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","line").attr("aria-label",(function(t){var n=t.data;return n.map((function(t){var n=e.services.cartesianScales.getRangeIdentifier(t);return t[n]})).join(",")})).transition(this.services.transitions.getTransition("line-update-enter",t)).attr("opacity",(function(t){return t.hidden?0:1})).attr("d",(function(t){var e=t.data;return p(e)}))},e.prototype.destroy=function(){this.parent.selectAll("path.line").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(FS),MC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),CC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="lollipop",e.handleScatterOnHover=function(t){var n=t.detail,r=e.getOptions(),i=r.data.groupMapsTo;e.parent.selectAll("line.line").attr("stroke-width",(function(t){return t[i]!==n.datum[i]?lt.weight.unselected:lt.weight.selected}))},e.handleScatterOnMouseOut=function(t){e.parent.selectAll("line.line").attr("stroke-width",lt.weight.unselected)},e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions(),i=r.data.groupMapsTo;e.parent.selectAll("line.line").transition(e.services.transitions.getTransition("legend-hover-line")).attr("opacity",(function(t){return t[i]!==n.datum()["name"]?lt.opacity.unselected:lt.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("line.line").transition(e.services.transitions.getTransition("legend-mouseout-line")).attr("opacity",lt.opacity.selected)},e}return MC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getContainerSVG({withinChartClip:!0}),r=this.model.getOptions(),i=r.data.groupMapsTo,o=this.services.cartesianScales,a=o.getMainXScale(),s=o.getMainYScale(),u=o.getDomainIdentifier(),c=function(t,e){return o.getDomainValue(t,e)},l=function(t,e){return o.getRangeValue(t,e)},h=o.getOrientation(),f=od.flipDomainAndRangeBasedOnOrientation(c,l,h),p=f[0],d=f[1],v=n.selectAll("line.line").data(this.getScatterData(),(function(t){return t[i]+"-"+t[u]}));v.exit().attr("opacity",0).remove();var g=v.enter().append("line").attr("opacity",0),m=g.merge(v).classed("line",!0).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.STROKE],dataGroupName:t[i],originalClassName:"line"})})).transition(this.services.transitions.getTransition("lollipop-line-update-enter",t)).style("stroke",(function(t){return e.model.getFillColor(t[i],t[u],t)})).attr("opacity",1);h===I.HORIZONTAL?m.attr("y1",d).attr("y2",d).attr("x1",a.range()[0]).attr("x2",(function(t,e){return p(t,e)-r.points.radius})):m.attr("x1",p).attr("x2",p).attr("y1",s.range()[0]).attr("y2",(function(t,e){return d(t,e)+r.points.radius})),this.addScatterPointEventListeners()},e.prototype.addScatterPointEventListeners=function(){this.services.events.addEventListener(et.Scatter.SCATTER_MOUSEOVER,this.handleScatterOnHover),this.services.events.addEventListener(et.Scatter.SCATTER_MOUSEOUT,this.handleScatterOnMouseOut)},e.prototype.destroy=function(){this.parent.selectAll("line.line").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),t.removeEventListener(et.Scatter.SCATTER_MOUSEOVER,this.handleScatterOnHover),t.removeEventListener(et.Scatter.SCATTER_MOUSEOUT,this.handleScatterOnMouseOut)},e}(bC),AC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),PC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="scatter-stacked",e}return AC(e,t),e.prototype.render=function(t){var e=this,n=od.getProperty(this.getOptions(),"points","enabled");if(n){var r=this.getContainerSVG({withinChartClip:!0}),i=this.getOptions(),o=i.data.groupMapsTo,s=Object.keys(i.axes).some((function(t){return i.axes[t].percentage})),u=this.model.getStackedData({groups:this.configs.groups,percentage:s}),c=r.selectAll("g.dots").data(u,(function(t){return od.getProperty(t,0,o)}));c.exit().attr("opacity",0).remove();var l=c.enter().append("g").classed("dots",!0).attr("role",a.GROUP),h=l.merge(c).selectAll("circle.dot").data((function(t){return t}));h.exit().attr("opacity",0).remove();var f=h.enter().append("circle").classed("dot",!0).attr("opacity",0),p=f.merge(h).datum((function(t){var n,r=t[o],i=e.services.cartesianScales.getDomainIdentifier(t),a=e.services.cartesianScales.getRangeIdentifier(t);return n={},n[o]=r,n[i]=t["data"]["sharedStackKey"],n[a]=t[1],n}));this.styleCircles(p,t),this.addEventListeners()}},e.prototype.getTooltipData=function(t,e){var n=this,r=this.getOptions(),i=r.data.groupMapsTo,o=Object.keys(r.axes).some((function(t){return r.axes[t].percentage})),a=this.model.getStackedData({groups:this.configs.groups,percentage:o}),s=[];return a.forEach((function(r,a){r.forEach((function(r,u){var c,l=r[i],h=r["data"]["sharedStackKey"],f=r["data"][l],p=r[1],d=n.services.cartesianScales.getDomainIdentifier(r),v=n.services.cartesianScales.getRangeIdentifier(r);null!==f&&void 0!==f&&t===n.services.cartesianScales.getDomainValue(h)&&e===n.services.cartesianScales.getRangeValue(p)&&(o&&(f=n.model.getStackedData({groups:n.configs.groups})[a][u]["data"][l]),null!==f&&s.push((c={},c[i]=l,c[d]=h,c[v]=f,c)))}))})),this.model.getDisplayData(this.configs.groups).filter((function(t){var e=n.services.cartesianScales.getDomainIdentifier(t),r=n.services.cartesianScales.getRangeIdentifier(t);return void 0!==s.find((function(n){return n[i]==t[i]&&n[e]==t[e]&&n[r]==t[r]}))}))},e}(bC);function kC(t){return t.innerRadius}function LC(t){return t.outerRadius}function DC(t){return t.startAngle}function RC(t){return t.endAngle}function IC(t){return t&&t.padAngle}function NC(t,e,n,r,i,o,a,s){var u=n-t,c=r-e,l=a-i,h=s-o,f=h*u-l*c;if(!(f*f<sS))return f=(l*(e-o)-h*(t-i))/f,[t+f*u,e+f*c]}function jC(t,e,n,r,i,o,a){var s=t-n,u=e-r,c=(a?o:-o)/aS(s*s+u*u),l=c*u,h=-c*s,f=t+l,p=e+h,d=n+l,v=r+h,g=(f+d)/2,m=(p+v)/2,y=d-f,_=v-p,b=y*y+_*_,O=i-o,x=f*v-d*p,w=(_<0?-1:1)*aS(rS(0,O*O*b-x*x)),E=(x*_-y*w)/b,S=(-x*y-_*w)/b,T=(x*_+y*w)/b,M=(-x*y+_*w)/b,C=E-g,A=S-m,P=T-g,k=M-m;return C*C+A*A>P*P+k*k&&(E=T,S=M),{cx:E,cy:S,x01:-l,y01:-h,x11:E*(i/O-1),y11:S*(i/O-1)}}var VC=function(){var t=kC,e=LC,n=G_(0),r=null,i=DC,o=RC,a=IC,s=null;function u(){var u,c,l=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-cS,p=o.apply(this,arguments)-cS,d=tS(p-f),v=p>f;if(s||(s=u=tC()),h<l&&(c=h,h=l,l=c),h>sS)if(d>lS-sS)s.moveTo(h*nS(f),h*oS(f)),s.arc(0,0,h,f,p,!v),l>sS&&(s.moveTo(l*nS(p),l*oS(p)),s.arc(0,0,l,p,f,v));else{var g,m,y=f,_=p,b=f,O=p,x=d,w=d,E=a.apply(this,arguments)/2,S=E>sS&&(r?+r.apply(this,arguments):aS(l*l+h*h)),T=iS(tS(h-l)/2,+n.apply(this,arguments)),M=T,C=T;if(S>sS){var A=fS(S/l*oS(E)),P=fS(S/h*oS(E));(x-=2*A)>sS?(A*=v?1:-1,b+=A,O-=A):(x=0,b=O=(f+p)/2),(w-=2*P)>sS?(P*=v?1:-1,y+=P,_-=P):(w=0,y=_=(f+p)/2)}var k=h*nS(y),L=h*oS(y),D=l*nS(O),R=l*oS(O);if(T>sS){var I,N=h*nS(_),j=h*oS(_),V=l*nS(b),B=l*oS(b);if(d<uS&&(I=NC(k,L,V,B,N,j,D,R))){var G=k-I[0],U=L-I[1],H=N-I[0],z=j-I[1],F=1/oS(hS((G*H+U*z)/(aS(G*G+U*U)*aS(H*H+z*z)))/2),W=aS(I[0]*I[0]+I[1]*I[1]);M=iS(T,(l-W)/(F-1)),C=iS(T,(h-W)/(F+1))}}w>sS?C>sS?(g=jC(V,B,k,L,h,C,v),m=jC(N,j,D,R,h,C,v),s.moveTo(g.cx+g.x01,g.cy+g.y01),C<T?s.arc(g.cx,g.cy,C,eS(g.y01,g.x01),eS(m.y01,m.x01),!v):(s.arc(g.cx,g.cy,C,eS(g.y01,g.x01),eS(g.y11,g.x11),!v),s.arc(0,0,h,eS(g.cy+g.y11,g.cx+g.x11),eS(m.cy+m.y11,m.cx+m.x11),!v),s.arc(m.cx,m.cy,C,eS(m.y11,m.x11),eS(m.y01,m.x01),!v))):(s.moveTo(k,L),s.arc(0,0,h,y,_,!v)):s.moveTo(k,L),l>sS&&x>sS?M>sS?(g=jC(D,R,N,j,l,-M,v),m=jC(k,L,V,B,l,-M,v),s.lineTo(g.cx+g.x01,g.cy+g.y01),M<T?s.arc(g.cx,g.cy,M,eS(g.y01,g.x01),eS(m.y01,m.x01),!v):(s.arc(g.cx,g.cy,M,eS(g.y01,g.x01),eS(g.y11,g.x11),!v),s.arc(0,0,l,eS(g.cy+g.y11,g.cx+g.x11),eS(m.cy+m.y11,m.cx+m.x11),v),s.arc(m.cx,m.cy,M,eS(m.y11,m.x11),eS(m.y01,m.x01),!v))):s.arc(0,0,l,O,b,v):s.lineTo(D,R)}else s.moveTo(0,0);if(s.closePath(),u)return s=null,u+""||null}return u.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-uS/2;return[nS(r)*n,oS(r)*n]},u.innerRadius=function(e){return arguments.length?(t="function"===typeof e?e:G_(+e),u):t},u.outerRadius=function(t){return arguments.length?(e="function"===typeof t?t:G_(+t),u):e},u.cornerRadius=function(t){return arguments.length?(n="function"===typeof t?t:G_(+t),u):n},u.padRadius=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:G_(+t),u):r},u.startAngle=function(t){return arguments.length?(i="function"===typeof t?t:G_(+t),u):i},u.endAngle=function(t){return arguments.length?(o="function"===typeof t?t:G_(+t),u):o},u.padAngle=function(t){return arguments.length?(a="function"===typeof t?t:G_(+t),u):a},u.context=function(t){return arguments.length?(s=null==t?null:t,u):s},u},BC=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},GC=function(t){return t},UC=function(){var t=GC,e=BC,n=null,r=G_(0),i=G_(lS),o=G_(0);function a(a){var s,u,c,l,h,f=a.length,p=0,d=new Array(f),v=new Array(f),g=+r.apply(this,arguments),m=Math.min(lS,Math.max(-lS,i.apply(this,arguments)-g)),y=Math.min(Math.abs(m)/f,o.apply(this,arguments)),_=y*(m<0?-1:1);for(s=0;s<f;++s)(h=v[d[s]=s]=+t(a[s],s,a))>0&&(p+=h);for(null!=e?d.sort((function(t,n){return e(v[t],v[n])})):null!=n&&d.sort((function(t,e){return n(a[t],a[e])})),s=0,c=p?(m-f*_)/p:0;s<f;++s,g=l)u=d[s],h=v[u],l=g+(h>0?h*c:0)+_,v[u]={data:a[u],index:s,value:h,startAngle:g,endAngle:l,padAngle:y};return v}return a.value=function(e){return arguments.length?(t="function"===typeof e?e:G_(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"===typeof t?t:G_(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"===typeof t?t:G_(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:G_(+t),a):o},a},HC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function zC(t,e){var n=this,r=wg(this._current,t);return function(t){return n._current=r(t),e(n._current)}}var FC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("path.slice").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t.data[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.slice").transition(e.services.transitions.getTransition("legend-mouseout-bar")).attr("opacity",1)},e}return HC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.getInnerRadius=function(){return ft.innerRadius},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this,r=this.getContainerSVG(),i=this.model.getDisplayData().filter((function(t){return t.value>0})),o=this.getOptions(),s=o.data.groupMapsTo,u=this.computeRadius();this.arc=VC().innerRadius(this.getInnerRadius()).outerRadius(u),this.hoverArc=VC().innerRadius(this.getInnerRadius()).outerRadius(u+ft.hoverArc.outerRadiusOffset);var c=UC().value((function(t){return t.value})).sort(od.getProperty(o,"pie","sortFunction")).padAngle(ft.padAngle),l=c(i),h=VO.appendOrSelect(r,"g.slices").attr("role",a.GROUP).attr("data-name","slices"),f=h.selectAll("path.slice").data(l,(function(t){return t.data[s]}));f.exit().attr("opacity",0).remove();var p=f.enter().append("path").classed("slice",!0).attr("opacity",0);p.merge(f).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t.data[s],originalClassName:"slice"})})).style("fill",(function(t){return n.model.getFillColor(t.data[s])})).attr("d",this.arc).transition(this.services.transitions.getTransition("pie-slice-enter-update",t)).attr("opacity",1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","slice").attr("aria-label",(function(t){return t.value+", "+od.convertValueToPercentage(t.data.value,i)+"%"})).attrTween("d",(function(t){return zC.bind(this)(t,n.arc)}));var d=o.pie.labels.enabled,v=d?l.filter((function(t){return t.value>0})):[],g=VO.appendOrSelect(r,"g.labels").attr("role",a.GROUP).attr("data-name","labels"),m=g.selectAll("text.pie-label").data(v,(function(t){return t.data[s]}));m.exit().attr("opacity",0).remove();var y=m.enter().append("text").classed("pie-label",!0),_=[];y.merge(m).style("text-anchor","middle").text((function(t){return o.pie.labels.formatter?o.pie.labels.formatter(t):od.convertValueToPercentage(t.data.value,i)+"%"})).datum((function(t){var e=u+7,n=(t.endAngle-t.startAngle)/2+t.startAngle,r=n/Math.PI*180,i=this.getComputedTextLength();return t.textOffsetX=i/2,t.textOffsetY=r>90&&r<270?10:0,t.xPosition=(t.textOffsetX+e)*Math.sin(n),t.yPosition=(t.textOffsetY+e)*-Math.cos(n),t})).attr("transform",(function(t,e){var n=v.length,r=(t.endAngle-t.startAngle)*(180/Math.PI);if(e>=n-2&&r<ft.callout.minSliceDegree){var i=void 0,o=void 0;return t.index===n-1?(i=t.xPosition+ft.callout.offsetX+ft.callout.textMargin+t.textOffsetX,o=t.yPosition-ft.callout.offsetY,t.direction=H.RIGHT,_.push(t)):(i=t.xPosition-ft.callout.offsetX-t.textOffsetX-ft.callout.textMargin,o=t.yPosition-ft.callout.offsetY,t.direction=H.LEFT,_.push(t)),"translate("+i+", "+o+")"}return"translate("+t.xPosition+", "+t.yPosition+")"})),this.renderCallouts(_);var b=od.getProperty(o,"donut")?"donut":"pie",O=od.getProperty(o,b,"alignment"),x=VO.getSVGElementSize(this.getParent(),{useAttr:!0}).width,w=d?ft.xOffset:0,E=d?ft.yOffset:0,S=u+w;O===V.CENTER?S=x/2:O===V.RIGHT&&(S=x-u-ft.xOffset);var T=u+E;_.length>0&&(T+=ft.yOffsetCallout),r.attr("transform","translate("+S+", "+T+")"),this.addEventListeners()},e.prototype.renderCallouts=function(t){var e=VO.appendOrSelect(this.getContainerSVG(),"g.callouts").attr("role",a.GROUP).attr("data-name","callouts"),n=e.selectAll("g.callout").data(t);n.exit().remove();var r=n.enter().append("g").classed("callout",!0).attr("role",a.GRAPHICS_SYMBOL+" "+a.GROUP).attr("aria-roledescription","label callout");r.merge(n).datum((function(t){var e=t.xPosition,n=t.yPosition,r=t.direction;return r===H.RIGHT?(t.startPos={x:e,y:n+t.textOffsetY},t.endPos={x:e+ft.callout.offsetX,y:n-ft.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x-ft.callout.horizontalLineLength):(t.startPos={x:e,y:n+t.textOffsetY},t.endPos={x:e-ft.callout.offsetX,y:n-ft.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x+ft.callout.horizontalLineLength),t}));var i=r.append("line").classed("vertical-line",!0);i.merge(e.selectAll("line.vertical-line")).datum((function(t){return kO(this.parentNode).datum()})).style("stroke-width","1px").attr("x1",(function(t){return t.startPos.x})).attr("y1",(function(t){return t.startPos.y})).attr("x2",(function(t){return t.intersectPointX})).attr("y2",(function(t){return t.endPos.y}));var o=r.append("line").classed("horizontal-line",!0);o.merge(e.selectAll("line.horizontal-line")).datum((function(t){return kO(this.parentNode).datum()})).style("stroke-width","1px").attr("x1",(function(t){return t.intersectPointX})).attr("y1",(function(t){return t.endPos.y})).attr("x2",(function(t){return t.endPos.x})).attr("y2",(function(t){return t.endPos.y}))},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("path.slice").on("mouseover",(function(e){var n=kO(this);n.classed("hovered",!0).transition(t.services.transitions.getTransition("pie_slice_mouseover")).attr("d",t.hoverArc),t.services.events.dispatchEvent(et.Pie.SLICE_MOUSEOVER,{element:kO(this),datum:e});var r=t.getOptions().data.groupMapsTo;t.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:n,items:[{label:e.data[r],value:e.data.value}]})})).on("mousemove",(function(e){var n=kO(this);t.services.events.dispatchEvent(et.Pie.SLICE_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(et.Pie.SLICE_CLICK,{element:kO(this),datum:e})})).on("mouseout",(function(e){var n=kO(this);n.classed("hovered",!1).transition(t.services.transitions.getTransition("pie_slice_mouseover")).attr("d",t.arc),t.services.events.dispatchEvent(et.Pie.SLICE_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.computeRadius=function(){var t=VO.getSVGElementSize(this.parent,{useAttrs:!0}),e=t.width,n=t.height,r=this.getOptions(),i=Math.min(e,n)/2,o=r.pie.labels.enabled;return o?i+ft.radiusOffset:i},e}(FS),WC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qC="4,10 8,6 12,10",YC="12,6 8,10 4,6",ZC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e}return WC(e,t),e.prototype.init=function(){this.services.events},e.prototype.getValue=function(){var t,e,n=this.model.getData(),r=(e=null===(t=n.find((function(t){return"value"===t.group})))||void 0===t?void 0:t.value,null!==e&&void 0!==e?e:null);return r},e.prototype.getValueRatio=function(){var t=od.clamp(this.getValue(),0,100);return t/100},e.prototype.getDelta=function(){var t,e,n=this.model.getData(),r=(e=null===(t=n.find((function(t){return"delta"===t.group})))||void 0===t?void 0:t.value,null!==e&&void 0!==e?e:null);return r},e.prototype.getArcRatio=function(){var t=this.getOptions(),e=od.getProperty(t,"gauge","type"),n=e===q.FULL?1:.5;return n},e.prototype.getArcSize=function(){return this.getArcRatio()*Math.PI*2},e.prototype.getStartAngle=function(){var t=this.getArcSize();return t===2*Math.PI?0:-t/2},e.prototype.getArrow=function(t){var e=this.getOptions(),n=od.getProperty(e,"gauge","deltaArrow","direction");switch(n){case Y.UP:return qC;case Y.DOWN:return YC;default:return t>0?qC:YC}},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG(),r=this.getOptions(),i=(r.data.groupMapsTo,this.getValue()),o=this.getValueRatio(),s=this.getArcSize(),u=this.getStartAngle(),c=o*s,l=u+c,h=u+s,f=this.computeRadius(),p=this.getInnerRadius();this.backgroundArc=VC().innerRadius(p).outerRadius(f).startAngle(l).endAngle(h),this.arc=VC().innerRadius(p).outerRadius(f).startAngle(u).endAngle(l),VO.appendOrSelect(n,"path.arc-background").attr("d",this.backgroundArc).attr("role",a.GROUP);var d=n.selectAll("path.arc-foreground").data([i]),v=d.enter().append("path");v.merge(d).attr("class",this.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:"value",originalClassName:"arc-foreground"})).style("fill",(function(t){return od.getProperty(e.getOptions(),"color","scale","value")})).attr("d",this.arc).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","value").attr("aria-label",(function(t){return t.value})),this.drawValueNumber(),this.drawDelta(),d.exit().remove();var g=od.getProperty(r,"gauge","alignment"),m=VO.getSVGElementSize(this.getParent(),{useAttr:!0}).width,y=f;g===V.CENTER?y=m/2:g===V.RIGHT&&(y=m-f),n.attr("transform","translate("+y+", "+f+")"),this.addEventListeners()},e.prototype.drawValueNumber=function(){var t=this.getContainerSVG(),e=this.getOptions(),n=od.getProperty(e,"gauge","type"),r=this.getValue(),i=this.getDelta(),o=this.computeRadius(),a=od.getProperty(e,"gauge","valueFontSize"),s=od.getProperty(e,"gauge","deltaFontSize"),u=od.getProperty(e,"gauge","numberSpacing"),c=od.getProperty(e,"gauge","showPercentageSymbol"),l=0;n!==q.FULL||i?n===q.SEMI&&i&&(l=-(s(o)+u)):l=s(o);var h=VO.appendOrSelect(t,"g.gauge-numbers").attr("transform","translate(0, "+l+")"),f=a(o),p=VO.appendOrSelect(h,"g.gauge-value-number"),d=od.getProperty(e,"gauge","numberFormatter"),v=p.selectAll("text.gauge-value-number").data([r]);v.enter().append("text").attr("class","gauge-value-number").merge(v).style("font-size",f+"px").attr("text-anchor","middle").text((function(t){return d(t)}));var g=VO.getSVGElementSize(VO.appendOrSelect(t,"text.gauge-value-number"),{useBBox:!0}).width,m=f/2,y=c?"%":"",_=VO.appendOrSelect(p,"text.gauge-value-symbol").style("font-size",m+"px").attr("x",g/2).text(y),b=VO.getSVGElementSize(_,{useBBox:!0}),O=b.width,x=b.height;_.attr("y","-"+x/2+"px"),p.attr("transform","translate(-"+O/2+", 0)")},e.prototype.drawDelta=function(){var t=this,e=this.getContainerSVG(),n=this.getOptions(),r=this.getDelta(),i=this.computeRadius(),o=r?od.getProperty(n,"gauge","deltaFontSize"):function(){return 0},a=r?od.getProperty(n,"gauge","numberFormatter"):function(){return null},s=od.getProperty(n,"gauge","deltaArrow","size"),u=od.getProperty(n,"gauge","numberSpacing"),c=od.getProperty(n,"gauge","showPercentageSymbol"),l=VO.appendOrSelect(e,"g.gauge-numbers"),h=VO.appendOrSelect(l,"g.gauge-delta").attr("transform","translate(0, "+(o(i)+u)+")"),f=VO.appendOrSelect(h,"text.gauge-delta-number"),p=c?"%":"";f.data(null===r?[]:[r]),f.enter().append("text").classed("gauge-delta-number",!0).merge(f).attr("text-anchor","middle").style("font-size",o(i)+"px").text((function(t){return""+a(t)+p}));var d=VO.getSVGElementSize(VO.appendOrSelect(e,".gauge-delta-number"),{useBBox:!0}).width,v=od.getProperty(n,"gauge","deltaArrow","enabled"),g=h.selectAll("svg.gauge-delta-arrow").data(null!==r&&v?[r]:[]);g.enter().append("svg").merge(g).attr("class","gauge-delta-arrow").attr("x",-s(i)-d/2).attr("y",-s(i)/2-.35*o(i)).attr("width",s(i)).attr("height",s(i)).attr("viewBox","0 0 16 16"),VO.appendOrSelect(g,"rect.gauge-delta-arrow-backdrop").attr("width","16").attr("height","16").attr("fill","none");var m=od.getProperty(n,"gauge","status");VO.appendOrSelect(g,"polygon.gauge-delta-arrow").attr("class",null!==m?"gauge-delta-arrow status--"+m:"").attr("points",t.getArrow(r)),g.exit().remove(),f.exit().remove()},e.prototype.getInnerRadius=function(){var t=this.computeRadius(),e=od.getProperty(this.getOptions(),"gauge","arcWidth");return t-e},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("path.arc-foreground").on("mouseover",(function(e){t.services.events.dispatchEvent(et.Gauge.ARC_MOUSEOVER,{element:kO(this),datum:e})})).on("mousemove",(function(e){var n=kO(this);t.services.events.dispatchEvent(et.Gauge.ARC_MOUSEMOVE,{element:n,datum:e})})).on("click",(function(e){t.services.events.dispatchEvent(et.Gauge.ARC_CLICK,{element:kO(this),datum:e})})).on("mouseout",(function(e){var n=kO(this);t.services.events.dispatchEvent(et.Gauge.ARC_MOUSEOUT,{element:n,datum:e})}))},e.prototype.computeRadius=function(){var t=this.getOptions(),e=od.getProperty(t,"gauge","type"),n=VO.getSVGElementSize(this.parent,{useAttrs:!0}),r=n.width,i=n.height,o=e===q.SEMI?Math.min(r/2,i):Math.min(r/2,i/2);return o},e}(FS),XC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),KC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="donut",e}return XC(e,t),e.prototype.render=function(e){void 0===e&&(e=!0),t.prototype.render.call(this,e);var n=this;if(this.model.isDataEmpty())this.getContainerSVG().select("g.center").remove();else{var r=VO.appendOrSelect(this.getContainerSVG(),"g.center"),i=this.getOptions(),o=this.computeRadius();VO.appendOrSelect(r,"text.donut-figure").attr("text-anchor","middle").style("font-size",(function(){return i.donut.center.numberFontSize(o)})).transition(this.services.transitions.getTransition("donut-figure-enter-update",e)).tween("text",(function(){return n.centerNumberTween(kO(this))})),VO.appendOrSelect(r,"text.donut-title").attr("text-anchor","middle").style("font-size",(function(){return i.donut.center.titleFontSize(o)})).attr("y",i.donut.center.titleYPosition(o)).text(od.getProperty(i,"donut","center","label"))}},e.prototype.getInnerRadius=function(){var t=this.computeRadius();return.75*t},e.prototype.centerNumberTween=function(t){var e=this.getOptions(),n=od.getProperty(e,"donut","center","number");null===n&&(n=this.model.getDisplayData().reduce((function(t,e){return t+e.value}),0));var r,i=parseInt(t.text().replace(/[, ]+/g,""),10)||0;r=i%1===0&&n%1===0?Eg:gg;var o=r(i,n);return function(n){var r=e.donut.center.numberFormatter;t.text(r(o(n)))}},e}(FC);function $C(t){return+t}var QC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),JC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="skeleton",e}return QC(e,t),e.prototype.render=function(){var t=this.parent,e=t.node().parentNode,n=VO.getSVGElementSize(e,{useAttrs:!0}),r=n.width,i=n.height;t.attr("width",r).attr("height",i);var o=od.getProperty(this.getOptions(),"data","loading");o?this.renderSkeleton(o):this.removeSkeleton()},e.prototype.renderSkeleton=function(t){if(this.configs.skeleton===z.GRID)this.renderGridSkeleton(t);else if(this.configs.skeleton===z.VERT_OR_HORIZ)this.renderVertOrHorizSkeleton(t);else if(this.configs.skeleton===z.PIE)this.renderPieSkeleton(t);else{if(this.configs.skeleton!==z.DONUT)throw new Error('"'+this.configs.skeleton+'" is not a valid Skeleton type.');this.renderDonutSkeleton(t)}},e.prototype.renderGridSkeleton=function(t){this.setScales(),this.drawBackdrop(t),this.drawXGrid(t),this.drawYGrid(t),t&&this.setShimmerEffect("shimmer-lines")},e.prototype.renderVertOrHorizSkeleton=function(t){var e=this.services.cartesianScales.getOrientation();this.setScales(),this.drawBackdrop(t),e===I.VERTICAL&&this.drawYGrid(t),e===I.HORIZONTAL&&this.drawXGrid(t),this.setShimmerEffect("shimmer-lines")},e.prototype.renderPieSkeleton=function(t){var e=this.computeOuterRadius(),n=0;this.drawRing(e,n,t),t&&this.setShimmerEffect("shimmer-areas")},e.prototype.renderDonutSkeleton=function(t){var e=this.computeOuterRadius(),n=this.computeInnerRadius();this.drawRing(e,n,t),t&&this.setShimmerEffect("shimmer-areas")},e.prototype.setScales=function(){var t=this.services.cartesianScales.getMainXScale().range(),e=this.services.cartesianScales.getMainYScale().range();this.xScale=sm().domain([0,1]).range(t),this.yScale=sm().domain([0,1]).range(e)},e.prototype.drawBackdrop=function(t){var e=this.parent,n=e.node().parentNode,r=VO.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height;this.backdrop=VO.appendOrSelect(e,"svg.chart-skeleton.DAII").attr("width",i).attr("height",o);var a=VO.appendOrSelect(this.backdrop,"rect.chart-skeleton-backdrop");a.attr("width","100%").attr("height","100%");var s=this.xScale.range(),u=s[0],c=(s[1],this.yScale.range()),l=(c[0],c[1]);this.backdrop.merge(a).attr("x",u).attr("y",l),a.classed("shimmer-effect-lines",t).classed("empty-state-lines",!t)},e.prototype.drawXGrid=function(t){var e=this.backdrop.attr("height"),n=this.backdrop.attr("width"),r=od.getProperty(this.getOptions(),"grid","x","numberOfTicks"),i=this.xScale.ticks(r).map((function(t){return t*n})),o=VO.appendOrSelect(this.backdrop,"g.x.skeleton"),a=o.selectAll("line").data(i);a.enter().append("line").merge(a).attr("x1",(function(t){return t})).attr("x2",(function(t){return t})).attr("y1",0).attr("y2",e),o.selectAll("line").classed("shimmer-effect-lines",t).classed("empty-state-lines",!t)},e.prototype.drawYGrid=function(t){var e=this.backdrop.attr("height"),n=this.backdrop.attr("width"),r=od.getProperty(this.getOptions(),"grid","y","numberOfTicks"),i=this.xScale.ticks(r).map((function(t){return t*e})),o=VO.appendOrSelect(this.backdrop,"g.y.skeleton"),a=o.selectAll("line").data(i);a.enter().append("line").merge(a).attr("x1",0).attr("x2",n).attr("y1",(function(t){return t})).attr("y2",(function(t){return t})),o.selectAll("line").classed("shimmer-effect-lines",t).classed("empty-state-lines",!t)},e.prototype.drawRing=function(t,e,n){void 0===n&&(n=!0);var r=this.parent,i=VO.getSVGElementSize(r.node().parentNode,{useAttrs:!0}),o=i.width,a=i.height,s=VO.appendOrSelect(r,"svg.chart-skeleton").attr("width",o).attr("height",a),u=0===e?"pie":"donut",c=od.getProperty(this.getOptions(),u,"alignment");VO.appendOrSelect(s,"rect.chart-skeleton-area-container").attr("width",o).attr("height",a).attr("fill","none");var l=VC().innerRadius(e).outerRadius(t).startAngle(0).endAngle(2*Math.PI),h=t+Math.abs(ft.radiusOffset),f=t+(Math.min(o,a)-2*t)/2,p=VO.appendOrSelect(s,"path").attr("class","skeleton-area-shape").attr("transform","translate("+h+", "+f+")").attr("d",l).classed("shimmer-effect-areas",n).classed("empty-state-areas",!n),d=t+ft.xOffset;c===V.CENTER?d=o/2:c===V.RIGHT&&(d=o-t-ft.xOffset);var v=t+ft.yOffset;p.attr("transform","translate("+d+", "+v+")")},e.prototype.computeOuterRadius=function(){var t=VO.getSVGElementSize(this.parent.node().parentNode,{useAttrs:!0}),e=t.width,n=t.height,r=Math.min(e,n)/2;return r+ft.radiusOffset},e.prototype.computeInnerRadius=function(){return.75*this.computeOuterRadius()},e.prototype.setShimmerEffect=function(t){var e=2e3,n=1e3,r=.2,i="stop-bg-shimmer",o="stop-shimmer",a=this.parent.select(".chart-skeleton"),s=VO.getSVGElementSize(this.parent,{useAttrs:!0}).width,u=0,c=s,l=VO.appendOrSelect(a,"defs").lower(),h=VO.appendOrSelect(l,"linearGradient").attr("id",t).attr("x1",u-3*r*s).attr("x2",c).attr("y1",0).attr("y2",0).attr("gradientUnits","userSpaceOnUse").attr("gradientTransform","translate(0, 0)"),f='\n\t\t\t<stop class="'+i+'" offset="'+u+'"></stop>\n\t\t\t<stop class="'+o+'" offset="'+(u+r)+'"></stop>\n\t\t\t<stop class="'+i+'" offset="'+(u+2*r)+'"></stop>\n\t\t';function p(){h.attr("gradientTransform","translate("+(u-3*r*s)+", 0)").transition().duration(e).delay(n).ease($C).attr("gradientTransform","translate("+(c+3*r*s)+", 0)").on("end",p)}h.html(f),p()},e.prototype.removeSkeleton=function(){var t=this.parent.select(".chart-skeleton");t.remove()},e}(FS),tA=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),eA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="skeleton-lines",e}return tA(e,t),e.prototype.render=function(){var e=this.parent,n=e.node().parentNode,r=VO.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height;e.attr("width",i).attr("height",o);var a=od.getProperty(this.getOptions(),"data","loading"),s=!od.getProperty(this.getOptions(),"grid","x","enabled")&&!od.getProperty(this.getOptions(),"grid","y","enabled")&&!od.getProperty(this.getOptions(),"axes","bottom","visible")&&!od.getProperty(this.getOptions(),"axes","left","visible");a&&!s?t.prototype.renderGridSkeleton.call(this,a):a&&s?this.renderSparklineSkeleton(a):this.removeSkeleton()},e.prototype.renderSparklineSkeleton=function(t){this.setScales(),this.drawBackdrop(t),this.drawSparkline(t),this.updateBackdropStyle(),t&&this.setShimmerEffect("shimmer-lines")},e.prototype.drawSparkline=function(t){var e=this.backdrop.attr("width"),n=[100],r=VO.appendOrSelect(this.backdrop,"g.y.skeleton"),i=r.selectAll("line").data(n);i.enter().append("line").merge(i).attr("x1",0).attr("x2",e).attr("y1",(function(t){return t})).attr("y2",(function(t){return t})),r.selectAll("line").classed("shimmer-effect-lines",t).classed("empty-state-lines",!t)},e.prototype.updateBackdropStyle=function(){var t=this.parent;this.backdrop=VO.appendOrSelect(t,"svg.chart-skeleton.DAII");var e=VO.appendOrSelect(this.backdrop,"rect.chart-skeleton-backdrop");e.classed("shimmer-effect-lines",!1),e.classed("shimmer-effect-sparkline",!0)},e}(JC);function nA(t){var e=0,n=t.children,r=n&&n.length;if(r)while(--r>=0)e+=n[r].value;else e=1;t.value=e}var rA=function(){return this.eachAfter(nA)},iA=function(t){var e,n,r,i,o=this,a=[o];do{e=a.reverse(),a=[];while(o=e.pop())if(t(o),n=o.children,n)for(r=0,i=n.length;r<i;++r)a.push(n[r])}while(a.length);return this},oA=function(t){var e,n,r=this,i=[r];while(r=i.pop())if(t(r),e=r.children,e)for(n=e.length-1;n>=0;--n)i.push(e[n]);return this},aA=function(t){var e,n,r,i=this,o=[i],a=[];while(i=o.pop())if(a.push(i),e=i.children,e)for(n=0,r=e.length;n<r;++n)o.push(e[n]);while(i=a.pop())t(i);return this},sA=function(t){return this.eachAfter((function(e){var n=+t(e.data)||0,r=e.children,i=r&&r.length;while(--i>=0)n+=r[i].value;e.value=n}))},uA=function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},cA=function(t){var e=this,n=lA(e,t),r=[e];while(e!==n)e=e.parent,r.push(e);var i=r.length;while(t!==n)r.splice(i,0,t),t=t.parent;return r};function lA(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();while(t===e)i=t,t=n.pop(),e=r.pop();return i}var hA=function(){var t=this,e=[t];while(t=t.parent)e.push(t);return e},fA=function(){var t=[];return this.each((function(e){t.push(e)})),t},pA=function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},dA=function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e};function vA(t,e){var n,r,i,o,a,s=new bA(t),u=+t.value&&(s.value=t.value),c=[s];null==e&&(e=mA);while(n=c.pop())if(u&&(n.value=+n.data.value),(i=e(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)c.push(r=n.children[o]=new bA(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(_A)}function gA(){return vA(this).eachBefore(yA)}function mA(t){return t.children}function yA(t){t.data=t.data.data}function _A(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function bA(t){this.data=t,this.depth=this.height=0,this.parent=null}bA.prototype=vA.prototype={constructor:bA,count:rA,each:iA,eachAfter:aA,eachBefore:oA,sum:sA,sort:uA,path:cA,ancestors:hA,descendants:fA,leaves:pA,links:dA,copy:gA};var OA=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},xA=function(t,e,n,r,i){var o,a=t.children,s=-1,u=a.length,c=t.value&&(r-e)/t.value;while(++s<u)o=a[s],o.y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*c},wA=function(t,e,n,r,i){var o,a=t.children,s=-1,u=a.length,c=t.value&&(i-n)/t.value;while(++s<u)o=a[s],o.x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*c},EA=(1+Math.sqrt(5))/2;function SA(t,e,n,r,i,o){var a,s,u,c,l,h,f,p,d,v,g,m=[],y=e.children,_=0,b=0,O=y.length,x=e.value;while(_<O){u=i-n,c=o-r;do{l=y[b++].value}while(!l&&b<O);for(h=f=l,v=Math.max(c/u,u/c)/(x*t),g=l*l*v,d=Math.max(f/g,g/h);b<O;++b){if(l+=s=y[b].value,s<h&&(h=s),s>f&&(f=s),g=l*l*v,p=Math.max(f/g,g/h),p>d){l-=s;break}d=p}m.push(a={value:l,dice:u<c,children:y.slice(_,b)}),a.dice?xA(a,n,r,i,x?r+=c*l/x:o):wA(a,n,r,x?n+=u*l/x:i,o),x-=l,_=b}return m}var TA=function t(e){function n(t,n,r,i,o){SA(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(EA);function MA(t){return null==t?null:CA(t)}function CA(t){if("function"!==typeof t)throw new Error;return t}function AA(){return 0}var PA=function(t){return function(){return t}},kA=function(){var t=TA,e=!1,n=1,r=1,i=[0],o=AA,a=AA,s=AA,u=AA,c=AA;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(OA),t}function h(e){var n=i[e.depth],r=e.x0+n,l=e.y0+n,h=e.x1-n,f=e.y1-n;h<r&&(r=h=(r+h)/2),f<l&&(l=f=(l+f)/2),e.x0=r,e.y0=l,e.x1=h,e.y1=f,e.children&&(n=i[e.depth+1]=o(e)/2,r+=c(e)-n,l+=a(e)-n,h-=s(e)-n,f-=u(e)-n,h<r&&(r=h=(r+h)/2),f<l&&(l=f=(l+f)/2),t(e,r,l,h,f))}return l.round=function(t){return arguments.length?(e=!!t,l):e},l.size=function(t){return arguments.length?(n=+t[0],r=+t[1],l):[n,r]},l.tile=function(e){return arguments.length?(t=CA(e),l):t},l.padding=function(t){return arguments.length?l.paddingInner(t).paddingOuter(t):l.paddingInner()},l.paddingInner=function(t){return arguments.length?(o="function"===typeof t?t:PA(+t),l):o},l.paddingOuter=function(t){return arguments.length?l.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):l.paddingTop()},l.paddingTop=function(t){return arguments.length?(a="function"===typeof t?t:PA(+t),l):a},l.paddingRight=function(t){return arguments.length?(s="function"===typeof t?t:PA(+t),l):s},l.paddingBottom=function(t){return arguments.length?(u="function"===typeof t?t:PA(+t),l):u},l.paddingLeft=function(t){return arguments.length?(c="function"===typeof t?t:PA(+t),l):c},l},LA="#000000",DA="#ffffff",RA="#f1c21b",IA=RA,NA="#d2a106",jA="#b28600",VA="#ff832b",BA=VA,GA="#ba4e00",UA="#8a3800",HA="#fff1f1",zA="#ffd7d9",FA="#ffb3b8",WA="#ff8389",qA="#fa4d56",YA="#da1e28",ZA="#a2191f",XA="#750e13",KA="#520408",$A="#2d0709",QA={10:HA,20:zA,30:FA,40:WA,50:qA,60:YA,70:ZA,80:XA,90:KA,100:$A},JA="#fff0f7",tP="#ffd6e8",eP="#ffafd2",nP="#ff7eb6",rP="#ee5396",iP="#d02670",oP="#9f1853",aP="#740937",sP="#510224",uP="#2a0a18",cP={10:JA,20:tP,30:eP,40:nP,50:rP,60:iP,70:oP,80:aP,90:sP,100:uP},lP="#f6f2ff",hP="#e8daff",fP="#d4bbff",pP="#be95ff",dP="#a56eff",vP="#8a3ffc",gP="#6929c4",mP="#491d8b",yP="#31135e",_P="#1c0f30",bP={10:lP,20:hP,30:fP,40:pP,50:dP,60:vP,70:gP,80:mP,90:yP,100:_P},OP="#edf5ff",xP="#d0e2ff",wP="#a6c8ff",EP="#78a9ff",SP="#4589ff",TP="#0f62fe",MP="#0043ce",CP="#002d9c",AP="#001d6c",PP="#001141",kP={10:OP,20:xP,30:wP,40:EP,50:SP,60:TP,70:MP,80:CP,90:AP,100:PP},LP="#e5f6ff",DP="#bae6ff",RP="#82cfff",IP="#33b1ff",NP="#1192e8",jP="#0072c3",VP="#00539a",BP="#003a6d",GP="#012749",UP="#061727",HP={10:LP,20:DP,30:RP,40:IP,50:NP,60:jP,70:VP,80:BP,90:GP,100:UP},zP="#d9fbfb",FP="#9ef0f0",WP="#3ddbd9",qP="#08bdba",YP="#009d9a",ZP="#007d79",XP="#005d5d",KP="#004144",$P="#022b30",QP="#081a1c",JP={10:zP,20:FP,30:WP,40:qP,50:YP,60:ZP,70:XP,80:KP,90:$P,100:QP},tk="#defbe6",ek="#a7f0ba",nk="#6fdc8c",rk="#42be65",ik="#24a148",ok="#198038",ak="#0e6027",sk="#044317",uk="#022d0d",ck="#071908",lk={10:tk,20:ek,30:nk,40:rk,50:ik,60:ok,70:ak,80:sk,90:uk,100:ck},hk="#f2f4f8",fk="#dde1e6",pk="#c1c7cd",dk="#a2a9b0",vk="#878d96",gk="#697077",mk="#4d5358",yk="#343a3f",_k="#21272a",bk="#121619",Ok={10:hk,20:fk,30:pk,40:dk,50:vk,60:gk,70:mk,80:yk,90:_k,100:bk},xk="#f4f4f4",wk="#e0e0e0",Ek="#c6c6c6",Sk="#a8a8a8",Tk="#8d8d8d",Mk="#6f6f6f",Ck="#525252",Ak="#393939",Pk="#262626",kk="#161616",Lk={10:xk,20:wk,30:Ek,40:Sk,50:Tk,60:Mk,70:Ck,80:Ak,90:Pk,100:kk},Dk="#f7f3f2",Rk="#e5e0df",Ik="#cac5c4",Nk="#ada8a8",jk="#8f8b8b",Vk="#726e6e",Bk="#565151",Gk="#3c3838",Uk="#272525",Hk="#171414",zk={10:Dk,20:Rk,30:Ik,40:Nk,50:jk,60:Vk,70:Bk,80:Gk,90:Uk,100:Hk},Fk="#fdd13a",Wk={black:{100:LA},blue:kP,coolGray:Ok,cyan:HP,gray:Lk,green:lk,magenta:cP,orange:{40:BA,60:GA,70:UA},purple:bP,red:QA,teal:JP,warmGray:zk,white:{0:DA},yellow:{20:Fk,30:IA,40:NA,50:jA}};var qk=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yk=function(t){if(!t)return null;for(var e=0,n=Object.keys(Wk);e<n.length;e++)for(var r=n[e],i=Wk[r],o=0,a=Object.keys(i);o<a.length;o++){var s=a[o],u=i[s];if(u===t)return s}return null},Zk=function(){var t,e=kO(this.parentNode).select("rect.leaf"),n=getComputedStyle(e.node(),null).getPropertyValue("fill"),r=Hv(n);if(r&&(t=Yk(r?r.hex():null)),null===t||void 0===t){var i=Jv(r).l;t=Math.abs(100*i-100)}return t>50?"white":"black"},Xk=0,Kk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("g[data-name='leaf']").transition(e.services.transitions.getTransition("legend-hover-treemap")).attr("opacity",(function(t){return t.parent.data.name===n.datum()["name"]?1:.3}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("g[data-name='leaf']").transition(e.services.transitions.getTransition("legend-mouseout-treemap")).attr("opacity",1)},e}return qk(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG(),r=this.model.getData(),i=this.model.getDisplayData(),o=this.model.getOptions(),a=od.getProperty(window,"location"),s=VO.getSVGElementSize(this.parent,{useAttrs:!0}),u=s.width,c=s.height,l=vA({name:o.title||"Treemap",children:i}).sum((function(t){return t.value})).sort((function(t,e){return e.value-t.value})),h=(vv(r,(function(t){return vv(t.children,(function(t){return t.value}))})),kA().size([u,c]).paddingInner(1).paddingOuter(0).round(!0)(l)),f=this.services.transitions,p=n.selectAll("g[data-name='leaf']").data(h.leaves(),(function(t){return t.data.name}));p.exit().attr("opacity",0).remove();var d=p.enter().append("g").attr("data-name","leaf").attr("data-uid",(function(){return Xk++})),v=d.merge(p);v.attr("data-name","leaf").transition(f.getTransition("treemap-group-update",t)).attr("transform",(function(t){return"translate("+t.x0+","+t.y0+")"}));var g=v.selectAll("rect.leaf").data((function(t){return[t]}));g.exit().attr("width",0).attr("height",0).remove();var m=g.enter().append("rect").classed("leaf",!0);m.merge(g).attr("width",0).attr("height",0).attr("id",(function(){var t=kO(this.parentNode).attr("data-uid");return o.style.prefix+"-leaf-"+t})).attr("class",(function(t){while(t.depth>1)t=t.parent;return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t.data.name,originalClassName:"leaf"})})).transition(this.services.transitions.getTransition("treemap-leaf-update-enter",t)).attr("width",(function(t){return t.x1-t.x0})).attr("height",(function(t){return t.y1-t.y0})).style("fill",(function(t){while(t.depth>1)t=t.parent;return e.model.getFillColor(t.data.name)})),v.selectAll("clipPath").data((function(t){return!0!==t.data.showLabel?[]:[1]}),(function(t){return t})).join((function(t){t.append("clipPath").attr("id",(function(){var t=kO(this.parentNode).attr("data-uid");return o.style.prefix+"-clip-"+t})).append("use").attr("xlink:href",(function(){var t=kO(this.parentNode.parentNode).attr("data-uid"),e=o.style.prefix+"-leaf-"+t;return new URL("#"+e,a)+""}))}),(function(t){return null}),(function(t){return t.remove()})),v.selectAll("text").data((function(t){if(!0!==t.data.showLabel)return[];var n=t;while(n.depth>1)n=n.parent;var r=Jv(e.model.getFillColor(n.data.name));return[{text:t.data.name,color:r.l<.5?"white":"black"}]}),(function(t){return t})).join((function(t){var e=t.append("text").text((function(t){return t.text})).style("fill",Zk).attr("x",7).attr("y",18);a&&e.attr("clip-path",(function(){var t=kO(this.parentNode).attr("data-uid"),e=o.style.prefix+"-clip-"+t;return"url("+new URL("#"+e,a)+")"}))}),(function(t){return t.text((function(t){return t.text})).style("fill",Zk)}),(function(t){return t.remove()})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("rect.leaf").on("mouseover",(function(e){var n=kO(this),r=getComputedStyle(this,null).getPropertyValue("fill"),i=e;while(i.depth>1)i=i.parent;n.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")).style("fill",(function(e){var n=t.model.getFillColor(e.parent.data.name);return n&&(r=n),Hv(r).darker(.7).toString()})),t.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:n,items:[{color:r,label:i.data.name,bold:!0},{label:e.data.name,value:e.data.value}]}),t.services.events.dispatchEvent(et.Treemap.LEAF_MOUSEOVER,{element:n,datum:e})})).on("mousemove",(function(e){var n=kO(this);t.services.events.dispatchEvent(et.Treemap.LEAF_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(et.Treemap.LEAF_CLICK,{element:kO(this),datum:e})})).on("mouseout",(function(e){var n=kO(this);n.classed("hovered",!1);var r=e;while(r.depth>1)r=r.parent;n.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")).style("fill",(function(e){return t.model.getFillColor(e.parent.data.name)})),t.services.events.dispatchEvent(et.Treemap.LEAF_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.HIDE,{hoveredElement:n})}))},e}(FS);function $k(t){var e=Qk(tL(t),360);return Jk(e,[0,10])||Jk(e,[350,0])?{textAnchor:F.START,dominantBaseline:W.MIDDLE}:Jk(e,[10,80])?{textAnchor:F.START,dominantBaseline:W.HANGING}:Jk(e,[80,100])?{textAnchor:F.MIDDLE,dominantBaseline:W.HANGING}:Jk(e,[100,170])?{textAnchor:F.END,dominantBaseline:W.HANGING}:Jk(e,[170,190])?{textAnchor:F.END,dominantBaseline:W.MIDDLE}:Jk(e,[190,260])?{textAnchor:F.END,dominantBaseline:W.BASELINE}:Jk(e,[260,280])?{textAnchor:F.MIDDLE,dominantBaseline:W.BASELINE}:{textAnchor:F.START,dominantBaseline:W.BASELINE}}function Qk(t,e){return(t%e+e)%e}function Jk(t,e){var n=e[0],r=e[1];return t>=n&&t<=r}function tL(t){return t*(180/Math.PI)}function eL(t,e,n){void 0===n&&(n={x:0,y:0});var r=e*Math.cos(t)+n.x,i=e*Math.sin(t)+n.y;return{x:r,y:i}}function nL(t,e){return e*Math.sin(t-Math.PI/2)}var rL=oL(RE);function iL(t){this._curve=t}function oL(t){function e(e){return new iL(t(e))}return e._curve=t,e}function aL(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(oL(t)):e()._curve},t}iL.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var sL=function(){return aL(rC().curve(rL))},uL=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e.getLabelDimensions=function(t){var n=VO.appendOrSelect(e.getContainerSVG(),"g.tmp-tick"),r=VO.appendOrSelect(n,"text").text(t),i=VO.getSVGElementSize(r.node(),{useBBox:!0}),o=i.width,a=i.height;return n.remove(),{width:o,height:a}},e.normalizeFlatData=function(t){var n=e.getOptions(),r=od.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=od.getProperty(n,"data","groupMapsTo"),s=od.flatMapDeep(e.uniqueKeys.map((function(t){return e.uniqueGroups.map((function(e){var n;return n={},n[i]=t,n[a]=e,n[o]=null,n}))})));return od.merge(s,t)},e.normalizeGroupedData=function(t){var n=e.getOptions(),r=od.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=od.getProperty(n,"data","groupMapsTo");return t.map((function(t){var n=t.name,r=t.data,s=e.uniqueKeys.map((function(t){var e;return e={},e[a]=n,e[i]=t,e[o]=null,e}));return{name:n,data:od.merge(s,r)}}))},e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("g.blobs path").transition(e.services.transitions.getTransition("legend-hover-blob")).style("fill-opacity",(function(t){return t.name!==n.datum().name?pt.opacity.unselected:pt.opacity.selected})).style("stroke-opacity",(function(t){return t.name!==n.datum().name?pt.opacity.unselected:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("g.blobs path").transition(e.services.transitions.getTransition("legend-mouseout-blob")).style("fill-opacity",pt.opacity.selected).style("stroke-opacity",1)},e}return uL(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG(),r=VO.getSVGElementSize(this.parent,{useAttrs:!0}),i=r.width,o=r.height,s=this.model.getData(),u=this.model.getGroupedData(),c=this.getOptions(),l=od.getProperty(c,"radar","axes"),h=l.angle,f=l.value,p=od.getProperty(c,"data","groupMapsTo"),d=pt,v=d.xLabelPadding,g=d.yLabelPadding,m=d.yTicksNumber,y=d.minRange,_=d.xAxisRectHeight;this.uniqueKeys=Array.from(new Set(s.map((function(t){return t[h]})))),this.uniqueGroups=Array.from(new Set(s.map((function(t){return t[p]})))),this.fullDataNormalized=this.normalizeFlatData(s),this.groupedDataNormalized=this.normalizeGroupedData(u);var b=this.getLabelDimensions(this.uniqueKeys[0]).height,O=2*(b+g),x=Math.min(i,o),w=x-O,E=w/2;if(!(E<=0)){var S=xv().domain(this.fullDataNormalized.map((function(t){return t[h]}))).range([0,2*Math.PI].map((function(t){return t-Math.PI/2}))),T=sm().domain([0,pv(this.fullDataNormalized.map((function(t){return t[f]})))]).range([y,E]).nice(m),M=T.ticks(m),C=function(t){return e.model.getFillColor(t)},A=sL().angle((function(t){return S(t[h])+Math.PI/2})).radius((function(t){return T(t[f])})).curve(jE),P=this.uniqueKeys.map((function(t){var n=e.getLabelDimensions(t).width,r=nL(S(t),E);return n+r})),L=pv(P),D={x:L+v,y:o/2},R=VO.appendOrSelect(n,"g.y-axes").attr("role",a.GROUP),I=R.selectAll("path").data(M,(function(t){return t})),N=function(t){return e.uniqueKeys.map((function(e){var n;return n={},n[h]=e,n[f]=t,n}))};I.join((function(n){return n.append("path").attr("role",a.GRAPHICS_SYMBOL).attr("opacity",0).attr("transform","translate("+D.x+", "+D.y+")").attr("fill","none").call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_axes_enter",t)).attr("opacity",1).attr("d",(function(t){return A(N(t))}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_axes_update",t)).attr("opacity",1).attr("transform","translate("+D.x+", "+D.y+")").attr("d",(function(t){return A(N(t))}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_axes_exit",t)).attr("d",(function(t){return A(N(t))})).attr("opacity",0).remove()}))}));var j=VO.appendOrSelect(n,"g.x-axes").attr("role",a.GROUP),V=j.selectAll("line").data(this.uniqueKeys,(function(t){return t}));V.join((function(n){return n.append("line").attr("role",a.GRAPHICS_SYMBOL).attr("opacity",0).attr("class",(function(t){return"x-axis-"+od.kebabCase(t)})).attr("stroke-dasharray","0").attr("x1",(function(t){return eL(S(t),0,D).x})).attr("y1",(function(t){return eL(S(t),0,D).y})).attr("x2",(function(t){return eL(S(t),0,D).x})).attr("y2",(function(t){return eL(S(t),0,D).y})).call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_axes_enter",t)).attr("opacity",1).attr("x1",(function(t){return eL(S(t),T.range()[0],D).x})).attr("y1",(function(t){return eL(S(t),T.range()[0],D).y})).attr("x2",(function(t){return eL(S(t),T.range()[1],D).x})).attr("y2",(function(t){return eL(S(t),T.range()[1],D).y}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_axes_update",t)).attr("opacity",1).attr("x1",(function(t){return eL(S(t),T.range()[0],D).x})).attr("y1",(function(t){return eL(S(t),T.range()[0],D).y})).attr("x2",(function(t){return eL(S(t),T.range()[1],D).x})).attr("y2",(function(t){return eL(S(t),T.range()[1],D).y}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_axes_exit",t)).attr("opacity",0).remove()}))}));var B=VO.appendOrSelect(n,"g.x-labels").attr("role",a.GROUP),G=B.selectAll("text").data(this.uniqueKeys);G.join((function(n){return n.append("text").text((function(t){return t})).attr("opacity",0).attr("x",(function(t){return eL(S(t),T.range()[1]+v,D).x})).attr("y",(function(t){return eL(S(t),T.range()[1]+v,D).y})).style("text-anchor",(function(t){return $k(S(t)).textAnchor})).style("dominant-baseline",(function(t){return $k(S(t)).dominantBaseline})).call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_labels_enter",t)).attr("opacity",1)}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_labels_update",t)).attr("opacity",1).attr("x",(function(t){return eL(S(t),T.range()[1]+v,D).x})).attr("y",(function(t){return eL(S(t),T.range()[1]+v,D).y}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_labels_exit",t)).attr("opacity",0).remove()}))}));var U=VO.appendOrSelect(n,"g.blobs").attr("role",a.GROUP),H=U.selectAll("path").data(this.groupedDataNormalized,(function(t){return t.name}));H.join((function(n){return n.append("path").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL,k.STROKE],dataGroupName:t.name,originalClassName:"blob"})})).attr("role",a.GRAPHICS_SYMBOL).attr("opacity",0).attr("transform",t?function(){return"translate("+D.x+", "+D.y+") scale("+(1+.35*Math.random())+")"}:"translate("+D.x+", "+D.y+")").style("fill",(function(t){return C(t.name)})).style("fill-opacity",pt.opacity.selected).style("stroke",(function(t){return C(t.name)})).call((function(n){var r=n.transition(e.services.transitions.getTransition("radar_blobs_enter",t));t&&r.delay((function(){return 30*Math.random()})).attr("transform","translate("+D.x+", "+D.y+")"),r.attr("opacity",1).attr("d",(function(t){return A(t.data)}))}))}),(function(n){n.attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL,k.STROKE],dataGroupName:t.name,originalClassName:"blob"})})).style("fill",(function(t){return C(t.name)})).style("stroke",(function(t){return C(t.name)})),n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_blobs_update",t)).attr("opacity",1).attr("transform","translate("+D.x+", "+D.y+")").attr("d",(function(t){return A(t.data)}))}))}),(function(n){return n.call((function(n){var r=n.transition(e.services.transitions.getTransition("radar_blobs_exit",t));t&&r.delay((function(){return 30*Math.random()})).attr("transform",(function(){return"translate("+D.x+", "+D.y+") scale("+(1+.35*Math.random())+")"})),r.attr("opacity",0).remove()}))}));var z=VO.appendOrSelect(n,"g.dots").attr("role",a.GROUP),F=z.selectAll("circle").data(this.fullDataNormalized);F.join((function(t){return t.append("circle").attr("role",a.GRAPHICS_SYMBOL)}),(function(t){return t}),(function(t){return t.remove()})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t[p],originalClassName:od.kebabCase(t[h])})})).attr("cx",(function(t){return eL(S(t[h]),T(t[f]),D).x})).attr("cy",(function(t){return eL(S(t[h]),T(t[f]),D).y})).attr("r",0).attr("opacity",0).style("fill",(function(t){return C(t[p])}));var W=VO.appendOrSelect(n,"g.x-axes-rect").attr("role",a.GROUP),q=W.selectAll("rect").data(this.uniqueKeys);q.join((function(t){return t.append("rect").attr("role",a.GRAPHICS_SYMBOL)}),(function(t){return t}),(function(t){return t.remove()})).attr("x",D.x).attr("y",D.y-_/2).attr("width",T.range()[1]).attr("height",_).style("fill","red").style("fill-opacity",0).attr("transform",(function(t){return"rotate("+tL(S(t))+", "+D.x+", "+D.y+")"}));var Y=VO.appendOrSelect(n,"g.y-labels").attr("role",a.GROUP),Z=Y.selectAll("text").data(rv(M));Z.join((function(n){return n.append("text").attr("opacity",0).text((function(t){return t})).attr("x",(function(t){return eL(-Math.PI/2,T(t),D).x+g})).attr("y",(function(t){return eL(-Math.PI/2,T(t),D).y})).style("text-anchor","start").style("dominant-baseline","middle").call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_labels_enter",t)).attr("opacity",1)}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_labels_update",t)).text((function(t){return t})).attr("opacity",1).attr("x",(function(t){return eL(-Math.PI/2,T(t),D).x+g})).attr("y",(function(t){return eL(-Math.PI/2,T(t),D).y}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_labels_exit",t)).attr("opacity",0).remove()}))}));var X=od.getProperty(c,"radar","alignment"),K=VO.getAlignmentOffset(X,n,this.getParent());n.attr("transform","translate("+K+", 0)"),this.addEventListeners()}},e.prototype.destroy=function(){this.parent.selectAll(".x-axes-rect > rect").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.addEventListeners=function(){var t=this,e=od.getProperty(this.getOptions(),"radar").axes.angle;this.parent.selectAll(".x-axes-rect > rect").on("mouseover",(function(n){var r=kO(this);t.services.events.dispatchEvent(et.Radar.X_AXIS_MOUSEOVER,{element:r,datum:n});var i=t.parent.select(".x-axes .x-axis-"+od.kebabCase(n)),o=t.parent.selectAll(".dots circle."+od.kebabCase(n));i.classed("hovered",!0).attr("stroke-dasharray","4 4"),o.classed("hovered",!0).attr("opacity",1).attr("r",pt.dotsRadius);var a=t.fullDataNormalized.filter((function(t){return t[e]===n})),s=t.getOptions(),u=s.data.groupMapsTo,c=od.getProperty(s,"radar","axes","value");t.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:r,items:a.filter((function(t){return"number"===typeof t[c]})).map((function(e){return{label:e[u],value:e[c],color:t.model.getFillColor(e[u]),class:t.model.getColorClassName({classNameTypes:[k.TOOLTIP],dataGroupName:e[u]})}}))})})).on("mousemove",(function(e){var n=kO(this);t.services.events.dispatchEvent(et.Radar.X_AXIS_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(et.Radar.X_AXIS_CLICK,{element:kO(this),datum:e})})).on("mouseout",(function(e){var n=kO(this),r=t.parent.select(".x-axes .x-axis-"+od.kebabCase(e)),i=t.parent.selectAll(".dots circle."+od.kebabCase(e));r.classed("hovered",!1).attr("stroke-dasharray","0"),i.classed("hovered",!1).attr("opacity",0).attr("r",0),t.services.events.dispatchEvent(et.Radar.X_AXIS_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.HIDE)}))},e}(FS),lL=Array.prototype.slice;function hL(t){var e,n,r=t.length;while(r)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}var fL=function(t){var e,n,r=0,i=(t=hL(lL.call(t))).length,o=[];while(r<i)e=t[r],n&&vL(n,e)?++r:(n=mL(o=pL(o,e)),r=0);return n};function pL(t,e){var n,r;if(gL(e,t))return[e];for(n=0;n<t.length;++n)if(dL(e,t[n])&&gL(_L(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(dL(_L(t[n],t[r]),e)&&dL(_L(t[n],e),t[r])&&dL(_L(t[r],e),t[n])&&gL(bL(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function dL(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function vL(t,e){var n=t.r-e.r+1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function gL(t,e){for(var n=0;n<e.length;++n)if(!vL(t,e[n]))return!1;return!0}function mL(t){switch(t.length){case 1:return yL(t[0]);case 2:return _L(t[0],t[1]);case 3:return bL(t[0],t[1],t[2])}}function yL(t){return{x:t.x,y:t.y,r:t.r}}function _L(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,s=e.r,u=o-n,c=a-r,l=s-i,h=Math.sqrt(u*u+c*c);return{x:(n+o+u/h*l)/2,y:(r+a+c/h*l)/2,r:(h+i+s)/2}}function bL(t,e,n){var r=t.x,i=t.y,o=t.r,a=e.x,s=e.y,u=e.r,c=n.x,l=n.y,h=n.r,f=r-a,p=r-c,d=i-s,v=i-l,g=u-o,m=h-o,y=r*r+i*i-o*o,_=y-a*a-s*s+u*u,b=y-c*c-l*l+h*h,O=p*d-f*v,x=(d*b-v*_)/(2*O)-r,w=(v*g-d*m)/O,E=(p*_-f*b)/(2*O)-i,S=(f*m-p*g)/O,T=w*w+S*S-1,M=2*(o+x*w+E*S),C=x*x+E*E-o*o,A=-(T?(M+Math.sqrt(M*M-4*T*C))/(2*T):C/M);return{x:r+x+w*A,y:i+E+S*A,r:A}}function OL(t,e,n){var r,i,o,a,s=t.x-e.x,u=t.y-e.y,c=s*s+u*u;c?(i=e.r+n.r,i*=i,a=t.r+n.r,a*=a,i>a?(r=(c+a-i)/(2*c),o=Math.sqrt(Math.max(0,a/c-r*r)),n.x=t.x-r*s-o*u,n.y=t.y-r*u+o*s):(r=(c+i-a)/(2*c),o=Math.sqrt(Math.max(0,i/c-r*r)),n.x=e.x+r*s-o*u,n.y=e.y+r*u+o*s)):(n.x=e.x+n.r,n.y=e.y)}function xL(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function wL(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function EL(t){this._=t,this.next=null,this.previous=null}function SL(t){if(!(i=t.length))return 0;var e,n,r,i,o,a,s,u,c,l,h;if(e=t[0],e.x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;OL(n,e,r=t[2]),e=new EL(e),n=new EL(n),r=new EL(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(s=3;s<i;++s){OL(e._,n._,r=t[s]),r=new EL(r),u=n.next,c=e.previous,l=n._.r,h=e._.r;do{if(l<=h){if(xL(u._,r._)){n=u,e.next=n,n.previous=e,--s;continue t}l+=u._.r,u=u.next}else{if(xL(c._,r._)){e=c,e.next=n,n.previous=e,--s;continue t}h+=c._.r,c=c.previous}}while(u!==c.next);r.previous=e,r.next=n,e.next=n.previous=n=r,o=wL(e);while((r=r.next)!==n)(a=wL(r))<o&&(e=r,o=a);n=e.next}e=[n._],r=n;while((r=r.next)!==n)e.push(r._);for(r=fL(e),s=0;s<i;++s)e=t[s],e.x-=r.x,e.y-=r.y;return r.r}function TL(t){return Math.sqrt(t.value)}var ML=function(){var t=null,e=1,n=1,r=AA;function i(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(CL(t)).eachAfter(AL(r,.5)).eachBefore(PL(1)):i.eachBefore(CL(TL)).eachAfter(AL(AA,1)).eachAfter(AL(r,i.r/Math.min(e,n))).eachBefore(PL(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=MA(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"===typeof t?t:PA(+t),i):r},i};function CL(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function AL(t,e){return function(n){if(r=n.children){var r,i,o,a=r.length,s=t(n)*e||0;if(s)for(i=0;i<a;++i)r[i].r+=s;if(o=SL(r),s)for(i=0;i<a;++i)r[i].r-=s;n.r=o+s}}}function PL(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}var kL=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),LL=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},DL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle-pack",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("circle.node").transition(e.services.transitions.getTransition("legend-hover-circlepack")).attr("opacity",(function(t){return t.data.dataGroupName===n.datum()["name"]?1:at.circles.fillOpacity}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("circle.node").transition(e.services.transitions.getTransition("legend-mouseout-circlepack")).attr("opacity",1)},e}return kL(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG({withinChartClip:!0}),r=VO.getSVGElementSize(this.parent,{useAttrs:!0}),i=r.width,o=r.height;if(!(i<1||o<1)){var a=this.model.getDisplayData(),s=this.model.hasParentNode(),u=this.model.getHierarchyLevel(),c=this.getOptions(),l=od.getProperty(c,"canvasZoom","enabled");s&&od.getProperty(a,0,"children")&&(a=od.getProperty(a,0,"children"));var h=vA({children:a}).sum((function(t){return t.value})).sort((function(t,e){return e.value-t.value})),f=ML().size([i,o]).padding((function(t){return t.depth>=1?at.padding.children+3:at.padding.mainGroup+3})),p=f(h).descendants().splice(1).filter((function(t){return t.depth<=u})),d=n.selectAll("circle.node").data(p);d.exit().attr("width",0).attr("height",0).remove();var v=d.enter().append("circle").classed("node",!0);v.merge(d).attr("class",(function(t){var n=l&&3===u?e.getZoomClass(t):"";return e.model.getColorClassName({classNameTypes:[k.FILL,k.STROKE],dataGroupName:t.data.dataGroupName,originalClassName:t.children?"node "+n:"node node-leaf "+n})})).style("fill",(function(t){return e.model.getFillColor(t.data.dataGroupName)})).style("stroke",(function(t){return e.model.getFillColor(t.data.dataGroupName)})).attr("cx",(function(t){return t.x})).attr("cy",(function(t){return t.y})).transition(this.services.transitions.getTransition("circlepack-leaf-update-enter",t)).attr("r",(function(t){return t.r})).attr("opacity",1).attr("fill-opacity",at.circles.fillOpacity),!0===l&&this.focal&&(this.services.canvasZoom.zoomIn(this.focal,v,ot),this.setBackgroundListeners()),s||this.addLegendListeners(),this.addEventListeners()}},e.prototype.unhighlightChildren=function(t){var e=this,n=t.map((function(t){return t.data}));this.parent.selectAll("circle.node").filter((function(t){return n.some((function(e){return e===t.data}))&&t.depth>1})).style("stroke",(function(t){return e.model.getFillColor(t.data.dataGroupName)}))},e.prototype.highlightChildren=function(t){var e=t.map((function(t){return t.data}));this.parent.selectAll("circle.node").filter((function(t){return e.some((function(e){return e===t.data}))&&t.depth>1})).style("stroke",at.circles.hover.stroke)},e.prototype.getZoomClass=function(t){return 3===this.model.getHierarchyLevel()&&this.focal&&(t.data===this.focal.data||this.focal.children.some((function(e){return e.data===t.data})))?"focal":"non-focal"},e.prototype.addLegendListeners=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.removeBackgroundListeners=function(){var t=kO(this.services.domUtils.getMainSVG());t.on("click",(function(){return null}))},e.prototype.setBackgroundListeners=function(){var t=kO(this.services.domUtils.getMainSVG()),e=this,n=this.parent.selectAll("circle.node"),r=od.getProperty(o,"canvasZoomSettings");t.on("click",(function(){e.focal=null,e.model.updateHierarchyLevel(2),t.classed("zoomed-in",!1),e.services.canvasZoom.zoomOut(n,r)}))},e.prototype.getZoomIcon=function(){return'\n\t\t<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10">\n\t\t\t<polygon points="5.93 3.71 4.45 3.71 4.45 2.23 3.71 2.23 3.71 3.71 2.23 3.71 2.23 4.45 3.71 4.45 3.71 5.93 4.45 5.93 4.45 4.45 5.93 4.45 5.93 3.71"/>\n\t\t\t<path d="M7.2,6.67a4,4,0,0,0,1-2.59A4.08,4.08,0,1,0,4.07,8.15h0a4,4,0,0,0,2.59-1L9.48,10,10,9.48Zm-3.12.77A3.34,3.34,0,1,1,7.41,4.08,3.34,3.34,0,0,1,4.08,7.44Z"/>\n\t\t</svg>'},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("circle.node").on("mouseover",(function(e){var n=kO(this);n.classed("hovered",!0);var r=t.model.getHierarchyLevel(),i=r>2&&!n.classed("focal"),o=od.getProperty(t.model.getOptions(),"canvasZoom","enabled"),a=!1;if(!i){var s=[],u=[],c=null;e.children?(e.depth>1&&o&&(a=!0,n.classed("clickable",!0)),s=e.children.map((function(e){if(null!==e)return"number"===typeof e.data.value?{label:e.data.name,value:e.data.value}:{label:e.data.name,labelIcon:o&&r<=2?t.getZoomIcon():null,value:e.value}})),u=[{label:"Total",value:e.value,bold:!0}],t.highlightChildren(e.children)):c=e.value;var l=getComputedStyle(this,null).getPropertyValue("fill");t.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:n,items:LL([{color:l,label:e.data.name,labelIcon:a&&o&&r<=2?t.getZoomIcon():null,value:c}],s,u)})}t.services.events.dispatchEvent(et.CirclePack.CIRCLE_MOUSEOVER,{element:n,datum:e})})).on("mousemove",(function(e){var n=kO(this);t.services.events.dispatchEvent(et.CirclePack.CIRCLE_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("mouseout",(function(e){var n=kO(this);n.classed("hovered",!1),e.children&&t.unhighlightChildren(e.children),t.services.events.dispatchEvent(et.CirclePack.CIRCLE_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.HIDE,{hoveredElement:n})})).on("click",(function(e){var n=kO(this),r=n.classed("non-focal"),i=od.getProperty(t.getOptions(),"canvasZoom","enabled")&&t.model.getHierarchyLevel()>2;if(i){var o=t.parent.selectAll("circle.node"),a=kO(t.services.domUtils.getMainSVG());a.classed("zoomed-in",!1),t.focal=null,t.model.updateHierarchyLevel(2),t.services.canvasZoom.zoomOut(o,ot)}else if(2===e.depth&&e.children&&!r){o=t.parent.selectAll("circle.node"),a=kO(t.services.domUtils.getMainSVG());a.classed("zoomed-in",!0),t.focal=e,t.model.updateHierarchyLevel(3),t.services.canvasZoom.zoomIn(e,o,ot),Kp.stopPropagation()}t.services.events.dispatchEvent(et.CirclePack.CIRCLE_CLICK,{element:n,datum:e})}))},e.prototype.destroy=function(){this.parent.selectAll("circle.node").on("mouseover",null).on("mousemove",null).on("mouseout",null).on("click",null);var t=this.services.events;t.removeEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),this.removeBackgroundListeners()},e}(FS),RL=n("2a60"),IL=n.n(RL),NL=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="wordcloud",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("text.word").transition(e.services.transitions.getTransition("legend-hover-wordcloud")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("text.word").transition(e.services.transitions.getTransition("legend-mouseout-wordcloud")).attr("opacity",1)},e}return NL(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.getFontSizeScale=function(t){var e=this.getOptions(),n=e.wordCloud.fontSizeMapsTo,r=t.map((function(t){return t[n]})).filter((function(t){return t})),i=VO.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttr:!0}),o=r.length>0,a=o?rv(r):[1,1];return sm().domain(a).range(o?e.wordCloud.fontSizeRange(i,t):[4,4])},e.prototype.render=function(t){void 0===t&&(t=!0);var e=this,n=this.getContainerSVG(),r=this.model.getDisplayData(),i=this.getFontSizeScale(r),o=this.getOptions(),a=o.wordCloud,s=a.fontSizeMapsTo,u=a.wordMapsTo,c=o.data.groupMapsTo,l=VO.getSVGElementSize(this.parent,{useAttrs:!0}),h=l.width,f=l.height;if(0!==h&&0!==f){var p=IL()().size([h,f]).words(r.map((function(t){var e;return e={},e[c]=t[c],e.text=t[u],e.size=t[s],e.value=t[s],e}))).padding(5).rotate(0).fontSize((function(t){return i(t.size)})).on("end",d);p.start(),this.addEventListeners()}function d(r){var i=VO.appendOrSelect(n,"g.words");i.attr("transform","translate("+p.size()[0]/2+", "+p.size()[1]/2+")");var o=i.selectAll("text").data(r,(function(t){return t[c]+"-"+t.text}));o.exit().attr("opacity",0).remove();var a=o.enter().append("text").attr("opacity",0);a.merge(o).style("font-size",(function(t){return t.size+"px"})).text((function(t){return t.text})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t[c],originalClassName:"word "+(t.size>32?"light":"")})})).style("fill",(function(t){return e.model.getFillColor(t[c],t.text,t)})).attr("text-anchor","middle").transition(e.services.transitions.getTransition("wordcloud-text-update-enter",t)).attr("transform",(function(t){return"translate("+t.x+", "+t.y+")"})).attr("opacity",1)}},e.prototype.addEventListeners=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=od.debounce((function(t){var e=r.parent.selectAll("text.word").transition(r.services.transitions.getTransition("wordcloud-word-mouse-highlight"));null===t?e.attr("opacity",1):e.attr("opacity",(function(){return t===this?1:.3}))}),6),r=this;this.parent.selectAll("text.word").on("mouseover",(function(i){var o=this;n(o),r.services.events.dispatchEvent(et.WordCloud.WORD_MOUSEOVER,{element:kO(this),datum:i}),r.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:o,items:[{label:t.tooltip.wordLabel,value:i.text},{label:t.tooltip.valueLabel,value:i.value},{label:t.tooltip.groupLabel,value:i[e],class:r.model.getColorClassName({classNameTypes:[k.TOOLTIP],dataGroupName:i[e]})}]})})).on("mousemove",(function(t){var e=kO(this);r.services.events.dispatchEvent(et.WordCloud.WORD_MOUSEMOVE,{element:e,datum:t}),r.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("click",(function(t){r.services.events.dispatchEvent(et.WordCloud.WORD_CLICK,{element:kO(this),datum:t})})).on("mouseout",(function(t){var e=kO(this);n(null),r.services.events.dispatchEvent(et.WordCloud.WORD_MOUSEOUT,{element:e,datum:t}),r.services.events.dispatchEvent(et.Tooltip.HIDE,{hoveredElement:e})}))},e}(FS),VL=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),BL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="spacer",e}return VL(e,t),e.prototype.render=function(){VO.appendOrSelect(this.getContainerSVG(),"rect").attr("x",0).attr("y",0).attr("width",this.configs.size||dt.default.size).attr("height",this.configs.size||dt.default.size).attr("opacity",0)},e}(FS),GL=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),UL=function(t){function e(n,r,i,o){var a=t.call(this,n,r,o)||this;a.type="layout",a.configs=o,a.children=i,a._instanceID=e.instanceID++;var s=a.configs.direction===G.ROW_REVERSE||a.configs.direction===G.COLUMN_REVERSE;return s&&(a.children=a.children.reverse()),a.init(),a}return GL(e,t),e.prototype.init=function(){this.children.forEach((function(t){t.components.forEach((function(t){t.init()}))}))},e.prototype.getPreferedAndFixedSizeSum=function(){var t=this.parent,e=0;return t.selectAll("svg.layout-child-"+this._instanceID).filter((function(t){var e=od.getProperty(t,"data","growth","x");return e===U.PREFERRED||e===U.FIXED})).each((function(t){e+=t.data.size})),e},e.prototype.getNumOfStretchChildren=function(){var t=this.parent;return t.selectAll("svg.layout-child-"+this._instanceID).filter((function(t){var e=od.getProperty(t,"data","growth","x");return e===U.STRETCH})).size()},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.parent,r=VO.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height,a=vA({children:this.children}).sum((function(t){return t.size})),s=this.configs.direction===G.ROW||this.configs.direction===G.ROW_REVERSE?xA:wA;kA().tile(s).size([i,o])(a);var u=this.configs.direction===G.ROW||this.configs.direction===G.ROW_REVERSE,c=n.selectAll("svg.layout-child-"+this._instanceID).data(a.leaves(),(function(t){return t.data.id}));c.attr("width",(function(t){return t.x1-t.x0})).attr("height",(function(t){return t.y1-t.y0}));var l=c.enter().append("svg").attr("class",(function(t){return"layout-child layout-child-"+e._instanceID+" "+t.data.id})).attr("x",(function(t){return t.x0})).attr("y",(function(t){return t.y0}));l.merge(n.selectAll("svg.layout-child-"+this._instanceID)).each((function(e){var n=this;e.data.components.forEach((function(r){r.setParent(kO(n));var i=od.getProperty(e,"data","growth","x");i!==U.PREFERRED&&i!==U.FIXED||r.render(t)}))})),n.selectAll("svg.layout-child-"+this._instanceID).each((function(t){var e=od.getProperty(t,"data","growth","x"),n=VO.getSVGElementSize(kO(this),{useBBox:!0});if(e===U.PREFERRED){var r=u?n.width:n.height,a=u?i:o;t.data.size=r/a*100}})),c.exit().remove(),this.children.filter((function(t){var e=od.getProperty(t,"growth","x");return e===U.STRETCH})).forEach((function(t,n){t.size=(100-+e.getPreferedAndFixedSizeSum())/+e.getNumOfStretchChildren()})),a=vA({children:this.children}).sum((function(t){return t.size})),kA().tile(s).size([i,o]).padding(0)(a),n.selectAll("svg.layout-child-"+this._instanceID).data(a.leaves(),(function(t){return t.data.id})).attr("x",(function(t){return t.x0})).attr("y",(function(t){return t.y0})).attr("width",(function(t){return t.x1-t.x0})).attr("height",(function(t){return t.y1-t.y0})).each((function(e,n){e.data.components.forEach((function(n){var r=od.getProperty(e,"data","growth","x");r===U.STRETCH&&n.render(t)}))}))},e.prototype.setModel=function(e){t.prototype.setModel.call(this,e),this.children.forEach((function(t){t.components.forEach((function(t){return t.setModel(e)}))}))},e.prototype.setServices=function(e){t.prototype.setServices.call(this,e),this.children.forEach((function(t){t.components.forEach((function(t){return t.setServices(e)}))}))},e.prototype.destroy=function(){this.children.forEach((function(t){t.components.forEach((function(t){return t.destroy()}))}))},e.instanceID=Math.floor(99999999999*Math.random()),e}(FS),HL=Array.prototype.slice,zL=function(t){return t},FL=1,WL=2,qL=3,YL=4,ZL=1e-6;function XL(t){return"translate("+(t+.5)+",0)"}function KL(t){return"translate(0,"+(t+.5)+")"}function $L(t){return function(e){return+t(e)}}function QL(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function JL(){return!this.__axis}function tD(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,u=t===FL||t===YL?-1:1,c=t===YL||t===WL?"x":"y",l=t===FL||t===qL?XL:KL;function h(h){var f=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,p=null==i?e.tickFormat?e.tickFormat.apply(e,n):zL:i,d=Math.max(o,0)+s,v=e.range(),g=+v[0]+.5,m=+v[v.length-1]+.5,y=(e.bandwidth?QL:$L)(e.copy()),_=h.selection?h.selection():h,b=_.selectAll(".domain").data([null]),O=_.selectAll(".tick").data(f,e).order(),x=O.exit(),w=O.enter().append("g").attr("class","tick"),E=O.select("line"),S=O.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),O=O.merge(w),E=E.merge(w.append("line").attr("stroke","currentColor").attr(c+"2",u*o)),S=S.merge(w.append("text").attr("fill","currentColor").attr(c,u*d).attr("dy",t===FL?"0em":t===qL?"0.71em":"0.32em")),h!==_&&(b=b.transition(h),O=O.transition(h),E=E.transition(h),S=S.transition(h),x=x.transition(h).attr("opacity",ZL).attr("transform",(function(t){return isFinite(t=y(t))?l(t):this.getAttribute("transform")})),w.attr("opacity",ZL).attr("transform",(function(t){var e=this.parentNode.__axis;return l(e&&isFinite(e=e(t))?e:y(t))}))),x.remove(),b.attr("d",t===YL||t==WL?a?"M"+u*a+","+g+"H0.5V"+m+"H"+u*a:"M0.5,"+g+"V"+m:a?"M"+g+","+u*a+"V0.5H"+m+"V"+u*a:"M"+g+",0.5H"+m),O.attr("opacity",1).attr("transform",(function(t){return l(y(t))})),E.attr(c+"2",u*o),S.attr(c,u*d).text(p),_.filter(JL).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===WL?"start":t===YL?"end":"middle"),_.each((function(){this.__axis=y}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=HL.call(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:HL.call(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:HL.call(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(o=a=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(s=+t,h):s},h}function eD(t){return tD(FL,t)}function nD(t){return tD(WL,t)}function rD(t){return tD(qL,t)}function iD(t){return tD(YL,t)}var oD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),aD=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="axes",r&&(i.configs=r),i.margins=i.configs.margins,i}return oD(e,t),e.prototype.render=function(t){void 0===t&&(t=!0);var e,n,r=this.configs.position,i=this.getOptions(),o=od.getProperty(i,"axes",r,"visible"),s=this.getContainerSVG(),u=VO.getSVGElementSize(this.parent,{useAttrs:!0}),c=u.width,l=u.height,h=VO.appendOrSelect(s,"g.axis."+r);r===L.BOTTOM||r===L.TOP?(e=this.configs.axes[L.LEFT]?this.margins.left:0,n=this.configs.axes[L.RIGHT]?c-this.margins.right:c):(e=l-this.margins.bottom,n=this.margins.top);var f,p=this.services.cartesianScales.getScaleByPosition(r);switch(this.scaleType===N.LABELS||this.scaleType===N.LABELS_RATIO?p.rangeRound([e,n]):p.range([e,n]),r){case L.LEFT:f=iD;break;case L.BOTTOM:f=rD;break;case L.RIGHT:f=nD;break;case L.TOP:f=eD;break}h.attr("aria-label",r+" axis");var d=!h.select("g.ticks").empty(),v=VO.appendOrSelect(h,"g.ticks");d||(v.attr("role",a.GRAPHICS_OBJECT+" "+a.GROUP),v.attr("aria-label",r+" ticks"));var g=VO.appendOrSelect(h,"g.ticks.invisible").style("opacity","0").style("pointer-events","none").attr("aria-hidden",!0).attr("aria-label","invisible "+r+" ticks"),m=od.getProperty(i,"axes",r),y=this.scaleType===N.TIME||m.scaleType===N.TIME,_=r===L.LEFT||r===L.RIGHT,b=this.model.get("zoomDomain");if(b&&y&&!_&&p.domain(b),o){var O=od.getProperty(m,"scaleType"),x=od.getProperty(i,"data","loading"),w=od.getProperty(m,"ticks","number"),E=od.getProperty(m,"ticks","values"),S=od.getProperty(m,"truncation","type"),T=od.getProperty(m,"truncation","threshold"),M=od.getProperty(m,"truncation","numCharacter"),C=null!==w,A=od.getProperty(i,"timeScale"),P=VO.appendOrSelect(g,"g.tick"),k=VO.appendOrSelect(P,"text").text("0"),D=VO.getSVGElementSize(k.node(),{useBBox:!0}).height;P.remove();var I,j=this.scaleType||m.scaleType||N.LINEAR,V=f(p).tickSizeOuter(0);if(p.ticks){var B=void 0;if(C?B=w:(B=it.ticks.number,_&&(B=this.getNumberOfFittingTicks(l,D,it.ticks.verticalSpaceRatio))),1===p.ticks().length&&0===p.ticks()[0]&&(B=0),V.ticks(B),y)if(p.ticks(B).length){var G=od.getProperty(i,"timeScale","addSpaceOnEdges"),U=od.getProperty(i,"axes",r,"domain"),H=void 0,z=p.copy();G&&!U&&z.nice(B),H=z.ticks(B),G&&H.length>2&&!U&&(H.splice(H.length-1,1),H.splice(0,1)),V.tickValues(H)}else V.tickValues([])}var F=od.getProperty(m,"ticks","formatter");if(y){var W=AM(V.tickValues());I=null===F?function(t,e){return SM(t,e,V.tickValues(),W,A)}:function(t,e){var n=SM(t,e,V.tickValues(),W,A);return F(t,e,n)}}else null===F?j===N.LINEAR&&(I=function(t){return t.toLocaleString()}):I=F;V.tickFormat(I);var q,Y=this.services.cartesianScales.getScaleByPosition(r).domain(),Z=Y[0],K=Y[1];if(E){if(y)E.forEach((function(t,e){void 0===t.getTime&&(E[e]=new Date(t))})),q=E.filter((function(t){var e=t.getTime();return e>=new Date(Z).getTime()&&e<=new Date(K).getTime()}));else if(O===N.LABELS){var $=this.services.cartesianScales.getScaleByPosition(r).domain();q=E.filter((function(t){return $.includes(t)}))}else q=E.filter((function(t){return t>=Z&&t<=K}));V.tickValues(q)}switch(r){case L.LEFT:v.attr("transform","translate("+this.margins.left+", 0)");break;case L.BOTTOM:v.attr("transform","translate(0, "+(l-this.margins.bottom)+")");break;case L.RIGHT:v.attr("transform","translate("+(c-this.margins.right)+", 0)");break;case L.TOP:v.attr("transform","translate(0, "+this.margins.top+")");break}var J=this.model.isDataEmpty();if(m.title){var tt=VO.appendOrSelect(h,"text.axis-title").html(J||x?"":m.title),et=od.getProperty(m,"titleOrientation");switch(r){case L.LEFT:et===Q.RIGHT?tt.attr("transform","rotate(90)").attr("y",0).attr("x",p.range()[0]/2).attr("dy","-0.5em").style("text-anchor","middle"):tt.attr("transform","rotate(-90)").attr("y",0).attr("x",-p.range()[0]/2).attr("dy","0.75em").style("text-anchor","middle");break;case L.BOTTOM:tt.attr("transform","translate("+(this.margins.left/2+p.range()[1]/2)+", "+(l+4)+")").style("text-anchor","middle");break;case L.RIGHT:et===Q.LEFT?tt.attr("transform","rotate(-90)").attr("y",c).attr("x",-p.range()[0]/2).style("text-anchor","middle"):tt.attr("transform","rotate(90)").attr("y",-c).attr("x",p.range()[0]/2).attr("dy","0.75em").style("text-anchor","middle");break;case L.TOP:var nt=VO.getSVGElementSize(tt,{useBBox:!0}).height;tt.attr("transform","translate("+(this.margins.left/2+p.range()[1]/2)+", "+nt/2+")").style("text-anchor","middle");break}}if(y){var rt=AM(V.tickValues()),ot=A.showDayName,at=v;t&&(v=v.transition(this.services.transitions.getTransition("axis-update",t))),v=v.call(V);var st=at.selectAll(".tick").data(V.tickValues(),p).order().select("text");st.style("font-weight",(function(t,e){return EM(t,e,V.tickValues(),rt,ot)?"bold":"normal"}))}else v=t&&d?v.transition(this.services.transitions.getTransition("axis-update")).call(V):v.call(V);if(g.call(V),r===L.BOTTOM||r===L.TOP){var ut=!1,ct=od.getProperty(m,"ticks","rotation");if(ct===X.ALWAYS)ut=!0;else if(ct===X.NEVER)ut=!1;else if(!ct||ct===X.AUTO)if(p.step){var lt=g.selectAll("g.tick text").nodes();ut=lt.some((function(t){return VO.getSVGElementSize(t,{useBBox:!0}).width>=p.step()}))}else{var ht=od.getProperty(m,"ticks","rotateIfSmallerThan")||it.ticks.rotateIfSmallerThan,ft=y?V.tickValues().length:p.ticks().length,pt=c/ft/2;ut=y?pt<2*ht:pt<ht}ut?(C||(V.ticks(this.getNumberOfFittingTicks(c,D,it.ticks.horizontalSpaceRatio)),g.call(V),v.call(V)),h.selectAll("g.ticks g.tick text").attr("transform","rotate(-45)").style("text-anchor",r===L.TOP?"start":"end")):h.selectAll("g.ticks g.tick text").attr("transform",null).style("text-anchor",null)}if(x?h.attr("opacity",0):h.attr("opacity",1),v.selectAll("g.tick").attr("aria-label",(function(t){return t})),g.selectAll("g.tick").attr("aria-label",(function(t){return t})),S!==R.NONE&&O===N.LABELS&&!E){var dt=this.services.cartesianScales.getScaleDomain(r);if(dt.length>0){var vt=s.select("g.axis."+r+" g.ticks g.tick").html();h.selectAll("g.ticks g.tick").html(vt),h.selectAll("g.tick text").data(dt).text((function(t){return t.length>T?od.truncateLabel(t,S,M):t})),this.getInvisibleAxisRef().selectAll("g.tick text").data(dt).text((function(t){return t.length>T?od.truncateLabel(t,S,M):t})),h.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()),h.selectAll("g.tick text").data(dt)}}this.addEventListeners()}else v.attr("aria-hidden",!0)},e.prototype.addEventListeners=function(){var t=this.getContainerSVG(),e=this.configs.position,n=VO.appendOrSelect(t,"g.axis."+e),r=this.getOptions(),i=od.getProperty(r,"axes",e),o=od.getProperty(i,"scaleType"),a=od.getProperty(i,"truncation","threshold"),s=(this.scaleType===N.TIME||(i.scaleType,N.TIME),this);n.selectAll("g.tick text").on("mouseover",(function(t){s.services.events.dispatchEvent(et.Axis.LABEL_MOUSEOVER,{element:kO(this),datum:t}),o===N.LABELS&&t.length>a&&s.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:kO(this),content:t})})).on("mousemove",(function(t){s.services.events.dispatchEvent(et.Axis.LABEL_MOUSEMOVE,{element:kO(this),datum:t}),o===N.LABELS&&t.length>a&&s.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("click",(function(t){s.services.events.dispatchEvent(et.Axis.LABEL_CLICK,{element:kO(this),datum:t})})).on("mouseout",(function(t){s.services.events.dispatchEvent(et.Axis.LABEL_MOUSEOUT,{element:kO(this),datum:t}),o===N.LABELS&&s.services.events.dispatchEvent(et.Tooltip.HIDE)}))},e.prototype.getInvisibleAxisRef=function(){var t=this.configs.position;return this.getContainerSVG().select("g.axis."+t+" g.ticks.invisible")},e.prototype.getTitleRef=function(){var t=this.configs.position;return this.getContainerSVG().select("g.axis."+t+" text.axis-title")},e.prototype.getNumberOfFittingTicks=function(t,e,n){var r=Math.floor(t/(e*n));return od.clamp(r,2,it.ticks.number)},e.prototype.destroy=function(){var t=this.getContainerSVG(),e=this.configs.position,n=VO.appendOrSelect(t,"g.axis."+e);n.selectAll("g.tick text").on("mouseover",null).on("mousemove",null).on("mouseout",null)},e}(FS),sD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),uD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="2D-axes",e.children={},e.thresholds=[],e.margins={top:0,right:0,bottom:0,left:0},e}return sD(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n={},r=Object.keys(L),i=od.getProperty(this.getOptions(),"axes");r.forEach((function(t){var e=i[L[t]];e&&(n[L[t]]=!0)})),this.configs.axes=n,r.forEach((function(t){var n=L[t];if(e.configs.axes[n]&&!e.children[n]){var r=new aD(e.model,e.services,{position:n,axes:e.configs.axes,margins:e.margins});r.setModel(e.model),r.setServices(e.services),r.setParent(e.parent),e.children[n]=r}})),Object.keys(this.children).forEach((function(n){var r=e.children[n];r.render(t)}));var o={};Object.keys(this.children).forEach((function(t){var n,r=e.children[t],i=r.configs.position,a=r.getInvisibleAxisRef(),s=VO.getSVGElementSize(a,{useBBox:!0}),u=s.width,c=s.height;switch(r.getTitleRef().empty()?n=0:(n=VO.getSVGElementSize(r.getTitleRef(),{useBBox:!0}).height,i!==L.LEFT&&i!==L.RIGHT||(n+=5)),i){case L.TOP:o.top=c+n;break;case L.BOTTOM:o.bottom=c+n;break;case L.LEFT:o.left=u+n;break;case L.RIGHT:o.right=u+n;break}}));var a=Object.keys(o).some((function(t){return e.margins[t]!==o[t]}));a&&(this.margins=Object.assign(this.margins,o),this.model.set({axesMargins:this.margins},{skipUpdate:!0}),this.services.events.dispatchEvent(et.ZoomBar.UPDATE),Object.keys(this.children).forEach((function(t){var n=e.children[t];n.margins=e.margins})),this.render(!0))},e}(FS);var cD=function(){Kp.preventDefault(),Kp.stopImmediatePropagation()},lD=function(t){var e=t.document.documentElement,n=kO(t).on("dragstart.drag",cD,!0);"onselectstart"in e?n.on("selectstart.drag",cD,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")};function hD(t,e){var n=t.document.documentElement,r=kO(t).on("dragstart.drag",null);e&&(r.on("click.drag",cD,!0),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var fD=function(t,e,n){arguments.length<3&&(n=e,e=ad().changedTouches);for(var r,i=0,o=e?e.length:0;i<o;++i)if((r=e[i]).identifier===n)return sd(t,r);return null},pD=function(t){return function(){return t}},dD=function(t,e,n){this.target=t,this.type=e,this.selection=n};function vD(){Kp.stopImmediatePropagation()}var gD=function(){Kp.preventDefault(),Kp.stopImmediatePropagation()},mD={name:"drag"},yD={name:"space"},_D={name:"handle"},bD={name:"center"};function OD(t){return[+t[0],+t[1]]}function xD(t){return[OD(t[0]),OD(t[1])]}function wD(t){return function(e){return fD(e,Kp.touches,t)}}var ED={name:"x",handles:["w","e"].map(kD),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},SD={name:"y",handles:["n","s"].map(kD),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},TD=(["n","w","e","s","nw","ne","sw","se"].map(kD),{overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"}),MD={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},CD={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},AD={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},PD={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function kD(t){return{type:t}}function LD(){return!Kp.ctrlKey&&!Kp.button}function DD(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function RD(){return navigator.maxTouchPoints||"ontouchstart"in this}function ID(t){while(!t.__brush)if(!(t=t.parentNode))return;return t.__brush}function ND(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function jD(){return VD(ED)}function VD(t){var e,n=DD,r=LD,i=RD,o=!0,a=Object(UO["a"])("start","brush","end"),s=6;function u(e){var n=e.property("__brush",v).selectAll(".overlay").data([kD("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",TD.overlay).merge(n).each((function(){var t=ID(this).extent;kO(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([kD("selection")]).enter().append("rect").attr("class","selection").attr("cursor",TD.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return TD[t.type]})),e.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",f).filter(i).on("touchstart.brush",f).on("touchmove.brush",p).on("touchend.brush touchcancel.brush",d).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var t=kO(this),e=ID(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-s/2:e[0][0]-s/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-s/2:e[0][1]-s/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+s:s})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+s:s}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function l(t,e,n){return!n&&t.__brush.emitter||new h(t,e)}function h(t,e){this.that=t,this.args=e,this.state=t.__brush,this.active=0}function f(){if((!e||Kp.touches)&&r.apply(this,arguments)){var n,i,a,s,u,h,f,p,d,v,g,m=this,y=Kp.target.__data__.type,_="selection"===(o&&Kp.metaKey?y="overlay":y)?mD:o&&Kp.altKey?bD:_D,b=t===SD?null:AD[y],O=t===ED?null:PD[y],x=ID(m),w=x.extent,E=x.selection,S=w[0][0],T=w[0][1],M=w[1][0],C=w[1][1],A=0,P=0,k=b&&O&&o&&Kp.shiftKey,L=Kp.touches?wD(Kp.changedTouches[0].identifier):ud,D=L(m),R=D,I=l(m,arguments,!0).beforestart();"overlay"===y?(E&&(d=!0),x.selection=E=[[n=t===SD?S:D[0],a=t===ED?T:D[1]],[u=t===SD?M:n,f=t===ED?C:a]]):(n=E[0][0],a=E[0][1],u=E[1][0],f=E[1][1]),i=n,s=a,h=u,p=f;var N=kO(m).attr("pointer-events","none"),j=N.selectAll(".overlay").attr("cursor",TD[y]);if(Kp.touches)I.moved=B,I.ended=U;else{var V=kO(Kp.view).on("mousemove.brush",B,!0).on("mouseup.brush",U,!0);o&&V.on("keydown.brush",H,!0).on("keyup.brush",z,!0),lD(Kp.view)}vD(),Sx(m),c.call(m),I.start()}function B(){var t=L(m);!k||v||g||(Math.abs(t[0]-R[0])>Math.abs(t[1]-R[1])?g=!0:v=!0),R=t,d=!0,gD(),G()}function G(){var t;switch(A=R[0]-D[0],P=R[1]-D[1],_){case yD:case mD:b&&(A=Math.max(S-n,Math.min(M-u,A)),i=n+A,h=u+A),O&&(P=Math.max(T-a,Math.min(C-f,P)),s=a+P,p=f+P);break;case _D:b<0?(A=Math.max(S-n,Math.min(M-n,A)),i=n+A,h=u):b>0&&(A=Math.max(S-u,Math.min(M-u,A)),i=n,h=u+A),O<0?(P=Math.max(T-a,Math.min(C-a,P)),s=a+P,p=f):O>0&&(P=Math.max(T-f,Math.min(C-f,P)),s=a,p=f+P);break;case bD:b&&(i=Math.max(S,Math.min(M,n-A*b)),h=Math.max(S,Math.min(M,u+A*b))),O&&(s=Math.max(T,Math.min(C,a-P*O)),p=Math.max(T,Math.min(C,f+P*O)));break}h<i&&(b*=-1,t=n,n=u,u=t,t=i,i=h,h=t,y in MD&&j.attr("cursor",TD[y=MD[y]])),p<s&&(O*=-1,t=a,a=f,f=t,t=s,s=p,p=t,y in CD&&j.attr("cursor",TD[y=CD[y]])),x.selection&&(E=x.selection),v&&(i=E[0][0],h=E[1][0]),g&&(s=E[0][1],p=E[1][1]),E[0][0]===i&&E[0][1]===s&&E[1][0]===h&&E[1][1]===p||(x.selection=[[i,s],[h,p]],c.call(m),I.brush())}function U(){if(vD(),Kp.touches){if(Kp.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else hD(Kp.view,d),V.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);N.attr("pointer-events","all"),j.attr("cursor",TD.overlay),x.selection&&(E=x.selection),ND(E)&&(x.selection=null,c.call(m)),I.end()}function H(){switch(Kp.keyCode){case 16:k=b&&O;break;case 18:_===_D&&(b&&(u=h-A*b,n=i+A*b),O&&(f=p-P*O,a=s+P*O),_=bD,G());break;case 32:_!==_D&&_!==bD||(b<0?u=h-A:b>0&&(n=i-A),O<0?f=p-P:O>0&&(a=s-P),_=yD,j.attr("cursor",TD.selection),G());break;default:return}gD()}function z(){switch(Kp.keyCode){case 16:k&&(v=g=k=!1,G());break;case 18:_===bD&&(b<0?u=h:b>0&&(n=i),O<0?f=p:O>0&&(a=s),_=_D,G());break;case 32:_===yD&&(Kp.altKey?(b&&(u=h-A*b,n=i+A*b),O&&(f=p-P*O,a=s+P*O),_=bD):(b<0?u=h:b>0&&(n=i),O<0?f=p:O>0&&(a=s),_=_D),j.attr("cursor",TD[y]),G());break;default:return}gD()}}function p(){l(this,arguments).moved()}function d(){l(this,arguments).ended()}function v(){var e=this.__brush||{selection:null};return e.extent=xD(n.apply(this,arguments)),e.dim=t,e}return u.move=function(e,n){e.selection?e.on("start.brush",(function(){l(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){l(this,arguments).end()})).tween("brush",(function(){var e=this,r=e.__brush,i=l(e,arguments),o=r.selection,a=t.input("function"===typeof n?n.apply(this,arguments):n,r.extent),s=wg(o,a);function u(t){r.selection=1===t&&null===a?null:s(t),c.call(e),i.brush()}return null!==o&&null!==a?u:u(1)})):e.each((function(){var e=this,r=arguments,i=e.__brush,o=t.input("function"===typeof n?n.apply(e,r):n,i.extent),a=l(e,r).beforestart();Sx(e),i.selection=null===o?null:o,c.call(e),a.start().brush().end()}))},u.clear=function(t){u.move(t,null)},h.prototype={beforestart:function(){return 1===++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0===--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(e){id(new dD(u,e,t.output(this.state.selection)),a.apply,a,[e,this.that,this.args])}},u.extent=function(t){return arguments.length?(n="function"===typeof t?t:pD(xD(t)),u):n},u.filter=function(t){return arguments.length?(r="function"===typeof t?t:pD(!!t),u):r},u.touchable=function(t){return arguments.length?(i="function"===typeof t?t:pD(!!t),u):i},u.handleSize=function(t){return arguments.length?(s=+t,u):s},u.keyModifiers=function(t){return arguments.length?(o=!!t,u):o},u.on=function(){var t=a.on.apply(a,arguments);return t===a?u:t},u}var BD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),GD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid-brush",e.selectionSelector="rect.selection",e.frontSelectionSelector="rect.frontSelection",e}return BD(e,t),e.prototype.render=function(t){var n=this;void 0===t&&(t=!0);var r=this.parent,i=this.getContainerSVG(),o=VO.appendOrSelect(r,"svg.chart-grid-backdrop"),a=VO.appendOrSelect(o,"g."+this.type),s=VO.appendOrSelect(a,this.selectionSelector),u=VO.getSVGElementSize(o,{useAttrs:!0}),c=u.width,l=u.height,h=this.services.cartesianScales,f=h.getMainXScaleType(),p=h.getMainXScale(),d=p.range(),v=d[0];d[1];i.attr("transform","translate("+v+",0)");var g=VO.appendOrSelect(i,this.frontSelectionSelector);if(p&&f===N.TIME){var m=this.model.get("zoomDomain");void 0===m&&(m=this.services.zoom.getDefaultZoomBarDomain(),m&&this.model.set({zoomDomain:m},{animate:!1}));var y=function(t){for(var n=t[1]-t[0],r="0,"+n.toString(),i=Math.floor(l/e.DASH_LENGTH),o=i*e.DASH_LENGTH,a=0;a<i;a++)r+=","+e.DASH_LENGTH;r+=","+(l-o),i%2===1&&(r+=",0"),r+=","+n.toString(),r+=","+l.toString(),g.attr("stroke-dasharray",r)},_=function(){var t=Kp.selection;null!==t&&t[0]!==t[1]&&(g.attr("x",s.attr("x")).attr("y",s.attr("y")).attr("width",s.attr("width")).attr("height",s.attr("height")).style("cursor","pointer").style("display",null),y(t))},b=function(t,e){var r=I_().range([0,c]).domain(m),i=[r.invert(t),r.invert(e)];i[0].valueOf()===i[1].valueOf()&&(i=n.services.zoom.getDefaultZoomBarDomain()),m[0].valueOf()===i[0].valueOf()&&m[1].valueOf()===i[1].valueOf()||n.services.zoom.handleDomainChange(i)},O=function(){var t=Kp.selection;null!==t&&(b(t[0],t[1]),a.call(x.move,null),g.style("display","none"))},x=jD().extent([[0,0],[c-1,l]]).on("start brush end",_).on("end.brushed",O);a.call(x);var w=this.services.zoom.getZoomRatio();o.on("click",(function(){if(Kp.shiftKey){var t=ud(a.node())[0],e=t-c*w/2;e<0&&(e=0);var n=t+c*w/2;n>c&&(n=c),b(e,n)}}))}},e.DASH_LENGTH=4,e}(FS),UD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),HD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return UD(e,t),e.prototype.render=function(t){void 0===t&&(t=!0);var e=od.getProperty(this.getOptions(),"grid","x","enabled"),n=od.getProperty(this.getOptions(),"grid","y","enabled");this.drawBackdrop(e,n),(e||n)&&(e&&(VO.appendOrSelect(this.backdrop,"g.x.grid"),this.drawXGrid(t)),n&&(VO.appendOrSelect(this.backdrop,"g.y.grid"),this.drawYGrid(t)))},e.prototype.drawXGrid=function(t){var e=this.parent,n=this.backdrop.attr("height"),r=this.services.cartesianScales.getMainXScale(),i=rD(r).tickSizeInner(-n).tickSizeOuter(0),o=od.getProperty(this.getOptions(),"grid","x","alignWithAxisTicks");if(o){var a=this.services.cartesianScales.getDomainAxisPosition(),s=od.getProperty(this.getOptions(),"axes",a,"ticks","values");s&&i.tickValues(s)}else{var u=od.getProperty(this.getOptions(),"grid","x","numberOfTicks");i.ticks(u)}var c=e.select(".x.grid").attr("transform","translate("+-this.backdrop.attr("x")+", "+n+")");if(t){var l=this.services.transitions.getTransition("grid-update");c.transition(l).call(i)}else c.call(i);this.cleanGrid(c)},e.prototype.drawYGrid=function(t){var e=this.parent,n=this.backdrop.attr("width"),r=this.services.cartesianScales.getMainYScale(),i=iD(r).tickSizeInner(-n).tickSizeOuter(0),o=od.getProperty(this.getOptions(),"grid","y","alignWithAxisTicks");if(o){var a=this.services.cartesianScales.getRangeAxisPosition(),s=od.getProperty(this.getOptions(),"axes",a,"ticks","values");s&&i.tickValues(s)}else{var u=od.getProperty(this.getOptions(),"grid","y","numberOfTicks");i.ticks(u)}var c=e.select(".y.grid").attr("transform","translate(0, "+-this.backdrop.attr("y")+")");if(t){var l=this.services.transitions.getTransition("grid-update");c.transition(l).call(i)}else c.call(i);this.cleanGrid(c)},e.prototype.getGridlineThreshold=function(t){var e,n=this.parent,r=n.selectAll(".x.grid .tick").nodes().sort((function(t,e){return Number(od.getTranslationValues(t).tx)-Number(od.getTranslationValues(e).tx)})),i=-1;if(r.length){r.forEach((function(e,n){t[0]>=+od.getTranslationValues(e).tx&&i++})),e=i+1<r.length?i+1:r.length;var o,a=r[i],s=r[e];if(a)if(s)o=+od.getTranslationValues(s).tx-+od.getTranslationValues(a).tx;else{var u=n.select("rect.chart-grid-backdrop").node(),c=VO.getSVGElementSize(u).width;o=c-+od.getTranslationValues(a).tx}else o=+od.getTranslationValues(s).tx;var l=this.getOptions().tooltip.gridline.threshold;return o*l}},e.prototype.getActiveGridline=function(t){var e=od.getProperty(this.getOptions,"tooltip","gridline","threshold"),n=e||this.getGridlineThreshold(t),r=this.parent,i=r.selectAll(".x.grid .tick").filter((function(){var e=od.getTranslationValues(this),r={min:Number(e.tx)-n,max:Number(e.tx)+n};return r.min<=t[0]&&t[0]<=r.max}));return i},e.prototype.drawBackdrop=function(t,e){var n=this.parent,r=this.services.cartesianScales.getMainXScale(),i=this.services.cartesianScales.getMainYScale(),o=r.range(),a=o[0],s=o[1],u=i.range(),c=u[0],l=u[1];this.backdrop=VO.appendOrSelect(n,"svg.chart-grid-backdrop");var h=VO.appendOrSelect(this.backdrop,t||e?"rect.chart-grid-backdrop.stroked":"rect.chart-grid-backdrop");this.backdrop.merge(h).attr("x",a).attr("y",l).attr("width",Math.abs(s-a)).attr("height",Math.abs(c-l)).lower(),h.attr("width","100%").attr("height","100%")},e.prototype.cleanGrid=function(t){t.selectAll("text").remove(),t.select(".domain").remove()},e}(FS),zD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),FD=5;function WD(t,e){return t>e-FD&&t<e+FD}var qD,YD,ZD,XD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ruler",e.isXGridEnabled=od.getProperty(e.getOptions(),"grid","x","enabled"),e.isYGridEnabled=od.getProperty(e.getOptions(),"grid","y","enabled"),e.isEventListenerAdded=!1,e}return zD(e,t),e.prototype.render=function(){var t=od.getProperty(this.getOptions(),"ruler","enabled");this.drawBackdrop(),t&&!this.isEventListenerAdded?this.addBackdropEventListeners():!t&&this.isEventListenerAdded&&this.removeBackdropEventListeners()},e.prototype.removeBackdropEventListeners=function(){this.isEventListenerAdded=!1,this.backdrop.on("mousemove mouseover mouseout",null)},e.prototype.formatTooltipData=function(t){return t},e.prototype.showRuler=function(t){var e=this,n=t[0],r=t[1],i=this.parent,o=this.services.cartesianScales.getOrientation(),a=o===I.HORIZONTAL?r:n,s=VO.appendOrSelect(i,"g.ruler").attr("aria-label","ruler"),u=VO.appendOrSelect(s,"line.ruler-line"),c=i.selectAll("[role=graphics-symbol]"),l=this.model.getDisplayData(),h=this.services.cartesianScales.getRangeScale(),f=h.range(),p=f[0],d=f[1],v=l.map((function(t){return{domainValue:e.services.cartesianScales.getDomainValue(t),originalData:t}})).filter((function(t){return WD(t.domainValue,a)}));if(this.pointsWithinLine&&v.length===this.pointsWithinLine.length&&v.map((function(t){return t.domainValue})).join()===this.pointsWithinLine.map((function(t){return t.domainValue})).join())return this.pointsWithinLine=v,this.services.events.dispatchEvent(et.Tooltip.MOVE,{mousePosition:[n,r]});this.pointsWithinLine=v;var g=this.pointsWithinLine.reduce((function(t,e){if(0===t.length)return t.push(e),t;var n=t[0].domainValue,r=Math.abs(a-e.domainValue),i=Math.abs(a-n);return r>i?t:(r<i?t=[e]:t.push(e),t)}),[]);if(g.length>0){var m=g.map((function(t){return t.originalData})).filter((function(t){var n=e.services.cartesianScales.getRangeIdentifier(t),r=t[n];return null!==r&&void 0!==r})),y=g.map((function(t){return t.domainValue})),_=c.filter((function(t){var n=e.services.cartesianScales.getDomainValue(t);return y.includes(n)}));this.elementsToHighlight&&this.elementsToHighlight.size()>0&&!od.isEqual(this.elementsToHighlight,_)&&this.hideRuler(),_.dispatch("mouseover"),this.elementsToHighlight=_,this.services.events.dispatchEvent(et.Tooltip.SHOW,{mousePosition:[n,r],hoveredElement:u,data:this.formatTooltipData(m)}),s.attr("opacity",1);var b=g[0];"horizontal"===o?u.attr("x1",d).attr("x2",p).attr("y1",b.domainValue).attr("y2",b.domainValue):u.attr("y1",d).attr("y2",p).attr("x1",b.domainValue).attr("x2",b.domainValue)}else this.hideRuler()},e.prototype.hideRuler=function(){var t=this.parent,e=VO.appendOrSelect(t,"g.ruler"),n=t.selectAll("[role=graphics-symbol]");n.dispatch("mouseout"),this.services.events.dispatchEvent(et.Tooltip.HIDE),e.attr("opacity",0)},e.prototype.addBackdropEventListeners=function(){this.isEventListenerAdded=!0;var t=this,e=this.model.getDisplayData(),n=function(){var e=ud(t.parent.node());t.showRuler(e)};if(e.length>100){var r=e.length%50*12.5;n=od.debounceWithD3MousePosition((function(){var e=this.mousePosition;t.showRuler(e)}),r,this.parent.node())}this.backdrop.on("mousemove mouseover",n).on("mouseout",this.hideRuler.bind(this))},e.prototype.drawBackdrop=function(){var t=this.parent,e=this.services.cartesianScales.getMainXScale(),n=this.services.cartesianScales.getMainYScale(),r=e.range(),i=(r[0],r[1],n.range());i[0],i[1];this.backdrop=VO.appendOrSelect(t,"svg.chart-grid-backdrop");VO.appendOrSelect(this.backdrop,this.isXGridEnabled||this.isYGridEnabled?"rect.chart-grid-backdrop.stroked":"rect.chart-grid-backdrop")},e}(FS),KD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return KD(e,t),e.prototype.formatTooltipData=function(t){return t.reverse()},e}(XD),QD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),JD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="toolbar",e.overflowMenuX=0,e.overflowMenuY=0,e.overflowMenuItemId=Math.floor(99999999999*Math.random()),e}return QD(e,t),e.prototype.init=function(){var t=this,e=this.getOptions(),n=kO(this.services.domUtils.getHolder()),r=od.getProperty(e,"style","prefix");this.overflowMenu=VO.appendOrSelect(n,"div."+RO.prefix+"--"+r+"--overflowMenu"),this.overflowMenu.style("max-width",null),this.services.events.addEventListener(et.Toolbar.SHOW_OVERFLOW_MENU,(function(){t.overflowMenu.html(t.getOverflowMenuHTML())})),this.services.events.addEventListener(et.Toolbar.HIDE_OVERFLOW_MENU,(function(){t.overflowMenu.html(null)})),document.body.addEventListener("click",(function(){return t.updateOverflowMenu(!1)}))},e.prototype.render=function(t){void 0===t&&(t=!0);var e=od.getProperty(this.getOptions(),"data","loading"),n=mt.buttonSize,r=parseFloat(this.parent.node().getAttribute("y")),i=this.getContainerSVG(),o=-6;i.attr("transform","translate(0, "+(r+o)+")");var s=VO.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttrs:!0}).width,u=160;this.overflowMenuX=s-u,this.overflowMenuY=r+o+n;var c=VO.appendOrSelect(i,"svg.toolbar-container").attr("width","100%").attr("height",mt.height).attr("opacity",1);c.html(null);var l=this.getControlConfigs(),h=l.buttonList,f=l.overflowMenuItemList;if(f&&h.push(this.getOverflowButtonConfig()),e||0===h.length)VO.appendOrSelect(c,"svg.toolbar-loading-spacer").append("rect").attr("height",mt.height).attr("width",3*n).attr("opacity",0);else{var p=0;h.forEach((function(t){var e=VO.appendOrSelect(c,"svg."+t.id).classed("toolbar-button",!0),r=VO.appendOrSelect(e,"rect.toolbar-button-background").attr("x",p).attr("y",0).attr("width",n).attr("height",n),i=VO.appendOrSelect(e,"svg.toolbar-button-icon").attr("x",p+mt.iconPadding).attr("y",mt.iconPadding).attr("width",mt.iconSize).attr("height",mt.iconSize).attr("viewBox","0 0 32 32").attr("role",a.IMG);i.html(t.iconSVGContent),t.shouldBeDisabled()?(e.classed("toolbar-button--disabled",!0).classed("toolbar-button--focusable",!1).attr("tabindex",-1).attr("role",null),i.classed("toolbar-button-icon--disabled",!0),r.classed("toolbar-button-background--disabled",!0),e.on("click",null).on("keyup",null)):(e.classed("toolbar-button--disabled",!1).classed("toolbar-button--focusable",!0).attr("tabindex",0).attr("role",a.BUTTON),i.classed("toolbar-button-icon--disabled",!1),r.classed("toolbar-button-background--disabled",!1),e.on("click",t.clickFunction).on("keyup",(function(){(Kp.key&&"Enter"===Kp.key||" "===Kp.key)&&(Kp.preventDefault(),t.clickFunction())}))),p+=n})),this.overflowButton=this.getContainerSVG().select("svg.toolbar-overflow-menu"),this.isOverflowMenuOpen()&&this.updateOverflowMenu(!0)}},e.prototype.isOverflowMenuOpen=function(){return this.overflowMenu.selectAll("ul.bx--overflow-menu-options--open").size()>0},e.prototype.updateOverflowMenu=function(t){this.overflowButton&&this.overflowButton.classed("toolbar-button--hovered",t),t?this.services.events.dispatchEvent(et.Toolbar.SHOW_OVERFLOW_MENU):this.services.events.dispatchEvent(et.Toolbar.HIDE_OVERFLOW_MENU)},e.prototype.focusOnPreviousEnabledMenuItem=function(t){for(var e=this.getOverflowMenuItems(),n=e.length,r=t-1;r>=0;r--){var i=e[r];if(!i.shouldBeDisabled()){n=r;break}}if(n<e.length){var o=kO("#"+e[n].id+this.overflowMenuItemId).node();"focus"in o&&o.focus()}},e.prototype.focusOnNextEnabledMenuItem=function(t){for(var e=this.getOverflowMenuItems(),n=-1,r=t+1;r<e.length;r++){var i=e[r];if(!i.shouldBeDisabled()){n=r;break}}if(n>-1){var o=kO("#"+e[n].id+this.overflowMenuItemId).node();"focus"in o&&o.focus()}},e.prototype.toggleOverflowMenu=function(){var t=this;if(this.isOverflowMenuOpen())this.updateOverflowMenu(!1);else{this.updateOverflowMenu(!0);var e=this,n=this.getOverflowMenuItems();n.forEach((function(n,r){var i=kO("#"+n.id+t.overflowMenuItemId);null!==i&&(i.on("click",(function(){n.clickFunction(),e.updateOverflowMenu(!1)})),i.on("keyup",(function(){"Enter"===Kp.key?n.clickFunction():"ArrowUp"===Kp.key?e.focusOnPreviousEnabledMenuItem(r):"ArrowDown"===Kp.key&&e.focusOnNextEnabledMenuItem(r)})))})),e.focusOnNextEnabledMenuItem(-1)}Kp.stopImmediatePropagation()},e.prototype.getOverflowMenuHTML=function(){var t,e=this,n=this.getOverflowMenuItems();return n&&0!==n.length?(t='<div data-floating-menu-container="true" data-floating-menu-direction="bottom" role="main">\n\t\t\t<ul class="bx--overflow-menu-options bx--overflow-menu--flip bx--overflow-menu-options--open"\n\t\t\t\ttabindex="-1" role="'+a.MENU+'" aria-label="Menu" data-floating-menu-direction="bottom"\n\t\t\t\tstyle="left:'+this.overflowMenuX+"px; top:"+this.overflowMenuY+'px;">',n.forEach((function(n,r){var i="bx--overflow-menu-options__option".concat(n.shouldBeDisabled()?" bx--overflow-menu-options__option--disabled":"");t+='<li class="'+i+'" role="'+a.MENU_ITEM+'">\n\t\t\t\t<button class="bx--overflow-menu-options__btn"\n\t\t\t\t\tdata-floating-menu-primary-focus="'+(0===r)+'"\n\t\t\t\t\ttabindex="-1" index="'+r+'" title="'+n.text+'"\n\t\t\t\t\tid="'+(n.id+e.overflowMenuItemId)+'">\n\t\t\t\t\t<div class="bx--overflow-menu-options__option-content">\n\t\t\t\t\t\t'+n.text+"\n\t\t\t\t\t</div>\n\t\t\t\t</button>\n\t\t\t</li>"})),t+="</ul></div>",t):""},e.prototype.getControlConfigs=function(){var t=this,e=od.getProperty(this.getOptions(),"toolbar","numberOfIcons"),n=od.getProperty(this.getOptions(),"toolbar","controls"),r=[];return n.forEach((function(e){var n=t.getControlConfigByType(e.type);n&&(n.text=e.text?e.text:e.type,r.push(n))})),r.length<=e?{buttonList:r}:{buttonList:r.splice(0,e-1),overflowMenuItemList:r}},e.prototype.getOverflowMenuItems=function(){var t=this.getControlConfigs().overflowMenuItemList;return t||[]},e.prototype.getOverflowButtonConfig=function(){var t=this;return{id:"toolbar-overflow-menu",shouldBeDisabled:function(){return!1},iconSVGContent:'<circle cx="16" cy="8" r="2"></circle>\n\t\t\t\t\t\t\t <circle cx="16" cy="16" r="2"></circle>\n\t\t\t\t\t\t\t <circle cx="16" cy="24" r="2"></circle>',clickFunction:function(){return t.toggleOverflowMenu()}}},e.prototype.getControlConfigByType=function(t){var e,n=this,r=this.services.zoom.isZoomBarEnabled()&&!this.services.zoom.isEmptyState();switch(t){case $.ZOOM_IN:r&&(e={id:"toolbar-zoomIn",shouldBeDisabled:function(){return n.services.zoom.isMinZoomDomain()},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.zoom.zoomIn()}});break;case $.ZOOM_OUT:r&&(e={id:"toolbar-zoomOut",shouldBeDisabled:function(){return n.services.zoom.isMaxZoomDomain()},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.zoom.zoomOut()}});break;case $.RESET_ZOOM:r&&(e={id:"toolbar-resetZoom",shouldBeDisabled:function(){return n.services.zoom.isMaxZoomDomain()},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.zoom.resetZoomDomain()}});break;default:throw Error("Not supported toolbar control type: "+t)}return e},e.prototype.getControlIconByType=function(t){switch(t){case $.ZOOM_IN:return'<polygon points="19 13 15 13 15 9 13 9 13 13 9 13 9 15 13 15 13 19 15 19 15 15 19 15 19 13"/>\n \t\t\t\t\t<path d="M22.45,21A10.87,10.87,0,0,0,25,14,11,11,0,1,0,14,25a10.87,10.87,0,0,0,7-2.55L28.59,30,30,28.59ZM14,23a9,9,0,1,1,9-9A9,9,0,0,1,14,23Z"/>';case $.ZOOM_OUT:return'<rect x="9" y="13" width="10" height="2"/>\n\t\t\t\t\t\t<path d="M22.45,21A10.87,10.87,0,0,0,25,14,11,11,0,1,0,14,25a10.87,10.87,0,0,0,7-2.55L28.59,30,30,28.59ZM14,23a9,9,0,1,1,9-9A9,9,0,0,1,14,23Z"/>';case $.RESET_ZOOM:return'<path d="M22.4478,21A10.855,10.855,0,0,0,25,14,10.99,10.99,0,0,0,6,6.4658V2H4v8h8V8H7.332a8.9768,8.9768,0,1,1-2.1,8H3.1912A11.0118,11.0118,0,0,0,14,25a10.855,10.855,0,0,0,7-2.5522L28.5859,30,30,28.5859Z"/>';default:throw Error("Not supported toolbar control type: "+t)}},e}(FS),tR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),eR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="zero-line",e}return tR(e,t),e.prototype.render=function(t){var e=this.services.cartesianScales.getRangeAxisPosition({groups:this.configs.groups}),n=this.services.cartesianScales.getScaleByPosition(e),r=n.domain(),i=r[0],o=r[1],a=i>0&&o<0||i<0&&o>0,s=this.getContainerSVG();if(a){var u=this.services.cartesianScales.getDomainScale().range(),c=u[0],l=u[1],h=+n(0)+.5;h||(h=n.range()[0]);var f=od.flipSVGCoordinatesBasedOnOrientation({x0:c,x1:l,y0:h,y1:h},this.services.cartesianScales.getOrientation()),p=VO.appendOrSelect(s,"line.domain");p.transition(this.services.transitions.getTransition("zero-line-update",t)).attr("y1",f.y0).attr("y2",f.y1).attr("x1",f.x0).attr("x2",f.x1)}else s.selectAll("line.domain").remove()},e}(FS),nR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="zoom-bar",e.MIN_SELECTION_DIFF=9e-10,e.brushSelector="g.zoom-bar-brush",e.clipId="zoomBarClip-"+Math.floor(99999999999*Math.random()),e.brush=jD(),e}return nR(e,t),e.prototype.init=function(){this.services.events.addEventListener(et.ZoomBar.UPDATE,this.render.bind(this));var t=od.getProperty(this.getOptions(),"zoomBar",L.TOP,"data");this.model.setZoomBarData(t)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG(),r=this.services.zoom.isZoomBarLoading(L.TOP),i=this.services.zoom.isZoomBarLocked(L.TOP),o=od.getProperty(this.getOptions(),"zoomBar",L.TOP,"type"),a=yt.height[o],s=VO.getSVGElementSize(this.parent,{useAttrs:!0}).width;if(0!==s){var u=0,c=this.model.get("axesMargins");c&&c.left&&(u=c.left);var l=VO.appendOrSelect(n,"svg.zoom-container").attr("width","100%").attr("height",a).attr("opacity",1);VO.appendOrSelect(n,"rect.zoom-spacer").attr("x",0).attr("y",a).attr("width","100%").attr("height",yt.spacerHeight).attr("opacity",1).attr("fill","none");if(o===D.GRAPH_VIEW?VO.appendOrSelect(l,"rect.zoom-bg").attr("x",u).attr("y",0).attr("width",s-u).attr("height","100%").classed("zoom-bg-skeleton",r):o===D.SLIDER_VIEW&&VO.appendOrSelect(l,"rect.zoom-slider-bg").attr("x",u).attr("y",a/2-1).attr("width",s-u).attr("height",2).classed("zoom-slider-bg-skeleton",r),r)this.renderSkeleton(l,u,s);else{var h=this.services.cartesianScales,f=h.getMainXScale(),p=h.getMainYScale(),d=h.getMainXScaleType();if(f&&d===N.TIME){var v=this.services.zoom.getZoomBarData();if(od.isEmpty(v))return;this.xScale=f.copy(),this.yScale=p.copy();var g=this.services.zoom.getDefaultZoomBarDomain(v);v=this.compensateDataForDefaultDomain(v,g);var m=this.model.get("initialZoomDomain"),y=od.getProperty(this.getOptions(),"zoomBar",L.TOP,"initialZoomDomain");y&&y[0]&&y[1]&&(y[0]=new Date(y[0]),y[1]=new Date(y[1])),!y||m&&m[0].valueOf()===y[0].valueOf()&&m[1].valueOf()===y[1].valueOf()?null===y&&null!=m&&this.model.set({initialZoomDomain:null,zoomDomain:od.merge([],g)},{skipUpdate:!0}):this.model.set({initialZoomDomain:od.merge([],y),zoomDomain:y?od.merge([],y):g},{skipUpdate:!0}),this.xScale.range([u,s]).domain(g),this.maxSelectionRange=this.xScale.range(),this.yScale.range([0,a-6]).domain(rv(v,(function(t){return t.value})));var _=this.model.get("zoomDomain");o===D.GRAPH_VIEW&&(this.renderZoomBarArea(l,"path.zoom-graph-area-unselected",v,null),this.updateClipPath(n,this.clipId,0,0,0,0),this.renderZoomBarArea(l,"path.zoom-graph-area",v,this.clipId),this.renderZoomBarBaseline(l,u,s)),this.addBrushEventListener(_,u,s);var b=VO.appendOrSelect(n,this.brushSelector).call(this.brush);if(void 0===_);else if(_[0].valueOf()===_[1].valueOf())b.call(this.brush.move,this.xScale.range()),this.updateBrushHandle(this.getContainerSVG(),this.xScale.range(),this.xScale.domain());else{var O=_.map((function(t){return e.xScale(t)}));O[1]-O[0]<this.MIN_SELECTION_DIFF||(b.call(this.brush.move,O),this.updateBrushHandle(this.getContainerSVG(),O,_))}i&&(this.brush.filter((function(){return!1})),b.selectAll("rect").attr("cursor","auto"))}}}},e.prototype.addBrushEventListener=function(t,e,n){var r=this,i=function(){var e=Kp.selection;null===e?r.handleBrushedEvent(t,r.xScale,r.xScale.range()):e[0]===e[1]||r.handleBrushedEvent(t,r.xScale,e)},o=od.getProperty(this.getOptions(),"zoomBar",L.TOP,"type"),a=yt.height[o];this.brush.extent([[e,0],[n,a]]).on("start brush end",null).on("start brush end",i)},e.prototype.handleBrushedEvent=function(t,e,n){var r=[e.invert(n[0]),e.invert(n[1])];if(this.updateBrushHandle(this.getContainerSVG(),n,r),null!=Kp.sourceEvent&&("mousemove"===Kp.sourceEvent.type||"mouseup"===Kp.sourceEvent.type||"mousedown"===Kp.sourceEvent.type||"touchstart"===Kp.sourceEvent.type||"touchmove"===Kp.sourceEvent.type||"touchend"===Kp.sourceEvent.type)){void 0!==t&&t[0]===r[0]&&t[1]===r[1]||this.services.zoom.handleDomainChange(r,{dispatchEvent:!1});var i=void 0;"start"===Kp.type?i=et.ZoomBar.SELECTION_START:"brush"===Kp.type?i=et.ZoomBar.SELECTION_IN_PROGRESS:"end"===Kp.type&&(i=et.ZoomBar.SELECTION_END,this.services.events.dispatchEvent(et.ZoomDomain.CHANGE,{newDomain:r})),this.services.events.dispatchEvent(i,{selection:n,newDomain:r})}},e.prototype.updateBrushHandle=function(t,e,n){var r=this,i=yt.handleWidth,o=od.getProperty(this.getOptions(),"zoomBar",L.TOP,"type"),a=yt.height[o],s=-i/2,u=yt.handleBarWidth,c=o===D.GRAPH_VIEW?yt.handleBarHeight:6,l=-u/2,h=(a-c)/2;t.select(this.brushSelector).selectAll("rect.handle").data([{type:"w"},{type:"e"}]).attr("x",(function(t){return"w"===t.type?Math.max(e[0]+s,r.maxSelectionRange[0]):"e"===t.type?Math.min(e[1]+s,r.maxSelectionRange[1]-i):void 0})).attr("y",0).attr("width",i).attr("height",a).attr("cursor","ew-resize").style("display",null);var f=t.select(this.brushSelector).selectAll("rect.handle-bar").data([{type:"w"},{type:"e"}]);f.enter().append("rect").attr("class",(function(t){return"handle-bar handle-bar--"+t.type})),f.attr("x",(function(t){return"w"===t.type?Math.max(e[0]+l,r.maxSelectionRange[0]-s+l):"e"===t.type?Math.min(e[1]+l,r.maxSelectionRange[1]+s+l):void 0})).attr("y",h).attr("width",u).attr("height",c).attr("cursor","ew-resize"),o===D.SLIDER_VIEW&&this.updateSliderSelectedArea(e),this.updateClipPath(t,this.clipId,e[0],0,e[1]-e[0],a)},e.prototype.updateSliderSelectedArea=function(t){var e=od.getProperty(this.getOptions(),"zoomBar",L.TOP,"type"),n=yt.height[e],r=(VO.getSVGElementSize(this.parent,{useAttrs:!0}).width,this.model.get("axesMargins"));r&&r.left&&r.left;var i=this.getContainerSVG(),o=i.select("svg.zoom-container");VO.appendOrSelect(o,"rect.zoom-slider-selected-area").attr("x",t[0]).attr("y",n/2-1).attr("width",t[1]-t[0]).attr("height",2)},e.prototype.renderZoomBarArea=function(t,e,n,r){var i=this.services.cartesianScales,o=i.getMainXAxisPosition(),a=i.getMainYAxisPosition(),s=i.getMainXScaleType(),u=i.getMainYScaleType(),c=function(t,e,n){return function(r,o){return i.getValueFromScale(t,e,n,r,o)}},l=c(this.xScale,s,o),h=c(this.yScale,u,a),f=od.getProperty(this.getOptions(),"zoomBar",L.TOP,"type"),p=yt.height[f],d=iC().x((function(t,e){return l(t,e)})).y0(p).y1((function(t,e){return p-h(t,e)})),v=VO.appendOrSelect(t,e).datum(n).attr("d",d);r&&v.attr("clip-path","url(#"+r+")")},e.prototype.updateClipPath=function(t,e,n,r,i,o){var a=VO.appendOrSelect(t,"clipPath").attr("id",e);VO.appendOrSelect(a,"rect").attr("x",n).attr("y",r).attr("width",i).attr("height",o)},e.prototype.compensateDataForDefaultDomain=function(t,e){if(t&&!(t.length<2)){var n=od.clone(t),r=this.services.cartesianScales.getDomainIdentifier(),i=this.services.cartesianScales.getRangeIdentifier();if(Number(e[0])<Number(n[0][r])){var o={};o[r]=e[0],o[i]=0,n.unshift(o)}if(Number(e[1])>Number(n[n.length-1][r])){o={};o[r]=e[1],o[i]=0,n.push(o)}return n}},e.prototype.renderZoomBarBaseline=function(t,e,n,r){void 0===r&&(r=!1);var i=od.getProperty(this.model.getOptions(),"zoomBar",L.TOP,"type"),o=yt.height[i],a=rC()([[e,o],[n,o]]);VO.appendOrSelect(t,"path.zoom-bg-baseline").attr("d",a).classed("zoom-bg-baseline-skeleton",r)},e.prototype.renderSkeleton=function(t,e,n){this.renderZoomBarArea(t,"path.zoom-graph-area-unselected",[],null),this.renderZoomBarArea(t,"path.zoom-graph-area",[],this.clipId),this.brush.on("start brush end",null),VO.appendOrSelect(this.getContainerSVG(),this.brushSelector).html(null);var r=od.getProperty(this.getOptions(),"zoomBar",L.TOP,"type");r===D.GRAPH_VIEW&&this.renderZoomBarBaseline(t,e,n,!0)},e.prototype.destroy=function(){this.brush.on("start brush end",null),this.services.events.removeEventListener(et.ZoomBar.UPDATE,this.render.bind(this))},e}(FS),iR=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},oR=function(){function t(t,e){this.services={domUtils:VO,events:GO,gradientUtils:Ww,transitions:zw,canvasZoom:zS},this.model=new q_(this.services)}return t.prototype.init=function(t,e){var n=this;this.model.set({holder:t},{skipUpdate:!0}),Object.keys(this.services).forEach((function(t){var e=n.services[t];n.services[t]=new e(n.model,n.services)})),this.services.events.addEventListener(et.Model.UPDATE,(function(t){var e=!!od.getProperty(t,"detail","animate");n.update(e)})),this.model.setData(e.data),this.services.events.addEventListener(et.Chart.RESIZE,(function(){n.update(!1)})),this.components=this.getComponents(),this.update()},t.prototype.getComponents=function(){return console.error("getComponents() method is not implemented"),null},t.prototype.update=function(t){var e=this;if(void 0===t&&(t=!0),this.components){Object.keys(this.services).forEach((function(t){var n=e.services[t];n.update()})),this.components.forEach((function(e){return e.render(t)}));var n=this.services.transitions.getPendingTransitions(),r=Object.keys(n).map((function(t){var e=n[t];return e.end().catch((function(t){return t}))}));Promise.all(r).then((function(){return e.services.events.dispatchEvent(et.Chart.RENDER_FINISHED)}))}},t.prototype.destroy=function(){this.components.forEach((function(t){return t.destroy()})),this.services.domUtils.getHolder().remove(),this.model.set({destroyed:!0},{skipUpdate:!0})},t.prototype.getChartComponents=function(t){var e={id:"title",components:[new NM(this.model,this.services)],growth:{x:U.PREFERRED,y:U.FIXED}},n={id:"legend",components:[new qS(this.model,this.services)],growth:{x:U.PREFERRED,y:U.PREFERRED}},r=od.getProperty(this.model.getOptions(),"canvasZoom","enabled");r&&!0===r&&t.push(new YM(this.model,this.services));var i={id:"graph-frame",components:t,growth:{x:U.STRETCH,y:U.FIXED}},o=!1!==this.model.getOptions().legend.enabled,a=G.COLUMN;if(o){var s=od.getProperty(this.model.getOptions(),"legend","position");"left"===s?(a=G.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=B.VERTICAL)):"right"===s?(a=G.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=B.VERTICAL)):"bottom"===s&&(a=G.COLUMN_REVERSE)}var u={id:"spacer",components:[new BL(this.model,this.services)],growth:{x:U.PREFERRED,y:U.FIXED}},c={id:"full-frame",components:[new UL(this.model,this.services,iR(o?[n]:[],o?[u]:[],[i]),{direction:a})],growth:{x:U.STRETCH,y:U.FIXED}},l=[];if(this.model.getOptions().title){l.push(e);var h={id:"spacer",components:[new BL(this.model,this.services)],growth:{x:U.PREFERRED,y:U.FIXED}};l.push(h)}return l.push(c),[new GM(this.model,this.services),new UL(this.model,this.services,l,{direction:G.COLUMN})]},t}(),aR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sR=function(t){function e(e){return t.call(this,e)||this}return aR(e,t),e.prototype.setData=function(e){var n;if(e&&(n=t.prototype.setData.call(this,e),od.getProperty(this.getOptions(),"zoomBar",L.TOP,"enabled"))){var r=od.getProperty(this.getOptions(),"zoomBar",L.TOP,"data");this.setZoomBarData(r)}return n},e.prototype.setZoomBarData=function(t){var e=t?this.sanitize(od.clone(t)):this.getDisplayData(),n=e,r=this.services.cartesianScales;if(e&&r.domainAxisPosition&&r.rangeAxisPosition){var i=r.getDomainIdentifier(),o=r.getRangeIdentifier(),a=e.map((function(t){return t[i].getTime()}));a=od.removeArrayDuplicates(a).sort(),n=a.map((function(t){var n=0,r={};return e.forEach((function(e){e[i].getTime()===t&&(n+=e[o])})),r[i]=new Date(t),r[o]=n,r}))}this.set({zoomBarData:n})},e.prototype.getZoomBarData=function(){return this.get("zoomBarData")},e.prototype.sanitizeDateValues=function(t){var e=this.getOptions();if(!e.axes)return t;var n=[];return Object.keys(L).forEach((function(t){var r=L[t],i=e.axes[r];if(i&&i.scaleType===N.TIME){var o=i.mapsTo;null===o&&void 0===o||n.push(o)}})),n.length>0&&t.forEach((function(t){n.forEach((function(e){null===od.getProperty(t,e,"getTime")&&(t[e]=new Date(t[e]))}))})),t},e.prototype.sanitize=function(e){return e=t.prototype.sanitize.call(this,e),e=this.sanitizeDateValues(e),e},e}(q_),uR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cR=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},lR=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.services=Object.assign(r.services,{cartesianScales:PE,curves:BS,zoom:US}),r.model=new sR(r.services),r}return uR(e,t),e.prototype.getAxisChartComponents=function(t,e){var n=this.model.getOptions(),r=od.getProperty(n,"zoomBar",L.TOP,"enabled"),i=od.getProperty(n,"toolbar","enabled");this.services.cartesianScales.determineAxisDuality(),this.services.cartesianScales.findDomainAndRangeAxes(),this.services.cartesianScales.determineOrientation();var o=this.services.cartesianScales.getMainXAxisPosition(),a=od.getProperty(n,"axes",o,"scaleType"),s=r&&o===L.BOTTOM&&a===N.TIME,u=this.services.zoom.isZoomBarLocked(L.TOP),c=!!this.model.getOptions().title,l={id:"title",components:[new NM(this.model,this.services)],growth:{x:U.STRETCH,y:U.FIXED}},h={id:"toolbar",components:[new JD(this.model,this.services)],growth:{x:U.PREFERRED,y:U.FIXED}},f={id:"header",components:[new UL(this.model,this.services,cR([l],i?[h]:[]),{direction:G.ROW})],growth:{x:U.PREFERRED,y:U.FIXED}},p={id:"legend",components:[new qS(this.model,this.services)],growth:{x:U.PREFERRED,y:U.PREFERRED}};s&&!u&&t.push(new WM(this.model,this.services),new GD(this.model,this.services)),t.push(new RM(this.model,this.services));var d={id:"graph-frame",components:t,growth:{x:U.STRETCH,y:U.STRETCH}},v=!1!==od.getProperty(e,"legend","enabled")&&!1!==this.model.getOptions().legend.enabled,g=G.COLUMN;if(v){var m=od.getProperty(this.model.getOptions(),"legend","position");m===j.LEFT?(g=G.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=B.VERTICAL)):m===j.RIGHT?(g=G.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=B.VERTICAL)):m===j.BOTTOM&&(g=G.COLUMN_REVERSE)}var y={id:"spacer",components:[new BL(this.model,this.services)],growth:{x:U.PREFERRED,y:U.FIXED}},_={id:"full-frame",components:[new UL(this.model,this.services,cR(v?[p]:[],v?[y]:[],[d]),{direction:g})],growth:{x:U.STRETCH,y:U.FIXED}},b={id:"zoom-bar",components:[new rR(this.model,this.services)],growth:{x:U.PREFERRED,y:U.FIXED}},O=[];if(c||i){O.push(f);var x={id:"spacer",components:[new BL(this.model,this.services,i?{size:15}:void 0)],growth:{x:U.PREFERRED,y:U.FIXED}};O.push(x)}return s&&O.push(b),O.push(_),[new zM(this.model,this.services),new UL(this.model,this.services,O,{direction:G.COLUMN})]},e}(oR),hR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fR=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(od.mergeDefaultChartOptions(od.clone(Ud.areaChart),n.options)),r.init(e,n),r}return hR(e,t),e.prototype.getComponents=function(){var t=[new uD(this.model,this.services),new HD(this.model,this.services),new XD(this.model,this.services),new TC(this.model,this.services),new aC(this.model,this.services),new bC(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0}),new JC(this.model,this.services,{skeleton:z.GRID})],e=this.getAxisChartComponents(t);return e},e}(lR),pR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dR=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(od.mergeDefaultChartOptions(Ud.stackedAreaChart,n.options)),r.init(e,n),r}return pR(e,t),e.prototype.getComponents=function(){var t=[new uD(this.model,this.services),new HD(this.model,this.services),new $D(this.model,this.services),new uC(this.model,this.services),new TC(this.model,this.services,{stacked:!0}),new PC(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0,stacked:!0}),new JC(this.model,this.services,{skeleton:z.GRID})],e=this.getAxisChartComponents(t);return e},e}(lR),vR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gR=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(od.mergeDefaultChartOptions(Ud.simpleBarChart,n.options)),r.init(e,n),r}return vR(e,t),e.prototype.getComponents=function(){var t=[new uD(this.model,this.services),new HD(this.model,this.services),new fC(this.model,this.services),new eR(this.model,this.services),new JC(this.model,this.services,{skeleton:z.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(lR),mR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yR=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(od.mergeDefaultChartOptions(Ud.groupedBarChart,n.options)),r.init(e,n),r}return mR(e,t),e.prototype.getComponents=function(){var t=[new uD(this.model,this.services),new HD(this.model,this.services),new dC(this.model,this.services),new eR(this.model,this.services),new JC(this.model,this.services,{skeleton:z.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(lR),_R=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bR=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(od.mergeDefaultChartOptions(Ud.stackedBarChart,n.options)),r.init(e,n),r}return _R(e,t),e.prototype.getComponents=function(){var t=[new uD(this.model,this.services),new HD(this.model,this.services),new $D(this.model,this.services),new gC(this.model,this.services),new JC(this.model,this.services,{skeleton:z.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(lR),OR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xR=function(t){function e(e){return t.call(this,e)||this}return OR(e,t),e.prototype.getBoxQuartiles=function(t){return{q_25:fv(t,.25),q_50:fv(t,.5),q_75:fv(t,.75)}},e.prototype.getBoxplotData=function(){for(var t=this.getOptions(),e=t.data.groupMapsTo,n=this.getGroupedData(),r=[],i=function(t,n){for(var i,a=o.services.cartesianScales.getRangeIdentifier(),s=n.map((function(t){return t[a]})).sort(Kd),u=(i={},i[e]=t,i.counts=s,i.quartiles=o.getBoxQuartiles(s),i.outliers=null,i.whiskers=null,i),c=u.quartiles.q_25,l=u.quartiles.q_75,h=1.5*(l-c),f=c-h,p=l+h,d=[],v=[],g=0,m=s;g<m.length;g++){var y=m[g];y<f?d.push(y):y>p?d.push(y):v.push(y)}u.outliers=d;var _=dv(v),b=pv(v);u.whiskers={min:_||dv([u.quartiles.q_25,u.quartiles.q_50,u.quartiles.q_75]),max:b||pv([u.quartiles.q_25,u.quartiles.q_50,u.quartiles.q_75])},r.push(u)},o=this,a=0,s=n;a<s.length;a++){var u=s[a],c=u.name,l=u.data;i(c,l)}return r},e.prototype.setColorClassNames=function(){var t=1,e=od.getProperty(this.getOptions(),"color","pairing"),n=od.getProperty(e,"option"),r=st.pairingOptions;n=n<=r[t+"-color"]?n:1;var i=this.allDataGroups.map((function(e,r){return t+"-"+n+"-1"}));this.colorClassNames=Ov().range(i).domain(this.allDataGroups)},e}(sR),wR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ER=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new xR(r.services),r.model.setOptions(od.mergeDefaultChartOptions(Ud.boxplotChart,n.options)),r.init(e,n),r}return wR(e,t),e.prototype.getComponents=function(){var t=[new uD(this.model,this.services),new HD(this.model,this.services),new yC(this.model,this.services),new eR(this.model,this.services),new JC(this.model,this.services,{skeleton:z.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t,{legend:{enabled:!1}});return e},e}(lR),SR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),TR=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(od.mergeDefaultChartOptions(Ud.bubbleChart,n.options)),r.init(e,n),r}return SR(e,t),e.prototype.getComponents=function(){var t=[new uD(this.model,this.services),new HD(this.model,this.services),new XD(this.model,this.services),new xC(this.model,this.services),new JC(this.model,this.services,{skeleton:z.GRID})],e=this.getAxisChartComponents(t);return e},e}(lR),MR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),CR=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(od.mergeDefaultChartOptions(Ud.bulletChart,n.options)),r.init(e,n),r}return MR(e,t),e.prototype.getComponents=function(){var t=[new uD(this.model,this.services),new HD(this.model,this.services),new EC(this.model,this.services),new JC(this.model,this.services,{skeleton:z.GRID})],e=this.getAxisChartComponents(t);return e},e}(lR),AR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),PR=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(od.mergeDefaultChartOptions(Ud.lineChart,n.options)),r.init(e,n),r}return AR(e,t),e.prototype.getComponents=function(){var t=[new uD(this.model,this.services),new HD(this.model,this.services),new XD(this.model,this.services),new TC(this.model,this.services),new bC(this.model,this.services,{handleThresholds:!0}),new eA(this.model,this.services)],e=this.getAxisChartComponents(t);return e},e}(lR),kR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),LR=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(od.mergeDefaultChartOptions(Ud.lollipopChart,n.options)),r.init(e,n),r}return kR(e,t),e.prototype.getComponents=function(){var t=[new uD(this.model,this.services),new HD(this.model,this.services),new XD(this.model,this.services),new CC(this.model,this.services),new bC(this.model,this.services),new JC(this.model,this.services,{skeleton:z.GRID})],e=this.getAxisChartComponents(t);return e},e}(lR),DR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),RR=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(od.mergeDefaultChartOptions(Ud.scatterChart,n.options)),r.init(e,n),r}return DR(e,t),e.prototype.getComponents=function(){var t=[new uD(this.model,this.services),new HD(this.model,this.services),new XD(this.model,this.services),new bC(this.model,this.services),new JC(this.model,this.services,{skeleton:z.GRID})],e=this.getAxisChartComponents(t);return e},e}(lR),IR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),NR=function(t){function e(e){return t.call(this,e)||this}return IR(e,t),e.prototype.getTabularData=function(e){var n=t.prototype.getTabularData.call(this,e);return e!==n&&n.forEach((function(t){t.key&&t.key!==t.group&&(t.group=t.key)})),n},e.prototype.sanitize=function(t){var e=this.getTabularData(t);return e.sort((function(t,e){return e.value-t.value}))},e}(q_),jR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),VR=function(t){function e(e,n,r){void 0===r&&(r=!1);var i=t.call(this,e,n)||this;return i.model=new NR(i.services),r?i:(i.model.setOptions(od.mergeDefaultChartOptions(Ud.pieChart,n.options)),i.init(e,n),i)}return jR(e,t),e.prototype.getComponents=function(){var t=[new FC(this.model,this.services),new JC(this.model,this.services,{skeleton:z.PIE})],e=this.getChartComponents(t);return e},e}(oR),BR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),GR=function(t){function e(e,n){var r=t.call(this,e,n,!0)||this;return r.model.setOptions(od.mergeDefaultChartOptions(Ud.donutChart,n.options)),r.init(e,n),r}return BR(e,t),e.prototype.getComponents=function(){var t=[new KC(this.model,this.services),new JC(this.model,this.services,{skeleton:z.DONUT})],e=this.getChartComponents(t);return e},e}(VR),UR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),HR=function(t){function e(e){return t.call(this,e)||this}return UR(e,t),e.prototype.generateDataLabels=function(t){var e={};return e[t.label]=ct.items.status.ACTIVE,e},e.prototype.getDisplayData=function(){return this.get("data")?this.get("data")[0]:null},e.prototype.getFillColor=function(e){var n=this.getOptions(),r=od.getProperty(n,"color","scale"),i=this.getStatus();return r||!i?t.prototype.getFillColor.call(this,e):null},e.prototype.getStatus=function(){var t=this.getOptions(),e=this.getDisplayData().value,n=e>100?100:e,r=od.getProperty(t,"meter","status","ranges");if(r){var i=r.filter((function(t){return t.range[0]<=n&&n<=t.range[1]}));if(i.length>0)return i[0].status}return null},e}(q_),zR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),FR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="meter",e}return zR(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this,r=this.getContainerSVG(),i=this.getOptions(),o=this.model.getDisplayData(),s=this.model.getStatus(),u=VO.getSVGElementSize(this.parent,{useAttrs:!0}).width,c=i.data.groupMapsTo,l=sm().domain([0,100]).range([0,u]);VO.appendOrSelect(r,"rect.container").attr("x",0).attr("y",0).attr("width",u).attr("height",od.getProperty(i,"meter","height"));var h=o.value>=100,f=r.selectAll("rect.value").data([o]),p=null==s||n.model.isUserProvidedColorScaleValid()?"value":"value status--"+s;f.enter().append("rect").classed("value",!0).merge(f).attr("x",0).attr("y",0).attr("height",od.getProperty(i,"meter","height")).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t[c],originalClassName:p})})).transition(this.services.transitions.getTransition("meter-bar-update",t)).attr("width",(function(t){return l(h?100:t.value)})).style("fill",(function(t){return n.model.getFillColor(t[c])})).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","value").attr("aria-label",(function(t){return t.value}));var d=od.getProperty(i,"meter","peak"),v=null!==d&&d<o.value?o.value:d,g=null===v||h?[]:[v],m=r.selectAll("line.peak").data(g);m.enter().append("line").classed("peak",!0).merge(m).attr("y1",0).attr("y2",od.getProperty(i,"meter","height")).transition(this.services.transitions.getTransition("peak-line-update",t)).attr("x1",(function(t){return l(t)})).attr("x2",(function(t){return l(t)})).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","peak").attr("aria-label",(function(t){return t})),m.exit().remove(),this.services.domUtils.setSVGMaxHeight()},e}(FS),WR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qR=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new HR(r.services),r.model.setOptions(od.merge(od.clone(Ud.meterChart),n.options)),r.init(e,n),r}return WR(e,t),e.prototype.getComponents=function(){var t={id:"meter-graph",components:[new FR(this.model,this.services)],growth:{x:U.STRETCH,y:U.FIXED}},e={id:"title",components:[new VM(this.model,this.services)],growth:{x:U.PREFERRED,y:U.FIXED}},n={id:"spacer",components:[new BL(this.model,this.services,{size:8})],growth:{x:U.PREFERRED,y:U.FIXED}},r=[new UL(this.model,this.services,[e,n,t],{direction:G.COLUMN})],i=this.getChartComponents(r);return i},e}(oR),YR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ZR=function(t){function e(e,n,r){void 0===r&&(r=!1);var i=t.call(this,e,n)||this;return r?i:(i.model.setOptions(od.mergeDefaultChartOptions(Ud.radarChart,n.options)),i.init(e,n),i)}return YR(e,t),e.prototype.getComponents=function(){var t=[new cL(this.model,this.services)],e=this.getChartComponents(t);return e},e}(oR),XR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),KR=function(t){function e(e){return t.call(this,e)||this}return XR(e,t),e.prototype.getDataGroups=function(){return t.prototype.getDataGroups.call(this).filter((function(t){return"delta"!==t.name}))},e}(q_),$R=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),QR=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new KR(r.services),r.model.setOptions(od.mergeDefaultChartOptions(Ud.gaugeChart,n.options)),r.init(e,n),r}return $R(e,t),e.prototype.getComponents=function(){var t=[new ZC(this.model,this.services)],e=this.getChartComponents(t);return e},e}(oR),JR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tI=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},eI=(qD={},qD[K.LINE]=[TC,bC],qD[K.SCATTER]=[bC],qD[K.AREA]=[aC,TC,bC],qD[K.STACKED_AREA]=[uC,TC,PC,$D],qD[K.SIMPLE_BAR]=[fC],qD[K.GROUPED_BAR]=[dC,eR],qD[K.STACKED_BAR]=[gC,$D],qD),nI=function(t){function e(e,n){var r=t.call(this,e,n)||this,i=od.mergeDefaultChartOptions(Ud.comboChart,n.options);return n.options.comboChartTypes||(console.error("No comboChartTypes defined for the Combo Chart!"),i.comboChartTypes=[{type:K.LINE,correspondingDatasets:[]}]),r.model.setOptions(i),r.init(e,n),r}return JR(e,t),e.prototype.getGraphComponents=function(){var t=this,e=this.model.getOptions().comboChartTypes,n=0,r=e.map((function(e){var r,i,o=e.type;return"string"===typeof e.type?Object.keys(eI).includes(e.type)?(r=od.merge({},Ud[od.camelCase(e.type)+"Chart"],t.model.getOptions(),e.options),e.type===K.STACKED_AREA&&(i=!0),eI[e.type].map((function(o,a){return new o(t.model,t.services,{groups:e.correspondingDatasets,id:n++,options:r,stacked:i})}))):(console.error('Invalid chart type "'+e.type+'" specified for combo chart. Please refer to the ComboChart tutorial for more guidance.'),null):(r=od.merge({},t.model.getOptions(),e.options),new o(t.model,t.services,{groups:e.correspondingDatasets,id:n++,options:r}))})).filter((function(t){return null!==t}));return od.flatten(r)},e.prototype.getComponents=function(){var t=this.model.getOptions().comboChartTypes,e=t.some((function(t){return t.type===K.STACKED_BAR||t.type===K.STACKED_AREA})),n=tI([new uD(this.model,this.services),new HD(this.model,this.services),new JC(this.model,this.services,{skeleton:z.GRID})],e?[]:[new XD(this.model,this.services)],this.getGraphComponents()),r=this.getAxisChartComponents(n);return r},e}(lR),rI=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),iI=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(od.mergeDefaultChartOptions(Ud.treemapChart,n.options)),r.init(e,n),r}return rI(e,t),e.prototype.getComponents=function(){var t=[new Kk(this.model,this.services)],e=this.getChartComponents(t);return e},e}(oR),oI=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),aI=function(){return aI=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},aI.apply(this,arguments)},sI=function(t){function e(e){var n=t.call(this,e)||this;return n.parentNode=!1,n.set({depth:2},{skipUpdate:!0}),n}return oI(e,t),e.prototype.setData=function(e){t.prototype.setData.call(this,e),this.setDataGroups(),1===e.length&&(this.parentNode=!0),this.setZoom()},e.prototype.setOptions=function(t){var e=this.getOptions(),n=od.merge({},t,this.getZoomOptions(t));od.updateLegendAdditionalItems(e,n);var r=this.getHierarchyLevel(),i=od.getProperty(e,"circlePack","hierarchyLevel");this.set({options:od.merge(e,n),depth:i&&i<4?i:r})},e.prototype.getZoomOptions=function(t){if(!this.getDisplayData())return{};var e=this.getDisplayData(),n=t||this.getOptions(),r=1===e.length&&od.getProperty(e,0,"children")?od.getProperty(e,0,"children"):e,i=this.getHierarchyLevel();return r.some((function(t){if(t.children&&t.children.some((function(t){return t.children})))return i=3,!1})),!0===od.getProperty(n,"canvasZoom","enabled")&&i>2?{legend:{additionalItems:[{type:J.ZOOM,name:"Click to zoom"}]}}:null},e.prototype.setZoom=function(t){this.setOptions(this.getZoomOptions(t))},e.prototype.updateHierarchyLevel=function(t){this.set({depth:t})},e.prototype.getHierarchyLevel=function(){return this.get("depth")},e.prototype.hasParentNode=function(){return this.parentNode},e.prototype.setDataGroups=function(){var t=this,e=this.getData(),n=this.getOptions(),r=n.data.groupMapsTo,i=e.map((function(e){var n=e[r];return t.setChildrenDataGroup(e,n)}));this.set({data:i},{skipUpdate:!0})},e.prototype.setChildrenDataGroup=function(t,e){var n=this;return t.children?aI(aI({},t),{dataGroupName:e,children:t.children.map((function(t,r){return n.setChildrenDataGroup(t,e)}))}):aI(aI({},t),{dataGroupName:e})},e}(q_),uI=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cI=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new sI(r.services),r.model.setOptions(od.mergeDefaultChartOptions(Ud.circlePackChart,n.options)),r.init(e,n),r}return uI(e,t),e.prototype.getComponents=function(){var t=[new DL(this.model,this.services)],e=this.getChartComponents(t);return e},e}(oR),lI=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hI=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(od.mergeDefaultChartOptions(Ud.wordCloudChart,n.options)),r.init(e,n),r}return lI(e,t),e.prototype.getComponents=function(){var t=[new jL(this.model,this.services),new JC(this.model,this.services,{skeleton:z.PIE})],e=this.getChartComponents(t);return e},e}(oR),fI={name:"CcvBaseChart",data:function(){return{coreChart:null}},props:{data:{type:[Object,Array],required:!0},options:{type:Object,required:!0}},watch:{data:{handler:function(t){this.coreChart.model.setData(t)},deep:!0},options:{handler:function(t){this.coreChart.model.setOptions(t)},deep:!0}}},pI=fI;function dI(t,e,n,r,i,o,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:c}}var vI=dI(pI,YD,ZD,!1,null,null,null),gI=vI.exports,mI={name:"CcvAreaChart",extends:gI,mounted:function(){this.coreChart=new fR(this.$el,{data:this.data,options:this.options})}},yI=mI,_I=dI(yI,C,A,!1,null,null,null),bI=_I.exports,OI=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-area-chart"})},xI=[],wI={name:"CcvStackedAreaChart",extends:gI,mounted:function(){this.coreChart=new dR(this.$el,{data:this.data,options:this.options})}},EI=wI,SI=dI(EI,OI,xI,!1,null,null,null),TI=SI.exports,MI=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-simple-bar-chart"})},CI=[],AI={name:"CcvSimpleBarChart",extends:gI,mounted:function(){this.coreChart=new gR(this.$el,{data:this.data,options:this.options})}},PI=AI,kI=dI(PI,MI,CI,!1,null,null,null),LI=kI.exports,DI=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-grouped-bar-chart"})},RI=[],II={name:"CcvGroupedBarChart",extends:gI,mounted:function(){this.coreChart=new yR(this.$el,{data:this.data,options:this.options})}},NI=II,jI=dI(NI,DI,RI,!1,null,null,null),VI=jI.exports,BI=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-bar-chart"})},GI=[],UI={name:"CcvStackedBarChart",extends:gI,mounted:function(){this.coreChart=new bR(this.$el,{data:this.data,options:this.options})}},HI=UI,zI=dI(HI,BI,GI,!1,null,null,null),FI=zI.exports,WI=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-boxplot-chart"})},qI=[],YI={name:"CcvBoxplotChart",extends:gI,mounted:function(){this.coreChart=new ER(this.$el,{data:this.data,options:this.options})}},ZI=YI,XI=dI(ZI,WI,qI,!1,null,null,null),KI=XI.exports,$I=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-bubble-chart"})},QI=[],JI={name:"CcvBubbleChart",extends:gI,mounted:function(){this.coreChart=new TR(this.$el,{data:this.data,options:this.options})}},tN=JI,eN=dI(tN,$I,QI,!1,null,null,null),nN=eN.exports,rN=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-bullet-chart"})},iN=[],oN={name:"CcvBulletChart",extends:gI,mounted:function(){this.coreChart=new CR(this.$el,{data:this.data,options:this.options})}},aN=oN,sN=dI(aN,rN,iN,!1,null,null,null),uN=sN.exports,cN=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-donut-chart"})},lN=[],hN={name:"CcvDonutChart",extends:gI,mounted:function(){this.coreChart=new GR(this.$el,{data:this.data,options:this.options})}},fN=hN,pN=dI(fN,cN,lN,!1,null,null,null),dN=pN.exports,vN=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-gauge-chart"})},gN=[],mN={name:"CcvGaugeChart",extends:gI,mounted:function(){this.coreChart=new QR(this.$el,{data:this.data,options:this.options})}},yN=mN,_N=dI(yN,vN,gN,!1,null,null,null),bN=_N.exports,ON=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-line-chart"})},xN=[],wN={name:"CcvLineChart",extends:gI,mounted:function(){this.coreChart=new PR(this.$el,{data:this.data,options:this.options})}},EN=wN,SN=dI(EN,ON,xN,!1,null,null,null),TN=SN.exports,MN=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-lollipop-chart"})},CN=[],AN={name:"CcvLollipopChart",extends:gI,mounted:function(){this.coreChart=new LR(this.$el,{data:this.data,options:this.options})}},PN=AN,kN=dI(PN,MN,CN,!1,null,null,null),LN=kN.exports,DN=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-pie-chart"})},RN=[],IN={name:"CcvPieChart",extends:gI,mounted:function(){this.coreChart=new VR(this.$el,{data:this.data,options:this.options})}},NN=IN,jN=dI(NN,DN,RN,!1,null,null,null),VN=jN.exports,BN=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-scatter-chart"})},GN=[],UN={name:"CcvScatterChart",extends:gI,mounted:function(){this.coreChart=new RR(this.$el,{data:this.data,options:this.options})}},HN=UN,zN=dI(HN,BN,GN,!1,null,null,null),FN=zN.exports,WN=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-meter-chart"})},qN=[],YN={name:"CcvMeterChart",extends:gI,mounted:function(){this.coreChart=new qR(this.$el,{data:this.data,options:this.options})}},ZN=YN,XN=dI(ZN,WN,qN,!1,null,null,null),KN=XN.exports,$N=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-radar-chart"})},QN=[],JN={name:"CcvRadarChart",extends:gI,mounted:function(){this.coreChart=new ZR(this.$el,{data:this.data,options:this.options})}},tj=JN,ej=dI(tj,$N,QN,!1,null,null,null),nj=ej.exports,rj=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-combo-chart"})},ij=[],oj={name:"CcvComboChart",extends:gI,mounted:function(){this.coreChart=new nI(this.$el,{data:this.data,options:this.options})}},aj=oj,sj=dI(aj,rj,ij,!1,null,null,null),uj=sj.exports,cj=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-treemap-chart"})},lj=[],hj={name:"CcvTreemapChart",extends:gI,mounted:function(){this.coreChart=new iI(this.$el,{data:this.data,options:this.options})}},fj=hj,pj=dI(fj,cj,lj,!1,null,null,null),dj=pj.exports,vj=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-circle-pack-chart"})},gj=[],mj={name:"CcvCirclePackChart",extends:gI,mounted:function(){this.coreChart=new cI(this.$el,{data:this.data,options:this.options})}},yj=mj,_j=dI(yj,vj,gj,!1,null,null,null),bj=_j.exports,Oj=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-wordcloud-chart"})},xj=[],wj={name:"CcvWordCloudChart",extends:gI,mounted:function(){this.coreChart=new hI(this.$el,{data:this.data,options:this.options})}},Ej=wj,Sj=dI(Ej,Oj,xj,!1,null,null,null),Tj=Sj.exports,Mj=[bI,TI,LI,VI,FI,KI,nN,uN,dN,bN,TN,LN,VN,FN,KN,nj,uj,dj,bj,Tj],Cj={install:function(t,e){if("undefined"===typeof e){var n=!0,r=!1,i=void 0;try{for(var o,a=Mj[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;t.component(s.name,s)}}catch(d){r=!0,i=d}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}}else{if(!(e instanceof Array))throw new TypeError("options must be an array");var u=!0,c=!1,l=void 0;try{for(var h,f=Mj[Symbol.iterator]();!(u=(h=f.next()).done);u=!0){var p=h.value;e.includes(p.name)&&t.component(p.name,p)}}catch(d){c=!0,l=d}finally{try{u||null==f.return||f.return()}finally{if(c)throw l}}}}};n.d(e,"CcvAreaChart",(function(){return bI})),n.d(e,"CcvStackedAreaChart",(function(){return TI})),n.d(e,"CcvSimpleBarChart",(function(){return LI})),n.d(e,"CcvGroupedBarChart",(function(){return VI})),n.d(e,"CcvStackedBarChart",(function(){return FI})),n.d(e,"CcvBoxplotChart",(function(){return KI})),n.d(e,"CcvBubbleChart",(function(){return nN})),n.d(e,"CcvBulletChart",(function(){return uN})),n.d(e,"CcvDonutChart",(function(){return dN})),n.d(e,"CcvGaugeChart",(function(){return bN})),n.d(e,"CcvLineChart",(function(){return TN})),n.d(e,"CcvLollipopChart",(function(){return LN})),n.d(e,"CcvPieChart",(function(){return VN})),n.d(e,"CcvScatterChart",(function(){return FN})),n.d(e,"CcvMeterChart",(function(){return KN})),n.d(e,"CcvRadarChart",(function(){return nj})),n.d(e,"CcvComboChart",(function(){return uj})),n.d(e,"CcvTreemapChart",(function(){return dj})),n.d(e,"CcvCirclePackChart",(function(){return bj})),n.d(e,"CcvWordCloudChart",(function(){return Tj}));e["default"]=Cj},"1d8a":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},"1f5e":function(t,e,n){var r=n("378c"),i=n("b495"),o=n("9a0f"),a=function(t){return function(e,n,a){var s,u=r(e),c=i(u.length),l=o(a,c);if(t&&n!=n){while(c>l)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},2117:function(t,e,n){var r=n("8697");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},2402:function(t,e){e.f=Object.getOwnPropertySymbols},"2a60":function(t,e,n){var r=n("81ef").dispatch,i=Math.PI/180,o=64,a=2048;function s(t){return t.text}function u(){return"serif"}function c(){return"normal"}function l(t){return Math.sqrt(t.value)}function h(){return 30*(~~(6*Math.random())-3)}function f(){return 1}function p(t,e,n,r){if(!e.sprite){var s=t.context,u=t.ratio;s.clearRect(0,0,(o<<5)/u,a/u);var c=0,l=0,h=0,f=n.length;--r;while(++r<f){e=n[r],s.save(),s.font=e.style+" "+e.weight+" "+~~((e.size+1)/u)+"px "+e.font;var p=s.measureText(e.text+"m").width*u,d=e.size<<1;if(e.rotate){var v=Math.sin(e.rotate*i),g=Math.cos(e.rotate*i),m=p*g,y=p*v,_=d*g,b=d*v;p=Math.max(Math.abs(m+b),Math.abs(m-b))+31>>5<<5,d=~~Math.max(Math.abs(y+_),Math.abs(y-_))}else p=p+31>>5<<5;if(d>h&&(h=d),c+p>=o<<5&&(c=0,l+=h,h=0),l+d>=a)break;s.translate((c+(p>>1))/u,(l+(d>>1))/u),e.rotate&&s.rotate(e.rotate*i),s.fillText(e.text,0,0),e.padding&&(s.lineWidth=2*e.padding,s.strokeText(e.text,0,0)),s.restore(),e.width=p,e.height=d,e.xoff=c,e.yoff=l,e.x1=p>>1,e.y1=d>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,c+=p}var O=s.getImageData(0,0,(o<<5)/u,a/u).data,x=[];while(--r>=0)if(e=n[r],e.hasText){p=e.width;for(var w=p>>5,E=(d=e.y1-e.y0,0);E<d*w;E++)x[E]=0;if(c=e.xoff,null==c)return;l=e.yoff;for(var S=0,T=-1,M=0;M<d;M++){for(E=0;E<p;E++){var C=w*M+(E>>5),A=O[(l+M)*(o<<5)+(c+E)<<2]?1<<31-E%32:0;x[C]|=A,S|=A}S?T=M:(e.y0++,d--,M--,l++)}e.y1=e.y0+T,e.sprite=x.slice(0,(e.y1-e.y0)*w)}}}function d(t,e,n){n>>=5;for(var r,i=t.sprite,o=t.width>>5,a=t.x-(o<<4),s=127&a,u=32-s,c=t.y1-t.y0,l=(t.y+t.y0)*n+(a>>5),h=0;h<c;h++){r=0;for(var f=0;f<=o;f++)if((r<<u|(f<o?(r=i[h*o+f])>>>s:0))&e[l+f])return!0;l+=n}return!1}function v(t,e){var n=t[0],r=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function g(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0<e[1].x&&t.y+t.y1>e[0].y&&t.y+t.y0<e[1].y}function m(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function y(t){var e=4,n=e*t[0]/t[1],r=0,i=0;return function(t){var o=t<0?-1:1;switch(Math.sqrt(1+4*o*t)-o&3){case 0:r+=n;break;case 1:i+=e;break;case 2:r-=n;break;default:i-=e;break}return[r,i]}}function _(t){var e=[],n=-1;while(++n<t)e[n]=0;return e}function b(){return document.createElement("canvas")}function O(t){return"function"===typeof t?t:function(){return t}}t.exports=function(){var t=[256,256],e=s,n=u,i=l,y=c,w=c,E=h,S=f,T=m,M=[],C=1/0,A=r("word","end"),P=null,k=Math.random,L={},D=b;function R(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=(o<<5)/e,t.height=a/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}function I(e,n,r){t[0],t[1];var i,o,a,s=n.x,u=n.y,c=Math.sqrt(t[0]*t[0]+t[1]*t[1]),l=T(t),h=k()<.5?1:-1,f=-h;while(i=l(f+=h)){if(o=~~i[0],a=~~i[1],Math.min(Math.abs(o),Math.abs(a))>=c)break;if(n.x=s+o,n.y=u+a,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1])&&(!r||!d(n,e,t[0]))&&(!r||g(n,r))){for(var p,v=n.sprite,m=n.width>>5,y=t[0]>>5,_=n.x-(m<<4),b=127&_,O=32-b,x=n.y1-n.y0,w=(n.y+n.y0)*y+(_>>5),E=0;E<x;E++){p=0;for(var S=0;S<=m;S++)e[w+S]|=p<<O|(S<m?(p=v[E*m+S])>>>b:0);w+=y}return delete n.sprite,!0}}return!1}return L.canvas=function(t){return arguments.length?(D=O(t),L):D},L.start=function(){var r=R(D()),o=_((t[0]>>5)*t[1]),a=null,s=M.length,u=-1,c=[],l=M.map((function(t,r){return t.text=e.call(this,t,r),t.font=n.call(this,t,r),t.style=y.call(this,t,r),t.weight=w.call(this,t,r),t.rotate=E.call(this,t,r),t.size=~~i.call(this,t,r),t.padding=S.call(this,t,r),t})).sort((function(t,e){return e.size-t.size}));return P&&clearInterval(P),P=setInterval(h,0),h(),L;function h(){var e=Date.now();while(Date.now()-e<C&&++u<s&&P){var n=l[u];n.x=t[0]*(k()+.5)>>1,n.y=t[1]*(k()+.5)>>1,p(r,n,l,u),n.hasText&&I(o,n,a)&&(c.push(n),A.call("word",L,n),a?v(a,n):a=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}u>=s&&(L.stop(),A.call("end",L,c,a))}},L.stop=function(){return P&&(clearInterval(P),P=null),L},L.timeInterval=function(t){return arguments.length?(C=null==t?1/0:t,L):C},L.words=function(t){return arguments.length?(M=t,L):M},L.size=function(e){return arguments.length?(t=[+e[0],+e[1]],L):t},L.font=function(t){return arguments.length?(n=O(t),L):n},L.fontStyle=function(t){return arguments.length?(y=O(t),L):y},L.fontWeight=function(t){return arguments.length?(w=O(t),L):w},L.rotate=function(t){return arguments.length?(E=O(t),L):E},L.text=function(t){return arguments.length?(e=O(t),L):e},L.spiral=function(t){return arguments.length?(T=x[t]||t,L):T},L.fontSize=function(t){return arguments.length?(i=O(t),L):i},L.padding=function(t){return arguments.length?(S=O(t),L):S},L.random=function(t){return arguments.length?(k=t,L):k},L.on=function(){var t=A.on.apply(A,arguments);return t===A?L:t},L};var x={archimedean:m,rectangular:y}},"2da1":function(t,e,n){"use strict";(function(t){var n=function(){if("undefined"!==typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}var n={size:{configurable:!0}};return n.size.get=function(){return this.__entries__.length},e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){var n=this;void 0===e&&(e=null);for(var r=0,i=n.__entries__;r<i.length;r+=1){var o=i[r];t.call(e,o[1],o[0])}},Object.defineProperties(e.prototype,n),e}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i=function(){return"undefined"!==typeof t&&t.Math===Math?t:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),o=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)}}(),a=2,s=function(t,e){var n=!1,r=!1,i=0;function s(){n&&(n=!1,t()),r&&c()}function u(){o(s)}function c(){var t=Date.now();if(n){if(t-i<a)return;r=!0}else n=!0,r=!1,setTimeout(u,e);i=t}return c},u=20,c=["top","right","bottom","left","width","height","size","weight"],l="undefined"!==typeof MutationObserver,h=function(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=s(this.refresh.bind(this),u)};h.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},h.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},h.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},h.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},h.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},h.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},h.prototype.onTransitionEnd_=function(t){var e=t.propertyName;void 0===e&&(e="");var n=c.some((function(t){return!!~e.indexOf(t)}));n&&this.refresh()},h.getInstance=function(){return this.instance_||(this.instance_=new h),this.instance_},h.instance_=null;var f=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n+=1){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},p=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||i},d=E(0,0,0,0);function v(t){return parseFloat(t)||0}function g(t){var e=[],n=arguments.length-1;while(n-- >0)e[n]=arguments[n+1];return e.reduce((function(e,n){var r=t["border-"+n+"-width"];return e+v(r)}),0)}function m(t){for(var e=["top","right","bottom","left"],n={},r=0,i=e;r<i.length;r+=1){var o=i[r],a=t["padding-"+o];n[o]=v(a)}return n}function y(t){var e=t.getBBox();return E(0,0,e.width,e.height)}function _(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return d;var r=p(t).getComputedStyle(t),i=m(r),o=i.left+i.right,a=i.top+i.bottom,s=v(r.width),u=v(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==e&&(s-=g(r,"left","right")+o),Math.round(u+a)!==n&&(u-=g(r,"top","bottom")+a)),!O(t)){var c=Math.round(s+o)-e,l=Math.round(u+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(l)&&(u-=l)}return E(i.left,i.top,s,u)}var b=function(){return"undefined"!==typeof SVGGraphicsElement?function(t){return t instanceof p(t).SVGGraphicsElement}:function(t){return t instanceof p(t).SVGElement&&"function"===typeof t.getBBox}}();function O(t){return t===p(t).document.documentElement}function x(t){return r?b(t)?y(t):_(t):d}function w(t){var e=t.x,n=t.y,r=t.width,i=t.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return f(a,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),a}function E(t,e,n,r){return{x:t,y:e,width:n,height:r}}var S=function(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=E(0,0,0,0),this.target=t};S.prototype.isActive=function(){var t=x(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},S.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t};var T=function(t,e){var n=w(e);f(this,{target:t,contentRect:n})},M=function(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r};M.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof p(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new S(t)),this.controller_.addObserver(this),this.controller_.refresh())}},M.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof p(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},M.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},M.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},M.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new T(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},M.prototype.clearActive=function(){this.activeObservations_.splice(0)},M.prototype.hasActive=function(){return this.activeObservations_.length>0};var C="undefined"!==typeof WeakMap?new WeakMap:new n,A=function(t){if(!(this instanceof A))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=h.getInstance(),n=new M(t,e,this);C.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){A.prototype[t]=function(){return(e=C.get(this))[t].apply(e,arguments);var e}}));var P=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:A}();e["a"]=P}).call(this,n("7d15"))},"2df4":function(t,e,n){"use strict";var r=n("6b1d"),i=n("2e3f"),o=n("0e39"),a=n("c1a2"),s=n("fa46"),u=n("5b12"),c=n("b8ba"),l=n("7d53"),h=n("0e93"),f=n("5bb7"),p=n("ff89"),d=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,g=l("iterator"),m="keys",y="values",_="entries",b=function(){return this};t.exports=function(t,e,n,l,p,O,x){i(n,e,l);var w,E,S,T=function(t){if(t===p&&k)return k;if(!v&&t in A)return A[t];switch(t){case m:return function(){return new n(this,t)};case y:return function(){return new n(this,t)};case _:return function(){return new n(this,t)}}return function(){return new n(this)}},M=e+" Iterator",C=!1,A=t.prototype,P=A[g]||A["@@iterator"]||p&&A[p],k=!v&&P||T(p),L="Array"==e&&A.entries||P;if(L&&(w=o(L.call(new t)),d!==Object.prototype&&w.next&&(h||o(w)===d||(a?a(w,d):"function"!=typeof w[g]&&u(w,g,b)),s(w,M,!0,!0),h&&(f[M]=b))),p==y&&P&&P.name!==y&&(C=!0,k=function(){return P.call(this)}),h&&!x||A[g]===k||u(A,g,k),f[e]=k,p)if(E={values:T(y),keys:O?k:T(m),entries:T(_)},x)for(S in E)!v&&!C&&S in A||c(A,S,E[S]);else r({target:e,proto:!0,forced:v||C},E);return E}},"2e3f":function(t,e,n){"use strict";var r=n("ff89").IteratorPrototype,i=n("82e8"),o=n("9618"),a=n("fa46"),s=n("5bb7"),u=function(){return this};t.exports=function(t,e,n){var c=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,c,!1,!0),s[c]=u,t}},"332c":function(t,e,n){var r=n("4cdd"),i=n("1d8a"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},3606:function(t,e,n){"use strict";function r(t){return function(e,n){var r=String(e),a=n||{},s=a.width,u=s&&t.matchPatterns[s]||t.matchPatterns[t.defaultMatchWidth],c=r.match(u);if(!c)return null;var l,h=c[0],f=s&&t.parsePatterns[s]||t.parsePatterns[t.defaultParseWidth];return l="[object Array]"===Object.prototype.toString.call(f)?o(f,(function(t){return t.test(r)})):i(f,(function(t){return t.test(r)})),l=t.valueCallback?t.valueCallback(l):l,l=a.valueCallback?a.valueCallback(l):l,{value:l,rest:r.slice(h.length)}}}function i(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function o(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},"378c":function(t,e,n){var r=n("83a6"),i=n("730c");t.exports=function(t){return r(i(t))}},"37d1":function(t,e,n){var r=n("730c");t.exports=function(t){return Object(r(t))}},"398c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("910f"));function i(t){return t&&t.__esModule?t:{default:t}}var o={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},a={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},s={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},u={date:(0,r.default)({formats:o,defaultWidth:"full"}),time:(0,r.default)({formats:a,defaultWidth:"full"}),dateTime:(0,r.default)({formats:s,defaultWidth:"full"})},c=u;e.default=c,t.exports=e.default},"39ba":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=u(n("b128")),i=u(n("398c")),o=u(n("5cac")),a=u(n("7b70")),s=u(n("c9c9"));function u(t){return t&&t.__esModule?t:{default:t}}var c={code:"en-US",formatDistance:r.default,formatLong:i.default,formatRelative:o.default,localize:a.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},l=c;e.default=l,t.exports=e.default},"3cec":function(t,e,n){var r=n("7d53"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"3e32":function(t,e,n){var r=n("7d53"),i=r("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,"/./"[t](e)}catch(r){}}return!1}},"3e34":function(t,e,n){var r=n("f498"),i=n("5b12");t.exports=function(t,e){try{i(r,t,e)}catch(n){r[t]=e}return e}},"3e36":function(t,e,n){var r=n("f498");t.exports=r},4141:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},"4cdd":function(t,e,n){var r=n("0e93"),i=n("c607");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"4cf0":function(t,e,n){"use strict";(function(t){var r=n("7f0d"),i=n("5711"),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o,u=s?r["a"].Buffer:void 0,c=u?u.isBuffer:void 0,l=c||i["a"];e["a"]=l}).call(this,n("7326")(t))},"4db4":function(t,e,n){var r=n("e7a0");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"4e41":function(t,e,n){var r=n("7d53");e.f=r},5268:function(t,e,n){"use strict";var r=n("3cec"),i=n("da06");t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},5428:function(t,e,n){var r=n("3e36"),i=n("f498"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},5711:function(t,e,n){"use strict";function r(){return!1}e["a"]=r},"5ae7":function(t,e,n){"use strict";function r(t){return function(e,n){var r=String(e),i=n||{},o=r.match(t.matchPattern);if(!o)return null;var a=o[0],s=r.match(t.parsePattern);if(!s)return null;var u=t.valueCallback?t.valueCallback(s[0]):s[0];return u=i.valueCallback?i.valueCallback(u):u,{value:u,rest:r.slice(a.length)}}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},"5b12":function(t,e,n){var r=n("d4cb"),i=n("abdf"),o=n("9618");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"5bb7":function(t,e){t.exports={}},"5cac":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function i(t,e,n,i){return r[t]}t.exports=e.default},"65d0":function(t,e,n){var r=n("c91c"),i=n("b17e"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"68b8":function(t,e,n){var r=n("6a89");r("iterator")},"6a61":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"6a86":function(t,e,n){var r=n("7526"),i=n("c6de"),o=n("7d53"),a=o("species");t.exports=function(t,e){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"6a89":function(t,e,n){var r=n("3e36"),i=n("f1a7"),o=n("4e41"),a=n("abdf").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},"6b1d":function(t,e,n){var r=n("f498"),i=n("185a").f,o=n("5b12"),a=n("b8ba"),s=n("3e34"),u=n("b634"),c=n("ebac");t.exports=function(t,e){var n,l,h,f,p,d,v=t.target,g=t.global,m=t.stat;if(l=g?r:m?r[v]||s(v,{}):(r[v]||{}).prototype,l)for(h in e){if(p=e[h],t.noTargetGet?(d=i(l,h),f=d&&d.value):f=l[h],n=c(g?h:v+(m?".":"#")+h,t.forced),!n&&void 0!==f){if(typeof p===typeof f)continue;u(p,f)}(t.sham||f&&f.sham)&&o(p,"sham",!0),a(l,h,p,t)}}},7297:function(t,e,n){var r=n("f498"),i=n("df6f"),o=r.WeakMap;t.exports="function"===typeof o&&/native code/.test(i(o))},"72df":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"730c":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},7326:function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},7526:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},"7b70":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("b489"));function i(t){return t&&t.__esModule?t:{default:t}}var o={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},a={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},s={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},u={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};function h(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"}var f={ordinalNumber:h,era:(0,r.default)({values:o,defaultWidth:"wide"}),quarter:(0,r.default)({values:a,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:(0,r.default)({values:s,defaultWidth:"wide"}),day:(0,r.default)({values:u,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:c,defaultWidth:"wide",formattingValues:l,defaultFormattingWidth:"wide"})},p=f;e.default=p,t.exports=e.default},"7c3f":function(t,e,n){var r=n("d4cb"),i=n("72df"),o=n("f2bf");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"7d15":function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},"7d53":function(t,e,n){var r=n("f498"),i=n("4cdd"),o=n("f1a7"),a=n("1d8a"),s=n("e7a0"),u=n("4db4"),c=i("wks"),l=r.Symbol,h=u?l:l&&l.withoutSetter||a;t.exports=function(t){return o(c,t)||(s&&o(l,t)?c[t]=l[t]:c[t]=h("Symbol."+t)),c[t]}},"7f0d":function(t,e,n){"use strict";var r=n("92ae"),i="object"==typeof self&&self&&self.Object===Object&&self,o=r["a"]||i||Function("return this")();e["a"]=o},"802e":function(t,e,n){var r=n("72df");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},"81ef":function(t,e,n){"use strict";n.r(e);var r=n("cf43");n.d(e,"dispatch",(function(){return r["a"]}))},"82e8":function(t,e,n){var r,i=n("157c"),o=n("b99b"),a=n("b17e"),s=n("d687"),u=n("9324"),c=n("f2bf"),l=n("332c"),h=">",f="<",p="prototype",d="script",v=l("IE_PROTO"),g=function(){},m=function(t){return f+d+h+t+f+"/"+d+h},y=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},_=function(){var t,e=c("iframe"),n="java"+d+":";return e.style.display="none",u.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(m("document.F=Object")),t.close(),t.F},b=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}b=r?y(r):_();var t=a.length;while(t--)delete b[p][a[t]];return b()};s[v]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(g[p]=i(t),n=new g,g[p]=null,n[v]=t):n=b(),void 0===e?n:o(n,e)}},"83a6":function(t,e,n){var r=n("72df"),i=n("6a61"),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},"868d":function(t,e,n){var r=n("d4cb"),i=n("abdf").f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/,u="name";!r||u in o||i(o,u,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(t){return""}}})},8697:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"8bb2":function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"8d0d":function(t,e,n){"use strict";var r=n("6b1d"),i=n("1f5e").includes,o=n("ed2b"),a=n("ce71"),s=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!s},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},"8d0f":function(t,e,n){"use strict";var r=n("6b1d"),i=n("d4cb"),o=n("f498"),a=n("f1a7"),s=n("7526"),u=n("abdf").f,c=n("b634"),l=o.Symbol;if(i&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var h={},f=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof f?new l(t):void 0===t?l():l(t);return""===t&&(h[e]=!0),e};c(f,l);var p=f.prototype=l.prototype;p.constructor=f;var d=p.toString,v="Symbol(test)"==String(l("test")),g=/^Symbol\((.*)\)[^)]+$/;u(p,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=d.call(t);if(a(h,t))return"";var n=v?e.slice(7,-1):e.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}},"8e5d":function(t,e,n){var r=n("7526"),i=n("6a61"),o=n("7d53"),a=o("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},"910f":function(t,e,n){"use strict";function r(t){return function(e){var n=e||{},r=n.width?String(n.width):t.defaultWidth,i=t.formats[r]||t.formats[t.defaultWidth];return i}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},"918c":function(t,e,n){var r=n("f498"),i=n("130d"),o=n("9531"),a=n("5b12"),s=n("7d53"),u=s("iterator"),c=s("toStringTag"),l=o.values;for(var h in i){var f=r[h],p=f&&f.prototype;if(p){if(p[u]!==l)try{a(p,u,l)}catch(v){p[u]=l}if(p[c]||a(p,c,h),i[h])for(var d in o)if(p[d]!==o[d])try{a(p,d,o[d])}catch(v){p[d]=o[d]}}}},"92ae":function(t,e,n){"use strict";(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e["a"]=n}).call(this,n("7d15"))},9324:function(t,e,n){var r=n("5428");t.exports=r("document","documentElement")},9531:function(t,e,n){"use strict";var r=n("378c"),i=n("ed2b"),o=n("5bb7"),a=n("cdcd"),s=n("2df4"),u="Array Iterator",c=a.set,l=a.getterFor(u);t.exports=s(Array,"Array",(function(t,e){c(this,{type:u,target:r(t),index:0,kind:e})}),(function(){var t=l(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},9618:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"9a0f":function(t,e,n){var r=n("8bb2"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"9eea":function(t,e,n){var r=n("8e5d");t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},a03e:function(t,e,n){var r=n("5428"),i=n("65d0"),o=n("2402"),a=n("157c");t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},abdf:function(t,e,n){var r=n("d4cb"),i=n("7c3f"),o=n("157c"),a=n("083f"),s=Object.defineProperty;e.f=r?s:function(t,e,n){if(o(t),e=a(e,!0),o(n),i)try{return s(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},b128:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function i(t,e,n){var i;return n=n||{},i="string"===typeof r[t]?r[t]:1===e?r[t].one:r[t].other.replace("{{count}}",e),n.addSuffix?n.comparison>0?"in "+i:i+" ago":i}t.exports=e.default},b17e:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},b489:function(t,e,n){"use strict";function r(t){return function(e,n){var r,i=n||{},o=i.context?String(i.context):"standalone";if("formatting"===o&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,s=i.width?String(i.width):a;r=t.formattingValues[s]||t.formattingValues[a]}else{var u=t.defaultWidth,c=i.width?String(i.width):t.defaultWidth;r=t.values[c]||t.values[u]}var l=t.argumentCallback?t.argumentCallback(e):e;return r[l]}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},b495:function(t,e,n){var r=n("8bb2"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},b634:function(t,e,n){var r=n("f1a7"),i=n("a03e"),o=n("185a"),a=n("abdf");t.exports=function(t,e){for(var n=i(e),s=a.f,u=o.f,c=0;c<n.length;c++){var l=n[c];r(t,l)||s(t,l,u(e,l))}}},b7fb:function(t,e,n){var r=n("8bb2"),i=n("730c"),o=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},b8ba:function(t,e,n){var r=n("f498"),i=n("5b12"),o=n("f1a7"),a=n("3e34"),s=n("df6f"),u=n("cdcd"),c=u.get,l=u.enforce,h=String(String).split("String");(t.exports=function(t,e,n,s){var u=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||i(n,"name",e),l(n).source=h.join("string"==typeof e?e:"")),t!==r?(u?!f&&t[e]&&(c=!0):delete t[e],c?t[e]=n:i(t,e,n)):c?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},b99b:function(t,e,n){var r=n("d4cb"),i=n("abdf"),o=n("157c"),a=n("0c47");t.exports=r?Object.defineProperties:function(t,e){o(t);var n,r=a(e),s=r.length,u=0;while(s>u)i.f(t,n=r[u++],e[n]);return t}},c1a2:function(t,e,n){var r=n("157c"),i=n("f3e4");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},c607:function(t,e,n){var r=n("f498"),i=n("3e34"),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},c6de:function(t,e,n){var r=n("6a61");t.exports=Array.isArray||function(t){return"Array"==r(t)}},c78b:function(t,e,n){"use strict";var r=n("6b1d"),i=n("9eea"),o=n("730c"),a=n("3e32");r({target:"String",proto:!0,forced:!a("includes")},{includes:function(t){return!!~String(o(this)).indexOf(i(t),arguments.length>1?arguments[1]:void 0)}})},c91c:function(t,e,n){var r=n("f1a7"),i=n("378c"),o=n("1f5e").indexOf,a=n("d687");t.exports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);while(e.length>u)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},c9c9:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("5ae7")),i=o(n("3606"));function o(t){return t&&t.__esModule?t:{default:t}}var a=/^(\d+)(th|st|nd|rd)?/i,s=/\d+/i,u={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},c={any:[/^b/i,/^(a|c)/i]},l={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},h={any:[/1/i,/2/i,/3/i,/4/i]},f={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},p={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},d={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},v={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},y={ordinalNumber:(0,r.default)({matchPattern:a,parsePattern:s,valueCallback:function(t){return parseInt(t,10)}}),era:(0,i.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any"}),quarter:(0,i.default)({matchPatterns:l,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:(0,i.default)({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),day:(0,i.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:v,defaultParseWidth:"any"}),dayPeriod:(0,i.default)({matchPatterns:g,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},_=y;e.default=_,t.exports=e.default},cdcd:function(t,e,n){var r,i,o,a=n("7297"),s=n("f498"),u=n("7526"),c=n("5b12"),l=n("f1a7"),h=n("332c"),f=n("d687"),p=s.WeakMap,d=function(t){return o(t)?i(t):r(t,{})},v=function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a){var g=new p,m=g.get,y=g.has,_=g.set;r=function(t,e){return _.call(g,t,e),e},i=function(t){return m.call(g,t)||{}},o=function(t){return y.call(g,t)}}else{var b=h("state");f[b]=!0,r=function(t,e){return c(t,b,e),e},i=function(t){return l(t,b)?t[b]:{}},o=function(t){return l(t,b)}}t.exports={set:r,get:i,has:o,enforce:d,getterFor:v}},ce71:function(t,e,n){var r=n("d4cb"),i=n("72df"),o=n("f1a7"),a=Object.defineProperty,s={},u=function(t){throw t};t.exports=function(t,e){if(o(s,t))return s[t];e||(e={});var n=[][t],c=!!o(e,"ACCESSORS")&&e.ACCESSORS,l=o(e,0)?e[0]:u,h=o(e,1)?e[1]:void 0;return s[t]=!!n&&!i((function(){if(c&&!r)return!0;var t={length:-1};c?a(t,1,{enumerable:!0,get:u}):t[1]=1,n.call(t,l,h)}))}},cf43:function(t,e,n){"use strict";var r={value:function(){}};function i(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new o(r)}function o(t){this._=t}function a(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function s(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function u(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=r,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}o.prototype=i.prototype={constructor:o,on:function(t,e){var n,r=this._,i=a(t+"",r),o=-1,c=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!==typeof e)throw new Error("invalid callback: "+e);while(++o<c)if(n=(t=i[o]).type)r[n]=u(r[n],t.name,e);else if(null==e)for(n in r)r[n]=u(r[n],t.name,null);return this}while(++o<c)if((n=(t=i[o]).type)&&(n=s(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new o(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(r=this._[t],o=0,n=r.length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}},e["a"]=i},d054:function(t,e,n){var r=n("2117"),i=n("83a6"),o=n("37d1"),a=n("b495"),s=n("6a86"),u=[].push,c=function(t){var e=1==t,n=2==t,c=3==t,l=4==t,h=6==t,f=5==t||h;return function(p,d,v,g){for(var m,y,_=o(p),b=i(_),O=r(d,v,3),x=a(b.length),w=0,E=g||s,S=e?E(p,x):n?E(p,0):void 0;x>w;w++)if((f||w in b)&&(m=b[w],y=O(m,w,_),t))if(e)S[w]=y;else if(y)switch(t){case 3:return!0;case 5:return m;case 6:return w;case 2:u.call(S,m)}else if(l)return!1;return h?-1:c||l?l:S}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},d4cb:function(t,e,n){var r=n("72df");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},d687:function(t,e){t.exports={}},d6de:function(t,e,n){"use strict";var r=n("6b1d"),i=n("f498"),o=n("5428"),a=n("0e93"),s=n("d4cb"),u=n("e7a0"),c=n("4db4"),l=n("72df"),h=n("f1a7"),f=n("c6de"),p=n("7526"),d=n("157c"),v=n("37d1"),g=n("378c"),m=n("083f"),y=n("9618"),_=n("82e8"),b=n("0c47"),O=n("65d0"),x=n("ee58"),w=n("2402"),E=n("185a"),S=n("abdf"),T=n("e129"),M=n("5b12"),C=n("b8ba"),A=n("4cdd"),P=n("332c"),k=n("d687"),L=n("1d8a"),D=n("7d53"),R=n("4e41"),I=n("6a89"),N=n("fa46"),j=n("cdcd"),V=n("d054").forEach,B=P("hidden"),G="Symbol",U="prototype",H=D("toPrimitive"),z=j.set,F=j.getterFor(G),W=Object[U],q=i.Symbol,Y=o("JSON","stringify"),Z=E.f,X=S.f,K=x.f,$=T.f,Q=A("symbols"),J=A("op-symbols"),tt=A("string-to-symbol-registry"),et=A("symbol-to-string-registry"),nt=A("wks"),rt=i.QObject,it=!rt||!rt[U]||!rt[U].findChild,ot=s&&l((function(){return 7!=_(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Z(W,e);r&&delete W[e],X(t,e,n),r&&t!==W&&X(W,e,r)}:X,at=function(t,e){var n=Q[t]=_(q[U]);return z(n,{type:G,tag:t,description:e}),s||(n.description=e),n},st=c?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof q},ut=function(t,e,n){t===W&&ut(J,e,n),d(t);var r=m(e,!0);return d(n),h(Q,r)?(n.enumerable?(h(t,B)&&t[B][r]&&(t[B][r]=!1),n=_(n,{enumerable:y(0,!1)})):(h(t,B)||X(t,B,y(1,{})),t[B][r]=!0),ot(t,r,n)):X(t,r,n)},ct=function(t,e){d(t);var n=g(e),r=b(n).concat(dt(n));return V(r,(function(e){s&&!ht.call(n,e)||ut(t,e,n[e])})),t},lt=function(t,e){return void 0===e?_(t):ct(_(t),e)},ht=function(t){var e=m(t,!0),n=$.call(this,e);return!(this===W&&h(Q,e)&&!h(J,e))&&(!(n||!h(this,e)||!h(Q,e)||h(this,B)&&this[B][e])||n)},ft=function(t,e){var n=g(t),r=m(e,!0);if(n!==W||!h(Q,r)||h(J,r)){var i=Z(n,r);return!i||!h(Q,r)||h(n,B)&&n[B][r]||(i.enumerable=!0),i}},pt=function(t){var e=K(g(t)),n=[];return V(e,(function(t){h(Q,t)||h(k,t)||n.push(t)})),n},dt=function(t){var e=t===W,n=K(e?J:g(t)),r=[];return V(n,(function(t){!h(Q,t)||e&&!h(W,t)||r.push(Q[t])})),r};if(u||(q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=L(t),n=function(t){this===W&&n.call(J,t),h(this,B)&&h(this[B],e)&&(this[B][e]=!1),ot(this,e,y(1,t))};return s&&it&&ot(W,e,{configurable:!0,set:n}),at(e,t)},C(q[U],"toString",(function(){return F(this).tag})),C(q,"withoutSetter",(function(t){return at(L(t),t)})),T.f=ht,S.f=ut,E.f=ft,O.f=x.f=pt,w.f=dt,R.f=function(t){return at(D(t),t)},s&&(X(q[U],"description",{configurable:!0,get:function(){return F(this).description}}),a||C(W,"propertyIsEnumerable",ht,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),V(b(nt),(function(t){I(t)})),r({target:G,stat:!0,forced:!u},{for:function(t){var e=String(t);if(h(tt,e))return tt[e];var n=q(e);return tt[e]=n,et[n]=e,n},keyFor:function(t){if(!st(t))throw TypeError(t+" is not a symbol");if(h(et,t))return et[t]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:lt,defineProperty:ut,defineProperties:ct,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:pt,getOwnPropertySymbols:dt}),r({target:"Object",stat:!0,forced:l((function(){w.f(1)}))},{getOwnPropertySymbols:function(t){return w.f(v(t))}}),Y){var vt=!u||l((function(){var t=q();return"[null]"!=Y([t])||"{}"!=Y({a:t})||"{}"!=Y(Object(t))}));r({target:"JSON",stat:!0,forced:vt},{stringify:function(t,e,n){var r,i=[t],o=1;while(arguments.length>o)i.push(arguments[o++]);if(r=e,(p(e)||void 0!==t)&&!st(t))return f(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!st(e))return e}),i[1]=e,Y.apply(null,i)}})}q[U][H]||M(q[U],H,q[U].valueOf),N(q,G),k[B]=!0},d6f0:function(t,e,n){"use strict";(function(t){var r=n("7f0d"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i,s=a?r["a"].Buffer:void 0,u=s?s.allocUnsafe:void 0;function c(t,e){if(e)return t.slice();var n=t.length,r=u?u(n):new t.constructor(n);return t.copy(r),r}e["a"]=c}).call(this,n("7326")(t))},da06:function(t,e,n){var r=n("3cec"),i=n("6a61"),o=n("7d53"),a=o("toStringTag"),s="Arguments"==i(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(n){}};t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=Object(t),a))?n:s?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},df6f:function(t,e,n){var r=n("c607"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},e129:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},e7a0:function(t,e,n){var r=n("72df");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},ebac:function(t,e,n){var r=n("72df"),i=/#|\.prototype\./,o=function(t,e){var n=s[a(t)];return n==c||n!=u&&("function"==typeof e?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},ed2b:function(t,e,n){var r=n("7d53"),i=n("82e8"),o=n("abdf"),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},ee58:function(t,e,n){var r=n("378c"),i=n("65d0").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},ef1f:function(t,e,n){var r=n("3cec"),i=n("b8ba"),o=n("5268");r||i(Object.prototype,"toString",o,{unsafe:!0})},f1a7:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},f2bf:function(t,e,n){var r=n("f498"),i=n("7526"),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},f3b8:function(t,e,n){"use strict";var r=n("b7fb").charAt,i=n("cdcd"),o=n("2df4"),a="String Iterator",s=i.set,u=i.getterFor(a);o(String,"String",(function(t){s(this,{type:a,string:String(t),index:0})}),(function(){var t,e=u(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},f3e4:function(t,e,n){var r=n("7526");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},f498:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n("7d15"))},fa46:function(t,e,n){var r=n("abdf").f,i=n("f1a7"),o=n("7d53"),a=o("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},ff89:function(t,e,n){"use strict";var r,i,o,a=n("0e39"),s=n("5b12"),u=n("f1a7"),c=n("7d53"),l=n("0e93"),h=c("iterator"),f=!1,p=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=a(a(o)),i!==Object.prototype&&(r=i)):f=!0),void 0==r&&(r={}),l||u(r,h)||s(r,h,p),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}}})}));
1
+ (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["charts-vue"]=e():t["charts-vue"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="1c25")}({"01ff":function(t,e,n){"use strict";(function(t){var r=n("92ae"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i,s=a&&r["a"].process,u=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(e){}}();e["a"]=u}).call(this,n("7326")(t))},"083f":function(t,e,n){var r=n("7526");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"0c47":function(t,e,n){var r=n("c91c"),i=n("b17e");t.exports=Object.keys||function(t){return r(t,i)}},"0e39":function(t,e,n){var r=n("f1a7"),i=n("37d1"),o=n("332c"),a=n("802e"),s=o("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),r(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},"0e93":function(t,e){t.exports=!1},"130d":function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"157c":function(t,e,n){var r=n("7526");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"185a":function(t,e,n){var r=n("d4cb"),i=n("e129"),o=n("9618"),a=n("378c"),s=n("083f"),u=n("f1a7"),c=n("7c3f"),l=Object.getOwnPropertyDescriptor;e.f=r?l:function(t,e){if(t=a(t),e=s(e,!0),c)try{return l(t,e)}catch(n){}if(u(t,e))return o(!i.f.call(t,e),t[e])}},"1c25":function(t,e,n){"use strict";n.r(e);var r={};n.r(r),n.d(r,"Chart",(function(){return s})),n.d(r,"Model",(function(){return u})),n.d(r,"Toolbar",(function(){return c})),n.d(r,"ZoomBar",(function(){return l})),n.d(r,"ZoomDomain",(function(){return h})),n.d(r,"CanvasZoom",(function(){return f})),n.d(r,"Axis",(function(){return p})),n.d(r,"Area",(function(){return d})),n.d(r,"WordCloud",(function(){return v})),n.d(r,"Pie",(function(){return g})),n.d(r,"Gauge",(function(){return m})),n.d(r,"Bar",(function(){return y})),n.d(r,"Boxplot",(function(){return _})),n.d(r,"Scatter",(function(){return b})),n.d(r,"Line",(function(){return O})),n.d(r,"Radar",(function(){return x})),n.d(r,"Treemap",(function(){return w})),n.d(r,"Tooltip",(function(){return E})),n.d(r,"Threshold",(function(){return S})),n.d(r,"Legend",(function(){return T})),n.d(r,"CirclePack",(function(){return M}));var i,o={};(n.r(o),n.d(o,"grid",(function(){return pd})),n.d(o,"ruler",(function(){return dd})),n.d(o,"baseTooltip",(function(){return vd})),n.d(o,"timeScale",(function(){return md})),n.d(o,"options",(function(){return Ud})),n.d(o,"area",(function(){return rt})),n.d(o,"axis",(function(){return it})),n.d(o,"canvasZoomSettings",(function(){return ot})),n.d(o,"circlePack",(function(){return at})),n.d(o,"color",(function(){return st})),n.d(o,"boxplot",(function(){return ut})),n.d(o,"legend",(function(){return ct})),n.d(o,"lines",(function(){return lt})),n.d(o,"meter",(function(){return ht})),n.d(o,"pie",(function(){return ft})),n.d(o,"radar",(function(){return pt})),n.d(o,"spacers",(function(){return dt})),n.d(o,"tooltips",(function(){return vt})),n.d(o,"transitions",(function(){return gt})),n.d(o,"toolbar",(function(){return mt})),n.d(o,"zoomBar",(function(){return yt})),n.d(o,"defaultLegendAdditionalItems",(function(){return _t})),"undefined"!==typeof window)&&(n("4141"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1]));n("d6de"),n("8d0f"),n("68b8"),n("8d0d"),n("9531"),n("868d"),n("ef1f"),n("c78b"),n("f3b8"),n("918c");var a,s,u,c,l,h,f,p,d,v,g,m,y,_,b,O,x,w,E,S,T,M,C=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-area-chart"})},A=[];(function(t){t["GRAPHICS_DOCUMENT"]="graphics-document",t["GRAPHICS_OBJECT"]="graphics-object",t["GRAPHICS_SYMBOL"]="graphics-symbol",t["GROUP"]="group",t["DOCUMENT"]="document",t["CHECKBOX"]="checkbox",t["BUTTON"]="button",t["MENU"]="menu",t["MENU_ITEM"]="menuitem",t["IMG"]="img"})(a||(a={})),function(t){t["RENDER_FINISHED"]="render-finished",t["RESIZE"]="chart-resize",t["MOUSEOVER"]="chart-mouseover",t["MOUSEOUT"]="chart-mouseout"}(s||(s={})),function(t){t["UPDATE"]="model-update"}(u||(u={})),function(t){t["SHOW_OVERFLOW_MENU"]="show-toolbar-overflow-menu",t["HIDE_OVERFLOW_MENU"]="hide-toolbar-overflow-menu"}(c||(c={})),function(t){t["UPDATE"]="zoom-bar-update",t["SELECTION_START"]="zoom-bar-selection-start",t["SELECTION_IN_PROGRESS"]="zoom-bar-selection-in-progress",t["SELECTION_END"]="zoom-bar-selection-end"}(l||(l={})),function(t){t["CHANGE"]="zoom-domain-change"}(h||(h={})),function(t){t["CANVAS_ZOOM_IN"]="canvas-zoom-in",t["CANVAS_ZOOM_OUT"]="canvas-zoom-out"}(f||(f={})),function(t){t["LABEL_MOUSEOVER"]="axis-label-mouseover",t["LABEL_MOUSEMOVE"]="axis-label-mousemove",t["LABEL_CLICK"]="axis-label-click",t["LABEL_MOUSEOUT"]="axis-label-mouseout"}(p||(p={})),function(t){t["AREA_MOUSEOVER"]="area-mouseover",t["AREA_MOUSEMOVE"]="area-mousemove",t["AREA_CLICK"]="area-click",t["AREA_MOUSEOUT"]="area-mouseout"}(d||(d={})),function(t){t["WORD_MOUSEOVER"]="wordcloud-word-mouseover",t["WORD_MOUSEMOVE"]="wordcloud-word-mousemove",t["WORD_CLICK"]="wordcloud-word-click",t["WORD_MOUSEOUT"]="wordcloud-word-mouseout"}(v||(v={})),function(t){t["SLICE_MOUSEOVER"]="pie-slice-mouseover",t["SLICE_MOUSEMOVE"]="pie-slice-mousemove",t["SLICE_CLICK"]="pie-slice-click",t["SLICE_MOUSEOUT"]="pie-slice-mouseout"}(g||(g={})),function(t){t["ARC_MOUSEOVER"]="gauge-arc-mouseover",t["ARC_MOUSEMOVE"]="gauge-arc-mousemove",t["ARC_CLICK"]="gauge-arc-click",t["ARC_MOUSEOUT"]="gauge-arc-mouseout"}(m||(m={})),function(t){t["BAR_MOUSEOVER"]="bar-mouseover",t["BAR_MOUSEMOVE"]="bar-mousemove",t["BAR_CLICK"]="bar-click",t["BAR_MOUSEOUT"]="bar-mouseout"}(y||(y={})),function(t){t["BOX_MOUSEOVER"]="box-mouseover",t["BOX_MOUSEMOVE"]="box-mousemove",t["BOX_CLICK"]="box-click",t["BOX_MOUSEOUT"]="box-mouseout",t["OUTLIER_MOUSEOVER"]="outlier-mouseover",t["OUTLIER_MOUSEMOVE"]="outlier-mousemove",t["OUTLIER_CLICK"]="outlier-click",t["OUTLIER_MOUSEOUT"]="outlier-mouseout"}(_||(_={})),function(t){t["SCATTER_MOUSEOVER"]="scatter-mouseover",t["SCATTER_MOUSEMOVE"]="scatter-mousemove",t["SCATTER_CLICK"]="scatter-click",t["SCATTER_MOUSEOUT"]="scatter-mouseout"}(b||(b={})),function(t){t["POINT_MOUSEOVER"]="scatter-mouseover",t["POINT_MOUSEMOVE"]="scatter-mousemove",t["POINT_CLICK"]="scatter-click",t["POINT_MOUSEOUT"]="scatter-mouseout"}(O||(O={})),function(t){t["X_AXIS_MOUSEOVER"]="radar-x-axis-mouseover",t["X_AXIS_MOUSEMOVE"]="radar-x-axis-mousemove",t["X_AXIS_CLICK"]="radar-x-axis-click",t["X_AXIS_MOUSEOUT"]="radar-x-axis-mouseout"}(x||(x={})),function(t){t["LEAF_MOUSEOVER"]="leaf-mouseover",t["LEAF_MOUSEMOVE"]="leaf-mousemove",t["LEAF_CLICK"]="leaf-click",t["LEAF_MOUSEOUT"]="leaf-mouseout"}(w||(w={})),function(t){t["SHOW"]="show-tooltip",t["MOVE"]="move-tooltip",t["HIDE"]="hide-tooltip"}(E||(E={})),function(t){t["SHOW"]="show-threshold",t["HIDE"]="hide-threshold"}(S||(S={})),function(t){t["ITEM_HOVER"]="legend-item-onhover",t["ITEM_CLICK"]="legend-item-onclick",t["ITEM_MOUSEOUT"]="legend-item-onmouseout",t["ITEMS_UPDATE"]="legend-items-update"}(T||(T={})),function(t){t["CIRCLE_MOUSEOVER"]="circle-leaf-mouseover",t["CIRCLE_CLICK"]="circle-leaf-click",t["CIRCLE_MOUSEOUT"]="circle-leaf-mouseout",t["CIRCLE_MOUSEMOVE"]="circle-leaf-mousemove"}(M||(M={}));var P,k,L,D,R,I,N,j,V,B,G,U,H,z,F,W,q,Y,Z,X,K,$,Q,J,tt,et=r;function nt(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}(function(t){t["DEFAULT"]="default",t["G100"]="g100",t["G90"]="g90",t["G10"]="g10"})(P||(P={})),function(t){t["FILL"]="fill",t["STROKE"]="stroke",t["TOOLTIP"]="tooltip"}(k||(k={})),function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"}(L||(L={})),function(t){t["GRAPH_VIEW"]="graph_view",t["SLIDER_VIEW"]="slider_view"}(D||(D={})),function(t){t["END_LINE"]="end_line",t["MID_LINE"]="mid_line",t["FRONT_LINE"]="front_line",t["NONE"]="none"}(R||(R={})),function(t){t["VERTICAL"]="vertical",t["HORIZONTAL"]="horizontal"}(I||(I={})),function(t){t["TIME"]="time",t["LINEAR"]="linear",t["LOG"]="log",t["LABELS"]="labels",t["LABELS_RATIO"]="labels-ratio"}(N||(N={})),function(t){t["RIGHT"]="right",t["LEFT"]="left",t["TOP"]="top",t["BOTTOM"]="bottom"}(j||(j={})),function(t){t["LEFT"]="left",t["CENTER"]="center",t["RIGHT"]="right"}(V||(V={})),function(t){t["HORIZONTAL"]="horizontal",t["VERTICAL"]="vertical"}(B||(B={})),function(t){t["ROW"]="row",t["COLUMN"]="column",t["ROW_REVERSE"]="row-reverse",t["COLUMN_REVERSE"]="column-reverse"}(G||(G={})),function(t){t["FIXED"]="fixed",t["PREFERRED"]="preferred",t["STRETCH"]="stretch"}(U||(U={})),function(t){t["LEFT"]="left",t["RIGHT"]="right"}(H||(H={})),function(t){t["GRID"]="grid",t["VERT_OR_HORIZ"]="vertOrHoriz",t["PIE"]="pie",t["DONUT"]="donut"}(z||(z={})),function(t){t["START"]="start",t["MIDDLE"]="middle",t["END"]="end"}(F||(F={})),function(t){t["BASELINE"]="baseline",t["MIDDLE"]="middle",t["HANGING"]="hanging"}(W||(W={})),function(t){t["SEMI"]="semi",t["FULL"]="full"}(q||(q={})),function(t){t["UP"]="up",t["DOWN"]="down"}(Y||(Y={})),function(t){t["SUCCESS"]="success",t["WARNING"]="warning",t["DANGER"]="danger"}(Z||(Z={})),function(t){t["ALWAYS"]="always",t["AUTO"]="auto",t["NEVER"]="never"}(X||(X={})),function(t){t["SCATTER"]="scatter",t["LINE"]="line",t["SIMPLE_BAR"]="simple-bar",t["STACKED_BAR"]="stacked-bar",t["GROUPED_BAR"]="grouped-bar",t["AREA"]="area",t["STACKED_AREA"]="stacked-area"}(K||(K={})),function(t){t["ZOOM_IN"]="Zoom in",t["ZOOM_OUT"]="Zoom out",t["RESET_ZOOM"]="Reset zoom"}($||($={})),function(t){t["LEFT"]="left",t["RIGHT"]="right"}(Q||(Q={})),function(t){t["CHECKBOX"]="checkbox",t["RADIUS"]="radius",t["AREA"]="area",t["SIZE"]="size",t["LINE"]="line",t["QUARTILE"]="quartile",t["ZOOM"]="zoom"}(J||(J={}));var rt={opacity:{unselected:.05,selected:.4}},it={ticks:{number:7,rotateIfSmallerThan:30,verticalSpaceRatio:2.5,horizontalSpaceRatio:3.5},ratio:{reference:"value",compareTo:"marker"},paddingRatio:.1},ot={duration:1e3,ease:nt,zoomLevel:3},at={circles:{fillOpacity:.3,hover:{stroke:"#FFF"}},padding:{mainGroup:4,children:2},hierarchyLevel:2},st={pairingOptions:{"1-color":4,"2-color":5,"3-color":5,"4-color":3,"5-color":2,"14-color":1}},ut={circle:{radius:4,opacity:{hovered:1,default:.3}},box:{opacity:{hovered:.5,default:.3}},strokeWidth:{default:1,thicker:2}},ct={items:{status:{ACTIVE:1,DISABLED:0},horizontalSpace:12,verticalSpace:24,textYOffset:8,spaceAfter:4},checkbox:{radius:6.5},radius:{iconData:[{cx:7,cy:7,r:6.5},{cx:7,cy:10,r:3.5}],fill:null,stroke:"#8c8c8c"},line:{yPosition:6,width:24,strokeWidth:1.4,fill:null,stroke:"#999999"},area:{width:24,height:13,fill:"#6f6f6f",stroke:null},size:{iconData:[{width:23,height:12},{width:13,height:6}],fill:null,stroke:"#8D8D8D"},quartile:{iconData:[{x:0,y:0,width:24,height:13},{x:11,y:4,width:1,height:4}]},zoom:{iconData:[{x:0,y:0,width:12,height:12}],color:"#8D8D8D"}},lt={opacity:{unselected:.3,selected:1},weight:{selected:2,unselected:1}},ht={statusBar:{paddingRight:5},status:{indicatorSize:16,paddingLeft:15}},ft={radiusOffset:-15,innerRadius:2,padAngle:.007,hoverArc:{outerRadiusOffset:3},xOffset:30,yOffset:20,yOffsetCallout:10,callout:{minSliceDegree:5,offsetX:15,offsetY:12,horizontalLineLength:8,textMargin:2}},pt={opacity:{unselected:.1,selected:.3},xLabelPadding:10,yLabelPadding:8,yTicksNumber:4,minRange:10,xAxisRectHeight:50,dotsRadius:5},dt={default:{size:24}},vt={horizontalOffset:10},gt={default:{duration:300},pie_slice_mouseover:{duration:100},pie_chart_titles:{duration:375},graph_element_mouseover_fill_update:{duration:100},graph_element_mouseout_fill_update:{duration:100}},mt={buttonSize:32,iconSize:20,height:32,spacerHeight:10,iconPadding:6},yt={height:(tt={},tt[D.GRAPH_VIEW]=32,tt[D.SLIDER_VIEW]=10,tt),spacerHeight:8,handleWidth:5,handleBarWidth:1,handleBarHeight:12},_t=[{type:J.RADIUS,name:"Radius"},{type:J.AREA,name:"Poor area"},{type:J.AREA,name:"Satisfactory area"},{type:J.AREA,name:"Great area"},{type:J.QUARTILE,name:"Quartiles"}];function bt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var Ot=bt,xt=n("7f0d"),wt=function(){return xt["a"].Date.now()},Et=wt,St=/\s/;function Tt(t){var e=t.length;while(e--&&St.test(t.charAt(e)));return e}var Mt=Tt,Ct=/^\s+/;function At(t){return t?t.slice(0,Mt(t)+1).replace(Ct,""):t}var Pt=At,kt=xt["a"].Symbol,Lt=kt,Dt=Object.prototype,Rt=Dt.hasOwnProperty,It=Dt.toString,Nt=Lt?Lt.toStringTag:void 0;function jt(t){var e=Rt.call(t,Nt),n=t[Nt];try{t[Nt]=void 0;var r=!0}catch(o){}var i=It.call(t);return r&&(e?t[Nt]=n:delete t[Nt]),i}var Vt=jt,Bt=Object.prototype,Gt=Bt.toString;function Ut(t){return Gt.call(t)}var Ht=Ut,zt="[object Null]",Ft="[object Undefined]",Wt=Lt?Lt.toStringTag:void 0;function qt(t){return null==t?void 0===t?Ft:zt:Wt&&Wt in Object(t)?Vt(t):Ht(t)}var Yt=qt;function Zt(t){return null!=t&&"object"==typeof t}var Xt=Zt,Kt="[object Symbol]";function $t(t){return"symbol"==typeof t||Xt(t)&&Yt(t)==Kt}var Qt=$t,Jt=NaN,te=/^[-+]0x[0-9a-f]+$/i,ee=/^0b[01]+$/i,ne=/^0o[0-7]+$/i,re=parseInt;function ie(t){if("number"==typeof t)return t;if(Qt(t))return Jt;if(Ot(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ot(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Pt(t);var n=ee.test(t);return n||ne.test(t)?re(t.slice(2),n?2:8):te.test(t)?Jt:+t}var oe=ie,ae="Expected a function",se=Math.max,ue=Math.min;function ce(t,e,n){var r,i,o,a,s,u,c=0,l=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError(ae);function p(e){var n=r,o=i;return r=i=void 0,c=e,a=t.apply(o,n),a}function d(t){return c=t,s=setTimeout(m,e),l?p(t):a}function v(t){var n=t-u,r=t-c,i=e-n;return h?ue(i,o-r):i}function g(t){var n=t-u,r=t-c;return void 0===u||n>=e||n<0||h&&r>=o}function m(){var t=Et();if(g(t))return y(t);s=setTimeout(m,v(t))}function y(t){return s=void 0,f&&r?p(t):(r=i=void 0,a)}function _(){void 0!==s&&clearTimeout(s),c=0,r=u=i=s=void 0}function b(){return void 0===s?a:y(Et())}function O(){var t=Et(),n=g(t);if(r=arguments,i=this,u=t,n){if(void 0===s)return d(u);if(h)return clearTimeout(s),s=setTimeout(m,e),p(u)}return void 0===s&&(s=setTimeout(m,e)),a}return e=oe(e)||0,Ot(n)&&(l=!!n.leading,h="maxWait"in n,o=h?se(oe(n.maxWait)||0,e):o,f="trailing"in n?!!n.trailing:f),O.cancel=_,O.flush=b,O}var le=ce;function he(){this.__data__=[],this.size=0}var fe=he;function pe(t,e){return t===e||t!==t&&e!==e}var de=pe;function ve(t,e){var n=t.length;while(n--)if(de(t[n][0],e))return n;return-1}var ge=ve,me=Array.prototype,ye=me.splice;function _e(t){var e=this.__data__,n=ge(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():ye.call(e,n,1),--this.size,!0}var be=_e;function Oe(t){var e=this.__data__,n=ge(e,t);return n<0?void 0:e[n][1]}var xe=Oe;function we(t){return ge(this.__data__,t)>-1}var Ee=we;function Se(t,e){var n=this.__data__,r=ge(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var Te=Se;function Me(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}Me.prototype.clear=fe,Me.prototype["delete"]=be,Me.prototype.get=xe,Me.prototype.has=Ee,Me.prototype.set=Te;var Ce=Me;function Ae(){this.__data__=new Ce,this.size=0}var Pe=Ae;function ke(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}var Le=ke;function De(t){return this.__data__.get(t)}var Re=De;function Ie(t){return this.__data__.has(t)}var Ne=Ie,je="[object AsyncFunction]",Ve="[object Function]",Be="[object GeneratorFunction]",Ge="[object Proxy]";function Ue(t){if(!Ot(t))return!1;var e=Yt(t);return e==Ve||e==Be||e==je||e==Ge}var He=Ue,ze=xt["a"]["__core-js_shared__"],Fe=ze,We=function(){var t=/[^.]+$/.exec(Fe&&Fe.keys&&Fe.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function qe(t){return!!We&&We in t}var Ye=qe,Ze=Function.prototype,Xe=Ze.toString;function Ke(t){if(null!=t){try{return Xe.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var $e=Ke,Qe=/[\\^$.*+?()[\]{}|]/g,Je=/^\[object .+?Constructor\]$/,tn=Function.prototype,en=Object.prototype,nn=tn.toString,rn=en.hasOwnProperty,on=RegExp("^"+nn.call(rn).replace(Qe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function an(t){if(!Ot(t)||Ye(t))return!1;var e=He(t)?on:Je;return e.test($e(t))}var sn=an;function un(t,e){return null==t?void 0:t[e]}var cn=un;function ln(t,e){var n=cn(t,e);return sn(n)?n:void 0}var hn=ln,fn=hn(xt["a"],"Map"),pn=fn,dn=hn(Object,"create"),vn=dn;function gn(){this.__data__=vn?vn(null):{},this.size=0}var mn=gn;function yn(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var _n=yn,bn="__lodash_hash_undefined__",On=Object.prototype,xn=On.hasOwnProperty;function wn(t){var e=this.__data__;if(vn){var n=e[t];return n===bn?void 0:n}return xn.call(e,t)?e[t]:void 0}var En=wn,Sn=Object.prototype,Tn=Sn.hasOwnProperty;function Mn(t){var e=this.__data__;return vn?void 0!==e[t]:Tn.call(e,t)}var Cn=Mn,An="__lodash_hash_undefined__";function Pn(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=vn&&void 0===e?An:e,this}var kn=Pn;function Ln(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}Ln.prototype.clear=mn,Ln.prototype["delete"]=_n,Ln.prototype.get=En,Ln.prototype.has=Cn,Ln.prototype.set=kn;var Dn=Ln;function Rn(){this.size=0,this.__data__={hash:new Dn,map:new(pn||Ce),string:new Dn}}var In=Rn;function Nn(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}var jn=Nn;function Vn(t,e){var n=t.__data__;return jn(e)?n["string"==typeof e?"string":"hash"]:n.map}var Bn=Vn;function Gn(t){var e=Bn(this,t)["delete"](t);return this.size-=e?1:0,e}var Un=Gn;function Hn(t){return Bn(this,t).get(t)}var zn=Hn;function Fn(t){return Bn(this,t).has(t)}var Wn=Fn;function qn(t,e){var n=Bn(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var Yn=qn;function Zn(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}Zn.prototype.clear=In,Zn.prototype["delete"]=Un,Zn.prototype.get=zn,Zn.prototype.has=Wn,Zn.prototype.set=Yn;var Xn=Zn,Kn=200;function $n(t,e){var n=this.__data__;if(n instanceof Ce){var r=n.__data__;if(!pn||r.length<Kn-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Xn(r)}return n.set(t,e),this.size=n.size,this}var Qn=$n;function Jn(t){var e=this.__data__=new Ce(t);this.size=e.size}Jn.prototype.clear=Pe,Jn.prototype["delete"]=Le,Jn.prototype.get=Re,Jn.prototype.has=Ne,Jn.prototype.set=Qn;var tr=Jn;function er(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(!1===e(t[n],n,t))break;return t}var nr=er,rr=function(){try{var t=hn(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),ir=rr;function or(t,e,n){"__proto__"==e&&ir?ir(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var ar=or,sr=Object.prototype,ur=sr.hasOwnProperty;function cr(t,e,n){var r=t[e];ur.call(t,e)&&de(r,n)&&(void 0!==n||e in t)||ar(t,e,n)}var lr=cr;function hr(t,e,n,r){var i=!n;n||(n={});var o=-1,a=e.length;while(++o<a){var s=e[o],u=r?r(n[s],t[s],s,n,t):void 0;void 0===u&&(u=t[s]),i?ar(n,s,u):lr(n,s,u)}return n}var fr=hr;function pr(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}var dr=pr,vr="[object Arguments]";function gr(t){return Xt(t)&&Yt(t)==vr}var mr=gr,yr=Object.prototype,_r=yr.hasOwnProperty,br=yr.propertyIsEnumerable,Or=mr(function(){return arguments}())?mr:function(t){return Xt(t)&&_r.call(t,"callee")&&!br.call(t,"callee")},xr=Or,wr=Array.isArray,Er=wr,Sr=n("4cf0"),Tr=9007199254740991,Mr=/^(?:0|[1-9]\d*)$/;function Cr(t,e){var n=typeof t;return e=null==e?Tr:e,!!e&&("number"==n||"symbol"!=n&&Mr.test(t))&&t>-1&&t%1==0&&t<e}var Ar=Cr,Pr=9007199254740991;function kr(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Pr}var Lr=kr,Dr="[object Arguments]",Rr="[object Array]",Ir="[object Boolean]",Nr="[object Date]",jr="[object Error]",Vr="[object Function]",Br="[object Map]",Gr="[object Number]",Ur="[object Object]",Hr="[object RegExp]",zr="[object Set]",Fr="[object String]",Wr="[object WeakMap]",qr="[object ArrayBuffer]",Yr="[object DataView]",Zr="[object Float32Array]",Xr="[object Float64Array]",Kr="[object Int8Array]",$r="[object Int16Array]",Qr="[object Int32Array]",Jr="[object Uint8Array]",ti="[object Uint8ClampedArray]",ei="[object Uint16Array]",ni="[object Uint32Array]",ri={};function ii(t){return Xt(t)&&Lr(t.length)&&!!ri[Yt(t)]}ri[Zr]=ri[Xr]=ri[Kr]=ri[$r]=ri[Qr]=ri[Jr]=ri[ti]=ri[ei]=ri[ni]=!0,ri[Dr]=ri[Rr]=ri[qr]=ri[Ir]=ri[Yr]=ri[Nr]=ri[jr]=ri[Vr]=ri[Br]=ri[Gr]=ri[Ur]=ri[Hr]=ri[zr]=ri[Fr]=ri[Wr]=!1;var oi=ii;function ai(t){return function(e){return t(e)}}var si=ai,ui=n("01ff"),ci=ui["a"]&&ui["a"].isTypedArray,li=ci?si(ci):oi,hi=li,fi=Object.prototype,pi=fi.hasOwnProperty;function di(t,e){var n=Er(t),r=!n&&xr(t),i=!n&&!r&&Object(Sr["a"])(t),o=!n&&!r&&!i&&hi(t),a=n||r||i||o,s=a?dr(t.length,String):[],u=s.length;for(var c in t)!e&&!pi.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ar(c,u))||s.push(c);return s}var vi=di,gi=Object.prototype;function mi(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||gi;return t===n}var yi=mi;function _i(t,e){return function(n){return t(e(n))}}var bi=_i,Oi=bi(Object.keys,Object),xi=Oi,wi=Object.prototype,Ei=wi.hasOwnProperty;function Si(t){if(!yi(t))return xi(t);var e=[];for(var n in Object(t))Ei.call(t,n)&&"constructor"!=n&&e.push(n);return e}var Ti=Si;function Mi(t){return null!=t&&Lr(t.length)&&!He(t)}var Ci=Mi;function Ai(t){return Ci(t)?vi(t):Ti(t)}var Pi=Ai;function ki(t,e){return t&&fr(e,Pi(e),t)}var Li=ki;function Di(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}var Ri=Di,Ii=Object.prototype,Ni=Ii.hasOwnProperty;function ji(t){if(!Ot(t))return Ri(t);var e=yi(t),n=[];for(var r in t)("constructor"!=r||!e&&Ni.call(t,r))&&n.push(r);return n}var Vi=ji;function Bi(t){return Ci(t)?vi(t,!0):Vi(t)}var Gi=Bi;function Ui(t,e){return t&&fr(e,Gi(e),t)}var Hi=Ui,zi=n("d6f0");function Fi(t,e){var n=-1,r=t.length;e||(e=Array(r));while(++n<r)e[n]=t[n];return e}var Wi=Fi;function qi(t,e){var n=-1,r=null==t?0:t.length,i=0,o=[];while(++n<r){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}var Yi=qi;function Zi(){return[]}var Xi=Zi,Ki=Object.prototype,$i=Ki.propertyIsEnumerable,Qi=Object.getOwnPropertySymbols,Ji=Qi?function(t){return null==t?[]:(t=Object(t),Yi(Qi(t),(function(e){return $i.call(t,e)})))}:Xi,to=Ji;function eo(t,e){return fr(t,to(t),e)}var no=eo;function ro(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}var io=ro,oo=bi(Object.getPrototypeOf,Object),ao=oo,so=Object.getOwnPropertySymbols,uo=so?function(t){var e=[];while(t)io(e,to(t)),t=ao(t);return e}:Xi,co=uo;function lo(t,e){return fr(t,co(t),e)}var ho=lo;function fo(t,e,n){var r=e(t);return Er(t)?r:io(r,n(t))}var po=fo;function vo(t){return po(t,Pi,to)}var go=vo;function mo(t){return po(t,Gi,co)}var yo=mo,_o=hn(xt["a"],"DataView"),bo=_o,Oo=hn(xt["a"],"Promise"),xo=Oo,wo=hn(xt["a"],"Set"),Eo=wo,So=hn(xt["a"],"WeakMap"),To=So,Mo="[object Map]",Co="[object Object]",Ao="[object Promise]",Po="[object Set]",ko="[object WeakMap]",Lo="[object DataView]",Do=$e(bo),Ro=$e(pn),Io=$e(xo),No=$e(Eo),jo=$e(To),Vo=Yt;(bo&&Vo(new bo(new ArrayBuffer(1)))!=Lo||pn&&Vo(new pn)!=Mo||xo&&Vo(xo.resolve())!=Ao||Eo&&Vo(new Eo)!=Po||To&&Vo(new To)!=ko)&&(Vo=function(t){var e=Yt(t),n=e==Co?t.constructor:void 0,r=n?$e(n):"";if(r)switch(r){case Do:return Lo;case Ro:return Mo;case Io:return Ao;case No:return Po;case jo:return ko}return e});var Bo=Vo,Go=Object.prototype,Uo=Go.hasOwnProperty;function Ho(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Uo.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var zo=Ho,Fo=xt["a"].Uint8Array,Wo=Fo;function qo(t){var e=new t.constructor(t.byteLength);return new Wo(e).set(new Wo(t)),e}var Yo=qo;function Zo(t,e){var n=e?Yo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var Xo=Zo,Ko=/\w*$/;function $o(t){var e=new t.constructor(t.source,Ko.exec(t));return e.lastIndex=t.lastIndex,e}var Qo=$o,Jo=Lt?Lt.prototype:void 0,ta=Jo?Jo.valueOf:void 0;function ea(t){return ta?Object(ta.call(t)):{}}var na=ea;function ra(t,e){var n=e?Yo(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var ia=ra,oa="[object Boolean]",aa="[object Date]",sa="[object Map]",ua="[object Number]",ca="[object RegExp]",la="[object Set]",ha="[object String]",fa="[object Symbol]",pa="[object ArrayBuffer]",da="[object DataView]",va="[object Float32Array]",ga="[object Float64Array]",ma="[object Int8Array]",ya="[object Int16Array]",_a="[object Int32Array]",ba="[object Uint8Array]",Oa="[object Uint8ClampedArray]",xa="[object Uint16Array]",wa="[object Uint32Array]";function Ea(t,e,n){var r=t.constructor;switch(e){case pa:return Yo(t);case oa:case aa:return new r(+t);case da:return Xo(t,n);case va:case ga:case ma:case ya:case _a:case ba:case Oa:case xa:case wa:return ia(t,n);case sa:return new r;case ua:case ha:return new r(t);case ca:return Qo(t);case la:return new r;case fa:return na(t)}}var Sa=Ea,Ta=Object.create,Ma=function(){function t(){}return function(e){if(!Ot(e))return{};if(Ta)return Ta(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),Ca=Ma;function Aa(t){return"function"!=typeof t.constructor||yi(t)?{}:Ca(ao(t))}var Pa=Aa,ka="[object Map]";function La(t){return Xt(t)&&Bo(t)==ka}var Da=La,Ra=ui["a"]&&ui["a"].isMap,Ia=Ra?si(Ra):Da,Na=Ia,ja="[object Set]";function Va(t){return Xt(t)&&Bo(t)==ja}var Ba=Va,Ga=ui["a"]&&ui["a"].isSet,Ua=Ga?si(Ga):Ba,Ha=Ua,za=1,Fa=2,Wa=4,qa="[object Arguments]",Ya="[object Array]",Za="[object Boolean]",Xa="[object Date]",Ka="[object Error]",$a="[object Function]",Qa="[object GeneratorFunction]",Ja="[object Map]",ts="[object Number]",es="[object Object]",ns="[object RegExp]",rs="[object Set]",is="[object String]",os="[object Symbol]",as="[object WeakMap]",ss="[object ArrayBuffer]",us="[object DataView]",cs="[object Float32Array]",ls="[object Float64Array]",hs="[object Int8Array]",fs="[object Int16Array]",ps="[object Int32Array]",ds="[object Uint8Array]",vs="[object Uint8ClampedArray]",gs="[object Uint16Array]",ms="[object Uint32Array]",ys={};function _s(t,e,n,r,i,o){var a,s=e&za,u=e&Fa,c=e&Wa;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!Ot(t))return t;var l=Er(t);if(l){if(a=zo(t),!s)return Wi(t,a)}else{var h=Bo(t),f=h==$a||h==Qa;if(Object(Sr["a"])(t))return Object(zi["a"])(t,s);if(h==es||h==qa||f&&!i){if(a=u||f?{}:Pa(t),!s)return u?ho(t,Hi(a,t)):no(t,Li(a,t))}else{if(!ys[h])return i?t:{};a=Sa(t,h,s)}}o||(o=new tr);var p=o.get(t);if(p)return p;o.set(t,a),Ha(t)?t.forEach((function(r){a.add(_s(r,e,n,r,t,o))})):Na(t)&&t.forEach((function(r,i){a.set(i,_s(r,e,n,i,t,o))}));var d=c?u?yo:go:u?Gi:Pi,v=l?void 0:d(t);return nr(v||t,(function(r,i){v&&(i=r,r=t[i]),lr(a,i,_s(r,e,n,i,t,o))})),a}ys[qa]=ys[Ya]=ys[ss]=ys[us]=ys[Za]=ys[Xa]=ys[cs]=ys[ls]=ys[hs]=ys[fs]=ys[ps]=ys[Ja]=ys[ts]=ys[es]=ys[ns]=ys[rs]=ys[is]=ys[os]=ys[ds]=ys[vs]=ys[gs]=ys[ms]=!0,ys[Ka]=ys[$a]=ys[as]=!1;var bs=_s,Os=1,xs=4;function ws(t){return bs(t,Os|xs)}var Es=ws;function Ss(t,e,n){(void 0===n||de(t[e],n))&&(void 0!==n||e in t)||ar(t,e,n)}var Ts=Ss;function Ms(t){return function(e,n,r){var i=-1,o=Object(e),a=r(e),s=a.length;while(s--){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}var Cs=Ms,As=Cs(),Ps=As;function ks(t){return Xt(t)&&Ci(t)}var Ls=ks,Ds="[object Object]",Rs=Function.prototype,Is=Object.prototype,Ns=Rs.toString,js=Is.hasOwnProperty,Vs=Ns.call(Object);function Bs(t){if(!Xt(t)||Yt(t)!=Ds)return!1;var e=ao(t);if(null===e)return!0;var n=js.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ns.call(n)==Vs}var Gs=Bs;function Us(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var Hs=Us;function zs(t){return fr(t,Gi(t))}var Fs=zs;function Ws(t,e,n,r,i,o,a){var s=Hs(t,n),u=Hs(e,n),c=a.get(u);if(c)Ts(t,n,c);else{var l=o?o(s,u,n+"",t,e,a):void 0,h=void 0===l;if(h){var f=Er(u),p=!f&&Object(Sr["a"])(u),d=!f&&!p&&hi(u);l=u,f||p||d?Er(s)?l=s:Ls(s)?l=Wi(s):p?(h=!1,l=Object(zi["a"])(u,!0)):d?(h=!1,l=ia(u,!0)):l=[]:Gs(u)||xr(u)?(l=s,xr(s)?l=Fs(s):Ot(s)&&!He(s)||(l=Pa(u))):h=!1}h&&(a.set(u,l),i(l,u,r,o,a),a["delete"](u)),Ts(t,n,l)}}var qs=Ws;function Ys(t,e,n,r,i){t!==e&&Ps(e,(function(o,a){if(i||(i=new tr),Ot(o))qs(t,e,a,n,Ys,r,i);else{var s=r?r(Hs(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),Ts(t,a,s)}}),Gi)}var Zs=Ys;function Xs(t){return t}var Ks=Xs;function $s(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var Qs=$s,Js=Math.max;function tu(t,e,n){return e=Js(void 0===e?t.length-1:e,0),function(){var r=arguments,i=-1,o=Js(r.length-e,0),a=Array(o);while(++i<o)a[i]=r[e+i];i=-1;var s=Array(e+1);while(++i<e)s[i]=r[i];return s[e]=n(a),Qs(t,this,s)}}var eu=tu;function nu(t){return function(){return t}}var ru=nu,iu=ir?function(t,e){return ir(t,"toString",{configurable:!0,enumerable:!1,value:ru(e),writable:!0})}:Ks,ou=iu,au=800,su=16,uu=Date.now;function cu(t){var e=0,n=0;return function(){var r=uu(),i=su-(r-n);if(n=r,i>0){if(++e>=au)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var lu=cu,hu=lu(ou),fu=hu;function pu(t,e){return fu(eu(t,e,Ks),t+"")}var du=pu;function vu(t,e,n){if(!Ot(n))return!1;var r=typeof e;return!!("number"==r?Ci(n)&&Ar(e,n.length):"string"==r&&e in n)&&de(n[e],t)}var gu=vu;function mu(t){return du((function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&gu(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);while(++r<i){var s=n[r];s&&t(e,s,r,o)}return e}))}var yu=mu,_u=yu((function(t,e,n){Zs(t,e,n)})),bu=_u,Ou=Lt?Lt.isConcatSpreadable:void 0;function xu(t){return Er(t)||xr(t)||!!(Ou&&t&&t[Ou])}var wu=xu;function Eu(t,e,n,r,i){var o=-1,a=t.length;n||(n=wu),i||(i=[]);while(++o<a){var s=t[o];e>0&&n(s)?e>1?Eu(s,e-1,n,r,i):io(i,s):r||(i[i.length]=s)}return i}var Su=Eu,Tu="__lodash_hash_undefined__";function Mu(t){return this.__data__.set(t,Tu),this}var Cu=Mu;function Au(t){return this.__data__.has(t)}var Pu=Au;function ku(t){var e=-1,n=null==t?0:t.length;this.__data__=new Xn;while(++e<n)this.add(t[e])}ku.prototype.add=ku.prototype.push=Cu,ku.prototype.has=Pu;var Lu=ku;function Du(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(e(t[n],n,t))return!0;return!1}var Ru=Du;function Iu(t,e){return t.has(e)}var Nu=Iu,ju=1,Vu=2;function Bu(t,e,n,r,i,o){var a=n&ju,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var c=o.get(t),l=o.get(e);if(c&&l)return c==e&&l==t;var h=-1,f=!0,p=n&Vu?new Lu:void 0;o.set(t,e),o.set(e,t);while(++h<s){var d=t[h],v=e[h];if(r)var g=a?r(v,d,h,e,t,o):r(d,v,h,t,e,o);if(void 0!==g){if(g)continue;f=!1;break}if(p){if(!Ru(e,(function(t,e){if(!Nu(p,e)&&(d===t||i(d,t,n,r,o)))return p.push(e)}))){f=!1;break}}else if(d!==v&&!i(d,v,n,r,o)){f=!1;break}}return o["delete"](t),o["delete"](e),f}var Gu=Bu;function Uu(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}var Hu=Uu;function zu(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var Fu=zu,Wu=1,qu=2,Yu="[object Boolean]",Zu="[object Date]",Xu="[object Error]",Ku="[object Map]",$u="[object Number]",Qu="[object RegExp]",Ju="[object Set]",tc="[object String]",ec="[object Symbol]",nc="[object ArrayBuffer]",rc="[object DataView]",ic=Lt?Lt.prototype:void 0,oc=ic?ic.valueOf:void 0;function ac(t,e,n,r,i,o,a){switch(n){case rc:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case nc:return!(t.byteLength!=e.byteLength||!o(new Wo(t),new Wo(e)));case Yu:case Zu:case $u:return de(+t,+e);case Xu:return t.name==e.name&&t.message==e.message;case Qu:case tc:return t==e+"";case Ku:var s=Hu;case Ju:var u=r&Wu;if(s||(s=Fu),t.size!=e.size&&!u)return!1;var c=a.get(t);if(c)return c==e;r|=qu,a.set(t,e);var l=Gu(s(t),s(e),r,i,o,a);return a["delete"](t),l;case ec:if(oc)return oc.call(t)==oc.call(e)}return!1}var sc=ac,uc=1,cc=Object.prototype,lc=cc.hasOwnProperty;function hc(t,e,n,r,i,o){var a=n&uc,s=go(t),u=s.length,c=go(e),l=c.length;if(u!=l&&!a)return!1;var h=u;while(h--){var f=s[h];if(!(a?f in e:lc.call(e,f)))return!1}var p=o.get(t),d=o.get(e);if(p&&d)return p==e&&d==t;var v=!0;o.set(t,e),o.set(e,t);var g=a;while(++h<u){f=s[h];var m=t[f],y=e[f];if(r)var _=a?r(y,m,f,e,t,o):r(m,y,f,t,e,o);if(!(void 0===_?m===y||i(m,y,n,r,o):_)){v=!1;break}g||(g="constructor"==f)}if(v&&!g){var b=t.constructor,O=e.constructor;b!=O&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof O&&O instanceof O)&&(v=!1)}return o["delete"](t),o["delete"](e),v}var fc=hc,pc=1,dc="[object Arguments]",vc="[object Array]",gc="[object Object]",mc=Object.prototype,yc=mc.hasOwnProperty;function _c(t,e,n,r,i,o){var a=Er(t),s=Er(e),u=a?vc:Bo(t),c=s?vc:Bo(e);u=u==dc?gc:u,c=c==dc?gc:c;var l=u==gc,h=c==gc,f=u==c;if(f&&Object(Sr["a"])(t)){if(!Object(Sr["a"])(e))return!1;a=!0,l=!1}if(f&&!l)return o||(o=new tr),a||hi(t)?Gu(t,e,n,r,i,o):sc(t,e,u,n,r,i,o);if(!(n&pc)){var p=l&&yc.call(t,"__wrapped__"),d=h&&yc.call(e,"__wrapped__");if(p||d){var v=p?t.value():t,g=d?e.value():e;return o||(o=new tr),i(v,g,n,r,o)}}return!!f&&(o||(o=new tr),fc(t,e,n,r,i,o))}var bc=_c;function Oc(t,e,n,r,i){return t===e||(null==t||null==e||!Xt(t)&&!Xt(e)?t!==t&&e!==e:bc(t,e,n,r,Oc,i))}var xc=Oc,wc=1,Ec=2;function Sc(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;t=Object(t);while(i--){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}while(++i<o){s=n[i];var u=s[0],c=t[u],l=s[1];if(a&&s[2]){if(void 0===c&&!(u in t))return!1}else{var h=new tr;if(r)var f=r(c,l,u,t,e,h);if(!(void 0===f?xc(l,c,wc|Ec,r,h):f))return!1}}return!0}var Tc=Sc;function Mc(t){return t===t&&!Ot(t)}var Cc=Mc;function Ac(t){var e=Pi(t),n=e.length;while(n--){var r=e[n],i=t[r];e[n]=[r,i,Cc(i)]}return e}var Pc=Ac;function kc(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}var Lc=kc;function Dc(t){var e=Pc(t);return 1==e.length&&e[0][2]?Lc(e[0][0],e[0][1]):function(n){return n===t||Tc(n,t,e)}}var Rc=Dc,Ic=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Nc=/^\w*$/;function jc(t,e){if(Er(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Qt(t))||(Nc.test(t)||!Ic.test(t)||null!=e&&t in Object(e))}var Vc=jc,Bc="Expected a function";function Gc(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(Bc);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Gc.Cache||Xn),n}Gc.Cache=Xn;var Uc=Gc,Hc=500;function zc(t){var e=Uc(t,(function(t){return n.size===Hc&&n.clear(),t})),n=e.cache;return e}var Fc=zc,Wc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qc=/\\(\\)?/g,Yc=Fc((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(Wc,(function(t,n,r,i){e.push(r?i.replace(qc,"$1"):n||t)})),e})),Zc=Yc;function Xc(t,e){var n=-1,r=null==t?0:t.length,i=Array(r);while(++n<r)i[n]=e(t[n],n,t);return i}var Kc=Xc,$c=1/0,Qc=Lt?Lt.prototype:void 0,Jc=Qc?Qc.toString:void 0;function tl(t){if("string"==typeof t)return t;if(Er(t))return Kc(t,tl)+"";if(Qt(t))return Jc?Jc.call(t):"";var e=t+"";return"0"==e&&1/t==-$c?"-0":e}var el=tl;function nl(t){return null==t?"":el(t)}var rl=nl;function il(t,e){return Er(t)?t:Vc(t,e)?[t]:Zc(rl(t))}var ol=il,al=1/0;function sl(t){if("string"==typeof t||Qt(t))return t;var e=t+"";return"0"==e&&1/t==-al?"-0":e}var ul=sl;function cl(t,e){e=ol(e,t);var n=0,r=e.length;while(null!=t&&n<r)t=t[ul(e[n++])];return n&&n==r?t:void 0}var ll=cl;function hl(t,e,n){var r=null==t?void 0:ll(t,e);return void 0===r?n:r}var fl=hl;function pl(t,e){return null!=t&&e in Object(t)}var dl=pl;function vl(t,e,n){e=ol(e,t);var r=-1,i=e.length,o=!1;while(++r<i){var a=ul(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:(i=null==t?0:t.length,!!i&&Lr(i)&&Ar(a,i)&&(Er(t)||xr(t)))}var gl=vl;function ml(t,e){return null!=t&&gl(t,e,dl)}var yl=ml,_l=1,bl=2;function Ol(t,e){return Vc(t)&&Cc(e)?Lc(ul(t),e):function(n){var r=fl(n,t);return void 0===r&&r===e?yl(n,t):xc(e,r,_l|bl)}}var xl=Ol;function wl(t){return function(e){return null==e?void 0:e[t]}}var El=wl;function Sl(t){return function(e){return ll(e,t)}}var Tl=Sl;function Ml(t){return Vc(t)?El(ul(t)):Tl(t)}var Cl=Ml;function Al(t){return"function"==typeof t?t:null==t?Ks:"object"==typeof t?Er(t)?xl(t[0],t[1]):Rc(t):Cl(t)}var Pl=Al;function kl(t,e,n,r){var i=t.length,o=n+(r?1:-1);while(r?o--:++o<i)if(e(t[o],o,t))return o;return-1}var Ll=kl;function Dl(t){return t!==t}var Rl=Dl;function Il(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}var Nl=Il;function jl(t,e,n){return e===e?Nl(t,e,n):Ll(t,Rl,n)}var Vl=jl;function Bl(t,e){var n=null==t?0:t.length;return!!n&&Vl(t,e,0)>-1}var Gl=Bl;function Ul(t,e,n){var r=-1,i=null==t?0:t.length;while(++r<i)if(n(e,t[r]))return!0;return!1}var Hl=Ul;function zl(){}var Fl=zl,Wl=1/0,ql=Eo&&1/Fu(new Eo([,-0]))[1]==Wl?function(t){return new Eo(t)}:Fl,Yl=ql,Zl=200;function Xl(t,e,n){var r=-1,i=Gl,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=Hl;else if(o>=Zl){var c=e?null:Yl(t);if(c)return Fu(c);a=!1,i=Nu,u=new Lu}else u=e?[]:s;t:while(++r<o){var l=t[r],h=e?e(l):l;if(l=n||0!==l?l:0,a&&h===h){var f=u.length;while(f--)if(u[f]===h)continue t;e&&u.push(h),s.push(l)}else i(u,h,n)||(u!==s&&u.push(h),s.push(l))}return s}var Kl=Xl;function $l(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var Ql=$l,Jl=du((function(t){var e=Ql(t);return Ls(e)&&(e=void 0),Kl(Su(t,1,Ls,!0),Pl(e,2))})),th=Jl;function eh(t){return t&&t.length?Kl(t):[]}var nh=eh;function rh(t,e,n){return t===t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}var ih=rh;function oh(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=oe(n),n=n===n?n:0),void 0!==e&&(e=oe(e),e=e===e?e:0),ih(oe(t),e,n)}var ah=oh;function sh(t){var e=null==t?0:t.length;return e?Su(t,1):[]}var uh=sh;function ch(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;var o=Array(i);while(++r<i)o[r]=t[r+e];return o}var lh=ch;function hh(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:lh(t,e,n)}var fh=hh,ph="\\ud800-\\udfff",dh="\\u0300-\\u036f",vh="\\ufe20-\\ufe2f",gh="\\u20d0-\\u20ff",mh=dh+vh+gh,yh="\\ufe0e\\ufe0f",_h="\\u200d",bh=RegExp("["+_h+ph+mh+yh+"]");function Oh(t){return bh.test(t)}var xh=Oh;function wh(t){return t.split("")}var Eh=wh,Sh="\\ud800-\\udfff",Th="\\u0300-\\u036f",Mh="\\ufe20-\\ufe2f",Ch="\\u20d0-\\u20ff",Ah=Th+Mh+Ch,Ph="\\ufe0e\\ufe0f",kh="["+Sh+"]",Lh="["+Ah+"]",Dh="\\ud83c[\\udffb-\\udfff]",Rh="(?:"+Lh+"|"+Dh+")",Ih="[^"+Sh+"]",Nh="(?:\\ud83c[\\udde6-\\uddff]){2}",jh="[\\ud800-\\udbff][\\udc00-\\udfff]",Vh="\\u200d",Bh=Rh+"?",Gh="["+Ph+"]?",Uh="(?:"+Vh+"(?:"+[Ih,Nh,jh].join("|")+")"+Gh+Bh+")*",Hh=Gh+Bh+Uh,zh="(?:"+[Ih+Lh+"?",Lh,Nh,jh,kh].join("|")+")",Fh=RegExp(Dh+"(?="+Dh+")|"+zh+Hh,"g");function Wh(t){return t.match(Fh)||[]}var qh=Wh;function Yh(t){return xh(t)?qh(t):Eh(t)}var Zh=Yh;function Xh(t){return function(e){e=rl(e);var n=xh(e)?Zh(e):void 0,r=n?n[0]:e.charAt(0),i=n?fh(n,1).join(""):e.slice(1);return r[t]()+i}}var Kh=Xh,$h=Kh("toUpperCase"),Qh=$h;function Jh(t){return Qh(rl(t).toLowerCase())}var tf=Jh;function ef(t,e,n,r){var i=-1,o=null==t?0:t.length;r&&o&&(n=t[++i]);while(++i<o)n=e(n,t[i],i,t);return n}var nf=ef;function rf(t){return function(e){return null==t?void 0:t[e]}}var of=rf,af={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},sf=of(af),uf=sf,cf=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,lf="\\u0300-\\u036f",hf="\\ufe20-\\ufe2f",ff="\\u20d0-\\u20ff",pf=lf+hf+ff,df="["+pf+"]",vf=RegExp(df,"g");function gf(t){return t=rl(t),t&&t.replace(cf,uf).replace(vf,"")}var mf=gf,yf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function _f(t){return t.match(yf)||[]}var bf=_f,Of=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function xf(t){return Of.test(t)}var wf=xf,Ef="\\ud800-\\udfff",Sf="\\u0300-\\u036f",Tf="\\ufe20-\\ufe2f",Mf="\\u20d0-\\u20ff",Cf=Sf+Tf+Mf,Af="\\u2700-\\u27bf",Pf="a-z\\xdf-\\xf6\\xf8-\\xff",kf="\\xac\\xb1\\xd7\\xf7",Lf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Df="\\u2000-\\u206f",Rf=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",If="A-Z\\xc0-\\xd6\\xd8-\\xde",Nf="\\ufe0e\\ufe0f",jf=kf+Lf+Df+Rf,Vf="['’]",Bf="["+jf+"]",Gf="["+Cf+"]",Uf="\\d+",Hf="["+Af+"]",zf="["+Pf+"]",Ff="[^"+Ef+jf+Uf+Af+Pf+If+"]",Wf="\\ud83c[\\udffb-\\udfff]",qf="(?:"+Gf+"|"+Wf+")",Yf="[^"+Ef+"]",Zf="(?:\\ud83c[\\udde6-\\uddff]){2}",Xf="[\\ud800-\\udbff][\\udc00-\\udfff]",Kf="["+If+"]",$f="\\u200d",Qf="(?:"+zf+"|"+Ff+")",Jf="(?:"+Kf+"|"+Ff+")",tp="(?:"+Vf+"(?:d|ll|m|re|s|t|ve))?",ep="(?:"+Vf+"(?:D|LL|M|RE|S|T|VE))?",np=qf+"?",rp="["+Nf+"]?",ip="(?:"+$f+"(?:"+[Yf,Zf,Xf].join("|")+")"+rp+np+")*",op="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ap="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sp=rp+np+ip,up="(?:"+[Hf,Zf,Xf].join("|")+")"+sp,cp=RegExp([Kf+"?"+zf+"+"+tp+"(?="+[Bf,Kf,"$"].join("|")+")",Jf+"+"+ep+"(?="+[Bf,Kf+Qf,"$"].join("|")+")",Kf+"?"+Qf+"+"+tp,Kf+"+"+ep,ap,op,Uf,up].join("|"),"g");function lp(t){return t.match(cp)||[]}var hp=lp;function fp(t,e,n){return t=rl(t),e=n?void 0:e,void 0===e?wf(t)?hp(t):bf(t):t.match(e)||[]}var pp=fp,dp="['’]",vp=RegExp(dp,"g");function gp(t){return function(e){return nf(pp(mf(e).replace(vp,"")),t,"")}}var mp=gp,yp=mp((function(t,e,n){return e=e.toLowerCase(),t+(n?tf(e):e)})),_p=yp,bp="[object Map]",Op="[object Set]",xp=Object.prototype,wp=xp.hasOwnProperty;function Ep(t){if(null==t)return!0;if(Ci(t)&&(Er(t)||"string"==typeof t||"function"==typeof t.splice||Object(Sr["a"])(t)||hi(t)||xr(t)))return!t.length;var e=Bo(t);if(e==bp||e==Op)return!t.size;if(yi(t))return!Ti(t).length;for(var n in t)if(wp.call(t,n))return!1;return!0}var Sp=Ep;function Tp(t,e){return xc(t,e)}var Mp=Tp;function Cp(t,e){return t&&Ps(t,e,Pi)}var Ap=Cp;function Pp(t,e){return function(n,r){if(null==n)return n;if(!Ci(n))return t(n,r);var i=n.length,o=e?i:-1,a=Object(n);while(e?o--:++o<i)if(!1===r(a[o],o,a))break;return n}}var kp=Pp,Lp=kp(Ap),Dp=Lp;function Rp(t,e){var n=-1,r=Ci(t)?Array(t.length):[];return Dp(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}var Ip=Rp;function Np(t,e){var n=Er(t)?Kc:Ip;return n(t,Pl(e,3))}var jp=Np,Vp=1/0;function Bp(t,e){return Su(jp(t,e),Vp)}var Gp=Bp,Up=mp((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Hp=Up;function zp(t){var e=-1,n=null==t?0:t.length,r={};while(++e<n){var i=t[e];r[i[0]]=i[1]}return r}var Fp=zp;function Wp(t,e){var n;return Dp(t,(function(t,r,i){return n=e(t,r,i),!n})),!!n}var qp=Wp;function Yp(t,e,n){var r=Er(t)?Ru:qp;return n&&gu(t,e,n)&&(e=void 0),r(t,Pl(e,3))}var Zp=Yp,Xp={},Kp=null;if("undefined"!==typeof document){var $p=document.documentElement;"onmouseenter"in $p||(Xp={mouseenter:"mouseover",mouseleave:"mouseout"})}function Qp(t,e,n){return t=Jp(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function Jp(t,e,n){return function(r){var i=Kp;Kp=r;try{t.call(this,this.__data__,e,n)}finally{Kp=i}}}function td(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}}))}function ed(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function nd(t,e,n){var r=Xp.hasOwnProperty(t.type)?Qp:Jp;return function(i,o,a){var s,u=this.__on,c=r(e,o,a);if(u)for(var l=0,h=u.length;l<h;++l)if((s=u[l]).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},u?u.push(s):this.__on=[s]}}var rd=function(t,e,n){var r,i,o=td(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?nd:ed,null==n&&(n=!1),r=0;r<a;++r)this.each(s(o[r],e,n));return this}var s=this.node().__on;if(s)for(var u,c=0,l=s.length;c<l;++c)for(r=0,u=s[c];r<a;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value};function id(t,e,n,r){var i=Kp;t.sourceEvent=Kp,Kp=t;try{return e.apply(n,r)}finally{Kp=i}}var od,ad=function(){var t,e=Kp;while(t=e.sourceEvent)e=t;return e},sd=function(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()),[r.x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]},ud=function(t){var e=ad();return e.changedTouches&&(e=e.changedTouches[0]),sd(t,e)};(function(t){function e(t,e,n){var r=null;return function(){var i=this,o=arguments;i.mousePosition=ud(n),clearTimeout(r),r=setTimeout((function(){t.apply(i,o)}),e)}}function n(e,n){e=t.clone(e);var r=Object.keys(n.axes||{});for(var i in 0===r.length&&delete e.axes,e.axes)if(r.includes(i)){var o=n.axes[i];(o["primary"]||o["secondary"])&&console.warn("`primary` & `secondary` are no longer needed for axis configurations. Read more here https://carbon-design-system.github.io/carbon-charts/?path=/story/docs-tutorials--tabular-data-format");var a=o["mapsTo"];if(void 0===a||null===a){var s=o["scaleType"];void 0===s||null===s?o["mapsTo"]="value":s===N.TIME?o["mapsTo"]="date":s===N.LABELS&&(o["mapsTo"]="key")}}else delete e.axes[i];return l(e,n),t.merge(e,n)}function r(t){return{width:parseFloat(t.style.width.replace("px","")||t.offsetWidth),height:parseFloat(t.style.height.replace("px","")||t.offsetHeight)}}function i(t){if(t){var e=/translate\([0-9]+\.?[0-9]*,[0-9]+\.?[0-9]*\)/,n=t.getAttribute("transform").match(e);if(!n)return null;if(n[0]){var r=n[0].replace(/translate\(/,"").replace(/\)/,"").split(",");return{tx:r[0],ty:r[1]}}return null}}function o(t){var e=/\(([^)]+)\)/,n=e.exec(t)[1],r=n.split(",");return{x:parseFloat(r[0]),y:parseFloat(r[1])}}function a(t){var e=t.toString();return e.match(/[a-z]/i)?e:e+"px"}function s(t){return t[0].toUpperCase()+t.slice(1)}function u(t,e){var n=t/e.reduce((function(t,e){return t+e.value}),0)*100;return n%1!==0?parseFloat(n.toFixed(1)):n}function c(t,e,n){return n>t.length?t:e===R.MID_LINE?t.substr(0,n/2)+"..."+t.substr(-n/2):e===R.FRONT_LINE?"..."+t.substr(-n):e===R.END_LINE?t.substr(0,n)+"...":void 0}function l(e,n){var r=t.getProperty(e,"legend","additionalItems"),i=t.getProperty(n,"legend","additionalItems");if(r&&i){var o=i.map((function(t){return t.type})),a=r.map((function(t){return t.type})),s=_t.filter((function(t){return a.includes(t.type)&&!o.includes(t.type)}));e.legend.additionalItems=s,n.legend.additionalItems=t.unionBy(s,i,"name")}}function h(t,e){var n={missing:[],added:[]};return t.forEach((function(t){-1===e.indexOf(t)&&n.missing.push(t)})),e.forEach((function(e){-1===t.indexOf(e)&&n.added.push(e)})),n}function f(t){var e=[],n=[];return t.forEach((function(t){-1!==e.indexOf(t)&&-1===n.indexOf(t)&&n.push(t),e.push(t)})),n}function p(t){return t.each((function(){this.parentNode.appendChild(this)}))}function d(t,e,n){return n===I.VERTICAL?[t,e]:[e,t]}t.debounce=le,t.clone=Es,t.merge=bu,t.unionBy=th,t.removeArrayDuplicates=nh,t.clamp=ah,t.flatten=uh,t.camelCase=_p,t.isEmpty=Sp,t.isEqual=Mp,t.flatMapDeep=Gp,t.kebabCase=Hp,t.fromPairs=Fp,t.some=Zp,t.debounceWithD3MousePosition=e,t.mergeDefaultChartOptions=n,t.getDimensions=r,t.getTranslationValues=i,t.getTranformOffsets=o,t.formatWidthHeightValues=a,t.capitalizeFirstLetter=s,t.convertValueToPercentage=u,t.truncateLabel=c,t.updateLegendAdditionalItems=l,t.arrayDifferences=h,t.getDuplicateValues=f,t.moveToFront=p,t.getProperty=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=t;if(r){for(var i=0,o=e;i<o.length;i++){var a=o[i];if(null===r[a]||void 0===r[a])return null;r=r[a]}return r}return null},t.flipSVGCoordinatesBasedOnOrientation=function(t,e){return e===I.HORIZONTAL?{y0:t.x0,y1:t.x1,x0:t.y0,x1:t.y1}:t},t.generateSVGPathString=function(e,n){var r=t.flipSVGCoordinatesBasedOnOrientation(e,n),i=r.x0,o=r.x1,a=r.y0,s=r.y1;return"M"+i+","+a+"L"+i+","+s+"L"+o+","+s+"L"+o+","+a+"L"+i+","+a},t.flipDomainAndRangeBasedOnOrientation=d,t.compareNumeric=function(t,e){return Number(t)===Number(e)}})(od||(od={}));var cd=n("39ba"),ld=n.n(cd),hd={type:R.END_LINE,threshold:16,numCharacter:14},fd={enabled:!0,position:j.BOTTOM,clickable:!0,truncation:hd,alignment:V.LEFT,order:null,additionalItems:[]},pd={x:{enabled:!0,numberOfTicks:15,alignWithAxisTicks:!1},y:{enabled:!0,numberOfTicks:5,alignWithAxisTicks:!1}},dd={enabled:!0},vd={enabled:!0,showTotal:!0,truncation:hd,groupLabel:"Group"},gd={top:{visible:!0,includeZero:!0,truncation:hd},bottom:{visible:!0,includeZero:!0,truncation:hd},left:{visible:!0,includeZero:!0,truncation:hd},right:{visible:!0,includeZero:!0,truncation:hd}},md={addSpaceOnEdges:1,showDayName:!1,localeObject:ld.a,timeIntervalFormats:{"15seconds":{primary:"MMM d, pp",secondary:"pp"},minute:{primary:"MMM d, p",secondary:"p"},"30minutes":{primary:"MMM d, p",secondary:"p"},hourly:{primary:"MMM d, hh a",secondary:"hh a"},daily:{primary:"MMM d",secondary:"d"},weekly:{primary:"eee, MMM d",secondary:"eee"},monthly:{primary:"MMM yyyy",secondary:"MMM"},quarterly:{primary:"QQQ ''yy",secondary:"QQQ"},yearly:{primary:"yyyy",secondary:"yyyy"}}},yd={width:null,height:null,resizable:!0,tooltip:vd,legend:fd,style:{prefix:"cc"},data:{groupMapsTo:"group",loading:!1,selectedGroups:[]},color:{scale:null,pairing:{numberOfVariants:null,option:1},gradient:{enabled:!1}}},_d=od.merge({},yd,{axes:gd,timeScale:md,grid:pd,ruler:dd,zoomBar:{zoomRatio:.4,minZoomRatio:.01,top:{enabled:!1,type:D.GRAPH_VIEW}},toolbar:{enabled:!1,numberOfIcons:3,controls:[]}}),bd=od.merge({},_d,{bars:{maxWidth:16},timeScale:od.merge(md,{addSpaceOnEdges:1})}),Od=od.merge({},bd,{}),xd=od.merge({},bd,{}),wd=od.merge({},bd,{bars:od.merge({},bd.bars,{dividerSize:1.5})}),Ed=od.merge({},bd,{}),Sd=od.merge({},_d,{points:{radius:4,fillOpacity:.3,filled:!0,enabled:!0}}),Td=Sd,Md=od.merge({},Sd,{points:{radius:3,filled:!1,enabled:!0}}),Cd=od.merge({},Md,{timeScale:od.merge(md,{addSpaceOnEdges:0})}),Ad=Cd,Pd=od.merge({},_d,{bubble:{radiusMapsTo:"radius",radiusLabel:"Radius",radiusRange:function(t,e){var n=Math.min(t.width,t.height);return[3*n/400,25*n/400]},fillOpacity:.2,enabled:!0},points:{filled:!0},legend:{additionalItems:[{type:J.RADIUS,name:"Radius"}]}}),kd=od.merge({},_d,{bullet:{performanceAreaTitles:["Poor","Satisfactory","Great"]},grid:{x:{enabled:!1},y:{enabled:!1}},legend:{additionalItems:[{type:J.AREA,name:"Poor area"},{type:J.AREA,name:"Satisfactory area"},{type:J.AREA,name:"Great area"},{type:J.QUARTILE,name:"Quartiles"}]}}),Ld=od.merge({},yd,{tooltip:od.merge({},vd,{wordLabel:"Word",valueLabel:"Value"}),wordCloud:{fontSizeMapsTo:"value",fontSizeRange:function(t,e){var n=Math.min(t.width,t.height);return[20*n/400,75*n/400]},wordMapsTo:"word"}}),Dd=od.merge({},yd,{pie:{labels:{formatter:null,enabled:!0},alignment:V.LEFT,sortFunction:null}}),Rd=od.merge({},yd,{legend:{enabled:!1},gauge:{type:q.SEMI,arcWidth:16,deltaArrow:{size:function(t){return t/8},enabled:!0},showPercentageSymbol:!0,status:null,numberSpacing:10,deltaFontSize:function(t){return t/8},valueFontSize:function(t){return t/2.5},numberFormatter:function(t){return t.toFixed(2)%1!==0?t.toFixed(2).toLocaleString():t.toFixed().toLocaleString()},alignment:V.LEFT}}),Id=od.merge({},Dd,{donut:{center:{numberFontSize:function(t){return Math.min(t/100*24,24)+"px"},titleFontSize:function(t){return Math.min(t/100*15,15)+"px"},titleYPosition:function(t){return Math.min(t/80*20,20)},numberFormatter:function(t){return Math.floor(t).toLocaleString()}},alignment:V.LEFT}}),Nd=od.merge({},yd,{legend:{enabled:!1},meter:{height:8,statusBar:{percentageIndicator:{enabled:!0}}}}),jd=od.merge({},yd,{radar:{axes:{angle:"key",value:"value"},alignment:V.LEFT},tooltip:{gridline:{enabled:!0},valueFormatter:function(t){return null!==t&&void 0!==t?t:"N/A"}}}),Vd=od.merge({},bd,{comboChartTypes:[]}),Bd=od.merge({},yd,{data:od.merge(yd.data,{groupMapsTo:"name"})}),Gd=od.merge({},yd,at,{data:od.merge(yd.data,{groupMapsTo:"name"})}),Ud={chart:yd,axisChart:_d,simpleBarChart:Od,groupedBarChart:xd,stackedBarChart:wd,boxplotChart:Ed,bubbleChart:Pd,bulletChart:kd,lineChart:Md,areaChart:Cd,stackedAreaChart:Ad,scatterChart:Sd,lollipopChart:Td,pieChart:Dd,donutChart:Id,meterChart:Nd,radarChart:jd,gaugeChart:Rd,comboChart:Vd,treemapChart:Bd,circlePackChart:Gd,wordCloudChart:Ld},Hd="$";function zd(){}function Fd(t,e){var n=new zd;if(t instanceof zd)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==e)while(++i<o)n.set(i,t[i]);else while(++i<o)n.set(e(r=t[i],i,t),r)}else if(t)for(var a in t)n.set(a,t[a]);return n}zd.prototype=Fd.prototype={constructor:zd,has:function(t){return Hd+t in this},get:function(t){return this[Hd+t]},set:function(t,e){return this[Hd+t]=e,this},remove:function(t){var e=Hd+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===Hd&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===Hd&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===Hd&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===Hd&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===Hd&&++t;return t},empty:function(){for(var t in this)if(t[0]===Hd)return!1;return!0},each:function(t){for(var e in this)e[0]===Hd&&t(this[e],e.slice(1),this)}};var Wd=Fd;function qd(){}var Yd=Wd.prototype;function Zd(t,e){var n=new qd;if(t instanceof qd)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)while(++r<i)n.add(t[r]);else while(++r<i)n.add(e(t[r],r,t))}return n}qd.prototype=Zd.prototype={constructor:qd,has:Yd.has,add:function(t){return t+="",this[Hd+t]=t,this},remove:Yd.remove,clear:Yd.clear,values:Yd.keys,size:Yd.size,empty:Yd.empty,each:Yd.each};var Xd=function(t){var e=[];for(var n in t)e.push(t[n]);return e},Kd=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},$d=function(t){return 1===t.length&&(t=Qd(t)),{left:function(e,n,r,i){null==r&&(r=0),null==i&&(i=e.length);while(r<i){var o=r+i>>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){null==r&&(r=0),null==i&&(i=e.length);while(r<i){var o=r+i>>>1;t(e[o],n)>0?i=o:r=o+1}return r}}};function Qd(t){return function(e,n){return Kd(t(e),n)}}var Jd=$d(Kd),tv=Jd.right,ev=(Jd.left,tv);var nv=function(t){return null===t?NaN:+t},rv=function(t,e){var n,r,i,o=t.length,a=-1;if(null==e){while(++a<o)if(null!=(n=t[a])&&n>=n){r=i=n;while(++a<o)null!=(n=t[a])&&(r>n&&(r=n),i<n&&(i=n))}}else while(++a<o)if(null!=(n=e(t[a],a,t))&&n>=n){r=i=n;while(++a<o)null!=(n=e(t[a],a,t))&&(r>n&&(r=n),i<n&&(i=n))}return[r,i]},iv=Array.prototype,ov=(iv.slice,iv.map,function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);while(++r<i)o[r]=t+r*n;return o}),av=Math.sqrt(50),sv=Math.sqrt(10),uv=Math.sqrt(2),cv=function(t,e,n){var r,i,o,a,s=-1;if(e=+e,t=+t,n=+n,t===e&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(a=lv(t,e,n))||!isFinite(a))return[];if(a>0){t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));while(++s<i)o[s]=(t+s)*a}else{t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(i=Math.ceil(t-e+1));while(++s<i)o[s]=(t-s)/a}return r&&o.reverse(),o};function lv(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=av?10:o>=sv?5:o>=uv?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=av?10:o>=sv?5:o>=uv?2:1)}function hv(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=av?i*=10:o>=sv?i*=5:o>=uv&&(i*=2),e<t?-i:i}var fv=function(t,e,n){if(null==n&&(n=nv),r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t),s=+n(t[o+1],o+1,t);return a+(s-a)*(i-o)}},pv=function(t,e){var n,r,i=t.length,o=-1;if(null==e){while(++o<i)if(null!=(n=t[o])&&n>=n){r=n;while(++o<i)null!=(n=t[o])&&n>r&&(r=n)}}else while(++o<i)if(null!=(n=e(t[o],o,t))&&n>=n){r=n;while(++o<i)null!=(n=e(t[o],o,t))&&n>r&&(r=n)}return r},dv=function(t,e){var n,r,i=t.length,o=-1;if(null==e){while(++o<i)if(null!=(n=t[o])&&n>=n){r=n;while(++o<i)null!=(n=t[o])&&r>n&&(r=n)}}else while(++o<i)if(null!=(n=e(t[o],o,t))&&n>=n){r=n;while(++o<i)null!=(n=e(t[o],o,t))&&r>n&&(r=n)}return r},vv=function(t,e){var n,r=t.length,i=-1,o=0;if(null==e)while(++i<r)(n=+t[i])&&(o+=n);else while(++i<r)(n=+e(t[i],i,t))&&(o+=n);return o};function gv(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}var mv=Array.prototype,yv=mv.map,_v=mv.slice,bv={name:"implicit"};function Ov(){var t=Wd(),e=[],n=[],r=bv;function i(i){var o=i+"",a=t.get(o);if(!a){if(r!==bv)return r;t.set(o,a=e.push(i))}return n[(a-1)%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=Wd();var r,o,a=-1,s=n.length;while(++a<s)t.has(o=(r=n[a])+"")||t.set(o,e.push(r));return i},i.range=function(t){return arguments.length?(n=_v.call(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return Ov(e,n).unknown(r)},gv.apply(i,arguments),i}function xv(){var t,e,n=Ov().unknown(void 0),r=n.domain,i=n.range,o=[0,1],a=!1,s=0,u=0,c=.5;function l(){var n=r().length,l=o[1]<o[0],h=o[l-0],f=o[1-l];t=(f-h)/Math.max(1,n-s+2*u),a&&(t=Math.floor(t)),h+=(f-h-t*(n-s))*c,e=t*(1-s),a&&(h=Math.round(h),e=Math.round(e));var p=ov(n).map((function(e){return h+t*e}));return i(l?p.reverse():p)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),l()):r()},n.range=function(t){return arguments.length?(o=[+t[0],+t[1]],l()):o.slice()},n.rangeRound=function(t){return o=[+t[0],+t[1]],a=!0,l()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,l()):a},n.padding=function(t){return arguments.length?(s=Math.min(1,u=+t),l()):s},n.paddingInner=function(t){return arguments.length?(s=Math.min(1,t),l()):s},n.paddingOuter=function(t){return arguments.length?(u=+t,l()):u},n.align=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),l()):c},n.copy=function(){return xv(r(),o).round(a).paddingInner(s).paddingOuter(u).align(c)},gv.apply(l(),arguments)}var wv=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function Ev(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Sv(){}var Tv=.7,Mv=1/Tv,Cv="\\s*([+-]?\\d+)\\s*",Av="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Pv="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kv=/^#([0-9a-f]{3,8})$/,Lv=new RegExp("^rgb\\("+[Cv,Cv,Cv]+"\\)$"),Dv=new RegExp("^rgb\\("+[Pv,Pv,Pv]+"\\)$"),Rv=new RegExp("^rgba\\("+[Cv,Cv,Cv,Av]+"\\)$"),Iv=new RegExp("^rgba\\("+[Pv,Pv,Pv,Av]+"\\)$"),Nv=new RegExp("^hsl\\("+[Av,Pv,Pv]+"\\)$"),jv=new RegExp("^hsla\\("+[Av,Pv,Pv,Av]+"\\)$"),Vv={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 Bv(){return this.rgb().formatHex()}function Gv(){return Qv(this).formatHsl()}function Uv(){return this.rgb().formatRgb()}function Hv(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=kv.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?zv(e):3===n?new Yv(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?new Yv(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?new Yv(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=Lv.exec(t))?new Yv(e[1],e[2],e[3],1):(e=Dv.exec(t))?new Yv(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Rv.exec(t))?Fv(e[1],e[2],e[3],e[4]):(e=Iv.exec(t))?Fv(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Nv.exec(t))?$v(e[1],e[2]/100,e[3]/100,1):(e=jv.exec(t))?$v(e[1],e[2]/100,e[3]/100,e[4]):Vv.hasOwnProperty(t)?zv(Vv[t]):"transparent"===t?new Yv(NaN,NaN,NaN,0):null}function zv(t){return new Yv(t>>16&255,t>>8&255,255&t,1)}function Fv(t,e,n,r){return r<=0&&(t=e=n=NaN),new Yv(t,e,n,r)}function Wv(t){return t instanceof Sv||(t=Hv(t)),t?(t=t.rgb(),new Yv(t.r,t.g,t.b,t.opacity)):new Yv}function qv(t,e,n,r){return 1===arguments.length?Wv(t):new Yv(t,e,n,null==r?1:r)}function Yv(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Zv(){return"#"+Kv(this.r)+Kv(this.g)+Kv(this.b)}function Xv(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(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 Kv(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function $v(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new tg(t,e,n,r)}function Qv(t){if(t instanceof tg)return new tg(t.h,t.s,t.l,t.opacity);if(t instanceof Sv||(t=Hv(t)),!t)return new tg;if(t instanceof tg)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new tg(a,s,u,t.opacity)}function Jv(t,e,n,r){return 1===arguments.length?Qv(t):new tg(t,e,n,null==r?1:r)}function tg(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function eg(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 ng(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}wv(Sv,Hv,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Bv,formatHex:Bv,formatHsl:Gv,formatRgb:Uv,toString:Uv}),wv(Yv,qv,Ev(Sv,{brighter:function(t){return t=null==t?Mv:Math.pow(Mv,t),new Yv(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Tv:Math.pow(Tv,t),new Yv(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:Zv,formatHex:Zv,formatRgb:Xv,toString:Xv})),wv(tg,Jv,Ev(Sv,{brighter:function(t){return t=null==t?Mv:Math.pow(Mv,t),new tg(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Tv:Math.pow(Tv,t),new tg(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Yv(eg(t>=240?t-240:t+120,i,r),eg(t,i,r),eg(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var rg=function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<e-1?t[r+2]:2*o-i;return ng((n-r/e)*e,a,i,o,s)}},ig=function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return ng((n-r/e)*e,i,o,a,s)}},og=function(t){return function(){return t}};function ag(t,e){return function(n){return t+n*e}}function sg(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)}}function ug(t){return 1===(t=+t)?cg:function(e,n){return n-e?sg(e,n,t):og(isNaN(e)?n:e)}}function cg(t,e){var n=e-t;return n?ag(t,n):og(isNaN(t)?e:t)}var lg=function t(e){var n=ug(e);function r(t,e){var r=n((t=qv(t)).r,(e=qv(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=cg(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function hg(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=qv(e[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}hg(rg),hg(ig);var fg=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}};function pg(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function dg(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=wg(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}var vg=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}},gg=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},mg=function(t,e){var n,r={},i={};for(n in null!==t&&"object"===typeof t||(t={}),null!==e&&"object"===typeof e||(e={}),e)n in t?r[n]=wg(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},yg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_g=new RegExp(yg.source,"g");function bg(t){return function(){return t}}function Og(t){return function(e){return t(e)+""}}var xg=function(t,e){var n,r,i,o=yg.lastIndex=_g.lastIndex=0,a=-1,s=[],u=[];t+="",e+="";while((n=yg.exec(t))&&(r=_g.exec(e)))(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:gg(n,r)})),o=_g.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?Og(u[0].x):bg(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)s[(n=u[r]).i]=n.x(t);return s.join("")})},wg=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?og(e):("number"===r?gg:"string"===r?(n=Hv(e))?(e=n,lg):xg:e instanceof Hv?lg:e instanceof Date?vg:pg(e)?fg:Array.isArray(e)?dg:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?mg:gg)(t,e)},Eg=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}},Sg=function(t){return function(){return t}},Tg=function(t){return+t},Mg=[0,1];function Cg(t){return t}function Ag(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Sg(isNaN(e)?NaN:.5)}function Pg(t){var e,n=t[0],r=t[t.length-1];return n>r&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function kg(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=Ag(i,r),o=n(a,o)):(r=Ag(r,i),o=n(o,a)),function(t){return o(r(t))}}function Lg(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());while(++a<r)i[a]=Ag(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=ev(t,e,1,r)-1;return o[n](i[n](e))}}function Dg(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Rg(){var t,e,n,r,i,o,a=Mg,s=Mg,u=wg,c=Cg;function l(){return r=Math.min(a.length,s.length)>2?Lg:kg,i=o=null,h}function h(e){return isNaN(e=+e)?n:(i||(i=r(a.map(t),s,u)))(t(c(e)))}return h.invert=function(n){return c(e((o||(o=r(s,a.map(t),gg)))(n)))},h.domain=function(t){return arguments.length?(a=yv.call(t,Tg),c===Cg||(c=Pg(a)),l()):a.slice()},h.range=function(t){return arguments.length?(s=_v.call(t),l()):s.slice()},h.rangeRound=function(t){return s=_v.call(t),u=Eg,l()},h.clamp=function(t){return arguments.length?(c=t?Pg(a):Cg,h):c!==Cg},h.interpolate=function(t){return arguments.length?(u=t,l()):u},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,l()}}function Ig(t,e){return Rg()(t,e)}var Ng=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function jg(t){if(!(e=Ng.exec(t)))throw new Error("invalid format: "+t);var e;return new Vg({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 Vg(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+""}jg.prototype=Vg.prototype,Vg.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 Bg,Gg,Ug,Hg,zg=function(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)]},Fg=function(t){return t=zg(Math.abs(t)),t?t[1]:NaN},Wg=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Fg(e)/3)))-Fg(Math.abs(t)))},qg=function(t,e){return function(n,r){var i=n.length,o=[],a=0,s=t[0],u=0;while(i>0&&s>0){if(u+s+1>r&&(s=Math.max(1,r-u)),o.push(n.substring(i-=s,i+s)),(u+=s+1)>r)break;s=t[a=(a+1)%t.length]}return o.reverse().join(e)}},Yg=function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}},Zg=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(e+1):t},Xg=function(t,e){var n=zg(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(Bg=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+zg(t,Math.max(0,e+o-1))[0]},Kg=function(t,e){var n=zg(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},$g={"%":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 Kg(100*t,e)},r:Kg,s:Xg,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Qg=function(t){return t},Jg=Array.prototype.map,tm=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],em=function(t){var e=void 0===t.grouping||void 0===t.thousands?Qg:qg(Jg.call(t.grouping,Number),t.thousands+""),n=void 0===t.currency?"":t.currency[0]+"",r=void 0===t.currency?"":t.currency[1]+"",i=void 0===t.decimal?".":t.decimal+"",o=void 0===t.numerals?Qg:Yg(Jg.call(t.numerals,String)),a=void 0===t.percent?"%":t.percent+"",s=void 0===t.minus?"-":t.minus+"",u=void 0===t.nan?"NaN":t.nan+"";function c(t){t=jg(t);var c=t.fill,l=t.align,h=t.sign,f=t.symbol,p=t.zero,d=t.width,v=t.comma,g=t.precision,m=t.trim,y=t.type;"n"===y?(v=!0,y="g"):$g[y]||(void 0===g&&(g=12),m=!0,y="g"),(p||"0"===c&&"="===l)&&(p=!0,c="0",l="=");var _="$"===f?n:"#"===f&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",b="$"===f?r:/[%p]/.test(y)?a:"",O=$g[y],x=/[defgprs%]/.test(y);function w(t){var n,r,a,f=_,w=b;if("c"===y)w=O(t)+w,t="";else{t=+t;var E=t<0;if(t=isNaN(t)?u:O(Math.abs(t),g),m&&(t=Zg(t)),E&&0===+t&&(E=!1),f=(E?"("===h?h:s:"-"===h||"("===h?"":h)+f,w=("s"===y?tm[8+Bg/3]:"")+w+(E&&"("===h?")":""),x){n=-1,r=t.length;while(++n<r)if(a=t.charCodeAt(n),48>a||a>57){w=(46===a?i+t.slice(n+1):t.slice(n))+w,t=t.slice(0,n);break}}}v&&!p&&(t=e(t,1/0));var S=f.length+t.length+w.length,T=S<d?new Array(d-S+1).join(c):"";switch(v&&p&&(t=e(T+t,T.length?d-w.length:1/0),T=""),l){case"<":t=f+t+w+T;break;case"=":t=f+T+t+w;break;case"^":t=T.slice(0,S=T.length>>1)+f+t+w+T.slice(S);break;default:t=T+f+t+w;break}return o(t)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),w.toString=function(){return t+""},w}function l(t,e){var n=c((t=jg(t),t.type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Fg(e)/3))),i=Math.pow(10,-r),o=tm[8+r/3];return function(t){return n(i*t)+o}}return{format:c,formatPrefix:l}};function nm(t){return Gg=em(t),Ug=Gg.format,Hg=Gg.formatPrefix,Gg}nm({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var rm=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Fg(e)-Fg(t))+1},im=function(t){return Math.max(0,-Fg(Math.abs(t)))},om=function(t,e,n,r){var i,o=hv(t,e,n);switch(r=jg(null==r?",f":r),r.type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=Wg(o,a))||(r.precision=i),Hg(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=rm(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=im(o))||(r.precision=i-2*("%"===r.type));break}return Ug(r)};function am(t){var e=t.domain;return t.ticks=function(t){var n=e();return cv(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return om(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),o=0,a=i.length-1,s=i[o],u=i[a];return u<s&&(r=s,s=u,u=r,r=o,o=a,a=r),r=lv(s,u,n),r>0?(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,r=lv(s,u,n)):r<0&&(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,r=lv(s,u,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(u/r)*r,e(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(u*r)/r,e(i)),t},t}function sm(){var t=Ig(Cg,Cg);return t.copy=function(){return Dg(t,sm())},gv.apply(t,arguments),am(t)}var um=function(t,e){t=t.slice();var n,r=0,i=t.length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t};function cm(t){return Math.log(t)}function lm(t){return Math.exp(t)}function hm(t){return-Math.log(-t)}function fm(t){return-Math.exp(-t)}function pm(t){return isFinite(t)?+("1e"+t):t<0?0:t}function dm(t){return 10===t?pm:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function vm(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}function gm(t){return function(e){return-t(-e)}}function mm(t){var e,n,r=t(cm,lm),i=r.domain,o=10;function a(){return e=vm(o),n=dm(o),i()[0]<0?(e=gm(e),n=gm(n),t(hm,fm)):t(cm,lm),r}return r.base=function(t){return arguments.length?(o=+t,a()):o},r.domain=function(t){return arguments.length?(i(t),a()):i()},r.ticks=function(t){var r,a=i(),s=a[0],u=a[a.length-1];(r=u<s)&&(f=s,s=u,u=f);var c,l,h,f=e(s),p=e(u),d=null==t?10:+t,v=[];if(!(o%1)&&p-f<d){if(f=Math.round(f)-1,p=Math.round(p)+1,s>0){for(;f<p;++f)for(l=1,c=n(f);l<o;++l)if(h=c*l,!(h<s)){if(h>u)break;v.push(h)}}else for(;f<p;++f)for(l=o-1,c=n(f);l>=1;--l)if(h=c*l,!(h<s)){if(h>u)break;v.push(h)}}else v=cv(f,p,Math.min(p-f,d)).map(n);return r?v.reverse():v},r.tickFormat=function(t,i){if(null==i&&(i=10===o?".0e":","),"function"!==typeof i&&(i=Ug(i)),t===1/0)return i;null==t&&(t=10);var a=Math.max(1,o*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*o<o-.5&&(r*=o),r<=a?i(t):""}},r.nice=function(){return i(um(i(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function ym(){var t=mm(Rg()).domain([1,10]);return t.copy=function(){return Dg(t,ym()).base(t.base())},gv.apply(t,arguments),t}var _m=new Date,bm=new Date;function Om(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r)||!(o>0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a<n&&n<r);return s},i.filter=function(n){return Om((function(e){if(e>=e)while(t(e),!n(e))e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)while(++r<=0)while(e(t,-1),!n(t));else while(--r>=0)while(e(t,1),!n(t));}))},n&&(i.count=function(e,r){return _m.setTime(+e),bm.setTime(+r),t(_m),t(bm),Math.floor(n(_m,bm))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t===0}:function(e){return i.count(0,e)%t===0}):i:null}),i}var xm=Om((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()}));xm.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Om((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 wm=xm,Em=(xm.range,Om((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()}))),Sm=Em,Tm=(Em.range,1e3),Mm=6e4,Cm=36e5,Am=864e5,Pm=6048e5;function km(t){return Om((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())*Mm)/Pm}))}var Lm=km(0),Dm=km(1),Rm=km(2),Im=km(3),Nm=km(4),jm=km(5),Vm=km(6),Bm=(Lm.range,Dm.range,Rm.range,Im.range,Nm.range,jm.range,Vm.range,Om((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())*Mm)/Am}),(function(t){return t.getDate()-1}))),Gm=Bm,Um=(Bm.range,Om((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Tm-t.getMinutes()*Mm)}),(function(t,e){t.setTime(+t+e*Cm)}),(function(t,e){return(e-t)/Cm}),(function(t){return t.getHours()}))),Hm=Um,zm=(Um.range,Om((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Tm)}),(function(t,e){t.setTime(+t+e*Mm)}),(function(t,e){return(e-t)/Mm}),(function(t){return t.getMinutes()}))),Fm=zm,Wm=(zm.range,Om((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*Tm)}),(function(t,e){return(e-t)/Tm}),(function(t){return t.getUTCSeconds()}))),qm=Wm,Ym=(Wm.range,Om((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t})));Ym.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Om((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Ym:null};var Zm=Ym;Ym.range;function Xm(t){return Om((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)/Pm}))}var Km=Xm(0),$m=Xm(1),Qm=Xm(2),Jm=Xm(3),ty=Xm(4),ey=Xm(5),ny=Xm(6),ry=(Km.range,$m.range,Qm.range,Jm.range,ty.range,ey.range,ny.range,Om((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/Am}),(function(t){return t.getUTCDate()-1}))),iy=ry,oy=(ry.range,Om((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()})));oy.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Om((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 ay=oy;oy.range;function sy(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 uy(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 cy(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function ly(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,c=_y(i),l=by(i),h=_y(o),f=by(o),p=_y(a),d=by(a),v=_y(s),g=by(s),m=_y(u),y=by(u),_={a:D,A:R,b:I,B:N,c:null,d:Uy,e:Uy,f:qy,H:Hy,I:zy,j:Fy,L:Wy,m:Yy,M:Zy,p:j,q:V,Q:x_,s:w_,S:Xy,u:Ky,U:$y,V:Qy,w:Jy,W:t_,x:null,X:null,y:e_,Y:n_,Z:r_,"%":O_},b={a:B,A:G,b:U,B:H,c:null,d:i_,e:i_,f:c_,H:o_,I:a_,j:s_,L:u_,m:l_,M:h_,p:z,q:F,Q:x_,s:w_,S:f_,u:p_,U:d_,V:v_,w:g_,W:m_,x:null,X:null,y:y_,Y:__,Z:b_,"%":O_},O={a:T,A:M,b:C,B:A,c:P,d:ky,e:ky,f:jy,H:Dy,I:Dy,j:Ly,L:Ny,m:Py,M:Ry,p:S,q:Ay,Q:By,s:Gy,S:Iy,u:xy,U:wy,V:Ey,w:Oy,W:Sy,x:k,X:L,y:My,Y:Ty,Z:Cy,"%":Vy};function x(t,e){return function(n){var r,i,o,a=[],s=-1,u=0,c=t.length;n instanceof Date||(n=new Date(+n));while(++s<c)37===t.charCodeAt(s)&&(a.push(t.slice(u,s)),null!=(i=py[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),u=s+1);return a.push(t.slice(u,s)),a.join("")}}function w(t,e){return function(n){var r,i,o=cy(1900,void 0,1),a=E(o,t,n+="",0);if(a!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(!e||"Z"in o||(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=uy(cy(o.y,0,1)),i=r.getUTCDay(),r=i>4||0===i?$m.ceil(r):$m(r),r=iy.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=sy(cy(o.y,0,1)),i=r.getDay(),r=i>4||0===i?Dm.ceil(r):Dm(r),r=Gm.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?uy(cy(o.y,0,1)).getUTCDay():sy(cy(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,uy(o)):sy(o)}}function E(t,e,n,r){var i,o,a=0,s=e.length,u=n.length;while(a<s){if(r>=u)return-1;if(i=e.charCodeAt(a++),37===i){if(i=e.charAt(a++),o=O[i in py?e.charAt(a++):i],!o||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function S(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=l[r[0].toLowerCase()],n+r[0].length):-1}function T(t,e,n){var r=p.exec(e.slice(n));return r?(t.w=d[r[0].toLowerCase()],n+r[0].length):-1}function M(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=f[r[0].toLowerCase()],n+r[0].length):-1}function C(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=y[r[0].toLowerCase()],n+r[0].length):-1}function A(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=g[r[0].toLowerCase()],n+r[0].length):-1}function P(t,n,r){return E(t,e,n,r)}function k(t,e,r){return E(t,n,e,r)}function L(t,e,n){return E(t,r,e,n)}function D(t){return a[t.getDay()]}function R(t){return o[t.getDay()]}function I(t){return u[t.getMonth()]}function N(t){return s[t.getMonth()]}function j(t){return i[+(t.getHours()>=12)]}function V(t){return 1+~~(t.getMonth()/3)}function B(t){return a[t.getUTCDay()]}function G(t){return o[t.getUTCDay()]}function U(t){return u[t.getUTCMonth()]}function H(t){return s[t.getUTCMonth()]}function z(t){return i[+(t.getUTCHours()>=12)]}function F(t){return 1+~~(t.getUTCMonth()/3)}return(_.x=x(n,_),_.X=x(r,_),_.c=x(e,_),b.x=x(n,b),b.X=x(r,b),b.c=x(e,b),{format:function(t){var e=x(t+="",_);return e.toString=function(){return t},e},parse:function(t){var e=w(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=w(t+="",!0);return e.toString=function(){return t},e}})}var hy,fy,py={"-":"",_:" ",0:"0"},dy=/^\s*\d+/,vy=/^%/,gy=/[\\^$*+?|[\]().{}]/g;function my(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function yy(t){return t.replace(gy,"\\$&")}function _y(t){return new RegExp("^(?:"+t.map(yy).join("|")+")","i")}function by(t){var e={},n=-1,r=t.length;while(++n<r)e[t[n].toLowerCase()]=n;return e}function Oy(t,e,n){var r=dy.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function xy(t,e,n){var r=dy.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function wy(t,e,n){var r=dy.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Ey(t,e,n){var r=dy.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Sy(t,e,n){var r=dy.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Ty(t,e,n){var r=dy.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function My(t,e,n){var r=dy.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Cy(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 Ay(t,e,n){var r=dy.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Py(t,e,n){var r=dy.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ky(t,e,n){var r=dy.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Ly(t,e,n){var r=dy.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Dy(t,e,n){var r=dy.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Ry(t,e,n){var r=dy.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Iy(t,e,n){var r=dy.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Ny(t,e,n){var r=dy.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function jy(t,e,n){var r=dy.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Vy(t,e,n){var r=vy.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function By(t,e,n){var r=dy.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Gy(t,e,n){var r=dy.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Uy(t,e){return my(t.getDate(),e,2)}function Hy(t,e){return my(t.getHours(),e,2)}function zy(t,e){return my(t.getHours()%12||12,e,2)}function Fy(t,e){return my(1+Gm.count(wm(t),t),e,3)}function Wy(t,e){return my(t.getMilliseconds(),e,3)}function qy(t,e){return Wy(t,e)+"000"}function Yy(t,e){return my(t.getMonth()+1,e,2)}function Zy(t,e){return my(t.getMinutes(),e,2)}function Xy(t,e){return my(t.getSeconds(),e,2)}function Ky(t){var e=t.getDay();return 0===e?7:e}function $y(t,e){return my(Lm.count(wm(t)-1,t),e,2)}function Qy(t,e){var n=t.getDay();return t=n>=4||0===n?Nm(t):Nm.ceil(t),my(Nm.count(wm(t),t)+(4===wm(t).getDay()),e,2)}function Jy(t){return t.getDay()}function t_(t,e){return my(Dm.count(wm(t)-1,t),e,2)}function e_(t,e){return my(t.getFullYear()%100,e,2)}function n_(t,e){return my(t.getFullYear()%1e4,e,4)}function r_(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+my(e/60|0,"0",2)+my(e%60,"0",2)}function i_(t,e){return my(t.getUTCDate(),e,2)}function o_(t,e){return my(t.getUTCHours(),e,2)}function a_(t,e){return my(t.getUTCHours()%12||12,e,2)}function s_(t,e){return my(1+iy.count(ay(t),t),e,3)}function u_(t,e){return my(t.getUTCMilliseconds(),e,3)}function c_(t,e){return u_(t,e)+"000"}function l_(t,e){return my(t.getUTCMonth()+1,e,2)}function h_(t,e){return my(t.getUTCMinutes(),e,2)}function f_(t,e){return my(t.getUTCSeconds(),e,2)}function p_(t){var e=t.getUTCDay();return 0===e?7:e}function d_(t,e){return my(Km.count(ay(t)-1,t),e,2)}function v_(t,e){var n=t.getUTCDay();return t=n>=4||0===n?ty(t):ty.ceil(t),my(ty.count(ay(t),t)+(4===ay(t).getUTCDay()),e,2)}function g_(t){return t.getUTCDay()}function m_(t,e){return my($m.count(ay(t)-1,t),e,2)}function y_(t,e){return my(t.getUTCFullYear()%100,e,2)}function __(t,e){return my(t.getUTCFullYear()%1e4,e,4)}function b_(){return"+0000"}function O_(){return"%"}function x_(t){return+t}function w_(t){return Math.floor(+t/1e3)}function E_(t){return hy=ly(t),fy=hy.format,hy.parse,hy.utcFormat,hy.utcParse,hy}E_({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var S_=1e3,T_=60*S_,M_=60*T_,C_=24*M_,A_=7*C_,P_=30*C_,k_=365*C_;function L_(t){return new Date(t)}function D_(t){return t instanceof Date?+t:+new Date(+t)}function R_(t,e,n,r,i,o,a,s,u){var c=Ig(Cg,Cg),l=c.invert,h=c.domain,f=u(".%L"),p=u(":%S"),d=u("%I:%M"),v=u("%I %p"),g=u("%a %d"),m=u("%b %d"),y=u("%B"),_=u("%Y"),b=[[a,1,S_],[a,5,5*S_],[a,15,15*S_],[a,30,30*S_],[o,1,T_],[o,5,5*T_],[o,15,15*T_],[o,30,30*T_],[i,1,M_],[i,3,3*M_],[i,6,6*M_],[i,12,12*M_],[r,1,C_],[r,2,2*C_],[n,1,A_],[e,1,P_],[e,3,3*P_],[t,1,k_]];function O(s){return(a(s)<s?f:o(s)<s?p:i(s)<s?d:r(s)<s?v:e(s)<s?n(s)<s?g:m:t(s)<s?y:_)(s)}function x(e,n,r,i){if(null==e&&(e=10),"number"===typeof e){var o=Math.abs(r-n)/e,a=$d((function(t){return t[2]})).right(b,o);a===b.length?(i=hv(n/k_,r/k_,e),e=t):a?(a=b[o/b[a-1][2]<b[a][2]/o?a-1:a],i=a[1],e=a[0]):(i=Math.max(hv(n,r,e),1),e=s)}return null==i?e:e.every(i)}return c.invert=function(t){return new Date(l(t))},c.domain=function(t){return arguments.length?h(yv.call(t,D_)):h().map(L_)},c.ticks=function(t,e){var n,r=h(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=x(t,i,o,e),n=n?n.range(i,o+1):[],a?n.reverse():n},c.tickFormat=function(t,e){return null==e?O:u(e)},c.nice=function(t,e){var n=h();return(t=x(t,n[0],n[n.length-1],e))?h(um(n,t)):c},c.copy=function(){return Dg(c,R_(t,e,n,r,i,o,a,s,u))},c}var I_=function(){return gv.apply(R_(wm,Sm,Lm,Gm,Hm,Fm,qm,Zm,fy).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},N_=Om((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()})),j_=(N_.range,Om((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*Cm)}),(function(t,e){return(e-t)/Cm}),(function(t){return t.getUTCHours()}))),V_=(j_.range,Om((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*Mm)}),(function(t,e){return(e-t)/Mm}),(function(t){return t.getUTCMinutes()})));V_.range;var B_=Array.prototype.slice,G_=function(t){return function(){return t}},U_=function(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],s=a.length;o<i;++o)for(r=a,a=t[e[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},H_=function(t){var e=t.length,n=new Array(e);while(--e>=0)n[e]=e;return n};function z_(t,e){return t[e]}var F_=function(){var t=G_([]),e=H_,n=U_,r=z_;function i(i){var o,a,s=t.apply(this,arguments),u=i.length,c=s.length,l=new Array(c);for(o=0;o<c;++o){for(var h,f=s[o],p=l[o]=new Array(u),d=0;d<u;++d)p[d]=h=[0,+r(i[d],f,d,i)],h.data=i[d];p.key=f}for(o=0,a=e(l);o<c;++o)l[a[o]].index=o;return n(l,a),l}return i.keys=function(e){return arguments.length?(t="function"===typeof e?e:G_(B_.call(e)),i):t},i.value=function(t){return arguments.length?(r="function"===typeof t?t:G_(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?H_:"function"===typeof t?t:G_(B_.call(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?U_:t,i):n},i},W_=function(){return W_=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},W_.apply(this,arguments)},q_=function(){function t(t){this.state={options:{}},this.colorScale={},this.colorClassNames={},this.services=t}return t.prototype.getAllDataFromDomain=function(t){if(!this.getData())return null;var e=this.getOptions(),n=this.getData(),r=this.getDataGroups(),i=od.getProperty(e,"data").groupMapsTo,o=od.getProperty(e,"axes");return t&&(n=n.filter((function(e){return t.includes(e.group)}))),o&&Object.keys(o).forEach((function(t){var e=o[t].mapsTo,r=o[t].scaleType;if(r!==N.LINEAR&&r!==N.LOG||(n=n.map((function(t){var n;return W_(W_({},t),(n={},n[e]=null===t[e]?t[e]:Number(t[e]),n))}))),e&&o[t].domain)if(r===N.LABELS)n=n.filter((function(n){return o[t].domain.includes(n[e])}));else{var i=o[t].domain,a=i[0],s=i[1];n=n.filter((function(t){return!(e in t)||t[e]>=a&&t[e]<=s}))}})),n.filter((function(t){return r.find((function(e){return e.name===t[i]}))}))},t.prototype.getDisplayData=function(t){if(!this.get("data"))return null;var e=ct.items.status.ACTIVE,n=this.getDataGroups(t),r=this.getOptions().data.groupMapsTo,i=this.getAllDataFromDomain(t);return i.filter((function(t){return n.find((function(n){return n.name===t[r]&&n.status===e}))}))},t.prototype.getData=function(){return this.get("data")},t.prototype.isDataEmpty=function(){return!this.getData().length},t.prototype.setData=function(t){var e=this.sanitize(od.clone(t)),n=this.generateDataGroups(e);return this.set({data:e,dataGroups:n}),e},t.prototype.getDataGroups=function(t){var e=od.getProperty(this.getOptions(),"data","loading");return e?[]:t?this.get("dataGroups").filter((function(e){return t.includes(e.name)})):this.get("dataGroups")},t.prototype.getActiveDataGroups=function(t){var e=ct.items.status.ACTIVE;return this.getDataGroups(t).filter((function(t){return t.status===e}))},t.prototype.getDataGroupNames=function(t){var e=this.getDataGroups(t);return e.map((function(t){return t.name}))},t.prototype.getActiveDataGroupNames=function(t){var e=this.getActiveDataGroups(t);return e.map((function(t){return t.name}))},t.prototype.getGroupedData=function(t){var e=this.getDisplayData(t),n={},r=this.getOptions().data.groupMapsTo;return e.map((function(t){var e=t[r];null!==n[e]&&void 0!==n[e]?n[e].push(t):n[e]=[t]})),Object.keys(n).map((function(t){return{name:t,data:n[t]}}))},t.prototype.getDataValuesGroupedByKeys=function(t){var e=this,n=this.getOptions(),r=n.data.groupMapsTo,i=this.getDisplayData(t),o=Wd(i,(function(t){var n=e.services.cartesianScales.getDomainIdentifier(t);return t[n]})).keys(),a=this.services.cartesianScales.domainAxisPosition,s=n.axes[a].scaleType;s===N.TIME?o.sort((function(t,e){var n=new Date(t),r=new Date(e);return n-r})):s!==N.LOG&&s!==N.LINEAR||o.sort((function(t,e){return t-e}));var u=this.getDataGroupNames();return o.map((function(t){var n={sharedStackKey:t};return u.forEach((function(o){var a=i.find((function(n){var i=e.services.cartesianScales.getDomainIdentifier(n);return n[r]===o&&n[i].toString()===t})),s=e.services.cartesianScales.getRangeIdentifier(n);n[o]=a?a[s]:null})),n}))},t.prototype.getStackedData=function(t){var e=t.percentage,n=void 0!==e&&e,r=t.groups,i=void 0===r?null:r,o=this.getOptions(),a=o.data.groupMapsTo,s=this.getDataGroupNames(i),u=this.getDataValuesGroupedByKeys(i);if(n){var c=od.fromPairs(u.map((function(t){return[t.sharedStackKey,0]})));u.forEach((function(t){s.forEach((function(e){c[t.sharedStackKey]+=t[e]}))})),u.forEach((function(t){s.forEach((function(e){c[t.sharedStackKey]?t[e]=t[e]/c[t.sharedStackKey]*100:t[e]=0}))}))}return F_().keys(s)(u).map((function(t,e){return Object.keys(t).filter((function(t){return!isNaN(t)})).map((function(n){var r=t[n];return r[a]=s[e],r}))}))},t.prototype.getOptions=function(){return this.state.options},t.prototype.set=function(t,e){this.state=Object.assign({},this.state,t);var n=Object.assign({skipUpdate:!1,animate:!0},e);n.skipUpdate||this.update(n.animate)},t.prototype.get=function(t){return t?this.state[t]:this.state},t.prototype.setOptions=function(t){var e=this.getOptions();od.updateLegendAdditionalItems(e,t),this.set({options:od.merge(e,t)})},t.prototype.update=function(t){void 0===t&&(t=!0),this.getDisplayData()&&(this.updateAllDataGroups(),this.setCustomColorScale(),this.setColorClassNames(),this.services.events.dispatchEvent(et.Model.UPDATE,{animate:t}))},t.prototype.toggleDataLabel=function(t){var e=ct.items.status,n=e.ACTIVE,r=e.DISABLED,i=this.getDataGroups(),o=i.some((function(t){return t.status===r})),a=i.filter((function(t){return t.status===n}));if(o)if(1===a.length&&a[0].name===t)i.forEach((function(t,e){i[e].status=n}));else{var s=i.findIndex((function(e){return e.name===t}));i[s].status=i[s].status===r?n:r}else i.forEach((function(e,o){i[o].status=e.name===t?n:r}));var u=i.filter((function(t){return t.status===n})),c=this.getOptions(),l=i.some((function(t){return t.status===r}));c.data.selectedGroups=l?u.map((function(t){return t.name})):[],this.services.events.dispatchEvent(et.Legend.ITEMS_UPDATE,{dataGroups:i}),this.set({dataGroups:i})},t.prototype.getIsFilled=function(t,e,n,r){var i=this.getOptions();return i.getIsFilled?i.getIsFilled(t,e,n,r):r},t.prototype.getFillColor=function(t,e,n){var r=this.getOptions(),i=od.getProperty(this.colorScale,t);return r.getFillColor?r.getFillColor(t,e,n,i):i},t.prototype.getStrokeColor=function(t,e,n){var r=this.getOptions(),i=od.getProperty(this.colorScale,t);return r.getStrokeColor?r.getStrokeColor(t,e,n,i):i},t.prototype.isUserProvidedColorScaleValid=function(){var t=od.getProperty(this.getOptions(),"color","scale"),e=this.getDataGroups();return null!=t&&0!=Object.keys(t).length&&e.some((function(e){return Object.keys(t).includes(e.name)}))},t.prototype.getColorClassName=function(t){var e=this.colorClassNames(t.dataGroupName),n=t.originalClassName;return t.classNameTypes.forEach((function(r){return n=t.originalClassName?n+" "+r+"-"+e:r+"-"+e})),n},t.prototype.getStatus=function(){return null},t.prototype.getAllDataGroupsNames=function(){return this.allDataGroups},t.prototype.transformToTabularData=function(t){console.warn("We've updated the charting data format to be tabular by default. The current format you're using is deprecated and will be removed in v1.0, read more here https://carbon-design-system.github.io/carbon-charts/?path=/story/docs-tutorials--tabular-data-format");var e=[],n=t.datasets,r=t.labels;return n.forEach((function(t){t.data.forEach((function(n,i){var o,a=od.getProperty(t,"label");if(null===a){var s=od.getProperty(r,i);o=s||"Ungrouped"}else o=a;var u={group:o,key:r[i]};isNaN(n)?(u["value"]=n.value,u["date"]=n.date):u["value"]=n,e.push(u)}))})),e},t.prototype.getTabularData=function(t){return Array.isArray(t)?t:this.transformToTabularData(t)},t.prototype.sanitize=function(t){return t=this.getTabularData(t),t},t.prototype.updateAllDataGroups=function(){var t=this;this.allDataGroups?this.getDataGroupNames().forEach((function(e){-1===t.allDataGroups.indexOf(e)&&t.allDataGroups.push(e)})):this.allDataGroups=this.getDataGroupNames()},t.prototype.generateDataGroups=function(t){var e=this.getOptions().data.groupMapsTo,n=ct.items.status,r=n.ACTIVE,i=n.DISABLED,o=this.getOptions(),a=Wd(t,(function(t){return t[e]})).keys();if(o.data.selectedGroups.length){var s=o.data.selectedGroups.every((function(t){return a.includes(t)}));s||(o.data.selectedGroups=[])}var u=function(t){return!o.data.selectedGroups.length||o.data.selectedGroups.includes(t)?r:i};return a.map((function(t){return{name:t,status:u(t)}}))},t.prototype.setCustomColorScale=function(){var t=this;if(this.isUserProvidedColorScaleValid()){var e=this.getOptions(),n=od.getProperty(e,"color","scale");Object.keys(n).forEach((function(e){t.allDataGroups.includes(e)||console.warn('"'+e+'" does not exist in data groups.')}));var r=this.allDataGroups.filter((function(t){return n[t]}));r.forEach((function(e){return t.colorScale[e]=n[e]}))}},t.prototype.setColorClassNames=function(){var t=od.getProperty(this.getOptions(),"color","pairing"),e=od.getProperty(t,"numberOfVariants");(!e||e<this.allDataGroups.length)&&(e=this.allDataGroups.length);var n=od.getProperty(t,"option"),r=st.pairingOptions,i=e>5?14:e;n=n<=r[i+"-color"]?n:1;var o=this.allDataGroups.map((function(t,e){return i+"-"+n+"-"+(e%14+1)}));this.colorClassNames=Ov().range(o).domain(this.allDataGroups)},t}(),Y_=function(){function t(t,e){this.model=t,this.services=e,this.init()}return t.prototype.init=function(){},t.prototype.update=function(){},t.prototype.setModel=function(t){this.model=t},t.prototype.setServices=function(t){this.services=t},t}();function Z_(){}var X_=function(t){return null==t?Z_:function(){return this.querySelector(t)}},K_=function(t){"function"!==typeof t&&(t=X_(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=e[i],u=s.length,c=r[i]=new Array(u),l=0;l<u;++l)(o=s[l])&&(a=t.call(o,o.__data__,l,s))&&("__data__"in o&&(a.__data__=o.__data__),c[l]=a);return new TO(r,this._parents)};function $_(){return[]}var Q_=function(t){return null==t?$_:function(){return this.querySelectorAll(t)}},J_=function(t){"function"!==typeof t&&(t=Q_(t));for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,s=e[o],u=s.length,c=0;c<u;++c)(a=s[c])&&(r.push(t.call(a,a.__data__,c,s)),i.push(a));return new TO(r,i)},tb=function(t){return function(){return this.matches(t)}},eb=function(t){"function"!==typeof t&&(t=tb(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,u=r[i]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&u.push(o);return new TO(r,this._parents)},nb=function(t){return new Array(t.length)},rb=function(){return new TO(this._enter||this._groups.map(nb),this._parents)};function ib(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}ib.prototype={constructor:ib,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)}};var ob=function(t){return function(){return t}},ab="$";function sb(t,e,n,r,i,o){for(var a,s=0,u=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new ib(t,o[s]);for(;s<u;++s)(a=e[s])&&(i[s]=a)}function ub(t,e,n,r,i,o,a){var s,u,c,l={},h=e.length,f=o.length,p=new Array(h);for(s=0;s<h;++s)(u=e[s])&&(p[s]=c=ab+a.call(u,u.__data__,s,e),c in l?i[s]=u:l[c]=u);for(s=0;s<f;++s)c=ab+a.call(t,o[s],s,o),(u=l[c])?(r[s]=u,u.__data__=o[s],l[c]=null):n[s]=new ib(t,o[s]);for(s=0;s<h;++s)(u=e[s])&&l[p[s]]===u&&(i[s]=u)}var cb=function(t,e){if(!t)return p=new Array(this.size()),c=-1,this.each((function(t){p[++c]=t})),p;var n=e?ub:sb,r=this._parents,i=this._groups;"function"!==typeof t&&(t=ob(t));for(var o=i.length,a=new Array(o),s=new Array(o),u=new Array(o),c=0;c<o;++c){var l=r[c],h=i[c],f=h.length,p=t.call(l,l&&l.__data__,c,r),d=p.length,v=s[c]=new Array(d),g=a[c]=new Array(d),m=u[c]=new Array(f);n(l,h,v,g,m,p,e);for(var y,_,b=0,O=0;b<d;++b)if(y=v[b]){b>=O&&(O=b+1);while(!(_=g[O])&&++O<d);y._next=_||null}}return a=new TO(a,r),a._enter=s,a._exit=u,a},lb=function(){return new TO(this._exit||this._groups.map(nb),this._parents)},hb=function(t,e,n){var r=this.enter(),i=this,o=this.exit();return r="function"===typeof t?t(r):r.append(t+""),null!=e&&(i=e(i)),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},fb=function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,c=e[s],l=n[s],h=c.length,f=a[s]=new Array(h),p=0;p<h;++p)(u=c[p]||l[p])&&(f[p]=u);for(;s<r;++s)a[s]=e[s];return new TO(a,this._parents)},pb=function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},db=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=vb);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],u=s.length,c=i[o]=new Array(u),l=0;l<u;++l)(a=s[l])&&(c[l]=a);c.sort(e)}return new TO(i,this._parents).order()};function vb(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var gb=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},mb=function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},yb=function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},_b=function(){var t=0;return this.each((function(){++t})),t},bb=function(){return!this.node()},Ob=function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,s=o.length;a<s;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},xb="http://www.w3.org/1999/xhtml",wb={svg:"http://www.w3.org/2000/svg",xhtml:xb,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Eb=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),wb.hasOwnProperty(e)?{space:wb[e],local:t}:t};function Sb(t){return function(){this.removeAttribute(t)}}function Tb(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Mb(t,e){return function(){this.setAttribute(t,e)}}function Cb(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ab(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Pb(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)}}var kb=function(t,e){var n=Eb(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?Tb:Sb:"function"===typeof e?n.local?Pb:Ab:n.local?Cb:Mb)(n,e))},Lb=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function Db(t){return function(){this.style.removeProperty(t)}}function Rb(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ib(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}var Nb=function(t,e,n){return arguments.length>1?this.each((null==e?Db:"function"===typeof e?Ib:Rb)(t,e,null==n?"":n)):jb(this.node(),t)};function jb(t,e){return t.style.getPropertyValue(e)||Lb(t).getComputedStyle(t,null).getPropertyValue(e)}function Vb(t){return function(){delete this[t]}}function Bb(t,e){return function(){this[t]=e}}function Gb(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}var Ub=function(t,e){return arguments.length>1?this.each((null==e?Vb:"function"===typeof e?Gb:Bb)(t,e)):this.node()[t]};function Hb(t){return t.trim().split(/^|\s+/)}function zb(t){return t.classList||new Fb(t)}function Fb(t){this._node=t,this._names=Hb(t.getAttribute("class")||"")}function Wb(t,e){var n=zb(t),r=-1,i=e.length;while(++r<i)n.add(e[r])}function qb(t,e){var n=zb(t),r=-1,i=e.length;while(++r<i)n.remove(e[r])}function Yb(t){return function(){Wb(this,t)}}function Zb(t){return function(){qb(this,t)}}function Xb(t,e){return function(){(e.apply(this,arguments)?Wb:qb)(this,t)}}Fb.prototype={add:function(t){var e=this._names.indexOf(t);e<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 Kb=function(t,e){var n=Hb(t+"");if(arguments.length<2){var r=zb(this.node()),i=-1,o=n.length;while(++i<o)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof e?Xb:e?Yb:Zb)(n,e))};function $b(){this.textContent=""}function Qb(t){return function(){this.textContent=t}}function Jb(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}var tO=function(t){return arguments.length?this.each(null==t?$b:("function"===typeof t?Jb:Qb)(t)):this.node().textContent};function eO(){this.innerHTML=""}function nO(t){return function(){this.innerHTML=t}}function rO(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}var iO=function(t){return arguments.length?this.each(null==t?eO:("function"===typeof t?rO:nO)(t)):this.node().innerHTML};function oO(){this.nextSibling&&this.parentNode.appendChild(this)}var aO=function(){return this.each(oO)};function sO(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var uO=function(){return this.each(sO)};function cO(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===xb&&e.documentElement.namespaceURI===xb?e.createElement(t):e.createElementNS(n,t)}}function lO(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var hO=function(t){var e=Eb(t);return(e.local?lO:cO)(e)},fO=function(t){var e="function"===typeof t?t:hO(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))};function pO(){return null}var dO=function(t,e){var n="function"===typeof t?t:hO(t),r=null==e?pO:"function"===typeof e?e:X_(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))};function vO(){var t=this.parentNode;t&&t.removeChild(this)}var gO=function(){return this.each(vO)};function mO(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function yO(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var _O=function(t){return this.select(t?yO:mO)},bO=function(t){return arguments.length?this.property("__data__",t):this.node().__data__};function OO(t,e,n){var r=Lb(t),i=r.CustomEvent;"function"===typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function xO(t,e){return function(){return OO(this,t,e)}}function wO(t,e){return function(){return OO(this,t,e.apply(this,arguments))}}var EO=function(t,e){return this.each(("function"===typeof e?wO:xO)(t,e))},SO=[null];function TO(t,e){this._groups=t,this._parents=e}function MO(){return new TO([[document.documentElement]],SO)}TO.prototype=MO.prototype={constructor:TO,select:K_,selectAll:J_,filter:eb,data:cb,enter:rb,exit:lb,join:hb,merge:fb,order:pb,sort:db,call:gb,nodes:mb,node:yb,size:_b,empty:bb,each:Ob,attr:kb,style:Nb,property:Ub,classed:Kb,text:tO,html:iO,raise:aO,lower:uO,append:fO,insert:dO,remove:gO,clone:_O,datum:bO,on:rd,dispatch:EO};var CO,AO,PO=MO,kO=function(t){return"string"===typeof t?new TO([[document.querySelector(t)]],[document.documentElement]):new TO([[t]],SO)},LO={prefix:"bx",selectorTabbable:"\n a[href], area[href], input:not([disabled]):not([tabindex='-1']),\n button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),\n textarea:not([disabled]):not([tabindex='-1']),\n iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]\n "},DO=LO,RO=DO,IO=n("2da1"),NO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jO="DONT_STYLE_ME_css_styles_verifier",VO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return NO(e,t),e.getSVGElementSize=function(t,e){t.attr||(t=kO(t));var n,r,i,o,a={width:0,height:0},s=function(t){t&&Object.keys(a).forEach((function(e){if(t[e]){var n=t[e],r=parseFloat(n);n&&r>a[e]&&-1===(""+n).indexOf("%")&&(a[e]=r)}}))},u={width:t.attr("width"),height:t.attr("height")};try{n=t.node().getBBox(),r={width:n.width,height:n.height}}catch(h){}try{i=t.node().getBoundingClientRect(),o={width:i.width,height:i.height}}catch(h){}var c={width:t.node().clientWidth,height:t.node().clientHeight};if(e){if(e.useAttrs&&(s(u),a.width>0&&a.height>0))return a;if(e.useClientDimensions&&(s(c),a.width>0&&a.height>0))return c;if(e.useBBox&&(s(r),a.width>0&&a.height>0))return r;if(e.useBoundingRect&&(s(o),a.width>0&&a.height>0))return o}try{var l={width:od.getProperty(t.node(),"width","baseVal","value"),height:od.getProperty(t.node(),"height","baseVal","value")};s(l)}catch(h){s(c),s(r),s(u)}return a},e.appendOrSelect=function(t,e){var n=t.select(""+e);if(n.empty()){var r=e.split("#"),i=void 0,o=void 0;return 2===r.length?(i=r[0],r=r[1].split("."),o=r[0]):(r=e.split("."),i=r[0]),t.append(i).attr("id",o).attr("class",r.slice(1).join(" "))}return n},e.getAlignmentOffset=function(t,n,r){var i=e.getSVGElementSize(n,{useBBox:!0}),o=e.getSVGElementSize(r,{useAttr:!0}).width,a=0;return t===V.CENTER?a=Math.floor((o-i.width)/2):t===V.RIGHT&&(a=o-i.width),a},e.prototype.init=function(){this.styleHolderElement(),this.addSVGElement(),this.verifyCSSStylesBeingApplied(),this.model.getOptions().resizable&&this.addResizeListener(),this.addHolderListeners()},e.prototype.update=function(){this.styleHolderElement()},e.prototype.styleHolderElement=function(){var t=this.getHolder();kO(this.getHolder()).classed(RO.prefix+"--chart-holder",!0);var e=this.model.getOptions(),n=e.width,r=e.height;n!==this.width&&(t.style.width=n,this.width=n),r!==this.height&&(t.style.height=r,this.height=r)},e.prototype.getHolder=function(){return this.model.get("holder")},e.prototype.addSVGElement=function(){var t=this.model.getOptions(),e=od.getProperty(t,"style","prefix"),n=kO(this.getHolder()).append("svg").classed(RO.prefix+"--"+e+"--chart-svg",!0).attr("height","100%").attr("width","100%");n.append("g").attr("class",jO),this.svg=n.node()},e.prototype.verifyCSSStylesBeingApplied=function(){var t=this;setTimeout((function(){var e=kO(t.svg).select("g."+jO).node(),n=getComputedStyle(e);"hidden"===n.getPropertyValue("overflow")&&"0"===n.getPropertyValue("opacity")||console.error("Missing CSS styles for Carbon Charts. Please read the Carbon Charts getting started guide.")}))},e.prototype.setSVGMaxHeight=function(){if(!this.model.getOptions().height){var t=e.getSVGElementSize(kO(this.svg),{useBBox:!0}).height,n=kO(this.svg).attr("class"),r=kO(this.svg).selectAll("."+n+" > svg"),i=0;r.nodes().forEach((function(t){i+=Number(e.getSVGElementSize(kO(t),{useBBox:!0}).height)})),i<=t?kO(this.svg).attr("height",i):kO(this.svg).attr("height","100%")}},e.prototype.getMainSVG=function(){return this.svg},e.prototype.addHolderListeners=function(){var t=this,e=this.getHolder();e&&kO(e).on("mouseover",(function(){t.services.events.dispatchEvent(et.Chart.MOUSEOVER)})).on("mouseout",(function(){t.services.events.dispatchEvent(et.Chart.MOUSEOUT)}))},e.prototype.addResizeListener=function(){var t=this,e=this.getHolder();if(e){var n=e.clientWidth,r=e.clientHeight,i=od.debounce((function(i,o){e&&(Math.abs(n-e.clientWidth)>1||Math.abs(r-e.clientHeight)>1)&&(n=e.clientWidth,r=e.clientHeight,t.services.events.dispatchEvent(et.Chart.RESIZE))}),12.5),o=new IO["a"](i);o.observe(e)}},e}(Y_),BO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),GO=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return BO(e,t),e.prototype.init=function(){this.documentFragment=document.createDocumentFragment()},e.prototype.addEventListener=function(t,e){this.documentFragment.addEventListener(t,e)},e.prototype.removeEventListener=function(t,e){this.documentFragment.removeEventListener(t,e)},e.prototype.dispatchEvent=function(t,e){var n;e?n=new CustomEvent(t,{detail:e}):(n=document.createEvent("Event"),n.initEvent(t,!1,!0)),this.documentFragment.dispatchEvent(n)},e}(Y_),UO=n("cf43"),HO=0,zO=0,FO=0,WO=1e3,qO=0,YO=0,ZO=0,XO="object"===typeof performance&&performance.now?performance:Date,KO="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function $O(){return YO||(KO(QO),YO=XO.now()+ZO)}function QO(){YO=0}function JO(){this._call=this._time=this._next=null}function tx(t,e,n){var r=new JO;return r.restart(t,e,n),r}function ex(){$O(),++HO;var t,e=CO;while(e)(t=YO-e._time)>=0&&e._call.call(null,t),e=e._next;--HO}function nx(){YO=(qO=XO.now())+ZO,HO=zO=0;try{ex()}finally{HO=0,ix(),YO=0}}function rx(){var t=XO.now(),e=t-qO;e>WO&&(ZO-=e,qO=t)}function ix(){var t,e,n=CO,r=1/0;while(n)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:CO=e);AO=t,ox(r)}function ox(t){if(!HO){zO&&(zO=clearTimeout(zO));var e=t-YO;e>24?(t<1/0&&(zO=setTimeout(nx,t-XO.now()-ZO)),FO&&(FO=clearInterval(FO))):(FO||(qO=XO.now(),FO=setInterval(rx,WO)),HO=1,KO(nx))}}JO.prototype=tx.prototype={constructor:JO,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?$O():+n)+(null==e?0:+e),this._next||AO===this||(AO?AO._next=this:CO=this,AO=this),this._call=t,this._time=n,ox()},stop:function(){this._call&&(this._call=null,this._time=1/0,ox())}};var ax=function(t,e,n){var r=new JO;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r},sx=Object(UO["a"])("start","end","cancel","interrupt"),ux=[],cx=0,lx=1,hx=2,fx=3,px=4,dx=5,vx=6,gx=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};bx(t,n,{name:e,index:r,group:i,on:sx,tween:ux,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:cx})};function mx(t,e){var n=_x(t,e);if(n.state>cx)throw new Error("too late; already scheduled");return n}function yx(t,e){var n=_x(t,e);if(n.state>fx)throw new Error("too late; already running");return n}function _x(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function bx(t,e,n){var r,i=t.__transition;function o(t){n.state=lx,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}function a(o){var c,l,h,f;if(n.state!==lx)return u();for(c in i)if(f=i[c],f.name===n.name){if(f.state===fx)return ax(a);f.state===px?(f.state=vx,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<e&&(f.state=vx,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(ax((function(){n.state===fx&&(n.state=px,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=hx,n.on.call("start",t,t.__data__,n.index,n.group),n.state===hx){for(n.state=fx,r=new Array(h=n.tween.length),c=0,l=-1;c<h;++c)(f=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(r[++l]=f);r.length=l+1}}function s(e){var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(u),n.state=dx,1),o=-1,a=r.length;while(++o<a)r[o].call(t,i);n.state===dx&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=vx,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=tx(o,0,n.time)}var Ox,xx,wx,Ex,Sx=function(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>hx&&n.state<dx,n.state=vx,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}},Tx=function(t){return this.each((function(){Sx(this,t)}))},Mx=180/Math.PI,Cx={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Ax=function(t,e,n,r,i,o){var a,s,u;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r<e*n&&(t=-t,e=-e,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*Mx,skewX:Math.atan(u)*Mx,scaleX:a,scaleY:s}};function Px(t){return"none"===t?Cx:(Ox||(Ox=document.createElement("DIV"),xx=document.documentElement,wx=document.defaultView),Ox.style.transform=t,t=wx.getComputedStyle(xx.appendChild(Ox),null).getPropertyValue("transform"),xx.removeChild(Ox),t=t.slice(7,-1).split(","),Ax(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function kx(t){return null==t?Cx:(Ex||(Ex=document.createElementNS("http://www.w3.org/2000/svg","g")),Ex.setAttribute("transform",t),(t=Ex.transform.baseVal.consolidate())?(t=t.matrix,Ax(t.a,t.b,t.c,t.d,t.e,t.f)):Cx)}function Lx(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}function o(t,r,i,o,a,s){if(t!==i||r!==o){var u=a.push("translate(",null,e,null,n);s.push({i:u-4,x:gg(t,i)},{i:u-2,x:gg(r,o)})}else(i||o)&&a.push("translate("+i+e+o+n)}function a(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:gg(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}function s(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:gg(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}function u(t,e,n,r,o,a){if(t!==n||e!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:gg(t,n)},{i:s-2,x:gg(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}return function(e,n){var r=[],i=[];return e=t(e),n=t(n),o(e.translateX,e.translateY,n.translateX,n.translateY,r,i),a(e.rotate,n.rotate,r,i),s(e.skewX,n.skewX,r,i),u(e.scaleX,e.scaleY,n.scaleX,n.scaleY,r,i),e=n=null,function(t){var e,n=-1,o=i.length;while(++n<o)r[(e=i[n]).i]=e.x(t);return r.join("")}}}var Dx=Lx(Px,"px, ","px)","deg)"),Rx=Lx(kx,", ",")",")");function Ix(t,e){var n,r;return function(){var i=yx(this,t),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===e){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function Nx(t,e,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=yx(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:e,value:n},u=0,c=i.length;u<c;++u)if(i[u].name===e){i[u]=s;break}u===c&&i.push(s)}o.tween=i}}var jx=function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=_x(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?Ix:Nx)(n,t,e))};function Vx(t,e,n){var r=t._id;return t.each((function(){var t=yx(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return _x(t,r).value[e]}}var Bx=function(t,e){var n;return("number"===typeof e?gg:e instanceof Hv?lg:(n=Hv(e))?(e=n,lg):xg)(t,e)};function Gx(t){return function(){this.removeAttribute(t)}}function Ux(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Hx(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=e(r=a,n)}}function zx(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=e(r=a,n)}}function Fx(t,e,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return a=this.getAttribute(t),s=u+"",a===s?null:a===r&&s===i?o:(i=s,o=e(r=a,u));this.removeAttribute(t)}}function Wx(t,e,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return a=this.getAttributeNS(t.space,t.local),s=u+"",a===s?null:a===r&&s===i?o:(i=s,o=e(r=a,u));this.removeAttributeNS(t.space,t.local)}}var qx=function(t,e){var n=Eb(t),r="transform"===n?Rx:Bx;return this.attrTween(t,"function"===typeof e?(n.local?Wx:Fx)(n,r,Vx(this,"attr."+t,e)):null==e?(n.local?Ux:Gx)(n):(n.local?zx:Hx)(n,r,e))};function Yx(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Zx(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Xx(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Zx(t,i)),n}return i._value=e,i}function Kx(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Yx(t,i)),n}return i._value=e,i}var $x=function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!==typeof e)throw new Error;var r=Eb(t);return this.tween(n,(r.local?Xx:Kx)(r,e))};function Qx(t,e){return function(){mx(this,t).delay=+e.apply(this,arguments)}}function Jx(t,e){return e=+e,function(){mx(this,t).delay=e}}var tw=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?Qx:Jx)(e,t)):_x(this.node(),e).delay};function ew(t,e){return function(){yx(this,t).duration=+e.apply(this,arguments)}}function nw(t,e){return e=+e,function(){yx(this,t).duration=e}}var rw=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?ew:nw)(e,t)):_x(this.node(),e).duration};function iw(t,e){if("function"!==typeof e)throw new Error;return function(){yx(this,t).ease=e}}var ow=function(t){var e=this._id;return arguments.length?this.each(iw(e,t)):_x(this.node(),e).ease},aw=function(t){"function"!==typeof t&&(t=tb(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,u=r[i]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&u.push(o);return new Iw(r,this._parents,this._name,this._id)},sw=function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,c=e[s],l=n[s],h=c.length,f=a[s]=new Array(h),p=0;p<h;++p)(u=c[p]||l[p])&&(f[p]=u);for(;s<r;++s)a[s]=e[s];return new Iw(a,this._parents,this._name,this._id)};function uw(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}function cw(t,e,n){var r,i,o=uw(e)?mx:yx;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var lw=function(t,e){var n=this._id;return arguments.length<2?_x(this.node(),n).on.on(t):this.each(cw(n,t,e))};function hw(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}var fw=function(){return this.on("end.remove",hw(this._id))},pw=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=X_(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,u,c=r[a],l=c.length,h=o[a]=new Array(l),f=0;f<l;++f)(s=c[f])&&(u=t.call(s,s.__data__,f,c))&&("__data__"in s&&(u.__data__=s.__data__),h[f]=u,gx(h[f],e,n,f,h,_x(s,n)));return new Iw(o,this._parents,e,n)},dw=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=Q_(t));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u,c=r[s],l=c.length,h=0;h<l;++h)if(u=c[h]){for(var f,p=t.call(u,u.__data__,h,c),d=_x(u,n),v=0,g=p.length;v<g;++v)(f=p[v])&&gx(f,e,n,v,p,d);o.push(p),a.push(u)}return new Iw(o,a,e,n)},vw=PO.prototype.constructor,gw=function(){return new vw(this._groups,this._parents)};function mw(t,e){var n,r,i;return function(){var o=jb(this,t),a=(this.style.removeProperty(t),jb(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}function yw(t){return function(){this.style.removeProperty(t)}}function _w(t,e,n){var r,i,o=n+"";return function(){var a=jb(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}function bw(t,e,n){var r,i,o;return function(){var a=jb(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=jb(this,t)),a===u?null:a===r&&u===i?o:(i=u,o=e(r=a,s))}}function Ow(t,e){var n,r,i,o,a="style."+e,s="end."+a;return function(){var u=yx(this,t),c=u.on,l=null==u.value[a]?o||(o=yw(e)):void 0;c===n&&i===l||(r=(n=c).copy()).on(s,i=l),u.on=r}}var xw=function(t,e,n){var r="transform"===(t+="")?Dx:Bx;return null==e?this.styleTween(t,mw(t,r)).on("end.style."+t,yw(t)):"function"===typeof e?this.styleTween(t,bw(t,r,Vx(this,"style."+t,e))).each(Ow(this._id,t)):this.styleTween(t,_w(t,r,e),n).on("end.style."+t,null)};function ww(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Ew(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&ww(t,o,n)),r}return o._value=e,o}var Sw=function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!==typeof e)throw new Error;return this.tween(r,Ew(t,e,null==n?"":n))};function Tw(t){return function(){this.textContent=t}}function Mw(t){return function(){var e=t(this);this.textContent=null==e?"":e}}var Cw=function(t){return this.tween("text","function"===typeof t?Mw(Vx(this,"text",t)):Tw(null==t?"":t+""))};function Aw(t){return function(e){this.textContent=t.call(this,e)}}function Pw(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Aw(r)),e}return r._value=t,r}var kw=function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!==typeof t)throw new Error;return this.tween(e,Pw(t))},Lw=function(){for(var t=this._name,e=this._id,n=jw(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,c=0;c<u;++c)if(a=s[c]){var l=_x(a,e);gx(a,t,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Iw(r,this._parents,t,n)},Dw=function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var s={value:a},u={value:function(){0===--i&&o()}};n.each((function(){var n=yx(this,r),i=n.on;i!==t&&(e=(t=i).copy(),e._.cancel.push(s),e._.interrupt.push(s),e._.end.push(u)),n.on=e}))}))},Rw=0;function Iw(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Nw(t){return PO().transition(t)}function jw(){return++Rw}var Vw=PO.prototype;Iw.prototype=Nw.prototype={constructor:Iw,select:pw,selectAll:dw,filter:aw,merge:sw,selection:gw,transition:Lw,call:Vw.call,nodes:Vw.nodes,node:Vw.node,size:Vw.size,empty:Vw.empty,each:Vw.each,on:lw,attr:qx,attrTween:$x,style:xw,styleTween:Sw,text:Cw,textTween:kw,remove:fw,tween:jx,delay:tw,duration:rw,ease:ow,end:Dw};var Bw={time:null,delay:0,duration:250,ease:nt};function Gw(t,e){var n;while(!(n=t.__transition)||!(n=n[e]))if(!(t=t.parentNode))return Bw.time=$O(),Bw;return n}var Uw=function(t){var e,n;t instanceof Iw?(e=t._id,t=t._name):(e=jw(),(n=Bw).time=$O(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,c=0;c<u;++c)(a=s[c])&&gx(a,t,e,c,s,n||Gw(a,e));return new Iw(r,this._parents,t,e)};PO.prototype.interrupt=Tx,PO.prototype.transition=Uw;var Hw=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pendingTransitions={},e}return Hw(e,t),e.prototype.init=function(){var t=this;this.services.events.addEventListener(et.Model.UPDATE,(function(){t.pendingTransitions={}}))},e.prototype.getTransition=function(t,e){var n=this;if(!1===this.model.getOptions().animations||!1===e)return this.getInstantTransition(t);var r=Nw(t).duration(od.getProperty(gt,t,"duration")||gt.default.duration);return this.pendingTransitions[r._id]=r,r.on("end interrupt cancel",(function(){delete n.pendingTransitions[r._id]})),r},e.prototype.getInstantTransition=function(t){var e=this,n=Nw(t).duration(0);return this.pendingTransitions[n._id]=n,n.on("end interrupt cancel",(function(){delete e.pendingTransitions[n._id]})),n},e.prototype.getPendingTransitions=function(){return this.pendingTransitions},e}(Y_),Fw=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ww=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fw(e,t),e.appendOrUpdateLinearGradient=function(t){var e=t.svg.select("defs linearGradient#"+t.id);e.empty()&&(e=t.svg.append("defs").append("linearGradient").attr("id",t.id).attr("x1",t.x1).attr("x2",t.x2).attr("y1",t.y1).attr("y2",t.y2)),e.selectAll("stop").remove(),e.selectAll("stop").data(t.stops).enter().append("stop").attr("offset",(function(t){return t.offset})).style("stop-color",(function(t){return t.color})).style("stop-opacity",(function(t){return t.opacity}))},e.getOffsetRatio=function(t){var e=(100*Math.abs(t[1])/Math.abs(t[0]-t[1])).toFixed(2)+"%";return e},e.getStops=function(t,n){var r=t[0]<0&&t[1]>0,i=[{offset:"0%",color:n,opacity:"0.6"},{offset:"80%",color:n,opacity:"0"}];return r&&(i=[{offset:"0%",color:n,opacity:"0.6"},{offset:e.getOffsetRatio(t),color:n,opacity:"0"},{offset:"100%",color:n,opacity:"0.6"}]),i},e}(Y_);function qw(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===typeof t&&"[object Date]"===e?new Date(t.getTime()):"number"===typeof t||"[object Number]"===e?new Date(t):("string"!==typeof t&&"[object String]"!==e||"undefined"===typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"),console.warn((new Error).stack)),new Date(NaN))}function Yw(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=qw(t),r=qw(e);return n.getFullYear()-r.getFullYear()}function Zw(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=qw(t),r=qw(e),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function Xw(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=qw(t),r=qw(e),i=Zw(n,r),o=Math.abs(Yw(n,r));n.setFullYear(n.getFullYear()-i*o);var a=Zw(n,r)===-i,s=i*(o-a);return 0===s?0:s}function Kw(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function $w(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=qw(t),n=e.getFullYear(),r=e.getMonth(),i=new Date(0);return i.setFullYear(n,r+1,0),i.setHours(0,0,0,0),i.getDate()}function Qw(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=qw(t),r=Kw(e),i=n.getMonth()+r,o=new Date(0);o.setFullYear(n.getFullYear(),i,1),o.setHours(0,0,0,0);var a=$w(o);return n.setMonth(i,Math.min(a,n.getDate())),n}function Jw(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Kw(e);return Qw(t,12*n)}function tE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Kw(e);return Jw(t,-n)}function eE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=qw(t),r=qw(e),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return 12*i+o}function nE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=qw(t),r=qw(e),i=Zw(n,r),o=Math.abs(eE(n,r));n.setMonth(n.getMonth()-i*o);var a=Zw(n,r)===-i,s=i*(o-a);return 0===s?0:s}function rE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Kw(e);return Qw(t,-n)}var iE=6e4;function oE(t){var e=new Date(t.getTime()),n=Math.ceil(e.getTimezoneOffset());e.setSeconds(0,0);var r=e.getTime()%iE;return n*iE+r}function aE(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=qw(t);return e.setHours(0,0,0,0),e}var sE=864e5;function uE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=aE(t),r=aE(e),i=n.getTime()-oE(n),o=r.getTime()-oE(r);return Math.round((i-o)/sE)}function cE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=qw(t),r=qw(e),i=Zw(n,r),o=Math.abs(uE(n,r));n.setDate(n.getDate()-i*o);var a=Zw(n,r)===-i,s=i*(o-a);return 0===s?0:s}function lE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=qw(t),r=Kw(e);return n.setDate(n.getDate()+r),n}function hE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Kw(e);return lE(t,-n)}function fE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=qw(t),r=qw(e);return n.getTime()-r.getTime()}var pE=36e5;function dE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=fE(t,e)/pE;return n>0?Math.floor(n):Math.ceil(n)}function vE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=qw(t).getTime(),r=Kw(e);return new Date(n+r)}var gE=36e5;function mE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Kw(e);return vE(t,n*gE)}function yE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Kw(e);return mE(t,-n)}var _E=6e4;function bE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=fE(t,e)/_E;return n>0?Math.floor(n):Math.ceil(n)}var OE=6e4;function xE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Kw(e);return vE(t,n*OE)}function wE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Kw(e);return xE(t,-n)}function EE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=fE(t,e)/1e3;return n>0?Math.floor(n):Math.ceil(n)}function SE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Kw(e);return vE(t,1e3*n)}function TE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Kw(e);return SE(t,-n)}var ME=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),CE=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},AE=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},PE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.scaleTypes={top:null,right:null,bottom:null,left:null},e.scales={top:null,right:null,bottom:null,left:null},e}return ME(e,t),e.prototype.getDomainAxisPosition=function(t){var e,n=(void 0===t?{}:t).datum,r=void 0===n?null:n;if(this.dualAxes&&r){var i=this.model.getOptions(),o=i.data.groupMapsTo,a=od.getProperty(i,"axes",this.secondaryDomainAxisPosition),s=r[o];if((null===(e=a)||void 0===e?void 0:e.correspondingDatasets)&&a.correspondingDatasets.includes(s))return this.secondaryDomainAxisPosition}return this.domainAxisPosition},e.prototype.getRangeAxisPosition=function(t){var e,n=void 0===t?{}:t,r=n.datum,i=void 0===r?null:r,o=n.groups,a=void 0===o?null:o;if(this.dualAxes){var s=this.model.getOptions(),u=s.data.groupMapsTo,c=od.getProperty(s,"axes",this.secondaryRangeAxisPosition),l=void 0;if(null!==i?l=i[u]:a&&a.length>0&&(l=a[0]),(null===(e=c)||void 0===e?void 0:e.correspondingDatasets)&&c.correspondingDatasets.includes(l))return this.secondaryRangeAxisPosition}return this.rangeAxisPosition},e.prototype.getAxisOptions=function(t){return od.getProperty(this.model.getOptions(),"axes",t)},e.prototype.getDomainAxisOptions=function(){var t=this.getDomainAxisPosition();return this.getAxisOptions(t)},e.prototype.getRangeAxisOptions=function(){var t=this.getRangeAxisPosition();return this.getAxisOptions(t)},e.prototype.update=function(t){var e=this;void 0===t&&(t=!0),this.determineAxisDuality(),this.findDomainAndRangeAxes(),this.determineOrientation();var n=Object.keys(L).map((function(t){return L[t]}));n.forEach((function(t){e.scales[t]=e.createScale(t)}))},e.prototype.findDomainAndRangeAxes=function(){var t=this.findVerticalAxesPositions(),e=this.findHorizontalAxesPositions(),n=this.findDomainAndRangeAxesPositions(t,e);this.domainAxisPosition=n.primaryDomainAxisPosition,this.rangeAxisPosition=n.primaryRangeAxisPosition,this.isDualAxes()&&(this.secondaryDomainAxisPosition=n.secondaryDomainAxisPosition,this.secondaryRangeAxisPosition=n.secondaryRangeAxisPosition)},e.prototype.determineOrientation=function(){this.rangeAxisPosition!==L.LEFT&&this.rangeAxisPosition!==L.RIGHT||this.domainAxisPosition!==L.BOTTOM&&this.domainAxisPosition!==L.TOP?this.orientation=I.HORIZONTAL:this.orientation=I.VERTICAL},e.prototype.isDualAxes=function(){return this.dualAxes},e.prototype.determineAxisDuality=function(){var t,e,n,r,i=this.model.getOptions(),o=od.getProperty(i,"axes");((null===(t=o[L.LEFT])||void 0===t?void 0:t.correspondingDatasets)&&o[L.RIGHT]||(null===(e=o[L.RIGHT])||void 0===e?void 0:e.correspondingDatasets)&&o[L.LEFT]||(null===(n=o[L.TOP])||void 0===n?void 0:n.correspondingDatasets)&&o[L.BOTTOM]||(null===(r=o[L.BOTTOM])||void 0===r?void 0:r.correspondingDatasets)&&o[L.TOP])&&(this.dualAxes=!0)},e.prototype.getOrientation=function(){return this.orientation},e.prototype.getScaleByPosition=function(t){return this.scales[t]},e.prototype.getScaleTypeByPosition=function(t){return this.scaleTypes[t]},e.prototype.getDomainAxisScaleType=function(){var t=this.getDomainAxisPosition();return this.getScaleTypeByPosition(t)},e.prototype.getRangeAxisScaleType=function(){var t=this.getRangeAxisPosition();return this.getScaleTypeByPosition(t)},e.prototype.getDomainScale=function(){return this.scales[this.domainAxisPosition]},e.prototype.getRangeScale=function(){return this.scales[this.rangeAxisPosition]},e.prototype.getMainXAxisPosition=function(){var t=[L.BOTTOM,L.TOP];return[this.domainAxisPosition,this.rangeAxisPosition].find((function(e){return t.indexOf(e)>-1}))},e.prototype.getMainYAxisPosition=function(){var t=[L.LEFT,L.RIGHT];return[this.domainAxisPosition,this.rangeAxisPosition].find((function(e){return t.indexOf(e)>-1}))},e.prototype.getMainXScale=function(){return this.scales[this.getMainXAxisPosition()]},e.prototype.getMainYScale=function(){return this.scales[this.getMainYAxisPosition()]},e.prototype.getValueFromScale=function(t,e,n,r,i){var o,a=this.model.getOptions(),s=od.getProperty(a,"axes"),u=s[n],c=u.mapsTo,l=null!==od.getProperty(r,c)?r[c]:r;switch(e){case N.LABELS:o=t(l)+t.step()/2;break;case N.TIME:o=t(new Date(l));break;default:o=t(l)}return o},e.prototype.getBoundedScaledValues=function(t,e){var n=this.model.getOptions().bounds,r=this.scales[this.rangeAxisPosition],i=this.model.getOptions(),o=od.getProperty(i,"axes"),a=o[this.rangeAxisPosition],s=a.mapsTo,u=void 0!==t[s]?t[s]:t,c=[r(null!==od.getProperty(t,n.upperBoundMapsTo)?t[n.upperBoundMapsTo]:u),r(null!==od.getProperty(t,n.lowerBoundMapsTo)?t[n.lowerBoundMapsTo]:u)];return c},e.prototype.getValueThroughAxisPosition=function(t,e,n){var r=this.scaleTypes[t],i=this.scales[t];return this.getValueFromScale(i,r,t,e,n)},e.prototype.getDomainValue=function(t,e){var n=this.getDomainAxisPosition({datum:t});return this.getValueThroughAxisPosition(n,t,e)},e.prototype.getRangeValue=function(t,e){var n=this.getRangeAxisPosition({datum:t});return this.getValueThroughAxisPosition(n,t,e)},e.prototype.getMainXScaleType=function(){return this.getScaleTypeByPosition(this.getMainXAxisPosition())},e.prototype.getMainYScaleType=function(){return this.getScaleTypeByPosition(this.getMainYAxisPosition())},e.prototype.getDomainIdentifier=function(t){var e=this.model.getOptions();return od.getProperty(e,"axes",this.getDomainAxisPosition({datum:t}),"mapsTo")},e.prototype.getRangeIdentifier=function(t){var e=this.model.getOptions();return od.getProperty(e,"axes",this.getRangeAxisPosition({datum:t}),"mapsTo")},e.prototype.extendsDomain=function(t,e){var n=this.model.getOptions(),r=od.getProperty(n,"axes",t);if(r.scaleType===N.TIME){var i=od.getProperty(n,"timeScale","addSpaceOnEdges");return kE(e,i)}return LE(e,it.paddingRatio)},e.prototype.findVerticalAxesPositions=function(){var t=this.model.getOptions(),e=od.getProperty(t,"axes"),n=this.isDualAxes();return null===od.getProperty(e,L.LEFT)&&null!==od.getProperty(e,L.RIGHT)||!0===od.getProperty(e,L.RIGHT,"main")||n&&od.getProperty(e,L.LEFT,"correspondingDatasets")?{primary:L.RIGHT,secondary:L.LEFT}:{primary:L.LEFT,secondary:L.RIGHT}},e.prototype.findHorizontalAxesPositions=function(){var t=this.model.getOptions(),e=od.getProperty(t,"axes"),n=this.isDualAxes();return null===od.getProperty(e,L.BOTTOM)&&null!==od.getProperty(e,L.TOP)||!0===od.getProperty(e,L.TOP,"main")||n&&od.getProperty(e,L.BOTTOM,"correspondingDatasets")?{primary:L.TOP,secondary:L.BOTTOM}:{primary:L.BOTTOM,secondary:L.TOP}},e.prototype.findDomainAndRangeAxesPositions=function(t,e){var n=this.model.getOptions(),r=od.getProperty(n,"axes",t.primary),i=od.getProperty(n,"axes",e.primary),o=r.scaleType||N.LINEAR,a=i.scaleType||N.LINEAR,s={primaryDomainAxisPosition:null,secondaryDomainAxisPosition:null,primaryRangeAxisPosition:null,secondaryRangeAxisPosition:null};return s.primaryDomainAxisPosition=e.primary,s.primaryRangeAxisPosition=t.primary,s.secondaryDomainAxisPosition=e.secondary,s.secondaryRangeAxisPosition=t.secondary,(a!==N.LABELS&&a!==N.TIME&&o===N.LABELS||o===N.TIME)&&(s.primaryDomainAxisPosition=t.primary,s.primaryRangeAxisPosition=e.primary,s.secondaryDomainAxisPosition=t.secondary,s.secondaryRangeAxisPosition=e.secondary),s},e.prototype.getScaleDomain=function(t){var e=this.model.getOptions(),n=od.getProperty(e,"axes",t),r=od.getProperty(e,"bounds"),i=n.includeZero,o=od.getProperty(n,"scaleType")||N.LINEAR;if(this.model.isDataEmpty())return[];var a,s,u=this.model.getDisplayData(),c=n.extendLinearDomainBy,l=n.mapsTo,h=n.percentage,f=n.thresholds,p=it.ratio,d=p.reference,v=p.compareTo;if(n.domain)return o===N.LABELS?n.domain:(o===N.TIME&&(n.domain=n.domain.map((function(t){return void 0===t.getTime?new Date(t):t}))),this.extendsDomain(t,n.domain));if(h)return[0,100];if(n&&o===N.LABELS)return Wd(u,(function(t){return t[l]})).keys();var g=this.model.getDataGroupNames();if(o===N.LABELS_RATIO)return u.map((function(t){return t[d]+"/"+t[v]}));if(o===N.TIME)s=u.map((function(t){return+new Date(t[l])}));else if(r&&e.axes)s=[],u.forEach((function(t){s.push(t[l]),t[r.upperBoundMapsTo]&&s.push(t[r.upperBoundMapsTo]),t[r.lowerBoundMapsTo]&&s.push(t[r.lowerBoundMapsTo])}));else if(!0===n.stacked&&g&&t===this.getRangeAxisPosition()){var m=e.data.groupMapsTo,y=this.model.getDataValuesGroupedByKeys(g),_=u.filter((function(t){return!g.includes(t[m])})),b=y.map((function(t){t.sharedStackKey;var e=CE(t,["sharedStackKey"]);return vv(Xd(e))}));s=AE(b,_.map((function(t){return t[l]})))}else s=[],u.forEach((function(t){var e=t[l];Array.isArray(e)&&2===e.length?(s.push(e[0]),s.push(e[1])):(c&&s.push(Math.max(t[l],t[c])),s.push(e))}));return o!==N.TIME&&i&&s.push(0),f&&f.length>0&&f.forEach((function(t){var e=od.getProperty(t,"value");null!==e&&s.push(e)})),a=rv(s),a=this.extendsDomain(t,a),a},e.prototype.createScale=function(t){var e=this.model.getOptions(),n=od.getProperty(e,"axes",t);if(!n)return null;var r,i=od.getProperty(n,"scaleType")||N.LINEAR;return this.scaleTypes[t]=i,r=i===N.TIME?I_():i===N.LOG?ym().base(n.base||10):i===N.LABELS||i===N.LABELS_RATIO?xv():sm(),r.domain(this.getScaleDomain(t)),r},e.prototype.getHighestDomainThreshold=function(){var t=od.getProperty(this.model.getOptions(),"axes"),e=this.getDomainAxisPosition(),n=t[e].thresholds;if(!n)return null;var r=this.getDomainScale(),i=n.sort((function(t,e){return e.value-t.value}))[0],o=this.getScaleTypeByPosition(e);return o!==N.TIME||"string"!==typeof i.value&&void 0!==i.value.getTime||(i.value=new Date(i.value)),{threshold:i,scaleValue:r(i.value)}},e.prototype.getHighestRangeThreshold=function(){var t=od.getProperty(this.model.getOptions(),"axes"),e=this.getRangeAxisPosition(),n=t[e].thresholds;if(!n)return null;var r=this.getRangeScale(),i=n.sort((function(t,e){return e.value-t.value}))[0];return{threshold:i,scaleValue:r(i.value)}},e}(Y_);function kE(t,e){var n=new Date(t[0]),r=new Date(t[1]);return Xw(r,n)>1?[tE(n,e),Jw(r,e)]:nE(r,n)>1?[rE(n,e),Qw(r,e)]:cE(r,n)>1?[hE(n,e),lE(r,e)]:dE(r,n)>1?[yE(n,e),mE(r,e)]:bE(r,n)>30?[wE(n,30*e),xE(r,30*e)]:bE(r,n)>1?[wE(n,e),xE(r,e)]:EE(r,n)>15?[TE(n,15*e),SE(r,15*e)]:EE(r,n)>1?[TE(n,e),SE(r,e)]:[n,r]}function LE(t,e){var n=t[0],r=t[1],i=r-n,o=i*e,a=r<=0&&r+o>0?0:r+o,s=n>=0&&n-o<0?0:n-o;return[s,a]}function DE(t){this._context=t}DE.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);break}}};var RE=function(t){return new DE(t)},IE=function(){};function NE(t){this._context=t}NE.prototype={areaStart:IE,areaEnd:IE,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};var jE=function(t){return new NE(t)};function VE(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function BE(t){this._context=t}BE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:VE(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(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;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:VE(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var GE=function(t){return new BE(t)};function UE(t){this._context=t}UE.prototype={areaStart:IE,areaEnd:IE,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:VE(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var HE=function(t){return new UE(t)};function zE(t){this._context=t}zE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===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;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:VE(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var FE=function(t){return new zE(t)};function WE(t,e){this._basis=new BE(t),this._beta=e}WE.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0){var r,i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,u=-1;while(++u<=n)r=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(i+r*a),this._beta*e[u]+(1-this._beta)*(o+r*s))}this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var qE=function t(e){function n(t){return 1===e?new BE(t):new WE(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function YE(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function ZE(t,e){this._context=t,this._k=(1-e)/6}ZE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:YE(this,this._x1,this._y1);break}(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,this._x1=t,this._y1=e;break;case 2:this._point=3;default:YE(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var XE=function t(e){function n(t){return new ZE(t,e)}return n.tension=function(e){return t(+e)},n}(0);function KE(t,e){this._context=t,this._k=(1-e)/6}KE.prototype={areaStart:IE,areaEnd:IE,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:YE(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var $E=function t(e){function n(t){return new KE(t,e)}return n.tension=function(e){return t(+e)},n}(0);function QE(t,e){this._context=t,this._k=(1-e)/6}QE.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===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;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:YE(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var JE=function t(e){function n(t){return new QE(t,e)}return n.tension=function(e){return t(+e)},n}(0),tS=Math.abs,eS=Math.atan2,nS=Math.cos,rS=Math.max,iS=Math.min,oS=Math.sin,aS=Math.sqrt,sS=1e-12,uS=Math.PI,cS=uS/2,lS=2*uS;function hS(t){return t>1?0:t<-1?uS:Math.acos(t)}function fS(t){return t>=1?cS:t<=-1?-cS:Math.asin(t)}function pS(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>sS){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>sS){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/l,a=(a*c+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function dS(t,e){this._context=t,this._alpha=e}dS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}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;default:pS(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var vS=function t(e){function n(t){return e?new dS(t,e):new ZE(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function gS(t,e){this._context=t,this._alpha=e}gS.prototype={areaStart:IE,areaEnd:IE,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:pS(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var mS=function t(e){function n(t){return e?new gS(t,e):new KE(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function yS(t,e){this._context=t,this._alpha=e}yS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:pS(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var _S=function t(e){function n(t){return e?new yS(t,e):new QE(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function bS(t){return t<0?-1:1}function OS(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(bS(o)+bS(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function xS(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function wS(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function ES(t){this._context=t}function SS(t){this._context=new TS(t)}function TS(t){this._context=t}function MS(t){return new ES(t)}function CS(t){return new SS(t)}function AS(t){this._context=t}function PS(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(i[r-1]=a[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}ES.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:wS(this,this._t0,xS(this,this._t0));break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,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,wS(this,xS(this,n=OS(this,t,e)),n);break;default:wS(this,this._t0,n=OS(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(SS.prototype=Object.create(ES.prototype)).point=function(t,e){ES.prototype.point.call(this,e,t)},TS.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},AS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=PS(t),i=PS(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var kS=function(t){return new AS(t)};function LS(t,e){this._context=t,this._t=e}LS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,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:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}this._x=t,this._y=e}};var DS=function(t){return new LS(t,.5)};function RS(t){return new LS(t,0)}function IS(t){return new LS(t,1)}var NS,jS,VS=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),BS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.curveTypes={curveLinear:RE,curveLinearClosed:jE,curveBasis:GE,curveBasisClosed:HE,curveBasisOpen:FE,curveBundle:qE,curveCardinal:XE,curveCardinalClosed:$E,curveCardinalOpen:JE,curveCatmullRom:vS,curveCatmullRomClosed:mS,curveCatmullRomOpen:_S,curveMonotoneX:MS,curveMonotoneY:CS,curveNatural:kS,curveStep:DS,curveStepAfter:IS,curveStepBefore:RS},e}return VS(e,t),e.prototype.getD3Curve=function(){var t="curveLinear",e=this.model.getOptions().curve;if(e&&(t="string"===typeof e?e:e.name),this.curveTypes[t]){var n=this.curveTypes[t];return e&&Object.keys(e).forEach((function(t){n[t]&&(n=n[t](e[t]))})),n}return console.warn("The curve type '"+t+"' is invalid, using 'curveLinear' instead"),this.curveTypes["curveLinear"]},e}(Y_),GS=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),US=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return GS(e,t),e.prototype.isZoomBarEnabled=function(){if(!this.services.cartesianScales)return!1;if(!od.getProperty(this.model.getOptions(),"zoomBar","top","enabled"))return!1;this.services.cartesianScales.findDomainAndRangeAxes();var t=this.services.cartesianScales.getMainXAxisPosition(),e=od.getProperty(this.model.getOptions(),"axes",t,"scaleType");return t===L.BOTTOM&&e===N.TIME},e.prototype.getZoomBarData=function(){var t=this.model.getZoomBarData();return t&&t.length>1?t:this.model.getDisplayData()},e.prototype.getDefaultZoomBarDomain=function(t){var e=t||this.services.zoom.getZoomBarData(),n=this.services.cartesianScales,r=n.getMainXAxisPosition(),i=n.getDomainIdentifier();return n.extendsDomain(r,rv(e,(function(t){return t[i]})))},e.prototype.handleDomainChange=function(t,e){void 0===e&&(e={dispatchEvent:!0}),this.model.set({zoomDomain:t},{animate:!1}),e.dispatchEvent&&this.services.events.dispatchEvent(et.ZoomDomain.CHANGE,{newDomain:t})},e.prototype.getZoomRatio=function(){return od.getProperty(this.model.getOptions(),"zoomBar","zoomRatio")},e.prototype.filterDataForRangeAxis=function(t,e){var n=this.model.get("zoomDomain"),r=Object.assign({stacked:!1},e),i=od.getProperty(this.model.getOptions(),"zoomBar","updateRangeAxis");if(this.isZoomBarEnabled()&&i&&n){var o=r.stacked?"sharedStackKey":this.services.cartesianScales.getDomainIdentifier(),a=t.filter((function(t){return new Date(t[o])>=n[0]&&new Date(t[o])<=n[1]}));if(a.length>0)return a}return t},e.prototype.zoomIn=function(t){void 0===t&&(t=this.getZoomRatio());var e=this.model.get("zoomDomain"),n=yt.handleWidth,r=this.services.cartesianScales.getMainXScale().copy();r.domain(this.getDefaultZoomBarDomain());var i=r(e[0]),o=r(e[1]);if(!(o-i<n+1)){var a=r.range(),s=o-i,u=Math.min((a[1]-a[0])/2*(t/2),s/2),c=i+u,l=o-u;c>=l&&(c=i+s/2-n/2,l=o-s/2+n/2);var h=[r.invert(c),r.invert(l)];e[0].valueOf()===h[0].valueOf()&&e[1].valueOf()===h[1].valueOf()||this.handleDomainChange(h)}},e.prototype.zoomOut=function(t){void 0===t&&(t=this.getZoomRatio());var e=this.model.get("zoomDomain"),n=this.services.cartesianScales.getMainXScale().copy();n.domain(this.getDefaultZoomBarDomain());var r=n(e[0]),i=n(e[1]),o=n.range(),a=(o[1]-o[0])/2*(t/2),s=Math.max(r-a,o[0]),u=Math.min(i+a,o[1]),c=[n.invert(s),n.invert(u)];e[0].valueOf()===c[0].valueOf()&&e[1].valueOf()===c[1].valueOf()||this.handleDomainChange(c)},e.prototype.resetZoomDomain=function(){var t=this.model.get("zoomDomain"),e=this.getDefaultZoomBarDomain();t[0].valueOf()===e[0].valueOf()&&t[1].valueOf()===e[1].valueOf()||this.handleDomainChange(e)},e.prototype.isMinZoomDomain=function(){var t=this.model.get("zoomDomain"),e=this.getDefaultZoomBarDomain();if(!t||!e)return!1;var n=t[1].valueOf()-t[0].valueOf(),r=e[1].valueOf()-e[0].valueOf(),i=od.getProperty(this.model.getOptions(),"zoomBar","minZoomRatio");return n/r<i},e.prototype.isMaxZoomDomain=function(){var t=this.model.get("zoomDomain"),e=this.getDefaultZoomBarDomain();return!(!t||!e||t[0].valueOf()!==e[0].valueOf()||t[1].valueOf()!==e[1].valueOf())},e.prototype.isEmptyState=function(){return 0===this.getZoomBarData().length},e.prototype.isZoomBarLoading=function(t){return od.getProperty(this.model.getOptions(),"zoomBar",t,"loading")},e.prototype.isZoomBarLocked=function(t){return od.getProperty(this.model.getOptions(),"zoomBar",t,"locked")},e}(Y_),HS=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return HS(e,t),e.prototype.zoomIn=function(t,e,n){var r,i,o,a=n||ot;t&&(r=t.x,i=t.y,o=2);var s=VO.getSVGElementSize(this.services.domUtils.getHolder(),{useClientDimensions:!0}),u=s.width,c=s.height;e.transition().duration(a.duration).ease(a.ease).attr("transform","translate("+u/2+", "+c/2+") scale("+o+") translate("+-r+","+-i+")"),this.services.events.dispatchEvent(et.CanvasZoom.CANVAS_ZOOM_IN,{element:kO(t)})},e.prototype.zoomOut=function(t,e){var n=e||ot;t.transition().duration(n.duration).ease(n.ease).attr("transform",""),this.services.events.dispatchEvent(et.CanvasZoom.CANVAS_ZOOM_OUT)},e}(Y_),FS=function(){function t(t,e,n){if(this.configs={},this.model=t,this.services=e,n&&(this.configs=n,this.configs.id)){var r=od.getProperty(this.model.getOptions(),"style","prefix");this.id=r+"--"+this.configs.id}this.parent||this.setParent(kO(this.services.domUtils.getMainSVG()))}return t.prototype.init=function(){},t.prototype.render=function(t){void 0===t&&(t=!0),console.error("render() method is not implemented")},t.prototype.destroy=function(){},t.prototype.setModel=function(t){this.model=t},t.prototype.setServices=function(t){this.services=t},t.prototype.setParent=function(t){var e=this.parent;if(this.parent=t,(!e||e.node()!==t.node())&&this.type){var n=od.getProperty(this.model.getOptions(),"style","prefix");this.parent.classed(RO.prefix+"--"+n+"--"+this.type,!0).attr("id",this.id),e&&e.classed(RO.prefix+"--"+n+"--"+this.type,!1).attr("id",this.id)}},t.prototype.getParent=function(){return this.parent},t.prototype.getContainerSVG=function(t){if(void 0===t&&(t={withinChartClip:!1}),this.type){var e=od.getProperty(this.model.getOptions(),"style","prefix"),n=this.id?"#"+this.id:"",r=VO.appendOrSelect(this.parent,"g"+n+"."+RO.prefix+"--"+e+"--"+this.type);if(t.withinChartClip){var i=this.model.get("chartClipId");i&&r.attr("clip-path","url(#"+i+")")}return r}return this.parent},t.prototype.getOptions=function(){if(this.configs.options){var t=od.merge({},this.model.getOptions(),this.configs.options);return t}return this.model.getOptions()},t}(),WS=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="legend",e}return WS(e,t),e.prototype.render=function(){var t=this,e=this.getContainerSVG().attr("role",a.GROUP).attr("data-name","legend-items"),n=this.getOptions(),r=od.getProperty(n,"legend"),i=this.model.getDataGroups(),o=od.getProperty(r,"order");o&&(i=this.sortDataGroups(i,o));var s=e.selectAll("g.legend-item").data(i,(function(t){return t.name})),u=s.enter().append("g").classed("legend-item",!0).classed("active",(function(t,e){return t.status===ct.items.status.ACTIVE})),c=od.getProperty(this.getOptions(),"legend","clickable");e.classed("clickable",c);var l=ct.checkbox.radius;u.append("rect").classed("checkbox",!0).merge(s.select("rect.checkbox")).attr("role",a.CHECKBOX).attr("tabindex",c?0:-1).attr("aria-label",(function(t){return t.name})).attr("aria-checked",(function(t){var e=t.status;return e===ct.items.status.ACTIVE})).attr("width",2*l).attr("height",2*l).attr("rx",1).attr("ry",1).attr("class",(function(e,n){return t.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:e.name,originalClassName:"checkbox"})})).style("fill",(function(e){return e.status===ct.items.status.ACTIVE?t.model.getFillColor(e.name)||t.model.getStrokeColor(e.name):null})).classed("active",(function(t,e){return t.status===ct.items.status.ACTIVE}));var h=u.append("text").merge(s.select("text"));this.truncateLegendText(h);var f={startingPoint:0,itemIndexInLine:0,lineNumber:0,lastLegendItemTextWidth:0};this.breakItemsIntoLines(u,"legend-item",f);var p=od.getProperty(n,"legend","additionalItems");if(p&&i.length){var d=this,v=e.selectAll("g.additional-item").data(p);v.exit().remove();var g,m=v.enter().append("g").merge(v).classed("additional-item",!0);m.selectAll("*").remove();var y=1;m.append("g").classed("icon",!0).each((function(t,e){var n=kO(this);g&&g==t.type?y++:(g=t.type,y=1),d.addAdditionalItem(n,t,y)}));var _=m.append("text").merge(m.select("text"));d.truncateLegendText(_),this.breakItemsIntoLines(m,"additional-item",f)}s.exit().on("mouseover",null).on("click",null).on("mouseout",null).remove(),c&&u.size()>0&&this.addEventListeners();var b=od.getProperty(r,"alignment"),O=VO.getAlignmentOffset(b,e,this.getParent());e.attr("transform","translate("+O+", 0)")},e.prototype.sortDataGroups=function(t,e){if(t.sort((function(t,n){return e.indexOf(t.name)-e.indexOf(n.name)})),e.length<t.length){var n=t.length-e.length,r=t.slice(n);return r.concat(t.slice(0,n))}return t},e.prototype.addAdditionalItem=function(t,e,n){var r=ct.area,i=r.width,s=r.height;if(e.type===J.RADIUS){var u=ct.radius,c=u.iconData,l=u.fill,h=u.stroke,f=t.attr("fill","none").selectAll("circle").data(c).enter();f.append("circle").classed("radius",!0).attr("role",a.IMG).attr("aria-label","radius").attr("cx",(function(t){return t.cx})).attr("cy",(function(t){return t.cy})).attr("r",(function(t){return t.r})).style("fill",e.fill?e.fill:l).style("stroke",e.stroke?e.stroke:h)}else if(e.type===J.LINE){var p=ct.line;t.select("line.line").empty()&&t.append("line").classed("line-"+n,!0).attr("role",a.IMG).attr("aria-label","line").attr("x1",0).attr("y1",p.yPosition).attr("x2",i).attr("y2",p.yPosition).style("stroke",e.stroke?e.stroke:p.stroke).style("stroke-width",p.strokeWidth)}else if(e.type===J.AREA)t.select("rect.area").empty()&&t.append("rect").classed("area-"+n,!0).attr("role",a.IMG).attr("aria-label","area").attr("width",i).attr("height",s).style("fill",n>3&&!e.fill?ct.area.fill:e.fill).style("stroke",e.stroke);else if(e.type===J.SIZE){var d=ct.size,v=(c=d.iconData,l=d.fill,h=d.stroke,t.attr("fill","none").attr("role",a.IMG).attr("aria-label","size").selectAll("rect").data(c).enter());v.append("rect").classed("size",!0).attr("width",(function(t){return t.width})).attr("height",(function(t){return t.height})).attr("y",(function(t){return 24-t.height})).style("fill",e.fill?e.fill:l).style("stroke",e.stroke?e.stroke:h).style("stroke-width",1)}else if(e.type===J.QUARTILE){c=ct.quartile.iconData;var g=t.selectAll("rect").attr("role",a.IMG).attr("aria-label","quartile").data(c).enter();g.append("rect").attr("class",(function(t,e){return"quartile-"+(0===e?"wrapper":"line")})).attr("x",(function(t){return t.x})).attr("y",(function(t){return t.y})).attr("width",(function(t){return t.width})).attr("height",(function(t){return t.height}))}else if(e.type===J.ZOOM){var m=od.getProperty(o,"legend","zoom"),y=(c=m.iconData,m.color),_=t.attr("role",a.IMG).attr("aria-label","zoom").selectAll("g.icon").data(c).enter();_.append("g").attr("x",(function(t){return t.x})).attr("y",(function(t){return t.y})).attr("width",(function(t){return t.width})).attr("height",(function(t){return t.height})).append("polygon").attr("points","7.7 4.82 5.78 4.82 5.78 2.89 4.82 2.89 4.82 4.82 2.89 4.82 2.89 5.78 4.82 5.78 4.82 7.7 5.78 7.7 5.78 5.78 7.7 5.78 7.7 4.82").attr("fill",(function(t){return e.color?e.color:y})),_.append("path").attr("d","M9.36,8.67A5.22,5.22,0,0,0,10.59,5.3,5.3,5.3,0,1,0,5.3,10.59,5.22,5.22,0,0,0,8.67,9.36L12.32,13l.68-.68Zm-4.06,1A4.34,4.34,0,1,1,9.63,5.3,4.33,4.33,0,0,1,5.3,9.63Z").attr("fill",(function(t){return e.color?e.color:y}))}},e.prototype.truncateLegendText=function(t){var e=od.getProperty(this.getOptions(),"legend","truncation"),n=od.getProperty(e,"type"),r=od.getProperty(e,"threshold"),i=od.getProperty(e,"numCharacter");n!==R.NONE?t.html((function(t){return t.name.length>r?od.truncateLabel(t.name,n,i):t.name})):t.html((function(t){return t.name}))},e.prototype.breakItemsIntoLines=function(t,e,n){var r=this,i=this.getContainerSVG(),o=ct.items.status.DISABLED,a=this.model.getDataGroups(),s=a.some((function(t){return t.status===o}));t.merge(i.selectAll("g."+e)).each((function(t){var e=kO(this),i=VO.getSVGElementSize(r.parent,{useAttr:!0});t.type?r.setLegendItemPosition(e,i,n,t.type):(n.hasDeactivatedItems=s,r.setLegendItemPosition(e,i,n,J.CHECKBOX))}))},e.prototype.setLegendItemPosition=function(t,e,n,r){var i=od.getProperty(this.getOptions(),"legend","orientation"),o=ct.items.horizontalSpace,a=ct.items.verticalSpace,s=ct.items.textYOffset,u=r===J.CHECKBOX||r===J.RADIUS||r===J.ZOOM?2*ct.checkbox.radius:ct.area.width,c=ct.items.spaceAfter,l=VO.getSVGElementSize(t.select("text"),{useBBox:!0}),h=ct.area.width/2-1;0===n.itemIndexInLine||0===n.lastLegendItemTextWidth||i===B.VERTICAL?n.itemIndexInLine>0&&n.lineNumber++:(n.startingPoint+=n.lastLegendItemTextWidth+u+c+o,n.startingPoint+u+c+l.width>e.width&&(n.lineNumber++,n.startingPoint=24===u?h:0,n.itemIndexInLine=0)),n.lastLegendItemTextWidth=l.width;var f=n.lineNumber*a,p=s+f+3;if(r===J.CHECKBOX){t.select("rect.checkbox").attr("x",n.startingPoint).attr("y",f),t.select("text").attr("x",n.startingPoint+u+c).attr("y",p);var d=(!i||i===B.HORIZONTAL)&&parseInt(t.select("rect.checkbox").attr("y"))%24===0,v=i===B.VERTICAL&&"0"===t.select("rect.checkbox").attr("x"),g=d||v;n.hasDeactivatedItems&&t.select("g.check").empty()&&g?(t.append("g").classed("check",!0).html('\n\t\t\t\t\t\t<svg focusable="false" preserveAspectRatio="xMidYMid meet"\n\t\t\t\t\t\t\txmlns="http://www.w3.org/2000/svg" width="32" height="32"\n\t\t\t\t\t\t\tviewBox="0 0 32 32" aria-hidden="true"\n\t\t\t\t\t\t\tstyle="will-change: transform;">\n\t\t\t\t\t\t\t<path d="M13 21.2l-7.1-7.1-1.4 1.4 7.1 7.1L13 24 27.1 9.9l-1.4-1.5z"></path>\n\t\t\t\t\t\t\t<title>Checkmark</title>\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t'),t.select("g.check svg").attr("width",u-1).attr("height",u-1).attr("x",parseFloat(t.select("rect.checkbox").attr("x"))+.5).attr("y",parseFloat(t.select("rect.checkbox").attr("y"))+.5)):n.hasDeactivatedItems||t.select("g.check").empty()||t.select("g.check").remove()}else r===J.RADIUS?(t.selectAll("circle.radius").attr("cx",(function(t){return n.startingPoint+t.cx})).attr("cy",(function(t){return f+t.cy})),t.select("text").attr("x",n.startingPoint+u+c).attr("y",p)):r===J.SIZE?(t.selectAll("g.icon").attr("transform","translate("+(n.startingPoint-h)+", "+(f-12)+")"),t.select("text").attr("x",n.startingPoint+u+c-h).attr("y",p)):r===J.ZOOM?(t.selectAll("g.icon").attr("transform","translate("+n.startingPoint+", "+f+")"),t.select("text").attr("x",n.startingPoint+u+c).attr("y",p)):(t.selectAll("g.icon").attr("transform","translate("+(n.startingPoint-h)+", "+f+")"),t.select("text").attr("x",n.startingPoint+u+c-h).attr("y",p));n.itemIndexInLine++},e.prototype.addEventListeners=function(){var t=this,e=this.getContainerSVG(),n=this.getOptions(),r=od.getProperty(n,"legend"),i=od.getProperty(r,"truncation","threshold");e.selectAll("g.legend-item").on("mouseover",(function(){t.services.events.dispatchEvent(et.Legend.ITEM_HOVER,{hoveredElement:kO(this)});var e=ct.checkbox.radius,n=kO(this);n.select("rect.checkbox").classed("hovered",!0),n.append("rect").classed("hover-stroke",!0).attr("x",parseFloat(n.select("rect.checkbox").attr("x"))-2).attr("y",parseFloat(n.select("rect.checkbox").attr("y"))-2).attr("width",2*e+4).attr("height",2*e+4).attr("rx",3).attr("ry",3).lower();var r=n.datum();r.name.length>i&&t.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:n,content:r.name})})).on("mousemove",(function(){t.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("click",(function(){t.services.events.dispatchEvent(et.Legend.ITEM_CLICK,{clickedElement:kO(this)});var e=kO(this),n=e.datum();t.model.toggleDataLabel(n.name)})).on("mouseout",(function(){var e=kO(this);e.select("rect.hover-stroke").remove(),e.select("rect.checkbox").classed("hovered",!1),t.services.events.dispatchEvent(et.Tooltip.HIDE),t.services.events.dispatchEvent(et.Legend.ITEM_MOUSEOUT,{hoveredElement:e})})),e.selectAll("g.legend-item rect.checkbox").on("keyup",(function(e){!Kp.key||"Enter"!==Kp.key&&" "!==Kp.key||(Kp.preventDefault(),t.model.toggleDataLabel(e.name))})),e.selectAll("g.additional-item").on("mouseover",(function(){var e=kO(this),n=e.datum();n.name.length>i&&t.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:e,content:n.name})}))},e}(FS);(function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"})(jS||(jS={}));var YS=(NS={},NS[jS.LEFT]=function(t,e,n){return{top:t.top-Math.round(e.offsetHeight/2)+Math.round(n.height/2),left:Math.round(t.left-e.offsetWidth)}},NS[jS.RIGHT]=function(t,e,n){return{top:t.top-Math.round(e.offsetHeight/2)+Math.round(n.height/2),left:Math.round(t.left+n.width)}},NS[jS.TOP]=function(t,e,n){return{top:Math.round(t.top-e.offsetHeight),left:t.left-Math.round(e.offsetWidth/2)+Math.round(n.width/2)}},NS[jS.BOTTOM]=function(t,e,n){return{top:Math.round(t.top+n.height),left:t.left-Math.round(e.offsetWidth/2)+Math.round(n.width/2)}},NS),ZS="undefined"!==typeof window?window:{innerHeight:0,scrollY:0,innerWidth:0,scrollX:0},XS=function(){function t(t){void 0===t&&(t={}),this.positions=YS,this.positions=Object.assign({},YS,t)}return t.prototype.getRelativeOffset=function(t){var e={left:t.offsetLeft,top:t.offsetTop};while(t.offsetParent&&"static"===getComputedStyle(t.offsetParent).position)e.left+=t.offsetLeft,e.top+=t.offsetTop,t=t.offsetParent;return e},t.prototype.getAbsoluteOffset=function(t){var e=t,n={top:0,left:0};while(e.offsetParent){var r=getComputedStyle(e.offsetParent);"static"===r.position&&r.marginLeft&&r.marginTop&&(parseInt(r.marginTop,10)&&(n.top+=parseInt(r.marginTop,10)),parseInt(r.marginLeft,10)&&(n.left+=parseInt(r.marginLeft,10))),e=e.offsetParent}var i=t.getBoundingClientRect(),o=document.body.getBoundingClientRect();return{top:i.top-o.top+n.top,left:i.left-o.left+n.left}},t.prototype.findRelative=function(t,e,n){var r=this.getRelativeOffset(t),i=t.getBoundingClientRect();return this.calculatePosition(r,i,e,n)},t.prototype.findAbsolute=function(t,e,n){var r=this.getAbsoluteOffset(t),i=t.getBoundingClientRect();return this.calculatePosition(r,i,e,n)},t.prototype.findPosition=function(t,e,n,r){void 0===r&&(r=this.getAbsoluteOffset);var i=r(t),o=t.getBoundingClientRect();return this.calculatePosition(i,o,e,n)},t.prototype.findPositionAt=function(t,e,n){return this.calculatePosition(t,{height:0,width:0},e,n)},t.prototype.getPlacementBox=function(t,e){var n=t.offsetHeight+e.top,r=t.offsetWidth+e.left;return{top:e.top,bottom:n,left:e.left,right:r}},t.prototype.addOffset=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=0),Object.assign({},t,{top:t.top+e,left:t.left+n})},t.prototype.setElement=function(t,e){t.style.top=e.top+"px",t.style.left=e.left+"px"},t.prototype.findBestPlacement=function(t,e,n,r,i){var o=this;void 0===r&&(r=this.defaultContainerFunction),void 0===i&&(i=this.findPosition);var a=n.map((function(n){var a=i(t,e,n),s=o.getPlacementBox(e,a),u=s.bottom-r().height,c=s.right-r().width;u=u<0?e.offsetHeight:u,c=c<0?e.offsetWidth:c;var l=e.offsetHeight*e.offsetWidth,h=u*c,f=l-h;f=0===f?l:f;var p=f/l;return{placement:n,weight:p}}));return a.sort((function(t,e){return e.weight-t.weight})),a[0].placement},t.prototype.findBestPlacementAt=function(t,e,n,r){var i=this;void 0===r&&(r=this.defaultContainerFunction);var o=function(e,n,r){return i.findPositionAt(t,n,r)};return this.findBestPlacement(null,e,n,r,o)},t.prototype.defaultContainerFunction=function(){return{width:ZS.innerHeight-ZS.scrollY,height:ZS.innerWidth-ZS.scrollX}},t.prototype.calculatePosition=function(t,e,n,r){return this.positions[r]?this.positions[r](t,n,e):(console.error("No function found for placement, defaulting to 0,0"),{left:0,top:0})},t}(),KS=(new XS,XS);function $S(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=qw(t);return!isNaN(e)}var QS={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function JS(t,e,n){var r;return n=n||{},r="string"===typeof QS[t]?QS[t]:1===e?QS[t].one:QS[t].other.replace("{{count}}",e),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r}function tT(t){return function(e){var n=e||{},r=n.width?String(n.width):t.defaultWidth,i=t.formats[r]||t.formats[t.defaultWidth];return i}}var eT={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},nT={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},rT={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},iT={date:tT({formats:eT,defaultWidth:"full"}),time:tT({formats:nT,defaultWidth:"full"}),dateTime:tT({formats:rT,defaultWidth:"full"})},oT=iT,aT={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function sT(t,e,n,r){return aT[t]}function uT(t){return function(e,n){var r,i=n||{},o=i.context?String(i.context):"standalone";if("formatting"===o&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,s=i.width?String(i.width):a;r=t.formattingValues[s]||t.formattingValues[a]}else{var u=t.defaultWidth,c=i.width?String(i.width):t.defaultWidth;r=t.values[c]||t.values[u]}var l=t.argumentCallback?t.argumentCallback(e):e;return r[l]}}var cT={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},lT={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},hT={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},fT={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},pT={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},dT={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};function vT(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"}var gT={ordinalNumber:vT,era:uT({values:cT,defaultWidth:"wide"}),quarter:uT({values:lT,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:uT({values:hT,defaultWidth:"wide"}),day:uT({values:fT,defaultWidth:"wide"}),dayPeriod:uT({values:pT,defaultWidth:"wide",formattingValues:dT,defaultFormattingWidth:"wide"})},mT=gT;function yT(t){return function(e,n){var r=String(e),i=n||{},o=r.match(t.matchPattern);if(!o)return null;var a=o[0],s=r.match(t.parsePattern);if(!s)return null;var u=t.valueCallback?t.valueCallback(s[0]):s[0];return u=i.valueCallback?i.valueCallback(u):u,{value:u,rest:r.slice(a.length)}}}function _T(t){return function(e,n){var r=String(e),i=n||{},o=i.width,a=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],s=r.match(a);if(!s)return null;var u,c=s[0],l=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth];return u="[object Array]"===Object.prototype.toString.call(l)?OT(l,(function(t){return t.test(r)})):bT(l,(function(t){return t.test(r)})),u=t.valueCallback?t.valueCallback(u):u,u=i.valueCallback?i.valueCallback(u):u,{value:u,rest:r.slice(c.length)}}}function bT(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function OT(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}var xT=/^(\d+)(th|st|nd|rd)?/i,wT=/\d+/i,ET={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ST={any:[/^b/i,/^(a|c)/i]},TT={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},MT={any:[/1/i,/2/i,/3/i,/4/i]},CT={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},AT={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},PT={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},kT={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},LT={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},DT={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},RT={ordinalNumber:yT({matchPattern:xT,parsePattern:wT,valueCallback:function(t){return parseInt(t,10)}}),era:_T({matchPatterns:ET,defaultMatchWidth:"wide",parsePatterns:ST,defaultParseWidth:"any"}),quarter:_T({matchPatterns:TT,defaultMatchWidth:"wide",parsePatterns:MT,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:_T({matchPatterns:CT,defaultMatchWidth:"wide",parsePatterns:AT,defaultParseWidth:"any"}),day:_T({matchPatterns:PT,defaultMatchWidth:"wide",parsePatterns:kT,defaultParseWidth:"any"}),dayPeriod:_T({matchPatterns:LT,defaultMatchWidth:"any",parsePatterns:DT,defaultParseWidth:"any"})},IT=RT,NT={code:"en-US",formatDistance:JS,formatLong:oT,formatRelative:sT,localize:mT,match:IT,options:{weekStartsOn:0,firstWeekContainsDate:1}},jT=NT;function VT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Kw(e);return vE(t,-n)}function BT(t,e){var n=t<0?"-":"",r=Math.abs(t).toString();while(r.length<e)r="0"+r;return n+r}var GT={y:function(t,e){var n=t.getUTCFullYear(),r=n>0?n:1-n;return BT("yy"===e?r%100:r,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):BT(n+1,2)},d:function(t,e){return BT(t.getUTCDate(),e.length)},a:function(t,e){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return n.toUpperCase();case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(t,e){return BT(t.getUTCHours()%12||12,e.length)},H:function(t,e){return BT(t.getUTCHours(),e.length)},m:function(t,e){return BT(t.getUTCMinutes(),e.length)},s:function(t,e){return BT(t.getUTCSeconds(),e.length)},S:function(t,e){var n=e.length,r=t.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,n-3));return BT(i,e.length)}},UT=GT,HT=864e5;function zT(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=qw(t),n=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=n-r;return Math.floor(i/HT)+1}function FT(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=1,n=qw(t),r=n.getUTCDay(),i=(r<e?7:0)+r-e;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function WT(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=qw(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=FT(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=FT(o);return e.getTime()>=i.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function qT(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=WT(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=FT(n);return r}var YT=6048e5;function ZT(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=qw(t),n=FT(e).getTime()-qT(e).getTime();return Math.round(n/YT)+1}function XT(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=e||{},r=n.locale,i=r&&r.options&&r.options.weekStartsOn,o=null==i?0:Kw(i),a=null==n.weekStartsOn?o:Kw(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=qw(t),u=s.getUTCDay(),c=(u<a?7:0)+u-a;return s.setUTCDate(s.getUTCDate()-c),s.setUTCHours(0,0,0,0),s}function KT(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=qw(t,e),r=n.getUTCFullYear(),i=e||{},o=i.locale,a=o&&o.options&&o.options.firstWeekContainsDate,s=null==a?1:Kw(a),u=null==i.firstWeekContainsDate?s:Kw(i.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=new Date(0);c.setUTCFullYear(r+1,0,u),c.setUTCHours(0,0,0,0);var l=XT(c,e),h=new Date(0);h.setUTCFullYear(r,0,u),h.setUTCHours(0,0,0,0);var f=XT(h,e);return n.getTime()>=l.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function $T(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=e||{},r=n.locale,i=r&&r.options&&r.options.firstWeekContainsDate,o=null==i?1:Kw(i),a=null==n.firstWeekContainsDate?o:Kw(n.firstWeekContainsDate),s=KT(t,e),u=new Date(0);u.setUTCFullYear(s,0,a),u.setUTCHours(0,0,0,0);var c=XT(u,e);return c}var QT=6048e5;function JT(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=qw(t),r=XT(n,e).getTime()-$T(n,e).getTime();return Math.round(r/QT)+1}var tM={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},eM={G:function(t,e,n){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){if("yo"===e){var r=t.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return UT.y(t,e)},Y:function(t,e,n,r){var i=KT(t,r),o=i>0?i:1-i;if("YY"===e){var a=o%100;return BT(a,2)}return"Yo"===e?n.ordinalNumber(o,{unit:"year"}):BT(o,e.length)},R:function(t,e){var n=WT(t);return BT(n,e.length)},u:function(t,e){var n=t.getUTCFullYear();return BT(n,e.length)},Q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return BT(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return BT(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,n){var r=t.getUTCMonth();switch(e){case"M":case"MM":return UT.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return BT(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,n,r){var i=JT(t,r);return"wo"===e?n.ordinalNumber(i,{unit:"week"}):BT(i,e.length)},I:function(t,e,n){var r=ZT(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):BT(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):UT.d(t,e)},D:function(t,e,n){var r=zT(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):BT(r,e.length)},E:function(t,e,n){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,r){var i=t.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return BT(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(t,e,n,r){var i=t.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return BT(o,e.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(t,e,n){var r=t.getUTCDay(),i=0===r?7:r;switch(e){case"i":return String(i);case"ii":return BT(i,e.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,n){var r=t.getUTCHours(),i=r/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,e,n){var r,i=t.getUTCHours();switch(r=12===i?tM.noon:0===i?tM.midnight:i/12>=1?"pm":"am",e){case"b":case"bb":case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,n){var r,i=t.getUTCHours();switch(r=i>=17?tM.evening:i>=12?tM.afternoon:i>=4?tM.morning:tM.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return UT.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):UT.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):BT(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):BT(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):UT.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):UT.s(t,e)},S:function(t,e){return UT.S(t,e)},X:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return rM(o);case"XXXX":case"XX":return iM(o);case"XXXXX":case"XXX":default:return iM(o,":")}},x:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"x":return rM(o);case"xxxx":case"xx":return iM(o);case"xxxxx":case"xxx":default:return iM(o,":")}},O:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+nM(o,":");case"OOOO":default:return"GMT"+iM(o,":")}},z:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+nM(o,":");case"zzzz":default:return"GMT"+iM(o,":")}},t:function(t,e,n,r){var i=r._originalDate||t,o=Math.floor(i.getTime()/1e3);return BT(o,e.length)},T:function(t,e,n,r){var i=r._originalDate||t,o=i.getTime();return BT(o,e.length)}};function nM(t,e){var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=e||"";return n+String(i)+a+BT(o,2)}function rM(t,e){if(t%60===0){var n=t>0?"-":"+";return n+BT(Math.abs(t)/60,2)}return iM(t,e)}function iM(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t),o=BT(Math.floor(i/60),2),a=BT(i%60,2);return r+o+n+a}var oM=eM;function aM(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}}function sM(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}}function uM(t,e){var n,r=t.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return aM(t,e);switch(i){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;case"PPPP":default:n=e.dateTime({width:"full"});break}return n.replace("{{date}}",aM(i,e)).replace("{{time}}",sM(o,e))}var cM={p:sM,P:uM},lM=cM,hM=["D","DD"],fM=["YY","YYYY"];function pM(t){return-1!==hM.indexOf(t)}function dM(t){return-1!==fM.indexOf(t)}function vM(t){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` for formatting years; see: https://git.io/fxCyr");if("YY"===t)throw new RangeError("Use `yy` instead of `YY` for formatting years; see: https://git.io/fxCyr");if("D"===t)throw new RangeError("Use `d` instead of `D` for formatting days of the month; see: https://git.io/fxCyr");if("DD"===t)throw new RangeError("Use `dd` instead of `DD` for formatting days of the month; see: https://git.io/fxCyr")}var gM=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,mM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yM=/^'([^]*?)'?$/,_M=/''/g,bM=/[a-zA-Z]/;function OM(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=String(e),i=n||{},o=i.locale||jT,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:Kw(a),u=null==i.firstWeekContainsDate?s:Kw(i.firstWeekContainsDate);if(!(u>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var c=o.options&&o.options.weekStartsOn,l=null==c?0:Kw(c),h=null==i.weekStartsOn?l:Kw(i.weekStartsOn);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var f=qw(t);if(!$S(f))throw new RangeError("Invalid time value");var p=oE(f),d=VT(f,p),v={firstWeekContainsDate:u,weekStartsOn:h,locale:o,_originalDate:f},g=r.match(mM).map((function(t){var e=t[0];if("p"===e||"P"===e){var n=lM[e];return n(t,o.formatLong,v)}return t})).join("").match(gM).map((function(t){if("''"===t)return"'";var e=t[0];if("'"===e)return xM(t);var n=oM[e];if(n)return!i.useAdditionalWeekYearTokens&&dM(t)&&vM(t),!i.useAdditionalDayOfYearTokens&&pM(t)&&vM(t),n(d,t,o.localize,v);if(e.match(bM))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return t})).join("");return g}function xM(t){return t.match(yM)[1].replace(_M,"'")}var wM=[["15seconds",15e3],["minute",6e4],["30minutes",18e5],["hourly",36e5],["daily",864e5],["monthly",2592e6],["quarterly",7776e6],["yearly",31104e6]];function EM(t,e,n,r,i){var o=0===e,a=2===Number(OM(new Date(t),"c")),s=1===Number(OM(new Date(t),"q")),u=0!==e?n[e-1]:null;switch(r){case"15seconds":return o||PM(t)||kM(t,u)||LM(t);case"minute":return o||PM(t)||kM(t,u)||LM(t);case"30minutes":return o||PM(t)||kM(t,u)||LM(t);case"hourly":return o||PM(t)||kM(t,u)||LM(t);case"daily":return i?o||a||LM(t):o||kM(t,u)||LM(t);case"monthly":return o||LM(t);case"quarterly":return o||s;case"yearly":return!1;default:throw new Error(r+" is not a valid time interval.")}}function SM(t,e,n,r,i){var o=i.showDayName,a="daily"===r&&o?"weekly":r,s=new Date(t),u=od.getProperty(i,"timeIntervalFormats")[a],c=od.getProperty(u,"primary"),l=od.getProperty(u,"secondary"),h=EM(t,e,n,r,o)?c:l,f=i.localeObject;return OM(s,h,{locale:f})}function TM(t){var e=new Date(t);return{M:e.getMonth()+1,d:e.getDate(),H:e.getHours(),m:e.getMinutes(),s:e.getSeconds()}}function MM(t){if(t)return t.slice(1).map((function(e,n){return e-t[n]}))}function CM(t){var e=wM.reduce((function(e,n,r){n[0];var i=n[1],o=wM[e][1],a=Math.abs(o-t),s=Math.abs(i-t);return a<s?e:r}),0);return wM[e][0]}function AM(t){if(1===t.length)return"15seconds";var e=MM(t),n=dv(e);return CM(n)}function PM(t){var e=TM(t),n=e.s,r=e.m,i=e.H;return 0===i&&0===r&&0===n}function kM(t,e){var n=TM(t).M,r=TM(e).M;return n!==r}function LM(t){var e=TM(t),n=e.M,r=e.d,i=e.s,o=e.m,a=e.H;return 1===n&&1===r&&0===a&&0===o&&0===i}var DM=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),RM=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.type="threshold",r.positionService=new KS,r}return DM(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n=od.getProperty(this.getOptions(),"axes"),r=[];Object.keys(n).forEach((function(t){if(Object.values(L).includes(t)){var e=n[t];e.thresholds&&e.thresholds.length>0&&r.push({axisPosition:t,thresholds:e.thresholds})}}));var i=this.getContainerSVG({withinChartClip:!0}),o=i.selectAll("g.axis-thresholds").data(r,(function(t){return t.axisPosition}));o.exit().attr("opacity",0).remove();var a=o.enter().append("g"),s=a.merge(o);s.attr("class",(function(t){return"axis-thresholds "+t.axisPosition}));var u=s.selectAll("g.threshold-group").data((function(t){return t.thresholds.map((function(e){return e.axisPosition=t.axisPosition,e}))}));u.exit().attr("opacity",0).remove();var c=u.enter().append("g");c.append("line").attr("class","threshold-line"),c.append("rect").attr("class","threshold-hoverable-area");var l=c.merge(u);l.attr("class","threshold-group");var h=this;s.each((function(e){var n=e.axisPosition,r=h.services.cartesianScales.getScaleByPosition(n),i=h.services.cartesianScales.getScaleTypeByPosition(n),o=h.services.cartesianScales.getMainXScale(),a=h.services.cartesianScales.getMainYScale(),s=i===N.LABELS,u=o.range(),c=u[0],l=u[1],f=a.range(),p=f[0],d=f[1],v=h.services.cartesianScales,g=v.getOrientation(),m=function(t){return v.getDomainValue(t)},y=function(t){return v.getRangeValue(t)},_=od.flipDomainAndRangeBasedOnOrientation(m,y,g),b=_[0],O=_[1],x=kO(this);n===L.TOP||n===L.BOTTOM?(x.selectAll("line.threshold-line").transition(h.services.transitions.getTransition("threshold-line-update",t)).attr("y1",d).attr("y2",p).attr("x1",(function(t){var e=t.value;return b(e)+(s?r.step()/2:0)})).attr("x2",(function(t){var e=t.value;return b(e)+(s?r.step()/2:0)})).style("stroke",(function(t){var e=t.fillColor;return e})),x.selectAll("rect.threshold-hoverable-area").attr("x",0).attr("y",(function(t){var e=t.value;return-b(e)})).attr("width",Math.abs(p-d)).classed("rotate",!0)):(x.selectAll("line.threshold-line").transition(h.services.transitions.getTransition("threshold-line-update",t)).attr("x1",c).attr("x2",l).attr("y1",(function(t){var e=t.value;return O(e)+(s?r.step()/2:0)})).attr("y2",(function(t){var e=t.value;return O(e)+(s?r.step()/2:0)})).style("stroke",(function(t){var e=t.fillColor;return e})),x.selectAll("rect.threshold-hoverable-area").attr("x",c).attr("y",(function(t){var e=t.value;return O(e)})).attr("width",Math.abs(l-c)).classed("rotate",!1))})),this.services.events.addEventListener(et.Threshold.SHOW,(function(t){e.setThresholdLabelPosition(t.detail.datum),e.label.classed("hidden",!1)})),this.services.events.addEventListener(et.Threshold.HIDE,(function(t){e.label.classed("hidden",!0)})),this.appendThresholdLabel(),this.addEventListeners()},e.prototype.getFormattedValue=function(t){var e=t.value,n=t.axisPosition,r=this.getOptions(),i=this.services.cartesianScales.getScaleTypeByPosition(n);if(i===N.TIME){var o=[L.LEFT,L.RIGHT].includes(n),a=this.services.cartesianScales.getMainXScale(),s=this.services.cartesianScales.getMainYScale(),u=o?s:a,c=od.getProperty(r,"timeScale"),l=AM(u.ticks());return SM(e,0,u.ticks(),l,c)}return e.toLocaleString("en")},e.prototype.appendThresholdLabel=function(){var t=kO(this.services.domUtils.getHolder()),e=od.getProperty(this.getOptions(),"style","prefix");this.label=VO.appendOrSelect(t,"div."+RO.prefix+"--"+e+"--threshold--label").classed("hidden",!0)},e.prototype.setThresholdLabelPosition=function(t){var e=this.services.domUtils.getHolder(),n=ud(e),r=t.valueFormatter?t.valueFormatter(t.value):this.getFormattedValue(t);this.label.html((t.label||"Threshold")+": "+r).style("background-color",t.fillColor);var i=this.label.node(),o=this.positionService.findBestPlacementAt({left:n[0],top:n[1]},i,[jS.RIGHT,jS.LEFT,jS.TOP,jS.BOTTOM],(function(){return{width:e.offsetWidth,height:e.offsetHeight}})),a=this.positionService.findPositionAt({left:n[0],top:n[1]},i,o);this.positionService.setElement(i,a)},e.prototype.addEventListeners=function(){var t=this,e=this.getContainerSVG({withinChartClip:!0});e.selectAll("rect.threshold-hoverable-area").on("mouseover mousemove",(function(){kO(this.parentNode).select("line.threshold-line").classed("active",!0),t.services.events.dispatchEvent(et.Threshold.SHOW,{hoveredElement:kO(this),datum:kO(this).datum()})})).on("mouseout",(function(){kO(this.parentNode).select("line.threshold-line").classed("active",!1),t.services.events.dispatchEvent(et.Threshold.HIDE,{hoveredElement:kO(this),datum:kO(this).datum()})}))},e}(FS),IM=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),NM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="title",e}return IM(e,t),e.prototype.render=function(){var t=this.getContainerSVG(),e=t.selectAll("text.title").data([this.getOptions().title]);e.enter().append("text").classed("title",!0).merge(e).attr("x",0).attr("y","1em").html((function(t){return t}));var n=this.getMaxTitleWidth(),r=VO.appendOrSelect(t,"text.title");r.node().getComputedTextLength()>n&&n>0&&this.truncateTitle(r,n),e.exit().remove()},e.prototype.truncateTitle=function(t,e){if(!(e<=0)){var n=t.text();if(t.node().getComputedTextLength()>e){t.append("tspan").text("...");var r=VO.appendOrSelect(t,"tspan").node().getComputedTextLength(),i=t.text(),o=this.getSubstringIndex(t.node(),0,i.length-1,e-r);t.html(i.substring(0,o-1)).append("tspan").text("...");var a=this;t.on("mouseover",(function(){a.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:t,content:n})})).on("mousemove",(function(){a.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("mouseout",(function(){a.services.events.dispatchEvent(et.Tooltip.HIDE)}))}}},e.prototype.getMaxTitleWidth=function(){return VO.getSVGElementSize(this.parent.node(),{useAttr:!0}).width},e.prototype.getSubstringIndex=function(t,e,n,r){var i=Math.floor((n+e)/2);return t.getSubStringLength(0,i)>r?this.getSubstringIndex(t,e,i,r):t.getSubStringLength(0,i)<r?t.getSubStringLength(0,i+1)>r?i:this.getSubstringIndex(t,i,n,r):i},e}(FS),jM=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),VM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="meter-title",e}return jM(e,t),e.prototype.render=function(){var t=this.model.getDisplayData(),e=this.getOptions(),n=this.getContainerSVG(),r=e.data.groupMapsTo,i=n.selectAll("text.meter-title").data([t[r]]);i.enter().append("text").classed("meter-title",!0).merge(i).attr("x",0).attr("y","1em").text((function(t){return t})),i.exit().remove(),this.appendPercentage(),this.displayStatus();var o=this.getMaxTitleWidth(),a=VO.appendOrSelect(n,"text.meter-title");o>0&&a.node().getComputedTextLength()>o&&this.truncateTitle(a,o)},e.prototype.displayStatus=function(){var t=this,e=this.getContainerSVG(),n=(this.getOptions(),VO.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttr:!0})),r=n.width?n.width:this.parent.node().getAttribute("width"),i=this.model.getStatus(),o=ht.status.indicatorSize/2,a=VO.appendOrSelect(e,"g.status-indicator").attr("class",null!==i?"status-indicator status--"+i:"").attr("transform","translate("+(r-o)+", 0)"),s=i?[i]:[],u=a.selectAll("circle.status").data(s);u.enter().append("circle").merge(u).attr("class","status").attr("r",o).attr("cx",0).attr("cy","calc(1em / 2)");var c=a.selectAll("path.innerFill").data(s);c.enter().append("path").merge(c).attr("d",t.getStatusIconPathString(i)).attr("transform","translate(-"+o+", 0)").attr("class","innerFill"),c.exit().remove(),u.exit().remove()},e.prototype.appendPercentage=function(){var t=this.model.getDisplayData().value,e=this.getContainerSVG(),n=VO.appendOrSelect(e,"text.meter-title"),r=!0===od.getProperty(this.getOptions(),"meter","statusBar","percentageIndicator","enabled")?[t]:[],i=e.selectAll("text.percent-value").data(r),o=ht.statusBar.paddingRight;i.enter().append("text").classed("percent-value",!0).merge(i).text((function(t){return t+"%"})).attr("x",+n.attr("x")+n.node().getComputedTextLength()+o).attr("y",n.attr("y")),i.exit().remove()},e.prototype.truncateTitle=function(e,n){t.prototype.truncateTitle.call(this,e,n);var r=VO.appendOrSelect(this.parent,"tspan"),i=ht.statusBar.paddingRight,o=Math.ceil(r.node().getComputedTextLength()),a=VO.appendOrSelect(this.parent,"text.percent-value");a.attr("x",+e.attr("x")+e.node().getComputedTextLength()+o+i)},e.prototype.getMaxTitleWidth=function(){var t=VO.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttr:!0}),e=t.width?t.width:this.parent.node().getAttribute("width"),n=VO.appendOrSelect(this.parent,"text.percent-value"),r=ht.statusBar.paddingRight,i=n.node().getComputedTextLength(),o=VO.appendOrSelect(this.parent,"g.status-indicator").node(),a=VO.getSVGElementSize(o,{useBBox:!0}).width+ht.status.paddingLeft;return e-i-r-a},e.prototype.getStatusIconPathString=function(t){switch(t){case Z.SUCCESS:return"M6.875 11.3125 3.75 8.1875 4.74375 7.25 6.875 9.34375 11.50625 4.75 12.5 5.7375 Z";case Z.DANGER:return"M10.7 11.5 4.5 5.3 5.3 4.5 11.5 10.7 Z";case Z.WARNING:return"M7.9375,11.125 C7.41973305,11.125 7,11.544733 7,12.0625 C7,12.580267 7.41973305,13 7.9375,13 C8.45526695,13 8.875,12.580267 8.875,12.0625 C8.875,11.544733 8.45526695,11.125 7.9375,11.125 M7.3125, 3 8.5625, 3 8.5625, 9.875 7.3125, 9.875, 7.3125, 3 Z"}},e}(NM),BM=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),GM=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="tooltip",i.isEventListenerAdded=!1,i.positionService=new KS,i.handleShowTooltip=function(t){var e=t.detail.data||t.detail.items,n=i.getTooltipHTML(t),r=VO.appendOrSelect(i.tooltip,"div.content-box");if(od.getProperty(i.getOptions(),"tooltip","customHTML"))if(t.detail.content){var o='<div class="title-tooltip"><p>'+t.detail.content+"</p></div>";r.html(o)}else r.html(i.model.getOptions().tooltip.customHTML(e,n));else r.html(n);i.positionTooltip(t),i.tooltip.classed("hidden",!1).attr("aria-hidden",!1)},i.handleHideTooltip=function(){i.tooltip.classed("hidden",!0).attr("aria-hidden",!0)},i.init(),i}return BM(e,t),e.prototype.addTooltipEventListener=function(){var t=this;this.services.events.addEventListener(et.Tooltip.MOVE,(function(e){t.positionTooltip(e)})),this.services.events.addEventListener(et.Tooltip.SHOW,this.handleShowTooltip),this.services.events.addEventListener(et.Tooltip.HIDE,this.handleHideTooltip),this.services.events.addEventListener(et.Chart.MOUSEOUT,this.handleHideTooltip)},e.prototype.removeTooltipEventListener=function(){this.services.events.removeEventListener(et.Tooltip.MOVE,null),this.services.events.removeEventListener(et.Tooltip.SHOW,this.handleShowTooltip),this.services.events.removeEventListener(et.Tooltip.HIDE,this.handleHideTooltip),this.services.events.removeEventListener(et.Chart.MOUSEOUT,this.handleHideTooltip)},e.prototype.getItems=function(t){return t.detail.items?t.detail.items:[]},e.prototype.formatItems=function(t){var e=this,n=this.getOptions(),r=od.getProperty(n,"tooltip","truncation","type"),i=od.getProperty(n,"tooltip","truncation","threshold"),o=od.getProperty(n,"tooltip","truncation","numCharacter");return r!==R.NONE?t.map((function(t){var n=t.labelIcon?12:0;return t.value=t.value?e.valueFormatter(t.value,t.label):t.value,t.label&&t.label.length+n>i&&(t.label=od.truncateLabel(t.label,r,o)),t.value&&t.value.length>i&&(t.value=od.truncateLabel(t.value,r,o)),t})):t},e.prototype.getTooltipHTML=function(t){var e;if(t.detail.content)e='<div class="title-tooltip"><p>'+t.detail.content+"</p></div>";else{var n=this.getItems(t),r=this.formatItems(n);e="<ul class='multi-tooltip'>"+r.map((function(t){return'<li>\n\t\t\t\t\t\t\t<div class="datapoint-tooltip '+(t.bold?"bold":"")+'">\n\t\t\t\t\t\t\t\t'+(t.class?'<a class="tooltip-color '+t.class+'"></a>':"")+"\n\t\t\t\t\t\t\t\t"+(t.color?'<a style="background-color: '+t.color+'" class="tooltip-color"></a>':"")+'\n\t\t\t\t\t\t\t\t<div class="label">\n\t\t\t\t\t\t\t\t<p>'+(t.label||"")+"</p>\n\t\t\t\t\t\t\t\t"+(t.labelIcon?'<span class="label-icon"/>'+t.labelIcon+"</span>":"")+"\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t"+(void 0===t.value||null===t.value?"":'<p class="value"/>'+t.value+"</p>")+"\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</li>"})).join("")+"</ul>"}return e},e.prototype.valueFormatter=function(t,e){var n=this.getOptions(),r=od.getProperty(n,"tooltip","valueFormatter");return r?r(t,e):"function"===typeof t.getTime?OM(t,"MMM d, yyyy"):t.toLocaleString()},e.prototype.render=function(){var t=this.getOptions(),e=od.getProperty(t,"tooltip","enabled");if(e){var n=kO(this.services.domUtils.getHolder()),r=od.getProperty(t,"style","prefix");this.tooltip=VO.appendOrSelect(n,"div."+RO.prefix+"--"+r+"--tooltip"),this.tooltip.style("max-width",null),this.isEventListenerAdded||(this.addTooltipEventListener(),this.isEventListenerAdded=!0),this.tooltip.classed("hidden",!0)}else!e&&this.isEventListenerAdded&&(this.removeTooltipEventListener(),this.isEventListenerAdded=!1)},e.prototype.positionTooltip=function(t){var e,n=this.services.domUtils.getHolder(),r=this.tooltip.node(),i=this.getOptions(),o=od.getProperty(i,"zoomBar","top","enabled"),a=od.getProperty(t,"detail","mousePosition");if(a){var s=od.getProperty(i,"zoomBar","top","type"),u=yt.height[s];o&&(a[1]+=u+yt.spacerHeight)}else a=ud(n);var c,l=n.offsetWidth,h=n.offsetHeight;c=a[0]/l>.9?jS.LEFT:a[0]/l<.1?jS.RIGHT:this.positionService.findBestPlacementAt({left:a[0],top:a[1]},r,[jS.RIGHT,jS.LEFT,jS.TOP,jS.BOTTOM],(function(){return{width:l,height:h}}));var f=vt.horizontalOffset;c===jS.LEFT&&(f*=-1),e=this.positionService.findPositionAt({left:a[0]+f,top:a[1]},r,c),this.positionService.setElement(r,e)},e}(FS),UM=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),HM=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},zM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return UM(e,t),e.prototype.getItems=function(t){var e=this;if(t.detail.items)return t.detail.items;var n=t.detail.data;if(!n.length||!n[0])return[];var r=this.getOptions(),i=this.services.cartesianScales,o=i.getDomainAxisOptions(),a=i.getDomainIdentifier(),s=r.data.groupMapsTo,u=o.title;if(!u){var c=i.getDomainAxisPosition();u=c===L.BOTTOM||c===L.TOP?"x-value":"y-value"}var l,h=n[0][a];if(1===n.length){var f=n[0],p=i.getRangeAxisPosition({datum:f}),d=i.getRangeIdentifier(f),v=i.getAxisOptions(p),g=f[d],m=v.title;m||(m=p===L.LEFT||p===L.RIGHT?"y-value":"x-value"),l=HM([{label:u,value:h}],Array.isArray(g)&&2===g.length?[{label:"Start",value:g[0]},{label:"End",value:g[1]}]:[{label:m,value:f[d]}]),t.detail.additionalItems&&t.detail.additionalItems.forEach((function(t){return l.push({label:t.label,value:t.value})})),l.push({label:r.tooltip.groupLabel,value:f[s],color:this.model.getFillColor(f[s]),class:this.model.getColorClassName({classNameTypes:[k.TOOLTIP],dataGroupName:f[s]})})}else if(n.length>1){l=[{label:u,value:h}],l=l.concat(n.map((function(t){return{label:t[s],value:t[i.getRangeIdentifier(t)],color:e.model.getFillColor(t[s]),class:e.model.getColorClassName({classNameTypes:[k.TOOLTIP],dataGroupName:t[s]})}})).sort((function(t,e){return e.value-t.value})));var y=i.isDualAxes();if(!y&&!0===od.getProperty(r,"tooltip","showTotal")){var _=i.getRangeIdentifier();l.push({label:r.tooltip.totalLabel||"Total",value:n.reduce((function(t,e){return t+e[_]}),0),bold:!0})}}return l},e}(GM),FM=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),WM=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="chart-clip",i.chartClipId="chart-clip-id-"+Math.floor(99999999999*Math.random()),i.init(),i}return FM(e,t),e.prototype.init=function(){this.model.set({chartClipId:this.chartClipId},{skipUpdate:!0})},e.prototype.render=function(t){void 0===t&&(t=!0),this.createClipPath()},e.prototype.createClipPath=function(){var t=this.parent,e=this.services.cartesianScales,n=e.getMainXScale(),r=e.getMainYScale(),i=n.range(),o=i[0],a=i[1],s=r.range(),u=s[0],c=s[1];this.chartClipPath=VO.appendOrSelect(t,"clipPath."+this.type).attr("id",this.chartClipId);var l=VO.appendOrSelect(this.chartClipPath,"rect."+this.type);l.attr("x",o).attr("y",c).attr("width",a-o).attr("height",u-c),this.chartClipPath.merge(l).lower()},e}(FS),qM=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),YM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="canvas-chart-clip",e.chartClipId="canvas-chart-clip-id-"+Math.floor(99999999999*Math.random()),e}return qM(e,t),e.prototype.createClipPath=function(){var t=this.parent,e=VO.getSVGElementSize(this.parent,{useAttrs:!0}),n=e.width,r=e.height;this.chartClipPath=VO.appendOrSelect(t,"clipPath."+this.type).attr("id",this.chartClipId);var i=VO.appendOrSelect(this.chartClipPath,"rect."+this.type);i.attr("x",0).attr("y",0).attr("width",n).attr("height",r),this.chartClipPath.merge(i).lower()},e}(WM),ZM=Math.PI,XM=2*ZM,KM=1e-6,$M=XM-KM;function QM(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function JM(){return new QM}QM.prototype=JM.prototype={constructor:QM,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,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-t,u=r-e,c=o-t,l=a-e,h=c*c+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>KM)if(Math.abs(l*s-u*c)>KM&&i){var f=n-o,p=r-a,d=s*s+u*u,v=f*f+p*p,g=Math.sqrt(d),m=Math.sqrt(h),y=i*Math.tan((ZM-Math.acos((d+h-v)/(2*g*m)))/2),_=y/m,b=y/g;Math.abs(_-1)>KM&&(this._+="L"+(t+_*c)+","+(e+_*l)),this._+="A"+i+","+i+",0,0,"+ +(l*f>c*p)+","+(this._x1=t+b*s)+","+(this._y1=e+b*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,o){t=+t,e=+e,n=+n,o=!!o;var a=n*Math.cos(r),s=n*Math.sin(r),u=t+a,c=e+s,l=1^o,h=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+c:(Math.abs(this._x1-u)>KM||Math.abs(this._y1-c)>KM)&&(this._+="L"+u+","+c),n&&(h<0&&(h=h%XM+XM),h>$M?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):h>KM&&(this._+="A"+n+","+n+",0,"+ +(h>=ZM)+","+l+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},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 tC=JM;function eC(t){return t[0]}function nC(t){return t[1]}var rC=function(){var t=eC,e=nC,n=G_(!0),r=null,i=RE,o=null;function a(a){var s,u,c,l=a.length,h=!1;for(null==r&&(o=i(c=tC())),s=0;s<=l;++s)!(s<l&&n(u=a[s],s,a))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(u,s,a),+e(u,s,a));if(c)return o=null,c+""||null}return a.x=function(e){return arguments.length?(t="function"===typeof e?e:G_(+e),a):t},a.y=function(t){return arguments.length?(e="function"===typeof t?t:G_(+t),a):e},a.defined=function(t){return arguments.length?(n="function"===typeof t?t:G_(!!t),a):n},a.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),a):i},a.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),a):r},a},iC=function(){var t=eC,e=null,n=G_(0),r=nC,i=G_(!0),o=null,a=RE,s=null;function u(u){var c,l,h,f,p,d=u.length,v=!1,g=new Array(d),m=new Array(d);for(null==o&&(s=a(p=tC())),c=0;c<=d;++c){if(!(c<d&&i(f=u[c],c,u))===v)if(v=!v)l=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=c-1;h>=l;--h)s.point(g[h],m[h]);s.lineEnd(),s.areaEnd()}v&&(g[c]=+t(f,c,u),m[c]=+n(f,c,u),s.point(e?+e(f,c,u):g[c],r?+r(f,c,u):m[c]))}if(p)return s=null,p+""||null}function c(){return rC().defined(i).curve(a).context(o)}return u.x=function(n){return arguments.length?(t="function"===typeof n?n:G_(+n),e=null,u):t},u.x0=function(e){return arguments.length?(t="function"===typeof e?e:G_(+e),u):t},u.x1=function(t){return arguments.length?(e=null==t?null:"function"===typeof t?t:G_(+t),u):e},u.y=function(t){return arguments.length?(n="function"===typeof t?t:G_(+t),r=null,u):n},u.y0=function(t){return arguments.length?(n="function"===typeof t?t:G_(+t),u):n},u.y1=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:G_(+t),u):r},u.lineX0=u.lineY0=function(){return c().x(t).y(n)},u.lineY1=function(){return c().x(t).y(r)},u.lineX1=function(){return c().x(e).y(n)},u.defined=function(t){return arguments.length?(i="function"===typeof t?t:G_(!!t),u):i},u.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),u):a},u.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),u):o},u},oC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),aC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e.gradient_id="gradient-id-"+Math.floor(99999999999*Math.random()),e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-hover-area")).attr("opacity",(function(t){return t.name!==n.datum()["name"]?rt.opacity.unselected:rt.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-mouseout-area")).attr("opacity",rt.opacity.selected)},e}return oC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG({withinChartClip:!0}),r=[0,0],i=this.services.cartesianScales,o=i.getOrientation(),a=iC().curve(this.services.curves.getD3Curve()).defined((function(t,e){var n=i.getRangeIdentifier(),r=t[n];return null!==r&&void 0!==r})),s=this.model.getGroupedData(this.configs.groups),u=od.getProperty(this.getOptions(),"bounds"),c=u&&s&&1===s.length;!c&&u&&console.warn("Bounds can only be shown when having 1 single datagroup, you've supplied "+s.length);var l=function(t,e){return c?i.getBoundedScaledValues(t,e)[0]:i.getRangeValue(0)},h=function(t,e){return c?i.getBoundedScaledValues(t,e)[1]:i.getRangeValue(t,e)};o===I.VERTICAL?(r=this.services.cartesianScales.getMainYScale().domain(),a.x((function(t,e){return i.getDomainValue(t,e)})).y0((function(t,e){return l(t,e)})).y1((function(t,e){return h(t,e)}))):(r=this.services.cartesianScales.getMainXScale().domain(),a.x0((function(t,e){return l(t,e)})).x1((function(t,e){return h(t,e)})).y((function(t,e){return i.getDomainValue(t,e)})));var f=od.getProperty(this.getOptions(),"color","gradient","enabled"),p=s&&1===s.length&&f;s.length>1&&f&&console.error("Gradients can only be enabled when having 1 single dataset");var d=n.selectAll("path.area").data(s,(function(t){return t.name})),v=od.getProperty(this.getOptions(),"style","prefix"),g=VO.appendOrSelect(kO(this.services.domUtils.getHolder()),"svg."+RO.prefix+"--"+v+"--chart-svg");if(d.exit().attr("opacity",0).remove(),s.length){if(p){var m=g.select("path."+this.model.getColorClassName({classNameTypes:[k.STROKE],dataGroupName:s[0].name})).node(),y=void 0;if(m)y=getComputedStyle(m,null).getPropertyValue("stroke");else{var _=od.getProperty(this.model.getOptions(),"color","scale"),b=Object.keys(_);y=_[b[0]]}Ww.appendOrUpdateLinearGradient({svg:this.parent,id:s[0].name.replace(" ","")+"_"+this.gradient_id,x1:"0%",x2:"0%",y1:"0%",y2:"100%",stops:Ww.getStops(r,y)})}else this.parent.selectAll("defs linearGradient").empty()||this.parent.selectAll("defs linearGradient").each((function(){this.parentNode.remove()}));var O=this,x=d.enter().append("path");p?x.merge(d).style("fill",(function(t){return"url(#"+t.name.replace(" ","")+"_"+e.gradient_id+")"})).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t.name,originalClassName:"area"})})).attr("d",(function(t){var e=t.data;return a(e)})):(x.attr("opacity",0).merge(d).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL,k.STROKE],dataGroupName:t.name,originalClassName:"area"})})).style("fill",(function(t){return O.model.getFillColor(t.name)})).transition(this.services.transitions.getTransition("area-update-enter",t)).attr("opacity",c?1:rt.opacity.selected).attr("d",(function(t){var e=t.data;return a(e)})),c&&x.attr("fill-opacity",rt.opacity.selected).style("stroke",(function(t){return O.model.getStrokeColor(t.name)})).style("stroke-dasharray","2, 2").attr("stroke-width","0.7px"))}},e.prototype.destroy=function(){this.parent.selectAll("path.area").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(FS),sC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),uC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area-stacked",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions(),i=r.data.groupMapsTo;e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-hover-area")).attr("opacity",(function(t){return od.getProperty(t,0,i)!==n.datum().name?rt.opacity.unselected:rt.opacity.selected}))},e.handleLegendMouseOut=function(){e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-mouseout-area")).attr("opacity",rt.opacity.selected)},e}return sC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG({withinChartClip:!0}),r=this,i=this.getOptions(),o=i.data.groupMapsTo,s=Object.keys(i.axes).some((function(t){return i.axes[t].percentage})),u=this.model.getStackedData({percentage:s,groups:this.configs.groups}),c=od.getProperty(u,0,0),l=this.services.cartesianScales.getDomainAxisPosition({firstDatum:c}),h=this.services.cartesianScales.getRangeAxisPosition({firstDatum:c}),f=this.services.cartesianScales.getScaleByPosition(h),p=n.selectAll("path.area").data(u,(function(t){return od.getProperty(t,0,o)}));this.areaGenerator=iC().x((function(t,n){return e.services.cartesianScales.getValueThroughAxisPosition(l,t.data.sharedStackKey,n)})).y0((function(t){return f(t[0])})).y1((function(t){return f(t[1])})).curve(this.services.curves.getD3Curve()),p.exit().attr("opacity",0).remove();var d=p.enter().append("path").attr("opacity",0);d.merge(p).data(u,(function(t){return od.getProperty(t,0,o)})).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:od.getProperty(t,0,o),originalClassName:"area"})})).style("fill",(function(t){return r.model.getFillColor(od.getProperty(t,0,o))})).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","area").transition(this.services.transitions.getTransition("area-update-enter",t)).attr("opacity",rt.opacity.selected).attr("d",this.areaGenerator)},e.prototype.destroy=function(){this.parent.selectAll("path.area").on("mouseover",null).on("mousemove",null).on("mouseout",null)},e}(FS),cC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return cC(e,t),e.prototype.getBarWidth=function(t){var e=this.getOptions();if(e.bars.width)return e.bars.width;var n=this.model.getDisplayData().length,r=this.services.cartesianScales.getMainXScale(),i=VO.getSVGElementSize(this.parent,{useAttrs:!0}).width;return r.step?Math.min(e.bars.maxWidth,r.step()/2):Math.min(e.bars.maxWidth,.25*i/n)},e.prototype.isOutsideZoomedDomain=function(t,e){var n=this.model.getDisplayData().length;if(n<=1)return!1;var r=this.model.get("zoomDomain");if(void 0!==r){var i=this.services.cartesianScales.getDomainScale();return t<i(r[0])||e>i(r[1])}return!1},e}(FS),hC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="simple-bar",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-hover-simple-bar")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-mouseout-simple-bar")).attr("opacity",1)},e}return hC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getOptions(),r=n.data.groupMapsTo,i=this.getContainerSVG({withinChartClip:!0}),o=this.model.getDisplayData(this.configs.groups),s=this.services.cartesianScales.getOrientation(),u=i.selectAll("path.bar").data(o,(function(t){return t[r]}));u.exit().attr("opacity",0).remove();var c=u.enter().append("path").attr("opacity",0);c.merge(u).classed("bar",!0).attr("width",this.getBarWidth.bind(this)).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t[r],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[r])})).attr("d",(function(t,n){var r,i,o=e.services.cartesianScales.getRangeIdentifier(),a=e.getBarWidth(),u=t[o],c=e.services.cartesianScales.getDomainValue(t,n)-a/2,l=c+a;if(Array.isArray(u)&&2===u.length)r=e.services.cartesianScales.getRangeValue(u[0]),i=e.services.cartesianScales.getRangeValue(u[1],n);else{var h=e.services.cartesianScales.getRangeScale(),f=h.domain()[0];r=e.services.cartesianScales.getRangeValue(Math.max(0,f)),i=e.services.cartesianScales.getRangeValue(t,n)}var p=Math.abs(i-r);if(0!==p&&p<2&&(i=u>0&&s===I.VERTICAL||u<0&&s===I.HORIZONTAL?r-2:r+2),!e.isOutsideZoomedDomain(c,l))return od.generateSVGPathString({x0:c,x1:l,y0:r,y1:i},s)})).attr("opacity",1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("path.bar").on("mouseover",(function(e){var n=kO(this);n.classed("hovered",!0),n.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")),t.services.events.dispatchEvent(et.Bar.BAR_MOUSEOVER,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:n,data:[e]})})).on("mousemove",(function(e){kO(this);t.services.events.dispatchEvent(et.Bar.BAR_MOUSEMOVE,{element:kO(this),datum:e}),t.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(et.Bar.BAR_CLICK,{element:kO(this),datum:e})})).on("mouseout",(function(e){var n=kO(this);n.classed("hovered",!1),n.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")),t.services.events.dispatchEvent(et.Bar.BAR_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.destroy=function(){this.parent.selectAll("path.bar").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(lC),pC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grouped-bar",e.padding=5,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-mouseout-bar")).attr("opacity",1)},e}return pC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.model.getDisplayData(this.configs.groups),r=this.getOptions(),i=r.data.groupMapsTo;this.setGroupScale();var o=this.getContainerSVG({withinChartClip:!0}),s=Wd(n,(function(t){var n=e.services.cartesianScales.getDomainIdentifier(t);return t[n]})).keys(),u=o.selectAll("g.bars").data(s,(function(t){return t}));u.exit().attr("opacity",0).remove();var c=u.enter().append("g").classed("bars",!0).attr("role",a.GROUP).attr("data-name","bars"),l=c.merge(u);l.transition(this.services.transitions.getTransition("bar-group-update-enter",t)).attr("transform",(function(t,n){var r=e.services.cartesianScales.getDomainValue(t,n),i=r-e.getGroupWidth()/2;return e.services.cartesianScales.getOrientation()===I.VERTICAL?"translate("+i+", 0)":"translate(0, "+i+")"}));var h=l.selectAll("path.bar").data((function(t){return e.getDataCorrespondingToLabel(t)}),(function(t){return t[i]}));h.exit().attr("opacity",0).remove();var f=h.enter().append("path").attr("opacity",0);f.merge(h).classed("bar",!0).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t[i],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[i])})).attr("d",(function(t){var n=e.groupScale(t[i]),r=e.getBarWidth(),o=n,a=n+r,s=e.services.cartesianScales.getRangeAxisPosition({datum:t}),u=e.services.cartesianScales.getValueThroughAxisPosition(s,0),c=e.services.cartesianScales.getRangeValue(t);if(!e.isOutsideZoomedDomain(o,a))return od.generateSVGPathString({x0:o,x1:a,y0:u,y1:c},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("path.bar").on("mouseover",(function(e){var n=kO(this);n.classed("hovered",!0),n.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")),t.services.events.dispatchEvent(et.Bar.BAR_MOUSEOVER,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:n,data:[e]})})).on("mousemove",(function(e){var n=kO(this);t.services.events.dispatchEvent(et.Bar.BAR_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(et.Bar.BAR_CLICK,{element:kO(this),datum:e})})).on("mouseout",(function(e){var n=kO(this);n.classed("hovered",!1),n.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")),t.services.events.dispatchEvent(et.Bar.BAR_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.destroy=function(){this.parent.selectAll("path.bar").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.getDataCorrespondingToLabel=function(t){var e=this,n=this.model.getDisplayData(this.configs.groups);return n.filter((function(n){var r=e.services.cartesianScales.getDomainIdentifier(n);return n[r]===t}))},e.prototype.getGroupWidth=function(){var t=this.model.getGroupedData(this.configs.groups),e=this.getTotalGroupPadding();return this.getBarWidth()*t.length+e},e.prototype.getTotalGroupPadding=function(){var t=this.model.getGroupedData(this.configs.groups);if(1===t.length)return 0;var e=this.services.cartesianScales.getDomainScale(),n=Math.min(5,e.step()/70*5);return n*(t.length-1)},e.prototype.getBarWidth=function(){var t=this.getOptions(),e=od.getProperty(t,"bars","width"),n=od.getProperty(t,"bars","maxWidth");if(null!==e&&(null===n||e<=n))return e;var r=this.model.getGroupedData(this.configs.groups),i=r.length,o=this.getTotalGroupPadding(),a=this.services.cartesianScales.getDomainScale();return Math.min(n,(a.step()-o)/i)},e.prototype.setGroupScale=function(){var t=this.model.getActiveDataGroupNames(this.configs.groups);this.groupScale=xv().domain(t).rangeRound([0,this.getGroupWidth()])},e}(lC),vC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stacked-bar",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.model.getOptions().data.groupMapsTo;e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-mouseout-bar")).attr("opacity",1)},e}return vC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getContainerSVG({withinChartClip:!0}),r=this.getOptions(),i=r.data.groupMapsTo,o=this.model.getStackedData({groups:this.configs.groups}),s=n.selectAll("g.bars").data(o,(function(t){return od.getProperty(t,0,i)}));s.exit().attr("opacity",0).remove(),s.enter().append("g").classed("bars",!0).attr("role",a.GROUP).attr("data-name","bars");var u=n.selectAll("g.bars").selectAll("path.bar").data((function(t){return t}),(function(t){return t.data.sharedStackKey}));u.exit().remove(),u.enter().append("path").merge(u).classed("bar",!0).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t[i],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[i])})).attr("d",(function(t,n){var i=t.data.sharedStackKey,o=e.getBarWidth(),a=e.services.cartesianScales.getDomainValue(i,n)-o/2,s=a+o,u=e.services.cartesianScales.getRangeValue(t[0],n),c=e.services.cartesianScales.getRangeValue(t[1],n);if(!e.isOutsideZoomedDomain(a,s))return Math.abs(c-u)>0&&Math.abs(c-u)>r.bars.dividerSize&&(e.services.cartesianScales.getOrientation()===I.VERTICAL?c+=1:c-=1),od.generateSVGPathString({x0:a,x1:s,y0:u,y1:c},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t[1]-t[0]})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=this;this.parent.selectAll("path.bar").on("mouseover",(function(t){var r,i=kO(this);i.classed("hovered",!0),i.transition(n.services.transitions.getTransition("graph_element_mouseover_fill_update")),n.services.events.dispatchEvent(et.Bar.BAR_MOUSEOVER,{element:i,datum:t});var o=n.model.getDisplayData(n.configs.groups),a=o.find((function(r){var i=n.services.cartesianScales.getDomainIdentifier(r),o=n.services.cartesianScales.getRangeIdentifier(r);return r[o]===t.data[t.group]&&r[i].toString()===t.data.sharedStackKey&&r[e]===t.group}));if(void 0===a){var s=n.services.cartesianScales.getDomainIdentifier(),u=n.services.cartesianScales.getRangeIdentifier();r={},r[s]=t.data.sharedStackKey,r[u]=t.data[t.group],r[e]=t.group,a=r}n.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:i,data:[a]})})).on("mousemove",(function(t){var e=kO(this);n.services.events.dispatchEvent(et.Bar.BAR_MOUSEMOVE,{element:e,datum:t}),n.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("click",(function(t){n.services.events.dispatchEvent(et.Bar.BAR_CLICK,{element:kO(this),datum:t})})).on("mouseout",(function(t){var e=kO(this);e.classed("hovered",!1),n.services.events.dispatchEvent(et.Bar.BAR_MOUSEOUT,{element:e,datum:t}),n.services.events.dispatchEvent(et.Tooltip.HIDE,{hoveredElement:e})}))},e.prototype.destroy=function(){this.parent.selectAll("path.bar").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(lC),mC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="boxplot",e}return mC(e,t),e.prototype.render=function(t){var e=this,n=this.getContainerSVG({withinChartClip:!0}),r=this.getOptions(),i=r.data.groupMapsTo,o=this.model.getDataGroupNames(),s=this.services.cartesianScales.getMainXScale(),u=this.services.cartesianScales.getMainYScale(),c=s.range(),l=c[0],h=c[1],f=u.range(),p=f[0],d=f[1],v=h-l,g=p-d;if(0!==v){var m=this.services.cartesianScales,y=m.getOrientation(),_=y===I.VERTICAL,b=od.flipDomainAndRangeBasedOnOrientation((function(t,n){return e.services.cartesianScales.getDomainValue(t,n)}),(function(t,n){return e.services.cartesianScales.getRangeValue(t,n)}),y),O=b[0],x=b[1],w=Math.floor((_?v:g)/o.length),E=Math.min(w/2,16),S=this.model.getBoxplotData(),T=n.selectAll(".box-group").data(S);T.exit().remove();var M=T.enter().append("g").attr("class","box-group"),C=T.merge(M);M.append("path").merge(T.select("path.vertical-line.start")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.STROKE],originalClassName:"vertical-line start"})})).attr("stroke-width",ut.strokeWidth.default).attr("fill","none").transition(this.services.transitions.getTransition("boxplot-update-verticalstartline",t)).attr("d",(function(t){var e=m.getDomainValue(t[i]),n=e,r=m.getRangeValue(t.whiskers.min),o=m.getRangeValue(t.quartiles.q_25);return od.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(T.select("path.vertical-line.end")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.STROKE],originalClassName:"vertical-line end"})})).attr("stroke-width",ut.strokeWidth.default).attr("fill","none").transition(this.services.transitions.getTransition("boxplot-update-verticalendline",t)).attr("d",(function(t){var e=m.getDomainValue(t[i]),n=e,r=m.getRangeValue(t.whiskers.max),o=m.getRangeValue(t.quartiles.q_75);return od.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(T.select("path.box")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.FILL,k.STROKE],originalClassName:"box"})})).attr("fill-opacity",ut.box.opacity.default).attr("stroke-width",ut.strokeWidth.default).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","box").transition(this.services.transitions.getTransition("boxplot-update-quartiles",t)).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/2,n=e+E,r=m.getRangeValue(Math[_?"max":"min"](t.quartiles.q_75,t.quartiles.q_25)),o=r+Math.abs(m.getRangeValue(t.quartiles.q_75)-m.getRangeValue(t.quartiles.q_25));return od.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(T.select("path.highlight-area")).attr("class","highlight-area").attr("opacity",0).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/2,n=e+E,r=m.getRangeValue(t.whiskers.min),o=m.getRangeValue(t.whiskers.max);return od.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(T.select("path.whisker.start")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.STROKE],originalClassName:"whisker start"})})).attr("stroke-width",ut.strokeWidth.thicker).attr("fill","none").transition(this.services.transitions.getTransition("boxplot-update-startingwhisker",t)).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/4,n=e+E/2,r=m.getRangeValue(t.whiskers.min),o=m.getRangeValue(t.whiskers.min);return od.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(T.select("path.median")).attr("fill","none").attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.STROKE],originalClassName:"median"})})).attr("stroke-width",2).transition(this.services.transitions.getTransition("boxplot-update-median",t)).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/2,n=e+E,r=m.getRangeValue(t.quartiles.q_50),o=r;return od.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(T.select("path.whisker.end")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.STROKE],originalClassName:"whisker end"})})).attr("stroke-width",ut.strokeWidth.thicker).attr("fill","none").transition(this.services.transitions.getTransition("boxplot-update-endingwhisker",t)).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/4,n=e+E/2,r=m.getRangeValue(t.whiskers.max),o=m.getRangeValue(t.whiskers.max);return od.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)}));var A=C.selectAll("circle.outlier").data((function(t){return t.outliers.map((function(e){var n;return n={min:t.whiskers.min,max:t.whiskers.max},n[i]=t[i],n.value=e,n}))}));A.exit().remove();var P=A.enter().append("circle");A.merge(P).attr("r",ut.circle.radius).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[k.FILL,k.STROKE],originalClassName:"outlier"})})).attr("fill-opacity",ut.circle.opacity.default).attr("cx",O).transition(this.services.transitions.getTransition("boxplot-update-circles",t)).attr("cy",x),this.addBoxEventListeners(),this.addCircleEventListeners()}},e.prototype.addBoxEventListeners=function(){var t=this,e=this.getOptions(),n=e.data.groupMapsTo;this.parent.selectAll("path.highlight-area").on("mouseover",(function(r){var i=kO(this),o=kO(this.parentNode);o.select("path.box").classed("hovered",!0).attr("fill-opacity",ut.box.opacity.hovered),t.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:i,items:[{label:e.tooltip.groupLabel,value:r[n],class:t.model.getColorClassName({classNameTypes:[k.TOOLTIP]})},{label:"Minimum",value:r.whiskers.min},{label:"Q1",value:r.quartiles.q_25},{label:"Median",value:r.quartiles.q_50},{label:"Q3",value:r.quartiles.q_75},{label:"Maximum",value:r.whiskers.max},{label:"IQR",value:r.quartiles.q_75-r.quartiles.q_25}]}),t.services.events.dispatchEvent(et.Boxplot.BOX_MOUSEOVER,{element:i,datum:r})})).on("mousemove",(function(e){var n=kO(this);t.services.events.dispatchEvent(et.Boxplot.BOX_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(et.Boxplot.BOX_CLICK,{element:kO(this),datum:e})})).on("mouseout",(function(e){var n=kO(this),r=kO(this.parentNode);r.select("path.box").classed("hovered",!1).attr("fill-opacity",ut.box.opacity.default),t.services.events.dispatchEvent(et.Boxplot.BOX_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.addCircleEventListeners=function(){var t=this,e=this.getOptions(),n=e.data.groupMapsTo,r=this.services.cartesianScales.getRangeIdentifier();this.parent.selectAll("circle").on("mouseover",(function(i){var o=kO(this);o.classed("hovered",!0).attr("fill-opacity",ut.circle.opacity.hovered).classed("unfilled",!1),t.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:o,items:[{label:e.tooltip.groupLabel,value:i[n],class:t.model.getColorClassName({classNameTypes:[k.TOOLTIP]})},{label:"Outlier",value:i[r]}]}),t.services.events.dispatchEvent(et.Boxplot.OUTLIER_MOUSEOVER,{element:o,datum:i})})).on("mousemove",(function(e){var n=kO(this);t.services.events.dispatchEvent(et.Boxplot.OUTLIER_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(et.Boxplot.OUTLIER_CLICK,{element:kO(this),datum:e})})).on("mouseout",(function(e){var n=kO(this);n.classed("hovered",!1).attr("fill-opacity",ut.circle.opacity.default),t.services.events.dispatchEvent(et.Boxplot.OUTLIER_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.HIDE,{hoveredElement:n})}))},e}(FS),_C=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="scatter",e.handleChartHolderOnHover=function(t){e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("chart-holder-hover-scatter")).attr("opacity",1)},e.handleChartHolderOnMouseOut=function(t){e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("chart-holder-mouseout-scatter")).attr("opacity",0)},e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("legend-hover-scatter")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("legend-mouseout-scatter")).attr("opacity",1)},e}return _C(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut);var e=this.configs.fadeInOnChartHolderMouseover;e&&(t.addEventListener(et.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.addEventListener(et.Chart.MOUSEOUT,this.handleChartHolderOnMouseOut))},e.prototype.filterBasedOnZoomDomain=function(t){var e=this.services.cartesianScales.getDomainIdentifier(t),n=this.model.get("zoomDomain");return void 0!==n?t.filter((function(t){return t[e].getTime()>n[0].getTime()&&t[e].getTime()<n[1].getTime()})):t},e.prototype.getScatterData=function(){var t,e=this,n=this.getOptions(),r=this.configs.stacked;if(r){var i=Object.keys(n.axes).some((function(t){return n.axes[t].percentage}));t=this.model.getStackedData({groups:this.configs.groups,percentage:i})}else t=this.model.getDisplayData(this.configs.groups).filter((function(t){var n=e.services.cartesianScales.getRangeIdentifier(t);return void 0!==t[n]&&null!==t[n]}));return this.filterBasedOnZoomDomain(t)},e.prototype.render=function(t){var e=od.getProperty(this.getOptions(),"points","enabled")||od.getProperty(this.getOptions(),"bubble","enabled");if(e){var n=this.getContainerSVG({withinChartClip:!0}),r=this.getOptions(),i=r.data.groupMapsTo,o=this.services.cartesianScales.getDomainIdentifier(),a=n.selectAll("circle.dot").data(this.getScatterData(),(function(t){return t[i]+"-"+t[o]}));a.exit().attr("opacity",0).remove();var s=a.enter().append("circle").classed("dot",!0).attr("opacity",0),u=s.merge(a);this.styleCircles(u,t),this.addEventListeners()}},e.prototype.isDatapointThresholdAnomaly=function(t,e){var n=this,r=this.configs.handleThresholds;if(!r)return!1;var i=this.services.cartesianScales,o=i.getOrientation(),a=od.flipDomainAndRangeBasedOnOrientation(this.services.cartesianScales.getHighestDomainThreshold(),this.services.cartesianScales.getHighestRangeThreshold(),o),s=a[0],u=a[1],c=od.flipDomainAndRangeBasedOnOrientation((function(t,e){return n.services.cartesianScales.getDomainValue(t,e)}),(function(t,e){return n.services.cartesianScales.getRangeValue(t,e)}),o),l=c[0],h=c[1],f=l(t,e),p=h(t,e);return u&&s?p<=u.scaleValue&&f>=s.scaleValue:u?p<=u.scaleValue:s?f>=s.scaleValue:void 0},e.prototype.styleCircles=function(t,e){var n=this,r=this.getOptions(),i=r.points,o=i.filled,s=i.fillOpacity,u=this.services,c=u.cartesianScales,l=u.transitions,h=r.data.groupMapsTo,f=function(t,e){return c.getDomainValue(t,e)},p=function(t,e){return c.getRangeValue(t,e)},d=od.flipDomainAndRangeBasedOnOrientation(f,p,c.getOrientation()),v=d[0],g=d[1],m=this.configs.fadeInOnChartHolderMouseover;t.raise().classed("dot",!0).attr("class",(function(t){var e=c.getDomainIdentifier(t),r=n.model.getIsFilled(t[h],t[e],t,o),i=r?[k.FILL,k.STROKE]:[k.STROKE];return n.model.getColorClassName({classNameTypes:i,dataGroupName:t[h],originalClassName:"dot"})})).classed("threshold-anomaly",(function(t,e){return n.isDatapointThresholdAnomaly(t,e)})).classed("filled",(function(t){var e=c.getDomainIdentifier(t);return n.model.getIsFilled(t[h],t[e],t,o)})).classed("unfilled",(function(t){var e=c.getDomainIdentifier(t);return!n.model.getIsFilled(t[h],t[e],t,o)})).transition(l.getTransition("scatter-update-enter",e)).attr("cx",v).attr("cy",g).attr("r",r.points.radius).style("fill",(function(t){var e=c.getDomainIdentifier(t);if(n.model.getIsFilled(t[h],t[e],t,o))return n.model.getFillColor(t[h],t[e],t)})).style("stroke",(function(t){var e=c.getDomainIdentifier(t);return n.model.getStrokeColor(t[h],t[e],t)})).attr("fill-opacity",o?s:1).attr("opacity",m?0:1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","point").attr("aria-label",(function(t){var e=c.getRangeIdentifier(t);return t[e]})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this,e=t.getOptions().data.groupMapsTo;this.parent.selectAll("circle").on("mouseover",(function(n){var r=kO(this);r.classed("hovered",!0).attr("class",(function(n){return t.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:n[e],originalClassName:r.attr("class")})})).style("fill",(function(n){var r=t.services.cartesianScales.getDomainIdentifier(n);return t.model.getFillColor(n[e],n[r],n)})).classed("unfilled",!1);var i=od.getProperty(t.getOptions(),"bubble");t.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:r,data:[n],additionalItems:[{label:od.getProperty(i,"radiusLabel"),value:n[od.getProperty(i,"radiusMapsTo")]}]}),t.services.events.dispatchEvent(et.Scatter.SCATTER_MOUSEOVER,{element:r,datum:n})})).on("mousemove",(function(e){var n=kO(this);t.services.events.dispatchEvent(et.Scatter.SCATTER_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(et.Scatter.SCATTER_CLICK,{element:kO(this),datum:e})})).on("mouseout",(function(n){var r=kO(this);if(r.classed("hovered",!1),!t.configs.filled){var i=t.getOptions().points.filled,o=t.services.cartesianScales.getDomainIdentifier(n),a=t.model.getIsFilled(n[e],n[o],n,i);r.classed("unfilled",!a).style("fill",(function(n){return a||i?t.model.getFillColor(n[e],n[o],n):null}))}t.services.events.dispatchEvent(et.Scatter.SCATTER_MOUSEOUT,{element:r,datum:n}),t.services.events.dispatchEvent(et.Tooltip.HIDE,{hoveredElement:r})}))},e.prototype.destroy=function(){this.parent.selectAll("circle").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),t.removeEventListener(et.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.removeEventListener(et.Chart.MOUSEOUT,this.handleChartHolderOnMouseOut)},e}(FS),OC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bubble",e}return OC(e,t),e.prototype.getRadiusScale=function(t){var e=this.getOptions(),n=e.bubble.radiusMapsTo,r=t.data(),i=r.map((function(t){return t[n]})).filter((function(t){return t})),o=VO.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttr:!0}),a=i.length>0,s=a?rv(i):[1,1];return sm().domain(s).range(a?e.bubble.radiusRange(o,r):[4,4])},e.prototype.styleCircles=function(t,e){var n=this,r=this.getOptions(),i=r.bubble.radiusMapsTo,o=this.getRadiusScale(t),s=r.data.groupMapsTo,u=this.services.cartesianScales,c=function(t,e){return u.getDomainValue(t,e)},l=function(t,e){return u.getRangeValue(t,e)},h=od.flipDomainAndRangeBasedOnOrientation(c,l,u.getOrientation()),f=h[0],p=h[1];t.raise().classed("dot",!0).attr("role",a.GRAPHICS_SYMBOL).transition(this.services.transitions.getTransition("bubble-update-enter",e)).attr("cx",f).attr("cy",p).attr("r",(function(t){return o(t[i]||1)})).attr("class",(function(t){return n.model.getColorClassName({classNameTypes:[k.FILL,k.STROKE],dataGroupName:t[s],originalClassName:"dot"})})).style("fill",(function(t){var e=n.services.cartesianScales.getDomainIdentifier(t);return n.model.getFillColor(t[s],t[e],t)})).style("stroke",(function(t){var e=n.services.cartesianScales.getDomainIdentifier(t);return n.model.getStrokeColor(t[s],t[e],t)})).attr("fill-opacity",r.bubble.fillOpacity).attr("opacity",1)},e}(bC),wC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),EC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bullet",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-hover-simple-bar")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-mouseout-simple-bar")).attr("opacity",1)},e}return wC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getOptions(),r=n.data.groupMapsTo,i=this.getContainerSVG({withinChartClip:!0}),o=this.model.getDisplayData(this.configs.groups),s=this.services.cartesianScales.getRangeScale(),u=this.services.cartesianScales.getRangeIdentifier(),c=s.range(),l=c[0],h=c[1],f=s.domain(),p=(f[0],f[1]),d=function(){var n=[];o.forEach((function(t){t.ranges?t.ranges.forEach((function(e,r){null!==e&&void 0!==e&&e<p&&n.push({datum:t,value:e,order:r+1})})):n.push({datum:t,order:1})}));var a=VO.appendOrSelect(i,"g.range-boxes").selectAll("path.range-box").data(n,(function(t){return t[r]+"-"+t.order}));a.exit().attr("opacity",0).remove();var s=a.enter().append("path").attr("opacity",0);s.merge(a).attr("class",(function(t){return"range-box order-"+t.order})).transition(e.services.transitions.getTransition("bullet-range-box-update-enter",t)).attr("d",(function(t,n){var r,i,o,a,s=16;return 1===t.order?(r=e.services.cartesianScales.getDomainValue(t.datum,n)-s/2,i=r+s,o=h-2,a=l+1):(r=e.services.cartesianScales.getDomainValue(t.datum,n)-s/2,i=r+s,o=e.services.cartesianScales.getRangeValue(t.value,n),a=h),od.generateSVGPathString({x0:r,x1:i,y0:o,y1:a},e.services.cartesianScales.getOrientation())})).attr("opacity",1)},v=function(){var n=VO.appendOrSelect(i,"g.bars").selectAll("path.bar").data(o,(function(t){return t[r]}));n.exit().attr("opacity",0).remove();var s=n.enter().append("path").attr("opacity",0);s.merge(n).classed("bar",!0).transition(e.services.transitions.getTransition("bullet-bar-update-enter",t)).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t[r],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[r])})).attr("d",(function(t,n){var r=8,i=e.services.cartesianScales.getDomainValue(t,n)-r/2,o=i+r,a=e.services.cartesianScales.getRangeValue(0)+1,s=e.services.cartesianScales.getRangeValue(t,n);return od.generateSVGPathString({x0:i,x1:o,y0:a,y1:s},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value}))},g=function(){var n=VO.appendOrSelect(i,"g.markers").selectAll("path.marker").data(o.filter((function(t){return null!==od.getProperty(t,"marker")})),(function(t){return t[r]}));n.exit().attr("opacity",0).remove();var a=n.enter().append("path").attr("opacity",0);a.merge(n).classed("marker",!0).transition(e.services.transitions.getTransition("bullet-marker-update-enter",t)).attr("d",(function(t,n){var r=24,i=e.services.cartesianScales.getDomainValue(t,n)-r/2,o=i+r,a=e.services.cartesianScales.getRangeValue(t.marker,n),s=a;return od.generateSVGPathString({x0:i,x1:o,y0:a,y1:s},e.services.cartesianScales.getOrientation())})).attr("opacity",1)},m=function(){var n=[];o.filter((function(t){return null!==od.getProperty(t,"marker")})).forEach((function(t){var e=t.marker,r=t[u];n=n.concat([{datum:t,value:.25*e,barValue:r},{datum:t,value:.5*e,barValue:r},{datum:t,value:.75*e,barValue:r}])}));var a=VO.appendOrSelect(i,"g.quartiles").selectAll("path.quartile").data(n,(function(t){return t[r]}));a.exit().attr("opacity",0).remove();var s=a.enter().append("path").attr("opacity",0);s.merge(a).attr("class",(function(t){return"quartile "+(t.value<=t.barValue?"over-bar":"")})).transition(e.services.transitions.getTransition("bullet-quartile-update-enter",t)).attr("d",(function(t,n){var r=t.datum,i=t.value,o=4;r.ranges&&-1!==r.ranges.indexOf(i)&&(o=8);var a=e.services.cartesianScales.getDomainValue(r,n)-o/2,s=a+o,u=e.services.cartesianScales.getRangeValue(i,n),c=u;return od.generateSVGPathString({x0:a,x1:s,y0:u,y1:c},e.services.cartesianScales.getOrientation())})).attr("opacity",1)};d(),v(),g(),m(),this.addEventListeners()},e.prototype.getMatchingRangeIndexForDatapoint=function(t){for(var e,n=t.ranges.length-1;n>0;n--){var r=t.ranges[n];if(t.value>=r)return e=n,e}return 0},e.prototype.addEventListeners=function(){var t=this,e=this.getOptions(),n=e.data.groupMapsTo,r=this.services.cartesianScales.getRangeIdentifier();this.parent.selectAll("path.bar").on("mouseover",(function(i){var o=kO(this);o.classed("hovered",!0),o.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")),t.services.events.dispatchEvent(et.Bar.BAR_MOUSEOVER,{element:o,datum:i});var a=od.getProperty(e,"bullet","performanceAreaTitles"),s=t.getMatchingRangeIndexForDatapoint(i);t.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:o,items:[{label:e.tooltip.groupLabel||"Group",value:i[n],class:t.model.getColorClassName({classNameTypes:[k.TOOLTIP],dataGroupName:i[n]})},{label:"Value",value:i[r]},{label:"Target",value:i.marker},{label:"Percentage",value:Math.floor(i[r]/i.marker*100)+"%"},{label:"Performance",value:a[s]}]})})).on("mousemove",(function(e){t.services.events.dispatchEvent(et.Bar.BAR_MOUSEMOVE,{element:kO(this),datum:e}),t.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(et.Bar.BAR_CLICK,{element:kO(this),datum:e})})).on("mouseout",(function(e){var n=kO(this);n.classed("hovered",!1),n.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")),t.services.events.dispatchEvent(et.Bar.BAR_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.destroy=function(){this.parent.selectAll("path.bar").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(FS),SC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),TC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("path.line").transition(e.services.transitions.getTransition("legend-hover-line")).attr("opacity",(function(t){return t.name!==n.datum()["name"]?lt.opacity.unselected:lt.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.line").transition(e.services.transitions.getTransition("legend-mouseout-line")).attr("opacity",lt.opacity.selected)},e}return SC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG({withinChartClip:!0}),r=this.services,i=r.cartesianScales,o=r.curves,s=function(t,e){return i.getDomainValue(t,e)},u=function(t,e){return i.getRangeValue(t,e)},c=od.flipDomainAndRangeBasedOnOrientation(s,u,i.getOrientation()),l=c[0],h=c[1],f=this.getOptions(),p=rC().x(l).y(h).curve(o.getD3Curve()).defined((function(t,e){var n=i.getRangeIdentifier(t),r=t[n];return null!==r&&void 0!==r})),d=[];if(this.configs.stacked){var v=Object.keys(f.axes).some((function(t){return f.axes[t].percentage})),g=f.data.groupMapsTo,m=this.model.getStackedData({groups:this.configs.groups,percentage:v});d=m.map((function(t){var n=e.services.cartesianScales.getDomainIdentifier(t),r=e.services.cartesianScales.getRangeIdentifier(t);return{name:od.getProperty(t,0,g),data:t.map((function(t){var e;return e={},e[n]=t.data.sharedStackKey,e[g]=t[g],e[r]=t[1],e})),hidden:!od.some(t,(function(t){return t[0]!==t[1]}))}}))}else d=this.model.getGroupedData(this.configs.groups);var y=n.selectAll("path.line").data(d,(function(t){return t.name}));y.exit().attr("opacity",0).remove();var _=y.enter().append("path").classed("line",!0).attr("opacity",0);_.merge(y).data(d,(function(t){return t.name})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.STROKE],dataGroupName:t.name,originalClassName:"line"})})).style("stroke",(function(t){return e.model.getStrokeColor(t.name)})).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","line").attr("aria-label",(function(t){var n=t.data;return n.map((function(t){var n=e.services.cartesianScales.getRangeIdentifier(t);return t[n]})).join(",")})).transition(this.services.transitions.getTransition("line-update-enter",t)).attr("opacity",(function(t){return t.hidden?0:1})).attr("d",(function(t){var e=t.data;return p(e)}))},e.prototype.destroy=function(){this.parent.selectAll("path.line").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(FS),MC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),CC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="lollipop",e.handleScatterOnHover=function(t){var n=t.detail,r=e.getOptions(),i=r.data.groupMapsTo;e.parent.selectAll("line.line").attr("stroke-width",(function(t){return t[i]!==n.datum[i]?lt.weight.unselected:lt.weight.selected}))},e.handleScatterOnMouseOut=function(t){e.parent.selectAll("line.line").attr("stroke-width",lt.weight.unselected)},e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions(),i=r.data.groupMapsTo;e.parent.selectAll("line.line").transition(e.services.transitions.getTransition("legend-hover-line")).attr("opacity",(function(t){return t[i]!==n.datum()["name"]?lt.opacity.unselected:lt.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("line.line").transition(e.services.transitions.getTransition("legend-mouseout-line")).attr("opacity",lt.opacity.selected)},e}return MC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getContainerSVG({withinChartClip:!0}),r=this.model.getOptions(),i=r.data.groupMapsTo,o=this.services.cartesianScales,a=o.getMainXScale(),s=o.getMainYScale(),u=o.getDomainIdentifier(),c=function(t,e){return o.getDomainValue(t,e)},l=function(t,e){return o.getRangeValue(t,e)},h=o.getOrientation(),f=od.flipDomainAndRangeBasedOnOrientation(c,l,h),p=f[0],d=f[1],v=n.selectAll("line.line").data(this.getScatterData(),(function(t){return t[i]+"-"+t[u]}));v.exit().attr("opacity",0).remove();var g=v.enter().append("line").attr("opacity",0),m=g.merge(v).classed("line",!0).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.STROKE],dataGroupName:t[i],originalClassName:"line"})})).transition(this.services.transitions.getTransition("lollipop-line-update-enter",t)).style("stroke",(function(t){return e.model.getFillColor(t[i],t[u],t)})).attr("opacity",1);h===I.HORIZONTAL?m.attr("y1",d).attr("y2",d).attr("x1",a.range()[0]).attr("x2",(function(t,e){return p(t,e)-r.points.radius})):m.attr("x1",p).attr("x2",p).attr("y1",s.range()[0]).attr("y2",(function(t,e){return d(t,e)+r.points.radius})),this.addScatterPointEventListeners()},e.prototype.addScatterPointEventListeners=function(){this.services.events.addEventListener(et.Scatter.SCATTER_MOUSEOVER,this.handleScatterOnHover),this.services.events.addEventListener(et.Scatter.SCATTER_MOUSEOUT,this.handleScatterOnMouseOut)},e.prototype.destroy=function(){this.parent.selectAll("line.line").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),t.removeEventListener(et.Scatter.SCATTER_MOUSEOVER,this.handleScatterOnHover),t.removeEventListener(et.Scatter.SCATTER_MOUSEOUT,this.handleScatterOnMouseOut)},e}(bC),AC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),PC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="scatter-stacked",e}return AC(e,t),e.prototype.render=function(t){var e=this,n=od.getProperty(this.getOptions(),"points","enabled");if(n){var r=this.getContainerSVG({withinChartClip:!0}),i=this.getOptions(),o=i.data.groupMapsTo,s=Object.keys(i.axes).some((function(t){return i.axes[t].percentage})),u=this.model.getStackedData({groups:this.configs.groups,percentage:s}),c=r.selectAll("g.dots").data(u,(function(t){return od.getProperty(t,0,o)}));c.exit().attr("opacity",0).remove();var l=c.enter().append("g").classed("dots",!0).attr("role",a.GROUP),h=l.merge(c).selectAll("circle.dot").data((function(t){return t}));h.exit().attr("opacity",0).remove();var f=h.enter().append("circle").classed("dot",!0).attr("opacity",0),p=f.merge(h).datum((function(t){var n,r=t[o],i=e.services.cartesianScales.getDomainIdentifier(t),a=e.services.cartesianScales.getRangeIdentifier(t);return n={},n[o]=r,n[i]=t["data"]["sharedStackKey"],n[a]=t[1],n}));this.styleCircles(p,t),this.addEventListeners()}},e.prototype.getTooltipData=function(t,e){var n=this,r=this.getOptions(),i=r.data.groupMapsTo,o=Object.keys(r.axes).some((function(t){return r.axes[t].percentage})),a=this.model.getStackedData({groups:this.configs.groups,percentage:o}),s=[];return a.forEach((function(r,a){r.forEach((function(r,u){var c,l=r[i],h=r["data"]["sharedStackKey"],f=r["data"][l],p=r[1],d=n.services.cartesianScales.getDomainIdentifier(r),v=n.services.cartesianScales.getRangeIdentifier(r);null!==f&&void 0!==f&&t===n.services.cartesianScales.getDomainValue(h)&&e===n.services.cartesianScales.getRangeValue(p)&&(o&&(f=n.model.getStackedData({groups:n.configs.groups})[a][u]["data"][l]),null!==f&&s.push((c={},c[i]=l,c[d]=h,c[v]=f,c)))}))})),this.model.getDisplayData(this.configs.groups).filter((function(t){var e=n.services.cartesianScales.getDomainIdentifier(t),r=n.services.cartesianScales.getRangeIdentifier(t);return void 0!==s.find((function(n){return n[i]==t[i]&&n[e]==t[e]&&n[r]==t[r]}))}))},e}(bC);function kC(t){return t.innerRadius}function LC(t){return t.outerRadius}function DC(t){return t.startAngle}function RC(t){return t.endAngle}function IC(t){return t&&t.padAngle}function NC(t,e,n,r,i,o,a,s){var u=n-t,c=r-e,l=a-i,h=s-o,f=h*u-l*c;if(!(f*f<sS))return f=(l*(e-o)-h*(t-i))/f,[t+f*u,e+f*c]}function jC(t,e,n,r,i,o,a){var s=t-n,u=e-r,c=(a?o:-o)/aS(s*s+u*u),l=c*u,h=-c*s,f=t+l,p=e+h,d=n+l,v=r+h,g=(f+d)/2,m=(p+v)/2,y=d-f,_=v-p,b=y*y+_*_,O=i-o,x=f*v-d*p,w=(_<0?-1:1)*aS(rS(0,O*O*b-x*x)),E=(x*_-y*w)/b,S=(-x*y-_*w)/b,T=(x*_+y*w)/b,M=(-x*y+_*w)/b,C=E-g,A=S-m,P=T-g,k=M-m;return C*C+A*A>P*P+k*k&&(E=T,S=M),{cx:E,cy:S,x01:-l,y01:-h,x11:E*(i/O-1),y11:S*(i/O-1)}}var VC=function(){var t=kC,e=LC,n=G_(0),r=null,i=DC,o=RC,a=IC,s=null;function u(){var u,c,l=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-cS,p=o.apply(this,arguments)-cS,d=tS(p-f),v=p>f;if(s||(s=u=tC()),h<l&&(c=h,h=l,l=c),h>sS)if(d>lS-sS)s.moveTo(h*nS(f),h*oS(f)),s.arc(0,0,h,f,p,!v),l>sS&&(s.moveTo(l*nS(p),l*oS(p)),s.arc(0,0,l,p,f,v));else{var g,m,y=f,_=p,b=f,O=p,x=d,w=d,E=a.apply(this,arguments)/2,S=E>sS&&(r?+r.apply(this,arguments):aS(l*l+h*h)),T=iS(tS(h-l)/2,+n.apply(this,arguments)),M=T,C=T;if(S>sS){var A=fS(S/l*oS(E)),P=fS(S/h*oS(E));(x-=2*A)>sS?(A*=v?1:-1,b+=A,O-=A):(x=0,b=O=(f+p)/2),(w-=2*P)>sS?(P*=v?1:-1,y+=P,_-=P):(w=0,y=_=(f+p)/2)}var k=h*nS(y),L=h*oS(y),D=l*nS(O),R=l*oS(O);if(T>sS){var I,N=h*nS(_),j=h*oS(_),V=l*nS(b),B=l*oS(b);if(d<uS&&(I=NC(k,L,V,B,N,j,D,R))){var G=k-I[0],U=L-I[1],H=N-I[0],z=j-I[1],F=1/oS(hS((G*H+U*z)/(aS(G*G+U*U)*aS(H*H+z*z)))/2),W=aS(I[0]*I[0]+I[1]*I[1]);M=iS(T,(l-W)/(F-1)),C=iS(T,(h-W)/(F+1))}}w>sS?C>sS?(g=jC(V,B,k,L,h,C,v),m=jC(N,j,D,R,h,C,v),s.moveTo(g.cx+g.x01,g.cy+g.y01),C<T?s.arc(g.cx,g.cy,C,eS(g.y01,g.x01),eS(m.y01,m.x01),!v):(s.arc(g.cx,g.cy,C,eS(g.y01,g.x01),eS(g.y11,g.x11),!v),s.arc(0,0,h,eS(g.cy+g.y11,g.cx+g.x11),eS(m.cy+m.y11,m.cx+m.x11),!v),s.arc(m.cx,m.cy,C,eS(m.y11,m.x11),eS(m.y01,m.x01),!v))):(s.moveTo(k,L),s.arc(0,0,h,y,_,!v)):s.moveTo(k,L),l>sS&&x>sS?M>sS?(g=jC(D,R,N,j,l,-M,v),m=jC(k,L,V,B,l,-M,v),s.lineTo(g.cx+g.x01,g.cy+g.y01),M<T?s.arc(g.cx,g.cy,M,eS(g.y01,g.x01),eS(m.y01,m.x01),!v):(s.arc(g.cx,g.cy,M,eS(g.y01,g.x01),eS(g.y11,g.x11),!v),s.arc(0,0,l,eS(g.cy+g.y11,g.cx+g.x11),eS(m.cy+m.y11,m.cx+m.x11),v),s.arc(m.cx,m.cy,M,eS(m.y11,m.x11),eS(m.y01,m.x01),!v))):s.arc(0,0,l,O,b,v):s.lineTo(D,R)}else s.moveTo(0,0);if(s.closePath(),u)return s=null,u+""||null}return u.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-uS/2;return[nS(r)*n,oS(r)*n]},u.innerRadius=function(e){return arguments.length?(t="function"===typeof e?e:G_(+e),u):t},u.outerRadius=function(t){return arguments.length?(e="function"===typeof t?t:G_(+t),u):e},u.cornerRadius=function(t){return arguments.length?(n="function"===typeof t?t:G_(+t),u):n},u.padRadius=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:G_(+t),u):r},u.startAngle=function(t){return arguments.length?(i="function"===typeof t?t:G_(+t),u):i},u.endAngle=function(t){return arguments.length?(o="function"===typeof t?t:G_(+t),u):o},u.padAngle=function(t){return arguments.length?(a="function"===typeof t?t:G_(+t),u):a},u.context=function(t){return arguments.length?(s=null==t?null:t,u):s},u},BC=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},GC=function(t){return t},UC=function(){var t=GC,e=BC,n=null,r=G_(0),i=G_(lS),o=G_(0);function a(a){var s,u,c,l,h,f=a.length,p=0,d=new Array(f),v=new Array(f),g=+r.apply(this,arguments),m=Math.min(lS,Math.max(-lS,i.apply(this,arguments)-g)),y=Math.min(Math.abs(m)/f,o.apply(this,arguments)),_=y*(m<0?-1:1);for(s=0;s<f;++s)(h=v[d[s]=s]=+t(a[s],s,a))>0&&(p+=h);for(null!=e?d.sort((function(t,n){return e(v[t],v[n])})):null!=n&&d.sort((function(t,e){return n(a[t],a[e])})),s=0,c=p?(m-f*_)/p:0;s<f;++s,g=l)u=d[s],h=v[u],l=g+(h>0?h*c:0)+_,v[u]={data:a[u],index:s,value:h,startAngle:g,endAngle:l,padAngle:y};return v}return a.value=function(e){return arguments.length?(t="function"===typeof e?e:G_(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"===typeof t?t:G_(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"===typeof t?t:G_(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:G_(+t),a):o},a},HC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function zC(t,e){var n=this,r=wg(this._current,t);return function(t){return n._current=r(t),e(n._current)}}var FC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("path.slice").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t.data[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.slice").transition(e.services.transitions.getTransition("legend-mouseout-bar")).attr("opacity",1)},e}return HC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.getInnerRadius=function(){return ft.innerRadius},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this,r=this.getContainerSVG(),i=this.model.getDisplayData().filter((function(t){return t.value>0})),o=this.getOptions(),s=o.data.groupMapsTo,u=this.computeRadius();this.arc=VC().innerRadius(this.getInnerRadius()).outerRadius(u),this.hoverArc=VC().innerRadius(this.getInnerRadius()).outerRadius(u+ft.hoverArc.outerRadiusOffset);var c=UC().value((function(t){return t.value})).sort(od.getProperty(o,"pie","sortFunction")).padAngle(ft.padAngle),l=c(i),h=VO.appendOrSelect(r,"g.slices").attr("role",a.GROUP).attr("data-name","slices"),f=h.selectAll("path.slice").data(l,(function(t){return t.data[s]}));f.exit().attr("opacity",0).remove();var p=f.enter().append("path").classed("slice",!0).attr("opacity",0);p.merge(f).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t.data[s],originalClassName:"slice"})})).style("fill",(function(t){return n.model.getFillColor(t.data[s])})).attr("d",this.arc).transition(this.services.transitions.getTransition("pie-slice-enter-update",t)).attr("opacity",1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","slice").attr("aria-label",(function(t){return t.value+", "+od.convertValueToPercentage(t.data.value,i)+"%"})).attrTween("d",(function(t){return zC.bind(this)(t,n.arc)}));var d=o.pie.labels.enabled,v=d?l.filter((function(t){return t.value>0})):[],g=VO.appendOrSelect(r,"g.labels").attr("role",a.GROUP).attr("data-name","labels"),m=g.selectAll("text.pie-label").data(v,(function(t){return t.data[s]}));m.exit().attr("opacity",0).remove();var y=m.enter().append("text").classed("pie-label",!0),_=[];y.merge(m).style("text-anchor","middle").text((function(t){return o.pie.labels.formatter?o.pie.labels.formatter(t):od.convertValueToPercentage(t.data.value,i)+"%"})).datum((function(t){var e=u+7,n=(t.endAngle-t.startAngle)/2+t.startAngle,r=n/Math.PI*180,i=this.getComputedTextLength();return t.textOffsetX=i/2,t.textOffsetY=r>90&&r<270?10:0,t.xPosition=(t.textOffsetX+e)*Math.sin(n),t.yPosition=(t.textOffsetY+e)*-Math.cos(n),t})).attr("transform",(function(t,e){var n=v.length,r=(t.endAngle-t.startAngle)*(180/Math.PI);if(e>=n-2&&r<ft.callout.minSliceDegree){var i=void 0,o=void 0;return t.index===n-1?(i=t.xPosition+ft.callout.offsetX+ft.callout.textMargin+t.textOffsetX,o=t.yPosition-ft.callout.offsetY,t.direction=H.RIGHT,_.push(t)):(i=t.xPosition-ft.callout.offsetX-t.textOffsetX-ft.callout.textMargin,o=t.yPosition-ft.callout.offsetY,t.direction=H.LEFT,_.push(t)),"translate("+i+", "+o+")"}return"translate("+t.xPosition+", "+t.yPosition+")"})),this.renderCallouts(_);var b=od.getProperty(o,"donut")?"donut":"pie",O=od.getProperty(o,b,"alignment"),x=VO.getSVGElementSize(this.getParent(),{useAttr:!0}).width,w=d?ft.xOffset:0,E=d?ft.yOffset:0,S=u+w;O===V.CENTER?S=x/2:O===V.RIGHT&&(S=x-u-ft.xOffset);var T=u+E;_.length>0&&(T+=ft.yOffsetCallout),r.attr("transform","translate("+S+", "+T+")"),this.addEventListeners()},e.prototype.renderCallouts=function(t){var e=VO.appendOrSelect(this.getContainerSVG(),"g.callouts").attr("role",a.GROUP).attr("data-name","callouts"),n=e.selectAll("g.callout").data(t);n.exit().remove();var r=n.enter().append("g").classed("callout",!0).attr("role",a.GRAPHICS_SYMBOL+" "+a.GROUP).attr("aria-roledescription","label callout");r.merge(n).datum((function(t){var e=t.xPosition,n=t.yPosition,r=t.direction;return r===H.RIGHT?(t.startPos={x:e,y:n+t.textOffsetY},t.endPos={x:e+ft.callout.offsetX,y:n-ft.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x-ft.callout.horizontalLineLength):(t.startPos={x:e,y:n+t.textOffsetY},t.endPos={x:e-ft.callout.offsetX,y:n-ft.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x+ft.callout.horizontalLineLength),t}));var i=r.append("line").classed("vertical-line",!0);i.merge(e.selectAll("line.vertical-line")).datum((function(t){return kO(this.parentNode).datum()})).style("stroke-width","1px").attr("x1",(function(t){return t.startPos.x})).attr("y1",(function(t){return t.startPos.y})).attr("x2",(function(t){return t.intersectPointX})).attr("y2",(function(t){return t.endPos.y}));var o=r.append("line").classed("horizontal-line",!0);o.merge(e.selectAll("line.horizontal-line")).datum((function(t){return kO(this.parentNode).datum()})).style("stroke-width","1px").attr("x1",(function(t){return t.intersectPointX})).attr("y1",(function(t){return t.endPos.y})).attr("x2",(function(t){return t.endPos.x})).attr("y2",(function(t){return t.endPos.y}))},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("path.slice").on("mouseover",(function(e){var n=kO(this);n.classed("hovered",!0).transition(t.services.transitions.getTransition("pie_slice_mouseover")).attr("d",t.hoverArc),t.services.events.dispatchEvent(et.Pie.SLICE_MOUSEOVER,{element:kO(this),datum:e});var r=t.getOptions().data.groupMapsTo;t.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:n,items:[{label:e.data[r],value:e.data.value}]})})).on("mousemove",(function(e){var n=kO(this);t.services.events.dispatchEvent(et.Pie.SLICE_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(et.Pie.SLICE_CLICK,{element:kO(this),datum:e})})).on("mouseout",(function(e){var n=kO(this);n.classed("hovered",!1).transition(t.services.transitions.getTransition("pie_slice_mouseover")).attr("d",t.arc),t.services.events.dispatchEvent(et.Pie.SLICE_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.computeRadius=function(){var t=VO.getSVGElementSize(this.parent,{useAttrs:!0}),e=t.width,n=t.height,r=this.getOptions(),i=Math.min(e,n)/2,o=r.pie.labels.enabled;return o?i+ft.radiusOffset:i},e}(FS),WC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qC="4,10 8,6 12,10",YC="12,6 8,10 4,6",ZC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e}return WC(e,t),e.prototype.init=function(){this.services.events},e.prototype.getValue=function(){var t,e,n=this.model.getData(),r=(e=null===(t=n.find((function(t){return"value"===t.group})))||void 0===t?void 0:t.value,null!==e&&void 0!==e?e:null);return r},e.prototype.getValueRatio=function(){var t=od.clamp(this.getValue(),0,100);return t/100},e.prototype.getDelta=function(){var t,e,n=this.model.getData(),r=(e=null===(t=n.find((function(t){return"delta"===t.group})))||void 0===t?void 0:t.value,null!==e&&void 0!==e?e:null);return r},e.prototype.getArcRatio=function(){var t=this.getOptions(),e=od.getProperty(t,"gauge","type"),n=e===q.FULL?1:.5;return n},e.prototype.getArcSize=function(){return this.getArcRatio()*Math.PI*2},e.prototype.getStartAngle=function(){var t=this.getArcSize();return t===2*Math.PI?0:-t/2},e.prototype.getArrow=function(t){var e=this.getOptions(),n=od.getProperty(e,"gauge","deltaArrow","direction");switch(n){case Y.UP:return qC;case Y.DOWN:return YC;default:return t>0?qC:YC}},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG(),r=this.getOptions(),i=(r.data.groupMapsTo,this.getValue()),o=this.getValueRatio(),s=this.getArcSize(),u=this.getStartAngle(),c=o*s,l=u+c,h=u+s,f=this.computeRadius(),p=this.getInnerRadius();this.backgroundArc=VC().innerRadius(p).outerRadius(f).startAngle(l).endAngle(h),this.arc=VC().innerRadius(p).outerRadius(f).startAngle(u).endAngle(l),VO.appendOrSelect(n,"path.arc-background").attr("d",this.backgroundArc).attr("role",a.GROUP);var d=n.selectAll("path.arc-foreground").data([i]),v=d.enter().append("path");v.merge(d).attr("class",this.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:"value",originalClassName:"arc-foreground"})).style("fill",(function(t){return od.getProperty(e.getOptions(),"color","scale","value")})).attr("d",this.arc).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","value").attr("aria-label",(function(t){return t.value})),this.drawValueNumber(),this.drawDelta(),d.exit().remove();var g=od.getProperty(r,"gauge","alignment"),m=VO.getSVGElementSize(this.getParent(),{useAttr:!0}).width,y=f;g===V.CENTER?y=m/2:g===V.RIGHT&&(y=m-f),n.attr("transform","translate("+y+", "+f+")"),this.addEventListeners()},e.prototype.drawValueNumber=function(){var t=this.getContainerSVG(),e=this.getOptions(),n=od.getProperty(e,"gauge","type"),r=this.getValue(),i=this.getDelta(),o=this.computeRadius(),a=od.getProperty(e,"gauge","valueFontSize"),s=od.getProperty(e,"gauge","deltaFontSize"),u=od.getProperty(e,"gauge","numberSpacing"),c=od.getProperty(e,"gauge","showPercentageSymbol"),l=0;n!==q.FULL||i?n===q.SEMI&&i&&(l=-(s(o)+u)):l=s(o);var h=VO.appendOrSelect(t,"g.gauge-numbers").attr("transform","translate(0, "+l+")"),f=a(o),p=VO.appendOrSelect(h,"g.gauge-value-number"),d=od.getProperty(e,"gauge","numberFormatter"),v=p.selectAll("text.gauge-value-number").data([r]);v.enter().append("text").attr("class","gauge-value-number").merge(v).style("font-size",f+"px").attr("text-anchor","middle").text((function(t){return d(t)}));var g=VO.getSVGElementSize(VO.appendOrSelect(t,"text.gauge-value-number"),{useBBox:!0}).width,m=f/2,y=c?"%":"",_=VO.appendOrSelect(p,"text.gauge-value-symbol").style("font-size",m+"px").attr("x",g/2).text(y),b=VO.getSVGElementSize(_,{useBBox:!0}),O=b.width,x=b.height;_.attr("y","-"+x/2+"px"),p.attr("transform","translate(-"+O/2+", 0)")},e.prototype.drawDelta=function(){var t=this,e=this.getContainerSVG(),n=this.getOptions(),r=this.getDelta(),i=this.computeRadius(),o=r?od.getProperty(n,"gauge","deltaFontSize"):function(){return 0},a=r?od.getProperty(n,"gauge","numberFormatter"):function(){return null},s=od.getProperty(n,"gauge","deltaArrow","size"),u=od.getProperty(n,"gauge","numberSpacing"),c=od.getProperty(n,"gauge","showPercentageSymbol"),l=VO.appendOrSelect(e,"g.gauge-numbers"),h=VO.appendOrSelect(l,"g.gauge-delta").attr("transform","translate(0, "+(o(i)+u)+")"),f=VO.appendOrSelect(h,"text.gauge-delta-number"),p=c?"%":"";f.data(null===r?[]:[r]),f.enter().append("text").classed("gauge-delta-number",!0).merge(f).attr("text-anchor","middle").style("font-size",o(i)+"px").text((function(t){return""+a(t)+p}));var d=VO.getSVGElementSize(VO.appendOrSelect(e,".gauge-delta-number"),{useBBox:!0}).width,v=od.getProperty(n,"gauge","deltaArrow","enabled"),g=h.selectAll("svg.gauge-delta-arrow").data(null!==r&&v?[r]:[]);g.enter().append("svg").merge(g).attr("class","gauge-delta-arrow").attr("x",-s(i)-d/2).attr("y",-s(i)/2-.35*o(i)).attr("width",s(i)).attr("height",s(i)).attr("viewBox","0 0 16 16"),VO.appendOrSelect(g,"rect.gauge-delta-arrow-backdrop").attr("width","16").attr("height","16").attr("fill","none");var m=od.getProperty(n,"gauge","status");VO.appendOrSelect(g,"polygon.gauge-delta-arrow").attr("class",null!==m?"gauge-delta-arrow status--"+m:"").attr("points",t.getArrow(r)),g.exit().remove(),f.exit().remove()},e.prototype.getInnerRadius=function(){var t=this.computeRadius(),e=od.getProperty(this.getOptions(),"gauge","arcWidth");return t-e},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("path.arc-foreground").on("mouseover",(function(e){t.services.events.dispatchEvent(et.Gauge.ARC_MOUSEOVER,{element:kO(this),datum:e})})).on("mousemove",(function(e){var n=kO(this);t.services.events.dispatchEvent(et.Gauge.ARC_MOUSEMOVE,{element:n,datum:e})})).on("click",(function(e){t.services.events.dispatchEvent(et.Gauge.ARC_CLICK,{element:kO(this),datum:e})})).on("mouseout",(function(e){var n=kO(this);t.services.events.dispatchEvent(et.Gauge.ARC_MOUSEOUT,{element:n,datum:e})}))},e.prototype.computeRadius=function(){var t=this.getOptions(),e=od.getProperty(t,"gauge","type"),n=VO.getSVGElementSize(this.parent,{useAttrs:!0}),r=n.width,i=n.height,o=e===q.SEMI?Math.min(r/2,i):Math.min(r/2,i/2);return o},e}(FS),XC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),KC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="donut",e}return XC(e,t),e.prototype.render=function(e){void 0===e&&(e=!0),t.prototype.render.call(this,e);var n=this;if(this.model.isDataEmpty())this.getContainerSVG().select("g.center").remove();else{var r=VO.appendOrSelect(this.getContainerSVG(),"g.center"),i=this.getOptions(),o=this.computeRadius();VO.appendOrSelect(r,"text.donut-figure").attr("text-anchor","middle").style("font-size",(function(){return i.donut.center.numberFontSize(o)})).transition(this.services.transitions.getTransition("donut-figure-enter-update",e)).tween("text",(function(){return n.centerNumberTween(kO(this))})),VO.appendOrSelect(r,"text.donut-title").attr("text-anchor","middle").style("font-size",(function(){return i.donut.center.titleFontSize(o)})).attr("y",i.donut.center.titleYPosition(o)).text(od.getProperty(i,"donut","center","label"))}},e.prototype.getInnerRadius=function(){var t=this.computeRadius();return.75*t},e.prototype.centerNumberTween=function(t){var e=this.getOptions(),n=od.getProperty(e,"donut","center","number");null===n&&(n=this.model.getDisplayData().reduce((function(t,e){return t+e.value}),0));var r,i=parseInt(t.text().replace(/[, ]+/g,""),10)||0;r=i%1===0&&n%1===0?Eg:gg;var o=r(i,n);return function(n){var r=e.donut.center.numberFormatter;t.text(r(o(n)))}},e}(FC);function $C(t){return+t}var QC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),JC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="skeleton",e}return QC(e,t),e.prototype.render=function(){var t=this.parent,e=t.node().parentNode,n=VO.getSVGElementSize(e,{useAttrs:!0}),r=n.width,i=n.height;t.attr("width",r).attr("height",i);var o=od.getProperty(this.getOptions(),"data","loading");o?this.renderSkeleton(o):this.removeSkeleton()},e.prototype.renderSkeleton=function(t){if(this.configs.skeleton===z.GRID)this.renderGridSkeleton(t);else if(this.configs.skeleton===z.VERT_OR_HORIZ)this.renderVertOrHorizSkeleton(t);else if(this.configs.skeleton===z.PIE)this.renderPieSkeleton(t);else{if(this.configs.skeleton!==z.DONUT)throw new Error('"'+this.configs.skeleton+'" is not a valid Skeleton type.');this.renderDonutSkeleton(t)}},e.prototype.renderGridSkeleton=function(t){this.setScales(),this.drawBackdrop(t),this.drawXGrid(t),this.drawYGrid(t),t&&this.setShimmerEffect("shimmer-lines")},e.prototype.renderVertOrHorizSkeleton=function(t){var e=this.services.cartesianScales.getOrientation();this.setScales(),this.drawBackdrop(t),e===I.VERTICAL&&this.drawYGrid(t),e===I.HORIZONTAL&&this.drawXGrid(t),this.setShimmerEffect("shimmer-lines")},e.prototype.renderPieSkeleton=function(t){var e=this.computeOuterRadius(),n=0;this.drawRing(e,n,t),t&&this.setShimmerEffect("shimmer-areas")},e.prototype.renderDonutSkeleton=function(t){var e=this.computeOuterRadius(),n=this.computeInnerRadius();this.drawRing(e,n,t),t&&this.setShimmerEffect("shimmer-areas")},e.prototype.setScales=function(){var t=this.services.cartesianScales.getMainXScale().range(),e=this.services.cartesianScales.getMainYScale().range();this.xScale=sm().domain([0,1]).range(t),this.yScale=sm().domain([0,1]).range(e)},e.prototype.drawBackdrop=function(t){var e=this.parent,n=e.node().parentNode,r=VO.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height;this.backdrop=VO.appendOrSelect(e,"svg.chart-skeleton.DAII").attr("width",i).attr("height",o);var a=VO.appendOrSelect(this.backdrop,"rect.chart-skeleton-backdrop");a.attr("width","100%").attr("height","100%");var s=this.xScale.range(),u=s[0],c=(s[1],this.yScale.range()),l=(c[0],c[1]);this.backdrop.merge(a).attr("x",u).attr("y",l),a.classed("shimmer-effect-lines",t).classed("empty-state-lines",!t)},e.prototype.drawXGrid=function(t){var e=this.backdrop.attr("height"),n=this.backdrop.attr("width"),r=od.getProperty(this.getOptions(),"grid","x","numberOfTicks"),i=this.xScale.ticks(r).map((function(t){return t*n})),o=VO.appendOrSelect(this.backdrop,"g.x.skeleton"),a=o.selectAll("line").data(i);a.enter().append("line").merge(a).attr("x1",(function(t){return t})).attr("x2",(function(t){return t})).attr("y1",0).attr("y2",e),o.selectAll("line").classed("shimmer-effect-lines",t).classed("empty-state-lines",!t)},e.prototype.drawYGrid=function(t){var e=this.backdrop.attr("height"),n=this.backdrop.attr("width"),r=od.getProperty(this.getOptions(),"grid","y","numberOfTicks"),i=this.xScale.ticks(r).map((function(t){return t*e})),o=VO.appendOrSelect(this.backdrop,"g.y.skeleton"),a=o.selectAll("line").data(i);a.enter().append("line").merge(a).attr("x1",0).attr("x2",n).attr("y1",(function(t){return t})).attr("y2",(function(t){return t})),o.selectAll("line").classed("shimmer-effect-lines",t).classed("empty-state-lines",!t)},e.prototype.drawRing=function(t,e,n){void 0===n&&(n=!0);var r=this.parent,i=VO.getSVGElementSize(r.node().parentNode,{useAttrs:!0}),o=i.width,a=i.height,s=VO.appendOrSelect(r,"svg.chart-skeleton").attr("width",o).attr("height",a),u=0===e?"pie":"donut",c=od.getProperty(this.getOptions(),u,"alignment");VO.appendOrSelect(s,"rect.chart-skeleton-area-container").attr("width",o).attr("height",a).attr("fill","none");var l=VC().innerRadius(e).outerRadius(t).startAngle(0).endAngle(2*Math.PI),h=t+Math.abs(ft.radiusOffset),f=t+(Math.min(o,a)-2*t)/2,p=VO.appendOrSelect(s,"path").attr("class","skeleton-area-shape").attr("transform","translate("+h+", "+f+")").attr("d",l).classed("shimmer-effect-areas",n).classed("empty-state-areas",!n),d=t+ft.xOffset;c===V.CENTER?d=o/2:c===V.RIGHT&&(d=o-t-ft.xOffset);var v=t+ft.yOffset;p.attr("transform","translate("+d+", "+v+")")},e.prototype.computeOuterRadius=function(){var t=VO.getSVGElementSize(this.parent.node().parentNode,{useAttrs:!0}),e=t.width,n=t.height,r=Math.min(e,n)/2;return r+ft.radiusOffset},e.prototype.computeInnerRadius=function(){return.75*this.computeOuterRadius()},e.prototype.setShimmerEffect=function(t){var e=2e3,n=1e3,r=.2,i="stop-bg-shimmer",o="stop-shimmer",a=this.parent.select(".chart-skeleton"),s=VO.getSVGElementSize(this.parent,{useAttrs:!0}).width,u=0,c=s,l=VO.appendOrSelect(a,"defs").lower(),h=VO.appendOrSelect(l,"linearGradient").attr("id",t).attr("x1",u-3*r*s).attr("x2",c).attr("y1",0).attr("y2",0).attr("gradientUnits","userSpaceOnUse").attr("gradientTransform","translate(0, 0)"),f='\n\t\t\t<stop class="'+i+'" offset="'+u+'"></stop>\n\t\t\t<stop class="'+o+'" offset="'+(u+r)+'"></stop>\n\t\t\t<stop class="'+i+'" offset="'+(u+2*r)+'"></stop>\n\t\t';function p(){h.attr("gradientTransform","translate("+(u-3*r*s)+", 0)").transition().duration(e).delay(n).ease($C).attr("gradientTransform","translate("+(c+3*r*s)+", 0)").on("end",p)}h.html(f),p()},e.prototype.removeSkeleton=function(){var t=this.parent.select(".chart-skeleton");t.remove()},e}(FS),tA=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),eA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="skeleton-lines",e}return tA(e,t),e.prototype.render=function(){var e=this.parent,n=e.node().parentNode,r=VO.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height;e.attr("width",i).attr("height",o);var a=od.getProperty(this.getOptions(),"data","loading"),s=!od.getProperty(this.getOptions(),"grid","x","enabled")&&!od.getProperty(this.getOptions(),"grid","y","enabled")&&!od.getProperty(this.getOptions(),"axes","bottom","visible")&&!od.getProperty(this.getOptions(),"axes","left","visible");a&&!s?t.prototype.renderGridSkeleton.call(this,a):a&&s?this.renderSparklineSkeleton(a):this.removeSkeleton()},e.prototype.renderSparklineSkeleton=function(t){this.setScales(),this.drawBackdrop(t),this.drawSparkline(t),this.updateBackdropStyle(),t&&this.setShimmerEffect("shimmer-lines")},e.prototype.drawSparkline=function(t){var e=this.backdrop.attr("width"),n=[100],r=VO.appendOrSelect(this.backdrop,"g.y.skeleton"),i=r.selectAll("line").data(n);i.enter().append("line").merge(i).attr("x1",0).attr("x2",e).attr("y1",(function(t){return t})).attr("y2",(function(t){return t})),r.selectAll("line").classed("shimmer-effect-lines",t).classed("empty-state-lines",!t)},e.prototype.updateBackdropStyle=function(){var t=this.parent;this.backdrop=VO.appendOrSelect(t,"svg.chart-skeleton.DAII");var e=VO.appendOrSelect(this.backdrop,"rect.chart-skeleton-backdrop");e.classed("shimmer-effect-lines",!1),e.classed("shimmer-effect-sparkline",!0)},e}(JC);function nA(t){var e=0,n=t.children,r=n&&n.length;if(r)while(--r>=0)e+=n[r].value;else e=1;t.value=e}var rA=function(){return this.eachAfter(nA)},iA=function(t){var e,n,r,i,o=this,a=[o];do{e=a.reverse(),a=[];while(o=e.pop())if(t(o),n=o.children,n)for(r=0,i=n.length;r<i;++r)a.push(n[r])}while(a.length);return this},oA=function(t){var e,n,r=this,i=[r];while(r=i.pop())if(t(r),e=r.children,e)for(n=e.length-1;n>=0;--n)i.push(e[n]);return this},aA=function(t){var e,n,r,i=this,o=[i],a=[];while(i=o.pop())if(a.push(i),e=i.children,e)for(n=0,r=e.length;n<r;++n)o.push(e[n]);while(i=a.pop())t(i);return this},sA=function(t){return this.eachAfter((function(e){var n=+t(e.data)||0,r=e.children,i=r&&r.length;while(--i>=0)n+=r[i].value;e.value=n}))},uA=function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},cA=function(t){var e=this,n=lA(e,t),r=[e];while(e!==n)e=e.parent,r.push(e);var i=r.length;while(t!==n)r.splice(i,0,t),t=t.parent;return r};function lA(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();while(t===e)i=t,t=n.pop(),e=r.pop();return i}var hA=function(){var t=this,e=[t];while(t=t.parent)e.push(t);return e},fA=function(){var t=[];return this.each((function(e){t.push(e)})),t},pA=function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},dA=function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e};function vA(t,e){var n,r,i,o,a,s=new bA(t),u=+t.value&&(s.value=t.value),c=[s];null==e&&(e=mA);while(n=c.pop())if(u&&(n.value=+n.data.value),(i=e(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)c.push(r=n.children[o]=new bA(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(_A)}function gA(){return vA(this).eachBefore(yA)}function mA(t){return t.children}function yA(t){t.data=t.data.data}function _A(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function bA(t){this.data=t,this.depth=this.height=0,this.parent=null}bA.prototype=vA.prototype={constructor:bA,count:rA,each:iA,eachAfter:aA,eachBefore:oA,sum:sA,sort:uA,path:cA,ancestors:hA,descendants:fA,leaves:pA,links:dA,copy:gA};var OA=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},xA=function(t,e,n,r,i){var o,a=t.children,s=-1,u=a.length,c=t.value&&(r-e)/t.value;while(++s<u)o=a[s],o.y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*c},wA=function(t,e,n,r,i){var o,a=t.children,s=-1,u=a.length,c=t.value&&(i-n)/t.value;while(++s<u)o=a[s],o.x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*c},EA=(1+Math.sqrt(5))/2;function SA(t,e,n,r,i,o){var a,s,u,c,l,h,f,p,d,v,g,m=[],y=e.children,_=0,b=0,O=y.length,x=e.value;while(_<O){u=i-n,c=o-r;do{l=y[b++].value}while(!l&&b<O);for(h=f=l,v=Math.max(c/u,u/c)/(x*t),g=l*l*v,d=Math.max(f/g,g/h);b<O;++b){if(l+=s=y[b].value,s<h&&(h=s),s>f&&(f=s),g=l*l*v,p=Math.max(f/g,g/h),p>d){l-=s;break}d=p}m.push(a={value:l,dice:u<c,children:y.slice(_,b)}),a.dice?xA(a,n,r,i,x?r+=c*l/x:o):wA(a,n,r,x?n+=u*l/x:i,o),x-=l,_=b}return m}var TA=function t(e){function n(t,n,r,i,o){SA(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(EA);function MA(t){return null==t?null:CA(t)}function CA(t){if("function"!==typeof t)throw new Error;return t}function AA(){return 0}var PA=function(t){return function(){return t}},kA=function(){var t=TA,e=!1,n=1,r=1,i=[0],o=AA,a=AA,s=AA,u=AA,c=AA;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(OA),t}function h(e){var n=i[e.depth],r=e.x0+n,l=e.y0+n,h=e.x1-n,f=e.y1-n;h<r&&(r=h=(r+h)/2),f<l&&(l=f=(l+f)/2),e.x0=r,e.y0=l,e.x1=h,e.y1=f,e.children&&(n=i[e.depth+1]=o(e)/2,r+=c(e)-n,l+=a(e)-n,h-=s(e)-n,f-=u(e)-n,h<r&&(r=h=(r+h)/2),f<l&&(l=f=(l+f)/2),t(e,r,l,h,f))}return l.round=function(t){return arguments.length?(e=!!t,l):e},l.size=function(t){return arguments.length?(n=+t[0],r=+t[1],l):[n,r]},l.tile=function(e){return arguments.length?(t=CA(e),l):t},l.padding=function(t){return arguments.length?l.paddingInner(t).paddingOuter(t):l.paddingInner()},l.paddingInner=function(t){return arguments.length?(o="function"===typeof t?t:PA(+t),l):o},l.paddingOuter=function(t){return arguments.length?l.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):l.paddingTop()},l.paddingTop=function(t){return arguments.length?(a="function"===typeof t?t:PA(+t),l):a},l.paddingRight=function(t){return arguments.length?(s="function"===typeof t?t:PA(+t),l):s},l.paddingBottom=function(t){return arguments.length?(u="function"===typeof t?t:PA(+t),l):u},l.paddingLeft=function(t){return arguments.length?(c="function"===typeof t?t:PA(+t),l):c},l},LA="#000000",DA="#ffffff",RA="#f1c21b",IA=RA,NA="#d2a106",jA="#b28600",VA="#ff832b",BA=VA,GA="#ba4e00",UA="#8a3800",HA="#fff1f1",zA="#ffd7d9",FA="#ffb3b8",WA="#ff8389",qA="#fa4d56",YA="#da1e28",ZA="#a2191f",XA="#750e13",KA="#520408",$A="#2d0709",QA={10:HA,20:zA,30:FA,40:WA,50:qA,60:YA,70:ZA,80:XA,90:KA,100:$A},JA="#fff0f7",tP="#ffd6e8",eP="#ffafd2",nP="#ff7eb6",rP="#ee5396",iP="#d02670",oP="#9f1853",aP="#740937",sP="#510224",uP="#2a0a18",cP={10:JA,20:tP,30:eP,40:nP,50:rP,60:iP,70:oP,80:aP,90:sP,100:uP},lP="#f6f2ff",hP="#e8daff",fP="#d4bbff",pP="#be95ff",dP="#a56eff",vP="#8a3ffc",gP="#6929c4",mP="#491d8b",yP="#31135e",_P="#1c0f30",bP={10:lP,20:hP,30:fP,40:pP,50:dP,60:vP,70:gP,80:mP,90:yP,100:_P},OP="#edf5ff",xP="#d0e2ff",wP="#a6c8ff",EP="#78a9ff",SP="#4589ff",TP="#0f62fe",MP="#0043ce",CP="#002d9c",AP="#001d6c",PP="#001141",kP={10:OP,20:xP,30:wP,40:EP,50:SP,60:TP,70:MP,80:CP,90:AP,100:PP},LP="#e5f6ff",DP="#bae6ff",RP="#82cfff",IP="#33b1ff",NP="#1192e8",jP="#0072c3",VP="#00539a",BP="#003a6d",GP="#012749",UP="#061727",HP={10:LP,20:DP,30:RP,40:IP,50:NP,60:jP,70:VP,80:BP,90:GP,100:UP},zP="#d9fbfb",FP="#9ef0f0",WP="#3ddbd9",qP="#08bdba",YP="#009d9a",ZP="#007d79",XP="#005d5d",KP="#004144",$P="#022b30",QP="#081a1c",JP={10:zP,20:FP,30:WP,40:qP,50:YP,60:ZP,70:XP,80:KP,90:$P,100:QP},tk="#defbe6",ek="#a7f0ba",nk="#6fdc8c",rk="#42be65",ik="#24a148",ok="#198038",ak="#0e6027",sk="#044317",uk="#022d0d",ck="#071908",lk={10:tk,20:ek,30:nk,40:rk,50:ik,60:ok,70:ak,80:sk,90:uk,100:ck},hk="#f2f4f8",fk="#dde1e6",pk="#c1c7cd",dk="#a2a9b0",vk="#878d96",gk="#697077",mk="#4d5358",yk="#343a3f",_k="#21272a",bk="#121619",Ok={10:hk,20:fk,30:pk,40:dk,50:vk,60:gk,70:mk,80:yk,90:_k,100:bk},xk="#f4f4f4",wk="#e0e0e0",Ek="#c6c6c6",Sk="#a8a8a8",Tk="#8d8d8d",Mk="#6f6f6f",Ck="#525252",Ak="#393939",Pk="#262626",kk="#161616",Lk={10:xk,20:wk,30:Ek,40:Sk,50:Tk,60:Mk,70:Ck,80:Ak,90:Pk,100:kk},Dk="#f7f3f2",Rk="#e5e0df",Ik="#cac5c4",Nk="#ada8a8",jk="#8f8b8b",Vk="#726e6e",Bk="#565151",Gk="#3c3838",Uk="#272525",Hk="#171414",zk={10:Dk,20:Rk,30:Ik,40:Nk,50:jk,60:Vk,70:Bk,80:Gk,90:Uk,100:Hk},Fk="#fdd13a",Wk={black:{100:LA},blue:kP,coolGray:Ok,cyan:HP,gray:Lk,green:lk,magenta:cP,orange:{40:BA,60:GA,70:UA},purple:bP,red:QA,teal:JP,warmGray:zk,white:{0:DA},yellow:{20:Fk,30:IA,40:NA,50:jA}};var qk=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yk=function(t){if(!t)return null;for(var e=0,n=Object.keys(Wk);e<n.length;e++)for(var r=n[e],i=Wk[r],o=0,a=Object.keys(i);o<a.length;o++){var s=a[o],u=i[s];if(u===t)return s}return null},Zk=function(){var t,e=kO(this.parentNode).select("rect.leaf"),n=getComputedStyle(e.node(),null).getPropertyValue("fill"),r=Hv(n);if(r&&(t=Yk(r?r.hex():null)),null===t||void 0===t){var i=Jv(r).l;t=Math.abs(100*i-100)}return t>50?"white":"black"},Xk=0,Kk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("g[data-name='leaf']").transition(e.services.transitions.getTransition("legend-hover-treemap")).attr("opacity",(function(t){return t.parent.data.name===n.datum()["name"]?1:.3}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("g[data-name='leaf']").transition(e.services.transitions.getTransition("legend-mouseout-treemap")).attr("opacity",1)},e}return qk(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG(),r=this.model.getData(),i=this.model.getDisplayData(),o=this.model.getOptions(),a=od.getProperty(window,"location"),s=VO.getSVGElementSize(this.parent,{useAttrs:!0}),u=s.width,c=s.height,l=vA({name:o.title||"Treemap",children:i}).sum((function(t){return t.value})).sort((function(t,e){return e.value-t.value})),h=(vv(r,(function(t){return vv(t.children,(function(t){return t.value}))})),kA().size([u,c]).paddingInner(1).paddingOuter(0).round(!0)(l)),f=this.services.transitions,p=n.selectAll("g[data-name='leaf']").data(h.leaves(),(function(t){return t.data.name}));p.exit().attr("opacity",0).remove();var d=p.enter().append("g").attr("data-name","leaf").attr("data-uid",(function(){return Xk++})),v=d.merge(p);v.attr("data-name","leaf").transition(f.getTransition("treemap-group-update",t)).attr("transform",(function(t){return"translate("+t.x0+","+t.y0+")"}));var g=v.selectAll("rect.leaf").data((function(t){return[t]}));g.exit().attr("width",0).attr("height",0).remove();var m=g.enter().append("rect").classed("leaf",!0);m.merge(g).attr("width",0).attr("height",0).attr("id",(function(){var t=kO(this.parentNode).attr("data-uid");return o.style.prefix+"-leaf-"+t})).attr("class",(function(t){while(t.depth>1)t=t.parent;return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t.data.name,originalClassName:"leaf"})})).transition(this.services.transitions.getTransition("treemap-leaf-update-enter",t)).attr("width",(function(t){return t.x1-t.x0})).attr("height",(function(t){return t.y1-t.y0})).style("fill",(function(t){while(t.depth>1)t=t.parent;return e.model.getFillColor(t.data.name)})),v.selectAll("clipPath").data((function(t){return!0!==t.data.showLabel?[]:[1]}),(function(t){return t})).join((function(t){t.append("clipPath").attr("id",(function(){var t=kO(this.parentNode).attr("data-uid");return o.style.prefix+"-clip-"+t})).append("use").attr("xlink:href",(function(){var t=kO(this.parentNode.parentNode).attr("data-uid"),e=o.style.prefix+"-leaf-"+t;return new URL("#"+e,a)+""}))}),(function(t){return null}),(function(t){return t.remove()})),v.selectAll("text").data((function(t){if(!0!==t.data.showLabel)return[];var n=t;while(n.depth>1)n=n.parent;var r=Jv(e.model.getFillColor(n.data.name));return[{text:t.data.name,color:r.l<.5?"white":"black"}]}),(function(t){return t})).join((function(t){var e=t.append("text").text((function(t){return t.text})).style("fill",Zk).attr("x",7).attr("y",18);a&&e.attr("clip-path",(function(){var t=kO(this.parentNode).attr("data-uid"),e=o.style.prefix+"-clip-"+t;return"url("+new URL("#"+e,a)+")"}))}),(function(t){return t.text((function(t){return t.text})).style("fill",Zk)}),(function(t){return t.remove()})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("rect.leaf").on("mouseover",(function(e){var n=kO(this),r=getComputedStyle(this,null).getPropertyValue("fill"),i=e;while(i.depth>1)i=i.parent;n.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")).style("fill",(function(e){var n=t.model.getFillColor(e.parent.data.name);return n&&(r=n),Hv(r).darker(.7).toString()})),t.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:n,items:[{color:r,label:i.data.name,bold:!0},{label:e.data.name,value:e.data.value}]}),t.services.events.dispatchEvent(et.Treemap.LEAF_MOUSEOVER,{element:n,datum:e})})).on("mousemove",(function(e){var n=kO(this);t.services.events.dispatchEvent(et.Treemap.LEAF_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(et.Treemap.LEAF_CLICK,{element:kO(this),datum:e})})).on("mouseout",(function(e){var n=kO(this);n.classed("hovered",!1);var r=e;while(r.depth>1)r=r.parent;n.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")).style("fill",(function(e){return t.model.getFillColor(e.parent.data.name)})),t.services.events.dispatchEvent(et.Treemap.LEAF_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.HIDE,{hoveredElement:n})}))},e}(FS);function $k(t){var e=Qk(tL(t),360);return Jk(e,[0,10])||Jk(e,[350,0])?{textAnchor:F.START,dominantBaseline:W.MIDDLE}:Jk(e,[10,80])?{textAnchor:F.START,dominantBaseline:W.HANGING}:Jk(e,[80,100])?{textAnchor:F.MIDDLE,dominantBaseline:W.HANGING}:Jk(e,[100,170])?{textAnchor:F.END,dominantBaseline:W.HANGING}:Jk(e,[170,190])?{textAnchor:F.END,dominantBaseline:W.MIDDLE}:Jk(e,[190,260])?{textAnchor:F.END,dominantBaseline:W.BASELINE}:Jk(e,[260,280])?{textAnchor:F.MIDDLE,dominantBaseline:W.BASELINE}:{textAnchor:F.START,dominantBaseline:W.BASELINE}}function Qk(t,e){return(t%e+e)%e}function Jk(t,e){var n=e[0],r=e[1];return t>=n&&t<=r}function tL(t){return t*(180/Math.PI)}function eL(t,e,n){void 0===n&&(n={x:0,y:0});var r=e*Math.cos(t)+n.x,i=e*Math.sin(t)+n.y;return{x:r,y:i}}function nL(t,e){return e*Math.sin(t-Math.PI/2)}var rL=oL(RE);function iL(t){this._curve=t}function oL(t){function e(e){return new iL(t(e))}return e._curve=t,e}function aL(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(oL(t)):e()._curve},t}iL.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var sL=function(){return aL(rC().curve(rL))},uL=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e.getLabelDimensions=function(t){var n=VO.appendOrSelect(e.getContainerSVG(),"g.tmp-tick"),r=VO.appendOrSelect(n,"text").text(t),i=VO.getSVGElementSize(r.node(),{useBBox:!0}),o=i.width,a=i.height;return n.remove(),{width:o,height:a}},e.normalizeFlatData=function(t){var n=e.getOptions(),r=od.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=od.getProperty(n,"data","groupMapsTo"),s=od.flatMapDeep(e.uniqueKeys.map((function(t){return e.uniqueGroups.map((function(e){var n;return n={},n[i]=t,n[a]=e,n[o]=null,n}))})));return od.merge(s,t)},e.normalizeGroupedData=function(t){var n=e.getOptions(),r=od.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=od.getProperty(n,"data","groupMapsTo");return t.map((function(t){var n=t.name,r=t.data,s=e.uniqueKeys.map((function(t){var e;return e={},e[a]=n,e[i]=t,e[o]=null,e}));return{name:n,data:od.merge(s,r)}}))},e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("g.blobs path").transition(e.services.transitions.getTransition("legend-hover-blob")).style("fill-opacity",(function(t){return t.name!==n.datum().name?pt.opacity.unselected:pt.opacity.selected})).style("stroke-opacity",(function(t){return t.name!==n.datum().name?pt.opacity.unselected:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("g.blobs path").transition(e.services.transitions.getTransition("legend-mouseout-blob")).style("fill-opacity",pt.opacity.selected).style("stroke-opacity",1)},e}return uL(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG(),r=VO.getSVGElementSize(this.parent,{useAttrs:!0}),i=r.width,o=r.height,s=this.model.getData(),u=this.model.getGroupedData(),c=this.getOptions(),l=od.getProperty(c,"radar","axes"),h=l.angle,f=l.value,p=od.getProperty(c,"data","groupMapsTo"),d=pt,v=d.xLabelPadding,g=d.yLabelPadding,m=d.yTicksNumber,y=d.minRange,_=d.xAxisRectHeight;this.uniqueKeys=Array.from(new Set(s.map((function(t){return t[h]})))),this.uniqueGroups=Array.from(new Set(s.map((function(t){return t[p]})))),this.fullDataNormalized=this.normalizeFlatData(s),this.groupedDataNormalized=this.normalizeGroupedData(u);var b=this.getLabelDimensions(this.uniqueKeys[0]).height,O=2*(b+g),x=Math.min(i,o),w=x-O,E=w/2;if(!(E<=0)){var S=xv().domain(this.fullDataNormalized.map((function(t){return t[h]}))).range([0,2*Math.PI].map((function(t){return t-Math.PI/2}))),T=dv(this.fullDataNormalized.map((function(t){return t[f]}))),M=sm().domain([T>=0?0:T,pv(this.fullDataNormalized.map((function(t){return t[f]})))]).range([y,E]).nice(m),C=M.ticks(m),A=function(t){return e.model.getFillColor(t)},P=sL().angle((function(t){return S(t[h])+Math.PI/2})).radius((function(t){return M(t[f])})).curve(jE),L=this.uniqueKeys.map((function(t){var n=e.getLabelDimensions(t).width,r=nL(S(t),E);return n+r})),D=pv(L),R={x:D+v,y:o/2},I=VO.appendOrSelect(n,"g.y-axes").attr("role",a.GROUP),N=I.selectAll("path").data(C,(function(t){return t})),j=function(t){return e.uniqueKeys.map((function(e){var n;return n={},n[h]=e,n[f]=t,n}))};N.join((function(n){return n.append("path").attr("role",a.GRAPHICS_SYMBOL).attr("opacity",0).attr("transform","translate("+R.x+", "+R.y+")").attr("fill","none").call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_axes_enter",t)).attr("opacity",1).attr("d",(function(t){return P(j(t))}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_axes_update",t)).attr("opacity",1).attr("transform","translate("+R.x+", "+R.y+")").attr("d",(function(t){return P(j(t))}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_axes_exit",t)).attr("d",(function(t){return P(j(t))})).attr("opacity",0).remove()}))}));var V=VO.appendOrSelect(n,"g.x-axes").attr("role",a.GROUP),B=V.selectAll("line").data(this.uniqueKeys,(function(t){return t}));B.join((function(n){return n.append("line").attr("role",a.GRAPHICS_SYMBOL).attr("opacity",0).attr("class",(function(t){return"x-axis-"+od.kebabCase(t)})).attr("stroke-dasharray","0").attr("x1",(function(t){return eL(S(t),0,R).x})).attr("y1",(function(t){return eL(S(t),0,R).y})).attr("x2",(function(t){return eL(S(t),0,R).x})).attr("y2",(function(t){return eL(S(t),0,R).y})).call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_axes_enter",t)).attr("opacity",1).attr("x1",(function(t){return eL(S(t),M.range()[0],R).x})).attr("y1",(function(t){return eL(S(t),M.range()[0],R).y})).attr("x2",(function(t){return eL(S(t),M.range()[1],R).x})).attr("y2",(function(t){return eL(S(t),M.range()[1],R).y}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_axes_update",t)).attr("opacity",1).attr("x1",(function(t){return eL(S(t),M.range()[0],R).x})).attr("y1",(function(t){return eL(S(t),M.range()[0],R).y})).attr("x2",(function(t){return eL(S(t),M.range()[1],R).x})).attr("y2",(function(t){return eL(S(t),M.range()[1],R).y}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_axes_exit",t)).attr("opacity",0).remove()}))}));var G=VO.appendOrSelect(n,"g.x-labels").attr("role",a.GROUP),U=G.selectAll("text").data(this.uniqueKeys);U.join((function(n){return n.append("text").text((function(t){return t})).attr("opacity",0).attr("x",(function(t){return eL(S(t),M.range()[1]+v,R).x})).attr("y",(function(t){return eL(S(t),M.range()[1]+v,R).y})).style("text-anchor",(function(t){return $k(S(t)).textAnchor})).style("dominant-baseline",(function(t){return $k(S(t)).dominantBaseline})).call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_labels_enter",t)).attr("opacity",1)}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_labels_update",t)).attr("opacity",1).attr("x",(function(t){return eL(S(t),M.range()[1]+v,R).x})).attr("y",(function(t){return eL(S(t),M.range()[1]+v,R).y}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_x_labels_exit",t)).attr("opacity",0).remove()}))}));var H=VO.appendOrSelect(n,"g.blobs").attr("role",a.GROUP),z=H.selectAll("path").data(this.groupedDataNormalized,(function(t){return t.name}));z.join((function(n){return n.append("path").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL,k.STROKE],dataGroupName:t.name,originalClassName:"blob"})})).attr("role",a.GRAPHICS_SYMBOL).attr("opacity",0).attr("transform",t?function(){return"translate("+R.x+", "+R.y+") scale("+(1+.35*Math.random())+")"}:"translate("+R.x+", "+R.y+")").style("fill",(function(t){return A(t.name)})).style("fill-opacity",pt.opacity.selected).style("stroke",(function(t){return A(t.name)})).call((function(n){var r=n.transition(e.services.transitions.getTransition("radar_blobs_enter",t));t&&r.delay((function(){return 30*Math.random()})).attr("transform","translate("+R.x+", "+R.y+")"),r.attr("opacity",1).attr("d",(function(t){return P(t.data)}))}))}),(function(n){n.attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL,k.STROKE],dataGroupName:t.name,originalClassName:"blob"})})).style("fill",(function(t){return A(t.name)})).style("stroke",(function(t){return A(t.name)})),n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_blobs_update",t)).attr("opacity",1).attr("transform","translate("+R.x+", "+R.y+")").attr("d",(function(t){return P(t.data)}))}))}),(function(n){return n.call((function(n){var r=n.transition(e.services.transitions.getTransition("radar_blobs_exit",t));t&&r.delay((function(){return 30*Math.random()})).attr("transform",(function(){return"translate("+R.x+", "+R.y+") scale("+(1+.35*Math.random())+")"})),r.attr("opacity",0).remove()}))}));var F=VO.appendOrSelect(n,"g.dots").attr("role",a.GROUP),W=F.selectAll("circle").data(this.fullDataNormalized);W.join((function(t){return t.append("circle").attr("role",a.GRAPHICS_SYMBOL)}),(function(t){return t}),(function(t){return t.remove()})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t[p],originalClassName:od.kebabCase(t[h])})})).attr("cx",(function(t){return eL(S(t[h]),M(t[f]),R).x})).attr("cy",(function(t){return eL(S(t[h]),M(t[f]),R).y})).attr("r",0).attr("opacity",0).style("fill",(function(t){return A(t[p])}));var q=VO.appendOrSelect(n,"g.x-axes-rect").attr("role",a.GROUP),Y=q.selectAll("rect").data(this.uniqueKeys);Y.join((function(t){return t.append("rect").attr("role",a.GRAPHICS_SYMBOL)}),(function(t){return t}),(function(t){return t.remove()})).attr("x",R.x).attr("y",R.y-_/2).attr("width",M.range()[1]).attr("height",_).style("fill","red").style("fill-opacity",0).attr("transform",(function(t){return"rotate("+tL(S(t))+", "+R.x+", "+R.y+")"}));var Z=VO.appendOrSelect(n,"g.y-labels").attr("role",a.GROUP),X=Z.selectAll("text").data(rv(C));X.join((function(n){return n.append("text").attr("opacity",0).text((function(t){return t})).attr("x",(function(t){return eL(-Math.PI/2,M(t),R).x+g})).attr("y",(function(t){return eL(-Math.PI/2,M(t),R).y})).style("text-anchor","start").style("dominant-baseline","middle").call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_labels_enter",t)).attr("opacity",1)}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_labels_update",t)).text((function(t){return t})).attr("opacity",1).attr("x",(function(t){return eL(-Math.PI/2,M(t),R).x+g})).attr("y",(function(t){return eL(-Math.PI/2,M(t),R).y}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_labels_exit",t)).attr("opacity",0).remove()}))}));var K=od.getProperty(c,"radar","alignment"),$=VO.getAlignmentOffset(K,n,this.getParent());n.attr("transform","translate("+$+", 0)"),this.addEventListeners()}},e.prototype.destroy=function(){this.parent.selectAll(".x-axes-rect > rect").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.addEventListeners=function(){var t=this,e=od.getProperty(this.getOptions(),"radar").axes.angle;this.parent.selectAll(".x-axes-rect > rect").on("mouseover",(function(n){var r=kO(this);t.services.events.dispatchEvent(et.Radar.X_AXIS_MOUSEOVER,{element:r,datum:n});var i=t.parent.select(".x-axes .x-axis-"+od.kebabCase(n)),o=t.parent.selectAll(".dots circle."+od.kebabCase(n));i.classed("hovered",!0).attr("stroke-dasharray","4 4"),o.classed("hovered",!0).attr("opacity",1).attr("r",pt.dotsRadius);var a=t.fullDataNormalized.filter((function(t){return t[e]===n})),s=t.getOptions(),u=s.data.groupMapsTo,c=od.getProperty(s,"radar","axes","value");t.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:r,items:a.filter((function(t){return"number"===typeof t[c]})).map((function(e){return{label:e[u],value:e[c],color:t.model.getFillColor(e[u]),class:t.model.getColorClassName({classNameTypes:[k.TOOLTIP],dataGroupName:e[u]})}}))})})).on("mousemove",(function(e){var n=kO(this);t.services.events.dispatchEvent(et.Radar.X_AXIS_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("click",(function(e){t.services.events.dispatchEvent(et.Radar.X_AXIS_CLICK,{element:kO(this),datum:e})})).on("mouseout",(function(e){var n=kO(this),r=t.parent.select(".x-axes .x-axis-"+od.kebabCase(e)),i=t.parent.selectAll(".dots circle."+od.kebabCase(e));r.classed("hovered",!1).attr("stroke-dasharray","0"),i.classed("hovered",!1).attr("opacity",0).attr("r",0),t.services.events.dispatchEvent(et.Radar.X_AXIS_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.HIDE)}))},e}(FS),lL=Array.prototype.slice;function hL(t){var e,n,r=t.length;while(r)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}var fL=function(t){var e,n,r=0,i=(t=hL(lL.call(t))).length,o=[];while(r<i)e=t[r],n&&vL(n,e)?++r:(n=mL(o=pL(o,e)),r=0);return n};function pL(t,e){var n,r;if(gL(e,t))return[e];for(n=0;n<t.length;++n)if(dL(e,t[n])&&gL(_L(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(dL(_L(t[n],t[r]),e)&&dL(_L(t[n],e),t[r])&&dL(_L(t[r],e),t[n])&&gL(bL(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function dL(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function vL(t,e){var n=t.r-e.r+1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function gL(t,e){for(var n=0;n<e.length;++n)if(!vL(t,e[n]))return!1;return!0}function mL(t){switch(t.length){case 1:return yL(t[0]);case 2:return _L(t[0],t[1]);case 3:return bL(t[0],t[1],t[2])}}function yL(t){return{x:t.x,y:t.y,r:t.r}}function _L(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,s=e.r,u=o-n,c=a-r,l=s-i,h=Math.sqrt(u*u+c*c);return{x:(n+o+u/h*l)/2,y:(r+a+c/h*l)/2,r:(h+i+s)/2}}function bL(t,e,n){var r=t.x,i=t.y,o=t.r,a=e.x,s=e.y,u=e.r,c=n.x,l=n.y,h=n.r,f=r-a,p=r-c,d=i-s,v=i-l,g=u-o,m=h-o,y=r*r+i*i-o*o,_=y-a*a-s*s+u*u,b=y-c*c-l*l+h*h,O=p*d-f*v,x=(d*b-v*_)/(2*O)-r,w=(v*g-d*m)/O,E=(p*_-f*b)/(2*O)-i,S=(f*m-p*g)/O,T=w*w+S*S-1,M=2*(o+x*w+E*S),C=x*x+E*E-o*o,A=-(T?(M+Math.sqrt(M*M-4*T*C))/(2*T):C/M);return{x:r+x+w*A,y:i+E+S*A,r:A}}function OL(t,e,n){var r,i,o,a,s=t.x-e.x,u=t.y-e.y,c=s*s+u*u;c?(i=e.r+n.r,i*=i,a=t.r+n.r,a*=a,i>a?(r=(c+a-i)/(2*c),o=Math.sqrt(Math.max(0,a/c-r*r)),n.x=t.x-r*s-o*u,n.y=t.y-r*u+o*s):(r=(c+i-a)/(2*c),o=Math.sqrt(Math.max(0,i/c-r*r)),n.x=e.x+r*s-o*u,n.y=e.y+r*u+o*s)):(n.x=e.x+n.r,n.y=e.y)}function xL(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function wL(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function EL(t){this._=t,this.next=null,this.previous=null}function SL(t){if(!(i=t.length))return 0;var e,n,r,i,o,a,s,u,c,l,h;if(e=t[0],e.x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;OL(n,e,r=t[2]),e=new EL(e),n=new EL(n),r=new EL(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(s=3;s<i;++s){OL(e._,n._,r=t[s]),r=new EL(r),u=n.next,c=e.previous,l=n._.r,h=e._.r;do{if(l<=h){if(xL(u._,r._)){n=u,e.next=n,n.previous=e,--s;continue t}l+=u._.r,u=u.next}else{if(xL(c._,r._)){e=c,e.next=n,n.previous=e,--s;continue t}h+=c._.r,c=c.previous}}while(u!==c.next);r.previous=e,r.next=n,e.next=n.previous=n=r,o=wL(e);while((r=r.next)!==n)(a=wL(r))<o&&(e=r,o=a);n=e.next}e=[n._],r=n;while((r=r.next)!==n)e.push(r._);for(r=fL(e),s=0;s<i;++s)e=t[s],e.x-=r.x,e.y-=r.y;return r.r}function TL(t){return Math.sqrt(t.value)}var ML=function(){var t=null,e=1,n=1,r=AA;function i(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(CL(t)).eachAfter(AL(r,.5)).eachBefore(PL(1)):i.eachBefore(CL(TL)).eachAfter(AL(AA,1)).eachAfter(AL(r,i.r/Math.min(e,n))).eachBefore(PL(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=MA(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"===typeof t?t:PA(+t),i):r},i};function CL(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function AL(t,e){return function(n){if(r=n.children){var r,i,o,a=r.length,s=t(n)*e||0;if(s)for(i=0;i<a;++i)r[i].r+=s;if(o=SL(r),s)for(i=0;i<a;++i)r[i].r-=s;n.r=o+s}}}function PL(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}var kL=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),LL=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},DL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle-pack",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("circle.node").transition(e.services.transitions.getTransition("legend-hover-circlepack")).attr("opacity",(function(t){return t.data.dataGroupName===n.datum()["name"]?1:at.circles.fillOpacity}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("circle.node").transition(e.services.transitions.getTransition("legend-mouseout-circlepack")).attr("opacity",1)},e}return kL(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG({withinChartClip:!0}),r=VO.getSVGElementSize(this.parent,{useAttrs:!0}),i=r.width,o=r.height;if(!(i<1||o<1)){var a=this.model.getDisplayData(),s=this.model.hasParentNode(),u=this.model.getHierarchyLevel(),c=this.getOptions(),l=od.getProperty(c,"canvasZoom","enabled");s&&od.getProperty(a,0,"children")&&(a=od.getProperty(a,0,"children"));var h=vA({children:a}).sum((function(t){return t.value})).sort((function(t,e){return e.value-t.value})),f=ML().size([i,o]).padding((function(t){return t.depth>=1?at.padding.children+3:at.padding.mainGroup+3})),p=f(h).descendants().splice(1).filter((function(t){return t.depth<=u})),d=n.selectAll("circle.node").data(p);d.exit().attr("width",0).attr("height",0).remove();var v=d.enter().append("circle").classed("node",!0);v.merge(d).attr("class",(function(t){var n=l&&3===u?e.getZoomClass(t):"";return e.model.getColorClassName({classNameTypes:[k.FILL,k.STROKE],dataGroupName:t.data.dataGroupName,originalClassName:t.children?"node "+n:"node node-leaf "+n})})).style("fill",(function(t){return e.model.getFillColor(t.data.dataGroupName)})).style("stroke",(function(t){return e.model.getFillColor(t.data.dataGroupName)})).attr("cx",(function(t){return t.x})).attr("cy",(function(t){return t.y})).transition(this.services.transitions.getTransition("circlepack-leaf-update-enter",t)).attr("r",(function(t){return t.r})).attr("opacity",1).attr("fill-opacity",at.circles.fillOpacity),!0===l&&this.focal&&(this.services.canvasZoom.zoomIn(this.focal,v,ot),this.setBackgroundListeners()),s||this.addLegendListeners(),this.addEventListeners()}},e.prototype.unhighlightChildren=function(t){var e=this,n=t.map((function(t){return t.data}));this.parent.selectAll("circle.node").filter((function(t){return n.some((function(e){return e===t.data}))&&t.depth>1})).style("stroke",(function(t){return e.model.getFillColor(t.data.dataGroupName)}))},e.prototype.highlightChildren=function(t){var e=t.map((function(t){return t.data}));this.parent.selectAll("circle.node").filter((function(t){return e.some((function(e){return e===t.data}))&&t.depth>1})).style("stroke",at.circles.hover.stroke)},e.prototype.getZoomClass=function(t){return 3===this.model.getHierarchyLevel()&&this.focal&&(t.data===this.focal.data||this.focal.children.some((function(e){return e.data===t.data})))?"focal":"non-focal"},e.prototype.addLegendListeners=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.removeBackgroundListeners=function(){var t=kO(this.services.domUtils.getMainSVG());t.on("click",(function(){return null}))},e.prototype.setBackgroundListeners=function(){var t=kO(this.services.domUtils.getMainSVG()),e=this,n=this.parent.selectAll("circle.node"),r=od.getProperty(o,"canvasZoomSettings");t.on("click",(function(){e.focal=null,e.model.updateHierarchyLevel(2),t.classed("zoomed-in",!1),e.services.canvasZoom.zoomOut(n,r)}))},e.prototype.getZoomIcon=function(){return'\n\t\t<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10">\n\t\t\t<polygon points="5.93 3.71 4.45 3.71 4.45 2.23 3.71 2.23 3.71 3.71 2.23 3.71 2.23 4.45 3.71 4.45 3.71 5.93 4.45 5.93 4.45 4.45 5.93 4.45 5.93 3.71"/>\n\t\t\t<path d="M7.2,6.67a4,4,0,0,0,1-2.59A4.08,4.08,0,1,0,4.07,8.15h0a4,4,0,0,0,2.59-1L9.48,10,10,9.48Zm-3.12.77A3.34,3.34,0,1,1,7.41,4.08,3.34,3.34,0,0,1,4.08,7.44Z"/>\n\t\t</svg>'},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("circle.node").on("mouseover",(function(e){var n=kO(this);n.classed("hovered",!0);var r=t.model.getHierarchyLevel(),i=r>2&&!n.classed("focal"),o=od.getProperty(t.model.getOptions(),"canvasZoom","enabled"),a=!1;if(!i){var s=[],u=[],c=null;e.children?(e.depth>1&&o&&(a=!0,n.classed("clickable",!0)),s=e.children.map((function(e){if(null!==e)return"number"===typeof e.data.value?{label:e.data.name,value:e.data.value}:{label:e.data.name,labelIcon:o&&r<=2?t.getZoomIcon():null,value:e.value}})),u=[{label:"Total",value:e.value,bold:!0}],t.highlightChildren(e.children)):c=e.value;var l=getComputedStyle(this,null).getPropertyValue("fill");t.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:n,items:LL([{color:l,label:e.data.name,labelIcon:a&&o&&r<=2?t.getZoomIcon():null,value:c}],s,u)})}t.services.events.dispatchEvent(et.CirclePack.CIRCLE_MOUSEOVER,{element:n,datum:e})})).on("mousemove",(function(e){var n=kO(this);t.services.events.dispatchEvent(et.CirclePack.CIRCLE_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("mouseout",(function(e){var n=kO(this);n.classed("hovered",!1),e.children&&t.unhighlightChildren(e.children),t.services.events.dispatchEvent(et.CirclePack.CIRCLE_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(et.Tooltip.HIDE,{hoveredElement:n})})).on("click",(function(e){var n=kO(this),r=n.classed("non-focal"),i=od.getProperty(t.getOptions(),"canvasZoom","enabled")&&t.model.getHierarchyLevel()>2;if(i){var o=t.parent.selectAll("circle.node"),a=kO(t.services.domUtils.getMainSVG());a.classed("zoomed-in",!1),t.focal=null,t.model.updateHierarchyLevel(2),t.services.canvasZoom.zoomOut(o,ot)}else if(2===e.depth&&e.children&&!r){o=t.parent.selectAll("circle.node"),a=kO(t.services.domUtils.getMainSVG());a.classed("zoomed-in",!0),t.focal=e,t.model.updateHierarchyLevel(3),t.services.canvasZoom.zoomIn(e,o,ot),Kp.stopPropagation()}t.services.events.dispatchEvent(et.CirclePack.CIRCLE_CLICK,{element:n,datum:e})}))},e.prototype.destroy=function(){this.parent.selectAll("circle.node").on("mouseover",null).on("mousemove",null).on("mouseout",null).on("click",null);var t=this.services.events;t.removeEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),this.removeBackgroundListeners()},e}(FS),RL=n("2a60"),IL=n.n(RL),NL=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="wordcloud",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("text.word").transition(e.services.transitions.getTransition("legend-hover-wordcloud")).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("text.word").transition(e.services.transitions.getTransition("legend-mouseout-wordcloud")).attr("opacity",1)},e}return NL(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(et.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(et.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.getFontSizeScale=function(t){var e=this.getOptions(),n=e.wordCloud.fontSizeMapsTo,r=t.map((function(t){return t[n]})).filter((function(t){return t})),i=VO.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttr:!0}),o=r.length>0,a=o?rv(r):[1,1];return sm().domain(a).range(o?e.wordCloud.fontSizeRange(i,t):[4,4])},e.prototype.render=function(t){void 0===t&&(t=!0);var e=this,n=this.getContainerSVG(),r=this.model.getDisplayData(),i=this.getFontSizeScale(r),o=this.getOptions(),a=o.wordCloud,s=a.fontSizeMapsTo,u=a.wordMapsTo,c=o.data.groupMapsTo,l=VO.getSVGElementSize(this.parent,{useAttrs:!0}),h=l.width,f=l.height;if(0!==h&&0!==f){var p=IL()().size([h,f]).words(r.map((function(t){var e;return e={},e[c]=t[c],e.text=t[u],e.size=t[s],e.value=t[s],e}))).padding(5).rotate(0).fontSize((function(t){return i(t.size)})).on("end",d);p.start(),this.addEventListeners()}function d(r){var i=VO.appendOrSelect(n,"g.words");i.attr("transform","translate("+p.size()[0]/2+", "+p.size()[1]/2+")");var o=i.selectAll("text").data(r,(function(t){return t[c]+"-"+t.text}));o.exit().attr("opacity",0).remove();var a=o.enter().append("text").attr("opacity",0);a.merge(o).style("font-size",(function(t){return t.size+"px"})).text((function(t){return t.text})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t[c],originalClassName:"word "+(t.size>32?"light":"")})})).style("fill",(function(t){return e.model.getFillColor(t[c],t.text,t)})).attr("text-anchor","middle").transition(e.services.transitions.getTransition("wordcloud-text-update-enter",t)).attr("transform",(function(t){return"translate("+t.x+", "+t.y+")"})).attr("opacity",1)}},e.prototype.addEventListeners=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=od.debounce((function(t){var e=r.parent.selectAll("text.word").transition(r.services.transitions.getTransition("wordcloud-word-mouse-highlight"));null===t?e.attr("opacity",1):e.attr("opacity",(function(){return t===this?1:.3}))}),6),r=this;this.parent.selectAll("text.word").on("mouseover",(function(i){var o=this;n(o),r.services.events.dispatchEvent(et.WordCloud.WORD_MOUSEOVER,{element:kO(this),datum:i}),r.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:o,items:[{label:t.tooltip.wordLabel,value:i.text},{label:t.tooltip.valueLabel,value:i.value},{label:t.tooltip.groupLabel,value:i[e],class:r.model.getColorClassName({classNameTypes:[k.TOOLTIP],dataGroupName:i[e]})}]})})).on("mousemove",(function(t){var e=kO(this);r.services.events.dispatchEvent(et.WordCloud.WORD_MOUSEMOVE,{element:e,datum:t}),r.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("click",(function(t){r.services.events.dispatchEvent(et.WordCloud.WORD_CLICK,{element:kO(this),datum:t})})).on("mouseout",(function(t){var e=kO(this);n(null),r.services.events.dispatchEvent(et.WordCloud.WORD_MOUSEOUT,{element:e,datum:t}),r.services.events.dispatchEvent(et.Tooltip.HIDE,{hoveredElement:e})}))},e}(FS),VL=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),BL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="spacer",e}return VL(e,t),e.prototype.render=function(){VO.appendOrSelect(this.getContainerSVG(),"rect").attr("x",0).attr("y",0).attr("width",this.configs.size||dt.default.size).attr("height",this.configs.size||dt.default.size).attr("opacity",0)},e}(FS),GL=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),UL=function(t){function e(n,r,i,o){var a=t.call(this,n,r,o)||this;a.type="layout",a.configs=o,a.children=i,a._instanceID=e.instanceID++;var s=a.configs.direction===G.ROW_REVERSE||a.configs.direction===G.COLUMN_REVERSE;return s&&(a.children=a.children.reverse()),a.init(),a}return GL(e,t),e.prototype.init=function(){this.children.forEach((function(t){t.components.forEach((function(t){t.init()}))}))},e.prototype.getPreferedAndFixedSizeSum=function(){var t=this.parent,e=0;return t.selectAll("svg.layout-child-"+this._instanceID).filter((function(t){var e=od.getProperty(t,"data","growth","x");return e===U.PREFERRED||e===U.FIXED})).each((function(t){e+=t.data.size})),e},e.prototype.getNumOfStretchChildren=function(){var t=this.parent;return t.selectAll("svg.layout-child-"+this._instanceID).filter((function(t){var e=od.getProperty(t,"data","growth","x");return e===U.STRETCH})).size()},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.parent,r=VO.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height,a=vA({children:this.children}).sum((function(t){return t.size})),s=this.configs.direction===G.ROW||this.configs.direction===G.ROW_REVERSE?xA:wA;kA().tile(s).size([i,o])(a);var u=this.configs.direction===G.ROW||this.configs.direction===G.ROW_REVERSE,c=n.selectAll("svg.layout-child-"+this._instanceID).data(a.leaves(),(function(t){return t.data.id}));c.attr("width",(function(t){return t.x1-t.x0})).attr("height",(function(t){return t.y1-t.y0}));var l=c.enter().append("svg").attr("class",(function(t){return"layout-child layout-child-"+e._instanceID+" "+t.data.id})).attr("x",(function(t){return t.x0})).attr("y",(function(t){return t.y0}));l.merge(n.selectAll("svg.layout-child-"+this._instanceID)).each((function(e){var n=this;e.data.components.forEach((function(r){r.setParent(kO(n));var i=od.getProperty(e,"data","growth","x");i!==U.PREFERRED&&i!==U.FIXED||r.render(t)}))})),n.selectAll("svg.layout-child-"+this._instanceID).each((function(t){var e=od.getProperty(t,"data","growth","x"),n=VO.getSVGElementSize(kO(this),{useBBox:!0});if(e===U.PREFERRED){var r=u?n.width:n.height,a=u?i:o;t.data.size=r/a*100}})),c.exit().remove(),this.children.filter((function(t){var e=od.getProperty(t,"growth","x");return e===U.STRETCH})).forEach((function(t,n){t.size=(100-+e.getPreferedAndFixedSizeSum())/+e.getNumOfStretchChildren()})),a=vA({children:this.children}).sum((function(t){return t.size})),kA().tile(s).size([i,o]).padding(0)(a),n.selectAll("svg.layout-child-"+this._instanceID).data(a.leaves(),(function(t){return t.data.id})).attr("x",(function(t){return t.x0})).attr("y",(function(t){return t.y0})).attr("width",(function(t){return t.x1-t.x0})).attr("height",(function(t){return t.y1-t.y0})).each((function(e,n){e.data.components.forEach((function(n){var r=od.getProperty(e,"data","growth","x");r===U.STRETCH&&n.render(t)}))}))},e.prototype.setModel=function(e){t.prototype.setModel.call(this,e),this.children.forEach((function(t){t.components.forEach((function(t){return t.setModel(e)}))}))},e.prototype.setServices=function(e){t.prototype.setServices.call(this,e),this.children.forEach((function(t){t.components.forEach((function(t){return t.setServices(e)}))}))},e.prototype.destroy=function(){this.children.forEach((function(t){t.components.forEach((function(t){return t.destroy()}))}))},e.instanceID=Math.floor(99999999999*Math.random()),e}(FS),HL=Array.prototype.slice,zL=function(t){return t},FL=1,WL=2,qL=3,YL=4,ZL=1e-6;function XL(t){return"translate("+(t+.5)+",0)"}function KL(t){return"translate(0,"+(t+.5)+")"}function $L(t){return function(e){return+t(e)}}function QL(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function JL(){return!this.__axis}function tD(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,u=t===FL||t===YL?-1:1,c=t===YL||t===WL?"x":"y",l=t===FL||t===qL?XL:KL;function h(h){var f=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,p=null==i?e.tickFormat?e.tickFormat.apply(e,n):zL:i,d=Math.max(o,0)+s,v=e.range(),g=+v[0]+.5,m=+v[v.length-1]+.5,y=(e.bandwidth?QL:$L)(e.copy()),_=h.selection?h.selection():h,b=_.selectAll(".domain").data([null]),O=_.selectAll(".tick").data(f,e).order(),x=O.exit(),w=O.enter().append("g").attr("class","tick"),E=O.select("line"),S=O.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),O=O.merge(w),E=E.merge(w.append("line").attr("stroke","currentColor").attr(c+"2",u*o)),S=S.merge(w.append("text").attr("fill","currentColor").attr(c,u*d).attr("dy",t===FL?"0em":t===qL?"0.71em":"0.32em")),h!==_&&(b=b.transition(h),O=O.transition(h),E=E.transition(h),S=S.transition(h),x=x.transition(h).attr("opacity",ZL).attr("transform",(function(t){return isFinite(t=y(t))?l(t):this.getAttribute("transform")})),w.attr("opacity",ZL).attr("transform",(function(t){var e=this.parentNode.__axis;return l(e&&isFinite(e=e(t))?e:y(t))}))),x.remove(),b.attr("d",t===YL||t==WL?a?"M"+u*a+","+g+"H0.5V"+m+"H"+u*a:"M0.5,"+g+"V"+m:a?"M"+g+","+u*a+"V0.5H"+m+"V"+u*a:"M"+g+",0.5H"+m),O.attr("opacity",1).attr("transform",(function(t){return l(y(t))})),E.attr(c+"2",u*o),S.attr(c,u*d).text(p),_.filter(JL).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===WL?"start":t===YL?"end":"middle"),_.each((function(){this.__axis=y}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=HL.call(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:HL.call(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:HL.call(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(o=a=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(s=+t,h):s},h}function eD(t){return tD(FL,t)}function nD(t){return tD(WL,t)}function rD(t){return tD(qL,t)}function iD(t){return tD(YL,t)}var oD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),aD=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="axes",r&&(i.configs=r),i.margins=i.configs.margins,i}return oD(e,t),e.prototype.render=function(t){void 0===t&&(t=!0);var e,n,r=this.configs.position,i=this.getOptions(),o=od.getProperty(i,"axes",r,"visible"),s=this.getContainerSVG(),u=VO.getSVGElementSize(this.parent,{useAttrs:!0}),c=u.width,l=u.height,h=VO.appendOrSelect(s,"g.axis."+r);r===L.BOTTOM||r===L.TOP?(e=this.configs.axes[L.LEFT]?this.margins.left:0,n=this.configs.axes[L.RIGHT]?c-this.margins.right:c):(e=l-this.margins.bottom,n=this.margins.top);var f,p=this.services.cartesianScales.getScaleByPosition(r);switch(this.scaleType===N.LABELS||this.scaleType===N.LABELS_RATIO?p.rangeRound([e,n]):p.range([e,n]),r){case L.LEFT:f=iD;break;case L.BOTTOM:f=rD;break;case L.RIGHT:f=nD;break;case L.TOP:f=eD;break}h.attr("aria-label",r+" axis");var d=!h.select("g.ticks").empty(),v=VO.appendOrSelect(h,"g.ticks");d||(v.attr("role",a.GRAPHICS_OBJECT+" "+a.GROUP),v.attr("aria-label",r+" ticks"));var g=VO.appendOrSelect(h,"g.ticks.invisible").style("opacity","0").style("pointer-events","none").attr("aria-hidden",!0).attr("aria-label","invisible "+r+" ticks"),m=od.getProperty(i,"axes",r),y=this.scaleType===N.TIME||m.scaleType===N.TIME,_=r===L.LEFT||r===L.RIGHT,b=this.model.get("zoomDomain");if(b&&y&&!_&&p.domain(b),o){var O=od.getProperty(m,"scaleType"),x=od.getProperty(i,"data","loading"),w=od.getProperty(m,"ticks","number"),E=od.getProperty(m,"ticks","values"),S=od.getProperty(m,"truncation","type"),T=od.getProperty(m,"truncation","threshold"),M=od.getProperty(m,"truncation","numCharacter"),C=null!==w,A=od.getProperty(i,"timeScale"),P=VO.appendOrSelect(g,"g.tick"),k=VO.appendOrSelect(P,"text").text("0"),D=VO.getSVGElementSize(k.node(),{useBBox:!0}).height;P.remove();var I,j=this.scaleType||m.scaleType||N.LINEAR,V=f(p).tickSizeOuter(0);if(p.ticks){var B=void 0;if(C?B=w:(B=it.ticks.number,_&&(B=this.getNumberOfFittingTicks(l,D,it.ticks.verticalSpaceRatio))),1===p.ticks().length&&0===p.ticks()[0]&&(B=0),V.ticks(B),y)if(p.ticks(B).length){var G=od.getProperty(i,"timeScale","addSpaceOnEdges"),U=od.getProperty(i,"axes",r,"domain"),H=void 0,z=p.copy();G&&!U&&z.nice(B),H=z.ticks(B),G&&H.length>2&&!U&&(H.splice(H.length-1,1),H.splice(0,1)),V.tickValues(H)}else V.tickValues([])}var F=od.getProperty(m,"ticks","formatter");if(y){var W=AM(V.tickValues());I=null===F?function(t,e){return SM(t,e,V.tickValues(),W,A)}:function(t,e){var n=SM(t,e,V.tickValues(),W,A);return F(t,e,n)}}else null===F?j===N.LINEAR&&(I=function(t){return t.toLocaleString()}):I=F;V.tickFormat(I);var q,Y=this.services.cartesianScales.getScaleByPosition(r).domain(),Z=Y[0],K=Y[1];if(E){if(y)E.forEach((function(t,e){void 0===t.getTime&&(E[e]=new Date(t))})),q=E.filter((function(t){var e=t.getTime();return e>=new Date(Z).getTime()&&e<=new Date(K).getTime()}));else if(O===N.LABELS){var $=this.services.cartesianScales.getScaleByPosition(r).domain();q=E.filter((function(t){return $.includes(t)}))}else q=E.filter((function(t){return t>=Z&&t<=K}));V.tickValues(q)}switch(r){case L.LEFT:v.attr("transform","translate("+this.margins.left+", 0)");break;case L.BOTTOM:v.attr("transform","translate(0, "+(l-this.margins.bottom)+")");break;case L.RIGHT:v.attr("transform","translate("+(c-this.margins.right)+", 0)");break;case L.TOP:v.attr("transform","translate(0, "+this.margins.top+")");break}var J=this.model.isDataEmpty();if(m.title){var tt=VO.appendOrSelect(h,"text.axis-title").html(J||x?"":m.title),et=od.getProperty(m,"titleOrientation");switch(r){case L.LEFT:et===Q.RIGHT?tt.attr("transform","rotate(90)").attr("y",0).attr("x",p.range()[0]/2).attr("dy","-0.5em").style("text-anchor","middle"):tt.attr("transform","rotate(-90)").attr("y",0).attr("x",-p.range()[0]/2).attr("dy","0.75em").style("text-anchor","middle");break;case L.BOTTOM:tt.attr("transform","translate("+(this.margins.left/2+p.range()[1]/2)+", "+(l+4)+")").style("text-anchor","middle");break;case L.RIGHT:et===Q.LEFT?tt.attr("transform","rotate(-90)").attr("y",c).attr("x",-p.range()[0]/2).style("text-anchor","middle"):tt.attr("transform","rotate(90)").attr("y",-c).attr("x",p.range()[0]/2).attr("dy","0.75em").style("text-anchor","middle");break;case L.TOP:var nt=VO.getSVGElementSize(tt,{useBBox:!0}).height;tt.attr("transform","translate("+(this.margins.left/2+p.range()[1]/2)+", "+nt/2+")").style("text-anchor","middle");break}}if(y){var rt=AM(V.tickValues()),ot=A.showDayName,at=v;t&&(v=v.transition(this.services.transitions.getTransition("axis-update",t))),v=v.call(V);var st=at.selectAll(".tick").data(V.tickValues(),p).order().select("text");st.style("font-weight",(function(t,e){return EM(t,e,V.tickValues(),rt,ot)?"bold":"normal"}))}else v=t&&d?v.transition(this.services.transitions.getTransition("axis-update")).call(V):v.call(V);if(g.call(V),r===L.BOTTOM||r===L.TOP){var ut=!1,ct=od.getProperty(m,"ticks","rotation");if(ct===X.ALWAYS)ut=!0;else if(ct===X.NEVER)ut=!1;else if(!ct||ct===X.AUTO)if(p.step){var lt=g.selectAll("g.tick text").nodes();ut=lt.some((function(t){return VO.getSVGElementSize(t,{useBBox:!0}).width>=p.step()}))}else{var ht=od.getProperty(m,"ticks","rotateIfSmallerThan")||it.ticks.rotateIfSmallerThan,ft=y?V.tickValues().length:p.ticks().length,pt=c/ft/2;ut=y?pt<2*ht:pt<ht}ut?(C||(V.ticks(this.getNumberOfFittingTicks(c,D,it.ticks.horizontalSpaceRatio)),g.call(V),v.call(V)),h.selectAll("g.ticks g.tick text").attr("transform","rotate(-45)").style("text-anchor",r===L.TOP?"start":"end")):h.selectAll("g.ticks g.tick text").attr("transform",null).style("text-anchor",null)}if(x?h.attr("opacity",0):h.attr("opacity",1),v.selectAll("g.tick").attr("aria-label",(function(t){return t})),g.selectAll("g.tick").attr("aria-label",(function(t){return t})),S!==R.NONE&&O===N.LABELS&&!E){var dt=this.services.cartesianScales.getScaleDomain(r);if(dt.length>0){var vt=s.select("g.axis."+r+" g.ticks g.tick").html();h.selectAll("g.ticks g.tick").html(vt),h.selectAll("g.tick text").data(dt).text((function(t){return t.length>T?od.truncateLabel(t,S,M):t})),this.getInvisibleAxisRef().selectAll("g.tick text").data(dt).text((function(t){return t.length>T?od.truncateLabel(t,S,M):t})),h.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()),h.selectAll("g.tick text").data(dt)}}this.addEventListeners()}else v.attr("aria-hidden",!0)},e.prototype.addEventListeners=function(){var t=this.getContainerSVG(),e=this.configs.position,n=VO.appendOrSelect(t,"g.axis."+e),r=this.getOptions(),i=od.getProperty(r,"axes",e),o=od.getProperty(i,"scaleType"),a=od.getProperty(i,"truncation","threshold"),s=(this.scaleType===N.TIME||(i.scaleType,N.TIME),this);n.selectAll("g.tick text").on("mouseover",(function(t){s.services.events.dispatchEvent(et.Axis.LABEL_MOUSEOVER,{element:kO(this),datum:t}),o===N.LABELS&&t.length>a&&s.services.events.dispatchEvent(et.Tooltip.SHOW,{hoveredElement:kO(this),content:t})})).on("mousemove",(function(t){s.services.events.dispatchEvent(et.Axis.LABEL_MOUSEMOVE,{element:kO(this),datum:t}),o===N.LABELS&&t.length>a&&s.services.events.dispatchEvent(et.Tooltip.MOVE)})).on("click",(function(t){s.services.events.dispatchEvent(et.Axis.LABEL_CLICK,{element:kO(this),datum:t})})).on("mouseout",(function(t){s.services.events.dispatchEvent(et.Axis.LABEL_MOUSEOUT,{element:kO(this),datum:t}),o===N.LABELS&&s.services.events.dispatchEvent(et.Tooltip.HIDE)}))},e.prototype.getInvisibleAxisRef=function(){var t=this.configs.position;return this.getContainerSVG().select("g.axis."+t+" g.ticks.invisible")},e.prototype.getTitleRef=function(){var t=this.configs.position;return this.getContainerSVG().select("g.axis."+t+" text.axis-title")},e.prototype.getNumberOfFittingTicks=function(t,e,n){var r=Math.floor(t/(e*n));return od.clamp(r,2,it.ticks.number)},e.prototype.destroy=function(){var t=this.getContainerSVG(),e=this.configs.position,n=VO.appendOrSelect(t,"g.axis."+e);n.selectAll("g.tick text").on("mouseover",null).on("mousemove",null).on("mouseout",null)},e}(FS),sD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),uD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="2D-axes",e.children={},e.thresholds=[],e.margins={top:0,right:0,bottom:0,left:0},e}return sD(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n={},r=Object.keys(L),i=od.getProperty(this.getOptions(),"axes");r.forEach((function(t){var e=i[L[t]];e&&(n[L[t]]=!0)})),this.configs.axes=n,r.forEach((function(t){var n=L[t];if(e.configs.axes[n]&&!e.children[n]){var r=new aD(e.model,e.services,{position:n,axes:e.configs.axes,margins:e.margins});r.setModel(e.model),r.setServices(e.services),r.setParent(e.parent),e.children[n]=r}})),Object.keys(this.children).forEach((function(n){var r=e.children[n];r.render(t)}));var o={};Object.keys(this.children).forEach((function(t){var n,r=e.children[t],i=r.configs.position,a=r.getInvisibleAxisRef(),s=VO.getSVGElementSize(a,{useBBox:!0}),u=s.width,c=s.height;switch(r.getTitleRef().empty()?n=0:(n=VO.getSVGElementSize(r.getTitleRef(),{useBBox:!0}).height,i!==L.LEFT&&i!==L.RIGHT||(n+=5)),i){case L.TOP:o.top=c+n;break;case L.BOTTOM:o.bottom=c+n;break;case L.LEFT:o.left=u+n;break;case L.RIGHT:o.right=u+n;break}}));var a=Object.keys(o).some((function(t){return e.margins[t]!==o[t]}));a&&(this.margins=Object.assign(this.margins,o),this.model.set({axesMargins:this.margins},{skipUpdate:!0}),this.services.events.dispatchEvent(et.ZoomBar.UPDATE),Object.keys(this.children).forEach((function(t){var n=e.children[t];n.margins=e.margins})),this.render(!0))},e}(FS);var cD=function(){Kp.preventDefault(),Kp.stopImmediatePropagation()},lD=function(t){var e=t.document.documentElement,n=kO(t).on("dragstart.drag",cD,!0);"onselectstart"in e?n.on("selectstart.drag",cD,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")};function hD(t,e){var n=t.document.documentElement,r=kO(t).on("dragstart.drag",null);e&&(r.on("click.drag",cD,!0),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var fD=function(t,e,n){arguments.length<3&&(n=e,e=ad().changedTouches);for(var r,i=0,o=e?e.length:0;i<o;++i)if((r=e[i]).identifier===n)return sd(t,r);return null},pD=function(t){return function(){return t}},dD=function(t,e,n){this.target=t,this.type=e,this.selection=n};function vD(){Kp.stopImmediatePropagation()}var gD=function(){Kp.preventDefault(),Kp.stopImmediatePropagation()},mD={name:"drag"},yD={name:"space"},_D={name:"handle"},bD={name:"center"};function OD(t){return[+t[0],+t[1]]}function xD(t){return[OD(t[0]),OD(t[1])]}function wD(t){return function(e){return fD(e,Kp.touches,t)}}var ED={name:"x",handles:["w","e"].map(kD),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},SD={name:"y",handles:["n","s"].map(kD),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},TD=(["n","w","e","s","nw","ne","sw","se"].map(kD),{overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"}),MD={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},CD={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},AD={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},PD={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function kD(t){return{type:t}}function LD(){return!Kp.ctrlKey&&!Kp.button}function DD(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function RD(){return navigator.maxTouchPoints||"ontouchstart"in this}function ID(t){while(!t.__brush)if(!(t=t.parentNode))return;return t.__brush}function ND(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function jD(){return VD(ED)}function VD(t){var e,n=DD,r=LD,i=RD,o=!0,a=Object(UO["a"])("start","brush","end"),s=6;function u(e){var n=e.property("__brush",v).selectAll(".overlay").data([kD("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",TD.overlay).merge(n).each((function(){var t=ID(this).extent;kO(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([kD("selection")]).enter().append("rect").attr("class","selection").attr("cursor",TD.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return TD[t.type]})),e.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",f).filter(i).on("touchstart.brush",f).on("touchmove.brush",p).on("touchend.brush touchcancel.brush",d).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var t=kO(this),e=ID(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-s/2:e[0][0]-s/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-s/2:e[0][1]-s/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+s:s})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+s:s}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function l(t,e,n){return!n&&t.__brush.emitter||new h(t,e)}function h(t,e){this.that=t,this.args=e,this.state=t.__brush,this.active=0}function f(){if((!e||Kp.touches)&&r.apply(this,arguments)){var n,i,a,s,u,h,f,p,d,v,g,m=this,y=Kp.target.__data__.type,_="selection"===(o&&Kp.metaKey?y="overlay":y)?mD:o&&Kp.altKey?bD:_D,b=t===SD?null:AD[y],O=t===ED?null:PD[y],x=ID(m),w=x.extent,E=x.selection,S=w[0][0],T=w[0][1],M=w[1][0],C=w[1][1],A=0,P=0,k=b&&O&&o&&Kp.shiftKey,L=Kp.touches?wD(Kp.changedTouches[0].identifier):ud,D=L(m),R=D,I=l(m,arguments,!0).beforestart();"overlay"===y?(E&&(d=!0),x.selection=E=[[n=t===SD?S:D[0],a=t===ED?T:D[1]],[u=t===SD?M:n,f=t===ED?C:a]]):(n=E[0][0],a=E[0][1],u=E[1][0],f=E[1][1]),i=n,s=a,h=u,p=f;var N=kO(m).attr("pointer-events","none"),j=N.selectAll(".overlay").attr("cursor",TD[y]);if(Kp.touches)I.moved=B,I.ended=U;else{var V=kO(Kp.view).on("mousemove.brush",B,!0).on("mouseup.brush",U,!0);o&&V.on("keydown.brush",H,!0).on("keyup.brush",z,!0),lD(Kp.view)}vD(),Sx(m),c.call(m),I.start()}function B(){var t=L(m);!k||v||g||(Math.abs(t[0]-R[0])>Math.abs(t[1]-R[1])?g=!0:v=!0),R=t,d=!0,gD(),G()}function G(){var t;switch(A=R[0]-D[0],P=R[1]-D[1],_){case yD:case mD:b&&(A=Math.max(S-n,Math.min(M-u,A)),i=n+A,h=u+A),O&&(P=Math.max(T-a,Math.min(C-f,P)),s=a+P,p=f+P);break;case _D:b<0?(A=Math.max(S-n,Math.min(M-n,A)),i=n+A,h=u):b>0&&(A=Math.max(S-u,Math.min(M-u,A)),i=n,h=u+A),O<0?(P=Math.max(T-a,Math.min(C-a,P)),s=a+P,p=f):O>0&&(P=Math.max(T-f,Math.min(C-f,P)),s=a,p=f+P);break;case bD:b&&(i=Math.max(S,Math.min(M,n-A*b)),h=Math.max(S,Math.min(M,u+A*b))),O&&(s=Math.max(T,Math.min(C,a-P*O)),p=Math.max(T,Math.min(C,f+P*O)));break}h<i&&(b*=-1,t=n,n=u,u=t,t=i,i=h,h=t,y in MD&&j.attr("cursor",TD[y=MD[y]])),p<s&&(O*=-1,t=a,a=f,f=t,t=s,s=p,p=t,y in CD&&j.attr("cursor",TD[y=CD[y]])),x.selection&&(E=x.selection),v&&(i=E[0][0],h=E[1][0]),g&&(s=E[0][1],p=E[1][1]),E[0][0]===i&&E[0][1]===s&&E[1][0]===h&&E[1][1]===p||(x.selection=[[i,s],[h,p]],c.call(m),I.brush())}function U(){if(vD(),Kp.touches){if(Kp.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else hD(Kp.view,d),V.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);N.attr("pointer-events","all"),j.attr("cursor",TD.overlay),x.selection&&(E=x.selection),ND(E)&&(x.selection=null,c.call(m)),I.end()}function H(){switch(Kp.keyCode){case 16:k=b&&O;break;case 18:_===_D&&(b&&(u=h-A*b,n=i+A*b),O&&(f=p-P*O,a=s+P*O),_=bD,G());break;case 32:_!==_D&&_!==bD||(b<0?u=h-A:b>0&&(n=i-A),O<0?f=p-P:O>0&&(a=s-P),_=yD,j.attr("cursor",TD.selection),G());break;default:return}gD()}function z(){switch(Kp.keyCode){case 16:k&&(v=g=k=!1,G());break;case 18:_===bD&&(b<0?u=h:b>0&&(n=i),O<0?f=p:O>0&&(a=s),_=_D,G());break;case 32:_===yD&&(Kp.altKey?(b&&(u=h-A*b,n=i+A*b),O&&(f=p-P*O,a=s+P*O),_=bD):(b<0?u=h:b>0&&(n=i),O<0?f=p:O>0&&(a=s),_=_D),j.attr("cursor",TD[y]),G());break;default:return}gD()}}function p(){l(this,arguments).moved()}function d(){l(this,arguments).ended()}function v(){var e=this.__brush||{selection:null};return e.extent=xD(n.apply(this,arguments)),e.dim=t,e}return u.move=function(e,n){e.selection?e.on("start.brush",(function(){l(this,arguments).beforestart().start()})).on("interrupt.brush end.brush",(function(){l(this,arguments).end()})).tween("brush",(function(){var e=this,r=e.__brush,i=l(e,arguments),o=r.selection,a=t.input("function"===typeof n?n.apply(this,arguments):n,r.extent),s=wg(o,a);function u(t){r.selection=1===t&&null===a?null:s(t),c.call(e),i.brush()}return null!==o&&null!==a?u:u(1)})):e.each((function(){var e=this,r=arguments,i=e.__brush,o=t.input("function"===typeof n?n.apply(e,r):n,i.extent),a=l(e,r).beforestart();Sx(e),i.selection=null===o?null:o,c.call(e),a.start().brush().end()}))},u.clear=function(t){u.move(t,null)},h.prototype={beforestart:function(){return 1===++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0===--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(e){id(new dD(u,e,t.output(this.state.selection)),a.apply,a,[e,this.that,this.args])}},u.extent=function(t){return arguments.length?(n="function"===typeof t?t:pD(xD(t)),u):n},u.filter=function(t){return arguments.length?(r="function"===typeof t?t:pD(!!t),u):r},u.touchable=function(t){return arguments.length?(i="function"===typeof t?t:pD(!!t),u):i},u.handleSize=function(t){return arguments.length?(s=+t,u):s},u.keyModifiers=function(t){return arguments.length?(o=!!t,u):o},u.on=function(){var t=a.on.apply(a,arguments);return t===a?u:t},u}var BD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),GD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid-brush",e.selectionSelector="rect.selection",e.frontSelectionSelector="rect.frontSelection",e}return BD(e,t),e.prototype.render=function(t){var n=this;void 0===t&&(t=!0);var r=this.parent,i=this.getContainerSVG(),o=VO.appendOrSelect(r,"svg.chart-grid-backdrop"),a=VO.appendOrSelect(o,"g."+this.type),s=VO.appendOrSelect(a,this.selectionSelector),u=VO.getSVGElementSize(o,{useAttrs:!0}),c=u.width,l=u.height,h=this.services.cartesianScales,f=h.getMainXScaleType(),p=h.getMainXScale(),d=p.range(),v=d[0];d[1];i.attr("transform","translate("+v+",0)");var g=VO.appendOrSelect(i,this.frontSelectionSelector);if(p&&f===N.TIME){var m=this.model.get("zoomDomain");void 0===m&&(m=this.services.zoom.getDefaultZoomBarDomain(),m&&this.model.set({zoomDomain:m},{animate:!1}));var y=function(t){for(var n=t[1]-t[0],r="0,"+n.toString(),i=Math.floor(l/e.DASH_LENGTH),o=i*e.DASH_LENGTH,a=0;a<i;a++)r+=","+e.DASH_LENGTH;r+=","+(l-o),i%2===1&&(r+=",0"),r+=","+n.toString(),r+=","+l.toString(),g.attr("stroke-dasharray",r)},_=function(){var t=Kp.selection;null!==t&&t[0]!==t[1]&&(g.attr("x",s.attr("x")).attr("y",s.attr("y")).attr("width",s.attr("width")).attr("height",s.attr("height")).style("cursor","pointer").style("display",null),y(t))},b=function(t,e){var r=I_().range([0,c]).domain(m),i=[r.invert(t),r.invert(e)];i[0].valueOf()===i[1].valueOf()&&(i=n.services.zoom.getDefaultZoomBarDomain()),m[0].valueOf()===i[0].valueOf()&&m[1].valueOf()===i[1].valueOf()||n.services.zoom.handleDomainChange(i)},O=function(){var t=Kp.selection;null!==t&&(b(t[0],t[1]),a.call(x.move,null),g.style("display","none"))},x=jD().extent([[0,0],[c-1,l]]).on("start brush end",_).on("end.brushed",O);a.call(x);var w=this.services.zoom.getZoomRatio();o.on("click",(function(){if(Kp.shiftKey){var t=ud(a.node())[0],e=t-c*w/2;e<0&&(e=0);var n=t+c*w/2;n>c&&(n=c),b(e,n)}}))}},e.DASH_LENGTH=4,e}(FS),UD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),HD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return UD(e,t),e.prototype.render=function(t){void 0===t&&(t=!0);var e=od.getProperty(this.getOptions(),"grid","x","enabled"),n=od.getProperty(this.getOptions(),"grid","y","enabled");this.drawBackdrop(e,n),(e||n)&&(e&&(VO.appendOrSelect(this.backdrop,"g.x.grid"),this.drawXGrid(t)),n&&(VO.appendOrSelect(this.backdrop,"g.y.grid"),this.drawYGrid(t)))},e.prototype.drawXGrid=function(t){var e=this.parent,n=this.backdrop.attr("height"),r=this.services.cartesianScales.getMainXScale(),i=rD(r).tickSizeInner(-n).tickSizeOuter(0),o=od.getProperty(this.getOptions(),"grid","x","alignWithAxisTicks");if(o){var a=this.services.cartesianScales.getDomainAxisPosition(),s=od.getProperty(this.getOptions(),"axes",a,"ticks","values");s&&i.tickValues(s)}else{var u=od.getProperty(this.getOptions(),"grid","x","numberOfTicks");i.ticks(u)}var c=e.select(".x.grid").attr("transform","translate("+-this.backdrop.attr("x")+", "+n+")");if(t){var l=this.services.transitions.getTransition("grid-update");c.transition(l).call(i)}else c.call(i);this.cleanGrid(c)},e.prototype.drawYGrid=function(t){var e=this.parent,n=this.backdrop.attr("width"),r=this.services.cartesianScales.getMainYScale(),i=iD(r).tickSizeInner(-n).tickSizeOuter(0),o=od.getProperty(this.getOptions(),"grid","y","alignWithAxisTicks");if(o){var a=this.services.cartesianScales.getRangeAxisPosition(),s=od.getProperty(this.getOptions(),"axes",a,"ticks","values");s&&i.tickValues(s)}else{var u=od.getProperty(this.getOptions(),"grid","y","numberOfTicks");i.ticks(u)}var c=e.select(".y.grid").attr("transform","translate(0, "+-this.backdrop.attr("y")+")");if(t){var l=this.services.transitions.getTransition("grid-update");c.transition(l).call(i)}else c.call(i);this.cleanGrid(c)},e.prototype.getGridlineThreshold=function(t){var e,n=this.parent,r=n.selectAll(".x.grid .tick").nodes().sort((function(t,e){return Number(od.getTranslationValues(t).tx)-Number(od.getTranslationValues(e).tx)})),i=-1;if(r.length){r.forEach((function(e,n){t[0]>=+od.getTranslationValues(e).tx&&i++})),e=i+1<r.length?i+1:r.length;var o,a=r[i],s=r[e];if(a)if(s)o=+od.getTranslationValues(s).tx-+od.getTranslationValues(a).tx;else{var u=n.select("rect.chart-grid-backdrop").node(),c=VO.getSVGElementSize(u).width;o=c-+od.getTranslationValues(a).tx}else o=+od.getTranslationValues(s).tx;var l=this.getOptions().tooltip.gridline.threshold;return o*l}},e.prototype.getActiveGridline=function(t){var e=od.getProperty(this.getOptions,"tooltip","gridline","threshold"),n=e||this.getGridlineThreshold(t),r=this.parent,i=r.selectAll(".x.grid .tick").filter((function(){var e=od.getTranslationValues(this),r={min:Number(e.tx)-n,max:Number(e.tx)+n};return r.min<=t[0]&&t[0]<=r.max}));return i},e.prototype.drawBackdrop=function(t,e){var n=this.parent,r=this.services.cartesianScales.getMainXScale(),i=this.services.cartesianScales.getMainYScale(),o=r.range(),a=o[0],s=o[1],u=i.range(),c=u[0],l=u[1];this.backdrop=VO.appendOrSelect(n,"svg.chart-grid-backdrop");var h=VO.appendOrSelect(this.backdrop,t||e?"rect.chart-grid-backdrop.stroked":"rect.chart-grid-backdrop");this.backdrop.merge(h).attr("x",a).attr("y",l).attr("width",Math.abs(s-a)).attr("height",Math.abs(c-l)).lower(),h.attr("width","100%").attr("height","100%")},e.prototype.cleanGrid=function(t){t.selectAll("text").remove(),t.select(".domain").remove()},e}(FS),zD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),FD=5;function WD(t,e){return t>e-FD&&t<e+FD}var qD,YD,ZD,XD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ruler",e.isXGridEnabled=od.getProperty(e.getOptions(),"grid","x","enabled"),e.isYGridEnabled=od.getProperty(e.getOptions(),"grid","y","enabled"),e.isEventListenerAdded=!1,e}return zD(e,t),e.prototype.render=function(){var t=od.getProperty(this.getOptions(),"ruler","enabled");this.drawBackdrop(),t&&!this.isEventListenerAdded?this.addBackdropEventListeners():!t&&this.isEventListenerAdded&&this.removeBackdropEventListeners()},e.prototype.removeBackdropEventListeners=function(){this.isEventListenerAdded=!1,this.backdrop.on("mousemove mouseover mouseout",null)},e.prototype.formatTooltipData=function(t){return t},e.prototype.showRuler=function(t){var e=this,n=t[0],r=t[1],i=this.parent,o=this.services.cartesianScales.getOrientation(),a=o===I.HORIZONTAL?r:n,s=VO.appendOrSelect(i,"g.ruler").attr("aria-label","ruler"),u=VO.appendOrSelect(s,"line.ruler-line"),c=i.selectAll("[role=graphics-symbol]"),l=this.model.getDisplayData(),h=this.services.cartesianScales.getRangeScale(),f=h.range(),p=f[0],d=f[1],v=l.map((function(t){return{domainValue:e.services.cartesianScales.getDomainValue(t),originalData:t}})).filter((function(t){return WD(t.domainValue,a)}));if(this.pointsWithinLine&&v.length===this.pointsWithinLine.length&&v.map((function(t){return t.domainValue})).join()===this.pointsWithinLine.map((function(t){return t.domainValue})).join())return this.pointsWithinLine=v,this.services.events.dispatchEvent(et.Tooltip.MOVE,{mousePosition:[n,r]});this.pointsWithinLine=v;var g=this.pointsWithinLine.reduce((function(t,e){if(0===t.length)return t.push(e),t;var n=t[0].domainValue,r=Math.abs(a-e.domainValue),i=Math.abs(a-n);return r>i?t:(r<i?t=[e]:t.push(e),t)}),[]);if(g.length>0){var m=g.map((function(t){return t.originalData})).filter((function(t){var n=e.services.cartesianScales.getRangeIdentifier(t),r=t[n];return null!==r&&void 0!==r})),y=g.map((function(t){return t.domainValue})),_=c.filter((function(t){var n=e.services.cartesianScales.getDomainValue(t);return y.includes(n)}));this.elementsToHighlight&&this.elementsToHighlight.size()>0&&!od.isEqual(this.elementsToHighlight,_)&&this.hideRuler(),_.dispatch("mouseover"),this.elementsToHighlight=_,this.services.events.dispatchEvent(et.Tooltip.SHOW,{mousePosition:[n,r],hoveredElement:u,data:this.formatTooltipData(m)}),s.attr("opacity",1);var b=g[0];"horizontal"===o?u.attr("x1",d).attr("x2",p).attr("y1",b.domainValue).attr("y2",b.domainValue):u.attr("y1",d).attr("y2",p).attr("x1",b.domainValue).attr("x2",b.domainValue)}else this.hideRuler()},e.prototype.hideRuler=function(){var t=this.parent,e=VO.appendOrSelect(t,"g.ruler"),n=t.selectAll("[role=graphics-symbol]");n.dispatch("mouseout"),this.services.events.dispatchEvent(et.Tooltip.HIDE),e.attr("opacity",0)},e.prototype.addBackdropEventListeners=function(){this.isEventListenerAdded=!0;var t=this,e=this.model.getDisplayData(),n=function(){var e=ud(t.parent.node());t.showRuler(e)};if(e.length>100){var r=e.length%50*12.5;n=od.debounceWithD3MousePosition((function(){var e=this.mousePosition;t.showRuler(e)}),r,this.parent.node())}this.backdrop.on("mousemove mouseover",n).on("mouseout",this.hideRuler.bind(this))},e.prototype.drawBackdrop=function(){var t=this.parent,e=this.services.cartesianScales.getMainXScale(),n=this.services.cartesianScales.getMainYScale(),r=e.range(),i=(r[0],r[1],n.range());i[0],i[1];this.backdrop=VO.appendOrSelect(t,"svg.chart-grid-backdrop");VO.appendOrSelect(this.backdrop,this.isXGridEnabled||this.isYGridEnabled?"rect.chart-grid-backdrop.stroked":"rect.chart-grid-backdrop")},e}(FS),KD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return KD(e,t),e.prototype.formatTooltipData=function(t){return t.reverse()},e}(XD),QD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),JD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="toolbar",e.overflowMenuX=0,e.overflowMenuY=0,e.overflowMenuItemId=Math.floor(99999999999*Math.random()),e}return QD(e,t),e.prototype.init=function(){var t=this,e=this.getOptions(),n=kO(this.services.domUtils.getHolder()),r=od.getProperty(e,"style","prefix");this.overflowMenu=VO.appendOrSelect(n,"div."+RO.prefix+"--"+r+"--overflowMenu"),this.overflowMenu.style("max-width",null),this.services.events.addEventListener(et.Toolbar.SHOW_OVERFLOW_MENU,(function(){t.overflowMenu.html(t.getOverflowMenuHTML())})),this.services.events.addEventListener(et.Toolbar.HIDE_OVERFLOW_MENU,(function(){t.overflowMenu.html(null)})),document.body.addEventListener("click",(function(){return t.updateOverflowMenu(!1)}))},e.prototype.render=function(t){void 0===t&&(t=!0);var e=od.getProperty(this.getOptions(),"data","loading"),n=mt.buttonSize,r=parseFloat(this.parent.node().getAttribute("y")),i=this.getContainerSVG(),o=-6;i.attr("transform","translate(0, "+(r+o)+")");var s=VO.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttrs:!0}).width,u=160;this.overflowMenuX=s-u,this.overflowMenuY=r+o+n;var c=VO.appendOrSelect(i,"svg.toolbar-container").attr("width","100%").attr("height",mt.height).attr("opacity",1);c.html(null);var l=this.getControlConfigs(),h=l.buttonList,f=l.overflowMenuItemList;if(f&&h.push(this.getOverflowButtonConfig()),e||0===h.length)VO.appendOrSelect(c,"svg.toolbar-loading-spacer").append("rect").attr("height",mt.height).attr("width",3*n).attr("opacity",0);else{var p=0;h.forEach((function(t){var e=VO.appendOrSelect(c,"svg."+t.id).classed("toolbar-button",!0),r=VO.appendOrSelect(e,"rect.toolbar-button-background").attr("x",p).attr("y",0).attr("width",n).attr("height",n),i=VO.appendOrSelect(e,"svg.toolbar-button-icon").attr("x",p+mt.iconPadding).attr("y",mt.iconPadding).attr("width",mt.iconSize).attr("height",mt.iconSize).attr("viewBox","0 0 32 32").attr("role",a.IMG);i.html(t.iconSVGContent),t.shouldBeDisabled()?(e.classed("toolbar-button--disabled",!0).classed("toolbar-button--focusable",!1).attr("tabindex",-1).attr("role",null),i.classed("toolbar-button-icon--disabled",!0),r.classed("toolbar-button-background--disabled",!0),e.on("click",null).on("keyup",null)):(e.classed("toolbar-button--disabled",!1).classed("toolbar-button--focusable",!0).attr("tabindex",0).attr("role",a.BUTTON),i.classed("toolbar-button-icon--disabled",!1),r.classed("toolbar-button-background--disabled",!1),e.on("click",t.clickFunction).on("keyup",(function(){(Kp.key&&"Enter"===Kp.key||" "===Kp.key)&&(Kp.preventDefault(),t.clickFunction())}))),p+=n})),this.overflowButton=this.getContainerSVG().select("svg.toolbar-overflow-menu"),this.isOverflowMenuOpen()&&this.updateOverflowMenu(!0)}},e.prototype.isOverflowMenuOpen=function(){return this.overflowMenu.selectAll("ul.bx--overflow-menu-options--open").size()>0},e.prototype.updateOverflowMenu=function(t){this.overflowButton&&this.overflowButton.classed("toolbar-button--hovered",t),t?this.services.events.dispatchEvent(et.Toolbar.SHOW_OVERFLOW_MENU):this.services.events.dispatchEvent(et.Toolbar.HIDE_OVERFLOW_MENU)},e.prototype.focusOnPreviousEnabledMenuItem=function(t){for(var e=this.getOverflowMenuItems(),n=e.length,r=t-1;r>=0;r--){var i=e[r];if(!i.shouldBeDisabled()){n=r;break}}if(n<e.length){var o=kO("#"+e[n].id+this.overflowMenuItemId).node();"focus"in o&&o.focus()}},e.prototype.focusOnNextEnabledMenuItem=function(t){for(var e=this.getOverflowMenuItems(),n=-1,r=t+1;r<e.length;r++){var i=e[r];if(!i.shouldBeDisabled()){n=r;break}}if(n>-1){var o=kO("#"+e[n].id+this.overflowMenuItemId).node();"focus"in o&&o.focus()}},e.prototype.toggleOverflowMenu=function(){var t=this;if(this.isOverflowMenuOpen())this.updateOverflowMenu(!1);else{this.updateOverflowMenu(!0);var e=this,n=this.getOverflowMenuItems();n.forEach((function(n,r){var i=kO("#"+n.id+t.overflowMenuItemId);null!==i&&(i.on("click",(function(){n.clickFunction(),e.updateOverflowMenu(!1)})),i.on("keyup",(function(){"Enter"===Kp.key?n.clickFunction():"ArrowUp"===Kp.key?e.focusOnPreviousEnabledMenuItem(r):"ArrowDown"===Kp.key&&e.focusOnNextEnabledMenuItem(r)})))})),e.focusOnNextEnabledMenuItem(-1)}Kp.stopImmediatePropagation()},e.prototype.getOverflowMenuHTML=function(){var t,e=this,n=this.getOverflowMenuItems();return n&&0!==n.length?(t='<div data-floating-menu-container="true" data-floating-menu-direction="bottom" role="main">\n\t\t\t<ul class="bx--overflow-menu-options bx--overflow-menu--flip bx--overflow-menu-options--open"\n\t\t\t\ttabindex="-1" role="'+a.MENU+'" aria-label="Menu" data-floating-menu-direction="bottom"\n\t\t\t\tstyle="left:'+this.overflowMenuX+"px; top:"+this.overflowMenuY+'px;">',n.forEach((function(n,r){var i="bx--overflow-menu-options__option".concat(n.shouldBeDisabled()?" bx--overflow-menu-options__option--disabled":"");t+='<li class="'+i+'" role="'+a.MENU_ITEM+'">\n\t\t\t\t<button class="bx--overflow-menu-options__btn"\n\t\t\t\t\tdata-floating-menu-primary-focus="'+(0===r)+'"\n\t\t\t\t\ttabindex="-1" index="'+r+'" title="'+n.text+'"\n\t\t\t\t\tid="'+(n.id+e.overflowMenuItemId)+'">\n\t\t\t\t\t<div class="bx--overflow-menu-options__option-content">\n\t\t\t\t\t\t'+n.text+"\n\t\t\t\t\t</div>\n\t\t\t\t</button>\n\t\t\t</li>"})),t+="</ul></div>",t):""},e.prototype.getControlConfigs=function(){var t=this,e=od.getProperty(this.getOptions(),"toolbar","numberOfIcons"),n=od.getProperty(this.getOptions(),"toolbar","controls"),r=[];return n.forEach((function(e){var n=t.getControlConfigByType(e.type);n&&(n.text=e.text?e.text:e.type,r.push(n))})),r.length<=e?{buttonList:r}:{buttonList:r.splice(0,e-1),overflowMenuItemList:r}},e.prototype.getOverflowMenuItems=function(){var t=this.getControlConfigs().overflowMenuItemList;return t||[]},e.prototype.getOverflowButtonConfig=function(){var t=this;return{id:"toolbar-overflow-menu",shouldBeDisabled:function(){return!1},iconSVGContent:'<circle cx="16" cy="8" r="2"></circle>\n\t\t\t\t\t\t\t <circle cx="16" cy="16" r="2"></circle>\n\t\t\t\t\t\t\t <circle cx="16" cy="24" r="2"></circle>',clickFunction:function(){return t.toggleOverflowMenu()}}},e.prototype.getControlConfigByType=function(t){var e,n=this,r=this.services.zoom.isZoomBarEnabled()&&!this.services.zoom.isEmptyState();switch(t){case $.ZOOM_IN:r&&(e={id:"toolbar-zoomIn",shouldBeDisabled:function(){return n.services.zoom.isMinZoomDomain()},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.zoom.zoomIn()}});break;case $.ZOOM_OUT:r&&(e={id:"toolbar-zoomOut",shouldBeDisabled:function(){return n.services.zoom.isMaxZoomDomain()},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.zoom.zoomOut()}});break;case $.RESET_ZOOM:r&&(e={id:"toolbar-resetZoom",shouldBeDisabled:function(){return n.services.zoom.isMaxZoomDomain()},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.zoom.resetZoomDomain()}});break;default:throw Error("Not supported toolbar control type: "+t)}return e},e.prototype.getControlIconByType=function(t){switch(t){case $.ZOOM_IN:return'<polygon points="19 13 15 13 15 9 13 9 13 13 9 13 9 15 13 15 13 19 15 19 15 15 19 15 19 13"/>\n \t\t\t\t\t<path d="M22.45,21A10.87,10.87,0,0,0,25,14,11,11,0,1,0,14,25a10.87,10.87,0,0,0,7-2.55L28.59,30,30,28.59ZM14,23a9,9,0,1,1,9-9A9,9,0,0,1,14,23Z"/>';case $.ZOOM_OUT:return'<rect x="9" y="13" width="10" height="2"/>\n\t\t\t\t\t\t<path d="M22.45,21A10.87,10.87,0,0,0,25,14,11,11,0,1,0,14,25a10.87,10.87,0,0,0,7-2.55L28.59,30,30,28.59ZM14,23a9,9,0,1,1,9-9A9,9,0,0,1,14,23Z"/>';case $.RESET_ZOOM:return'<path d="M22.4478,21A10.855,10.855,0,0,0,25,14,10.99,10.99,0,0,0,6,6.4658V2H4v8h8V8H7.332a8.9768,8.9768,0,1,1-2.1,8H3.1912A11.0118,11.0118,0,0,0,14,25a10.855,10.855,0,0,0,7-2.5522L28.5859,30,30,28.5859Z"/>';default:throw Error("Not supported toolbar control type: "+t)}},e}(FS),tR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),eR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="zero-line",e}return tR(e,t),e.prototype.render=function(t){var e=this.services.cartesianScales.getRangeAxisPosition({groups:this.configs.groups}),n=this.services.cartesianScales.getScaleByPosition(e),r=n.domain(),i=r[0],o=r[1],a=i>0&&o<0||i<0&&o>0,s=this.getContainerSVG();if(a){var u=this.services.cartesianScales.getDomainScale().range(),c=u[0],l=u[1],h=+n(0)+.5;h||(h=n.range()[0]);var f=od.flipSVGCoordinatesBasedOnOrientation({x0:c,x1:l,y0:h,y1:h},this.services.cartesianScales.getOrientation()),p=VO.appendOrSelect(s,"line.domain");p.transition(this.services.transitions.getTransition("zero-line-update",t)).attr("y1",f.y0).attr("y2",f.y1).attr("x1",f.x0).attr("x2",f.x1)}else s.selectAll("line.domain").remove()},e}(FS),nR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="zoom-bar",e.MIN_SELECTION_DIFF=9e-10,e.brushSelector="g.zoom-bar-brush",e.clipId="zoomBarClip-"+Math.floor(99999999999*Math.random()),e.brush=jD(),e}return nR(e,t),e.prototype.init=function(){this.services.events.addEventListener(et.ZoomBar.UPDATE,this.render.bind(this));var t=od.getProperty(this.getOptions(),"zoomBar",L.TOP,"data");this.model.setZoomBarData(t)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG(),r=this.services.zoom.isZoomBarLoading(L.TOP),i=this.services.zoom.isZoomBarLocked(L.TOP),o=od.getProperty(this.getOptions(),"zoomBar",L.TOP,"type"),a=yt.height[o],s=VO.getSVGElementSize(this.parent,{useAttrs:!0}).width;if(0!==s){var u=0,c=this.model.get("axesMargins");c&&c.left&&(u=c.left);var l=VO.appendOrSelect(n,"svg.zoom-container").attr("width","100%").attr("height",a).attr("opacity",1);VO.appendOrSelect(n,"rect.zoom-spacer").attr("x",0).attr("y",a).attr("width","100%").attr("height",yt.spacerHeight).attr("opacity",1).attr("fill","none");if(o===D.GRAPH_VIEW?VO.appendOrSelect(l,"rect.zoom-bg").attr("x",u).attr("y",0).attr("width",s-u).attr("height","100%").classed("zoom-bg-skeleton",r):o===D.SLIDER_VIEW&&VO.appendOrSelect(l,"rect.zoom-slider-bg").attr("x",u).attr("y",a/2-1).attr("width",s-u).attr("height",2).classed("zoom-slider-bg-skeleton",r),r)this.renderSkeleton(l,u,s);else{var h=this.services.cartesianScales,f=h.getMainXScale(),p=h.getMainYScale(),d=h.getMainXScaleType();if(f&&d===N.TIME){var v=this.services.zoom.getZoomBarData();if(od.isEmpty(v))return;this.xScale=f.copy(),this.yScale=p.copy();var g=this.services.zoom.getDefaultZoomBarDomain(v);v=this.compensateDataForDefaultDomain(v,g);var m=this.model.get("initialZoomDomain"),y=od.getProperty(this.getOptions(),"zoomBar",L.TOP,"initialZoomDomain");y&&y[0]&&y[1]&&(y[0]=new Date(y[0]),y[1]=new Date(y[1])),!y||m&&m[0].valueOf()===y[0].valueOf()&&m[1].valueOf()===y[1].valueOf()?null===y&&null!=m&&this.model.set({initialZoomDomain:null,zoomDomain:od.merge([],g)},{skipUpdate:!0}):this.model.set({initialZoomDomain:od.merge([],y),zoomDomain:y?od.merge([],y):g},{skipUpdate:!0}),this.xScale.range([u,s]).domain(g),this.maxSelectionRange=this.xScale.range(),this.yScale.range([0,a-6]).domain(rv(v,(function(t){return t.value})));var _=this.model.get("zoomDomain");o===D.GRAPH_VIEW&&(this.renderZoomBarArea(l,"path.zoom-graph-area-unselected",v,null),this.updateClipPath(n,this.clipId,0,0,0,0),this.renderZoomBarArea(l,"path.zoom-graph-area",v,this.clipId),this.renderZoomBarBaseline(l,u,s)),this.addBrushEventListener(_,u,s);var b=VO.appendOrSelect(n,this.brushSelector).call(this.brush);if(void 0===_);else if(_[0].valueOf()===_[1].valueOf())b.call(this.brush.move,this.xScale.range()),this.updateBrushHandle(this.getContainerSVG(),this.xScale.range(),this.xScale.domain());else{var O=_.map((function(t){return e.xScale(t)}));O[1]-O[0]<this.MIN_SELECTION_DIFF||(b.call(this.brush.move,O),this.updateBrushHandle(this.getContainerSVG(),O,_))}i&&(this.brush.filter((function(){return!1})),b.selectAll("rect").attr("cursor","auto"))}}}},e.prototype.addBrushEventListener=function(t,e,n){var r=this,i=function(){var e=Kp.selection;null===e?r.handleBrushedEvent(t,r.xScale,r.xScale.range()):e[0]===e[1]||r.handleBrushedEvent(t,r.xScale,e)},o=od.getProperty(this.getOptions(),"zoomBar",L.TOP,"type"),a=yt.height[o];this.brush.extent([[e,0],[n,a]]).on("start brush end",null).on("start brush end",i)},e.prototype.handleBrushedEvent=function(t,e,n){var r=[e.invert(n[0]),e.invert(n[1])];if(this.updateBrushHandle(this.getContainerSVG(),n,r),null!=Kp.sourceEvent&&("mousemove"===Kp.sourceEvent.type||"mouseup"===Kp.sourceEvent.type||"mousedown"===Kp.sourceEvent.type||"touchstart"===Kp.sourceEvent.type||"touchmove"===Kp.sourceEvent.type||"touchend"===Kp.sourceEvent.type)){void 0!==t&&t[0]===r[0]&&t[1]===r[1]||this.services.zoom.handleDomainChange(r,{dispatchEvent:!1});var i=void 0;"start"===Kp.type?i=et.ZoomBar.SELECTION_START:"brush"===Kp.type?i=et.ZoomBar.SELECTION_IN_PROGRESS:"end"===Kp.type&&(i=et.ZoomBar.SELECTION_END,this.services.events.dispatchEvent(et.ZoomDomain.CHANGE,{newDomain:r})),this.services.events.dispatchEvent(i,{selection:n,newDomain:r})}},e.prototype.updateBrushHandle=function(t,e,n){var r=this,i=yt.handleWidth,o=od.getProperty(this.getOptions(),"zoomBar",L.TOP,"type"),a=yt.height[o],s=-i/2,u=yt.handleBarWidth,c=o===D.GRAPH_VIEW?yt.handleBarHeight:6,l=-u/2,h=(a-c)/2;t.select(this.brushSelector).selectAll("rect.handle").data([{type:"w"},{type:"e"}]).attr("x",(function(t){return"w"===t.type?Math.max(e[0]+s,r.maxSelectionRange[0]):"e"===t.type?Math.min(e[1]+s,r.maxSelectionRange[1]-i):void 0})).attr("y",0).attr("width",i).attr("height",a).attr("cursor","ew-resize").style("display",null);var f=t.select(this.brushSelector).selectAll("rect.handle-bar").data([{type:"w"},{type:"e"}]);f.enter().append("rect").attr("class",(function(t){return"handle-bar handle-bar--"+t.type})),f.attr("x",(function(t){return"w"===t.type?Math.max(e[0]+l,r.maxSelectionRange[0]-s+l):"e"===t.type?Math.min(e[1]+l,r.maxSelectionRange[1]+s+l):void 0})).attr("y",h).attr("width",u).attr("height",c).attr("cursor","ew-resize"),o===D.SLIDER_VIEW&&this.updateSliderSelectedArea(e),this.updateClipPath(t,this.clipId,e[0],0,e[1]-e[0],a)},e.prototype.updateSliderSelectedArea=function(t){var e=od.getProperty(this.getOptions(),"zoomBar",L.TOP,"type"),n=yt.height[e],r=(VO.getSVGElementSize(this.parent,{useAttrs:!0}).width,this.model.get("axesMargins"));r&&r.left&&r.left;var i=this.getContainerSVG(),o=i.select("svg.zoom-container");VO.appendOrSelect(o,"rect.zoom-slider-selected-area").attr("x",t[0]).attr("y",n/2-1).attr("width",t[1]-t[0]).attr("height",2)},e.prototype.renderZoomBarArea=function(t,e,n,r){var i=this.services.cartesianScales,o=i.getMainXAxisPosition(),a=i.getMainYAxisPosition(),s=i.getMainXScaleType(),u=i.getMainYScaleType(),c=function(t,e,n){return function(r,o){return i.getValueFromScale(t,e,n,r,o)}},l=c(this.xScale,s,o),h=c(this.yScale,u,a),f=od.getProperty(this.getOptions(),"zoomBar",L.TOP,"type"),p=yt.height[f],d=iC().x((function(t,e){return l(t,e)})).y0(p).y1((function(t,e){return p-h(t,e)})),v=VO.appendOrSelect(t,e).datum(n).attr("d",d);r&&v.attr("clip-path","url(#"+r+")")},e.prototype.updateClipPath=function(t,e,n,r,i,o){var a=VO.appendOrSelect(t,"clipPath").attr("id",e);VO.appendOrSelect(a,"rect").attr("x",n).attr("y",r).attr("width",i).attr("height",o)},e.prototype.compensateDataForDefaultDomain=function(t,e){if(t&&!(t.length<2)){var n=od.clone(t),r=this.services.cartesianScales.getDomainIdentifier(),i=this.services.cartesianScales.getRangeIdentifier();if(Number(e[0])<Number(n[0][r])){var o={};o[r]=e[0],o[i]=0,n.unshift(o)}if(Number(e[1])>Number(n[n.length-1][r])){o={};o[r]=e[1],o[i]=0,n.push(o)}return n}},e.prototype.renderZoomBarBaseline=function(t,e,n,r){void 0===r&&(r=!1);var i=od.getProperty(this.model.getOptions(),"zoomBar",L.TOP,"type"),o=yt.height[i],a=rC()([[e,o],[n,o]]);VO.appendOrSelect(t,"path.zoom-bg-baseline").attr("d",a).classed("zoom-bg-baseline-skeleton",r)},e.prototype.renderSkeleton=function(t,e,n){this.renderZoomBarArea(t,"path.zoom-graph-area-unselected",[],null),this.renderZoomBarArea(t,"path.zoom-graph-area",[],this.clipId),this.brush.on("start brush end",null),VO.appendOrSelect(this.getContainerSVG(),this.brushSelector).html(null);var r=od.getProperty(this.getOptions(),"zoomBar",L.TOP,"type");r===D.GRAPH_VIEW&&this.renderZoomBarBaseline(t,e,n,!0)},e.prototype.destroy=function(){this.brush.on("start brush end",null),this.services.events.removeEventListener(et.ZoomBar.UPDATE,this.render.bind(this))},e}(FS),iR=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},oR=function(){function t(t,e){this.services={domUtils:VO,events:GO,gradientUtils:Ww,transitions:zw,canvasZoom:zS},this.model=new q_(this.services)}return t.prototype.init=function(t,e){var n=this;this.model.set({holder:t},{skipUpdate:!0}),Object.keys(this.services).forEach((function(t){var e=n.services[t];n.services[t]=new e(n.model,n.services)})),this.services.events.addEventListener(et.Model.UPDATE,(function(t){var e=!!od.getProperty(t,"detail","animate");n.update(e)})),this.model.setData(e.data),this.services.events.addEventListener(et.Chart.RESIZE,(function(){n.update(!1)})),this.components=this.getComponents(),this.update()},t.prototype.getComponents=function(){return console.error("getComponents() method is not implemented"),null},t.prototype.update=function(t){var e=this;if(void 0===t&&(t=!0),this.components){Object.keys(this.services).forEach((function(t){var n=e.services[t];n.update()})),this.components.forEach((function(e){return e.render(t)}));var n=this.services.transitions.getPendingTransitions(),r=Object.keys(n).map((function(t){var e=n[t];return e.end().catch((function(t){return t}))}));Promise.all(r).then((function(){return e.services.events.dispatchEvent(et.Chart.RENDER_FINISHED)}))}},t.prototype.destroy=function(){this.components.forEach((function(t){return t.destroy()})),this.services.domUtils.getHolder().remove(),this.model.set({destroyed:!0},{skipUpdate:!0})},t.prototype.getChartComponents=function(t){var e={id:"title",components:[new NM(this.model,this.services)],growth:{x:U.PREFERRED,y:U.FIXED}},n={id:"legend",components:[new qS(this.model,this.services)],growth:{x:U.PREFERRED,y:U.PREFERRED}},r=od.getProperty(this.model.getOptions(),"canvasZoom","enabled");r&&!0===r&&t.push(new YM(this.model,this.services));var i={id:"graph-frame",components:t,growth:{x:U.STRETCH,y:U.FIXED}},o=!1!==this.model.getOptions().legend.enabled,a=G.COLUMN;if(o){var s=od.getProperty(this.model.getOptions(),"legend","position");"left"===s?(a=G.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=B.VERTICAL)):"right"===s?(a=G.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=B.VERTICAL)):"bottom"===s&&(a=G.COLUMN_REVERSE)}var u={id:"spacer",components:[new BL(this.model,this.services)],growth:{x:U.PREFERRED,y:U.FIXED}},c={id:"full-frame",components:[new UL(this.model,this.services,iR(o?[n]:[],o?[u]:[],[i]),{direction:a})],growth:{x:U.STRETCH,y:U.FIXED}},l=[];if(this.model.getOptions().title){l.push(e);var h={id:"spacer",components:[new BL(this.model,this.services)],growth:{x:U.PREFERRED,y:U.FIXED}};l.push(h)}return l.push(c),[new GM(this.model,this.services),new UL(this.model,this.services,l,{direction:G.COLUMN})]},t}(),aR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sR=function(t){function e(e){return t.call(this,e)||this}return aR(e,t),e.prototype.setData=function(e){var n;if(e&&(n=t.prototype.setData.call(this,e),od.getProperty(this.getOptions(),"zoomBar",L.TOP,"enabled"))){var r=od.getProperty(this.getOptions(),"zoomBar",L.TOP,"data");this.setZoomBarData(r)}return n},e.prototype.setZoomBarData=function(t){var e=t?this.sanitize(od.clone(t)):this.getDisplayData(),n=e,r=this.services.cartesianScales;if(e&&r.domainAxisPosition&&r.rangeAxisPosition){var i=r.getDomainIdentifier(),o=r.getRangeIdentifier(),a=e.map((function(t){return t[i].getTime()}));a=od.removeArrayDuplicates(a).sort(),n=a.map((function(t){var n=0,r={};return e.forEach((function(e){e[i].getTime()===t&&(n+=e[o])})),r[i]=new Date(t),r[o]=n,r}))}this.set({zoomBarData:n})},e.prototype.getZoomBarData=function(){return this.get("zoomBarData")},e.prototype.sanitizeDateValues=function(t){var e=this.getOptions();if(!e.axes)return t;var n=[];return Object.keys(L).forEach((function(t){var r=L[t],i=e.axes[r];if(i&&i.scaleType===N.TIME){var o=i.mapsTo;null===o&&void 0===o||n.push(o)}})),n.length>0&&t.forEach((function(t){n.forEach((function(e){null===od.getProperty(t,e,"getTime")&&(t[e]=new Date(t[e]))}))})),t},e.prototype.sanitize=function(e){return e=t.prototype.sanitize.call(this,e),e=this.sanitizeDateValues(e),e},e}(q_),uR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cR=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},lR=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.services=Object.assign(r.services,{cartesianScales:PE,curves:BS,zoom:US}),r.model=new sR(r.services),r}return uR(e,t),e.prototype.getAxisChartComponents=function(t,e){var n=this.model.getOptions(),r=od.getProperty(n,"zoomBar",L.TOP,"enabled"),i=od.getProperty(n,"toolbar","enabled");this.services.cartesianScales.determineAxisDuality(),this.services.cartesianScales.findDomainAndRangeAxes(),this.services.cartesianScales.determineOrientation();var o=this.services.cartesianScales.getMainXAxisPosition(),a=od.getProperty(n,"axes",o,"scaleType"),s=r&&o===L.BOTTOM&&a===N.TIME,u=this.services.zoom.isZoomBarLocked(L.TOP),c=!!this.model.getOptions().title,l={id:"title",components:[new NM(this.model,this.services)],growth:{x:U.STRETCH,y:U.FIXED}},h={id:"toolbar",components:[new JD(this.model,this.services)],growth:{x:U.PREFERRED,y:U.FIXED}},f={id:"header",components:[new UL(this.model,this.services,cR([l],i?[h]:[]),{direction:G.ROW})],growth:{x:U.PREFERRED,y:U.FIXED}},p={id:"legend",components:[new qS(this.model,this.services)],growth:{x:U.PREFERRED,y:U.PREFERRED}};s&&!u&&t.push(new WM(this.model,this.services),new GD(this.model,this.services)),t.push(new RM(this.model,this.services));var d={id:"graph-frame",components:t,growth:{x:U.STRETCH,y:U.STRETCH}},v=!1!==od.getProperty(e,"legend","enabled")&&!1!==this.model.getOptions().legend.enabled,g=G.COLUMN;if(v){var m=od.getProperty(this.model.getOptions(),"legend","position");m===j.LEFT?(g=G.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=B.VERTICAL)):m===j.RIGHT?(g=G.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=B.VERTICAL)):m===j.BOTTOM&&(g=G.COLUMN_REVERSE)}var y={id:"spacer",components:[new BL(this.model,this.services)],growth:{x:U.PREFERRED,y:U.FIXED}},_={id:"full-frame",components:[new UL(this.model,this.services,cR(v?[p]:[],v?[y]:[],[d]),{direction:g})],growth:{x:U.STRETCH,y:U.FIXED}},b={id:"zoom-bar",components:[new rR(this.model,this.services)],growth:{x:U.PREFERRED,y:U.FIXED}},O=[];if(c||i){O.push(f);var x={id:"spacer",components:[new BL(this.model,this.services,i?{size:15}:void 0)],growth:{x:U.PREFERRED,y:U.FIXED}};O.push(x)}return s&&O.push(b),O.push(_),[new zM(this.model,this.services),new UL(this.model,this.services,O,{direction:G.COLUMN})]},e}(oR),hR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fR=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(od.mergeDefaultChartOptions(od.clone(Ud.areaChart),n.options)),r.init(e,n),r}return hR(e,t),e.prototype.getComponents=function(){var t=[new uD(this.model,this.services),new HD(this.model,this.services),new XD(this.model,this.services),new TC(this.model,this.services),new aC(this.model,this.services),new bC(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0}),new JC(this.model,this.services,{skeleton:z.GRID})],e=this.getAxisChartComponents(t);return e},e}(lR),pR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dR=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(od.mergeDefaultChartOptions(Ud.stackedAreaChart,n.options)),r.init(e,n),r}return pR(e,t),e.prototype.getComponents=function(){var t=[new uD(this.model,this.services),new HD(this.model,this.services),new $D(this.model,this.services),new uC(this.model,this.services),new TC(this.model,this.services,{stacked:!0}),new PC(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0,stacked:!0}),new JC(this.model,this.services,{skeleton:z.GRID})],e=this.getAxisChartComponents(t);return e},e}(lR),vR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gR=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(od.mergeDefaultChartOptions(Ud.simpleBarChart,n.options)),r.init(e,n),r}return vR(e,t),e.prototype.getComponents=function(){var t=[new uD(this.model,this.services),new HD(this.model,this.services),new fC(this.model,this.services),new eR(this.model,this.services),new JC(this.model,this.services,{skeleton:z.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(lR),mR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yR=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(od.mergeDefaultChartOptions(Ud.groupedBarChart,n.options)),r.init(e,n),r}return mR(e,t),e.prototype.getComponents=function(){var t=[new uD(this.model,this.services),new HD(this.model,this.services),new dC(this.model,this.services),new eR(this.model,this.services),new JC(this.model,this.services,{skeleton:z.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(lR),_R=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bR=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(od.mergeDefaultChartOptions(Ud.stackedBarChart,n.options)),r.init(e,n),r}return _R(e,t),e.prototype.getComponents=function(){var t=[new uD(this.model,this.services),new HD(this.model,this.services),new $D(this.model,this.services),new gC(this.model,this.services),new JC(this.model,this.services,{skeleton:z.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(lR),OR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xR=function(t){function e(e){return t.call(this,e)||this}return OR(e,t),e.prototype.getBoxQuartiles=function(t){return{q_25:fv(t,.25),q_50:fv(t,.5),q_75:fv(t,.75)}},e.prototype.getBoxplotData=function(){for(var t=this.getOptions(),e=t.data.groupMapsTo,n=this.getGroupedData(),r=[],i=function(t,n){for(var i,a=o.services.cartesianScales.getRangeIdentifier(),s=n.map((function(t){return t[a]})).sort(Kd),u=(i={},i[e]=t,i.counts=s,i.quartiles=o.getBoxQuartiles(s),i.outliers=null,i.whiskers=null,i),c=u.quartiles.q_25,l=u.quartiles.q_75,h=1.5*(l-c),f=c-h,p=l+h,d=[],v=[],g=0,m=s;g<m.length;g++){var y=m[g];y<f?d.push(y):y>p?d.push(y):v.push(y)}u.outliers=d;var _=dv(v),b=pv(v);u.whiskers={min:_||dv([u.quartiles.q_25,u.quartiles.q_50,u.quartiles.q_75]),max:b||pv([u.quartiles.q_25,u.quartiles.q_50,u.quartiles.q_75])},r.push(u)},o=this,a=0,s=n;a<s.length;a++){var u=s[a],c=u.name,l=u.data;i(c,l)}return r},e.prototype.setColorClassNames=function(){var t=1,e=od.getProperty(this.getOptions(),"color","pairing"),n=od.getProperty(e,"option"),r=st.pairingOptions;n=n<=r[t+"-color"]?n:1;var i=this.allDataGroups.map((function(e,r){return t+"-"+n+"-1"}));this.colorClassNames=Ov().range(i).domain(this.allDataGroups)},e}(sR),wR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ER=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new xR(r.services),r.model.setOptions(od.mergeDefaultChartOptions(Ud.boxplotChart,n.options)),r.init(e,n),r}return wR(e,t),e.prototype.getComponents=function(){var t=[new uD(this.model,this.services),new HD(this.model,this.services),new yC(this.model,this.services),new eR(this.model,this.services),new JC(this.model,this.services,{skeleton:z.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t,{legend:{enabled:!1}});return e},e}(lR),SR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),TR=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(od.mergeDefaultChartOptions(Ud.bubbleChart,n.options)),r.init(e,n),r}return SR(e,t),e.prototype.getComponents=function(){var t=[new uD(this.model,this.services),new HD(this.model,this.services),new XD(this.model,this.services),new xC(this.model,this.services),new JC(this.model,this.services,{skeleton:z.GRID})],e=this.getAxisChartComponents(t);return e},e}(lR),MR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),CR=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(od.mergeDefaultChartOptions(Ud.bulletChart,n.options)),r.init(e,n),r}return MR(e,t),e.prototype.getComponents=function(){var t=[new uD(this.model,this.services),new HD(this.model,this.services),new EC(this.model,this.services),new JC(this.model,this.services,{skeleton:z.GRID})],e=this.getAxisChartComponents(t);return e},e}(lR),AR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),PR=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(od.mergeDefaultChartOptions(Ud.lineChart,n.options)),r.init(e,n),r}return AR(e,t),e.prototype.getComponents=function(){var t=[new uD(this.model,this.services),new HD(this.model,this.services),new XD(this.model,this.services),new TC(this.model,this.services),new bC(this.model,this.services,{handleThresholds:!0}),new eA(this.model,this.services)],e=this.getAxisChartComponents(t);return e},e}(lR),kR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),LR=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(od.mergeDefaultChartOptions(Ud.lollipopChart,n.options)),r.init(e,n),r}return kR(e,t),e.prototype.getComponents=function(){var t=[new uD(this.model,this.services),new HD(this.model,this.services),new XD(this.model,this.services),new CC(this.model,this.services),new bC(this.model,this.services),new JC(this.model,this.services,{skeleton:z.GRID})],e=this.getAxisChartComponents(t);return e},e}(lR),DR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),RR=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(od.mergeDefaultChartOptions(Ud.scatterChart,n.options)),r.init(e,n),r}return DR(e,t),e.prototype.getComponents=function(){var t=[new uD(this.model,this.services),new HD(this.model,this.services),new XD(this.model,this.services),new bC(this.model,this.services),new JC(this.model,this.services,{skeleton:z.GRID})],e=this.getAxisChartComponents(t);return e},e}(lR),IR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),NR=function(t){function e(e){return t.call(this,e)||this}return IR(e,t),e.prototype.getTabularData=function(e){var n=t.prototype.getTabularData.call(this,e);return e!==n&&n.forEach((function(t){t.key&&t.key!==t.group&&(t.group=t.key)})),n},e.prototype.sanitize=function(t){var e=this.getTabularData(t);return e.sort((function(t,e){return e.value-t.value}))},e}(q_),jR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),VR=function(t){function e(e,n,r){void 0===r&&(r=!1);var i=t.call(this,e,n)||this;return i.model=new NR(i.services),r?i:(i.model.setOptions(od.mergeDefaultChartOptions(Ud.pieChart,n.options)),i.init(e,n),i)}return jR(e,t),e.prototype.getComponents=function(){var t=[new FC(this.model,this.services),new JC(this.model,this.services,{skeleton:z.PIE})],e=this.getChartComponents(t);return e},e}(oR),BR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),GR=function(t){function e(e,n){var r=t.call(this,e,n,!0)||this;return r.model.setOptions(od.mergeDefaultChartOptions(Ud.donutChart,n.options)),r.init(e,n),r}return BR(e,t),e.prototype.getComponents=function(){var t=[new KC(this.model,this.services),new JC(this.model,this.services,{skeleton:z.DONUT})],e=this.getChartComponents(t);return e},e}(VR),UR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),HR=function(t){function e(e){return t.call(this,e)||this}return UR(e,t),e.prototype.generateDataLabels=function(t){var e={};return e[t.label]=ct.items.status.ACTIVE,e},e.prototype.getDisplayData=function(){return this.get("data")?this.get("data")[0]:null},e.prototype.getFillColor=function(e){var n=this.getOptions(),r=od.getProperty(n,"color","scale"),i=this.getStatus();return r||!i?t.prototype.getFillColor.call(this,e):null},e.prototype.getStatus=function(){var t=this.getOptions(),e=this.getDisplayData().value,n=e>100?100:e,r=od.getProperty(t,"meter","status","ranges");if(r){var i=r.filter((function(t){return t.range[0]<=n&&n<=t.range[1]}));if(i.length>0)return i[0].status}return null},e}(q_),zR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),FR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="meter",e}return zR(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this,r=this.getContainerSVG(),i=this.getOptions(),o=this.model.getDisplayData(),s=this.model.getStatus(),u=VO.getSVGElementSize(this.parent,{useAttrs:!0}).width,c=i.data.groupMapsTo,l=sm().domain([0,100]).range([0,u]);VO.appendOrSelect(r,"rect.container").attr("x",0).attr("y",0).attr("width",u).attr("height",od.getProperty(i,"meter","height"));var h=o.value>=100,f=r.selectAll("rect.value").data([o]),p=null==s||n.model.isUserProvidedColorScaleValid()?"value":"value status--"+s;f.enter().append("rect").classed("value",!0).merge(f).attr("x",0).attr("y",0).attr("height",od.getProperty(i,"meter","height")).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[k.FILL],dataGroupName:t[c],originalClassName:p})})).transition(this.services.transitions.getTransition("meter-bar-update",t)).attr("width",(function(t){return l(h?100:t.value)})).style("fill",(function(t){return n.model.getFillColor(t[c])})).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","value").attr("aria-label",(function(t){return t.value}));var d=od.getProperty(i,"meter","peak"),v=null!==d&&d<o.value?o.value:d,g=null===v||h?[]:[v],m=r.selectAll("line.peak").data(g);m.enter().append("line").classed("peak",!0).merge(m).attr("y1",0).attr("y2",od.getProperty(i,"meter","height")).transition(this.services.transitions.getTransition("peak-line-update",t)).attr("x1",(function(t){return l(t)})).attr("x2",(function(t){return l(t)})).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","peak").attr("aria-label",(function(t){return t})),m.exit().remove(),this.services.domUtils.setSVGMaxHeight()},e}(FS),WR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qR=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new HR(r.services),r.model.setOptions(od.merge(od.clone(Ud.meterChart),n.options)),r.init(e,n),r}return WR(e,t),e.prototype.getComponents=function(){var t={id:"meter-graph",components:[new FR(this.model,this.services)],growth:{x:U.STRETCH,y:U.FIXED}},e={id:"title",components:[new VM(this.model,this.services)],growth:{x:U.PREFERRED,y:U.FIXED}},n={id:"spacer",components:[new BL(this.model,this.services,{size:8})],growth:{x:U.PREFERRED,y:U.FIXED}},r=[new UL(this.model,this.services,[e,n,t],{direction:G.COLUMN})],i=this.getChartComponents(r);return i},e}(oR),YR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ZR=function(t){function e(e,n,r){void 0===r&&(r=!1);var i=t.call(this,e,n)||this;return r?i:(i.model.setOptions(od.mergeDefaultChartOptions(Ud.radarChart,n.options)),i.init(e,n),i)}return YR(e,t),e.prototype.getComponents=function(){var t=[new cL(this.model,this.services)],e=this.getChartComponents(t);return e},e}(oR),XR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),KR=function(t){function e(e){return t.call(this,e)||this}return XR(e,t),e.prototype.getDataGroups=function(){return t.prototype.getDataGroups.call(this).filter((function(t){return"delta"!==t.name}))},e}(q_),$R=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),QR=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new KR(r.services),r.model.setOptions(od.mergeDefaultChartOptions(Ud.gaugeChart,n.options)),r.init(e,n),r}return $R(e,t),e.prototype.getComponents=function(){var t=[new ZC(this.model,this.services)],e=this.getChartComponents(t);return e},e}(oR),JR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tI=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},eI=(qD={},qD[K.LINE]=[TC,bC],qD[K.SCATTER]=[bC],qD[K.AREA]=[aC,TC,bC],qD[K.STACKED_AREA]=[uC,TC,PC,$D],qD[K.SIMPLE_BAR]=[fC],qD[K.GROUPED_BAR]=[dC,eR],qD[K.STACKED_BAR]=[gC,$D],qD),nI=function(t){function e(e,n){var r=t.call(this,e,n)||this,i=od.mergeDefaultChartOptions(Ud.comboChart,n.options);return n.options.comboChartTypes||(console.error("No comboChartTypes defined for the Combo Chart!"),i.comboChartTypes=[{type:K.LINE,correspondingDatasets:[]}]),r.model.setOptions(i),r.init(e,n),r}return JR(e,t),e.prototype.getGraphComponents=function(){var t=this,e=this.model.getOptions().comboChartTypes,n=0,r=e.map((function(e){var r,i,o=e.type;return"string"===typeof e.type?Object.keys(eI).includes(e.type)?(r=od.merge({},Ud[od.camelCase(e.type)+"Chart"],t.model.getOptions(),e.options),e.type===K.STACKED_AREA&&(i=!0),eI[e.type].map((function(o,a){return new o(t.model,t.services,{groups:e.correspondingDatasets,id:n++,options:r,stacked:i})}))):(console.error('Invalid chart type "'+e.type+'" specified for combo chart. Please refer to the ComboChart tutorial for more guidance.'),null):(r=od.merge({},t.model.getOptions(),e.options),new o(t.model,t.services,{groups:e.correspondingDatasets,id:n++,options:r}))})).filter((function(t){return null!==t}));return od.flatten(r)},e.prototype.getComponents=function(){var t=this.model.getOptions().comboChartTypes,e=t.some((function(t){return t.type===K.STACKED_BAR||t.type===K.STACKED_AREA})),n=tI([new uD(this.model,this.services),new HD(this.model,this.services),new JC(this.model,this.services,{skeleton:z.GRID})],e?[]:[new XD(this.model,this.services)],this.getGraphComponents()),r=this.getAxisChartComponents(n);return r},e}(lR),rI=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),iI=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(od.mergeDefaultChartOptions(Ud.treemapChart,n.options)),r.init(e,n),r}return rI(e,t),e.prototype.getComponents=function(){var t=[new Kk(this.model,this.services)],e=this.getChartComponents(t);return e},e}(oR),oI=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),aI=function(){return aI=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},aI.apply(this,arguments)},sI=function(t){function e(e){var n=t.call(this,e)||this;return n.parentNode=!1,n.set({depth:2},{skipUpdate:!0}),n}return oI(e,t),e.prototype.setData=function(e){t.prototype.setData.call(this,e),this.setDataGroups(),1===e.length&&(this.parentNode=!0),this.setZoom()},e.prototype.setOptions=function(t){var e=this.getOptions(),n=od.merge({},t,this.getZoomOptions(t));od.updateLegendAdditionalItems(e,n);var r=this.getHierarchyLevel(),i=od.getProperty(e,"circlePack","hierarchyLevel");this.set({options:od.merge(e,n),depth:i&&i<4?i:r})},e.prototype.getZoomOptions=function(t){if(!this.getDisplayData())return{};var e=this.getDisplayData(),n=t||this.getOptions(),r=1===e.length&&od.getProperty(e,0,"children")?od.getProperty(e,0,"children"):e,i=this.getHierarchyLevel();return r.some((function(t){if(t.children&&t.children.some((function(t){return t.children})))return i=3,!1})),!0===od.getProperty(n,"canvasZoom","enabled")&&i>2?{legend:{additionalItems:[{type:J.ZOOM,name:"Click to zoom"}]}}:null},e.prototype.setZoom=function(t){this.setOptions(this.getZoomOptions(t))},e.prototype.updateHierarchyLevel=function(t){this.set({depth:t})},e.prototype.getHierarchyLevel=function(){return this.get("depth")},e.prototype.hasParentNode=function(){return this.parentNode},e.prototype.setDataGroups=function(){var t=this,e=this.getData(),n=this.getOptions(),r=n.data.groupMapsTo,i=e.map((function(e){var n=e[r];return t.setChildrenDataGroup(e,n)}));this.set({data:i},{skipUpdate:!0})},e.prototype.setChildrenDataGroup=function(t,e){var n=this;return t.children?aI(aI({},t),{dataGroupName:e,children:t.children.map((function(t,r){return n.setChildrenDataGroup(t,e)}))}):aI(aI({},t),{dataGroupName:e})},e}(q_),uI=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cI=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new sI(r.services),r.model.setOptions(od.mergeDefaultChartOptions(Ud.circlePackChart,n.options)),r.init(e,n),r}return uI(e,t),e.prototype.getComponents=function(){var t=[new DL(this.model,this.services)],e=this.getChartComponents(t);return e},e}(oR),lI=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hI=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(od.mergeDefaultChartOptions(Ud.wordCloudChart,n.options)),r.init(e,n),r}return lI(e,t),e.prototype.getComponents=function(){var t=[new jL(this.model,this.services),new JC(this.model,this.services,{skeleton:z.PIE})],e=this.getChartComponents(t);return e},e}(oR),fI={name:"CcvBaseChart",data:function(){return{coreChart:null}},props:{data:{type:[Object,Array],required:!0},options:{type:Object,required:!0}},watch:{data:{handler:function(t){this.coreChart.model.setData(t)},deep:!0},options:{handler:function(t){this.coreChart.model.setOptions(t)},deep:!0}}},pI=fI;function dI(t,e,n,r,i,o,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:c}}var vI=dI(pI,YD,ZD,!1,null,null,null),gI=vI.exports,mI={name:"CcvAreaChart",extends:gI,mounted:function(){this.coreChart=new fR(this.$el,{data:this.data,options:this.options})}},yI=mI,_I=dI(yI,C,A,!1,null,null,null),bI=_I.exports,OI=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-area-chart"})},xI=[],wI={name:"CcvStackedAreaChart",extends:gI,mounted:function(){this.coreChart=new dR(this.$el,{data:this.data,options:this.options})}},EI=wI,SI=dI(EI,OI,xI,!1,null,null,null),TI=SI.exports,MI=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-simple-bar-chart"})},CI=[],AI={name:"CcvSimpleBarChart",extends:gI,mounted:function(){this.coreChart=new gR(this.$el,{data:this.data,options:this.options})}},PI=AI,kI=dI(PI,MI,CI,!1,null,null,null),LI=kI.exports,DI=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-grouped-bar-chart"})},RI=[],II={name:"CcvGroupedBarChart",extends:gI,mounted:function(){this.coreChart=new yR(this.$el,{data:this.data,options:this.options})}},NI=II,jI=dI(NI,DI,RI,!1,null,null,null),VI=jI.exports,BI=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-bar-chart"})},GI=[],UI={name:"CcvStackedBarChart",extends:gI,mounted:function(){this.coreChart=new bR(this.$el,{data:this.data,options:this.options})}},HI=UI,zI=dI(HI,BI,GI,!1,null,null,null),FI=zI.exports,WI=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-boxplot-chart"})},qI=[],YI={name:"CcvBoxplotChart",extends:gI,mounted:function(){this.coreChart=new ER(this.$el,{data:this.data,options:this.options})}},ZI=YI,XI=dI(ZI,WI,qI,!1,null,null,null),KI=XI.exports,$I=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-bubble-chart"})},QI=[],JI={name:"CcvBubbleChart",extends:gI,mounted:function(){this.coreChart=new TR(this.$el,{data:this.data,options:this.options})}},tN=JI,eN=dI(tN,$I,QI,!1,null,null,null),nN=eN.exports,rN=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-bullet-chart"})},iN=[],oN={name:"CcvBulletChart",extends:gI,mounted:function(){this.coreChart=new CR(this.$el,{data:this.data,options:this.options})}},aN=oN,sN=dI(aN,rN,iN,!1,null,null,null),uN=sN.exports,cN=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-donut-chart"})},lN=[],hN={name:"CcvDonutChart",extends:gI,mounted:function(){this.coreChart=new GR(this.$el,{data:this.data,options:this.options})}},fN=hN,pN=dI(fN,cN,lN,!1,null,null,null),dN=pN.exports,vN=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-gauge-chart"})},gN=[],mN={name:"CcvGaugeChart",extends:gI,mounted:function(){this.coreChart=new QR(this.$el,{data:this.data,options:this.options})}},yN=mN,_N=dI(yN,vN,gN,!1,null,null,null),bN=_N.exports,ON=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-line-chart"})},xN=[],wN={name:"CcvLineChart",extends:gI,mounted:function(){this.coreChart=new PR(this.$el,{data:this.data,options:this.options})}},EN=wN,SN=dI(EN,ON,xN,!1,null,null,null),TN=SN.exports,MN=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-lollipop-chart"})},CN=[],AN={name:"CcvLollipopChart",extends:gI,mounted:function(){this.coreChart=new LR(this.$el,{data:this.data,options:this.options})}},PN=AN,kN=dI(PN,MN,CN,!1,null,null,null),LN=kN.exports,DN=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-pie-chart"})},RN=[],IN={name:"CcvPieChart",extends:gI,mounted:function(){this.coreChart=new VR(this.$el,{data:this.data,options:this.options})}},NN=IN,jN=dI(NN,DN,RN,!1,null,null,null),VN=jN.exports,BN=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-scatter-chart"})},GN=[],UN={name:"CcvScatterChart",extends:gI,mounted:function(){this.coreChart=new RR(this.$el,{data:this.data,options:this.options})}},HN=UN,zN=dI(HN,BN,GN,!1,null,null,null),FN=zN.exports,WN=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-meter-chart"})},qN=[],YN={name:"CcvMeterChart",extends:gI,mounted:function(){this.coreChart=new qR(this.$el,{data:this.data,options:this.options})}},ZN=YN,XN=dI(ZN,WN,qN,!1,null,null,null),KN=XN.exports,$N=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-radar-chart"})},QN=[],JN={name:"CcvRadarChart",extends:gI,mounted:function(){this.coreChart=new ZR(this.$el,{data:this.data,options:this.options})}},tj=JN,ej=dI(tj,$N,QN,!1,null,null,null),nj=ej.exports,rj=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-combo-chart"})},ij=[],oj={name:"CcvComboChart",extends:gI,mounted:function(){this.coreChart=new nI(this.$el,{data:this.data,options:this.options})}},aj=oj,sj=dI(aj,rj,ij,!1,null,null,null),uj=sj.exports,cj=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-treemap-chart"})},lj=[],hj={name:"CcvTreemapChart",extends:gI,mounted:function(){this.coreChart=new iI(this.$el,{data:this.data,options:this.options})}},fj=hj,pj=dI(fj,cj,lj,!1,null,null,null),dj=pj.exports,vj=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-circle-pack-chart"})},gj=[],mj={name:"CcvCirclePackChart",extends:gI,mounted:function(){this.coreChart=new cI(this.$el,{data:this.data,options:this.options})}},yj=mj,_j=dI(yj,vj,gj,!1,null,null,null),bj=_j.exports,Oj=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-wordcloud-chart"})},xj=[],wj={name:"CcvWordCloudChart",extends:gI,mounted:function(){this.coreChart=new hI(this.$el,{data:this.data,options:this.options})}},Ej=wj,Sj=dI(Ej,Oj,xj,!1,null,null,null),Tj=Sj.exports,Mj=[bI,TI,LI,VI,FI,KI,nN,uN,dN,bN,TN,LN,VN,FN,KN,nj,uj,dj,bj,Tj],Cj={install:function(t,e){if("undefined"===typeof e){var n=!0,r=!1,i=void 0;try{for(var o,a=Mj[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;t.component(s.name,s)}}catch(d){r=!0,i=d}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}}else{if(!(e instanceof Array))throw new TypeError("options must be an array");var u=!0,c=!1,l=void 0;try{for(var h,f=Mj[Symbol.iterator]();!(u=(h=f.next()).done);u=!0){var p=h.value;e.includes(p.name)&&t.component(p.name,p)}}catch(d){c=!0,l=d}finally{try{u||null==f.return||f.return()}finally{if(c)throw l}}}}};n.d(e,"CcvAreaChart",(function(){return bI})),n.d(e,"CcvStackedAreaChart",(function(){return TI})),n.d(e,"CcvSimpleBarChart",(function(){return LI})),n.d(e,"CcvGroupedBarChart",(function(){return VI})),n.d(e,"CcvStackedBarChart",(function(){return FI})),n.d(e,"CcvBoxplotChart",(function(){return KI})),n.d(e,"CcvBubbleChart",(function(){return nN})),n.d(e,"CcvBulletChart",(function(){return uN})),n.d(e,"CcvDonutChart",(function(){return dN})),n.d(e,"CcvGaugeChart",(function(){return bN})),n.d(e,"CcvLineChart",(function(){return TN})),n.d(e,"CcvLollipopChart",(function(){return LN})),n.d(e,"CcvPieChart",(function(){return VN})),n.d(e,"CcvScatterChart",(function(){return FN})),n.d(e,"CcvMeterChart",(function(){return KN})),n.d(e,"CcvRadarChart",(function(){return nj})),n.d(e,"CcvComboChart",(function(){return uj})),n.d(e,"CcvTreemapChart",(function(){return dj})),n.d(e,"CcvCirclePackChart",(function(){return bj})),n.d(e,"CcvWordCloudChart",(function(){return Tj}));e["default"]=Cj},"1d8a":function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+r).toString(36)}},"1f5e":function(t,e,n){var r=n("378c"),i=n("b495"),o=n("9a0f"),a=function(t){return function(e,n,a){var s,u=r(e),c=i(u.length),l=o(a,c);if(t&&n!=n){while(c>l)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},2117:function(t,e,n){var r=n("8697");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},2402:function(t,e){e.f=Object.getOwnPropertySymbols},"2a60":function(t,e,n){var r=n("81ef").dispatch,i=Math.PI/180,o=64,a=2048;function s(t){return t.text}function u(){return"serif"}function c(){return"normal"}function l(t){return Math.sqrt(t.value)}function h(){return 30*(~~(6*Math.random())-3)}function f(){return 1}function p(t,e,n,r){if(!e.sprite){var s=t.context,u=t.ratio;s.clearRect(0,0,(o<<5)/u,a/u);var c=0,l=0,h=0,f=n.length;--r;while(++r<f){e=n[r],s.save(),s.font=e.style+" "+e.weight+" "+~~((e.size+1)/u)+"px "+e.font;var p=s.measureText(e.text+"m").width*u,d=e.size<<1;if(e.rotate){var v=Math.sin(e.rotate*i),g=Math.cos(e.rotate*i),m=p*g,y=p*v,_=d*g,b=d*v;p=Math.max(Math.abs(m+b),Math.abs(m-b))+31>>5<<5,d=~~Math.max(Math.abs(y+_),Math.abs(y-_))}else p=p+31>>5<<5;if(d>h&&(h=d),c+p>=o<<5&&(c=0,l+=h,h=0),l+d>=a)break;s.translate((c+(p>>1))/u,(l+(d>>1))/u),e.rotate&&s.rotate(e.rotate*i),s.fillText(e.text,0,0),e.padding&&(s.lineWidth=2*e.padding,s.strokeText(e.text,0,0)),s.restore(),e.width=p,e.height=d,e.xoff=c,e.yoff=l,e.x1=p>>1,e.y1=d>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,c+=p}var O=s.getImageData(0,0,(o<<5)/u,a/u).data,x=[];while(--r>=0)if(e=n[r],e.hasText){p=e.width;for(var w=p>>5,E=(d=e.y1-e.y0,0);E<d*w;E++)x[E]=0;if(c=e.xoff,null==c)return;l=e.yoff;for(var S=0,T=-1,M=0;M<d;M++){for(E=0;E<p;E++){var C=w*M+(E>>5),A=O[(l+M)*(o<<5)+(c+E)<<2]?1<<31-E%32:0;x[C]|=A,S|=A}S?T=M:(e.y0++,d--,M--,l++)}e.y1=e.y0+T,e.sprite=x.slice(0,(e.y1-e.y0)*w)}}}function d(t,e,n){n>>=5;for(var r,i=t.sprite,o=t.width>>5,a=t.x-(o<<4),s=127&a,u=32-s,c=t.y1-t.y0,l=(t.y+t.y0)*n+(a>>5),h=0;h<c;h++){r=0;for(var f=0;f<=o;f++)if((r<<u|(f<o?(r=i[h*o+f])>>>s:0))&e[l+f])return!0;l+=n}return!1}function v(t,e){var n=t[0],r=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function g(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0<e[1].x&&t.y+t.y1>e[0].y&&t.y+t.y0<e[1].y}function m(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function y(t){var e=4,n=e*t[0]/t[1],r=0,i=0;return function(t){var o=t<0?-1:1;switch(Math.sqrt(1+4*o*t)-o&3){case 0:r+=n;break;case 1:i+=e;break;case 2:r-=n;break;default:i-=e;break}return[r,i]}}function _(t){var e=[],n=-1;while(++n<t)e[n]=0;return e}function b(){return document.createElement("canvas")}function O(t){return"function"===typeof t?t:function(){return t}}t.exports=function(){var t=[256,256],e=s,n=u,i=l,y=c,w=c,E=h,S=f,T=m,M=[],C=1/0,A=r("word","end"),P=null,k=Math.random,L={},D=b;function R(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=(o<<5)/e,t.height=a/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}function I(e,n,r){t[0],t[1];var i,o,a,s=n.x,u=n.y,c=Math.sqrt(t[0]*t[0]+t[1]*t[1]),l=T(t),h=k()<.5?1:-1,f=-h;while(i=l(f+=h)){if(o=~~i[0],a=~~i[1],Math.min(Math.abs(o),Math.abs(a))>=c)break;if(n.x=s+o,n.y=u+a,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1])&&(!r||!d(n,e,t[0]))&&(!r||g(n,r))){for(var p,v=n.sprite,m=n.width>>5,y=t[0]>>5,_=n.x-(m<<4),b=127&_,O=32-b,x=n.y1-n.y0,w=(n.y+n.y0)*y+(_>>5),E=0;E<x;E++){p=0;for(var S=0;S<=m;S++)e[w+S]|=p<<O|(S<m?(p=v[E*m+S])>>>b:0);w+=y}return delete n.sprite,!0}}return!1}return L.canvas=function(t){return arguments.length?(D=O(t),L):D},L.start=function(){var r=R(D()),o=_((t[0]>>5)*t[1]),a=null,s=M.length,u=-1,c=[],l=M.map((function(t,r){return t.text=e.call(this,t,r),t.font=n.call(this,t,r),t.style=y.call(this,t,r),t.weight=w.call(this,t,r),t.rotate=E.call(this,t,r),t.size=~~i.call(this,t,r),t.padding=S.call(this,t,r),t})).sort((function(t,e){return e.size-t.size}));return P&&clearInterval(P),P=setInterval(h,0),h(),L;function h(){var e=Date.now();while(Date.now()-e<C&&++u<s&&P){var n=l[u];n.x=t[0]*(k()+.5)>>1,n.y=t[1]*(k()+.5)>>1,p(r,n,l,u),n.hasText&&I(o,n,a)&&(c.push(n),A.call("word",L,n),a?v(a,n):a=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}u>=s&&(L.stop(),A.call("end",L,c,a))}},L.stop=function(){return P&&(clearInterval(P),P=null),L},L.timeInterval=function(t){return arguments.length?(C=null==t?1/0:t,L):C},L.words=function(t){return arguments.length?(M=t,L):M},L.size=function(e){return arguments.length?(t=[+e[0],+e[1]],L):t},L.font=function(t){return arguments.length?(n=O(t),L):n},L.fontStyle=function(t){return arguments.length?(y=O(t),L):y},L.fontWeight=function(t){return arguments.length?(w=O(t),L):w},L.rotate=function(t){return arguments.length?(E=O(t),L):E},L.text=function(t){return arguments.length?(e=O(t),L):e},L.spiral=function(t){return arguments.length?(T=x[t]||t,L):T},L.fontSize=function(t){return arguments.length?(i=O(t),L):i},L.padding=function(t){return arguments.length?(S=O(t),L):S},L.random=function(t){return arguments.length?(k=t,L):k},L.on=function(){var t=A.on.apply(A,arguments);return t===A?L:t},L};var x={archimedean:m,rectangular:y}},"2da1":function(t,e,n){"use strict";(function(t){var n=function(){if("undefined"!==typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}var n={size:{configurable:!0}};return n.size.get=function(){return this.__entries__.length},e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){var n=this;void 0===e&&(e=null);for(var r=0,i=n.__entries__;r<i.length;r+=1){var o=i[r];t.call(e,o[1],o[0])}},Object.defineProperties(e.prototype,n),e}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i=function(){return"undefined"!==typeof t&&t.Math===Math?t:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),o=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)}}(),a=2,s=function(t,e){var n=!1,r=!1,i=0;function s(){n&&(n=!1,t()),r&&c()}function u(){o(s)}function c(){var t=Date.now();if(n){if(t-i<a)return;r=!0}else n=!0,r=!1,setTimeout(u,e);i=t}return c},u=20,c=["top","right","bottom","left","width","height","size","weight"],l="undefined"!==typeof MutationObserver,h=function(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=s(this.refresh.bind(this),u)};h.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},h.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},h.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},h.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},h.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},h.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},h.prototype.onTransitionEnd_=function(t){var e=t.propertyName;void 0===e&&(e="");var n=c.some((function(t){return!!~e.indexOf(t)}));n&&this.refresh()},h.getInstance=function(){return this.instance_||(this.instance_=new h),this.instance_},h.instance_=null;var f=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n+=1){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},p=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||i},d=E(0,0,0,0);function v(t){return parseFloat(t)||0}function g(t){var e=[],n=arguments.length-1;while(n-- >0)e[n]=arguments[n+1];return e.reduce((function(e,n){var r=t["border-"+n+"-width"];return e+v(r)}),0)}function m(t){for(var e=["top","right","bottom","left"],n={},r=0,i=e;r<i.length;r+=1){var o=i[r],a=t["padding-"+o];n[o]=v(a)}return n}function y(t){var e=t.getBBox();return E(0,0,e.width,e.height)}function _(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return d;var r=p(t).getComputedStyle(t),i=m(r),o=i.left+i.right,a=i.top+i.bottom,s=v(r.width),u=v(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==e&&(s-=g(r,"left","right")+o),Math.round(u+a)!==n&&(u-=g(r,"top","bottom")+a)),!O(t)){var c=Math.round(s+o)-e,l=Math.round(u+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(l)&&(u-=l)}return E(i.left,i.top,s,u)}var b=function(){return"undefined"!==typeof SVGGraphicsElement?function(t){return t instanceof p(t).SVGGraphicsElement}:function(t){return t instanceof p(t).SVGElement&&"function"===typeof t.getBBox}}();function O(t){return t===p(t).document.documentElement}function x(t){return r?b(t)?y(t):_(t):d}function w(t){var e=t.x,n=t.y,r=t.width,i=t.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return f(a,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),a}function E(t,e,n,r){return{x:t,y:e,width:n,height:r}}var S=function(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=E(0,0,0,0),this.target=t};S.prototype.isActive=function(){var t=x(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},S.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t};var T=function(t,e){var n=w(e);f(this,{target:t,contentRect:n})},M=function(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r};M.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof p(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new S(t)),this.controller_.addObserver(this),this.controller_.refresh())}},M.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof p(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},M.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},M.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},M.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new T(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},M.prototype.clearActive=function(){this.activeObservations_.splice(0)},M.prototype.hasActive=function(){return this.activeObservations_.length>0};var C="undefined"!==typeof WeakMap?new WeakMap:new n,A=function(t){if(!(this instanceof A))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=h.getInstance(),n=new M(t,e,this);C.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){A.prototype[t]=function(){return(e=C.get(this))[t].apply(e,arguments);var e}}));var P=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:A}();e["a"]=P}).call(this,n("7d15"))},"2df4":function(t,e,n){"use strict";var r=n("6b1d"),i=n("2e3f"),o=n("0e39"),a=n("c1a2"),s=n("fa46"),u=n("5b12"),c=n("b8ba"),l=n("7d53"),h=n("0e93"),f=n("5bb7"),p=n("ff89"),d=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,g=l("iterator"),m="keys",y="values",_="entries",b=function(){return this};t.exports=function(t,e,n,l,p,O,x){i(n,e,l);var w,E,S,T=function(t){if(t===p&&k)return k;if(!v&&t in A)return A[t];switch(t){case m:return function(){return new n(this,t)};case y:return function(){return new n(this,t)};case _:return function(){return new n(this,t)}}return function(){return new n(this)}},M=e+" Iterator",C=!1,A=t.prototype,P=A[g]||A["@@iterator"]||p&&A[p],k=!v&&P||T(p),L="Array"==e&&A.entries||P;if(L&&(w=o(L.call(new t)),d!==Object.prototype&&w.next&&(h||o(w)===d||(a?a(w,d):"function"!=typeof w[g]&&u(w,g,b)),s(w,M,!0,!0),h&&(f[M]=b))),p==y&&P&&P.name!==y&&(C=!0,k=function(){return P.call(this)}),h&&!x||A[g]===k||u(A,g,k),f[e]=k,p)if(E={values:T(y),keys:O?k:T(m),entries:T(_)},x)for(S in E)!v&&!C&&S in A||c(A,S,E[S]);else r({target:e,proto:!0,forced:v||C},E);return E}},"2e3f":function(t,e,n){"use strict";var r=n("ff89").IteratorPrototype,i=n("82e8"),o=n("9618"),a=n("fa46"),s=n("5bb7"),u=function(){return this};t.exports=function(t,e,n){var c=e+" Iterator";return t.prototype=i(r,{next:o(1,n)}),a(t,c,!1,!0),s[c]=u,t}},"332c":function(t,e,n){var r=n("4cdd"),i=n("1d8a"),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},3606:function(t,e,n){"use strict";function r(t){return function(e,n){var r=String(e),a=n||{},s=a.width,u=s&&t.matchPatterns[s]||t.matchPatterns[t.defaultMatchWidth],c=r.match(u);if(!c)return null;var l,h=c[0],f=s&&t.parsePatterns[s]||t.parsePatterns[t.defaultParseWidth];return l="[object Array]"===Object.prototype.toString.call(f)?o(f,(function(t){return t.test(r)})):i(f,(function(t){return t.test(r)})),l=t.valueCallback?t.valueCallback(l):l,l=a.valueCallback?a.valueCallback(l):l,{value:l,rest:r.slice(h.length)}}}function i(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function o(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},"378c":function(t,e,n){var r=n("83a6"),i=n("730c");t.exports=function(t){return r(i(t))}},"37d1":function(t,e,n){var r=n("730c");t.exports=function(t){return Object(r(t))}},"398c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("910f"));function i(t){return t&&t.__esModule?t:{default:t}}var o={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},a={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},s={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},u={date:(0,r.default)({formats:o,defaultWidth:"full"}),time:(0,r.default)({formats:a,defaultWidth:"full"}),dateTime:(0,r.default)({formats:s,defaultWidth:"full"})},c=u;e.default=c,t.exports=e.default},"39ba":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=u(n("b128")),i=u(n("398c")),o=u(n("5cac")),a=u(n("7b70")),s=u(n("c9c9"));function u(t){return t&&t.__esModule?t:{default:t}}var c={code:"en-US",formatDistance:r.default,formatLong:i.default,formatRelative:o.default,localize:a.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},l=c;e.default=l,t.exports=e.default},"3cec":function(t,e,n){var r=n("7d53"),i=r("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"3e32":function(t,e,n){var r=n("7d53"),i=r("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,"/./"[t](e)}catch(r){}}return!1}},"3e34":function(t,e,n){var r=n("f498"),i=n("5b12");t.exports=function(t,e){try{i(r,t,e)}catch(n){r[t]=e}return e}},"3e36":function(t,e,n){var r=n("f498");t.exports=r},4141:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},"4cdd":function(t,e,n){var r=n("0e93"),i=n("c607");(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.4",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"4cf0":function(t,e,n){"use strict";(function(t){var r=n("7f0d"),i=n("5711"),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o,u=s?r["a"].Buffer:void 0,c=u?u.isBuffer:void 0,l=c||i["a"];e["a"]=l}).call(this,n("7326")(t))},"4db4":function(t,e,n){var r=n("e7a0");t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},"4e41":function(t,e,n){var r=n("7d53");e.f=r},5268:function(t,e,n){"use strict";var r=n("3cec"),i=n("da06");t.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},5428:function(t,e,n){var r=n("3e36"),i=n("f498"),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(i[t]):r[t]&&r[t][e]||i[t]&&i[t][e]}},5711:function(t,e,n){"use strict";function r(){return!1}e["a"]=r},"5ae7":function(t,e,n){"use strict";function r(t){return function(e,n){var r=String(e),i=n||{},o=r.match(t.matchPattern);if(!o)return null;var a=o[0],s=r.match(t.parsePattern);if(!s)return null;var u=t.valueCallback?t.valueCallback(s[0]):s[0];return u=i.valueCallback?i.valueCallback(u):u,{value:u,rest:r.slice(a.length)}}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},"5b12":function(t,e,n){var r=n("d4cb"),i=n("abdf"),o=n("9618");t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},"5bb7":function(t,e){t.exports={}},"5cac":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function i(t,e,n,i){return r[t]}t.exports=e.default},"65d0":function(t,e,n){var r=n("c91c"),i=n("b17e"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"68b8":function(t,e,n){var r=n("6a89");r("iterator")},"6a61":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"6a86":function(t,e,n){var r=n("7526"),i=n("c6de"),o=n("7d53"),a=o("species");t.exports=function(t,e){var n;return i(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!i(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"6a89":function(t,e,n){var r=n("3e36"),i=n("f1a7"),o=n("4e41"),a=n("abdf").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},"6b1d":function(t,e,n){var r=n("f498"),i=n("185a").f,o=n("5b12"),a=n("b8ba"),s=n("3e34"),u=n("b634"),c=n("ebac");t.exports=function(t,e){var n,l,h,f,p,d,v=t.target,g=t.global,m=t.stat;if(l=g?r:m?r[v]||s(v,{}):(r[v]||{}).prototype,l)for(h in e){if(p=e[h],t.noTargetGet?(d=i(l,h),f=d&&d.value):f=l[h],n=c(g?h:v+(m?".":"#")+h,t.forced),!n&&void 0!==f){if(typeof p===typeof f)continue;u(p,f)}(t.sham||f&&f.sham)&&o(p,"sham",!0),a(l,h,p,t)}}},7297:function(t,e,n){var r=n("f498"),i=n("df6f"),o=r.WeakMap;t.exports="function"===typeof o&&/native code/.test(i(o))},"72df":function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},"730c":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},7326:function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},7526:function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},"7b70":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("b489"));function i(t){return t&&t.__esModule?t:{default:t}}var o={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},a={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},s={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},u={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},l={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}};function h(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"}var f={ordinalNumber:h,era:(0,r.default)({values:o,defaultWidth:"wide"}),quarter:(0,r.default)({values:a,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:(0,r.default)({values:s,defaultWidth:"wide"}),day:(0,r.default)({values:u,defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:c,defaultWidth:"wide",formattingValues:l,defaultFormattingWidth:"wide"})},p=f;e.default=p,t.exports=e.default},"7c3f":function(t,e,n){var r=n("d4cb"),i=n("72df"),o=n("f2bf");t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"7d15":function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},"7d53":function(t,e,n){var r=n("f498"),i=n("4cdd"),o=n("f1a7"),a=n("1d8a"),s=n("e7a0"),u=n("4db4"),c=i("wks"),l=r.Symbol,h=u?l:l&&l.withoutSetter||a;t.exports=function(t){return o(c,t)||(s&&o(l,t)?c[t]=l[t]:c[t]=h("Symbol."+t)),c[t]}},"7f0d":function(t,e,n){"use strict";var r=n("92ae"),i="object"==typeof self&&self&&self.Object===Object&&self,o=r["a"]||i||Function("return this")();e["a"]=o},"802e":function(t,e,n){var r=n("72df");t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},"81ef":function(t,e,n){"use strict";n.r(e);var r=n("cf43");n.d(e,"dispatch",(function(){return r["a"]}))},"82e8":function(t,e,n){var r,i=n("157c"),o=n("b99b"),a=n("b17e"),s=n("d687"),u=n("9324"),c=n("f2bf"),l=n("332c"),h=">",f="<",p="prototype",d="script",v=l("IE_PROTO"),g=function(){},m=function(t){return f+d+h+t+f+"/"+d+h},y=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},_=function(){var t,e=c("iframe"),n="java"+d+":";return e.style.display="none",u.appendChild(e),e.src=String(n),t=e.contentWindow.document,t.open(),t.write(m("document.F=Object")),t.close(),t.F},b=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}b=r?y(r):_();var t=a.length;while(t--)delete b[p][a[t]];return b()};s[v]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(g[p]=i(t),n=new g,g[p]=null,n[v]=t):n=b(),void 0===e?n:o(n,e)}},"83a6":function(t,e,n){var r=n("72df"),i=n("6a61"),o="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},"868d":function(t,e,n){var r=n("d4cb"),i=n("abdf").f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/,u="name";!r||u in o||i(o,u,{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(t){return""}}})},8697:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"8bb2":function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},"8d0d":function(t,e,n){"use strict";var r=n("6b1d"),i=n("1f5e").includes,o=n("ed2b"),a=n("ce71"),s=a("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!s},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},"8d0f":function(t,e,n){"use strict";var r=n("6b1d"),i=n("d4cb"),o=n("f498"),a=n("f1a7"),s=n("7526"),u=n("abdf").f,c=n("b634"),l=o.Symbol;if(i&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var h={},f=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof f?new l(t):void 0===t?l():l(t);return""===t&&(h[e]=!0),e};c(f,l);var p=f.prototype=l.prototype;p.constructor=f;var d=p.toString,v="Symbol(test)"==String(l("test")),g=/^Symbol\((.*)\)[^)]+$/;u(p,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=d.call(t);if(a(h,t))return"";var n=v?e.slice(7,-1):e.replace(g,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}},"8e5d":function(t,e,n){var r=n("7526"),i=n("6a61"),o=n("7d53"),a=o("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==i(t))}},"910f":function(t,e,n){"use strict";function r(t){return function(e){var n=e||{},r=n.width?String(n.width):t.defaultWidth,i=t.formats[r]||t.formats[t.defaultWidth];return i}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},"918c":function(t,e,n){var r=n("f498"),i=n("130d"),o=n("9531"),a=n("5b12"),s=n("7d53"),u=s("iterator"),c=s("toStringTag"),l=o.values;for(var h in i){var f=r[h],p=f&&f.prototype;if(p){if(p[u]!==l)try{a(p,u,l)}catch(v){p[u]=l}if(p[c]||a(p,c,h),i[h])for(var d in o)if(p[d]!==o[d])try{a(p,d,o[d])}catch(v){p[d]=o[d]}}}},"92ae":function(t,e,n){"use strict";(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e["a"]=n}).call(this,n("7d15"))},9324:function(t,e,n){var r=n("5428");t.exports=r("document","documentElement")},9531:function(t,e,n){"use strict";var r=n("378c"),i=n("ed2b"),o=n("5bb7"),a=n("cdcd"),s=n("2df4"),u="Array Iterator",c=a.set,l=a.getterFor(u);t.exports=s(Array,"Array",(function(t,e){c(this,{type:u,target:r(t),index:0,kind:e})}),(function(){var t=l(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},9618:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"9a0f":function(t,e,n){var r=n("8bb2"),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},"9eea":function(t,e,n){var r=n("8e5d");t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},a03e:function(t,e,n){var r=n("5428"),i=n("65d0"),o=n("2402"),a=n("157c");t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?e.concat(n(t)):e}},abdf:function(t,e,n){var r=n("d4cb"),i=n("7c3f"),o=n("157c"),a=n("083f"),s=Object.defineProperty;e.f=r?s:function(t,e,n){if(o(t),e=a(e,!0),o(n),i)try{return s(t,e,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},b128:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function i(t,e,n){var i;return n=n||{},i="string"===typeof r[t]?r[t]:1===e?r[t].one:r[t].other.replace("{{count}}",e),n.addSuffix?n.comparison>0?"in "+i:i+" ago":i}t.exports=e.default},b17e:function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},b489:function(t,e,n){"use strict";function r(t){return function(e,n){var r,i=n||{},o=i.context?String(i.context):"standalone";if("formatting"===o&&t.formattingValues){var a=t.defaultFormattingWidth||t.defaultWidth,s=i.width?String(i.width):a;r=t.formattingValues[s]||t.formattingValues[a]}else{var u=t.defaultWidth,c=i.width?String(i.width):t.defaultWidth;r=t.values[c]||t.values[u]}var l=t.argumentCallback?t.argumentCallback(e):e;return r[l]}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r,t.exports=e.default},b495:function(t,e,n){var r=n("8bb2"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},b634:function(t,e,n){var r=n("f1a7"),i=n("a03e"),o=n("185a"),a=n("abdf");t.exports=function(t,e){for(var n=i(e),s=a.f,u=o.f,c=0;c<n.length;c++){var l=n[c];r(t,l)||s(t,l,u(e,l))}}},b7fb:function(t,e,n){var r=n("8bb2"),i=n("730c"),o=function(t){return function(e,n){var o,a,s=String(i(e)),u=r(n),c=s.length;return u<0||u>=c?t?"":void 0:(o=s.charCodeAt(u),o<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?t?s.charAt(u):o:t?s.slice(u,u+2):a-56320+(o-55296<<10)+65536)}};t.exports={codeAt:o(!1),charAt:o(!0)}},b8ba:function(t,e,n){var r=n("f498"),i=n("5b12"),o=n("f1a7"),a=n("3e34"),s=n("df6f"),u=n("cdcd"),c=u.get,l=u.enforce,h=String(String).split("String");(t.exports=function(t,e,n,s){var u=!!s&&!!s.unsafe,c=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof e||o(n,"name")||i(n,"name",e),l(n).source=h.join("string"==typeof e?e:"")),t!==r?(u?!f&&t[e]&&(c=!0):delete t[e],c?t[e]=n:i(t,e,n)):c?t[e]=n:a(e,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},b99b:function(t,e,n){var r=n("d4cb"),i=n("abdf"),o=n("157c"),a=n("0c47");t.exports=r?Object.defineProperties:function(t,e){o(t);var n,r=a(e),s=r.length,u=0;while(s>u)i.f(t,n=r[u++],e[n]);return t}},c1a2:function(t,e,n){var r=n("157c"),i=n("f3e4");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,t.call(n,[]),e=n instanceof Array}catch(o){}return function(n,o){return r(n),i(o),e?t.call(n,o):n.__proto__=o,n}}():void 0)},c607:function(t,e,n){var r=n("f498"),i=n("3e34"),o="__core-js_shared__",a=r[o]||i(o,{});t.exports=a},c6de:function(t,e,n){var r=n("6a61");t.exports=Array.isArray||function(t){return"Array"==r(t)}},c78b:function(t,e,n){"use strict";var r=n("6b1d"),i=n("9eea"),o=n("730c"),a=n("3e32");r({target:"String",proto:!0,forced:!a("includes")},{includes:function(t){return!!~String(o(this)).indexOf(i(t),arguments.length>1?arguments[1]:void 0)}})},c91c:function(t,e,n){var r=n("f1a7"),i=n("378c"),o=n("1f5e").indexOf,a=n("d687");t.exports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)!r(a,n)&&r(s,n)&&c.push(n);while(e.length>u)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},c9c9:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("5ae7")),i=o(n("3606"));function o(t){return t&&t.__esModule?t:{default:t}}var a=/^(\d+)(th|st|nd|rd)?/i,s=/\d+/i,u={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},c={any:[/^b/i,/^(a|c)/i]},l={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},h={any:[/1/i,/2/i,/3/i,/4/i]},f={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},p={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},d={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},v={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},m={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},y={ordinalNumber:(0,r.default)({matchPattern:a,parsePattern:s,valueCallback:function(t){return parseInt(t,10)}}),era:(0,i.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any"}),quarter:(0,i.default)({matchPatterns:l,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:(0,i.default)({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any"}),day:(0,i.default)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:v,defaultParseWidth:"any"}),dayPeriod:(0,i.default)({matchPatterns:g,defaultMatchWidth:"any",parsePatterns:m,defaultParseWidth:"any"})},_=y;e.default=_,t.exports=e.default},cdcd:function(t,e,n){var r,i,o,a=n("7297"),s=n("f498"),u=n("7526"),c=n("5b12"),l=n("f1a7"),h=n("332c"),f=n("d687"),p=s.WeakMap,d=function(t){return o(t)?i(t):r(t,{})},v=function(t){return function(e){var n;if(!u(e)||(n=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}};if(a){var g=new p,m=g.get,y=g.has,_=g.set;r=function(t,e){return _.call(g,t,e),e},i=function(t){return m.call(g,t)||{}},o=function(t){return y.call(g,t)}}else{var b=h("state");f[b]=!0,r=function(t,e){return c(t,b,e),e},i=function(t){return l(t,b)?t[b]:{}},o=function(t){return l(t,b)}}t.exports={set:r,get:i,has:o,enforce:d,getterFor:v}},ce71:function(t,e,n){var r=n("d4cb"),i=n("72df"),o=n("f1a7"),a=Object.defineProperty,s={},u=function(t){throw t};t.exports=function(t,e){if(o(s,t))return s[t];e||(e={});var n=[][t],c=!!o(e,"ACCESSORS")&&e.ACCESSORS,l=o(e,0)?e[0]:u,h=o(e,1)?e[1]:void 0;return s[t]=!!n&&!i((function(){if(c&&!r)return!0;var t={length:-1};c?a(t,1,{enumerable:!0,get:u}):t[1]=1,n.call(t,l,h)}))}},cf43:function(t,e,n){"use strict";var r={value:function(){}};function i(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new o(r)}function o(t){this._=t}function a(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function s(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function u(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=r,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}o.prototype=i.prototype={constructor:o,on:function(t,e){var n,r=this._,i=a(t+"",r),o=-1,c=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!==typeof e)throw new Error("invalid callback: "+e);while(++o<c)if(n=(t=i[o]).type)r[n]=u(r[n],t.name,e);else if(null==e)for(n in r)r[n]=u(r[n],t.name,null);return this}while(++o<c)if((n=(t=i[o]).type)&&(n=s(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new o(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(r=this._[t],o=0,n=r.length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}},e["a"]=i},d054:function(t,e,n){var r=n("2117"),i=n("83a6"),o=n("37d1"),a=n("b495"),s=n("6a86"),u=[].push,c=function(t){var e=1==t,n=2==t,c=3==t,l=4==t,h=6==t,f=5==t||h;return function(p,d,v,g){for(var m,y,_=o(p),b=i(_),O=r(d,v,3),x=a(b.length),w=0,E=g||s,S=e?E(p,x):n?E(p,0):void 0;x>w;w++)if((f||w in b)&&(m=b[w],y=O(m,w,_),t))if(e)S[w]=y;else if(y)switch(t){case 3:return!0;case 5:return m;case 6:return w;case 2:u.call(S,m)}else if(l)return!1;return h?-1:c||l?l:S}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},d4cb:function(t,e,n){var r=n("72df");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},d687:function(t,e){t.exports={}},d6de:function(t,e,n){"use strict";var r=n("6b1d"),i=n("f498"),o=n("5428"),a=n("0e93"),s=n("d4cb"),u=n("e7a0"),c=n("4db4"),l=n("72df"),h=n("f1a7"),f=n("c6de"),p=n("7526"),d=n("157c"),v=n("37d1"),g=n("378c"),m=n("083f"),y=n("9618"),_=n("82e8"),b=n("0c47"),O=n("65d0"),x=n("ee58"),w=n("2402"),E=n("185a"),S=n("abdf"),T=n("e129"),M=n("5b12"),C=n("b8ba"),A=n("4cdd"),P=n("332c"),k=n("d687"),L=n("1d8a"),D=n("7d53"),R=n("4e41"),I=n("6a89"),N=n("fa46"),j=n("cdcd"),V=n("d054").forEach,B=P("hidden"),G="Symbol",U="prototype",H=D("toPrimitive"),z=j.set,F=j.getterFor(G),W=Object[U],q=i.Symbol,Y=o("JSON","stringify"),Z=E.f,X=S.f,K=x.f,$=T.f,Q=A("symbols"),J=A("op-symbols"),tt=A("string-to-symbol-registry"),et=A("symbol-to-string-registry"),nt=A("wks"),rt=i.QObject,it=!rt||!rt[U]||!rt[U].findChild,ot=s&&l((function(){return 7!=_(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Z(W,e);r&&delete W[e],X(t,e,n),r&&t!==W&&X(W,e,r)}:X,at=function(t,e){var n=Q[t]=_(q[U]);return z(n,{type:G,tag:t,description:e}),s||(n.description=e),n},st=c?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof q},ut=function(t,e,n){t===W&&ut(J,e,n),d(t);var r=m(e,!0);return d(n),h(Q,r)?(n.enumerable?(h(t,B)&&t[B][r]&&(t[B][r]=!1),n=_(n,{enumerable:y(0,!1)})):(h(t,B)||X(t,B,y(1,{})),t[B][r]=!0),ot(t,r,n)):X(t,r,n)},ct=function(t,e){d(t);var n=g(e),r=b(n).concat(dt(n));return V(r,(function(e){s&&!ht.call(n,e)||ut(t,e,n[e])})),t},lt=function(t,e){return void 0===e?_(t):ct(_(t),e)},ht=function(t){var e=m(t,!0),n=$.call(this,e);return!(this===W&&h(Q,e)&&!h(J,e))&&(!(n||!h(this,e)||!h(Q,e)||h(this,B)&&this[B][e])||n)},ft=function(t,e){var n=g(t),r=m(e,!0);if(n!==W||!h(Q,r)||h(J,r)){var i=Z(n,r);return!i||!h(Q,r)||h(n,B)&&n[B][r]||(i.enumerable=!0),i}},pt=function(t){var e=K(g(t)),n=[];return V(e,(function(t){h(Q,t)||h(k,t)||n.push(t)})),n},dt=function(t){var e=t===W,n=K(e?J:g(t)),r=[];return V(n,(function(t){!h(Q,t)||e&&!h(W,t)||r.push(Q[t])})),r};if(u||(q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=L(t),n=function(t){this===W&&n.call(J,t),h(this,B)&&h(this[B],e)&&(this[B][e]=!1),ot(this,e,y(1,t))};return s&&it&&ot(W,e,{configurable:!0,set:n}),at(e,t)},C(q[U],"toString",(function(){return F(this).tag})),C(q,"withoutSetter",(function(t){return at(L(t),t)})),T.f=ht,S.f=ut,E.f=ft,O.f=x.f=pt,w.f=dt,R.f=function(t){return at(D(t),t)},s&&(X(q[U],"description",{configurable:!0,get:function(){return F(this).description}}),a||C(W,"propertyIsEnumerable",ht,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),V(b(nt),(function(t){I(t)})),r({target:G,stat:!0,forced:!u},{for:function(t){var e=String(t);if(h(tt,e))return tt[e];var n=q(e);return tt[e]=n,et[n]=e,n},keyFor:function(t){if(!st(t))throw TypeError(t+" is not a symbol");if(h(et,t))return et[t]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!s},{create:lt,defineProperty:ut,defineProperties:ct,getOwnPropertyDescriptor:ft}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:pt,getOwnPropertySymbols:dt}),r({target:"Object",stat:!0,forced:l((function(){w.f(1)}))},{getOwnPropertySymbols:function(t){return w.f(v(t))}}),Y){var vt=!u||l((function(){var t=q();return"[null]"!=Y([t])||"{}"!=Y({a:t})||"{}"!=Y(Object(t))}));r({target:"JSON",stat:!0,forced:vt},{stringify:function(t,e,n){var r,i=[t],o=1;while(arguments.length>o)i.push(arguments[o++]);if(r=e,(p(e)||void 0!==t)&&!st(t))return f(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!st(e))return e}),i[1]=e,Y.apply(null,i)}})}q[U][H]||M(q[U],H,q[U].valueOf),N(q,G),k[B]=!0},d6f0:function(t,e,n){"use strict";(function(t){var r=n("7f0d"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i,s=a?r["a"].Buffer:void 0,u=s?s.allocUnsafe:void 0;function c(t,e){if(e)return t.slice();var n=t.length,r=u?u(n):new t.constructor(n);return t.copy(r),r}e["a"]=c}).call(this,n("7326")(t))},da06:function(t,e,n){var r=n("3cec"),i=n("6a61"),o=n("7d53"),a=o("toStringTag"),s="Arguments"==i(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(n){}};t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=Object(t),a))?n:s?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},df6f:function(t,e,n){var r=n("c607"),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(t){return i.call(t)}),t.exports=r.inspectSource},e129:function(t,e,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:r},e7a0:function(t,e,n){var r=n("72df");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},ebac:function(t,e,n){var r=n("72df"),i=/#|\.prototype\./,o=function(t,e){var n=s[a(t)];return n==c||n!=u&&("function"==typeof e?r(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},ed2b:function(t,e,n){var r=n("7d53"),i=n("82e8"),o=n("abdf"),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},ee58:function(t,e,n){var r=n("378c"),i=n("65d0").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},ef1f:function(t,e,n){var r=n("3cec"),i=n("b8ba"),o=n("5268");r||i(Object.prototype,"toString",o,{unsafe:!0})},f1a7:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},f2bf:function(t,e,n){var r=n("f498"),i=n("7526"),o=r.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},f3b8:function(t,e,n){"use strict";var r=n("b7fb").charAt,i=n("cdcd"),o=n("2df4"),a="String Iterator",s=i.set,u=i.getterFor(a);o(String,"String",(function(t){s(this,{type:a,string:String(t),index:0})}),(function(){var t,e=u(this),n=e.string,i=e.index;return i>=n.length?{value:void 0,done:!0}:(t=r(n,i),e.index+=t.length,{value:t,done:!1})}))},f3e4:function(t,e,n){var r=n("7526");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},f498:function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||Function("return this")()}).call(this,n("7d15"))},fa46:function(t,e,n){var r=n("abdf").f,i=n("f1a7"),o=n("7d53"),a=o("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,a)&&r(t,a,{configurable:!0,value:e})}},ff89:function(t,e,n){"use strict";var r,i,o,a=n("0e39"),s=n("5b12"),u=n("f1a7"),c=n("7d53"),l=n("0e93"),h=c("iterator"),f=!1,p=function(){return this};[].keys&&(o=[].keys(),"next"in o?(i=a(a(o)),i!==Object.prototype&&(r=i)):f=!0),void 0==r&&(r={}),l||u(r,h)||s(r,h,p),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}}})}));
2
2
  //# sourceMappingURL=charts-vue.umd.min.js.map