From 5d3850329fa7ab8af351fb8efad30418acffa463 Mon Sep 17 00:00:00 2001 From: pepeciavirella Date: Tue, 24 Sep 2019 16:47:43 -0300 Subject: [PATCH] Pre-release para version 2.6.2-beta1 de TSComponents --- dist/js/components.js | 4 ++-- dist/js/main.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/js/components.js b/dist/js/components.js index d9693c2c..b8e69623 100644 --- a/dist/js/components.js +++ b/dist/js/components.js @@ -1,2 +1,2 @@ -var TSComponents=function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=1106)}([function(t,e,n){"use strict";t.exports=n(556)},function(t,e,n){var i=n(4),r=n(11),o=n(24),a=n(20),s=n(33),l=function(t,e,n){var c,u,h,f,d=t&l.F,p=t&l.G,g=t&l.S,m=t&l.P,v=t&l.B,y=p?i:g?i[e]||(i[e]={}):(i[e]||{}).prototype,b=p?r:r[e]||(r[e]={}),x=b.prototype||(b.prototype={});for(c in p&&(n=e),n)h=((u=!d&&y&&void 0!==y[c])?y:n)[c],f=v&&u?s(h,i):m&&"function"==typeof h?s(Function.call,h):h,y&&a(y,c,h,t&l.U),b[c]!=h&&o(b,c,f),m&&x[c]!=h&&(x[c]=h)};i.core=r,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";n.d(e,"i",function(){return i}),n.d(e,"j",function(){return r}),n.d(e,"o",function(){return o}),n.d(e,"l",function(){return a}),n.d(e,"q",function(){return s}),n.d(e,"w",function(){return l}),n.d(e,"h",function(){return c}),n.d(e,"r",function(){return u}),n.d(e,"a",function(){return h}),n.d(e,"d",function(){return f}),n.d(e,"e",function(){return d}),n.d(e,"g",function(){return p}),n.d(e,"f",function(){return g}),n.d(e,"k",function(){return m}),n.d(e,"n",function(){return v}),n.d(e,"p",function(){return y}),n.d(e,"t",function(){return b}),n.d(e,"s",function(){return x}),n.d(e,"u",function(){return w}),n.d(e,"v",function(){return _}),e.b=function(t){return t>1?0:t<-1?o:Math.acos(t)},e.c=function(t){return t>1?a:t<-1?-a:Math.asin(t)},e.m=function(t){return(t=b(t/2))*t};var i=1e-6,r=1e-12,o=Math.PI,a=o/2,s=o/4,l=2*o,c=180/o,u=o/180,h=Math.abs,f=Math.atan,d=Math.atan2,p=Math.cos,g=Math.ceil,m=Math.exp,v=(Math.floor,Math.log),y=Math.pow,b=Math.sin,x=Math.sign||function(t){return t>0?1:t<0?-1:0},w=Math.sqrt,_=Math.tan},function(t,e,n){"use strict";e.a=function(t){for(var e=t.length/6|0,n=new Array(e),i=0;i0?r(i(t),9007199254740991):0}},function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},function(t,e,n){var i=n(6),r=n(208),o=n(44),a=Object.defineProperty;e.f=n(13)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(5)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){"use strict";n(666),n(113),n(695);var i=n(281);n.d(e,"c",function(){return i.a});var r=n(696);n.d(e,"d",function(){return r.a});var o=n(169);n.d(e,"e",function(){return o.a});n(170),n(114);var a=n(279);n.d(e,"f",function(){return a.a});n(697);var s=n(29);n.d(e,"g",function(){return s.b});var l=n(171);n.d(e,"h",function(){return l.a});var c=n(280);n.d(e,"i",function(){return c.a});var u=n(284);n.d(e,"j",function(){return u.b});var h=n(698);n.d(e,"k",function(){return h.a});n(699),n(172);var f=n(173);n.d(e,"b",function(){return f.c}),n.d(e,"a",function(){return f.a})},function(t,e,n){t.exports=n(565)()},function(t,e,n){"use strict";var i=n(267);n.d(e,"b",function(){return i.a});var r=n(72);n.d(e,"a",function(){return r.a});var o=n(268);n.d(e,"c",function(){return o.a});n(642),n(643),n(270);var a=n(272);n.d(e,"d",function(){return a.a});n(644),n(647),n(648);var s=n(276);n.d(e,"j",function(){return s.a});var l=n(649);n.d(e,"e",function(){return l.a});n(650),n(651);var c=n(652);n.d(e,"f",function(){return c.a});var u=n(277);n.d(e,"g",function(){return u.a});n(269),n(653);var h=n(167);n.d(e,"h",function(){return h.a});var f=n(274);n.d(e,"i",function(){return f.a});n(654),n(655),n(656);var d=n(275);n.d(e,"m",function(){return d.a}),n.d(e,"k",function(){return d.b}),n.d(e,"l",function(){return d.c});n(278),n(271),n(657)},function(t,e,n){"use strict";e.a=function t(e,n,o,a){function s(t){return e(t=new Date(+t)),t}s.floor=s;s.ceil=function(t){return e(t=new Date(t-1)),n(t,1),e(t),t};s.round=function(t){var e=s(t),n=s.ceil(t);return t-e0))return a;do{a.push(o=new Date(+t)),n(t,r),e(t)}while(o=t)for(;e(t),!i(t);)t.setTime(t-1)},function(t,e){if(t>=t)if(e<0)for(;++e<=0;)for(;n(t,-1),!i(t););else for(;--e>=0;)for(;n(t,1),!i(t););})};o&&(s.count=function(t,n){return i.setTime(+t),r.setTime(+n),e(i),e(r),Math.floor(o(i,r))},s.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?s.filter(a?function(e){return a(e)%t===0}:function(e){return s.count(0,e)%t===0}):s:null});return s};var i=new Date,r=new Date},function(t,e,n){var i=n(41);t.exports=function(t){return Object(i(t))}},function(t,e,n){"use strict";var i=function(){};t.exports=i},function(t,e,n){var i=n(4),r=n(24),o=n(23),a=n(49)("src"),s=n(381),l=(""+s).split("toString");n(11).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(o(n,"name")||r(n,"name",e)),t[e]!==n&&(c&&(o(n,a)||r(n,a,t[e]?""+t[e]:l.join(String(e)))),t===i?t[e]=n:s?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(t,e,n){var i=n(1),r=n(5),o=n(41),a=/"/g,s=function(t,e,n,i){var r=String(o(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(i).replace(a,""")+'"'),s+">"+r+""};t.exports=function(t,e){var n={};n[t]=e(s),i(i.P+i.F*r(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t,e,n){"use strict";var i=n(249),r=n(589),o=Object.prototype.toString;function a(t){return"[object Array]"===o.call(t)}function s(t){return null!==t&&"object"===typeof t}function l(t){return"[object Function]"===o.call(t)}function c(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),a(t))for(var n=0,i=t.length;ns)throw new Error("too late; already scheduled");return n},e.h=function(t,e){var n=p(t,e);if(n.state>c)throw new Error("too late; already started");return n},e.f=p;var i=n(73),r=n(116),o=Object(i.a)("start","end","interrupt"),a=[],s=0,l=1,c=2,u=3,h=4,f=5,d=6;function p(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}e.e=function(t,e,n,i,p,g){var m=t.__transition;if(m){if(n in m)return}else t.__transition={};!function(t,e,n){var i,o=t.__transition;function a(f){var g,m,v,y;if(n.state!==l)return p();for(g in o)if((y=o[g]).name===n.name){if(y.state===u)return Object(r.b)(a);y.state===h?(y.state=d,y.timer.stop(),y.on.call("interrupt",t,t.__data__,y.index,y.group),delete o[g]):+g2?t[2]%360*l.r:0,B()):[P*l.h,C*l.h,A*l.h]},R.angle=function(t){return arguments.length?(E=t%360*l.r,B()):E*l.h},R.precision=function(t){return arguments.length?(y=Object(f.a)(b,N=t*t),F()):Object(l.u)(N)},R.fitExtent=function(t,e){return Object(h.a)(R,t,e)},R.fitSize=function(t,e){return Object(h.c)(R,t,e)},R.fitWidth=function(t,e){return Object(h.d)(R,t,e)},R.fitHeight=function(t,e){return Object(h.b)(R,t,e)},function(){return e=t.apply(this,arguments),R.invert=e.invert&&z,B()}}},function(t,e,n){var i=n(34);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e,n){var i=n(82),r=n(48),o=n(25),a=n(44),s=n(23),l=n(208),c=Object.getOwnPropertyDescriptor;e.f=n(13)?c:function(t,e){if(t=o(t),e=a(e,!0),l)try{return c(t,e)}catch(t){}if(s(t,e))return r(!i.f.call(t,e),t[e])}},function(t,e,n){var i=n(1),r=n(11),o=n(5);t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),i(i.S+i.F*o(function(){n(1)}),"Object",a)}},function(t,e,n){var i=n(33),r=n(81),o=n(18),a=n(10),s=n(224);t.exports=function(t,e){var n=1==t,l=2==t,c=3==t,u=4==t,h=6==t,f=5==t||h,d=e||s;return function(e,s,p){for(var g,m,v=o(e),y=r(v),b=i(s,p,3),x=a(y.length),w=0,_=n?d(e,x):l?d(e,0):void 0;x>w;w++)if((f||w in y)&&(m=b(g=y[w],w,v),t))if(n)_[w]=m;else if(m)switch(t){case 3:return!0;case 5:return g;case 6:return w;case 2:_.push(g)}else if(u)return!1;return h?-1:c||u?u:_}}},function(t,e,n){"use strict";var i=n(564),r=(n(242),n(568));n.d(e,"a",function(){return i.a}),n.d(e,"b",function(){return r.a})},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";if(n(13)){var i=n(50),r=n(4),o=n(5),a=n(1),s=n(108),l=n(159),c=n(33),u=n(69),h=n(48),f=n(24),d=n(70),p=n(35),g=n(10),m=n(235),v=n(52),y=n(44),b=n(23),x=n(83),w=n(7),_=n(18),S=n(151),k=n(53),M=n(55),O=n(54).f,T=n(153),P=n(49),C=n(9),A=n(38),E=n(98),L=n(84),j=n(155),D=n(67),I=n(101),N=n(68),R=n(154),z=n(226),B=n(12),F=n(36),W=B.f,H=F.f,Y=r.RangeError,U=r.TypeError,G=r.Uint8Array,X=Array.prototype,V=l.ArrayBuffer,q=l.DataView,K=A(0),$=A(2),Z=A(3),Q=A(4),J=A(5),tt=A(6),et=E(!0),nt=E(!1),it=j.values,rt=j.keys,ot=j.entries,at=X.lastIndexOf,st=X.reduce,lt=X.reduceRight,ct=X.join,ut=X.sort,ht=X.slice,ft=X.toString,dt=X.toLocaleString,pt=C("iterator"),gt=C("toStringTag"),mt=P("typed_constructor"),vt=P("def_constructor"),yt=s.CONSTR,bt=s.TYPED,xt=s.VIEW,wt=A(1,function(t,e){return Ot(L(t,t[vt]),e)}),_t=o(function(){return 1===new G(new Uint16Array([1]).buffer)[0]}),St=!!G&&!!G.prototype.set&&o(function(){new G(1).set({})}),kt=function(t,e){var n=p(t);if(n<0||n%e)throw Y("Wrong offset!");return n},Mt=function(t){if(w(t)&&bt in t)return t;throw U(t+" is not a typed array!")},Ot=function(t,e){if(!(w(t)&&mt in t))throw U("It is not a typed array constructor!");return new t(e)},Tt=function(t,e){return Pt(L(t,t[vt]),e)},Pt=function(t,e){for(var n=0,i=e.length,r=Ot(t,i);i>n;)r[n]=e[n++];return r},Ct=function(t,e,n){W(t,e,{get:function(){return this._d[n]}})},At=function(t){var e,n,i,r,o,a,s=_(t),l=arguments.length,u=l>1?arguments[1]:void 0,h=void 0!==u,f=T(s);if(void 0!=f&&!S(f)){for(a=f.call(s),i=[],e=0;!(o=a.next()).done;e++)i.push(o.value);s=i}for(h&&l>2&&(u=c(u,arguments[2],2)),e=0,n=g(s.length),r=Ot(this,n);n>e;e++)r[e]=h?u(s[e],e):s[e];return r},Et=function(){for(var t=0,e=arguments.length,n=Ot(this,e);e>t;)n[t]=arguments[t++];return n},Lt=!!G&&o(function(){dt.call(new G(1))}),jt=function(){return dt.apply(Lt?ht.call(Mt(this)):Mt(this),arguments)},Dt={copyWithin:function(t,e){return z.call(Mt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return Q(Mt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return R.apply(Mt(this),arguments)},filter:function(t){return Tt(this,$(Mt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return J(Mt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Mt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){K(Mt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(Mt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(Mt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ct.apply(Mt(this),arguments)},lastIndexOf:function(t){return at.apply(Mt(this),arguments)},map:function(t){return wt(Mt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return st.apply(Mt(this),arguments)},reduceRight:function(t){return lt.apply(Mt(this),arguments)},reverse:function(){for(var t,e=Mt(this).length,n=Math.floor(e/2),i=0;i1?arguments[1]:void 0)},sort:function(t){return ut.call(Mt(this),t)},subarray:function(t,e){var n=Mt(this),i=n.length,r=v(t,i);return new(L(n,n[vt]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,g((void 0===e?i:v(e,i))-r))}},It=function(t,e){return Tt(this,ht.call(Mt(this),t,e))},Nt=function(t){Mt(this);var e=kt(arguments[1],1),n=this.length,i=_(t),r=g(i.length),o=0;if(r+e>n)throw Y("Wrong length!");for(;o255?255:255&i),r.v[d](n*e+r.o,i,_t)}(this,n,t)},enumerable:!0})};b?(p=n(function(t,n,i,r){u(t,p,c,"_d");var o,a,s,l,h=0,d=0;if(w(n)){if(!(n instanceof V||"ArrayBuffer"==(l=x(n))||"SharedArrayBuffer"==l))return bt in n?Pt(p,n):At.call(p,n);o=n,d=kt(i,e);var v=n.byteLength;if(void 0===r){if(v%e)throw Y("Wrong length!");if((a=v-d)<0)throw Y("Wrong length!")}else if((a=g(r)*e)+d>v)throw Y("Wrong length!");s=a/e}else s=m(n),o=new V(a=s*e);for(f(t,"_d",{b:o,o:d,l:a,e:s,v:new q(o)});hdocument.F=Object<\/script>"),t.close(),l=t.F;i--;)delete l.prototype[o[i]];return l()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=i(t),n=new s,s.prototype=null,n[a]=t):n=l(),void 0===e?n:r(n,e)}},function(t,e,n){var i=n(210),r=n(138).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},function(t,e,n){var i=n(23),r=n(18),o=n(137)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var i=n(9)("unscopables"),r=Array.prototype;void 0==r[i]&&n(24)(r,i,{}),t.exports=function(t){r[i][t]=!0}},function(t,e,n){var i=n(7);t.exports=function(t,e){if(!i(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,n){"use strict";e.a={CLEAR_DATE:"CLEAR_DATE",CLEAR_VIEW_SERIES:"CLEAR_VIEW_SERIES",LOAD_DATE:"LOAD_DATE",LOAD_FEATURED_IDS:"LOAD_FEATURED_IDS",LOAD_VIEW_SERIES:"LOAD_VIEW_SERIES",SET_AGGREGATIONS:"SET_AGGREGATIONS",SET_LAPS:"SET_LAPS",SET_LOCALE:"SET_LOCALE",SET_SEARCH_PARAMS:"SET_SEARCH_PARAMS",SET_SERIES_API:"SET_SERIES_API",SET_SERIE_TAGS:"SET_SERIE_TAGS",SET_UNIT_FORMAT:"SET_UNIT_FORMAT"}},function(t,e,n){"use strict";var i=n(757);n.d(e,"a",function(){return i.a})},function(t,e,n){"use strict";function i(t,e){t&&o.hasOwnProperty(t.type)&&o[t.type](t,e)}var r={Feature:function(t,e){i(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,o=n.length;++r4)return 4;return e};var i=n(109);function r(t){return"value"===t.representationMode?t.id:t.id+":"+t.representationMode}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"===typeof window&&(n=window)}t.exports=n},function(t,e,n){var i=n(12).f,r=n(23),o=n(9)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},function(t,e,n){var i=n(1),r=n(41),o=n(5),a=n(141),s="["+a+"]",l=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),u=function(t,e,n){var r={},s=o(function(){return!!a[t]()||"\u200b\x85"!="\u200b\x85"[t]()}),l=r[t]=s?e(h):a[t];n&&(r[n]=l),i(i.P+i.F*s,"String",r)},h=u.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(c,"")),t};t.exports=u},function(t,e){t.exports={}},function(t,e,n){"use strict";var i=n(4),r=n(12),o=n(13),a=n(9)("species");t.exports=function(t){var e=i[t];o&&e&&!e[a]&&r.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var i=n(20);t.exports=function(t,e,n){for(var r in e)i(t,r,e[r],n);return t}},function(t,e,n){"use strict";function i(t){return""!==t&&void 0!==t&&null!==t}e.e=function(t){return Object.keys(t).map(function(e){return t[e]})},e.d=i,e.c=function(t){return Array.from(new Set(t))},e.b=function(t){return t.id},e.a=function(t,e){void 0===e&&(e=0);var n=t.charAt(e).toUpperCase();return t.slice(0,e)+n+t.slice(e+1,t.length)}},function(t,e,n){"use strict";e.a=function(t,e){return te?1:t>=e?0:NaN}},function(t,e,n){"use strict";var i=n(664);n.d(e,"a",function(){return i.a})},function(t,e,n){"use strict";e.c=function(t,e){var n=e-t;return n?r(t,n>180||n<-180?n-360*Math.round(n/360):n):Object(i.a)(isNaN(t)?e:t)},e.b=function(t){return 1===(t=+t)?o:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):Object(i.a)(isNaN(e)?n:e)}},e.a=o;var i=n(290);function r(t,e){return function(n){return t+n*e}}function o(t,e){var n=e-t;return n?r(t,n):Object(i.a)(isNaN(t)?e:t)}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";function i(){this.reset()}e.a=function(){return new i},i.prototype={constructor:i,reset:function(){this.s=this.t=0},add:function(t){o(r,t,this.t),o(this,r.s,this.s),this.s?this.t+=r.t:this.s=r.t},valueOf:function(){return this.s}};var r=new i;function o(t,e,n){var i=t.s=e+n,r=i-e,o=i-r;t.t=e-o+(n-r)}},function(t,e,n){"use strict";e.a=function(){return Math.random()}},function(t,e,n){"use strict";e.b=s,e.a=function t(){var e=Object(o.b)(o.c,r.c);e.copy=function(){return Object(o.a)(e,t())};return s(e)};var i=n(16),r=n(26),o=n(124),a=n(876);function s(t){var e=t.domain;return t.ticks=function(t){var n=e();return Object(i.m)(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){return Object(a.a)(e(),t,n)},t.nice=function(n){null==n&&(n=10);var r,o=e(),a=0,s=o.length-1,l=o[a],c=o[s];return c0?(l=Math.floor(l/r)*r,c=Math.ceil(c/r)*r,r=Object(i.k)(l,c,n)):r<0&&(l=Math.ceil(l*r)/r,c=Math.floor(c*r)/r,r=Object(i.k)(l,c,n)),r>0?(o[a]=Math.floor(l/r)*r,o[s]=Math.ceil(c/r)*r,e(o)):r<0&&(o[a]=Math.ceil(l*r)/r,o[s]=Math.floor(c*r)/r,e(o)),t},t}},function(t,e,n){"use strict";e.a={aggregations:{catalog_id:[],dataset_publisher_name:[],dataset_source:[],dataset_theme:[],units:[]},date:{start:"",end:""},featured:[],formatChartUnits:!0,laps:{Anual:10,Diaria:90,Mensual:24,Semestral:10,Trimestral:20},locale:"",searchParams:{catalogId:"",datasetSource:"",datasetTheme:"",limit:10,offset:0,publisher:"",q:"",units:""},seriesApi:null,tagNames:[],viewSeries:[]}},function(t,e,n){"use strict";var i=n(0),r=(n.n(i),this&&this.__assign||Object.assign||function(t){for(var e,n=1,i=arguments.length;n>>0,i=0;i0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var B=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,W={},H={};function Y(t,e,n,i){var r=i;"string"===typeof i&&(r=function(){return this[i]()}),t&&(H[t]=r),e&&(H[e[0]]=function(){return z(r.apply(this,arguments),e[1],e[2])}),n&&(H[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function U(t,e){return t.isValid()?(e=G(e,t.localeData()),W[e]=W[e]||function(t){var e,n,i,r=t.match(B);for(e=0,n=r.length;e=0&&F.test(t);)t=t.replace(F,i),F.lastIndex=0,n-=1;return t}var X=/\d/,V=/\d\d/,q=/\d{3}/,K=/\d{4}/,$=/[+-]?\d{6}/,Z=/\d\d?/,Q=/\d\d\d\d?/,J=/\d\d\d\d\d\d?/,tt=/\d{1,3}/,et=/\d{1,4}/,nt=/[+-]?\d{1,6}/,it=/\d+/,rt=/[+-]?\d+/,ot=/Z|[+-]\d\d:?\d\d/gi,at=/Z|[+-]\d\d(?::?\d\d)?/gi,st=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,lt={};function ct(t,e,n){lt[t]=C(e)?e:function(t,i){return t&&n?n:e}}function ut(t,e){return u(lt,t)?lt[t](e._strict,e._locale):new RegExp(ht(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,r){return e||n||i||r})))}function ht(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ft={};function dt(t,e){var n,i=e;for("string"===typeof t&&(t=[t]),s(e)&&(i=function(t,n){n[e]=_(t)}),n=0;n68?1900:2e3)};var Tt,Pt=Ct("FullYear",!0);function Ct(t,e){return function(n){return null!=n?(Et(this,t,n),i.updateOffset(this,e),this):At(this,t)}}function At(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function Et(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&Ot(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Lt(n,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function Lt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n,i=(e%(n=12)+n)%n;return t+=(e-i)/12,1===i?Ot(t)?29:28:31-i%7%2}Tt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function Ht(t,e,n){var i=7+e-n;return-((7+Wt(t,0,i).getUTCDay()-e)%7)+i-1}function Yt(t,e,n,i,r){var o,a,s=1+7*(e-1)+(7+n-i)%7+Ht(t,i,r);return s<=0?a=Mt(o=t-1)+s:s>Mt(t)?(o=t+1,a=s-Mt(t)):(o=t,a=s),{year:o,dayOfYear:a}}function Ut(t,e,n){var i,r,o=Ht(t.year(),e,n),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?i=a+Gt(r=t.year()-1,e,n):a>Gt(t.year(),e,n)?(i=a-Gt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=a),{week:i,year:r}}function Gt(t,e,n){var i=Ht(t,e,n),r=Ht(t+1,e,n);return(Mt(t)-i+r)/7}Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),R("week",5),R("isoWeek",5),ct("w",Z),ct("ww",Z,V),ct("W",Z),ct("WW",Z,V),pt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=_(t)});Y("d",0,"do","day"),Y("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),Y("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),Y("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),R("day",11),R("weekday",11),R("isoWeekday",11),ct("d",Z),ct("e",Z),ct("E",Z),ct("dd",function(t,e){return e.weekdaysMinRegex(t)}),ct("ddd",function(t,e){return e.weekdaysShortRegex(t)}),ct("dddd",function(t,e){return e.weekdaysRegex(t)}),pt(["dd","ddd","dddd"],function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:d(n).invalidWeekday=t}),pt(["d","e","E"],function(t,e,n,i){e[i]=_(t)});var Xt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Vt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var qt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Kt=st;var $t=st;var Zt=st;function Qt(){function t(t,e){return e.length-t.length}var e,n,i,r,o,a=[],s=[],l=[],c=[];for(e=0;e<7;e++)n=f([2e3,1]).day(e),i=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),o=this.weekdays(n,""),a.push(i),s.push(r),l.push(o),c.push(i),c.push(r),c.push(o);for(a.sort(t),s.sort(t),l.sort(t),c.sort(t),e=0;e<7;e++)s[e]=ht(s[e]),l[e]=ht(l[e]),c[e]=ht(c[e]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Jt(){return this.hours()%12||12}function te(t,e){Y(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function ee(t,e){return e._meridiemParse}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,Jt),Y("k",["kk",2],0,function(){return this.hours()||24}),Y("hmm",0,0,function(){return""+Jt.apply(this)+z(this.minutes(),2)}),Y("hmmss",0,0,function(){return""+Jt.apply(this)+z(this.minutes(),2)+z(this.seconds(),2)}),Y("Hmm",0,0,function(){return""+this.hours()+z(this.minutes(),2)}),Y("Hmmss",0,0,function(){return""+this.hours()+z(this.minutes(),2)+z(this.seconds(),2)}),te("a",!0),te("A",!1),j("hour","h"),R("hour",13),ct("a",ee),ct("A",ee),ct("H",Z),ct("h",Z),ct("k",Z),ct("HH",Z,V),ct("hh",Z,V),ct("kk",Z,V),ct("hmm",Q),ct("hmmss",J),ct("Hmm",Q),ct("Hmmss",J),dt(["H","HH"],bt),dt(["k","kk"],function(t,e,n){var i=_(t);e[bt]=24===i?0:i}),dt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),dt(["h","hh"],function(t,e,n){e[bt]=_(t),d(n).bigHour=!0}),dt("hmm",function(t,e,n){var i=t.length-2;e[bt]=_(t.substr(0,i)),e[xt]=_(t.substr(i)),d(n).bigHour=!0}),dt("hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[bt]=_(t.substr(0,i)),e[xt]=_(t.substr(i,2)),e[wt]=_(t.substr(r)),d(n).bigHour=!0}),dt("Hmm",function(t,e,n){var i=t.length-2;e[bt]=_(t.substr(0,i)),e[xt]=_(t.substr(i))}),dt("Hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[bt]=_(t.substr(0,i)),e[xt]=_(t.substr(i,2)),e[wt]=_(t.substr(r))});var ne,ie=Ct("Hours",!0),re={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Dt,monthsShort:It,week:{dow:0,doy:6},weekdays:Xt,weekdaysMin:qt,weekdaysShort:Vt,meridiemParse:/[ap]\.?m?\.?/i},oe={},ae={};function se(t){return t?t.toLowerCase().replace("_","-"):t}function le(e){var n=null;if(!oe[e]&&"undefined"!==typeof t&&t&&t.exports)try{n=ne._abbr;!function(){var t=new Error('Cannot find module "./locale"');throw t.code="MODULE_NOT_FOUND",t}(),ce(n)}catch(t){}return oe[e]}function ce(t,e){var n;return t&&((n=a(e)?he(t):ue(t,e))?ne=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ne._abbr}function ue(t,e){if(null!==e){var n,i=re;if(e.abbr=t,null!=oe[t])P("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=oe[t]._config;else if(null!=e.parentLocale)if(null!=oe[e.parentLocale])i=oe[e.parentLocale]._config;else{if(null==(n=le(e.parentLocale)))return ae[e.parentLocale]||(ae[e.parentLocale]=[]),ae[e.parentLocale].push({name:t,config:e}),null;i=n._config}return oe[t]=new E(A(i,e)),ae[t]&&ae[t].forEach(function(t){ue(t.name,t.config)}),ce(t),oe[t]}return delete oe[t],null}function he(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ne;if(!r(t)){if(e=le(t))return e;t=[t]}return function(t){for(var e,n,i,r,o=0;o0;){if(i=le(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&S(r,n,!0)>=e-1)break;e--}o++}return ne}(t)}function fe(t){var e,n=t._a;return n&&-2===d(t).overflow&&(e=n[vt]<0||n[vt]>11?vt:n[yt]<1||n[yt]>Lt(n[mt],n[vt])?yt:n[bt]<0||n[bt]>24||24===n[bt]&&(0!==n[xt]||0!==n[wt]||0!==n[_t])?bt:n[xt]<0||n[xt]>59?xt:n[wt]<0||n[wt]>59?wt:n[_t]<0||n[_t]>999?_t:-1,d(t)._overflowDayOfYear&&(eyt)&&(e=yt),d(t)._overflowWeeks&&-1===e&&(e=St),d(t)._overflowWeekday&&-1===e&&(e=kt),d(t).overflow=e),t}function de(t,e,n){return null!=t?t:null!=e?e:n}function pe(t){var e,n,r,o,a,s=[];if(!t._d){for(r=function(t){var e=new Date(i.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[yt]&&null==t._a[vt]&&function(t){var e,n,i,r,o,a,s,l;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)o=1,a=4,n=de(e.GG,t._a[mt],Ut(Ce(),1,4).year),i=de(e.W,1),((r=de(e.E,1))<1||r>7)&&(l=!0);else{o=t._locale._week.dow,a=t._locale._week.doy;var c=Ut(Ce(),o,a);n=de(e.gg,t._a[mt],c.year),i=de(e.w,c.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+o,(e.e<0||e.e>6)&&(l=!0)):r=o}i<1||i>Gt(n,o,a)?d(t)._overflowWeeks=!0:null!=l?d(t)._overflowWeekday=!0:(s=Yt(n,i,r,o,a),t._a[mt]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(a=de(t._a[mt],r[mt]),(t._dayOfYear>Mt(a)||0===t._dayOfYear)&&(d(t)._overflowDayOfYear=!0),n=Wt(a,0,t._dayOfYear),t._a[vt]=n.getUTCMonth(),t._a[yt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=r[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[bt]&&0===t._a[xt]&&0===t._a[wt]&&0===t._a[_t]&&(t._nextDay=!0,t._a[bt]=0),t._d=(t._useUTC?Wt:function(t,e,n,i,r,o,a){var s=new Date(t,e,n,i,r,o,a);return t<100&&t>=0&&isFinite(s.getFullYear())&&s.setFullYear(t),s}).apply(null,s),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[bt]=24),t._w&&"undefined"!==typeof t._w.d&&t._w.d!==o&&(d(t).weekdayMismatch=!0)}}var ge=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,me=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ve=/Z|[+-]\d\d(?::?\d\d)?/,ye=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],be=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],xe=/^\/?Date\((\-?\d+)/i;function we(t){var e,n,i,r,o,a,s=t._i,l=ge.exec(s)||me.exec(s);if(l){for(d(t).iso=!0,e=0,n=ye.length;e0&&d(t).unusedInput.push(a),s=s.slice(s.indexOf(n)+n.length),c+=n.length),H[o]?(n?d(t).empty=!1:d(t).unusedTokens.push(o),gt(o,n,t)):t._strict&&!n&&d(t).unusedTokens.push(o);d(t).charsLeftOver=l-c,s.length>0&&d(t).unusedInput.push(s),t._a[bt]<=12&&!0===d(t).bigHour&&t._a[bt]>0&&(d(t).bigHour=void 0),d(t).parsedDateParts=t._a.slice(0),d(t).meridiem=t._meridiem,t._a[bt]=function(t,e,n){var i;if(null==n)return e;return null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}(t._locale,t._a[bt],t._meridiem),pe(t),fe(t)}else Me(t);else we(t)}function Te(t){var e=t._i,n=t._f;return t._locale=t._locale||he(t._l),null===e||void 0===n&&""===e?g({nullInput:!0}):("string"===typeof e&&(t._i=e=t._locale.preparse(e)),x(e)?new b(fe(e)):(l(e)?t._d=e:r(n)?function(t){var e,n,i,r,o;if(0===t._f.length)return d(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;rthis?this:t:g()});function Le(t,e){var n,i;if(1===e.length&&r(e[0])&&(e=e[0]),!e.length)return Ce();for(n=e[0],i=1;i(o=Gt(t,i,r))&&(e=o),function(t,e,n,i,r){var o=Yt(t,e,n,i,r),a=Wt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,t,e,n,i,r))}Y(0,["gg",2],0,function(){return this.weekYear()%100}),Y(0,["GG",2],0,function(){return this.isoWeekYear()%100}),nn("gggg","weekYear"),nn("ggggg","weekYear"),nn("GGGG","isoWeekYear"),nn("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),R("weekYear",1),R("isoWeekYear",1),ct("G",rt),ct("g",rt),ct("GG",Z,V),ct("gg",Z,V),ct("GGGG",et,K),ct("gggg",et,K),ct("GGGGG",nt,$),ct("ggggg",nt,$),pt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=_(t)}),pt(["gg","GG"],function(t,e,n,r){e[r]=i.parseTwoDigitYear(t)}),Y("Q",0,"Qo","quarter"),j("quarter","Q"),R("quarter",7),ct("Q",X),dt("Q",function(t,e){e[vt]=3*(_(t)-1)}),Y("D",["DD",2],"Do","date"),j("date","D"),R("date",9),ct("D",Z),ct("DD",Z,V),ct("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),dt(["D","DD"],yt),dt("Do",function(t,e){e[yt]=_(t.match(Z)[0])});var on=Ct("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),R("dayOfYear",4),ct("DDD",tt),ct("DDDD",q),dt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=_(t)}),Y("m",["mm",2],0,"minute"),j("minute","m"),R("minute",14),ct("m",Z),ct("mm",Z,V),dt(["m","mm"],xt);var an=Ct("Minutes",!1);Y("s",["ss",2],0,"second"),j("second","s"),R("second",15),ct("s",Z),ct("ss",Z,V),dt(["s","ss"],wt);var sn,ln=Ct("Seconds",!1);for(Y("S",0,0,function(){return~~(this.millisecond()/100)}),Y(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Y(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Y(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Y(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Y(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Y(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),j("millisecond","ms"),R("millisecond",16),ct("S",tt,X),ct("SS",tt,V),ct("SSS",tt,q),sn="SSSS";sn.length<=9;sn+="S")ct(sn,it);function cn(t,e){e[_t]=_(1e3*("0."+t))}for(sn="S";sn.length<=9;sn+="S")dt(sn,cn);var un=Ct("Milliseconds",!1);Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var hn=b.prototype;function fn(t){return t}hn.add=$e,hn.calendar=function(t,e){var n=t||Ce(),r=Fe(n,this).startOf("day"),o=i.calendarFormat(this,r)||"sameElse",a=e&&(C(e[o])?e[o].call(this,n):e[o]);return this.format(a||this.localeData().calendar(o,this,Ce(n)))},hn.clone=function(){return new b(this)},hn.diff=function(t,e,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=Fe(t,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),e=D(e)){case"year":o=Qe(this,i)/12;break;case"month":o=Qe(this,i);break;case"quarter":o=Qe(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:w(o)},hn.endOf=function(t){return void 0===(t=D(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))},hn.format=function(t){t||(t=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var e=U(this,t);return this.localeData().postformat(e)},hn.from=function(t,e){return this.isValid()&&(x(t)&&t.isValid()||Ce(t).isValid())?Ge({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},hn.fromNow=function(t){return this.from(Ce(),t)},hn.to=function(t,e){return this.isValid()&&(x(t)&&t.isValid()||Ce(t).isValid())?Ge({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},hn.toNow=function(t){return this.to(Ce(),t)},hn.get=function(t){return C(this[t=D(t)])?this[t]():this},hn.invalidAt=function(){return d(this).overflow},hn.isAfter=function(t,e){var n=x(t)?t:Ce(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=D(a(e)?"millisecond":e))?this.valueOf()>n.valueOf():n.valueOf()9999?U(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},hn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=e+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+r)},hn.toJSON=function(){return this.isValid()?this.toISOString():null},hn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},hn.unix=function(){return Math.floor(this.valueOf()/1e3)},hn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},hn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},hn.year=Pt,hn.isLeapYear=function(){return Ot(this.year())},hn.weekYear=function(t){return rn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},hn.isoWeekYear=function(t){return rn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},hn.quarter=hn.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},hn.month=Rt,hn.daysInMonth=function(){return Lt(this.year(),this.month())},hn.week=hn.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},hn.isoWeek=hn.isoWeeks=function(t){var e=Ut(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},hn.weeksInYear=function(){var t=this.localeData()._week;return Gt(this.year(),t.dow,t.doy)},hn.isoWeeksInYear=function(){return Gt(this.year(),1,4)},hn.date=on,hn.day=hn.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!==typeof t?t:isNaN(t)?"number"===typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},hn.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},hn.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"===typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},hn.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},hn.hour=hn.hours=ie,hn.minute=hn.minutes=an,hn.second=hn.seconds=ln,hn.millisecond=hn.milliseconds=un,hn.utcOffset=function(t,e,n){var r,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"===typeof t){if(null===(t=Be(at,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(r=We(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==t&&(!e||this._changeInProgress?Ke(this,Ge(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:We(this)},hn.utc=function(t){return this.utcOffset(0,t)},hn.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(We(this),"m")),this},hn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var t=Be(ot,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},hn.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Ce(t).utcOffset():0,(this.utcOffset()-t)%60===0)},hn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},hn.isLocal=function(){return!!this.isValid()&&!this._isUTC},hn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},hn.isUtc=He,hn.isUTC=He,hn.zoneAbbr=function(){return this._isUTC?"UTC":""},hn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},hn.dates=M("dates accessor is deprecated. Use date instead.",on),hn.months=M("months accessor is deprecated. Use month instead",Rt),hn.years=M("years accessor is deprecated. Use year instead",Pt),hn.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!==typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),hn.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var t={};if(v(t,this),(t=Te(t))._a){var e=t._isUTC?f(t._a):Ce(t._a);this._isDSTShifted=this.isValid()&&S(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var dn=E.prototype;function pn(t,e,n,i){var r=he(),o=f().set(i,e);return r[n](o,t)}function gn(t,e,n){if(s(t)&&(e=t,t=void 0),t=t||"",null!=e)return pn(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=pn(t,i,n,"month");return r}function mn(t,e,n,i){"boolean"===typeof t?(s(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,s(e)&&(n=e,e=void 0),e=e||"");var r,o=he(),a=t?o._week.dow:0;if(null!=n)return pn(e,(n+a)%7,i,"day");var l=[];for(r=0;r<7;r++)l[r]=pn(e,(r+a)%7,i,"day");return l}dn.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return C(i)?i.call(e,n):i},dn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},dn.invalidDate=function(){return this._invalidDate},dn.ordinal=function(t){return this._ordinal.replace("%d",t)},dn.preparse=fn,dn.postformat=fn,dn.relativeTime=function(t,e,n,i){var r=this._relativeTime[n];return C(r)?r(t,e,n,i):r.replace(/%d/i,t)},dn.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return C(n)?n(e):n.replace(/%s/i,e)},dn.set=function(t){var e,n;for(n in t)C(e=t[n])?this[n]=e:this["_"+n]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},dn.months=function(t,e){return t?r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||jt).test(e)?"format":"standalone"][t.month()]:r(this._months)?this._months:this._months.standalone},dn.monthsShort=function(t,e){return t?r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[jt.test(e)?"format":"standalone"][t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},dn.monthsParse=function(t,e,n){var i,r,o;if(this._monthsParseExact)return function(t,e,n){var i,r,o,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=f([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(r=Tt.call(this._shortMonthsParse,a))?r:null:-1!==(r=Tt.call(this._longMonthsParse,a))?r:null:"MMM"===e?-1!==(r=Tt.call(this._shortMonthsParse,a))?r:-1!==(r=Tt.call(this._longMonthsParse,a))?r:null:-1!==(r=Tt.call(this._longMonthsParse,a))?r:-1!==(r=Tt.call(this._shortMonthsParse,a))?r:null}.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},dn.monthsRegex=function(t){return this._monthsParseExact?(u(this,"_monthsRegex")||Ft.call(this),t?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=Bt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},dn.monthsShortRegex=function(t){return this._monthsParseExact?(u(this,"_monthsRegex")||Ft.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=zt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},dn.week=function(t){return Ut(t,this._week.dow,this._week.doy).week},dn.firstDayOfYear=function(){return this._week.doy},dn.firstDayOfWeek=function(){return this._week.dow},dn.weekdays=function(t,e){return t?r(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:r(this._weekdays)?this._weekdays:this._weekdays.standalone},dn.weekdaysMin=function(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin},dn.weekdaysShort=function(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort},dn.weekdaysParse=function(t,e,n){var i,r,o;if(this._weekdaysParseExact)return function(t,e,n){var i,r,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=Tt.call(this._weekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Tt.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=Tt.call(this._minWeekdaysParse,a))?r:null:"dddd"===e?-1!==(r=Tt.call(this._weekdaysParse,a))?r:-1!==(r=Tt.call(this._shortWeekdaysParse,a))?r:-1!==(r=Tt.call(this._minWeekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Tt.call(this._shortWeekdaysParse,a))?r:-1!==(r=Tt.call(this._weekdaysParse,a))?r:-1!==(r=Tt.call(this._minWeekdaysParse,a))?r:null:-1!==(r=Tt.call(this._minWeekdaysParse,a))?r:-1!==(r=Tt.call(this._weekdaysParse,a))?r:-1!==(r=Tt.call(this._shortWeekdaysParse,a))?r:null}.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},dn.weekdaysRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Qt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Kt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},dn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Qt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$t),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},dn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Qt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Zt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},dn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},dn.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},ce("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===_(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),i.lang=M("moment.lang is deprecated. Use moment.locale instead.",ce),i.langData=M("moment.langData is deprecated. Use moment.localeData instead.",he);var vn=Math.abs;function yn(t,e,n,i){var r=Ge(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function bn(t){return t<0?Math.floor(t):Math.ceil(t)}function xn(t){return 4800*t/146097}function wn(t){return 146097*t/4800}function _n(t){return function(){return this.as(t)}}var Sn=_n("ms"),kn=_n("s"),Mn=_n("m"),On=_n("h"),Tn=_n("d"),Pn=_n("w"),Cn=_n("M"),An=_n("y");function En(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ln=En("milliseconds"),jn=En("seconds"),Dn=En("minutes"),In=En("hours"),Nn=En("days"),Rn=En("months"),zn=En("years");var Bn=Math.round,Fn={ss:44,s:45,m:45,h:22,d:26,M:11};var Wn=Math.abs;function Hn(t){return(t>0)-(t<0)||+t}function Yn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n=Wn(this._milliseconds)/1e3,i=Wn(this._days),r=Wn(this._months);e=w((t=w(n/60))/60),n%=60,t%=60;var o=w(r/12),a=r%=12,s=i,l=e,c=t,u=n?n.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var f=h<0?"-":"",d=Hn(this._months)!==Hn(h)?"-":"",p=Hn(this._days)!==Hn(h)?"-":"",g=Hn(this._milliseconds)!==Hn(h)?"-":"";return f+"P"+(o?d+o+"Y":"")+(a?d+a+"M":"")+(s?p+s+"D":"")+(l||c||u?"T":"")+(l?g+l+"H":"")+(c?g+c+"M":"")+(u?g+u+"S":"")}var Un=De.prototype;return Un.isValid=function(){return this._isValid},Un.abs=function(){var t=this._data;return this._milliseconds=vn(this._milliseconds),this._days=vn(this._days),this._months=vn(this._months),t.milliseconds=vn(t.milliseconds),t.seconds=vn(t.seconds),t.minutes=vn(t.minutes),t.hours=vn(t.hours),t.months=vn(t.months),t.years=vn(t.years),this},Un.add=function(t,e){return yn(this,t,e,1)},Un.subtract=function(t,e){return yn(this,t,e,-1)},Un.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=D(t))||"year"===t)return e=this._days+i/864e5,n=this._months+xn(e),"month"===t?n:n/12;switch(e=this._days+Math.round(wn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},Un.asMilliseconds=Sn,Un.asSeconds=kn,Un.asMinutes=Mn,Un.asHours=On,Un.asDays=Tn,Un.asWeeks=Pn,Un.asMonths=Cn,Un.asYears=An,Un.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*_(this._months/12):NaN},Un._bubble=function(){var t,e,n,i,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*bn(wn(s)+a),a=0,s=0),l.milliseconds=o%1e3,t=w(o/1e3),l.seconds=t%60,e=w(t/60),l.minutes=e%60,n=w(e/60),l.hours=n%24,s+=r=w(xn(a+=w(n/24))),a-=bn(wn(r)),i=w(s/12),s%=12,l.days=a,l.months=s,l.years=i,this},Un.clone=function(){return Ge(this)},Un.get=function(t){return t=D(t),this.isValid()?this[t+"s"]():NaN},Un.milliseconds=Ln,Un.seconds=jn,Un.minutes=Dn,Un.hours=In,Un.days=Nn,Un.weeks=function(){return w(this.days()/7)},Un.months=Rn,Un.years=zn,Un.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=function(t,e,n){var i=Ge(t).abs(),r=Bn(i.as("s")),o=Bn(i.as("m")),a=Bn(i.as("h")),s=Bn(i.as("d")),l=Bn(i.as("M")),c=Bn(i.as("y")),u=r<=Fn.ss&&["s",r]||r0,u[4]=n,function(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}.apply(null,u)}(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)},Un.toISOString=Yn,Un.toString=Yn,Un.toJSON=Yn,Un.locale=Je,Un.localeData=en,Un.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Yn),Un.lang=tn,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),ct("x",rt),ct("X",/[+-]?\d+(\.\d{1,3})?/),dt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),dt("x",function(t,e,n){n._d=new Date(_(t))}),i.version="2.22.2",e=Ce,i.fn=hn,i.min=function(){return Le("isBefore",[].slice.call(arguments,0))},i.max=function(){return Le("isAfter",[].slice.call(arguments,0))},i.now=function(){return Date.now?Date.now():+new Date},i.utc=f,i.unix=function(t){return Ce(1e3*t)},i.months=function(t,e){return gn(t,e,"months")},i.isDate=l,i.locale=ce,i.invalid=g,i.duration=Ge,i.isMoment=x,i.weekdays=function(t,e,n){return mn(t,e,n,"weekdays")},i.parseZone=function(){return Ce.apply(null,arguments).parseZone()},i.localeData=he,i.isDuration=Ie,i.monthsShort=function(t,e){return gn(t,e,"monthsShort")},i.weekdaysMin=function(t,e,n){return mn(t,e,n,"weekdaysMin")},i.defineLocale=ue,i.updateLocale=function(t,e){if(null!=e){var n,i,r=re;null!=(i=le(t))&&(r=i._config),(n=new E(e=A(r,e))).parentLocale=oe[t],oe[t]=n,ce(t)}else null!=oe[t]&&(null!=oe[t].parentLocale?oe[t]=oe[t].parentLocale:null!=oe[t]&&delete oe[t]);return oe[t]},i.locales=function(){return O(oe)},i.weekdaysShort=function(t,e,n){return mn(t,e,n,"weekdaysShort")},i.normalizeUnits=D,i.relativeTimeRounding=function(t){return void 0===t?Bn:"function"===typeof t&&(Bn=t,!0)},i.relativeTimeThreshold=function(t,e){return void 0!==Fn[t]&&(void 0===e?Fn[t]:(Fn[t]=e,"s"===t&&(Fn.ss=e-1),!0))},i.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=hn,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},i},t.exports=e()}).call(e,n(609)(t))},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"f",function(){return r}),n.d(e,"c",function(){return o}),n.d(e,"e",function(){return a}),n.d(e,"g",function(){return s}),n.d(e,"d",function(){return l}),n.d(e,"b",function(){return c});var i=function(t){return"/"===t.charAt(0)?t:"/"+t},r=function(t){return"/"===t.charAt(0)?t.substr(1):t},o=function(t,e){return new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t)},a=function(t,e){return o(t,e)?t.substr(e.length):t},s=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},l=function(t){var e=t||"/",n="",i="",r=e.indexOf("#");-1!==r&&(i=e.substr(r),e=e.substr(0,r));var o=e.indexOf("?");return-1!==o&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===n?"":n,hash:"#"===i?"":i}},c=function(t){var e=t.pathname,n=t.search,i=t.hash,r=e||"/";return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(r+="#"===i.charAt(0)?i:"#"+i),r}},function(t,e,n){"use strict";e.f=function(t){return new Date(t).getTime()},e.a=function(t){var e=t.replace(/([\/\-])/g,"-");return 1===e.split("-").length?e+"-01":e},e.b=function(t){return i(t).format("YYYY-MM-DD")},e.d=function(t){return new Date(t).setUTCHours(3)},e.c=function(t,e){i.locale("es");var n=i(e).utcOffset("+00:00"),r="Frecuencia no soportada";"Anual"===t&&(r=n.format("YYYY"));if("Semestral"===t){var a=parseInt(n.format("M"),10),s=Math.ceil(a/6);r=s+"\xb0 semestre "+n.format("YYYY")}if("Trimestral"===t){var a=parseInt(n.format("M"),10),l=Math.ceil(a/3);r=l+"\xb0 trimestre "+n.format("YYYY")}"Mensual"===t&&(r=Object(o.a)(n.format("MMMM YYYY")));"Diaria"===t&&(r=Object(o.a)(n.format("DD MMMM, YYYY"),3));return r},e.e=function(t,e){var n=i(e,"YYYY-MM-DD").utcOffset("+00:00"),r="Frecuencia no soportada";"Anual"===t&&(r=n.format("YYYY"));if("Semestral"===t){var o=parseInt(n.format("M"),10),a=Math.ceil(o/6);r=a+"S "+n.format("YY")}if("Trimestral"===t){var o=parseInt(n.format("M"),10),s=Math.ceil(o/3);r=s+"T "+n.format("YY")}"Mensual"===t&&(r=n.format("MMM YY"));"Diaria"===t&&(r=n.format("D MMM YY"));return r};var i=n(86),r=(n.n(i),n(636)),o=(n.n(r),n(71))},function(t,e,n){"use strict";e.a=function(t){return null===t?NaN:+t}},function(t,e,n){"use strict";e.g=function(t){return[Object(i.e)(t[1],t[0]),Object(i.c)(t[2])]},e.a=function(t){var e=t[0],n=t[1],r=Object(i.g)(n);return[r*Object(i.g)(e),r*Object(i.t)(e),Object(i.t)(n)]},e.d=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},e.c=function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]},e.b=function(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]},e.f=function(t,e){return[t[0]*e,t[1]*e,t[2]*e]},e.e=function(t){var e=Object(i.u)(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e};var i=n(2)},function(t,e,n){"use strict";e.b=function(t){return function(e,n){var r=Object(i.g)(e),o=Object(i.g)(n),a=t(r*o);return[a*o*Object(i.t)(e),a*Object(i.t)(n)]}},e.a=function(t){return function(e,n){var r=Object(i.u)(e*e+n*n),o=t(r),a=Object(i.t)(o),s=Object(i.g)(o);return[Object(i.e)(e*a,r*s),Object(i.c)(r&&n*a/r)]}};var i=n(2)},function(t,e,n){"use strict";e.a=function(t,e,n,i,r){for(var o,a=t.children,s=-1,l=a.length,c=t.value&&(i-e)/t.value;++s1?0:t<-1?h:Math.acos(t)},e.c=function(t){return t>=1?f:t<=-1?-f:Math.asin(t)};var i=Math.abs,r=Math.atan2,o=Math.cos,a=Math.max,s=Math.min,l=Math.sin,c=Math.sqrt,u=1e-12,h=Math.PI,f=h/2,d=2*h},function(t,e,n){"use strict";e.a=function(t,e){if((r=t.length)>1)for(var n,i,r,o=1,a=t[e[0]],s=a.length;o=0;)n[e]=e;return n}},function(t,e,n){"use strict";n.d(e,"f",function(){return f}),n.d(e,"g",function(){return d}),n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return o}),n.d(e,"e",function(){return a}),e.d=g;var i,r,o,a,s=n(970),l=n(348),c=n(349),u=n(205),h=n(204),f=1e-6,d=1e-12;function p(t,e){return e[1]-t[1]||e[0]-t[0]}function g(t,e){var n,f,d,g=t.sort(p).pop();for(a=[],r=new Array(t.length),i=new h.b,o=new h.b;;)if(d=c.c,g&&(!d||g[1]=s)return null;var l=t-r.site[0],c=e-r.site[1],u=l*l+c*c;do{r=o.cells[i=a],a=null,r.halfedges.forEach(function(n){var i=o.edges[n],s=i.left;if(s!==r.site&&s||(s=i.right)){var l=t-s[0],c=e-s[1],h=l*l+c*c;hu;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var i=n(40);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,n){var i=n(9)("iterator"),r=!1;try{var o=[7][i]();o.return=function(){r=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o=[7],a=o[i]();a.next=function(){return{done:n=!0}},o[i]=function(){return a},t(o)}catch(t){}return n}},function(t,e,n){"use strict";var i=n(6);t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,n){"use strict";var i=n(83),r=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var o=n.call(t,e);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},function(t,e,n){"use strict";n(228);var i=n(20),r=n(24),o=n(5),a=n(41),s=n(9),l=n(156),c=s("species"),u=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")}),h=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var f=s(t),d=!o(function(){var e={};return e[f]=function(){return 7},7!=""[t](e)}),p=d?!o(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[c]=function(){return n}),n[f](""),!e}):void 0;if(!d||!p||"replace"===t&&!u||"split"===t&&!h){var g=/./[f],m=n(a,f,""[t],function(t,e,n,i,r){return e.exec===l?d&&!r?{done:!0,value:g.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}}),v=m[0],y=m[1];i(String.prototype,t,v),r(RegExp.prototype,f,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},function(t,e,n){var i=n(33),r=n(223),o=n(151),a=n(6),s=n(10),l=n(153),c={},u={};(e=t.exports=function(t,e,n,h,f){var d,p,g,m,v=f?function(){return t}:l(t),y=i(n,h,e?2:1),b=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(o(v)){for(d=s(t.length);d>b;b++)if((m=e?y(a(p=t[b])[0],p[1]):y(t[b]))===c||m===u)return m}else for(g=v.call(t);!(p=g.next()).done;)if((m=r(g,y,p.value,e))===c||m===u)return m}).BREAK=c,e.RETURN=u},function(t,e,n){var i=n(4).navigator;t.exports=i&&i.userAgent||""},function(t,e,n){"use strict";var i=n(4),r=n(1),o=n(20),a=n(70),s=n(45),l=n(105),c=n(69),u=n(7),h=n(5),f=n(101),d=n(65),p=n(142);t.exports=function(t,e,n,g,m,v){var y=i[t],b=y,x=m?"set":"add",w=b&&b.prototype,_={},S=function(t){var e=w[t];o(w,t,"delete"==t?function(t){return!(v&&!u(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(v&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!u(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof b&&(v||w.forEach&&!h(function(){(new b).entries().next()}))){var k=new b,M=k[x](v?{}:-0,1)!=k,O=h(function(){k.has(1)}),T=f(function(t){new b(t)}),P=!v&&h(function(){for(var t=new b,e=5;e--;)t[x](e,e);return!t.has(-0)});T||((b=e(function(e,n){c(e,b,t);var i=p(new y,e,b);return void 0!=n&&l(n,m,i[x],i),i})).prototype=w,w.constructor=b),(O||P)&&(S("delete"),S("has"),m&&S("get")),(P||M)&&S(x),v&&w.clear&&delete w.clear}else b=g.getConstructor(e,t,m,x),a(b.prototype,n),s.NEED=!0;return d(b,t),_[t]=b,r(r.G+r.W+r.F*(b!=y),_),v||g.setStrong(b,t,m),b}},function(t,e,n){for(var i,r=n(4),o=n(24),a=n(49),s=a("typed_array"),l=a("view"),c=!(!r.ArrayBuffer||!r.DataView),u=c,h=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");h<9;)(i=r[f[h++]])?(o(i.prototype,s,!0),o(i.prototype,l,!0)):u=!1;t.exports={ABV:c,CONSTR:u,TYPED:s,VIEW:l}},function(t,e,n){"use strict";n.d(e,"a",function(){return s});var i=n(71),r=n(608),o=n(85),a=this&&this.__assign||Object.assign||function(t){for(var e,n=1,i=arguments.length;nr.o?t-r.w:t<-r.o?t+r.w:t,e]}function a(t,e,n){return(t%=r.w)?e||n?Object(i.a)(l(t),c(e,n)):l(t):e||n?c(e,n):o}function s(t){return function(e,n){return[(e+=t)>r.o?e-r.w:e<-r.o?e+r.w:e,n]}}function l(t){var e=s(t);return e.invert=s(-t),e}function c(t,e){var n=Object(r.g)(t),i=Object(r.t)(t),o=Object(r.g)(e),a=Object(r.t)(e);function s(t,e){var s=Object(r.g)(e),l=Object(r.g)(t)*s,c=Object(r.t)(t)*s,u=Object(r.t)(e),h=u*n+l*i;return[Object(r.e)(c*o-h*a,l*n-u*i),Object(r.c)(h*o+c*a)]}return s.invert=function(t,e){var s=Object(r.g)(e),l=Object(r.g)(t)*s,c=Object(r.t)(t)*s,u=Object(r.t)(e),h=u*o-c*a;return[Object(r.e)(c*o+u*a,l*n+h*i),Object(r.c)(h*n-l*i)]},s}o.invert=o,e.a=function(t){function e(e){return(e=t(e[0]*r.r,e[1]*r.r))[0]*=r.h,e[1]*=r.h,e}return t=a(t[0]*r.r,t[1]*r.r,t.length>2?t[2]*r.r:0),e.invert=function(e){return(e=t.invert(e[0]*r.r,e[1]*r.r))[0]*=r.h,e[1]*=r.h,e},e}},function(t,e,n){"use strict";e.a=function(t,e,n,u){function h(i,r){return t<=i&&i<=n&&e<=r&&r<=u}function f(i,r,o,a){var s=0,l=0;if(null==i||(s=d(i,o))!==(l=d(r,o))||g(i,r)<0^o>0)do{a.point(0===s||3===s?t:n,s>1?u:e)}while((s=(s+o+4)%4)!==l);else a.point(r[0],r[1])}function d(r,o){return Object(i.a)(r[0]-t)0?0:3:Object(i.a)(r[0]-n)0?2:1:Object(i.a)(r[1]-e)0?1:0:o>0?3:2}function p(t,e){return g(t.x,e.x)}function g(t,e){var n=d(t,1),i=d(e,1);return n!==i?n-i:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(i){var d,g,m,v,y,b,x,w,_,S,k,M=i,O=Object(r.a)(),T={point:P,lineStart:function(){T.point=C,g&&g.push(m=[]);S=!0,_=!1,x=w=NaN},lineEnd:function(){d&&(C(v,y),b&&_&&O.rejoin(),d.push(O.result()));T.point=P,_&&M.lineEnd()},polygonStart:function(){M=O,d=[],g=[],k=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=g.length;nu&&(h-r)*(u-o)>(f-o)*(t-r)&&++e:f<=u&&(h-r)*(u-o)<(f-o)*(t-r)&&--e;return e}(),n=k&&e,r=(d=Object(s.f)(d)).length;(n||r)&&(i.polygonStart(),n&&(i.lineStart(),f(null,null,1,i),i.lineEnd()),r&&Object(a.a)(d,p,e,f,i),i.polygonEnd());M=i,d=g=m=null}};function P(t,e){h(t,e)&&M.point(t,e)}function C(i,r){var a=h(i,r);if(g&&m.push([i,r]),S)v=i,y=r,b=a,S=!1,a&&(M.lineStart(),M.point(i,r));else if(a&&_)M.point(i,r);else{var s=[x=Math.max(c,Math.min(l,x)),w=Math.max(c,Math.min(l,w))],f=[i=Math.max(c,Math.min(l,i)),r=Math.max(c,Math.min(l,r))];Object(o.a)(s,f,t,e,n,u)?(_||(M.lineStart(),M.point(s[0],s[1])),M.point(f[0],f[1]),a||M.lineEnd(),k=!1):a&&(M.lineStart(),M.point(i,r),k=!1)}x=i,w=r,_=a}return T}};var i=n(2),r=n(312),o=n(815),a=n(313),s=n(16),l=1e9,c=-l},function(t,e,n){"use strict";e.a=i;function i(t){return function(e){var n=new r;for(var i in t)n[i]=t[i];return n.stream=e,n}}function r(){}r.prototype={constructor:r,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}}},function(t,e,n){"use strict";e.a=function(t,e,n,i,r){for(var o,a=t.children,s=-1,l=a.length,c=t.value&&(r-n)/t.value;++s2?h:u,i=a=null,v}function v(e){return(i||(i=n(f,d,g?function(t){return function(e,n){var i=t(e=+e,n=+n);return function(t){return t<=e?0:t>=n?1:i(t)}}}(t):t,p)))(+e)}return v.invert=function(t){return(a||(a=n(d,f,c,g?function(t){return function(e,n){var i=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:i(t)}}}(e):e)))(+t)},v.domain=function(t){return arguments.length?(f=o.a.call(t,s.a),m()):f.slice()},v.range=function(t){return arguments.length?(d=o.b.call(t),m()):d.slice()},v.rangeRound=function(t){return d=o.b.call(t),p=r.f,m()},v.clamp=function(t){return arguments.length?(g=!!t,m()):g},v.interpolate=function(t){return arguments.length?(p=t,m()):p},m()};var i=n(16),r=n(26),o=n(61),a=n(197),s=n(329),l=[0,1];function c(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Object(a.a)(e)}function u(t,e,n,i){var r=t[0],o=t[1],a=e[0],s=e[1];return o may have only one child element"),this.unlisten=i.listen(function(){t.setState({match:t.computeMatch(i.location.pathname)})})},e.prototype.componentWillReceiveProps=function(t){r()(this.props.history===t.history,"You cannot change ")},e.prototype.componentWillUnmount=function(){this.unlisten()},e.prototype.render=function(){var t=this.props.children;return t?l.a.Children.only(t):null},e}(l.a.Component);d.propTypes={history:u.a.object.isRequired,children:u.a.node},d.contextTypes={router:u.a.object},d.childContextTypes={router:u.a.object.isRequired},e.a=d},function(t,e,n){"use strict";var i=n(612),r=n.n(i),o={},a=0;e.a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"===typeof e&&(e={path:e});var n=e,i=n.path,s=void 0===i?"/":i,l=n.exact,c=void 0!==l&&l,u=n.strict,h=void 0!==u&&u,f=n.sensitive,d=function(t,e){var n=""+e.end+e.strict+e.sensitive,i=o[n]||(o[n]={});if(i[t])return i[t];var s=[],l={re:r()(t,s,e),keys:s};return a<1e4&&(i[t]=l,a++),l}(s,{end:c,strict:h,sensitive:void 0!==f&&f}),p=d.re,g=d.keys,m=p.exec(t);if(!m)return null;var v=m[0],y=m.slice(1),b=t===v;return c&&!b?null:{path:s,url:"/"===s&&""===v?"/":v,isExact:b,params:g.reduce(function(t,e,n){return t[e.name]=y[n],t},{})}}},function(t,e,n){"use strict";e.b=function(t){return{type:i.a.LOAD_FEATURED_IDS,featuredIds:t}},e.a=function(){return{type:i.a.CLEAR_VIEW_SERIES,series:[]}},e.c=function(t){return{type:i.a.LOAD_VIEW_SERIES,series:t}},e.d=function(t){return{type:i.a.LOAD_DATE,date:t}},e.i=function(t){return{type:i.a.SET_SERIES_API,seriesApi:t}},e.h=function(t){return{type:i.a.SET_SERIE_TAGS,serieTags:t}},e.e=function(t){return{type:i.a.SET_UNIT_FORMAT,formatChartUnits:t}},e.f=function(t){return{type:i.a.SET_LAPS,laps:t}},e.g=function(t){return{type:i.a.SET_LOCALE,locale:t}};var i=n(58)},function(t,e,n){"use strict";e.c=function(t,e){return s(t,e).code},e.a=s,e.b=function(t){var e=Object.values(o);if(void 0===t)return e;return t.map(function(t){if(function(t){return a.test(t)}(t))return new r(t,t);var n=+t%e.length;return e[n]})};var i=n(63),r=function(){return function(t,e){this.name=t,this.code=e}}(),o={a1Blue1:new r("blue1","#0072BB"),a2Green1:new r("green1","#2E7D33"),a3Red1:new r("red1","#C62828"),a4Orange:new r("orange","#F9A822"),a5Violet:new r("violet","#6A1B99"),a6Pink:new r("pink","#EC407A"),a7Red2:new r("red2","#C2185B"),a8Blue2:new r("blue2","#039BE5"),a9Green2:new r("green2","#6EA100")},a=/^#[0-9a-f]{6}$/i;function s(t,e,n){var r=void 0===n?Object.values(o):n;return r[t.findIndex(function(t){return Object(i.c)(t)===e})%r.length]}},function(t,e,n){var i=n(7),r=n(4).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e,n){e.f=n(9)},function(t,e,n){var i=n(97)("keys"),r=n(49);t.exports=function(t){return i[t]||(i[t]=r(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var i=n(4).document;t.exports=i&&i.documentElement},function(t,e,n){var i=n(7),r=n(6),o=function(t,e){if(r(t),!i(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,i){try{(i=n(33)(Function.call,n(36).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:o}},function(t,e){t.exports="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},function(t,e,n){var i=n(7),r=n(140).set;t.exports=function(t,e,n){var o,a=e.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&i(o)&&r&&r(t,o),t}},function(t,e,n){"use strict";var i=n(35),r=n(41);t.exports=function(t){var e=String(r(this)),n="",o=i(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e,n){var i=n(35),r=n(41);t.exports=function(t){return function(e,n){var o,a,s=String(r(e)),l=i(n),c=s.length;return l<0||l>=c?t?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}}},function(t,e,n){"use strict";var i=n(50),r=n(1),o=n(20),a=n(24),s=n(67),l=n(222),c=n(65),u=n(55),h=n(9)("iterator"),f=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,p,g,m,v){l(n,e,p);var y,b,x,w=function(t){if(!f&&t in M)return M[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},_=e+" Iterator",S="values"==g,k=!1,M=t.prototype,O=M[h]||M["@@iterator"]||g&&M[g],T=O||w(g),P=g?S?w("entries"):T:void 0,C="Array"==e&&M.entries||O;if(C&&(x=u(C.call(new t)))!==Object.prototype&&x.next&&(c(x,_,!0),i||"function"==typeof x[h]||a(x,h,d)),S&&O&&"values"!==O.name&&(k=!0,T=function(){return O.call(this)}),i&&!v||!f&&!k&&M[h]||a(M,h,T),s[e]=T,s[_]=d,g)if(y={values:S?T:w("values"),keys:m?T:w("keys"),entries:P},v)for(b in y)b in M||o(M,b,y[b]);else r(r.P+r.F*(f||k),e,y);return y}},function(t,e,n){var i=n(149),r=n(41);t.exports=function(t,e,n){if(i(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(t))}},function(t,e,n){var i=n(7),r=n(40),o=n(9)("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},function(t,e,n){var i=n(9)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){var i=n(67),r=n(9)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},function(t,e,n){"use strict";var i=n(12),r=n(48);t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},function(t,e,n){var i=n(83),r=n(9)("iterator"),o=n(67);t.exports=n(11).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[i(t)]}},function(t,e,n){"use strict";var i=n(18),r=n(52),o=n(10);t.exports=function(t){for(var e=i(this),n=o(e.length),a=arguments.length,s=r(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:r(l,n);c>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var i=n(56),r=n(227),o=n(67),a=n(25);t.exports=n(147)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e,n){"use strict";var i,r,o=n(102),a=RegExp.prototype.exec,s=String.prototype.replace,l=a,c=(i=/a/,r=/b*/g,a.call(i,"a"),a.call(r,"a"),0!==i.lastIndex||0!==r.lastIndex),u=void 0!==/()??/.exec("")[1];(c||u)&&(l=function(t){var e,n,i,r,l=this;return u&&(n=new RegExp("^"+l.source+"$(?!\\s)",o.call(l))),c&&(e=l.lastIndex),i=a.call(l,t),c&&i&&(l.lastIndex=l.global?i.index+i[0].length:e),u&&i&&i.length>1&&s.call(i[0],n,function(){for(r=1;rn;)e.push(arguments[n++]);return v[++m]=function(){s("function"==typeof t?t:Function(t),e)},i(m),m},d=function(t){delete v[t]},"process"==n(40)(h)?i=function(t){h.nextTick(a(y,t,1))}:g&&g.now?i=function(t){g.now(a(y,t,1))}:p?(o=(r=new p).port2,r.port1.onmessage=b,i=a(o.postMessage,o,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(i=function(t){u.postMessage(t+"","*")},u.addEventListener("message",b,!1)):i="onreadystatechange"in c("script")?function(t){l.appendChild(c("script")).onreadystatechange=function(){l.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:f,clear:d}},function(t,e,n){"use strict";var i=n(4),r=n(13),o=n(50),a=n(108),s=n(24),l=n(70),c=n(5),u=n(69),h=n(35),f=n(10),d=n(235),p=n(54).f,g=n(12).f,m=n(154),v=n(65),y="prototype",b="Wrong index!",x=i.ArrayBuffer,w=i.DataView,_=i.Math,S=i.RangeError,k=i.Infinity,M=x,O=_.abs,T=_.pow,P=_.floor,C=_.log,A=_.LN2,E=r?"_b":"buffer",L=r?"_l":"byteLength",j=r?"_o":"byteOffset";function D(t,e,n){var i,r,o,a=new Array(n),s=8*n-e-1,l=(1<>1,u=23===e?T(2,-24)-T(2,-77):0,h=0,f=t<0||0===t&&1/t<0?1:0;for((t=O(t))!=t||t===k?(r=t!=t?1:0,i=l):(i=P(C(t)/A),t*(o=T(2,-i))<1&&(i--,o*=2),(t+=i+c>=1?u/o:u*T(2,1-c))*o>=2&&(i++,o/=2),i+c>=l?(r=0,i=l):i+c>=1?(r=(t*o-1)*T(2,e),i+=c):(r=t*T(2,c-1)*T(2,e),i=0));e>=8;a[h++]=255&r,r/=256,e-=8);for(i=i<0;a[h++]=255&i,i/=256,s-=8);return a[--h]|=128*f,a}function I(t,e,n){var i,r=8*n-e-1,o=(1<>1,s=r-7,l=n-1,c=t[l--],u=127&c;for(c>>=7;s>0;u=256*u+t[l],l--,s-=8);for(i=u&(1<<-s)-1,u>>=-s,s+=e;s>0;i=256*i+t[l],l--,s-=8);if(0===u)u=1-a;else{if(u===o)return i?NaN:c?-k:k;i+=T(2,e),u-=a}return(c?-1:1)*i*T(2,u-e)}function N(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function R(t){return[255&t]}function z(t){return[255&t,t>>8&255]}function B(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function F(t){return D(t,52,8)}function W(t){return D(t,23,4)}function H(t,e,n){g(t[y],e,{get:function(){return this[n]}})}function Y(t,e,n,i){var r=d(+n);if(r+e>t[L])throw S(b);var o=t[E]._b,a=r+t[j],s=o.slice(a,a+e);return i?s:s.reverse()}function U(t,e,n,i,r,o){var a=d(+n);if(a+e>t[L])throw S(b);for(var s=t[E]._b,l=a+t[j],c=i(+r),u=0;uq;)(G=V[q++])in x||s(x,G,M[G]);o||(X.constructor=x)}var K=new w(new x(2)),$=w[y].setInt8;K.setInt8(0,2147483648),K.setInt8(1,2147483649),!K.getInt8(0)&&K.getInt8(1)||l(w[y],{setInt8:function(t,e){$.call(this,t,e<<24>>24)},setUint8:function(t,e){$.call(this,t,e<<24>>24)}},!0)}else x=function(t){u(this,x,"ArrayBuffer");var e=d(t);this._b=m.call(new Array(e),0),this[L]=e},w=function(t,e,n){u(this,w,"DataView"),u(t,x,"DataView");var i=t[L],r=h(e);if(r<0||r>i)throw S("Wrong offset!");if(r+(n=void 0===n?i-r:f(n))>i)throw S("Wrong length!");this[E]=t,this[j]=r,this[L]=n},r&&(H(x,"byteLength","_l"),H(w,"buffer","_b"),H(w,"byteLength","_l"),H(w,"byteOffset","_o")),l(w[y],{getInt8:function(t){return Y(this,1,t)[0]<<24>>24},getUint8:function(t){return Y(this,1,t)[0]},getInt16:function(t){var e=Y(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Y(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return N(Y(this,4,t,arguments[1]))},getUint32:function(t){return N(Y(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return I(Y(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return I(Y(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){U(this,1,t,R,e)},setUint8:function(t,e){U(this,1,t,R,e)},setInt16:function(t,e){U(this,2,t,z,e,arguments[2])},setUint16:function(t,e){U(this,2,t,z,e,arguments[2])},setInt32:function(t,e){U(this,4,t,B,e,arguments[2])},setUint32:function(t,e){U(this,4,t,B,e,arguments[2])},setFloat32:function(t,e){U(this,4,t,W,e,arguments[2])},setFloat64:function(t,e){U(this,8,t,F,e,arguments[2])}});v(x,"ArrayBuffer"),v(w,"DataView"),s(w[y],a.VIEW,!0),e.ArrayBuffer=x,e.DataView=w},function(t,e,n){"use strict";var i=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(t){i[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,a,s=function(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),l=1;l2&&this.props.seriesApi.searchSeries(t,{offset:0,limit:10}).then(function(t){e.setState({autoCompleteItems:t.result,loading:!1})})},e.prototype.onSearchTermChange=function(t){var e=t.target.value;this.setState({searchTerm:e,loading:!0}),!1===this.props.enterRequired&&e.length>2?this.props.onSearch(e):this.searchPreviewItems(e)},e.prototype.triggerSearch=function(t){t.preventDefault(),this.props.onSearch(this.state.searchTerm)},e.prototype.onSelect=function(t,e){"search"===e.id?this.props.onSearch(this.state.searchTerm):this.props.onSelect(e.id)},e.prototype.render=function(){return r.createElement(l.a,{onSubmit:this.triggerSearch},r.createElement(o.a,{value:this.state.searchTerm,onChange:this.onSearchTermChange,getItemValue:d,items:this.itemsToRender(),renderItem:this.renderItem,onSelect:this.onSelect,wrapperProps:{className:"form-autocomplete"}}),r.createElement(s.a,{onClick:this.triggerSearch}))},e.prototype.itemsToRender=function(){return[{id:"search",title:"Buscar: "+this.state.searchTerm}].concat(this.state.autoCompleteItems)},e.prototype.renderItem=function(t,e){return"search"===t.id?this.renderSearch(t,e):this.renderItemResult(t,e)},e.prototype.renderSearch=function(t,e){var n=this;if(this.state.searchTerm.length>2&&this.state.loading)return r.createElement("div",{key:this.state.searchTerm||"all-values"},r.createElement(c.a,null));return r.createElement("div",{id:t.id,key:t.id,onClick:function(){return n.props.onSearch(n.state.searchTerm)},className:e?"highlight-item pointer":"pointer"},t.title)},e.prototype.renderItemResult=function(t,e){var n=this;return r.createElement(a.a,{key:t.id,item:t,isHighlighted:e,searchTerm:this.state.searchTerm||"",handleClick:function(){return n.onSelect("",t)}})},e}(r.Component);function d(t){return t.title}e.a=f},function(t,e,n){"use strict";var i=n(109),r=function(){function t(){}return t.prototype.toLocaleString=function(t){return t.toLocaleString("es-AR")},t.prototype.decimalSeparator=function(){return","},t.prototype.thousandSeparator=function(){return"."},t.prototype.toDecimalString=function(t,e){return void 0===e&&(e=i.a),t.toFixed(e).replace(".",this.decimalSeparator())},t}();e.a=r},function(t,e,n){"use strict";var i=n(89);e.a=function(t,e,n){if(null==n&&(n=i.a),r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,o=(r-1)*e,a=Math.floor(o),s=+n(t[a],a,t);return s+(+n(t[a+1],a+1,t)-s)*(o-a)}}},function(t,e,n){"use strict";n(665);var i=n(285);n.d(e,"a",function(){return i.a}),n.d(e,"b",function(){return i.b})},function(t,e,n){"use strict";var i=n(170);e.a=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),i.a.hasOwnProperty(e)?{space:i.a[e],local:t}:t}},function(t,e,n){"use strict";n.d(e,"b",function(){return i});var i="http://www.w3.org/1999/xhtml";e.a={svg:"http://www.w3.org/2000/svg",xhtml:i,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(t,e,n){"use strict";function i(){}e.a=function(t){return null==t?i:function(){return this.querySelector(t)}}},function(t,e,n){"use strict";e.a=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}},function(t,e,n){"use strict";n.d(e,"c",function(){return r}),e.a=function(t,e,n,i){var o=r;t.sourceEvent=r,r=t;try{return e.apply(n,i)}finally{r=o}};var i={},r=null;"undefined"!==typeof document&&("onmouseenter"in document.documentElement||(i={mouseenter:"mouseover",mouseleave:"mouseout"}));function o(t,e,n){return t=a(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function a(t,e,n){return function(i){var o=r;r=i;try{t.call(this,this.__data__,e,n)}finally{r=o}}}function s(t){return function(){var e=this.__on;if(e){for(var n,i=0,r=-1,o=e.length;i=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}(t+""),a=o.length;if(!(arguments.length<2)){for(c=e?l:s,null==n&&(n=!1),i=0;i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=h.exec(t))?x(parseInt(e[1],16)):(e=f.exec(t))?new k(e[1],e[2],e[3],1):(e=d.exec(t))?new k(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=p.exec(t))?w(e[1],e[2],e[3],e[4]):(e=g.exec(t))?w(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=m.exec(t))?O(e[1],e[2]/100,e[3]/100,1):(e=v.exec(t))?O(e[1],e[2]/100,e[3]/100,e[4]):y.hasOwnProperty(t)?x(y[t]):"transparent"===t?new k(NaN,NaN,NaN,0):null}function x(t){return new k(t>>16&255,t>>8&255,255&t,1)}function w(t,e,n,i){return i<=0&&(t=e=n=NaN),new k(t,e,n,i)}function _(t){return t instanceof r||(t=b(t)),t?new k((t=t.rgb()).r,t.g,t.b,t.opacity):new k}function S(t,e,n,i){return 1===arguments.length?_(t):new k(t,e,n,null==i?1:i)}function k(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function M(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function O(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new P(t,e,n,i)}function T(t,e,n,i){return 1===arguments.length?function(t){if(t instanceof P)return new P(t.h,t.s,t.l,t.opacity);if(t instanceof r||(t=b(t)),!t)return new P;if(t instanceof P)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,o=Math.min(e,n,i),a=Math.max(e,n,i),s=NaN,l=a-o,c=(a+o)/2;return l?(s=e===a?(n-i)/l+6*(n0&&c<1?0:s,new P(s,l,c,t.opacity)}(t):new P(t,e,n,null==i?1:i)}function P(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function C(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Object(i.a)(r,b,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Object(i.a)(k,S,Object(i.b)(r,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new k(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new k(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+M(this.r)+M(this.g)+M(this.b)},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),Object(i.a)(P,T,Object(i.b)(r,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new P(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new P(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new k(C(t>=240?t-240:t+120,r,i),C(t,r,i),C(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}))},function(t,e,n){"use strict";e.b=function(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n},e.a=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},function(t,e,n){"use strict";function i(t,e,n,i,r){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*i+a*r)/6}e.a=i,e.b=function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),o=t[r],a=t[r+1],s=r>0?t[r-1]:2*o-a,l=r=0&&e._call.call(null,t),e=e._next;--o}()}finally{o=0,function(){var t,e,n=i,o=1/0;for(;n;)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:i=e);r=t,x(o)}(),u=0}}function b(){var t=f.now(),e=t-c;e>l&&(h-=e,c=t)}function x(t){o||(a&&(a=clearTimeout(a)),t-u>24?(t<1/0&&(a=setTimeout(y,t-f.now()-h)),s&&(s=clearInterval(s))):(s||(c=f.now(),s=setInterval(b,l)),o=1,d(y)))}m.prototype=v.prototype={constructor:m,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?p():+n)+(null==e?0:+e),this._next||r===this||(r?r._next=this:i=this,r=this),this._call=t,this._time=n,x()},stop:function(){this._call&&(this._call=null,this._time=1/0,x())}}},function(t,e,n){"use strict";n.d(e,"b",function(){return i});var i="$";function r(){}function o(t,e){var n=new r;if(t instanceof r)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var i,o=-1,a=t.length;if(null==e)for(;++o=u?d=!0:(l=t.charCodeAt(h++))===a?p=!0:l===s&&(p=!0,t.charCodeAt(h)===a&&++h),t.slice(c+1,e-1).replace(/""/g,'"')}for(;h1?i[0]+i.slice(2):i,+t.slice(n+1)]}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";var i=n(2),r=n(191),o=n(826);function a(t,e){var n=Object(i.t)(t),r=(n+Object(i.t)(e))/2;if(Object(i.a)(r)=0;--o)c.push(i=n.children[o]=new y(r[o])),i.parent=n,i.depth=n.depth+1;return s.eachBefore(v)}function g(t){return t.children}function m(t){t.data=t.data.data}function v(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function y(t){this.data=t,this.depth=this.height=0,this.parent=null}y.prototype=p.prototype={constructor:y,count:i.a,each:r.a,eachAfter:a.a,eachBefore:o.a,sum:s.a,sort:l.a,path:c.a,ancestors:u.a,descendants:h.a,leaves:f.a,links:d.a,copy:function(){return p(this).eachBefore(m)}}},function(t,e,n){"use strict";function i(t){if("function"!==typeof t)throw new Error;return t}e.a=function(t){return null==t?null:i(t)},e.b=i},function(t,e,n){"use strict";n.d(e,"b",function(){return o}),e.c=a;var i=n(92),r=n(123),o=(1+Math.sqrt(5))/2;function a(t,e,n,o,a,s){for(var l,c,u,h,f,d,p,g,m,v,y,b=[],x=e.children,w=0,_=0,S=x.length,k=e.value;wp&&(p=c),y=f*f*v,(g=Math.max(p/y,y/d))>m){f-=c;break}m=g}b.push(l={value:f,dice:u1?e:1)},n}(o)},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";var i=n(199);n.d(e,"a",function(){return i.a}),n.d(e,"b",function(){return i.b});n(332),n(333),n(896)},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return o}),n.d(e,"c",function(){return a});var i,r,o,a,s,l=n(332);s={dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},i=Object(l.a)(s),r=i.format,i.parse,o=i.utcFormat,a=i.utcParse},function(t,e,n){"use strict";var i=n(59),r=n(62),o=n(126),a=n(201);e.a=function(){var t=a.a,e=a.b,n=Object(r.a)(!0),s=null,l=o.a,c=null;function u(r){var o,a,u,h=r.length,f=!1;for(null==s&&(c=l(u=Object(i.a)())),o=0;o<=h;++o)!(oi.f){var l=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,o=(o*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>i.f){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*u+t._x1*t._l23_2a-e*t._l12_2a)/h,s=(s*u+t._y1*t._l23_2a-n*t._l12_2a)/h}t._context.bezierCurveTo(r,o,a,s,t._x2,t._y2)}function a(t,e){this._context=t,this._alpha=e}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:o(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return e?new a(t,e):new r.a(t,0)}return n.alpha=function(e){return t(+e)},n})(.5)},function(t,e,n){"use strict";e.b=r;var i=n(95);function r(t){for(var e,n=0,i=-1,r=t.length;++ii.f||Math.abs(s[0][1]-s[1][1])>i.f)||delete i.e[l]};var i=n(96);function r(t,e,n,i){t[0]||t[1]?t.left===n?t[1]=i:t[0]=i:(t[0]=i,t.left=e,t.right=n)}function o(t,e,n,i,r){var o,a=t[0],s=t[1],l=a[0],c=a[1],u=0,h=1,f=s[0]-l,d=s[1]-c;if(o=e-l,f||!(o>0)){if(o/=f,f<0){if(o0){if(o>h)return;o>u&&(u=o)}if(o=i-l,f||!(o<0)){if(o/=f,f<0){if(o>h)return;o>u&&(u=o)}else if(f>0){if(o0)){if(o/=d,d<0){if(o0){if(o>h)return;o>u&&(u=o)}if(o=r-c,d||!(o<0)){if(o/=d,d<0){if(o>h)return;o>u&&(u=o)}else if(d>0){if(o0||h<1)||(u>0&&(t[0]=[l+u*f,c+u*d]),h<1&&(t[1]=[l+h*f,c+h*d]),!0)}}}}}function a(t,e,n,i,r){var o=t[1];if(o)return!0;var a,s,l=t[0],c=t.left,u=t.right,h=c[0],f=c[1],d=u[0],p=u[1],g=(h+d)/2,m=(f+p)/2;if(p===f){if(g=i)return;if(h>d){if(l){if(l[1]>=r)return}else l=[g,n];o=[g,r]}else{if(l){if(l[1]1)if(h>d){if(l){if(l[1]>=r)return}else l=[(n-s)/a,n];o=[(r-s)/a,r]}else{if(l){if(l[1]=i)return}else l=[e,a*e+s];o=[i,a*i+s]}else{if(l){if(l[0] or withRouter() outside a ");var c=e.route,u=(i||c.location).pathname;return r?Object(h.a)(u,{path:r,strict:o,exact:s,sensitive:l}):c.match},e.prototype.componentWillMount=function(){r()(!(this.props.component&&this.props.render),"You should not use and in the same route; will be ignored"),r()(!(this.props.component&&this.props.children&&!p(this.props.children)),"You should not use and in the same route; will be ignored"),r()(!(this.props.render&&this.props.children&&!p(this.props.children)),"You should not use and in the same route; will be ignored")},e.prototype.componentWillReceiveProps=function(t,e){r()(!(t.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),r()(!(!t.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(t,e.router)})},e.prototype.render=function(){var t=this.state.match,e=this.props,n=e.children,i=e.component,r=e.render,o=this.context.router,a=o.history,s=o.route,c=o.staticContext,u={match:t,location:this.props.location||s.location,history:a,staticContext:c};return i?t?l.a.createElement(i,u):null:r?t?r(u):null:n?"function"===typeof n?n(u):p(n)?null:l.a.Children.only(n):null},e}(l.a.Component);g.propTypes={computedMatch:u.a.object,path:u.a.string,exact:u.a.bool,strict:u.a.bool,sensitive:u.a.bool,component:u.a.func,render:u.a.func,children:u.a.oneOfType([u.a.func,u.a.node]),location:u.a.object},g.contextTypes={router:u.a.shape({history:u.a.object.isRequired,route:u.a.object.isRequired,staticContext:u.a.object})},g.childContextTypes={router:u.a.object.isRequired},e.a=g},function(t,e,n){"use strict";e.a=function(t){var e=new r.a;"AR"===t?e=new i.a:"US"===t&&(e=new o.a);return e};var i=n(637),r=n(166),o=n(638)},function(t,e,n){t.exports=!n(13)&&!n(5)(function(){return 7!=Object.defineProperty(n(135)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(4),r=n(11),o=n(50),a=n(136),s=n(12).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){var i=n(23),r=n(25),o=n(98)(!1),a=n(137)("IE_PROTO");t.exports=function(t,e){var n,s=r(t),l=0,c=[];for(n in s)n!=a&&i(s,n)&&c.push(n);for(;e.length>l;)i(s,n=e[l++])&&(~o(c,n)||c.push(n));return c}},function(t,e,n){var i=n(12),r=n(6),o=n(51);t.exports=n(13)?Object.defineProperties:function(t,e){r(t);for(var n,a=o(e),s=a.length,l=0;s>l;)i.f(t,n=a[l++],e[n]);return t}},function(t,e,n){var i=n(25),r=n(54).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return r(t)}catch(t){return a.slice()}}(t):r(i(t))}},function(t,e,n){"use strict";var i=n(51),r=n(99),o=n(82),a=n(18),s=n(81),l=Object.assign;t.exports=!l||n(5)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=i})?function(t,e){for(var n=a(t),l=arguments.length,c=1,u=r.f,h=o.f;l>c;)for(var f,d=s(arguments[c++]),p=u?i(d).concat(u(d)):i(d),g=p.length,m=0;g>m;)h.call(d,f=p[m++])&&(n[f]=d[f]);return n}:l},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},function(t,e,n){"use strict";var i=n(34),r=n(7),o=n(216),a=[].slice,s={};t.exports=Function.bind||function(t){var e=i(this),n=a.call(arguments,1),l=function(){var i=n.concat(a.call(arguments));return this instanceof l?function(t,e,n){if(!(e in s)){for(var i=[],r=0;r>>0||(a.test(n)?16:10))}:i},function(t,e,n){var i=n(4).parseFloat,r=n(66).trim;t.exports=1/i(n(141)+"-0")!==-1/0?function(t){var e=r(String(t),3),n=i(e);return 0===n&&"-"==e.charAt(0)?-0:n}:i},function(t,e,n){var i=n(40);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=i(t))throw TypeError(e);return+t}},function(t,e,n){var i=n(7),r=Math.floor;t.exports=function(t){return!i(t)&&isFinite(t)&&r(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var i=n(53),r=n(48),o=n(65),a={};n(24)(a,n(9)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(a,{next:r(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var i=n(6);t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&i(o.call(t)),e}}},function(t,e,n){var i=n(471);t.exports=function(t,e){return new(i(t))(e)}},function(t,e,n){var i=n(34),r=n(18),o=n(81),a=n(10);t.exports=function(t,e,n,s,l){i(e);var c=r(t),u=o(c),h=a(c.length),f=l?h-1:0,d=l?-1:1;if(n<2)for(;;){if(f in u){s=u[f],f+=d;break}if(f+=d,l?f<0:h<=f)throw TypeError("Reduce of empty array with no initial value")}for(;l?f>=0:h>f;f+=d)f in u&&(s=e(s,u[f],f,c));return s}},function(t,e,n){"use strict";var i=n(18),r=n(52),o=n(10);t.exports=[].copyWithin||function(t,e){var n=i(this),a=o(n.length),s=r(t,a),l=r(e,a),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?a:r(c,a))-l,a-s),h=1;for(l0;)l in n?n[s]=n[l]:delete n[s],s+=h,l+=h;return n}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var i=n(156);n(1)({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},function(t,e,n){n(13)&&"g"!=/./g.flags&&n(12).f(RegExp.prototype,"flags",{configurable:!0,get:n(102)})},function(t,e,n){"use strict";var i,r,o,a,s=n(50),l=n(4),c=n(33),u=n(83),h=n(1),f=n(7),d=n(34),p=n(69),g=n(105),m=n(84),v=n(158).set,y=n(491)(),b=n(231),x=n(492),w=n(106),_=n(232),S=l.TypeError,k=l.process,M=k&&k.versions,O=M&&M.v8||"",T=l.Promise,P="process"==u(k),C=function(){},A=r=b.f,E=!!function(){try{var t=T.resolve(1),e=(t.constructor={})[n(9)("species")]=function(t){t(C,C)};return(P||"function"==typeof PromiseRejectionEvent)&&t.then(C)instanceof e&&0!==O.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),L=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},j=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var i=t._v,r=1==t._s,o=0,a=function(e){var n,o,a,s=r?e.ok:e.fail,l=e.resolve,c=e.reject,u=e.domain;try{s?(r||(2==t._h&&N(t),t._h=1),!0===s?n=i:(u&&u.enter(),n=s(i),u&&(u.exit(),a=!0)),n===e.promise?c(S("Promise-chain cycle")):(o=L(n))?o.call(n,l,c):l(n)):c(i)}catch(t){u&&!a&&u.exit(),c(t)}};n.length>o;)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&D(t)})}},D=function(t){v.call(l,function(){var e,n,i,r=t._v,o=I(t);if(o&&(e=x(function(){P?k.emit("unhandledRejection",r,t):(n=l.onunhandledrejection)?n({promise:t,reason:r}):(i=l.console)&&i.error&&i.error("Unhandled promise rejection",r)}),t._h=P||I(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},I=function(t){return 1!==t._h&&0===(t._a||t._c).length},N=function(t){v.call(l,function(){var e;P?k.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})})},R=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),j(e,!0))},z=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=L(t))?y(function(){var i={_w:n,_d:!1};try{e.call(t,c(z,i,1),c(R,i,1))}catch(t){R.call(i,t)}}):(n._v=t,n._s=1,j(n,!1))}catch(t){R.call({_w:n,_d:!1},t)}}};E||(T=function(t){p(this,T,"Promise","_h"),d(t),i.call(this);try{t(c(z,this,1),c(R,this,1))}catch(t){R.call(this,t)}},(i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(70)(T.prototype,{then:function(t,e){var n=A(m(this,T));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=P?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&j(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new i;this.promise=t,this.resolve=c(z,t,1),this.reject=c(R,t,1)},b.f=A=function(t){return t===T||t===a?new o(t):r(t)}),h(h.G+h.W+h.F*!E,{Promise:T}),n(65)(T,"Promise"),n(68)("Promise"),a=n(11).Promise,h(h.S+h.F*!E,"Promise",{reject:function(t){var e=A(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(s||!E),"Promise",{resolve:function(t){return _(s&&this===a?T:this,t)}}),h(h.S+h.F*!(E&&n(101)(function(t){T.all(t).catch(C)})),"Promise",{all:function(t){var e=this,n=A(e),i=n.resolve,r=n.reject,o=x(function(){var n=[],o=0,a=1;g(t,!1,function(t){var s=o++,l=!1;n.push(void 0),a++,e.resolve(t).then(function(t){l||(l=!0,n[s]=t,--a||i(n))},r)}),--a||i(n)});return o.e&&r(o.v),n.promise},race:function(t){var e=this,n=A(e),i=n.reject,r=x(function(){g(t,!1,function(t){e.resolve(t).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}})},function(t,e,n){"use strict";var i=n(34);t.exports.f=function(t){return new function(t){var e,n;this.promise=new t(function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i}),this.resolve=i(e),this.reject=i(n)}(t)}},function(t,e,n){var i=n(6),r=n(7),o=n(231);t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){"use strict";var i=n(12).f,r=n(53),o=n(70),a=n(33),s=n(69),l=n(105),c=n(147),u=n(227),h=n(68),f=n(13),d=n(45).fastKey,p=n(57),g=f?"_s":"size",m=function(t,e){var n,i=d(e);if("F"!==i)return t._i[i];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,c){var u=t(function(t,i){s(t,u,e,"_i"),t._t=e,t._i=r(null),t._f=void 0,t._l=void 0,t[g]=0,void 0!=i&&l(i,n,t[c],t)});return o(u.prototype,{clear:function(){for(var t=p(this,e),n=t._i,i=t._f;i;i=i.n)i.r=!0,i.p&&(i.p=i.p.n=void 0),delete n[i.i];t._f=t._l=void 0,t[g]=0},delete:function(t){var n=p(this,e),i=m(n,t);if(i){var r=i.n,o=i.p;delete n._i[i.i],i.r=!0,o&&(o.n=r),r&&(r.p=o),n._f==i&&(n._f=r),n._l==i&&(n._l=o),n[g]--}return!!i},forEach:function(t){p(this,e);for(var n,i=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(i(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!m(p(this,e),t)}}),f&&i(u.prototype,"size",{get:function(){return p(this,e)[g]}}),u},def:function(t,e,n){var i,r,o=m(t,e);return o?o.v=n:(t._l=o={i:r=d(e,!0),k:e,v:n,p:i=t._l,n:void 0,r:!1},t._f||(t._f=o),i&&(i.n=o),t[g]++,"F"!==r&&(t._i[r]=o)),t},getEntry:m,setStrong:function(t,e,n){c(t,e,function(t,n){this._t=p(t,e),this._k=n,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?u(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,u(1))},n?"entries":"values",!n,!0),h(e)}}},function(t,e,n){"use strict";var i=n(70),r=n(45).getWeak,o=n(6),a=n(7),s=n(69),l=n(105),c=n(38),u=n(23),h=n(57),f=c(5),d=c(6),p=0,g=function(t){return t._l||(t._l=new m)},m=function(){this.a=[]},v=function(t,e){return f(t.a,function(t){return t[0]===e})};m.prototype={get:function(t){var e=v(this,t);if(e)return e[1]},has:function(t){return!!v(this,t)},set:function(t,e){var n=v(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=d(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,o){var c=t(function(t,i){s(t,c,e,"_i"),t._t=e,t._i=p++,t._l=void 0,void 0!=i&&l(i,n,t[o],t)});return i(c.prototype,{delete:function(t){if(!a(t))return!1;var n=r(t);return!0===n?g(h(this,e)).delete(t):n&&u(n,this._i)&&delete n[this._i]},has:function(t){if(!a(t))return!1;var n=r(t);return!0===n?g(h(this,e)).has(t):n&&u(n,this._i)}}),c},def:function(t,e,n){var i=r(o(e),!0);return!0===i?g(t).set(e,n):i[t._i]=n,t},ufstore:g}},function(t,e,n){var i=n(35),r=n(10);t.exports=function(t){if(void 0===t)return 0;var e=i(t),n=r(e);if(e!==n)throw RangeError("Wrong length!");return n}},function(t,e,n){var i=n(54),r=n(99),o=n(6),a=n(4).Reflect;t.exports=a&&a.ownKeys||function(t){var e=i.f(o(t)),n=r.f;return n?e.concat(n(t)):e}},function(t,e,n){var i=n(10),r=n(143),o=n(41);t.exports=function(t,e,n,a){var s=String(o(t)),l=s.length,c=void 0===n?" ":String(n),u=i(e);if(u<=l||""==c)return s;var h=u-l,f=r.call(c,Math.ceil(h/c.length));return f.length>h&&(f=f.slice(0,h)),a?f+s:s+f}},function(t,e,n){var i=n(51),r=n(25),o=n(82).f;t.exports=function(t){return function(e){for(var n,a=r(e),s=i(a),l=s.length,c=0,u=[];l>c;)o.call(a,n=s[c++])&&u.push(t?[n,a[n]]:a[n]);return u}}},function(t,e,n){"use strict";var i=n(553);function r(){}var o=null,a={};function s(t){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");if("function"!==typeof t)throw new TypeError("Promise constructor's argument is not a function");this._75=0,this._83=0,this._18=null,this._38=null,t!==r&&d(t,this)}function l(t,e){for(;3===t._83;)t=t._18;if(s._47&&s._47(t),0===t._83)return 0===t._75?(t._75=1,void(t._38=e)):1===t._75?(t._75=2,void(t._38=[t._38,e])):void t._38.push(e);!function(t,e){i(function(){var n=1===t._83?e.onFulfilled:e.onRejected;if(null!==n){var i=function(t,e){try{return t(e)}catch(t){return o=t,a}}(n,t._18);i===a?u(e.promise,o):c(e.promise,i)}else 1===t._83?c(e.promise,t._18):u(e.promise,t._18)})}(t,e)}function c(t,e){if(e===t)return u(t,new TypeError("A promise cannot be resolved with itself."));if(e&&("object"===typeof e||"function"===typeof e)){var n=function(t){try{return t.then}catch(t){return o=t,a}}(e);if(n===a)return u(t,o);if(n===t.then&&e instanceof s)return t._83=3,t._18=e,void h(t);if("function"===typeof n)return void d(n.bind(e),t)}t._83=1,t._18=e,h(t)}function u(t,e){t._83=2,t._18=e,s._71&&s._71(t,e),h(t)}function h(t){if(1===t._75&&(l(t,t._38),t._38=null),2===t._75){for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:{},o=i.getDisplayName,p=void 0===o?function(t){return"ConnectAdvanced("+t+")"}:o,g=i.methodName,m=void 0===g?"connectAdvanced":g,v=i.renderCountProp,y=void 0===v?void 0:v,b=i.shouldHandleStateChanges,x=void 0===b||b,w=i.storeKey,_=void 0===w?"store":w,S=i.withRef,k=void 0!==S&&S,M=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(i,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),O=_+"Subscription",T=h++,P=((e={})[_]=c.a,e[O]=c.b,e),C=((n={})[O]=c.b,n);return function(e){a()("function"==typeof e,"You must pass a component to the function returned by "+m+". Instead received "+JSON.stringify(e));var n=e.displayName||e.name||"Component",i=p(n),o=u({},M,{getDisplayName:p,methodName:m,renderCountProp:y,shouldHandleStateChanges:x,storeKey:_,withRef:k,displayName:i,wrappedComponentName:n,WrappedComponent:e}),c=function(n){function r(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var o=function(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}(this,n.call(this,t,e));return o.version=T,o.state={},o.renderCount=0,o.store=t[_]||e[_],o.propsMode=Boolean(t[_]),o.setWrappedInstance=o.setWrappedInstance.bind(o),a()(o.store,'Could not find "'+_+'" in either the context or props of "'+i+'". Either wrap the root component in a , or explicitly pass "'+_+'" as a prop to "'+i+'".'),o.initSelector(),o.initSubscription(),o}return function(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)}(r,n),r.prototype.getChildContext=function(){var t,e=this.propsMode?null:this.subscription;return(t={})[O]=e||this.context[O],t},r.prototype.componentDidMount=function(){x&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},r.prototype.componentWillReceiveProps=function(t){this.selector.run(t)},r.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},r.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=d,this.store=null,this.selector.run=d,this.selector.shouldComponentUpdate=!1},r.prototype.getWrappedInstance=function(){return a()(k,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+m+"() call."),this.wrappedInstance},r.prototype.setWrappedInstance=function(t){this.wrappedInstance=t},r.prototype.initSelector=function(){var e=t(this.store.dispatch,o);this.selector=function(t,e){var n={run:function(i){try{var r=t(e.getState(),i);(r!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=r,n.error=null)}catch(t){n.shouldComponentUpdate=!0,n.error=t}}};return n}(e,this.store),this.selector.run(this.props)},r.prototype.initSubscription=function(){if(x){var t=(this.propsMode?this.props:this.context)[O];this.subscription=new l.a(this.store,t,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},r.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(f)):this.notifyNestedSubs()},r.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},r.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},r.prototype.addExtraProps=function(t){if(!k&&!y&&(!this.propsMode||!this.subscription))return t;var e=u({},t);return k&&(e.ref=this.setWrappedInstance),y&&(e[y]=this.renderCount++),this.propsMode&&this.subscription&&(e[O]=this.subscription),e},r.prototype.render=function(){var t=this.selector;if(t.shouldComponentUpdate=!1,t.error)throw t.error;return Object(s.createElement)(e,this.addExtraProps(t.props))},r}(s.Component);return c.WrappedComponent=e,c.displayName=i,c.childContextTypes=C,c.contextTypes=P,c.propTypes=P,r()(c,e)}};var i=n(243),r=n.n(i),o=n(28),a=n.n(o),s=n(0),l=(n.n(s),n(567)),c=n(241),u=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];if(s)throw s;for(var i=!1,r={},o=0;o=200&&t<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(t){l.headers[t]={}}),i.forEach(["post","put","patch"],function(t){l.headers[t]=i.merge(o)}),t.exports=l}).call(e,n(594))},function(t,e,n){"use strict";var i=n(22),r=n(596),o=n(250),a=n(598),s=n(599),l=n(254);t.exports=function(t){return new Promise(function(e,c){var u=t.data,h=t.headers;i.isFormData(u)&&delete h["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var d=t.auth.username||"",p=t.auth.password||"";h.Authorization="Basic "+btoa(d+":"+p)}if(f.open(t.method.toUpperCase(),o(t.url,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?a(f.getAllResponseHeaders()):null,i={data:t.responseType&&"text"!==t.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:n,config:t,request:f};r(e,c,i),f=null}},f.onabort=function(){f&&(c(l("Request aborted",t,"ECONNABORTED",f)),f=null)},f.onerror=function(){c(l("Network Error",t,null,f)),f=null},f.ontimeout=function(){c(l("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",f)),f=null},i.isStandardBrowserEnv()){var g=n(600),m=(t.withCredentials||s(t.url))&&t.xsrfCookieName?g.read(t.xsrfCookieName):void 0;m&&(h[t.xsrfHeaderName]=m)}if("setRequestHeader"in f&&i.forEach(h,function(t,e){"undefined"===typeof u&&"content-type"===e.toLowerCase()?delete h[e]:f.setRequestHeader(e,t)}),t.withCredentials&&(f.withCredentials=!0),t.responseType)try{f.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"===typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){f&&(f.abort(),c(t),f=null)}),void 0===u&&(u=null),f.send(u)})}},function(t,e,n){"use strict";var i=n(597);t.exports=function(t,e,n,r,o){var a=new Error(t);return i(a,e,n,r,o)}},function(t,e,n){"use strict";var i=n(22);t.exports=function(t,e){e=e||{};var n={};return i.forEach(["url","method","params","data"],function(t){"undefined"!==typeof e[t]&&(n[t]=e[t])}),i.forEach(["headers","auth","proxy"],function(r){i.isObject(e[r])?n[r]=i.deepMerge(t[r],e[r]):"undefined"!==typeof e[r]?n[r]=e[r]:i.isObject(t[r])?n[r]=i.deepMerge(t[r]):"undefined"!==typeof t[r]&&(n[r]=t[r])}),i.forEach(["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"],function(i){"undefined"!==typeof e[i]?n[i]=e[i]:"undefined"!==typeof t[i]&&(n[i]=t[i])}),n}},function(t,e,n){"use strict";function i(t){this.message=t}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,t.exports=i},function(t,e,n){"use strict";e.__esModule=!0,e.locationsAreEqual=e.createLocation=void 0;var i=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],o=e&&e.split("/")||[],a=t&&i(t),s=e&&i(e),l=a||s;if(t&&i(t)?o=n:n.length&&(o.pop(),o=o.concat(n)),!o.length)return"/";var c=void 0;if(o.length){var u=o[o.length-1];c="."===u||".."===u||""===u}else c=!1;for(var h=0,f=o.length;f>=0;f--){var d=o[f];"."===d?r(o,f):".."===d?(r(o,f),h++):h&&(r(o,f),h--)}if(!l)for(;h--;h)o.unshift("..");!l||""===o[0]||o[0]&&i(o[0])||o.unshift("");var p=o.join("/");return c&&"/"!==p.substr(-1)&&(p+="/"),p}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="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};e.default=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,i){return t(e,n[i])});var r="undefined"===typeof e?"undefined":i(e);if(r!==("undefined"===typeof n?"undefined":i(n)))return!1;if("object"===r){var o=e.valueOf(),a=n.valueOf();if(o!==e||a!==n)return t(o,a);var s=Object.keys(e),l=Object.keys(n);return s.length===l.length&&s.every(function(i){return t(e[i],n[i])})}return!1}},function(t,e,n){"use strict";e.__esModule=!0;var i,r=n(19),o=(i=r)&&i.__esModule?i:{default:i};e.default=function(){var t=null,e=[];return{setPrompt:function(e){return(0,o.default)(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,i,r){if(null!=t){var a="function"===typeof t?t(e,n):t;"string"===typeof a?"function"===typeof i?i(a,r):((0,o.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),r(!0)):r(!1!==a)}else r(!0)},appendListener:function(t){var n=!0,i=function(){n&&t.apply(void 0,arguments)};return e.push(i),function(){n=!1,e=e.filter(function(t){return t!==i})}},notifyListeners:function(){for(var t=arguments.length,n=Array(t),i=0;i>>1;t(e[o],n)<0?i=o+1:r=o}return i},right:function(e,n,i,r){for(null==i&&(i=0),null==r&&(r=e.length);i>>1;t(e[o],n)>0?r=o:i=o+1}return i}}}},function(t,e,n){"use strict";e.a=i;function i(t,e){return[t,e]}},function(t,e,n){"use strict";var i=n(271);e.a=function(t,e){var n=Object(i.a)(t,e);return n?Math.sqrt(n):n}},function(t,e,n){"use strict";var i=n(89);e.a=function(t,e){var n,r,o=t.length,a=0,s=-1,l=0,c=0;if(null==e)for(;++s1)return c/(a-1)}},function(t,e,n){"use strict";e.a=function(t,e){var n,i,r,o=t.length,a=-1;if(null==e){for(;++a=n)for(i=r=n;++an&&(i=n),r=n)for(i=r=n;++an&&(i=n),r=i?s*=10:l>=r?s*=5:l>=o&&(s*=2);return e=0?(l>=i?10:l>=r?5:l>=o?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=i?10:l>=r?5:l>=o?2:1)}e.a=function(t,e,n){var i,r,o,s,l=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((i=e0)for(t=Math.ceil(t/s),e=Math.floor(e/s),o=new Array(r=Math.ceil(e-t+1));++l=n)for(i=n;++on&&(i=n)}else for(;++o=n)for(i=n;++on&&(i=n);return i}},function(t,e,n){"use strict";var i=n(277);function r(t){return t.length}e.a=function(t){if(!(a=t.length))return[];for(var e=-1,n=Object(i.a)(t,r),o=new Array(n);++e1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"===typeof e?function(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):r(this.node(),t)}},function(t,e,n){"use strict";e.b=function(t,e){var n=t.document.documentElement,o=Object(i.f)(t).on("dragstart.drag",null);e&&(o.on("click.drag",r.a,!0),setTimeout(function(){o.on("click.drag",null)},0));"onselectstart"in n?o.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)};var i=n(14),r=n(286);e.a=function(t){var e=t.document.documentElement,n=Object(i.f)(t).on("dragstart.drag",r.a,!0);"onselectstart"in e?n.on("selectstart.drag",r.a,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}},function(t,e,n){"use strict";e.b=function(){i.b.stopImmediatePropagation()};var i=n(14);e.a=function(){i.b.preventDefault(),i.b.stopImmediatePropagation()}},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r});var i=Math.PI/180,r=180/Math.PI},function(t,e,n){"use strict";n.d(e,"b",function(){return l});var i=n(30),r=n(178),o=n(289),a=n(74);function s(t){return function(e){var n,r,o=e.length,a=new Array(o),s=new Array(o),l=new Array(o);for(n=0;nl&&(s=e.slice(l,s),u[c]?u[c]+=s:u[++c]=s),(n=n[0])===(a=a[0])?u[c]?u[c]+=a:u[++c]=a:(u[++c]=null,h.push({i:c,x:Object(i.a)(n,a)})),l=o.lastIndex;return li.d&&n.state=i,u[l<<1].forEach(g);for(;++o=i,u[s|l<<1].forEach(g);u[l<<0].forEach(g);for(;++a=i,c=n[a*t]>=i,u[l<<1|c<<2].forEach(g);++o=i,h=c,c=n[a*t+o+1]>=i,u[s|l<<1|c<<2|h<<3].forEach(g);u[l|c<<3].forEach(g)}o=-1,c=n[a*t]>=i,u[c<<2].forEach(g);for(;++o=i,u[c<<2|h<<3].forEach(g);function g(t){var e,n,i=[t[0][0]+o,t[0][1]+a],s=[t[1][0]+o,t[1][1]+a],l=p(i),c=p(s);(e=d[l])?(n=f[c])?(delete d[e.end],delete f[n.start],e===n?(e.ring.push(s),r(e.ring)):f[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete d[e.end],e.ring.push(s),d[e.end=c]=e):(e=f[c])?(n=d[l])?(delete f[e.start],delete d[n.end],e===n?(e.ring.push(s),r(e.ring)):f[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete f[e.start],e.ring.unshift(i),f[e.start=l]=e):f[l]=d[c]={start:l,end:c,ring:[i,s]}}u[c<<3].forEach(g)}(n,i,function(t){h(t,n,i),Object(a.a)(t)>0?r.push([t]):o.push(t)}),o.forEach(function(t){for(var e,n=0,i=r.length;n0&&a0&&s0)||!(r>0))throw new Error("invalid size");return t=i,e=r,f},f.thresholds=function(t){return arguments.length?(n="function"===typeof t?t:Array.isArray(t)?Object(s.a)(r.a.call(t)):Object(s.a)(t),f):n},f.smooth=function(t){return arguments.length?(h=t?g:c.a,f):h===g},f}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i=Array.prototype.slice},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";var i=n(182);n.d(e,"b",function(){return i.a});var r=n(770);n.d(e,"a",function(){return r.a});var o=n(771);n.d(e,"c",function(){return o.a})},function(t,e,n){"use strict";e.a=function(t){return t.x},e.b=function(t){return t.y};n(73),n(118),n(116);Math.PI,Math.sqrt(5)},function(t,e,n){"use strict";var i=n(119),r=n(801),o=n(802),a=n(305),s=n(803),l=n(804),c=n(306),u=n(806),h=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];e.a=function(t){var e=t.grouping&&t.thousands?Object(r.a)(t.grouping,t.thousands):u.a,n=t.currency,f=t.decimal,d=t.numerals?Object(o.a)(t.numerals):u.a,p=t.percent||"%";function g(t){var i=(t=Object(a.a)(t)).fill,r=t.align,o=t.sign,u=t.symbol,g=t.zero,m=t.width,v=t.comma,y=t.precision,b=t.trim,x=t.type;"n"===x?(v=!0,x="g"):l.a[x]||(null==y&&(y=12),b=!0,x="g"),(g||"0"===i&&"="===r)&&(g=!0,i="0",r="=");var w="$"===u?n[0]:"#"===u&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",_="$"===u?n[1]:/[%p]/.test(x)?p:"",S=l.a[x],k=/[defgprs%]/.test(x);function M(t){var n,a,l,u=w,p=_;if("c"===x)p=S(t)+p,t="";else{var M=(t=+t)<0;if(t=S(Math.abs(t),y),b&&(t=Object(s.a)(t)),M&&0===+t&&(M=!1),u=(M?"("===o?o:"-":"-"===o||"("===o?"":o)+u,p=("s"===x?h[8+c.b/3]:"")+p+(M&&"("===o?")":""),k)for(n=-1,a=t.length;++n(l=t.charCodeAt(n))||l>57){p=(46===l?f+t.slice(n+1):t.slice(n))+p,t=t.slice(0,n);break}}v&&!g&&(t=e(t,1/0));var O=u.length+t.length+p.length,T=O>1)+u+t+p+T.slice(O);break;default:t=T+u+t+p}return d(t)}return y=null==y?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),M.toString=function(){return t+""},M}return{format:g,formatPrefix:function(t,e){var n=g(((t=Object(a.a)(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Object(i.a)(e)/3))),o=Math.pow(10,-r),s=h[8+r/3];return function(t){return n(o*t)+s}}}}},function(t,e,n){"use strict";e.a=r;var i=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function r(t){return new o(t)}function o(t){if(!(e=i.exec(t)))throw new Error("invalid format: "+t);var e;this.fill=e[1]||" ",this.align=e[2]||">",this.sign=e[3]||"-",this.symbol=e[4]||"",this.zero=!!e[5],this.width=e[6]&&+e[6],this.comma=!!e[7],this.precision=e[8]&&+e[8].slice(1),this.trim=!!e[9],this.type=e[10]||""}r.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},function(t,e,n){"use strict";n.d(e,"b",function(){return i});var i,r=n(188);e.a=function(t,e){var n=Object(r.a)(t,e);if(!n)return t+"";var o=n[0],a=n[1],s=a-(i=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,l=o.length;return s===l?o:s>l?o+new Array(s-l+1).join("0"):s>0?o.slice(0,s)+"."+o.slice(s):"0."+new Array(1-s).join("0")+Object(r.a)(t,Math.max(0,e+s-1))[0]}},function(t,e,n){"use strict";n.d(e,"a",function(){return h}),n.d(e,"b",function(){return d});var i,r,o,a,s,l=n(76),c=n(2),u=n(47),h=(n(60),Object(l.a)()),f=Object(l.a)(),d={point:u.a,lineStart:u.a,lineEnd:u.a,polygonStart:function(){h.reset(),d.lineStart=p,d.lineEnd=g},polygonEnd:function(){var t=+h;f.add(t<0?c.w+t:t),this.lineStart=this.lineEnd=this.point=u.a},sphere:function(){f.add(c.w)}};function p(){d.point=m}function g(){v(i,r)}function m(t,e){d.point=v,i=t,r=e,t*=c.r,e*=c.r,o=t,a=Object(c.g)(e=e/2+c.q),s=Object(c.t)(e)}function v(t,e){t*=c.r,e=(e*=c.r)/2+c.q;var n=t-o,i=n>=0?1:-1,r=i*n,l=Object(c.g)(e),u=Object(c.t)(e),f=s*u,d=a*l+f*Object(c.g)(r),p=f*i*Object(c.t)(r);h.add(Object(c.e)(p,d)),o=t,a=l,s=u}},function(t,e,n){"use strict";e.a=o;var i=n(90),r=(n(813),n(2));n(120);function o(t,e,n,o,s,l){if(n){var c=Object(r.g)(e),u=Object(r.t)(e),h=o*n;null==s?(s=e+o*r.w,l=e-h/2):(s=a(c,s),l=a(c,l),(o>0?sl)&&(s+=o*r.w));for(var f,d=s;o>0?d>l:d0?r.o:-r.o,c=Object(r.a)(a-n);Object(r.a)(c-r.o)0?r.l:-r.l),t.point(o,i),t.lineEnd(),t.lineStart(),t.point(l,i),t.point(a,i),e=0):o!==l&&c>=r.o&&(Object(r.a)(n-o)r.i?Object(r.d)((Object(r.t)(e)*(a=Object(r.g)(i))*Object(r.t)(n)-Object(r.t)(i)*(o=Object(r.g)(e))*Object(r.t)(t))/(o*a*s)):(e+i)/2}(n,i,a,s),t.point(o,i),t.lineEnd(),t.lineStart(),t.point(l,i),e=0),t.point(n=a,i=s),o=l},lineEnd:function(){t.lineEnd(),n=i=NaN},clean:function(){return 2-e}}},function(t,e,n,i){var o;if(null==t)o=n*r.l,i.point(-r.o,o),i.point(0,o),i.point(r.o,o),i.point(r.o,0),i.point(r.o,-o),i.point(0,-o),i.point(-r.o,-o),i.point(-r.o,0),i.point(-r.o,o);else if(Object(r.a)(t[0]-e[0])>r.i){var a=t[0]1}function c(t,e){return((t=t.x)[0]<0?t[1]-o.l-o.i:o.l-t[1])-((e=e.x)[0]<0?e[1]-o.l-o.i:o.l-e[1])}e.a=function(t,e,n,o){return function(u){var h,f,d,p=e(u),g=Object(i.a)(),m=e(g),v=!1,y={point:b,lineStart:w,lineEnd:_,polygonStart:function(){y.point=S,y.lineStart=k,y.lineEnd=M,f=[],h=[]},polygonEnd:function(){y.point=b,y.lineStart=w,y.lineEnd=_,f=Object(s.f)(f);var t=Object(a.a)(h,o);f.length?(v||(u.polygonStart(),v=!0),Object(r.a)(f,c,t,n,u)):t&&(v||(u.polygonStart(),v=!0),u.lineStart(),n(null,null,1,u),u.lineEnd()),v&&(u.polygonEnd(),v=!1),f=h=null},sphere:function(){u.polygonStart(),u.lineStart(),n(null,null,1,u),u.lineEnd(),u.polygonEnd()}};function b(e,n){t(e,n)&&u.point(e,n)}function x(t,e){p.point(t,e)}function w(){y.point=x,p.lineStart()}function _(){y.point=b,p.lineEnd()}function S(t,e){d.push([t,e]),m.point(t,e)}function k(){m.lineStart(),d=[]}function M(){S(d[0][0],d[0][1]),m.lineEnd();var t,e,n,i,r=m.clean(),o=g.result(),a=o.length;if(d.pop(),h.push(d),d=null,a)if(1&r){if((e=(n=o[0]).length-1)>0){for(v||(u.polygonStart(),v=!0),u.lineStart(),t=0;t1&&2&r&&o.push(o.pop().concat(o.shift())),f.push(o.filter(l))}return y}}},function(t,e,n){"use strict";var i=n(47);e.a=function(){var t,e=[];return{point:function(e,n){t.push([e,n])},lineStart:function(){e.push(t=[])},lineEnd:i.a,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}},function(t,e,n){"use strict";var i=n(314);function r(t,e,n,i){this.x=t,this.z=e,this.o=n,this.e=i,this.v=!1,this.n=this.p=null}function o(t){if(e=t.length){for(var e,n,i=0,r=t[0];++i=0;--l)s.point((d=f[l])[0],d[1]);else a(g.x,g.p.x,-1,s);g=g.p}f=(g=g.o).z,m=!m}while(!g.v);s.lineEnd()}}}},function(t,e,n){"use strict";var i=n(2);e.a=function(t,e){return Object(i.a)(t[0]-e[0])=0?1:-1,P=T*O,C=P>o.o,A=y*k;if(a.add(Object(o.e)(A*T*Object(o.t)(P),b*M+A*Object(o.g)(P))),c+=C?O+T*o.w:O,C^m>=n^_>=n){var E=Object(r.c)(Object(r.a)(g),Object(r.a)(w));Object(r.e)(E);var L=Object(r.c)(l,E);Object(r.e)(L);var j=(C^O>=0?-1:1)*Object(o.c)(L[2]);(i>j||i===j&&(E[0]||E[1]))&&(u+=C^O>=0?1:-1)}}return(c<-o.i||c0,c=Object(o.a)(e)>o.i;function u(t,n){return Object(o.g)(t)*Object(o.g)(n)>e}function h(t,n,r){var a=Object(i.a)(t),s=Object(i.a)(n),l=[1,0,0],c=Object(i.c)(a,s),u=Object(i.d)(c,c),h=c[0],f=u-h*h;if(!f)return!r&&t;var d=e*u/f,p=-e*h/f,g=Object(i.c)(l,c),m=Object(i.f)(l,d),v=Object(i.f)(c,p);Object(i.b)(m,v);var y=g,b=Object(i.d)(m,y),x=Object(i.d)(y,y),w=b*b-x*(Object(i.d)(m,m)-1);if(!(w<0)){var _=Object(o.u)(w),S=Object(i.f)(y,(-b-_)/x);if(Object(i.b)(S,m),S=Object(i.g)(S),!r)return S;var k,M=t[0],O=n[0],T=t[1],P=n[1];O0^S[1]<(Object(o.a)(S[0]-M)o.o^(M<=S[0]&&S[0]<=O)){var L=Object(i.f)(y,(-b+_)/x);return Object(i.b)(L,m),[S,Object(i.g)(L)]}}}function f(e,n){var i=l?t:o.o-t,r=0;return e<-i?r|=1:e>i&&(r|=2),n<-i?r|=4:n>i&&(r|=8),r}return Object(s.a)(u,function(t){var e,n,i,r,s;return{lineStart:function(){r=i=!1,s=1},point:function(d,p){var g,m=[d,p],v=u(d,p),y=l?v?0:f(d,p):v?f(d+(d<0?o.o:-o.o),p):0;if(!e&&(r=i=v)&&t.lineStart(),v!==i&&(!(g=h(e,m))||Object(a.a)(e,g)||Object(a.a)(m,g))&&(m[0]+=o.i,m[1]+=o.i,v=u(m[0],m[1])),v!==i)s=0,v?(t.lineStart(),g=h(m,e),t.point(g[0],g[1])):(g=h(e,m),t.point(g[0],g[1]),t.lineEnd()),e=g;else if(c&&e&&l^v){var b;y&n||!(b=h(m,e,!0))||(s=0,l?(t.lineStart(),t.point(b[0][0],b[0][1]),t.point(b[1][0],b[1][1]),t.lineEnd()):(t.point(b[1][0],b[1][1]),t.lineEnd(),t.lineStart(),t.point(b[0][0],b[0][1])))}!v||e&&Object(a.a)(e,m)||t.point(m[0],m[1]),e=m,i=v,n=y},lineEnd:function(){i&&t.lineEnd(),e=null},clean:function(){return s|(r&&i)<<1}}},function(e,i,o,a){Object(r.a)(a,t,n,o,e,i)},l?[0,-t]:[-o.o,t-o.o])}},function(t,e,n){"use strict";var i=n(318),r=[null,null],o={type:"LineString",coordinates:r};e.a=function(t,e){return r[0]=t,r[1]=e,Object(i.a)(o)}},function(t,e,n){"use strict";var i,r,o,a=n(76),s=n(2),l=n(47),c=n(60),u=Object(a.a)(),h={sphere:l.a,point:l.a,lineStart:function(){h.point=d,h.lineEnd=f},lineEnd:l.a,polygonStart:l.a,polygonEnd:l.a};function f(){h.point=h.lineEnd=l.a}function d(t,e){t*=s.r,e*=s.r,i=t,r=Object(s.t)(e),o=Object(s.g)(e),h.point=p}function p(t,e){t*=s.r,e*=s.r;var n=Object(s.t)(e),a=Object(s.g)(e),l=Object(s.a)(t-i),c=Object(s.g)(l),h=a*Object(s.t)(l),f=o*n-r*a*c,d=r*n+o*a*c;u.add(Object(s.e)(Object(s.u)(h*h+f*f),d)),i=t,r=n,o=a}e.a=function(t){return u.reset(),Object(c.a)(t,h),+u}},function(t,e,n){"use strict";var i=n(47),r=1/0,o=r,a=-r,s=a,l={point:function(t,e){ta&&(a=t);es&&(s=e)},lineStart:i.a,lineEnd:i.a,polygonStart:i.a,polygonEnd:i.a,result:function(){var t=[[r,o],[a,s]];return a=s=-(o=r=1/0),t}};e.a=l},function(t,e,n){"use strict";var i=n(190);e.a=function(){return Object(i.a)().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}},function(t,e,n){"use strict";e.a=i;n(32);function i(t,e){return[t,e]}i.invert=i},function(t,e,n){"use strict";e.a=l;var i=n(323);function r(t,e,n){var i,r,o,a,s=t.x-e.x,l=t.y-e.y,c=s*s+l*l;c?(r=e.r+n.r,r*=r,a=t.r+n.r,r>(a*=a)?(i=(c+a-r)/(2*c),o=Math.sqrt(Math.max(0,a/c-i*i)),n.x=t.x-i*s-o*l,n.y=t.y-i*l+o*s):(i=(c+r-a)/(2*c),o=Math.sqrt(Math.max(0,r/c-i*i)),n.x=e.x+i*s-o*l,n.y=e.y+i*l+o*s)):(n.x=e.x+n.r,n.y=e.y)}function o(t,e){var n=t.r+e.r-1e-6,i=e.x-t.x,r=e.y-t.y;return n>0&&n*n>i*i+r*r}function a(t){var e=t._,n=t.next._,i=e.r+n.r,r=(e.x*n.r+n.x*e.r)/i,o=(e.y*n.r+n.y*e.r)/i;return r*r+o*o}function s(t){this._=t,this.next=null,this.previous=null}function l(t){if(!(c=t.length))return 0;var e,n,l,c,u,h,f,d,p,g,m;if((e=t[0]).x=0,e.y=0,!(c>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(c>2))return e.r+n.r;r(n,e,l=t[2]),e=new s(e),n=new s(n),l=new s(l),e.next=l.previous=n,n.next=e.previous=l,l.next=n.previous=e;t:for(f=3;f0&&n*n>i*i+r*r}function s(t,e){for(var n=0;n1);return t+n*o*Math.sqrt(-2*Math.log(r)/r)}}return n.source=t,n}(i.a)},function(t,e,n){"use strict";var i=n(77);e.a=function t(e){function n(t){return function(){for(var n=0,i=0;i=12)]},Q:gt,s:mt,S:H,u:Y,U:U,V:G,w:X,W:V,x:null,X:null,y:q,Y:K,Z:$,"%":pt},Ct={a:function(t){return h[t.getUTCDay()]},A:function(t){return u[t.getUTCDay()]},b:function(t){return vt[t.getUTCMonth()]},B:function(t){return f[t.getUTCMonth()]},c:null,d:Z,e:Z,f:nt,H:Q,I:J,j:tt,L:et,m:it,M:rt,p:function(t){return c[+(t.getUTCHours()>=12)]},Q:gt,s:mt,S:ot,u:at,U:st,V:lt,w:ct,W:ut,x:null,X:null,y:ht,Y:ft,Z:dt,"%":pt},At={a:function(t,e,n){var i=_t.exec(e.slice(n));return i?(t.w=St[i[0].toLowerCase()],n+i[0].length):-1},A:function(t,e,n){var i=xt.exec(e.slice(n));return i?(t.w=wt[i[0].toLowerCase()],n+i[0].length):-1},b:function(t,e,n){var i=Ot.exec(e.slice(n));return i?(t.m=Tt[i[0].toLowerCase()],n+i[0].length):-1},B:function(t,e,n){var i=kt.exec(e.slice(n));return i?(t.m=Mt[i[0].toLowerCase()],n+i[0].length):-1},c:function(t,n,i){return jt(t,e,n,i)},d:k,e:k,f:A,H:O,I:O,j:M,L:C,m:S,M:T,p:function(t,e,n){var i=yt.exec(e.slice(n));return i?(t.p=bt[i[0].toLowerCase()],n+i[0].length):-1},Q:L,s:j,S:P,u:m,U:v,V:y,w:g,W:b,x:function(t,e,i){return jt(t,n,e,i)},X:function(t,e,n){return jt(t,l,e,n)},y:w,Y:x,Z:_,"%":E};function Et(t,e){return function(n){var i,r,o,a=[],l=-1,c=0,u=t.length;for(n instanceof Date||(n=new Date(+n));++l53)return null;"w"in l||(l.w=1),"Z"in l?(r=o(a(l.y)),s=r.getUTCDay(),r=s>4||0===s?i.p.ceil(r):Object(i.p)(r),r=i.l.offset(r,7*(l.V-1)),l.y=r.getUTCFullYear(),l.m=r.getUTCMonth(),l.d=r.getUTCDate()+(l.w+6)%7):(r=e(a(l.y)),s=r.getDay(),r=s>4||0===s?i.e.ceil(r):Object(i.e)(r),r=i.a.offset(r,7*(l.V-1)),l.y=r.getFullYear(),l.m=r.getMonth(),l.d=r.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),s="Z"in l?o(a(l.y)).getUTCDay():e(a(l.y)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+7*l.W-(s+5)%7:l.w+7*l.U-(s+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,o(l)):e(l)}}function jt(t,e,n,i){for(var r,o,a=0,l=e.length,c=n.length;a=c)return-1;if(37===(r=e.charCodeAt(a++))){if(r=e.charAt(a++),!(o=At[r in s?e.charAt(a++):r])||(i=o(t,n,i))<0)return-1}else if(r!=n.charCodeAt(i++))return-1}return i}return Pt.x=Et(n,Pt),Pt.X=Et(l,Pt),Pt.c=Et(e,Pt),Ct.x=Et(n,Ct),Ct.X=Et(l,Ct),Ct.c=Et(e,Ct),{format:function(t){var e=Et(t+="",Pt);return e.toString=function(){return t},e},parse:function(t){var e=Lt(t+="",r);return e.toString=function(){return t},e},utcFormat:function(t){var e=Et(t+="",Ct);return e.toString=function(){return t},e},utcParse:function(t){var e=Lt(t,o);return e.toString=function(){return t},e}}};var i=n(125);function r(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function o(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function a(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}var s={"-":"",_:" ",0:"0"},l=/^\s*\d+/,c=/^%/,u=/[\\^$*+?|[\]().{}]/g;function h(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o68?1900:2e3),n+i[0].length):-1}function _(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function S(t,e,n){var i=l.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function k(t,e,n){var i=l.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function M(t,e,n){var i=l.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function O(t,e,n){var i=l.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function T(t,e,n){var i=l.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function P(t,e,n){var i=l.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function C(t,e,n){var i=l.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function A(t,e,n){var i=l.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function E(t,e,n){var i=c.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function L(t,e,n){var i=l.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function j(t,e,n){var i=l.exec(e.slice(n));return i?(t.Q=1e3*+i[0],n+i[0].length):-1}function D(t,e){return h(t.getDate(),e,2)}function I(t,e){return h(t.getHours(),e,2)}function N(t,e){return h(t.getHours()%12||12,e,2)}function R(t,e){return h(1+i.a.count(Object(i.k)(t),t),e,3)}function z(t,e){return h(t.getMilliseconds(),e,3)}function B(t,e){return z(t,e)+"000"}function F(t,e){return h(t.getMonth()+1,e,2)}function W(t,e){return h(t.getMinutes(),e,2)}function H(t,e){return h(t.getSeconds(),e,2)}function Y(t){var e=t.getDay();return 0===e?7:e}function U(t,e){return h(i.h.count(Object(i.k)(t),t),e,2)}function G(t,e){var n=t.getDay();return t=n>=4||0===n?Object(i.i)(t):i.i.ceil(t),h(i.i.count(Object(i.k)(t),t)+(4===Object(i.k)(t).getDay()),e,2)}function X(t){return t.getDay()}function V(t,e){return h(i.e.count(Object(i.k)(t),t),e,2)}function q(t,e){return h(t.getFullYear()%100,e,2)}function K(t,e){return h(t.getFullYear()%1e4,e,4)}function $(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+h(e/60|0,"0",2)+h(e%60,"0",2)}function Z(t,e){return h(t.getUTCDate(),e,2)}function Q(t,e){return h(t.getUTCHours(),e,2)}function J(t,e){return h(t.getUTCHours()%12||12,e,2)}function tt(t,e){return h(1+i.l.count(Object(i.v)(t),t),e,3)}function et(t,e){return h(t.getUTCMilliseconds(),e,3)}function nt(t,e){return et(t,e)+"000"}function it(t,e){return h(t.getUTCMonth()+1,e,2)}function rt(t,e){return h(t.getUTCMinutes(),e,2)}function ot(t,e){return h(t.getUTCSeconds(),e,2)}function at(t){var e=t.getUTCDay();return 0===e?7:e}function st(t,e){return h(i.s.count(Object(i.v)(t),t),e,2)}function lt(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Object(i.t)(t):i.t.ceil(t),h(i.t.count(Object(i.v)(t),t)+(4===Object(i.v)(t).getUTCDay()),e,2)}function ct(t){return t.getUTCDay()}function ut(t,e){return h(i.p.count(Object(i.v)(t),t),e,2)}function ht(t,e){return h(t.getUTCFullYear()%100,e,2)}function ft(t,e){return h(t.getUTCFullYear()%1e4,e,4)}function dt(){return"+0000"}function pt(){return"%"}function gt(t){return+t}function mt(t){return Math.floor(+t/1e3)}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var i=n(199),r="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||Object(i.b)(r)},function(t,e,n){"use strict";var i=n(59),r=n(62),o=n(126),a=n(200),s=n(201);e.a=function(){var t=s.a,e=null,n=Object(r.a)(0),l=s.b,c=Object(r.a)(!0),u=null,h=o.a,f=null;function d(r){var o,a,s,d,p,g=r.length,m=!1,v=new Array(g),y=new Array(g);for(null==u&&(f=h(p=Object(i.a)())),o=0;o<=g;++o){if(!(o=a;--s)f.point(v[s],y[s]);f.lineEnd(),f.areaEnd()}m&&(v[o]=+t(d,o,r),y[o]=+n(d,o,r),f.point(e?+e(d,o,r):v[o],l?+l(d,o,r):y[o]))}if(p)return f=null,p+""||null}function p(){return Object(a.a)().defined(c).curve(h).context(u)}return d.x=function(n){return arguments.length?(t="function"===typeof n?n:Object(r.a)(+n),e=null,d):t},d.x0=function(e){return arguments.length?(t="function"===typeof e?e:Object(r.a)(+e),d):t},d.x1=function(t){return arguments.length?(e=null==t?null:"function"===typeof t?t:Object(r.a)(+t),d):e},d.y=function(t){return arguments.length?(n="function"===typeof t?t:Object(r.a)(+t),l=null,d):n},d.y0=function(t){return arguments.length?(n="function"===typeof t?t:Object(r.a)(+t),d):n},d.y1=function(t){return arguments.length?(l=null==t?null:"function"===typeof t?t:Object(r.a)(+t),d):l},d.lineX0=d.lineY0=function(){return p().x(t).y(n)},d.lineY1=function(){return p().x(t).y(l)},d.lineX1=function(){return p().x(e).y(n)},d.defined=function(t){return arguments.length?(c="function"===typeof t?t:Object(r.a)(!!t),d):c},d.curve=function(t){return arguments.length?(h=t,null!=u&&(f=h(u)),d):h},d.context=function(t){return arguments.length?(null==t?u=f=null:f=h(u=t),d):u},d}},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),e.b=o;var i=o(n(126).a);function r(t){this._curve=t}function o(t){function e(e){return new r(t(e))}return e._curve=t,e}r.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}}},function(t,e,n){"use strict";e.a=r;var i=n(335);n(200);function r(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(Object(i.b)(t)):e()._curve},t}},function(t,e,n){"use strict";e.a=function(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var i=Array.prototype.slice},function(t,e,n){"use strict";var i=n(93);e.a={draw:function(t,e){var n=Math.sqrt(e/i.j);t.moveTo(n,0),t.arc(0,0,n,0,i.m)}}},function(t,e,n){"use strict";e.a={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}}},function(t,e,n){"use strict";var i=Math.sqrt(1/3),r=2*i;e.a={draw:function(t,e){var n=Math.sqrt(e/r),o=n*i;t.moveTo(0,-n),t.lineTo(o,0),t.lineTo(0,n),t.lineTo(-o,0),t.closePath()}}},function(t,e,n){"use strict";var i=n(93),r=Math.sin(i.j/10)/Math.sin(7*i.j/10),o=Math.sin(i.m/10)*r,a=-Math.cos(i.m/10)*r;e.a={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=o*n,s=a*n;t.moveTo(0,-n),t.lineTo(r,s);for(var l=1;l<5;++l){var c=i.m*l/5,u=Math.cos(c),h=Math.sin(c);t.lineTo(h*n,-u*n),t.lineTo(u*r-h*s,h*r+u*s)}t.closePath()}}},function(t,e,n){"use strict";e.a={draw:function(t,e){var n=Math.sqrt(e),i=-n/2;t.rect(i,i,n,n)}}},function(t,e,n){"use strict";var i=Math.sqrt(3);e.a={draw:function(t,e){var n=-Math.sqrt(e/(3*i));t.moveTo(0,2*n),t.lineTo(-i*n,-n),t.lineTo(i*n,-n),t.closePath()}}},function(t,e,n){"use strict";var i=-.5,r=Math.sqrt(3)/2,o=1/Math.sqrt(12),a=3*(o/2+1);e.a={draw:function(t,e){var n=Math.sqrt(e/a),s=n/2,l=n*o,c=s,u=n*o+n,h=-c,f=u;t.moveTo(s,l),t.lineTo(c,u),t.lineTo(h,f),t.lineTo(i*s-r*l,r*s+i*l),t.lineTo(i*c-r*u,r*c+i*u),t.lineTo(i*h-r*f,r*h+i*f),t.lineTo(i*s+r*l,i*l-r*s),t.lineTo(i*c+r*u,i*u-r*c),t.lineTo(i*h+r*f,i*f-r*h),t.closePath()}}},function(t,e,n){"use strict";e.a=o;var i=n(127),r=n(129);function o(t,e){this._context=t,this._k=(1-e)/6}o.prototype={areaStart:i.a,areaEnd:i.a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Object(r.b)(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return new o(t,e)}return n.tension=function(e){return t(+e)},n})(0)},function(t,e,n){"use strict";e.a=r;var i=n(129);function r(t,e){this._context=t,this._k=(1-e)/6}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Object(i.b)(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(t){return new r(t,e)}return n.tension=function(e){return t(+e)},n})(0)},function(t,e,n){"use strict";e.c=function(t){return r.b[t.index]={site:t,halfedges:[]}},e.a=a,e.d=function(){for(var t,e,n,i,a=0,s=r.b.length;ar.f||Math.abs(b-m)>r.f)&&(f.splice(h,0,r.e.push(Object(i.b)(u,v,Math.abs(y-t)r.f?[t,Math.abs(g-t)r.f?[Math.abs(m-o)r.f?[n,Math.abs(g-n)r.f?[Math.abs(m-e)=-o.g)return;var v=f*f+d*d,y=p*p+g*g,b=(g*v-d*y)/m,x=(f*y-p*v)/m,w=a.pop()||new function(){Object(r.a)(this),this.x=this.y=this.arc=this.site=this.cy=null};w.arc=t,w.site=l,w.x=b+u,w.y=(w.cy=x+h)+Math.sqrt(b*b+x*x),t.circle=w;var _=null,S=o.c._;for(;S;)if(w.ye.length){var n=e.map(u.b),i=t.filter(function(t){return-1===n.indexOf(t)});this.setState({failedSeries:i})}},e.prototype.saveEmptySeries=function(t){var e=t.filter(P);this.setState({emptySeries:e.map(u.b)})},e.prototype.saveLastSuccessQuery=function(){this.setState({lastSuccessQueryParams:O(this.props.location)})},e}(r.Component);function M(t){var e=new URLSearchParams(t.search).getAll("ids");return e=e.length?e.join(",").split(","):[]}function O(t){return new URLSearchParams(t.search)}function T(t){if(void 0===t)return function(t){return[]};var e=t.split(",");return function(t){return t.map(function(t){var n=new c.a(t);return n.setPercentChange(e.some(function(e){return e.includes(t.id)&&e.includes("percent_change")})),n.setPercentChangeAYearAgo(e.some(function(e){return e.includes(t.id)&&e.includes("percent_change_a_year_ago")})),n})}}function P(t,e){return 0===t.data.length||t.data.every(function(t){return null===t.datapoint[e+1]})}function C(t,e){return t.data.length>0&&t.data.some(function(t){return t.datapoint[e+1]})}e.a=Object(a.c)(Object(o.b)(function(t){return{formatChartUnits:t.formatChartUnits,seriesApi:t.seriesApi}})(k))},function(t,e,n){"use strict";var i="line",r=[i,"column","area"],o=function(){function t(t,e){this.series=t,this.urlParams=e}return t.prototype.chartTypeTo=function(t){var e=function(t){a(t=t||i)&&"default"!==t||(t=i);return t}(this.urlParams.get("chartType")),n=(this.urlParams.get("chartTypes")||"").split(",").reduce(function(t,e){var n=e.split(":")[0],i=e.split(":")[1];return t[n]=i,t},{});return a(n[t])?n[t]:e},t.prototype.getChartTypesBySeries=function(){var t=this;return this.series.reduce(function(e,n){return e[n.id]=t.chartTypeTo(n.id),e},{})},t}();function a(t){return-1!==r.indexOf(t||"")}e.a=o},function(t,e,n){"use strict";e.b=function(t){var e=t.series.reduce(function(t,e){var n=Object(i.c)(e);return t[n]={min:e.minValue,max:e.maxValue},t},{});return t.series.slice().sort(function(t){return t.minValue}).reduce(function(n,o){var a=Object(i.c)(o),s=function(t,e,n){return n[t].min>n[e].max||n[t].max ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},e.prototype.render=function(){return a.a.createElement(h.a,{history:this.history,children:this.props.children})},e}(a.a.Component);d.propTypes={initialEntries:l.a.array,initialIndex:l.a.number,getUserConfirmation:l.a.func,keyLength:l.a.number,children:l.a.node},e.a=d},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(15),a=n.n(o),s=n(28),l=n.n(s);var c=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(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}(this,t.apply(this,arguments))}return function(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)}(e,t),e.prototype.enable=function(t){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(t)},e.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},e.prototype.componentWillMount=function(){l()(this.context.router,"You should not use outside a "),this.props.when&&this.enable(this.props.message)},e.prototype.componentWillReceiveProps=function(t){t.when?this.props.when&&this.props.message===t.message||this.enable(t.message):this.disable()},e.prototype.componentWillUnmount=function(){this.disable()},e.prototype.render=function(){return null},e}(r.a.Component);c.propTypes={when:a.a.bool,message:a.a.oneOfType([a.a.func,a.a.string]).isRequired},c.defaultProps={when:!0},c.contextTypes={router:a.a.shape({history:a.a.shape({block:a.a.func.isRequired}).isRequired}).isRequired},e.a=c},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(15),a=n.n(o),s=n(19),l=n.n(s),c=n(28),u=n.n(c),h=n(614);var f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(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}(this,t.apply(this,arguments))}return function(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)}(e,t),e.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},e.prototype.componentWillMount=function(){u()(this.context.router,"You should not use outside a "),this.isStatic()&&this.perform()},e.prototype.componentDidMount=function(){this.isStatic()||this.perform()},e.prototype.componentDidUpdate=function(t){var e=Object(h.a)(t.to),n=Object(h.a)(this.props.to);Object(h.b)(e,n)?l()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"'):this.perform()},e.prototype.perform=function(){var t=this.context.router.history,e=this.props,n=e.push,i=e.to;n?t.push(i):t.replace(i)},e.prototype.render=function(){return null},e}(r.a.Component);f.propTypes={push:a.a.bool,from:a.a.string,to:a.a.oneOfType([a.a.string,a.a.object]).isRequired},f.defaultProps={push:!1},f.contextTypes={router:a.a.shape({history:a.a.shape({push:a.a.func.isRequired,replace:a.a.func.isRequired}).isRequired,staticContext:a.a.object}).isRequired},e.a=f},function(t,e,n){"use strict";var i=n(19),r=n.n(i),o=n(28),a=n.n(o),s=n(0),l=n.n(s),c=n(15),u=n.n(c),h=n(110),f=(n.n(h),n(131)),d=Object.assign||function(t){for(var e=1;e",t)}},b=function(){},x=function(t){function e(){var n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=arguments.length,o=Array(r),a=0;a ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},e.prototype.render=function(){var t=this.props,e=t.basename,n=(t.context,t.location),i=function(t,e){var n={};for(var i in t)e.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(t,["basename","context","location"]),r={createHref:this.createHref,action:"POP",location:function(t,e){if(!t)return e;var n=Object(h.addLeadingSlash)(t);return 0!==e.pathname.indexOf(n)?e:d({},e,{pathname:e.pathname.substr(n.length)})}(e,m(n)),push:this.handlePush,replace:this.handleReplace,go:y("go"),goBack:y("goBack"),goForward:y("goForward"),listen:this.handleListen,block:this.handleBlock};return l.a.createElement(f.a,d({},i,{history:r}))},e}(l.a.Component);x.propTypes={basename:u.a.string,context:u.a.object.isRequired,location:u.a.oneOfType([u.a.string,u.a.object])},x.defaultProps={basename:"",location:"/"},x.childContextTypes={router:u.a.object.isRequired},e.a=x},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(15),a=n.n(o),s=n(19),l=n.n(s),c=n(28),u=n.n(c),h=n(132);var f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(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}(this,t.apply(this,arguments))}return function(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)}(e,t),e.prototype.componentWillMount=function(){u()(this.context.router,"You should not use outside a ")},e.prototype.componentWillReceiveProps=function(t){l()(!(t.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),l()(!(!t.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},e.prototype.render=function(){var t=this.context.router.route,e=this.props.children,n=this.props.location||t.location,i=void 0,o=void 0;return r.a.Children.forEach(e,function(e){if(r.a.isValidElement(e)){var a=e.props,s=a.path,l=a.exact,c=a.strict,u=a.sensitive,f=a.from,d=s||f;null==i&&(o=e,i=d?Object(h.a)(n.pathname,{path:d,exact:l,strict:c,sensitive:u}):t.match)}}),i?r.a.cloneElement(o,{location:n,computedMatch:i}):null},e}(r.a.Component);f.contextTypes={router:a.a.shape({route:a.a.object.isRequired}).isRequired},f.propTypes={children:a.a.node,location:a.a.object},e.a=f},function(t,e,n){"use strict";var i=n(0),r=n.n(i),o=n(15),a=n.n(o),s=n(243),l=n.n(s),c=n(206),u=Object.assign||function(t){for(var e=1;e=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}(e,["wrappedComponentRef"]);return r.a.createElement(c.a,{render:function(e){return r.a.createElement(t,u({},i,e,{ref:n}))}})};return e.displayName="withRouter("+(t.displayName||t.name)+")",e.WrappedComponent=t,e.propTypes={wrappedComponentRef:a.a.func},l()(e,t)}},function(t,e,n){"use strict";n(360),n(361),n(362);var i=n(206);n.d(e,"a",function(){return i.a});n(131),n(363);var r=n(364);n.d(e,"b",function(){return r.a});n(132);var o=n(365);n.d(e,"c",function(){return o.a})},function(t,e,n){"use strict";var i=n(0),r=(n.n(i),n(976));e.a=function(t){return i.createElement("div",{onClick:t.onClick,title:t.title,className:"series-card mg-lg-b "+(t.checked?"card-has-check":""),style:{borderRightColor:t.pegColor?t.pegColor.code:""}},t.children,t.checked&&i.createElement(r.a,{onRemoveSerie:t.onRemoveSerie}))}},function(t,e,n){"use strict";var i=n(0);n.n(i);e.a=function(t){return i.createElement("div",{className:"card-desc v-clamp-2"},i.createElement("p",null,t.children))}},function(t,e,n){"use strict";var i=n(0),r=(n.n(i),this&&this.__assign||Object.assign||function(t){for(var e,n=1,i=arguments.length;n=Object(u.b)(Object(u.d)(e))});return void 0!==n?n.date:""}function y(t,e){if(0===t.length)return{min:0,max:0};var n=t[0].data,i=n.findIndex(function(t){return t.date>=e.start}),r=n.findIndex(function(t){return t.date>=e.end});return i<=0&&(i=0),r<=0&&(r=n.length-1),{min:new Date(n[i].date).getTime(),max:new Date(n[r].date).getTime()}}e.b=Object(a.b)(function(t){return{date:t.date,locale:t.locale,series:t.viewSeries}},{})(m)},function(t,e,n){"use strict";var i,r=n(0),o=(n.n(r),n(133)),a=n(88),s=n(353),l=n(992),c=n(355),u=n(356),h=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),f=n(1003),d=function(t){function e(e){var n=t.call(this,e)||this;return n.afterRender=function(t){n.showLoading(t),n.setExtremes(t),n.props.afterRender&&n.props.afterRender(t)},n.myRef=r.createRef(),Object(c.b)(e.locale),n}return h(e,t),e.prototype.componentDidUpdate=function(){this.notifyChangeSeriesNames(this.yAxisBySeries),this.fixAnimation()},e.prototype.render=function(){var t={axisSides:this.props.seriesAxis,decimalLeftAxis:this.props.decimalLeftAxis,decimalRightAxis:this.props.decimalRightAxis,locale:this.props.locale,series:this.props.series,seriesConfig:this.props.seriesConfig};this.yAxisBySeries=Object(s.b)(t);var e=this.hasSmallTooltip(),n=new l.a(this.props,e).getConfig();n.rangeSelector.inputDateParser=this.inputDateParser();var i=f(n,this.props.chartOptions||{});return r.createElement(u.a,{ref:this.myRef,config:i,callback:this.afterRender})},e.prototype.shouldComponentUpdate=function(t){return this.props.series.every(function(e){return t.series.every(function(t){return e.id!==t.id})})},e.prototype.hasSmallTooltip=function(){var t=this.myRef.current;return null!=t&&void 0!==t.chart.chartElement&&t.chart.chartElement.chartWidth<560},e.prototype.inputDateParser=function(){var t=this;return function(e){var n;if(t.myRef.current.chartRef.getElementsByClassName("highcharts-range-selector")[0].value===e)n=t.props.series[0].data[0].date;else{var i=t.props.series[t.props.series.length-1];n=i.data[i.data.length-1].date}var r=""===e?n:Object(a.a)(e);return Object(a.f)(r)}},e.prototype.showLoading=function(t){0===this.props.series.length&&t.showLoading("Cargando...")},e.prototype.setExtremes=function(t){t.xAxis[0].setExtremes(this.props.range.min,this.props.range.max)},e.prototype.notifyChangeSeriesNames=function(t){if(this.props.dispatch){var e=[];this.props.series.some(function(e){return t[e.id].opposite})?this.props.series.forEach(function(n){var i=t[n.id].opposite?n.description+" (der)":n.description+" (izq)";e.push({id:n.id,title:i,representationMode:n.representationMode})}):e=this.props.series.map(function(t){return{id:t.id,title:t.description,representationMode:t.representationMode}}),this.props.dispatch(Object(o.h)(e))}},e.prototype.fixAnimation=function(){this.myRef.current.chart.reflow=function(){}},e}(r.Component);e.a=d},function(t,e,n){"use strict";var i=n(0),r=(n.n(i),n(1012));n.n(r);e.a=function(t){return i.createElement(r,{text:t.url},i.createElement("li",{"data-tip":"Click me to show the tooltip",className:"c-linkItem"},i.createElement("a",{className:"pointer"},i.createElement("span",null,i.createElement("i",{className:"fas fa-link"})," ",t.text))))}},function(t,e,n){"use strict";var i,r,o,a=Object.assign||function(t){for(var e=1;e0||s){var n=!e.state.show;e.setState({currentEvent:t,currentTarget:c,show:!0},function(){e.updatePosition(),n&&a&&a()})}};clearTimeout(this.delayShowLoop),i?this.delayShowLoop=setTimeout(u,l):u()}}},{key:"hideTooltip",value:function(t,e){var n=this,i=this.state,r=i.delayHide,o=i.disable,a=this.props.afterHide,s=this.getTooltipContent();if(this.mount&&!this.isEmptyTip(s)&&!o){if(e)if(!this.getTargetArray(this.props.id).some(function(e){return e===t.currentTarget})||!this.state.show)return;var l=function(){var t=n.state.show;n.setState({show:!1},function(){n.removeScrollListener(),t&&a&&a()})};this.clearTimer(),r?this.delayHideLoop=setTimeout(l,parseInt(r,10)):l()}}},{key:"addScrollListener",value:function(t){var e=this.isCapture(t);window.addEventListener("scroll",this.hideTooltip,e)}},{key:"removeScrollListener",value:function(){window.removeEventListener("scroll",this.hideTooltip)}},{key:"updatePosition",value:function(){var t=this,e=this.state,n=e.currentEvent,i=e.currentTarget,r=e.place,o=e.desiredPlace,a=e.effect,s=e.offset,l=u.default.findDOMNode(this),c=(0,y.default)(n,i,l,r,o,a,s);if(c.isNewState)return this.setState(c.newState,function(){t.updatePosition()});l.style.left=c.position.left+"px",l.style.top=c.position.top+"px"}},{key:"setStyleHeader",value:function(){var t=document.getElementsByTagName("head")[0];if(!t.querySelector('style[id="react-tooltip"]')){var e=document.createElement("style");e.id="react-tooltip",e.innerHTML=_.default,t.insertBefore(e,t.firstChild)}}},{key:"clearTimer",value:function(){clearTimeout(this.delayShowLoop),clearTimeout(this.delayHideLoop),clearInterval(this.intervalUpdateContent)}},{key:"render",value:function(){var t=this.state,n=t.extraClass,i=t.html,r=t.ariaProps,o=t.disable,s=this.getTooltipContent(),c=this.isEmptyTip(s),u=(0,h.default)("__react_component_tooltip",{show:this.state.show&&!o&&!c},{border:this.state.border},{"place-top":"top"===this.state.place},{"place-bottom":"bottom"===this.state.place},{"place-left":"left"===this.state.place},{"place-right":"right"===this.state.place},{"type-dark":"dark"===this.state.type},{"type-success":"success"===this.state.type},{"type-warning":"warning"===this.state.type},{"type-error":"error"===this.state.type},{"type-info":"info"===this.state.type},{"type-light":"light"===this.state.type}),f=this.props.wrapper;return e.supportedWrappers.indexOf(f)<0&&(f=e.defaultProps.wrapper),i?l.default.createElement(f,a({className:u+" "+n,id:this.props.id},r,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:s}})):l.default.createElement(f,a({className:u+" "+n,id:this.props.id},r,{"data-id":"tooltip"}),s)}}]),e}(),r.propTypes={children:c.default.any,place:c.default.string,type:c.default.string,effect:c.default.string,offset:c.default.object,multiline:c.default.bool,border:c.default.bool,insecure:c.default.bool,class:c.default.string,className:c.default.string,id:c.default.string,html:c.default.bool,delayHide:c.default.number,delayShow:c.default.number,event:c.default.string,eventOff:c.default.string,watchWindow:c.default.bool,isCapture:c.default.bool,globalEventOff:c.default.string,getContent:c.default.any,afterShow:c.default.func,afterHide:c.default.func,disable:c.default.bool,scrollHide:c.default.bool,resizeHide:c.default.bool,wrapper:c.default.string},r.defaultProps={insecure:!0,resizeHide:!0,wrapper:"div"},r.supportedWrappers=["div","span"],r.displayName="ReactTooltip",i=o))||i)||i)||i)||i)||i)||i;t.exports=k},function(t,e,n){"use strict";e.a=function(t,e){return t+"&format="+e},e.b=function(t,e){var n="https://datos.gob.ar/series/api/series/?ids="+t;if(void 0===e)return n;return n+"&collapse="+e}},function(t,e,n){"use strict";(function(t){n(379),n(522),n(524),n(527),n(529),n(531),n(533),n(535),n(537),n(539),n(541),n(543),n(545),n(549),t._babelPolyfill&&"undefined"!==typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),t._babelPolyfill=!0}).call(e,n(64))},function(t,e,n){n(380),n(383),n(384),n(385),n(386),n(387),n(388),n(389),n(390),n(391),n(392),n(393),n(394),n(395),n(396),n(397),n(398),n(399),n(400),n(401),n(402),n(403),n(404),n(405),n(406),n(407),n(408),n(409),n(410),n(411),n(412),n(413),n(414),n(415),n(416),n(417),n(418),n(419),n(420),n(421),n(422),n(423),n(424),n(426),n(427),n(428),n(429),n(430),n(431),n(432),n(433),n(434),n(435),n(436),n(437),n(438),n(439),n(440),n(441),n(442),n(443),n(444),n(445),n(446),n(447),n(448),n(449),n(450),n(451),n(452),n(453),n(454),n(455),n(456),n(457),n(458),n(459),n(461),n(462),n(464),n(465),n(466),n(467),n(468),n(469),n(470),n(472),n(473),n(474),n(475),n(476),n(477),n(478),n(479),n(480),n(481),n(482),n(483),n(484),n(155),n(485),n(228),n(486),n(229),n(487),n(488),n(489),n(490),n(230),n(493),n(494),n(495),n(496),n(497),n(498),n(499),n(500),n(501),n(502),n(503),n(504),n(505),n(506),n(507),n(508),n(509),n(510),n(511),n(512),n(513),n(514),n(515),n(516),n(517),n(518),n(519),n(520),n(521),t.exports=n(11)},function(t,e,n){"use strict";var i=n(4),r=n(23),o=n(13),a=n(1),s=n(20),l=n(45).KEY,c=n(5),u=n(97),h=n(65),f=n(49),d=n(9),p=n(136),g=n(209),m=n(382),v=n(100),y=n(6),b=n(7),x=n(25),w=n(44),_=n(48),S=n(53),k=n(212),M=n(36),O=n(12),T=n(51),P=M.f,C=O.f,A=k.f,E=i.Symbol,L=i.JSON,j=L&&L.stringify,D=d("_hidden"),I=d("toPrimitive"),N={}.propertyIsEnumerable,R=u("symbol-registry"),z=u("symbols"),B=u("op-symbols"),F=Object.prototype,W="function"==typeof E,H=i.QObject,Y=!H||!H.prototype||!H.prototype.findChild,U=o&&c(function(){return 7!=S(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=P(F,e);i&&delete F[e],C(t,e,n),i&&t!==F&&C(F,e,i)}:C,G=function(t){var e=z[t]=S(E.prototype);return e._k=t,e},X=W&&"symbol"==typeof E.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof E},V=function(t,e,n){return t===F&&V(B,e,n),y(t),e=w(e,!0),y(n),r(z,e)?(n.enumerable?(r(t,D)&&t[D][e]&&(t[D][e]=!1),n=S(n,{enumerable:_(0,!1)})):(r(t,D)||C(t,D,_(1,{})),t[D][e]=!0),U(t,e,n)):C(t,e,n)},q=function(t,e){y(t);for(var n,i=m(e=x(e)),r=0,o=i.length;o>r;)V(t,n=i[r++],e[n]);return t},K=function(t){var e=N.call(this,t=w(t,!0));return!(this===F&&r(z,t)&&!r(B,t))&&(!(e||!r(this,t)||!r(z,t)||r(this,D)&&this[D][t])||e)},$=function(t,e){if(t=x(t),e=w(e,!0),t!==F||!r(z,e)||r(B,e)){var n=P(t,e);return!n||!r(z,e)||r(t,D)&&t[D][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=A(x(t)),i=[],o=0;n.length>o;)r(z,e=n[o++])||e==D||e==l||i.push(e);return i},Q=function(t){for(var e,n=t===F,i=A(n?B:x(t)),o=[],a=0;i.length>a;)!r(z,e=i[a++])||n&&!r(F,e)||o.push(z[e]);return o};W||(s((E=function(){if(this instanceof E)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===F&&e.call(B,n),r(this,D)&&r(this[D],t)&&(this[D][t]=!1),U(this,t,_(1,n))};return o&&Y&&U(F,t,{configurable:!0,set:e}),G(t)}).prototype,"toString",function(){return this._k}),M.f=$,O.f=V,n(54).f=k.f=Z,n(82).f=K,n(99).f=Q,o&&!n(50)&&s(F,"propertyIsEnumerable",K,!0),p.f=function(t){return G(d(t))}),a(a.G+a.W+a.F*!W,{Symbol:E});for(var J="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;J.length>tt;)d(J[tt++]);for(var et=T(d.store),nt=0;et.length>nt;)g(et[nt++]);a(a.S+a.F*!W,"Symbol",{for:function(t){return r(R,t+="")?R[t]:R[t]=E(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in R)if(R[e]===t)return e},useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),a(a.S+a.F*!W,"Object",{create:function(t,e){return void 0===e?S(t):q(S(t),e)},defineProperty:V,defineProperties:q,getOwnPropertyDescriptor:$,getOwnPropertyNames:Z,getOwnPropertySymbols:Q}),L&&a(a.S+a.F*(!W||c(function(){var t=E();return"[null]"!=j([t])||"{}"!=j({a:t})||"{}"!=j(Object(t))})),"JSON",{stringify:function(t){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=e=i[1],(b(e)||void 0!==t)&&!X(t))return v(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!X(e))return e}),i[1]=e,j.apply(L,i)}}),E.prototype[I]||n(24)(E.prototype,I,E.prototype.valueOf),h(E,"Symbol"),h(Math,"Math",!0),h(i.JSON,"JSON",!0)},function(t,e,n){t.exports=n(97)("native-function-to-string",Function.toString)},function(t,e,n){var i=n(51),r=n(99),o=n(82);t.exports=function(t){var e=i(t),n=r.f;if(n)for(var a,s=n(t),l=o.f,c=0;s.length>c;)l.call(t,a=s[c++])&&e.push(a);return e}},function(t,e,n){var i=n(1);i(i.S,"Object",{create:n(53)})},function(t,e,n){var i=n(1);i(i.S+i.F*!n(13),"Object",{defineProperty:n(12).f})},function(t,e,n){var i=n(1);i(i.S+i.F*!n(13),"Object",{defineProperties:n(211)})},function(t,e,n){var i=n(25),r=n(36).f;n(37)("getOwnPropertyDescriptor",function(){return function(t,e){return r(i(t),e)}})},function(t,e,n){var i=n(18),r=n(55);n(37)("getPrototypeOf",function(){return function(t){return r(i(t))}})},function(t,e,n){var i=n(18),r=n(51);n(37)("keys",function(){return function(t){return r(i(t))}})},function(t,e,n){n(37)("getOwnPropertyNames",function(){return n(212).f})},function(t,e,n){var i=n(7),r=n(45).onFreeze;n(37)("freeze",function(t){return function(e){return t&&i(e)?t(r(e)):e}})},function(t,e,n){var i=n(7),r=n(45).onFreeze;n(37)("seal",function(t){return function(e){return t&&i(e)?t(r(e)):e}})},function(t,e,n){var i=n(7),r=n(45).onFreeze;n(37)("preventExtensions",function(t){return function(e){return t&&i(e)?t(r(e)):e}})},function(t,e,n){var i=n(7);n(37)("isFrozen",function(t){return function(e){return!i(e)||!!t&&t(e)}})},function(t,e,n){var i=n(7);n(37)("isSealed",function(t){return function(e){return!i(e)||!!t&&t(e)}})},function(t,e,n){var i=n(7);n(37)("isExtensible",function(t){return function(e){return!!i(e)&&(!t||t(e))}})},function(t,e,n){var i=n(1);i(i.S+i.F,"Object",{assign:n(213)})},function(t,e,n){var i=n(1);i(i.S,"Object",{is:n(214)})},function(t,e,n){var i=n(1);i(i.S,"Object",{setPrototypeOf:n(140).set})},function(t,e,n){"use strict";var i=n(83),r={};r[n(9)("toStringTag")]="z",r+""!="[object z]"&&n(20)(Object.prototype,"toString",function(){return"[object "+i(this)+"]"},!0)},function(t,e,n){var i=n(1);i(i.P,"Function",{bind:n(215)})},function(t,e,n){var i=n(12).f,r=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in r||n(13)&&i(r,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,e,n){"use strict";var i=n(7),r=n(55),o=n(9)("hasInstance"),a=Function.prototype;o in a||n(12).f(a,o,{value:function(t){if("function"!=typeof this||!i(t))return!1;if(!i(this.prototype))return t instanceof this;for(;t=r(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,n){var i=n(1),r=n(217);i(i.G+i.F*(parseInt!=r),{parseInt:r})},function(t,e,n){var i=n(1),r=n(218);i(i.G+i.F*(parseFloat!=r),{parseFloat:r})},function(t,e,n){"use strict";var i=n(4),r=n(23),o=n(40),a=n(142),s=n(44),l=n(5),c=n(54).f,u=n(36).f,h=n(12).f,f=n(66).trim,d=i.Number,p=d,g=d.prototype,m="Number"==o(n(53)(g)),v="trim"in String.prototype,y=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){var n,i,r,o=(e=v?e.trim():f(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+e}for(var a,l=e.slice(2),c=0,u=l.length;cr)return NaN;return parseInt(l,i)}}return+e};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof d&&(m?l(function(){g.valueOf.call(n)}):"Number"!=o(n))?a(new p(y(e)),n,d):y(e)};for(var b,x=n(13)?c(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;x.length>w;w++)r(p,b=x[w])&&!r(d,b)&&h(d,b,u(p,b));d.prototype=g,g.constructor=d,n(20)(i,"Number",d)}},function(t,e,n){"use strict";var i=n(1),r=n(35),o=n(219),a=n(143),s=1..toFixed,l=Math.floor,c=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",h=function(t,e){for(var n=-1,i=e;++n<6;)i+=t*c[n],c[n]=i%1e7,i=l(i/1e7)},f=function(t){for(var e=6,n=0;--e>=0;)n+=c[e],c[e]=l(n/t),n=n%t*1e7},d=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==c[t]){var n=String(c[t]);e=""===e?n:e+a.call("0",7-n.length)+n}return e},p=function(t,e,n){return 0===e?n:e%2===1?p(t,e-1,n*t):p(t*t,e/2,n)};i(i.P+i.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(5)(function(){s.call({})})),"Number",{toFixed:function(t){var e,n,i,s,l=o(this,u),c=r(t),g="",m="0";if(c<0||c>20)throw RangeError(u);if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(g="-",l=-l),l>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(l*p(2,69,1))-69)<0?l*p(2,-e,1):l/p(2,e,1),n*=4503599627370496,(e=52-e)>0){for(h(0,n),i=c;i>=7;)h(1e7,0),i-=7;for(h(p(10,i,1),0),i=e-1;i>=23;)f(1<<23),i-=23;f(1<0?g+((s=m.length)<=c?"0."+a.call("0",c-s)+m:m.slice(0,s-c)+"."+m.slice(s-c)):g+m}})},function(t,e,n){"use strict";var i=n(1),r=n(5),o=n(219),a=1..toPrecision;i(i.P+i.F*(r(function(){return"1"!==a.call(1,void 0)})||!r(function(){a.call({})})),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},function(t,e,n){var i=n(1);i(i.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,n){var i=n(1),r=n(4).isFinite;i(i.S,"Number",{isFinite:function(t){return"number"==typeof t&&r(t)}})},function(t,e,n){var i=n(1);i(i.S,"Number",{isInteger:n(220)})},function(t,e,n){var i=n(1);i(i.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,n){var i=n(1),r=n(220),o=Math.abs;i(i.S,"Number",{isSafeInteger:function(t){return r(t)&&o(t)<=9007199254740991}})},function(t,e,n){var i=n(1);i(i.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,n){var i=n(1);i(i.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,n){var i=n(1),r=n(218);i(i.S+i.F*(Number.parseFloat!=r),"Number",{parseFloat:r})},function(t,e,n){var i=n(1),r=n(217);i(i.S+i.F*(Number.parseInt!=r),"Number",{parseInt:r})},function(t,e,n){var i=n(1),r=n(221),o=Math.sqrt,a=Math.acosh;i(i.S+i.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:r(t-1+o(t-1)*o(t+1))}})},function(t,e,n){var i=n(1),r=Math.asinh;i(i.S+i.F*!(r&&1/r(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,n){var i=n(1),r=Math.atanh;i(i.S+i.F*!(r&&1/r(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,n){var i=n(1),r=n(144);i(i.S,"Math",{cbrt:function(t){return r(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,n){var i=n(1);i(i.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,n){var i=n(1),r=Math.exp;i(i.S,"Math",{cosh:function(t){return(r(t=+t)+r(-t))/2}})},function(t,e,n){var i=n(1),r=n(145);i(i.S+i.F*(r!=Math.expm1),"Math",{expm1:r})},function(t,e,n){var i=n(1);i(i.S,"Math",{fround:n(425)})},function(t,e,n){var i=n(144),r=Math.pow,o=r(2,-52),a=r(2,-23),s=r(2,127)*(2-a),l=r(2,-126);t.exports=Math.fround||function(t){var e,n,r=Math.abs(t),c=i(t);return rs||n!=n?c*(1/0):c*n}},function(t,e,n){var i=n(1),r=Math.abs;i(i.S,"Math",{hypot:function(t,e){for(var n,i,o=0,a=0,s=arguments.length,l=0;a0?(i=n/l)*i:n;return l===1/0?1/0:l*Math.sqrt(o)}})},function(t,e,n){var i=n(1),r=Math.imul;i(i.S+i.F*n(5)(function(){return-5!=r(4294967295,5)||2!=r.length}),"Math",{imul:function(t,e){var n=+t,i=+e,r=65535&n,o=65535&i;return 0|r*o+((65535&n>>>16)*o+r*(65535&i>>>16)<<16>>>0)}})},function(t,e,n){var i=n(1);i(i.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,n){var i=n(1);i(i.S,"Math",{log1p:n(221)})},function(t,e,n){var i=n(1);i(i.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,n){var i=n(1);i(i.S,"Math",{sign:n(144)})},function(t,e,n){var i=n(1),r=n(145),o=Math.exp;i(i.S+i.F*n(5)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(r(t)-r(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,n){var i=n(1),r=n(145),o=Math.exp;i(i.S,"Math",{tanh:function(t){var e=r(t=+t),n=r(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},function(t,e,n){var i=n(1);i(i.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,n){var i=n(1),r=n(52),o=String.fromCharCode,a=String.fromCodePoint;i(i.S+i.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],i=arguments.length,a=0;i>a;){if(e=+arguments[a++],r(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},function(t,e,n){var i=n(1),r=n(25),o=n(10);i(i.S,"String",{raw:function(t){for(var e=r(t.raw),n=o(e.length),i=arguments.length,a=[],s=0;n>s;)a.push(String(e[s++])),s=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){"use strict";var i=n(1),r=n(146)(!1);i(i.P,"String",{codePointAt:function(t){return r(this,t)}})},function(t,e,n){"use strict";var i=n(1),r=n(10),o=n(148),a="".endsWith;i(i.P+i.F*n(150)("endsWith"),"String",{endsWith:function(t){var e=o(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,i=r(e.length),s=void 0===n?i:Math.min(r(n),i),l=String(t);return a?a.call(e,l,s):e.slice(s-l.length,s)===l}})},function(t,e,n){"use strict";var i=n(1),r=n(148);i(i.P+i.F*n(150)("includes"),"String",{includes:function(t){return!!~r(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){var i=n(1);i(i.P,"String",{repeat:n(143)})},function(t,e,n){"use strict";var i=n(1),r=n(10),o=n(148),a="".startsWith;i(i.P+i.F*n(150)("startsWith"),"String",{startsWith:function(t){var e=o(this,t,"startsWith"),n=r(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),i=String(t);return a?a.call(e,i,n):e.slice(n,n+i.length)===i}})},function(t,e,n){"use strict";n(21)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,n){"use strict";n(21)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,n){"use strict";n(21)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,n){"use strict";n(21)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,n){"use strict";n(21)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,n){"use strict";n(21)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,n){"use strict";n(21)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,n){"use strict";n(21)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,n){"use strict";n(21)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,n){"use strict";n(21)("small",function(t){return function(){return t(this,"small","","")}})},function(t,e,n){"use strict";n(21)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,n){"use strict";n(21)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,n){"use strict";n(21)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,n){var i=n(1);i(i.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,n){"use strict";var i=n(1),r=n(18),o=n(44);i(i.P+i.F*n(5)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=r(this),n=o(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},function(t,e,n){var i=n(1),r=n(460);i(i.P+i.F*(Date.prototype.toISOString!==r),"Date",{toISOString:r})},function(t,e,n){"use strict";var i=n(5),r=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=i(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!i(function(){o.call(new Date(NaN))})?function(){if(!isFinite(r.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),i=e<0?"-":e>9999?"+":"";return i+("00000"+Math.abs(e)).slice(i?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:o},function(t,e,n){var i=Date.prototype,r=i.toString,o=i.getTime;new Date(NaN)+""!="Invalid Date"&&n(20)(i,"toString",function(){var t=o.call(this);return t===t?r.call(this):"Invalid Date"})},function(t,e,n){var i=n(9)("toPrimitive"),r=Date.prototype;i in r||n(24)(r,i,n(463))},function(t,e,n){"use strict";var i=n(6),r=n(44);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return r(i(this),"number"!=t)}},function(t,e,n){var i=n(1);i(i.S,"Array",{isArray:n(100)})},function(t,e,n){"use strict";var i=n(33),r=n(1),o=n(18),a=n(223),s=n(151),l=n(10),c=n(152),u=n(153);r(r.S+r.F*!n(101)(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,r,h,f=o(t),d="function"==typeof this?this:Array,p=arguments.length,g=p>1?arguments[1]:void 0,m=void 0!==g,v=0,y=u(f);if(m&&(g=i(g,p>2?arguments[2]:void 0,2)),void 0==y||d==Array&&s(y))for(n=new d(e=l(f.length));e>v;v++)c(n,v,m?g(f[v],v):f[v]);else for(h=y.call(f),n=new d;!(r=h.next()).done;v++)c(n,v,m?a(h,g,[r.value,v],!0):r.value);return n.length=v,n}})},function(t,e,n){"use strict";var i=n(1),r=n(152);i(i.S+i.F*n(5)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)r(n,t,arguments[t++]);return n.length=e,n}})},function(t,e,n){"use strict";var i=n(1),r=n(25),o=[].join;i(i.P+i.F*(n(81)!=Object||!n(27)(o)),"Array",{join:function(t){return o.call(r(this),void 0===t?",":t)}})},function(t,e,n){"use strict";var i=n(1),r=n(139),o=n(40),a=n(52),s=n(10),l=[].slice;i(i.P+i.F*n(5)(function(){r&&l.call(r)}),"Array",{slice:function(t,e){var n=s(this.length),i=o(this);if(e=void 0===e?n:e,"Array"==i)return l.call(this,t,e);for(var r=a(t,n),c=a(e,n),u=s(c-r),h=new Array(u),f=0;f1&&(i=Math.min(i,o(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in e&&e[i]===t)return i||0;return-1}})},function(t,e,n){var i=n(1);i(i.P,"Array",{copyWithin:n(226)}),n(56)("copyWithin")},function(t,e,n){var i=n(1);i(i.P,"Array",{fill:n(154)}),n(56)("fill")},function(t,e,n){"use strict";var i=n(1),r=n(38)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),i(i.P+i.F*o,"Array",{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n(56)("find")},function(t,e,n){"use strict";var i=n(1),r=n(38)(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),i(i.P+i.F*a,"Array",{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n(56)(o)},function(t,e,n){n(68)("Array")},function(t,e,n){var i=n(4),r=n(142),o=n(12).f,a=n(54).f,s=n(149),l=n(102),c=i.RegExp,u=c,h=c.prototype,f=/a/g,d=/a/g,p=new c(f)!==f;if(n(13)&&(!p||n(5)(function(){return d[n(9)("match")]=!1,c(f)!=f||c(d)==d||"/a/i"!=c(f,"i")}))){c=function(t,e){var n=this instanceof c,i=s(t),o=void 0===e;return!n&&i&&t.constructor===c&&o?t:r(p?new u(i&&!o?t.source:t,e):u((i=t instanceof c)?t.source:t,i&&o?l.call(t):e),n?this:h,c)};for(var g=function(t){t in c||o(c,t,{configurable:!0,get:function(){return u[t]},set:function(e){u[t]=e}})},m=a(u),v=0;m.length>v;)g(m[v++]);h.constructor=c,c.prototype=h,n(20)(i,"RegExp",c)}n(68)("RegExp")},function(t,e,n){"use strict";n(229);var i=n(6),r=n(102),o=n(13),a=/./.toString,s=function(t){n(20)(RegExp.prototype,"toString",t,!0)};n(5)(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?s(function(){var t=i(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?r.call(t):void 0)}):"toString"!=a.name&&s(function(){return a.call(this)})},function(t,e,n){"use strict";var i=n(6),r=n(10),o=n(157),a=n(103);n(104)("match",1,function(t,e,n,s){return[function(n){var i=t(this),r=void 0==n?void 0:n[e];return void 0!==r?r.call(n,i):new RegExp(n)[e](String(i))},function(t){var e=s(n,t,this);if(e.done)return e.value;var l=i(t),c=String(this);if(!l.global)return a(l,c);var u=l.unicode;l.lastIndex=0;for(var h,f=[],d=0;null!==(h=a(l,c));){var p=String(h[0]);f[d]=p,""===p&&(l.lastIndex=o(c,r(l.lastIndex),u)),d++}return 0===d?null:f}]})},function(t,e,n){"use strict";var i=n(6),r=n(18),o=n(10),a=n(35),s=n(157),l=n(103),c=Math.max,u=Math.min,h=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g;n(104)("replace",2,function(t,e,n,p){return[function(i,r){var o=t(this),a=void 0==i?void 0:i[e];return void 0!==a?a.call(i,o,r):n.call(String(o),i,r)},function(t,e){var r=p(n,t,this,e);if(r.done)return r.value;var h=i(t),f=String(this),d="function"===typeof e;d||(e=String(e));var m=h.global;if(m){var v=h.unicode;h.lastIndex=0}for(var y=[];;){var b=l(h,f);if(null===b)break;if(y.push(b),!m)break;""===String(b[0])&&(h.lastIndex=s(f,o(h.lastIndex),v))}for(var x,w="",_=0,S=0;S=_&&(w+=f.slice(_,M)+A,_=M+k.length)}return w+f.slice(_)}];function g(t,e,i,o,a,s){var l=i+t.length,c=o.length,u=d;return void 0!==a&&(a=r(a),u=f),n.call(s,u,function(n,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(l);case"<":s=a[r.slice(1,-1)];break;default:var u=+r;if(0===u)return n;if(u>c){var f=h(u/10);return 0===f?n:f<=c?void 0===o[f-1]?r.charAt(1):o[f-1]+r.charAt(1):n}s=o[u-1]}return void 0===s?"":s})}})},function(t,e,n){"use strict";var i=n(6),r=n(214),o=n(103);n(104)("search",1,function(t,e,n,a){return[function(n){var i=t(this),r=void 0==n?void 0:n[e];return void 0!==r?r.call(n,i):new RegExp(n)[e](String(i))},function(t){var e=a(n,t,this);if(e.done)return e.value;var s=i(t),l=String(this),c=s.lastIndex;r(c,0)||(s.lastIndex=0);var u=o(s,l);return r(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]})},function(t,e,n){"use strict";var i=n(149),r=n(6),o=n(84),a=n(157),s=n(10),l=n(103),c=n(156),u=n(5),h=Math.min,f=[].push,d=!u(function(){RegExp(4294967295,"y")});n(104)("split",2,function(t,e,n,u){var p;return p="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!i(t))return n.call(r,t,e);for(var o,a,s,l=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,d=void 0===e?4294967295:e>>>0,p=new RegExp(t.source,u+"g");(o=c.call(p,r))&&!((a=p.lastIndex)>h&&(l.push(r.slice(h,o.index)),o.length>1&&o.index=d));)p.lastIndex===o.index&&p.lastIndex++;return h===r.length?!s&&p.test("")||l.push(""):l.push(r.slice(h)),l.length>d?l.slice(0,d):l}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,i){var r=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,r,i):p.call(String(r),n,i)},function(t,e){var i=u(p,t,this,e,p!==n);if(i.done)return i.value;var c=r(t),f=String(this),g=o(c,RegExp),m=c.unicode,v=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(d?"y":"g"),y=new g(d?c:"^(?:"+c.source+")",v),b=void 0===e?4294967295:e>>>0;if(0===b)return[];if(0===f.length)return null===l(y,f)?[f]:[];for(var x=0,w=0,_=[];w0?arguments[0]:void 0)}},{get:function(t){var e=i.getEntry(r(this,"Map"),t);return e&&e.v},set:function(t,e){return i.def(r(this,"Map"),0===t?0:t,e)}},i,!0)},function(t,e,n){"use strict";var i=n(233),r=n(57);t.exports=n(107)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return i.def(r(this,"Set"),t=0===t?0:t,t)}},i)},function(t,e,n){"use strict";var i,r=n(4),o=n(38)(0),a=n(20),s=n(45),l=n(213),c=n(234),u=n(7),h=n(57),f=n(57),d=!r.ActiveXObject&&"ActiveXObject"in r,p=s.getWeak,g=Object.isExtensible,m=c.ufstore,v=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(t){if(u(t)){var e=p(t);return!0===e?m(h(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(h(this,"WeakMap"),t,e)}},b=t.exports=n(107)("WeakMap",v,y,c,!0,!0);f&&d&&(l((i=c.getConstructor(v,"WeakMap")).prototype,y),s.NEED=!0,o(["delete","has","get","set"],function(t){var e=b.prototype,n=e[t];a(e,t,function(e,r){if(u(e)&&!g(e)){this._f||(this._f=new i);var o=this._f[t](e,r);return"set"==t?this:o}return n.call(this,e,r)})}))},function(t,e,n){"use strict";var i=n(234),r=n(57);n(107)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return i.def(r(this,"WeakSet"),t,!0)}},i,!1,!0)},function(t,e,n){"use strict";var i=n(1),r=n(108),o=n(159),a=n(6),s=n(52),l=n(10),c=n(7),u=n(4).ArrayBuffer,h=n(84),f=o.ArrayBuffer,d=o.DataView,p=r.ABV&&u.isView,g=f.prototype.slice,m=r.VIEW;i(i.G+i.W+i.F*(u!==f),{ArrayBuffer:f}),i(i.S+i.F*!r.CONSTR,"ArrayBuffer",{isView:function(t){return p&&p(t)||c(t)&&m in t}}),i(i.P+i.U+i.F*n(5)(function(){return!new f(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,e){if(void 0!==g&&void 0===e)return g.call(a(this),t);for(var n=a(this).byteLength,i=s(t,n),r=s(void 0===e?n:e,n),o=new(h(this,f))(l(r-i)),c=new d(this),u=new d(o),p=0;i=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}}),i(i.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,e,n){var i=n(36),r=n(55),o=n(23),a=n(1),s=n(7),l=n(6);a(a.S,"Reflect",{get:function t(e,n){var a,c,u=arguments.length<3?e:arguments[2];return l(e)===u?e[n]:(a=i.f(e,n))?o(a,"value")?a.value:void 0!==a.get?a.get.call(u):void 0:s(c=r(e))?t(c,n,u):void 0}})},function(t,e,n){var i=n(36),r=n(1),o=n(6);r(r.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return i.f(o(t),e)}})},function(t,e,n){var i=n(1),r=n(55),o=n(6);i(i.S,"Reflect",{getPrototypeOf:function(t){return r(o(t))}})},function(t,e,n){var i=n(1);i(i.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,n){var i=n(1),r=n(6),o=Object.isExtensible;i(i.S,"Reflect",{isExtensible:function(t){return r(t),!o||o(t)}})},function(t,e,n){var i=n(1);i(i.S,"Reflect",{ownKeys:n(236)})},function(t,e,n){var i=n(1),r=n(6),o=Object.preventExtensions;i(i.S,"Reflect",{preventExtensions:function(t){r(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,e,n){var i=n(12),r=n(36),o=n(55),a=n(23),s=n(1),l=n(48),c=n(6),u=n(7);s(s.S,"Reflect",{set:function t(e,n,s){var h,f,d=arguments.length<4?e:arguments[3],p=r.f(c(e),n);if(!p){if(u(f=o(e)))return t(f,n,s,d);p=l(0)}if(a(p,"value")){if(!1===p.writable||!u(d))return!1;if(h=r.f(d,n)){if(h.get||h.set||!1===h.writable)return!1;h.value=s,i.f(d,n,h)}else i.f(d,n,l(0,s));return!0}return void 0!==p.set&&(p.set.call(d,s),!0)}})},function(t,e,n){var i=n(1),r=n(140);r&&i(i.S,"Reflect",{setPrototypeOf:function(t,e){r.check(t,e);try{return r.set(t,e),!0}catch(t){return!1}}})},function(t,e,n){n(523),t.exports=n(11).Array.includes},function(t,e,n){"use strict";var i=n(1),r=n(98)(!0);i(i.P,"Array",{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n(56)("includes")},function(t,e,n){n(525),t.exports=n(11).Array.flatMap},function(t,e,n){"use strict";var i=n(1),r=n(526),o=n(18),a=n(10),s=n(34),l=n(224);i(i.P,"Array",{flatMap:function(t){var e,n,i=o(this);return s(t),e=a(i.length),n=l(i,0),r(n,i,i,e,0,1,t,arguments[1]),n}}),n(56)("flatMap")},function(t,e,n){"use strict";var i=n(100),r=n(7),o=n(10),a=n(33),s=n(9)("isConcatSpreadable");t.exports=function t(e,n,l,c,u,h,f,d){for(var p,g,m=u,v=0,y=!!f&&a(f,d,3);v0)m=t(e,n,p,o(p.length),m,h-1)-1;else{if(m>=9007199254740991)throw TypeError();e[m]=p}m++}v++}return m}},function(t,e,n){n(528),t.exports=n(11).String.padStart},function(t,e,n){"use strict";var i=n(1),r=n(237),o=n(106),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);i(i.P+i.F*a,"String",{padStart:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,n){n(530),t.exports=n(11).String.padEnd},function(t,e,n){"use strict";var i=n(1),r=n(237),o=n(106),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);i(i.P+i.F*a,"String",{padEnd:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,n){n(532),t.exports=n(11).String.trimLeft},function(t,e,n){"use strict";n(66)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,e,n){n(534),t.exports=n(11).String.trimRight},function(t,e,n){"use strict";n(66)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,e,n){n(536),t.exports=n(136).f("asyncIterator")},function(t,e,n){n(209)("asyncIterator")},function(t,e,n){n(538),t.exports=n(11).Object.getOwnPropertyDescriptors},function(t,e,n){var i=n(1),r=n(236),o=n(25),a=n(36),s=n(152);i(i.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,i=o(t),l=a.f,c=r(i),u={},h=0;c.length>h;)void 0!==(n=l(i,e=c[h++]))&&s(u,e,n);return u}})},function(t,e,n){n(540),t.exports=n(11).Object.values},function(t,e,n){var i=n(1),r=n(238)(!1);i(i.S,"Object",{values:function(t){return r(t)}})},function(t,e,n){n(542),t.exports=n(11).Object.entries},function(t,e,n){var i=n(1),r=n(238)(!0);i(i.S,"Object",{entries:function(t){return r(t)}})},function(t,e,n){"use strict";n(230),n(544),t.exports=n(11).Promise.finally},function(t,e,n){"use strict";var i=n(1),r=n(11),o=n(4),a=n(84),s=n(232);i(i.P+i.R,"Promise",{finally:function(t){var e=a(this,r.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then(function(){return n})}:t,n?function(n){return s(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){n(546),n(547),n(548),t.exports=n(11)},function(t,e,n){var i=n(4),r=n(1),o=n(106),a=[].slice,s=/MSIE .\./.test(o),l=function(t){return function(e,n){var i=arguments.length>2,r=!!i&&a.call(arguments,2);return t(i?function(){("function"==typeof e?e:Function(e)).apply(this,r)}:e,n)}};r(r.G+r.B+r.F*s,{setTimeout:l(i.setTimeout),setInterval:l(i.setInterval)})},function(t,e,n){var i=n(1),r=n(158);i(i.G+i.B,{setImmediate:r.set,clearImmediate:r.clear})},function(t,e,n){for(var i=n(155),r=n(51),o=n(20),a=n(4),s=n(24),l=n(67),c=n(9),u=c("iterator"),h=c("toStringTag"),f=l.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=r(d),g=0;g=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:P(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=i}catch(t){Function("r","regeneratorRuntime = r")(i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,r,o,a,s=n(555);n.n(s);n(551),"undefined"===typeof Promise&&(n(552).enable(),window.Promise=n(554)),Object.assign=n(160),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),i=1;i>>0;if("function"!==typeof t)throw new TypeError("predicate must be a function");for(var i=arguments[1],r=0;r0?1:-1)*Math.floor(Math.abs(e)):e}(t);return Math.min(Math.max(e,0),o)},function(t){var e=Object(t);if(null==t)throw new TypeError("Array.from requires an array-like object - not null or undefined");var n,i=arguments.length>1?arguments[1]:void 0;if("undefined"!==typeof i){if(!r(i))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(n=arguments[2])}for(var o,s=a(e.length),l=r(this)?Object(new this(s)):new Array(s),c=0;ca){for(var e=0,n=r.length-o;e-1};u.prototype.append=function(t,e){t=s(t),e=l(e);var n=this.map[t];this.map[t]=n?n+","+e:e},u.prototype.delete=function(t){delete this.map[s(t)]},u.prototype.get=function(t){return t=s(t),this.has(t)?this.map[t]:null},u.prototype.has=function(t){return this.map.hasOwnProperty(s(t))},u.prototype.set=function(t,e){this.map[s(t)]=l(e)},u.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},u.prototype.keys=function(){var t=[];return this.forEach(function(e,n){t.push(n)}),c(t)},u.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),c(t)},u.prototype.entries=function(){var t=[];return this.forEach(function(e,n){t.push([n,e])}),c(t)},e.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);var o=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},g.call(m.prototype),g.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},y.error=function(){var t=new y(null,{status:0,statusText:""});return t.type="error",t};var a=[301,302,303,307,308];y.redirect=function(t,e){if(-1===a.indexOf(e))throw new RangeError("Invalid status code");return new y(null,{status:e,headers:{location:t}})},t.Headers=u,t.Request=m,t.Response=y,t.fetch=function(t,n){return new Promise(function(i,r){var o=new m(t,n),a=new XMLHttpRequest;a.onload=function(){var t,e,n={status:a.status,statusText:a.statusText,headers:(t=a.getAllResponseHeaders()||"",e=new u,t.split(/\r?\n/).forEach(function(t){var n=t.split(":"),i=n.shift().trim();if(i){var r=n.join(":").trim();e.append(i,r)}}),e)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var r="response"in a?a.response:a.responseText;i(new y(r,n))},a.onerror=function(){r(new TypeError("Network request failed"))},a.ontimeout=function(){r(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials&&(a.withCredentials=!0),"responseType"in a&&e.blob&&(a.responseType="blob"),o.headers.forEach(function(t,e){a.setRequestHeader(e,t)}),a.send("undefined"===typeof o._bodyInit?null:o._bodyInit)})},t.fetch.polyfill=!0}function s(t){if("string"!==typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function l(t){return"string"!==typeof t&&(t=String(t)),t}function c(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return e.iterable&&(n[Symbol.iterator]=function(){return n}),n}function u(t){this.map={},t instanceof u?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function h(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise(function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}})}function d(t){var e=new FileReader,n=f(e);return e.readAsArrayBuffer(t),n}function p(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,t)if("string"===typeof t)this._bodyText=t;else if(e.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(e.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else if(e.arrayBuffer&&e.blob&&i(t))this._bodyArrayBuffer=p(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!e.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(t)&&!r(t))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=p(t)}else this._bodyText="";this.headers.get("content-type")||("string"===typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=h(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var t,e,n,i=h(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=f(e),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),i=0;i-1?i:n),this.mode=e.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function v(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var n=t.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}}),e}function y(t,e){e||(e={}),this.type="default",this.status="status"in e?e.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new u(e.headers),this.url=e.url||"",this._initBody(t)}}("undefined"!==typeof self?self:this)},function(t,e,n){"use strict";var i=n(160),r=n(161),o=n(240),a=n(162),s="function"===typeof Symbol&&Symbol.for,l=s?Symbol.for("react.element"):60103,c=s?Symbol.for("react.portal"):60106,u=s?Symbol.for("react.fragment"):60107,h=s?Symbol.for("react.strict_mode"):60108,f=s?Symbol.for("react.profiler"):60114,d=s?Symbol.for("react.provider"):60109,p=s?Symbol.for("react.context"):60110,g=s?Symbol.for("react.async_mode"):60111,m=s?Symbol.for("react.forward_ref"):60112;s&&Symbol.for("react.timeout");var v="function"===typeof Symbol&&Symbol.iterator;function y(t){for(var e=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,i=0;iA.length&&A.push(t)}function j(t,e,n,i){var r=typeof t;"undefined"!==r&&"boolean"!==r||(t=null);var o=!1;if(null===t)o=!0;else switch(r){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case l:case c:o=!0}}if(o)return n(i,t,""===e?"."+D(t,0):e),1;if(o=0,e=""===e?".":e+":",Array.isArray(t))for(var a=0;athis.eventPool.length&&this.eventPool.push(t)}function dt(t){t.eventPool=[],t.getPooled=ht,t.release=ft}a(ut.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!==typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=s.thatReturnsTrue)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!==typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=s.thatReturnsTrue)},persist:function(){this.isPersistent=s.thatReturnsTrue},isPersistent:s.thatReturnsFalse,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;for(e=0;e=yt),wt=String.fromCharCode(32),_t={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"topBlur topCompositionEnd topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"topBlur topCompositionStart topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"topBlur topCompositionUpdate topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")}},St=!1;function kt(t,e){switch(t){case"topKeyUp":return-1!==mt.indexOf(e.keyCode);case"topKeyDown":return 229!==e.keyCode;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function Mt(t){return"object"===typeof(t=t.detail)&&"data"in t?t.data:null}var Ot=!1;var Tt={eventTypes:_t,extractEvents:function(t,e,n,i){var r=void 0,o=void 0;if(vt)t:{switch(t){case"topCompositionStart":r=_t.compositionStart;break t;case"topCompositionEnd":r=_t.compositionEnd;break t;case"topCompositionUpdate":r=_t.compositionUpdate;break t}r=void 0}else Ot?kt(t,n)&&(r=_t.compositionEnd):"topKeyDown"===t&&229===n.keyCode&&(r=_t.compositionStart);return r?(xt&&(Ot||r!==_t.compositionStart?r===_t.compositionEnd&&Ot&&(o=at()):(ot._root=i,ot._startText=st(),Ot=!0)),r=pt.getPooled(r,e,n,i),o?r.data=o:null!==(o=Mt(n))&&(r.data=o),tt(r),o=r):o=null,(t=bt?function(t,e){switch(t){case"topCompositionEnd":return Mt(e);case"topKeyPress":return 32!==e.which?null:(St=!0,wt);case"topTextInput":return(t=e.data)===wt&&St?null:t;default:return null}}(t,n):function(t,e){if(Ot)return"topCompositionEnd"===t||!vt&&kt(t,e)?(t=at(),ot._root=null,ot._startText=null,ot._fallbackText=null,Ot=!1,t):null;switch(t){case"topPaste":return null;case"topKeyPress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1/g,"").split(//g):[c],c=v(c,function(t){return""!==t}),p(c,function(n,c){var u,h=0;n=n.replace(/^\s+|\s+$/g,"").replace(//g,"|||"),u=n.split("|||"),p(u,function(n){if(""!==n||1===u.length){var p,g,v={},y=d.createElementNS(a.SVG_NS,"tspan");if((p=T(n,"class"))&&o(y,"class",p),(p=T(n,"style"))&&(p=p.replace(/(;| |^)color([ :])/,"$1fill$2"),o(y,"style",p)),(g=T(n,"href"))&&!s&&(o(y,"onclick",'location.href="'+g+'"'),o(y,"class","highcharts-anchor"),l(y,{cursor:"pointer"}))," "!==(n=O(n.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" "))){if(y.appendChild(d.createTextNode(n)),h?v.dx=0:c&&null!==f&&(v.x=f),o(y,v),r.appendChild(y),!h&&i&&(!j&&s&&l(y,{display:"block"}),o(y,"dy",M(y))),m){v=n.replace(/([^\^])-/g,"$1- ").split(" "),g=1m,void 0===e&&(e=n),n&&1!==v.length?(y.removeChild(y.firstChild),x.unshift(v.pop())):(v=x,x=[],v.length&&!_&&(y=d.createElementNS(D,"tspan"),o(y,{dy:S,x:f}),p&&o(y,"style",p),r.appendChild(y)),b>m&&(m=b)),v.length&&y.appendChild(d.createTextNode(v.join(" ").replace(/- /g,"-")));t.rotation=k}h++}}}),i=i||r.childNodes.length}),e&&t.attr("title",O(t.textStr,["<",">"])),g&&g.removeChild(r),x&&t.applyTextOutline&&t.applyTextOutline(x)):r.appendChild(d.createTextNode(O(c)))}},getContrast:function(t){return 510<(t=s(t).rgba)[0]+t[1]+t[2]?"#000000":"#FFFFFF"},button:function(t,e,n,r,o,a,s,l,c){var u,h,f,d,p=this.label(t,e,n,c,null,null,null,null,"button"),m=0;return p.attr(O({padding:8,r:2},o)),o=O({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},o),u=o.style,delete o.style,a=O(o,{fill:"#e6e6e6"},a),h=a.style,delete a.style,s=O(o,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},s),f=s.style,delete s.style,l=O(o,{style:{color:"#cccccc"}},l),d=l.style,delete l.style,i(p.element,_?"mouseover":"mouseenter",function(){3!==m&&p.setState(1)}),i(p.element,_?"mouseout":"mouseleave",function(){3!==m&&p.setState(m)}),p.setState=function(t){1!==t&&(p.state=m=t),p.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),p.attr([o,a,s,l][t||0]).css([u,h,f,d][t||0])},p.attr(o).css(g({cursor:"default"},u)),p.on("click",function(t){3!==m&&r.call(p,t)})},crispLine:function(t,e){return t[1]===t[4]&&(t[1]=t[4]=Math.round(t[1])-e%2/2),t[2]===t[5]&&(t[2]=t[5]=Math.round(t[2])+e%2/2),t},path:function(t){var e={fill:"none"};return x(t)?e.d=t:S(t)&&g(e,t),this.createElement("path").attr(e)},circle:function(t,e,n){return t=S(t)?t:{x:t,y:e,r:n},(e=this.createElement("circle")).xSetter=e.ySetter=function(t,e,n){n.setAttribute("c"+e,t)},e.attr(t)},arc:function(t,e,n,i,r,o){return S(t)?(e=(i=t).y,n=i.r,t=i.x):i={innerR:i,start:r,end:o},(t=this.symbol("arc",t,e,n,n,i)).r=n,t},rect:function(t,e,n,i,r,a){r=S(t)?t.r:r;var s=this.createElement("rect");return t=S(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(n,0),height:Math.max(i,0)},void 0!==a&&(t.strokeWidth=a,t=s.crisp(t)),t.fill="none",r&&(t.r=r),s.rSetter=function(t,e,n){o(n,{rx:t,ry:t})},s.attr(t)},setSize:function(t,e,n){var i=this.alignedObjects,r=i.length;for(this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:C(n,!0)?void 0:0});r--;)i[r].align()},g:function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},image:function(t,e,n,r,o,a){var s,l={preserveAspectRatio:"none"},c=function(t,e){t.setAttributeNS?t.setAttributeNS("http://www.w3.org/1999/xlink","href",e):t.setAttribute("hc-svg-href",e)};return 1Math.abs(r.end-r.start-2*Math.PI));var c=Math.cos(o),h=Math.sin(o),f=Math.cos(l);l=Math.sin(l);return a=["M",t+a*c,e+s*h,"A",a,s,0,r=.001>r.end-o-Math.PI?0:1,1,t+a*f,e+s*l],u(n)&&a.push(i?"M":"L",t+n*f,e+n*l,"A",n,n,0,r,0,t+n*c,e+n*h),a.push(i?"":"Z"),a},callout:function(t,e,n,i,r){var o,a=Math.min(r&&r.r||0,n,i),s=a+6,l=r&&r.anchorX;return r=r&&r.anchorY,o=["M",t+a,e,"L",t+n-a,e,"C",t+n,e,t+n,e,t+n,e+a,"L",t+n,e+i-a,"C",t+n,e+i,t+n,e+i,t+n-a,e+i,"L",t+a,e+i,"C",t,e+i,t,e+i,t,e+i-a,"L",t,e+a,"C",t,e,t,e,t+a,e],l&&l>n?r>e+s&&rl?r>e+s&&ri&&l>t+s&&lr&&l>t+s&&l(t=/px/.test(t)?A(t):/em/.test(t)?parseFloat(t)*(e?this.fontMetrics(null,e.parentNode).f:16):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},rotCorr:function(t,e,n){var i=t;return e&&n&&(i=Math.max(i*Math.cos(e*h),4)),{x:-t/3*Math.sin(e*h),y:i}},label:function(n,i,r,o,a,s,l,c,h){var f,d,m,v,y,b,x,w,_,S,k,M,T,P=this,C=P.g("button"!==h&&"label"),A=C.text=P.text("",0,0,l).attr({zIndex:1}),L=0,j=3,D=0,I={},N=/^url\((.*?)\)$/.test(o),R=N;h&&C.addClass("highcharts-"+h),R=N,S=function(){return(w||0)%2/2},k=function(){var t=A.element.style,e={};d=(void 0===m||void 0===v||x)&&u(A.textStr)&&A.getBBox(),C.width=(m||d.width||0)+2*j+D,C.height=(v||d.height||0)+2*j,_=j+P.fontMetrics(t&&t.fontSize,A).b,R&&(f||(C.box=f=P.symbols[o]||N?P.symbol(o):P.rect(),f.addClass(("button"===h?"":"highcharts-label-box")+(h?" highcharts-"+h+"-box":"")),f.add(C),t=S(),e.x=t,e.y=(c?-_:0)+t),e.width=Math.round(C.width),e.height=Math.round(C.height),f.attr(g(e,I)),I={})},M=function(){var t,e=D+j;t=c?0:_,u(m)&&d&&("center"===x||"right"===x)&&(e+={center:.5,right:1}[x]*(m-d.width)),e===A.x&&t===A.y||(A.attr("x",e),void 0!==t&&A.attr("y",t)),A.x=e,A.y=t},T=function(t,e){f?f.attr(t,e):I[t]=e},C.onAdd=function(){A.add(C),C.attr({text:n||0===n?n:"",x:i,y:r}),f&&u(a)&&C.attr({anchorX:a,anchorY:s})},C.widthSetter=function(e){m=t.isNumber(e)?e:null},C.heightSetter=function(t){v=t},C["text-alignSetter"]=function(t){x=t},C.paddingSetter=function(t){u(t)&&t!==j&&(j=C.padding=t,M())},C.paddingLeftSetter=function(t){u(t)&&t!==D&&(D=t,M())},C.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==L&&(L=t,d&&C.attr({x:y}))},C.textSetter=function(t){void 0!==t&&A.textSetter(t),k(),M()},C["stroke-widthSetter"]=function(t,e){t&&(R=!0),w=this["stroke-width"]=t,T(e,t)},C.strokeSetter=C.fillSetter=C.rSetter=function(t,e){"r"!==e&&("fill"===e&&t&&(R=!0),C[e]=t),T(e,t)},C.anchorXSetter=function(t,e){a=C.anchorX=t,T(e,Math.round(t)-S()-y)},C.anchorYSetter=function(t,e){s=C.anchorY=t,T(e,t-b)},C.xSetter=function(t){C.x=t,L&&(t-=L*((m||d.width)+2*j),C["forceAnimate:x"]=!0),y=Math.round(t),C.attr("translateX",y)},C.ySetter=function(t){b=C.y=Math.round(t),C.attr("translateY",b)};var z=C.css;return g(C,{css:function(t){if(t){var e={};t=O(t),p(C.textProps,function(n){void 0!==t[n]&&(e[n]=t[n],delete t[n])}),A.css(e),"width"in e&&k()}return z.call(C,t)},getBBox:function(){return{width:d.width+2*j,height:d.height+2*j,x:d.x-j,y:d.y-j}},shadow:function(t){return t&&(k(),f&&f.shadow(t)),C},destroy:function(){E(C.element,"mouseenter"),E(C.element,"mouseleave"),A&&(A=A.destroy()),f&&(f=f.destroy()),e.prototype.destroy.call(C),C=P=k=M=T=null}})}}),t.Renderer=n}(c),function(t){var e=t.attr,n=t.createElement,i=t.css,r=t.defined,o=t.each,a=t.extend,s=t.isFirefox,l=t.isMS,c=t.isWebKit,u=t.pick,h=t.pInt,f=t.SVGRenderer,d=t.win,p=t.wrap;a(t.SVGElement.prototype,{htmlCss:function(t){var e=this.element;return(e=t&&"SPAN"===e.tagName&&t.width)&&(delete t.width,this.textWidth=e,this.htmlUpdateTransform()),t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=a(this.styles,t),i(this.element,t),this},htmlGetBBox:function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var t=this.renderer,e=this.element,n=this.translateX||0,a=this.translateY||0,s=this.x||0,l=this.y||0,c=this.textAlign||"left",u={left:0,center:.5,right:1}[c],f=(p=this.styles)&&p.whiteSpace;if(i(e,{marginLeft:n,marginTop:a}),this.shadows&&o(this.shadows,function(t){i(t,{marginLeft:n+1,marginTop:a+1})}),this.inverted&&o(e.childNodes,function(n){t.invertChild(n,e)}),"SPAN"===e.tagName){var d,p=this.rotation,g=this.textWidth&&h(this.textWidth),m=[p,c,e.innerHTML,this.textWidth,this.textAlign].join();(d=g!==this.oldTextWidth)&&!(d=g>this.oldTextWidth)&&((d=this.textPxLength)||(i(e,{width:"",whiteSpace:f||"nowrap"}),d=e.offsetWidth),d=d>g),d&&/[ \-]/.test(e.textContent||e.innerText)&&(i(e,{width:g+"px",display:"block",whiteSpace:f||"normal"}),this.oldTextWidth=g),m!==this.cTT&&(f=t.fontMetrics(e.style.fontSize).b,r(p)&&p!==(this.oldRotation||0)&&this.setSpanRotation(p,u,f),this.getSpanCorrection(!r(p)&&this.textPxLength||e.offsetWidth,f,u,p,c)),i(e,{left:s+(this.xCorr||0)+"px",top:l+(this.yCorr||0)+"px"}),this.cTT=m,this.oldRotation=p}}else this.alignOnAdd=!0},setSpanRotation:function(t,e,n){var r={},o=this.renderer.getTransformKey();r[o]=r.transform="rotate("+t+"deg)",r[o+(s?"Origin":"-origin")]=r.transformOrigin=100*e+"% "+n+"px",i(this.element,r)},getSpanCorrection:function(t,e,n){this.xCorr=-t*n,this.yCorr=-e}}),a(f.prototype,{getTransformKey:function(){return l&&!/Edge/.test(d.navigator.userAgent)?"-ms-transform":c?"-webkit-transform":s?"MozTransform":d.opera?"-o-transform":""},html:function(t,i,r){var s=this.createElement("span"),l=s.element,c=s.renderer,h=c.isSVG,f=function(t,e){o(["opacity","visibility"],function(n){p(t,n+"Setter",function(t,n,i,r){t.call(this,n,i,r),e[i]=n})}),t.addedSetters=!0};return s.textSetter=function(t){t!==l.innerHTML&&delete this.bBox,this.textStr=t,l.innerHTML=u(t,""),s.doTransform=!0},h&&f(s,s.element.style),s.xSetter=s.ySetter=s.alignSetter=s.rotationSetter=function(t,e){"align"===e&&(e="textAlign"),s[e]=t,s.doTransform=!0},s.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},s.attr({text:t,x:Math.round(i),y:Math.round(r)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:"absolute"}),l.style.whiteSpace="nowrap",s.css=s.htmlCss,h&&(s.add=function(t){var i,r=c.box.parentNode,u=[];if(this.parentGroup=t){if(!(i=t.div)){for(;t;)u.push(t),t=t.parentGroup;o(u.reverse(),function(t){function o(e,n){t[n]=e,"translateX"===n?l.left=e+"px":l.top=e+"px",t.doTransform=!0}var l,c=e(t.element,"class");c&&(c={className:c}),i=t.div=t.div||n("div",c,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,pointerEvents:t.styles&&t.styles.pointerEvents},i||r),l=i.style,a(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(i),on:function(){return u[0].div&&s.on.apply({element:u[0].div},arguments),t},translateXSetter:o,translateYSetter:o}),t.addedSetters||f(t,l)})}}else i=r;return i.appendChild(l),s.added=!0,s.alignOnAdd&&s.htmlUpdateTransform(),s}),s}})}(c),function(t){var e=t.defined,n=t.each,i=t.extend,r=t.merge,o=t.pick,a=t.timeUnits,s=t.win;t.Time=function(t){this.update(t,!1)},t.Time.prototype={defaultOptions:{},update:function(e){var n=o(e&&e.useUTC,!0),i=this;this.options=e=r(!0,this.options||{},e),this.Date=e.Date||s.Date,this.timezoneOffset=(this.useUTC=n)&&e.timezoneOffset,this.getTimezoneOffset=this.timezoneOffsetFunction(),(this.variableTimezone=!(n&&!e.getTimezoneOffset&&!e.timezone))||this.timezoneOffset?(this.get=function(t,e){var n=e.getTime(),r=n-i.getTimezoneOffset(e);return e.setTime(r),t=e["getUTC"+t](),e.setTime(n),t},this.set=function(e,n,r){var o;-1!==t.inArray(e,["Milliseconds","Seconds","Minutes"])?n["set"+e](r):(o=i.getTimezoneOffset(n),o=n.getTime()-o,n.setTime(o),n["setUTC"+e](r),e=i.getTimezoneOffset(n),o=n.getTime()+e,n.setTime(o))}):n?(this.get=function(t,e){return e["getUTC"+t]()},this.set=function(t,e,n){return e["setUTC"+t](n)}):(this.get=function(t,e){return e["get"+t]()},this.set=function(t,e,n){return e["set"+t](n)})},makeTime:function(e,n,i,r,a,s){var l,c,u;return this.useUTC?(l=this.Date.UTC.apply(0,arguments),l+=c=this.getTimezoneOffset(l),c!==(u=this.getTimezoneOffset(l))?l+=u-c:c-36e5!==this.getTimezoneOffset(l-36e5)||t.isSafari||(l-=36e5)):l=new this.Date(e,n,o(i,1),o(r,0),o(a,0),o(s,0)).getTime(),l},timezoneOffsetFunction:function(){var e=this,n=this.options,i=s.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t).getTimezoneOffset()};if(n.timezone){if(i)return function(t){return 6e4*-i.tz(t,n.timezone).utcOffset()};t.error(25)}return this.useUTC&&n.getTimezoneOffset?function(t){return 6e4*n.getTimezoneOffset(t)}:function(){return 6e4*(e.timezoneOffset||0)}},dateFormat:function(e,n,i){if(!t.defined(n)||isNaN(n))return t.defaultOptions.lang.invalidDate||"";e=t.pick(e,"%Y-%m-%d %H:%M:%S");var r=this,o=new this.Date(n),a=this.get("Hours",o),s=this.get("Day",o),l=this.get("Date",o),c=this.get("Month",o),u=this.get("FullYear",o),h=t.defaultOptions.lang,f=h.weekdays,d=h.shortWeekdays,p=t.pad;o=t.extend({a:d?d[s]:f[s].substr(0,3),A:f[s],d:p(l),e:p(l,2," "),w:s,b:h.shortMonths[c],B:h.months[c],m:p(c+1),y:u.toString().substr(2,2),Y:u,H:p(a),k:a,I:p(a%12||12),l:a%12||12,M:p(r.get("Minutes",o)),p:12>a?"AM":"PM",P:12>a?"am":"pm",S:p(o.getSeconds()),L:p(Math.round(n%1e3),3)},t.dateFormats);return t.objectEach(o,function(t,i){for(;-1!==e.indexOf("%"+i);)e=e.replace("%"+i,"function"===typeof t?t.call(r,n):t)}),i?e.substr(0,1).toUpperCase()+e.substr(1):e},getTimeTicks:function(t,r,s,l){var c,u,h=this,f=[],d={},p=new h.Date(r),g=t.unitRange,m=t.count||1;if(e(r)){h.set("Milliseconds",p,g>=a.second?0:m*Math.floor(h.get("Milliseconds",p)/m)),g>=a.second&&h.set("Seconds",p,g>=a.minute?0:m*Math.floor(h.get("Seconds",p)/m)),g>=a.minute&&h.set("Minutes",p,g>=a.hour?0:m*Math.floor(h.get("Minutes",p)/m)),g>=a.hour&&h.set("Hours",p,g>=a.day?0:m*Math.floor(h.get("Hours",p)/m)),g>=a.day&&h.set("Date",p,g>=a.month?1:m*Math.floor(h.get("Date",p)/m)),g>=a.month&&(h.set("Month",p,g>=a.year?0:m*Math.floor(h.get("Month",p)/m)),c=h.get("FullYear",p)),g>=a.year&&h.set("FullYear",p,c-c%m),g===a.week&&h.set("Date",p,h.get("Date",p)-h.get("Day",p)+o(l,1)),c=h.get("FullYear",p),l=h.get("Month",p);var v=h.get("Date",p),y=h.get("Hours",p);for(r=p.getTime(),h.variableTimezone&&(u=s-r>4*a.month||h.getTimezoneOffset(r)!==h.getTimezoneOffset(s)),p=p.getTime(),r=1;pf.length&&n(f,function(t){0===t%18e5&&"000000000"===h.dateFormat("%H%M%S%L",t)&&(d[t]="day")})}return f.info=i(t,{higherRanks:d,totalRange:g*m}),f}}}(c),function(t){var e=t.color,n=t.merge;t.defaultOptions={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:t.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:t.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",padding:8,snap:t.isTouchDevice?25:10,backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,headerFormat:'{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
',shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}},t.setOptions=function(e){return t.defaultOptions=n(!0,t.defaultOptions,e),t.time.update(n(t.defaultOptions.global,t.defaultOptions.time),!1),t.defaultOptions},t.getOptions=function(){return t.defaultOptions},t.defaultPlotOptions=t.defaultOptions.plotOptions,t.time=new t.Time(n(t.defaultOptions.global,t.defaultOptions.time)),t.dateFormat=function(e,n,i){return t.time.dateFormat(e,n,i)}}(c),function(t){var e=t.correctFloat,n=t.defined,i=t.destroyObjectProperties,r=t.fireEvent,o=t.isNumber,a=t.merge,s=t.pick,l=t.deg2rad;t.Tick=function(t,e,n,i){this.axis=t,this.pos=e,this.type=n||"",this.isNewLabel=this.isNew=!0,n||i||this.addLabel()},t.Tick.prototype={addLabel:function(){var t,i=this.axis,r=i.options,o=i.chart,l=i.categories,c=i.names,u=this.pos,h=r.labels,f=u===(p=i.tickPositions)[0],d=u===p[p.length-1],p=(c=l?s(l[u],c[u],u):u,l=this.label,p.info);i.isDatetimeAxis&&p&&(t=r.dateTimeLabelFormats[p.higherRanks[u]||p.unitName]),this.isFirst=f,this.isLast=d,r=i.labelFormatter.call({axis:i,chart:o,isFirst:f,isLast:d,dateTimeLabelFormat:t,value:i.isLog?e(i.lin2log(c)):c,pos:u}),n(l)?l&&l.attr({text:r}):((this.label=l=n(r)&&h.enabled?o.renderer.text(r,0,0,h.useHTML).css(a(h.style)).add(i.labelGroup):null)&&(l.textPxLength=l.getBBox().width),this.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(t){var e,n=this.axis,i=n.options.labels,r=t.x,o=n.chart.chartWidth,a=n.chart.spacing,c=s(n.labelLeft,Math.min(n.pos,a[3])),u=(a=s(n.labelRight,Math.max(n.isRadial?0:n.pos+n.len,o-a[1])),this.label),h=this.rotation,f={left:0,center:.5,right:1}[n.labelAlign||u.attr("align")],d=u.getBBox().width,p=n.getSlotWidth(),g=p,m=1,v={};h||!1===i.overflow?0>h&&r-f*da&&(e=Math.round((o-r)/Math.cos(h*l))):(o=r+(1-f)*d,r-f*da&&(g=a-t.x+g*f,m=-1),(g=Math.min(p,g))g||n.autoRotation&&(u.styles||{}).width)&&(e=g)),e&&(v.width=e,(i.style||{}).textOverflow||(v.textOverflow="ellipsis"),u.css(v))},getPosition:function(e,n,i,o){var a=this.axis,s=a.chart,l=o&&s.oldChartHeight||s.chartHeight;return e={x:e?t.correctFloat(a.translate(n+i,null,null,o)+a.transB):a.left+a.offset+(a.opposite?(o&&s.oldChartWidth||s.chartWidth)-a.right-a.left:0),y:e?l-a.bottom+a.offset-(a.opposite?a.height:0):t.correctFloat(l-a.translate(n+i,null,null,o)-a.transB)},r(this,"afterGetPosition",{pos:e}),e},getLabelPosition:function(t,e,i,o,a,s,c,u){var h=this.axis,f=h.transA,d=h.reversed,p=h.staggerLines,g=h.tickRotCorr||{x:0,y:0},m=a.y,v=o||h.reserveSpaceDefault?0:-h.labelOffset*("center"===h.labelAlign?.5:1),y={};return n(m)||(m=0===h.side?i.rotation?-8:-i.getBBox().height:2===h.side?g.y+8:Math.cos(i.rotation*l)*(g.y-i.getBBox(!1,0).height/2)),t=t+a.x+v+g.x-(s&&o?s*f*(d?-1:1):0),e=e+m-(s&&!o?s*f*(d?1:-1):0),p&&(i=c/(u||1)%p,h.opposite&&(i=p-i-1),e+=h.labelOffset/p*i),y.x=t,y.y=Math.round(e),r(this,"afterGetLabelPosition",{pos:y}),y},getMarkPath:function(t,e,n,i,r,o){return o.crispLine(["M",t,e,"L",t+(r?0:-n),e+(r?n:0)],i)},renderGridLine:function(t,e,n){var i=this.axis,r=i.options,o=this.gridLine,a={},s=this.pos,l=this.type,c=i.tickmarkOffset,u=i.chart.renderer,h=l?l+"Grid":"grid",f=r[h+"LineWidth"],d=r[h+"LineColor"];r=r[h+"LineDashStyle"];o||(a.stroke=d,a["stroke-width"]=f,r&&(a.dashstyle=r),l||(a.zIndex=1),t&&(a.opacity=0),this.gridLine=o=u.path().attr(a).addClass("highcharts-"+(l?l+"-":"")+"grid-line").add(i.gridGroup)),!t&&o&&(t=i.getPlotLinePath(s+c,o.strokeWidth()*n,t,!0))&&o[this.isNew?"attr":"animate"]({d:t,opacity:e})},renderMark:function(t,e,n){var i=this.axis,r=i.options,o=i.chart.renderer,a=this.type,l=a?a+"Tick":"tick",c=i.tickSize(l),u=this.mark,h=!u,f=t.x;t=t.y;var d=s(r[l+"Width"],!a&&i.isXAxis?1:0);r=r[l+"Color"];c&&(i.opposite&&(c[0]=-c[0]),h&&(this.mark=u=o.path().addClass("highcharts-"+(a?a+"-":"")+"tick").add(i.axisGroup),u.attr({stroke:r,"stroke-width":d})),u[h?"attr":"animate"]({d:this.getMarkPath(f,t,c[0],u.strokeWidth()*n,i.horiz,o),opacity:e}))},renderLabel:function(t,e,n,i){var r=(h=this.axis).horiz,a=h.options,l=this.label,c=a.labels,u=c.step,h=h.tickmarkOffset,f=!0,d=t.x;t=t.y,l&&o(d)&&(l.xy=t=this.getLabelPosition(d,t,l,r,c,h,i,u),this.isFirst&&!this.isLast&&!s(a.showFirstLabel,1)||this.isLast&&!this.isFirst&&!s(a.showLastLabel,1)?f=!1:!r||c.step||c.rotation||e||0===n||this.handleOverflow(t),u&&i%u&&(f=!1),f&&o(t.y)?(t.opacity=n,l[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(l.attr("y",-9999),this.isNewLabel=!0))},render:function(e,n,i){var r=(c=this.axis).horiz,o=this.getPosition(r,this.pos,c.tickmarkOffset,n),a=o.x,l=o.y,c=r&&a===c.pos+c.len||!r&&l===c.pos?-1:1;i=s(i,1),this.isActive=!0,this.renderGridLine(n,i,c),this.renderMark(o,i,c),this.renderLabel(o,n,i,e),this.isNew=!1,t.fireEvent(this,"afterRender")},destroy:function(){i(this,this.axis)}}}(c);var u=function(t){var e=t.addEvent,n=t.animObject,i=t.arrayMax,r=t.arrayMin,o=t.color,a=t.correctFloat,s=t.defaultOptions,l=t.defined,c=t.deg2rad,u=t.destroyObjectProperties,h=t.each,f=t.extend,d=t.fireEvent,p=t.format,g=t.getMagnitude,m=t.grep,v=t.inArray,y=t.isArray,b=t.isNumber,x=t.isString,w=t.merge,_=t.normalizeTickInterval,S=t.objectEach,k=t.pick,M=t.removeEvent,O=t.splat,T=t.syncTimeout,P=t.Tick,C=function(){this.init.apply(this,arguments)};return t.extend(C.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,labels:{enabled:!0,style:{color:"#666666",cursor:"default",fontSize:"11px"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle",style:{color:"#666666"}},type:"linear",minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",tickColor:"#ccd6eb"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return t.numberFormat(this.total,-1)},style:{fontSize:"11px",fontWeight:"bold",color:"#000000",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(t,n){var i=n.isX,r=this;r.chart=t,r.horiz=t.inverted&&!r.isZAxis?!i:i,r.isXAxis=i,r.coll=r.coll||(i?"xAxis":"yAxis"),d(this,"init",{userOptions:n}),r.opposite=n.opposite,r.side=n.side||(r.horiz?r.opposite?0:2:r.opposite?1:3),r.setOptions(n);var o=this.options,a=o.type;r.labelFormatter=o.labels.formatter||r.defaultLabelFormatter,r.userOptions=n,r.minPixelPadding=0,r.reversed=o.reversed,r.visible=!1!==o.visible,r.zoomEnabled=!1!==o.zoomEnabled,r.hasNames="category"===a||!0===o.categories,r.categories=o.categories||r.hasNames,r.names||(r.names=[],r.names.keys={}),r.plotLinesAndBandsGroups={},r.isLog="logarithmic"===a,r.isDatetimeAxis="datetime"===a,r.positiveValuesOnly=r.isLog&&!r.allowNegativeLog,r.isLinked=l(o.linkedTo),r.ticks={},r.labelEdge=[],r.minorTicks={},r.plotLinesAndBands=[],r.alternateBands={},r.len=0,r.minRange=r.userMinRange=o.minRange||o.maxZoom,r.range=o.range,r.offset=o.offset||0,r.stacks={},r.oldStacks={},r.stacksTouched=0,r.max=null,r.min=null,r.crosshair=k(o.crosshair,O(t.options.tooltip.crosshairs)[i?0:1],!1),n=r.options.events,-1===v(r,t.axes)&&(i?t.axes.splice(t.xAxis.length,0,r):t.axes.push(r),t[r.coll].push(r)),r.series=r.series||[],t.inverted&&!r.isZAxis&&i&&void 0===r.reversed&&(r.reversed=!0),S(n,function(t,n){e(r,n,t)}),r.lin2log=o.linearToLogConverter||r.lin2log,r.isLog&&(r.val2lin=r.log2lin,r.lin2val=r.lin2log),d(this,"afterInit")},setOptions:function(t){this.options=w(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],w(s[this.coll],t)),d(this,"afterSetOptions",{userOptions:t})},defaultLabelFormatter:function(){var e,n=this.axis,i=this.value,r=n.chart.time,o=n.categories,a=this.dateTimeLabelFormat,l=(c=s.lang).numericSymbols,c=c.numericSymbolMagnitude||1e3,u=l&&l.length,h=n.options.labels.format;n=n.isLog?Math.abs(i):n.tickInterval;if(h)e=p(h,this,r);else if(o)e=i;else if(a)e=r.dateFormat(a,i);else if(u&&1e3<=n)for(;u--&&void 0===e;)n>=(r=Math.pow(c,u+1))&&0===10*i%r&&null!==l[u]&&0!==i&&(e=t.numberFormat(i/r,-1)+l[u]);return void 0===e&&(e=1e4<=Math.abs(i)?t.numberFormat(i,-1):t.numberFormat(i,-1,void 0,"")),e},getSeriesExtremes:function(){var t=this,e=t.chart;d(this,"getSeriesExtremes",null,function(){t.hasVisibleSeries=!1,t.dataMin=t.dataMax=t.threshold=null,t.softThreshold=!t.isXAxis,t.buildStacks&&t.buildStacks(),h(t.series,function(n){if(n.visible||!e.options.chart.ignoreHiddenSeries){var o,a=n.options,s=a.threshold;t.hasVisibleSeries=!0,t.positiveValuesOnly&&0>=s&&(s=null),t.isXAxis?(a=n.xData).length&&(n=r(a),o=i(a),b(n)||n instanceof Date||(a=m(a,b),n=r(a),o=i(a)),a.length&&(t.dataMin=Math.min(k(t.dataMin,a[0],n),n),t.dataMax=Math.max(k(t.dataMax,a[0],o),o))):(n.getExtremes(),o=n.dataMax,n=n.dataMin,l(n)&&l(o)&&(t.dataMin=Math.min(k(t.dataMin,n),n),t.dataMax=Math.max(k(t.dataMax,o),o)),l(s)&&(t.threshold=s),(!a.softThreshold||t.positiveValuesOnly)&&(t.softThreshold=!1))}})}),d(this,"afterGetSeriesExtremes")},translate:function(t,e,n,i,r,o){var a=this.linkedParent||this,s=1,l=0,c=i?a.oldTransA:a.transA;i=i?a.oldMin:a.min;var u=a.minPixelPadding;return r=(a.isOrdinal||a.isBroken||a.isLog&&r)&&a.lin2val,c||(c=a.transA),n&&(s*=-1,l=a.len),a.reversed&&(l-=(s*=-1)*(a.sector||a.len)),e?(t=(t*s+l-u)/c+i,r&&(t=a.lin2val(t))):(r&&(t=a.val2lin(t)),t=b(i)?s*(t-i)*c+l+s*u+(b(o)?c*o:0):void 0),t},toPixels:function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},toValue:function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(t,e,n,i,r){var o,a,s,l=this.chart,c=this.left,u=this.top,h=n&&l.oldChartHeight||l.chartHeight,f=n&&l.oldChartWidth||l.chartWidth;o=this.transB;var d=function(t,e,n){return(tn)&&(i?t=Math.min(Math.max(e,t),n):s=!0),t};return r=k(r,this.translate(t,null,null,n)),r=Math.min(Math.max(-1e5,r),1e5),t=n=Math.round(r+o),o=a=Math.round(h-r-o),b(r)?this.horiz?(o=u,a=h-this.bottom,t=n=d(t,c,c+this.width)):(t=c,n=f-this.right,o=a=d(o,u,u+this.height)):(s=!0,i=!1),s&&!i?null:l.renderer.crispLine(["M",t,o,"L",n,a],e||1)},getLinearTickPositions:function(t,e,n){var i,r=a(Math.floor(e/t)*t);n=a(Math.ceil(n/t)*t);var o,s=[];if(a(r+t)===r&&(o=20),this.single)return[e];for(e=r;e<=n&&(s.push(e),(e=a(e+t,o))!==i);)i=e;return s},getMinorTickInterval:function(){var t=this.options;return!0===t.minorTicks?k(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},getMinorTickPositions:function(){var t=this,e=t.options,n=t.tickPositions,i=t.minorTickInterval,r=[],o=t.pointRangePadding||0,a=t.min-o,s=(o=t.max+o)-a;if(s&&s/i=this.minRange,t=[f-(t=((c=this.minRange)-d+f)/2),k(u.min,f-t)],e&&(t[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=[(f=i(t))+c,k(u.max,f+c)],e&&(d[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),(d=r(d))-f=O?(n=O,x=0):s.dataMax<=O&&(i=O,y=0)),s.min=k(r,n,s.dataMin),s.max=k(o,i,s.dataMax)),f&&(s.positiveValuesOnly&&!e&&0>=Math.min(s.min,k(s.dataMin,s.min))&&t.error(10,1),s.min=a(s.log2lin(s.min),15),s.max=a(s.log2lin(s.max),15)),s.range&&l(s.max)&&(s.userMin=s.min=r=Math.max(s.dataMin,s.minFromRange()),s.userMax=o=s.max,s.range=null),d(s,"foundExtremes"),s.beforePadding&&s.beforePadding(),s.adjustForMinRange(),!(M||s.axisPointRange||s.usePercentage||v)&&l(s.min)&&l(s.max)&&(c=s.max-s.min)&&(!l(r)&&x&&(s.min-=c*x),!l(o)&&y&&(s.max+=c*y)),b(u.softMin)&&!b(s.userMin)&&(s.min=Math.min(s.min,u.softMin)),b(u.softMax)&&!b(s.userMax)&&(s.max=Math.max(s.max,u.softMax)),b(u.floor)&&(s.min=Math.max(s.min,u.floor)),b(u.ceiling)&&(s.max=Math.min(s.max,u.ceiling)),T&&l(s.dataMin)&&(O=O||0,!l(r)&&s.min=O?s.min=O:!l(o)&&s.max>O&&s.dataMax<=O&&(s.max=O)),s.tickInterval=s.min===s.max||void 0===s.min||void 0===s.max?1:v&&!w&&S===s.linkedParent.options.tickPixelInterval?w=s.linkedParent.tickInterval:k(w,this.tickAmount?(s.max-s.min)/Math.max(this.tickAmount-1,1):void 0,M?1:(s.max-s.min)*S/Math.max(s.len,S)),m&&!e&&h(s.series,function(t){t.processData(s.min!==s.oldMin||s.max!==s.oldMax)}),s.setAxisTranslation(!0),s.beforeSetTickPositions&&s.beforeSetTickPositions(),s.postProcessTickInterval&&(s.tickInterval=s.postProcessTickInterval(s.tickInterval)),s.pointRange&&!w&&(s.tickInterval=Math.max(s.pointRange,s.tickInterval)),e=k(u.minTickInterval,s.isDatetimeAxis&&s.closestPointRange),!w&&s.tickIntervals.tickInterval&&1e3s.max)),!!this.tickAmount)),this.tickAmount||(s.tickInterval=s.unsquish()),this.setTickPositions()},setTickPositions:function(){var t,e=this.options,n=e.tickPositions;t=this.getMinorTickInterval();var i=e.tickPositioner,r=e.startOnTick,o=e.endOnTick;this.tickmarkOffset=this.categories&&"between"===e.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===t&&this.tickInterval?this.tickInterval/5:t,this.single=this.min===this.max&&l(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==e.allowDecimals),this.tickPositions=t=n&&n.slice(),!t&&((t=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max)).length>this.len&&((t=[t[0],t.pop()])[0]===t[1]&&(t.length=1)),this.tickPositions=t,i&&(i=i.apply(this,[this.min,this.max])))&&(this.tickPositions=t=i),this.paddedTicks=t.slice(0),this.trimTicks(t,r,o),this.isLinked||(this.single&&2>t.length&&(this.min-=.5,this.max+=.5),n||i||this.adjustTickAmount()),d(this,"afterSetTickPositions")},trimTicks:function(t,e,n){var i=t[0],r=t[t.length-1],o=this.minPointOffset||0;if(!this.isLinked){if(e&&-1/0!==i)this.min=i;else for(;this.min-o>t[0];)t.shift();if(n)this.max=r;else for(;this.max+oe&&(this.finalTickAmt=e,e=5),this.tickAmount=e},adjustTickAmount:function(){var t=this.tickInterval,e=this.tickPositions,n=this.tickAmount,i=this.finalTickAmt,r=e&&e.length,o=k(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(rn&&(this.tickInterval*=2,this.setTickPositions());if(l(i)){for(t=n=e.length;t--;)(3===i&&1===t%2||2>=i&&0r&&(t=r)),l(i)&&(er&&(e=r))),this.displayBtn=void 0!==t||void 0!==e,this.setExtremes(t,e,!1,void 0,{trigger:"zoom"})),!0},setAxisSize:function(){var e=this.chart,n=(s=this.options).offsets||[0,0,0,0],i=this.horiz,r=this.width=Math.round(t.relativeLength(k(s.width,e.plotWidth-n[3]+n[1]),e.plotWidth)),o=this.height=Math.round(t.relativeLength(k(s.height,e.plotHeight-n[0]+n[2]),e.plotHeight)),a=this.top=Math.round(t.relativeLength(k(s.top,e.plotTop+n[0]),e.plotHeight,e.plotTop)),s=this.left=Math.round(t.relativeLength(k(s.left,e.plotLeft+n[3]),e.plotWidth,e.plotLeft));this.bottom=e.chartHeight-o-a,this.right=e.chartWidth-r-s,this.len=Math.max(i?r:o,0),this.pos=i?s:a},getExtremes:function(){var t=this.isLog;return{min:t?a(this.lin2log(this.min)):this.min,max:t?a(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(t){var e=(n=this.isLog)?this.lin2log(this.min):this.min,n=n?this.lin2log(this.max):this.max;return null===t||-1/0===t?t=e:1/0===t?t=n:e>t?t=e:nt?"right":195t?"left":"center"},tickSize:function(t){var e=this.options,n=e[t+"Length"],i=k(e[t+"Width"],"tick"===t&&this.isXAxis?1:0);if(i&&n)return"inside"===e[t+"Position"]&&(n=-n),[n,i]},labelMetrics:function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},unsquish:function(){var t,e,n,i=this.options.labels,r=this.horiz,o=this.tickInterval,s=o,u=this.len/(((this.categories?1:0)+this.max-this.min)/o),f=i.rotation,d=this.labelMetrics(),p=Number.MAX_VALUE,g=function(t){return t=1<(t/=u||1)?Math.ceil(t):1,a(t*o)};return r?(n=!i.staggerLines&&!i.step&&(l(f)?[f]:u=n)&&((i=(e=g(Math.abs(d.h/Math.sin(c*n))))+Math.abs(n/360))(n.step||0)&&!n.rotation&&(this.staggerLines||1)*this.len/i||!e&&(n.style&&parseInt(n.style.width,10)||r&&r-t.spacing[3]||.33*t.chartWidth)},renderUnsquish:function(){var t,e,n,i=this.chart,r=i.renderer,o=this.tickPositions,a=this.ticks,s=this.options.labels,l=this.horiz,c=this.getSlotWidth(),u=Math.max(1,Math.round(c-2*(s.padding||5))),f={},d=this.labelMetrics(),p=s.style&&s.style.textOverflow,g=0;if(x(s.rotation)||(f.rotation=s.rotation||0),h(o,function(t){(t=a[t])&&t.label&&t.label.textPxLength>g&&(g=t.label.textPxLength)}),this.maxLabelLength=g,this.autoRotation)g>u&&g>d.h?f.rotation=this.labelRotation:this.labelRotation=0;else if(c&&(t=u,!p))for(e="clip",u=o.length;!l&&u--;)n=o[u],(n=a[n].label)&&(n.styles&&"ellipsis"===n.styles.textOverflow?n.css({textOverflow:"clip"}):n.textPxLength>c&&n.css({width:c+"px"}),n.getBBox().height>this.len/o.length-(d.h-d.f)&&(n.specificTextOverflow="ellipsis"));f.rotation&&(t=g>.5*i.chartHeight?.33*i.chartHeight:i.chartHeight,p||(e="ellipsis")),(this.labelAlign=s.align||this.autoLabelAlign(this.labelRotation))&&(f.align=this.labelAlign),h(o,function(n){var i=(n=a[n])&&n.label,r={};i&&(i.attr(f),!t||s.style&&s.style.width||!(t=this.min&&t<=this.max)&&(i[t]||(i[t]=new P(this,t)),r&&i[t].isNew&&i[t].render(e,!0,.1),i[t].render(e))},render:function(){var e,i,r=this,o=r.chart,a=r.options,s=r.isLog,l=r.isLinked,c=r.tickPositions,u=r.axisTitle,f=r.ticks,p=r.minorTicks,g=r.alternateBands,m=a.stackLabels,v=a.alternateGridColor,y=r.tickmarkOffset,x=r.axisLine,w=r.showAxis,_=n(o.renderer.globalAnimation);r.labelEdge.length=0,r.overlap=!1,h([f,p,g],function(t){S(t,function(t){t.isActive=!1})}),(r.hasData()||l)&&(r.minorTickInterval&&!r.categories&&h(r.getMinorTickPositions(),function(t){r.renderMinorTick(t)}),c.length&&(h(c,function(t,e){r.renderTick(t,e)}),y&&(0===r.min||r.single)&&(f[-1]||(f[-1]=new P(r,-1,null,!0)),f[-1].render(-1))),v&&h(c,function(n,a){i=void 0!==c[a+1]?c[a+1]+y:r.max-y,0===a%2&&ne&&(!s||p<=a)&&void 0!==p&&u.push(p),p>a&&(g=!0),p=d}else e=this.lin2log(e),a=this.lin2log(a),t=s?this.getMinorTickInterval():l.tickInterval,t=o("auto"===t?null:t,this._minorAutoInterval,l.tickPixelInterval/(s?5:1)*(a-e)/((s?c/this.tickPositions.length:c)||1)),t=r(t,null,n(t)),u=i(this.getLinearTickPositions(t,e,a),this.log2lin),s||(this._minorAutoInterval=t/5);return s||(this.tickInterval=t),u},e.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},e.prototype.lin2log=function(t){return Math.pow(10,t)}}(c),function(t,e){var n=t.arrayMax,i=t.arrayMin,r=t.defined,o=t.destroyObjectProperties,a=t.each,s=t.erase,l=t.merge,c=t.pick;t.PlotLineOrBand=function(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)},t.PlotLineOrBand.prototype={render:function(){var e=this,n=e.axis,i=n.horiz,o=e.options,a=o.label,s=e.label,u=o.to,h=o.from,f=o.value,d=r(h)&&r(u),p=r(f),g=e.svgElem,m=!g,v=[],y=o.color,b=c(o.zIndex,0),x=o.events,w=(v={class:"highcharts-plot-"+(d?"band ":"line ")+(o.className||"")},{}),_=n.chart.renderer,S=d?"bands":"lines";if(n.isLog&&(h=n.log2lin(h),u=n.log2lin(u),f=n.log2lin(f)),p?(v={stroke:y,"stroke-width":o.width},o.dashStyle&&(v.dashstyle=o.dashStyle)):d&&(y&&(v.fill=y),o.borderWidth&&(v.stroke=o.borderColor,v["stroke-width"]=o.borderWidth)),w.zIndex=b,S+="-"+b,(y=n.plotLinesAndBandsGroups[S])||(n.plotLinesAndBandsGroups[S]=y=_.g("plot-"+S).attr(w).add()),m&&(e.svgElem=g=_.path().attr(v).add(y)),p)v=n.getPlotLinePath(f,g.strokeWidth());else{if(!d)return;v=n.getPlotBandPath(h,u,o)}return m&&v&&v.length?(g.attr({d:v}),x&&t.objectEach(x,function(t,n){g.on(n,function(t){x[n].apply(e,[t])})})):g&&(v?(g.show(),g.animate({d:v})):(g.hide(),s&&(e.label=s=s.destroy()))),a&&r(a.text)&&v&&v.length&&0this.max&&e>this.max,r&&i)for(t&&(n=r.toString()===i.toString(),s=0),t=0;tf-l?f:f-l);else{if(!u)return!1;a[t]=Math.max(r,i+l+n>e?i:i+l)}}.apply(0,c)?!1!==function(t,e,n,i){var r;return ie-o?r=!1:a[t]=ie-n/2?e-n-2:i-n/2,r}.apply(0,u)||i||(f(!0),d()):i?a.x=a.y=0:(f(!0),d())};return(r.inverted||1p&&(c=!1),t=(e.series&&e.series.yAxis&&e.series.yAxis.pos)+(e.plotY||0),t-=a.plotTop,o.push({target:e.isHeader?a.plotHeight+h:t,rank:e.isHeader?1:0,size:n.tt.getBBox().height+1,point:e,x:p,tt:d})}}),this.cleanSplit(),t.distribute(o,a.plotHeight+h),e(o,function(t){var e=t.point,n=e.series;t.tt.attr({visibility:void 0===t.pos?"hidden":"inherit",x:c||e.isHeader?t.x:e.plotX+a.plotLeft+s(u.distance,16),y:t.pos+a.plotTop,anchorX:e.isHeader?e.plotX+a.plotLeft:e.plotX+n.xAxis.pos,anchorY:e.isHeader?t.pos+a.plotTop-15:e.plotY+n.yAxis.pos})})},updatePosition:function(t){var e=this.chart,n=this.getLabel();n=(this.options.positioner||this.getPosition).call(this,n.width,n.height,t);this.move(Math.round(n.x),Math.round(n.y||0),t.plotX+e.plotLeft,t.plotY+e.plotTop)},getDateFormat:function(t,e,n,i){var r,o,a=this.chart.time,s=a.dateFormat("%m-%d %H:%M:%S.%L",e),l={millisecond:15,second:12,minute:9,hour:6,day:3},c="millisecond";for(o in u){if(t===u.week&&+a.dateFormat("%w",e)===n&&"00:00:00.000"===s.substr(6)){o="week";break}if(u[o]>t){o=c;break}if(l[o]&&s.substr(l[o])!=="01-01 00:00:00.000".substr(l[o]))break;"week"!==o&&(c=o)}return o&&(r=i[o]),r},getXDateFormat:function(t,e,n){e=e.dateTimeLabelFormats;var i=n&&n.closestPointRange;return(i?this.getDateFormat(i,t.x,n.options.startOfWeek,e):e.day)||e.year},tooltipFooterHeaderFormatter:function(t,n){n=n?"footer":"header";var o=t.series,a=o.tooltipOptions,s=a.xDateFormat,l=o.xAxis,c=l&&"datetime"===l.options.type&&r(t.key),u=a[n+"Format"];return c&&!s&&(s=this.getXDateFormat(t,a,l)),c&&s&&e(t.point&&t.point.tooltipDateKeys||["key"],function(t){u=u.replace("{point."+t+"}","{point."+t+":"+s+"}")}),i(u,{point:t,series:o},this.chart.time)},bodyFormatter:function(t){return o(t,function(t){var e=t.series.tooltipOptions;return(e[(t.point.formatPrefix||"point")+"Formatter"]||t.point.tooltipFormatter).call(t.point,e[(t.point.formatPrefix||"point")+"Format"])})}}}(c),function(t){var e=t.addEvent,n=t.attr,i=t.charts,r=t.color,o=t.css,a=t.defined,s=t.each,l=t.extend,c=t.find,u=t.fireEvent,h=t.isNumber,f=t.isObject,d=t.offset,p=t.pick,g=t.splat,m=t.Tooltip;t.Pointer=function(t,e){this.init(t,e)},t.Pointer.prototype={init:function(t,e){this.options=e,this.chart=t,this.runChartClick=e.chart.events&&!!e.chart.events.click,this.pinchDown=[],this.lastValidTouch={},m&&(t.tooltip=new m(t,e.tooltip),this.followTouchMove=p(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},zoomOption:function(t){var e=(i=this.chart).options.chart,n=e.zoomType||"",i=i.inverted;/touch/.test(t.type)&&(n=p(e.pinchType,n)),this.zoomX=t=/x/.test(n),this.zoomY=n=/y/.test(n),this.zoomHor=t&&!i||n&&i,this.zoomVert=n&&!i||t&&i,this.hasZoom=t||n},normalize:function(t,e){var n;return n=t.touches?t.touches.length?t.touches.item(0):t.changedTouches[0]:t,e||(this.chartPosition=e=d(this.chart.container)),l(t,{chartX:Math.round(n.pageX-e.left),chartY:Math.round(n.pageY-e.top)})},getCoordinates:function(t){var e={xAxis:[],yAxis:[]};return s(this.chart.axes,function(n){e[n.isXAxis?"xAxis":"yAxis"].push({axis:n,value:n.toValue(t[n.horiz?"chartX":"chartY"])})}),e},findNearestKDPoint:function(t,e,n){var i;return s(t,function(t){var r=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(n,r),(r=f(t,!0))&&!(r=!f(i,!0))){r=i.distX-t.distX;var o=i.dist-t.dist,a=(t.series.group&&t.series.group.zIndex)-(i.series.group&&i.series.group.zIndex);r=0<(0!==r&&e?r:0!==o?o:0!==a?a:i.series.index>t.series.index?-1:1)}r&&(i=t)}),i},getPointFromEvent:function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},getChartCoordinatesFromPoint:function(t,e){var n=(i=t.series).xAxis,i=i.yAxis,r=p(t.clientX,t.plotX),o=t.shapeArgs;return n&&i?e?{chartX:n.len+n.pos-r,chartY:i.len+i.pos-t.plotY}:{chartX:r+n.pos,chartY:t.plotY+i.pos}:o&&o.x&&o.y?{chartX:o.x,chartY:o.y}:void 0},getHoverData:function(e,n,i,r,o,a,l){var u,h=[],d=l&&l.isBoosting;return r=!(!r||!e),l=n&&!n.stickyTracking?[n]:t.grep(i,function(t){return t.visible&&!(!o&&t.directTouch)&&p(t.options.enableMouseTracking,!0)&&t.stickyTracking}),n=(u=r?e:this.findNearestKDPoint(l,o,a))&&u.series,u&&(o&&!n.noSharedTooltip?(l=t.grep(i,function(t){return t.visible&&!(!o&&t.directTouch)&&p(t.options.enableMouseTracking,!0)&&!t.noSharedTooltip}),s(l,function(t){var e=c(t.points,function(t){return t.x===u.x&&!t.isNull});f(e)&&(d&&(e=t.getPoint(e)),h.push(e))})):h.push(u)),{hoverPoint:u,hoverSeries:n,hoverPoints:h}},runPointActions:function(n,r){var o,a=this.chart,l=a.tooltip&&a.tooltip.options.enabled?a.tooltip:void 0,c=!!l&&l.shared,u=(h=r||a.hoverPoint)&&h.series||a.hoverSeries,h=(u=this.getHoverData(h,u,a.series,!!r||u&&u.directTouch&&this.isDirectTouch,c,n,{isBoosting:a.isBoosting})).hoverPoint;if(o=u.hoverPoints,r=(u=u.hoverSeries)&&u.tooltipOptions.followPointer,c=c&&u&&!u.noSharedTooltip,h&&(h!==a.hoverPoint||l&&l.isHidden)){if(s(a.hoverPoints||[],function(e){-1===t.inArray(e,o)&&e.setState()}),s(o||[],function(t){t.setState("hover")}),a.hoverSeries!==u&&u.onMouseOver(),a.hoverPoint&&a.hoverPoint.firePointEvent("mouseOut"),!h.series)return;h.firePointEvent("mouseOver"),a.hoverPoints=o,a.hoverPoint=h,l&&l.refresh(c?o:h,n)}else r&&l&&!l.isHidden&&(h=l.getAnchor([{}],n),l.updatePosition({plotX:h[0],plotY:h[1]}));this.unDocMouseMove||(this.unDocMouseMove=e(a.container.ownerDocument,"mousemove",function(e){var n=i[t.hoverChartIndex];n&&n.pointer.onDocumentMouseMove(e)})),s(a.axes,function(e){var i=p(e.crosshair.snap,!0),r=i?t.find(o,function(t){return t.series[e.coll]===e}):void 0;r||!i?e.drawCrosshair(n,r):e.hideCrosshair()})},reset:function(t,e){var n=this.chart,i=n.hoverSeries,r=n.hoverPoint,o=n.hoverPoints,a=n.tooltip,l=a&&a.shared?o:r;t&&l&&s(g(l),function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?a&&l&&(a.refresh(l),r&&(r.setState(r.state,!0),s(n.axes,function(t){t.crosshair&&t.drawCrosshair(null,r)}))):(r&&r.onMouseOut(),o&&s(o,function(t){t.setState()}),i&&i.onMouseOut(),a&&a.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),s(n.axes,function(t){t.hideCrosshair()}),this.hoverX=n.hoverPoints=n.hoverPoint=null)},scaleGroups:function(t,e){var n,i=this.chart;s(i.series,function(r){n=t||r.getPlotBox(),r.xAxis&&r.xAxis.zoomEnabled&&r.group&&(r.group.attr(n),r.markerGroup&&(r.markerGroup.attr(n),r.markerGroup.clip(e?i.clipRect:null)),r.dataLabelsGroup&&r.dataLabelsGroup.attr(n))}),i.clipRect.attr(e||i.clipBox)},dragStart:function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},drag:function(t){var e,n=this.chart,i=n.options.chart,o=t.chartX,a=t.chartY,s=this.zoomHor,l=this.zoomVert,c=n.plotLeft,u=n.plotTop,h=n.plotWidth,f=n.plotHeight,d=this.selectionMarker,p=this.mouseDownX,g=this.mouseDownY,m=i.panKey&&t[i.panKey+"Key"];d&&d.touch||(oc+h&&(o=c+h),au+f&&(a=u+f),this.hasDragged=Math.sqrt(Math.pow(p-o,2)+Math.pow(g-a,2)),10b.max&&(e=b.max-l,u=!0),u?(_-=.8*(_-a[f][0]),x||(k-=.8*(k-a[f][1])),n()):a[f]=[_,k],y||(o[f]=c-m,o[g]=l),o=y?1/v:v,r[g]=l,r[f]=e,i[y?t?"scaleY":"scaleX":"scale"+d]=v,i["translate"+d]=o*m+(_-o*w)},pinch:function(t){var e=this,s=e.chart,l=e.pinchDown,c=t.touches,u=c.length,h=e.lastValidTouch,f=e.hasZoom,d=e.selectionMarker,p={},g=1===u&&(e.inClass(t.target,"highcharts-tracker")&&s.runTrackerClick||e.runChartClick),m={};1t-6&&ac?this.maxItemWidth:t.itemWidth;i&&this.itemX-n+e>c&&(this.itemX=n,this.itemY+=a+this.lastLineHeight+o,this.lastLineHeight=0),this.lastItemY=a+this.itemY+o,this.lastLineHeight=Math.max(r,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],i?this.itemX+=e:(this.itemY+=a+r+o,this.lastLineHeight=r),this.offsetWidth=l||Math.max((i?this.itemX-n-(t.checkbox?0:s):e)+n,this.offsetWidth)},getAllItems:function(){var t=[];return o(this.chart.series,function(e){var n=e&&e.options;e&&u(n.showInLegend,!r(n.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===n.legendType?e.data:e)))}),a(this,"afterGetAllItems",{allItems:t}),t},getAlignment:function(){var t=this.options;return t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},adjustMargins:function(t,e){var n=this.chart,i=this.options,a=this.getAlignment();a&&o([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(o,s){o.test(a)&&!r(t[s])&&(n[l[s]]=Math.max(n[l[s]],n.legend[(s+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][s]*i[s%2?"x":"y"]+u(i.margin,12)+e[s]+(0===s&&void 0!==n.options.title.margin?n.titleOffset+n.options.title.margin:0)))})},render:function(){var t,e,n,i,r=this.chart,a=r.renderer,s=this.group,l=this.box,u=this.options,h=this.padding;this.itemX=h,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,s||(this.group=s=a.g("legend").attr({zIndex:7}).add(),this.contentGroup=a.g().attr({zIndex:1}).add(s),this.scrollGroup=a.g().add(this.contentGroup)),this.renderTitle(),t=this.getAllItems(),f(t,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),u.reversed&&t.reverse(),this.allItems=t,this.display=e=!!t.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,o(t,this.renderItem,this),o(t,this.layoutItem,this),n=(u.width||this.offsetWidth)+h,i=this.lastItemY+this.lastLineHeight+this.titleHeight,i=this.handleOverflow(i),i+=h,l||(this.box=l=a.rect().addClass("highcharts-legend-box").attr({r:u.borderRadius}).add(s),l.isNew=!0),l.attr({stroke:u.borderColor,"stroke-width":u.borderWidth||0,fill:u.backgroundColor||"none"}).shadow(u.shadow),0c&&!1!==f.enabled?(this.clipHeight=e=Math.max(c-20-this.titleHeight-l,0),this.currentPage=u(this.currentPage,1),this.fullHeight=t,o(v,function(t,i){var r=t._legendItemPos[1],o=Math.round(t.legendItem.getBBox().height),a=m.length;(!a||r-m[a-1]>e&&(n||r)!==m[a-1])&&(m.push(n||r),a++),t.pageIx=a-1,n&&(v[i-1].pageIx=a-1),i===v.length-1&&r+o-m[a-1]>e&&(m.push(r),t.pageIx=a),r!==n&&(n=r)}),h||(h=i.clipRect=r.clipRect(0,l,9999,0),i.contentGroup.clip(h)),y(e),g||(this.nav=g=r.g().attr({zIndex:1}).add(this.group),this.up=r.symbol("triangle",0,0,p,p).on("click",function(){i.scroll(-1,d)}).add(g),this.pager=r.text("",15,10).addClass("highcharts-legend-navigation").css(f.style).add(g),this.down=r.symbol("triangle-down",0,0,p,p).on("click",function(){i.scroll(1,d)}).add(g)),i.scroll(0),t=c):g&&(y(),this.nav=g.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},scroll:function(t,e){var n=this.pages,i=n.length;t=this.currentPage+t;var r=this.clipHeight,o=this.options.navigation,a=this.pager,s=this.padding;t>i&&(t=i),0a&&("string"===(i=typeof e[0])?n.name=e[0]:"number"===i&&(n.x=e[0]),c++);u=t.value;)t=e[++i];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor,t},destroy:function(){var t,e=this.series.chart,n=e.hoverPoints;for(t in e.pointCount--,n&&(this.setState(),r(n,this),n.length||(e.hoverPoints=null)),this===e.hoverPoint&&this.onMouseOut(),(this.graphic||this.dataLabel)&&(u(this),this.destroyElements()),this.legendItem&&e.legend.destroyItem(this),this)this[t]=null},destroyElements:function(){for(var t,e=["graphic","dataLabel","dataLabelUpper","connector","shadowGroup"],n=6;n--;)this[t=e[n]]&&(this[t]=this[t].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(t){var e=this.series,i=e.tooltipOptions,r=c(i.valueDecimals,""),o=i.valuePrefix||"",s=i.valueSuffix||"";return n(e.pointArrayMap||["y"],function(e){e="{point."+e,(o||s)&&(t=t.replace(RegExp(e+"}","g"),o+e+"}"+s)),t=t.replace(RegExp(e+"}","g"),e+":,."+r+"f}")}),a(t,{point:this,series:this.series},e.chart.time)},firePointEvent:function(t,e,n){var i=this,r=this.series.options;(r.point.events[t]||i.options&&i.options.events&&i.options.events[t])&&this.importEvents(),"click"===t&&r.allowPointSelect&&(n=function(t){i.select&&i.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),o(this,t,e,n)},visible:!0}}(c),function(t){var e=t.addEvent,n=t.animObject,i=t.arrayMax,r=t.arrayMin,o=t.correctFloat,a=t.defaultOptions,s=t.defaultPlotOptions,l=t.defined,c=t.each,u=t.erase,h=t.extend,f=t.fireEvent,d=t.grep,p=t.isArray,g=t.isNumber,m=t.isString,v=t.merge,y=t.objectEach,b=t.pick,x=t.removeEvent,w=t.splat,_=t.SVGElement,S=t.syncTimeout,k=t.win;t.Series=t.seriesType("line",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{lineWidth:0,lineColor:"#ffffff",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":t.numberFormat(this.y,-1)},style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},{isCartesian:!0,pointClass:t.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:["xAxis","yAxis"],colorCounter:0,parallelArrays:["x","y"],coll:"series",init:function(t,n){var i,r,o=this,a=t.series;o.chart=t,o.options=n=o.setOptions(n),o.linkedSeries=[],o.bindAxes(),h(o,{name:n.name,state:"",visible:!1!==n.visible,selected:!0===n.selected}),i=n.events,y(i,function(t,n){e(o,n,t)}),(i&&i.click||n.point&&n.point.events&&n.point.events.click||n.allowPointSelect)&&(t.runTrackerClick=!0),o.getColor(),o.getSymbol(),c(o.parallelArrays,function(t){o[t+"Data"]=[]}),o.setData(n.data,!1),o.isCartesian&&(t.hasCartesianSeries=!0),a.length&&(r=a[a.length-1]),o._i=b(r&&r._i,-1)+1,t.orderSeries(this.insert(a)),f(this,"afterInit")},insert:function(t){var e,n=this.options.index;if(g(n)){for(e=t.length;e--;)if(n>=b(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return b(e,t.length-1)},bindAxes:function(){var e,n=this,i=n.options,r=n.chart;c(n.axisTypes||[],function(o){c(r[o],function(t){e=t.options,(i[o]===e.index||void 0!==i[o]&&i[o]===e.id||void 0===i[o]&&0===e.index)&&(n.insert(t.series),n[o]=t,t.isDirty=!0)}),n[o]||n.optionalAxis===o||t.error(18,!0)})},updateParallelArrays:function(t,e){var n=t.series,i=arguments,r=g(e)?function(i){var r="y"===i&&n.toYData?n.toYData(t):t[i];n[i+"Data"][e]=r}:function(t){Array.prototype[e].apply(n[t+"Data"],Array.prototype.slice.call(i,2))};c(n.parallelArrays,r)},autoIncrement:function(){var t,e=this.options,n=this.xIncrement,i=e.pointIntervalUnit,r=this.chart.time;n=b(n,e.pointStart,0);return this.pointInterval=t=b(this.pointInterval,e.pointInterval,1),i&&(e=new r.Date(n),"day"===i?r.set("Date",e,r.get("Date",e)+t):"month"===i?r.set("Month",e,r.get("Month",e)+t):"year"===i&&r.set("FullYear",e,r.get("FullYear",e)+t),t=e.getTime()-n),this.xIncrement=n+t,n},setOptions:function(t){var e=this.chart,n=e.options,i=n.plotOptions,r=(e.userOptions||{}).plotOptions||{},o=i[this.type];return this.userOptions=t,e=v(o,i.series,t),this.tooltipOptions=v(a.tooltip,a.plotOptions.series&&a.plotOptions.series.tooltip,a.plotOptions[this.type].tooltip,n.tooltip.userOptions,i.series&&i.series.tooltip,i[this.type].tooltip,t.tooltip),this.stickyTracking=b(t.stickyTracking,r[this.type]&&r[this.type].stickyTracking,r.series&&r.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||e.stickyTracking),null===o.marker&&delete e.marker,this.zoneAxis=e.zoneAxis,t=this.zones=(e.zones||[]).slice(),!e.negativeColor&&!e.negativeFillColor||e.zones||t.push({value:e[this.zoneAxis+"Threshold"]||e.threshold||0,className:"highcharts-negative",color:e.negativeColor,fillColor:e.negativeFillColor}),t.length&&l(t[t.length-1].value)&&t.push({color:this.color,fillColor:this.fillColor}),f(this,"afterSetOptions",{options:e}),e},getName:function(){return this.name||"Series "+(this.index+1)},getCyclic:function(t,e,n){var i,r=this.chart,o=this.userOptions,a=t+"Index",s=t+"Counter",c=n?n.length:b(r.options.chart[t+"Count"],r[t+"Count"]);e||(i=b(o[a],o["_"+a]),l(i)||(r.series.length||(r[s]=0),o["_"+a]=i=r[s]%c,r[s]+=1),n&&(e=n[i])),void 0!==i&&(this[a]=i),this[t]=e},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||s[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:t.LegendSymbolMixin.drawLineMarker,updateData:function(e){var n,i,r,o=this.options,a=this.points,s=[],l=this.requireSorting;if(c(e,function(e){var i;i=t.defined(e)&&this.pointClass.prototype.optionsToObject.call({series:this},e).x,g(i)&&(-1===(i=t.inArray(i,this.xData,r))?s.push(e):e!==o.data[i]?(a[i].update(e,!1,null,!1),a[i].touched=!0,l&&(r=i)):a[i]&&(a[i].touched=!0),n=!0)},this),n)for(e=a.length;e--;)(i=a[e]).touched||i.remove(!1),i.touched=!1;else{if(e.length!==a.length)return!1;c(e,function(t,e){a[e].update&&t!==o.data[e]&&a[e].update(t,!1,null,!1)})}return c(s,function(t){this.addPoint(t,!1)},this),!0},setData:function(e,n,i,r){var o,a,s=this,l=s.points,u=l&&l.length||0,h=s.options,f=s.chart,d=null,v=s.xAxis,y=h.turboThreshold,x=this.xData,w=this.yData,_=(o=s.pointArrayMap)&&o.length;if(o=(e=e||[]).length,n=b(n,!0),!1!==r&&o&&u&&!s.cropped&&!s.hasGroupedData&&s.visible&&(a=this.updateData(e)),!a){if(s.xIncrement=null,s.colorCounter=0,c(this.parallelArrays,function(t){s[t+"Data"].length=0}),y&&o>y){for(i=0;null===d&&il||this.forceCrop)&&(i[o-1]h?(i=[],r=[]):(i[0]h)&&(i=(n=this.cropData(this.xData,this.yData,u,h)).xData,r=n.yData,n=n.start,a=!0)),l=i.length||1;--l;)0<(o=g?p(i[l])-p(i[l-1]):i[l]-i[l-1])&&(void 0===s||oo&&m&&(t.error(15),m=!1);this.cropped=a,this.cropStart=n,this.processedXData=i,this.processedYData=r,this.closestPointRange=s},cropData:function(t,e,n,i,r){var o,a=t.length,s=0,l=a;for(r=b(r,this.cropShoulder,1),o=0;o=n){s=Math.max(0,o-r);break}for(n=o;ni){l=n+r;break}return{xData:t.slice(s,l),yData:e.slice(s,l),start:s,end:l}},generatePoints:function(){var t,e,n,i,r=(f=this.options).data,o=this.data,a=this.processedXData,s=this.processedYData,l=this.pointClass,c=a.length,u=this.cropStart||0,h=this.hasGroupedData,f=f.keys,d=[];for(o||h||((o=[]).length=r.length,o=this.data=o),f&&h&&(this.options.keys=!1),i=0;i=f&&(c[s-m]||o)<=d,n&&o)if(n=a.length)for(;n--;)"number"===typeof a[n]&&(u[h++]=a[n]);else u[h++]=a;this.dataMin=r(u),this.dataMax=i(u)},translate:function(){this.processedXData||this.processData(),this.generatePoints();var t,e,n,i,r=this.options,a=r.stacking,s=this.xAxis,c=s.categories,u=this.yAxis,h=this.points,d=h.length,p=!!this.modifyValue,m=r.pointPlacement,v="between"===m||g(m),y=r.threshold,x=r.startFromThreshold?y:0,w=Number.MAX_VALUE;for("between"===m&&(m=.5),g(m)&&(m*=b(r.pointRange||s.pointRange)),r=0;r=k&&(_.isNull=!0),_.plotX=t=o(Math.min(Math.max(-1e5,s.translate(S,0,0,0,1,m,"flags"===this.type)),1e5)),a&&this.visible&&!_.isNull&&O&&O[S]&&(i=this.getStackIndicator(i,S,this.index),e=(k=(M=O[S]).points[i.key])[0],k=k[1],e===x&&i.key===O[S].base&&(e=b(g(y)&&y,u.min)),u.positiveValuesOnly&&0>=e&&(e=null),_.total=_.stackTotal=M.total,_.percentage=M.total&&_.y/M.total*100,_.stackY=k,M.setOffset(this.pointXOffset||0,this.barW||0)),_.yBottom=l(e)?Math.min(Math.max(-1e5,u.translate(e,0,1,0,1)),1e5):null,p&&(k=this.modifyValue(k,_)),_.plotY=e="number"===typeof k&&1/0!==k?Math.min(Math.max(-1e5,u.translate(k,0,1,0,1)),1e5):void 0,_.isInside=void 0!==e&&0<=e&&e<=u.len&&0<=t&&t<=s.len,_.clientX=v?o(s.translate(S,0,0,0,1,m)):t,_.negative=_.y<(y||0),_.category=c&&void 0!==c[_.x]?c[_.x]:_.x,_.isNull||(void 0!==n&&(w=Math.min(w,Math.abs(t-n))),n=t),_.zone=this.zones.length&&_.getZone()}this.closestPointRangePx=w,f(this,"afterTranslate")},getValidPoints:function(t,e){var n=this.chart;return d(t||this.points||[],function(t){return!(e&&!n.isInsidePlot(t.plotX,t.plotY,n.inverted))&&!t.isNull})},setClip:function(t){var e=this.chart,n=this.options,i=e.renderer,r=e.inverted,o=this.clipBox,a=o||e.clipBox,s=this.sharedClipKey||["_sharedClip",t&&t.duration,t&&t.easing,a.height,n.xAxis,n.yAxis].join(),l=e[s],c=e[s+"m"];l||(t&&(a.width=0,r&&(a.x=e.plotSizeX),e[s+"m"]=c=i.clipRect(r?e.plotSizeX+99:-99,r?-e.plotLeft:-e.plotTop,99,r?e.chartWidth:e.chartHeight)),e[s]=l=i.clipRect(a),l.count={length:0}),t&&!l.count[this.index]&&(l.count[this.index]=!0,l.count.length+=1),!1!==n.clip&&(this.group.clip(t||o?l:e.clipRect),this.markerGroup.clip(c),this.sharedClipKey=s),t||(l.count[this.index]&&(delete l.count[this.index],--l.count.length),0===l.count.length&&s&&e[s]&&(o||(e[s]=e[s].destroy()),e[s+"m"]&&(e[s+"m"]=e[s+"m"].destroy())))},animate:function(t){var e,i=this.chart,r=n(this.options.animation);t?this.setClip(r):((t=i[e=this.sharedClipKey])&&t.animate({width:i.plotSizeX,x:0},r),i[e+"m"]&&i[e+"m"].animate({width:i.plotSizeX+99,x:0},r),this.animate=null)},afterAnimate:function(){this.setClip(),f(this,"afterAnimate"),this.finishedAnimating=!0},drawPoints:function(){var t,e,n,i,r,o,a,s,l=this.points,c=this.chart,u=this.options.marker,h=this[this.specialGroup]||this.markerGroup,f=b(u.enabled,!!this.xAxis.isRadial||null,this.closestPointRangePx>=u.enabledThreshold*u.radius);if(!1!==u.enabled||this._hasPointMarkers)for(t=0;tr&&e.shadow)),a&&(a.startX=n.xMap,a.isArea=n.isArea)})},getZonesGraphs:function(t){return c(this.zones,function(e,n){t.push(["zone-graph-"+n,"highcharts-graph highcharts-zone-graph-"+n+" "+(e.className||""),e.color||this.color,e.dashStyle||this.options.dashStyle])},this),t},applyZones:function(){var t,e,n,i,r,o,a,s,l,u=this,h=this.chart,f=h.renderer,d=this.zones,p=this.clips||[],g=this.graph,m=this.area,v=Math.max(h.chartWidth,h.chartHeight),y=this[(this.zoneAxis||"y")+"Axis"],x=h.inverted,w=!1;d.length&&(g||m)&&y&&void 0!==y.min&&(r=y.reversed,o=y.horiz,g&&!this.showLine&&g.hide(),m&&m.hide(),i=y.getExtremes(),c(d,function(c,d){t=r?o?h.plotWidth:0:o?0:y.toPixels(i.min),t=Math.min(Math.max(b(e,t),0),v),e=Math.min(Math.max(Math.round(y.toPixels(b(c.value,i.max),!0)),0),v),w&&(t=e=y.toPixels(i.max)),a=Math.abs(t-e),s=Math.min(t,e),l=Math.max(t,e),y.isXAxis?(n={x:x?l:s,y:0,width:a,height:v},o||(n.x=h.plotHeight-n.x)):(n={x:0,y:x?l:s,width:v,height:a},o&&(n.y=h.plotWidth-n.y)),x&&f.isVML&&(n=y.isXAxis?{x:0,y:r?s:l,height:n.width,width:h.chartWidth}:{x:n.y-h.plotLeft-h.spacingBox.x,y:0,width:n.height,height:h.chartHeight}),p[d]?p[d].animate(n):(p[d]=f.clipRect(n),g&&u["zone-graph-"+d].clip(p[d]),m&&u["zone-area-"+d].clip(p[d])),w=c.value>i.max,u.resetZones&&0===e&&(e=void 0)}),this.clips=p)},invertGroups:function(t){function n(){c(["group","markerGroup"],function(e){r[e]&&(o.renderer.isVML&&r[e].attr({width:r.yAxis.len,height:r.xAxis.len}),r[e].width=r.yAxis.len,r[e].height=r.xAxis.len,r[e].invert(t))})}var i,r=this,o=r.chart;r.xAxis&&(i=e(o,"resize",n),e(r,"destroy",i),n(),r.invertGroups=n)},plotGroup:function(t,e,n,i,r){var o=this[t],a=!o;return a&&(this[t]=o=this.chart.renderer.g().attr({zIndex:i||.1}).add(r)),o.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(l(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(o.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),o.attr({visibility:n})[a?"attr":"animate"](this.getPlotBox()),o},getPlotBox:function(){var t=this.chart,e=this.xAxis,n=this.yAxis;return t.inverted&&(e=n,n=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:n?n.top:t.plotTop,scaleX:1,scaleY:1}},render:function(){var t,e=this,i=e.chart,r=e.options,o=!!e.animate&&i.renderer.isSVG&&n(r.animation).duration,a=e.visible?"inherit":"hidden",s=r.zIndex,l=e.hasRendered,c=i.seriesGroup,u=i.inverted;t=e.plotGroup("group","series",a,s,c),e.markerGroup=e.plotGroup("markerGroup","markers",a,s,c),o&&e.animate(!0),t.inverted=!!e.isCartesian&&u,e.drawGraph&&(e.drawGraph(),e.applyZones()),e.drawDataLabels&&e.drawDataLabels(),e.visible&&e.drawPoints(),e.drawTracker&&!1!==e.options.enableMouseTracking&&e.drawTracker(),e.invertGroups(u),!1===r.clip||e.sharedClipKey||l||t.clip(i.clipRect),o&&e.animate(),l||(e.animationTimeout=S(function(){e.afterAnimate()},o)),e.isDirty=!1,e.hasRendered=!0,f(e,"afterRender")},redraw:function(){var t=this.chart,e=this.isDirty||this.isDirtyData,n=this.group,i=this.xAxis,r=this.yAxis;n&&(t.inverted&&n.attr({width:t.plotWidth,height:t.plotHeight}),n.animate({translateX:b(i&&i.left,t.plotLeft),translateY:b(r&&r.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(t,e){var n=this.xAxis,i=this.yAxis,r=this.chart.inverted;return this.searchKDTree({clientX:r?n.len-t.chartY+n.pos:t.chartX-n.pos,plotY:r?i.len-t.chartX+i.pos:t.chartY-i.pos},e)},buildKDTree:function(){this.buildingKdTree=!0;var t=this,e=-1(d=e[d]-f[d])?"left":"right",h=0>d?"right":"left",a[u]&&(p=(u=t(e,a[u],s+1,c))[o]s;)a--;this.updateParallelArrays(r,"splice",a,0,0),this.updateParallelArrays(r,a),h&&r.name&&(h[s]=r.name),f.splice(a,0,t),o&&(this.data.splice(a,0,null),this.processData()),"point"===l.legendType&&this.generatePoints(),n&&(c[0]&&c[0].remove?c[0].remove(!1):(c.shift(),this.updateParallelArrays(r,"shift"),f.shift())),this.isDirtyData=this.isDirty=!0,e&&u.redraw(i)},removePoint:function(t,e,n){var i=this,r=i.data,o=r[t],a=i.points,s=i.chart,l=function(){a&&a.length===r.length&&a.splice(t,1),r.splice(t,1),i.options.data.splice(t,1),i.updateParallelArrays(o||{series:i},"splice",t,1),o&&o.destroy(),i.isDirty=!0,i.isDirtyData=!0,e&&s.redraw()};w(n,s),e=v(e,!0),o?o.firePointEvent("remove",null,l):l()},remove:function(t,e,n){function i(){r.destroy(),o.isDirtyLegend=o.isDirtyBox=!0,o.linkSeries(),v(t,!0)&&o.redraw(e)}var r=this,o=r.chart;!1!==n?u(r,"remove",null,i):i()},update:function(e,n){var i,r=this,o=r.chart,a=r.userOptions,l=r.oldType||r.type,f=e.type||a.type||o.options.chart.type,d=x[l].prototype,p=["group","markerGroup","dataLabelsGroup"],m=["navigatorSeries","baseSeries"],y=r.finishedAnimating&&{animation:!1},b=["data","name","turboThreshold"],w=t.keys(e),_=0t&&o>c?s=2*c-(o=Math.max(t,c)):oi&&s>c?o=2*c-(s=Math.max(i,c)):s=Math.abs(e)&&.5t.closestPointRange*t.xAxis.transA,o=(r=t.borderWidth=s(n.borderWidth,r?0:1),t.yAxis),a=n.threshold,c=t.translatedThreshold=o.getThreshold(a),u=s(n.minPointLength,5),h=t.getColumnMetrics(),f=h.width,d=t.barW=Math.max(f,1+2*r),p=t.pointXOffset=h.offset;e.inverted&&(c-=.5),n.pointPadding&&(d=Math.ceil(d)),l.prototype.translate.apply(t),i(t.points,function(n){var i,r=s(n.yBottom,c),l=999+Math.abs(r),h=(l=Math.min(Math.max(-l,n.plotY),o.len+l),n.plotX+p),g=d,m=Math.min(l,r),v=Math.max(l,r)-m;u&&Math.abs(v)u?r-u:c-(i?u:0)),n.barX=h,n.pointWidth=f,n.tooltipPos=e.inverted?[o.len+o.pos-e.plotLeft-l,t.xAxis.len-h-g/2,v]:[h+g/2,l+o.pos-e.plotTop,v],n.shapeType="rect",n.shapeArgs=t.crispCol.apply(t,n.isNull?[h,c,g,0]:[h,m,g,v])})},getSymbol:t.noop,drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(t,e){var i,r=this.options;i=(u=this.pointAttrToOptions||{}).stroke||"borderColor";var o=u["stroke-width"]||"borderWidth",s=t&&t.color||this.color,l=t&&t[i]||r[i]||this.color||s,c=t&&t[o]||r[o]||this[o]||0,u=r.dashStyle;return t&&this.zones.length&&(s=t.getZone(),s=t.options.color||s&&s.color||this.color),e&&(e=(t=a(r.states[e],t.options.states&&t.options.states[e]||{})).brightness,s=t.color||void 0!==e&&n(s).brighten(t.brightness).get()||s,l=t[i]||l,c=t[o]||c,u=t.dashStyle||u),i={fill:s,stroke:l,"stroke-width":c},u&&(i.dashstyle=u),i},drawPoints:function(){var t,e=this,n=this.chart,r=e.options,s=n.renderer,l=r.animationLimit||250;i(e.points,function(i){var c=i.graphic,u=c&&n.pointCount\u25cf {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&e.prototype.drawGraph.call(this)}})}(c),function(t){var e=t.deg2rad,n=t.isNumber,i=t.pick,r=t.relativeLength;t.CenteredSeriesMixin={getCenter:function(){var t,e,n=this.options,o=this.chart,a=2*(n.slicedOffset||0),s=o.plotWidth-2*a,l=(o=o.plotHeight-2*a,n.center),c=(l=[i(l[0],"50%"),i(l[1],"50%"),n.size||"100%",n.innerSize||0],Math.min(s,o));for(t=0;4>t;++t)e=l[t],n=2>t||2===t&&/%$/.test(e),l[t]=r(e,[s,o,c,l[2]][t])+(n?a:0);return l[3]>l[2]&&(l[3]=l[2]),l},getStartAndEndRadians:function(t,i){return t=n(t)?t:0,i=n(i)&&i>t&&360>i-t?i:t+360,{start:e*(t+-90),end:e*(i+-90)}}}}(c),function(t){var e=t.addEvent,n=t.CenteredSeriesMixin,i=t.defined,r=t.each,o=t.extend,a=n.getStartAndEndRadians,s=t.inArray,l=t.noop,c=t.pick,u=t.Point,h=t.Series,f=t.seriesType,d=t.setAnimation;f("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:t.seriesTypes.column.prototype.pointAttribs,animate:function(t){var e=this,n=e.points,i=e.startAngleRad;t||(r(n,function(t){var n=t.graphic,r=t.shapeArgs;n&&(n.attr({r:t.startR||e.center[3]/2,start:i,end:i}),n.animate({r:r.r,start:r.start,end:r.end},e.options.animation))}),e.animate=null)},updateTotals:function(){var t,e,n=0,i=this.points,r=i.length,o=this.options.ignoreHiddenPoint;for(t=0;t1.5*Math.PI?i-=2*Math.PI:i<-Math.PI/2&&(i+=2*Math.PI),s.slicedTranslation={translateX:Math.round(Math.cos(i)*u),translateY:Math.round(Math.sin(i)*u)},n=Math.cos(i)*t[2]/2,r=Math.sin(i)*t[2]/2,s.tooltipPos=[t[0]+.7*n,t[1]+.7*r],s.half=i<-Math.PI/2||i>Math.PI/2?1:0,s.angle=i,e=Math.min(h,s.labelDistance/5),s.labelPos=[t[0]+n+Math.cos(i)*s.labelDistance,t[1]+r+Math.sin(i)*s.labelDistance,t[0]+n+Math.cos(i)*e,t[1]+r+Math.sin(i)*e,t[0]+n,t[1]+r,0>s.labelDistance?"center":s.half?"right":"left",i]},drawGraph:null,drawPoints:function(){var t,e,n,i,a=this,s=a.chart.renderer,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=s.g("shadow").add(a.group)),r(a.points,function(r){if(e=r.graphic,r.isNull)e&&(r.graphic=e.destroy());else{i=r.shapeArgs,t=r.getTranslate();var c=r.shadowGroup;l&&!c&&(c=r.shadowGroup=s.g("shadow").add(a.shadowGroup)),c&&c.attr(t),n=a.pointAttribs(r,r.selected&&"select"),e?e.setRadialReference(a.center).attr(n).animate(o(i,t)):(r.graphic=e=s[r.shapeType](i).setRadialReference(a.center).attr(t).add(a.group),r.visible||e.attr({visibility:"hidden"}),e.attr(n).attr({"stroke-linejoin":"round"}).shadow(l,c)),e.addClass(r.getClassName())}})},searchPoint:l,sortByAngle:function(t,e){t.sort(function(t,n){return void 0!==t.angle&&(n.angle-t.angle)*e})},drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,getCenter:n.getCenter,getSymbol:l},{init:function(){u.prototype.init.apply(this,arguments);var t,n=this;return n.name=c(n.name,"Slice"),e(n,"select",t=function(t){n.slice("select"===t.type)}),e(n,"unselect",t),n},isValid:function(){return t.isNumber(this.y,!0)&&0<=this.y},setVisible:function(t,e){var n=this,i=n.series,o=i.chart,a=i.options.ignoreHiddenPoint;e=c(e,a),t!==n.visible&&(n.visible=n.options.visible=t=void 0===t?!n.visible:t,i.options.data[s(n,i.data)]=n.options,r(["graphic","dataLabel","connector","shadowGroup"],function(e){n[e]&&n[e][t?"show":"hide"](!0)}),n.legendItem&&o.legend.colorizeItem(n,t),t||"hover"!==n.state||n.setState(""),a&&(i.isDirty=!0),e&&o.redraw())},slice:function(t,e,n){var r=this.series;d(n,r.chart),c(e,!0),this.sliced=this.options.sliced=i(t)?t:!this.sliced,r.options.data[s(this,r.data)]=this.options,this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:this.shapeArgs.r-1,start:e.start,end:e.end})}})}(c),function(t){var e=t.addEvent,n=t.arrayMax,i=t.defined,r=t.each,o=t.extend,a=t.format,s=t.map,l=t.merge,c=t.noop,u=t.pick,h=t.relativeLength,f=t.Series,d=t.seriesTypes,p=t.some,g=t.stableSort;t.distribute=function(e,n,i){function o(t,e){return t.target-e.target}var a,l,c=!0,h=e,f=[];l=0;var d=h.reducedLen||n;for(a=e.length;a--;)l+=e[a].size;if(l>d){for(g(e,function(t,e){return(e.rank||0)-(t.rank||0)}),l=a=0;l<=d;)l+=e[a].size,a++;f=e.splice(a-1,e.length)}for(g(e,o),e=s(e,function(t){return{size:t.size,targets:[t.target],align:u(t.align,.5)}});c;){for(a=e.length;a--;)c=e[a],l=(Math.min.apply(0,c.targets)+Math.max.apply(0,c.targets))/2,c.pos=Math.min(Math.max(0,l-c.size*c.align),n-c.size);for(a=e.length,c=!1;a--;)0e[a].pos&&(e[a-1].size+=e[a].size,e[a-1].targets=e[a-1].targets.concat(e[a].targets),e[a-1].align=.5,e[a-1].pos+e[a-1].size>n&&(e[a-1].pos=n-e[a-1].size),e.splice(a,1),c=!0)}h.push.apply(h,f),a=0,p(e,function(e){var o=0;if(p(e.targets,function(){if(h[a].pos=e.pos+o,Math.abs(h[a].pos-h[a].target)>i)return r(h.slice(0,a+1),function(t){delete t.pos}),h.reducedLen=(h.reducedLen||n)-.1*n,h.reducedLen>.1*n&&t.distribute(h,n,i),!0;o+=h[a].size,a++}))return!0}),g(h,o)},f.prototype.drawDataLabels=function(){var n,o,s,c,h=this,f=h.chart,d=h.options,p=d.dataLabels,g=h.points,m=h.hasRendered||0,v=u(p.defer,!!d.animation),y=f.renderer;(p.enabled||h._hasPointLabels)&&(h.dlProcessOptions&&h.dlProcessOptions(p),c=h.plotGroup("dataLabelsGroup","data-labels",v&&!m?"hidden":"visible",p.zIndex||6),v&&(c.attr({opacity:+m}),m||e(h,"afterAnimate",function(){h.visible&&c.show(!0),c[d.animation?"animate":"attr"]({opacity:1},{duration:200})})),o=p,r(g,function(e){var r,g,m,v,b=e.dataLabel,x=e.connector,w=!b;n=e.dlOptions||e.options&&e.options.dataLabels,(r=u(n&&n.enabled,o.enabled)&&!e.isNull)&&(r=!0===function(t,e){var n=e.filter;return!n||(e=n.operator,t=t[n.property],n=n.value,">"===e&&t>n||"<"===e&&t="===e&&t>=n||"<="===e&&t<=n||"=="===e&&t==n||"==="===e&&t===n)}(e,n||p)),r&&(p=l(o,n),g=e.getLabelConfig(),v=p[e.formatPrefix+"Format"]||p.format,s=i(v)?a(v,g,f.time):(p[e.formatPrefix+"Formatter"]||p.formatter).call(g,p),v=p.style,g=p.rotation,v.color=u(p.color,v.color,h.color,"#000000"),"contrast"===v.color&&(e.contrastColor=y.getContrast(e.color||h.color),v.color=p.inside||0>u(e.labelDistance,p.distance)||d.stacking?e.contrastColor:"#000000"),d.cursor&&(v.cursor=d.cursor),m={fill:p.backgroundColor,stroke:p.borderColor,"stroke-width":p.borderWidth,r:p.borderRadius||0,rotation:g,padding:p.padding,zIndex:1},t.objectEach(m,function(t,e){void 0===t&&delete m[e]})),!b||r&&i(s)?r&&i(s)&&(b?m.text=s:(b=e.dataLabel=g?y.text(s,0,-9999).addClass("highcharts-data-label"):y.label(s,0,-9999,p.shape,null,null,p.useHTML,null,"data-label")).addClass(" highcharts-data-label-color-"+e.colorIndex+" "+(p.className||"")+(p.useHTML?"highcharts-tracker":"")),b.attr(m),b.css(v).shadow(p.shadow),b.added||b.add(c),h.alignDataLabel(e,b,p,null,w)):(e.dataLabel=b=b.destroy(),x&&(e.connector=x.destroy()))})),t.fireEvent(this,"afterDrawDataLabels")},f.prototype.alignDataLabel=function(t,e,n,i,r){var a,s=this.chart,l=s.inverted,c=u(t.dlBox&&t.dlBox.centerX,t.plotX,-9999),h=u(t.plotY,-9999),f=e.getBBox(),d=n.rotation,p=n.align,g=this.visible&&(t.series.forceDL||s.isInsidePlot(c,Math.round(h),l)||i&&s.isInsidePlot(c,l?i.x+1:i.y+i.height-1,l)),m="justify"===u(n.overflow,"justify");g&&(a=n.style.fontSize,a=s.renderer.fontMetrics(a,e).b,i=o({x:l?this.yAxis.len-h:c,y:Math.round(l?this.xAxis.len-c:h),width:0,height:0},i),o(n,{width:f.width,height:f.height}),d?(m=!1,c=s.renderer.rotCorr(a,d),c={x:i.x+n.x+i.width/2+c.x,y:i.y+n.y+{top:0,middle:.5,bottom:1}[n.verticalAlign]*i.height},e[r?"attr":"animate"](c).attr({align:p}),h=180<(h=(d+720)%360)&&360>h,"left"===p?c.y-=h?f.height:0:"center"===p?(c.x-=f.width/2,c.y-=f.height/2):"right"===p&&(c.x-=f.width,c.y-=h?0:f.height),e.placed=!0,e.alignAttr=c):(e.align(n,null,i),c=e.alignAttr),m?t.isLabelJustified=this.justifyDataLabel(e,n,c,f,i,r):u(n.crop,!0)&&(g=s.isInsidePlot(c.x,c.y)&&s.isInsidePlot(c.x+f.width,c.y+f.height)),n.shape&&!d)&&e[r?"attr":"animate"]({anchorX:l?s.plotWidth-t.plotY:t.plotX,anchorY:l?s.plotHeight-t.plotX:t.plotY}),g||(e.attr({y:-9999}),e.placed=!1)},f.prototype.justifyDataLabel=function(t,e,n,i,r,o){var a,s,l=this.chart,c=e.align,u=e.verticalAlign,h=t.box?0:t.padding||0;return 0>(a=n.x+h)&&("right"===c?e.align="left":e.x=-a,s=!0),(a=n.x+i.width-h)>l.plotWidth&&("left"===c?e.align="right":e.x=l.plotWidth-a,s=!0),0>(a=n.y+h)&&("bottom"===u?e.verticalAlign="top":e.y=-a,s=!0),(a=n.y+i.height-h)>l.plotHeight&&("top"===u?e.verticalAlign="bottom":e.y=l.plotHeight-a,s=!0),s&&(t.placed=!o,t.align(e,null,r)),s},d.pie&&(d.pie.prototype.drawDataLabels=function(){var e,o,a,s,l,c,h,d,p,g,m=this,v=m.data,y=m.chart,b=m.options.dataLabels,x=u(b.connectorPadding,10),w=u(b.connectorWidth,1),_=y.plotWidth,S=y.plotHeight,k=Math.round(y.chartWidth/3),M=m.center,O=M[2]/2,T=M[1],P=[[],[]],C=[0,0,0,0];m.visible&&(b.enabled||m._hasPointLabels)&&(r(v,function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)}),f.prototype.drawDataLabels.apply(m),r(v,function(t){t.dataLabel&&t.visible&&(P[t.half].push(t),t.dataLabel._pos=null,!i(b.style.width)&&!i(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>k&&(t.dataLabel.css({width:.7*k}),t.dataLabel.shortened=!0))}),r(P,function(n,o){var f,v,w,k=n.length,P=[];if(k)for(m.sortByAngle(n,o-.5),0e.bottom-2?f:d,o,e),a._attr={visibility:p,align:l[6]},a._pos={x:h+b.x+({left:x,right:-x}[l[6]]||0),y:d+b.y-10},l.x=h,l.y=d,u(b.crop,!0)&&(s=a.getBBox().width,f=null,h-s_-x&&0===o&&(f=Math.round(h+s-_+x),C[1]=Math.max(f,C[1])),0>d-c/2?C[0]=Math.max(Math.round(c/2-d),C[0]):d+c/2>S&&(C[2]=Math.max(Math.round(d+c/2-S),C[2])),a.sideOverflow=f)}),0===n(C)||this.verifyDataLabelOverflow(C))&&(this.placeDataLabels(),w&&r(this.points,function(t){var e;o=t.connector,(a=t.dataLabel)&&a._pos&&t.visible&&0u(this.translatedThreshold,a.yAxis.len)),h=u(n.inside,!!this.options.stacking);s&&(0>(i=l(s)).y&&(i.height+=i.y,i.y=0),0<(s=i.y+i.height-a.yAxis.len)&&(i.height-=s),o&&(i={x:a.yAxis.len-i.y-i.height,y:a.xAxis.len-i.x-i.width,width:i.height,height:i.width}),h||(o?(i.x+=c?0:i.width,i.width=0):(i.y+=c?i.height:0,i.height=0))),n.align=u(n.align,!o||h?"center":c?"right":"left"),n.verticalAlign=u(n.verticalAlign,o||h?"middle":c?"top":"bottom"),f.prototype.alignDataLabel.call(this,t,e,n,i,r),t.isLabelJustified&&t.contrastColor&&t.dataLabel.css({color:t.contrastColor})})}(c),function(t){var e=t.Chart,n=t.each,i=t.objectEach,r=t.pick;(t=t.addEvent)(e,"render",function(){var t=[];n(this.labelCollectors||[],function(e){t=t.concat(e())}),n(this.yAxis||[],function(e){e.options.stackLabels&&!e.options.stackLabels.allowOverlap&&i(e.stacks,function(e){i(e,function(e){t.push(e.label)})})}),n(this.series||[],function(e){var i=e.options.dataLabels,o=e.dataLabelCollections||["dataLabel"];(i.enabled||e._hasPointLabels)&&!i.allowOverlap&&e.visible&&n(o,function(i){n(e.points,function(e){e[i]&&(e[i].labelrank=r(e.labelrank,e.shapeArgs&&e.shapeArgs.height),t.push(e[i]))})})}),this.hideOverlappingLabels(t)}),e.prototype.hideOverlappingLabels=function(t){var e,i,r,o,a,s,l,c,u,h=t.length,f=function(t,e,n,i,r,o,a,s){return!(r>t+n||r+ae+i||o+sthis.pointCount))},pan:function(t,e){var n,i=this,r=i.hoverPoints;r&&l(r,function(t){t.setState()}),l("xy"===e?[1,0]:[1],function(e){var r,o=(e=i[e?"xAxis":"yAxis"][0]).horiz,a=t[o?"chartX":"chartY"],s=i[o=o?"mouseDownX":"mouseDownY"],l=(e.pointRange||0)/2,c=e.reversed&&!i.inverted||!e.reversed&&i.inverted?-1:1,u=e.getExtremes(),h=e.toValue(s-a,!0)+l*c;s=(r=(c=e.toValue(s+e.len-a,!0)-l*c)=a(n.minWidth,0)&&this.chartHeight>=a(n.minHeight,0)}).call(this)&&e.push(t._id)},e.prototype.currentOptions=function(e){var n={};return function e(n,a,l,c){var u;t.objectEach(n,function(t,n){if(!c&&-1parseInt(i.split("Firefox/")[1],10),e.Highcharts?e.Highcharts.error(16,!0):{product:"Highstock",version:"6.1.0",deg2rad:2*Math.PI/360,doc:n,hasBidiBug:l,hasTouch:n&&void 0!==n.documentElement.ontouchstart,isMS:o,isWebKit:-1!==i.indexOf("AppleWebKit"),isFirefox:a,isChrome:s,isSafari:!s&&-1!==i.indexOf("Safari"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(i),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:r,win:e,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[]});!function(t){t.timers=[];var e=t.charts,n=t.doc,i=t.win;t.error=function(e,n){if(e=t.isNumber(e)?"Highcharts error #"+e+": www.highcharts.com/errors/"+e:e,n)throw Error(e);i.console&&console.log(e)},t.Fx=function(t,e,n){this.options=e,this.elem=t,this.prop=n},t.Fx.prototype={dSetter:function(){var t,e=this.paths[0],n=this.paths[1],i=[],r=this.now,o=e.length;if(1===r)i=this.toD;else if(o===n.length&&1>r)for(;o--;)t=parseFloat(e[o]),i[o]=isNaN(t)?n[o]:r*parseFloat(n[o]-t)+t;else i=n;this.elem.attr("d",i,null,!0)},update:function(){var t=this.elem,e=this.prop,n=this.now,i=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,n,null,!0):t.style[e]=n+this.unit,i&&i.call(t,n,this)},run:function(e,n,r){var o=this,a=o.options,s=function(t){return!s.stopped&&o.step(t)},l=i.requestAnimationFrame||function(t){setTimeout(t,13)},c=function(){for(var e=0;e=s+this.startTime?(this.now=this.end,this.pos=1,this.update(),n=l[this.prop]=!0,t.objectEach(l,function(t){!0!==t&&(n=!1)}),n&&a&&a.call(o),e=!1):(this.pos=r.easing((i-this.startTime)/s),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0),e},initPath:function(e,n,i){function r(t){var e,n;for(u=t.length;u--;)e="M"===t[u]||"L"===t[u],n=/[a-zA-Z]/.test(t[u+3]),e&&n&&t.splice(u+1,0,t[u+1],t[u+2],t[u+1],t[u+2])}function o(t,e){for(;t.lengtht&&-1/0=i&&(n=[1/i]))),r=0;r=e||!o&&a<=(n[r]+(n[r+1]||n[r]))/2));r++);return t.correctFloat(s*i,-Math.round(Math.log(.001)/Math.LN10))},t.stableSort=function(t,e){var n,i,r=t.length;for(i=0;in&&(n=t[e]);return n},t.destroyObjectProperties=function(e,n){t.objectEach(e,function(t,i){t&&t!==n&&t.destroy&&t.destroy(),delete e[i]})},t.discardElement=function(e){var n=t.garbageBin;n||(n=t.createElement("div")),e&&n.appendChild(e),n.innerHTML=""},t.correctFloat=function(t,e){return parseFloat(t.toPrecision(e||14))},t.setAnimation=function(e,n){n.renderer.globalAnimation=t.pick(e,n.options.chart.animation,!0)},t.animObject=function(e){return t.isObject(e)?t.merge(e):{duration:e?500:0}},t.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},t.numberFormat=function(e,n,i,r){e=+e||0,n=+n;var o,a,s=t.defaultOptions.lang,l=(e.toString().split(".")[1]||"").split("e")[0].length,c=e.toString().split("e");return-1===n?n=Math.min(l,20):t.isNumber(n)?n&&c[1]&&0>c[1]&&(0<=(o=n+ +c[1])?(c[0]=(+c[0]).toExponential(o).split("e")[0],n=o):(c[0]=c[0].split(".")[0]||0,e=20>n?(c[0]*Math.pow(10,c[1])).toFixed(n):0,c[1]=0)):n=2,a=(Math.abs(c[1]?c[0]:e)+Math.pow(10,-Math.max(n,l)-1)).toFixed(n),o=3<(l=String(t.pInt(a))).length?l.length%3:0,i=t.pick(i,s.decimalPoint),r=t.pick(r,s.thousandsSep),e=(0>e?"-":"")+(o?l.substr(0,o)+r:""),e+=l.substr(o).replace(/(\d{3})(?=\d)/g,"$1"+r),n&&(e+=i+a.slice(-n)),c[1]&&0!==+e&&(e+="e"+c[1]),e},Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)},t.getStyle=function(e,n,r){return"width"===n?Math.min(e.offsetWidth,e.scrollWidth)-t.getStyle(e,"padding-left")-t.getStyle(e,"padding-right"):"height"===n?Math.min(e.offsetHeight,e.scrollHeight)-t.getStyle(e,"padding-top")-t.getStyle(e,"padding-bottom"):(i.getComputedStyle||t.error(27,!0),(e=i.getComputedStyle(e,void 0))&&(e=e.getPropertyValue(n),t.pick(r,"opacity"!==n)&&(e=t.pInt(e))),e)},t.inArray=function(e,n,i){return(t.indexOfPolyfill||Array.prototype.indexOf).call(n,e,i)},t.grep=function(e,n){return(t.filterPolyfill||Array.prototype.filter).call(e,n)},t.find=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var n,i=t.length;for(n=0;n>16,(65280&e)>>8,255&e,1]:4===n&&(r=[(3840&e)>>4|(3840&e)>>8,(240&e)>>4|240&e,(15&e)<<4|15&e,1])),!r)for(o=this.parsers.length;o--&&!r;)(n=(a=this.parsers[o]).regex.exec(e))&&(r=a.parse(n));this.rgba=r||[]},get:function(t){var i,o=this.input,a=this.rgba;return this.stops?((i=r(o)).stops=[].concat(i.stops),e(this.stops,function(e,n){i.stops[n]=[i.stops[n][0],e.get(t)]})):i=a&&n(a[0])?"rgb"===t||!t&&1===a[3]?"rgb("+a[0]+","+a[1]+","+a[2]+")":"a"===t?a[3]:"rgba("+a.join(",")+")":o,i},brighten:function(t){var i,r=this.rgba;if(this.stops)e(this.stops,function(e){e.brighten(t)});else if(n(t)&&0!==t)for(i=0;3>i;i++)r[i]+=o(255*t),0>r[i]&&(r[i]=0),255n.width)&&(n={width:0,height:0})}else n=this.htmlGetBBox();if(s.isSVG&&(t=n.width,s=n.height,c&&"11px"===c.fontSize&&17===Math.round(s)&&(n.height=s=14),e&&(n.width=Math.abs(s*Math.sin(i))+Math.abs(t*Math.cos(i)),n.height=Math.abs(s*Math.cos(i))+Math.abs(t*Math.sin(i)))),a&&0]*>/g,"").replace(/</g,"<").replace(/>/g,">")))},textSetter:function(t){t!==this.textStr&&(delete this.bBox,this.textStr=t,this.added&&this.renderer.buildText(this))},fillSetter:function(t,e,n){"string"===typeof t?n.setAttribute(e,t):t&&this.complexColor(t,e,n)},visibilitySetter:function(t,e,n){"inherit"===t?n.removeAttribute(e):this[e]!==t&&n.setAttribute(e,t),this[e]=t},zIndexSetter:function(t,e){var n,i,r,o,a=this.renderer,s=this.parentGroup,l=(s||a).element||a.box,c=this.element;a=l===a.box;if(n=this.added,u(t)&&(c.zIndex=t,t=+t,this[e]===t&&(n=!1),this[e]=t),n){for((t=this.zIndex)&&s&&(s.handleZ=!0),o=(e=l.childNodes).length-1;0<=o&&!i;o--)n=(s=e[o]).zIndex,r=!u(n),s!==c&&(0>t&&r&&!a&&!o?(l.insertBefore(c,e[o]),i=!0):(A(n)<=t||r&&(!u(t)||0<=t))&&(l.insertBefore(c,e[o+1]||null),i=!0));i||(l.insertBefore(c,e[a?3:0]||null),i=!0)}return i},_defaultSetter:function(t,e,n){n.setAttribute(e,t)}}),e.prototype.yGetter=e.prototype.xGetter,e.prototype.translateXSetter=e.prototype.translateYSetter=e.prototype.rotationSetter=e.prototype.verticalAlignSetter=e.prototype.rotationOriginXSetter=e.prototype.rotationOriginYSetter=e.prototype.scaleXSetter=e.prototype.scaleYSetter=e.prototype.matrixSetter=function(t,e){this[e]=t,this.doTransform=!0},e.prototype["stroke-widthSetter"]=e.prototype.strokeSetter=function(t,n,i){this[n]=t,this.stroke&&this["stroke-width"]?(e.prototype.fillSetter.call(this,this.stroke,"stroke",i),i.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===n&&0===t&&this.hasStroke&&(i.removeAttribute("stroke"),this.hasStroke=!1)},n=t.SVGRenderer=function(){this.init.apply(this,arguments)},g(n.prototype,{Element:e,SVG_NS:D,init:function(t,e,n,r,a,s){var c,u;c=(r=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}).css(this.getStyle(r))).element,t.appendChild(c),o(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&o(c,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=c,this.boxWrapper=r,this.alignedObjects=[],this.url=(w||M)&&d.getElementsByTagName("base").length?N.location.href.replace(/#.*?$/,"").replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(d.createTextNode("Created with Highstock 6.1.0")),this.defs=this.createElement("defs").add(),this.allowHTML=s,this.forExport=a,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,n,!1),w&&t.getBoundingClientRect&&((e=function(){l(t,{left:0,top:0}),u=t.getBoundingClientRect(),l(t,{left:Math.ceil(u.left)-u.left+"px",top:Math.ceil(u.top)-u.top+"px"})})(),this.unSubPixelFix=i(N,"resize",e))},getStyle:function(t){return this.style=g({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},setStyle:function(t){this.boxWrapper.css(this.getStyle(t))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),f(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},createElement:function(t){var e=new this.Element;return e.init(this,t),e},draw:T,getRadialAttr:function(t,e){return{cx:t[0]-t[2]/2+e.cx*t[2],cy:t[1]-t[2]/2+e.cy*t[2],r:e.r*t[2]}},getSpanWidth:function(t){return t.getBBox(!0).width},applyEllipsis:function(t,e,n,i){var r,o,a=t.rotation,s=n,l=0,c=n.length,u=function(t){e.removeChild(e.firstChild),t&&e.appendChild(d.createTextNode(t))};if(t.rotation=0,o=(s=this.getSpanWidth(t,e))>i){for(;l<=c;)r=Math.ceil((l+c)/2),u(s=n.substring(0,r)+"\u2026"),s=this.getSpanWidth(t,e),l===c?l=c+1:s>i?c=r-1:l=r;0===c&&u("")}return t.rotation=a,o},escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},buildText:function(t){var e,n,i,r=t.element,a=this,s=a.forExport,c=C(t.textStr,"").toString(),u=-1!==c.indexOf("<"),h=r.childNodes,f=o(r,"x"),g=t.styles,m=t.textWidth,y=g&&g.lineHeight,x=g&&g.textOutline,w=g&&"ellipsis"===g.textOverflow,_=g&&"nowrap"===g.whiteSpace,S=g&&g.fontSize,k=h.length,M=(g=m&&!t.added&&this.box,function(t){var e;return e=/(px|em)$/.test(t&&t.style.fontSize)?t.style.fontSize:S||a.style.fontSize||12,y?A(y):a.fontMetrics(e,t.getAttribute("style")?t:r).h}),O=function(t,e){return P(a.escapes,function(n,i){e&&-1!==b(n,e)||(t=t.toString().replace(new RegExp(n,"g"),i))}),t},T=function(t,e){var n;if(n=t.indexOf("<"),-1!==(n=(t=t.substring(n,t.indexOf(">")-n)).indexOf(e+"="))&&(n=n+e.length+1,'"'===(e=t.charAt(n))||"'"===e))return(t=t.substring(n+1)).substring(0,t.indexOf(e))};if((n=[c,w,_,y,x,S,m].join())!==t.textCache){for(t.textCache=n;k--;)r.removeChild(h[k]);u||x||w||m||-1!==c.indexOf(" ")?(g&&g.appendChild(r),c=u?c.replace(/<(b|strong)>/g,'').replace(/<(i|em)>/g,'').replace(/
/g,"").split(//g):[c],c=v(c,function(t){return""!==t}),p(c,function(n,c){var u,h=0;n=n.replace(/^\s+|\s+$/g,"").replace(//g,"|||"),u=n.split("|||"),p(u,function(n){if(""!==n||1===u.length){var p,g,v={},y=d.createElementNS(a.SVG_NS,"tspan");if((p=T(n,"class"))&&o(y,"class",p),(p=T(n,"style"))&&(p=p.replace(/(;| |^)color([ :])/,"$1fill$2"),o(y,"style",p)),(g=T(n,"href"))&&!s&&(o(y,"onclick",'location.href="'+g+'"'),o(y,"class","highcharts-anchor"),l(y,{cursor:"pointer"}))," "!==(n=O(n.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" "))){if(y.appendChild(d.createTextNode(n)),h?v.dx=0:c&&null!==f&&(v.x=f),o(y,v),r.appendChild(y),!h&&i&&(!j&&s&&l(y,{display:"block"}),o(y,"dy",M(y))),m){v=n.replace(/([^\^])-/g,"$1- ").split(" "),g=1m,void 0===e&&(e=n),n&&1!==v.length?(y.removeChild(y.firstChild),x.unshift(v.pop())):(v=x,x=[],v.length&&!_&&(y=d.createElementNS(D,"tspan"),o(y,{dy:S,x:f}),p&&o(y,"style",p),r.appendChild(y)),b>m&&(m=b)),v.length&&y.appendChild(d.createTextNode(v.join(" ").replace(/- /g,"-")));t.rotation=k}h++}}}),i=i||r.childNodes.length}),e&&t.attr("title",O(t.textStr,["<",">"])),g&&g.removeChild(r),x&&t.applyTextOutline&&t.applyTextOutline(x)):r.appendChild(d.createTextNode(O(c)))}},getContrast:function(t){return 510<(t=s(t).rgba)[0]+t[1]+t[2]?"#000000":"#FFFFFF"},button:function(t,e,n,r,o,a,s,l,c){var u,h,f,d,p=this.label(t,e,n,c,null,null,null,null,"button"),m=0;return p.attr(O({padding:8,r:2},o)),o=O({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},o),u=o.style,delete o.style,a=O(o,{fill:"#e6e6e6"},a),h=a.style,delete a.style,s=O(o,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},s),f=s.style,delete s.style,l=O(o,{style:{color:"#cccccc"}},l),d=l.style,delete l.style,i(p.element,_?"mouseover":"mouseenter",function(){3!==m&&p.setState(1)}),i(p.element,_?"mouseout":"mouseleave",function(){3!==m&&p.setState(m)}),p.setState=function(t){1!==t&&(p.state=m=t),p.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),p.attr([o,a,s,l][t||0]).css([u,h,f,d][t||0])},p.attr(o).css(g({cursor:"default"},u)),p.on("click",function(t){3!==m&&r.call(p,t)})},crispLine:function(t,e){return t[1]===t[4]&&(t[1]=t[4]=Math.round(t[1])-e%2/2),t[2]===t[5]&&(t[2]=t[5]=Math.round(t[2])+e%2/2),t},path:function(t){var e={fill:"none"};return x(t)?e.d=t:S(t)&&g(e,t),this.createElement("path").attr(e)},circle:function(t,e,n){return t=S(t)?t:{x:t,y:e,r:n},(e=this.createElement("circle")).xSetter=e.ySetter=function(t,e,n){n.setAttribute("c"+e,t)},e.attr(t)},arc:function(t,e,n,i,r,o){return S(t)?(e=(i=t).y,n=i.r,t=i.x):i={innerR:i,start:r,end:o},(t=this.symbol("arc",t,e,n,n,i)).r=n,t},rect:function(t,e,n,i,r,a){r=S(t)?t.r:r;var s=this.createElement("rect");return t=S(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(n,0),height:Math.max(i,0)},void 0!==a&&(t.strokeWidth=a,t=s.crisp(t)),t.fill="none",r&&(t.r=r),s.rSetter=function(t,e,n){o(n,{rx:t,ry:t})},s.attr(t)},setSize:function(t,e,n){var i=this.alignedObjects,r=i.length;for(this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:C(n,!0)?void 0:0});r--;)i[r].align()},g:function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},image:function(t,e,n,r,o,a){var s,l={preserveAspectRatio:"none"},c=function(t,e){t.setAttributeNS?t.setAttributeNS("http://www.w3.org/1999/xlink","href",e):t.setAttribute("hc-svg-href",e)};return 1Math.abs(r.end-r.start-2*Math.PI));var c=Math.cos(o),h=Math.sin(o),f=Math.cos(l);l=Math.sin(l);return a=["M",t+a*c,e+s*h,"A",a,s,0,r=.001>r.end-o-Math.PI?0:1,1,t+a*f,e+s*l],u(n)&&a.push(i?"M":"L",t+n*f,e+n*l,"A",n,n,0,r,0,t+n*c,e+n*h),a.push(i?"":"Z"),a},callout:function(t,e,n,i,r){var o,a=Math.min(r&&r.r||0,n,i),s=a+6,l=r&&r.anchorX;return r=r&&r.anchorY,o=["M",t+a,e,"L",t+n-a,e,"C",t+n,e,t+n,e,t+n,e+a,"L",t+n,e+i-a,"C",t+n,e+i,t+n,e+i,t+n-a,e+i,"L",t+a,e+i,"C",t,e+i,t,e+i,t,e+i-a,"L",t,e+a,"C",t,e,t,e,t+a,e],l&&l>n?r>e+s&&rl?r>e+s&&ri&&l>t+s&&lr&&l>t+s&&l(t=/px/.test(t)?A(t):/em/.test(t)?parseFloat(t)*(e?this.fontMetrics(null,e.parentNode).f:16):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},rotCorr:function(t,e,n){var i=t;return e&&n&&(i=Math.max(i*Math.cos(e*h),4)),{x:-t/3*Math.sin(e*h),y:i}},label:function(n,i,r,o,a,s,l,c,h){var f,d,m,v,y,b,x,w,_,S,k,M,T,P=this,C=P.g("button"!==h&&"label"),A=C.text=P.text("",0,0,l).attr({zIndex:1}),L=0,j=3,D=0,I={},N=/^url\((.*?)\)$/.test(o),R=N;h&&C.addClass("highcharts-"+h),R=N,S=function(){return(w||0)%2/2},k=function(){var t=A.element.style,e={};d=(void 0===m||void 0===v||x)&&u(A.textStr)&&A.getBBox(),C.width=(m||d.width||0)+2*j+D,C.height=(v||d.height||0)+2*j,_=j+P.fontMetrics(t&&t.fontSize,A).b,R&&(f||(C.box=f=P.symbols[o]||N?P.symbol(o):P.rect(),f.addClass(("button"===h?"":"highcharts-label-box")+(h?" highcharts-"+h+"-box":"")),f.add(C),t=S(),e.x=t,e.y=(c?-_:0)+t),e.width=Math.round(C.width),e.height=Math.round(C.height),f.attr(g(e,I)),I={})},M=function(){var t,e=D+j;t=c?0:_,u(m)&&d&&("center"===x||"right"===x)&&(e+={center:.5,right:1}[x]*(m-d.width)),e===A.x&&t===A.y||(A.attr("x",e),void 0!==t&&A.attr("y",t)),A.x=e,A.y=t},T=function(t,e){f?f.attr(t,e):I[t]=e},C.onAdd=function(){A.add(C),C.attr({text:n||0===n?n:"",x:i,y:r}),f&&u(a)&&C.attr({anchorX:a,anchorY:s})},C.widthSetter=function(e){m=t.isNumber(e)?e:null},C.heightSetter=function(t){v=t},C["text-alignSetter"]=function(t){x=t},C.paddingSetter=function(t){u(t)&&t!==j&&(j=C.padding=t,M())},C.paddingLeftSetter=function(t){u(t)&&t!==D&&(D=t,M())},C.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==L&&(L=t,d&&C.attr({x:y}))},C.textSetter=function(t){void 0!==t&&A.textSetter(t),k(),M()},C["stroke-widthSetter"]=function(t,e){t&&(R=!0),w=this["stroke-width"]=t,T(e,t)},C.strokeSetter=C.fillSetter=C.rSetter=function(t,e){"r"!==e&&("fill"===e&&t&&(R=!0),C[e]=t),T(e,t)},C.anchorXSetter=function(t,e){a=C.anchorX=t,T(e,Math.round(t)-S()-y)},C.anchorYSetter=function(t,e){s=C.anchorY=t,T(e,t-b)},C.xSetter=function(t){C.x=t,L&&(t-=L*((m||d.width)+2*j),C["forceAnimate:x"]=!0),y=Math.round(t),C.attr("translateX",y)},C.ySetter=function(t){b=C.y=Math.round(t),C.attr("translateY",b)};var z=C.css;return g(C,{css:function(t){if(t){var e={};t=O(t),p(C.textProps,function(n){void 0!==t[n]&&(e[n]=t[n],delete t[n])}),A.css(e),"width"in e&&k()}return z.call(C,t)},getBBox:function(){return{width:d.width+2*j,height:d.height+2*j,x:d.x-j,y:d.y-j}},shadow:function(t){return t&&(k(),f&&f.shadow(t)),C},destroy:function(){E(C.element,"mouseenter"),E(C.element,"mouseleave"),A&&(A=A.destroy()),f&&(f=f.destroy()),e.prototype.destroy.call(C),C=P=k=M=T=null}})}}),t.Renderer=n}(c),function(t){var e=t.attr,n=t.createElement,i=t.css,r=t.defined,o=t.each,a=t.extend,s=t.isFirefox,l=t.isMS,c=t.isWebKit,u=t.pick,h=t.pInt,f=t.SVGRenderer,d=t.win,p=t.wrap;a(t.SVGElement.prototype,{htmlCss:function(t){var e=this.element;return(e=t&&"SPAN"===e.tagName&&t.width)&&(delete t.width,this.textWidth=e,this.htmlUpdateTransform()),t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=a(this.styles,t),i(this.element,t),this},htmlGetBBox:function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var t=this.renderer,e=this.element,n=this.translateX||0,a=this.translateY||0,s=this.x||0,l=this.y||0,c=this.textAlign||"left",u={left:0,center:.5,right:1}[c],f=(p=this.styles)&&p.whiteSpace;if(i(e,{marginLeft:n,marginTop:a}),this.shadows&&o(this.shadows,function(t){i(t,{marginLeft:n+1,marginTop:a+1})}),this.inverted&&o(e.childNodes,function(n){t.invertChild(n,e)}),"SPAN"===e.tagName){var d,p=this.rotation,g=this.textWidth&&h(this.textWidth),m=[p,c,e.innerHTML,this.textWidth,this.textAlign].join();(d=g!==this.oldTextWidth)&&!(d=g>this.oldTextWidth)&&((d=this.textPxLength)||(i(e,{width:"",whiteSpace:f||"nowrap"}),d=e.offsetWidth),d=d>g),d&&/[ \-]/.test(e.textContent||e.innerText)&&(i(e,{width:g+"px",display:"block",whiteSpace:f||"normal"}),this.oldTextWidth=g),m!==this.cTT&&(f=t.fontMetrics(e.style.fontSize).b,r(p)&&p!==(this.oldRotation||0)&&this.setSpanRotation(p,u,f),this.getSpanCorrection(!r(p)&&this.textPxLength||e.offsetWidth,f,u,p,c)),i(e,{left:s+(this.xCorr||0)+"px",top:l+(this.yCorr||0)+"px"}),this.cTT=m,this.oldRotation=p}}else this.alignOnAdd=!0},setSpanRotation:function(t,e,n){var r={},o=this.renderer.getTransformKey();r[o]=r.transform="rotate("+t+"deg)",r[o+(s?"Origin":"-origin")]=r.transformOrigin=100*e+"% "+n+"px",i(this.element,r)},getSpanCorrection:function(t,e,n){this.xCorr=-t*n,this.yCorr=-e}}),a(f.prototype,{getTransformKey:function(){return l&&!/Edge/.test(d.navigator.userAgent)?"-ms-transform":c?"-webkit-transform":s?"MozTransform":d.opera?"-o-transform":""},html:function(t,i,r){var s=this.createElement("span"),l=s.element,c=s.renderer,h=c.isSVG,f=function(t,e){o(["opacity","visibility"],function(n){p(t,n+"Setter",function(t,n,i,r){t.call(this,n,i,r),e[i]=n})}),t.addedSetters=!0};return s.textSetter=function(t){t!==l.innerHTML&&delete this.bBox,this.textStr=t,l.innerHTML=u(t,""),s.doTransform=!0},h&&f(s,s.element.style),s.xSetter=s.ySetter=s.alignSetter=s.rotationSetter=function(t,e){"align"===e&&(e="textAlign"),s[e]=t,s.doTransform=!0},s.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},s.attr({text:t,x:Math.round(i),y:Math.round(r)}).css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize,position:"absolute"}),l.style.whiteSpace="nowrap",s.css=s.htmlCss,h&&(s.add=function(t){var i,r=c.box.parentNode,u=[];if(this.parentGroup=t){if(!(i=t.div)){for(;t;)u.push(t),t=t.parentGroup;o(u.reverse(),function(t){function o(e,n){t[n]=e,"translateX"===n?l.left=e+"px":l.top=e+"px",t.doTransform=!0}var l,c=e(t.element,"class");c&&(c={className:c}),i=t.div=t.div||n("div",c,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,pointerEvents:t.styles&&t.styles.pointerEvents},i||r),l=i.style,a(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(i),on:function(){return u[0].div&&s.on.apply({element:u[0].div},arguments),t},translateXSetter:o,translateYSetter:o}),t.addedSetters||f(t,l)})}}else i=r;return i.appendChild(l),s.added=!0,s.alignOnAdd&&s.htmlUpdateTransform(),s}),s}})}(c),function(t){var e=t.defined,n=t.each,i=t.extend,r=t.merge,o=t.pick,a=t.timeUnits,s=t.win;t.Time=function(t){this.update(t,!1)},t.Time.prototype={defaultOptions:{},update:function(e){var n=o(e&&e.useUTC,!0),i=this;this.options=e=r(!0,this.options||{},e),this.Date=e.Date||s.Date,this.timezoneOffset=(this.useUTC=n)&&e.timezoneOffset,this.getTimezoneOffset=this.timezoneOffsetFunction(),(this.variableTimezone=!(n&&!e.getTimezoneOffset&&!e.timezone))||this.timezoneOffset?(this.get=function(t,e){var n=e.getTime(),r=n-i.getTimezoneOffset(e);return e.setTime(r),t=e["getUTC"+t](),e.setTime(n),t},this.set=function(e,n,r){var o;-1!==t.inArray(e,["Milliseconds","Seconds","Minutes"])?n["set"+e](r):(o=i.getTimezoneOffset(n),o=n.getTime()-o,n.setTime(o),n["setUTC"+e](r),e=i.getTimezoneOffset(n),o=n.getTime()+e,n.setTime(o))}):n?(this.get=function(t,e){return e["getUTC"+t]()},this.set=function(t,e,n){return e["setUTC"+t](n)}):(this.get=function(t,e){return e["get"+t]()},this.set=function(t,e,n){return e["set"+t](n)})},makeTime:function(e,n,i,r,a,s){var l,c,u;return this.useUTC?(l=this.Date.UTC.apply(0,arguments),l+=c=this.getTimezoneOffset(l),c!==(u=this.getTimezoneOffset(l))?l+=u-c:c-36e5!==this.getTimezoneOffset(l-36e5)||t.isSafari||(l-=36e5)):l=new this.Date(e,n,o(i,1),o(r,0),o(a,0),o(s,0)).getTime(),l},timezoneOffsetFunction:function(){var e=this,n=this.options,i=s.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t).getTimezoneOffset()};if(n.timezone){if(i)return function(t){return 6e4*-i.tz(t,n.timezone).utcOffset()};t.error(25)}return this.useUTC&&n.getTimezoneOffset?function(t){return 6e4*n.getTimezoneOffset(t)}:function(){return 6e4*(e.timezoneOffset||0)}},dateFormat:function(e,n,i){if(!t.defined(n)||isNaN(n))return t.defaultOptions.lang.invalidDate||"";e=t.pick(e,"%Y-%m-%d %H:%M:%S");var r=this,o=new this.Date(n),a=this.get("Hours",o),s=this.get("Day",o),l=this.get("Date",o),c=this.get("Month",o),u=this.get("FullYear",o),h=t.defaultOptions.lang,f=h.weekdays,d=h.shortWeekdays,p=t.pad;o=t.extend({a:d?d[s]:f[s].substr(0,3),A:f[s],d:p(l),e:p(l,2," "),w:s,b:h.shortMonths[c],B:h.months[c],m:p(c+1),y:u.toString().substr(2,2),Y:u,H:p(a),k:a,I:p(a%12||12),l:a%12||12,M:p(r.get("Minutes",o)),p:12>a?"AM":"PM",P:12>a?"am":"pm",S:p(o.getSeconds()),L:p(Math.round(n%1e3),3)},t.dateFormats);return t.objectEach(o,function(t,i){for(;-1!==e.indexOf("%"+i);)e=e.replace("%"+i,"function"===typeof t?t.call(r,n):t)}),i?e.substr(0,1).toUpperCase()+e.substr(1):e},getTimeTicks:function(t,r,s,l){var c,u,h=this,f=[],d={},p=new h.Date(r),g=t.unitRange,m=t.count||1;if(e(r)){h.set("Milliseconds",p,g>=a.second?0:m*Math.floor(h.get("Milliseconds",p)/m)),g>=a.second&&h.set("Seconds",p,g>=a.minute?0:m*Math.floor(h.get("Seconds",p)/m)),g>=a.minute&&h.set("Minutes",p,g>=a.hour?0:m*Math.floor(h.get("Minutes",p)/m)),g>=a.hour&&h.set("Hours",p,g>=a.day?0:m*Math.floor(h.get("Hours",p)/m)),g>=a.day&&h.set("Date",p,g>=a.month?1:m*Math.floor(h.get("Date",p)/m)),g>=a.month&&(h.set("Month",p,g>=a.year?0:m*Math.floor(h.get("Month",p)/m)),c=h.get("FullYear",p)),g>=a.year&&h.set("FullYear",p,c-c%m),g===a.week&&h.set("Date",p,h.get("Date",p)-h.get("Day",p)+o(l,1)),c=h.get("FullYear",p),l=h.get("Month",p);var v=h.get("Date",p),y=h.get("Hours",p);for(r=p.getTime(),h.variableTimezone&&(u=s-r>4*a.month||h.getTimezoneOffset(r)!==h.getTimezoneOffset(s)),p=p.getTime(),r=1;pf.length&&n(f,function(t){0===t%18e5&&"000000000"===h.dateFormat("%H%M%S%L",t)&&(d[t]="day")})}return f.info=i(t,{higherRanks:d,totalRange:g*m}),f}}}(c),function(t){var e=t.color,n=t.merge;t.defaultOptions={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:t.Time.prototype.defaultOptions,chart:{borderRadius:0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:t.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",padding:8,snap:t.isTouchDevice?25:10,backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,headerFormat:'{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
',shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}},t.setOptions=function(e){return t.defaultOptions=n(!0,t.defaultOptions,e),t.time.update(n(t.defaultOptions.global,t.defaultOptions.time),!1),t.defaultOptions},t.getOptions=function(){return t.defaultOptions},t.defaultPlotOptions=t.defaultOptions.plotOptions,t.time=new t.Time(n(t.defaultOptions.global,t.defaultOptions.time)),t.dateFormat=function(e,n,i){return t.time.dateFormat(e,n,i)}}(c),function(t){var e=t.correctFloat,n=t.defined,i=t.destroyObjectProperties,r=t.fireEvent,o=t.isNumber,a=t.merge,s=t.pick,l=t.deg2rad;t.Tick=function(t,e,n,i){this.axis=t,this.pos=e,this.type=n||"",this.isNewLabel=this.isNew=!0,n||i||this.addLabel()},t.Tick.prototype={addLabel:function(){var t,i=this.axis,r=i.options,o=i.chart,l=i.categories,c=i.names,u=this.pos,h=r.labels,f=u===(p=i.tickPositions)[0],d=u===p[p.length-1],p=(c=l?s(l[u],c[u],u):u,l=this.label,p.info);i.isDatetimeAxis&&p&&(t=r.dateTimeLabelFormats[p.higherRanks[u]||p.unitName]),this.isFirst=f,this.isLast=d,r=i.labelFormatter.call({axis:i,chart:o,isFirst:f,isLast:d,dateTimeLabelFormat:t,value:i.isLog?e(i.lin2log(c)):c,pos:u}),n(l)?l&&l.attr({text:r}):((this.label=l=n(r)&&h.enabled?o.renderer.text(r,0,0,h.useHTML).css(a(h.style)).add(i.labelGroup):null)&&(l.textPxLength=l.getBBox().width),this.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(t){var e,n=this.axis,i=n.options.labels,r=t.x,o=n.chart.chartWidth,a=n.chart.spacing,c=s(n.labelLeft,Math.min(n.pos,a[3])),u=(a=s(n.labelRight,Math.max(n.isRadial?0:n.pos+n.len,o-a[1])),this.label),h=this.rotation,f={left:0,center:.5,right:1}[n.labelAlign||u.attr("align")],d=u.getBBox().width,p=n.getSlotWidth(),g=p,m=1,v={};h||!1===i.overflow?0>h&&r-f*da&&(e=Math.round((o-r)/Math.cos(h*l))):(o=r+(1-f)*d,r-f*da&&(g=a-t.x+g*f,m=-1),(g=Math.min(p,g))g||n.autoRotation&&(u.styles||{}).width)&&(e=g)),e&&(v.width=e,(i.style||{}).textOverflow||(v.textOverflow="ellipsis"),u.css(v))},getPosition:function(e,n,i,o){var a=this.axis,s=a.chart,l=o&&s.oldChartHeight||s.chartHeight;return e={x:e?t.correctFloat(a.translate(n+i,null,null,o)+a.transB):a.left+a.offset+(a.opposite?(o&&s.oldChartWidth||s.chartWidth)-a.right-a.left:0),y:e?l-a.bottom+a.offset-(a.opposite?a.height:0):t.correctFloat(l-a.translate(n+i,null,null,o)-a.transB)},r(this,"afterGetPosition",{pos:e}),e},getLabelPosition:function(t,e,i,o,a,s,c,u){var h=this.axis,f=h.transA,d=h.reversed,p=h.staggerLines,g=h.tickRotCorr||{x:0,y:0},m=a.y,v=o||h.reserveSpaceDefault?0:-h.labelOffset*("center"===h.labelAlign?.5:1),y={};return n(m)||(m=0===h.side?i.rotation?-8:-i.getBBox().height:2===h.side?g.y+8:Math.cos(i.rotation*l)*(g.y-i.getBBox(!1,0).height/2)),t=t+a.x+v+g.x-(s&&o?s*f*(d?-1:1):0),e=e+m-(s&&!o?s*f*(d?1:-1):0),p&&(i=c/(u||1)%p,h.opposite&&(i=p-i-1),e+=h.labelOffset/p*i),y.x=t,y.y=Math.round(e),r(this,"afterGetLabelPosition",{pos:y}),y},getMarkPath:function(t,e,n,i,r,o){return o.crispLine(["M",t,e,"L",t+(r?0:-n),e+(r?n:0)],i)},renderGridLine:function(t,e,n){var i=this.axis,r=i.options,o=this.gridLine,a={},s=this.pos,l=this.type,c=i.tickmarkOffset,u=i.chart.renderer,h=l?l+"Grid":"grid",f=r[h+"LineWidth"],d=r[h+"LineColor"];r=r[h+"LineDashStyle"];o||(a.stroke=d,a["stroke-width"]=f,r&&(a.dashstyle=r),l||(a.zIndex=1),t&&(a.opacity=0),this.gridLine=o=u.path().attr(a).addClass("highcharts-"+(l?l+"-":"")+"grid-line").add(i.gridGroup)),!t&&o&&(t=i.getPlotLinePath(s+c,o.strokeWidth()*n,t,!0))&&o[this.isNew?"attr":"animate"]({d:t,opacity:e})},renderMark:function(t,e,n){var i=this.axis,r=i.options,o=i.chart.renderer,a=this.type,l=a?a+"Tick":"tick",c=i.tickSize(l),u=this.mark,h=!u,f=t.x;t=t.y;var d=s(r[l+"Width"],!a&&i.isXAxis?1:0);r=r[l+"Color"];c&&(i.opposite&&(c[0]=-c[0]),h&&(this.mark=u=o.path().addClass("highcharts-"+(a?a+"-":"")+"tick").add(i.axisGroup),u.attr({stroke:r,"stroke-width":d})),u[h?"attr":"animate"]({d:this.getMarkPath(f,t,c[0],u.strokeWidth()*n,i.horiz,o),opacity:e}))},renderLabel:function(t,e,n,i){var r=(h=this.axis).horiz,a=h.options,l=this.label,c=a.labels,u=c.step,h=h.tickmarkOffset,f=!0,d=t.x;t=t.y,l&&o(d)&&(l.xy=t=this.getLabelPosition(d,t,l,r,c,h,i,u),this.isFirst&&!this.isLast&&!s(a.showFirstLabel,1)||this.isLast&&!this.isFirst&&!s(a.showLastLabel,1)?f=!1:!r||c.step||c.rotation||e||0===n||this.handleOverflow(t),u&&i%u&&(f=!1),f&&o(t.y)?(t.opacity=n,l[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(l.attr("y",-9999),this.isNewLabel=!0))},render:function(e,n,i){var r=(c=this.axis).horiz,o=this.getPosition(r,this.pos,c.tickmarkOffset,n),a=o.x,l=o.y,c=r&&a===c.pos+c.len||!r&&l===c.pos?-1:1;i=s(i,1),this.isActive=!0,this.renderGridLine(n,i,c),this.renderMark(o,i,c),this.renderLabel(o,n,i,e),this.isNew=!1,t.fireEvent(this,"afterRender")},destroy:function(){i(this,this.axis)}}}(c);var u=function(t){var e=t.addEvent,n=t.animObject,i=t.arrayMax,r=t.arrayMin,o=t.color,a=t.correctFloat,s=t.defaultOptions,l=t.defined,c=t.deg2rad,u=t.destroyObjectProperties,h=t.each,f=t.extend,d=t.fireEvent,p=t.format,g=t.getMagnitude,m=t.grep,v=t.inArray,y=t.isArray,b=t.isNumber,x=t.isString,w=t.merge,_=t.normalizeTickInterval,S=t.objectEach,k=t.pick,M=t.removeEvent,O=t.splat,T=t.syncTimeout,P=t.Tick,C=function(){this.init.apply(this,arguments)};return t.extend(C.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,labels:{enabled:!0,style:{color:"#666666",cursor:"default",fontSize:"11px"},x:0},maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",minPadding:.01,startOfWeek:1,startOnTick:!1,tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle",style:{color:"#666666"}},type:"linear",minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",tickColor:"#ccd6eb"},defaultYAxisOptions:{endOnTick:!0,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{allowOverlap:!1,enabled:!1,formatter:function(){return t.numberFormat(this.total,-1)},style:{fontSize:"11px",fontWeight:"bold",color:"#000000",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},title:{rotation:0}},init:function(t,n){var i=n.isX,r=this;r.chart=t,r.horiz=t.inverted&&!r.isZAxis?!i:i,r.isXAxis=i,r.coll=r.coll||(i?"xAxis":"yAxis"),d(this,"init",{userOptions:n}),r.opposite=n.opposite,r.side=n.side||(r.horiz?r.opposite?0:2:r.opposite?1:3),r.setOptions(n);var o=this.options,a=o.type;r.labelFormatter=o.labels.formatter||r.defaultLabelFormatter,r.userOptions=n,r.minPixelPadding=0,r.reversed=o.reversed,r.visible=!1!==o.visible,r.zoomEnabled=!1!==o.zoomEnabled,r.hasNames="category"===a||!0===o.categories,r.categories=o.categories||r.hasNames,r.names||(r.names=[],r.names.keys={}),r.plotLinesAndBandsGroups={},r.isLog="logarithmic"===a,r.isDatetimeAxis="datetime"===a,r.positiveValuesOnly=r.isLog&&!r.allowNegativeLog,r.isLinked=l(o.linkedTo),r.ticks={},r.labelEdge=[],r.minorTicks={},r.plotLinesAndBands=[],r.alternateBands={},r.len=0,r.minRange=r.userMinRange=o.minRange||o.maxZoom,r.range=o.range,r.offset=o.offset||0,r.stacks={},r.oldStacks={},r.stacksTouched=0,r.max=null,r.min=null,r.crosshair=k(o.crosshair,O(t.options.tooltip.crosshairs)[i?0:1],!1),n=r.options.events,-1===v(r,t.axes)&&(i?t.axes.splice(t.xAxis.length,0,r):t.axes.push(r),t[r.coll].push(r)),r.series=r.series||[],t.inverted&&!r.isZAxis&&i&&void 0===r.reversed&&(r.reversed=!0),S(n,function(t,n){e(r,n,t)}),r.lin2log=o.linearToLogConverter||r.lin2log,r.isLog&&(r.val2lin=r.log2lin,r.lin2val=r.lin2log),d(this,"afterInit")},setOptions:function(t){this.options=w(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],w(s[this.coll],t)),d(this,"afterSetOptions",{userOptions:t})},defaultLabelFormatter:function(){var e,n=this.axis,i=this.value,r=n.chart.time,o=n.categories,a=this.dateTimeLabelFormat,l=(c=s.lang).numericSymbols,c=c.numericSymbolMagnitude||1e3,u=l&&l.length,h=n.options.labels.format;n=n.isLog?Math.abs(i):n.tickInterval;if(h)e=p(h,this,r);else if(o)e=i;else if(a)e=r.dateFormat(a,i);else if(u&&1e3<=n)for(;u--&&void 0===e;)n>=(r=Math.pow(c,u+1))&&0===10*i%r&&null!==l[u]&&0!==i&&(e=t.numberFormat(i/r,-1)+l[u]);return void 0===e&&(e=1e4<=Math.abs(i)?t.numberFormat(i,-1):t.numberFormat(i,-1,void 0,"")),e},getSeriesExtremes:function(){var t=this,e=t.chart;d(this,"getSeriesExtremes",null,function(){t.hasVisibleSeries=!1,t.dataMin=t.dataMax=t.threshold=null,t.softThreshold=!t.isXAxis,t.buildStacks&&t.buildStacks(),h(t.series,function(n){if(n.visible||!e.options.chart.ignoreHiddenSeries){var o,a=n.options,s=a.threshold;t.hasVisibleSeries=!0,t.positiveValuesOnly&&0>=s&&(s=null),t.isXAxis?(a=n.xData).length&&(n=r(a),o=i(a),b(n)||n instanceof Date||(a=m(a,b),n=r(a),o=i(a)),a.length&&(t.dataMin=Math.min(k(t.dataMin,a[0],n),n),t.dataMax=Math.max(k(t.dataMax,a[0],o),o))):(n.getExtremes(),o=n.dataMax,n=n.dataMin,l(n)&&l(o)&&(t.dataMin=Math.min(k(t.dataMin,n),n),t.dataMax=Math.max(k(t.dataMax,o),o)),l(s)&&(t.threshold=s),(!a.softThreshold||t.positiveValuesOnly)&&(t.softThreshold=!1))}})}),d(this,"afterGetSeriesExtremes")},translate:function(t,e,n,i,r,o){var a=this.linkedParent||this,s=1,l=0,c=i?a.oldTransA:a.transA;i=i?a.oldMin:a.min;var u=a.minPixelPadding;return r=(a.isOrdinal||a.isBroken||a.isLog&&r)&&a.lin2val,c||(c=a.transA),n&&(s*=-1,l=a.len),a.reversed&&(l-=(s*=-1)*(a.sector||a.len)),e?(t=(t*s+l-u)/c+i,r&&(t=a.lin2val(t))):(r&&(t=a.val2lin(t)),t=b(i)?s*(t-i)*c+l+s*u+(b(o)?c*o:0):void 0),t},toPixels:function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},toValue:function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(t,e,n,i,r){var o,a,s,l=this.chart,c=this.left,u=this.top,h=n&&l.oldChartHeight||l.chartHeight,f=n&&l.oldChartWidth||l.chartWidth;o=this.transB;var d=function(t,e,n){return(tn)&&(i?t=Math.min(Math.max(e,t),n):s=!0),t};return r=k(r,this.translate(t,null,null,n)),r=Math.min(Math.max(-1e5,r),1e5),t=n=Math.round(r+o),o=a=Math.round(h-r-o),b(r)?this.horiz?(o=u,a=h-this.bottom,t=n=d(t,c,c+this.width)):(t=c,n=f-this.right,o=a=d(o,u,u+this.height)):(s=!0,i=!1),s&&!i?null:l.renderer.crispLine(["M",t,o,"L",n,a],e||1)},getLinearTickPositions:function(t,e,n){var i,r=a(Math.floor(e/t)*t);n=a(Math.ceil(n/t)*t);var o,s=[];if(a(r+t)===r&&(o=20),this.single)return[e];for(e=r;e<=n&&(s.push(e),(e=a(e+t,o))!==i);)i=e;return s},getMinorTickInterval:function(){var t=this.options;return!0===t.minorTicks?k(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},getMinorTickPositions:function(){var t=this,e=t.options,n=t.tickPositions,i=t.minorTickInterval,r=[],o=t.pointRangePadding||0,a=t.min-o,s=(o=t.max+o)-a;if(s&&s/i=this.minRange,t=[f-(t=((c=this.minRange)-d+f)/2),k(u.min,f-t)],e&&(t[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),d=[(f=i(t))+c,k(u.max,f+c)],e&&(d[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),(d=r(d))-f=O?(n=O,x=0):s.dataMax<=O&&(i=O,y=0)),s.min=k(r,n,s.dataMin),s.max=k(o,i,s.dataMax)),f&&(s.positiveValuesOnly&&!e&&0>=Math.min(s.min,k(s.dataMin,s.min))&&t.error(10,1),s.min=a(s.log2lin(s.min),15),s.max=a(s.log2lin(s.max),15)),s.range&&l(s.max)&&(s.userMin=s.min=r=Math.max(s.dataMin,s.minFromRange()),s.userMax=o=s.max,s.range=null),d(s,"foundExtremes"),s.beforePadding&&s.beforePadding(),s.adjustForMinRange(),!(M||s.axisPointRange||s.usePercentage||v)&&l(s.min)&&l(s.max)&&(c=s.max-s.min)&&(!l(r)&&x&&(s.min-=c*x),!l(o)&&y&&(s.max+=c*y)),b(u.softMin)&&!b(s.userMin)&&(s.min=Math.min(s.min,u.softMin)),b(u.softMax)&&!b(s.userMax)&&(s.max=Math.max(s.max,u.softMax)),b(u.floor)&&(s.min=Math.max(s.min,u.floor)),b(u.ceiling)&&(s.max=Math.min(s.max,u.ceiling)),T&&l(s.dataMin)&&(O=O||0,!l(r)&&s.min=O?s.min=O:!l(o)&&s.max>O&&s.dataMax<=O&&(s.max=O)),s.tickInterval=s.min===s.max||void 0===s.min||void 0===s.max?1:v&&!w&&S===s.linkedParent.options.tickPixelInterval?w=s.linkedParent.tickInterval:k(w,this.tickAmount?(s.max-s.min)/Math.max(this.tickAmount-1,1):void 0,M?1:(s.max-s.min)*S/Math.max(s.len,S)),m&&!e&&h(s.series,function(t){t.processData(s.min!==s.oldMin||s.max!==s.oldMax)}),s.setAxisTranslation(!0),s.beforeSetTickPositions&&s.beforeSetTickPositions(),s.postProcessTickInterval&&(s.tickInterval=s.postProcessTickInterval(s.tickInterval)),s.pointRange&&!w&&(s.tickInterval=Math.max(s.pointRange,s.tickInterval)),e=k(u.minTickInterval,s.isDatetimeAxis&&s.closestPointRange),!w&&s.tickIntervals.tickInterval&&1e3s.max)),!!this.tickAmount)),this.tickAmount||(s.tickInterval=s.unsquish()),this.setTickPositions()},setTickPositions:function(){var t,e=this.options,n=e.tickPositions;t=this.getMinorTickInterval();var i=e.tickPositioner,r=e.startOnTick,o=e.endOnTick;this.tickmarkOffset=this.categories&&"between"===e.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===t&&this.tickInterval?this.tickInterval/5:t,this.single=this.min===this.max&&l(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==e.allowDecimals),this.tickPositions=t=n&&n.slice(),!t&&((t=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max)).length>this.len&&((t=[t[0],t.pop()])[0]===t[1]&&(t.length=1)),this.tickPositions=t,i&&(i=i.apply(this,[this.min,this.max])))&&(this.tickPositions=t=i),this.paddedTicks=t.slice(0),this.trimTicks(t,r,o),this.isLinked||(this.single&&2>t.length&&(this.min-=.5,this.max+=.5),n||i||this.adjustTickAmount()),d(this,"afterSetTickPositions")},trimTicks:function(t,e,n){var i=t[0],r=t[t.length-1],o=this.minPointOffset||0;if(!this.isLinked){if(e&&-1/0!==i)this.min=i;else for(;this.min-o>t[0];)t.shift();if(n)this.max=r;else for(;this.max+oe&&(this.finalTickAmt=e,e=5),this.tickAmount=e},adjustTickAmount:function(){var t=this.tickInterval,e=this.tickPositions,n=this.tickAmount,i=this.finalTickAmt,r=e&&e.length,o=k(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(rn&&(this.tickInterval*=2,this.setTickPositions());if(l(i)){for(t=n=e.length;t--;)(3===i&&1===t%2||2>=i&&0r&&(t=r)),l(i)&&(er&&(e=r))),this.displayBtn=void 0!==t||void 0!==e,this.setExtremes(t,e,!1,void 0,{trigger:"zoom"})),!0},setAxisSize:function(){var e=this.chart,n=(s=this.options).offsets||[0,0,0,0],i=this.horiz,r=this.width=Math.round(t.relativeLength(k(s.width,e.plotWidth-n[3]+n[1]),e.plotWidth)),o=this.height=Math.round(t.relativeLength(k(s.height,e.plotHeight-n[0]+n[2]),e.plotHeight)),a=this.top=Math.round(t.relativeLength(k(s.top,e.plotTop+n[0]),e.plotHeight,e.plotTop)),s=this.left=Math.round(t.relativeLength(k(s.left,e.plotLeft+n[3]),e.plotWidth,e.plotLeft));this.bottom=e.chartHeight-o-a,this.right=e.chartWidth-r-s,this.len=Math.max(i?r:o,0),this.pos=i?s:a},getExtremes:function(){var t=this.isLog;return{min:t?a(this.lin2log(this.min)):this.min,max:t?a(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(t){var e=(n=this.isLog)?this.lin2log(this.min):this.min,n=n?this.lin2log(this.max):this.max;return null===t||-1/0===t?t=e:1/0===t?t=n:e>t?t=e:nt?"right":195t?"left":"center"},tickSize:function(t){var e=this.options,n=e[t+"Length"],i=k(e[t+"Width"],"tick"===t&&this.isXAxis?1:0);if(i&&n)return"inside"===e[t+"Position"]&&(n=-n),[n,i]},labelMetrics:function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},unsquish:function(){var t,e,n,i=this.options.labels,r=this.horiz,o=this.tickInterval,s=o,u=this.len/(((this.categories?1:0)+this.max-this.min)/o),f=i.rotation,d=this.labelMetrics(),p=Number.MAX_VALUE,g=function(t){return t=1<(t/=u||1)?Math.ceil(t):1,a(t*o)};return r?(n=!i.staggerLines&&!i.step&&(l(f)?[f]:u=n)&&((i=(e=g(Math.abs(d.h/Math.sin(c*n))))+Math.abs(n/360))(n.step||0)&&!n.rotation&&(this.staggerLines||1)*this.len/i||!e&&(n.style&&parseInt(n.style.width,10)||r&&r-t.spacing[3]||.33*t.chartWidth)},renderUnsquish:function(){var t,e,n,i=this.chart,r=i.renderer,o=this.tickPositions,a=this.ticks,s=this.options.labels,l=this.horiz,c=this.getSlotWidth(),u=Math.max(1,Math.round(c-2*(s.padding||5))),f={},d=this.labelMetrics(),p=s.style&&s.style.textOverflow,g=0;if(x(s.rotation)||(f.rotation=s.rotation||0),h(o,function(t){(t=a[t])&&t.label&&t.label.textPxLength>g&&(g=t.label.textPxLength)}),this.maxLabelLength=g,this.autoRotation)g>u&&g>d.h?f.rotation=this.labelRotation:this.labelRotation=0;else if(c&&(t=u,!p))for(e="clip",u=o.length;!l&&u--;)n=o[u],(n=a[n].label)&&(n.styles&&"ellipsis"===n.styles.textOverflow?n.css({textOverflow:"clip"}):n.textPxLength>c&&n.css({width:c+"px"}),n.getBBox().height>this.len/o.length-(d.h-d.f)&&(n.specificTextOverflow="ellipsis"));f.rotation&&(t=g>.5*i.chartHeight?.33*i.chartHeight:i.chartHeight,p||(e="ellipsis")),(this.labelAlign=s.align||this.autoLabelAlign(this.labelRotation))&&(f.align=this.labelAlign),h(o,function(n){var i=(n=a[n])&&n.label,r={};i&&(i.attr(f),!t||s.style&&s.style.width||!(t=this.min&&t<=this.max)&&(i[t]||(i[t]=new P(this,t)),r&&i[t].isNew&&i[t].render(e,!0,.1),i[t].render(e))},render:function(){var e,i,r=this,o=r.chart,a=r.options,s=r.isLog,l=r.isLinked,c=r.tickPositions,u=r.axisTitle,f=r.ticks,p=r.minorTicks,g=r.alternateBands,m=a.stackLabels,v=a.alternateGridColor,y=r.tickmarkOffset,x=r.axisLine,w=r.showAxis,_=n(o.renderer.globalAnimation);r.labelEdge.length=0,r.overlap=!1,h([f,p,g],function(t){S(t,function(t){t.isActive=!1})}),(r.hasData()||l)&&(r.minorTickInterval&&!r.categories&&h(r.getMinorTickPositions(),function(t){r.renderMinorTick(t)}),c.length&&(h(c,function(t,e){r.renderTick(t,e)}),y&&(0===r.min||r.single)&&(f[-1]||(f[-1]=new P(r,-1,null,!0)),f[-1].render(-1))),v&&h(c,function(n,a){i=void 0!==c[a+1]?c[a+1]+y:r.max-y,0===a%2&&ne&&(!s||p<=a)&&void 0!==p&&u.push(p),p>a&&(g=!0),p=d}else e=this.lin2log(e),a=this.lin2log(a),t=s?this.getMinorTickInterval():l.tickInterval,t=o("auto"===t?null:t,this._minorAutoInterval,l.tickPixelInterval/(s?5:1)*(a-e)/((s?c/this.tickPositions.length:c)||1)),t=r(t,null,n(t)),u=i(this.getLinearTickPositions(t,e,a),this.log2lin),s||(this._minorAutoInterval=t/5);return s||(this.tickInterval=t),u},e.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},e.prototype.lin2log=function(t){return Math.pow(10,t)}}(c),function(t,e){var n=t.arrayMax,i=t.arrayMin,r=t.defined,o=t.destroyObjectProperties,a=t.each,s=t.erase,l=t.merge,c=t.pick;t.PlotLineOrBand=function(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)},t.PlotLineOrBand.prototype={render:function(){var e=this,n=e.axis,i=n.horiz,o=e.options,a=o.label,s=e.label,u=o.to,h=o.from,f=o.value,d=r(h)&&r(u),p=r(f),g=e.svgElem,m=!g,v=[],y=o.color,b=c(o.zIndex,0),x=o.events,w=(v={class:"highcharts-plot-"+(d?"band ":"line ")+(o.className||"")},{}),_=n.chart.renderer,S=d?"bands":"lines";if(n.isLog&&(h=n.log2lin(h),u=n.log2lin(u),f=n.log2lin(f)),p?(v={stroke:y,"stroke-width":o.width},o.dashStyle&&(v.dashstyle=o.dashStyle)):d&&(y&&(v.fill=y),o.borderWidth&&(v.stroke=o.borderColor,v["stroke-width"]=o.borderWidth)),w.zIndex=b,S+="-"+b,(y=n.plotLinesAndBandsGroups[S])||(n.plotLinesAndBandsGroups[S]=y=_.g("plot-"+S).attr(w).add()),m&&(e.svgElem=g=_.path().attr(v).add(y)),p)v=n.getPlotLinePath(f,g.strokeWidth());else{if(!d)return;v=n.getPlotBandPath(h,u,o)}return m&&v&&v.length?(g.attr({d:v}),x&&t.objectEach(x,function(t,n){g.on(n,function(t){x[n].apply(e,[t])})})):g&&(v?(g.show(),g.animate({d:v})):(g.hide(),s&&(e.label=s=s.destroy()))),a&&r(a.text)&&v&&v.length&&0this.max&&e>this.max,r&&i)for(t&&(n=r.toString()===i.toString(),s=0),t=0;tf-l?f:f-l);else{if(!u)return!1;a[t]=Math.max(r,i+l+n>e?i:i+l)}}.apply(0,c)?!1!==function(t,e,n,i){var r;return ie-o?r=!1:a[t]=ie-n/2?e-n-2:i-n/2,r}.apply(0,u)||i||(f(!0),d()):i?a.x=a.y=0:(f(!0),d())};return(r.inverted||1p&&(c=!1),t=(e.series&&e.series.yAxis&&e.series.yAxis.pos)+(e.plotY||0),t-=a.plotTop,o.push({target:e.isHeader?a.plotHeight+h:t,rank:e.isHeader?1:0,size:n.tt.getBBox().height+1,point:e,x:p,tt:d})}}),this.cleanSplit(),t.distribute(o,a.plotHeight+h),e(o,function(t){var e=t.point,n=e.series;t.tt.attr({visibility:void 0===t.pos?"hidden":"inherit",x:c||e.isHeader?t.x:e.plotX+a.plotLeft+s(u.distance,16),y:t.pos+a.plotTop,anchorX:e.isHeader?e.plotX+a.plotLeft:e.plotX+n.xAxis.pos,anchorY:e.isHeader?t.pos+a.plotTop-15:e.plotY+n.yAxis.pos})})},updatePosition:function(t){var e=this.chart,n=this.getLabel();n=(this.options.positioner||this.getPosition).call(this,n.width,n.height,t);this.move(Math.round(n.x),Math.round(n.y||0),t.plotX+e.plotLeft,t.plotY+e.plotTop)},getDateFormat:function(t,e,n,i){var r,o,a=this.chart.time,s=a.dateFormat("%m-%d %H:%M:%S.%L",e),l={millisecond:15,second:12,minute:9,hour:6,day:3},c="millisecond";for(o in u){if(t===u.week&&+a.dateFormat("%w",e)===n&&"00:00:00.000"===s.substr(6)){o="week";break}if(u[o]>t){o=c;break}if(l[o]&&s.substr(l[o])!=="01-01 00:00:00.000".substr(l[o]))break;"week"!==o&&(c=o)}return o&&(r=i[o]),r},getXDateFormat:function(t,e,n){e=e.dateTimeLabelFormats;var i=n&&n.closestPointRange;return(i?this.getDateFormat(i,t.x,n.options.startOfWeek,e):e.day)||e.year},tooltipFooterHeaderFormatter:function(t,n){n=n?"footer":"header";var o=t.series,a=o.tooltipOptions,s=a.xDateFormat,l=o.xAxis,c=l&&"datetime"===l.options.type&&r(t.key),u=a[n+"Format"];return c&&!s&&(s=this.getXDateFormat(t,a,l)),c&&s&&e(t.point&&t.point.tooltipDateKeys||["key"],function(t){u=u.replace("{point."+t+"}","{point."+t+":"+s+"}")}),i(u,{point:t,series:o},this.chart.time)},bodyFormatter:function(t){return o(t,function(t){var e=t.series.tooltipOptions;return(e[(t.point.formatPrefix||"point")+"Formatter"]||t.point.tooltipFormatter).call(t.point,e[(t.point.formatPrefix||"point")+"Format"])})}}}(c),function(t){var e=t.addEvent,n=t.attr,i=t.charts,r=t.color,o=t.css,a=t.defined,s=t.each,l=t.extend,c=t.find,u=t.fireEvent,h=t.isNumber,f=t.isObject,d=t.offset,p=t.pick,g=t.splat,m=t.Tooltip;t.Pointer=function(t,e){this.init(t,e)},t.Pointer.prototype={init:function(t,e){this.options=e,this.chart=t,this.runChartClick=e.chart.events&&!!e.chart.events.click,this.pinchDown=[],this.lastValidTouch={},m&&(t.tooltip=new m(t,e.tooltip),this.followTouchMove=p(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},zoomOption:function(t){var e=(i=this.chart).options.chart,n=e.zoomType||"",i=i.inverted;/touch/.test(t.type)&&(n=p(e.pinchType,n)),this.zoomX=t=/x/.test(n),this.zoomY=n=/y/.test(n),this.zoomHor=t&&!i||n&&i,this.zoomVert=n&&!i||t&&i,this.hasZoom=t||n},normalize:function(t,e){var n;return n=t.touches?t.touches.length?t.touches.item(0):t.changedTouches[0]:t,e||(this.chartPosition=e=d(this.chart.container)),l(t,{chartX:Math.round(n.pageX-e.left),chartY:Math.round(n.pageY-e.top)})},getCoordinates:function(t){var e={xAxis:[],yAxis:[]};return s(this.chart.axes,function(n){e[n.isXAxis?"xAxis":"yAxis"].push({axis:n,value:n.toValue(t[n.horiz?"chartX":"chartY"])})}),e},findNearestKDPoint:function(t,e,n){var i;return s(t,function(t){var r=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(n,r),(r=f(t,!0))&&!(r=!f(i,!0))){r=i.distX-t.distX;var o=i.dist-t.dist,a=(t.series.group&&t.series.group.zIndex)-(i.series.group&&i.series.group.zIndex);r=0<(0!==r&&e?r:0!==o?o:0!==a?a:i.series.index>t.series.index?-1:1)}r&&(i=t)}),i},getPointFromEvent:function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},getChartCoordinatesFromPoint:function(t,e){var n=(i=t.series).xAxis,i=i.yAxis,r=p(t.clientX,t.plotX),o=t.shapeArgs;return n&&i?e?{chartX:n.len+n.pos-r,chartY:i.len+i.pos-t.plotY}:{chartX:r+n.pos,chartY:t.plotY+i.pos}:o&&o.x&&o.y?{chartX:o.x,chartY:o.y}:void 0},getHoverData:function(e,n,i,r,o,a,l){var u,h=[],d=l&&l.isBoosting;return r=!(!r||!e),l=n&&!n.stickyTracking?[n]:t.grep(i,function(t){return t.visible&&!(!o&&t.directTouch)&&p(t.options.enableMouseTracking,!0)&&t.stickyTracking}),n=(u=r?e:this.findNearestKDPoint(l,o,a))&&u.series,u&&(o&&!n.noSharedTooltip?(l=t.grep(i,function(t){return t.visible&&!(!o&&t.directTouch)&&p(t.options.enableMouseTracking,!0)&&!t.noSharedTooltip}),s(l,function(t){var e=c(t.points,function(t){return t.x===u.x&&!t.isNull});f(e)&&(d&&(e=t.getPoint(e)),h.push(e))})):h.push(u)),{hoverPoint:u,hoverSeries:n,hoverPoints:h}},runPointActions:function(n,r){var o,a=this.chart,l=a.tooltip&&a.tooltip.options.enabled?a.tooltip:void 0,c=!!l&&l.shared,u=(h=r||a.hoverPoint)&&h.series||a.hoverSeries,h=(u=this.getHoverData(h,u,a.series,!!r||u&&u.directTouch&&this.isDirectTouch,c,n,{isBoosting:a.isBoosting})).hoverPoint;if(o=u.hoverPoints,r=(u=u.hoverSeries)&&u.tooltipOptions.followPointer,c=c&&u&&!u.noSharedTooltip,h&&(h!==a.hoverPoint||l&&l.isHidden)){if(s(a.hoverPoints||[],function(e){-1===t.inArray(e,o)&&e.setState()}),s(o||[],function(t){t.setState("hover")}),a.hoverSeries!==u&&u.onMouseOver(),a.hoverPoint&&a.hoverPoint.firePointEvent("mouseOut"),!h.series)return;h.firePointEvent("mouseOver"),a.hoverPoints=o,a.hoverPoint=h,l&&l.refresh(c?o:h,n)}else r&&l&&!l.isHidden&&(h=l.getAnchor([{}],n),l.updatePosition({plotX:h[0],plotY:h[1]}));this.unDocMouseMove||(this.unDocMouseMove=e(a.container.ownerDocument,"mousemove",function(e){var n=i[t.hoverChartIndex];n&&n.pointer.onDocumentMouseMove(e)})),s(a.axes,function(e){var i=p(e.crosshair.snap,!0),r=i?t.find(o,function(t){return t.series[e.coll]===e}):void 0;r||!i?e.drawCrosshair(n,r):e.hideCrosshair()})},reset:function(t,e){var n=this.chart,i=n.hoverSeries,r=n.hoverPoint,o=n.hoverPoints,a=n.tooltip,l=a&&a.shared?o:r;t&&l&&s(g(l),function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?a&&l&&(a.refresh(l),r&&(r.setState(r.state,!0),s(n.axes,function(t){t.crosshair&&t.drawCrosshair(null,r)}))):(r&&r.onMouseOut(),o&&s(o,function(t){t.setState()}),i&&i.onMouseOut(),a&&a.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),s(n.axes,function(t){t.hideCrosshair()}),this.hoverX=n.hoverPoints=n.hoverPoint=null)},scaleGroups:function(t,e){var n,i=this.chart;s(i.series,function(r){n=t||r.getPlotBox(),r.xAxis&&r.xAxis.zoomEnabled&&r.group&&(r.group.attr(n),r.markerGroup&&(r.markerGroup.attr(n),r.markerGroup.clip(e?i.clipRect:null)),r.dataLabelsGroup&&r.dataLabelsGroup.attr(n))}),i.clipRect.attr(e||i.clipBox)},dragStart:function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},drag:function(t){var e,n=this.chart,i=n.options.chart,o=t.chartX,a=t.chartY,s=this.zoomHor,l=this.zoomVert,c=n.plotLeft,u=n.plotTop,h=n.plotWidth,f=n.plotHeight,d=this.selectionMarker,p=this.mouseDownX,g=this.mouseDownY,m=i.panKey&&t[i.panKey+"Key"];d&&d.touch||(oc+h&&(o=c+h),au+f&&(a=u+f),this.hasDragged=Math.sqrt(Math.pow(p-o,2)+Math.pow(g-a,2)),10b.max&&(e=b.max-l,u=!0),u?(_-=.8*(_-a[f][0]),x||(k-=.8*(k-a[f][1])),n()):a[f]=[_,k],y||(o[f]=c-m,o[g]=l),o=y?1/v:v,r[g]=l,r[f]=e,i[y?t?"scaleY":"scaleX":"scale"+d]=v,i["translate"+d]=o*m+(_-o*w)},pinch:function(t){var e=this,s=e.chart,l=e.pinchDown,c=t.touches,u=c.length,h=e.lastValidTouch,f=e.hasZoom,d=e.selectionMarker,p={},g=1===u&&(e.inClass(t.target,"highcharts-tracker")&&s.runTrackerClick||e.runChartClick),m={};1t-6&&ac?this.maxItemWidth:t.itemWidth;i&&this.itemX-n+e>c&&(this.itemX=n,this.itemY+=a+this.lastLineHeight+o,this.lastLineHeight=0),this.lastItemY=a+this.itemY+o,this.lastLineHeight=Math.max(r,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],i?this.itemX+=e:(this.itemY+=a+r+o,this.lastLineHeight=r),this.offsetWidth=l||Math.max((i?this.itemX-n-(t.checkbox?0:s):e)+n,this.offsetWidth)},getAllItems:function(){var t=[];return o(this.chart.series,function(e){var n=e&&e.options;e&&u(n.showInLegend,!r(n.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===n.legendType?e.data:e)))}),a(this,"afterGetAllItems",{allItems:t}),t},getAlignment:function(){var t=this.options;return t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},adjustMargins:function(t,e){var n=this.chart,i=this.options,a=this.getAlignment();a&&o([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(o,s){o.test(a)&&!r(t[s])&&(n[l[s]]=Math.max(n[l[s]],n.legend[(s+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][s]*i[s%2?"x":"y"]+u(i.margin,12)+e[s]+(0===s&&void 0!==n.options.title.margin?n.titleOffset+n.options.title.margin:0)))})},render:function(){var t,e,n,i,r=this.chart,a=r.renderer,s=this.group,l=this.box,u=this.options,h=this.padding;this.itemX=h,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,s||(this.group=s=a.g("legend").attr({zIndex:7}).add(),this.contentGroup=a.g().attr({zIndex:1}).add(s),this.scrollGroup=a.g().add(this.contentGroup)),this.renderTitle(),t=this.getAllItems(),f(t,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),u.reversed&&t.reverse(),this.allItems=t,this.display=e=!!t.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,o(t,this.renderItem,this),o(t,this.layoutItem,this),n=(u.width||this.offsetWidth)+h,i=this.lastItemY+this.lastLineHeight+this.titleHeight,i=this.handleOverflow(i),i+=h,l||(this.box=l=a.rect().addClass("highcharts-legend-box").attr({r:u.borderRadius}).add(s),l.isNew=!0),l.attr({stroke:u.borderColor,"stroke-width":u.borderWidth||0,fill:u.backgroundColor||"none"}).shadow(u.shadow),0c&&!1!==f.enabled?(this.clipHeight=e=Math.max(c-20-this.titleHeight-l,0),this.currentPage=u(this.currentPage,1),this.fullHeight=t,o(v,function(t,i){var r=t._legendItemPos[1],o=Math.round(t.legendItem.getBBox().height),a=m.length;(!a||r-m[a-1]>e&&(n||r)!==m[a-1])&&(m.push(n||r),a++),t.pageIx=a-1,n&&(v[i-1].pageIx=a-1),i===v.length-1&&r+o-m[a-1]>e&&(m.push(r),t.pageIx=a),r!==n&&(n=r)}),h||(h=i.clipRect=r.clipRect(0,l,9999,0),i.contentGroup.clip(h)),y(e),g||(this.nav=g=r.g().attr({zIndex:1}).add(this.group),this.up=r.symbol("triangle",0,0,p,p).on("click",function(){i.scroll(-1,d)}).add(g),this.pager=r.text("",15,10).addClass("highcharts-legend-navigation").css(f.style).add(g),this.down=r.symbol("triangle-down",0,0,p,p).on("click",function(){i.scroll(1,d)}).add(g)),i.scroll(0),t=c):g&&(y(),this.nav=g.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},scroll:function(t,e){var n=this.pages,i=n.length;t=this.currentPage+t;var r=this.clipHeight,o=this.options.navigation,a=this.pager,s=this.padding;t>i&&(t=i),0a&&("string"===(i=typeof e[0])?n.name=e[0]:"number"===i&&(n.x=e[0]),c++);u=t.value;)t=e[++i];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=t&&t.color&&!this.options.color?t.color:this.nonZonedColor,t},destroy:function(){var t,e=this.series.chart,n=e.hoverPoints;for(t in e.pointCount--,n&&(this.setState(),r(n,this),n.length||(e.hoverPoints=null)),this===e.hoverPoint&&this.onMouseOut(),(this.graphic||this.dataLabel)&&(u(this),this.destroyElements()),this.legendItem&&e.legend.destroyItem(this),this)this[t]=null},destroyElements:function(){for(var t,e=["graphic","dataLabel","dataLabelUpper","connector","shadowGroup"],n=6;n--;)this[t=e[n]]&&(this[t]=this[t].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(t){var e=this.series,i=e.tooltipOptions,r=c(i.valueDecimals,""),o=i.valuePrefix||"",s=i.valueSuffix||"";return n(e.pointArrayMap||["y"],function(e){e="{point."+e,(o||s)&&(t=t.replace(RegExp(e+"}","g"),o+e+"}"+s)),t=t.replace(RegExp(e+"}","g"),e+":,."+r+"f}")}),a(t,{point:this,series:this.series},e.chart.time)},firePointEvent:function(t,e,n){var i=this,r=this.series.options;(r.point.events[t]||i.options&&i.options.events&&i.options.events[t])&&this.importEvents(),"click"===t&&r.allowPointSelect&&(n=function(t){i.select&&i.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),o(this,t,e,n)},visible:!0}}(c),function(t){var e=t.addEvent,n=t.animObject,i=t.arrayMax,r=t.arrayMin,o=t.correctFloat,a=t.defaultOptions,s=t.defaultPlotOptions,l=t.defined,c=t.each,u=t.erase,h=t.extend,f=t.fireEvent,d=t.grep,p=t.isArray,g=t.isNumber,m=t.isString,v=t.merge,y=t.objectEach,b=t.pick,x=t.removeEvent,w=t.splat,_=t.SVGElement,S=t.syncTimeout,k=t.win;t.Series=t.seriesType("line",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{lineWidth:0,lineColor:"#ffffff",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":t.numberFormat(this.y,-1)},style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},{isCartesian:!0,pointClass:t.Point,sorted:!0,requireSorting:!0,directTouch:!1,axisTypes:["xAxis","yAxis"],colorCounter:0,parallelArrays:["x","y"],coll:"series",init:function(t,n){var i,r,o=this,a=t.series;o.chart=t,o.options=n=o.setOptions(n),o.linkedSeries=[],o.bindAxes(),h(o,{name:n.name,state:"",visible:!1!==n.visible,selected:!0===n.selected}),i=n.events,y(i,function(t,n){e(o,n,t)}),(i&&i.click||n.point&&n.point.events&&n.point.events.click||n.allowPointSelect)&&(t.runTrackerClick=!0),o.getColor(),o.getSymbol(),c(o.parallelArrays,function(t){o[t+"Data"]=[]}),o.setData(n.data,!1),o.isCartesian&&(t.hasCartesianSeries=!0),a.length&&(r=a[a.length-1]),o._i=b(r&&r._i,-1)+1,t.orderSeries(this.insert(a)),f(this,"afterInit")},insert:function(t){var e,n=this.options.index;if(g(n)){for(e=t.length;e--;)if(n>=b(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return b(e,t.length-1)},bindAxes:function(){var e,n=this,i=n.options,r=n.chart;c(n.axisTypes||[],function(o){c(r[o],function(t){e=t.options,(i[o]===e.index||void 0!==i[o]&&i[o]===e.id||void 0===i[o]&&0===e.index)&&(n.insert(t.series),n[o]=t,t.isDirty=!0)}),n[o]||n.optionalAxis===o||t.error(18,!0)})},updateParallelArrays:function(t,e){var n=t.series,i=arguments,r=g(e)?function(i){var r="y"===i&&n.toYData?n.toYData(t):t[i];n[i+"Data"][e]=r}:function(t){Array.prototype[e].apply(n[t+"Data"],Array.prototype.slice.call(i,2))};c(n.parallelArrays,r)},autoIncrement:function(){var t,e=this.options,n=this.xIncrement,i=e.pointIntervalUnit,r=this.chart.time;n=b(n,e.pointStart,0);return this.pointInterval=t=b(this.pointInterval,e.pointInterval,1),i&&(e=new r.Date(n),"day"===i?r.set("Date",e,r.get("Date",e)+t):"month"===i?r.set("Month",e,r.get("Month",e)+t):"year"===i&&r.set("FullYear",e,r.get("FullYear",e)+t),t=e.getTime()-n),this.xIncrement=n+t,n},setOptions:function(t){var e=this.chart,n=e.options,i=n.plotOptions,r=(e.userOptions||{}).plotOptions||{},o=i[this.type];return this.userOptions=t,e=v(o,i.series,t),this.tooltipOptions=v(a.tooltip,a.plotOptions.series&&a.plotOptions.series.tooltip,a.plotOptions[this.type].tooltip,n.tooltip.userOptions,i.series&&i.series.tooltip,i[this.type].tooltip,t.tooltip),this.stickyTracking=b(t.stickyTracking,r[this.type]&&r[this.type].stickyTracking,r.series&&r.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||e.stickyTracking),null===o.marker&&delete e.marker,this.zoneAxis=e.zoneAxis,t=this.zones=(e.zones||[]).slice(),!e.negativeColor&&!e.negativeFillColor||e.zones||t.push({value:e[this.zoneAxis+"Threshold"]||e.threshold||0,className:"highcharts-negative",color:e.negativeColor,fillColor:e.negativeFillColor}),t.length&&l(t[t.length-1].value)&&t.push({color:this.color,fillColor:this.fillColor}),f(this,"afterSetOptions",{options:e}),e},getName:function(){return this.name||"Series "+(this.index+1)},getCyclic:function(t,e,n){var i,r=this.chart,o=this.userOptions,a=t+"Index",s=t+"Counter",c=n?n.length:b(r.options.chart[t+"Count"],r[t+"Count"]);e||(i=b(o[a],o["_"+a]),l(i)||(r.series.length||(r[s]=0),o["_"+a]=i=r[s]%c,r[s]+=1),n&&(e=n[i])),void 0!==i&&(this[a]=i),this[t]=e},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||s[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},drawLegendSymbol:t.LegendSymbolMixin.drawLineMarker,updateData:function(e){var n,i,r,o=this.options,a=this.points,s=[],l=this.requireSorting;if(c(e,function(e){var i;i=t.defined(e)&&this.pointClass.prototype.optionsToObject.call({series:this},e).x,g(i)&&(-1===(i=t.inArray(i,this.xData,r))?s.push(e):e!==o.data[i]?(a[i].update(e,!1,null,!1),a[i].touched=!0,l&&(r=i)):a[i]&&(a[i].touched=!0),n=!0)},this),n)for(e=a.length;e--;)(i=a[e]).touched||i.remove(!1),i.touched=!1;else{if(e.length!==a.length)return!1;c(e,function(t,e){a[e].update&&t!==o.data[e]&&a[e].update(t,!1,null,!1)})}return c(s,function(t){this.addPoint(t,!1)},this),!0},setData:function(e,n,i,r){var o,a,s=this,l=s.points,u=l&&l.length||0,h=s.options,f=s.chart,d=null,v=s.xAxis,y=h.turboThreshold,x=this.xData,w=this.yData,_=(o=s.pointArrayMap)&&o.length;if(o=(e=e||[]).length,n=b(n,!0),!1!==r&&o&&u&&!s.cropped&&!s.hasGroupedData&&s.visible&&(a=this.updateData(e)),!a){if(s.xIncrement=null,s.colorCounter=0,c(this.parallelArrays,function(t){s[t+"Data"].length=0}),y&&o>y){for(i=0;null===d&&il||this.forceCrop)&&(i[o-1]h?(i=[],r=[]):(i[0]h)&&(i=(n=this.cropData(this.xData,this.yData,u,h)).xData,r=n.yData,n=n.start,a=!0)),l=i.length||1;--l;)0<(o=g?p(i[l])-p(i[l-1]):i[l]-i[l-1])&&(void 0===s||oo&&m&&(t.error(15),m=!1);this.cropped=a,this.cropStart=n,this.processedXData=i,this.processedYData=r,this.closestPointRange=s},cropData:function(t,e,n,i,r){var o,a=t.length,s=0,l=a;for(r=b(r,this.cropShoulder,1),o=0;o=n){s=Math.max(0,o-r);break}for(n=o;ni){l=n+r;break}return{xData:t.slice(s,l),yData:e.slice(s,l),start:s,end:l}},generatePoints:function(){var t,e,n,i,r=(f=this.options).data,o=this.data,a=this.processedXData,s=this.processedYData,l=this.pointClass,c=a.length,u=this.cropStart||0,h=this.hasGroupedData,f=f.keys,d=[];for(o||h||((o=[]).length=r.length,o=this.data=o),f&&h&&(this.options.keys=!1),i=0;i=f&&(c[s-m]||o)<=d,n&&o)if(n=a.length)for(;n--;)"number"===typeof a[n]&&(u[h++]=a[n]);else u[h++]=a;this.dataMin=r(u),this.dataMax=i(u)},translate:function(){this.processedXData||this.processData(),this.generatePoints();var t,e,n,i,r=this.options,a=r.stacking,s=this.xAxis,c=s.categories,u=this.yAxis,h=this.points,d=h.length,p=!!this.modifyValue,m=r.pointPlacement,v="between"===m||g(m),y=r.threshold,x=r.startFromThreshold?y:0,w=Number.MAX_VALUE;for("between"===m&&(m=.5),g(m)&&(m*=b(r.pointRange||s.pointRange)),r=0;r=k&&(_.isNull=!0),_.plotX=t=o(Math.min(Math.max(-1e5,s.translate(S,0,0,0,1,m,"flags"===this.type)),1e5)),a&&this.visible&&!_.isNull&&O&&O[S]&&(i=this.getStackIndicator(i,S,this.index),e=(k=(M=O[S]).points[i.key])[0],k=k[1],e===x&&i.key===O[S].base&&(e=b(g(y)&&y,u.min)),u.positiveValuesOnly&&0>=e&&(e=null),_.total=_.stackTotal=M.total,_.percentage=M.total&&_.y/M.total*100,_.stackY=k,M.setOffset(this.pointXOffset||0,this.barW||0)),_.yBottom=l(e)?Math.min(Math.max(-1e5,u.translate(e,0,1,0,1)),1e5):null,p&&(k=this.modifyValue(k,_)),_.plotY=e="number"===typeof k&&1/0!==k?Math.min(Math.max(-1e5,u.translate(k,0,1,0,1)),1e5):void 0,_.isInside=void 0!==e&&0<=e&&e<=u.len&&0<=t&&t<=s.len,_.clientX=v?o(s.translate(S,0,0,0,1,m)):t,_.negative=_.y<(y||0),_.category=c&&void 0!==c[_.x]?c[_.x]:_.x,_.isNull||(void 0!==n&&(w=Math.min(w,Math.abs(t-n))),n=t),_.zone=this.zones.length&&_.getZone()}this.closestPointRangePx=w,f(this,"afterTranslate")},getValidPoints:function(t,e){var n=this.chart;return d(t||this.points||[],function(t){return!(e&&!n.isInsidePlot(t.plotX,t.plotY,n.inverted))&&!t.isNull})},setClip:function(t){var e=this.chart,n=this.options,i=e.renderer,r=e.inverted,o=this.clipBox,a=o||e.clipBox,s=this.sharedClipKey||["_sharedClip",t&&t.duration,t&&t.easing,a.height,n.xAxis,n.yAxis].join(),l=e[s],c=e[s+"m"];l||(t&&(a.width=0,r&&(a.x=e.plotSizeX),e[s+"m"]=c=i.clipRect(r?e.plotSizeX+99:-99,r?-e.plotLeft:-e.plotTop,99,r?e.chartWidth:e.chartHeight)),e[s]=l=i.clipRect(a),l.count={length:0}),t&&!l.count[this.index]&&(l.count[this.index]=!0,l.count.length+=1),!1!==n.clip&&(this.group.clip(t||o?l:e.clipRect),this.markerGroup.clip(c),this.sharedClipKey=s),t||(l.count[this.index]&&(delete l.count[this.index],--l.count.length),0===l.count.length&&s&&e[s]&&(o||(e[s]=e[s].destroy()),e[s+"m"]&&(e[s+"m"]=e[s+"m"].destroy())))},animate:function(t){var e,i=this.chart,r=n(this.options.animation);t?this.setClip(r):((t=i[e=this.sharedClipKey])&&t.animate({width:i.plotSizeX,x:0},r),i[e+"m"]&&i[e+"m"].animate({width:i.plotSizeX+99,x:0},r),this.animate=null)},afterAnimate:function(){this.setClip(),f(this,"afterAnimate"),this.finishedAnimating=!0},drawPoints:function(){var t,e,n,i,r,o,a,s,l=this.points,c=this.chart,u=this.options.marker,h=this[this.specialGroup]||this.markerGroup,f=b(u.enabled,!!this.xAxis.isRadial||null,this.closestPointRangePx>=u.enabledThreshold*u.radius);if(!1!==u.enabled||this._hasPointMarkers)for(t=0;tr&&e.shadow)),a&&(a.startX=n.xMap,a.isArea=n.isArea)})},getZonesGraphs:function(t){return c(this.zones,function(e,n){t.push(["zone-graph-"+n,"highcharts-graph highcharts-zone-graph-"+n+" "+(e.className||""),e.color||this.color,e.dashStyle||this.options.dashStyle])},this),t},applyZones:function(){var t,e,n,i,r,o,a,s,l,u=this,h=this.chart,f=h.renderer,d=this.zones,p=this.clips||[],g=this.graph,m=this.area,v=Math.max(h.chartWidth,h.chartHeight),y=this[(this.zoneAxis||"y")+"Axis"],x=h.inverted,w=!1;d.length&&(g||m)&&y&&void 0!==y.min&&(r=y.reversed,o=y.horiz,g&&!this.showLine&&g.hide(),m&&m.hide(),i=y.getExtremes(),c(d,function(c,d){t=r?o?h.plotWidth:0:o?0:y.toPixels(i.min),t=Math.min(Math.max(b(e,t),0),v),e=Math.min(Math.max(Math.round(y.toPixels(b(c.value,i.max),!0)),0),v),w&&(t=e=y.toPixels(i.max)),a=Math.abs(t-e),s=Math.min(t,e),l=Math.max(t,e),y.isXAxis?(n={x:x?l:s,y:0,width:a,height:v},o||(n.x=h.plotHeight-n.x)):(n={x:0,y:x?l:s,width:v,height:a},o&&(n.y=h.plotWidth-n.y)),x&&f.isVML&&(n=y.isXAxis?{x:0,y:r?s:l,height:n.width,width:h.chartWidth}:{x:n.y-h.plotLeft-h.spacingBox.x,y:0,width:n.height,height:h.chartHeight}),p[d]?p[d].animate(n):(p[d]=f.clipRect(n),g&&u["zone-graph-"+d].clip(p[d]),m&&u["zone-area-"+d].clip(p[d])),w=c.value>i.max,u.resetZones&&0===e&&(e=void 0)}),this.clips=p)},invertGroups:function(t){function n(){c(["group","markerGroup"],function(e){r[e]&&(o.renderer.isVML&&r[e].attr({width:r.yAxis.len,height:r.xAxis.len}),r[e].width=r.yAxis.len,r[e].height=r.xAxis.len,r[e].invert(t))})}var i,r=this,o=r.chart;r.xAxis&&(i=e(o,"resize",n),e(r,"destroy",i),n(),r.invertGroups=n)},plotGroup:function(t,e,n,i,r){var o=this[t],a=!o;return a&&(this[t]=o=this.chart.renderer.g().attr({zIndex:i||.1}).add(r)),o.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(l(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(o.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),o.attr({visibility:n})[a?"attr":"animate"](this.getPlotBox()),o},getPlotBox:function(){var t=this.chart,e=this.xAxis,n=this.yAxis;return t.inverted&&(e=n,n=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:n?n.top:t.plotTop,scaleX:1,scaleY:1}},render:function(){var t,e=this,i=e.chart,r=e.options,o=!!e.animate&&i.renderer.isSVG&&n(r.animation).duration,a=e.visible?"inherit":"hidden",s=r.zIndex,l=e.hasRendered,c=i.seriesGroup,u=i.inverted;t=e.plotGroup("group","series",a,s,c),e.markerGroup=e.plotGroup("markerGroup","markers",a,s,c),o&&e.animate(!0),t.inverted=!!e.isCartesian&&u,e.drawGraph&&(e.drawGraph(),e.applyZones()),e.drawDataLabels&&e.drawDataLabels(),e.visible&&e.drawPoints(),e.drawTracker&&!1!==e.options.enableMouseTracking&&e.drawTracker(),e.invertGroups(u),!1===r.clip||e.sharedClipKey||l||t.clip(i.clipRect),o&&e.animate(),l||(e.animationTimeout=S(function(){e.afterAnimate()},o)),e.isDirty=!1,e.hasRendered=!0,f(e,"afterRender")},redraw:function(){var t=this.chart,e=this.isDirty||this.isDirtyData,n=this.group,i=this.xAxis,r=this.yAxis;n&&(t.inverted&&n.attr({width:t.plotWidth,height:t.plotHeight}),n.animate({translateX:b(i&&i.left,t.plotLeft),translateY:b(r&&r.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(t,e){var n=this.xAxis,i=this.yAxis,r=this.chart.inverted;return this.searchKDTree({clientX:r?n.len-t.chartY+n.pos:t.chartX-n.pos,plotY:r?i.len-t.chartX+i.pos:t.chartY-i.pos},e)},buildKDTree:function(){this.buildingKdTree=!0;var t=this,e=-1(d=e[d]-f[d])?"left":"right",h=0>d?"right":"left",a[u]&&(p=(u=t(e,a[u],s+1,c))[o]s;)a--;this.updateParallelArrays(r,"splice",a,0,0),this.updateParallelArrays(r,a),h&&r.name&&(h[s]=r.name),f.splice(a,0,t),o&&(this.data.splice(a,0,null),this.processData()),"point"===l.legendType&&this.generatePoints(),n&&(c[0]&&c[0].remove?c[0].remove(!1):(c.shift(),this.updateParallelArrays(r,"shift"),f.shift())),this.isDirtyData=this.isDirty=!0,e&&u.redraw(i)},removePoint:function(t,e,n){var i=this,r=i.data,o=r[t],a=i.points,s=i.chart,l=function(){a&&a.length===r.length&&a.splice(t,1),r.splice(t,1),i.options.data.splice(t,1),i.updateParallelArrays(o||{series:i},"splice",t,1),o&&o.destroy(),i.isDirty=!0,i.isDirtyData=!0,e&&s.redraw()};w(n,s),e=v(e,!0),o?o.firePointEvent("remove",null,l):l()},remove:function(t,e,n){function i(){r.destroy(),o.isDirtyLegend=o.isDirtyBox=!0,o.linkSeries(),v(t,!0)&&o.redraw(e)}var r=this,o=r.chart;!1!==n?u(r,"remove",null,i):i()},update:function(e,n){var i,r=this,o=r.chart,a=r.userOptions,l=r.oldType||r.type,f=e.type||a.type||o.options.chart.type,d=x[l].prototype,p=["group","markerGroup","dataLabelsGroup"],m=["navigatorSeries","baseSeries"],y=r.finishedAnimating&&{animation:!1},b=["data","name","turboThreshold"],w=t.keys(e),_=0t&&o>c?s=2*c-(o=Math.max(t,c)):oi&&s>c?o=2*c-(s=Math.max(i,c)):s=Math.abs(e)&&.5t.closestPointRange*t.xAxis.transA,o=(r=t.borderWidth=s(n.borderWidth,r?0:1),t.yAxis),a=n.threshold,c=t.translatedThreshold=o.getThreshold(a),u=s(n.minPointLength,5),h=t.getColumnMetrics(),f=h.width,d=t.barW=Math.max(f,1+2*r),p=t.pointXOffset=h.offset;e.inverted&&(c-=.5),n.pointPadding&&(d=Math.ceil(d)),l.prototype.translate.apply(t),i(t.points,function(n){var i,r=s(n.yBottom,c),l=999+Math.abs(r),h=(l=Math.min(Math.max(-l,n.plotY),o.len+l),n.plotX+p),g=d,m=Math.min(l,r),v=Math.max(l,r)-m;u&&Math.abs(v)u?r-u:c-(i?u:0)),n.barX=h,n.pointWidth=f,n.tooltipPos=e.inverted?[o.len+o.pos-e.plotLeft-l,t.xAxis.len-h-g/2,v]:[h+g/2,l+o.pos-e.plotTop,v],n.shapeType="rect",n.shapeArgs=t.crispCol.apply(t,n.isNull?[h,c,g,0]:[h,m,g,v])})},getSymbol:t.noop,drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(t,e){var i,r=this.options;i=(u=this.pointAttrToOptions||{}).stroke||"borderColor";var o=u["stroke-width"]||"borderWidth",s=t&&t.color||this.color,l=t&&t[i]||r[i]||this.color||s,c=t&&t[o]||r[o]||this[o]||0,u=r.dashStyle;return t&&this.zones.length&&(s=t.getZone(),s=t.options.color||s&&s.color||this.color),e&&(e=(t=a(r.states[e],t.options.states&&t.options.states[e]||{})).brightness,s=t.color||void 0!==e&&n(s).brighten(t.brightness).get()||s,l=t[i]||l,c=t[o]||c,u=t.dashStyle||u),i={fill:s,stroke:l,"stroke-width":c},u&&(i.dashstyle=u),i},drawPoints:function(){var t,e=this,n=this.chart,r=e.options,s=n.renderer,l=r.animationLimit||250;i(e.points,function(i){var c=i.graphic,u=c&&n.pointCount\u25cf {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&e.prototype.drawGraph.call(this)}})}(c),function(t){var e=t.deg2rad,n=t.isNumber,i=t.pick,r=t.relativeLength;t.CenteredSeriesMixin={getCenter:function(){var t,e,n=this.options,o=this.chart,a=2*(n.slicedOffset||0),s=o.plotWidth-2*a,l=(o=o.plotHeight-2*a,n.center),c=(l=[i(l[0],"50%"),i(l[1],"50%"),n.size||"100%",n.innerSize||0],Math.min(s,o));for(t=0;4>t;++t)e=l[t],n=2>t||2===t&&/%$/.test(e),l[t]=r(e,[s,o,c,l[2]][t])+(n?a:0);return l[3]>l[2]&&(l[3]=l[2]),l},getStartAndEndRadians:function(t,i){return t=n(t)?t:0,i=n(i)&&i>t&&360>i-t?i:t+360,{start:e*(t+-90),end:e*(i+-90)}}}}(c),function(t){var e=t.addEvent,n=t.CenteredSeriesMixin,i=t.defined,r=t.each,o=t.extend,a=n.getStartAndEndRadians,s=t.inArray,l=t.noop,c=t.pick,u=t.Point,h=t.Series,f=t.seriesType,d=t.setAnimation;f("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:t.seriesTypes.column.prototype.pointAttribs,animate:function(t){var e=this,n=e.points,i=e.startAngleRad;t||(r(n,function(t){var n=t.graphic,r=t.shapeArgs;n&&(n.attr({r:t.startR||e.center[3]/2,start:i,end:i}),n.animate({r:r.r,start:r.start,end:r.end},e.options.animation))}),e.animate=null)},updateTotals:function(){var t,e,n=0,i=this.points,r=i.length,o=this.options.ignoreHiddenPoint;for(t=0;t1.5*Math.PI?i-=2*Math.PI:i<-Math.PI/2&&(i+=2*Math.PI),s.slicedTranslation={translateX:Math.round(Math.cos(i)*u),translateY:Math.round(Math.sin(i)*u)},n=Math.cos(i)*t[2]/2,r=Math.sin(i)*t[2]/2,s.tooltipPos=[t[0]+.7*n,t[1]+.7*r],s.half=i<-Math.PI/2||i>Math.PI/2?1:0,s.angle=i,e=Math.min(h,s.labelDistance/5),s.labelPos=[t[0]+n+Math.cos(i)*s.labelDistance,t[1]+r+Math.sin(i)*s.labelDistance,t[0]+n+Math.cos(i)*e,t[1]+r+Math.sin(i)*e,t[0]+n,t[1]+r,0>s.labelDistance?"center":s.half?"right":"left",i]},drawGraph:null,drawPoints:function(){var t,e,n,i,a=this,s=a.chart.renderer,l=a.options.shadow;l&&!a.shadowGroup&&(a.shadowGroup=s.g("shadow").add(a.group)),r(a.points,function(r){if(e=r.graphic,r.isNull)e&&(r.graphic=e.destroy());else{i=r.shapeArgs,t=r.getTranslate();var c=r.shadowGroup;l&&!c&&(c=r.shadowGroup=s.g("shadow").add(a.shadowGroup)),c&&c.attr(t),n=a.pointAttribs(r,r.selected&&"select"),e?e.setRadialReference(a.center).attr(n).animate(o(i,t)):(r.graphic=e=s[r.shapeType](i).setRadialReference(a.center).attr(t).add(a.group),r.visible||e.attr({visibility:"hidden"}),e.attr(n).attr({"stroke-linejoin":"round"}).shadow(l,c)),e.addClass(r.getClassName())}})},searchPoint:l,sortByAngle:function(t,e){t.sort(function(t,n){return void 0!==t.angle&&(n.angle-t.angle)*e})},drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,getCenter:n.getCenter,getSymbol:l},{init:function(){u.prototype.init.apply(this,arguments);var t,n=this;return n.name=c(n.name,"Slice"),e(n,"select",t=function(t){n.slice("select"===t.type)}),e(n,"unselect",t),n},isValid:function(){return t.isNumber(this.y,!0)&&0<=this.y},setVisible:function(t,e){var n=this,i=n.series,o=i.chart,a=i.options.ignoreHiddenPoint;e=c(e,a),t!==n.visible&&(n.visible=n.options.visible=t=void 0===t?!n.visible:t,i.options.data[s(n,i.data)]=n.options,r(["graphic","dataLabel","connector","shadowGroup"],function(e){n[e]&&n[e][t?"show":"hide"](!0)}),n.legendItem&&o.legend.colorizeItem(n,t),t||"hover"!==n.state||n.setState(""),a&&(i.isDirty=!0),e&&o.redraw())},slice:function(t,e,n){var r=this.series;d(n,r.chart),c(e,!0),this.sliced=this.options.sliced=i(t)?t:!this.sliced,r.options.data[s(this,r.data)]=this.options,this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:this.shapeArgs.r-1,start:e.start,end:e.end})}})}(c),function(t){var e=t.addEvent,n=t.arrayMax,i=t.defined,r=t.each,o=t.extend,a=t.format,s=t.map,l=t.merge,c=t.noop,u=t.pick,h=t.relativeLength,f=t.Series,d=t.seriesTypes,p=t.some,g=t.stableSort;t.distribute=function(e,n,i){function o(t,e){return t.target-e.target}var a,l,c=!0,h=e,f=[];l=0;var d=h.reducedLen||n;for(a=e.length;a--;)l+=e[a].size;if(l>d){for(g(e,function(t,e){return(e.rank||0)-(t.rank||0)}),l=a=0;l<=d;)l+=e[a].size,a++;f=e.splice(a-1,e.length)}for(g(e,o),e=s(e,function(t){return{size:t.size,targets:[t.target],align:u(t.align,.5)}});c;){for(a=e.length;a--;)c=e[a],l=(Math.min.apply(0,c.targets)+Math.max.apply(0,c.targets))/2,c.pos=Math.min(Math.max(0,l-c.size*c.align),n-c.size);for(a=e.length,c=!1;a--;)0e[a].pos&&(e[a-1].size+=e[a].size,e[a-1].targets=e[a-1].targets.concat(e[a].targets),e[a-1].align=.5,e[a-1].pos+e[a-1].size>n&&(e[a-1].pos=n-e[a-1].size),e.splice(a,1),c=!0)}h.push.apply(h,f),a=0,p(e,function(e){var o=0;if(p(e.targets,function(){if(h[a].pos=e.pos+o,Math.abs(h[a].pos-h[a].target)>i)return r(h.slice(0,a+1),function(t){delete t.pos}),h.reducedLen=(h.reducedLen||n)-.1*n,h.reducedLen>.1*n&&t.distribute(h,n,i),!0;o+=h[a].size,a++}))return!0}),g(h,o)},f.prototype.drawDataLabels=function(){var n,o,s,c,h=this,f=h.chart,d=h.options,p=d.dataLabels,g=h.points,m=h.hasRendered||0,v=u(p.defer,!!d.animation),y=f.renderer;(p.enabled||h._hasPointLabels)&&(h.dlProcessOptions&&h.dlProcessOptions(p),c=h.plotGroup("dataLabelsGroup","data-labels",v&&!m?"hidden":"visible",p.zIndex||6),v&&(c.attr({opacity:+m}),m||e(h,"afterAnimate",function(){h.visible&&c.show(!0),c[d.animation?"animate":"attr"]({opacity:1},{duration:200})})),o=p,r(g,function(e){var r,g,m,v,b=e.dataLabel,x=e.connector,w=!b;n=e.dlOptions||e.options&&e.options.dataLabels,(r=u(n&&n.enabled,o.enabled)&&!e.isNull)&&(r=!0===function(t,e){var n=e.filter;return!n||(e=n.operator,t=t[n.property],n=n.value,">"===e&&t>n||"<"===e&&t="===e&&t>=n||"<="===e&&t<=n||"=="===e&&t==n||"==="===e&&t===n)}(e,n||p)),r&&(p=l(o,n),g=e.getLabelConfig(),v=p[e.formatPrefix+"Format"]||p.format,s=i(v)?a(v,g,f.time):(p[e.formatPrefix+"Formatter"]||p.formatter).call(g,p),v=p.style,g=p.rotation,v.color=u(p.color,v.color,h.color,"#000000"),"contrast"===v.color&&(e.contrastColor=y.getContrast(e.color||h.color),v.color=p.inside||0>u(e.labelDistance,p.distance)||d.stacking?e.contrastColor:"#000000"),d.cursor&&(v.cursor=d.cursor),m={fill:p.backgroundColor,stroke:p.borderColor,"stroke-width":p.borderWidth,r:p.borderRadius||0,rotation:g,padding:p.padding,zIndex:1},t.objectEach(m,function(t,e){void 0===t&&delete m[e]})),!b||r&&i(s)?r&&i(s)&&(b?m.text=s:(b=e.dataLabel=g?y.text(s,0,-9999).addClass("highcharts-data-label"):y.label(s,0,-9999,p.shape,null,null,p.useHTML,null,"data-label")).addClass(" highcharts-data-label-color-"+e.colorIndex+" "+(p.className||"")+(p.useHTML?"highcharts-tracker":"")),b.attr(m),b.css(v).shadow(p.shadow),b.added||b.add(c),h.alignDataLabel(e,b,p,null,w)):(e.dataLabel=b=b.destroy(),x&&(e.connector=x.destroy()))})),t.fireEvent(this,"afterDrawDataLabels")},f.prototype.alignDataLabel=function(t,e,n,i,r){var a,s=this.chart,l=s.inverted,c=u(t.dlBox&&t.dlBox.centerX,t.plotX,-9999),h=u(t.plotY,-9999),f=e.getBBox(),d=n.rotation,p=n.align,g=this.visible&&(t.series.forceDL||s.isInsidePlot(c,Math.round(h),l)||i&&s.isInsidePlot(c,l?i.x+1:i.y+i.height-1,l)),m="justify"===u(n.overflow,"justify");g&&(a=n.style.fontSize,a=s.renderer.fontMetrics(a,e).b,i=o({x:l?this.yAxis.len-h:c,y:Math.round(l?this.xAxis.len-c:h),width:0,height:0},i),o(n,{width:f.width,height:f.height}),d?(m=!1,c=s.renderer.rotCorr(a,d),c={x:i.x+n.x+i.width/2+c.x,y:i.y+n.y+{top:0,middle:.5,bottom:1}[n.verticalAlign]*i.height},e[r?"attr":"animate"](c).attr({align:p}),h=180<(h=(d+720)%360)&&360>h,"left"===p?c.y-=h?f.height:0:"center"===p?(c.x-=f.width/2,c.y-=f.height/2):"right"===p&&(c.x-=f.width,c.y-=h?0:f.height),e.placed=!0,e.alignAttr=c):(e.align(n,null,i),c=e.alignAttr),m?t.isLabelJustified=this.justifyDataLabel(e,n,c,f,i,r):u(n.crop,!0)&&(g=s.isInsidePlot(c.x,c.y)&&s.isInsidePlot(c.x+f.width,c.y+f.height)),n.shape&&!d)&&e[r?"attr":"animate"]({anchorX:l?s.plotWidth-t.plotY:t.plotX,anchorY:l?s.plotHeight-t.plotX:t.plotY}),g||(e.attr({y:-9999}),e.placed=!1)},f.prototype.justifyDataLabel=function(t,e,n,i,r,o){var a,s,l=this.chart,c=e.align,u=e.verticalAlign,h=t.box?0:t.padding||0;return 0>(a=n.x+h)&&("right"===c?e.align="left":e.x=-a,s=!0),(a=n.x+i.width-h)>l.plotWidth&&("left"===c?e.align="right":e.x=l.plotWidth-a,s=!0),0>(a=n.y+h)&&("bottom"===u?e.verticalAlign="top":e.y=-a,s=!0),(a=n.y+i.height-h)>l.plotHeight&&("top"===u?e.verticalAlign="bottom":e.y=l.plotHeight-a,s=!0),s&&(t.placed=!o,t.align(e,null,r)),s},d.pie&&(d.pie.prototype.drawDataLabels=function(){var e,o,a,s,l,c,h,d,p,g,m=this,v=m.data,y=m.chart,b=m.options.dataLabels,x=u(b.connectorPadding,10),w=u(b.connectorWidth,1),_=y.plotWidth,S=y.plotHeight,k=Math.round(y.chartWidth/3),M=m.center,O=M[2]/2,T=M[1],P=[[],[]],C=[0,0,0,0];m.visible&&(b.enabled||m._hasPointLabels)&&(r(v,function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)}),f.prototype.drawDataLabels.apply(m),r(v,function(t){t.dataLabel&&t.visible&&(P[t.half].push(t),t.dataLabel._pos=null,!i(b.style.width)&&!i(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>k&&(t.dataLabel.css({width:.7*k}),t.dataLabel.shortened=!0))}),r(P,function(n,o){var f,v,w,k=n.length,P=[];if(k)for(m.sortByAngle(n,o-.5),0e.bottom-2?f:d,o,e),a._attr={visibility:p,align:l[6]},a._pos={x:h+b.x+({left:x,right:-x}[l[6]]||0),y:d+b.y-10},l.x=h,l.y=d,u(b.crop,!0)&&(s=a.getBBox().width,f=null,h-s_-x&&0===o&&(f=Math.round(h+s-_+x),C[1]=Math.max(f,C[1])),0>d-c/2?C[0]=Math.max(Math.round(c/2-d),C[0]):d+c/2>S&&(C[2]=Math.max(Math.round(d+c/2-S),C[2])),a.sideOverflow=f)}),0===n(C)||this.verifyDataLabelOverflow(C))&&(this.placeDataLabels(),w&&r(this.points,function(t){var e;o=t.connector,(a=t.dataLabel)&&a._pos&&t.visible&&0u(this.translatedThreshold,a.yAxis.len)),h=u(n.inside,!!this.options.stacking);s&&(0>(i=l(s)).y&&(i.height+=i.y,i.y=0),0<(s=i.y+i.height-a.yAxis.len)&&(i.height-=s),o&&(i={x:a.yAxis.len-i.y-i.height,y:a.xAxis.len-i.x-i.width,width:i.height,height:i.width}),h||(o?(i.x+=c?0:i.width,i.width=0):(i.y+=c?i.height:0,i.height=0))),n.align=u(n.align,!o||h?"center":c?"right":"left"),n.verticalAlign=u(n.verticalAlign,o||h?"middle":c?"top":"bottom"),f.prototype.alignDataLabel.call(this,t,e,n,i,r),t.isLabelJustified&&t.contrastColor&&t.dataLabel.css({color:t.contrastColor})})}(c),function(t){var e=t.Chart,n=t.each,i=t.objectEach,r=t.pick;(t=t.addEvent)(e,"render",function(){var t=[];n(this.labelCollectors||[],function(e){t=t.concat(e())}),n(this.yAxis||[],function(e){e.options.stackLabels&&!e.options.stackLabels.allowOverlap&&i(e.stacks,function(e){i(e,function(e){t.push(e.label)})})}),n(this.series||[],function(e){var i=e.options.dataLabels,o=e.dataLabelCollections||["dataLabel"];(i.enabled||e._hasPointLabels)&&!i.allowOverlap&&e.visible&&n(o,function(i){n(e.points,function(e){e[i]&&(e[i].labelrank=r(e.labelrank,e.shapeArgs&&e.shapeArgs.height),t.push(e[i]))})})}),this.hideOverlappingLabels(t)}),e.prototype.hideOverlappingLabels=function(t){var e,i,r,o,a,s,l,c,u,h=t.length,f=function(t,e,n,i,r,o,a,s){return!(r>t+n||r+ae+i||o+sthis.pointCount))},pan:function(t,e){var n,i=this,r=i.hoverPoints;r&&l(r,function(t){t.setState()}),l("xy"===e?[1,0]:[1],function(e){var r,o=(e=i[e?"xAxis":"yAxis"][0]).horiz,a=t[o?"chartX":"chartY"],s=i[o=o?"mouseDownX":"mouseDownY"],l=(e.pointRange||0)/2,c=e.reversed&&!i.inverted||!e.reversed&&i.inverted?-1:1,u=e.getExtremes(),h=e.toValue(s-a,!0)+l*c;s=(r=(c=e.toValue(s+e.len-a,!0)-l*c)=a(n.minWidth,0)&&this.chartHeight>=a(n.minHeight,0)}).call(this)&&e.push(t._id)},e.prototype.currentOptions=function(e){var n={};return function e(n,a,l,c){var u;t.objectEach(n,function(t,n){if(!c&&-1a.length||void 0===n)return t.call(this,e,n,i,r);for(d=a.length,c=0;ci,a[c]5*s||p){if(a[c]>y){for(h=t.call(this,e,a[g],a[c],r);h.length&&h[0]<=y;)h.shift();h.length&&(y=h[h.length-1]),v=v.concat(h)}g=c+1}if(p)break}if(t=h.info,l&&t.unitRange<=u.hour){for(c=v.length-1,g=1;gi?x-1:x,w=void 0;l--;)g=c[l],i=Math.abs(w-g),w&&i<.8*b&&(null===f||i<.8*f)?(m[v[l]]&&!m[v[l+1]]?(i=l+1,w=g):i=l,v.splice(i,1)):w=g}return v}),s(n.prototype,{beforeSetTickPositions:function(){var t,e,n,i=[],r=!1,s=(h=this.getExtremes()).min,l=h.max,u=this.isXAxis&&!!this.options.breaks,h=this.options.ordinal,f=Number.MAX_VALUE,d=this.chart.options.chart.ignoreHiddenSeries;if(e="highcharts-navigator-xaxis"===this.options.className,!this.options.overscroll||this.max!==this.dataMax||this.chart.mouseIsDown&&!e||this.eventArgs&&(!this.eventArgs||"navigator"===this.eventArgs.trigger)||(this.max+=this.options.overscroll,!e&&o(this.userMin)&&(this.min+=this.options.overscroll)),h||u){if(a(this.series,function(e,n){if(!(d&&!1===e.visible||!1===e.takeOrdinalPosition&&!u)&&(i=i.concat(e.processedXData),t=i.length,i.sort(function(t,e){return t-e}),f=Math.min(f,c(e.closestPointRange,f)),t))for(n=t-1;n--;)i[n]===i[n+1]&&i.splice(n,1)}),2<(t=i.length)){for(e=i[1]-i[0],n=t-1;n--&&!r;)i[n+1]-i[n]!==e&&(r=!0);!this.options.keepOrdinalPadding&&(i[0]-s>e||l-i[i.length-1]>e)&&(r=!0)}else this.options.overscroll&&(2===t?f=i[1]-i[0]:1===t?(f=this.options.overscroll,i=[i[0],i[0]+f]):f=this.overscrollPointsRange);r?(this.options.overscroll&&(this.overscrollPointsRange=f,i=i.concat(this.getOverscrollPositions())),this.ordinalPositions=i,e=this.ordinal2lin(Math.max(s,i[0]),!0),n=Math.max(this.ordinal2lin(Math.min(l,i[i.length-1]),!0),1),this.ordinalSlope=l=(l-s)/(n-e),this.ordinalOffset=s-e*l):(this.overscrollPointsRange=c(this.closestPointRange,this.overscrollPointsRange),this.ordinalPositions=this.ordinalSlope=this.ordinalOffset=void 0)}this.isOrdinal=h&&r,this.groupIntervalFactor=null},val2lin:function(t,e){var n=this.ordinalPositions;if(n){var i,r,o=n.length;for(i=o;i--;)if(n[i]===t){r=i;break}for(i=o-1;i--;)if(t>n[i]||0===i){r=i+(t=(t-n[i])/(n[i+1]-n[i]));break}e=e?r:this.ordinalSlope*(r||0)+this.ordinalOffset}else e=t;return e},lin2val:function(t,e){var n=this.ordinalPositions;if(n){var i,r=this.ordinalSlope,o=this.ordinalOffset,a=n.length-1;if(e)0>t?t=n[0]:t>a?t=n[a]:i=t-(a=Math.floor(t));else for(;a--;)if(t>=(e=r*a+o)){i=(t-e)/((r=r*(a+1)+o)-e);break}return void 0!==i&&void 0!==n[a]?n[a]+(i?i*(n[a+1]-n[a]):0):t}return t},getExtendedPositions:function(){var t,e,i=this,r=i.chart,o=i.series[0].currentDataGrouping,s=i.ordinalIndex,c=o?o.count+o.unitName:"raw",u=i.options.overscroll,h=i.getExtremes();return s||(s=i.ordinalIndex={}),s[c]||(t={series:[],chart:r,getExtremes:function(){return{min:h.dataMin,max:h.dataMax+u}},options:{ordinal:!0},val2lin:n.prototype.val2lin,ordinal2lin:n.prototype.ordinal2lin},a(i.series,function(n){(e={xAxis:t,xData:n.xData.slice(),chart:r,destroyGroupedData:l}).xData=e.xData.concat(i.getOverscrollPositions()),e.options={dataGrouping:o?{enabled:!0,forced:!0,approximation:"open",units:[[o.unitName,[o.count]]]}:{enabled:!1}},n.processData.apply(e),t.series.push(e)}),i.beforeSetTickPositions.apply(t),s[c]=t.ordinalPositions),s[c]},getOverscrollPositions:function(){var e=this.options.overscroll,n=this.overscrollPointsRange,i=[],r=this.dataMax;if(t.defined(n))for(i.push(r);r<=this.dataMax+e;)r+=n,i.push(r);return i},getGroupIntervalFactor:function(t,e,n){var i,r=(n=n.processedXData).length,o=[];if(!(i=this.groupIntervalFactor)){for(i=0;ic?(p=m,l=n.ordinalPositions?n:m):(p=n.ordinalPositions?n:m,l=m),h>(m=l.ordinalPositions)[m.length-1]&&m.push(h),this.fixedRange=d-f,(c=n.toFixedRange(null,null,g.apply(p,[v.apply(p,[f,!0])+c,!0]),g.apply(l,[v.apply(l,[d,!0])+c,!0]))).min>=Math.min(u.dataMin,f)&&c.max<=Math.max(h,d)+i&&n.setExtremes(c.min,c.max,!0,!1,{trigger:"pan"}),this.mouseDownX=o,r(this.container,{cursor:"move"})):s=!0}else s=!0;s&&(i&&(n.max=n.dataMax+i),t.apply(this,Array.prototype.slice.call(arguments,1)))})}(c),function(t){function e(t){t.apply(this),this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,i(this.pointArrayMap,["y"]))}var n=t.addEvent,i=t.pick,r=t.wrap,o=t.each,a=t.extend,s=t.isArray,l=t.fireEvent,c=t.Axis,u=t.Series;a(c.prototype,{isInBreak:function(t,e){var n=t.repeat||1/0,i=t.from,r=t.to-t.from;return e=e>=i?(e-i)%n:n-(i-e)%n,t.inclusive?e<=r:e=t)break;if(e.isInBreak(n,t)){r-=t-n.from;break}}return r},e.lin2val=function(t){var n,i;for(i=0;i=t);i++)n.tod;)a-=r;for(;ae.to||r>e.from&&se.from&&se.from&&s>e.to&&sn&&(n=e);r--;)i[r+1].x-i[r].x>n&&(e=(i[r].x+i[r+1].x)/2,i.splice(r+1,0,{isNull:!0,x:e}),this.options.stacking&&((e=o.stacks[this.stackKey][e]=new t.StackItem(o,o.options.stackLabels,!1,e,this.stack)).total=0));return this.getGraphPath(i)},r(t.seriesTypes.column.prototype,"drawPoints",e),r(t.Series.prototype,"drawPoints",e)}(c),function(t){var e=t.addEvent,n=t.arrayMax,i=t.arrayMin,r=t.Axis,o=t.defaultPlotOptions,a=t.defined,s=t.each,l=t.extend,c=t.format,u=t.isNumber,h=t.merge,f=t.pick,d=t.Point,p=t.Series,g=t.Tooltip,m=t.wrap,v=p.prototype,y=v.processData,b=v.generatePoints,x={approximation:"average",groupPixelWidth:2,dateTimeLabelFormats:{millisecond:["%A, %b %e, %H:%M:%S.%L","%A, %b %e, %H:%M:%S.%L","-%H:%M:%S.%L"],second:["%A, %b %e, %H:%M:%S","%A, %b %e, %H:%M:%S","-%H:%M:%S"],minute:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],hour:["%A, %b %e, %H:%M","%A, %b %e, %H:%M","-%H:%M"],day:["%A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],week:["Week from %A, %b %e, %Y","%A, %b %e","-%A, %b %e, %Y"],month:["%B %Y","%B","-%B %Y"],year:["%Y","%Y","-%Y"]}},w={line:{},spline:{},area:{},areaspline:{},column:{approximation:"sum",groupPixelWidth:10},arearange:{approximation:"range"},areasplinerange:{approximation:"range"},columnrange:{approximation:"range",groupPixelWidth:10},candlestick:{approximation:"ohlc",groupPixelWidth:10},ohlc:{approximation:"ohlc",groupPixelWidth:5}},_=t.defaultDataGroupingUnits=[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1]],["week",[1]],["month",[1,3,6]],["year",null]],S=t.approximations={sum:function(t){var e,n=t.length;if(!n&&t.hasNulls)e=null;else if(n)for(e=0;n--;)e+=t[n];return e},average:function(t){var e=t.length;return t=S.sum(t),u(t)&&e&&(t/=e),t},averages:function(){var t=[];return s(arguments,function(e){t.push(S.average(e))}),void 0===t[0]?void 0:t},open:function(t){return t.length?t[0]:t.hasNulls?null:void 0},high:function(t){return t.length?n(t):t.hasNulls?null:void 0},low:function(t){return t.length?i(t):t.hasNulls?null:void 0},close:function(t){return t.length?t[t.length-1]:t.hasNulls?null:void 0},ohlc:function(t,e,n,i){if(t=S.open(t),e=S.high(e),n=S.low(n),i=S.close(i),u(t)||u(e)||u(n)||u(i))return[t,e,n,i]},range:function(t,e){return t=S.low(t),e=S.high(e),u(t)||u(e)?[t,e]:null===t&&null===e?null:void 0}};v.groupData=function(t,e,n,i){var r,o,a=this.data,l=this.options.data,c=[],h=[],f=[],d=t.length,p=!!e,g=[];i="function"===typeof i?i:S[i]||w[this.type]&&S[w[this.type].approximation]||S[x.approximation];var m,v,y=this.pointArrayMap,b=y&&y.length,_=0;for(o=0,b?s(y,function(){g.push([])}):g.push([]),m=b||1,v=0;v<=d&&!(t[v]>=n[0]);v++);for(;v<=d;v++){for(;void 0!==n[_+1]&&t[v]>=n[_+1]||v===d;){for(r=n[_],this.dataGroupInfo={start:o,length:g[0].length},void 0!==(o=i.apply(this,g))&&(c.push(r),h.push(o),f.push(this.dataGroupInfo)),o=v,r=0;rthis.chart.plotSizeX/r||i&&e.forced)&&(o=!0);return o?r:0},r.prototype.setDataGrouping=function(t,e){var n;if(e=f(e,!0),t||(t={forced:!1,units:null}),this instanceof r)for(n=this.series.length;n--;)this.series[n].update({dataGrouping:t},!1);else s(this.chart.options.series,function(e){e.dataGrouping=t},!1);this.ordinalSlope=null,e&&this.chart.redraw()}}(c),function(t){var e=t.each,n=t.Point,i=t.seriesType,r=t.seriesTypes;i("ohlc","column",{lineWidth:1,tooltip:{pointFormat:'\u25cf {series.name}
Open: {point.open}
High: {point.high}
Low: {point.low}
Close: {point.close}
'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:["open","high","low","close"],toYData:function(t){return[t.open,t.high,t.low,t.close]},pointValKey:"close",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointAttribs:function(t,e){e=r.column.prototype.pointAttribs.call(this,t,e);var n=this.options;return delete e.fill,!t.options.color&&n.upColor&&t.openi&&(e-=Math.round((r-i)/2),i=r),e=h[t](e,n,i,r),a&&o&&(e.push("M","circle"===t?e[1]-e[4]:e[1]+e[4]/2,n>o?n:n+r,"L",a,o),e=e.concat(h.circle(a-1,o-1,2,2))),e}}var i=t.addEvent,r=t.each,o=t.merge,a=t.noop,s=t.Renderer,l=t.seriesType,c=t.TrackerMixin,u=t.VMLRenderer,h=t.SVGRenderer.prototype.symbols;l("flags","column",{pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}
"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd6eb"}},style:{fontSize:"11px",fontWeight:"bold"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],forceCrop:!0,init:t.Series.prototype.init,pointAttribs:function(t,e){var n=this.options,i=t&&t.color||this.color,r=n.lineColor,o=t&&t.lineWidth;return t=t&&t.fillColor||n.fillColor,e&&(t=n.states[e].fillColor,r=n.states[e].lineColor,o=n.states[e].lineWidth),{fill:t||i,stroke:r||i,"stroke-width":o||n.lineWidth||0}},translate:e.translate,getPlotBox:e.getPlotBox,drawPoints:function(){var e,n,i,a,s,l,c,u,h=this.points,f=this.chart,d=f.renderer,p=f.inverted,g=this.options,m=g.y,v=this.yAxis,y={},b=[];for(a=h.length;a--;)s=h[a],u=(p?s.plotY:s.plotX)>this.xAxis.len,e=s.plotX,l=s.stackIndex,i=s.options.shape||g.shape,void 0!==(n=s.plotY)&&(n=s.plotY+m-(void 0!==l&&l*g.stackDistance)),s.anchorX=l?void 0:s.plotX,c=l?void 0:s.plotY,l=s.graphic,void 0!==n&&0<=e&&!u?(l||(l=s.graphic=d.label("",null,null,i,null,null,g.useHTML).attr(this.pointAttribs(s)).css(o(g.style,s.style)).attr({align:"flag"===i?"left":"center",width:g.width,height:g.height,"text-align":g.textAlign}).addClass("highcharts-point").add(this.markerGroup),s.graphic.div&&(s.graphic.div.point=s),l.shadow(g.shadow),l.isNew=!0),0d))););e(f,function(t,e){var i;t.plotX+=w,(void 0===t.plotY||y)&&(0<=t.plotX&&t.plotX<=b.len?y?(t.plotY=b.translate(t.x,0,1,0,1),t.plotX=n(t.y)?x.translate(t.y,0,0,0,1):0):t.plotY=h.chartHeight-b.bottom-(b.opposite?b.height:0)+b.offset-x.top:t.shapeArgs={}),(o=f[e-1])&&o.plotX===t.plotX&&(void 0===o.stackIndex&&(o.stackIndex=0),i=o.stackIndex+1),t.stackIndex=i}),this.onSeries=p}}}(c)),function(t){function e(t,e,n){this.init(t,e,n)}var n,i=t.addEvent,r=t.Axis,o=t.correctFloat,a=t.defaultOptions,s=t.defined,l=t.destroyObjectProperties,c=t.each,u=t.fireEvent,h=t.hasTouch,f=t.isTouchDevice,d=t.merge,p=t.pick,g=t.removeEvent,m=t.wrap,v={height:f?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:t.svg&&!f,margin:10,minWidth:6,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",trackBorderWidth:1};a.scrollbar=d(!0,v,a.scrollbar),t.swapXY=n=function(t,e){var n,i=t.length;if(e)for(e=0;e=i?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===r.showFull&&(0>=t&&1<=e?this.group.hide():this.group.show()),this.rendered=!0)},initEvents:function(){var t=this;t.mouseMoveHandler=function(e){var n=t.chart.pointer.normalize(e),i=t.options.vertical?"chartY":"chartX",r=t.initPositions;!t.grabbedCenter||e.touches&&0===e.touches[0][i]||(i=(n=t.cursorToScrollbarPosition(n)[i])-(i=t[i]),t.hasDragged=!0,t.updatePosition(r[0]+i,r[1]+i),t.hasDragged&&u(t,"changed",{from:t.from,to:t.to,trigger:"scrollbar",DOMType:e.type,DOMEvent:e}))},t.mouseUpHandler=function(e){t.hasDragged&&u(t,"changed",{from:t.from,to:t.to,trigger:"scrollbar",DOMType:e.type,DOMEvent:e}),t.grabbedCenter=t.hasDragged=t.chartX=t.chartY=null},t.mouseDownHandler=function(e){e=t.chart.pointer.normalize(e),e=t.cursorToScrollbarPosition(e),t.chartX=e.chartX,t.chartY=e.chartY,t.initPositions=[t.from,t.to],t.grabbedCenter=!0},t.buttonToMinClick=function(e){var n=o(t.to-t.from)*t.options.step;t.updatePosition(o(t.from-n),o(t.to-n)),u(t,"changed",{from:t.from,to:t.to,trigger:"scrollbar",DOMEvent:e})},t.buttonToMaxClick=function(e){var n=(t.to-t.from)*t.options.step;t.updatePosition(t.from+n,t.to+n),u(t,"changed",{from:t.from,to:t.to,trigger:"scrollbar",DOMEvent:e})},t.trackClick=function(e){var n=t.chart.pointer.normalize(e),i=t.to-t.from,r=t.y+t.scrollbarTop,o=t.x+t.scrollbarLeft;t.options.vertical&&n.chartY>r||!t.options.vertical&&n.chartX>o?t.updatePosition(t.from+i,t.to+i):t.updatePosition(t.from-i,t.to-i),u(t,"changed",{from:t.from,to:t.to,trigger:"scrollbar",DOMEvent:e})}},cursorToScrollbarPosition:function(t){var e=(e=this.options).minWidth>this.calculatedWidth?e.minWidth:0;return{chartX:(t.chartX-this.x-this.xOffset)/(this.barWidth-e),chartY:(t.chartY-this.y-this.yOffset)/(this.barWidth-e)}},updatePosition:function(t,e){1t&&(e=o(e-t),t=0),this.from=t,this.to=e},update:function(t){this.destroy(),this.init(this.chart.renderer,d(!0,this.options,t),this.chart)},addEvents:function(){var t=this.options.inverted?[1,0]:[0,1],e=this.scrollbarButtons,n=this.scrollbarGroup.element,r=this.mouseDownHandler,o=this.mouseMoveHandler,a=this.mouseUpHandler;t=[[e[t[0]].element,"click",this.buttonToMinClick],[e[t[1]].element,"click",this.buttonToMaxClick],[this.track.element,"click",this.trackClick],[n,"mousedown",r],[n.ownerDocument,"mousemove",o],[n.ownerDocument,"mouseup",a]];h&&t.push([n,"touchstart",r],[n.ownerDocument,"touchmove",o],[n.ownerDocument,"touchend",a]),c(t,function(t){i.apply(null,t)}),this._events=t},removeEvents:function(){c(this._events,function(t){g.apply(null,t)}),this._events.length=0},destroy:function(){var t=this.chart.scroller;this.removeEvents(),c(["track","scrollbarRifles","scrollbar","scrollbarGroup","group"],function(t){this[t]&&this[t].destroy&&(this[t]=this[t].destroy())},this),t&&this===t.scrollbar&&(t.scrollbar=null,l(t.scrollbarButtons))}},m(r.prototype,"init",function(t){var n=this;t.apply(n,Array.prototype.slice.call(arguments,1)),n.options.scrollbar&&n.options.scrollbar.enabled&&(n.options.scrollbar.vertical=!n.horiz,n.options.startOnTick=n.options.endOnTick=!1,n.scrollbar=new e(n.chart.renderer,n.options.scrollbar,n.chart),i(n.scrollbar,"changed",function(t){var e,i=Math.min(p(n.options.min,n.min),n.min,n.dataMin),r=Math.max(p(n.options.max,n.max),n.max,n.dataMax)-i;n.horiz&&!n.reversed||!n.horiz&&n.reversed?(e=i+r*this.to,i+=r*this.from):(e=i+r*(1-this.from),i+=r*(1-this.to)),n.setExtremes(i,e,!0,!1,t)}))}),m(r.prototype,"render",function(t){var e=Math.min(p(this.options.min,this.min),this.min,p(this.dataMin,this.min)),n=Math.max(p(this.options.max,this.max),this.max,p(this.dataMax,this.max)),i=this.scrollbar,r=this.titleOffset||0;t.apply(this,Array.prototype.slice.call(arguments,1)),i&&(this.horiz?(i.position(this.left,this.top+this.height+2+this.chart.scrollbarsOffsets[1]+(this.opposite?0:r+this.axisTitleMargin+this.offset),this.width,this.height),r=1):(i.position(this.left+this.width+2+this.chart.scrollbarsOffsets[0]+(this.opposite?r+this.axisTitleMargin+this.offset:0),this.top,this.width,this.height),r=0),(!this.opposite&&!this.horiz||this.opposite&&this.horiz)&&(this.chart.scrollbarsOffsets[r]+=this.scrollbar.size+this.scrollbar.options.margin),isNaN(e)||isNaN(n)||!s(this.min)||!s(this.max)?i.setRange(0,0):(r=(this.min-e)/(n-e),e=(this.max-e)/(n-e),this.horiz&&!this.reversed||!this.horiz&&this.reversed?i.setRange(r,e):i.setRange(1-e,1-r)))}),m(r.prototype,"getOffset",function(t){var e=this.horiz?2:1,n=this.scrollbar;t.apply(this,Array.prototype.slice.call(arguments,1)),n&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[e]+=n.size+n.options.margin)}),m(r.prototype,"destroy",function(t){this.scrollbar&&(this.scrollbar=this.scrollbar.destroy()),t.apply(this,Array.prototype.slice.call(arguments,1))}),t.Scrollbar=e}(c),function(t){function e(t){this.init(t)}var n=t.addEvent,i=t.Axis,r=t.Chart,o=t.color,a=t.defaultOptions,s=t.defined,l=t.destroyObjectProperties,c=t.each,u=t.erase,h=t.error,f=t.extend,d=t.grep,p=t.hasTouch,g=t.isArray,m=t.isNumber,v=t.isObject,y=t.merge,b=t.pick,x=t.removeEvent,w=t.Scrollbar,_=t.Series,S=t.seriesTypes,k=t.wrap,M=[].concat(t.defaultDataGroupingUnits),O=function(t){var e=d(arguments,m);if(e.length)return Math[t].apply(0,e)};M[4]=["day",[1,2,3,4]],M[5]=["week",[1,2,3]],S=void 0===S.areaspline?"line":"areaspline",f(a,{navigator:{height:40,margin:25,maskInside:!0,handles:{width:7,height:15,symbols:["navigator-handle","navigator-handle"],enabled:!0,lineWidth:1,backgroundColor:"#f2f2f2",borderColor:"#999999"},maskFill:o("#6685c2").setOpacity(.3).get(),outlineColor:"#cccccc",outlineWidth:1,series:{type:S,fillOpacity:.05,lineWidth:1,compare:null,dataGrouping:{approximation:"average",enabled:!0,groupPixelWidth:2,smoothed:!0,units:M},dataLabels:{enabled:!1,zIndex:2},id:"highcharts-navigator-series",className:"highcharts-navigator-series",lineColor:null,marker:{enabled:!1},pointRange:0,threshold:null},xAxis:{overscroll:0,className:"highcharts-navigator-xaxis",tickLength:0,lineWidth:0,gridLineColor:"#e6e6e6",gridLineWidth:1,tickPixelInterval:200,labels:{align:"left",style:{color:"#999999"},x:3,y:-4},crosshair:!1},yAxis:{className:"highcharts-navigator-yaxis",gridLineWidth:0,startOnTick:!1,endOnTick:!1,minPadding:.1,maxPadding:.1,labels:{enabled:!1},crosshair:!1,title:{text:null},tickLength:0,tickWidth:0}}}),t.Renderer.prototype.symbols["navigator-handle"]=function(t,e,n,i,r){return t=r.width/2,e=Math.round(t/3)+.5,["M",-t-1,.5,"L",t,.5,"L",t,(r=r.height)+.5,"L",-t-1,r+.5,"L",-t-1,.5,"M",-e,4,"L",-e,r-3,"M",e-1,4,"L",e-1,r-3]},e.prototype={drawHandle:function(t,e,n,i){var r=this.navigatorOptions.handles.height;this.handles[e][i](n?{translateX:Math.round(this.left+this.height/2),translateY:Math.round(this.top+parseInt(t,10)+.5-r)}:{translateX:Math.round(this.left+parseInt(t,10)),translateY:Math.round(this.top+this.height/2-r/2-1)})},drawOutline:function(t,e,n,i){var r=this.navigatorOptions.maskInside,o=(a=this.outline.strokeWidth())/2,a=a%2/2,s=this.outlineHeight,l=this.scrollbarHeight,c=this.size,u=this.left-l,h=this.top;n?t=["M",(u-=o)+s,h-l-a,"L",u+s,n=h+e+a,"L",u,n,"L",u,e=h+t+a,"L",u+s,e,"L",u+s,h+c+l].concat(r?["M",u+s,n-o,"L",u+s,e+o]:[]):t=["M",u,h+=o,"L",t+=u+l-a,h,"L",t,h+s,"L",e+=u+l-a,h+s,"L",e,h,"L",u+c+2*l,h].concat(r?["M",t-o,h,"L",e+o,h]:[]),this.outline[i]({d:t})},drawMasks:function(t,e,n,i){var r,o,a,s,l=this.left,u=this.top,h=this.height;n?(a=[l,l,l],s=[u,u+t,u+e],o=[h,h,h],r=[t,e-t,this.size-e]):(a=[l,l+t,l+e],s=[u,u,u],o=[t,e-t,this.size-e],r=[h,h,h]),c(this.shades,function(t,e){t[i]({x:a[e],y:s[e],width:o[e],height:r[e]})})},renderElements:function(){var t,e=this,n=e.navigatorOptions,i=n.maskInside,r=e.chart,o=r.inverted,a=r.renderer;e.navigatorGroup=t=a.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();var s={cursor:o?"ns-resize":"ew-resize"};c([!i,i,!i],function(i,r){e.shades[r]=a.rect().addClass("highcharts-navigator-mask"+(1===r?"-inside":"-outside")).attr({fill:i?n.maskFill:"rgba(0,0,0,0)"}).css(1===r&&s).add(t)}),e.outline=a.path().addClass("highcharts-navigator-outline").attr({"stroke-width":n.outlineWidth,stroke:n.outlineColor}).add(t),n.handles.enabled&&c([0,1],function(i){n.handles.inverted=r.inverted,e.handles[i]=a.symbol(n.handles.symbols[i],-n.handles.width/2-1,0,n.handles.width,n.handles.height,n.handles),e.handles[i].attr({zIndex:7-i}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][i]).add(t);var o=n.handles;e.handles[i].attr({fill:o.backgroundColor,stroke:o.borderColor,"stroke-width":o.lineWidth}).css(s)})},update:function(t){c(this.series||[],function(t){t.baseSeries&&delete t.baseSeries.navigatorSeries}),this.destroy(),y(!0,this.chart.options.navigator,this.options,t),this.init(this.chart)},render:function(e,n,i,r){var o,a,l,c=this.chart,u=this.scrollbarHeight,h=this.xAxis;o=h.fake?c.xAxis[0]:h;var f,d=this.navigatorEnabled,p=this.rendered;a=c.inverted;var g,v=c.xAxis[0].minRange,y=c.xAxis[0].options.maxRange;if(!this.hasDragged||s(i)){if(!m(e)||!m(n)){if(!p)return;i=0,r=b(h.width,o.width)}this.left=b(h.left,c.plotLeft+u+(a?c.plotWidth:0)),this.size=f=l=b(h.len,(a?c.plotHeight:c.plotWidth)-2*u),c=a?u:l+2*u,i=b(i,h.toPixels(e,!0)),r=b(r,h.toPixels(n,!0)),m(i)&&1/0!==Math.abs(i)||(i=0,r=c),e=h.toValue(i,!0),n=h.toValue(r,!0),(g=Math.abs(t.correctFloat(n-e)))y&&(this.grabbedLeft?i=h.toPixels(n-y,!0):this.grabbedRight&&(r=h.toPixels(e+y,!0))),this.zoomedMax=Math.min(Math.max(i,r,0),f),this.zoomedMin=Math.min(Math.max(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(i,r),0),f),this.range=this.zoomedMax-this.zoomedMin,f=Math.round(this.zoomedMax),i=Math.round(this.zoomedMin),d&&(this.navigatorGroup.attr({visibility:"visible"}),p=p&&!this.hasDragged?"animate":"attr",this.drawMasks(i,f,a,p),this.drawOutline(i,f,a,p),this.navigatorOptions.handles.enabled&&(this.drawHandle(i,0,a,p),this.drawHandle(f,1,a,p))),this.scrollbar&&(a?(a=this.top-u,o=this.left-u+(d||!o.opposite?0:(o.titleOffset||0)+o.axisTitleMargin),u=l+2*u):(a=this.top+(d?this.height:-u),o=this.left-u),this.scrollbar.position(o,a,c,u),this.scrollbar.setRange(this.zoomedMin/l,this.zoomedMax/l)),this.rendered=!0}},addMouseEvents:function(){var t,e,i=this,r=i.chart,o=r.container,a=[];i.mouseMoveHandler=t=function(t){i.onMouseMove(t)},i.mouseUpHandler=e=function(t){i.onMouseUp(t)},(a=i.getPartsEvents("mousedown")).push(n(o,"mousemove",t),n(o.ownerDocument,"mouseup",e)),p&&(a.push(n(o,"touchmove",t),n(o.ownerDocument,"touchend",e)),a.concat(i.getPartsEvents("touchstart"))),i.eventsToUnbind=a,i.series&&i.series[0]&&a.push(n(i.series[0].xAxis,"foundExtremes",function(){r.navigator.modifyNavigatorAxisExtremes()}))},getPartsEvents:function(t){var e=this,i=[];return c(["shades","handles"],function(r){c(e[r],function(o,a){i.push(n(o.element,t,function(t){e[r+"Mousedown"](t,a)}))})}),i},shadesMousedown:function(t,e){t=this.chart.pointer.normalize(t);var n,i,r=this.chart,o=this.xAxis,a=this.zoomedMin,l=this.left,c=this.size,u=this.range,h=t.chartX;r.inverted&&(h=t.chartY,l=this.top),1===e?(this.grabbedCenter=h,this.fixedWidth=u,this.dragOffset=h-a):(t=h-l-u/2,0===e?t=Math.max(0,t):2===e&&t+u>=c&&(t=c-u,o.reversed?(t-=u,i=this.getUnionExtremes().dataMin):n=this.getUnionExtremes().dataMax),t!==a&&(this.fixedWidth=u,e=o.toFixedRange(t,t+u,i,n),s(e.min)&&r.xAxis[0].setExtremes(Math.min(e.min,e.max),Math.max(e.min,e.max),!0,null,{trigger:"navigator"})))},handlesMousedown:function(t,e){this.chart.pointer.normalize(t);var n=(t=this.chart).xAxis[0],i=t.inverted&&!n.reversed||!t.inverted&&n.reversed;0===e?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=i?n.min:n.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=i?n.max:n.min),t.fixedRange=null},onMouseMove:function(t){var e=this,n=e.chart,i=e.left,r=e.navigatorSize,o=e.range,a=e.dragOffset,s=n.inverted;t.touches&&0===t.touches[0].pageX||(n=(t=n.pointer.normalize(t)).chartX,s&&(i=e.top,n=t.chartY),e.grabbedLeft?(e.hasDragged=!0,e.render(0,0,n-i,e.otherHandlePos)):e.grabbedRight?(e.hasDragged=!0,e.render(0,0,e.otherHandlePos,n-i)):e.grabbedCenter&&(e.hasDragged=!0,nr+a-o&&(n=r+a-o),e.render(0,0,n-a,n-a+o)),e.hasDragged&&e.scrollbar&&e.scrollbar.options.liveRedraw&&(t.DOMType=t.type,setTimeout(function(){e.onMouseUp(t)},0)))},onMouseUp:function(t){var e,n,i=this.chart,r=this.xAxis,o=r&&r.reversed,a=this.scrollbar,l=t.DOMEvent||t;(!this.hasDragged||a&&a.hasDragged)&&"scrollbar"!==t.trigger||(a=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos?e=this.fixedExtreme:this.zoomedMax===this.otherHandlePos&&(n=this.fixedExtreme),this.zoomedMax===this.size&&(n=o?a.dataMin:a.dataMax),0===this.zoomedMin&&(e=o?a.dataMax:a.dataMin),r=r.toFixedRange(this.zoomedMin,this.zoomedMax,e,n),s(r.min)&&i.xAxis[0].setExtremes(Math.min(r.min,r.max),Math.max(r.min,r.max),!0,!this.hasDragged&&null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:l})),"mousemove"!==t.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null)},removeEvents:function(){this.eventsToUnbind&&(c(this.eventsToUnbind,function(t){t()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()},removeBaseSeriesEvents:function(){var t=this.baseSeries||[];this.navigatorEnabled&&t[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&c(t,function(t){x(t,"updatedData",this.updatedDataHandler)},this),t[0].xAxis&&x(t[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},init:function(t){var e=(a=t.options).navigator,r=e.enabled,o=(c=a.scrollbar).enabled,a=r?e.height:0,s=o?c.height:0;this.handles=[],this.shades=[],this.chart=t,this.setBaseSeries(),this.height=a,this.scrollbarHeight=s,this.scrollbarEnabled=o,this.navigatorEnabled=r,this.navigatorOptions=e,this.scrollbarOptions=c,this.outlineHeight=a+s,this.opposite=b(e.opposite,!r&&t.inverted);var l=this,c=l.baseSeries,u=(o=t.xAxis.length,t.yAxis.length),h=c&&c[0]&&c[0].xAxis||t.xAxis[0]||{options:{}};t.extraMargin={type:l.opposite?"plotTop":"marginBottom",value:(r||!t.inverted?l.outlineHeight:0)+e.margin},t.inverted&&(t.extraMargin.type=l.opposite?"marginRight":"plotLeft"),t.isDirtyBox=!0,l.navigatorEnabled?(l.xAxis=new i(t,y({breaks:h.options.breaks,ordinal:h.options.ordinal},e.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:o,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},t.inverted?{offsets:[s,0,-s,0],width:a}:{offsets:[0,-s,0,s],height:a})),l.yAxis=new i(t,y(e.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:u,zoomEnabled:!1},t.inverted?{width:a}:{height:a})),c||e.series.data?l.updateNavigatorSeries(!1):0===t.series.length&&(l.unbindRedraw=n(t,"beforeRedraw",function(){0t.inArray(n,u))||(n&&(x(n,"updatedData",s.updatedDataHandler),delete n.navigatorSeries),e.destroy(),!1)});u&&u.length&&c(u,function(t){var e=t.navigatorSeries,c=f({color:t.color},g(h)?a.navigator.series:h);e&&!1===s.navigatorOptions.adaptToUpdatedData||(d.name="Navigator "+u.length,i=t.options||{},o=i.navigatorOptions||{},r=y(i,d,c,o),c=o.data||c.data,s.hasNavigatorData=s.hasNavigatorData||!!c,r.data=c||i.data&&i.data.slice(0),e&&e.options?e.update(r,n):(t.navigatorSeries=l.initSeries(r),t.navigatorSeries.baseSeries=t,p.push(t.navigatorSeries)))}),(!h.data||u&&u.length)&&!g(h)||(s.hasNavigatorData=!1,h=t.splat(h),c(h,function(t,e){d.name="Navigator "+(p.length+1),(r=y(a.navigator.series,{color:l.series[e]&&!l.series[e].options.isInternal&&l.series[e].color||l.options.colors[e]||l.options.colors[0]},d,t)).data=t.data,r.data&&(s.hasNavigatorData=!0,p.push(l.initSeries(r)))})),e&&this.addBaseSeriesEvents()},addBaseSeriesEvents:function(){var t=this,e=t.baseSeries||[];e[0]&&e[0].xAxis&&n(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes),c(e,function(e){n(e,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)}),n(e,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)}),!1!==this.navigatorOptions.adaptToUpdatedData&&e.xAxis&&n(e,"updatedData",this.updatedDataHandler),n(e,"remove",function(){this.navigatorSeries&&(u(t.series,this.navigatorSeries),s(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)})},this)},modifyNavigatorAxisExtremes:function(){var t,e=this.xAxis;e.getExtremes&&(!(t=this.getUnionExtremes(!0))||t.dataMin===e.min&&t.dataMax===e.max||(e.min=t.dataMin,e.max=t.dataMax))},modifyBaseAxisExtremes:function(){var t,e,n=this.chart.navigator,i=(o=this.getExtremes()).dataMin,r=o.dataMax,o=o.max-o.min,a=n.stickToMin,s=n.stickToMax,l=b(this.options.overscroll,0),c=n.series&&n.series[0],u=!!this.setExtremes;this.eventArgs&&"rangeSelectorButton"===this.eventArgs.trigger||(a&&(t=(e=i)+o),s&&(t=r+l,a||(e=Math.max(t-o,c&&c.xData?c.xData[0]:-Number.MAX_VALUE))),u&&(a||s)&&m(e)&&(this.min=this.userMin=e,this.max=this.userMax=t)),n.stickToMin=n.stickToMax=null},updatedDataHandler:function(){var t=this.chart.navigator,e=this.navigatorSeries;t.stickToMax=t.xAxis.reversed?0===Math.round(t.zoomedMin):Math.round(t.zoomedMax)>=Math.round(t.size),t.stickToMin=m(this.xAxis.min)&&this.xAxis.min<=this.xData[0]&&(!this.chart.fixedRange||!t.stickToMax),e&&!t.hasNavigatorData&&(e.options.pointStart=this.xData[0],e.setData(this.options.data,!1,null,!1))},addChartEvents:function(){n(this.chart,"redraw",function(){var t=this.navigator,e=t&&(t.baseSeries&&t.baseSeries[0]&&t.baseSeries[0].xAxis||t.scrollbar&&this.xAxis[0]);e&&t.render(e.min,e.max)})},destroy:function(){this.removeEvents(),this.xAxis&&(u(this.chart.xAxis,this.xAxis),u(this.chart.axes,this.xAxis)),this.yAxis&&(u(this.chart.yAxis,this.yAxis),u(this.chart.axes,this.yAxis)),c(this.series||[],function(t){t.destroy&&t.destroy()}),c("series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" "),function(t){this[t]&&this[t].destroy&&this[t].destroy(),this[t]=null},this),c([this.handles],function(t){l(t)},this)}},t.Navigator=e,k(i.prototype,"zoom",function(t,e,n){var i,r=this.chart,o=(c=r.options).chart.zoomType,a=c.chart.pinchType,l=c.navigator,c=c.rangeSelector;return this.isXAxis&&(l&&l.enabled||c&&c.enabled)&&("x"===o||"x"===a?r.resetZoomButton="blocked":"y"===o?i=!1:"xy"!==o&&"xy"!==a||!this.options.range||(r=this.previousZoom,s(e)?this.previousZoom=[this.min,this.max]:r&&(e=r[0],n=r[1],delete this.previousZoom))),void 0!==i?i:t.call(this,e,n)}),n(r,"beforeRender",function(){var t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new e(this))}),n(r,"afterSetChartSize",function(){var t,e,n,i,r=this.legend,o=this.navigator;o&&(e=r&&r.options,n=o.xAxis,i=o.yAxis,t=o.scrollbarHeight,this.inverted?(o.left=o.opposite?this.chartWidth-t-o.height:this.spacing[3]+t,o.top=this.plotTop+t):(o.left=this.plotLeft+t,o.top=o.navigatorOptions.top||this.chartHeight-o.height-t-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(e&&"bottom"===e.verticalAlign&&e.enabled&&!e.floating?r.legendHeight+b(e.margin,10):0)),n&&i&&(this.inverted?n.options.left=i.options.left=o.left:n.options.top=i.options.top=o.top,n.setAxisSize(),i.setAxisSize()))}),k(_.prototype,"addPoint",function(t,e,n,i,r){var o=this.options.turboThreshold;o&&this.xData.length>o&&v(e,!0)&&this.chart.navigator&&h(20,!0),t.call(this,e,n,i,r)}),n(r,"afterAddSeries",function(){this.navigator&&this.navigator.setBaseSeries(null,!1)}),n(_,"afterUpdate",function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}),r.prototype.callbacks.push(function(t){var e=t.navigator;e&&t.xAxis[0]&&(t=t.xAxis[0].getExtremes(),e.render(t.min,t.max))})}(c),function(t){function e(t){this.init(t)}var n=t.addEvent,i=t.Axis,r=t.Chart,o=t.css,a=t.createElement,s=t.defaultOptions,l=t.defined,c=t.destroyObjectProperties,u=t.discardElement,h=t.each,f=t.extend,d=t.fireEvent,p=t.isNumber,g=t.merge,m=t.pick,v=t.pInt,y=t.splat,b=t.wrap;f(s,{rangeSelector:{verticalAlign:"top",buttonTheme:{"stroke-width":0,width:28,height:18,padding:2,zIndex:7},floating:!1,x:0,y:0,height:void 0,inputPosition:{align:"right",x:0,y:0},buttonPosition:{align:"left",x:0,y:0},labelStyle:{color:"#666666"}}}),s.lang=g(s.lang,{rangeSelectorZoom:"Zoom",rangeSelectorFrom:"From",rangeSelectorTo:"To"}),e.prototype={clickButton:function(t,e){var r,o,a,s,l,c=this,u=c.chart,f=c.buttonOptions[t],d=u.xAxis[0],g=(w=u.scroller&&u.scroller.getUnionExtremes()||d||{}).dataMin,v=w.dataMax,b=d&&Math.round(Math.min(d.max,m(v,d.max))),x=f.type,w=f._range,_=f.dataGrouping;if(null!==g&&null!==v){if(u.fixedRange=w,_&&(this.forcedDataGrouping=!0,i.prototype.setDataGrouping.call(d||{chart:this.chart},_,!1)),"month"===x||"year"===x)d?(x={range:f,max:b,chart:u,dataMin:g,dataMax:v},r=d.minFromRange.call(x),p(x.newMax)&&(b=x.newMax)):w=f;else if(w)r=Math.max(b-w,g),b=Math.min(r+w,v);else if("ytd"===x){if(!d)return void n(u,"beforeRender",function(){c.clickButton(t)});void 0===v&&(g=Number.MAX_VALUE,v=Number.MIN_VALUE,h(u.series,function(t){t=t.xData,g=Math.min(t[0],g),v=Math.max(t[t.length-1],v)}),e=!1),r=a=(b=c.getYTDExtremes(v,g,u.time.useUTC)).min,b=b.max}else"all"===x&&d&&(r=g,b=v);r+=f._offsetMin,b+=f._offsetMax,c.setSelected(t),d?d.setExtremes(r,b,m(e,1),null,{trigger:"rangeSelectorButton",rangeSelectorButton:f}):(o=y(u.options.xAxis)[0],l=o.range,o.range=w,s=o.min,o.min=a,n(u,"load",function(){o.range=l,o.min=s}))}},setSelected:function(t){this.selected=this.options.selected=t},defaultButtons:[{type:"month",count:1,text:"1m"},{type:"month",count:3,text:"3m"},{type:"month",count:6,text:"6m"},{type:"ytd",text:"YTD"},{type:"year",count:1,text:"1y"},{type:"all",text:"All"}],init:function(t){var e=this,i=t.options.rangeSelector,r=i.buttons||[].concat(e.defaultButtons),o=i.selected,a=function(){var t=e.minInput,n=e.maxInput;t&&t.blur&&d(t,"blur"),n&&n.blur&&d(n,"blur")};e.chart=t,e.options=i,e.buttons=[],t.extraTopMargin=i.height,e.buttonOptions=r,this.unMouseDown=n(t.container,"mousedown",a),this.unResize=n(t,"resize",a),h(r,e.computeButtonRange),void 0!==o&&r[o]&&this.clickButton(o,!1),n(t,"load",function(){t.xAxis&&t.xAxis[0]&&n(t.xAxis[0],"setExtremes",function(n){this.max-this.min!==t.fixedRange&&"rangeSelectorButton"!==n.trigger&&"updatedData"!==n.trigger&&e.forcedDataGrouping&&this.setDataGrouping(!1,!1)})})},updateButtonStates:function(){var t,e=(t=this.chart).xAxis[0],n=Math.round(e.max-e.min),i=!e.hasVisibleSeries,r=t.scroller&&t.scroller.getUnionExtremes()||e,o=r.dataMin,a=r.dataMax,s=(t=this.getYTDExtremes(a,o,t.time.useUTC)).min,l=t.max,c=this.selected,u=p(c),f=this.options.allButtonsEnabled,d=this.buttons;h(this.buttonOptions,function(t,r){var h=t._range,p=t.type,g=t.count||1,m=d[r],v=0;t=t._offsetMax-t._offsetMin,r=r===c;var y=h>a-o,b=h=864e5*{month:28,year:365}[p]*g-t&&n-36e5<=864e5*{month:31,year:366}[p]*g+t?h=!0:"ytd"===p?(h=l-s+t===n,x=!r):"all"===p&&(h=e.max-e.min>=a-o,w=!r&&u&&h),p=!f&&(y||b||w||i),g=r&&h||h&&!u&&!x,p?v=3:g&&(u=!0,v=2),m.state!==v&&m.setState(v)})},computeButtonRange:function(t){var e=t.type,n=t.count||1,i={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};i[e]?t._range=i[e]*n:"month"!==e&&"year"!==e||(t._range=864e5*{month:30,year:365}[e]*n),t._offsetMin=m(t.offsetMin,0),t._offsetMax=m(t.offsetMax,0),t._range+=t._offsetMax-t._offsetMin},setInputValue:function(t,e){var n=this.chart.options.rangeSelector,i=this.chart.time,r=this[t+"Input"];l(e)&&(r.previousValue=r.HCTime,r.HCTime=e),r.value=i.dateFormat(n.inputEditDateFormat||"%Y-%m-%d",r.HCTime),this[t+"DateBox"].attr({text:i.dateFormat(n.inputDateFormat||"%b %e, %Y",r.HCTime)})},showInput:function(t){var e=this.inputGroup,n=this[t+"DateBox"];o(this[t+"Input"],{left:e.translateX+n.x+"px",top:e.translateY+"px",width:n.width-2+"px",height:n.height-2+"px",border:"2px solid silver"})},hideInput:function(t){o(this[t+"Input"],{border:0,width:"1px",height:"1px"}),this.setInputValue(t)},drawInput:function(t){function e(){var t=n.value,e=(h.inputDateParser||Date.parse)(t),i=l.xAxis[0],o=(a=l.scroller&&l.scroller.xAxis?l.scroller.xAxis:i).dataMin,a=a.dataMax;e!==n.previousValue&&(n.previousValue=e,p(e)||(e=t.split("-"),e=Date.UTC(v(e[0]),v(e[1])-1,v(e[2]))),p(e)&&(l.time.useUTC||(e+=6e4*(new Date).getTimezoneOffset()),m?e>r.maxInput.HCTime?e=void 0:ea&&(e=a),void 0!==e&&i.setExtremes(m?e:i.min,m?i.max:e,void 0,void 0,{trigger:"rangeSelectorInput"})))}var n,i,r=this,l=r.chart,c=l.renderer.style||{},u=l.renderer,h=l.options.rangeSelector,d=r.div,m="min"===t,y=this.inputGroup;this[t+"Label"]=i=u.label(s.lang[m?"rangeSelectorFrom":"rangeSelectorTo"],this.inputGroup.offset).addClass("highcharts-range-label").attr({padding:2}).add(y),y.offset+=i.width+5,this[t+"DateBox"]=u=u.label("",y.offset).addClass("highcharts-range-input").attr({padding:2,width:h.inputBoxWidth||90,height:h.inputBoxHeight||17,stroke:h.inputBoxBorderColor||"#cccccc","stroke-width":1,"text-align":"center"}).on("click",function(){r.showInput(t),r[t+"Input"].focus()}).add(y),y.offset+=u.width+(m?10:0),this[t+"Input"]=n=a("input",{name:t,className:"highcharts-range-selector",type:"text"},{top:l.plotTop+"px"},d),i.css(g(c,h.labelStyle)),u.css(g({color:"#333333"},c,h.inputStyle)),o(n,f({position:"absolute",border:0,width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:c.fontSize,fontFamily:c.fontFamily,top:"-9999em"},h.inputStyle)),n.onfocus=function(){r.showInput(t)},n.onblur=function(){r.hideInput(t)},n.onchange=e,n.onkeypress=function(t){13===t.keyCode&&e()}},getPosition:function(){var t,e=(t=this.chart).options.rangeSelector;return{buttonTop:(t="top"===e.verticalAlign?t.plotTop-t.axisOffset[0]:0)+e.buttonPosition.y,inputTop:t+e.inputPosition.y-10}},getYTDExtremes:function(t,e,n){var i=this.chart.time,r=new i.Date(t),o=i.get("FullYear",r);return n=n?i.Date.UTC(o,0,1):+new i.Date(o,0,1),e=Math.max(e||0,n),r=r.getTime(),{max:Math.min(t||r,r),min:e}},render:function(t,e){var n,i,r=this,o=r.chart,l=o.renderer,c=o.container,u=(g=o.options).exporting&&!1!==g.exporting.enabled&&g.navigation&&g.navigation.buttonOptions,f=s.lang,d=r.div,p=g.rangeSelector,g=p.floating,v=r.buttons,y=(d=r.inputGroup,p.buttonTheme),b=p.buttonPosition,x=p.inputPosition,w=p.inputEnabled,_=y&&y.states,S=o.plotLeft,k=r.buttonGroup;i=r.rendered;var M,O=r.options.verticalAlign,T=o.legend,P=T&&T.options,C=b.y,A=x.y,E=i||!1,L=0,j=0;!1!==p.enabled&&(i||(r.group=i=l.g("range-selector-group").attr({zIndex:7}).add(),r.buttonGroup=k=l.g("range-selector-buttons").add(i),r.zoomText=l.text(f.rangeSelectorZoom,m(S+b.x,S),15).css(p.labelStyle).add(k),n=m(S+b.x,S)+r.zoomText.getBBox().width+5,h(r.buttonOptions,function(t,e){v[e]=l.button(t.text,n,0,function(){var n,i=t.events&&t.events.click;i&&(n=i.call(t)),!1!==n&&r.clickButton(e),r.isActive=!0},y,_&&_.hover,_&&_.select,_&&_.disabled).attr({"text-align":"center"}).add(k),n+=v[e].width+m(p.buttonSpacing,5)}),!1!==w&&(r.div=d=a("div",null,{position:"relative",height:0,zIndex:1}),c.parentNode.insertBefore(d,c),r.inputGroup=d=l.g("input-group").add(i),d.offset=0,r.drawInput("min"),r.drawInput("max"))),S=o.plotLeft-o.spacing[3],r.updateButtonStates(),u&&this.titleCollision(o)&&"top"===O&&"right"===b.align&&b.y+k.getBBox().height-12<(u.y||0)+u.height&&(L=-40),"left"===b.align?M=b.x-o.spacing[3]:"right"===b.align&&(M=b.x+L-o.spacing[1]),k.align({y:b.y,width:k.getBBox().width,align:b.align,x:M},!0,o.spacingBox),r.group.placed=E,r.buttonGroup.placed=E,!1!==w&&(L=u&&this.titleCollision(o)&&"top"===O&&"right"===x.align&&x.y-d.getBBox().height-12<(u.y||0)+u.height+o.spacing[0]?-40:0,"left"===x.align?M=S:"right"===x.align&&(M=-Math.max(o.axisOffset[1],-L)),d.align({y:x.y,width:d.getBBox().width,align:x.align,x:x.x+M-2},!0,o.spacingBox),c=d.alignAttr.translateX+d.alignOptions.x-L+d.getBBox().x+2,u=d.alignOptions.width,f=k.alignAttr.translateX+k.getBBox().x,M=k.getBBox().width+20,(x.align===b.align||f+M>c&&c+u>f&&C=-L?0:-L),translateY:d.alignAttr.translateY+k.getBBox().height+10}),r.setInputValue("min",t),r.setInputValue("max",e),r.inputGroup.placed=E),r.group.align({verticalAlign:O},!0,o.spacingBox),t=r.group.getBBox().height+20,e=r.group.alignAttr.translateY,"bottom"===O&&(j=e-(t=t+(T=P&&"bottom"===P.verticalAlign&&P.enabled&&!P.floating?T.legendHeight+m(P.margin,10):0)-20)-(g?0:p.y)-10),"top"===O?(g&&(j=0),o.titleOffset&&(j=o.titleOffset+o.options.title.margin),j+=o.margin[0]-o.spacing[0]||0):"middle"===O&&(A===C?j=0>A?e+void 0:e:(A||C)&&(j=0>A||0>C?j-Math.min(A,C):e-t+NaN)),r.group.translate(p.x,p.y+Math.floor(j)),!1!==w&&(r.minInput.style.marginTop=r.group.translateY+"px",r.maxInput.style.marginTop=r.group.translateY+"px"),r.rendered=!0)},getHeight:function(){var t=this.options,e=this.group,n=t.y,i=t.buttonPosition.y;t=t.inputPosition.y,e=e?e.getBBox(!0).height+13+n:0,n=Math.min(t,i);return(0>t&&0>i||0n&&(i?t=e-r:e=t+r),p(t)&&p(e)||(t=e=void 0),{min:t,max:e}},i.prototype.minFromRange=function(){var t,e,n,i=this.range,r={month:"Month",year:"FullYear"}[i.type],o=this.max,a=function(t,e){var n=new Date(t),i=n["get"+r]();return n["set"+r](i+e),i===n["get"+r]()&&n.setDate(0),n.getTime()-t};return p(i)?(t=o-i,n=i):(t=o+a(o,-i.count),this.chart&&(this.chart.fixedRange=o-t)),e=m(this.dataMin,Number.MIN_VALUE),p(t)||(t=e),t<=e&&(t=e,void 0===n&&(n=a(t,i.count)),this.newMax=Math.min(t+n,this.dataMax)),p(o)||(t=void 0),t},n(r,"afterGetContainer",function(){this.options.rangeSelector.enabled&&(this.rangeSelector=new e(this))}),b(r.prototype,"render",function(t,e,n){var i=this.axes,r=this.rangeSelector;r&&(h(i,function(t){t.updateNames(),t.setScale()}),this.getAxisMargins(),r.render(),i=r.options.verticalAlign,r.options.floating||("bottom"===i?this.extraBottomMargin=!0:"middle"!==i&&(this.extraTopMargin=!0))),t.call(this,e,n)}),n(r,"update",function(t){var e=t.options;t=this.rangeSelector,this.extraTopMargin=this.extraBottomMargin=!1,this.isDirtyBox=!0,t&&(t.render(),e=e.rangeSelector&&e.rangeSelector.verticalAlign||t.options&&t.options.verticalAlign,t.options.floating||("bottom"===e?this.extraBottomMargin=!0:"middle"!==e&&(this.extraTopMargin=!0)))}),b(r.prototype,"redraw",function(t,e,n){var i=this.rangeSelector;i&&!i.options.floating&&(i.render(),"bottom"===(i=i.options.verticalAlign)?this.extraBottomMargin=!0:"middle"!==i&&(this.extraTopMargin=!0)),t.call(this,e,n)}),r.prototype.adjustPlotArea=function(){var t=this.rangeSelector;this.rangeSelector&&(t=t.getHeight(),this.extraTopMargin&&(this.plotTop+=t),this.extraBottomMargin&&(this.marginBottom+=t))},r.prototype.callbacks.push(function(t){function e(){i=t.xAxis[0].getExtremes(),p(i.min)&&a.render(i.min,i.max)}var i,r,o,a=t.rangeSelector;a&&(o=n(t.xAxis[0],"afterSetExtremes",function(t){a.render(t.min,t.max)}),r=n(t,"redraw",e),e()),n(t,"destroy",function(){a&&(r(),o())})}),t.RangeSelector=e}(c),function(t){var e=t.addEvent,n=t.arrayMax,i=t.arrayMin,r=t.Axis,o=t.Chart,a=t.defined,s=t.each,l=t.extend,c=t.format,u=t.grep,h=t.inArray,f=t.isNumber,d=t.isString,p=t.map,g=t.merge,m=t.pick,v=t.Point,y=t.Renderer,b=t.Series,x=t.splat,w=t.SVGRenderer,_=t.VMLRenderer,S=t.wrap,k=b.prototype,M=k.init,O=k.processData,T=v.prototype.tooltipFormatter;t.StockChart=t.stockChart=function(e,n,i){var r,a=d(e)||e.nodeName,s=arguments[a?1:0],l=s.series,c=t.getOptions(),u=m(s.navigator&&s.navigator.enabled,c.navigator.enabled,!0),h=u?{startOnTick:!1,endOnTick:!1}:null,f={marker:{enabled:!1,radius:2}},v={shadow:!1,borderWidth:0};return s.xAxis=p(x(s.xAxis||{}),function(t,e){return g({minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0},c.xAxis,c.xAxis&&c.xAxis[e],t,{type:"datetime",categories:null},h)}),s.yAxis=p(x(s.yAxis||{}),function(t,e){return r=m(t.opposite,!0),g({labels:{y:-2},opposite:r,showLastLabel:!(!t.categories&&"category"!==t.type),title:{text:null}},c.yAxis,c.yAxis&&c.yAxis[e],t)}),s.series=null,(s=g({chart:{panning:!0,pinchType:"x"},navigator:{enabled:u},scrollbar:{enabled:m(c.scrollbar.enabled,!0)},rangeSelector:{enabled:m(c.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:m(c.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1},plotOptions:{line:f,spline:f,area:f,areaspline:f,arearange:f,areasplinerange:f,column:v,columnrange:v,candlestick:v,ohlc:v}},s,{isStock:!0})).series=l,a?new o(e,s,i):new o(s,n)},S(r.prototype,"autoLabelAlign",function(t){var e=this.chart,n=this.options,i=(e=e._labelPanes=e._labelPanes||{},this.options.labels);return this.chart.options.isStock&&"yAxis"===this.coll&&(!e[n=n.top+","+n.height]&&i.enabled)?(15===i.x&&(i.x=0),void 0===i.align&&(i.align="right"),e[n]=this,"right"):t.apply(this,[].slice.call(arguments,1))}),e(r,"destroy",function(){var t=this.chart,e=this.options&&this.options.top+","+this.options.height;e&&t._labelPanes&&t._labelPanes[e]===this&&delete t._labelPanes[e]}),S(r.prototype,"getPlotLinePath",function(e,n,i,r,o,l){var c,u,g,v,y,b,x=this,w=this.isLinked&&!this.series?this.linkedParent.series:this.series,_=x.chart,S=_.renderer,k=x.left,M=x.top,O=[],T=[];return"xAxis"!==x.coll&&"yAxis"!==x.coll?e.apply(this,[].slice.call(arguments,1)):(T=function(t){var e="xAxis"===t?"yAxis":"xAxis";return t=x.options[e],f(t)?[_[e][t]]:d(t)?[_.get(t)]:p(w,function(t){return t[e]})}(x.coll),s(x.isXAxis?_.yAxis:_.xAxis,function(t){if(!a(t.options.id)||-1===t.options.id.indexOf("navigator")){var e=t.isXAxis?"yAxis":"xAxis";e=a(t.options[e])?_[e][t.options[e]]:_[e][0];x===e&&T.push(t)}}),y=T.length?[]:[x.isXAxis?_.yAxis[0]:_.xAxis[0]],s(T,function(e){-1!==h(e,y)||t.find(y,function(t){return t.pos===e.pos&&t.len&&e.len})||y.push(e)}),b=m(l,x.translate(n,null,null,r)),f(b)&&(x.horiz?s(y,function(t){var e;u=t.pos,v=u+t.len,((c=g=Math.round(b+x.transB))k+x.width)&&(o?c=g=Math.min(Math.max(k,c),k+x.width):e=!0),e||O.push("M",c,u,"L",g,v)}):s(y,function(t){var e;c=t.pos,g=c+t.len,((u=v=Math.round(M+x.height-b))M+x.height)&&(o?u=v=Math.min(Math.max(M,u),x.top+x.height):e=!0),e||O.push("M",c,u,"L",g,v)})),0this.max?"hidden":"visible"}),r=u.getBBox(),o?(d&&!e||!d&&e)&&(s=u.y-r.height):s=u.y-r.height/2,o?(e=n-r.x,n=n+this.width-r.x):(e="left"===this.labelAlign?n:0,n="right"===this.labelAlign?n+this.width:i.chartWidth),u.translateX=n&&(g=-(u.translateX+r.width-n)),u.attr({x:t+g,y:s,anchorX:o?t:this.opposite?0:i.chartWidth,anchorY:o?this.opposite?i.chartHeight:0:s+r.height/2})}}),k.init=function(){M.apply(this,arguments),this.setCompare(this.options.compare)},k.setCompare=function(t){this.modifyValue="value"===t||"percent"===t?function(e,n){var i=this.compareValue;if(void 0!==e&&void 0!==i)return e="value"===t?e-i:e/i*100-(100===this.options.compareBase?0:100),n&&(n.change=e),e}:null,this.userOptions.compare=t,this.chart.hasRendered&&(this.isDirty=!0)},k.processData=function(){var t,e,n,i,r,o=-1,a=!0===this.options.compareStart?0:1;if(O.apply(this,arguments),this.xAxis&&this.processedYData)for(e=this.processedXData,i=(n=this.processedYData).length,this.pointArrayMap&&(-1===(o=h("close",this.pointArrayMap))&&(o=h(this.pointValKey||"y",this.pointArrayMap))),t=0;t=this.xAxis.min&&0!==r){this.compareValue=r;break}},S(k,"getExtremes",function(t){var e;t.apply(this,[].slice.call(arguments,1)),this.modifyValue&&(e=[this.modifyValue(this.dataMin),this.modifyValue(this.dataMax)],this.dataMin=i(e),this.dataMax=n(e))}),r.prototype.setCompare=function(t,e){this.isXAxis||(s(this.series,function(e){e.setCompare(t)}),m(e,!0)&&this.chart.redraw())},v.prototype.tooltipFormatter=function(e){return e=e.replace("{point.change}",(0t;++t)e=l[t],n=2>t||2===t&&/%$/.test(e),l[t]=o(e,[s,i,c,l[2]][t])+(n?a:0);return l[3]>l[2]&&(l[3]=l[2]),l},getStartAndEndRadians:function(t,e){return t=i(t)?t:0,e=i(e)&&e>t&&360>e-t?e:t+360,{start:n*(t+-90),end:n*(e+-90)}}},function(t){function e(t,e){this.init(t,e)}var n=t.CenteredSeriesMixin,i=t.each,r=t.extend,o=t.merge,a=t.splat;r(e.prototype,{coll:"pane",init:function(t,e){this.chart=e,this.background=[],e.pane.push(this),this.setOptions(t)},setOptions:function(t){this.options=o(this.defaultOptions,this.chart.angular?{background:{}}:void 0,t)},render:function(){var t=this.options,e=this.options.background,n=this.chart.renderer;if(this.group||(this.group=n.g("pane-group").attr({zIndex:t.zIndex||0}).add()),this.updateCenter(),e)for(e=a(e),t=Math.max(e.length,this.background.length||0),n=0;nu.len*u.tickInterval/(u.max-u.min)&&(f=0),d=p>f&&p<180-f?"left":p>180+f&&p<360-f?"right":"center"):d="center",i.attr({align:d})),t.x+=o.x,t.y+=h):t=t.call(this,e,n,i,r,o,a,s,c),t}),u(t,"getMarkPath",function(t,e,n,i,r,o,a){var s=this.axis;return s.isRadial?e=["M",e,n,"L",(t=s.getPosition(this.pos,s.center[2]/2+i)).x,t.y]:e=t.call(this,e,n,i,r,o,a),e})}(t),function(t){var e=t.each,n=t.pick,i=t.defined,r=t.seriesType,o=t.seriesTypes,a=t.Series.prototype,s=t.Point.prototype;r("arearange","area",{lineWidth:1,threshold:null,tooltip:{pointFormat:'\u25cf {series.name}: {point.low} - {point.high}
'},trackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0}},{pointArrayMap:["low","high"],dataLabelCollections:["dataLabel","dataLabelUpper"],toYData:function(t){return[t.low,t.high]},pointValKey:"low",deferTranslatePolar:!0,highToXY:function(t){var e=this.chart,n=this.xAxis.postTranslate(t.rectPlotX,this.yAxis.len-t.plotHigh);t.plotHighX=n.x-e.plotLeft,t.plotHigh=n.y-e.plotTop,t.plotLowX=t.plotX},translate:function(){var t=this,n=t.yAxis,i=!!t.modifyValue;o.area.prototype.translate.apply(t),e(t.points,function(e){var r=e.low,o=e.high,a=e.plotY;null===o||null===r?(e.isNull=!0,e.plotY=null):(e.plotLow=a,e.plotHigh=n.translate(i?t.modifyValue(o,e):o,0,1,0,1),i&&(e.yBottom=e.plotHigh))}),this.chart.polar&&e(this.points,function(e){t.highToXY(e),e.tooltipPos=[(e.plotHighX+e.plotLowX)/2,(e.plotHigh+e.plotLow)/2]})},getGraphPath:function(t){var e,i,r,a,s=[],l=[],c=o.area.prototype.getGraphPath;a=this.options;var u=this.chart.polar&&!1!==a.connectEnds,h=a.connectNulls,f=a.step;for(e=(t=t||this.points).length;e--;)(i=t[e]).isNull||u||h||t[e+1]&&!t[e+1].isNull||l.push({plotX:i.plotX,plotY:i.plotY,doCurve:!1}),r={polarPlotY:i.polarPlotY,rectPlotX:i.rectPlotX,yBottom:i.yBottom,plotX:n(i.plotHighX,i.plotX),plotY:i.plotHigh,isNull:i.isNull},l.push(r),s.push(r),i.isNull||u||h||t[e-1]&&!t[e-1].isNull||l.push({plotX:i.plotX,plotY:i.plotY,doCurve:!1});return t=c.call(this,t),f&&(!0===f&&(f="left"),a.step={left:"right",center:"center",right:"left"}[f]),s=c.call(this,s),l=c.call(this,l),a.step=f,a=[].concat(t,s),this.chart.polar||"M"!==l[0]||(l[0]="L"),this.graphPath=a,this.areaPath=t.concat(l),a.isArea=!0,a.xMap=t.xMap,this.areaPath.xMap=t.xMap,a},drawDataLabels:function(){var t,e,n,i=this.data,r=i.length,o=[],s=this.options.dataLabels,l=s.align,c=s.verticalAlign,u=s.inside,h=this.chart.inverted;if(s.enabled||this._hasPointLabels){for(t=r;t--;)(e=i[t])&&(n=u?e.plotHighe.plotLow,e.y=e.high,e._plotY=e.plotY,e.plotY=e.plotHigh,o[t]=e.dataLabel,e.dataLabel=e.dataLabelUpper,e.below=n,h?l||(s.align=n?"right":"left"):c||(s.verticalAlign=n?"top":"bottom"),s.x=s.xHigh,s.y=s.yHigh);for(a.drawDataLabels&&a.drawDataLabels.apply(this,arguments),t=r;t--;)(e=i[t])&&(n=u?e.plotHighe.plotLow,e.dataLabelUpper=e.dataLabel,e.dataLabel=o[t],e.y=e.low,e.plotY=e._plotY,e.below=!n,h?l||(s.align=n?"left":"right"):c||(s.verticalAlign=n?"bottom":"top"),s.x=s.xLow,s.y=s.yLow);a.drawDataLabels&&a.drawDataLabels.apply(this,arguments)}s.align=l,s.verticalAlign=c},alignDataLabel:function(){o.column.prototype.alignDataLabel.apply(this,arguments)},drawPoints:function(){var t,e,n=this.points.length;for(a.drawPoints.apply(this,arguments),e=0;es&&(f-=s*=-1),u?(t=n.barX+l,n.shapeType="path",n.shapeArgs={d:i.polarArc(f+s,f,t,t+n.pointWidth)}):(d.height=s,d.y=f,n.tooltipPos=c.inverted?[r.len+r.pos-c.plotLeft-f-s/2,a.len+a.pos-c.plotTop-d.x-d.width/2,s]:[a.left-c.plotLeft+d.x+d.width/2,r.pos-c.plotTop+f+s/2,s])})},directTouch:!0,trackerGroups:["group","dataLabelsGroup"],drawGraph:r,getSymbol:r,crispCol:s.crispCol,drawPoints:s.drawPoints,drawTracker:s.drawTracker,getColumnMetrics:s.getColumnMetrics,pointAttribs:s.pointAttribs,animate:function(){return s.animate.apply(this,arguments)},polarArc:function(){return s.polarArc.apply(this,arguments)},translate3dPoints:function(){return s.translate3dPoints.apply(this,arguments)},translate3dShapes:function(){return s.translate3dShapes.apply(this,arguments)}},{setState:s.pointClass.prototype.setState})}(t),function(t){var e=t.each,n=t.isNumber,i=t.merge,r=t.pick,o=t.pInt,a=t.Series,s=t.seriesType,l=t.TrackerMixin;s("gauge","line",{dataLabels:{enabled:!0,defer:!1,y:15,borderRadius:3,crop:!1,verticalAlign:"top",zIndex:2,borderWidth:1,borderColor:"#cccccc"},dial:{},pivot:{},tooltip:{headerFormat:""},showInLegend:!1},{angular:!0,directTouch:!0,drawGraph:t.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],translate:function(){var t=this.yAxis,a=this.options,s=t.center;this.generatePoints(),e(this.points,function(e){var l=i(a.dial,e.dial),c=o(r(l.radius,80))*s[2]/200,u=o(r(l.baseLength,70))*c/100,h=o(r(l.rearLength,10))*c/100,f=l.baseWidth||3,d=l.topWidth||1,p=a.overshoot,g=t.startAngleRad+t.translate(e.y,null,null,null,!0);n(p)?(p=p/180*Math.PI,g=Math.max(t.startAngleRad-p,Math.min(t.endAngleRad+p,g))):!1===a.wrap&&(g=Math.max(t.startAngleRad,Math.min(t.endAngleRad,g))),g=180*g/Math.PI,e.shapeType="path",e.shapeArgs={d:l.path||["M",-h,-f/2,"L",u,-f/2,c,-d/2,c,d/2,u,f/2,-h,f/2,"z"],translateX:s[0],translateY:s[1],rotation:g},e.plotX=s[0],e.plotY=s[1]})},drawPoints:function(){var t=this,n=t.yAxis.center,o=t.pivot,a=t.options,s=a.pivot,l=t.chart.renderer;e(t.points,function(e){var n=e.graphic,r=e.shapeArgs,o=r.d,s=i(a.dial,e.dial);n?(n.animate(r),r.d=o):(e.graphic=l[e.shapeType](r).attr({rotation:r.rotation,zIndex:1}).addClass("highcharts-dial").add(t.group),e.graphic.attr({stroke:s.borderColor||"none","stroke-width":s.borderWidth||0,fill:s.backgroundColor||"#000000"}))}),o?o.animate({translateX:n[0],translateY:n[1]}):(t.pivot=l.circle(0,0,r(s.radius,5)).attr({zIndex:2}).addClass("highcharts-pivot").translate(n[0],n[1]).add(t.group),t.pivot.attr({"stroke-width":s.borderWidth||0,stroke:s.borderColor||"#cccccc",fill:s.backgroundColor||"#000000"}))},animate:function(t){var n=this;t||(e(n.points,function(t){var e=t.graphic;e&&(e.attr({rotation:180*n.yAxis.startAngleRad/Math.PI}),e.animate({rotation:t.shapeArgs.rotation},n.options.animation))}),n.animate=null)},render:function(){this.group=this.plotGroup("group","series",this.visible?"visible":"hidden",this.options.zIndex,this.chart.seriesGroup),a.prototype.render.call(this),this.group.clip(this.chart.clipRect)},setData:function(t,e){a.prototype.setData.call(this,t,!1),this.processData(),this.generatePoints(),r(e,!0)&&this.chart.redraw()},drawTracker:l&&l.drawTrackerPoint},{setState:function(t){this.state=t}})}(t),function(t){var e=t.each,n=t.noop,i=t.pick,r=t.seriesType,o=t.seriesTypes;r("boxplot","column",{threshold:null,tooltip:{pointFormat:'\u25cf {series.name}
Maximum: {point.high}
Upper quartile: {point.q3}
Median: {point.median}
Lower quartile: {point.q1}
Minimum: {point.low}
'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,states:{hover:{brightness:-.3}},whiskerWidth:2},{pointArrayMap:["low","q1","median","q3","high"],toYData:function(t){return[t.low,t.q1,t.median,t.q3,t.high]},pointValKey:"high",pointAttribs:function(t){var e=this.options,n=t&&t.color||this.color;return{fill:t.fillColor||e.fillColor||n,stroke:e.lineColor||n,"stroke-width":e.lineWidth||0}},drawDataLabels:n,translate:function(){var t=this.yAxis,n=this.pointArrayMap;o.column.prototype.translate.apply(this),e(this.points,function(i){e(n,function(e){null!==i[e]&&(i[e+"Plot"]=t.translate(i[e],0,1,0,1))})})},drawPoints:function(){var t,n,r,o,a,s,l,c,u,h,f,d=this,p=d.options,g=d.chart.renderer,m=0,v=!1!==d.doQuartiles,y=d.options.whiskerLength;e(d.points,function(e){var b=e.graphic,x=b?"animate":"attr",w=e.shapeArgs,_={},S={},k={},M=e.color||d.color;void 0!==e.plotY&&(l=w.width,c=Math.floor(w.x),u=c+l,h=Math.round(l/2),t=Math.floor(v?e.q1Plot:e.lowPlot),n=Math.floor(v?e.q3Plot:e.lowPlot),r=Math.floor(e.highPlot),o=Math.floor(e.lowPlot),b||(e.graphic=b=g.g("point").add(d.group),e.stem=g.path().addClass("highcharts-boxplot-stem").add(b),y&&(e.whiskers=g.path().addClass("highcharts-boxplot-whisker").add(b)),v&&(e.box=g.path(void 0).addClass("highcharts-boxplot-box").add(b)),e.medianShape=g.path(void 0).addClass("highcharts-boxplot-median").add(b)),_.stroke=e.stemColor||p.stemColor||M,_["stroke-width"]=i(e.stemWidth,p.stemWidth,p.lineWidth),_.dashstyle=e.stemDashStyle||p.stemDashStyle,e.stem.attr(_),y&&(S.stroke=e.whiskerColor||p.whiskerColor||M,S["stroke-width"]=i(e.whiskerWidth,p.whiskerWidth,p.lineWidth),e.whiskers.attr(S)),v&&(b=d.pointAttribs(e),e.box.attr(b)),k.stroke=e.medianColor||p.medianColor||M,k["stroke-width"]=i(e.medianWidth,p.medianWidth,p.lineWidth),e.medianShape.attr(k),s=e.stem.strokeWidth()%2/2,m=c+h+s,e.stem[x]({d:["M",m,n,"L",m,r,"M",m,t,"L",m,o]}),v&&(s=e.box.strokeWidth()%2/2,t=Math.floor(t)+s,n=Math.floor(n)+s,c+=s,u+=s,e.box[x]({d:["M",c,n,"L",c,t,"L",u,t,"L",u,n,"L",c,n,"z"]})),y&&(s=e.whiskers.strokeWidth()%2/2,r+=s,o+=s,f=/%$/.test(y)?h*parseFloat(y)/100:y/2,e.whiskers[x]({d:["M",m-f,r,"L",m+f,r,"M",m-f,o,"L",m+f,o]})),a=Math.round(e.medianPlot),s=e.medianShape.strokeWidth()%2/2,a+=s,e.medianShape[x]({d:["M",c,a,"L",u,a]}))})},setStackedPoints:n})}(t),function(t){var e=t.each,n=t.noop,i=t.seriesType,r=t.seriesTypes;i("errorbar","boxplot",{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'\u25cf {series.name}: {point.low} - {point.high}
'},whiskerWidth:null},{type:"errorbar",pointArrayMap:["low","high"],toYData:function(t){return[t.low,t.high]},pointValKey:"high",doQuartiles:!1,drawDataLabels:r.arearange?function(){var t=this.pointValKey;r.arearange.prototype.drawDataLabels.call(this),e(this.data,function(e){e.y=e[t]})}:n,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||r.column.prototype.getColumnMetrics.call(this)}})}(t),function(t){var e=t.correctFloat,n=t.isNumber,i=t.pick,r=t.Point,o=t.Series,a=t.seriesType,s=t.seriesTypes;a("waterfall","column",{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}},{pointValKey:"y",translate:function(){var t,n,r,o,a,l,c,u,h,f,d,p=this.options,g=this.yAxis,m=i(p.minPointLength,5),v=m/2,y=p.threshold,b=p.stacking;for(s.column.prototype.translate.apply(this),u=h=y,t=0,p=(n=this.points).length;to.height&&(o.y+=o.height,o.height*=-1),r.plotY=o.y=Math.round(o.y)-this.borderWidth%2/2,o.height=Math.max(Math.round(o.height),.001),r.yBottom=o.y+o.height,o.height<=m&&!r.isNull?(o.height=m,o.y-=v,r.plotY=o.y,r.minPointLengthOffset=0>r.y?-v:v):r.minPointLengthOffset=0,o=r.plotY+(r.negative?o.height:0),this.chart.inverted?r.tooltipPos[0]=g.len-o:r.tooltipPos[1]=o},processData:function(t){var n,i,r,a,s,l,c,u=this.yData,h=this.options.data,f=u.length;for(r=i=a=s=this.options.threshold||0,c=0;ci[n-1].y&&!a||0=this.minPxSize/2?(n.marker=t.extend(n.marker,{radius:i,width:2*i,height:2*i}),n.dlBox={x:n.plotX-i,y:n.plotY-i,width:2*i,height:2*i}):n.shapeArgs=n.plotY=n.dlBox=void 0},alignDataLabel:d.column.prototype.alignDataLabel,buildKDTree:s,applyZones:s},{haloPath:function(t){return u.prototype.haloPath.call(this,0===t?0:(this.marker&&this.marker.radius||0)+t)},ttBelow:!1}),i.prototype.beforePadding=function(){var t=this,i=this.len,r=this.chart,s=0,u=i,h=this.isXAxis,f=h?"xData":"yData",d=this.min,p={},g=Math.min(r.plotWidth,r.plotHeight),m=Number.MAX_VALUE,v=-Number.MAX_VALUE,y=this.max-d,b=i/y,x=[];o(this.series,function(i){var a=i.options;!i.bubblePadding||!i.visible&&r.options.chart.ignoreHiddenSeries||(t.allowZoomOutside=!0,x.push(i),h&&(o(["minSize","maxSize"],function(t){var e=a[t],n=/%$/.test(e);e=c(e);p[t]=n?g*e/100:e}),i.minPxSize=p.minSize,i.maxPxSize=Math.max(p.maxSize,p.minSize),(i=i.zData).length&&(m=l(a.zMin,Math.min(m,Math.max(n(i),!1===a.displayNegative?a.zThreshold:-Number.MAX_VALUE))),v=l(a.zMax,Math.max(v,e(i))))))}),o(x,function(e){var n,i=e[f],r=i.length;if(h&&e.getRadii(m,v,e.minPxSize,e.maxPxSize),0(r=0<=e&&e<=t.length-1?e:0>e?t.length-1+e:0)-1?t.length-(1+o):r-1,o=r+1>t.length-1?o:r+1,a=t[e],o=t[o],s=a.plotX,a=a.plotY,l=o.plotX,c=o.plotY,s=(1.5*(o=t[r].plotX)+s)/2.5,a=(1.5*(r=t[r].plotY)+a)/2.5,l=(1.5*o+l)/2.5,u=(1.5*r+c)/2.5,c=Math.sqrt(Math.pow(s-o,2)+Math.pow(a-r,2)),h=Math.sqrt(Math.pow(l-o,2)+Math.pow(u-r,2)),s=Math.atan2(a-r,s-o),u=Math.PI/2+(s+Math.atan2(u-r,l-o))/2,Math.abs(s-u)>Math.PI/2&&(u-=Math.PI),s=o+Math.cos(u)*c,a=r+Math.sin(u)*c,o={rightContX:l=o+Math.cos(Math.PI+u)*h,rightContY:u=r+Math.sin(Math.PI+u)*h,leftContX:s,leftContY:a,plotX:o,plotY:r},n&&(o.prevPointCont=this.getConnectors(t,e,!1,i)),o},o(a,"buildKDTree",function(t){this.chart.polar&&(this.kdByAngle?this.searchPoint=this.searchPointByAngle:this.options.findNearestPointBy="xy"),t.apply(this)}),a.toXY=function(t){var e,n=this.chart,i=t.plotX;e=t.plotY,t.rectPlotX=i,t.rectPlotY=e,e=this.xAxis.postTranslate(t.plotX,this.yAxis.len-e),t.plotX=t.polarPlotX=e.x-n.plotLeft,t.plotY=t.polarPlotY=e.y-n.plotTop,this.kdByAngle?(0>(n=(i/Math.PI*180+this.xAxis.pane.options.startAngle)%360)&&(n+=360),t.clientX=n):t.clientX=t.plotX},r.spline&&(o(r.spline.prototype,"getPointSpline",function(t,e,n,i){return this.chart.polar?i?t=["C",(t=this.getConnectors(e,i,!0,this.connectEnds)).prevPointCont.rightContX,t.prevPointCont.rightContY,t.leftContX,t.leftContY,t.plotX,t.plotY]:t=["M",n.plotX,n.plotY]:t=t.call(this,e,n,i),t}),r.areasplinerange&&(r.areasplinerange.prototype.getPointSpline=r.spline.prototype.getPointSpline)),o(a,"translate",function(t){var e=this.chart;if(t.call(this),e.polar&&(this.kdByAngle=e.tooltip&&e.tooltip.shared,!this.preventPostTranslate))for(e=(t=this.points).length;e--;)this.toXY(t[e])}),o(a,"getGraphPath",function(t,e){var i,r,o,a=this;if(this.chart.polar){for(e=e||this.points,i=0;ir.center[1]}),o(r,"alignDataLabel",function(t,e,n,i,r,o){this.chart.polar?(t=e.rectPlotX/Math.PI*180,null===i.align&&(i.align=20t?"left":200t?"right":"center"),null===i.verticalAlign&&(i.verticalAlign=45>t||315t?"top":"middle"),a.alignDataLabel.call(this,e,n,i,r,o)):t.call(this,e,n,i,r,o)})),o(s,"getCoordinates",function(t,e){var i=this.chart,r={xAxis:[],yAxis:[]};return i.polar?n(i.axes,function(t){var n=t.isXAxis,o=t.center,a=e.chartX-o[0]-i.plotLeft;o=e.chartY-o[1]-i.plotTop;r[n?"xAxis":"yAxis"].push({axis:t,value:t.translate(n?Math.PI-Math.atan2(a,o):Math.sqrt(Math.pow(a,2)+Math.pow(o,2)),!0)})}):r=t.call(this,e),r}),o(t.Chart.prototype,"getAxes",function(e){this.pane||(this.pane=[]),n(t.splat(this.options.pane),function(e){new t.Pane(e,this)},this),e.call(this)}),o(t.Chart.prototype,"drawChartBox",function(t){t.call(this),n(this.pane,function(t){t.render()})}),o(t.Chart.prototype,"get",function(e,n){return t.find(this.pane,function(t){return t.options.id===n})||e.call(this,n)})}(t)},"object"===typeof t&&t.exports?t.exports=n:n(Highcharts)},function(t,e){var n;n=function(t){!function(t){var e=t.defaultOptions,n=t.doc,i=t.Chart,r=t.addEvent,o=t.removeEvent,a=t.fireEvent,s=t.createElement,l=t.discardElement,c=t.css,u=t.merge,h=t.pick,f=t.each,d=t.objectEach,p=t.extend,g=t.isTouchDevice,m=t.win,v=m.navigator.userAgent,y=t.Renderer.prototype.symbols;/Edge\/|Trident\/|MSIE /.test(v),/firefox/i.test(v),p(e.lang,{printChart:"Print chart",downloadPNG:"Download PNG image",downloadJPEG:"Download JPEG image",downloadPDF:"Download PDF document",downloadSVG:"Download SVG vector image",contextButtonTitle:"Chart context menu"}),e.navigation={buttonOptions:{theme:{},symbolSize:14,symbolX:12.5,symbolY:10.5,align:"right",buttonSpacing:3,height:22,verticalAlign:"top",width:24}},u(!0,e.navigation,{menuStyle:{border:"1px solid #999999",background:"#ffffff",padding:"5px 0"},menuItemStyle:{padding:"0.5em 1em",background:"none",color:"#333333",fontSize:g?"14px":"11px",transition:"background 250ms, color 250ms"},menuItemHoverStyle:{background:"#335cad",color:"#ffffff"},buttonOptions:{symbolFill:"#666666",symbolStroke:"#666666",symbolStrokeWidth:3,theme:{fill:"#ffffff",stroke:"none",padding:5}}}),e.exporting={type:"image/png",url:"https://export.highcharts.com/",printMaxWidth:780,scale:2,buttons:{contextButton:{className:"highcharts-contextbutton",menuClassName:"highcharts-contextmenu",symbol:"menu",_titleKey:"contextButtonTitle",menuItems:"printChart separator downloadPNG downloadJPEG downloadPDF downloadSVG".split(" ")}},menuItemDefinitions:{printChart:{textKey:"printChart",onclick:function(){this.print()}},separator:{separator:!0},downloadPNG:{textKey:"downloadPNG",onclick:function(){this.exportChart()}},downloadJPEG:{textKey:"downloadJPEG",onclick:function(){this.exportChart({type:"image/jpeg"})}},downloadPDF:{textKey:"downloadPDF",onclick:function(){this.exportChart({type:"application/pdf"})}},downloadSVG:{textKey:"downloadSVG",onclick:function(){this.exportChart({type:"image/svg+xml"})}}}},t.post=function(t,e,i){var r=s("form",u({method:"post",action:t,enctype:"multipart/form-data"},i),{display:"none"},n.body);d(e,function(t,e){s("input",{type:"hidden",name:e,value:t},null,r)}),r.submit(),l(r)},p(i.prototype,{sanitizeSVG:function(t,e){if(e&&e.exporting&&e.exporting.allowHTML){var n=t.match(/<\/svg>(.*?$)/);n&&n[1]&&(n=''+n[1]+"",t=t.replace("",n+""))}return t=t.replace(/zIndex="[^"]+"/g,"").replace(/isShadow="[^"]+"/g,"").replace(/symbolName="[^"]+"/g,"").replace(/jQuery[0-9]+="[^"]+"/g,"").replace(/url\(("|")(\S+)("|")\)/g,"url($2)").replace(/url\([^#]+#/g,"url(#").replace(/.*?$/,"").replace(/(fill|stroke)="rgba\(([ 0-9]+,[ 0-9]+,[ 0-9]+),([ 0-9\.]+)\)"/g,'$1="rgb($2)" $1-opacity="$3"').replace(/ /g,"\xa0").replace(/­/g,"\xad"),this.ieSanitizeSVG&&(t=this.ieSanitizeSVG(t)),t},getChartHTML:function(){return this.container.innerHTML},getSVG:function(e){var i,r,o,a,c,h=u(this.options,e);return r=s("div",null,{position:"absolute",top:"-9999em",width:this.chartWidth+"px",height:this.chartHeight+"px"},n.body),o=this.renderTo.style.width,c=this.renderTo.style.height,o=h.exporting.sourceWidth||h.chart.width||/px$/.test(o)&&parseInt(o,10)||600,c=h.exporting.sourceHeight||h.chart.height||/px$/.test(c)&&parseInt(c,10)||400,p(h.chart,{animation:!1,renderTo:r,forExport:!0,renderer:"SVGRenderer",width:o,height:c}),h.exporting.enabled=!1,delete h.data,h.series=[],f(this.series,function(t){(a=u(t.userOptions,{animation:!1,enableMouseTracking:!1,showCheckbox:!1,visible:t.visible})).isInternal||h.series.push(a)}),f(this.axes,function(e){e.userOptions.internalKey||(e.userOptions.internalKey=t.uniqueKey())}),i=new t.Chart(h,this.callback),e&&f(["xAxis","yAxis","series"],function(t){var n={};e[t]&&(n[t]=e[t],i.update(n))}),f(this.axes,function(e){var n=t.find(i.axes,function(t){return t.options.internalKey===e.userOptions.internalKey}),r=(o=e.getExtremes()).userMin,o=o.userMax;!n||void 0===r&&void 0===o||n.setExtremes(r,o,!0,!1)}),o=i.getChartHTML(),o=this.sanitizeSVG(o,h),h=null,i.destroy(),l(r),o},getSVGForExport:function(t,e){var n=this.options.exporting;return this.getSVG(u({chart:{borderRadius:0}},n.chartOptions,e,{exporting:{sourceWidth:t&&t.sourceWidth||n.sourceWidth,sourceHeight:t&&t.sourceHeight||n.sourceHeight}}))},exportChart:function(e,n){n=this.getSVGForExport(e,n),e=u(this.options.exporting,e),t.post(e.url,{filename:e.filename||"chart",type:e.type,width:e.width||0,scale:e.scale,svg:n},e.formAttributes)},print:function(){var t,e,i=this,r=i.container,o=[],s=r.parentNode,l=n.body,c=l.childNodes,u=i.options.exporting.printMaxWidth;i.isPrinting||(i.isPrinting=!0,i.pointer.reset(null,0),a(i,"beforePrint"),(e=u&&i.chartWidth>u)&&(t=[i.options.chart.width,void 0,!1],i.setSize(u,void 0,!1)),f(c,function(t,e){1===t.nodeType&&(o[e]=t.style.display,t.style.display="none")}),l.appendChild(r),m.focus(),m.print(),setTimeout(function(){s.appendChild(r),f(c,function(t,e){1===t.nodeType&&(t.style.display=o[e])}),i.isPrinting=!1,e&&i.setSize.apply(i,t),a(i,"afterPrint")},1e3))},contextMenu:function(e,i,o,a,l,u,h){var d,g,m=this,v=m.options.navigation,y=m.chartWidth,b=m.chartHeight,x="cache-"+e,w=m[x],_=Math.max(l,u);w||(m[x]=w=s("div",{className:e},{position:"absolute",zIndex:1e3,padding:_+"px"},m.container),d=s("div",{className:"highcharts-menu"},null,w),c(d,p({MozBoxShadow:"3px 3px 10px #888",WebkitBoxShadow:"3px 3px 10px #888",boxShadow:"3px 3px 10px #888"},v.menuStyle)),g=function(){c(w,{display:"none"}),h&&h.setState(0),m.openMenu=!1},m.exportEvents.push(r(w,"mouseleave",function(){w.hideTimer=setTimeout(g,500)}),r(w,"mouseenter",function(){clearTimeout(w.hideTimer)}),r(n,"mouseup",function(t){m.pointer.inClass(t.target,e)||g()})),f(i,function(e){var n;("string"===typeof e&&(e=m.options.exporting.menuItemDefinitions[e]),t.isObject(e,!0))&&(e.separator?n=s("hr",null,null,d):((n=s("div",{className:"highcharts-menu-item",onclick:function(t){t&&t.stopPropagation(),g(),e.onclick&&e.onclick.apply(m,arguments)},innerHTML:e.text||m.options.lang[e.textKey]},null,d)).onmouseover=function(){c(this,v.menuItemHoverStyle)},n.onmouseout=function(){c(this,v.menuItemStyle)},c(n,p({cursor:"pointer"},v.menuItemStyle))),m.exportDivElements.push(n))}),m.exportDivElements.push(d,w),m.exportMenuWidth=w.offsetWidth,m.exportMenuHeight=w.offsetHeight),i={display:"block"},o+m.exportMenuWidth>y?i.right=y-o-l-_+"px":i.left=o-_+"px",a+u+m.exportMenuHeight>b&&"top"!==h.alignOptions.verticalAlign?i.bottom=b-a-_+"px":i.top=a+u-_+"px",c(w,i),m.openMenu=!0},addButton:function(t){var e,n,i=this,r=i.renderer,o=u(i.options.navigation.buttonOptions,t),a=o.onclick,s=o.menuItems,l=o.symbolSize||12;if(i.btnCount||(i.btnCount=0),i.exportDivElements||(i.exportDivElements=[],i.exportSVGElements=[]),!1!==o.enabled){var c,f=o.theme,d=(g=f.states)&&g.hover,g=g&&g.select;delete f.states,a?c=function(t){t.stopPropagation(),a.call(i,t)}:s&&(c=function(){i.contextMenu(n.menuClassName,s,n.translateX,n.translateY,n.width,n.height,n),n.setState(2)}),o.text&&o.symbol?f.paddingLeft=h(f.paddingLeft,25):o.text||p(f,{width:o.width,height:o.height,padding:0}),(n=r.button(o.text,0,0,c,f,d,g).addClass(t.className).attr({"stroke-linecap":"round",title:i.options.lang[o._titleKey],zIndex:3})).menuClassName=t.menuClassName||"highcharts-menu-"+i.btnCount++,o.symbol&&(e=r.symbol(o.symbol,o.symbolX-l/2,o.symbolY-l/2,l,l).addClass("highcharts-button-symbol").attr({zIndex:1}).add(n)).attr({stroke:o.symbolStroke,fill:o.symbolFill,"stroke-width":o.symbolStrokeWidth||1}),n.add().align(p(o,{width:n.width,x:h(o.x,i.buttonOffset)}),!0,"spacingBox"),i.buttonOffset+=(n.width+o.buttonSpacing)*("right"===o.align?-1:1),i.exportSVGElements.push(n,e)}},destroyExport:function(t){var e=t?t.target:this;t=e.exportSVGElements;var n,i=e.exportDivElements,r=e.exportEvents;t&&(f(t,function(t,i){t&&(t.onclick=t.ontouchstart=null,n="cache-"+t.menuClassName,e[n]&&delete e[n],e.exportSVGElements[i]=t.destroy())}),t.length=0),i&&(f(i,function(t,n){clearTimeout(t.hideTimer),o(t,"mouseleave"),e.exportDivElements[n]=t.onmouseout=t.onmouseover=t.ontouchstart=t.onclick=null,l(t)}),i.length=0),r&&(f(r,function(t){t()}),r.length=0)}}),y.menu=function(t,e,n,i){return["M",t,e+2.5,"L",t+n,e+2.5,"M",t,e+i/2+.5,"L",t+n,e+i/2+.5,"M",t,e+i-1.5,"L",t+n,e+i-1.5]},i.prototype.renderExporting=function(){var t=this,e=t.options.exporting,n=e.buttons,i=t.isDirtyExporting||!t.exportSVGElements;t.buttonOffset=0,t.isDirtyExporting&&t.destroyExport(),i&&!1!==e.enabled&&(t.exportEvents=[],d(n,function(e){t.addButton(e)}),t.isDirtyExporting=!1),r(t,"destroy",t.destroyExport)},i.prototype.callbacks.push(function(t){t.renderExporting(),r(t,"redraw",t.renderExporting),f(["exporting","navigation"],function(e){t[e]={update:function(n,i){t.isDirtyExporting=!0,u(!0,t.options[e],n),h(i,!0)&&t.redraw()}}})})}(t)},"object"===typeof t&&t.exports?t.exports=n:n(Highcharts)},function(t,e){var n;n=function(t){"use strict";var e=t.each,n=t.pick,i=t.seriesTypes,r=void 0!==document.createElement("a").download;function o(e,n,i,o,a){var s,l,c,u=((e.options.exporting||{}).csv||{}).url||"http://www.highcharts.com/studies/csv-export/download.php";c=e.options.exporting.filename?e.options.exporting.filename:e.title?e.title.textStr.replace(/ /g,"-").toLowerCase():"chart",window.Blob&&window.navigator.msSaveOrOpenBlob?(l=new Blob([o]),window.navigator.msSaveOrOpenBlob(l,c+"."+i)):r?((s=document.createElement("a")).href=n,s.target="_blank",s.download=c+"."+i,e.container.append(s),s.click(),s.remove()):t.post(u,{data:o,type:a,extension:i})}t.setOptions({lang:{downloadCSV:"Download CSV",downloadXLS:"Download XLS",viewData:"View data table"}}),t.Chart.prototype.getDataRows=function(){var i,r,o,a,s,l,c,u=(this.options.exporting||{}).csv||{},h=this.xAxis,f={},d=[],p=[],g=u.dateFormat||"%Y-%m-%d %H:%M:%S",m=u.columnHeaderFormatter||function(e,n,i){return e instanceof t.Axis?e.options.title&&e.options.title.text||(e.isDatetimeAxis?"DateTime":"Category"):e?e.name+(i>1?" ("+n+")":""):"Category"},v=[];for(a in o=0,e(this.series,function(i){var r,a=i.options.keys||i.pointArrayMap||["y"],s=a.length,l=i.requireSorting,c={},u=t.inArray(i.xAxis,h);if(e(a,function(t){c[t]=i[t+"Axis"]&&i[t+"Axis"].categories||[]}),!1!==i.options.includeInCSVExport&&!1!==i.visible){for(t.find(v,function(t){return t[0]===u})||v.push([u,o]),r=0;r",o=0;o'+r+""):n+="<"+a+">"+(void 0===r?"":r)+"";n+="",i||(n+="")}),n+=""},t.Chart.prototype.downloadCSV=function(){var t=this.getCSV(!0);o(this,"data:text/csv,\ufeff"+encodeURIComponent(t),"csv",t,"text/csv")},t.Chart.prototype.downloadXLS=function(){var t,e='\x3c!--[if gte mso 9]>Ark1td{border:none;font-family: Calibri, sans-serif;} .number{mso-number-format:"0.00";}'+this.getTable(!0)+"";o(this,"data:application/vnd.ms-excel;base64,"+(t=e,window.btoa(unescape(encodeURIComponent(t)))),"xls",e,"application/vnd.ms-excel")},t.Chart.prototype.viewData=function(){this.dataTableDiv||(this.dataTableDiv=document.createElement("div"),this.dataTableDiv.className="highcharts-data-table",this.renderTo.parentNode.insertBefore(this.dataTableDiv,this.renderTo.nextSibling)),this.dataTableDiv.innerHTML=this.getTable()},t.getOptions().exporting&&t.getOptions().exporting.buttons.contextButton.menuItems.push({textKey:"downloadCSV",onclick:function(){this.downloadCSV()}},{textKey:"downloadXLS",onclick:function(){this.downloadXLS()}},{textKey:"viewData",onclick:function(){this.viewData()}}),i.map&&(i.map.prototype.exportKey="name"),i.mapbubble&&(i.mapbubble.prototype.exportKey="name")},"object"===typeof t&&t.exports?t.exports=n:n(Highcharts)},function(t,e,n){"use strict";e.b=function(t,e,n){return'\n \n \n \n \n \n \n
\n
\n \u25cf '+(n?"":t.series.name)+'\n
\n
'+e+"
"},e.a=function(t,e){return''+Object(i.c)(t,Object(i.d)(e))+""};var i=n(88)},function(t,e,n){var i;i=function(){"use strict";var t=function(t){return function(t){return!!t&&"object"===typeof t}(t)&&!function(t){var n=Object.prototype.toString.call(t);return"[object RegExp]"===n||"[object Date]"===n||function(t){return t.$$typeof===e}(t)}(t)};var e="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(t,e){return!1!==e.clone&&e.isMergeableObject(t)?r((n=t,Array.isArray(n)?[]:{}),t,e):t;var n}function i(t,e,i){return t.concat(e).map(function(t){return n(t,i)})}function r(e,o,a){(a=a||{}).arrayMerge=a.arrayMerge||i,a.isMergeableObject=a.isMergeableObject||t;var s=Array.isArray(o);return s===Array.isArray(e)?s?a.arrayMerge(e,o,a):function(t,e,i){var o={};return i.isMergeableObject(t)&&Object.keys(t).forEach(function(e){o[e]=n(t[e],i)}),Object.keys(e).forEach(function(a){i.isMergeableObject(e[a])&&t[a]?o[a]=r(t[a],e[a],i):o[a]=n(e[a],i)}),o}(e,o,a):n(o,a)}return r.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,n){return r(t,n,e)},{})},r},t.exports=i()},function(t,e,n){"use strict";var i,r=n(0),o=(n.n(r),n(85)),a=n(1005),s=n(1008),l=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l(e,t),e.prototype.render=function(){return 0===this.props.series.length?null:r.createElement("div",{className:"row graphic-complements"},r.createElement(s.a,{url:this.props.url,series:this.props.series}),r.createElement(a.a,{className:"col-sm-2",onChangeOption:this.props.handleChangeAggregation,selected:this.selectedAggregation(),availableOptions:this.aggregationOptions(),label:"Agregaci\xf3n"}),r.createElement(a.a,{className:"col-sm-2",onChangeOption:this.props.handleChangeUnits,selected:this.selectedUnit(),availableOptions:this.unitOptions(),label:"Unidades"}),r.createElement(a.a,{className:"col-sm-2",onChangeOption:this.props.handleChangeFrequency,selected:this.frequency(),availableOptions:this.frequencyOptions(),label:"Frecuencia"}))},e.prototype.frequency=function(){var t=this.frequencyOptions().filter(function(t){return t.available}),e=99;return this.props.series.forEach(function(n){var i=t.findIndex(function(t){return t.available&&t.value===(n.frequency||"year")});e=Math.min(e,i),e=Math.max(0,e)}),t[e].value},e.prototype.selectedUnit=function(){return this.props.series[0].representationMode},e.prototype.selectedAggregation=function(){return this.props.series[0].collapseAggregation},e.prototype.unitOptions=function(){return[{value:"value",title:"Unidades originales",available:!0},{value:"change",title:"Variaci\xf3n",available:!0},{value:"change_a_year_ago",title:"Variaci\xf3n interanual",available:!0},{value:"percent_change",title:"Variaci\xf3n porcentual",available:!0},{value:"percent_change_a_year_ago",title:"Variaci\xf3n porcentual interanual",available:!0}]},e.prototype.aggregationOptions=function(){return[{value:"avg",title:"Promedio",available:!0},{value:"sum",title:"Suma",available:!0},{value:"min",title:"M\xednimo",available:!0},{value:"max",title:"M\xe1ximo",available:!0},{value:"end_of_period",title:"\xdaltimo valor del per\xedodo",available:!0}]},e.prototype.frequencyOptions=function(){var t=this.appropiatedFrequency(),e=[{value:"year",title:"Anual",available:!1},{value:"semester",title:"Semestral",available:!1},{value:"quarter",title:"Trimestral",available:!1},{value:"month",title:"Mensual",available:!1},{value:"day",title:"Diaria",available:!1}],n=e.findIndex(function(e){return e.title===t});return e.forEach(function(t){t.available=e.indexOf(t)<=n}),e},e.prototype.appropiatedFrequency=function(){var t=this.props.series[0].accrualPeriodicity;return this.props.series.forEach(function(e){Object(o.c)(e.accrualPeriodicity,t)&&(t=e.accrualPeriodicity)}),t},e}(r.Component);e.a=c},function(t,e,n){"use strict";var i,r=n(0),o=(n.n(r),n(1006)),a=this&&this.__extends||(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),s=function(t){function e(e){var n=t.call(this,e)||this;return n.handleChangeOption=n.handleChangeOption.bind(n),n}return a(e,t),e.prototype.handleChangeOption=function(t){this.props.onChangeOption(t.target.value)},e.prototype.render=function(){return r.createElement(o.a,{labelText:this.props.label,className:this.props.className},r.createElement("select",{name:"frequencyList",className:"form-control",onChange:this.handleChangeOption,value:this.props.selected},this.props.availableOptions.map(function(t){return r.createElement("option",{key:t.value,value:t.value,disabled:!t.available},t.title)})))},e}(r.Component);e.a=s},function(t,e,n){"use strict";var i=n(0),r=(n.n(i),n(1007)),o=this&&this.__assign||Object.assign||function(t){for(var e,n=1,i=arguments.length;n<\/script>\n\n
\n