text: /*! For license information please see 2.05526c47.chunk.js.LICENSE.txt */
  (this.webpackJsonpmpui=this.webpackJsonpmpui||[]).push([[2],[function(e,t,n){"use strict";(function(e){n.d(t,"e",(function(){return r})),n.d(t,"p",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return u})),n.d(t,"o",(function(){return s})),n.d(t,"q",(function(){return l})),n.d(t,"t",(function(){return c})),n.d(t,"i",(function(){return f})),n.d(t,"r",(function(){return d})),n.d(t,"s",(function(){return h})),n.d(t,"k",(function(){return p})),n.d(t,"m",(function(){return v})),n.d(t,"j",(function(){return y})),n.d(t,"l",(function(){return m})),n.d(t,"g",(function(){return g})),n.d(t,"f",(function(){return b})),n.d(t,"h",(function(){return _})),n.d(t,"n",(function(){return w})),n.d(t,"b",(function(){return k}));var r="1.12.1",i="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||Function("return this")()||{},a=Array.prototype,o=Object.prototype,u="undefined"!==typeof Symbol?Symbol.prototype:null,s=a.push,l=a.slice,c=o.toString,f=o.hasOwnProperty,d="undefined"!==typeof ArrayBuffer,h="undefined"!==typeof DataView,p=Array.isArray,v=Object.keys,y=Object.create,m=d&&ArrayBuffer.isView,g=isNaN,b=isFinite,_=!{toString:null}.propertyIsEnumerable("toString"),w=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=Math.pow(2,53)-1}).call(this,n(139))},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return xn})),n.d(t,"VERSION",(function(){return i.e})),n.d(t,"restArguments",(function(){return a})),n.d(t,"isObject",(function(){return o})),n.d(t,"isNull",(function(){return u})),n.d(t,"isUndefined",(function(){return s})),n.d(t,"isBoolean",(function(){return l})),n.d(t,"isElement",(function(){return c})),n.d(t,"isString",(function(){return d})),n.d(t,"isNumber",(function(){return h})),n.d(t,"isDate",(function(){return p})),n.d(t,"isRegExp",(function(){return v})),n.d(t,"isError",(function(){return y})),n.d(t,"isSymbol",(function(){return m})),n.d(t,"isArrayBuffer",(function(){return g})),n.d(t,"isDataView",(function(){return M})),n.d(t,"isArray",(function(){return E})),n.d(t,"isFunction",(function(){return w})),n.d(t,"isArguments",(function(){return P})),n.d(t,"isFinite",(function(){return D})),n.d(t,"isNaN",(function(){return j})),n.d(t,"isTypedArray",(function(){return U})),n.d(t,"isEmpty",(function(){return H})),n.d(t,"isMatch",(function(){return W})),n.d(t,"isEqual",(function(){return K})),n.d(t,"isMap",(function(){return ae})),n.d(t,"isWeakMap",(function(){return oe})),n.d(t,"isSet",(function(){return ue})),n.d(t,"isWeakSet",(function(){return se})),n.d(t,"keys",(function(){return B})),n.d(t,"allKeys",(function(){return X})),n.d(t,"values",(function(){return le})),n.d(t,"pairs",(function(){return ce})),n.d(t,"invert",(function(){return fe})),n.d(t,"functions",(function(){return de})),n.d(t,"methods",(function(){return de})),n.d(t,"extend",(function(){return pe})),n.d(t,"extendOwn",(function(){return ve})),n.d(t,"assign",(function(){return ve})),n.d(t,"defaults",(function(){return ye})),n.d(t,"create",(function(){return ge})),n.d(t,"clone",(function(){return be})),n.d(t,"tap",(function(){return _e})),n.d(t,"get",(function(){return xe})),n.d(t,"has",(function(){return Oe})),n.d(t,"mapObject",(function(){return Ne})),n.d(t,"identity",(function(){return Me})),n.d(t,"constant",(function(){return N})),n.d(t,"noop",(function(){return Ae})),n.d(t,"toPath",(function(){return we})),n.d(t,"property",(function(){return Te})),n.d(t,"propertyOf",(function(){return ze})),n.d(t,"matcher",(function(){return Ee})),n.d(t,"matches",(function(){return Ee})),n.d(t,"times",(function(){return Re})),n.d(t,"random",(function(){return Ie})),n.d(t,"now",(function(){return Le})),n.d(t,"escape",(function(){return Ye})),n.d(t,"unescape",(function(){return Be})),n.d(t,"templateSettings",(function(){return He})),n.d(t,"template",(function(){return $e})),n.d(t,"result",(function(){return Ke})),n.d(t,"uniqueId",(function(){return Je})),n.d(t,"chain",(function(){return Qe})),n.d(t,"iteratee",(function(){return De})),n.d(t,"partial",(function(){return nt})),n.d(t,"bind",(function(){return rt})),n.d(t,"bindAll",(function(){return ot})),n.d(t,"memoize",(function(){return ut})),n.d(t,"delay",(function(){return st})),n.d(t,"defer",(function(){return lt})),n.d(t,"throttle",(function(){return ct})),n.d(t,"debounce",(function(){return ft})),n.d(t,"wrap",(function(){return dt})),n.d(t,"negate",(function(){return ht})),n.d(t,"compose",(function(){return pt})),n.d(t,"after",(function(){return vt})),n.d(t,"before",(function(){return yt})),n.d(t,"once",(function(){return mt})),n.d(t,"findKey",(function(){return gt})),n.d(t,"findIndex",(function(){return _t})),n.d(t,"findLastIndex",(function(){return wt})),n.d(t,"sortedIndex",(function(){return kt})),n.d(t,"indexOf",(function(){return xt})),n.d(t,"lastIndexOf",(function(){return Ot})),n.d(t,"find",(function(){return Mt})),n.d(t,"detect",(function(){return Mt})),n.d(t,"findWhere",(function(){return Et})),n.d(t,"each",(function(){return Tt})),n.d(t,"forEach",(function(){return Tt})),n.d(t,"map",(function(){return Ct})),n.d(t,"collect",(function(){return Ct})),n.d(t,"reduce",(function(){return Dt})),n.d(t,"foldl",(function(){return Dt})),n.d(t,"inject",(function(){return Dt})),n.d(t,"reduceRight",(function(){return jt})),n.d(t,"foldr",(function(){return jt})),n.d(t,"filter",(function(){return Nt})),n.d(t,"select",(function(){return Nt})),n.d(t,"reject",(function(){return At})),n.d(t,"every",(function(){return zt})),n.d(t,"all",(function(){return zt})),n.d(t,"some",(function(){return Rt})),n.d(t,"any",(function(){return Rt})),n.d(t,"contains",(function(){return It})),n.d(t,"includes",(function(){return It})),n.d(t,"include",(function(){return It})),n.d(t,"invoke",(function(){return Lt})),n.d(t,"pluck",(function(){return Ut})),n.d(t,"where",(function(){return Ft})),n.d(t,"max",(function(){return Yt})),n.d(t,"min",(function(){return Bt})),n.d(t,"shuffle",(function(){return Wt})),n.d(t,"sample",(function(){return Ht})),n.d(t,"sortBy",(function(){return qt})),n.d(t,"groupBy",(function(){return Zt})),n.d(t,"indexBy",(function(){return Gt})),n.d(t,"countBy",(function(){return $t})),n.d(t,"partition",(function(){return Kt})),n.d(t,"toArray",(function(){return Jt})),n.d(t,"size",(function(){return Qt})),n.d(t,"pick",(function(){return tn})),n.d(t,"omit",(function(){return nn})),n.d(t,"first",(function(){return an})),n.d(t,"head",(function(){return an})),n.d(t,"take",(function(){return an})),n.d(t,"initial",(function(){return rn})),n.d(t,"last",(function(){return un})),n.d(t,"rest",(function(){return on})),n.d(t,"tail",(function(){return on})),n.d(t,"drop",(function(){return on})),n.d(t,"compact",(function(){return sn})),n.d(t,"flatten",(function(){return ln})),n.d(t,"without",(function(){return fn})),n.d(t,"uniq",(function(){return dn})),n.d(t,"unique",(function(){return dn})),n.d(t,"union",(function(){return hn})),n.d(t,"intersection",(function(){return pn})),n.d(t,"difference",(function(){return cn})),n.d(t,"unzip",(function(){return vn})),n.d(t,"transpose",(function(){return vn})),n.d(t,"zip",(function(){return yn})),n.d(t,"object",(function(){return mn})),n.d(t,"range",(function(){return gn})),n.d(t,"chunk",(function(){return bn})),n.d(t,"mixin",(function(){return wn}));var r={};n.r(r),n.d(r,"VERSION",(function(){return i.e})),n.d(r,"restArguments",(function(){return a})),n.d(r,"isObject",(function(){return o})),n.d(r,"isNull",(function(){return u})),n.d(r,"isUndefined",(function(){return s})),n.d(r,"isBoolean",(function(){return l})),n.d(r,"isElement",(function(){return c})),n.d(r,"isString",(function(){return d})),n.d(r,"isNumber",(function(){return h})),n.d(r,"isDate",(function(){return p})),n.d(r,"isRegExp",(function(){return v})),n.d(r,"isError",(function(){return y})),n.d(r,"isSymbol",(function(){return m})),n.d(r,"isArrayBuffer",(function(){return g})),n.d(r,"isDataView",(function(){return M})),n.d(r,"isArray",(function(){return E})),n.d(r,"isFunction",(function(){return w})),n.d(r,"isArguments",(function(){return P})),n.d(r,"isFinite",(function(){return D})),n.d(r,"isNaN",(function(){return j})),n.d(r,"isTypedArray",(function(){return U})),n.d(r,"isEmpty",(function(){return H})),n.d(r,"isMatch",(function(){return W})),n.d(r,"isEqual",(function(){return K})),n.d(r,"isMap",(function(){return ae})),n.d(r,"isWeakMap",(function(){return oe})),n.d(r,"isSet",(function(){return ue})),n.d(r,"isWeakSet",(function(){return se})),n.d(r,"keys",(function(){return B})),n.d(r,"allKeys",(function(){return X})),n.d(r,"values",(function(){return le})),n.d(r,"pairs",(function(){return ce})),n.d(r,"invert",(function(){return fe})),n.d(r,"functions",(function(){return de})),n.d(r,"methods",(function(){return de})),n.d(r,"extend",(function(){return pe})),n.d(r,"extendOwn",(function(){return ve})),n.d(r,"assign",(function(){return ve})),n.d(r,"defaults",(function(){return ye})),n.d(r,"create",(function(){return ge})),n.d(r,"clone",(function(){return be})),n.d(r,"tap",(function(){return _e})),n.d(r,"get",(function(){return xe})),n.d(r,"has",(function(){return Oe})),n.d(r,"mapObject",(function(){return Ne})),n.d(r,"identity",(function(){return Me})),n.d(r,"constant",(function(){return N})),n.d(r,"noop",(function(){return Ae})),n.d(r,"toPath",(function(){return we})),n.d(r,"property",(function(){return Te})),n.d(r,"propertyOf",(function(){return ze})),n.d(r,"matcher",(function(){return Ee})),n.d(r,"matches",(function(){return Ee})),n.d(r,"times",(function(){return Re})),n.d(r,"random",(function(){return Ie})),n.d(r,"now",(function(){return Le})),n.d(r,"escape",(function(){return Ye})),n.d(r,"unescape",(function(){return Be})),n.d(r,"templateSettings",(function(){return He})),n.d(r,"template",(function(){return $e})),n.d(r,"result",(function(){return Ke})),n.d(r,"uniqueId",(function(){return Je})),n.d(r,"chain",(function(){return Qe})),n.d(r,"iteratee",(function(){return De})),n.d(r,"partial",(function(){return nt})),n.d(r,"bind",(function(){return rt})),n.d(r,"bindAll",(function(){return ot})),n.d(r,"memoize",(function(){return ut})),n.d(r,"delay",(function(){return st})),n.d(r,"defer",(function(){return lt})),n.d(r,"throttle",(function(){return ct})),n.d(r,"debounce",(function(){return ft})),n.d(r,"wrap",(function(){return dt})),n.d(r,"negate",(function(){return ht})),n.d(r,"compose",(function(){return pt})),n.d(r,"after",(function(){return vt})),n.d(r,"before",(function(){return yt})),n.d(r,"once",(function(){return mt})),n.d(r,"findKey",(function(){return gt})),n.d(r,"findIndex",(function(){return _t})),n.d(r,"findLastIndex",(function(){return wt})),n.d(r,"sortedIndex",(function(){return kt})),n.d(r,"indexOf",(function(){return xt})),n.d(r,"lastIndexOf",(function(){return Ot})),n.d(r,"find",(function(){return Mt})),n.d(r,"detect",(function(){return Mt})),n.d(r,"findWhere",(function(){return Et})),n.d(r,"each",(function(){return Tt})),n.d(r,"forEach",(function(){return Tt})),n.d(r,"map",(function(){return Ct})),n.d(r,"collect",(function(){return Ct})),n.d(r,"reduce",(function(){return Dt})),n.d(r,"foldl",(function(){return Dt})),n.d(r,"inject",(function(){return Dt})),n.d(r,"reduceRight",(function(){return jt})),n.d(r,"foldr",(function(){return jt})),n.d(r,"filter",(function(){return Nt})),n.d(r,"select",(function(){return Nt})),n.d(r,"reject",(function(){return At})),n.d(r,"every",(function(){return zt})),n.d(r,"all",(function(){return zt})),n.d(r,"some",(function(){return Rt})),n.d(r,"any",(function(){return Rt})),n.d(r,"contains",(function(){return It})),n.d(r,"includes",(function(){return It})),n.d(r,"include",(function(){return It})),n.d(r,"invoke",(function(){return Lt})),n.d(r,"pluck",(function(){return Ut})),n.d(r,"where",(function(){return Ft})),n.d(r,"max",(function(){return Yt})),n.d(r,"min",(function(){return Bt})),n.d(r,"shuffle",(function(){return Wt})),n.d(r,"sample",(function(){return Ht})),n.d(r,"sortBy",(function(){return qt})),n.d(r,"groupBy",(function(){return Zt})),n.d(r,"indexBy",(function(){return Gt})),n.d(r,"countBy",(function(){return $t})),n.d(r,"partition",(function(){return Kt})),n.d(r,"toArray",(function(){return Jt})),n.d(r,"size",(function(){return Qt})),n.d(r,"pick",(function(){return tn})),n.d(r,"omit",(function(){return nn})),n.d(r,"first",(function(){return an})),n.d(r,"head",(function(){return an})),n.d(r,"take",(function(){return an})),n.d(r,"initial",(function(){return rn})),n.d(r,"last",(function(){return un})),n.d(r,"rest",(function(){return on})),n.d(r,"tail",(function(){return on})),n.d(r,"drop",(function(){return on})),n.d(r,"compact",(function(){return sn})),n.d(r,"flatten",(function(){return ln})),n.d(r,"without",(function(){return fn})),n.d(r,"uniq",(function(){return dn})),n.d(r,"unique",(function(){return dn})),n.d(r,"union",(function(){return hn})),n.d(r,"intersection",(function(){return pn})),n.d(r,"difference",(function(){return cn})),n.d(r,"unzip",(function(){return vn})),n.d(r,"transpose",(function(){return vn})),n.d(r,"zip",(function(){return yn})),n.d(r,"object",(function(){return mn})),n.d(r,"range",(function(){return gn})),n.d(r,"chunk",(function(){return bn})),n.d(r,"mixin",(function(){return wn})),n.d(r,"default",(function(){return kn}));var i=n(0);function a(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),i=0;i<n;i++)r[i]=arguments[i+t];switch(t){case 0:return e.call(this,r);case 1:return e.call(this,arguments[0],r);case 2:return e.call(this,arguments[0],arguments[1],r)}var a=Array(t+1);for(i=0;i<t;i++)a[i]=arguments[i];return a[t]=r,e.apply(this,a)}}function o(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function u(e){return null===e}function s(e){return void 0===e}function l(e){return!0===e||!1===e||"[object Boolean]"===i.t.call(e)}function c(e){return!(!e||1!==e.nodeType)}function f(e){var t="[object "+e+"]";return function(e){return i.t.call(e)===t}}var d=f("String"),h=f("Number"),p=f("Date"),v=f("RegExp"),y=f("Error"),m=f("Symbol"),g=f("ArrayBuffer"),b=f("Function"),_=i.p.document&&i.p.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof _&&(b=function(e){return"function"==typeof e||!1});var w=b,k=f("Object"),S=i.s&&k(new DataView(new ArrayBuffer(8))),x="undefined"!==typeof Map&&k(new Map),O=f("DataView");var M=S?function(e){return null!=e&&w(e.getInt8)&&g(e.buffer)}:O,E=i.k||f("Array");function T(e,t){return null!=e&&i.i.call(e,t)}var C=f("Arguments");!function(){C(arguments)||(C=function(e){return T(e,"callee")})}();var P=C;function D(e){return!m(e)&&Object(i.f)(e)&&!isNaN(parseFloat(e))}function j(e){return h(e)&&Object(i.g)(e)}function N(e){return function(){return e}}function A(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=i.b}}function z(e){return function(t){return null==t?void 0:t[e]}}var R=z("byteLength"),I=A(R),L=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var U=i.r?function(e){return i.l?Object(i.l)(e)&&!M(e):I(e)&&L.test(i.t.call(e))}:N(!1),F=z("length");function Y(e,t){t=function(e){for(var t={},n=e.length,r=0;r<n;++r)t[e[r]]=!0;return{contains:function(e){return t[e]},push:function(n){return t[n]=!0,e.push(n)}}}(t);var n=i.n.length,r=e.constructor,a=w(r)&&r.prototype||i.c,o="constructor";for(T(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=i.n[n])in e&&e[o]!==a[o]&&!t.contains(o)&&t.push(o)}function B(e){if(!o(e))return[];if(i.m)return Object(i.m)(e);var t=[];for(var n in e)T(e,n)&&t.push(n);return i.h&&Y(e,t),t}function H(e){if(null==e)return!0;var t=F(e);return"number"==typeof t&&(E(e)||d(e)||P(e))?0===t:0===F(B(e))}function W(e,t){var n=B(t),r=n.length;if(null==e)return!r;for(var i=Object(e),a=0;a<r;a++){var o=n[a];if(t[o]!==i[o]||!(o in i))return!1}return!0}function q(e){return e instanceof q?e:this instanceof q?void(this._wrapped=e):new q(e)}function V(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,R(e))}q.VERSION=i.e,q.prototype.value=function(){return this._wrapped},q.prototype.valueOf=q.prototype.toJSON=q.prototype.value,q.prototype.toString=function(){return String(this._wrapped)};var Z="[object DataView]";function G(e,t,n,r){if(e===t)return 0!==e||1/e===1/t;if(null==e||null==t)return!1;if(e!==e)return t!==t;var i=typeof e;return("function"===i||"object"===i||"object"==typeof t)&&$(e,t,n,r)}function $(e,t,n,r){e instanceof q&&(e=e._wrapped),t instanceof q&&(t=t._wrapped);var a=i.t.call(e);if(a!==i.t.call(t))return!1;if(S&&"[object Object]"==a&&M(e)){if(!M(t))return!1;a=Z}switch(a){case"[object RegExp]":case"[object String]":return""+e===""+t;case"[object Number]":return+e!==+e?+t!==+t:0===+e?1/+e===1/t:+e===+t;case"[object Date]":case"[object Boolean]":return+e===+t;case"[object Symbol]":return i.d.valueOf.call(e)===i.d.valueOf.call(t);case"[object ArrayBuffer]":case Z:return $(V(e),V(t),n,r)}var o="[object Array]"===a;if(!o&&U(e)){if(R(e)!==R(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;o=!0}if(!o){if("object"!=typeof e||"object"!=typeof t)return!1;var u=e.constructor,s=t.constructor;if(u!==s&&!(w(u)&&u instanceof u&&w(s)&&s instanceof s)&&"constructor"in e&&"constructor"in t)return!1}r=r||[];for(var l=(n=n||[]).length;l--;)if(n[l]===e)return r[l]===t;if(n.push(e),r.push(t),o){if((l=e.length)!==t.length)return!1;for(;l--;)if(!G(e[l],t[l],n,r))return!1}else{var c,f=B(e);if(l=f.length,B(t).length!==l)return!1;for(;l--;)if(!T(t,c=f[l])||!G(e[c],t[c],n,r))return!1}return n.pop(),r.pop(),!0}function K(e,t){return G(e,t)}function X(e){if(!o(e))return[];var t=[];for(var n in e)t.push(n);return i.h&&Y(e,t),t}function J(e){var t=F(e);return function(n){if(null==n)return!1;var r=X(n);if(F(r))return!1;for(var i=0;i<t;i++)if(!w(n[e[i]]))return!1;return e!==re||!w(n[Q])}}var Q="forEach",ee=["clear","delete"],te=["get","has","set"],ne=ee.concat(Q,te),re=ee.concat(te),ie=["add"].concat(ee,Q,"has"),ae=x?J(ne):f("Map"),oe=x?J(re):f("WeakMap"),ue=x?J(ie):f("Set"),se=f("WeakSet");function le(e){for(var t=B(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=e[t[i]];return r}function ce(e){for(var t=B(e),n=t.length,r=Array(n),i=0;i<n;i++)r[i]=[t[i],e[t[i]]];return r}function fe(e){for(var t={},n=B(e),r=0,i=n.length;r<i;r++)t[e[n[r]]]=n[r];return t}function de(e){var t=[];for(var n in e)w(e[n])&&t.push(n);return t.sort()}function he(e,t){return function(n){var r=arguments.length;if(t&&(n=Object(n)),r<2||null==n)return n;for(var i=1;i<r;i++)for(var a=arguments[i],o=e(a),u=o.length,s=0;s<u;s++){var l=o[s];t&&void 0!==n[l]||(n[l]=a[l])}return n}}var pe=he(X),ve=he(B),ye=he(X,!0);function me(e){if(!o(e))return{};if(i.j)return Object(i.j)(e);var t=function(){};t.prototype=e;var n=new t;return t.prototype=null,n}function ge(e,t){var n=me(e);return t&&ve(n,t),n}function be(e){return o(e)?E(e)?e.slice():pe({},e):e}function _e(e,t){return t(e),e}function we(e){return E(e)?e:[e]}function ke(e){return q.toPath(e)}function Se(e,t){for(var n=t.length,r=0;r<n;r++){if(null==e)return;e=e[t[r]]}return n?e:void 0}function xe(e,t,n){var r=Se(e,ke(t));return s(r)?n:r}function Oe(e,t){for(var n=(t=ke(t)).length,r=0;r<n;r++){var i=t[r];if(!T(e,i))return!1;e=e[i]}return!!n}function Me(e){return e}function Ee(e){return e=ve({},e),function(t){return W(t,e)}}function Te(e){return e=ke(e),function(t){return Se(t,e)}}function Ce(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,a){return e.call(t,n,r,i,a)}}return function(){return e.apply(t,arguments)}}function Pe(e,t,n){return null==e?Me:w(e)?Ce(e,t,n):o(e)&&!E(e)?Ee(e):Te(e)}function De(e,t){return Pe(e,t,1/0)}function je(e,t,n){return q.iteratee!==De?q.iteratee(e,t):Pe(e,t,n)}function Ne(e,t,n){t=je(t,n);for(var r=B(e),i=r.length,a={},o=0;o<i;o++){var u=r[o];a[u]=t(e[u],u,e)}return a}function Ae(){}function ze(e){return null==e?Ae:function(t){return xe(e,t)}}function Re(e,t,n){var r=Array(Math.max(0,e));t=Ce(t,n,1);for(var i=0;i<e;i++)r[i]=t(i);return r}function Ie(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}q.toPath=we,q.iteratee=De;var Le=Date.now||function(){return(new Date).getTime()};function Ue(e){var t=function(t){return e[t]},n="(?:"+B(e).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(i,t):e}}var Fe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},Ye=Ue(Fe),Be=Ue(fe(Fe)),He=q.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},We=/(.)^/,qe={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ve=/\\|'|\r|\n|\u2028|\u2029/g;function Ze(e){return"\\"+qe[e]}var Ge=/^\s*(\w|\$)+\s*$/;function $e(e,t,n){!t&&n&&(t=n),t=ye({},t,q.templateSettings);var r=RegExp([(t.escape||We).source,(t.interpolate||We).source,(t.evaluate||We).source].join("|")+"|$","g"),i=0,a="__p+='";e.replace(r,(function(t,n,r,o,u){return a+=e.slice(i,u).replace(Ve,Ze),i=u+t.length,n?a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?a+="'+\n((__t=("+r+"))==null?'':__t)+\n'":o&&(a+="';\n"+o+"\n__p+='"),t})),a+="';\n";var o,u=t.variable;if(u){if(!Ge.test(u))throw new Error(u)}else a="with(obj||{}){\n"+a+"}\n",u="obj";a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{o=new Function(u,"_",a)}catch(l){throw l.source=a,l}var s=function(e){return o.call(this,e,q)};return s.source="function("+u+"){\n"+a+"}",s}function Ke(e,t,n){var r=(t=ke(t)).length;if(!r)return w(n)?n.call(e):n;for(var i=0;i<r;i++){var a=null==e?void 0:e[t[i]];void 0===a&&(a=n,i=r),e=w(a)?a.call(e):a}return e}var Xe=0;function Je(e){var t=++Xe+"";return e?e+t:t}function Qe(e){var t=q(e);return t._chain=!0,t}function et(e,t,n,r,i){if(!(r instanceof t))return e.apply(n,i);var a=me(e.prototype),u=e.apply(a,i);return o(u)?u:a}var tt=a((function(e,t){var n=tt.placeholder;return function r(){for(var i=0,a=t.length,o=Array(a),u=0;u<a;u++)o[u]=t[u]===n?arguments[i++]:t[u];for(;i<arguments.length;)o.push(arguments[i++]);return et(e,r,this,this,o)}}));tt.placeholder=q;var nt=tt,rt=a((function(e,t,n){if(!w(e))throw new TypeError("Bind must be called on a function");var r=a((function(i){return et(e,r,t,this,n.concat(i))}));return r})),it=A(F);function at(e,t,n,r){if(r=r||[],t||0===t){if(t<=0)return r.concat(e)}else t=1/0;for(var i=r.length,a=0,o=F(e);a<o;a++){var u=e[a];if(it(u)&&(E(u)||P(u)))if(t>1)at(u,t-1,n,r),i=r.length;else for(var s=0,l=u.length;s<l;)r[i++]=u[s++];else n||(r[i++]=u)}return r}var ot=a((function(e,t){var n=(t=at(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var r=t[n];e[r]=rt(e[r],e)}return e}));function ut(e,t){var n=function n(r){var i=n.cache,a=""+(t?t.apply(this,arguments):r);return T(i,a)||(i[a]=e.apply(this,arguments)),i[a]};return n.cache={},n}var st=a((function(e,t,n){return setTimeout((function(){return e.apply(null,n)}),t)})),lt=nt(st,q,1);function ct(e,t,n){var r,i,a,o,u=0;n||(n={});var s=function(){u=!1===n.leading?0:Le(),r=null,o=e.apply(i,a),r||(i=a=null)},l=function(){var l=Le();u||!1!==n.leading||(u=l);var c=t-(l-u);return i=this,a=arguments,c<=0||c>t?(r&&(clearTimeout(r),r=null),u=l,o=e.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(s,c)),o};return l.cancel=function(){clearTimeout(r),u=0,r=i=a=null},l}function ft(e,t,n){var r,i,o,u,s,l=function a(){var l=Le()-i;t>l?r=setTimeout(a,t-l):(r=null,n||(u=e.apply(s,o)),r||(o=s=null))},c=a((function(a){return s=this,o=a,i=Le(),r||(r=setTimeout(l,t),n&&(u=e.apply(s,o))),u}));return c.cancel=function(){clearTimeout(r),r=o=s=null},c}function dt(e,t){return nt(t,e)}function ht(e){return function(){return!e.apply(this,arguments)}}function pt(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function vt(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function yt(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var mt=nt(yt,2);function gt(e,t,n){t=je(t,n);for(var r,i=B(e),a=0,o=i.length;a<o;a++)if(t(e[r=i[a]],r,e))return r}function bt(e){return function(t,n,r){n=je(n,r);for(var i=F(t),a=e>0?0:i-1;a>=0&&a<i;a+=e)if(n(t[a],a,t))return a;return-1}}var _t=bt(1),wt=bt(-1);function kt(e,t,n,r){for(var i=(n=je(n,r,1))(t),a=0,o=F(e);a<o;){var u=Math.floor((a+o)/2);n(e[u])<i?a=u+1:o=u}return a}function St(e,t,n){return function(r,a,o){var u=0,s=F(r);if("number"==typeof o)e>0?u=o>=0?o:Math.max(o+s,u):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return r[o=n(r,a)]===a?o:-1;if(a!==a)return(o=t(i.q.call(r,u,s),j))>=0?o+u:-1;for(o=e>0?u:s-1;o>=0&&o<s;o+=e)if(r[o]===a)return o;return-1}}var xt=St(1,_t,kt),Ot=St(-1,wt);function Mt(e,t,n){var r=(it(e)?_t:gt)(e,t,n);if(void 0!==r&&-1!==r)return e[r]}function Et(e,t){return Mt(e,Ee(t))}function Tt(e,t,n){var r,i;if(t=Ce(t,n),it(e))for(r=0,i=e.length;r<i;r++)t(e[r],r,e);else{var a=B(e);for(r=0,i=a.length;r<i;r++)t(e[a[r]],a[r],e)}return e}function Ct(e,t,n){t=je(t,n);for(var r=!it(e)&&B(e),i=(r||e).length,a=Array(i),o=0;o<i;o++){var u=r?r[o]:o;a[o]=t(e[u],u,e)}return a}function Pt(e){var t=function(t,n,r,i){var a=!it(t)&&B(t),o=(a||t).length,u=e>0?0:o-1;for(i||(r=t[a?a[u]:u],u+=e);u>=0&&u<o;u+=e){var s=a?a[u]:u;r=n(r,t[s],s,t)}return r};return function(e,n,r,i){var a=arguments.length>=3;return t(e,Ce(n,i,4),r,a)}}var Dt=Pt(1),jt=Pt(-1);function Nt(e,t,n){var r=[];return t=je(t,n),Tt(e,(function(e,n,i){t(e,n,i)&&r.push(e)})),r}function At(e,t,n){return Nt(e,ht(je(t)),n)}function zt(e,t,n){t=je(t,n);for(var r=!it(e)&&B(e),i=(r||e).length,a=0;a<i;a++){var o=r?r[a]:a;if(!t(e[o],o,e))return!1}return!0}function Rt(e,t,n){t=je(t,n);for(var r=!it(e)&&B(e),i=(r||e).length,a=0;a<i;a++){var o=r?r[a]:a;if(t(e[o],o,e))return!0}return!1}function It(e,t,n,r){return it(e)||(e=le(e)),("number"!=typeof n||r)&&(n=0),xt(e,t,n)>=0}var Lt=a((function(e,t,n){var r,i;return w(t)?i=t:(t=ke(t),r=t.slice(0,-1),t=t[t.length-1]),Ct(e,(function(e){var a=i;if(!a){if(r&&r.length&&(e=Se(e,r)),null==e)return;a=e[t]}return null==a?a:a.apply(e,n)}))}));function Ut(e,t){return Ct(e,Te(t))}function Ft(e,t){return Nt(e,Ee(t))}function Yt(e,t,n){var r,i,a=-1/0,o=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var u=0,s=(e=it(e)?e:le(e)).length;u<s;u++)null!=(r=e[u])&&r>a&&(a=r);else t=je(t,n),Tt(e,(function(e,n,r){((i=t(e,n,r))>o||i===-1/0&&a===-1/0)&&(a=e,o=i)}));return a}function Bt(e,t,n){var r,i,a=1/0,o=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var u=0,s=(e=it(e)?e:le(e)).length;u<s;u++)null!=(r=e[u])&&r<a&&(a=r);else t=je(t,n),Tt(e,(function(e,n,r){((i=t(e,n,r))<o||i===1/0&&a===1/0)&&(a=e,o=i)}));return a}function Ht(e,t,n){if(null==t||n)return it(e)||(e=le(e)),e[Ie(e.length-1)];var r=it(e)?be(e):le(e),i=F(r);t=Math.max(Math.min(t,i),0);for(var a=i-1,o=0;o<t;o++){var u=Ie(o,a),s=r[o];r[o]=r[u],r[u]=s}return r.slice(0,t)}function Wt(e){return Ht(e,1/0)}function qt(e,t,n){var r=0;return t=je(t,n),Ut(Ct(e,(function(e,n,i){return{value:e,index:r++,criteria:t(e,n,i)}})).sort((function(e,t){var n=e.criteria,r=t.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return e.index-t.index})),"value")}function Vt(e,t){return function(n,r,i){var a=t?[[],[]]:{};return r=je(r,i),Tt(n,(function(t,i){var o=r(t,i,n);e(a,t,o)})),a}}var Zt=Vt((function(e,t,n){T(e,n)?e[n].push(t):e[n]=[t]})),Gt=Vt((function(e,t,n){e[n]=t})),$t=Vt((function(e,t,n){T(e,n)?e[n]++:e[n]=1})),Kt=Vt((function(e,t,n){e[n?0:1].push(t)}),!0),Xt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function Jt(e){return e?E(e)?i.q.call(e):d(e)?e.match(Xt):it(e)?Ct(e,Me):le(e):[]}function Qt(e){return null==e?0:it(e)?e.length:B(e).length}function en(e,t,n){return t in n}var tn=a((function(e,t){var n={},r=t[0];if(null==e)return n;w(r)?(t.length>1&&(r=Ce(r,t[1])),t=X(e)):(r=en,t=at(t,!1,!1),e=Object(e));for(var i=0,a=t.length;i<a;i++){var o=t[i],u=e[o];r(u,o,e)&&(n[o]=u)}return n})),nn=a((function(e,t){var n,r=t[0];return w(r)?(r=ht(r),t.length>1&&(n=t[1])):(t=Ct(at(t,!1,!1),String),r=function(e,n){return!It(t,n)}),tn(e,r,n)}));function rn(e,t,n){return i.q.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function an(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:rn(e,e.length-t)}function on(e,t,n){return i.q.call(e,null==t||n?1:t)}function un(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:on(e,Math.max(0,e.length-t))}function sn(e){return Nt(e,Boolean)}function ln(e,t){return at(e,t,!1)}var cn=a((function(e,t){return t=at(t,!0,!0),Nt(e,(function(e){return!It(t,e)}))})),fn=a((function(e,t){return cn(e,t)}));function dn(e,t,n,r){l(t)||(r=n,n=t,t=!1),null!=n&&(n=je(n,r));for(var i=[],a=[],o=0,u=F(e);o<u;o++){var s=e[o],c=n?n(s,o,e):s;t&&!n?(o&&a===c||i.push(s),a=c):n?It(a,c)||(a.push(c),i.push(s)):It(i,s)||i.push(s)}return i}var hn=a((function(e){return dn(at(e,!0,!0))}));function pn(e){for(var t=[],n=arguments.length,r=0,i=F(e);r<i;r++){var a=e[r];if(!It(t,a)){var o;for(o=1;o<n&&It(arguments[o],a);o++);o===n&&t.push(a)}}return t}function vn(e){for(var t=e&&Yt(e,F).length||0,n=Array(t),r=0;r<t;r++)n[r]=Ut(e,r);return n}var yn=a(vn);function mn(e,t){for(var n={},r=0,i=F(e);r<i;r++)t?n[e[r]]=t[r]:n[e[r][0]]=e[r][1];return n}function gn(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var r=Math.max(Math.ceil((t-e)/n),0),i=Array(r),a=0;a<r;a++,e+=n)i[a]=e;return i}function bn(e,t){if(null==t||t<1)return[];for(var n=[],r=0,a=e.length;r<a;)n.push(i.q.call(e,r,r+=t));return n}function _n(e,t){return e._chain?q(t).chain():t}function wn(e){return Tt(de(e),(function(t){var n=q[t]=e[t];q.prototype[t]=function(){var e=[this._wrapped];return i.o.apply(e,arguments),_n(this,n.apply(q,e))}})),q}Tt(["pop","push","reverse","shift","sort","splice","unshift"],(function(e){var t=i.a[e];q.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),_n(this,n)}})),Tt(["concat","join","slice"],(function(e){var t=i.a[e];q.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),_n(this,e)}}));var kn=q,Sn=wn(r);Sn._=Sn;var xn=Sn},function(e,t,n){"use strict";e.exports=n(132)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=new Date,i=new Date;function a(e,t,n,o){function u(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return u.floor=function(t){return e(t=new Date(+t)),t},u.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},u.round=function(e){var t=u(e),n=u.ceil(e);return e-t<n-e?t:n},u.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},u.range=function(n,r,i){var a,o=[];if(n=u.ceil(n),i=null==i?1:Math.floor(i),!(n<r)||!(i>0))return o;do{o.push(a=new Date(+n)),t(n,i),e(n)}while(a<n&&n<r);return o},u.filter=function(n){return a((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(u.count=function(t,a){return r.setTime(+t),i.setTime(+a),e(r),e(i),Math.floor(n(r,i))},u.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?u.filter(o?function(t){return o(t)%e===0}:function(t){return u.count(0,t)%e===0}):u:null}),u}},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";e.exports=n(185)},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"e",(function(){return u}));var r=1e3,i=6e4,a=36e5,o=864e5,u=6048e5},function(e,t,n){"use strict";n.d(t,"g",(function(){return o})),n.d(t,"c",(function(){return u})),n.d(t,"k",(function(){return s})),n.d(t,"m",(function(){return l})),n.d(t,"i",(function(){return c})),n.d(t,"a",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"h",(function(){return h})),n.d(t,"d",(function(){return p})),n.d(t,"l",(function(){return v})),n.d(t,"n",(function(){return y})),n.d(t,"j",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"f",(function(){return b}));var r=n(3),i=n(8);function a(e){return Object(r.a)((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/i.e}))}var o=a(0),u=a(1),s=a(2),l=a(3),c=a(4),f=a(5),d=a(6),h=o.range,p=u.range,v=s.range,y=l.range,m=c.range,g=f.range,b=d.range},function(e,t,n){"use strict";n.d(t,"g",(function(){return o})),n.d(t,"c",(function(){return u})),n.d(t,"k",(function(){return s})),n.d(t,"m",(function(){return l})),n.d(t,"i",(function(){return c})),n.d(t,"a",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"h",(function(){return h})),n.d(t,"d",(function(){return p})),n.d(t,"l",(function(){return v})),n.d(t,"n",(function(){return y})),n.d(t,"j",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"f",(function(){return b}));var r=n(3),i=n(8);function a(e){return Object(r.a)((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.c)/i.e}))}var o=a(0),u=a(1),s=a(2),l=a(3),c=a(4),f=a(5),d=a(6),h=o.range,p=u.range,v=s.range,y=l.range,m=c.range,g=f.range,b=d.range},function(e,t,n){"use strict";n.r(t),n.d(t,"bisect",(function(){return s})),n.d(t,"bisectRight",(function(){return o})),n.d(t,"bisectLeft",(function(){return u})),n.d(t,"ascending",(function(){return r})),n.d(t,"bisector",(function(){return i})),n.d(t,"cross",(function(){return f})),n.d(t,"descending",(function(){return d})),n.d(t,"deviation",(function(){return v})),n.d(t,"extent",(function(){return y})),n.d(t,"histogram",(function(){return P})),n.d(t,"thresholdFreedmanDiaconis",(function(){return j})),n.d(t,"thresholdScott",(function(){return N})),n.d(t,"thresholdSturges",(function(){return C})),n.d(t,"max",(function(){return A})),n.d(t,"mean",(function(){return z})),n.d(t,"median",(function(){return R})),n.d(t,"merge",(function(){return I})),n.d(t,"min",(function(){return L})),n.d(t,"pairs",(function(){return l})),n.d(t,"permute",(function(){return U})),n.d(t,"quantile",(function(){return D})),n.d(t,"range",(function(){return k})),n.d(t,"scan",(function(){return F})),n.d(t,"shuffle",(function(){return Y})),n.d(t,"sum",(function(){return B})),n.d(t,"ticks",(function(){return M})),n.d(t,"tickIncrement",(function(){return E})),n.d(t,"tickStep",(function(){return T})),n.d(t,"transpose",(function(){return H})),n.d(t,"variance",(function(){return p})),n.d(t,"zip",(function(){return q}));var r=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN},i=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return r(t(e),n)}),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var a=r+i>>>1;e(t[a],n)<0?r=a+1:i=a}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var a=r+i>>>1;e(t[a],n)>0?i=a:r=a+1}return r}}};var a=i(r),o=a.right,u=a.left,s=o,l=function(e,t){null==t&&(t=c);for(var n=0,r=e.length-1,i=e[0],a=new Array(r<0?0:r);n<r;)a[n]=t(i,i=e[++n]);return a};function c(e,t){return[e,t]}var f=function(e,t,n){var r,i,a,o,u=e.length,s=t.length,l=new Array(u*s);for(null==n&&(n=c),r=a=0;r<u;++r)for(o=e[r],i=0;i<s;++i,++a)l[a]=n(o,t[i]);return l},d=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},h=function(e){return null===e?NaN:+e},p=function(e,t){var n,r,i=e.length,a=0,o=-1,u=0,s=0;if(null==t)for(;++o<i;)isNaN(n=h(e[o]))||(s+=(r=n-u)*(n-(u+=r/++a)));else for(;++o<i;)isNaN(n=h(t(e[o],o,e)))||(s+=(r=n-u)*(n-(u+=r/++a)));if(a>1)return s/(a-1)},v=function(e,t){var n=p(e,t);return n?Math.sqrt(n):n},y=function(e,t){var n,r,i,a=e.length,o=-1;if(null==t){for(;++o<a;)if(null!=(n=e[o])&&n>=n)for(r=i=n;++o<a;)null!=(n=e[o])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++o<a;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=i=n;++o<a;)null!=(n=t(e[o],o,e))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]},m=Array.prototype,g=m.slice,b=m.map,_=function(e){return function(){return e}},w=function(e){return e},k=function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),a=new Array(i);++r<i;)a[r]=e+r*n;return a},S=Math.sqrt(50),x=Math.sqrt(10),O=Math.sqrt(2),M=function(e,t,n){var r,i,a,o,u=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(o=E(e,t,n))||!isFinite(o))return[];if(o>0)for(e=Math.ceil(e/o),t=Math.floor(t/o),a=new Array(i=Math.ceil(t-e+1));++u<i;)a[u]=(e+u)*o;else for(e=Math.floor(e*o),t=Math.ceil(t*o),a=new Array(i=Math.ceil(e-t+1));++u<i;)a[u]=(e-u)/o;return r&&a.reverse(),a};function E(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=S?10:a>=x?5:a>=O?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=S?10:a>=x?5:a>=O?2:1)}function T(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=S?i*=10:a>=x?i*=5:a>=O&&(i*=2),t<e?-i:i}var C=function(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1},P=function(){var e=w,t=y,n=C;function r(r){var i,a,o=r.length,u=new Array(o);for(i=0;i<o;++i)u[i]=e(r[i],i,r);var l=t(u),c=l[0],f=l[1],d=n(u,c,f);Array.isArray(d)||(d=T(c,f,d),d=k(Math.ceil(c/d)*d,f,d));for(var h=d.length;d[0]<=c;)d.shift(),--h;for(;d[h-1]>f;)d.pop(),--h;var p,v=new Array(h+1);for(i=0;i<=h;++i)(p=v[i]=[]).x0=i>0?d[i-1]:c,p.x1=i<h?d[i]:f;for(i=0;i<o;++i)c<=(a=u[i])&&a<=f&&v[s(d,a,0,h)].push(r[i]);return v}return r.value=function(t){return arguments.length?(e="function"===typeof t?t:_(t),r):e},r.domain=function(e){return arguments.length?(t="function"===typeof e?e:_([e[0],e[1]]),r):t},r.thresholds=function(e){return arguments.length?(n="function"===typeof e?e:Array.isArray(e)?_(g.call(e)):_(e),r):n},r},D=function(e,t,n){if(null==n&&(n=h),r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e);return o+(+n(e[a+1],a+1,e)-o)*(i-a)}},j=function(e,t,n){return e=b.call(e,h).sort(r),Math.ceil((n-t)/(2*(D(e,.75)-D(e,.25))*Math.pow(e.length,-1/3)))},N=function(e,t,n){return Math.ceil((n-t)/(3.5*v(e)*Math.pow(e.length,-1/3)))},A=function(e,t){var n,r,i=e.length,a=-1;if(null==t){for(;++a<i;)if(null!=(n=e[a])&&n>=n)for(r=n;++a<i;)null!=(n=e[a])&&n>r&&(r=n)}else for(;++a<i;)if(null!=(n=t(e[a],a,e))&&n>=n)for(r=n;++a<i;)null!=(n=t(e[a],a,e))&&n>r&&(r=n);return r},z=function(e,t){var n,r=e.length,i=r,a=-1,o=0;if(null==t)for(;++a<r;)isNaN(n=h(e[a]))?--i:o+=n;else for(;++a<r;)isNaN(n=h(t(e[a],a,e)))?--i:o+=n;if(i)return o/i},R=function(e,t){var n,i=e.length,a=-1,o=[];if(null==t)for(;++a<i;)isNaN(n=h(e[a]))||o.push(n);else for(;++a<i;)isNaN(n=h(t(e[a],a,e)))||o.push(n);return D(o.sort(r),.5)},I=function(e){for(var t,n,r,i=e.length,a=-1,o=0;++a<i;)o+=e[a].length;for(n=new Array(o);--i>=0;)for(t=(r=e[i]).length;--t>=0;)n[--o]=r[t];return n},L=function(e,t){var n,r,i=e.length,a=-1;if(null==t){for(;++a<i;)if(null!=(n=e[a])&&n>=n)for(r=n;++a<i;)null!=(n=e[a])&&r>n&&(r=n)}else for(;++a<i;)if(null!=(n=t(e[a],a,e))&&n>=n)for(r=n;++a<i;)null!=(n=t(e[a],a,e))&&r>n&&(r=n);return r},U=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},F=function(e,t){if(n=e.length){var n,i,a=0,o=0,u=e[o];for(null==t&&(t=r);++a<n;)(t(i=e[a],u)<0||0!==t(u,u))&&(u=i,o=a);return 0===t(u,u)?o:void 0}},Y=function(e,t,n){for(var r,i,a=(null==n?e.length:n)-(t=null==t?0:+t);a;)i=Math.random()*a--|0,r=e[a+t],e[a+t]=e[i+t],e[i+t]=r;return e},B=function(e,t){var n,r=e.length,i=-1,a=0;if(null==t)for(;++i<r;)(n=+e[i])&&(a+=n);else for(;++i<r;)(n=+t(e[i],i,e))&&(a+=n);return a},H=function(e){if(!(i=e.length))return[];for(var t=-1,n=L(e,W),r=new Array(n);++t<n;)for(var i,a=-1,o=r[t]=new Array(i);++a<i;)o[a]=e[a][t];return r};function W(e){return e.length}var q=function(){return H(arguments)}},function(e,t,n){e.exports=n(140)()},function(e,t,n){var r=n(149);e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){var r=n(43),i=n(150),a=n(66);e.exports=function(e){var t=i();return function(){var n,i=r(e);if(t){var o=r(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return a(this,n)}}},function(e,t,n){(function(e){!function(t){var n=function(e){return i(!0===e,!1,arguments)};function r(e,t){if("object"!==a(e))return t;for(var n in t)"object"===a(e[n])&&"object"===a(t[n])?e[n]=r(e[n],t[n]):e[n]=t[n];return e}function i(e,t,i){var o=i[0],u=i.length;(e||"object"!==a(o))&&(o={});for(var s=0;s<u;++s){var l=i[s];if("object"===a(l))for(var c in l)if("__proto__"!==c){var f=e?n.clone(l[c]):l[c];o[c]=t?r(o[c],f):f}}return o}function a(e){return{}.toString.call(e).slice(8,-1).toLowerCase()}n.recursive=function(e){return i(!0===e,!0,arguments)},n.clone=function(e){var t,r,i=e,o=a(e);if("array"===o)for(i=[],r=e.length,t=0;t<r;++t)i[t]=n.clone(e[t]);else if("object"===o)for(t in i={},e)i[t]=n.clone(e[t]);return i},t?e.exports=n:window.merge=n}(e&&"object"===typeof e.exports&&e.exports)}).call(this,n(105)(e))},function(e,t,n){"use strict";n.r(t),n.d(t,"create",(function(){return a})),n.d(t,"creator",(function(){return r.a})),n.d(t,"local",(function(){return u})),n.d(t,"matcher",(function(){return l.a})),n.d(t,"mouse",(function(){return h})),n.d(t,"namespace",(function(){return p.a})),n.d(t,"namespaces",(function(){return v.a})),n.d(t,"clientPoint",(function(){return d})),n.d(t,"select",(function(){return i.a})),n.d(t,"selectAll",(function(){return m})),n.d(t,"selection",(function(){return y.b})),n.d(t,"selector",(function(){return g.a})),n.d(t,"selectorAll",(function(){return b.a})),n.d(t,"style",(function(){return _.b})),n.d(t,"touch",(function(){return w})),n.d(t,"touches",(function(){return k})),n.d(t,"window",(function(){return S.a})),n.d(t,"event",(function(){return c.c})),n.d(t,"customEvent",(function(){return c.a}));var r=n(34),i=n(78),a=function(e){return Object(i.a)(Object(r.a)(e).call(document.documentElement))},o=0;function u(){return new s}function s(){this._="@"+(++o).toString(36)}s.prototype=u.prototype={constructor:s,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var l=n(75),c=n(42),f=function(){for(var e,t=c.c;e=t.sourceEvent;)t=e;return t},d=function(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]},h=function(e){var t=f();return t.changedTouches&&(t=t.changedTouches[0]),d(e,t)},p=n(46),v=n(35),y=n(26),m=function(e){return"string"===typeof e?new y.a([document.querySelectorAll(e)],[document.documentElement]):new y.a([null==e?[]:e],y.c)},g=n(47),b=n(76),_=n(77),w=function(e,t,n){arguments.length<3&&(n=t,t=f().changedTouches);for(var r,i=0,a=t?t.length:0;i<a;++i)if((r=t[i]).identifier===n)return d(e,r);return null},k=function(e,t){null==t&&(t=f().touches);for(var n=0,r=t?t.length:0,i=new Array(r);n<r;++n)i[n]=d(e,t[n]);return i},S=n(48)},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Event",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"TimeEvent",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"TimeRangeEvent",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"IndexedEvent",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"Index",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"TimeRange",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"Collection",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"TimeSeries",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"Pipeline",{enumerable:!0,get:function(){return d.Pipeline}}),Object.defineProperty(t,"Stream",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"Bounded",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"PipelineOut",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"EventOut",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"CollectionOut",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"keep",{enumerable:!0,get:function(){return g.keep}}),Object.defineProperty(t,"sum",{enumerable:!0,get:function(){return g.sum}}),Object.defineProperty(t,"avg",{enumerable:!0,get:function(){return g.avg}}),Object.defineProperty(t,"max",{enumerable:!0,get:function(){return g.max}}),Object.defineProperty(t,"min",{enumerable:!0,get:function(){return g.min}}),Object.defineProperty(t,"count",{enumerable:!0,get:function(){return g.count}}),Object.defineProperty(t,"first",{enumerable:!0,get:function(){return g.first}}),Object.defineProperty(t,"last",{enumerable:!0,get:function(){return g.last}}),Object.defineProperty(t,"difference",{enumerable:!0,get:function(){return g.difference}}),Object.defineProperty(t,"median",{enumerable:!0,get:function(){return g.median}}),Object.defineProperty(t,"stdev",{enumerable:!0,get:function(){return g.stdev}}),Object.defineProperty(t,"percentile",{enumerable:!0,get:function(){return g.percentile}}),Object.defineProperty(t,"filter",{enumerable:!0,get:function(){return g.filter}});var i=r(n(32)),a=r(n(56)),o=r(n(40)),u=r(n(41)),s=r(n(39)),l=r(n(55)),c=r(n(87)),f=r(n(113)),d=n(19),h=r(n(118)),p=r(n(88)),v=r(n(89)),y=r(n(117)),m=r(n(115)),g=n(112),b=n(20),_=n(166);"undefined"!==typeof window&&_(b)},function(e,t,n){"use strict";var r=n(53),i=n(6),a=n(7),o=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.Pipeline=function(e){return new N(e)},t.isPipeline=function(e){return e instanceof N};var u=o(n(114)),s=o(n(20)),l=o(n(1)),c=o(n(56)),f=o(n(41)),d=o(n(40)),h=o(n(113)),p=o(n(88)),v=o(n(115)),y=o(n(117)),m=o(n(118)),g=o(n(154)),b=o(n(156)),_=o(n(157)),w=o(n(158)),k=o(n(159)),S=o(n(160)),x=o(n(161)),O=o(n(162)),M=o(n(163)),E=o(n(21)),T=o(n(164)),C=o(n(165));function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(n,!0).forEach((function(t){(0,u.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var j=function(){function e(t,n){var r=this;i(this,e),this._output=n,this._pipeline=t;var a=[];t.last()?(a=t.last().chain(),this._input=a[0].pipeline().in()):this._input=t.in(),this._executionChain=[this._output];var o=this._output;a.forEach((function(e){if(e instanceof E.default){var t=e.clone();o&&t.addObserver(o),r._executionChain.push(t),o=t}}))}return a(e,[{key:"start",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._pipeline.clearResults();var t,n=this._executionChain.pop(),i=r(this._input.events());try{for(i.s();!(t=i.n()).done;){var a=t.value;n.addEvent(a)}}catch(o){i.e(o)}finally{i.f()}e&&n.flush()}}]),e}(),N=function(){function e(t){if(i(this,e),t instanceof e){var n=t;this._d=n._d}else t instanceof s.default.Map?this._d=t:this._d=new s.default.Map({type:null,in:null,first:null,last:null,groupBy:function(){return""},windowType:"global",windowDuration:null,emitOn:"eachEvent"});this._results=[]}return a(e,[{key:"in",value:function(){return this._d.get("in")}},{key:"mode",value:function(){return this._d.get("mode")}},{key:"first",value:function(){return this._d.get("first")}},{key:"last",value:function(){return this._d.get("last")}},{key:"getWindowType",value:function(){return this._d.get("windowType")}},{key:"getWindowDuration",value:function(){return this._d.get("windowDuration")}},{key:"getGroupBy",value:function(){return this._d.get("groupBy")}},{key:"getEmitOn",value:function(){return this._d.get("emitOn")}},{key:"clearResults",value:function(){this._resultsDone=!1,this._results=null}},{key:"addResult",value:function(e,t){this._results||(l.default.isString(e)&&t?this._results={}:this._results=[]),l.default.isString(e)&&t?this._results[e]=t:this._results.push(e),this._resultsDone=!1}},{key:"resultsDone",value:function(){this._resultsDone=!0}},{key:"_setIn",value:function(t){var n,r=t;if(t instanceof h.default)n="batch",r=t.collection();else if(t instanceof p.default)n="batch";else{if(!(t instanceof m.default))throw new Error("Unknown input type",t);n="stream"}return new e(this._d.withMutations((function(e){e.set("in",r).set("mode",n)})))}},{key:"_setFirst",value:function(t){return new e(this._d.set("first",t))}},{key:"_setLast",value:function(t){return new e(this._d.set("last",t))}},{key:"_append",value:function(t){var n=this.first(),r=this.last();return n||(n=t),r&&r.addObserver(t),r=t,new e(this._d.withMutations((function(e){e.set("first",n).set("last",r)})))}},{key:"_chainPrev",value:function(){return this.last()||this}},{key:"windowBy",value:function(t){var n,r;return l.default.isString(t)?"daily"===t||"monthly"===t||"yearly"===t?n=t:(n="fixed",r=t):l.default.isObject(t)?(n=t.type,r=t.duration):(n="global",r=null),new e(this._d.withMutations((function(e){e.set("windowType",n).set("windowDuration",r)})))}},{key:"clearWindow",value:function(){return this.windowBy()}},{key:"groupBy",value:function(t){var n,r=t||"value";return n=l.default.isFunction(r)?r:l.default.isArray(r)?function(e){return l.default.map(r,(function(t){return"".concat(e.get(t))})).join("::")}:l.default.isString(r)?function(e){return"".concat(e.get(r))}:function(){return""},new e(this._d.withMutations((function(e){e.set("groupBy",n)})))}},{key:"clearGroupBy",value:function(){return this.groupBy()}},{key:"emitOn",value:function(t){return new e(this._d.set("emitOn",t))}},{key:"from",value:function(e){return this._setIn(e)}},{key:"toEventList",value:function(){return this.to(y.default)}},{key:"toKeyedCollections",value:function(){var e=this.to(v.default);return e||{}}},{key:"to",value:function(e,t,n){var r,i=e,a={};if(l.default.isFunction(t)?r=t:l.default.isObject(t)&&(a=t,r=n),!this.in())throw new Error("Tried to eval pipeline without a In. Missing from() in chain?");var o=new i(this,a,r);if("batch"===this.mode()){if(new j(this,o).start(!0),this._resultsDone&&!r)return this._results}else if("stream"===this.mode()){var u=new i(this,a,r);this.first()&&this.in().addObserver(this.first()),this.last()?this.last().addObserver(u):this.in().addObserver(u)}return this}},{key:"count",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.to(v.default,(function(t,n,r){e(t.size(),n,r)}),t)}},{key:"offsetBy",value:function(e,t){var n=new M.default(this,{by:e,fieldSpec:t,prev:this._chainPrev()});return this._append(n)}},{key:"aggregate",value:function(e){var t=new g.default(this,{fields:e,prev:this._chainPrev()});return this._append(t)}},{key:"asTimeEvents",value:function(e){var t=c.default,n=new w.default(this,D({type:t},e,{prev:this._chainPrev()}));return this._append(n)}},{key:"map",value:function(e){var t=new O.default(this,{op:e,prev:this._chainPrev()});return this._append(t)}},{key:"filter",value:function(e){var t=new x.default(this,{op:e,prev:this._chainPrev()});return this._append(t)}},{key:"select",value:function(e){var t=new T.default(this,{fieldSpec:e,prev:this._chainPrev()});return this._append(t)}},{key:"collapse",value:function(e,t,n,r){var i=new _.default(this,{fieldSpecList:e,name:t,reducer:n,append:r,prev:this._chainPrev()});return this._append(i)}},{key:"fill",value:function(e){var t=e.fieldSpec,n=void 0===t?null:t,r=e.method,i=void 0===r?"linear":r,a=e.limit,o=void 0===a?null:a,u=this._chainPrev();return this._append(new S.default(this,{fieldSpec:n,method:i,limit:o,prev:u}))}},{key:"align",value:function(e,t,n,r){var i=this._chainPrev();return this._append(new b.default(this,{fieldSpec:e,window:t,method:n,limit:r,prev:i}))}},{key:"rate",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=new k.default(this,{fieldSpec:e,allowNegative:t,prev:this._chainPrev()});return this._append(n)}},{key:"take",value:function(e){var t=new C.default(this,{limit:e,prev:this._chainPrev()});return this._append(t)}},{key:"asTimeRangeEvents",value:function(e){var t=d.default,n=new w.default(this,D({type:t},e,{prev:this._chainPrev()}));return this._append(n)}},{key:"asIndexedEvents",value:function(e){var t=f.default,n=new w.default(this,D({type:t},e,{prev:this._chainPrev()}));return this._append(n)}}]),e}()},function(e,t,n){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return o(e)?e:Z(e)}function r(e){return u(e)?e:G(e)}function i(e){return s(e)?e:$(e)}function a(e){return o(e)&&!l(e)?e:K(e)}function o(e){return!(!e||!e[f])}function u(e){return!(!e||!e[d])}function s(e){return!(!e||!e[h])}function l(e){return u(e)||s(e)}function c(e){return!(!e||!e[p])}t(r,n),t(i,n),t(a,n),n.isIterable=o,n.isKeyed=u,n.isIndexed=s,n.isAssociative=l,n.isOrdered=c,n.Keyed=r,n.Indexed=i,n.Set=a;var f="@@__IMMUTABLE_ITERABLE__@@",d="@@__IMMUTABLE_KEYED__@@",h="@@__IMMUTABLE_INDEXED__@@",p="@@__IMMUTABLE_ORDERED__@@",v="delete",y=5,m=1<<y,g=m-1,b={},_={value:!1},w={value:!1};function k(e){return e.value=!1,e}function S(e){e&&(e.value=!0)}function x(){}function O(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function M(e){return void 0===e.size&&(e.size=e.__iterate(T)),e.size}function E(e,t){if("number"!==typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?M(e)+t:t}function T(){return!0}function C(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function P(e,t){return j(e,t,0)}function D(e,t){return j(e,t,t)}function j(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var N=0,A=1,z=2,R="function"===typeof Symbol&&Symbol.iterator,I="@@iterator",L=R||I;function U(e){this.next=e}function F(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function Y(){return{value:void 0,done:!0}}function B(e){return!!q(e)}function H(e){return e&&"function"===typeof e.next}function W(e){var t=q(e);return t&&t.call(e)}function q(e){var t=e&&(R&&e[R]||e[I]);if("function"===typeof t)return t}function V(e){return e&&"number"===typeof e.length}function Z(e){return null===e||void 0===e?oe():o(e)?e.toSeq():le(e)}function G(e){return null===e||void 0===e?oe().toKeyedSeq():o(e)?u(e)?e.toSeq():e.fromEntrySeq():ue(e)}function $(e){return null===e||void 0===e?oe():o(e)?u(e)?e.entrySeq():e.toIndexedSeq():se(e)}function K(e){return(null===e||void 0===e?oe():o(e)?u(e)?e.entrySeq():e:se(e)).toSetSeq()}U.prototype.toString=function(){return"[Iterator]"},U.KEYS=N,U.VALUES=A,U.ENTRIES=z,U.prototype.inspect=U.prototype.toSource=function(){return this.toString()},U.prototype[L]=function(){return this},t(Z,n),Z.of=function(){return Z(arguments)},Z.prototype.toSeq=function(){return this},Z.prototype.toString=function(){return this.__toString("Seq {","}")},Z.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Z.prototype.__iterate=function(e,t){return fe(this,e,t,!0)},Z.prototype.__iterator=function(e,t){return de(this,e,t,!0)},t(G,Z),G.prototype.toKeyedSeq=function(){return this},t($,Z),$.of=function(){return $(arguments)},$.prototype.toIndexedSeq=function(){return this},$.prototype.toString=function(){return this.__toString("Seq [","]")},$.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},$.prototype.__iterator=function(e,t){return de(this,e,t,!1)},t(K,Z),K.of=function(){return K(arguments)},K.prototype.toSetSeq=function(){return this},Z.isSeq=ae,Z.Keyed=G,Z.Set=K,Z.Indexed=$;var X,J,Q,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function ie(e){this._iterator=e,this._iteratorCache=[]}function ae(e){return!(!e||!e[ee])}function oe(){return X||(X=new te([]))}function ue(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():H(e)?new ie(e).fromEntrySeq():B(e)?new re(e).fromEntrySeq():"object"===typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function se(e){var t=ce(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function le(e){var t=ce(e)||"object"===typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function ce(e){return V(e)?new te(e):H(e)?new ie(e):B(e)?new re(e):void 0}function fe(e,t,n,r){var i=e._cache;if(i){for(var a=i.length-1,o=0;o<=a;o++){var u=i[n?a-o:o];if(!1===t(u[1],r?u[0]:o,e))return o+1}return o}return e.__iterateUncached(t,n)}function de(e,t,n,r){var i=e._cache;if(i){var a=i.length-1,o=0;return new U((function(){var e=i[n?a-o:o];return o++>a?Y():F(t,r?e[0]:o-1,e[1])}))}return e.__iteratorUncached(t,n)}function he(e,t){return t?pe(t,e,"",{"":e}):ve(e)}function pe(e,t,n,r){return Array.isArray(t)?e.call(r,n,$(t).map((function(n,r){return pe(e,n,r,t)}))):ye(t)?e.call(r,n,G(t).map((function(n,r){return pe(e,n,r,t)}))):t}function ve(e){return Array.isArray(e)?$(e).map(ve).toList():ye(e)?G(e).map(ve).toMap():e}function ye(e){return e&&(e.constructor===Object||void 0===e.constructor)}function me(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"===typeof e.valueOf&&"function"===typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!("function"!==typeof e.equals||"function"!==typeof t.equals||!e.equals(t))}function ge(e,t){if(e===t)return!0;if(!o(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||u(e)!==u(t)||s(e)!==s(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!l(e);if(c(e)){var r=e.entries();return t.every((function(e,t){var i=r.next().value;return i&&me(i[1],e)&&(n||me(i[0],t))}))&&r.next().done}var i=!1;if(void 0===e.size)if(void 0===t.size)"function"===typeof e.cacheResult&&e.cacheResult();else{i=!0;var a=e;e=t,t=a}var f=!0,d=t.__iterate((function(t,r){if(n?!e.has(t):i?!me(t,e.get(r,b)):!me(e.get(r,b),t))return f=!1,!1}));return f&&e.size===d}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function _e(e,t){if(!e)throw new Error(t)}function we(e,t,n){if(!(this instanceof we))return new we(e,t,n);if(_e(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Q)return Q;Q=this}}function ke(){throw TypeError("Abstract")}function Se(){}function xe(){}function Oe(){}Z.prototype[ee]=!0,t(te,$),te.prototype.get=function(e,t){return this.has(e)?this._array[E(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,i=0;i<=r;i++)if(!1===e(n[t?r-i:i],i,this))return i+1;return i},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,i=0;return new U((function(){return i>r?Y():F(e,i,n[t?r-i++:i++])}))},t(ne,G),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length-1,a=0;a<=i;a++){var o=r[t?i-a:a];if(!1===e(n[o],o,this))return a+1}return a},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length-1,a=0;return new U((function(){var o=r[t?i-a:a];return a++>i?Y():F(e,o,n[o])}))},ne.prototype[p]=!0,t(re,$),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=W(this._iterable),r=0;if(H(n))for(var i;!(i=n.next()).done&&!1!==e(i.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=W(this._iterable);if(!H(n))return new U(Y);var r=0;return new U((function(){var t=n.next();return t.done?t:F(e,r++,t.value)}))},t(ie,$),ie.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,i=this._iteratorCache,a=0;a<i.length;)if(!1===e(i[a],a++,this))return a;for(;!(n=r.next()).done;){var o=n.value;if(i[a]=o,!1===e(o,a++,this))break}return a},ie.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,i=0;return new U((function(){if(i>=r.length){var t=n.next();if(t.done)return t;r[i]=t.value}return F(e,i,r[i++])}))},t(be,$),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return me(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return C(e,t,n)?this:new be(this._value,D(t,n)-P(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return me(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return me(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},be.prototype.__iterator=function(e,t){var n=this,r=0;return new U((function(){return r<n.size?F(e,r++,n._value):Y()}))},be.prototype.equals=function(e){return e instanceof be?me(this._value,e._value):ge(e)},t(we,$),we.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},we.prototype.get=function(e,t){return this.has(e)?this._start+E(this,e)*this._step:t},we.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},we.prototype.slice=function(e,t){return C(e,t,this.size)?this:(e=P(e,this.size),(t=D(t,this.size))<=e?new we(0,0):new we(this.get(e,this._end),this.get(t,this._end),this._step))},we.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},we.prototype.lastIndexOf=function(e){return this.indexOf(e)},we.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,a=0;a<=n;a++){if(!1===e(i,a,this))return a+1;i+=t?-r:r}return a},we.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,i=t?this._start+n*r:this._start,a=0;return new U((function(){var o=i;return i+=t?-r:r,a>n?Y():F(e,a++,o)}))},we.prototype.equals=function(e){return e instanceof we?this._start===e._start&&this._end===e._end&&this._step===e._step:ge(this,e)},t(ke,n),t(Se,ke),t(xe,ke),t(Oe,ke),ke.Keyed=Se,ke.Indexed=xe,ke.Set=Oe;var Me="function"===typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Ee(e){return e>>>1&1073741824|3221225471&e}function Te(e){if(!1===e||null===e||void 0===e)return 0;if("function"===typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){if(e!==e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Ee(n)}if("string"===t)return e.length>Ue?Ce(e):Pe(e);if("function"===typeof e.hashCode)return e.hashCode();if("object"===t)return De(e);if("function"===typeof e.toString)return Pe(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Ce(e){var t=Be[e];return void 0===t&&(t=Pe(e),Ye===Fe&&(Ye=0,Be={}),Ye++,Be[e]=t),t}function Pe(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Ee(t)}function De(e){var t;if(Re&&void 0!==(t=ze.get(e)))return t;if(void 0!==(t=e[Le]))return t;if(!Ne){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Le]))return t;if(void 0!==(t=Ae(e)))return t}if(t=++Ie,1073741824&Ie&&(Ie=0),Re)ze.set(e,t);else{if(void 0!==je&&!1===je(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Ne)Object.defineProperty(e,Le,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Le]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Le]=t}}return t}var je=Object.isExtensible,Ne=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Ae(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var ze,Re="function"===typeof WeakMap;Re&&(ze=new WeakMap);var Ie=0,Le="__immutablehash__";"function"===typeof Symbol&&(Le=Symbol(Le));var Ue=16,Fe=255,Ye=0,Be={};function He(e){_e(e!==1/0,"Cannot perform this action with an infinite size.")}function We(e){return null===e||void 0===e?it():qe(e)&&!c(e)?e:it().withMutations((function(t){var n=r(e);He(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function qe(e){return!(!e||!e[Ze])}t(We,Se),We.of=function(){var t=e.call(arguments,0);return it().withMutations((function(e){for(var n=0;n<t.length;n+=2){if(n+1>=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}}))},We.prototype.toString=function(){return this.__toString("Map {","}")},We.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},We.prototype.set=function(e,t){return at(this,e,t)},We.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},We.prototype.remove=function(e){return at(this,e,b)},We.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},We.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},We.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=yt(this,kn(e),t,n);return r===b?void 0:r},We.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):it()},We.prototype.merge=function(){return dt(this,void 0,arguments)},We.prototype.mergeWith=function(t){return dt(this,t,e.call(arguments,1))},We.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,it(),(function(e){return"function"===typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},We.prototype.mergeDeep=function(){return dt(this,ht,arguments)},We.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return dt(this,pt(t),n)},We.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,it(),(function(e){return"function"===typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},We.prototype.sort=function(e){return Bt(fn(this,e))},We.prototype.sortBy=function(e,t){return Bt(fn(this,t,e))},We.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},We.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new x)},We.prototype.asImmutable=function(){return this.__ensureOwner()},We.prototype.wasAltered=function(){return this.__altered},We.prototype.__iterator=function(e,t){return new et(this,e,t)},We.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},We.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},We.isMap=qe;var Ve,Ze="@@__IMMUTABLE_MAP__@@",Ge=We.prototype;function $e(e,t){this.ownerID=e,this.entries=t}function Ke(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Xe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return F(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var i=Object.create(Ge);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function it(){return Ve||(Ve=rt(0))}function at(e,t,n){var r,i;if(e._root){var a=k(_),o=k(w);if(r=ot(e._root,e.__ownerID,0,void 0,t,n,a,o),!o.value)return e;i=e.size+(a.value?n===b?-1:1:0)}else{if(n===b)return e;i=1,r=new $e(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(i,r):it()}function ot(e,t,n,r,i,a,o,u){return e?e.update(t,n,r,i,a,o,u):a===b?e:(S(u),S(o),new Qe(t,r,[i,a]))}function ut(e){return e.constructor===Qe||e.constructor===Je}function st(e,t,n,r,i){if(e.keyHash===r)return new Je(t,r,[e.entry,i]);var a,o=(0===n?e.keyHash:e.keyHash>>>n)&g,u=(0===n?r:r>>>n)&g;return new Ke(t,1<<o|1<<u,o===u?[st(e,t,n+y,r,i)]:(a=new Qe(t,r,i),o<u?[e,a]:[a,e]))}function lt(e,t,n,r){e||(e=new x);for(var i=new Qe(e,Te(n),[n,r]),a=0;a<t.length;a++){var o=t[a];i=i.update(e,0,void 0,o[0],o[1])}return i}function ct(e,t,n,r){for(var i=0,a=0,o=new Array(n),u=0,s=1,l=t.length;u<l;u++,s<<=1){var c=t[u];void 0!==c&&u!==r&&(i|=s,o[a++]=c)}return new Ke(e,i,o)}function ft(e,t,n,r,i){for(var a=0,o=new Array(m),u=0;0!==n;u++,n>>>=1)o[u]=1&n?t[a++]:void 0;return o[r]=i,new Xe(e,a+1,o)}function dt(e,t,n){for(var i=[],a=0;a<n.length;a++){var u=n[a],s=r(u);o(u)||(s=s.map((function(e){return he(e)}))),i.push(s)}return vt(e,t,i)}function ht(e,t,n){return e&&e.mergeDeep&&o(t)?e.mergeDeep(t):me(e,t)?e:t}function pt(e){return function(t,n,r){if(t&&t.mergeDeepWith&&o(n))return t.mergeDeepWith(e,n);var i=e(t,n,r);return me(t,i)?t:i}}function vt(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,b,(function(e){return e===b?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},i=0;i<n.length;i++)n[i].forEach(r)})):e.constructor(n[0])}function yt(e,t,n,r){var i=e===b,a=t.next();if(a.done){var o=i?n:e,u=r(o);return u===o?e:u}_e(i||e&&e.set,"invalid keyPath");var s=a.value,l=i?b:e.get(s,b),c=yt(l,t,n,r);return c===l?e:c===b?e.remove(s):(i?it():e).set(s,c)}function mt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function gt(e,t,n,r){var i=r?e:O(e);return i[t]=n,i}function bt(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var a=new Array(i),o=0,u=0;u<i;u++)u===t?(a[u]=n,o=-1):a[u]=e[u+o];return a}function _t(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),a=0,o=0;o<r;o++)o===t&&(a=1),i[o]=e[o+a];return i}Ge[Ze]=!0,Ge[v]=Ge.remove,Ge.removeIn=Ge.deleteIn,$e.prototype.get=function(e,t,n,r){for(var i=this.entries,a=0,o=i.length;a<o;a++)if(me(n,i[a][0]))return i[a][1];return r},$e.prototype.update=function(e,t,n,r,i,a,o){for(var u=i===b,s=this.entries,l=0,c=s.length;l<c&&!me(r,s[l][0]);l++);var f=l<c;if(f?s[l][1]===i:u)return this;if(S(o),(u||!f)&&S(a),!u||1!==s.length){if(!f&&!u&&s.length>=wt)return lt(e,s,r,i);var d=e&&e===this.ownerID,h=d?s:O(s);return f?u?l===c-1?h.pop():h[l]=h.pop():h[l]=[r,i]:h.push([r,i]),d?(this.entries=h,this):new $e(e,h)}},Ke.prototype.get=function(e,t,n,r){void 0===t&&(t=Te(n));var i=1<<((0===e?t:t>>>e)&g),a=this.bitmap;return 0===(a&i)?r:this.nodes[mt(a&i-1)].get(e+y,t,n,r)},Ke.prototype.update=function(e,t,n,r,i,a,o){void 0===n&&(n=Te(r));var u=(0===t?n:n>>>t)&g,s=1<<u,l=this.bitmap,c=0!==(l&s);if(!c&&i===b)return this;var f=mt(l&s-1),d=this.nodes,h=c?d[f]:void 0,p=ot(h,e,t+y,n,r,i,a,o);if(p===h)return this;if(!c&&p&&d.length>=kt)return ft(e,d,l,u,p);if(c&&!p&&2===d.length&&ut(d[1^f]))return d[1^f];if(c&&p&&1===d.length&&ut(p))return p;var v=e&&e===this.ownerID,m=c?p?l:l^s:l|s,_=c?p?gt(d,f,p,v):_t(d,f,v):bt(d,f,p,v);return v?(this.bitmap=m,this.nodes=_,this):new Ke(e,m,_)},Xe.prototype.get=function(e,t,n,r){void 0===t&&(t=Te(n));var i=(0===e?t:t>>>e)&g,a=this.nodes[i];return a?a.get(e+y,t,n,r):r},Xe.prototype.update=function(e,t,n,r,i,a,o){void 0===n&&(n=Te(r));var u=(0===t?n:n>>>t)&g,s=i===b,l=this.nodes,c=l[u];if(s&&!c)return this;var f=ot(c,e,t+y,n,r,i,a,o);if(f===c)return this;var d=this.count;if(c){if(!f&&--d<St)return ct(e,l,d,u)}else d++;var h=e&&e===this.ownerID,p=gt(l,u,f,h);return h?(this.count=d,this.nodes=p,this):new Xe(e,d,p)},Je.prototype.get=function(e,t,n,r){for(var i=this.entries,a=0,o=i.length;a<o;a++)if(me(n,i[a][0]))return i[a][1];return r},Je.prototype.update=function(e,t,n,r,i,a,o){void 0===n&&(n=Te(r));var u=i===b;if(n!==this.keyHash)return u?this:(S(o),S(a),st(this,e,t,n,[r,i]));for(var s=this.entries,l=0,c=s.length;l<c&&!me(r,s[l][0]);l++);var f=l<c;if(f?s[l][1]===i:u)return this;if(S(o),(u||!f)&&S(a),u&&2===c)return new Qe(e,this.keyHash,s[1^l]);var d=e&&e===this.ownerID,h=d?s:O(s);return f?u?l===c-1?h.pop():h[l]=h.pop():h[l]=[r,i]:h.push([r,i]),d?(this.entries=h,this):new Je(e,this.keyHash,h)},Qe.prototype.get=function(e,t,n,r){return me(n,this.entry[0])?this.entry[1]:r},Qe.prototype.update=function(e,t,n,r,i,a,o){var u=i===b,s=me(r,this.entry[0]);return(s?i===this.entry[1]:u)?this:(S(o),u?void S(a):s?e&&e===this.ownerID?(this.entry[1]=i,this):new Qe(e,this.keyHash,[r,i]):(S(a),st(this,e,t,Te(r),[r,i])))},$e.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(!1===e(n[t?i-r:r]))return!1},Ke.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var a=n[t?i-r:r];if(a&&!1===a.iterate(e,t))return!1}},Qe.prototype.iterate=function(e,t){return e(this.entry)},t(et,U),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,i=t.index++;if(r.entry){if(0===i)return tt(e,r.entry)}else if(r.entries){if(i<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-i:i])}else if(i<=(n=r.nodes.length-1)){var a=r.nodes[this._reverse?n-i:i];if(a){if(a.entry)return tt(e,a.entry);t=this._stack=nt(a,t)}continue}t=this._stack=this._stack.__prev}return Y()};var wt=m/4,kt=m/2,St=m/4;function xt(e){var t=At();if(null===e||void 0===e)return t;if(Ot(e))return e;var n=i(e),r=n.size;return 0===r?t:(He(r),r>0&&r<m?Nt(0,r,y,null,new Tt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function Ot(e){return!(!e||!e[Mt])}t(xt,xe),xt.of=function(){return this(arguments)},xt.prototype.toString=function(){return this.__toString("List [","]")},xt.prototype.get=function(e,t){if((e=E(this,e))>=0&&e<this.size){var n=Lt(this,e+=this._origin);return n&&n.array[e&g]}return t},xt.prototype.set=function(e,t){return zt(this,e,t)},xt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},xt.prototype.insert=function(e,t){return this.splice(e,0,t)},xt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=y,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):At()},xt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Ut(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},xt.prototype.pop=function(){return Ut(this,0,-1)},xt.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){Ut(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},xt.prototype.shift=function(){return Ut(this,1)},xt.prototype.merge=function(){return Ft(this,void 0,arguments)},xt.prototype.mergeWith=function(t){return Ft(this,t,e.call(arguments,1))},xt.prototype.mergeDeep=function(){return Ft(this,ht,arguments)},xt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Ft(this,pt(t),n)},xt.prototype.setSize=function(e){return Ut(this,0,e)},xt.prototype.slice=function(e,t){var n=this.size;return C(e,t,n)?this:Ut(this,P(e,n),D(t,n))},xt.prototype.__iterator=function(e,t){var n=0,r=jt(this,t);return new U((function(){var t=r();return t===Dt?Y():F(e,n++,t)}))},xt.prototype.__iterate=function(e,t){for(var n,r=0,i=jt(this,t);(n=i())!==Dt&&!1!==e(n,r++,this););return r},xt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Nt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},xt.isList=Ot;var Mt="@@__IMMUTABLE_LIST__@@",Et=xt.prototype;function Tt(e,t){this.array=e,this.ownerID=t}Et[Mt]=!0,Et[v]=Et.remove,Et.setIn=Ge.setIn,Et.deleteIn=Et.removeIn=Ge.removeIn,Et.update=Ge.update,Et.updateIn=Ge.updateIn,Et.mergeIn=Ge.mergeIn,Et.mergeDeepIn=Ge.mergeDeepIn,Et.withMutations=Ge.withMutations,Et.asMutable=Ge.asMutable,Et.asImmutable=Ge.asImmutable,Et.wasAltered=Ge.wasAltered,Tt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&g;if(r>=this.array.length)return new Tt([],e);var i,a=0===r;if(t>0){var o=this.array[r];if((i=o&&o.removeBefore(e,t-y,n))===o&&a)return this}if(a&&!i)return this;var u=It(this,e);if(!a)for(var s=0;s<r;s++)u.array[s]=void 0;return i&&(u.array[r]=i),u},Tt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,i=n-1>>>t&g;if(i>=this.array.length)return this;if(t>0){var a=this.array[i];if((r=a&&a.removeAfter(e,t-y,n))===a&&i===this.array.length-1)return this}var o=It(this,e);return o.array.splice(i+1),r&&(o.array[i]=r),o};var Ct,Pt,Dt={};function jt(e,t){var n=e._origin,r=e._capacity,i=Yt(r),a=e._tail;return o(e._root,e._level,0);function o(e,t,n){return 0===t?u(e,n):s(e,t,n)}function u(e,o){var u=o===i?a&&a.array:e&&e.array,s=o>n?0:n-o,l=r-o;return l>m&&(l=m),function(){if(s===l)return Dt;var e=t?--l:s++;return u&&u[e]}}function s(e,i,a){var u,s=e&&e.array,l=a>n?0:n-a>>i,c=1+(r-a>>i);return c>m&&(c=m),function(){for(;;){if(u){var e=u();if(e!==Dt)return e;u=null}if(l===c)return Dt;var n=t?--c:l++;u=o(s&&s[n],i-y,a+(n<<i))}}}}function Nt(e,t,n,r,i,a,o){var u=Object.create(Et);return u.size=t-e,u._origin=e,u._capacity=t,u._level=n,u._root=r,u._tail=i,u.__ownerID=a,u.__hash=o,u.__altered=!1,u}function At(){return Ct||(Ct=Nt(0,0,y))}function zt(e,t,n){if((t=E(e,t))!==t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Ut(e,t).set(0,n):Ut(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,i=e._root,a=k(w);return t>=Yt(e._capacity)?r=Rt(r,e.__ownerID,0,t,n,a):i=Rt(i,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Nt(e._origin,e._capacity,e._level,i,r):e}function Rt(e,t,n,r,i,a){var o,u=r>>>n&g,s=e&&u<e.array.length;if(!s&&void 0===i)return e;if(n>0){var l=e&&e.array[u],c=Rt(l,t,n-y,r,i,a);return c===l?e:((o=It(e,t)).array[u]=c,o)}return s&&e.array[u]===i?e:(S(a),o=It(e,t),void 0===i&&u===o.array.length-1?o.array.pop():o.array[u]=i,o)}function It(e,t){return t&&e&&t===e.ownerID?e:new Tt(e?e.array.slice():[],t)}function Lt(e,t){if(t>=Yt(e._capacity))return e._tail;if(t<1<<e._level+y){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&g],r-=y;return n}}function Ut(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new x,i=e._origin,a=e._capacity,o=i+t,u=void 0===n?a:n<0?a+n:i+n;if(o===i&&u===a)return e;if(o>=u)return e.clear();for(var s=e._level,l=e._root,c=0;o+c<0;)l=new Tt(l&&l.array.length?[void 0,l]:[],r),c+=1<<(s+=y);c&&(o+=c,i+=c,u+=c,a+=c);for(var f=Yt(a),d=Yt(u);d>=1<<s+y;)l=new Tt(l&&l.array.length?[l]:[],r),s+=y;var h=e._tail,p=d<f?Lt(e,u-1):d>f?new Tt([],r):h;if(h&&d>f&&o<a&&h.array.length){for(var v=l=It(l,r),m=s;m>y;m-=y){var b=f>>>m&g;v=v.array[b]=It(v.array[b],r)}v.array[f>>>y&g]=h}if(u<a&&(p=p&&p.removeAfter(r,0,u)),o>=d)o-=d,u-=d,s=y,l=null,p=p&&p.removeBefore(r,0,o);else if(o>i||d<f){for(c=0;l;){var _=o>>>s&g;if(_!==d>>>s&g)break;_&&(c+=(1<<s)*_),s-=y,l=l.array[_]}l&&o>i&&(l=l.removeBefore(r,s,o-c)),l&&d<f&&(l=l.removeAfter(r,s,d-c)),c&&(o-=c,u-=c)}return e.__ownerID?(e.size=u-o,e._origin=o,e._capacity=u,e._level=s,e._root=l,e._tail=p,e.__hash=void 0,e.__altered=!0,e):Nt(o,u,s,l,p)}function Ft(e,t,n){for(var r=[],a=0,u=0;u<n.length;u++){var s=n[u],l=i(s);l.size>a&&(a=l.size),o(s)||(l=l.map((function(e){return he(e)}))),r.push(l)}return a>e.size&&(e=e.setSize(a)),vt(e,t,r)}function Yt(e){return e<m?0:e-1>>>y<<y}function Bt(e){return null===e||void 0===e?qt():Ht(e)?e:qt().withMutations((function(t){var n=r(e);He(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ht(e){return qe(e)&&c(e)}function Wt(e,t,n,r){var i=Object.create(Bt.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i}function qt(){return Pt||(Pt=Wt(it(),At()))}function Vt(e,t,n){var r,i,a=e._map,o=e._list,u=a.get(t),s=void 0!==u;if(n===b){if(!s)return e;o.size>=m&&o.size>=2*a.size?(r=(i=o.filter((function(e,t){return void 0!==e&&u!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=a.remove(t),i=u===o.size-1?o.pop():o.set(u,void 0))}else if(s){if(n===o.get(u)[1])return e;r=a,i=o.set(u,[t,n])}else r=a.set(t,o.size),i=o.set(o.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Wt(r,i)}function Zt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Gt(e){this._iter=e,this.size=e.size}function $t(e){this._iter=e,this.size=e.size}function Kt(e){this._iter=e,this.size=e.size}function Xt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=_n,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===z){var r=e.__iterator(t,n);return new U((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===A?N:A,n)},t}function Jt(e,t,n){var r=bn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var a=e.get(r,b);return a===b?i:t.call(n,a,r,e)},r.__iterateUncached=function(r,i){var a=this;return e.__iterate((function(e,i,o){return!1!==r(t.call(n,e,i,o),i,a)}),i)},r.__iteratorUncached=function(r,i){var a=e.__iterator(z,i);return new U((function(){var i=a.next();if(i.done)return i;var o=i.value,u=o[0];return F(r,u,t.call(n,o[1],u,e),i)}))},r}function Qt(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Xt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=_n,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var i=bn(e);return r&&(i.has=function(r){var i=e.get(r,b);return i!==b&&!!t.call(n,i,r,e)},i.get=function(r,i){var a=e.get(r,b);return a!==b&&t.call(n,a,r,e)?a:i}),i.__iterateUncached=function(i,a){var o=this,u=0;return e.__iterate((function(e,a,s){if(t.call(n,e,a,s))return u++,i(e,r?a:u-1,o)}),a),u},i.__iteratorUncached=function(i,a){var o=e.__iterator(z,a),u=0;return new U((function(){for(;;){var a=o.next();if(a.done)return a;var s=a.value,l=s[0],c=s[1];if(t.call(n,c,l,e))return F(i,r?l:u++,c,a)}}))},i}function tn(e,t,n){var r=We().asMutable();return e.__iterate((function(i,a){r.update(t.call(n,i,a,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=u(e),i=(c(e)?Bt():We()).asMutable();e.__iterate((function(a,o){i.update(t.call(n,a,o,e),(function(e){return(e=e||[]).push(r?[o,a]:a),e}))}));var a=gn(e);return i.map((function(t){return vn(e,a(t))}))}function rn(e,t,n,r){var i=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=i:n|=0),C(t,n,i))return e;var a=P(t,i),o=D(n,i);if(a!==a||o!==o)return rn(e.toSeq().cacheResult(),t,n,r);var u,s=o-a;s===s&&(u=s<0?0:s);var l=bn(e);return l.size=0===u?u:e.size&&u||void 0,!r&&ae(e)&&u>=0&&(l.get=function(t,n){return(t=E(this,t))>=0&&t<u?e.get(t+a,n):n}),l.__iterateUncached=function(t,n){var i=this;if(0===u)return 0;if(n)return this.cacheResult().__iterate(t,n);var o=0,s=!0,l=0;return e.__iterate((function(e,n){if(!s||!(s=o++<a))return l++,!1!==t(e,r?n:l-1,i)&&l!==u})),l},l.__iteratorUncached=function(t,n){if(0!==u&&n)return this.cacheResult().__iterator(t,n);var i=0!==u&&e.__iterator(t,n),o=0,s=0;return new U((function(){for(;o++<a;)i.next();if(++s>u)return Y();var e=i.next();return r||t===A?e:F(t,s-1,t===N?void 0:e.value[1],e)}))},l}function an(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterate(r,i);var o=0;return e.__iterate((function(e,i,u){return t.call(n,e,i,u)&&++o&&r(e,i,a)})),o},r.__iteratorUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(z,i),u=!0;return new U((function(){if(!u)return Y();var e=o.next();if(e.done)return e;var i=e.value,s=i[0],l=i[1];return t.call(n,l,s,a)?r===z?e:F(r,s,l,e):(u=!1,Y())}))},r}function on(e,t,n,r){var i=bn(e);return i.__iterateUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterate(i,a);var u=!0,s=0;return e.__iterate((function(e,a,l){if(!u||!(u=t.call(n,e,a,l)))return s++,i(e,r?a:s-1,o)})),s},i.__iteratorUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterator(i,a);var u=e.__iterator(z,a),s=!0,l=0;return new U((function(){var e,a,c;do{if((e=u.next()).done)return r||i===A?e:F(i,l++,i===N?void 0:e.value[1],e);var f=e.value;a=f[0],c=f[1],s&&(s=t.call(n,c,a,o))}while(s);return i===z?e:F(i,a,c,e)}))},i}function un(e,t){var n=u(e),i=[e].concat(t).map((function(e){return o(e)?n&&(e=r(e)):e=n?ue(e):se(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===i.length)return e;if(1===i.length){var a=i[0];if(a===e||n&&u(a)||s(e)&&s(a))return a}var l=new te(i);return n?l=l.toKeyedSeq():s(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=i.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),l}function sn(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,i){var a=0,u=!1;function s(e,l){var c=this;e.__iterate((function(e,i){return(!t||l<t)&&o(e)?s(e,l+1):!1===r(e,n?i:a++,c)&&(u=!0),!u}),i)}return s(e,0),a},r.__iteratorUncached=function(r,i){var a=e.__iterator(r,i),u=[],s=0;return new U((function(){for(;a;){var e=a.next();if(!1===e.done){var l=e.value;if(r===z&&(l=l[1]),t&&!(u.length<t)||!o(l))return n?e:F(r,s++,l,e);u.push(a),a=l.__iterator(r,i)}else a=u.pop()}return Y()}))},r}function ln(e,t,n){var r=gn(e);return e.toSeq().map((function(i,a){return r(t.call(n,i,a,e))})).flatten(!0)}function cn(e,t){var n=bn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var i=this,a=0;return e.__iterate((function(e,r){return(!a||!1!==n(t,a++,i))&&!1!==n(e,a++,i)}),r),a},n.__iteratorUncached=function(n,r){var i,a=e.__iterator(A,r),o=0;return new U((function(){return(!i||o%2)&&(i=a.next()).done?i:o%2?F(n,o++,t):F(n,o++,i.value,i)}))},n}function fn(e,t,n){t||(t=wn);var r=u(e),i=0,a=e.toSeq().map((function(t,r){return[r,t,i++,n?n(t,r,e):t]})).toArray();return a.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),r?G(a):s(e)?$(a):K(a)}function dn(e,t,n){if(t||(t=wn),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return hn(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return hn(t,e,n)?n:e}))}function hn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(void 0===n||null===n||n!==n)||r>0}function pn(e,t,r){var i=bn(e);return i.size=new te(r).map((function(e){return e.size})).min(),i.__iterate=function(e,t){for(var n,r=this.__iterator(A,t),i=0;!(n=r.next()).done&&!1!==e(n.value,i++,this););return i},i.__iteratorUncached=function(e,i){var a=r.map((function(e){return e=n(e),W(i?e.reverse():e)})),o=0,u=!1;return new U((function(){var n;return u||(n=a.map((function(e){return e.next()})),u=n.some((function(e){return e.done}))),u?Y():F(e,o++,t.apply(null,n.map((function(e){return e.value}))))}))},i}function vn(e,t){return ae(e)?t:e.constructor(t)}function yn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function mn(e){return He(e.size),M(e)}function gn(e){return u(e)?r:s(e)?i:a}function bn(e){return Object.create((u(e)?G:s(e)?$:K).prototype)}function _n(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Z.prototype.cacheResult.call(this)}function wn(e,t){return e>t?1:e<t?-1:0}function kn(e){var t=W(e);if(!t){if(!V(e))throw new TypeError("Expected iterable or array-like: "+e);t=W(n(e))}return t}function Sn(e,t){var n,r=function(a){if(a instanceof r)return a;if(!(this instanceof r))return new r(a);if(!n){n=!0;var o=Object.keys(e);En(i,o),i.size=o.length,i._name=t,i._keys=o,i._defaultValues=e}this._map=We(a)},i=r.prototype=Object.create(xn);return i.constructor=r,r}t(Bt,We),Bt.of=function(){return this(arguments)},Bt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Bt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Bt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):qt()},Bt.prototype.set=function(e,t){return Vt(this,e,t)},Bt.prototype.remove=function(e){return Vt(this,e,b)},Bt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Bt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Bt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Bt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Wt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Bt.isOrderedMap=Ht,Bt.prototype[p]=!0,Bt.prototype[v]=Bt.prototype.remove,t(Zt,G),Zt.prototype.get=function(e,t){return this._iter.get(e,t)},Zt.prototype.has=function(e){return this._iter.has(e)},Zt.prototype.valueSeq=function(){return this._iter.valueSeq()},Zt.prototype.reverse=function(){var e=this,t=Qt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Zt.prototype.map=function(e,t){var n=this,r=Jt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Zt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?mn(this):0,function(i){return e(i,t?--n:n++,r)}),t)},Zt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(A,t),r=t?mn(this):0;return new U((function(){var i=n.next();return i.done?i:F(e,t?--r:r++,i.value,i)}))},Zt.prototype[p]=!0,t(Gt,$),Gt.prototype.includes=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Gt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(A,t),r=0;return new U((function(){var t=n.next();return t.done?t:F(e,r++,t.value,t)}))},t($t,K),$t.prototype.has=function(e){return this._iter.includes(e)},$t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},$t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(A,t);return new U((function(){var t=n.next();return t.done?t:F(e,t.value,t.value,t)}))},t(Kt,G),Kt.prototype.entrySeq=function(){return this._iter.toSeq()},Kt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){yn(t);var r=o(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Kt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(A,t);return new U((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){yn(r);var i=o(r);return F(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}}))},Gt.prototype.cacheResult=Zt.prototype.cacheResult=$t.prototype.cacheResult=Kt.prototype.cacheResult=_n,t(Sn,Se),Sn.prototype.toString=function(){return this.__toString(Mn(this)+" {","}")},Sn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Sn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Sn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=On(this,it()))},Sn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+Mn(this));if(this._map&&!this._map.has(e)&&t===this._defaultValues[e])return this;var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:On(this,n)},Sn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:On(this,t)},Sn.prototype.wasAltered=function(){return this._map.wasAltered()},Sn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},Sn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},Sn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?On(this,t,e):(this.__ownerID=e,this._map=t,this)};var xn=Sn.prototype;function On(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function Mn(e){return e._name||e.constructor.name||"Record"}function En(e,t){try{t.forEach(Tn.bind(void 0,e))}catch(n){}}function Tn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){_e(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function Cn(e){return null===e||void 0===e?Rn():Pn(e)&&!c(e)?e:Rn().withMutations((function(t){var n=a(e);He(n.size),n.forEach((function(e){return t.add(e)}))}))}function Pn(e){return!(!e||!e[jn])}xn[v]=xn.remove,xn.deleteIn=xn.removeIn=Ge.removeIn,xn.merge=Ge.merge,xn.mergeWith=Ge.mergeWith,xn.mergeIn=Ge.mergeIn,xn.mergeDeep=Ge.mergeDeep,xn.mergeDeepWith=Ge.mergeDeepWith,xn.mergeDeepIn=Ge.mergeDeepIn,xn.setIn=Ge.setIn,xn.update=Ge.update,xn.updateIn=Ge.updateIn,xn.withMutations=Ge.withMutations,xn.asMutable=Ge.asMutable,xn.asImmutable=Ge.asImmutable,t(Cn,Oe),Cn.of=function(){return this(arguments)},Cn.fromKeys=function(e){return this(r(e).keySeq())},Cn.prototype.toString=function(){return this.__toString("Set {","}")},Cn.prototype.has=function(e){return this._map.has(e)},Cn.prototype.add=function(e){return An(this,this._map.set(e,!0))},Cn.prototype.remove=function(e){return An(this,this._map.remove(e))},Cn.prototype.clear=function(){return An(this,this._map.clear())},Cn.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)a(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},Cn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return a(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},Cn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return a(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},Cn.prototype.merge=function(){return this.union.apply(this,arguments)},Cn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},Cn.prototype.sort=function(e){return In(fn(this,e))},Cn.prototype.sortBy=function(e,t){return In(fn(this,t,e))},Cn.prototype.wasAltered=function(){return this._map.wasAltered()},Cn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},Cn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},Cn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},Cn.isSet=Pn;var Dn,jn="@@__IMMUTABLE_SET__@@",Nn=Cn.prototype;function An(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function zn(e,t){var n=Object.create(Nn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Rn(){return Dn||(Dn=zn(it()))}function In(e){return null===e||void 0===e?Bn():Ln(e)?e:Bn().withMutations((function(t){var n=a(e);He(n.size),n.forEach((function(e){return t.add(e)}))}))}function Ln(e){return Pn(e)&&c(e)}Nn[jn]=!0,Nn[v]=Nn.remove,Nn.mergeDeep=Nn.merge,Nn.mergeDeepWith=Nn.mergeWith,Nn.withMutations=Ge.withMutations,Nn.asMutable=Ge.asMutable,Nn.asImmutable=Ge.asImmutable,Nn.__empty=Rn,Nn.__make=zn,t(In,Cn),In.of=function(){return this(arguments)},In.fromKeys=function(e){return this(r(e).keySeq())},In.prototype.toString=function(){return this.__toString("OrderedSet {","}")},In.isOrderedSet=Ln;var Un,Fn=In.prototype;function Yn(e,t){var n=Object.create(Fn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Bn(){return Un||(Un=Yn(qt()))}function Hn(e){return null===e||void 0===e?$n():Wn(e)?e:$n().unshiftAll(e)}function Wn(e){return!(!e||!e[Vn])}Fn[p]=!0,Fn.__empty=Bn,Fn.__make=Yn,t(Hn,xe),Hn.of=function(){return this(arguments)},Hn.prototype.toString=function(){return this.__toString("Stack [","]")},Hn.prototype.get=function(e,t){var n=this._head;for(e=E(this,e);n&&e--;)n=n.next;return n?n.value:t},Hn.prototype.peek=function(){return this._head&&this._head.value},Hn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Gn(e,t)},Hn.prototype.pushAll=function(e){if(0===(e=i(e)).size)return this;He(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Gn(t,n)},Hn.prototype.pop=function(){return this.slice(1)},Hn.prototype.unshift=function(){return this.push.apply(this,arguments)},Hn.prototype.unshiftAll=function(e){return this.pushAll(e)},Hn.prototype.shift=function(){return this.pop.apply(this,arguments)},Hn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):$n()},Hn.prototype.slice=function(e,t){if(C(e,t,this.size))return this;var n=P(e,this.size);if(D(t,this.size)!==this.size)return xe.prototype.slice.call(this,e,t);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):Gn(r,i)},Hn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Gn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Hn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Hn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new U((function(){if(r){var t=r.value;return r=r.next,F(e,n++,t)}return Y()}))},Hn.isStack=Wn;var qn,Vn="@@__IMMUTABLE_STACK__@@",Zn=Hn.prototype;function Gn(e,t,n,r){var i=Object.create(Zn);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function $n(){return qn||(qn=Gn(0))}function Kn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Zn[Vn]=!0,Zn.withMutations=Ge.withMutations,Zn.asMutable=Ge.asMutable,Zn.asImmutable=Ge.asImmutable,Zn.wasAltered=Ge.wasAltered,n.Iterator=U,Kn(n,{toArray:function(){He(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Gt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"===typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"===typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Zt(this,!0)},toMap:function(){return We(this.toKeyedSeq())},toObject:function(){He(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Bt(this.toKeyedSeq())},toOrderedSet:function(){return In(u(this)?this.valueSeq():this)},toSet:function(){return Cn(u(this)?this.valueSeq():this)},toSetSeq:function(){return new $t(this)},toSeq:function(){return s(this)?this.toIndexedSeq():u(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Hn(u(this)?this.valueSeq():this)},toList:function(){return xt(u(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return vn(this,un(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return me(t,e)}))},entries:function(){return this.__iterator(z)},every:function(e,t){He(this.size);var n=!0;return this.__iterate((function(r,i,a){if(!e.call(t,r,i,a))return n=!1,!1})),n},filter:function(e,t){return vn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return He(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){He(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""})),t},keys:function(){return this.__iterator(N)},map:function(e,t){return vn(this,Jt(this,e,t))},reduce:function(e,t,n){var r,i;return He(this.size),arguments.length<2?i=!0:r=t,this.__iterate((function(t,a,o){i?(i=!1,r=t):r=e.call(n,r,t,a,o)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return vn(this,Qt(this,!0))},slice:function(e,t){return vn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return vn(this,fn(this,e))},values:function(){return this.__iterator(A)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return M(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return ge(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,i,a){if(e.call(t,n,i,a))return r=[i,n],!1})),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(T)},flatMap:function(e,t){return vn(this,ln(this,e,t))},flatten:function(e){return vn(this,sn(this,e,!0))},fromEntrySeq:function(){return new Kt(this)},get:function(e,t){return this.find((function(t,n){return me(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,i=kn(e);!(n=i.next()).done;){var a=n.value;if((r=r&&r.get?r.get(a,b):b)===b)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"===typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"===typeof e.isSubset?e:n(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return me(t,e)}))},keySeq:function(){return this.toSeq().map(Qn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return dn(this,e)},maxBy:function(e,t){return dn(this,t,e)},min:function(e){return dn(this,e?nr(e):ar)},minBy:function(e,t){return dn(this,t?nr(t):ar,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return vn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return vn(this,on(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return vn(this,fn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return vn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return vn(this,an(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=or(this))}});var Xn=n.prototype;Xn[f]=!0,Xn[L]=Xn.values,Xn.__toJS=Xn.toArray,Xn.__toStringMapper=rr,Xn.inspect=Xn.toSource=function(){return this.toString()},Xn.chain=Xn.flatMap,Xn.contains=Xn.includes,Kn(r,{flip:function(){return vn(this,Xt(this))},mapEntries:function(e,t){var n=this,r=0;return vn(this,this.toSeq().map((function(i,a){return e.call(t,[a,i],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return vn(this,this.toSeq().flip().map((function(r,i){return e.call(t,r,i,n)})).flip())}});var Jn=r.prototype;function Qn(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"===typeof e?JSON.stringify(e):String(e)}function ir(){return O(arguments)}function ar(e,t){return e<t?1:e>t?-1:0}function or(e){if(e.size===1/0)return 0;var t=c(e),n=u(e),r=t?1:0;return ur(e.__iterate(n?t?function(e,t){r=31*r+sr(Te(e),Te(t))|0}:function(e,t){r=r+sr(Te(e),Te(t))|0}:t?function(e){r=31*r+Te(e)|0}:function(e){r=r+Te(e)|0}),r)}function ur(e,t){return t=Me(t,3432918353),t=Me(t<<15|t>>>-15,461845907),t=Me(t<<13|t>>>-13,5),t=Me((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Ee((t=Me(t^t>>>13,3266489909))^t>>>16)}function sr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Jn[d]=!0,Jn[L]=Xn.entries,Jn.__toJS=Xn.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Kn(i,{toKeyedSeq:function(){return new Zt(this,!1)},filter:function(e,t){return vn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return vn(this,Qt(this,!1))},slice:function(e,t){return vn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=P(e,e<0?this.count():this.size);var r=this.slice(0,e);return vn(this,1===n?r:r.concat(O(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return vn(this,sn(this,e,!1))},get:function(e,t){return(e=E(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=E(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return vn(this,cn(this,e))},interleave:function(){var e=[this].concat(O(arguments)),t=pn(this.toSeq(),$.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),vn(this,n)},keySeq:function(){return we(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(e,t){return vn(this,on(this,e,t,!1))},zip:function(){return vn(this,pn(this,ir,[this].concat(O(arguments))))},zipWith:function(e){var t=O(arguments);return t[0]=this,vn(this,pn(this,e,t))}}),i.prototype[h]=!0,i.prototype[p]=!0,Kn(a,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),a.prototype.has=Xn.includes,a.prototype.contains=a.prototype.includes,Kn(G,r.prototype),Kn($,i.prototype),Kn(K,a.prototype),Kn(Se,r.prototype),Kn(xe,i.prototype),Kn(Oe,a.prototype),{Iterable:n,Seq:Z,Collection:ke,Map:We,OrderedMap:Bt,List:xt,Stack:Hn,Set:Cn,OrderedSet:In,Record:Sn,Range:we,Repeat:be,is:me,fromJS:he}}()},function(e,t,n){"use strict";var r=n(6),i=n(7),a=n(67),o=n(43),u=n(13),s=n(14),l=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=l(n(111)),f=n(19);function d(e,t){return t.push(e),(0,f.isPipeline)(e.prev())?(t.push(e.prev().in()),t):d(e.prev(),t)}var h=function(e){u(n,e);var t=s(n);function n(e,i){var a;return r(this,n),a=t.call(this),(0,f.isPipeline)(e)&&(a._pipeline=e,a._prev=i.prev),a}return i(n,[{key:"prev",value:function(){return this._prev}},{key:"pipeline",value:function(){return this._pipeline}},{key:"chain",value:function(){var e=[this];return(0,f.isPipeline)(this.prev())?(e.push(this.prev().in()),e):d(this.prev(),e)}},{key:"flush",value:function(){a(o(n.prototype),"flush",this).call(this)}}]),n}(c.default);t.default=h},function(e,t,n){"use strict";t.a=function(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}},function(e,t,n){"use strict";var r=n(142),i=n(65),a=n(86),o=n(53),u=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=u(n(1)),l=u(n(20)),c=u(n(54)),f=u(n(55)),d=u(n(39)),h={s:{label:"seconds",length:1},m:{label:"minutes",length:60},h:{label:"hours",length:3600},d:{label:"days",length:86400}},p={leftPad:function(e){return"".concat(e<10?"0":"").concat(e)},windowDuration:function(e){var t=/([0-9]+)([smhd])/.exec(e);if(t&&t.length>=3){var n=parseInt(t[1],10),r=t[2];return n*h[r].length*1e3}},windowPositionFromDate:function(e,t){var n=this.windowDuration(e),r=c.default.utc(t).valueOf();return parseInt(r/=n,10)},rangeFromIndexString:function(e,t){var n,r,i=!!s.default.isUndefined(t)||t,a=e.split("-");switch(a.length){case 3:if(!s.default.isNaN(parseInt(a[0],10))&&!s.default.isNaN(parseInt(a[1],10))&&!s.default.isNaN(parseInt(a[2],10))){var o=parseInt(a[0],10),u=parseInt(a[1],10),l=parseInt(a[2],10);n=i?c.default.utc([o,u-1,l]):(0,c.default)([o,u-1,l]),r=i?c.default.utc(n).endOf("day"):(0,c.default)(n).endOf("day")}break;case 2:var d=/([0-9]+)([smhd])/.exec(a[0]);if(d&&d.length>=3&&!s.default.isNaN(parseInt(a[1],10))){var p=parseInt(a[1],10),v=parseInt(d[1],10),y=d[2],m=v*h[y].length*1e3;n=i?c.default.utc(p*m):(0,c.default)(p*m),r=i?c.default.utc((p+1)*m):(0,c.default)((p+1)*m)}else if(!s.default.isNaN(parseInt(a[0],10))&&!s.default.isNaN(parseInt(a[1],10))){var g=parseInt(a[0],10),b=parseInt(a[1],10);n=i?c.default.utc([g,b-1]):(0,c.default)([g,b-1]),r=i?c.default.utc(n).endOf("month"):(0,c.default)(n).endOf("month")}break;case 1:var _=a[0];n=i?c.default.utc([_]):(0,c.default)([_]),r=i?c.default.utc(n).endOf("year"):(0,c.default)(n).endOf("year")}return n&&n.isValid()&&r&&r.isValid()?new f.default(n,r):void 0},niceIndexString:function(e,t){var n,r=e.split("-");switch(r.length){case 3:if(!s.default.isNaN(parseInt(r[0],10))&&!s.default.isNaN(parseInt(r[1],10))&&!s.default.isNaN(parseInt(r[2],10))){var i=parseInt(r[0],10),a=parseInt(r[1],10),o=parseInt(r[2],10);return n=c.default.utc([i,a-1,o]),t?n.format(t):n.format("MMMM Do YYYY")}break;case 2:var u=/([0-9]+)([smhd])/.exec(r[0]);if(u&&u.length>=3&&!s.default.isNaN(parseInt(r[1],10)))return e;if(!s.default.isNaN(parseInt(r[0],10))&&!s.default.isNaN(parseInt(r[1],10))){var l=parseInt(r[0],10),f=parseInt(r[1],10);return n=c.default.utc([l,f-1]),t?n.format(t):n.format("MMMM")}break;case 1:var d=r[0];return n=c.default.utc([d]),t?n.format(t):n.format("YYYY")}return e},isMissing:function(e){return s.default.isNull(e)||s.default.isUndefined(e)||s.default.isNaN(e)},fieldPathToArray:function(e){return s.default.isArray(e)||s.default.isFunction(e)?e:s.default.isString(e)?e.split("."):s.default.isUndefined(e)?["value"]:void 0},generatePaths:function(e){var t=i.mark(r),n=[];function r(e){var n,u,l,c,f,d,h,p=arguments;return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=p.length>1&&void 0!==p[1]?p[1]:[],!s.default.isObject(e)){t.next=27;break}u=0,l=Object.keys(e);case 3:if(!(u<l.length)){t.next=25;break}c=l[u],f=o(r(e[c],[].concat(a(n),[c]))),t.prev=6,f.s();case 8:if((d=f.n()).done){t.next=14;break}return h=d.value,t.next=12,h;case 12:t.next=8;break;case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(6),f.e(t.t0);case 19:return t.prev=19,f.f(),t.finish(19);case 22:u++,t.next=3;break;case 25:t.next=29;break;case 27:return t.next=29,n;case 29:case"end":return t.stop()}}),t,null,[[6,16,19,22]])}var u,l=o(r(e));try{for(l.s();!(u=l.n()).done;){var c=u.value;n.push(c)}}catch(f){l.e(f)}finally{l.f()}return n},timestampFromArg:function(e){if(s.default.isNumber(e))return new Date(e);if(s.default.isString(e))return new Date(+e);if(s.default.isDate(e))return new Date(e.getTime());if(c.default.isMoment(e))return new Date(e.valueOf());throw new Error("Unable to get timestamp from ".concat(e,". Should be a number, date, or moment."))},timeRangeFromArg:function(e){if(e instanceof f.default)return e;if(s.default.isString(e)){var t=e.split(","),n=r(t,2),i=n[0],a=n[1];return new f.default([+i,+a])}if(s.default.isArray(e)&&2===e.length)return new f.default(e);throw new Error("Unable to parse timerange. Should be a TimeRange. Got ".concat(e,"."))},indexFromArgs:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(s.default.isString(e))return new d.default(e,t);if(e instanceof d.default)return e;throw new Error("Unable to get index from ".concat(e,". Should be a string or Index."))},dataFromArg:function(e){var t;if(s.default.isObject(e))t=new l.default.fromJS(e);else if(t instanceof l.default.Map)t=e;else{if(!s.default.isNumber(e)&&!s.default.isString(e))throw new Error("Unable to interpret event data from ".concat(e,"."));t=new l.default.Map({value:e})}return t}};t.default=p},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return u})),n.d(t,"a",(function(){return l}));var r,i,a,o,u,s=n(74);function l(e){return r=Object(s.a)(e),i=r.format,a=r.parse,o=r.utcFormat,u=r.utcParse,r}l({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"]})},function(e,t,n){"use strict";var r=n(28);t.a=function(e){return(e=Object(r.b)(Math.abs(e)))?e[1]:NaN}},function(e,t,n){"use strict";n.d(t,"c",(function(){return G})),n.d(t,"a",(function(){return $}));var r=n(47),i=n(76),a=n(75),o=function(e){return new Array(e.length)};function u(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}u.prototype={constructor:u,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function s(e,t,n,r,i,a){for(var o,s=0,l=t.length,c=a.length;s<c;++s)(o=t[s])?(o.__data__=a[s],r[s]=o):n[s]=new u(e,a[s]);for(;s<l;++s)(o=t[s])&&(i[s]=o)}function l(e,t,n,r,i,a,o){var s,l,c,f={},d=t.length,h=a.length,p=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(p[s]=c="$"+o.call(l,l.__data__,s,t),c in f?i[s]=l:f[c]=l);for(s=0;s<h;++s)(l=f[c="$"+o.call(e,a[s],s,a)])?(r[s]=l,l.__data__=a[s],f[c]=null):n[s]=new u(e,a[s]);for(s=0;s<d;++s)(l=t[s])&&f[p[s]]===l&&(i[s]=l)}function c(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}var f=n(46);function d(e){return function(){this.removeAttribute(e)}}function h(e){return function(){this.removeAttributeNS(e.space,e.local)}}function p(e,t){return function(){this.setAttribute(e,t)}}function v(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function y(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function m(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}var g=n(77);function b(e){return function(){delete this[e]}}function _(e,t){return function(){this[e]=t}}function w(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function k(e){return e.trim().split(/^|\s+/)}function S(e){return e.classList||new x(e)}function x(e){this._node=e,this._names=k(e.getAttribute("class")||"")}function O(e,t){for(var n=S(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function M(e,t){for(var n=S(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function E(e){return function(){O(this,e)}}function T(e){return function(){M(this,e)}}function C(e,t){return function(){(t.apply(this,arguments)?O:M)(this,e)}}x.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function P(){this.textContent=""}function D(e){return function(){this.textContent=e}}function j(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function N(){this.innerHTML=""}function A(e){return function(){this.innerHTML=e}}function z(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function R(){this.nextSibling&&this.parentNode.appendChild(this)}function I(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var L=n(34);function U(){return null}function F(){var e=this.parentNode;e&&e.removeChild(this)}function Y(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function B(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}var H=n(42),W=n(48);function q(e,t,n){var r=Object(W.a)(e),i=r.CustomEvent;"function"===typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function V(e,t){return function(){return q(this,e,t)}}function Z(e,t){return function(){return q(this,e,t.apply(this,arguments))}}var G=[null];function $(e,t){this._groups=e,this._parents=t}function K(){return new $([[document.documentElement]],G)}$.prototype=K.prototype={constructor:$,select:function(e){"function"!==typeof e&&(e=Object(r.a)(e));for(var t=this._groups,n=t.length,i=new Array(n),a=0;a<n;++a)for(var o,u,s=t[a],l=s.length,c=i[a]=new Array(l),f=0;f<l;++f)(o=s[f])&&(u=e.call(o,o.__data__,f,s))&&("__data__"in o&&(u.__data__=o.__data__),c[f]=u);return new $(i,this._parents)},selectAll:function(e){"function"!==typeof e&&(e=Object(i.a)(e));for(var t=this._groups,n=t.length,r=[],a=[],o=0;o<n;++o)for(var u,s=t[o],l=s.length,c=0;c<l;++c)(u=s[c])&&(r.push(e.call(u,u.__data__,c,s)),a.push(u));return new $(r,a)},filter:function(e){"function"!==typeof e&&(e=Object(a.a)(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,u=t[i],s=u.length,l=r[i]=[],c=0;c<s;++c)(o=u[c])&&e.call(o,o.__data__,c,u)&&l.push(o);return new $(r,this._parents)},data:function(e,t){if(!e)return y=new Array(this.size()),d=-1,this.each((function(e){y[++d]=e})),y;var n,r=t?l:s,i=this._parents,a=this._groups;"function"!==typeof e&&(n=e,e=function(){return n});for(var o=a.length,u=new Array(o),c=new Array(o),f=new Array(o),d=0;d<o;++d){var h=i[d],p=a[d],v=p.length,y=e.call(h,h&&h.__data__,d,i),m=y.length,g=c[d]=new Array(m),b=u[d]=new Array(m);r(h,p,g,b,f[d]=new Array(v),y,t);for(var _,w,k=0,S=0;k<m;++k)if(_=g[k]){for(k>=S&&(S=k+1);!(w=b[S])&&++S<m;);_._next=w||null}}return(u=new $(u,i))._enter=c,u._exit=f,u},enter:function(){return new $(this._enter||this._groups.map(o),this._parents)},exit:function(){return new $(this._exit||this._groups.map(o),this._parents)},join:function(e,t,n){var r=this.enter(),i=this,a=this.exit();return r="function"===typeof e?e(r):r.append(e+""),null!=t&&(i=t(i)),null==n?a.remove():n(a),r&&i?r.merge(i).order():i},merge:function(e){for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=new Array(r),u=0;u<a;++u)for(var s,l=t[u],c=n[u],f=l.length,d=o[u]=new Array(f),h=0;h<f;++h)(s=l[h]||c[h])&&(d[h]=s);for(;u<r;++u)o[u]=t[u];return new $(o,this._parents)},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=c);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o,u=n[a],s=u.length,l=i[a]=new Array(s),f=0;f<s;++f)(o=u[f])&&(l[f]=o);l.sort(t)}return new $(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){var e=new Array(this.size()),t=-1;return this.each((function(){e[++t]=this})),e},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null},size:function(){var e=0;return this.each((function(){++e})),e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,a=t[n],o=0,u=a.length;o<u;++o)(i=a[o])&&e.call(i,i.__data__,o,a);return this},attr:function(e,t){var n=Object(f.a)(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?h:d:"function"===typeof t?n.local?m:y:n.local?v:p)(n,t))},style:g.a,property:function(e,t){return arguments.length>1?this.each((null==t?b:"function"===typeof t?w:_)(e,t)):this.node()[e]},classed:function(e,t){var n=k(e+"");if(arguments.length<2){for(var r=S(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof t?C:t?E:T)(n,t))},text:function(e){return arguments.length?this.each(null==e?P:("function"===typeof e?j:D)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?N:("function"===typeof e?z:A)(e)):this.node().innerHTML},raise:function(){return this.each(R)},lower:function(){return this.each(I)},append:function(e){var t="function"===typeof e?e:Object(L.a)(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"===typeof e?e:Object(L.a)(e),i=null==t?U:"function"===typeof t?t:Object(r.a)(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(F)},clone:function(e){return this.select(e?B:Y)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:H.b,dispatch:function(e,t){return this.each(("function"===typeof t?Z:V)(e,t))}};t.b=K},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scaleAsString=function(e){return e.domain()+"-"+e.range()},t.getElementOffset=function(e){var t=document.documentElement,n=e.getBoundingClientRect(),r=n.top+window.pageYOffset-t.clientTop,i=n.left+window.pageXOffset-t.clientLeft;return{top:r,left:i}}},function(e,t,n){"use strict";function r(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}n.d(t,"b",(function(){return r})),t.a=function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}},function(e,t,n){"use strict";function r(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}n.d(t,"b",(function(){return r})),t.a=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e}},function(e,t,n){"use strict";n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return u}));var r=n(49);function i(e,t){return function(n){return e+n*t}}function a(e,t){var n=t-e;return n?i(e,n>180||n<-180?n-360*Math.round(n/360):n):Object(r.a)(isNaN(e)?t:e)}function o(e){return 1===(e=+e)?u:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Object(r.a)(isNaN(t)?n:t)}}function u(e,t){var n=t-e;return n?i(e,n):Object(r.a)(isNaN(e)?t:e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"e",(function(){return _})),n.d(t,"g",(function(){return S})),n.d(t,"f",(function(){return x})),n.d(t,"b",(function(){return O}));var r=n(29);function i(){}var a=.7,o=1/a,u="\\s*([+-]?\\d+)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,f=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),d=new RegExp("^rgb\\("+[l,l,l]+"\\)$"),h=new RegExp("^rgba\\("+[u,u,u,s]+"\\)$"),p=new RegExp("^rgba\\("+[l,l,l,s]+"\\)$"),v=new RegExp("^hsl\\("+[s,l,l]+"\\)$"),y=new RegExp("^hsla\\("+[s,l,l,s]+"\\)$"),m={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function g(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function _(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=c.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?w(t):3===n?new O(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?k(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?k(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=f.exec(e))?new O(t[1],t[2],t[3],1):(t=d.exec(e))?new O(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=h.exec(e))?k(t[1],t[2],t[3],t[4]):(t=p.exec(e))?k(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=v.exec(e))?C(t[1],t[2]/100,t[3]/100,1):(t=y.exec(e))?C(t[1],t[2]/100,t[3]/100,t[4]):m.hasOwnProperty(e)?w(m[e]):"transparent"===e?new O(NaN,NaN,NaN,0):null}function w(e){return new O(e>>16&255,e>>8&255,255&e,1)}function k(e,t,n,r){return r<=0&&(e=t=n=NaN),new O(e,t,n,r)}function S(e){return e instanceof i||(e=_(e)),e?new O((e=e.rgb()).r,e.g,e.b,e.opacity):new O}function x(e,t,n,r){return 1===arguments.length?S(e):new O(e,t,n,null==r?1:r)}function O(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function M(){return"#"+T(this.r)+T(this.g)+T(this.b)}function E(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"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===e?")":", "+e+")")}function T(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function C(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new D(e,t,n,r)}function P(e){if(e instanceof D)return new D(e.h,e.s,e.l,e.opacity);if(e instanceof i||(e=_(e)),!e)return new D;if(e instanceof D)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),o=Math.max(t,n,r),u=NaN,s=o-a,l=(o+a)/2;return s?(u=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+a:2-o-a,u*=60):s=l>0&&l<1?0:u,new D(u,s,l,e.opacity)}function D(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function j(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Object(r.a)(i,_,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:g,formatHex:g,formatHsl:function(){return P(this).formatHsl()},formatRgb:b,toString:b}),Object(r.a)(O,x,Object(r.b)(i,{brighter:function(e){return e=null==e?o:Math.pow(o,e),new O(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?a:Math.pow(a,e),new O(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:M,formatHex:M,formatRgb:E,toString:E})),Object(r.a)(D,(function(e,t,n,r){return 1===arguments.length?P(e):new D(e,t,n,null==r?1:r)}),Object(r.b)(i,{brighter:function(e){return e=null==e?o:Math.pow(o,e),new D(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?a:Math.pow(a,e),new D(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new O(j(e>=240?e-240:e+120,i,r),j(e,i,r),j(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}))},function(e,t,n){"use strict";var r=n(6),i=n(7),a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(1)),u=a(n(20)),s=a(n(23)),l=function(){function e(){if(r(this,e),"Event"===this.constructor.name)throw new TypeError("Cannot construct Event instances directly")}return i(e,[{key:"toString",value:function(){if(void 0===this.toJSON)throw new TypeError("Must implement toJSON()");return JSON.stringify(this.toJSON())}},{key:"type",value:function(){return this.constructor}},{key:"setData",value:function(e){return new(this.type())(this._d.set("data",s.default.dataFromArg(e)))}},{key:"data",value:function(){return this._d.get("data")}},{key:"get",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["value"];if(o.default.isArray(t))e=this.data().getIn(t);else if(o.default.isString(t)){var n=t.split(".");e=this.data().getIn(n)}return e instanceof u.default.Map||e instanceof u.default.List?e.toJS():e}},{key:"value",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["value"];return this.get(e)}},{key:"collapse",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=i?this.data().toJS():{},o=e.map((function(e){return r.get(e)}));return a[t]=n(o),this.setData(a)}}],[{key:"is",value:function(e,t){return e.key()===t.key()&&u.default.is(e._d.get("data"),t._d.get("data"))}},{key:"isDuplicate",value:function(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return r?t.type()===n.type()&&t.key()===n.key():t.type()===n.type()&&e.is(t,n)}},{key:"isValidValue",value:function(e,t){var n=e.value(t);return!(o.default.isUndefined(n)||o.default.isNaN(n)||o.default.isNull(n))}},{key:"selector",value:function(e,t){var n={};if(o.default.isString(t)){var r=t,i=e.get(r);n[r]=i}else{if(!o.default.isArray(t))return e;o.default.each(t,(function(t){var r=e.get(t);n[t]=r}))}return e.setData(n)}},{key:"merge",value:function(e,t){if(e instanceof u.default.List&&0===e.size||o.default.isArray(e)&&0===e.length)return[];var n={},r={};e.forEach((function(e){var t=e.type(),i=e.key();if(o.default.has(n,i)||(n[i]=[]),n[i].push(e),o.default.has(r,i)){if(r[i]!==t)throw new Error("Events for time ".concat(i," are not homogeneous"))}else r[i]=t}));var i=[];return o.default.each(n,(function(e,n){var a=u.default.Map();e.forEach((function(e){a=t?a.mergeDeep(e.data()):a.merge(e.data())}));var o=r[n];i.push(new o(n,a))})),e instanceof u.default.List?u.default.List(i):i}},{key:"combine",value:function(e,t,n){if(e instanceof u.default.List&&0===e.size||o.default.isArray(e)&&0===e.length)return[];var r;o.default.isString(n)?r=[n]:o.default.isArray(n)&&(r=n);var i={},a={};e.forEach((function(e){var t=e.type(),n=e.key();if(o.default.has(i,n)||(i[n]=[]),i[n].push(e),o.default.has(a,n)){if(a[n]!==t)throw new Error("Events for time ".concat(n," are not homogeneous"))}else a[n]=t}));var s=[];return o.default.each(i,(function(e,n){var i={};e.forEach((function(e){var t=r;r||(t=o.default.map(e.data().toJSON(),(function(e,t){return t}))),t.forEach((function(t){i[t]||(i[t]=[]),i[t].push(e.data().get(t))}))}));var u={};o.default.map(i,(function(e,n){u[n]=t(e)}));var l=a[n];s.push(new l(n,u))})),e instanceof u.default.List?u.default.List(s):s}},{key:"combiner",value:function(t,n){return function(r){return e.combine(r,n,t)}}},{key:"merger",value:function(t){return function(n){return e.merge(n,t)}}},{key:"map",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",r={};if(e instanceof u.default.List)t=e;else{if(!o.default.isArray(e))throw new Error("Unknown event list type. Should be an array or Immutable List");t=new u.default.List(e)}if(o.default.isString(n)){var i=n;t.forEach((function(e){o.default.has(r,i)||(r[i]=[]);var t=e.get(i);r[i].push(t)}))}else o.default.isArray(n)?o.default.each(n,(function(e){t.forEach((function(t){o.default.has(r,e)||(r[e]=[]),r[e].push(t.get(e))}))})):o.default.isFunction(n)?t.forEach((function(e){var t=n(e);o.default.each(t,(function(e,t){o.default.has(r,t)||(r[t]=[]),r[t].push(e)}))})):t.forEach((function(e){o.default.each(e.data().toJSON(),(function(e,t){o.default.has(r,t)||(r[t]=[]),r[t].push(e)}))}));return r}},{key:"reduce",value:function(e,t){var n={};return o.default.each(e,(function(e,r){n[r]=t(e)})),n}},{key:"mapReduce",value:function(t,n,r){return e.reduce(this.map(t,n),r)}}]),e}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Styler=void 0;var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=function(e,t){return new c(e,t)};var a=u(n(1)),o=u(n(167));function u(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var c=t.Styler=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Paired";if(l(this,e),this.columnStyles={},a.default.isArray(t)&&t.forEach((function(e){if(a.default.isString(e))n.columnStyles[e]={key:e};else if(a.default.isObject(e)){var t=e.key,r=s(e,["key"]);n.columnStyles[t]=r}})),this.columnNames=a.default.map(t,(function(e){return a.default.isString(e)?e:e.key})),r&&!a.default.has(o.default,r))throw new Error("Unknown scheme '"+r+"' supplied to Style constructor");this.colorScheme=r}return i(e,[{key:"numColumns",value:function(){return this.columnNames.length}},{key:"colorLookup",value:function(e){var t=a.default.keys(o.default[this.colorScheme]),n=a.default.min(t),r=a.default.max(t),i=e>r?r:e;return i=a.default.max([i,n]),this.colorScheme?o.default[this.colorScheme][i]:[]}},{key:"legendStyle",value:function(e,t){var n=this.numColumns(),i=this.colorLookup(n),o=a.default.indexOf(this.columnNames,e),u=this.columnNames[o],s=this.columnStyles[u],l=s.color,c=s.width,f=void 0===c?1:c,d=s.dashed,h=void 0!==d&&d,p=l||i[o%i.length],v={};"swatch"===t||"dot"===t?v={fill:p,opacity:.9,stroke:p,cursor:"pointer"}:"line"===t&&(v={opacity:.9,stroke:p,strokeWidth:f,cursor:"pointer"},h&&(v.strokeDasharray="4,2"));var y={fontSize:"normal",color:"#333",paddingRight:10,cursor:"pointer"},m={fontSize:"smaller",color:"#999",cursor:"pointer"},g={symbol:{normal:r({},v,{opacity:.7}),highlighted:r({},v,{opacity:.8}),selected:r({},v,{opacity:.8}),muted:r({},v,{opacity:.2})},label:{normal:r({},y,{opacity:.7}),highlighted:r({},y,{opacity:.8}),selected:r({},y,{opacity:.8}),muted:r({},y,{opacity:.5})},value:{normal:r({},m,{opacity:.7}),highlighted:r({},m,{opacity:.8}),selected:r({},m,{opacity:.8}),muted:r({},m,{opacity:.5})}};return g}},{key:"areaChartStyle",value:function(){var e={},t=this.numColumns(),n=this.colorLookup(t),i=0;return a.default.forEach(this.columnStyles,(function(t,a){var o=t.color,u=t.selected,s=t.width,l=void 0===s?1:s,c=t.dashed,f=void 0!==c&&c,d=o||n[i%n.length],h={stroke:d,fill:"none",strokeWidth:l},p={stroke:u||o,fill:"none",strokeWidth:l};f&&(h.strokeDasharray="4,2");var v={fill:d,stroke:"none"},y={fill:u||o,stroke:"none"};e[a]={line:{normal:r({},h,{opacity:.9}),highlighted:r({},h,{opacity:1}),selected:r({},p,{opacity:1}),muted:r({},h,{opacity:.4})},area:{normal:r({},v,{opacity:.7}),highlighted:r({},v,{opacity:.8}),selected:r({},y,{opacity:.8}),muted:r({},v,{opacity:.2})}},i+=1})),e}},{key:"lineChartStyle",value:function(){var e=this,t=this.numColumns(),n=this.colorLookup(t),i={};return a.default.forEach(this.columnStyles,(function(t,o){var u=t.color,s=t.selected,l=t.width,c=void 0===l?1:l,f=t.dashed,d=void 0!==f&&f,h=a.default.indexOf(e.columnNames,o),p=u||n[h%n.length],v={stroke:p,strokeWidth:c,fill:"none"},y={stroke:s||p,strokeWidth:c,fill:"none"};d&&(v.strokeDasharray="4,2"),i[o]={normal:r({},v,{opacity:.8,strokeWidth:c}),highlighted:r({},v,{opacity:1,strokeWidth:c}),selected:r({},y,{opacity:1,strokeWidth:c}),muted:r({},v,{opacity:.2,strokeWidth:c})}})),i}},{key:"barChartStyle",value:function(){var e=this,t=this.numColumns(),n=this.colorLookup(t),i={};return a.default.forEach(this.columnStyles,(function(t,o){var u=t.color,s=t.selected,l=a.default.indexOf(e.columnNames,o),c=u||n[l%n.length],f={fill:c},d={fill:s||c};i[o]={normal:r({},f,{opacity:.8}),highlighted:r({},f,{opacity:1}),selected:r({},d,{opacity:1}),muted:r({},f,{opacity:.2})}})),i}},{key:"scatterChartStyle",value:function(){var e=this,t=this.numColumns(),n=this.colorLookup(t),i={};return a.default.forEach(this.columnStyles,(function(t,o){var u=t.color,s=t.selected,l=a.default.indexOf(e.columnNames,o),c=u||n[l%n.length],f={fill:c},d={fill:s||c};i[o]={normal:r({},f,{opacity:.8}),highlighted:r({},f,{opacity:1}),selected:r({},d,{opacity:1}),muted:r({},f,{opacity:.2})}})),i}},{key:"axisStyle",value:function(e){var t=this.numColumns(),n=this.colorLookup(t),r=a.default.indexOf(this.columnNames,e),i=this.columnNames[r];return{label:{fill:this.columnStyles[i].color||n[r%n.length]}}}},{key:"boxChartStyle",value:function(){var e={},t=this.numColumns(),n=this.colorLookup(t),i=0;return a.default.forEach(this.columnStyles,(function(t,a){var o=t.color,u=t.selected,s={fill:o||n[i%n.length],stroke:"none"},l={fill:u||o,stroke:"none"};e[a]=[{normal:r({},s,{opacity:.2}),highlighted:r({},s,{opacity:.3}),selected:r({},l,{opacity:.3}),muted:r({},s,{opacity:.1})},{normal:r({},s,{opacity:.5}),highlighted:r({},s,{opacity:.6}),selected:r({},l,{opacity:.6}),muted:r({},s,{opacity:.2})},{normal:r({},s,{opacity:.9}),highlighted:r({},s,{opacity:1}),selected:r({},l,{opacity:1}),muted:r({},s,{opacity:.2})}],i+=1})),e}}]),e}()},function(e,t,n){"use strict";var r=n(46),i=n(35);function a(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===i.b&&t.documentElement.namespaceURI===i.b?t.createElement(e):t.createElementNS(n,e)}}function o(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}t.a=function(e){var t=Object(r.a)(e);return(t.local?o:a)(t)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r}));var r="http://www.w3.org/1999/xhtml";t.a={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var r=n(3),i=Object(r.a)((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Object(r.a)((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},t.a=i;var a=i.range},function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var r=n(3),i=Object(r.a)((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));i.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Object(r.a)((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},t.a=i;var a=i.range},,function(e,t,n){"use strict";var r=n(6),i=n(7),a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(23)),u=function(){function e(t){r(this,e);var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._utc=n,this._string=t,this._timerange=o.default.rangeFromIndexString(t,this._utc)}return i(e,[{key:"toJSON",value:function(){return this._string}},{key:"toString",value:function(){return this._string}},{key:"toNiceString",value:function(e){return o.default.niceIndexString(this._string,e)}},{key:"asString",value:function(){return this.toString()}},{key:"asTimerange",value:function(){return this._timerange}},{key:"begin",value:function(){return this._timerange.begin()}},{key:"end",value:function(){return this._timerange.end()}}],[{key:"getIndexString",value:function(e,t){var n=o.default.windowPositionFromDate(e,t);return"".concat(e,"-").concat(n)}},{key:"getIndexStringList",value:function(e,t){var n=o.default.windowPositionFromDate(e,t.begin()),r=o.default.windowPositionFromDate(e,t.end()),i=[];if(n<=r)for(var a=n;a<=r;a++)i.push("".concat(e,"-").concat(a));return i}},{key:"getDailyIndexString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=o.default.leftPad(t?e.getUTCDate():e.getDate()),r=o.default.leftPad(t?e.getUTCMonth()+1:e.getMonth()+1),i=t?e.getUTCFullYear():e.getFullYear();return"".concat(i,"-").concat(r,"-").concat(n)}},{key:"getMonthlyIndexString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=o.default.leftPad(t?e.getUTCMonth()+1:e.getMonth()+1),r=t?e.getUTCFullYear():e.getFullYear();return"".concat(r,"-").concat(n)}},{key:"getYearlyIndexString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t?e.getUTCFullYear():e.getFullYear();return"".concat(n)}}]),e}();t.default=u},function(e,t,n){"use strict";var r=n(6),i=n(7),a=n(66),o=n(13),u=n(14),s=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;s(n(1));var l=s(n(20)),c=s(n(32)),f=s(n(23)),d=function(e){o(n,e);var t=u(n);function n(e,i){var o;if(r(this,n),o=t.call(this),e instanceof n){var u=e;return o._d=u._d,a(o)}if(e instanceof l.default.Map)return o._d=e,a(o);var s=f.default.timeRangeFromArg(e),c=f.default.dataFromArg(i);return o._d=new l.default.Map({range:s,data:c}),o}return i(n,[{key:"key",value:function(){return"".concat(+this.timerange().begin(),",").concat(+this.timerange().end())}},{key:"toJSON",value:function(){return{timerange:this.timerange().toJSON(),data:this.data().toJSON()}}},{key:"toPoint",value:function(e){var t=this,n=[];return e.forEach((function(e){var r=t.data().get(e);n.push("undefined"===r?null:r)})),[this.timerange().toJSON()].concat(n)}},{key:"timerange",value:function(){return this._d.get("range")}},{key:"timerangeAsUTCString",value:function(){return this.timerange().toUTCString()}},{key:"timerangeAsLocalString",value:function(){return this.timerange().toLocalString()}},{key:"begin",value:function(){return this.timerange().begin()}},{key:"end",value:function(){return this.timerange().end()}},{key:"timestamp",value:function(){return this.begin()}},{key:"humanizeDuration",value:function(){return this.timerange().humanizeDuration()}}]),n}(c.default);t.default=d},function(e,t,n){"use strict";var r=n(6),i=n(7),a=n(66),o=n(13),u=n(14),s=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;s(n(1));var l=s(n(20)),c=s(n(32)),f=s(n(23)),d=function(e){o(n,e);var t=u(n);function n(e,i,o){var u;if(r(this,n),u=t.call(this),e instanceof n){var s=e;return u._d=s._d,a(u)}if(e instanceof l.default.Map)return u._d=e,a(u);var c=f.default.indexFromArgs(e,o),d=f.default.dataFromArg(i);return u._d=new l.default.Map({index:c,data:d}),u}return i(n,[{key:"key",value:function(){return this.indexAsString()}},{key:"toJSON",value:function(){return{index:this.indexAsString(),data:this.data().toJSON()}}},{key:"toPoint",value:function(e){var t=this,n=[];return e.forEach((function(e){var r=t.data().get(e);n.push("undefined"===r?null:r)})),[this.indexAsString()].concat(n)}},{key:"index",value:function(){return this._d.get("index")}},{key:"indexAsString",value:function(){return this.index().asString()}},{key:"timerangeAsUTCString",value:function(){return this.timerange().toUTCString()}},{key:"timerangeAsLocalString",value:function(){return this.timerange().toLocalString()}},{key:"timerange",value:function(){return this.index().asTimerange()}},{key:"begin",value:function(){return this.timerange().begin()}},{key:"end",value:function(){return this.timerange().end()}},{key:"timestamp",value:function(){return this.begin()}}],[{key:"keySchema",value:function(){return{name:"index",type:"string"}}}]),n}(c.default);t.default=d},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return c}));var r={},i=null;"undefined"!==typeof document&&("onmouseenter"in document.documentElement||(r={mouseenter:"mouseover",mouseleave:"mouseout"}));function a(e,t,n){return e=o(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function o(e,t,n){return function(r){var a=i;i=r;try{e.call(this,this.__data__,t,n)}finally{i=a}}}function u(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function s(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,a=t.length;r<a;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?t.length=i:delete this.__on}}}function l(e,t,n){var i=r.hasOwnProperty(e.type)?a:o;return function(r,a,o){var u,s=this.__on,l=i(t,a,o);if(s)for(var c=0,f=s.length;c<f;++c)if((u=s[c]).type===e.type&&u.name===e.name)return this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=l,u.capture=n),void(u.value=t);this.addEventListener(e.type,l,n),u={type:e.type,name:e.name,value:t,listener:l,capture:n},s?s.push(u):this.__on=[u]}}function c(e,t,n,r){var a=i;e.sourceEvent=i,i=e;try{return t.apply(n,r)}finally{i=a}}t.b=function(e,t,n){var r,i,a=u(e+""),o=a.length;if(!(arguments.length<2)){for(c=t?l:s,null==n&&(n=!1),r=0;r<o;++r)this.each(c(a[r],t,n));return this}var c=this.node().__on;if(c)for(var f,d=0,h=c.length;d<h;++d)for(r=0,f=c[d];r<o;++r)if((i=a[r]).type===f.type&&i.name===f.name)return f.value}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(133)},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(e){if(!(t=r.exec(e)))throw new Error("invalid format: "+e);var t;return new a({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function a(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}i.prototype=a.prototype,a.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},function(e,t,n){"use strict";var r=n(35);t.a=function(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),r.a.hasOwnProperty(t)?{space:r.a[t],local:e}:e}},function(e,t,n){"use strict";function r(){}t.a=function(e){return null==e?r:function(){return this.querySelector(e)}}},function(e,t,n){"use strict";t.a=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}},function(e,t,n){"use strict";t.a=function(e){return function(){return e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YAxis=t.ValueList=t.ValueAxis=t.TimeRangeMarker=t.TimeMarker=t.TimeAxis=t.styler=t.ScatterChart=t.Resizable=t.MultiBrush=t.LineChart=t.Legend=t.LabelAxis=t.EventMarker=t.EventChart=t.Charts=t.ChartRow=t.ChartContainer=t.Brush=t.BoxChart=t.Baseline=t.BarChart=t.BandChart=t.AreaChart=void 0;var r=E(n(137)),i=E(n(168)),a=E(n(169)),o=E(n(170)),u=E(n(171)),s=E(n(92)),l=E(n(172)),c=E(n(123)),f=E(n(100)),d=E(n(177)),h=E(n(68)),p=E(n(178)),v=E(n(179)),y=E(n(180)),m=E(n(99)),g=E(n(181)),b=E(n(182)),_=E(n(33)),w=E(n(126)),k=E(n(101)),S=E(n(183)),x=E(n(184)),O=E(n(69)),M=E(n(124));function E(e){return e&&e.__esModule?e:{default:e}}t.AreaChart=r.default,t.BandChart=i.default,t.BarChart=a.default,t.Baseline=o.default,t.BoxChart=u.default,t.Brush=s.default,t.ChartContainer=l.default,t.ChartRow=c.default,t.Charts=f.default,t.EventChart=d.default,t.EventMarker=h.default,t.LabelAxis=p.default,t.Legend=v.default,t.LineChart=y.default,t.MultiBrush=m.default,t.Resizable=g.default,t.ScatterChart=b.default,t.styler=_.default,t.TimeAxis=w.default,t.TimeMarker=k.default,t.TimeRangeMarker=S.default,t.ValueAxis=x.default,t.ValueList=O.default,t.YAxis=M.default},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return u=e.done,e},e:function(e){s=!0,o=e},f:function(){try{u||null==n.return||n.return()}finally{if(s)throw o}}}}n.d(t,"a",(function(){return i}))},,function(e,t,n){var r=n(64);e.exports=function(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,u=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return u=e.done,e},e:function(e){s=!0,o=e},f:function(){try{u||null==n.return||n.return()}finally{if(s)throw o}}}}},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,n;function r(){return t.apply(null,arguments)}function i(e){t=e}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function s(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(u(e,t))return!1;return!0}function l(e){return void 0===e}function c(e){return"number"===typeof e||"[object Number]"===Object.prototype.toString.call(e)}function f(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,r=[];for(n=0;n<e.length;++n)r.push(t(e[n],n));return r}function h(e,t){for(var n in t)u(t,n)&&(e[n]=t[n]);return u(t,"toString")&&(e.toString=t.toString),u(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return Zn(e,t,n,r,!0).utc()}function v(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function y(e){return null==e._pf&&(e._pf=v()),e._pf}function m(e){if(null==e._isValid){var t=y(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function g(e){var t=p(NaN);return null!=e?h(y(t),e):y(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=r.momentProperties=[],_=!1;function w(e,t){var n,r,i;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=y(t)),l(t._locale)||(e._locale=t._locale),b.length>0)for(n=0;n<b.length;n++)l(i=t[r=b[n]])||(e[r]=i);return e}function k(e){w(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===_&&(_=!0,r.updateOffset(this),_=!1)}function S(e){return e instanceof k||null!=e&&null!=e._isAMomentObject}function x(e){!1===r.suppressDeprecationWarnings&&"undefined"!==typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function O(e,t){var n=!0;return h((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,a,o,s=[];for(a=0;a<arguments.length;a++){if(i="","object"===typeof arguments[a]){for(o in i+="\n["+a+"] ",arguments[0])u(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[a];s.push(i)}x(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var M,E={};function T(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),E[e]||(x(t),E[e]=!0)}function C(e){return"undefined"!==typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function P(e){var t,n;for(n in e)u(e,n)&&(C(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function D(e,t){var n,r=h({},e);for(n in t)u(t,n)&&(o(e[n])&&o(t[n])?(r[n]={},h(r[n],e[n]),h(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)u(e,n)&&!u(t,n)&&o(e[n])&&(r[n]=h({},r[n]));return r}function j(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,M=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)u(e,t)&&n.push(t);return n};var N={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function A(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return C(r)?r.call(t,n):r}function z(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var R=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,I=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,L={},U={};function F(e,t,n,r){var i=r;"string"===typeof r&&(i=function(){return this[r]()}),e&&(U[e]=i),t&&(U[t[0]]=function(){return z(i.apply(this,arguments),t[1],t[2])}),n&&(U[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Y(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function B(e){var t,n,r=e.match(R);for(t=0,n=r.length;t<n;t++)U[r[t]]?r[t]=U[r[t]]:r[t]=Y(r[t]);return function(t){var i,a="";for(i=0;i<n;i++)a+=C(r[i])?r[i].call(t,e):r[i];return a}}function H(e,t){return e.isValid()?(t=W(t,e.localeData()),L[t]=L[t]||B(t),L[t](e)):e.localeData().invalidDate()}function W(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(I.lastIndex=0;n>=0&&I.test(e);)e=e.replace(I,r),I.lastIndex=0,n-=1;return e}var q={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"};function V(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(R).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var Z="Invalid date";function G(){return this._invalidDate}var $="%d",K=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var J={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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Q(e,t,n,r){var i=this._relativeTime[n];return C(i)?i(e,t,n,r):i.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return C(n)?n(t):n.replace(/%s/i,t)}var te={};function ne(e,t){var n=e.toLowerCase();te[n]=te[n+"s"]=te[t]=e}function re(e){return"string"===typeof e?te[e]||te[e.toLowerCase()]:void 0}function ie(e){var t,n,r={};for(n in e)u(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var ae={};function oe(e,t){ae[e]=t}function ue(e){var t,n=[];for(t in e)u(e,t)&&n.push({unit:t,priority:ae[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function se(e){return e%4===0&&e%100!==0||e%400===0}function le(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ce(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=le(t)),n}function fe(e,t){return function(n){return null!=n?(he(this,e,n),r.updateOffset(this,t),this):de(this,e)}}function de(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function he(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&se(e.year())&&1===e.month()&&29===e.date()?(n=ce(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Qe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function pe(e){return C(this[e=re(e)])?this[e]():this}function ve(e,t){if("object"===typeof e){var n,r=ue(e=ie(e));for(n=0;n<r.length;n++)this[r[n].unit](e[r[n].unit])}else if(C(this[e=re(e)]))return this[e](t);return this}var ye,me=/\d/,ge=/\d\d/,be=/\d{3}/,_e=/\d{4}/,we=/[+-]?\d{6}/,ke=/\d\d?/,Se=/\d\d\d\d?/,xe=/\d\d\d\d\d\d?/,Oe=/\d{1,3}/,Me=/\d{1,4}/,Ee=/[+-]?\d{1,6}/,Te=/\d+/,Ce=/[+-]?\d+/,Pe=/Z|[+-]\d\d:?\d\d/gi,De=/Z|[+-]\d\d(?::?\d\d)?/gi,je=/[+-]?\d+(\.\d{1,3})?/,Ne=/[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;function Ae(e,t,n){ye[e]=C(t)?t:function(e,r){return e&&n?n:t}}function ze(e,t){return u(ye,e)?ye[e](t._strict,t._locale):new RegExp(Re(e))}function Re(e){return Ie(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Ie(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ye={};var Le={};function Ue(e,t){var n,r=t;for("string"===typeof e&&(e=[e]),c(t)&&(r=function(e,n){n[t]=ce(e)}),n=0;n<e.length;n++)Le[e[n]]=r}function Fe(e,t){Ue(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function Ye(e,t,n){null!=t&&u(Le,e)&&Le[e](t,n._a,n,e)}var Be,He=0,We=1,qe=2,Ve=3,Ze=4,Ge=5,$e=6,Ke=7,Xe=8;function Je(e,t){return(e%t+t)%t}function Qe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Je(t,12);return e+=(t-n)/12,1===n?se(e)?29:28:31-n%7%2}Be=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},F("M",["MM",2],"Mo",(function(){return this.month()+1})),F("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),F("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ne("month","M"),oe("month",8),Ae("M",ke),Ae("MM",ke,ge),Ae("MMM",(function(e,t){return t.monthsShortRegex(e)})),Ae("MMMM",(function(e,t){return t.monthsRegex(e)})),Ue(["M","MM"],(function(e,t){t[We]=ce(e)-1})),Ue(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[We]=i:y(n).invalidMonth=e}));var et="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),tt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),nt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,rt=Ne,it=Ne;function at(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||nt).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone}function ot(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[nt.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ut(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Be.call(this._shortMonthsParse,o))?i:null:-1!==(i=Be.call(this._longMonthsParse,o))?i:null:"MMM"===t?-1!==(i=Be.call(this._shortMonthsParse,o))||-1!==(i=Be.call(this._longMonthsParse,o))?i:null:-1!==(i=Be.call(this._longMonthsParse,o))||-1!==(i=Be.call(this._shortMonthsParse,o))?i:null}function st(e,t,n){var r,i,a;if(this._monthsParseExact)return ut.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function lt(e,t){var n;if(!e.isValid())return e;if("string"===typeof t)if(/^\d+$/.test(t))t=ce(t);else if(!c(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Qe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ct(e){return null!=e?(lt(this,e),r.updateOffset(this,!0),this):de(this,"Month")}function ft(){return Qe(this.year(),this.month())}function dt(e){return this._monthsParseExact?(u(this,"_monthsRegex")||pt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=rt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ht(e){return this._monthsParseExact?(u(this,"_monthsRegex")||pt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=it),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function pt(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],a=[];for(t=0;t<12;t++)n=p([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),a.sort(e),t=0;t<12;t++)r[t]=Ie(r[t]),i[t]=Ie(i[t]);for(t=0;t<24;t++)a[t]=Ie(a[t]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function vt(e){return se(e)?366:365}F("Y",0,0,(function(){var e=this.year();return e<=9999?z(e,4):"+"+e})),F(0,["YY",2],0,(function(){return this.year()%100})),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),ne("year","y"),oe("year",1),Ae("Y",Ce),Ae("YY",ke,ge),Ae("YYYY",Me,_e),Ae("YYYYY",Ee,we),Ae("YYYYYY",Ee,we),Ue(["YYYYY","YYYYYY"],He),Ue("YYYY",(function(e,t){t[He]=2===e.length?r.parseTwoDigitYear(e):ce(e)})),Ue("YY",(function(e,t){t[He]=r.parseTwoDigitYear(e)})),Ue("Y",(function(e,t){t[He]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return ce(e)+(ce(e)>68?1900:2e3)};var yt=fe("FullYear",!0);function mt(){return se(this.year())}function gt(e,t,n,r,i,a,o){var u;return e<100&&e>=0?(u=new Date(e+400,t,n,r,i,a,o),isFinite(u.getFullYear())&&u.setFullYear(e)):u=new Date(e,t,n,r,i,a,o),u}function bt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function _t(e,t,n){var r=7+t-n;return-(7+bt(e,0,r).getUTCDay()-t)%7+r-1}function wt(e,t,n,r,i){var a,o,u=1+7*(t-1)+(7+n-r)%7+_t(e,r,i);return u<=0?o=vt(a=e-1)+u:u>vt(e)?(a=e+1,o=u-vt(e)):(a=e,o=u),{year:a,dayOfYear:o}}function kt(e,t,n){var r,i,a=_t(e.year(),t,n),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?r=o+St(i=e.year()-1,t,n):o>St(e.year(),t,n)?(r=o-St(e.year(),t,n),i=e.year()+1):(i=e.year(),r=o),{week:r,year:i}}function St(e,t,n){var r=_t(e,t,n),i=_t(e+1,t,n);return(vt(e)-r+i)/7}function xt(e){return kt(e,this._week.dow,this._week.doy).week}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),ne("week","w"),ne("isoWeek","W"),oe("week",5),oe("isoWeek",5),Ae("w",ke),Ae("ww",ke,ge),Ae("W",ke),Ae("WW",ke,ge),Fe(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=ce(e)}));var Ot={dow:0,doy:6};function Mt(){return this._week.dow}function Et(){return this._week.doy}function Tt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Ct(e){var t=kt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Pt(e,t){return"string"!==typeof e?e:isNaN(e)?"number"===typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Dt(e,t){return"string"===typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function jt(e,t){return e.slice(t,7).concat(e.slice(0,t))}F("d",0,"do","day"),F("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),F("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),F("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),oe("day",11),oe("weekday",11),oe("isoWeekday",11),Ae("d",ke),Ae("e",ke),Ae("E",ke),Ae("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Ae("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Ae("dddd",(function(e,t){return t.weekdaysRegex(e)})),Fe(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:y(n).invalidWeekday=e})),Fe(["d","e","E"],(function(e,t,n,r){t[r]=ce(e)}));var Nt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),At="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),zt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Rt=Ne,It=Ne,Lt=Ne;function Ut(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?jt(n,this._week.dow):e?n[e.day()]:n}function Ft(e){return!0===e?jt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Yt(e){return!0===e?jt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Bt(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Be.call(this._weekdaysParse,o))?i:null:"ddd"===t?-1!==(i=Be.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=Be.call(this._minWeekdaysParse,o))?i:null:"dddd"===t?-1!==(i=Be.call(this._weekdaysParse,o))||-1!==(i=Be.call(this._shortWeekdaysParse,o))||-1!==(i=Be.call(this._minWeekdaysParse,o))?i:null:"ddd"===t?-1!==(i=Be.call(this._shortWeekdaysParse,o))||-1!==(i=Be.call(this._weekdaysParse,o))||-1!==(i=Be.call(this._minWeekdaysParse,o))?i:null:-1!==(i=Be.call(this._minWeekdaysParse,o))||-1!==(i=Be.call(this._weekdaysParse,o))||-1!==(i=Be.call(this._shortWeekdaysParse,o))?i:null}function Ht(e,t,n){var r,i,a;if(this._weekdaysParseExact)return Bt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Pt(e,this.localeData()),this.add(e-t,"d")):t}function qt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Vt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Dt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Zt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Rt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Gt(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=It),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function $t(e){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Kt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Lt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Kt(){function e(e,t){return t.length-e.length}var t,n,r,i,a,o=[],u=[],s=[],l=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=Ie(this.weekdaysMin(n,"")),i=Ie(this.weekdaysShort(n,"")),a=Ie(this.weekdays(n,"")),o.push(r),u.push(i),s.push(a),l.push(r),l.push(i),l.push(a);o.sort(e),u.sort(e),s.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Jt(){return this.hours()||24}function Qt(e,t){F(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function en(e,t){return t._meridiemParse}function tn(e){return"p"===(e+"").toLowerCase().charAt(0)}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,Xt),F("k",["kk",2],0,Jt),F("hmm",0,0,(function(){return""+Xt.apply(this)+z(this.minutes(),2)})),F("hmmss",0,0,(function(){return""+Xt.apply(this)+z(this.minutes(),2)+z(this.seconds(),2)})),F("Hmm",0,0,(function(){return""+this.hours()+z(this.minutes(),2)})),F("Hmmss",0,0,(function(){return""+this.hours()+z(this.minutes(),2)+z(this.seconds(),2)})),Qt("a",!0),Qt("A",!1),ne("hour","h"),oe("hour",13),Ae("a",en),Ae("A",en),Ae("H",ke),Ae("h",ke),Ae("k",ke),Ae("HH",ke,ge),Ae("hh",ke,ge),Ae("kk",ke,ge),Ae("hmm",Se),Ae("hmmss",xe),Ae("Hmm",Se),Ae("Hmmss",xe),Ue(["H","HH"],Ve),Ue(["k","kk"],(function(e,t,n){var r=ce(e);t[Ve]=24===r?0:r})),Ue(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Ue(["h","hh"],(function(e,t,n){t[Ve]=ce(e),y(n).bigHour=!0})),Ue("hmm",(function(e,t,n){var r=e.length-2;t[Ve]=ce(e.substr(0,r)),t[Ze]=ce(e.substr(r)),y(n).bigHour=!0})),Ue("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Ve]=ce(e.substr(0,r)),t[Ze]=ce(e.substr(r,2)),t[Ge]=ce(e.substr(i)),y(n).bigHour=!0})),Ue("Hmm",(function(e,t,n){var r=e.length-2;t[Ve]=ce(e.substr(0,r)),t[Ze]=ce(e.substr(r))})),Ue("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Ve]=ce(e.substr(0,r)),t[Ze]=ce(e.substr(r,2)),t[Ge]=ce(e.substr(i))}));var nn=/[ap]\.?m?\.?/i,rn=fe("Hours",!0);function an(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var on,un={calendar:N,longDateFormat:q,invalidDate:Z,ordinal:$,dayOfMonthOrdinalParse:K,relativeTime:J,months:et,monthsShort:tt,week:Ot,weekdays:Nt,weekdaysMin:zt,weekdaysShort:At,meridiemParse:nn},sn={},ln={};function cn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function fn(e){return e?e.toLowerCase().replace("_","-"):e}function dn(e){for(var t,n,r,i,a=0;a<e.length;){for(t=(i=fn(e[a]).split("-")).length,n=(n=fn(e[a+1]))?n.split("-"):null;t>0;){if(r=hn(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&cn(i,n)>=t-1)break;t--}a++}return on}function hn(t){var n=null;if(void 0===sn[t]&&"undefined"!==typeof e&&e&&e.exports)try{n=on._abbr,function(){var e=new Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}(),pn(n)}catch(r){sn[t]=null}return sn[t]}function pn(e,t){var n;return e&&((n=l(t)?mn(e):vn(e,t))?on=n:"undefined"!==typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),on._abbr}function vn(e,t){if(null!==t){var n,r=un;if(t.abbr=e,null!=sn[e])T("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."),r=sn[e]._config;else if(null!=t.parentLocale)if(null!=sn[t.parentLocale])r=sn[t.parentLocale]._config;else{if(null==(n=hn(t.parentLocale)))return ln[t.parentLocale]||(ln[t.parentLocale]=[]),ln[t.parentLocale].push({name:e,config:t}),null;r=n._config}return sn[e]=new j(D(r,t)),ln[e]&&ln[e].forEach((function(e){vn(e.name,e.config)})),pn(e),sn[e]}return delete sn[e],null}function yn(e,t){if(null!=t){var n,r,i=un;null!=sn[e]&&null!=sn[e].parentLocale?sn[e].set(D(sn[e]._config,t)):(null!=(r=hn(e))&&(i=r._config),t=D(i,t),null==r&&(t.abbr=e),(n=new j(t)).parentLocale=sn[e],sn[e]=n),pn(e)}else null!=sn[e]&&(null!=sn[e].parentLocale?(sn[e]=sn[e].parentLocale,e===pn()&&pn(e)):null!=sn[e]&&delete sn[e]);return sn[e]}function mn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return on;if(!a(e)){if(t=hn(e))return t;e=[e]}return dn(e)}function gn(){return M(sn)}function bn(e){var t,n=e._a;return n&&-2===y(e).overflow&&(t=n[We]<0||n[We]>11?We:n[qe]<1||n[qe]>Qe(n[He],n[We])?qe:n[Ve]<0||n[Ve]>24||24===n[Ve]&&(0!==n[Ze]||0!==n[Ge]||0!==n[$e])?Ve:n[Ze]<0||n[Ze]>59?Ze:n[Ge]<0||n[Ge]>59?Ge:n[$e]<0||n[$e]>999?$e:-1,y(e)._overflowDayOfYear&&(t<He||t>qe)&&(t=qe),y(e)._overflowWeeks&&-1===t&&(t=Ke),y(e)._overflowWeekday&&-1===t&&(t=Xe),y(e).overflow=t),e}var _n=/^\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)?)?$/,wn=/^\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)?)?$/,kn=/Z|[+-]\d\d(?::?\d\d)?/,Sn=[["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}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],xn=[["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/]],On=/^\/?Date\((-?\d+)/i,Mn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,En={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Tn(e){var t,n,r,i,a,o,u=e._i,s=_n.exec(u)||wn.exec(u);if(s){for(y(e).iso=!0,t=0,n=Sn.length;t<n;t++)if(Sn[t][1].exec(s[1])){i=Sn[t][0],r=!1!==Sn[t][2];break}if(null==i)return void(e._isValid=!1);if(s[3]){for(t=0,n=xn.length;t<n;t++)if(xn[t][1].exec(s[3])){a=(s[2]||" ")+xn[t][0];break}if(null==a)return void(e._isValid=!1)}if(!r&&null!=a)return void(e._isValid=!1);if(s[4]){if(!kn.exec(s[4]))return void(e._isValid=!1);o="Z"}e._f=i+(a||"")+(o||""),Fn(e)}else e._isValid=!1}function Cn(e,t,n,r,i,a){var o=[Pn(e),tt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}function Pn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Dn(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function jn(e,t,n){return!e||At.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(y(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Nn(e,t,n){if(e)return En[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function An(e){var t,n=Mn.exec(Dn(e._i));if(n){if(t=Cn(n[4],n[3],n[2],n[5],n[6],n[7]),!jn(n[1],t,e))return;e._a=t,e._tzm=Nn(n[8],n[9],n[10]),e._d=bt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),y(e).rfc2822=!0}else e._isValid=!1}function zn(e){var t=On.exec(e._i);null===t?(Tn(e),!1===e._isValid&&(delete e._isValid,An(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Rn(e,t,n){return null!=e?e:null!=t?t:n}function In(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Ln(e){var t,n,r,i,a,o=[];if(!e._d){for(r=In(e),e._w&&null==e._a[qe]&&null==e._a[We]&&Un(e),null!=e._dayOfYear&&(a=Rn(e._a[He],r[He]),(e._dayOfYear>vt(a)||0===e._dayOfYear)&&(y(e)._overflowDayOfYear=!0),n=bt(a,0,e._dayOfYear),e._a[We]=n.getUTCMonth(),e._a[qe]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ve]&&0===e._a[Ze]&&0===e._a[Ge]&&0===e._a[$e]&&(e._nextDay=!0,e._a[Ve]=0),e._d=(e._useUTC?bt:gt).apply(null,o),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ve]=24),e._w&&"undefined"!==typeof e._w.d&&e._w.d!==i&&(y(e).weekdayMismatch=!0)}}function Un(e){var t,n,r,i,a,o,u,s,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,o=4,n=Rn(t.GG,e._a[He],kt(Gn(),1,4).year),r=Rn(t.W,1),((i=Rn(t.E,1))<1||i>7)&&(s=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,l=kt(Gn(),a,o),n=Rn(t.gg,e._a[He],l.year),r=Rn(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(s=!0):null!=t.e?(i=t.e+a,(t.e<0||t.e>6)&&(s=!0)):i=a),r<1||r>St(n,a,o)?y(e)._overflowWeeks=!0:null!=s?y(e)._overflowWeekday=!0:(u=wt(n,r,i,a,o),e._a[He]=u.year,e._dayOfYear=u.dayOfYear)}function Fn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],y(e).empty=!0;var t,n,i,a,o,u,s=""+e._i,l=s.length,c=0;for(i=W(e._f,e._locale).match(R)||[],t=0;t<i.length;t++)a=i[t],(n=(s.match(ze(a,e))||[])[0])&&((o=s.substr(0,s.indexOf(n))).length>0&&y(e).unusedInput.push(o),s=s.slice(s.indexOf(n)+n.length),c+=n.length),U[a]?(n?y(e).empty=!1:y(e).unusedTokens.push(a),Ye(a,n,e)):e._strict&&!n&&y(e).unusedTokens.push(a);y(e).charsLeftOver=l-c,s.length>0&&y(e).unusedInput.push(s),e._a[Ve]<=12&&!0===y(e).bigHour&&e._a[Ve]>0&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[Ve]=Yn(e._locale,e._a[Ve],e._meridiem),null!==(u=y(e).era)&&(e._a[He]=e._locale.erasConvertYear(u,e._a[He])),Ln(e),bn(e)}else An(e);else Tn(e)}function Yn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Bn(e){var t,n,r,i,a,o,u=!1;if(0===e._f.length)return y(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)a=0,o=!1,t=w({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Fn(t),m(t)&&(o=!0),a+=y(t).charsLeftOver,a+=10*y(t).unusedTokens.length,y(t).score=a,u?a<r&&(r=a,n=t):(null==r||a<r||o)&&(r=a,n=t,o&&(u=!0));h(e,n||t)}function Hn(e){if(!e._d){var t=ie(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Ln(e)}}function Wn(e){var t=new k(bn(qn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function qn(e){var t=e._i,n=e._f;return e._locale=e._locale||mn(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"===typeof t&&(e._i=t=e._locale.preparse(t)),S(t)?new k(bn(t)):(f(t)?e._d=t:a(n)?Bn(e):n?Fn(e):Vn(e),m(e)||(e._d=null),e))}function Vn(e){var t=e._i;l(t)?e._d=new Date(r.now()):f(t)?e._d=new Date(t.valueOf()):"string"===typeof t?zn(e):a(t)?(e._a=d(t.slice(0),(function(e){return parseInt(e,10)})),Ln(e)):o(t)?Hn(e):c(t)?e._d=new Date(t):r.createFromInputFallback(e)}function Zn(e,t,n,r,i){var u={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(o(e)&&s(e)||a(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=i,u._l=n,u._i=e,u._f=t,u._strict=r,Wn(u)}function Gn(e,t,n,r){return Zn(e,t,n,r,!1)}r.createFromInputFallback=O("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var $n=O("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Gn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:g()})),Kn=O("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Gn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:g()}));function Xn(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Gn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Jn(){return Xn("isBefore",[].slice.call(arguments,0))}function Qn(){return Xn("isAfter",[].slice.call(arguments,0))}var er=function(){return Date.now?Date.now():+new Date},tr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function nr(e){var t,n,r=!1;for(t in e)if(u(e,t)&&(-1===Be.call(tr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<tr.length;++n)if(e[tr[n]]){if(r)return!1;parseFloat(e[tr[n]])!==ce(e[tr[n]])&&(r=!0)}return!0}function rr(){return this._isValid}function ir(){return Er(NaN)}function ar(e){var t=ie(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,u=t.hour||0,s=t.minute||0,l=t.second||0,c=t.millisecond||0;this._isValid=nr(t),this._milliseconds=+c+1e3*l+6e4*s+1e3*u*60*60,this._days=+o+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=mn(),this._bubble()}function or(e){return e instanceof ar}function ur(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function sr(e,t,n){var r,i=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),o=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&ce(e[r])!==ce(t[r]))&&o++;return o+a}function lr(e,t){F(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+z(~~(e/60),2)+t+z(~~e%60,2)}))}lr("Z",":"),lr("ZZ",""),Ae("Z",De),Ae("ZZ",De),Ue(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=fr(De,e)}));var cr=/([\+\-]|\d\d)/gi;function fr(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(cr)||["-",0,0])[1]+ce(n[2]))?0:"+"===n[0]?r:-r}function dr(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(S(e)||f(e)?e.valueOf():Gn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):Gn(e).local()}function hr(e){return-Math.round(e._d.getTimezoneOffset())}function pr(e,t,n){var i,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"===typeof e){if(null===(e=fr(De,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=hr(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!t||this._changeInProgress?jr(this,Er(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:hr(this)}function vr(e,t){return null!=e?("string"!==typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function yr(e){return this.utcOffset(0,e)}function mr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(hr(this),"m")),this}function gr(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"===typeof this._i){var e=fr(Pe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function br(e){return!!this.isValid()&&(e=e?Gn(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function _r(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function wr(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return w(t,this),(t=qn(t))._a?(e=t._isUTC?p(t._a):Gn(t._a),this._isDSTShifted=this.isValid()&&sr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function kr(){return!!this.isValid()&&!this._isUTC}function Sr(){return!!this.isValid()&&this._isUTC}function xr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Or=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Mr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Er(e,t){var n,r,i,a=e,o=null;return or(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(o=Or.exec(e))?(n="-"===o[1]?-1:1,a={y:0,d:ce(o[qe])*n,h:ce(o[Ve])*n,m:ce(o[Ze])*n,s:ce(o[Ge])*n,ms:ce(ur(1e3*o[$e]))*n}):(o=Mr.exec(e))?(n="-"===o[1]?-1:1,a={y:Tr(o[2],n),M:Tr(o[3],n),w:Tr(o[4],n),d:Tr(o[5],n),h:Tr(o[6],n),m:Tr(o[7],n),s:Tr(o[8],n)}):null==a?a={}:"object"===typeof a&&("from"in a||"to"in a)&&(i=Pr(Gn(a.from),Gn(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),r=new ar(a),or(e)&&u(e,"_locale")&&(r._locale=e._locale),or(e)&&u(e,"_isValid")&&(r._isValid=e._isValid),r}function Tr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Cr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Pr(e,t){var n;return e.isValid()&&t.isValid()?(t=dr(t,e),e.isBefore(t)?n=Cr(e,t):((n=Cr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Dr(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(T(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),jr(this,Er(n,r),e),this}}function jr(e,t,n,i){var a=t._milliseconds,o=ur(t._days),u=ur(t._months);e.isValid()&&(i=null==i||i,u&&lt(e,de(e,"Month")+u*n),o&&he(e,"Date",de(e,"Date")+o*n),a&&e._d.setTime(e._d.valueOf()+a*n),i&&r.updateOffset(e,o||u))}Er.fn=ar.prototype,Er.invalid=ir;var Nr=Dr(1,"add"),Ar=Dr(-1,"subtract");function zr(e){return"string"===typeof e||e instanceof String}function Rr(e){return S(e)||f(e)||zr(e)||c(e)||Lr(e)||Ir(e)||null===e||void 0===e}function Ir(e){var t,n,r=o(e)&&!s(e),i=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<a.length;t+=1)n=a[t],i=i||u(e,n);return r&&i}function Lr(e){var t=a(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(t)&&zr(e)})).length),t&&n}function Ur(e){var t,n,r=o(e)&&!s(e),i=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)n=a[t],i=i||u(e,n);return r&&i}function Fr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Yr(e,t){1===arguments.length&&(arguments[0]?Rr(arguments[0])?(e=arguments[0],t=void 0):Ur(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Gn(),i=dr(n,this).startOf("day"),a=r.calendarFormat(this,i)||"sameElse",o=t&&(C(t[a])?t[a].call(this,n):t[a]);return this.format(o||this.localeData().calendar(a,this,Gn(n)))}function Br(){return new k(this)}function Hr(e,t){var n=S(e)?e:Gn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Wr(e,t){var n=S(e)?e:Gn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function qr(e,t,n,r){var i=S(e)?e:Gn(e),a=S(t)?t:Gn(t);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))}function Vr(e,t){var n,r=S(e)?e:Gn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Zr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Gr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function $r(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=dr(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=re(t)){case"year":a=Kr(this,r)/12;break;case"month":a=Kr(this,r);break;case"quarter":a=Kr(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:le(a)}function Kr(e,t){if(e.date()<t.date())return-Kr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Xr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Jr(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?H(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",H(n,"Z")):H(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Qr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",a="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(e+t+n+r)}function ei(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=H(this,e);return this.localeData().postformat(t)}function ti(e,t){return this.isValid()&&(S(e)&&e.isValid()||Gn(e).isValid())?Er({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ni(e){return this.from(Gn(),e)}function ri(e,t){return this.isValid()&&(S(e)&&e.isValid()||Gn(e).isValid())?Er({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ii(e){return this.to(Gn(),e)}function ai(e){var t;return void 0===e?this._locale._abbr:(null!=(t=mn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var oi=O("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function ui(){return this._locale}var si=1e3,li=60*si,ci=60*li,fi=3506328*ci;function di(e,t){return(e%t+t)%t}function hi(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-fi:new Date(e,t,n).valueOf()}function pi(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-fi:Date.UTC(e,t,n)}function vi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?pi:hi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=di(t+(this._isUTC?0:this.utcOffset()*li),ci);break;case"minute":t=this._d.valueOf(),t-=di(t,li);break;case"second":t=this._d.valueOf(),t-=di(t,si)}return this._d.setTime(t),r.updateOffset(this,!0),this}function yi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?pi:hi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=ci-di(t+(this._isUTC?0:this.utcOffset()*li),ci)-1;break;case"minute":t=this._d.valueOf(),t+=li-di(t,li)-1;break;case"second":t=this._d.valueOf(),t+=si-di(t,si)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function mi(){return this._d.valueOf()-6e4*(this._offset||0)}function gi(){return Math.floor(this.valueOf()/1e3)}function bi(){return new Date(this.valueOf())}function _i(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function wi(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ki(){return this.isValid()?this.toISOString():null}function Si(){return m(this)}function xi(){return h({},y(this))}function Oi(){return y(this).overflow}function Mi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ei(e,t){var n,i,a,o=this._eras||mn("en")._eras;for(n=0,i=o.length;n<i;++n){switch(typeof o[n].since){case"string":a=r(o[n].since).startOf("day"),o[n].since=a.valueOf()}switch(typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":a=r(o[n].until).startOf("day").valueOf(),o[n].until=a.valueOf()}}return o}function Ti(e,t,n){var r,i,a,o,u,s=this.eras();for(e=e.toUpperCase(),r=0,i=s.length;r<i;++r)if(a=s[r].name.toUpperCase(),o=s[r].abbr.toUpperCase(),u=s[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return s[r];break;case"NNNN":if(a===e)return s[r];break;case"NNNNN":if(u===e)return s[r]}else if([a,o,u].indexOf(e)>=0)return s[r]}function Ci(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Pi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Di(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function ji(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Ni(){var e,t,n,i,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,i=this.clone().startOf("day").valueOf(),a[e].since<=i&&i<=a[e].until||a[e].until<=i&&i<=a[e].since)return(this.year()-r(a[e].since).year())*n+a[e].offset;return this.year()}function Ai(e){return u(this,"_erasNameRegex")||Yi.call(this),e?this._erasNameRegex:this._erasRegex}function zi(e){return u(this,"_erasAbbrRegex")||Yi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ri(e){return u(this,"_erasNarrowRegex")||Yi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ii(e,t){return t.erasAbbrRegex(e)}function Li(e,t){return t.erasNameRegex(e)}function Ui(e,t){return t.erasNarrowRegex(e)}function Fi(e,t){return t._eraYearOrdinalRegex||Te}function Yi(){var e,t,n=[],r=[],i=[],a=[],o=this.eras();for(e=0,t=o.length;e<t;++e)r.push(Ie(o[e].name)),n.push(Ie(o[e].abbr)),i.push(Ie(o[e].narrow)),a.push(Ie(o[e].name)),a.push(Ie(o[e].abbr)),a.push(Ie(o[e].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function Bi(e,t){F(0,[e,e.length],0,t)}function Hi(e){return $i.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Wi(e){return $i.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function qi(){return St(this.year(),1,4)}function Vi(){return St(this.isoWeekYear(),1,4)}function Zi(){var e=this.localeData()._week;return St(this.year(),e.dow,e.doy)}function Gi(){var e=this.localeData()._week;return St(this.weekYear(),e.dow,e.doy)}function $i(e,t,n,r,i){var a;return null==e?kt(this,r,i).year:(t>(a=St(e,r,i))&&(t=a),Ki.call(this,e,t,n,r,i))}function Ki(e,t,n,r,i){var a=wt(e,t,n,r,i),o=bt(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Xi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),Ae("N",Ii),Ae("NN",Ii),Ae("NNN",Ii),Ae("NNNN",Li),Ae("NNNNN",Ui),Ue(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?y(n).era=i:y(n).invalidEra=e})),Ae("y",Te),Ae("yy",Te),Ae("yyy",Te),Ae("yyyy",Te),Ae("yo",Fi),Ue(["y","yy","yyy","yyyy"],He),Ue(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[He]=n._locale.eraYearOrdinalParse(e,i):t[He]=parseInt(e,10)})),F(0,["gg",2],0,(function(){return this.weekYear()%100})),F(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Bi("gggg","weekYear"),Bi("ggggg","weekYear"),Bi("GGGG","isoWeekYear"),Bi("GGGGG","isoWeekYear"),ne("weekYear","gg"),ne("isoWeekYear","GG"),oe("weekYear",1),oe("isoWeekYear",1),Ae("G",Ce),Ae("g",Ce),Ae("GG",ke,ge),Ae("gg",ke,ge),Ae("GGGG",Me,_e),Ae("gggg",Me,_e),Ae("GGGGG",Ee,we),Ae("ggggg",Ee,we),Fe(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=ce(e)})),Fe(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),F("Q",0,"Qo","quarter"),ne("quarter","Q"),oe("quarter",7),Ae("Q",me),Ue("Q",(function(e,t){t[We]=3*(ce(e)-1)})),F("D",["DD",2],"Do","date"),ne("date","D"),oe("date",9),Ae("D",ke),Ae("DD",ke,ge),Ae("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Ue(["D","DD"],qe),Ue("Do",(function(e,t){t[qe]=ce(e.match(ke)[0])}));var Ji=fe("Date",!0);function Qi(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}F("DDD",["DDDD",3],"DDDo","dayOfYear"),ne("dayOfYear","DDD"),oe("dayOfYear",4),Ae("DDD",Oe),Ae("DDDD",be),Ue(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=ce(e)})),F("m",["mm",2],0,"minute"),ne("minute","m"),oe("minute",14),Ae("m",ke),Ae("mm",ke,ge),Ue(["m","mm"],Ze);var ea=fe("Minutes",!1);F("s",["ss",2],0,"second"),ne("second","s"),oe("second",15),Ae("s",ke),Ae("ss",ke,ge),Ue(["s","ss"],Ge);var ta,na,ra=fe("Seconds",!1);for(F("S",0,0,(function(){return~~(this.millisecond()/100)})),F(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),F(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),F(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),F(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),F(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),F(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ne("millisecond","ms"),oe("millisecond",16),Ae("S",Oe,me),Ae("SS",Oe,ge),Ae("SSS",Oe,be),ta="SSSS";ta.length<=9;ta+="S")Ae(ta,Te);function ia(e,t){t[$e]=ce(1e3*("0."+e))}for(ta="S";ta.length<=9;ta+="S")Ue(ta,ia);function aa(){return this._isUTC?"UTC":""}function oa(){return this._isUTC?"Coordinated Universal Time":""}na=fe("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var ua=k.prototype;function sa(e){return Gn(1e3*e)}function la(){return Gn.apply(null,arguments).parseZone()}function ca(e){return e}ua.add=Nr,ua.calendar=Yr,ua.clone=Br,ua.diff=$r,ua.endOf=yi,ua.format=ei,ua.from=ti,ua.fromNow=ni,ua.to=ri,ua.toNow=ii,ua.get=pe,ua.invalidAt=Oi,ua.isAfter=Hr,ua.isBefore=Wr,ua.isBetween=qr,ua.isSame=Vr,ua.isSameOrAfter=Zr,ua.isSameOrBefore=Gr,ua.isValid=Si,ua.lang=oi,ua.locale=ai,ua.localeData=ui,ua.max=Kn,ua.min=$n,ua.parsingFlags=xi,ua.set=ve,ua.startOf=vi,ua.subtract=Ar,ua.toArray=_i,ua.toObject=wi,ua.toDate=bi,ua.toISOString=Jr,ua.inspect=Qr,"undefined"!==typeof Symbol&&null!=Symbol.for&&(ua[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ua.toJSON=ki,ua.toString=Xr,ua.unix=gi,ua.valueOf=mi,ua.creationData=Mi,ua.eraName=Pi,ua.eraNarrow=Di,ua.eraAbbr=ji,ua.eraYear=Ni,ua.year=yt,ua.isLeapYear=mt,ua.weekYear=Hi,ua.isoWeekYear=Wi,ua.quarter=ua.quarters=Xi,ua.month=ct,ua.daysInMonth=ft,ua.week=ua.weeks=Tt,ua.isoWeek=ua.isoWeeks=Ct,ua.weeksInYear=Zi,ua.weeksInWeekYear=Gi,ua.isoWeeksInYear=qi,ua.isoWeeksInISOWeekYear=Vi,ua.date=Ji,ua.day=ua.days=Wt,ua.weekday=qt,ua.isoWeekday=Vt,ua.dayOfYear=Qi,ua.hour=ua.hours=rn,ua.minute=ua.minutes=ea,ua.second=ua.seconds=ra,ua.millisecond=ua.milliseconds=na,ua.utcOffset=pr,ua.utc=yr,ua.local=mr,ua.parseZone=gr,ua.hasAlignedHourOffset=br,ua.isDST=_r,ua.isLocal=kr,ua.isUtcOffset=Sr,ua.isUtc=xr,ua.isUTC=xr,ua.zoneAbbr=aa,ua.zoneName=oa,ua.dates=O("dates accessor is deprecated. Use date instead.",Ji),ua.months=O("months accessor is deprecated. Use month instead",ct),ua.years=O("years accessor is deprecated. Use year instead",yt),ua.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vr),ua.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",wr);var fa=j.prototype;function da(e,t,n,r){var i=mn(),a=p().set(r,t);return i[n](a,e)}function ha(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return da(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=da(e,r,n,"month");return i}function pa(e,t,n,r){"boolean"===typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var i,a=mn(),o=e?a._week.dow:0,u=[];if(null!=n)return da(t,(n+o)%7,r,"day");for(i=0;i<7;i++)u[i]=da(t,(i+o)%7,r,"day");return u}function va(e,t){return ha(e,t,"months")}function ya(e,t){return ha(e,t,"monthsShort")}function ma(e,t,n){return pa(e,t,n,"weekdays")}function ga(e,t,n){return pa(e,t,n,"weekdaysShort")}function ba(e,t,n){return pa(e,t,n,"weekdaysMin")}fa.calendar=A,fa.longDateFormat=V,fa.invalidDate=G,fa.ordinal=X,fa.preparse=ca,fa.postformat=ca,fa.relativeTime=Q,fa.pastFuture=ee,fa.set=P,fa.eras=Ei,fa.erasParse=Ti,fa.erasConvertYear=Ci,fa.erasAbbrRegex=zi,fa.erasNameRegex=Ai,fa.erasNarrowRegex=Ri,fa.months=at,fa.monthsShort=ot,fa.monthsParse=st,fa.monthsRegex=ht,fa.monthsShortRegex=dt,fa.week=xt,fa.firstDayOfYear=Et,fa.firstDayOfWeek=Mt,fa.weekdays=Ut,fa.weekdaysMin=Yt,fa.weekdaysShort=Ft,fa.weekdaysParse=Ht,fa.weekdaysRegex=Zt,fa.weekdaysShortRegex=Gt,fa.weekdaysMinRegex=$t,fa.isPM=tn,fa.meridiem=an,pn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ce(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=O("moment.lang is deprecated. Use moment.locale instead.",pn),r.langData=O("moment.langData is deprecated. Use moment.localeData instead.",mn);var _a=Math.abs;function wa(){var e=this._data;return this._milliseconds=_a(this._milliseconds),this._days=_a(this._days),this._months=_a(this._months),e.milliseconds=_a(e.milliseconds),e.seconds=_a(e.seconds),e.minutes=_a(e.minutes),e.hours=_a(e.hours),e.months=_a(e.months),e.years=_a(e.years),this}function ka(e,t,n,r){var i=Er(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Sa(e,t){return ka(this,e,t,1)}function xa(e,t){return ka(this,e,t,-1)}function Oa(e){return e<0?Math.floor(e):Math.ceil(e)}function Ma(){var e,t,n,r,i,a=this._milliseconds,o=this._days,u=this._months,s=this._data;return a>=0&&o>=0&&u>=0||a<=0&&o<=0&&u<=0||(a+=864e5*Oa(Ta(u)+o),o=0,u=0),s.milliseconds=a%1e3,e=le(a/1e3),s.seconds=e%60,t=le(e/60),s.minutes=t%60,n=le(t/60),s.hours=n%24,o+=le(n/24),u+=i=le(Ea(o)),o-=Oa(Ta(i)),r=le(u/12),u%=12,s.days=o,s.months=u,s.years=r,this}function Ea(e){return 4800*e/146097}function Ta(e){return 146097*e/4800}function Ca(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Ea(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ta(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Pa(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ce(this._months/12):NaN}function Da(e){return function(){return this.as(e)}}var ja=Da("ms"),Na=Da("s"),Aa=Da("m"),za=Da("h"),Ra=Da("d"),Ia=Da("w"),La=Da("M"),Ua=Da("Q"),Fa=Da("y");function Ya(){return Er(this)}function Ba(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Ha(e){return function(){return this.isValid()?this._data[e]:NaN}}var Wa=Ha("milliseconds"),qa=Ha("seconds"),Va=Ha("minutes"),Za=Ha("hours"),Ga=Ha("days"),$a=Ha("months"),Ka=Ha("years");function Xa(){return le(this.days()/7)}var Ja=Math.round,Qa={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function eo(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function to(e,t,n,r){var i=Er(e).abs(),a=Ja(i.as("s")),o=Ja(i.as("m")),u=Ja(i.as("h")),s=Ja(i.as("d")),l=Ja(i.as("M")),c=Ja(i.as("w")),f=Ja(i.as("y")),d=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||o<=1&&["m"]||o<n.m&&["mm",o]||u<=1&&["h"]||u<n.h&&["hh",u]||s<=1&&["d"]||s<n.d&&["dd",s];return null!=n.w&&(d=d||c<=1&&["w"]||c<n.w&&["ww",c]),(d=d||l<=1&&["M"]||l<n.M&&["MM",l]||f<=1&&["y"]||["yy",f])[2]=t,d[3]=+e>0,d[4]=r,eo.apply(null,d)}function no(e){return void 0===e?Ja:"function"===typeof e&&(Ja=e,!0)}function ro(e,t){return void 0!==Qa[e]&&(void 0===t?Qa[e]:(Qa[e]=t,"s"===e&&(Qa.ss=t-1),!0))}function io(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,a=Qa;return"object"===typeof e&&(t=e,e=!1),"boolean"===typeof e&&(i=e),"object"===typeof t&&(a=Object.assign({},Qa,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),r=to(this,!i,a,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var ao=Math.abs;function oo(e){return(e>0)-(e<0)||+e}function uo(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,a,o,u,s=ao(this._milliseconds)/1e3,l=ao(this._days),c=ao(this._months),f=this.asSeconds();return f?(e=le(s/60),t=le(e/60),s%=60,e%=60,n=le(c/12),c%=12,r=s?s.toFixed(3).replace(/\.?0+$/,""):"",i=f<0?"-":"",a=oo(this._months)!==oo(f)?"-":"",o=oo(this._days)!==oo(f)?"-":"",u=oo(this._milliseconds)!==oo(f)?"-":"",i+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(l?o+l+"D":"")+(t||e||s?"T":"")+(t?u+t+"H":"")+(e?u+e+"M":"")+(s?u+r+"S":"")):"P0D"}var so=ar.prototype;return so.isValid=rr,so.abs=wa,so.add=Sa,so.subtract=xa,so.as=Ca,so.asMilliseconds=ja,so.asSeconds=Na,so.asMinutes=Aa,so.asHours=za,so.asDays=Ra,so.asWeeks=Ia,so.asMonths=La,so.asQuarters=Ua,so.asYears=Fa,so.valueOf=Pa,so._bubble=Ma,so.clone=Ya,so.get=Ba,so.milliseconds=Wa,so.seconds=qa,so.minutes=Va,so.hours=Za,so.days=Ga,so.weeks=Xa,so.months=$a,so.years=Ka,so.humanize=io,so.toISOString=uo,so.toString=uo,so.toJSON=uo,so.locale=ai,so.localeData=ui,so.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",uo),so.lang=oi,F("X",0,0,"unix"),F("x",0,0,"valueOf"),Ae("x",Ce),Ae("X",je),Ue("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Ue("x",(function(e,t,n){n._d=new Date(ce(e))})),r.version="2.29.1",i(Gn),r.fn=ua,r.min=Jn,r.max=Qn,r.now=er,r.utc=p,r.unix=sa,r.months=va,r.isDate=f,r.locale=pn,r.invalid=g,r.duration=Er,r.isMoment=S,r.weekdays=ma,r.parseZone=la,r.localeData=mn,r.isDuration=or,r.monthsShort=ya,r.weekdaysMin=ba,r.defineLocale=vn,r.updateLocale=yn,r.locales=gn,r.weekdaysShort=ga,r.normalizeUnits=re,r.relativeTimeRounding=no,r.relativeTimeThreshold=ro,r.calendarFormat=Fr,r.prototype=ua,r.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:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(105)(e))},function(e,t,n){"use strict";var r=n(6),i=n(7),a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(1)),u=a(n(20)),s=a(n(54)),l=function(){function e(t,n){if(r(this,e),t instanceof e){var i=t;this._range=i._range}else if(t instanceof u.default.List){var a=t;this._range=a}else if(o.default.isArray(t)){var l=t;this._range=new u.default.List([new Date(l[0]),new Date(l[1])])}else{var c=t,f=n;o.default.isDate(c)&&o.default.isDate(f)?this._range=new u.default.List([new Date(c.getTime()),new Date(f.getTime())]):s.default.isMoment(c)&&s.default.isMoment(f)?this._range=new u.default.List([new Date(c.valueOf()),new Date(f.valueOf())]):o.default.isNumber(c)&&o.default.isNumber(f)&&(this._range=new u.default.List([new Date(c),new Date(f)]))}}return i(e,[{key:"range",value:function(){return this._range}},{key:"toJSON",value:function(){return[this.begin().getTime(),this.end().getTime()]}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}},{key:"toLocalString",value:function(){return"[".concat(this.begin(),", ").concat(this.end(),"]")}},{key:"toUTCString",value:function(){return"[".concat(this.begin().toUTCString(),", ").concat(this.end().toUTCString(),"]")}},{key:"humanize",value:function(){var e=(0,s.default)(this.begin()),t=(0,s.default)(this.end()),n=e.format("MMM D, YYYY hh:mm:ss a"),r=t.format("MMM D, YYYY hh:mm:ss a");return"".concat(n," to ").concat(r)}},{key:"relativeString",value:function(){var e=(0,s.default)(this.begin()),t=(0,s.default)(this.end());return"".concat(e.fromNow()," to ").concat(t.fromNow())}},{key:"begin",value:function(){return this._range.get(0)}},{key:"end",value:function(){return this._range.get(1)}},{key:"setBegin",value:function(t){return new e(this._range.set(0,t))}},{key:"setEnd",value:function(t){return new e(this._range.set(1,t))}},{key:"equals",value:function(e){return this.begin().getTime()===e.begin().getTime()&&this.end().getTime()===e.end().getTime()}},{key:"contains",value:function(e){return o.default.isDate(e)?this.begin()<=e&&this.end()>=e:this.begin()<=e.begin()&&this.end()>=e.end()}},{key:"within",value:function(e){return this.begin()>=e.begin()&&this.end()<=e.end()}},{key:"overlaps",value:function(e){return!!(this.contains(e.begin())&&!this.contains(e.end())||this.contains(e.end())&&!this.contains(e.begin()))}},{key:"disjoint",value:function(e){return this.end()<e.begin()||this.begin()>e.end()}},{key:"extents",value:function(t){var n=this.begin()<t.begin()?this.begin():t.begin(),r=this.end()>t.end()?this.end():t.end();return new e(new Date(n.getTime()),new Date(r.getTime()))}},{key:"intersection",value:function(t){if(!this.disjoint(t)){var n=this.begin()>t.begin()?this.begin():t.begin(),r=this.end()<t.end()?this.end():t.end();return new e(new Date(n.getTime()),new Date(r.getTime()))}}},{key:"duration",value:function(){return this.end().getTime()-this.begin().getTime()}},{key:"humanizeDuration",value:function(){return s.default.duration(this.duration()).humanize()}}],[{key:"lastDay",value:function(){var t=(0,s.default)();return new e(t.clone().subtract(24,"hours"),t)}},{key:"lastSevenDays",value:function(){var t=(0,s.default)();return new e(t.clone().subtract(7,"days"),t)}},{key:"lastThirtyDays",value:function(){var t=(0,s.default)();return new e(t.clone().subtract(30,"days"),t)}},{key:"lastMonth",value:function(){var t=(0,s.default)();return new e(t.clone().subtract(1,"month"),t)}},{key:"lastNinetyDays",value:function(){var t=(0,s.default)();return new e(t.clone().subtract(90,"days"),t)}},{key:"lastYear",value:function(){var t=(0,s.default)();return new e(t.clone().subtract(1,"year"),t)}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(6),i=n(7),a=n(66),o=n(13),u=n(14),s=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;s(n(1));var l=s(n(20)),c=s(n(32)),f=s(n(23)),d=function(e){o(n,e);var t=u(n);function n(e,i){var o;if(r(this,n),o=t.call(this),e instanceof n){var u=e;return o._d=u._d,a(o)}if(e instanceof l.default.Map&&e.has("time")&&e.has("data"))return o._d=e,a(o);var s=f.default.timestampFromArg(e),c=f.default.dataFromArg(i);return o._d=new l.default.Map({time:s,data:c}),o}return i(n,[{key:"key",value:function(){return this.timestamp().getTime()}},{key:"toJSON",value:function(){return{time:this.timestamp().getTime(),data:this.data().toJSON()}}},{key:"toPoint",value:function(e){var t=this,n=[];return e.forEach((function(e){var r=t.data().get(e);n.push("undefined"===r?null:r)})),[this.timestamp().getTime()].concat(n)}},{key:"timestampAsUTCString",value:function(){return this.timestamp().toUTCString()}},{key:"timestampAsLocalString",value:function(){return this.timestamp().toString()}},{key:"timestamp",value:function(){return this._d.get("time")}},{key:"begin",value:function(){return this.timestamp()}},{key:"end",value:function(){return this.timestamp()}},{key:"stringify",value:function(){return JSON.stringify(this.data())}}]),n}(c.default);t.default=d},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(3),i=n(8),a=Object(r.a)((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*i.d)}),(function(e,t){return(t-e)/i.d}),(function(e){return e.getUTCSeconds()}));t.a=a;var o=a.range},function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var r=n(3),i=Object(r.a)((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Object(r.a)((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):i:null},t.a=i;var a=i.range},function(e,t,n){"use strict";function r(e){return e*e*e}function i(e){return--e*e*e+1}function a(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return a}))},function(e,t,n){"use strict";n.r(t),n.d(t,"timeFormatDefaultLocale",(function(){return r.a})),n.d(t,"timeFormat",(function(){return r.b})),n.d(t,"timeParse",(function(){return r.c})),n.d(t,"utcFormat",(function(){return r.d})),n.d(t,"utcParse",(function(){return r.e})),n.d(t,"timeFormatLocale",(function(){return i.a})),n.d(t,"isoFormat",(function(){return o})),n.d(t,"isoParse",(function(){return u}));var r=n(24),i=n(74),a="%Y-%m-%dT%H:%M:%S.%LZ";var o=Date.prototype.toISOString?function(e){return e.toISOString()}:Object(r.d)(a);var u=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:Object(r.e)(a)},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(3),i=n(8),a=Object(r.a)((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/i.a}),(function(e){return e.getUTCDate()-1}));t.a=a;var o=a.range},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),i=n(8),a=Object(r.a)((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i.c)/i.a}),(function(e){return e.getDate()-1}));t.b=a;var o=a.range},,function(e,t,n){var r=n(107);e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t,n){e.exports=n(144)},function(e,t,n){var r=n(147),i=n(148);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?i(e):t}},function(e,t,n){var r=n(155);function i(t,n,a){return"undefined"!==typeof Reflect&&Reflect.get?e.exports=i=Reflect.get:e.exports=i=function(e,t,n){var i=r(e,t);if(i){var a=Object.getOwnPropertyDescriptor(i,t);return a.get?a.get.call(n):a.value}},i(t,n,a||t)}e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=h(n(1)),o=h(n(2)),u=h(n(12)),s=h(n(15)),l=n(18),c=n(60),f=h(n(91)),d=h(n(69));function h(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var y=function(e){var t=e.time,n=e.format,r=void 0===n?"%m/%d/%y %X":n,i=void 0;a.default.isFunction(r)?i=r(t):i=(0,c.timeFormat)(r)(t);return o.default.createElement("text",{x:0,y:0,dy:"1.2em",style:{fontSize:11,textAnchor:"left",fill:"#bdbdbd",pointerEvents:"none"}},i)};y.propTypes={time:u.default.instanceOf(Date),format:u.default.oneOfType([u.default.func,u.default.string])},y.defaultProps={infoTimeFormat:"%m/%d/%y %X"};var m=function(e){var t=e.timerange,n=e.format,r=void 0===n?"%m/%d/%y %X":n,i=t.begin(),u=t.end(),s=void 0,l=void 0;if(a.default.isFunction(r))s=r(i),l=r(u);else{var f=(0,c.timeFormat)(r);s=f(i),l=f(u)}return o.default.createElement("text",{x:0,y:0,dy:"1.2em",style:{fontSize:11,textAnchor:"left",fill:"#bdbdbd",pointerEvents:"none"}},s+" to "+l)};m.propTypes={timerange:u.default.instanceOf(l.TimeRange),format:u.default.oneOfType([u.default.func,u.default.string])},m.defaultProps={infoTimeFormat:"%m/%d/%y %X"};var g=function(e){var t=e.index,n=e.format,r=void 0;if(a.default.isFunction(n))r=n(t);else if(a.default.isString(n)){r=(0,c.timeFormat)(n)(t.begin())}else r=t.toString();return o.default.createElement("text",{x:0,y:0,dy:"1.2em",style:{fontSize:11,textAnchor:"left",fill:"#bdbdbd",pointerEvents:"none"}},r)};g.propTypes={index:u.default.instanceOf(l.Index),format:u.default.oneOfType([u.default.func,u.default.string])};var b=function(e){function t(){return p(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"renderTime",value:function(e){return e instanceof l.TimeEvent?o.default.createElement(y,{time:e.timestamp(),format:this.props.infoTimeFormat}):e instanceof l.IndexedEvent?o.default.createElement(g,{index:e.index(),format:this.props.infoTimeFormat}):e instanceof l.TimeRangeEvent?o.default.createElement(m,{timerange:e.timerange(),format:this.props.infoTimeFormat}):o.default.createElement("g",null)}},{key:"renderMarker",value:function(e,t,n){var i=void 0;i=e instanceof l.TimeEvent?e.timestamp():new Date(e.begin().getTime()+(e.end().getTime()-e.begin().getTime())/2);var u=void 0;u=this.props.yValueFunc?this.props.yValueFunc(e,t):e.get(t);var c=this.props.timeScale(i)+this.props.offsetX,h=this.props.yScale(u)-this.props.offsetY,p=this.props.infoOffsetY,v={align:"left",style:this.props.infoStyle,width:this.props.infoWidth,height:this.props.infoHeight},y=this.props.infoWidth,m=h-10,g=void 0,b=void 0,_=void 0,w=void 0,k=void 0,S=void 0;if(n&&(w=a.default.isString(this.props.info)?o.default.createElement(f.default,r({},v,{label:n})):o.default.createElement(d.default,r({},v,{values:n}))),"point"===this.props.type){var x={fontSize:11,pointerEvents:"none",paintOrder:"stroke",fill:"#b0b0b0",strokeWidth:2,strokeLinecap:"butt",strokeLinejoin:"miter",fontWeight:800},O=0,M=0;switch(this.props.markerLabelAlign){case"left":O=5,x.textAnchor="start",x.alignmentBaseline="central";break;case"right":O=-5,x.textAnchor="end",x.alignmentBaseline="central";break;case"top":M=-5,x.textAnchor="middle",x.alignmentBaseline="bottom";break;case"bottom":M=5,x.textAnchor="middle",x.alignmentBaseline="hanging"}var E=(0,s.default)(!0,x,this.props.markerLabelStyle);return _=o.default.createElement("circle",{cx:c,cy:h,r:this.props.markerRadius,pointerEvents:"none",style:this.props.markerStyle}),S=o.default.createElement("text",{x:c,y:h,dx:O,dy:M,style:E},this.props.markerLabel),o.default.createElement("g",null,_,S)}return c+10+y<3*this.props.width/4?(n&&(g=o.default.createElement("line",{pointerEvents:"none",style:this.props.stemStyle,x1:-10,y1:m,x2:-10,y2:p}),b=o.default.createElement("line",{pointerEvents:"none",style:this.props.stemStyle,x1:-10,y1:p,x2:-2,y2:p})),_=o.default.createElement("circle",{cx:-10,cy:m,r:this.props.markerRadius,pointerEvents:"none",style:this.props.markerStyle}),k="translate("+(c+10)+",10)"):(n&&(g=o.default.createElement("line",{pointerEvents:"none",style:this.props.stemStyle,x1:y+10,y1:m,x2:y+10,y2:p}),b=o.default.createElement("line",{pointerEvents:"none",style:this.props.stemStyle,x1:y+10,y1:p,x2:y+2,y2:p})),_=o.default.createElement("circle",{cx:y+10,cy:m,r:this.props.markerRadius,pointerEvents:"none",style:this.props.markerStyle}),k="translate("+(c-y-10)+",10)"),o.default.createElement("g",{transform:k},g,b,_,o.default.createElement("g",{transform:"translate(0,"+(p-20)+")"},this.renderTime(e)),o.default.createElement("g",{transform:"translate(0,"+p+")"},w))}},{key:"render",value:function(){var e=this.props,t=e.event,n=e.column,r=e.info;return t?o.default.createElement("g",null,this.renderMarker(t,n,r)):o.default.createElement("g",null)}}]),t}(o.default.Component);t.default=b,b.propTypes={type:u.default.oneOf(["point","flag"]),event:u.default.oneOfType([u.default.instanceOf(l.TimeEvent),u.default.instanceOf(l.IndexedEvent),u.default.instanceOf(l.TimeRangeEvent)]),column:u.default.string,info:u.default.oneOfType([u.default.string,u.default.arrayOf(u.default.shape({label:u.default.string,value:u.default.string}))]),infoStyle:u.default.object,infoWidth:u.default.number,infoHeight:u.default.number,infoTimeFormat:u.default.oneOfType([u.default.func,u.default.string]),markerLabelAlign:u.default.oneOf(["left","right","top","bottom"]),markerRadius:u.default.number,markerStyle:u.default.object,yValueFunc:u.default.func,offsetX:u.default.number,offsetY:u.default.number,infoOffsetY:u.default.number,timeScale:u.default.func,yScale:u.default.func,width:u.default.number},b.defaultProps={type:"flag",column:"value",infoWidth:90,infoHeight:25,infoStyle:{fill:"white",opacity:.9,stroke:"#999",pointerEvents:"none"},stemStyle:{stroke:"#999",cursor:"crosshair",pointerEvents:"none"},markerStyle:{fill:"#999"},markerRadius:2,markerLabelAlign:"left",markerLabelStyle:{fill:"#999"},offsetX:0,offsetY:0,infoOffsetY:20}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(2)),i=o(n(12)),a=o(n(15));function o(e){return e&&e.__esModule?e:{default:e}}var u={fill:"#FEFEFE",stroke:"#DDD",opacity:.8},s={fontSize:11,textAnchor:"left",fill:"#b0b0b0",pointerEvents:"none"},l={fontSize:11,textAnchor:"middle",fill:"#bdbdbd",pointerEvents:"none"};var c=function(e){var t=e.align,n=e.style,i=e.width,o=e.height,c=function(e,t){return{boxStyle:(0,a.default)(!0,u,e.box?e.box:{}),labelStyle:(0,a.default)(!0,t?l:s,e.label?e.label:{})}}(n,"center"===t),f=c.boxStyle,d=c.labelStyle;if(!e.values.length)return r.default.createElement("g",null);var h=e.values.map((function(n,i){if("left"===t)return r.default.createElement("g",{key:i},r.default.createElement("text",{x:10,y:5,dy:1.2*(i+1)+"em",style:d},r.default.createElement("tspan",{style:{fontWeight:700}},n.label+": "),r.default.createElement("tspan",null,""+n.value)));var a=parseInt(e.width/2,10);return r.default.createElement("g",{key:i},r.default.createElement("text",{x:a,y:5,dy:1.2*(i+1)+"em",style:d},r.default.createElement("tspan",{style:{fontWeight:700}},n.label+": "),r.default.createElement("tspan",null,""+n.value)))})),p=r.default.createElement("rect",{style:f,x:0,y:0,width:i,height:o});return r.default.createElement("g",null,p,h)};c.defaultProps={align:"center",width:100,height:100,pointerEvents:"none",style:{fill:"#FEFEFE",stroke:"#DDD",opacity:.8}},c.propTypes={align:i.default.oneOf(["center","left"]),values:i.default.arrayOf(i.default.shape({label:i.default.string,value:i.default.oneOfType([i.default.number,i.default.string])})).isRequired,style:i.default.object,width:i.default.number,height:i.default.number},t.default=c},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return u}));var r,i,a,o=n(79);function u(e){return r=Object(o.a)(e),i=r.format,a=r.formatPrefix,r}u({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"})},function(e,t,n){"use strict";n.r(t);var r=n(70);n.d(t,"formatDefaultLocale",(function(){return r.a})),n.d(t,"format",(function(){return r.b})),n.d(t,"formatPrefix",(function(){return r.c}));var i=n(79);n.d(t,"formatLocale",(function(){return i.a}));var a=n(45);n.d(t,"formatSpecifier",(function(){return a.b})),n.d(t,"FormatSpecifier",(function(){return a.a}));var o=n(121);n.d(t,"precisionFixed",(function(){return o.a}));var u=n(119);n.d(t,"precisionPrefix",(function(){return u.a}));var s=n(120);n.d(t,"precisionRound",(function(){return s.a}))},function(e,t,n){"use strict";n.r(t);var r=n(3);n.d(t,"timeInterval",(function(){return r.a}));var i=n(58);n.d(t,"timeMillisecond",(function(){return i.a})),n.d(t,"timeMilliseconds",(function(){return i.b})),n.d(t,"utcMillisecond",(function(){return i.a})),n.d(t,"utcMilliseconds",(function(){return i.b}));var a=n(57);n.d(t,"timeSecond",(function(){return a.a})),n.d(t,"timeSeconds",(function(){return a.b})),n.d(t,"utcSecond",(function(){return a.a})),n.d(t,"utcSeconds",(function(){return a.b}));var o=n(95);n.d(t,"timeMinute",(function(){return o.a})),n.d(t,"timeMinutes",(function(){return o.b}));var u=n(94);n.d(t,"timeHour",(function(){return u.a})),n.d(t,"timeHours",(function(){return u.b}));var s=n(62);n.d(t,"timeDay",(function(){return s.b})),n.d(t,"timeDays",(function(){return s.a}));var l=n(10);n.d(t,"timeWeek",(function(){return l.g})),n.d(t,"timeWeeks",(function(){return l.h})),n.d(t,"timeSunday",(function(){return l.g})),n.d(t,"timeSundays",(function(){return l.h})),n.d(t,"timeMonday",(function(){return l.c})),n.d(t,"timeMondays",(function(){return l.d})),n.d(t,"timeTuesday",(function(){return l.k})),n.d(t,"timeTuesdays",(function(){return l.l})),n.d(t,"timeWednesday",(function(){return l.m})),n.d(t,"timeWednesdays",(function(){return l.n})),n.d(t,"timeThursday",(function(){return l.i})),n.d(t,"timeThursdays",(function(){return l.j})),n.d(t,"timeFriday",(function(){return l.a})),n.d(t,"timeFridays",(function(){return l.b})),n.d(t,"timeSaturday",(function(){return l.e})),n.d(t,"timeSaturdays",(function(){return l.f}));var c=n(93);n.d(t,"timeMonth",(function(){return c.a})),n.d(t,"timeMonths",(function(){return c.b}));var f=n(36);n.d(t,"timeYear",(function(){return f.a})),n.d(t,"timeYears",(function(){return f.b}));var d=n(98);n.d(t,"utcMinute",(function(){return d.a})),n.d(t,"utcMinutes",(function(){return d.b}));var h=n(97);n.d(t,"utcHour",(function(){return h.a})),n.d(t,"utcHours",(function(){return h.b}));var p=n(61);n.d(t,"utcDay",(function(){return p.a})),n.d(t,"utcDays",(function(){return p.b}));var v=n(9);n.d(t,"utcWeek",(function(){return v.g})),n.d(t,"utcWeeks",(function(){return v.h})),n.d(t,"utcSunday",(function(){return v.g})),n.d(t,"utcSundays",(function(){return v.h})),n.d(t,"utcMonday",(function(){return v.c})),n.d(t,"utcMondays",(function(){return v.d})),n.d(t,"utcTuesday",(function(){return v.k})),n.d(t,"utcTuesdays",(function(){return v.l})),n.d(t,"utcWednesday",(function(){return v.m})),n.d(t,"utcWednesdays",(function(){return v.n})),n.d(t,"utcThursday",(function(){return v.i})),n.d(t,"utcThursdays",(function(){return v.j})),n.d(t,"utcFriday",(function(){return v.a})),n.d(t,"utcFridays",(function(){return v.b})),n.d(t,"utcSaturday",(function(){return v.e})),n.d(t,"utcSaturdays",(function(){return v.f}));var y=n(96);n.d(t,"utcMonth",(function(){return y.a})),n.d(t,"utcMonths",(function(){return y.b}));var m=n(37);n.d(t,"utcYear",(function(){return m.a})),n.d(t,"utcYears",(function(){return m.b}))},function(e,t,n){"use strict";n.r(t),n.d(t,"arc",(function(){return D})),n.d(t,"area",(function(){return I})),n.d(t,"line",(function(){return R})),n.d(t,"pie",(function(){return F})),n.d(t,"areaRadial",(function(){return V})),n.d(t,"radialArea",(function(){return V})),n.d(t,"lineRadial",(function(){return q})),n.d(t,"radialLine",(function(){return q})),n.d(t,"pointRadial",(function(){return Z})),n.d(t,"linkHorizontal",(function(){return te})),n.d(t,"linkVertical",(function(){return ne})),n.d(t,"linkRadial",(function(){return re})),n.d(t,"symbol",(function(){return ke})),n.d(t,"symbols",(function(){return we})),n.d(t,"symbolCircle",(function(){return ie})),n.d(t,"symbolCross",(function(){return ae})),n.d(t,"symbolDiamond",(function(){return se})),n.d(t,"symbolSquare",(function(){return he})),n.d(t,"symbolStar",(function(){return de})),n.d(t,"symbolTriangle",(function(){return ve})),n.d(t,"symbolWye",(function(){return _e})),n.d(t,"curveBasisClosed",(function(){return Te})),n.d(t,"curveBasisOpen",(function(){return Pe})),n.d(t,"curveBasis",(function(){return Me})),n.d(t,"curveBundle",(function(){return je})),n.d(t,"curveCardinalClosed",(function(){return Ie})),n.d(t,"curveCardinalOpen",(function(){return Ue})),n.d(t,"curveCardinal",(function(){return ze})),n.d(t,"curveCatmullRomClosed",(function(){return We})),n.d(t,"curveCatmullRomOpen",(function(){return Ve})),n.d(t,"curveCatmullRom",(function(){return Be})),n.d(t,"curveLinearClosed",(function(){return Ge})),n.d(t,"curveLinear",(function(){return N})),n.d(t,"curveMonotoneX",(function(){return nt})),n.d(t,"curveMonotoneY",(function(){return rt})),n.d(t,"curveNatural",(function(){return ot})),n.d(t,"curveStep",(function(){return st})),n.d(t,"curveStepAfter",(function(){return ct})),n.d(t,"curveStepBefore",(function(){return lt})),n.d(t,"stack",(function(){return pt})),n.d(t,"stackOffsetExpand",(function(){return vt})),n.d(t,"stackOffsetDiverging",(function(){return yt})),n.d(t,"stackOffsetNone",(function(){return ft})),n.d(t,"stackOffsetSilhouette",(function(){return mt})),n.d(t,"stackOffsetWiggle",(function(){return gt})),n.d(t,"stackOrderAppearance",(function(){return bt})),n.d(t,"stackOrderAscending",(function(){return wt})),n.d(t,"stackOrderDescending",(function(){return St})),n.d(t,"stackOrderInsideOut",(function(){return xt})),n.d(t,"stackOrderNone",(function(){return dt})),n.d(t,"stackOrderReverse",(function(){return Ot}));var r=Math.PI,i=2*r,a=1e-6,o=i-a;function u(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function s(){return new u}u.prototype=s.prototype={constructor:u,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,a){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+a)},arcTo:function(e,t,n,i,o){e=+e,t=+t,n=+n,i=+i,o=+o;var u=this._x1,s=this._y1,l=n-e,c=i-t,f=u-e,d=s-t,h=f*f+d*d;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(h>a)if(Math.abs(d*l-c*f)>a&&o){var p=n-u,v=i-s,y=l*l+c*c,m=p*p+v*v,g=Math.sqrt(y),b=Math.sqrt(h),_=o*Math.tan((r-Math.acos((y+h-m)/(2*g*b)))/2),w=_/b,k=_/g;Math.abs(w-1)>a&&(this._+="L"+(e+w*f)+","+(t+w*d)),this._+="A"+o+","+o+",0,0,"+ +(d*p>f*v)+","+(this._x1=e+k*l)+","+(this._y1=t+k*c)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,u,s,l){e=+e,t=+t,l=!!l;var c=(n=+n)*Math.cos(u),f=n*Math.sin(u),d=e+c,h=t+f,p=1^l,v=l?u-s:s-u;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+d+","+h:(Math.abs(this._x1-d)>a||Math.abs(this._y1-h)>a)&&(this._+="L"+d+","+h),n&&(v<0&&(v=v%i+i),v>o?this._+="A"+n+","+n+",0,1,"+p+","+(e-c)+","+(t-f)+"A"+n+","+n+",0,1,"+p+","+(this._x1=d)+","+(this._y1=h):v>a&&(this._+="A"+n+","+n+",0,"+ +(v>=r)+","+p+","+(this._x1=e+n*Math.cos(s))+","+(this._y1=t+n*Math.sin(s))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var l=s,c=function(e){return function(){return e}},f=Math.abs,d=Math.atan2,h=Math.cos,p=Math.max,v=Math.min,y=Math.sin,m=Math.sqrt,g=1e-12,b=Math.PI,_=b/2,w=2*b;function k(e){return e>1?0:e<-1?b:Math.acos(e)}function S(e){return e>=1?_:e<=-1?-_:Math.asin(e)}function x(e){return e.innerRadius}function O(e){return e.outerRadius}function M(e){return e.startAngle}function E(e){return e.endAngle}function T(e){return e&&e.padAngle}function C(e,t,n,r,i,a,o,u){var s=n-e,l=r-t,c=o-i,f=u-a,d=f*s-c*l;if(!(d*d<g))return[e+(d=(c*(t-a)-f*(e-i))/d)*s,t+d*l]}function P(e,t,n,r,i,a,o){var u=e-n,s=t-r,l=(o?a:-a)/m(u*u+s*s),c=l*s,f=-l*u,d=e+c,h=t+f,v=n+c,y=r+f,g=(d+v)/2,b=(h+y)/2,_=v-d,w=y-h,k=_*_+w*w,S=i-a,x=d*y-v*h,O=(w<0?-1:1)*m(p(0,S*S*k-x*x)),M=(x*w-_*O)/k,E=(-x*_-w*O)/k,T=(x*w+_*O)/k,C=(-x*_+w*O)/k,P=M-g,D=E-b,j=T-g,N=C-b;return P*P+D*D>j*j+N*N&&(M=T,E=C),{cx:M,cy:E,x01:-c,y01:-f,x11:M*(i/S-1),y11:E*(i/S-1)}}var D=function(){var e=x,t=O,n=c(0),r=null,i=M,a=E,o=T,u=null;function s(){var s,c,p=+e.apply(this,arguments),x=+t.apply(this,arguments),O=i.apply(this,arguments)-_,M=a.apply(this,arguments)-_,E=f(M-O),T=M>O;if(u||(u=s=l()),x<p&&(c=x,x=p,p=c),x>g)if(E>w-g)u.moveTo(x*h(O),x*y(O)),u.arc(0,0,x,O,M,!T),p>g&&(u.moveTo(p*h(M),p*y(M)),u.arc(0,0,p,M,O,T));else{var D,j,N=O,A=M,z=O,R=M,I=E,L=E,U=o.apply(this,arguments)/2,F=U>g&&(r?+r.apply(this,arguments):m(p*p+x*x)),Y=v(f(x-p)/2,+n.apply(this,arguments)),B=Y,H=Y;if(F>g){var W=S(F/p*y(U)),q=S(F/x*y(U));(I-=2*W)>g?(z+=W*=T?1:-1,R-=W):(I=0,z=R=(O+M)/2),(L-=2*q)>g?(N+=q*=T?1:-1,A-=q):(L=0,N=A=(O+M)/2)}var V=x*h(N),Z=x*y(N),G=p*h(R),$=p*y(R);if(Y>g){var K,X=x*h(A),J=x*y(A),Q=p*h(z),ee=p*y(z);if(E<b&&(K=C(V,Z,Q,ee,X,J,G,$))){var te=V-K[0],ne=Z-K[1],re=X-K[0],ie=J-K[1],ae=1/y(k((te*re+ne*ie)/(m(te*te+ne*ne)*m(re*re+ie*ie)))/2),oe=m(K[0]*K[0]+K[1]*K[1]);B=v(Y,(p-oe)/(ae-1)),H=v(Y,(x-oe)/(ae+1))}}L>g?H>g?(D=P(Q,ee,V,Z,x,H,T),j=P(X,J,G,$,x,H,T),u.moveTo(D.cx+D.x01,D.cy+D.y01),H<Y?u.arc(D.cx,D.cy,H,d(D.y01,D.x01),d(j.y01,j.x01),!T):(u.arc(D.cx,D.cy,H,d(D.y01,D.x01),d(D.y11,D.x11),!T),u.arc(0,0,x,d(D.cy+D.y11,D.cx+D.x11),d(j.cy+j.y11,j.cx+j.x11),!T),u.arc(j.cx,j.cy,H,d(j.y11,j.x11),d(j.y01,j.x01),!T))):(u.moveTo(V,Z),u.arc(0,0,x,N,A,!T)):u.moveTo(V,Z),p>g&&I>g?B>g?(D=P(G,$,X,J,p,-B,T),j=P(V,Z,Q,ee,p,-B,T),u.lineTo(D.cx+D.x01,D.cy+D.y01),B<Y?u.arc(D.cx,D.cy,B,d(D.y01,D.x01),d(j.y01,j.x01),!T):(u.arc(D.cx,D.cy,B,d(D.y01,D.x01),d(D.y11,D.x11),!T),u.arc(0,0,p,d(D.cy+D.y11,D.cx+D.x11),d(j.cy+j.y11,j.cx+j.x11),T),u.arc(j.cx,j.cy,B,d(j.y11,j.x11),d(j.y01,j.x01),!T))):u.arc(0,0,p,R,z,T):u.lineTo(G,$)}else u.moveTo(0,0);if(u.closePath(),s)return u=null,s+""||null}return s.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-b/2;return[h(r)*n,y(r)*n]},s.innerRadius=function(t){return arguments.length?(e="function"===typeof t?t:c(+t),s):e},s.outerRadius=function(e){return arguments.length?(t="function"===typeof e?e:c(+e),s):t},s.cornerRadius=function(e){return arguments.length?(n="function"===typeof e?e:c(+e),s):n},s.padRadius=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:c(+e),s):r},s.startAngle=function(e){return arguments.length?(i="function"===typeof e?e:c(+e),s):i},s.endAngle=function(e){return arguments.length?(a="function"===typeof e?e:c(+e),s):a},s.padAngle=function(e){return arguments.length?(o="function"===typeof e?e:c(+e),s):o},s.context=function(e){return arguments.length?(u=null==e?null:e,s):u},s};function j(e){this._context=e}j.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var N=function(e){return new j(e)};function A(e){return e[0]}function z(e){return e[1]}var R=function(){var e=A,t=z,n=c(!0),r=null,i=N,a=null;function o(o){var u,s,c,f=o.length,d=!1;for(null==r&&(a=i(c=l())),u=0;u<=f;++u)!(u<f&&n(s=o[u],u,o))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(s,u,o),+t(s,u,o));if(c)return a=null,c+""||null}return o.x=function(t){return arguments.length?(e="function"===typeof t?t:c(+t),o):e},o.y=function(e){return arguments.length?(t="function"===typeof e?e:c(+e),o):t},o.defined=function(e){return arguments.length?(n="function"===typeof e?e:c(!!e),o):n},o.curve=function(e){return arguments.length?(i=e,null!=r&&(a=i(r)),o):i},o.context=function(e){return arguments.length?(null==e?r=a=null:a=i(r=e),o):r},o},I=function(){var e=A,t=null,n=c(0),r=z,i=c(!0),a=null,o=N,u=null;function s(s){var c,f,d,h,p,v=s.length,y=!1,m=new Array(v),g=new Array(v);for(null==a&&(u=o(p=l())),c=0;c<=v;++c){if(!(c<v&&i(h=s[c],c,s))===y)if(y=!y)f=c,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),d=c-1;d>=f;--d)u.point(m[d],g[d]);u.lineEnd(),u.areaEnd()}y&&(m[c]=+e(h,c,s),g[c]=+n(h,c,s),u.point(t?+t(h,c,s):m[c],r?+r(h,c,s):g[c]))}if(p)return u=null,p+""||null}function f(){return R().defined(i).curve(o).context(a)}return s.x=function(n){return arguments.length?(e="function"===typeof n?n:c(+n),t=null,s):e},s.x0=function(t){return arguments.length?(e="function"===typeof t?t:c(+t),s):e},s.x1=function(e){return arguments.length?(t=null==e?null:"function"===typeof e?e:c(+e),s):t},s.y=function(e){return arguments.length?(n="function"===typeof e?e:c(+e),r=null,s):n},s.y0=function(e){return arguments.length?(n="function"===typeof e?e:c(+e),s):n},s.y1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:c(+e),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(n)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(t).y(n)},s.defined=function(e){return arguments.length?(i="function"===typeof e?e:c(!!e),s):i},s.curve=function(e){return arguments.length?(o=e,null!=a&&(u=o(a)),s):o},s.context=function(e){return arguments.length?(null==e?a=u=null:u=o(a=e),s):a},s},L=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},U=function(e){return e},F=function(){var e=U,t=L,n=null,r=c(0),i=c(w),a=c(0);function o(o){var u,s,l,c,f,d=o.length,h=0,p=new Array(d),v=new Array(d),y=+r.apply(this,arguments),m=Math.min(w,Math.max(-w,i.apply(this,arguments)-y)),g=Math.min(Math.abs(m)/d,a.apply(this,arguments)),b=g*(m<0?-1:1);for(u=0;u<d;++u)(f=v[p[u]=u]=+e(o[u],u,o))>0&&(h+=f);for(null!=t?p.sort((function(e,n){return t(v[e],v[n])})):null!=n&&p.sort((function(e,t){return n(o[e],o[t])})),u=0,l=h?(m-d*b)/h:0;u<d;++u,y=c)s=p[u],c=y+((f=v[s])>0?f*l:0)+b,v[s]={data:o[s],index:u,value:f,startAngle:y,endAngle:c,padAngle:g};return v}return o.value=function(t){return arguments.length?(e="function"===typeof t?t:c(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r="function"===typeof e?e:c(+e),o):r},o.endAngle=function(e){return arguments.length?(i="function"===typeof e?e:c(+e),o):i},o.padAngle=function(e){return arguments.length?(a="function"===typeof e?e:c(+e),o):a},o},Y=H(N);function B(e){this._curve=e}function H(e){function t(t){return new B(e(t))}return t._curve=e,t}function W(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(H(e)):t()._curve},e}B.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var q=function(){return W(R().curve(Y))},V=function(){var e=I().curve(Y),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,a=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return W(n())},delete e.lineX0,e.lineEndAngle=function(){return W(r())},delete e.lineX1,e.lineInnerRadius=function(){return W(i())},delete e.lineY0,e.lineOuterRadius=function(){return W(a())},delete e.lineY1,e.curve=function(e){return arguments.length?t(H(e)):t()._curve},e},Z=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},G=Array.prototype.slice;function $(e){return e.source}function K(e){return e.target}function X(e){var t=$,n=K,r=A,i=z,a=null;function o(){var o,u=G.call(arguments),s=t.apply(this,u),c=n.apply(this,u);if(a||(a=o=l()),e(a,+r.apply(this,(u[0]=s,u)),+i.apply(this,u),+r.apply(this,(u[0]=c,u)),+i.apply(this,u)),o)return a=null,o+""||null}return o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(e){return arguments.length?(n=e,o):n},o.x=function(e){return arguments.length?(r="function"===typeof e?e:c(+e),o):r},o.y=function(e){return arguments.length?(i="function"===typeof e?e:c(+e),o):i},o.context=function(e){return arguments.length?(a=null==e?null:e,o):a},o}function J(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function Q(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function ee(e,t,n,r,i){var a=Z(t,n),o=Z(t,n=(n+i)/2),u=Z(r,n),s=Z(r,i);e.moveTo(a[0],a[1]),e.bezierCurveTo(o[0],o[1],u[0],u[1],s[0],s[1])}function te(){return X(J)}function ne(){return X(Q)}function re(){var e=X(ee);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var ie={draw:function(e,t){var n=Math.sqrt(t/b);e.moveTo(n,0),e.arc(0,0,n,0,w)}},ae={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},oe=Math.sqrt(1/3),ue=2*oe,se={draw:function(e,t){var n=Math.sqrt(t/ue),r=n*oe;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},le=Math.sin(b/10)/Math.sin(7*b/10),ce=Math.sin(w/10)*le,fe=-Math.cos(w/10)*le,de={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=ce*n,i=fe*n;e.moveTo(0,-n),e.lineTo(r,i);for(var a=1;a<5;++a){var o=w*a/5,u=Math.cos(o),s=Math.sin(o);e.lineTo(s*n,-u*n),e.lineTo(u*r-s*i,s*r+u*i)}e.closePath()}},he={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},pe=Math.sqrt(3),ve={draw:function(e,t){var n=-Math.sqrt(t/(3*pe));e.moveTo(0,2*n),e.lineTo(-pe*n,-n),e.lineTo(pe*n,-n),e.closePath()}},ye=-.5,me=Math.sqrt(3)/2,ge=1/Math.sqrt(12),be=3*(ge/2+1),_e={draw:function(e,t){var n=Math.sqrt(t/be),r=n/2,i=n*ge,a=r,o=n*ge+n,u=-a,s=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(ye*r-me*i,me*r+ye*i),e.lineTo(ye*a-me*o,me*a+ye*o),e.lineTo(ye*u-me*s,me*u+ye*s),e.lineTo(ye*r+me*i,ye*i-me*r),e.lineTo(ye*a+me*o,ye*o-me*a),e.lineTo(ye*u+me*s,ye*s-me*u),e.closePath()}},we=[ie,ae,se,he,de,ve,_e],ke=function(){var e=c(ie),t=c(64),n=null;function r(){var r;if(n||(n=r=l()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"===typeof t?t:c(t),r):e},r.size=function(e){return arguments.length?(t="function"===typeof e?e:c(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r},Se=function(){};function xe(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Oe(e){this._context=e}Oe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:xe(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:xe(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Me=function(e){return new Oe(e)};function Ee(e){this._context=e}Ee.prototype={areaStart:Se,areaEnd:Se,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:xe(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Te=function(e){return new Ee(e)};function Ce(e){this._context=e}Ce.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:xe(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Pe=function(e){return new Ce(e)};function De(e,t){this._basis=new Oe(e),this._beta=t}De.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],a=t[0],o=e[n]-i,u=t[n]-a,s=-1;++s<=n;)r=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(i+r*o),this._beta*t[s]+(1-this._beta)*(a+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var je=function e(t){function n(e){return 1===t?new Oe(e):new De(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function Ne(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Ae(e,t){this._context=e,this._k=(1-t)/6}Ae.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ne(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Ne(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ze=function e(t){function n(e){return new Ae(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Re(e,t){this._context=e,this._k=(1-t)/6}Re.prototype={areaStart:Se,areaEnd:Se,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ne(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ie=function e(t){function n(e){return new Re(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Le(e,t){this._context=e,this._k=(1-t)/6}Le.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(e,t){switch(e=+e,t=+t,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:Ne(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ue=function e(t){function n(e){return new Le(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Fe(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>g){var u=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*u-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,i=(i*u-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>g){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/c,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function Ye(e,t){this._context=e,this._alpha=t}Ye.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(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Fe(this,e,t)}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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Be=function e(t){function n(e){return t?new Ye(e,t):new Ae(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function He(e,t){this._context=e,this._alpha=t}He.prototype={areaStart:Se,areaEnd:Se,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Fe(this,e,t)}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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var We=function e(t){function n(e){return t?new He(e,t):new Re(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function qe(e,t){this._context=e,this._alpha=t}qe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Fe(this,e,t)}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=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ve=function e(t){function n(e){return t?new qe(e,t):new Le(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Ze(e){this._context=e}Ze.prototype={areaStart:Se,areaEnd:Se,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var Ge=function(e){return new Ze(e)};function $e(e){return e<0?-1:1}function Ke(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),u=(a*i+o*r)/(r+i);return($e(a)+$e(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Xe(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Je(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-r)/3;e._context.bezierCurveTo(r+u,i+u*t,a-u,o-u*n,a,o)}function Qe(e){this._context=e}function et(e){this._context=new tt(e)}function tt(e){this._context=e}function nt(e){return new Qe(e)}function rt(e){return new et(e)}function it(e){this._context=e}function at(e){var t,n,r=e.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}Qe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Je(this,this._t0,Xe(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Je(this,Xe(this,n=Ke(this,e,t)),n);break;default:Je(this,this._t0,n=Ke(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(et.prototype=Object.create(Qe.prototype)).point=function(e,t){Qe.prototype.point.call(this,t,e)},tt.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}},it.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=at(e),i=at(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var ot=function(e){return new it(e)};function ut(e,t){this._context=e,this._t=t}ut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var st=function(e){return new ut(e,.5)};function lt(e){return new ut(e,0)}function ct(e){return new ut(e,1)}var ft=function(e,t){if((i=e.length)>1)for(var n,r,i,a=1,o=e[t[0]],u=o.length;a<i;++a)for(r=o,o=e[t[a]],n=0;n<u;++n)o[n][1]+=o[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},dt=function(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n};function ht(e,t){return e[t]}var pt=function(){var e=c([]),t=dt,n=ft,r=ht;function i(i){var a,o,u=e.apply(this,arguments),s=i.length,l=u.length,c=new Array(l);for(a=0;a<l;++a){for(var f,d=u[a],h=c[a]=new Array(s),p=0;p<s;++p)h[p]=f=[0,+r(i[p],d,p,i)],f.data=i[p];h.key=d}for(a=0,o=t(c);a<l;++a)c[o[a]].index=a;return n(c,o),c}return i.keys=function(t){return arguments.length?(e="function"===typeof t?t:c(G.call(t)),i):e},i.value=function(e){return arguments.length?(r="function"===typeof e?e:c(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?dt:"function"===typeof e?e:c(G.call(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?ft:e,i):n},i},vt=function(e,t){if((r=e.length)>0){for(var n,r,i,a=0,o=e[0].length;a<o;++a){for(i=n=0;n<r;++n)i+=e[n][a][1]||0;if(i)for(n=0;n<r;++n)e[n][a][1]/=i}ft(e,t)}},yt=function(e,t){if((u=e.length)>0)for(var n,r,i,a,o,u,s=0,l=e[t[0]].length;s<l;++s)for(a=o=0,n=0;n<u;++n)(i=(r=e[t[n]][s])[1]-r[0])>0?(r[0]=a,r[1]=a+=i):i<0?(r[1]=o,r[0]=o+=i):(r[0]=0,r[1]=i)},mt=function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],a=i.length;r<a;++r){for(var o=0,u=0;o<n;++o)u+=e[o][r][1]||0;i[r][1]+=i[r][0]=-u/2}ft(e,t)}},gt=function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,a=0,o=1;o<r;++o){for(var u=0,s=0,l=0;u<i;++u){for(var c=e[t[u]],f=c[o][1]||0,d=(f-(c[o-1][1]||0))/2,h=0;h<u;++h){var p=e[t[h]];d+=(p[o][1]||0)-(p[o-1][1]||0)}s+=f,l+=d*f}n[o-1][1]+=n[o-1][0]=a,s&&(a-=l/s)}n[o-1][1]+=n[o-1][0]=a,ft(e,t)}},bt=function(e){var t=e.map(_t);return dt(e).sort((function(e,n){return t[e]-t[n]}))};function _t(e){for(var t,n=-1,r=0,i=e.length,a=-1/0;++n<i;)(t=+e[n][1])>a&&(a=t,r=n);return r}var wt=function(e){var t=e.map(kt);return dt(e).sort((function(e,n){return t[e]-t[n]}))};function kt(e){for(var t,n=0,r=-1,i=e.length;++r<i;)(t=+e[r][1])&&(n+=t);return n}var St=function(e){return wt(e).reverse()},xt=function(e){var t,n,r=e.length,i=e.map(kt),a=bt(e),o=0,u=0,s=[],l=[];for(t=0;t<r;++t)n=a[t],o<u?(o+=i[n],s.push(n)):(u+=i[n],l.push(n));return l.reverse().concat(s)},Ot=function(e){return dt(e).reverse()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(9),i=n(61),a=n(10),o=n(62),u=n(36),s=n(37);function l(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function c(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function f(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function d(e){var t=e.dateTime,n=e.date,u=e.time,s=e.periods,d=e.days,p=e.shortDays,v=e.months,y=e.shortMonths,m=b(s),g=_(s),J=b(d),ge=_(d),Pe=b(p),De=_(p),je=b(v),Ne=_(v),Ae=b(y),ze=_(y),Re={a:function(e){return p[e.getDay()]},A:function(e){return d[e.getDay()]},b:function(e){return y[e.getMonth()]},B:function(e){return v[e.getMonth()]},c:null,d:Y,e:Y,f:V,g:re,G:ae,H:B,I:H,j:W,L:q,m:Z,M:G,p:function(e){return s[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Te,s:Ce,S:$,u:K,U:X,V:Q,w:ee,W:te,x:null,X:null,y:ne,Y:ie,Z:oe,"%":Ee},Ie={a:function(e){return p[e.getUTCDay()]},A:function(e){return d[e.getUTCDay()]},b:function(e){return y[e.getUTCMonth()]},B:function(e){return v[e.getUTCMonth()]},c:null,d:ue,e:ue,f:de,g:Se,G:Oe,H:se,I:le,j:ce,L:fe,m:he,M:pe,p:function(e){return s[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Te,s:Ce,S:ve,u:ye,U:me,V:be,w:_e,W:we,x:null,X:null,y:ke,Y:xe,Z:Me,"%":Ee},Le={a:function(e,t,n){var r=Pe.exec(t.slice(n));return r?(e.w=De[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=J.exec(t.slice(n));return r?(e.w=ge[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=Ae.exec(t.slice(n));return r?(e.m=ze[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=je.exec(t.slice(n));return r?(e.m=Ne[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return Ye(e,t,n,r)},d:D,e:D,f:I,g:E,G:M,H:N,I:N,j:j,L:R,m:P,M:A,p:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.p=g[r[0].toLowerCase()],n+r[0].length):-1},q:C,Q:U,s:F,S:z,u:k,U:S,V:x,w:w,W:O,x:function(e,t,r){return Ye(e,n,t,r)},X:function(e,t,n){return Ye(e,u,t,n)},y:E,Y:M,Z:T,"%":L};function Ue(e,t){return function(n){var r,i,a,o=[],u=-1,s=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++u<l;)37===e.charCodeAt(u)&&(o.push(e.slice(s,u)),null!=(i=h[r=e.charAt(++u)])?r=e.charAt(++u):i="e"===r?" ":"0",(a=t[r])&&(r=a(n,i)),o.push(r),s=u+1);return o.push(e.slice(s,u)),o.join("")}}function Fe(e,t){return function(n){var u,s,d=f(1900,void 0,1);if(Ye(d,e,n+="",0)!=n.length)return null;if("Q"in d)return new Date(d.Q);if("s"in d)return new Date(1e3*d.s+("L"in d?d.L:0));if(t&&!("Z"in d)&&(d.Z=0),"p"in d&&(d.H=d.H%12+12*d.p),void 0===d.m&&(d.m="q"in d?d.q:0),"V"in d){if(d.V<1||d.V>53)return null;"w"in d||(d.w=1),"Z"in d?(s=(u=c(f(d.y,0,1))).getUTCDay(),u=s>4||0===s?r.c.ceil(u):Object(r.c)(u),u=i.a.offset(u,7*(d.V-1)),d.y=u.getUTCFullYear(),d.m=u.getUTCMonth(),d.d=u.getUTCDate()+(d.w+6)%7):(s=(u=l(f(d.y,0,1))).getDay(),u=s>4||0===s?a.c.ceil(u):Object(a.c)(u),u=o.b.offset(u,7*(d.V-1)),d.y=u.getFullYear(),d.m=u.getMonth(),d.d=u.getDate()+(d.w+6)%7)}else("W"in d||"U"in d)&&("w"in d||(d.w="u"in d?d.u%7:"W"in d?1:0),s="Z"in d?c(f(d.y,0,1)).getUTCDay():l(f(d.y,0,1)).getDay(),d.m=0,d.d="W"in d?(d.w+6)%7+7*d.W-(s+5)%7:d.w+7*d.U-(s+6)%7);return"Z"in d?(d.H+=d.Z/100|0,d.M+=d.Z%100,c(d)):l(d)}}function Ye(e,t,n,r){for(var i,a,o=0,u=t.length,s=n.length;o<u;){if(r>=s)return-1;if(37===(i=t.charCodeAt(o++))){if(i=t.charAt(o++),!(a=Le[i in h?t.charAt(o++):i])||(r=a(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return Re.x=Ue(n,Re),Re.X=Ue(u,Re),Re.c=Ue(t,Re),Ie.x=Ue(n,Ie),Ie.X=Ue(u,Ie),Ie.c=Ue(t,Ie),{format:function(e){var t=Ue(e+="",Re);return t.toString=function(){return e},t},parse:function(e){var t=Fe(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=Ue(e+="",Ie);return t.toString=function(){return e},t},utcParse:function(e){var t=Fe(e+="",!0);return t.toString=function(){return e},t}}}var h={"-":"",_:" ",0:"0"},p=/^\s*\d+/,v=/^%/,y=/[\\^$*+?|[\]().{}]/g;function m(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function g(e){return e.replace(y,"\\$&")}function b(e){return new RegExp("^(?:"+e.map(g).join("|")+")","i")}function _(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function w(e,t,n){var r=p.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function k(e,t,n){var r=p.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function S(e,t,n){var r=p.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function x(e,t,n){var r=p.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function O(e,t,n){var r=p.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function M(e,t,n){var r=p.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function T(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function C(e,t,n){var r=p.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function P(e,t,n){var r=p.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function D(e,t,n){var r=p.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function j(e,t,n){var r=p.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function N(e,t,n){var r=p.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function A(e,t,n){var r=p.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function z(e,t,n){var r=p.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function R(e,t,n){var r=p.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function I(e,t,n){var r=p.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function L(e,t,n){var r=v.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function U(e,t,n){var r=p.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function F(e,t,n){var r=p.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Y(e,t){return m(e.getDate(),t,2)}function B(e,t){return m(e.getHours(),t,2)}function H(e,t){return m(e.getHours()%12||12,t,2)}function W(e,t){return m(1+o.b.count(Object(u.a)(e),e),t,3)}function q(e,t){return m(e.getMilliseconds(),t,3)}function V(e,t){return q(e,t)+"000"}function Z(e,t){return m(e.getMonth()+1,t,2)}function G(e,t){return m(e.getMinutes(),t,2)}function $(e,t){return m(e.getSeconds(),t,2)}function K(e){var t=e.getDay();return 0===t?7:t}function X(e,t){return m(a.g.count(Object(u.a)(e)-1,e),t,2)}function J(e){var t=e.getDay();return t>=4||0===t?Object(a.i)(e):a.i.ceil(e)}function Q(e,t){return e=J(e),m(a.i.count(Object(u.a)(e),e)+(4===Object(u.a)(e).getDay()),t,2)}function ee(e){return e.getDay()}function te(e,t){return m(a.c.count(Object(u.a)(e)-1,e),t,2)}function ne(e,t){return m(e.getFullYear()%100,t,2)}function re(e,t){return m((e=J(e)).getFullYear()%100,t,2)}function ie(e,t){return m(e.getFullYear()%1e4,t,4)}function ae(e,t){var n=e.getDay();return m((e=n>=4||0===n?Object(a.i)(e):a.i.ceil(e)).getFullYear()%1e4,t,4)}function oe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+m(t/60|0,"0",2)+m(t%60,"0",2)}function ue(e,t){return m(e.getUTCDate(),t,2)}function se(e,t){return m(e.getUTCHours(),t,2)}function le(e,t){return m(e.getUTCHours()%12||12,t,2)}function ce(e,t){return m(1+i.a.count(Object(s.a)(e),e),t,3)}function fe(e,t){return m(e.getUTCMilliseconds(),t,3)}function de(e,t){return fe(e,t)+"000"}function he(e,t){return m(e.getUTCMonth()+1,t,2)}function pe(e,t){return m(e.getUTCMinutes(),t,2)}function ve(e,t){return m(e.getUTCSeconds(),t,2)}function ye(e){var t=e.getUTCDay();return 0===t?7:t}function me(e,t){return m(r.g.count(Object(s.a)(e)-1,e),t,2)}function ge(e){var t=e.getUTCDay();return t>=4||0===t?Object(r.i)(e):r.i.ceil(e)}function be(e,t){return e=ge(e),m(r.i.count(Object(s.a)(e),e)+(4===Object(s.a)(e).getUTCDay()),t,2)}function _e(e){return e.getUTCDay()}function we(e,t){return m(r.c.count(Object(s.a)(e)-1,e),t,2)}function ke(e,t){return m(e.getUTCFullYear()%100,t,2)}function Se(e,t){return m((e=ge(e)).getUTCFullYear()%100,t,2)}function xe(e,t){return m(e.getUTCFullYear()%1e4,t,4)}function Oe(e,t){var n=e.getUTCDay();return m((e=n>=4||0===n?Object(r.i)(e):r.i.ceil(e)).getUTCFullYear()%1e4,t,4)}function Me(){return"+0000"}function Ee(){return"%"}function Te(e){return+e}function Ce(e){return Math.floor(+e/1e3)}},function(e,t,n){"use strict";t.a=function(e){return function(){return this.matches(e)}}},function(e,t,n){"use strict";function r(){return[]}t.a=function(e){return null==e?r:function(){return this.querySelectorAll(e)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return u}));var r=n(48);function i(e){return function(){this.style.removeProperty(e)}}function a(e,t,n){return function(){this.style.setProperty(e,t,n)}}function o(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function u(e,t){return e.style.getPropertyValue(t)||Object(r.a)(e).getComputedStyle(e,null).getPropertyValue(t)}t.a=function(e,t,n){return arguments.length>1?this.each((null==t?i:"function"===typeof t?o:a)(e,t,null==n?"":n)):u(this.node(),e)}},function(e,t,n){"use strict";var r=n(26);t.a=function(e){return"string"===typeof e?new r.a([[document.querySelector(e)]],[document.documentElement]):new r.a([[e]],r.c)}},function(e,t,n){"use strict";var r,i=n(25),a=n(45),o=n(28),u=function(e,t){var n=Object(o.b)(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},s={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:o.a,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return u(100*e,t)},r:u,s:function(e,t){var n=Object(o.b)(e,t);if(!n)return e+"";var i=n[0],a=n[1],u=a-(r=3*Math.max(-8,Math.min(8,Math.floor(a/3))))+1,s=i.length;return u===s?i:u>s?i+new Array(u-s+1).join("0"):u>0?i.slice(0,u)+"."+i.slice(u):"0."+new Array(1-u).join("0")+Object(o.b)(e,Math.max(0,t+u-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},l=function(e){return e},c=Array.prototype.map,f=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];t.a=function(e){var t,n,o=void 0===e.grouping||void 0===e.thousands?l:(t=c.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,a=[],o=0,u=t[0],s=0;i>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),a.push(e.substring(i-=u,i+u)),!((s+=u+1)>r));)u=t[o=(o+1)%t.length];return a.reverse().join(n)}),u=void 0===e.currency?"":e.currency[0]+"",d=void 0===e.currency?"":e.currency[1]+"",h=void 0===e.decimal?".":e.decimal+"",p=void 0===e.numerals?l:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(c.call(e.numerals,String)),v=void 0===e.percent?"%":e.percent+"",y=void 0===e.minus?"-":e.minus+"",m=void 0===e.nan?"NaN":e.nan+"";function g(e){var t=(e=Object(a.b)(e)).fill,n=e.align,i=e.sign,l=e.symbol,c=e.zero,g=e.width,b=e.comma,_=e.precision,w=e.trim,k=e.type;"n"===k?(b=!0,k="g"):s[k]||(void 0===_&&(_=12),w=!0,k="g"),(c||"0"===t&&"="===n)&&(c=!0,t="0",n="=");var S="$"===l?u:"#"===l&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",x="$"===l?d:/[%p]/.test(k)?v:"",O=s[k],M=/[defgprs%]/.test(k);function E(e){var a,u,s,l=S,d=x;if("c"===k)d=O(e)+d,e="";else{var v=(e=+e)<0||1/e<0;if(e=isNaN(e)?m:O(Math.abs(e),_),w&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),v&&0===+e&&"+"!==i&&(v=!1),l=(v?"("===i?i:y:"-"===i||"("===i?"":i)+l,d=("s"===k?f[8+r/3]:"")+d+(v&&"("===i?")":""),M)for(a=-1,u=e.length;++a<u;)if(48>(s=e.charCodeAt(a))||s>57){d=(46===s?h+e.slice(a+1):e.slice(a))+d,e=e.slice(0,a);break}}b&&!c&&(e=o(e,1/0));var E=l.length+e.length+d.length,T=E<g?new Array(g-E+1).join(t):"";switch(b&&c&&(e=o(T+e,T.length?g-d.length:1/0),T=""),n){case"<":e=l+e+d+T;break;case"=":e=l+T+e+d;break;case"^":e=T.slice(0,E=T.length>>1)+l+e+d+T.slice(E);break;default:e=T+l+e+d}return p(e)}return _=void 0===_?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_)),E.toString=function(){return e+""},E}return{format:g,formatPrefix:function(e,t){var n=g(((e=Object(a.b)(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Object(i.a)(t)/3))),o=Math.pow(10,-r),u=f[8+r/3];return function(e){return n(o*e)+u}}}}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.r(t),n.d(t,"transition",(function(){return Ce})),n.d(t,"active",(function(){return ze})),n.d(t,"interrupt",(function(){return U}));var r=n(26),i={value:function(){}};function a(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r||/[\s.]/.test(e))throw new Error("illegal type: "+e);r[e]=[]}return new o(r)}function o(e){this._=e}function u(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function s(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function l(e,t,n){for(var r=0,a=e.length;r<a;++r)if(e[r].name===t){e[r]=i,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}o.prototype=a.prototype={constructor:o,on:function(e,t){var n,r=this._,i=u(e+"",r),a=-1,o=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);for(;++a<o;)if(n=(e=i[a]).type)r[n]=l(r[n],e.name,t);else if(null==t)for(n in r)r[n]=l(r[n],e.name,null);return this}for(;++a<o;)if((n=(e=i[a]).type)&&(n=s(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new o(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),a=0;a<n;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=0,n=(r=this._[e]).length;a<n;++a)r[a].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};var c,f,d=a,h=0,p=0,v=0,y=0,m=0,g=0,b="object"===typeof performance&&performance.now?performance:Date,_="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function w(){return m||(_(k),m=b.now()+g)}function k(){m=0}function S(){this._call=this._time=this._next=null}function x(e,t,n){var r=new S;return r.restart(e,t,n),r}function O(){m=(y=b.now())+g,h=p=0;try{!function(){w(),++h;for(var e,t=c;t;)(e=m-t._time)>=0&&t._call.call(null,e),t=t._next;--h}()}finally{h=0,function(){var e,t,n=c,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:c=t);f=e,E(r)}(),m=0}}function M(){var e=b.now(),t=e-y;t>1e3&&(g-=t,y=e)}function E(e){h||(p&&(p=clearTimeout(p)),e-m>24?(e<1/0&&(p=setTimeout(O,e-b.now()-g)),v&&(v=clearInterval(v))):(v||(y=b.now(),v=setInterval(M,1e3)),h=1,_(O)))}S.prototype=x.prototype={constructor:S,restart:function(e,t,n){if("function"!==typeof e)throw new TypeError("callback is not a function");n=(null==n?w():+n)+(null==t?0:+t),this._next||f===this||(f?f._next=this:c=this,f=this),this._call=e,this._time=n,E()},stop:function(){this._call&&(this._call=null,this._time=1/0,E())}};var T=function(e,t,n){var r=new S;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r},C=d("start","end","cancel","interrupt"),P=[],D=function(e,t,n,r,i,a){var o=e.__transition;if(o){if(n in o)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,c,f,d;if(1!==n.state)return s();for(l in i)if((d=i[l]).name===n.name){if(3===d.state)return T(o);4===d.state?(d.state=6,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete i[l]):+l<t&&(d.state=6,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete i[l])}if(T((function(){3===n.state&&(n.state=4,n.timer.restart(u,n.delay,n.time),u(a))})),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(f=n.tween.length),l=0,c=-1;l<f;++l)(d=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(r[++c]=d);r.length=c+1}}function u(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=5,1),a=-1,o=r.length;++a<o;)r[a].call(e,i);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=x(a,0,n.time)}(e,n,{name:t,index:r,group:i,on:C,tween:P,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})};function j(e,t){var n=A(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function N(e,t){var n=A(e,t);if(n.state>3)throw new Error("too late; already running");return n}function A(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}var z,R,I,L,U=function(e,t){var n,r,i,a=e.__transition,o=!0;if(a){for(i in t=null==t?null:t+"",a)(n=a[i]).name===t?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete a[i]):o=!1;o&&delete e.__transition}},F=n(22),Y=180/Math.PI,B={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},H=function(e,t,n,r,i,a){var o,u,s;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(s=e*n+t*r)&&(n-=e*s,r-=t*s),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,s/=u),e*r<t*n&&(e=-e,t=-t,s=-s,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Y,skewX:Math.atan(s)*Y,scaleX:o,scaleY:u}};function W(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(a,o){var u=[],s=[];return a=e(a),o=e(o),function(e,r,i,a,o,u){if(e!==i||r!==a){var s=o.push("translate(",null,t,null,n);u.push({i:s-4,x:Object(F.a)(e,i)},{i:s-2,x:Object(F.a)(r,a)})}else(i||a)&&o.push("translate("+i+t+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,u,s),function(e,t,n,a){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Object(F.a)(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(a.rotate,o.rotate,u,s),function(e,t,n,a){e!==t?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Object(F.a)(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(a.skewX,o.skewX,u,s),function(e,t,n,r,a,o){if(e!==n||t!==r){var u=a.push(i(a)+"scale(",null,",",null,")");o.push({i:u-4,x:Object(F.a)(e,n)},{i:u-2,x:Object(F.a)(t,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,u,s),a=o=null,function(e){for(var t,n=-1,r=s.length;++n<r;)u[(t=s[n]).i]=t.x(e);return u.join("")}}}var q=W((function(e){return"none"===e?B:(z||(z=document.createElement("DIV"),R=document.documentElement,I=document.defaultView),z.style.transform=e,e=I.getComputedStyle(R.appendChild(z),null).getPropertyValue("transform"),R.removeChild(z),e=e.slice(7,-1).split(","),H(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}),"px, ","px)","deg)"),V=W((function(e){return null==e?B:(L||(L=document.createElementNS("http://www.w3.org/2000/svg","g")),L.setAttribute("transform",e),(e=L.transform.baseVal.consolidate())?(e=e.matrix,H(e.a,e.b,e.c,e.d,e.e,e.f)):B)}),", ",")",")"),Z=n(46);function G(e,t){var n,r;return function(){var i=N(this,e),a=i.tween;if(a!==n)for(var o=0,u=(r=n=a).length;o<u;++o)if(r[o].name===t){(r=r.slice()).splice(o,1);break}i.tween=r}}function $(e,t,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var a=N(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var u={name:t,value:n},s=0,l=i.length;s<l;++s)if(i[s].name===t){i[s]=u;break}s===l&&i.push(u)}a.tween=i}}function K(e,t,n){var r=e._id;return e.each((function(){var e=N(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)})),function(e){return A(e,r).value[t]}}var X=n(31),J=n(104),Q=n(130),ee=function(e,t){var n;return("number"===typeof t?F.a:t instanceof X.e?J.a:(n=Object(X.e)(t))?(t=n,J.a):Q.a)(e,t)};function te(e){return function(){this.removeAttribute(e)}}function ne(e){return function(){this.removeAttributeNS(e.space,e.local)}}function re(e,t,n){var r,i,a=n+"";return function(){var o=this.getAttribute(e);return o===a?null:o===r?i:i=t(r=o,n)}}function ie(e,t,n){var r,i,a=n+"";return function(){var o=this.getAttributeNS(e.space,e.local);return o===a?null:o===r?i:i=t(r=o,n)}}function ae(e,t,n){var r,i,a;return function(){var o,u,s=n(this);if(null!=s)return(o=this.getAttribute(e))===(u=s+"")?null:o===r&&u===i?a:(i=u,a=t(r=o,s));this.removeAttribute(e)}}function oe(e,t,n){var r,i,a;return function(){var o,u,s=n(this);if(null!=s)return(o=this.getAttributeNS(e.space,e.local))===(u=s+"")?null:o===r&&u===i?a:(i=u,a=t(r=o,s));this.removeAttributeNS(e.space,e.local)}}function ue(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function se(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function le(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&se(e,i)),n}return i._value=t,i}function ce(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&ue(e,i)),n}return i._value=t,i}function fe(e,t){return function(){j(this,e).delay=+t.apply(this,arguments)}}function de(e,t){return t=+t,function(){j(this,e).delay=t}}function he(e,t){return function(){N(this,e).duration=+t.apply(this,arguments)}}function pe(e,t){return t=+t,function(){N(this,e).duration=t}}function ve(e,t){if("function"!==typeof t)throw new Error;return function(){N(this,e).ease=t}}var ye=n(75);function me(e,t,n){var r,i,a=function(e){return(e+"").trim().split(/^|\s+/).every((function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e}))}(t)?j:N;return function(){var o=a(this,e),u=o.on;u!==r&&(i=(r=u).copy()).on(t,n),o.on=i}}var ge=n(47),be=n(76),_e=r.b.prototype.constructor,we=n(77);function ke(e){return function(){this.style.removeProperty(e)}}function Se(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function xe(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Se(e,a,n)),r}return a._value=t,a}function Oe(e){return function(t){this.textContent=e.call(this,t)}}function Me(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Oe(r)),t}return r._value=e,r}var Ee=0;function Te(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Ce(e){return Object(r.b)().transition(e)}function Pe(){return++Ee}var De=r.b.prototype;Te.prototype=Ce.prototype={constructor:Te,select:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=Object(ge.a)(e));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var u,s,l=r[o],c=l.length,f=a[o]=new Array(c),d=0;d<c;++d)(u=l[d])&&(s=e.call(u,u.__data__,d,l))&&("__data__"in u&&(s.__data__=u.__data__),f[d]=s,D(f[d],t,n,d,f,A(u,n)));return new Te(a,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!==typeof e&&(e=Object(be.a)(e));for(var r=this._groups,i=r.length,a=[],o=[],u=0;u<i;++u)for(var s,l=r[u],c=l.length,f=0;f<c;++f)if(s=l[f]){for(var d,h=e.call(s,s.__data__,f,l),p=A(s,n),v=0,y=h.length;v<y;++v)(d=h[v])&&D(d,t,n,v,h,p);a.push(h),o.push(s)}return new Te(a,o,t,n)},filter:function(e){"function"!==typeof e&&(e=Object(ye.a)(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a,o=t[i],u=o.length,s=r[i]=[],l=0;l<u;++l)(a=o[l])&&e.call(a,a.__data__,l,o)&&s.push(a);return new Te(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=new Array(r),u=0;u<a;++u)for(var s,l=t[u],c=n[u],f=l.length,d=o[u]=new Array(f),h=0;h<f;++h)(s=l[h]||c[h])&&(d[h]=s);for(;u<r;++u)o[u]=t[u];return new Te(o,this._parents,this._name,this._id)},selection:function(){return new _e(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=Pe(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o,u=r[a],s=u.length,l=0;l<s;++l)if(o=u[l]){var c=A(o,t);D(o,e,n,l,u,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Te(r,this._parents,e,n)},call:De.call,nodes:De.nodes,node:De.node,size:De.size,empty:De.empty,each:De.each,on:function(e,t){var n=this._id;return arguments.length<2?A(this.node(),n).on.on(e):this.each(me(n,e,t))},attr:function(e,t){var n=Object(Z.a)(e),r="transform"===n?V:ee;return this.attrTween(e,"function"===typeof t?(n.local?oe:ae)(n,r,K(this,"attr."+e,t)):null==t?(n.local?ne:te)(n):(n.local?ie:re)(n,r,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!==typeof t)throw new Error;var r=Object(Z.a)(e);return this.tween(n,(r.local?le:ce)(r,t))},style:function(e,t,n){var r="transform"===(e+="")?q:ee;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var a=Object(we.b)(this,e),o=(this.style.removeProperty(e),Object(we.b)(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}(e,r)).on("end.style."+e,ke(e)):"function"===typeof t?this.styleTween(e,function(e,t,n){var r,i,a;return function(){var o=Object(we.b)(this,e),u=n(this),s=u+"";return null==u&&(this.style.removeProperty(e),s=u=Object(we.b)(this,e)),o===s?null:o===r&&s===i?a:(i=s,a=t(r=o,u))}}(e,r,K(this,"style."+e,t))).each(function(e,t){var n,r,i,a,o="style."+t,u="end."+o;return function(){var s=N(this,e),l=s.on,c=null==s.value[o]?a||(a=ke(t)):void 0;l===n&&i===c||(r=(n=l).copy()).on(u,i=c),s.on=r}}(this._id,e)):this.styleTween(e,function(e,t,n){var r,i,a=n+"";return function(){var o=Object(we.b)(this,e);return o===a?null:o===r?i:i=t(r=o,n)}}(e,r,t),n).on("end.style."+e,null)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!==typeof t)throw new Error;return this.tween(r,xe(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"===typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(K(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!==typeof e)throw new Error;return this.tween(t,Me(e))},remove:function(){return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}));var e},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=A(this.node(),n).tween,a=0,o=i.length;a<o;++a)if((r=i[a]).name===e)return r.value;return null}return this.each((null==t?G:$)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?fe:de)(t,e)):A(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"===typeof e?he:pe)(t,e)):A(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(ve(t,e)):A(this.node(),t).ease},end:function(){var e,t,n=this,r=n._id,i=n.size();return new Promise((function(a,o){var u={value:o},s={value:function(){0===--i&&a()}};n.each((function(){var n=N(this,r),i=n.on;i!==e&&((t=(e=i).copy())._.cancel.push(u),t._.interrupt.push(u),t._.end.push(s)),n.on=t}))}))}};var je={time:null,delay:0,duration:250,ease:n(59).b};function Ne(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))return je.time=w(),je;return n}r.b.prototype.interrupt=function(e){return this.each((function(){U(this,e)}))},r.b.prototype.transition=function(e){var t,n;e instanceof Te?(t=e._id,e=e._name):(t=Pe(),(n=je).time=w(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o,u=r[a],s=u.length,l=0;l<s;++l)(o=u[l])&&D(o,e,t,l,u,n||Ne(o,t));return new Te(r,this._parents,e,t)};var Ae=[null],ze=function(e,t){var n,r,i=e.__transition;if(i)for(r in t=null==t?null:t+"",i)if((n=i[r]).state>1&&n.name===t)return new Te([[e]],Ae,t,+r);return null}},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return u}));var a=n(17);function o(e,t){return!t||"object"!==i(t)&&"function"!==typeof t?Object(a.a)(e):t}function u(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return o(this,n)}}},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var n,u,s=o(e),l=1;l<arguments.length;l++){for(var c in n=Object(arguments[l]))i.call(n,c)&&(s[c]=n[c]);if(r){u=r(n);for(var f=0;f<u.length;f++)a.call(n,u[f])&&(s[u[f]]=n[u[f]])}}return s}},function(e,t,n){var r=n(145),i=n(109),a=n(64),o=n(146);e.exports=function(e){return r(e)||i(e)||a(e)||o()}},function(e,t,n){"use strict";var r=n(65),i=n(53),a=n(6),o=n(7),u=n(13),s=n(14),l=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=l(n(1)),f=l(n(20)),d=l(n(88)),h=l(n(32)),p=l(n(55)),v=l(n(23)),y=n(112),m=function(e){u(n,e);var t=s(n);function n(e,r){var i;if(a(this,n),(i=t.call(this))._id=c.default.uniqueId("collection-"),i._eventList=null,i._type=null,e){if(e instanceof n){var o=e,u=r||!0;c.default.isUndefined(u)||!0===u?(i._eventList=o._eventList,i._type=o._type):i._eventList=new f.default.List}else if(c.default.isArray(e)){var s=[];e.forEach((function(e){i._check(e),s.push(e._d)})),i._eventList=new f.default.List(s)}else if(f.default.List.isList(e)){var l=r;if(!l)throw new Error("No type supplied to Collection constructor");i._type=l,i._eventList=e}}else i._eventList=new f.default.List;return i}return o(n,[{key:"toJSON",value:function(){return this._eventList.toJS()}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}},{key:"type",value:function(){return this._type}},{key:"size",value:function(){return this._eventList.size}},{key:"sizeValid",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"value",n=0,r=i(this.events());try{for(r.s();!(e=r.n()).done;){var a=e.value;h.default.isValidValue(a,t)&&n++}}catch(o){r.e(o)}finally{r.f()}return n}},{key:"at",value:function(e){if(this._eventList.size>0)return new this._type(this._eventList.get(e))}},{key:"atKey",value:function(e){var t,n=[];e instanceof Date?t=e.getTime():c.default.isString(e)?t=e:e instanceof p.default&&(t="".concat(this.timerange().begin(),",").concat(this.timerange().end()));var r,a=i(this.events());try{for(a.s();!(r=a.n()).done;){var o=r.value;o.key()===t&&n.push(o)}}catch(u){a.e(u)}finally{a.f()}return n}},{key:"atFirst",value:function(){if(this.size())return this.at(0)}},{key:"atLast",value:function(){if(this.size())return this.at(this.size()-1)}},{key:"events",value:r.mark((function e(){var t;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0;case 1:if(!(t<this.size())){e.next=7;break}return e.next=4,this.at(t);case 4:t++,e.next=1;break;case 7:case"end":return e.stop()}}),e,this)}))},{key:"setEvents",value:function(e){var t=new n(this);return t._eventList=e,t}},{key:"eventList",value:function(){return this._eventList}},{key:"eventListAsArray",value:function(){var e,t=[],n=i(this.events());try{for(n.s();!(e=n.n()).done;){var r=e.value;t.push(r)}}catch(a){n.e(a)}finally{n.f()}return t}},{key:"eventListAsMap",value:function(){var e,t={},n=i(this.events());try{for(n.s();!(e=n.n()).done;){var r=e.value,a=r.key();c.default.has(t,a)||(t[a]=[]),t[a].push(r)}}catch(o){n.e(o)}finally{n.f()}return t}},{key:"dedup",value:function(){return new n(h.default.merge(this.eventListAsArray()))}},{key:"sortByTime",value:function(){var e=this,t=this._eventList.sortBy((function(t){return new e._type(t).timestamp().getTime()}));return this.setEvents(t)}},{key:"sort",value:function(e){var t=this,n=v.default.fieldPathToArray(e),r=this._eventList.sortBy((function(e){return new t._type(e).get(n)}));return this.setEvents(r)}},{key:"range",value:function(){var e,t,n,r=i(this.events());try{for(r.s();!(n=r.n()).done;){var a=n.value;(!e||a.begin()<e)&&(e=a.begin()),(!t||a.end()>t)&&(t=a.end())}}catch(o){r.e(o)}finally{r.f()}if(e&&t)return new p.default(e,t)}},{key:"addEvent",value:function(e){this._check(e);var t=new n(this);return t._eventList=this._eventList.push(e._d),t}},{key:"slice",value:function(e,t){return new n(this._eventList.slice(e,t),this._type)}},{key:"filter",value:function(e){var t,r=[],a=i(this.events());try{for(a.s();!(t=a.n()).done;){var o=t.value;e(o)&&r.push(o)}}catch(u){a.e(u)}finally{a.f()}return new n(r)}},{key:"map",value:function(e){var t,r=[],a=i(this.events());try{for(a.s();!(t=a.n()).done;){var o=t.value;r.push(e(o))}}catch(u){a.e(u)}finally{a.f()}return new n(r)}},{key:"clean",value:function(e){var t,r=v.default.fieldPathToArray(e),a=[],o=i(this.events());try{for(o.s();!(t=o.n()).done;){var u=t.value;h.default.isValidValue(u,r)&&a.push(u)}}catch(s){o.e(s)}finally{o.f()}return new n(a)}},{key:"count",value:function(){return this.size()}},{key:"first",value:function(e,t){return this.aggregate((0,y.first)(t),e)}},{key:"last",value:function(e,t){return this.aggregate((0,y.last)(t),e)}},{key:"sum",value:function(e,t){return this.aggregate((0,y.sum)(t),e)}},{key:"avg",value:function(e,t){return this.aggregate((0,y.avg)(t),e)}},{key:"max",value:function(e,t){return this.aggregate((0,y.max)(t),e)}},{key:"min",value:function(e,t){return this.aggregate((0,y.min)(t),e)}},{key:"mean",value:function(e,t){return this.avg(e,t)}},{key:"median",value:function(e,t){return this.aggregate((0,y.median)(t),e)}},{key:"stdev",value:function(e,t){return this.aggregate((0,y.stdev)(t),e)}},{key:"percentile",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"linear",r=arguments.length>3?arguments[3]:void 0;return this.aggregate((0,y.percentile)(e,n,r),t)}},{key:"aggregate",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!c.default.isFunction(e))throw new Error("First arg to aggregate() must be a function");if(c.default.isString(t))n=t;else if(c.default.isArray(t))n=t.split(".");else{if(!c.default.isUndefined(t))throw new Error("Collection.aggregate() takes a string/array fieldPath");n="value"}var i=h.default.mapReduce(this.eventListAsArray(),n,e,r);return i[n]}},{key:"quantile",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"linear",r=[],i=this.sort(t),a=1/e;if(e>this.length)throw new Error("Subset n is greater than the Collection length");for(var o=a;o<1;o+=a){var u=Math.floor((i.size()-1)*o);if(u<i.size()-1){var s=(i.size()-1)*o-u,l=i.at(u).get(t),c=i.at(u+1).get(t),f=void 0;"lower"===n||0===s?f=l:"linear"===n?f=l+(c-l)*s:"higher"===n?f=c:"nearest"===n?f=s<.5?l:c:"midpoint"===n&&(f=(l+c)/2),r.push(f)}}return r}},{key:"isChronological",value:function(){var e,t,n=!0,r=i(this.events());try{for(r.s();!(t=r.n()).done;){var a=t.value;e?(a.timestamp()<e&&(n=!1),e=a.timestamp()):e=a.timestamp().getTime()}}catch(o){r.e(o)}finally{r.f()}return n}}],[{key:"equal",value:function(e,t){return e._type===t._type&&e._eventList===t._eventList}},{key:"is",value:function(e,t){return e._type===t._type&&f.default.is(e._eventList,t._eventList)}}]),n}(d.default);t.default=m},function(e,t,n){"use strict";var r=n(6),i=n(7),a=n(13),o=n(14),u=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){a(n,e);var t=o(n);function n(){return r(this,n),t.call(this)}return i(n,[{key:"start",value:function(){throw new Error("start() not supported on bounded source.")}},{key:"stop",value:function(){throw new Error("stop() not supported on bounded source.")}},{key:"onEmit",value:function(){throw new Error("You can not setup a listener to a bounded source.")}}]),n}(u(n(110)).default);t.default=s},function(e,t,n){"use strict";var r=n(6),i=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n(1)),o=function e(t){r(this,e),this._id=a.default.uniqueId("id-"),this._pipeline=t};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(73);t.default={curveBasisClosed:r.curveBasisClosed,curveBasisOpen:r.curveBasisOpen,curveBasis:r.curveBasis,curveBundle:r.curveBundle,curveCardinalClosed:r.curveCardinalClosed,curveCardinalOpen:r.curveCardinalOpen,curveCardinal:r.curveCardinal,curveCatmullRomClosed:r.curveCatmullRomClosed,curveCatmullRomOpen:r.curveCatmullRomOpen,curveCatmullRom:r.curveCatmullRom,curveLinearClosed:r.curveLinearClosed,curveLinear:r.curveLinear,curveMonotoneX:r.curveMonotoneX,curveMonotoneY:r.curveMonotoneY,curveNatural:r.curveNatural,curveStep:r.curveStep,curveStepAfter:r.curveStepAfter,curveStepBefore:r.curveStepBefore}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(2)),i=o(n(12)),a=o(n(15));function o(e){return e&&e.__esModule?e:{default:e}}var u={fill:"#FEFEFE",stroke:"#DDD",opacity:.8},s={fontSize:11,textAnchor:"left",fill:"#b0b0b0",pointerEvents:"none"},l={fontSize:11,textAnchor:"middle",fill:"#bdbdbd",pointerEvents:"none"};var c=function(e){var t=e.label,n=e.style,i=e.align,o=e.width,c=e.height,f=function(e,t){return{boxStyle:(0,a.default)(!0,u,e.box?e.box:{}),labelStyle:(0,a.default)(!0,t?l:s,e.label?e.label:{})}}(n,"center"===i),d=f.boxStyle,h=f.labelStyle,p="center"===i?parseInt(o/2,10):10,v=r.default.createElement("text",{x:p,y:5,dy:"1.2em",style:h},t),y=r.default.createElement("rect",{x:0,y:0,style:d,width:o,height:c});return r.default.createElement("g",null,y,v)};c.defaultProps={align:"center",width:100,height:100,pointerEvents:"none"},c.propTypes={align:i.default.oneOf(["center","left"]),label:i.default.string.isRequired,style:i.default.object,width:i.default.number,height:i.default.number},t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(r=(o=u.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(s){i=!0,a=s}finally{try{!r&&u.return&&u.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=f(n(15)),u=f(n(2)),s=f(n(12)),l=n(18),c=n(27);function f(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isBrushing:!1},n.handleBrushMouseDown=n.handleBrushMouseDown.bind(n),n.handleOverlayMouseDown=n.handleOverlayMouseDown.bind(n),n.handleHandleMouseDown=n.handleHandleMouseDown.bind(n),n.handleMouseUp=n.handleMouseUp.bind(n),n.handleClick=n.handleClick.bind(n),n.handleMouseMove=n.handleMouseMove.bind(n),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"viewport",value:function(){var e=this.props,t=e.width,n=e.timeScale,r=n.invert(0),i=n.invert(t);return new l.TimeRange(r,i)}},{key:"handleBrushMouseDown",value:function(e){e.preventDefault();var t=e.pageX,n=e.pageY,r=[Math.round(t),Math.round(n)],i=+this.props.timeRange.begin(),a=+this.props.timeRange.end();document.addEventListener("mouseup",this.handleMouseUp),this.setState({isBrushing:!0,brushingInitializationSite:"brush",initialBrushBeginTime:i,initialBrushEndTime:a,initialBrushXYPosition:r})}},{key:"handleOverlayMouseDown",value:function(e){e.preventDefault();var t=(0,c.getElementOffset)(this.overlay),n=e.pageX-t.left,r=this.props.timeScale.invert(n).getTime();document.addEventListener("mouseup",this.handleMouseUp),this.setState({isBrushing:!0,brushingInitializationSite:"overlay",initialBrushBeginTime:r,initialBrushEndTime:r,initialBrushXYPosition:null})}},{key:"handleHandleMouseDown",value:function(e,t){e.preventDefault();var n=e.pageX,r=e.pageY,i=[Math.round(n),Math.round(r)],a=this.props.timeRange.begin().getTime(),o=this.props.timeRange.end().getTime();document.addEventListener("mouseover",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp),this.setState({isBrushing:!0,brushingInitializationSite:"handle-"+t,initialBrushBeginTime:a,initialBrushEndTime:o,initialBrushXYPosition:i})}},{key:"handleMouseUp",value:function(e){e.preventDefault(),document.removeEventListener("mouseover",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.setState({isBrushing:!1,brushingInitializationSite:null,initialBrushBeginTime:null,initialBrushEndTime:null,initialBrushXYPosition:null})}},{key:"handleClick",value:function(){this.props.allowSelectionClear&&this.props.onTimeRangeChanged&&this.props.onTimeRangeChanged(null)}},{key:"handleMouseMove",value:function(e){e.preventDefault();var t=e.pageX,n=e.pageY,r=[Math.round(t),Math.round(n)],i=this.viewport();if(this.state.isBrushing){var a=void 0,o=void 0,u=this.state.initialBrushBeginTime,s=this.state.initialBrushEndTime;if("overlay"===this.state.brushingInitializationSite){var f=(0,c.getElementOffset)(this.overlay),d=e.pageX-f.left,h=this.props.timeScale.invert(d).getTime();h<u?(a=h<i.begin().getTime()?i.begin():h,o=u>i.end().getTime()?i.end():u):(a=u<i.begin().getTime()?i.begin():u,o=h>i.end().getTime()?i.end():h)}else{var p=this.state.initialBrushXYPosition,v=this.props.timeScale.invert(p[0]).getTime()-this.props.timeScale.invert(r[0]).getTime(),y=v,m=v;if(u-v<i.begin()&&(y=u-i.begin().getTime()),s-v>i.end()&&(m=s-i.end().getTime()),(a="brush"===this.state.brushingInitializationSite||"handle-left"===this.state.brushingInitializationSite?parseInt(u-y,10):u)>(o="brush"===this.state.brushingInitializationSite||"handle-right"===this.state.brushingInitializationSite?parseInt(s-m,10):s)){var g=[o,a];a=g[0],o=g[1]}}this.props.onTimeRangeChanged&&this.props.onTimeRangeChanged(new l.TimeRange(a,o))}}},{key:"renderOverlay",value:function(){var e=this,t=this.props,n=t.width,r=t.height,i=void 0;switch(this.state.brushingInitializationSite){case"handle-right":case"handle-left":i="ew-resize";break;case"brush":i="move";break;default:i="crosshair"}var a={fill:"white",opacity:0,cursor:i};return u.default.createElement("rect",{ref:function(t){e.overlay=t},x:0,y:0,width:n,height:r,style:a,onMouseDown:this.handleOverlayMouseDown,onMouseUp:this.handleMouseUp,onClick:this.handleClick})}},{key:"renderBrush",value:function(){var e=this.props,t=e.timeRange,n=e.timeScale,r=e.height,a=e.style;if(!t)return u.default.createElement("g",null);var s=void 0;switch(this.state.brushingInitializationSite){case"handle-right":case"handle-left":s="ew-resize";break;case"overlay":s="crosshair";break;default:s="move"}var l={fill:"#777",fillOpacity:.3,stroke:"#fff",shapeRendering:"crispEdges",cursor:s},c=(0,o.default)(!0,l,a);if(!this.viewport().disjoint(t)){var f=t.intersection(this.viewport()),d=f.begin(),h=f.end(),p=[n(d),0],v=p[0],y=p[1],m=n(h)-v;m<1&&(m=1);var g={x:v,y:y,width:m,height:r};return u.default.createElement("rect",i({},g,{style:c,pointerEvents:"all",onMouseDown:this.handleBrushMouseDown,onMouseUp:this.handleMouseUp}))}return u.default.createElement("g",null)}},{key:"renderHandles",value:function(){var e=this,t=this.props,n=t.timeRange,a=t.timeScale,o=t.height;if(!n)return u.default.createElement("g",null);var s={fill:"white",opacity:0,cursor:"ew-resize"};if(!this.viewport().disjoint(n)){var l=n.intersection(this.viewport()).toJSON(),c=r(l,2),f=c[0],d=c[1],h=[a(f),0],p=h[0],v=h[1],y=a(d)-p;y<1&&(y=1);var m=this.props.handleSize,g={x:p-1,y:v,width:m,height:o},b={x:p+(y-m),y:v,width:m+1,height:o};return u.default.createElement("g",null,u.default.createElement("rect",i({},g,{style:s,pointerEvents:"all",onMouseDown:function(t){return e.handleHandleMouseDown(t,"left")},onMouseUp:this.handleMouseUp})),u.default.createElement("rect",i({},b,{style:s,pointerEvents:"all",onMouseDown:function(t){return e.handleHandleMouseDown(t,"right")},onMouseUp:this.handleMouseUp})))}return u.default.createElement("g",null)}},{key:"render",value:function(){return u.default.createElement("g",{onMouseMove:this.handleMouseMove},this.renderOverlay(),this.renderBrush(),this.renderHandles())}}]),t}(u.default.Component);t.default=d,d.propTypes={timeRange:s.default.instanceOf(l.TimeRange),style:s.default.object,handleSize:s.default.number,allowSelectionClear:s.default.bool,onTimeRangeChanged:s.default.func,timeScale:s.default.func,width:s.default.number,height:s.default.number},d.defaultProps={handleSize:6,allowSelectionClear:!1}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var r=n(3),i=Object(r.a)((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}));t.a=i;var a=i.range},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(3),i=n(8),a=Object(r.a)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.d-e.getMinutes()*i.c)}),(function(e,t){e.setTime(+e+t*i.b)}),(function(e,t){return(t-e)/i.b}),(function(e){return e.getHours()}));t.a=a;var o=a.range},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(3),i=n(8),a=Object(r.a)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i.d)}),(function(e,t){e.setTime(+e+t*i.c)}),(function(e,t){return(t-e)/i.c}),(function(e){return e.getMinutes()}));t.a=a;var o=a.range},function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var r=n(3),i=Object(r.a)((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));t.a=i;var a=i.range},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(3),i=n(8),a=Object(r.a)((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*i.b)}),(function(e,t){return(t-e)/i.b}),(function(e){return e.getUTCHours()}));t.a=a;var o=a.range},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(3),i=n(8),a=Object(r.a)((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*i.c)}),(function(e,t){return(t-e)/i.c}),(function(e){return e.getUTCMinutes()}));t.a=a;var o=a.range},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(r=(o=u.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(s){i=!0,a=s}finally{try{!r&&u.return&&u.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=f(n(15)),u=f(n(2)),s=f(n(12)),l=n(18),c=n(27);function f(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.hasNullBrush=function(){return(n.props.timeRanges||[]).length>0&&null==n.props.timeRanges[n.props.timeRanges.length-1]},n.handleMouseClick=function(e,t){n.props.onTimeRangeClicked&&n.props.onTimeRangeClicked(t)},n.state={isBrushing:!1},n.handleBrushMouseDown=n.handleBrushMouseDown.bind(n),n.handleOverlayMouseDown=n.handleOverlayMouseDown.bind(n),n.handleHandleMouseDown=n.handleHandleMouseDown.bind(n),n.handleMouseUp=n.handleMouseUp.bind(n),n.handleMouseMove=n.handleMouseMove.bind(n),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"viewport",value:function(){var e=this.props,t=e.width,n=e.timeScale,r=n.invert(0),i=n.invert(t);return new l.TimeRange(r,i)}},{key:"handleBrushMouseDown",value:function(e,t){e.preventDefault();var n=e.pageX,r=e.pageY,i=[Math.round(n),Math.round(r)],a=+this.props.timeRanges[t].begin(),o=+this.props.timeRanges[t].end();document.addEventListener("mouseup",this.handleMouseUp),this.setState({isBrushing:!0,brushingInitializationSite:"brush",initialBrushBeginTime:a,initialBrushEndTime:o,initialBrushXYPosition:i,brushIndex:t})}},{key:"handleOverlayMouseDown",value:function(e){if(this.props.allowFreeDrawing||this.hasNullBrush()){e.preventDefault();var t=(0,c.getElementOffset)(this.overlay),n=e.pageX-t.left,r=this.props.timeScale.invert(n).getTime();document.addEventListener("mouseup",this.handleMouseUp);var i=this.props.allowFreeDrawing?this.props.timeRanges.length:this.props.timeRanges.length-1;this.setState({isBrushing:!0,brushingInitializationSite:"overlay",initialBrushBeginTime:r,initialBrushEndTime:r,initialBrushXYPosition:null,brushIndex:i})}}},{key:"handleHandleMouseDown",value:function(e,t,n){e.preventDefault();var r=e.pageX,i=e.pageY,a=[Math.round(r),Math.round(i)],o=this.props.timeRanges[n].begin().getTime(),u=this.props.timeRanges[n].end().getTime();document.addEventListener("mouseover",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp),this.setState({isBrushing:!0,brushingInitializationSite:"handle-"+t,initialBrushBeginTime:o,initialBrushEndTime:u,initialBrushXYPosition:a,brushIndex:n})}},{key:"handleMouseUp",value:function(e){var t=this;e.preventDefault(),document.removeEventListener("mouseover",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp);var n=this.state.brushIndex;this.setState({isBrushing:!1,brushingInitializationSite:null,initialBrushBeginTime:null,initialBrushEndTime:null,initialBrushXYPosition:null,brushIndex:null},(function(){t.props.onUserMouseUp&&t.props.onUserMouseUp(n)}))}},{key:"handleMouseMove",value:function(e){e.preventDefault();var t=e.pageX,n=e.pageY,r=[Math.round(t),Math.round(n)],i=this.viewport();if(this.state.isBrushing){var a=void 0,o=void 0,u=this.state.initialBrushBeginTime,s=this.state.initialBrushEndTime;if("overlay"===this.state.brushingInitializationSite){var f=(0,c.getElementOffset)(this.overlay),d=e.pageX-f.left,h=this.props.timeScale.invert(d).getTime();h<u?(a=h<i.begin().getTime()?i.begin():h,o=u>i.end().getTime()?i.end():u):(a=u<i.begin().getTime()?i.begin():u,o=h>i.end().getTime()?i.end():h)}else{var p=this.state.initialBrushXYPosition,v=this.props.timeScale.invert(p[0]).getTime()-this.props.timeScale.invert(r[0]).getTime(),y=v,m=v;if(u-v<i.begin()&&(y=u-i.begin().getTime()),s-v>i.end()&&(m=s-i.end().getTime()),(a="brush"===this.state.brushingInitializationSite||"handle-left"===this.state.brushingInitializationSite?parseInt(u-y,10):u)>(o="brush"===this.state.brushingInitializationSite||"handle-right"===this.state.brushingInitializationSite?parseInt(s-m,10):s)){var g=[o,a];a=g[0],o=g[1]}}this.props.onTimeRangeChanged&&this.props.onTimeRangeChanged(new l.TimeRange(a,o),this.state.brushIndex)}}},{key:"renderOverlay",value:function(){var e=this,t=this.props,n=t.width,r=t.height,i=void 0;switch(this.state.brushingInitializationSite){case"handle-right":case"handle-left":i="ew-resize";break;case"brush":i="move";break;default:i=this.props.allowFreeDrawing||this.hasNullBrush()?"crosshair":"default"}var a={fill:"white",opacity:0,cursor:i};return u.default.createElement("rect",{ref:function(t){e.overlay=t},x:0,y:0,width:n,height:r,style:a,onClick:this.handleMouseClick,onMouseDown:this.handleOverlayMouseDown,onMouseUp:this.handleMouseUp})}},{key:"renderBrush",value:function(e,t){var n=this,r=this.props,a=r.timeScale,s=r.height;if(!e)return u.default.createElement("g",null);var l=void 0;switch(this.state.brushingInitializationSite){case"handle-right":case"handle-left":l="ew-resize";break;case"overlay":l=this.props.allowFreeDrawing||this.hasNullBrush()?"crosshair":"default";break;default:l="move"}var c={fill:"#777",fillOpacity:.3,stroke:"#fff",shapeRendering:"crispEdges",cursor:l},f=this.props.style?this.props.style(t):{},d=(0,o.default)(!0,c,f);if(!this.viewport().disjoint(e)){var h=e.intersection(this.viewport()),p=h.begin(),v=h.end(),y=[a(p),0],m=y[0],g=y[1],b=a(v)-m;b<1&&(b=1);var _={x:m,y:g,width:b,height:s};return u.default.createElement("rect",i({},_,{key:t+"-"+d,style:d,pointerEvents:"all",onClick:function(e){return n.handleMouseClick(e,t)},onMouseDown:function(e){return n.handleBrushMouseDown(e,t)},onMouseUp:this.handleMouseUp}))}return u.default.createElement("g",null)}},{key:"renderHandles",value:function(e,t){var n=this,a=this.props,o=a.timeScale,s=a.height;if(!e)return u.default.createElement("g",null);var l={fill:"white",opacity:0,cursor:"ew-resize"};if(!this.viewport().disjoint(e)){var c=e.intersection(this.viewport()).toJSON(),f=r(c,2),d=f[0],h=f[1],p=[o(d),0],v=p[0],y=p[1],m=o(h)-v;m<1&&(m=1);var g=this.props.handleSize,b={x:v-1,y:y,width:g,height:s},_={x:v+(m-g),y:y,width:g+1,height:s};return u.default.createElement("g",null,u.default.createElement("rect",i({},b,{style:l,pointerEvents:"all",onMouseDown:function(e){return n.handleHandleMouseDown(e,"left",t)},onMouseUp:this.handleMouseUp})),u.default.createElement("rect",i({},_,{style:l,pointerEvents:"all",onMouseDown:function(e){return n.handleHandleMouseDown(e,"right",t)},onMouseUp:this.handleMouseUp})))}return u.default.createElement("g",null)}},{key:"render",value:function(){var e=this;return u.default.createElement("g",{onMouseMove:this.handleMouseMove},this.renderOverlay(),(this.props.timeRanges||[]).map((function(t,n){return u.default.createElement("g",{key:"multibrush_"+n},e.renderBrush(t,n),e.renderHandles(t,n))})))}}]),t}(u.default.Component);t.default=d,d.propTypes={timeRanges:s.default.arrayOf(s.default.instanceOf(l.TimeRange)),style:s.default.func,handleSize:s.default.number,allowFreeDrawing:s.default.bool,onTimeRangeChanged:s.default.func,onUserMouseUp:s.default.func,onTimeRangeClicked:s.default.func,timeScale:s.default.func,width:s.default.number,height:s.default.number},d.defaultProps={handleSize:6,allowFreeDrawing:!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(2);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var s=function(e){function t(){return o(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){return this.constructor.name+" elements are for configuration only\nand should not be rendered"}}]),t}(((r=a)&&r.__esModule?r:{default:r}).default.Component);t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=d(n(1)),o=d(n(54)),u=d(n(2)),s=d(n(12)),l=n(60);n(125);var c=d(n(69)),f=d(n(91));function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var v=function(e){function t(){return h(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"renderLine",value:function(e){return u.default.createElement("line",{style:this.props.infoStyle.line,x1:e,y1:0,x2:e,y2:this.props.height})}},{key:"renderTimeMarker",value:function(e){var t=""+e;if("day"===this.props.timeFormat)t=(0,l.timeFormat)("%d")(e);else if("month"===this.props.timeFormat){t=(0,l.timeFormat)("%B")(e)}else if("year"===this.props.timeFormat){t=(0,l.timeFormat)("%Y")(e)}else if("relative"===this.props.timeFormat)t=o.default.duration(+e).format();else if(a.default.isString(this.props.timeFormat)){t=(0,l.timeFormat)(this.props.timeFormat)(e)}else a.default.isFunction(this.props.timeFormat)&&(t=this.props.timeFormat(e));return u.default.createElement("text",{x:0,y:0,dy:"1.2em",style:{fontSize:11,textAnchor:"left",fill:"#bdbdbd"}},t)}},{key:"renderInfoBox",value:function(e){var t=this.props.infoWidth,n={align:"left",style:this.props.infoStyle.box,width:this.props.infoWidth,height:this.props.infoHeight};if(this.props.infoValues){var i=a.default.isString(this.props.infoValues)?u.default.createElement(f.default,r({},n,{label:this.props.infoValues})):u.default.createElement(c.default,r({},n,{values:this.props.infoValues}));return e+10+t<this.props.width-50?u.default.createElement("g",{transform:"translate("+(e+10)+",5)"},this.props.showTime?this.renderTimeMarker(this.props.time):null,u.default.createElement("g",{transform:"translate(0,"+(this.props.showTime?20:0)+")"},i)):u.default.createElement("g",{transform:"translate("+(e-t-10)+",5)"},this.props.showTime?this.renderTimeMarker(this.props.time):null,u.default.createElement("g",{transform:"translate(0,"+(this.props.showTime?20:0)+")"},i))}return u.default.createElement("g",null)}},{key:"render",value:function(){var e=this.props.timeScale(this.props.time);return e?u.default.createElement("g",null,this.props.showLine?this.renderLine(e):null,this.props.showInfoBox?this.renderInfoBox(e):null):null}}]),t}(u.default.Component);t.default=v,v.propTypes={visible:s.default.bool,time:s.default.instanceOf(Date),infoValues:s.default.oneOfType([s.default.string,s.default.arrayOf(s.default.shape({label:s.default.string,value:s.default.string}))]),infoStyle:s.default.shape({line:s.default.object,box:s.default.object,dot:s.default.object}),infoWidth:s.default.number,infoHeight:s.default.number,showInfoBox:s.default.bool,showLine:s.default.bool,showTime:s.default.bool,timeFormat:s.default.oneOfType([s.default.string,s.default.func]),timeScale:s.default.func,width:s.default.number,height:s.default.number},v.defaultProps={visible:!0,showInfoBox:!0,showLine:!0,showTime:!0,infoStyle:{line:{stroke:"#999",cursor:"crosshair",pointerEvents:"none"},box:{fill:"white",opacity:.9,stroke:"#999",pointerEvents:"none"},dot:{fill:"#999"}},infoWidth:90,infoHeight:25}},function(e,t,n){"use strict";function r(e){return+e}function i(e){return e*e}function a(e){return e*(2-e)}function o(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}n.r(t),n.d(t,"easeLinear",(function(){return r})),n.d(t,"easeQuad",(function(){return o})),n.d(t,"easeQuadIn",(function(){return i})),n.d(t,"easeQuadOut",(function(){return a})),n.d(t,"easeQuadInOut",(function(){return o})),n.d(t,"easeCubic",(function(){return u.b})),n.d(t,"easeCubicIn",(function(){return u.a})),n.d(t,"easeCubicOut",(function(){return u.c})),n.d(t,"easeCubicInOut",(function(){return u.b})),n.d(t,"easePoly",(function(){return c})),n.d(t,"easePolyIn",(function(){return s})),n.d(t,"easePolyOut",(function(){return l})),n.d(t,"easePolyInOut",(function(){return c})),n.d(t,"easeSin",(function(){return v})),n.d(t,"easeSinIn",(function(){return h})),n.d(t,"easeSinOut",(function(){return p})),n.d(t,"easeSinInOut",(function(){return v})),n.d(t,"easeExp",(function(){return b})),n.d(t,"easeExpIn",(function(){return m})),n.d(t,"easeExpOut",(function(){return g})),n.d(t,"easeExpInOut",(function(){return b})),n.d(t,"easeCircle",(function(){return k})),n.d(t,"easeCircleIn",(function(){return _})),n.d(t,"easeCircleOut",(function(){return w})),n.d(t,"easeCircleInOut",(function(){return k})),n.d(t,"easeBounce",(function(){return M})),n.d(t,"easeBounceIn",(function(){return O})),n.d(t,"easeBounceOut",(function(){return M})),n.d(t,"easeBounceInOut",(function(){return E})),n.d(t,"easeBack",(function(){return D})),n.d(t,"easeBackIn",(function(){return C})),n.d(t,"easeBackOut",(function(){return P})),n.d(t,"easeBackInOut",(function(){return D})),n.d(t,"easeElastic",(function(){return A})),n.d(t,"easeElasticIn",(function(){return N})),n.d(t,"easeElasticOut",(function(){return A})),n.d(t,"easeElasticInOut",(function(){return z}));var u=n(59),s=function e(t){function n(e){return Math.pow(e,t)}return t=+t,n.exponent=e,n}(3),l=function e(t){function n(e){return 1-Math.pow(1-e,t)}return t=+t,n.exponent=e,n}(3),c=function e(t){function n(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,n.exponent=e,n}(3),f=Math.PI,d=f/2;function h(e){return 1===+e?1:1-Math.cos(e*d)}function p(e){return Math.sin(e*d)}function v(e){return(1-Math.cos(f*e))/2}function y(e){return 1.0009775171065494*(Math.pow(2,-10*e)-.0009765625)}function m(e){return y(1-+e)}function g(e){return 1-y(e)}function b(e){return((e*=2)<=1?y(1-e):2-y(e-1))/2}function _(e){return 1-Math.sqrt(1-e*e)}function w(e){return Math.sqrt(1- --e*e)}function k(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var S=4/11,x=7.5625;function O(e){return 1-M(1-e)}function M(e){return(e=+e)<S?x*e*e:e<.7272727272727273?x*(e-=.5454545454545454)*e+.75:e<.9090909090909091?x*(e-=.8181818181818182)*e+.9375:x*(e-=.9545454545454546)*e+.984375}function E(e){return((e*=2)<=1?1-M(1-e):M(e-1)+1)/2}var T=1.70158,C=function e(t){function n(e){return(e=+e)*e*(t*(e-1)+e)}return t=+t,n.overshoot=e,n}(T),P=function e(t){function n(e){return--e*e*((e+1)*t+e)+1}return t=+t,n.overshoot=e,n}(T),D=function e(t){function n(e){return((e*=2)<1?e*e*((t+1)*e-t):(e-=2)*e*((t+1)*e+t)+2)/2}return t=+t,n.overshoot=e,n}(T),j=2*Math.PI,N=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=j);function i(e){return t*y(- --e)*Math.sin((r-e)/n)}return i.amplitude=function(t){return e(t,n*j)},i.period=function(n){return e(t,n)},i}(1,.3),A=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=j);function i(e){return 1-t*y(e=+e)*Math.sin((e+r)/n)}return i.amplitude=function(t){return e(t,n*j)},i.period=function(n){return e(t,n)},i}(1,.3),z=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=j);function i(e){return((e=2*e-1)<0?t*y(-e)*Math.sin((r-e)/n):2-t*y(e)*Math.sin((r+e)/n))/2}return i.amplitude=function(t){return e(t,n*j)},i.period=function(n){return e(t,n)},i}(1,.3)},function(e,t,n){var r;r=function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="./build",n(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e){return e&&e.__esModule?e:{default:e}}var a=i(n(1)),o=i(n(2)),u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){for(var r=!0;r;){var i=e,a=t,o=n;r=!1,null===i&&(i=Function.prototype);var u=Object.getOwnPropertyDescriptor(i,a);if(void 0!==u){if("value"in u)return u.value;var s=u.get;if(void 0===s)return;return s.call(o)}var l=Object.getPrototypeOf(i);if(null===l)return;e=l,t=a,n=o,r=!0,u=l=void 0}}(Object.getPrototypeOf(t.prototype),"constructor",this).call(this,e),this.state={ws:new WebSocket(this.props.url,this.props.protocol),attempts:1}}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"logging",value:function(e){!0===this.props.debug&&console.log(e)}},{key:"generateInterval",value:function(e){return this.props.reconnectIntervalInMilliSeconds>0?this.props.reconnectIntervalInMilliSeconds:1e3*Math.min(30,Math.pow(2,e)-1)}},{key:"setupWebsocket",value:function(){var e=this,t=this.state.ws;t.onopen=function(){e.logging("Websocket connected"),"function"===typeof e.props.onOpen&&e.props.onOpen()},t.onmessage=function(t){e.props.onMessage(t.data)},this.shouldReconnect=this.props.reconnect,t.onclose=function(){if(e.logging("Websocket disconnected"),"function"===typeof e.props.onClose&&e.props.onClose(),e.shouldReconnect){var t=e.generateInterval(e.state.attempts);e.timeoutID=setTimeout((function(){e.setState({attempts:e.state.attempts+1}),e.setState({ws:new WebSocket(e.props.url,e.props.protocol)}),e.setupWebsocket()}),t)}}}},{key:"componentDidMount",value:function(){this.setupWebsocket()}},{key:"componentWillUnmount",value:function(){this.shouldReconnect=!1,clearTimeout(this.timeoutID),this.state.ws.close()}},{key:"sendMessage",value:function(e){this.state.ws.send(e)}},{key:"render",value:function(){return a.default.createElement("div",null)}}]),t}(a.default.Component);u.defaultProps={debug:!1,reconnect:!0},u.propTypes={url:o.default.string.isRequired,onMessage:o.default.func.isRequired,onOpen:o.default.func,onClose:o.default.func,debug:o.default.bool,reconnect:o.default.bool,protocol:o.default.string,reconnectIntervalInMilliSeconds:o.default.number},t.default=u,e.exports=t.default},function(t,n){t.exports=e},function(e,t,n){(function(t){"use strict";if("production"!==t.env.NODE_ENV){var r="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(4)((function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r}),!0)}else e.exports=n(11)()}).call(t,n(3))},function(e,t){"use strict";var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"===typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var s,l=[],c=!1,f=-1;function d(){c&&s&&(c=!1,s.length?l=s.concat(l):f=-1,l.length&&h())}function h(){if(!c){var e=u(d);c=!0;for(var t=l.length;t;){for(s=l,l=[];++f<t;)s&&s[f].run();f=-1,t=l.length}s=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||c||u(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(t){"use strict";var r=n(5),i=n(6),a=n(7),o=n(8),u=n(9),s=n(10);e.exports=function(e,n){var l="function"===typeof Symbol&&Symbol.iterator,c="<<anonymous>>",f={array:v("array"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:p(r.thatReturnsNull),arrayOf:function(e){return p((function(t,n,r,i,a){if("function"!==typeof e)return new h("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var o=t[n];if(!Array.isArray(o))return new h("Invalid "+i+" `"+a+"` of type `"+m(o)+"` supplied to `"+r+"`, expected an array.");for(var s=0;s<o.length;s++){var l=e(o,s,r,i,a+"["+s+"]",u);if(l instanceof Error)return l}return null}))},element:p((function(t,n,r,i,a){var o=t[n];return e(o)?null:new h("Invalid "+i+" `"+a+"` of type `"+m(o)+"` supplied to `"+r+"`, expected a single ReactElement.")})),instanceOf:function(e){return p((function(t,n,r,i,a){if(!(t[n]instanceof e)){var o=e.name||c;return new h("Invalid "+i+" `"+a+"` of type `"+((u=t[n]).constructor&&u.constructor.name?u.constructor.name:c)+"` supplied to `"+r+"`, expected instance of `"+o+"`.")}var u;return null}))},node:p((function(e,t,n,r,i){return y(e[t])?null:new h("Invalid "+r+" `"+i+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return p((function(t,n,r,i,a){if("function"!==typeof e)return new h("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var o=t[n],s=m(o);if("object"!==s)return new h("Invalid "+i+" `"+a+"` of type `"+s+"` supplied to `"+r+"`, expected an object.");for(var l in o)if(o.hasOwnProperty(l)){var c=e(o,l,r,i,a+"."+l,u);if(c instanceof Error)return c}return null}))},oneOf:function(e){return Array.isArray(e)?p((function(t,n,r,i,a){for(var o=t[n],u=0;u<e.length;u++)if(d(o,e[u]))return null;return new h("Invalid "+i+" `"+a+"` of value `"+o+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")})):("production"!==t.env.NODE_ENV&&a(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&a(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var n=0;n<e.length;n++){var i=e[n];if("function"!==typeof i)return a(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",b(i),n),r.thatReturnsNull}return p((function(t,n,r,i,a){for(var o=0;o<e.length;o++)if(null==(0,e[o])(t,n,r,i,a,u))return null;return new h("Invalid "+i+" `"+a+"` supplied to `"+r+"`.")}))},shape:function(e){return p((function(t,n,r,i,a){var o=t[n],s=m(o);if("object"!==s)return new h("Invalid "+i+" `"+a+"` of type `"+s+"` supplied to `"+r+"`, expected `object`.");for(var l in e){var c=e[l];if(c){var f=c(o,l,r,i,a+"."+l,u);if(f)return f}}return null}))},exact:function(e){return p((function(t,n,r,i,a){var s=t[n],l=m(s);if("object"!==l)return new h("Invalid "+i+" `"+a+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");var c=o({},t[n],e);for(var f in c){var d=e[f];if(!d)return new h("Invalid "+i+" `"+a+"` key `"+f+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null,"  ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null,"  "));var p=d(s,f,r,i,a+"."+f,u);if(p)return p}return null}))}};function d(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function h(e){this.message=e,this.stack=""}function p(e){if("production"!==t.env.NODE_ENV)var r={},o=0;function s(s,l,f,d,p,v,y){if(d=d||c,v=v||f,y!==u)if(n)i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!==typeof console){var m=d+":"+f;!r[m]&&o<3&&(a(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",v,d),r[m]=!0,o++)}return null==l[f]?s?null===l[f]?new h("The "+p+" `"+v+"` is marked as required in `"+d+"`, but its value is `null`."):new h("The "+p+" `"+v+"` is marked as required in `"+d+"`, but its value is `undefined`."):null:e(l,f,d,p,v)}var l=s.bind(null,!1);return l.isRequired=s.bind(null,!0),l}function v(e){return p((function(t,n,r,i,a,o){var u=t[n];return m(u)!==e?new h("Invalid "+i+" `"+a+"` of type `"+g(u)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function y(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(y);if(null===t||e(t))return!0;var n=function(e){var t=e&&(l&&e[l]||e["@@iterator"]);if("function"===typeof t)return t}(t);if(!n)return!1;var r,i=n.call(t);if(n!==t.entries){for(;!(r=i.next()).done;)if(!y(r.value))return!1}else for(;!(r=i.next()).done;){var a=r.value;if(a&&!y(a[1]))return!1}return!0;default:return!1}}function m(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"===typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function g(e){if("undefined"===typeof e||null===e)return""+e;var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function b(e){var t=g(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,f.checkPropTypes=s,f.PropTypes=f,f}}).call(t,n(3))},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){(function(t){"use strict";var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,t,r,i,a,o,u,s){if(n(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,i,a,o,u,s],f=0;(l=new Error(t.replace(/%s/g,(function(){return c[f++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}}).call(t,n(3))},function(e,t,n){(function(t){"use strict";var r=n(5);if("production"!==t.env.NODE_ENV){var i=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,a="Warning: "+e.replace(/%s/g,(function(){return n[i++]}));"undefined"!==typeof console&&console.error(a);try{throw new Error(a)}catch(o){}};r=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];i.apply(void 0,[t].concat(r))}}}e.exports=r}).call(t,n(3))},function(e,t){"use strict";var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var o,u,s=a(e),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))r.call(o,c)&&(s[c]=o[c]);if(n){u=n(o);for(var f=0;f<u.length;f++)i.call(o,u[f])&&(s[u[f]]=o[u[f]])}}return s}},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){(function(t){"use strict";if("production"!==t.env.NODE_ENV)var r=n(6),i=n(7),a=n(9),o={};e.exports=function(e,n,u,s,l){if("production"!==t.env.NODE_ENV)for(var c in e)if(e.hasOwnProperty(c)){var f;try{r("function"===typeof e[c],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",s||"React class",u,c,typeof e[c]),f=e[c](n,c,s,u,null,a)}catch(h){f=h}if(i(!f||f instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",s||"React class",u,c,typeof f),f instanceof Error&&!(f.message in o)){o[f.message]=!0;var d=l?l():"";i(!1,"Failed %s type: %s%s",u,f.message,null!=d?d:"")}}}}).call(t,n(3))},function(e,t,n){"use strict";var r=n(5),i=n(6),a=n(9);e.exports=function(){function e(e,t,n,r,o,u){u!==a&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}}])},e.exports=r(n(2))},function(e,t,n){"use strict";var r=n(31);function i(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}var a=n(30);t.a=function e(t){var n=Object(a.b)(t);function i(e,t){var i=n((e=Object(r.f)(e)).r,(t=Object(r.f)(t)).r),o=n(e.g,t.g),u=n(e.b,t.b),s=Object(a.a)(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=o(t),e.b=u(t),e.opacity=s(t),e+""}}return i.gamma=e,i}(1);function o(e){return function(t){var n,i,a=t.length,o=new Array(a),u=new Array(a),s=new Array(a);for(n=0;n<a;++n)i=Object(r.f)(t[n]),o[n]=i.r||0,u[n]=i.g||0,s[n]=i.b||0;return o=e(o),u=e(u),s=e(s),i.opacity=1,function(e){return i.r=o(e),i.g=u(e),i.b=s(e),i+""}}}o((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),a=e[r],o=e[r+1],u=r>0?e[r-1]:2*a-o,s=r<t-1?e[r+2]:2*o-a;return i((n-r/t)*t,u,a,o,s)}})),o((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),a=e[(r+t-1)%t],o=e[r%t],u=e[(r+1)%t],s=e[(r+2)%t];return i((n-r/t)*t,a,o,u,s)}}))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){e.exports=function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t,n){"use strict";var r=n(6),i=n(7),a=n(13),o=n(14),u=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=u(n(1)),l=function(e){a(n,e);var t=o(n);function n(){var e;return r(this,n),(e=t.call(this))._id=s.default.uniqueId("in-"),e._type=null,e}return i(n,[{key:"_check",value:function(e){if(this._type){if(!(e instanceof this._type))throw new Error("Homogeneous events expected.")}else this._type=e.type()}}]),n}(u(n(111)).default);t.default=l},function(e,t,n){"use strict";var r=n(6),i=n(7),a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(1)),u=function(){function e(){r(this,e),this._id=o.default.uniqueId("id-"),this._observers=[]}return i(e,[{key:"emit",value:function(e){this._observers.forEach((function(t){t.addEvent(e)}))}},{key:"flush",value:function(){this._observers.forEach((function(e){e.flush()}))}},{key:"addObserver",value:function(e){var t=!0;this._observers.forEach((function(n){n===e&&(t=!1)})),t&&this._observers.push(e)}},{key:"hasObservers",value:function(){return this._observers.length>0}}]),e}();t.default=u},function(e,t,n){"use strict";var r=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.keep=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.ignoreMissing;return function(t){var n=e(t);if(!n)return null;var r=l()(n);return n.forEach((function(e){if(e!==r)return null})),r}},t.sum=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.ignoreMissing;return function(t){var n=e(t);return n?i.default.reduce(n,(function(e,t){return e+t}),0):null}},t.avg=s,t.max=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.ignoreMissing;return function(t){var n=e(t);if(!n)return null;var r=i.default.max(n);return i.default.isFinite(r)?r:void 0}},t.min=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.ignoreMissing;return function(t){var n=e(t);if(!n)return null;var r=i.default.min(n);return i.default.isFinite(r)?r:void 0}},t.count=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.ignoreMissing;return function(t){var n=e(t);return n?n.length:null}},t.first=l,t.last=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.ignoreMissing;return function(t){var n=e(t);return n?n.length?n[n.length-1]:void 0:null}},t.difference=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.ignoreMissing;return function(t){var n=e(t);return n?i.default.max(n)-i.default.min(n):null}},t.median=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.ignoreMissing;return function(t){var n=e(t);if(!n)return null;var r=n.sort(),i=Math.floor(r.length/2);return r.length%2===0?(r[i]+r[i-1])/2:r[i]}},t.stdev=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.ignoreMissing;return function(t){var n=e(t);if(!n)return null;var r=0,i=s(e)(n);return n.forEach((function(e){return r+=Math.pow(e-i,2)})),Math.sqrt(r/t.length)}},t.percentile=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"linear",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.ignoreMissing;return function(r){var i,a=n(r);if(!a)return null;var o=a.slice().sort((function(e,t){return e-t})),u=o.length;if(e<0||e>100)throw new Error("Percentile q must be between 0 and 100");var s=e/100,l=Math.floor((o.length-1)*s);if(1===u||0===e)return o[0];if(100===e)return o[u-1];if(l<u-1){var c=(u-1)*s-l,f=o[l],d=o[l+1];"lower"===t||0===c?i=f:"linear"===t?i=f+(d-f)*c:"higher"===t?i=d:"nearest"===t?i=c<.5?f:d:"midpoint"===t&&(i=(f+d)/2)}return i}},t.filter=void 0;var i=r(n(1));function a(e){return!(i.default.isUndefined(e)||i.default.isNaN(e)||i.default.isNull(e))}var o=function(e){return e.filter(a)},u={keepMissing:function(e){return e},ignoreMissing:o,zeroMissing:function(e){return e.map((function(e){return a(e)?e:0}))},propagateMissing:function(e){return o(e).length===e.length?e:null},noneIfEmpty:function(e){return 0===e.length?null:e}};function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.ignoreMissing;return function(t){var n=e(t);return n?i.default.reduce(n,(function(e,t){return e+t}),0)/n.length:null}}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.ignoreMissing;return function(t){var n=e(t);return n?n.length?n[0]:void 0:null}}t.filter=u},function(e,t,n){"use strict";var r=n(65),i=n(53),a=n(86),o=n(151),u=n(6),s=n(7),l=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=l(n(114)),f=l(n(152)),d=l(n(1)),h=l(n(20)),p=l(n(87)),v=l(n(39)),y=l(n(32)),m=l(n(56)),g=l(n(40)),b=l(n(41)),_=n(19);function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(n,!0).forEach((function(t){(0,c.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e){var t=e||{};return t.name=e.name?e.name:"",e.index&&(d.default.isString(e.index)?t.index=new v.default(e.index):e.index instanceof v.default&&(t.index=e.index)),t.utc=!0,d.default.isBoolean(e.utc)&&(t.utc=e.utc),new h.default.Map(t)}var x=function(){function e(t){if(u(this,e),this._collection=null,this._data=null,t instanceof e){var n=t;this._data=n._data,this._collection=n._collection}else if(d.default.isObject(t)){var r=t;if(d.default.has(r,"events")){var i=r.events,a=(0,f.default)(r,["events"]);this._collection=new p.default(i),this._data=S(a)}else if(d.default.has(r,"collection")){var s=r.collection,l=(0,f.default)(r,["collection"]);this._collection=s,this._data=S(l)}else if(d.default.has(r,"columns")&&d.default.has(r,"points")){var c=r.columns,h=r.points,v=r.utc,y=void 0===v||v,_=(0,f.default)(r,["columns","points","utc"]),w=o(c),k=w[0],x=w.slice(1),O=h.map((function(e){var t=o(e),n=t[0],r=t.slice(1),i=d.default.object(x,r),a=y;switch(k){case"time":return new m.default(n,i,a);case"index":return new b.default(n,i,a);case"timerange":return new g.default(n,i,a);default:throw new Error("Unknown event type")}}));this._collection=new p.default(O),this._data=S(_)}if(!this._collection.isChronological())throw new Error("TimeSeries was passed non-chronological events")}}return s(e,[{key:"toJSON",value:function(){var e=this.atFirst();if(e){var t,n=this.columns();e instanceof m.default?t=["time"].concat(a(n)):e instanceof g.default?t=["timerange"].concat(a(n)):e instanceof b.default&&(t=["index"].concat(a(n)));var r,o=[],u=i(this._collection.events());try{for(u.s();!(r=u.n()).done;){var s=r.value;o.push(s.toPoint(n))}}catch(l){u.e(l)}finally{u.f()}return d.default.extend(this._data.toJSON(),{columns:t,points:o})}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}},{key:"timerange",value:function(){return this._collection.range()}},{key:"range",value:function(){return this.timerange()}},{key:"begin",value:function(){return this.range().begin()}},{key:"end",value:function(){return this.range().end()}},{key:"at",value:function(e){return this._collection.at(e)}},{key:"atTime",value:function(e){var t=this.bisect(e);if(t>=0&&t<this.size())return this.at(t)}},{key:"atFirst",value:function(){return this._collection.atFirst()}},{key:"atLast",value:function(){return this._collection.atLast()}},{key:"events",value:r.mark((function e(){var t;return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0;case 1:if(!(t<this.size())){e.next=7;break}return e.next=4,this.at(t);case 4:t++,e.next=1;break;case 7:case"end":return e.stop()}}),e,this)}))},{key:"setCollection",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!n&&!t.isChronological())throw new Error("Collection supplied is not chronological");var r=new e(this);return r._collection=t||new p.default,r}},{key:"bisect",value:function(e,t){var n=e.getTime(),r=this.size(),i=t||0;if(r){for(;i<r;i++){var a=this.at(i).timestamp().getTime();if(a>n)return i-1>=0?i-1:0;if(a===n)return i}return i-1}}},{key:"slice",value:function(e,t){var n=this._collection.slice(e,t);return this.setCollection(n,!0)}},{key:"crop",value:function(e){var t=e.begin(),n=this.bisect(t);n=this.at(n).timestamp()<t?n+1:n;var r=this.bisect(e.end(),n);return this.slice(n,r+1)}},{key:"clean",value:function(e){var t=this._collection.clean(e);return this.setCollection(t,!0)}},{key:"name",value:function(){return this._data.get("name")}},{key:"setName",value:function(e){return this.setMeta("name",e)}},{key:"index",value:function(){return this._data.get("index")}},{key:"indexAsString",value:function(){return this.index()?this.index().asString():void 0}},{key:"indexAsRange",value:function(){return this.index()?this.index().asTimerange():void 0}},{key:"isUTC",value:function(){return this._data.get("utc")}},{key:"columns",value:function(){var e,t={},n=i(this._collection.events());try{for(n.s();!(e=n.n()).done;){var r=e.value.toJSON().data;d.default.each(r,(function(e,n){t[n]=!0}))}}catch(a){n.e(a)}finally{n.f()}return d.default.keys(t)}},{key:"collection",value:function(){return this._collection}},{key:"meta",value:function(e){return e?this._data.get(e):this._data.toJSON()}},{key:"setMeta",value:function(t,n){var r=new e(this),i=r._data.set(t,n);return r._data=i,r}},{key:"size",value:function(){return this._collection?this._collection.size():0}},{key:"sizeValid",value:function(e){return this._collection.sizeValid(e)}},{key:"count",value:function(){return this.size()}},{key:"sum",value:function(e,t){return this._collection.sum(e,t)}},{key:"max",value:function(e,t){return this._collection.max(e,t)}},{key:"min",value:function(e,t){return this._collection.min(e,t)}},{key:"avg",value:function(e,t){return this._collection.avg(e,t)}},{key:"mean",value:function(e,t){return this._collection.mean(e,t)}},{key:"median",value:function(e,t){return this._collection.median(e,t)}},{key:"stdev",value:function(e,t){return this._collection.stdev(e,t)}},{key:"percentile",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"linear",r=arguments.length>3?arguments[3]:void 0;return this._collection.percentile(e,t,n,r)}},{key:"aggregate",value:function(e,t){return this._collection.aggregate(e,t)}},{key:"quantile",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"linear";return this._collection.quantile(e,t,n)}},{key:"pipeline",value:function(){return(new _.Pipeline).from(this._collection)}},{key:"map",value:function(e){var t=this.pipeline().map(e).toKeyedCollections();return this.setCollection(t.all,!0)}},{key:"select",value:function(e){var t=e.fieldSpec,n=this.pipeline().select(t).toKeyedCollections();return this.setCollection(n.all,!0)}},{key:"collapse",value:function(e){var t=e.fieldSpecList,n=e.name,r=e.reducer,i=e.append,a=this.pipeline().collapse(t,n,r,i).toKeyedCollections();return this.setCollection(a.all,!0)}},{key:"renameColumns",value:function(e){var t=e.renameMap;return this.map((function(e){var n=e.type(),r=e.data().mapKeys((function(e){return t[e]||e}));return new n(e.key(),r)}))}},{key:"fill",value:function(e){var t=e.fieldSpec,n=void 0===t?null:t,r=e.method,i=void 0===r?"zero":r,a=e.limit,o=void 0===a?null:a,u=this.pipeline();if("zero"===i||"pad"===i)u=u.fill({fieldSpec:n,method:i,limit:o});else{if("linear"!==i||!d.default.isArray(n))throw new Error("Invalid fill method:",i);n.forEach((function(e){u=u.fill({fieldSpec:e,method:i,limit:o})}))}var s=u.toKeyedCollections();return this.setCollection(s.all,!0)}},{key:"align",value:function(e){var t=e.fieldSpec,n=void 0===t?"value":t,r=e.period,i=void 0===r?"5m":r,a=e.method,o=void 0===a?"linear":a,u=e.limit,s=void 0===u?null:u,l=this.pipeline().align(n,i,o,s).toKeyedCollections();return this.setCollection(l.all,!0)}},{key:"rate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fieldSpec,n=void 0===t?"value":t,r=e.allowNegative,i=void 0===r||r,a=this.pipeline().rate(n,i).toKeyedCollections();return this.setCollection(a.all,!0)}},{key:"fixedWindowRollup",value:function(e){var t=e.windowSize,n=e.aggregation,r=e.toTimeEvents,i=void 0!==r&&r;if(!t)throw new Error("windowSize must be supplied, for example '5m' for five minute rollups");if(!n||!d.default.isObject(n))throw new Error("aggregation object must be supplied, for example: {value: {value: avg()}}");var a=this.pipeline().windowBy(t).emitOn("discard").aggregate(n),o=(i?a.asTimeEvents():a).clearWindow().toKeyedCollections();return this.setCollection(o.all,!0)}},{key:"hourlyRollup",value:function(e){var t=e.aggregation,n=e.toTimeEvents,r=void 0!==n&&n;if(!t||!d.default.isObject(t))throw new Error("aggregation object must be supplied, for example: {value: {value: avg()}}");return this.fixedWindowRollup("1h",t,r)}},{key:"dailyRollup",value:function(e){var t=e.aggregation,n=e.toTimeEvents,r=void 0!==n&&n;if(!t||!d.default.isObject(t))throw new Error("aggregation object must be supplied, for example: {value: {value: avg()}}");return this._rollup("daily",t,r)}},{key:"monthlyRollup",value:function(e){var t=e.aggregation,n=e.toTimeEvents,r=void 0!==n&&n;if(!t||!d.default.isObject(t))throw new Error("aggregation object must be supplied, for example: {value: {value: avg()}}");return this._rollup("monthly",t,r)}},{key:"yearlyRollup",value:function(e){var t=e.aggregation,n=e.toTimeEvents,r=void 0!==n&&n;if(!t||!d.default.isObject(t))throw new Error("aggregation object must be supplied, for example: {value: {value: avg()}}");return this._rollup("yearly",t,r)}},{key:"_rollup",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.pipeline().windowBy(e).emitOn("discard").aggregate(t),i=n?r.asTimeEvents():r,a=i.clearWindow().toKeyedCollections();return this.setCollection(a.all,!0)}},{key:"collectByFixedWindow",value:function(e){var t=e.windowSize;return this.pipeline().windowBy(t).emitOn("discard").toKeyedCollections()}}],[{key:"event",value:function(e){switch(e){case"time":return m.default;case"timerange":return g.default;case"index":return b.default;default:throw new Error("Unknown event type: ".concat(e))}}},{key:"equal",value:function(e,t){return e._data===t._data&&e._collection===t._collection}},{key:"is",value:function(e,t){return h.default.is(e._data,t._data)&&p.default.is(e._collection,t._collection)}},{key:"timeSeriesListReduce",value:function(t){var n=t.fieldSpec,r=t.reducer,i=(0,f.default)(t,["fieldSpec","reducer"]),a=y.default.combiner(n,r);return e.timeSeriesListEventReduce(k({fieldSpec:n,reducer:a},i))}},{key:"timeSeriesListMerge",value:function(t){var n=t.fieldSpec,r=(0,f.default)(t,["fieldSpec"]),i=y.default.merger(n);return e.timeSeriesListEventReduce(k({fieldSpec:n,reducer:i},r))}},{key:"timeSeriesListEventReduce",value:function(t){var n=t.seriesList,r=t.fieldSpec,a=t.reducer,o=(0,f.default)(t,["seriesList","fieldSpec","reducer"]);if(!n||!d.default.isArray(n))throw new Error("A list of TimeSeries must be supplied to reduce");if(!a||!d.default.isFunction(a))throw new Error("reducer function must be supplied, for example avg()");var u=[];n.forEach((function(e){var t,n=i(e.events());try{for(n.s();!(t=n.n()).done;){var r=t.value;u.push(r)}}catch(a){n.e(a)}finally{n.f()}}));var s=a(u,r),l=new p.default(s);return l.isChronological()||(l=l.sortByTime()),new e(k({},o,{collection:l}))}}]),e}();t.default=x},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(6),i=n(7),a=n(13),o=n(14),u=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=u(n(116)),l=function(e){a(n,e);var t=o(n);function n(e,i,a){var o;return r(this,n),(o=t.call(this,e))._callback=a,o._collector=new s.default({windowType:e.getWindowType(),windowDuration:e.getWindowDuration(),groupBy:e.getGroupBy(),emitOn:e.getEmitOn()},(function(e,t,n){var r=n||"all";if(o._callback)o._callback(e,t,r);else{var i=[];"global"!==t&&i.push(t),"all"!==r&&i.push(r);var a=i.length>0?i.join("--"):"all";o._pipeline.addResult(a,e)}})),o}return i(n,[{key:"addEvent",value:function(e){this._collector.addEvent(e)}},{key:"onEmit",value:function(e){this._callback=e}},{key:"flush",value:function(){this._collector.flushCollections(),this._callback||this._pipeline.resultsDone()}}]),n}(u(n(89)).default);t.default=l},function(e,t,n){"use strict";var r=n(6),i=n(7),a=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(n(1)),u=a(n(87)),s=a(n(39)),l=function(){function e(t,n){r(this,e);var i=t.windowType,a=t.windowDuration,o=t.groupBy,u=t.emitOn;this._groupBy=o,this._emitOn=u,this._windowType=i,this._windowDuration=a,this._onTrigger=n,this._collections={}}return i(e,[{key:"flushCollections",value:function(){this.emitCollections(this._collections)}},{key:"emitCollections",value:function(e){var t=this;this._onTrigger&&o.default.each(e,(function(e){var n=e.collection,r=e.windowKey,i=e.groupByKey;t._onTrigger&&t._onTrigger(n,r,i)}))}},{key:"addEvent",value:function(e){var t,n=this,r=e.timestamp(),i=this._windowType;t="fixed"===i?s.default.getIndexString(this._windowDuration,r):"daily"===i?s.default.getDailyIndexString(r):"monthly"===i?s.default.getMonthlyIndexString(r):"yearly"===i?s.default.getYearlyIndexString(r):i;var a=this._groupBy(e),l=a?"".concat(t,"::").concat(a):t,c=!1;o.default.has(this._collections,l)||(this._collections[l]={windowKey:t,groupByKey:a,collection:new u.default},c=!0),this._collections[l].collection=this._collections[l].collection.addEvent(e);var f={};c&&"fixed"===i&&o.default.each(this._collections,(function(e,n){t!==e.windowKey&&(f[n]=e)}));var d=this._emitOn;if("eachEvent"===d)this.emitCollections(this._collections);else if("discard"===d)this.emitCollections(f),o.default.each(Object.keys(f),(function(e){delete n._collections[e]}));else if("flush"!==d)throw new Error("Unknown emit type supplied to Collector")}}]),e}();t.default=l},function(e,t,n){"use strict";var r=n(6),i=n(7),a=n(13),o=n(14),u=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(e){a(n,e);var t=o(n);function n(e,i,a){var o;return r(this,n),(o=t.call(this,e))._callback=a,o}return i(n,[{key:"addEvent",value:function(e){this._callback?this._callback(e):this._pipeline.addResult(e)}},{key:"onEmit",value:function(e){this._callback=e}},{key:"flush",value:function(){this._callback||this._pipeline.resultsDone()}}]),n}(u(n(89)).default);t.default=s},function(e,t,n){"use strict";var r=n(65),i=n(6),a=n(7),o=n(13),u=n(14),s=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=function(e){o(n,e);var t=u(n);function n(){var e;return i(this,n),(e=t.call(this))._running=!0,e}return a(n,[{key:"start",value:function(){this._running=!0}},{key:"stop",value:function(){this._running=!1,this.flush()}},{key:"addEvent",value:function(e){this._check(e),this.hasObservers()&&this._running&&this.emit(e)}},{key:"events",value:r.mark((function e(){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("Iteration across unbounded sources is not supported.");case 1:case"end":return e.stop()}}),e)}))}]),n}(s(n(110)).default);t.default=l},function(e,t,n){"use strict";var r=n(25);t.a=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Object(r.a)(t)/3)))-Object(r.a)(Math.abs(e)))}},function(e,t,n){"use strict";var r=n(25);t.a=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Object(r.a)(t)-Object(r.a)(e))+1}},function(e,t,n){"use strict";var r=n(25);t.a=function(e){return Math.max(0,-Object(r.a)(Math.abs(e)))}},function(e,t,n){"use strict";e.exports=n(174)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=y(n(1)),a=y(n(2)),o=y(n(12)),u=n(102),s=n(127),l=n(122),c=y(n(92)),f=y(n(124)),d=y(n(100)),h=y(n(99)),p=y(n(101)),v=y(n(175));function y(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.isChildYAxis=function(e){return(0,l.areComponentsEqual)(e.type,f.default)||i.default.has(e.props,"min")&&i.default.has(e.props,"max")};var r=i.default.uniqueId("clip_"),a="url(#"+r+")";return n.state={clipId:r,clipPathURL:a},n.mounted=!0,n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"updateScales",value:function(e){var t=this,n=e.axisMargin,r=+e.height-2*n,o=n,l=r-n;a.default.Children.forEach(e.children,(function(e){if(null!==e&&t.isChildYAxis(e)){var n=e.props,r=n.id,a=n.max,c=n.min,f=n.transition,d=void 0===f?0:f,h=n.type,p=void 0===h?"linear":h;i.default.has(t.scaleMap,r)||(t.scaleMap[r]=new v.default(d,u.easeSinOut,(function(e){var n=t.state.yAxisScalerMap;n[r]=e,t.mounted&&t.setState(n)})));var y=void 0;y=i.default.has(e.props,"yScale")?e.props.yScale:function(e,t,n,r,a,o){var u=void 0;if(i.default.isUndefined(n)||i.default.isUndefined(r))u=null;else if("linear"===t)u=(0,s.scaleLinear)().domain([n,r]).range([a,o]).nice();else if("log"===t){var l=e.props.logBase||10;u=(0,s.scaleLog)().base(l).domain([n,r]).range([a,o])}else if("power"===t){var c=e.props.powerExponent||2;u=(0,s.scalePow)().exponent(c).domain([n,r]).range([a,o])}return u}(e,p,c,a,l,o);var m=p+"-"+c+"-"+a+"-"+l+"-"+o;t.scaleMap[r].setScale(m,y)}}));var c={};i.default.forEach(this.scaleMap,(function(e,t){c[t]=e.scaler()})),this.mounted&&this.setState({yAxisScalerMap:c})}},{key:"componentWillMount",value:function(){this.scaleMap={},this.updateScales(this.props)}},{key:"componentWillReceiveProps",value:function(e){this.updateScales(e)}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"render",value:function(){var e=this,t=this.props,n=t.paddingLeft,r=t.paddingRight,o=[],u=[],s=+this.props.height-2*this.props.axisMargin,f={},v=[],y=[],m=!0;a.default.Children.forEach(this.props.children,(function(t){if(null!==t)if((0,l.areComponentsEqual)(t.type,d.default))m=!1;else{var n=t.props.id;if(e.isChildYAxis(t)){var r=t;r.props.id&&!1!==r.props.visible&&(f[r.props.id]=r),m?v.push(n):y.push(n)}}})),v.reverse();var g=void 0,b=void 0,_=void 0,w=void 0,k=0,S=i.default.reduce(this.props.leftAxisWidths,(function(e,t){return e+t}),0),x=i.default.reduce(this.props.rightAxisWidths,(function(e,t){return e+t}),0),O=this.props.width-S-x-n-r;k=S;for(var M=0;M<this.props.leftAxisWidths.length;M+=1){var E=this.props.leftAxisWidths[M];k-=E,E>0&&M<v.length&&(b=v[M],i.default.has(f,b)&&(g="translate("+(k+n)+",0)",_={width:E,height:s,chartExtent:O,isInnerAxis:0===M,align:"left",scale:this.scaleMap[b].latestScale()},w=a.default.cloneElement(f[b],_),o.push(a.default.createElement("g",{key:"y-axis-left-"+M,transform:g},w))))}k=this.props.width-x-r;for(var T=0;T<this.props.rightAxisWidths.length;T+=1){var C=this.props.rightAxisWidths[T];C>0&&T<y.length&&(b=y[T],i.default.has(f,b)&&(g="translate("+(k+n)+",0)",_={width:C,height:s,chartExtent:O,isInnerAxis:0===T,align:"right",scale:this.scaleMap[b].latestScale()},w=a.default.cloneElement(f[b],_),o.push(a.default.createElement("g",{key:"y-axis-right-"+T,transform:g},w)))),k+=C}var P="translate("+(S+n)+",0)",D=0;a.default.Children.forEach(this.props.children,(function(t){if(null!==t&&(0,l.areComponentsEqual)(t.type,d.default)){var n=t;a.default.Children.forEach(n.props.children,(function(t){if(!i.default.has(t.props,"visible")||t.props.visible){var n=null;i.default.has(e.state.yAxisScalerMap,t.props.axis)&&(n=e.state.yAxisScalerMap[t.props.axis]);var r=null;i.default.has(e.scaleMap,t.props.axis)&&(r=e.scaleMap[t.props.axis]);var o={key:D,width:O,height:s,timeScale:e.props.timeScale,timeFormat:e.props.timeFormat};n&&(o.yScale=n),r&&(o.transition=r),u.push(a.default.cloneElement(t,o)),D+=1}}))}}));var j=[],N=[];D=0,a.default.Children.forEach(this.props.children,(function(t){if(null!==t){if((0,l.areComponentsEqual)(t.type,c.default)||(0,l.areComponentsEqual)(t.type,h.default)){var n={key:"brush-"+D,width:O,height:s,timeScale:e.props.timeScale};(0,l.areComponentsEqual)(t.type,c.default)?j.push(a.default.cloneElement(t,n)):N.push(a.default.cloneElement(t,n))}D+=1}}));var A=a.default.createElement("g",{transform:P,key:"event-rect-group"},a.default.createElement("g",{key:"charts",clipPath:this.state.clipPathURL},u)),z=a.default.createElement("defs",null,a.default.createElement("clipPath",{id:this.state.clipId},a.default.createElement("rect",{x:"0",y:"0",style:{strokeOpacity:0},width:O,height:s}))),R=a.default.createElement("g",{transform:P,key:"brush-group"},j),I=a.default.createElement("g",{transform:P,key:"multi-brush-group"},N),L=void 0;if(this.props.trackerTime){var U={timeFormat:this.props.trackerTimeFormat||this.props.timeFormat,showLine:!1,showTime:this.props.trackerShowTime,time:this.props.trackerTime,timeScale:this.props.timeScale,width:O,infoStyle:this.props.trackerStyle};this.props.trackerInfoValues&&(U.infoWidth=this.props.trackerInfoWidth,U.infoHeight=this.props.trackerInfoHeight,U.infoValues=this.props.trackerInfoValues,U.timeFormat=this.props.trackerTimeFormat);var F="translate("+(S+n)+",0)";L=a.default.createElement("g",{key:"tracker-group",style:{pointerEvents:"none"},transform:F},a.default.createElement(p.default,U))}return a.default.createElement("g",null,z,o,A,R,I,L)}}]),t}(a.default.Component);t.default=m,m.defaultProps={trackerTimeFormat:"%b %d %Y %X",enablePanZoom:!1,height:100,axisMargin:5,visible:!0},m.propTypes={height:o.default.oneOfType([o.default.string,o.default.number]),axisMargin:o.default.number,visible:o.default.bool,trackerShowTime:o.default.bool,trackerInfoWidth:o.default.number,trackerInfoHeight:o.default.number,trackerInfoValues:o.default.oneOfType([o.default.string,o.default.arrayOf(o.default.shape({label:o.default.string,value:o.default.string}))]),title:o.default.string,titleHeight:o.default.number,titleStyle:o.default.object,titleBoxStyle:o.default.object,children:o.default.oneOfType([o.default.arrayOf(o.default.node),o.default.node]),leftAxisWidths:o.default.arrayOf(o.default.number),rightAxisWidths:o.default.arrayOf(o.default.number),width:o.default.number,timeScale:o.default.func,trackerTimeFormat:o.default.oneOfType([o.default.string,o.default.func]),timeFormat:o.default.oneOfType([o.default.string,o.default.func]),trackerTime:o.default.instanceOf(Date)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(82);var i=v(n(1)),a=v(n(15)),o=v(n(2)),u=v(n(44)),s=v(n(12)),l=n(11),c=n(129),f=n(102),d=n(71),h=n(16);n(128);var p=n(27);function v(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var g={label:{stroke:"none",fill:"#8B7E7E",fontWeight:100,fontSize:12,font:'"Goudy Bookletter 1911", sans-serif"'},values:{stroke:"none",fill:"#8B7E7E",fontWeight:100,fontSize:11,font:'"Goudy Bookletter 1911", sans-serif"'},ticks:{fill:"none",stroke:"#C0C0C0"},axis:{fill:"none",stroke:"#C0C0C0"}},b=function(e){function t(){return y(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.renderAxis(this.props.align,this.props.scale,+this.props.width,+this.props.height,this.props.showGrid,+this.props.chartExtent,this.props.hideAxisLine,this.props.absolute,this.props.type,this.props.format,this.props.label,this.props.tickCount,this.props.min,this.props.max)}},{key:"componentWillReceiveProps",value:function(e){var t=e.scale,n=e.align,r=e.width,i=e.height,a=e.chartExtent,o=e.absolute,u=e.format,s=e.type,l=e.showGrid,c=e.hideAxisLine,f=e.label,d=e.tickCount,h=e.min,v=e.max;(0,p.scaleAsString)(this.props.scale)!==(0,p.scaleAsString)(t)?this.updateAxis(n,t,r,i,l,a,c,o,s,u,f,d,h,v):this.props.format!==u||this.props.align!==n||this.props.width!==r||this.props.height!==i||this.props.type!==s||this.props.absolute!==o||this.props.chartExtent!==a||this.props.showGrid!==l||this.props.hideAxisLine!==c?this.renderAxis(n,t,+r,+i,l,a,c,o,s,u,f,d,h,v):this.props.label!==f&&this.updateLabel(f)}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"yformat",value:function(e){return i.default.isString(e)?(0,d.format)(e):i.default.isFunction(e)?e:(0,d.format)("")}},{key:"mergeStyles",value:function(e){return{labelStyle:(0,a.default)(!0,g.label,this.props.style.label?this.props.style.label:{}),valueStyle:(0,a.default)(!0,g.values,this.props.style.values?this.props.style.values:{}),axisStyle:(0,a.default)(!0,g.axis,this.props.style.axis?this.props.style.axis:{}),tickStyle:(0,a.default)(!0,g.ticks,this.props.style.ticks?this.props.style.ticks:{})}}},{key:"postSelect",value:function(e,t,n){var r=e.valueStyle,i=e.tickStyle,a=e.axisStyle;(0,h.select)(u.default.findDOMNode(this)).select("g").selectAll(".tick").select("text").styles(r),(0,h.select)(u.default.findDOMNode(this)).select("g").selectAll(".tick").select("line").styles(i),(0,h.select)(u.default.findDOMNode(this)).select("g").selectAll(".domain").remove(),t||(0,h.select)(u.default.findDOMNode(this)).select("g").append("line").styles(a).attr("x1",0).attr("y1",0).attr("x2",0).attr("y2",n)}},{key:"generator",value:function(e,t,n,r,i,a,o,u,s){var c=void 0;if("linear"===e||"power"===e)if(o>0){var f=(s-u)/(o-1);c=r(i).tickValues((0,l.range)(u,s+s/1e4,f)).tickFormat((function(e){return n(t?Math.abs(e):e)})).tickSizeOuter(0)}else c=a<=200?r(i).ticks(4).tickFormat((function(e){return n(t?Math.abs(e):e)})).tickSizeOuter(0):r(i).tickFormat((function(e){return n(t?Math.abs(e):e)})).tickSizeOuter(0);else if("log"===e){if(0===u)throw Error("In a log scale, minimum value can't be 0");c=r(i).ticks(10,".2s").tickSizeOuter(0)}return c}},{key:"renderAxis",value:function(e,t,n,r,i,a,o,s,l,f,d,p,v,y){var m=this.yformat(f),g="left"===e?c.axisLeft:c.axisRight,b=this.mergeStyles(this.props.style),_=b.labelStyle,w=b.valueStyle,k=i&&this.props.isInnerAxis?-a:5,S="left"===e?n-0:0,x="left"===e?this.props.labelOffset-50:40+this.props.labelOffset,O=this.generator(l,s,m,g,t,r,p,v,y);(0,h.select)(u.default.findDOMNode(this)).selectAll("*").remove(),this.axis=(0,h.select)(u.default.findDOMNode(this)).append("g").attr("transform","translate("+S+",0)").attr("class","yaxis").styles(w).call(O.tickSize(k)).append("text").text(d||this.props.label).styles(_).attr("transform","rotate(-90)").attr("class","yaxislabel").attr("y",x).attr("dy",".71em").attr("text-anchor","end"),this.postSelect(b,o,r)}},{key:"updateAxis",value:function(e,t,n,r,i,a,o,s,l,d,p,v,y,m){var g=this.yformat(d),b="left"===e?c.axisLeft:c.axisRight,_=this.mergeStyles(this.props.style),w=i&&this.props.isInnerAxis?-a:5,k=this.generator(l,s,g,b,t,r,v,y,m);(0,h.select)(u.default.findDOMNode(this)).select(".yaxis").transition().duration(this.props.transition).ease(f.easeSinOut).call(k.tickSize(w)),this.updateLabel(p),this.postSelect(_,o,r)}},{key:"updateLabel",value:function(e){(0,h.select)(u.default.findDOMNode(this)).select(".yaxislabel").text(e)}},{key:"render",value:function(){return o.default.createElement("g",null)}}]),t}(o.default.Component);t.default=b,b.defaultProps={id:"yaxis",align:"left",min:0,max:1,showGrid:!1,hideAxisLine:!1,type:"linear",absolute:!1,format:".2s",labelOffset:0,transition:100,width:80,style:g},b.propTypes={id:s.default.string.isRequired,visible:s.default.bool,label:s.default.string,type:s.default.oneOf(["linear","power","log"]),min:s.default.number.isRequired,max:s.default.number.isRequired,yScale:s.default.func,absolute:s.default.bool,style:s.default.shape({label:s.default.object,axis:s.default.object,values:s.default.object,ticks:s.default.object}),showGrid:s.default.bool,hideAxisLine:s.default.bool,transition:s.default.number,width:s.default.oneOfType([s.default.string,s.default.number]),labelOffset:s.default.number,format:s.default.oneOfType([s.default.string,s.default.func]),align:s.default.string,scale:s.default.func,height:s.default.number,tickCount:s.default.number}},function(e,t,n){!function(e,t){function r(e){var t="";if(!(e=parseInt(e,10))||e<1)return t;for(;e;)t+="0",e-=1;return t}function i(e,t,n){return null==e&&(e=""),e=""+e,(n?e:"")+r(t-e.length)+(n?"":e)}function a(e){return"[object Array]"===Object.prototype.toString.call(e)}function o(e){return"[object Object]"===Object.prototype.toString.call(e)}function u(e,t){var n,r=0,i=e.length;for("function"!==typeof t&&(n=t,t=function(e){return e===n});r<i;){if(t(e[r]))return e[r];r+=1}}function s(e,t){var n=0,r=e.length;if(e&&r)for(;n<r;){if(!1===t(e[n],n))return;n+=1}}function l(e,t){var n=0,r=e.length,i=[];if(!e||!r)return i;for(;n<r;)i[n]=t(e[n],n),n+=1;return i}function c(e,t){return l(e,(function(e){return e[t]}))}function f(e){var t=[];return s(e,(function(e){e&&t.push(e)})),t}function d(e){var t=[];return s(e,(function(e){u(t,e)||t.push(e)})),t}function h(e,t){var n=[];return s(e,(function(e){s(t,(function(t){e===t&&n.push(e)}))})),d(n)}function p(e,t){var n=[];return s(e,(function(r,i){if(!t(r))return n=e.slice(i),!1})),n}function v(e,t){return p(e.slice().reverse(),t).reverse()}function y(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var m;try{m=n(54)}catch(g){}if(!m&&e.moment&&(m=e.moment),!m)throw"Moment Duration Format cannot find Moment.js";m.duration.fn.format=function(){var e,t,n,g,b,_,w=[].slice.call(arguments),k=y({},this.format.defaults),S=m.duration(this);return k.duration=this,s(w,(function(e){"string"!==typeof e&&"function"!==typeof e?"number"!==typeof e?o(e)&&y(k,e):k.precision=e:k.template=e})),n=k.types=a(k.types)?k.types:k.types.split(" "),"function"===typeof k.template&&(k.template=k.template.apply(k)),e=new RegExp(l(n,(function(e){return k[e].source})).join("|"),"g"),g=function(e){return u(n,(function(t){return k[t].test(e)}))},t=l(k.template.match(e),(function(e,t){var n=g(e);return{index:t,length:e.length,token:"escape"===n?e.replace(k.escape,"$1"):e,type:"escape"===n||"general"===n?null:n}})),(b=h(n,d(f(c(t,"type"))))).length?(s(b,(function(e,n){var r,i,a,o,u;r=S.as(e),i=r>0?Math.floor(r):Math.ceil(r),a=r-i,o=n+1===b.length,u=!n,s(t,(function(t){t.type===e&&(y(t,{value:r,wholeValue:i,decimalValue:a,isLeast:o,isMost:u}),u&&null==k.forceLength&&t.length>1&&(k.forceLength=!0))})),S.subtract(i,e)})),k.trim&&(t=("left"===k.trim?p:v)(t,(function(e){return!(e.isLeast||null!=e.type&&e.wholeValue)}))),_=!1,"right"===k.trim&&t.reverse(),t=l(t,(function(e){var t,n;if(!e.type)return e.token;if(t=(t=e.isLeast&&k.precision<0?(Math.floor(e.wholeValue*Math.pow(10,k.precision))*Math.pow(10,-k.precision)).toString():e.wholeValue.toString()).replace(/^\-/,""),e.length>1&&(_||e.isMost||k.forceLength)&&(t=i(t,e.length)),e.isLeast&&k.precision>0)switch((n=e.decimalValue.toString().replace(/^\-/,"").split(/\.|e\-/)).length){case 1:t+="."+i(n[0],k.precision,!0).slice(0,k.precision);break;case 2:t+="."+i(n[1],k.precision,!0).slice(0,k.precision);break;case 3:t+="."+i(r(+n[2]-1)+(n[0]||"0")+n[1],k.precision,!0).slice(0,k.precision);break;default:throw"Moment Duration Format: unable to parse token decimal value."}return e.isMost&&e.value<0&&(t="-"+t),_=!0,t})),"right"===k.trim&&t.reverse(),t.join("")):c(t,"token").join("")},m.duration.fn.format.defaults={escape:/\[(.+?)\]/,years:/[Yy]+/,months:/M+/,weeks:/[Ww]+/,days:/[Dd]+/,hours:/[Hh]+/,minutes:/m+/,seconds:/s+/,milliseconds:/S+/,general:/.+?/,types:"escape years months weeks days hours minutes seconds milliseconds general",trim:"left",precision:0,forceLength:null,template:function(){var e=this.types,t=this.duration;switch(function(e,t){for(var n=e.length;n-=1;)if(t(e[n]))return e[n]}(e,(function(e){return t._data[e]}))){case"seconds":return"h:mm:ss";case"minutes":return"d[d] h:mm";case"hours":return"d[d] h[h]";case"days":return"M[m] d[d]";case"weeks":return"y[y] w[w]";case"months":return"y[y] M[m]";case"years":return"y[y]";default:return"y[y] M[m] d[d] h:mm:ss"}}}}(this)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=p(n(1)),a=p(n(15)),o=p(n(54)),u=p(n(2)),s=p(n(44)),l=p(n(12)),c=n(129),f=n(16);n(128);var d=n(72),h=n(60);function p(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function m(e){return e.domain().toString()+"-"+e.range().toString()}n(125);var g={values:{stroke:"none",fill:"#8B7E7E",fontWeight:100,fontSize:11,font:'"Goudy Bookletter 1911", sans-serif"'},ticks:{fill:"none",stroke:"#C0C0C0"},axis:{fill:"none",stroke:"#C0C0C0"}},b=function(e){function t(){return v(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.scale,n=e.format,r=e.showGrid,i=e.gridHeight;this.renderTimeAxis(t,n,r,i)}},{key:"componentWillReceiveProps",value:function(e){var t=e.scale,n=e.utc,r=e.format,i=e.showGrid,a=e.gridHeight;m(this.props.scale)===m(t)&&this.props.utc===n&&this.props.showGrid===i&&this.props.gridHeight===a||this.renderTimeAxis(t,r,i,a)}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"mergeStyles",value:function(e){return{valueStyle:(0,a.default)(!0,g.values,this.props.style.values?this.props.style.values:{}),tickStyle:(0,a.default)(!0,g.ticks,this.props.style.ticks?this.props.style.ticks:{})}}},{key:"renderTimeAxis",value:function(e,t,n,r){var a=void 0,u=n?-r:10,l=this.props.utc,p=this.props.tickCount,v=this.mergeStyles(this.props.style),y=v.tickStyle,m=v.valueStyle;a=p>0?"day"===t?(0,c.axisBottom)(e).tickArguments([l?d.utcDay:d.timeDay,1,p]).tickFormat((0,h.timeFormat)("%d")).tickSizeOuter(0):"month"===t?(0,c.axisBottom)(e).tickArguments([l?d.utcMonth:d.timeMonth,1,p]).tickFormat((0,h.timeFormat)("%B")).tickSizeOuter(0):"year"===t?(0,c.axisBottom)(e).tickArguments([l?d.utcYear:d.timeYear,1,p]).tickFormat((0,h.timeFormat)("%Y")).tickSizeOuter(0):"relative"===t?(0,c.axisBottom)(e).ticks(p).tickFormat((function(e){return o.default.duration(+e).format()})).tickSizeOuter(0):i.default.isString(t)?(0,c.axisBottom)(e).ticks(p).tickFormat((0,h.timeFormat)(t)).tickSizeOuter(0):i.default.isFunction(t)?(0,c.axisBottom)(e).ticks(p).tickFormat(t).tickSizeOuter(0):(0,c.axisBottom)(e).ticks(p).tickSize(0):"day"===t?(0,c.axisBottom)(e).tickArguments([l?d.utcDay:d.timeDay,1]).tickFormat((0,h.timeFormat)("%d")).tickSizeOuter(0):"month"===t?(0,c.axisBottom)(e).tickArguments([l?d.utcMonth:d.timeMonth,1]).tickFormat((0,h.timeFormat)("%B")).tickSizeOuter(0):"year"===t?(0,c.axisBottom)(e).tickArguments([l?d.utcYear:d.timeYear,1]).tickFormat((0,h.timeFormat)("%Y")).tickSizeOuter(0):"relative"===t?(0,c.axisBottom)(e).tickFormat((function(e){return o.default.duration(+e).format()})).tickSizeOuter(0):i.default.isString(t)?(0,c.axisBottom)(e).tickFormat((0,h.timeFormat)(t)).tickSizeOuter(0):i.default.isFunction(t)?(0,c.axisBottom)(e).tickFormat(t).tickSizeOuter(0):(0,c.axisBottom)(e).tickSize(0),(0,f.select)(s.default.findDOMNode(this)).selectAll("*").remove(),(0,f.select)(s.default.findDOMNode(this)).append("g").attr("class","x axis").style("stroke","none").styles(m).call(a.tickSize(u)),this.props.angled?(0,f.select)(s.default.findDOMNode(this)).select("g").selectAll(".tick").select("text").styles(m).style("text-anchor","end").attr("dx","-1.2em").attr("dy","0em").attr("transform",(function(e){return"rotate(-65)"})):(0,f.select)(s.default.findDOMNode(this)).select("g").selectAll(".tick").select("text").styles(m),(0,f.select)(s.default.findDOMNode(this)).select("g").selectAll(".tick").select("line").styles(y),(0,f.select)(s.default.findDOMNode(this)).select("g").select("path").remove()}},{key:"render",value:function(){return u.default.createElement("g",null)}}]),t}(u.default.Component);t.default=b,b.defaultProps={showGrid:!1,style:g,angled:!1},b.propTypes={scale:l.default.func.isRequired,showGrid:l.default.bool,angled:l.default.bool,gridHeight:l.default.number,format:l.default.oneOfType([l.default.string,l.default.func]),utc:l.default.bool,style:l.default.shape({label:l.default.object,values:l.default.object,axis:l.default.object}),tickCount:l.default.number}},function(e,t,n){"use strict";n.r(t),n.d(t,"scaleBand",(function(){return y})),n.d(t,"scalePoint",(function(){return g})),n.d(t,"scaleIdentity",(function(){return V})),n.d(t,"scaleLinear",(function(){return q})),n.d(t,"scaleLog",(function(){return ee})),n.d(t,"scaleOrdinal",(function(){return v})),n.d(t,"scaleImplicit",(function(){return p})),n.d(t,"scalePow",(function(){return ne})),n.d(t,"scaleSqrt",(function(){return re})),n.d(t,"scaleQuantile",(function(){return ie})),n.d(t,"scaleQuantize",(function(){return ae})),n.d(t,"scaleThreshold",(function(){return oe})),n.d(t,"scaleTime",(function(){return Oe})),n.d(t,"scaleUtc",(function(){return je})),n.d(t,"schemeCategory10",(function(){return Ae})),n.d(t,"schemeCategory20b",(function(){return ze})),n.d(t,"schemeCategory20c",(function(){return Re})),n.d(t,"schemeCategory20",(function(){return Ie})),n.d(t,"interpolateCubehelixDefault",(function(){return tt})),n.d(t,"interpolateRainbow",(function(){return at})),n.d(t,"interpolateWarm",(function(){return nt})),n.d(t,"interpolateCool",(function(){return rt})),n.d(t,"interpolateViridis",(function(){return ut})),n.d(t,"interpolateMagma",(function(){return st})),n.d(t,"interpolateInferno",(function(){return lt})),n.d(t,"interpolatePlasma",(function(){return ct})),n.d(t,"scaleSequential",(function(){return ft}));var r=n(11),i="$";function a(){}function o(e,t){var n=new a;if(e instanceof a)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(r=e[i],i,e),r)}else if(e)for(var u in e)n.set(u,e[u]);return n}a.prototype=o.prototype={constructor:a,has:function(e){return i+e in this},get:function(e){return this[i+e]},set:function(e,t){return this[i+e]=t,this},remove:function(e){var t=i+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===i&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===i&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===i&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===i&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===i&&++e;return e},empty:function(){for(var e in this)if(e[0]===i)return!1;return!0},each:function(e){for(var t in this)t[0]===i&&e(this[t],t.slice(1),this)}};var u=o;function s(){}var l=u.prototype;function c(e,t){var n=new s;if(e instanceof s)e.each((function(e){n.add(e)}));else if(e){var r=-1,i=e.length;if(null==t)for(;++r<i;)n.add(e[r]);else for(;++r<i;)n.add(t(e[r],r,e))}return n}s.prototype=c.prototype={constructor:s,has:l.has,add:function(e){return this[i+(e+="")]=e,this},remove:l.remove,clear:l.clear,values:l.keys,size:l.size,empty:l.empty,each:l.each};var f=Array.prototype,d=f.map,h=f.slice,p={name:"implicit"};function v(e){var t=u(),n=[],r=p;function i(i){var a=i+"",o=t.get(a);if(!o){if(r!==p)return r;t.set(a,o=n.push(i))}return e[(o-1)%e.length]}return e=null==e?[]:h.call(e),i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=u();for(var r,a,o=-1,s=e.length;++o<s;)t.has(a=(r=e[o])+"")||t.set(a,n.push(r));return i},i.range=function(t){return arguments.length?(e=h.call(t),i):e.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return v().domain(n).range(e).unknown(r)},i}function y(){var e,t,n=v().unknown(void 0),i=n.domain,a=n.range,o=[0,1],u=!1,s=0,l=0,c=.5;function f(){var n=i().length,f=o[1]<o[0],d=o[f-0],h=o[1-f];e=(h-d)/Math.max(1,n-s+2*l),u&&(e=Math.floor(e)),d+=(h-d-e*(n-s))*c,t=e*(1-s),u&&(d=Math.round(d),t=Math.round(t));var p=Object(r.range)(n).map((function(t){return d+e*t}));return a(f?p.reverse():p)}return delete n.unknown,n.domain=function(e){return arguments.length?(i(e),f()):i()},n.range=function(e){return arguments.length?(o=[+e[0],+e[1]],f()):o.slice()},n.rangeRound=function(e){return o=[+e[0],+e[1]],u=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(u=!!e,f()):u},n.padding=function(e){return arguments.length?(s=l=Math.max(0,Math.min(1,e)),f()):s},n.paddingInner=function(e){return arguments.length?(s=Math.max(0,Math.min(1,e)),f()):s},n.paddingOuter=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),f()):l},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),f()):c},n.copy=function(){return y().domain(i()).range(o).round(u).paddingInner(s).paddingOuter(l).align(c)},f()}function m(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return m(t())},e}function g(){return m(y().paddingInner(1))}var b=n(22),_=n(31),w=n(104),k=function(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(a){for(n=0;n<r;++n)i[n]=e[n]*(1-a)+t[n]*a;return i}};function S(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function x(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,a=new Array(i),o=new Array(r);for(n=0;n<i;++n)a[n]=C(e[n],t[n]);for(;n<r;++n)o[n]=t[n];return function(e){for(n=0;n<i;++n)o[n]=a[n](e);return o}}var O=function(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}},M=function(e,t){var n,r={},i={};for(n in null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={}),t)n in e?r[n]=C(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}},E=n(130),T=n(49),C=function(e,t){var n,r=typeof t;return null==t||"boolean"===r?Object(T.a)(t):("number"===r?b.a:"string"===r?(n=Object(_.e)(t))?(t=n,w.a):E.a:t instanceof _.e?w.a:t instanceof Date?O:S(t)?k:Array.isArray(t)?x:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?M:b.a)(e,t)},P=function(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}},D=function(e){return function(){return e}},j=function(e){return+e},N=[0,1];function A(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:D(t)}function z(e,t,n,r){var i=e[0],a=e[1],o=t[0],u=t[1];return a<i?(i=n(a,i),o=r(u,o)):(i=n(i,a),o=r(o,u)),function(e){return o(i(e))}}function R(e,t,n,i){var a=Math.min(e.length,t.length)-1,o=new Array(a),u=new Array(a),s=-1;for(e[a]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<a;)o[s]=n(e[s],e[s+1]),u[s]=i(t[s],t[s+1]);return function(t){var n=Object(r.bisect)(e,t,1,a)-1;return u[n](o[n](t))}}function I(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())}function L(e,t){var n,r,i,a=N,o=N,u=C,s=!1;function l(){return n=Math.min(a.length,o.length)>2?R:z,r=i=null,c}function c(t){return(r||(r=n(a,o,s?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:r(e)}}}(e):e,u)))(+t)}return c.invert=function(e){return(i||(i=n(o,a,A,s?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:r(e)}}}(t):t)))(+e)},c.domain=function(e){return arguments.length?(a=d.call(e,j),l()):a.slice()},c.range=function(e){return arguments.length?(o=h.call(e),l()):o.slice()},c.rangeRound=function(e){return o=h.call(e),u=P,l()},c.clamp=function(e){return arguments.length?(s=!!e,l()):s},c.interpolate=function(e){return arguments.length?(u=e,l()):u},l()}var U=n(45),F=n(119),Y=n(70),B=n(120),H=n(121);function W(e){var t=e.domain;return e.ticks=function(e){var n=t();return Object(r.ticks)(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return function(e,t,n){var i,a=e[0],o=e[e.length-1],u=Object(r.tickStep)(a,o,null==t?10:t);switch((n=Object(U.b)(null==n?",f":n)).type){case"s":var s=Math.max(Math.abs(a),Math.abs(o));return null!=n.precision||isNaN(i=Object(F.a)(u,s))||(n.precision=i),Object(Y.c)(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=Object(B.a)(u,Math.max(Math.abs(a),Math.abs(o))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=Object(H.a)(u))||(n.precision=i-2*("%"===n.type))}return Object(Y.b)(n)}(t(),e,n)},e.nice=function(n){null==n&&(n=10);var i,a=t(),o=0,u=a.length-1,s=a[o],l=a[u];return l<s&&(i=s,s=l,l=i,i=o,o=u,u=i),(i=Object(r.tickIncrement)(s,l,n))>0?(s=Math.floor(s/i)*i,l=Math.ceil(l/i)*i,i=Object(r.tickIncrement)(s,l,n)):i<0&&(s=Math.ceil(s*i)/i,l=Math.floor(l*i)/i,i=Object(r.tickIncrement)(s,l,n)),i>0?(a[o]=Math.floor(s/i)*i,a[u]=Math.ceil(l/i)*i,t(a)):i<0&&(a[o]=Math.ceil(s*i)/i,a[u]=Math.floor(l*i)/i,t(a)),e},e}function q(){var e=L(A,b.a);return e.copy=function(){return I(e,q())},W(e)}function V(){var e=[0,1];function t(e){return+e}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=d.call(n,j),t):e.slice()},t.copy=function(){return V().domain(e)},W(t)}var Z=function(e,t){var n,r=0,i=(e=e.slice()).length-1,a=e[r],o=e[i];return o<a&&(n=r,r=i,i=n,n=a,a=o,o=n),e[r]=t.floor(a),e[i]=t.ceil(o),e};function G(e,t){return(t=Math.log(t/e))?function(n){return Math.log(n/e)/t}:D(t)}function $(e,t){return e<0?function(n){return-Math.pow(-t,n)*Math.pow(-e,1-n)}:function(n){return Math.pow(t,n)*Math.pow(e,1-n)}}function K(e){return isFinite(e)?+("1e"+e):e<0?0:e}function X(e){return 10===e?K:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function J(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}function Q(e){return function(t){return-e(-t)}}function ee(){var e=L(G,$).domain([1,10]),t=e.domain,n=10,i=J(10),a=X(10);function o(){return i=J(n),a=X(n),t()[0]<0&&(i=Q(i),a=Q(a)),e}return e.base=function(e){return arguments.length?(n=+e,o()):n},e.domain=function(e){return arguments.length?(t(e),o()):t()},e.ticks=function(e){var o,u=t(),s=u[0],l=u[u.length-1];(o=l<s)&&(h=s,s=l,l=h);var c,f,d,h=i(s),p=i(l),v=null==e?10:+e,y=[];if(!(n%1)&&p-h<v){if(h=Math.round(h)-1,p=Math.round(p)+1,s>0){for(;h<p;++h)for(f=1,c=a(h);f<n;++f)if(!((d=c*f)<s)){if(d>l)break;y.push(d)}}else for(;h<p;++h)for(f=n-1,c=a(h);f>=1;--f)if(!((d=c*f)<s)){if(d>l)break;y.push(d)}}else y=Object(r.ticks)(h,p,Math.min(p-h,v)).map(a);return o?y.reverse():y},e.tickFormat=function(t,r){if(null==r&&(r=10===n?".0e":","),"function"!==typeof r&&(r=Object(Y.b)(r)),t===1/0)return r;null==t&&(t=10);var o=Math.max(1,n*t/e.ticks().length);return function(e){var t=e/a(Math.round(i(e)));return t*n<n-.5&&(t*=n),t<=o?r(e):""}},e.nice=function(){return t(Z(t(),{floor:function(e){return a(Math.floor(i(e)))},ceil:function(e){return a(Math.ceil(i(e)))}}))},e.copy=function(){return I(e,ee().base(n))},e}function te(e,t){return e<0?-Math.pow(-e,t):Math.pow(e,t)}function ne(){var e=1,t=L((function(t,n){return(n=te(n,e)-(t=te(t,e)))?function(r){return(te(r,e)-t)/n}:D(n)}),(function(t,n){return n=te(n,e)-(t=te(t,e)),function(r){return te(t+n*r,1/e)}})),n=t.domain;return t.exponent=function(t){return arguments.length?(e=+t,n(n())):e},t.copy=function(){return I(t,ne().exponent(e))},W(t)}function re(){return ne().exponent(.5)}function ie(){var e=[],t=[],n=[];function i(){var i=0,o=Math.max(1,t.length);for(n=new Array(o-1);++i<o;)n[i-1]=Object(r.quantile)(e,i/o);return a}function a(e){if(!isNaN(e=+e))return t[Object(r.bisect)(n,e)]}return a.invertExtent=function(r){var i=t.indexOf(r);return i<0?[NaN,NaN]:[i>0?n[i-1]:e[0],i<n.length?n[i]:e[e.length-1]]},a.domain=function(t){if(!arguments.length)return e.slice();e=[];for(var n,a=0,o=t.length;a<o;++a)null==(n=t[a])||isNaN(n=+n)||e.push(n);return e.sort(r.ascending),i()},a.range=function(e){return arguments.length?(t=h.call(e),i()):t.slice()},a.quantiles=function(){return n.slice()},a.copy=function(){return ie().domain(e).range(t)},a}function ae(){var e=0,t=1,n=1,i=[.5],a=[0,1];function o(e){if(e<=e)return a[Object(r.bisect)(i,e,0,n)]}function u(){var r=-1;for(i=new Array(n);++r<n;)i[r]=((r+1)*t-(r-n)*e)/(n+1);return o}return o.domain=function(n){return arguments.length?(e=+n[0],t=+n[1],u()):[e,t]},o.range=function(e){return arguments.length?(n=(a=h.call(e)).length-1,u()):a.slice()},o.invertExtent=function(r){var o=a.indexOf(r);return o<0?[NaN,NaN]:o<1?[e,i[0]]:o>=n?[i[n-1],t]:[i[o-1],i[o]]},o.copy=function(){return ae().domain([e,t]).range(a)},W(o)}function oe(){var e=[.5],t=[0,1],n=1;function i(i){if(i<=i)return t[Object(r.bisect)(e,i,0,n)]}return i.domain=function(r){return arguments.length?(e=h.call(r),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(r){return arguments.length?(t=h.call(r),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(n){var r=t.indexOf(n);return[e[r-1],e[r]]},i.copy=function(){return oe().domain(e).range(t)},i}var ue=n(36),se=n(93),le=n(10),ce=n(62),fe=n(94),de=n(95),he=n(57),pe=n(58),ve=n(24),ye=1e3,me=6e4,ge=36e5,be=864e5,_e=2592e6,we=31536e6;function ke(e){return new Date(e)}function Se(e){return e instanceof Date?+e:+new Date(+e)}function xe(e,t,n,i,a,o,u,s,l){var c=L(A,b.a),f=c.invert,h=c.domain,p=l(".%L"),v=l(":%S"),y=l("%I:%M"),m=l("%I %p"),g=l("%a %d"),_=l("%b %d"),w=l("%B"),k=l("%Y"),S=[[u,1,ye],[u,5,5e3],[u,15,15e3],[u,30,3e4],[o,1,me],[o,5,3e5],[o,15,9e5],[o,30,18e5],[a,1,ge],[a,3,108e5],[a,6,216e5],[a,12,432e5],[i,1,be],[i,2,1728e5],[n,1,6048e5],[t,1,_e],[t,3,7776e6],[e,1,we]];function x(r){return(u(r)<r?p:o(r)<r?v:a(r)<r?y:i(r)<r?m:t(r)<r?n(r)<r?g:_:e(r)<r?w:k)(r)}function O(t,n,i,a){if(null==t&&(t=10),"number"===typeof t){var o=Math.abs(i-n)/t,u=Object(r.bisector)((function(e){return e[2]})).right(S,o);u===S.length?(a=Object(r.tickStep)(n/we,i/we,t),t=e):u?(a=(u=S[o/S[u-1][2]<S[u][2]/o?u-1:u])[1],t=u[0]):(a=Math.max(Object(r.tickStep)(n,i,t),1),t=s)}return null==a?t:t.every(a)}return c.invert=function(e){return new Date(f(e))},c.domain=function(e){return arguments.length?h(d.call(e,Se)):h().map(ke)},c.ticks=function(e,t){var n,r=h(),i=r[0],a=r[r.length-1],o=a<i;return o&&(n=i,i=a,a=n),n=(n=O(e,i,a,t))?n.range(i,a+1):[],o?n.reverse():n},c.tickFormat=function(e,t){return null==t?x:l(t)},c.nice=function(e,t){var n=h();return(e=O(e,n[0],n[n.length-1],t))?h(Z(n,e)):c},c.copy=function(){return I(c,xe(e,t,n,i,a,o,u,s,l))},c}var Oe=function(){return xe(ue.a,se.a,le.g,ce.b,fe.a,de.a,he.a,pe.a,ve.b).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},Me=n(37),Ee=n(96),Te=n(9),Ce=n(61),Pe=n(97),De=n(98),je=function(){return xe(Me.a,Ee.a,Te.g,Ce.a,Pe.a,De.a,he.a,pe.a,ve.d).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])},Ne=function(e){return e.match(/.{6}/g).map((function(e){return"#"+e}))},Ae=Ne("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),ze=Ne("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),Re=Ne("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),Ie=Ne("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),Le=n(29),Ue=Math.PI/180,Fe=180/Math.PI,Ye=-.14861,Be=1.78277,He=-.29227,We=-.90649,qe=1.97294,Ve=qe*We,Ze=qe*Be,Ge=Be*He-We*Ye;function $e(e){if(e instanceof Xe)return new Xe(e.h,e.s,e.l,e.opacity);e instanceof _.b||(e=Object(_.g)(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(Ge*r+Ve*t-Ze*n)/(Ge+Ve-Ze),a=r-i,o=(qe*(n-i)-He*a)/We,u=Math.sqrt(o*o+a*a)/(qe*i*(1-i)),s=u?Math.atan2(o,a)*Fe-120:NaN;return new Xe(s<0?s+360:s,u,i,e.opacity)}function Ke(e,t,n,r){return 1===arguments.length?$e(e):new Xe(e,t,n,null==r?1:r)}function Xe(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Object(Le.a)(Xe,Ke,Object(Le.b)(_.a,{brighter:function(e){return e=null==e?_.c:Math.pow(_.c,e),new Xe(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?_.d:Math.pow(_.d,e),new Xe(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Ue,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new _.b(255*(t+n*(Ye*r+Be*i)),255*(t+n*(He*r+We*i)),255*(t+n*(qe*r)),this.opacity)}}));var Je=n(30);function Qe(e){return function t(n){function r(t,r){var i=e((t=Ke(t)).h,(r=Ke(r)).h),a=Object(Je.a)(t.s,r.s),o=Object(Je.a)(t.l,r.l),u=Object(Je.a)(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=a(e),t.l=o(Math.pow(e,n)),t.opacity=u(e),t+""}}return n=+n,r.gamma=t,r}(1)}Qe(Je.c);var et=Qe(Je.a),tt=et(Ke(300,.5,0),Ke(-240,.5,1)),nt=et(Ke(-100,.75,.35),Ke(80,1.5,.8)),rt=et(Ke(260,.75,.35),Ke(80,1.5,.8)),it=Ke(),at=function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return it.h=360*e-100,it.s=1.5-1.5*t,it.l=.8-.9*t,it+""};function ot(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var ut=ot(Ne("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),st=ot(Ne("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),lt=ot(Ne("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),ct=ot(Ne("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function ft(e){var t=0,n=1,r=!1;function i(i){var a=(i-t)/(n-t);return e(r?Math.max(0,Math.min(1,a)):a)}return i.domain=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.clamp=function(e){return arguments.length?(r=!!e,i):r},i.interpolator=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return ft(e).domain([t,n]).clamp(r)},W(i)}},function(e,t,n){"use strict";n.r(t);var r=n(26),i=n(82),a=n(78);function o(e,t){return e.each((function(){var e=t.apply(this,arguments),n=Object(a.a)(this);for(var r in e)n.attr(r,e[r])}))}function u(e,t){for(var n in t)e.attr(n,t[n]);return e}function s(e,t,n){return e.each((function(){var e=t.apply(this,arguments),r=Object(a.a)(this);for(var i in e)r.style(i,e[i],n)}))}function l(e,t,n){for(var r in t)e.style(r,t[r],n);return e}function c(e,t){return e.each((function(){var e=t.apply(this,arguments),n=Object(a.a)(this);for(var r in e)n.property(r,e[r])}))}function f(e,t){for(var n in t)e.property(n,t[n]);return e}function d(e,t){return e.each((function(){var n=t.apply(this,arguments),r=Object(a.a)(this).transition(e);for(var i in n)r.attr(i,n[i])}))}function h(e,t){for(var n in t)e.attr(n,t[n]);return e}function p(e,t,n){return e.each((function(){var r=t.apply(this,arguments),i=Object(a.a)(this).transition(e);for(var o in r)i.style(o,r[o],n)}))}function v(e,t,n){for(var r in t)e.style(r,t[r],n);return e}r.b.prototype.attrs=function(e){return("function"===typeof e?o:u)(this,e)},r.b.prototype.styles=function(e,t){return("function"===typeof e?s:l)(this,e,null==t?"":t)},r.b.prototype.properties=function(e){return("function"===typeof e?c:f)(this,e)},i.transition.prototype.attrs=function(e){return("function"===typeof e?d:h)(this,e)},i.transition.prototype.styles=function(e,t){return("function"===typeof e?p:v)(this,e,null==t?"":t)}},function(e,t,n){"use strict";n.r(t),n.d(t,"axisTop",(function(){return d})),n.d(t,"axisRight",(function(){return h})),n.d(t,"axisBottom",(function(){return p})),n.d(t,"axisLeft",(function(){return v}));var r=Array.prototype.slice,i=function(e){return e},a=1e-6;function o(e){return"translate("+(e+.5)+",0)"}function u(e){return"translate(0,"+(e+.5)+")"}function s(e){return function(t){return+e(t)}}function l(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}function c(){return!this.__axis}function f(e,t){var n=[],f=null,d=null,h=6,p=6,v=3,y=1===e||4===e?-1:1,m=4===e||2===e?"x":"y",g=1===e||3===e?o:u;function b(r){var o=null==f?t.ticks?t.ticks.apply(t,n):t.domain():f,u=null==d?t.tickFormat?t.tickFormat.apply(t,n):i:d,b=Math.max(h,0)+v,_=t.range(),w=+_[0]+.5,k=+_[_.length-1]+.5,S=(t.bandwidth?l:s)(t.copy()),x=r.selection?r.selection():r,O=x.selectAll(".domain").data([null]),M=x.selectAll(".tick").data(o,t).order(),E=M.exit(),T=M.enter().append("g").attr("class","tick"),C=M.select("line"),P=M.select("text");O=O.merge(O.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),M=M.merge(T),C=C.merge(T.append("line").attr("stroke","currentColor").attr(m+"2",y*h)),P=P.merge(T.append("text").attr("fill","currentColor").attr(m,y*b).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),r!==x&&(O=O.transition(r),M=M.transition(r),C=C.transition(r),P=P.transition(r),E=E.transition(r).attr("opacity",a).attr("transform",(function(e){return isFinite(e=S(e))?g(e):this.getAttribute("transform")})),T.attr("opacity",a).attr("transform",(function(e){var t=this.parentNode.__axis;return g(t&&isFinite(t=t(e))?t:S(e))}))),E.remove(),O.attr("d",4===e||2==e?p?"M"+y*p+","+w+"H0.5V"+k+"H"+y*p:"M0.5,"+w+"V"+k:p?"M"+w+","+y*p+"V0.5H"+k+"V"+y*p:"M"+w+",0.5H"+k),M.attr("opacity",1).attr("transform",(function(e){return g(S(e))})),C.attr(m+"2",y*h),P.attr(m,y*b).text(u),x.filter(c).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),x.each((function(){this.__axis=S}))}return b.scale=function(e){return arguments.length?(t=e,b):t},b.ticks=function(){return n=r.call(arguments),b},b.tickArguments=function(e){return arguments.length?(n=null==e?[]:r.call(e),b):n.slice()},b.tickValues=function(e){return arguments.length?(f=null==e?null:r.call(e),b):f&&f.slice()},b.tickFormat=function(e){return arguments.length?(d=e,b):d},b.tickSize=function(e){return arguments.length?(h=p=+e,b):h},b.tickSizeInner=function(e){return arguments.length?(h=+e,b):h},b.tickSizeOuter=function(e){return arguments.length?(p=+e,b):p},b.tickPadding=function(e){return arguments.length?(v=+e,b):v},b}function d(e){return f(1,e)}function h(e){return f(2,e)}function p(e){return f(3,e)}function v(e){return f(4,e)}},function(e,t,n){"use strict";var r=n(22),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a=new RegExp(i.source,"g");t.a=function(e,t){var n,o,u,s=i.lastIndex=a.lastIndex=0,l=-1,c=[],f=[];for(e+="",t+="";(n=i.exec(e))&&(o=a.exec(t));)(u=o.index)>s&&(u=t.slice(s,u),c[l]?c[l]+=u:c[++l]=u),(n=n[0])===(o=o[0])?c[l]?c[l]+=o:c[++l]=o:(c[++l]=null,f.push({i:l,x:Object(r.a)(n,o)})),s=a.lastIndex;return s<t.length&&(u=t.slice(s),c[l]?c[l]+=u:c[++l]=u),c.length<2?f[0]?function(e){return function(t){return e(t)+""}}(f[0].x):function(e){return function(){return e}}(t):(t=f.length,function(e){for(var n,r=0;r<t;++r)c[(n=f[r]).i]=n.x(e);return c.join("")})}},,function(e,t,n){"use strict";var r=n(85),i=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var o=60109,u=60110,s=60112;t.Suspense=60113;var l=60115,c=60116;if("function"===typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),a=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),o=f("react.provider"),u=f("react.context"),s=f("react.forward_ref"),t.Suspense=f("react.suspense"),l=f("react.memo"),c=f("react.lazy")}var d="function"===typeof Symbol&&Symbol.iterator;function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||p}function m(){}function g(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||p}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=y.prototype;var b=g.prototype=new m;b.constructor=g,r(b,y.prototype),b.isPureReactComponent=!0;var _={current:null},w=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r,a={},o=null,u=null;if(null!=t)for(r in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(o=""+t.key),t)w.call(t,r)&&!k.hasOwnProperty(r)&&(a[r]=t[r]);var s=arguments.length-2;if(1===s)a.children=n;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];a.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===a[r]&&(a[r]=s[r]);return{$$typeof:i,type:e,key:o,ref:u,props:a,_owner:_.current}}function x(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var O=/\/+/g;function M(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function E(e,t,n,r,o){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var s=!1;if(null===e)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case i:case a:s=!0}}if(s)return o=o(s=e),e=""===r?"."+M(s,0):r,Array.isArray(o)?(n="",null!=e&&(n=e.replace(O,"$&/")+"/"),E(o,t,n,"",(function(e){return e}))):null!=o&&(x(o)&&(o=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,n+(!o.key||s&&s.key===o.key?"":(""+o.key).replace(O,"$&/")+"/")+e)),t.push(o)),1;if(s=0,r=""===r?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){var c=r+M(u=e[l],l);s+=E(u,t,n,c,o)}else if("function"===typeof(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=c.call(e),l=0;!(u=e.next()).done;)s+=E(u=u.value,t,n,c=r+M(u,l++),o);else if("object"===u)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function T(e,t,n){if(null==e)return e;var r=[],i=0;return E(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function C(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var P={current:null};function D(){var e=P.current;if(null===e)throw Error(h(321));return e}var j={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!x(e))throw Error(h(143));return e}},t.Component=y,t.PureComponent=g,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(h(267,e));var a=r({},e.props),o=e.key,u=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(u=t.ref,s=_.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)w.call(t,c)&&!k.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){l=Array(c);for(var f=0;f<c;f++)l[f]=arguments[f+2];a.children=l}return{$$typeof:i,type:e.type,key:o,ref:u,props:a,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:u,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:o,_context:e},e.Consumer=e},t.createElement=S,t.createFactory=function(e){var t=S.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:C}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return D().useCallback(e,t)},t.useContext=function(e,t){return D().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return D().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return D().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return D().useLayoutEffect(e,t)},t.useMemo=function(e,t){return D().useMemo(e,t)},t.useReducer=function(e,t,n){return D().useReducer(e,t,n)},t.useRef=function(e){return D().useRef(e)},t.useState=function(e){return D().useState(e)},t.version="17.0.1"},function(e,t,n){"use strict";var r=n(2),i=n(85),a=n(134);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(o(227));var u=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)u.add(t[e])}var f=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h=Object.prototype.hasOwnProperty,p={},v={};function y(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new y(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new y(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new y(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new y(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new y(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new y(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function _(e,t,n,r){var i=m.hasOwnProperty(t)?m[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!h.call(v,e)||!h.call(p,e)&&(d.test(e)?v[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,b);m[t]=new y(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,b);m[t]=new y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,b);m[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=60103,S=60106,x=60107,O=60108,M=60114,E=60109,T=60110,C=60112,P=60113,D=60120,j=60115,N=60116,A=60121,z=60128,R=60129,I=60130,L=60131;if("function"===typeof Symbol&&Symbol.for){var U=Symbol.for;k=U("react.element"),S=U("react.portal"),x=U("react.fragment"),O=U("react.strict_mode"),M=U("react.profiler"),E=U("react.provider"),T=U("react.context"),C=U("react.forward_ref"),P=U("react.suspense"),D=U("react.suspense_list"),j=U("react.memo"),N=U("react.lazy"),A=U("react.block"),U("react.scope"),z=U("react.opaque.id"),R=U("react.debug_trace_mode"),I=U("react.offscreen"),L=U("react.legacy_hidden")}var F,Y="function"===typeof Symbol&&Symbol.iterator;function B(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=Y&&e[Y]||e["@@iterator"])?e:null}function H(e){if(void 0===F)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}return"\n"+F+e}var W=!1;function q(e,t){if(!e||W)return"";W=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var r=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){r=s}e.call(t.prototype)}else{try{throw Error()}catch(s){r=s}e()}}catch(s){if(s&&r&&"string"===typeof s.stack){for(var i=s.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,u=a.length-1;1<=o&&0<=u&&i[o]!==a[u];)u--;for(;1<=o&&0<=u;o--,u--)if(i[o]!==a[u]){if(1!==o||1!==u)do{if(o--,0>--u||i[o]!==a[u])return"\n"+i[o].replace(" at new "," at ")}while(1<=o&&0<=u);break}}}finally{W=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function V(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return e=q(e.type,!1);case 11:return e=q(e.type.render,!1);case 22:return e=q(e.type._render,!1);case 1:return e=q(e.type,!0);default:return""}}function Z(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case x:return"Fragment";case S:return"Portal";case M:return"Profiler";case O:return"StrictMode";case P:return"Suspense";case D:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case C:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case j:return Z(e.type);case A:return Z(e._render);case N:t=e._payload,e=e._init;try{return Z(e(t))}catch(n){}}return null}function G(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Q(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=G(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&_(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=G(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ie(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ae(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function oe(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+G(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ue(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function se(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:G(n)}}function le(e,t){var n=G(t.value),r=G(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function he(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?he(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ve,ye,me=(ye=function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((ve=ve||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ve.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ye(e,t)}))}:ye);function ge(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var be={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_e=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function ke(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(be).forEach((function(e){_e.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var Se=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xe(e,t){if(t){if(Se[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function Oe(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Me(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ee=null,Te=null,Ce=null;function Pe(e){if(e=ei(e)){if("function"!==typeof Ee)throw Error(o(280));var t=e.stateNode;t&&(t=ni(t),Ee(e.stateNode,e.type,t))}}function De(e){Te?Ce?Ce.push(e):Ce=[e]:Te=e}function je(){if(Te){var e=Te,t=Ce;if(Ce=Te=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(t[e])}}function Ne(e,t){return e(t)}function Ae(e,t,n,r,i){return e(t,n,r,i)}function ze(){}var Re=Ne,Ie=!1,Le=!1;function Ue(){null===Te&&null===Ce||(ze(),je())}function Fe(e,t){var n=e.stateNode;if(null===n)return null;var r=ni(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Ye=!1;if(f)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){Ye=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(ye){Ye=!1}function He(e,t,n,r,i,a,o,u,s){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(c){this.onError(c)}}var We=!1,qe=null,Ve=!1,Ze=null,Ge={onError:function(e){We=!0,qe=e}};function $e(e,t,n,r,i,a,o,u,s){We=!1,qe=null,He.apply(Ge,arguments)}function Ke(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Xe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Je(e){if(Ke(e)!==e)throw Error(o(188))}function Qe(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ke(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return Je(i),e;if(a===r)return Je(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var u=!1,s=i.child;s;){if(s===n){u=!0,n=i,r=a;break}if(s===r){u=!0,r=i,n=a;break}s=s.sibling}if(!u){for(s=a.child;s;){if(s===n){u=!0,n=a,r=i;break}if(s===r){u=!0,r=a,n=i;break}s=s.sibling}if(!u)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,it,at=!1,ot=[],ut=null,st=null,lt=null,ct=new Map,ft=new Map,dt=[],ht="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function vt(e,t){switch(e){case"focusin":case"focusout":ut=null;break;case"dragenter":case"dragleave":st=null;break;case"mouseover":case"mouseout":lt=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ft.delete(t.pointerId)}}function yt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e=pt(t,n,r,i,a),null!==t&&(null!==(t=ei(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function mt(e){var t=Qr(e.target);if(null!==t){var n=Ke(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void it(e.lanePriority,(function(){a.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ei(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){gt(e)&&n.delete(t)}function _t(){for(at=!1;0<ot.length;){var e=ot[0];if(null!==e.blockedOn){null!==(e=ei(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Qt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&ot.shift()}null!==ut&&gt(ut)&&(ut=null),null!==st&&gt(st)&&(st=null),null!==lt&&gt(lt)&&(lt=null),ct.forEach(bt),ft.forEach(bt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,at||(at=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,_t)))}function kt(e){function t(t){return wt(t,e)}if(0<ot.length){wt(ot[0],e);for(var n=1;n<ot.length;n++){var r=ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==ut&&wt(ut,e),null!==st&&wt(st,e),null!==lt&&wt(lt,e),ct.forEach(t),ft.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)mt(n),null===n.blockedOn&&dt.shift()}function St(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xt={animationend:St("Animation","AnimationEnd"),animationiteration:St("Animation","AnimationIteration"),animationstart:St("Animation","AnimationStart"),transitionend:St("Transition","TransitionEnd")},Ot={},Mt={};function Et(e){if(Ot[e])return Ot[e];if(!xt[e])return e;var t,n=xt[e];for(t in n)if(n.hasOwnProperty(t)&&t in Mt)return Ot[e]=n[t];return e}f&&(Mt=document.createElement("div").style,"AnimationEvent"in window||(delete xt.animationend.animation,delete xt.animationiteration.animation,delete xt.animationstart.animation),"TransitionEvent"in window||delete xt.transitionend.transition);var Tt=Et("animationend"),Ct=Et("animationiteration"),Pt=Et("animationstart"),Dt=Et("transitionend"),jt=new Map,Nt=new Map,At=["abort","abort",Tt,"animationEnd",Ct,"animationIteration",Pt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Dt,"transitionEnd","waiting","waiting"];function zt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Nt.set(r,t),jt.set(r,i),l(i,[r])}}(0,a.unstable_now)();var Rt=8;function It(e){if(0!==(1&e))return Rt=15,1;if(0!==(2&e))return Rt=14,2;if(0!==(4&e))return Rt=13,4;var t=24&e;return 0!==t?(Rt=12,t):0!==(32&e)?(Rt=11,32):0!==(t=192&e)?(Rt=10,t):0!==(256&e)?(Rt=9,256):0!==(t=3584&e)?(Rt=8,t):0!==(4096&e)?(Rt=7,4096):0!==(t=4186112&e)?(Rt=6,t):0!==(t=62914560&e)?(Rt=5,t):67108864&e?(Rt=4,67108864):0!==(134217728&e)?(Rt=3,134217728):0!==(t=805306368&e)?(Rt=2,t):0!==(1073741824&e)?(Rt=1,1073741824):(Rt=8,e)}function Lt(e,t){var n=e.pendingLanes;if(0===n)return Rt=0;var r=0,i=0,a=e.expiredLanes,o=e.suspendedLanes,u=e.pingedLanes;if(0!==a)r=a,i=Rt=15;else if(0!==(a=134217727&n)){var s=a&~o;0!==s?(r=It(s),i=Rt):0!==(u&=a)&&(r=It(u),i=Rt)}else 0!==(a=n&~o)?(r=It(a),i=Rt):0!==u&&(r=It(u),i=Rt);if(0===r)return 0;if(r=n&((0>(r=31-Wt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&o)){if(It(t),i<=Rt)return t;Rt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Wt(t)),r|=e[n],t&=~i;return r}function Ut(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ft(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Yt(24&~t))?Ft(10,t):e;case 10:return 0===(e=Yt(192&~t))?Ft(8,t):e;case 8:return 0===(e=Yt(3584&~t))&&(0===(e=Yt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Yt(805306368&~t))&&(t=268435456),t}throw Error(o(358,e))}function Yt(e){return e&-e}function Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ht(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Wt(t)]=n}var Wt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(qt(e)/Vt|0)|0},qt=Math.log,Vt=Math.LN2;var Zt=a.unstable_UserBlockingPriority,Gt=a.unstable_runWithPriority,$t=!0;function Kt(e,t,n,r){Ie||ze();var i=Jt,a=Ie;Ie=!0;try{Ae(i,e,t,n,r)}finally{(Ie=a)||Ue()}}function Xt(e,t,n,r){Gt(Zt,Jt.bind(null,e,t,n,r))}function Jt(e,t,n,r){var i;if($t)if((i=0===(4&t))&&0<ot.length&&-1<ht.indexOf(e))e=pt(null,e,t,n,r),ot.push(e);else{var a=Qt(e,t,n,r);if(null===a)i&&vt(e,r);else{if(i){if(-1<ht.indexOf(e))return e=pt(a,e,t,n,r),void ot.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return ut=yt(ut,e,t,n,r,i),!0;case"dragenter":return st=yt(st,e,t,n,r,i),!0;case"mouseover":return lt=yt(lt,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return ct.set(a,yt(ct.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,ft.set(a,yt(ft.get(a)||null,e,t,n,r,i)),!0}return!1}(a,e,t,n,r))return;vt(e,r)}jr(e,t,r,null,n)}}}function Qt(e,t,n,r){var i=Me(r);if(null!==(i=Qr(i))){var a=Ke(i);if(null===a)i=null;else{var o=a.tag;if(13===o){if(null!==(i=Xe(a)))return i;i=null}else if(3===o){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;i=null}else a!==i&&(i=null)}}return jr(e,t,r,i,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,i="value"in en?en.value:en.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return nn=i.slice(e,1<t?1-t:void 0)}function an(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function un(){return!1}function sn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?on:un,this.isPropagationStopped=un,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var ln,cn,fn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hn=sn(dn),pn=i({},dn,{view:0,detail:0}),vn=sn(pn),yn=i({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fn&&(fn&&"mousemove"===e.type?(ln=e.screenX-fn.screenX,cn=e.screenY-fn.screenY):cn=ln=0,fn=e),ln)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),mn=sn(yn),gn=sn(i({},yn,{dataTransfer:0})),bn=sn(i({},pn,{relatedTarget:0})),_n=sn(i({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=sn(i({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),kn=sn(i({},dn,{data:0})),Sn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},On={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=On[e])&&!!t[e]}function En(){return Mn}var Tn=sn(i({},pn,{key:function(e){if(e.key){var t=Sn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=an(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?an(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?an(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Cn=sn(i({},yn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=sn(i({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),Dn=sn(i({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),jn=sn(i({},yn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Nn=[9,13,27,32],An=f&&"CompositionEvent"in window,zn=null;f&&"documentMode"in document&&(zn=document.documentMode);var Rn=f&&"TextEvent"in window&&!zn,In=f&&(!An||zn&&8<zn&&11>=zn),Ln=String.fromCharCode(32),Un=!1;function Fn(e,t){switch(e){case"keyup":return-1!==Nn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function qn(e,t,n,r){De(r),0<(t=Ar(t,"onChange")).length&&(n=new hn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Zn=null;function Gn(e){Mr(e,0)}function $n(e){if(X(ti(e)))return e}function Kn(e,t){if("change"===e)return t}var Xn=!1;if(f){var Jn;if(f){var Qn="oninput"in document;if(!Qn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Qn="function"===typeof er.oninput}Jn=Qn}else Jn=!1;Xn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),Zn=Vn=null)}function nr(e){if("value"===e.propertyName&&$n(Zn)){var t=[];if(qn(t,Zn,e,Me(e)),e=Gn,Ie)e(t);else{Ie=!0;try{Ne(e,t)}finally{Ie=!1,Ue()}}}}function rr(e,t,n){"focusin"===e?(tr(),Zn=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $n(Zn)}function ar(e,t){if("click"===e)return $n(t)}function or(e,t){if("input"===e||"change"===e)return $n(t)}var ur="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},sr=Object.prototype.hasOwnProperty;function lr(e,t){if(ur(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!sr.call(t,n[r])||!ur(e[n[r]],t[n[r]]))return!1;return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fr(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var vr=f&&"documentMode"in document&&11>=document.documentMode,yr=null,mr=null,gr=null,br=!1;function _r(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==yr||yr!==J(r)||("selectionStart"in(r=yr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&lr(gr,r)||(gr=r,0<(r=Ar(mr,"onSelect")).length&&(t=new hn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}zt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),zt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),zt(At,2);for(var wr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),kr=0;kr<wr.length;kr++)Nt.set(wr[kr],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Sr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),xr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Sr));function Or(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,u,s,l){if($e.apply(this,arguments),We){if(!We)throw Error(o(198));var c=qe;We=!1,qe=null,Ve||(Ve=!0,Ze=c)}}(r,t,void 0,e),e.currentTarget=null}function Mr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var u=r[o],s=u.instance,l=u.currentTarget;if(u=u.listener,s!==a&&i.isPropagationStopped())break e;Or(i,u,l),a=s}else for(o=0;o<r.length;o++){if(s=(u=r[o]).instance,l=u.currentTarget,u=u.listener,s!==a&&i.isPropagationStopped())break e;Or(i,u,l),a=s}}}if(Ve)throw e=Ze,Ve=!1,Ze=null,e}function Er(e,t){var n=ri(t),r=e+"__bubble";n.has(r)||(Dr(t,e,2,!1),n.add(r))}var Tr="_reactListening"+Math.random().toString(36).slice(2);function Cr(e){e[Tr]||(e[Tr]=!0,u.forEach((function(t){xr.has(t)||Pr(t,!1,e,null),Pr(t,!0,e,null)})))}function Pr(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&xr.has(e)){if("scroll"!==e)return;i|=2,a=r}var o=ri(a),u=e+"__"+(t?"capture":"bubble");o.has(u)||(t&&(i|=4),Dr(a,e,i,t),o.add(u))}function Dr(e,t,n,r){var i=Nt.get(t);switch(void 0===i?2:i){case 0:i=Kt;break;case 1:i=Xt;break;default:i=Jt}n=i.bind(null,t,n,e),i=void 0,!Ye||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function jr(e,t,n,r,i){var a=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var u=r.stateNode.containerInfo;if(u===i||8===u.nodeType&&u.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var s=o.tag;if((3===s||4===s)&&((s=o.stateNode.containerInfo)===i||8===s.nodeType&&s.parentNode===i))return;o=o.return}for(;null!==u;){if(null===(o=Qr(u)))return;if(5===(s=o.tag)||6===s){r=a=o;continue e}u=u.parentNode}}r=r.return}!function(e,t,n){if(Le)return e(t,n);Le=!0;try{Re(e,t,n)}finally{Le=!1,Ue()}}((function(){var r=a,i=Me(n),o=[];e:{var u=jt.get(e);if(void 0!==u){var s=hn,l=e;switch(e){case"keypress":if(0===an(n))break e;case"keydown":case"keyup":s=Tn;break;case"focusin":l="focus",s=bn;break;case"focusout":l="blur",s=bn;break;case"beforeblur":case"afterblur":s=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Pn;break;case Tt:case Ct:case Pt:s=_n;break;case Dt:s=Dn;break;case"scroll":s=vn;break;case"wheel":s=jn;break;case"copy":case"cut":case"paste":s=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Cn}var c=0!==(4&t),f=!c&&"scroll"===e,d=c?null!==u?u+"Capture":null:u;c=[];for(var h,p=r;null!==p;){var v=(h=p).stateNode;if(5===h.tag&&null!==v&&(h=v,null!==d&&(null!=(v=Fe(p,d))&&c.push(Nr(p,v,h)))),f)break;p=p.return}0<c.length&&(u=new s(u,l,null,n,i),o.push({event:u,listeners:c}))}}if(0===(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(u="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(l=n.relatedTarget||n.fromElement)||!Qr(l)&&!l[Xr])&&(s||u)&&(u=i.window===i?i:(u=i.ownerDocument)?u.defaultView||u.parentWindow:window,s?(s=r,null!==(l=(l=n.relatedTarget||n.toElement)?Qr(l):null)&&(l!==(f=Ke(l))||5!==l.tag&&6!==l.tag)&&(l=null)):(s=null,l=r),s!==l)){if(c=mn,v="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Cn,v="onPointerLeave",d="onPointerEnter",p="pointer"),f=null==s?u:ti(s),h=null==l?u:ti(l),(u=new c(v,p+"leave",s,n,i)).target=f,u.relatedTarget=h,v=null,Qr(i)===r&&((c=new c(d,p+"enter",l,n,i)).target=h,c.relatedTarget=f,v=c),f=v,s&&l)e:{for(d=l,p=0,h=c=s;h;h=zr(h))p++;for(h=0,v=d;v;v=zr(v))h++;for(;0<p-h;)c=zr(c),p--;for(;0<h-p;)d=zr(d),h--;for(;p--;){if(c===d||null!==d&&c===d.alternate)break e;c=zr(c),d=zr(d)}c=null}else c=null;null!==s&&Rr(o,u,s,c,!1),null!==l&&null!==f&&Rr(o,f,l,c,!0)}if("select"===(s=(u=r?ti(r):window).nodeName&&u.nodeName.toLowerCase())||"input"===s&&"file"===u.type)var y=Kn;else if(Wn(u))if(Xn)y=or;else{y=ir;var m=rr}else(s=u.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===u.type||"radio"===u.type)&&(y=ar);switch(y&&(y=y(e,r))?qn(o,y,n,i):(m&&m(e,u,r),"focusout"===e&&(m=u._wrapperState)&&m.controlled&&"number"===u.type&&ie(u,"number",u.value)),m=r?ti(r):window,e){case"focusin":(Wn(m)||"true"===m.contentEditable)&&(yr=m,mr=r,gr=null);break;case"focusout":gr=mr=yr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,_r(o,n,i);break;case"selectionchange":if(vr)break;case"keydown":case"keyup":_r(o,n,i)}var g;if(An)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?Fn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(In&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(g=rn()):(tn="value"in(en=i)?en.value:en.textContent,Bn=!0)),0<(m=Ar(r,b)).length&&(b=new kn(b,e,null,n,i),o.push({event:b,listeners:m}),g?b.data=g:null!==(g=Yn(n))&&(b.data=g))),(g=Rn?function(e,t){switch(e){case"compositionend":return Yn(t);case"keypress":return 32!==t.which?null:(Un=!0,Ln);case"textInput":return(e=t.data)===Ln&&Un?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!An&&Fn(e,t)?(e=rn(),nn=tn=en=null,Bn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return In&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=Ar(r,"onBeforeInput")).length&&(i=new kn("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=g))}Mr(o,t)}))}function Nr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ar(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Fe(e,n))&&r.unshift(Nr(e,a,i)),null!=(a=Fe(e,t))&&r.push(Nr(e,a,i))),e=e.return}return r}function zr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Rr(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var u=n,s=u.alternate,l=u.stateNode;if(null!==s&&s===r)break;5===u.tag&&null!==l&&(u=l,i?null!=(s=Fe(n,a))&&o.unshift(Nr(n,s,u)):i||null!=(s=Fe(n,a))&&o.push(Nr(n,s,u))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}function Ir(){}var Lr=null,Ur=null;function Fr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Yr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Br="function"===typeof setTimeout?setTimeout:void 0,Hr="function"===typeof clearTimeout?clearTimeout:void 0;function Wr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function qr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Vr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Zr=0;var Gr=Math.random().toString(36).slice(2),$r="__reactFiber$"+Gr,Kr="__reactProps$"+Gr,Xr="__reactContainer$"+Gr,Jr="__reactEvents$"+Gr;function Qr(e){var t=e[$r];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xr]||n[$r]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Vr(e);null!==e;){if(n=e[$r])return n;e=Vr(e)}return t}n=(e=n).parentNode}return null}function ei(e){return!(e=e[$r]||e[Xr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ti(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function ni(e){return e[Kr]||null}function ri(e){var t=e[Jr];return void 0===t&&(t=e[Jr]=new Set),t}var ii=[],ai=-1;function oi(e){return{current:e}}function ui(e){0>ai||(e.current=ii[ai],ii[ai]=null,ai--)}function si(e,t){ai++,ii[ai]=e.current,e.current=t}var li={},ci=oi(li),fi=oi(!1),di=li;function hi(e,t){var n=e.type.contextTypes;if(!n)return li;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function pi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function vi(){ui(fi),ui(ci)}function yi(e,t,n){if(ci.current!==li)throw Error(o(168));si(ci,t),si(fi,n)}function mi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(o(108,Z(t)||"Unknown",a));return i({},n,r)}function gi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,di=ci.current,si(ci,e),si(fi,fi.current),!0}function bi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=mi(e,t,di),r.__reactInternalMemoizedMergedChildContext=e,ui(fi),ui(ci),si(ci,e)):ui(fi),si(fi,n)}var _i=null,wi=null,ki=a.unstable_runWithPriority,Si=a.unstable_scheduleCallback,xi=a.unstable_cancelCallback,Oi=a.unstable_shouldYield,Mi=a.unstable_requestPaint,Ei=a.unstable_now,Ti=a.unstable_getCurrentPriorityLevel,Ci=a.unstable_ImmediatePriority,Pi=a.unstable_UserBlockingPriority,Di=a.unstable_NormalPriority,ji=a.unstable_LowPriority,Ni=a.unstable_IdlePriority,Ai={},zi=void 0!==Mi?Mi:function(){},Ri=null,Ii=null,Li=!1,Ui=Ei(),Fi=1e4>Ui?Ei:function(){return Ei()-Ui};function Yi(){switch(Ti()){case Ci:return 99;case Pi:return 98;case Di:return 97;case ji:return 96;case Ni:return 95;default:throw Error(o(332))}}function Bi(e){switch(e){case 99:return Ci;case 98:return Pi;case 97:return Di;case 96:return ji;case 95:return Ni;default:throw Error(o(332))}}function Hi(e,t){return e=Bi(e),ki(e,t)}function Wi(e,t,n){return e=Bi(e),Si(e,t,n)}function qi(){if(null!==Ii){var e=Ii;Ii=null,xi(e)}Vi()}function Vi(){if(!Li&&null!==Ri){Li=!0;var e=0;try{var t=Ri;Hi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ri=null}catch(n){throw null!==Ri&&(Ri=Ri.slice(e+1)),Si(Ci,qi),n}finally{Li=!1}}}var Zi=w.ReactCurrentBatchConfig;function Gi(e,t){if(e&&e.defaultProps){for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var $i=oi(null),Ki=null,Xi=null,Ji=null;function Qi(){Ji=Xi=Ki=null}function ea(e){var t=$i.current;ui($i),e.type._context._currentValue=t}function ta(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function na(e,t){Ki=e,Ji=Xi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Ao=!0),e.firstContext=null)}function ra(e,t){if(Ji!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(Ji=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Xi){if(null===Ki)throw Error(o(308));Xi=t,Ki.dependencies={lanes:0,firstContext:t,responders:null}}else Xi=Xi.next=t;return e._currentValue}var ia=!1;function aa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function oa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ua(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function sa(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function la(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ca(e,t,n,r){var a=e.updateQueue;ia=!1;var o=a.firstBaseUpdate,u=a.lastBaseUpdate,s=a.shared.pending;if(null!==s){a.shared.pending=null;var l=s,c=l.next;l.next=null,null===u?o=c:u.next=c,u=l;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==u&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=l)}}if(null!==o){for(d=a.baseState,u=0,f=c=l=null;;){s=o.lane;var h=o.eventTime;if((r&s)===s){null!==f&&(f=f.next={eventTime:h,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var p=e,v=o;switch(s=t,h=n,v.tag){case 1:if("function"===typeof(p=v.payload)){d=p.call(h,d,s);break e}d=p;break e;case 3:p.flags=-4097&p.flags|64;case 0:if(null===(s="function"===typeof(p=v.payload)?p.call(h,d,s):p)||void 0===s)break e;d=i({},d,s);break e;case 2:ia=!0}}null!==o.callback&&(e.flags|=32,null===(s=a.effects)?a.effects=[o]:s.push(o))}else h={eventTime:h,lane:s,tag:o.tag,payload:o.payload,callback:o.callback,next:null},null===f?(c=f=h,l=d):f=f.next=h,u|=s;if(null===(o=o.next)){if(null===(s=a.shared.pending))break;o=s.next,s.next=null,a.lastBaseUpdate=s,a.shared.pending=null}}null===f&&(l=d),a.baseState=l,a.firstBaseUpdate=c,a.lastBaseUpdate=f,Lu|=u,e.lanes=u,e.memoizedState=d}}function fa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var da=(new r.Component).refs;function ha(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var pa={isMounted:function(e){return!!(e=e._reactInternals)&&Ke(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ls(),i=cs(e),a=ua(r,i);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),sa(e,a),fs(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ls(),i=cs(e),a=ua(r,i);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),sa(e,a),fs(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ls(),r=cs(e),i=ua(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),sa(e,i),fs(e,r,n)}};function va(e,t,n,r,i,a,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(i,a))}function ya(e,t,n){var r=!1,i=li,a=t.contextType;return"object"===typeof a&&null!==a?a=ra(a):(i=pi(t)?di:ci.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?hi(e,i):li),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=pa,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ma(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&pa.enqueueReplaceState(t,t.state,null)}function ga(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=da,aa(e);var a=t.contextType;"object"===typeof a&&null!==a?i.context=ra(a):(a=pi(t)?di:ci.current,i.context=hi(e,a)),ca(e,n,i,r),i.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(ha(e,t,a,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&pa.enqueueReplaceState(i,i.state,null),ca(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4)}var ba=Array.isArray;function _a(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===da&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function wa(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function ka(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Hs(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function u(t){return e&&null===t.alternate&&(t.flags=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Zs(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function l(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=_a(e,t,n),r.return=e,r):((r=Ws(n.type,n.key,n.props,null,e.mode,r)).ref=_a(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Gs(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=qs(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Zs(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Ws(t.type,t.key,t.props,null,e.mode,n)).ref=_a(e,null,t),n.return=e,n;case S:return(t=Gs(t,e.mode,n)).return=e,t}if(ba(t)||B(t))return(t=qs(t,e.mode,n,null)).return=e,t;wa(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:s(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===i?n.type===x?f(e,t,n.props.children,r,i):l(e,t,n,r):null;case S:return n.key===i?c(e,t,n,r):null}if(ba(n)||B(n))return null!==i?null:f(e,t,n,r,null);wa(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r||"number"===typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case k:return e=e.get(null===r.key?n:r.key)||null,r.type===x?f(t,e,r.props.children,i,r.key):l(t,e,r,i);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(ba(r)||B(r))return f(t,e=e.get(n)||null,r,i,null);wa(t,r)}return null}function v(i,o,u,s){for(var l=null,c=null,f=o,v=o=0,y=null;null!==f&&v<u.length;v++){f.index>v?(y=f,f=null):y=f.sibling;var m=h(i,f,u[v],s);if(null===m){null===f&&(f=y);break}e&&f&&null===m.alternate&&t(i,f),o=a(m,o,v),null===c?l=m:c.sibling=m,c=m,f=y}if(v===u.length)return n(i,f),l;if(null===f){for(;v<u.length;v++)null!==(f=d(i,u[v],s))&&(o=a(f,o,v),null===c?l=f:c.sibling=f,c=f);return l}for(f=r(i,f);v<u.length;v++)null!==(y=p(f,i,v,u[v],s))&&(e&&null!==y.alternate&&f.delete(null===y.key?v:y.key),o=a(y,o,v),null===c?l=y:c.sibling=y,c=y);return e&&f.forEach((function(e){return t(i,e)})),l}function y(i,u,s,l){var c=B(s);if("function"!==typeof c)throw Error(o(150));if(null==(s=c.call(s)))throw Error(o(151));for(var f=c=null,v=u,y=u=0,m=null,g=s.next();null!==v&&!g.done;y++,g=s.next()){v.index>y?(m=v,v=null):m=v.sibling;var b=h(i,v,g.value,l);if(null===b){null===v&&(v=m);break}e&&v&&null===b.alternate&&t(i,v),u=a(b,u,y),null===f?c=b:f.sibling=b,f=b,v=m}if(g.done)return n(i,v),c;if(null===v){for(;!g.done;y++,g=s.next())null!==(g=d(i,g.value,l))&&(u=a(g,u,y),null===f?c=g:f.sibling=g,f=g);return c}for(v=r(i,v);!g.done;y++,g=s.next())null!==(g=p(v,i,y,g.value,l))&&(e&&null!==g.alternate&&v.delete(null===g.key?y:g.key),u=a(g,u,y),null===f?c=g:f.sibling=g,f=g);return e&&v.forEach((function(e){return t(i,e)})),c}return function(e,r,a,s){var l="object"===typeof a&&null!==a&&a.type===x&&null===a.key;l&&(a=a.props.children);var c="object"===typeof a&&null!==a;if(c)switch(a.$$typeof){case k:e:{for(c=a.key,l=r;null!==l;){if(l.key===c){switch(l.tag){case 7:if(a.type===x){n(e,l.sibling),(r=i(l,a.props.children)).return=e,e=r;break e}break;default:if(l.elementType===a.type){n(e,l.sibling),(r=i(l,a.props)).ref=_a(e,l,a),r.return=e,e=r;break e}}n(e,l);break}t(e,l),l=l.sibling}a.type===x?((r=qs(a.props.children,e.mode,s,a.key)).return=e,e=r):((s=Ws(a.type,a.key,a.props,null,e.mode,s)).ref=_a(e,r,a),s.return=e,e=s)}return u(e);case S:e:{for(l=a.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=i(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Gs(a,e.mode,s)).return=e,e=r}return u(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,a)).return=e,e=r):(n(e,r),(r=Zs(a,e.mode,s)).return=e,e=r),u(e);if(ba(a))return v(e,r,a,s);if(B(a))return y(e,r,a,s);if(c&&wa(e,a),"undefined"===typeof a&&!l)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(o(152,Z(e.type)||"Component"))}return n(e,r)}}var Sa=ka(!0),xa=ka(!1),Oa={},Ma=oi(Oa),Ea=oi(Oa),Ta=oi(Oa);function Ca(e){if(e===Oa)throw Error(o(174));return e}function Pa(e,t){switch(si(Ta,t),si(Ea,e),si(Ma,Oa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ui(Ma),si(Ma,t)}function Da(){ui(Ma),ui(Ea),ui(Ta)}function ja(e){Ca(Ta.current);var t=Ca(Ma.current),n=pe(t,e.type);t!==n&&(si(Ea,e),si(Ma,n))}function Na(e){Ea.current===e&&(ui(Ma),ui(Ea))}var Aa=oi(0);function za(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ra=null,Ia=null,La=!1;function Ua(e,t){var n=Ys(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Fa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Ya(e){if(La){var t=Ia;if(t){var n=t;if(!Fa(e,t)){if(!(t=qr(n.nextSibling))||!Fa(e,t))return e.flags=-1025&e.flags|2,La=!1,void(Ra=e);Ua(Ra,n)}Ra=e,Ia=qr(t.firstChild)}else e.flags=-1025&e.flags|2,La=!1,Ra=e}}function Ba(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ra=e}function Ha(e){if(e!==Ra)return!1;if(!La)return Ba(e),La=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Yr(t,e.memoizedProps))for(t=Ia;t;)Ua(e,t),t=qr(t.nextSibling);if(Ba(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ia=qr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ia=null}}else Ia=Ra?qr(e.stateNode.nextSibling):null;return!0}function Wa(){Ia=Ra=null,La=!1}var qa=[];function Va(){for(var e=0;e<qa.length;e++)qa[e]._workInProgressVersionPrimary=null;qa.length=0}var Za=w.ReactCurrentDispatcher,Ga=w.ReactCurrentBatchConfig,$a=0,Ka=null,Xa=null,Ja=null,Qa=!1,eo=!1;function to(){throw Error(o(321))}function no(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ur(e[n],t[n]))return!1;return!0}function ro(e,t,n,r,i,a){if($a=a,Ka=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Za.current=null===e||null===e.memoizedState?Po:Do,e=n(r,i),eo){a=0;do{if(eo=!1,!(25>a))throw Error(o(301));a+=1,Ja=Xa=null,t.updateQueue=null,Za.current=jo,e=n(r,i)}while(eo)}if(Za.current=Co,t=null!==Xa&&null!==Xa.next,$a=0,Ja=Xa=Ka=null,Qa=!1,t)throw Error(o(300));return e}function io(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ja?Ka.memoizedState=Ja=e:Ja=Ja.next=e,Ja}function ao(){if(null===Xa){var e=Ka.alternate;e=null!==e?e.memoizedState:null}else e=Xa.next;var t=null===Ja?Ka.memoizedState:Ja.next;if(null!==t)Ja=t,Xa=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Xa=e).memoizedState,baseState:Xa.baseState,baseQueue:Xa.baseQueue,queue:Xa.queue,next:null},null===Ja?Ka.memoizedState=Ja=e:Ja=Ja.next=e}return Ja}function oo(e,t){return"function"===typeof t?t(e):t}function uo(e){var t=ao(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=Xa,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var u=i.next;i.next=a.next,a.next=u}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var s=u=a=null,l=i;do{var c=l.lane;if(($a&c)===c)null!==s&&(s=s.next={lane:0,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),r=l.eagerReducer===e?l.eagerState:e(r,l.action);else{var f={lane:c,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===s?(u=s=f,a=r):s=s.next=f,Ka.lanes|=c,Lu|=c}l=l.next}while(null!==l&&l!==i);null===s?a=r:s.next=u,ur(r,t.memoizedState)||(Ao=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function so(e){var t=ao(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var u=i=i.next;do{a=e(a,u.action),u=u.next}while(u!==i);ur(a,t.memoizedState)||(Ao=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function lo(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=($a&e)===e)&&(t._workInProgressVersionPrimary=r,qa.push(t))),e)return n(t._source);throw qa.push(t),Error(o(350))}function co(e,t,n,r){var i=Pu;if(null===i)throw Error(o(349));var a=t._getVersion,u=a(t._source),s=Za.current,l=s.useState((function(){return lo(i,t,n)})),c=l[1],f=l[0];l=Ja;var d=e.memoizedState,h=d.refs,p=h.getSnapshot,v=d.source;d=d.subscribe;var y=Ka;return e.memoizedState={refs:h,source:t,subscribe:r},s.useEffect((function(){h.getSnapshot=n,h.setSnapshot=c;var e=a(t._source);if(!ur(u,e)){e=n(t._source),ur(f,e)||(c(e),e=cs(y),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,o=e;0<o;){var s=31-Wt(o),l=1<<s;r[s]|=e,o&=~l}}}),[n,t,r]),s.useEffect((function(){return r(t._source,(function(){var e=h.getSnapshot,n=h.setSnapshot;try{n(e(t._source));var r=cs(y);i.mutableReadLanes|=r&i.pendingLanes}catch(a){n((function(){throw a}))}}))}),[t,r]),ur(p,n)&&ur(v,t)&&ur(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:oo,lastRenderedState:f}).dispatch=c=To.bind(null,Ka,e),l.queue=e,l.baseQueue=null,f=lo(i,t,n),l.memoizedState=l.baseState=f),f}function fo(e,t,n){return co(ao(),e,t,n)}function ho(e){var t=io();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:oo,lastRenderedState:e}).dispatch=To.bind(null,Ka,e),[t.memoizedState,e]}function po(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Ka.updateQueue)?(t={lastEffect:null},Ka.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function vo(e){return e={current:e},io().memoizedState=e}function yo(){return ao().memoizedState}function mo(e,t,n,r){var i=io();Ka.flags|=e,i.memoizedState=po(1|t,n,void 0,void 0===r?null:r)}function go(e,t,n,r){var i=ao();r=void 0===r?null:r;var a=void 0;if(null!==Xa){var o=Xa.memoizedState;if(a=o.destroy,null!==r&&no(r,o.deps))return void po(t,n,a,r)}Ka.flags|=e,i.memoizedState=po(1|t,n,a,r)}function bo(e,t){return mo(516,4,e,t)}function _o(e,t){return go(516,4,e,t)}function wo(e,t){return go(4,2,e,t)}function ko(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function So(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,go(4,2,ko.bind(null,t,e),n)}function xo(){}function Oo(e,t){var n=ao();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&no(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Mo(e,t){var n=ao();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&no(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Eo(e,t){var n=Yi();Hi(98>n?98:n,(function(){e(!0)})),Hi(97<n?97:n,(function(){var n=Ga.transition;Ga.transition=1;try{e(!1),t()}finally{Ga.transition=n}}))}function To(e,t,n){var r=ls(),i=cs(e),a={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},o=t.pending;if(null===o?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===Ka||null!==o&&o===Ka)eo=Qa=!0;else{if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var u=t.lastRenderedState,s=o(u,n);if(a.eagerReducer=o,a.eagerState=s,ur(s,u))return}catch(l){}fs(e,i,r)}}var Co={readContext:ra,useCallback:to,useContext:to,useEffect:to,useImperativeHandle:to,useLayoutEffect:to,useMemo:to,useReducer:to,useRef:to,useState:to,useDebugValue:to,useDeferredValue:to,useTransition:to,useMutableSource:to,useOpaqueIdentifier:to,unstable_isNewReconciler:!1},Po={readContext:ra,useCallback:function(e,t){return io().memoizedState=[e,void 0===t?null:t],e},useContext:ra,useEffect:bo,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,mo(4,2,ko.bind(null,t,e),n)},useLayoutEffect:function(e,t){return mo(4,2,e,t)},useMemo:function(e,t){var n=io();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=io();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=To.bind(null,Ka,e),[r.memoizedState,e]},useRef:vo,useState:ho,useDebugValue:xo,useDeferredValue:function(e){var t=ho(e),n=t[0],r=t[1];return bo((function(){var t=Ga.transition;Ga.transition=1;try{r(e)}finally{Ga.transition=t}}),[e]),n},useTransition:function(){var e=ho(!1),t=e[0];return vo(e=Eo.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=io();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},co(r,e,t,n)},useOpaqueIdentifier:function(){if(La){var e=!1,t=function(e){return{$$typeof:z,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Zr++).toString(36))),Error(o(355))})),n=ho(t)[1];return 0===(2&Ka.mode)&&(Ka.flags|=516,po(5,(function(){n("r:"+(Zr++).toString(36))}),void 0,null)),t}return ho(t="r:"+(Zr++).toString(36)),t},unstable_isNewReconciler:!1},Do={readContext:ra,useCallback:Oo,useContext:ra,useEffect:_o,useImperativeHandle:So,useLayoutEffect:wo,useMemo:Mo,useReducer:uo,useRef:yo,useState:function(){return uo(oo)},useDebugValue:xo,useDeferredValue:function(e){var t=uo(oo),n=t[0],r=t[1];return _o((function(){var t=Ga.transition;Ga.transition=1;try{r(e)}finally{Ga.transition=t}}),[e]),n},useTransition:function(){var e=uo(oo)[0];return[yo().current,e]},useMutableSource:fo,useOpaqueIdentifier:function(){return uo(oo)[0]},unstable_isNewReconciler:!1},jo={readContext:ra,useCallback:Oo,useContext:ra,useEffect:_o,useImperativeHandle:So,useLayoutEffect:wo,useMemo:Mo,useReducer:so,useRef:yo,useState:function(){return so(oo)},useDebugValue:xo,useDeferredValue:function(e){var t=so(oo),n=t[0],r=t[1];return _o((function(){var t=Ga.transition;Ga.transition=1;try{r(e)}finally{Ga.transition=t}}),[e]),n},useTransition:function(){var e=so(oo)[0];return[yo().current,e]},useMutableSource:fo,useOpaqueIdentifier:function(){return so(oo)[0]},unstable_isNewReconciler:!1},No=w.ReactCurrentOwner,Ao=!1;function zo(e,t,n,r){t.child=null===e?xa(t,null,n,r):Sa(t,e.child,n,r)}function Ro(e,t,n,r,i){n=n.render;var a=t.ref;return na(t,i),r=ro(e,t,n,r,a,i),null===e||Ao?(t.flags|=1,zo(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,nu(e,t,i))}function Io(e,t,n,r,i,a){if(null===e){var o=n.type;return"function"!==typeof o||Bs(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ws(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Lo(e,t,o,r,i,a))}return o=e.child,0===(i&a)&&(i=o.memoizedProps,(n=null!==(n=n.compare)?n:lr)(i,r)&&e.ref===t.ref)?nu(e,t,a):(t.flags|=1,(e=Hs(o,r)).ref=t.ref,e.return=t,t.child=e)}function Lo(e,t,n,r,i,a){if(null!==e&&lr(e.memoizedProps,r)&&e.ref===t.ref){if(Ao=!1,0===(a&i))return t.lanes=e.lanes,nu(e,t,a);0!==(16384&e.flags)&&(Ao=!0)}return Yo(e,t,n,r,a)}function Uo(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},bs(t,n);else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},bs(t,e),null;t.memoizedState={baseLanes:0},bs(t,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,bs(t,r);return zo(e,t,i,n),t.child}function Fo(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Yo(e,t,n,r,i){var a=pi(n)?di:ci.current;return a=hi(t,a),na(t,i),n=ro(e,t,n,r,a,i),null===e||Ao?(t.flags|=1,zo(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,nu(e,t,i))}function Bo(e,t,n,r,i){if(pi(n)){var a=!0;gi(t)}else a=!1;if(na(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),ya(t,n,r),ga(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,u=t.memoizedProps;o.props=u;var s=o.context,l=n.contextType;"object"===typeof l&&null!==l?l=ra(l):l=hi(t,l=pi(n)?di:ci.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof o.getSnapshotBeforeUpdate;f||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(u!==r||s!==l)&&ma(t,o,r,l),ia=!1;var d=t.memoizedState;o.state=d,ca(t,r,o,i),s=t.memoizedState,u!==r||d!==s||fi.current||ia?("function"===typeof c&&(ha(t,n,c,r),s=t.memoizedState),(u=ia||va(t,n,u,r,d,s,l))?(f||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4)):("function"===typeof o.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=s),o.props=r,o.state=s,o.context=l,r=u):("function"===typeof o.componentDidMount&&(t.flags|=4),r=!1)}else{o=t.stateNode,oa(e,t),u=t.memoizedProps,l=t.type===t.elementType?u:Gi(t.type,u),o.props=l,f=t.pendingProps,d=o.context,"object"===typeof(s=n.contextType)&&null!==s?s=ra(s):s=hi(t,s=pi(n)?di:ci.current);var h=n.getDerivedStateFromProps;(c="function"===typeof h||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(u!==f||d!==s)&&ma(t,o,r,s),ia=!1,d=t.memoizedState,o.state=d,ca(t,r,o,i);var p=t.memoizedState;u!==f||d!==p||fi.current||ia?("function"===typeof h&&(ha(t,n,h,r),p=t.memoizedState),(l=ia||va(t,n,l,r,d,p,s))?(c||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,s),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,s)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof o.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=s,r=l):("function"!==typeof o.componentDidUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||u===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Ho(e,t,n,r,a,i)}function Ho(e,t,n,r,i,a){Fo(e,t);var o=0!==(64&t.flags);if(!r&&!o)return i&&bi(t,n,!1),nu(e,t,a);r=t.stateNode,No.current=t;var u=o&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=Sa(t,e.child,null,a),t.child=Sa(t,null,u,a)):zo(e,t,u,a),t.memoizedState=r.state,i&&bi(t,n,!0),t.child}function Wo(e){var t=e.stateNode;t.pendingContext?yi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&yi(0,t.context,!1),Pa(e,t.containerInfo)}var qo,Vo,Zo,Go={dehydrated:null,retryLane:0};function $o(e,t,n){var r,i=t.pendingProps,a=Aa.current,o=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(o=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),si(Aa,1&a),null===e?(void 0!==i.fallback&&Ya(t),e=i.children,a=i.fallback,o?(e=Ko(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Go,e):"number"===typeof i.unstable_expectedLoadTime?(e=Ko(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Go,t.lanes=33554432,e):((n=Vs({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,o?(i=Jo(e,t,i.children,i.fallback,n),o=t.child,a=e.child.memoizedState,o.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},o.childLanes=e.childLanes&~n,t.memoizedState=Go,i):(n=Xo(e,t,i.children,n),t.memoizedState=null,n))}function Ko(e,t,n,r){var i=e.mode,a=e.child;return t={mode:"hidden",children:t},0===(2&i)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=Vs(t,i,0,null),n=qs(n,i,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function Xo(e,t,n,r){var i=e.child;return e=i.sibling,n=Hs(i,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Jo(e,t,n,r,i){var a=t.mode,o=e.child;e=o.sibling;var u={mode:"hidden",children:n};return 0===(2&a)&&t.child!==o?((n=t.child).childLanes=0,n.pendingProps=u,null!==(o=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=o,o.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Hs(o,u),null!==e?r=Hs(e,r):(r=qs(r,a,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Qo(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ta(e.return,t)}function eu(e,t,n,r,i,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.lastEffect=a)}function tu(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(zo(e,t,r.children,n),0!==(2&(r=Aa.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Qo(e,n);else if(19===e.tag)Qo(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(si(Aa,r),0===(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===za(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),eu(t,!1,i,n,a,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===za(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}eu(t,!0,n,null,a,t.lastEffect);break;case"together":eu(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function nu(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Lu|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Hs(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Hs(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function ru(e,t){if(!La)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function iu(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return pi(t.type)&&vi(),null;case 3:return Da(),ui(fi),ui(ci),Va(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ha(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Na(t);var a=Ca(Ta.current);if(n=t.type,null!==e&&null!=t.stateNode)Vo(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(o(166));return null}if(e=Ca(Ma.current),Ha(t)){r=t.stateNode,n=t.type;var u=t.memoizedProps;switch(r[$r]=t,r[Kr]=u,n){case"dialog":Er("cancel",r),Er("close",r);break;case"iframe":case"object":case"embed":Er("load",r);break;case"video":case"audio":for(e=0;e<Sr.length;e++)Er(Sr[e],r);break;case"source":Er("error",r);break;case"img":case"image":case"link":Er("error",r),Er("load",r);break;case"details":Er("toggle",r);break;case"input":ee(r,u),Er("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!u.multiple},Er("invalid",r);break;case"textarea":se(r,u),Er("invalid",r)}for(var l in xe(n,u),e=null,u)u.hasOwnProperty(l)&&(a=u[l],"children"===l?"string"===typeof a?r.textContent!==a&&(e=["children",a]):"number"===typeof a&&r.textContent!==""+a&&(e=["children",""+a]):s.hasOwnProperty(l)&&null!=a&&"onScroll"===l&&Er("scroll",r));switch(n){case"input":K(r),re(r,u,!0);break;case"textarea":K(r),ce(r);break;case"select":case"option":break;default:"function"===typeof u.onClick&&(r.onclick=Ir)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(l=9===a.nodeType?a:a.ownerDocument,e===fe&&(e=he(n)),e===fe?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[$r]=t,e[Kr]=r,qo(e,t),t.stateNode=e,l=Oe(n,r),n){case"dialog":Er("cancel",e),Er("close",e),a=r;break;case"iframe":case"object":case"embed":Er("load",e),a=r;break;case"video":case"audio":for(a=0;a<Sr.length;a++)Er(Sr[a],e);a=r;break;case"source":Er("error",e),a=r;break;case"img":case"image":case"link":Er("error",e),Er("load",e),a=r;break;case"details":Er("toggle",e),a=r;break;case"input":ee(e,r),a=Q(e,r),Er("invalid",e);break;case"option":a=ae(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=i({},r,{value:void 0}),Er("invalid",e);break;case"textarea":se(e,r),a=ue(e,r),Er("invalid",e);break;default:a=r}xe(n,a);var c=a;for(u in c)if(c.hasOwnProperty(u)){var f=c[u];"style"===u?ke(e,f):"dangerouslySetInnerHTML"===u?null!=(f=f?f.__html:void 0)&&me(e,f):"children"===u?"string"===typeof f?("textarea"!==n||""!==f)&&ge(e,f):"number"===typeof f&&ge(e,""+f):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?null!=f&&"onScroll"===u&&Er("scroll",e):null!=f&&_(e,u,f,l))}switch(n){case"input":K(e),re(e,r,!1);break;case"textarea":K(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+G(r.value));break;case"select":e.multiple=!!r.multiple,null!=(u=r.value)?oe(e,!!r.multiple,u,!1):null!=r.defaultValue&&oe(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof a.onClick&&(e.onclick=Ir)}Fr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Zo(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));n=Ca(Ta.current),Ca(Ma.current),Ha(t)?(r=t.stateNode,n=t.memoizedProps,r[$r]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[$r]=t,t.stateNode=r)}return null;case 13:return ui(Aa),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Ha(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Aa.current)?0===zu&&(zu=3):(0!==zu&&3!==zu||(zu=4),null===Pu||0===(134217727&Lu)&&0===(134217727&Uu)||vs(Pu,ju))),(r||n)&&(t.flags|=4),null);case 4:return Da(),null===e&&Cr(t.stateNode.containerInfo),null;case 10:return ea(t),null;case 17:return pi(t.type)&&vi(),null;case 19:if(ui(Aa),null===(r=t.memoizedState))return null;if(u=0!==(64&t.flags),null===(l=r.rendering))if(u)ru(r,!1);else{if(0!==zu||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(l=za(e))){for(t.flags|=64,ru(r,!1),null!==(u=l.updateQueue)&&(t.updateQueue=u,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(u=n).flags&=2,u.nextEffect=null,u.firstEffect=null,u.lastEffect=null,null===(l=u.alternate)?(u.childLanes=0,u.lanes=e,u.child=null,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=l.childLanes,u.lanes=l.lanes,u.child=l.child,u.memoizedProps=l.memoizedProps,u.memoizedState=l.memoizedState,u.updateQueue=l.updateQueue,u.type=l.type,e=l.dependencies,u.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return si(Aa,1&Aa.current|2),t.child}e=e.sibling}null!==r.tail&&Fi()>Hu&&(t.flags|=64,u=!0,ru(r,!1),t.lanes=33554432)}else{if(!u)if(null!==(e=za(l))){if(t.flags|=64,u=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ru(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate&&!La)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Fi()-r.renderingStartTime>Hu&&1073741824!==n&&(t.flags|=64,u=!0,ru(r,!1),t.lanes=33554432);r.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=r.last)?n.sibling=l:t.child=l,r.last=l)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Fi(),n.sibling=null,t=Aa.current,si(Aa,u?1&t|2:1&t),n):null;case 23:case 24:return _s(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(o(156,t.tag))}function au(e){switch(e.tag){case 1:pi(e.type)&&vi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Da(),ui(fi),ui(ci),Va(),0!==(64&(t=e.flags)))throw Error(o(285));return e.flags=-4097&t|64,e;case 5:return Na(e),null;case 13:return ui(Aa),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ui(Aa),null;case 4:return Da(),null;case 10:return ea(e),null;case 23:case 24:return _s(),null;default:return null}}function ou(e,t){try{var n="",r=t;do{n+=V(r),r=r.return}while(r);var i=n}catch(a){i="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:i}}function uu(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}qo=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Vo=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Ca(Ma.current);var o,u=null;switch(n){case"input":a=Q(e,a),r=Q(e,r),u=[];break;case"option":a=ae(e,a),r=ae(e,r),u=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),u=[];break;case"textarea":a=ue(e,a),r=ue(e,r),u=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(e.onclick=Ir)}for(f in xe(n,r),n=null,a)if(!r.hasOwnProperty(f)&&a.hasOwnProperty(f)&&null!=a[f])if("style"===f){var l=a[f];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(s.hasOwnProperty(f)?u||(u=[]):(u=u||[]).push(f,null));for(f in r){var c=r[f];if(l=null!=a?a[f]:void 0,r.hasOwnProperty(f)&&c!==l&&(null!=c||null!=l))if("style"===f)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(u||(u=[]),u.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(u=u||[]).push(f,c)):"children"===f?"string"!==typeof c&&"number"!==typeof c||(u=u||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(s.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Er("scroll",e),u||l===c||(u=[])):"object"===typeof c&&null!==c&&c.$$typeof===z?c.toString():(u=u||[]).push(f,c))}n&&(u=u||[]).push("style",n);var f=u;(t.updateQueue=f)&&(t.flags|=4)}},Zo=function(e,t,n,r){n!==r&&(t.flags|=4)};var su="function"===typeof WeakMap?WeakMap:Map;function lu(e,t,n){(n=ua(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Zu||(Zu=!0,Gu=r),uu(0,t)},n}function cu(e,t,n){(n=ua(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return uu(0,t),r(i)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===$u?$u=new Set([this]):$u.add(this),uu(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var fu="function"===typeof WeakSet?WeakSet:Set;function du(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Is(e,n)}else t.current=null}function hu(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Gi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Wr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(o(163))}function pu(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!==(4&(i=i.tag))&&0!==(1&i)&&(As(n,e),Ns(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Gi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&fa(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}fa(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Fr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&kt(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(o(163))}function vu(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=void 0!==i&&null!==i&&i.hasOwnProperty("display")?i.display:null,r.style.display=we("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function yu(e,t){if(wi&&"function"===typeof wi.onCommitFiberUnmount)try{wi.onCommitFiberUnmount(_i,t)}catch(a){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!==(4&r))As(t,n);else{r=t;try{i()}catch(a){Is(r,a)}}n=n.next}while(n!==e)}break;case 1:if(du(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(a){Is(t,a)}break;case 5:du(t);break;case 4:ku(e,t)}}function mu(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function gu(e){return 5===e.tag||3===e.tag||4===e.tag}function bu(e){e:{for(var t=e.return;null!==t;){if(gu(t))break e;t=t.return}throw Error(o(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&n.flags&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||gu(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?_u(e,n,t):wu(e,n,t)}function _u(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Ir));else if(4!==r&&null!==(e=e.child))for(_u(e,t,n),e=e.sibling;null!==e;)_u(e,t,n),e=e.sibling}function wu(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(wu(e,t,n),e=e.sibling;null!==e;)wu(e,t,n),e=e.sibling}function ku(e,t){for(var n,r,i=t,a=!1;;){if(!a){a=i.return;e:for(;;){if(null===a)throw Error(o(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===i.tag||6===i.tag){e:for(var u=e,s=i,l=s;;)if(yu(u,l),null!==l.child&&4!==l.tag)l.child.return=l,l=l.child;else{if(l===s)break e;for(;null===l.sibling;){if(null===l.return||l.return===s)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}r?(u=n,s=i.stateNode,8===u.nodeType?u.parentNode.removeChild(s):u.removeChild(s)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(yu(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(a=!1)}i.sibling.return=i.return,i=i.sibling}}function Su(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Kr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Oe(e,i),t=Oe(e,r),i=0;i<a.length;i+=2){var u=a[i],s=a[i+1];"style"===u?ke(n,s):"dangerouslySetInnerHTML"===u?me(n,s):"children"===u?ge(n,s):_(n,u,s,t)}switch(e){case"input":ne(n,r);break;case"textarea":le(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?oe(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?oe(n,!!r.multiple,r.defaultValue,!0):oe(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,kt(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(Bu=Fi(),vu(t.child,!0)),void xu(t);case 19:return void xu(t);case 17:return;case 23:case 24:return void vu(t,null!==t.memoizedState)}throw Error(o(163))}function xu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fu),t.forEach((function(t){var r=Us.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ou(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var Mu=Math.ceil,Eu=w.ReactCurrentDispatcher,Tu=w.ReactCurrentOwner,Cu=0,Pu=null,Du=null,ju=0,Nu=0,Au=oi(0),zu=0,Ru=null,Iu=0,Lu=0,Uu=0,Fu=0,Yu=null,Bu=0,Hu=1/0;function Wu(){Hu=Fi()+500}var qu,Vu=null,Zu=!1,Gu=null,$u=null,Ku=!1,Xu=null,Ju=90,Qu=[],es=[],ts=null,ns=0,rs=null,is=-1,as=0,os=0,us=null,ss=!1;function ls(){return 0!==(48&Cu)?Fi():-1!==is?is:is=Fi()}function cs(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===Yi()?1:2;if(0===as&&(as=Iu),0!==Zi.transition){0!==os&&(os=null!==Yu?Yu.pendingLanes:0),e=as;var t=4186112&~os;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Yi(),0!==(4&Cu)&&98===e?e=Ft(12,as):e=Ft(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),as),e}function fs(e,t,n){if(50<ns)throw ns=0,rs=null,Error(o(185));if(null===(e=ds(e,t)))return null;Ht(e,t,n),e===Pu&&(Uu|=t,4===zu&&vs(e,ju));var r=Yi();1===t?0!==(8&Cu)&&0===(48&Cu)?ys(e):(hs(e,n),0===Cu&&(Wu(),qi())):(0===(4&Cu)||98!==r&&99!==r||(null===ts?ts=new Set([e]):ts.add(e)),hs(e,n)),Yu=e}function ds(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function hs(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,a=e.expirationTimes,u=e.pendingLanes;0<u;){var s=31-Wt(u),l=1<<s,c=a[s];if(-1===c){if(0===(l&r)||0!==(l&i)){c=t,It(l);var f=Rt;a[s]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=l);u&=~l}if(r=Lt(e,e===Pu?ju:0),t=Rt,0===r)null!==n&&(n!==Ai&&xi(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Ai&&xi(n)}15===t?(n=ys.bind(null,e),null===Ri?(Ri=[n],Ii=Si(Ci,Vi)):Ri.push(n),n=Ai):14===t?n=Wi(99,ys.bind(null,e)):n=Wi(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(o(358,e))}}(t),ps.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function ps(e){if(is=-1,os=as=0,0!==(48&Cu))throw Error(o(327));var t=e.callbackNode;if(js()&&e.callbackNode!==t)return null;var n=Lt(e,e===Pu?ju:0);if(0===n)return null;var r=n,i=Cu;Cu|=16;var a=Ss();for(Pu===e&&ju===r||(Wu(),ws(e,r));;)try{Ms();break}catch(s){ks(e,s)}if(Qi(),Eu.current=a,Cu=i,null!==Du?r=0:(Pu=null,ju=0,r=zu),0!==(Iu&Uu))ws(e,0);else if(0!==r){if(2===r&&(Cu|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(n=Ut(e))&&(r=xs(e,n))),1===r)throw t=Ru,ws(e,0),vs(e,n),hs(e,Fi()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(o(345));case 2:Cs(e);break;case 3:if(vs(e,n),(62914560&n)===n&&10<(r=Bu+500-Fi())){if(0!==Lt(e,0))break;if(((i=e.suspendedLanes)&n)!==n){ls(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Br(Cs.bind(null,e),r);break}Cs(e);break;case 4:if(vs(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var u=31-Wt(n);a=1<<u,(u=r[u])>i&&(i=u),n&=~a}if(n=i,10<(n=(120>(n=Fi()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Mu(n/1960))-n)){e.timeoutHandle=Br(Cs.bind(null,e),n);break}Cs(e);break;case 5:Cs(e);break;default:throw Error(o(329))}}return hs(e,Fi()),e.callbackNode===t?ps.bind(null,e):null}function vs(e,t){for(t&=~Fu,t&=~Uu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Wt(t),r=1<<n;e[n]=-1,t&=~r}}function ys(e){if(0!==(48&Cu))throw Error(o(327));if(js(),e===Pu&&0!==(e.expiredLanes&ju)){var t=ju,n=xs(e,t);0!==(Iu&Uu)&&(n=xs(e,t=Lt(e,t)))}else n=xs(e,t=Lt(e,0));if(0!==e.tag&&2===n&&(Cu|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(t=Ut(e))&&(n=xs(e,t))),1===n)throw n=Ru,ws(e,0),vs(e,t),hs(e,Fi()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Cs(e),hs(e,Fi()),null}function ms(e,t){var n=Cu;Cu|=1;try{return e(t)}finally{0===(Cu=n)&&(Wu(),qi())}}function gs(e,t){var n=Cu;Cu&=-2,Cu|=8;try{return e(t)}finally{0===(Cu=n)&&(Wu(),qi())}}function bs(e,t){si(Au,Nu),Nu|=t,Iu|=t}function _s(){Nu=Au.current,ui(Au)}function ws(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Hr(n)),null!==Du)for(n=Du.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&vi();break;case 3:Da(),ui(fi),ui(ci),Va();break;case 5:Na(r);break;case 4:Da();break;case 13:case 19:ui(Aa);break;case 10:ea(r);break;case 23:case 24:_s()}n=n.return}Pu=e,Du=Hs(e.current,null),ju=Nu=Iu=t,zu=0,Ru=null,Fu=Uu=Lu=0}function ks(e,t){for(;;){var n=Du;try{if(Qi(),Za.current=Co,Qa){for(var r=Ka.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}Qa=!1}if($a=0,Ja=Xa=Ka=null,eo=!1,Tu.current=null,null===n||null===n.return){zu=1,Ru=t,Du=null;break}e:{var a=e,o=n.return,u=n,s=t;if(t=ju,u.flags|=2048,u.firstEffect=u.lastEffect=null,null!==s&&"object"===typeof s&&"function"===typeof s.then){var l=s;if(0===(2&u.mode)){var c=u.alternate;c?(u.updateQueue=c.updateQueue,u.memoizedState=c.memoizedState,u.lanes=c.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=0!==(1&Aa.current),d=o;do{var h;if(h=13===d.tag){var p=d.memoizedState;if(null!==p)h=null!==p.dehydrated;else{var v=d.memoizedProps;h=void 0!==v.fallback&&(!0!==v.unstable_avoidThisFallback||!f)}}if(h){var y=d.updateQueue;if(null===y){var m=new Set;m.add(l),d.updateQueue=m}else y.add(l);if(0===(2&d.mode)){if(d.flags|=64,u.flags|=16384,u.flags&=-2981,1===u.tag)if(null===u.alternate)u.tag=17;else{var g=ua(-1,1);g.tag=2,sa(u,g)}u.lanes|=1;break e}s=void 0,u=t;var b=a.pingCache;if(null===b?(b=a.pingCache=new su,s=new Set,b.set(l,s)):void 0===(s=b.get(l))&&(s=new Set,b.set(l,s)),!s.has(u)){s.add(u);var _=Ls.bind(null,a,l,u);l.then(_,_)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);s=Error((Z(u.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==zu&&(zu=2),s=ou(s,u),d=o;do{switch(d.tag){case 3:a=s,d.flags|=4096,t&=-t,d.lanes|=t,la(d,lu(0,a,t));break e;case 1:a=s;var w=d.type,k=d.stateNode;if(0===(64&d.flags)&&("function"===typeof w.getDerivedStateFromError||null!==k&&"function"===typeof k.componentDidCatch&&(null===$u||!$u.has(k)))){d.flags|=4096,t&=-t,d.lanes|=t,la(d,cu(d,a,t));break e}}d=d.return}while(null!==d)}Ts(n)}catch(S){t=S,Du===n&&null!==n&&(Du=n=n.return);continue}break}}function Ss(){var e=Eu.current;return Eu.current=Co,null===e?Co:e}function xs(e,t){var n=Cu;Cu|=16;var r=Ss();for(Pu===e&&ju===t||ws(e,t);;)try{Os();break}catch(i){ks(e,i)}if(Qi(),Cu=n,Eu.current=r,null!==Du)throw Error(o(261));return Pu=null,ju=0,zu}function Os(){for(;null!==Du;)Es(Du)}function Ms(){for(;null!==Du&&!Oi();)Es(Du)}function Es(e){var t=qu(e.alternate,e,Nu);e.memoizedProps=e.pendingProps,null===t?Ts(e):Du=t,Tu.current=null}function Ts(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=iu(n,t,Nu)))return void(Du=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Nu)||0===(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=au(t)))return n.flags&=2047,void(Du=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Du=t);Du=t=e}while(null!==t);0===zu&&(zu=5)}function Cs(e){var t=Yi();return Hi(99,Ps.bind(null,e,t)),null}function Ps(e,t){do{js()}while(null!==Xu);if(0!==(48&Cu))throw Error(o(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,a=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var u=e.eventTimes,s=e.expirationTimes;0<a;){var l=31-Wt(a),c=1<<l;i[l]=0,u[l]=-1,s[l]=-1,a&=~c}if(null!==ts&&0===(24&r)&&ts.has(e)&&ts.delete(e),e===Pu&&(Du=Pu=null,ju=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=Cu,Cu|=32,Tu.current=null,Lr=$t,pr(u=hr())){if("selectionStart"in u)s={start:u.selectionStart,end:u.selectionEnd};else e:if(s=(s=u.ownerDocument)&&s.defaultView||window,(c=s.getSelection&&s.getSelection())&&0!==c.rangeCount){s=c.anchorNode,a=c.anchorOffset,l=c.focusNode,c=c.focusOffset;try{s.nodeType,l.nodeType}catch(M){s=null;break e}var f=0,d=-1,h=-1,p=0,v=0,y=u,m=null;t:for(;;){for(var g;y!==s||0!==a&&3!==y.nodeType||(d=f+a),y!==l||0!==c&&3!==y.nodeType||(h=f+c),3===y.nodeType&&(f+=y.nodeValue.length),null!==(g=y.firstChild);)m=y,y=g;for(;;){if(y===u)break t;if(m===s&&++p===a&&(d=f),m===l&&++v===c&&(h=f),null!==(g=y.nextSibling))break;m=(y=m).parentNode}y=g}s=-1===d||-1===h?null:{start:d,end:h}}else s=null;s=s||{start:0,end:0}}else s=null;Ur={focusedElem:u,selectionRange:s},$t=!1,us=null,ss=!1,Vu=r;do{try{Ds()}catch(M){if(null===Vu)throw Error(o(330));Is(Vu,M),Vu=Vu.nextEffect}}while(null!==Vu);us=null,Vu=r;do{try{for(u=e;null!==Vu;){var b=Vu.flags;if(16&b&&ge(Vu.stateNode,""),128&b){var _=Vu.alternate;if(null!==_){var w=_.ref;null!==w&&("function"===typeof w?w(null):w.current=null)}}switch(1038&b){case 2:bu(Vu),Vu.flags&=-3;break;case 6:bu(Vu),Vu.flags&=-3,Su(Vu.alternate,Vu);break;case 1024:Vu.flags&=-1025;break;case 1028:Vu.flags&=-1025,Su(Vu.alternate,Vu);break;case 4:Su(Vu.alternate,Vu);break;case 8:ku(u,s=Vu);var k=s.alternate;mu(s),null!==k&&mu(k)}Vu=Vu.nextEffect}}catch(M){if(null===Vu)throw Error(o(330));Is(Vu,M),Vu=Vu.nextEffect}}while(null!==Vu);if(w=Ur,_=hr(),b=w.focusedElem,u=w.selectionRange,_!==b&&b&&b.ownerDocument&&dr(b.ownerDocument.documentElement,b)){null!==u&&pr(b)&&(_=u.start,void 0===(w=u.end)&&(w=_),"selectionStart"in b?(b.selectionStart=_,b.selectionEnd=Math.min(w,b.value.length)):(w=(_=b.ownerDocument||document)&&_.defaultView||window).getSelection&&(w=w.getSelection(),s=b.textContent.length,k=Math.min(u.start,s),u=void 0===u.end?k:Math.min(u.end,s),!w.extend&&k>u&&(s=u,u=k,k=s),s=fr(b,k),a=fr(b,u),s&&a&&(1!==w.rangeCount||w.anchorNode!==s.node||w.anchorOffset!==s.offset||w.focusNode!==a.node||w.focusOffset!==a.offset)&&((_=_.createRange()).setStart(s.node,s.offset),w.removeAllRanges(),k>u?(w.addRange(_),w.extend(a.node,a.offset)):(_.setEnd(a.node,a.offset),w.addRange(_))))),_=[];for(w=b;w=w.parentNode;)1===w.nodeType&&_.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<_.length;b++)(w=_[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}$t=!!Lr,Ur=Lr=null,e.current=n,Vu=r;do{try{for(b=e;null!==Vu;){var S=Vu.flags;if(36&S&&pu(b,Vu.alternate,Vu),128&S){_=void 0;var x=Vu.ref;if(null!==x){var O=Vu.stateNode;switch(Vu.tag){case 5:_=O;break;default:_=O}"function"===typeof x?x(_):x.current=_}}Vu=Vu.nextEffect}}catch(M){if(null===Vu)throw Error(o(330));Is(Vu,M),Vu=Vu.nextEffect}}while(null!==Vu);Vu=null,zi(),Cu=i}else e.current=n;if(Ku)Ku=!1,Xu=e,Ju=t;else for(Vu=r;null!==Vu;)t=Vu.nextEffect,Vu.nextEffect=null,8&Vu.flags&&((S=Vu).sibling=null,S.stateNode=null),Vu=t;if(0===(r=e.pendingLanes)&&($u=null),1===r?e===rs?ns++:(ns=0,rs=e):ns=0,n=n.stateNode,wi&&"function"===typeof wi.onCommitFiberRoot)try{wi.onCommitFiberRoot(_i,n,void 0,64===(64&n.current.flags))}catch(M){}if(hs(e,Fi()),Zu)throw Zu=!1,e=Gu,Gu=null,e;return 0!==(8&Cu)||qi(),null}function Ds(){for(;null!==Vu;){var e=Vu.alternate;ss||null===us||(0!==(8&Vu.flags)?et(Vu,us)&&(ss=!0):13===Vu.tag&&Ou(e,Vu)&&et(Vu,us)&&(ss=!0));var t=Vu.flags;0!==(256&t)&&hu(e,Vu),0===(512&t)||Ku||(Ku=!0,Wi(97,(function(){return js(),null}))),Vu=Vu.nextEffect}}function js(){if(90!==Ju){var e=97<Ju?97:Ju;return Ju=90,Hi(e,zs)}return!1}function Ns(e,t){Qu.push(t,e),Ku||(Ku=!0,Wi(97,(function(){return js(),null})))}function As(e,t){es.push(t,e),Ku||(Ku=!0,Wi(97,(function(){return js(),null})))}function zs(){if(null===Xu)return!1;var e=Xu;if(Xu=null,0!==(48&Cu))throw Error(o(331));var t=Cu;Cu|=32;var n=es;es=[];for(var r=0;r<n.length;r+=2){var i=n[r],a=n[r+1],u=i.destroy;if(i.destroy=void 0,"function"===typeof u)try{u()}catch(l){if(null===a)throw Error(o(330));Is(a,l)}}for(n=Qu,Qu=[],r=0;r<n.length;r+=2){i=n[r],a=n[r+1];try{var s=i.create;i.destroy=s()}catch(l){if(null===a)throw Error(o(330));Is(a,l)}}for(s=e.current.firstEffect;null!==s;)e=s.nextEffect,s.nextEffect=null,8&s.flags&&(s.sibling=null,s.stateNode=null),s=e;return Cu=t,qi(),!0}function Rs(e,t,n){sa(e,t=lu(0,t=ou(n,t),1)),t=ls(),null!==(e=ds(e,1))&&(Ht(e,1,t),hs(e,t))}function Is(e,t){if(3===e.tag)Rs(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Rs(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===$u||!$u.has(r))){var i=cu(n,e=ou(t,e),1);if(sa(n,i),i=ls(),null!==(n=ds(n,1)))Ht(n,1,i),hs(n,i);else if("function"===typeof r.componentDidCatch&&(null===$u||!$u.has(r)))try{r.componentDidCatch(t,e)}catch(a){}break}}n=n.return}}function Ls(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ls(),e.pingedLanes|=e.suspendedLanes&n,Pu===e&&(ju&n)===n&&(4===zu||3===zu&&(62914560&ju)===ju&&500>Fi()-Bu?ws(e,0):Fu|=n),hs(e,t)}function Us(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===Yi()?1:2:(0===as&&(as=Iu),0===(t=Yt(62914560&~as))&&(t=4194304))),n=ls(),null!==(e=ds(e,t))&&(Ht(e,t,n),hs(e,n))}function Fs(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Ys(e,t,n,r){return new Fs(e,t,n,r)}function Bs(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Hs(e,t){var n=e.alternate;return null===n?((n=Ys(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ws(e,t,n,r,i,a){var u=2;if(r=e,"function"===typeof e)Bs(e)&&(u=1);else if("string"===typeof e)u=5;else e:switch(e){case x:return qs(n.children,i,a,t);case R:u=8,i|=16;break;case O:u=8,i|=1;break;case M:return(e=Ys(12,n,t,8|i)).elementType=M,e.type=M,e.lanes=a,e;case P:return(e=Ys(13,n,t,i)).type=P,e.elementType=P,e.lanes=a,e;case D:return(e=Ys(19,n,t,i)).elementType=D,e.lanes=a,e;case I:return Vs(n,i,a,t);case L:return(e=Ys(24,n,t,i)).elementType=L,e.lanes=a,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case E:u=10;break e;case T:u=9;break e;case C:u=11;break e;case j:u=14;break e;case N:u=16,r=null;break e;case A:u=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Ys(u,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function qs(e,t,n,r){return(e=Ys(7,e,r,t)).lanes=n,e}function Vs(e,t,n,r){return(e=Ys(23,e,r,t)).elementType=I,e.lanes=n,e}function Zs(e,t,n){return(e=Ys(6,e,null,t)).lanes=n,e}function Gs(e,t,n){return(t=Ys(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $s(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function Ks(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Xs(e,t,n,r){var i=t.current,a=ls(),u=cs(i);e:if(n){t:{if(Ke(n=n._reactInternals)!==n||1!==n.tag)throw Error(o(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(pi(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(o(171))}if(1===n.tag){var l=n.type;if(pi(l)){n=mi(n,l,s);break e}}n=s}else n=li;return null===t.context?t.context=n:t.pendingContext=n,(t=ua(a,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),sa(i,t),fs(i,u,a),u}function Js(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Qs(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function el(e,t){Qs(e,t),(e=e.alternate)&&Qs(e,t)}function tl(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new $s(e,t,null!=n&&!0===n.hydrate),t=Ys(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,aa(t),e[Xr]=n.current,Cr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function nl(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function rl(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if("function"===typeof i){var u=i;i=function(){var e=Js(o);u.call(e)}}Xs(t,o,e,i)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new tl(e,0,t?{hydrate:!0}:void 0)}(n,r),o=a._internalRoot,"function"===typeof i){var s=i;i=function(){var e=Js(o);s.call(e)}}gs((function(){Xs(t,o,e,i)}))}return Js(o)}function il(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!nl(t))throw Error(o(200));return Ks(e,t,null,n)}qu=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||fi.current)Ao=!0;else{if(0===(n&r)){switch(Ao=!1,t.tag){case 3:Wo(t),Wa();break;case 5:ja(t);break;case 1:pi(t.type)&&gi(t);break;case 4:Pa(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;si($i,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?$o(e,t,n):(si(Aa,1&Aa.current),null!==(t=nu(e,t,n))?t.sibling:null);si(Aa,1&Aa.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return tu(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),si(Aa,Aa.current),r)break;return null;case 23:case 24:return t.lanes=0,Uo(e,t,n)}return nu(e,t,n)}Ao=0!==(16384&e.flags)}else Ao=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=hi(t,ci.current),na(t,n),i=ro(null,t,r,e,i,n),t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,pi(r)){var a=!0;gi(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,aa(t);var u=r.getDerivedStateFromProps;"function"===typeof u&&ha(t,r,u,e),i.updater=pa,t.stateNode=i,i._reactInternals=t,ga(t,r,e,n),t=Ho(null,t,r,!0,a,n)}else t.tag=0,zo(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(a=i._init)(i._payload),t.type=i,a=t.tag=function(e){if("function"===typeof e)return Bs(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===C)return 11;if(e===j)return 14}return 2}(i),e=Gi(i,e),a){case 0:t=Yo(null,t,i,e,n);break e;case 1:t=Bo(null,t,i,e,n);break e;case 11:t=Ro(null,t,i,e,n);break e;case 14:t=Io(null,t,i,Gi(i.type,e),r,n);break e}throw Error(o(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Yo(e,t,r,i=t.elementType===r?i:Gi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Bo(e,t,r,i=t.elementType===r?i:Gi(r,i),n);case 3:if(Wo(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,oa(e,t),ca(t,r,null,n),(r=t.memoizedState.element)===i)Wa(),t=nu(e,t,n);else{if((a=(i=t.stateNode).hydrate)&&(Ia=qr(t.stateNode.containerInfo.firstChild),Ra=t,a=La=!0),a){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(a=e[i])._workInProgressVersionPrimary=e[i+1],qa.push(a);for(n=xa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else zo(e,t,r,n),Wa();t=t.child}return t;case 5:return ja(t),null===e&&Ya(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,u=i.children,Yr(r,i)?u=null:null!==a&&Yr(r,a)&&(t.flags|=16),Fo(e,t),zo(e,t,u,n),t.child;case 6:return null===e&&Ya(t),null;case 13:return $o(e,t,n);case 4:return Pa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Sa(t,null,r,n):zo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Ro(e,t,r,i=t.elementType===r?i:Gi(r,i),n);case 7:return zo(e,t,t.pendingProps,n),t.child;case 8:case 12:return zo(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,u=t.memoizedProps,a=i.value;var s=t.type._context;if(si($i,s._currentValue),s._currentValue=a,null!==u)if(s=u.value,0===(a=ur(s,a)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(s,a):1073741823))){if(u.children===i.children&&!fi.current){t=nu(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){u=s.child;for(var c=l.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&a)){1===s.tag&&((c=ua(-1,n&-n)).tag=2,sa(s,c)),s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),ta(s.return,n),l.lanes|=n;break}c=c.next}}else u=10===s.tag&&s.type===t.type?null:s.child;if(null!==u)u.return=s;else for(u=s;null!==u;){if(u===t){u=null;break}if(null!==(s=u.sibling)){s.return=u.return,u=s;break}u=u.return}s=u}zo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(a=t.pendingProps).children,na(t,n),r=r(i=ra(i,a.unstable_observedBits)),t.flags|=1,zo(e,t,r,n),t.child;case 14:return a=Gi(i=t.type,t.pendingProps),Io(e,t,i,a=Gi(i.type,a),r,n);case 15:return Lo(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Gi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,pi(r)?(e=!0,gi(t)):e=!1,na(t,n),ya(t,r,i),ga(t,r,i,n),Ho(null,t,r,!0,e,n);case 19:return tu(e,t,n);case 23:case 24:return Uo(e,t,n)}throw Error(o(156,t.tag))},tl.prototype.render=function(e){Xs(e,this._internalRoot,null,null)},tl.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Xs(null,e,null,(function(){t[Xr]=null}))},tt=function(e){13===e.tag&&(fs(e,4,ls()),el(e,4))},nt=function(e){13===e.tag&&(fs(e,67108864,ls()),el(e,67108864))},rt=function(e){if(13===e.tag){var t=ls(),n=cs(e);fs(e,n,t),el(e,n)}},it=function(e,t){return t()},Ee=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ni(r);if(!i)throw Error(o(90));X(r),ne(r,i)}}}break;case"textarea":le(e,n);break;case"select":null!=(t=n.value)&&oe(e,!!n.multiple,t,!1)}},Ne=ms,Ae=function(e,t,n,r,i){var a=Cu;Cu|=4;try{return Hi(98,e.bind(null,t,n,r,i))}finally{0===(Cu=a)&&(Wu(),qi())}},ze=function(){0===(49&Cu)&&(function(){if(null!==ts){var e=ts;ts=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,hs(e,Fi())}))}qi()}(),js())},Re=function(e,t){var n=Cu;Cu|=2;try{return e(t)}finally{0===(Cu=n)&&(Wu(),qi())}};var al={Events:[ei,ti,ni,De,je,js,{current:!1}]},ol={findFiberByHostInstance:Qr,bundleType:0,version:"17.0.1",rendererPackageName:"react-dom"},ul={bundleType:ol.bundleType,version:ol.version,rendererPackageName:ol.rendererPackageName,rendererConfig:ol.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Qe(e))?null:e.stateNode},findFiberByHostInstance:ol.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var sl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sl.isDisabled&&sl.supportsFiber)try{_i=sl.inject(ul),wi=sl}catch(ye){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=al,t.createPortal=il,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw Error(o(268,Object.keys(e)))}return e=null===(e=Qe(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Cu;if(0!==(48&n))return e(t);Cu|=1;try{if(e)return Hi(99,e.bind(null,t))}finally{Cu=n,qi()}},t.hydrate=function(e,t,n){if(!nl(t))throw Error(o(200));return rl(null,e,t,!0,n)},t.render=function(e,t,n){if(!nl(t))throw Error(o(200));return rl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!nl(e))throw Error(o(40));return!!e._reactRootContainer&&(gs((function(){rl(null,null,e,!1,(function(){e._reactRootContainer=null,e[Xr]=null}))})),!0)},t.unstable_batchedUpdates=ms,t.unstable_createPortal=function(e,t){return il(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!nl(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return rl(e,t,n,!1,r)},t.version="17.0.1"},function(e,t,n){"use strict";e.exports=n(135)},function(e,t,n){"use strict";var r,i,a,o;if("object"===typeof performance&&"function"===typeof performance.now){var u=performance;t.unstable_now=function(){return u.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var c=null,f=null,d=function e(){if(null!==c)try{var n=t.unstable_now();c(!0,n),c=null}catch(r){throw setTimeout(e,0),r}};r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(d,0))},i=function(e,t){f=setTimeout(e,t)},a=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,p=window.clearTimeout;if("undefined"!==typeof console){var v=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof v&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,m=null,g=-1,b=5,_=0;t.unstable_shouldYield=function(){return t.unstable_now()>=_},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,k=w.port2;w.port1.onmessage=function(){if(null!==m){var e=t.unstable_now();_=e+b;try{m(!0,e)?k.postMessage(null):(y=!1,m=null)}catch(n){throw k.postMessage(null),n}}else y=!1},r=function(e){m=e,y||(y=!0,k.postMessage(null))},i=function(e,n){g=h((function(){e(t.unstable_now())}),n)},a=function(){p(g),g=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<M(i,t)))break e;e[r]=t,e[n]=i,n=r}}function x(e){return void 0===(e=e[0])?null:e}function O(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],u=a+1,s=e[u];if(void 0!==o&&0>M(o,n))void 0!==s&&0>M(s,o)?(e[r]=s,e[u]=n,r=u):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==s&&0>M(s,n)))break e;e[r]=s,e[u]=n,r=u}}}return t}return null}function M(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var E=[],T=[],C=1,P=null,D=3,j=!1,N=!1,A=!1;function z(e){for(var t=x(T);null!==t;){if(null===t.callback)O(T);else{if(!(t.startTime<=e))break;O(T),t.sortIndex=t.expirationTime,S(E,t)}t=x(T)}}function R(e){if(A=!1,z(e),!N)if(null!==x(E))N=!0,r(I);else{var t=x(T);null!==t&&i(R,t.startTime-e)}}function I(e,n){N=!1,A&&(A=!1,a()),j=!0;var r=D;try{for(z(n),P=x(E);null!==P&&(!(P.expirationTime>n)||e&&!t.unstable_shouldYield());){var o=P.callback;if("function"===typeof o){P.callback=null,D=P.priorityLevel;var u=o(P.expirationTime<=n);n=t.unstable_now(),"function"===typeof u?P.callback=u:P===x(E)&&O(E),z(n)}else O(E);P=x(E)}if(null!==P)var s=!0;else{var l=x(T);null!==l&&i(R,l.startTime-n),s=!1}return s}finally{P=null,D=r,j=!1}}var L=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||j||(N=!0,r(I))},t.unstable_getCurrentPriorityLevel=function(){return D},t.unstable_getFirstCallbackNode=function(){return x(E)},t.unstable_next=function(e){switch(D){case 1:case 2:case 3:var t=3;break;default:t=D}var n=D;D=t;try{return e()}finally{D=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=L,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=D;D=e;try{return t()}finally{D=n}},t.unstable_scheduleCallback=function(e,n,o){var u=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?u+o:u:o=u,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:C++,callback:n,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>u?(e.sortIndex=o,S(T,e),null===x(E)&&e===x(T)&&(A?a():A=!0,i(R,o-u))):(e.sortIndex=s,S(E,e),N||j||(N=!0,r(I))),e},t.unstable_wrapCallback=function(e){var t=D;return function(){var n=D;D=t;try{return e.apply(this,arguments)}finally{D=n}}}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(138);var i=h(n(1)),a=n(73),o=h(n(15)),u=h(n(2)),s=h(n(12)),l=n(18),c=n(27),f=n(33),d=h(n(90));function h(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var y={line:{normal:{stroke:"steelblue",fill:"none",strokeWidth:1},highlighted:{stroke:"#5a98cb",fill:"none",strokeWidth:1},selected:{stroke:"steelblue",fill:"none",strokeWidth:1},muted:{stroke:"steelblue",fill:"none",opacity:.4,strokeWidth:1}},area:{normal:{fill:"steelblue",stroke:"none",opacity:.75},highlighted:{fill:"#5a98cb",stroke:"none",opacity:.75},selected:{fill:"steelblue",stroke:"none",opacity:.75},muted:{fill:"steelblue",stroke:"none",opacity:.25}}},m=function(e){function t(){return p(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"shouldComponentUpdate",value:function(e){var t=e.series,n=this.props.series,r=e.width,i=e.timeScale,a=e.yScale,o=e.interpolation,u=e.columns,s=e.style,f=e.highlight,d=e.selection,h=this.props.width!==r,p=(0,c.scaleAsString)(this.props.timeScale)!==(0,c.scaleAsString)(i),v=this.props.yScale!==a,y=this.props.interpolation!==o,m=JSON.stringify(this.props.columns)!==JSON.stringify(u),g=JSON.stringify(this.props.style)!==JSON.stringify(s),b=this.props.highlight!==f,_=this.props.selection!==d;return n.size()!==t.size()||!l.TimeSeries.is(n,t)||p||h||y||m||g||v||b||_}},{key:"handleHover",value:function(e,t){this.props.onHighlightChange&&this.props.onHighlightChange(t)}},{key:"handleHoverLeave",value:function(){this.props.onHighlightChange&&this.props.onHighlightChange(null)}},{key:"handleClick",value:function(e,t){e.stopPropagation(),this.props.onSelectionChange&&this.props.onSelectionChange(t)}},{key:"providedAreaStyleMap",value:function(e){var t={};return this.props.style&&(this.props.style instanceof f.Styler?t=this.props.style.areaChartStyle()[e]:i.default.isFunction(this.props.style)?t=this.props.style(e):i.default.isObject(this.props.style)&&(t=this.props.style?this.props.style[e]:y)),t}},{key:"style",value:function(e,t){var n=void 0,r=this.providedAreaStyleMap(e),a=this.props.highlight&&e===this.props.highlight,u=this.props.selection&&e===this.props.selection;return i.default.has(r,"line")||console.error("Provided style for AreaChart does not define a style for the outline:",r,e),i.default.has(r,"area")||console.error("Provided style for AreaChart does not define a style for the area:",r),n=this.props.selection?u?(0,o.default)(!0,y[t].selected,r[t].selected?r[t].selected:{}):a?(0,o.default)(!0,y[t].highlighted,r[t].highlighted?r[t].highlighted:{}):(0,o.default)(!0,y[t].muted,r[t].muted?r[t].muted:{}):a?(0,o.default)(!0,y[t].highlighted,r[t].highlighted?r[t].highlighted:{}):(0,o.default)(!0,y[t].normal,r[t].normal?r[t].normal:{}),n}},{key:"pathStyle",value:function(e){return this.style(e,"line")}},{key:"areaStyle",value:function(e){return this.style(e,"area")}},{key:"renderArea",value:function(e,t,n){var r=this,i=this.areaStyle(t),o=this.pathStyle(t),s=(0,a.area)().curve(d.default[this.props.interpolation]).x((function(e){return e.x0})).y0((function(e){return e.y0})).y1((function(e){return e.y1}))(e),l=(0,a.line)().curve(d.default[this.props.interpolation]).x((function(e){return e.x0})).y((function(e){return e.y1}))(e);return u.default.createElement("g",{key:"area-"+n},u.default.createElement("path",{d:s,style:i}),u.default.createElement("path",{d:s,style:i,onClick:function(e){return r.handleClick(e,t)},onMouseLeave:function(){return r.handleHoverLeave()},onMouseMove:function(e){return r.handleHover(e,t)}}),u.default.createElement("path",{d:l,style:o,onClick:function(e){return r.handleClick(e,t)},onMouseLeave:function(){return r.handleHoverLeave()},onMouseMove:function(e){return r.handleHover(e,t)}}))}},{key:"renderPaths",value:function(e,t){var n=this,r="up"===t?1:-1,a=this.props.series.size(),o=new Array(a).fill(0),s=e.length;return e.map((function(e,t){var a=[],l=1;if(n.props.breakArea){for(var c=null,f=0;f<n.props.series.size();f+=1){var d=n.props.series.at(f),h=d.get(e),p=i.default.isNull(h)||i.default.isNaN(h)||!i.default.isFinite(h);p&&(h=0),s>1?(c||(c=[]),c.push({x0:n.props.timeScale(d.timestamp()),y0:n.props.yScale(o[f]),y1:n.props.yScale(o[f]+r*h)}),n.props.stack&&(o[f]+=r*h)):p?c&&(c.length>1&&(a.push(n.renderArea(c,e,l)),l+=1),c=null):(c||(c=[]),c.push({x0:n.props.timeScale(d.timestamp()),y0:n.props.yScale(o[f]),y1:n.props.yScale(o[f]+r*h)}),n.props.stack&&(o[f]+=r*h))}c&&c.length>1&&(a.push(n.renderArea(c,e,l)),l+=1)}else{for(var v=[],y=0;y<n.props.series.size();y+=1){var m=n.props.series.at(y),g=m.get(e);i.default.isNull(g)||i.default.isNaN(g)||!i.default.isFinite(g)||(v.push({x0:n.props.timeScale(m.timestamp()),y0:n.props.yScale(o[y]),y1:n.props.yScale(o[y]+r*g)}),n.props.stack&&(o[y]+=r*g))}a.push(n.renderArea(v,e,l)),l+=1}return u.default.createElement("g",{key:e},a)}))}},{key:"renderAreas",value:function(){var e=this.props.columns.up||[],t=this.props.columns.down||[];return u.default.createElement("g",null,this.renderPaths(e,"up"),this.renderPaths(t,"down"))}},{key:"render",value:function(){return u.default.createElement("g",null,this.renderAreas())}}]),t}(u.default.Component);t.default=m,m.propTypes={series:s.default.instanceOf(l.TimeSeries).isRequired,axis:s.default.string.isRequired,visible:s.default.bool,columns:s.default.shape({up:s.default.arrayOf(s.default.string),down:s.default.arrayOf(s.default.string)}),stack:s.default.bool,style:s.default.oneOfType([s.default.object,s.default.func,s.default.instanceOf(f.Styler)]),interpolation:s.default.oneOf(["curveBasis","curveBasisOpen","curveBundle","curveCardinal","curveCardinalOpen","curveCatmullRom","curveCatmullRomOpen","curveLinear","curveMonotoneX","curveMonotoneY","curveNatural","curveRadial","curveStep","curveStepAfter","curveStepBefore"]),highlight:s.default.string,onHighlightChange:s.default.func,selection:s.default.string,onSelectionChange:s.default.func,timeScale:s.default.func,yScale:s.default.func,width:s.default.number,breakArea:s.default.bool},m.defaultProps={visible:!0,interpolation:"curveLinear",columns:{up:["value"],down:[]},stack:!0,breakArea:!0}},function(e,t){!function(){if(!Array.prototype.fill){var e=function(e){if(null==this)throw new TypeError("this is null or not defined");for(var t=Object(this),n=t.length>>>0,r=arguments[1],i=r>>0,a=i<0?Math.max(n+i,0):Math.min(i,n),o=arguments[2],u=void 0===o?n:o>>0,s=u<0?Math.max(n+u,0):Math.min(u,n);a<s;)t[a]=e,a++;return t};if(Object.defineProperty)try{Object.defineProperty(Array.prototype,"fill",{value:e,configurable:!0,enumerable:!1,writable:!0})}catch(t){}Array.prototype.fill||(Array.prototype.fill=e)}}()},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(141);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r=n(106),i=n(143),a=n(64),o=n(108);e.exports=function(e,t){return r(e)||i(e,t)||a(e,t)||o()}},function(e,t){e.exports=function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(r=(o=u.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(s){i=!0,a=s}finally{try{r||null==u.return||u.return()}finally{if(i)throw a}}return n}}},function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(D){s=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),o=new T(r||[]);return a._invoke=function(e,t,n){var r=f;return function(i,a){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw a;return P()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var u=O(o,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var s=c(e,t,n);if("normal"===s.type){if(r=n.done?p:d,s.arg===v)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=p,n.method="throw",n.arg=s.arg)}}}(e,n,o),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(D){return{type:"throw",arg:D}}}e.wrap=l;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",v={};function y(){}function m(){}function g(){}var b={};b[a]=function(){return this};var _=Object.getPrototypeOf,w=_&&_(_(C([])));w&&w!==n&&r.call(w,a)&&(b=w);var k=g.prototype=y.prototype=Object.create(b);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(i,a,o,u){var s=c(e[i],e,a);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"===typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,o,u)}),(function(e){n("throw",e,o,u)})):t.resolve(f).then((function(e){l.value=e,o(l)}),(function(e){return n("throw",e,o,u)}))}u(s.arg)}var i;this._invoke=function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}}function O(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=c(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function C(e){if(e){var n=e[a];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}return{next:P}}function P(){return{value:t,done:!0}}return m.prototype=k.constructor=g,g.constructor=m,m.displayName=s(g,u,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,s(e,u,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},S(x.prototype),x.prototype[o]=function(){return this},e.AsyncIterator=x,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new x(l(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},S(k),s(k,u,"Generator"),k[a]=function(){return this},k.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return u.type="throw",u.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],u=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,v):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=r}catch(i){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){var r=n(107);e.exports=function(e){if(Array.isArray(e))return r(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){function n(t){return"function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t){e.exports=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},function(e,t,n){var r=n(106),i=n(109),a=n(64),o=n(108);e.exports=function(e){return r(e)||i(e)||a(e)||o()}},function(e,t,n){var r=n(153);e.exports=function(e,t){if(null==e)return{};var n,i,a=r(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){e.exports=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(6),i=n(7),a=n(67),o=n(43),u=n(13),s=n(14),l=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=l(n(1)),f=l(n(21)),d=l(n(116)),h=l(n(41)),p=l(n(40)),v=n(19),y=function(e){u(n,e);var t=s(n);function n(e,i){var a;if(r(this,n),a=t.call(this,e,i),e instanceof n){var o=e;a._fields=o._fields,a._windowType=o._windowType,a._windowDuration=o._windowDuration,a._groupBy=o._groupBy,a._emitOn=o._emitOn}else{if(!(0,v.isPipeline)(e))throw new Error("Unknown arg to Filter constructor",e);var u=e;if(a._windowType=u.getWindowType(),a._windowDuration=u.getWindowDuration(),a._groupBy=u.getGroupBy(),a._emitOn=u.getEmitOn(),!c.default.has(i,"fields"))throw new Error("Aggregator: constructor needs an aggregator field mapping");if(c.default.forEach(i.fields,(function(e,t){if(!c.default.isString(t)&&!c.default.isArray(t))throw new Error("Aggregator: field of unknown type: "+t)})),"stream"===u.mode()&&(!u.getWindowType()||!u.getWindowDuration()))throw new Error("Unable to aggregate because no windowing strategy was specified in pipeline");a._fields=i.fields}return a._collector=new d.default({windowType:a._windowType,windowDuration:a._windowDuration,groupBy:a._groupBy,emitOn:a._emitOn},(function(e,t,n){return a.handleTrigger(e,t,n)})),a}return i(n,[{key:"clone",value:function(){return new n(this)}},{key:"handleTrigger",value:function(e,t){var n,r={};if(c.default.each(this._fields,(function(t,n){var i=Object.keys(t);if(1!==i.length)throw new Error("Fields should contain exactly one field",t);var a=i[0],o=t[a];r[n]=e.aggregate(o,a)})),"global"===t)n=new p.default(e.range(),r);else{var i="fixed"===this._windowType;n=new h.default(t,r,i)}this.emit(n)}},{key:"flush",value:function(){this._collector.flushCollections(),a(o(n.prototype),"flush",this).call(this)}},{key:"addEvent",value:function(e){this.hasObservers()&&this._collector.addEvent(e)}}]),n}(f.default);t.default=y},function(e,t,n){var r=n(43);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}},function(e,t,n){"use strict";var r=n(6),i=n(7),a=n(13),o=n(14),u=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=u(n(1)),l=u(n(20)),c=u(n(39)),f=u(n(41)),d=u(n(21)),h=u(n(56)),p=u(n(55)),v=u(n(40)),y=n(19),m=u(n(23)),g=function(e){a(n,e);var t=o(n);function n(e,i){var a;if(r(this,n),a=t.call(this,e,i),e instanceof n){var o=e;a._fieldSpec=o._fieldSpec,a._window=o._window,a._method=o._method,a._limit=o._limit}else{if(!(0,y.isPipeline)(e))throw new Error("Unknown arg to Aligner constructor",e);var u=i.fieldSpec,l=i.window,c=i.method,f=void 0===c?"hold":c,d=i.limit,h=void 0===d?null:d;a._fieldSpec=u,a._window=l,a._method=f,a._limit=h}if(a._previous=null,s.default.isString(a._fieldSpec)&&(a._fieldSpec=[a._fieldSpec]),!s.default.contains(["linear","hold"],a._method))throw new Error("Unknown method '".concat(a._method,"' passed to Aligner"));if(a._limit&&!Number.isInteger(a._limit))throw new Error("Limit passed to Aligner is not an integer");return a}return i(n,[{key:"clone",value:function(){return new n(this)}},{key:"isAligned",value:function(e){var t=c.default.getIndexString(this._window,e.timestamp());return this.getBoundaryTime(t)===e.timestamp().getTime()}},{key:"getBoundaries",value:function(e){if(c.default.getIndexString(this._window,this._previous.timestamp())!==c.default.getIndexString(this._window,e.timestamp())){var t=new p.default(this._previous.timestamp(),e.timestamp());return c.default.getIndexStringList(this._window,t).slice(1)}return[]}},{key:"getBoundaryTime",value:function(e){return new c.default(e).begin().getTime()}},{key:"interpolateHold",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new l.default.Map,i=this.getBoundaryTime(e);return this._fieldSpec.forEach((function(e){var i=m.default.fieldPathToArray(e);r=n?r.setIn(i,null):r.setIn(i,t._previous.get(i))})),new h.default(i,r)}},{key:"interpolateLinear",value:function(e,t){var n=this,r=new l.default.Map,i=this._previous.timestamp().getTime(),a=this.getBoundaryTime(e),o=(a-i)/(t.timestamp().getTime()-i);return this._fieldSpec.forEach((function(e){var i=m.default.fieldPathToArray(e),a=n._previous.get(i),u=t.get(i),l=null;s.default.isNumber(a)&&s.default.isNumber(u)?l=a+o*(u-a):console.warn("Path ".concat(i," contains a non-numeric value or does not exist")),r=r.setIn(i,l)})),new h.default(a,r)}},{key:"addEvent",value:function(e){var t=this;if(e instanceof v.default||e instanceof f.default)throw new Error("TimeRangeEvent and IndexedEvent series can not be aligned.");if(this.hasObservers()){if(!this._previous)return this._previous=e,void(this.isAligned(e)&&this.emit(e));var n=this.getBoundaries(e),r=n.length;n.forEach((function(n){var i;i=t._limit&&r>t._limit?t.interpolateHold(n,!0):"linear"===t._method?t.interpolateLinear(n,e):t.interpolateHold(n),t.emit(i)})),this._previous=e}}}]),n}(d.default);t.default=g},function(e,t,n){"use strict";var r=n(6),i=n(7),a=n(13),o=n(14),u=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=u(n(21)),l=n(19),c=function(e){a(n,e);var t=o(n);function n(e,i){var a;if(r(this,n),a=t.call(this,e,i),e instanceof n){var o=e;a._fieldSpecList=o._fieldSpecList,a._name=o._name,a._reducer=o._reducer,a._append=o._append}else{if(!(0,l.isPipeline)(e))throw new Error("Unknown arg to Collapser constructor",e);a._fieldSpecList=i.fieldSpecList,a._name=i.name,a._reducer=i.reducer,a._append=i.append}return a}return i(n,[{key:"clone",value:function(){return new n(this)}},{key:"addEvent",value:function(e){this.hasObservers()&&this.emit(e.collapse(this._fieldSpecList,this._name,this._reducer,this._append))}}]),n}(s.default);t.default=c},function(e,t,n){"use strict";var r=n(6),i=n(7),a=n(13),o=n(14),u=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=u(n(1)),l=u(n(21)),c=u(n(39)),f=u(n(56)),d=u(n(41)),h=u(n(55)),p=u(n(40)),v=n(19),y=u(n(23));function m(e,t){return e===t||t.prototype===e}var g=function(e){a(n,e);var t=o(n);function n(e,i){var a;if(r(this,n),a=t.call(this,e,i),e instanceof n){var o=e;a._convertTo=o._convertTo,a._duration=o._duration,a._durationString=o._durationString,a._alignment=o._alignment}else{if(!(0,v.isPipeline)(e))throw new Error("Unknown arg to Converter constructor",e);if(!s.default.has(i,"type"))throw new Error("Converter: constructor needs 'type' in options");if(m(f.default,i.type))a._convertTo=i.type;else{if(!m(p.default,i.type)&&!m(d.default,i.type))throw Error("Unable to interpret type argument passed to Converter constructor");a._convertTo=i.type,i.duration&&s.default.isString(i.duration)&&(a._duration=y.default.windowDuration(i.duration),a._durationString=i.duration)}a._alignment=i.alignment||"center"}return a}return i(n,[{key:"clone",value:function(){return new n(this)}},{key:"convertEvent",value:function(e){var t=this._convertTo;if(m(f.default,t))return e;if(m(p.default,t)){var n,r,i=this._alignment;if(!this._duration)throw new Error("Duration expected in converter");switch(i){case"front":n=e.timestamp(),r=new Date(+e.timestamp()+this._duration);break;case"center":n=new Date(+e.timestamp()-parseInt(this._duration/2,10)),r=new Date(+e.timestamp()+parseInt(this._duration/2,10));break;case"behind":r=e.timestamp(),n=new Date(+e.timestamp()-this._duration);break;default:throw new Error("Unknown alignment of converter")}return new t(new h.default([n,r]),e.data())}if(m(d.default,t)){var a=e.timestamp(),o=c.default.getIndexString(this._durationString,a);return new this._convertTo(o,e.data(),null)}}},{key:"convertTimeRangeEvent",value:function(e){var t=this._convertTo;if(m(p.default,t))return e;if(m(f.default,t)){var n,r=this._alignment,i=e.begin(),a=e.end();switch(r){case"lag":n=i;break;case"center":n=new Date(parseInt((i.getTime()+a.getTime())/2,10));break;case"lead":n=a}return new t(n,e.data())}if(m(d.default,t))throw new Error("Cannot convert TimeRangeEvent to an IndexedEvent")}},{key:"convertIndexedEvent",value:function(e){var t=this._convertTo;if(m(d.default,t))return e;if(m(f.default,t)){var n,r=this._alignment,i=e.begin(),a=e.end();switch(r){case"lag":n=i;break;case"center":n=new Date(parseInt((i.getTime()+a.getTime())/2,10));break;case"lead":n=a}return new t(n,e.data())}return m(p.default,t)?new t(e.timerange(),e.data()):void 0}},{key:"addEvent",value:function(e){if(this.hasObservers()){var t;if(e instanceof p.default)t=this.convertTimeRangeEvent(e);else if(e instanceof d.default)t=this.convertIndexedEvent(e);else{if(!(e instanceof f.default))throw new Error("Unknown event type received");t=this.convertEvent(e)}this.emit(t)}}}]),n}(l.default);t.default=g},function(e,t,n){"use strict";var r=n(6),i=n(7),a=n(13),o=n(14),u=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=u(n(1)),l=u(n(20)),c=u(n(21)),f=u(n(41)),d=u(n(40)),h=n(19),p=u(n(23)),v=function(e){a(n,e);var t=o(n);function n(e,i){var a;if(r(this,n),a=t.call(this,e,i),e instanceof n){var o=e;a._fieldSpec=o._fieldSpec,a._allowNegative=o._allowNegative}else{if(!(0,h.isPipeline)(e))throw new Error("Unknown arg to Derivator constructor",e);var u=i.fieldSpec,l=i.allowNegative;a._fieldSpec=u,a._allowNegative=l}return a._previous=null,s.default.isString(a._fieldSpec)?a._fieldSpec=[a._fieldSpec]:a._fieldSpec||(a._fieldSpec=["value"]),a}return i(n,[{key:"clone",value:function(){return new n(this)}},{key:"getRate",value:function(e){var t=this,n=new l.default.Map,r=this._previous.timestamp().getTime(),i=e.timestamp().getTime(),a=(i-r)/1e3;return this._fieldSpec.forEach((function(r){var i=p.default.fieldPathToArray(r),o=i.slice();o[o.length-1]+="_rate";var u=t._previous.get(i),l=e.get(i),c=null;s.default.isNumber(u)&&s.default.isNumber(l)?c=(l-u)/a:console.warn("Path ".concat(i," contains a non-numeric value or does not exist")),n=!1===t._allowNegative&&c<0?n.setIn(o,null):n.setIn(o,c)})),new d.default([r,i],n)}},{key:"addEvent",value:function(e){if(e instanceof d.default||e instanceof f.default)throw new Error("TimeRangeEvent and IndexedEvent series can not be aligned.");if(this.hasObservers()){if(!this._previous)return void(this._previous=e);var t=this.getRate(e);this.emit(t),this._previous=e}}}]),n}(c.default);t.default=v},function(e,t,n){"use strict";var r=n(86),i=n(53),a=n(6),o=n(7),u=n(67),s=n(43),l=n(13),c=n(14),f=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var d=f(n(1)),h=f(n(21)),p=n(19),v=f(n(23)),y=function(e){l(n,e);var t=c(n);function n(e,r){var i;if(a(this,n),i=t.call(this,e,r),e instanceof n){var o=e;i._fieldSpec=o._fieldSpec,i._method=o._method,i._limit=o._limit}else{if(!(0,p.isPipeline)(e))throw new Error("Unknown arg to Filler constructor",e);var u=r.fieldSpec,s=void 0===u?null:u,l=r.method,c=void 0===l?"zero":l,f=r.limit,h=void 0===f?null:f;i._fieldSpec=s,i._method=c,i._limit=h}if(i._previousEvent=null,i._keyCount={},i._lastGoodLinear=null,i._linearFillCache=[],!d.default.contains(["zero","pad","linear"],i._method))throw new Error("Unknown method ".concat(i._method," passed to Filler"));if(i._limit&&!d.default.isNumber(i._limit))throw new Error("Limit supplied to fill() should be a number");if(d.default.isString(i._fieldSpec)?i._fieldSpec=[i._fieldSpec]:d.default.isNull(i._fieldSpec)&&(i._fieldSpec=["value"]),"linear"===i._method&&i._fieldSpec.length>1)throw new Error("Linear fill takes a path to a single column");return i}return o(n,[{key:"clone",value:function(){return new n(this)}},{key:"constFill",value:function(e){var t,n=e,r=i(this._fieldSpec);try{for(r.s();!(t=r.n()).done;){var a=t.value,o=v.default.fieldPathToArray(a),u=o.join(":");if(d.default.has(this._keyCount,u)||(this._keyCount[u]=0),n.hasIn(o)){var s=n.getIn(o);if(v.default.isMissing(s)){if(this._limit&&this._keyCount[u]>=this._limit)continue;if("zero"===this._method)n=n.setIn(o,0),this._keyCount[u]++;else if("pad"===this._method){if(!d.default.isNull(this._previousEvent)){var l=this._previousEvent.data().getIn(o);v.default.isMissing(l)||(n=n.setIn(o,l),this._keyCount[u]++)}}else this._method}else this._keyCount[u]=0}}}catch(c){r.e(c)}finally{r.f()}return n}},{key:"isValidLinearEvent",value:function(e){var t=!0,n=v.default.fieldPathToArray(this._fieldSpec[0]);if(!e.data().hasIn(n))return console.warn("path does not exist: ".concat(n)),t;var r=e.data().getIn(n);return!v.default.isMissing(r)&&d.default.isNumber(r)||(t=!1),t}},{key:"linearFill",value:function(e){var t=this,n=this.isValidLinearEvent(e),i=[];if(n&&!this._linearFillCache.length)this._lastGoodLinear=e,i.push(e);else if(n||d.default.isNull(this._lastGoodLinear)){if(!n&&d.default.isNull(this._lastGoodLinear))i.push(e);else if(n&&this._linearFillCache){var a=[this._lastGoodLinear].concat(r(this._linearFillCache),[e]);this.interpolateEventList(a).slice(1).forEach((function(e){i.push(e)})),this._linearFillCache=[],this._lastGoodLinear=e}}else this._linearFillCache.push(e),!d.default.isNull(this._limit)&&this._linearFillCache.length>=this._limit&&(this._linearFillCache.forEach((function(e){t.emit(e)})),this._linearFillCache=[],this._lastGoodLinear=null);return i}},{key:"interpolateEventList",value:function(e){for(var t,n,r=[],i=v.default.fieldPathToArray(this._fieldSpec[0]),a=0;a<e.length;a++){var o=e[a];if(0!==a)if(a!==e.length-1){if(!v.default.isMissing(o.get(i))&&!d.default.isNumber(o.get(i)))return console.warn("linear requires numeric values - skipping this field_spec"),e;if(v.default.isMissing(o.get(i))){for(var u=a+1,s=null,l=null;d.default.isNull(s)&&u<e.length;){var c=e[u].get(i);v.default.isMissing(c)||(s=c,l=e[u].timestamp().getTime()),u++}if(!d.default.isNull(t)&&~d.default.isNull(s)){var f=o.timestamp().getTime();if(l===n){var h=(t+s)/2;r.push(o.setData(h))}else{var p=t+(f-n)/(l-n)*(s-t),y=o.data().setIn(i,p);r.push(o.setData(y))}}else r.push(o)}else r.push(o)}else r.push(o);else t=o.get(i),n=o.timestamp().getTime(),r.push(o)}return r}},{key:"addEvent",value:function(e){if(this.hasObservers()){var t=[],n=e.data();if("zero"===this._method||"pad"===this._method){var r=this.constFill(n),i=e.setData(r);t.push(i),this._previousEvent=i}else"linear"===this._method&&this.linearFill(e).forEach((function(e){t.push(e)}));for(var a=0,o=t;a<o.length;a++){var u=o[a];this.emit(u)}}}},{key:"flush",value:function(){if(this.hasObservers()&&"linear"==this._method){var e,t=i(this._linearFillCache);try{for(t.s();!(e=t.n()).done;){var r=e.value;this.emit(r)}}catch(a){t.e(a)}finally{t.f()}}u(s(n.prototype),"flush",this).call(this)}}]),n}(h.default);t.default=y},function(e,t,n){"use strict";var r=n(6),i=n(7),a=n(13),o=n(14),u=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=u(n(21)),l=n(19),c=function(e){a(n,e);var t=o(n);function n(e,i){var a;if(r(this,n),a=t.call(this,e,i),e instanceof n){var o=e;a._op=o._op}else{if(!(0,l.isPipeline)(e))throw new Error("Unknown arg to Filter constructor",e);a._op=i.op}return a}return i(n,[{key:"clone",value:function(){return new n(this)}},{key:"addEvent",value:function(e){this.hasObservers()&&this._op(e)&&this.emit(e)}}]),n}(s.default);t.default=c},function(e,t,n){"use strict";var r=n(6),i=n(7),a=n(13),o=n(14),u=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=u(n(21)),l=n(19),c=function(e){a(n,e);var t=o(n);function n(e,i){var a;if(r(this,n),a=t.call(this,e,i),e instanceof n){var o=e;a._op=o._op}else{if(!(0,l.isPipeline)(e))throw new Error("Unknown arg to Mapper constructor",e);a._op=i.op}return a}return i(n,[{key:"clone",value:function(){return new n(this)}},{key:"addEvent",value:function(e){this.hasObservers()&&this.emit(this._op(e))}}]),n}(s.default);t.default=c},function(e,t,n){"use strict";var r=n(6),i=n(7),a=n(13),o=n(14),u=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=u(n(1)),l=u(n(21)),c=u(n(32)),f=n(19),d=function(e){a(n,e);var t=o(n);function n(e,i){var a;if(r(this,n),a=t.call(this,e,i),e instanceof n){var o=e;a._by=o._by,a._fieldSpec=o._fieldSpec}else{if(!(0,f.isPipeline)(e))throw new Error("Unknown arg to Offset constructor",e);a._by=i.by||1,a._fieldSpec=i.fieldSpec}return a}return i(n,[{key:"clone",value:function(){return new n(this)}},{key:"addEvent",value:function(e){var t=this;if(this.hasObservers()){var n=c.default.selector(e,this._fieldSpec),r={};s.default.each(n.data().toJSON(),(function(e,n){var i=e+t._by;r[n]=i}));var i=e.setData(r);this.emit(i)}}}]),n}(l.default);t.default=d},function(e,t,n){"use strict";var r=n(6),i=n(7),a=n(13),o=n(14),u=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=u(n(21)),l=u(n(32)),c=n(19),f=function(e){a(n,e);var t=o(n);function n(e,i){var a;if(r(this,n),a=t.call(this,e,i),e instanceof n){var o=e;a._fieldSpec=o._fieldSpec}else{if(!(0,c.isPipeline)(e))throw new Error("Unknown arg to filter constructor",e);a._fieldSpec=i.fieldSpec}return a}return i(n,[{key:"clone",value:function(){return new n(this)}},{key:"addEvent",value:function(e){this.hasObservers()&&this.emit(l.default.selector(e,this._fieldSpec))}}]),n}(s.default);t.default=f},function(e,t,n){"use strict";var r=n(6),i=n(7),a=n(67),o=n(43),u=n(13),s=n(14),l=n(4);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c=l(n(1)),f=l(n(21)),d=l(n(39)),h=n(19),p=function(e){u(n,e);var t=s(n);function n(e,i){var a;if(r(this,n),a=t.call(this,e,i),e instanceof n){var o=e;a._limit=o._limit,a._windowType=o._windowType,a._windowDuration=o._windowDuration,a._groupBy=o._groupBy}else{if(!(0,h.isPipeline)(e))throw new Error("Unknown arg to Taker constructor",e);var u=e;a._limit=i.limit,a._windowType=u.getWindowType(),a._windowDuration=u.getWindowDuration(),a._groupBy=u.getGroupBy()}return a._count={},a}return i(n,[{key:"clone",value:function(){return new n(this)}},{key:"flush",value:function(){a(o(n.prototype),"flush",this).call(this)}},{key:"addEvent",value:function(e){if(this.hasObservers()){var t,n=e.timestamp(),r=this._windowType;t="fixed"===r?d.default.getIndexString(this._windowDuration,n):r;var i=this._groupBy(e),a=i?"".concat(t,"::").concat(i):t;c.default.has(this._count,a)||(this._count[a]=0),this._count[a]<this._limit&&this.emit(e),this._count[a]++}}}]),n}(f.default);t.default=p},function(e,t){e.exports=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";var r=n(1);"undefined"!=typeof Immutable&&(Immutable.installDevTools=install.bind(null,Immutable));var i=!1;e.exports=function(e){if("undefined"==typeof window)throw new Error("Can only install immutable-devtools in a browser environment.");!0!==i&&(window.devtoolsFormatters=window.devtoolsFormatters||[],window.devtoolsFormatters.push(r(e)),i=!0)}},function(e,t){"use strict";function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var r={style:"list-style-type: none; padding: 0; margin: 0 0 0 12px"},i={style:"color:#881391"};e.exports=function(e){function t(e,t){return["object",{object:e,config:t}]}function a(e){return e.size>0}function o(e){return["span",i,e+": "]}function u(e){var i=e.map((function(e,n){return["li",o(n),t(e)]})).toList().toJS();return["ol",r].concat(n(i))}function s(e){var i=e.map((function(e){return["li",t(e)]})).toJS();return["ol",r].concat(n(i))}function l(t){return t instanceof e.Record?d:Object.keys(h).filter((function(n){return e[n]["is"+n](t)})).map((function(e){return h[e]})).concat(f)[0]}var c={},f={header:function(e,n){return n===c?null:t(e,c)},hasBody:function(e,t){return!1},body:function(e,t){return null}},d={header:function(){return["span","Record"]},hasBody:a,body:function(e){var i=e.keySeq().map((function(n){return["li",o(n),t(e.get(n))]})).toJS();return["ol",r].concat(n(i))}},h={OrderedMap:{header:function(){return["span","OrderedMap"]},hasBody:a,body:u},OrderedSet:{header:function(){return["span","OrderedSet"]},hasBody:a,body:s},List:{header:function(){return["span","List"]},hasBody:a,body:u},Map:{header:function(){return["span","Map"]},hasBody:a,body:u},Set:{header:function(){return["span","Set"]},hasBody:a,body:s},Stack:{header:function(){return["span","Stack"]},hasBody:a,body:s}};return{header:function(e,t){return l(e).header(e,t)},hasBody:function(e,t){return l(e).hasBody(e,t)},body:function(e,t){return l(e).body(e,t)}}}}])},function(e,t,n){"use strict";n.r(t);t.default={schemeGroups:{sequential:["BuGn","BuPu","GnBu","OrRd","PuBu","PuBuGn","PuRd","RdPu","YlGn","YlGnBu","YlOrBr","YlOrRd"],singlehue:["Blues","Greens","Greys","Oranges","Purples","Reds"],diverging:["BrBG","PiYG","PRGn","PuOr","RdBu","RdGy","RdYlBu","RdYlGn","Spectral"],qualitative:["Accent","Dark2","Paired","Pastel1","Pastel2","Set1","Set2","Set3"]},YlGn:{3:["#f7fcb9","#addd8e","#31a354"],4:["#ffffcc","#c2e699","#78c679","#238443"],5:["#ffffcc","#c2e699","#78c679","#31a354","#006837"],6:["#ffffcc","#d9f0a3","#addd8e","#78c679","#31a354","#006837"],7:["#ffffcc","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#005a32"],8:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#005a32"],9:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"]},YlGnBu:{3:["#edf8b1","#7fcdbb","#2c7fb8"],4:["#ffffcc","#a1dab4","#41b6c4","#225ea8"],5:["#ffffcc","#a1dab4","#41b6c4","#2c7fb8","#253494"],6:["#ffffcc","#c7e9b4","#7fcdbb","#41b6c4","#2c7fb8","#253494"],7:["#ffffcc","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#0c2c84"],8:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#0c2c84"],9:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"]},GnBu:{3:["#e0f3db","#a8ddb5","#43a2ca"],4:["#f0f9e8","#bae4bc","#7bccc4","#2b8cbe"],5:["#f0f9e8","#bae4bc","#7bccc4","#43a2ca","#0868ac"],6:["#f0f9e8","#ccebc5","#a8ddb5","#7bccc4","#43a2ca","#0868ac"],7:["#f0f9e8","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#08589e"],8:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#08589e"],9:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"]},BuGn:{3:["#e5f5f9","#99d8c9","#2ca25f"],4:["#edf8fb","#b2e2e2","#66c2a4","#238b45"],5:["#edf8fb","#b2e2e2","#66c2a4","#2ca25f","#006d2c"],6:["#edf8fb","#ccece6","#99d8c9","#66c2a4","#2ca25f","#006d2c"],7:["#edf8fb","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#005824"],8:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#005824"],9:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"]},PuBuGn:{3:["#ece2f0","#a6bddb","#1c9099"],4:["#f6eff7","#bdc9e1","#67a9cf","#02818a"],5:["#f6eff7","#bdc9e1","#67a9cf","#1c9099","#016c59"],6:["#f6eff7","#d0d1e6","#a6bddb","#67a9cf","#1c9099","#016c59"],7:["#f6eff7","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016450"],8:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016450"],9:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"]},PuBu:{3:["#ece7f2","#a6bddb","#2b8cbe"],4:["#f1eef6","#bdc9e1","#74a9cf","#0570b0"],5:["#f1eef6","#bdc9e1","#74a9cf","#2b8cbe","#045a8d"],6:["#f1eef6","#d0d1e6","#a6bddb","#74a9cf","#2b8cbe","#045a8d"],7:["#f1eef6","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#034e7b"],8:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#034e7b"],9:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"]},BuPu:{3:["#e0ecf4","#9ebcda","#8856a7"],4:["#edf8fb","#b3cde3","#8c96c6","#88419d"],5:["#edf8fb","#b3cde3","#8c96c6","#8856a7","#810f7c"],6:["#edf8fb","#bfd3e6","#9ebcda","#8c96c6","#8856a7","#810f7c"],7:["#edf8fb","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#6e016b"],8:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#6e016b"],9:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"]},RdPu:{3:["#fde0dd","#fa9fb5","#c51b8a"],4:["#feebe2","#fbb4b9","#f768a1","#ae017e"],5:["#feebe2","#fbb4b9","#f768a1","#c51b8a","#7a0177"],6:["#feebe2","#fcc5c0","#fa9fb5","#f768a1","#c51b8a","#7a0177"],7:["#feebe2","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177"],8:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177"],9:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"]},PuRd:{3:["#e7e1ef","#c994c7","#dd1c77"],4:["#f1eef6","#d7b5d8","#df65b0","#ce1256"],5:["#f1eef6","#d7b5d8","#df65b0","#dd1c77","#980043"],6:["#f1eef6","#d4b9da","#c994c7","#df65b0","#dd1c77","#980043"],7:["#f1eef6","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#91003f"],8:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#91003f"],9:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"]},OrRd:{3:["#fee8c8","#fdbb84","#e34a33"],4:["#fef0d9","#fdcc8a","#fc8d59","#d7301f"],5:["#fef0d9","#fdcc8a","#fc8d59","#e34a33","#b30000"],6:["#fef0d9","#fdd49e","#fdbb84","#fc8d59","#e34a33","#b30000"],7:["#fef0d9","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#990000"],8:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#990000"],9:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"]},YlOrRd:{3:["#ffeda0","#feb24c","#f03b20"],4:["#ffffb2","#fecc5c","#fd8d3c","#e31a1c"],5:["#ffffb2","#fecc5c","#fd8d3c","#f03b20","#bd0026"],6:["#ffffb2","#fed976","#feb24c","#fd8d3c","#f03b20","#bd0026"],7:["#ffffb2","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#b10026"],8:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#b10026"],9:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"]},YlOrBr:{3:["#fff7bc","#fec44f","#d95f0e"],4:["#ffffd4","#fed98e","#fe9929","#cc4c02"],5:["#ffffd4","#fed98e","#fe9929","#d95f0e","#993404"],6:["#ffffd4","#fee391","#fec44f","#fe9929","#d95f0e","#993404"],7:["#ffffd4","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#8c2d04"],8:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#8c2d04"],9:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"]},Purples:{3:["#efedf5","#bcbddc","#756bb1"],4:["#f2f0f7","#cbc9e2","#9e9ac8","#6a51a3"],5:["#f2f0f7","#cbc9e2","#9e9ac8","#756bb1","#54278f"],6:["#f2f0f7","#dadaeb","#bcbddc","#9e9ac8","#756bb1","#54278f"],7:["#f2f0f7","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#4a1486"],8:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#4a1486"],9:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"]},Blues:{3:["#deebf7","#9ecae1","#3182bd"],4:["#eff3ff","#bdd7e7","#6baed6","#2171b5"],5:["#eff3ff","#bdd7e7","#6baed6","#3182bd","#08519c"],6:["#eff3ff","#c6dbef","#9ecae1","#6baed6","#3182bd","#08519c"],7:["#eff3ff","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#084594"],8:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#084594"],9:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"]},Greens:{3:["#e5f5e0","#a1d99b","#31a354"],4:["#edf8e9","#bae4b3","#74c476","#238b45"],5:["#edf8e9","#bae4b3","#74c476","#31a354","#006d2c"],6:["#edf8e9","#c7e9c0","#a1d99b","#74c476","#31a354","#006d2c"],7:["#edf8e9","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#005a32"],8:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#005a32"],9:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"]},Oranges:{3:["#fee6ce","#fdae6b","#e6550d"],4:["#feedde","#fdbe85","#fd8d3c","#d94701"],5:["#feedde","#fdbe85","#fd8d3c","#e6550d","#a63603"],6:["#feedde","#fdd0a2","#fdae6b","#fd8d3c","#e6550d","#a63603"],7:["#feedde","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#8c2d04"],8:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#8c2d04"],9:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"]},Reds:{3:["#fee0d2","#fc9272","#de2d26"],4:["#fee5d9","#fcae91","#fb6a4a","#cb181d"],5:["#fee5d9","#fcae91","#fb6a4a","#de2d26","#a50f15"],6:["#fee5d9","#fcbba1","#fc9272","#fb6a4a","#de2d26","#a50f15"],7:["#fee5d9","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#99000d"],8:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#99000d"],9:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"]},Greys:{3:["#f0f0f0","#bdbdbd","#636363"],4:["#f7f7f7","#cccccc","#969696","#525252"],5:["#f7f7f7","#cccccc","#969696","#636363","#252525"],6:["#f7f7f7","#d9d9d9","#bdbdbd","#969696","#636363","#252525"],7:["#f7f7f7","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525"],8:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525"],9:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"]},PuOr:{3:["#f1a340","#f7f7f7","#998ec3"],4:["#e66101","#fdb863","#b2abd2","#5e3c99"],5:["#e66101","#fdb863","#f7f7f7","#b2abd2","#5e3c99"],6:["#b35806","#f1a340","#fee0b6","#d8daeb","#998ec3","#542788"],7:["#b35806","#f1a340","#fee0b6","#f7f7f7","#d8daeb","#998ec3","#542788"],8:["#b35806","#e08214","#fdb863","#fee0b6","#d8daeb","#b2abd2","#8073ac","#542788"],9:["#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788"],10:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],11:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"]},BrBG:{3:["#d8b365","#f5f5f5","#5ab4ac"],4:["#a6611a","#dfc27d","#80cdc1","#018571"],5:["#a6611a","#dfc27d","#f5f5f5","#80cdc1","#018571"],6:["#8c510a","#d8b365","#f6e8c3","#c7eae5","#5ab4ac","#01665e"],7:["#8c510a","#d8b365","#f6e8c3","#f5f5f5","#c7eae5","#5ab4ac","#01665e"],8:["#8c510a","#bf812d","#dfc27d","#f6e8c3","#c7eae5","#80cdc1","#35978f","#01665e"],9:["#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e"],10:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],11:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"]},PRGn:{3:["#af8dc3","#f7f7f7","#7fbf7b"],4:["#7b3294","#c2a5cf","#a6dba0","#008837"],5:["#7b3294","#c2a5cf","#f7f7f7","#a6dba0","#008837"],6:["#762a83","#af8dc3","#e7d4e8","#d9f0d3","#7fbf7b","#1b7837"],7:["#762a83","#af8dc3","#e7d4e8","#f7f7f7","#d9f0d3","#7fbf7b","#1b7837"],8:["#762a83","#9970ab","#c2a5cf","#e7d4e8","#d9f0d3","#a6dba0","#5aae61","#1b7837"],9:["#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837"],10:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],11:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"]},PiYG:{3:["#e9a3c9","#f7f7f7","#a1d76a"],4:["#d01c8b","#f1b6da","#b8e186","#4dac26"],5:["#d01c8b","#f1b6da","#f7f7f7","#b8e186","#4dac26"],6:["#c51b7d","#e9a3c9","#fde0ef","#e6f5d0","#a1d76a","#4d9221"],7:["#c51b7d","#e9a3c9","#fde0ef","#f7f7f7","#e6f5d0","#a1d76a","#4d9221"],8:["#c51b7d","#de77ae","#f1b6da","#fde0ef","#e6f5d0","#b8e186","#7fbc41","#4d9221"],9:["#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221"],10:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],11:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"]},RdBu:{3:["#ef8a62","#f7f7f7","#67a9cf"],4:["#ca0020","#f4a582","#92c5de","#0571b0"],5:["#ca0020","#f4a582","#f7f7f7","#92c5de","#0571b0"],6:["#b2182b","#ef8a62","#fddbc7","#d1e5f0","#67a9cf","#2166ac"],7:["#b2182b","#ef8a62","#fddbc7","#f7f7f7","#d1e5f0","#67a9cf","#2166ac"],8:["#b2182b","#d6604d","#f4a582","#fddbc7","#d1e5f0","#92c5de","#4393c3","#2166ac"],9:["#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac"],10:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],11:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"]},RdGy:{3:["#ef8a62","#ffffff","#999999"],4:["#ca0020","#f4a582","#bababa","#404040"],5:["#ca0020","#f4a582","#ffffff","#bababa","#404040"],6:["#b2182b","#ef8a62","#fddbc7","#e0e0e0","#999999","#4d4d4d"],7:["#b2182b","#ef8a62","#fddbc7","#ffffff","#e0e0e0","#999999","#4d4d4d"],8:["#b2182b","#d6604d","#f4a582","#fddbc7","#e0e0e0","#bababa","#878787","#4d4d4d"],9:["#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d"],10:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],11:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"]},RdYlBu:{3:["#fc8d59","#ffffbf","#91bfdb"],4:["#d7191c","#fdae61","#abd9e9","#2c7bb6"],5:["#d7191c","#fdae61","#ffffbf","#abd9e9","#2c7bb6"],6:["#d73027","#fc8d59","#fee090","#e0f3f8","#91bfdb","#4575b4"],7:["#d73027","#fc8d59","#fee090","#ffffbf","#e0f3f8","#91bfdb","#4575b4"],8:["#d73027","#f46d43","#fdae61","#fee090","#e0f3f8","#abd9e9","#74add1","#4575b4"],9:["#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4"],10:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],11:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"]},Spectral:{3:["#fc8d59","#ffffbf","#99d594"],4:["#d7191c","#fdae61","#abdda4","#2b83ba"],5:["#d7191c","#fdae61","#ffffbf","#abdda4","#2b83ba"],6:["#d53e4f","#fc8d59","#fee08b","#e6f598","#99d594","#3288bd"],7:["#d53e4f","#fc8d59","#fee08b","#ffffbf","#e6f598","#99d594","#3288bd"],8:["#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd"],9:["#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd"],10:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],11:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"]},RdYlGn:{3:["#fc8d59","#ffffbf","#91cf60"],4:["#d7191c","#fdae61","#a6d96a","#1a9641"],5:["#d7191c","#fdae61","#ffffbf","#a6d96a","#1a9641"],6:["#d73027","#fc8d59","#fee08b","#d9ef8b","#91cf60","#1a9850"],7:["#d73027","#fc8d59","#fee08b","#ffffbf","#d9ef8b","#91cf60","#1a9850"],8:["#d73027","#f46d43","#fdae61","#fee08b","#d9ef8b","#a6d96a","#66bd63","#1a9850"],9:["#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850"],10:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],11:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"]},Accent:{3:["#7fc97f","#beaed4","#fdc086"],4:["#7fc97f","#beaed4","#fdc086","#ffff99"],5:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0"],6:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f"],7:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17"],8:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"]},Dark2:{3:["#1b9e77","#d95f02","#7570b3"],4:["#1b9e77","#d95f02","#7570b3","#e7298a"],5:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e"],6:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02"],7:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d"],8:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"]},Paired:{3:["#a6cee3","#1f78b4","#b2df8a"],4:["#a6cee3","#1f78b4","#b2df8a","#33a02c"],5:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99"],6:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c"],7:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f"],8:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00"],9:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6"],10:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a"],11:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99"],12:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"]},Pastel1:{3:["#fbb4ae","#b3cde3","#ccebc5"],4:["#fbb4ae","#b3cde3","#ccebc5","#decbe4"],5:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6"],6:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc"],7:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd"],8:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec"],9:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},Pastel2:{3:["#b3e2cd","#fdcdac","#cbd5e8"],4:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4"],5:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9"],6:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae"],7:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc"],8:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"]},Set1:{3:["#e41a1c","#377eb8","#4daf4a"],4:["#e41a1c","#377eb8","#4daf4a","#984ea3"],5:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00"],6:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33"],7:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628"],8:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf"],9:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"]},Set2:{3:["#66c2a5","#fc8d62","#8da0cb"],4:["#66c2a5","#fc8d62","#8da0cb","#e78ac3"],5:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854"],6:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f"],7:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494"],8:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"]},Set3:{3:["#8dd3c7","#ffffb3","#bebada"],4:["#8dd3c7","#ffffb3","#bebada","#fb8072"],5:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3"],6:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462"],7:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69"],8:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5"],9:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9"],10:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd"],11:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5"],12:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=p(n(1)),o=p(n(15)),u=p(n(2)),s=n(73),l=p(n(12)),c=n(18),f=p(n(90)),d=n(33),h=n(27);function p(e){return e&&e.__esModule?e:{default:e}}var v={fill:"steelblue",stroke:"none"},y={fill:"grey",stroke:"none"},m=[{normal:i({},v,{opacity:.2}),highlighted:i({},v,{opacity:.3}),selected:i({},v,{opacity:.3}),muted:i({},y,{opacity:.1})},{normal:i({},v,{opacity:.5}),highlighted:i({},v,{opacity:.6}),selected:i({},v,{opacity:.6}),muted:i({},y,{opacity:.2})},{normal:i({},v,{opacity:.9}),highlighted:i({},v,{opacity:1}),selected:i({},v,{opacity:1}),muted:i({},y,{opacity:.2})}],g={size:"5m",reducers:{outer:[(0,c.min)(),(0,c.max)()],inner:[(0,c.percentile)(25),(0,c.percentile)(75)],center:(0,c.median)()}};function b(e,t){return e.map((function(e){var n=e.get(t),r={};switch(n.length){case 1:r.center=n[0];break;case 2:r.innerMin=n[0],r.innerMax=n[1];break;case 3:r.innerMin=n[0],r.center=n[1],r.innerMax=n[2];break;case 4:r.outerMin=n[0],r.innerMin=n[1],r.innerMax=n[2],r.outerMax=n[3];break;case 5:r.outerMin=n[0],r.innerMin=n[1],r.center=n[2],r.innerMax=n[3],r.outerMax=n[4];break;default:console.error("Tried to make boxchart from invalid array")}return new c.IndexedEvent(e.index(),r)}))}function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g,r=n.size,i=n.reducers,a=i.inner,o=i.outer,u=i.center;function s(e,t){var n={};return n[e]=t,n}var l={};return a&&(l.innerMin=s(t,a[0]),l.innerMax=s(t,a[1])),o&&(l.outerMin=s(t,o[0]),l.outerMax=s(t,o[1])),u&&(l.center=s(t,u)),e.fixedWindowRollup({windowSize:r,aggregation:l})}var w=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e.series._collection._type===c.TimeEvent?n.series=_(e.series,e.column,e.aggregation):n.series=b(e.series,e.column),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentWillReceiveProps",value:function(e){var t=e.aggregation,n=!1;a.default.isUndefined(t)!==a.default.isUndefined(this.props.aggregation)&&(n=!0),t&&this.props.aggregation&&t.size!==this.props.aggregation.size&&(n=!0),n&&(this.series=_(e.series,e.column,e.aggregation))}},{key:"shouldComponentUpdate",value:function(e){var t=e.series,n=this.props.series,r=e.width,i=e.timeScale,o=e.yScale,u=e.column,s=e.style,l=e.aggregation,f=e.highlighted,d=e.selected,p=this.props.width!==r,v=(0,h.scaleAsString)(this.props.timeScale)!==(0,h.scaleAsString)(i),y=this.props.yScale!==o,m=this.props.column!==u,g=JSON.stringify(this.props.style)!==JSON.stringify(s),w=this.props.highlighted!==f,k=this.props.selected!==d,S=!1;a.default.isUndefined(l)!==a.default.isUndefined(this.props.aggregation)&&(S=!0),l&&this.props.aggregation&&l.size!==this.props.aggregation.size&&(S=!0);var x=!1;return(x=n.size()!==t.size()||!c.TimeSeries.is(n,t))&&(e.series._collection._type===c.TimeEvent?this.series=_(e.series,e.column,e.aggregation):this.series=b(e.series,e.column)),x||v||p||m||g||y||S||w||k}},{key:"handleHover",value:function(e,t){this.props.onHighlightChange&&this.props.onHighlightChange(t)}},{key:"handleHoverLeave",value:function(){this.props.onHighlightChange&&this.props.onHighlightChange(null)}},{key:"handleClick",value:function(e,t){this.props.onSelectionChange&&this.props.onSelectionChange(t),e.stopPropagation()}},{key:"providedStyleArray",value:function(e){var t={};return this.props.style&&(this.props.style instanceof d.Styler?t=this.props.style.boxChartStyle()[e]:a.default.isFunction(this.props.style)?t=this.props.style(e):a.default.isObject(this.props.style)&&(t=this.props.style?this.props.style[e]:m)),t}},{key:"style",value:function(e,t,n){var r=void 0;if(this.providedStyle||(this.providedStyle=this.providedStyleArray(this.props.column)),!a.default.isNull(this.providedStyle)&&(!a.default.isArray(this.providedStyle)||3!==this.providedStyle.length))return console.warn("Provided style to BandChart should be an array of 3 objects"),m;var i=this.props.highlighted&&c.Event.is(this.props.highlighted,t),u=this.props.selected&&c.Event.is(this.props.selected,t);return this.props.selected?u?(this.selectedStyle&&this.selectedStyle[n]||(this.selectedStyle||(this.selectedStyle=[]),this.selectedStyle[n]=(0,o.default)(!0,m[n].selected,this.providedStyle[n].selected?this.providedStyle[n].selected:{})),r=this.selectedStyle[n]):i?(this.highlightedStyle&&this.highlightedStyle[n]||(this.highlightedStyle||(this.highlightedStyle=[]),this.highlightedStyle[n]=(0,o.default)(!0,m[n].highlighted,this.providedStyle[n].highlighted?this.providedStyle[n].highlighted:{})),r=this.highlightedStyle[n]):(this.mutedStyle||(this.mutedStyle=[]),this.mutedStyle[n]||(this.mutedStyle[n]=(0,o.default)(!0,m[n].muted,this.providedStyle[n].muted?this.providedStyle[n].muted:{})),r=this.mutedStyle[n]):i?r=(0,o.default)(!0,m[n].highlighted,this.providedStyle[n].highlighted?this.providedStyle[n].highlighted:{}):(this.normalStyle||(this.normalStyle=[]),this.normalStyle[n]||(this.normalStyle[n]=(0,o.default)(!0,m[n].normal,this.providedStyle[n].normal?this.providedStyle[n].normal:{})),r=this.normalStyle[n]),r}},{key:"renderAreas",value:function(){var e=this,t=this.props.column,n=[],r=[];r[0]=this.style(t,event,0),r[1]=this.style(t,event,1),r[2]=this.style(t,event,2);var i=(0,s.area)().curve(f.default[this.props.interpolation]).x((function(e){return e.x0})).y0((function(e){return e.y0})).y1((function(e){return e.y1})),o=this.series.columns(),l=!0,c=!0;if((a.default.has(o,"innerMin")||a.default.has(o,"innerMax"))&&(l=!1),(a.default.has(o,"outerMin")||a.default.has(o,"outerMax"))&&(c=!1),c){var d=0;l||(d+=1);for(var h=[],p=0;p<this.series.size();p+=1){var v=this.series.at(p),y=new Date(v.begin().getTime()+(v.end().getTime()-v.begin().getTime())/2);h.push({x0:this.props.timeScale(y),y0:this.props.yScale(v.get("outerMin")),y1:this.props.yScale(v.get("outerMax"))})}var m=i(h);n.push(u.default.createElement("g",{key:"area-outer"},u.default.createElement("path",{d:m,style:r[d],onClick:function(n){return e.handleClick(n,t)},onMouseLeave:function(){return e.handleHoverLeave()},onMouseMove:function(n){return e.handleHover(n,t)}})))}if(l){var g=0;l||(g+=1);for(var b=[],_=0;_<this.series.size();_+=1){var w=this.series.at(_),k=new Date(w.begin().getTime()+(w.end().getTime()-w.begin().getTime())/2);b.push({x0:this.props.timeScale(k),y0:this.props.yScale(w.get("innerMin")),y1:this.props.yScale(w.get("innerMax"))})}var S=i(b);n.push(u.default.createElement("g",{key:"area-inner"},u.default.createElement("path",{d:S,style:r[g],onClick:function(n){return e.handleClick(n,t)},onMouseLeave:function(){return e.handleHoverLeave()},onMouseMove:function(n){return e.handleHover(n,t)}})))}return u.default.createElement("g",null,n)}},{key:"render",value:function(){return u.default.createElement("g",null,this.renderAreas())}}]),t}(u.default.Component);t.default=w,w.propTypes={series:l.default.instanceOf(c.TimeSeries).isRequired,column:l.default.string,aggregation:l.default.shape({size:l.default.string,reducers:l.default.shape({inner:l.default.arrayOf(l.default.func),outer:l.default.arrayOf(l.default.func),center:l.default.func})}),style:l.default.oneOfType([l.default.object,l.default.func,l.default.instanceOf(d.Styler)]),infoStyle:l.default.object,infoWidth:l.default.number,infoHeight:l.default.number,info:l.default.arrayOf(l.default.shape({label:l.default.string,value:l.default.string})),innerSpacing:l.default.number,outerSpacing:l.default.number,innerSize:l.default.number,outerSize:l.default.number,selected:l.default.instanceOf(c.IndexedEvent),highlighted:l.default.instanceOf(c.IndexedEvent),onSelectionChange:l.default.func,onHighlightChange:l.default.func,timeScale:l.default.func,yScale:l.default.func,width:l.default.number},w.defaultProps={column:"value",innerSpacing:1,outerSpacing:2,infoStyle:{stroke:"#999",fill:"white",opacity:.9,pointerEvents:"none"},stemStyle:{stroke:"#999",cursor:"crosshair",pointerEvents:"none"},markerStyle:{fill:"#999"},markerRadius:2,infoWidth:90,infoHeight:30}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=d(n(1)),o=d(n(15)),u=d(n(2)),s=d(n(12)),l=n(18),c=d(n(68)),f=n(33);function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var v={normal:{fill:"steelblue",opacity:.8},highlighted:{fill:"steelblue",opacity:1},selected:{fill:"steelblue",opacity:1},muted:{fill:"steelblue",opacity:.4}},y=function(e){function t(){return h(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"handleHover",value:function(e,t,n){var r={event:t,column:n};this.props.onHighlightChange&&this.props.onHighlightChange(r)}},{key:"handleHoverLeave",value:function(){this.props.onHighlightChange&&this.props.onHighlightChange(null)}},{key:"handleClick",value:function(e,t,n){var r={event:t,column:n};this.props.onSelectionChange&&this.props.onSelectionChange(r),e.stopPropagation()}},{key:"providedStyleMap",value:function(e,t){var n={};return this.props.style&&(this.props.style instanceof f.Styler?n=this.props.style.barChartStyle()[e]:a.default.isFunction(this.props.style)?n=this.props.style(e,t):a.default.isObject(this.props.style)&&(n=this.props.style?this.props.style[e]:v)),n}},{key:"style",value:function(e,t){var n=void 0,r=this.providedStyleMap(e,t),i=this.props.highlighted&&(e===this.props.highlighted.column&&l.Event.is(this.props.highlighted.event,t)||this.props.highlightEntireEvent&&l.Event.is(this.props.highlighted.event,t)),a=this.props.selected&&e===this.props.selected.column&&l.Event.is(this.props.selected.event,t);return n=this.props.selected?a?(0,o.default)(!0,v.selected,r.selected?r.selected:{}):i?(0,o.default)(!0,v.highlighted,r.highlighted?r.highlighted:{}):(0,o.default)(!0,v.muted,r.muted?r.muted:{}):i?(0,o.default)(!0,v.highlighted,r.highlighted?r.highlighted:{}):(0,o.default)(!0,v.normal,r.normal?r.normal:{}),n}},{key:"renderBars",value:function(){var e=this,t=+this.props.spacing,n=+this.props.offset,i=this.props.minBarHeight,a=this.props.series,o=this.props.timeScale,s=this.props.yScale,f=this.props.columns||["value"],d=[],h=void 0,p=!0,v=!1,y=void 0;try{for(var m,g=function(){var p=m.value,v=p.begin(),y=p.end(),g=o(v)+t,b=o(y)-t,_=void 0;(_=e.props.size?e.props.size:b-g)<1&&(_=1);var w=void 0;if(e.props.size){var k=o(v)+(o(y)-o(v))/2;w=k-e.props.size/2+n}else w=o(v)+t+n;var S=s(0),x=S,O=S;if(f){var M=!0,E=!1,T=void 0;try{for(var C,P=function(){var t=C.value,o=p.index(),f=a.name()+"-"+o+"-"+t,v=p.get(t),y=e.style(t,p),m=s(0)-s(v),g=m>=0;m=Math.max(Math.abs(m),i);var b=g?x-m:O;if(0===m)return"break";e.props.highlighted&&t===e.props.highlighted.column&&l.Event.is(e.props.highlighted.event,p)&&e.props.info&&(h=u.default.createElement(c.default,r({},e.props,{event:p,column:t,offsetX:n,offsetY:S-(g?x:O)})));var k=r({key:f},{x:w,y:b,width:_,height:m},{style:y});e.props.onSelectionChange&&(k.onClick=function(n){return e.handleClick(n,p,t)}),e.props.onHighlightChange&&(k.onMouseMove=function(n){return e.handleHover(n,p,t)},k.onMouseLeave=function(){return e.handleHoverLeave()}),d.push(u.default.createElement("rect",k)),g?x-=m:O+=m},D=f[Symbol.iterator]();!(M=(C=D.next()).done);M=!0){if("break"===P())break}}catch(j){E=!0,T=j}finally{try{!M&&D.return&&D.return()}finally{if(E)throw T}}}},b=a.events()[Symbol.iterator]();!(p=(m=b.next()).done);p=!0)g()}catch(_){v=!0,y=_}finally{try{!p&&b.return&&b.return()}finally{if(v)throw y}}return u.default.createElement("g",null,d,h)}},{key:"render",value:function(){return u.default.createElement("g",null,this.renderBars())}}]),t}(u.default.Component);t.default=y,y.propTypes={visible:s.default.bool,series:s.default.instanceOf(l.TimeSeries).isRequired,spacing:s.default.number,offset:s.default.number,minBarHeight:s.default.number,columns:s.default.arrayOf(s.default.string),highlightEntireEvent:s.default.bool,style:s.default.oneOfType([s.default.object,s.default.func,s.default.instanceOf(f.Styler)]),info:s.default.arrayOf(s.default.shape({label:s.default.string,value:s.default.string})),infoStyle:s.default.object,infoWidth:s.default.number,infoHeight:s.default.number,infoOffsetY:s.default.number,infoTimeFormat:s.default.oneOfType([s.default.string,s.default.func]),markerRadius:s.default.number,markerStyle:s.default.object,size:s.default.number,selected:s.default.shape({event:s.default.instanceOf(l.IndexedEvent),column:s.default.string}),onSelectionChange:s.default.func,highlighted:s.default.shape({event:s.default.instanceOf(l.IndexedEvent),column:s.default.string}),onHighlightChange:s.default.func,timeScale:s.default.func,yScale:s.default.func},y.defaultProps={visible:!0,columns:["value"],highlightEntireEvent:!1,spacing:1,offset:0,minBarHeight:1,infoStyle:{stroke:"#999",fill:"white",opacity:.9,pointerEvents:"none"},stemStyle:{stroke:"#999",cursor:"crosshair",pointerEvents:"none"},markerStyle:{fill:"#999"},markerRadius:2,infoWidth:90,infoHeight:30,infoOffsetY:20}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=l(n(15)),o=l(n(2)),u=l(n(12)),s=l(n(1));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var d={label:{fill:"#8B7E7E",fontWeight:100,fontSize:11,pointerEvents:"none"},line:{stroke:"#626262",strokeWidth:1,strokeDasharray:"5,3",pointerEvents:"none"}},h=function(e){function t(){return c(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){var e=this.props,t=e.vposition,n=e.yScale,i=e.value,u=e.position,l=e.style,c=e.width;if(!n||s.default.isUndefined(i))return null;var f=n(i),h="translate(0 "+f+")",p=void 0,v=void 0,y=[],m="auto"===t&&f<15||"below"===t,g=m?2:-2,b=m?"hanging":"auto";"left"===u&&(p="start",v=5),"right"===u&&(p="end",v=c-5),y.push("0 0"),y.push(c+" 0");var _=y.join(" "),w=r({},d.label,{alignmentBaseline:b}),k=(0,a.default)(!0,w,l.label?l.label:{}),S=(0,a.default)(!0,d.line,l.line?l.line:{});return o.default.createElement("g",{className:"baseline",transform:h},o.default.createElement("polyline",{points:_,style:S}),o.default.createElement("text",{style:k,x:v,y:g,textAnchor:p},this.props.label))}}]),t}(o.default.Component);t.default=h,h.defaultProps={visible:!0,value:0,label:"",position:"left",vposition:"auto",style:d},h.propTypes={visible:u.default.bool,axis:u.default.string.isRequired,style:u.default.shape({label:u.default.object,line:u.default.object}),value:u.default.number,label:u.default.string,position:u.default.oneOf(["left","right"]),vposition:u.default.oneOf(["above","below","auto"]),yScale:u.default.func,width:u.default.number}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=h(n(1)),o=h(n(15)),u=h(n(2)),s=h(n(12)),l=n(18),c=h(n(68)),f=n(33),d=n(27);function h(e){return e&&e.__esModule?e:{default:e}}var p={fill:"steelblue",stroke:"none"},v={fill:"grey",stroke:"none"},y=[{normal:i({},p,{opacity:.2}),highlighted:i({},p,{opacity:.3}),selected:i({},p,{opacity:.3}),muted:i({},v,{opacity:.1})},{normal:i({},p,{opacity:.5}),highlighted:i({},p,{opacity:.6}),selected:i({},p,{opacity:.6}),muted:i({},v,{opacity:.2})},{normal:i({},p,{opacity:.9}),highlighted:i({},p,{opacity:1}),selected:i({},p,{opacity:1}),muted:i({},v,{opacity:.2})}],m={size:"5m",reducers:{outer:[(0,l.min)(),(0,l.max)()],inner:[(0,l.percentile)(25),(0,l.percentile)(75)],center:(0,l.median)()}};function g(e,t){return e.map((function(e){var n=e.get(t),r={};switch(n.length){case 1:r.center=n[0];break;case 2:r.innerMin=n[0],r.innerMax=n[1];break;case 3:r.innerMin=n[0],r.center=n[1],r.innerMax=n[2];break;case 4:r.outerMin=n[0],r.innerMin=n[1],r.innerMax=n[2],r.outerMax=n[3];break;case 5:r.outerMin=n[0],r.innerMin=n[1],r.center=n[2],r.innerMax=n[3],r.outerMax=n[4];break;default:console.error("Tried to make boxchart from invalid array")}return new l.IndexedEvent(e.index(),r)}))}function b(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m,r=n.size,i=n.reducers,a=i.inner,o=i.outer,u=i.center;function s(e,t){var n={};return n[e]=t,n}var l={};a&&(l.innerMin=s(t,a[0]),l.innerMax=s(t,a[1])),o&&(l.outerMin=s(t,o[0]),l.outerMax=s(t,o[1])),u&&(l.center=s(t,u));var c=e.fixedWindowRollup({windowSize:r,aggregation:l});return c}var _=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e.series._collection._type===l.TimeEvent?n.series=b(e.series,e.column,e.aggregation):n.series=g(e.series,e.column),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentWillReceiveProps",value:function(e){var t=e.aggregation,n=!1;a.default.isUndefined(t)!==a.default.isUndefined(this.props.aggregation)&&(n=!0),t&&this.props.aggregation&&t.size!==this.props.aggregation.size&&(n=!0),n&&(this.series=b(e.series,e.column,e.aggregation))}},{key:"shouldComponentUpdate",value:function(e){var t=e.series,n=this.props.series,r=e.width,i=e.timeScale,o=e.yScale,u=e.column,s=e.style,c=e.aggregation,f=e.highlighted,h=e.selected,p=this.props.width!==r,v=(0,d.scaleAsString)(this.props.timeScale)!==(0,d.scaleAsString)(i),y=this.props.yScale!==o,m=this.props.column!==u,_=JSON.stringify(this.props.style)!==JSON.stringify(s),w=this.props.highlighted!==f,k=this.props.selected!==h,S=!1;a.default.isUndefined(c)!==a.default.isUndefined(this.props.aggregation)&&(S=!0),c&&this.props.aggregation&&c.size!==this.props.aggregation.size&&(S=!0);var x=!1;return(x=n.size()!==t.size()||!l.TimeSeries.is(n,t))&&(e.series._collection._type===l.TimeEvent?this.series=b(e.series,e.column,e.aggregation):this.series=g(e.series,e.column)),x||v||p||m||_||y||S||w||k}},{key:"handleHover",value:function(e,t){this.props.onHighlightChange&&this.props.onHighlightChange(t)}},{key:"handleHoverLeave",value:function(){this.props.onHighlightChange&&this.props.onHighlightChange(null)}},{key:"handleClick",value:function(e,t){this.props.onSelectionChange&&this.props.onSelectionChange(t),e.stopPropagation()}},{key:"providedStyleArray",value:function(e){var t={};return this.props.style&&(this.props.style instanceof f.Styler?t=this.props.style.boxChartStyle()[e]:a.default.isFunction(this.props.style)?t=this.props.style(e):a.default.isObject(this.props.style)&&(t=this.props.style?this.props.style[e]:y)),t}},{key:"style",value:function(e,t,n){var r=void 0;if(this.providedStyle||(this.providedStyle=this.providedStyleArray(this.props.column)),!a.default.isNull(this.providedStyle)&&(!a.default.isArray(this.providedStyle)||3!==this.providedStyle.length))return console.warn("Provided style to BoxChart should be an array of 3 objects"),y;var i=this.props.highlighted&&l.Event.is(this.props.highlighted,t),u=this.props.selected&&l.Event.is(this.props.selected,t);return this.props.selected?u?(this.selectedStyle&&this.selectedStyle[n]||(this.selectedStyle||(this.selectedStyle=[]),this.selectedStyle[n]=(0,o.default)(!0,y[n].selected,this.providedStyle[n].selected?this.providedStyle[n].selected:{})),r=this.selectedStyle[n]):i?(this.highlightedStyle&&this.highlightedStyle[n]||(this.highlightedStyle||(this.highlightedStyle=[]),this.highlightedStyle[n]=(0,o.default)(!0,y[n].highlighted,this.providedStyle[n].highlighted?this.providedStyle[n].highlighted:{})),r=this.highlightedStyle[n]):(this.mutedStyle||(this.mutedStyle=[]),this.mutedStyle[n]||(this.mutedStyle[n]=(0,o.default)(!0,y[n].muted,this.providedStyle[n].muted?this.providedStyle[n].muted:{})),r=this.mutedStyle[n]):i?r=(0,o.default)(!0,y[n].highlighted,this.providedStyle[n].highlighted?this.providedStyle[n].highlighted:{}):(this.normalStyle||(this.normalStyle=[]),this.normalStyle[n]||(this.normalStyle[n]=(0,o.default)(!0,y[n].normal,this.providedStyle[n].normal?this.providedStyle[n].normal:{})),r=this.normalStyle[n]),r}},{key:"renderBars",value:function(){var e=this,t=this.props,n=t.timeScale,r=t.yScale,o=t.column,s=+this.props.innerSpacing,f=+this.props.outerSpacing,d=+this.props.innerSize,h=+this.props.outerSize,p=[],v=void 0,y=function(e,t){return!e.has(t)||a.default.isUndefined(e.get(t))||a.default.isNaN(e.get(t))?null:r(e.get(t))},m=!0,g=!1,b=void 0;try{for(var _,w=function(){var t=_.value,r=t.index(),m=t.begin(),g=t.end(),b=t.data(),w=n(m)+s,k=n(g)-s,S=n(m)+f,x=n(g)-f,O=d||k-w;O<1&&(O=1);var M=h||x-S;M<1&&(M=1);var E=n(m)+(n(g)-n(m))/2,T=n(m)+s;d&&(T=E-d/2);var C=n(m)+f;h&&(C=E-h/2);var P=[];P[0]=e.style(o,t,0),P[1]=e.style(o,t,1),P[2]=e.style(o,t,2);var D=y(b,"innerMin"),j=y(b,"innerMax"),N=y(b,"outerMin"),A=y(b,"outerMax"),z=y(b,"center"),R=!0,I=!0,L=!0;(a.default.isNull(D)||a.default.isNull(j))&&(R=!1),(a.default.isNull(N)||a.default.isNull(A))&&(I=!1),a.default.isNull(z)&&(L=!1);var U=0;if(I){var F=0;R||(F+=1),L||(F+=1);var Y=(e.series.name()?e.series.name():"series")+"-"+r+"-outer",B=i({key:Y},{x:C,y:A,width:M,height:N-A,rx:2,ry:2},{style:P[F]});e.props.onSelectionChange&&(B.onClick=function(n){return e.handleClick(n,t)}),e.props.onHighlightChange&&(B.onMouseMove=function(n){return e.handleHover(n,t)},B.onMouseLeave=function(){return e.handleHoverLeave()}),p.push(u.default.createElement("rect",B)),U="outerMax"}if(R){var H=1;L||(H+=1);var W=e.series.name()+"-"+r+"-inner",q=i({key:W},{x:T,y:j,width:O,height:D-j,rx:1,ry:1},{style:P[H]});e.props.onSelectionChange&&(q.onClick=function(n){return e.handleClick(n,t)}),e.props.onHighlightChange&&(q.onMouseMove=function(n){return e.handleHover(n,t)},q.onMouseLeave=function(){return e.handleHoverLeave()}),p.push(u.default.createElement("rect",q)),U=U||"innerMax"}if(L){var V=e.series.name()+"-"+r+"-center",Z=i({key:V},{x:T,y:z,width:O,height:1},{style:P[2]});e.props.onSelectionChange&&(Z.onClick=function(n){return e.handleClick(n,t)}),e.props.onHighlightChange&&(Z.onMouseMove=function(n){return e.handleHover(n,t)},Z.onMouseLeave=function(){return e.handleHoverLeave()}),a.default.isNaN(Z.y)&&console.log(b.toString()),p.push(u.default.createElement("rect",Z)),U=U||"center"}e.props.highlighted&&l.Event.is(e.props.highlighted,t)&&e.props.info&&(v=u.default.createElement(c.default,i({},e.props,{yValueFunc:function(e){return e.get(U)},event:t,column:o,marker:"circle",markerRadius:2})))},k=this.series.events()[Symbol.iterator]();!(m=(_=k.next()).done);m=!0)w()}catch(S){g=!0,b=S}finally{try{!m&&k.return&&k.return()}finally{if(g)throw b}}return u.default.createElement("g",null,p,v)}},{key:"render",value:function(){return u.default.createElement("g",null,this.renderBars())}}]),t}(u.default.Component);t.default=_,_.propTypes={visible:s.default.bool,series:function(e,t,n){return e[t]instanceof l.TimeSeries?null:new Error("A TimeSeries needs to be passed to "+n+" as the 'series' prop.")},column:s.default.string,aggregation:s.default.shape({size:s.default.string,reducers:s.default.shape({inner:s.default.arrayOf(s.default.func),outer:s.default.arrayOf(s.default.func),center:s.default.func})}),style:s.default.oneOfType([s.default.object,s.default.func,s.default.instanceOf(f.Styler)]),infoStyle:s.default.object,infoWidth:s.default.number,infoHeight:s.default.number,infoOffsetY:s.default.number,info:s.default.arrayOf(s.default.shape({label:s.default.string,value:s.default.string})),innerSpacing:s.default.number,outerSpacing:s.default.number,innerSize:s.default.number,outerSize:s.default.number,selected:s.default.instanceOf(l.IndexedEvent),highlighted:s.default.instanceOf(l.IndexedEvent),onSelectionChange:s.default.func,onHighlightChange:s.default.func,timeScale:s.default.func,yScale:s.default.func,width:s.default.number},_.defaultProps={visible:!0,column:"value",innerSpacing:1,outerSpacing:2,infoStyle:{stroke:"#999",fill:"white",opacity:.9,pointerEvents:"none"},stemStyle:{stroke:"#999",cursor:"crosshair",pointerEvents:"none"},markerStyle:{fill:"#999"},markerRadius:2,infoWidth:90,infoHeight:30,infoOffsetY:20}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=_(n(1)),a=_(n(173)),o=_(n(15)),u=_(n(2)),s=_(n(12)),l=n(127),c=n(18),f=n(122),d=_(n(92)),h=_(n(99)),p=_(n(123)),v=_(n(100)),y=_(n(176)),m=_(n(126)),g=_(n(101)),b=_(n(91));function _(e){return e&&e.__esModule?e:{default:e}}var w={axis:{fill:"none",stroke:"#C0C0C0",pointerEvents:"none"}},k={fontWeight:100,fontSize:14,font:'"Goudy Bookletter 1911", sans-serif"',fill:"#C0C0C0"},S={fontWeight:100,fontSize:13,font:'"Goudy Bookletter 1911", sans-serif"',fill:"#000"},x={fill:"white",stroke:"none"},O={line:{stroke:"#999",cursor:"crosshair",pointerEvents:"none"},box:{fill:"white",opacity:.9,stroke:"#999",pointerEvents:"none"},dot:{fill:"#999"}},M=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleTrackerChanged=n.handleTrackerChanged.bind(n),n.handleTimeRangeChanged=n.handleTimeRangeChanged.bind(n),n.handleMouseMove=n.handleMouseMove.bind(n),n.handleMouseOut=n.handleMouseOut.bind(n),n.handleContextMenu=n.handleContextMenu.bind(n),n.handleBackgroundClick=n.handleBackgroundClick.bind(n),n.handleZoom=n.handleZoom.bind(n),n.saveSvgRef=n.saveSvgRef.bind(n),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"handleTrackerChanged",value:function(e){var t=this;this.props.onTrackerChanged&&this.props.onTrackerChanged(e,(function(e){return t.timeScale(e)+t.leftWidth}))}},{key:"handleTimeRangeChanged",value:function(e){this.props.onTimeRangeChanged&&this.props.onTimeRangeChanged(e)}},{key:"handleMouseMove",value:function(e,t){this.handleTrackerChanged(this.timeScale.invert(e)),this.props.onMouseMove&&this.props.onMouseMove(e,t)}},{key:"handleMouseOut",value:function(e){this.handleTrackerChanged(null)}},{key:"handleContextMenu",value:function(e,t){if(this.props.onContextMenu){var n=this.props.scale?this.props.scale.invert(e):this.timeScale.invert(e);this.props.onContextMenu(e,t,n)}}},{key:"handleBackgroundClick",value:function(e,t){if(this.props.onBackgroundClick){var n=this.props.scale?this.props.scale.invert(e):this.timeScale.invert(e);this.props.onBackgroundClick(e,t,n)}}},{key:"handleZoom",value:function(e){this.props.onTimeRangeChanged&&this.props.onTimeRangeChanged(e)}},{key:"saveSvgRef",value:function(e){this.svg=e}},{key:"render",value:function(){var e=this,t=this.props.padding,n=void 0===t?0:t,r=this.props,s=r.paddingLeft,c=void 0===s?n:s,_=r.paddingRight,M=void 0===_?n:_,E=this.props,T=E.paddingTop,C=void 0===T?n:T,P=E.paddingBottom,D=void 0===P?n:P,j=this.props.titleHeight,N=void 0===j?28:j;i.default.isUndefined(this.props.title)&&(N=0);var A=[],z=[],R=[],I=[];u.default.Children.forEach(this.props.children,(function(e){if((0,f.areComponentsEqual)(e.type,p.default)){var t=0,n=0,r="left";if(u.default.Children.forEach(e.props.children,(function(e){null!==e&&((0,f.areComponentsEqual)(e.type,v.default)?(n+=1,r="right"):(0,f.areComponentsEqual)(e.type,d.default)||(0,f.areComponentsEqual)(e.type,h.default)||"left"===r&&(t+=1))})),1!==n){(0,a.default)(!1,"ChartRow should have one and only one <Charts> tag within it",e.constructor.name)}r="left";var o=t-1;u.default.Children.forEach(e.props.children,(function(e){if(null!==e)if((0,f.areComponentsEqual)(e.type,v.default)||(0,f.areComponentsEqual)(e.type,d.default)||(0,f.areComponentsEqual)(e.type,h.default))(0,f.areComponentsEqual)(e.type,v.default)&&(r="right",o=0);else{var t=Number(e.props.width)||40;!i.default.has(e.props,"visible")||e.props.visible||(t=0),"left"===r?(R[o]=R[o]?Math.max(t,R[o]):t,o-=1):"right"===r&&(I[o]=I[o]?Math.max(t,I[o]):t,o+=1)}}))}}));var L=this.leftWidth=i.default.reduce(R,(function(e,t){return e+t}),0),U=this.rightWidth=i.default.reduce(I,(function(e,t){return e+t}),0),F=this.props.timeAxisHeight,Y=void 0===F?35:F;this.props.hideTimeAxis&&(Y=0);var B=this.props.width-L-U-c-M;if(!this.props.timeRange)throw Error("Invalid timerange passed to ChartContainer");var H=this.timeScale=this.props.utc?(0,l.scaleUtc)().domain(this.props.timeRange.toJSON()).range([0,B]):(0,l.scaleTime)().domain(this.props.timeRange.toJSON()).range([0,B]),W=this.props.width-L-U-c-M,q=0,V=C,Z="translate("+(L+c)+","+V+")",G=(0,o.default)(!0,k,this.props.titleStyle?this.props.titleStyle:{}),$=this.props.title?u.default.createElement("g",{transform:Z},u.default.createElement(b.default,{align:"center",label:this.props.title,style:{label:G,box:{fill:"none",stroke:"none"}},width:W,height:N})):u.default.createElement("g",null),K=(0,o.default)(!0,O,this.props.trackerStyle?this.props.trackerStyle:{}),X=0;u.default.Children.forEach(this.props.children,(function(t){if((0,f.areComponentsEqual)(t.type,p.default)){var n=t,r="chart-row-row-"+q,a=0===q,s=t.props.visible,l={timeScale:H,paddingLeft:c,paddingRight:M,leftAxisWidths:R,rightAxisWidths:I,width:e.props.width,minTime:e.props.minTime,maxTime:e.props.maxTime,transition:e.props.transition,enablePanZoom:e.props.enablePanZoom,minDuration:e.props.minDuration,showGrid:e.props.showGrid,timeFormat:e.props.format,trackerShowTime:a,trackerTime:e.props.trackerPosition,trackerTimeFormat:e.props.format,trackerStyle:K,onTimeRangeChanged:e.handleTimeRangeChanged,onTrackerChanged:e.handleTrackerChanged},d=t.props.titleHeight,h=void 0===d?28:d;i.default.isUndefined(t.props.title)&&(h=0);var v="translate("+(-L-c)+","+(V+h)+")";if(s){if(A.push(u.default.createElement("g",{transform:v,key:r},u.default.cloneElement(n,l))),!i.default.isUndefined(t.props.title)){var y="chart-row-row-title-"+q,m=(0,o.default)(!0,S,t.props.titleStyle?t.props.titleStyle:{}),g=(0,o.default)(!0,x,t.props.titleBoxStyle?t.props.titleBoxStyle:{}),_="translate("+(-L-c)+","+V+")",w=u.default.createElement("g",{transform:_,key:y},u.default.createElement(b.default,{align:"left",label:t.props.title,style:{label:m,box:g},width:l.width,height:h}));z.push(w)}var k=parseInt(t.props.height,10)+h;V+=k,X+=k}}q+=1}));var J=void 0;this.props.trackerPosition&&this.props.timeRange.contains(this.props.trackerPosition)&&(J=u.default.createElement("g",{key:"tracker-group",style:{pointerEvents:"none"},transform:"translate("+(L+c)+","+(C+N)+")"},u.default.createElement(g.default,{width:W,height:X,showInfoBox:!1,time:this.props.trackerPosition,timeScale:H,timeFormat:this.props.format,infoWidth:this.props.trackerHintWidth,infoHeight:this.props.trackerHintHeight,info:this.props.trackerValues,infoStyle:K})));var Q=void 0;Q=this.props.hideTimeAxis?{axis:{display:"none"}}:(0,o.default)(!0,w.axis,this.props.timeAxisStyle.axis?this.props.timeAxisStyle.axis:{});var ee=u.default.createElement("g",{transform:"translate("+(L+c)+","+(C+N+X)+")"},u.default.createElement("line",{x1:-L,y1:.5,x2:W+U,y2:.5,style:Q}),u.default.createElement(m.default,{scale:H,utc:this.props.utc,angled:this.props.timeAxisAngledLabels,style:this.props.timeAxisStyle,format:this.props.format,showGrid:this.props.showGrid,gridHeight:X,tickCount:this.props.timeAxisTickCount})),te=u.default.createElement("g",{transform:"translate("+(L+c)+","+(C+N)+")"},u.default.createElement(y.default,{key:"event-handler",width:W,height:X+Y,scale:H,enablePanZoom:this.props.enablePanZoom,enableDragZoom:this.props.enableDragZoom,minDuration:this.props.minDuration,minTime:this.props.minTime,maxTime:this.props.maxTime,onMouseOut:this.handleMouseOut,onMouseMove:this.handleMouseMove,onMouseClick:this.handleBackgroundClick,onContextMenu:this.handleContextMenu,onZoom:this.handleZoom},A)),ne=u.default.createElement("g",{transform:"translate("+(L+c)+","+(C+N)+")"},z),re=this.props.width,ie=X+Y+C+D+N,ae=(0,o.default)(!0,{display:"block"},this.props.style?this.props.style:{});return"over"===this.props.showGridPosition?u.default.createElement("svg",{width:re,height:ie,style:ae,ref:this.saveSvgRef},$,te,J,ee,ne):u.default.createElement("svg",{width:re,height:ie,style:{display:"block"},ref:this.saveSvgRef},$,ee,te,ne,J)}}]),t}(u.default.Component);t.default=M,M.propTypes={timeRange:s.default.instanceOf(c.TimeRange).isRequired,utc:s.default.bool,children:s.default.oneOfType([s.default.arrayOf(s.default.element),s.default.element]).isRequired,width:s.default.number,minTime:s.default.instanceOf(Date),maxTime:s.default.instanceOf(Date),enablePanZoom:s.default.bool,enableDragZoom:s.default.bool,minDuration:s.default.number,format:s.default.oneOfType([s.default.string,s.default.func]),transition:s.default.number,showGrid:s.default.bool,showGridPosition:s.default.oneOf(["over","under"]),style:s.default.object,trackerHintWidth:s.default.number,trackerHintHeight:s.default.number,trackerValues:s.default.oneOfType([s.default.string,s.default.arrayOf(s.default.shape({label:s.default.string,value:s.default.string}))]),trackerPosition:s.default.instanceOf(Date),trackerStyle:s.default.shape({line:s.default.object,box:s.default.object,dot:s.default.object}),onTrackerChanged:s.default.func,onTimeRangeChanged:s.default.func,onChartResize:s.default.func,onBackgroundClick:s.default.func,onContextMenu:s.default.func,padding:s.default.number,paddingLeft:s.default.number,paddingRight:s.default.number,paddingTop:s.default.number,paddingBottom:s.default.number,title:s.default.string,titleHeight:s.default.number,titleStyle:s.default.object,timeAxisStyle:s.default.shape({axis:s.default.object,values:s.default.object,ticks:s.default.object}),timeAxisHeight:s.default.number,timeAxisTickCount:s.default.number,timeAxisAngledLabels:s.default.bool,hideTimeAxis:s.default.bool},M.defaultProps={width:800,padding:0,enablePanZoom:!1,enableDragZoom:!1,utc:!1,showGrid:!1,showGridPosition:"over",timeAxisStyle:w,titleStyle:k,trackerStyle:O,hideTimeAxis:!1}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,a,o,u){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,o,u],c=0;(s=new Error(t.replace(/%s/g,(function(){return l[c++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=(r=n(2))&&"object"==typeof r&&"default"in r?r.default:r,a=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},u=function(e){function t(){return a(this,t),o(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){return i.Children.only(this.props.children)},t}(i.Component);t.AppContainer=u,t.hot=function(){return function(e){return e}},t.areComponentsEqual=function(e,t){return e===t},t.setConfig=function(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(1),o=(r=a)&&r.__esModule?r:{default:r};var u=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=o.default.uniqueId("scaler"),this.ease=n,this.transitionTime=t,this.observer=r,this.sourceScale=null,this.targetScale=null,this.cachedScaler=null,this.cacheKey=null}return i(e,[{key:"update",value:function(){var e=this,t=0;this.initialTimestamp?t=window.performance.now()-this.initialTimestamp:this.initialTimestamp=window.performance.now();var n=this.transitionTime?Math.min(t/this.transitionTime,1):1;if(this.targetScale){if(this.observer){var r=this.sourceScale,i=this.targetScale,a=this.ease(n);this.observer((function(e){var t=r(e);return t+(i(e)-t)*a}))}n<1?setTimeout((function(){return e.update()}),20):(this.sourceScale=this.targetScale,this.targetScale=null,this.initialTimestamp=null)}}},{key:"setScale",value:function(e,t){var n=this;this.sourceScale?(e!==this.cacheKey&&(this.targetScale=t,this.cachedScaler=null,this.initialTimestamp=null,setTimeout((function(){return n.update()}),0)),this.cacheKey=e):this.sourceScale=t}},{key:"scaler",value:function(){var e=this;return o.default.isNull(this.cachedScaler)&&(this.cachedScaler=function(t){return e.sourceScale(t)}),this.cachedScaler}},{key:"latestScale",value:function(){return this.targetScale?this.targetScale:this.sourceScale}},{key:"transition",value:function(){return this.transitionTime}}]),e}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=l(n(2)),o=(l(n(44)),l(n(12))),u=n(18),s=n(27);function l(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={isPanning:!1,initialPanBegin:null,initialPanEnd:null,initialPanPosition:null},n.handleScrollWheel=n.handleScrollWheel.bind(n),n.handleMouseDown=n.handleMouseDown.bind(n),n.handleMouseUp=n.handleMouseUp.bind(n),n.handleMouseOut=n.handleMouseOut.bind(n),n.handleMouseMove=n.handleMouseMove.bind(n),n.handleContextMenu=n.handleContextMenu.bind(n),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){this.eventHandlerRef.addEventListener("wheel",this.handleScrollWheel,{passive:!1})}},{key:"getOffsetMousePosition",value:function(e){var t=(0,s.getElementOffset)(this.eventRect),n=e.pageX-t.left,r=e.pageY-t.top;return[Math.round(n),Math.round(r)]}},{key:"handleScrollWheel",value:function(e){if(this.props.enablePanZoom||this.props.enableDragZoom){e.preventDefault();var t=1+.001*e.deltaY;t>3&&(t=3),t<.1&&(t=.1);var n=this.getOffsetMousePosition(e),r=this.props.scale.domain()[0].getTime(),i=this.props.scale.domain()[1].getTime(),a=this.props.scale.invert(n[0]).getTime(),o=a-parseInt((a-r)*t,10),s=a+parseInt((i-a)*t,10),l=(i-r)*t;if(this.props.minDuration){var c=parseInt(this.props.minDuration,10);l<this.props.minDuration&&(o=a-(a-r)/(i-r)*c,s=a+(i-a)/(i-r)*c)}if(this.props.minTime&&this.props.maxTime){var f=this.props.maxTime.getTime()-this.props.minTime.getTime();l>f&&(l=f)}this.props.minTime&&o<this.props.minTime.getTime()&&(s=(o=this.props.minTime.getTime())+l),this.props.maxTime&&s>this.props.maxTime.getTime()&&(o=(s=this.props.maxTime.getTime())-l);var d=new Date(o),h=new Date(s),p=new u.TimeRange(d,h);this.props.onZoom&&this.props.onZoom(p)}}},{key:"handleMouseDown",value:function(e){if((this.props.enablePanZoom||this.props.enableDragZoom)&&2!==e.button){if(e.preventDefault(),document.addEventListener("mouseover",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp),this.props.enableDragZoom){var t=this.getOffsetMousePosition(e);this.setState({isDragging:!0,initialDragZoom:t[0],currentDragZoom:t[0]})}if(this.props.enablePanZoom){var n=e.pageX,r=e.pageY,i=[Math.round(n),Math.round(r)],a=this.props.scale.domain()[0].getTime(),o=this.props.scale.domain()[1].getTime();this.setState({isPanning:!0,initialPanBegin:a,initialPanEnd:o,initialPanPosition:i})}return!1}}},{key:"handleMouseUp",value:function(e){if(this.props.onMouseClick||this.props.enablePanZoom||this.props.enableDragZoom){e.stopPropagation(),document.removeEventListener("mouseover",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp);var t=this.getOffsetMousePosition(e),n=e.pageX,r=this.state.initialPanPosition&&Math.abs(n-this.state.initialPanPosition[0])>2,i=this.state.initialDragZoom&&Math.abs(t[0]-this.state.initialDragZoom)>2;if(!this.props.onMouseClick||r||i||this.props.onMouseClick(t[0],t[1]),this.props.enableDragZoom){if(i){var a=this.props.scale.invert(this.state.initialDragZoom).getTime(),o=this.props.scale.invert(this.state.currentDragZoom).getTime(),s=parseInt(a,10),l=parseInt(o,10);this.props.minTime&&s<this.props.minTime.getTime()&&(s=this.props.minTime.getTime()),this.props.maxTime&&l>this.props.maxTime.getTime()&&(l=this.props.maxTime.getTime());var c=new u.TimeRange([s,l].sort());this.props.onZoom&&this.props.onZoom(c)}this.setState({isDragging:!1,initialDragZoom:null,initialPanEnd:null,currentDragZoom:null})}this.props.enablePanZoom&&this.setState({isPanning:!1,initialPanBegin:null,initialPanEnd:null,initialPanPosition:null})}}},{key:"handleMouseOut",value:function(e){e.preventDefault(),this.props.onMouseOut&&this.props.onMouseOut()}},{key:"handleMouseMove",value:function(e){e.preventDefault();var t=e.pageX,n=e.pageY,r=[Math.round(t),Math.round(n)],i=this.getOffsetMousePosition(e);if(this.state.isDragging&&this.setState({currentDragZoom:i[0]}),this.state.isPanning){var a=this.state.initialPanPosition,o=this.props.scale.invert(r[0]).getTime()-this.props.scale.invert(a[0]).getTime(),s=parseInt(this.state.initialPanBegin-o,10),l=parseInt(this.state.initialPanEnd-o,10),c=parseInt(this.state.initialPanEnd-this.state.initialPanBegin,10);this.props.minTime&&s<this.props.minTime.getTime()&&(l=(s=this.props.minTime.getTime())+c),this.props.maxTime&&l>this.props.maxTime.getTime()&&(s=(l=this.props.maxTime.getTime())-c);var f=new u.TimeRange(s,l);this.props.onZoom&&this.props.onZoom(f)}else if(this.props.onMouseMove){var d=this.getOffsetMousePosition(e);this.props.onMouseMove&&this.props.onMouseMove(d[0],d[1])}}},{key:"handleContextMenu",value:function(e){var t=e.pageX,n=e.pageY;this.props.onContextMenu&&this.props.onContextMenu(t,n)}},{key:"render",value:function(){var e=this,t=this.state.isPanning?"-webkit-grabbing":"default",n={onMouseDown:this.handleMouseDown,onMouseMove:this.handleMouseMove,onMouseOut:this.handleMouseOut,onMouseUp:this.handleMouseUp,onContextMenu:this.handleContextMenu};return a.default.createElement("g",r({pointerEvents:"all",ref:function(t){e.eventHandlerRef=t}},n),a.default.createElement("rect",{key:"handler-hit-rect",ref:function(t){e.eventRect=t},style:{fill:"#000",opacity:0,cursor:t},x:0,y:0,width:this.props.width,height:this.props.height}),this.props.children,this.state.isDragging&&a.default.createElement("rect",{style:{opacity:.3,fill:"grey"},x:Math.min(this.state.currentDragZoom,this.state.initialDragZoom),y:0,width:Math.abs(this.state.currentDragZoom-this.state.initialDragZoom),height:this.props.height,pointerEvents:"none"}))}}]),t}(a.default.Component);t.default=c,c.propTypes={children:o.default.oneOfType([o.default.arrayOf(o.default.node),o.default.node]),enablePanZoom:o.default.bool,enableDragZoom:o.default.bool,scale:o.default.func.isRequired,width:o.default.number.isRequired,height:o.default.number.isRequired,maxTime:o.default.instanceOf(Date),minTime:o.default.instanceOf(Date),minDuration:o.default.number,onZoom:o.default.func,onMouseMove:o.default.func,onMouseOut:o.default.func,onMouseClick:o.default.func,onContextMenu:o.default.func},c.defaultProps={enablePanZoom:!1,enableDragZoom:!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=c(n(1)),o=c(n(15)),u=c(n(2)),s=c(n(12)),l=n(18);function c(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={hover:null},n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"onMouseOver",value:function(e,t){this.props.onMouseOver&&this.props.onMouseOver(t),this.setState({hover:t})}},{key:"onMouseLeave",value:function(){this.props.onMouseLeave&&this.props.onMouseLeave(this.state.hover),this.setState({hover:null})}},{key:"handleClick",value:function(e,t){e.stopPropagation(),this.props.onSelectionChange&&this.props.onSelectionChange(t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.series,i=t.textOffsetX,s=t.textOffsetY,c=t.hoverMarkerWidth,f=this.props.timeScale,d=[],h=0,p=!0,v=!1,y=void 0;try{for(var m,g=function(){var t=m.value,n=t.begin(),p=t.end(),v=f(n)>=0?f(n):0,y=f(p)<=e.props.width?f(p):e.props.width,g="translate("+v+",0)",b=!!e.state.hover&&l.Event.is(t,e.state.hover),_=void 0;_=b?"hover":"normal";var w={},k={};e.props.style&&(w=e.props.style(t,"normal"),k=e.props.style(t,_));var S="";e.props.label&&(a.default.isString(e.props.label)?S=e.props.label:a.default.isFunction(e.props.label)&&(S=e.props.label(t)));var x=e.props.spacing,O=y-v-2*e.props.spacing;O=O<0?0:O;var M=e.props.size,E=null;b&&(E=u.default.createElement("g",null,u.default.createElement("rect",{className:"eventchart-marker",x:x,y:0,width:c,height:M+4,style:(0,o.default)(!0,w,{pointerEvents:"none"})}),u.default.createElement("text",{style:r({pointerEvents:"none",fill:"#444"},{fontWeight:100,fontSize:11}),x:8+i,y:15+s},S))),d.push(u.default.createElement("g",{transform:g,key:h},u.default.createElement("rect",{className:"eventchart-marker",x:x,y:0,width:O,height:M,style:k,onClick:function(n){return e.handleClick(n,t)},onMouseLeave:function(){return e.onMouseLeave()},onMouseOver:function(n){return e.onMouseOver(n,t)}}),E)),h+=1},b=n.events()[Symbol.iterator]();!(p=(m=b.next()).done);p=!0)g()}catch(_){v=!0,y=_}finally{try{!p&&b.return&&b.return()}finally{if(v)throw y}}return u.default.createElement("g",null,d)}}]),t}(u.default.Component);t.default=f,f.defaultProps={visible:!0,size:30,spacing:0,textOffsetX:0,textOffsetY:0,hoverMarkerWidth:5},f.propTypes={visible:s.default.bool,series:s.default.instanceOf(l.TimeSeries).isRequired,label:s.default.oneOfType([s.default.string,s.default.func]),size:s.default.number,spacing:s.default.number,hoverMarkerWidth:s.default.number,textOffsetX:s.default.number,textOffsetY:s.default.number,style:s.default.func,onSelectionChange:s.default.func,onMouseLeave:s.default.func,onMouseOver:s.default.func,timeScale:s.default.func,width:s.default.number}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=l(n(2)),a=l(n(12)),o=n(71),u=l(n(15)),s=l(n(69));function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var d={axis:{fontSize:11,textAnchor:"left",fill:"#bdbdbd"},label:{fontSize:12,textAnchor:"middle",fill:"#838383"},values:{fill:"none",stroke:"none"}},h=function(e){function t(){return c(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"mergeStyles",value:function(e){return{axisStyle:(0,u.default)(!0,d.axis,this.props.style.axis?this.props.style.axis:{}),labelStyle:(0,u.default)(!0,d.label,this.props.style.label?this.props.style.label:{}),valueStyle:(0,u.default)(!0,d.values,this.props.style.values?this.props.style.values:{})}}},{key:"renderAxis",value:function(e){var t=this.props.valWidth,n=this.props.width-t;if(this.props.hideScale)return i.default.createElement("g",null);var r=n+3,a=this.props.format,u=(0,o.format)(a)(this.props.max),s=(0,o.format)(a)(this.props.min);return i.default.createElement("g",null,i.default.createElement("text",{x:r,y:0,dy:"1.2em",style:e},u),i.default.createElement("text",{x:r,y:this.props.height,style:e},s))}},{key:"render",value:function(){var e=this.props.valWidth,t=this.props.width-e,n=this.mergeStyles(this.props.style),r=n.axisStyle,a=n.labelStyle,o=n.valueStyle,u=null,l=void 0;return this.props.values?(l=Math.max(parseInt(this.props.height/4,10),10),u=i.default.createElement(s.default,{style:o,values:this.props.values,width:t})):l=parseInt(this.props.height/2,10),i.default.createElement("g",null,i.default.createElement("rect",{x:"0",y:"0",width:t,height:this.props.height,style:{fill:"none",stroke:"none"}}),i.default.createElement("text",{x:parseInt(t/2,10),y:l,style:a},this.props.label),i.default.createElement("g",{transform:"translate(0,"+(l+2)+")"},u),this.renderAxis(r))}}]),t}(i.default.Component);t.default=h,h.propTypes={label:a.default.string.isRequired,hideScale:a.default.bool,values:a.default.arrayOf(a.default.shape({label:a.default.string,value:a.default.oneOfType([a.default.number,a.default.string])})).isRequired,valWidth:a.default.number,max:a.default.number.isRequired,min:a.default.number.isRequired,format:a.default.string,width:a.default.number,height:a.default.number,style:a.default.shape({axis:a.default.object,label:a.default.object,values:a.default.object})},h.defaultProps={hideScale:!1,values:[],valWidth:40,format:".2f",style:d}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=l(n(1)),a=l(n(15)),o=l(n(2)),u=l(n(12)),s=n(33);function l(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h={symbol:{normal:{stroke:"steelblue",fill:"none",strokeWidth:1},highlighted:{stroke:"#5a98cb",fill:"none",strokeWidth:1},selected:{stroke:"steelblue",fill:"none",strokeWidth:2},muted:{stroke:"steelblue",fill:"none",opacity:.4,strokeWidth:1}},label:{normal:{fontSize:"normal",color:"#333"},highlighted:{fontSize:"normal",color:"#222"},selected:{fontSize:"normal",color:"#333"},muted:{fontSize:"normal",color:"#333",opacity:.4}},value:{normal:{fontSize:"normal",color:"#333"},highlighted:{fontSize:"normal",color:"#222"},selected:{fontSize:"normal",color:"#333"},muted:{fontSize:"normal",color:"#333",opacity:.4}}},p=function(e){function t(){return c(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),r(t,[{key:"handleClick",value:function(e,t){e.stopPropagation(),this.props.onSelectionChange&&this.props.onSelectionChange(t)}},{key:"handleHover",value:function(e,t){this.props.onHighlightChange&&this.props.onHighlightChange(t)}},{key:"handleHoverLeave",value:function(){this.props.onHighlightChange&&this.props.onHighlightChange(null)}},{key:"renderLine",value:function(e){var t=this.props,n=t.symbolWidth,r=t.symbolHeight;return o.default.createElement("svg",{style:{float:"left"},width:n,height:r},o.default.createElement("line",{style:e,x1:0,y1:parseInt(n/2,10),x2:n,y2:parseInt(n/2,10),stroke:"black",strokeWidth:"2"}))}},{key:"renderSwatch",value:function(e){var t=this.props,n=t.symbolWidth,r=t.symbolHeight;return o.default.createElement("svg",{style:{float:"left"},width:n,height:r},o.default.createElement("rect",{style:e,x:2,y:2,width:n-4,height:r-4,rx:2,ry:2}))}},{key:"renderDot",value:function(e){var t=this.props,n=t.symbolWidth,r=t.symbolHeight,i=parseInt(n/2,10),a=parseInt(r/2,10),u=.75*i;return o.default.createElement("svg",{style:{float:"left"},width:n,height:r},o.default.createElement("circle",{style:e,cx:i,cy:a,r:u}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.symbolStyle,r=t.labelStyle,i=t.valueStyle,a=t.itemKey,u=void 0;switch(t.symbolType){case"swatch":u=this.renderSwatch(n);break;case"line":u=this.renderLine(n);break;case"dot":u=this.renderDot(n)}return o.default.createElement("div",{style:{display:"flex",flexDirection:"column"},key:a,onClick:function(t){return e.handleClick(t,a)},onMouseMove:function(t){return e.handleHover(t,a)},onMouseLeave:function(){return e.handleHoverLeave()}},o.default.createElement("div",{style:{display:"flex",flexDirection:"row",alignItems:"center"}},o.default.createElement("div",{style:{width:"20px"}},u),o.default.createElement("div",{style:{display:"flex",flexDirection:"column"}},o.default.createElement("div",{style:r},this.props.label),o.default.createElement("div",{style:i},this.props.value))))}}]),t}(o.default.Component),v=function(e){function t(){return c(this,t),f(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),r(t,[{key:"handleClick",value:function(e,t){e.stopPropagation(),this.props.onSelectionChange&&this.props.onSelectionChange(t)}},{key:"handleHover",value:function(e,t){this.props.onHighlightChange&&this.props.onHighlightChange(t)}},{key:"handleHoverLeave",value:function(){this.props.onHighlightChange&&this.props.onHighlightChange(null)}},{key:"providedStyle",value:function(e,t){var n={};return this.props.style&&(this.props.style instanceof s.Styler?n=this.props.style.legendStyle(e.key,t):i.default.isFunction(this.props.style)?n=this.props.style(e.key):i.default.isObject(this.props.style)&&(n=this.props.style?this.props.style[e.key]:h)),n}},{key:"styleMode",value:function(e){var t=this.props.highlight&&e.key===this.props.highlight,n=this.props.selection&&e.key===this.props.selection,r=e.disabled,i="normal";return this.props.selection?i=n?"selected":t?"highlighted":"muted":t?i="highlighted":r&&(i="muted"),i}},{key:"symbolStyle",value:function(e,t){var n=this.providedStyle(e,t),r=this.styleMode(e);return(0,a.default)(!0,h[r],n.symbol?n.symbol[r]:{})}},{key:"labelStyle",value:function(e){var t=this.providedStyle(e),n=this.styleMode(e);return(0,a.default)(!0,h[n],t.label?t.label[n]:{})}},{key:"valueStyle",value:function(e){var t=this.providedStyle(e),n=this.styleMode(e);return(0,a.default)(!0,h[n],t.value?t.value[n]:{})}},{key:"render",value:function(){var e=this,t=this.props,n=t.type,r=void 0===n?"swatch":n,i=t.symbolWidth,a=t.symbolHeight,u=this.props.categories.map((function(t){var n=t.key,u=t.label,s=t.value,l=t.symbolType,c=void 0===l?r:l,f=e.symbolStyle(t,c),d=e.labelStyle(t),h=e.valueStyle(t);return o.default.createElement(p,{key:n,type:r,itemKey:n,label:u,value:s,symbolType:c,symbolWidth:i,symbolHeight:a,symbolStyle:f,labelStyle:d,valueStyle:h,onSelectionChange:e.props.onSelectionChange,onHighlightChange:e.props.onHighlightChange})})),s="left"===this.props.align?"flex-start":"flex-end";return this.props.stack?o.default.createElement("div",{style:{display:"flex",justifyContent:s,flexDirection:"column",marginBottom:this.props.marginBottom}},u):o.default.createElement("div",{style:{display:"flex",justifyContent:s,flexWrap:"wrap",marginBottom:this.props.marginBottom}},u)}}]),t}(o.default.Component);t.default=v,v.propTypes={type:u.default.oneOf(["swatch","line","dot"]),align:u.default.oneOf(["left","right"]),style:u.default.oneOfType([u.default.object,u.default.func,u.default.instanceOf(s.Styler)]),categories:u.default.arrayOf(u.default.shape({key:u.default.string.isRequired,label:u.default.string.isRequired,disabled:u.default.bool,style:u.default.object,labelStyle:u.default.object})).isRequired,symbolWidth:u.default.number,symbolHeight:u.default.number,highlight:u.default.string,selection:u.default.string,onSelectionChange:u.default.func,onHighlightChange:u.default.func,stack:u.default.bool,marginBottom:u.default.string},v.defaultProps={style:{},labelStyle:{},type:"swatch",align:"left",symbolWidth:16,symbolHeight:16,stack:!1,marginBottom:"20px"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=h(n(1)),a=n(73),o=h(n(15)),u=h(n(2)),s=h(n(12)),l=n(18),c=n(33),f=n(27),d=h(n(90));function h(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var y={normal:{stroke:"steelblue",fill:"none",strokeWidth:1},highlighted:{stroke:"#5a98cb",fill:"none",strokeWidth:1},selected:{stroke:"steelblue",fill:"none",strokeWidth:2},muted:{stroke:"steelblue",fill:"none",opacity:.4,strokeWidth:1}},m=function(e){function t(){return p(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"shouldComponentUpdate",value:function(e){var t=e.series,n=this.props.series,r=e.width,i=e.timeScale,a=e.yScale,o=e.interpolation,u=e.highlight,s=e.selection,c=e.columns,d=this.props.width!==r,h=(0,f.scaleAsString)(this.props.timeScale)!==(0,f.scaleAsString)(i),p=this.props.yScale!==a,v=this.props.interpolation!==o,y=this.props.highlight!==u,m=this.props.selection!==s,g=this.props.columns!==c,b=!1;return b=n.size()!==t.size()||!l.TimeSeries.is(n,t),d||b||h||p||v||y||m||g}},{key:"handleHover",value:function(e,t){this.props.onHighlightChange&&this.props.onHighlightChange(t)}},{key:"handleHoverLeave",value:function(){this.props.onHighlightChange&&this.props.onHighlightChange(null)}},{key:"handleClick",value:function(e,t){e.stopPropagation(),this.props.onSelectionChange&&this.props.onSelectionChange(t)}},{key:"providedPathStyleMap",value:function(e){var t={};return this.props.style&&(this.props.style instanceof c.Styler?t=this.props.style.lineChartStyle()[e]:i.default.isFunction(this.props.style)?t=this.props.style(e):i.default.isObject(this.props.style)&&(t=this.props.style?this.props.style[e]:y)),t}},{key:"pathStyle",value:function(e){var t=void 0,n=this.providedPathStyleMap(e),r=this.props.highlight&&e===this.props.highlight,i=this.props.selection&&e===this.props.selection;return(t=this.props.selection?i?(0,o.default)(!0,y.selected,n.selected?n.selected:{}):r?(0,o.default)(!0,y.highlighted,n.highlighted?n.highlighted:{}):(0,o.default)(!0,y.muted,n.muted?n.muted:{}):r?(0,o.default)(!0,y.highlighted,n.highlighted?n.highlighted:{}):(0,o.default)(!0,y.normal,n.normal)).pointerEvents="none",t}},{key:"renderPath",value:function(e,t,n){var r=this,i=(0,a.line)().curve(d.default[this.props.interpolation]).x((function(e){return r.props.timeScale(e.x)})).y((function(e){return r.props.yScale(e.y)}))(e);return u.default.createElement("g",{key:n},u.default.createElement("path",{d:i,style:this.pathStyle(t)}),u.default.createElement("path",{d:i,style:{stroke:"white",fill:"none",opacity:0,strokeWidth:7,cursor:"crosshair",pointerEvents:"stroke"},onClick:function(e){return r.handleClick(e,t)},onMouseLeave:function(){return r.handleHoverLeave()},onMouseMove:function(e){return r.handleHover(e,t)}}))}},{key:"renderLines",value:function(){var e=this;return i.default.map(this.props.columns,(function(t){return e.renderLine(t)}))}},{key:"renderLine",value:function(e){var t=[],n=1;if(this.props.breakLine){var r=null,a=!0,o=!1,s=void 0;try{for(var l,c=this.props.series.events()[Symbol.iterator]();!(a=(l=c.next()).done);a=!0){var f=l.value,d=new Date(f.begin().getTime()+(f.end().getTime()-f.begin().getTime())/2),h=f.get(e);i.default.isNull(h)||i.default.isNaN(h)||!i.default.isFinite(h)?r&&(r.length>1&&(t.push(this.renderPath(r,e,n)),n+=1),r=null):(r||(r=[]),r.push({x:d,y:h}))}}catch(S){o=!0,s=S}finally{try{!a&&c.return&&c.return()}finally{if(o)throw s}}r&&r.length>1&&(t.push(this.renderPath(r,e,n)),n+=1)}else{var p=[],v=!0,y=!1,m=void 0;try{for(var g,b=this.props.series.events()[Symbol.iterator]();!(v=(g=b.next()).done);v=!0){var _=g.value,w=new Date(_.begin().getTime()+(_.end().getTime()-_.begin().getTime())/2),k=_.get(e);i.default.isNull(k)||i.default.isNaN(k)||!i.default.isFinite(k)||p.push({x:w,y:k})}}catch(S){y=!0,m=S}finally{try{!v&&b.return&&b.return()}finally{if(y)throw m}}t.push(this.renderPath(p,e,n)),n+=1}return u.default.createElement("g",{key:e},t)}},{key:"render",value:function(){return u.default.createElement("g",null,this.renderLines())}}]),t}(u.default.Component);t.default=m,m.propTypes={visible:s.default.bool,series:s.default.instanceOf(l.TimeSeries).isRequired,axis:s.default.string.isRequired,columns:s.default.arrayOf(s.default.string),style:s.default.oneOfType([s.default.object,s.default.func,s.default.instanceOf(c.Styler)]),interpolation:s.default.oneOf(["curveBasis","curveBasisOpen","curveBundle","curveCardinal","curveCardinalOpen","curveCatmullRom","curveCatmullRomOpen","curveLinear","curveMonotoneX","curveMonotoneY","curveNatural","curveRadial","curveStep","curveStepAfter","curveStepBefore"]),breakLine:s.default.bool,selection:s.default.string,onSelectionChange:s.default.func,highlight:s.default.string,onHighlightChange:s.default.func,timeScale:s.default.func,yScale:s.default.func,width:s.default.number},m.defaultProps={visible:!0,columns:["value"],smooth:!0,interpolation:"curveLinear",breakLine:!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=u(n(2)),o=u(n(12));function u(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={width:0},n.handleResize=n.handleResize.bind(n),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.handleResize),this.handleResize()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize)}},{key:"handleResize",value:function(){this.container&&this.setState({width:this.container.offsetWidth})}},{key:"render",value:function(){var e=this,t=a.default.Children.only(this.props.children),n=this.state.width?a.default.cloneElement(t,{width:this.state.width}):null;return a.default.createElement("div",r({ref:function(t){e.container=t}},this.props),n)}}]),t}(a.default.Component);t.default=s,s.propTypes={children:o.default.node}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(r=(o=u.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(s){i=!0,a=s}finally{try{!r&&u.return&&u.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=p(n(1)),u=p(n(15)),s=p(n(2)),l=p(n(12)),c=(p(n(44)),n(18)),f=p(n(68)),d=n(27),h=n(33);function p(e){return e&&e.__esModule?e:{default:e}}var v={normal:{fill:"steelblue",opacity:.8},highlighted:{fill:"steelblue",opacity:1},selected:{fill:"steelblue",opacity:1},muted:{fill:"steelblue",opacity:.4}},y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleHover=n.handleHover.bind(n),n.handleHoverLeave=n.handleHoverLeave.bind(n),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"getOffsetMousePosition",value:function(e){var t=(0,d.getElementOffset)(this.eventrect),n=e.pageX-t.left,r=e.pageY-t.top;return[Math.round(n),Math.round(r)]}},{key:"handleClick",value:function(e,t,n){var r={event:t,column:n};this.props.onSelectionChange&&this.props.onSelectionChange(r)}},{key:"handleHover",value:function(e){var t=this.getOffsetMousePosition(e),n=i(t,2),r=n[0],a=n[1],o=void 0,u=1/0,s=!0,l=!1,c=void 0;try{for(var f,d=this.props.columns[Symbol.iterator]();!(s=(f=d.next()).done);s=!0){var h=f.value,p=!0,v=!1,y=void 0;try{for(var m,g=this.props.series.events()[Symbol.iterator]();!(p=(m=g.next()).done);p=!0){var b=m.value,_=b.timestamp(),w=b.get(h),k=this.props.timeScale(_),S=this.props.yScale(w),x=Math.sqrt((k-r)*(k-r)+(S-a)*(S-a));x<u&&(o={event:b,column:h},u=x)}}catch(O){v=!0,y=O}finally{try{!p&&g.return&&g.return()}finally{if(v)throw y}}}}catch(O){l=!0,c=O}finally{try{!s&&d.return&&d.return()}finally{if(l)throw c}}this.props.onMouseNear&&this.props.onMouseNear(o)}},{key:"handleHoverLeave",value:function(){this.props.onMouseNear&&this.props.onMouseNear(null)}},{key:"providedStyleMap",value:function(e,t){var n={};return this.props.style&&(this.props.style instanceof h.Styler?n=this.props.style.scatterChartStyle()[e]:o.default.isFunction(this.props.style)?n=this.props.style(e,t):o.default.isObject(this.props.style)&&(n=this.props.style?this.props.style[e]:v)),n}},{key:"style",value:function(e,t){var n=void 0,r=this.providedStyleMap(e,t),i=this.props.highlight&&e===this.props.highlight.column&&c.Event.is(this.props.highlight.event,t),a=this.props.selected&&e===this.props.selected.column&&c.Event.is(this.props.selected.event,t);return n=this.props.selected?a?(0,u.default)(!0,v.selected,r.selected?r.selected:{}):i?(0,u.default)(!0,v.highlighted,r.highlighted?r.highlighted:{}):(0,u.default)(!0,v.muted,r.muted?r.muted:{}):i?(0,u.default)(!0,v.highlighted,r.highlighted?r.highlighted:{}):(0,u.default)(!0,v.normal,r.normal?r.normal:{}),n}},{key:"renderScatter",value:function(){var e=this,t=this.props,n=t.series,i=t.timeScale,a=t.yScale,u=[],l=void 0,d=this.props.onSelectionChange?"auto":"none";return this.props.columns.forEach((function(t){var h=1,p=!0,v=!1,y=void 0;try{for(var m,g=function(){var n=m.value,p=new Date(n.begin().getTime()+(n.end().getTime()-n.begin().getTime())/2),v=n.get(t),y=o.default.isNull(v)||o.default.isNaN(v)||o.default.isUndefined(v),g=e.style(t,n);if(!y){var b=i(p),_=a(v),w=o.default.isFunction(e.props.radius)?e.props.radius(n,t):+e.props.radius;e.props.highlight&&c.Event.is(e.props.highlight.event,n)&&t===e.props.highlight.column&&e.props.info&&(l=s.default.createElement(f.default,r({},e.props,{event:n,column:t,marker:"circle",markerRadius:0}))),u.push(s.default.createElement("circle",{key:t+"-"+h,cx:b,cy:_,r:w,style:g,pointerEvents:d,onMouseMove:e.handleHover,onClick:function(r){return e.handleClick(r,n,t)}})),h+=1}},b=n.events()[Symbol.iterator]();!(p=(m=b.next()).done);p=!0)g()}catch(_){v=!0,y=_}finally{try{!p&&b.return&&b.return()}finally{if(v)throw y}}})),s.default.createElement("g",null,u,l)}},{key:"render",value:function(){var e=this;return s.default.createElement("g",null,s.default.createElement("rect",{key:"scatter-hit-rect",ref:function(t){e.eventrect=t},style:{opacity:0},x:0,y:0,width:this.props.width,height:this.props.height,onMouseMove:this.handleHover,onMouseLeave:this.handleHoverLeave}),this.renderScatter())}}]),t}(s.default.Component);t.default=y,y.propTypes={visible:l.default.bool,series:l.default.instanceOf(c.TimeSeries).isRequired,columns:l.default.arrayOf(l.default.string),axis:l.default.string.isRequired,radius:l.default.oneOfType([l.default.number,l.default.func,l.default.instanceOf(h.Styler)]),style:l.default.oneOfType([l.default.object,l.default.func]),infoStyle:l.default.shape({line:l.default.object,box:l.default.object}),infoWidth:l.default.number,infoHeight:l.default.number,infoOffsetY:l.default.number,info:l.default.arrayOf(l.default.shape({label:l.default.string,value:l.default.string})),selected:l.default.arrayOf(l.default.shape({event:l.default.instanceOf(c.Event),column:l.default.string})),onSelectionChange:l.default.func,highlight:l.default.shape({event:l.default.instanceOf(c.Event),column:l.default.string}),onMouseNear:l.default.func,timeScale:l.default.func,yScale:l.default.func,width:l.default.number,height:l.default.number},y.defaultProps={visible:!0,columns:["value"],radius:2,infoStyle:{stroke:"#999",fill:"white",opacity:.9,pointerEvents:"none"},stemStyle:{stroke:"#999",cursor:"crosshair",pointerEvents:"none"},markerStyle:{fill:"#999"},infoWidth:90,infoHeight:30,infoOffsetY:20}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(2)),a=u(n(12)),o=n(18);function u(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var c=function(e){function t(){return s(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"renderBand",value:function(){var e=this.props.timerange,t=this.props.timeScale,n=t.invert(0),r=t.invert(this.props.width),a=new o.TimeRange(n,r),u=void 0;if(u=this.props.style?this.props.style:{fill:"steelblue"},!a.disjoint(e)){var s=e.intersection(a),l=s.begin(),c=s.end(),f=t(l),d=t(c)-f;return d<1&&(d=1),i.default.createElement("rect",{x:f,y:0,width:d,height:this.props.height,style:u})}return i.default.createElement("g",null)}},{key:"render",value:function(){return i.default.createElement("g",null,this.renderBand())}}]),t}(i.default.Component);t.default=c,c.propTypes={visible:a.default.bool,timerange:a.default.instanceOf(o.TimeRange).isRequired,style:a.default.object,timeScale:a.default.func.isRequired,width:a.default.number.isRequired,height:a.default.number.isRequired},c.defaultProps={visible:!0,spacing:1,offset:0,style:{fill:"rgba(70, 130, 180, 0.25);"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(2)),i=a(n(12));function a(e){return e&&e.__esModule?e:{default:e}}var o=function(e){var t=e.width,n=e.height,i=e.value,a=e.detail;return r.default.createElement("g",null,r.default.createElement("rect",{key:"background",x:"0",y:"0",width:t,height:n,style:{fill:"none",stroke:"none"}}),r.default.createElement("text",{key:"value",x:parseInt(t/2,10),y:n/2,style:{fill:"#666",fontSize:20,textAnchor:"middle"}},i),r.default.createElement("text",{key:"detail",x:parseInt(t/2,10),y:n/2,dy:"1.2em",style:{fontSize:12,textAnchor:"middle",fill:"#9a9a9a"}},a))};o.propTypes={visible:i.default.bool,value:i.default.oneOfType([i.default.string,i.default.number]),detail:i.default.string,width:i.default.number,height:i.default.number},o.defaultProps={visible:!0},t.default=o},function(e,t,n){"use strict";n(85);var r=n(2),i=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var a=Symbol.for;i=a("react.element"),t.Fragment=a("react.fragment")}var o=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function l(e,t,n){var r,a={},l=null,c=null;for(r in void 0!==n&&(l=""+n),void 0!==t.key&&(l=""+t.key),void 0!==t.ref&&(c=t.ref),t)u.call(t,r)&&!s.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:l,ref:c,props:a,_owner:o.current}}t.jsx=l,t.jsxs=l},function(e,t,n){"use strict";n.r(t),n.d(t,"Deflate",(function(){return Qt})),n.d(t,"Inflate",(function(){return rn})),n.d(t,"constants",(function(){return sn})),n.d(t,"deflate",(function(){return en})),n.d(t,"deflateRaw",(function(){return tn})),n.d(t,"gzip",(function(){return nn})),n.d(t,"inflate",(function(){return an})),n.d(t,"inflateRaw",(function(){return on})),n.d(t,"ungzip",(function(){return un}));function r(e){for(var t=e.length;--t>=0;)e[t]=0}var i=256,a=286,o=30,u=15,s=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),l=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),c=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),f=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),d=new Array(576);r(d);var h=new Array(60);r(h);var p=new Array(512);r(p);var v=new Array(256);r(v);var y=new Array(29);r(y);var m,g,b,_=new Array(o);function w(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function k(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}r(_);var S=function(e){return e<256?p[e]:p[256+(e>>>7)]},x=function(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},O=function(e,t,n){e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,x(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},M=function(e,t,n){O(e,n[2*t],n[2*t+1])},E=function(e,t){var n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1},T=function(e,t,n){var r,i,a=new Array(16),o=0;for(r=1;r<=u;r++)a[r]=o=o+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=E(a[s]++,s))}},C=function(e){var t;for(t=0;t<a;t++)e.dyn_ltree[2*t]=0;for(t=0;t<o;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0},P=function(e){e.bi_valid>8?x(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},D=function(e,t,n,r){var i=2*t,a=2*n;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]},j=function(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&D(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!D(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},N=function(e,t,n){var r,a,o,u,c=0;if(0!==e.last_lit)do{r=e.pending_buf[e.d_buf+2*c]<<8|e.pending_buf[e.d_buf+2*c+1],a=e.pending_buf[e.l_buf+c],c++,0===r?M(e,a,t):(o=v[a],M(e,o+i+1,t),0!==(u=s[o])&&(a-=y[o],O(e,a,u)),r--,o=S(r),M(e,o,n),0!==(u=l[o])&&(r-=_[o],O(e,r,u)))}while(c<e.last_lit);M(e,256,t)},A=function(e,t){var n,r,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,c=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<l;n++)0!==a[2*n]?(e.heap[++e.heap_len]=c=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=c<2?++c:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=c,n=e.heap_len>>1;n>=1;n--)j(e,a,n);i=l;do{n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],j(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,j(e,a,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,o,s,l=t.dyn_tree,c=t.max_code,f=t.stat_desc.static_tree,d=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,v=t.stat_desc.max_length,y=0;for(a=0;a<=u;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)(a=l[2*l[2*(r=e.heap[n])+1]+1]+1)>v&&(a=v,y++),l[2*r+1]=a,r>c||(e.bl_count[a]++,o=0,r>=p&&(o=h[r-p]),s=l[2*r],e.opt_len+=s*(a+o),d&&(e.static_len+=s*(f[2*r+1]+o)));if(0!==y){do{for(a=v-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[v]--,y-=2}while(y>0);for(a=v;0!==a;a--)for(r=e.bl_count[a];0!==r;)(i=e.heap[--n])>c||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),r--)}}(e,t),T(a,c,e.bl_count)},z=function(e,t,n){var r,i,a=-1,o=t[1],u=0,s=7,l=4;for(0===o&&(s=138,l=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=o,o=t[2*(r+1)+1],++u<s&&i===o||(u<l?e.bl_tree[2*i]+=u:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++):u<=10?e.bl_tree[34]++:e.bl_tree[36]++,u=0,a=i,0===o?(s=138,l=3):i===o?(s=6,l=3):(s=7,l=4))},R=function(e,t,n){var r,i,a=-1,o=t[1],u=0,s=7,l=4;for(0===o&&(s=138,l=3),r=0;r<=n;r++)if(i=o,o=t[2*(r+1)+1],!(++u<s&&i===o)){if(u<l)do{M(e,i,e.bl_tree)}while(0!==--u);else 0!==i?(i!==a&&(M(e,i,e.bl_tree),u--),M(e,16,e.bl_tree),O(e,u-3,2)):u<=10?(M(e,17,e.bl_tree),O(e,u-3,3)):(M(e,18,e.bl_tree),O(e,u-11,7));u=0,a=i,0===o?(s=138,l=3):i===o?(s=6,l=3):(s=7,l=4)}},I=!1,L=function(e,t,n,r){O(e,0+(r?1:0),3),function(e,t,n,r){P(e),r&&(x(e,n),x(e,~n)),e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n}(e,t,n,!0)},U={_tr_init:function(e){I||(!function(){var e,t,n,r,i,f=new Array(16);for(n=0,r=0;r<28;r++)for(y[r]=n,e=0;e<1<<s[r];e++)v[n++]=r;for(v[n-1]=r,i=0,r=0;r<16;r++)for(_[r]=i,e=0;e<1<<l[r];e++)p[i++]=r;for(i>>=7;r<o;r++)for(_[r]=i<<7,e=0;e<1<<l[r]-7;e++)p[256+i++]=r;for(t=0;t<=u;t++)f[t]=0;for(e=0;e<=143;)d[2*e+1]=8,e++,f[8]++;for(;e<=255;)d[2*e+1]=9,e++,f[9]++;for(;e<=279;)d[2*e+1]=7,e++,f[7]++;for(;e<=287;)d[2*e+1]=8,e++,f[8]++;for(T(d,287,f),e=0;e<o;e++)h[2*e+1]=5,h[2*e]=E(e,5);m=new w(d,s,257,a,u),g=new w(h,l,0,o,u),b=new w(new Array(0),c,0,19,7)}(),I=!0),e.l_desc=new k(e.dyn_ltree,m),e.d_desc=new k(e.dyn_dtree,g),e.bl_desc=new k(e.bl_tree,b),e.bi_buf=0,e.bi_valid=0,C(e)},_tr_stored_block:L,_tr_flush_block:function(e,t,n,r){var a,o,u=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<i;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),A(e,e.l_desc),A(e,e.d_desc),u=function(e){var t;for(z(e,e.dyn_ltree,e.l_desc.max_code),z(e,e.dyn_dtree,e.d_desc.max_code),A(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*f[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),a=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=a&&(a=o)):a=o=n+5,n+4<=a&&-1!==t?L(e,t,n,r):4===e.strategy||o===a?(O(e,2+(r?1:0),3),N(e,d,h)):(O(e,4+(r?1:0),3),function(e,t,n,r){var i;for(O(e,t-257,5),O(e,n-1,5),O(e,r-4,4),i=0;i<r;i++)O(e,e.bl_tree[2*f[i]+1],3);R(e,e.dyn_ltree,t-1),R(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,u+1),N(e,e.dyn_ltree,e.dyn_dtree)),C(e),r&&P(e)},_tr_tally:function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(v[n]+i+1)]++,e.dyn_dtree[2*S(t)]++),e.last_lit===e.lit_bufsize-1},_tr_align:function(e){O(e,2,3),M(e,256,d),function(e){16===e.bi_valid?(x(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},F=function(e,t,n,r){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==n;){n-=o=n>2e3?2e3:n;do{a=a+(i=i+t[r++]|0)|0}while(--o);i%=65521,a%=65521}return i|a<<16|0},Y=new Uint32Array(function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}()),B=function(e,t,n,r){var i=Y,a=r+n;e^=-1;for(var o=r;o<a;o++)e=e>>>8^i[255&(e^t[o])];return-1^e},H={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},W={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},q=U._tr_init,V=U._tr_stored_block,Z=U._tr_flush_block,G=U._tr_tally,$=U._tr_align,K=W.Z_NO_FLUSH,X=W.Z_PARTIAL_FLUSH,J=W.Z_FULL_FLUSH,Q=W.Z_FINISH,ee=W.Z_BLOCK,te=W.Z_OK,ne=W.Z_STREAM_END,re=W.Z_STREAM_ERROR,ie=W.Z_DATA_ERROR,ae=W.Z_BUF_ERROR,oe=W.Z_DEFAULT_COMPRESSION,ue=W.Z_FILTERED,se=W.Z_HUFFMAN_ONLY,le=W.Z_RLE,ce=W.Z_FIXED,fe=W.Z_DEFAULT_STRATEGY,de=W.Z_UNKNOWN,he=W.Z_DEFLATED,pe=258,ve=262,ye=103,me=113,ge=666,be=function(e,t){return e.msg=H[t],t},_e=function(e){return(e<<1)-(e>4?9:0)},we=function(e){for(var t=e.length;--t>=0;)e[t]=0},ke=function(e,t,n){return(t<<e.hash_shift^n)&e.hash_mask},Se=function(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))},xe=function(e,t){Z(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Se(e.strm)},Oe=function(e,t){e.pending_buf[e.pending++]=t},Me=function(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},Ee=function(e,t,n,r){var i=e.avail_in;return i>r&&(i=r),0===i?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),1===e.state.wrap?e.adler=F(e.adler,t,i,n):2===e.state.wrap&&(e.adler=B(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},Te=function(e,t){var n,r,i=e.max_chain_length,a=e.strstart,o=e.prev_length,u=e.nice_match,s=e.strstart>e.w_size-ve?e.strstart-(e.w_size-ve):0,l=e.window,c=e.w_mask,f=e.prev,d=e.strstart+pe,h=l[a+o-1],p=l[a+o];e.prev_length>=e.good_match&&(i>>=2),u>e.lookahead&&(u=e.lookahead);do{if(l[(n=t)+o]===p&&l[n+o-1]===h&&l[n]===l[a]&&l[++n]===l[a+1]){a+=2,n++;do{}while(l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&l[++a]===l[++n]&&a<d);if(r=pe-(d-a),a=d-pe,r>o){if(e.match_start=t,o=r,r>=u)break;h=l[a+o-1],p=l[a+o]}}}while((t=f[t&c])>s&&0!==--i);return o<=e.lookahead?o:e.lookahead},Ce=function(e){var t,n,r,i,a,o=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=o+(o-ve)){e.window.set(e.window.subarray(o,o+o),0),e.match_start-=o,e.strstart-=o,e.block_start-=o,t=n=e.hash_size;do{r=e.head[--t],e.head[t]=r>=o?r-o:0}while(--n);t=n=o;do{r=e.prev[--t],e.prev[t]=r>=o?r-o:0}while(--n);i+=o}if(0===e.strm.avail_in)break;if(n=Ee(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=n,e.lookahead+e.insert>=3)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=ke(e,e.ins_h,e.window[a+1]);e.insert&&(e.ins_h=ke(e,e.ins_h,e.window[a+3-1]),e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<ve&&0!==e.strm.avail_in)},Pe=function(e,t){for(var n,r;;){if(e.lookahead<ve){if(Ce(e),e.lookahead<ve&&t===K)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=ke(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-ve&&(e.match_length=Te(e,n)),e.match_length>=3)if(r=G(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=ke(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=ke(e,e.ins_h,e.window[e.strstart+1]);else r=G(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(xe(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===Q?(xe(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(xe(e,!1),0===e.strm.avail_out)?1:2},De=function(e,t){for(var n,r,i;;){if(e.lookahead<ve){if(Ce(e),e.lookahead<ve&&t===K)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=ke(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-ve&&(e.match_length=Te(e,n),e.match_length<=5&&(e.strategy===ue||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,r=G(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=ke(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(xe(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=G(e,0,e.window[e.strstart-1]))&&xe(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=G(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===Q?(xe(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(xe(e,!1),0===e.strm.avail_out)?1:2};function je(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var Ne=[new je(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Ce(e),0===e.lookahead&&t===K)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,xe(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-ve&&(xe(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===Q?(xe(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(xe(e,!1),e.strm.avail_out),1)})),new je(4,4,8,4,Pe),new je(4,5,16,8,Pe),new je(4,6,32,32,Pe),new je(4,4,16,16,De),new je(8,16,32,32,De),new je(8,16,128,128,De),new je(8,32,128,256,De),new je(32,128,258,1024,De),new je(32,258,258,4096,De)];function Ae(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=he,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),we(this.dyn_ltree),we(this.dyn_dtree),we(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),we(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),we(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var ze=function(e){if(!e||!e.state)return be(e,re);e.total_in=e.total_out=0,e.data_type=de;var t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:me,e.adler=2===t.wrap?0:1,t.last_flush=K,q(t),te},Re=function(e){var t,n=ze(e);return n===te&&((t=e.state).window_size=2*t.w_size,we(t.head),t.max_lazy_match=Ne[t.level].max_lazy,t.good_match=Ne[t.level].good_length,t.nice_match=Ne[t.level].nice_length,t.max_chain_length=Ne[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),n},Ie=function(e,t,n,r,i,a){if(!e)return re;var o=1;if(t===oe&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),i<1||i>9||n!==he||r<8||r>15||t<0||t>9||a<0||a>ce)return be(e,re);8===r&&(r=9);var u=new Ae;return e.state=u,u.strm=e,u.wrap=o,u.gzhead=null,u.w_bits=r,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=i+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+3-1)/3),u.window=new Uint8Array(2*u.w_size),u.head=new Uint16Array(u.hash_size),u.prev=new Uint16Array(u.w_size),u.lit_bufsize=1<<i+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new Uint8Array(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=t,u.strategy=a,u.method=n,Re(e)},Le={deflateInit:function(e,t){return Ie(e,t,he,15,8,fe)},deflateInit2:Ie,deflateReset:Re,deflateResetKeep:ze,deflateSetHeader:function(e,t){return e&&e.state?2!==e.state.wrap?re:(e.state.gzhead=t,te):re},deflate:function(e,t){var n,r;if(!e||!e.state||t>ee||t<0)return e?be(e,re):re;var i=e.state;if(!e.output||!e.input&&0!==e.avail_in||i.status===ge&&t!==Q)return be(e,0===e.avail_out?ae:re);i.strm=e;var a=i.last_flush;if(i.last_flush=t,42===i.status)if(2===i.wrap)e.adler=0,Oe(i,31),Oe(i,139),Oe(i,8),i.gzhead?(Oe(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),Oe(i,255&i.gzhead.time),Oe(i,i.gzhead.time>>8&255),Oe(i,i.gzhead.time>>16&255),Oe(i,i.gzhead.time>>24&255),Oe(i,9===i.level?2:i.strategy>=se||i.level<2?4:0),Oe(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(Oe(i,255&i.gzhead.extra.length),Oe(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=B(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(Oe(i,0),Oe(i,0),Oe(i,0),Oe(i,0),Oe(i,0),Oe(i,9===i.level?2:i.strategy>=se||i.level<2?4:0),Oe(i,3),i.status=me);else{var o=he+(i.w_bits-8<<4)<<8;o|=(i.strategy>=se||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(o|=32),o+=31-o%31,i.status=me,Me(i,o),0!==i.strstart&&(Me(i,e.adler>>>16),Me(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(n=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>n&&(e.adler=B(e.adler,i.pending_buf,i.pending-n,n)),Se(e),n=i.pending,i.pending!==i.pending_buf_size));)Oe(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>n&&(e.adler=B(e.adler,i.pending_buf,i.pending-n,n)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=B(e.adler,i.pending_buf,i.pending-n,n)),Se(e),n=i.pending,i.pending===i.pending_buf_size)){r=1;break}r=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,Oe(i,r)}while(0!==r);i.gzhead.hcrc&&i.pending>n&&(e.adler=B(e.adler,i.pending_buf,i.pending-n,n)),0===r&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){n=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>n&&(e.adler=B(e.adler,i.pending_buf,i.pending-n,n)),Se(e),n=i.pending,i.pending===i.pending_buf_size)){r=1;break}r=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,Oe(i,r)}while(0!==r);i.gzhead.hcrc&&i.pending>n&&(e.adler=B(e.adler,i.pending_buf,i.pending-n,n)),0===r&&(i.status=ye)}else i.status=ye;if(i.status===ye&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&Se(e),i.pending+2<=i.pending_buf_size&&(Oe(i,255&e.adler),Oe(i,e.adler>>8&255),e.adler=0,i.status=me)):i.status=me),0!==i.pending){if(Se(e),0===e.avail_out)return i.last_flush=-1,te}else if(0===e.avail_in&&_e(t)<=_e(a)&&t!==Q)return be(e,ae);if(i.status===ge&&0!==e.avail_in)return be(e,ae);if(0!==e.avail_in||0!==i.lookahead||t!==K&&i.status!==ge){var u=i.strategy===se?function(e,t){for(var n;;){if(0===e.lookahead&&(Ce(e),0===e.lookahead)){if(t===K)return 1;break}if(e.match_length=0,n=G(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(xe(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===Q?(xe(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(xe(e,!1),0===e.strm.avail_out)?1:2}(i,t):i.strategy===le?function(e,t){for(var n,r,i,a,o=e.window;;){if(e.lookahead<=pe){if(Ce(e),e.lookahead<=pe&&t===K)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(r=o[i=e.strstart-1])===o[++i]&&r===o[++i]&&r===o[++i]){a=e.strstart+pe;do{}while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&i<a);e.match_length=pe-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=G(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=G(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(xe(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===Q?(xe(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(xe(e,!1),0===e.strm.avail_out)?1:2}(i,t):Ne[i.level].func(i,t);if(3!==u&&4!==u||(i.status=ge),1===u||3===u)return 0===e.avail_out&&(i.last_flush=-1),te;if(2===u&&(t===X?$(i):t!==ee&&(V(i,0,0,!1),t===J&&(we(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),Se(e),0===e.avail_out))return i.last_flush=-1,te}return t!==Q?te:i.wrap<=0?ne:(2===i.wrap?(Oe(i,255&e.adler),Oe(i,e.adler>>8&255),Oe(i,e.adler>>16&255),Oe(i,e.adler>>24&255),Oe(i,255&e.total_in),Oe(i,e.total_in>>8&255),Oe(i,e.total_in>>16&255),Oe(i,e.total_in>>24&255)):(Me(i,e.adler>>>16),Me(i,65535&e.adler)),Se(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?te:ne)},deflateEnd:function(e){if(!e||!e.state)return re;var t=e.state.status;return 42!==t&&69!==t&&73!==t&&91!==t&&t!==ye&&t!==me&&t!==ge?be(e,re):(e.state=null,t===me?be(e,ie):te)},deflateSetDictionary:function(e,t){var n=t.length;if(!e||!e.state)return re;var r=e.state,i=r.wrap;if(2===i||1===i&&42!==r.status||r.lookahead)return re;if(1===i&&(e.adler=F(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){0===i&&(we(r.head),r.strstart=0,r.block_start=0,r.insert=0);var a=new Uint8Array(r.w_size);a.set(t.subarray(n-r.w_size,n),0),t=a,n=r.w_size}var o=e.avail_in,u=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,Ce(r);r.lookahead>=3;){var l=r.strstart,c=r.lookahead-2;do{r.ins_h=ke(r,r.ins_h,r.window[l+3-1]),r.prev[l&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=l,l++}while(--c);r.strstart=l,r.lookahead=2,Ce(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=u,e.input=s,e.avail_in=o,r.wrap=i,te},deflateInfo:"pako deflate (from Nodeca project)"},Ue=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},Fe=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!==typeof n)throw new TypeError(n+"must be non-object");for(var r in n)Ue(n,r)&&(e[r]=n[r])}}return e},Ye=function(e){for(var t=0,n=0,r=e.length;n<r;n++)t+=e[n].length;for(var i=new Uint8Array(t),a=0,o=0,u=e.length;a<u;a++){var s=e[a];i.set(s,o),o+=s.length}return i},Be=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(cn){Be=!1}for(var He=new Uint8Array(256),We=0;We<256;We++)He[We]=We>=252?6:We>=248?5:We>=240?4:We>=224?3:We>=192?2:1;He[254]=He[254]=1;var qe=function(e){var t,n,r,i,a,o=e.length,u=0;for(i=0;i<o;i++)55296===(64512&(n=e.charCodeAt(i)))&&i+1<o&&56320===(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),u+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(u),a=0,i=0;a<u;i++)55296===(64512&(n=e.charCodeAt(i)))&&i+1<o&&56320===(64512&(r=e.charCodeAt(i+1)))&&(n=65536+(n-55296<<10)+(r-56320),i++),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|63&n):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|63&n):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|63&n);return t},Ve=function(e,t){var n,r,i=t||e.length,a=new Array(2*i);for(r=0,n=0;n<i;){var o=e[n++];if(o<128)a[r++]=o;else{var u=He[o];if(u>4)a[r++]=65533,n+=u-1;else{for(o&=2===u?31:3===u?15:7;u>1&&n<i;)o=o<<6|63&e[n++],u--;u>1?a[r++]=65533:o<65536?a[r++]=o:(o-=65536,a[r++]=55296|o>>10&1023,a[r++]=56320|1023&o)}}}return function(e,t){if(t<65534&&e.subarray&&Be)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));for(var n="",r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n}(a,r)},Ze=function(e,t){(t=t||e.length)>e.length&&(t=e.length);for(var n=t-1;n>=0&&128===(192&e[n]);)n--;return n<0||0===n?t:n+He[e[n]]>t?n:t};var Ge=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0},$e=Object.prototype.toString,Ke=W.Z_NO_FLUSH,Xe=W.Z_SYNC_FLUSH,Je=W.Z_FULL_FLUSH,Qe=W.Z_FINISH,et=W.Z_OK,tt=W.Z_STREAM_END,nt=W.Z_DEFAULT_COMPRESSION,rt=W.Z_DEFAULT_STRATEGY,it=W.Z_DEFLATED;function at(e){this.options=Fe({level:nt,method:it,chunkSize:16384,windowBits:15,memLevel:8,strategy:rt},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ge,this.strm.avail_out=0;var n=Le.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==et)throw new Error(H[n]);if(t.header&&Le.deflateSetHeader(this.strm,t.header),t.dictionary){var r;if(r="string"===typeof t.dictionary?qe(t.dictionary):"[object ArrayBuffer]"===$e.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=Le.deflateSetDictionary(this.strm,r))!==et)throw new Error(H[n]);this._dict_set=!0}}function ot(e,t){var n=new at(t);if(n.push(e,!0),n.err)throw n.msg||H[n.err];return n.result}at.prototype.push=function(e,t){var n,r,i=this.strm,a=this.options.chunkSize;if(this.ended)return!1;for(r=t===~~t?t:!0===t?Qe:Ke,"string"===typeof e?i.input=qe(e):"[object ArrayBuffer]"===$e.call(e)?i.input=new Uint8Array(e):i.input=e,i.next_in=0,i.avail_in=i.input.length;;)if(0===i.avail_out&&(i.output=new Uint8Array(a),i.next_out=0,i.avail_out=a),(r===Xe||r===Je)&&i.avail_out<=6)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else{if((n=Le.deflate(i,r))===tt)return i.next_out>0&&this.onData(i.output.subarray(0,i.next_out)),n=Le.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===et;if(0!==i.avail_out){if(r>0&&i.next_out>0)this.onData(i.output.subarray(0,i.next_out)),i.avail_out=0;else if(0===i.avail_in)break}else this.onData(i.output)}return!0},at.prototype.onData=function(e){this.chunks.push(e)},at.prototype.onEnd=function(e){e===et&&(this.result=Ye(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var ut={Deflate:at,deflate:ot,deflateRaw:function(e,t){return(t=t||{}).raw=!0,ot(e,t)},gzip:function(e,t){return(t=t||{}).gzip=!0,ot(e,t)},constants:W},st=function(e,t){var n,r,i,a,o,u,s,l,c,f,d,h,p,v,y,m,g,b,_,w,k,S,x,O,M=e.state;n=e.next_in,x=e.input,r=n+(e.avail_in-5),i=e.next_out,O=e.output,a=i-(t-e.avail_out),o=i+(e.avail_out-257),u=M.dmax,s=M.wsize,l=M.whave,c=M.wnext,f=M.window,d=M.hold,h=M.bits,p=M.lencode,v=M.distcode,y=(1<<M.lenbits)-1,m=(1<<M.distbits)-1;e:do{h<15&&(d+=x[n++]<<h,h+=8,d+=x[n++]<<h,h+=8),g=p[d&y];t:for(;;){if(d>>>=b=g>>>24,h-=b,0===(b=g>>>16&255))O[i++]=65535&g;else{if(!(16&b)){if(0===(64&b)){g=p[(65535&g)+(d&(1<<b)-1)];continue t}if(32&b){M.mode=12;break e}e.msg="invalid literal/length code",M.mode=30;break e}_=65535&g,(b&=15)&&(h<b&&(d+=x[n++]<<h,h+=8),_+=d&(1<<b)-1,d>>>=b,h-=b),h<15&&(d+=x[n++]<<h,h+=8,d+=x[n++]<<h,h+=8),g=v[d&m];n:for(;;){if(d>>>=b=g>>>24,h-=b,!(16&(b=g>>>16&255))){if(0===(64&b)){g=v[(65535&g)+(d&(1<<b)-1)];continue n}e.msg="invalid distance code",M.mode=30;break e}if(w=65535&g,h<(b&=15)&&(d+=x[n++]<<h,(h+=8)<b&&(d+=x[n++]<<h,h+=8)),(w+=d&(1<<b)-1)>u){e.msg="invalid distance too far back",M.mode=30;break e}if(d>>>=b,h-=b,w>(b=i-a)){if((b=w-b)>l&&M.sane){e.msg="invalid distance too far back",M.mode=30;break e}if(k=0,S=f,0===c){if(k+=s-b,b<_){_-=b;do{O[i++]=f[k++]}while(--b);k=i-w,S=O}}else if(c<b){if(k+=s+c-b,(b-=c)<_){_-=b;do{O[i++]=f[k++]}while(--b);if(k=0,c<_){_-=b=c;do{O[i++]=f[k++]}while(--b);k=i-w,S=O}}}else if(k+=c-b,b<_){_-=b;do{O[i++]=f[k++]}while(--b);k=i-w,S=O}for(;_>2;)O[i++]=S[k++],O[i++]=S[k++],O[i++]=S[k++],_-=3;_&&(O[i++]=S[k++],_>1&&(O[i++]=S[k++]))}else{k=i-w;do{O[i++]=O[k++],O[i++]=O[k++],O[i++]=O[k++],_-=3}while(_>2);_&&(O[i++]=O[k++],_>1&&(O[i++]=O[k++]))}break}}break}}while(n<r&&i<o);n-=_=h>>3,d&=(1<<(h-=_<<3))-1,e.next_in=n,e.next_out=i,e.avail_in=n<r?r-n+5:5-(n-r),e.avail_out=i<o?o-i+257:257-(i-o),M.hold=d,M.bits=h},lt=15,ct=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),ft=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),dt=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),ht=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),pt=function(e,t,n,r,i,a,o,u){var s,l,c,f,d,h,p,v,y,m=u.bits,g=0,b=0,_=0,w=0,k=0,S=0,x=0,O=0,M=0,E=0,T=null,C=0,P=new Uint16Array(16),D=new Uint16Array(16),j=null,N=0;for(g=0;g<=lt;g++)P[g]=0;for(b=0;b<r;b++)P[t[n+b]]++;for(k=m,w=lt;w>=1&&0===P[w];w--);if(k>w&&(k=w),0===w)return i[a++]=20971520,i[a++]=20971520,u.bits=1,0;for(_=1;_<w&&0===P[_];_++);for(k<_&&(k=_),O=1,g=1;g<=lt;g++)if(O<<=1,(O-=P[g])<0)return-1;if(O>0&&(0===e||1!==w))return-1;for(D[1]=0,g=1;g<lt;g++)D[g+1]=D[g]+P[g];for(b=0;b<r;b++)0!==t[n+b]&&(o[D[t[n+b]]++]=b);if(0===e?(T=j=o,h=19):1===e?(T=ct,C-=257,j=ft,N-=257,h=256):(T=dt,j=ht,h=-1),E=0,b=0,g=_,d=a,S=k,x=0,c=-1,f=(M=1<<k)-1,1===e&&M>852||2===e&&M>592)return 1;for(;;){p=g-x,o[b]<h?(v=0,y=o[b]):o[b]>h?(v=j[N+o[b]],y=T[C+o[b]]):(v=96,y=0),s=1<<g-x,_=l=1<<S;do{i[d+(E>>x)+(l-=s)]=p<<24|v<<16|y|0}while(0!==l);for(s=1<<g-1;E&s;)s>>=1;if(0!==s?(E&=s-1,E+=s):E=0,b++,0===--P[g]){if(g===w)break;g=t[n+o[b]]}if(g>k&&(E&f)!==c){for(0===x&&(x=k),d+=_,O=1<<(S=g-x);S+x<w&&!((O-=P[S+x])<=0);)S++,O<<=1;if(M+=1<<S,1===e&&M>852||2===e&&M>592)return 1;i[c=E&f]=k<<24|S<<16|d-a|0}}return 0!==E&&(i[d+E]=g-x<<24|64<<16|0),u.bits=k,0},vt=W.Z_FINISH,yt=W.Z_BLOCK,mt=W.Z_TREES,gt=W.Z_OK,bt=W.Z_STREAM_END,_t=W.Z_NEED_DICT,wt=W.Z_STREAM_ERROR,kt=W.Z_DATA_ERROR,St=W.Z_MEM_ERROR,xt=W.Z_BUF_ERROR,Ot=W.Z_DEFLATED,Mt=12,Et=30,Tt=function(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)};function Ct(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var Pt,Dt,jt=function(e){if(!e||!e.state)return wt;var t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,gt},Nt=function(e){if(!e||!e.state)return wt;var t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,jt(e)},At=function(e,t){var n;if(!e||!e.state)return wt;var r=e.state;return t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?wt:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Nt(e))},zt=function(e,t){if(!e)return wt;var n=new Ct;e.state=n,n.window=null;var r=At(e,t);return r!==gt&&(e.state=null),r},Rt=!0,It=function(e){if(Rt){Pt=new Int32Array(512),Dt=new Int32Array(32);for(var t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(pt(1,e.lens,0,288,Pt,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;pt(2,e.lens,0,32,Dt,0,e.work,{bits:5}),Rt=!1}e.lencode=Pt,e.lenbits=9,e.distcode=Dt,e.distbits=5},Lt=function(e,t,n,r){var i,a=e.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),r>=a.wsize?(a.window.set(t.subarray(n-a.wsize,n),0),a.wnext=0,a.whave=a.wsize):((i=a.wsize-a.wnext)>r&&(i=r),a.window.set(t.subarray(n-r,n-r+i),a.wnext),(r-=i)?(a.window.set(t.subarray(n-r,n),0),a.wnext=r,a.whave=a.wsize):(a.wnext+=i,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=i))),0},Ut={inflateReset:Nt,inflateReset2:At,inflateResetKeep:jt,inflateInit:function(e){return zt(e,15)},inflateInit2:zt,inflate:function(e,t){var n,r,i,a,o,u,s,l,c,f,d,h,p,v,y,m,g,b,_,w,k,S,x,O,M=0,E=new Uint8Array(4),T=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return wt;(n=e.state).mode===Mt&&(n.mode=13),o=e.next_out,i=e.output,s=e.avail_out,a=e.next_in,r=e.input,u=e.avail_in,l=n.hold,c=n.bits,f=u,d=s,S=gt;e:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;c<16;){if(0===u)break e;u--,l+=r[a++]<<c,c+=8}if(2&n.wrap&&35615===l){n.check=0,E[0]=255&l,E[1]=l>>>8&255,n.check=B(n.check,E,2,0),l=0,c=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&l)<<8)+(l>>8))%31){e.msg="incorrect header check",n.mode=Et;break}if((15&l)!==Ot){e.msg="unknown compression method",n.mode=Et;break}if(c-=4,k=8+(15&(l>>>=4)),0===n.wbits)n.wbits=k;else if(k>n.wbits){e.msg="invalid window size",n.mode=Et;break}n.dmax=1<<n.wbits,e.adler=n.check=1,n.mode=512&l?10:Mt,l=0,c=0;break;case 2:for(;c<16;){if(0===u)break e;u--,l+=r[a++]<<c,c+=8}if(n.flags=l,(255&n.flags)!==Ot){e.msg="unknown compression method",n.mode=Et;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=Et;break}n.head&&(n.head.text=l>>8&1),512&n.flags&&(E[0]=255&l,E[1]=l>>>8&255,n.check=B(n.check,E,2,0)),l=0,c=0,n.mode=3;case 3:for(;c<32;){if(0===u)break e;u--,l+=r[a++]<<c,c+=8}n.head&&(n.head.time=l),512&n.flags&&(E[0]=255&l,E[1]=l>>>8&255,E[2]=l>>>16&255,E[3]=l>>>24&255,n.check=B(n.check,E,4,0)),l=0,c=0,n.mode=4;case 4:for(;c<16;){if(0===u)break e;u--,l+=r[a++]<<c,c+=8}n.head&&(n.head.xflags=255&l,n.head.os=l>>8),512&n.flags&&(E[0]=255&l,E[1]=l>>>8&255,n.check=B(n.check,E,2,0)),l=0,c=0,n.mode=5;case 5:if(1024&n.flags){for(;c<16;){if(0===u)break e;u--,l+=r[a++]<<c,c+=8}n.length=l,n.head&&(n.head.extra_len=l),512&n.flags&&(E[0]=255&l,E[1]=l>>>8&255,n.check=B(n.check,E,2,0)),l=0,c=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((h=n.length)>u&&(h=u),h&&(n.head&&(k=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(a,a+h),k)),512&n.flags&&(n.check=B(n.check,r,h,a)),u-=h,a+=h,n.length-=h),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===u)break e;h=0;do{k=r[a+h++],n.head&&k&&n.length<65536&&(n.head.name+=String.fromCharCode(k))}while(k&&h<u);if(512&n.flags&&(n.check=B(n.check,r,h,a)),u-=h,a+=h,k)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===u)break e;h=0;do{k=r[a+h++],n.head&&k&&n.length<65536&&(n.head.comment+=String.fromCharCode(k))}while(k&&h<u);if(512&n.flags&&(n.check=B(n.check,r,h,a)),u-=h,a+=h,k)break e}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;c<16;){if(0===u)break e;u--,l+=r[a++]<<c,c+=8}if(l!==(65535&n.check)){e.msg="header crc mismatch",n.mode=Et;break}l=0,c=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Mt;break;case 10:for(;c<32;){if(0===u)break e;u--,l+=r[a++]<<c,c+=8}e.adler=n.check=Tt(l),l=0,c=0,n.mode=11;case 11:if(0===n.havedict)return e.next_out=o,e.avail_out=s,e.next_in=a,e.avail_in=u,n.hold=l,n.bits=c,_t;e.adler=n.check=1,n.mode=Mt;case Mt:if(t===yt||t===mt)break e;case 13:if(n.last){l>>>=7&c,c-=7&c,n.mode=27;break}for(;c<3;){if(0===u)break e;u--,l+=r[a++]<<c,c+=8}switch(n.last=1&l,c-=1,3&(l>>>=1)){case 0:n.mode=14;break;case 1:if(It(n),n.mode=20,t===mt){l>>>=2,c-=2;break e}break;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=Et}l>>>=2,c-=2;break;case 14:for(l>>>=7&c,c-=7&c;c<32;){if(0===u)break e;u--,l+=r[a++]<<c,c+=8}if((65535&l)!==(l>>>16^65535)){e.msg="invalid stored block lengths",n.mode=Et;break}if(n.length=65535&l,l=0,c=0,n.mode=15,t===mt)break e;case 15:n.mode=16;case 16:if(h=n.length){if(h>u&&(h=u),h>s&&(h=s),0===h)break e;i.set(r.subarray(a,a+h),o),u-=h,a+=h,s-=h,o+=h,n.length-=h;break}n.mode=Mt;break;case 17:for(;c<14;){if(0===u)break e;u--,l+=r[a++]<<c,c+=8}if(n.nlen=257+(31&l),l>>>=5,c-=5,n.ndist=1+(31&l),l>>>=5,c-=5,n.ncode=4+(15&l),l>>>=4,c-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Et;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;c<3;){if(0===u)break e;u--,l+=r[a++]<<c,c+=8}n.lens[T[n.have++]]=7&l,l>>>=3,c-=3}for(;n.have<19;)n.lens[T[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,x={bits:n.lenbits},S=pt(0,n.lens,0,19,n.lencode,0,n.work,x),n.lenbits=x.bits,S){e.msg="invalid code lengths set",n.mode=Et;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;m=(M=n.lencode[l&(1<<n.lenbits)-1])>>>16&255,g=65535&M,!((y=M>>>24)<=c);){if(0===u)break e;u--,l+=r[a++]<<c,c+=8}if(g<16)l>>>=y,c-=y,n.lens[n.have++]=g;else{if(16===g){for(O=y+2;c<O;){if(0===u)break e;u--,l+=r[a++]<<c,c+=8}if(l>>>=y,c-=y,0===n.have){e.msg="invalid bit length repeat",n.mode=Et;break}k=n.lens[n.have-1],h=3+(3&l),l>>>=2,c-=2}else if(17===g){for(O=y+3;c<O;){if(0===u)break e;u--,l+=r[a++]<<c,c+=8}c-=y,k=0,h=3+(7&(l>>>=y)),l>>>=3,c-=3}else{for(O=y+7;c<O;){if(0===u)break e;u--,l+=r[a++]<<c,c+=8}c-=y,k=0,h=11+(127&(l>>>=y)),l>>>=7,c-=7}if(n.have+h>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Et;break}for(;h--;)n.lens[n.have++]=k}}if(n.mode===Et)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=Et;break}if(n.lenbits=9,x={bits:n.lenbits},S=pt(1,n.lens,0,n.nlen,n.lencode,0,n.work,x),n.lenbits=x.bits,S){e.msg="invalid literal/lengths set",n.mode=Et;break}if(n.distbits=6,n.distcode=n.distdyn,x={bits:n.distbits},S=pt(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,x),n.distbits=x.bits,S){e.msg="invalid distances set",n.mode=Et;break}if(n.mode=20,t===mt)break e;case 20:n.mode=21;case 21:if(u>=6&&s>=258){e.next_out=o,e.avail_out=s,e.next_in=a,e.avail_in=u,n.hold=l,n.bits=c,st(e,d),o=e.next_out,i=e.output,s=e.avail_out,a=e.next_in,r=e.input,u=e.avail_in,l=n.hold,c=n.bits,n.mode===Mt&&(n.back=-1);break}for(n.back=0;m=(M=n.lencode[l&(1<<n.lenbits)-1])>>>16&255,g=65535&M,!((y=M>>>24)<=c);){if(0===u)break e;u--,l+=r[a++]<<c,c+=8}if(m&&0===(240&m)){for(b=y,_=m,w=g;m=(M=n.lencode[w+((l&(1<<b+_)-1)>>b)])>>>16&255,g=65535&M,!(b+(y=M>>>24)<=c);){if(0===u)break e;u--,l+=r[a++]<<c,c+=8}l>>>=b,c-=b,n.back+=b}if(l>>>=y,c-=y,n.back+=y,n.length=g,0===m){n.mode=26;break}if(32&m){n.back=-1,n.mode=Mt;break}if(64&m){e.msg="invalid literal/length code",n.mode=Et;break}n.extra=15&m,n.mode=22;case 22:if(n.extra){for(O=n.extra;c<O;){if(0===u)break e;u--,l+=r[a++]<<c,c+=8}n.length+=l&(1<<n.extra)-1,l>>>=n.extra,c-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;m=(M=n.distcode[l&(1<<n.distbits)-1])>>>16&255,g=65535&M,!((y=M>>>24)<=c);){if(0===u)break e;u--,l+=r[a++]<<c,c+=8}if(0===(240&m)){for(b=y,_=m,w=g;m=(M=n.distcode[w+((l&(1<<b+_)-1)>>b)])>>>16&255,g=65535&M,!(b+(y=M>>>24)<=c);){if(0===u)break e;u--,l+=r[a++]<<c,c+=8}l>>>=b,c-=b,n.back+=b}if(l>>>=y,c-=y,n.back+=y,64&m){e.msg="invalid distance code",n.mode=Et;break}n.offset=g,n.extra=15&m,n.mode=24;case 24:if(n.extra){for(O=n.extra;c<O;){if(0===u)break e;u--,l+=r[a++]<<c,c+=8}n.offset+=l&(1<<n.extra)-1,l>>>=n.extra,c-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Et;break}n.mode=25;case 25:if(0===s)break e;if(h=d-s,n.offset>h){if((h=n.offset-h)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Et;break}h>n.wnext?(h-=n.wnext,p=n.wsize-h):p=n.wnext-h,h>n.length&&(h=n.length),v=n.window}else v=i,p=o-n.offset,h=n.length;h>s&&(h=s),s-=h,n.length-=h;do{i[o++]=v[p++]}while(--h);0===n.length&&(n.mode=21);break;case 26:if(0===s)break e;i[o++]=n.length,s--,n.mode=21;break;case 27:if(n.wrap){for(;c<32;){if(0===u)break e;u--,l|=r[a++]<<c,c+=8}if(d-=s,e.total_out+=d,n.total+=d,d&&(e.adler=n.check=n.flags?B(n.check,i,d,o-d):F(n.check,i,d,o-d)),d=s,(n.flags?l:Tt(l))!==n.check){e.msg="incorrect data check",n.mode=Et;break}l=0,c=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;c<32;){if(0===u)break e;u--,l+=r[a++]<<c,c+=8}if(l!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=Et;break}l=0,c=0}n.mode=29;case 29:S=bt;break e;case Et:S=kt;break e;case 31:return St;case 32:default:return wt}return e.next_out=o,e.avail_out=s,e.next_in=a,e.avail_in=u,n.hold=l,n.bits=c,(n.wsize||d!==e.avail_out&&n.mode<Et&&(n.mode<27||t!==vt))&&Lt(e,e.output,e.next_out,d-e.avail_out),f-=e.avail_in,d-=e.avail_out,e.total_in+=f,e.total_out+=d,n.total+=d,n.wrap&&d&&(e.adler=n.check=n.flags?B(n.check,i,d,e.next_out-d):F(n.check,i,d,e.next_out-d)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Mt?128:0)+(20===n.mode||15===n.mode?256:0),(0===f&&0===d||t===vt)&&S===gt&&(S=xt),S},inflateEnd:function(e){if(!e||!e.state)return wt;var t=e.state;return t.window&&(t.window=null),e.state=null,gt},inflateGetHeader:function(e,t){if(!e||!e.state)return wt;var n=e.state;return 0===(2&n.wrap)?wt:(n.head=t,t.done=!1,gt)},inflateSetDictionary:function(e,t){var n,r=t.length;return e&&e.state?0!==(n=e.state).wrap&&11!==n.mode?wt:11===n.mode&&F(1,t,r,0)!==n.check?kt:Lt(e,t,r,r)?(n.mode=31,St):(n.havedict=1,gt):wt},inflateInfo:"pako inflate (from Nodeca project)"};var Ft=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1},Yt=Object.prototype.toString,Bt=W.Z_NO_FLUSH,Ht=W.Z_FINISH,Wt=W.Z_OK,qt=W.Z_STREAM_END,Vt=W.Z_NEED_DICT,Zt=W.Z_STREAM_ERROR,Gt=W.Z_DATA_ERROR,$t=W.Z_MEM_ERROR;function Kt(e){this.options=Fe({chunkSize:65536,windowBits:15,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0===(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ge,this.strm.avail_out=0;var n=Ut.inflateInit2(this.strm,t.windowBits);if(n!==Wt)throw new Error(H[n]);if(this.header=new Ft,Ut.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"===typeof t.dictionary?t.dictionary=qe(t.dictionary):"[object ArrayBuffer]"===Yt.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Ut.inflateSetDictionary(this.strm,t.dictionary))!==Wt))throw new Error(H[n])}function Xt(e,t){var n=new Kt(t);if(n.push(e),n.err)throw n.msg||H[n.err];return n.result}Kt.prototype.push=function(e,t){var n,r,i,a=this.strm,o=this.options.chunkSize,u=this.options.dictionary;if(this.ended)return!1;for(r=t===~~t?t:!0===t?Ht:Bt,"[object ArrayBuffer]"===Yt.call(e)?a.input=new Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;;){for(0===a.avail_out&&(a.output=new Uint8Array(o),a.next_out=0,a.avail_out=o),(n=Ut.inflate(a,r))===Vt&&u&&((n=Ut.inflateSetDictionary(a,u))===Wt?n=Ut.inflate(a,r):n===Gt&&(n=Vt));a.avail_in>0&&n===qt&&a.state.wrap>0&&0!==e[a.next_in];)Ut.inflateReset(a),n=Ut.inflate(a,r);switch(n){case Zt:case Gt:case Vt:case $t:return this.onEnd(n),this.ended=!0,!1}if(i=a.avail_out,a.next_out&&(0===a.avail_out||n===qt))if("string"===this.options.to){var s=Ze(a.output,a.next_out),l=a.next_out-s,c=Ve(a.output,s);a.next_out=l,a.avail_out=o-l,l&&a.output.set(a.output.subarray(s,s+l),0),this.onData(c)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(n!==Wt||0!==i){if(n===qt)return n=Ut.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,!0;if(0===a.avail_in)break}}return!0},Kt.prototype.onData=function(e){this.chunks.push(e)},Kt.prototype.onEnd=function(e){e===Wt&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=Ye(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};var Jt={Inflate:Kt,inflate:Xt,inflateRaw:function(e,t){return(t=t||{}).raw=!0,Xt(e,t)},ungzip:Xt,constants:W},Qt=ut.Deflate,en=ut.deflate,tn=ut.deflateRaw,nn=ut.gzip,rn=Jt.Inflate,an=Jt.inflate,on=Jt.inflateRaw,un=Jt.ungzip,sn=W,ln={Deflate:Qt,deflate:en,deflateRaw:tn,gzip:nn,Inflate:rn,inflate:an,inflateRaw:on,ungzip:un,constants:sn};t.default=ln}]]);
  //# sourceMappingURL=2.05526c47.chunk.js.map