/*! For license information please see 2.7b0640ac.chunk.js.LICENSE.txt */ (this["webpackJsonpproaanalytics-www"]=this["webpackJsonpproaanalytics-www"]||[]).push([[2],[function(t,e,n){"use strict";t.exports=n(311)},function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return u})),n.d(e,"f",(function(){return c})),n.d(e,"g",(function(){return h})),n.d(e,"h",(function(){return f})),n.d(e,"i",(function(){return d})),n.d(e,"j",(function(){return p})),n.d(e,"k",(function(){return g})),n.d(e,"l",(function(){return m})),n.d(e,"m",(function(){return v})),n.d(e,"n",(function(){return y})),n.d(e,"o",(function(){return b})),n.d(e,"p",(function(){return _})),n.d(e,"q",(function(){return x})),n.d(e,"r",(function(){return w})),n.d(e,"s",(function(){return C})),n.d(e,"t",(function(){return k})),n.d(e,"u",(function(){return E})),n.d(e,"v",(function(){return T})),n.d(e,"w",(function(){return M})),n.d(e,"x",(function(){return P})),n.d(e,"y",(function(){return j})),n.d(e,"z",(function(){return R})),n.d(e,"A",(function(){return I})),n.d(e,"B",(function(){return D})),n.d(e,"C",(function(){return A})),n.d(e,"D",(function(){return L})),n.d(e,"E",(function(){return F})),n.d(e,"F",(function(){return N})),n.d(e,"H",(function(){return W})),n.d(e,"I",(function(){return z})),n.d(e,"J",(function(){return B})),n.d(e,"G",(function(){return U})),n.d(e,"a",(function(){return G}));var r=n(18),i=n(111),o=n(41);function a(t){for(var e=p(),n=0,r=t.length;ni&&(u|=o.a.RIGHT),la&&(u|=o.a.ABOVE),u===o.a.UNKNOWN&&(u=o.a.INTERSECTING),u}function p(){return[1/0,1/0,-1/0,-1/0]}function g(t,e,n,r,i){return i?(i[0]=t,i[1]=e,i[2]=n,i[3]=r,i):[t,e,n,r]}function m(t){return g(1/0,1/0,-1/0,-1/0,t)}function v(t,e){var n=t[0],r=t[1];return g(n,r,n,r,e)}function y(t,e){return O(m(e),t)}function b(t,e,n,r,i){return C(m(i),t,e,n,r)}function _(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function x(t,e){return e[0]t[2]&&(t[2]=e[2]),e[1]t[3]&&(t[3]=e[3]),t}function w(t,e){e[0]t[2]&&(t[2]=e[0]),e[1]t[3]&&(t[3]=e[1])}function O(t,e){for(var n=0,r=e.length;ne[0]?r[0]=t[0]:r[0]=e[0],t[1]>e[1]?r[1]=t[1]:r[1]=e[1],t[2]=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function W(t){return t[2]=u&&s<=h),r||!(a&o.a.RIGHT)||i&o.a.RIGHT||(r=(l=v-(m-h)*y)>=c&&l<=f),r||!(a&o.a.BELOW)||i&o.a.BELOW||(r=(s=m-(v-c)/y)>=u&&s<=h),r||!(a&o.a.LEFT)||i&o.a.LEFT||(r=(l=v-(m-u)*y)>=c&&l<=f)}return r}function G(t,e,n){var r=[t[0],t[1],t[0],t[3],t[2],t[1],t[2],t[3]];return e(r,r,2),function(t,e,n){return g(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),n)}([r[0],r[2],r[4],r[6]],[r[1],r[3],r[5],r[7]],n)}},function(t,e,n){t.exports=n(334)()},function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return c})),n.d(e,"e",(function(){return h})),n.d(e,"d",(function(){return f}));var r=n(17);function i(t,e,n,r){for(var i,o=0,a=t.length;o1?(n=i,r=o):u>0&&(n+=s*u,r+=l*u)}return a(t,e,n,r)}function a(t,e,n,r){var i=n-t,o=r-e;return i*i+o*o}function s(t){for(var e=t.length,n=0;ni&&(i=a,r=o)}if(0===i)return null;var s=t[r];t[r]=t[n],t[n]=s;for(var l=n+1;l=0;f--){h[f]=t[f][e]/t[f][f];for(var d=f-1;d>=0;d--)t[d][e]-=t[d][f]*h[f]}return h}function l(t){return 180*t/Math.PI}function u(t){return t*Math.PI/180}function c(t,e){var n=t%e;return n*e<0?n+e:n}function h(t,e,n){return t+n*(e-t)}},function(t,e,n){"use strict";e.a={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4,ABORT:5}},function(t,e,n){"use strict";n.d(e,"d",(function(){return f})),n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return p})),n.d(e,"c",(function(){return g})),n.d(e,"e",(function(){return y})),n.d(e,"f",(function(){return b}));var r=n(205),i=n.n(r),o=n(21),a=n(64),s=n.n(a),l=n(2),u=n.n(l),c=n(66);function h(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r>1)],e))<0?s=r+1:(l=r,u=!o);return u?s:~s}function i(t,e){return t>e?1:t=0}function a(t,e,n){var r,i=t.length;if(t[0]<=e)return 0;if(e<=t[i-1])return i-1;if(n>0){for(r=1;r-1;return r&&t.splice(n,1),r}function c(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r0||n&&0===o)}))}n.d(e,"a",(function(){return r})),n.d(e,"g",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"i",(function(){return s})),n.d(e,"c",(function(){return l})),n.d(e,"h",(function(){return u})),n.d(e,"b",(function(){return c})),n.d(e,"j",(function(){return h})),n.d(e,"e",(function(){return f}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a.a})),n.d(e,"e",(function(){return k})),n.d(e,"f",(function(){return E})),n.d(e,"b",(function(){return M})),n.d(e,"d",(function(){return P})),n.d(e,"c",(function(){return j})),n.d(e,"g",(function(){return I})),n.d(e,"h",(function(){return D})),n.d(e,"i",(function(){return A}));var r=n(143),i=n(1),o=n(8),a=n(42),s=function(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit};s.prototype.canWrapX=function(){return this.canWrapX_},s.prototype.getCode=function(){return this.code_},s.prototype.getExtent=function(){return this.extent_},s.prototype.getUnits=function(){return this.units_},s.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||a.a[this.units_]},s.prototype.getWorldExtent=function(){return this.worldExtent_},s.prototype.getAxisOrientation=function(){return this.axisOrientation_},s.prototype.isGlobal=function(){return this.global_},s.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},s.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},s.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},s.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},s.prototype.setWorldExtent=function(t){this.worldExtent_=t},s.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},s.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_};var l=s,u=6378137*Math.PI,c=[-u,-u,u,u],h=[-180,-85,180,85],f=function(t){function e(e){t.call(this,{code:e,units:a.b.METERS,extent:c,global:!0,worldExtent:h,getPointResolution:function(t,e){return t/Object(o.b)(e[1]/6378137)}})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(l),d=[new f("EPSG:3857"),new f("EPSG:102100"),new f("EPSG:102113"),new f("EPSG:900913"),new f("urn:ogc:def:crs:EPSG:6.18:3:3857"),new f("urn:ogc:def:crs:EPSG::3857"),new f("http://www.opengis.net/gml/srs/epsg.xml#3857")];function p(t,e,n){var r=t.length,i=n>1?n:2,o=e;void 0===o&&(o=i>2?t.slice():new Array(r));for(var a=u,s=0;sa?l=a:l<-a&&(l=-a),o[s+1]=l}return o}function g(t,e,n){var r=t.length,i=n>1?n:2,o=e;void 0===o&&(o=i>2?t.slice():new Array(r));for(var a=0;a=0||(o[n]=t[n]);return o}},function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"g",(function(){return o})),n.d(e,"i",(function(){return a})),n.d(e,"d",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return u})),n.d(e,"h",(function(){return c})),n.d(e,"f",(function(){return h})),n.d(e,"e",(function(){return f}));var r="undefined"!==typeof navigator?navigator.userAgent.toLowerCase():"",i=-1!==r.indexOf("firefox"),o=-1!==r.indexOf("safari")&&-1==r.indexOf("chrom"),a=-1!==r.indexOf("webkit")&&-1==r.indexOf("edge"),s=-1!==r.indexOf("macintosh"),l=window.devicePixelRatio||1,u=function(){var t=!1;try{t=!!document.createElement("canvas").getContext("2d").setLineDash}catch(e){}return t}(),c=(navigator,"ontouchstart"in window),h="PointerEvent"in window,f=!!navigator.msPointerEnabled},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return _}));var r=n(0),i=n.n(r),o=n(2),a=n.n(o),s=n(130),l=n.n(s),u=n(132),c=n.n(u),h=n(288),f=n.n(h),d=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function v(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var y="undefined"!==typeof t&&Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,REACT_APP_AUTH0_CLIENT_ID:"XVwgr3IEzTv0PRVQYrCtGkRHobftfEYD",REACT_APP_AUTH0_DOMAIN:"dev-arfik04r.au.auth0.com"})&&"production",b=function(t){function e(){var n,r;g(this,e);for(var i=arguments.length,o=Array(i),a=0;a1;if(n&&i&&!r){var o=!1;t.forEach((function(t){t.label||(o=!0)})),o&&console.error('[react-chartjs-2] Warning: Each dataset needs a unique key. By default, the "label" property on each dataset is used. Alternatively, you may provide a "datasetKeyProvider" as a prop that returns a unique key.')}},e.prototype.getCurrentDatasets=function(){return this.chartInstance&&this.chartInstance.config.data&&this.chartInstance.config.data.datasets||[]},e.prototype.saveCurrentDatasets=function(){var t=this;this.datasets=this.datasets||{},this.getCurrentDatasets().forEach((function(e){t.datasets[t.props.datasetKeyProvider(e)]=e}))},e.prototype.updateChart=function(){var t=this,e=this.props.options,n=this.memoizeDataProps(this.props);if(this.chartInstance){e&&(this.chartInstance.options=l.a.helpers.configMerge(this.chartInstance.options,e));var r=this.getCurrentDatasets(),i=n.datasets||[];this.checkDatasets(r);var o=f()(r,this.props.datasetKeyProvider);this.chartInstance.config.data.datasets=i.map((function(e){var n=o[t.props.datasetKeyProvider(e)];if(n&&n.type===e.type){n.data.splice(e.data.length),e.data.forEach((function(t,r){n.data[r]=e.data[r]}));e.data;var r=p(e,["data"]);return d({},n,r)}return e}));n.datasets;var a=p(n,["datasets"]);this.chartInstance.config.data=d({},this.chartInstance.config.data,a),this.chartInstance.update()}},e.prototype.renderChart=function(){var t=this.props,n=t.options,r=t.legend,i=t.type,o=t.plugins,a=this.element,s=this.memoizeDataProps();"undefined"===typeof r||c()(e.defaultProps.legend,r)||(n.legend=r),this.chartInstance=new l.a(a,{type:i,data:s,options:n,plugins:o})},e.prototype.destroyChart=function(){this.saveCurrentDatasets();var t=Object.values(this.datasets);this.chartInstance.config.data.datasets=t,this.chartInstance.destroy()},e.prototype.render=function(){var t=this.props,e=t.height,n=t.width,r=t.id;return i.a.createElement("canvas",{ref:this.ref,height:e,width:n,id:r,onClick:this.handleOnClick})},e}(i.a.Component);b.getLabelAsKey=function(t){return t.label},b.propTypes={data:a.a.oneOfType([a.a.object,a.a.func]).isRequired,getDatasetAtEvent:a.a.func,getElementAtEvent:a.a.func,getElementsAtEvent:a.a.func,height:a.a.number,legend:a.a.object,onElementsClick:a.a.func,options:a.a.object,plugins:a.a.arrayOf(a.a.object),redraw:a.a.bool,type:function(t,e,n){if(!l.a.controllers[t[e]])return new Error("Invalid chart type `"+t[e]+"` supplied to `"+n+"`.")},width:a.a.number,datasetKeyProvider:a.a.func},b.defaultProps={legend:{display:!0,position:"bottom"},type:"doughnut",height:150,width:300,redraw:!1,options:{},datasetKeyProvider:b.getLabelAsKey};(function(t){function e(){return g(this,e),m(this,t.apply(this,arguments))}v(e,t),e.prototype.render=function(){var t=this;return i.a.createElement(b,d({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"doughnut"}))}})(i.a.Component),function(t){function e(){return g(this,e),m(this,t.apply(this,arguments))}v(e,t),e.prototype.render=function(){var t=this;return i.a.createElement(b,d({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"pie"}))}}(i.a.Component);var _=function(t){function e(){return g(this,e),m(this,t.apply(this,arguments))}return v(e,t),e.prototype.render=function(){var t=this;return i.a.createElement(b,d({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"line"}))},e}(i.a.Component);(function(t){function e(){return g(this,e),m(this,t.apply(this,arguments))}v(e,t),e.prototype.render=function(){var t=this;return i.a.createElement(b,d({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"bar"}))}})(i.a.Component),function(t){function e(){return g(this,e),m(this,t.apply(this,arguments))}v(e,t),e.prototype.render=function(){var t=this;return i.a.createElement(b,d({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"horizontalBar"}))}}(i.a.Component),function(t){function e(){return g(this,e),m(this,t.apply(this,arguments))}v(e,t),e.prototype.render=function(){var t=this;return i.a.createElement(b,d({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"radar"}))}}(i.a.Component),function(t){function e(){return g(this,e),m(this,t.apply(this,arguments))}v(e,t),e.prototype.render=function(){var t=this;return i.a.createElement(b,d({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"polarArea"}))}}(i.a.Component),function(t){function e(){return g(this,e),m(this,t.apply(this,arguments))}v(e,t),e.prototype.render=function(){var t=this;return i.a.createElement(b,d({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"bubble"}))}}(i.a.Component),function(t){function e(){return g(this,e),m(this,t.apply(this,arguments))}v(e,t),e.prototype.render=function(){var t=this;return i.a.createElement(b,d({},this.props,{ref:function(e){return t.chartInstance=e&&e.chartInstance},type:"scatter"}))}}(i.a.Component),l.a.defaults}).call(this,n(102))},function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e=1e12&&!a||"t"===a?(m+=d.abbreviations.trillion,e/=1e12):s<1e12&&s>=1e9&&!a||"b"===a?(m+=d.abbreviations.billion,e/=1e9):s<1e9&&s>=1e6&&!a||"m"===a?(m+=d.abbreviations.million,e/=1e6):(s<1e6&&s>=1e3&&!a||"k"===a)&&(m+=d.abbreviations.thousand,e/=1e3)),t._.includes(n,"[.]")&&(g=!0,n=n.replace("[.]",".")),l=e.toString().split(".")[0],u=n.split(".")[1],h=n.indexOf(","),o=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,u?(t._.includes(u,"[")?(u=(u=u.replace("]","")).split("["),v=t._.toFixed(e,u[0].length+u[1].length,i,u[1].length)):v=t._.toFixed(e,u.length,i),l=v.split(".")[0],v=t._.includes(v,".")?d.delimiters.decimal+v.split(".")[1]:"",g&&0===Number(v.slice(1))&&(v="")):l=t._.toFixed(e,0,i),m&&!a&&Number(l)>=1e3&&m!==d.abbreviations.trillion)switch(l=String(Number(l)/1e3),m){case d.abbreviations.thousand:m=d.abbreviations.million;break;case d.abbreviations.million:m=d.abbreviations.billion;break;case d.abbreviations.billion:m=d.abbreviations.trillion}if(t._.includes(l,"-")&&(l=l.slice(1),y=!0),l.length0;b--)l="0"+l;return h>-1&&(l=l.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),0===n.indexOf(".")&&(l=""),f=l+v+(m||""),p?f=(p&&y?"(":"")+f+(p&&y?")":""):c>=0?f=0===c?(y?"-":"+")+f:f+(y?"-":"+"):y&&(f="-"+f),f},stringToNumber:function(t){var e,n,i,a=r[o.currentLocale],s=t,l={thousand:3,million:6,billion:9,trillion:12};if(o.zeroFormat&&t===o.zeroFormat)n=0;else if(o.nullFormat&&t===o.nullFormat||!t.replace(/[^0-9]+/g,"").length)n=null;else{for(e in n=1,"."!==a.delimiters.decimal&&(t=t.replace(/\./g,"").replace(a.delimiters.decimal,".")),l)if(i=new RegExp("[^a-zA-Z]"+a.abbreviations[e]+"(?:\\)|(\\"+a.currency.symbol+")?(?:\\))?)?$"),s.match(i)){n*=Math.pow(10,l[e]);break}n*=(t.split("-").length+Math.min(t.split("(").length-1,t.split(")").length-1))%2?1:-1,t=t.replace(/[^0-9\.]+/g,""),n*=Number(t)}return n},isNaN:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){return"number"===typeof t&&isNaN(t)})),includes:function(t,e){return-1!==t.indexOf(e)},insert:function(t,e,n){return t.slice(0,n)+e+t.slice(n)},reduce:function(t,e){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!==typeof e)throw new TypeError(e+" is not a function");var n,r=Object(t),i=r.length>>>0,o=0;if(3===arguments.length)n=arguments[2];else{for(;o=i)throw new TypeError("Reduce of empty array with no initial value");n=r[o++]}for(;or?t:r}),1)},toFixed:function(t,e,n,r){var i,o,a,s,l=t.toString().split("."),u=e-(r||0);return i=2===l.length?Math.min(Math.max(l[1].length,u),e):u,a=Math.pow(10,i),s=(n(t+"e+"+i)/a).toFixed(i),r>e-i&&(o=new RegExp("\\.?0{1,"+(r-(e-i))+"}$"),s=s.replace(o,"")),s}},t.options=o,t.formats=n,t.locales=r,t.locale=function(t){return t&&(o.currentLocale=t.toLowerCase()),o.currentLocale},t.localeData=function(t){if(!t)return r[o.currentLocale];if(t=t.toLowerCase(),!r[t])throw new Error("Unknown locale : "+t);return r[t]},t.reset=function(){for(var t in i)o[t]=i[t]},t.zeroFormat=function(t){o.zeroFormat="string"===typeof t?t:null},t.nullFormat=function(t){o.nullFormat="string"===typeof t?t:null},t.defaultFormat=function(t){o.defaultFormat="string"===typeof t?t:"0.0"},t.register=function(t,e,n){if(e=e.toLowerCase(),this[t+"s"][e])throw new TypeError(e+" "+t+" already registered.");return this[t+"s"][e]=n,n},t.validate=function(e,n){var r,i,o,a,s,l,u,c;if("string"!==typeof e&&(e+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",e)),(e=e.trim()).match(/^\d+$/))return!0;if(""===e)return!1;try{u=t.localeData(n)}catch(h){u=t.localeData(t.locale())}return o=u.currency.symbol,s=u.abbreviations,r=u.delimiters.decimal,i="."===u.delimiters.thousands?"\\.":u.delimiters.thousands,(null===(c=e.match(/^[^\d]+/))||(e=e.substr(1),c[0]===o))&&(null===(c=e.match(/[^\d]+$/))||(e=e.slice(0,-1),c[0]===s.thousand||c[0]===s.million||c[0]===s.billion||c[0]===s.trillion))&&(l=new RegExp(i+"{2}"),!e.match(/[^\d.,]/g)&&!((a=e.split(r)).length>2)&&(a.length<2?!!a[0].match(/^\d+.*\d$/)&&!a[0].match(l):1===a[0].length?!!a[0].match(/^\d+$/)&&!a[0].match(l)&&!!a[1].match(/^\d+$/):!!a[0].match(/^\d+.*\d$/)&&!a[0].match(l)&&!!a[1].match(/^\d+$/)))},t.fn=a.prototype={clone:function(){return t(this)},format:function(e,r){var i,a,s,l=this._value,u=e||o.defaultFormat;if(r=r||Math.round,0===l&&null!==o.zeroFormat)a=o.zeroFormat;else if(null===l&&null!==o.nullFormat)a=o.nullFormat;else{for(i in n)if(u.match(n[i].regexps.format)){s=n[i].format;break}a=(s=s||t._.numberToFormat)(l,u,r)}return a},value:function(){return this._value},input:function(){return this._input},set:function(t){return this._value=Number(t),this},add:function(t){var n=e.correctionFactor.call(null,this._value,t);return this._value=e.reduce([this._value,t],(function(t,e,r,i){return t+Math.round(n*e)}),0)/n,this},subtract:function(t){var n=e.correctionFactor.call(null,this._value,t);return this._value=e.reduce([t],(function(t,e,r,i){return t-Math.round(n*e)}),Math.round(this._value*n))/n,this},multiply:function(t){return this._value=e.reduce([this._value,t],(function(t,n,r,i){var o=e.correctionFactor(t,n);return Math.round(t*o)*Math.round(n*o)/Math.round(o*o)}),1),this},divide:function(t){return this._value=e.reduce([this._value,t],(function(t,n,r,i){var o=e.correctionFactor(t,n);return Math.round(t*o)/Math.round(n*o)})),this},difference:function(e){return Math.abs(t(this._value).subtract(e).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th"},currency:{symbol:"$"}}),t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(e,n,r){var i,o=t._.includes(n," BPS")?" ":"";return e*=1e4,n=n.replace(/\s?BPS/,""),i=t._.numberToFormat(e,n,r),t._.includes(i,")")?((i=i.split("")).splice(-1,0,o+"BPS"),i=i.join("")):i=i+o+"BPS",i},unformat:function(e){return+(1e-4*t._.stringToNumber(e)).toFixed(15)}}),function(){var e={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},r=e.suffixes.concat(n.suffixes.filter((function(t){return e.suffixes.indexOf(t)<0}))).join("|");r="("+r.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(r)},format:function(r,i,o){var a,s,l,u=t._.includes(i,"ib")?n:e,c=t._.includes(i," b")||t._.includes(i," ib")?" ":"";for(i=i.replace(/\s?i?b/,""),a=0;a<=u.suffixes.length;a++)if(s=Math.pow(u.base,a),l=Math.pow(u.base,a+1),null===r||0===r||r>=s&&r0&&(r/=s);break}return t._.numberToFormat(r,i,o)+c},unformat:function(r){var i,o,a=t._.stringToNumber(r);if(a){for(i=e.suffixes.length-1;i>=0;i--){if(t._.includes(r,e.suffixes[i])){o=Math.pow(e.base,i);break}if(t._.includes(r,n.suffixes[i])){o=Math.pow(n.base,i);break}}a*=o||1}return a}})}(),t.register("format","currency",{regexps:{format:/(\$)/},format:function(e,n,r){var i,o,a=t.locales[t.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),i=t._.numberToFormat(e,n,r),e>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):e<0&&!t._.includes(s.before,"-")&&!t._.includes(s.before,"(")&&(s.before="-"+s.before),o=0;o=0;o--)switch(s.after[o]){case"$":i=o===s.after.length-1?i+a.currency.symbol:t._.insert(i,a.currency.symbol,-(s.after.length-(1+o)));break;case" ":i=o===s.after.length-1?i+" ":t._.insert(i," ",-(s.after.length-(1+o)+a.currency.symbol.length-1))}return i}}),t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(e,n,r){var i=("number"!==typeof e||t._.isNaN(e)?"0e+0":e.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),t._.numberToFormat(Number(i[0]),n,r)+"e"+i[1]},unformat:function(e){var n=t._.includes(e,"e+")?e.split("e+"):e.split("e-"),r=Number(n[0]),i=Number(n[1]);return i=t._.includes(e,"e-")?i*=-1:i,t._.reduce([r,Math.pow(10,i)],(function(e,n,r,i){var o=t._.correctionFactor(e,n);return e*o*(n*o)/(o*o)}),1)}}),t.register("format","ordinal",{regexps:{format:/(o)/},format:function(e,n,r){var i=t.locales[t.options.currentLocale],o=t._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),o+=i.ordinal(e),t._.numberToFormat(e,n,r)+o}}),t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(e,n,r){var i,o=t._.includes(n," %")?" ":"";return t.options.scalePercentBy100&&(e*=100),n=n.replace(/\s?\%/,""),i=t._.numberToFormat(e,n,r),t._.includes(i,")")?((i=i.split("")).splice(-1,0,o+"%"),i=i.join("")):i=i+o+"%",i},unformat:function(e){var n=t._.stringToNumber(e);return t.options.scalePercentBy100?.01*n:n}}),t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(t,e,n){var r=Math.floor(t/60/60),i=Math.floor((t-60*r*60)/60),o=Math.round(t-60*r*60-60*i);return r+":"+(i<10?"0"+i:i)+":"+(o<10?"0"+o:o)},unformat:function(t){var e=t.split(":"),n=0;return 3===e.length?(n+=60*Number(e[0])*60,n+=60*Number(e[1]),n+=Number(e[2])):2===e.length&&(n+=60*Number(e[0]),n+=Number(e[1])),Number(n)}}),t})?r.call(e,n,e,t):r)||(t.exports=i)},,function(t,e){var n=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},function(t,e,n){"use strict";n.d(e,"b",(function(){return h}));var r=n(4),i=n(1),o=n(165),a=n(30),s=n(51),l=n(17),u=function(t){function e(){t.call(this),this.layout=a.a.XY,this.stride=2,this.flatCoordinates=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.computeExtent=function(t){return Object(i.o)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinates=function(){return Object(r.b)()},e.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.getFlatCoordinates=function(){return this.flatCoordinates},e.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},e.prototype.getLayout=function(){return this.layout},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!=this.getRevision()&&(Object(l.b)(this.simplifiedGeometryCache),this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var e=t.toString();if(this.simplifiedGeometryCache.hasOwnProperty(e))return this.simplifiedGeometryCache[e];var n=this.getSimplifiedGeometryInternal(t);return n.getFlatCoordinates().length0;)this.pop()},e.prototype.extend=function(t){for(var e=0,n=t.length;e1)l=n;else{if(d>0){for(var p=0;po&&(o=c),a=l,s=u}return o}function a(t,e,n,r,i){for(var a=0,s=n.length;a0},e.prototype.removeEventListener=function(t,e){var n=this.listeners_[t];if(n){var r=n.indexOf(e);t in this.pendingRemovals_?(n[r]=o.c,++this.pendingRemovals_[t]):(n.splice(r,1),0===n.length&&delete this.listeners_[t])}},e}(r.a);e.a=s},function(t,e,n){"use strict";function r(t,e,n,r){for(var i=0,o=n.length;i=1024){var s=0;for(var l in t)0===(3&s++)&&(delete t[l],--e)}i=function(t){var e,n,i,s,l;a.exec(t)&&(t=function(t){var e=document.createElement("div");if(e.style.color=t,""!==e.style.color){document.body.appendChild(e);var n=getComputedStyle(e).color;return document.body.removeChild(e),n}return""}(t));if(o.exec(t)){var u,h=t.length-1;u=h<=4?1:2;var f=4===h||8===h;e=parseInt(t.substr(1+0*u,u),16),n=parseInt(t.substr(1+1*u,u),16),i=parseInt(t.substr(1+2*u,u),16),s=f?parseInt(t.substr(1+3*u,u),16):255,1==u&&(e=(e<<4)+e,n=(n<<4)+n,i=(i<<4)+i,f&&(s=(s<<4)+s)),l=[e,n,i,s/255]}else 0==t.indexOf("rgba(")?c(l=t.slice(5,-1).split(",").map(Number)):0==t.indexOf("rgb(")?((l=t.slice(4,-1).split(",").map(Number)).push(1),c(l)):Object(r.a)(!1,14);return l}(n),t[n]=i,++e}return i}}();function u(t){return Array.isArray(t)?t:l(t)}function c(t){return t[0]=Object(i.a)(t[0]+.5|0,0,255),t[1]=Object(i.a)(t[1]+.5|0,0,255),t[2]=Object(i.a)(t[2]+.5|0,0,255),t[3]=Object(i.a)(t[3],0,1),t}function h(t){var e=t[0];e!=(0|e)&&(e=e+.5|0);var n=t[1];n!=(0|n)&&(n=n+.5|0);var r=t[2];return r!=(0|r)&&(r=r+.5|0),"rgba("+e+","+n+","+r+","+(void 0===t[3]?1:t[3])+")"}},function(t,e,n){"use strict";e.a={POSTCOMPOSE:"postcompose",PRECOMPOSE:"precompose",RENDER:"render",RENDERCOMPLETE:"rendercomplete"}},function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";e.a=function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&t[1]>0}function i(t,e,n){return void 0===n&&(n=[0,0]),n[0]=t[0]*e+.5|0,n[1]=t[1]*e+.5|0,n}function o(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:e[0]=e[1]=t,e)}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o}));var r={large:"lg",medium:"md",small:"sm",xsmall:"xs",lg:"lg",md:"md",sm:"sm",xs:"xs"},i={SUCCESS:"success",WARNING:"warning",DANGER:"danger",INFO:"info"},o={DEFAULT:"default",PRIMARY:"primary",LINK:"link",INVERSE:"inverse"}},function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";e.a=function(t,e){if(!t)throw new Error("Invariant failed")}},function(t,e,n){"use strict";n.d(e,"a",(function(){return x})),n.d(e,"b",(function(){return S})),n.d(e,"d",(function(){return E})),n.d(e,"c",(function(){return g})),n.d(e,"f",(function(){return m})),n.d(e,"e",(function(){return p}));var r=n(31);function i(t){return"/"===t.charAt(0)}function o(t,e){for(var n=e,r=n+1,i=t.length;r1&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],r=e&&e.split("/")||[],a=t&&i(t),s=e&&i(e),l=a||s;if(t&&i(t)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var u=void 0;if(r.length){var c=r[r.length-1];u="."===c||".."===c||""===c}else u=!1;for(var h=0,f=r.length;f>=0;f--){var d=r[f];"."===d?o(r,f):".."===d?(o(r,f),h++):h&&(o(r,f),h--)}if(!l)for(;h--;h)r.unshift("..");!l||""===r[0]||r[0]&&i(r[0])||r.unshift("");var p=r.join("/");return u&&"/"!==p.substr(-1)&&(p+="/"),p},s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};var l=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,r){return t(e,n[r])}));var r="undefined"===typeof e?"undefined":s(e);if(r!==("undefined"===typeof n?"undefined":s(n)))return!1;if("object"===r){var i=e.valueOf(),o=n.valueOf();if(i!==e||o!==n)return t(i,o);var a=Object.keys(e),l=Object.keys(n);return a.length===l.length&&a.every((function(r){return t(e[r],n[r])}))}return!1},u=n(68);function c(t){return"/"===t.charAt(0)?t:"/"+t}function h(t){return"/"===t.charAt(0)?t.substr(1):t}function f(t,e){return function(t,e){return new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t)}(t,e)?t.substr(e.length):t}function d(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function p(t){var e=t.pathname,n=t.search,r=t.hash,i=e||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function g(t,e,n,i){var o;"string"===typeof t?(o=function(t){var e=t||"/",n="",r="",i=e.indexOf("#");-1!==i&&(r=e.substr(i),e=e.substr(0,i));var o=e.indexOf("?");return-1!==o&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t)).state=e:(void 0===(o=Object(r.a)({},t)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==e&&void 0===o.state&&(o.state=e));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function m(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&l(t.state,e.state)}function v(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,i){if(null!=t){var o="function"===typeof t?t(e,n):t;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(t){var n=!0;function r(){n&&t.apply(void 0,arguments)}return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),r=0;r=0?e:0)+"#"+t)}function S(t){void 0===t&&(t={}),y||Object(u.a)(!1);var e=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),t),i=n.getUserConfirmation,o=void 0===i?b:i,a=n.hashType,s=void 0===a?"slash":a,l=t.basename?d(c(t.basename)):"",h=w[s],_=h.encodePath,x=h.decodePath;function S(){var t=x(O());return l&&(t=f(t,l)),g(t)}var k=v();function E(t){Object(r.a)(W,t),W.length=e.length,k.notifyListeners(W.location,W.action)}var T=!1,M=null;function P(){var t=O(),e=_(t);if(t!==e)C(e);else{var n=S(),r=W.location;if(!T&&m(r,n))return;if(M===p(n))return;M=null,function(t){if(T)T=!1,E();else{k.confirmTransitionTo(t,"POP",o,(function(e){e?E({action:"POP",location:t}):function(t){var e=W.location,n=D.lastIndexOf(p(e));-1===n&&(n=0);var r=D.lastIndexOf(p(t));-1===r&&(r=0);var i=n-r;i&&(T=!0,A(i))}(t)}))}}(n)}}var j=O(),R=_(j);j!==R&&C(R);var I=S(),D=[p(I)];function A(t){e.go(t)}var L=0;function F(t){1===(L+=t)&&1===t?window.addEventListener("hashchange",P):0===L&&window.removeEventListener("hashchange",P)}var N=!1;var W={length:e.length,action:"POP",location:I,createHref:function(t){return"#"+_(l+p(t))},push:function(t,e){var n=g(t,void 0,void 0,W.location);k.confirmTransitionTo(n,"PUSH",o,(function(t){if(t){var e=p(n),r=_(l+e);if(O()!==r){M=e,function(t){window.location.hash=t}(r);var i=D.lastIndexOf(p(W.location)),o=D.slice(0,-1===i?0:i+1);o.push(e),D=o,E({action:"PUSH",location:n})}else E()}}))},replace:function(t,e){var n=g(t,void 0,void 0,W.location);k.confirmTransitionTo(n,"REPLACE",o,(function(t){if(t){var e=p(n),r=_(l+e);O()!==r&&(M=e,C(r));var i=D.indexOf(p(W.location));-1!==i&&(D[i]=e),E({action:"REPLACE",location:n})}}))},go:A,goBack:function(){A(-1)},goForward:function(){A(1)},block:function(t){void 0===t&&(t=!1);var e=k.setPrompt(t);return N||(F(1),N=!0),function(){return N&&(N=!1,F(-1)),e()}},listen:function(t){var e=k.appendListener(t);return F(1),function(){F(-1),e()}}};return W}function k(t,e,n){return Math.min(Math.max(t,e),n)}function E(t){void 0===t&&(t={});var e=t,n=e.getUserConfirmation,i=e.initialEntries,o=void 0===i?["/"]:i,a=e.initialIndex,s=void 0===a?0:a,l=e.keyLength,u=void 0===l?6:l,c=v();function h(t){Object(r.a)(_,t),_.length=_.entries.length,c.notifyListeners(_.location,_.action)}function f(){return Math.random().toString(36).substr(2,u)}var d=k(s,0,o.length-1),m=o.map((function(t){return g(t,void 0,"string"===typeof t?f():t.key||f())})),y=p;function b(t){var e=k(_.index+t,0,_.entries.length-1),r=_.entries[e];c.confirmTransitionTo(r,"POP",n,(function(t){t?h({action:"POP",location:r,index:e}):h()}))}var _={length:m.length,action:"POP",location:m[d],index:d,entries:m,createHref:y,push:function(t,e){var r=g(t,e,f(),_.location);c.confirmTransitionTo(r,"PUSH",n,(function(t){if(t){var e=_.index+1,n=_.entries.slice(0);n.length>e?n.splice(e,n.length-e,r):n.push(r),h({action:"PUSH",location:r,index:e,entries:n})}}))},replace:function(t,e){var r=g(t,e,f(),_.location);c.confirmTransitionTo(r,"REPLACE",n,(function(t){t&&(_.entries[_.index]=r,h({action:"REPLACE",location:r}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(t){var e=_.index+t;return e>=0&&e<_.entries.length},block:function(t){return void 0===t&&(t=!1),c.setPrompt(t)},listen:function(t){return c.appendListener(t)}};return _}},function(t,e,n){var r=n(86),i=n(46),o=n(176),a=n(114),s=n(104),l=function t(e,n,l){var u,c,h,f=e&t.F,d=e&t.G,p=e&t.S,g=e&t.P,m=e&t.B,v=e&t.W,y=d?i:i[n]||(i[n]={}),b=y.prototype,_=d?r:p?r[n]:(r[n]||{}).prototype;for(u in d&&(l=n),l)(c=!f&&_&&void 0!==_[u])&&s(y,u)||(h=c?_[u]:l[u],y[u]=d&&"function"!=typeof _[u]?l[u]:m&&c?o(h,r):v&&_[u]==h?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):g&&"function"==typeof h?o(Function.call,h):h,g&&((y.virtual||(y.virtual={}))[u]=h,e&t.R&&b&&!b[u]&&a(b,u,h)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e,n){"use strict";e.a={UNDEFINED:"undefined",LOADING:"loading",READY:"ready",ERROR:"error"}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"e",(function(){return a})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return u}));var r=n(8);function i(t,e,n,i,o,a,s){var l=(n-e)/i;if(l<3){for(;e0;){for(var f=c.pop(),d=c.pop(),p=0,g=t[d],m=t[d+1],v=t[f],y=t[f+1],b=d+i;bp&&(h=b,p=w)}p>o&&(u[(h-e)/i]=1,d+i0&&m>p)&&(g<0&&v0&&v>g)?(l=f,u=d):(o[s++]=l,o[s++]=u,c=l,h=u,l=f,u=d)}}return o[s++]=l,o[s++]=u,s}function l(t,e,n,r,i,o,a,l){for(var u=0,c=n.length;uo&&(u-s)*(o-l)-(i-s)*(c-l)>0&&a++:c<=o&&(u-s)*(o-l)-(i-s)*(c-l)<0&&a--,s=u,l=c}return 0!==a}function a(t,e,n,r,i,a){if(0===n.length)return!1;if(!o(t,e,n[0],r,i,a))return!1;for(var s=1,l=n.length;s=0;--r)if(t[r]!=e[r]){n=!1;break}return n}function o(t,e){var n=Math.cos(e),r=Math.sin(e),i=t[0]*n-t[1]*r,o=t[1]*n+t[0]*r;return t[0]=i,t[1]=o,t}function a(t,e){return t[0]*=e,t[1]*=e,t}},function(t,e,n){"use strict";function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,"a",(function(){return r}))},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},function(t,e,n){"use strict";n.d(e,"b",(function(){return d}));var r=n(3),i=n(7),o=n(4),a=n(24),s=n(161),l=n(36),u=n(17),c=n(57),h=n(71),f=function(t){function e(e){var n=Object(u.a)({},e);delete n.source,t.call(this,n),this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,e.map&&this.setMap(e.map),Object(r.a)(this,Object(a.b)(l.a.SOURCE),this.handleSourcePropertyChange_,this);var i=e.source?e.source:null;this.setSource(i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getLayersArray=function(t){var e=t||[];return e.push(this),e},e.prototype.getLayerStatesArray=function(t){var e=t||[];return e.push(this.getLayerState()),e},e.prototype.getSource=function(){return this.get(l.a.SOURCE)||null},e.prototype.getSourceState=function(){var t=this.getSource();return t?t.getState():h.a.UNDEFINED},e.prototype.handleSourceChange_=function(){this.changed()},e.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(Object(r.e)(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=Object(r.a)(t,i.a.CHANGE,this.handleSourceChange_,this)),this.changed()},e.prototype.setMap=function(t){this.mapPrecomposeKey_&&(Object(r.e)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(Object(r.e)(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=Object(r.a)(t,c.a.PRECOMPOSE,(function(t){var e=t,n=this.getLayerState();n.managed=!1,void 0===this.getZIndex()&&(n.zIndex=1/0),e.frameState.layerStatesArray.push(n),e.frameState.layerStates[Object(o.c)(this)]=n}),this),this.mapRenderKey_=Object(r.a)(this,i.a.CHANGE,t.render,t),this.changed())},e.prototype.setSource=function(t){this.set(l.a.SOURCE,t)},e}(s.a);function d(t,e){return t.visible&&e>=t.minResolution&&e=a[0]&&s[2]<=a[2]||(s[1]>=a[1]&&s[3]<=a[3]||Object(o.a)(t,e,n,i,(function(t,e){return Object(r.G)(a,t,e)})))))}function s(t,e,n,r,i){for(var o=0,s=n.length;o0}function o(t,e,n,r,o){for(var a=void 0!==o&&o,s=0,l=n.length;s1)for(var n=1;nthis.maxX&&(this.maxX=t.maxX),t.minYthis.maxY&&(this.maxY=t.maxY)},r.prototype.getHeight=function(){return this.maxY-this.minY+1},r.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},r.prototype.getWidth=function(){return this.maxX-this.minX+1},r.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY},e.b=r},function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}},function(t,e){"function"===typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},function(t,e,n){"use strict";var r=function(){this.disposed_=!1};r.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())},r.prototype.disposeInternal=function(){},e.a=r},function(t,e,n){"use strict";function r(t,e,n,r){for(var i=0,o=t[n-r],a=t[n-r+1];e=t.minX&&e.maxY>=t.minY}function v(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function y(t,e,n,i,o){for(var a,s=[e,n];s.length;)(n=s.pop())-(e=s.pop())<=i||(a=e+Math.ceil((n-e)/i/2)*i,r(t,a,e,n,o),s.push(e,a,a,n))}i.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,n=[],r=this.toBBox;if(!m(t,e))return n;for(var i,o,a,s,l=[];e;){for(i=0,o=e.children.length;i=0&&o[e].children.length>this._maxEntries;)this._split(o,e),e--;this._adjustParentBBoxes(i,o,e)},_split:function(t,e){var n=t[e],r=n.children.length,i=this._minEntries;this._chooseSplitAxis(n,i,r);var o=this._chooseSplitIndex(n,i,r),s=v(n.children.splice(o,n.children.length-o));s.height=n.height,s.leaf=n.leaf,a(n,this.toBBox),a(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(n,s)},_splitRoot:function(t,e){this.data=v([t,e]),this.data.height=t.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,n){var r,i,o,a,l,u,c,f;for(u=c=1/0,r=e;r<=n-e;r++)a=p(i=s(t,0,r,this.toBBox),o=s(t,r,n,this.toBBox)),l=h(i)+h(o),a=e;i--)o=t.children[i],l(c,t.leaf?a(o):o),h+=f(c);return h},_adjustParentBBoxes:function(t,e,n){for(var r=n;r>=0;r--)l(e[r],t)},_condense:function(t){for(var e,n=t.length-1;n>=0;n--)0===t[n].children.length?n>0?(e=t[n-1].children).splice(e.indexOf(t[n]),1):this.clear():a(t[n],this.toBBox)},_initFormat:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}},function(t,e,n){"use strict";e.__esModule=!0;var r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},i=a(n(0)),o=a(n(354));function a(t){return t&&t.__esModule?t:{default:t}}e.default=(0,o.default)((function(t,e,n,o,a){var s=t[e],l="undefined"===typeof s?"undefined":r(s);return i.default.isValidElement(s)?new Error("Invalid "+o+" `"+a+"` of type ReactElement supplied to `"+n+"`, expected an element type (a string or a ReactClass)."):"function"!==l&&"string"!==l?new Error("Invalid "+o+" `"+a+"` of value `"+s+"` supplied to `"+n+"`, expected an element type (a string or a ReactClass)."):null}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return Y})),n.d(e,"c",(function(){return H}));var r=n(75),i=n(0),o=n.n(i),a=n(2),s=n.n(a),l=o.a.createContext(null);var u=function(t){t()},c={notify:function(){}};function h(){var t=u,e=[],n=[];return{clear:function(){n=null,e=null},notify:function(){var r=e=n;t((function(){for(var t=0;t. You may also pass a {context : MyContext} option to connect");var D=R;return function(e){var n=e.displayName||e.name||"Component",r=a(n),s=Object(g.a)({},I,{getDisplayName:a,methodName:u,renderCountProp:h,shouldHandleStateChanges:p,storeKey:b,displayName:r,wrappedComponentName:n,WrappedComponent:e}),l=I.pure;var c=l?i.useMemo:function(t){return t()};function d(n){var a=Object(i.useMemo)((function(){var t=n.forwardedRef,e=Object(m.a)(n,["forwardedRef"]);return[n.context,t,e]}),[n]),l=a[0],u=a[1],h=a[2],d=Object(i.useMemo)((function(){return l&&l.Consumer&&Object(x.isContextConsumer)(o.a.createElement(l.Consumer,null))?l:D}),[l,D]),v=Object(i.useContext)(d),y=Boolean(n.store),b=Boolean(v)&&Boolean(v.store);_()(y||b,'Could not find "store" in the context of "'+r+'". Either wrap the root component in a , or pass a custom React context provider to and the corresponding React context consumer to '+r+" in connect options.");var E=n.store||v.store,T=Object(i.useMemo)((function(){return function(e){return t(e.dispatch,s)}(E)}),[E]),M=Object(i.useMemo)((function(){if(!p)return O;var t=new f(E,y?null:v.subscription),e=t.notifyNestedSubs.bind(t);return[t,e]}),[E,y,v]),P=M[0],j=M[1],R=Object(i.useMemo)((function(){return y?v:Object(g.a)({},v,{subscription:P})}),[y,v,P]),I=Object(i.useReducer)(C,w,S),A=I[0][0],L=I[1];if(A&&A.error)throw A.error;var F=Object(i.useRef)(),N=Object(i.useRef)(h),W=Object(i.useRef)(),z=Object(i.useRef)(!1),B=c((function(){return W.current&&h===N.current?W.current:T(E.getState(),h)}),[E,A,h]);k((function(){N.current=h,F.current=B,z.current=!1,W.current&&(W.current=null,j())})),k((function(){if(p){var t=!1,e=null,n=function(){if(!t){var n,r,i=E.getState();try{n=T(i,N.current)}catch(o){r=o,e=o}r||(e=null),n===F.current?z.current||j():(F.current=n,W.current=n,z.current=!0,L({type:"STORE_UPDATED",payload:{latestStoreState:i,error:r}}))}};P.onStateChange=n,P.trySubscribe(),n();return function(){if(t=!0,P.tryUnsubscribe(),e)throw e}}}),[E,P,T]);var U=Object(i.useMemo)((function(){return o.a.createElement(e,Object(g.a)({},B,{ref:u}))}),[u,e,B]);return Object(i.useMemo)((function(){return p?o.a.createElement(d.Provider,{value:R},U):U}),[d,U,R])}var v=l?o.a.memo(d):d;if(v.WrappedComponent=e,v.displayName=r,P){var E=o.a.forwardRef((function(t,e){return o.a.createElement(v,Object(g.a)({},t,{forwardedRef:e}))}));return E.displayName=r,E.WrappedComponent=e,y()(E,e)}return y()(v,e)}}var T=Object.prototype.hasOwnProperty;function M(t,e){return t===e?0!==t||0!==e||1/t===1/e:t!==t&&e!==e}function P(t,e){if(M(t,e))return!0;if("object"!==typeof t||null===t||"object"!==typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(var i=0;i=0;r--){var i=e[r](t);if(i)return i}return function(e,r){throw new Error("Invalid value of type "+typeof t+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function G(t,e){return t===e}var Y=function(t){var e=void 0===t?{}:t,n=e.connectHOC,r=void 0===n?E:n,i=e.mapStateToPropsFactories,o=void 0===i?L:i,a=e.mapDispatchToPropsFactories,s=void 0===a?A:a,l=e.mergePropsFactories,u=void 0===l?N:l,c=e.selectorFactory,h=void 0===c?B:c;return function(t,e,n,i){void 0===i&&(i={});var a=i,l=a.pure,c=void 0===l||l,f=a.areStatesEqual,d=void 0===f?G:f,p=a.areOwnPropsEqual,v=void 0===p?P:p,y=a.areStatePropsEqual,b=void 0===y?P:y,_=a.areMergedPropsEqual,x=void 0===_?P:_,w=Object(m.a)(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),O=U(t,o,"mapStateToProps"),C=U(e,s,"mapDispatchToProps"),S=U(n,u,"mergeProps");return r(h,Object(g.a)({methodName:"connect",getDisplayName:function(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:O,initMapDispatchToProps:C,initMergeProps:S,pure:c,areStatesEqual:d,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:x},w))}}();function V(){var t=Object(i.useContext)(l);return _()(t,"could not find react-redux context value; please ensure the component is wrapped in a "),t}function H(){return V().store.dispatch}"undefined"!==typeof window?i.useLayoutEffect:i.useEffect;var K,X=n(94);K=X.unstable_batchedUpdates,u=K},function(t,e,n){"use strict";var r=n(56),i=n(60),o=n(22),a=n(33),s=n(29),l=n(6),u=function(t){function e(e){var n=void 0!==e.rotateWithView&&e.rotateWithView;t.call(this,{opacity:1,rotateWithView:n,rotation:void 0!==e.rotation?e.rotation:0,scale:1}),this.checksums_=null,this.canvas_=null,this.hitDetectionCanvas_=null,this.fill_=void 0!==e.fill?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius_=void 0!==e.radius?e.radius:e.radius1,this.radius2_=e.radius2,this.angle_=void 0!==e.angle?e.angle:0,this.stroke_=void 0!==e.stroke?e.stroke:null,this.anchor_=null,this.size_=null,this.imageSize_=null,this.hitDetectionImageSize_=null,this.atlasManager_=e.atlasManager,this.render_(this.atlasManager_)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){var t=new e({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),atlasManager:this.atlasManager_});return t.setOpacity(this.getOpacity()),t.setScale(this.getScale()),t},e.prototype.getAnchor=function(){return this.anchor_},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.getHitDetectionImage=function(t){return this.hitDetectionCanvas_},e.prototype.getImage=function(t){return this.canvas_},e.prototype.getImageSize=function(){return this.imageSize_},e.prototype.getHitDetectionImageSize=function(){return this.hitDetectionImageSize_},e.prototype.getImageState=function(){return s.a.LOADED},e.prototype.getOrigin=function(){return this.origin_},e.prototype.getPoints=function(){return this.points_},e.prototype.getRadius=function(){return this.radius_},e.prototype.getRadius2=function(){return this.radius2_},e.prototype.getSize=function(){return this.size_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.listenImageChange=function(t,e){},e.prototype.load=function(){},e.prototype.unlistenImageChange=function(t,e){},e.prototype.render_=function(t){var e,n,r="",s="",u=0,c=null,h=0,f=0;this.stroke_&&(null===(n=this.stroke_.getColor())&&(n=l.k),n=Object(i.a)(n),void 0===(f=this.stroke_.getWidth())&&(f=l.h),c=this.stroke_.getLineDash(),h=this.stroke_.getLineDashOffset(),a.a||(c=null,h=0),void 0===(s=this.stroke_.getLineJoin())&&(s=l.g),void 0===(r=this.stroke_.getLineCap())&&(r=l.d),void 0===(u=this.stroke_.getMiterLimit())&&(u=l.i));var d=2*(this.radius_+f)+1,p={strokeStyle:n,strokeWidth:f,size:d,lineCap:r,lineDash:c,lineDashOffset:h,lineJoin:s,miterLimit:u};if(void 0===t){var g=Object(o.a)(d,d);this.canvas_=g.canvas,e=d=this.canvas_.width,this.draw_(p,g,0,0),this.createHitDetectionCanvas_(p)}else{d=Math.round(d);var m,v=!this.fill_;v&&(m=this.drawHitDetectionCanvas_.bind(this,p));var y=this.getChecksum(),b=t.add(y,d,d,this.draw_.bind(this,p),m);this.canvas_=b.image,this.origin_=[b.offsetX,b.offsetY],e=b.image.width,v?(this.hitDetectionCanvas_=b.hitImage,this.hitDetectionImageSize_=[b.hitImage.width,b.hitImage.height]):(this.hitDetectionCanvas_=this.canvas_,this.hitDetectionImageSize_=[e,e])}this.anchor_=[d/2,d/2],this.size_=[d,d],this.imageSize_=[e,e]},e.prototype.draw_=function(t,e,n,r){var o,a,s;e.setTransform(1,0,0,1,0,0),e.translate(n,r),e.beginPath();var u=this.points_;if(u===1/0)e.arc(t.size/2,t.size/2,this.radius_,0,2*Math.PI,!0);else{var c=void 0!==this.radius2_?this.radius2_:this.radius_;for(c!==this.radius_&&(u*=2),o=0;o<=u;o++)a=2*o*Math.PI/u-Math.PI/2+this.angle_,s=o%2===0?this.radius_:c,e.lineTo(t.size/2+s*Math.cos(a),t.size/2+s*Math.sin(a))}if(this.fill_){var h=this.fill_.getColor();null===h&&(h=l.b),e.fillStyle=Object(i.a)(h),e.fill()}this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke()),e.closePath()},e.prototype.createHitDetectionCanvas_=function(t){if(this.hitDetectionImageSize_=[t.size,t.size],this.fill_)this.hitDetectionCanvas_=this.canvas_;else{var e=Object(o.a)(t.size,t.size);this.hitDetectionCanvas_=e.canvas,this.drawHitDetectionCanvas_(t,e,0,0)}},e.prototype.drawHitDetectionCanvas_=function(t,e,n,i){e.setTransform(1,0,0,1,0,0),e.translate(n,i),e.beginPath();var o=this.points_;if(o===1/0)e.arc(t.size/2,t.size/2,this.radius_,0,2*Math.PI,!0);else{var a,s,u,c=void 0!==this.radius2_?this.radius2_:this.radius_;for(c!==this.radius_&&(o*=2),a=0;a<=o;a++)u=2*a*Math.PI/o-Math.PI/2+this.angle_,s=a%2===0?this.radius_:c,e.lineTo(t.size/2+s*Math.cos(u),t.size/2+s*Math.sin(u))}e.fillStyle=Object(r.b)(l.b),e.fill(),this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.stroke()),e.closePath()},e.prototype.getChecksum=function(){var t=this.stroke_?this.stroke_.getChecksum():"-",e=this.fill_?this.fill_.getChecksum():"-";if(!this.checksums_||t!=this.checksums_[1]||e!=this.checksums_[2]||this.radius_!=this.checksums_[3]||this.radius2_!=this.checksums_[4]||this.angle_!=this.checksums_[5]||this.points_!=this.checksums_[6]){var n="r"+t+e+(void 0!==this.radius_?this.radius_.toString():"-")+(void 0!==this.radius2_?this.radius2_.toString():"-")+(void 0!==this.angle_?this.angle_.toString():"-")+(void 0!==this.points_?this.points_.toString():"-");this.checksums_=[n,t,e,this.radius_,this.radius2_,this.angle_,this.points_]}return this.checksums_[0]},e}(n(169).a);e.a=u},function(t,e,n){t.exports=function(t){"use strict";t=t&&t.hasOwnProperty("default")?t.default:t;var e={rgb2hsl:n,rgb2hsv:i,rgb2hwb:o,rgb2cmyk:a,rgb2keyword:s,rgb2xyz:l,rgb2lab:u,rgb2lch:function(t){return y(u(t))},hsl2rgb:c,hsl2hsv:function(t){var e=t[0],n=t[1]/100,r=t[2]/100;return 0===r?[0,0,0]:[e,2*(n*=(r*=2)<=1?r:2-r)/(r+n)*100,(r+n)/2*100]},hsl2hwb:function(t){return o(c(t))},hsl2cmyk:function(t){return a(c(t))},hsl2keyword:function(t){return s(c(t))},hsv2rgb:h,hsv2hsl:function(t){var e,n,r=t[0],i=t[1]/100,o=t[2]/100;return e=i*o,[r,100*(e=(e/=(n=(2-i)*o)<=1?n:2-n)||0),100*(n/=2)]},hsv2hwb:function(t){return o(h(t))},hsv2cmyk:function(t){return a(h(t))},hsv2keyword:function(t){return s(h(t))},hwb2rgb:f,hwb2hsl:function(t){return n(f(t))},hwb2hsv:function(t){return i(f(t))},hwb2cmyk:function(t){return a(f(t))},hwb2keyword:function(t){return s(f(t))},cmyk2rgb:d,cmyk2hsl:function(t){return n(d(t))},cmyk2hsv:function(t){return i(d(t))},cmyk2hwb:function(t){return o(d(t))},cmyk2keyword:function(t){return s(d(t))},keyword2rgb:w,keyword2hsl:function(t){return n(w(t))},keyword2hsv:function(t){return i(w(t))},keyword2hwb:function(t){return o(w(t))},keyword2cmyk:function(t){return a(w(t))},keyword2lab:function(t){return u(w(t))},keyword2xyz:function(t){return l(w(t))},xyz2rgb:p,xyz2lab:m,xyz2lch:function(t){return y(m(t))},lab2xyz:v,lab2rgb:_,lab2lch:y,lch2lab:x,lch2xyz:function(t){return v(x(t))},lch2rgb:function(t){return _(x(t))}};function n(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a;return s==a?e=0:r==s?e=(i-o)/l:i==s?e=2+(o-r)/l:o==s&&(e=4+(r-i)/l),(e=Math.min(60*e,360))<0&&(e+=360),n=(a+s)/2,[e,100*(s==a?0:n<=.5?l/(s+a):l/(2-s-a)),100*n]}function i(t){var e,n,r=t[0],i=t[1],o=t[2],a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a;return n=0==s?0:l/s*1e3/10,s==a?e=0:r==s?e=(i-o)/l:i==s?e=2+(o-r)/l:o==s&&(e=4+(r-i)/l),(e=Math.min(60*e,360))<0&&(e+=360),[e,n,s/255*1e3/10]}function o(t){var e=t[0],r=t[1],i=t[2];return[n(t)[0],1/255*Math.min(e,Math.min(r,i))*100,100*(i=1-1/255*Math.max(e,Math.max(r,i)))]}function a(t){var e,n=t[0]/255,r=t[1]/255,i=t[2]/255;return[100*((1-n-(e=Math.min(1-n,1-r,1-i)))/(1-e)||0),100*((1-r-e)/(1-e)||0),100*((1-i-e)/(1-e)||0),100*e]}function s(t){return C[JSON.stringify(t)]}function l(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*e+.7152*n+.0722*r),100*(.0193*e+.1192*n+.9505*r)]}function u(t){var e=l(t),n=e[0],r=e[1],i=e[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]}function c(t){var e,n,r,i,o,a=t[0]/360,s=t[1]/100,l=t[2]/100;if(0==s)return[o=255*l,o,o];e=2*l-(n=l<.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var u=0;u<3;u++)(r=a+1/3*-(u-1))<0&&r++,r>1&&r--,o=6*r<1?e+6*(n-e)*r:2*r<1?n:3*r<2?e+(n-e)*(2/3-r)*6:e,i[u]=255*o;return i}function h(t){var e=t[0]/60,n=t[1]/100,r=t[2]/100,i=Math.floor(e)%6,o=e-Math.floor(e),a=255*r*(1-n),s=255*r*(1-n*o),l=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,l,a];case 1:return[s,r,a];case 2:return[a,r,l];case 3:return[a,s,r];case 4:return[l,a,r];case 5:return[r,a,s]}}function f(t){var e,n,i,o,a=t[0]/360,s=t[1]/100,l=t[2]/100,u=s+l;switch(u>1&&(s/=u,l/=u),i=6*a-(e=Math.floor(6*a)),0!=(1&e)&&(i=1-i),o=s+i*((n=1-l)-s),e){default:case 6:case 0:r=n,g=o,b=s;break;case 1:r=o,g=n,b=s;break;case 2:r=s,g=n,b=o;break;case 3:r=s,g=o,b=n;break;case 4:r=o,g=s,b=n;break;case 5:r=n,g=s,b=o}return[255*r,255*g,255*b]}function d(t){var e=t[0]/100,n=t[1]/100,r=t[2]/100,i=t[3]/100;return[255*(1-Math.min(1,e*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]}function p(t){var e,n,r,i=t[0]/100,o=t[1]/100,a=t[2]/100;return n=-.9689*i+1.8758*o+.0415*a,r=.0557*i+-.204*o+1.057*a,e=(e=3.2406*i+-1.5372*o+-.4986*a)>.0031308?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*=12.92,[255*(e=Math.min(Math.max(0,e),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]}function m(t){var e=t[0],n=t[1],r=t[2];return n/=100,r/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(e-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]}function v(t){var e,n,r,i,o=t[0],a=t[1],s=t[2];return o<=8?i=(n=100*o/903.3)/100*7.787+16/116:(n=100*Math.pow((o+16)/116,3),i=Math.pow(n/100,1/3)),[e=e/95.047<=.008856?e=95.047*(a/500+i-16/116)/7.787:95.047*Math.pow(a/500+i,3),n,r=r/108.883<=.008859?r=108.883*(i-s/200-16/116)/7.787:108.883*Math.pow(i-s/200,3)]}function y(t){var e,n=t[0],r=t[1],i=t[2];return(e=360*Math.atan2(i,r)/2/Math.PI)<0&&(e+=360),[n,Math.sqrt(r*r+i*i),e]}function _(t){return p(v(t))}function x(t){var e,n=t[0],r=t[1];return e=t[2]/360*2*Math.PI,[n,r*Math.cos(e),r*Math.sin(e)]}function w(t){return O[t]}var O={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},C={};for(var S in O)C[JSON.stringify(O[S])]=S;var k=function(){return new j};for(var E in e){k[E+"Raw"]=function(t){return function(n){return"number"==typeof n&&(n=Array.prototype.slice.call(arguments)),e[t](n)}}(E);var T=/(\w+)2(\w+)/.exec(E),M=T[1],P=T[2];(k[M]=k[M]||{})[P]=k[E]=function(t){return function(n){"number"==typeof n&&(n=Array.prototype.slice.call(arguments));var r=e[t](n);if("string"==typeof r||void 0===r)return r;for(var i=0;i=0&&e<1?U(Math.round(255*e)):"")},rgbString:function(t,e){return e<1||t[3]&&t[3]<1?N(t,e):"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},rgbaString:N,percentString:function(t,e){if(e<1||t[3]&&t[3]<1)return W(t,e);var n=Math.round(t[0]/255*100),r=Math.round(t[1]/255*100),i=Math.round(t[2]/255*100);return"rgb("+n+"%, "+r+"%, "+i+"%)"},percentaString:W,hslString:function(t,e){return e<1||t[3]&&t[3]<1?z(t,e):"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:z,hwbString:function(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"},keyword:function(t){return G[t.slice(0,3)]}};function A(t){if(t){var e=[0,0,0],n=1,r=t.match(/^#([a-fA-F0-9]{3,4})$/i),i="";if(r){i=(r=r[1])[3];for(var o=0;on?(e+.05)/(n+.05):(n+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,n=(e[0]+t)%360;return e[0]=n<0?360+n:n,this.setValues("hsl",e),this},mix:function(t,e){var n=t,r=void 0===e?.5:e,i=2*r-1,o=this.alpha()-n.alpha(),a=((i*o===-1?i:(i+o)/(1+i*o))+1)/2,s=1-a;return this.rgb(a*this.red()+s*n.red(),a*this.green()+s*n.green(),a*this.blue()+s*n.blue()).alpha(this.alpha()*r+n.alpha()*(1-r))},toJSON:function(){return this.rgb()},clone:function(){var t,e,n=new V,r=this.values,i=n.values;for(var o in r)r.hasOwnProperty(o)&&(t=r[o],"[object Array]"===(e={}.toString.call(t))?i[o]=t.slice(0):"[object Number]"===e?i[o]=t:console.error("unexpected color value:",t));return n}}).spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},V.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},V.prototype.getValues=function(t){for(var e=this.values,n={},r=0;r=0;i--)e.call(n,t[i],i);else for(i=0;i=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,n=0,r=1;return 0===t?0:1===t?1:(n||(n=.3),r<1?(r=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/r),-r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n))},easeOutElastic:function(t){var e=1.70158,n=0,r=1;return 0===t?0:1===t?1:(n||(n=.3),r<1?(r=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/r),r*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/n)+1)},easeInOutElastic:function(t){var e=1.70158,n=0,r=1;return 0===t?0:2===(t/=.5)?1:(n||(n=.45),r<1?(r=1,e=n/4):e=n/(2*Math.PI)*Math.asin(1/r),t<1?r*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*-.5:r*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/n)*.5+1)},easeInBack:function(t){var e=1.70158;return t*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-q.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*q.easeInBounce(2*t):.5*q.easeOutBounce(2*t-1)+.5}},Z={effects:q};X.easingEffects=q;var $=Math.PI,J=$/180,Q=2*$,tt=$/2,et=$/4,nt=2*$/3,rt={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,n,r,i,o){if(o){var a=Math.min(o,i/2,r/2),s=e+a,l=n+a,u=e+r-a,c=n+i-a;t.moveTo(e,l),se.left-1e-6&&t.xe.top-1e-6&&t.y0&&this.requestAnimationFrame()},advance:function(){for(var t,e,n,r,i=this.animations,o=0;o=n?(ut.callback(t.onAnimationComplete,[t],e),e.animating=!1,i.splice(o,1)):++o}},yt=ut.options.resolve,bt=["push","pop","shift","splice","unshift"];function _t(t,e){var n=t._chartjs;if(n){var r=n.listeners,i=r.indexOf(e);-1!==i&&r.splice(i,1),r.length>0||(bt.forEach((function(e){delete t[e]})),delete t._chartjs)}}var xt=function(t,e){this.initialize(t,e)};ut.extend(xt.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){this.chart=t,this.index=e,this.linkScales(),this.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this,e=t.getMeta(),n=t.getDataset();null!==e.xAxisID&&e.xAxisID in t.chart.scales||(e.xAxisID=n.xAxisID||t.chart.options.scales.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in t.chart.scales||(e.yAxisID=n.yAxisID||t.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this.update(!0)},destroy:function(){this._data&&_t(this._data,this)},createMetaDataset:function(){var t=this.datasetElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(t){var e=this.dataElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index,_index:t})},addElements:function(){var t,e,n=this.getMeta(),r=this.getDataset().data||[],i=n.data;for(t=0,e=r.length;tn&&this.insertElements(n,r-n)},insertElements:function(t,e){for(var n=0;ns;)i-=2*Math.PI;for(;i=a&&i<=s,u=o>=n.innerRadius&&o<=n.outerRadius;return l&&u}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,n=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,n=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*n,y:t.y+Math.sin(e)*n}},draw:function(){var t,e=this._chart.ctx,n=this._view,r=n.startAngle,i=n.endAngle,o="inner"===n.borderAlign?.33:0;e.save(),e.beginPath(),e.arc(n.x,n.y,Math.max(n.outerRadius-o,0),r,i),e.arc(n.x,n.y,n.innerRadius,i,r,!0),e.closePath(),e.fillStyle=n.backgroundColor,e.fill(),n.borderWidth&&("inner"===n.borderAlign?(e.beginPath(),t=o/n.outerRadius,e.arc(n.x,n.y,n.outerRadius,r-t,i+t),n.innerRadius>o?(t=o/n.innerRadius,e.arc(n.x,n.y,n.innerRadius-o,i+t,r-t,!0)):e.arc(n.x,n.y,o,i+Math.PI/2,r-Math.PI/2),e.closePath(),e.clip(),e.beginPath(),e.arc(n.x,n.y,n.outerRadius,r,i),e.arc(n.x,n.y,n.innerRadius,i,r,!0),e.closePath(),e.lineWidth=2*n.borderWidth,e.lineJoin="round"):(e.lineWidth=n.borderWidth,e.lineJoin="bevel"),e.strokeStyle=n.borderColor,e.stroke()),e.restore()}}),Ct=ut.valueOrDefault,St=at.global.defaultColor;at._set("global",{elements:{line:{tension:.4,backgroundColor:St,borderWidth:3,borderColor:St,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var kt=pt.extend({draw:function(){var t,e,n,r,i=this._view,o=this._chart.ctx,a=i.spanGaps,s=this._children.slice(),l=at.global,u=l.elements.line,c=-1;for(this._loop&&s.length&&s.push(s[0]),o.save(),o.lineCap=i.borderCapStyle||u.borderCapStyle,o.setLineDash&&o.setLineDash(i.borderDash||u.borderDash),o.lineDashOffset=Ct(i.borderDashOffset,u.borderDashOffset),o.lineJoin=i.borderJoinStyle||u.borderJoinStyle,o.lineWidth=Ct(i.borderWidth,u.borderWidth),o.strokeStyle=i.borderColor||l.defaultColor,o.beginPath(),c=-1,t=0;tt.x&&(e=Dt(e,"left","right")):t.basen?n:r,r:l.right||i<0?0:i>e?e:i,b:l.bottom||o<0?0:o>n?n:o,l:l.left||a<0?0:a>e?e:a}}function Lt(t,e,n){var r=null===e,i=null===n,o=!(!t||r&&i)&&It(t);return o&&(r||e>=o.left&&e<=o.right)&&(i||n>=o.top&&n<=o.bottom)}at._set("global",{elements:{rectangle:{backgroundColor:jt,borderColor:jt,borderSkipped:"bottom",borderWidth:0}}});var Ft=pt.extend({draw:function(){var t=this._chart.ctx,e=this._view,n=function(t){var e=It(t),n=e.right-e.left,r=e.bottom-e.top,i=At(t,n/2,r/2);return{outer:{x:e.left,y:e.top,w:n,h:r},inner:{x:e.left+i.l,y:e.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b}}}(e),r=n.outer,i=n.inner;t.fillStyle=e.backgroundColor,t.fillRect(r.x,r.y,r.w,r.h),r.w===i.w&&r.h===i.h||(t.save(),t.beginPath(),t.rect(r.x,r.y,r.w,r.h),t.clip(),t.fillStyle=e.borderColor,t.rect(i.x,i.y,i.w,i.h),t.fill("evenodd"),t.restore())},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){return Lt(this._view,t,e)},inLabelRange:function(t,e){var n=this._view;return Rt(n)?Lt(n,t,null):Lt(n,null,e)},inXRange:function(t){return Lt(this._view,t,null)},inYRange:function(t){return Lt(this._view,null,t)},getCenterPoint:function(){var t,e,n=this._view;return Rt(n)?(t=n.x,e=(n.y+n.base)/2):(t=(n.x+n.base)/2,e=n.y),{x:t,y:e}},getArea:function(){var t=this._view;return Rt(t)?t.width*Math.abs(t.y-t.base):t.height*Math.abs(t.x-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}}),Nt={},Wt=Ot,zt=kt,Bt=Pt,Ut=Ft;Nt.Arc=Wt,Nt.Line=zt,Nt.Point=Bt,Nt.Rectangle=Ut;var Gt=ut.options.resolve;at._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}});var Yt=wt.extend({dataElementType:Nt.Rectangle,initialize:function(){var t,e=this;wt.prototype.initialize.apply(e,arguments),(t=e.getMeta()).stack=e.getDataset().stack,t.bar=!0},update:function(t){var e,n,r=this.getMeta().data;for(this._ruler=this.getRuler(),e=0,n=r.length;e0?Math.min(a,r-n):a,n=r;return a}(n,l):-1,pixels:l,start:a,end:s,stackCount:r,scale:n}},calculateBarValuePixels:function(t,e){var n,r,i,o,a,s,l=this.chart,u=this.getMeta(),c=this._getValueScale(),h=c.isHorizontal(),f=l.data.datasets,d=+c.getRightValue(f[t].data[e]),p=c.options.minBarLength,g=c.options.stacked,m=u.stack,v=0;if(g||void 0===g&&void 0!==m)for(n=0;n=0&&i>0)&&(v+=i));return o=c.getPixelForValue(v),s=(a=c.getPixelForValue(v+d))-o,void 0!==p&&Math.abs(s)=0&&!h||d<0&&h?o-p:o+p),{size:s,base:o,head:a,center:a+s/2}},calculateBarIndexPixels:function(t,e,n){var r=n.scale.options,i="flex"===r.barThickness?function(t,e,n){var r,i=e.pixels,o=i[t],a=t>0?i[t-1]:null,s=t');var n=t.data,r=n.datasets,i=n.labels;if(r.length)for(var o=0;o'),i[o]&&e.push(i[o]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(n,r){var i=t.getDatasetMeta(0),o=e.datasets[0],a=i.data[r],s=a&&a.custom||{},l=t.options.elements.arc;return{text:n,fillStyle:Xt([s.backgroundColor,o.backgroundColor,l.backgroundColor],void 0,r),strokeStyle:Xt([s.borderColor,o.borderColor,l.borderColor],void 0,r),lineWidth:Xt([s.borderWidth,o.borderWidth,l.borderWidth],void 0,r),hidden:isNaN(o.data[r])||i.data[r].hidden,index:r}})):[]}},onClick:function(t,e){var n,r,i,o=e.index,a=this.chart;for(n=0,r=(a.data.datasets||[]).length;n=Math.PI?-1:m<-Math.PI?1:0))+p,y={x:Math.cos(m),y:Math.sin(m)},b={x:Math.cos(v),y:Math.sin(v)},_=m<=0&&v>=0||m<=2*Math.PI&&2*Math.PI<=v,x=m<=.5*Math.PI&&.5*Math.PI<=v||m<=2.5*Math.PI&&2.5*Math.PI<=v,w=m<=-Math.PI&&-Math.PI<=v||m<=Math.PI&&Math.PI<=v,O=m<=.5*-Math.PI&&.5*-Math.PI<=v||m<=1.5*Math.PI&&1.5*Math.PI<=v,C=d/100,S={x:w?-1:Math.min(y.x*(y.x<0?1:C),b.x*(b.x<0?1:C)),y:O?-1:Math.min(y.y*(y.y<0?1:C),b.y*(b.y<0?1:C))},k={x:_?1:Math.max(y.x*(y.x>0?1:C),b.x*(b.x>0?1:C)),y:x?1:Math.max(y.y*(y.y>0?1:C),b.y*(b.y>0?1:C))},E={width:.5*(k.x-S.x),height:.5*(k.y-S.y)};u=Math.min(s/E.width,l/E.height),c={x:-.5*(k.x+S.x),y:-.5*(k.y+S.y)}}for(e=0,n=f.length;e0&&!isNaN(t)?2*Math.PI*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){var e,n,r,i,o,a,s,l,u=0,c=this.chart;if(!t)for(e=0,n=c.data.datasets.length;e(u=s>u?s:u)?l:u);return u},setHoverStyle:function(t){var e=t._model,n=t._options,r=ut.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=qt(n.hoverBackgroundColor,r(n.backgroundColor)),e.borderColor=qt(n.hoverBorderColor,r(n.borderColor)),e.borderWidth=qt(n.hoverBorderWidth,n.borderWidth)},_resolveElementOptions:function(t,e){var n,r,i,o=this.chart,a=this.getDataset(),s=t.custom||{},l=o.options.elements.arc,u={},c={chart:o,dataIndex:e,dataset:a,datasetIndex:this.index},h=["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"];for(n=0,r=h.length;n0&&te(l[t-1]._model,s)&&(n.controlPointPreviousX=u(n.controlPointPreviousX,s.left,s.right),n.controlPointPreviousY=u(n.controlPointPreviousY,s.top,s.bottom)),t');var n=t.data,r=n.datasets,i=n.labels;if(r.length)for(var o=0;o'),i[o]&&e.push(i[o]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(t){var e=t.data;return e.labels.length&&e.datasets.length?e.labels.map((function(n,r){var i=t.getDatasetMeta(0),o=e.datasets[0],a=i.data[r].custom||{},s=t.options.elements.arc;return{text:n,fillStyle:re([a.backgroundColor,o.backgroundColor,s.backgroundColor],void 0,r),strokeStyle:re([a.borderColor,o.borderColor,s.borderColor],void 0,r),lineWidth:re([a.borderWidth,o.borderWidth,s.borderWidth],void 0,r),hidden:isNaN(o.data[r])||i.data[r].hidden,index:r}})):[]}},onClick:function(t,e){var n,r,i,o=e.index,a=this.chart;for(n=0,r=(a.data.datasets||[]).length;n0&&(o=t.getDatasetMeta(o[0]._datasetIndex).data),o},"x-axis":function(t,e){return ge(t,e,{intersect:!1})},point:function(t,e){return fe(t,ce(e,t))},nearest:function(t,e,n){var r=ce(e,t);n.axis=n.axis||"xy";var i=pe(n.axis);return de(t,r,n.intersect,i)},x:function(t,e,n){var r=ce(e,t),i=[],o=!1;return he(t,(function(t){t.inXRange(r.x)&&i.push(t),t.inRange(r.x,r.y)&&(o=!0)})),n.intersect&&!o&&(i=[]),i},y:function(t,e,n){var r=ce(e,t),i=[],o=!1;return he(t,(function(t){t.inYRange(r.y)&&i.push(t),t.inRange(r.x,r.y)&&(o=!0)})),n.intersect&&!o&&(i=[]),i}}};function ve(t,e){return ut.where(t,(function(t){return t.position===e}))}function ye(t,e){t.forEach((function(t,e){return t._tmpIndex_=e,t})),t.sort((function(t,n){var r=e?n:t,i=e?t:n;return r.weight===i.weight?r._tmpIndex_-i._tmpIndex_:r.weight-i.weight})),t.forEach((function(t){delete t._tmpIndex_}))}function be(t,e){ut.each(t,(function(t){e[t.position]+=t.isHorizontal()?t.height:t.width}))}at._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var _e,xe={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){var n=t.boxes?t.boxes.indexOf(e):-1;-1!==n&&t.boxes.splice(n,1)},configure:function(t,e,n){for(var r,i=["fullWidth","position","weight"],o=i.length,a=0;a div {\n\tposition: absolute;\n\twidth: 1000000px;\n\theight: 1000000px;\n\tleft: 0;\n\ttop: 0;\n}\n\n.chartjs-size-monitor-shrink > div {\n\tposition: absolute;\n\twidth: 200%;\n\theight: 200%;\n\tleft: 0;\n\ttop: 0;\n}\n"}))&&_e.default||_e,Oe=["animationstart","webkitAnimationStart"],Ce={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function Se(t,e){var n=ut.getStyle(t,e),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?Number(r[1]):void 0}var ke=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(n){}return t}()&&{passive:!0};function Ee(t,e,n){t.addEventListener(e,n,ke)}function Te(t,e,n){t.removeEventListener(e,n,ke)}function Me(t,e,n,r,i){return{type:t,chart:e,native:i||null,x:void 0!==n?n:null,y:void 0!==r?r:null}}function Pe(t){var e=document.createElement("div");return e.className=t||"",e}function je(t,e,n){var r=t.$chartjs||(t.$chartjs={}),i=r.resizer=function(t){var e=Pe("chartjs-size-monitor"),n=Pe("chartjs-size-monitor-expand"),r=Pe("chartjs-size-monitor-shrink");n.appendChild(Pe()),r.appendChild(Pe()),e.appendChild(n),e.appendChild(r),e._reset=function(){n.scrollLeft=1e6,n.scrollTop=1e6,r.scrollLeft=1e6,r.scrollTop=1e6};var i=function(){e._reset(),t()};return Ee(n,"scroll",i.bind(n,"expand")),Ee(r,"scroll",i.bind(r,"shrink")),e}(function(t,e){var n=!1,r=[];return function(){r=Array.prototype.slice.call(arguments),e=e||this,n||(n=!0,ut.requestAnimFrame.call(window,(function(){n=!1,t.apply(e,r)})))}}((function(){if(r.resizer){var i=n.options.maintainAspectRatio&&t.parentNode,o=i?i.clientWidth:0;e(Me("resize",n)),i&&i.clientWidth0){var o=t[0];o.label?n=o.label:o.xLabel?n=o.xLabel:i>0&&o.index-1?t.split("\n"):t}function Ue(t){var e=t._xScale,n=t._yScale||t._scale,r=t._index,i=t._datasetIndex,o=t._chart.getDatasetMeta(i).controller,a=o._getIndexScale(),s=o._getValueScale();return{xLabel:e?e.getLabelForIndex(r,i):"",yLabel:n?n.getLabelForIndex(r,i):"",label:a?""+a.getLabelForIndex(r,i):"",value:s?""+s.getLabelForIndex(r,i):"",index:r,datasetIndex:i,x:t._model.x,y:t._model.y}}function Ge(t){var e=at.global;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,bodyFontColor:t.bodyFontColor,_bodyFontFamily:Ne(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:Ne(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:Ne(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:Ne(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:Ne(t.titleFontStyle,e.defaultFontStyle),titleFontSize:Ne(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:Ne(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:Ne(t.footerFontStyle,e.defaultFontStyle),footerFontSize:Ne(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}function Ye(t,e){return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-t.xPadding:t.x+t.xPadding}function Ve(t){return ze([],Be(t))}var He=pt.extend({initialize:function(){this._model=Ge(this._options),this._lastActive=[]},getTitle:function(){var t=this,e=t._options,n=e.callbacks,r=n.beforeTitle.apply(t,arguments),i=n.title.apply(t,arguments),o=n.afterTitle.apply(t,arguments),a=[];return a=ze(a,Be(r)),a=ze(a,Be(i)),a=ze(a,Be(o))},getBeforeBody:function(){return Ve(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(t,e){var n=this,r=n._options.callbacks,i=[];return ut.each(t,(function(t){var o={before:[],lines:[],after:[]};ze(o.before,Be(r.beforeLabel.call(n,t,e))),ze(o.lines,r.label.call(n,t,e)),ze(o.after,Be(r.afterLabel.call(n,t,e))),i.push(o)})),i},getAfterBody:function(){return Ve(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var t=this,e=t._options.callbacks,n=e.beforeFooter.apply(t,arguments),r=e.footer.apply(t,arguments),i=e.afterFooter.apply(t,arguments),o=[];return o=ze(o,Be(n)),o=ze(o,Be(r)),o=ze(o,Be(i))},update:function(t){var e,n,r=this,i=r._options,o=r._model,a=r._model=Ge(i),s=r._active,l=r._data,u={xAlign:o.xAlign,yAlign:o.yAlign},c={x:o.x,y:o.y},h={width:o.width,height:o.height},f={x:o.caretX,y:o.caretY};if(s.length){a.opacity=1;var d=[],p=[];f=We[i.position].call(r,s,r._eventPosition);var g=[];for(e=0,n=s.length;er.width&&(i=r.width-e.width),i<0&&(i=0)),"top"===c?o+=h:o-="bottom"===c?e.height+h:e.height/2,"center"===c?"left"===u?i+=h:"right"===u&&(i-=h):"left"===u?i-=f:"right"===u&&(i+=f),{x:i,y:o}}(a,h,u=function(t,e){var n,r,i,o,a,s=t._model,l=t._chart,u=t._chart.chartArea,c="center",h="center";s.yl.height-e.height&&(h="bottom");var f=(u.left+u.right)/2,d=(u.top+u.bottom)/2;"center"===h?(n=function(t){return t<=f},r=function(t){return t>f}):(n=function(t){return t<=e.width/2},r=function(t){return t>=l.width-e.width/2}),i=function(t){return t+e.width+s.caretSize+s.caretPadding>l.width},o=function(t){return t-e.width-s.caretSize-s.caretPadding<0},a=function(t){return t<=d?"top":"bottom"},n(s.x)?(c="left",i(s.x)&&(c="center",h=a(s.y))):r(s.x)&&(c="right",o(s.x)&&(c="center",h=a(s.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:c,yAlign:p.yAlign?p.yAlign:h}}(this,h),r._chart)}else a.opacity=0;return a.xAlign=u.xAlign,a.yAlign=u.yAlign,a.x=c.x,a.y=c.y,a.width=h.width,a.height=h.height,a.caretX=f.x,a.caretY=f.y,r._model=a,t&&i.custom&&i.custom.call(r,a),r},drawCaret:function(t,e){var n=this._chart.ctx,r=this._view,i=this.getCaretPosition(t,e,r);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)},getCaretPosition:function(t,e,n){var r,i,o,a,s,l,u=n.caretSize,c=n.cornerRadius,h=n.xAlign,f=n.yAlign,d=t.x,p=t.y,g=e.width,m=e.height;if("center"===f)s=p+m/2,"left"===h?(i=(r=d)-u,o=r,a=s+u,l=s-u):(i=(r=d+g)+u,o=r,a=s-u,l=s+u);else if("left"===h?(r=(i=d+c+u)-u,o=i+u):"right"===h?(r=(i=d+g-c-u)-u,o=i+u):(r=(i=n.caretX)-u,o=i+u),"top"===f)s=(a=p)-u,l=a;else{s=(a=p+m)+u,l=a;var v=o;o=r,r=v}return{x1:r,x2:i,x3:o,y1:a,y2:s,y3:l}},drawTitle:function(t,e,n){var r=e.title;if(r.length){t.x=Ye(e,e._titleAlign),n.textAlign=e._titleAlign,n.textBaseline="top";var i,o,a=e.titleFontSize,s=e.titleSpacing;for(n.fillStyle=e.titleFontColor,n.font=ut.fontString(a,e._titleFontStyle,e._titleFontFamily),i=0,o=r.length;i0&&n.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var n={width:e.width,height:e.height},r={x:e.x,y:e.y},i=Math.abs(e.opacity<.001)?0:e.opacity,o=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&o&&(t.save(),t.globalAlpha=i,this.drawBackground(r,e,t,n),r.y+=e.yPadding,this.drawTitle(r,e,t),this.drawBody(r,e,t),this.drawFooter(r,e,t),t.restore())}},handleEvent:function(t){var e,n=this,r=n._options;return n._lastActive=n._lastActive||[],"mouseout"===t.type?n._active=[]:n._active=n._chart.getElementsAtEventForMode(t,r.mode,r),(e=!ut.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(r.enabled||r.custom)&&(n._eventPosition={x:t.x,y:t.y},n.update(!0),n.pivot())),e}}),Ke=We,Xe=He;Xe.positioners=Ke;var qe=ut.valueOrDefault;function Ze(){return ut.merge({},[].slice.call(arguments),{merger:function(t,e,n,r){if("xAxes"===t||"yAxes"===t){var i,o,a,s=n[t].length;for(e[t]||(e[t]=[]),i=0;i=e[t].length&&e[t].push({}),!e[t][i].type||a.type&&a.type!==e[t][i].type?ut.merge(e[t][i],[Fe.getScaleDefaults(o),a]):ut.merge(e[t][i],a)}else ut._merger(t,e,n,r)}})}function $e(){return ut.merge({},[].slice.call(arguments),{merger:function(t,e,n,r){var i=e[t]||{},o=n[t];"scales"===t?e[t]=Ze(i,o):"scale"===t?e[t]=ut.merge(i,[Fe.getScaleDefaults(o.type),o]):ut._merger(t,e,n,r)}})}function Je(t){var e=t.options;ut.each(t.scales,(function(e){xe.removeBox(t,e)})),e=$e(at.global,at[t.config.type],e),t.options=t.config.options=e,t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.tooltip._options=e.tooltips,t.tooltip.initialize()}function Qe(t){return"top"===t||"bottom"===t}at._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var tn=function(t,e){return this.construct(t,e),this};ut.extend(tn.prototype,{construct:function(t,e){var n=this;e=function(t){var e=(t=t||{}).data=t.data||{};return e.datasets=e.datasets||[],e.labels=e.labels||[],t.options=$e(at.global,at[t.type],t.options||{}),t}(e);var r=Ae.acquireContext(t,e),i=r&&r.canvas,o=i&&i.height,a=i&&i.width;n.id=ut.uid(),n.ctx=r,n.canvas=i,n.config=e,n.width=a,n.height=o,n.aspectRatio=o?a/o:null,n.options=e.options,n._bufferedRender=!1,n.chart=n,n.controller=n,tn.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(t){n.config.data=t}}),r&&i?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return Le.notify(t,"beforeInit"),ut.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.initToolTip(),Le.notify(t,"afterInit"),t},clear:function(){return ut.canvas.clear(this),this},stop:function(){return vt.cancelAnimation(this),this},resize:function(t){var e=this,n=e.options,r=e.canvas,i=n.maintainAspectRatio&&e.aspectRatio||null,o=Math.max(0,Math.floor(ut.getMaximumWidth(r))),a=Math.max(0,Math.floor(i?o/i:ut.getMaximumHeight(r)));if((e.width!==o||e.height!==a)&&(r.width=e.width=o,r.height=e.height=a,r.style.width=o+"px",r.style.height=a+"px",ut.retinaScale(e,n.devicePixelRatio),!t)){var s={width:o,height:a};Le.notify(e,"resize",[s]),n.onResize&&n.onResize(e,s),e.stop(),e.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},n=t.scale;ut.each(e.xAxes,(function(t,e){t.id=t.id||"x-axis-"+e})),ut.each(e.yAxes,(function(t,e){t.id=t.id||"y-axis-"+e})),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var t=this,e=t.options,n=t.scales||{},r=[],i=Object.keys(n).reduce((function(t,e){return t[e]=!1,t}),{});e.scales&&(r=r.concat((e.scales.xAxes||[]).map((function(t){return{options:t,dtype:"category",dposition:"bottom"}})),(e.scales.yAxes||[]).map((function(t){return{options:t,dtype:"linear",dposition:"left"}})))),e.scale&&r.push({options:e.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),ut.each(r,(function(e){var r=e.options,o=r.id,a=qe(r.type,e.dtype);Qe(r.position)!==Qe(e.dposition)&&(r.position=e.dposition),i[o]=!0;var s=null;if(o in n&&n[o].type===a)(s=n[o]).options=r,s.ctx=t.ctx,s.chart=t;else{var l=Fe.getScaleConstructor(a);if(!l)return;s=new l({id:o,type:a,options:r,ctx:t.ctx,chart:t}),n[s.id]=s}s.mergeTicksOptions(),e.isDefault&&(t.scale=s)})),ut.each(i,(function(t,e){t||delete n[e]})),t.scales=n,Fe.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t=this,e=[];return ut.each(t.data.datasets,(function(n,r){var i=t.getDatasetMeta(r),o=n.type||t.config.type;if(i.type&&i.type!==o&&(t.destroyDatasetMeta(r),i=t.getDatasetMeta(r)),i.type=o,i.controller)i.controller.updateIndex(r),i.controller.linkScales();else{var a=ue[i.type];if(void 0===a)throw new Error('"'+i.type+'" is not a chart type.');i.controller=new a(t,r),e.push(i.controller)}}),t),e},resetElements:function(){var t=this;ut.each(t.data.datasets,(function(e,n){t.getDatasetMeta(n).controller.reset()}),t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e=this;if(t&&"object"===typeof t||(t={duration:t,lazy:arguments[1]}),Je(e),Le._invalidate(e),!1!==Le.notify(e,"beforeUpdate")){e.tooltip._data=e.data;var n=e.buildOrUpdateControllers();ut.each(e.data.datasets,(function(t,n){e.getDatasetMeta(n).controller.buildOrUpdateElements()}),e),e.updateLayout(),e.options.animation&&e.options.animation.duration&&ut.each(n,(function(t){t.reset()})),e.updateDatasets(),e.tooltip.initialize(),e.lastActive=[],Le.notify(e,"afterUpdate"),e._bufferedRender?e._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:e.render(t)}},updateLayout:function(){!1!==Le.notify(this,"beforeLayout")&&(xe.update(this,this.width,this.height),Le.notify(this,"afterScaleUpdate"),Le.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==Le.notify(this,"beforeDatasetsUpdate")){for(var t=0,e=this.data.datasets.length;t=0;--n)e.isDatasetVisible(n)&&e.drawDataset(n,t);Le.notify(e,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var n=this.getDatasetMeta(t),r={meta:n,index:t,easingValue:e};!1!==Le.notify(this,"beforeDatasetDraw",[r])&&(n.controller.draw(e),Le.notify(this,"afterDatasetDraw",[r]))},_drawTooltip:function(t){var e=this.tooltip,n={tooltip:e,easingValue:t};!1!==Le.notify(this,"beforeTooltipDraw",[n])&&(e.draw(),Le.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(t){return me.modes.single(this,t)},getElementsAtEvent:function(t){return me.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return me.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,n){var r=me.modes[e];return"function"===typeof r?r(this,t,n):[]},getDatasetAtEvent:function(t){return me.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this.data.datasets[t];e._meta||(e._meta={});var n=e._meta[this.id];return n||(n=e._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),n},getVisibleDatasetCount:function(){for(var t=0,e=0,n=this.data.datasets.length;e3?n[2]-n[1]:n[1]-n[0];Math.abs(r)>1&&t!==Math.floor(t)&&(r=t-Math.floor(t));var i=ut.log10(Math.abs(r)),o="";if(0!==t)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var a=ut.log10(Math.abs(t));o=t.toExponential(Math.floor(a)-Math.floor(i))}else{var s=-1*Math.floor(i);s=Math.max(Math.min(s,20),0),o=t.toFixed(s)}else o="0";return o},logarithmic:function(t,e,n){var r=t/Math.pow(10,Math.floor(ut.log10(t)));return 0===t?"0":1===r||2===r||5===r||0===e||e===n.length-1?t.toExponential():""}}},sn=ut.valueOrDefault,ln=ut.valueAtIndexOrDefault;function un(t){var e,n,r=[];for(e=0,n=t.length;eu&&ot.maxHeight){o--;break}o++,l=a*s}t.labelRotation=o},afterCalculateTickRotation:function(){ut.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){ut.callback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},n=un(t._ticks),r=t.options,i=r.ticks,o=r.scaleLabel,a=r.gridLines,s=t._isVisible(),l=r.position,u=t.isHorizontal(),c=ut.options._parseFont,h=c(i),f=r.gridLines.tickMarkLength;if(e.width=u?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:s&&a.drawTicks?f:0,e.height=u?s&&a.drawTicks?f:0:t.maxHeight,o.display&&s){var d=c(o),p=ut.options.toPadding(o.padding),g=d.lineHeight+p.height;u?e.height+=g:e.width+=g}if(i.display&&s){var m=ut.longestText(t.ctx,h.string,n,t.longestTextCache),v=ut.numberOfLabelLines(n),y=.5*h.size,b=t.options.ticks.padding;if(t._maxLabelLines=v,t.longestLabelWidth=m,u){var _=ut.toRadians(t.labelRotation),x=Math.cos(_),w=Math.sin(_)*m+h.lineHeight*v+y;e.height=Math.min(t.maxHeight,e.height+w+b),t.ctx.font=h.string;var O,C,S=cn(t.ctx,n[0],h.string),k=cn(t.ctx,n[n.length-1],h.string),E=t.getPixelForTick(0)-t.left,T=t.right-t.getPixelForTick(n.length-1);0!==t.labelRotation?(O="bottom"===l?x*S:x*y,C="bottom"===l?x*y:x*k):(O=S/2,C=k/2),t.paddingLeft=Math.max(O-E,0)+3,t.paddingRight=Math.max(C-T,0)+3}else i.mirror?m=0:m+=b+y,e.width=Math.min(t.maxWidth,e.width+m),t.paddingTop=h.size/2,t.paddingBottom=h.size/2}t.handleMargins(),t.width=e.width,t.height=e.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){ut.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(ut.isNullOrUndef(t))return NaN;if(("number"===typeof t||t instanceof Number)&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:ut.noop,getPixelForValue:ut.noop,getValueForPixel:ut.noop,getPixelForTick:function(t){var e=this,n=e.options.offset;if(e.isHorizontal()){var r=(e.width-(e.paddingLeft+e.paddingRight))/Math.max(e._ticks.length-(n?0:1),1),i=r*t+e.paddingLeft;n&&(i+=r/2);var o=e.left+i;return o+=e.isFullWidth()?e.margins.left:0}var a=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(a/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var n=(e.width-(e.paddingLeft+e.paddingRight))*t+e.paddingLeft,r=e.left+n;return r+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this.min,e=this.max;return this.beginAtZero?0:t<0&&e<0?e:t>0&&e>0?t:0},_autoSkip:function(t){var e,n,r=this,i=r.isHorizontal(),o=r.options.ticks.minor,a=t.length,s=!1,l=o.maxTicksLimit,u=r._tickSize()*(a-1),c=i?r.width-(r.paddingLeft+r.paddingRight):r.height-(r.paddingTop+r.PaddingBottom),h=[];for(u>c&&(s=1+Math.floor(u/c)),a>l&&(s=Math.max(s,1+Math.floor(a/l))),e=0;e1&&e%s>0&&delete n.label,h.push(n);return h},_tickSize:function(){var t=this,e=t.isHorizontal(),n=t.options.ticks.minor,r=ut.toRadians(t.labelRotation),i=Math.abs(Math.cos(r)),o=Math.abs(Math.sin(r)),a=n.autoSkipPadding||0,s=t.longestLabelWidth+a||0,l=ut.options._parseFont(n),u=t._maxLabelLines*l.lineHeight+a||0;return e?u*i>s*o?s/i:u/o:u*o0&&r>0&&(t.min=0)}var i=void 0!==e.min||void 0!==e.suggestedMin,o=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),i!==o&&t.min>=t.max&&(i?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:function(){var t,e=this.options.ticks,n=e.stepSize,r=e.maxTicksLimit;return n?t=Math.ceil(this.max/n)-Math.floor(this.min/n)+1:(t=this._computeTickLimit(),r=r||11),r&&(t=Math.min(r,t)),t},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:pn,buildTicks:function(){var t=this,e=t.options.ticks,n=t.getTickLimit(),r={maxTicks:n=Math.max(2,n),min:e.min,max:e.max,precision:e.precision,stepSize:ut.valueOrDefault(e.fixedStepSize,e.stepSize)},i=t.ticks=function(t,e){var n,r,i,o,a=[],s=t.stepSize,l=s||1,u=t.maxTicks-1,c=t.min,h=t.max,f=t.precision,d=e.min,p=e.max,g=ut.niceNum((p-d)/u/l)*l;if(g<1e-14&&gn(c)&&gn(h))return[d,p];(o=Math.ceil(p/g)-Math.floor(d/g))>u&&(g=ut.niceNum(o*g/u/l)*l),s||gn(f)?n=Math.pow(10,ut._decimalPlaces(g)):(n=Math.pow(10,f),g=Math.ceil(g*n)/n),r=Math.floor(d/g)*g,i=Math.ceil(p/g)*g,s&&(!gn(c)&&ut.almostWhole(c/g,g/1e3)&&(r=c),!gn(h)&&ut.almostWhole(h/g,g/1e3)&&(i=h)),o=(i-r)/g,o=ut.almostEquals(o,Math.round(o),g/1e3)?Math.round(o):Math.ceil(o),r=Math.round(r*n)/n,i=Math.round(i*n)/n,a.push(gn(c)?r:c);for(var m=1;mt.max)&&(t.max=r))}))}));t.min=isFinite(t.min)&&!isNaN(t.min)?t.min:0,t.max=isFinite(t.max)&&!isNaN(t.max)?t.max:1,this.handleTickRangeOptions()},_computeTickLimit:function(){var t;return this.isHorizontal()?Math.ceil(this.width/40):(t=ut.options._parseFont(this.options.ticks),Math.ceil(this.height/t.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e=this,n=e.start,r=+e.getRightValue(t),i=e.end-n;return e.isHorizontal()?e.left+e.width/i*(r-n):e.bottom-e.height/i*(r-n)},getValueForPixel:function(t){var e=this,n=e.isHorizontal(),r=n?e.width:e.height,i=(n?t-e.left:e.bottom-t)/r;return e.start+(e.end-e.start)*i},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}}),bn=vn;yn._defaults=bn;var _n=ut.valueOrDefault,xn={position:"left",ticks:{callback:an.formatters.logarithmic}};function wn(t,e){return ut.isFinite(t)&&t>=0?t:e}var On=hn.extend({determineDataLimits:function(){var t=this,e=t.options,n=t.chart,r=n.data.datasets,i=t.isHorizontal();function o(e){return i?e.xAxisID===t.id:e.yAxisID===t.id}t.min=null,t.max=null,t.minNotZero=null;var a=e.stacked;if(void 0===a&&ut.each(r,(function(t,e){if(!a){var r=n.getDatasetMeta(e);n.isDatasetVisible(e)&&o(r)&&void 0!==r.stack&&(a=!0)}})),e.stacked||a){var s={};ut.each(r,(function(r,i){var a=n.getDatasetMeta(i),l=[a.type,void 0===e.stacked&&void 0===a.stack?i:"",a.stack].join(".");n.isDatasetVisible(i)&&o(a)&&(void 0===s[l]&&(s[l]=[]),ut.each(r.data,(function(e,n){var r=s[l],i=+t.getRightValue(e);isNaN(i)||a.data[n].hidden||i<0||(r[n]=r[n]||0,r[n]+=i)})))})),ut.each(s,(function(e){if(e.length>0){var n=ut.min(e),r=ut.max(e);t.min=null===t.min?n:Math.min(t.min,n),t.max=null===t.max?r:Math.max(t.max,r)}}))}else ut.each(r,(function(e,r){var i=n.getDatasetMeta(r);n.isDatasetVisible(r)&&o(i)&&ut.each(e.data,(function(e,n){var r=+t.getRightValue(e);isNaN(r)||i.data[n].hidden||r<0||((null===t.min||rt.max)&&(t.max=r),0!==r&&(null===t.minNotZero||r0?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(ut.log10(t.max))):t.minNotZero=1)},buildTicks:function(){var t=this,e=t.options.ticks,n=!t.isHorizontal(),r={min:wn(e.min),max:wn(e.max)},i=t.ticks=function(t,e){var n,r,i=[],o=_n(t.min,Math.pow(10,Math.floor(ut.log10(e.min)))),a=Math.floor(ut.log10(e.max)),s=Math.ceil(e.max/Math.pow(10,a));0===o?(n=Math.floor(ut.log10(e.minNotZero)),r=Math.floor(e.minNotZero/Math.pow(10,n)),i.push(o),o=r*Math.pow(10,n)):(n=Math.floor(ut.log10(o)),r=Math.floor(o/Math.pow(10,n)));var l=n<0?Math.pow(10,Math.abs(n)):1;do{i.push(o),10===++r&&(r=1,l=++n>=0?1:l),o=Math.round(r*Math.pow(10,n)*l)/l}while(ni?{start:e-n,end:e}:{start:e,end:e+n}}function Rn(t){return 0===t||180===t?"center":t<180?"left":"right"}function In(t,e,n,r){var i,o,a=n.y+r/2;if(ut.isArray(e))for(i=0,o=e.length;i270||t<90)&&(n.y-=e.h)}function An(t){return ut.isNumber(t)?t:0}var Ln=mn.extend({setDimensions:function(){var t=this;t.width=t.maxWidth,t.height=t.maxHeight,t.paddingTop=Pn(t.options)/2,t.xCenter=Math.floor(t.width/2),t.yCenter=Math.floor((t.height-t.paddingTop)/2),t.drawingArea=Math.min(t.height-t.paddingTop,t.width)/2},determineDataLimits:function(){var t=this,e=t.chart,n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;ut.each(e.data.datasets,(function(i,o){if(e.isDatasetVisible(o)){var a=e.getDatasetMeta(o);ut.each(i.data,(function(e,i){var o=+t.getRightValue(e);isNaN(o)||a.data[i].hidden||(n=Math.min(o,n),r=Math.max(o,r))}))}})),t.min=n===Number.POSITIVE_INFINITY?0:n,t.max=r===Number.NEGATIVE_INFINITY?0:r,t.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/Pn(this.options))},convertTicksToLabels:function(){var t=this;mn.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map(t.options.pointLabels.callback,t)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t=this.options;t.display&&t.pointLabels.display?function(t){var e,n,r,i=ut.options._parseFont(t.options.pointLabels),o={l:0,r:t.width,t:0,b:t.height-t.paddingTop},a={};t.ctx.font=i.string,t._pointLabelSizes=[];var s,l,u,c=Mn(t);for(e=0;eo.r&&(o.r=d.end,a.r=h),p.starto.b&&(o.b=p.end,a.b=h)}t.setReductions(t.drawingArea,o,a)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(t,e,n){var r=this,i=e.l/Math.sin(n.l),o=Math.max(e.r-r.width,0)/Math.sin(n.r),a=-e.t/Math.cos(n.t),s=-Math.max(e.b-(r.height-r.paddingTop),0)/Math.cos(n.b);i=An(i),o=An(o),a=An(a),s=An(s),r.drawingArea=Math.min(Math.floor(t-(i+o)/2),Math.floor(t-(a+s)/2)),r.setCenterPoint(i,o,a,s)},setCenterPoint:function(t,e,n,r){var i=this,o=i.width-e-i.drawingArea,a=t+i.drawingArea,s=n+i.drawingArea,l=i.height-i.paddingTop-r-i.drawingArea;i.xCenter=Math.floor((a+o)/2+i.left),i.yCenter=Math.floor((s+l)/2+i.top+i.paddingTop)},getIndexAngle:function(t){return t*(2*Math.PI/Mn(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e=this;if(null===t)return 0;var n=e.drawingArea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*n:(t-e.min)*n},getPointPosition:function(t,e){var n=this.getIndexAngle(t)-Math.PI/2;return{x:Math.cos(n)*e+this.xCenter,y:Math.sin(n)*e+this.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this.min,e=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:t<0&&e<0?e:t>0&&e>0?t:0)},draw:function(){var t=this,e=t.options,n=e.gridLines,r=e.ticks;if(e.display){var i=t.ctx,o=this.getIndexAngle(0),a=ut.options._parseFont(r);(e.angleLines.display||e.pointLabels.display)&&function(t){var e=t.ctx,n=t.options,r=n.angleLines,i=n.gridLines,o=n.pointLabels,a=Sn(r.lineWidth,i.lineWidth),s=Sn(r.color,i.color),l=Pn(n);e.save(),e.lineWidth=a,e.strokeStyle=s,e.setLineDash&&(e.setLineDash(En([r.borderDash,i.borderDash,[]])),e.lineDashOffset=En([r.borderDashOffset,i.borderDashOffset,0]));var u=t.getDistanceFromCenterForValue(n.ticks.reverse?t.min:t.max),c=ut.options._parseFont(o);e.font=c.string,e.textBaseline="middle";for(var h=Mn(t)-1;h>=0;h--){if(r.display&&a&&s){var f=t.getPointPosition(h,u);e.beginPath(),e.moveTo(t.xCenter,t.yCenter),e.lineTo(f.x,f.y),e.stroke()}if(o.display){var d=0===h?l/2:0,p=t.getPointPosition(h,u+d+5),g=kn(o.fontColor,h,at.global.defaultFontColor);e.fillStyle=g;var m=t.getIndexAngle(h),v=ut.toDegrees(m);e.textAlign=Rn(v),Dn(v,t._pointLabelSizes[h],p),In(e,t.pointLabels[h]||"",p,c.lineHeight)}}e.restore()}(t),ut.each(t.ticks,(function(e,s){if(s>0||r.reverse){var l=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]);if(n.display&&0!==s&&function(t,e,n,r){var i,o=t.ctx,a=e.circular,s=Mn(t),l=kn(e.color,r-1),u=kn(e.lineWidth,r-1);if((a||s)&&l&&u){if(o.save(),o.strokeStyle=l,o.lineWidth=u,o.setLineDash&&(o.setLineDash(e.borderDash||[]),o.lineDashOffset=e.borderDashOffset||0),o.beginPath(),a)o.arc(t.xCenter,t.yCenter,n,0,2*Math.PI);else{i=t.getPointPosition(0,n),o.moveTo(i.x,i.y);for(var c=1;c=0&&a<=s;){if(i=t[(r=a+s>>1)-1]||null,o=t[r],!i)return{lo:null,hi:o};if(o[e]n))return{lo:i,hi:o};s=r-1}}return{lo:o,hi:null}}(t,e,n),o=i.lo?i.hi?i.lo:t[t.length-2]:t[0],a=i.lo?i.hi?i.hi:t[t.length-1]:t[1],s=a[e]-o[e],l=s?(n-o[e])/s:0,u=(a[r]-o[r])*l;return o[r]+u}function Hn(t,e){var n=t._adapter,r=t.options.time,i=r.parser,o=i||r.format,a=e;return"function"===typeof i&&(a=i(a)),ut.isFinite(a)||(a="string"===typeof o?n.parse(a,o):n.parse(a)),null!==a?+a:(i||"function"!==typeof o||(a=o(e),ut.isFinite(a)||(a=n.parse(a))),a)}function Kn(t,e){if(ut.isNullOrUndef(e))return null;var n=t.options.time,r=Hn(t,t.getRightValue(e));return null===r||n.round&&(r=+t._adapter.startOf(r,n.round)),r}function Xn(t){for(var e=Un.indexOf(t)+1,n=Un.length;e=i&&n<=o&&u.push(n);return r.min=i,r.max=o,r._unit=s.unit||function(t,e,n,r,i){var o,a;for(o=Un.length-1;o>=Un.indexOf(n);o--)if(a=Un[o],Bn[a].common&&t._adapter.diff(i,r,a)>=e.length)return a;return Un[n?Un.indexOf(n):0]}(r,u,s.minUnit,r.min,r.max),r._majorUnit=Xn(r._unit),r._table=function(t,e,n,r){if("linear"===r||!t.length)return[{time:e,pos:0},{time:n,pos:1}];var i,o,a,s,l,u=[],c=[e];for(i=0,o=t.length;ie&&s=0&&t0?a:1}}),$n={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};Zn._defaults=$n;var Jn={category:fn,linear:yn,logarithmic:On,radialLinear:Ln,time:Zn},Qn={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};on._date.override("function"===typeof t?{_id:"moment",formats:function(){return Qn},parse:function(e,n){return"string"===typeof e&&"string"===typeof n?e=t(e,n):e instanceof t||(e=t(e)),e.isValid()?e.valueOf():null},format:function(e,n){return t(e).format(n)},add:function(e,n,r){return t(e).add(n,r).valueOf()},diff:function(e,n,r){return t.duration(t(e).diff(t(n))).as(r)},startOf:function(e,n,r){return e=t(e),"isoWeek"===n?e.isoWeekday(r).valueOf():e.startOf(n).valueOf()},endOf:function(e,n){return t(e).endOf(n).valueOf()},_create:function(e){return t(e)}}:{}),at._set("global",{plugins:{filler:{propagate:!0}}});var tr={dataset:function(t){var e=t.fill,n=t.chart,r=n.getDatasetMeta(e),i=r&&n.isDatasetVisible(e)&&r.dataset._children||[],o=i.length||0;return o?function(t,e){return e=n)&&r;switch(o){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return o;default:return!1}}function nr(t){var e,n=t.el._model||{},r=t.el._scale||{},i=t.fill,o=null;if(isFinite(i))return null;if("start"===i?o=void 0===n.scaleBottom?r.bottom:n.scaleBottom:"end"===i?o=void 0===n.scaleTop?r.top:n.scaleTop:void 0!==n.scaleZero?o=n.scaleZero:r.getBasePosition?o=r.getBasePosition():r.getBasePixel&&(o=r.getBasePixel()),void 0!==o&&null!==o){if(void 0!==o.x&&void 0!==o.y)return o;if(ut.isFinite(o))return{x:(e=r.isHorizontal())?o:null,y:e?null:o}}return null}function rr(t,e,n){var r,i=t[e].fill,o=[e];if(!n)return i;for(;!1!==i&&-1===o.indexOf(i);){if(!isFinite(i))return i;if(!(r=t[i]))return!1;if(r.visible)return i;o.push(i),i=r.fill}return!1}function ir(t){var e=t.fill,n="dataset";return!1===e?null:(isFinite(e)||(n="boundary"),tr[n](t))}function or(t){return t&&!t.skip}function ar(t,e,n,r,i){var o;if(r&&i){for(t.moveTo(e[0].x,e[0].y),o=1;o0;--o)ut.canvas.lineTo(t,n[o],n[o-1],!0)}}var sr={id:"filler",afterDatasetsUpdate:function(t,e){var n,r,i,o,a=(t.data.datasets||[]).length,s=e.propagate,l=[];for(r=0;re?e:t.boxWidth}at._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var n=e.datasetIndex,r=this.chart,i=r.getDatasetMeta(n);i.hidden=null===i.hidden?!r.data.datasets[n].hidden:null,r.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data;return ut.isArray(e.datasets)?e.datasets.map((function(e,n){return{text:e.label,fillStyle:ut.isArray(e.backgroundColor)?e.backgroundColor[0]:e.backgroundColor,hidden:!t.isDatasetVisible(n),lineCap:e.borderCapStyle,lineDash:e.borderDash,lineDashOffset:e.borderDashOffset,lineJoin:e.borderJoinStyle,lineWidth:e.borderWidth,strokeStyle:e.borderColor,pointStyle:e.pointStyle,datasetIndex:n}}),this):[]}}},legendCallback:function(t){var e=[];e.push('
    ');for(var n=0;n'),t.data.datasets[n].label&&e.push(t.data.datasets[n].label),e.push("");return e.push("
"),e.join("")}});var hr=pt.extend({initialize:function(t){ut.extend(this,t),this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1},beforeUpdate:lr,update:function(t,e,n){var r=this;return r.beforeUpdate(),r.maxWidth=t,r.maxHeight=e,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:lr,beforeSetDimensions:lr,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:lr,beforeBuildLabels:lr,buildLabels:function(){var t=this,e=t.options.labels||{},n=ut.callback(e.generateLabels,[t.chart],t)||[];e.filter&&(n=n.filter((function(n){return e.filter(n,t.chart.data)}))),t.options.reverse&&n.reverse(),t.legendItems=n},afterBuildLabels:lr,beforeFit:lr,fit:function(){var t=this,e=t.options,n=e.labels,r=e.display,i=t.ctx,o=ut.options._parseFont(n),a=o.size,s=t.legendHitBoxes=[],l=t.minSize,u=t.isHorizontal();if(u?(l.width=t.maxWidth,l.height=r?10:0):(l.width=r?10:0,l.height=t.maxHeight),r)if(i.font=o.string,u){var c=t.lineWidths=[0],h=0;i.textAlign="left",i.textBaseline="top",ut.each(t.legendItems,(function(t,e){var r=cr(n,a)+a/2+i.measureText(t.text).width;(0===e||c[c.length-1]+r+n.padding>l.width)&&(h+=a+n.padding,c[c.length-(e>0?0:1)]=n.padding),s[e]={left:0,top:0,width:r,height:a},c[c.length-1]+=r+n.padding})),l.height+=h}else{var f=n.padding,d=t.columnWidths=[],p=n.padding,g=0,m=0,v=a+f;ut.each(t.legendItems,(function(t,e){var r=cr(n,a)+a/2+i.measureText(t.text).width;e>0&&m+v>l.height-f&&(p+=g+n.padding,d.push(g),g=0,m=0),g=Math.max(g,r),m+=v,s[e]={left:0,top:0,width:r,height:a}})),p+=g,d.push(g),l.width+=p}t.width=l.width,t.height=l.height},afterFit:lr,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,e=t.options,n=e.labels,r=at.global,i=r.defaultColor,o=r.elements.line,a=t.width,s=t.lineWidths;if(e.display){var l,u=t.ctx,c=ur(n.fontColor,r.defaultFontColor),h=ut.options._parseFont(n),f=h.size;u.textAlign="left",u.textBaseline="middle",u.lineWidth=.5,u.strokeStyle=c,u.fillStyle=c,u.font=h.string;var d=cr(n,f),p=t.legendHitBoxes,g=t.isHorizontal();l=g?{x:t.left+(a-s[0])/2+n.padding,y:t.top+n.padding,line:0}:{x:t.left+n.padding,y:t.top+n.padding,line:0};var m=f+n.padding;ut.each(t.legendItems,(function(r,c){var h=u.measureText(r.text).width,v=d+f/2+h,y=l.x,b=l.y;g?c>0&&y+v+n.padding>t.left+t.minSize.width&&(b=l.y+=m,l.line++,y=l.x=t.left+(a-s[l.line])/2+n.padding):c>0&&b+m>t.top+t.minSize.height&&(y=l.x=y+t.columnWidths[l.line]+n.padding,b=l.y=t.top+n.padding,l.line++),function(t,n,r){if(!(isNaN(d)||d<=0)){u.save();var a=ur(r.lineWidth,o.borderWidth);if(u.fillStyle=ur(r.fillStyle,i),u.lineCap=ur(r.lineCap,o.borderCapStyle),u.lineDashOffset=ur(r.lineDashOffset,o.borderDashOffset),u.lineJoin=ur(r.lineJoin,o.borderJoinStyle),u.lineWidth=a,u.strokeStyle=ur(r.strokeStyle,i),u.setLineDash&&u.setLineDash(ur(r.lineDash,o.borderDash)),e.labels&&e.labels.usePointStyle){var s=d*Math.SQRT2/2,l=t+d/2,c=n+f/2;ut.canvas.drawPoint(u,r.pointStyle,s,l,c)}else 0!==a&&u.strokeRect(t,n,d,f),u.fillRect(t,n,d,f);u.restore()}}(y,b,r),p[c].left=y,p[c].top=b,function(t,e,n,r){var i=f/2,o=d+i+t,a=e+i;u.fillText(n.text,o,a),n.hidden&&(u.beginPath(),u.lineWidth=2,u.moveTo(o,a),u.lineTo(o+r,a),u.stroke())}(y,b,r,h),g?l.x+=v+n.padding:l.y+=m}))}},_getLegendItemAt:function(t,e){var n,r,i,o=this;if(t>=o.left&&t<=o.right&&e>=o.top&&e<=o.bottom)for(i=o.legendHitBoxes,n=0;n=(r=i[n]).left&&t<=r.left+r.width&&e>=r.top&&e<=r.top+r.height)return o.legendItems[n];return null},handleEvent:function(t){var e,n=this,r=n.options,i="mouseup"===t.type?"click":t.type;if("mousemove"===i){if(!r.onHover&&!r.onLeave)return}else{if("click"!==i)return;if(!r.onClick)return}e=n._getLegendItemAt(t.x,t.y),"click"===i?e&&r.onClick&&r.onClick.call(n,t.native,e):(r.onLeave&&e!==n._hoveredItem&&(n._hoveredItem&&r.onLeave.call(n,t.native,n._hoveredItem),n._hoveredItem=e),r.onHover&&e&&r.onHover.call(n,t.native,e))}});function fr(t,e){var n=new hr({ctx:t.ctx,options:e,chart:t});xe.configure(t,n,e),xe.addBox(t,n),t.legend=n}var dr={id:"legend",_element:hr,beforeInit:function(t){var e=t.options.legend;e&&fr(t,e)},beforeUpdate:function(t){var e=t.options.legend,n=t.legend;e?(ut.mergeIf(e,at.global.legend),n?(xe.configure(t,n,e),n.options=e):fr(t,e)):n&&(xe.removeBox(t,n),delete t.legend)},afterEvent:function(t,e){var n=t.legend;n&&n.handleEvent(e)}},pr=ut.noop;at._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var gr=pt.extend({initialize:function(t){ut.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:pr,update:function(t,e,n){var r=this;return r.beforeUpdate(),r.maxWidth=t,r.maxHeight=e,r.margins=n,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:pr,beforeSetDimensions:pr,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:pr,beforeBuildLabels:pr,buildLabels:pr,afterBuildLabels:pr,beforeFit:pr,fit:function(){var t=this,e=t.options,n=e.display,r=t.minSize,i=ut.isArray(e.text)?e.text.length:1,o=ut.options._parseFont(e),a=n?i*o.lineHeight+2*e.padding:0;t.isHorizontal()?(r.width=t.maxWidth,r.height=a):(r.width=a,r.height=t.maxHeight),t.width=r.width,t.height=r.height},afterFit:pr,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,n=t.options;if(n.display){var r,i,o,a=ut.options._parseFont(n),s=a.lineHeight,l=s/2+n.padding,u=0,c=t.top,h=t.left,f=t.bottom,d=t.right;e.fillStyle=ut.valueOrDefault(n.fontColor,at.global.defaultFontColor),e.font=a.string,t.isHorizontal()?(i=h+(d-h)/2,o=c+l,r=d-h):(i="left"===n.position?h+l:d-l,o=c+(f-c)/2,r=f-c,u=Math.PI*("left"===n.position?-.5:.5)),e.save(),e.translate(i,o),e.rotate(u),e.textAlign="center",e.textBaseline="middle";var p=n.text;if(ut.isArray(p))for(var g=0,m=0;m=0;r--){var i=t[r];if(e(i))return i}},ut.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},ut.almostEquals=function(t,e,n){return Math.abs(t-e)t},ut.max=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.max(t,e)}),Number.NEGATIVE_INFINITY)},ut.min=function(t){return t.reduce((function(t,e){return isNaN(e)?t:Math.min(t,e)}),Number.POSITIVE_INFINITY)},ut.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0===(t=+t)||isNaN(t)?t:t>0?1:-1},ut.log10=Math.log10?function(t){return Math.log10(t)}:function(t){var e=Math.log(t)*Math.LOG10E,n=Math.round(e);return t===Math.pow(10,n)?n:e},ut.toRadians=function(t){return t*(Math.PI/180)},ut.toDegrees=function(t){return t*(180/Math.PI)},ut._decimalPlaces=function(t){if(ut.isFinite(t)){for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n}},ut.getAngleFromPoint=function(t,e){var n=e.x-t.x,r=e.y-t.y,i=Math.sqrt(n*n+r*r),o=Math.atan2(r,n);return o<-.5*Math.PI&&(o+=2*Math.PI),{angle:o,distance:i}},ut.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},ut.aliasPixel=function(t){return t%2===0?0:.5},ut._alignPixel=function(t,e,n){var r=t.currentDevicePixelRatio,i=n/2;return Math.round((e-i)*r)/r+i},ut.splineCurve=function(t,e,n,r){var i=t.skip?e:t,o=e,a=n.skip?e:n,s=Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2)),l=Math.sqrt(Math.pow(a.x-o.x,2)+Math.pow(a.y-o.y,2)),u=s/(s+l),c=l/(s+l),h=r*(u=isNaN(u)?0:u),f=r*(c=isNaN(c)?0:c);return{previous:{x:o.x-h*(a.x-i.x),y:o.y-h*(a.y-i.y)},next:{x:o.x+f*(a.x-i.x),y:o.y+f*(a.y-i.y)}}},ut.EPSILON=Number.EPSILON||1e-14,ut.splineCurveMonotone=function(t){var e,n,r,i,o,a,s,l,u,c=(t||[]).map((function(t){return{model:t._model,deltaK:0,mK:0}})),h=c.length;for(e=0;e0?c[e-1]:null,(i=e0?c[e-1]:null,i=e=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},ut.previousItem=function(t,e,n){return n?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},ut.niceNum=function(t,e){var n=Math.floor(ut.log10(t)),r=t/Math.pow(10,n);return(e?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10)*Math.pow(10,n)},ut.requestAnimFrame="undefined"===typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},ut.getRelativePosition=function(t,e){var n,r,i=t.originalEvent||t,o=t.target||t.srcElement,a=o.getBoundingClientRect(),s=i.touches;s&&s.length>0?(n=s[0].clientX,r=s[0].clientY):(n=i.clientX,r=i.clientY);var l=parseFloat(ut.getStyle(o,"padding-left")),u=parseFloat(ut.getStyle(o,"padding-top")),c=parseFloat(ut.getStyle(o,"padding-right")),h=parseFloat(ut.getStyle(o,"padding-bottom")),f=a.right-a.left-l-c,d=a.bottom-a.top-u-h;return{x:n=Math.round((n-a.left-l)/f*o.width/e.currentDevicePixelRatio),y:r=Math.round((r-a.top-u)/d*o.height/e.currentDevicePixelRatio)}},ut.getConstraintWidth=function(t){return n(t,"max-width","clientWidth")},ut.getConstraintHeight=function(t){return n(t,"max-height","clientHeight")},ut._calculatePadding=function(t,e,n){return(e=ut.getStyle(t,e)).indexOf("%")>-1?n*parseInt(e,10)/100:parseInt(e,10)},ut._getParentNode=function(t){var e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e},ut.getMaximumWidth=function(t){var e=ut._getParentNode(t);if(!e)return t.clientWidth;var n=e.clientWidth,r=n-ut._calculatePadding(e,"padding-left",n)-ut._calculatePadding(e,"padding-right",n),i=ut.getConstraintWidth(t);return isNaN(i)?r:Math.min(r,i)},ut.getMaximumHeight=function(t){var e=ut._getParentNode(t);if(!e)return t.clientHeight;var n=e.clientHeight,r=n-ut._calculatePadding(e,"padding-top",n)-ut._calculatePadding(e,"padding-bottom",n),i=ut.getConstraintHeight(t);return isNaN(i)?r:Math.min(r,i)},ut.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},ut.retinaScale=function(t,e){var n=t.currentDevicePixelRatio=e||"undefined"!==typeof window&&window.devicePixelRatio||1;if(1!==n){var r=t.canvas,i=t.height,o=t.width;r.height=i*n,r.width=o*n,t.ctx.scale(n,n),r.style.height||r.style.width||(r.style.height=i+"px",r.style.width=o+"px")}},ut.fontString=function(t,e,n){return e+" "+t+"px "+n},ut.longestText=function(t,e,n,r){var i=(r=r||{}).data=r.data||{},o=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},o=r.garbageCollect=[],r.font=e),t.font=e;var a=0;ut.each(n,(function(e){void 0!==e&&null!==e&&!0!==ut.isArray(e)?a=ut.measureText(t,i,o,a,e):ut.isArray(e)&&ut.each(e,(function(e){void 0===e||null===e||ut.isArray(e)||(a=ut.measureText(t,i,o,a,e))}))}));var s=o.length/2;if(s>n.length){for(var l=0;lr&&(r=o),r},ut.numberOfLabelLines=function(t){var e=1;return ut.each(t,(function(t){ut.isArray(t)&&t.length>e&&(e=t.length)})),e},ut.color=H?function(t){return t instanceof CanvasGradient&&(t=at.global.defaultColor),H(t)}:function(t){return console.error("Color.js not found!"),t},ut.getHoverColor=function(t){return t instanceof CanvasPattern||t instanceof CanvasGradient?t:ut.color(t).saturate(.5).darken(.1).rgbString()}}(),en._adapters=on,en.Animation=mt,en.animationService=vt,en.controllers=ue,en.DatasetController=wt,en.defaults=at,en.Element=pt,en.elements=Nt,en.Interaction=me,en.layouts=xe,en.platform=Ae,en.plugins=Le,en.Scale=hn,en.scaleService=Fe,en.Ticks=an,en.Tooltip=Xe,en.helpers.each(Jn,(function(t,e){en.scaleService.registerScaleType(e,t,t._defaults)})),vr)vr.hasOwnProperty(xr)&&en.plugins.register(vr[xr]);en.platform.initialize();var wr=en;return"undefined"!==typeof window&&(window.Chart=en),en.Chart=en,en.Legend=vr.legend._element,en.Title=vr.title._element,en.pluginService=en.plugins,en.PluginBase=en.Element.extend({}),en.canvasHelpers=en.helpers.canvas,en.layoutService=en.layouts,en.LinearScaleBase=mn,en.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],(function(t){en[t]=function(e,n){return new en(e,en.helpers.merge(n||{},{type:t.charAt(0).toLowerCase()+t.slice(1)}))}})),wr}(function(){try{return n(370)}catch(t){}}())},function(t,e,n){"use strict";e.__esModule=!0,e.default=e.EXITING=e.ENTERED=e.ENTERING=e.EXITED=e.UNMOUNTED=void 0;var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,n):{};r.get||r.set?Object.defineProperty(e,n,r):e[n]=t[n]}return e.default=t,e}(n(2)),i=s(n(0)),o=s(n(94)),a=n(368);n(369);function s(t){return t&&t.__esModule?t:{default:t}}e.UNMOUNTED="unmounted";e.EXITED="exited";e.ENTERING="entering";e.ENTERED="entered";e.EXITING="exiting";var l=function(t){var e,n;function r(e,n){var r;r=t.call(this,e,n)||this;var i,o=n.transitionGroup,a=o&&!o.isMounting?e.enter:e.appear;return r.appearStatus=null,e.in?a?(i="exited",r.appearStatus="entering"):i="entered":i=e.unmountOnExit||e.mountOnEnter?"unmounted":"exited",r.state={status:i},r.nextCallback=null,r}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var a=r.prototype;return a.getChildContext=function(){return{transitionGroup:null}},r.getDerivedStateFromProps=function(t,e){return t.in&&"unmounted"===e.status?{status:"exited"}:null},a.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},a.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(e="entering"):"entering"!==n&&"entered"!==n||(e="exiting")}this.updateStatus(!1,e)},a.componentWillUnmount=function(){this.cancelNextCallback()},a.getTimeouts=function(){var t,e,n,r=this.props.timeout;return t=e=n=r,null!=r&&"number"!==typeof r&&(t=r.exit,e=r.enter,n=void 0!==r.appear?r.appear:e),{exit:t,enter:e,appear:n}},a.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e){this.cancelNextCallback();var n=o.default.findDOMNode(this);"entering"===e?this.performEnter(n,t):this.performExit(n)}else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},a.performEnter=function(t,e){var n=this,r=this.props.enter,i=this.context.transitionGroup?this.context.transitionGroup.isMounting:e,o=this.getTimeouts(),a=i?o.appear:o.enter;e||r?(this.props.onEnter(t,i),this.safeSetState({status:"entering"},(function(){n.props.onEntering(t,i),n.onTransitionEnd(t,a,(function(){n.safeSetState({status:"entered"},(function(){n.props.onEntered(t,i)}))}))}))):this.safeSetState({status:"entered"},(function(){n.props.onEntered(t)}))},a.performExit=function(t){var e=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(t),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(t),e.onTransitionEnd(t,r.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(t)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(t)}))},a.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},a.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},a.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,e.nextCallback=null,t(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},a.onTransitionEnd=function(t,e,n){this.setNextCallback(n);var r=null==e&&!this.props.addEndListener;t&&!r?(this.props.addEndListener&&this.props.addEndListener(t,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e)):setTimeout(this.nextCallback,0)},a.render=function(){var t=this.state.status;if("unmounted"===t)return null;var e=this.props,n=e.children,r=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(e,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"===typeof n)return n(t,r);var o=i.default.Children.only(n);return i.default.cloneElement(o,r)},r}(i.default.Component);function u(){}l.contextTypes={transitionGroup:r.object},l.childContextTypes={transitionGroup:function(){}},l.propTypes={},l.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:u,onEntering:u,onEntered:u,onExit:u,onExiting:u,onExited:u},l.UNMOUNTED=0,l.EXITED=1,l.ENTERING=2,l.ENTERED=3,l.EXITING=4;var c=(0,a.polyfill)(l);e.default=c},function(t,e,n){var r=n(185);t.exports=function(t,e){return r(t,e)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";t.exports=function(){}},function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){var r=n(152),i=n(383),o=n(384),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e){t.exports={}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={easeOutFunction:"cubic-bezier(0.23, 1, 0.32, 1)",easeInOutFunction:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",easeOut:function(t,e,n,r){if(r=r||this.easeOutFunction,e&&"[object Array]"===Object.prototype.toString.call(e)){for(var i="",o=0;othis.maxCacheSize_){var t=0;for(var e in this.cache_){var n=this.cache_[e];0!==(3&t++)||n.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}},i.prototype.get=function(t,e,n){var r=o(t,e,n);return r in this.cache_?this.cache_[r]:null},i.prototype.set=function(t,e,n,r){var i=o(t,e,n);this.cache_[i]=r,++this.cacheSize_},i.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()};var a=new i},function(t,e,n){"use strict";var r=n(142),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(t){return r.isMemo(t)?a:s[t.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0};var u=Object.defineProperty,c=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;t.exports=function t(e,n,r){if("string"!==typeof n){if(p){var i=d(n);i&&i!==p&&t(e,i,r)}var a=c(n);h&&(a=a.concat(h(n)));for(var s=l(e),g=l(n),m=0;mthis.highWaterMark},e.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null,this.dispatchEvent(o.a.CLEAR)},e.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},e.prototype.forEach=function(t,e){for(var n=this.oldest_;n;)t.call(e,n.value_,n.key_,this),n=n.newer},e.prototype.get=function(t){var e=this.entries_[t];return Object(r.a)(void 0!==e,15),e===this.newest_||(e===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(e.newer.older=e.older,e.older.newer=e.newer),e.newer=null,e.older=this.newest_,this.newest_.newer=e,this.newest_=e),e.value_},e.prototype.remove=function(t){var e=this.entries_[t];return Object(r.a)(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_},e.prototype.getCount=function(){return this.count_},e.prototype.getKeys=function(){var t,e=new Array(this.count_),n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.key_;return e},e.prototype.getValues=function(){var t,e=new Array(this.count_),n=0;for(t=this.newest_;t;t=t.older)e[n++]=t.value_;return e},e.prototype.peekLast=function(){return this.oldest_.value_},e.prototype.peekLastKey=function(){return this.oldest_.key_},e.prototype.peekFirstKey=function(){return this.newest_.key_},e.prototype.pop=function(){var t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_},e.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},e.prototype.set=function(t,e){Object(r.a)(!(t in this.entries_),16);var n={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=n:this.oldest_=n,this.newest_=n,this.entries_[t]=n,++this.count_},e.prototype.setSize=function(t){this.highWaterMark=t},e.prototype.prune=function(){for(;this.canExpireCache();)this.pop()},e}(i.a);e.a=a},function(t,e,n){"use strict";var r=n(4),i=n(24),o=n(20),a=n(71),s=function(t){function e(e){t.call(this),this.projection_=Object(o.e)(e.projection),this.attributions_=l(e.attributions),this.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,this.loading=!1,this.state_=void 0!==e.state?e.state:a.a.READY,this.wrapX_=void 0!==e.wrapX&&e.wrapX}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getAttributions=function(){return this.attributions_},e.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolutions=function(){return Object(r.b)()},e.prototype.getState=function(){return this.state_},e.prototype.getWrapX=function(){return this.wrapX_},e.prototype.refresh=function(){this.changed()},e.prototype.setAttributions=function(t){this.attributions_=l(t),this.changed()},e.prototype.setState=function(t){this.state_=t,this.changed()},e}(i.a);function l(t){return t?Array.isArray(t)?function(e){return t}:"function"===typeof t?t:function(e){return[t]}:null}e.a=s},function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var r=n(19),i=n(73);function o(t,e,n,o,a,s,l){for(var u,c,h,f,d,p,g,m=a[s+1],v=[],y=0,b=n.length;yw&&(h=(f+d)/2,Object(i.c)(t,e,n,o,h,m)&&(x=h,w=O)),f=d}return isNaN(x)&&(x=a[s]),l?(l.push(x,m,w),l):[x,m,w]}function a(t,e,n,r,i){for(var a=[],s=0,l=n.length;s1?o-1:0),s=1;s1&&"function"===typeof arguments[r-1]&&(e=arguments[r-1],--r),!this.isDef()){var i=arguments[r-1];return i.center&&this.setCenter(i.center),void 0!==i.zoom&&this.setZoom(i.zoom),void 0!==i.rotation&&this.setRotation(i.rotation),void(e&&S(e,!0))}for(var o=Date.now(),s=this.getCenter().slice(),l=this.getResolution(),u=this.getRotation(),c=[],f=0;f0},e.prototype.getInteracting=function(){return this.hints_[h.a.INTERACTING]>0},e.prototype.cancelAnimations=function(){this.setHint(h.a.ANIMATING,-this.hints_[h.a.ANIMATING]);for(var t=0,e=this.animations_.length;t=0;--n){for(var r=this.animations_[n],i=!0,o=0,s=r.length;o0?u/l.duration:1;c>=1?(l.complete=!0,c=1):i=!1;var g=l.easing(c);if(l.sourceCenter){var m=l.sourceCenter[0],v=l.sourceCenter[1],y=m+g*(l.targetCenter[0]-m),b=v+g*(l.targetCenter[1]-v);this.set(f,[y,b])}if(l.sourceResolution&&l.targetResolution){var _=1===g?l.targetResolution:l.sourceResolution+g*(l.targetResolution-l.sourceResolution);l.anchor&&this.set(f,this.calculateCenterZoom(_,l.anchor)),this.set(d,_)}if(void 0!==l.sourceRotation&&void 0!==l.targetRotation){var x=1===g?Object(a.d)(l.targetRotation+Math.PI,2*Math.PI)-Math.PI:l.sourceRotation+g*(l.targetRotation-l.sourceRotation);l.anchor&&this.set(f,this.calculateCenterRotate(x,l.anchor)),this.set(p,x)}if(e=!0,!l.complete)break}}if(i){this.animations_[n]=null,this.setHint(h.a.ANIMATING,-1);var w=r[0].callback;w&&S(w,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_))}},e.prototype.calculateCenterRotate=function(t,e){var n,r=this.getCenter();return void 0!==r&&(n=[r[0]-e[0],r[1]-e[1]],Object(m.c)(n,t-this.getRotation()),Object(m.a)(n,e)),n},e.prototype.calculateCenterZoom=function(t,e){var n,r=this.getCenter(),i=this.getResolution();void 0!==r&&void 0!==i&&(n=[e[0]-t*(e[0]-r[0])/i,e[1]-t*(e[1]-r[1])/i]);return n},e.prototype.getSizeFromViewport_=function(){var t=[100,100],e='.ol-viewport[data-view="'+Object(i.c)(this)+'"]',n=document.querySelector(e);if(n){var r=getComputedStyle(n);t[0]=parseInt(r.width,10),t[1]=parseInt(r.height,10)}return t},e.prototype.constrainCenter=function(t){return this.constraints_.center(t)},e.prototype.constrainResolution=function(t,e,n){var r=e||0,i=n||0;return this.constraints_.resolution(t,r,i)},e.prototype.constrainRotation=function(t,e){var n=e||0;return this.constraints_.rotation(t,n)},e.prototype.getCenter=function(){return this.get(f)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getHints=function(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var e=t||this.getSizeFromViewport_(),n=this.getCenter();Object(g.a)(n,1);var r=this.getResolution();Object(g.a)(void 0!==r,2);var i=this.getRotation();return Object(g.a)(void 0!==i,3),Object(y.z)(n,r,i,e)},e.prototype.getMaxResolution=function(){return this.maxResolution_},e.prototype.getMinResolution=function(){return this.minResolution_},e.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},e.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},e.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},e.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(d)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){var n=e||this.getSizeFromViewport_(),r=Object(y.E)(t)/n[0],i=Object(y.A)(t)/n[1];return Math.max(r,i)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,n=this.maxResolution_,r=this.minResolution_,i=Math.log(n/r)/Math.log(e);return function(t){return n/Math.pow(e,t*i)}},e.prototype.getRotation=function(){return this.get(p)},e.prototype.getValueForResolutionFunction=function(t){var e=t||2,n=this.maxResolution_,r=this.minResolution_,i=Math.log(n/r)/Math.log(e);return function(t){return Math.log(n/t)/Math.log(e)/i}},e.prototype.getState=function(t){var e=this.getCenter(),n=this.getProjection(),r=this.getResolution(),i=r/t,o=this.getRotation();return{center:[Math.round(e[0]/i)*i,Math.round(e[1]/i)*i],projection:void 0!==n?n:null,resolution:r,rotation:o,zoom:this.getZoom()}},e.prototype.getZoom=function(){var t,e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t},e.prototype.getZoomForResolution=function(t){var e,n,r=this.minZoom_||0;if(this.resolutions_){var i=Object(u.f)(this.resolutions_,t,1);r=i,e=this.resolutions_[i],n=i==this.resolutions_.length-1?2:e/this.resolutions_[i+1]}else e=this.maxResolution_,n=this.zoomFactor_;return r+Math.log(e/t)/Math.log(n)},e.prototype.getResolutionForZoom=function(t){return this.constrainResolution(this.maxResolution_,t-this.minZoom_,0)},e.prototype.fit=function(t,e){var n,r=e||{},i=r.size;i||(i=this.getSizeFromViewport_()),Object(g.a)(Array.isArray(t)||"function"===typeof t.getSimplifiedGeometry,24),Array.isArray(t)?(Object(g.a)(!Object(y.H)(t),25),n=Object(_.b)(t)):t.getType()===b.a.CIRCLE?(t=t.getExtent(),(n=Object(_.b)(t)).rotate(this.getRotation(),Object(y.x)(t))):n=t;var a,s=void 0!==r.padding?r.padding:[0,0,0,0],l=void 0===r.constrainResolution||r.constrainResolution,u=void 0!==r.nearest&&r.nearest;a=void 0!==r.minResolution?r.minResolution:void 0!==r.maxZoom?this.constrainResolution(this.maxResolution_,r.maxZoom-this.minZoom_,0):0;for(var c=n.getFlatCoordinates(),h=this.getRotation(),f=Math.cos(-h),d=Math.sin(-h),p=1/0,m=1/0,v=-1/0,x=-1/0,w=n.getStride(),O=0,C=c.length;O0,6);var y=void 0!==n.src?i.a.IDLE:i.a.LOADED;this.color_=void 0!==n.color?Object(a.a)(n.color):null,this.iconImage_=function(t,e,n,r,i,o){var a=f.a.get(e,r,o);return a||(a=new d(t,e,n,r,i,o),f.a.set(e,r,o,a)),a}(p,v,g,this.crossOrigin_,y,this.color_),this.offset_=void 0!==n.offset?n.offset:[0,0],this.offsetOrigin_=void 0!==n.offsetOrigin?n.offsetOrigin:m,this.origin_=null,this.size_=void 0!==n.size?n.size:null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,crossOrigin:this.crossOrigin_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,src:this.getSrc(),offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,size:null!==this.size_?this.size_.slice():void 0,opacity:this.getOpacity(),scale:this.getScale(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},e.prototype.getAnchor=function(){if(this.normalizedAnchor_)return this.normalizedAnchor_;var t=this.anchor_,e=this.getSize();if(this.anchorXUnits_==u||this.anchorYUnits_==u){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==u&&(t[0]*=e[0]),this.anchorYUnits_==u&&(t[1]*=e[1])}if(this.anchorOrigin_!=m){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=v&&this.anchorOrigin_!=g||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=p&&this.anchorOrigin_!=g||(t[1]=-t[1]+e[1])}return this.normalizedAnchor_=t,this.normalizedAnchor_},e.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},e.prototype.getColor=function(){return this.color_},e.prototype.getImage=function(t){return this.iconImage_.getImage(t)},e.prototype.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getHitDetectionImageSize=function(){return this.getImageSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(t){return this.iconImage_.getHitDetectionImage(t)},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=m){var e=this.getSize(),n=this.iconImage_.getSize();if(!e||!n)return null;t=t.slice(),this.offsetOrigin_!=v&&this.offsetOrigin_!=g||(t[0]=n[0]-e[0]-t[0]),this.offsetOrigin_!=p&&this.offsetOrigin_!=g||(t[1]=n[1]-e[1]-t[1])}return this.origin_=t,this.origin_},e.prototype.getSrc=function(){return this.iconImage_.getSrc()},e.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},e.prototype.listenImageChange=function(t,e){return Object(s.a)(this.iconImage_,l.a.CHANGE,t,e)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t,e){Object(s.c)(this.iconImage_,l.a.CHANGE,t,e)},e}(n(169).a);e.a=y},function(t,e,n){var r=n(341);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){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)}}},function(t,e,n){var r=n(116);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")}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(181)("keys"),i=n(148);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(46),i=n(86),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(147)?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(115),i=n(348),o=n(182),a=n(180)("IE_PROTO"),s=function(){},l=function(){var t,e=n(223)("iframe"),r=o.length;for(e.style.display="none",n(349).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("