@carbon/charts-vue 0.32.9 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -17
- package/charts-vue.common.js +481 -228
- package/charts-vue.common.js.map +1 -1
- package/charts-vue.umd.js +481 -228
- package/charts-vue.umd.js.map +1 -1
- package/charts-vue.umd.min.js +1 -1
- package/charts-vue.umd.min.js.map +1 -1
- package/package.json +2 -2
package/charts-vue.umd.min.js
CHANGED
|
@@ -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,i={};(n.r(i),n.d(i,"Chart",(function(){return a})),n.d(i,"Model",(function(){return s})),n.d(i,"Axis",(function(){return u})),n.d(i,"Area",(function(){return c})),n.d(i,"Pie",(function(){return l})),n.d(i,"Gauge",(function(){return h})),n.d(i,"Bar",(function(){return f})),n.d(i,"Scatter",(function(){return p})),n.d(i,"Line",(function(){return d})),n.d(i,"Radar",(function(){return v})),n.d(i,"Tooltip",(function(){return g})),n.d(i,"Threshold",(function(){return y})),n.d(i,"Legend",(function(){return m})),"undefined"!==typeof window)&&(n("4141"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));n("d6de"),n("8d0f"),n("68b8"),n("8d0d"),n("9531"),n("868d"),n("ef1f"),n("c78b"),n("f3b8"),n("918c");var o,a,s,u,c,l,h,f,p,d,v,g,y,m,_=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-area-chart"})},b=[];(function(t){t["GRAPHICS_DOCUMENT"]="graphics-document",t["GRAPHICS_OBJECT"]="graphics-object",t["GRAPHICS_SYMBOL"]="graphics-symbol",t["GROUP"]="group"})(o||(o={})),function(t){t["RENDER_FINISHED"]="render-finished",t["RESIZE"]="chart-resize",t["MOUSEOVER"]="chart-mouseover",t["MOUSEOUT"]="chart-mouseout"}(a||(a={})),function(t){t["UPDATE"]="model-update"}(s||(s={})),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"}(u||(u={})),function(t){t["AREA_MOUSEOVER"]="area-mouseover",t["AREA_MOUSEMOVE"]="area-mousemove",t["AREA_CLICK"]="area-click",t["AREA_MOUSEOUT"]="area-mouseout"}(c||(c={})),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"}(l||(l={})),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"}(h||(h={})),function(t){t["BAR_MOUSEOVER"]="bar-mouseover",t["BAR_MOUSEMOVE"]="bar-mousemove",t["BAR_CLICK"]="bar-click",t["BAR_MOUSEOUT"]="bar-mouseout"}(f||(f={})),function(t){t["SCATTER_MOUSEOVER"]="scatter-mouseover",t["SCATTER_MOUSEMOVE"]="scatter-mousemove",t["SCATTER_CLICK"]="scatter-click",t["SCATTER_MOUSEOUT"]="scatter-mouseout"}(p||(p={})),function(t){t["POINT_MOUSEOVER"]="scatter-mouseover",t["POINT_MOUSEMOVE"]="scatter-mousemove",t["POINT_CLICK"]="scatter-click",t["POINT_MOUSEOUT"]="scatter-mouseout"}(d||(d={})),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"}(v||(v={})),function(t){t["SHOW"]="show-tooltip",t["HIDE"]="hide-tooltip"}(g||(g={})),function(t){t["SHOW"]="show-threshold",t["HIDE"]="hide-threshold"}(y||(y={})),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"}(m||(m={}));var w,x,O,T,S,E,M,A,P,C,k,L,D,R,j,I,U,N=i;function H(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}(function(t){t["DEFAULT"]="default",t["G100"]="g100",t["G90"]="g90",t["G10"]="g10"})(w||(w={})),function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"}(x||(x={})),function(t){t["VERTICAL"]="vertical",t["HORIZONTAL"]="horizontal"}(O||(O={})),function(t){t["TIME"]="time",t["LINEAR"]="linear",t["LOG"]="log",t["LABELS"]="labels"}(T||(T={})),function(t){t["MOUSE"]="mouse",t["TOP"]="top",t["BOTTOM"]="bottom"}(S||(S={})),function(t){t["DATAPOINT"]="datapoint",t["GRIDLINE"]="gridline",t["TITLE"]="title"}(E||(E={})),function(t){t["RIGHT"]="right",t["LEFT"]="left",t["TOP"]="top",t["BOTTOM"]="bottom"}(M||(M={})),function(t){t["HORIZONTAL"]="horizontal",t["VERTICAL"]="vertical"}(A||(A={})),function(t){t["ROW"]="row",t["COLUMN"]="column",t["ROW_REVERSE"]="row-reverse",t["COLUMN_REVERSE"]="column-reverse"}(P||(P={})),function(t){t["FIXED"]="fixed",t["PREFERRED"]="preferred",t["STRETCH"]="stretch"}(C||(C={})),function(t){t["LEFT"]="left",t["RIGHT"]="right"}(k||(k={})),function(t){t["GRID"]="grid",t["VERT_OR_HORIZ"]="vertOrHoriz",t["PIE"]="pie",t["DONUT"]="donut"}(L||(L={})),function(t){t["START"]="start",t["MIDDLE"]="middle",t["END"]="end"}(D||(D={})),function(t){t["BASELINE"]="baseline",t["MIDDLE"]="middle",t["HANGING"]="hanging"}(R||(R={})),function(t){t["SEMI"]="semi",t["FULL"]="full"}(j||(j={})),function(t){t["UP"]="up",t["DOWN"]="down"}(I||(I={})),function(t){t["SUCCESS"]="success",t["WARNING"]="warning",t["DANGER"]="danger"}(U||(U={}));var V=H,F=n("7f0d"),G=function(){return F["a"].Date.now()},B=G,z=F["a"].Symbol,W=z,Y=Object.prototype,q=Y.hasOwnProperty,X=Y.toString,$=W?W.toStringTag:void 0;function Z(t){var e=q.call(t,$),n=t[$];try{t[$]=void 0;var r=!0}catch(o){}var i=X.call(t);return r&&(e?t[$]=n:delete t[$]),i}var K=Z,Q=Object.prototype,J=Q.toString;function tt(t){return J.call(t)}var et=tt,nt="[object Null]",rt="[object Undefined]",it=W?W.toStringTag:void 0;function ot(t){return null==t?void 0===t?rt:nt:it&&it in Object(t)?K(t):et(t)}var at=ot;function st(t){return null!=t&&"object"==typeof t}var ut=st,ct="[object Symbol]";function lt(t){return"symbol"==typeof t||ut(t)&&at(t)==ct}var ht=lt,ft=NaN,pt=/^\s+|\s+$/g,dt=/^[-+]0x[0-9a-f]+$/i,vt=/^0b[01]+$/i,gt=/^0o[0-7]+$/i,yt=parseInt;function mt(t){if("number"==typeof t)return t;if(ht(t))return ft;if(V(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=V(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(pt,"");var n=vt.test(t);return n||gt.test(t)?yt(t.slice(2),n?2:8):dt.test(t)?ft:+t}var _t=mt,bt="Expected a function",wt=Math.max,xt=Math.min;function Ot(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(bt);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(y,e),l?p(t):a}function v(t){var n=t-u,r=t-c,i=e-n;return h?xt(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 y(){var t=B();if(g(t))return m(t);s=setTimeout(y,v(t))}function m(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:m(B())}function w(){var t=B(),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(y,e),p(u)}return void 0===s&&(s=setTimeout(y,e)),a}return e=_t(e)||0,V(n)&&(l=!!n.leading,h="maxWait"in n,o=h?wt(_t(n.maxWait)||0,e):o,f="trailing"in n?!!n.trailing:f),w.cancel=_,w.flush=b,w}var Tt=Ot;function St(){this.__data__=[],this.size=0}var Et=St;function Mt(t,e){return t===e||t!==t&&e!==e}var At=Mt;function Pt(t,e){var n=t.length;while(n--)if(At(t[n][0],e))return n;return-1}var Ct=Pt,kt=Array.prototype,Lt=kt.splice;function Dt(t){var e=this.__data__,n=Ct(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Lt.call(e,n,1),--this.size,!0}var Rt=Dt;function jt(t){var e=this.__data__,n=Ct(e,t);return n<0?void 0:e[n][1]}var It=jt;function Ut(t){return Ct(this.__data__,t)>-1}var Nt=Ut;function Ht(t,e){var n=this.__data__,r=Ct(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var Vt=Ht;function Ft(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])}}Ft.prototype.clear=Et,Ft.prototype["delete"]=Rt,Ft.prototype.get=It,Ft.prototype.has=Nt,Ft.prototype.set=Vt;var Gt=Ft;function Bt(){this.__data__=new Gt,this.size=0}var zt=Bt;function Wt(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}var Yt=Wt;function qt(t){return this.__data__.get(t)}var Xt=qt;function $t(t){return this.__data__.has(t)}var Zt=$t,Kt="[object AsyncFunction]",Qt="[object Function]",Jt="[object GeneratorFunction]",te="[object Proxy]";function ee(t){if(!V(t))return!1;var e=at(t);return e==Qt||e==Jt||e==Kt||e==te}var ne=ee,re=F["a"]["__core-js_shared__"],ie=re,oe=function(){var t=/[^.]+$/.exec(ie&&ie.keys&&ie.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function ae(t){return!!oe&&oe in t}var se=ae,ue=Function.prototype,ce=ue.toString;function le(t){if(null!=t){try{return ce.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var he=le,fe=/[\\^$.*+?()[\]{}|]/g,pe=/^\[object .+?Constructor\]$/,de=Function.prototype,ve=Object.prototype,ge=de.toString,ye=ve.hasOwnProperty,me=RegExp("^"+ge.call(ye).replace(fe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _e(t){if(!V(t)||se(t))return!1;var e=ne(t)?me:pe;return e.test(he(t))}var be=_e;function we(t,e){return null==t?void 0:t[e]}var xe=we;function Oe(t,e){var n=xe(t,e);return be(n)?n:void 0}var Te=Oe,Se=Te(F["a"],"Map"),Ee=Se,Me=Te(Object,"create"),Ae=Me;function Pe(){this.__data__=Ae?Ae(null):{},this.size=0}var Ce=Pe;function ke(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Le=ke,De="__lodash_hash_undefined__",Re=Object.prototype,je=Re.hasOwnProperty;function Ie(t){var e=this.__data__;if(Ae){var n=e[t];return n===De?void 0:n}return je.call(e,t)?e[t]:void 0}var Ue=Ie,Ne=Object.prototype,He=Ne.hasOwnProperty;function Ve(t){var e=this.__data__;return Ae?void 0!==e[t]:He.call(e,t)}var Fe=Ve,Ge="__lodash_hash_undefined__";function Be(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ae&&void 0===e?Ge:e,this}var ze=Be;function We(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])}}We.prototype.clear=Ce,We.prototype["delete"]=Le,We.prototype.get=Ue,We.prototype.has=Fe,We.prototype.set=ze;var Ye=We;function qe(){this.size=0,this.__data__={hash:new Ye,map:new(Ee||Gt),string:new Ye}}var Xe=qe;function $e(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}var Ze=$e;function Ke(t,e){var n=t.__data__;return Ze(e)?n["string"==typeof e?"string":"hash"]:n.map}var Qe=Ke;function Je(t){var e=Qe(this,t)["delete"](t);return this.size-=e?1:0,e}var tn=Je;function en(t){return Qe(this,t).get(t)}var nn=en;function rn(t){return Qe(this,t).has(t)}var on=rn;function an(t,e){var n=Qe(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var sn=an;function un(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])}}un.prototype.clear=Xe,un.prototype["delete"]=tn,un.prototype.get=nn,un.prototype.has=on,un.prototype.set=sn;var cn=un,ln=200;function hn(t,e){var n=this.__data__;if(n instanceof Gt){var r=n.__data__;if(!Ee||r.length<ln-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new cn(r)}return n.set(t,e),this.size=n.size,this}var fn=hn;function pn(t){var e=this.__data__=new Gt(t);this.size=e.size}pn.prototype.clear=zt,pn.prototype["delete"]=Yt,pn.prototype.get=Xt,pn.prototype.has=Zt,pn.prototype.set=fn;var dn=pn;function vn(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 gn=vn,yn=function(){try{var t=Te(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),mn=yn;function _n(t,e,n){"__proto__"==e&&mn?mn(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var bn=_n,wn=Object.prototype,xn=wn.hasOwnProperty;function On(t,e,n){var r=t[e];xn.call(t,e)&&At(r,n)&&(void 0!==n||e in t)||bn(t,e,n)}var Tn=On;function Sn(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?bn(n,s,u):Tn(n,s,u)}return n}var En=Sn;function Mn(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}var An=Mn,Pn="[object Arguments]";function Cn(t){return ut(t)&&at(t)==Pn}var kn=Cn,Ln=Object.prototype,Dn=Ln.hasOwnProperty,Rn=Ln.propertyIsEnumerable,jn=kn(function(){return arguments}())?kn:function(t){return ut(t)&&Dn.call(t,"callee")&&!Rn.call(t,"callee")},In=jn,Un=Array.isArray,Nn=Un,Hn=n("4cf0"),Vn=9007199254740991,Fn=/^(?:0|[1-9]\d*)$/;function Gn(t,e){var n=typeof t;return e=null==e?Vn:e,!!e&&("number"==n||"symbol"!=n&&Fn.test(t))&&t>-1&&t%1==0&&t<e}var Bn=Gn,zn=9007199254740991;function Wn(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=zn}var Yn=Wn,qn="[object Arguments]",Xn="[object Array]",$n="[object Boolean]",Zn="[object Date]",Kn="[object Error]",Qn="[object Function]",Jn="[object Map]",tr="[object Number]",er="[object Object]",nr="[object RegExp]",rr="[object Set]",ir="[object String]",or="[object WeakMap]",ar="[object ArrayBuffer]",sr="[object DataView]",ur="[object Float32Array]",cr="[object Float64Array]",lr="[object Int8Array]",hr="[object Int16Array]",fr="[object Int32Array]",pr="[object Uint8Array]",dr="[object Uint8ClampedArray]",vr="[object Uint16Array]",gr="[object Uint32Array]",yr={};function mr(t){return ut(t)&&Yn(t.length)&&!!yr[at(t)]}yr[ur]=yr[cr]=yr[lr]=yr[hr]=yr[fr]=yr[pr]=yr[dr]=yr[vr]=yr[gr]=!0,yr[qn]=yr[Xn]=yr[ar]=yr[$n]=yr[sr]=yr[Zn]=yr[Kn]=yr[Qn]=yr[Jn]=yr[tr]=yr[er]=yr[nr]=yr[rr]=yr[ir]=yr[or]=!1;var _r=mr;function br(t){return function(e){return t(e)}}var wr=br,xr=n("01ff"),Or=xr["a"]&&xr["a"].isTypedArray,Tr=Or?wr(Or):_r,Sr=Tr,Er=Object.prototype,Mr=Er.hasOwnProperty;function Ar(t,e){var n=Nn(t),r=!n&&In(t),i=!n&&!r&&Object(Hn["a"])(t),o=!n&&!r&&!i&&Sr(t),a=n||r||i||o,s=a?An(t.length,String):[],u=s.length;for(var c in t)!e&&!Mr.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Bn(c,u))||s.push(c);return s}var Pr=Ar,Cr=Object.prototype;function kr(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||Cr;return t===n}var Lr=kr;function Dr(t,e){return function(n){return t(e(n))}}var Rr=Dr,jr=Rr(Object.keys,Object),Ir=jr,Ur=Object.prototype,Nr=Ur.hasOwnProperty;function Hr(t){if(!Lr(t))return Ir(t);var e=[];for(var n in Object(t))Nr.call(t,n)&&"constructor"!=n&&e.push(n);return e}var Vr=Hr;function Fr(t){return null!=t&&Yn(t.length)&&!ne(t)}var Gr=Fr;function Br(t){return Gr(t)?Pr(t):Vr(t)}var zr=Br;function Wr(t,e){return t&&En(e,zr(e),t)}var Yr=Wr;function qr(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}var Xr=qr,$r=Object.prototype,Zr=$r.hasOwnProperty;function Kr(t){if(!V(t))return Xr(t);var e=Lr(t),n=[];for(var r in t)("constructor"!=r||!e&&Zr.call(t,r))&&n.push(r);return n}var Qr=Kr;function Jr(t){return Gr(t)?Pr(t,!0):Qr(t)}var ti=Jr;function ei(t,e){return t&&En(e,ti(e),t)}var ni=ei,ri=n("d6f0");function ii(t,e){var n=-1,r=t.length;e||(e=Array(r));while(++n<r)e[n]=t[n];return e}var oi=ii;function ai(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 si=ai;function ui(){return[]}var ci=ui,li=Object.prototype,hi=li.propertyIsEnumerable,fi=Object.getOwnPropertySymbols,pi=fi?function(t){return null==t?[]:(t=Object(t),si(fi(t),(function(e){return hi.call(t,e)})))}:ci,di=pi;function vi(t,e){return En(t,di(t),e)}var gi=vi;function yi(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}var mi=yi,_i=Rr(Object.getPrototypeOf,Object),bi=_i,wi=Object.getOwnPropertySymbols,xi=wi?function(t){var e=[];while(t)mi(e,di(t)),t=bi(t);return e}:ci,Oi=xi;function Ti(t,e){return En(t,Oi(t),e)}var Si=Ti;function Ei(t,e,n){var r=e(t);return Nn(t)?r:mi(r,n(t))}var Mi=Ei;function Ai(t){return Mi(t,zr,di)}var Pi=Ai;function Ci(t){return Mi(t,ti,Oi)}var ki=Ci,Li=Te(F["a"],"DataView"),Di=Li,Ri=Te(F["a"],"Promise"),ji=Ri,Ii=Te(F["a"],"Set"),Ui=Ii,Ni=Te(F["a"],"WeakMap"),Hi=Ni,Vi="[object Map]",Fi="[object Object]",Gi="[object Promise]",Bi="[object Set]",zi="[object WeakMap]",Wi="[object DataView]",Yi=he(Di),qi=he(Ee),Xi=he(ji),$i=he(Ui),Zi=he(Hi),Ki=at;(Di&&Ki(new Di(new ArrayBuffer(1)))!=Wi||Ee&&Ki(new Ee)!=Vi||ji&&Ki(ji.resolve())!=Gi||Ui&&Ki(new Ui)!=Bi||Hi&&Ki(new Hi)!=zi)&&(Ki=function(t){var e=at(t),n=e==Fi?t.constructor:void 0,r=n?he(n):"";if(r)switch(r){case Yi:return Wi;case qi:return Vi;case Xi:return Gi;case $i:return Bi;case Zi:return zi}return e});var Qi=Ki,Ji=Object.prototype,to=Ji.hasOwnProperty;function eo(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&to.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var no=eo,ro=F["a"].Uint8Array,io=ro;function oo(t){var e=new t.constructor(t.byteLength);return new io(e).set(new io(t)),e}var ao=oo;function so(t,e){var n=e?ao(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var uo=so,co=/\w*$/;function lo(t){var e=new t.constructor(t.source,co.exec(t));return e.lastIndex=t.lastIndex,e}var ho=lo,fo=W?W.prototype:void 0,po=fo?fo.valueOf:void 0;function vo(t){return po?Object(po.call(t)):{}}var go=vo;function yo(t,e){var n=e?ao(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var mo=yo,_o="[object Boolean]",bo="[object Date]",wo="[object Map]",xo="[object Number]",Oo="[object RegExp]",To="[object Set]",So="[object String]",Eo="[object Symbol]",Mo="[object ArrayBuffer]",Ao="[object DataView]",Po="[object Float32Array]",Co="[object Float64Array]",ko="[object Int8Array]",Lo="[object Int16Array]",Do="[object Int32Array]",Ro="[object Uint8Array]",jo="[object Uint8ClampedArray]",Io="[object Uint16Array]",Uo="[object Uint32Array]";function No(t,e,n){var r=t.constructor;switch(e){case Mo:return ao(t);case _o:case bo:return new r(+t);case Ao:return uo(t,n);case Po:case Co:case ko:case Lo:case Do:case Ro:case jo:case Io:case Uo:return mo(t,n);case wo:return new r;case xo:case So:return new r(t);case Oo:return ho(t);case To:return new r;case Eo:return go(t)}}var Ho=No,Vo=Object.create,Fo=function(){function t(){}return function(e){if(!V(e))return{};if(Vo)return Vo(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),Go=Fo;function Bo(t){return"function"!=typeof t.constructor||Lr(t)?{}:Go(bi(t))}var zo=Bo,Wo="[object Map]";function Yo(t){return ut(t)&&Qi(t)==Wo}var qo=Yo,Xo=xr["a"]&&xr["a"].isMap,$o=Xo?wr(Xo):qo,Zo=$o,Ko="[object Set]";function Qo(t){return ut(t)&&Qi(t)==Ko}var Jo=Qo,ta=xr["a"]&&xr["a"].isSet,ea=ta?wr(ta):Jo,na=ea,ra=1,ia=2,oa=4,aa="[object Arguments]",sa="[object Array]",ua="[object Boolean]",ca="[object Date]",la="[object Error]",ha="[object Function]",fa="[object GeneratorFunction]",pa="[object Map]",da="[object Number]",va="[object Object]",ga="[object RegExp]",ya="[object Set]",ma="[object String]",_a="[object Symbol]",ba="[object WeakMap]",wa="[object ArrayBuffer]",xa="[object DataView]",Oa="[object Float32Array]",Ta="[object Float64Array]",Sa="[object Int8Array]",Ea="[object Int16Array]",Ma="[object Int32Array]",Aa="[object Uint8Array]",Pa="[object Uint8ClampedArray]",Ca="[object Uint16Array]",ka="[object Uint32Array]",La={};function Da(t,e,n,r,i,o){var a,s=e&ra,u=e&ia,c=e&oa;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!V(t))return t;var l=Nn(t);if(l){if(a=no(t),!s)return oi(t,a)}else{var h=Qi(t),f=h==ha||h==fa;if(Object(Hn["a"])(t))return Object(ri["a"])(t,s);if(h==va||h==aa||f&&!i){if(a=u||f?{}:zo(t),!s)return u?Si(t,ni(a,t)):gi(t,Yr(a,t))}else{if(!La[h])return i?t:{};a=Ho(t,h,s)}}o||(o=new dn);var p=o.get(t);if(p)return p;o.set(t,a),na(t)?t.forEach((function(r){a.add(Da(r,e,n,r,t,o))})):Zo(t)&&t.forEach((function(r,i){a.set(i,Da(r,e,n,i,t,o))}));var d=c?u?ki:Pi:u?keysIn:zr,v=l?void 0:d(t);return gn(v||t,(function(r,i){v&&(i=r,r=t[i]),Tn(a,i,Da(r,e,n,i,t,o))})),a}La[aa]=La[sa]=La[wa]=La[xa]=La[ua]=La[ca]=La[Oa]=La[Ta]=La[Sa]=La[Ea]=La[Ma]=La[pa]=La[da]=La[va]=La[ga]=La[ya]=La[ma]=La[_a]=La[Aa]=La[Pa]=La[Ca]=La[ka]=!0,La[la]=La[ha]=La[ba]=!1;var Ra=Da,ja=1,Ia=4;function Ua(t){return Ra(t,ja|Ia)}var Na=Ua;function Ha(t,e,n){(void 0===n||At(t[e],n))&&(void 0!==n||e in t)||bn(t,e,n)}var Va=Ha;function Fa(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 Ga=Fa,Ba=Ga(),za=Ba;function Wa(t){return ut(t)&&Gr(t)}var Ya=Wa,qa="[object Object]",Xa=Function.prototype,$a=Object.prototype,Za=Xa.toString,Ka=$a.hasOwnProperty,Qa=Za.call(Object);function Ja(t){if(!ut(t)||at(t)!=qa)return!1;var e=bi(t);if(null===e)return!0;var n=Ka.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Za.call(n)==Qa}var ts=Ja;function es(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var ns=es;function rs(t){return En(t,ti(t))}var is=rs;function os(t,e,n,r,i,o,a){var s=ns(t,n),u=ns(e,n),c=a.get(u);if(c)Va(t,n,c);else{var l=o?o(s,u,n+"",t,e,a):void 0,h=void 0===l;if(h){var f=Nn(u),p=!f&&Object(Hn["a"])(u),d=!f&&!p&&Sr(u);l=u,f||p||d?Nn(s)?l=s:Ya(s)?l=oi(s):p?(h=!1,l=Object(ri["a"])(u,!0)):d?(h=!1,l=mo(u,!0)):l=[]:ts(u)||In(u)?(l=s,In(s)?l=is(s):V(s)&&!ne(s)||(l=zo(u))):h=!1}h&&(a.set(u,l),i(l,u,r,o,a),a["delete"](u)),Va(t,n,l)}}var as=os;function ss(t,e,n,r,i){t!==e&&za(e,(function(o,a){if(i||(i=new dn),V(o))as(t,e,a,n,ss,r,i);else{var s=r?r(ns(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),Va(t,a,s)}}),ti)}var us=ss;function cs(t){return t}var ls=cs;function hs(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 fs=hs,ps=Math.max;function ds(t,e,n){return e=ps(void 0===e?t.length-1:e,0),function(){var r=arguments,i=-1,o=ps(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),fs(t,this,s)}}var vs=ds;function gs(t){return function(){return t}}var ys=gs,ms=mn?function(t,e){return mn(t,"toString",{configurable:!0,enumerable:!1,value:ys(e),writable:!0})}:ls,_s=ms,bs=800,ws=16,xs=Date.now;function Os(t){var e=0,n=0;return function(){var r=xs(),i=ws-(r-n);if(n=r,i>0){if(++e>=bs)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Ts=Os,Ss=Ts(_s),Es=Ss;function Ms(t,e){return Es(vs(t,e,ls),t+"")}var As=Ms;function Ps(t,e,n){if(!V(n))return!1;var r=typeof e;return!!("number"==r?Gr(n)&&Bn(e,n.length):"string"==r&&e in n)&&At(n[e],t)}var Cs=Ps;function ks(t){return As((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&&Cs(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 Ls=ks,Ds=Ls((function(t,e,n){us(t,e,n)})),Rs=Ds,js="__lodash_hash_undefined__";function Is(t){return this.__data__.set(t,js),this}var Us=Is;function Ns(t){return this.__data__.has(t)}var Hs=Ns;function Vs(t){var e=-1,n=null==t?0:t.length;this.__data__=new cn;while(++e<n)this.add(t[e])}Vs.prototype.add=Vs.prototype.push=Us,Vs.prototype.has=Hs;var Fs=Vs;function Gs(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 Bs=Gs;function zs(t){return t!==t}var Ws=zs;function Ys(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}var qs=Ys;function Xs(t,e,n){return e===e?qs(t,e,n):Bs(t,Ws,n)}var $s=Xs;function Zs(t,e){var n=null==t?0:t.length;return!!n&&$s(t,e,0)>-1}var Ks=Zs;function Qs(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 Js=Qs;function tu(t,e){return t.has(e)}var eu=tu;function nu(){}var ru=nu;function iu(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var ou=iu,au=1/0,su=Ui&&1/ou(new Ui([,-0]))[1]==au?function(t){return new Ui(t)}:ru,uu=su,cu=200;function lu(t,e,n){var r=-1,i=Ks,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=Js;else if(o>=cu){var c=e?null:uu(t);if(c)return ou(c);a=!1,i=eu,u=new Fs}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 hu=lu;function fu(t){return t&&t.length?hu(t):[]}var pu=fu;function du(t,e,n){return t===t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}var vu=du;function gu(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=_t(n),n=n===n?n:0),void 0!==e&&(e=_t(e),e=e===e?e:0),vu(_t(t),e,n)}var yu=gu;function mu(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 _u=mu,bu=1,wu=2;function xu(t,e,n,r,i,o){var a=n&bu,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var c=o.get(t);if(c&&o.get(e))return c==e;var l=-1,h=!0,f=n&wu?new Fs:void 0;o.set(t,e),o.set(e,t);while(++l<s){var p=t[l],d=e[l];if(r)var v=a?r(d,p,l,e,t,o):r(p,d,l,t,e,o);if(void 0!==v){if(v)continue;h=!1;break}if(f){if(!_u(e,(function(t,e){if(!eu(f,e)&&(p===t||i(p,t,n,r,o)))return f.push(e)}))){h=!1;break}}else if(p!==d&&!i(p,d,n,r,o)){h=!1;break}}return o["delete"](t),o["delete"](e),h}var Ou=xu;function Tu(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}var Su=Tu,Eu=1,Mu=2,Au="[object Boolean]",Pu="[object Date]",Cu="[object Error]",ku="[object Map]",Lu="[object Number]",Du="[object RegExp]",Ru="[object Set]",ju="[object String]",Iu="[object Symbol]",Uu="[object ArrayBuffer]",Nu="[object DataView]",Hu=W?W.prototype:void 0,Vu=Hu?Hu.valueOf:void 0;function Fu(t,e,n,r,i,o,a){switch(n){case Nu:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Uu:return!(t.byteLength!=e.byteLength||!o(new io(t),new io(e)));case Au:case Pu:case Lu:return At(+t,+e);case Cu:return t.name==e.name&&t.message==e.message;case Du:case ju:return t==e+"";case ku:var s=Su;case Ru:var u=r&Eu;if(s||(s=ou),t.size!=e.size&&!u)return!1;var c=a.get(t);if(c)return c==e;r|=Mu,a.set(t,e);var l=Ou(s(t),s(e),r,i,o,a);return a["delete"](t),l;case Iu:if(Vu)return Vu.call(t)==Vu.call(e)}return!1}var Gu=Fu,Bu=1,zu=Object.prototype,Wu=zu.hasOwnProperty;function Yu(t,e,n,r,i,o){var a=n&Bu,s=Pi(t),u=s.length,c=Pi(e),l=c.length;if(u!=l&&!a)return!1;var h=u;while(h--){var f=s[h];if(!(a?f in e:Wu.call(e,f)))return!1}var p=o.get(t);if(p&&o.get(e))return p==e;var d=!0;o.set(t,e),o.set(e,t);var v=a;while(++h<u){f=s[h];var g=t[f],y=e[f];if(r)var m=a?r(y,g,f,e,t,o):r(g,y,f,t,e,o);if(!(void 0===m?g===y||i(g,y,n,r,o):m)){d=!1;break}v||(v="constructor"==f)}if(d&&!v){var _=t.constructor,b=e.constructor;_!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b)&&(d=!1)}return o["delete"](t),o["delete"](e),d}var qu=Yu,Xu=1,$u="[object Arguments]",Zu="[object Array]",Ku="[object Object]",Qu=Object.prototype,Ju=Qu.hasOwnProperty;function tc(t,e,n,r,i,o){var a=Nn(t),s=Nn(e),u=a?Zu:Qi(t),c=s?Zu:Qi(e);u=u==$u?Ku:u,c=c==$u?Ku:c;var l=u==Ku,h=c==Ku,f=u==c;if(f&&Object(Hn["a"])(t)){if(!Object(Hn["a"])(e))return!1;a=!0,l=!1}if(f&&!l)return o||(o=new dn),a||Sr(t)?Ou(t,e,n,r,i,o):Gu(t,e,u,n,r,i,o);if(!(n&Xu)){var p=l&&Ju.call(t,"__wrapped__"),d=h&&Ju.call(e,"__wrapped__");if(p||d){var v=p?t.value():t,g=d?e.value():e;return o||(o=new dn),i(v,g,n,r,o)}}return!!f&&(o||(o=new dn),qu(t,e,n,r,i,o))}var ec=tc;function nc(t,e,n,r,i){return t===e||(null==t||null==e||!ut(t)&&!ut(e)?t!==t&&e!==e:ec(t,e,n,r,nc,i))}var rc=nc;function ic(t,e){return rc(t,e)}var oc=ic,ac=W?W.isConcatSpreadable:void 0;function sc(t){return Nn(t)||In(t)||!!(ac&&t&&t[ac])}var uc=sc;function cc(t,e,n,r,i){var o=-1,a=t.length;n||(n=uc),i||(i=[]);while(++o<a){var s=t[o];e>0&&n(s)?e>1?cc(s,e-1,n,r,i):mi(i,s):r||(i[i.length]=s)}return i}var lc=cc;function hc(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 fc=hc,pc=1,dc=2;function vc(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 dn;if(r)var f=r(c,l,u,t,e,h);if(!(void 0===f?rc(l,c,pc|dc,r,h):f))return!1}}return!0}var gc=vc;function yc(t){return t===t&&!V(t)}var mc=yc;function _c(t){var e=zr(t),n=e.length;while(n--){var r=e[n],i=t[r];e[n]=[r,i,mc(i)]}return e}var bc=_c;function wc(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}var xc=wc;function Oc(t){var e=bc(t);return 1==e.length&&e[0][2]?xc(e[0][0],e[0][1]):function(n){return n===t||gc(n,t,e)}}var Tc=Oc,Sc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ec=/^\w*$/;function Mc(t,e){if(Nn(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ht(t))||(Ec.test(t)||!Sc.test(t)||null!=e&&t in Object(e))}var Ac=Mc,Pc="Expected a function";function Cc(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(Pc);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(Cc.Cache||cn),n}Cc.Cache=cn;var kc=Cc,Lc=500;function Dc(t){var e=kc(t,(function(t){return n.size===Lc&&n.clear(),t})),n=e.cache;return e}var Rc=Dc,jc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ic=/\\(\\)?/g,Uc=Rc((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(jc,(function(t,n,r,i){e.push(r?i.replace(Ic,"$1"):n||t)})),e})),Nc=Uc,Hc=1/0,Vc=W?W.prototype:void 0,Fc=Vc?Vc.toString:void 0;function Gc(t){if("string"==typeof t)return t;if(Nn(t))return fc(t,Gc)+"";if(ht(t))return Fc?Fc.call(t):"";var e=t+"";return"0"==e&&1/t==-Hc?"-0":e}var Bc=Gc;function zc(t){return null==t?"":Bc(t)}var Wc=zc;function Yc(t,e){return Nn(t)?t:Ac(t,e)?[t]:Nc(Wc(t))}var qc=Yc,Xc=1/0;function $c(t){if("string"==typeof t||ht(t))return t;var e=t+"";return"0"==e&&1/t==-Xc?"-0":e}var Zc=$c;function Kc(t,e){e=qc(e,t);var n=0,r=e.length;while(null!=t&&n<r)t=t[Zc(e[n++])];return n&&n==r?t:void 0}var Qc=Kc;function Jc(t,e,n){var r=null==t?void 0:Qc(t,e);return void 0===r?n:r}var tl=Jc;function el(t,e){return null!=t&&e in Object(t)}var nl=el;function rl(t,e,n){e=qc(e,t);var r=-1,i=e.length,o=!1;while(++r<i){var a=Zc(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&&Yn(i)&&Bn(a,i)&&(Nn(t)||In(t)))}var il=rl;function ol(t,e){return null!=t&&il(t,e,nl)}var al=ol,sl=1,ul=2;function cl(t,e){return Ac(t)&&mc(e)?xc(Zc(t),e):function(n){var r=tl(n,t);return void 0===r&&r===e?al(n,t):rc(e,r,sl|ul)}}var ll=cl;function hl(t){return function(e){return null==e?void 0:e[t]}}var fl=hl;function pl(t){return function(e){return Qc(e,t)}}var dl=pl;function vl(t){return Ac(t)?fl(Zc(t)):dl(t)}var gl=vl;function yl(t){return"function"==typeof t?t:null==t?ls:"object"==typeof t?Nn(t)?ll(t[0],t[1]):Tc(t):gl(t)}var ml=yl;function _l(t,e){return t&&za(t,e,zr)}var bl=_l;function wl(t,e){return function(n,r){if(null==n)return n;if(!Gr(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 xl=wl,Ol=xl(bl),Tl=Ol;function Sl(t,e){var n=-1,r=Gr(t)?Array(t.length):[];return Tl(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}var El=Sl;function Ml(t,e){var n=Nn(t)?fc:El;return n(t,ml(e,3))}var Al=Ml,Pl=1/0;function Cl(t,e){return lc(Al(t,e),Pl)}var kl=Cl;function Ll(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 Dl=Ll;function Rl(t){return function(e){return null==t?void 0:t[e]}}var jl=Rl,Il={"À":"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"},Ul=jl(Il),Nl=Ul,Hl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Vl="\\u0300-\\u036f",Fl="\\ufe20-\\ufe2f",Gl="\\u20d0-\\u20ff",Bl=Vl+Fl+Gl,zl="["+Bl+"]",Wl=RegExp(zl,"g");function Yl(t){return t=Wc(t),t&&t.replace(Hl,Nl).replace(Wl,"")}var ql=Yl,Xl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function $l(t){return t.match(Xl)||[]}var Zl=$l,Kl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Ql(t){return Kl.test(t)}var Jl=Ql,th="\\ud800-\\udfff",eh="\\u0300-\\u036f",nh="\\ufe20-\\ufe2f",rh="\\u20d0-\\u20ff",ih=eh+nh+rh,oh="\\u2700-\\u27bf",ah="a-z\\xdf-\\xf6\\xf8-\\xff",sh="\\xac\\xb1\\xd7\\xf7",uh="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ch="\\u2000-\\u206f",lh=" \\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",hh="A-Z\\xc0-\\xd6\\xd8-\\xde",fh="\\ufe0e\\ufe0f",ph=sh+uh+ch+lh,dh="['’]",vh="["+ph+"]",gh="["+ih+"]",yh="\\d+",mh="["+oh+"]",_h="["+ah+"]",bh="[^"+th+ph+yh+oh+ah+hh+"]",wh="\\ud83c[\\udffb-\\udfff]",xh="(?:"+gh+"|"+wh+")",Oh="[^"+th+"]",Th="(?:\\ud83c[\\udde6-\\uddff]){2}",Sh="[\\ud800-\\udbff][\\udc00-\\udfff]",Eh="["+hh+"]",Mh="\\u200d",Ah="(?:"+_h+"|"+bh+")",Ph="(?:"+Eh+"|"+bh+")",Ch="(?:"+dh+"(?:d|ll|m|re|s|t|ve))?",kh="(?:"+dh+"(?:D|LL|M|RE|S|T|VE))?",Lh=xh+"?",Dh="["+fh+"]?",Rh="(?:"+Mh+"(?:"+[Oh,Th,Sh].join("|")+")"+Dh+Lh+")*",jh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ih="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Uh=Dh+Lh+Rh,Nh="(?:"+[mh,Th,Sh].join("|")+")"+Uh,Hh=RegExp([Eh+"?"+_h+"+"+Ch+"(?="+[vh,Eh,"$"].join("|")+")",Ph+"+"+kh+"(?="+[vh,Eh+Ah,"$"].join("|")+")",Eh+"?"+Ah+"+"+Ch,Eh+"+"+kh,Ih,jh,yh,Nh].join("|"),"g");function Vh(t){return t.match(Hh)||[]}var Fh=Vh;function Gh(t,e,n){return t=Wc(t),e=n?void 0:e,void 0===e?Jl(t)?Fh(t):Zl(t):t.match(e)||[]}var Bh=Gh,zh="['’]",Wh=RegExp(zh,"g");function Yh(t){return function(e){return Dl(Bh(ql(e).replace(Wh,"")),t,"")}}var qh=Yh,Xh=qh((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),$h=Xh;function Zh(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 Kh=Zh;function Qh(t,e){var n;return Tl(t,(function(t,r,i){return n=e(t,r,i),!n})),!!n}var Jh=Qh;function tf(t,e,n){var r=Nn(t)?_u:Jh;return n&&Cs(t,e,n)&&(e=void 0),r(t,ml(e,3))}var ef,nf=tf;(function(t){function e(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/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===T.TIME?o["mapsTo"]="date":s===T.LABELS&&(o["mapsTo"]="key")}}else delete e.axes[i];return t.merge(e,n)}function n(t){return{width:parseFloat(t.style.width.replace("px","")||t.offsetWidth),height:parseFloat(t.style.height.replace("px","")||t.offsetHeight)}}function r(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 i(t){var e=/\(([^)]+)\)/,n=e.exec(t)[1],r=n.split(",");return{x:parseFloat(r[0]),y:parseFloat(r[1])}}function o(t){var e=t.toString();return e.match(/[a-z]/i)?e:e+"px"}function a(t){return t[0].toUpperCase()+t.slice(1)}function s(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 u(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 c(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 l(t){return t.each((function(){this.parentNode.appendChild(this)}))}function h(t,e,n){return n===O.VERTICAL?[t,e]:[e,t]}t.debounce=Tt,t.clone=Na,t.merge=Rs,t.removeArrayDuplicates=pu,t.clamp=yu,t.isEqual=oc,t.flatMapDeep=kl,t.kebabCase=$h,t.fromPairs=Kh,t.some=nf,t.mergeDefaultChartOptions=e,t.getDimensions=n,t.getTranslationValues=r,t.getTranformOffsets=i,t.formatWidthHeightValues=o,t.capitalizeFirstLetter=a,t.convertValueToPercentage=s,t.arrayDifferences=u,t.getDuplicateValues=c,t.moveToFront=l,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===O.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=h,t.compareNumeric=function(t,e){return Number(t)===Number(e)}})(ef||(ef={}));var rf=n("39ba"),of=n.n(rf),af={position:M.BOTTOM,clickable:!0,enabled:!0,items:{status:{ACTIVE:1,DISABLED:0},horizontalSpace:12,verticalSpace:24,textYOffset:8},checkbox:{radius:6.5,spaceAfter:4}},sf={x:{numberOfTicks:5},y:{numberOfTicks:5}},uf={datapoint:{horizontalOffset:10,enabled:!0},title:{verticalOffset:.75,width:.4}},cf=ef.merge({},uf,{gridline:{enabled:!0,threshold:.02}}),lf=ef.merge({},cf,{datapoint:{verticalOffset:4},gridline:{enabled:!1}}),hf={top:{includeZero:!0},bottom:{includeZero:!0},left:{includeZero:!0},right:{includeZero:!0}},ff={addSpaceOnEdges:1,showDayName:!1,localeObject:of.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"}}},pf={width:null,height:null,resizable:!0,tooltip:uf,legend:af,style:{prefix:"cc"},data:{groupMapsTo:"group",loading:!1},color:{scale:null}},df=ef.merge({},pf,{axes:hf,timeScale:ff,grid:sf,tooltip:cf}),vf=ef.merge({},df,{bars:{maxWidth:16},timeScale:ef.merge(ff,{addSpaceOnEdges:1}),tooltip:lf}),gf=ef.merge({},vf,{}),yf=ef.merge({},vf,{}),mf=ef.merge({},vf,{bars:ef.merge({},vf.bars,{dividerSize:1.5})}),_f=ef.merge({},df,{points:{radius:3,filled:!1}}),bf=ef.merge({},_f,{timeScale:ef.merge(ff,{addSpaceOnEdges:0})}),wf=bf,xf=ef.merge({},df,{points:{radius:4,fillOpacity:.3,filled:!0}}),Of=ef.merge({},df,{bubble:{radiusMapsTo:"radius",radiusRange:function(t,e){var n=Math.min(t.width,t.height);return[3*n/400,25*n/400]},fillOpacity:.2}}),Tf=ef.merge({},pf,{pie:{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},labels:{formatter:null}}}),Sf=ef.merge({},pf,{legend:{enabled:!1},gauge:{type:j.SEMI,arcWidth:16,deltaArrow:{size:function(t){return t/8},enabled:!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()}}}),Ef=ef.merge({},Tf,{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()}}}}),Mf=ef.merge({},pf,{radar:{axes:{angle:"key",value:"value"},opacity:{unselected:.1,selected:.3},xLabelPadding:10,yLabelPadding:8,yTicksNumber:4,minRange:10,xAxisRectHeight:50,dotsRadius:5},tooltip:{gridline:{enabled:!0},valueFormatter:function(t){return null!==t&&void 0!==t?t:"N/A"}}}),Af={chart:pf,axisChart:df,simpleBarChart:gf,groupedBarChart:yf,stackedBarChart:mf,bubbleChart:Of,lineChart:_f,areaChart:bf,stackedAreaChart:wf,scatterChart:xf,pieChart:Tf,donutChart:Ef,radarChart:Mf,gaugeChart:Sf},Pf={opacity:{unselected:.3,selected:1}},Cf={opacity:{unselected:0,selected:.4}},kf={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}},Lf={ticks:{number:7,rotateIfSmallerThan:30},paddingRatio:.1},Df={default:{size:24}},Rf=2.5,jf=3.5,If="#fff1f1",Uf="#ffd7d9",Nf="#ffb3b8",Hf="#ff8389",Vf="#fa4d56",Ff="#da1e28",Gf="#a2191f",Bf="#750e13",zf="#520408",Wf="#2d0709",Yf={10:If,20:Uf,30:Nf,40:Hf,50:Vf,60:Ff,70:Gf,80:Bf,90:zf,100:Wf},qf="#fff0f7",Xf="#ffd6e8",$f="#ffafd2",Zf="#ff7eb6",Kf="#ee5396",Qf="#d12771",Jf="#9f1853",tp="#740937",ep="#510224",np="#2a0a18",rp={10:qf,20:Xf,30:$f,40:Zf,50:Kf,60:Qf,70:Jf,80:tp,90:ep,100:np},ip="#f6f2ff",op="#e8daff",ap="#d4bbff",sp="#be95ff",up="#a56eff",cp="#8a3ffc",lp="#6929c4",hp="#491d8b",fp="#31135e",pp="#1c0f30",dp={10:ip,20:op,30:ap,40:sp,50:up,60:cp,70:lp,80:hp,90:fp,100:pp},vp="#edf5ff",gp="#d0e2ff",yp="#a6c8ff",mp="#78a9ff",_p="#4589ff",bp="#0f62fe",wp="#0043ce",xp="#002d9c",Op="#001d6c",Tp="#001141",Sp={10:vp,20:gp,30:yp,40:mp,50:_p,60:bp,70:wp,80:xp,90:Op,100:Tp},Ep="#e5f6ff",Mp="#bae6ff",Ap="#82cfff",Pp="#33b1ff",Cp="#1192e8",kp="#0072c3",Lp="#00539a",Dp="#003a6d",Rp="#012749",jp="#061727",Ip={10:Ep,20:Mp,30:Ap,40:Pp,50:Cp,60:kp,70:Lp,80:Dp,90:Rp,100:jp},Up="#d9fbfb",Np="#9ef0f0",Hp="#3ddbd9",Vp="#08bdba",Fp="#009d9a",Gp="#007d79",Bp="#005d5d",zp="#004144",Wp="#022b30",Yp="#081a1c",qp={10:Up,20:Np,30:Hp,40:Vp,50:Fp,60:Gp,70:Bp,80:zp,90:Wp,100:Yp},Xp="#defbe6",$p="#a7f0ba",Zp="#6fdc8c",Kp="#42be65",Qp="#24a148",Jp="#198038",td="#0e6027",ed="#044317",nd="#022d0d",rd="#071908",id={10:Xp,20:$p,30:Zp,40:Kp,50:Qp,60:Jp,70:td,80:ed,90:nd,100:rd};var od=function(t,e){return t[e]},ad={blue:function(t){return od(Sp,t)},cyan:function(t){return od(Ip,t)},green:function(t){return od(id,t)},magenta:function(t){return od(rp,t)},purple:function(t){return od(dp,t)},red:function(t){return od(Yf,t)},teal:function(t){return od(qp,t)}},sd=[ad.purple(70),ad.cyan(50),ad.teal(70),ad.magenta(70),ad.red(50),ad.red(90),ad.green(60),ad.blue(80),ad.magenta(50),"#b28600",ad.teal(50),ad.cyan(90),"#8a3800",ad.purple(50)],ud=(ad.purple(60),ad.cyan(40),ad.teal(60),ad.magenta(40),ad.red(50),ad.red(10),ad.green(30),ad.blue(50),ad.magenta(60),ad.teal(40),ad.cyan(20),ad.purple(30),sd),cd=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},ld=function(t){return 1===t.length&&(t=hd(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 hd(t){return function(e,n){return cd(t(e),n)}}var fd=ld(cd),pd=fd.right,dd=(fd.left,pd);var vd=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]},gd=Array.prototype,yd=(gd.slice,gd.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}),md=Math.sqrt(50),_d=Math.sqrt(10),bd=Math.sqrt(2),wd=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=xd(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 xd(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>=md?10:o>=_d?5:o>=bd?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=md?10:o>=_d?5:o>=bd?2:1)}function Od(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>=md?i*=10:o>=_d?i*=5:o>=bd&&(i*=2),e<t?-i:i}var Td=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},Sd=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},Ed=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 Md(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}var Ad="$";function Pd(){}function Cd(t,e){var n=new Pd;if(t instanceof Pd)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}Pd.prototype=Cd.prototype={constructor:Pd,has:function(t){return Ad+t in this},get:function(t){return this[Ad+t]},set:function(t,e){return this[Ad+t]=e,this},remove:function(t){var e=Ad+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===Ad&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===Ad&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===Ad&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===Ad&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===Ad&&++t;return t},empty:function(){for(var t in this)if(t[0]===Ad)return!1;return!0},each:function(t){for(var e in this)e[0]===Ad&&t(this[e],e.slice(1),this)}};var kd=Cd;function Ld(){}var Dd=kd.prototype;function Rd(t,e){var n=new Ld;if(t instanceof Ld)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}Ld.prototype=Rd.prototype={constructor:Ld,has:Dd.has,add:function(t){return t+="",this[Ad+t]=t,this},remove:Dd.remove,clear:Dd.clear,values:Dd.keys,size:Dd.size,empty:Dd.empty,each:Dd.each};var jd=function(t){var e=[];for(var n in t)e.push(t[n]);return e},Id=Array.prototype,Ud=Id.map,Nd=Id.slice,Hd={name:"implicit"};function Vd(){var t=kd(),e=[],n=[],r=Hd;function i(i){var o=i+"",a=t.get(o);if(!a){if(r!==Hd)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=kd();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=Nd.call(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return Vd(e,n).unknown(r)},Md.apply(i,arguments),i}function Fd(){var t,e,n=Vd().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=yd(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 Fd(r(),o).round(a).paddingInner(s).paddingOuter(u).align(c)},Md.apply(l(),arguments)}var Gd=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function Bd(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function zd(){}var Wd=.7,Yd=1/Wd,qd="\\s*([+-]?\\d+)\\s*",Xd="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",$d="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Zd=/^#([0-9a-f]{3,8})$/,Kd=new RegExp("^rgb\\("+[qd,qd,qd]+"\\)$"),Qd=new RegExp("^rgb\\("+[$d,$d,$d]+"\\)$"),Jd=new RegExp("^rgba\\("+[qd,qd,qd,Xd]+"\\)$"),tv=new RegExp("^rgba\\("+[$d,$d,$d,Xd]+"\\)$"),ev=new RegExp("^hsl\\("+[Xd,$d,$d]+"\\)$"),nv=new RegExp("^hsla\\("+[Xd,$d,$d,Xd]+"\\)$"),rv={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 iv(){return this.rgb().formatHex()}function ov(){return yv(this).formatHsl()}function av(){return this.rgb().formatRgb()}function sv(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Zd.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?uv(e):3===n?new fv(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?new fv(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?new fv(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=Kd.exec(t))?new fv(e[1],e[2],e[3],1):(e=Qd.exec(t))?new fv(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Jd.exec(t))?cv(e[1],e[2],e[3],e[4]):(e=tv.exec(t))?cv(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=ev.exec(t))?gv(e[1],e[2]/100,e[3]/100,1):(e=nv.exec(t))?gv(e[1],e[2]/100,e[3]/100,e[4]):rv.hasOwnProperty(t)?uv(rv[t]):"transparent"===t?new fv(NaN,NaN,NaN,0):null}function uv(t){return new fv(t>>16&255,t>>8&255,255&t,1)}function cv(t,e,n,r){return r<=0&&(t=e=n=NaN),new fv(t,e,n,r)}function lv(t){return t instanceof zd||(t=sv(t)),t?(t=t.rgb(),new fv(t.r,t.g,t.b,t.opacity)):new fv}function hv(t,e,n,r){return 1===arguments.length?lv(t):new fv(t,e,n,null==r?1:r)}function fv(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function pv(){return"#"+vv(this.r)+vv(this.g)+vv(this.b)}function dv(){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 vv(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function gv(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new _v(t,e,n,r)}function yv(t){if(t instanceof _v)return new _v(t.h,t.s,t.l,t.opacity);if(t instanceof zd||(t=sv(t)),!t)return new _v;if(t instanceof _v)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 _v(a,s,u,t.opacity)}function mv(t,e,n,r){return 1===arguments.length?yv(t):new _v(t,e,n,null==r?1:r)}function _v(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function bv(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 wv(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}Gd(zd,sv,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:iv,formatHex:iv,formatHsl:ov,formatRgb:av,toString:av}),Gd(fv,hv,Bd(zd,{brighter:function(t){return t=null==t?Yd:Math.pow(Yd,t),new fv(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Wd:Math.pow(Wd,t),new fv(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:pv,formatHex:pv,formatRgb:dv,toString:dv})),Gd(_v,mv,Bd(zd,{brighter:function(t){return t=null==t?Yd:Math.pow(Yd,t),new _v(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Wd:Math.pow(Wd,t),new _v(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 fv(bv(t>=240?t-240:t+120,i,r),bv(t,i,r),bv(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 xv=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 wv((n-r/e)*e,a,i,o,s)}},Ov=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 wv((n-r/e)*e,i,o,a,s)}},Tv=function(t){return function(){return t}};function Sv(t,e){return function(n){return t+n*e}}function Ev(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 Mv(t){return 1===(t=+t)?Av:function(e,n){return n-e?Ev(e,n,t):Tv(isNaN(e)?n:e)}}function Av(t,e){var n=e-t;return n?Sv(t,n):Tv(isNaN(t)?e:t)}var Pv=function t(e){var n=Mv(e);function r(t,e){var r=n((t=hv(t)).r,(e=hv(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Av(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 Cv(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=hv(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+""}}}Cv(xv),Cv(Ov);var kv=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 Lv(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Dv(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]=Gv(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 Rv=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}},jv=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},Iv=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]=Gv(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},Uv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Nv=new RegExp(Uv.source,"g");function Hv(t){return function(){return t}}function Vv(t){return function(e){return t(e)+""}}var Fv=function(t,e){var n,r,i,o=Uv.lastIndex=Nv.lastIndex=0,a=-1,s=[],u=[];t+="",e+="";while((n=Uv.exec(t))&&(r=Nv.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:jv(n,r)})),o=Nv.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?Vv(u[0].x):Hv(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("")})},Gv=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?Tv(e):("number"===r?jv:"string"===r?(n=sv(e))?(e=n,Pv):Fv:e instanceof sv?Pv:e instanceof Date?Rv:Lv(e)?kv:Array.isArray(e)?Dv:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?Iv:jv)(t,e)},Bv=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}},zv=function(t){return function(){return t}},Wv=function(t){return+t},Yv=[0,1];function qv(t){return t}function Xv(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:zv(isNaN(e)?NaN:.5)}function $v(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 Zv(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=Xv(i,r),o=n(a,o)):(r=Xv(r,i),o=n(o,a)),function(t){return o(r(t))}}function Kv(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]=Xv(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=dd(t,e,1,r)-1;return o[n](i[n](e))}}function Qv(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Jv(){var t,e,n,r,i,o,a=Yv,s=Yv,u=Gv,c=qv;function l(){return r=Math.min(a.length,s.length)>2?Kv:Zv,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),jv)))(n)))},h.domain=function(t){return arguments.length?(a=Ud.call(t,Wv),c===qv||(c=$v(a)),l()):a.slice()},h.range=function(t){return arguments.length?(s=Nd.call(t),l()):s.slice()},h.rangeRound=function(t){return s=Nd.call(t),u=Bv,l()},h.clamp=function(t){return arguments.length?(c=t?$v(a):qv,h):c!==qv},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 tg(t,e){return Jv()(t,e)}var eg=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ng(t){if(!(e=eg.exec(t)))throw new Error("invalid format: "+t);var e;return new rg({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 rg(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+""}ng.prototype=rg.prototype,rg.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 ig,og,ag,sg,ug=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)]},cg=function(t){return t=ug(Math.abs(t)),t?t[1]:NaN},lg=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(cg(e)/3)))-cg(Math.abs(t)))},hg=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)}},fg=function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}},pg=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},dg=function(t,e){var n=ug(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(ig=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")+ug(t,Math.max(0,e+o-1))[0]},vg=function(t,e){var n=ug(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")},gg={"%":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 vg(100*t,e)},r:vg,s:dg,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},yg=function(t){return t},mg=Array.prototype.map,_g=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],bg=function(t){var e=void 0===t.grouping||void 0===t.thousands?yg:hg(mg.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?yg:fg(mg.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=ng(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,y=t.trim,m=t.type;"n"===m?(v=!0,m="g"):gg[m]||(void 0===g&&(g=12),y=!0,m="g"),(p||"0"===c&&"="===l)&&(p=!0,c="0",l="=");var _="$"===f?n:"#"===f&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",b="$"===f?r:/[%p]/.test(m)?a:"",w=gg[m],x=/[defgprs%]/.test(m);function O(t){var n,r,a,f=_,O=b;if("c"===m)O=w(t)+O,t="";else{t=+t;var T=t<0;if(t=isNaN(t)?u:w(Math.abs(t),g),y&&(t=pg(t)),T&&0===+t&&(T=!1),f=(T?"("===h?h:s:"-"===h||"("===h?"":h)+f,O=("s"===m?_g[8+ig/3]:"")+O+(T&&"("===h?")":""),x){n=-1,r=t.length;while(++n<r)if(a=t.charCodeAt(n),48>a||a>57){O=(46===a?i+t.slice(n+1):t.slice(n))+O,t=t.slice(0,n);break}}}v&&!p&&(t=e(t,1/0));var S=f.length+t.length+O.length,E=S<d?new Array(d-S+1).join(c):"";switch(v&&p&&(t=e(E+t,E.length?d-O.length:1/0),E=""),l){case"<":t=f+t+O+E;break;case"=":t=f+E+t+O;break;case"^":t=E.slice(0,S=E.length>>1)+f+t+O+E.slice(S);break;default:t=E+f+t+O;break}return o(t)}return g=void 0===g?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),O.toString=function(){return t+""},O}function l(t,e){var n=c((t=ng(t),t.type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(cg(e)/3))),i=Math.pow(10,-r),o=_g[8+r/3];return function(t){return n(i*t)+o}}return{format:c,formatPrefix:l}};function wg(t){return og=bg(t),ag=og.format,sg=og.formatPrefix,og}wg({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var xg=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,cg(e)-cg(t))+1},Og=function(t){return Math.max(0,-cg(Math.abs(t)))},Tg=function(t,e,n,r){var i,o=Od(t,e,n);switch(r=ng(null==r?",f":r),r.type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=lg(o,a))||(r.precision=i),sg(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=xg(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Og(o))||(r.precision=i-2*("%"===r.type));break}return ag(r)};function Sg(t){var e=t.domain;return t.ticks=function(t){var n=e();return wd(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Tg(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=xd(s,u,n),r>0?(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,r=xd(s,u,n)):r<0&&(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,r=xd(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 Eg(){var t=tg(qv,qv);return t.copy=function(){return Qv(t,Eg())},Md.apply(t,arguments),Sg(t)}var Mg=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 Ag(t){return Math.log(t)}function Pg(t){return Math.exp(t)}function Cg(t){return-Math.log(-t)}function kg(t){return-Math.exp(-t)}function Lg(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Dg(t){return 10===t?Lg:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function Rg(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 jg(t){return function(e){return-t(-e)}}function Ig(t){var e,n,r=t(Ag,Pg),i=r.domain,o=10;function a(){return e=Rg(o),n=Dg(o),i()[0]<0?(e=jg(e),n=jg(n),t(Cg,kg)):t(Ag,Pg),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=wd(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=ag(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(Mg(i(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function Ug(){var t=Ig(Jv()).domain([1,10]);return t.copy=function(){return Qv(t,Ug()).base(t.base())},Md.apply(t,arguments),t}var Ng=new Date,Hg=new Date;function Vg(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 Vg((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 Ng.setTime(+e),Hg.setTime(+r),t(Ng),t(Hg),Math.floor(n(Ng,Hg))},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 Fg=Vg((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()}));Fg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Vg((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 Gg=Fg,Bg=(Fg.range,Vg((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()}))),zg=Bg,Wg=(Bg.range,1e3),Yg=6e4,qg=36e5,Xg=864e5,$g=6048e5;function Zg(t){return Vg((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())*Yg)/$g}))}var Kg=Zg(0),Qg=Zg(1),Jg=Zg(2),ty=Zg(3),ey=Zg(4),ny=Zg(5),ry=Zg(6),iy=(Kg.range,Qg.range,Jg.range,ty.range,ey.range,ny.range,ry.range,Vg((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())*Yg)/Xg}),(function(t){return t.getDate()-1}))),oy=iy,ay=(iy.range,Vg((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Wg-t.getMinutes()*Yg)}),(function(t,e){t.setTime(+t+e*qg)}),(function(t,e){return(e-t)/qg}),(function(t){return t.getHours()}))),sy=ay,uy=(ay.range,Vg((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Wg)}),(function(t,e){t.setTime(+t+e*Yg)}),(function(t,e){return(e-t)/Yg}),(function(t){return t.getMinutes()}))),cy=uy,ly=(uy.range,Vg((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*Wg)}),(function(t,e){return(e-t)/Wg}),(function(t){return t.getUTCSeconds()}))),hy=ly,fy=(ly.range,Vg((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t})));fy.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Vg((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):fy:null};var py=fy;fy.range;function dy(t){return Vg((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)/$g}))}var vy=dy(0),gy=dy(1),yy=dy(2),my=dy(3),_y=dy(4),by=dy(5),wy=dy(6),xy=(vy.range,gy.range,yy.range,my.range,_y.range,by.range,wy.range,Vg((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/Xg}),(function(t){return t.getUTCDate()-1}))),Oy=xy,Ty=(xy.range,Vg((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()})));Ty.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Vg((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 Sy=Ty;Ty.range;function Ey(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 My(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 Ay(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Py(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=Ny(i),l=Hy(i),h=Ny(o),f=Hy(o),p=Ny(a),d=Hy(a),v=Ny(s),g=Hy(s),y=Ny(u),m=Hy(u),_={a:D,A:R,b:j,B:I,c:null,d:am,e:am,f:hm,H:sm,I:um,j:cm,L:lm,m:fm,M:pm,p:U,q:N,Q:Fm,s:Gm,S:dm,u:vm,U:gm,V:ym,w:mm,W:_m,x:null,X:null,y:bm,Y:wm,Z:xm,"%":Vm},b={a:H,A:V,b:F,B:G,c:null,d:Om,e:Om,f:Am,H:Tm,I:Sm,j:Em,L:Mm,m:Pm,M:Cm,p:B,q:z,Q:Fm,s:Gm,S:km,u:Lm,U:Dm,V:Rm,w:jm,W:Im,x:null,X:null,y:Um,Y:Nm,Z:Hm,"%":Vm},w={a:E,A:M,b:A,B:P,c:C,d:Zy,e:Zy,f:nm,H:Qy,I:Qy,j:Ky,L:em,m:$y,M:Jy,p:S,q:Xy,Q:im,s:om,S:tm,u:Fy,U:Gy,V:By,w:Vy,W:zy,x:k,X:L,y:Yy,Y:Wy,Z:qy,"%":rm};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=Ly[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 O(t,e){return function(n){var r,i,o=Ay(1900,void 0,1),a=T(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=My(Ay(o.y,0,1)),i=r.getUTCDay(),r=i>4||0===i?gy.ceil(r):gy(r),r=Oy.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=Ey(Ay(o.y,0,1)),i=r.getDay(),r=i>4||0===i?Qg.ceil(r):Qg(r),r=oy.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?My(Ay(o.y,0,1)).getUTCDay():Ey(Ay(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,My(o)):Ey(o)}}function T(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=w[i in Ly?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 E(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 A(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=m[r[0].toLowerCase()],n+r[0].length):-1}function P(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=g[r[0].toLowerCase()],n+r[0].length):-1}function C(t,n,r){return T(t,e,n,r)}function k(t,e,r){return T(t,n,e,r)}function L(t,e,n){return T(t,r,e,n)}function D(t){return a[t.getDay()]}function R(t){return o[t.getDay()]}function j(t){return u[t.getMonth()]}function I(t){return s[t.getMonth()]}function U(t){return i[+(t.getHours()>=12)]}function N(t){return 1+~~(t.getMonth()/3)}function H(t){return a[t.getUTCDay()]}function V(t){return o[t.getUTCDay()]}function F(t){return u[t.getUTCMonth()]}function G(t){return s[t.getUTCMonth()]}function B(t){return i[+(t.getUTCHours()>=12)]}function z(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=O(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=O(t+="",!0);return e.toString=function(){return t},e}})}var Cy,ky,Ly={"-":"",_:" ",0:"0"},Dy=/^\s*\d+/,Ry=/^%/,jy=/[\\^$*+?|[\]().{}]/g;function Iy(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 Uy(t){return t.replace(jy,"\\$&")}function Ny(t){return new RegExp("^(?:"+t.map(Uy).join("|")+")","i")}function Hy(t){var e={},n=-1,r=t.length;while(++n<r)e[t[n].toLowerCase()]=n;return e}function Vy(t,e,n){var r=Dy.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Fy(t,e,n){var r=Dy.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Gy(t,e,n){var r=Dy.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function By(t,e,n){var r=Dy.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function zy(t,e,n){var r=Dy.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Wy(t,e,n){var r=Dy.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Yy(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 qy(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 Xy(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 $y(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 Zy(t,e,n){var r=Dy.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Ky(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 Qy(t,e,n){var r=Dy.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Jy(t,e,n){var r=Dy.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function tm(t,e,n){var r=Dy.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function em(t,e,n){var r=Dy.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function nm(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 rm(t,e,n){var r=Ry.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function im(t,e,n){var r=Dy.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function om(t,e,n){var r=Dy.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function am(t,e){return Iy(t.getDate(),e,2)}function sm(t,e){return Iy(t.getHours(),e,2)}function um(t,e){return Iy(t.getHours()%12||12,e,2)}function cm(t,e){return Iy(1+oy.count(Gg(t),t),e,3)}function lm(t,e){return Iy(t.getMilliseconds(),e,3)}function hm(t,e){return lm(t,e)+"000"}function fm(t,e){return Iy(t.getMonth()+1,e,2)}function pm(t,e){return Iy(t.getMinutes(),e,2)}function dm(t,e){return Iy(t.getSeconds(),e,2)}function vm(t){var e=t.getDay();return 0===e?7:e}function gm(t,e){return Iy(Kg.count(Gg(t)-1,t),e,2)}function ym(t,e){var n=t.getDay();return t=n>=4||0===n?ey(t):ey.ceil(t),Iy(ey.count(Gg(t),t)+(4===Gg(t).getDay()),e,2)}function mm(t){return t.getDay()}function _m(t,e){return Iy(Qg.count(Gg(t)-1,t),e,2)}function bm(t,e){return Iy(t.getFullYear()%100,e,2)}function wm(t,e){return Iy(t.getFullYear()%1e4,e,4)}function xm(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Iy(e/60|0,"0",2)+Iy(e%60,"0",2)}function Om(t,e){return Iy(t.getUTCDate(),e,2)}function Tm(t,e){return Iy(t.getUTCHours(),e,2)}function Sm(t,e){return Iy(t.getUTCHours()%12||12,e,2)}function Em(t,e){return Iy(1+Oy.count(Sy(t),t),e,3)}function Mm(t,e){return Iy(t.getUTCMilliseconds(),e,3)}function Am(t,e){return Mm(t,e)+"000"}function Pm(t,e){return Iy(t.getUTCMonth()+1,e,2)}function Cm(t,e){return Iy(t.getUTCMinutes(),e,2)}function km(t,e){return Iy(t.getUTCSeconds(),e,2)}function Lm(t){var e=t.getUTCDay();return 0===e?7:e}function Dm(t,e){return Iy(vy.count(Sy(t)-1,t),e,2)}function Rm(t,e){var n=t.getUTCDay();return t=n>=4||0===n?_y(t):_y.ceil(t),Iy(_y.count(Sy(t),t)+(4===Sy(t).getUTCDay()),e,2)}function jm(t){return t.getUTCDay()}function Im(t,e){return Iy(gy.count(Sy(t)-1,t),e,2)}function Um(t,e){return Iy(t.getUTCFullYear()%100,e,2)}function Nm(t,e){return Iy(t.getUTCFullYear()%1e4,e,4)}function Hm(){return"+0000"}function Vm(){return"%"}function Fm(t){return+t}function Gm(t){return Math.floor(+t/1e3)}function Bm(t){return Cy=Py(t),ky=Cy.format,Cy.parse,Cy.utcFormat,Cy.utcParse,Cy}Bm({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 zm=1e3,Wm=60*zm,Ym=60*Wm,qm=24*Ym,Xm=7*qm,$m=30*qm,Zm=365*qm;function Km(t){return new Date(t)}function Qm(t){return t instanceof Date?+t:+new Date(+t)}function Jm(t,e,n,r,i,o,a,s,u){var c=tg(qv,qv),l=c.invert,h=c.domain,f=u(".%L"),p=u(":%S"),d=u("%I:%M"),v=u("%I %p"),g=u("%a %d"),y=u("%b %d"),m=u("%B"),_=u("%Y"),b=[[a,1,zm],[a,5,5*zm],[a,15,15*zm],[a,30,30*zm],[o,1,Wm],[o,5,5*Wm],[o,15,15*Wm],[o,30,30*Wm],[i,1,Ym],[i,3,3*Ym],[i,6,6*Ym],[i,12,12*Ym],[r,1,qm],[r,2,2*qm],[n,1,Xm],[e,1,$m],[e,3,3*$m],[t,1,Zm]];function w(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:y:t(s)<s?m:_)(s)}function x(e,n,r,i){if(null==e&&(e=10),"number"===typeof e){var o=Math.abs(r-n)/e,a=ld((function(t){return t[2]})).right(b,o);a===b.length?(i=Od(n/Zm,r/Zm,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(Od(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(Ud.call(t,Qm)):h().map(Km)},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?w:u(e)},c.nice=function(t,e){var n=h();return(t=x(t,n[0],n[n.length-1],e))?h(Mg(n,t)):c},c.copy=function(){return Qv(c,Jm(t,e,n,r,i,o,a,s,u))},c}var t_=function(){return Md.apply(Jm(Gg,zg,Kg,oy,sy,cy,hy,py,ky).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},e_=Vg((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()})),n_=(e_.range,Vg((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*qg)}),(function(t,e){return(e-t)/qg}),(function(t){return t.getUTCHours()}))),r_=(n_.range,Vg((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*Yg)}),(function(t,e){return(e-t)/Yg}),(function(t){return t.getUTCMinutes()})));r_.range;var i_=Array.prototype.slice,o_=function(t){return function(){return t}},a_=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]},s_=function(t){var e=t.length,n=new Array(e);while(--e>=0)n[e]=e;return n};function u_(t,e){return t[e]}var c_=function(){var t=o_([]),e=s_,n=a_,r=u_;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:o_(i_.call(e)),i):t},i.value=function(t){return arguments.length?(r="function"===typeof t?t:o_(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?s_:"function"===typeof t?t:o_(i_.call(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?a_:t,i):n},i},l_=function(){function t(t){this.state={options:{}},this.colorScale={},this.services=t}return t.prototype.getDisplayData=function(){if(!this.get("data"))return null;var t=af.items.status.ACTIVE,e=this.getDataGroups(),n=ef.clone(this.get("data")),r=this.getOptions().data.groupMapsTo,i=this.getOptions().axes;return i&&Object.keys(i).forEach((function(t){if(i[t].mapsTo&&i[t].domain){var e=i[t].mapsTo;if(i[t].scaleType===T.LABELS)n=n.filter((function(n){return i[t].domain.includes(n[e])}));else{var r=i[t].domain,o=r[0],a=r[1];n=n.filter((function(t){return t[e]>=o&&t[e]<=a}))}}})),n.filter((function(n){var i=e.find((function(t){return t.name===n[r]}));return i.status===t}))},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(ef.clone(t)),n=this.generateDataGroups(e);return this.set({data:e,dataGroups:n}),e},t.prototype.getDataGroups=function(){return this.get("dataGroups")},t.prototype.getActiveDataGroups=function(){var t=af.items.status.ACTIVE;return this.getDataGroups().filter((function(e){return e.status===t}))},t.prototype.getDataGroupNames=function(){return this.getDataGroups().map((function(t){return t.name}))},t.prototype.getActiveDataGroupNames=function(){return this.getActiveDataGroups().map((function(t){return t.name}))},t.prototype.getGroupedData=function(){var t=this.getDisplayData(),e={},n=this.getOptions().data.groupMapsTo;return t.map((function(t){var r=t[n];null!==e[r]&&void 0!==e[r]?e[r].push(t):e[r]=[t]})),Object.keys(e).map((function(t){return{name:t,data:e[t]}}))},t.prototype.getDataValuesGroupedByKeys=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=this.getDisplayData(),r=this.services.cartesianScales.getDomainIdentifier(),i=this.services.cartesianScales.getRangeIdentifier(),o=kd(n,(function(t){return t[r]})).keys(),a=this.getDataGroupNames();return o.map((function(t){var o={sharedStackKey:t};return a.forEach((function(a){var s=n.find((function(n){return n[e]===a&&n[r].toString()===t}));o[a]=s?s[i]:null})),o}))},t.prototype.getStackedData=function(t){var e=(void 0===t?{percentage:!1}:t).percentage,n=this.getOptions(),r=n.data.groupMapsTo,i=this.getDataGroupNames(),o=this.getDataValuesGroupedByKeys();if(e){var a=ef.fromPairs(o.map((function(t){return[t.sharedStackKey,0]})));o.forEach((function(t){i.forEach((function(e){a[t.sharedStackKey]+=t[e]}))})),o.forEach((function(t){i.forEach((function(e){t[e]=t[e]/a[t.sharedStackKey]*100}))}))}return c_().keys(i)(o).map((function(t,e){return Object.keys(t).filter((function(t){return!isNaN(t)})).map((function(n){var o=t[n];return o[r]=i[e],o}))}))},t.prototype.getOptions=function(){return this.state.options},t.prototype.set=function(t,e){void 0===e&&(e=!1),this.state=Object.assign({},this.state,t),e||this.update()},t.prototype.get=function(t){return t?this.state[t]:this.state},t.prototype.setOptions=function(t){this.set({options:ef.merge(this.getOptions(),t)})},t.prototype.update=function(){this.getDisplayData()&&(this.updateAllDataGroups(),this.setColorScale(),this.services.events.dispatchEvent(N.Model.UPDATE))},t.prototype.setUpdateCallback=function(t){this.updateCallback=t},t.prototype.toggleDataLabel=function(t){var e=af.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}));this.services.events.dispatchEvent(N.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=this.getFillScale()(t);return r.getFillColor?r.getFillColor(t,e,n,i):i},t.prototype.getStrokeColor=function(t,e,n){var r=this.getOptions(),i=this.colorScale(t);return r.getStrokeColor?r.getStrokeColor(t,e,n,i):i},t.prototype.getFillScale=function(){return this.colorScale},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/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=ef.getProperty(t,"label");if(null===a){var s=ef.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 this.getTabularData(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=af.items.status.ACTIVE,r=kd(t,(function(t){return t[e]})).keys();return r.map((function(t){return{name:t,status:n}}))},t.prototype.setColorScale=function(){var t=ud,e=this.getOptions(),n=ef.getProperty(e,"color","scale");if(null!==n&&0!==Object.keys(n).length){var r=[],i=0;this.allDataGroups.forEach((function(e){n[e]?r.push(n[e]):r.push(t[i]),i===t.length-1?i=0:i++})),this.colorScale=Vd().range(r).domain(this.allDataGroups)}else this.colorScale=Vd().range(t).domain(this.allDataGroups)},t}(),h_=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 f_(){}var p_=function(t){return null==t?f_:function(){return this.querySelector(t)}},d_=function(t){"function"!==typeof t&&(t=p_(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 Jb(r,this._parents)};function v_(){return[]}var g_=function(t){return null==t?v_:function(){return this.querySelectorAll(t)}},y_=function(t){"function"!==typeof t&&(t=g_(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 Jb(r,i)},m_=function(t){return function(){return this.matches(t)}},__=function(t){"function"!==typeof t&&(t=m_(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 Jb(r,this._parents)},b_=function(t){return new Array(t.length)},w_=function(){return new Jb(this._enter||this._groups.map(b_),this._parents)};function x_(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}x_.prototype={constructor:x_,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 O_=function(t){return function(){return t}},T_="$";function S_(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 x_(t,o[s]);for(;s<u;++s)(a=e[s])&&(i[s]=a)}function E_(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=T_+a.call(u,u.__data__,s,e),c in l?i[s]=u:l[c]=u);for(s=0;s<f;++s)c=T_+a.call(t,o[s],s,o),(u=l[c])?(r[s]=u,u.__data__=o[s],l[c]=null):n[s]=new x_(t,o[s]);for(s=0;s<h;++s)(u=e[s])&&l[p[s]]===u&&(i[s]=u)}var M_=function(t,e){if(!t)return p=new Array(this.size()),c=-1,this.each((function(t){p[++c]=t})),p;var n=e?E_:S_,r=this._parents,i=this._groups;"function"!==typeof t&&(t=O_(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),y=u[c]=new Array(f);n(l,h,v,g,y,p,e);for(var m,_,b=0,w=0;b<d;++b)if(m=v[b]){b>=w&&(w=b+1);while(!(_=g[w])&&++w<d);m._next=_||null}}return a=new Jb(a,r),a._enter=s,a._exit=u,a},A_=function(){return new Jb(this._exit||this._groups.map(b_),this._parents)},P_=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},C_=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 Jb(a,this._parents)},k_=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},L_=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=D_);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 Jb(i,this._parents).order()};function D_(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var R_=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},j_=function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},I_=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},U_=function(){var t=0;return this.each((function(){++t})),t},N_=function(){return!this.node()},H_=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},V_="http://www.w3.org/1999/xhtml",F_={svg:"http://www.w3.org/2000/svg",xhtml:V_,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},G_=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),F_.hasOwnProperty(e)?{space:F_[e],local:t}:t};function B_(t){return function(){this.removeAttribute(t)}}function z_(t){return function(){this.removeAttributeNS(t.space,t.local)}}function W_(t,e){return function(){this.setAttribute(t,e)}}function Y_(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function q_(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function X_(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 $_=function(t,e){var n=G_(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?z_:B_:"function"===typeof e?n.local?X_:q_:n.local?Y_:W_)(n,e))},Z_=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function K_(t){return function(){this.style.removeProperty(t)}}function Q_(t,e,n){return function(){this.style.setProperty(t,e,n)}}function J_(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}var tb=function(t,e,n){return arguments.length>1?this.each((null==e?K_:"function"===typeof e?J_:Q_)(t,e,null==n?"":n)):eb(this.node(),t)};function eb(t,e){return t.style.getPropertyValue(e)||Z_(t).getComputedStyle(t,null).getPropertyValue(e)}function nb(t){return function(){delete this[t]}}function rb(t,e){return function(){this[t]=e}}function ib(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}var ob=function(t,e){return arguments.length>1?this.each((null==e?nb:"function"===typeof e?ib:rb)(t,e)):this.node()[t]};function ab(t){return t.trim().split(/^|\s+/)}function sb(t){return t.classList||new ub(t)}function ub(t){this._node=t,this._names=ab(t.getAttribute("class")||"")}function cb(t,e){var n=sb(t),r=-1,i=e.length;while(++r<i)n.add(e[r])}function lb(t,e){var n=sb(t),r=-1,i=e.length;while(++r<i)n.remove(e[r])}function hb(t){return function(){cb(this,t)}}function fb(t){return function(){lb(this,t)}}function pb(t,e){return function(){(e.apply(this,arguments)?cb:lb)(this,t)}}ub.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 db=function(t,e){var n=ab(t+"");if(arguments.length<2){var r=sb(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?pb:e?hb:fb)(n,e))};function vb(){this.textContent=""}function gb(t){return function(){this.textContent=t}}function yb(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}var mb=function(t){return arguments.length?this.each(null==t?vb:("function"===typeof t?yb:gb)(t)):this.node().textContent};function _b(){this.innerHTML=""}function bb(t){return function(){this.innerHTML=t}}function wb(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}var xb=function(t){return arguments.length?this.each(null==t?_b:("function"===typeof t?wb:bb)(t)):this.node().innerHTML};function Ob(){this.nextSibling&&this.parentNode.appendChild(this)}var Tb=function(){return this.each(Ob)};function Sb(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var Eb=function(){return this.each(Sb)};function Mb(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===V_&&e.documentElement.namespaceURI===V_?e.createElement(t):e.createElementNS(n,t)}}function Ab(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var Pb=function(t){var e=G_(t);return(e.local?Ab:Mb)(e)},Cb=function(t){var e="function"===typeof t?t:Pb(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))};function kb(){return null}var Lb=function(t,e){var n="function"===typeof t?t:Pb(t),r=null==e?kb:"function"===typeof e?e:p_(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))};function Db(){var t=this.parentNode;t&&t.removeChild(this)}var Rb=function(){return this.each(Db)};function jb(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ib(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var Ub=function(t){return this.select(t?Ib:jb)},Nb=function(t){return arguments.length?this.property("__data__",t):this.node().__data__},Hb={},Vb=null;if("undefined"!==typeof document){var Fb=document.documentElement;"onmouseenter"in Fb||(Hb={mouseenter:"mouseover",mouseleave:"mouseout"})}function Gb(t,e,n){return t=Bb(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function Bb(t,e,n){return function(r){var i=Vb;Vb=r;try{t.call(this,this.__data__,e,n)}finally{Vb=i}}}function zb(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 Wb(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 Yb(t,e,n){var r=Hb.hasOwnProperty(t.type)?Gb:Bb;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 qb=function(t,e,n){var r,i,o=zb(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?Yb:Wb,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 Xb(t,e,n){var r=Z_(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 $b(t,e){return function(){return Xb(this,t,e)}}function Zb(t,e){return function(){return Xb(this,t,e.apply(this,arguments))}}var Kb=function(t,e){return this.each(("function"===typeof e?Zb:$b)(t,e))},Qb=[null];function Jb(t,e){this._groups=t,this._parents=e}function tw(){return new Jb([[document.documentElement]],Qb)}Jb.prototype=tw.prototype={constructor:Jb,select:d_,selectAll:y_,filter:__,data:M_,enter:w_,exit:A_,join:P_,merge:C_,order:k_,sort:L_,call:R_,nodes:j_,node:I_,size:U_,empty:N_,each:H_,attr:$_,style:tb,property:ob,classed:db,text:mb,html:xb,raise:Tb,lower:Eb,append:Cb,insert:Lb,remove:Rb,clone:Ub,datum:Nb,on:qb,dispatch:Kb};var ew=tw,nw=function(t){return"string"===typeof t?new Jb([[document.querySelector(t)]],[document.documentElement]):new Jb([[t]],Qb)},rw={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 "},iw=rw,ow=iw,aw=n("2da1"),sw=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)}}(),uw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return sw(e,t),e.getSVGElementSize=function(t,e){t.attr||(t=nw(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:ef.getProperty(t.node(),"width","baseVal","value"),height:ef.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=e.split("."),r=n[0],i=t.select(e);return i.empty()?t.append(r).attr("class",n.slice(1).join(" ")):i},e.prototype.init=function(){this.styleHolderElement(),this.addSVGElement(),this.model.getOptions().resizable&&this.addResizeListener(),this.addHolderListeners()},e.prototype.update=function(){this.styleHolderElement()},e.prototype.styleHolderElement=function(){var t=this.getHolder();nw(this.getHolder()).classed(ow.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=ef.getProperty(this.model.getOptions(),"style","prefix"),e=nw(this.getHolder()).append("svg").classed(ow.prefix+"--"+t+"--chart-svg",!0).attr("height","100%").attr("width","100%");this.svg=e.node()},e.prototype.getMainSVG=function(){return this.svg},e.prototype.addHolderListeners=function(){var t=this,e=this.getHolder();e&&nw(e).on("mouseover",(function(){t.services.events.dispatchEvent(N.Chart.MOUSEOVER)})).on("mouseout",(function(){t.services.events.dispatchEvent(N.Chart.MOUSEOUT)}))},e.prototype.addResizeListener=function(){var t=this,e=this.getHolder();if(e){var n=e.clientWidth,r=e.clientHeight,i=ef.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(N.Chart.RESIZE))}),12.5),o=new aw["a"](i);o.observe(e)}},e}(h_),cw=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)}}(),lw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return cw(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}(h_),hw={value:function(){}};function fw(){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 pw(r)}function pw(t){this._=t}function dw(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 vw(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function gw(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=hw,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}pw.prototype=fw.prototype={constructor:pw,on:function(t,e){var n,r=this._,i=dw(t+"",r),o=-1,a=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!==typeof e)throw new Error("invalid callback: "+e);while(++o<a)if(n=(t=i[o]).type)r[n]=gw(r[n],t.name,e);else if(null==e)for(n in r)r[n]=gw(r[n],t.name,null);return this}while(++o<a)if((n=(t=i[o]).type)&&(n=vw(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new pw(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)}};var yw,mw,_w=fw,bw=0,ww=0,xw=0,Ow=1e3,Tw=0,Sw=0,Ew=0,Mw="object"===typeof performance&&performance.now?performance:Date,Aw="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Pw(){return Sw||(Aw(Cw),Sw=Mw.now()+Ew)}function Cw(){Sw=0}function kw(){this._call=this._time=this._next=null}function Lw(t,e,n){var r=new kw;return r.restart(t,e,n),r}function Dw(){Pw(),++bw;var t,e=yw;while(e)(t=Sw-e._time)>=0&&e._call.call(null,t),e=e._next;--bw}function Rw(){Sw=(Tw=Mw.now())+Ew,bw=ww=0;try{Dw()}finally{bw=0,Iw(),Sw=0}}function jw(){var t=Mw.now(),e=t-Tw;e>Ow&&(Ew-=e,Tw=t)}function Iw(){var t,e,n=yw,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:yw=e);mw=t,Uw(r)}function Uw(t){if(!bw){ww&&(ww=clearTimeout(ww));var e=t-Sw;e>24?(t<1/0&&(ww=setTimeout(Rw,t-Mw.now()-Ew)),xw&&(xw=clearInterval(xw))):(xw||(Tw=Mw.now(),xw=setInterval(jw,Ow)),bw=1,Aw(Rw))}}kw.prototype=Lw.prototype={constructor:kw,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?Pw():+n)+(null==e?0:+e),this._next||mw===this||(mw?mw._next=this:yw=this,mw=this),this._call=t,this._time=n,Uw()},stop:function(){this._call&&(this._call=null,this._time=1/0,Uw())}};var Nw=function(t,e,n){var r=new kw;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r},Hw=_w("start","end","cancel","interrupt"),Vw=[],Fw=0,Gw=1,Bw=2,zw=3,Ww=4,Yw=5,qw=6,Xw=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};Qw(t,n,{name:e,index:r,group:i,on:Hw,tween:Vw,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Fw})};function $w(t,e){var n=Kw(t,e);if(n.state>Fw)throw new Error("too late; already scheduled");return n}function Zw(t,e){var n=Kw(t,e);if(n.state>zw)throw new Error("too late; already running");return n}function Kw(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Qw(t,e,n){var r,i=t.__transition;function o(t){n.state=Gw,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!==Gw)return u();for(c in i)if(f=i[c],f.name===n.name){if(f.state===zw)return Nw(a);f.state===Ww?(f.state=qw,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<e&&(f.state=qw,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(Nw((function(){n.state===zw&&(n.state=Ww,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=Bw,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Bw){for(n.state=zw,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=Yw,1),o=-1,a=r.length;while(++o<a)r[o].call(t,i);n.state===Yw&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=qw,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Lw(o,0,n.time)}var Jw,tx,ex,nx,rx=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>Bw&&n.state<Yw,n.state=qw,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}},ix=function(t){return this.each((function(){rx(this,t)}))},ox=180/Math.PI,ax={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},sx=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)*ox,skewX:Math.atan(u)*ox,scaleX:a,scaleY:s}};function ux(t){return"none"===t?ax:(Jw||(Jw=document.createElement("DIV"),tx=document.documentElement,ex=document.defaultView),Jw.style.transform=t,t=ex.getComputedStyle(tx.appendChild(Jw),null).getPropertyValue("transform"),tx.removeChild(Jw),t=t.slice(7,-1).split(","),sx(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function cx(t){return null==t?ax:(nx||(nx=document.createElementNS("http://www.w3.org/2000/svg","g")),nx.setAttribute("transform",t),(t=nx.transform.baseVal.consolidate())?(t=t.matrix,sx(t.a,t.b,t.c,t.d,t.e,t.f)):ax)}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:jv(t,i)},{i:u-2,x:jv(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:jv(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:jv(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:jv(t,n)},{i:s-2,x:jv(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 hx=lx(ux,"px, ","px)","deg)"),fx=lx(cx,", ",")",")");function px(t,e){var n,r;return function(){var i=Zw(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 dx(t,e,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=Zw(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 vx=function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=Kw(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?px:dx)(n,t,e))};function gx(t,e,n){var r=t._id;return t.each((function(){var t=Zw(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return Kw(t,r).value[e]}}var yx=function(t,e){var n;return("number"===typeof e?jv:e instanceof sv?Pv:(n=sv(e))?(e=n,Pv):Fv)(t,e)};function mx(t){return function(){this.removeAttribute(t)}}function _x(t){return function(){this.removeAttributeNS(t.space,t.local)}}function bx(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 wx(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 xx(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 Ox(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 Tx=function(t,e){var n=G_(t),r="transform"===n?fx:yx;return this.attrTween(t,"function"===typeof e?(n.local?Ox:xx)(n,r,gx(this,"attr."+t,e)):null==e?(n.local?_x:mx)(n):(n.local?wx:bx)(n,r,e))};function Sx(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Ex(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Mx(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Ex(t,i)),n}return i._value=e,i}function Ax(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Sx(t,i)),n}return i._value=e,i}var Px=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=G_(t);return this.tween(n,(r.local?Mx:Ax)(r,e))};function Cx(t,e){return function(){$w(this,t).delay=+e.apply(this,arguments)}}function kx(t,e){return e=+e,function(){$w(this,t).delay=e}}var Lx=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?Cx:kx)(e,t)):Kw(this.node(),e).delay};function Dx(t,e){return function(){Zw(this,t).duration=+e.apply(this,arguments)}}function Rx(t,e){return e=+e,function(){Zw(this,t).duration=e}}var jx=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?Dx:Rx)(e,t)):Kw(this.node(),e).duration};function Ix(t,e){if("function"!==typeof e)throw new Error;return function(){Zw(this,t).ease=e}}var Ux=function(t){var e=this._id;return arguments.length?this.each(Ix(e,t)):Kw(this.node(),e).ease},Nx=function(t){"function"!==typeof t&&(t=m_(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 pO(r,this._parents,this._name,this._id)},Hx=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 pO(a,this._parents,this._name,this._id)};function Vx(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 Fx(t,e,n){var r,i,o=Vx(e)?$w:Zw;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var Gx=function(t,e){var n=this._id;return arguments.length<2?Kw(this.node(),n).on.on(t):this.each(Fx(n,t,e))};function Bx(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}var zx=function(){return this.on("end.remove",Bx(this._id))},Wx=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=p_(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,Xw(h[f],e,n,f,h,Kw(s,n)));return new pO(o,this._parents,e,n)},Yx=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=g_(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=Kw(u,n),v=0,g=p.length;v<g;++v)(f=p[v])&&Xw(f,e,n,v,p,d);o.push(p),a.push(u)}return new pO(o,a,e,n)},qx=ew.prototype.constructor,Xx=function(){return new qx(this._groups,this._parents)};function $x(t,e){var n,r,i;return function(){var o=eb(this,t),a=(this.style.removeProperty(t),eb(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}function Zx(t){return function(){this.style.removeProperty(t)}}function Kx(t,e,n){var r,i,o=n+"";return function(){var a=eb(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}function Qx(t,e,n){var r,i,o;return function(){var a=eb(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=eb(this,t)),a===u?null:a===r&&u===i?o:(i=u,o=e(r=a,s))}}function Jx(t,e){var n,r,i,o,a="style."+e,s="end."+a;return function(){var u=Zw(this,t),c=u.on,l=null==u.value[a]?o||(o=Zx(e)):void 0;c===n&&i===l||(r=(n=c).copy()).on(s,i=l),u.on=r}}var tO=function(t,e,n){var r="transform"===(t+="")?hx:yx;return null==e?this.styleTween(t,$x(t,r)).on("end.style."+t,Zx(t)):"function"===typeof e?this.styleTween(t,Qx(t,r,gx(this,"style."+t,e))).each(Jx(this._id,t)):this.styleTween(t,Kx(t,r,e),n).on("end.style."+t,null)};function eO(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function nO(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&eO(t,o,n)),r}return o._value=e,o}var rO=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,nO(t,e,null==n?"":n))};function iO(t){return function(){this.textContent=t}}function oO(t){return function(){var e=t(this);this.textContent=null==e?"":e}}var aO=function(t){return this.tween("text","function"===typeof t?oO(gx(this,"text",t)):iO(null==t?"":t+""))};function sO(t){return function(e){this.textContent=t.call(this,e)}}function uO(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&sO(r)),e}return r._value=t,r}var cO=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,uO(t))},lO=function(){for(var t=this._name,e=this._id,n=vO(),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=Kw(a,e);Xw(a,t,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new pO(r,this._parents,t,n)},hO=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=Zw(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}))}))},fO=0;function pO(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function dO(t){return ew().transition(t)}function vO(){return++fO}var gO=ew.prototype;function yO(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}pO.prototype=dO.prototype={constructor:pO,select:Wx,selectAll:Yx,filter:Nx,merge:Hx,selection:Xx,transition:lO,call:gO.call,nodes:gO.nodes,node:gO.node,size:gO.size,empty:gO.empty,each:gO.each,on:Gx,attr:Tx,attrTween:Px,style:tO,styleTween:rO,text:aO,textTween:cO,remove:zx,tween:vx,delay:Lx,duration:jx,ease:Ux,end:hO};var mO={time:null,delay:0,duration:250,ease:yO};function _O(t,e){var n;while(!(n=t.__transition)||!(n=n[e]))if(!(t=t.parentNode))return mO.time=Pw(),mO;return n}var bO=function(t){var e,n;t instanceof pO?(e=t._id,t=t._name):(e=vO(),(n=mO).time=Pw(),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])&&Xw(a,t,e,c,s,n||_O(a,e));return new pO(r,this._parents,t,e)};ew.prototype.interrupt=ix,ew.prototype.transition=bO;var wO=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)}}(),xO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pendingTransitions={},e}return wO(e,t),e.prototype.init=function(){var t=this;this.services.events.addEventListener(N.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=dO(t).duration(ef.getProperty(kf,t,"duration")||kf.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=dO(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}(h_);function OO(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 TO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=OO(t),r=OO(e);return n.getFullYear()-r.getFullYear()}function SO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=OO(t),r=OO(e),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function EO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=OO(t),r=OO(e),i=SO(n,r),o=Math.abs(TO(n,r));n.setFullYear(n.getFullYear()-i*o);var a=SO(n,r)===-i,s=i*(o-a);return 0===s?0:s}function MO(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 AO(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=OO(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 PO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=OO(t),r=MO(e),i=n.getMonth()+r,o=new Date(0);o.setFullYear(n.getFullYear(),i,1),o.setHours(0,0,0,0);var a=AO(o);return n.setMonth(i,Math.min(a,n.getDate())),n}function CO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=MO(e);return PO(t,12*n)}function kO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=MO(e);return CO(t,-n)}function LO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=OO(t),r=OO(e),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return 12*i+o}function DO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=OO(t),r=OO(e),i=SO(n,r),o=Math.abs(LO(n,r));n.setMonth(n.getMonth()-i*o);var a=SO(n,r)===-i,s=i*(o-a);return 0===s?0:s}function RO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=MO(e);return PO(t,-n)}var jO=6e4;function IO(t){var e=new Date(t.getTime()),n=Math.ceil(e.getTimezoneOffset());e.setSeconds(0,0);var r=e.getTime()%jO;return n*jO+r}function UO(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=OO(t);return e.setHours(0,0,0,0),e}var NO=864e5;function HO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=UO(t),r=UO(e),i=n.getTime()-IO(n),o=r.getTime()-IO(r);return Math.round((i-o)/NO)}function VO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=OO(t),r=OO(e),i=SO(n,r),o=Math.abs(HO(n,r));n.setDate(n.getDate()-i*o);var a=SO(n,r)===-i,s=i*(o-a);return 0===s?0:s}function FO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=OO(t),r=MO(e);return n.setDate(n.getDate()+r),n}function GO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=MO(e);return FO(t,-n)}function BO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=OO(t),r=OO(e);return n.getTime()-r.getTime()}var zO=36e5;function WO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=BO(t,e)/zO;return n>0?Math.floor(n):Math.ceil(n)}function YO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=OO(t).getTime(),r=MO(e);return new Date(n+r)}var qO=36e5;function XO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=MO(e);return YO(t,n*qO)}function $O(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=MO(e);return XO(t,-n)}var ZO=6e4;function KO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=BO(t,e)/ZO;return n>0?Math.floor(n):Math.ceil(n)}var QO=6e4;function JO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=MO(e);return YO(t,n*QO)}function tT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=MO(e);return JO(t,-n)}function eT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=BO(t,e)/1e3;return n>0?Math.floor(n):Math.ceil(n)}function nT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=MO(e);return YO(t,1e3*n)}function rT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=MO(e);return nT(t,-n)}var iT=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)}}(),oT=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 iT(e,t),e.prototype.getDomainAxisPosition=function(){return this.domainAxisPosition},e.prototype.getRangeAxisPosition=function(){return this.rangeAxisPosition},e.prototype.update=function(t){var e=this;void 0===t&&(t=!0),this.findDomainAndRangeAxes(),this.determineOrientation();var n=Object.keys(x).map((function(t){return x[t]}));n.forEach((function(t){e.scales[t]=e.createScale(t)}))},e.prototype.findDomainAndRangeAxes=function(){var t=this.findMainVerticalAxisPosition(),e=this.findMainHorizontalAxisPosition(),n=this.findDomainAndRangeAxesPositions(t,e);this.domainAxisPosition=n.domainAxisPosition,this.rangeAxisPosition=n.rangeAxisPosition},e.prototype.determineOrientation=function(){this.rangeAxisPosition!==x.LEFT&&this.rangeAxisPosition!==x.RIGHT||this.domainAxisPosition!==x.BOTTOM&&this.domainAxisPosition!==x.TOP?this.orientation=O.HORIZONTAL:this.orientation=O.VERTICAL},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.getDomainScale=function(){return this.scales[this.domainAxisPosition]},e.prototype.getRangeScale=function(){return this.scales[this.rangeAxisPosition]},e.prototype.getMainXAxisPosition=function(){var t=[x.BOTTOM,x.TOP];return[this.domainAxisPosition,this.rangeAxisPosition].find((function(e){return t.indexOf(e)>-1}))},e.prototype.getMainYAxisPosition=function(){var t=[x.LEFT,x.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){var r=this.model.getOptions(),i=ef.getProperty(r,"axes",t),o=this.scaleTypes[t],a=this.scales[t],s=i.mapsTo,u=void 0!==e[s]?e[s]:e;return o===T.LABELS?a(u)+a.step()/2:o===T.TIME?a(new Date(u)):a(u)},e.prototype.getDomainValue=function(t,e){return this.getValueFromScale(this.domainAxisPosition,t,e)},e.prototype.getRangeValue=function(t,e){return this.getValueFromScale(this.rangeAxisPosition,t,e)},e.prototype.getDomainIdentifier=function(){var t=this.model.getOptions(),e=ef.getProperty(t,"axes",this.domainAxisPosition);return e.mapsTo},e.prototype.getRangeIdentifier=function(){var t=this.model.getOptions(),e=ef.getProperty(t,"axes",this.rangeAxisPosition);return e.mapsTo},e.prototype.getDataFromDomain=function(t){var e=this.model.getDisplayData(),n=this.getDomainIdentifier(),r=this.scaleTypes[this.domainAxisPosition];return r===T.TIME?e.filter((function(e){var r=e[n];return"string"!==typeof r&&void 0!==r.getTime||(r=new Date(r)),r.getTime()===t.getTime()})):e.filter((function(e){return e[n]===t}))},e.prototype.extendsDomain=function(t,e){var n=this.model.getOptions(),r=ef.getProperty(n,"axes",t);if(r.scaleType===T.TIME){var i=ef.getProperty(n,"timeScale","addSpaceOnEdges");return aT(e,i)}return sT(e,Lf.paddingRatio)},e.prototype.findMainVerticalAxisPosition=function(){var t=this.model.getOptions(),e=ef.getProperty(t,"axes");return null===ef.getProperty(e,x.LEFT)&&null!==ef.getProperty(e,x.RIGHT)||!0===ef.getProperty(e,x.RIGHT,"main")?x.RIGHT:x.LEFT},e.prototype.findMainHorizontalAxisPosition=function(){var t=this.model.getOptions(),e=ef.getProperty(t,"axes");return null===ef.getProperty(e,x.BOTTOM)&&null!==ef.getProperty(e,x.TOP)||!0===ef.getProperty(e,x.TOP,"main")?x.TOP:x.BOTTOM},e.prototype.findDomainAndRangeAxesPositions=function(t,e){var n=this.model.getOptions(),r=ef.getProperty(n,"axes",t),i=ef.getProperty(n,"axes",e),o=r.scaleType||T.LINEAR,a=i.scaleType||T.LINEAR,s={domainAxisPosition:null,rangeAxisPosition:null};return a===T.LABELS||a===T.TIME?(s.domainAxisPosition=e,s.rangeAxisPosition=t):o===T.LABELS||o===T.TIME?(s.domainAxisPosition=t,s.rangeAxisPosition=e):(s.domainAxisPosition=e,s.rangeAxisPosition=t),s},e.prototype.getScaleDomain=function(t){var e=this.model.getOptions(),n=ef.getProperty(e,"axes",t),r=n.includeZero,i=ef.getProperty(n,"scaleType")||T.LINEAR;if(this.model.isDataEmpty())return[];var o,a,s=this.model.getDisplayData(),u=n.mapsTo,c=n.percentage;if(n.domain)return i===T.LABELS?n.domain:this.extendsDomain(t,n.domain);if(c)return[0,100];if(n&&i===T.LABELS)return kd(s,(function(t){return t[u]})).keys();if(n.stacked){var l=this.model.getDataValuesGroupedByKeys();a=l.map((function(t){return Ed(jd(t))}))}else a=s.map((function(t){return t[u]}));return i!==T.TIME&&r&&a.push(0),o=vd(a),o=this.extendsDomain(t,o),o},e.prototype.createScale=function(t){var e=this.model.getOptions(),n=ef.getProperty(e,"axes",t);if(!n)return null;var r,i=ef.getProperty(n,"scaleType")||T.LINEAR;return this.scaleTypes[t]=i,r=i===T.TIME?t_():i===T.LOG?Ug().base(n.base||10):i===T.LABELS?Fd():Eg(),r.domain(this.getScaleDomain(t)),r},e.prototype.getHighestDomainThreshold=function(){var t=ef.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!==T.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=ef.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}(h_);function aT(t,e){var n=new Date(t[0]),r=new Date(t[1]);return EO(r,n)>1?[kO(n,e),CO(r,e)]:DO(r,n)>1?[RO(n,e),PO(r,e)]:VO(r,n)>1?[GO(n,e),FO(r,e)]:WO(r,n)>1?[$O(n,e),XO(r,e)]:KO(r,n)>30?[tT(n,30*e),JO(r,30*e)]:KO(r,n)>1?[tT(n,e),JO(r,e)]:eT(r,n)>15?[rT(n,15*e),nT(r,15*e)]:eT(r,n)>1?[rT(n,e),nT(r,e)]:[n,r]}function sT(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 uT(t){this._context=t}uT.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 cT=function(t){return new uT(t)},lT=function(){};function hT(t){this._context=t}hT.prototype={areaStart:lT,areaEnd:lT,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 fT=function(t){return new hT(t)};function pT(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 dT(t){this._context=t}dT.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:pT(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:pT(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var vT=function(t){return new dT(t)};function gT(t){this._context=t}gT.prototype={areaStart:lT,areaEnd:lT,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:pT(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var yT=function(t){return new gT(t)};function mT(t){this._context=t}mT.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:pT(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var _T=function(t){return new mT(t)};function bT(t,e){this._basis=new dT(t),this._beta=e}bT.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 wT=function t(e){function n(t){return 1===e?new dT(t):new bT(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function xT(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 OT(t,e){this._context=t,this._k=(1-e)/6}OT.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:xT(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:xT(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 TT=function t(e){function n(t){return new OT(t,e)}return n.tension=function(e){return t(+e)},n}(0);function ST(t,e){this._context=t,this._k=(1-e)/6}ST.prototype={areaStart:lT,areaEnd:lT,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:xT(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 ET=function t(e){function n(t){return new ST(t,e)}return n.tension=function(e){return t(+e)},n}(0);function MT(t,e){this._context=t,this._k=(1-e)/6}MT.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:xT(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 AT=function t(e){function n(t){return new MT(t,e)}return n.tension=function(e){return t(+e)},n}(0),PT=Math.abs,CT=Math.atan2,kT=Math.cos,LT=Math.max,DT=Math.min,RT=Math.sin,jT=Math.sqrt,IT=1e-12,UT=Math.PI,NT=UT/2,HT=2*UT;function VT(t){return t>1?0:t<-1?UT:Math.acos(t)}function FT(t){return t>=1?NT:t<=-1?-NT:Math.asin(t)}function GT(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>IT){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>IT){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 BT(t,e){this._context=t,this._alpha=e}BT.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:GT(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 zT=function t(e){function n(t){return e?new BT(t,e):new OT(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function WT(t,e){this._context=t,this._alpha=e}WT.prototype={areaStart:lT,areaEnd:lT,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:GT(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 YT=function t(e){function n(t){return e?new WT(t,e):new ST(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function qT(t,e){this._context=t,this._alpha=e}qT.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:GT(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 XT=function t(e){function n(t){return e?new qT(t,e):new MT(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function $T(t){return t<0?-1:1}function ZT(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($T(o)+$T(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function KT(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function QT(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 JT(t){this._context=t}function tS(t){this._context=new eS(t)}function eS(t){this._context=t}function nS(t){return new JT(t)}function rS(t){return new tS(t)}function iS(t){this._context=t}function oS(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]}JT.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:QT(this,this._t0,KT(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,QT(this,KT(this,n=ZT(this,t,e)),n);break;default:QT(this,this._t0,n=ZT(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(tS.prototype=Object.create(JT.prototype)).point=function(t,e){JT.prototype.point.call(this,e,t)},eS.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)}},iS.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=oS(t),i=oS(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 aS=function(t){return new iS(t)};function sS(t,e){this._context=t,this._t=e}sS.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 uS=function(t){return new sS(t,.5)};function cS(t){return new sS(t,0)}function lS(t){return new sS(t,1)}var hS,fS,pS=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)}}(),dS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.curveTypes={curveLinear:cT,curveLinearClosed:fT,curveBasis:vT,curveBasisClosed:yT,curveBasisOpen:_T,curveBundle:wT,curveCardinal:TT,curveCardinalClosed:ET,curveCardinalOpen:AT,curveCatmullRom:zT,curveCatmullRomClosed:YT,curveCatmullRomOpen:XT,curveMonotoneX:nS,curveMonotoneY:rS,curveNatural:aS,curveStep:uS,curveStepAfter:lS,curveStepBefore:cS},e}return pS(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}(h_),vS=function(){function t(t,e,n){this.configs={},this.model=t,this.services=e,n&&(this.configs=n),this.parent||this.setParent(nw(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=ef.getProperty(this.model.getOptions(),"style","prefix");this.parent.classed(ow.prefix+"--"+n+"--"+this.type,!0),e&&e.classed(ow.prefix+"--"+n+"--"+this.type,!1)}},t.prototype.getParent=function(){return this.parent},t.prototype.getContainerSVG=function(){if(this.type){var t=ef.getProperty(this.model.getOptions(),"style","prefix");return uw.appendOrSelect(this.parent,"g."+ow.prefix+"--"+t+"--"+this.type)}return this.parent},t}(),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)}}(),yS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="legend",e}return gS(e,t),e.prototype.render=function(){var t=this,e=this.getContainerSVG().attr("role",o.GRAPHICS_DOCUMENT),n=this.model.getOptions(),r=e.selectAll("g.legend-item").data(this.model.getDataGroups(),(function(t){return t.name})),i=r.enter().append("g").classed("legend-item",!0),a=n.legend.checkbox.radius;i.append("rect").classed("checkbox",!0).merge(r.select("rect.checkbox")).attr("width",2*a).attr("height",2*a).attr("rx",1).attr("ry",1).style("fill",(function(e){return e.status===n.legend.items.status.ACTIVE?t.model.getStrokeColor(e.name):null})).classed("active",(function(t,e){return t.status===n.legend.items.status.ACTIVE})),i.append("text").merge(r.select("text")).html((function(t){return t.name})).attr("alignment-baseline","middle"),this.breakItemsIntoLines(i),r.exit().on("mouseover",null).on("click",null).on("mouseout",null).remove();var s=ef.getProperty(this.model.getOptions(),"legend","clickable");e.classed("clickable",s),s&&i.size()>0&&this.addEventListeners()},e.prototype.breakItemsIntoLines=function(t){var e=this,n=this.getContainerSVG(),r=this.model.getOptions(),i=r.legend.checkbox.radius,o=r.legend.items.horizontalSpace,a=r.legend.items.verticalSpace,s=r.legend.items.textYOffset,u=2*i+r.legend.checkbox.spaceAfter,c=r.legend.items.status.DISABLED,l=this.model.getDataGroups(),h=l.some((function(t){return t.status===c})),f=ef.getProperty(r,"legend","orientation"),p=0,d=0,v=0;t.merge(n.selectAll("g.legend-item")).each((function(t,r){var c=nw(this),l=nw(n.selectAll("g.legend-item").nodes()[r-1]);if(0===v||l.empty()||f===A.VERTICAL)f===A.VERTICAL&&0!==r&&d++;else{var g=uw.getSVGElementSize(e.parent,{useAttr:!0}),y=uw.getSVGElementSize(nw(this).select("text"),{useBBox:!0}),m=uw.getSVGElementSize(l.select("text"),{useBBox:!0});p=p+m.width+u+o,p+u+y.width>g.width&&(d++,p=0,v=0)}var _=0;c.select("rect.checkbox").attr("x",p).attr("y",_+d*a);var b=s+d*a;c.select("text").attr("x",p+u).attr("y",_+b),b,h&&c.select("g.check").empty()?(c.append("g").classed("check",!0).html('\n\t\t\t\t\t\t\t<svg focusable="false" preserveAspectRatio="xMidYMid meet"\n\t\t\t\t\t\t\t\txmlns="http://www.w3.org/2000/svg" width="32" height="32"\n\t\t\t\t\t\t\t\tviewBox="0 0 32 32" aria-hidden="true"\n\t\t\t\t\t\t\t\tstyle="will-change: transform;">\n\t\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\t<title>Checkmark</title>\n\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t'),c.select("g.check svg").attr("width",2*i-1).attr("height",2*i-1).attr("x",parseFloat(c.select("rect.checkbox").attr("x"))+.5).attr("y",parseFloat(c.select("rect.checkbox").attr("y"))+.5)):h||c.select("g.check").empty()||c.select("g.check").remove(),v++}))},e.prototype.addEventListeners=function(){var t=this,e=this.getContainerSVG(),n=this.model.getOptions();e.selectAll("g.legend-item").on("mouseover",(function(){t.services.events.dispatchEvent(N.Legend.ITEM_HOVER,{hoveredElement:nw(this)});var e=n.legend.checkbox.radius,r=nw(this);r.append("rect").classed("hover-stroke",!0).attr("x",parseFloat(r.select("rect.checkbox").attr("x"))-2).attr("y",parseFloat(r.select("rect.checkbox").attr("y"))-2).attr("width",2*e+4).attr("height",2*e+4).attr("rx",3).attr("ry",3).lower()})).on("click",(function(){t.services.events.dispatchEvent(N.Legend.ITEM_CLICK,{clickedElement:nw(this)});var e=nw(this),n=e.datum();t.model.toggleDataLabel(n.name)})).on("mouseout",(function(){var e=nw(this);e.select("rect.hover-stroke").remove(),t.services.events.dispatchEvent(N.Legend.ITEM_MOUSEOUT,{hoveredElement:e})}))},e}(vS),mS=function(){var t,e=Vb;while(t=e.sourceEvent)e=t;return e},_S=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]},bS=function(t){var e=mS();return e.changedTouches&&(e=e.changedTouches[0]),_S(t,e)};(function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"})(fS||(fS={}));var wS=(hS={},hS[fS.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)}},hS[fS.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)}},hS[fS.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)}},hS[fS.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)}},hS),xS="undefined"!==typeof window?window:{innerHeight:0,scrollY:0,innerWidth:0,scrollX:0},OS=function(){function t(t){void 0===t&&(t={}),this.positions=wS,this.positions=Object.assign({},wS,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:xS.innerHeight-xS.scrollY,height:xS.innerWidth-xS.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}(),TS=(new OS,OS);function SS(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=OO(t);return!isNaN(e)}var ES={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 MS(t,e,n){var r;return n=n||{},r="string"===typeof ES[t]?ES[t]:1===e?ES[t].one:ES[t].other.replace("{{count}}",e),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r}function AS(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 PS={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},CS={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},kS={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},LS={date:AS({formats:PS,defaultWidth:"full"}),time:AS({formats:CS,defaultWidth:"full"}),dateTime:AS({formats:kS,defaultWidth:"full"})},DS=LS,RS={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function jS(t,e,n,r){return RS[t]}function IS(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 US={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},NS={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},HS={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"]},VS={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"]},FS={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"}},GS={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 BS(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 zS={ordinalNumber:BS,era:IS({values:US,defaultWidth:"wide"}),quarter:IS({values:NS,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:IS({values:HS,defaultWidth:"wide"}),day:IS({values:VS,defaultWidth:"wide"}),dayPeriod:IS({values:FS,defaultWidth:"wide",formattingValues:GS,defaultFormattingWidth:"wide"})},WS=zS;function YS(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 qS(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)?$S(l,(function(t){return t.test(r)})):XS(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 XS(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function $S(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}var ZS=/^(\d+)(th|st|nd|rd)?/i,KS=/\d+/i,QS={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},JS={any:[/^b/i,/^(a|c)/i]},tE={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},eE={any:[/1/i,/2/i,/3/i,/4/i]},nE={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},rE={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]},iE={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},oE={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]},aE={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},sE={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}},uE={ordinalNumber:YS({matchPattern:ZS,parsePattern:KS,valueCallback:function(t){return parseInt(t,10)}}),era:qS({matchPatterns:QS,defaultMatchWidth:"wide",parsePatterns:JS,defaultParseWidth:"any"}),quarter:qS({matchPatterns:tE,defaultMatchWidth:"wide",parsePatterns:eE,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:qS({matchPatterns:nE,defaultMatchWidth:"wide",parsePatterns:rE,defaultParseWidth:"any"}),day:qS({matchPatterns:iE,defaultMatchWidth:"wide",parsePatterns:oE,defaultParseWidth:"any"}),dayPeriod:qS({matchPatterns:aE,defaultMatchWidth:"any",parsePatterns:sE,defaultParseWidth:"any"})},cE=uE,lE={code:"en-US",formatDistance:MS,formatLong:DS,formatRelative:jS,localize:WS,match:cE,options:{weekStartsOn:0,firstWeekContainsDate:1}},hE=lE;function fE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=MO(e);return YO(t,-n)}function pE(t,e){var n=t<0?"-":"",r=Math.abs(t).toString();while(r.length<e)r="0"+r;return n+r}var dE={y:function(t,e){var n=t.getUTCFullYear(),r=n>0?n:1-n;return pE("yy"===e?r%100:r,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):pE(n+1,2)},d:function(t,e){return pE(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 pE(t.getUTCHours()%12||12,e.length)},H:function(t,e){return pE(t.getUTCHours(),e.length)},m:function(t,e){return pE(t.getUTCMinutes(),e.length)},s:function(t,e){return pE(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 pE(i,e.length)}},vE=dE,gE=864e5;function yE(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=OO(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/gE)+1}function mE(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=1,n=OO(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 _E(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=OO(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=mE(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=mE(o);return e.getTime()>=i.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function bE(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=_E(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=mE(n);return r}var wE=6048e5;function xE(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=OO(t),n=mE(e).getTime()-bE(e).getTime();return Math.round(n/wE)+1}function OE(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:MO(i),a=null==n.weekStartsOn?o:MO(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=OO(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 TE(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=OO(t,e),r=n.getUTCFullYear(),i=e||{},o=i.locale,a=o&&o.options&&o.options.firstWeekContainsDate,s=null==a?1:MO(a),u=null==i.firstWeekContainsDate?s:MO(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=OE(c,e),h=new Date(0);h.setUTCFullYear(r,0,u),h.setUTCHours(0,0,0,0);var f=OE(h,e);return n.getTime()>=l.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function SE(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:MO(i),a=null==n.firstWeekContainsDate?o:MO(n.firstWeekContainsDate),s=TE(t,e),u=new Date(0);u.setUTCFullYear(s,0,a),u.setUTCHours(0,0,0,0);var c=OE(u,e);return c}var EE=6048e5;function ME(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=OO(t),r=OE(n,e).getTime()-SE(n,e).getTime();return Math.round(r/EE)+1}var AE={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},PE={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 vE.y(t,e)},Y:function(t,e,n,r){var i=TE(t,r),o=i>0?i:1-i;if("YY"===e){var a=o%100;return pE(a,2)}return"Yo"===e?n.ordinalNumber(o,{unit:"year"}):pE(o,e.length)},R:function(t,e){var n=_E(t);return pE(n,e.length)},u:function(t,e){var n=t.getUTCFullYear();return pE(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 pE(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 pE(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 vE.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 pE(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=ME(t,r);return"wo"===e?n.ordinalNumber(i,{unit:"week"}):pE(i,e.length)},I:function(t,e,n){var r=xE(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):pE(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):vE.d(t,e)},D:function(t,e,n){var r=yE(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):pE(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 pE(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 pE(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 pE(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?AE.noon:0===i?AE.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?AE.evening:i>=12?AE.afternoon:i>=4?AE.morning:AE.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 vE.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):vE.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):pE(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):pE(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):vE.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):vE.s(t,e)},S:function(t,e){return vE.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 kE(o);case"XXXX":case"XX":return LE(o);case"XXXXX":case"XXX":default:return LE(o,":")}},x:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"x":return kE(o);case"xxxx":case"xx":return LE(o);case"xxxxx":case"xxx":default:return LE(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"+CE(o,":");case"OOOO":default:return"GMT"+LE(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"+CE(o,":");case"zzzz":default:return"GMT"+LE(o,":")}},t:function(t,e,n,r){var i=r._originalDate||t,o=Math.floor(i.getTime()/1e3);return pE(o,e.length)},T:function(t,e,n,r){var i=r._originalDate||t,o=i.getTime();return pE(o,e.length)}};function CE(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+pE(o,2)}function kE(t,e){if(t%60===0){var n=t>0?"-":"+";return n+pE(Math.abs(t)/60,2)}return LE(t,e)}function LE(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t),o=pE(Math.floor(i/60),2),a=pE(i%60,2);return r+o+n+a}var DE=PE;function RE(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 jE(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 IE(t,e){var n,r=t.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return RE(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}}",RE(i,e)).replace("{{time}}",jE(o,e))}var UE={p:jE,P:IE},NE=UE,HE=["D","DD"],VE=["YY","YYYY"];function FE(t){return-1!==HE.indexOf(t)}function GE(t){return-1!==VE.indexOf(t)}function BE(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 zE=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,WE=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,YE=/^'([^]*?)'?$/,qE=/''/g,XE=/[a-zA-Z]/;function $E(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||hE,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:MO(a),u=null==i.firstWeekContainsDate?s:MO(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:MO(c),h=null==i.weekStartsOn?l:MO(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=OO(t);if(!SS(f))throw new RangeError("Invalid time value");var p=IO(f),d=fE(f,p),v={firstWeekContainsDate:u,weekStartsOn:h,locale:o,_originalDate:f},g=r.match(WE).map((function(t){var e=t[0];if("p"===e||"P"===e){var n=NE[e];return n(t,o.formatLong,v)}return t})).join("").match(zE).map((function(t){if("''"===t)return"'";var e=t[0];if("'"===e)return ZE(t);var n=DE[e];if(n)return!i.useAdditionalWeekYearTokens&&GE(t)&&BE(t),!i.useAdditionalDayOfYearTokens&&FE(t)&&BE(t),n(d,t,o.localize,v);if(e.match(XE))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return t})).join("");return g}function ZE(t){return t.match(YE)[1].replace(qE,"'")}var KE=[["15seconds",15e3],["minute",6e4],["30minutes",18e5],["hourly",36e5],["daily",864e5],["monthly",2592e6],["quarterly",7776e6],["yearly",31104e6]];function QE(t,e,n,r){var i=0===e,o=2===Number($E(new Date(t),"c")),a=1===Number($E(new Date(t),"q"));switch(n){case"15seconds":return i||iM(t)||oM(t)||aM(t);case"minute":return i||iM(t)||oM(t)||aM(t);case"30minutes":return i||iM(t)||oM(t)||aM(t);case"hourly":return i||iM(t)||oM(t)||aM(t);case"daily":return r?i||o||aM(t):i||oM(t)||aM(t);case"monthly":return i||aM(t);case"quarterly":return i||a;case"yearly":return!1;default:throw new Error(n+" is not a valid time interval.")}}function JE(t,e,n,r){var i=r.showDayName,o="daily"===n&&i?"weekly":n,a=new Date(t),s=ef.getProperty(r,"timeIntervalFormats")[o],u=ef.getProperty(s,"primary"),c=ef.getProperty(s,"secondary"),l=QE(t,e,n,i)?u:c,h=r.localeObject;return $E(a,l,{locale:h})}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 eM(t){if(t)return t.slice(1).map((function(e,n){return e-t[n]}))}function nM(t){var e=KE.reduce((function(e,n,r){n[0];var i=n[1],o=KE[e][1],a=Math.abs(o-t),s=Math.abs(i-t);return a<s?e:r}),0);return KE[e][0]}function rM(t){if(1===t.length)return"15seconds";var e=eM(t),n=Sd(e);return nM(n)}function iM(t){var e=tM(t),n=e.s,r=e.m,i=e.H;return 0===i&&0===r&&0===n}function oM(t){var e=tM(t),n=e.d,r=e.s,i=e.m,o=e.H;return 1===n&&0===o&&0===i&&0===r}function aM(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 sM=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)}}(),uM=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="threshold",i.positionService=new TS,i}return sM(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n=this.configs,r=n.value,i=n.fillColor,o=n.axisPosition,a=n.index,s=ef.getProperty(this.model.getOptions(),"style","prefix");this.thresholdClass=ow.prefix+"--"+s+"--threshold",this.thresholdIdentifierClass=o+"-"+a,this.threshold=uw.appendOrSelect(this.parent,"g."+this.thresholdClass+"."+this.thresholdIdentifierClass).raise();var u=uw.appendOrSelect(this.threshold,"rect.threshold-hoverable-area"),c=uw.appendOrSelect(this.threshold,"line.threshold-line");c.style("stroke",i);var l=this.services.cartesianScales.getScaleByPosition(o),h=this.services.cartesianScales.getScaleTypeByPosition(o),f=this.services.cartesianScales.getMainXScale(),p=this.services.cartesianScales.getMainYScale(),d=h===T.LABELS,v=f.range(),g=v[0],y=v[1],m=p.range(),_=m[0],b=m[1],w=this.services.cartesianScales,x=w.getOrientation(),S=function(t){return w.getDomainValue(t)},E=function(t){return w.getRangeValue(t)},M=ef.flipDomainAndRangeBasedOnOrientation(S,E,x),A=M[0],P=M[1];if(x===O.VERTICAL){var C=A(r)+(d?l.step()/2:0);this.threshold.transition(this.services.transitions.getTransition("threshold-update",t)).attr("transform","translate("+C+", "+b+")"),c.attr("y2",_-b),u.attr("width",_-b).classed("rotate",!0)}else{C=P(r)+(d?l.step()/2:0);this.threshold.transition(this.services.transitions.getTransition("threshold-update",t)).attr("transform","translate("+g+", "+C+")"),c.attr("x2",y-g),u.attr("width",y-g)}var k=this;this.services.events.addEventListener(N.Threshold.SHOW,(function(t){var n=t.detail.hoveredElement.node();n===k.threshold&&(e.setThresholdLabelPosition(),e.label.classed("hidden",!1))})),this.services.events.addEventListener(N.Threshold.HIDE,(function(t){e.label.classed("hidden",!0)})),this.appendThresholdLabel(),this.addEventListeners()},e.prototype.getFormattedValue=function(){var t=this.configs,e=t.value,n=t.axisPosition,r=this.model.getOptions(),i=this.services.cartesianScales.getScaleTypeByPosition(n);if(i===T.TIME){var o=[x.LEFT,x.RIGHT].includes(n),a=this.services.cartesianScales.getMainXScale(),s=this.services.cartesianScales.getMainYScale(),u=o?s:a,c=ef.getProperty(r,"timeScale"),l=rM(u.ticks());return JE(e,0,l,c)}return e.toLocaleString("en")},e.prototype.appendThresholdLabel=function(){var t=this.configs,e=t.value,n=t.valueFormatter,r=t.fillColor,i=t.label,o=void 0===i?"Threshold":i,a=nw(this.services.domUtils.getHolder()),s=n?n(e):this.getFormattedValue();this.label=uw.appendOrSelect(a,"div."+this.thresholdClass+"--label."+this.thresholdIdentifierClass),this.label.html(o+": "+s).classed("hidden",!0).style("background-color",r)},e.prototype.setThresholdLabelPosition=function(){var t=this.services.domUtils.getHolder(),e=this.label.node(),n=bS(t),r=this.positionService.findBestPlacementAt({left:n[0],top:n[1]},e,[fS.RIGHT,fS.LEFT,fS.TOP,fS.BOTTOM],(function(){return{width:t.offsetWidth,height:t.offsetHeight}})),i=this.positionService.findPositionAt({left:n[0],top:n[1]},e,r);this.positionService.setElement(e,i)},e.prototype.addEventListeners=function(){var t=this;uw.appendOrSelect(this.threshold,"rect").on("mouseover mousemove",(function(){t.threshold.classed("active",!0),t.services.events.dispatchEvent(N.Threshold.SHOW,{hoveredElement:nw(t.threshold)})})).on("mouseout",(function(){t.threshold.classed("active",!1),t.services.events.dispatchEvent(N.Threshold.HIDE,{hoveredElement:nw(t.threshold)})}))},e}(vS),cM=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)}}(),lM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="title",e}return cM(e,t),e.prototype.truncateTitle=function(){var t=uw.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttr:!0}).width,e=uw.appendOrSelect(this.parent,"text.title");if(!(t<=0)&&e.node().getComputedTextLength()>t){e.append("tspan").text("...");var n=uw.appendOrSelect(e,"tspan").node().getComputedTextLength(),r=Math.floor(t-n),i=this.model.getOptions().title,o=this.getSubstringIndex(e.node(),0,i.length-1,r);e.html(i.substring(0,o-1)).append("tspan").text("...");var a=this;e.on("mouseenter",(function(){a.services.events.dispatchEvent(N.Tooltip.SHOW,{hoveredElement:e,type:E.TITLE})})).on("mouseout",(function(){a.services.events.dispatchEvent(N.Tooltip.HIDE,{hoveredElement:e})}))}},e.prototype.render=function(){var t=this.getContainerSVG(),e=uw.appendOrSelect(t,"text.title");e.attr("x",0).attr("y",20).html(this.model.getOptions().title),this.truncateTitle()},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}(vS),hM=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)}}(),fM=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="tooltip",i.positionService=new TS,i.init(),i}return hM(e,t),e.prototype.init=function(){var t=this,e=nw(this.services.domUtils.getHolder()),n=ef.getProperty(this.model.getOptions(),"style","prefix");this.tooltip=uw.appendOrSelect(e,"div."+ow.prefix+"--"+n+"--tooltip");var r=uw.appendOrSelect(this.tooltip,"div.content-box");this.tooltip.style("max-width",null),this.services.events.addEventListener(N.Tooltip.SHOW,(function(i){if(i.detail.type===E.DATAPOINT&&ef.getProperty(t.model.getOptions(),"tooltip","datapoint","enabled")||i.detail.type===E.GRIDLINE&&ef.getProperty(t.model.getOptions(),"tooltip","gridline","enabled")){var o=nw(Vb.target).datum(),a=void 0;i.detail.multidata?(o=i.detail.multidata,a=t.getMultilineTooltipHTML(o)):a=t.getTooltipHTML(o,E.DATAPOINT),ef.getProperty(t.model.getOptions(),"tooltip","customHTML")?r.html(t.model.getOptions().tooltip.customHTML(o,a)):r.html(a),t.positionTooltip()}else if(i.detail.type===E.TITLE){var s=uw.appendOrSelect(e,"svg."+ow.prefix+"--"+n+"--chart-svg"),u=uw.getSVGElementSize(s).width*ef.getProperty(t.model.getOptions(),"tooltip","title","width");t.tooltip.style("max-width",u),r.html(t.getTooltipHTML(i.detail.hoveredElement,E.TITLE));var c=t.getTooltipPosition(i.detail.hoveredElement.node());t.positionTooltip(c)}t.tooltip.classed("hidden",!1)})),this.services.events.addEventListener(N.Tooltip.HIDE,(function(){t.tooltip.classed("hidden",!0)}))},e.prototype.getTooltipHTML=function(t,e){if(e===E.TITLE){var n=this.model.getOptions().title;return'<div class="title-tooltip"><text>'+n+"</text></div>"}var r=ef.getProperty(t,"data")?t.data:t,i=this.model.getOptions().data.groupMapsTo,o=this.services.cartesianScales.getRangeIdentifier(),a=ef.getProperty(this.model.getOptions(),"tooltip","valueFormatter")?this.model.getOptions().tooltip.valueFormatter(r[o]):r[o].toLocaleString("en"),s=r[i];return'<div class="datapoint-tooltip">\n\t\t\t\t\t<p class="label">'+s+'</p>\n\t\t\t\t\t<p class="value">'+a+"</p>\n\t\t\t\t</div>"},e.prototype.getMultilineTooltipHTML=function(t){var e=this;t.sort((function(t,e){return e.value-t.value}));this.services.cartesianScales.getDomainScale().scaleType;return"<ul class='multi-tooltip'>"+t.map((function(t){var n=e.model.getOptions().data.groupMapsTo,r=e.services.cartesianScales.getRangeIdentifier(),i=ef.getProperty(e.model.getOptions(),"tooltip","valueFormatter"),o=i?i(t[r]):t[r].toLocaleString("en"),a=e.model.getStrokeColor(t[n]);return'\n\t\t\t\t<li>\n\t\t\t\t\t<div class="datapoint-tooltip">\n\t\t\t\t\t\t<a style="background-color:'+a+'" class="tooltip-color"></a>\n\t\t\t\t\t\t<p class="label">'+t[n]+'</p>\n\t\t\t\t\t\t<p class="value">'+o+"</p>\n\t\t\t\t\t</div>\n\t\t\t\t</li>"})).join("")+"</ul>"},e.prototype.render=function(){this.tooltip.classed("hidden",!0)},e.prototype.getTooltipPosition=function(t){var e=nw(this.services.domUtils.getHolder()).node().getBoundingClientRect(),n=t.getBoundingClientRect(),r=this.model.getOptions().tooltip.title.verticalOffset,i={left:n.left-e.left+n.width/2,top:n.top-e.top-r};return{placement:S.BOTTOM,position:i}},e.prototype.positionTooltip=function(t){var e,n=this.services.domUtils.getHolder(),r=this.tooltip.node(),i=bS(n);if(t){var o=t.placement===S.TOP?fS.TOP:fS.BOTTOM;e=this.positionService.findPositionAt(t.position,r,o)}else{var a=this.positionService.findBestPlacementAt({left:i[0],top:i[1]},r,[fS.RIGHT,fS.LEFT,fS.TOP,fS.BOTTOM],(function(){return{width:n.offsetWidth,height:n.offsetHeight}})),s=this.model.getOptions().tooltip.datapoint.horizontalOffset;a===fS.LEFT&&(s*=-1),e=this.positionService.findPositionAt({left:i[0]+s,top:i[1]},r,a)}this.positionService.setElement(r,e)},e}(vS),pM=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)}}(),dM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pM(e,t),e.prototype.init=function(){var e=this,n=nw(this.services.domUtils.getHolder()),r=ef.getProperty(this.model.getOptions(),"style","prefix");this.tooltip=uw.appendOrSelect(n,"div."+ow.prefix+"--"+r+"--tooltip");var i=uw.appendOrSelect(this.tooltip,"div.content-box");this.tooltip.style("max-width",null),this.services.events.addEventListener(N.Tooltip.SHOW,(function(o){if(o.detail.type===E.DATAPOINT&&ef.getProperty(e.model.getOptions(),"tooltip","datapoint","enabled")||o.detail.type===E.GRIDLINE&&ef.getProperty(e.model.getOptions(),"tooltip","gridline","enabled")){var a=o.detail.hoveredElement.datum(),s=o.detail.hoveredElement.node(),u=void 0;o.detail.multidata?(a=o.detail.multidata,u=e.getMultilineTooltipHTML(a)):(a=o.detail.data?o.detail.data:o.detail.hoveredElement.datum(),u=e.getTooltipHTML(a)),ef.getProperty(e.model.getOptions(),"tooltip","customHTML")?i.html(e.model.getOptions().tooltip.customHTML(a,u)):i.html(u);var c=e.getTooltipPosition(s,a);e.positionTooltip(o.detail.multidata?void 0:c)}else if(o.detail.type===E.TITLE){var l=uw.appendOrSelect(n,"svg."+ow.prefix+"--"+r+"--chart-svg"),h=uw.getSVGElementSize(l).width*ef.getProperty(e.model.getOptions(),"tooltip","title","width");e.tooltip.style("max-width",h),i.html(t.prototype.getTooltipHTML.call(e,o.detail.hoveredElement,E.TITLE));c=t.prototype.getTooltipPosition.call(e,o.detail.hoveredElement.node());e.positionTooltip(c)}e.tooltip.classed("hidden",!1)})),this.services.events.addEventListener(N.Tooltip.HIDE,(function(){e.tooltip.classed("hidden",!0)}))},e.prototype.getTooltipPosition=function(t,e){void 0===e&&(e=nw(t).datum());var n=nw(this.services.domUtils.getHolder()).node().getBoundingClientRect(),r=t.getBoundingClientRect(),i=this.model.getOptions().tooltip.datapoint.verticalOffset;if(e.value<=0){var o={left:r.left-n.left+r.width/2,top:r.bottom-n.top+i};return{placement:S.BOTTOM,position:o}}o={left:r.left-n.left+r.width/2,top:r.top-n.top-i};return{placement:S.TOP,position:o}},e.prototype.getTooltipHTML=function(t){var e=ef.getProperty(this.model.getOptions(),"tooltip","valueFormatter")?this.model.getOptions().tooltip.valueFormatter(t.value):t.value.toLocaleString("en");return'<div class="datapoint-tooltip"><p class="value">'+e+"</p></div>"},e.prototype.getMultilineTooltipHTML=function(t){var e=this,n=t;n.reverse(),this.services.cartesianScales.getOrientation()===O.VERTICAL&&n.reverse();var r=n.reduce((function(t,e){return t+e.value}),0);return r=ef.getProperty(this.model.getOptions(),"tooltip","valueFormatter")?this.model.getOptions().tooltip.valueFormatter(r):r.toLocaleString("en"),"<ul class='multi-tooltip'>"+n.map((function(t){var n=ef.getProperty(e.model.getOptions(),"tooltip","valueFormatter")?e.model.getOptions().tooltip.valueFormatter(t.value):t.value.toLocaleString("en"),r=e.model.getStrokeColor(t.datasetLabel,t.label);return'\n\t\t\t\t<li>\n\t\t\t\t\t<div class="datapoint-tooltip">\n\t\t\t\t\t\t<a style="background-color:'+r+'" class="tooltip-color"></a>\n\t\t\t\t\t\t<p class="label">'+t.datasetLabel+'</p>\n\t\t\t\t\t\t<p class="value">'+n+"</p>\n\t\t\t\t\t</div>\n\t\t\t\t</li>"})).join("")+"<li>\n\t\t\t\t\t<div class='total-val'>\n\t\t\t\t\t\t<p class='label'>Total</p>\n\t\t\t\t\t\t<p class='value'>"+r+"</p>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t</ul>"},e}(fM),vM=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(){return null!==t&&t.apply(this,arguments)||this}return vM(e,t),e.prototype.getTooltipHTML=function(t,e){if(e===E.TITLE){var n=this.model.getOptions().title;return'<div class="title-tooltip"><text>'+n+"</text></div>"}var r=t.data,i=this.model.getOptions().data.groupMapsTo,o=ef.getProperty(this.model.getOptions(),"tooltip","valueFormatter")?this.model.getOptions().tooltip.valueFormatter(r.value):r.value.toLocaleString("en"),a=r[i];return'<div class="datapoint-tooltip">\n\t\t\t\t<p class="label">'+a+'</p>\n\t\t\t\t<p class="value">'+o+"</p>\n\t\t\t</div>"},e}(fM),yM=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)}}(),mM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return yM(e,t),e.prototype.getTooltipHTML=function(e,n){if(n===E.TITLE)return t.prototype.getTooltipHTML.call(this,e,n);var r=this.model.getOptions().data.groupMapsTo,i=this.services.cartesianScales.getRangeIdentifier(),o=ef.getProperty(this.model.getOptions(),"tooltip","valueFormatter"),a=o?o(e[i]):e[i].toLocaleString("en"),s=this.model.getStrokeColor(e[r]);return'\n\t\t\t<div class="datapoint-tooltip">\n\t\t\t\t<a style="background-color:'+s+'" class="tooltip-color"></a>\n\t\t\t\t<p class="label">'+e[r]+'</p>\n\t\t\t\t<p class="value">'+a+"</p>\n\t\t\t</div>"},e}(fM),_M=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)}}(),bM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _M(e,t),e.prototype.getMultilineTooltipHTML=function(t){var e=this,n=this.model.getOptions(),r=n.data.groupMapsTo,i=n.radar.axes,o=(i.angle,i.value);return t.sort((function(t,e){return e[o]-t[o]})),"<ul class='multi-tooltip'>"+t.map((function(t){var i=ef.getProperty(n,"tooltip","valueFormatter"),a=i?i(t[o]):t[o],s=e.model.getStrokeColor(t[r]);return'\n\t\t\t\t<li>\n\t\t\t\t\t<div class="datapoint-tooltip">\n\t\t\t\t\t\t<a style="background-color:'+s+'" class="tooltip-color"></a>\n\t\t\t\t\t\t<p class="label">'+t[r]+'</p>\n\t\t\t\t\t\t<p class="value">'+a+"</p>\n\t\t\t\t\t</div>\n\t\t\t\t</li>"})).join("")+"</ul>"},e}(fM),wM=Math.PI,xM=2*wM,OM=1e-6,TM=xM-OM;function SM(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function EM(){return new SM}SM.prototype=EM.prototype={constructor:SM,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>OM)if(Math.abs(l*s-u*c)>OM&&i){var f=n-o,p=r-a,d=s*s+u*u,v=f*f+p*p,g=Math.sqrt(d),y=Math.sqrt(h),m=i*Math.tan((wM-Math.acos((d+h-v)/(2*g*y)))/2),_=m/y,b=m/g;Math.abs(_-1)>OM&&(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)>OM||Math.abs(this._y1-c)>OM)&&(this._+="L"+u+","+c),n&&(h<0&&(h=h%xM+xM),h>TM?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):h>OM&&(this._+="A"+n+","+n+",0,"+ +(h>=wM)+","+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 MM=EM;function AM(t){return t[0]}function PM(t){return t[1]}var CM=function(){var t=AM,e=PM,n=o_(!0),r=null,i=cT,o=null;function a(a){var s,u,c,l=a.length,h=!1;for(null==r&&(o=i(c=MM())),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:o_(+e),a):t},a.y=function(t){return arguments.length?(e="function"===typeof t?t:o_(+t),a):e},a.defined=function(t){return arguments.length?(n="function"===typeof t?t:o_(!!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},kM=function(){var t=AM,e=null,n=o_(0),r=PM,i=o_(!0),o=null,a=cT,s=null;function u(u){var c,l,h,f,p,d=u.length,v=!1,g=new Array(d),y=new Array(d);for(null==o&&(s=a(p=MM())),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],y[h]);s.lineEnd(),s.areaEnd()}v&&(g[c]=+t(f,c,u),y[c]=+n(f,c,u),s.point(e?+e(f,c,u):g[c],r?+r(f,c,u):y[c]))}if(p)return s=null,p+""||null}function c(){return CM().defined(i).curve(a).context(o)}return u.x=function(n){return arguments.length?(t="function"===typeof n?n:o_(+n),e=null,u):t},u.x0=function(e){return arguments.length?(t="function"===typeof e?e:o_(+e),u):t},u.x1=function(t){return arguments.length?(e=null==t?null:"function"===typeof t?t:o_(+t),u):e},u.y=function(t){return arguments.length?(n="function"===typeof t?t:o_(+t),r=null,u):n},u.y0=function(t){return arguments.length?(n="function"===typeof t?t:o_(+t),u):n},u.y1=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:o_(+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:o_(!!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},LM=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)}}(),DM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",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"]?Cf.opacity.unselected:Cf.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-mouseout-area")).attr("opacity",Cf.opacity.selected)},e}return LM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(N.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(N.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG(),r=this.services.cartesianScales,i=r.getOrientation(),o=kM().curve(this.services.curves.getD3Curve());i===O.VERTICAL?o.x((function(t,e){return r.getDomainValue(t,e)})).y0(r.getRangeValue(0)).y1((function(t,e){return r.getRangeValue(t,e)})):o.x0(r.getRangeValue(0)).x1((function(t,e){return r.getRangeValue(t,e)})).y((function(t,e){return r.getDomainValue(t,e)}));var a=this.model.getGroupedData(),s=n.selectAll("path.area").data(a,(function(t){return t.name}));s.exit().attr("opacity",0).remove();var u=s.enter().append("path").attr("opacity",0);u.merge(s).attr("fill",(function(t){return e.model.getFillColor(t.name)})).transition(this.services.transitions.getTransition("area-update-enter",t)).attr("opacity",Cf.opacity.selected).attr("class","area").attr("d",(function(t){var e=t.data;return o(e)}))},e.prototype.destroy=function(){this.parent.selectAll("path.area").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(N.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(N.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(vS),RM=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)}}(),jM=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;e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-hover-area")).attr("opacity",(function(t){return t[0].group!==n.datum().name?Cf.opacity.unselected:Cf.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-mouseout-area")).attr("opacity",Cf.opacity.selected)},e}return RM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(N.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(N.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){void 0===t&&(t=!0);var e=this.getContainerSVG(),n=this,r=this.model.getOptions(),i=this.services.cartesianScales.getMainXScale(),a=this.services.cartesianScales.getMainYScale(),s=this.services.cartesianScales.getDomainAxisPosition(),u=this.services.cartesianScales.getScaleTypeByPosition(s),c=u===T.TIME;if(c){var l=Object.keys(r.axes).some((function(t){return r.axes[t].percentage})),h=this.model.getStackedData({percentage:l}),f=e.selectAll("path.area").data(h,(function(t){return t[0].group}));this.areaGenerator=kM().x((function(t){return i(new Date(t.data.sharedStackKey))})).y0((function(t){return a(t[0])})).y1((function(t){return a(t[1])})).curve(this.services.curves.getD3Curve()),f.exit().attr("opacity",0).remove();var p=f.enter().append("path").attr("opacity",0);p.merge(f).data(h,(function(t){return t[0].group})).attr("fill",(function(t){return n.model.getFillColor(t[0].group)})).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","area").transition(this.services.transitions.getTransition("area-update-enter",t)).attr("opacity",Cf.opacity.selected).attr("class","area").attr("d",this.areaGenerator)}},e.prototype.destroy=function(){this.parent.selectAll("path.area").on("mouseover",null).on("mousemove",null).on("mouseout",null)},e}(vS),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)}}(),UM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return IM(e,t),e.prototype.getBarWidth=function(t){var e=this.model.getOptions(),n=this.services.cartesianScales.getMainXScale();return n.step?Math.min(e.bars.maxWidth,n.step()/2):Math.min(e.bars.maxWidth,5/n.ticks().length*e.bars.maxWidth)},e}(vS),NM=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(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.model.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 NM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(N.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(N.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.model.getOptions(),r=n.data.groupMapsTo,i=this.getContainerSVG(),a=i.selectAll("path.bar").data(this.model.getDisplayData(),(function(t){return t[r]}));a.exit().attr("opacity",0).remove();var s=a.enter().append("path").attr("opacity",0);s.merge(a).classed("bar",!0).attr("width",this.getBarWidth.bind(this)).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("fill",(function(t){return e.model.getFillColor(t[r])})).attr("d",(function(t,n){var r=e.getBarWidth(),i=e.services.cartesianScales.getDomainValue(t,n)-r/2,o=i+r,a=e.services.cartesianScales.getRangeValue(0),s=e.services.cartesianScales.getRangeValue(t,n);return ef.generateSVGPathString({x0:i,x1:o,y0:a,y1:s},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this.model.getOptions(),e=t.data.groupMapsTo,n=this;this.parent.selectAll("path.bar").on("mouseover",(function(t){var r=nw(this);r.classed("hovered",!0),r.transition(n.services.transitions.getTransition("graph_element_mouseover_fill_update")).attr("fill",(function(t){return sv(n.model.getFillColor(t[e])).darker(.7).toString()})),n.services.events.dispatchEvent(N.Bar.BAR_MOUSEOVER,{element:r,datum:t}),n.services.events.dispatchEvent(N.Tooltip.SHOW,{hoveredElement:r,type:E.DATAPOINT})})).on("mousemove",(function(t){n.services.events.dispatchEvent(N.Bar.BAR_MOUSEMOVE,{element:nw(this),datum:t})})).on("click",(function(t){n.services.events.dispatchEvent(N.Bar.BAR_CLICK,{element:nw(this),datum:t})})).on("mouseout",(function(t){var r=nw(this);r.classed("hovered",!1),r.transition(n.services.transitions.getTransition("graph_element_mouseout_fill_update")).attr("fill",(function(t){return n.model.getFillColor(t[e])})),n.services.events.dispatchEvent(N.Bar.BAR_MOUSEOUT,{element:r,datum:t}),n.services.events.dispatchEvent(N.Tooltip.HIDE,{hoveredElement:r})}))},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(N.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(N.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(UM),VM=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)}}(),FM=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.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 VM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(N.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(N.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.model.getDisplayData(),r=this.model.getOptions(),i=r.data.groupMapsTo,a=this.services.cartesianScales.getDomainIdentifier();this.setGroupScale();var s=this.getContainerSVG(),u=kd(n,(function(t){return t[a]})).keys(),c=s.selectAll("g.bars").data(u,(function(t){return t}));c.exit().attr("opacity",0).remove();var l=c.enter().append("g").classed("bars",!0).attr("role",o.GROUP).attr("aria-labelledby",(function(t){return t})),h=l.merge(c).attr("transform",(function(t,n){var r=e.services.cartesianScales.getDomainValue(t,n),i=r-e.getGroupWidth()/2;return e.services.cartesianScales.getOrientation()===O.VERTICAL?"translate("+i+", 0)":"translate(0, "+i+")"})).selectAll("path.bar").data((function(t){return e.getDataCorrespondingToLabel(t)}));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("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.getRangeValue(0),u=e.services.cartesianScales.getRangeValue(t.value);return ef.generateSVGPathString({x0:o,x1:a,y0:s,y1:u},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this,e=this.model.getOptions(),n=e.data.groupMapsTo;this.parent.selectAll("path.bar").on("mouseover",(function(e){var r=nw(this);r.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")).attr("fill",(function(e){return sv(t.model.getFillColor(e[n])).darker(.7).toString()})),t.services.events.dispatchEvent(N.Bar.BAR_MOUSEOVER,{element:r,datum:e}),t.services.events.dispatchEvent(N.Tooltip.SHOW,{hoveredElement:r,type:E.DATAPOINT})})).on("mousemove",(function(e){t.services.events.dispatchEvent(N.Bar.BAR_MOUSEMOVE,{element:nw(this),datum:e})})).on("click",(function(e){t.services.events.dispatchEvent(N.Bar.BAR_CLICK,{element:nw(this),datum:e})})).on("mouseout",(function(e){var n=nw(this);n.classed("hovered",!1);var r=t.model.getOptions().data.groupMapsTo;n.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")).attr("fill",(function(e){return t.model.getFillColor(e[r])})),t.services.events.dispatchEvent(N.Bar.BAR_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(N.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(N.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(N.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.getDataCorrespondingToLabel=function(t){var e=this.model.getDisplayData(),n=this.services.cartesianScales.getDomainIdentifier();return e.filter((function(e){return e[n]===t}))},e.prototype.getGroupWidth=function(){var t=this.model.getActiveDataGroupNames().length,e=this.getTotalGroupPadding();return this.getBarWidth()*t+e},e.prototype.getTotalGroupPadding=function(){var t=this.model.getActiveDataGroupNames().length;if(1===t)return 0;var e=this.services.cartesianScales.getDomainScale(),n=Math.min(5,e.step()/70*5);return n*(t-1)},e.prototype.getBarWidth=function(){var t=this.model.getOptions(),e=ef.getProperty(t,"bars","width"),n=ef.getProperty(t,"bars","maxWidth");if(null!==e){if(null===n)return e;if(e<=n)return e}var r=this.model.getActiveDataGroupNames().length,i=this.getTotalGroupPadding(),o=this.services.cartesianScales.getDomainScale();return Math.min(n,(o.step()-i)/r)},e.prototype.setGroupScale=function(){this.groupScale=Fd().domain(this.model.getActiveDataGroupNames()).rangeRound([0,this.getGroupWidth()])},e}(UM),GM=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)}}(),BM=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;e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t.datasetLabel!==n.datum()["key"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-mouseout-bar")).attr("opacity",1)},e}return GM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(N.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(N.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getContainerSVG(),r=this.model.getDisplayData(),i=this.model.getOptions(),a=i.data.groupMapsTo,s=this.services.cartesianScales.getDomainIdentifier(),u=kd(r,(function(t){return t[s]})).keys(),c=this.model.getStackedData(),l=n.selectAll("g.bars").data(c,(function(t){return t.key}));l.exit().attr("opacity",0).remove(),l.enter().append("g").classed("bars",!0).attr("role",o.GROUP);var h=n.selectAll("g.bars").selectAll("path.bar").data((function(t){return t}));h.exit().remove(),h.enter().append("path").merge(h).classed("bar",!0).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("fill",(function(t){return e.model.getFillColor(t[a])})).attr("d",(function(t,n){var r=u[n],o=e.getBarWidth(),a=e.services.cartesianScales.getDomainValue(r,n)-o/2,s=a+o,c=e.services.cartesianScales.getRangeValue(t[0],n),l=e.services.cartesianScales.getRangeValue(t[1],n);return Math.abs(l-c)>0&&Math.abs(l-c)>i.bars.dividerSize&&(e.services.cartesianScales.getOrientation()===O.VERTICAL?l+=1:l-=1),ef.generateSVGPathString({x0:a,x1:s,y0:c,y1:l},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this.model.getOptions(),e=t.data.groupMapsTo,n=this;this.parent.selectAll("path.bar").on("mouseover",(function(t){var r=nw(this);r.transition(n.services.transitions.getTransition("graph_element_mouseover_fill_update")).attr("fill",(function(t){return sv(n.model.getFillColor(t[e])).darker(.7).toString()})),n.services.events.dispatchEvent(N.Bar.BAR_MOUSEOVER,{element:r,datum:t})})).on("mousemove",(function(t){var e,r=n.model.getDisplayData(),i=nw(this),o=n.services.cartesianScales.getDomainIdentifier(),a=n.services.cartesianScales.getRangeIdentifier(),s=n.model.getOptions().data.groupMapsTo,u=r.find((function(e){return e[a]===t.data[t.group]&&e[o].toString()===t.data.sharedStackKey&&e[s]===t.group}));void 0===u&&(e={},e[o]=t.data.sharedStackKey,e[a]=t.data[t.group],e[s]=t.group,u=e),n.services.events.dispatchEvent(N.Tooltip.SHOW,{hoveredElement:i,data:u,type:E.DATAPOINT})})).on("click",(function(t){n.services.events.dispatchEvent(N.Bar.BAR_CLICK,{element:nw(this),datum:t})})).on("mouseout",(function(t){var r=nw(this);r.classed("hovered",!1),r.transition(n.services.transitions.getTransition("graph_element_mouseout_fill_update")).attr("fill",(function(t){return n.model.getFillColor(t[e])})),n.services.events.dispatchEvent(N.Bar.BAR_MOUSEOUT,{element:r,datum:t}),n.services.events.dispatchEvent(N.Tooltip.HIDE,{hoveredElement:r})}))},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(N.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(N.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(UM),zM=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(){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.model.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 zM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(N.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(N.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut);var e=this.configs.fadeInOnChartHolderMouseover;e&&(t.addEventListener(N.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.addEventListener(N.Chart.MOUSEOUT,this.handleChartHolderOnMouseOut))},e.prototype.render=function(t){var e,n=this.getContainerSVG(),r=this.model.getOptions(),i=r.data.groupMapsTo,o=this.services.cartesianScales.getDomainIdentifier(),a=this.services.cartesianScales.getRangeIdentifier(),s=this.configs.stacked;if(s){var u=Object.keys(r.axes).some((function(t){return r.axes[t].percentage}));e=this.model.getStackedData({percentage:u})}else e=this.model.getDisplayData().filter((function(t){return void 0!==t[a]&&null!==t[a]}));var c=n.selectAll("circle.dot").data(e,(function(t){return t[i]+"-"+t[o]}));c.exit().attr("opacity",0).remove();var l=c.enter().append("circle").classed("dot",!0).attr("opacity",0),h=l.merge(c);this.styleCircles(h,t),this.addEventListeners()},e.prototype.isDatapointThresholdAnomaly=function(t,e){var n=this.configs.handleThresholds;if(!n)return!1;var r=this.services.cartesianScales,i=r.getOrientation(),o=ef.flipDomainAndRangeBasedOnOrientation(this.services.cartesianScales.getHighestDomainThreshold(),this.services.cartesianScales.getHighestRangeThreshold(),i),a=o[0],s=o[1],u=ef.flipDomainAndRangeBasedOnOrientation((function(t,e){return r.getDomainValue(t,e)}),(function(t,e){return r.getRangeValue(t,e)}),i),c=u[0],l=u[1],h=c(t,e),f=l(t,e);return s&&a?f<=s.scaleValue&&h>=a.scaleValue:s?f<=s.scaleValue:a?h>=a.scaleValue:void 0},e.prototype.styleCircles=function(t,e){var n=this,r=this.model.getOptions(),i=r.points.filled,a=this.services,s=a.cartesianScales,u=a.transitions,c=r.data.groupMapsTo,l=s.getDomainIdentifier(),h=s.getRangeIdentifier(),f=function(t,e){return s.getDomainValue(t,e)},p=function(t,e){return s.getRangeValue(t,e)},d=ef.flipDomainAndRangeBasedOnOrientation(f,p,s.getOrientation()),v=d[0],g=d[1],y=this.configs.fadeInOnChartHolderMouseover;t.raise().classed("dot",!0).classed("threshold-anomaly",(function(t,e){return n.isDatapointThresholdAnomaly(t,e)})).classed("filled",(function(t){return n.model.getIsFilled(t[c],t[l],t,i)})).classed("unfilled",(function(t){return!n.model.getIsFilled(t[c],t[l],t,i)})).transition(u.getTransition("scatter-update-enter",e)).attr("cx",v).attr("cy",g).attr("r",r.points.radius).attr("fill",(function(t){if(n.model.getIsFilled(t[c],t[l],t,i))return n.model.getFillColor(t[c],t[l],t)})).attr("fill-opacity",i?.2:1).attr("stroke",(function(t){return n.model.getStrokeColor(t[c],t[l],t)})).attr("opacity",y?0:1).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","point").attr("aria-label",(function(t){return t[h]})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this,e=this.model.getOptions().data.groupMapsTo,n=this.services.cartesianScales.getDomainIdentifier();this.parent.selectAll("circle").on("mouseover mousemove",(function(r){var i=nw(this);i.classed("hovered",!0).style("fill",(function(r){return t.model.getFillColor(r[e],r[n],r)}));var o=t.services.cartesianScales.getDomainValue(r),a=t.services.cartesianScales.getRangeValue(r),s=t.model.getDisplayData().filter((function(e){return o===t.services.cartesianScales.getDomainValue(e)&&a===t.services.cartesianScales.getRangeValue(e)}));t.services.events.dispatchEvent(N.Tooltip.SHOW,{hoveredElement:i,multidata:s.length>1?s:null,type:E.DATAPOINT});var u="mouseover"===Vb.type?N.Scatter.SCATTER_MOUSEOVER:N.Scatter.SCATTER_MOUSEMOVE;t.services.events.dispatchEvent(u,{element:i,datum:r})})).on("click",(function(e){t.services.events.dispatchEvent(N.Scatter.SCATTER_CLICK,{element:nw(this),datum:e})})).on("mouseout",(function(e){var n=nw(this);n.classed("hovered",!1),t.configs.filled||n.style("fill",null),t.services.events.dispatchEvent(N.Scatter.SCATTER_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(N.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.destroy=function(){this.parent.selectAll("circle").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(N.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(N.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),t.removeEventListener(N.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.removeEventListener(N.Chart.MOUSEOUT,this.handleChartHolderOnMouseOut)},e}(vS),YM=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)}}(),qM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bubble",e}return YM(e,t),e.prototype.getRadiusScale=function(t){var e=this.model.getOptions(),n=e.bubble.radiusMapsTo,r=t.data(),i=r.map((function(t){return t[n]})).filter((function(t){return t})),o=uw.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttr:!0}),a=i.length>0,s=a?vd(i):[1,1];return Eg().domain(s).range(a?e.bubble.radiusRange(o,r):[4,4])},e.prototype.styleCircles=function(t,e){var n=this,r=this.model.getOptions(),i=r.bubble.radiusMapsTo,a=this.getRadiusScale(t),s=r.data.groupMapsTo,u=this.services.cartesianScales.getDomainIdentifier();t.raise().classed("dot",!0).attr("role",o.GRAPHICS_SYMBOL).attr("cx",(function(t,e){return n.services.cartesianScales.getDomainValue(t,e)})).transition(this.services.transitions.getTransition("bubble-update-enter",e)).attr("cy",(function(t,e){return n.services.cartesianScales.getRangeValue(t,e)})).attr("r",(function(t){return a(t[i]||1)})).attr("fill",(function(t){return n.model.getFillColor(t[s],t[u],t)})).attr("fill-opacity",r.bubble.fillOpacity).attr("stroke",(function(t){return n.model.getStrokeColor(t[s],t[u],t)})).attr("opacity",1)},e}(WM),XM=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)}}(),$M=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"]?Pf.opacity.unselected:Pf.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.line").transition(e.services.transitions.getTransition("legend-mouseout-line")).attr("opacity",Pf.opacity.selected)},e}return XM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(N.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(N.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG(),r=this.services,i=r.cartesianScales,a=r.curves,s=function(t,e){return i.getDomainValue(t,e)},u=function(t,e){return i.getRangeValue(t,e)},c=ef.flipDomainAndRangeBasedOnOrientation(s,u,i.getOrientation()),l=c[0],h=c[1],f=this.model.getOptions(),p=CM().x(l).y(h).curve(a.getD3Curve()).defined((function(t,e){var n=i.getRangeIdentifier(),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=this.model.getStackedData({percentage:v});d=g.map((function(t){return{name:t[0].group,data:t.map((function(t){return{date:t.data.sharedStackKey,group:t.group,value:t[1]}})),hidden:!ef.some(t,(function(t){return t[0]!==t[1]}))}}))}else d=this.model.getGroupedData();var y=n.selectAll("path.line").data(d,(function(t){return t.name}));y.exit().attr("opacity",0).remove();var m=y.enter().append("path").classed("line",!0).attr("opacity",0);m.merge(y).data(d,(function(t){return t.name})).attr("stroke",(function(t,n){return e.model.getStrokeColor(t.name)})).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","line").attr("aria-label",(function(t){var n=t.data,r=e.services.cartesianScales.getRangeIdentifier();return n.map((function(t){return t[r]})).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(N.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(N.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(vS),ZM=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)}}(),KM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="scatter-stacked",e}return ZM(e,t),e.prototype.render=function(t){var e=this.getContainerSVG(),n=this.model.getOptions(),r=n.data.groupMapsTo,i=this.services.cartesianScales.getDomainIdentifier(),a=this.services.cartesianScales.getRangeIdentifier(),s=Object.keys(n.axes).some((function(t){return n.axes[t].percentage})),u=this.model.getStackedData({percentage:s}),c=e.selectAll("g.dots").data(u,(function(t){return t[0].group}));c.exit().attr("opacity",0).remove();var l=c.enter().append("g").classed("dots",!0).attr("role",o.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 e,n=t[r];return e={},e[r]=n,e[i]=t["data"]["sharedStackKey"],e[a]=t[1],e}));this.styleCircles(p,t),this.addEventListeners()},e}(WM);function QM(t){return t.innerRadius}function JM(t){return t.outerRadius}function tA(t){return t.startAngle}function eA(t){return t.endAngle}function nA(t){return t&&t.padAngle}function rA(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<IT))return f=(l*(e-o)-h*(t-i))/f,[t+f*u,e+f*c]}function iA(t,e,n,r,i,o,a){var s=t-n,u=e-r,c=(a?o:-o)/jT(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,y=(p+v)/2,m=d-f,_=v-p,b=m*m+_*_,w=i-o,x=f*v-d*p,O=(_<0?-1:1)*jT(LT(0,w*w*b-x*x)),T=(x*_-m*O)/b,S=(-x*m-_*O)/b,E=(x*_+m*O)/b,M=(-x*m+_*O)/b,A=T-g,P=S-y,C=E-g,k=M-y;return A*A+P*P>C*C+k*k&&(T=E,S=M),{cx:T,cy:S,x01:-l,y01:-h,x11:T*(i/w-1),y11:S*(i/w-1)}}var oA=function(){var t=QM,e=JM,n=o_(0),r=null,i=tA,o=eA,a=nA,s=null;function u(){var u,c,l=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-NT,p=o.apply(this,arguments)-NT,d=PT(p-f),v=p>f;if(s||(s=u=MM()),h<l&&(c=h,h=l,l=c),h>IT)if(d>HT-IT)s.moveTo(h*kT(f),h*RT(f)),s.arc(0,0,h,f,p,!v),l>IT&&(s.moveTo(l*kT(p),l*RT(p)),s.arc(0,0,l,p,f,v));else{var g,y,m=f,_=p,b=f,w=p,x=d,O=d,T=a.apply(this,arguments)/2,S=T>IT&&(r?+r.apply(this,arguments):jT(l*l+h*h)),E=DT(PT(h-l)/2,+n.apply(this,arguments)),M=E,A=E;if(S>IT){var P=FT(S/l*RT(T)),C=FT(S/h*RT(T));(x-=2*P)>IT?(P*=v?1:-1,b+=P,w-=P):(x=0,b=w=(f+p)/2),(O-=2*C)>IT?(C*=v?1:-1,m+=C,_-=C):(O=0,m=_=(f+p)/2)}var k=h*kT(m),L=h*RT(m),D=l*kT(w),R=l*RT(w);if(E>IT){var j,I=h*kT(_),U=h*RT(_),N=l*kT(b),H=l*RT(b);if(d<UT&&(j=rA(k,L,N,H,I,U,D,R))){var V=k-j[0],F=L-j[1],G=I-j[0],B=U-j[1],z=1/RT(VT((V*G+F*B)/(jT(V*V+F*F)*jT(G*G+B*B)))/2),W=jT(j[0]*j[0]+j[1]*j[1]);M=DT(E,(l-W)/(z-1)),A=DT(E,(h-W)/(z+1))}}O>IT?A>IT?(g=iA(N,H,k,L,h,A,v),y=iA(I,U,D,R,h,A,v),s.moveTo(g.cx+g.x01,g.cy+g.y01),A<E?s.arc(g.cx,g.cy,A,CT(g.y01,g.x01),CT(y.y01,y.x01),!v):(s.arc(g.cx,g.cy,A,CT(g.y01,g.x01),CT(g.y11,g.x11),!v),s.arc(0,0,h,CT(g.cy+g.y11,g.cx+g.x11),CT(y.cy+y.y11,y.cx+y.x11),!v),s.arc(y.cx,y.cy,A,CT(y.y11,y.x11),CT(y.y01,y.x01),!v))):(s.moveTo(k,L),s.arc(0,0,h,m,_,!v)):s.moveTo(k,L),l>IT&&x>IT?M>IT?(g=iA(D,R,I,U,l,-M,v),y=iA(k,L,N,H,l,-M,v),s.lineTo(g.cx+g.x01,g.cy+g.y01),M<E?s.arc(g.cx,g.cy,M,CT(g.y01,g.x01),CT(y.y01,y.x01),!v):(s.arc(g.cx,g.cy,M,CT(g.y01,g.x01),CT(g.y11,g.x11),!v),s.arc(0,0,l,CT(g.cy+g.y11,g.cx+g.x11),CT(y.cy+y.y11,y.cx+y.x11),v),s.arc(y.cx,y.cy,M,CT(y.y11,y.x11),CT(y.y01,y.x01),!v))):s.arc(0,0,l,w,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-UT/2;return[kT(r)*n,RT(r)*n]},u.innerRadius=function(e){return arguments.length?(t="function"===typeof e?e:o_(+e),u):t},u.outerRadius=function(t){return arguments.length?(e="function"===typeof t?t:o_(+t),u):e},u.cornerRadius=function(t){return arguments.length?(n="function"===typeof t?t:o_(+t),u):n},u.padRadius=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:o_(+t),u):r},u.startAngle=function(t){return arguments.length?(i="function"===typeof t?t:o_(+t),u):i},u.endAngle=function(t){return arguments.length?(o="function"===typeof t?t:o_(+t),u):o},u.padAngle=function(t){return arguments.length?(a="function"===typeof t?t:o_(+t),u):a},u.context=function(t){return arguments.length?(s=null==t?null:t,u):s},u},aA=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},sA=function(t){return t},uA=function(){var t=sA,e=aA,n=null,r=o_(0),i=o_(HT),o=o_(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),y=Math.min(HT,Math.max(-HT,i.apply(this,arguments)-g)),m=Math.min(Math.abs(y)/f,o.apply(this,arguments)),_=m*(y<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?(y-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:m};return v}return a.value=function(e){return arguments.length?(t="function"===typeof e?e:o_(+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:o_(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"===typeof t?t:o_(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:o_(+t),a):o},a},cA=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 lA(t,e){var n=this,r=Gv(this._current,t);return function(t){return n._current=r(t),e(n._current)}}var hA=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.model.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 cA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(N.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(N.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.getInnerRadius=function(){var t=this.model.getOptions();return t.pie.innerRadius},e.prototype.render=function(t){void 0===t&&(t=!0);var e=this,n=this.getContainerSVG(),r=this.model.getDisplayData(),i=this.model.getOptions(),a=i.data.groupMapsTo,s=this.computeRadius();this.arc=oA().innerRadius(this.getInnerRadius()).outerRadius(s),this.hoverArc=oA().innerRadius(this.getInnerRadius()).outerRadius(s+i.pie.hoverArc.outerRadiusOffset);var u=uA().value((function(t){return t.value})).sort(null).padAngle(i.pie.padAngle),c=u(r).sort((function(t,e){return t.index-e.index})),l=uw.appendOrSelect(n,"g.slices").attr("role",o.GROUP),h=l.selectAll("path.slice").data(c,(function(t){return t.data[a]}));h.exit().attr("opacity",0).remove();var f=h.enter().append("path").classed("slice",!0).attr("opacity",0);f.merge(h).attr("fill",(function(t){return e.model.getFillColor(t.data[a])})).attr("d",this.arc).transition(this.services.transitions.getTransition("pie-slice-enter-update",t)).attr("opacity",1).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","slice").attr("aria-label",(function(t){return t.value+", "+ef.convertValueToPercentage(t.data.value,r)+"%"})).attrTween("d",(function(t){return lA.bind(this)(t,e.arc)}));var p=c.filter((function(t){return t.value>0})),d=uw.appendOrSelect(n,"g.labels").attr("role",o.GROUP),v=d.selectAll("text.pie-label").data(p,(function(t){return t.data[a]}));v.exit().attr("opacity",0).remove();var g=v.enter().append("text").classed("pie-label",!0),y=[];g.merge(v).style("text-anchor","middle").text((function(t){return i.pie.labels.formatter?i.pie.labels.formatter(t):ef.convertValueToPercentage(t.data.value,r)+"%"})).datum((function(t){var e=s+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=p.length,r=(t.endAngle-t.startAngle)*(180/Math.PI);if(e>=n-2&&r<i.pie.callout.minSliceDegree){var o=void 0,a=void 0;return t.index===n-1?(o=t.xPosition+i.pie.callout.offsetX+i.pie.callout.textMargin+t.textOffsetX,a=t.yPosition-i.pie.callout.offsetY,t.direction=k.RIGHT,y.push(t)):(o=t.xPosition-i.pie.callout.offsetX-t.textOffsetX-i.pie.callout.textMargin,a=t.yPosition-i.pie.callout.offsetY,t.direction=k.LEFT,y.push(t)),"translate("+o+", "+a+")"}return"translate("+t.xPosition+", "+t.yPosition+")"})),this.renderCallouts(y);var m=s+i.pie.xOffset,_=s+i.pie.yOffset;y.length>0&&(_+=i.pie.yOffsetCallout),n.attr("transform","translate("+m+", "+_+")"),this.addEventListeners()},e.prototype.renderCallouts=function(t){var e=uw.appendOrSelect(this.getContainerSVG(),"g.callouts").attr("role",o.GROUP),n=this.model.getOptions(),r=e.selectAll("g.callout").data(t);r.exit().remove();var i=r.enter().append("g").classed("callout",!0).attr("role",o.GRAPHICS_SYMBOL+" "+o.GROUP).attr("aria-roledescription","label callout");i.merge(r).datum((function(t){var e=t.xPosition,r=t.yPosition,i=t.direction;return i===k.RIGHT?(t.startPos={x:e,y:r+t.textOffsetY},t.endPos={x:e+n.pie.callout.offsetX,y:r-n.pie.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x-n.pie.callout.horizontalLineLength):(t.startPos={x:e,y:r+t.textOffsetY},t.endPos={x:e-n.pie.callout.offsetX,y:r-n.pie.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x+n.pie.callout.horizontalLineLength),t}));var a=i.append("line").classed("vertical-line",!0);a.merge(e.selectAll("line.vertical-line")).datum((function(t){return nw(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 s=i.append("line").classed("horizontal-line",!0);s.merge(e.selectAll("line.horizontal-line")).datum((function(t){return nw(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){t.services.events.dispatchEvent(N.Pie.SLICE_MOUSEOVER,{element:nw(this),datum:e})})).on("mousemove",(function(e){var n=nw(this);n.classed("hovered",!0).transition(t.services.transitions.getTransition("pie_slice_mouseover")).attr("d",t.hoverArc),t.services.events.dispatchEvent(N.Pie.SLICE_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(N.Tooltip.SHOW,{hoveredElement:n,type:E.DATAPOINT})})).on("click",(function(e){t.services.events.dispatchEvent(N.Pie.SLICE_CLICK,{element:nw(this),datum:e})})).on("mouseout",(function(e){var n=nw(this);n.classed("hovered",!1).transition(t.services.transitions.getTransition("pie_slice_mouseover")).attr("d",t.arc),t.services.events.dispatchEvent(N.Pie.SLICE_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(N.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.computeRadius=function(){var t=this.model.getOptions(),e=uw.getSVGElementSize(this.parent,{useAttrs:!0}),n=e.width,r=e.height,i=Math.min(n,r)/2;return i+t.pie.radiusOffset},e}(vS),fA=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)}}(),pA="4,10 8,6 12,10",dA="12,6 8,10 4,6",vA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e}return fA(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=ef.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.model.getOptions(),e=ef.getProperty(t,"gauge","type"),n=e===j.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.model.getOptions(),n=ef.getProperty(e,"gauge","deltaArrow","direction");switch(n){case I.UP:return pA;case I.DOWN:return dA;default:return t>0?pA:dA}},e.prototype.render=function(t){void 0===t&&(t=!0);var e=this,n=this.getContainerSVG(),r=this.model.getOptions(),i=r.data.groupMapsTo,a=this.getValue(),s=this.getValueRatio(),u=this.getArcSize(),c=this.getStartAngle(),l=s*u,h=c+l,f=c+u,p=this.computeRadius(),d=this.getInnerRadius();this.backgroundArc=oA().innerRadius(d).outerRadius(p).startAngle(h).endAngle(f),this.arc=oA().innerRadius(d).outerRadius(p).startAngle(c).endAngle(h),uw.appendOrSelect(n,"path.arc-background").attr("d",this.backgroundArc).attr("role",o.GROUP);var v=n.selectAll("path.arc-foreground").data([a]);v.enter().append("path").attr("class","arc-foreground").merge(v).attr("d",this.arc).attr("fill",(function(t){return e.model.getFillColor(t[i])})).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","value").attr("aria-label",(function(t){return t.value})),n.attr("transform","translate("+p+", "+p+")"),this.drawValueNumber(),this.drawDelta(),v.exit().remove(),this.addEventListeners()},e.prototype.drawValueNumber=function(){var t=this.getContainerSVG(),e=this.model.getOptions(),n=ef.getProperty(e,"gauge","type"),r=this.getValue(),i=this.getDelta(),o=this.computeRadius(),a=ef.getProperty(e,"gauge","valueFontSize"),s=ef.getProperty(e,"gauge","deltaFontSize"),u=ef.getProperty(e,"gauge","numberSpacing"),c=0;n!==j.FULL||i?n===j.SEMI&&i&&(c=-(s(o)+u)):c=s(o);var l=uw.appendOrSelect(t,"g.gauge-numbers").attr("transform","translate(0, "+c+")"),h=uw.appendOrSelect(l,"g.gauge-value-number").attr("transform","translate(-10, 0)"),f=ef.getProperty(e,"gauge","numberFormatter"),p=h.selectAll("text.gauge-value-number").data([r]);p.enter().append("text").attr("class","gauge-value-number").merge(p).style("font-size",a(o)+"px").attr("text-anchor","middle").text((function(t){return f(t)}));var d=uw.getSVGElementSize(uw.appendOrSelect(t,"text.gauge-value-number"),{useBBox:!0}).width;uw.appendOrSelect(h,"text.gauge-value-symbol").style("font-size",a(o)/2+"px").attr("x",d/2).text("%")},e.prototype.drawDelta=function(){var t=this,e=this.getContainerSVG(),n=this.model.getOptions(),r=this.getDelta(),i=this.computeRadius(),o=r?ef.getProperty(n,"gauge","deltaFontSize"):function(){return 0},a=ef.getProperty(n,"gauge","numberFormatter"),s=ef.getProperty(n,"gauge","deltaArrow","size"),u=ef.getProperty(n,"gauge","numberSpacing"),c=uw.appendOrSelect(e,"g.gauge-numbers"),l=uw.appendOrSelect(c,"g.gauge-delta").attr("transform","translate(0, "+(o(i)+u)+")"),h=l.selectAll("text.gauge-delta-number").data(null!==r?[r]:[]);h.enter().append("text").merge(h).attr("class","gauge-delta-number").attr("text-anchor","middle").style("font-size",o(i)+"px").text((function(t){return a(t)+"%"}));var f=uw.getSVGElementSize(uw.appendOrSelect(e,".gauge-delta-number"),{useBBox:!0}).width,p=ef.getProperty(n,"gauge","deltaArrow","enabled"),d=l.selectAll("svg.gauge-delta-arrow").data(null!==r&&p?[r]:[]);d.enter().append("svg").merge(d).attr("class","gauge-delta-arrow").attr("x",-s(i)-f/2).attr("y",-s(i)/2-.35*o(i)).attr("width",s(i)).attr("height",s(i)).attr("viewBox","0 0 16 16"),uw.appendOrSelect(d,"rect.gauge-delta-arrow-backdrop").attr("width","16").attr("height","16").attr("fill","none");var v=ef.getProperty(n,"gauge","status");uw.appendOrSelect(d,"polygon.gauge-delta-arrow").classed("status--"+v,null!==v).attr("fill",(function(){return null===v?"currentColor":null})).attr("points",t.getArrow(r)),d.exit().remove(),h.exit().remove()},e.prototype.getInnerRadius=function(){var t=this.computeRadius(),e=ef.getProperty(this.model.getOptions(),"gauge","arcWidth");return t-e},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("path.arc").on("mouseover",(function(e){t.services.events.dispatchEvent(N.Gauge.ARC_MOUSEOVER,{element:nw(this),datum:e})})).on("mousemove",(function(e){var n=nw(this);t.services.events.dispatchEvent(N.Gauge.ARC_MOUSEMOVE,{element:n,datum:e})})).on("click",(function(e){t.services.events.dispatchEvent(N.Gauge.ARC_CLICK,{element:nw(this),datum:e})})).on("mouseout",(function(e){var n=nw(this);t.services.events.dispatchEvent(N.Gauge.ARC_MOUSEOUT,{element:n,datum:e})}))},e.prototype.computeRadius=function(){var t=this.model.getOptions(),e=ef.getProperty(t,"gauge","type"),n=uw.getSVGElementSize(this.parent,{useAttrs:!0}),r=n.width,i=n.height,o=e===j.SEMI?Math.min(r/2,i):Math.min(r/2,i/2);return o},e}(vS),gA=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)}}(),yA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="donut",e}return gA(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=uw.appendOrSelect(this.getContainerSVG(),"g.center"),i=this.model.getOptions(),o=this.computeRadius();uw.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(nw(this))})),uw.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(ef.getProperty(i,"donut","center","label"))}},e.prototype.getInnerRadius=function(){var t=this.computeRadius();return.75*t},e.prototype.centerNumberTween=function(t){var e=this.model.getOptions(),n=ef.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?Bv:jv;var o=r(i,n);return function(n){var r=e.donut.center.numberFormatter;t.text(r(o(n)))}},e}(hA);function mA(t){return+t}var _A=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)}}(),bA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="skeleton",e}return _A(e,t),e.prototype.render=function(){var t=this.parent,e=t.node().parentNode,n=uw.getSVGElementSize(e,{useAttrs:!0}),r=n.width,i=n.height;t.attr("width",r).attr("height",i);var o=this.model.isDataEmpty(),a=ef.getProperty(this.model.getOptions(),"data","loading");if(o)this.renderSkeleton(a);else{if(!o&&a)throw new Error("Something went wrong. You can't provided non-empty data and data loading together.");this.removeSkeleton()}},e.prototype.renderSkeleton=function(t){if(this.configs.skeleton===L.GRID)this.renderGridSkeleton(t);else if(this.configs.skeleton===L.VERT_OR_HORIZ)this.renderVertOrHorizSkeleton(t);else if(this.configs.skeleton===L.PIE)this.renderPieSkeleton(t);else{if(this.configs.skeleton!==L.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===O.VERTICAL&&this.drawYGrid(t),e===O.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=Eg().domain([0,1]).range(t),this.yScale=Eg().domain([0,1]).range(e)},e.prototype.drawBackdrop=function(t){var e=this.parent,n=e.node().parentNode,r=uw.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height;this.backdrop=uw.appendOrSelect(e,"svg.chart-skeleton.DAII").attr("width",i).attr("height",o);var a=uw.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=ef.getProperty(this.model.getOptions(),"grid","x","numberOfTicks"),i=this.xScale.ticks(r).map((function(t){return t*n})),o=uw.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=ef.getProperty(this.model.getOptions(),"grid","y","numberOfTicks"),i=this.xScale.ticks(r).map((function(t){return t*e})),o=uw.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=uw.getSVGElementSize(r.node().parentNode,{useAttrs:!0}),o=i.width,a=i.height,s=uw.appendOrSelect(r,"svg.chart-skeleton").attr("width",o).attr("height",a),u=this.model.getOptions().pie,c=(uw.appendOrSelect(s,"rect.chart-skeleton-area-container").attr("width",o).attr("height",a).attr("fill","none"),oA().innerRadius(e).outerRadius(t).startAngle(0).endAngle(2*Math.PI)),l=t+Math.abs(u.radiusOffset),h=t+(Math.min(o,a)-2*t)/2;uw.appendOrSelect(s,"path").attr("class","skeleton-area-shape").attr("transform","translate("+l+", "+h+")").attr("d",c).classed("shimmer-effect-areas",n).classed("empty-state-areas",!n)},e.prototype.computeOuterRadius=function(){var t=this.model.getOptions(),e=uw.getSVGElementSize(this.parent.node().parentNode,{useAttrs:!0}),n=e.width,r=e.height,i=Math.min(n,r)/2;return i+t.pie.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=uw.getSVGElementSize(this.parent,{useAttrs:!0}).width,u=0,c=s,l=uw.appendOrSelect(a,"defs").lower(),h=uw.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(mA).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}(vS),wA=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)}}(),xA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="spacer",e}return wA(e,t),e.prototype.render=function(){this.getContainerSVG().append("rect").attr("x",0).attr("y",0).attr("width",this.configs.size||Df.default.size).attr("height",this.configs.size||Df.default.size).attr("opacity",0)},e}(vS);function OA(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 TA=function(){return this.eachAfter(OA)},SA=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},EA=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},MA=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},AA=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}))},PA=function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},CA=function(t){var e=this,n=kA(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 kA(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 LA=function(){var t=this,e=[t];while(t=t.parent)e.push(t);return e},DA=function(){var t=[];return this.each((function(e){t.push(e)})),t},RA=function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},jA=function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e};function IA(t,e){var n,r,i,o,a,s=new FA(t),u=+t.value&&(s.value=t.value),c=[s];null==e&&(e=NA);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 FA(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(VA)}function UA(){return IA(this).eachBefore(HA)}function NA(t){return t.children}function HA(t){t.data=t.data.data}function VA(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function FA(t){this.data=t,this.depth=this.height=0,this.parent=null}FA.prototype=IA.prototype={constructor:FA,count:TA,each:SA,eachAfter:MA,eachBefore:EA,sum:AA,sort:PA,path:CA,ancestors:LA,descendants:DA,leaves:RA,links:jA,copy:UA};var GA=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},BA=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},zA=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)},WA=(1+Math.sqrt(5))/2;function YA(t,e,n,r,i,o){var a,s,u,c,l,h,f,p,d,v,g,y=[],m=e.children,_=0,b=0,w=m.length,x=e.value;while(_<w){u=i-n,c=o-r;do{l=m[b++].value}while(!l&&b<w);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<w;++b){if(l+=s=m[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}y.push(a={value:l,dice:u<c,children:m.slice(_,b)}),a.dice?GA(a,n,r,i,x?r+=c*l/x:o):BA(a,n,r,x?n+=u*l/x:i,o),x-=l,_=b}return y}var qA=function t(e){function n(t,n,r,i,o){YA(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(WA);function XA(t){if("function"!==typeof t)throw new Error;return t}function $A(){return 0}var ZA=function(t){return function(){return t}},KA=function(){var t=qA,e=!1,n=1,r=1,i=[0],o=$A,a=$A,s=$A,u=$A,c=$A;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(zA),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=XA(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:ZA(+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:ZA(+t),l):a},l.paddingRight=function(t){return arguments.length?(s="function"===typeof t?t:ZA(+t),l):s},l.paddingBottom=function(t){return arguments.length?(u="function"===typeof t?t:ZA(+t),l):u},l.paddingLeft=function(t){return arguments.length?(c="function"===typeof t?t:ZA(+t),l):c},l},QA=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)}}(),JA=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===P.ROW_REVERSE||a.configs.direction===P.COLUMN_REVERSE;return s&&(a.children=a.children.reverse()),a.init(),a}return QA(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=ef.getProperty(t,"data","growth","x");return e===C.PREFERRED||e===C.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=ef.getProperty(t,"data","growth","x");return e===C.STRETCH})).size()},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.parent,r=uw.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height,a=IA({children:this.children}).sum((function(t){return t.size})),s=this.configs.direction===P.ROW||this.configs.direction===P.ROW_REVERSE?GA:BA;KA().tile(s).size([i,o])(a);var u=this.configs.direction===P.ROW||this.configs.direction===P.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(nw(n));var i=ef.getProperty(e,"data","growth","x");i!==C.PREFERRED&&i!==C.FIXED||r.render(t)}))})),n.selectAll("svg.layout-child-"+this._instanceID).each((function(t){var e=ef.getProperty(t,"data","growth","x"),n=uw.getSVGElementSize(nw(this),{useBBox:!0});if(e===C.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=ef.getProperty(t,"growth","x");return e===C.STRETCH})).forEach((function(t,n){t.size=(100-+e.getPreferedAndFixedSizeSum())/+e.getNumOfStretchChildren()})),a=IA({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=ef.getProperty(e,"data","growth","x");r===C.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}(vS),tP=Array.prototype.slice,eP=function(t){return t},nP=1,rP=2,iP=3,oP=4,aP=1e-6;function sP(t){return"translate("+(t+.5)+",0)"}function uP(t){return"translate(0,"+(t+.5)+")"}function cP(t){return function(e){return+t(e)}}function lP(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function hP(){return!this.__axis}function fP(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,u=t===nP||t===oP?-1:1,c=t===oP||t===rP?"x":"y",l=t===nP||t===iP?sP:uP;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):eP:i,d=Math.max(o,0)+s,v=e.range(),g=+v[0]+.5,y=+v[v.length-1]+.5,m=(e.bandwidth?lP:cP)(e.copy()),_=h.selection?h.selection():h,b=_.selectAll(".domain").data([null]),w=_.selectAll(".tick").data(f,e).order(),x=w.exit(),O=w.enter().append("g").attr("class","tick"),T=w.select("line"),S=w.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(O),T=T.merge(O.append("line").attr("stroke","currentColor").attr(c+"2",u*o)),S=S.merge(O.append("text").attr("fill","currentColor").attr(c,u*d).attr("dy",t===nP?"0em":t===iP?"0.71em":"0.32em")),h!==_&&(b=b.transition(h),w=w.transition(h),T=T.transition(h),S=S.transition(h),x=x.transition(h).attr("opacity",aP).attr("transform",(function(t){return isFinite(t=m(t))?l(t):this.getAttribute("transform")})),O.attr("opacity",aP).attr("transform",(function(t){var e=this.parentNode.__axis;return l(e&&isFinite(e=e(t))?e:m(t))}))),x.remove(),b.attr("d",t===oP||t==rP?a?"M"+u*a+","+g+"H0.5V"+y+"H"+u*a:"M0.5,"+g+"V"+y:a?"M"+g+","+u*a+"V0.5H"+y+"V"+u*a:"M"+g+",0.5H"+y),w.attr("opacity",1).attr("transform",(function(t){return l(m(t))})),T.attr(c+"2",u*o),S.attr(c,u*d).text(p),_.filter(hP).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===rP?"start":t===oP?"end":"middle"),_.each((function(){this.__axis=m}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=tP.call(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:tP.call(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:tP.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 pP(t){return fP(nP,t)}function dP(t){return fP(rP,t)}function vP(t){return fP(iP,t)}function gP(t){return fP(oP,t)}var yP=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)}}(),mP=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 yP(e,t),e.prototype.render=function(t){void 0===t&&(t=!0);var e,n,r=this.configs.position,i=this.model.getOptions(),a=ef.getProperty(i,"axes",r),s=ef.getProperty(a,"ticks","number"),u=null!==s,c=r===x.LEFT||r===x.RIGHT,l=ef.getProperty(i,"timeScale"),h=this.getContainerSVG(),f=uw.getSVGElementSize(this.parent,{useAttrs:!0}),p=f.width,d=f.height;r===x.BOTTOM||r===x.TOP?(e=this.configs.axes[x.LEFT]?this.margins.left:0,n=this.configs.axes[x.RIGHT]?p-this.margins.right:p):(e=d-this.margins.bottom,n=this.margins.top);var v,g=this.services.cartesianScales.getScaleByPosition(r);switch(this.scaleType===T.LABELS?g.rangeRound([e,n]):g.range([e,n]),r){case x.LEFT:v=gP;break;case x.BOTTOM:v=vP;break;case x.RIGHT:v=dP;break;case x.TOP:v=pP;break}var y=uw.appendOrSelect(h,"g.axis."+r),m=!y.select("g.ticks").empty(),_=uw.appendOrSelect(y,"g.ticks");m||_.attr("role",o.GRAPHICS_OBJECT+" "+o.GROUP);var b=uw.appendOrSelect(y,"g.ticks.invisible").style("opacity","0").style("pointer-events","none").attr("aria-hidden",!0),w=uw.appendOrSelect(b,"g.tick"),O=uw.appendOrSelect(w,"text").text("0"),S=uw.getSVGElementSize(O.node(),{useBBox:!0}).height;w.remove();var E,M=this.scaleType===T.TIME||a.scaleType===T.TIME,A=this.scaleType||a.scaleType||T.LINEAR,P=v(g).tickSizeOuter(0);if(g.ticks){var C=void 0;if(u?C=s:(C=Lf.ticks.number,c&&(C=this.getNumberOfFittingTicks(d,S,Rf))),1===g.ticks().length&&0===g.ticks()[0]&&(C=0),P.ticks(C),M)if(g.ticks(C).length){var k=g.nice(C).ticks(C);ef.getProperty(i,"timeScale","addSpaceOnEdges")&&k.length>2&&(k.splice(k.length-1,1),k.splice(0,1)),P.tickValues(k)}else P.tickValues([])}var L=ef.getProperty(a,"ticks","formatter");if(M){var D=rM(P.tickValues());E=null===L?function(t,e){return JE(t,e,D,l)}:function(t,e){var n=JE(t,e,D,l);return L(t,e,n)}}else null===L?A===T.LINEAR&&(E=function(t){return t.toLocaleString()}):E=L;switch(P.tickFormat(E),r){case x.LEFT:_.attr("transform","translate("+this.margins.left+", 0)");break;case x.BOTTOM:_.attr("transform","translate(0, "+(d-this.margins.bottom)+")");break;case x.RIGHT:_.attr("transform","translate("+(p-this.margins.right)+", 0)");break;case x.TOP:_.attr("transform","translate(0, "+this.margins.top+")");break}if(a.title){var R=uw.appendOrSelect(y,"text.axis-title").html(this.model.isDataEmpty()?"":a.title);switch(r){case x.LEFT:R.attr("transform","rotate(-90)").attr("y",0).attr("x",-g.range()[0]/2).attr("dy","1em").style("text-anchor","middle");break;case x.BOTTOM:R.attr("transform","translate("+(this.margins.left/2+g.range()[1]/2)+", "+d+")").style("text-anchor","middle");break;case x.RIGHT:R.attr("transform","rotate(90)").attr("y",-p).attr("x",g.range()[0]/2).attr("dy","1em").style("text-anchor","middle");break;case x.TOP:var j=uw.getSVGElementSize(R,{useBBox:!0}).height;R.attr("transform","translate("+(this.margins.left/2+g.range()[1]/2)+", "+j/2+")").style("text-anchor","middle");break}}if(M){var I=rM(P.tickValues()),U=l.showDayName,N=_;t&&(_=_.transition(this.services.transitions.getTransition("axis-update",t))),_=_.call(P);var H=N.selectAll(".tick").data(P.tickValues(),g).order().select("text");H.style("font-weight",(function(t,e){return QE(t,e,I,U)?"bold":"normal"}))}else _=t&&m?_.transition(this.services.transitions.getTransition("axis-update")).call(P):_.call(P);if(b.call(P),r===x.BOTTOM||r===x.TOP){var V=!1;if(g.step){var F=b.selectAll("g.tick text").nodes();V=F.some((function(t){return uw.getSVGElementSize(t,{useBBox:!0}).width>=g.step()}))}else{var G=ef.getProperty(a,"ticks","rotateIfSmallerThan")||Lf.ticks.rotateIfSmallerThan,B=M?P.tickValues().length:g.ticks().length,z=p/B/2;V=z<G}V?(u||(P.ticks(this.getNumberOfFittingTicks(p,S,jf)),b.call(P),_.call(P)),y.selectAll("g.ticks g.tick text").attr("transform","rotate(-45)").style("text-anchor",r===x.TOP?"start":"end")):y.selectAll("g.ticks g.tick text").attr("transform",null).style("text-anchor",null)}this.model.isDataEmpty()&&y.attr("opacity",0),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this.getContainerSVG(),e=this.configs.position,n=uw.appendOrSelect(t,"g.axis."+e),r=this;n.selectAll("g.tick text").on("mouseover",(function(t){r.services.events.dispatchEvent(N.Axis.LABEL_MOUSEOVER,{element:nw(this),datum:t})})).on("mousemove",(function(t){r.services.events.dispatchEvent(N.Axis.LABEL_MOUSEMOVE,{element:nw(this),datum:t})})).on("click",(function(t){r.services.events.dispatchEvent(N.Axis.LABEL_CLICK,{element:nw(this),datum:t})})).on("mouseout",(function(t){r.services.events.dispatchEvent(N.Axis.LABEL_MOUSEOUT,{element:nw(this),datum:t})}))},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 ef.clamp(r,2,Lf.ticks.number)},e.prototype.destroy=function(){var t=this.getContainerSVG(),e=this.configs.position,n=uw.appendOrSelect(t,"g.axis."+e);n.selectAll("g.tick text").on("mouseover",null).on("mousemove",null).on("mouseout",null)},e}(vS),_P=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)}}(),bP=function(){return bP=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},bP.apply(this,arguments)},wP=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 _P(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n={},r=Object.keys(x),i=ef.getProperty(this.model.getOptions(),"axes");r.forEach((function(t){var e=i[x[t]];e&&(n[x[t]]=!0)})),this.configs.axes=n,r.forEach((function(t){var n=x[t];if(e.configs.axes[n]&&!e.children[n]){var r=new mP(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(n){var r,i=e.children[n],a=i.configs.position,s=i.getInvisibleAxisRef(),u=uw.getSVGElementSize(s,{useBBox:!0}),c=u.width,l=u.height;switch(r=i.getTitleRef().empty()?0:uw.getSVGElementSize(i.getTitleRef(),{useBBox:!0}).height,a){case x.TOP:o.top=l+r;break;case x.BOTTOM:o.bottom=l+r;break;case x.LEFT:o.left=c+r;break;case x.RIGHT:o.right=c+r;break}e.addAxisThresholds(t,a)}));var a=Object.keys(o).some((function(t){return e.margins[t]!==o[t]}));a&&(this.margins=Object.assign(this.margins,o),Object.keys(this.children).forEach((function(t){var n=e.children[t];n.margins=e.margins})),this.render(!0))},e.prototype.addAxisThresholds=function(t,e){var n=this,r=ef.getProperty(this.model.getOptions(),"axes",e),i=r.thresholds;i&&(i.forEach((function(t,r){var i=new uM(n.model,n.services,bP(bP({},t),{axisPosition:e,index:r}));n.thresholds.push(i)})),this.thresholds.forEach((function(e){e.setParent(n.parent),e.render(t)})))},e}(vS),xP=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)}}(),OP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return xP(e,t),e.prototype.render=function(t){void 0===t&&(t=!0),this.drawBackdrop(),uw.appendOrSelect(this.backdrop,"g.x.grid"),uw.appendOrSelect(this.backdrop,"g.y.grid"),this.drawXGrid(t),this.drawYGrid(t)},e.prototype.drawXGrid=function(t){var e=this.parent,n=this.backdrop.attr("height"),r=this.services.cartesianScales.getMainXScale(),i=vP(r).tickSizeInner(-n).tickSizeOuter(0),o=ef.getProperty(this.model.getOptions(),"grid","x","numberOfTicks");i.ticks(o);var a=e.select(".x.grid").attr("transform","translate("+-this.backdrop.attr("x")+", "+n+")");if(t){var s=this.services.transitions.getTransition("grid-update");a.transition(s).call(i)}else a.call(i);this.cleanGrid(a)},e.prototype.drawYGrid=function(t){var e=this.parent,n=this.backdrop.attr("width"),r=this.services.cartesianScales.getMainYScale(),i=gP(r).tickSizeInner(-n).tickSizeOuter(0),o=ef.getProperty(this.model.getOptions(),"grid","y","numberOfTicks");i.ticks(o);var a=e.select(".y.grid").attr("transform","translate(0, "+-this.backdrop.attr("y")+")");if(t){var s=this.services.transitions.getTransition("grid-update");a.transition(s).call(i)}else a.call(i);this.cleanGrid(a)},e.prototype.getGridlineThreshold=function(t){var e,n=this.parent,r=n.selectAll(".x.grid .tick").nodes().sort((function(t,e){return Number(ef.getTranslationValues(t).tx)-Number(ef.getTranslationValues(e).tx)})),i=-1;if(r.length){r.forEach((function(e,n){t[0]>=+ef.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=+ef.getTranslationValues(s).tx-+ef.getTranslationValues(a).tx;else{var u=n.select("rect.chart-grid-backdrop").node(),c=uw.getSVGElementSize(u).width;o=c-+ef.getTranslationValues(a).tx}else o=+ef.getTranslationValues(s).tx;var l=this.model.getOptions().tooltip.gridline.threshold;return o*l}},e.prototype.getActiveGridline=function(t){var e=ef.getProperty(this.model.getOptions,"tooltip","gridline","threshold"),n=e||this.getGridlineThreshold(t),r=this.parent,i=r.selectAll(".x.grid .tick").filter((function(){var e=ef.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(){var t=this.parent,e=this.services.cartesianScales.getMainXScale(),n=this.services.cartesianScales.getMainYScale(),r=e.range(),i=r[0],o=r[1],a=n.range(),s=a[0],u=a[1];this.backdrop=uw.appendOrSelect(t,"svg.chart-grid-backdrop");var c=uw.appendOrSelect(this.backdrop,"rect.chart-grid-backdrop");this.backdrop.merge(c).attr("x",i).attr("y",u).attr("width",o-i).attr("height",s-u).lower(),c.attr("width","100%").attr("height","100%")},e.prototype.cleanGrid=function(t){var e=this.model.getOptions();t.selectAll("line").attr("stroke",e.grid.strokeColor),t.selectAll("text").remove(),t.select(".domain").remove()},e}(vS),TP=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)}}(),SP=5;function EP(t,e){return t>e-SP&&t<e+SP}var MP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ruler",e}return TP(e,t),e.prototype.render=function(){this.drawBackdrop(),this.addBackdropEventListeners()},e.prototype.showRuler=function(t){var e=this,n=t[0],r=t[1],i=this.parent,o=this.services.cartesianScales.getOrientation(),a=o===O.HORIZONTAL?r:n,s=uw.appendOrSelect(i,"g.ruler"),u=uw.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}})),g=v.filter((function(t){return EP(t.domainValue,a)})).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 y=this.services.cartesianScales.getRangeIdentifier(),m=g.map((function(t){return t.originalData})).filter((function(t){var e=t[y];return null!==e&&void 0!==e})),_=g.map((function(t){return t.domainValue})),b=c.filter((function(t){var n=e.services.cartesianScales.getDomainValue(t);return _.includes(n)}));this.elementsToHighlight&&this.elementsToHighlight.size()>0&&!ef.isEqual(this.elementsToHighlight,b)&&this.hideRuler(),b.dispatch("mouseover"),this.elementsToHighlight=b,this.services.events.dispatchEvent("show-tooltip",{hoveredElement:u,multidata:m,type:E.GRIDLINE}),s.attr("opacity",1);var w=g[0];"horizontal"===o?u.attr("x1",d).attr("x2",p).attr("y1",w.domainValue).attr("y2",w.domainValue):u.attr("y1",d).attr("y2",p).attr("x1",w.domainValue).attr("x2",w.domainValue)}else this.hideRuler()},e.prototype.hideRuler=function(){var t=this.parent,e=uw.appendOrSelect(t,"g.ruler"),n=t.selectAll("[role=graphics-symbol]");n.dispatch("mouseout"),this.services.events.dispatchEvent("hide-tooltip"),e.attr("opacity",0)},e.prototype.addBackdropEventListeners=function(){var t=this;this.backdrop.on("mousemove mouseover",(function(){var e=bS(t.parent.node());t.showRuler(e)})).on("mouseout",(function(){t.hideRuler()}))},e.prototype.drawBackdrop=function(){var t=this.parent,e=this.services.cartesianScales.getMainXScale(),n=this.services.cartesianScales.getMainYScale(),r=e.range(),i=r[0],o=r[1],a=n.range(),s=a[0],u=a[1];this.backdrop=uw.appendOrSelect(t,"svg.chart-grid-backdrop");var c=uw.appendOrSelect(this.backdrop,"rect.chart-grid-backdrop");this.backdrop.merge(c).attr("x",i).attr("y",u).attr("width",o-i).attr("height",s-u).lower(),c.attr("width","100%").attr("height","100%")},e}(vS),AP=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)}}(),PP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="zero-line",e}return AP(e,t),e.prototype.render=function(t){var e=this.services.cartesianScales.getRangeScale().domain(),n=e[0],r=e[1],i=n>0&&r<0||n<0&&r>0;if(i){var o=this.getContainerSVG(),a=this.services.cartesianScales.getDomainScale().range(),s=a[0],u=a[1],c=+this.services.cartesianScales.getRangeValue(0)+.5;if(!c){var l=this.services.cartesianScales.getRangeAxisPosition(),h=this.services.cartesianScales.getScaleByPosition(l);c=h.range()[0]}var f=ef.flipSVGCoordinatesBasedOnOrientation({x0:s,x1:u,y0:c,y1:c},this.services.cartesianScales.getOrientation()),p=uw.appendOrSelect(o,"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)}},e}(vS),CP=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},kP=function(){function t(t,e){this.services={domUtils:uw,events:lw,transitions:xO},this.model=new l_(this.services)}return t.prototype.init=function(t,e){var n=this;this.model.set({holder:t},!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(N.Model.UPDATE,(function(){n.update(!0)})),this.model.setData(e.data),this.services.events.addEventListener(N.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(N.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},!0)},t.prototype.getChartComponents=function(t){var e={id:"title",components:[new lM(this.model,this.services)],growth:{x:C.PREFERRED,y:C.FIXED}},n={id:"legend",components:[new yS(this.model,this.services)],growth:{x:C.PREFERRED,y:C.FIXED}},r={id:"graph-frame",components:t,growth:{x:C.STRETCH,y:C.FIXED}},i=!1!==this.model.getOptions().legend.enabled,o=P.COLUMN;if(i){var a=ef.getProperty(this.model.getOptions(),"legend","position");"left"===a?(o=P.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=A.VERTICAL)):"right"===a?(o=P.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=A.VERTICAL)):"bottom"===a&&(o=P.COLUMN_REVERSE)}var s={id:"spacer",components:[new xA(this.model,this.services)],growth:{x:C.PREFERRED,y:C.FIXED}},u={id:"full-frame",components:[new JA(this.model,this.services,CP(i?[n]:[],i?[s]:[],[r]),{direction:o})],growth:{x:C.STRETCH,y:C.FIXED}},c=[];if(this.model.getOptions().title){c.push(e);var l={id:"spacer",components:[new xA(this.model,this.services)],growth:{x:C.PREFERRED,y:C.FIXED}};c.push(l)}return c.push(u),[new JA(this.model,this.services,c,{direction:P.COLUMN})]},t}(),LP=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)}}(),DP=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},RP=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.services=Object.assign(r.services,{cartesianScales:oT,curves:dS}),r}return LP(e,t),e.prototype.getAxisChartComponents=function(t){var e={id:"title",components:[new lM(this.model,this.services)],growth:{x:C.PREFERRED,y:C.FIXED}},n={id:"legend",components:[new yS(this.model,this.services)],growth:{x:C.PREFERRED,y:C.FIXED}},r={id:"graph-frame",components:t,growth:{x:C.STRETCH,y:C.FIXED}},i=!1!==this.model.getOptions().legend.enabled,o=P.COLUMN;if(i){var a=ef.getProperty(this.model.getOptions(),"legend","position");a===M.LEFT?(o=P.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=A.VERTICAL)):a===M.RIGHT?(o=P.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=A.VERTICAL)):a===M.BOTTOM&&(o=P.COLUMN_REVERSE)}var s={id:"spacer",components:[new xA(this.model,this.services)],growth:{x:C.PREFERRED,y:C.FIXED}},u={id:"full-frame",components:[new JA(this.model,this.services,DP(i?[n]:[],[s,r]),{direction:o})],growth:{x:C.STRETCH,y:C.FIXED}},c=[];if(this.model.getOptions().title){c.push(e);var l={id:"spacer",components:[new xA(this.model,this.services)],growth:{x:C.PREFERRED,y:C.FIXED}};c.push(l)}return c.push(u),[new JA(this.model,this.services,c,{direction:P.COLUMN})]},e}(kP),jP=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)}}(),IP=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ef.mergeDefaultChartOptions(ef.clone(Af.areaChart),n.options)),r.init(e,n),r}return jP(e,t),e.prototype.getComponents=function(){var t=[new wP(this.model,this.services),new OP(this.model,this.services),new MP(this.model,this.services),new $M(this.model,this.services),new DM(this.model,this.services),new WM(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0})],e=this.getAxisChartComponents(t);return e.push(new mM(this.model,this.services)),e},e}(RP),UP=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)}}(),NP=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ef.mergeDefaultChartOptions(Af.stackedAreaChart,n.options)),r.init(e,n),r}return UP(e,t),e.prototype.getComponents=function(){var t=[new wP(this.model,this.services),new OP(this.model,this.services),new MP(this.model,this.services),new jM(this.model,this.services),new $M(this.model,this.services,{stacked:!0}),new KM(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0,stacked:!0})],e=this.getAxisChartComponents(t);return e.push(new mM(this.model,this.services)),e},e}(RP),HP=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)}}(),VP=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ef.mergeDefaultChartOptions(Af.simpleBarChart,n.options)),r.init(e,n),r}return HP(e,t),e.prototype.getComponents=function(){var t=[new wP(this.model,this.services),new OP(this.model,this.services),new HM(this.model,this.services),new PP(this.model,this.services),new bA(this.model,this.services,{skeleton:L.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e.push(new dM(this.model,this.services)),e},e}(RP),FP=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)}}(),GP=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ef.mergeDefaultChartOptions(Af.groupedBarChart,n.options)),r.init(e,n),r}return FP(e,t),e.prototype.getComponents=function(){var t=[new wP(this.model,this.services),new OP(this.model,this.services),new FM(this.model,this.services),new PP(this.model,this.services),new bA(this.model,this.services,{skeleton:L.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e.push(new dM(this.model,this.services)),e},e}(RP),BP=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)}}(),zP=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ef.mergeDefaultChartOptions(Af.stackedBarChart,n.options)),r.init(e,n),r}return BP(e,t),e.prototype.getComponents=function(){var t=[new wP(this.model,this.services),new OP(this.model,this.services),new BM(this.model,this.services),new bA(this.model,this.services,{skeleton:L.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e.push(new dM(this.model,this.services)),e},e}(RP),WP=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)}}(),YP=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ef.mergeDefaultChartOptions(Af.bubbleChart,n.options)),r.init(e,n),r}return WP(e,t),e.prototype.getComponents=function(){var t=[new wP(this.model,this.services),new OP(this.model,this.services),new MP(this.model,this.services),new qM(this.model,this.services),new bA(this.model,this.services,{skeleton:L.GRID})],e=this.getAxisChartComponents(t);return e.push(new mM(this.model,this.services)),e},e}(RP),qP=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)}}(),XP=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ef.mergeDefaultChartOptions(Af.lineChart,n.options)),r.init(e,n),r}return qP(e,t),e.prototype.getComponents=function(){var t=[new wP(this.model,this.services),new OP(this.model,this.services),new MP(this.model,this.services),new $M(this.model,this.services),new WM(this.model,this.services,{handleThresholds:!0}),new bA(this.model,this.services,{skeleton:L.GRID})],e=this.getAxisChartComponents(t);return e.push(new mM(this.model,this.services)),e},e}(RP),$P=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)}}(),ZP=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ef.mergeDefaultChartOptions(Af.scatterChart,n.options)),r.init(e,n),r}return $P(e,t),e.prototype.getComponents=function(){var t=[new wP(this.model,this.services),new OP(this.model,this.services),new MP(this.model,this.services),new WM(this.model,this.services),new bA(this.model,this.services,{skeleton:L.GRID})],e=this.getAxisChartComponents(t);return e.push(new mM(this.model,this.services)),e},e}(RP),KP=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)}}(),QP=function(t){function e(e){return t.call(this,e)||this}return KP(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}(l_),JP=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(e,n,r){void 0===r&&(r=!1);var i=t.call(this,e,n)||this;return i.model=new QP(i.services),r?i:(i.model.setOptions(ef.mergeDefaultChartOptions(Af.pieChart,n.options)),i.init(e,n),i)}return JP(e,t),e.prototype.getComponents=function(){var t=[new hA(this.model,this.services),new bA(this.model,this.services,{skeleton:L.PIE})],e=this.getChartComponents(t);return e.push(new gM(this.model,this.services)),e},e}(kP),eC=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)}}(),nC=function(t){function e(e,n){var r=t.call(this,e,n,!0)||this;return r.model.setOptions(ef.mergeDefaultChartOptions(Af.donutChart,n.options)),r.init(e,n),r}return eC(e,t),e.prototype.getComponents=function(){var t=[new yA(this.model,this.services),new bA(this.model,this.services,{skeleton:L.DONUT})],e=this.getChartComponents(t);return e.push(new gM(this.model,this.services)),e},e}(tC);function rC(t){var e=iC(aC(t),360);return oC(e,[0,10])||oC(e,[350,0])?{textAnchor:D.START,dominantBaseline:R.MIDDLE}:oC(e,[10,80])?{textAnchor:D.START,dominantBaseline:R.HANGING}:oC(e,[80,100])?{textAnchor:D.MIDDLE,dominantBaseline:R.HANGING}:oC(e,[100,170])?{textAnchor:D.END,dominantBaseline:R.HANGING}:oC(e,[170,190])?{textAnchor:D.END,dominantBaseline:R.MIDDLE}:oC(e,[190,260])?{textAnchor:D.END,dominantBaseline:R.BASELINE}:oC(e,[260,280])?{textAnchor:D.MIDDLE,dominantBaseline:R.BASELINE}:{textAnchor:D.START,dominantBaseline:R.BASELINE}}function iC(t,e){return(t%e+e)%e}function oC(t,e){var n=e[0],r=e[1];return t>=n&&t<=r}function aC(t){return t*(180/Math.PI)}function sC(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 uC(t,e){return e*Math.sin(t-Math.PI/2)}var cC=hC(cT);function lC(t){this._curve=t}function hC(t){function e(e){return new lC(t(e))}return e._curve=t,e}function fC(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(hC(t)):e()._curve},t}lC.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 pC,dC,vC,gC=function(){return fC(CM().curve(cC))},yC=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)}}(),mC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e.getLabelDimensions=function(t){var n=uw.appendOrSelect(e.svg,"g.tmp-tick"),r=uw.appendOrSelect(n,"text").text(t),i=uw.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.model.getOptions(),r=ef.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=ef.getProperty(n,"data","groupMapsTo"),s=ef.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 ef.merge(s,t)},e.normalizeGroupedData=function(t){var n=e.model.getOptions(),r=ef.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=ef.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:ef.merge(s,r)}}))},e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=ef.getProperty(e.model.getOptions(),"radar","opacity");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?ef.getProperty(r,"unselected"):ef.getProperty(r,"selected")}))},e.handleLegendMouseOut=function(t){var n=ef.getProperty(e.model.getOptions(),"radar","opacity");e.parent.selectAll("g.blobs path").transition(e.services.transitions.getTransition("legend-mouseout-blob")).style("fill-opacity",ef.getProperty(n,"selected"))},e}return yC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(N.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(N.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0),this.svg=this.getContainerSVG();var n=uw.getSVGElementSize(this.parent,{useAttrs:!0}),r=n.width,i=n.height,a=this.model.getData(),s=this.model.getDisplayData(),u=this.model.getGroupedData(),c=this.model.getOptions(),l=ef.getProperty(c,"radar","axes"),h=l.angle,f=l.value,p=ef.getProperty(c,"data","groupMapsTo"),d=ef.getProperty(c,"radar"),v=d.xLabelPadding,g=d.yLabelPadding,y=d.yTicksNumber,m=d.minRange,_=d.xAxisRectHeight,b=d.opacity;this.uniqueKeys=Array.from(new Set(a.map((function(t){return t[h]})))),this.uniqueGroups=Array.from(new Set(a.map((function(t){return t[p]})))),this.displayDataNormalized=this.normalizeFlatData(s),this.groupedDataNormalized=this.normalizeGroupedData(u);var w=this.getLabelDimensions(this.uniqueKeys[0]).height,x=2*(w+g),O=Math.min(r,i),T=O-x,S=T/2;if(!(S<=0)){var E=Fd().domain(this.displayDataNormalized.map((function(t){return t[h]}))).range([0,2*Math.PI].map((function(t){return t-Math.PI/2}))),M=Eg().domain([0,Td(this.displayDataNormalized.map((function(t){return t[f]})))]).range([m,S]).nice(y),A=M.ticks(y),P=function(t){return e.model.getFillColor(t)},C=gC().angle((function(t){return E(t[h])+Math.PI/2})).radius((function(t){return M(t[f])})).curve(fT),k=gC().angle(C.angle()).radius((function(t){return pC?pC(t[f]):m})).curve(C.curve()),L=this.uniqueKeys.map((function(t){var n=e.getLabelDimensions(t).width,r=uC(E(t),S);return n+r})),D=Td(L),R={x:D+v,y:i/2},j=uw.appendOrSelect(this.svg,"g.y-axes").attr("role",o.GROUP),I=j.selectAll("path").data(A,(function(t){return t})),U=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",o.GRAPHICS_SYMBOL).attr("opacity",0).attr("transform","translate("+R.x+", "+R.y+")").attr("fill","none").attr("d",(function(t){return k(U(t))})).call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_axes_enter",t)).attr("opacity",1).attr("d",(function(t){return C(U(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 C(U(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 C(U(t))})).attr("opacity",0).remove()}))}));var N=uw.appendOrSelect(this.svg,"g.y-labels").attr("role",o.GROUP),H=N.selectAll("text").data(vd(A));H.join((function(n){return n.append("text").attr("opacity",0).text((function(t){return t})).attr("x",(function(t){return sC(-Math.PI/2,M(t),R).x+g})).attr("y",(function(t){return sC(-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 sC(-Math.PI/2,M(t),R).x+g})).attr("y",(function(t){return sC(-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 V=uw.appendOrSelect(this.svg,"g.x-axes").attr("role",o.GROUP),F=V.selectAll("line").data(this.uniqueKeys,(function(t){return t}));F.join((function(n){return n.append("line").attr("role",o.GRAPHICS_SYMBOL).attr("opacity",0).attr("class",(function(t){return"x-axis-"+ef.kebabCase(t)})).attr("stroke-dasharray","0").attr("x1",(function(t){return sC(E(t),0,R).x})).attr("y1",(function(t){return sC(E(t),0,R).y})).attr("x2",(function(t){return sC(E(t),0,R).x})).attr("y2",(function(t){return sC(E(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 sC(E(t),M.range()[0],R).x})).attr("y1",(function(t){return sC(E(t),M.range()[0],R).y})).attr("x2",(function(t){return sC(E(t),M.range()[1],R).x})).attr("y2",(function(t){return sC(E(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 sC(E(t),M.range()[0],R).x})).attr("y1",(function(t){return sC(E(t),M.range()[0],R).y})).attr("x2",(function(t){return sC(E(t),M.range()[1],R).x})).attr("y2",(function(t){return sC(E(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=uw.appendOrSelect(this.svg,"g.x-labels").attr("role",o.GROUP),B=G.selectAll("text").data(this.uniqueKeys);B.join((function(n){return n.append("text").text((function(t){return t})).attr("opacity",0).attr("x",(function(t){return sC(E(t),M.range()[1]+v,R).x})).attr("y",(function(t){return sC(E(t),M.range()[1]+v,R).y})).style("text-anchor",(function(t){return rC(E(t)).textAnchor})).style("dominant-baseline",(function(t){return rC(E(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 sC(E(t),M.range()[1]+v,R).x})).attr("y",(function(t){return sC(E(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 z=uw.appendOrSelect(this.svg,"g.blobs").attr("role",o.GROUP),W=z.selectAll("path").data(this.groupedDataNormalized,(function(t){return t.name}));W.join((function(n){return n.append("path").attr("class","blob").attr("role",o.GRAPHICS_SYMBOL).attr("opacity",0).attr("transform","translate("+R.x+", "+R.y+")").attr("fill",(function(t){return P(t.name)})).style("fill-opacity",b.selected).attr("stroke",(function(t){return P(t.name)})).attr("d",(function(t){return k(t.data)})).call((function(n){return n.transition(e.services.transitions.getTransition("radar_blobs_enter",t)).attr("opacity",1).attr("d",(function(t){return C(t.data)}))}))}),(function(n){return 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 C(t.data)}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_blobs_exit",t)).attr("d",(function(t){return C(t.data)})).attr("opacity",0).remove()}))}));var Y=uw.appendOrSelect(this.svg,"g.dots").attr("role",o.GROUP),q=Y.selectAll("circle").data(this.displayDataNormalized);q.join((function(t){return t.append("circle").attr("role",o.GRAPHICS_SYMBOL)}),(function(t){return t}),(function(t){return t.remove()})).attr("class",(function(t){return ef.kebabCase(t[h])})).attr("cx",(function(t){return sC(E(t[h]),M(t[f]),R).x})).attr("cy",(function(t){return sC(E(t[h]),M(t[f]),R).y})).attr("r",0).attr("opacity",0).attr("fill",(function(t){return P(t[p])}));var X=uw.appendOrSelect(this.svg,"g.x-axes-rect").attr("role",o.GROUP),$=X.selectAll("rect").data(this.uniqueKeys);$.join((function(t){return t.append("rect").attr("role",o.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",_).attr("fill","red").style("fill-opacity",0).attr("transform",(function(t){return"rotate("+aC(E(t))+", "+R.x+", "+R.y+")"})),this.addEventListeners(),pC=M}},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(N.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(N.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.addEventListeners=function(){var t=this,e=ef.getProperty(this.model.getOptions(),"radar"),n=e.axes.angle,r=e.dotsRadius;this.parent.selectAll(".x-axes-rect > rect").on("mouseover",(function(e){t.services.events.dispatchEvent(N.Radar.X_AXIS_MOUSEOVER,{element:nw(this),datum:e})})).on("mousemove",(function(e){var i=nw(this),o=t.parent.select(".x-axes .x-axis-"+ef.kebabCase(e)),a=t.parent.selectAll(".dots circle."+ef.kebabCase(e));o.classed("hovered",!0).attr("stroke-dasharray","4 4"),a.classed("hovered",!0).attr("opacity",1).attr("r",r),t.services.events.dispatchEvent(N.Radar.X_AXIS_MOUSEMOVE,{element:i,datum:e});var s=t.displayDataNormalized.filter((function(t){return t[n]===e}));t.services.events.dispatchEvent(N.Tooltip.SHOW,{hoveredElement:i,multidata:s,type:E.GRIDLINE})})).on("click",(function(e){t.services.events.dispatchEvent(N.Radar.X_AXIS_CLICK,{element:nw(this),datum:e})})).on("mouseout",(function(e){var n=nw(this),r=t.parent.select(".x-axes .x-axis-"+ef.kebabCase(e)),i=t.parent.selectAll(".dots circle."+ef.kebabCase(e));r.classed("hovered",!1).attr("stroke-dasharray","0"),i.classed("hovered",!1).attr("opacity",0).attr("r",0),t.services.events.dispatchEvent(N.Radar.X_AXIS_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent("hide-tooltip",{hoveredElement:n}),t.services.events.dispatchEvent(N.Tooltip.HIDE,{hoveredElement:n})}))},e}(vS),_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(e,n,r){void 0===r&&(r=!1);var i=t.call(this,e,n)||this;return r?i:(i.model.setOptions(ef.mergeDefaultChartOptions(Af.radarChart,n.options)),i.init(e,n),i)}return _C(e,t),e.prototype.getComponents=function(){var t=[new mC(this.model,this.services)],e=this.getChartComponents(t);return e.push(new bM(this.model,this.services)),e},e}(kP),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)}}(),xC=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(ef.mergeDefaultChartOptions(Af.gaugeChart,n.options)),r.init(e,n),r}return wC(e,t),e.prototype.getComponents=function(){var t=[new vA(this.model,this.services)],e=this.getChartComponents(t);return e},e}(kP),OC={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}}},TC=OC;function SC(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 EC=SC(TC,dC,vC,!1,null,null,null),MC=EC.exports,AC={name:"CcvAreaChart",extends:MC,mounted:function(){this.coreChart=new IP(this.$el,{data:this.data,options:this.options})}},PC=AC,CC=SC(PC,_,b,!1,null,null,null),kC=CC.exports,LC=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-bar-chart"})},DC=[],RC={name:"CcvStackedAreaChart",extends:MC,mounted:function(){this.coreChart=new NP(this.$el,{data:this.data,options:this.options})}},jC=RC,IC=SC(jC,LC,DC,!1,null,null,null),UC=IC.exports,NC=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-simple-bar-chart"})},HC=[],VC={name:"CcvSimpleBarChart",extends:MC,mounted:function(){this.coreChart=new VP(this.$el,{data:this.data,options:this.options})}},FC=VC,GC=SC(FC,NC,HC,!1,null,null,null),BC=GC.exports,zC=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-grouped-bar-chart"})},WC=[],YC={name:"CcvGroupedBarChart",extends:MC,mounted:function(){this.coreChart=new GP(this.$el,{data:this.data,options:this.options})}},qC=YC,XC=SC(qC,zC,WC,!1,null,null,null),$C=XC.exports,ZC=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-bar-chart"})},KC=[],QC={name:"CcvStackedBarChart",extends:MC,mounted:function(){this.coreChart=new zP(this.$el,{data:this.data,options:this.options})}},JC=QC,tk=SC(JC,ZC,KC,!1,null,null,null),ek=tk.exports,nk=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-bubble-chart"})},rk=[],ik={name:"CcvBubbleChart",extends:MC,mounted:function(){this.coreChart=new YP(this.$el,{data:this.data,options:this.options})}},ok=ik,ak=SC(ok,nk,rk,!1,null,null,null),sk=ak.exports,uk=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-donut-chart"})},ck=[],lk={name:"CcvDonutChart",extends:MC,mounted:function(){this.coreChart=new nC(this.$el,{data:this.data,options:this.options})}},hk=lk,fk=SC(hk,uk,ck,!1,null,null,null),pk=fk.exports,dk=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-gauge-chart"})},vk=[],gk={name:"CcvGaugeChart",extends:MC,mounted:function(){this.coreChart=new xC(this.$el,{data:this.data,options:this.options})}},yk=gk,mk=SC(yk,dk,vk,!1,null,null,null),_k=mk.exports,bk=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-line-chart"})},wk=[],xk={name:"CcvLineChart",extends:MC,mounted:function(){this.coreChart=new XP(this.$el,{data:this.data,options:this.options})}},Ok=xk,Tk=SC(Ok,bk,wk,!1,null,null,null),Sk=Tk.exports,Ek=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-pie-chart"})},Mk=[],Ak={name:"CcvPieChart",extends:MC,mounted:function(){this.coreChart=new tC(this.$el,{data:this.data,options:this.options})}},Pk=Ak,Ck=SC(Pk,Ek,Mk,!1,null,null,null),kk=Ck.exports,Lk=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-scatter-chart"})},Dk=[],Rk={name:"CcvScatterChart",extends:MC,mounted:function(){this.coreChart=new ZP(this.$el,{data:this.data,options:this.options})}},jk=Rk,Ik=SC(jk,Lk,Dk,!1,null,null,null),Uk=Ik.exports,Nk=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-radar-chart"})},Hk=[],Vk={name:"CcvRadarChart",extends:MC,mounted:function(){this.coreChart=new bC(this.$el,{data:this.data,options:this.options})}},Fk=Vk,Gk=SC(Fk,Nk,Hk,!1,null,null,null),Bk=Gk.exports,zk=[kC,UC,BC,$C,ek,sk,pk,_k,Sk,kk,Uk,Bk],Wk={install:function(t,e){if("undefined"===typeof e){var n=!0,r=!1,i=void 0;try{for(var o,a=zk[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=zk[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 kC})),n.d(e,"CcvStackedAreaChart",(function(){return UC})),n.d(e,"CcvSimpleBarChart",(function(){return BC})),n.d(e,"CcvGroupedBarChart",(function(){return $C})),n.d(e,"CcvStackedBarChart",(function(){return ek})),n.d(e,"CcvBubbleChart",(function(){return sk})),n.d(e,"CcvDonutChart",(function(){return pk})),n.d(e,"CcvGaugeChart",(function(){return _k})),n.d(e,"CcvLineChart",(function(){return Sk})),n.d(e,"CcvPieChart",(function(){return kk})),n.d(e,"CcvScatterChart",(function(){return Uk})),n.d(e,"CcvRadarChart",(function(){return Bk}));e["default"]=Wk},"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},"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=T(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 y(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 m(t){var e=t.getBBox();return T(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=y(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)),!w(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 T(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 w(t){return t===p(t).document.documentElement}function x(t){return r?b(t)?m(t):_(t):d}function O(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 T(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_=T(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 E=function(t,e){var n=O(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 E(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 A="undefined"!==typeof WeakMap?new WeakMap:new n,P=function(t){if(!(this instanceof P))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);A.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){P.prototype[t]=function(){return(e=A.get(this))[t].apply(e,arguments);var e}}));var C=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:P}();e["a"]=C}).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"),y="keys",m="values",_="entries",b=function(){return this};t.exports=function(t,e,n,l,p,w,x){i(n,e,l);var O,T,S,E=function(t){if(t===p&&k)return k;if(!v&&t in P)return P[t];switch(t){case y:return function(){return new n(this,t)};case m:return function(){return new n(this,t)};case _:return function(){return new n(this,t)}}return function(){return new n(this)}},M=e+" Iterator",A=!1,P=t.prototype,C=P[g]||P["@@iterator"]||p&&P[p],k=!v&&C||E(p),L="Array"==e&&P.entries||C;if(L&&(O=o(L.call(new t)),d!==Object.prototype&&O.next&&(h||o(O)===d||(a?a(O,d):"function"!=typeof O[g]&&u(O,g,b)),s(O,M,!0,!0),h&&(f[M]=b))),p==m&&C&&C.name!==m&&(A=!0,k=function(){return C.call(this)}),h&&!x||P[g]===k||u(P,g,k),f[e]=k,p)if(T={values:E(m),keys:w?k:E(y),entries:E(_)},x)for(S in T)!v&&!A&&S in P||c(P,S,T[S]);else r({target:e,proto:!0,forced:v||A},T);return T}},"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,y=t.stat;if(l=g?r:y?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+(y?".":"#")+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}))},"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(){},y=function(t){return f+d+h+t+f+"/"+d+h},m=function(t){t.write(y("")),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(y("document.F=Object")),t.close(),t.F},b=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}b=r?m(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},y={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}},m={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:y,defaultParseWidth:"any"})},_=m;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,y=g.get,m=g.has,_=g.set;r=function(t,e){return _.call(g,t,e),e},i=function(t){return y.call(g,t)||{}},o=function(t){return m.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)}))}},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 y,m,_=o(p),b=i(_),w=r(d,v,3),x=a(b.length),O=0,T=g||s,S=e?T(p,x):n?T(p,0):void 0;x>O;O++)if((f||O in b)&&(y=b[O],m=w(y,O,_),t))if(e)S[O]=m;else if(m)switch(t){case 3:return!0;case 5:return y;case 6:return O;case 2:u.call(S,y)}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"),y=n("083f"),m=n("9618"),_=n("82e8"),b=n("0c47"),w=n("65d0"),x=n("ee58"),O=n("2402"),T=n("185a"),S=n("abdf"),E=n("e129"),M=n("5b12"),A=n("b8ba"),P=n("4cdd"),C=n("332c"),k=n("d687"),L=n("1d8a"),D=n("7d53"),R=n("4e41"),j=n("6a89"),I=n("fa46"),U=n("cdcd"),N=n("d054").forEach,H=C("hidden"),V="Symbol",F="prototype",G=D("toPrimitive"),B=U.set,z=U.getterFor(V),W=Object[F],Y=i.Symbol,q=o("JSON","stringify"),X=T.f,$=S.f,Z=x.f,K=E.f,Q=P("symbols"),J=P("op-symbols"),tt=P("string-to-symbol-registry"),et=P("symbol-to-string-registry"),nt=P("wks"),rt=i.QObject,it=!rt||!rt[F]||!rt[F].findChild,ot=s&&l((function(){return 7!=_($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=X(W,e);r&&delete W[e],$(t,e,n),r&&t!==W&&$(W,e,r)}:$,at=function(t,e){var n=Q[t]=_(Y[F]);return B(n,{type:V,tag:t,description:e}),s||(n.description=e),n},st=c?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Y},ut=function(t,e,n){t===W&&ut(J,e,n),d(t);var r=y(e,!0);return d(n),h(Q,r)?(n.enumerable?(h(t,H)&&t[H][r]&&(t[H][r]=!1),n=_(n,{enumerable:m(0,!1)})):(h(t,H)||$(t,H,m(1,{})),t[H][r]=!0),ot(t,r,n)):$(t,r,n)},ct=function(t,e){d(t);var n=g(e),r=b(n).concat(dt(n));return N(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=y(t,!0),n=K.call(this,e);return!(this===W&&h(Q,e)&&!h(J,e))&&(!(n||!h(this,e)||!h(Q,e)||h(this,H)&&this[H][e])||n)},ft=function(t,e){var n=g(t),r=y(e,!0);if(n!==W||!h(Q,r)||h(J,r)){var i=X(n,r);return!i||!h(Q,r)||h(n,H)&&n[H][r]||(i.enumerable=!0),i}},pt=function(t){var e=Z(g(t)),n=[];return N(e,(function(t){h(Q,t)||h(k,t)||n.push(t)})),n},dt=function(t){var e=t===W,n=Z(e?J:g(t)),r=[];return N(n,(function(t){!h(Q,t)||e&&!h(W,t)||r.push(Q[t])})),r};if(u||(Y=function(){if(this instanceof Y)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,H)&&h(this[H],e)&&(this[H][e]=!1),ot(this,e,m(1,t))};return s&&it&&ot(W,e,{configurable:!0,set:n}),at(e,t)},A(Y[F],"toString",(function(){return z(this).tag})),A(Y,"withoutSetter",(function(t){return at(L(t),t)})),E.f=ht,S.f=ut,T.f=ft,w.f=x.f=pt,O.f=dt,R.f=function(t){return at(D(t),t)},s&&($(Y[F],"description",{configurable:!0,get:function(){return z(this).description}}),a||A(W,"propertyIsEnumerable",ht,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:Y}),N(b(nt),(function(t){j(t)})),r({target:V,stat:!0,forced:!u},{for:function(t){var e=String(t);if(h(tt,e))return tt[e];var n=Y(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(){O.f(1)}))},{getOwnPropertySymbols:function(t){return O.f(v(t))}}),q){var vt=!u||l((function(){var t=Y();return"[null]"!=q([t])||"{}"!=q({a:t})||"{}"!=q(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,q.apply(null,i)}})}Y[F][G]||M(Y[F],G,Y[F].valueOf),I(Y,V),k[H]=!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,i={};(n.r(i),n.d(i,"Chart",(function(){return a})),n.d(i,"Model",(function(){return s})),n.d(i,"Axis",(function(){return u})),n.d(i,"Area",(function(){return c})),n.d(i,"Pie",(function(){return l})),n.d(i,"Gauge",(function(){return h})),n.d(i,"Bar",(function(){return f})),n.d(i,"Scatter",(function(){return p})),n.d(i,"Line",(function(){return d})),n.d(i,"Radar",(function(){return v})),n.d(i,"Tooltip",(function(){return g})),n.d(i,"Threshold",(function(){return y})),n.d(i,"Legend",(function(){return m})),"undefined"!==typeof window)&&(n("4141"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));n("d6de"),n("8d0f"),n("68b8"),n("8d0d"),n("9531"),n("868d"),n("ef1f"),n("c78b"),n("f3b8"),n("918c");var o,a,s,u,c,l,h,f,p,d,v,g,y,m,_=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-area-chart"})},b=[];(function(t){t["GRAPHICS_DOCUMENT"]="graphics-document",t["GRAPHICS_OBJECT"]="graphics-object",t["GRAPHICS_SYMBOL"]="graphics-symbol",t["GROUP"]="group"})(o||(o={})),function(t){t["RENDER_FINISHED"]="render-finished",t["RESIZE"]="chart-resize",t["MOUSEOVER"]="chart-mouseover",t["MOUSEOUT"]="chart-mouseout"}(a||(a={})),function(t){t["UPDATE"]="model-update"}(s||(s={})),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"}(u||(u={})),function(t){t["AREA_MOUSEOVER"]="area-mouseover",t["AREA_MOUSEMOVE"]="area-mousemove",t["AREA_CLICK"]="area-click",t["AREA_MOUSEOUT"]="area-mouseout"}(c||(c={})),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"}(l||(l={})),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"}(h||(h={})),function(t){t["BAR_MOUSEOVER"]="bar-mouseover",t["BAR_MOUSEMOVE"]="bar-mousemove",t["BAR_CLICK"]="bar-click",t["BAR_MOUSEOUT"]="bar-mouseout"}(f||(f={})),function(t){t["SCATTER_MOUSEOVER"]="scatter-mouseover",t["SCATTER_MOUSEMOVE"]="scatter-mousemove",t["SCATTER_CLICK"]="scatter-click",t["SCATTER_MOUSEOUT"]="scatter-mouseout"}(p||(p={})),function(t){t["POINT_MOUSEOVER"]="scatter-mouseover",t["POINT_MOUSEMOVE"]="scatter-mousemove",t["POINT_CLICK"]="scatter-click",t["POINT_MOUSEOUT"]="scatter-mouseout"}(d||(d={})),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"}(v||(v={})),function(t){t["SHOW"]="show-tooltip",t["HIDE"]="hide-tooltip"}(g||(g={})),function(t){t["SHOW"]="show-threshold",t["HIDE"]="hide-threshold"}(y||(y={})),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"}(m||(m={}));var w,x,O,T,E,S,M,A,P,C,k,L,D,R,I,j,N,U,H=i;function V(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}(function(t){t["DEFAULT"]="default",t["G100"]="g100",t["G90"]="g90",t["G10"]="g10"})(w||(w={})),function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"}(x||(x={})),function(t){t["END_LINE"]="end_line",t["MID_LINE"]="mid_line",t["FRONT_LINE"]="front_line",t["NONE"]="none"}(O||(O={})),function(t){t["VERTICAL"]="vertical",t["HORIZONTAL"]="horizontal"}(T||(T={})),function(t){t["TIME"]="time",t["LINEAR"]="linear",t["LOG"]="log",t["LABELS"]="labels"}(E||(E={})),function(t){t["MOUSE"]="mouse",t["TOP"]="top",t["BOTTOM"]="bottom"}(S||(S={})),function(t){t["DATAPOINT"]="datapoint",t["GRIDLINE"]="gridline",t["TITLE"]="title",t["LEGEND"]="legend",t["AXISLABEL"]="axislabel"}(M||(M={})),function(t){t["RIGHT"]="right",t["LEFT"]="left",t["TOP"]="top",t["BOTTOM"]="bottom"}(A||(A={})),function(t){t["HORIZONTAL"]="horizontal",t["VERTICAL"]="vertical"}(P||(P={})),function(t){t["ROW"]="row",t["COLUMN"]="column",t["ROW_REVERSE"]="row-reverse",t["COLUMN_REVERSE"]="column-reverse"}(C||(C={})),function(t){t["FIXED"]="fixed",t["PREFERRED"]="preferred",t["STRETCH"]="stretch"}(k||(k={})),function(t){t["LEFT"]="left",t["RIGHT"]="right"}(L||(L={})),function(t){t["GRID"]="grid",t["VERT_OR_HORIZ"]="vertOrHoriz",t["PIE"]="pie",t["DONUT"]="donut"}(D||(D={})),function(t){t["START"]="start",t["MIDDLE"]="middle",t["END"]="end"}(R||(R={})),function(t){t["BASELINE"]="baseline",t["MIDDLE"]="middle",t["HANGING"]="hanging"}(I||(I={})),function(t){t["SEMI"]="semi",t["FULL"]="full"}(j||(j={})),function(t){t["UP"]="up",t["DOWN"]="down"}(N||(N={})),function(t){t["SUCCESS"]="success",t["WARNING"]="warning",t["DANGER"]="danger"}(U||(U={}));var G=V,F=n("7f0d"),B=function(){return F["a"].Date.now()},z=B,W=F["a"].Symbol,Y=W,q=Object.prototype,X=q.hasOwnProperty,$=q.toString,Z=Y?Y.toStringTag:void 0;function K(t){var e=X.call(t,Z),n=t[Z];try{t[Z]=void 0;var r=!0}catch(o){}var i=$.call(t);return r&&(e?t[Z]=n:delete t[Z]),i}var Q=K,J=Object.prototype,tt=J.toString;function et(t){return tt.call(t)}var nt=et,rt="[object Null]",it="[object Undefined]",ot=Y?Y.toStringTag:void 0;function at(t){return null==t?void 0===t?it:rt:ot&&ot in Object(t)?Q(t):nt(t)}var st=at;function ut(t){return null!=t&&"object"==typeof t}var ct=ut,lt="[object Symbol]";function ht(t){return"symbol"==typeof t||ct(t)&&st(t)==lt}var ft=ht,pt=NaN,dt=/^\s+|\s+$/g,vt=/^[-+]0x[0-9a-f]+$/i,gt=/^0b[01]+$/i,yt=/^0o[0-7]+$/i,mt=parseInt;function _t(t){if("number"==typeof t)return t;if(ft(t))return pt;if(G(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=G(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(dt,"");var n=gt.test(t);return n||yt.test(t)?mt(t.slice(2),n?2:8):vt.test(t)?pt:+t}var bt=_t,wt="Expected a function",xt=Math.max,Ot=Math.min;function Tt(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(wt);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(y,e),l?p(t):a}function v(t){var n=t-u,r=t-c,i=e-n;return h?Ot(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 y(){var t=z();if(g(t))return m(t);s=setTimeout(y,v(t))}function m(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:m(z())}function w(){var t=z(),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(y,e),p(u)}return void 0===s&&(s=setTimeout(y,e)),a}return e=bt(e)||0,G(n)&&(l=!!n.leading,h="maxWait"in n,o=h?xt(bt(n.maxWait)||0,e):o,f="trailing"in n?!!n.trailing:f),w.cancel=_,w.flush=b,w}var Et=Tt;function St(){this.__data__=[],this.size=0}var Mt=St;function At(t,e){return t===e||t!==t&&e!==e}var Pt=At;function Ct(t,e){var n=t.length;while(n--)if(Pt(t[n][0],e))return n;return-1}var kt=Ct,Lt=Array.prototype,Dt=Lt.splice;function Rt(t){var e=this.__data__,n=kt(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Dt.call(e,n,1),--this.size,!0}var It=Rt;function jt(t){var e=this.__data__,n=kt(e,t);return n<0?void 0:e[n][1]}var Nt=jt;function Ut(t){return kt(this.__data__,t)>-1}var Ht=Ut;function Vt(t,e){var n=this.__data__,r=kt(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var Gt=Vt;function Ft(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])}}Ft.prototype.clear=Mt,Ft.prototype["delete"]=It,Ft.prototype.get=Nt,Ft.prototype.has=Ht,Ft.prototype.set=Gt;var Bt=Ft;function zt(){this.__data__=new Bt,this.size=0}var Wt=zt;function Yt(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}var qt=Yt;function Xt(t){return this.__data__.get(t)}var $t=Xt;function Zt(t){return this.__data__.has(t)}var Kt=Zt,Qt="[object AsyncFunction]",Jt="[object Function]",te="[object GeneratorFunction]",ee="[object Proxy]";function ne(t){if(!G(t))return!1;var e=st(t);return e==Jt||e==te||e==Qt||e==ee}var re=ne,ie=F["a"]["__core-js_shared__"],oe=ie,ae=function(){var t=/[^.]+$/.exec(oe&&oe.keys&&oe.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function se(t){return!!ae&&ae in t}var ue=se,ce=Function.prototype,le=ce.toString;function he(t){if(null!=t){try{return le.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var fe=he,pe=/[\\^$.*+?()[\]{}|]/g,de=/^\[object .+?Constructor\]$/,ve=Function.prototype,ge=Object.prototype,ye=ve.toString,me=ge.hasOwnProperty,_e=RegExp("^"+ye.call(me).replace(pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function be(t){if(!G(t)||ue(t))return!1;var e=re(t)?_e:de;return e.test(fe(t))}var we=be;function xe(t,e){return null==t?void 0:t[e]}var Oe=xe;function Te(t,e){var n=Oe(t,e);return we(n)?n:void 0}var Ee=Te,Se=Ee(F["a"],"Map"),Me=Se,Ae=Ee(Object,"create"),Pe=Ae;function Ce(){this.__data__=Pe?Pe(null):{},this.size=0}var ke=Ce;function Le(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var De=Le,Re="__lodash_hash_undefined__",Ie=Object.prototype,je=Ie.hasOwnProperty;function Ne(t){var e=this.__data__;if(Pe){var n=e[t];return n===Re?void 0:n}return je.call(e,t)?e[t]:void 0}var Ue=Ne,He=Object.prototype,Ve=He.hasOwnProperty;function Ge(t){var e=this.__data__;return Pe?void 0!==e[t]:Ve.call(e,t)}var Fe=Ge,Be="__lodash_hash_undefined__";function ze(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Pe&&void 0===e?Be:e,this}var We=ze;function Ye(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])}}Ye.prototype.clear=ke,Ye.prototype["delete"]=De,Ye.prototype.get=Ue,Ye.prototype.has=Fe,Ye.prototype.set=We;var qe=Ye;function Xe(){this.size=0,this.__data__={hash:new qe,map:new(Me||Bt),string:new qe}}var $e=Xe;function Ze(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}var Ke=Ze;function Qe(t,e){var n=t.__data__;return Ke(e)?n["string"==typeof e?"string":"hash"]:n.map}var Je=Qe;function tn(t){var e=Je(this,t)["delete"](t);return this.size-=e?1:0,e}var en=tn;function nn(t){return Je(this,t).get(t)}var rn=nn;function on(t){return Je(this,t).has(t)}var an=on;function sn(t,e){var n=Je(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var un=sn;function cn(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])}}cn.prototype.clear=$e,cn.prototype["delete"]=en,cn.prototype.get=rn,cn.prototype.has=an,cn.prototype.set=un;var ln=cn,hn=200;function fn(t,e){var n=this.__data__;if(n instanceof Bt){var r=n.__data__;if(!Me||r.length<hn-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new ln(r)}return n.set(t,e),this.size=n.size,this}var pn=fn;function dn(t){var e=this.__data__=new Bt(t);this.size=e.size}dn.prototype.clear=Wt,dn.prototype["delete"]=qt,dn.prototype.get=$t,dn.prototype.has=Kt,dn.prototype.set=pn;var vn=dn;function gn(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 yn=gn,mn=function(){try{var t=Ee(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),_n=mn;function bn(t,e,n){"__proto__"==e&&_n?_n(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var wn=bn,xn=Object.prototype,On=xn.hasOwnProperty;function Tn(t,e,n){var r=t[e];On.call(t,e)&&Pt(r,n)&&(void 0!==n||e in t)||wn(t,e,n)}var En=Tn;function Sn(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?wn(n,s,u):En(n,s,u)}return n}var Mn=Sn;function An(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}var Pn=An,Cn="[object Arguments]";function kn(t){return ct(t)&&st(t)==Cn}var Ln=kn,Dn=Object.prototype,Rn=Dn.hasOwnProperty,In=Dn.propertyIsEnumerable,jn=Ln(function(){return arguments}())?Ln:function(t){return ct(t)&&Rn.call(t,"callee")&&!In.call(t,"callee")},Nn=jn,Un=Array.isArray,Hn=Un,Vn=n("4cf0"),Gn=9007199254740991,Fn=/^(?:0|[1-9]\d*)$/;function Bn(t,e){var n=typeof t;return e=null==e?Gn:e,!!e&&("number"==n||"symbol"!=n&&Fn.test(t))&&t>-1&&t%1==0&&t<e}var zn=Bn,Wn=9007199254740991;function Yn(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Wn}var qn=Yn,Xn="[object Arguments]",$n="[object Array]",Zn="[object Boolean]",Kn="[object Date]",Qn="[object Error]",Jn="[object Function]",tr="[object Map]",er="[object Number]",nr="[object Object]",rr="[object RegExp]",ir="[object Set]",or="[object String]",ar="[object WeakMap]",sr="[object ArrayBuffer]",ur="[object DataView]",cr="[object Float32Array]",lr="[object Float64Array]",hr="[object Int8Array]",fr="[object Int16Array]",pr="[object Int32Array]",dr="[object Uint8Array]",vr="[object Uint8ClampedArray]",gr="[object Uint16Array]",yr="[object Uint32Array]",mr={};function _r(t){return ct(t)&&qn(t.length)&&!!mr[st(t)]}mr[cr]=mr[lr]=mr[hr]=mr[fr]=mr[pr]=mr[dr]=mr[vr]=mr[gr]=mr[yr]=!0,mr[Xn]=mr[$n]=mr[sr]=mr[Zn]=mr[ur]=mr[Kn]=mr[Qn]=mr[Jn]=mr[tr]=mr[er]=mr[nr]=mr[rr]=mr[ir]=mr[or]=mr[ar]=!1;var br=_r;function wr(t){return function(e){return t(e)}}var xr=wr,Or=n("01ff"),Tr=Or["a"]&&Or["a"].isTypedArray,Er=Tr?xr(Tr):br,Sr=Er,Mr=Object.prototype,Ar=Mr.hasOwnProperty;function Pr(t,e){var n=Hn(t),r=!n&&Nn(t),i=!n&&!r&&Object(Vn["a"])(t),o=!n&&!r&&!i&&Sr(t),a=n||r||i||o,s=a?Pn(t.length,String):[],u=s.length;for(var c in t)!e&&!Ar.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||zn(c,u))||s.push(c);return s}var Cr=Pr,kr=Object.prototype;function Lr(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||kr;return t===n}var Dr=Lr;function Rr(t,e){return function(n){return t(e(n))}}var Ir=Rr,jr=Ir(Object.keys,Object),Nr=jr,Ur=Object.prototype,Hr=Ur.hasOwnProperty;function Vr(t){if(!Dr(t))return Nr(t);var e=[];for(var n in Object(t))Hr.call(t,n)&&"constructor"!=n&&e.push(n);return e}var Gr=Vr;function Fr(t){return null!=t&&qn(t.length)&&!re(t)}var Br=Fr;function zr(t){return Br(t)?Cr(t):Gr(t)}var Wr=zr;function Yr(t,e){return t&&Mn(e,Wr(e),t)}var qr=Yr;function Xr(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}var $r=Xr,Zr=Object.prototype,Kr=Zr.hasOwnProperty;function Qr(t){if(!G(t))return $r(t);var e=Dr(t),n=[];for(var r in t)("constructor"!=r||!e&&Kr.call(t,r))&&n.push(r);return n}var Jr=Qr;function ti(t){return Br(t)?Cr(t,!0):Jr(t)}var ei=ti;function ni(t,e){return t&&Mn(e,ei(e),t)}var ri=ni,ii=n("d6f0");function oi(t,e){var n=-1,r=t.length;e||(e=Array(r));while(++n<r)e[n]=t[n];return e}var ai=oi;function si(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 ui=si;function ci(){return[]}var li=ci,hi=Object.prototype,fi=hi.propertyIsEnumerable,pi=Object.getOwnPropertySymbols,di=pi?function(t){return null==t?[]:(t=Object(t),ui(pi(t),(function(e){return fi.call(t,e)})))}:li,vi=di;function gi(t,e){return Mn(t,vi(t),e)}var yi=gi;function mi(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}var _i=mi,bi=Ir(Object.getPrototypeOf,Object),wi=bi,xi=Object.getOwnPropertySymbols,Oi=xi?function(t){var e=[];while(t)_i(e,vi(t)),t=wi(t);return e}:li,Ti=Oi;function Ei(t,e){return Mn(t,Ti(t),e)}var Si=Ei;function Mi(t,e,n){var r=e(t);return Hn(t)?r:_i(r,n(t))}var Ai=Mi;function Pi(t){return Ai(t,Wr,vi)}var Ci=Pi;function ki(t){return Ai(t,ei,Ti)}var Li=ki,Di=Ee(F["a"],"DataView"),Ri=Di,Ii=Ee(F["a"],"Promise"),ji=Ii,Ni=Ee(F["a"],"Set"),Ui=Ni,Hi=Ee(F["a"],"WeakMap"),Vi=Hi,Gi="[object Map]",Fi="[object Object]",Bi="[object Promise]",zi="[object Set]",Wi="[object WeakMap]",Yi="[object DataView]",qi=fe(Ri),Xi=fe(Me),$i=fe(ji),Zi=fe(Ui),Ki=fe(Vi),Qi=st;(Ri&&Qi(new Ri(new ArrayBuffer(1)))!=Yi||Me&&Qi(new Me)!=Gi||ji&&Qi(ji.resolve())!=Bi||Ui&&Qi(new Ui)!=zi||Vi&&Qi(new Vi)!=Wi)&&(Qi=function(t){var e=st(t),n=e==Fi?t.constructor:void 0,r=n?fe(n):"";if(r)switch(r){case qi:return Yi;case Xi:return Gi;case $i:return Bi;case Zi:return zi;case Ki:return Wi}return e});var Ji=Qi,to=Object.prototype,eo=to.hasOwnProperty;function no(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&eo.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var ro=no,io=F["a"].Uint8Array,oo=io;function ao(t){var e=new t.constructor(t.byteLength);return new oo(e).set(new oo(t)),e}var so=ao;function uo(t,e){var n=e?so(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var co=uo,lo=/\w*$/;function ho(t){var e=new t.constructor(t.source,lo.exec(t));return e.lastIndex=t.lastIndex,e}var fo=ho,po=Y?Y.prototype:void 0,vo=po?po.valueOf:void 0;function go(t){return vo?Object(vo.call(t)):{}}var yo=go;function mo(t,e){var n=e?so(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var _o=mo,bo="[object Boolean]",wo="[object Date]",xo="[object Map]",Oo="[object Number]",To="[object RegExp]",Eo="[object Set]",So="[object String]",Mo="[object Symbol]",Ao="[object ArrayBuffer]",Po="[object DataView]",Co="[object Float32Array]",ko="[object Float64Array]",Lo="[object Int8Array]",Do="[object Int16Array]",Ro="[object Int32Array]",Io="[object Uint8Array]",jo="[object Uint8ClampedArray]",No="[object Uint16Array]",Uo="[object Uint32Array]";function Ho(t,e,n){var r=t.constructor;switch(e){case Ao:return so(t);case bo:case wo:return new r(+t);case Po:return co(t,n);case Co:case ko:case Lo:case Do:case Ro:case Io:case jo:case No:case Uo:return _o(t,n);case xo:return new r;case Oo:case So:return new r(t);case To:return fo(t);case Eo:return new r;case Mo:return yo(t)}}var Vo=Ho,Go=Object.create,Fo=function(){function t(){}return function(e){if(!G(e))return{};if(Go)return Go(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),Bo=Fo;function zo(t){return"function"!=typeof t.constructor||Dr(t)?{}:Bo(wi(t))}var Wo=zo,Yo="[object Map]";function qo(t){return ct(t)&&Ji(t)==Yo}var Xo=qo,$o=Or["a"]&&Or["a"].isMap,Zo=$o?xr($o):Xo,Ko=Zo,Qo="[object Set]";function Jo(t){return ct(t)&&Ji(t)==Qo}var ta=Jo,ea=Or["a"]&&Or["a"].isSet,na=ea?xr(ea):ta,ra=na,ia=1,oa=2,aa=4,sa="[object Arguments]",ua="[object Array]",ca="[object Boolean]",la="[object Date]",ha="[object Error]",fa="[object Function]",pa="[object GeneratorFunction]",da="[object Map]",va="[object Number]",ga="[object Object]",ya="[object RegExp]",ma="[object Set]",_a="[object String]",ba="[object Symbol]",wa="[object WeakMap]",xa="[object ArrayBuffer]",Oa="[object DataView]",Ta="[object Float32Array]",Ea="[object Float64Array]",Sa="[object Int8Array]",Ma="[object Int16Array]",Aa="[object Int32Array]",Pa="[object Uint8Array]",Ca="[object Uint8ClampedArray]",ka="[object Uint16Array]",La="[object Uint32Array]",Da={};function Ra(t,e,n,r,i,o){var a,s=e&ia,u=e&oa,c=e&aa;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!G(t))return t;var l=Hn(t);if(l){if(a=ro(t),!s)return ai(t,a)}else{var h=Ji(t),f=h==fa||h==pa;if(Object(Vn["a"])(t))return Object(ii["a"])(t,s);if(h==ga||h==sa||f&&!i){if(a=u||f?{}:Wo(t),!s)return u?Si(t,ri(a,t)):yi(t,qr(a,t))}else{if(!Da[h])return i?t:{};a=Vo(t,h,s)}}o||(o=new vn);var p=o.get(t);if(p)return p;o.set(t,a),ra(t)?t.forEach((function(r){a.add(Ra(r,e,n,r,t,o))})):Ko(t)&&t.forEach((function(r,i){a.set(i,Ra(r,e,n,i,t,o))}));var d=c?u?Li:Ci:u?keysIn:Wr,v=l?void 0:d(t);return yn(v||t,(function(r,i){v&&(i=r,r=t[i]),En(a,i,Ra(r,e,n,i,t,o))})),a}Da[sa]=Da[ua]=Da[xa]=Da[Oa]=Da[ca]=Da[la]=Da[Ta]=Da[Ea]=Da[Sa]=Da[Ma]=Da[Aa]=Da[da]=Da[va]=Da[ga]=Da[ya]=Da[ma]=Da[_a]=Da[ba]=Da[Pa]=Da[Ca]=Da[ka]=Da[La]=!0,Da[ha]=Da[fa]=Da[wa]=!1;var Ia=Ra,ja=1,Na=4;function Ua(t){return Ia(t,ja|Na)}var Ha=Ua;function Va(t,e,n){(void 0===n||Pt(t[e],n))&&(void 0!==n||e in t)||wn(t,e,n)}var Ga=Va;function Fa(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 Ba=Fa,za=Ba(),Wa=za;function Ya(t){return ct(t)&&Br(t)}var qa=Ya,Xa="[object Object]",$a=Function.prototype,Za=Object.prototype,Ka=$a.toString,Qa=Za.hasOwnProperty,Ja=Ka.call(Object);function ts(t){if(!ct(t)||st(t)!=Xa)return!1;var e=wi(t);if(null===e)return!0;var n=Qa.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ka.call(n)==Ja}var es=ts;function ns(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var rs=ns;function is(t){return Mn(t,ei(t))}var os=is;function as(t,e,n,r,i,o,a){var s=rs(t,n),u=rs(e,n),c=a.get(u);if(c)Ga(t,n,c);else{var l=o?o(s,u,n+"",t,e,a):void 0,h=void 0===l;if(h){var f=Hn(u),p=!f&&Object(Vn["a"])(u),d=!f&&!p&&Sr(u);l=u,f||p||d?Hn(s)?l=s:qa(s)?l=ai(s):p?(h=!1,l=Object(ii["a"])(u,!0)):d?(h=!1,l=_o(u,!0)):l=[]:es(u)||Nn(u)?(l=s,Nn(s)?l=os(s):G(s)&&!re(s)||(l=Wo(u))):h=!1}h&&(a.set(u,l),i(l,u,r,o,a),a["delete"](u)),Ga(t,n,l)}}var ss=as;function us(t,e,n,r,i){t!==e&&Wa(e,(function(o,a){if(i||(i=new vn),G(o))ss(t,e,a,n,us,r,i);else{var s=r?r(rs(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),Ga(t,a,s)}}),ei)}var cs=us;function ls(t){return t}var hs=ls;function fs(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 ps=fs,ds=Math.max;function vs(t,e,n){return e=ds(void 0===e?t.length-1:e,0),function(){var r=arguments,i=-1,o=ds(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),ps(t,this,s)}}var gs=vs;function ys(t){return function(){return t}}var ms=ys,_s=_n?function(t,e){return _n(t,"toString",{configurable:!0,enumerable:!1,value:ms(e),writable:!0})}:hs,bs=_s,ws=800,xs=16,Os=Date.now;function Ts(t){var e=0,n=0;return function(){var r=Os(),i=xs-(r-n);if(n=r,i>0){if(++e>=ws)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Es=Ts,Ss=Es(bs),Ms=Ss;function As(t,e){return Ms(gs(t,e,hs),t+"")}var Ps=As;function Cs(t,e,n){if(!G(n))return!1;var r=typeof e;return!!("number"==r?Br(n)&&zn(e,n.length):"string"==r&&e in n)&&Pt(n[e],t)}var ks=Cs;function Ls(t){return Ps((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&&ks(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 Ds=Ls,Rs=Ds((function(t,e,n){cs(t,e,n)})),Is=Rs,js="__lodash_hash_undefined__";function Ns(t){return this.__data__.set(t,js),this}var Us=Ns;function Hs(t){return this.__data__.has(t)}var Vs=Hs;function Gs(t){var e=-1,n=null==t?0:t.length;this.__data__=new ln;while(++e<n)this.add(t[e])}Gs.prototype.add=Gs.prototype.push=Us,Gs.prototype.has=Vs;var Fs=Gs;function Bs(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 zs=Bs;function Ws(t){return t!==t}var Ys=Ws;function qs(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}var Xs=qs;function $s(t,e,n){return e===e?Xs(t,e,n):zs(t,Ys,n)}var Zs=$s;function Ks(t,e){var n=null==t?0:t.length;return!!n&&Zs(t,e,0)>-1}var Qs=Ks;function Js(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 tu=Js;function eu(t,e){return t.has(e)}var nu=eu;function ru(){}var iu=ru;function ou(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var au=ou,su=1/0,uu=Ui&&1/au(new Ui([,-0]))[1]==su?function(t){return new Ui(t)}:iu,cu=uu,lu=200;function hu(t,e,n){var r=-1,i=Qs,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=tu;else if(o>=lu){var c=e?null:cu(t);if(c)return au(c);a=!1,i=nu,u=new Fs}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 fu=hu;function pu(t){return t&&t.length?fu(t):[]}var du=pu;function vu(t,e,n){return t===t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}var gu=vu;function yu(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=bt(n),n=n===n?n:0),void 0!==e&&(e=bt(e),e=e===e?e:0),gu(bt(t),e,n)}var mu=yu;function _u(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 bu=_u,wu=1,xu=2;function Ou(t,e,n,r,i,o){var a=n&wu,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var c=o.get(t);if(c&&o.get(e))return c==e;var l=-1,h=!0,f=n&xu?new Fs:void 0;o.set(t,e),o.set(e,t);while(++l<s){var p=t[l],d=e[l];if(r)var v=a?r(d,p,l,e,t,o):r(p,d,l,t,e,o);if(void 0!==v){if(v)continue;h=!1;break}if(f){if(!bu(e,(function(t,e){if(!nu(f,e)&&(p===t||i(p,t,n,r,o)))return f.push(e)}))){h=!1;break}}else if(p!==d&&!i(p,d,n,r,o)){h=!1;break}}return o["delete"](t),o["delete"](e),h}var Tu=Ou;function Eu(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}var Su=Eu,Mu=1,Au=2,Pu="[object Boolean]",Cu="[object Date]",ku="[object Error]",Lu="[object Map]",Du="[object Number]",Ru="[object RegExp]",Iu="[object Set]",ju="[object String]",Nu="[object Symbol]",Uu="[object ArrayBuffer]",Hu="[object DataView]",Vu=Y?Y.prototype:void 0,Gu=Vu?Vu.valueOf:void 0;function Fu(t,e,n,r,i,o,a){switch(n){case Hu:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Uu:return!(t.byteLength!=e.byteLength||!o(new oo(t),new oo(e)));case Pu:case Cu:case Du:return Pt(+t,+e);case ku:return t.name==e.name&&t.message==e.message;case Ru:case ju:return t==e+"";case Lu:var s=Su;case Iu:var u=rΜif(s||(s=au),t.size!=e.size&&!u)return!1;var c=a.get(t);if(c)return c==e;r|=Au,a.set(t,e);var l=Tu(s(t),s(e),r,i,o,a);return a["delete"](t),l;case Nu:if(Gu)return Gu.call(t)==Gu.call(e)}return!1}var Bu=Fu,zu=1,Wu=Object.prototype,Yu=Wu.hasOwnProperty;function qu(t,e,n,r,i,o){var a=n&zu,s=Ci(t),u=s.length,c=Ci(e),l=c.length;if(u!=l&&!a)return!1;var h=u;while(h--){var f=s[h];if(!(a?f in e:Yu.call(e,f)))return!1}var p=o.get(t);if(p&&o.get(e))return p==e;var d=!0;o.set(t,e),o.set(e,t);var v=a;while(++h<u){f=s[h];var g=t[f],y=e[f];if(r)var m=a?r(y,g,f,e,t,o):r(g,y,f,t,e,o);if(!(void 0===m?g===y||i(g,y,n,r,o):m)){d=!1;break}v||(v="constructor"==f)}if(d&&!v){var _=t.constructor,b=e.constructor;_!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof _&&_ instanceof _&&"function"==typeof b&&b instanceof b)&&(d=!1)}return o["delete"](t),o["delete"](e),d}var Xu=qu,$u=1,Zu="[object Arguments]",Ku="[object Array]",Qu="[object Object]",Ju=Object.prototype,tc=Ju.hasOwnProperty;function ec(t,e,n,r,i,o){var a=Hn(t),s=Hn(e),u=a?Ku:Ji(t),c=s?Ku:Ji(e);u=u==Zu?Qu:u,c=c==Zu?Qu:c;var l=u==Qu,h=c==Qu,f=u==c;if(f&&Object(Vn["a"])(t)){if(!Object(Vn["a"])(e))return!1;a=!0,l=!1}if(f&&!l)return o||(o=new vn),a||Sr(t)?Tu(t,e,n,r,i,o):Bu(t,e,u,n,r,i,o);if(!(n&$u)){var p=l&&tc.call(t,"__wrapped__"),d=h&&tc.call(e,"__wrapped__");if(p||d){var v=p?t.value():t,g=d?e.value():e;return o||(o=new vn),i(v,g,n,r,o)}}return!!f&&(o||(o=new vn),Xu(t,e,n,r,i,o))}var nc=ec;function rc(t,e,n,r,i){return t===e||(null==t||null==e||!ct(t)&&!ct(e)?t!==t&&e!==e:nc(t,e,n,r,rc,i))}var ic=rc;function oc(t,e){return ic(t,e)}var ac=oc,sc=Y?Y.isConcatSpreadable:void 0;function uc(t){return Hn(t)||Nn(t)||!!(sc&&t&&t[sc])}var cc=uc;function lc(t,e,n,r,i){var o=-1,a=t.length;n||(n=cc),i||(i=[]);while(++o<a){var s=t[o];e>0&&n(s)?e>1?lc(s,e-1,n,r,i):_i(i,s):r||(i[i.length]=s)}return i}var hc=lc;function fc(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 pc=fc,dc=1,vc=2;function gc(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 vn;if(r)var f=r(c,l,u,t,e,h);if(!(void 0===f?ic(l,c,dc|vc,r,h):f))return!1}}return!0}var yc=gc;function mc(t){return t===t&&!G(t)}var _c=mc;function bc(t){var e=Wr(t),n=e.length;while(n--){var r=e[n],i=t[r];e[n]=[r,i,_c(i)]}return e}var wc=bc;function xc(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}var Oc=xc;function Tc(t){var e=wc(t);return 1==e.length&&e[0][2]?Oc(e[0][0],e[0][1]):function(n){return n===t||yc(n,t,e)}}var Ec=Tc,Sc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mc=/^\w*$/;function Ac(t,e){if(Hn(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ft(t))||(Mc.test(t)||!Sc.test(t)||null!=e&&t in Object(e))}var Pc=Ac,Cc="Expected a function";function kc(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(Cc);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(kc.Cache||ln),n}kc.Cache=ln;var Lc=kc,Dc=500;function Rc(t){var e=Lc(t,(function(t){return n.size===Dc&&n.clear(),t})),n=e.cache;return e}var Ic=Rc,jc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nc=/\\(\\)?/g,Uc=Ic((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(jc,(function(t,n,r,i){e.push(r?i.replace(Nc,"$1"):n||t)})),e})),Hc=Uc,Vc=1/0,Gc=Y?Y.prototype:void 0,Fc=Gc?Gc.toString:void 0;function Bc(t){if("string"==typeof t)return t;if(Hn(t))return pc(t,Bc)+"";if(ft(t))return Fc?Fc.call(t):"";var e=t+"";return"0"==e&&1/t==-Vc?"-0":e}var zc=Bc;function Wc(t){return null==t?"":zc(t)}var Yc=Wc;function qc(t,e){return Hn(t)?t:Pc(t,e)?[t]:Hc(Yc(t))}var Xc=qc,$c=1/0;function Zc(t){if("string"==typeof t||ft(t))return t;var e=t+"";return"0"==e&&1/t==-$c?"-0":e}var Kc=Zc;function Qc(t,e){e=Xc(e,t);var n=0,r=e.length;while(null!=t&&n<r)t=t[Kc(e[n++])];return n&&n==r?t:void 0}var Jc=Qc;function tl(t,e,n){var r=null==t?void 0:Jc(t,e);return void 0===r?n:r}var el=tl;function nl(t,e){return null!=t&&e in Object(t)}var rl=nl;function il(t,e,n){e=Xc(e,t);var r=-1,i=e.length,o=!1;while(++r<i){var a=Kc(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&&qn(i)&&zn(a,i)&&(Hn(t)||Nn(t)))}var ol=il;function al(t,e){return null!=t&&ol(t,e,rl)}var sl=al,ul=1,cl=2;function ll(t,e){return Pc(t)&&_c(e)?Oc(Kc(t),e):function(n){var r=el(n,t);return void 0===r&&r===e?sl(n,t):ic(e,r,ul|cl)}}var hl=ll;function fl(t){return function(e){return null==e?void 0:e[t]}}var pl=fl;function dl(t){return function(e){return Jc(e,t)}}var vl=dl;function gl(t){return Pc(t)?pl(Kc(t)):vl(t)}var yl=gl;function ml(t){return"function"==typeof t?t:null==t?hs:"object"==typeof t?Hn(t)?hl(t[0],t[1]):Ec(t):yl(t)}var _l=ml;function bl(t,e){return t&&Wa(t,e,Wr)}var wl=bl;function xl(t,e){return function(n,r){if(null==n)return n;if(!Br(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 Ol=xl,Tl=Ol(wl),El=Tl;function Sl(t,e){var n=-1,r=Br(t)?Array(t.length):[];return El(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}var Ml=Sl;function Al(t,e){var n=Hn(t)?pc:Ml;return n(t,_l(e,3))}var Pl=Al,Cl=1/0;function kl(t,e){return hc(Pl(t,e),Cl)}var Ll=kl;function Dl(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 Rl=Dl;function Il(t){return function(e){return null==t?void 0:t[e]}}var jl=Il,Nl={"À":"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"},Ul=jl(Nl),Hl=Ul,Vl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gl="\\u0300-\\u036f",Fl="\\ufe20-\\ufe2f",Bl="\\u20d0-\\u20ff",zl=Gl+Fl+Bl,Wl="["+zl+"]",Yl=RegExp(Wl,"g");function ql(t){return t=Yc(t),t&&t.replace(Vl,Hl).replace(Yl,"")}var Xl=ql,$l=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Zl(t){return t.match($l)||[]}var Kl=Zl,Ql=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Jl(t){return Ql.test(t)}var th=Jl,eh="\\ud800-\\udfff",nh="\\u0300-\\u036f",rh="\\ufe20-\\ufe2f",ih="\\u20d0-\\u20ff",oh=nh+rh+ih,ah="\\u2700-\\u27bf",sh="a-z\\xdf-\\xf6\\xf8-\\xff",uh="\\xac\\xb1\\xd7\\xf7",ch="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",lh="\\u2000-\\u206f",hh=" \\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",fh="A-Z\\xc0-\\xd6\\xd8-\\xde",ph="\\ufe0e\\ufe0f",dh=uh+ch+lh+hh,vh="['’]",gh="["+dh+"]",yh="["+oh+"]",mh="\\d+",_h="["+ah+"]",bh="["+sh+"]",wh="[^"+eh+dh+mh+ah+sh+fh+"]",xh="\\ud83c[\\udffb-\\udfff]",Oh="(?:"+yh+"|"+xh+")",Th="[^"+eh+"]",Eh="(?:\\ud83c[\\udde6-\\uddff]){2}",Sh="[\\ud800-\\udbff][\\udc00-\\udfff]",Mh="["+fh+"]",Ah="\\u200d",Ph="(?:"+bh+"|"+wh+")",Ch="(?:"+Mh+"|"+wh+")",kh="(?:"+vh+"(?:d|ll|m|re|s|t|ve))?",Lh="(?:"+vh+"(?:D|LL|M|RE|S|T|VE))?",Dh=Oh+"?",Rh="["+ph+"]?",Ih="(?:"+Ah+"(?:"+[Th,Eh,Sh].join("|")+")"+Rh+Dh+")*",jh="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Nh="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Uh=Rh+Dh+Ih,Hh="(?:"+[_h,Eh,Sh].join("|")+")"+Uh,Vh=RegExp([Mh+"?"+bh+"+"+kh+"(?="+[gh,Mh,"$"].join("|")+")",Ch+"+"+Lh+"(?="+[gh,Mh+Ph,"$"].join("|")+")",Mh+"?"+Ph+"+"+kh,Mh+"+"+Lh,Nh,jh,mh,Hh].join("|"),"g");function Gh(t){return t.match(Vh)||[]}var Fh=Gh;function Bh(t,e,n){return t=Yc(t),e=n?void 0:e,void 0===e?th(t)?Fh(t):Kl(t):t.match(e)||[]}var zh=Bh,Wh="['’]",Yh=RegExp(Wh,"g");function qh(t){return function(e){return Rl(zh(Xl(e).replace(Yh,"")),t,"")}}var Xh=qh,$h=Xh((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Zh=$h;function Kh(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 Qh=Kh;function Jh(t,e){var n;return El(t,(function(t,r,i){return n=e(t,r,i),!n})),!!n}var tf=Jh;function ef(t,e,n){var r=Hn(t)?bu:tf;return n&&ks(t,e,n)&&(e=void 0),r(t,_l(e,3))}var nf,rf=ef;(function(t){function e(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/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===E.TIME?o["mapsTo"]="date":s===E.LABELS&&(o["mapsTo"]="key")}}else delete e.axes[i];return t.merge(e,n)}function n(t){return{width:parseFloat(t.style.width.replace("px","")||t.offsetWidth),height:parseFloat(t.style.height.replace("px","")||t.offsetHeight)}}function r(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 i(t){var e=/\(([^)]+)\)/,n=e.exec(t)[1],r=n.split(",");return{x:parseFloat(r[0]),y:parseFloat(r[1])}}function o(t){var e=t.toString();return e.match(/[a-z]/i)?e:e+"px"}function a(t){return t[0].toUpperCase()+t.slice(1)}function s(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 u(t,e,n){return n>t.length?t:e===O.MID_LINE?t.substr(0,n/2)+"..."+t.substr(-n/2):e===O.FRONT_LINE?"..."+t.substr(-n):e===O.END_LINE?t.substr(0,n)+"...":void 0}function c(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 l(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 h(t){return t.each((function(){this.parentNode.appendChild(this)}))}function f(t,e,n){return n===T.VERTICAL?[t,e]:[e,t]}t.debounce=Et,t.clone=Ha,t.merge=Is,t.removeArrayDuplicates=du,t.clamp=mu,t.isEqual=ac,t.flatMapDeep=Ll,t.kebabCase=Zh,t.fromPairs=Qh,t.some=rf,t.mergeDefaultChartOptions=e,t.getDimensions=n,t.getTranslationValues=r,t.getTranformOffsets=i,t.formatWidthHeightValues=o,t.capitalizeFirstLetter=a,t.convertValueToPercentage=s,t.truncateLabel=u,t.arrayDifferences=c,t.getDuplicateValues=l,t.moveToFront=h,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===T.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=f,t.compareNumeric=function(t,e){return Number(t)===Number(e)}})(nf||(nf={}));var of=n("39ba"),af=n.n(of),sf={type:O.END_LINE,threshold:16,numCharacter:14},uf={position:A.BOTTOM,clickable:!0,enabled:!0,items:{status:{ACTIVE:1,DISABLED:0},horizontalSpace:12,verticalSpace:24,textYOffset:8},checkbox:{radius:6.5,spaceAfter:4},truncation:sf},cf={x:{numberOfTicks:5},y:{numberOfTicks:5}},lf={datapoint:{horizontalOffset:10,enabled:!0},title:{verticalOffset:.75,width:.4}},hf=nf.merge({},lf,{gridline:{enabled:!0,threshold:.02}}),ff=nf.merge({},hf,{datapoint:{verticalOffset:4},gridline:{enabled:!1}}),pf={top:{includeZero:!0,truncation:sf},bottom:{includeZero:!0,truncation:sf},left:{includeZero:!0,truncation:sf},right:{includeZero:!0,truncation:sf}},df={addSpaceOnEdges:1,showDayName:!1,localeObject:af.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"}}},vf={width:null,height:null,resizable:!0,tooltip:lf,legend:uf,style:{prefix:"cc"},data:{groupMapsTo:"group",loading:!1,selectedGroups:[]},color:{scale:null}},gf=nf.merge({},vf,{axes:pf,timeScale:df,grid:cf,tooltip:hf}),yf=nf.merge({},gf,{bars:{maxWidth:16},timeScale:nf.merge(df,{addSpaceOnEdges:1}),tooltip:ff}),mf=nf.merge({},yf,{}),_f=nf.merge({},yf,{}),bf=nf.merge({},yf,{bars:nf.merge({},yf.bars,{dividerSize:1.5})}),wf=nf.merge({},gf,{points:{radius:3,filled:!1}}),xf=nf.merge({},wf,{timeScale:nf.merge(df,{addSpaceOnEdges:0})}),Of=xf,Tf=nf.merge({},gf,{points:{radius:4,fillOpacity:.3,filled:!0}}),Ef=nf.merge({},gf,{bubble:{radiusMapsTo:"radius",radiusRange:function(t,e){var n=Math.min(t.width,t.height);return[3*n/400,25*n/400]},fillOpacity:.2}}),Sf=nf.merge({},vf,{pie:{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},labels:{formatter:null}}}),Mf=nf.merge({},vf,{legend:{enabled:!1},gauge:{type:j.SEMI,arcWidth:16,deltaArrow:{size:function(t){return t/8},enabled:!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()}}}),Af=nf.merge({},Sf,{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()}}}}),Pf=nf.merge({},vf,{radar:{axes:{angle:"key",value:"value"},opacity:{unselected:.1,selected:.3},xLabelPadding:10,yLabelPadding:8,yTicksNumber:4,minRange:10,xAxisRectHeight:50,dotsRadius:5},tooltip:{gridline:{enabled:!0},valueFormatter:function(t){return null!==t&&void 0!==t?t:"N/A"}}}),Cf={chart:vf,axisChart:gf,simpleBarChart:mf,groupedBarChart:_f,stackedBarChart:bf,bubbleChart:Ef,lineChart:wf,areaChart:xf,stackedAreaChart:Of,scatterChart:Tf,pieChart:Sf,donutChart:Af,radarChart:Pf,gaugeChart:Mf},kf={opacity:{unselected:.3,selected:1}},Lf={opacity:{unselected:0,selected:.4}},Df={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}},Rf={ticks:{number:7,rotateIfSmallerThan:30},paddingRatio:.1},If={default:{size:24}},jf=2.5,Nf=3.5,Uf="#fff1f1",Hf="#ffd7d9",Vf="#ffb3b8",Gf="#ff8389",Ff="#fa4d56",Bf="#da1e28",zf="#a2191f",Wf="#750e13",Yf="#520408",qf="#2d0709",Xf={10:Uf,20:Hf,30:Vf,40:Gf,50:Ff,60:Bf,70:zf,80:Wf,90:Yf,100:qf},$f="#fff0f7",Zf="#ffd6e8",Kf="#ffafd2",Qf="#ff7eb6",Jf="#ee5396",tp="#d12771",ep="#9f1853",np="#740937",rp="#510224",ip="#2a0a18",op={10:$f,20:Zf,30:Kf,40:Qf,50:Jf,60:tp,70:ep,80:np,90:rp,100:ip},ap="#f6f2ff",sp="#e8daff",up="#d4bbff",cp="#be95ff",lp="#a56eff",hp="#8a3ffc",fp="#6929c4",pp="#491d8b",dp="#31135e",vp="#1c0f30",gp={10:ap,20:sp,30:up,40:cp,50:lp,60:hp,70:fp,80:pp,90:dp,100:vp},yp="#edf5ff",mp="#d0e2ff",_p="#a6c8ff",bp="#78a9ff",wp="#4589ff",xp="#0f62fe",Op="#0043ce",Tp="#002d9c",Ep="#001d6c",Sp="#001141",Mp={10:yp,20:mp,30:_p,40:bp,50:wp,60:xp,70:Op,80:Tp,90:Ep,100:Sp},Ap="#e5f6ff",Pp="#bae6ff",Cp="#82cfff",kp="#33b1ff",Lp="#1192e8",Dp="#0072c3",Rp="#00539a",Ip="#003a6d",jp="#012749",Np="#061727",Up={10:Ap,20:Pp,30:Cp,40:kp,50:Lp,60:Dp,70:Rp,80:Ip,90:jp,100:Np},Hp="#d9fbfb",Vp="#9ef0f0",Gp="#3ddbd9",Fp="#08bdba",Bp="#009d9a",zp="#007d79",Wp="#005d5d",Yp="#004144",qp="#022b30",Xp="#081a1c",$p={10:Hp,20:Vp,30:Gp,40:Fp,50:Bp,60:zp,70:Wp,80:Yp,90:qp,100:Xp},Zp="#defbe6",Kp="#a7f0ba",Qp="#6fdc8c",Jp="#42be65",td="#24a148",ed="#198038",nd="#0e6027",rd="#044317",id="#022d0d",od="#071908",ad={10:Zp,20:Kp,30:Qp,40:Jp,50:td,60:ed,70:nd,80:rd,90:id,100:od};var sd=function(t,e){return t[e]},ud={blue:function(t){return sd(Mp,t)},cyan:function(t){return sd(Up,t)},green:function(t){return sd(ad,t)},magenta:function(t){return sd(op,t)},purple:function(t){return sd(gp,t)},red:function(t){return sd(Xf,t)},teal:function(t){return sd($p,t)}},cd=[ud.purple(70),ud.cyan(50),ud.teal(70),ud.magenta(70),ud.red(50),ud.red(90),ud.green(60),ud.blue(80),ud.magenta(50),"#b28600",ud.teal(50),ud.cyan(90),"#8a3800",ud.purple(50)],ld=(ud.purple(60),ud.cyan(40),ud.teal(60),ud.magenta(40),ud.red(50),ud.red(10),ud.green(30),ud.blue(50),ud.magenta(60),ud.teal(40),ud.cyan(20),ud.purple(30),cd),hd=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},fd=function(t){return 1===t.length&&(t=pd(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 pd(t){return function(e,n){return hd(t(e),n)}}var dd=fd(hd),vd=dd.right,gd=(dd.left,vd);var yd=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]},md=Array.prototype,_d=(md.slice,md.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}),bd=Math.sqrt(50),wd=Math.sqrt(10),xd=Math.sqrt(2),Od=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=Td(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 Td(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>=bd?10:o>=wd?5:o>=xd?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=bd?10:o>=wd?5:o>=xd?2:1)}function Ed(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>=bd?i*=10:o>=wd?i*=5:o>=xd&&(i*=2),e<t?-i:i}var Sd=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},Md=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},Ad=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 Pd(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}var Cd="$";function kd(){}function Ld(t,e){var n=new kd;if(t instanceof kd)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}kd.prototype=Ld.prototype={constructor:kd,has:function(t){return Cd+t in this},get:function(t){return this[Cd+t]},set:function(t,e){return this[Cd+t]=e,this},remove:function(t){var e=Cd+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===Cd&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===Cd&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===Cd&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===Cd&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===Cd&&++t;return t},empty:function(){for(var t in this)if(t[0]===Cd)return!1;return!0},each:function(t){for(var e in this)e[0]===Cd&&t(this[e],e.slice(1),this)}};var Dd=Ld;function Rd(){}var Id=Dd.prototype;function jd(t,e){var n=new Rd;if(t instanceof Rd)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}Rd.prototype=jd.prototype={constructor:Rd,has:Id.has,add:function(t){return t+="",this[Cd+t]=t,this},remove:Id.remove,clear:Id.clear,values:Id.keys,size:Id.size,empty:Id.empty,each:Id.each};var Nd=function(t){var e=[];for(var n in t)e.push(t[n]);return e},Ud=Array.prototype,Hd=Ud.map,Vd=Ud.slice,Gd={name:"implicit"};function Fd(){var t=Dd(),e=[],n=[],r=Gd;function i(i){var o=i+"",a=t.get(o);if(!a){if(r!==Gd)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=Dd();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=Vd.call(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return Fd(e,n).unknown(r)},Pd.apply(i,arguments),i}function Bd(){var t,e,n=Fd().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=_d(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 Bd(r(),o).round(a).paddingInner(s).paddingOuter(u).align(c)},Pd.apply(l(),arguments)}var zd=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function Wd(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Yd(){}var qd=.7,Xd=1/qd,$d="\\s*([+-]?\\d+)\\s*",Zd="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Kd="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Qd=/^#([0-9a-f]{3,8})$/,Jd=new RegExp("^rgb\\("+[$d,$d,$d]+"\\)$"),tv=new RegExp("^rgb\\("+[Kd,Kd,Kd]+"\\)$"),ev=new RegExp("^rgba\\("+[$d,$d,$d,Zd]+"\\)$"),nv=new RegExp("^rgba\\("+[Kd,Kd,Kd,Zd]+"\\)$"),rv=new RegExp("^hsl\\("+[Zd,Kd,Kd]+"\\)$"),iv=new RegExp("^hsla\\("+[Zd,Kd,Kd,Zd]+"\\)$"),ov={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 av(){return this.rgb().formatHex()}function sv(){return _v(this).formatHsl()}function uv(){return this.rgb().formatRgb()}function cv(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Qd.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?lv(e):3===n?new dv(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?new dv(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?new dv(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=Jd.exec(t))?new dv(e[1],e[2],e[3],1):(e=tv.exec(t))?new dv(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ev.exec(t))?hv(e[1],e[2],e[3],e[4]):(e=nv.exec(t))?hv(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=rv.exec(t))?mv(e[1],e[2]/100,e[3]/100,1):(e=iv.exec(t))?mv(e[1],e[2]/100,e[3]/100,e[4]):ov.hasOwnProperty(t)?lv(ov[t]):"transparent"===t?new dv(NaN,NaN,NaN,0):null}function lv(t){return new dv(t>>16&255,t>>8&255,255&t,1)}function hv(t,e,n,r){return r<=0&&(t=e=n=NaN),new dv(t,e,n,r)}function fv(t){return t instanceof Yd||(t=cv(t)),t?(t=t.rgb(),new dv(t.r,t.g,t.b,t.opacity)):new dv}function pv(t,e,n,r){return 1===arguments.length?fv(t):new dv(t,e,n,null==r?1:r)}function dv(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function vv(){return"#"+yv(this.r)+yv(this.g)+yv(this.b)}function gv(){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 yv(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function mv(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new wv(t,e,n,r)}function _v(t){if(t instanceof wv)return new wv(t.h,t.s,t.l,t.opacity);if(t instanceof Yd||(t=cv(t)),!t)return new wv;if(t instanceof wv)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 wv(a,s,u,t.opacity)}function bv(t,e,n,r){return 1===arguments.length?_v(t):new wv(t,e,n,null==r?1:r)}function wv(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function xv(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 Ov(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}zd(Yd,cv,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:av,formatHex:av,formatHsl:sv,formatRgb:uv,toString:uv}),zd(dv,pv,Wd(Yd,{brighter:function(t){return t=null==t?Xd:Math.pow(Xd,t),new dv(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?qd:Math.pow(qd,t),new dv(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:vv,formatHex:vv,formatRgb:gv,toString:gv})),zd(wv,bv,Wd(Yd,{brighter:function(t){return t=null==t?Xd:Math.pow(Xd,t),new wv(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?qd:Math.pow(qd,t),new wv(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 dv(xv(t>=240?t-240:t+120,i,r),xv(t,i,r),xv(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 Tv=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 Ov((n-r/e)*e,a,i,o,s)}},Ev=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 Ov((n-r/e)*e,i,o,a,s)}},Sv=function(t){return function(){return t}};function Mv(t,e){return function(n){return t+n*e}}function Av(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 Pv(t){return 1===(t=+t)?Cv:function(e,n){return n-e?Av(e,n,t):Sv(isNaN(e)?n:e)}}function Cv(t,e){var n=e-t;return n?Mv(t,n):Sv(isNaN(t)?e:t)}var kv=function t(e){var n=Pv(e);function r(t,e){var r=n((t=pv(t)).r,(e=pv(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Cv(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 Lv(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=pv(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+""}}}Lv(Tv),Lv(Ev);var Dv=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 Rv(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Iv(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]=zv(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 jv=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}},Nv=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},Uv=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]=zv(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},Hv=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Vv=new RegExp(Hv.source,"g");function Gv(t){return function(){return t}}function Fv(t){return function(e){return t(e)+""}}var Bv=function(t,e){var n,r,i,o=Hv.lastIndex=Vv.lastIndex=0,a=-1,s=[],u=[];t+="",e+="";while((n=Hv.exec(t))&&(r=Vv.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:Nv(n,r)})),o=Vv.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?Fv(u[0].x):Gv(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("")})},zv=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?Sv(e):("number"===r?Nv:"string"===r?(n=cv(e))?(e=n,kv):Bv:e instanceof cv?kv:e instanceof Date?jv:Rv(e)?Dv:Array.isArray(e)?Iv:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?Uv:Nv)(t,e)},Wv=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}},Yv=function(t){return function(){return t}},qv=function(t){return+t},Xv=[0,1];function $v(t){return t}function Zv(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Yv(isNaN(e)?NaN:.5)}function Kv(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 Qv(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=Zv(i,r),o=n(a,o)):(r=Zv(r,i),o=n(o,a)),function(t){return o(r(t))}}function Jv(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]=Zv(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=gd(t,e,1,r)-1;return o[n](i[n](e))}}function tg(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function eg(){var t,e,n,r,i,o,a=Xv,s=Xv,u=zv,c=$v;function l(){return r=Math.min(a.length,s.length)>2?Jv:Qv,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),Nv)))(n)))},h.domain=function(t){return arguments.length?(a=Hd.call(t,qv),c===$v||(c=Kv(a)),l()):a.slice()},h.range=function(t){return arguments.length?(s=Vd.call(t),l()):s.slice()},h.rangeRound=function(t){return s=Vd.call(t),u=Wv,l()},h.clamp=function(t){return arguments.length?(c=t?Kv(a):$v,h):c!==$v},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 ng(t,e){return eg()(t,e)}var rg=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ig(t){if(!(e=rg.exec(t)))throw new Error("invalid format: "+t);var e;return new og({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 og(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+""}ig.prototype=og.prototype,og.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 ag,sg,ug,cg,lg=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)]},hg=function(t){return t=lg(Math.abs(t)),t?t[1]:NaN},fg=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(hg(e)/3)))-hg(Math.abs(t)))},pg=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)}},dg=function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}},vg=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},gg=function(t,e){var n=lg(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(ag=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")+lg(t,Math.max(0,e+o-1))[0]},yg=function(t,e){var n=lg(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")},mg={"%":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 yg(100*t,e)},r:yg,s:gg,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},_g=function(t){return t},bg=Array.prototype.map,wg=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],xg=function(t){var e=void 0===t.grouping||void 0===t.thousands?_g:pg(bg.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?_g:dg(bg.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=ig(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,y=t.trim,m=t.type;"n"===m?(v=!0,m="g"):mg[m]||(void 0===g&&(g=12),y=!0,m="g"),(p||"0"===c&&"="===l)&&(p=!0,c="0",l="=");var _="$"===f?n:"#"===f&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",b="$"===f?r:/[%p]/.test(m)?a:"",w=mg[m],x=/[defgprs%]/.test(m);function O(t){var n,r,a,f=_,O=b;if("c"===m)O=w(t)+O,t="";else{t=+t;var T=t<0;if(t=isNaN(t)?u:w(Math.abs(t),g),y&&(t=vg(t)),T&&0===+t&&(T=!1),f=(T?"("===h?h:s:"-"===h||"("===h?"":h)+f,O=("s"===m?wg[8+ag/3]:"")+O+(T&&"("===h?")":""),x){n=-1,r=t.length;while(++n<r)if(a=t.charCodeAt(n),48>a||a>57){O=(46===a?i+t.slice(n+1):t.slice(n))+O,t=t.slice(0,n);break}}}v&&!p&&(t=e(t,1/0));var E=f.length+t.length+O.length,S=E<d?new Array(d-E+1).join(c):"";switch(v&&p&&(t=e(S+t,S.length?d-O.length:1/0),S=""),l){case"<":t=f+t+O+S;break;case"=":t=f+S+t+O;break;case"^":t=S.slice(0,E=S.length>>1)+f+t+O+S.slice(E);break;default:t=S+f+t+O;break}return o(t)}return g=void 0===g?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),O.toString=function(){return t+""},O}function l(t,e){var n=c((t=ig(t),t.type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(hg(e)/3))),i=Math.pow(10,-r),o=wg[8+r/3];return function(t){return n(i*t)+o}}return{format:c,formatPrefix:l}};function Og(t){return sg=xg(t),ug=sg.format,cg=sg.formatPrefix,sg}Og({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var Tg=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,hg(e)-hg(t))+1},Eg=function(t){return Math.max(0,-hg(Math.abs(t)))},Sg=function(t,e,n,r){var i,o=Ed(t,e,n);switch(r=ig(null==r?",f":r),r.type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=fg(o,a))||(r.precision=i),cg(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=Tg(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Eg(o))||(r.precision=i-2*("%"===r.type));break}return ug(r)};function Mg(t){var e=t.domain;return t.ticks=function(t){var n=e();return Od(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Sg(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=Td(s,u,n),r>0?(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,r=Td(s,u,n)):r<0&&(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,r=Td(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 Ag(){var t=ng($v,$v);return t.copy=function(){return tg(t,Ag())},Pd.apply(t,arguments),Mg(t)}var Pg=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 Cg(t){return Math.log(t)}function kg(t){return Math.exp(t)}function Lg(t){return-Math.log(-t)}function Dg(t){return-Math.exp(-t)}function Rg(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Ig(t){return 10===t?Rg:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function jg(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 Ng(t){return function(e){return-t(-e)}}function Ug(t){var e,n,r=t(Cg,kg),i=r.domain,o=10;function a(){return e=jg(o),n=Ig(o),i()[0]<0?(e=Ng(e),n=Ng(n),t(Lg,Dg)):t(Cg,kg),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=Od(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(Pg(i(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function Hg(){var t=Ug(eg()).domain([1,10]);return t.copy=function(){return tg(t,Hg()).base(t.base())},Pd.apply(t,arguments),t}var Vg=new Date,Gg=new Date;function Fg(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 Fg((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 Vg.setTime(+e),Gg.setTime(+r),t(Vg),t(Gg),Math.floor(n(Vg,Gg))},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 Bg=Fg((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()}));Bg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Fg((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 zg=Bg,Wg=(Bg.range,Fg((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()}))),Yg=Wg,qg=(Wg.range,1e3),Xg=6e4,$g=36e5,Zg=864e5,Kg=6048e5;function Qg(t){return Fg((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())*Xg)/Kg}))}var Jg=Qg(0),ty=Qg(1),ey=Qg(2),ny=Qg(3),ry=Qg(4),iy=Qg(5),oy=Qg(6),ay=(Jg.range,ty.range,ey.range,ny.range,ry.range,iy.range,oy.range,Fg((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())*Xg)/Zg}),(function(t){return t.getDate()-1}))),sy=ay,uy=(ay.range,Fg((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*qg-t.getMinutes()*Xg)}),(function(t,e){t.setTime(+t+e*$g)}),(function(t,e){return(e-t)/$g}),(function(t){return t.getHours()}))),cy=uy,ly=(uy.range,Fg((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*qg)}),(function(t,e){t.setTime(+t+e*Xg)}),(function(t,e){return(e-t)/Xg}),(function(t){return t.getMinutes()}))),hy=ly,fy=(ly.range,Fg((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*qg)}),(function(t,e){return(e-t)/qg}),(function(t){return t.getUTCSeconds()}))),py=fy,dy=(fy.range,Fg((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t})));dy.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Fg((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):dy:null};var vy=dy;dy.range;function gy(t){return Fg((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)/Kg}))}var yy=gy(0),my=gy(1),_y=gy(2),by=gy(3),wy=gy(4),xy=gy(5),Oy=gy(6),Ty=(yy.range,my.range,_y.range,by.range,wy.range,xy.range,Oy.range,Fg((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/Zg}),(function(t){return t.getUTCDate()-1}))),Ey=Ty,Sy=(Ty.range,Fg((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()})));Sy.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Fg((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 My=Sy;Sy.range;function Ay(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 Py(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 ky(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=Vy(i),l=Gy(i),h=Vy(o),f=Gy(o),p=Vy(a),d=Gy(a),v=Vy(s),g=Gy(s),y=Vy(u),m=Gy(u),_={a:D,A:R,b:I,B:j,c:null,d:um,e:um,f:pm,H:cm,I:lm,j:hm,L:fm,m:dm,M:vm,p:N,q:U,Q:Bm,s:zm,S:gm,u:ym,U:mm,V:_m,w:bm,W:wm,x:null,X:null,y:xm,Y:Om,Z:Tm,"%":Fm},b={a:H,A:V,b:G,B:F,c:null,d:Em,e:Em,f:Cm,H:Sm,I:Mm,j:Am,L:Pm,m:km,M:Lm,p:B,q:z,Q:Bm,s:zm,S:Dm,u:Rm,U:Im,V:jm,w:Nm,W:Um,x:null,X:null,y:Hm,Y:Vm,Z:Gm,"%":Fm},w={a:S,A:M,b:A,B:P,c:C,d:Qy,e:Qy,f:im,H:tm,I:tm,j:Jy,L:rm,m:Ky,M:em,p:E,q:Zy,Q:am,s:sm,S:nm,u:By,U:zy,V:Wy,w:Fy,W:Yy,x:k,X:L,y:Xy,Y:qy,Z:$y,"%":om};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=Ry[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 O(t,e){return function(n){var r,i,o=Cy(1900,void 0,1),a=T(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=Py(Cy(o.y,0,1)),i=r.getUTCDay(),r=i>4||0===i?my.ceil(r):my(r),r=Ey.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=Ay(Cy(o.y,0,1)),i=r.getDay(),r=i>4||0===i?ty.ceil(r):ty(r),r=sy.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?Py(Cy(o.y,0,1)).getUTCDay():Ay(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,Py(o)):Ay(o)}}function T(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=w[i in Ry?e.charAt(a++):i],!o||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function E(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=l[r[0].toLowerCase()],n+r[0].length):-1}function S(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 A(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=m[r[0].toLowerCase()],n+r[0].length):-1}function P(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=g[r[0].toLowerCase()],n+r[0].length):-1}function C(t,n,r){return T(t,e,n,r)}function k(t,e,r){return T(t,n,e,r)}function L(t,e,n){return T(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 j(t){return s[t.getMonth()]}function N(t){return i[+(t.getHours()>=12)]}function U(t){return 1+~~(t.getMonth()/3)}function H(t){return a[t.getUTCDay()]}function V(t){return o[t.getUTCDay()]}function G(t){return u[t.getUTCMonth()]}function F(t){return s[t.getUTCMonth()]}function B(t){return i[+(t.getUTCHours()>=12)]}function z(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=O(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=O(t+="",!0);return e.toString=function(){return t},e}})}var Ly,Dy,Ry={"-":"",_:" ",0:"0"},Iy=/^\s*\d+/,jy=/^%/,Ny=/[\\^$*+?|[\]().{}]/g;function Uy(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 Hy(t){return t.replace(Ny,"\\$&")}function Vy(t){return new RegExp("^(?:"+t.map(Hy).join("|")+")","i")}function Gy(t){var e={},n=-1,r=t.length;while(++n<r)e[t[n].toLowerCase()]=n;return e}function Fy(t,e,n){var r=Iy.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function By(t,e,n){var r=Iy.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function zy(t,e,n){var r=Iy.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function Wy(t,e,n){var r=Iy.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function Yy(t,e,n){var r=Iy.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function qy(t,e,n){var r=Iy.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Xy(t,e,n){var r=Iy.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function $y(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 Zy(t,e,n){var r=Iy.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function Ky(t,e,n){var r=Iy.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Qy(t,e,n){var r=Iy.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Jy(t,e,n){var r=Iy.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function tm(t,e,n){var r=Iy.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function em(t,e,n){var r=Iy.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function nm(t,e,n){var r=Iy.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function rm(t,e,n){var r=Iy.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function im(t,e,n){var r=Iy.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function om(t,e,n){var r=jy.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function am(t,e,n){var r=Iy.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function sm(t,e,n){var r=Iy.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function um(t,e){return Uy(t.getDate(),e,2)}function cm(t,e){return Uy(t.getHours(),e,2)}function lm(t,e){return Uy(t.getHours()%12||12,e,2)}function hm(t,e){return Uy(1+sy.count(zg(t),t),e,3)}function fm(t,e){return Uy(t.getMilliseconds(),e,3)}function pm(t,e){return fm(t,e)+"000"}function dm(t,e){return Uy(t.getMonth()+1,e,2)}function vm(t,e){return Uy(t.getMinutes(),e,2)}function gm(t,e){return Uy(t.getSeconds(),e,2)}function ym(t){var e=t.getDay();return 0===e?7:e}function mm(t,e){return Uy(Jg.count(zg(t)-1,t),e,2)}function _m(t,e){var n=t.getDay();return t=n>=4||0===n?ry(t):ry.ceil(t),Uy(ry.count(zg(t),t)+(4===zg(t).getDay()),e,2)}function bm(t){return t.getDay()}function wm(t,e){return Uy(ty.count(zg(t)-1,t),e,2)}function xm(t,e){return Uy(t.getFullYear()%100,e,2)}function Om(t,e){return Uy(t.getFullYear()%1e4,e,4)}function Tm(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Uy(e/60|0,"0",2)+Uy(e%60,"0",2)}function Em(t,e){return Uy(t.getUTCDate(),e,2)}function Sm(t,e){return Uy(t.getUTCHours(),e,2)}function Mm(t,e){return Uy(t.getUTCHours()%12||12,e,2)}function Am(t,e){return Uy(1+Ey.count(My(t),t),e,3)}function Pm(t,e){return Uy(t.getUTCMilliseconds(),e,3)}function Cm(t,e){return Pm(t,e)+"000"}function km(t,e){return Uy(t.getUTCMonth()+1,e,2)}function Lm(t,e){return Uy(t.getUTCMinutes(),e,2)}function Dm(t,e){return Uy(t.getUTCSeconds(),e,2)}function Rm(t){var e=t.getUTCDay();return 0===e?7:e}function Im(t,e){return Uy(yy.count(My(t)-1,t),e,2)}function jm(t,e){var n=t.getUTCDay();return t=n>=4||0===n?wy(t):wy.ceil(t),Uy(wy.count(My(t),t)+(4===My(t).getUTCDay()),e,2)}function Nm(t){return t.getUTCDay()}function Um(t,e){return Uy(my.count(My(t)-1,t),e,2)}function Hm(t,e){return Uy(t.getUTCFullYear()%100,e,2)}function Vm(t,e){return Uy(t.getUTCFullYear()%1e4,e,4)}function Gm(){return"+0000"}function Fm(){return"%"}function Bm(t){return+t}function zm(t){return Math.floor(+t/1e3)}function Wm(t){return Ly=ky(t),Dy=Ly.format,Ly.parse,Ly.utcFormat,Ly.utcParse,Ly}Wm({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 Ym=1e3,qm=60*Ym,Xm=60*qm,$m=24*Xm,Zm=7*$m,Km=30*$m,Qm=365*$m;function Jm(t){return new Date(t)}function t_(t){return t instanceof Date?+t:+new Date(+t)}function e_(t,e,n,r,i,o,a,s,u){var c=ng($v,$v),l=c.invert,h=c.domain,f=u(".%L"),p=u(":%S"),d=u("%I:%M"),v=u("%I %p"),g=u("%a %d"),y=u("%b %d"),m=u("%B"),_=u("%Y"),b=[[a,1,Ym],[a,5,5*Ym],[a,15,15*Ym],[a,30,30*Ym],[o,1,qm],[o,5,5*qm],[o,15,15*qm],[o,30,30*qm],[i,1,Xm],[i,3,3*Xm],[i,6,6*Xm],[i,12,12*Xm],[r,1,$m],[r,2,2*$m],[n,1,Zm],[e,1,Km],[e,3,3*Km],[t,1,Qm]];function w(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:y:t(s)<s?m:_)(s)}function x(e,n,r,i){if(null==e&&(e=10),"number"===typeof e){var o=Math.abs(r-n)/e,a=fd((function(t){return t[2]})).right(b,o);a===b.length?(i=Ed(n/Qm,r/Qm,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(Ed(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(Hd.call(t,t_)):h().map(Jm)},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?w:u(e)},c.nice=function(t,e){var n=h();return(t=x(t,n[0],n[n.length-1],e))?h(Pg(n,t)):c},c.copy=function(){return tg(c,e_(t,e,n,r,i,o,a,s,u))},c}var n_=function(){return Pd.apply(e_(zg,Yg,Jg,sy,cy,hy,py,vy,Dy).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},r_=Fg((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()})),i_=(r_.range,Fg((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*$g)}),(function(t,e){return(e-t)/$g}),(function(t){return t.getUTCHours()}))),o_=(i_.range,Fg((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*Xg)}),(function(t,e){return(e-t)/Xg}),(function(t){return t.getUTCMinutes()})));o_.range;var a_=Array.prototype.slice,s_=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]},c_=function(t){var e=t.length,n=new Array(e);while(--e>=0)n[e]=e;return n};function l_(t,e){return t[e]}var h_=function(){var t=s_([]),e=c_,n=u_,r=l_;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:s_(a_.call(e)),i):t},i.value=function(t){return arguments.length?(r="function"===typeof t?t:s_(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?c_:"function"===typeof t?t:s_(a_.call(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?u_:t,i):n},i},f_=function(){function t(t){this.state={options:{}},this.colorScale={},this.services=t}return t.prototype.getAllDataFromDomain=function(){if(!this.get("data"))return null;var t=this.getDataGroups(),e=nf.clone(this.get("data")),n=this.getOptions().data.groupMapsTo,r=this.getOptions().axes;return r&&Object.keys(r).forEach((function(t){if(r[t].mapsTo&&r[t].domain){var n=r[t].mapsTo;if(r[t].scaleType===E.LABELS)e=e.filter((function(e){return r[t].domain.includes(e[n])}));else{var i=r[t].domain,o=i[0],a=i[1];e=e.filter((function(t){return t[n]>=o&&t[n]<=a}))}}})),e.filter((function(e){return t.find((function(t){return t.name===e[n]}))}))},t.prototype.getDisplayData=function(){if(!this.get("data"))return null;var t=uf.items.status.ACTIVE,e=this.getDataGroups(),n=this.getOptions().data.groupMapsTo,r=this.getAllDataFromDomain();return r.filter((function(r){var i=e.find((function(t){return t.name===r[n]}));return i.status===t}))},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(nf.clone(t)),n=this.generateDataGroups(e);return this.set({data:e,dataGroups:n}),e},t.prototype.getDataGroups=function(){return this.get("dataGroups")},t.prototype.getActiveDataGroups=function(){var t=uf.items.status.ACTIVE;return this.getDataGroups().filter((function(e){return e.status===t}))},t.prototype.getDataGroupNames=function(){return this.getDataGroups().map((function(t){return t.name}))},t.prototype.getActiveDataGroupNames=function(){return this.getActiveDataGroups().map((function(t){return t.name}))},t.prototype.getGroupedData=function(){var t=this.getDisplayData(),e={},n=this.getOptions().data.groupMapsTo;return t.map((function(t){var r=t[n];null!==e[r]&&void 0!==e[r]?e[r].push(t):e[r]=[t]})),Object.keys(e).map((function(t){return{name:t,data:e[t]}}))},t.prototype.getDataValuesGroupedByKeys=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=this.getDisplayData(),r=this.services.cartesianScales.getDomainIdentifier(),i=this.services.cartesianScales.getRangeIdentifier(),o=Dd(n,(function(t){return t[r]})).keys(),a=this.services.cartesianScales.domainAxisPosition,s=t.axes[a].scaleType;s===E.TIME?o.sort((function(t,e){var n=new Date(t),r=new Date(e);return n-r})):s!==E.LOG&&s!==E.LINEAR||o.sort((function(t,e){return t-e}));var u=this.getDataGroupNames();return o.map((function(t){var o={sharedStackKey:t};return u.forEach((function(a){var s=n.find((function(n){return n[e]===a&&n[r].toString()===t}));o[a]=s?s[i]:null})),o}))},t.prototype.getStackedData=function(t){var e=(void 0===t?{percentage:!1}:t).percentage,n=this.getOptions(),r=n.data.groupMapsTo,i=this.getDataGroupNames(),o=this.getDataValuesGroupedByKeys();if(e){var a=nf.fromPairs(o.map((function(t){return[t.sharedStackKey,0]})));o.forEach((function(t){i.forEach((function(e){a[t.sharedStackKey]+=t[e]}))})),o.forEach((function(t){i.forEach((function(e){t[e]=t[e]/a[t.sharedStackKey]*100}))}))}return h_().keys(i)(o).map((function(t,e){return Object.keys(t).filter((function(t){return!isNaN(t)})).map((function(n){var o=t[n];return o[r]=i[e],o}))}))},t.prototype.getOptions=function(){return this.state.options},t.prototype.set=function(t,e){void 0===e&&(e=!1),this.state=Object.assign({},this.state,t),e||this.update()},t.prototype.get=function(t){return t?this.state[t]:this.state},t.prototype.setOptions=function(t){this.set({options:nf.merge(this.getOptions(),t)})},t.prototype.update=function(){this.getDisplayData()&&(this.updateAllDataGroups(),this.setColorScale(),this.services.events.dispatchEvent(H.Model.UPDATE))},t.prototype.setUpdateCallback=function(t){this.updateCallback=t},t.prototype.toggleDataLabel=function(t){var e=uf.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(H.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=this.getFillScale()(t);return r.getFillColor?r.getFillColor(t,e,n,i):i},t.prototype.getStrokeColor=function(t,e,n){var r=this.getOptions(),i=this.colorScale(t);return r.getStrokeColor?r.getStrokeColor(t,e,n,i):i},t.prototype.getFillScale=function(){return this.colorScale},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/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=nf.getProperty(t,"label");if(null===a){var s=nf.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 this.getTabularData(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=uf.items.status,r=n.ACTIVE,i=n.DISABLED,o=this.getOptions(),a=Dd(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.setColorScale=function(){var t=ld,e=this.getOptions(),n=nf.getProperty(e,"color","scale");if(null!==n&&0!==Object.keys(n).length){var r=[],i=0;this.allDataGroups.forEach((function(e){n[e]?r.push(n[e]):r.push(t[i]),i===t.length-1?i=0:i++})),this.colorScale=Fd().range(r).domain(this.allDataGroups)}else this.colorScale=Fd().range(t).domain(this.allDataGroups)},t}(),p_=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 d_(){}var v_=function(t){return null==t?d_:function(){return this.querySelector(t)}},g_=function(t){"function"!==typeof t&&(t=v_(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 ew(r,this._parents)};function y_(){return[]}var m_=function(t){return null==t?y_:function(){return this.querySelectorAll(t)}},__=function(t){"function"!==typeof t&&(t=m_(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 ew(r,i)},b_=function(t){return function(){return this.matches(t)}},w_=function(t){"function"!==typeof t&&(t=b_(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 ew(r,this._parents)},x_=function(t){return new Array(t.length)},O_=function(){return new ew(this._enter||this._groups.map(x_),this._parents)};function T_(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}T_.prototype={constructor:T_,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 E_=function(t){return function(){return t}},S_="$";function M_(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 T_(t,o[s]);for(;s<u;++s)(a=e[s])&&(i[s]=a)}function A_(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=S_+a.call(u,u.__data__,s,e),c in l?i[s]=u:l[c]=u);for(s=0;s<f;++s)c=S_+a.call(t,o[s],s,o),(u=l[c])?(r[s]=u,u.__data__=o[s],l[c]=null):n[s]=new T_(t,o[s]);for(s=0;s<h;++s)(u=e[s])&&l[p[s]]===u&&(i[s]=u)}var P_=function(t,e){if(!t)return p=new Array(this.size()),c=-1,this.each((function(t){p[++c]=t})),p;var n=e?A_:M_,r=this._parents,i=this._groups;"function"!==typeof t&&(t=E_(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),y=u[c]=new Array(f);n(l,h,v,g,y,p,e);for(var m,_,b=0,w=0;b<d;++b)if(m=v[b]){b>=w&&(w=b+1);while(!(_=g[w])&&++w<d);m._next=_||null}}return a=new ew(a,r),a._enter=s,a._exit=u,a},C_=function(){return new ew(this._exit||this._groups.map(x_),this._parents)},k_=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},L_=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 ew(a,this._parents)},D_=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},R_=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=I_);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 ew(i,this._parents).order()};function I_(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var j_=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},N_=function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},U_=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},H_=function(){var t=0;return this.each((function(){++t})),t},V_=function(){return!this.node()},G_=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},F_="http://www.w3.org/1999/xhtml",B_={svg:"http://www.w3.org/2000/svg",xhtml:F_,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},z_=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),B_.hasOwnProperty(e)?{space:B_[e],local:t}:t};function W_(t){return function(){this.removeAttribute(t)}}function Y_(t){return function(){this.removeAttributeNS(t.space,t.local)}}function q_(t,e){return function(){this.setAttribute(t,e)}}function X_(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function $_(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Z_(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 K_=function(t,e){var n=z_(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?Y_:W_:"function"===typeof e?n.local?Z_:$_:n.local?X_:q_)(n,e))},Q_=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function J_(t){return function(){this.style.removeProperty(t)}}function tb(t,e,n){return function(){this.style.setProperty(t,e,n)}}function eb(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?J_:"function"===typeof e?eb:tb)(t,e,null==n?"":n)):rb(this.node(),t)};function rb(t,e){return t.style.getPropertyValue(e)||Q_(t).getComputedStyle(t,null).getPropertyValue(e)}function ib(t){return function(){delete this[t]}}function ob(t,e){return function(){this[t]=e}}function ab(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}var sb=function(t,e){return arguments.length>1?this.each((null==e?ib:"function"===typeof e?ab:ob)(t,e)):this.node()[t]};function ub(t){return t.trim().split(/^|\s+/)}function cb(t){return t.classList||new lb(t)}function lb(t){this._node=t,this._names=ub(t.getAttribute("class")||"")}function hb(t,e){var n=cb(t),r=-1,i=e.length;while(++r<i)n.add(e[r])}function fb(t,e){var n=cb(t),r=-1,i=e.length;while(++r<i)n.remove(e[r])}function pb(t){return function(){hb(this,t)}}function db(t){return function(){fb(this,t)}}function vb(t,e){return function(){(e.apply(this,arguments)?hb:fb)(this,t)}}lb.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 gb=function(t,e){var n=ub(t+"");if(arguments.length<2){var r=cb(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?vb:e?pb:db)(n,e))};function yb(){this.textContent=""}function mb(t){return function(){this.textContent=t}}function _b(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}var bb=function(t){return arguments.length?this.each(null==t?yb:("function"===typeof t?_b:mb)(t)):this.node().textContent};function wb(){this.innerHTML=""}function xb(t){return function(){this.innerHTML=t}}function Ob(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}var Tb=function(t){return arguments.length?this.each(null==t?wb:("function"===typeof t?Ob:xb)(t)):this.node().innerHTML};function Eb(){this.nextSibling&&this.parentNode.appendChild(this)}var Sb=function(){return this.each(Eb)};function Mb(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var Ab=function(){return this.each(Mb)};function Pb(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===F_&&e.documentElement.namespaceURI===F_?e.createElement(t):e.createElementNS(n,t)}}function Cb(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var kb=function(t){var e=z_(t);return(e.local?Cb:Pb)(e)},Lb=function(t){var e="function"===typeof t?t:kb(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))};function Db(){return null}var Rb=function(t,e){var n="function"===typeof t?t:kb(t),r=null==e?Db:"function"===typeof e?e:v_(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))};function Ib(){var t=this.parentNode;t&&t.removeChild(this)}var jb=function(){return this.each(Ib)};function Nb(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ub(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var Hb=function(t){return this.select(t?Ub:Nb)},Vb=function(t){return arguments.length?this.property("__data__",t):this.node().__data__},Gb={},Fb=null;if("undefined"!==typeof document){var Bb=document.documentElement;"onmouseenter"in Bb||(Gb={mouseenter:"mouseover",mouseleave:"mouseout"})}function zb(t,e,n){return t=Wb(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function Wb(t,e,n){return function(r){var i=Fb;Fb=r;try{t.call(this,this.__data__,e,n)}finally{Fb=i}}}function Yb(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 qb(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 Xb(t,e,n){var r=Gb.hasOwnProperty(t.type)?zb:Wb;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 $b=function(t,e,n){var r,i,o=Yb(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?Xb:qb,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 Zb(t,e,n){var r=Q_(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 Kb(t,e){return function(){return Zb(this,t,e)}}function Qb(t,e){return function(){return Zb(this,t,e.apply(this,arguments))}}var Jb=function(t,e){return this.each(("function"===typeof e?Qb:Kb)(t,e))},tw=[null];function ew(t,e){this._groups=t,this._parents=e}function nw(){return new ew([[document.documentElement]],tw)}ew.prototype=nw.prototype={constructor:ew,select:g_,selectAll:__,filter:w_,data:P_,enter:O_,exit:C_,join:k_,merge:L_,order:D_,sort:R_,call:j_,nodes:N_,node:U_,size:H_,empty:V_,each:G_,attr:K_,style:nb,property:sb,classed:gb,text:bb,html:Tb,raise:Sb,lower:Ab,append:Lb,insert:Rb,remove:jb,clone:Hb,datum:Vb,on:$b,dispatch:Jb};var rw=nw,iw=function(t){return"string"===typeof t?new ew([[document.querySelector(t)]],[document.documentElement]):new ew([[t]],tw)},ow={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 "},aw=ow,sw=aw,uw=n("2da1"),cw=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)}}(),lw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return cw(e,t),e.getSVGElementSize=function(t,e){t.attr||(t=iw(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:nf.getProperty(t.node(),"width","baseVal","value"),height:nf.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=e.split("."),r=n[0],i=t.select(e);return i.empty()?t.append(r).attr("class",n.slice(1).join(" ")):i},e.prototype.init=function(){this.styleHolderElement(),this.addSVGElement(),this.model.getOptions().resizable&&this.addResizeListener(),this.addHolderListeners()},e.prototype.update=function(){this.styleHolderElement()},e.prototype.styleHolderElement=function(){var t=this.getHolder();iw(this.getHolder()).classed(sw.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=nf.getProperty(this.model.getOptions(),"style","prefix"),e=iw(this.getHolder()).append("svg").classed(sw.prefix+"--"+t+"--chart-svg",!0).attr("height","100%").attr("width","100%");this.svg=e.node()},e.prototype.getMainSVG=function(){return this.svg},e.prototype.addHolderListeners=function(){var t=this,e=this.getHolder();e&&iw(e).on("mouseover",(function(){t.services.events.dispatchEvent(H.Chart.MOUSEOVER)})).on("mouseout",(function(){t.services.events.dispatchEvent(H.Chart.MOUSEOUT)}))},e.prototype.addResizeListener=function(){var t=this,e=this.getHolder();if(e){var n=e.clientWidth,r=e.clientHeight,i=nf.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(H.Chart.RESIZE))}),12.5),o=new uw["a"](i);o.observe(e)}},e}(p_),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)}}(),fw=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return hw(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}(p_),pw={value:function(){}};function dw(){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 vw(r)}function vw(t){this._=t}function gw(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 yw(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function mw(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=pw,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}vw.prototype=dw.prototype={constructor:vw,on:function(t,e){var n,r=this._,i=gw(t+"",r),o=-1,a=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!==typeof e)throw new Error("invalid callback: "+e);while(++o<a)if(n=(t=i[o]).type)r[n]=mw(r[n],t.name,e);else if(null==e)for(n in r)r[n]=mw(r[n],t.name,null);return this}while(++o<a)if((n=(t=i[o]).type)&&(n=yw(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new vw(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)}};var _w,bw,ww=dw,xw=0,Ow=0,Tw=0,Ew=1e3,Sw=0,Mw=0,Aw=0,Pw="object"===typeof performance&&performance.now?performance:Date,Cw="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function kw(){return Mw||(Cw(Lw),Mw=Pw.now()+Aw)}function Lw(){Mw=0}function Dw(){this._call=this._time=this._next=null}function Rw(t,e,n){var r=new Dw;return r.restart(t,e,n),r}function Iw(){kw(),++xw;var t,e=_w;while(e)(t=Mw-e._time)>=0&&e._call.call(null,t),e=e._next;--xw}function jw(){Mw=(Sw=Pw.now())+Aw,xw=Ow=0;try{Iw()}finally{xw=0,Uw(),Mw=0}}function Nw(){var t=Pw.now(),e=t-Sw;e>Ew&&(Aw-=e,Sw=t)}function Uw(){var t,e,n=_w,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:_w=e);bw=t,Hw(r)}function Hw(t){if(!xw){Ow&&(Ow=clearTimeout(Ow));var e=t-Mw;e>24?(t<1/0&&(Ow=setTimeout(jw,t-Pw.now()-Aw)),Tw&&(Tw=clearInterval(Tw))):(Tw||(Sw=Pw.now(),Tw=setInterval(Nw,Ew)),xw=1,Cw(jw))}}Dw.prototype=Rw.prototype={constructor:Dw,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?kw():+n)+(null==e?0:+e),this._next||bw===this||(bw?bw._next=this:_w=this,bw=this),this._call=t,this._time=n,Hw()},stop:function(){this._call&&(this._call=null,this._time=1/0,Hw())}};var Vw=function(t,e,n){var r=new Dw;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r},Gw=ww("start","end","cancel","interrupt"),Fw=[],Bw=0,zw=1,Ww=2,Yw=3,qw=4,Xw=5,$w=6,Zw=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};tx(t,n,{name:e,index:r,group:i,on:Gw,tween:Fw,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Bw})};function Kw(t,e){var n=Jw(t,e);if(n.state>Bw)throw new Error("too late; already scheduled");return n}function Qw(t,e){var n=Jw(t,e);if(n.state>Yw)throw new Error("too late; already running");return n}function Jw(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function tx(t,e,n){var r,i=t.__transition;function o(t){n.state=zw,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!==zw)return u();for(c in i)if(f=i[c],f.name===n.name){if(f.state===Yw)return Vw(a);f.state===qw?(f.state=$w,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<e&&(f.state=$w,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(Vw((function(){n.state===Yw&&(n.state=qw,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=Ww,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Ww){for(n.state=Yw,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=Xw,1),o=-1,a=r.length;while(++o<a)r[o].call(t,i);n.state===Xw&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=$w,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Rw(o,0,n.time)}var ex,nx,rx,ix,ox=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>Ww&&n.state<Xw,n.state=$w,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}},ax=function(t){return this.each((function(){ox(this,t)}))},sx=180/Math.PI,ux={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},cx=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)*sx,skewX:Math.atan(u)*sx,scaleX:a,scaleY:s}};function lx(t){return"none"===t?ux:(ex||(ex=document.createElement("DIV"),nx=document.documentElement,rx=document.defaultView),ex.style.transform=t,t=rx.getComputedStyle(nx.appendChild(ex),null).getPropertyValue("transform"),nx.removeChild(ex),t=t.slice(7,-1).split(","),cx(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function hx(t){return null==t?ux:(ix||(ix=document.createElementNS("http://www.w3.org/2000/svg","g")),ix.setAttribute("transform",t),(t=ix.transform.baseVal.consolidate())?(t=t.matrix,cx(t.a,t.b,t.c,t.d,t.e,t.f)):ux)}function fx(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:Nv(t,i)},{i:u-2,x:Nv(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:Nv(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:Nv(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:Nv(t,n)},{i:s-2,x:Nv(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 px=fx(lx,"px, ","px)","deg)"),dx=fx(hx,", ",")",")");function vx(t,e){var n,r;return function(){var i=Qw(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 gx(t,e,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=Qw(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 yx=function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=Jw(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?vx:gx)(n,t,e))};function mx(t,e,n){var r=t._id;return t.each((function(){var t=Qw(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return Jw(t,r).value[e]}}var _x=function(t,e){var n;return("number"===typeof e?Nv:e instanceof cv?kv:(n=cv(e))?(e=n,kv):Bv)(t,e)};function bx(t){return function(){this.removeAttribute(t)}}function wx(t){return function(){this.removeAttributeNS(t.space,t.local)}}function xx(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 Ox(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 Tx(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 Ex(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 Sx=function(t,e){var n=z_(t),r="transform"===n?dx:_x;return this.attrTween(t,"function"===typeof e?(n.local?Ex:Tx)(n,r,mx(this,"attr."+t,e)):null==e?(n.local?wx:bx)(n):(n.local?Ox:xx)(n,r,e))};function Mx(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Ax(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Px(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Ax(t,i)),n}return i._value=e,i}function Cx(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&Mx(t,i)),n}return i._value=e,i}var kx=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=z_(t);return this.tween(n,(r.local?Px:Cx)(r,e))};function Lx(t,e){return function(){Kw(this,t).delay=+e.apply(this,arguments)}}function Dx(t,e){return e=+e,function(){Kw(this,t).delay=e}}var Rx=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?Lx:Dx)(e,t)):Jw(this.node(),e).delay};function Ix(t,e){return function(){Qw(this,t).duration=+e.apply(this,arguments)}}function jx(t,e){return e=+e,function(){Qw(this,t).duration=e}}var Nx=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?Ix:jx)(e,t)):Jw(this.node(),e).duration};function Ux(t,e){if("function"!==typeof e)throw new Error;return function(){Qw(this,t).ease=e}}var Hx=function(t){var e=this._id;return arguments.length?this.each(Ux(e,t)):Jw(this.node(),e).ease},Vx=function(t){"function"!==typeof t&&(t=b_(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 vO(r,this._parents,this._name,this._id)},Gx=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 vO(a,this._parents,this._name,this._id)};function Fx(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 Bx(t,e,n){var r,i,o=Fx(e)?Kw:Qw;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var zx=function(t,e){var n=this._id;return arguments.length<2?Jw(this.node(),n).on.on(t):this.each(Bx(n,t,e))};function Wx(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}var Yx=function(){return this.on("end.remove",Wx(this._id))},qx=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=v_(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,Zw(h[f],e,n,f,h,Jw(s,n)));return new vO(o,this._parents,e,n)},Xx=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=m_(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=Jw(u,n),v=0,g=p.length;v<g;++v)(f=p[v])&&Zw(f,e,n,v,p,d);o.push(p),a.push(u)}return new vO(o,a,e,n)},$x=rw.prototype.constructor,Zx=function(){return new $x(this._groups,this._parents)};function Kx(t,e){var n,r,i;return function(){var o=rb(this,t),a=(this.style.removeProperty(t),rb(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}function Qx(t){return function(){this.style.removeProperty(t)}}function Jx(t,e,n){var r,i,o=n+"";return function(){var a=rb(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}function tO(t,e,n){var r,i,o;return function(){var a=rb(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=rb(this,t)),a===u?null:a===r&&u===i?o:(i=u,o=e(r=a,s))}}function eO(t,e){var n,r,i,o,a="style."+e,s="end."+a;return function(){var u=Qw(this,t),c=u.on,l=null==u.value[a]?o||(o=Qx(e)):void 0;c===n&&i===l||(r=(n=c).copy()).on(s,i=l),u.on=r}}var nO=function(t,e,n){var r="transform"===(t+="")?px:_x;return null==e?this.styleTween(t,Kx(t,r)).on("end.style."+t,Qx(t)):"function"===typeof e?this.styleTween(t,tO(t,r,mx(this,"style."+t,e))).each(eO(this._id,t)):this.styleTween(t,Jx(t,r,e),n).on("end.style."+t,null)};function rO(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function iO(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&rO(t,o,n)),r}return o._value=e,o}var oO=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,iO(t,e,null==n?"":n))};function aO(t){return function(){this.textContent=t}}function sO(t){return function(){var e=t(this);this.textContent=null==e?"":e}}var uO=function(t){return this.tween("text","function"===typeof t?sO(mx(this,"text",t)):aO(null==t?"":t+""))};function cO(t){return function(e){this.textContent=t.call(this,e)}}function lO(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&cO(r)),e}return r._value=t,r}var hO=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,lO(t))},fO=function(){for(var t=this._name,e=this._id,n=yO(),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=Jw(a,e);Zw(a,t,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new vO(r,this._parents,t,n)},pO=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=Qw(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}))}))},dO=0;function vO(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function gO(t){return rw().transition(t)}function yO(){return++dO}var mO=rw.prototype;function _O(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}vO.prototype=gO.prototype={constructor:vO,select:qx,selectAll:Xx,filter:Vx,merge:Gx,selection:Zx,transition:fO,call:mO.call,nodes:mO.nodes,node:mO.node,size:mO.size,empty:mO.empty,each:mO.each,on:zx,attr:Sx,attrTween:kx,style:nO,styleTween:oO,text:uO,textTween:hO,remove:Yx,tween:yx,delay:Rx,duration:Nx,ease:Hx,end:pO};var bO={time:null,delay:0,duration:250,ease:_O};function wO(t,e){var n;while(!(n=t.__transition)||!(n=n[e]))if(!(t=t.parentNode))return bO.time=kw(),bO;return n}var xO=function(t){var e,n;t instanceof vO?(e=t._id,t=t._name):(e=yO(),(n=bO).time=kw(),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])&&Zw(a,t,e,c,s,n||wO(a,e));return new vO(r,this._parents,t,e)};rw.prototype.interrupt=ax,rw.prototype.transition=xO;var OO=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)}}(),TO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pendingTransitions={},e}return OO(e,t),e.prototype.init=function(){var t=this;this.services.events.addEventListener(H.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=gO(t).duration(nf.getProperty(Df,t,"duration")||Df.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=gO(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}(p_);function EO(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 SO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=EO(t),r=EO(e);return n.getFullYear()-r.getFullYear()}function MO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=EO(t),r=EO(e),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function AO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=EO(t),r=EO(e),i=MO(n,r),o=Math.abs(SO(n,r));n.setFullYear(n.getFullYear()-i*o);var a=MO(n,r)===-i,s=i*(o-a);return 0===s?0:s}function PO(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 CO(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=EO(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 kO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=EO(t),r=PO(e),i=n.getMonth()+r,o=new Date(0);o.setFullYear(n.getFullYear(),i,1),o.setHours(0,0,0,0);var a=CO(o);return n.setMonth(i,Math.min(a,n.getDate())),n}function LO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=PO(e);return kO(t,12*n)}function DO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=PO(e);return LO(t,-n)}function RO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=EO(t),r=EO(e),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return 12*i+o}function IO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=EO(t),r=EO(e),i=MO(n,r),o=Math.abs(RO(n,r));n.setMonth(n.getMonth()-i*o);var a=MO(n,r)===-i,s=i*(o-a);return 0===s?0:s}function jO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=PO(e);return kO(t,-n)}var NO=6e4;function UO(t){var e=new Date(t.getTime()),n=Math.ceil(e.getTimezoneOffset());e.setSeconds(0,0);var r=e.getTime()%NO;return n*NO+r}function HO(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=EO(t);return e.setHours(0,0,0,0),e}var VO=864e5;function GO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=HO(t),r=HO(e),i=n.getTime()-UO(n),o=r.getTime()-UO(r);return Math.round((i-o)/VO)}function FO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=EO(t),r=EO(e),i=MO(n,r),o=Math.abs(GO(n,r));n.setDate(n.getDate()-i*o);var a=MO(n,r)===-i,s=i*(o-a);return 0===s?0:s}function BO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=EO(t),r=PO(e);return n.setDate(n.getDate()+r),n}function zO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=PO(e);return BO(t,-n)}function WO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=EO(t),r=EO(e);return n.getTime()-r.getTime()}var YO=36e5;function qO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=WO(t,e)/YO;return n>0?Math.floor(n):Math.ceil(n)}function XO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=EO(t).getTime(),r=PO(e);return new Date(n+r)}var $O=36e5;function ZO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=PO(e);return XO(t,n*$O)}function KO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=PO(e);return ZO(t,-n)}var QO=6e4;function JO(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=WO(t,e)/QO;return n>0?Math.floor(n):Math.ceil(n)}var tT=6e4;function eT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=PO(e);return XO(t,n*tT)}function nT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=PO(e);return eT(t,-n)}function rT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=WO(t,e)/1e3;return n>0?Math.floor(n):Math.ceil(n)}function iT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=PO(e);return XO(t,1e3*n)}function oT(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=PO(e);return iT(t,-n)}var aT=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)}}(),sT=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 aT(e,t),e.prototype.getDomainAxisPosition=function(){return this.domainAxisPosition},e.prototype.getRangeAxisPosition=function(){return this.rangeAxisPosition},e.prototype.update=function(t){var e=this;void 0===t&&(t=!0),this.findDomainAndRangeAxes(),this.determineOrientation();var n=Object.keys(x).map((function(t){return x[t]}));n.forEach((function(t){e.scales[t]=e.createScale(t)}))},e.prototype.findDomainAndRangeAxes=function(){var t=this.findMainVerticalAxisPosition(),e=this.findMainHorizontalAxisPosition(),n=this.findDomainAndRangeAxesPositions(t,e);this.domainAxisPosition=n.domainAxisPosition,this.rangeAxisPosition=n.rangeAxisPosition},e.prototype.determineOrientation=function(){this.rangeAxisPosition!==x.LEFT&&this.rangeAxisPosition!==x.RIGHT||this.domainAxisPosition!==x.BOTTOM&&this.domainAxisPosition!==x.TOP?this.orientation=T.HORIZONTAL:this.orientation=T.VERTICAL},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.getDomainScale=function(){return this.scales[this.domainAxisPosition]},e.prototype.getRangeScale=function(){return this.scales[this.rangeAxisPosition]},e.prototype.getMainXAxisPosition=function(){var t=[x.BOTTOM,x.TOP];return[this.domainAxisPosition,this.rangeAxisPosition].find((function(e){return t.indexOf(e)>-1}))},e.prototype.getMainYAxisPosition=function(){var t=[x.LEFT,x.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){var r=this.model.getOptions(),i=nf.getProperty(r,"axes",t),o=this.scaleTypes[t],a=this.scales[t],s=i.mapsTo,u=void 0!==e[s]?e[s]:e;return o===E.LABELS?a(u)+a.step()/2:o===E.TIME?a(new Date(u)):a(u)},e.prototype.getDomainValue=function(t,e){return this.getValueFromScale(this.domainAxisPosition,t,e)},e.prototype.getRangeValue=function(t,e){return this.getValueFromScale(this.rangeAxisPosition,t,e)},e.prototype.getDomainIdentifier=function(){var t=this.model.getOptions(),e=nf.getProperty(t,"axes",this.domainAxisPosition);return e.mapsTo},e.prototype.getRangeIdentifier=function(){var t=this.model.getOptions(),e=nf.getProperty(t,"axes",this.rangeAxisPosition);return e.mapsTo},e.prototype.getDataFromDomain=function(t){var e=this.model.getDisplayData(),n=this.getDomainIdentifier(),r=this.scaleTypes[this.domainAxisPosition];return r===E.TIME?e.filter((function(e){var r=e[n];return"string"!==typeof r&&void 0!==r.getTime||(r=new Date(r)),r.getTime()===t.getTime()})):e.filter((function(e){return e[n]===t}))},e.prototype.extendsDomain=function(t,e){var n=this.model.getOptions(),r=nf.getProperty(n,"axes",t);if(r.scaleType===E.TIME){var i=nf.getProperty(n,"timeScale","addSpaceOnEdges");return uT(e,i)}return cT(e,Rf.paddingRatio)},e.prototype.findMainVerticalAxisPosition=function(){var t=this.model.getOptions(),e=nf.getProperty(t,"axes");return null===nf.getProperty(e,x.LEFT)&&null!==nf.getProperty(e,x.RIGHT)||!0===nf.getProperty(e,x.RIGHT,"main")?x.RIGHT:x.LEFT},e.prototype.findMainHorizontalAxisPosition=function(){var t=this.model.getOptions(),e=nf.getProperty(t,"axes");return null===nf.getProperty(e,x.BOTTOM)&&null!==nf.getProperty(e,x.TOP)||!0===nf.getProperty(e,x.TOP,"main")?x.TOP:x.BOTTOM},e.prototype.findDomainAndRangeAxesPositions=function(t,e){var n=this.model.getOptions(),r=nf.getProperty(n,"axes",t),i=nf.getProperty(n,"axes",e),o=r.scaleType||E.LINEAR,a=i.scaleType||E.LINEAR,s={domainAxisPosition:null,rangeAxisPosition:null};return a===E.LABELS||a===E.TIME?(s.domainAxisPosition=e,s.rangeAxisPosition=t):o===E.LABELS||o===E.TIME?(s.domainAxisPosition=t,s.rangeAxisPosition=e):(s.domainAxisPosition=e,s.rangeAxisPosition=t),s},e.prototype.getScaleDomain=function(t){var e=this.model.getOptions(),n=nf.getProperty(e,"axes",t),r=n.includeZero,i=nf.getProperty(n,"scaleType")||E.LINEAR;if(this.model.isDataEmpty())return[];var o,a,s=this.model.getDisplayData(),u=n.mapsTo,c=n.percentage;if(n.domain)return i===E.LABELS?n.domain:this.extendsDomain(t,n.domain);if(c)return[0,100];if(n&&i===E.LABELS)return Dd(s,(function(t){return t[u]})).keys();if(n.stacked){var l=this.model.getDataValuesGroupedByKeys();a=l.map((function(t){return Ad(Nd(t))}))}else a=s.map((function(t){return t[u]}));return i!==E.TIME&&r&&a.push(0),o=yd(a),o=this.extendsDomain(t,o),o},e.prototype.createScale=function(t){var e=this.model.getOptions(),n=nf.getProperty(e,"axes",t);if(!n)return null;var r,i=nf.getProperty(n,"scaleType")||E.LINEAR;return this.scaleTypes[t]=i,r=i===E.TIME?n_():i===E.LOG?Hg().base(n.base||10):i===E.LABELS?Bd():Ag(),r.domain(this.getScaleDomain(t)),r},e.prototype.getHighestDomainThreshold=function(){var t=nf.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!==E.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=nf.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}(p_);function uT(t,e){var n=new Date(t[0]),r=new Date(t[1]);return AO(r,n)>1?[DO(n,e),LO(r,e)]:IO(r,n)>1?[jO(n,e),kO(r,e)]:FO(r,n)>1?[zO(n,e),BO(r,e)]:qO(r,n)>1?[KO(n,e),ZO(r,e)]:JO(r,n)>30?[nT(n,30*e),eT(r,30*e)]:JO(r,n)>1?[nT(n,e),eT(r,e)]:rT(r,n)>15?[oT(n,15*e),iT(r,15*e)]:rT(r,n)>1?[oT(n,e),iT(r,e)]:[n,r]}function cT(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 lT(t){this._context=t}lT.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 hT=function(t){return new lT(t)},fT=function(){};function pT(t){this._context=t}pT.prototype={areaStart:fT,areaEnd:fT,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 dT=function(t){return new pT(t)};function vT(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 gT(t){this._context=t}gT.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:vT(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:vT(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var yT=function(t){return new gT(t)};function mT(t){this._context=t}mT.prototype={areaStart:fT,areaEnd:fT,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:vT(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var _T=function(t){return new mT(t)};function bT(t){this._context=t}bT.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:vT(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var wT=function(t){return new bT(t)};function xT(t,e){this._basis=new gT(t),this._beta=e}xT.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 OT=function t(e){function n(t){return 1===e?new gT(t):new xT(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function TT(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 ET(t,e){this._context=t,this._k=(1-e)/6}ET.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:TT(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:TT(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 ST=function t(e){function n(t){return new ET(t,e)}return n.tension=function(e){return t(+e)},n}(0);function MT(t,e){this._context=t,this._k=(1-e)/6}MT.prototype={areaStart:fT,areaEnd:fT,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:TT(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 AT=function t(e){function n(t){return new MT(t,e)}return n.tension=function(e){return t(+e)},n}(0);function PT(t,e){this._context=t,this._k=(1-e)/6}PT.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:TT(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 CT=function t(e){function n(t){return new PT(t,e)}return n.tension=function(e){return t(+e)},n}(0),kT=Math.abs,LT=Math.atan2,DT=Math.cos,RT=Math.max,IT=Math.min,jT=Math.sin,NT=Math.sqrt,UT=1e-12,HT=Math.PI,VT=HT/2,GT=2*HT;function FT(t){return t>1?0:t<-1?HT:Math.acos(t)}function BT(t){return t>=1?VT:t<=-1?-VT:Math.asin(t)}function zT(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>UT){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>UT){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 WT(t,e){this._context=t,this._alpha=e}WT.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:zT(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 YT=function t(e){function n(t){return e?new WT(t,e):new ET(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function qT(t,e){this._context=t,this._alpha=e}qT.prototype={areaStart:fT,areaEnd:fT,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:zT(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 XT=function t(e){function n(t){return e?new qT(t,e):new MT(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function $T(t,e){this._context=t,this._alpha=e}$T.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:zT(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 ZT=function t(e){function n(t){return e?new $T(t,e):new PT(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function KT(t){return t<0?-1:1}function QT(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(KT(o)+KT(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function JT(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function tE(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 eE(t){this._context=t}function nE(t){this._context=new rE(t)}function rE(t){this._context=t}function iE(t){return new eE(t)}function oE(t){return new nE(t)}function aE(t){this._context=t}function sE(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]}eE.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:tE(this,this._t0,JT(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,tE(this,JT(this,n=QT(this,t,e)),n);break;default:tE(this,this._t0,n=QT(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(nE.prototype=Object.create(eE.prototype)).point=function(t,e){eE.prototype.point.call(this,e,t)},rE.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)}},aE.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=sE(t),i=sE(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 uE=function(t){return new aE(t)};function cE(t,e){this._context=t,this._t=e}cE.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 lE=function(t){return new cE(t,.5)};function hE(t){return new cE(t,0)}function fE(t){return new cE(t,1)}var pE,dE,vE=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)}}(),gE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.curveTypes={curveLinear:hT,curveLinearClosed:dT,curveBasis:yT,curveBasisClosed:_T,curveBasisOpen:wT,curveBundle:OT,curveCardinal:ST,curveCardinalClosed:AT,curveCardinalOpen:CT,curveCatmullRom:YT,curveCatmullRomClosed:XT,curveCatmullRomOpen:ZT,curveMonotoneX:iE,curveMonotoneY:oE,curveNatural:uE,curveStep:lE,curveStepAfter:fE,curveStepBefore:hE},e}return vE(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}(p_),yE=function(){function t(t,e,n){this.configs={},this.model=t,this.services=e,n&&(this.configs=n),this.parent||this.setParent(iw(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=nf.getProperty(this.model.getOptions(),"style","prefix");this.parent.classed(sw.prefix+"--"+n+"--"+this.type,!0),e&&e.classed(sw.prefix+"--"+n+"--"+this.type,!1)}},t.prototype.getParent=function(){return this.parent},t.prototype.getContainerSVG=function(){if(this.type){var t=nf.getProperty(this.model.getOptions(),"style","prefix");return lw.appendOrSelect(this.parent,"g."+sw.prefix+"--"+t+"--"+this.type)}return this.parent},t}(),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)}}(),_E=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="legend",e}return mE(e,t),e.prototype.render=function(){var t=this,e=this.getContainerSVG().attr("role",o.GRAPHICS_DOCUMENT),n=this.model.getOptions(),r=nf.getProperty(n,"legend"),i=e.selectAll("g.legend-item").data(this.model.getDataGroups(),(function(t){return t.name})),a=i.enter().append("g").classed("legend-item",!0).classed("active",(function(t,e){return t.status===n.legend.items.status.ACTIVE})),s=n.legend.checkbox.radius,u=nf.getProperty(r,"truncation","type"),c=nf.getProperty(r,"truncation","threshold"),l=nf.getProperty(r,"truncation","numCharacter");a.append("rect").classed("checkbox",!0).merge(i.select("rect.checkbox")).attr("width",2*s).attr("height",2*s).attr("rx",1).attr("ry",1).style("fill",(function(e){return e.status===n.legend.items.status.ACTIVE?t.model.getStrokeColor(e.name):null})).classed("active",(function(t,e){return t.status===n.legend.items.status.ACTIVE}));var h=a.append("text").merge(i.select("text"));u!==O.NONE?h.html((function(t){return t.name.length>c?nf.truncateLabel(t.name,u,l):t.name})):h.html((function(t){return t.name})),this.breakItemsIntoLines(a),i.exit().on("mouseover",null).on("click",null).on("mouseout",null).remove();var f=nf.getProperty(this.model.getOptions(),"legend","clickable");e.classed("clickable",f),f&&a.size()>0&&this.addEventListeners()},e.prototype.breakItemsIntoLines=function(t){var e=this,n=this.getContainerSVG(),r=this.model.getOptions(),i=r.legend.checkbox.radius,o=r.legend.items.horizontalSpace,a=r.legend.items.verticalSpace,s=r.legend.items.textYOffset,u=2*i+r.legend.checkbox.spaceAfter,c=r.legend.items.status.DISABLED,l=this.model.getDataGroups(),h=l.some((function(t){return t.status===c})),f=nf.getProperty(r,"legend","orientation"),p=0,d=0,v=0;t.merge(n.selectAll("g.legend-item")).each((function(t,r){var c=iw(this),l=iw(n.selectAll("g.legend-item").nodes()[r-1]);if(0===v||l.empty()||f===P.VERTICAL)f===P.VERTICAL&&0!==r&&d++;else{var g=lw.getSVGElementSize(e.parent,{useAttr:!0}),y=lw.getSVGElementSize(iw(this).select("text"),{useBBox:!0}),m=lw.getSVGElementSize(l.select("text"),{useBBox:!0});p=p+m.width+u+o,p+u+y.width>g.width&&(d++,p=0,v=0)}var _=0;c.select("rect.checkbox").attr("x",p).attr("y",_+d*a);var b=s+d*a;c.select("text").attr("x",p+u).attr("y",_+b+3),b;var w=(!f||f===P.HORIZONTAL)&&"0"===c.select("rect.checkbox").attr("y"),x=f===P.VERTICAL&&"0"===c.select("rect.checkbox").attr("x"),O=w||x;h&&c.select("g.check").empty()&&O?(c.append("g").classed("check",!0).html('\n\t\t\t\t\t\t\t<svg focusable="false" preserveAspectRatio="xMidYMid meet"\n\t\t\t\t\t\t\t\txmlns="http://www.w3.org/2000/svg" width="32" height="32"\n\t\t\t\t\t\t\t\tviewBox="0 0 32 32" aria-hidden="true"\n\t\t\t\t\t\t\t\tstyle="will-change: transform;">\n\t\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\t<title>Checkmark</title>\n\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t'),c.select("g.check svg").attr("width",2*i-1).attr("height",2*i-1).attr("x",parseFloat(c.select("rect.checkbox").attr("x"))+.5).attr("y",parseFloat(c.select("rect.checkbox").attr("y"))+.5)):h||c.select("g.check").empty()||c.select("g.check").remove(),v++}))},e.prototype.addEventListeners=function(){var t=this,e=this.getContainerSVG(),n=this.model.getOptions(),r=nf.getProperty(n,"legend"),i=nf.getProperty(r,"truncation","threshold");e.selectAll("g.legend-item").on("mouseover",(function(){t.services.events.dispatchEvent(H.Legend.ITEM_HOVER,{hoveredElement:iw(this)});var e=n.legend.checkbox.radius,r=iw(this);r.append("rect").classed("hover-stroke",!0).attr("x",parseFloat(r.select("rect.checkbox").attr("x"))-2).attr("y",parseFloat(r.select("rect.checkbox").attr("y"))-2).attr("width",2*e+4).attr("height",2*e+4).attr("rx",3).attr("ry",3).lower()})).on("click",(function(){t.services.events.dispatchEvent(H.Legend.ITEM_CLICK,{clickedElement:iw(this)});var e=iw(this),n=e.datum();t.model.toggleDataLabel(n.name)})).on("mousemove",(function(){var e=iw(this),n=e.datum();n.name.length>i&&t.services.events.dispatchEvent(H.Tooltip.SHOW,{hoveredElement:e,type:M.LEGEND})})).on("mouseout",(function(){var e=iw(this);e.select("rect.hover-stroke").remove(),t.services.events.dispatchEvent(H.Tooltip.HIDE),t.services.events.dispatchEvent(H.Legend.ITEM_MOUSEOUT,{hoveredElement:e})}))},e}(yE),bE=function(){var t,e=Fb;while(t=e.sourceEvent)e=t;return e},wE=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]},xE=function(t){var e=bE();return e.changedTouches&&(e=e.changedTouches[0]),wE(t,e)};(function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"})(dE||(dE={}));var OE=(pE={},pE[dE.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)}},pE[dE.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)}},pE[dE.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)}},pE[dE.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)}},pE),TE="undefined"!==typeof window?window:{innerHeight:0,scrollY:0,innerWidth:0,scrollX:0},EE=function(){function t(t){void 0===t&&(t={}),this.positions=OE,this.positions=Object.assign({},OE,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:TE.innerHeight-TE.scrollY,height:TE.innerWidth-TE.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}(),SE=(new EE,EE);function ME(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=EO(t);return!isNaN(e)}var AE={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 PE(t,e,n){var r;return n=n||{},r="string"===typeof AE[t]?AE[t]:1===e?AE[t].one:AE[t].other.replace("{{count}}",e),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r}function CE(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 kE={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},LE={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},DE={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},RE={date:CE({formats:kE,defaultWidth:"full"}),time:CE({formats:LE,defaultWidth:"full"}),dateTime:CE({formats:DE,defaultWidth:"full"})},IE=RE,jE={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function NE(t,e,n,r){return jE[t]}function UE(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 HE={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},VE={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},GE={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"]},FE={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"]},BE={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"}},zE={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 WE(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 YE={ordinalNumber:WE,era:UE({values:HE,defaultWidth:"wide"}),quarter:UE({values:VE,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:UE({values:GE,defaultWidth:"wide"}),day:UE({values:FE,defaultWidth:"wide"}),dayPeriod:UE({values:BE,defaultWidth:"wide",formattingValues:zE,defaultFormattingWidth:"wide"})},qE=YE;function XE(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 $E(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)?KE(l,(function(t){return t.test(r)})):ZE(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 ZE(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function KE(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}var QE=/^(\d+)(th|st|nd|rd)?/i,JE=/\d+/i,tS={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},eS={any:[/^b/i,/^(a|c)/i]},nS={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},rS={any:[/1/i,/2/i,/3/i,/4/i]},iS={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},oS={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]},aS={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},sS={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]},uS={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},cS={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}},lS={ordinalNumber:XE({matchPattern:QE,parsePattern:JE,valueCallback:function(t){return parseInt(t,10)}}),era:$E({matchPatterns:tS,defaultMatchWidth:"wide",parsePatterns:eS,defaultParseWidth:"any"}),quarter:$E({matchPatterns:nS,defaultMatchWidth:"wide",parsePatterns:rS,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:$E({matchPatterns:iS,defaultMatchWidth:"wide",parsePatterns:oS,defaultParseWidth:"any"}),day:$E({matchPatterns:aS,defaultMatchWidth:"wide",parsePatterns:sS,defaultParseWidth:"any"}),dayPeriod:$E({matchPatterns:uS,defaultMatchWidth:"any",parsePatterns:cS,defaultParseWidth:"any"})},hS=lS,fS={code:"en-US",formatDistance:PE,formatLong:IE,formatRelative:NE,localize:qE,match:hS,options:{weekStartsOn:0,firstWeekContainsDate:1}},pS=fS;function dS(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=PO(e);return XO(t,-n)}function vS(t,e){var n=t<0?"-":"",r=Math.abs(t).toString();while(r.length<e)r="0"+r;return n+r}var gS={y:function(t,e){var n=t.getUTCFullYear(),r=n>0?n:1-n;return vS("yy"===e?r%100:r,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):vS(n+1,2)},d:function(t,e){return vS(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 vS(t.getUTCHours()%12||12,e.length)},H:function(t,e){return vS(t.getUTCHours(),e.length)},m:function(t,e){return vS(t.getUTCMinutes(),e.length)},s:function(t,e){return vS(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 vS(i,e.length)}},yS=gS,mS=864e5;function _S(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=EO(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/mS)+1}function bS(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=1,n=EO(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 wS(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=EO(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=bS(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=bS(o);return e.getTime()>=i.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function xS(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=wS(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=bS(n);return r}var OS=6048e5;function TS(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=EO(t),n=bS(e).getTime()-xS(e).getTime();return Math.round(n/OS)+1}function ES(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:PO(i),a=null==n.weekStartsOn?o:PO(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=EO(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 SS(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=EO(t,e),r=n.getUTCFullYear(),i=e||{},o=i.locale,a=o&&o.options&&o.options.firstWeekContainsDate,s=null==a?1:PO(a),u=null==i.firstWeekContainsDate?s:PO(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=ES(c,e),h=new Date(0);h.setUTCFullYear(r,0,u),h.setUTCHours(0,0,0,0);var f=ES(h,e);return n.getTime()>=l.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function MS(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:PO(i),a=null==n.firstWeekContainsDate?o:PO(n.firstWeekContainsDate),s=SS(t,e),u=new Date(0);u.setUTCFullYear(s,0,a),u.setUTCHours(0,0,0,0);var c=ES(u,e);return c}var AS=6048e5;function PS(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=EO(t),r=ES(n,e).getTime()-MS(n,e).getTime();return Math.round(r/AS)+1}var CS={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},kS={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 yS.y(t,e)},Y:function(t,e,n,r){var i=SS(t,r),o=i>0?i:1-i;if("YY"===e){var a=o%100;return vS(a,2)}return"Yo"===e?n.ordinalNumber(o,{unit:"year"}):vS(o,e.length)},R:function(t,e){var n=wS(t);return vS(n,e.length)},u:function(t,e){var n=t.getUTCFullYear();return vS(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 vS(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 vS(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 yS.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 vS(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=PS(t,r);return"wo"===e?n.ordinalNumber(i,{unit:"week"}):vS(i,e.length)},I:function(t,e,n){var r=TS(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):vS(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):yS.d(t,e)},D:function(t,e,n){var r=_S(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):vS(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 vS(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 vS(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 vS(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?CS.noon:0===i?CS.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?CS.evening:i>=12?CS.afternoon:i>=4?CS.morning:CS.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 yS.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):yS.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):vS(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):vS(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):yS.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):yS.s(t,e)},S:function(t,e){return yS.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 DS(o);case"XXXX":case"XX":return RS(o);case"XXXXX":case"XXX":default:return RS(o,":")}},x:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"x":return DS(o);case"xxxx":case"xx":return RS(o);case"xxxxx":case"xxx":default:return RS(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"+LS(o,":");case"OOOO":default:return"GMT"+RS(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"+LS(o,":");case"zzzz":default:return"GMT"+RS(o,":")}},t:function(t,e,n,r){var i=r._originalDate||t,o=Math.floor(i.getTime()/1e3);return vS(o,e.length)},T:function(t,e,n,r){var i=r._originalDate||t,o=i.getTime();return vS(o,e.length)}};function LS(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+vS(o,2)}function DS(t,e){if(t%60===0){var n=t>0?"-":"+";return n+vS(Math.abs(t)/60,2)}return RS(t,e)}function RS(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t),o=vS(Math.floor(i/60),2),a=vS(i%60,2);return r+o+n+a}var IS=kS;function jS(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 NS(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 US(t,e){var n,r=t.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return jS(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}}",jS(i,e)).replace("{{time}}",NS(o,e))}var HS={p:NS,P:US},VS=HS,GS=["D","DD"],FS=["YY","YYYY"];function BS(t){return-1!==GS.indexOf(t)}function zS(t){return-1!==FS.indexOf(t)}function WS(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 YS=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qS=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,XS=/^'([^]*?)'?$/,$S=/''/g,ZS=/[a-zA-Z]/;function KS(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||pS,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:PO(a),u=null==i.firstWeekContainsDate?s:PO(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:PO(c),h=null==i.weekStartsOn?l:PO(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=EO(t);if(!ME(f))throw new RangeError("Invalid time value");var p=UO(f),d=dS(f,p),v={firstWeekContainsDate:u,weekStartsOn:h,locale:o,_originalDate:f},g=r.match(qS).map((function(t){var e=t[0];if("p"===e||"P"===e){var n=VS[e];return n(t,o.formatLong,v)}return t})).join("").match(YS).map((function(t){if("''"===t)return"'";var e=t[0];if("'"===e)return QS(t);var n=IS[e];if(n)return!i.useAdditionalWeekYearTokens&&zS(t)&&WS(t),!i.useAdditionalDayOfYearTokens&&BS(t)&&WS(t),n(d,t,o.localize,v);if(e.match(ZS))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return t})).join("");return g}function QS(t){return t.match(XS)[1].replace($S,"'")}var JS=[["15seconds",15e3],["minute",6e4],["30minutes",18e5],["hourly",36e5],["daily",864e5],["monthly",2592e6],["quarterly",7776e6],["yearly",31104e6]];function tM(t,e,n,r){var i=0===e,o=2===Number(KS(new Date(t),"c")),a=1===Number(KS(new Date(t),"q"));switch(n){case"15seconds":return i||aM(t)||sM(t)||uM(t);case"minute":return i||aM(t)||sM(t)||uM(t);case"30minutes":return i||aM(t)||sM(t)||uM(t);case"hourly":return i||aM(t)||sM(t)||uM(t);case"daily":return r?i||o||uM(t):i||sM(t)||uM(t);case"monthly":return i||uM(t);case"quarterly":return i||a;case"yearly":return!1;default:throw new Error(n+" is not a valid time interval.")}}function eM(t,e,n,r){var i=r.showDayName,o="daily"===n&&i?"weekly":n,a=new Date(t),s=nf.getProperty(r,"timeIntervalFormats")[o],u=nf.getProperty(s,"primary"),c=nf.getProperty(s,"secondary"),l=tM(t,e,n,i)?u:c,h=r.localeObject;return KS(a,l,{locale:h})}function nM(t){var e=new Date(t);return{M:e.getMonth()+1,d:e.getDate(),H:e.getHours(),m:e.getMinutes(),s:e.getSeconds()}}function rM(t){if(t)return t.slice(1).map((function(e,n){return e-t[n]}))}function iM(t){var e=JS.reduce((function(e,n,r){n[0];var i=n[1],o=JS[e][1],a=Math.abs(o-t),s=Math.abs(i-t);return a<s?e:r}),0);return JS[e][0]}function oM(t){if(1===t.length)return"15seconds";var e=rM(t),n=Md(e);return iM(n)}function aM(t){var e=nM(t),n=e.s,r=e.m,i=e.H;return 0===i&&0===r&&0===n}function sM(t){var e=nM(t),n=e.d,r=e.s,i=e.m,o=e.H;return 1===n&&0===o&&0===i&&0===r}function uM(t){var e=nM(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 cM=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)}}(),lM=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="threshold",i.positionService=new SE,i}return cM(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n=this.configs,r=n.value,i=n.fillColor,o=n.axisPosition,a=n.index,s=nf.getProperty(this.model.getOptions(),"style","prefix");this.thresholdClass=sw.prefix+"--"+s+"--threshold",this.thresholdIdentifierClass=o+"-"+a,this.threshold=lw.appendOrSelect(this.parent,"g."+this.thresholdClass+"."+this.thresholdIdentifierClass).raise();var u=lw.appendOrSelect(this.threshold,"rect.threshold-hoverable-area"),c=lw.appendOrSelect(this.threshold,"line.threshold-line");c.style("stroke",i);var l=this.services.cartesianScales.getScaleByPosition(o),h=this.services.cartesianScales.getScaleTypeByPosition(o),f=this.services.cartesianScales.getMainXScale(),p=this.services.cartesianScales.getMainYScale(),d=h===E.LABELS,v=f.range(),g=v[0],y=v[1],m=p.range(),_=m[0],b=m[1],w=this.services.cartesianScales,x=w.getOrientation(),O=function(t){return w.getDomainValue(t)},S=function(t){return w.getRangeValue(t)},M=nf.flipDomainAndRangeBasedOnOrientation(O,S,x),A=M[0],P=M[1];if(x===T.VERTICAL){var C=A(r)+(d?l.step()/2:0);this.threshold.transition(this.services.transitions.getTransition("threshold-update",t)).attr("transform","translate("+C+", "+b+")"),c.attr("y2",_-b),u.attr("width",_-b).classed("rotate",!0)}else{C=P(r)+(d?l.step()/2:0);this.threshold.transition(this.services.transitions.getTransition("threshold-update",t)).attr("transform","translate("+g+", "+C+")"),c.attr("x2",y-g),u.attr("width",y-g)}var k=this;this.services.events.addEventListener(H.Threshold.SHOW,(function(t){var n=t.detail.hoveredElement.node();n===k.threshold&&(e.setThresholdLabelPosition(),e.label.classed("hidden",!1))})),this.services.events.addEventListener(H.Threshold.HIDE,(function(t){e.label.classed("hidden",!0)})),this.appendThresholdLabel(),this.addEventListeners()},e.prototype.getFormattedValue=function(){var t=this.configs,e=t.value,n=t.axisPosition,r=this.model.getOptions(),i=this.services.cartesianScales.getScaleTypeByPosition(n);if(i===E.TIME){var o=[x.LEFT,x.RIGHT].includes(n),a=this.services.cartesianScales.getMainXScale(),s=this.services.cartesianScales.getMainYScale(),u=o?s:a,c=nf.getProperty(r,"timeScale"),l=oM(u.ticks());return eM(e,0,l,c)}return e.toLocaleString("en")},e.prototype.appendThresholdLabel=function(){var t=this.configs,e=t.value,n=t.valueFormatter,r=t.fillColor,i=t.label,o=void 0===i?"Threshold":i,a=iw(this.services.domUtils.getHolder()),s=n?n(e):this.getFormattedValue();this.label=lw.appendOrSelect(a,"div."+this.thresholdClass+"--label."+this.thresholdIdentifierClass),this.label.html(o+": "+s).classed("hidden",!0).style("background-color",r)},e.prototype.setThresholdLabelPosition=function(){var t=this.services.domUtils.getHolder(),e=this.label.node(),n=xE(t),r=this.positionService.findBestPlacementAt({left:n[0],top:n[1]},e,[dE.RIGHT,dE.LEFT,dE.TOP,dE.BOTTOM],(function(){return{width:t.offsetWidth,height:t.offsetHeight}})),i=this.positionService.findPositionAt({left:n[0],top:n[1]},e,r);this.positionService.setElement(e,i)},e.prototype.addEventListeners=function(){var t=this;lw.appendOrSelect(this.threshold,"rect").on("mouseover mousemove",(function(){t.threshold.classed("active",!0),t.services.events.dispatchEvent(H.Threshold.SHOW,{hoveredElement:iw(t.threshold)})})).on("mouseout",(function(){t.threshold.classed("active",!1),t.services.events.dispatchEvent(H.Threshold.HIDE,{hoveredElement:iw(t.threshold)})}))},e}(yE),hM=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)}}(),fM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="title",e}return hM(e,t),e.prototype.truncateTitle=function(){var t=lw.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttr:!0}).width,e=lw.appendOrSelect(this.parent,"text.title");if(!(t<=0)&&e.node().getComputedTextLength()>t){e.append("tspan").text("...");var n=lw.appendOrSelect(e,"tspan").node().getComputedTextLength(),r=Math.floor(t-n),i=this.model.getOptions().title,o=this.getSubstringIndex(e.node(),0,i.length-1,r);e.html(i.substring(0,o-1)).append("tspan").text("...");var a=this;e.on("mouseenter",(function(){a.services.events.dispatchEvent(H.Tooltip.SHOW,{hoveredElement:e,type:M.TITLE})})).on("mouseout",(function(){a.services.events.dispatchEvent(H.Tooltip.HIDE,{hoveredElement:e})}))}},e.prototype.render=function(){var t=this.getContainerSVG(),e=lw.appendOrSelect(t,"text.title");e.attr("x",0).attr("y",20).html(this.model.getOptions().title),this.truncateTitle()},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}(yE),pM=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)}}(),dM=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="tooltip",i.positionService=new SE,i.init(),i}return pM(e,t),e.prototype.init=function(){var t=this,e=iw(this.services.domUtils.getHolder()),n=nf.getProperty(this.model.getOptions(),"style","prefix");this.tooltip=lw.appendOrSelect(e,"div."+sw.prefix+"--"+n+"--tooltip");var r=lw.appendOrSelect(this.tooltip,"div.content-box");this.tooltip.style("max-width",null),this.services.events.addEventListener(H.Tooltip.SHOW,(function(i){if(i.detail.type===M.DATAPOINT&&nf.getProperty(t.model.getOptions(),"tooltip","datapoint","enabled")||i.detail.type===M.GRIDLINE&&nf.getProperty(t.model.getOptions(),"tooltip","gridline","enabled")||i.detail.type===M.LEGEND||i.detail.type===M.AXISLABEL){var o=iw(Fb.target).datum(),a=void 0;i.detail.multidata?(o=i.detail.multidata,a=t.getMultilineTooltipHTML(o,i.detail.type)):a=t.getTooltipHTML(o,i.detail.type),nf.getProperty(t.model.getOptions(),"tooltip","customHTML")?r.html(t.model.getOptions().tooltip.customHTML(o,a)):r.html(a),t.positionTooltip()}else if(i.detail.type===M.TITLE){var s=lw.appendOrSelect(e,"svg."+sw.prefix+"--"+n+"--chart-svg"),u=lw.getSVGElementSize(s).width*nf.getProperty(t.model.getOptions(),"tooltip","title","width");t.tooltip.style("max-width",u),r.html(t.getTooltipHTML(i.detail.hoveredElement,M.TITLE));var c=t.getTooltipPosition(i.detail.hoveredElement.node(),i.detail.type);t.positionTooltip(c)}t.tooltip.classed("hidden",!1)})),this.services.events.addEventListener(H.Tooltip.HIDE,(function(){t.tooltip.classed("hidden",!0)}))},e.prototype.getTooltipHTML=function(t,e){if(e===M.TITLE){var n=this.model.getOptions().title;return'<div class="title-tooltip"><text>'+n+"</text></div>"}if(e===M.LEGEND)return'<div class="legend-tooltip"><p class="label">'+t.name+"</p></div>";var r=nf.getProperty(t,"data")?t.data:t,i=this.model.getOptions().data.groupMapsTo,o=this.services.cartesianScales.getRangeIdentifier(),a=nf.getProperty(this.model.getOptions(),"tooltip","valueFormatter")?this.model.getOptions().tooltip.valueFormatter(r[o]):r[o].toLocaleString("en"),s=r[i];return'<div class="datapoint-tooltip">\n\t\t\t\t\t<p class="label">'+s+'</p>\n\t\t\t\t\t<p class="value">'+a+"</p>\n\t\t\t\t</div>"},e.prototype.getMultilineTooltipHTML=function(t,e){var n=this;t.sort((function(t,e){return e.value-t.value}));this.services.cartesianScales.getDomainScale().scaleType;return"<ul class='multi-tooltip'>"+t.map((function(t){var e=n.model.getOptions().data.groupMapsTo,r=n.services.cartesianScales.getRangeIdentifier(),i=nf.getProperty(n.model.getOptions(),"tooltip","valueFormatter"),o=i?i(t[r]):t[r].toLocaleString("en"),a=n.model.getStrokeColor(t[e]);return'\n\t\t\t\t<li>\n\t\t\t\t\t<div class="datapoint-tooltip">\n\t\t\t\t\t\t<a style="background-color:'+a+'" class="tooltip-color"></a>\n\t\t\t\t\t\t<p class="label">'+t[e]+'</p>\n\t\t\t\t\t\t<p class="value">'+o+"</p>\n\t\t\t\t\t</div>\n\t\t\t\t</li>"})).join("")+"</ul>"},e.prototype.render=function(){this.tooltip.classed("hidden",!0)},e.prototype.getTooltipPosition=function(t,e){var n=iw(this.services.domUtils.getHolder()).node().getBoundingClientRect(),r=t.getBoundingClientRect(),i=this.model.getOptions().tooltip.title.verticalOffset,o={left:r.left-n.left+r.width/2,top:r.top-n.top-i};return{placement:S.BOTTOM,position:o}},e.prototype.positionTooltip=function(t){var e,n=this.services.domUtils.getHolder(),r=this.tooltip.node(),i=xE(n);if(t){var o=t.placement===S.TOP?dE.TOP:dE.BOTTOM;e=this.positionService.findPositionAt(t.position,r,o)}else{var a=this.positionService.findBestPlacementAt({left:i[0],top:i[1]},r,[dE.RIGHT,dE.LEFT,dE.TOP,dE.BOTTOM],(function(){return{width:n.offsetWidth,height:n.offsetHeight}})),s=this.model.getOptions().tooltip.datapoint.horizontalOffset;a===dE.LEFT&&(s*=-1),e=this.positionService.findPositionAt({left:i[0]+s,top:i[1]},r,a)}this.positionService.setElement(r,e)},e}(yE),vM=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(){return null!==t&&t.apply(this,arguments)||this}return vM(e,t),e.prototype.init=function(){var e=this,n=iw(this.services.domUtils.getHolder()),r=nf.getProperty(this.model.getOptions(),"style","prefix");this.tooltip=lw.appendOrSelect(n,"div."+sw.prefix+"--"+r+"--tooltip");var i=lw.appendOrSelect(this.tooltip,"div.content-box");this.tooltip.style("max-width",null),this.services.events.addEventListener(H.Tooltip.SHOW,(function(o){if(o.detail.type===M.DATAPOINT&&nf.getProperty(e.model.getOptions(),"tooltip","datapoint","enabled")||o.detail.type===M.GRIDLINE&&nf.getProperty(e.model.getOptions(),"tooltip","gridline","enabled")||o.detail.type===M.LEGEND||o.detail.type===M.AXISLABEL){var a=o.detail.hoveredElement.datum(),s=o.detail.hoveredElement.node(),u=void 0;if(o.detail.multidata?(a=o.detail.multidata,u=e.getMultilineTooltipHTML(a)):(a=o.detail.data?o.detail.data:o.detail.hoveredElement.datum(),u=e.getTooltipHTML(a,o.detail.type)),nf.getProperty(e.model.getOptions(),"tooltip","customHTML")?i.html(e.model.getOptions().tooltip.customHTML(a,u)):i.html(u),o.detail.type===M.LEGEND||o.detail.type===M.AXISLABEL)e.positionTooltip();else{var c=e.getTooltipPosition(s,a);e.positionTooltip(o.detail.multidata?void 0:c)}}else if(o.detail.type===M.TITLE){var l=lw.appendOrSelect(n,"svg."+sw.prefix+"--"+r+"--chart-svg"),h=lw.getSVGElementSize(l).width*nf.getProperty(e.model.getOptions(),"tooltip","title","width");e.tooltip.style("max-width",h),i.html(t.prototype.getTooltipHTML.call(e,o.detail.hoveredElement,M.TITLE));c=t.prototype.getTooltipPosition.call(e,o.detail.hoveredElement.node(),o.detail.type);e.positionTooltip(c)}e.tooltip.classed("hidden",!1)})),this.services.events.addEventListener(H.Tooltip.HIDE,(function(){e.tooltip.classed("hidden",!0)}))},e.prototype.getTooltipPosition=function(t,e){void 0===e&&(e=iw(t).datum());var n=iw(this.services.domUtils.getHolder()).node().getBoundingClientRect(),r=t.getBoundingClientRect(),i=this.model.getOptions().tooltip.datapoint.verticalOffset;if(e.value<=0){var o={left:r.left-n.left+r.width/2,top:r.bottom-n.top+i};return{placement:S.BOTTOM,position:o}}o={left:r.left-n.left+r.width/2,top:r.top-n.top-i};return{placement:S.TOP,position:o}},e.prototype.getTooltipHTML=function(t,e){if(e===M.LEGEND)return'<div class="legend-tooltip"><p class="label">'+t.name+"</p></div>";if(e===M.AXISLABEL)return'<div class="axis-tooltip"><p class="label">'+t+"</p></div>";var n=nf.getProperty(this.model.getOptions(),"tooltip","valueFormatter")?this.model.getOptions().tooltip.valueFormatter(t.value):t.value.toLocaleString("en");return'<div class="datapoint-tooltip"><p class="value">'+n+"</p></div>"},e.prototype.getMultilineTooltipHTML=function(t){var e=this,n=t;n.reverse(),this.services.cartesianScales.getOrientation()===T.VERTICAL&&n.reverse();var r=n.reduce((function(t,e){return t+e.value}),0);return r=nf.getProperty(this.model.getOptions(),"tooltip","valueFormatter")?this.model.getOptions().tooltip.valueFormatter(r):r.toLocaleString("en"),"<ul class='multi-tooltip'>"+n.map((function(t){var n=nf.getProperty(e.model.getOptions(),"tooltip","valueFormatter")?e.model.getOptions().tooltip.valueFormatter(t.value):t.value.toLocaleString("en"),r=e.model.getStrokeColor(t.datasetLabel,t.label);return'\n\t\t\t\t<li>\n\t\t\t\t\t<div class="datapoint-tooltip">\n\t\t\t\t\t\t<a style="background-color:'+r+'" class="tooltip-color"></a>\n\t\t\t\t\t\t<p class="label">'+t.datasetLabel+'</p>\n\t\t\t\t\t\t<p class="value">'+n+"</p>\n\t\t\t\t\t</div>\n\t\t\t\t</li>"})).join("")+"<li>\n\t\t\t\t\t<div class='total-val'>\n\t\t\t\t\t\t<p class='label'>Total</p>\n\t\t\t\t\t\t<p class='value'>"+r+"</p>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t</ul>"},e}(dM),yM=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)}}(),mM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return yM(e,t),e.prototype.getTooltipHTML=function(t,e){if(e===M.TITLE){var n=this.model.getOptions().title;return'<div class="title-tooltip"><text>'+n+"</text></div>"}if(e===M.LEGEND)return'<div class="legend-tooltip"><p class="label">'+t.name+"</p></div>";var r=t.data,i=this.model.getOptions().data.groupMapsTo,o=nf.getProperty(this.model.getOptions(),"tooltip","valueFormatter")?this.model.getOptions().tooltip.valueFormatter(r.value):r.value.toLocaleString("en"),a=r[i];return'<div class="datapoint-tooltip">\n\t\t\t\t<p class="label">'+a+'</p>\n\t\t\t\t<p class="value">'+o+"</p>\n\t\t\t</div>"},e}(dM),_M=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)}}(),bM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _M(e,t),e.prototype.getTooltipHTML=function(e,n){if(n===M.TITLE)return t.prototype.getTooltipHTML.call(this,e,n);if(n===M.LEGEND)return'<div class="legend-tooltip"><p class="label">'+e.name+"</p></div>";if(n===M.AXISLABEL)return'<div class="axis-tooltip"><p class="label">'+e+"</p></div>";var r=this.model.getOptions().data.groupMapsTo,i=this.services.cartesianScales.getRangeIdentifier(),o=nf.getProperty(this.model.getOptions(),"tooltip","valueFormatter"),a=o?o(e[i]):e[i].toLocaleString("en"),s=this.model.getStrokeColor(e[r]);return'\n\t\t\t<div class="datapoint-tooltip">\n\t\t\t\t<a style="background-color:'+s+'" class="tooltip-color"></a>\n\t\t\t\t<p class="label">'+e[r]+'</p>\n\t\t\t\t<p class="value">'+a+"</p>\n\t\t\t</div>"},e}(dM),wM=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)}}(),xM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wM(e,t),e.prototype.getMultilineTooltipHTML=function(t,e){var n=this,r=this.model.getOptions(),i=r.data.groupMapsTo,o=r.radar.axes,a=(o.angle,o.value);return t.sort((function(t,e){return e[a]-t[a]})),"<ul class='multi-tooltip'>"+t.map((function(t){var e=nf.getProperty(r,"tooltip","valueFormatter"),o=e?e(t[a]):t[a],s=n.model.getStrokeColor(t[i]);return'\n\t\t\t\t<li>\n\t\t\t\t\t<div class="datapoint-tooltip">\n\t\t\t\t\t\t<a style="background-color:'+s+'" class="tooltip-color"></a>\n\t\t\t\t\t\t<p class="label">'+t[i]+'</p>\n\t\t\t\t\t\t<p class="value">'+o+"</p>\n\t\t\t\t\t</div>\n\t\t\t\t</li>"})).join("")+"</ul>"},e}(dM),OM=Math.PI,TM=2*OM,EM=1e-6,SM=TM-EM;function MM(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function AM(){return new MM}MM.prototype=AM.prototype={constructor:MM,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>EM)if(Math.abs(l*s-u*c)>EM&&i){var f=n-o,p=r-a,d=s*s+u*u,v=f*f+p*p,g=Math.sqrt(d),y=Math.sqrt(h),m=i*Math.tan((OM-Math.acos((d+h-v)/(2*g*y)))/2),_=m/y,b=m/g;Math.abs(_-1)>EM&&(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)>EM||Math.abs(this._y1-c)>EM)&&(this._+="L"+u+","+c),n&&(h<0&&(h=h%TM+TM),h>SM?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):h>EM&&(this._+="A"+n+","+n+",0,"+ +(h>=OM)+","+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 PM=AM;function CM(t){return t[0]}function kM(t){return t[1]}var LM=function(){var t=CM,e=kM,n=s_(!0),r=null,i=hT,o=null;function a(a){var s,u,c,l=a.length,h=!1;for(null==r&&(o=i(c=PM())),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:s_(+e),a):t},a.y=function(t){return arguments.length?(e="function"===typeof t?t:s_(+t),a):e},a.defined=function(t){return arguments.length?(n="function"===typeof t?t:s_(!!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},DM=function(){var t=CM,e=null,n=s_(0),r=kM,i=s_(!0),o=null,a=hT,s=null;function u(u){var c,l,h,f,p,d=u.length,v=!1,g=new Array(d),y=new Array(d);for(null==o&&(s=a(p=PM())),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],y[h]);s.lineEnd(),s.areaEnd()}v&&(g[c]=+t(f,c,u),y[c]=+n(f,c,u),s.point(e?+e(f,c,u):g[c],r?+r(f,c,u):y[c]))}if(p)return s=null,p+""||null}function c(){return LM().defined(i).curve(a).context(o)}return u.x=function(n){return arguments.length?(t="function"===typeof n?n:s_(+n),e=null,u):t},u.x0=function(e){return arguments.length?(t="function"===typeof e?e:s_(+e),u):t},u.x1=function(t){return arguments.length?(e=null==t?null:"function"===typeof t?t:s_(+t),u):e},u.y=function(t){return arguments.length?(n="function"===typeof t?t:s_(+t),r=null,u):n},u.y0=function(t){return arguments.length?(n="function"===typeof t?t:s_(+t),u):n},u.y1=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:s_(+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:s_(!!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},RM=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)}}(),IM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",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"]?Lf.opacity.unselected:Lf.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-mouseout-area")).attr("opacity",Lf.opacity.selected)},e}return RM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(H.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(H.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG(),r=this.services.cartesianScales,i=r.getOrientation(),o=DM().curve(this.services.curves.getD3Curve());i===T.VERTICAL?o.x((function(t,e){return r.getDomainValue(t,e)})).y0(r.getRangeValue(0)).y1((function(t,e){return r.getRangeValue(t,e)})):o.x0(r.getRangeValue(0)).x1((function(t,e){return r.getRangeValue(t,e)})).y((function(t,e){return r.getDomainValue(t,e)}));var a=this.model.getGroupedData(),s=n.selectAll("path.area").data(a,(function(t){return t.name}));s.exit().attr("opacity",0).remove();var u=s.enter().append("path").attr("opacity",0);u.merge(s).attr("fill",(function(t){return e.model.getFillColor(t.name)})).transition(this.services.transitions.getTransition("area-update-enter",t)).attr("opacity",Lf.opacity.selected).attr("class","area").attr("d",(function(t){var e=t.data;return o(e)}))},e.prototype.destroy=function(){this.parent.selectAll("path.area").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(H.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(H.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(yE),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)}}(),NM=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.model.getOptions(),i=r.data.groupMapsTo;e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-hover-area")).attr("opacity",(function(t){return t[0][i]!==n.datum().name?Lf.opacity.unselected:Lf.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.area").transition(e.services.transitions.getTransition("legend-mouseout-area")).attr("opacity",Lf.opacity.selected)},e}return jM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(H.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(H.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){void 0===t&&(t=!0);var e=this.getContainerSVG(),n=this,r=this.model.getOptions(),i=r.data.groupMapsTo,a=this.services.cartesianScales.getMainXScale(),s=this.services.cartesianScales.getMainYScale(),u=this.services.cartesianScales.getDomainAxisPosition(),c=this.services.cartesianScales.getScaleTypeByPosition(u),l=c===E.TIME;if(l){var h=Object.keys(r.axes).some((function(t){return r.axes[t].percentage})),f=this.model.getStackedData({percentage:h}),p=e.selectAll("path.area").data(f,(function(t){return t[0][i]}));this.areaGenerator=DM().x((function(t){return a(new Date(t.data.sharedStackKey))})).y0((function(t){return s(t[0])})).y1((function(t){return s(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(f,(function(t){return t[0][i]})).attr("fill",(function(t){return n.model.getFillColor(t[0][i])})).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","area").transition(this.services.transitions.getTransition("area-update-enter",t)).attr("opacity",Lf.opacity.selected).attr("class","area").attr("d",this.areaGenerator)}},e.prototype.destroy=function(){this.parent.selectAll("path.area").on("mouseover",null).on("mousemove",null).on("mouseout",null)},e}(yE),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(t){function e(){return null!==t&&t.apply(this,arguments)||this}return UM(e,t),e.prototype.getBarWidth=function(t){var e=this.model.getOptions(),n=this.services.cartesianScales.getMainXScale();return n.step?Math.min(e.bars.maxWidth,n.step()/2):Math.min(e.bars.maxWidth,5/n.ticks().length*e.bars.maxWidth)},e}(yE),VM=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(){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.model.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 VM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(H.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(H.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.model.getOptions(),r=n.data.groupMapsTo,i=this.getContainerSVG(),a=i.selectAll("path.bar").data(this.model.getDisplayData(),(function(t){return t[r]}));a.exit().attr("opacity",0).remove();var s=a.enter().append("path").attr("opacity",0);s.merge(a).classed("bar",!0).attr("width",this.getBarWidth.bind(this)).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("fill",(function(t){return e.model.getFillColor(t[r])})).attr("d",(function(t,n){var r=e.getBarWidth(),i=e.services.cartesianScales.getDomainValue(t,n)-r/2,o=i+r,a=e.services.cartesianScales.getRangeValue(0),s=e.services.cartesianScales.getRangeValue(t,n);return nf.generateSVGPathString({x0:i,x1:o,y0:a,y1:s},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this.model.getOptions(),e=t.data.groupMapsTo,n=this;this.parent.selectAll("path.bar").on("mouseover",(function(t){var r=iw(this);r.classed("hovered",!0),r.transition(n.services.transitions.getTransition("graph_element_mouseover_fill_update")).attr("fill",(function(t){return cv(n.model.getFillColor(t[e])).darker(.7).toString()})),n.services.events.dispatchEvent(H.Bar.BAR_MOUSEOVER,{element:r,datum:t}),n.services.events.dispatchEvent(H.Tooltip.SHOW,{hoveredElement:r,type:M.DATAPOINT})})).on("mousemove",(function(t){n.services.events.dispatchEvent(H.Bar.BAR_MOUSEMOVE,{element:iw(this),datum:t})})).on("click",(function(t){n.services.events.dispatchEvent(H.Bar.BAR_CLICK,{element:iw(this),datum:t})})).on("mouseout",(function(t){var r=iw(this);r.classed("hovered",!1),r.transition(n.services.transitions.getTransition("graph_element_mouseout_fill_update")).attr("fill",(function(t){return n.model.getFillColor(t[e])})),n.services.events.dispatchEvent(H.Bar.BAR_MOUSEOUT,{element:r,datum:t}),n.services.events.dispatchEvent(H.Tooltip.HIDE,{hoveredElement:r})}))},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(H.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(H.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(HM),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)}}(),BM=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.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 FM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(H.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(H.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.model.getDisplayData(),r=this.model.getOptions(),i=r.data.groupMapsTo,a=this.services.cartesianScales.getDomainIdentifier();this.setGroupScale();var s=this.getContainerSVG(),u=Dd(n,(function(t){return t[a]})).keys(),c=s.selectAll("g.bars").data(u,(function(t){return t}));c.exit().attr("opacity",0).remove();var l=c.enter().append("g").classed("bars",!0).attr("role",o.GROUP).attr("aria-labelledby",(function(t){return t})),h=l.merge(c).attr("transform",(function(t,n){var r=e.services.cartesianScales.getDomainValue(t,n),i=r-e.getGroupWidth()/2;return e.services.cartesianScales.getOrientation()===T.VERTICAL?"translate("+i+", 0)":"translate(0, "+i+")"})).selectAll("path.bar").data((function(t){return e.getDataCorrespondingToLabel(t)}));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("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.getRangeValue(0),u=e.services.cartesianScales.getRangeValue(t.value);return nf.generateSVGPathString({x0:o,x1:a,y0:s,y1:u},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this,e=this.model.getOptions(),n=e.data.groupMapsTo;this.parent.selectAll("path.bar").on("mouseover",(function(e){var r=iw(this);r.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")).attr("fill",(function(e){return cv(t.model.getFillColor(e[n])).darker(.7).toString()})),t.services.events.dispatchEvent(H.Bar.BAR_MOUSEOVER,{element:r,datum:e}),t.services.events.dispatchEvent(H.Tooltip.SHOW,{hoveredElement:r,type:M.DATAPOINT})})).on("mousemove",(function(e){t.services.events.dispatchEvent(H.Bar.BAR_MOUSEMOVE,{element:iw(this),datum:e})})).on("click",(function(e){t.services.events.dispatchEvent(H.Bar.BAR_CLICK,{element:iw(this),datum:e})})).on("mouseout",(function(e){var n=iw(this);n.classed("hovered",!1);var r=t.model.getOptions().data.groupMapsTo;n.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")).attr("fill",(function(e){return t.model.getFillColor(e[r])})),t.services.events.dispatchEvent(H.Bar.BAR_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(H.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(H.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(H.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.getDataCorrespondingToLabel=function(t){var e=this.model.getDisplayData(),n=this.services.cartesianScales.getDomainIdentifier();return e.filter((function(e){return e[n]===t}))},e.prototype.getGroupWidth=function(){var t=this.model.getActiveDataGroupNames().length,e=this.getTotalGroupPadding();return this.getBarWidth()*t+e},e.prototype.getTotalGroupPadding=function(){var t=this.model.getActiveDataGroupNames().length;if(1===t)return 0;var e=this.services.cartesianScales.getDomainScale(),n=Math.min(5,e.step()/70*5);return n*(t-1)},e.prototype.getBarWidth=function(){var t=this.model.getOptions(),e=nf.getProperty(t,"bars","width"),n=nf.getProperty(t,"bars","maxWidth");if(null!==e){if(null===n)return e;if(e<=n)return e}var r=this.model.getActiveDataGroupNames().length,i=this.getTotalGroupPadding(),o=this.services.cartesianScales.getDomainScale();return Math.min(n,(o.step()-i)/r)},e.prototype.setGroupScale=function(){this.groupScale=Bd().domain(this.model.getActiveDataGroupNames()).rangeRound([0,this.getGroupWidth()])},e}(HM),zM=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(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stacked-bar",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t.datasetLabel!==n.datum()["key"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.bar").transition(e.services.transitions.getTransition("legend-mouseout-bar")).attr("opacity",1)},e}return zM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(H.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(H.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getContainerSVG(),r=this.model.getDisplayData(),i=this.model.getOptions(),a=i.data.groupMapsTo,s=this.services.cartesianScales.getDomainIdentifier(),u=Dd(r,(function(t){return t[s]})).keys(),c=this.model.getStackedData(),l=n.selectAll("g.bars").data(c,(function(t){return t.key}));l.exit().attr("opacity",0).remove(),l.enter().append("g").classed("bars",!0).attr("role",o.GROUP);var h=n.selectAll("g.bars").selectAll("path.bar").data((function(t){return t}));h.exit().remove(),h.enter().append("path").merge(h).classed("bar",!0).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("fill",(function(t){return e.model.getFillColor(t[a])})).attr("d",(function(t,n){var r=u[n],o=e.getBarWidth(),a=e.services.cartesianScales.getDomainValue(r,n)-o/2,s=a+o,c=e.services.cartesianScales.getRangeValue(t[0],n),l=e.services.cartesianScales.getRangeValue(t[1],n);return Math.abs(l-c)>0&&Math.abs(l-c)>i.bars.dividerSize&&(e.services.cartesianScales.getOrientation()===T.VERTICAL?l+=1:l-=1),nf.generateSVGPathString({x0:a,x1:s,y0:c,y1:l},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this.model.getOptions(),e=t.data.groupMapsTo,n=this;this.parent.selectAll("path.bar").on("mouseover",(function(t){var r=iw(this);r.transition(n.services.transitions.getTransition("graph_element_mouseover_fill_update")).attr("fill",(function(t){return cv(n.model.getFillColor(t[e])).darker(.7).toString()})),n.services.events.dispatchEvent(H.Bar.BAR_MOUSEOVER,{element:r,datum:t})})).on("mousemove",(function(t){var e,r=n.model.getDisplayData(),i=iw(this),o=n.services.cartesianScales.getDomainIdentifier(),a=n.services.cartesianScales.getRangeIdentifier(),s=n.model.getOptions().data.groupMapsTo,u=r.find((function(e){return e[a]===t.data[t.group]&&e[o].toString()===t.data.sharedStackKey&&e[s]===t.group}));void 0===u&&(e={},e[o]=t.data.sharedStackKey,e[a]=t.data[t.group],e[s]=t.group,u=e),n.services.events.dispatchEvent(H.Tooltip.SHOW,{hoveredElement:i,data:u,type:M.DATAPOINT})})).on("click",(function(t){n.services.events.dispatchEvent(H.Bar.BAR_CLICK,{element:iw(this),datum:t})})).on("mouseout",(function(t){var r=iw(this);r.classed("hovered",!1),r.transition(n.services.transitions.getTransition("graph_element_mouseout_fill_update")).attr("fill",(function(t){return n.model.getFillColor(t[e])})),n.services.events.dispatchEvent(H.Bar.BAR_MOUSEOUT,{element:r,datum:t}),n.services.events.dispatchEvent(H.Tooltip.HIDE,{hoveredElement:r})}))},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(H.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(H.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(HM),YM=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)}}(),qM=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.model.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 YM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(H.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(H.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut);var e=this.configs.fadeInOnChartHolderMouseover;e&&(t.addEventListener(H.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.addEventListener(H.Chart.MOUSEOUT,this.handleChartHolderOnMouseOut))},e.prototype.render=function(t){var e,n=this.getContainerSVG(),r=this.model.getOptions(),i=r.data.groupMapsTo,o=this.services.cartesianScales.getDomainIdentifier(),a=this.services.cartesianScales.getRangeIdentifier(),s=this.configs.stacked;if(s){var u=Object.keys(r.axes).some((function(t){return r.axes[t].percentage}));e=this.model.getStackedData({percentage:u})}else e=this.model.getDisplayData().filter((function(t){return void 0!==t[a]&&null!==t[a]}));var c=n.selectAll("circle.dot").data(e,(function(t){return t[i]+"-"+t[o]}));c.exit().attr("opacity",0).remove();var l=c.enter().append("circle").classed("dot",!0).attr("opacity",0),h=l.merge(c);this.styleCircles(h,t),this.addEventListeners()},e.prototype.isDatapointThresholdAnomaly=function(t,e){var n=this.configs.handleThresholds;if(!n)return!1;var r=this.services.cartesianScales,i=r.getOrientation(),o=nf.flipDomainAndRangeBasedOnOrientation(this.services.cartesianScales.getHighestDomainThreshold(),this.services.cartesianScales.getHighestRangeThreshold(),i),a=o[0],s=o[1],u=nf.flipDomainAndRangeBasedOnOrientation((function(t,e){return r.getDomainValue(t,e)}),(function(t,e){return r.getRangeValue(t,e)}),i),c=u[0],l=u[1],h=c(t,e),f=l(t,e);return s&&a?f<=s.scaleValue&&h>=a.scaleValue:s?f<=s.scaleValue:a?h>=a.scaleValue:void 0},e.prototype.styleCircles=function(t,e){var n=this,r=this.model.getOptions(),i=r.points.filled,a=this.services,s=a.cartesianScales,u=a.transitions,c=r.data.groupMapsTo,l=s.getDomainIdentifier(),h=s.getRangeIdentifier(),f=function(t,e){return s.getDomainValue(t,e)},p=function(t,e){return s.getRangeValue(t,e)},d=nf.flipDomainAndRangeBasedOnOrientation(f,p,s.getOrientation()),v=d[0],g=d[1],y=this.configs.fadeInOnChartHolderMouseover;t.raise().classed("dot",!0).classed("threshold-anomaly",(function(t,e){return n.isDatapointThresholdAnomaly(t,e)})).classed("filled",(function(t){return n.model.getIsFilled(t[c],t[l],t,i)})).classed("unfilled",(function(t){return!n.model.getIsFilled(t[c],t[l],t,i)})).transition(u.getTransition("scatter-update-enter",e)).attr("cx",v).attr("cy",g).attr("r",r.points.radius).attr("fill",(function(t){if(n.model.getIsFilled(t[c],t[l],t,i))return n.model.getFillColor(t[c],t[l],t)})).attr("fill-opacity",i?.2:1).attr("stroke",(function(t){return n.model.getStrokeColor(t[c],t[l],t)})).attr("opacity",y?0:1).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","point").attr("aria-label",(function(t){return t[h]})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this,e=this.model.getOptions().data.groupMapsTo,n=this.services.cartesianScales.getDomainIdentifier();this.parent.selectAll("circle").on("mouseover mousemove",(function(r){var i=iw(this);i.classed("hovered",!0).style("fill",(function(r){return t.model.getFillColor(r[e],r[n],r)}));var o=t.services.cartesianScales.getDomainValue(r),a=t.services.cartesianScales.getRangeValue(r),s=t.model.getDisplayData().filter((function(e){return o===t.services.cartesianScales.getDomainValue(e)&&a===t.services.cartesianScales.getRangeValue(e)}));t.services.events.dispatchEvent(H.Tooltip.SHOW,{hoveredElement:i,multidata:s.length>1?s:null,type:M.DATAPOINT});var u="mouseover"===Fb.type?H.Scatter.SCATTER_MOUSEOVER:H.Scatter.SCATTER_MOUSEMOVE;t.services.events.dispatchEvent(u,{element:i,datum:r})})).on("click",(function(e){t.services.events.dispatchEvent(H.Scatter.SCATTER_CLICK,{element:iw(this),datum:e})})).on("mouseout",(function(e){var n=iw(this);n.classed("hovered",!1),t.configs.filled||n.style("fill",null),t.services.events.dispatchEvent(H.Scatter.SCATTER_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(H.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.destroy=function(){this.parent.selectAll("circle").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(H.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(H.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),t.removeEventListener(H.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.removeEventListener(H.Chart.MOUSEOUT,this.handleChartHolderOnMouseOut)},e}(yE),XM=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)}}(),$M=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bubble",e}return XM(e,t),e.prototype.getRadiusScale=function(t){var e=this.model.getOptions(),n=e.bubble.radiusMapsTo,r=t.data(),i=r.map((function(t){return t[n]})).filter((function(t){return t})),o=lw.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttr:!0}),a=i.length>0,s=a?yd(i):[1,1];return Ag().domain(s).range(a?e.bubble.radiusRange(o,r):[4,4])},e.prototype.styleCircles=function(t,e){var n=this,r=this.model.getOptions(),i=r.bubble.radiusMapsTo,a=this.getRadiusScale(t),s=r.data.groupMapsTo,u=this.services.cartesianScales.getDomainIdentifier();t.raise().classed("dot",!0).attr("role",o.GRAPHICS_SYMBOL).attr("cx",(function(t,e){return n.services.cartesianScales.getDomainValue(t,e)})).transition(this.services.transitions.getTransition("bubble-update-enter",e)).attr("cy",(function(t,e){return n.services.cartesianScales.getRangeValue(t,e)})).attr("r",(function(t){return a(t[i]||1)})).attr("fill",(function(t){return n.model.getFillColor(t[s],t[u],t)})).attr("fill-opacity",r.bubble.fillOpacity).attr("stroke",(function(t){return n.model.getStrokeColor(t[s],t[u],t)})).attr("opacity",1)},e}(qM),ZM=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)}}(),KM=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"]?kf.opacity.unselected:kf.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.line").transition(e.services.transitions.getTransition("legend-mouseout-line")).attr("opacity",kf.opacity.selected)},e}return ZM(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(H.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(H.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG(),r=this.services,i=r.cartesianScales,a=r.curves,s=function(t,e){return i.getDomainValue(t,e)},u=function(t,e){return i.getRangeValue(t,e)},c=nf.flipDomainAndRangeBasedOnOrientation(s,u,i.getOrientation()),l=c[0],h=c[1],f=this.model.getOptions(),p=LM().x(l).y(h).curve(a.getD3Curve()).defined((function(t,e){var n=i.getRangeIdentifier(),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,y=this.model.getStackedData({percentage:v}),m=this.services.cartesianScales.getDomainIdentifier(),_=this.services.cartesianScales.getRangeIdentifier();d=y.map((function(t){return{name:t[0][g],data:t.map((function(t){var e;return e={},e[m]=t.data.sharedStackKey,e[g]=t[g],e[_]=t[1],e})),hidden:!nf.some(t,(function(t){return t[0]!==t[1]}))}}))}else d=this.model.getGroupedData();var b=n.selectAll("path.line").data(d,(function(t){return t.name}));b.exit().attr("opacity",0).remove();var w=b.enter().append("path").classed("line",!0).attr("opacity",0);w.merge(b).data(d,(function(t){return t.name})).attr("stroke",(function(t,n){return e.model.getStrokeColor(t.name)})).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","line").attr("aria-label",(function(t){var n=t.data,r=e.services.cartesianScales.getRangeIdentifier();return n.map((function(t){return t[r]})).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(H.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(H.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(yE),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)}}(),JM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="scatter-stacked",e}return QM(e,t),e.prototype.render=function(t){var e=this.getContainerSVG(),n=this.model.getOptions(),r=n.data.groupMapsTo,i=this.services.cartesianScales.getDomainIdentifier(),a=this.services.cartesianScales.getRangeIdentifier(),s=Object.keys(n.axes).some((function(t){return n.axes[t].percentage})),u=this.model.getStackedData({percentage:s}),c=e.selectAll("g.dots").data(u,(function(t){return t[0][r]}));c.exit().attr("opacity",0).remove();var l=c.enter().append("g").classed("dots",!0).attr("role",o.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 e,n=t[r];return e={},e[r]=n,e[i]=t["data"]["sharedStackKey"],e[a]=t[1],e}));this.styleCircles(p,t),this.addEventListeners()},e}(qM);function tA(t){return t.innerRadius}function eA(t){return t.outerRadius}function nA(t){return t.startAngle}function rA(t){return t.endAngle}function iA(t){return t&&t.padAngle}function oA(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<UT))return f=(l*(e-o)-h*(t-i))/f,[t+f*u,e+f*c]}function aA(t,e,n,r,i,o,a){var s=t-n,u=e-r,c=(a?o:-o)/NT(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,y=(p+v)/2,m=d-f,_=v-p,b=m*m+_*_,w=i-o,x=f*v-d*p,O=(_<0?-1:1)*NT(RT(0,w*w*b-x*x)),T=(x*_-m*O)/b,E=(-x*m-_*O)/b,S=(x*_+m*O)/b,M=(-x*m+_*O)/b,A=T-g,P=E-y,C=S-g,k=M-y;return A*A+P*P>C*C+k*k&&(T=S,E=M),{cx:T,cy:E,x01:-l,y01:-h,x11:T*(i/w-1),y11:E*(i/w-1)}}var sA=function(){var t=tA,e=eA,n=s_(0),r=null,i=nA,o=rA,a=iA,s=null;function u(){var u,c,l=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-VT,p=o.apply(this,arguments)-VT,d=kT(p-f),v=p>f;if(s||(s=u=PM()),h<l&&(c=h,h=l,l=c),h>UT)if(d>GT-UT)s.moveTo(h*DT(f),h*jT(f)),s.arc(0,0,h,f,p,!v),l>UT&&(s.moveTo(l*DT(p),l*jT(p)),s.arc(0,0,l,p,f,v));else{var g,y,m=f,_=p,b=f,w=p,x=d,O=d,T=a.apply(this,arguments)/2,E=T>UT&&(r?+r.apply(this,arguments):NT(l*l+h*h)),S=IT(kT(h-l)/2,+n.apply(this,arguments)),M=S,A=S;if(E>UT){var P=BT(E/l*jT(T)),C=BT(E/h*jT(T));(x-=2*P)>UT?(P*=v?1:-1,b+=P,w-=P):(x=0,b=w=(f+p)/2),(O-=2*C)>UT?(C*=v?1:-1,m+=C,_-=C):(O=0,m=_=(f+p)/2)}var k=h*DT(m),L=h*jT(m),D=l*DT(w),R=l*jT(w);if(S>UT){var I,j=h*DT(_),N=h*jT(_),U=l*DT(b),H=l*jT(b);if(d<HT&&(I=oA(k,L,U,H,j,N,D,R))){var V=k-I[0],G=L-I[1],F=j-I[0],B=N-I[1],z=1/jT(FT((V*F+G*B)/(NT(V*V+G*G)*NT(F*F+B*B)))/2),W=NT(I[0]*I[0]+I[1]*I[1]);M=IT(S,(l-W)/(z-1)),A=IT(S,(h-W)/(z+1))}}O>UT?A>UT?(g=aA(U,H,k,L,h,A,v),y=aA(j,N,D,R,h,A,v),s.moveTo(g.cx+g.x01,g.cy+g.y01),A<S?s.arc(g.cx,g.cy,A,LT(g.y01,g.x01),LT(y.y01,y.x01),!v):(s.arc(g.cx,g.cy,A,LT(g.y01,g.x01),LT(g.y11,g.x11),!v),s.arc(0,0,h,LT(g.cy+g.y11,g.cx+g.x11),LT(y.cy+y.y11,y.cx+y.x11),!v),s.arc(y.cx,y.cy,A,LT(y.y11,y.x11),LT(y.y01,y.x01),!v))):(s.moveTo(k,L),s.arc(0,0,h,m,_,!v)):s.moveTo(k,L),l>UT&&x>UT?M>UT?(g=aA(D,R,j,N,l,-M,v),y=aA(k,L,U,H,l,-M,v),s.lineTo(g.cx+g.x01,g.cy+g.y01),M<S?s.arc(g.cx,g.cy,M,LT(g.y01,g.x01),LT(y.y01,y.x01),!v):(s.arc(g.cx,g.cy,M,LT(g.y01,g.x01),LT(g.y11,g.x11),!v),s.arc(0,0,l,LT(g.cy+g.y11,g.cx+g.x11),LT(y.cy+y.y11,y.cx+y.x11),v),s.arc(y.cx,y.cy,M,LT(y.y11,y.x11),LT(y.y01,y.x01),!v))):s.arc(0,0,l,w,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-HT/2;return[DT(r)*n,jT(r)*n]},u.innerRadius=function(e){return arguments.length?(t="function"===typeof e?e:s_(+e),u):t},u.outerRadius=function(t){return arguments.length?(e="function"===typeof t?t:s_(+t),u):e},u.cornerRadius=function(t){return arguments.length?(n="function"===typeof t?t:s_(+t),u):n},u.padRadius=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:s_(+t),u):r},u.startAngle=function(t){return arguments.length?(i="function"===typeof t?t:s_(+t),u):i},u.endAngle=function(t){return arguments.length?(o="function"===typeof t?t:s_(+t),u):o},u.padAngle=function(t){return arguments.length?(a="function"===typeof t?t:s_(+t),u):a},u.context=function(t){return arguments.length?(s=null==t?null:t,u):s},u},uA=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},cA=function(t){return t},lA=function(){var t=cA,e=uA,n=null,r=s_(0),i=s_(GT),o=s_(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),y=Math.min(GT,Math.max(-GT,i.apply(this,arguments)-g)),m=Math.min(Math.abs(y)/f,o.apply(this,arguments)),_=m*(y<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?(y-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:m};return v}return a.value=function(e){return arguments.length?(t="function"===typeof e?e:s_(+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:s_(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"===typeof t?t:s_(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:s_(+t),a):o},a},hA=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 fA(t,e){var n=this,r=zv(this._current,t);return function(t){return n._current=r(t),e(n._current)}}var pA=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.model.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 hA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(H.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(H.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.getInnerRadius=function(){var t=this.model.getOptions();return t.pie.innerRadius},e.prototype.render=function(t){void 0===t&&(t=!0);var e=this,n=this.getContainerSVG(),r=this.model.getDisplayData(),i=this.model.getOptions(),a=i.data.groupMapsTo,s=this.computeRadius();this.arc=sA().innerRadius(this.getInnerRadius()).outerRadius(s),this.hoverArc=sA().innerRadius(this.getInnerRadius()).outerRadius(s+i.pie.hoverArc.outerRadiusOffset);var u=lA().value((function(t){return t.value})).sort(null).padAngle(i.pie.padAngle),c=u(r).sort((function(t,e){return t.index-e.index})),l=lw.appendOrSelect(n,"g.slices").attr("role",o.GROUP),h=l.selectAll("path.slice").data(c,(function(t){return t.data[a]}));h.exit().attr("opacity",0).remove();var f=h.enter().append("path").classed("slice",!0).attr("opacity",0);f.merge(h).attr("fill",(function(t){return e.model.getFillColor(t.data[a])})).attr("d",this.arc).transition(this.services.transitions.getTransition("pie-slice-enter-update",t)).attr("opacity",1).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","slice").attr("aria-label",(function(t){return t.value+", "+nf.convertValueToPercentage(t.data.value,r)+"%"})).attrTween("d",(function(t){return fA.bind(this)(t,e.arc)}));var p=c.filter((function(t){return t.value>0})),d=lw.appendOrSelect(n,"g.labels").attr("role",o.GROUP),v=d.selectAll("text.pie-label").data(p,(function(t){return t.data[a]}));v.exit().attr("opacity",0).remove();var g=v.enter().append("text").classed("pie-label",!0),y=[];g.merge(v).style("text-anchor","middle").text((function(t){return i.pie.labels.formatter?i.pie.labels.formatter(t):nf.convertValueToPercentage(t.data.value,r)+"%"})).datum((function(t){var e=s+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=p.length,r=(t.endAngle-t.startAngle)*(180/Math.PI);if(e>=n-2&&r<i.pie.callout.minSliceDegree){var o=void 0,a=void 0;return t.index===n-1?(o=t.xPosition+i.pie.callout.offsetX+i.pie.callout.textMargin+t.textOffsetX,a=t.yPosition-i.pie.callout.offsetY,t.direction=L.RIGHT,y.push(t)):(o=t.xPosition-i.pie.callout.offsetX-t.textOffsetX-i.pie.callout.textMargin,a=t.yPosition-i.pie.callout.offsetY,t.direction=L.LEFT,y.push(t)),"translate("+o+", "+a+")"}return"translate("+t.xPosition+", "+t.yPosition+")"})),this.renderCallouts(y);var m=s+i.pie.xOffset,_=s+i.pie.yOffset;y.length>0&&(_+=i.pie.yOffsetCallout),n.attr("transform","translate("+m+", "+_+")"),this.addEventListeners()},e.prototype.renderCallouts=function(t){var e=lw.appendOrSelect(this.getContainerSVG(),"g.callouts").attr("role",o.GROUP),n=this.model.getOptions(),r=e.selectAll("g.callout").data(t);r.exit().remove();var i=r.enter().append("g").classed("callout",!0).attr("role",o.GRAPHICS_SYMBOL+" "+o.GROUP).attr("aria-roledescription","label callout");i.merge(r).datum((function(t){var e=t.xPosition,r=t.yPosition,i=t.direction;return i===L.RIGHT?(t.startPos={x:e,y:r+t.textOffsetY},t.endPos={x:e+n.pie.callout.offsetX,y:r-n.pie.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x-n.pie.callout.horizontalLineLength):(t.startPos={x:e,y:r+t.textOffsetY},t.endPos={x:e-n.pie.callout.offsetX,y:r-n.pie.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x+n.pie.callout.horizontalLineLength),t}));var a=i.append("line").classed("vertical-line",!0);a.merge(e.selectAll("line.vertical-line")).datum((function(t){return iw(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 s=i.append("line").classed("horizontal-line",!0);s.merge(e.selectAll("line.horizontal-line")).datum((function(t){return iw(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){t.services.events.dispatchEvent(H.Pie.SLICE_MOUSEOVER,{element:iw(this),datum:e})})).on("mousemove",(function(e){var n=iw(this);n.classed("hovered",!0).transition(t.services.transitions.getTransition("pie_slice_mouseover")).attr("d",t.hoverArc),t.services.events.dispatchEvent(H.Pie.SLICE_MOUSEMOVE,{element:n,datum:e}),t.services.events.dispatchEvent(H.Tooltip.SHOW,{hoveredElement:n,type:M.DATAPOINT})})).on("click",(function(e){t.services.events.dispatchEvent(H.Pie.SLICE_CLICK,{element:iw(this),datum:e})})).on("mouseout",(function(e){var n=iw(this);n.classed("hovered",!1).transition(t.services.transitions.getTransition("pie_slice_mouseover")).attr("d",t.arc),t.services.events.dispatchEvent(H.Pie.SLICE_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent(H.Tooltip.HIDE,{hoveredElement:n})}))},e.prototype.computeRadius=function(){var t=this.model.getOptions(),e=lw.getSVGElementSize(this.parent,{useAttrs:!0}),n=e.width,r=e.height,i=Math.min(n,r)/2;return i+t.pie.radiusOffset},e}(yE),dA=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)}}(),vA="4,10 8,6 12,10",gA="12,6 8,10 4,6",yA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e}return dA(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=nf.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.model.getOptions(),e=nf.getProperty(t,"gauge","type"),n=e===j.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.model.getOptions(),n=nf.getProperty(e,"gauge","deltaArrow","direction");switch(n){case N.UP:return vA;case N.DOWN:return gA;default:return t>0?vA:gA}},e.prototype.render=function(t){void 0===t&&(t=!0);var e=this,n=this.getContainerSVG(),r=this.model.getOptions(),i=r.data.groupMapsTo,a=this.getValue(),s=this.getValueRatio(),u=this.getArcSize(),c=this.getStartAngle(),l=s*u,h=c+l,f=c+u,p=this.computeRadius(),d=this.getInnerRadius();this.backgroundArc=sA().innerRadius(d).outerRadius(p).startAngle(h).endAngle(f),this.arc=sA().innerRadius(d).outerRadius(p).startAngle(c).endAngle(h),lw.appendOrSelect(n,"path.arc-background").attr("d",this.backgroundArc).attr("role",o.GROUP);var v=n.selectAll("path.arc-foreground").data([a]);v.enter().append("path").attr("class","arc-foreground").merge(v).attr("d",this.arc).attr("fill",(function(t){return e.model.getFillColor(t[i])})).attr("role",o.GRAPHICS_SYMBOL).attr("aria-roledescription","value").attr("aria-label",(function(t){return t.value})),n.attr("transform","translate("+p+", "+p+")"),this.drawValueNumber(),this.drawDelta(),v.exit().remove(),this.addEventListeners()},e.prototype.drawValueNumber=function(){var t=this.getContainerSVG(),e=this.model.getOptions(),n=nf.getProperty(e,"gauge","type"),r=this.getValue(),i=this.getDelta(),o=this.computeRadius(),a=nf.getProperty(e,"gauge","valueFontSize"),s=nf.getProperty(e,"gauge","deltaFontSize"),u=nf.getProperty(e,"gauge","numberSpacing"),c=0;n!==j.FULL||i?n===j.SEMI&&i&&(c=-(s(o)+u)):c=s(o);var l=lw.appendOrSelect(t,"g.gauge-numbers").attr("transform","translate(0, "+c+")"),h=lw.appendOrSelect(l,"g.gauge-value-number").attr("transform","translate(-10, 0)"),f=nf.getProperty(e,"gauge","numberFormatter"),p=h.selectAll("text.gauge-value-number").data([r]);p.enter().append("text").attr("class","gauge-value-number").merge(p).style("font-size",a(o)+"px").attr("text-anchor","middle").text((function(t){return f(t)}));var d=lw.getSVGElementSize(lw.appendOrSelect(t,"text.gauge-value-number"),{useBBox:!0}).width;lw.appendOrSelect(h,"text.gauge-value-symbol").style("font-size",a(o)/2+"px").attr("x",d/2).text("%")},e.prototype.drawDelta=function(){var t=this,e=this.getContainerSVG(),n=this.model.getOptions(),r=this.getDelta(),i=this.computeRadius(),o=r?nf.getProperty(n,"gauge","deltaFontSize"):function(){return 0},a=r?nf.getProperty(n,"gauge","numberFormatter"):function(){return null},s=nf.getProperty(n,"gauge","deltaArrow","size"),u=nf.getProperty(n,"gauge","numberSpacing"),c=lw.appendOrSelect(e,"g.gauge-numbers"),l=lw.appendOrSelect(c,"g.gauge-delta").attr("transform","translate(0, "+(o(i)+u)+")"),h=lw.appendOrSelect(l,"text.gauge-delta-number");h.data(null===r?[]:[r]),h.enter().append("text").classed("gauge-delta-number",!0).merge(h).attr("text-anchor","middle").style("font-size",o(i)+"px").text((function(t){return a(t)+"%"}));var f=lw.getSVGElementSize(lw.appendOrSelect(e,".gauge-delta-number"),{useBBox:!0}).width,p=nf.getProperty(n,"gauge","deltaArrow","enabled"),d=l.selectAll("svg.gauge-delta-arrow").data(null!==r&&p?[r]:[]);d.enter().append("svg").merge(d).attr("class","gauge-delta-arrow").attr("x",-s(i)-f/2).attr("y",-s(i)/2-.35*o(i)).attr("width",s(i)).attr("height",s(i)).attr("viewBox","0 0 16 16"),lw.appendOrSelect(d,"rect.gauge-delta-arrow-backdrop").attr("width","16").attr("height","16").attr("fill","none");var v=nf.getProperty(n,"gauge","status");lw.appendOrSelect(d,"polygon.gauge-delta-arrow").classed("status--"+v,null!==v).attr("fill",(function(){return null===v?"currentColor":null})).attr("points",t.getArrow(r)),d.exit().remove(),h.exit().remove()},e.prototype.getInnerRadius=function(){var t=this.computeRadius(),e=nf.getProperty(this.model.getOptions(),"gauge","arcWidth");return t-e},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("path.arc").on("mouseover",(function(e){t.services.events.dispatchEvent(H.Gauge.ARC_MOUSEOVER,{element:iw(this),datum:e})})).on("mousemove",(function(e){var n=iw(this);t.services.events.dispatchEvent(H.Gauge.ARC_MOUSEMOVE,{element:n,datum:e})})).on("click",(function(e){t.services.events.dispatchEvent(H.Gauge.ARC_CLICK,{element:iw(this),datum:e})})).on("mouseout",(function(e){var n=iw(this);t.services.events.dispatchEvent(H.Gauge.ARC_MOUSEOUT,{element:n,datum:e})}))},e.prototype.computeRadius=function(){var t=this.model.getOptions(),e=nf.getProperty(t,"gauge","type"),n=lw.getSVGElementSize(this.parent,{useAttrs:!0}),r=n.width,i=n.height,o=e===j.SEMI?Math.min(r/2,i):Math.min(r/2,i/2);return o},e}(yE),mA=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)}}(),_A=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="donut",e}return mA(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=lw.appendOrSelect(this.getContainerSVG(),"g.center"),i=this.model.getOptions(),o=this.computeRadius();lw.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(iw(this))})),lw.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(nf.getProperty(i,"donut","center","label"))}},e.prototype.getInnerRadius=function(){var t=this.computeRadius();return.75*t},e.prototype.centerNumberTween=function(t){var e=this.model.getOptions(),n=nf.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?Wv:Nv;var o=r(i,n);return function(n){var r=e.donut.center.numberFormatter;t.text(r(o(n)))}},e}(pA);function bA(t){return+t}var wA=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)}}(),xA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="skeleton",e}return wA(e,t),e.prototype.render=function(){var t=this.parent,e=t.node().parentNode,n=lw.getSVGElementSize(e,{useAttrs:!0}),r=n.width,i=n.height;t.attr("width",r).attr("height",i);var o=this.model.isDataEmpty(),a=nf.getProperty(this.model.getOptions(),"data","loading");if(o)this.renderSkeleton(a);else{if(!o&&a)throw new Error("Something went wrong. You can't provided non-empty data and data loading together.");this.removeSkeleton()}},e.prototype.renderSkeleton=function(t){if(this.configs.skeleton===D.GRID)this.renderGridSkeleton(t);else if(this.configs.skeleton===D.VERT_OR_HORIZ)this.renderVertOrHorizSkeleton(t);else if(this.configs.skeleton===D.PIE)this.renderPieSkeleton(t);else{if(this.configs.skeleton!==D.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===T.VERTICAL&&this.drawYGrid(t),e===T.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=Ag().domain([0,1]).range(t),this.yScale=Ag().domain([0,1]).range(e)},e.prototype.drawBackdrop=function(t){var e=this.parent,n=e.node().parentNode,r=lw.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height;this.backdrop=lw.appendOrSelect(e,"svg.chart-skeleton.DAII").attr("width",i).attr("height",o);var a=lw.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=nf.getProperty(this.model.getOptions(),"grid","x","numberOfTicks"),i=this.xScale.ticks(r).map((function(t){return t*n})),o=lw.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=nf.getProperty(this.model.getOptions(),"grid","y","numberOfTicks"),i=this.xScale.ticks(r).map((function(t){return t*e})),o=lw.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=lw.getSVGElementSize(r.node().parentNode,{useAttrs:!0}),o=i.width,a=i.height,s=lw.appendOrSelect(r,"svg.chart-skeleton").attr("width",o).attr("height",a),u=this.model.getOptions().pie,c=(lw.appendOrSelect(s,"rect.chart-skeleton-area-container").attr("width",o).attr("height",a).attr("fill","none"),sA().innerRadius(e).outerRadius(t).startAngle(0).endAngle(2*Math.PI)),l=t+Math.abs(u.radiusOffset),h=t+(Math.min(o,a)-2*t)/2;lw.appendOrSelect(s,"path").attr("class","skeleton-area-shape").attr("transform","translate("+l+", "+h+")").attr("d",c).classed("shimmer-effect-areas",n).classed("empty-state-areas",!n)},e.prototype.computeOuterRadius=function(){var t=this.model.getOptions(),e=lw.getSVGElementSize(this.parent.node().parentNode,{useAttrs:!0}),n=e.width,r=e.height,i=Math.min(n,r)/2;return i+t.pie.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=lw.getSVGElementSize(this.parent,{useAttrs:!0}).width,u=0,c=s,l=lw.appendOrSelect(a,"defs").lower(),h=lw.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(bA).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}(yE),OA=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)}}(),TA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="spacer",e}return OA(e,t),e.prototype.render=function(){this.getContainerSVG().append("rect").attr("x",0).attr("y",0).attr("width",this.configs.size||If.default.size).attr("height",this.configs.size||If.default.size).attr("opacity",0)},e}(yE);function EA(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 SA=function(){return this.eachAfter(EA)},MA=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},AA=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},PA=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},CA=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}))},kA=function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},LA=function(t){var e=this,n=DA(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 DA(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 RA=function(){var t=this,e=[t];while(t=t.parent)e.push(t);return e},IA=function(){var t=[];return this.each((function(e){t.push(e)})),t},jA=function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},NA=function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e};function UA(t,e){var n,r,i,o,a,s=new BA(t),u=+t.value&&(s.value=t.value),c=[s];null==e&&(e=VA);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(FA)}function HA(){return UA(this).eachBefore(GA)}function VA(t){return t.children}function GA(t){t.data=t.data.data}function FA(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=UA.prototype={constructor:BA,count:SA,each:MA,eachAfter:PA,eachBefore:AA,sum:CA,sort:kA,path:LA,ancestors:RA,descendants:IA,leaves:jA,links:NA,copy:HA};var zA=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},YA=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)},qA=(1+Math.sqrt(5))/2;function XA(t,e,n,r,i,o){var a,s,u,c,l,h,f,p,d,v,g,y=[],m=e.children,_=0,b=0,w=m.length,x=e.value;while(_<w){u=i-n,c=o-r;do{l=m[b++].value}while(!l&&b<w);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<w;++b){if(l+=s=m[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}y.push(a={value:l,dice:u<c,children:m.slice(_,b)}),a.dice?zA(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 y}var $A=function t(e){function n(t,n,r,i,o){XA(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(qA);function ZA(t){if("function"!==typeof t)throw new Error;return t}function KA(){return 0}var QA=function(t){return function(){return t}},JA=function(){var t=$A,e=!1,n=1,r=1,i=[0],o=KA,a=KA,s=KA,u=KA,c=KA;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(YA),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=ZA(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:QA(+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:QA(+t),l):a},l.paddingRight=function(t){return arguments.length?(s="function"===typeof t?t:QA(+t),l):s},l.paddingBottom=function(t){return arguments.length?(u="function"===typeof t?t:QA(+t),l):u},l.paddingLeft=function(t){return arguments.length?(c="function"===typeof t?t:QA(+t),l):c},l},tP=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)}}(),eP=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===C.ROW_REVERSE||a.configs.direction===C.COLUMN_REVERSE;return s&&(a.children=a.children.reverse()),a.init(),a}return tP(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=nf.getProperty(t,"data","growth","x");return e===k.PREFERRED||e===k.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=nf.getProperty(t,"data","growth","x");return e===k.STRETCH})).size()},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.parent,r=lw.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height,a=UA({children:this.children}).sum((function(t){return t.size})),s=this.configs.direction===C.ROW||this.configs.direction===C.ROW_REVERSE?zA:WA;JA().tile(s).size([i,o])(a);var u=this.configs.direction===C.ROW||this.configs.direction===C.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(iw(n));var i=nf.getProperty(e,"data","growth","x");i!==k.PREFERRED&&i!==k.FIXED||r.render(t)}))})),n.selectAll("svg.layout-child-"+this._instanceID).each((function(t){var e=nf.getProperty(t,"data","growth","x"),n=lw.getSVGElementSize(iw(this),{useBBox:!0});if("legend"===t.data.id){var r=lw.getSVGElementSize(iw(this),{useAttrs:!0});r.height<40&&(n.height=r.height)}if(e===k.PREFERRED){var a=u?n.width:n.height,s=u?i:o;t.data.size=a/s*100}})),c.exit().remove(),this.children.filter((function(t){var e=nf.getProperty(t,"growth","x");return e===k.STRETCH})).forEach((function(t,n){t.size=(100-+e.getPreferedAndFixedSizeSum())/+e.getNumOfStretchChildren()})),a=UA({children:this.children}).sum((function(t){return t.size})),JA().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=nf.getProperty(e,"data","growth","x");r===k.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}(yE),nP=Array.prototype.slice,rP=function(t){return t},iP=1,oP=2,aP=3,sP=4,uP=1e-6;function cP(t){return"translate("+(t+.5)+",0)"}function lP(t){return"translate(0,"+(t+.5)+")"}function hP(t){return function(e){return+t(e)}}function fP(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function pP(){return!this.__axis}function dP(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,u=t===iP||t===sP?-1:1,c=t===sP||t===oP?"x":"y",l=t===iP||t===aP?cP:lP;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):rP:i,d=Math.max(o,0)+s,v=e.range(),g=+v[0]+.5,y=+v[v.length-1]+.5,m=(e.bandwidth?fP:hP)(e.copy()),_=h.selection?h.selection():h,b=_.selectAll(".domain").data([null]),w=_.selectAll(".tick").data(f,e).order(),x=w.exit(),O=w.enter().append("g").attr("class","tick"),T=w.select("line"),E=w.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(O),T=T.merge(O.append("line").attr("stroke","currentColor").attr(c+"2",u*o)),E=E.merge(O.append("text").attr("fill","currentColor").attr(c,u*d).attr("dy",t===iP?"0em":t===aP?"0.71em":"0.32em")),h!==_&&(b=b.transition(h),w=w.transition(h),T=T.transition(h),E=E.transition(h),x=x.transition(h).attr("opacity",uP).attr("transform",(function(t){return isFinite(t=m(t))?l(t):this.getAttribute("transform")})),O.attr("opacity",uP).attr("transform",(function(t){var e=this.parentNode.__axis;return l(e&&isFinite(e=e(t))?e:m(t))}))),x.remove(),b.attr("d",t===sP||t==oP?a?"M"+u*a+","+g+"H0.5V"+y+"H"+u*a:"M0.5,"+g+"V"+y:a?"M"+g+","+u*a+"V0.5H"+y+"V"+u*a:"M"+g+",0.5H"+y),w.attr("opacity",1).attr("transform",(function(t){return l(m(t))})),T.attr(c+"2",u*o),E.attr(c,u*d).text(p),_.filter(pP).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===oP?"start":t===sP?"end":"middle"),_.each((function(){this.__axis=m}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=nP.call(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:nP.call(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:nP.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 vP(t){return dP(iP,t)}function gP(t){return dP(oP,t)}function yP(t){return dP(aP,t)}function mP(t){return dP(sP,t)}var _P=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)}}(),bP=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 _P(e,t),e.prototype.render=function(t){void 0===t&&(t=!0);var e,n,r=this.configs.position,i=this.model.getOptions(),a=nf.getProperty(i,"axes",r),s=nf.getProperty(a,"scaleType"),u=nf.getProperty(a,"ticks","number"),c=nf.getProperty(a,"truncation","type"),l=nf.getProperty(a,"truncation","threshold"),h=nf.getProperty(a,"truncation","numCharacter"),f=null!==u,p=r===x.LEFT||r===x.RIGHT,d=nf.getProperty(i,"timeScale"),v=this.getContainerSVG(),g=lw.getSVGElementSize(this.parent,{useAttrs:!0}),y=g.width,m=g.height;r===x.BOTTOM||r===x.TOP?(e=this.configs.axes[x.LEFT]?this.margins.left:0,n=this.configs.axes[x.RIGHT]?y-this.margins.right:y):(e=m-this.margins.bottom,n=this.margins.top);var _,b=this.services.cartesianScales.getScaleByPosition(r);switch(this.scaleType===E.LABELS?b.rangeRound([e,n]):b.range([e,n]),r){case x.LEFT:_=mP;break;case x.BOTTOM:_=yP;break;case x.RIGHT:_=gP;break;case x.TOP:_=vP;break}var w=lw.appendOrSelect(v,"g.axis."+r),T=!w.select("g.ticks").empty(),S=lw.appendOrSelect(w,"g.ticks");T||S.attr("role",o.GRAPHICS_OBJECT+" "+o.GROUP);var M=lw.appendOrSelect(w,"g.ticks.invisible").style("opacity","0").style("pointer-events","none").attr("aria-hidden",!0),A=lw.appendOrSelect(M,"g.tick"),P=lw.appendOrSelect(A,"text").text("0"),C=lw.getSVGElementSize(P.node(),{useBBox:!0}).height;A.remove();var k,L=this.scaleType===E.TIME||a.scaleType===E.TIME,D=this.scaleType||a.scaleType||E.LINEAR,R=_(b).tickSizeOuter(0);if(b.ticks){var I=void 0;if(f?I=u:(I=Rf.ticks.number,p&&(I=this.getNumberOfFittingTicks(m,C,jf))),1===b.ticks().length&&0===b.ticks()[0]&&(I=0),R.ticks(I),L)if(b.ticks(I).length){var j=nf.getProperty(i,"timeScale","addSpaceOnEdges"),N=void 0;j&&(N=b.nice(I)),N=b.ticks(I),j&&N.length>2&&(N.splice(N.length-1,1),N.splice(0,1)),R.tickValues(N)}else R.tickValues([])}var U=nf.getProperty(a,"ticks","formatter");if(L){var H=oM(R.tickValues());k=null===U?function(t,e){return eM(t,e,H,d)}:function(t,e){var n=eM(t,e,H,d);return U(t,e,n)}}else null===U?D===E.LINEAR&&(k=function(t){return t.toLocaleString()}):k=U;switch(R.tickFormat(k),r){case x.LEFT:S.attr("transform","translate("+this.margins.left+", 0)");break;case x.BOTTOM:S.attr("transform","translate(0, "+(m-this.margins.bottom)+")");break;case x.RIGHT:S.attr("transform","translate("+(y-this.margins.right)+", 0)");break;case x.TOP:S.attr("transform","translate(0, "+this.margins.top+")");break}if(a.title){var V=lw.appendOrSelect(w,"text.axis-title").html(this.model.isDataEmpty()?"":a.title);switch(r){case x.LEFT:V.attr("transform","rotate(-90)").attr("y",0).attr("x",-b.range()[0]/2).attr("dy","1em").style("text-anchor","middle");break;case x.BOTTOM:V.attr("transform","translate("+(this.margins.left/2+b.range()[1]/2)+", "+m+")").style("text-anchor","middle");break;case x.RIGHT:V.attr("transform","rotate(90)").attr("y",-y).attr("x",b.range()[0]/2).attr("dy","1em").style("text-anchor","middle");break;case x.TOP:var G=lw.getSVGElementSize(V,{useBBox:!0}).height;V.attr("transform","translate("+(this.margins.left/2+b.range()[1]/2)+", "+G/2+")").style("text-anchor","middle");break}}if(L){var F=oM(R.tickValues()),B=d.showDayName,z=S;t&&(S=S.transition(this.services.transitions.getTransition("axis-update",t))),S=S.call(R);var W=z.selectAll(".tick").data(R.tickValues(),b).order().select("text");W.style("font-weight",(function(t,e){return tM(t,e,F,B)?"bold":"normal"}))}else S=t&&T?S.transition(this.services.transitions.getTransition("axis-update")).call(R):S.call(R);if(M.call(R),r===x.BOTTOM||r===x.TOP){var Y=!1;if(b.step){var q=M.selectAll("g.tick text").nodes();Y=q.some((function(t){return lw.getSVGElementSize(t,{useBBox:!0}).width>=b.step()}))}else{var X=nf.getProperty(a,"ticks","rotateIfSmallerThan")||Rf.ticks.rotateIfSmallerThan,$=L?R.tickValues().length:b.ticks().length,Z=y/$/2;Y=Z<X}Y?(f||(R.ticks(this.getNumberOfFittingTicks(y,C,Nf)),M.call(R),S.call(R)),w.selectAll("g.ticks g.tick text").attr("transform","rotate(-45)").style("text-anchor",r===x.TOP?"start":"end")):w.selectAll("g.ticks g.tick text").attr("transform",null).style("text-anchor",null)}if(this.model.isDataEmpty()&&w.attr("opacity",0),c!==O.NONE&&s===E.LABELS){var K=this.model.getDataValuesGroupedByKeys();if(K.length>0){var Q=K.map((function(t){return t.sharedStackKey})),J=v.select("g.axis."+r+" g.ticks g.tick").html();w.selectAll("g.ticks g.tick").html(J),w.selectAll("g.tick text").data(Q).text((function(t){return t.length>l?nf.truncateLabel(t,c,h):t})),this.getInvisibleAxisRef().selectAll("g.tick text").data(Q).text((function(t){return t.length>l?nf.truncateLabel(t,c,h):t})),w.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()),w.selectAll("g.tick text").data(Q)}}this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this.getContainerSVG(),e=this.configs.position,n=lw.appendOrSelect(t,"g.axis."+e),r=this.model.getOptions(),i=nf.getProperty(r,"axes",e),o=nf.getProperty(i,"scaleType"),a=nf.getProperty(i,"truncation","threshold"),s=(this.scaleType===E.TIME||(i.scaleType,E.TIME),this);n.selectAll("g.tick text").on("mouseover",(function(t){s.services.events.dispatchEvent(H.Axis.LABEL_MOUSEOVER,{element:iw(this),datum:t})})).on("mousemove",(function(t){s.services.events.dispatchEvent(H.Axis.LABEL_MOUSEMOVE,{element:iw(this),datum:t}),o===E.LABELS&&t.length>a&&s.services.events.dispatchEvent(H.Tooltip.SHOW,{hoveredElement:iw(this),type:M.AXISLABEL})})).on("click",(function(t){s.services.events.dispatchEvent(H.Axis.LABEL_CLICK,{element:iw(this),datum:t})})).on("mouseout",(function(t){s.services.events.dispatchEvent(H.Axis.LABEL_MOUSEOUT,{element:iw(this),datum:t}),o===E.LABELS&&s.services.events.dispatchEvent(H.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 nf.clamp(r,2,Rf.ticks.number)},e.prototype.destroy=function(){var t=this.getContainerSVG(),e=this.configs.position,n=lw.appendOrSelect(t,"g.axis."+e);n.selectAll("g.tick text").on("mouseover",null).on("mousemove",null).on("mouseout",null)},e}(yE),wP=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)}}(),xP=function(){return xP=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},xP.apply(this,arguments)},OP=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 wP(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n={},r=Object.keys(x),i=nf.getProperty(this.model.getOptions(),"axes");r.forEach((function(t){var e=i[x[t]];e&&(n[x[t]]=!0)})),this.configs.axes=n,r.forEach((function(t){var n=x[t];if(e.configs.axes[n]&&!e.children[n]){var r=new bP(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(n){var r,i=e.children[n],a=i.configs.position,s=i.getInvisibleAxisRef(),u=lw.getSVGElementSize(s,{useBBox:!0}),c=u.width,l=u.height;switch(r=i.getTitleRef().empty()?0:lw.getSVGElementSize(i.getTitleRef(),{useBBox:!0}).height,a){case x.TOP:o.top=l+r;break;case x.BOTTOM:o.bottom=l+r;break;case x.LEFT:o.left=c+r;break;case x.RIGHT:o.right=c+r;break}e.addAxisThresholds(t,a)}));var a=Object.keys(o).some((function(t){return e.margins[t]!==o[t]}));a&&(this.margins=Object.assign(this.margins,o),Object.keys(this.children).forEach((function(t){var n=e.children[t];n.margins=e.margins})),this.render(!0))},e.prototype.addAxisThresholds=function(t,e){var n=this,r=nf.getProperty(this.model.getOptions(),"axes",e),i=r.thresholds;i&&(i.forEach((function(t,r){var i=new lM(n.model,n.services,xP(xP({},t),{axisPosition:e,index:r}));n.thresholds.push(i)})),this.thresholds.forEach((function(e){e.setParent(n.parent),e.render(t)})))},e}(yE),TP=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)}}(),EP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return TP(e,t),e.prototype.render=function(t){void 0===t&&(t=!0),this.drawBackdrop(),lw.appendOrSelect(this.backdrop,"g.x.grid"),lw.appendOrSelect(this.backdrop,"g.y.grid"),this.drawXGrid(t),this.drawYGrid(t)},e.prototype.drawXGrid=function(t){var e=this.parent,n=this.backdrop.attr("height"),r=this.services.cartesianScales.getMainXScale(),i=yP(r).tickSizeInner(-n).tickSizeOuter(0),o=nf.getProperty(this.model.getOptions(),"grid","x","numberOfTicks");i.ticks(o);var a=e.select(".x.grid").attr("transform","translate("+-this.backdrop.attr("x")+", "+n+")");if(t){var s=this.services.transitions.getTransition("grid-update");a.transition(s).call(i)}else a.call(i);this.cleanGrid(a)},e.prototype.drawYGrid=function(t){var e=this.parent,n=this.backdrop.attr("width"),r=this.services.cartesianScales.getMainYScale(),i=mP(r).tickSizeInner(-n).tickSizeOuter(0),o=nf.getProperty(this.model.getOptions(),"grid","y","numberOfTicks");i.ticks(o);var a=e.select(".y.grid").attr("transform","translate(0, "+-this.backdrop.attr("y")+")");if(t){var s=this.services.transitions.getTransition("grid-update");a.transition(s).call(i)}else a.call(i);this.cleanGrid(a)},e.prototype.getGridlineThreshold=function(t){var e,n=this.parent,r=n.selectAll(".x.grid .tick").nodes().sort((function(t,e){return Number(nf.getTranslationValues(t).tx)-Number(nf.getTranslationValues(e).tx)})),i=-1;if(r.length){r.forEach((function(e,n){t[0]>=+nf.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=+nf.getTranslationValues(s).tx-+nf.getTranslationValues(a).tx;else{var u=n.select("rect.chart-grid-backdrop").node(),c=lw.getSVGElementSize(u).width;o=c-+nf.getTranslationValues(a).tx}else o=+nf.getTranslationValues(s).tx;var l=this.model.getOptions().tooltip.gridline.threshold;return o*l}},e.prototype.getActiveGridline=function(t){var e=nf.getProperty(this.model.getOptions,"tooltip","gridline","threshold"),n=e||this.getGridlineThreshold(t),r=this.parent,i=r.selectAll(".x.grid .tick").filter((function(){var e=nf.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(){var t=this.parent,e=this.services.cartesianScales.getMainXScale(),n=this.services.cartesianScales.getMainYScale(),r=e.range(),i=r[0],o=r[1],a=n.range(),s=a[0],u=a[1];this.backdrop=lw.appendOrSelect(t,"svg.chart-grid-backdrop");var c=lw.appendOrSelect(this.backdrop,"rect.chart-grid-backdrop");this.backdrop.merge(c).attr("x",i).attr("y",u).attr("width",o-i).attr("height",s-u).lower(),c.attr("width","100%").attr("height","100%")},e.prototype.cleanGrid=function(t){var e=this.model.getOptions();t.selectAll("line").attr("stroke",e.grid.strokeColor),t.selectAll("text").remove(),t.select(".domain").remove()},e}(yE),SP=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)}}(),MP=5;function AP(t,e){return t>e-MP&&t<e+MP}var PP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ruler",e}return SP(e,t),e.prototype.render=function(){this.drawBackdrop(),this.addBackdropEventListeners()},e.prototype.showRuler=function(t){var e=this,n=t[0],r=t[1],i=this.parent,o=this.services.cartesianScales.getOrientation(),a=o===T.HORIZONTAL?r:n,s=lw.appendOrSelect(i,"g.ruler"),u=lw.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}})),g=v.filter((function(t){return AP(t.domainValue,a)})).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 y=this.services.cartesianScales.getRangeIdentifier(),m=g.map((function(t){return t.originalData})).filter((function(t){var e=t[y];return null!==e&&void 0!==e})),_=g.map((function(t){return t.domainValue})),b=c.filter((function(t){var n=e.services.cartesianScales.getDomainValue(t);return _.includes(n)}));this.elementsToHighlight&&this.elementsToHighlight.size()>0&&!nf.isEqual(this.elementsToHighlight,b)&&this.hideRuler(),b.dispatch("mouseover"),this.elementsToHighlight=b,this.services.events.dispatchEvent("show-tooltip",{hoveredElement:u,multidata:m,type:M.GRIDLINE}),s.attr("opacity",1);var w=g[0];"horizontal"===o?u.attr("x1",d).attr("x2",p).attr("y1",w.domainValue).attr("y2",w.domainValue):u.attr("y1",d).attr("y2",p).attr("x1",w.domainValue).attr("x2",w.domainValue)}else this.hideRuler()},e.prototype.hideRuler=function(){var t=this.parent,e=lw.appendOrSelect(t,"g.ruler"),n=t.selectAll("[role=graphics-symbol]");n.dispatch("mouseout"),this.services.events.dispatchEvent("hide-tooltip"),e.attr("opacity",0)},e.prototype.addBackdropEventListeners=function(){var t=this;this.backdrop.on("mousemove mouseover",(function(){var e=xE(t.parent.node());t.showRuler(e)})).on("mouseout",(function(){t.hideRuler()}))},e.prototype.drawBackdrop=function(){var t=this.parent,e=this.services.cartesianScales.getMainXScale(),n=this.services.cartesianScales.getMainYScale(),r=e.range(),i=r[0],o=r[1],a=n.range(),s=a[0],u=a[1];this.backdrop=lw.appendOrSelect(t,"svg.chart-grid-backdrop");var c=lw.appendOrSelect(this.backdrop,"rect.chart-grid-backdrop");this.backdrop.merge(c).attr("x",i).attr("y",u).attr("width",o-i).attr("height",s-u).lower(),c.attr("width","100%").attr("height","100%")},e}(yE),CP=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)}}(),kP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="zero-line",e}return CP(e,t),e.prototype.render=function(t){var e=this.services.cartesianScales.getRangeScale().domain(),n=e[0],r=e[1],i=n>0&&r<0||n<0&&r>0;if(i){var o=this.getContainerSVG(),a=this.services.cartesianScales.getDomainScale().range(),s=a[0],u=a[1],c=+this.services.cartesianScales.getRangeValue(0)+.5;if(!c){var l=this.services.cartesianScales.getRangeAxisPosition(),h=this.services.cartesianScales.getScaleByPosition(l);c=h.range()[0]}var f=nf.flipSVGCoordinatesBasedOnOrientation({x0:s,x1:u,y0:c,y1:c},this.services.cartesianScales.getOrientation()),p=lw.appendOrSelect(o,"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)}},e}(yE),LP=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},DP=function(){function t(t,e){this.services={domUtils:lw,events:fw,transitions:TO},this.model=new f_(this.services)}return t.prototype.init=function(t,e){var n=this;this.model.set({holder:t},!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(H.Model.UPDATE,(function(){n.update(!0)})),this.model.setData(e.data),this.services.events.addEventListener(H.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(H.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},!0)},t.prototype.getChartComponents=function(t){var e={id:"title",components:[new fM(this.model,this.services)],growth:{x:k.PREFERRED,y:k.FIXED}},n={id:"legend",components:[new _E(this.model,this.services)],growth:{x:k.PREFERRED,y:k.FIXED}},r={id:"graph-frame",components:t,growth:{x:k.STRETCH,y:k.FIXED}},i=!1!==this.model.getOptions().legend.enabled,o=C.COLUMN;if(i){var a=nf.getProperty(this.model.getOptions(),"legend","position");"left"===a?(o=C.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=P.VERTICAL)):"right"===a?(o=C.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=P.VERTICAL)):"bottom"===a&&(o=C.COLUMN_REVERSE)}var s={id:"spacer",components:[new TA(this.model,this.services)],growth:{x:k.PREFERRED,y:k.FIXED}},u={id:"full-frame",components:[new eP(this.model,this.services,LP(i?[n]:[],i?[s]:[],[r]),{direction:o})],growth:{x:k.STRETCH,y:k.FIXED}},c=[];if(this.model.getOptions().title){c.push(e);var l={id:"spacer",components:[new TA(this.model,this.services)],growth:{x:k.PREFERRED,y:k.FIXED}};c.push(l)}return c.push(u),[new eP(this.model,this.services,c,{direction:C.COLUMN})]},t}(),RP=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)}}(),IP=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},jP=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.services=Object.assign(r.services,{cartesianScales:sT,curves:gE}),r}return RP(e,t),e.prototype.getAxisChartComponents=function(t){var e={id:"title",components:[new fM(this.model,this.services)],growth:{x:k.PREFERRED,y:k.FIXED}},n={id:"legend",components:[new _E(this.model,this.services)],growth:{x:k.PREFERRED,y:k.FIXED}},r={id:"graph-frame",components:t,growth:{x:k.STRETCH,y:k.FIXED}},i=!1!==this.model.getOptions().legend.enabled,o=C.COLUMN;if(i){var a=nf.getProperty(this.model.getOptions(),"legend","position");a===A.LEFT?(o=C.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=P.VERTICAL)):a===A.RIGHT?(o=C.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=P.VERTICAL)):a===A.BOTTOM&&(o=C.COLUMN_REVERSE)}var s={id:"spacer",components:[new TA(this.model,this.services)],growth:{x:k.PREFERRED,y:k.FIXED}},u={id:"full-frame",components:[new eP(this.model,this.services,IP(i?[n]:[],[s,r]),{direction:o})],growth:{x:k.STRETCH,y:k.FIXED}},c=[];if(this.model.getOptions().title){c.push(e);var l={id:"spacer",components:[new TA(this.model,this.services)],growth:{x:k.PREFERRED,y:k.FIXED}};c.push(l)}return c.push(u),[new eP(this.model,this.services,c,{direction:C.COLUMN})]},e}(DP),NP=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)}}(),UP=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(nf.mergeDefaultChartOptions(nf.clone(Cf.areaChart),n.options)),r.init(e,n),r}return NP(e,t),e.prototype.getComponents=function(){var t=[new OP(this.model,this.services),new EP(this.model,this.services),new PP(this.model,this.services),new KM(this.model,this.services),new IM(this.model,this.services),new qM(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0})],e=this.getAxisChartComponents(t);return e.push(new bM(this.model,this.services)),e},e}(jP),HP=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)}}(),VP=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(nf.mergeDefaultChartOptions(Cf.stackedAreaChart,n.options)),r.init(e,n),r}return HP(e,t),e.prototype.getComponents=function(){var t=[new OP(this.model,this.services),new EP(this.model,this.services),new PP(this.model,this.services),new NM(this.model,this.services),new KM(this.model,this.services,{stacked:!0}),new JM(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0,stacked:!0})],e=this.getAxisChartComponents(t);return e.push(new bM(this.model,this.services)),e},e}(jP),GP=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)}}(),FP=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(nf.mergeDefaultChartOptions(Cf.simpleBarChart,n.options)),r.init(e,n),r}return GP(e,t),e.prototype.getComponents=function(){var t=[new OP(this.model,this.services),new EP(this.model,this.services),new GM(this.model,this.services),new kP(this.model,this.services),new xA(this.model,this.services,{skeleton:D.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e.push(new gM(this.model,this.services)),e},e}(jP),BP=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)}}(),zP=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(nf.mergeDefaultChartOptions(Cf.groupedBarChart,n.options)),r.init(e,n),r}return BP(e,t),e.prototype.getComponents=function(){var t=[new OP(this.model,this.services),new EP(this.model,this.services),new BM(this.model,this.services),new kP(this.model,this.services),new xA(this.model,this.services,{skeleton:D.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e.push(new gM(this.model,this.services)),e},e}(jP),WP=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)}}(),YP=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(nf.mergeDefaultChartOptions(Cf.stackedBarChart,n.options)),r.init(e,n),r}return WP(e,t),e.prototype.getComponents=function(){var t=[new OP(this.model,this.services),new EP(this.model,this.services),new WM(this.model,this.services),new xA(this.model,this.services,{skeleton:D.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e.push(new gM(this.model,this.services)),e},e}(jP),qP=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)}}(),XP=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(nf.mergeDefaultChartOptions(Cf.bubbleChart,n.options)),r.init(e,n),r}return qP(e,t),e.prototype.getComponents=function(){var t=[new OP(this.model,this.services),new EP(this.model,this.services),new PP(this.model,this.services),new $M(this.model,this.services),new xA(this.model,this.services,{skeleton:D.GRID})],e=this.getAxisChartComponents(t);return e.push(new bM(this.model,this.services)),e},e}(jP),$P=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)}}(),ZP=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(nf.mergeDefaultChartOptions(Cf.lineChart,n.options)),r.init(e,n),r}return $P(e,t),e.prototype.getComponents=function(){var t=[new OP(this.model,this.services),new EP(this.model,this.services),new PP(this.model,this.services),new KM(this.model,this.services),new qM(this.model,this.services,{handleThresholds:!0}),new xA(this.model,this.services,{skeleton:D.GRID})],e=this.getAxisChartComponents(t);return e.push(new bM(this.model,this.services)),e},e}(jP),KP=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)}}(),QP=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(nf.mergeDefaultChartOptions(Cf.scatterChart,n.options)),r.init(e,n),r}return KP(e,t),e.prototype.getComponents=function(){var t=[new OP(this.model,this.services),new EP(this.model,this.services),new PP(this.model,this.services),new qM(this.model,this.services),new xA(this.model,this.services,{skeleton:D.GRID})],e=this.getAxisChartComponents(t);return e.push(new bM(this.model,this.services)),e},e}(jP),JP=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(e){return t.call(this,e)||this}return JP(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}(f_),eC=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)}}(),nC=function(t){function e(e,n,r){void 0===r&&(r=!1);var i=t.call(this,e,n)||this;return i.model=new tC(i.services),r?i:(i.model.setOptions(nf.mergeDefaultChartOptions(Cf.pieChart,n.options)),i.init(e,n),i)}return eC(e,t),e.prototype.getComponents=function(){var t=[new pA(this.model,this.services),new xA(this.model,this.services,{skeleton:D.PIE})],e=this.getChartComponents(t);return e.push(new mM(this.model,this.services)),e},e}(DP),rC=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)}}(),iC=function(t){function e(e,n){var r=t.call(this,e,n,!0)||this;return r.model.setOptions(nf.mergeDefaultChartOptions(Cf.donutChart,n.options)),r.init(e,n),r}return rC(e,t),e.prototype.getComponents=function(){var t=[new _A(this.model,this.services),new xA(this.model,this.services,{skeleton:D.DONUT})],e=this.getChartComponents(t);return e.push(new mM(this.model,this.services)),e},e}(nC);function oC(t){var e=aC(uC(t),360);return sC(e,[0,10])||sC(e,[350,0])?{textAnchor:R.START,dominantBaseline:I.MIDDLE}:sC(e,[10,80])?{textAnchor:R.START,dominantBaseline:I.HANGING}:sC(e,[80,100])?{textAnchor:R.MIDDLE,dominantBaseline:I.HANGING}:sC(e,[100,170])?{textAnchor:R.END,dominantBaseline:I.HANGING}:sC(e,[170,190])?{textAnchor:R.END,dominantBaseline:I.MIDDLE}:sC(e,[190,260])?{textAnchor:R.END,dominantBaseline:I.BASELINE}:sC(e,[260,280])?{textAnchor:R.MIDDLE,dominantBaseline:I.BASELINE}:{textAnchor:R.START,dominantBaseline:I.BASELINE}}function aC(t,e){return(t%e+e)%e}function sC(t,e){var n=e[0],r=e[1];return t>=n&&t<=r}function uC(t){return t*(180/Math.PI)}function cC(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 lC(t,e){return e*Math.sin(t-Math.PI/2)}var hC=pC(hT);function fC(t){this._curve=t}function pC(t){function e(e){return new fC(t(e))}return e._curve=t,e}function dC(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(pC(t)):e()._curve},t}fC.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 vC,gC,yC,mC=function(){return dC(LM().curve(hC))},_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="radar",e.getLabelDimensions=function(t){var n=lw.appendOrSelect(e.svg,"g.tmp-tick"),r=lw.appendOrSelect(n,"text").text(t),i=lw.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.model.getOptions(),r=nf.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=nf.getProperty(n,"data","groupMapsTo"),s=nf.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 nf.merge(s,t)},e.normalizeGroupedData=function(t){var n=e.model.getOptions(),r=nf.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=nf.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:nf.merge(s,r)}}))},e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=nf.getProperty(e.model.getOptions(),"radar","opacity");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?nf.getProperty(r,"unselected"):nf.getProperty(r,"selected")}))},e.handleLegendMouseOut=function(t){var n=nf.getProperty(e.model.getOptions(),"radar","opacity");e.parent.selectAll("g.blobs path").transition(e.services.transitions.getTransition("legend-mouseout-blob")).style("fill-opacity",nf.getProperty(n,"selected"))},e}return _C(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(H.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(H.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0),this.svg=this.getContainerSVG();var n=lw.getSVGElementSize(this.parent,{useAttrs:!0}),r=n.width,i=n.height,a=this.model.getData(),s=this.model.getDisplayData(),u=this.model.getGroupedData(),c=this.model.getOptions(),l=nf.getProperty(c,"radar","axes"),h=l.angle,f=l.value,p=nf.getProperty(c,"data","groupMapsTo"),d=nf.getProperty(c,"radar"),v=d.xLabelPadding,g=d.yLabelPadding,y=d.yTicksNumber,m=d.minRange,_=d.xAxisRectHeight,b=d.opacity;this.uniqueKeys=Array.from(new Set(a.map((function(t){return t[h]})))),this.uniqueGroups=Array.from(new Set(a.map((function(t){return t[p]})))),this.displayDataNormalized=this.normalizeFlatData(s),this.groupedDataNormalized=this.normalizeGroupedData(u);var w=this.getLabelDimensions(this.uniqueKeys[0]).height,x=2*(w+g),O=Math.min(r,i),T=O-x,E=T/2;if(!(E<=0)){var S=Bd().domain(this.displayDataNormalized.map((function(t){return t[h]}))).range([0,2*Math.PI].map((function(t){return t-Math.PI/2}))),M=Ag().domain([0,Sd(this.displayDataNormalized.map((function(t){return t[f]})))]).range([m,E]).nice(y),A=M.ticks(y),P=function(t){return e.model.getFillColor(t)},C=mC().angle((function(t){return S(t[h])+Math.PI/2})).radius((function(t){return M(t[f])})).curve(dT),k=mC().angle(C.angle()).radius((function(t){return vC?vC(t[f]):m})).curve(C.curve()),L=this.uniqueKeys.map((function(t){var n=e.getLabelDimensions(t).width,r=lC(S(t),E);return n+r})),D=Sd(L),R={x:D+v,y:i/2},I=lw.appendOrSelect(this.svg,"g.y-axes").attr("role",o.GROUP),j=I.selectAll("path").data(A,(function(t){return t})),N=function(t){return e.uniqueKeys.map((function(e){var n;return n={},n[h]=e,n[f]=t,n}))};j.join((function(n){return n.append("path").attr("role",o.GRAPHICS_SYMBOL).attr("opacity",0).attr("transform","translate("+R.x+", "+R.y+")").attr("fill","none").attr("d",(function(t){return k(N(t))})).call((function(n){return n.transition(e.services.transitions.getTransition("radar_y_axes_enter",t)).attr("opacity",1).attr("d",(function(t){return C(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("+R.x+", "+R.y+")").attr("d",(function(t){return C(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 C(N(t))})).attr("opacity",0).remove()}))}));var U=lw.appendOrSelect(this.svg,"g.y-labels").attr("role",o.GROUP),H=U.selectAll("text").data(yd(A));H.join((function(n){return n.append("text").attr("opacity",0).text((function(t){return t})).attr("x",(function(t){return cC(-Math.PI/2,M(t),R).x+g})).attr("y",(function(t){return cC(-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 cC(-Math.PI/2,M(t),R).x+g})).attr("y",(function(t){return cC(-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 V=lw.appendOrSelect(this.svg,"g.x-axes").attr("role",o.GROUP),G=V.selectAll("line").data(this.uniqueKeys,(function(t){return t}));G.join((function(n){return n.append("line").attr("role",o.GRAPHICS_SYMBOL).attr("opacity",0).attr("class",(function(t){return"x-axis-"+nf.kebabCase(t)})).attr("stroke-dasharray","0").attr("x1",(function(t){return cC(S(t),0,R).x})).attr("y1",(function(t){return cC(S(t),0,R).y})).attr("x2",(function(t){return cC(S(t),0,R).x})).attr("y2",(function(t){return cC(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 cC(S(t),M.range()[0],R).x})).attr("y1",(function(t){return cC(S(t),M.range()[0],R).y})).attr("x2",(function(t){return cC(S(t),M.range()[1],R).x})).attr("y2",(function(t){return cC(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 cC(S(t),M.range()[0],R).x})).attr("y1",(function(t){return cC(S(t),M.range()[0],R).y})).attr("x2",(function(t){return cC(S(t),M.range()[1],R).x})).attr("y2",(function(t){return cC(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 F=lw.appendOrSelect(this.svg,"g.x-labels").attr("role",o.GROUP),B=F.selectAll("text").data(this.uniqueKeys);B.join((function(n){return n.append("text").text((function(t){return t})).attr("opacity",0).attr("x",(function(t){return cC(S(t),M.range()[1]+v,R).x})).attr("y",(function(t){return cC(S(t),M.range()[1]+v,R).y})).style("text-anchor",(function(t){return oC(S(t)).textAnchor})).style("dominant-baseline",(function(t){return oC(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 cC(S(t),M.range()[1]+v,R).x})).attr("y",(function(t){return cC(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 z=lw.appendOrSelect(this.svg,"g.blobs").attr("role",o.GROUP),W=z.selectAll("path").data(this.groupedDataNormalized,(function(t){return t.name}));W.join((function(n){return n.append("path").attr("class","blob").attr("role",o.GRAPHICS_SYMBOL).attr("opacity",0).attr("transform","translate("+R.x+", "+R.y+")").attr("fill",(function(t){return P(t.name)})).style("fill-opacity",b.selected).attr("stroke",(function(t){return P(t.name)})).attr("d",(function(t){return k(t.data)})).call((function(n){return n.transition(e.services.transitions.getTransition("radar_blobs_enter",t)).attr("opacity",1).attr("d",(function(t){return C(t.data)}))}))}),(function(n){return 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 C(t.data)}))}))}),(function(n){return n.call((function(n){return n.transition(e.services.transitions.getTransition("radar_blobs_exit",t)).attr("d",(function(t){return C(t.data)})).attr("opacity",0).remove()}))}));var Y=lw.appendOrSelect(this.svg,"g.dots").attr("role",o.GROUP),q=Y.selectAll("circle").data(this.displayDataNormalized);q.join((function(t){return t.append("circle").attr("role",o.GRAPHICS_SYMBOL)}),(function(t){return t}),(function(t){return t.remove()})).attr("class",(function(t){return nf.kebabCase(t[h])})).attr("cx",(function(t){return cC(S(t[h]),M(t[f]),R).x})).attr("cy",(function(t){return cC(S(t[h]),M(t[f]),R).y})).attr("r",0).attr("opacity",0).attr("fill",(function(t){return P(t[p])}));var X=lw.appendOrSelect(this.svg,"g.x-axes-rect").attr("role",o.GROUP),$=X.selectAll("rect").data(this.uniqueKeys);$.join((function(t){return t.append("rect").attr("role",o.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",_).attr("fill","red").style("fill-opacity",0).attr("transform",(function(t){return"rotate("+uC(S(t))+", "+R.x+", "+R.y+")"})),this.addEventListeners(),vC=M}},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(H.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(H.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.addEventListeners=function(){var t=this,e=nf.getProperty(this.model.getOptions(),"radar"),n=e.axes.angle,r=e.dotsRadius;this.parent.selectAll(".x-axes-rect > rect").on("mouseover",(function(e){t.services.events.dispatchEvent(H.Radar.X_AXIS_MOUSEOVER,{element:iw(this),datum:e})})).on("mousemove",(function(e){var i=iw(this),o=t.parent.select(".x-axes .x-axis-"+nf.kebabCase(e)),a=t.parent.selectAll(".dots circle."+nf.kebabCase(e));o.classed("hovered",!0).attr("stroke-dasharray","4 4"),a.classed("hovered",!0).attr("opacity",1).attr("r",r),t.services.events.dispatchEvent(H.Radar.X_AXIS_MOUSEMOVE,{element:i,datum:e});var s=t.displayDataNormalized.filter((function(t){return t[n]===e}));t.services.events.dispatchEvent(H.Tooltip.SHOW,{hoveredElement:i,multidata:s,type:M.GRIDLINE})})).on("click",(function(e){t.services.events.dispatchEvent(H.Radar.X_AXIS_CLICK,{element:iw(this),datum:e})})).on("mouseout",(function(e){var n=iw(this),r=t.parent.select(".x-axes .x-axis-"+nf.kebabCase(e)),i=t.parent.selectAll(".dots circle."+nf.kebabCase(e));r.classed("hovered",!1).attr("stroke-dasharray","0"),i.classed("hovered",!1).attr("opacity",0).attr("r",0),t.services.events.dispatchEvent(H.Radar.X_AXIS_MOUSEOUT,{element:n,datum:e}),t.services.events.dispatchEvent("hide-tooltip",{hoveredElement:n}),t.services.events.dispatchEvent(H.Tooltip.HIDE,{hoveredElement:n})}))},e}(yE),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)}}(),xC=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(nf.mergeDefaultChartOptions(Cf.radarChart,n.options)),i.init(e,n),i)}return wC(e,t),e.prototype.getComponents=function(){var t=[new bC(this.model,this.services)],e=this.getChartComponents(t);return e.push(new xM(this.model,this.services)),e},e}(DP),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)}}(),TC=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(nf.mergeDefaultChartOptions(Cf.gaugeChart,n.options)),r.init(e,n),r}return OC(e,t),e.prototype.getComponents=function(){var t=[new yA(this.model,this.services)],e=this.getChartComponents(t);return e.push(new dM(this.model,this.services)),e},e}(DP),EC={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}}},SC=EC;function MC(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 AC=MC(SC,gC,yC,!1,null,null,null),PC=AC.exports,CC={name:"CcvAreaChart",extends:PC,mounted:function(){this.coreChart=new UP(this.$el,{data:this.data,options:this.options})}},kC=CC,LC=MC(kC,_,b,!1,null,null,null),DC=LC.exports,RC=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-bar-chart"})},IC=[],jC={name:"CcvStackedAreaChart",extends:PC,mounted:function(){this.coreChart=new VP(this.$el,{data:this.data,options:this.options})}},NC=jC,UC=MC(NC,RC,IC,!1,null,null,null),HC=UC.exports,VC=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-simple-bar-chart"})},GC=[],FC={name:"CcvSimpleBarChart",extends:PC,mounted:function(){this.coreChart=new FP(this.$el,{data:this.data,options:this.options})}},BC=FC,zC=MC(BC,VC,GC,!1,null,null,null),WC=zC.exports,YC=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-grouped-bar-chart"})},qC=[],XC={name:"CcvGroupedBarChart",extends:PC,mounted:function(){this.coreChart=new zP(this.$el,{data:this.data,options:this.options})}},$C=XC,ZC=MC($C,YC,qC,!1,null,null,null),KC=ZC.exports,QC=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-bar-chart"})},JC=[],tk={name:"CcvStackedBarChart",extends:PC,mounted:function(){this.coreChart=new YP(this.$el,{data:this.data,options:this.options})}},ek=tk,nk=MC(ek,QC,JC,!1,null,null,null),rk=nk.exports,ik=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-bubble-chart"})},ok=[],ak={name:"CcvBubbleChart",extends:PC,mounted:function(){this.coreChart=new XP(this.$el,{data:this.data,options:this.options})}},sk=ak,uk=MC(sk,ik,ok,!1,null,null,null),ck=uk.exports,lk=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-donut-chart"})},hk=[],fk={name:"CcvDonutChart",extends:PC,mounted:function(){this.coreChart=new iC(this.$el,{data:this.data,options:this.options})}},pk=fk,dk=MC(pk,lk,hk,!1,null,null,null),vk=dk.exports,gk=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-gauge-chart"})},yk=[],mk={name:"CcvGaugeChart",extends:PC,mounted:function(){this.coreChart=new TC(this.$el,{data:this.data,options:this.options})}},_k=mk,bk=MC(_k,gk,yk,!1,null,null,null),wk=bk.exports,xk=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-line-chart"})},Ok=[],Tk={name:"CcvLineChart",extends:PC,mounted:function(){this.coreChart=new ZP(this.$el,{data:this.data,options:this.options})}},Ek=Tk,Sk=MC(Ek,xk,Ok,!1,null,null,null),Mk=Sk.exports,Ak=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-pie-chart"})},Pk=[],Ck={name:"CcvPieChart",extends:PC,mounted:function(){this.coreChart=new nC(this.$el,{data:this.data,options:this.options})}},kk=Ck,Lk=MC(kk,Ak,Pk,!1,null,null,null),Dk=Lk.exports,Rk=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-scatter-chart"})},Ik=[],jk={name:"CcvScatterChart",extends:PC,mounted:function(){this.coreChart=new QP(this.$el,{data:this.data,options:this.options})}},Nk=jk,Uk=MC(Nk,Rk,Ik,!1,null,null,null),Hk=Uk.exports,Vk=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-radar-chart"})},Gk=[],Fk={name:"CcvRadarChart",extends:PC,mounted:function(){this.coreChart=new xC(this.$el,{data:this.data,options:this.options})}},Bk=Fk,zk=MC(Bk,Vk,Gk,!1,null,null,null),Wk=zk.exports,Yk=[DC,HC,WC,KC,rk,ck,vk,wk,Mk,Dk,Hk,Wk],qk={install:function(t,e){if("undefined"===typeof e){var n=!0,r=!1,i=void 0;try{for(var o,a=Yk[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=Yk[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 DC})),n.d(e,"CcvStackedAreaChart",(function(){return HC})),n.d(e,"CcvSimpleBarChart",(function(){return WC})),n.d(e,"CcvGroupedBarChart",(function(){return KC})),n.d(e,"CcvStackedBarChart",(function(){return rk})),n.d(e,"CcvBubbleChart",(function(){return ck})),n.d(e,"CcvDonutChart",(function(){return vk})),n.d(e,"CcvGaugeChart",(function(){return wk})),n.d(e,"CcvLineChart",(function(){return Mk})),n.d(e,"CcvPieChart",(function(){return Dk})),n.d(e,"CcvScatterChart",(function(){return Hk})),n.d(e,"CcvRadarChart",(function(){return Wk}));e["default"]=qk},"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},"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=T(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 y(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 m(t){var e=t.getBBox();return T(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=y(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)),!w(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 T(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 w(t){return t===p(t).document.documentElement}function x(t){return r?b(t)?m(t):_(t):d}function O(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 T(t,e,n,r){return{x:t,y:e,width:n,height:r}}var E=function(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=T(0,0,0,0),this.target=t};E.prototype.isActive=function(){var t=x(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},E.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t};var S=function(t,e){var n=O(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 E(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 S(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 A="undefined"!==typeof WeakMap?new WeakMap:new n,P=function(t){if(!(this instanceof P))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);A.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){P.prototype[t]=function(){return(e=A.get(this))[t].apply(e,arguments);var e}}));var C=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:P}();e["a"]=C}).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"),y="keys",m="values",_="entries",b=function(){return this};t.exports=function(t,e,n,l,p,w,x){i(n,e,l);var O,T,E,S=function(t){if(t===p&&k)return k;if(!v&&t in P)return P[t];switch(t){case y:return function(){return new n(this,t)};case m:return function(){return new n(this,t)};case _:return function(){return new n(this,t)}}return function(){return new n(this)}},M=e+" Iterator",A=!1,P=t.prototype,C=P[g]||P["@@iterator"]||p&&P[p],k=!v&&C||S(p),L="Array"==e&&P.entries||C;if(L&&(O=o(L.call(new t)),d!==Object.prototype&&O.next&&(h||o(O)===d||(a?a(O,d):"function"!=typeof O[g]&&u(O,g,b)),s(O,M,!0,!0),h&&(f[M]=b))),p==m&&C&&C.name!==m&&(A=!0,k=function(){return C.call(this)}),h&&!x||P[g]===k||u(P,g,k),f[e]=k,p)if(T={values:S(m),keys:w?k:S(y),entries:S(_)},x)for(E in T)!v&&!A&&E in P||c(P,E,T[E]);else r({target:e,proto:!0,forced:v||A},T);return T}},"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,y=t.stat;if(l=g?r:y?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+(y?".":"#")+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}))},"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(){},y=function(t){return f+d+h+t+f+"/"+d+h},m=function(t){t.write(y("")),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(y("document.F=Object")),t.close(),t.F},b=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}b=r?m(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},y={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}},m={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:y,defaultParseWidth:"any"})},_=m;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,y=g.get,m=g.has,_=g.set;r=function(t,e){return _.call(g,t,e),e},i=function(t){return y.call(g,t)||{}},o=function(t){return m.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)}))}},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 y,m,_=o(p),b=i(_),w=r(d,v,3),x=a(b.length),O=0,T=g||s,E=e?T(p,x):n?T(p,0):void 0;x>O;O++)if((f||O in b)&&(y=b[O],m=w(y,O,_),t))if(e)E[O]=m;else if(m)switch(t){case 3:return!0;case 5:return y;case 6:return O;case 2:u.call(E,y)}else if(l)return!1;return h?-1:c||l?l:E}};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"),y=n("083f"),m=n("9618"),_=n("82e8"),b=n("0c47"),w=n("65d0"),x=n("ee58"),O=n("2402"),T=n("185a"),E=n("abdf"),S=n("e129"),M=n("5b12"),A=n("b8ba"),P=n("4cdd"),C=n("332c"),k=n("d687"),L=n("1d8a"),D=n("7d53"),R=n("4e41"),I=n("6a89"),j=n("fa46"),N=n("cdcd"),U=n("d054").forEach,H=C("hidden"),V="Symbol",G="prototype",F=D("toPrimitive"),B=N.set,z=N.getterFor(V),W=Object[G],Y=i.Symbol,q=o("JSON","stringify"),X=T.f,$=E.f,Z=x.f,K=S.f,Q=P("symbols"),J=P("op-symbols"),tt=P("string-to-symbol-registry"),et=P("symbol-to-string-registry"),nt=P("wks"),rt=i.QObject,it=!rt||!rt[G]||!rt[G].findChild,ot=s&&l((function(){return 7!=_($({},"a",{get:function(){return $(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=X(W,e);r&&delete W[e],$(t,e,n),r&&t!==W&&$(W,e,r)}:$,at=function(t,e){var n=Q[t]=_(Y[G]);return B(n,{type:V,tag:t,description:e}),s||(n.description=e),n},st=c?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Y},ut=function(t,e,n){t===W&&ut(J,e,n),d(t);var r=y(e,!0);return d(n),h(Q,r)?(n.enumerable?(h(t,H)&&t[H][r]&&(t[H][r]=!1),n=_(n,{enumerable:m(0,!1)})):(h(t,H)||$(t,H,m(1,{})),t[H][r]=!0),ot(t,r,n)):$(t,r,n)},ct=function(t,e){d(t);var n=g(e),r=b(n).concat(dt(n));return U(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=y(t,!0),n=K.call(this,e);return!(this===W&&h(Q,e)&&!h(J,e))&&(!(n||!h(this,e)||!h(Q,e)||h(this,H)&&this[H][e])||n)},ft=function(t,e){var n=g(t),r=y(e,!0);if(n!==W||!h(Q,r)||h(J,r)){var i=X(n,r);return!i||!h(Q,r)||h(n,H)&&n[H][r]||(i.enumerable=!0),i}},pt=function(t){var e=Z(g(t)),n=[];return U(e,(function(t){h(Q,t)||h(k,t)||n.push(t)})),n},dt=function(t){var e=t===W,n=Z(e?J:g(t)),r=[];return U(n,(function(t){!h(Q,t)||e&&!h(W,t)||r.push(Q[t])})),r};if(u||(Y=function(){if(this instanceof Y)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,H)&&h(this[H],e)&&(this[H][e]=!1),ot(this,e,m(1,t))};return s&&it&&ot(W,e,{configurable:!0,set:n}),at(e,t)},A(Y[G],"toString",(function(){return z(this).tag})),A(Y,"withoutSetter",(function(t){return at(L(t),t)})),S.f=ht,E.f=ut,T.f=ft,w.f=x.f=pt,O.f=dt,R.f=function(t){return at(D(t),t)},s&&($(Y[G],"description",{configurable:!0,get:function(){return z(this).description}}),a||A(W,"propertyIsEnumerable",ht,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:Y}),U(b(nt),(function(t){I(t)})),r({target:V,stat:!0,forced:!u},{for:function(t){var e=String(t);if(h(tt,e))return tt[e];var n=Y(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(){O.f(1)}))},{getOwnPropertySymbols:function(t){return O.f(v(t))}}),q){var vt=!u||l((function(){var t=Y();return"[null]"!=q([t])||"{}"!=q({a:t})||"{}"!=q(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,q.apply(null,i)}})}Y[G][F]||M(Y[G],F,Y[G].valueOf),j(Y,V),k[H]=!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
|