UNPKG

react-colorscales

Version:

A React component for picking colorscales based on Chroma.js

1 lines 258 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 o in n)("object"===typeof exports?exports:e)[o]=n[o]}}(this,function(e,t){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},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=82)}([function(t,n){t.exports=e},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var o="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,r=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===o};e.exports=n(120)(r,!0)}else e.exports=n(122)()}).call(t,n(26))},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 o=n(43),r=function(e){return e&&e.__esModule?e:{default:e}}(o);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,r.default)(t))&&"function"!==typeof t?e:t}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(113),i=o(r),a=n(117),s=o(a),u=n(43),l=o(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,l.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 o=n(86),r=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=r.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e}},function(e,t){var n=e.exports={version:"2.6.2"};"number"==typeof __e&&(__e=n)},function(e,t,n){var o=n(40)("wks"),r=n(29),i=n(11).Symbol,a="function"==typeof i;(e.exports=function(e){return o[e]||(o[e]=a&&i[e]||(a?i:r)("Symbol."+e))}).store=o},function(e,n){e.exports=t},function(e,t,n){"use strict";t.__esModule=!0;var o=n(69),r=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),(0,r.default)(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}()},function(e,t,n){var o=n(11),r=n(6),i=n(34),a=n(19),s=n(14),u=function(e,t,n){var l,c,p,f=e&u.F,d=e&u.G,h=e&u.S,b=e&u.P,v=e&u.B,g=e&u.W,m=d?r:r[t]||(r[t]={}),y=m.prototype,E=d?o:h?o[t]:(o[t]||{}).prototype;d&&(n=t);for(l in n)(c=!f&&E&&void 0!==E[l])&&s(m,l)||(p=c?E[l]:n[l],m[l]=d&&"function"!=typeof E[l]?n[l]:v&&c?i(p,o):g&&E[l]==p?function(e){var t=function(t,n,o){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,o)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(p):b&&"function"==typeof p?i(Function.call,p):p,b&&((m.virtual||(m.virtual={}))[l]=p,e&u.R&&y&&!y[l]&&a(y,l,p)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},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 o=n(20),r=n(58),i=n(35),a=Object.defineProperty;t.f=n(13)?Object.defineProperty:function(e,t,n){if(o(e),t=i(t,!0),o(n),r)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(22)(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 o=n(61),r=n(37);e.exports=function(e){return o(r(e))}},function(e,t,n){var o,r;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var r=typeof o;if("string"===r||"number"===r)e.push(o);else if(Array.isArray(o)&&o.length){var a=n.apply(null,o);a&&e.push(a)}else if("object"===r)for(var s in o)i.call(o,s)&&o[s]&&e.push(s)}}return e.join(" ")}var i={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?(n.default=n,e.exports=n):(o=[],void 0!==(r=function(){return n}.apply(t,o))&&(e.exports=r))}()},function(e,t,n){"use strict";function o(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function r(e,t,n){var o=n;{if("object"!==("undefined"===typeof t?"undefined":T(t)))return"undefined"!==typeof o?("number"===typeof o&&(o+="px"),void(e.style[t]=o)):_(e,t);for(var i in t)t.hasOwnProperty(i)&&r(e,i,t[i])}}function i(e){var t=void 0,n=void 0,o=void 0,r=e.ownerDocument,i=r.body,a=r&&r.documentElement;return t=e.getBoundingClientRect(),n=t.left,o=t.top,n-=a.clientLeft||i.clientLeft||0,o-=a.clientTop||i.clientTop||0,{left:n,top:o}}function a(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],o="scroll"+(t?"Top":"Left");if("number"!==typeof n){var r=e.document;n=r.documentElement[o],"number"!==typeof n&&(n=r.body[o])}return n}function s(e){return a(e)}function u(e){return a(e,!0)}function l(e){var t=i(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=s(o),t.top+=u(o),t}function c(e){return null!==e&&void 0!==e&&e==e.window}function p(e){return c(e)?e.document:9===e.nodeType?e:e.ownerDocument}function f(e,t,n){var o=n,r="",i=p(e);return o=o||i.defaultView.getComputedStyle(e,null),o&&(r=o.getPropertyValue(t)||o[t]),r}function d(e,t){var n=e[D]&&e[D][t];if(P.test(n)&&!M.test(t)){var o=e.style,r=o[N],i=e[F][N];e[F][N]=e[D][N],o[N]="fontSize"===t?"1em":n||0,n=o.pixelLeft+j,o[N]=r,e[F][N]=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 v(e,t,n){"static"===r(e,"position")&&(e.style.position="relative");var i=-999,a=-999,s=h("left",n),u=h("top",n),c=b(s),p=b(u);"left"!==s&&(i=999),"top"!==u&&(a=999);var f="",d=l(e);("left"in t||"top"in t)&&(f=Object(k.c)(e)||"",Object(k.e)(e,"none")),"left"in t&&(e.style[c]="",e.style[s]=i+"px"),"top"in t&&(e.style[p]="",e.style[u]=a+"px"),o(e);var v=l(e),g={};for(var m in t)if(t.hasOwnProperty(m)){var y=h(m,n),E="left"===m?i:a,w=d[m]-v[m];g[y]=y===m?E+w:E-w}r(e,g),o(e),("left"in t||"top"in t)&&Object(k.e)(e,f);var O={};for(var x in t)if(t.hasOwnProperty(x)){var C=h(x,n),S=t[x]-d[x];O[C]=x===C?g[C]+S:g[C]-S}r(e,O)}function g(e,t){var n=l(e),o=Object(k.b)(e),r={x:o.x,y:o.y};"left"in t&&(r.x=o.x+t.left-n.left),"top"in t&&(r.y=o.y+t.top-n.top),Object(k.d)(e,r)}function m(e,t,n){if(n.ignoreShake){var o=l(e),r=o.left.toFixed(0),i=o.top.toFixed(0),a=t.left.toFixed(0),s=t.top.toFixed(0);if(r===a&&i===s)return}n.useCssRight||n.useCssBottom?v(e,t,n):n.useCssTransform&&Object(k.a)()in document.body.style?g(e,t,n):v(e,t,n)}function y(e,t){for(var n=0;n<e.length;n++)t(e[n])}function E(e){return"border-box"===_(e,"boxSizing")}function w(e,t,n){var o={},r=e.style,i=void 0;for(i in t)t.hasOwnProperty(i)&&(o[i]=r[i],r[i]=t[i]);n.call(e);for(i in t)t.hasOwnProperty(i)&&(r[i]=o[i])}function O(e,t,n){var o=0,r=void 0,i=void 0,a=void 0;for(i=0;i<t.length;i++)if(r=t[i])for(a=0;a<n.length;a++){var s=void 0;s="border"===r?""+r+n[a]+"Width":r+n[a],o+=parseFloat(_(e,s))||0}return o}function x(e,t,n){var o=n;if(c(e))return"width"===t?B.viewportWidth(e):B.viewportHeight(e);if(9===e.nodeType)return"width"===t?B.docWidth(e):B.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?e.getBoundingClientRect().width:e.getBoundingClientRect().height,a=_(e),s=E(e,a),u=0;(null===i||void 0===i||i<=0)&&(i=void 0,u=_(e,t),(null===u||void 0===u||Number(u)<0)&&(u=e.style[t]||0),u=parseFloat(u)||0),void 0===o&&(o=s?V:L);var l=void 0!==i||s,p=i||u;return o===L?l?p-O(e,["border","padding"],r,a):u:l?o===V?p:p+(o===I?-O(e,["border"],r,a):O(e,["margin"],r,a)):u+O(e,R.slice(o),r,a)}function C(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=void 0,r=t[0];return 0!==r.offsetWidth?o=x.apply(void 0,t):w(r,U,function(){o=x.apply(void 0,t)}),o}function S(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var k=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},A=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,_=void 0,P=new RegExp("^("+A+")(?!px)[a-z%]+$","i"),M=/^(top|right|bottom|left)$/,D="currentStyle",F="runtimeStyle",N="left",j="px";"undefined"!==typeof window&&(_=window.getComputedStyle?f:d);var R=["margin","border","padding"],L=-1,I=2,V=1,B={};y(["Width","Height"],function(e){B["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],B["viewport"+e](n))},B["viewport"+e]=function(t){var n="client"+e,o=t.document,r=o.body,i=o.documentElement,a=i[n];return"CSS1Compat"===o.compatMode&&a||r&&r[n]||a}});var U={position:"absolute",visibility:"hidden",display:"block"};y(["width","height"],function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);B["outer"+t]=function(t,n){return t&&C(t,e,n?0:V)};var n="width"===e?["Left","Right"]:["Top","Bottom"];B[e]=function(t,o){var i=o;if(void 0===i)return t&&C(t,e,L);if(t){var a=_(t);return E(t)&&(i+=O(t,["padding","border"],n,a)),r(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:p,offset:function(e,t,n){if("undefined"===typeof t)return l(e);m(e,t,n||{})},isWindow:c,each:y,css:r,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:S,getWindowScrollLeft:function(e){return s(e)},getWindowScrollTop:function(e){return u(e)},merge:function(){for(var e={},t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];for(var r=0;r<n.length;r++)W.mix(e,n[r]);return e},viewportWidth:0,viewportHeight:0};S(W,B),t.a=W},function(e,t,n){"use strict";t.__esModule=!0;var o=n(69),r=function(e){return e&&e.__esModule?e:{default:e}}(o);t.default=function(e,t,n){return t in e?(0,r.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var o=n(12),r=n(23);e.exports=n(13)?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(21);e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},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 o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}},function(e,t){e.exports={}},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(e){if(p===clearTimeout)return clearTimeout(e);if((p===o||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function a(){b&&d&&(b=!1,d.length?h=d.concat(h):v=-1,h.length&&s())}function s(){if(!b){var e=r(a);b=!0;for(var t=h.length;t;){for(d=h,h=[];++v<t;)d&&d[v].run();v=-1,t=h.length}d=null,b=!1,i(e)}}function u(e,t){this.fun=e,this.array=t}function l(){}var c,p,f=e.exports={};!function(){try{c="function"===typeof setTimeout?setTimeout:n}catch(e){c=n}try{p="function"===typeof clearTimeout?clearTimeout:o}catch(e){p=o}}();var d,h=[],b=!1,v=-1;f.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||r(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=l,f.addListener=l,f.once=l,f.off=l,f.removeListener=l,f.removeAllListeners=l,f.emit=l,f.prependListener=l,f.prependOnceListener=l,f.listeners=function(e){return[]},f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(e,t,n){var o=n(60),r=n(41);e.exports=Object.keys||function(e){return o(e,r)}},function(e,t){e.exports=!0},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var o=n(37);e.exports=function(e){return Object(o(e))}},function(e,t,n){"use strict";function o(e,t,n,o){var r=s.a.unstable_batchedUpdates?function(e){s.a.unstable_batchedUpdates(n,e)}:n;return i()(e,t,r,o)}t.a=o;var r=n(125),i=n.n(r),a=n(8),s=n.n(a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_NPREVIEWCOLORS=t.DEFAULT_SWATCH_WIDTH=t.DEFAULT_BREAKPOINTS=t.DEFAULT_LOG_BREAKPOINTS=t.DEFAULT_SCALE=t.DEFAULT_SWATCHES=t.DEFAULT_NCOLORS=t.DEFAULT_LIGHTNESS=t.DEFAULT_GAMMA=t.DEFAULT_HUE=t.DEFAULT_ROTATIONS=t.DEFAULT_START=t.CUBEHELIX=t.CMOCEAN=t.BUILTINS=t.BREWER=t.COLORSCALE_DESCRIPTIONS=t.SCALES_WITHOUT_LOG=t.COLORSCALE_TYPES=void 0;var o=n(56),r=function(e){return e&&e.__esModule?e:{default:e}}(o),i=(t.COLORSCALE_TYPES=["sequential","divergent","categorical","cyclical","cubehelix","cmocean","custom"],t.SCALES_WITHOUT_LOG=["divergent","categorical","custom"],t.COLORSCALE_DESCRIPTIONS={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.",cyclical:"Use cyclical colorscales for data that has a natural cycle, such as angular, diurnal or seasonal data.",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."},t.BREWER={sequential:["Purples","Blues","Greens","Oranges","Reds","YlOrBr","YlOrRd","OrRd","PuRd","RdPu","BuPu","PuBu","PuBuGn","GnBu","BuGn","YlGnBu","YlGn","Greys"],divergent:["Spectral","RdYlGn","RdBu","PiYG","PRGn","RdYlBu","BrBG","RdGy"],categorical:["Set1","Pastel1","Dark2","Set2","Pastel2","Set3"]},t.BUILTINS={sequential:{Viridis:["#440154","#482878","#3e4989","#31688e","#26828e","#1f9e89","#35b779","#6ece58","#b5de2b","#fde725"],Cividis:["#00224e","#123570","#3b496c","#575d6d","#707173","#8a8678","#a59c74","#c3b369","#e1cc55","#fee838"],Inferno:["#000004","#1b0c41","#4a0c6b","#781c6d","#a52c60","#cf4446","#ed6925","#fb9b06","#f7d13d","#fcffa4"],Magma:["#000004","#180f3d","#440f76","#721f81","#9e2f7f","#cd4071","#f1605d","#fd9668","#feca8d","#fcfdbf"],Plasma:["#0d0887","#46039f","#7201a8","#9c179e","#bd3786","#d8576b","#ed7953","#fb9f3a","#fdca26","#f0f921"]},categorical:{D3:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],G10:["#3366cc","#dc3912","#ff9900","#109618","#990099","#0099c6","#dd4477","#66aa00","#b82e2e","#316395"],T10:["#4c78a8","#f58518","#e45756","#72b7b2","#54a24b","#eeca3b","#b279a2","#ff9da6","#9d755d","#bab0ac"],Alphabet:["#AA0DFE","#3283FE","#85660D","#782AB6","#565656","#1C8356","#16FF32","#F7E1A0","#E2E2E2","#1CBE4F","#C4451C","#DEA0FD","#FE00FA","#325A9B","#FEAF16","#F8A19F","#90AD1C","#F6222E","#1CFFCE","#2ED9FF","#B10DA1","#C075A6","#FC1CBF","#B00068","#FBE426","#FA0087"],Dark24:["#2E91E5","#E15F99","#1CA71C","#FB0D0D","#DA16FF","#222A2A","#B68100","#750D86","#EB663B","#511CFB","#00A08B","#FB00D1","#FC0080","#B2828D","#6C7C32","#778AAE","#862A16","#A777F1","#620042","#1616A7","#DA60CA","#6C4516","#0D2A63","#AF0038"],Light24:["#FD3216","#00FE35","#6A76FC","#FED4C4","#FE00CE","#0DF9FF","#F6F926","#FF9616","#479B55","#EEA6FB","#DC587D","#D626FF","#6E899C","#00B5F7","#B68E00","#C9FBE5","#FF0092","#22FFA7","#E3EE9E","#86CE00","#BC7196","#7E7DCD","#FC6955","#E48F72"]},cyclical:{Twilight:["#e2d9e2","#9ebbc9","#6785be","#5e43a5","#421257","#471340","#8e2c50","#ba6657","#ceac94","#e2d9e2"],IceFire:["#000000","#001f4d","#003786","#0e58a8","#217eb8","#30a4ca","#54c8df","#9be4ef","#e1e9d1","#f3d573","#e7b000","#da8200","#c65400","#ac2301","#820000","#4c0000","#040100"],Edge:["#313131","#3d019d","#3810dc","#2d47f9","#2593ff","#2adef6","#60fdfa","#aefdff","#f3f3f1","#fffda9","#fafd5b","#f7da29","#ff8e25","#f8432d","#d90d39","#97023d","#313131"],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)"],HSV:["#ff0000","#ffa700","#afff00","#08ff00","#00ff9f","#00b7ff","#0010ff","#9700ff","#ff00bf","#ff0018"],mrybm:["#f884f7","#f968c4","#ea4388","#cf244b","#b51a15","#bd4304","#cc6904","#d58f04","#cfaa27","#a19f62","#588a93","#2269c4","#3e3ef0","#6b4ef9","#956bfa","#cd7dfe"],mygbm:["#ef55f1","#fb84ce","#fbafa1","#fcd471","#f0ed35","#c6e516","#96d310","#61c10b","#31ac28","#439064","#3d719a","#284ec8","#2e21ea","#6324f5","#9139fa","#c543fa"]}},t.CMOCEAN={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)"]},t.CUBEHELIX=[{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}],t.DEFAULT_START=300,t.DEFAULT_ROTATIONS=-1.5,t.DEFAULT_HUE=1,t.DEFAULT_GAMMA=1,t.DEFAULT_LIGHTNESS=[.85,.15],t.DEFAULT_NCOLORS=10,t.DEFAULT_SWATCHES=9);t.DEFAULT_SCALE=r.default.scale(["#fafa6e","#2A4858"]).mode("lch").colors(i),t.DEFAULT_LOG_BREAKPOINTS=4,t.DEFAULT_BREAKPOINTS=[0,1],t.DEFAULT_SWATCH_WIDTH=20,t.DEFAULT_NPREVIEWCOLORS=10},function(e,t,n){var o=n(89);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var o=n(21);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;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,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(40)("keys"),r=n(29);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(6),r=n(11),i=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:o.version,mode:n(28)?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(93),i=o(r),a=n(103),s=o(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,n){var o=n(20),r=n(97),i=n(41),a=n(39)("IE_PROTO"),s=function(){},u=function(){var e,t=n(59)("iframe"),o=i.length;for(t.style.display="none",n(98).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;o--;)delete u.prototype[i[o]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=o(e),n=new s,s.prototype=null,n[a]=e):n=u(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(12).f,r=n(14),i=n(7)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){t.f=n(7)},function(e,t,n){var o=n(11),r=n(6),i=n(28),a=n(46),s=n(12).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){var o=n(30),r=n(23),i=n(15),a=n(35),s=n(14),u=n(58),l=Object.getOwnPropertyDescriptor;t.f=n(13)?l:function(e,t){if(e=i(e),t=a(t,!0),u)try{return l(e,t)}catch(e){}if(s(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";(function(t){var n=function(){};"production"!==t.env.NODE_ENV&&(n=function(e,t,n){var o=arguments.length;n=new Array(o>2?o-2:0);for(var r=2;r<o;r++)n[r-2]=arguments[r];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(26))},function(e,t,n){"use strict";var o=n(5),r=n.n(o),i=n(18),a=n.n(i),s=n(24),u=n.n(s),l=n(2),c=n.n(l),p=n(9),f=n.n(p),d=n(3),h=n.n(d),b=n(4),v=n.n(b),g=n(0),m=n.n(g),y=n(1),E=n.n(y),w=n(16),O=n.n(w),x=n(32),C=function(e){function t(){var e,n,o,r;c()(this,t);for(var i=arguments.length,a=Array(i),s=0;s<i;s++)a[s]=arguments[s];return n=o=h()(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),o.state={clickFocused:!1},o.setHandleRef=function(e){o.handle=e},o.handleMouseUp=function(){document.activeElement===o.handle&&o.setClickFocus(!0)},o.handleBlur=function(){o.setClickFocus(!1)},o.handleKeyDown=function(){o.setClickFocus(!1)},r=n,h()(o,r)}return v()(t,e),f()(t,[{key:"componentDidMount",value:function(){this.onMouseUpListener=Object(x.a)(document,"mouseup",this.handleMouseUp)}},{key:"componentWillUnmount",value:function(){this.onMouseUpListener&&this.onMouseUpListener.remove()}},{key:"setClickFocus",value:function(e){this.setState({clickFocused:e})}},{key:"clickFocus",value:function(){this.setClickFocus(!0),this.focus()}},{key:"focus",value:function(){this.handle.focus()}},{key:"blur",value:function(){this.handle.blur()}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.vertical,o=e.offset,i=e.style,s=e.disabled,l=e.min,c=e.max,p=e.value,f=e.tabIndex,d=u()(e,["prefixCls","vertical","offset","style","disabled","min","max","value","tabIndex"]),h=O()(this.props.className,a()({},t+"-handle-click-focused",this.state.clickFocused)),b=n?{bottom:o+"%"}:{left:o+"%"},v=r()({},i,b);return m.a.createElement("div",r()({ref:this.setHandleRef,tabIndex:s?null:f||0},d,{className:h,style:v,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,role:"slider","aria-valuemin":l,"aria-valuemax":c,"aria-valuenow":p,"aria-disabled":!!s}))}}]),t}(m.a.Component);t.a=C,C.propTypes={prefixCls:E.a.string,className:E.a.string,vertical:E.a.bool,offset:E.a.number,style:E.a.object,disabled:E.a.bool,min:E.a.number,max:E.a.number,value:E.a.number,tabIndex:E.a.number}},function(e,t,n){"use strict";(function(e){function o(){return"production"!==e.env.NODE_ENV}function r(e,t){try{return Object.keys(t).some(function(n){return e.target===Object(y.findDOMNode)(t[n])})}catch(e){return!1}}function i(e,t){var n=t.min,o=t.max;return e<n||e>o}function a(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function s(e,t){var n=t.marks,o=t.step,r=t.min,i=Object.keys(n).map(parseFloat);if(null!==o){var a=Math.round((e-r)/o)*o+r;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 u(e){var t=e.toString(),n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}function l(e,t){return e?t.clientY:t.pageX}function c(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function p(e,t){var n=t.getBoundingClientRect();return e?n.top+.5*n.height:window.pageXOffset+n.left+.5*n.width}function f(e,t){var n=t.max,o=t.min;return e<=o?o:e>=n?n:e}function d(e,t){var n=t.step,o=isFinite(s(e,t))?s(e,t):0;return null===n?o:parseFloat(o.toFixed(u(n)))}function h(e){e.stopPropagation(),e.preventDefault()}function b(e,t,n){var o={increase:function(e,t){return e+t},decrease:function(e,t){return e-t}},r=o[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),i=Object.keys(n.marks)[r];return n.step?o[e](t,n.step):Object.keys(n.marks).length&&n.marks[i]?n.marks[i]:t}function v(e){switch(e.keyCode){case E.a.UP:case E.a.RIGHT:return function(e,t){return b("increase",e,t)};case E.a.DOWN:case E.a.LEFT:return function(e,t){return b("decrease",e,t)};case E.a.END:return function(e,t){return t.max};case E.a.HOME:return function(e,t){return t.min};case E.a.PAGE_UP:return function(e,t){return e+2*t.step};case E.a.PAGE_DOWN:return function(e,t){return e-2*t.step};default:return}}t.g=o,t.h=r,t.j=i,t.i=a,t.e=l,t.f=c,t.c=p,t.a=f,t.b=d,t.k=h,t.d=v;var g=n(81),m=n.n(g),y=n(8),E=(n.n(y),n(173))}).call(t,n(26))},function(e,t){function n(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"===typeof btoa){var i=o(r);return[n].concat(r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"})).concat([i]).join("\n")}return[n].join("\n")}function o(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var o=n(t,e);return t[2]?"@media "+t[2]+"{"+o+"}":o}).join("")},t.i=function(e,n){"string"===typeof e&&(e=[[null,e,""]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];"number"===typeof i&&(o[i]=!0)}for(r=0;r<e.length;r++){var a=e[r];"number"===typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){function o(e,t){for(var n=0;n<e.length;n++){var o=e[n],r=h[o.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](o.parts[i]);for(;i<o.parts.length;i++)r.parts.push(c(o.parts[i],t))}else{for(var a=[],i=0;i<o.parts.length;i++)a.push(c(o.parts[i],t));h[o.id]={id:o.id,refs:1,parts:a}}}}function r(e,t){for(var n=[],o={},r=0;r<e.length;r++){var i=e[r],a=t.base?i[0]+t.base:i[0],s=i[1],u=i[2],l=i[3],c={css:s,media:u,sourceMap:l};o[a]?o[a].parts.push(c):n.push(o[a]={id:a,parts:[c]})}return n}function i(e,t){var n=v(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var o=y[y.length-1];if("top"===e.insertAt)o?o.nextSibling?n.insertBefore(t,o.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),y.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function a(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=y.indexOf(e);t>=0&&y.splice(t,1)}function s(e){var t=document.createElement("style");return e.attrs.type="text/css",l(t,e.attrs),i(e,t),t}function u(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",l(t,e.attrs),i(e,t),t}function l(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function c(e,t){var n,o,r,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var l=m++;n=g||(g=s(t)),o=p.bind(null,n,l,!1),r=p.bind(null,n,l,!0)}else e.sourceMap&&"function"===typeof URL&&"function"===typeof URL.createObjectURL&&"function"===typeof URL.revokeObjectURL&&"function"===typeof Blob&&"function"===typeof btoa?(n=u(t),o=d.bind(null,n,t),r=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),o=f.bind(null,n),r=function(){a(n)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}function p(e,t,n,o){var r=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=w(t,r);else{var i=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function f(e,t){var n=t.css,o=t.media;if(o&&e.setAttribute("media",o),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function d(e,t,n){var o=n.css,r=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&r;(t.convertToAbsoluteUrls||i)&&(o=E(o)),r&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([o],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}var h={},b=function(e){var t;return function(){return"undefined"===typeof t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),v=function(e){var t={};return function(n){return"undefined"===typeof t[n]&&(t[n]=e.call(this,n)),t[n]}}(function(e){return document.querySelector(e)}),g=null,m=0,y=[],E=n(181);e.exports=function(e,t){if("undefined"!==typeof DEBUG&&DEBUG&&"object"!==typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},t.attrs="object"===typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=b()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=r(e,t);return o(n,t),function(e){for(var i=[],a=0;a<n.length;a++){var s=n[a],u=h[s.id];u.refs--,i.push(u)}if(e){o(r(e,t),t)}for(var a=0;a<i.length;a++){var u=i[a];if(0===u.refs){for(var l=0;l<u.parts.length;l++)u.parts[l]();delete h[u.id]}}}};var w=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(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)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(0),u=function(e){return e&&e.__esModule?e:{default:e}}(s),l=n(33),c=function(e){function t(){return o(this,t),r(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),a(t,[{key:"render",value:function(){var e=this,t=this.props.colorscale?this.props.colorscale:l.DEFAULT_SCALE;return u.default.createElement("div",{style:{width:"100%"},className:"colorscale-container"},this.props.label?u.default.createElement("div",{className:"colorscale-label",style:{fontWeight:600,fontSize:"12px",color:"#2a3f5f",display:"inline-block",width:"25%",textAlign:"start"}},this.props.label):null,u.default.createElement("div",{className:"colorscale-palette-container",style:{display:"inline-block",textAlign:"start",width:this.props.label?"75%":"100%"}},u.default.createElement("div",{className:"colorscale-block",style:{fontSize:"0px",display:"inline-block",width:"100%"},onClick:function(){return e.props.onClick(t,e.props.start,e.props.rot)}},t.map(function(e,n){return u.default.createElement("div",{key:n,className:"colorscale-swatch",style:{backgroundColor:e,width:100/t.length+"%",height:"20px",margin:"0 auto",display:"inline-block",cursor:"pointer"}})}))))}}]),t}(s.Component);t.default=c},function(e,t,n){(function(e){var n,o;(function(){var r,i,a,s,u,l,c,p,f,d,h,b,v,g,m,y,E,w,O,x,C,S,k,T,A,_,P,M,D,F,N,j,R,L,I,V,B,U,W,H,z,K,q,Y,G,X,Z,J,$,Q,ee,te,ne,oe,re,ie,ae,se,ue,le,ce,pe,fe,de,he,be,ve,ge,me,ye,Ee,we,Oe,xe,Ce,Se,ke,Te,Ae,_e,Pe,Me=[].slice;ke=function(){var e,t,n,o,r;for(e={},r="Boolean Number String Function Array Date RegExp Undefined Null".split(" "),o=0,t=r.length;o<t;o++)n=r[o],e["[object "+n+"]"]=n.toLowerCase();return function(t){var n;return n=Object.prototype.toString.call(t),e[n]||"object"}}(),Z=function(e,t,n){return null==t&&(t=0),null==n&&(n=1),e<t&&(e=t),e>n&&(e=n),e},Te=function(e){return e.length>=3?Array.prototype.slice.call(e):e[0]},C=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,k=Math.cos,M=Math.floor,ie=Math.pow,J=Math.log,xe=Math.sin,Ce=Math.sqrt,g=Math.atan2,ee=Math.max,v=Math.abs,c=2*s,u=s/3,i=s/180,l=180/s,x=function(){return arguments[0]instanceof r?arguments[0]:function(e,t,n){n.prototype=e.prototype;var o=new n,r=e.apply(o,t);return Object(r)===r?r:o}(r,arguments,function(){})},x.default=x,b=[],"undefined"!==typeof e&&null!==e&&null!=e.exports&&(e.exports=x),n=[],void 0!==(o=function(){return x}.apply(t,n))&&(e.exports=o),x.version="1.4.1",h={},f=[],d=!1,r=function(){function e(){var e,t,n,o,r,i,a,s,u;for(i=this,t=[],s=0,o=arguments.length;s<o;s++)null!=(e=arguments[s])&&t.push(e);if(t.length>1&&(a=t[t.length-1]),null!=h[a])i._rgb=C(h[a](Te(t.slice(0,-1))));else{for(d||(f=f.sort(function(e,t){return t.p-e.p}),d=!0),u=0,r=f.length;u<r&&(n=f[u],!(a=n.test.apply(n,t)));u++);a&&(i._rgb=C(h[a].apply(h,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}(),x._input=h,x.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])}(),Ae={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"},x.colors=Ae,K=function(){var e,t,n,o,r,i,s,u,l;return t=Te(arguments),r=t[0],e=t[1],n=t[2],u=(r+16)/116,s=isNaN(e)?u:u+e/500,l=isNaN(n)?u:u-n/200,u=a.Yn*q(u),s=a.Xn*q(s),l=a.Zn*q(l),i=Pe(3.2404542*s-1.5371385*u-.4985314*l),o=Pe(-.969266*s+1.8760108*u+.041556*l),n=Pe(.0556434*s-.2040259*u+1.0572252*l),[i,o,n,t.length>3?t[3]:1]},Pe=function(e){return 255*(e<=.00304?12.92*e:1.055*ie(e,1/2.4)-.055)},q=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},de=function(){var e,t,n,o,r,i,a,s;return o=Te(arguments),n=o[0],t=o[1],e=o[2],r=me(n,t,e),i=r[0],a=r[1],s=r[2],[116*a-16,500*(i-a),200*(a-s)]},ye=function(e){return(e/=255)<=.04045?e/12.92:ie((e+.055)/1.055,2.4)},_e=function(e){return e>a.t3?ie(e,1/3):e/a.t2+a.t0},me=function(){var e,t,n,o,r,i,s;return o=Te(arguments),n=o[0],t=o[1],e=o[2],n=ye(n),t=ye(t),e=ye(e),r=_e((.4124564*n+.3575761*t+.1804375*e)/a.Xn),i=_e((.2126729*n+.7151522*t+.072175*e)/a.Yn),s=_e((.0193339*n+.119192*t+.9503041*e)/a.Zn),[r,i,s]},x.lab=function(){return function(e,t,n){n.prototype=e.prototype;var o=new n,r=e.apply(o,t);return Object(r)===r?r:o}(r,Me.call(arguments).concat(["lab"]),function(){})},h.lab=K,r.prototype.lab=function(){return de(this._rgb)},m=function(e){var t,n,o,r,i,a,s,u,l,c,p;return e=function(){var t,n,o;for(o=[],n=0,t=e.length;n<t;n++)r=e[n],o.push(x(r));return o}(),2===e.length?(l=function(){var t,n,o;for(o=[],n=0,t=e.length;n<t;n++)r=e[n],o.push(r.lab());return o}(),i=l[0],a=l[1],t=function(e){var t,n;return n=function(){var n,o;for(o=[],t=n=0;n<=2;t=++n)o.push(i[t]+e*(a[t]-i[t]));return o}(),x.lab.apply(x,n)}):3===e.length?(c=function(){var t,n,o;for(o=[],n=0,t=e.length;n<t;n++)r=e[n],o.push(r.lab());return o}(),i=c[0],a=c[1],s=c[2],t=function(e){var t,n;return n=function(){var n,o;for(o=[],t=n=0;n<=2;t=++n)o.push((1-e)*(1-e)*i[t]+2*(1-e)*e*a[t]+e*e*s[t]);return o}(),x.lab.apply(x,n)}):4===e.length?(p=function(){var t,n,o;for(o=[],n=0,t=e.length;n<t;n++)r=e[n],o.push(r.lab());return o}(),i=p[0],a=p[1],s=p[2],u=p[3],t=function(e){var t,n;return n=function(){var n,o;for(o=[],t=n=0;n<=2;t=++n)o.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 o}(),x.lab.apply(x,n)}):5===e.length&&(n=m(e.slice(0,3)),o=m(e.slice(2,5)),t=function(e){return e<.