UNPKG

react-colorscales

Version:

A React component for picking colorscales based on Chroma.js

1 lines 188 kB
!function(e,t){if("object"===typeof exports&&"object"===typeof module)module.exports=t(require("react"),require("react-dom"));else if("function"===typeof define&&define.amd)define(["react","react-dom"],t);else{var n="object"===typeof exports?t(require("react"),require("react-dom")):t(e.react,e["react-dom"]);for(var r in n)("object"===typeof exports?exports:e)[r]=n[r]}}(this,function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=83)}([function(t,n){t.exports=e},function(e,t,n){"use strict";t.__esModule=!0;var r=n(87),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=o.default||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}},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r};e.exports=n(121)(o,!0)}else e.exports=n(123)()}).call(t,n(9))},function(e,t){var n=e.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(25),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"===typeof t?"undefined":(0,o.default)(t))&&"function"!==typeof t?e:t}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(114),i=r(o),a=n(118),s=r(a),u=n(25),c=r(u);t.default=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"===typeof t?"undefined":(0,c.default)(t)));e.prototype=(0,s.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i.default?(0,i.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(71),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=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),(0,o.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){var r=n(40)("wks"),o=n(28),i=n(12).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function i(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function a(){b&&d&&(b=!1,d.length?h=d.concat(h):m=-1,h.length&&s())}function s(){if(!b){var e=o(a);b=!0;for(var t=h.length;t;){for(d=h,h=[];++m<t;)d&&d[m].run();m=-1,t=h.length}d=null,b=!1,i(e)}}function u(e,t){this.fun=e,this.array=t}function c(){}var l,f,p=e.exports={};!function(){try{l="function"===typeof setTimeout?setTimeout:n}catch(e){l=n}try{f="function"===typeof clearTimeout?clearTimeout:r}catch(e){f=r}}();var d,h=[],b=!1,m=-1;p.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];h.push(new u(e,t)),1!==h.length||b||o(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=c,p.addListener=c,p.once=c,p.off=c,p.removeListener=c,p.removeAllListeners=c,p.emit=c,p.prependListener=c,p.prependOnceListener=c,p.listeners=function(e){return[]},p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,n){e.exports=t},function(e,t,n){var r=n(12),o=n(3),i=n(34),a=n(17),s=function(e,t,n){var u,c,l,f=e&s.F,p=e&s.G,d=e&s.S,h=e&s.P,b=e&s.B,m=e&s.W,g=p?o:o[t]||(o[t]={}),v=g.prototype,y=p?r:d?r[t]:(r[t]||{}).prototype;p&&(n=t);for(u in n)(c=!f&&y&&void 0!==y[u])&&u in g||(l=c?y[u]:n[u],g[u]=p&&"function"!=typeof y[u]?n[u]:b&&c?i(l,r):m&&y[u]==l?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(l):h&&"function"==typeof l?i(Function.call,l):l,h&&((g.virtual||(g.virtual={}))[u]=l,e&s.R&&v&&!v[u]&&a(v,u,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(18),o=n(59),i=n(35),a=Object.defineProperty;t.f=n(14)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(19)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(62),o=n(37);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(13),o=n(23);e.exports=n(14)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(22);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";function r(e,t){return e+t}function o(e,t,n){var r=n;{if("object"!==("undefined"===typeof t?"undefined":T(t)))return"undefined"!==typeof r?("number"===typeof r&&(r+="px"),void(e.style[t]=r)):P(e,t);for(var i in t)t.hasOwnProperty(i)&&o(e,i,t[i])}}function i(e){var t=void 0,n=void 0,r=void 0,o=e.ownerDocument,i=o.body,a=o&&o.documentElement;return t=e.getBoundingClientRect(),n=t.left,r=t.top,n-=a.clientLeft||i.clientLeft||0,r-=a.clientTop||i.clientTop||0,{left:n,top:r}}function a(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!==typeof n){var o=e.document;n=o.documentElement[r],"number"!==typeof n&&(n=o.body[r])}return n}function s(e){return a(e)}function u(e){return a(e,!0)}function c(e){var t=i(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=s(r),t.top+=u(r),t}function l(e){return null!==e&&void 0!==e&&e==e.window}function f(e){return l(e)?e.document:9===e.nodeType?e:e.ownerDocument}function p(e,t,n){var r=n,o="",i=f(e);return r=r||i.defaultView.getComputedStyle(e,null),r&&(o=r.getPropertyValue(t)||r[t]),o}function d(e,t){var n=e[A]&&e[A][t];if(M.test(n)&&!S.test(t)){var r=e.style,o=r[D],i=e[j][D];e[j][D]=e[A][D],r[D]="fontSize"===t?"1em":n||0,n=r.pixelLeft+R,r[D]=o,e[j][D]=i}return""===n?"auto":n}function h(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function b(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function m(e,t,n){"static"===o(e,"position")&&(e.style.position="relative");var i=-999,a=-999,s=h("left",n),u=h("top",n),l=b(s),f=b(u);"left"!==s&&(i=999),"top"!==u&&(a=999);var p="",d=c(e);("left"in t||"top"in t)&&(p=Object(_.c)(e)||"",Object(_.e)(e,"none")),"left"in t&&(e.style[l]="",e.style[s]=i+"px"),"top"in t&&(e.style[f]="",e.style[u]=a+"px");var m=c(e),g={};for(var v in t)if(t.hasOwnProperty(v)){var y=h(v,n),w="left"===v?i:a,x=d[v]-m[v];g[y]=y===v?w+x:w-x}o(e,g),r(e.offsetTop,e.offsetLeft),("left"in t||"top"in t)&&Object(_.e)(e,p);var E={};for(var O in t)if(t.hasOwnProperty(O)){var k=h(O,n),C=t[O]-d[O];E[k]=O===k?g[k]+C:g[k]-C}o(e,E)}function g(e,t){var n=c(e),r=Object(_.b)(e),o={x:r.x,y:r.y};"left"in t&&(o.x=r.x+t.left-n.left),"top"in t&&(o.y=r.y+t.top-n.top),Object(_.d)(e,o)}function v(e,t,n){n.useCssRight||n.useCssBottom?m(e,t,n):n.useCssTransform&&Object(_.a)()in document.body.style?g(e,t,n):m(e,t,n)}function y(e,t){for(var n=0;n<e.length;n++)t(e[n])}function w(e){return"border-box"===P(e,"boxSizing")}function x(e,t,n){var r={},o=e.style,i=void 0;for(i in t)t.hasOwnProperty(i)&&(r[i]=o[i],o[i]=t[i]);n.call(e);for(i in t)t.hasOwnProperty(i)&&(o[i]=r[i])}function E(e,t,n){var r=0,o=void 0,i=void 0,a=void 0;for(i=0;i<t.length;i++)if(o=t[i])for(a=0;a<n.length;a++){var s=void 0;s="border"===o?""+o+n[a]+"Width":o+n[a],r+=parseFloat(P(e,s))||0}return r}function O(e,t,n){var r=n;if(l(e))return"width"===t?U.viewportWidth(e):U.viewportHeight(e);if(9===e.nodeType)return"width"===t?U.docWidth(e):U.docHeight(e);var o="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?e.getBoundingClientRect().width:e.getBoundingClientRect().height,a=P(e),s=w(e,a),u=0;(null===i||void 0===i||i<=0)&&(i=void 0,u=P(e,t),(null===u||void 0===u||Number(u)<0)&&(u=e.style[t]||0),u=parseFloat(u)||0),void 0===r&&(r=s?B:V);var c=void 0!==i||s,f=i||u;return r===V?c?f-E(e,["border","padding"],o,a):u:c?r===B?f:f+(r===I?-E(e,["border"],o,a):E(e,["margin"],o,a)):u+E(e,L.slice(r),o,a)}function k(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=void 0,o=t[0];return 0!==o.offsetWidth?r=O.apply(void 0,t):x(o,F,function(){r=O.apply(void 0,t)}),r}function C(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var _=n(137),T="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},N=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,P=void 0,M=new RegExp("^("+N+")(?!px)[a-z%]+$","i"),S=/^(top|right|bottom|left)$/,A="currentStyle",j="runtimeStyle",D="left",R="px";"undefined"!==typeof window&&(P=window.getComputedStyle?p:d);var L=["margin","border","padding"],V=-1,I=2,B=1,U={};y(["Width","Height"],function(e){U["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],U["viewport"+e](n))},U["viewport"+e]=function(t){var n="client"+e,r=t.document,o=r.body,i=r.documentElement,a=i[n];return"CSS1Compat"===r.compatMode&&a||o&&o[n]||a}});var F={position:"absolute",visibility:"hidden",display:"block"};y(["width","height"],function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);U["outer"+t]=function(t,n){return t&&k(t,e,n?0:B)};var n="width"===e?["Left","Right"]:["Top","Bottom"];U[e]=function(t,r){var i=r;if(void 0===i)return t&&k(t,e,V);if(t){var a=P(t);return w(t)&&(i+=E(t,["padding","border"],n,a)),o(t,e,i)}}});var W={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:f,offset:function(e,t,n){if("undefined"===typeof t)return c(e);v(e,t,n||{})},isWindow:l,each:y,css:o,clone:function(e){var t=void 0,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:C,getWindowScrollLeft:function(e){return s(e)},getWindowScrollTop:function(e){return u(e)},merge:function(){for(var e={},t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var o=0;o<n.length;o++)W.mix(e,n[o]);return e},viewportWidth:0,viewportHeight:0};C(W,U),t.a=W},function(e,t,n){"use strict";t.__esModule=!0;var r=n(71),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t,n){return t in e?(0,o.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(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(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(94),i=r(o),a=n(104),s=r(a),u="function"===typeof s.default&&"symbol"===typeof i.default?function(e){return typeof e}:function(e){return e&&"function"===typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"===typeof s.default&&"symbol"===u(i.default)?function(e){return"undefined"===typeof e?"undefined":u(e)}:function(e){return e&&"function"===typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":"undefined"===typeof e?"undefined":u(e)}},function(e,t){e.exports={}},function(e,t,n){var r=n(61),o=n(41);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(37);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";(function(t){function n(e,t,n,o,i,a,s,u){if(r(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,o,i,a,s,u],f=0;c=new Error(t.replace(/%s/g,function(){return l[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var r=function(e){};"production"!==t.env.NODE_ENV&&(r=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=n}).call(t,n(9))},function(e,t,n){"use strict";(function(t){var n=function(){};"production"!==t.env.NODE_ENV&&(n=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var o=2;o<r;o++)n[o-2]=arguments[o];if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(t.length<10||/^[s\W]*$/.test(t))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+t);if(!e){var i=0,a="Warning: "+t.replace(/%s/g,function(){return n[i++]});"undefined"!==typeof console&&console.error(a);try{throw new Error(a)}catch(e){}}}),e.exports=n}).call(t,n(9))},function(e,t,n){var r,o;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r))e.push(n.apply(null,r));else if("object"===o)for(var a in r)i.call(r,a)&&r[a]&&e.push(a)}}return e.join(" ")}var i={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?e.exports=n:(r=[],void 0!==(o=function(){return n}.apply(t,r))&&(e.exports=o))}()},function(e,t,n){var r=n(90);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(22);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(40)("keys"),o=n(28);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(12),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){e.exports=!0},function(e,t,n){var r=n(18),o=n(98),i=n(41),a=n(39)("IE_PROTO"),s=function(){},u=function(){var e,t=n(60)("iframe"),r=i.length;for(t.style.display="none",n(99).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[i[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=u(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(13).f,o=n(15),i=n(8)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){t.f=n(8)},function(e,t,n){var r=n(12),o=n(3),i=n(43),a=n(46),s=n(13).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){var r=n(29),o=n(23),i=n(16),a=n(35),s=n(15),u=n(59),c=Object.getOwnPropertyDescriptor;t.f=n(14)?c:function(e,t){if(e=i(e),t=a(t,!0),u)try{return c(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";(function(t){var r=n(49),o=r;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 o=0,i="Warning: "+e.replace(/%s/g,function(){return n[o++]});"undefined"!==typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};o=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),o=2;o<n;o++)r[o-2]=arguments[o];i.apply(void 0,[t].concat(r))}}}e.exports=o}).call(t,n(9))},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;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(e){return!1}}()?Object.assign:function(e,t){for(var n,s,u=r(e),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var l in n)i.call(n,l)&&(u[l]=n[l]);if(o){s=o(n);for(var f=0;f<s.length;f++)a.call(n,s[f])&&(u[s[f]]=n[s[f]])}}return u}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(1),o=n.n(r),i=n(24),a=n.n(i),s=n(4),u=n.n(s),c=n(7),l=n.n(c),f=n(5),p=n.n(f),d=n(6),h=n.n(d),b=n(0),m=n.n(b),g=n(2),v=n.n(g),y=function(e){function t(){return u()(this,t),p()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.vertical,r=e.offset,i=e.style,s=e.disabled,u=e.min,c=e.max,l=e.value,f=a()(e,["className","vertical","offset","style","disabled","min","max","value"]),p=n?{bottom:r+"%"}:{left:r+"%"},d=o()({},i,p),h={};return void 0!==l&&(h=o()({},h,{"aria-valuemin":u,"aria-valuemax":c,"aria-valuenow":l,"aria-disabled":!!s})),m.a.createElement("div",o()({role:"slider",tabIndex:"0"},h,f,{className:t,style:d}))}}]),t}(m.a.Component);t.a=y,y.propTypes={className:v.a.string,vertical:v.a.bool,offset:v.a.number,style:v.a.object,disabled:v.a.bool,min:v.a.number,max:v.a.number,value:v.a.number}},function(e,t,n){"use strict";function r(e,t){return Object.keys(t).some(function(n){return e.target===Object(g.findDOMNode)(t[n])})}function o(e,t){var n=t.min,r=t.max;return e<n||e>r}function i(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function a(e,t){var n=t.marks,r=t.step,o=t.min,i=Object.keys(n).map(parseFloat);if(null!==r){var a=Math.round((e-o)/r)*r+o;i.push(a)}var s=i.map(function(t){return Math.abs(e-t)});return i[s.indexOf(Math.min.apply(Math,m()(s)))]}function s(e){var t=e.toString(),n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}function u(e,t){return e?t.clientY:t.pageX}function c(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function l(e,t){var n=t.getBoundingClientRect();return e?n.top+.5*n.height:n.left+.5*n.width}function f(e,t){var n=t.max,r=t.min;return e<=r?r:e>=n?n:e}function p(e,t){var n=t.step,r=a(e,t);return null===n?r:parseFloat(r.toFixed(s(n)))}function d(e){e.stopPropagation(),e.preventDefault()}function h(e){switch(e.keyCode){case v.a.UP:case v.a.RIGHT:return function(e,t){return e+t.step};case v.a.DOWN:case v.a.LEFT:return function(e,t){return e-t.step};case v.a.END:return function(e,t){return t.max};case v.a.HOME:return function(e,t){return t.min};case v.a.PAGE_UP:return function(e,t){return e+2*t.step};case v.a.PAGE_DOWN:return function(e,t){return e-2*t.step};default:return}}t.g=r,t.i=o,t.h=i,t.e=u,t.f=c,t.c=l,t.a=f,t.b=p,t.j=d,t.d=h;var b=n(80),m=n.n(b),g=n(10),v=(n.n(g),n(176))},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(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 i(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 a=n(0),s=n.n(a),u=n(56),c=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}}(),l=function(e){function t(){return r(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),c(t,[{key:"render",value:function(){var e=this,t=this.props.colorscale||u.l,n=u.o;return this.props.width&&(n=this.props.width/t.length),this.props.maxWidth&&n*t.length>this.props.maxWidth&&(n=this.props.maxWidth/t.length),s.a.createElement("div",{className:"colorscale-block",style:{display:"inline-block",margin:"10px 20px"},onClick:function(){return e.props.onClick(t,e.props.start,e.props.rot)}},s.a.createElement("div",{style:{textAlign:"center",fontWeight:600,fontSize:"12px",color:"#2a3f5f",marginRight:"10px",marginTop:"4px",verticalAlign:"top",display:"inline-block"}},this.props.label||""),t.map(function(e,t){return s.a.createElement("div",{key:t,className:"colorscale-swatch",style:{backgroundColor:e,width:n+"px",height:"20px",margin:"0 auto",display:"inline-block",cursor:"pointer"}})}))}}]),t}(a.Component);t.a=l},function(e,t,n){"use strict";n.d(t,"d",function(){return i}),n.d(t,"p",function(){return a}),n.d(t,"c",function(){return s}),n.d(t,"a",function(){return u}),n.d(t,"b",function(){return c}),n.d(t,"e",function(){return l}),n.d(t,"m",function(){return f}),n.d(t,"k",function(){return p}),n.d(t,"g",function(){return d}),n.d(t,"h",function(){return h}),n.d(t,"j",function(){return b}),n.d(t,"n",function(){return m}),n.d(t,"l",function(){return g}),n.d(t,"i",function(){return v}),n.d(t,"f",function(){return y}),n.d(t,"o",function(){return w});var r=n(57),o=n.n(r),i=["sequential","divergent","categorical","cubehelix","cmocean","custom"],a=["divergent","categorical","custom"],s={sequential:"Use sequential colorscales for data that smoothly changes value and has meaningful order.",divergent:"Use divergent colorscales for data that smoothly changes around a centerpoint (such as zero).",categorical:"Use categorical colorscales for data that has distinct groups and a non-meaningful order.",cubehelix:'Cubehelix colorscales are like sequential scales, but have the added benefit of printing clearly in black & white. Adjust the "start" slider to change the scale\'s base color. A cubehelix scale with 0 rotation transitions through a single base color. A scale with non-zero rotation "rotates" through other colors. Change the rotation slightly to add a touch of another color, change it more to create a scale with multiple colors.',cmocean:"cmocean colorscales are a mix of sequential and diverging scales. They were originally developed for oceanography data, but can be applied beautifully to any other type of data as well.",custom:"Select a sequential or categorical colorscale, then set customized breakpoints for it in the text box above. The breakpoints should have meaning to your data. For example, you could color data related to human age by groups in between the years 0, 5, 13, 20, 40, and 70. Click the preview colorscale below when you are satisfied with your breakpoints."},u={sequential:["OrRd","PuBu","BuPu","Oranges","BuGn","YlOrBr","YlGn","Reds","RdPu","Greens","YlGnBu","Purples","GnBu","Greys","YlOrRd","PuRd","Blues","Viridis"],divergent:["Spectral","RdYlGn","RdBu","PiYG","PRGn","RdYlBu","BrBG","RdGy"],categorical:["Accent","Set1","Set3","Dark2","Paired","Pastel1"]},c={turbid:["rgb(232, 245, 171)","rgb(220, 219, 137)","rgb(209, 193, 107)","rgb(199, 168, 83)","rgb(186, 143, 66)","rgb(170, 121, 60)","rgb(151, 103, 58)","rgb(129, 87, 56)","rgb(104, 72, 53)","rgb(80, 59, 46)","rgb(57, 45, 37)","rgb(34, 30, 27)"],thermal:["rgb(3, 35, 51)","rgb(13, 48, 100)","rgb(53, 50, 155)","rgb(93, 62, 153)","rgb(126, 77, 143)","rgb(158, 89, 135)","rgb(193, 100, 121)","rgb(225, 113, 97)","rgb(246, 139, 69)","rgb(251, 173, 60)","rgb(246, 211, 70)","rgb(231, 250, 90)"],haline:["rgb(41, 24, 107)","rgb(42, 35, 160)","rgb(15, 71, 153)","rgb(18, 95, 142)","rgb(38, 116, 137)","rgb(53, 136, 136)","rgb(65, 157, 133)","rgb(81, 178, 124)","rgb(111, 198, 107)","rgb(160, 214, 91)","rgb(212, 225, 112)","rgb(253, 238, 153)"],solar:["rgb(51, 19, 23)","rgb(79, 28, 33)","rgb(108, 36, 36)","rgb(135, 47, 32)","rgb(157, 66, 25)","rgb(174, 88, 20)","rgb(188, 111, 19)","rgb(199, 137, 22)","rgb(209, 164, 32)","rgb(217, 192, 44)","rgb(222, 222, 59)","rgb(224, 253, 74)"],ice:["rgb(3, 5, 18)","rgb(25, 25, 51)","rgb(44, 42, 87)","rgb(58, 60, 125)","rgb(62, 83, 160)","rgb(62, 109, 178)","rgb(72, 134, 187)","rgb(89, 159, 196)","rgb(114, 184, 205)","rgb(149, 207, 216)","rgb(192, 229, 232)","rgb(234, 252, 253)"],gray:["rgb(0, 0, 0)","rgb(16, 16, 16)","rgb(38, 38, 38)","rgb(59, 59, 59)","rgb(81, 80, 80)","rgb(102, 101, 101)","rgb(124, 123, 122)","rgb(146, 146, 145)","rgb(171, 171, 170)","rgb(197, 197, 195)","rgb(224, 224, 223)","rgb(254, 254, 253)"],oxy:["rgb(63, 5, 5)","rgb(101, 6, 13)","rgb(138, 17, 9)","rgb(96, 95, 95)","rgb(119, 118, 118)","rgb(142, 141, 141)","rgb(166, 166, 165)","rgb(193, 192, 191)","rgb(222, 222, 220)","rgb(239, 248, 90)","rgb(230, 210, 41)","rgb(220, 174, 25)"],deep:["rgb(253, 253, 204)","rgb(206, 236, 179)","rgb(156, 219, 165)","rgb(111, 201, 163)","rgb(86, 177, 163)","rgb(76, 153, 160)","rgb(68, 130, 155)","rgb(62, 108, 150)","rgb(62, 82, 143)","rgb(64, 60, 115)","rgb(54, 43, 77)","rgb(39, 26, 44)"],dense:["rgb(230, 240, 240)","rgb(191, 221, 229)","rgb(156, 201, 226)","rgb(129, 180, 227)","rgb(115, 154, 228)","rgb(117, 127, 221)","rgb(120, 100, 202)","rgb(119, 74, 175)","rgb(113, 50, 141)","rgb(100, 31, 104)","rgb(80, 20, 66)","rgb(54, 14, 36)"],algae:["rgb(214, 249, 207)","rgb(186, 228, 174)","rgb(156, 209, 143)","rgb(124, 191, 115)","rgb(85, 174, 91)","rgb(37, 157, 81)","rgb(7, 138, 78)","rgb(13, 117, 71)","rgb(23, 95, 61)","rgb(25, 75, 49)","rgb(23, 55, 35)","rgb(17, 36, 20)"],matter:["rgb(253, 237, 176)","rgb(250, 205, 145)","rgb(246, 173, 119)","rgb(240, 142, 98)","rgb(231, 109, 84)","rgb(216, 80, 83)","rgb(195, 56, 90)","rgb(168, 40, 96)","rgb(138, 29, 99)","rgb(107, 24, 93)","rgb(76, 21, 80)","rgb(47, 15, 61)"],speed:["rgb(254, 252, 205)","rgb(239, 225, 156)","rgb(221, 201, 106)","rgb(194, 182, 59)","rgb(157, 167, 21)","rgb(116, 153, 5)","rgb(75, 138, 20)","rgb(35, 121, 36)","rgb(11, 100, 44)","rgb(18, 78, 43)","rgb(25, 56, 34)","rgb(23, 35, 18)"],amp:["rgb(241, 236, 236)","rgb(230, 209, 203)","rgb(221, 182, 170)","rgb(213, 156, 137)","rgb(205, 129, 103)","rgb(196, 102, 73)","rgb(186, 74, 47)","rgb(172, 44, 36)","rgb(149, 19, 39)","rgb(120, 14, 40)","rgb(89, 13, 31)","rgb(60, 9, 17)"],tempo:["rgb(254, 245, 244)","rgb(222, 224, 210)","rgb(189, 206, 181)","rgb(153, 189, 156)","rgb(110, 173, 138)","rgb(65, 157, 129)","rgb(25, 137, 125)","rgb(18, 116, 117)","rgb(25, 94, 106)","rgb(28, 72, 93)","rgb(25, 51, 80)","rgb(20, 29, 67)"],phase:["rgb(167, 119, 12)","rgb(197, 96, 51)","rgb(217, 67, 96)","rgb(221, 38, 163)","rgb(196, 59, 224)","rgb(153, 97, 244)","rgb(95, 127, 228)","rgb(40, 144, 183)","rgb(15, 151, 136)","rgb(39, 153, 79)","rgb(119, 141, 17)","rgb(167, 119, 12)"],balance:["rgb(23, 28, 66)","rgb(41, 58, 143)","rgb(11, 102, 189)","rgb(69, 144, 185)","rgb(142, 181, 194)","rgb(210, 216, 219)","rgb(230, 210, 204)","rgb(213, 157, 137)","rgb(196, 101, 72)","rgb(172, 43, 36)","rgb(120, 14, 40)","rgb(60, 9, 17)"],delta:["rgb(16, 31, 63)","rgb(38, 62, 144)","rgb(30, 110, 161)","rgb(60, 154, 171)","rgb(140, 193, 186)","rgb(217, 229, 218)","rgb(239, 226, 156)","rgb(195, 182, 59)","rgb(115, 152, 5)","rgb(34, 120, 36)","rgb(18, 78, 43)","rgb(23, 35, 18)"],curl:["rgb(20, 29, 67)","rgb(28, 72, 93)","rgb(18, 115, 117)","rgb(63, 156, 129)","rgb(153, 189, 156)","rgb(223, 225, 211)","rgb(241, 218, 206)","rgb(224, 160, 137)","rgb(203, 101, 99)","rgb(164, 54, 96)","rgb(111, 23, 91)","rgb(51, 13, 53)"]},l=[{start:300,rotations:-1.5},{start:0,rotations:-.4},{start:0,rotations:-.1},{start:100,rotations:.4},{start:200,rotations:-.1},{start:200,rotations:-.4},{start:200,rotations:.4},{start:300,rotations:-.1}],f=300,p=-1.5,d=1,h=[.85,.15],b=10,m=6,g=o.a.scale(["#fafa6e","#2A4858"]).mode("lch").colors(m),v=4,y=[0,1],w=20},function(e,t,n){(function(e){var n,r;(function(){var o,i,a,s,u,c,l,f,p,d,h,b,m,g,v,y,w,x,E,O,k,C,_,T,N,P,M,S,A,j,D,R,L,V,I,B,U,F,W,H,z,Y,K,G,q,X,Z,$,J,Q,ee,te,ne,re,oe,ie,ae,se,ue,ce,le,fe,pe,de,he,be,ge,ve,ye,we,xe,Ee,Oe,ke,Ce,_e,Te,Ne,Pe,Me=[].slice;Ce=function(){var e,t,n,r,o;for(e={},o="Boolean Number String Function Array Date RegExp Undefined Null".split(" "),r=0,t=o.length;r<t;r++)n=o[r],e["[object "+n+"]"]=n.toLowerCase();return function(t){var n;return n=Object.prototype.toString.call(t),e[n]||"object"}}(),q=function(e,t,n){return null==t&&(t=0),null==n&&(n=1),e<t&&(e=t),e>n&&(e=n),e},_e=function(e){return e.length>=3?[].slice.call(e):e[0]},O=function(e){var t,n;for(e._clipped=!1,e._unclipped=e.slice(0),t=n=0;n<3;t=++n)t<3?((e[t]<0||e[t]>255)&&(e._clipped=!0),e[t]<0&&(e[t]=0),e[t]>255&&(e[t]=255)):3===t&&(e[t]<0&&(e[t]=0),e[t]>1&&(e[t]=1));return e._clipped||delete e._unclipped,e},s=Math.PI,we=Math.round,C=Math.cos,M=Math.floor,re=Math.pow,X=Math.log,Ee=Math.sin,Oe=Math.sqrt,m=Math.atan2,J=Math.max,b=Math.abs,l=2*s,u=s/3,i=s/180,c=180/s,E=function(){return arguments[0]instanceof o?arguments[0]:function(e,t,n){n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return Object(o)===o?o:r}(o,arguments,function(){})},h=[],"undefined"!==typeof e&&null!==e&&null!=e.exports&&(e.exports=E),n=[],void 0!==(r=function(){return E}.apply(t,n))&&(e.exports=r),E.version="1.3.4",d={},f=[],p=!1,o=function(){function e(){var e,t,n,r,o,i,a,s,u;for(i=this,t=[],s=0,r=arguments.length;s<r;s++)null!=(e=arguments[s])&&t.push(e);if(a=t[t.length-1],null!=d[a])i._rgb=O(d[a](_e(t.slice(0,-1))));else{for(p||(f=f.sort(function(e,t){return t.p-e.p}),p=!0),u=0,o=f.length;u<o&&(n=f[u],!(a=n.test.apply(n,t)));u++);a&&(i._rgb=O(d[a].apply(d,t)))}null==i._rgb&&console.warn("unknown format: "+t),null==i._rgb&&(i._rgb=[0,0,0]),3===i._rgb.length&&i._rgb.push(1)}return e.prototype.toString=function(){return this.hex()},e.prototype.clone=function(){return E(me._rgb)},e}(),E._input=d,E.brewer=w={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},function(){var e,t;t=[];for(e in w)t.push(w[e.toLowerCase()]=w[e])}(),Te={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},E.colors=Te,H=function(){var e,t,n,r,o,i,s,u,c;return t=_e(arguments),o=t[0],e=t[1],n=t[2],u=(o+16)/116,s=isNaN(e)?u:u+e/500,c=isNaN(n)?u:u-n/200,u=a.Yn*z(u),s=a.Xn*z(s),c=a.Zn*z(c),i=Pe(3.2404542*s-1.5371385*u-.4985314*c),r=Pe(-.969266*s+1.8760108*u+.041556*c),n=Pe(.0556434*s-.2040259*u+1.0572252*c),[i,r,n,t.length>3?t[3]:1]},Pe=function(e){return 255*(e<=.00304?12.92*e:1.055*re(e,1/2.4)-.055)},z=function(e){return e>a.t1?e*e*e:a.t2*(e-a.t0)},a={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},fe=function(){var e,t,n,r,o,i,a,s;return r=_e(arguments),n=r[0],t=r[1],e=r[2],o=ge(n,t,e),i=o[0],a=o[1],s=o[2],[116*a-16,500*(i-a),200*(a-s)]},ve=function(e){return(e/=255)<=.04045?e/12.92:re((e+.055)/1.055,2.4)},Ne=function(e){return e>a.t3?re(e,1/3):e/a.t2+a.t0},ge=function(){var e,t,n,r,o,i,s;return r=_e(arguments),n=r[0],t=r[1],e=r[2],n=ve(n),t=ve(t),e=ve(e),o=Ne((.4124564*n+.3575761*t+.1804375*e)/a.Xn),i=Ne((.2126729*n+.7151522*t+.072175*e)/a.Yn),s=Ne((.0193339*n+.119192*t+.9503041*e)/a.Zn),[o,i,s]},E.lab=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return Object(o)===o?o:r}(o,Me.call(arguments).concat(["lab"]),function(){})},d.lab=H,o.prototype.lab=function(){return fe(this._rgb)},g=function(e){var t,n,r,o,i,a,s,u,c,l,f;return e=function(){var t,n,r;for(r=[],n=0,t=e.length;n<t;n++)o=e[n],r.push(E(o));return r}(),2===e.length?(c=function(){var t,n,r;for(r=[],n=0,t=e.length;n<t;n++)o=e[n],r.push(o.lab());return r}(),i=c[0],a=c[1],t=function(e){var t,n;return n=function(){var n,r;for(r=[],t=n=0;n<=2;t=++n)r.push(i[t]+e*(a[t]-i[t]));return r}(),E.lab.apply(E,n)}):3===e.length?(l=function(){var t,n,r;for(r=[],n=0,t=e.length;n<t;n++)o=e[n],r.push(o.lab());return r}(),i=l[0],a=l[1],s=l[2],t=function(e){var t,n;return n=function(){var n,r;for(r=[],t=n=0;n<=2;t=++n)r.push((1-e)*(1-e)*i[t]+2*(1-e)*e*a[t]+e*e*s[t]);return r}(),E.lab.apply(E,n)}):4===e.length?(f=function(){var t,n,r;for(r=[],n=0,t=e.length;n<t;n++)o=e[n],r.push(o.lab());return r}(),i=f[0],a=f[1],s=f[2],u=f[3],t=function(e){var t,n;return n=function(){var n,r;for(r=[],t=n=0;n<=2;t=++n)r.push((1-e)*(1-e)*(1-e)*i[t]+3*(1-e)*(1-e)*e*a[t]+3*(1-e)*e*e*s[t]+e*e*e*u[t]);return r}(),E.lab.apply(E,n)}):5===e.length&&(n=g(e.slice(0,3)),r=g(e.slice(2,5)),t=function(e){return e<.5?n(2*e):r(2*(e-.5))}),t},E.bezier=function(e){var t;return t=g(e),t.scale=function(){return E.scale(t)},t},E.cubehelix=function(e,t,n,r,o){var i,a,s;return null==e&&(e=300),null==t&&(t=-1.5),null==n&&(n=1),null==r&&(r=1),null==o&&(o=[0,1]),i=0,"array"===Ce(o)?a=o[1]-o[0]:(a=0,o=[o,o]),s=function(s){var u,c,f,p,d,h,b,m,g;return u=l*((e+120)/360+t*s),b=re(o[0]+a*s,r),h=0!==i?n[0]+s*i:n,c=h*b*(1-b)/2,p=C(u),g=Ee(u),m=b+c*(-.14861*p+1.78277*g),d=b+c*(-.29227*p-.90649*g),f=b+c*(1.97294*p),E(O([255*m,255*d,255*f]))},s.start=function(t){return null==t?e:(e=t,s)},s.rotations=function(e){return null==e?t:(t=e,s)},s.gamma=function(e){return null==e?r:(r=e,s)},s.hue=function(e){return null==e?n:(n=e,"array"===Ce(n)?0===(i=n[1]-n[0])&&(n=n[1]):i=0,s)},s.lightness=function(e){return null==e?o:("array"===Ce(e)?(o=e,a=e[1]-e[0]):(o=[e,e],a=0),s)},s.scale=function(){return E.scale(s)},s.hue(n),s},E.random=function(){var e,t,n;for(t="0123456789abcdef",e="#",n=0;n<6;++n)e+=t.charAt(M(16*Math.random()));return new o(e)},E.average=function(e,t){var n,r,o,i,a,u,c,l,f,p,d,h,b;null==t&&(t="rgb"),f=e.length,e=e.map(function(e){return E(e)}),c=e.splice(0,1)[0],h=c.get(t),i=[],a=0,u=0;for(l in h)h[l]=h[l]||0,i.push(isNaN(h[l])?0:1),"h"!==t.charAt(l)||isNaN(h[l])||(n=h[l]/180*s,a+=C(n),u+=Ee(n));for(r=c.alpha(),d=0,p=e.length;d<p;d++){o=e[d],b=o.get(t),r+=o.alpha();for(l in h)isNaN(b[l])||(h[l]+=b[l],i[l]+=1,"h"===t.charAt(l)&&(n=h[l]/180*s,a+=C(n),u+=Ee(n)))}for(l in h)if(h[l]=h[l]/i[l],"h"===t.charAt(l)){for(n=m(u/i[l],a/i[l])/s*180;n<0;)n+=360;for(;n>=360;)n-=360;h[l]=n}return E(h,t).alpha(r/f)},d.rgb=function(){var e,t,n,r;t=_e(arguments),n=[];for(e in t)r=t[e],n.push(r);return n},E.rgb=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return Object(o)===o?o:r}(o,Me.call(arguments).concat(["rgb"]),function(){})},o.prototype.rgb=function(e){return null==e&&(e=!0),e?this._rgb.map(Math.round).slice(0,3):this._rgb.slice(0,3)},o.prototype.rgba=function(e){return null==e&&(e=!0),e?[Math.round(this._rgb[0]),Math.round(this._rgb[1]),Math.round(this._rgb[2]),this._rgb[3]]:this._rgb.slice(0)},f.push({p:3,test:function(e){var t;return t=_e(arguments),"array"===Ce(t)&&3===t.length?"rgb":4===t.length&&"number"===Ce(t[3])&&t[3]>=0&&t[3]<=1?"rgb":void 0}}),A=function(e){var t,n,r,o,i,a;if(e.match(/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/))return 4!==e.length&&7!==e.length||(e=e.substr(1)),3===e.length&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),a=parseInt(e,16),o=a>>16,r=a>>8&255,n=255&a,[o,r,n,1];if(e.match(/^#?([A-Fa-f0-9]{8})$/))return 9===e.length&&(e=e.substr(1)),a=parseInt(e,16),o=a>>24&255,r=a>>16&255,n=a>>8&255,t=we((255&a)/255*100)/100,[o,r,n,t];if(null!=d.css&&(i=d.css(e)))return i;throw"unknown color: "+e},se=function(e,t){var n,r,o,i,a,s,u;return null==t&&(t="rgb"),a=e[0],o=e[1],r=e[2],n=e[3],a=Math.round(a),o=Math.round(o),r=Math.round(r),u=a<<16|o<<8|r,s="000000"+u.toString(16),s=s.substr(s.length-6),i="0"+we(255*n).toString(16),i=i.substr(i.length-2),"#"+function(){switch(t.toLowerCase()){case"rgba":return s+i;case"argb":return i+s;default:return s}}()},d.hex=function(e){return A(e)},E.hex=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return Object(o)===o?o:r}(o,Me.call(arguments).concat(["hex"]),function(){})},o.prototype.hex=function(e){return null==e&&(e="rgb"),se(this._rgb,e)},f.push({p:4,test:function(e){if(1===arguments.length&&"string"===Ce(e))return"hex"}}),R=function(){var e,t,n,r,o,i,a,s,u,c,l,f,p,d;if(e=_e(arguments),o=e[0],l=e[1],a=e[2],0===l)u=r=t=255*a;else{for(d=[0,0,0],n=[0,0,0],p=a<.5?a*(1+l):a+l-a*l,f=2*a-p,o/=360,d[0]=o+1/3,d[1]=o,d[2]=o-1/3,i=s=0;s<=2;i=++s)d[i]<0&&(d[i]+=1),d[i]>1&&(d[i]-=1),6*d[i]<1?n[i]=f+6*(p-f)*d[i]:2*d[i]<1?n[i]=p:3*d[i]<2?n[i]=f+(p-f)*(2/3-d[i])*6:n[i]=f;c=[we(255*n[0]),we(255*n[1]),we(255*n[2])],u=c[0],r=c[1],t=c[2]}return e.length>3?[u,r,t,e[3]]:[u,r,t]},ce=function(e,t,n){var r,o,i,a,s;return void 0!==e&&e.length>=3&&(a=e,e=a[0],t=a[1],n=a[2]),e/=255,t/=255,n/=255,i=Math.min(e,t,n),J=Math.max(e,t,n),o=(J+i)/2,J===i?(s=0,r=Number.NaN):s=o<.5?(J-i)/(J+i):(J-i)/(2-J-i),e===J?r=(t-n)/(J-i):t===J?r=2+(n-e)/(J-i):n===J&&(r=4+(e-t)/(J-i)),r*=60,r<0&&(r+=360),[r,s,o]},E.hsl=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return Object(o)===o?o:r}(o,Me.call(arguments).concat(["hsl"]),function(){})},d.hsl=R,o.prototype.hsl=function(){return ce(this._rgb)},L=function(){var e,t,n,r,o,i,a,s,u,c,l,f,p,d,h,b,m,g;if(e=_e(arguments),o=e[0],b=e[1],g=e[2],g*=255,0===b)u=r=t=g;else switch(360===o&&(o=0),o>360&&(o-=360),o<0&&(o+=360),o/=60,i=M(o),n=o-i,a=g*(1-b),s=g*(1-b*n),m=g*(1-b*(1-n)),i){case 0:c=[g,m,a],u=c[0],r=c[1],t=c[2];break;case 1:l=[s,g,a],u=l[0],r=l[1],t=l[2];break;case 2:f=[a,g,m],u=f[0],r=f[1],t=f[2];break;case 3:p=[a,s,g],u=p[0],r=p[1],t=p[2];break;case 4:d=[m,a,g],u=d[0],r=d[1],t=d[2];break;case 5:h=[g,a,s],u=h[0],r=h[1],t=h[2]}return[u,r,t,e.length>3?e[3]:1]},le=function(){var e,t,n,r,o,i,a,s,u;return a=_e(arguments),i=a[0],n=a[1],e=a[2],o=Math.min(i,n,e),J=Math.max(i,n,e),t=J-o,u=J/255,0===J?(r=Number.NaN,s=0):(s=t/J,i===J&&(r=(n-e)/t),n===J&&(r=2+(e-i)/t),e===J&&(r=4+(i-n)/t),(r*=60)<0&&(r+=360)),[r,s,u]},E.hsv=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return Object(o)===o?o:r}(o,Me.call(arguments).concat(["hsv"]),function(){})},d.hsv=L,o.prototype.hsv=function(){return le(this._rgb)},te=function(e){var t,n,r;return"number"===Ce(e)&&e>=0&&e<=16777215?(r=e>>16,n=e>>8&255,t=255&e,[r,n,t,1]):(console.warn("unknown num color: "+e),[0,0,0,1])},he=function(){var e,t,n,r;return r=_e(arguments),n=r[0],t=r[1],e=r[2],(n<<16)+(t<<8)+e},E.num=function(e){return new o(e,"num")},o.prototype.num=function(e){return null==e&&(e="rgb"),he(this._rgb,e)},d.num=te,f.push({p:1,test:function(e){if(1===arguments.length&&"number"===Ce(e)&&e>=0&&e<=16777215)return"num"}}),S=function(){var e,t,n,r,o,i,a,s,u,c,l,f,p,d,h,b,m,g,v,y;if(n=_e(arguments),s=n[0],o=n[1],t=n[2],o/=100,a=a/100*255,e=255*o,0===o)f=a=r=t;else switch(360===s&&(s=0),s>360&&(s-=360),s<0&&(s+=360),s/=60,u=M(s),i=s-u,c=t*(1-o),l=c+e*(1-i),v=c+e*i,y=c+e,u){case 0:p=[y,v,c],f=p[0],a=p[1],r=p[2];break;case 1:d=[l,y,c],f=d[0],a=d[1],r=d[2];break;case 2:h=[c,y,v],f=h[0],a=h[1],r=h[2];break;case 3:b=[c,l,y],f=b[0],a=b[1],r=b[2];break;case 4:m=[v,c,y],f=m[0],a=m[1],r=m[2];break;case 5:g=[y,c,l],f=g[0],a=g[1],r=g[2]}return[f,a,r,n.length>3?n[3]:1]},ae=function(){var e,t,n,r,o,i,a,s,u;return u=_e(arguments),s=u[0],o=u[1],t=u[2],a=Math.min(s,o,t),J=Math.max(s,o,t),r=J-a,n=100*r/255,e=a/(255-r)*100,0===r?i=Number.NaN:(s===J&&(i=(o-t)/r),o===J&&(i=2+(t-s)/r),t===J&&(i=4+(s-o)/r),(i*=60)<0&&(i+=360)),[i,n,e]},E.hcg=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,o=e.apply(r,t);return Object(o)===o?o:r}(o,Me.call(arguments).concat(["hcg"]),function(){})},d.hcg=S,o.prototype.hcg=function(){return ae(this._rgb)},_=function(e){var t,n,r,o,i,a,s,u;if(e=e.toLowerCase(),null!=E.colors&&E.colors[e])return A(E.colors[e]);if(i=e.match(/rgb\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*\)/)){for(s=i.slice(1,4),o=a=0;a<=2;o=++a)s[o]=+s[o];s[3]=1}else if(i=e.match(/rgba\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*,\s*([01]|[01]?\.\d+)\)/))for(s=i.slice(1,5),o=u=0;u<=3;o=++u)s[o]=+s[o];else if(i=e.match(/rgb\(\s*(\-?\d+(?:\.\d+)?)%,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*\)/)){for(s=i.slice(1,4),o=t=0;t<=2;o=++t)s[o]=we(2.55*s[o]);s[3]=1}else if(i=e.match(/rgba\(\s*(\-?\d+(?:\.\d+)?)%,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)/)){for(s=i.slice(1,5),o=n=0;n<=2;o=++n)s[o]=we(2.55*s[o]);s[3]=+s[3]}else(i=e