/**
-
plotly.js v1.16.2
-
Copyright 2012-2016,
Plotly
, Inc. -
All rights reserved.
-
Licensed under the MIT license
*/ !function(t){if(“object”==typeof exports&&“undefined”!=typeof module)module.exports=t();else if(“function”==typeof define&&define.amd)define([],t);else{var e;e=“undefined”!=typeof window?window:“undefined”!=typeof global?global:“undefined”!=typeof self?self:this,e.Plotly=t()}}(function(){var t;return function e(t,r,n){function i(a,s){if(!r[a]){if(!t[a]){var l=“function”==typeof require&&require;if(!s&&l)return l(a,!0);if(o)return o(a,!0);var u=new Error(“Cannot find module ‘” =o.length)return t;var n=[],i=a[r++];return t.forEach(function(t,i){n.push({key:t,values:e(i,r)})}),i?n.sort(function(t,e){return i(t.key,e.key)}):n}var r,n,i={},o=[],a=[];return i.map=function(e,r){return t(r,e,0)},i.entries=function®{return e(t(ca.map,r,0),0)},i.key=function(t){return o.push(t),i},i.sortKeys=function(t){return a[o.length-1]=t,i},i.sortValues=function(t){return r=t,i},i.rollup=function(t){return n=t,i},i},ca.set=function(t){var e=new b;if(t)for(var r=0,n=t.length;n>r;++r)e.add(t[r]);return e},c(b,{has:p,add:function(t){return this._[f(t+=”“)]=!0,t},remove:v,values:m,size:g,empty:y,forEach:function(t){for(var e in this._)t.call(this,d(e))}}),ca.behavior={},ca.rebind=function(t,e){for(var r,n=1,i=arguments.length;++n=0&&(n=t.slice(r+1),t=t.slice(0,r)),t)return arguments.length<2?this[t].on(n):this[t].on(n,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(n,null);return this}},ca.event=null,ca.requote=function(t){return t.replace(Ta,"\\$&")};var Ta=/[\\\^\$*\+\?\|\[\]\(\)\.\{\}]/g,Ea={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)t[r]=e[r]},Sa=function(t,e){return e.querySelector(t)},La=function(t,e){return e.querySelectorAll(t)},za=function(t,e){var r=t.matches||t[w(t,"matchesSelector")];return(za=function(t,e){return r.call(t,e)})(t,e)};"function"==typeof Sizzle&&(Sa=function(t,e){return Sizzle(t,e)[0]||null},La=Sizzle,za=Sizzle.matchesSelector),ca.selection=function(){return ca.select(da.documentElement)};var Ia=ca.selection.prototype=[];Ia.select=function(t){var e,r,n,i,o=[];t=z(t);for(var a=-1,s=this.length;++a =0?t.slice(0,e):t,n=e>=0?t.slice(e+1):”in“;return r=gl.get®||ml,n=yl.get(n)||x,Mn(n(r.apply(null,ha.call(arguments,1))))},ca.interpolateHcl=On,ca.interpolateHsl=Fn,ca.interpolateLab=jn,ca.interpolateRound=Nn,ca.transform=function(t){var e=da.createElementNS(ca.ns.prefix.svg,”g“);return(ca.transform=function(t){if(null!=t){e.setAttribute(”transform“,t);var r=e.transform.baseVal.consolidate()}return new Bn(r?r.matrix:bl)})(t)},Bn.prototype.toString=function(){return”translate(“a
“’”);throw u.code=“MODULE_NOT_FOUND”,u}var c=r[a]={exports:{}};t[a][0].call(c.exports,function(e){var r=t[a][1][e];return i(r?r:e)},c,c.exports,e,t,r,n)}return r[a].exports}for(var o=“function”==typeof require&&require,a=0;at
“y”,e,[“y”],!1,i),n(“B”,“x”t
“y”,e,[“y”],!0,i),n(“P”,“c(x,y)”t
“0”,e,[“y”,“c”],!1,i),n(“Q”,“c(x,y)”t
“0”,e,[“y”,“c”],!0,i),“function dispatchBsearch”,r,“(a,y,c,l,h){if(a.shape){if(typeof©===‘function’){return Q(a,(l===undefined)?0:l|0,(h===undefined)?a.shape[0]-1:h|0,y,c)}else{return B(a,(c===undefined)?0:c|0,(l===undefined)?a.shape[0]-1:l|0,y)}}else{if(typeof©===‘function’){return P(a,(l===undefined)?0:l|0,(h===undefined)?a.length-1:h|0,y,c)}else{return A(a,(c===undefined)?0:c|0,(l===undefined)?a.length-1:l|0,y)}}}return dispatchBsearch”,r].join(“”));return o()}e.exports={ge:i(“>=”,!1,“GE”),gt:i(“>”,!1,“GT”),lt:i(“<",!0,"LT"),le:i("<=",!0,"LE"),eq:i("-",!0,"EQ",!0)}},{}],23:[function(t,e,r){"use strict";function n(t,e,r,n,i,o){var a=6*i*i-6*i,s=3*i*i-4*i+1,l=-6*i*i+6*i,u=3*i*i-2*i;if(t.length){o||(o=new Array(t.length));for(var c=t.length-1;c>=0;–c)o[c]=a*t[c]+s*e[c]+l*r[c]+u*n[c];return o}return a*t+s*e+l*r[c]+u*n}function i(t,e,r,n,i,o){var a=i-1,s=i*i,l=a*a,u=(1+2*i)*l,c=i*l,h=s*(3-2*i),f=s*a;if(t.length){o||(o=new Array(t.length));for(var d=t.length-1;d>=0;–d)o[d]=u*t[d]+c*e[d]+h*r[d]+f*n[d];return o}return u*t+c*e+h*r+f*n}e.exports=i,e.exports.derivative=n},{}],24:[function(t,e,r){function n(t,e,r){var n=e[0],i=e[1],o=e[2],a=r[0],s=r[1],l=r[2];return t[0]=i*l-o*s,t[1]=o*a-n*l,t[2]=n*s-i*a,t}e.exports=n},{}],25:[function(t,e,r){function n(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}e.exports=n},{}],26:[function(t,e,r){function n(t){var e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}e.exports=n},{}],27:[function(t,e,r){function n(t,e,r,n){var i=e[0],o=e[1],a=e[2];return t[0]=i+n*(r[0]-i),t[1]=o+n*(r[1]-o),t[2]=a+n*(r[2]-a),t}e.exports=n},{}],28:[function(t,e,r){function n(t,e){var r=e[0],n=e[1],i=e[2],o=r*r+n*n+i*i;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t}e.exports=n},{}],29:[function(t,e,r){”use strict“;function n(t){this._components=t.slice(),this._time=[0],this.prevMatrix=t.slice(),this.nextMatrix=t.slice(),this.computedMatrix=t.slice(),this.computedInverse=t.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-(1/0),1/0]}function i(t){t=t||{};var e=t.matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return new n(e)}var o=t(”binary-search-bounds“),a=t(”mat4-interpolate“),s=t(”gl-mat4/invert“),l=t(”gl-mat4/rotateX“),u=t(”gl-mat4/rotateY“),c=t(”gl-mat4/rotateZ“),h=t(”gl-mat4/lookAt“),f=t(”gl-mat4/translate“),d=(t(”gl-mat4/scale“),t(”gl-vec3/normalize“)),p=[0,0,0];e.exports=i;var v=n.prototype;v.recalcMatrix=function(t){var e=this._time,r=o.le(e,t),n=this.computedMatrix;if(!(0>r)){var i=this._components;if(r===e.length-1)for(var l=16*r,u=0;16>u;++u)n[u]=i[l++];else{for(var c=e[r+1]-e[r],l=16*r,h=this.prevMatrix,f=!0,u=0;16>u;++u)h[u]=i[l++];for(var p=this.nextMatrix,u=0;16>u;++u)p[u]=i[l++],f=f&&h[u]===p[u];if(1e-6>c||f)for(var u=0;16>u;++u)n[u]=h[u];else a(n,h,p,(t-e[r])/c)}var v=this.computedUp;v[0]=n[1],v[1]=n[5],v[2]=n[6],d(v,v);var m=this.computedInverse;s(m,n);var g=this.computedEye,y=m[15];g[0]=m[12]/y,g[1]=m[13]/y,g[2]=m[14]/y;for(var b=this.computedCenter,x=Math.exp(this.computedRadius[0]),u=0;3>u;++u)b[u]=g[u]-n[2+4*u]*x}},v.idle=function(t){if(!(tr.name
”).“:”.“)+(n?” “+n:”.“),t&&!i&&a(i,r,”Missing expected exception“+n),!t&&h(i,r)&&a(i,r,”Got unwanted exception“+n),t&&i&&r&&!h(i,r)||!t&&i)throw i}var d=t(”util/“),p=Array.prototype.slice,v=Object.prototype.hasOwnProperty,m=e.exports=s;m.AssertionError=function(t){this.name=”AssertionError“,this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=o(this),this.generatedMessage=!0);var e=t.stackStartFunction||a;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=e.name,s=n.indexOf(”n“+i);if(s>=0){var l=n.indexOf(”n“,s+1);n=n.substring(l+1)}this.stack=n}}},d.inherits(m.AssertionError,Error),m.fail=a,m.ok=s,m.equal=function(t,e,r){t!=e&&a(t,e,r,”==“,m.equal)},m.notEqual=function(t,e,r){t==e&&a(t,e,r,”!=“,m.notEqual)},m.deepEqual=function(t,e,r){l(t,e)||a(t,e,r,”deepEqual“,m.deepEqual)},m.notDeepEqual=function(t,e,r){l(t,e)&&a(t,e,r,”notDeepEqual“,m.notDeepEqual)},m.strictEqual=function(t,e,r){t!==e&&a(t,e,r,”===“,m.strictEqual)},m.notStrictEqual=function(t,e,r){t===e&&a(t,e,r,”!==“,m.notStrictEqual)},m.throws=function(t,e,r){f.apply(this,[!0].concat(p.call(arguments)))},m.doesNotThrow=function(t,e){f.apply(this,[!1].concat(p.call(arguments)))},m.ifError=function(t){if(t)throw t};var g=Object.keys||function(t){var e=[];for(var r in t)v.call(t,r)&&e.push®;return e}},{”util/“:62}],53:[function(t,e,r){(function(e){”use strict“;function n(){try{var t=new Uint8Array(1);return t.foo=function(){return 42},42===t.foo()&&”function“==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function i(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(t){return this instanceof o?(o.TYPED_ARRAY_SUPPORT||(this.length=0,this.parent=void 0),”number“==typeof t?a(this,t):”string“==typeof t?s(this,t,arguments.length>1?arguments[1]:”utf8“):l(this,t)):arguments.length>1?new o(t,arguments[1]):new o(t)}function a(t,e){if(t=v(t,0>e?0:0|m(e)),!o.TYPED_ARRAY_SUPPORT)for(var r=0;e>r;r++)t[r]=0;return t}function s(t,e,r){”string“==typeof r&&”“!==r||(r=”utf8“);var n=0|y(e,r);return t=v(t,n),t.write(e,r),t}function l(t,e){if(o.isBuffer(e))return u(t,e);if(K(e))return c(t,e);if(null==e)throw new TypeError(”must start with number, buffer, array or string“);if(”undefined“!=typeof ArrayBuffer){if(e.buffer instanceof ArrayBuffer)return h(t,e);if(e instanceof ArrayBuffer)return f(t,e)}return e.length?d(t,e):p(t,e)}function u(t,e){var r=0|m(e.length);return t=v(t,r),e.copy(t,0,0,r),t}function c(t,e){var r=0|m(e.length);t=v(t,r);for(var n=0;r>n;n+=1)t[n]=255&e[n];return t}function h(t,e){var r=0|m(e.length);t=v(t,r);for(var n=0;r>n;n+=1)t[n]=255&e[n];return t}function f(t,e){return e.byteLength,o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):t=h(t,new Uint8Array(e)),t}function d(t,e){var r=0|m(e.length);t=v(t,r);for(var n=0;r>n;n+=1)t[n]=255&e[n];return t}function p(t,e){var r,n=0;”Buffer“===e.type&&K(e.data)&&(r=e.data,n=0|m(r.length)),t=v(t,n);for(var i=0;n>i;i+=1)t[i]=255&r[i];return t}function v(t,e){o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):t.length=e;var r=0!==e&&e<=o.poolSize>>>1;return r&&(t.parent=J),t}function m(t){if(t>=i())throw new RangeError(”Attempt to allocate Buffer larger than maximum size: 0x“+i().toString(16)+” bytes“);return 0|t}function g(t,e){if(!(this instanceof g))return new g(t,e);var r=new o(t,e);return delete r.parent,r}function y(t,e){”string“!=typeof t&&(t=”“+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case”ascii“:case”binary“:case”raw“:case”raws“:return r;case”utf8“:case”utf-8“:return q(t).length;case”ucs2“:case”ucs-2“:case”utf16le“:case”utf-16le“:return 2*r;case”hex“:return r>>>1;case”base64“:return X(t).length;default:if(n)return q(t).length;e=(”“+e).toLowerCase(),n=!0}}function b(t,e,r){var n=!1;if(e=0|e,r=void 0===r||r===1/0?this.length:0|r,t||(t=”utf8“),0>e&&(e=0),r>this.length&&(r=this.length),e>=r)return”“;for(;;)switch(t){case”hex“:return I(this,e,r);case”utf8“:case”utf-8“:return E(this,e,r);case”ascii“:return L(this,e,r);case”binary“:return z(this,e,r);case”base64“:return T(this,e,r);case”ucs2“:case”ucs-2“:case”utf16le“:case”utf-16le“:return P(this,e,r);default:if(n)throw new TypeError(”Unknown encoding: “+t);t=(t+”“).toLowerCase(),n=!0}}function x(t,e,r,n){r=Number®||0;var i=t.length-r;n?(n=Number(n),n>i&&(n=i)):n=i;var o=e.length;if(o%2!==0)throw new Error(”Invalid hex string“);n>o/2&&(n=o/2);for(var a=0;n>a;a++){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))throw new Error(”Invalid hex string“);t[r+a]=s}return a}function _(t,e,r,n){return Y(q(e,t.length-r),t,r,n)}function w(t,e,r,n){return Y(G(e),t,r,n)}function M(t,e,r,n){return w(t,e,r,n)}function k(t,e,r,n){return Y(X(e),t,r,n)}function A(t,e,r,n){return Y(H(e,t.length-r),t,r,n)}function T(t,e,r){return 0===e&&r===t.length?W.fromByteArray(t):W.fromByteArray(t.slice(e,r))}function E(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;r>i;){var o=t[i],a=null,s=o>239?4:o>223?3:o>191?2:1;if(r>=i+s){var l,u,c,h;switch(s){case 1:128>o&&(a=o);break;case 2:l=t[i+1],128===(192&l)&&(h=(31&o)<<6|63&l,h>127&&(a=h));break;case 3:l=t[i+1],u=t[i+2],128===(192&l)&&128===(192&u)&&(h=(15&o)<<12|(63&l)<<6|63&u,h>2047&&(55296>h||h>57343)&&(a=h));break;case 4:l=t[i+1],u=t[i+2],c=t[i+3],128===(192&l)&&128===(192&u)&&128===(192&c)&&(h=(15&o)<<18|(63&l)<<12|(63&u)<<6|63&c,h>65535&&1114112>h&&(a=h))}}null===a?(a=65533,s=1):a>65535&&(a-=65536,n.push(a>>>10&1023|55296),a=56320|1023&a),n.push(a),i+=s}return S(n)}function S(t){var e=t.length;if($>=e)return String.fromCharCode.apply(String,t);for(var r=”“,n=0;e>n;)r+=String.fromCharCode.apply(String,t.slice(n,n+=$));return r}function L(t,e,r){var n=”“;r=Math.min(t.length,r);for(var i=e;r>i;i++)n+=String.fromCharCode(127&t[i]);return n}function z(t,e,r){var n=”“;r=Math.min(t.length,r);for(var i=e;r>i;i++)n+=String.fromCharCode(t[i]);return n}function I(t,e,r){var n=t.length;(!e||0>e)&&(e=0),(!r||0>r||r>n)&&(r=n);for(var i=”“,o=e;r>o;o++)i+=V(t[o]);return i}function P(t,e,r){for(var n=t.slice(e,r),i=”“,o=0;o>1,c=-7,h=r?i-1:0,f=r?-1:1,d=t[e+h];for(h+=f,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+t[e+h],h+=f,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:(d?-1:1)*(1/0);a+=Math.pow(2,n),o-=u}return(d?-1:1)*a*Math.pow(2,o-n)},r.write=function(t,e,r,n,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,v=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),e+=a+h>=1?f/l:f*Math.pow(2,1-h),e*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*l-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;t[r+d]=255&a,d+=p,a/=256,u-=8);t[r+d-p]|=128*v}},{}],56:[function(t,e,r){var n={}.toString;e.exports=Array.isArray||function(t){return”[object Array]“==n.call(t)}},{}],57:[function(t,e,r){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(t){return”function“==typeof t}function o(t){return”number“==typeof t}function a(t){return”object“==typeof t&&null!==t}function s(t){return void 0===t}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if(!o(t)||0>t||isNaN(t))throw TypeError(”n must be a positive number“);return this._maxListeners=t,this},n.prototype.emit=function(t){var e,r,n,o,l,u;if(this._events||(this._events={}),”error“===t&&(!this._events.error||a(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;throw TypeError(‘Uncaught, unspecified ”error“ event.’)}if(r=this._events[t],s®)return!1;if(i®)switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:o=Array.prototype.slice.call(arguments,1),r.apply(this,o)}else if(a®)for(o=Array.prototype.slice.call(arguments,1),u=r.slice(),n=u.length,l=0;n>l;l++)u[l].apply(this,o);return!0},n.prototype.addListener=function(t,e){var r;if(!i(e))throw TypeError(”listener must be a function“);return this._events||(this._events={}),this._events.newListener&&this.emit(”newListener“,t,i(e.listener)?e.listener:e),this._events[t]?a(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,a(this._events[t])&&!this._events[t].warned&&(r=s(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,r&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error(”(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.“,this._events[t].length),”function“==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function r(){this.removeListener(t,r),n||(n=!0,e.apply(this,arguments))}if(!i(e))throw TypeError(”listener must be a function“);var n=!1;return r.listener=e,this.on(t,r),this},n.prototype.removeListener=function(t,e){var r,n,o,s;if(!i(e))throw TypeError(”listener must be a function“);if(!this._events||!this._events[t])return this;if(r=this._events[t],o=r.length,n=-1,r===e||i(r.listener)&&r.listener===e)delete this._events[t],this._events.removeListener&&this.emit(”removeListener“,t,e);else if(a®){for(s=o;s– >0;)if(r[s]===e||r[s].listener&&r[s].listener===e){n=s;break}if(0>n)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(n,1),this._events.removeListener&&this.emit(”removeListener“,t,e)}return this},n.prototype.removeAllListeners=function(t){var e,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)”removeListener“!==e&&this.removeAllListeners(e);return this.removeAllListeners(”removeListener“),this._events={},this}if(r=this._events[t],i®)this.removeListener(t,r);else if®for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){var e;return e=this._events&&this._events[t]?i(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(i(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},{}],58:[function(t,e,r){”function“==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],59:[function(t,e,r){(function(t){function e(t,e){for(var r=0,n=t.length-1;n>=0;n–){var i=t[n];”.“===i?t.splice(n,1):”..“===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r–)}if(e)for(;r–;r)t.unshift(”..“);return t}function n(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;ni.colors[r][0]
”m“t
”[“i.colors[r][1]
”m“:t}function a(t,e){return t}function s(t){var e={};return t.forEach(function(t,r){e[t]=!0}),e}function l(t,e,n){if(t.customInspect&&e&&T(e.inspect)&&e.inspect!==r.inspect&&(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(n,t);return b(i)||(i=l(t,i,n)),i}var o=u(t,e);if(o)return o;var a=Object.keys(e),v=s(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(e)),A(e)&&(a.indexOf(”message“)>=0||a.indexOf(”description“)>=0))return c(e);if(0===a.length){if(T(e)){var m=e.name?”: “+e.name:”“;return t.stylize(”[Function“m
”]“,”special“)}if(w(e))return t.stylize(RegExp.prototype.toString.call(e),”regexp“);if(k(e))return t.stylize(Date.prototype.toString.call(e),”date“);if(A(e))return c(e)}var g=”“,y=!1,x=[”{“,”}“];if(p(e)&&(y=!0,x=[”[“,”]“]),T(e)){var _=e.name?”: “+e.name:”“;g=” [Function“_
”]“}if(w(e)&&(g=” “+RegExp.prototype.toString.call(e)),k(e)&&(g=” “+Date.prototype.toUTCString.call(e)),A(e)&&(g=” “+c(e)),0===a.length&&(!y||0==e.length))return x[0]+g+x[1];if(0>n)return w(e)?t.stylize(RegExp.prototype.toString.call(e),”regexp“):t.stylize(”[Object]“,”special“);t.seen.push(e);var M;return M=y?h(t,e,n,v,a):a.map(function®{return f(t,e,n,v,r,y)}),t.seen.pop(),d(M,g,x)}function u(t,e){if(_(e))return t.stylize(”undefined“,”undefined“);if(b(e)){var r=”‘“+JSON.stringify(e).replace(/^”|“$/g,”“).replace(/’/g,”\‘“).replace(/\”/g,’“‘)+”’“;return t.stylize(r,”string“)}return y(e)?t.stylize(”“+e,”number“):v(e)?t.stylize(”“+e,”boolean“):m(e)?t.stylize(”null“,”null“):void 0}function c(t){return”[“+Error.prototype.toString.call(t)+”]“}function h(t,e,r,n,i){for(var o=[],a=0,s=e.length;s>a;++a)I(e,String(a))?o.push(f(t,e,r,n,String(a),!0)):o.push(”“);return i.forEach(function(i){i.match(/^d+$/)||o.push(f(t,e,r,n,i,!0))}),o}function f(t,e,r,n,i,o){var a,s,u;if(u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]},u.get?s=u.set?t.stylize(”[Getter/Setter]“,”special“):t.stylize(”[Getter]“,”special“):u.set&&(s=t.stylize(”[Setter]“,”special“)),I(n,i)||(a=”[“i
”]“),s||(t.seen.indexOf(u.value)<0?(s=m(r)?l(t,u.value,null):l(t,u.value,r-1),s.indexOf("\n")>-1&&(s=o?s.split(”n“).map(function(t){return” “+t}).join(”n“).substr(2):”n“+s.split(”n“).map(function(t){return” “+t}).join(”n“))):s=t.stylize(”[Circular]“,”special“)),_(a)){if(o&&i.match(/^d+$/))return s;a=JSON.stringify(”“+i),a.match(/^”([a-zA-Z_][a-zA-Z_0-9]*)“$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,”name“)):(a=a.replace(/‘/g,”\’“).replace(/\”/g,‘“’).replace(/(^”|“$)/g,”‘“),a=t.stylize(a,”string“))}return a+”: “+s}function d(t,e,r){var n=0,i=t.reduce(function(t,e){return n++,e.indexOf(”n“)>=0&&n++,t+e.replace(/u001b[dd?m/g,”“).length+1},0);return i>60?r[0]+(”“===e?”“:e+”n “)+” “+t.join(”,n “)+” “+r[1]:r[0]e
” “+t.join(”, “)+” “+r[1]}function p(t){return Array.isArray(t)}function v(t){return”boolean“==typeof t}function m(t){return null===t}function g(t){return null==t}function y(t){return”number“==typeof t}function b(t){return”string“==typeof t}function x(t){return”symbol“==typeof t}function _(t){return void 0===t}function w(t){return M(t)&&”[object RegExp]“===S(t)}function M(t){return”object“==typeof t&&null!==t}function k(t){return M(t)&&”[object Date]“===S(t)}function A(t){return M(t)&&(”[object Error]“===S(t)||t instanceof Error)}function T(t){return”function“==typeof t}function E(t){return null===t||”boolean“==typeof t||”number“==typeof t||”string“==typeof t||”symbol“==typeof t||”undefined“==typeof t}function S(t){return Object.prototype.toString.call(t)}function L(t){return 10>t?”0“+t.toString(10):t.toString(10)}function z(){var t=new Date,e=[L(t.getHours()),L(t.getMinutes()),L(t.getSeconds())].join(”:“);return[t.getDate(),D[t.getMonth()],e].join(” “)}function I(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var P=/%[sdj%]/g;r.format=function(t){if(!b(t)){for(var e=[],r=0;rt
”\b“,”i“).test(C)){var n=e.pid;R[t]=function(){var e=r.format.apply(r,arguments);console.error(”%s %d: %s“,t,n,e)}}else R[t]=function(){};return R[t]},r.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:”cyan“,number:”yellow“,”boolean“:”yellow“,undefined:”grey“,”null“:”bold“,string:”green“,date:”magenta“,regexp:”red“},r.isArray=p,r.isBoolean=v,r.isNull=m,r.isNullOrUndefined=g,r.isNumber=y,r.isString=b,r.isSymbol=x,r.isUndefined=_,r.isRegExp=w,r.isObject=M,r.isDate=k,r.isError=A,r.isFunction=T,r.isPrimitive=E,r.isBuffer=t(”./support/isBuffer“);var D=[”Jan“,”Feb“,”Mar“,”Apr“,”May“,”Jun“,”Jul“,”Aug“,”Sep“,”Oct“,”Nov“,”Dec“];r.log=function(){console.log(”%s - %s“,z(),r.format.apply(r,arguments))},r.inherits=t(”inherits“),r._extend=function(t,e){if(!e||!M(e))return t;for(var r=Object.keys(e),n=r.length;n–;)t[r[n]]=e[r[n]];return t}}).call(this,t(”_process“),”undefined“!=typeof global?global:”undefined“!=typeof self?self:”undefined“!=typeof window?window:{})},{”./support/isBuffer“:61,_process:60,inherits:58}],63:[function(t,e,r){”use strict“;function n(t){return[Math.min(t[0],t[1]),Math.max(t[0],t[1])]}function i(t,e){return t[0]-e[0]||t[1]-e[1]}function o(t){return t.map(n).sort(i)}function a(t,e,r){return e in t?t[e]:r}function s(t,e,r){Array.isArray(e)?(r=r||{},e=e||[]):(r=e||{},e=[]);var n=!!a(r,”delaunay“,!0),i=!!a(r,”interior“,!0),s=!!a(r,”exterior“,!0),f=!!a(r,”infinity“,!1);if(!i&&!s||0===t.length)return[];var d=l(t,e);if(n||i!==s||f){for(var p=u(t.length,o(e)),v=0;vt
“y”,e,[“y”],i),n(“P”,“c(x,y)”t
“0”,e,[“y”,“c”],i),“function dispatchBsearch”,r,“(a,y,c,l,h){if(typeof©===’function’){return P(a,(l===void 0)?0:l|0,(h===void 0)?a.length-1:h|0,y,c)}else{return A(a,(c===void 0)?0:c|0,(l===void 0)?a.length-1:l|0,y)}}return dispatchBsearch”,r].join(“”));return o()}e.exports={ge:i(“>=”,!1,“GE”),gt:i(“>”,!1,“GT”),lt:i(“<",!0,"LT"),le:i("<=",!0,"LE"),eq:i("-",!0,"EQ",!0)}},{}],69:[function(t,e,r){"use strict";function n(t,e){for(var r=new Array(t.length-1),n=1;nc
“,”p
“=”u
“*”c
“;i<"h
”;++i,“p
”+=“u
”){var x0=“f
”[“a
”+“p
”],x1=“f
”[“a
”+“p
”+“o
”],xi=“d
”[i];“,M=”for(var j=“v
”,“b
”=“u
”*“v
”;j<"m
“;++j,”b
“+=”u
“){var y0=”g
“[”a
“+”b
“],”+(r?“y1=”g
“[”a
“+”b
“+”o
“],”:“”)+“yi=”y
“[j];”;return t?i.push(l,_,“:”,M):i.push(M,_,“:”,l),r?i.push(“if(y1f
“[k+”p
“],r1=”f
“[k+”o
“+”p
“],b0=”g
“[k+”b
“],b1=”g
“[k+”o
“+”b
“];if(r1x
”=“s
”(“),e?i.push(”yi,xi“):i.push(”xi,yi“),i.push(”);if(“x
”!==void 0)return “x
”;}}}“),{name:n,code:i.join(”“)}}function i(t){function e(e,r){var o=n(e,r,t);i.push(o.code),a.push(”return “o.name
”(“+w.join()+”);“)}var r=”bruteForce“+(t?”Full“:”Partial“),i=[],o=w.slice();t||o.splice(3,0,l);var a=[”function “r
”(“+o.join()+”){“];a.push(”if(“h
”-“c
”>“m
”-“v
”){“),t?(e(!0,!1),a.push(”}else{“),e(!1,!1)):(a.push(”if(“l
”){“),e(!0,!0),a.push(”}else{“),e(!0,!1),a.push(”}}else{if(“l
”){“),e(!1,!0),a.push(”}else{“),e(!1,!1),a.push(”}“)),a.push(”}}return “+r);var s=i.join(”“)+a.join(”“),u=new Function(s);return u()}var o=”d“,a=”ax“,s=”vv“,l=”fp“,u=”es“,c=”rs“,h=”re“,f=”rb“,d=”ri“,p=”rp“,v=”bs“,m=”be“,g=”bb“,y=”bi“,b=”bp“,x=”rv“,_=”Q“,w=[o,a,s,c,h,f,d,v,m,g,y];r.partial=i(!1),r.full=i(!0)},{}],91:[function(t,e,r){”use strict“;function n(t,e){var r=8*u.log2(e+1)*(t+1)|0,n=u.nextPow2(A*r);S.lengthn;++n){for(h=c,c=t[n],i=0;a>i;++i)l.push([”p“,i,”+=d“,i,”s“,n].join(”“));s&&(n>0&&l.push([”index[“,h,”]-=s“,h].join(”“)),l.push([”++index[“,c,”]“].join(”“))),l.push(”}“)}return l.join(”n“)}function i(t,e,r,i){for(var o=e.length,a=r.arrayArgs.length,s=r.blockSize,l=r.indexArgs.length>0,u=[],c=0;a>c;++c)u.push([”var offset“,c,”=p“,c].join(”“));for(var c=t;o>c;++c)u.push([”for(var j“c
”=SS[“,e[c],”]|0;j“,c,”>0;){“].join(”“)),u.push([”if(j“,c,”<",s,"){"].join("")),u.push(["s",e[c],"=j",c].join("")),u.push(["j",c,"=0"].join("")),u.push(["}else{s",e[c],"=",s].join("")),u.push(["j",c,"-=",s,"}"].join("")),l&&u.push(["index[",e[c],"]=j",c].join(""));for(var c=0;a>c;++c){for(var h=[“offset”+c],f=t;o>f;++f)h.push([“j”,f,“*t”,c,“p”,e[f]].join(“”));u.push([“p”,c,“=(”,h.join(“+”),“)”].join(“”))}u.push(n(e,r,i));for(var c=t;o>c;++c)u.push(“}”);return u.join(“n”)}function o(t){for(var e=0,r=t[0].length;r>e;){for(var n=1;nt.arrayBlockIndices[0]
“)”:“)”].join(“”)],l=[],u=[],c=0;ch
“.data”),s.push(“array”h
“.stride”),s.push(“array”h
“.offset|0”),c>0&&(l.push(“array”t.arrayArgs[0]
“.shape.length===array”h
“.shape.length+”+(Math.abs(t.arrayBlockIndices[0])-Math.abs(t.arrayBlockIndices[c]))),u.push(“array”t.arrayArgs[0]
“.shape[shapeIndex+”+Math.max(0,t.arrayBlockIndices[0])+“]===array”h
“.shape[shapeIndex+”+Math.max(0,t.arrayBlockIndices[c])+“]”))}t.arrayArgs.length>1&&(e.push(“if (!(”+l.join(“ && ”)+“)) throw new Error(‘cwise: Arrays do not all have the same dimensionality!’)”),e.push(“for(var shapeIndex=array”t.arrayArgs[0]
“.shape.length-”+Math.abs(t.arrayBlockIndices[0])+“; shapeIndex–>0;) {”),e.push(“if (!(”+u.join(“ && ”)+“)) throw new Error(‘cwise: Arrays do not all have the same shape!’)”),e.push(“}”));for(var c=0;ct
”a“t
”,“t
” 0 1,1 0,“+-2*t+”a“t
”,“t
” 0 1,1 0,“+2*t+”z“}function $e(t,e){Is+=t,Ps+=e,++Cs}function Qe(){function t(t,n){var i=t-e,o=n-r,a=Math.sqrt(i*i+o*o);Rs+=a*(e+t)/2,Ds+=a*(r+n)/2,Os+=a,$e(e=t,r=n)}var e,r;Js.point=function(n,i){Js.point=t,$e(e=n,r=i)}}function tr(){Js.point=$e}function er(){function t(t,e){var r=t-n,o=e-i,a=Math.sqrt(r*r+o*o);Rs+=a*(n+t)/2,Ds+=a*(i+e)/2,Os+=a,a=i*t-n*e,Fs+=a*(n+t),js+=a*(i+e),Ns+=3*a,$e(n=t,i=e)}var e,r,n,i;Js.point=function(o,a){Js.point=t,$e(e=n=o,r=i=a)},Js.lineEnd=function(){t(e,r)}}function rr(t){function e(e,r){t.moveTo(e+a,r),t.arc(e,r,a,0,Va)}function r(e,r){t.moveTo(e,r),s.point=n}function n(e,r){t.lineTo(e,r)}function i(){s.point=e}function o(){t.closePath()}var a=4.5,s={point:e,lineStart:function(){s.point=r},lineEnd:i,polygonStart:function(){s.lineEnd=o},polygonEnd:function(){s.lineEnd=i,s.point=e},pointRadius:function(t){return a=t,s},result:M};return s}function nr(t){function e(t){return(s?n:r)(t)}function r(e){return ar(e,function(r,n){r=t(r,n),e.point(r[0],r[1])})}function n(e){function r(r,n){r=t(r,n),e.point(r[0],r[1])}function n(){b=NaN,k.point=o,e.lineStart()}function o(r,n){var o=ge([r,n]),a=t(r,n);i(b,x,y,_,w,M,b=a[0],x=a[1],y=r,_=o[0],w=o[1],M=o[2],s,e),e.point(b,x)}function a(){k.point=r,e.lineEnd()}function l(){n(),k.point=u,k.lineEnd=c}function u(t,e){o(h=t,f=e),d=b,p=x,v=_,m=w,g=M,k.point=o}function c(){i(b,x,y,_,w,M,d,p,h,v,m,g,s,e),k.lineEnd=a,a()}var h,f,d,p,v,m,g,y,b,x,_,w,M,k={point:r,lineStart:n,lineEnd:a,polygonStart:function(){e.polygonStart(),k.lineStart=l},polygonEnd:function(){e.polygonEnd(),k.lineStart=n}};return k}function i(e,r,n,s,l,u,c,h,f,d,p,v,m,g){var y=c-e,b=h-r,x=y*y+b*b;if(x>4*o&&m–){var _=s+d,w=l+p,M=u+v,k=Math.sqrt(_*_+w*w+M*M),A=Math.asin(M/=k),T=wa(wa(M)-1)e
”)“)}function Yn(t,e,r,n){t!==e?n.push({i:r.push(Gn®+”skewX(“,null,”)“)-2,x:bn(t,e)}):e&&r.push(Gn®+”skewX(“e
”)“)}function Wn(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(Gn®+”scale(“,null,”,“,null,”)“);n.push({i:i-4,x:bn(t[0],e[0])},{i:i-2,x:bn(t[1],e[1])})}else 1===e[0]&&1===e[1]||r.push(Gn®+”scale(“e
”)“)}function Zn(t,e){var r=[],n=[];return t=ca.transform(t),e=ca.transform(e),Hn(t.translate,e.translate,r,n),Xn(t.rotate,e.rotate,r,n),Yn(t.skew,e.skew,r,n),Wn(t.scale,e.scale,r,n),t=e=null,function(t){for(var e,i=-1,o=n.length;++il;c–);a=a.slice(u,c)}return a},a.tickFormat=function(t,r){if(!arguments.length)return Sl;arguments.length<2?r=Sl:"function"!=typeof r&&(r=ca.format(r));var n=Math.max(1,e*t/a.ticks().length);return function(t){var a=t/o(Math.round(i(t)));return e-.5>a*e&&(a*=e),n>=a?r(t):”“}},a.copy=function(){return oo(t.copy(),e,r,n)},$i(a,t)}function ao(t,e,r){function n(e){return t(i(e))}var i=so(e),o=so(1/e);return n.invert=function(e){return o(t.invert(e))},n.domain=function(e){return arguments.length?(t.domain((r=e.map(Number)).map(i)),n):r},n.ticks=function(t){return eo(r,t)},n.tickFormat=function(t,e){return ro(r,t,e)},n.nice=function(t){return n.domain(Qi(r,t)); },n.exponent=function(a){return arguments.length?(i=so(e=a),o=so(1/e),t.domain(r.map(i)),n):e},n.copy=function(){return ao(t.copy(),e,r)},$i(n,t)}function so(t){return function(e){return 0>e?-Math.pow(-e,t):Math.pow(e,t)}}function lo(t,e){function r®{return o[((i.get®||(”range“===e.t?i.set(r,t.push®):NaN))-1)%o.length]}function n(e,r){return ca.range(t.length).map(function(t){return e+r*t})}var i,o,a;return r.domain=function(n){if(!arguments.length)return t;t=[],i=new h;for(var o,a=-1,s=n.length;++ar?[NaN,NaN]:[r>0?s[r-1]:t[0],ra[0])
”,“+(ia[1])
”,“+(o[0]-s[0])+”,“+(o[1]-s[1])+”,“o[0]
”,“+o[1];for(var u=2;uc[0]
”,“+c[1]}return n}function Po(t,e){for(var r,n=[],i=(1-e)/2,o=t[0],a=t[1],s=1,l=t.length;++se
”,“e
” 0 1,1 0,“-e
”A“e
”,“e
” 0 1,1 0,“e
”Z“}function Jo(t){return function(){var e,r,n;(e=this[t])&&(n=e[r=e.active])&&(n.timer.c=null,n.timer.t=NaN,–e.count?delete e[r]:delete this[t],e.active+=.5,n.event&&n.event.interrupt.call(this,this.__data__,n.index))}}function $o(t,e,r){return Ea(t,Hl),t.namespace=e,t.id=r,t}function Qo(t,e,r,n){var i=t.id,o=t.namespace;return H(t,”function“==typeof r?function(t,a,s){t[o][i].tween.set(e,n(r.call(t,t.__data__,a,s)))}:(r=n®,function(t){t[o][i].tween.set(e,r)}))}function ta(t){return null==t&&(t=”“),function(){this.textContent=t}}function ea(t){return null==t?”__transition__“:”_transition“t
”__“}function ra(t,e,r,n,i){function o(t){var e=v.delay;return u.t=e+l,t>=e?a(t-e):void(u.c=a)}function a®{var i=p.active,o=p[i];o&&(o.timer.c=null,o.timer.t=NaN,–p.count,delete p[i],o.event&&o.event.interrupt.call(t,t.__data__,o.index));for(var a in p)if(n>+a){var h=p[a];h.timer.c=null,h.timer.t=NaN,–p.count,delete p[a]}u.c=s,Ct(function(){return u.c&&s(r||1)&&(u.c=null,u.t=NaN),1},0,l),p.active=n,v.event&&v.event.start.call(t,t.__data__,e),d=[],v.tween.forEach(function(r,n){(n=n.call(t,t.__data__,e))&&d.push(n)}),f=v.ease,c=v.duration}function s(i){for(var o=i/c,a=f(o),s=d.length;s>0;)d[–s].call(t,a);return o>=1?(v.event&&v.event.end.call(t,t.__data__,e),–p.count?delete p[n]:delete t[r],1):void 0}var l,u,c,f,d,p=t[r]||(t[r]={active:0,count:0}),v=p[n];v||(l=i.time,u=Ct(o,0,l),v=p[n]={tween:new h,time:l,timer:u,delay:i.delay,duration:i.duration,ease:i.ease,index:e},i=null,++p.count)}function na(t,e,r){t.attr(”transform“,function(t){var n=e(t);return”translate(“+(isFinite(n)?n:r(t))+”,0)“})}function ia(t,e,r){t.attr(”transform“,function(t){var n=e(t);return”translate(0,“+(isFinite(n)?n:r(t))+”)“})}function oa(t){return t.toISOString()}function aa(t,e,r){function n(e){return t(e)}function i(t,r){var n=t[1]-t[0],i=n/r,o=ca.bisect(tu,i);return o==tu.length?[e.year,to(t.map(function(t){return t/31536e6}),r)[2]]:o?e[i/tu[o-1]=0&&”xmlns“!==(r=t.slice(0,e))&&(t=t.slice(e+1)),Ca.hasOwnProperty®?{space:Ca[r],local:t}:t}},Ia.attr=function(t,e){if(arguments.length<2){if("string"==typeof t){var r=this.node();return t=ca.ns.qualify(t),t.local?r.getAttributeNS(t.space,t.local):r.getAttribute(t)}for(e in t)this.each(P(e,t[e]));return this}return this.each(P(t,e))},Ia.classed=function(t,e){if(arguments.length<2){if("string"==typeof t){var r=this.node(),n=(t=D(t)).length,i=-1;if(e=r.classList){for(;++it
”n]“),l=t.charCodeAt(0);return r.parse=function(t,e){var n;return r.parseRows(t,function(t,r){if(n)return n(t,r-1);var i=new Function(”d“,”return {“+t.map(function(t,e){return JSON.stringify(t)+”: d[“e
”]“}).join(”,“)+”}“);n=e?function(t,r){return e(i(t),r)}:i})},r.parseRows=function(t,e){function r(){if(c>=u)return a;if(i)return i=!1,o;var e=c;if(34===t.charCodeAt(e)){for(var r=e;r++c;){var n=t.charCodeAt(c++),s=1;if(10===n)i=!0;else if(13===n)i=!0,10===t.charCodeAt©&&(++c,++s);else if(n!==l)continue;return t.slice(e,c-s)}return t.slice(e)}for(var n,i,o={},a={},s=[],u=t.length,c=0,h=0;(n=r())!==a;){for(var f=[];n!==o&&n!==a;)f.push(n),n=r();e&&null==(f=e(f,h++))||s.push(f)}return s},r.format=function(e){if(Array.isArray(e[0]))return r.formatRows(e);var n=new b,i=[];return e.forEach(function(t){for(var e in t)n.has(e)||i.push(n.add(e))}),[i.map(a).join(t)].concat(e.map(function(e){return i.map(function(t){return a(e[t])}).join(t)})).join(”n“)},r.formatRows=function(t){return t.map(o).join(”n“)},r},ca.csv=ca.dsv(”,“,”text/csv“),ca.tsv=ca.dsv(” “,”text/tab-separated-values“);var ls,us,cs,hs,fs=this[w(this,”requestAnimationFrame“)]||function(t){setTimeout(t,17)};ca.timer=function(){Ct.apply(this,arguments)},ca.timer.flush=function(){Dt(),Ot()},ca.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)};var ds=[”y“,”z“,”a“,”f“,”p“,”n“,”xb5“,”m“,”“,”k“,”M“,”G“,”T“,”P“,”E“,”Z“,”Y“].map(jt);ca.formatPrefix=function(t,e){var r=0;return(t=+t)&&(0>t&&(t*=-1),e&&(t=ca.round(t,Ft(t,e))),r=1+Math.floor(1e-12+Math.log(t)/Math.LN10),r=Math.max(-24,Math.min(24,3*Math.floor((r-1)/3)))),ds[8+r/3]};var ps=/(?:([^{])?([<>=^]))?([+- ])?([$#])?(0)?(d+)?(,)?(.-?d+)?([a-z%])?/i,vs=ca.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=ca.round(t,Ft(t,e))).toFixed(Math.max(0,Math.min(20,Ft(t*(1+1e-15),e))))}}),ms=ca.time={},gs=Date;Ut.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){ys.setUTCDate.apply(this._,arguments)},setDay:function(){ys.setUTCDay.apply(this._,arguments)},setFullYear:function(){ys.setUTCFullYear.apply(this._,arguments)},setHours:function(){ys.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){ys.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){ys.setUTCMinutes.apply(this._,arguments)},setMonth:function(){ys.setUTCMonth.apply(this._,arguments)},setSeconds:function(){ys.setUTCSeconds.apply(this._,arguments)},setTime:function(){ys.setTime.apply(this._,arguments)}};var ys=Date.prototype;ms.year=Vt(function(t){return t=ms.day(t),t.setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),ms.years=ms.year.range,ms.years.utc=ms.year.utc.range,ms.day=Vt(function(t){var e=new gs(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e},function(t,e){t.setDate(t.getDate()+e)},function(t){return t.getDate()-1}),ms.days=ms.day.range,ms.days.utc=ms.day.utc.range,ms.dayOfYear=function(t){var e=ms.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},[”sunday“,”monday“,”tuesday“,”wednesday“,”thursday“,”friday“,”saturday“].forEach(function(t,e){e=7-e;var r=ms[t]=Vt(function(t){return(t=ms.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t},function(t,e){t.setDate(t.getDate()+7*Math.floor(e))},function(t){var r=ms.year(t).getDay();return Math.floor((ms.dayOfYear(t)+(r+e)%7)/7)-(r!==e)});ms[t+”s“]=r.range,ms[t+”s“].utc=r.utc.range,ms[t+”OfYear“]=function(t){var r=ms.year(t).getDay();return Math.floor((ms.dayOfYear(t)+(r+e)%7)/7)}}),ms.week=ms.sunday,ms.weeks=ms.sunday.range,ms.weeks.utc=ms.sunday.utc.range,ms.weekOfYear=ms.sundayOfYear;var bs={”-“:”“,_:” “,0:”0“},xs=/^s*d+/,_s=/^%/;ca.locale=function(t){return{numberFormat:Nt(t),timeFormat:Gt(t)}};var ws=ca.locale({decimal:”.“,thousands:”,“,grouping:[3],currency:[”$“,”“],dateTime:”%a %b %e %X %Y“,date:”%m/%d/%Y“,time:”%H:%M:%S“,periods:[”AM“,”PM“],days:[”Sunday“,”Monday“,”Tuesday“,”Wednesday“,”Thursday“,”Friday“,”Saturday“],shortDays:[”Sun“,”Mon“,”Tue“,”Wed“,”Thu“,”Fri“,”Sat“],months:[”January“,”February“,”March“,”April“,”May“,”June“,”July“,”August“,”September“,”October“,”November“,”December“],shortMonths:[”Jan“,”Feb“,”Mar“,”Apr“,”May“,”Jun“,”Jul“,”Aug“,”Sep“,”Oct“,”Nov“,”Dec“]});ca.format=ws.numberFormat,ca.geo={},he.prototype={s:0,t:0,add:function(t){fe(t,this.t,Ms),fe(Ms.s,this.s,this),this.s?this.t+=Ms.t:this.s=Ms.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var Ms=new he;ca.geo.stream=function(t,e){t&&ks.hasOwnProperty(t.type)?ks[t.type](t,e):de(t,e)};var ks={Feature:function(t,e){de(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,n=-1,i=r.length;++nt?4*Ua+t:t,Ss.lineStart=Ss.lineEnd=Ss.point=M}};ca.geo.bounds=function(){function t(t,e){b.push(x=[c=t,f=t]),h>e&&(h=e),e>d&&(d=e)}function e(e,r){var n=ge([e*Ha,r*Ha]);if(g){var i=be(g,n),o=[i[1],-i[0],0],a=be(o,i);we(a),a=Me(a);var l=e-p,u=l>0?1:-1,v=a[0]*Xa*u,m=wa(l)>180;if(m^(v>u*p&&u*e>v)){var y=a[1]*Xa;y>d&&(d=y)}else if(v=(v+360)%360-180,m^(v>u*p&&u*e>v)){var y=-a[1]*Xa;h>y&&(h=y)}else h>r&&(h=r),r>d&&(d=r);m?p>e?s(c,e)>s(c,f)&&(f=e):s(e,f)>s(c,f)&&(c=e):f>=c?(c>e&&(c=e),e>f&&(f=e)):e>p?s(c,e)>s(c,f)&&(f=e):s(e,f)>s(c,f)&&(c=e)}else t(e,r);g=n,p=e}function r(){_.point=e}function n(){x[0]=c,x[1]=f,_.point=t,g=null}function i(t,r){if(g){var n=t-p;y+=wa(n)>180?n+(n>0?360:-360):n}else v=t,m=r;Ss.point(t,r),e(t,r)}function o(){Ss.lineStart()}function a(){i(v,m),Ss.lineEnd(),wa(y)>Na&&(c=-(f=180)),x[0]=c,x[1]=f,g=null}function s(t,e){return(e-=t)<0?e+360:e}function l(t,e){return t[0]-e[0]}function u(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:tthis.translate
”)rotate(“this.rotate
”)skewX(“this.skew
”)scale(“this.scale
”)“};var bl={a:1,b:0,c:0,d:1,e:0,f:0};ca.interpolateTransform=Zn,ca.layout={},ca.layout.bundle=function(){return function(t){for(var e=[],r=-1,n=t.length;++rr&&(o=r),r>i&&(i=r));return n*=n,e*=e,n?Math.max(e*i*p/n,n/(e*o*p)):1/0}function i(t,e,r,n){var i,o=-1,a=t.length,s=r.x,u=r.y,c=e?l(t.area/e):0;if(e==r.dx){for((n||c>r.dy)&&(c=r.dy);++or.dx)&&(c=r.dx);++or&&(e=1),1>r&&(t=0),function(){var r,n,i;do r=2*Math.random()-1,n=2*Math.random()-1,i=r*r+n*n;while(!i||i>1);return t+e*r*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=ca.random.normal.apply(ca,arguments);return function(){return Math.exp(t())}},bates:function(t){var e=ca.random.irwinHall(t);return function(){return e()/t}},irwinHall:function(t){return function(){for(var e=0,r=0;t>r;r++)e+=Math.random();return e}}},ca.scale={};var Tl={floor:x,ceil:x};ca.scale.linear=function(){return Ji([0,1],[0,1],_n,!1)};var El={s:1,g:1,p:1,r:1,e:1};ca.scale.log=function(){return oo(ca.scale.linear().domain([0,1]),10,!0,[1,10])};var Sl=ca.format(”.0e“),Ll={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};ca.scale.pow=function(){return ao(ca.scale.linear(),1,[0,1])},ca.scale.sqrt=function(){return ca.scale.pow().exponent(.5)},ca.scale.ordinal=function(){return lo([],{t:”range“,a:[[]]})},ca.scale.category10=function(){return ca.scale.ordinal().range(zl)},ca.scale.category20=function(){return ca.scale.ordinal().range(Il)},ca.scale.category20b=function(){return ca.scale.ordinal().range(Pl)},ca.scale.category20c=function(){return ca.scale.ordinal().range(Cl)};var zl=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(_t),Il=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(_t),Pl=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(_t),Cl=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(_t);ca.scale.quantile=function(){return uo([],[])},ca.scale.quantize=function(){return co(0,1,[0,1])},ca.scale.threshold=function(){return ho([.5],[0,1])},ca.scale.identity=function(){return fo([0,1])},ca.svg={},ca.svg.arc=function(){function t(){var t=Math.max(0,+r.apply(this,arguments)),u=Math.max(0,+n.apply(this,arguments)),c=a.apply(this,arguments)-Ga,h=s.apply(this,arguments)-Ga,f=Math.abs(h-c),d=c>h?0:1;if(t>u&&(p=u,u=t,t=p),f>=qa)return e(u,d)+(t?e(t,1-d):”“)+”Z“;var p,v,m,g,y,b,x,_,w,M,k,A,T=0,E=0,S=[];if((g=(+l.apply(this,arguments)||0)/2)&&(m=o===Rl?Math.sqrt(t*t+u*u):+o.apply(this,arguments),d||(E*=-1),u&&(E=nt(m/u*Math.sin(g))),t&&(T=nt(m/t*Math.sin(g)))),u){y=u*Math.cos(c+E),b=u*Math.sin(c+E),x=u*Math.cos(h-E),_=u*Math.sin(h-E);var L=Math.abs(h-c-2*E)<=Ua?0:1;if(E&&xo(y,b,x,_)===d^L){var z=(c+h)/2;y=u*Math.cos(z),b=u*Math.sin(z),x=_=null}}else y=b=0;if(t){w=t*Math.cos(h-T),M=t*Math.sin(h-T),k=t*Math.cos(c+T),A=t*Math.sin(c+T);var I=Math.abs(c-h+2*T)<=Ua?0:1;if(T&&xo(w,M,k,A)===1-d^I){var P=(c+h)/2;w=t*Math.cos(P),M=t*Math.sin(P),k=A=null}}else w=M=0;if(f>Na&&(p=Math.min(Math.abs(u-t)/2,+i.apply(this,arguments)))>.001){v=u>t^d?0:1;var C=p,R=p;if(Ua>f){var D=null==k?[w,M]:null==x?[y,b]:Dr([y,b],[k,A],[x,_],[w,M]),O=y-D[0],F=b-D[1],j=x-D[0],N=_-D[1],B=1/Math.sin(Math.acos((O*j+F*N)/(Math.sqrt(O*O+F*F)*Math.sqrt(j*j+N*N)))/2),U=Math.sqrt(D[0]*D[0]+D[1]*D[1]);R=Math.min(p,(t-U)/(B-1)),C=Math.min(p,(u-U)/(B+1))}if(null!=x){var V=_o(null==k?[w,M]:[k,A],[y,b],u,C,d),q=_o([x,_],[w,M],u,C,d);p===C?S.push(”M“,V[0],”A“,C,”,“,C,” 0 0,“,v,” “,V[1],”A“,u,”,“,u,” 0 “,1-d^xo(V[1][0],V[1][1],q[1][0],q[1][1]),”,“,d,” “,q[1],”A“,C,”,“,C,” 0 0,“,v,” “,q[0]):S.push(”M“,V[0],”A“,C,”,“,C,” 0 1,“,v,” “,q[0])}else S.push(”M“,y,”,“,b);if(null!=k){var G=_o([y,b],[k,A],t,-R,d),H=_o([w,M],null==x?[y,b]:[x,_],t,-R,d);p===R?S.push(”L“,H[0],”A“,R,”,“,R,” 0 0,“,v,” “,H[1],”A“,t,”,“,t,” 0 “,d^xo(H[1][0],H[1][1],G[1][0],G[1][1]),”,“,1-d,” “,G[1],”A“,R,”,“,R,” 0 0,“,v,” “,G[0]):S.push(”L“,H[0],”A“,R,”,“,R,” 0 0,“,v,” “,G[0])}else S.push(”L“,w,”,“,M)}else S.push(”M“,y,”,“,b),null!=x&&S.push(”A“,u,”,“,u,” 0 “,L,”,“,d,” “,x,”,“,_),S.push(”L“,w,”,“,M),null!=k&&S.push(”A“,t,”,“,t,” 0 “,I,”,“,1-d,” “,k,”,“,A);return S.push(”Z“),S.join(”“)}function e(t,e){return”M0,“t
”A“t
”,“t
” 0 1,“e
” 0,“-t
”A“t
”,“t
” 0 1,“e
” 0,“+t}var r=vo,n=mo,i=po,o=Rl,a=go,s=yo,l=bo;return t.innerRadius=function(e){return arguments.length?(r=St(e),t):r},t.outerRadius=function(e){return arguments.length?(n=St(e),t):n},t.cornerRadius=function(e){return arguments.length?(i=St(e),t):i},t.padRadius=function(e){return arguments.length?(o=e==Rl?Rl:St(e),t):o},t.startAngle=function(e){return arguments.length?(a=St(e),t):a},t.endAngle=function(e){return arguments.length?(s=St(e),t):s},t.padAngle=function(e){return arguments.length?(l=St(e),t):l},t.centroid=function(){var t=(+r.apply(this,arguments)+ +n.apply(this,arguments))/2,e=(+a.apply(this,arguments)+ +s.apply(this,arguments))/2-Ga;return[Math.cos(e)*t,Math.sin(e)*t]},t};var Rl=”auto“;ca.svg.line=function(){return wo(x)};var Dl=ca.map({linear:Mo,”linear-closed“:ko,step:Ao,”step-before“:To,”step-after“:Eo,basis:Co,”basis-open“:Ro,”basis-closed“:Do,bundle:Oo,cardinal:zo,”cardinal-open“:So,”cardinal-closed“:Lo,monotone:Vo});Dl.forEach(function(t,e){e.key=t,e.closed=/-closed$/.test(t)});var Ol=[0,2/3,1/3,0],Fl=[0,1/3,2/3,0],jl=[0,1/6,2/3,1/6];ca.svg.line.radial=function(){var t=wo(qo);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},To.reverse=Eo,Eo.reverse=To,ca.svg.area=function(){return Go(x)},ca.svg.area.radial=function(){var t=Go(qo);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},ca.svg.chord=function(){function t(t,s){var l=e(this,o,t,s),u=e(this,a,t,s);return”M“+l.p0+n(l.r,l.p1,l.a1-l.a0)+(r(l,u)?i(l.r,l.p1,l.r,l.p0):i(l.r,l.p1,u.r,u.p0)+n(u.r,u.p1,u.a1-u.a0)+i(u.r,u.p1,l.r,l.p0))+”Z“}function e(t,e,r,n){var i=e.call(t,r,n),o=s.call(t,i,n),a=l.call(t,i,n)-Ga,c=u.call(t,i,n)-Ga;return{r:o,a0:a,a1:c,p0:[o*Math.cos(a),o*Math.sin(a)],p1:[o*Math.cos©,o*Math.sin©]}}function r(t,e){return t.a0==e.a0&&t.a1==e.a1}function n(t,e,r){return”A“t
”,“t
” 0 “+ +(r>Ua)+”,1 “+e}function i(t,e,r,n){return”Q 0,0 “+n}var o=xr,a=_r,s=Ho,l=go,u=yo;return t.radius=function(e){return arguments.length?(s=St(e),t):s},t.source=function(e){return arguments.length?(o=St(e),t):o},t.target=function(e){return arguments.length?(a=St(e),t):a},t.startAngle=function(e){return arguments.length?(l=St(e),t):l},t.endAngle=function(e){return arguments.length?(u=St(e),t):u},t},ca.svg.diagonal=function(){function t(t,i){var o=e.call(this,t,i),a=r.call(this,t,i),s=(o.y+a.y)/2,l=[o,{x:o.x,y:s},{x:a.x,y:s},a];return l=l.map(n),”M“l[0]
”C“l[1]
” “l[2]
” “+l[3]}var e=xr,r=_r,n=Xo;return t.source=function®{return arguments.length?(e=St®,t):e},t.target=function(e){return arguments.length?(r=St(e),t):r},t.projection=function(e){return arguments.length?(n=e,t):n},t},ca.svg.diagonal.radial=function(){var t=ca.svg.diagonal(),e=Xo,r=t.projection;return t.projection=function(t){return arguments.length?r(Yo(e=t)):e},t},ca.svg.symbol=function(){function t(t,n){return(Nl.get(e.call(this,t,n))||Ko)(r.call(this,t,n))}var e=Zo,r=Wo;return t.type=function®{return arguments.length?(e=St®,t):e},t.size=function(e){return arguments.length?(r=St(e),t):r},t};var Nl=ca.map({circle:Ko,cross:function(t){var e=Math.sqrt(t/5)/2;return”M“+-3*e+”,“-e
”H“-e
”V“+-3*e+”H“e
”V“-e
”H“+3*e+”V“e
”H“e
”V“+3*e+”H“-e
”V“e
”H“+-3*e+”Z“},diamond:function(t){var e=Math.sqrt(t/(2*Ul)),r=e*Ul;return”M0,“-e
”L“r
”,0 0,“e
” “-r
”,0Z“},square:function(t){var e=Math.sqrt(t)/2;return”M“-e
”,“-e
”L“e
”,“-e
” “e
”,“e
” “-e
”,“e
”Z“},”triangle-down“:function(t){var e=Math.sqrt(t/Bl),r=e*Bl/2;return”M0,“r
”L“e
”,“-r
” “-e
”,“-r
”Z“},”triangle-up“:function(t){var e=Math.sqrt(t/Bl),r=e*Bl/2;return”M0,“-r
”L“e
”,“r
” “-e
”,“r
”Z“}});ca.svg.symbolTypes=Nl.keys();var Bl=Math.sqrt(3),Ul=Math.tan(30*Ha);Ia.transition=function(t){for(var e,r,n=Vl||++Xl,i=ea(t),o=[],a=ql||{time:Date.now(),ease:Sn,delay:0,duration:250},s=-1,l=this.length;++sb[0]
”,“+P*o+”V0H“b[1]
”V“+P*o)):(t=ia,M=”y“,A=”x“,k=”y2“,T=”x2“,L.attr(”dy“,”.32em“).style(”text-anchor“,0>P?”end“:”start“),w.attr(”d“,”M“+P*o+”,“b[0]
”H0V“b[1]
”H“+P*o)),E.attr(T,P*i),z.attr(A,P*y),S.attr(k,0).attr(T,P*i),I.attr(M,0).attr(A,P*y),h.rangeBand){var C=h,R=C.rangeBand()/2;c=h=function(t){return C(t)+R}}else c.rangeBand?c=h:m.call(t,h,c);v.call(t,c,h),g.call(t,h,h)})}var e,r=ca.scale.linear(),n=Yl,i=6,o=6,a=3,s=[10],l=null;return t.scale=function(e){return arguments.length?(r=e,t):r},t.orient=function(e){return arguments.length?(n=e in Wl?e+”“:Yl,t):n},t.ticks=function(){return arguments.length?(s=fa(arguments),t):s},t.tickValues=function(e){return arguments.length?(l=e,t):l},t.tickFormat=function®{return arguments.length?(e=r,t):e},t.tickSize=function(e){var r=arguments.length;return r?(i=+e,o=+arguments[r-1],t):i},t.innerTickSize=function(e){return arguments.length?(i=+e,t):i},t.outerTickSize=function(e){return arguments.length?(o=+e,t):o},t.tickPadding=function(e){return arguments.length?(a=+e,t):a},t.tickSubdivide=function(){return arguments.length&&t},t};var Yl=”bottom“,Wl={top:1,right:1,bottom:1,left:1};ca.svg.brush=function(){function t(n){n.each(function(){var n=ca.select(this).style(”pointer-events“,”all“).style(”-webkit-tap-highlight-color“,”rgba(0,0,0,0)“).on(”mousedown.brush“,o).on(”touchstart.brush“,o),a=n.selectAll(”.background“).data([0]);a.enter().append(”rect“).attr(”class“,”background“).style(”visibility“,”hidden“).style(”cursor“,”crosshair“),n.selectAll(”.extent“).data([0]).enter().append(”rect“).attr(”class“,”extent“).style(”cursor“,”move“);var s=n.selectAll(”.resize“).data(v,x);s.exit().remove(),s.enter().append(”g“).attr(”class“,function(t){return”resize “+t}).style(”cursor“,function(t){return Zl[t]}).append(”rect“).attr(”x“,function(t){return/[ew]$/.test(t)?-3:null}).attr(”y“,function(t){return/^[ns]/.test(t)?-3:null}).attr(”width“,6).attr(”height“,6).style(”visibility“,”hidden“),s.style(”display“,t.empty()?”none“:null);var l,h=ca.transition(n),f=ca.transition(a);u&&(l=Xi(u),f.attr(”x“,l[0]).attr(”width“,l[1]-l[0]),r(h)),c&&(l=Xi©,f.attr(”y“,l[0]).attr(”height“,l[1]-l[0]),i(h)),e(h)})}function e(t){t.selectAll(”.resize“).attr(”transform“,function(t){return”translate(“h[
/e$/.test(t)]+”,“f[
/^s/.test(t)]+”)“})}function r(t){t.select(”.extent“).attr(”x“,h[0]),t.selectAll(”.extent,.n>rect,.s>rect“).attr(”width“,h[1]-h[0])}function i(t){t.select(”.extent“).attr(”y“,f[0]),t.selectAll(”.extent,.e>rect,.w>rect“).attr(”height“,f[1]-f[0])}function o(){function o(){32==ca.event.keyCode&&(L||(b=null,I[0]-=h[1],I[1]-=f[1],L=2),T())}function v(){32==ca.event.keyCode&&2==L&&(I[0]+=h[1],I[1]+=f[1],L=0,T())}function m(){var t=ca.mouse(_),n=!1;x&&(t[0]+=x[0],t[1]+=x[1]),L||(ca.event.altKey?(b||(b=[(h[0]+h[1])/2,(f[0]+f[1])/2]),I[0]=h[+(t[0]c?(i=n,n=c):i=c),v[0]!=n||v[1]!=i?(r?s=null:a=null,v[0]=n,v[1]=i,!0):void 0}function y(){m(),k.style(”pointer-events“,”all“).selectAll(”.resize“).style(”display“,t.empty()?”none“:null),ca.select(”body“).style(”cursor“,null),P.on(”mousemove.brush“,null).on(”mouseup.brush“,null).on(”touchmove.brush“,null).on(”touchend.brush“,null).on(”keydown.brush“,null).on(”keyup.brush“,null),z(),M({type:”brushend“})}var b,x,_=this,w=ca.select(ca.event.target),M=l.of(_,arguments),k=ca.select(_),A=w.datum(),E=!/^(n|s)$/.test(A)&&u,S=!/^(e|w)$/.test(A)&&c,L=w.classed(”extent“),z=J(_),I=ca.mouse(_),P=ca.select(n(_)).on(”keydown.brush“,o).on(”keyup.brush“,v);if(ca.event.changedTouches?P.on(”touchmove.brush“,m).on(”touchend.brush“,y):P.on(”mousemove.brush“,m).on(”mouseup.brush“,y),k.interrupt().selectAll(”*“).interrupt(),L)I[0]=h[0]-I[0],I[1]=f[0]-I[1];else if(A){var C=+/w$/.test(A),R=+/^n/.test(A);x=[h[1-C]-I[0],f[1-R]-I[1]],I[0]=h[C],I[1]=f[R]}else ca.event.altKey&&(b=I.slice());k.style(”pointer-events“,”none“).selectAll(”.resize“).style(”display“,null),ca.select(”body“).style(”cursor“,w.style(”cursor“)),M({type:”brushstart“}),m()}var a,s,l=S(t,”brushstart“,”brush“,”brushend“),u=null,c=null,h=[0,0],f=[0,0],d=!0,p=!0,v=Kl[0];return t.event=function(t){t.each(function(){var t=l.of(this,arguments),e={x:h,y:f,i:a,j:s},r=this.__chart__||e;this.__chart__=e,Vl?ca.select(this).transition().each(”start.brush“,function(){a=r.i,s=r.j,h=r.x,f=r.y,t({type:”brushstart“})}).tween(”brush:brush“,function(){var r=wn(h,e.x),n=wn(f,e.y);return a=s=null,function(i){h=e.x=r(i),f=e.y=n(i),t({type:”brush“,mode:”resize“})}}).each(”end.brush“,function(){a=e.i,s=e.j,t({type:”brush“,mode:”resize“}),t({type:”brushend“})}):(t({type:”brushstart“}),t({type:”brush“,mode:”resize“}),t({type:”brushend“}))})},t.x=function(e){return arguments.length?(u=e,v=Kl[!u<<1|!c],t):u},t.y=function(e){return arguments.length?(c=e,v=Kl[!u<<1|!c],t):c},t.clamp=function(e){return arguments.length?(u&&c?(d=!!e[0],p=!!e[1]):u?d=!!e:c&&(p=!!e),t):u&&c?[d,p]:u?d:c?p:null},t.extent=function(e){var r,n,i,o,l;return arguments.length?(u&&(r=e[0],n=e[1],c&&(r=r[0],n=n[0]),a=[r,n],u.invert&&(r=u(r),n=u(n)),r>n&&(l=r,r=n,n=l),r==h[0]&&n==h[1]||(h=[r,n])),c&&(i=e[0],o=e[1],u&&(i=i[1],o=o[1]),s=[i,o],c.invert&&(i=c(i),o=c(o)),i>o&&(l=i,i=o,o=l),i==f[0]&&o==f[1]||(f=[i,o])),t):(u&&(a?(r=a[0],n=a[1]):(r=h[0],n=h[1],u.invert&&(r=u.invert®,n=u.invert(n)),r>n&&(l=r,r=n,n=l))),c&&(s?(i=s[0],o=s[1]):(i=f[0],o=f[1],c.invert&&(i=c.invert(i),o=c.invert(o)),i>o&&(l=i,i=o,o=l))),u&&c?[[r,i],[n,o]]:u?[r,n]:c&&[i,o])},t.clear=function(){return t.empty()||(h=[0,0],f=[0,0],a=s=null),t},t.empty=function(){return!!u&&h[0]==h[1]||!!c&&f[0]==f[1]},ca.rebind(t,l,”on“)};var Zl={n:”ns-resize“,e:”ew-resize“,s:”ns-resize“,w:”ew-resize“,nw:”nwse-resize“,ne:”nesw-resize“,se:”nwse-resize“,sw:”nesw-resize“},Kl=[[”n“,”e“,”s“,”w“,”nw“,”ne“,”se“,”sw“],[”e“,”w“],[”n“,”s“],[]],Jl=ms.format=ws.timeFormat,$l=Jl.utc,Ql=$l(”%Y-%m-%dT%H:%M:%S.%LZ“);Jl.iso=Date.prototype.toISOString&&+new Date(”2000-01-01T00:00:00.000Z“)?oa:Ql,oa.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},oa.toString=Ql.toString,ms.second=Vt(function(t){return new gs(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))},function(t){return t.getSeconds()}),ms.seconds=ms.second.range,ms.seconds.utc=ms.second.utc.range,ms.minute=Vt(function(t){return new gs(6e4*Math.floor(t/6e4))},function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))},function(t){return t.getMinutes()}),ms.minutes=ms.minute.range,ms.minutes.utc=ms.minute.utc.range,ms.hour=Vt(function(t){var e=t.getTimezoneOffset()/60;return new gs(36e5*(Math.floor(t/36e5-e)+e))},function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))},function(t){return t.getHours()}),ms.hours=ms.hour.range,ms.hours.utc=ms.hour.utc.range,ms.month=Vt(function(t){return t=ms.day(t),t.setDate(1),t},function(t,e){t.setMonth(t.getMonth()+e)},function(t){return t.getMonth()}),ms.months=ms.month.range,ms.months.utc=ms.month.utc.range;var tu=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],eu=[[ms.second,1],[ms.second,5],[ms.second,15],[ms.second,30],[ms.minute,1],[ms.minute,5],[ms.minute,15],[ms.minute,30],[ms.hour,1],[ms.hour,3],[ms.hour,6],[ms.hour,12],[ms.day,1],[ms.day,2],[ms.week,1],[ms.month,1],[ms.month,3],[ms.year,1]],ru=Jl.multi([[”.%L“,function(t){return t.getMilliseconds()}],[”:%S“,function(t){return t.getSeconds()}],[”%I:%M“,function(t){return t.getMinutes()}],[”%I %p“,function(t){return t.getHours()}],[”%a %d“,function(t){return t.getDay()&&1!=t.getDate()}],[”%b %d“,function(t){return 1!=t.getDate()}],[”%B“,function(t){return t.getMonth()}],[”%Y“,Ie]]),nu={range:function(t,e,r){return ca.range(Math.ceil(t/r)*r,+e,r).map(sa)},floor:x,ceil:x};eu.year=ms.year,ms.scale=function(){return aa(ca.scale.linear(),eu,ru)};var iu=eu.map(function(t){return[t[0].utc,t[1]]}),ou=$l.multi([[”.%L“,function(t){return t.getUTCMilliseconds()}],[”:%S“,function(t){return t.getUTCSeconds()}],[”%I:%M“,function(t){return t.getUTCMinutes()}],[”%I %p“,function(t){return t.getUTCHours()}],[”%a %d“,function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],[”%b %d“,function(t){return 1!=t.getUTCDate()}],[”%B“,function(t){return t.getUTCMonth()}],[”%Y“,Ie]]);iu.year=ms.year.utc,ms.scale.utc=function(){return aa(ca.scale.linear(),iu,ou)},ca.text=Lt(function(t){return t.responseText}),ca.json=function(t,e){return zt(t,”application/json“,la,e)},ca.html=function(t,e){return zt(t,”text/html“,ua,e)},ca.xml=Lt(function(t){return t.responseXML}),”function“==typeof t&&t.amd?(this.d3=ca,t(ca)):”object“==typeof r&&r.exports?r.exports=ca:this.d3=ca}()},{}],120:[function(t,e,r){”use strict“;function n(t,e){this.point=t,this.index=e}function i(t,e){for(var r=t.point,n=e.point,i=r.length,o=0;i>o;++o){var a=n[o]-r[o];if(a)return a}return 0}function o(t,e,r){if(1===t)return r?[[-1,0]]:[];var n=e.map(function(t,e){return[t[0],e]});n.sort(function(t,e){return t[0]-e[0]});for(var i=new Array(t-1),o=1;t>o;++o){var a=n[o-1],s=n[o];i[o-1]=[a[1],s[1]]}return r&&i.push([-1,i[0][1]],[i[t-1][1],-1]),i}function a(t,e){var r=t.length;if(0===r)return[];var a=t[0].length;if(1>a)return[];if(1===a)return o(r,t,e);for(var u=new Array®,c=1,h=0;r>h;++h){for(var f=t[h],d=new Array(a+1),p=0,v=0;a>v;++v){var m=f[v];d[v]=m,p+=m*m; }d[a]=p,u[h]=new n(d,h),c=Math.max(p,c)}l(u,i),r=u.length;for(var g=new Array(r+a+1),y=new Array(r+a+1),b=(a+1)*(a+1)*c,x=new Array(a+1),h=0;a>=h;++h)x[h]=0;x[a]=b,g[0]=x.slice(),y[0]=-1;for(var h=0;a>=h;++h){var d=x.slice();d[h]=1,g[h+1]=d,y[h+1]=-1}for(var h=0;r>h;++h){var _=u[h];g[h+a+1]=_.point,y[h+a+1]=_.index}var w=s(g,!1);if(w=e?w.filter(function(t){for(var e=0,r=0;a>=r;++r){var n=y[t[r]];if(0>n&&++e>=2)return!1;t[r]=n}return!0}):w.filter(function(t){for(var e=0;a>=e;++e){var r=y[t[e]];if(0>r)return!1;t[e]=r}return!0}),1&a)for(var h=0;hs
” draw buffers“)}}var l=t.UNSIGNED_BYTE,u=t.getExtension(”OES_texture_float“);if(n.float&&s>0){if(!u)throw new Error(”gl-fbo: Context does not support floating point textures“);l=t.FLOAT}else n.preferFloat&&s>0&&u&&(l=t.FLOAT);var h=!0;”depth“in n&&(h=!!n.depth);var f=!1;return”stencil“in n&&(f=!!n.stencil),new c(t,e,r,l,s,h,f,i)}var d=t(”gl-texture2d“);e.exports=f;var p,v,m,g,y=null,b=c.prototype;Object.defineProperties(b,{shape:{get:function(){return this._destroyed?[0,0]:this._shapeVector},set:function(t){if(Array.isArray(t)||(t=[0|t,0|t]),2!==t.length)throw new Error(”gl-fbo: Shape vector must be length 2“);var e=0|t[0],r=0|t[1];return h(this,e,r),[e,r]},enumerable:!1},width:{get:function(){return this._destroyed?0:this._shape[0]},set:function(t){return t=0|t,h(this,t,this._shape[1]),t},enumerable:!1},height:{get:function(){return this._destroyed?0:this._shape[1]},set:function(t){return t=0|t,h(this,this._shape[0],t),t},enumerable:!1}}),b.bind=function(){if(!this._destroyed){var t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,this.handle),t.viewport(0,0,this._shape[0],this._shape[1])}},b.dispose=function(){if(!this._destroyed){this._destroyed=!0;var t=this.gl;t.deleteFramebuffer(this.handle),this.handle=null,this.depth&&(this.depth.dispose(),this.depth=null),this._depth_rb&&(t.deleteRenderbuffer(this._depth_rb),this._depth_rb=null);for(var e=0;ei;++i)n[i]=[r[2*i],r[2*i+1]];return n}function u(t,e,r,u){r=r||0,”undefined“==typeof u&&(u=n(t));var c=t.length;if(0===c||1>u)return{cells:[],vertexIds:[],vertexWeights:[]};var f=i(e,+r),p=o(t,u),v=a(p,e,f,+r),m=s(p,0|e.length),g=d(u)(t,p.data,m,f),y=l(p),b=[].slice.call(v.data,0,v.shape[0]);return h.free(f),h.free(p.data),h.free(v.data),h.free(m),{cells:g,vertexIds:y,vertexWeights:b}}e.exports=u;var c=t(”ndarray“),h=t(”typedarray-pool“),f=t(”ndarray-sort“),d=t(”./lib/codegen“)},{”./lib/codegen“:161,ndarray:433,”ndarray-sort“:164,”typedarray-pool“:458}],161:[function(t,e,r){”use strict“;function n(t){function e(t){if(!(t.length<=0)){u.push("R.push(");for(var e=0;el
”]]<<"l
“)”);u.push(“var M=”,c.join(“+”),“;if(M===0||M===”,(1<i;++i)n[i]=0,i===e&&(n[i]+=.5),i===r&&(n[i]+=.5);return n}function i(t,e){if(0===e||e===(1<n;++n)r[n]=i(t,n);return r}e.exports=o;var a=t(“convex-hull”)},{“convex-hull”:108}],163:[function(t,e,r){“use strict”;function n(t){switch(t){case“uint8”:return[l.mallocUint8,l.freeUint8];case“uint16”:return[l.mallocUint16,l.freeUint16];case“uint32”:return[l.mallocUint32,l.freeUint32];case“int8”:return[l.mallocInt8,l.freeInt8];case“int16”:return[l.mallocInt16,l.freeInt16];case“int32”:return[l.mallocInt32,l.freeInt32];case“float32”:return[l.mallocFloat,l.freeFloat];case“float64”:return[l.mallocDouble,l.freeDouble];default:return null}}function i(t){for(var e=[],r=0;t>r;++r)e.push(“s”+r);for(var r=0;t>r;++r)e.push(“n”+r);for(var r=1;t>r;++r)e.push(“d”+r);for(var r=1;t>r;++r)e.push(“e”+r);for(var r=1;t>r;++r)e.push(“f”+r);return e}function o(t,e){function r(t){return“generic”===e?[“data.get(”,t,“)”].join(“”):[“data[”,t,“]”].join(“”)}function o(t,r){return“generic”===e?[“data.set(”,t,“,”,r,“)”].join(“”):[“data[”,t,“]=”,r].join(“”)}var a=[“‘use strict’”],s=[“ndarrayInsertionSort”,t.join(“d”),e].join(“”),l=[“left”,“right”,“data”,“offset”].concat(i(t.length)),u=n(e),c=[“i,j,cptr,ptr=left*s0+offset”];if(t.length>1){for(var h=[],f=1;f