recharts-scale
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -42,7 +42,9 @@ /** | ||
var num = new Decimal(start); | ||
var result = []; | ||
var i = 0; | ||
var result = []; // magic number to prevent infinite loop | ||
while (num.lt(end)) { | ||
while (num.lt(end) && i < 100000) { | ||
result.push(num.toNumber()); | ||
num = num.add(step); | ||
i++; | ||
} | ||
@@ -49,0 +51,0 @@ |
@@ -53,7 +53,9 @@ "use strict"; | ||
var num = new _decimal.default(start); | ||
var result = []; | ||
var i = 0; | ||
var result = []; // magic number to prevent infinite loop | ||
while (num.lt(end)) { | ||
while (num.lt(end) && i < 100000) { | ||
result.push(num.toNumber()); | ||
num = num.add(step); | ||
i++; | ||
} | ||
@@ -60,0 +62,0 @@ |
{ | ||
"name": "recharts-scale", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "Scale of Cartesian Coordinates", | ||
@@ -5,0 +5,0 @@ "main": "lib/index", |
@@ -42,8 +42,11 @@ /** | ||
let num = new Decimal(start); | ||
let i = 0; | ||
const result = []; | ||
while (num.lt(end)) { | ||
// magic number to prevent infinite loop | ||
while (num.lt(end) && i < 100000) { | ||
result.push(num.toNumber()); | ||
num = num.add(step); | ||
i++; | ||
} | ||
@@ -50,0 +53,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(e){var r={};function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var i in e)t.d(n,i,function(r){return e[r]}.bind(null,i));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=2)}([function(e,r,t){var n;/*! decimal.js-light v2.4.1 https://github.com/MikeMcl/decimal.js-light/LICENCE */!function(i){"use strict";var o,u=1e9,s={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},f=!0,a="[DecimalError] ",c=a+"Invalid argument: ",l=a+"Exponent out of range: ",d=Math.floor,h=Math.pow,v=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,g=1e7,p=7,w=d(9007199254740991/p),m={};function b(e,r){var t,n,i,o,u,s,a,c,l=e.constructor,d=l.precision;if(!e.s||!r.s)return r.s||(r=new l(e)),f?T(r,d):r;if(a=e.d,c=r.d,u=e.e,i=r.e,a=a.slice(),o=u-i){for(o<0?(n=a,o=-o,s=c.length):(n=c,i=u,s=a.length),o>(s=(u=Math.ceil(d/p))>s?u+1:s+1)&&(o=s,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for((s=a.length)-(o=c.length)<0&&(o=s,n=c,c=a,a=n),t=0;o;)t=(a[--o]=a[o]+c[o]+t)/g|0,a[o]%=g;for(t&&(a.unshift(t),++i),s=a.length;0==a[--s];)a.pop();return r.d=a,r.e=i,f?T(r,d):r}function y(e,r,t){if(e!==~~e||e<r||e>t)throw Error(c+e)}function N(e){var r,t,n,i=e.length-1,o="",u=e[0];if(i>0){for(o+=u,r=1;r<i;r++)n=e[r]+"",(t=p-n.length)&&(o+=A(t)),o+=n;u=e[r],(t=p-(n=u+"").length)&&(o+=A(t))}else if(0===u)return"0";for(;u%10==0;)u/=10;return o+u}m.absoluteValue=m.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},m.comparedTo=m.cmp=function(e){var r,t,n,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=0,t=(n=o.d.length)<(i=e.d.length)?n:i;r<t;++r)if(o.d[r]!==e.d[r])return o.d[r]>e.d[r]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1},m.decimalPlaces=m.dp=function(){var e=this,r=e.d.length-1,t=(r-e.e)*p;if(r=e.d[r])for(;r%10==0;r/=10)t--;return t<0?0:t},m.dividedBy=m.div=function(e){return E(this,new this.constructor(e))},m.dividedToIntegerBy=m.idiv=function(e){var r=this.constructor;return T(E(this,new r(e),0,1),r.precision)},m.equals=m.eq=function(e){return!this.cmp(e)},m.exponent=function(){return O(this)},m.greaterThan=m.gt=function(e){return this.cmp(e)>0},m.greaterThanOrEqualTo=m.gte=function(e){return this.cmp(e)>=0},m.isInteger=m.isint=function(){return this.e>this.d.length-2},m.isNegative=m.isneg=function(){return this.s<0},m.isPositive=m.ispos=function(){return this.s>0},m.isZero=function(){return 0===this.s},m.lessThan=m.lt=function(e){return this.cmp(e)<0},m.lessThanOrEqualTo=m.lte=function(e){return this.cmp(e)<1},m.logarithm=m.log=function(e){var r,t=this,n=t.constructor,i=n.precision,u=i+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(o))throw Error(a+"NaN");if(t.s<1)throw Error(a+(t.s?"NaN":"-Infinity"));return t.eq(o)?new n(0):(f=!1,r=E(_(t,u),_(e,u),u),f=!0,T(r,i))},m.minus=m.sub=function(e){var r=this;return e=new r.constructor(e),r.s==e.s?k(r,e):b(r,(e.s=-e.s,e))},m.modulo=m.mod=function(e){var r,t=this,n=t.constructor,i=n.precision;if(!(e=new n(e)).s)throw Error(a+"NaN");return t.s?(f=!1,r=E(t,e,0,1).times(e),f=!0,t.minus(r)):T(new n(t),i)},m.naturalExponential=m.exp=function(){return M(this)},m.naturalLogarithm=m.ln=function(){return _(this)},m.negated=m.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},m.plus=m.add=function(e){var r=this;return e=new r.constructor(e),r.s==e.s?b(r,e):k(r,(e.s=-e.s,e))},m.precision=m.sd=function(e){var r,t,n,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(c+e);if(r=O(i)+1,t=(n=i.d.length-1)*p+1,n=i.d[n]){for(;n%10==0;n/=10)t--;for(n=i.d[0];n>=10;n/=10)t++}return e&&r>t?r:t},m.squareRoot=m.sqrt=function(){var e,r,t,n,i,o,u,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(a+"NaN")}for(e=O(s),f=!1,0==(i=Math.sqrt(+s))||i==1/0?(((r=N(s.d)).length+e)%2==0&&(r+="0"),i=Math.sqrt(r),e=d((e+1)/2)-(e<0||e%2),n=new c(r=i==1/0?"1e"+e:(r=i.toExponential()).slice(0,r.indexOf("e")+1)+e)):n=new c(i.toString()),i=u=(t=c.precision)+3;;)if(n=(o=n).plus(E(s,o,u+2)).times(.5),N(o.d).slice(0,u)===(r=N(n.d)).slice(0,u)){if(r=r.slice(u-3,u+1),i==u&&"4999"==r){if(T(o,t+1,0),o.times(o).eq(s)){n=o;break}}else if("9999"!=r)break;u+=4}return f=!0,T(n,t)},m.times=m.mul=function(e){var r,t,n,i,o,u,s,a,c,l=this,d=l.constructor,h=l.d,v=(e=new d(e)).d;if(!l.s||!e.s)return new d(0);for(e.s*=l.s,t=l.e+e.e,(a=h.length)<(c=v.length)&&(o=h,h=v,v=o,u=a,a=c,c=u),o=[],n=u=a+c;n--;)o.push(0);for(n=c;--n>=0;){for(r=0,i=a+n;i>n;)s=o[i]+v[n]*h[i-n-1]+r,o[i--]=s%g|0,r=s/g|0;o[i]=(o[i]+r)%g|0}for(;!o[--u];)o.pop();return r?++t:o.shift(),e.d=o,e.e=t,f?T(e,d.precision):e},m.toDecimalPlaces=m.todp=function(e,r){var t=this,n=t.constructor;return t=new n(t),void 0===e?t:(y(e,0,u),void 0===r?r=n.rounding:y(r,0,8),T(t,e+O(t)+1,r))},m.toExponential=function(e,r){var t,n=this,i=n.constructor;return void 0===e?t=D(n,!0):(y(e,0,u),void 0===r?r=i.rounding:y(r,0,8),t=D(n=T(new i(n),e+1,r),!0,e+1)),t},m.toFixed=function(e,r){var t,n,i=this,o=i.constructor;return void 0===e?D(i):(y(e,0,u),void 0===r?r=o.rounding:y(r,0,8),t=D((n=T(new o(i),e+O(i)+1,r)).abs(),!1,e+O(n)+1),i.isneg()&&!i.isZero()?"-"+t:t)},m.toInteger=m.toint=function(){var e=this,r=e.constructor;return T(new r(e),O(e)+1,r.rounding)},m.toNumber=function(){return+this},m.toPower=m.pow=function(e){var r,t,n,i,u,s,c=this,l=c.constructor,h=+(e=new l(e));if(!e.s)return new l(o);if(!(c=new l(c)).s){if(e.s<1)throw Error(a+"Infinity");return c}if(c.eq(o))return c;if(n=l.precision,e.eq(o))return T(c,n);if(s=(r=e.e)>=(t=e.d.length-1),u=c.s,s){if((t=h<0?-h:h)<=9007199254740991){for(i=new l(o),r=Math.ceil(n/p+4),f=!1;t%2&&j((i=i.times(c)).d,r),0!==(t=d(t/2));)j((c=c.times(c)).d,r);return f=!0,e.s<0?new l(o).div(i):T(i,n)}}else if(u<0)throw Error(a+"NaN");return u=u<0&&1&e.d[Math.max(r,t)]?-1:1,c.s=1,f=!1,i=e.times(_(c,n+12)),f=!0,(i=M(i)).s=u,i},m.toPrecision=function(e,r){var t,n,i=this,o=i.constructor;return void 0===e?n=D(i,(t=O(i))<=o.toExpNeg||t>=o.toExpPos):(y(e,1,u),void 0===r?r=o.rounding:y(r,0,8),n=D(i=T(new o(i),e,r),e<=(t=O(i))||t<=o.toExpNeg,e)),n},m.toSignificantDigits=m.tosd=function(e,r){var t=this.constructor;return void 0===e?(e=t.precision,r=t.rounding):(y(e,1,u),void 0===r?r=t.rounding:y(r,0,8)),T(new t(this),e,r)},m.toString=m.valueOf=m.val=m.toJSON=function(){var e=this,r=O(e),t=e.constructor;return D(e,r<=t.toExpNeg||r>=t.toExpPos)};var E=function(){function e(e,r){var t,n=0,i=e.length;for(e=e.slice();i--;)t=e[i]*r+n,e[i]=t%g|0,n=t/g|0;return n&&e.unshift(n),e}function r(e,r,t,n){var i,o;if(t!=n)o=t>n?1:-1;else for(i=o=0;i<t;i++)if(e[i]!=r[i]){o=e[i]>r[i]?1:-1;break}return o}function t(e,r,t){for(var n=0;t--;)e[t]-=n,n=e[t]<r[t]?1:0,e[t]=n*g+e[t]-r[t];for(;!e[0]&&e.length>1;)e.shift()}return function(n,i,o,u){var s,f,c,l,d,h,v,w,m,b,y,N,E,M,x,A,_,P,k=n.constructor,D=n.s==i.s?1:-1,j=n.d,L=i.d;if(!n.s)return new k(n);if(!i.s)throw Error(a+"Division by zero");for(f=n.e-i.e,_=L.length,x=j.length,w=(v=new k(D)).d=[],c=0;L[c]==(j[c]||0);)++c;if(L[c]>(j[c]||0)&&--f,(N=null==o?o=k.precision:u?o+(O(n)-O(i))+1:o)<0)return new k(0);if(N=N/p+2|0,c=0,1==_)for(l=0,L=L[0],N++;(c<x||l)&&N--;c++)E=l*g+(j[c]||0),w[c]=E/L|0,l=E%L|0;else{for((l=g/(L[0]+1)|0)>1&&(L=e(L,l),j=e(j,l),_=L.length,x=j.length),M=_,b=(m=j.slice(0,_)).length;b<_;)m[b++]=0;(P=L.slice()).unshift(0),A=L[0],L[1]>=g/2&&++A;do{l=0,(s=r(L,m,_,b))<0?(y=m[0],_!=b&&(y=y*g+(m[1]||0)),(l=y/A|0)>1?(l>=g&&(l=g-1),1==(s=r(d=e(L,l),m,h=d.length,b=m.length))&&(l--,t(d,_<h?P:L,h))):(0==l&&(s=l=1),d=L.slice()),(h=d.length)<b&&d.unshift(0),t(m,d,b),-1==s&&(s=r(L,m,_,b=m.length))<1&&(l++,t(m,_<b?P:L,b)),b=m.length):0===s&&(l++,m=[0]),w[c++]=l,s&&m[0]?m[b++]=j[M]||0:(m=[j[M]],b=1)}while((M++<x||void 0!==m[0])&&N--)}return w[0]||w.shift(),v.e=f,T(v,u?o+O(v)+1:o)}}();function M(e,r){var t,n,i,u,s,a=0,c=0,d=e.constructor,v=d.precision;if(O(e)>16)throw Error(l+O(e));if(!e.s)return new d(o);for(null==r?(f=!1,s=v):s=r,u=new d(.03125);e.abs().gte(.1);)e=e.times(u),c+=5;for(s+=Math.log(h(2,c))/Math.LN10*2+5|0,t=n=i=new d(o),d.precision=s;;){if(n=T(n.times(e),s),t=t.times(++a),N((u=i.plus(E(n,t,s))).d).slice(0,s)===N(i.d).slice(0,s)){for(;c--;)i=T(i.times(i),s);return d.precision=v,null==r?(f=!0,T(i,v)):i}i=u}}function O(e){for(var r=e.e*p,t=e.d[0];t>=10;t/=10)r++;return r}function x(e,r,t){if(r>e.LN10.sd())throw f=!0,t&&(e.precision=t),Error(a+"LN10 precision limit exceeded");return T(new e(e.LN10),r)}function A(e){for(var r="";e--;)r+="0";return r}function _(e,r){var t,n,i,u,s,c,l,d,h,v=1,g=e,p=g.d,w=g.constructor,m=w.precision;if(g.s<1)throw Error(a+(g.s?"NaN":"-Infinity"));if(g.eq(o))return new w(0);if(null==r?(f=!1,d=m):d=r,g.eq(10))return null==r&&(f=!0),x(w,d);if(d+=10,w.precision=d,n=(t=N(p)).charAt(0),u=O(g),!(Math.abs(u)<15e14))return l=x(w,d+2,m).times(u+""),g=_(new w(n+"."+t.slice(1)),d-10).plus(l),w.precision=m,null==r?(f=!0,T(g,m)):g;for(;n<7&&1!=n||1==n&&t.charAt(1)>3;)n=(t=N((g=g.times(e)).d)).charAt(0),v++;for(u=O(g),n>1?(g=new w("0."+t),u++):g=new w(n+"."+t.slice(1)),c=s=g=E(g.minus(o),g.plus(o),d),h=T(g.times(g),d),i=3;;){if(s=T(s.times(h),d),N((l=c.plus(E(s,new w(i),d))).d).slice(0,d)===N(c.d).slice(0,d))return c=c.times(2),0!==u&&(c=c.plus(x(w,d+2,m).times(u+""))),c=E(c,new w(v),d),w.precision=m,null==r?(f=!0,T(c,m)):c;c=l,i+=2}}function P(e,r){var t,n,i;for((t=r.indexOf("."))>-1&&(r=r.replace(".","")),(n=r.search(/e/i))>0?(t<0&&(t=n),t+=+r.slice(n+1),r=r.substring(0,n)):t<0&&(t=r.length),n=0;48===r.charCodeAt(n);)++n;for(i=r.length;48===r.charCodeAt(i-1);)--i;if(r=r.slice(n,i)){if(i-=n,t=t-n-1,e.e=d(t/p),e.d=[],n=(t+1)%p,t<0&&(n+=p),n<i){for(n&&e.d.push(+r.slice(0,n)),i-=p;n<i;)e.d.push(+r.slice(n,n+=p));r=r.slice(n),n=p-r.length}else n-=i;for(;n--;)r+="0";if(e.d.push(+r),f&&(e.e>w||e.e<-w))throw Error(l+t)}else e.s=0,e.e=0,e.d=[0];return e}function T(e,r,t){var n,i,o,u,s,a,c,v,m=e.d;for(u=1,o=m[0];o>=10;o/=10)u++;if((n=r-u)<0)n+=p,i=r,c=m[v=0];else{if((v=Math.ceil((n+1)/p))>=(o=m.length))return e;for(c=o=m[v],u=1;o>=10;o/=10)u++;i=(n%=p)-p+u}if(void 0!==t&&(s=c/(o=h(10,u-i-1))%10|0,a=r<0||void 0!==m[v+1]||c%o,a=t<4?(s||a)&&(0==t||t==(e.s<0?3:2)):s>5||5==s&&(4==t||a||6==t&&(n>0?i>0?c/h(10,u-i):0:m[v-1])%10&1||t==(e.s<0?8:7))),r<1||!m[0])return a?(o=O(e),m.length=1,r=r-o-1,m[0]=h(10,(p-r%p)%p),e.e=d(-r/p)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(0==n?(m.length=v,o=1,v--):(m.length=v+1,o=h(10,p-n),m[v]=i>0?(c/h(10,u-i)%h(10,i)|0)*o:0),a)for(;;){if(0==v){(m[0]+=o)==g&&(m[0]=1,++e.e);break}if(m[v]+=o,m[v]!=g)break;m[v--]=0,o=1}for(n=m.length;0===m[--n];)m.pop();if(f&&(e.e>w||e.e<-w))throw Error(l+O(e));return e}function k(e,r){var t,n,i,o,u,s,a,c,l,d,h=e.constructor,v=h.precision;if(!e.s||!r.s)return r.s?r.s=-r.s:r=new h(e),f?T(r,v):r;if(a=e.d,d=r.d,n=r.e,c=e.e,a=a.slice(),u=c-n){for((l=u<0)?(t=a,u=-u,s=d.length):(t=d,n=c,s=a.length),u>(i=Math.max(Math.ceil(v/p),s)+2)&&(u=i,t.length=1),t.reverse(),i=u;i--;)t.push(0);t.reverse()}else{for((l=(i=a.length)<(s=d.length))&&(s=i),i=0;i<s;i++)if(a[i]!=d[i]){l=a[i]<d[i];break}u=0}for(l&&(t=a,a=d,d=t,r.s=-r.s),s=a.length,i=d.length-s;i>0;--i)a[s++]=0;for(i=d.length;i>u;){if(a[--i]<d[i]){for(o=i;o&&0===a[--o];)a[o]=g-1;--a[o],a[i]+=g}a[i]-=d[i]}for(;0===a[--s];)a.pop();for(;0===a[0];a.shift())--n;return a[0]?(r.d=a,r.e=n,f?T(r,v):r):new h(0)}function D(e,r,t){var n,i=O(e),o=N(e.d),u=o.length;return r?(t&&(n=t-u)>0?o=o.charAt(0)+"."+o.slice(1)+A(n):u>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+A(-i-1)+o,t&&(n=t-u)>0&&(o+=A(n))):i>=u?(o+=A(i+1-u),t&&(n=t-i-1)>0&&(o=o+"."+A(n))):((n=i+1)<u&&(o=o.slice(0,n)+"."+o.slice(n)),t&&(n=t-u)>0&&(i+1===u&&(o+="."),o+=A(n))),e.s<0?"-"+o:o}function j(e,r){if(e.length>r)return e.length=r,!0}function L(e){if(!e||"object"!=typeof e)throw Error(a+"Object expected");var r,t,n,i=["precision",1,u,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(r=0;r<i.length;r+=3)if(void 0!==(n=e[t=i[r]])){if(!(d(n)===n&&n>=i[r+1]&&n<=i[r+2]))throw Error(c+t+": "+n);this[t]=n}if(void 0!==(n=e[t="LN10"])){if(n!=Math.LN10)throw Error(c+t+": "+n);this[t]=new this(n)}return this}(s=function e(r){var t,n,i;function o(e){var r=this;if(!(r instanceof o))return new o(e);if(r.constructor=o,e instanceof o)return r.s=e.s,r.e=e.e,void(r.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(c+e);if(e>0)r.s=1;else{if(!(e<0))return r.s=0,r.e=0,void(r.d=[0]);e=-e,r.s=-1}return e===~~e&&e<1e7?(r.e=0,void(r.d=[e])):P(r,e.toString())}if("string"!=typeof e)throw Error(c+e);if(45===e.charCodeAt(0)?(e=e.slice(1),r.s=-1):r.s=1,!v.test(e))throw Error(c+e);P(r,e)}if(o.prototype=m,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=e,o.config=o.set=L,void 0===r&&(r={}),r)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<i.length;)r.hasOwnProperty(n=i[t++])||(r[n]=this[n]);return o.config(r),o}(s)).default=s.Decimal=s,o=new s(1),void 0===(n=function(){return s}.call(r,t,r,e))||(e.exports=n)}()},function(e,r,t){"use strict";function n(e){return function(e){if(Array.isArray(e)){for(var r=0,t=new Array(e.length);r<e.length;r++)t[r]=e[r];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}Object.defineProperty(r,"__esModule",{value:!0}),r.memoize=r.reverse=r.compose=r.map=r.range=r.curry=r.PLACE_HOLDER=void 0;var i=function(e){return e},o={"@@functional/placeholder":!0};r.PLACE_HOLDER=o;var u=function(e){return e===o},s=function(e){return function r(){return 0===arguments.length||1===arguments.length&&u(arguments.length<=0?void 0:arguments[0])?r:e.apply(void 0,arguments)}},f=function(e){return function e(r,t){return 1===r?t:s(function(){for(var i=arguments.length,f=new Array(i),a=0;a<i;a++)f[a]=arguments[a];var c=f.filter(function(e){return e!==o}).length;return c>=r?t.apply(void 0,f):e(r-c,s(function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o=f.map(function(e){return u(e)?r.shift():e});return t.apply(void 0,n(o).concat(r))}))})}(e.length,e)};r.curry=f;r.range=function(e,r){for(var t=[],n=e;n<r;++n)t[n-e]=n;return t};var a=f(function(e,r){return Array.isArray(r)?r.map(e):Object.keys(r).map(function(e){return r[e]}).map(e)});r.map=a;r.compose=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];if(!r.length)return i;var n=r.reverse(),o=n[0],u=n.slice(1);return function(){return u.reduce(function(e,r){return r(e)},o.apply(void 0,arguments))}};r.reverse=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")};r.memoize=function(e){var r=null,t=null;return function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r&&i.every(function(e,t){return e===r[t]})?t:(r=i,t=e.apply(void 0,i))}}},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getTickValues",{enumerable:!0,get:function(){return n.getTickValues}}),Object.defineProperty(r,"getNiceTickValues",{enumerable:!0,get:function(){return n.getNiceTickValues}}),Object.defineProperty(r,"getTickValuesFixedDomain",{enumerable:!0,get:function(){return n.getTickValuesFixedDomain}});var n=t(3)},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getTickValuesFixedDomain=r.getTickValues=r.getNiceTickValues=void 0;var n=u(t(0)),i=t(1),o=u(t(4));function u(e){return e&&e.__esModule?e:{default:e}}function s(e){return function(e){if(Array.isArray(e)){for(var r=0,t=new Array(e.length);r<e.length;r++)t[r]=e[r];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function f(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=[],n=!0,i=!1,o=void 0;try{for(var u,s=e[Symbol.iterator]();!(n=(u=s.next()).done)&&(t.push(u.value),!r||t.length!==r);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return t}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){var r=f(e,2),t=r[0],n=r[1],i=t,o=n;return t>n&&(i=n,o=t),[i,o]}function c(e,r,t){if(e.lte(0))return new n.default(0);var i=o.default.getDigitCount(e.toNumber()),u=new n.default(10).pow(i),s=e.div(u),f=1!==i?.05:.1,a=new n.default(Math.ceil(s.div(f).toNumber())).add(t).mul(f).mul(u);return r?a:new n.default(Math.ceil(a))}function l(e,r,t){var u=1,s=new n.default(e);if(!s.isint()&&t){var f=Math.abs(e);f<1?(u=new n.default(10).pow(o.default.getDigitCount(e)-1),s=new n.default(Math.floor(s.div(u).toNumber())).mul(u)):f>1&&(s=new n.default(Math.floor(e)))}else 0===e?s=new n.default(Math.floor((r-1)/2)):t||(s=new n.default(Math.floor(e)));var a=Math.floor((r-1)/2);return(0,i.compose)((0,i.map)(function(e){return s.add(new n.default(e-a).mul(u)).toNumber()}),i.range)(0,r)}var d=(0,i.memoize)(function(e){var r=f(e,2),t=r[0],u=r[1],d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,h=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],v=Math.max(d,2),g=f(a([t,u]),2),p=g[0],w=g[1];if(p===-1/0||w===1/0){var m=w===1/0?[p].concat(s((0,i.range)(0,d-1).map(function(){return 1/0}))):s((0,i.range)(0,d-1).map(function(){return-1/0})).concat([w]);return t>u?(0,i.reverse)(m):m}if(p===w)return l(p,d,h);var b=function e(r,t,i,o){var u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-r)/(i-1)))return{step:new n.default(0),tickMin:new n.default(0),tickMax:new n.default(0)};var s,f=c(new n.default(t).sub(r).div(i-1),o,u);s=r<=0&&t>=0?new n.default(0):(s=new n.default(r).add(t).div(2)).sub(new n.default(s).mod(f));var a=Math.ceil(s.sub(r).div(f).toNumber()),l=Math.ceil(new n.default(t).sub(s).div(f).toNumber()),d=a+l+1;return d>i?e(r,t,i,o,u+1):(d<i&&(l=t>0?l+(i-d):l,a=t>0?a:a+(i-d)),{step:f,tickMin:s.sub(new n.default(a).mul(f)),tickMax:s.add(new n.default(l).mul(f))})}(p,w,v,h),y=b.step,N=b.tickMin,E=b.tickMax,M=o.default.rangeStep(N,E.add(new n.default(.1).mul(y)),y);return t>u?(0,i.reverse)(M):M});r.getNiceTickValues=d;var h=(0,i.memoize)(function(e){var r=f(e,2),t=r[0],o=r[1],u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],d=Math.max(u,2),h=f(a([t,o]),2),v=h[0],g=h[1];if(v===-1/0||g===1/0)return[t,o];if(v===g)return l(v,u,s);var p=c(new n.default(g).sub(v).div(d-1),s,0),w=(0,i.compose)((0,i.map)(function(e){return new n.default(v).add(new n.default(e).mul(p)).toNumber()}),i.range)(0,d).filter(function(e){return e>=v&&e<=g});return t>o?(0,i.reverse)(w):w});r.getTickValues=h;var v=(0,i.memoize)(function(e,r){var t=f(e,2),u=t[0],l=t[1],d=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],h=f(a([u,l]),2),v=h[0],g=h[1];if(v===-1/0||g===1/0)return[u,l];if(v===g)return[v];var p=Math.max(r,2),w=c(new n.default(g).sub(v).div(p-1),d,0),m=s(o.default.rangeStep(new n.default(v),new n.default(g).sub(new n.default(.99).mul(w)),w)).concat([g]);return u>l?(0,i.reverse)(m):m});r.getTickValuesFixedDomain=v},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(t(0)),i=t(1);var o={rangeStep:function(e,r,t){for(var i=new n.default(e),o=[];i.lt(r);)o.push(i.toNumber()),i=i.add(t);return o},getDigitCount:function(e){return 0===e?1:Math.floor(new n.default(e).abs().log(10).toNumber())+1},interpolateNumber:(0,i.curry)(function(e,r,t){var n=+e;return n+t*(+r-n)}),uninterpolateNumber:(0,i.curry)(function(e,r,t){var n=r-+e;return(t-e)/(n=n||1/0)}),uninterpolateTruncation:(0,i.curry)(function(e,r,t){var n=r-+e;return n=n||1/0,Math.max(0,Math.min(1,(t-e)/n))})};r.default=o}]); | ||
!function(e){var r={};function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var i in e)t.d(n,i,function(r){return e[r]}.bind(null,i));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=2)}([function(e,r,t){var n;/*! decimal.js-light v2.4.1 https://github.com/MikeMcl/decimal.js-light/LICENCE */!function(i){"use strict";var o,u=1e9,s={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},f=!0,a="[DecimalError] ",c=a+"Invalid argument: ",l=a+"Exponent out of range: ",d=Math.floor,h=Math.pow,v=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,g=1e7,p=7,w=d(9007199254740991/p),m={};function b(e,r){var t,n,i,o,u,s,a,c,l=e.constructor,d=l.precision;if(!e.s||!r.s)return r.s||(r=new l(e)),f?T(r,d):r;if(a=e.d,c=r.d,u=e.e,i=r.e,a=a.slice(),o=u-i){for(o<0?(n=a,o=-o,s=c.length):(n=c,i=u,s=a.length),o>(s=(u=Math.ceil(d/p))>s?u+1:s+1)&&(o=s,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for((s=a.length)-(o=c.length)<0&&(o=s,n=c,c=a,a=n),t=0;o;)t=(a[--o]=a[o]+c[o]+t)/g|0,a[o]%=g;for(t&&(a.unshift(t),++i),s=a.length;0==a[--s];)a.pop();return r.d=a,r.e=i,f?T(r,d):r}function y(e,r,t){if(e!==~~e||e<r||e>t)throw Error(c+e)}function N(e){var r,t,n,i=e.length-1,o="",u=e[0];if(i>0){for(o+=u,r=1;r<i;r++)n=e[r]+"",(t=p-n.length)&&(o+=A(t)),o+=n;u=e[r],(t=p-(n=u+"").length)&&(o+=A(t))}else if(0===u)return"0";for(;u%10==0;)u/=10;return o+u}m.absoluteValue=m.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},m.comparedTo=m.cmp=function(e){var r,t,n,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=0,t=(n=o.d.length)<(i=e.d.length)?n:i;r<t;++r)if(o.d[r]!==e.d[r])return o.d[r]>e.d[r]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1},m.decimalPlaces=m.dp=function(){var e=this,r=e.d.length-1,t=(r-e.e)*p;if(r=e.d[r])for(;r%10==0;r/=10)t--;return t<0?0:t},m.dividedBy=m.div=function(e){return E(this,new this.constructor(e))},m.dividedToIntegerBy=m.idiv=function(e){var r=this.constructor;return T(E(this,new r(e),0,1),r.precision)},m.equals=m.eq=function(e){return!this.cmp(e)},m.exponent=function(){return O(this)},m.greaterThan=m.gt=function(e){return this.cmp(e)>0},m.greaterThanOrEqualTo=m.gte=function(e){return this.cmp(e)>=0},m.isInteger=m.isint=function(){return this.e>this.d.length-2},m.isNegative=m.isneg=function(){return this.s<0},m.isPositive=m.ispos=function(){return this.s>0},m.isZero=function(){return 0===this.s},m.lessThan=m.lt=function(e){return this.cmp(e)<0},m.lessThanOrEqualTo=m.lte=function(e){return this.cmp(e)<1},m.logarithm=m.log=function(e){var r,t=this,n=t.constructor,i=n.precision,u=i+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(o))throw Error(a+"NaN");if(t.s<1)throw Error(a+(t.s?"NaN":"-Infinity"));return t.eq(o)?new n(0):(f=!1,r=E(_(t,u),_(e,u),u),f=!0,T(r,i))},m.minus=m.sub=function(e){var r=this;return e=new r.constructor(e),r.s==e.s?k(r,e):b(r,(e.s=-e.s,e))},m.modulo=m.mod=function(e){var r,t=this,n=t.constructor,i=n.precision;if(!(e=new n(e)).s)throw Error(a+"NaN");return t.s?(f=!1,r=E(t,e,0,1).times(e),f=!0,t.minus(r)):T(new n(t),i)},m.naturalExponential=m.exp=function(){return M(this)},m.naturalLogarithm=m.ln=function(){return _(this)},m.negated=m.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},m.plus=m.add=function(e){var r=this;return e=new r.constructor(e),r.s==e.s?b(r,e):k(r,(e.s=-e.s,e))},m.precision=m.sd=function(e){var r,t,n,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(c+e);if(r=O(i)+1,t=(n=i.d.length-1)*p+1,n=i.d[n]){for(;n%10==0;n/=10)t--;for(n=i.d[0];n>=10;n/=10)t++}return e&&r>t?r:t},m.squareRoot=m.sqrt=function(){var e,r,t,n,i,o,u,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(a+"NaN")}for(e=O(s),f=!1,0==(i=Math.sqrt(+s))||i==1/0?(((r=N(s.d)).length+e)%2==0&&(r+="0"),i=Math.sqrt(r),e=d((e+1)/2)-(e<0||e%2),n=new c(r=i==1/0?"1e"+e:(r=i.toExponential()).slice(0,r.indexOf("e")+1)+e)):n=new c(i.toString()),i=u=(t=c.precision)+3;;)if(n=(o=n).plus(E(s,o,u+2)).times(.5),N(o.d).slice(0,u)===(r=N(n.d)).slice(0,u)){if(r=r.slice(u-3,u+1),i==u&&"4999"==r){if(T(o,t+1,0),o.times(o).eq(s)){n=o;break}}else if("9999"!=r)break;u+=4}return f=!0,T(n,t)},m.times=m.mul=function(e){var r,t,n,i,o,u,s,a,c,l=this,d=l.constructor,h=l.d,v=(e=new d(e)).d;if(!l.s||!e.s)return new d(0);for(e.s*=l.s,t=l.e+e.e,(a=h.length)<(c=v.length)&&(o=h,h=v,v=o,u=a,a=c,c=u),o=[],n=u=a+c;n--;)o.push(0);for(n=c;--n>=0;){for(r=0,i=a+n;i>n;)s=o[i]+v[n]*h[i-n-1]+r,o[i--]=s%g|0,r=s/g|0;o[i]=(o[i]+r)%g|0}for(;!o[--u];)o.pop();return r?++t:o.shift(),e.d=o,e.e=t,f?T(e,d.precision):e},m.toDecimalPlaces=m.todp=function(e,r){var t=this,n=t.constructor;return t=new n(t),void 0===e?t:(y(e,0,u),void 0===r?r=n.rounding:y(r,0,8),T(t,e+O(t)+1,r))},m.toExponential=function(e,r){var t,n=this,i=n.constructor;return void 0===e?t=D(n,!0):(y(e,0,u),void 0===r?r=i.rounding:y(r,0,8),t=D(n=T(new i(n),e+1,r),!0,e+1)),t},m.toFixed=function(e,r){var t,n,i=this,o=i.constructor;return void 0===e?D(i):(y(e,0,u),void 0===r?r=o.rounding:y(r,0,8),t=D((n=T(new o(i),e+O(i)+1,r)).abs(),!1,e+O(n)+1),i.isneg()&&!i.isZero()?"-"+t:t)},m.toInteger=m.toint=function(){var e=this,r=e.constructor;return T(new r(e),O(e)+1,r.rounding)},m.toNumber=function(){return+this},m.toPower=m.pow=function(e){var r,t,n,i,u,s,c=this,l=c.constructor,h=+(e=new l(e));if(!e.s)return new l(o);if(!(c=new l(c)).s){if(e.s<1)throw Error(a+"Infinity");return c}if(c.eq(o))return c;if(n=l.precision,e.eq(o))return T(c,n);if(s=(r=e.e)>=(t=e.d.length-1),u=c.s,s){if((t=h<0?-h:h)<=9007199254740991){for(i=new l(o),r=Math.ceil(n/p+4),f=!1;t%2&&j((i=i.times(c)).d,r),0!==(t=d(t/2));)j((c=c.times(c)).d,r);return f=!0,e.s<0?new l(o).div(i):T(i,n)}}else if(u<0)throw Error(a+"NaN");return u=u<0&&1&e.d[Math.max(r,t)]?-1:1,c.s=1,f=!1,i=e.times(_(c,n+12)),f=!0,(i=M(i)).s=u,i},m.toPrecision=function(e,r){var t,n,i=this,o=i.constructor;return void 0===e?n=D(i,(t=O(i))<=o.toExpNeg||t>=o.toExpPos):(y(e,1,u),void 0===r?r=o.rounding:y(r,0,8),n=D(i=T(new o(i),e,r),e<=(t=O(i))||t<=o.toExpNeg,e)),n},m.toSignificantDigits=m.tosd=function(e,r){var t=this.constructor;return void 0===e?(e=t.precision,r=t.rounding):(y(e,1,u),void 0===r?r=t.rounding:y(r,0,8)),T(new t(this),e,r)},m.toString=m.valueOf=m.val=m.toJSON=function(){var e=this,r=O(e),t=e.constructor;return D(e,r<=t.toExpNeg||r>=t.toExpPos)};var E=function(){function e(e,r){var t,n=0,i=e.length;for(e=e.slice();i--;)t=e[i]*r+n,e[i]=t%g|0,n=t/g|0;return n&&e.unshift(n),e}function r(e,r,t,n){var i,o;if(t!=n)o=t>n?1:-1;else for(i=o=0;i<t;i++)if(e[i]!=r[i]){o=e[i]>r[i]?1:-1;break}return o}function t(e,r,t){for(var n=0;t--;)e[t]-=n,n=e[t]<r[t]?1:0,e[t]=n*g+e[t]-r[t];for(;!e[0]&&e.length>1;)e.shift()}return function(n,i,o,u){var s,f,c,l,d,h,v,w,m,b,y,N,E,M,x,A,_,P,k=n.constructor,D=n.s==i.s?1:-1,j=n.d,L=i.d;if(!n.s)return new k(n);if(!i.s)throw Error(a+"Division by zero");for(f=n.e-i.e,_=L.length,x=j.length,w=(v=new k(D)).d=[],c=0;L[c]==(j[c]||0);)++c;if(L[c]>(j[c]||0)&&--f,(N=null==o?o=k.precision:u?o+(O(n)-O(i))+1:o)<0)return new k(0);if(N=N/p+2|0,c=0,1==_)for(l=0,L=L[0],N++;(c<x||l)&&N--;c++)E=l*g+(j[c]||0),w[c]=E/L|0,l=E%L|0;else{for((l=g/(L[0]+1)|0)>1&&(L=e(L,l),j=e(j,l),_=L.length,x=j.length),M=_,b=(m=j.slice(0,_)).length;b<_;)m[b++]=0;(P=L.slice()).unshift(0),A=L[0],L[1]>=g/2&&++A;do{l=0,(s=r(L,m,_,b))<0?(y=m[0],_!=b&&(y=y*g+(m[1]||0)),(l=y/A|0)>1?(l>=g&&(l=g-1),1==(s=r(d=e(L,l),m,h=d.length,b=m.length))&&(l--,t(d,_<h?P:L,h))):(0==l&&(s=l=1),d=L.slice()),(h=d.length)<b&&d.unshift(0),t(m,d,b),-1==s&&(s=r(L,m,_,b=m.length))<1&&(l++,t(m,_<b?P:L,b)),b=m.length):0===s&&(l++,m=[0]),w[c++]=l,s&&m[0]?m[b++]=j[M]||0:(m=[j[M]],b=1)}while((M++<x||void 0!==m[0])&&N--)}return w[0]||w.shift(),v.e=f,T(v,u?o+O(v)+1:o)}}();function M(e,r){var t,n,i,u,s,a=0,c=0,d=e.constructor,v=d.precision;if(O(e)>16)throw Error(l+O(e));if(!e.s)return new d(o);for(null==r?(f=!1,s=v):s=r,u=new d(.03125);e.abs().gte(.1);)e=e.times(u),c+=5;for(s+=Math.log(h(2,c))/Math.LN10*2+5|0,t=n=i=new d(o),d.precision=s;;){if(n=T(n.times(e),s),t=t.times(++a),N((u=i.plus(E(n,t,s))).d).slice(0,s)===N(i.d).slice(0,s)){for(;c--;)i=T(i.times(i),s);return d.precision=v,null==r?(f=!0,T(i,v)):i}i=u}}function O(e){for(var r=e.e*p,t=e.d[0];t>=10;t/=10)r++;return r}function x(e,r,t){if(r>e.LN10.sd())throw f=!0,t&&(e.precision=t),Error(a+"LN10 precision limit exceeded");return T(new e(e.LN10),r)}function A(e){for(var r="";e--;)r+="0";return r}function _(e,r){var t,n,i,u,s,c,l,d,h,v=1,g=e,p=g.d,w=g.constructor,m=w.precision;if(g.s<1)throw Error(a+(g.s?"NaN":"-Infinity"));if(g.eq(o))return new w(0);if(null==r?(f=!1,d=m):d=r,g.eq(10))return null==r&&(f=!0),x(w,d);if(d+=10,w.precision=d,n=(t=N(p)).charAt(0),u=O(g),!(Math.abs(u)<15e14))return l=x(w,d+2,m).times(u+""),g=_(new w(n+"."+t.slice(1)),d-10).plus(l),w.precision=m,null==r?(f=!0,T(g,m)):g;for(;n<7&&1!=n||1==n&&t.charAt(1)>3;)n=(t=N((g=g.times(e)).d)).charAt(0),v++;for(u=O(g),n>1?(g=new w("0."+t),u++):g=new w(n+"."+t.slice(1)),c=s=g=E(g.minus(o),g.plus(o),d),h=T(g.times(g),d),i=3;;){if(s=T(s.times(h),d),N((l=c.plus(E(s,new w(i),d))).d).slice(0,d)===N(c.d).slice(0,d))return c=c.times(2),0!==u&&(c=c.plus(x(w,d+2,m).times(u+""))),c=E(c,new w(v),d),w.precision=m,null==r?(f=!0,T(c,m)):c;c=l,i+=2}}function P(e,r){var t,n,i;for((t=r.indexOf("."))>-1&&(r=r.replace(".","")),(n=r.search(/e/i))>0?(t<0&&(t=n),t+=+r.slice(n+1),r=r.substring(0,n)):t<0&&(t=r.length),n=0;48===r.charCodeAt(n);)++n;for(i=r.length;48===r.charCodeAt(i-1);)--i;if(r=r.slice(n,i)){if(i-=n,t=t-n-1,e.e=d(t/p),e.d=[],n=(t+1)%p,t<0&&(n+=p),n<i){for(n&&e.d.push(+r.slice(0,n)),i-=p;n<i;)e.d.push(+r.slice(n,n+=p));r=r.slice(n),n=p-r.length}else n-=i;for(;n--;)r+="0";if(e.d.push(+r),f&&(e.e>w||e.e<-w))throw Error(l+t)}else e.s=0,e.e=0,e.d=[0];return e}function T(e,r,t){var n,i,o,u,s,a,c,v,m=e.d;for(u=1,o=m[0];o>=10;o/=10)u++;if((n=r-u)<0)n+=p,i=r,c=m[v=0];else{if((v=Math.ceil((n+1)/p))>=(o=m.length))return e;for(c=o=m[v],u=1;o>=10;o/=10)u++;i=(n%=p)-p+u}if(void 0!==t&&(s=c/(o=h(10,u-i-1))%10|0,a=r<0||void 0!==m[v+1]||c%o,a=t<4?(s||a)&&(0==t||t==(e.s<0?3:2)):s>5||5==s&&(4==t||a||6==t&&(n>0?i>0?c/h(10,u-i):0:m[v-1])%10&1||t==(e.s<0?8:7))),r<1||!m[0])return a?(o=O(e),m.length=1,r=r-o-1,m[0]=h(10,(p-r%p)%p),e.e=d(-r/p)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(0==n?(m.length=v,o=1,v--):(m.length=v+1,o=h(10,p-n),m[v]=i>0?(c/h(10,u-i)%h(10,i)|0)*o:0),a)for(;;){if(0==v){(m[0]+=o)==g&&(m[0]=1,++e.e);break}if(m[v]+=o,m[v]!=g)break;m[v--]=0,o=1}for(n=m.length;0===m[--n];)m.pop();if(f&&(e.e>w||e.e<-w))throw Error(l+O(e));return e}function k(e,r){var t,n,i,o,u,s,a,c,l,d,h=e.constructor,v=h.precision;if(!e.s||!r.s)return r.s?r.s=-r.s:r=new h(e),f?T(r,v):r;if(a=e.d,d=r.d,n=r.e,c=e.e,a=a.slice(),u=c-n){for((l=u<0)?(t=a,u=-u,s=d.length):(t=d,n=c,s=a.length),u>(i=Math.max(Math.ceil(v/p),s)+2)&&(u=i,t.length=1),t.reverse(),i=u;i--;)t.push(0);t.reverse()}else{for((l=(i=a.length)<(s=d.length))&&(s=i),i=0;i<s;i++)if(a[i]!=d[i]){l=a[i]<d[i];break}u=0}for(l&&(t=a,a=d,d=t,r.s=-r.s),s=a.length,i=d.length-s;i>0;--i)a[s++]=0;for(i=d.length;i>u;){if(a[--i]<d[i]){for(o=i;o&&0===a[--o];)a[o]=g-1;--a[o],a[i]+=g}a[i]-=d[i]}for(;0===a[--s];)a.pop();for(;0===a[0];a.shift())--n;return a[0]?(r.d=a,r.e=n,f?T(r,v):r):new h(0)}function D(e,r,t){var n,i=O(e),o=N(e.d),u=o.length;return r?(t&&(n=t-u)>0?o=o.charAt(0)+"."+o.slice(1)+A(n):u>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+A(-i-1)+o,t&&(n=t-u)>0&&(o+=A(n))):i>=u?(o+=A(i+1-u),t&&(n=t-i-1)>0&&(o=o+"."+A(n))):((n=i+1)<u&&(o=o.slice(0,n)+"."+o.slice(n)),t&&(n=t-u)>0&&(i+1===u&&(o+="."),o+=A(n))),e.s<0?"-"+o:o}function j(e,r){if(e.length>r)return e.length=r,!0}function L(e){if(!e||"object"!=typeof e)throw Error(a+"Object expected");var r,t,n,i=["precision",1,u,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(r=0;r<i.length;r+=3)if(void 0!==(n=e[t=i[r]])){if(!(d(n)===n&&n>=i[r+1]&&n<=i[r+2]))throw Error(c+t+": "+n);this[t]=n}if(void 0!==(n=e[t="LN10"])){if(n!=Math.LN10)throw Error(c+t+": "+n);this[t]=new this(n)}return this}(s=function e(r){var t,n,i;function o(e){var r=this;if(!(r instanceof o))return new o(e);if(r.constructor=o,e instanceof o)return r.s=e.s,r.e=e.e,void(r.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(c+e);if(e>0)r.s=1;else{if(!(e<0))return r.s=0,r.e=0,void(r.d=[0]);e=-e,r.s=-1}return e===~~e&&e<1e7?(r.e=0,void(r.d=[e])):P(r,e.toString())}if("string"!=typeof e)throw Error(c+e);if(45===e.charCodeAt(0)?(e=e.slice(1),r.s=-1):r.s=1,!v.test(e))throw Error(c+e);P(r,e)}if(o.prototype=m,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=e,o.config=o.set=L,void 0===r&&(r={}),r)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<i.length;)r.hasOwnProperty(n=i[t++])||(r[n]=this[n]);return o.config(r),o}(s)).default=s.Decimal=s,o=new s(1),void 0===(n=function(){return s}.call(r,t,r,e))||(e.exports=n)}()},function(e,r,t){"use strict";function n(e){return function(e){if(Array.isArray(e)){for(var r=0,t=new Array(e.length);r<e.length;r++)t[r]=e[r];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}Object.defineProperty(r,"__esModule",{value:!0}),r.memoize=r.reverse=r.compose=r.map=r.range=r.curry=r.PLACE_HOLDER=void 0;var i=function(e){return e},o={"@@functional/placeholder":!0};r.PLACE_HOLDER=o;var u=function(e){return e===o},s=function(e){return function r(){return 0===arguments.length||1===arguments.length&&u(arguments.length<=0?void 0:arguments[0])?r:e.apply(void 0,arguments)}},f=function(e){return function e(r,t){return 1===r?t:s(function(){for(var i=arguments.length,f=new Array(i),a=0;a<i;a++)f[a]=arguments[a];var c=f.filter(function(e){return e!==o}).length;return c>=r?t.apply(void 0,f):e(r-c,s(function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o=f.map(function(e){return u(e)?r.shift():e});return t.apply(void 0,n(o).concat(r))}))})}(e.length,e)};r.curry=f;r.range=function(e,r){for(var t=[],n=e;n<r;++n)t[n-e]=n;return t};var a=f(function(e,r){return Array.isArray(r)?r.map(e):Object.keys(r).map(function(e){return r[e]}).map(e)});r.map=a;r.compose=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];if(!r.length)return i;var n=r.reverse(),o=n[0],u=n.slice(1);return function(){return u.reduce(function(e,r){return r(e)},o.apply(void 0,arguments))}};r.reverse=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")};r.memoize=function(e){var r=null,t=null;return function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r&&i.every(function(e,t){return e===r[t]})?t:(r=i,t=e.apply(void 0,i))}}},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getTickValues",{enumerable:!0,get:function(){return n.getTickValues}}),Object.defineProperty(r,"getNiceTickValues",{enumerable:!0,get:function(){return n.getNiceTickValues}}),Object.defineProperty(r,"getTickValuesFixedDomain",{enumerable:!0,get:function(){return n.getTickValuesFixedDomain}});var n=t(3)},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getTickValuesFixedDomain=r.getTickValues=r.getNiceTickValues=void 0;var n=u(t(0)),i=t(1),o=u(t(4));function u(e){return e&&e.__esModule?e:{default:e}}function s(e){return function(e){if(Array.isArray(e)){for(var r=0,t=new Array(e.length);r<e.length;r++)t[r]=e[r];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function f(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=[],n=!0,i=!1,o=void 0;try{for(var u,s=e[Symbol.iterator]();!(n=(u=s.next()).done)&&(t.push(u.value),!r||t.length!==r);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return t}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){var r=f(e,2),t=r[0],n=r[1],i=t,o=n;return t>n&&(i=n,o=t),[i,o]}function c(e,r,t){if(e.lte(0))return new n.default(0);var i=o.default.getDigitCount(e.toNumber()),u=new n.default(10).pow(i),s=e.div(u),f=1!==i?.05:.1,a=new n.default(Math.ceil(s.div(f).toNumber())).add(t).mul(f).mul(u);return r?a:new n.default(Math.ceil(a))}function l(e,r,t){var u=1,s=new n.default(e);if(!s.isint()&&t){var f=Math.abs(e);f<1?(u=new n.default(10).pow(o.default.getDigitCount(e)-1),s=new n.default(Math.floor(s.div(u).toNumber())).mul(u)):f>1&&(s=new n.default(Math.floor(e)))}else 0===e?s=new n.default(Math.floor((r-1)/2)):t||(s=new n.default(Math.floor(e)));var a=Math.floor((r-1)/2);return(0,i.compose)((0,i.map)(function(e){return s.add(new n.default(e-a).mul(u)).toNumber()}),i.range)(0,r)}var d=(0,i.memoize)(function(e){var r=f(e,2),t=r[0],u=r[1],d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,h=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],v=Math.max(d,2),g=f(a([t,u]),2),p=g[0],w=g[1];if(p===-1/0||w===1/0){var m=w===1/0?[p].concat(s((0,i.range)(0,d-1).map(function(){return 1/0}))):s((0,i.range)(0,d-1).map(function(){return-1/0})).concat([w]);return t>u?(0,i.reverse)(m):m}if(p===w)return l(p,d,h);var b=function e(r,t,i,o){var u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-r)/(i-1)))return{step:new n.default(0),tickMin:new n.default(0),tickMax:new n.default(0)};var s,f=c(new n.default(t).sub(r).div(i-1),o,u);s=r<=0&&t>=0?new n.default(0):(s=new n.default(r).add(t).div(2)).sub(new n.default(s).mod(f));var a=Math.ceil(s.sub(r).div(f).toNumber()),l=Math.ceil(new n.default(t).sub(s).div(f).toNumber()),d=a+l+1;return d>i?e(r,t,i,o,u+1):(d<i&&(l=t>0?l+(i-d):l,a=t>0?a:a+(i-d)),{step:f,tickMin:s.sub(new n.default(a).mul(f)),tickMax:s.add(new n.default(l).mul(f))})}(p,w,v,h),y=b.step,N=b.tickMin,E=b.tickMax,M=o.default.rangeStep(N,E.add(new n.default(.1).mul(y)),y);return t>u?(0,i.reverse)(M):M});r.getNiceTickValues=d;var h=(0,i.memoize)(function(e){var r=f(e,2),t=r[0],o=r[1],u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],d=Math.max(u,2),h=f(a([t,o]),2),v=h[0],g=h[1];if(v===-1/0||g===1/0)return[t,o];if(v===g)return l(v,u,s);var p=c(new n.default(g).sub(v).div(d-1),s,0),w=(0,i.compose)((0,i.map)(function(e){return new n.default(v).add(new n.default(e).mul(p)).toNumber()}),i.range)(0,d).filter(function(e){return e>=v&&e<=g});return t>o?(0,i.reverse)(w):w});r.getTickValues=h;var v=(0,i.memoize)(function(e,r){var t=f(e,2),u=t[0],l=t[1],d=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],h=f(a([u,l]),2),v=h[0],g=h[1];if(v===-1/0||g===1/0)return[u,l];if(v===g)return[v];var p=Math.max(r,2),w=c(new n.default(g).sub(v).div(p-1),d,0),m=s(o.default.rangeStep(new n.default(v),new n.default(g).sub(new n.default(.99).mul(w)),w)).concat([g]);return u>l?(0,i.reverse)(m):m});r.getTickValuesFixedDomain=v},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(t(0)),i=t(1);var o={rangeStep:function(e,r,t){for(var i=new n.default(e),o=0,u=[];i.lt(r)&&o<1e5;)u.push(i.toNumber()),i=i.add(t),o++;return u},getDigitCount:function(e){return 0===e?1:Math.floor(new n.default(e).abs().log(10).toNumber())+1},interpolateNumber:(0,i.curry)(function(e,r,t){var n=+e;return n+t*(+r-n)}),uninterpolateNumber:(0,i.curry)(function(e,r,t){var n=r-+e;return(t-e)/(n=n||1/0)}),uninterpolateTruncation:(0,i.curry)(function(e,r,t){var n=r-+e;return n=n||1/0,Math.max(0,Math.min(1,(t-e)/n))})};r.default=o}]); |
@@ -1,1 +0,1 @@ | ||
!function(e){var r={};function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var i in e)t.d(n,i,function(r){return e[r]}.bind(null,i));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=2)}([function(e,r,t){var n;/*! decimal.js-light v2.4.1 https://github.com/MikeMcl/decimal.js-light/LICENCE */!function(i){"use strict";var o,u=1e9,s={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},f=!0,a="[DecimalError] ",c=a+"Invalid argument: ",l=a+"Exponent out of range: ",d=Math.floor,h=Math.pow,v=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,g=1e7,p=7,w=d(9007199254740991/p),m={};function b(e,r){var t,n,i,o,u,s,a,c,l=e.constructor,d=l.precision;if(!e.s||!r.s)return r.s||(r=new l(e)),f?T(r,d):r;if(a=e.d,c=r.d,u=e.e,i=r.e,a=a.slice(),o=u-i){for(o<0?(n=a,o=-o,s=c.length):(n=c,i=u,s=a.length),o>(s=(u=Math.ceil(d/p))>s?u+1:s+1)&&(o=s,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for((s=a.length)-(o=c.length)<0&&(o=s,n=c,c=a,a=n),t=0;o;)t=(a[--o]=a[o]+c[o]+t)/g|0,a[o]%=g;for(t&&(a.unshift(t),++i),s=a.length;0==a[--s];)a.pop();return r.d=a,r.e=i,f?T(r,d):r}function y(e,r,t){if(e!==~~e||e<r||e>t)throw Error(c+e)}function N(e){var r,t,n,i=e.length-1,o="",u=e[0];if(i>0){for(o+=u,r=1;r<i;r++)n=e[r]+"",(t=p-n.length)&&(o+=A(t)),o+=n;u=e[r],(t=p-(n=u+"").length)&&(o+=A(t))}else if(0===u)return"0";for(;u%10==0;)u/=10;return o+u}m.absoluteValue=m.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},m.comparedTo=m.cmp=function(e){var r,t,n,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=0,t=(n=o.d.length)<(i=e.d.length)?n:i;r<t;++r)if(o.d[r]!==e.d[r])return o.d[r]>e.d[r]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1},m.decimalPlaces=m.dp=function(){var e=this,r=e.d.length-1,t=(r-e.e)*p;if(r=e.d[r])for(;r%10==0;r/=10)t--;return t<0?0:t},m.dividedBy=m.div=function(e){return E(this,new this.constructor(e))},m.dividedToIntegerBy=m.idiv=function(e){var r=this.constructor;return T(E(this,new r(e),0,1),r.precision)},m.equals=m.eq=function(e){return!this.cmp(e)},m.exponent=function(){return O(this)},m.greaterThan=m.gt=function(e){return this.cmp(e)>0},m.greaterThanOrEqualTo=m.gte=function(e){return this.cmp(e)>=0},m.isInteger=m.isint=function(){return this.e>this.d.length-2},m.isNegative=m.isneg=function(){return this.s<0},m.isPositive=m.ispos=function(){return this.s>0},m.isZero=function(){return 0===this.s},m.lessThan=m.lt=function(e){return this.cmp(e)<0},m.lessThanOrEqualTo=m.lte=function(e){return this.cmp(e)<1},m.logarithm=m.log=function(e){var r,t=this,n=t.constructor,i=n.precision,u=i+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(o))throw Error(a+"NaN");if(t.s<1)throw Error(a+(t.s?"NaN":"-Infinity"));return t.eq(o)?new n(0):(f=!1,r=E(_(t,u),_(e,u),u),f=!0,T(r,i))},m.minus=m.sub=function(e){var r=this;return e=new r.constructor(e),r.s==e.s?k(r,e):b(r,(e.s=-e.s,e))},m.modulo=m.mod=function(e){var r,t=this,n=t.constructor,i=n.precision;if(!(e=new n(e)).s)throw Error(a+"NaN");return t.s?(f=!1,r=E(t,e,0,1).times(e),f=!0,t.minus(r)):T(new n(t),i)},m.naturalExponential=m.exp=function(){return M(this)},m.naturalLogarithm=m.ln=function(){return _(this)},m.negated=m.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},m.plus=m.add=function(e){var r=this;return e=new r.constructor(e),r.s==e.s?b(r,e):k(r,(e.s=-e.s,e))},m.precision=m.sd=function(e){var r,t,n,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(c+e);if(r=O(i)+1,t=(n=i.d.length-1)*p+1,n=i.d[n]){for(;n%10==0;n/=10)t--;for(n=i.d[0];n>=10;n/=10)t++}return e&&r>t?r:t},m.squareRoot=m.sqrt=function(){var e,r,t,n,i,o,u,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(a+"NaN")}for(e=O(s),f=!1,0==(i=Math.sqrt(+s))||i==1/0?(((r=N(s.d)).length+e)%2==0&&(r+="0"),i=Math.sqrt(r),e=d((e+1)/2)-(e<0||e%2),n=new c(r=i==1/0?"1e"+e:(r=i.toExponential()).slice(0,r.indexOf("e")+1)+e)):n=new c(i.toString()),i=u=(t=c.precision)+3;;)if(n=(o=n).plus(E(s,o,u+2)).times(.5),N(o.d).slice(0,u)===(r=N(n.d)).slice(0,u)){if(r=r.slice(u-3,u+1),i==u&&"4999"==r){if(T(o,t+1,0),o.times(o).eq(s)){n=o;break}}else if("9999"!=r)break;u+=4}return f=!0,T(n,t)},m.times=m.mul=function(e){var r,t,n,i,o,u,s,a,c,l=this,d=l.constructor,h=l.d,v=(e=new d(e)).d;if(!l.s||!e.s)return new d(0);for(e.s*=l.s,t=l.e+e.e,(a=h.length)<(c=v.length)&&(o=h,h=v,v=o,u=a,a=c,c=u),o=[],n=u=a+c;n--;)o.push(0);for(n=c;--n>=0;){for(r=0,i=a+n;i>n;)s=o[i]+v[n]*h[i-n-1]+r,o[i--]=s%g|0,r=s/g|0;o[i]=(o[i]+r)%g|0}for(;!o[--u];)o.pop();return r?++t:o.shift(),e.d=o,e.e=t,f?T(e,d.precision):e},m.toDecimalPlaces=m.todp=function(e,r){var t=this,n=t.constructor;return t=new n(t),void 0===e?t:(y(e,0,u),void 0===r?r=n.rounding:y(r,0,8),T(t,e+O(t)+1,r))},m.toExponential=function(e,r){var t,n=this,i=n.constructor;return void 0===e?t=D(n,!0):(y(e,0,u),void 0===r?r=i.rounding:y(r,0,8),t=D(n=T(new i(n),e+1,r),!0,e+1)),t},m.toFixed=function(e,r){var t,n,i=this,o=i.constructor;return void 0===e?D(i):(y(e,0,u),void 0===r?r=o.rounding:y(r,0,8),t=D((n=T(new o(i),e+O(i)+1,r)).abs(),!1,e+O(n)+1),i.isneg()&&!i.isZero()?"-"+t:t)},m.toInteger=m.toint=function(){var e=this,r=e.constructor;return T(new r(e),O(e)+1,r.rounding)},m.toNumber=function(){return+this},m.toPower=m.pow=function(e){var r,t,n,i,u,s,c=this,l=c.constructor,h=+(e=new l(e));if(!e.s)return new l(o);if(!(c=new l(c)).s){if(e.s<1)throw Error(a+"Infinity");return c}if(c.eq(o))return c;if(n=l.precision,e.eq(o))return T(c,n);if(s=(r=e.e)>=(t=e.d.length-1),u=c.s,s){if((t=h<0?-h:h)<=9007199254740991){for(i=new l(o),r=Math.ceil(n/p+4),f=!1;t%2&&j((i=i.times(c)).d,r),0!==(t=d(t/2));)j((c=c.times(c)).d,r);return f=!0,e.s<0?new l(o).div(i):T(i,n)}}else if(u<0)throw Error(a+"NaN");return u=u<0&&1&e.d[Math.max(r,t)]?-1:1,c.s=1,f=!1,i=e.times(_(c,n+12)),f=!0,(i=M(i)).s=u,i},m.toPrecision=function(e,r){var t,n,i=this,o=i.constructor;return void 0===e?n=D(i,(t=O(i))<=o.toExpNeg||t>=o.toExpPos):(y(e,1,u),void 0===r?r=o.rounding:y(r,0,8),n=D(i=T(new o(i),e,r),e<=(t=O(i))||t<=o.toExpNeg,e)),n},m.toSignificantDigits=m.tosd=function(e,r){var t=this.constructor;return void 0===e?(e=t.precision,r=t.rounding):(y(e,1,u),void 0===r?r=t.rounding:y(r,0,8)),T(new t(this),e,r)},m.toString=m.valueOf=m.val=m.toJSON=function(){var e=this,r=O(e),t=e.constructor;return D(e,r<=t.toExpNeg||r>=t.toExpPos)};var E=function(){function e(e,r){var t,n=0,i=e.length;for(e=e.slice();i--;)t=e[i]*r+n,e[i]=t%g|0,n=t/g|0;return n&&e.unshift(n),e}function r(e,r,t,n){var i,o;if(t!=n)o=t>n?1:-1;else for(i=o=0;i<t;i++)if(e[i]!=r[i]){o=e[i]>r[i]?1:-1;break}return o}function t(e,r,t){for(var n=0;t--;)e[t]-=n,n=e[t]<r[t]?1:0,e[t]=n*g+e[t]-r[t];for(;!e[0]&&e.length>1;)e.shift()}return function(n,i,o,u){var s,f,c,l,d,h,v,w,m,b,y,N,E,M,x,A,_,P,k=n.constructor,D=n.s==i.s?1:-1,j=n.d,L=i.d;if(!n.s)return new k(n);if(!i.s)throw Error(a+"Division by zero");for(f=n.e-i.e,_=L.length,x=j.length,w=(v=new k(D)).d=[],c=0;L[c]==(j[c]||0);)++c;if(L[c]>(j[c]||0)&&--f,(N=null==o?o=k.precision:u?o+(O(n)-O(i))+1:o)<0)return new k(0);if(N=N/p+2|0,c=0,1==_)for(l=0,L=L[0],N++;(c<x||l)&&N--;c++)E=l*g+(j[c]||0),w[c]=E/L|0,l=E%L|0;else{for((l=g/(L[0]+1)|0)>1&&(L=e(L,l),j=e(j,l),_=L.length,x=j.length),M=_,b=(m=j.slice(0,_)).length;b<_;)m[b++]=0;(P=L.slice()).unshift(0),A=L[0],L[1]>=g/2&&++A;do{l=0,(s=r(L,m,_,b))<0?(y=m[0],_!=b&&(y=y*g+(m[1]||0)),(l=y/A|0)>1?(l>=g&&(l=g-1),1==(s=r(d=e(L,l),m,h=d.length,b=m.length))&&(l--,t(d,_<h?P:L,h))):(0==l&&(s=l=1),d=L.slice()),(h=d.length)<b&&d.unshift(0),t(m,d,b),-1==s&&(s=r(L,m,_,b=m.length))<1&&(l++,t(m,_<b?P:L,b)),b=m.length):0===s&&(l++,m=[0]),w[c++]=l,s&&m[0]?m[b++]=j[M]||0:(m=[j[M]],b=1)}while((M++<x||void 0!==m[0])&&N--)}return w[0]||w.shift(),v.e=f,T(v,u?o+O(v)+1:o)}}();function M(e,r){var t,n,i,u,s,a=0,c=0,d=e.constructor,v=d.precision;if(O(e)>16)throw Error(l+O(e));if(!e.s)return new d(o);for(null==r?(f=!1,s=v):s=r,u=new d(.03125);e.abs().gte(.1);)e=e.times(u),c+=5;for(s+=Math.log(h(2,c))/Math.LN10*2+5|0,t=n=i=new d(o),d.precision=s;;){if(n=T(n.times(e),s),t=t.times(++a),N((u=i.plus(E(n,t,s))).d).slice(0,s)===N(i.d).slice(0,s)){for(;c--;)i=T(i.times(i),s);return d.precision=v,null==r?(f=!0,T(i,v)):i}i=u}}function O(e){for(var r=e.e*p,t=e.d[0];t>=10;t/=10)r++;return r}function x(e,r,t){if(r>e.LN10.sd())throw f=!0,t&&(e.precision=t),Error(a+"LN10 precision limit exceeded");return T(new e(e.LN10),r)}function A(e){for(var r="";e--;)r+="0";return r}function _(e,r){var t,n,i,u,s,c,l,d,h,v=1,g=e,p=g.d,w=g.constructor,m=w.precision;if(g.s<1)throw Error(a+(g.s?"NaN":"-Infinity"));if(g.eq(o))return new w(0);if(null==r?(f=!1,d=m):d=r,g.eq(10))return null==r&&(f=!0),x(w,d);if(d+=10,w.precision=d,n=(t=N(p)).charAt(0),u=O(g),!(Math.abs(u)<15e14))return l=x(w,d+2,m).times(u+""),g=_(new w(n+"."+t.slice(1)),d-10).plus(l),w.precision=m,null==r?(f=!0,T(g,m)):g;for(;n<7&&1!=n||1==n&&t.charAt(1)>3;)n=(t=N((g=g.times(e)).d)).charAt(0),v++;for(u=O(g),n>1?(g=new w("0."+t),u++):g=new w(n+"."+t.slice(1)),c=s=g=E(g.minus(o),g.plus(o),d),h=T(g.times(g),d),i=3;;){if(s=T(s.times(h),d),N((l=c.plus(E(s,new w(i),d))).d).slice(0,d)===N(c.d).slice(0,d))return c=c.times(2),0!==u&&(c=c.plus(x(w,d+2,m).times(u+""))),c=E(c,new w(v),d),w.precision=m,null==r?(f=!0,T(c,m)):c;c=l,i+=2}}function P(e,r){var t,n,i;for((t=r.indexOf("."))>-1&&(r=r.replace(".","")),(n=r.search(/e/i))>0?(t<0&&(t=n),t+=+r.slice(n+1),r=r.substring(0,n)):t<0&&(t=r.length),n=0;48===r.charCodeAt(n);)++n;for(i=r.length;48===r.charCodeAt(i-1);)--i;if(r=r.slice(n,i)){if(i-=n,t=t-n-1,e.e=d(t/p),e.d=[],n=(t+1)%p,t<0&&(n+=p),n<i){for(n&&e.d.push(+r.slice(0,n)),i-=p;n<i;)e.d.push(+r.slice(n,n+=p));r=r.slice(n),n=p-r.length}else n-=i;for(;n--;)r+="0";if(e.d.push(+r),f&&(e.e>w||e.e<-w))throw Error(l+t)}else e.s=0,e.e=0,e.d=[0];return e}function T(e,r,t){var n,i,o,u,s,a,c,v,m=e.d;for(u=1,o=m[0];o>=10;o/=10)u++;if((n=r-u)<0)n+=p,i=r,c=m[v=0];else{if((v=Math.ceil((n+1)/p))>=(o=m.length))return e;for(c=o=m[v],u=1;o>=10;o/=10)u++;i=(n%=p)-p+u}if(void 0!==t&&(s=c/(o=h(10,u-i-1))%10|0,a=r<0||void 0!==m[v+1]||c%o,a=t<4?(s||a)&&(0==t||t==(e.s<0?3:2)):s>5||5==s&&(4==t||a||6==t&&(n>0?i>0?c/h(10,u-i):0:m[v-1])%10&1||t==(e.s<0?8:7))),r<1||!m[0])return a?(o=O(e),m.length=1,r=r-o-1,m[0]=h(10,(p-r%p)%p),e.e=d(-r/p)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(0==n?(m.length=v,o=1,v--):(m.length=v+1,o=h(10,p-n),m[v]=i>0?(c/h(10,u-i)%h(10,i)|0)*o:0),a)for(;;){if(0==v){(m[0]+=o)==g&&(m[0]=1,++e.e);break}if(m[v]+=o,m[v]!=g)break;m[v--]=0,o=1}for(n=m.length;0===m[--n];)m.pop();if(f&&(e.e>w||e.e<-w))throw Error(l+O(e));return e}function k(e,r){var t,n,i,o,u,s,a,c,l,d,h=e.constructor,v=h.precision;if(!e.s||!r.s)return r.s?r.s=-r.s:r=new h(e),f?T(r,v):r;if(a=e.d,d=r.d,n=r.e,c=e.e,a=a.slice(),u=c-n){for((l=u<0)?(t=a,u=-u,s=d.length):(t=d,n=c,s=a.length),u>(i=Math.max(Math.ceil(v/p),s)+2)&&(u=i,t.length=1),t.reverse(),i=u;i--;)t.push(0);t.reverse()}else{for((l=(i=a.length)<(s=d.length))&&(s=i),i=0;i<s;i++)if(a[i]!=d[i]){l=a[i]<d[i];break}u=0}for(l&&(t=a,a=d,d=t,r.s=-r.s),s=a.length,i=d.length-s;i>0;--i)a[s++]=0;for(i=d.length;i>u;){if(a[--i]<d[i]){for(o=i;o&&0===a[--o];)a[o]=g-1;--a[o],a[i]+=g}a[i]-=d[i]}for(;0===a[--s];)a.pop();for(;0===a[0];a.shift())--n;return a[0]?(r.d=a,r.e=n,f?T(r,v):r):new h(0)}function D(e,r,t){var n,i=O(e),o=N(e.d),u=o.length;return r?(t&&(n=t-u)>0?o=o.charAt(0)+"."+o.slice(1)+A(n):u>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+A(-i-1)+o,t&&(n=t-u)>0&&(o+=A(n))):i>=u?(o+=A(i+1-u),t&&(n=t-i-1)>0&&(o=o+"."+A(n))):((n=i+1)<u&&(o=o.slice(0,n)+"."+o.slice(n)),t&&(n=t-u)>0&&(i+1===u&&(o+="."),o+=A(n))),e.s<0?"-"+o:o}function j(e,r){if(e.length>r)return e.length=r,!0}function L(e){if(!e||"object"!=typeof e)throw Error(a+"Object expected");var r,t,n,i=["precision",1,u,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(r=0;r<i.length;r+=3)if(void 0!==(n=e[t=i[r]])){if(!(d(n)===n&&n>=i[r+1]&&n<=i[r+2]))throw Error(c+t+": "+n);this[t]=n}if(void 0!==(n=e[t="LN10"])){if(n!=Math.LN10)throw Error(c+t+": "+n);this[t]=new this(n)}return this}(s=function e(r){var t,n,i;function o(e){var r=this;if(!(r instanceof o))return new o(e);if(r.constructor=o,e instanceof o)return r.s=e.s,r.e=e.e,void(r.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(c+e);if(e>0)r.s=1;else{if(!(e<0))return r.s=0,r.e=0,void(r.d=[0]);e=-e,r.s=-1}return e===~~e&&e<1e7?(r.e=0,void(r.d=[e])):P(r,e.toString())}if("string"!=typeof e)throw Error(c+e);if(45===e.charCodeAt(0)?(e=e.slice(1),r.s=-1):r.s=1,!v.test(e))throw Error(c+e);P(r,e)}if(o.prototype=m,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=e,o.config=o.set=L,void 0===r&&(r={}),r)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<i.length;)r.hasOwnProperty(n=i[t++])||(r[n]=this[n]);return o.config(r),o}(s)).default=s.Decimal=s,o=new s(1),void 0===(n=function(){return s}.call(r,t,r,e))||(e.exports=n)}()},function(e,r,t){"use strict";function n(e){return function(e){if(Array.isArray(e)){for(var r=0,t=new Array(e.length);r<e.length;r++)t[r]=e[r];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}Object.defineProperty(r,"__esModule",{value:!0}),r.memoize=r.reverse=r.compose=r.map=r.range=r.curry=r.PLACE_HOLDER=void 0;var i=function(e){return e},o={"@@functional/placeholder":!0};r.PLACE_HOLDER=o;var u=function(e){return e===o},s=function(e){return function r(){return 0===arguments.length||1===arguments.length&&u(arguments.length<=0?void 0:arguments[0])?r:e.apply(void 0,arguments)}},f=function(e){return function e(r,t){return 1===r?t:s(function(){for(var i=arguments.length,f=new Array(i),a=0;a<i;a++)f[a]=arguments[a];var c=f.filter(function(e){return e!==o}).length;return c>=r?t.apply(void 0,f):e(r-c,s(function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o=f.map(function(e){return u(e)?r.shift():e});return t.apply(void 0,n(o).concat(r))}))})}(e.length,e)};r.curry=f;r.range=function(e,r){for(var t=[],n=e;n<r;++n)t[n-e]=n;return t};var a=f(function(e,r){return Array.isArray(r)?r.map(e):Object.keys(r).map(function(e){return r[e]}).map(e)});r.map=a;r.compose=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];if(!r.length)return i;var n=r.reverse(),o=n[0],u=n.slice(1);return function(){return u.reduce(function(e,r){return r(e)},o.apply(void 0,arguments))}};r.reverse=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")};r.memoize=function(e){var r=null,t=null;return function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r&&i.every(function(e,t){return e===r[t]})?t:(r=i,t=e.apply(void 0,i))}}},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getTickValues",{enumerable:!0,get:function(){return n.getTickValues}}),Object.defineProperty(r,"getNiceTickValues",{enumerable:!0,get:function(){return n.getNiceTickValues}}),Object.defineProperty(r,"getTickValuesFixedDomain",{enumerable:!0,get:function(){return n.getTickValuesFixedDomain}});var n=t(3)},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getTickValuesFixedDomain=r.getTickValues=r.getNiceTickValues=void 0;var n=u(t(0)),i=t(1),o=u(t(4));function u(e){return e&&e.__esModule?e:{default:e}}function s(e){return function(e){if(Array.isArray(e)){for(var r=0,t=new Array(e.length);r<e.length;r++)t[r]=e[r];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function f(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=[],n=!0,i=!1,o=void 0;try{for(var u,s=e[Symbol.iterator]();!(n=(u=s.next()).done)&&(t.push(u.value),!r||t.length!==r);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return t}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){var r=f(e,2),t=r[0],n=r[1],i=t,o=n;return t>n&&(i=n,o=t),[i,o]}function c(e,r,t){if(e.lte(0))return new n.default(0);var i=o.default.getDigitCount(e.toNumber()),u=new n.default(10).pow(i),s=e.div(u),f=1!==i?.05:.1,a=new n.default(Math.ceil(s.div(f).toNumber())).add(t).mul(f).mul(u);return r?a:new n.default(Math.ceil(a))}function l(e,r,t){var u=1,s=new n.default(e);if(!s.isint()&&t){var f=Math.abs(e);f<1?(u=new n.default(10).pow(o.default.getDigitCount(e)-1),s=new n.default(Math.floor(s.div(u).toNumber())).mul(u)):f>1&&(s=new n.default(Math.floor(e)))}else 0===e?s=new n.default(Math.floor((r-1)/2)):t||(s=new n.default(Math.floor(e)));var a=Math.floor((r-1)/2);return(0,i.compose)((0,i.map)(function(e){return s.add(new n.default(e-a).mul(u)).toNumber()}),i.range)(0,r)}var d=(0,i.memoize)(function(e){var r=f(e,2),t=r[0],u=r[1],d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,h=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],v=Math.max(d,2),g=f(a([t,u]),2),p=g[0],w=g[1];if(p===-1/0||w===1/0){var m=w===1/0?[p].concat(s((0,i.range)(0,d-1).map(function(){return 1/0}))):s((0,i.range)(0,d-1).map(function(){return-1/0})).concat([w]);return t>u?(0,i.reverse)(m):m}if(p===w)return l(p,d,h);var b=function e(r,t,i,o){var u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-r)/(i-1)))return{step:new n.default(0),tickMin:new n.default(0),tickMax:new n.default(0)};var s,f=c(new n.default(t).sub(r).div(i-1),o,u);s=r<=0&&t>=0?new n.default(0):(s=new n.default(r).add(t).div(2)).sub(new n.default(s).mod(f));var a=Math.ceil(s.sub(r).div(f).toNumber()),l=Math.ceil(new n.default(t).sub(s).div(f).toNumber()),d=a+l+1;return d>i?e(r,t,i,o,u+1):(d<i&&(l=t>0?l+(i-d):l,a=t>0?a:a+(i-d)),{step:f,tickMin:s.sub(new n.default(a).mul(f)),tickMax:s.add(new n.default(l).mul(f))})}(p,w,v,h),y=b.step,N=b.tickMin,E=b.tickMax,M=o.default.rangeStep(N,E.add(new n.default(.1).mul(y)),y);return t>u?(0,i.reverse)(M):M});r.getNiceTickValues=d;var h=(0,i.memoize)(function(e){var r=f(e,2),t=r[0],o=r[1],u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],d=Math.max(u,2),h=f(a([t,o]),2),v=h[0],g=h[1];if(v===-1/0||g===1/0)return[t,o];if(v===g)return l(v,u,s);var p=c(new n.default(g).sub(v).div(d-1),s,0),w=(0,i.compose)((0,i.map)(function(e){return new n.default(v).add(new n.default(e).mul(p)).toNumber()}),i.range)(0,d).filter(function(e){return e>=v&&e<=g});return t>o?(0,i.reverse)(w):w});r.getTickValues=h;var v=(0,i.memoize)(function(e,r){var t=f(e,2),u=t[0],l=t[1],d=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],h=f(a([u,l]),2),v=h[0],g=h[1];if(v===-1/0||g===1/0)return[u,l];if(v===g)return[v];var p=Math.max(r,2),w=c(new n.default(g).sub(v).div(p-1),d,0),m=s(o.default.rangeStep(new n.default(v),new n.default(g).sub(new n.default(.99).mul(w)),w)).concat([g]);return u>l?(0,i.reverse)(m):m});r.getTickValuesFixedDomain=v},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(t(0)),i=t(1);var o={rangeStep:function(e,r,t){for(var i=new n.default(e),o=[];i.lt(r);)o.push(i.toNumber()),i=i.add(t);return o},getDigitCount:function(e){return 0===e?1:Math.floor(new n.default(e).abs().log(10).toNumber())+1},interpolateNumber:(0,i.curry)(function(e,r,t){var n=+e;return n+t*(+r-n)}),uninterpolateNumber:(0,i.curry)(function(e,r,t){var n=r-+e;return(t-e)/(n=n||1/0)}),uninterpolateTruncation:(0,i.curry)(function(e,r,t){var n=r-+e;return n=n||1/0,Math.max(0,Math.min(1,(t-e)/n))})};r.default=o}]); | ||
!function(e){var r={};function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var i in e)t.d(n,i,function(r){return e[r]}.bind(null,i));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},t.p="",t(t.s=2)}([function(e,r,t){var n;/*! decimal.js-light v2.4.1 https://github.com/MikeMcl/decimal.js-light/LICENCE */!function(i){"use strict";var o,u=1e9,s={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},f=!0,a="[DecimalError] ",c=a+"Invalid argument: ",l=a+"Exponent out of range: ",d=Math.floor,h=Math.pow,v=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,g=1e7,p=7,w=d(9007199254740991/p),m={};function b(e,r){var t,n,i,o,u,s,a,c,l=e.constructor,d=l.precision;if(!e.s||!r.s)return r.s||(r=new l(e)),f?T(r,d):r;if(a=e.d,c=r.d,u=e.e,i=r.e,a=a.slice(),o=u-i){for(o<0?(n=a,o=-o,s=c.length):(n=c,i=u,s=a.length),o>(s=(u=Math.ceil(d/p))>s?u+1:s+1)&&(o=s,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for((s=a.length)-(o=c.length)<0&&(o=s,n=c,c=a,a=n),t=0;o;)t=(a[--o]=a[o]+c[o]+t)/g|0,a[o]%=g;for(t&&(a.unshift(t),++i),s=a.length;0==a[--s];)a.pop();return r.d=a,r.e=i,f?T(r,d):r}function y(e,r,t){if(e!==~~e||e<r||e>t)throw Error(c+e)}function N(e){var r,t,n,i=e.length-1,o="",u=e[0];if(i>0){for(o+=u,r=1;r<i;r++)n=e[r]+"",(t=p-n.length)&&(o+=A(t)),o+=n;u=e[r],(t=p-(n=u+"").length)&&(o+=A(t))}else if(0===u)return"0";for(;u%10==0;)u/=10;return o+u}m.absoluteValue=m.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},m.comparedTo=m.cmp=function(e){var r,t,n,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=0,t=(n=o.d.length)<(i=e.d.length)?n:i;r<t;++r)if(o.d[r]!==e.d[r])return o.d[r]>e.d[r]^o.s<0?1:-1;return n===i?0:n>i^o.s<0?1:-1},m.decimalPlaces=m.dp=function(){var e=this,r=e.d.length-1,t=(r-e.e)*p;if(r=e.d[r])for(;r%10==0;r/=10)t--;return t<0?0:t},m.dividedBy=m.div=function(e){return E(this,new this.constructor(e))},m.dividedToIntegerBy=m.idiv=function(e){var r=this.constructor;return T(E(this,new r(e),0,1),r.precision)},m.equals=m.eq=function(e){return!this.cmp(e)},m.exponent=function(){return O(this)},m.greaterThan=m.gt=function(e){return this.cmp(e)>0},m.greaterThanOrEqualTo=m.gte=function(e){return this.cmp(e)>=0},m.isInteger=m.isint=function(){return this.e>this.d.length-2},m.isNegative=m.isneg=function(){return this.s<0},m.isPositive=m.ispos=function(){return this.s>0},m.isZero=function(){return 0===this.s},m.lessThan=m.lt=function(e){return this.cmp(e)<0},m.lessThanOrEqualTo=m.lte=function(e){return this.cmp(e)<1},m.logarithm=m.log=function(e){var r,t=this,n=t.constructor,i=n.precision,u=i+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(o))throw Error(a+"NaN");if(t.s<1)throw Error(a+(t.s?"NaN":"-Infinity"));return t.eq(o)?new n(0):(f=!1,r=E(_(t,u),_(e,u),u),f=!0,T(r,i))},m.minus=m.sub=function(e){var r=this;return e=new r.constructor(e),r.s==e.s?k(r,e):b(r,(e.s=-e.s,e))},m.modulo=m.mod=function(e){var r,t=this,n=t.constructor,i=n.precision;if(!(e=new n(e)).s)throw Error(a+"NaN");return t.s?(f=!1,r=E(t,e,0,1).times(e),f=!0,t.minus(r)):T(new n(t),i)},m.naturalExponential=m.exp=function(){return M(this)},m.naturalLogarithm=m.ln=function(){return _(this)},m.negated=m.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},m.plus=m.add=function(e){var r=this;return e=new r.constructor(e),r.s==e.s?b(r,e):k(r,(e.s=-e.s,e))},m.precision=m.sd=function(e){var r,t,n,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(c+e);if(r=O(i)+1,t=(n=i.d.length-1)*p+1,n=i.d[n]){for(;n%10==0;n/=10)t--;for(n=i.d[0];n>=10;n/=10)t++}return e&&r>t?r:t},m.squareRoot=m.sqrt=function(){var e,r,t,n,i,o,u,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(a+"NaN")}for(e=O(s),f=!1,0==(i=Math.sqrt(+s))||i==1/0?(((r=N(s.d)).length+e)%2==0&&(r+="0"),i=Math.sqrt(r),e=d((e+1)/2)-(e<0||e%2),n=new c(r=i==1/0?"1e"+e:(r=i.toExponential()).slice(0,r.indexOf("e")+1)+e)):n=new c(i.toString()),i=u=(t=c.precision)+3;;)if(n=(o=n).plus(E(s,o,u+2)).times(.5),N(o.d).slice(0,u)===(r=N(n.d)).slice(0,u)){if(r=r.slice(u-3,u+1),i==u&&"4999"==r){if(T(o,t+1,0),o.times(o).eq(s)){n=o;break}}else if("9999"!=r)break;u+=4}return f=!0,T(n,t)},m.times=m.mul=function(e){var r,t,n,i,o,u,s,a,c,l=this,d=l.constructor,h=l.d,v=(e=new d(e)).d;if(!l.s||!e.s)return new d(0);for(e.s*=l.s,t=l.e+e.e,(a=h.length)<(c=v.length)&&(o=h,h=v,v=o,u=a,a=c,c=u),o=[],n=u=a+c;n--;)o.push(0);for(n=c;--n>=0;){for(r=0,i=a+n;i>n;)s=o[i]+v[n]*h[i-n-1]+r,o[i--]=s%g|0,r=s/g|0;o[i]=(o[i]+r)%g|0}for(;!o[--u];)o.pop();return r?++t:o.shift(),e.d=o,e.e=t,f?T(e,d.precision):e},m.toDecimalPlaces=m.todp=function(e,r){var t=this,n=t.constructor;return t=new n(t),void 0===e?t:(y(e,0,u),void 0===r?r=n.rounding:y(r,0,8),T(t,e+O(t)+1,r))},m.toExponential=function(e,r){var t,n=this,i=n.constructor;return void 0===e?t=D(n,!0):(y(e,0,u),void 0===r?r=i.rounding:y(r,0,8),t=D(n=T(new i(n),e+1,r),!0,e+1)),t},m.toFixed=function(e,r){var t,n,i=this,o=i.constructor;return void 0===e?D(i):(y(e,0,u),void 0===r?r=o.rounding:y(r,0,8),t=D((n=T(new o(i),e+O(i)+1,r)).abs(),!1,e+O(n)+1),i.isneg()&&!i.isZero()?"-"+t:t)},m.toInteger=m.toint=function(){var e=this,r=e.constructor;return T(new r(e),O(e)+1,r.rounding)},m.toNumber=function(){return+this},m.toPower=m.pow=function(e){var r,t,n,i,u,s,c=this,l=c.constructor,h=+(e=new l(e));if(!e.s)return new l(o);if(!(c=new l(c)).s){if(e.s<1)throw Error(a+"Infinity");return c}if(c.eq(o))return c;if(n=l.precision,e.eq(o))return T(c,n);if(s=(r=e.e)>=(t=e.d.length-1),u=c.s,s){if((t=h<0?-h:h)<=9007199254740991){for(i=new l(o),r=Math.ceil(n/p+4),f=!1;t%2&&j((i=i.times(c)).d,r),0!==(t=d(t/2));)j((c=c.times(c)).d,r);return f=!0,e.s<0?new l(o).div(i):T(i,n)}}else if(u<0)throw Error(a+"NaN");return u=u<0&&1&e.d[Math.max(r,t)]?-1:1,c.s=1,f=!1,i=e.times(_(c,n+12)),f=!0,(i=M(i)).s=u,i},m.toPrecision=function(e,r){var t,n,i=this,o=i.constructor;return void 0===e?n=D(i,(t=O(i))<=o.toExpNeg||t>=o.toExpPos):(y(e,1,u),void 0===r?r=o.rounding:y(r,0,8),n=D(i=T(new o(i),e,r),e<=(t=O(i))||t<=o.toExpNeg,e)),n},m.toSignificantDigits=m.tosd=function(e,r){var t=this.constructor;return void 0===e?(e=t.precision,r=t.rounding):(y(e,1,u),void 0===r?r=t.rounding:y(r,0,8)),T(new t(this),e,r)},m.toString=m.valueOf=m.val=m.toJSON=function(){var e=this,r=O(e),t=e.constructor;return D(e,r<=t.toExpNeg||r>=t.toExpPos)};var E=function(){function e(e,r){var t,n=0,i=e.length;for(e=e.slice();i--;)t=e[i]*r+n,e[i]=t%g|0,n=t/g|0;return n&&e.unshift(n),e}function r(e,r,t,n){var i,o;if(t!=n)o=t>n?1:-1;else for(i=o=0;i<t;i++)if(e[i]!=r[i]){o=e[i]>r[i]?1:-1;break}return o}function t(e,r,t){for(var n=0;t--;)e[t]-=n,n=e[t]<r[t]?1:0,e[t]=n*g+e[t]-r[t];for(;!e[0]&&e.length>1;)e.shift()}return function(n,i,o,u){var s,f,c,l,d,h,v,w,m,b,y,N,E,M,x,A,_,P,k=n.constructor,D=n.s==i.s?1:-1,j=n.d,L=i.d;if(!n.s)return new k(n);if(!i.s)throw Error(a+"Division by zero");for(f=n.e-i.e,_=L.length,x=j.length,w=(v=new k(D)).d=[],c=0;L[c]==(j[c]||0);)++c;if(L[c]>(j[c]||0)&&--f,(N=null==o?o=k.precision:u?o+(O(n)-O(i))+1:o)<0)return new k(0);if(N=N/p+2|0,c=0,1==_)for(l=0,L=L[0],N++;(c<x||l)&&N--;c++)E=l*g+(j[c]||0),w[c]=E/L|0,l=E%L|0;else{for((l=g/(L[0]+1)|0)>1&&(L=e(L,l),j=e(j,l),_=L.length,x=j.length),M=_,b=(m=j.slice(0,_)).length;b<_;)m[b++]=0;(P=L.slice()).unshift(0),A=L[0],L[1]>=g/2&&++A;do{l=0,(s=r(L,m,_,b))<0?(y=m[0],_!=b&&(y=y*g+(m[1]||0)),(l=y/A|0)>1?(l>=g&&(l=g-1),1==(s=r(d=e(L,l),m,h=d.length,b=m.length))&&(l--,t(d,_<h?P:L,h))):(0==l&&(s=l=1),d=L.slice()),(h=d.length)<b&&d.unshift(0),t(m,d,b),-1==s&&(s=r(L,m,_,b=m.length))<1&&(l++,t(m,_<b?P:L,b)),b=m.length):0===s&&(l++,m=[0]),w[c++]=l,s&&m[0]?m[b++]=j[M]||0:(m=[j[M]],b=1)}while((M++<x||void 0!==m[0])&&N--)}return w[0]||w.shift(),v.e=f,T(v,u?o+O(v)+1:o)}}();function M(e,r){var t,n,i,u,s,a=0,c=0,d=e.constructor,v=d.precision;if(O(e)>16)throw Error(l+O(e));if(!e.s)return new d(o);for(null==r?(f=!1,s=v):s=r,u=new d(.03125);e.abs().gte(.1);)e=e.times(u),c+=5;for(s+=Math.log(h(2,c))/Math.LN10*2+5|0,t=n=i=new d(o),d.precision=s;;){if(n=T(n.times(e),s),t=t.times(++a),N((u=i.plus(E(n,t,s))).d).slice(0,s)===N(i.d).slice(0,s)){for(;c--;)i=T(i.times(i),s);return d.precision=v,null==r?(f=!0,T(i,v)):i}i=u}}function O(e){for(var r=e.e*p,t=e.d[0];t>=10;t/=10)r++;return r}function x(e,r,t){if(r>e.LN10.sd())throw f=!0,t&&(e.precision=t),Error(a+"LN10 precision limit exceeded");return T(new e(e.LN10),r)}function A(e){for(var r="";e--;)r+="0";return r}function _(e,r){var t,n,i,u,s,c,l,d,h,v=1,g=e,p=g.d,w=g.constructor,m=w.precision;if(g.s<1)throw Error(a+(g.s?"NaN":"-Infinity"));if(g.eq(o))return new w(0);if(null==r?(f=!1,d=m):d=r,g.eq(10))return null==r&&(f=!0),x(w,d);if(d+=10,w.precision=d,n=(t=N(p)).charAt(0),u=O(g),!(Math.abs(u)<15e14))return l=x(w,d+2,m).times(u+""),g=_(new w(n+"."+t.slice(1)),d-10).plus(l),w.precision=m,null==r?(f=!0,T(g,m)):g;for(;n<7&&1!=n||1==n&&t.charAt(1)>3;)n=(t=N((g=g.times(e)).d)).charAt(0),v++;for(u=O(g),n>1?(g=new w("0."+t),u++):g=new w(n+"."+t.slice(1)),c=s=g=E(g.minus(o),g.plus(o),d),h=T(g.times(g),d),i=3;;){if(s=T(s.times(h),d),N((l=c.plus(E(s,new w(i),d))).d).slice(0,d)===N(c.d).slice(0,d))return c=c.times(2),0!==u&&(c=c.plus(x(w,d+2,m).times(u+""))),c=E(c,new w(v),d),w.precision=m,null==r?(f=!0,T(c,m)):c;c=l,i+=2}}function P(e,r){var t,n,i;for((t=r.indexOf("."))>-1&&(r=r.replace(".","")),(n=r.search(/e/i))>0?(t<0&&(t=n),t+=+r.slice(n+1),r=r.substring(0,n)):t<0&&(t=r.length),n=0;48===r.charCodeAt(n);)++n;for(i=r.length;48===r.charCodeAt(i-1);)--i;if(r=r.slice(n,i)){if(i-=n,t=t-n-1,e.e=d(t/p),e.d=[],n=(t+1)%p,t<0&&(n+=p),n<i){for(n&&e.d.push(+r.slice(0,n)),i-=p;n<i;)e.d.push(+r.slice(n,n+=p));r=r.slice(n),n=p-r.length}else n-=i;for(;n--;)r+="0";if(e.d.push(+r),f&&(e.e>w||e.e<-w))throw Error(l+t)}else e.s=0,e.e=0,e.d=[0];return e}function T(e,r,t){var n,i,o,u,s,a,c,v,m=e.d;for(u=1,o=m[0];o>=10;o/=10)u++;if((n=r-u)<0)n+=p,i=r,c=m[v=0];else{if((v=Math.ceil((n+1)/p))>=(o=m.length))return e;for(c=o=m[v],u=1;o>=10;o/=10)u++;i=(n%=p)-p+u}if(void 0!==t&&(s=c/(o=h(10,u-i-1))%10|0,a=r<0||void 0!==m[v+1]||c%o,a=t<4?(s||a)&&(0==t||t==(e.s<0?3:2)):s>5||5==s&&(4==t||a||6==t&&(n>0?i>0?c/h(10,u-i):0:m[v-1])%10&1||t==(e.s<0?8:7))),r<1||!m[0])return a?(o=O(e),m.length=1,r=r-o-1,m[0]=h(10,(p-r%p)%p),e.e=d(-r/p)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(0==n?(m.length=v,o=1,v--):(m.length=v+1,o=h(10,p-n),m[v]=i>0?(c/h(10,u-i)%h(10,i)|0)*o:0),a)for(;;){if(0==v){(m[0]+=o)==g&&(m[0]=1,++e.e);break}if(m[v]+=o,m[v]!=g)break;m[v--]=0,o=1}for(n=m.length;0===m[--n];)m.pop();if(f&&(e.e>w||e.e<-w))throw Error(l+O(e));return e}function k(e,r){var t,n,i,o,u,s,a,c,l,d,h=e.constructor,v=h.precision;if(!e.s||!r.s)return r.s?r.s=-r.s:r=new h(e),f?T(r,v):r;if(a=e.d,d=r.d,n=r.e,c=e.e,a=a.slice(),u=c-n){for((l=u<0)?(t=a,u=-u,s=d.length):(t=d,n=c,s=a.length),u>(i=Math.max(Math.ceil(v/p),s)+2)&&(u=i,t.length=1),t.reverse(),i=u;i--;)t.push(0);t.reverse()}else{for((l=(i=a.length)<(s=d.length))&&(s=i),i=0;i<s;i++)if(a[i]!=d[i]){l=a[i]<d[i];break}u=0}for(l&&(t=a,a=d,d=t,r.s=-r.s),s=a.length,i=d.length-s;i>0;--i)a[s++]=0;for(i=d.length;i>u;){if(a[--i]<d[i]){for(o=i;o&&0===a[--o];)a[o]=g-1;--a[o],a[i]+=g}a[i]-=d[i]}for(;0===a[--s];)a.pop();for(;0===a[0];a.shift())--n;return a[0]?(r.d=a,r.e=n,f?T(r,v):r):new h(0)}function D(e,r,t){var n,i=O(e),o=N(e.d),u=o.length;return r?(t&&(n=t-u)>0?o=o.charAt(0)+"."+o.slice(1)+A(n):u>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+A(-i-1)+o,t&&(n=t-u)>0&&(o+=A(n))):i>=u?(o+=A(i+1-u),t&&(n=t-i-1)>0&&(o=o+"."+A(n))):((n=i+1)<u&&(o=o.slice(0,n)+"."+o.slice(n)),t&&(n=t-u)>0&&(i+1===u&&(o+="."),o+=A(n))),e.s<0?"-"+o:o}function j(e,r){if(e.length>r)return e.length=r,!0}function L(e){if(!e||"object"!=typeof e)throw Error(a+"Object expected");var r,t,n,i=["precision",1,u,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(r=0;r<i.length;r+=3)if(void 0!==(n=e[t=i[r]])){if(!(d(n)===n&&n>=i[r+1]&&n<=i[r+2]))throw Error(c+t+": "+n);this[t]=n}if(void 0!==(n=e[t="LN10"])){if(n!=Math.LN10)throw Error(c+t+": "+n);this[t]=new this(n)}return this}(s=function e(r){var t,n,i;function o(e){var r=this;if(!(r instanceof o))return new o(e);if(r.constructor=o,e instanceof o)return r.s=e.s,r.e=e.e,void(r.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(c+e);if(e>0)r.s=1;else{if(!(e<0))return r.s=0,r.e=0,void(r.d=[0]);e=-e,r.s=-1}return e===~~e&&e<1e7?(r.e=0,void(r.d=[e])):P(r,e.toString())}if("string"!=typeof e)throw Error(c+e);if(45===e.charCodeAt(0)?(e=e.slice(1),r.s=-1):r.s=1,!v.test(e))throw Error(c+e);P(r,e)}if(o.prototype=m,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=e,o.config=o.set=L,void 0===r&&(r={}),r)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<i.length;)r.hasOwnProperty(n=i[t++])||(r[n]=this[n]);return o.config(r),o}(s)).default=s.Decimal=s,o=new s(1),void 0===(n=function(){return s}.call(r,t,r,e))||(e.exports=n)}()},function(e,r,t){"use strict";function n(e){return function(e){if(Array.isArray(e)){for(var r=0,t=new Array(e.length);r<e.length;r++)t[r]=e[r];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}Object.defineProperty(r,"__esModule",{value:!0}),r.memoize=r.reverse=r.compose=r.map=r.range=r.curry=r.PLACE_HOLDER=void 0;var i=function(e){return e},o={"@@functional/placeholder":!0};r.PLACE_HOLDER=o;var u=function(e){return e===o},s=function(e){return function r(){return 0===arguments.length||1===arguments.length&&u(arguments.length<=0?void 0:arguments[0])?r:e.apply(void 0,arguments)}},f=function(e){return function e(r,t){return 1===r?t:s(function(){for(var i=arguments.length,f=new Array(i),a=0;a<i;a++)f[a]=arguments[a];var c=f.filter(function(e){return e!==o}).length;return c>=r?t.apply(void 0,f):e(r-c,s(function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o=f.map(function(e){return u(e)?r.shift():e});return t.apply(void 0,n(o).concat(r))}))})}(e.length,e)};r.curry=f;r.range=function(e,r){for(var t=[],n=e;n<r;++n)t[n-e]=n;return t};var a=f(function(e,r){return Array.isArray(r)?r.map(e):Object.keys(r).map(function(e){return r[e]}).map(e)});r.map=a;r.compose=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];if(!r.length)return i;var n=r.reverse(),o=n[0],u=n.slice(1);return function(){return u.reduce(function(e,r){return r(e)},o.apply(void 0,arguments))}};r.reverse=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")};r.memoize=function(e){var r=null,t=null;return function(){for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return r&&i.every(function(e,t){return e===r[t]})?t:(r=i,t=e.apply(void 0,i))}}},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getTickValues",{enumerable:!0,get:function(){return n.getTickValues}}),Object.defineProperty(r,"getNiceTickValues",{enumerable:!0,get:function(){return n.getNiceTickValues}}),Object.defineProperty(r,"getTickValuesFixedDomain",{enumerable:!0,get:function(){return n.getTickValuesFixedDomain}});var n=t(3)},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getTickValuesFixedDomain=r.getTickValues=r.getNiceTickValues=void 0;var n=u(t(0)),i=t(1),o=u(t(4));function u(e){return e&&e.__esModule?e:{default:e}}function s(e){return function(e){if(Array.isArray(e)){for(var r=0,t=new Array(e.length);r<e.length;r++)t[r]=e[r];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function f(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=[],n=!0,i=!1,o=void 0;try{for(var u,s=e[Symbol.iterator]();!(n=(u=s.next()).done)&&(t.push(u.value),!r||t.length!==r);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return t}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){var r=f(e,2),t=r[0],n=r[1],i=t,o=n;return t>n&&(i=n,o=t),[i,o]}function c(e,r,t){if(e.lte(0))return new n.default(0);var i=o.default.getDigitCount(e.toNumber()),u=new n.default(10).pow(i),s=e.div(u),f=1!==i?.05:.1,a=new n.default(Math.ceil(s.div(f).toNumber())).add(t).mul(f).mul(u);return r?a:new n.default(Math.ceil(a))}function l(e,r,t){var u=1,s=new n.default(e);if(!s.isint()&&t){var f=Math.abs(e);f<1?(u=new n.default(10).pow(o.default.getDigitCount(e)-1),s=new n.default(Math.floor(s.div(u).toNumber())).mul(u)):f>1&&(s=new n.default(Math.floor(e)))}else 0===e?s=new n.default(Math.floor((r-1)/2)):t||(s=new n.default(Math.floor(e)));var a=Math.floor((r-1)/2);return(0,i.compose)((0,i.map)(function(e){return s.add(new n.default(e-a).mul(u)).toNumber()}),i.range)(0,r)}var d=(0,i.memoize)(function(e){var r=f(e,2),t=r[0],u=r[1],d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,h=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],v=Math.max(d,2),g=f(a([t,u]),2),p=g[0],w=g[1];if(p===-1/0||w===1/0){var m=w===1/0?[p].concat(s((0,i.range)(0,d-1).map(function(){return 1/0}))):s((0,i.range)(0,d-1).map(function(){return-1/0})).concat([w]);return t>u?(0,i.reverse)(m):m}if(p===w)return l(p,d,h);var b=function e(r,t,i,o){var u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-r)/(i-1)))return{step:new n.default(0),tickMin:new n.default(0),tickMax:new n.default(0)};var s,f=c(new n.default(t).sub(r).div(i-1),o,u);s=r<=0&&t>=0?new n.default(0):(s=new n.default(r).add(t).div(2)).sub(new n.default(s).mod(f));var a=Math.ceil(s.sub(r).div(f).toNumber()),l=Math.ceil(new n.default(t).sub(s).div(f).toNumber()),d=a+l+1;return d>i?e(r,t,i,o,u+1):(d<i&&(l=t>0?l+(i-d):l,a=t>0?a:a+(i-d)),{step:f,tickMin:s.sub(new n.default(a).mul(f)),tickMax:s.add(new n.default(l).mul(f))})}(p,w,v,h),y=b.step,N=b.tickMin,E=b.tickMax,M=o.default.rangeStep(N,E.add(new n.default(.1).mul(y)),y);return t>u?(0,i.reverse)(M):M});r.getNiceTickValues=d;var h=(0,i.memoize)(function(e){var r=f(e,2),t=r[0],o=r[1],u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,s=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],d=Math.max(u,2),h=f(a([t,o]),2),v=h[0],g=h[1];if(v===-1/0||g===1/0)return[t,o];if(v===g)return l(v,u,s);var p=c(new n.default(g).sub(v).div(d-1),s,0),w=(0,i.compose)((0,i.map)(function(e){return new n.default(v).add(new n.default(e).mul(p)).toNumber()}),i.range)(0,d).filter(function(e){return e>=v&&e<=g});return t>o?(0,i.reverse)(w):w});r.getTickValues=h;var v=(0,i.memoize)(function(e,r){var t=f(e,2),u=t[0],l=t[1],d=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],h=f(a([u,l]),2),v=h[0],g=h[1];if(v===-1/0||g===1/0)return[u,l];if(v===g)return[v];var p=Math.max(r,2),w=c(new n.default(g).sub(v).div(p-1),d,0),m=s(o.default.rangeStep(new n.default(v),new n.default(g).sub(new n.default(.99).mul(w)),w)).concat([g]);return u>l?(0,i.reverse)(m):m});r.getTickValuesFixedDomain=v},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=function(e){return e&&e.__esModule?e:{default:e}}(t(0)),i=t(1);var o={rangeStep:function(e,r,t){for(var i=new n.default(e),o=0,u=[];i.lt(r)&&o<1e5;)u.push(i.toNumber()),i=i.add(t),o++;return u},getDigitCount:function(e){return 0===e?1:Math.floor(new n.default(e).abs().log(10).toNumber())+1},interpolateNumber:(0,i.curry)(function(e,r,t){var n=+e;return n+t*(+r-n)}),uninterpolateNumber:(0,i.curry)(function(e,r,t){var n=r-+e;return(t-e)/(n=n||1/0)}),uninterpolateTruncation:(0,i.curry)(function(e,r,t){var n=r-+e;return n=n||1/0,Math.max(0,Math.min(1,(t-e)/n))})};r.default=o}]); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
96889
1300
0