text: /* COPYRIGHT © 2018 DMON STUDIO ALL RIGHTS RESERVED tax-insights 2018-04-04 */
  
  !function o(a,u,c){function s(e,t){if(!u[e]){if(!a[e]){var n="function"==typeof require&&require;if(!t&&n)return n(e,!0);if(f)return f(e,!0);var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}var i=u[e]={exports:{}};a[e][0].call(i.exports,function(t){return s(a[e][1][t]||t)},i,i.exports,o,a,u,c)}return u[e].exports}for(var f="function"==typeof require&&require,t=0;t<c.length;t++)s(c[t]);return s}({1:[function(t,e,n){"use strict";var r=a(t("@antv/g2")),i=a(t("@antv/data-set")),o=a(t("./lib/data"));function a(t){return t&&t.__esModule?t:{default:t}}var u=(new i.default).createView().source(o.default);u.transform({type:"fold",fields:["Taxable","Payable"],key:"kind",value:"RMB"});var c=new r.default.Chart({container:"graph",width:600,height:800});c.source(u,{income:{ticks:[4e3,8e3,12500,38500,58500,83500],alias:"收入"},type:{type:"cat",values:["Tier Delimiter","Trend"]}}),c.tooltip({crosshairs:{type:"line"}}),c.axis("RMB",{label:{formatter:function(t){return"￥"+t}}}),c.axis("income",{title:{position:"end"}}),c.line().position("income*RMB").color("kind"),c.point().position("income*RMB").color("kind").shape("type",function(t){return"Tier Delimiter"===t?"circle":"line"}).size("type",function(t){return"Tier Delimiter"===t?4:1}),c.render()},{"./lib/data":2,"@antv/data-set":3,"@antv/g2":4}],2:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var p=3500,v=[{rate:.03,qcd:0,min:0,max:1500},{rate:.1,qcd:105,min:1501,max:4500},{rate:.2,qcd:555,min:4501,max:9e3},{rate:.25,qcd:1005,min:9001,max:35e3},{rate:.3,qcd:2755,min:35001,max:55e3},{rate:.35,qcd:5505,min:55001,max:8e4},{rate:.45,qcd:13505,min:8e4,max:NaN}],r=[0,1e5],i=[],o=new Set,a=function(t){var e=t-p,n=0;if(e<=0)return n;var r=!0,i=!1,o=void 0;try{for(var a,u=v[Symbol.iterator]();!(r=(a=u.next()).done);r=!0){var c=a.value,s=c.rate,f=c.qcd,l=c.min,h=c.max;if(l<=e&&(isNaN(h)||e<=h)){n=e*s-f;break}}}catch(t){i=!0,o=t}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n},u=!0,c=!1,s=void 0;try{for(var f,l=v[Symbol.iterator]();!(u=(f=l.next()).done);u=!0){var h=f.value.max,g=h+p;i.push({income:g,Taxable:h,Payable:a(g),type:"Tier Delimiter"}),o.add(g)}}catch(t){c=!0,s=t}finally{try{!u&&l.return&&l.return()}finally{if(c)throw s}}for(var d=r[0];d<=r[1];d+=500)o.has(d)||i.push({income:d,Taxable:0<d-p?d-p:0,Payable:a(d),type:"Trend"});n.default=i},{}],3:[function(t,e,n){var r,i;r="undefined"!=typeof self?self:this,i=function(){return function(n){var r={};function i(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}return i.m=n,i.c=r,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=277)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(147);n.d(e,"geoArea",function(){return r.c});var i=n(298);n.d(e,"geoBounds",function(){return i.a});var o=n(299);n.d(e,"geoCentroid",function(){return o.a});var a=n(148);n.d(e,"geoCircle",function(){return a.b});var u=n(86);n.d(e,"geoClipExtent",function(){return u.b});var c=n(318);n.d(e,"geoContains",function(){return c.a});var s=n(166);n.d(e,"geoDistance",function(){return s.a});var f=n(319);n.d(e,"geoGraticule",function(){return f.a}),n.d(e,"geoGraticule10",function(){return f.b});var l=n(320);n.d(e,"geoInterpolate",function(){return l.a});var h=n(167);n.d(e,"geoLength",function(){return h.a});var p=n(321);n.d(e,"geoPath",function(){return p.a});var v=n(169);n.d(e,"geoAlbers",function(){return v.a});var g=n(331);n.d(e,"geoAlbersUsa",function(){return g.a});var d=n(332);n.d(e,"geoAzimuthalEqualArea",function(){return d.b}),n.d(e,"geoAzimuthalEqualAreaRaw",function(){return d.a});var y=n(333);n.d(e,"geoAzimuthalEquidistant",function(){return y.b}),n.d(e,"geoAzimuthalEquidistantRaw",function(){return y.a});var b=n(334);n.d(e,"geoConicConformal",function(){return b.b}),n.d(e,"geoConicConformalRaw",function(){return b.a});var m=n(89);n.d(e,"geoConicEqualArea",function(){return m.b}),n.d(e,"geoConicEqualAreaRaw",function(){return m.a});var x=n(335);n.d(e,"geoConicEquidistant",function(){return x.b}),n.d(e,"geoConicEquidistantRaw",function(){return x.a});var j=n(171);n.d(e,"geoEquirectangular",function(){return j.a}),n.d(e,"geoEquirectangularRaw",function(){return j.b});var _=n(336);n.d(e,"geoGnomonic",function(){return _.a}),n.d(e,"geoGnomonicRaw",function(){return _.b});var O=n(337);n.d(e,"geoIdentity",function(){return O.a});var w=n(17);n.d(e,"geoProjection",function(){return w.a}),n.d(e,"geoProjectionMutator",function(){return w.b});var S=n(92);n.d(e,"geoMercator",function(){return S.a}),n.d(e,"geoMercatorRaw",function(){return S.c});var M=n(338);n.d(e,"geoOrthographic",function(){return M.a}),n.d(e,"geoOrthographicRaw",function(){return M.b});var E=n(339);n.d(e,"geoStereographic",function(){return E.a}),n.d(e,"geoStereographicRaw",function(){return E.b});var C=n(340);n.d(e,"geoTransverseMercator",function(){return C.a}),n.d(e,"geoTransverseMercatorRaw",function(){return C.b});var P=n(61);n.d(e,"geoRotation",function(){return P.a});var A=n(26);n.d(e,"geoStream",function(){return A.a});var T=n(62);n.d(e,"geoTransform",function(){return T.a})},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"f",function(){return i}),n.d(e,"g",function(){return o}),n.d(e,"h",function(){return a}),n.d(e,"m",function(){return u}),n.d(e,"n",function(){return c}),n.d(e,"p",function(){return s}),n.d(e,"q",function(){return f}),n.d(e,"r",function(){return l}),n.d(e,"t",function(){return h}),n.d(e,"w",function(){return p}),n.d(e,"x",function(){return v}),n.d(e,"y",function(){return g}),n.d(e,"F",function(){return d}),n.d(e,"k",function(){return y}),n.d(e,"l",function(){return b}),n.d(e,"s",function(){return m}),n.d(e,"o",function(){return x}),n.d(e,"u",function(){return j}),n.d(e,"C",function(){return _}),n.d(e,"D",function(){return O}),n.d(e,"E",function(){return w}),n.d(e,"H",function(){return S}),n.d(e,"j",function(){return M}),n.d(e,"v",function(){return E}),e.z=function(t){return t?t/Math.sin(t):1},e.e=function(t){return 1<t?x:t<-1?-x:Math.asin(t)},e.b=function(t){return 1<t?0:t<-1?m:Math.acos(t)},e.B=C,e.G=function(t){return((t=u(2*t))-1)/(t+1)},e.A=function(t){return(u(t)-u(-t))/2},e.i=function(t){return(u(t)+u(-t))/2},e.d=function(t){return s(t+C(t*t+1))},e.c=function(t){return s(t+C(t*t-1))};var r=Math.abs,i=Math.atan,o=Math.atan2,a=(Math.ceil,Math.cos),u=Math.exp,c=Math.floor,s=Math.log,f=Math.max,l=Math.min,h=Math.pow,p=Math.round,v=Math.sign||function(t){return 0<t?1:t<0?-1:0},g=Math.sin,d=Math.tan,y=1e-6,b=1e-12,m=Math.PI,x=m/2,j=m/4,_=Math.SQRT1_2,O=C(2),w=C(m),S=2*m,M=180/m,E=m/180;function C(t){return 0<t?Math.sqrt(t):0}},function(t,e,n){var i=n(3),o=n(241),a=n(13),u=n(585),r=n(183),c=n(43),s=n(120),f=function(n){function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{state:{}};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,n.call(this));return i(e,{_onChangeTimer:null,DataSet:r,isDataSet:!0,views:{}},t),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,n),r.prototype._getUniqueViewName=function(){for(var t=u("view_");this.views[t];)t=u("view_");return t},r.prototype.createView=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=this;if(o(t)&&(t=n._getUniqueViewName()),a(t)&&(e=t,t=n._getUniqueViewName()),n.views[t])throw new Error("data view exists: "+t);var r=new c(n,e);return n.views[t]=r},r.prototype.getView=function(t){return this.views[t]},r.prototype.setView=function(t,e){this.views[t]=e},r.prototype.setState=function(t,e){var n=this;n.state[t]=e,n._onChangeTimer&&(clearTimeout(n._onChangeTimer),n._onChangeTimer=null),n._onChangeTimer=setTimeout(function(){n.emit("statechange",t,e)},16)},r}(r);i(f,{CONSTANTS:s,DataSet:f,DataView:c,View:c,connectors:{},transforms:{},registerConnector:function(t,e){f.connectors[t]=e},getConnector:function(t){return f.connectors[t]||f.connectors.default},registerTransform:function(t,e){f.transforms[t]=e},getTransform:function(t){return f.transforms[t]||f.transforms.default}},s),c.DataSet=f,i(f.prototype,{view:f.prototype.createView}),t.exports=f},function(t,e,n){var r=n(57),i=n(37),o=n(286),a=n(20),u=n(60),c=n(9),s=Object.prototype.hasOwnProperty,f=o(function(t,e){if(u(e)||a(e))i(e,c(e),t);else for(var n in e)s.call(e,n)&&r(t,n,e[n])});t.exports=f},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){"use strict";n.d(e,"i",function(){return r}),n.d(e,"j",function(){return i}),n.d(e,"o",function(){return o}),n.d(e,"l",function(){return a}),n.d(e,"q",function(){return u}),n.d(e,"w",function(){return c}),n.d(e,"h",function(){return s}),n.d(e,"r",function(){return f}),n.d(e,"a",function(){return l}),n.d(e,"d",function(){return h}),n.d(e,"e",function(){return p}),n.d(e,"g",function(){return v}),n.d(e,"f",function(){return g}),n.d(e,"k",function(){return d}),n.d(e,"n",function(){return y}),n.d(e,"p",function(){return b}),n.d(e,"t",function(){return m}),n.d(e,"s",function(){return x}),n.d(e,"u",function(){return j}),n.d(e,"v",function(){return _}),e.b=function(t){return 1<t?0:t<-1?o:Math.acos(t)},e.c=function(t){return 1<t?a:t<-1?-a:Math.asin(t)},e.m=function(t){return(t=m(t/2))*t};var r=1e-6,i=1e-12,o=Math.PI,a=o/2,u=o/4,c=2*o,s=180/o,f=o/180,l=Math.abs,h=Math.atan,p=Math.atan2,v=Math.cos,g=Math.ceil,d=Math.exp,y=(Math.floor,Math.log),b=Math.pow,m=Math.sin,x=Math.sign||function(t){return 0<t?1:t<0?-1:0},j=Math.sqrt,_=Math.tan},function(t,e,n){"use strict";n.d(e,"i",function(){return r}),n.d(e,"j",function(){return i}),n.d(e,"o",function(){return o}),n.d(e,"l",function(){return a}),n.d(e,"q",function(){return u}),n.d(e,"w",function(){return c}),n.d(e,"h",function(){return s}),n.d(e,"r",function(){return f}),n.d(e,"a",function(){return l}),n.d(e,"d",function(){return h}),n.d(e,"e",function(){return p}),n.d(e,"g",function(){return v}),n.d(e,"f",function(){return g}),n.d(e,"k",function(){return d}),n.d(e,"n",function(){return y}),n.d(e,"p",function(){return b}),n.d(e,"t",function(){return m}),n.d(e,"s",function(){return x}),n.d(e,"u",function(){return j}),n.d(e,"v",function(){return _}),e.b=function(t){return 1<t?0:t<-1?o:Math.acos(t)},e.c=function(t){return 1<t?a:t<-1?-a:Math.asin(t)},e.m=function(t){return(t=m(t/2))*t};var r=1e-6,i=1e-12,o=Math.PI,a=o/2,u=o/4,c=2*o,s=180/o,f=o/180,l=Math.abs,h=Math.atan,p=Math.atan2,v=Math.cos,g=Math.ceil,d=Math.exp,y=(Math.floor,Math.log),b=Math.pow,m=Math.sin,x=Math.sign||function(t){return 0<t?1:t<0?-1:0},j=Math.sqrt,_=Math.tan},function(t,e,n){var i=n(4),o=n(8),a="Invalid field: it must be a string!",u="Invalid fields: it must be an array!";t.exports={getField:function(t,e){var n=t.field,r=t.fields;if(o(n))return n;if(i(n))return console.warn(a),n[0];if(console.warn(a+" will try to get fields instead."),o(r))return r;if(i(r)&&r.length)return r[0];if(e)return e;throw new TypeError(a)},getFields:function(t,e){var n=t.field,r=t.fields;if(i(r))return r;if(o(r))return console.warn(u),[r];if(console.warn(u+" will try to get field instead."),o(n))return console.warn(u),[n];if(i(n)&&n.length)return console.warn(u),n;if(e)return e;throw new TypeError(u)}}},function(t,e,n){var r=n(19),i=n(4),o=n(16),a="[object String]";t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&r(t)==a}},function(t,e,n){var r=n(144),i=n(296),o=n(20);t.exports=function(t){return o(t)?r(t):i(t)}},function(t,e,n){var r=n(205),i=n(206),o=n(100);t.exports=function(t,e){return null==t?t:r(t,i(e),o)}},function(t,e,n){var r=n(19),i=n(13),o="[object AsyncFunction]",a="[object Function]",u="[object GeneratorFunction]",c="[object Proxy]";t.exports=function(t){if(!i(t))return!1;var e=r(t);return e==a||e==u||e==o||e==c}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(153);n.d(e,"bisect",function(){return r.c}),n.d(e,"bisectRight",function(){return r.b}),n.d(e,"bisectLeft",function(){return r.a});var i=n(34);n.d(e,"ascending",function(){return i.a});var o=n(154);n.d(e,"bisector",function(){return o.a});var a=n(302);n.d(e,"cross",function(){return a.a});var u=n(303);n.d(e,"descending",function(){return u.a});var c=n(156);n.d(e,"deviation",function(){return c.a});var s=n(158);n.d(e,"extent",function(){return s.a});var f=n(304);n.d(e,"histogram",function(){return f.a});var l=n(307);n.d(e,"thresholdFreedmanDiaconis",function(){return l.a});var h=n(308);n.d(e,"thresholdScott",function(){return h.a});var p=n(162);n.d(e,"thresholdSturges",function(){return p.a});var v=n(309);n.d(e,"max",function(){return v.a});var g=n(310);n.d(e,"mean",function(){return g.a});var d=n(311);n.d(e,"median",function(){return d.a});var y=n(312);n.d(e,"merge",function(){return y.a});var b=n(163);n.d(e,"min",function(){return b.a});var m=n(155);n.d(e,"pairs",function(){return m.a});var x=n(313);n.d(e,"permute",function(){return x.a});var j=n(87);n.d(e,"quantile",function(){return j.a});var _=n(160);n.d(e,"range",function(){return _.a});var O=n(314);n.d(e,"scan",function(){return O.a});var w=n(315);n.d(e,"shuffle",function(){return w.a});var S=n(316);n.d(e,"sum",function(){return S.a});var M=n(161);n.d(e,"ticks",function(){return M.a}),n.d(e,"tickIncrement",function(){return M.b}),n.d(e,"tickStep",function(){return M.c});var E=n(164);n.d(e,"transpose",function(){return E.a});var C=n(157);n.d(e,"variance",function(){return C.a});var P=n(317);n.d(e,"zip",function(){return P.a})},function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var e=void 0===t?"undefined":n(t);return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(139),o="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,a=i||o||Function("return this")();t.exports=a},function(t,e,n){var o=n(4),a=n(11),u=n(8),c=n(530),s=n(536);t.exports=function(t,n){var e=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],r=t;e&&e.length&&(r=s(t,e));var i=void 0;return a(n)?i=n:o(n)?i=function(e){return"_"+n.map(function(t){return e[t]}).join("-")}:u(n)&&(i=function(t){return"_"+t[n]}),c(r,i)}},function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){return null!=t&&"object"==(void 0===t?"undefined":n(t))}},function(t,e,n){"use strict";e.a=function(t){return i(function(){return t})()},e.b=i;var A=n(327),T=n(328),k=n(86),I=n(149),L=n(88),R=n(5),D=n(61),r=n(62),B=n(91),F=n(329),N=Object(r.b)({point:function(t,e){this.stream.point(t*R.r,e*R.r)}});function i(t){var n,r,i,e,o,a,u,c,s,f,l=150,h=480,p=250,v=0,g=0,d=0,y=0,b=0,m=null,x=A.a,j=null,_=L.a,O=.5,w=Object(F.a)(E,O);function S(t){return[(t=o(t[0]*R.r,t[1]*R.r))[0]*l+r,i-t[1]*l]}function M(t){return(t=o.invert((t[0]-r)/l,(i-t[1])/l))&&[t[0]*R.h,t[1]*R.h]}function E(t,e){return[(t=n(t,e))[0]*l+r,i-t[1]*l]}function C(){o=Object(I.a)(e=Object(D.b)(d,y,b),n);var t=n(v,g);return r=h-t[0]*l,i=p+t[1]*l,P()}function P(){return s=f=null,S}return S.stream=function(t){return s&&f===t?s:s=N(x(e,w(_(f=t))))},S.clipAngle=function(t){return arguments.length?(x=+t?Object(T.a)(m=t*R.r,6*R.r):(m=null,A.a),P()):m*R.h},S.clipExtent=function(t){return arguments.length?(_=null==t?(j=a=u=c=null,L.a):Object(k.a)(j=+t[0][0],a=+t[0][1],u=+t[1][0],c=+t[1][1]),P()):null==j?null:[[j,a],[u,c]]},S.scale=function(t){return arguments.length?(l=+t,C()):l},S.translate=function(t){return arguments.length?(h=+t[0],p=+t[1],C()):[h,p]},S.center=function(t){return arguments.length?(v=t[0]%360*R.r,g=t[1]%360*R.r,C()):[v*R.h,g*R.h]},S.rotate=function(t){return arguments.length?(d=t[0]%360*R.r,y=t[1]%360*R.r,b=2<t.length?t[2]%360*R.r:0,C()):[d*R.h,y*R.h,b*R.h]},S.precision=function(t){return arguments.length?(w=Object(F.a)(E,O=t*t),P()):Object(R.u)(O)},S.fitExtent=function(t,e){return Object(B.a)(S,t,e)},S.fitSize=function(t,e){return Object(B.b)(S,t,e)},function(){return n=t.apply(this,arguments),S.invert=n.invert&&M,C()}}},function(t,e,n){"use strict";e.a=function(t){return i(function(){return t})()},e.b=i;var A=n(513),T=n(515),k=n(212),I=n(211),L=n(217),R=n(6),D=n(109),r=n(112),B=n(221),F=n(516),N=Object(r.b)({point:function(t,e){this.stream.point(t*R.r,e*R.r)}});function i(t){var n,r,i,e,o,a,u,c,s,f,l=150,h=480,p=250,v=0,g=0,d=0,y=0,b=0,m=null,x=A.a,j=null,_=L.a,O=.5,w=Object(F.a)(E,O);function S(t){return[(t=o(t[0]*R.r,t[1]*R.r))[0]*l+r,i-t[1]*l]}function M(t){return(t=o.invert((t[0]-r)/l,(i-t[1])/l))&&[t[0]*R.h,t[1]*R.h]}function E(t,e){return[(t=n(t,e))[0]*l+r,i-t[1]*l]}function C(){o=Object(I.a)(e=Object(D.b)(d,y,b),n);var t=n(v,g);return r=h-t[0]*l,i=p+t[1]*l,P()}function P(){return s=f=null,S}return S.stream=function(t){return s&&f===t?s:s=N(x(e,w(_(f=t))))},S.clipAngle=function(t){return arguments.length?(x=+t?Object(T.a)(m=t*R.r,6*R.r):(m=null,A.a),P()):m*R.h},S.clipExtent=function(t){return arguments.length?(_=null==t?(j=a=u=c=null,L.a):Object(k.a)(j=+t[0][0],a=+t[0][1],u=+t[1][0],c=+t[1][1]),P()):null==j?null:[[j,a],[u,c]]},S.scale=function(t){return arguments.length?(l=+t,C()):l},S.translate=function(t){return arguments.length?(h=+t[0],p=+t[1],C()):[h,p]},S.center=function(t){return arguments.length?(v=t[0]%360*R.r,g=t[1]%360*R.r,C()):[v*R.h,g*R.h]},S.rotate=function(t){return arguments.length?(d=t[0]%360*R.r,y=t[1]%360*R.r,b=2<t.length?t[2]%360*R.r:0,C()):[d*R.h,y*R.h,b*R.h]},S.precision=function(t){return arguments.length?(w=Object(F.a)(E,O=t*t),P()):Object(R.u)(O)},S.fitExtent=Object(B.a)(S),S.fitSize=Object(B.b)(S),function(){return n=t.apply(this,arguments),S.invert=n.invert&&M,C()}}},function(t,e,n){var r=n(32),i=n(281),o=n(282),a="[object Null]",u="[object Undefined]",c=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?u:a:c&&c in Object(t)?i(t):o(t)}},function(t,e,n){var r=n(11),i=n(81);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},function(t,e,n){"use strict";e.a=function(){}},function(t,e,n){"use strict";e.c=a,e.b=i,n.d(e,"d",function(){return u});var r=n(0),o=n(1);function a(t,e){for(var n,r=t*Object(o.y)(e),i=30;e-=n=(e+Object(o.y)(e)-r)/(1+Object(o.h)(e)),Object(o.a)(n)>o.k&&0<--i;);return e/2}function i(n,r,i){function t(t,e){return[n*t*Object(o.h)(e=a(i,e)),r*Object(o.y)(e)]}return t.invert=function(t,e){return e=Object(o.e)(e/r),[t/(n*Object(o.h)(e)),Object(o.e)((2*e+Object(o.y)(2*e))/i)]},t}var u=i(o.D/o.o,o.D,o.s);e.a=function(){return Object(r.geoProjection)(u).scale(169.529)}},function(t,e,n){var r=t.exports={};r.linearRegression=n(538),r.linearRegressionLine=n(539),r.standardDeviation=n(224),r.rSquared=n(540),r.mode=n(541),r.modeFast=n(542),r.modeSorted=n(228),r.min=n(229),r.max=n(230),r.minSorted=n(543),r.maxSorted=n(544),r.sum=n(226),r.sumSimple=n(545),r.product=n(546),r.quantile=n(117),r.quantileSorted=n(118),r.interquartileRange=r.iqr=n(548),r.medianAbsoluteDeviation=r.mad=n(549),r.chunk=n(550),r.sampleWithReplacement=n(551),r.shuffle=n(232),r.shuffleInPlace=n(233),r.sample=n(552),r.ckmeans=n(553),r.uniqueCountSorted=n(234),r.sumNthPowerDeviations=n(116),r.equalIntervalBreaks=n(554),r.sampleCovariance=n(235),r.sampleCorrelation=n(555),r.sampleVariance=n(119),r.sampleStandardDeviation=n(236),r.sampleSkewness=n(556),r.sampleKurtosis=n(557),r.permutationsHeap=n(558),r.combinations=n(559),r.combinationsReplacement=n(560),r.addToMean=n(561),r.combineMeans=n(237),r.combineVariances=n(562),r.geometricMean=n(563),r.harmonicMean=n(564),r.mean=r.average=n(24),r.median=n(231),r.medianSorted=n(565),r.subtractFromMean=n(566),r.rootMeanSquare=r.rms=n(567),r.variance=n(225),r.tTest=n(568),r.tTestTwoSample=n(569),r.BayesianClassifier=r.bayesian=n(570),r.PerceptronModel=r.perceptron=n(571),r.epsilon=n(73),r.factorial=n(572),r.bernoulliDistribution=n(573),r.binomialDistribution=n(574),r.poissonDistribution=n(575),r.chiSquaredGoodnessOfFit=n(576),r.zScore=n(578),r.cumulativeStdNormalProbability=n(579),r.standardNormalTable=n(238),r.errorFunction=r.erf=n(580),r.inverseErrorFunction=n(239),r.probit=n(581),r.bisect=n(582)},function(t,e,n){var r=n(226);t.exports=function(t){if(0===t.length)throw new Error("mean requires at least one data point");return r(t)/t.length}},function(t,e,n){var r=n(279),i=n(285);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},function(t,e,n){"use strict";function o(t,e){t&&i.hasOwnProperty(t.type)&&i[t.type](t,e)}var r={Feature:function(t,e){o(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)o(n[r].geometry,e)}},i={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){a(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)a(n[r],e,0)},Polygon:function(t,e){u(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)u(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)o(n[r],e)}};function a(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++i<o;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function u(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)a(t[n],e,1);e.polygonEnd()}e.a=function(t,e){t&&r.hasOwnProperty(t.type)?r[t.type](t,e):o(t,e)}},function(t,e,n){"use strict";var v=n(12),u=n(0),g=n(1);function d(t,e){for(var n,r,i,o=-1,a=t.length,u=t[0],c=[];++o<a;){r=((n=t[o])[0]-u[0])/e,i=(n[1]-u[1])/e;for(var s=0;s<e;++s)c.push([u[0]+s*r,u[1]+s*i]);u=n}return c.push(n),c}e.a=function(f,l){var i=function(t){var e,n,r,i,o,a,u,c=[],s=t[0].length;for(u=0;u<s;++u)n=(e=t[0][u])[0][0],r=e[0][1],i=e[1][1],o=e[2][0],a=e[2][1],c.push(d([[n+g.k,r+g.k],[n+g.k,i-g.k],[o-g.k,i-g.k],[o-g.k,a+g.k]],30));for(u=t[1].length-1;0<=u;--u)n=(e=t[1][u])[0][0],r=e[0][1],i=e[1][1],o=e[2][0],a=e[2][1],c.push(d([[o-g.k,a-g.k],[o-g.k,i+g.k],[n+g.k,i+g.k],[n+g.k,r-g.k]],30));return{type:"Polygon",coordinates:[Object(v.merge)(c)]}}(l),h=(l=l.map(function(t){return t.map(function(t){return[[t[0][0]*g.v,t[0][1]*g.v],[t[1][0]*g.v,t[1][1]*g.v],[t[2][0]*g.v,t[2][1]*g.v]]})})).map(function(t){return t.map(function(t){var e,n=f(t[0][0],t[0][1])[0],r=f(t[2][0],t[2][1])[0],i=f(t[1][0],t[0][1])[1],o=f(t[1][0],t[1][1])[1];return o<i&&(e=i,i=o,o=e),[[n,i],[r,o]]})});function p(t,e){for(var n=e<0?-1:1,r=l[+(e<0)],i=0,o=r.length-1;i<o&&t>r[i][2][0];++i);var a=f(t-r[i][1][0],e);return a[0]+=f(r[i][1][0],n*e>n*r[i][0][1]?r[i][0][1]:e)[0],a}f.invert&&(p.invert=function(t,e){for(var n,r,i=h[+(e<0)],o=l[+(e<0)],a=0,u=i.length;a<u;++a){var c=i[a];if(c[0][0]<=t&&t<c[1][0]&&c[0][1]<=e&&e<c[1][1]){var s=f.invert(t-f(o[a][1][0],0)[0],e);return s[0]+=o[a][1][0],n=p(s[0],s[1]),r=[t,e],Object(g.a)(n[0]-r[0])<g.k&&Object(g.a)(n[1]-r[1])<g.k?s:null}}});var o=Object(u.geoProjection)(p),a=o.stream;return o.stream=function(t){var e=o.rotate(),n=a(t),r=(o.rotate([0,0]),a(t));return o.rotate(e),n.sphere=function(){Object(u.geoStream)(i,r)},n},o}},function(t,e,n){"use strict";e.a=function(){}},function(t,e,n){"use strict";function o(t,e){t&&i.hasOwnProperty(t.type)&&i[t.type](t,e)}var r={Feature:function(t,e){o(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)o(n[r].geometry,e)}},i={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){a(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)a(n[r],e,0)},Polygon:function(t,e){u(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)u(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)o(n[r],e)}};function a(t,e,n){var r,i=-1,o=t.length-n;for(e.lineStart();++i<o;)r=t[i],e.point(r[0],r[1],r[2]);e.lineEnd()}function u(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)a(t[n],e,1);e.polygonEnd()}e.a=function(t,e){t&&r.hasOwnProperty(t.type)?r[t.type](t,e):o(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(526);n.d(e,"path",function(){return r.a})},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){var r=n(14).Symbol;t.exports=r},function(t,e,n){"use strict";function r(){this.reset()}e.a=function(){return new r},r.prototype={constructor:r,reset:function(){this.s=this.t=0},add:function(t){o(i,t,this.t),o(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new r;function o(t,e,n){var r=t.s=e+n,i=r-e,o=r-i;t.t=e-o+(n-i)}},function(t,e,n){"use strict";e.a=function(t,e){return t<e?-1:e<t?1:e<=t?0:NaN}},function(t,e,n){"use strict";var i=n(0),o=n(1);e.a=function(t){var e=0,n=Object(i.geoProjectionMutator)(t),r=n(e);return r.parallel=function(t){return arguments.length?n(e=t*o.v):e*o.j},r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(598);n.d(e,"cluster",function(){return r.a});var i=n(122);n.d(e,"hierarchy",function(){return i.c});var o=n(610);n.d(e,"pack",function(){return o.a});var a=n(244);n.d(e,"packSiblings",function(){return a.a});var u=n(245);n.d(e,"packEnclose",function(){return u.a});var c=n(612);n.d(e,"partition",function(){return c.a});var s=n(613);n.d(e,"stratify",function(){return s.a});var f=n(614);n.d(e,"tree",function(){return f.a});var l=n(615);n.d(e,"treemap",function(){return l.a});var h=n(616);n.d(e,"treemapBinary",function(){return h.a});var p=n(52);n.d(e,"treemapDice",function(){return p.a});var v=n(74);n.d(e,"treemapSlice",function(){return v.a});var g=n(617);n.d(e,"treemapSliceDice",function(){return g.a});var d=n(124);n.d(e,"treemapSquarify",function(){return d.a});var y=n(618);n.d(e,"treemapResquarify",function(){return y.a})},function(t,e,n){var s=n(57),f=n(79);t.exports=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var u=e[o],c=r?r(n[u],t[u],u,n,t):void 0;void 0===c&&(c=t[u]),i?f(n,u,c):s(n,u,c)}return n}},function(t,e){t.exports=function(t){return t}},function(t,e,n){"use strict";e.g=function(t){return[Object(i.e)(t[1],t[0]),Object(i.c)(t[2])]},e.a=function(t){var e=t[0],n=t[1],r=Object(i.g)(n);return[r*Object(i.g)(e),r*Object(i.t)(e),Object(i.t)(n)]},e.d=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},e.c=function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]},e.b=function(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]},e.f=function(t,e){return[t[0]*e,t[1]*e,t[2]*e]},e.e=function(t){var e=Object(i.u)(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e};var i=n(5)},function(t,e,n){"use strict";e.a=function(t){return null===t?NaN:+t}},function(t,e,n){"use strict";e.b=function(o){return function(t,e){var n=Object(u.g)(t),r=Object(u.g)(e),i=o(n*r);return[i*r*Object(u.t)(t),i*Object(u.t)(e)]}},e.a=function(a){return function(t,e){var n=Object(u.u)(t*t+e*e),r=a(n),i=Object(u.t)(r),o=Object(u.g)(r);return[Object(u.e)(t*i,n*o),Object(u.c)(n&&e*i/n)]}};var u=n(5)},function(t,e,n){"use strict";e.b=o;var r=n(0),i=n(1);function o(t,e){return[t*Object(i.h)(e),e]}o.invert=function(t,e){return[t/Object(i.h)(e),e]},e.a=function(){return Object(r.geoProjection)(o).scale(152.63)}},function(t,e,n){var r=n(183),u=n(3),i=n(421),c=n(70),s=n(469),f=n(10),l=n(4),h=n(493),p=n(13),v=n(8),g=n(9),d=n(48),o=function(o){function a(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,o.call(this)),r=n;if(e=e||{},(t=t||{}).isDataSet||(e=t,t=null),u(r,{dataSet:t,loose:!t,dataType:"table",isView:!0,isDataView:!0,origin:[],rows:[],transforms:[],watchingStates:null},e),!r.loose){var i=r.watchingStates;t.on("statechange",function(t){l(i)?-1<i.indexOf(t)&&r._reExecute():r._reExecute()})}return n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(a,o),a.prototype._parseStateExpression=function(t){var e=this.dataSet,n=/^\$state\.(\w+)/.exec(t);return n?e.state[n[1]]:t},a.prototype._preparseOptions=function(t){var n=this,r=i(t);return n.loose||f(r,function(t,e){v(t)&&/^\$state\./.test(t)&&(r[e]=n._parseStateExpression(t))}),r},a.prototype._prepareSource=function(t,e){var n=this,r=a.DataSet;if(n._source={source:t,options:e},e)e=n._preparseOptions(e),n.origin=r.getConnector(e.type)(t,e,n);else if(t instanceof a||v(t))n.origin=r.getConnector("default")(t,n.dataSet);else if(l(t))n.origin=t;else{if(!p(t)||!t.type)throw new TypeError("Invalid source");e=n._preparseOptions(t),n.origin=r.getConnector(e.type)(e,n)}return n.rows=c(n.origin),n},a.prototype.source=function(t,e){return this._prepareSource(t,e),this._reExecuteTransforms(),this.trigger("change"),this},a.prototype.transform=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this.transforms.push(t),this._executeTransform(t),this},a.prototype._executeTransform=function(t){t=this._preparseOptions(t),a.DataSet.getTransform(t.type)(this,t)},a.prototype._reExecuteTransforms=function(){var e=this;e.transforms.forEach(function(t){e._executeTransform(t)})},a.prototype.addRow=function(t){this.rows.push(t)},a.prototype.removeRow=function(t){this.rows.splice(t,1)},a.prototype.updateRow=function(t,e){u(this.rows[t],e)},a.prototype.findRows=function(e){return this.rows.filter(function(t){return h(t,e)})},a.prototype.findRow=function(t){return s(this.rows,t)},a.prototype.getColumnNames=function(){var t=this.rows[0];return t?g(t):[]},a.prototype.getColumnName=function(t){return this.getColumnNames()[t]},a.prototype.getColumnIndex=function(t){return this.getColumnNames().indexOf(t)},a.prototype.getColumn=function(e){return this.rows.map(function(t){return t[e]})},a.prototype.getColumnData=function(t){return this.getColumn(t)},a.prototype.getSubset=function(t,e,n){for(var r=[],i=t;i<=e;i++)r.push(d(this.rows[i],n));return r},a.prototype.toString=function(t){return t?JSON.stringify(this.rows,null,2):JSON.stringify(this.rows)},a.prototype._reExecute=function(){var t=this._source,e=t.source,n=t.options;this._prepareSource(e,n),this._reExecuteTransforms(),this.trigger("change")},a}(r);t.exports=o},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(471),o=n(478),a=n(38),u=n(4),c=n(485);t.exports=function(t){return"function"==typeof t?t:null==t?a:"object"==(void 0===t?"undefined":r(t))?u(t)?o(t[0],t[1]):i(t):c(t)}},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(19),o=n(16),a="[object Symbol]";t.exports=function(t){return"symbol"==(void 0===t?"undefined":r(t))||o(t)&&i(t)==a}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},function(t,e,n){var r=n(45),i=1/0;t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}},function(t,e,n){var r=n(494),i=n(497)(function(t,e){return null==t?{}:r(t,e)});t.exports=i},function(t,e,n){"use strict";function r(){this.reset()}e.a=function(){return new r},r.prototype={constructor:r,reset:function(){this.s=this.t=0},add:function(t){o(i,t,this.t),o(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new r;function o(t,e,n){var r=t.s=e+n,i=r-e,o=r-i;t.t=e-o+(n-i)}},function(t,e,n){"use strict";e.g=function(t){return[Object(i.e)(t[1],t[0]),Object(i.c)(t[2])]},e.a=function(t){var e=t[0],n=t[1],r=Object(i.g)(n);return[r*Object(i.g)(e),r*Object(i.t)(e),Object(i.t)(n)]},e.d=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},e.c=function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]},e.b=function(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]},e.f=function(t,e){return[t[0]*e,t[1]*e,t[2]*e]},e.e=function(t){var e=Object(i.u)(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e};var i=n(6)},function(t,e,n){"use strict";e.b=function(o){return function(t,e){var n=Object(u.g)(t),r=Object(u.g)(e),i=o(n*r);return[i*r*Object(u.t)(t),i*Object(u.t)(e)]}},e.a=function(a){return function(t,e){var n=Object(u.u)(t*t+e*e),r=a(n),i=Object(u.t)(r),o=Object(u.g)(r);return[Object(u.e)(t*i,n*o),Object(u.c)(n&&e*i/n)]}};var u=n(6)},function(t,e,n){"use strict";e.a=function(t,e,n,r,i){for(var o,a=t.children,u=-1,c=a.length,s=t.value&&(r-e)/t.value;++u<c;)(o=a[u]).y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*s}},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"d",function(){return i}),n.d(e,"e",function(){return o}),n.d(e,"h",function(){return a}),n.d(e,"i",function(){return u}),n.d(e,"k",function(){return c}),n.d(e,"l",function(){return s}),n.d(e,"f",function(){return f}),n.d(e,"j",function(){return l}),n.d(e,"g",function(){return h}),n.d(e,"m",function(){return p}),e.b=function(t){return 1<t?0:t<-1?l:Math.acos(t)},e.c=function(t){return 1<=t?h:t<=-1?-h:Math.asin(t)};var r=Math.abs,i=Math.atan2,o=Math.cos,a=Math.max,u=Math.min,c=Math.sin,s=Math.sqrt,f=1e-12,l=Math.PI,h=l/2,p=2*l},function(t,e,n){"use strict";e.a=function(t,e){if(1<(i=t.length))for(var n,r,i,o=1,a=t[e[0]],u=a.length;o<i;++o)for(r=a,a=t[e[o]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}},function(t,e,n){"use strict";e.a=function(t){for(var e=t.length,n=new Array(e);0<=--e;)n[e]=e;return n}},function(t,e,n){"use strict";n.d(e,"f",function(){return r}),n.d(e,"g",function(){return i}),n.d(e,"a",function(){return f}),n.d(e,"b",function(){return l}),n.d(e,"c",function(){return h}),n.d(e,"e",function(){return p}),e.d=o;var f,l,h,p,v=n(713),g=n(271),d=n(272),y=n(136),b=n(135),r=1e-6,i=1e-12;function m(t,e){return e[1]-t[1]||e[0]-t[0]}function o(t,e){var n,r,i,o=t.sort(m).pop();for(p=[],l=new Array(t.length),f=new b.b,h=new b.b;;)if(i=d.c,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===n&&o[1]===r||(Object(v.a)(o),n=o[0],r=o[1]),o=t.pop();else{if(!i)break;Object(v.b)(i.arc)}if(Object(g.d)(),e){var a=+e[0][0],u=+e[0][1],c=+e[1][0],s=+e[1][1];Object(y.a)(a,u,c,s),Object(g.b)(a,u,c,s)}this.edges=p,this.cells=l,f=h=p=l=null}o.prototype={constructor:o,polygons:function(){var n=this.edges;return this.cells.map(function(e){var t=e.halfedges.map(function(t){return Object(g.a)(e,n[t])});return t.data=e.site.data,t})},triangles:function(){var h=[],p=this.edges;return this.cells.forEach(function(t,e){if(r=(n=t.halfedges).length)for(var n,r,i,o,a,u,c=t.site,s=-1,f=p[n[r-1]],l=f.left===c?f.right:f.left;++s<r;)i=l,l=(f=p[n[s]]).left===c?f.right:f.left,i&&l&&e<i.index&&e<l.index&&(a=i,u=l,((o=c)[0]-u[0])*(a[1]-o[1])-(o[0]-a[0])*(u[1]-o[1])<0)&&h.push([c.data,i.data,l.data])}),h},links:function(){return this.edges.filter(function(t){return t.right}).map(function(t){return{source:t.left.data,target:t.right.data}})},find:function(a,u,t){for(var e,c,s=this,f=s._found||0,n=s.cells.length;!(c=s.cells[f]);)if(++f>=n)return null;for(var r=a-c.site[0],i=u-c.site[1],l=r*r+i*i;c=s.cells[e=f],f=null,c.halfedges.forEach(function(t){var e=s.edges[t],n=e.left;if(n!==c.site&&n||(n=e.right)){var r=a-n[0],i=u-n[1],o=r*r+i*i;o<l&&(l=o,f=n.index)}}),null!==f;);return s._found=e,null==t||l<=t*t?c.site:null}}},function(t,e,n){var i=n(79),o=n(58),a=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var r=t[e];a.call(t,e)&&o(r,n)&&(void 0!==n||e in t)||i(t,e,n)}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){return!!(e=null==e?n:e)&&("number"==typeof t||r.test(t))&&-1<t&&t%1==0&&t<e}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){"use strict";e.b=o;var r=n(149),l=n(5);function i(t,e){return[t>l.o?t-l.w:t<-l.o?t+l.w:t,e]}function o(t,e,n){return(t%=l.w)?e||n?Object(r.a)(u(t),c(e,n)):u(t):e||n?c(e,n):i}function a(n){return function(t,e){return[(t+=n)>l.o?t-l.w:t<-l.o?t+l.w:t,e]}}function u(t){var e=a(t);return e.invert=a(-t),e}function c(t,e){var u=Object(l.g)(t),c=Object(l.t)(t),s=Object(l.g)(e),f=Object(l.t)(e);function n(t,e){var n=Object(l.g)(e),r=Object(l.g)(t)*n,i=Object(l.t)(t)*n,o=Object(l.t)(e),a=o*u+r*c;return[Object(l.e)(i*s-a*f,r*u-o*c),Object(l.c)(a*s+i*f)]}return n.invert=function(t,e){var n=Object(l.g)(e),r=Object(l.g)(t)*n,i=Object(l.t)(t)*n,o=Object(l.t)(e),a=o*s-i*f;return[Object(l.e)(i*s+o*f,r*u+a*c),Object(l.c)(a*u-r*c)]},n}i.invert=i,e.a=function(e){function t(t){return(t=e(t[0]*l.r,t[1]*l.r))[0]*=l.h,t[1]*=l.h,t}return e=o(e[0]*l.r,e[1]*l.r,2<e.length?e[2]*l.r:0),t.invert=function(t){return(t=e.invert(t[0]*l.r,t[1]*l.r))[0]*=l.h,t[1]*=l.h,t},t}},function(t,e,n){"use strict";function r(r){return function(t){var e=new i;for(var n in r)e[n]=r[n];return e.stream=t,e}}function i(){}e.b=r,e.a=function(t){return{stream:r(t)}},i.prototype={constructor:i,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}}},function(t,e,n){"use strict";var z=n(1);e.a=function(k,I,L,R,D,B,F,N){function t(t,e){if(!e)return[k*t/z.s,0];var n=e*e,r=k+n*(I+n*(L+n*R)),i=e*(D-1+n*(B-N+n*F)),o=(r*r+i*i)/(2*i),a=t*Object(z.e)(r/o)/z.s;return[o*Object(z.y)(a),e*(1+n*N)+o*(1-Object(z.h)(a))]}return arguments.length<8&&(N=0),t.invert=function(t,e){var n,r,i=z.s*t/k,o=e,a=50;do{var u=o*o,c=k+u*(I+u*(L+u*R)),s=o*(D-1+u*(B-N+u*F)),f=c*c+s*s,l=2*s,h=f/l,p=h*h,v=Object(z.e)(c/h)/z.s,g=i*v,d=c*c,y=(2*I+u*(4*L+6*u*R))*o,b=D+u*(3*B+5*u*F),m=(2*(c*y+s*(b-1))*l-f*(2*(b-1)))/(l*l),x=Object(z.h)(g),j=Object(z.y)(g),_=h*x,O=h*j,w=i/z.s*(1/Object(z.B)(1-d/p))*(y*h-c*m)/p,S=O-t,M=o*(1+u*N)+h-_-e,E=m*j+_*w,C=_*v,P=1+m-(m*x-O*w),A=O*v,T=E*A-P*C;if(!T)break;i-=n=(M*E-S*P)/T,o-=r=(S*A-M*C)/T}while((Object(z.a)(n)>z.k||Object(z.a)(r)>z.k)&&0<--a);return[i,o]},t}},function(t,e,n){"use strict";var d=n(0),y=n(1),h=n(395);function c(t,e){return t&&e&&t[0]===e[0]&&t[1]===e[1]}function r(t){return t.project.invert||t.children&&t.children.some(r)}e.a=function(i,l,t){function e(t,e){var n,r=l(t,e),i=r.project([t*y.j,e*y.j]);return(n=r.transform)?[n[0]*i[0]+n[1]*i[1]+n[2],-(n[3]*i[0]+n[4]*i[1]+n[5])]:(i[1]=-i[1],i)}t=null==t?-y.s/6:t,function e(n,t){n.edges=function(t){for(var e=t.length,n=[],r=t[e-1],i=0;i<e;++i)n.push([r,r=t[i]]);return n}(n.face);if(t.face){var r=n.shared=function(t,e){for(var n,r,i=t.length,o=null,a=0;a<i;++a){n=t[a];for(var u=e.length;0<=--u;)if(r=e[u],n[0]===r[0]&&n[1]===r[1]){if(o)return[o,n];o=n}}}(n.face,t.face),i=Object(h.a)(r.map(t.project),r.map(n.project));n.transform=t.transform?Object(h.c)(t.transform,i):i;for(var o=t.edges,a=0,u=o.length;a<u;++a)c(r[0],o[a][1])&&c(r[1],o[a][0])&&(o[a]=n),c(r[0],o[a][0])&&c(r[1],o[a][1])&&(o[a]=n);for(o=n.edges,a=0,u=o.length;a<u;++a)c(r[0],o[a][0])&&c(r[1],o[a][1])&&(o[a]=t),c(r[0],o[a][1])&&c(r[1],o[a][0])&&(o[a]=t)}else n.transform=t.transform;n.children&&n.children.forEach(function(t){e(t,n)});return n}(i,{transform:[Object(y.h)(t),Object(y.y)(t),0,-Object(y.y)(t),Object(y.h)(t),0]}),r(i)&&(e.invert=function(t,e){var n=function t(e,n){var r=e.project.invert,i=e.transform,o=n;i&&(i=Object(h.b)(i),o=[i[0]*o[0]+i[1]*o[1]+i[2],i[3]*o[0]+i[4]*o[1]+i[5]]);if(r&&e===(a=u=r(o),l(a[0]*y.v,a[1]*y.v)))return u;var a;var u,c=e.children;for(var s=0,f=c&&c.length;s<f;++s)if(u=t(c[s],n))return u}(i,[t,-e]);return n&&(n[0]*=y.v,n[1]*=y.v,n)});var o=Object(d.geoProjection)(e),a=o.stream;return o.stream=function(t){var e=o.rotate(),n=a(t),r=(o.rotate([0,0]),a(t));return o.rotate(e),n.sphere=function(){r.polygonStart(),r.lineStart(),function t(e,n,r){var i,o,a=n.edges,u=a.length,c={type:"MultiPoint",coordinates:n.face},s=n.face.filter(function(t){return 90!==Object(y.a)(t[1])}),f=Object(d.geoBounds)({type:"MultiPoint",coordinates:s}),l=!1,h=-1,p=f[1][0]-f[0][0];var v=180===p||360===p?[(f[0][0]+f[1][0])/2,(f[0][1]+f[1][1])/2]:Object(d.geoCentroid)(c);if(r)for(;++h<u&&a[h]!==r;);++h;for(var g=0;g<u;++g)o=a[(g+h)%u],Array.isArray(o)?(l||(e.point((i=Object(d.geoInterpolate)(o[0],v)(y.k))[0],i[1]),l=!0),e.point((i=Object(d.geoInterpolate)(o[1],v)(y.k))[0],i[1])):(l=!1,o!==r&&t(e,o,n))}(r,i),r.lineEnd(),r.polygonEnd()},n},o}},function(t,e,n){var r=n(422),i=n(423),o=n(424),a=n(425),u=n(426);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,e,n){var r=n(58);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(25)(Object,"create");t.exports=r},function(t,e,n){var r=n(440);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}},function(t,e,n){var r=n(184),i=1,o=4;t.exports=function(t){return r(t,i|o)}},function(t,e,n){var r=n(4),i=n(108),o=n(480),a=n(201);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(a(t))}},function(t,e,n){var s=n(102),f=n(499);t.exports=function t(e,n,r,i,o){var a=-1,u=e.length;for(r||(r=f),o||(o=[]);++a<u;){var c=e[a];0<n&&r(c)?1<n?t(c,n-1,r,i,o):s(o,c):i||(o[o.length]=c)}return o}},function(t,e){t.exports=1e-4},function(t,e,n){"use strict";e.a=function(t,e,n,r,i){for(var o,a=t.children,u=-1,c=a.length,s=t.value&&(i-n)/t.value;++u<c;)(o=a[u]).x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*s}},function(t,e,n){"use strict";function r(t){this._context=t}r.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}},e.a=function(t){return new r(t)}},function(t,e,n){"use strict";e.a=function(){}},function(t,e,n){"use strict";function r(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function i(t){this._context=t}n.d(e,"b",function(){return r}),(e.a=i).prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:r(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:r(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}}},function(t,e,n){"use strict";function r(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function i(t,e){this._context=t,this._k=(1-e)/6}n.d(e,"b",function(){return r}),(e.a=i).prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:r(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:r(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function e(n){function t(t){return new i(t,n)}return t.tension=function(t){return e(+t)},t})(0)},function(t,e,n){var r=n(138);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){var r=n(38),i=n(141),o=n(142);t.exports=function(t,e){return o(i(t,e,r),t+"")}},function(t,e){var n=9007199254740991;t.exports=function(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=n}},function(t,e,n){var r=n(292),i=n(16),o=Object.prototype,a=o.hasOwnProperty,u=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=c},function(t,c,s){(function(t){var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=s(14),r=s(293),i="object"==e(c)&&c&&!c.nodeType&&c,o=i&&"object"==e(t)&&t&&!t.nodeType&&t,a=o&&o.exports===i?n.Buffer:void 0,u=(a?a.isBuffer:void 0)||r;t.exports=u}).call(c,s(84)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){t.exports=function(e){return function(t){return e(t)}}},function(t,e,n){"use strict";e.a=c;var r=n(5),w=n(150),S=n(301),M=n(151),E=n(12),C=1e9,P=-C;function c(y,b,m,x){function j(t,e){return y<=t&&t<=m&&b<=e&&e<=x}function _(t,e,n,r){var i=0,o=0;if(null==t||(i=a(t,n))!==(o=a(e,n))||u(t,e)<0^0<n)for(;r.point(0===i||3===i?y:m,1<i?x:b),(i=(i+n+4)%4)!==o;);else r.point(e[0],e[1])}function a(t,e){return Object(r.a)(t[0]-y)<r.i?0<e?0:3:Object(r.a)(t[0]-m)<r.i?0<e?2:1:Object(r.a)(t[1]-b)<r.i?0<e?1:0:0<e?3:2}function O(t,e){return u(t.x,e.x)}function u(t,e){var n=a(t,1),r=a(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(r){var i,l,o,a,u,c,s,f,h,p,v,g=r,t=Object(w.a)(),e={point:n,lineStart:function(){e.point=d,l&&l.push(o=[]);p=!0,h=!1,s=f=NaN},lineEnd:function(){i&&(d(a,u),c&&h&&t.rejoin(),i.push(t.result()));e.point=n,h&&g.lineEnd()},polygonStart:function(){g=t,i=[],l=[],v=!0},polygonEnd:function(){var t=function(){for(var t=0,e=0,n=l.length;e<n;++e)for(var r,i,o=l[e],a=1,u=o.length,c=o[0],s=c[0],f=c[1];a<u;++a)r=s,i=f,c=o[a],s=c[0],f=c[1],i<=x?x<f&&(f-i)*(y-r)<(s-r)*(x-i)&&++t:f<=x&&(s-r)*(x-i)<(f-i)*(y-r)&&--t;return t}(),e=v&&t,n=(i=Object(E.merge)(i)).length;(e||n)&&(r.polygonStart(),e&&(r.lineStart(),_(null,null,1,r),r.lineEnd()),n&&Object(M.a)(i,O,t,_,r),r.polygonEnd());g=r,i=l=o=null}};function n(t,e){j(t,e)&&g.point(t,e)}function d(t,e){var n=j(t,e);if(l&&o.push([t,e]),p)a=t,u=e,p=!1,(c=n)&&(g.lineStart(),g.point(t,e));else if(n&&h)g.point(t,e);else{var r=[s=Math.max(P,Math.min(C,s)),f=Math.max(P,Math.min(C,f))],i=[t=Math.max(P,Math.min(C,t)),e=Math.max(P,Math.min(C,e))];Object(S.a)(r,i,y,b,m,x)?(h||(g.lineStart(),g.point(r[0],r[1])),g.point(i[0],i[1]),n||g.lineEnd(),v=!1):n&&(g.lineStart(),g.point(t,e),v=!1)}s=t,f=e,h=n}return e}}e.b=function(){var e,n,r,i=0,o=0,a=960,u=500;return r={stream:function(t){return e&&n===t?e:e=c(i,o,a,u)(n=t)},extent:function(t){return arguments.length?(i=+t[0][0],o=+t[0][1],a=+t[1][0],u=+t[1][1],e=n=null,r):[[i,o],[a,u]]}}}},function(t,e,n){"use strict";var u=n(40);e.a=function(t,e,n){if(null==n&&(n=u.a),r=t.length){if((e=+e)<=0||r<2)return+n(t[0],0,t);if(1<=e)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";e.a=i;var u=n(5),r=n(90),c=n(330);function i(t,e){var n=Object(u.t)(t),r=(n+Object(u.t)(e))/2;if(Object(u.a)(r)<u.i)return Object(c.a)(t);var i=1+n*(2*r-n),o=Object(u.u)(i)/r;function a(t,e){var n=Object(u.u)(i-2*r*Object(u.t)(e))/r;return[n*Object(u.t)(t*=r),o-n*Object(u.g)(t)]}return a.invert=function(t,e){var n=o-e;return[Object(u.e)(t,Object(u.a)(n))/r*Object(u.s)(n),Object(u.c)((i-(t*t+n*n)*r*r)/(2*r))]},a}e.b=function(){return Object(r.a)(i).scale(155.424).center([0,33.6442])}},function(t,e,n){"use strict";e.a=function(t){var e=0,n=o.o/3,r=Object(a.b)(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*o.r,n=t[1]*o.r):[e*o.h,n*o.h]},i};var o=n(5),a=n(17)},function(t,e,n){"use strict";e.a=r,e.b=function(t,e,n){return r(t,[[0,0],e],n)};var f=n(26),l=n(168);function r(t,e,n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=o&&t.clipExtent(null),Object(f.a)(n,t.stream(l.a));var a=l.a.result(),u=Math.min(r/(a[1][0]-a[0][0]),i/(a[1][1]-a[0][1])),c=+e[0][0]+(r-u*(a[1][0]+a[0][0]))/2,s=+e[0][1]+(i-u*(a[1][1]+a[0][1]))/2;return null!=o&&t.clipExtent(o),t.scale(150*u).translate([c,s])}},function(t,e,n){"use strict";e.c=g,e.b=r;var h=n(5),p=n(61),v=n(17);function g(t,e){return[t,Object(h.n)(Object(h.v)((h.l+e)/2))]}function r(n){var r,i,o,a=Object(v.a)(n),e=a.center,u=a.scale,c=a.translate,s=a.clipExtent,f=null;function l(){var t=h.o*u(),e=a(Object(p.a)(a.rotate()).invert([0,0]));return s(null==f?[[e[0]-t,e[1]-t],[e[0]+t,e[1]+t]]:n===g?[[Math.max(e[0]-t,f),r],[Math.min(e[0]+t,i),o]]:[[f,Math.max(e[1]-t,r)],[i,Math.min(e[1]+t,o)]])}return a.scale=function(t){return arguments.length?(u(t),l()):u()},a.translate=function(t){return arguments.length?(c(t),l()):c()},a.center=function(t){return arguments.length?(e(t),l()):e()},a.clipExtent=function(t){return arguments.length?(null==t?f=r=i=o=null:(f=+t[0][0],r=+t[0][1],i=+t[1][0],o=+t[1][1]),l()):null==f?null:[[f,r],[i,o]]},l()}g.invert=function(t,e){return[t,2*Object(h.d)(Object(h.k)(e))-h.l]},e.a=function(){return r(g).scale(961/h.w)}},function(t,e,n){"use strict";e.a=o;var r=n(0),i=n(1);function o(t,e){var n=Object(i.B)(1-Object(i.y)(e));return[2/i.E*t*n,i.E*(1-n)]}o.invert=function(t,e){var n=(n=e/i.E-1)*n;return[0<n?t*Object(i.B)(i.s/n)/2:0,Object(i.e)(1-n)]},e.b=function(){return Object(r.geoProjection)(o).scale(95.6464).center([0,30])}},function(t,e,n){"use strict";n.d(e,"b",function(){return a}),n.d(e,"d",function(){return u}),e.c=c;var r=n(0),i=n(22),o=n(42),a=.7109889596207567,u=.0528035274542;function c(t,e){return-a<e?((t=Object(i.d)(t,e))[1]+=u,t):Object(o.b)(t,e)}c.invert=function(t,e){return-a<e?i.d.invert(t,e-u):o.b.invert(t,e)},e.a=function(){return Object(r.geoProjection)(c).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}},function(t,e,n){"use strict";var r=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]];e.a=[[0,2,1],[0,3,2],[5,1,2],[5,2,3],[0,1,4],[0,4,3],[5,4,1],[5,3,4]].map(function(t){return t.map(function(t){return r[t]})})},function(t,e,n){"use strict";var r=n(0),h=n(1);e.a=function(f){var l=f(h.o,0)[0]-f(-h.o,0)[0];function t(t,e){var n=Object(h.a)(t)<h.o,r=f(n?t:0<t?t-h.s:t+h.s,e),i=(r[0]-r[1])*h.C,o=(r[0]+r[1])*h.C;if(n)return[i,o];var a=l*h.C,u=0<i^0<o?-1:1;return[u*i-Object(h.x)(o)*a,u*o-Object(h.x)(i)*a]}return f.invert&&(t.invert=function(t,e){var n=(t+e)*h.C,r=(e-t)*h.C,i=Object(h.a)(n)<.5*l&&Object(h.a)(r)<.5*l;if(!i){var o=l*h.C,a=0<n^0<r?-1:1,u=-a*t+(0<r?1:-1)*o,c=-a*e+(0<n?1:-1)*o;n=(-u-c)*h.C,r=(u-c)*h.C}var s=f.invert(n,r);return i||(s[0]+=0<n?h.s:-h.s),s}),Object(r.geoProjection)(t).rotate([-90,-90,45]).clipAngle(179.999)}},function(t,e,n){var r=n(65),i=n(427),o=n(428),a=n(429),u=n(430),c=n(431);function s(t){var e=this.__data__=new r(t);this.size=e.size}s.prototype.clear=i,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=u,s.prototype.set=c,t.exports=s},function(t,e,n){var r=n(25)(n(14),"Map");t.exports=r},function(t,e,n){var r=n(432),i=n(439),o=n(441),a=n(442),u=n(443);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,e,n){var r=n(144),i=n(446),o=n(20);t.exports=function(t){return o(t)?r(t,!0):i(t)}},function(t,e,n){var r=n(451),i=n(186),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return o.call(e,t)}))}:i;t.exports=u},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},function(t,e,n){var r=n(146)(Object.getPrototypeOf,Object);t.exports=r},function(t,e,n){var r=n(192);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},function(t,e,n){var r=n(99),i=n(473),o=n(474);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,t.exports=a},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var i=n(71),o=n(47);t.exports=function(t,e){for(var n=0,r=(e=i(e,t)).length;null!=t&&n<r;)t=t[o(e[n++])];return n&&n==r?t:void 0}},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(4),o=n(45),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=function(t,e){if(i(t))return!1;var n=void 0===t?"undefined":r(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||u.test(t)||!a.test(t)||null!=e&&t in Object(e)}},function(t,e,n){"use strict";e.b=o;var r=n(211),l=n(6);function i(t,e){return[t>l.o?t-l.w:t<-l.o?t+l.w:t,e]}function o(t,e,n){return(t%=l.w)?e||n?Object(r.a)(u(t),c(e,n)):u(t):e||n?c(e,n):i}function a(n){return function(t,e){return[(t+=n)>l.o?t-l.w:t<-l.o?t+l.w:t,e]}}function u(t){var e=a(t);return e.invert=a(-t),e}function c(t,e){var u=Object(l.g)(t),c=Object(l.t)(t),s=Object(l.g)(e),f=Object(l.t)(e);function n(t,e){var n=Object(l.g)(e),r=Object(l.g)(t)*n,i=Object(l.t)(t)*n,o=Object(l.t)(e),a=o*u+r*c;return[Object(l.e)(i*s-a*f,r*u-o*c),Object(l.c)(a*s+i*f)]}return n.invert=function(t,e){var n=Object(l.g)(e),r=Object(l.g)(t)*n,i=Object(l.t)(t)*n,o=Object(l.t)(e),a=o*s-i*f;return[Object(l.e)(i*s+o*f,r*u+a*c),Object(l.c)(a*u-r*c)]},n}i.invert=i,e.a=function(e){function t(t){return(t=e(t[0]*l.r,t[1]*l.r))[0]*=l.h,t[1]*=l.h,t}return e=o(e[0]*l.r,e[1]*l.r,2<e.length?e[2]*l.r:0),t.invert=function(t){return(t=e.invert(t[0]*l.r,t[1]*l.r))[0]*=l.h,t[1]*=l.h,t},t}},function(t,e,n){"use strict";e.a=i;var u=n(6),r=n(111);function i(t,e){var n=Object(u.t)(t),r=(n+Object(u.t)(e))/2,i=1+n*(2*r-n),o=Object(u.u)(i)/r;function a(t,e){var n=Object(u.u)(i-2*r*Object(u.t)(e))/r;return[n*Object(u.t)(t*=r),o-n*Object(u.g)(t)]}return a.invert=function(t,e){var n=o-e;return[Object(u.e)(t,n)/r,Object(u.c)((i-(t*t+n*n)*r*r)/(2*r))]},a}e.b=function(){return Object(r.a)(i).scale(155.424).center([0,33.6442])}},function(t,e,n){"use strict";e.a=function(t){var e=0,n=o.o/3,r=Object(a.b)(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*o.r,n=t[1]*o.r):[e*o.h,n*o.h]},i};var o=n(6),a=n(18)},function(t,e,n){"use strict";function r(t){function n(){}var e=n.prototype=Object.create(i.prototype);for(var r in t)e[r]=t[r];return function(t){var e=new n;return e.stream=t,e}}function i(){}e.b=r,e.a=function(t){return{stream:r(t)}},i.prototype={point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}}},function(t,e,n){"use strict";e.c=r,e.b=i;var c=n(18),s=n(6);function r(t,e){return[t,Object(s.n)(Object(s.v)((s.l+e)/2))]}function i(t){var r,i=Object(c.a)(t),o=i.scale,a=i.translate,u=i.clipExtent;return i.scale=function(t){return arguments.length?(o(t),r&&i.clipExtent(null),i):o()},i.translate=function(t){return arguments.length?(a(t),r&&i.clipExtent(null),i):a()},i.clipExtent=function(t){if(!arguments.length)return r?null:u();if(r=null==t){var e=s.o*o(),n=a();t=[[n[0]-e,n[1]-e],[n[0]+e,n[1]+e]]}return u(t),i},i.clipExtent(null)}r.invert=function(t,e){return[t,2*Object(s.d)(Object(s.k)(e))-s.l]},e.a=function(){return i(r).scale(961/s.w)}},function(t,e,n){var r=n(529),i=n(9);t.exports=function(t){return null==t?[]:r(t,i(t))}},function(t,e,n){var r=n(534),i=n(535)(r);t.exports=i},function(t,e,n){var a=n(24);t.exports=function(t,e){var n,r,i=a(t),o=0;if(2===e)for(r=0;r<t.length;r++)o+=(n=t[r]-i)*n;else for(r=0;r<t.length;r++)o+=Math.pow(t[r]-i,e);return o}},function(t,e,n){var o=n(118),i=n(547);function c(t,e,n,r){e%1==0?i(t,e,n,r):(e=Math.floor(e),i(t,e,n,r),i(t,e+1,e+1,r))}function s(t,e){return t-e}function f(t,e){var n=t*e;return 1===e?t-1:0===e?0:n%1!=0?Math.ceil(n)-1:t%2==0?n-.5:n}t.exports=function(t,e){var n=t.slice();if(Array.isArray(e)){!function(t,e){for(var n=[0],r=0;r<e.length;r++)n.push(f(t.length,e[r]));n.push(t.length-1),n.sort(s);for(var i=[0,n.length-1];i.length;){var o=Math.ceil(i.pop()),a=Math.floor(i.pop());if(!(o-a<=1)){var u=Math.floor((a+o)/2);c(t,n[u],n[a],n[o]),i.push(a,u,u,o)}}}(n,e);for(var r=[],i=0;i<e.length;i++)r[i]=o(n,e[i]);return r}return c(n,f(n.length,e),0,n.length-1),o(n,e)}},function(t,e){t.exports=function(t,e){var n=t.length*e;if(0===t.length)throw new Error("quantile requires at least one data point.");if(e<0||1<e)throw new Error("quantiles must be between 0 and 1");return 1===e?t[t.length-1]:0===e?t[0]:n%1!=0?t[Math.ceil(n)-1]:t.length%2==0?(t[n-1]+t[n])/2:t[n]}},function(t,e,n){var r=n(116);t.exports=function(t){if(t.length<2)throw new Error("sampleVariance requires at least two data points");return r(t,2)/(t.length-1)}},function(t,e){t.exports={HIERARCHY:"hierarchy",GEO:"geo",HEX:"hex",GRAPH:"graph",TABLE:"table",GEO_GRATICULE:"geo-graticule",STATISTICS_METHODS:["max","mean","median","min","mode","product","standardDeviation","sum","sumSimple","variance"]}},function(t,e,n){"use strict";var h={},p={},v=34,g=10,d=13;function c(t){return new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}")}e.a=function(o){var e=new RegExp('["'+o+"\n\r]"),l=o.charCodeAt(0);function n(r,t){var e,n=[],i=r.length,o=0,a=0,u=i<=0,c=!1;function s(){if(u)return p;if(c)return c=!1,h;var t,e,n=o;if(r.charCodeAt(n)===v){for(;o++<i&&r.charCodeAt(o)!==v||r.charCodeAt(++o)===v;);return(t=o)>=i?u=!0:(e=r.charCodeAt(o++))===g?c=!0:e===d&&(c=!0,r.charCodeAt(o)===g&&++o),r.slice(n+1,t-1).replace(/""/g,'"')}for(;o<i;){if((e=r.charCodeAt(t=o++))===g)c=!0;else if(e===d)c=!0,r.charCodeAt(o)===g&&++o;else if(e!==l)continue;return r.slice(n,t)}return u=!0,r.slice(n,i)}for(r.charCodeAt(i-1)===g&&--i,r.charCodeAt(i-1)===d&&--i;(e=s())!==p;){for(var f=[];e!==h&&e!==p;)f.push(e),e=s();t&&null==(f=t(f,a++))||n.push(f)}return n}function r(t){return t.map(a).join(o)}function a(t){return null==t?"":e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,o){var a,u,e=n(t,function(t,e){if(a)return a(t,e-1);var n,r,i;u=t,a=o?(r=o,i=c(n=t),function(t,e){return r(i(t),e,n)}):c(t)});return e.columns=u||[],e},parseRows:n,format:function(t,n){var e,r,i;return null==n&&(e=t,r=Object.create(null),i=[],e.forEach(function(t){for(var e in t)e in r||i.push(r[e]=e)}),n=i),[n.map(a).join(o)].concat(t.map(function(e){return n.map(function(t){return a(e[t])}).join(o)})).join("\n")},formatRows:function(t){return t.map(r).join("\n")}}}},function(t,e,n){"use strict";e.c=v,e.b=y,e.a=b;var r=n(599),i=n(600),o=n(601),a=n(602),u=n(603),c=n(604),s=n(605),f=n(606),l=n(607),h=n(608),p=n(609);function v(t,e){var n,r,i,o,a,u=new b(t),c=+t.value&&(u.value=t.value),s=[u];for(null==e&&(e=g);n=s.pop();)if(c&&(n.value=+n.data.value),(i=e(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;0<=o;--o)s.push(r=n.children[o]=new b(i[o])),r.parent=n,r.depth=n.depth+1;return u.eachBefore(y)}function g(t){return t.children}function d(t){t.data=t.data.data}function y(t){for(var e=0;t.height=e,(t=t.parent)&&t.height<++e;);}function b(t){this.data=t,this.depth=this.height=0,this.parent=null}b.prototype=v.prototype={constructor:b,count:r.a,each:i.a,eachAfter:a.a,eachBefore:o.a,sum:u.a,sort:c.a,path:s.a,ancestors:f.a,descendants:l.a,leaves:h.a,links:p.a,copy:function(){return v(this).eachBefore(d)}}},function(t,e,n){"use strict";function r(t){if("function"!=typeof t)throw new Error;return t}e.a=function(t){return null==t?null:r(t)},e.b=r},function(t,e,n){"use strict";n.d(e,"b",function(){return r}),e.c=a;var O=n(52),w=n(74),r=(1+Math.sqrt(5))/2;function a(t,e,n,r,i,o){for(var a,u,c,s,f,l,h,p,v,g,d,y=[],b=e.children,m=0,x=0,j=b.length,_=e.value;m<j;){for(c=i-n,s=o-r;!(f=b[x++].value)&&x<j;);for(l=h=f,d=f*f*(g=Math.max(s/c,c/s)/(_*t)),v=Math.max(h/d,d/l);x<j;++x){if(f+=u=b[x].value,u<l&&(l=u),h<u&&(h=u),d=f*f*g,v<(p=Math.max(h/d,d/l))){f-=u;break}v=p}y.push(a={value:f,dice:c<s,children:b.slice(m,x)}),a.dice?Object(O.a)(a,n,r,i,_?r+=s*f/_:o):Object(w.a)(a,n,r,_?n+=c*f/_:i,o),_-=f,m=x}return y}e.a=function e(o){function t(t,e,n,r,i){a(o,t,e,n,r,i)}return t.ratio=function(t){return e(1<(t=+t)?t:1)},t}(r)},function(t,e,n){"use strict";var r=n(249);e.a=function(t){if(null==t)return r.a;var o,a,u=t.scale[0],c=t.scale[1],s=t.translate[0],f=t.translate[1];return function(t,e){e||(o=a=0);var n=2,r=t.length,i=new Array(r);for(i[0]=(o+=t[0])*u+s,i[1]=(a+=t[1])*c+f;n<r;)i[n]=t[n],++n;return i}}},function(t,e,n){"use strict";e.b=a;var f=n(621),r=n(125);function i(t,e){var n=e.id,r=e.bbox,i=null==e.properties?{}:e.properties,o=a(t,e);return null==n&&null==r?{type:"Feature",properties:i,geometry:o}:null==r?{type:"Feature",id:n,properties:i,geometry:o}:{type:"Feature",id:n,bbox:r,properties:i,geometry:o}}function a(t,e){var o=Object(r.a)(t.transform),a=t.arcs;function i(t,e){e.length&&e.pop();for(var n=a[t<0?~t:t],r=0,i=n.length;r<i;++r)e.push(o(n[r],r));t<0&&Object(f.a)(e,i)}function u(t){return o(t)}function c(t){for(var e=[],n=0,r=t.length;n<r;++n)i(t[n],e);return e.length<2&&e.push(e[0]),e}function n(t){for(var e=c(t);e.length<4;)e.push(e[0]);return e}function s(t){return t.map(n)}return function t(e){var n,r=e.type;switch(r){case"GeometryCollection":return{type:r,geometries:e.geometries.map(t)};case"Point":n=u(e.coordinates);break;case"MultiPoint":n=e.coordinates.map(u);break;case"LineString":n=c(e.arcs);break;case"MultiLineString":n=e.arcs.map(c);break;case"Polygon":n=s(e.arcs);break;case"MultiPolygon":n=e.arcs.map(s);break;default:return null}return{type:r,coordinates:n}}(e)}e.a=function(e,t){return"GeometryCollection"===t.type?{type:"FeatureCollection",features:t.geometries.map(function(t){return i(e,t)})}:i(e,t)}},function(t,e,n){var r=n(19),i=n(16),o="[object Number]";t.exports=function(t){return"number"==typeof t||i(t)&&r(t)==o}},function(t,e){t.exports=function(t){for(var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,n=t[0],r=t[1],i=[],o=n;o<r;)i.push(o),o+=e;return i.push(r),i}},function(t,e,n){var i=n(23).standardDeviation;t.exports={silverman:function(t){var e=i(t),n=4*Math.pow(e,5),r=3*t.length;return Math.pow(n/r,.2)}}},function(t,e,n){"use strict";n.d(e,"b",function(){return r});var r="$";function u(){}function i(t,e){var n=new u;if(t instanceof u)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==e)for(;++i<o;)n.set(i,t[i]);else for(;++i<o;)n.set(e(r=t[i],i,t),r)}else if(t)for(var a in t)n.set(a,t[a]);return n}u.prototype=i.prototype={constructor:u,has:function(t){return r+t in this},get:function(t){return this[r+t]},set:function(t,e){return this[r+t]=e,this},remove:function(t){var e=r+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===r&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===r&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===r&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===r&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===r&&++t;return t},empty:function(){for(var t in this)if(t[0]===r)return!1;return!0},each:function(t){for(var e in this)e[0]===r&&t(this[e],e.slice(1),this)}},e.a=i},function(t,e,n){"use strict";var h=n(30),r=n(31),i=n(75),o=n(132);e.a=function(){var a=o.a,u=o.b,c=Object(r.a)(!0),s=null,f=i.a,l=null;function e(t){var e,n,r,i=t.length,o=!1;for(null==s&&(l=f(r=Object(h.path)())),e=0;e<=i;++e)!(e<i&&c(n=t[e],e,t))===o&&((o=!o)?l.lineStart():l.lineEnd()),o&&l.point(+a(n,e,t),+u(n,e,t));if(r)return l=null,r+""||null}return e.x=function(t){return arguments.length?(a="function"==typeof t?t:Object(r.a)(+t),e):a},e.y=function(t){return arguments.length?(u="function"==typeof t?t:Object(r.a)(+t),e):u},e.defined=function(t){return arguments.length?(c="function"==typeof t?t:Object(r.a)(!!t),e):c},e.curve=function(t){return arguments.length?(f=t,null!=s&&(l=f(s)),e):f},e.context=function(t){return arguments.length?(null==t?s=l=null:l=f(s=t),e):s},e}},function(t,e,n){"use strict";e.a=function(t){return t[0]},e.b=function(t){return t[1]}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var l=n(53),r=n(78);function i(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>l.f){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>l.f){var s=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*s+t._x1*t._l23_2a-e*t._l12_2a)/f,a=(a*s+t._y1*t._l23_2a-n*t._l12_2a)/f}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function o(t,e){this._context=t,this._alpha=e}o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:i(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function e(n){function t(t){return n?new o(t,n):new r.a(t,0)}return t.alpha=function(t){return e(+t)},t})(.5)},function(t,e,n){"use strict";e.b=i;var r=n(55);function i(t){for(var e,n=0,r=-1,i=t.length;++r<i;)(e=+t[r][1])&&(n+=e);return n}e.a=function(t){var n=t.map(i);return Object(r.a)(t).sort(function(t,e){return n[t]-n[e]})}},function(t,e,n){"use strict";function r(){this._=null}function u(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function c(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function s(t){for(;t.L;)t=t.L;return t}e.a=function(t){t.U=t.C=t.L=t.R=t.P=t.N=null},r.prototype={constructor:r,insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=s(this._),e.P=null,(e.N=t).P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(u(this,n),n=(t=n).U),n.C=!1,r.C=!0,c(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(c(this,n),n=(t=n).U),n.C=!1,r.C=!0,u(this,r)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,i=t.U,o=t.L,a=t.R;if(n=o?a?s(a):o:a,i?i.L===t?i.L=n:i.R=n:this._=n,o&&a?(r=n.C,n.C=t.C,((n.L=o).U=n)!==a?(i=n.U,n.U=t.U,t=n.R,i.L=t,(n.R=a).U=n):(n.U=i,t=(i=n).R)):(r=t.C,t=n),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,u(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,c(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,u(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,c(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,u(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,c(this,i),t=this._;break}e.C=!0,i=(t=i).U}while(!t.C);t&&(t.C=!1)}}},e.b=r},function(t,e,n){"use strict";e.c=function(t,e,n,r){var i=[null,null],o=a.e.push(i)-1;i.left=t,i.right=e,n&&u(i,t,e,n);r&&u(i,e,t,r);return a.b[t.index].halfedges.push(o),a.b[e.index].halfedges.push(o),i},e.b=function(t,e,n){var r=[e,n];return r.left=t,r},e.d=u,e.a=function(t,e,n,r){var i,o=a.e.length;for(;o--;)s(i=a.e[o],t,e,n,r)&&c(i,t,e,n,r)&&(Math.abs(i[0][0]-i[1][0])>a.f||Math.abs(i[0][1]-i[1][1])>a.f)||delete a.e[o]};var a=n(56);function u(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function c(t,e,n,r,i){var o,a=t[0],u=t[1],c=a[0],s=a[1],f=0,l=1,h=u[0]-c,p=u[1]-s;if(o=e-c,h||!(0<o)){if(o/=h,h<0){if(o<f)return;o<l&&(l=o)}else if(0<h){if(l<o)return;f<o&&(f=o)}if(o=r-c,h||!(o<0)){if(o/=h,h<0){if(l<o)return;f<o&&(f=o)}else if(0<h){if(o<f)return;o<l&&(l=o)}if(o=n-s,p||!(0<o)){if(o/=p,p<0){if(o<f)return;o<l&&(l=o)}else if(0<p){if(l<o)return;f<o&&(f=o)}if(o=i-s,p||!(o<0)){if(o/=p,p<0){if(l<o)return;f<o&&(f=o)}else if(0<p){if(o<f)return;o<l&&(l=o)}return(0<f||l<1)&&(0<f&&(t[0]=[c+f*h,s+f*p]),l<1&&(t[1]=[c+l*h,s+l*p])),!0}}}}}function s(t,e,n,r,i){var o=t[1];if(o)return!0;var a,u,c=t[0],s=t.left,f=t.right,l=s[0],h=s[1],p=f[0],v=f[1],g=(l+p)/2,d=(h+v)/2;if(v===h){if(g<e||r<=g)return;if(p<l){if(c){if(c[1]>=i)return}else c=[g,n];o=[g,i]}else{if(c){if(c[1]<n)return}else c=[g,i];o=[g,n]}}else if(u=d-(a=(l-p)/(v-h))*g,a<-1||1<a)if(p<l){if(c){if(c[1]>=i)return}else c=[(n-u)/a,n];o=[(i-u)/a,i]}else{if(c){if(c[1]<n)return}else c=[(i-u)/a,i];o=[(n-u)/a,n]}else if(h<v){if(c){if(c[0]>=r)return}else c=[e,a*e+u];o=[r,a*r+u]}else{if(c){if(c[0]<e)return}else c=[r,a*r+u];o=[e,a*e+u]}return t[0]=c,t[1]=o,!0}},function(t,e,n){var r=n(273),i=function(){function n(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);this.options=e,this.rootNode=new r(t,e)}return n.prototype.execute=function(){throw new Error("please override this method")},n}();t.exports=i},function(t,e,n){var r=n(25),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(r,t,e){(function(t){var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n="object"==(void 0===t?"undefined":e(t))&&t&&t.Object===Object&&t;r.exports=n}).call(t,e(280))},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var c=n(287),s=Math.max;t.exports=function(o,a,u){return a=s(void 0===a?o.length-1:a,0),function(){for(var t=arguments,e=-1,n=s(t.length-a,0),r=Array(n);++e<n;)r[e]=t[a+e];e=-1;for(var i=Array(a+1);++e<a;)i[e]=t[e];return i[a]=u(r),c(o,this,i)}}},function(t,e,n){var r=n(288),i=n(290)(r);t.exports=i},function(t,e,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(58),a=n(20),u=n(59),c=n(13);t.exports=function(t,e,n){if(!c(n))return!1;var r=void 0===e?"undefined":i(e);return!!("number"==r?a(n)&&u(e,n.length):"string"==r&&e in n)&&o(n[e],t)}},function(t,e,n){var f=n(291),l=n(82),h=n(4),p=n(83),v=n(59),g=n(145),d=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=h(t),r=!n&&l(t),i=!n&&!r&&p(t),o=!n&&!r&&!i&&g(t),a=n||r||i||o,u=a?f(t.length,String):[],c=u.length;for(var s in t)!e&&!d.call(t,s)||a&&("length"==s||i&&("offset"==s||"parent"==s)||o&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||v(s,c))||u.push(s);return u}},function(t,e,n){var r=n(294),i=n(85),o=n(295),a=o&&o.isTypedArray,u=a?i(a):r;t.exports=u},function(t,e){t.exports=function(e,n){return function(t){return e(n(t))}}},function(t,e,n){"use strict";n.d(e,"a",function(){return v}),n.d(e,"b",function(){return s});var r,i,f,l,h,o=n(33),p=n(5),a=n(21),u=n(26),v=Object(o.a)(),c=Object(o.a)(),s={point:a.a,lineStart:a.a,lineEnd:a.a,polygonStart:function(){v.reset(),s.lineStart=g,s.lineEnd=d},polygonEnd:function(){var t=+v;c.add(t<0?p.w+t:t),this.lineStart=this.lineEnd=this.point=a.a},sphere:function(){c.add(p.w)}};function g(){s.point=y}function d(){b(r,i)}function y(t,e){s.point=b,r=t,i=e,t*=p.r,e*=p.r,f=t,l=Object(p.g)(e=e/2+p.q),h=Object(p.t)(e)}function b(t,e){t*=p.r,e=(e*=p.r)/2+p.q;var n=t-f,r=0<=n?1:-1,i=r*n,o=Object(p.g)(e),a=Object(p.t)(e),u=h*a,c=l*o+u*Object(p.g)(i),s=u*r*Object(p.t)(i);v.add(Object(p.e)(s,c)),f=t,l=o,h=a}e.c=function(t){return c.reset(),Object(u.a)(t,s),2*c}},function(t,e,n){"use strict";e.a=p;var l=n(39),s=n(300),h=n(5),f=n(61);function p(t,e,n,r,i,o){if(n){var a=Object(h.g)(e),u=Object(h.t)(e),c=r*n;null==i?(i=e+r*h.w,o=e-c/2):(i=v(a,i),o=v(a,o),(0<r?i<o:o<i)&&(i+=r*h.w));for(var s,f=i;0<r?o<f:f<o;f-=c)s=Object(l.g)([a,-u*Object(h.g)(f),-u*Object(h.t)(f)]),t.point(s[0],s[1])}}function v(t,e){(e=Object(l.a)(e))[0]-=t,Object(l.e)(e);var n=Object(h.b)(-e[1]);return((-e[2]<0?-n:n)+h.w-h.i)%h.w}e.b=function(){var r,i,o=Object(s.a)([0,0]),a=Object(s.a)(90),u=Object(s.a)(6),c={point:function(t,e){r.push(t=i(t,e)),t[0]*=h.h,t[1]*=h.h}};function e(){var t=o.apply(this,arguments),e=a.apply(this,arguments)*h.r,n=u.apply(this,arguments)*h.r;return r=[],i=Object(f.b)(-t[0]*h.r,-t[1]*h.r,0).invert,p(c,e,n,1),t={type:"Polygon",coordinates:[r]},r=i=null,t}return e.center=function(t){return arguments.length?(o="function"==typeof t?t:Object(s.a)([+t[0],+t[1]]),e):o},e.radius=function(t){return arguments.length?(a="function"==typeof t?t:Object(s.a)(+t),e):a},e.precision=function(t){return arguments.length?(u="function"==typeof t?t:Object(s.a)(+t),e):u},e}},function(t,e,n){"use strict";e.a=function(n,r){function t(t,e){return t=n(t,e),r(t[0],t[1])}return n.invert&&r.invert&&(t.invert=function(t,e){return(t=r.invert(t,e))&&n.invert(t[0],t[1])}),t}},function(t,e,n){"use strict";var r=n(21);e.a=function(){var n,e=[];return{point:function(t,e){n.push([t,e])},lineStart:function(){e.push(n=[])},lineEnd:r.a,rejoin:function(){1<e.length&&e.push(e.pop().concat(e.shift()))},result:function(){var t=e;return e=[],n=null,t}}}},function(t,e,n){"use strict";var v=n(152);function g(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function d(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}e.a=function(t,e,n,r,o){var a,i,u=[],c=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],i=t[e];if(Object(v.a)(r,i)){for(o.lineStart(),a=0;a<e;++a)o.point((r=t[a])[0],r[1]);o.lineEnd()}else u.push(n=new g(r,t,null,!0)),c.push(n.o=new g(r,null,n,!1)),u.push(n=new g(i,t,null,!1)),c.push(n.o=new g(i,null,n,!0))}}),u.length){for(c.sort(e),d(u),d(c),a=0,i=c.length;a<i;++a)c[a].e=n=!n;for(var s,f,l=u[0];;){for(var h=l,p=!0;h.v;)if((h=h.n)===l)return;s=h.z,o.lineStart();do{if(h.v=h.o.v=!0,h.e){if(p)for(a=0,i=s.length;a<i;++a)o.point((f=s[a])[0],f[1]);else r(h.x,h.n.x,1,o);h=h.n}else{if(p)for(s=h.p.z,a=s.length-1;0<=a;--a)o.point((f=s[a])[0],f[1]);else r(h.x,h.p.x,-1,o);h=h.p}s=(h=h.o).z,p=!p}while(!h.v);o.lineEnd()}}}},function(t,e,n){"use strict";var r=n(5);e.a=function(t,e){return Object(r.a)(t[0]-e[0])<r.i&&Object(r.a)(t[1]-e[1])<r.i}},function(t,e,n){"use strict";n.d(e,"b",function(){return a}),n.d(e,"a",function(){return u});var r=n(34),i=n(154),o=Object(i.a)(r.a),a=o.right,u=o.left;e.c=a},function(t,e,n){"use strict";var r=n(34);e.a=function(o){var n;return 1===o.length&&(n=o,o=function(t,e){return Object(r.a)(n(t),e)}),{left:function(t,e,n,r){for(null==n&&(n=0),null==r&&(r=t.length);n<r;){var i=n+r>>>1;o(t[i],e)<0?n=i+1:r=i}return n},right:function(t,e,n,r){for(null==n&&(n=0),null==r&&(r=t.length);n<r;){var i=n+r>>>1;0<o(t[i],e)?r=i:n=i+1}return n}}}},function(t,e,n){"use strict";function a(t,e){return[t,e]}e.b=a,e.a=function(t,e){null==e&&(e=a);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return o}},function(t,e,n){"use strict";var r=n(157);e.a=function(t,e){var n=Object(r.a)(t,e);return n?Math.sqrt(n):n}},function(t,e,n){"use strict";var s=n(40);e.a=function(t,e){var n,r,i=t.length,o=0,a=-1,u=0,c=0;if(null==e)for(;++a<i;)isNaN(n=Object(s.a)(t[a]))||(c+=(r=n-u)*(n-(u+=r/++o)));else for(;++a<i;)isNaN(n=Object(s.a)(e(t[a],a,t)))||(c+=(r=n-u)*(n-(u+=r/++o)));if(1<o)return c/(o-1)}},function(t,e,n){"use strict";e.a=function(t,e){var n,r,i,o=t.length,a=-1;if(null==e){for(;++a<o;)if(null!=(n=t[a])&&n<=n)for(r=i=n;++a<o;)null!=(n=t[a])&&(n<r&&(r=n),i<n&&(i=n))}else for(;++a<o;)if(null!=(n=e(t[a],a,t))&&n<=n)for(r=i=n;++a<o;)null!=(n=e(t[a],a,t))&&(n<r&&(r=n),i<n&&(i=n));return[r,i]}},function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return o});var r=Array.prototype,i=r.slice,o=r.map},function(t,e,n){"use strict";e.a=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}},function(t,e,n){"use strict";e.b=s,e.c=function(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;a<=o?i*=10:u<=o?i*=5:c<=o&&(i*=2);return e<t?-i:i};var a=Math.sqrt(50),u=Math.sqrt(10),c=Math.sqrt(2);function s(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return 0<=i?(a<=o?10:u<=o?5:c<=o?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a<=o?10:u<=o?5:c<=o?2:1)}e.a=function(t,e,n){var r,i,o,a,u=-1;if(n=+n,(t=+t)===(e=+e)&&0<n)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(a=s(t,e,n))||!isFinite(a))return[];if(0<a)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++u<i;)o[u]=(t+u)*a;else for(t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(i=Math.ceil(t-e+1));++u<i;)o[u]=(t-u)/a;return r&&o.reverse(),o}},function(t,e,n){"use strict";e.a=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}},function(t,e,n){"use strict";e.a=function(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o<i;)if(null!=(n=t[o])&&n<=n)for(r=n;++o<i;)null!=(n=t[o])&&n<r&&(r=n)}else for(;++o<i;)if(null!=(n=e(t[o],o,t))&&n<=n)for(r=n;++o<i;)null!=(n=e(t[o],o,t))&&n<r&&(r=n);return r}},function(t,e,n){"use strict";var u=n(163);function c(t){return t.length}e.a=function(t){if(!(i=t.length))return[];for(var e=-1,n=Object(u.a)(t,c),r=new Array(n);++e<n;)for(var i,o=-1,a=r[e]=new Array(i);++o<i;)a[o]=t[o][e];return r}},function(t,e,n){"use strict";var r=n(33),A=n(39),T=n(5),k=Object(r.a)();e.a=function(t,e){var n=e[0],r=e[1],i=[Object(T.t)(n),-Object(T.g)(n),0],o=0,a=0;k.reset();for(var u=0,c=t.length;u<c;++u)if(f=(s=t[u]).length)for(var s,f,l=s[f-1],h=l[0],p=l[1]/2+T.q,v=Object(T.t)(p),g=Object(T.g)(p),d=0;d<f;++d,h=b,v=x,g=j,l=y){var y=s[d],b=y[0],m=y[1]/2+T.q,x=Object(T.t)(m),j=Object(T.g)(m),_=b-h,O=0<=_?1:-1,w=O*_,S=w>T.o,M=v*x;if(k.add(Object(T.e)(M*O*Object(T.t)(w),g*j+M*Object(T.g)(w))),o+=S?_+O*T.w:_,S^n<=h^n<=b){var E=Object(A.c)(Object(A.a)(l),Object(A.a)(y));Object(A.e)(E);var C=Object(A.c)(i,E);Object(A.e)(C);var P=(S^0<=_?-1:1)*Object(T.c)(C[2]);(P<r||r===P&&(E[0]||E[1]))&&(a+=S^0<=_?1:-1)}}return(o<-T.i||o<T.i&&k<-T.i)^1&a}},function(t,e,n){"use strict";var r=n(167),i=[null,null],o={type:"LineString",coordinates:i};e.a=function(t,e){return i[0]=t,i[1]=e,Object(r.a)(o)}},function(t,e,n){"use strict";var s,f,l,r=n(33),h=n(5),i=n(21),o=n(26),p=Object(r.a)(),a={sphere:i.a,point:i.a,lineStart:function(){a.point=c,a.lineEnd=u},lineEnd:i.a,polygonStart:i.a,polygonEnd:i.a};function u(){a.point=a.lineEnd=i.a}function c(t,e){t*=h.r,e*=h.r,s=t,f=Object(h.t)(e),l=Object(h.g)(e),a.point=v}function v(t,e){t*=h.r,e*=h.r;var n=Object(h.t)(e),r=Object(h.g)(e),i=Object(h.a)(t-s),o=Object(h.g)(i),a=r*Object(h.t)(i),u=l*n-f*r*o,c=f*n+l*r*o;p.add(Object(h.e)(Object(h.u)(a*a+u*u),c)),s=t,f=n,l=r}e.a=function(t){return p.reset(),Object(o.a)(t,a),+p}},function(t,e,n){"use strict";var r=n(21),i=1/0,o=i,a=-i,u=a,c={point:function(t,e){t<i&&(i=t);a<t&&(a=t);e<o&&(o=e);u<e&&(u=e)},lineStart:r.a,lineEnd:r.a,polygonStart:r.a,polygonEnd:r.a,result:function(){var t=[[i,o],[a,u]];return a=u=-(o=i=1/0),t}};e.a=c},function(t,e,n){"use strict";var r=n(89);e.a=function(){return Object(r.b)().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}},function(t,e,n){"use strict";var _=n(150),O=n(151),r=n(5),w=n(165),S=n(12);function M(t){return 1<t.length}function E(t,e){return((t=t.x)[0]<0?t[1]-r.l-r.i:r.l-t[1])-((e=e.x)[0]<0?e[1]-r.l-r.i:r.l-e[1])}e.a=function(b,m,x,j){return function(r,u){var c,s,f,i=m(u),e=r.invert(j[0],j[1]),l=Object(_.a)(),h=m(l),p=!1,n={point:o,lineStart:a,lineEnd:v,polygonStart:function(){n.point=g,n.lineStart=d,n.lineEnd=y,s=[],c=[]},polygonEnd:function(){n.point=o,n.lineStart=a,n.lineEnd=v,s=Object(S.merge)(s);var t=Object(w.a)(c,e);s.length?(p||(u.polygonStart(),p=!0),Object(O.a)(s,E,t,x,u)):t&&(p||(u.polygonStart(),p=!0),u.lineStart(),x(null,null,1,u),u.lineEnd()),p&&(u.polygonEnd(),p=!1),s=c=null},sphere:function(){u.polygonStart(),u.lineStart(),x(null,null,1,u),u.lineEnd(),u.polygonEnd()}};function o(t,e){var n=r(t,e);b(t=n[0],e=n[1])&&u.point(t,e)}function t(t,e){var n=r(t,e);i.point(n[0],n[1])}function a(){n.point=t,i.lineStart()}function v(){n.point=o,i.lineEnd()}function g(t,e){f.push([t,e]);var n=r(t,e);h.point(n[0],n[1])}function d(){h.lineStart(),f=[]}function y(){g(f[0][0],f[0][1]),h.lineEnd();var t,e,n,r,i=h.clean(),o=l.result(),a=o.length;if(f.pop(),c.push(f),f=null,a)if(1&i){if(0<(e=(n=o[0]).length-1)){for(p||(u.polygonStart(),p=!0),u.lineStart(),t=0;t<e;++t)u.point((r=n[t])[0],r[1]);u.lineEnd()}}else 1<a&&2&i&&o.push(o.pop().concat(o.shift())),s.push(o.filter(M))}return n}}},function(t,e,n){"use strict";e.b=i;var r=n(17);function i(t,e){return[t,e]}i.invert=i,e.a=function(){return Object(r.a)(i).scale(152.63)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(341);n.d(e,"geoAiry",function(){return r.b}),n.d(e,"geoAiryRaw",function(){return r.a});var i=n(173);n.d(e,"geoAitoff",function(){return i.b}),n.d(e,"geoAitoffRaw",function(){return i.a});var o=n(342);n.d(e,"geoArmadillo",function(){return o.b}),n.d(e,"geoArmadilloRaw",function(){return o.a});var a=n(174);n.d(e,"geoAugust",function(){return a.b}),n.d(e,"geoAugustRaw",function(){return a.a});var u=n(343);n.d(e,"geoBaker",function(){return u.b}),n.d(e,"geoBakerRaw",function(){return u.a});var c=n(344);n.d(e,"geoBerghaus",function(){return c.b}),n.d(e,"geoBerghausRaw",function(){return c.a});var s=n(175);n.d(e,"geoBoggs",function(){return s.b}),n.d(e,"geoBoggsRaw",function(){return s.a});var f=n(345);n.d(e,"geoBonne",function(){return f.b}),n.d(e,"geoBonneRaw",function(){return f.a});var l=n(346);n.d(e,"geoBottomley",function(){return l.b}),n.d(e,"geoBottomleyRaw",function(){return l.a});var h=n(347);n.d(e,"geoBromley",function(){return h.b}),n.d(e,"geoBromleyRaw",function(){return h.a});var p=n(348);n.d(e,"geoChamberlin",function(){return p.c}),n.d(e,"geoChamberlinRaw",function(){return p.b}),n.d(e,"geoChamberlinAfrica",function(){return p.a});var v=n(93);n.d(e,"geoCollignon",function(){return v.b}),n.d(e,"geoCollignonRaw",function(){return v.a});var g=n(349);n.d(e,"geoCraig",function(){return g.b}),n.d(e,"geoCraigRaw",function(){return g.a});var d=n(350);n.d(e,"geoCraster",function(){return d.b}),n.d(e,"geoCrasterRaw",function(){return d.a});var y=n(176);n.d(e,"geoCylindricalEqualArea",function(){return y.b}),n.d(e,"geoCylindricalEqualAreaRaw",function(){return y.a});var b=n(351);n.d(e,"geoCylindricalStereographic",function(){return b.b}),n.d(e,"geoCylindricalStereographicRaw",function(){return b.a});var m=n(352);n.d(e,"geoEckert1",function(){return m.a}),n.d(e,"geoEckert1Raw",function(){return m.b});var x=n(353);n.d(e,"geoEckert2",function(){return x.a}),n.d(e,"geoEckert2Raw",function(){return x.b});var j=n(354);n.d(e,"geoEckert3",function(){return j.a}),n.d(e,"geoEckert3Raw",function(){return j.b});var _=n(355);n.d(e,"geoEckert4",function(){return _.a}),n.d(e,"geoEckert4Raw",function(){return _.b});var O=n(356);n.d(e,"geoEckert5",function(){return O.a}),n.d(e,"geoEckert5Raw",function(){return O.b});var w=n(357);n.d(e,"geoEckert6",function(){return w.a}),n.d(e,"geoEckert6Raw",function(){return w.b});var S=n(358);n.d(e,"geoEisenlohr",function(){return S.a}),n.d(e,"geoEisenlohrRaw",function(){return S.b});var M=n(359);n.d(e,"geoFahey",function(){return M.a}),n.d(e,"geoFaheyRaw",function(){return M.b});var E=n(360);n.d(e,"geoFoucaut",function(){return E.a}),n.d(e,"geoFoucautRaw",function(){return E.b});var C=n(361);n.d(e,"geoGilbert",function(){return C.a});var P=n(362);n.d(e,"geoGingery",function(){return P.a}),n.d(e,"geoGingeryRaw",function(){return P.b});var A=n(363);n.d(e,"geoGinzburg4",function(){return A.a}),n.d(e,"geoGinzburg4Raw",function(){return A.b});var T=n(364);n.d(e,"geoGinzburg5",function(){return T.a}),n.d(e,"geoGinzburg5Raw",function(){return T.b});var k=n(365);n.d(e,"geoGinzburg6",function(){return k.a}),n.d(e,"geoGinzburg6Raw",function(){return k.b});var I=n(366);n.d(e,"geoGinzburg8",function(){return I.a}),n.d(e,"geoGinzburg8Raw",function(){return I.b});var L=n(367);n.d(e,"geoGinzburg9",function(){return L.a}),n.d(e,"geoGinzburg9Raw",function(){return L.b});var R=n(177);n.d(e,"geoGringorten",function(){return R.a}),n.d(e,"geoGringortenRaw",function(){return R.b});var D=n(179);n.d(e,"geoGuyou",function(){return D.a}),n.d(e,"geoGuyouRaw",function(){return D.b});var B=n(369);n.d(e,"geoHammer",function(){return B.a}),n.d(e,"geoHammerRaw",function(){return B.b});var F=n(370);n.d(e,"geoHammerRetroazimuthal",function(){return F.a}),n.d(e,"geoHammerRetroazimuthalRaw",function(){return F.b});var N=n(371);n.d(e,"geoHealpix",function(){return N.a}),n.d(e,"geoHealpixRaw",function(){return N.b});var z=n(372);n.d(e,"geoHill",function(){return z.a}),n.d(e,"geoHillRaw",function(){return z.b});var q=n(180);n.d(e,"geoHomolosine",function(){return q.a}),n.d(e,"geoHomolosineRaw",function(){return q.b});var V=n(27);n.d(e,"geoInterrupt",function(){return V.a});var Y=n(373);n.d(e,"geoInterruptedBoggs",function(){return Y.a});var H=n(374);n.d(e,"geoInterruptedHomolosine",function(){return H.a});var W=n(375);n.d(e,"geoInterruptedMollweide",function(){return W.a});var G=n(376);n.d(e,"geoInterruptedMollweideHemispheres",function(){return G.a});var X=n(377);n.d(e,"geoInterruptedSinuMollweide",function(){return X.a});var U=n(378);n.d(e,"geoInterruptedSinusoidal",function(){return U.a});var $=n(379);n.d(e,"geoKavrayskiy7",function(){return $.a}),n.d(e,"geoKavrayskiy7Raw",function(){return $.b});var Z=n(380);n.d(e,"geoLagrange",function(){return Z.a}),n.d(e,"geoLagrangeRaw",function(){return Z.b});var Q=n(381);n.d(e,"geoLarrivee",function(){return Q.a}),n.d(e,"geoLarriveeRaw",function(){return Q.b});var J=n(382);n.d(e,"geoLaskowski",function(){return J.a}),n.d(e,"geoLaskowskiRaw",function(){return J.b});var K=n(383);n.d(e,"geoLittrow",function(){return K.a}),n.d(e,"geoLittrowRaw",function(){return K.b});var tt=n(384);n.d(e,"geoLoximuthal",function(){return tt.a}),n.d(e,"geoLoximuthalRaw",function(){return tt.b});var et=n(385);n.d(e,"geoMiller",function(){return et.a}),n.d(e,"geoMillerRaw",function(){return et.b});var nt=n(386);n.d(e,"geoModifiedStereographic",function(){return nt.a}),n.d(e,"geoModifiedStereographicRaw",function(){return nt.g}),n.d(e,"geoModifiedStereographicAlaska",function(){return nt.b}),n.d(e,"geoModifiedStereographicGs48",function(){return nt.c}),n.d(e,"geoModifiedStereographicGs50",function(){return nt.d}),n.d(e,"geoModifiedStereographicMiller",function(){return nt.f}),n.d(e,"geoModifiedStereographicLee",function(){return nt.e});var rt=n(22);n.d(e,"geoMollweide",function(){return rt.a}),n.d(e,"geoMollweideRaw",function(){return rt.d});var it=n(387);n.d(e,"geoMtFlatPolarParabolic",function(){return it.a}),n.d(e,"geoMtFlatPolarParabolicRaw",function(){return it.b});var ot=n(388);n.d(e,"geoMtFlatPolarQuartic",function(){return ot.a}),n.d(e,"geoMtFlatPolarQuarticRaw",function(){return ot.b});var at=n(389);n.d(e,"geoMtFlatPolarSinusoidal",function(){return at.a}),n.d(e,"geoMtFlatPolarSinusoidalRaw",function(){return at.b});var ut=n(390);n.d(e,"geoNaturalEarth",function(){return ut.a}),n.d(e,"geoNaturalEarthRaw",function(){return ut.b});var ct=n(391);n.d(e,"geoNaturalEarth2",function(){return ct.a}),n.d(e,"geoNaturalEarth2Raw",function(){return ct.b});var st=n(392);n.d(e,"geoNellHammer",function(){return st.a}),n.d(e,"geoNellHammerRaw",function(){return st.b});var ft=n(393);n.d(e,"geoPatterson",function(){return ft.a}),n.d(e,"geoPattersonRaw",function(){return ft.b});var lt=n(394);n.d(e,"geoPolyconic",function(){return lt.a}),n.d(e,"geoPolyconicRaw",function(){return lt.b});var ht=n(64);n.d(e,"geoPolyhedral",function(){return ht.a});var pt=n(396);n.d(e,"geoPolyhedralButterfly",function(){return pt.a});var vt=n(397);n.d(e,"geoPolyhedralCollignon",function(){return vt.a});var gt=n(398);n.d(e,"geoPolyhedralWaterman",function(){return gt.a});var dt=n(399);n.d(e,"geoProject",function(){return dt.a});var yt=n(403);n.d(e,"geoGringortenQuincuncial",function(){return yt.a});var bt=n(181);n.d(e,"geoPeirceQuincuncial",function(){return bt.a}),n.d(e,"geoPierceQuincuncial",function(){return bt.a});var mt=n(404);n.d(e,"geoQuantize",function(){return mt.a});var xt=n(96);n.d(e,"geoQuincuncial",function(){return xt.a});var jt=n(405);n.d(e,"geoRectangularPolyconic",function(){return jt.a}),n.d(e,"geoRectangularPolyconicRaw",function(){return jt.b});var _t=n(406);n.d(e,"geoRobinson",function(){return _t.a}),n.d(e,"geoRobinsonRaw",function(){return _t.b});var Ot=n(407);n.d(e,"geoSatellite",function(){return Ot.a}),n.d(e,"geoSatelliteRaw",function(){return Ot.b});var wt=n(94);n.d(e,"geoSinuMollweide",function(){return wt.a}),n.d(e,"geoSinuMollweideRaw",function(){return wt.c});var St=n(42);n.d(e,"geoSinusoidal",function(){return St.a}),n.d(e,"geoSinusoidalRaw",function(){return St.b});var Mt=n(408);n.d(e,"geoStitch",function(){return Mt.a});var Et=n(409);n.d(e,"geoTimes",function(){return Et.a}),n.d(e,"geoTimesRaw",function(){return Et.b});var Ct=n(410);n.d(e,"geoTwoPointAzimuthal",function(){return Ct.a}),n.d(e,"geoTwoPointAzimuthalRaw",function(){return Ct.b}),n.d(e,"geoTwoPointAzimuthalUsa",function(){return Ct.c});var Pt=n(411);n.d(e,"geoTwoPointEquidistant",function(){return Pt.a}),n.d(e,"geoTwoPointEquidistantRaw",function(){return Pt.b}),n.d(e,"geoTwoPointEquidistantUsa",function(){return Pt.c});var At=n(412);n.d(e,"geoVanDerGrinten",function(){return At.a}),n.d(e,"geoVanDerGrintenRaw",function(){return At.b});var Tt=n(413);n.d(e,"geoVanDerGrinten2",function(){return Tt.a}),n.d(e,"geoVanDerGrinten2Raw",function(){return Tt.b});var kt=n(414);n.d(e,"geoVanDerGrinten3",function(){return kt.a}),n.d(e,"geoVanDerGrinten3Raw",function(){return kt.b});var It=n(415);n.d(e,"geoVanDerGrinten4",function(){return It.a}),n.d(e,"geoVanDerGrinten4Raw",function(){return It.b});var Lt=n(416);n.d(e,"geoWagner4",function(){return Lt.a}),n.d(e,"geoWagner4Raw",function(){return Lt.b});var Rt=n(417);n.d(e,"geoWagner6",function(){return Rt.a}),n.d(e,"geoWagner6Raw",function(){return Rt.b});var Dt=n(418);n.d(e,"geoWagner7",function(){return Dt.a}),n.d(e,"geoWagner7Raw",function(){return Dt.b});var Bt=n(419);n.d(e,"geoWiechel",function(){return Bt.a}),n.d(e,"geoWiechelRaw",function(){return Bt.b});var Ft=n(420);n.d(e,"geoWinkel3",function(){return Ft.a}),n.d(e,"geoWinkel3Raw",function(){return Ft.b})},function(t,e,n){"use strict";e.a=i;var r=n(0),M=n(1);function i(t,e){var n=Object(M.h)(e),r=Object(M.z)(Object(M.b)(n*Object(M.h)(t/=2)));return[2*n*Object(M.y)(t)*r,Object(M.y)(e)*r]}i.invert=function(t,e){if(!(t*t+4*e*e>M.s*M.s+M.k)){var n=t,r=e,i=25;do{var o,a=Object(M.y)(n),u=Object(M.y)(n/2),c=Object(M.h)(n/2),s=Object(M.y)(r),f=Object(M.h)(r),l=Object(M.y)(2*r),h=s*s,p=f*f,v=u*u,g=1-p*c*c,d=g?Object(M.b)(f*c)*Object(M.B)(o=1/g):o=0,y=2*d*f*u-t,b=d*s-e,m=o*(p*v+d*f*c*h),x=o*(.5*a*l-2*d*s*u),j=.25*o*(l*u-d*s*p*a),_=o*(h*c+d*v*f),O=x*j-_*m;if(!O)break;var w=(b*x-y*_)/O,S=(y*j-b*m)/O;n-=w,r-=S}while((Object(M.a)(w)>M.k||Object(M.a)(S)>M.k)&&0<--i);return[n,r]}},e.b=function(){return Object(r.geoProjection)(i).scale(152.63)}},function(t,e,n){"use strict";e.a=i;var r=n(0),s=n(1);function i(t,e){var n=Object(s.F)(e/2),r=Object(s.B)(1-n*n),i=1+r*Object(s.h)(t/=2),o=Object(s.y)(t)*r/i,a=n/i,u=o*o,c=a*a;return[4/3*o*(3+u-3*c),4/3*a*(3+3*u-c)]}i.invert=function(t,e){if(e*=3/8,!(t*=3/8)&&1<Object(s.a)(e))return null;var n=1+t*t+e*e,r=Object(s.B)((n-Object(s.B)(n*n-4*e*e))/2),i=Object(s.e)(r)/3,o=r?Object(s.c)(Object(s.a)(e/r))/3:Object(s.d)(Object(s.a)(t))/3,a=Object(s.h)(i),u=Object(s.i)(o),c=u*u-a*a;return[2*Object(s.x)(t)*Object(s.g)(Object(s.A)(o)*a,.25-c),2*Object(s.x)(e)*Object(s.g)(u*Object(s.y)(i),.25+c)]},e.b=function(){return Object(r.geoProjection)(i).scale(66.1603)}},function(t,e,n){"use strict";e.a=o;var r=n(0),i=n(22),u=n(1),c=2.00276,s=1.11072;function o(t,e){var n=Object(i.c)(u.s,e);return[c*t/(1/Object(u.h)(e)+s/Object(u.h)(n)),(e+u.D*Object(u.y)(n))/c]}o.invert=function(t,e){for(var n,r,i=c*e,o=e<0?-u.u:u.u,a=25;r=i-u.D*Object(u.y)(o),o-=n=(Object(u.y)(2*o)+2*o-u.s*Object(u.y)(r))/(2*Object(u.h)(2*o)+2+u.s*Object(u.h)(r)*u.D*Object(u.h)(o)),Object(u.a)(n)>u.k&&0<--a;);return r=i-u.D*Object(u.y)(o),[t*(1/Object(u.h)(r)+s/Object(u.h)(o))/c,r]},e.b=function(){return Object(r.geoProjection)(o).scale(160.857)}},function(t,e,n){"use strict";e.a=o;var r=n(1),i=n(35);function o(t){var n=Object(r.h)(t);function e(t,e){return[t*n,Object(r.y)(e)/n]}return e.invert=function(t,e){return[t/n,Object(r.e)(e*n)]},e}e.b=function(){return Object(i.a)(o).parallel(38.58).scale(195.044)}},function(t,e,n){"use strict";e.b=o;var r=n(0),R=n(1),i=n(178);function o(t,e){var n=Object(R.x)(t),r=Object(R.x)(e),i=Object(R.h)(e),o=Object(R.h)(t)*i,a=Object(R.y)(t)*i,u=Object(R.y)(r*e);t=Object(R.a)(Object(R.g)(a,u)),e=Object(R.e)(o),Object(R.a)(t-R.o)>R.k&&(t%=R.o);var c=function(t,e){if(e===R.o)return[0,0];var n,r,i=Object(R.y)(e),o=i*i,a=o*o,u=1+a,c=1+3*a,s=1-a,f=Object(R.e)(1/Object(R.B)(u)),l=s+o*u*f,h=(1-i)/l,p=Object(R.B)(h),v=h*u,g=Object(R.B)(v),d=p*s;if(0===t)return[0,-(d+o*g)];var y,b=Object(R.h)(e),m=1/b,x=2*i*b,j=(-l*b-(-3*o+f*c)*x*(1-i))/(l*l),_=-m*x,O=-m*(o*u*j+h*c*x),w=-2*m*(s*(.5*j/p)-2*o*p*x),S=4*t/R.s;if(t>.222*R.s||e<R.s/4&&t>.175*R.s){if(n=(d+o*Object(R.B)(v*(1+a)-d*d))/(1+a),t>R.s/4)return[n,n];var M=n,E=.5*n;n=.5*(E+M),r=50;do{var C=Object(R.B)(v-n*n),P=n*(w+_*C)+O*Object(R.e)(n/g)-S;if(!P)break;P<0?E=n:M=n,n=.5*(E+M)}while(Object(R.a)(M-E)>R.k&&0<--r)}else{n=R.k,r=25;do{var A=n*n,T=Object(R.B)(v-A),k=w+_*T,I=n*k+O*Object(R.e)(n/g)-S,L=k+(O-_*A)/T;n-=y=T?I/L:0}while(Object(R.a)(y)>R.k&&0<--r)}return[n,-d-o*Object(R.B)(v-n*n)]}(t>R.s/4?R.o-t:t,e);return t>R.s/4&&(u=c[0],c[0]=-c[1],c[1]=-u),c[0]*=n,c[1]*=-r,c}o.invert=function(t,e){1<Object(R.a)(t)&&(t=2*Object(R.x)(t)-t),1<Object(R.a)(e)&&(e=2*Object(R.x)(e)-e);var n=Object(R.x)(t),r=Object(R.x)(e),i=-n*t,o=-r*e,a=o/i<1,u=function(t,e){var n=0,r=1,i=.5,o=50;for(;;){var a=i*i,u=Object(R.B)(i),c=Object(R.e)(1/Object(R.B)(1+a)),s=1-a+i*(1+a)*c,f=(1-u)/s,l=Object(R.B)(f),h=f*(1+a),p=l*(1-a),v=h-t*t,g=Object(R.B)(v),d=e+p+i*g;if(Object(R.a)(r-n)<R.l||0==--o||0===d)break;0<d?n=i:r=i,i=.5*(n+r)}if(!o)return null;var y=Object(R.e)(u),b=Object(R.h)(y),m=1/b,x=2*u*b,j=(-s*b-(-3*i+c*(1+3*a))*x*(1-u))/(s*s),_=-2*m*(.5*j/l*(1-a)-2*i*l*x),O=-m*x,w=-m*(i*(1+a)*j+f*(1+3*a)*x);return[R.s/4*(t*(_+O*g)+w*Object(R.e)(t/Object(R.B)(h))),y]}(a?o:i,a?i:o),c=u[0],s=u[1],f=Object(R.h)(s);return a&&(c=-R.o-c),[n*(Object(R.g)(Object(R.y)(c)*f,-Object(R.y)(s))+R.s),r*Object(R.e)(Object(R.h)(c)*f)]},e.a=function(){return Object(r.geoProjection)(Object(i.a)(o)).scale(239.75)}},function(t,e,n){"use strict";var u=n(1);e.a=function(o){var a=o(u.o,0)[0]-o(-u.o,0)[0];function t(t,e){var n=0<t?-.5:.5,r=o(t+n*u.s,e);return r[0]-=n*a,r}return o.invert&&(t.invert=function(t,e){var n=0<t?-.5:.5,r=o.invert(t+n*a,e),i=r[0]-n*u.s;return i<-u.s?i+=2*u.s:i>u.s&&(i-=2*u.s),r[0]=i,r}),t}},function(t,e,n){"use strict";e.b=o;var r=n(0),v=n(368),g=n(1),i=n(178);function o(t,e){var n,r,i,o,a,u=(g.D-1)/(g.D+1),c=Object(g.B)(1-u*u),s=Object(v.a)(g.o,c*c),f=Object(g.p)(Object(g.F)(g.s/4+Object(g.a)(e)/2)),l=Object(g.m)(-1*f)/Object(g.B)(u),h=(n=l*Object(g.h)(-1*t),r=l*Object(g.y)(-1*t),o=r+1,a=1-(i=n*n)-r*r,[.5*((0<=n?g.o:-g.o)-Object(g.g)(a,2*n)),-.25*Object(g.p)(a*a+4*i)+.5*Object(g.p)(o*o+i)]),p=Object(v.b)(h[0],h[1],c*c);return[-p[1],(0<=e?1:-1)*(.5*s-p[0])]}o.invert=function(t,e){var n,r,i,o=(g.D-1)/(g.D+1),a=Object(g.B)(1-o*o),u=Object(v.a)(g.o,a*a),c=Object(v.c)(.5*u-e,-t,a*a),s=(n=c[0],r=c[1],i=r[0]*r[0]+r[1]*r[1],[(n[0]*r[0]+n[1]*r[1])/i,(n[1]*r[0]-n[0]*r[1])/i]);return[Object(g.g)(s[1],s[0])/-1,2*Object(g.f)(Object(g.m)(-.5*Object(g.p)(o*s[0]*s[0]+o*s[1]*s[1])))-g.o]},e.a=function(){return Object(r.geoProjection)(Object(i.a)(o)).scale(151.496)}},function(t,e,n){"use strict";e.b=c;var r=n(0),i=n(1),o=n(22),a=n(42),u=n(94);function c(t,e){return Object(i.a)(e)>u.b?((t=Object(o.d)(t,e))[1]-=0<e?u.d:-u.d,t):Object(a.b)(t,e)}c.invert=function(t,e){return Object(i.a)(e)>u.b?o.d.invert(t,e+(0<e?u.d:-u.d)):a.b.invert(t,e)},e.a=function(){return Object(r.geoProjection)(c).scale(152.63)}},function(t,e,n){"use strict";var r=n(179),i=n(96);e.a=function(){return Object(i.a)(r.b).scale(111.48)}},function(t,e,n){"use strict";var h=n(0),p=n(1);e.a=function(t,e,n){var r=Object(h.geoInterpolate)(e,n),i=r(.5),o=Object(h.geoRotation)([-i[0],-i[1]])(e),a=r.distance/2,u=-Object(p.e)(Object(p.y)(o[1]*p.v)/Object(p.y)(a)),c=[-i[0],-i[1],-(0<o[0]?p.s-u:u)*p.j],s=Object(h.geoProjection)(t(a)).rotate(c),f=Object(h.geoRotation)(c),l=s.center;return delete s.rotate,s.center=function(t){return arguments.length?l(f(t)):f.invert(l())},s.clipAngle(90)}},function(a,t,u){var c,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t){"use strict";function e(){}var n=e.prototype,r=t.EventEmitter;function o(t,e){for(var n=t.length;n--;)if(t[n].listener===e)return n;return-1}function i(t){return function(){return this[t].apply(this,arguments)}}n.getListeners=function(t){var e,n,r=this._getEvents();if(t instanceof RegExp)for(n in e={},r)r.hasOwnProperty(n)&&t.test(n)&&(e[n]=r[n]);else e=r[t]||(r[t]=[]);return e},n.flattenListeners=function(t){var e,n=[];for(e=0;e<t.length;e+=1)n.push(t[e].listener);return n},n.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&((e={})[t]=n),e||n},n.addListener=function(t,e){if(!function t(e){return"function"==typeof e||e instanceof RegExp||!(!e||"object"!==(void 0===e?"undefined":s(e)))&&t(e.listener)}(e))throw new TypeError("listener must be a function");var n,r=this.getListenersAsObject(t),i="object"===(void 0===e?"undefined":s(e));for(n in r)r.hasOwnProperty(n)&&-1===o(r[n],e)&&r[n].push(i?e:{listener:e,once:!1});return this},n.on=i("addListener"),n.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},n.once=i("addOnceListener"),n.defineEvent=function(t){return this.getListeners(t),this},n.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},n.removeListener=function(t,e){var n,r,i=this.getListenersAsObject(t);for(r in i)i.hasOwnProperty(r)&&-1!==(n=o(i[r],e))&&i[r].splice(n,1);return this},n.off=i("removeListener"),n.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},n.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},n.manipulateListeners=function(t,e,n){var r,i,o=t?this.removeListener:this.addListener,a=t?this.removeListeners:this.addListeners;if("object"!==(void 0===e?"undefined":s(e))||e instanceof RegExp)for(r=n.length;r--;)o.call(this,e,n[r]);else for(r in e)e.hasOwnProperty(r)&&(i=e[r])&&("function"==typeof i?o.call(this,r,i):a.call(this,r,i));return this},n.removeEvent=function(t){var e,n=void 0===t?"undefined":s(t),r=this._getEvents();if("string"===n)delete r[t];else if(t instanceof RegExp)for(e in r)r.hasOwnProperty(e)&&t.test(e)&&delete r[e];else delete this._events;return this},n.removeAllListeners=i("removeEvent"),n.emitEvent=function(t,e){var n,r,i,o,a=this.getListenersAsObject(t);for(o in a)if(a.hasOwnProperty(o))for(n=a[o].slice(0),i=0;i<n.length;i++)!0===(r=n[i]).once&&this.removeListener(t,r.listener),r.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,r.listener);return this},n.trigger=i("emitEvent"),n.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},n.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},n._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},n._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return t.EventEmitter=r,e},void 0===(c=function(){return e}.call(t,u,t,a))||(a.exports=c)}(this||{})},function(t,e,n){var y=n(97),b=n(185),m=n(57),x=n(444),j=n(445),_=n(448),O=n(449),w=n(450),S=n(452),M=n(188),E=n(453),C=n(190),P=n(457),A=n(458),T=n(467),k=n(4),I=n(83),L=n(13),R=n(9),D=1,B=2,F=4,N="[object Arguments]",z="[object Function]",q="[object GeneratorFunction]",V="[object Object]",Y={};Y[N]=Y["[object Array]"]=Y["[object ArrayBuffer]"]=Y["[object DataView]"]=Y["[object Boolean]"]=Y["[object Date]"]=Y["[object Float32Array]"]=Y["[object Float64Array]"]=Y["[object Int8Array]"]=Y["[object Int16Array]"]=Y["[object Int32Array]"]=Y["[object Map]"]=Y["[object Number]"]=Y[V]=Y["[object RegExp]"]=Y["[object Set]"]=Y["[object String]"]=Y["[object Symbol]"]=Y["[object Uint8Array]"]=Y["[object Uint8ClampedArray]"]=Y["[object Uint16Array]"]=Y["[object Uint32Array]"]=!0,Y["[object Error]"]=Y[z]=Y["[object WeakMap]"]=!1,t.exports=function n(r,i,o,t,e,a){var u,c=i&D,s=i&B,f=i&F;if(o&&(u=e?o(r,t,e,a):o(r)),void 0!==u)return u;if(!L(r))return r;var l=k(r);if(l){if(u=P(r),!c)return O(r,u)}else{var h=C(r),p=h==z||h==q;if(I(r))return _(r,c);if(h==V||h==N||p&&!e){if(u=s||p?{}:T(r),!c)return s?S(r,j(u,r)):w(r,x(u,r))}else{if(!Y[h])return e?r:{};u=A(r,h,n,c)}}a||(a=new y);var v=a.get(r);if(v)return v;a.set(r,u);var g=f?s?E:M:s?keysIn:R,d=l?void 0:g(r);return b(d||r,function(t,e){d&&(t=r[e=t]),m(u,e,n(t,i,o,e,r,a))}),u}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var r=n(102),i=n(103),o=n(101),a=n(186),u=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,o(t)),t=i(t);return e}:a;t.exports=u},function(t,e,n){var r=n(189),i=n(101),o=n(9);t.exports=function(t){return r(t,o,i)}},function(t,e,n){var i=n(102),o=n(4);t.exports=function(t,e,n){var r=e(t);return o(t)?r:i(r,n(t))}},function(t,e,n){var r=n(454),i=n(98),o=n(455),a=n(191),u=n(456),c=n(19),s=n(140),f="[object Map]",l="[object Promise]",h="[object Set]",p="[object WeakMap]",v="[object DataView]",g=s(r),d=s(i),y=s(o),b=s(a),m=s(u),x=c;(r&&x(new r(new ArrayBuffer(1)))!=v||i&&x(new i)!=f||o&&x(o.resolve())!=l||a&&x(new a)!=h||u&&x(new u)!=p)&&(x=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,r=n?s(n):"";if(r)switch(r){case g:return v;case d:return f;case y:return l;case b:return h;case m:return p}return e}),t.exports=x},function(t,e,n){var r=n(25)(n(14),"Set");t.exports=r},function(t,e,n){var r=n(14).Uint8Array;t.exports=r},function(t,e){t.exports=function(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}},function(t,e){t.exports=function(t){var n=-1,r=Array(t.size);return t.forEach(function(t,e){r[++n]=[e,t]}),r}},function(t,e,n){var p=n(97),v=n(196),g=1,d=2;t.exports=function(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;for(t=Object(t);i--;){var u=n[i];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++i<o;){var c=(u=n[i])[0],s=t[c],f=u[1];if(a&&u[2]){if(void 0===s&&!(c in t))return!1}else{var l=new p;if(r)var h=r(s,f,c,t,e,l);if(!(void 0===h?v(f,s,g|d,r,l):h))return!1}}return!0}},function(t,e,n){var a=n(472),u=n(16);t.exports=function t(e,n,r,i,o){return e===n||(null==e||null==n||!u(e)&&!u(n)?e!=e&&n!=n:a(e,n,r,i,t,o))}},function(t,e,n){var d=n(105),y=n(475),b=n(106),m=1,x=2;t.exports=function(t,e,n,r,i,o){var a=n&m,u=t.length,c=e.length;if(u!=c&&!(a&&u<c))return!1;var s=o.get(t);if(s&&o.get(e))return s==e;var f=-1,l=!0,h=n&x?new d:void 0;for(o.set(t,e),o.set(e,t);++f<u;){var p=t[f],v=e[f];if(r)var g=a?r(v,p,f,e,t,o):r(p,v,f,t,e,o);if(void 0!==g){if(g)continue;l=!1;break}if(h){if(!y(e,function(t,e){if(!b(h,e)&&(p===t||i(p,t,n,r,o)))return h.push(e)})){l=!1;break}}else if(p!==v&&!i(p,v,n,r,o)){l=!1;break}}return o.delete(t),o.delete(e),l}},function(t,e,n){var o=n(199),a=n(9);t.exports=function(t){for(var e=a(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,o(i)]}return e}},function(t,e,n){var r=n(13);t.exports=function(t){return t==t&&!r(t)}},function(t,e){t.exports=function(e,n){return function(t){return null!=t&&t[e]===n&&(void 0!==n||e in Object(t))}}},function(t,e,n){var r=n(483);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(484),i=n(203);t.exports=function(t,e){return null!=t&&i(t,e,r)}},function(t,e,n){var u=n(71),c=n(82),s=n(4),f=n(59),l=n(81),h=n(47);t.exports=function(t,e,n){for(var r=-1,i=(e=u(e,t)).length,o=!1;++r<i;){var a=h(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&l(i)&&f(a,i)&&(s(t)||c(t))}},function(t,e){t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},function(t,e,n){var r=n(492)();t.exports=r},function(t,e,n){var r=n(38);t.exports=function(t){return"function"==typeof t?t:r}},function(t,e,n){var r=n(11),i=n(8),o=n(0),a=n(172),u=n(500);t.exports=function(t){if(r(t))return t();if(i(t)){if(o[t])return o[t]();if(a[t])return a[t]();if(u[t])return u[t]()}return null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(209);n.d(e,"geoArea",function(){return r.c});var i=n(501);n.d(e,"geoBounds",function(){return i.a});var o=n(502);n.d(e,"geoCentroid",function(){return o.a});var a=n(210);n.d(e,"geoCircle",function(){return a.b});var u=n(212);n.d(e,"geoClipExtent",function(){return u.b});var c=n(505);n.d(e,"geoDistance",function(){return c.a});var s=n(506);n.d(e,"geoGraticule",function(){return s.a});var f=n(507);n.d(e,"geoInterpolate",function(){return f.a});var l=n(216);n.d(e,"geoLength",function(){return l.a});var h=n(508);n.d(e,"geoPath",function(){return h.a});var p=n(219);n.d(e,"geoAlbers",function(){return p.a});var v=n(517);n.d(e,"geoAlbersUsa",function(){return v.a});var g=n(518);n.d(e,"geoAzimuthalEqualArea",function(){return g.b}),n.d(e,"geoAzimuthalEqualAreaRaw",function(){return g.a});var d=n(519);n.d(e,"geoAzimuthalEquidistant",function(){return d.b}),n.d(e,"geoAzimuthalEquidistantRaw",function(){return d.a});var y=n(520);n.d(e,"geoConicConformal",function(){return y.b}),n.d(e,"geoConicConformalRaw",function(){return y.a});var b=n(110);n.d(e,"geoConicEqualArea",function(){return b.b}),n.d(e,"geoConicEqualAreaRaw",function(){return b.a});var m=n(521);n.d(e,"geoConicEquidistant",function(){return m.b}),n.d(e,"geoConicEquidistantRaw",function(){return m.a});var x=n(222);n.d(e,"geoEquirectangular",function(){return x.a}),n.d(e,"geoEquirectangularRaw",function(){return x.b});var j=n(522);n.d(e,"geoGnomonic",function(){return j.a}),n.d(e,"geoGnomonicRaw",function(){return j.b});var _=n(18);n.d(e,"geoProjection",function(){return _.a}),n.d(e,"geoProjectionMutator",function(){return _.b});var O=n(113);n.d(e,"geoMercator",function(){return O.a}),n.d(e,"geoMercatorRaw",function(){return O.c});var w=n(523);n.d(e,"geoOrthographic",function(){return w.a}),n.d(e,"geoOrthographicRaw",function(){return w.b});var S=n(524);n.d(e,"geoStereographic",function(){return S.a}),n.d(e,"geoStereographicRaw",function(){return S.b});var M=n(525);n.d(e,"geoTransverseMercator",function(){return M.a}),n.d(e,"geoTransverseMercatorRaw",function(){return M.b});var E=n(109);n.d(e,"geoRotation",function(){return E.a});var C=n(29);n.d(e,"geoStream",function(){return C.a});var P=n(112);n.d(e,"geoTransform",function(){return P.a})},function(t,e,n){"use strict";n.d(e,"a",function(){return v}),n.d(e,"b",function(){return s});var r,i,f,l,h,o=n(49),p=n(6),a=n(28),u=n(29),v=Object(o.a)(),c=Object(o.a)(),s={point:a.a,lineStart:a.a,lineEnd:a.a,polygonStart:function(){v.reset(),s.lineStart=g,s.lineEnd=d},polygonEnd:function(){var t=+v;c.add(t<0?p.w+t:t),this.lineStart=this.lineEnd=this.point=a.a},sphere:function(){c.add(p.w)}};function g(){s.point=y}function d(){b(r,i)}function y(t,e){s.point=b,r=t,i=e,t*=p.r,e*=p.r,f=t,l=Object(p.g)(e=e/2+p.q),h=Object(p.t)(e)}function b(t,e){t*=p.r,e=(e*=p.r)/2+p.q;var n=t-f,r=0<=n?1:-1,i=r*n,o=Object(p.g)(e),a=Object(p.t)(e),u=h*a,c=l*o+u*Object(p.g)(i),s=u*r*Object(p.t)(i);v.add(Object(p.e)(s,c)),f=t,l=o,h=a}e.c=function(t){return c.reset(),Object(u.a)(t,s),2*c}},function(t,e,n){"use strict";e.a=p;var l=n(50),s=n(503),h=n(6),f=n(109);function p(t,e,n,r,i,o){if(n){var a=Object(h.g)(e),u=Object(h.t)(e),c=r*n;null==i?(i=e+r*h.w,o=e-c/2):(i=v(a,i),o=v(a,o),(0<r?i<o:o<i)&&(i+=r*h.w));for(var s,f=i;0<r?o<f:f<o;f-=c)s=Object(l.g)([a,-u*Object(h.g)(f),-u*Object(h.t)(f)]),t.point(s[0],s[1])}}function v(t,e){(e=Object(l.a)(e))[0]-=t,Object(l.e)(e);var n=Object(h.b)(-e[1]);return((-e[2]<0?-n:n)+h.w-h.i)%h.w}e.b=function(){var r,i,o=Object(s.a)([0,0]),a=Object(s.a)(90),u=Object(s.a)(6),c={point:function(t,e){r.push(t=i(t,e)),t[0]*=h.h,t[1]*=h.h}};function e(){var t=o.apply(this,arguments),e=a.apply(this,arguments)*h.r,n=u.apply(this,arguments)*h.r;return r=[],i=Object(f.b)(-t[0]*h.r,-t[1]*h.r,0).invert,p(c,e,n,1),t={type:"Polygon",coordinates:[r]},r=i=null,t}return e.center=function(t){return arguments.length?(o="function"==typeof t?t:Object(s.a)([+t[0],+t[1]]),e):o},e.radius=function(t){return arguments.length?(a="function"==typeof t?t:Object(s.a)(+t),e):a},e.precision=function(t){return arguments.length?(u="function"==typeof t?t:Object(s.a)(+t),e):u},e}},function(t,e,n){"use strict";e.a=function(n,r){function t(t,e){return t=n(t,e),r(t[0],t[1])}return n.invert&&r.invert&&(t.invert=function(t,e){return(t=r.invert(t,e))&&n.invert(t[0],t[1])}),t}},function(t,e,n){"use strict";e.a=c;var r=n(6),w=n(213),S=n(504),M=n(214),E=n(12),C=1e9,P=-C;function c(y,b,m,x){function j(t,e){return y<=t&&t<=m&&b<=e&&e<=x}function _(t,e,n,r){var i=0,o=0;if(null==t||(i=a(t,n))!==(o=a(e,n))||u(t,e)<0^0<n)for(;r.point(0===i||3===i?y:m,1<i?x:b),(i=(i+n+4)%4)!==o;);else r.point(e[0],e[1])}function a(t,e){return Object(r.a)(t[0]-y)<r.i?0<e?0:3:Object(r.a)(t[0]-m)<r.i?0<e?2:1:Object(r.a)(t[1]-b)<r.i?0<e?1:0:0<e?3:2}function O(t,e){return u(t.x,e.x)}function u(t,e){var n=a(t,1),r=a(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(r){var i,l,o,a,u,c,s,f,h,p,v,g=r,t=Object(w.a)(),e={point:n,lineStart:function(){e.point=d,l&&l.push(o=[]);p=!0,h=!1,s=f=NaN},lineEnd:function(){i&&(d(a,u),c&&h&&t.rejoin(),i.push(t.result()));e.point=n,h&&g.lineEnd()},polygonStart:function(){g=t,i=[],l=[],v=!0},polygonEnd:function(){var t=function(){for(var t=0,e=0,n=l.length;e<n;++e)for(var r,i,o=l[e],a=1,u=o.length,c=o[0],s=c[0],f=c[1];a<u;++a)r=s,i=f,c=o[a],s=c[0],f=c[1],i<=x?x<f&&(f-i)*(y-r)<(s-r)*(x-i)&&++t:f<=x&&(s-r)*(x-i)<(f-i)*(y-r)&&--t;return t}(),e=v&&t,n=(i=Object(E.merge)(i)).length;(e||n)&&(r.polygonStart(),e&&(r.lineStart(),_(null,null,1,r),r.lineEnd()),n&&Object(M.a)(i,O,t,_,r),r.polygonEnd());g=r,i=l=o=null}};function n(t,e){j(t,e)&&g.point(t,e)}function d(t,e){var n=j(t,e);if(l&&o.push([t,e]),p)a=t,u=e,p=!1,(c=n)&&(g.lineStart(),g.point(t,e));else if(n&&h)g.point(t,e);else{var r=[s=Math.max(P,Math.min(C,s)),f=Math.max(P,Math.min(C,f))],i=[t=Math.max(P,Math.min(C,t)),e=Math.max(P,Math.min(C,e))];Object(S.a)(r,i,y,b,m,x)?(h||(g.lineStart(),g.point(r[0],r[1])),g.point(i[0],i[1]),n||g.lineEnd(),v=!1):n&&(g.lineStart(),g.point(t,e),v=!1)}s=t,f=e,h=n}return e}}e.b=function(){var e,n,r,i=0,o=0,a=960,u=500;return r={stream:function(t){return e&&n===t?e:e=c(i,o,a,u)(n=t)},extent:function(t){return arguments.length?(i=+t[0][0],o=+t[0][1],a=+t[1][0],u=+t[1][1],e=n=null,r):[[i,o],[a,u]]}}}},function(t,e,n){"use strict";var r=n(28);e.a=function(){var n,e=[];return{point:function(t,e){n.push([t,e])},lineStart:function(){e.push(n=[])},lineEnd:r.a,rejoin:function(){1<e.length&&e.push(e.pop().concat(e.shift()))},result:function(){var t=e;return e=[],n=null,t}}}},function(t,e,n){"use strict";var v=n(215);function g(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function d(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r<e;)i.n=n=t[r],n.p=i,i=n;i.n=n=t[0],n.p=i}}e.a=function(t,e,n,r,o){var a,i,u=[],c=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n,r=t[0],i=t[e];if(Object(v.a)(r,i)){for(o.lineStart(),a=0;a<e;++a)o.point((r=t[a])[0],r[1]);o.lineEnd()}else u.push(n=new g(r,t,null,!0)),c.push(n.o=new g(r,null,n,!1)),u.push(n=new g(i,t,null,!1)),c.push(n.o=new g(i,null,n,!0))}}),u.length){for(c.sort(e),d(u),d(c),a=0,i=c.length;a<i;++a)c[a].e=n=!n;for(var s,f,l=u[0];;){for(var h=l,p=!0;h.v;)if((h=h.n)===l)return;s=h.z,o.lineStart();do{if(h.v=h.o.v=!0,h.e){if(p)for(a=0,i=s.length;a<i;++a)o.point((f=s[a])[0],f[1]);else r(h.x,h.n.x,1,o);h=h.n}else{if(p)for(s=h.p.z,a=s.length-1;0<=a;--a)o.point((f=s[a])[0],f[1]);else r(h.x,h.p.x,-1,o);h=h.p}s=(h=h.o).z,p=!p}while(!h.v);o.lineEnd()}}}},function(t,e,n){"use strict";var r=n(6);e.a=function(t,e){return Object(r.a)(t[0]-e[0])<r.i&&Object(r.a)(t[1]-e[1])<r.i}},function(t,e,n){"use strict";var s,f,l,r=n(49),h=n(6),i=n(28),o=n(29),p=Object(r.a)(),a={sphere:i.a,point:i.a,lineStart:function(){a.point=c,a.lineEnd=u},lineEnd:i.a,polygonStart:i.a,polygonEnd:i.a};function u(){a.point=a.lineEnd=i.a}function c(t,e){t*=h.r,e*=h.r,s=t,f=Object(h.t)(e),l=Object(h.g)(e),a.point=v}function v(t,e){t*=h.r,e*=h.r;var n=Object(h.t)(e),r=Object(h.g)(e),i=Object(h.a)(t-s),o=Object(h.g)(i),a=r*Object(h.t)(i),u=l*n-f*r*o,c=f*n+l*r*o;p.add(Object(h.e)(Object(h.u)(a*a+u*u),c)),s=t,f=n,l=r}e.a=function(t){return p.reset(),Object(o.a)(t,a),+p}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";var r=n(28),i=1/0,o=i,a=-i,u=a,c={point:function(t,e){t<i&&(i=t);a<t&&(a=t);e<o&&(o=e);u<e&&(u=e)},lineStart:r.a,lineEnd:r.a,polygonStart:r.a,polygonEnd:r.a,result:function(){var t=[[i,o],[a,u]];return a=u=-(o=i=1/0),t}};e.a=c},function(t,e,n){"use strict";var r=n(110);e.a=function(){return Object(r.b)().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}},function(t,e,n){"use strict";var _=n(213),O=n(214),r=n(6),w=n(514),S=n(12);function M(t){return 1<t.length}function E(t,e){return((t=t.x)[0]<0?t[1]-r.l-r.i:r.l-t[1])-((e=e.x)[0]<0?e[1]-r.l-r.i:r.l-e[1])}e.a=function(b,m,x,j){return function(r,u){var c,s,f,i=m(u),e=r.invert(j[0],j[1]),l=Object(_.a)(),h=m(l),p=!1,n={point:o,lineStart:a,lineEnd:v,polygonStart:function(){n.point=g,n.lineStart=d,n.lineEnd=y,s=[],c=[]},polygonEnd:function(){n.point=o,n.lineStart=a,n.lineEnd=v,s=Object(S.merge)(s);var t=Object(w.a)(c,e);s.length?(p||(u.polygonStart(),p=!0),Object(O.a)(s,E,t,x,u)):t&&(p||(u.polygonStart(),p=!0),u.lineStart(),x(null,null,1,u),u.lineEnd()),p&&(u.polygonEnd(),p=!1),s=c=null},sphere:function(){u.polygonStart(),u.lineStart(),x(null,null,1,u),u.lineEnd(),u.polygonEnd()}};function o(t,e){var n=r(t,e);b(t=n[0],e=n[1])&&u.point(t,e)}function t(t,e){var n=r(t,e);i.point(n[0],n[1])}function a(){n.point=t,i.lineStart()}function v(){n.point=o,i.lineEnd()}function g(t,e){f.push([t,e]);var n=r(t,e);h.point(n[0],n[1])}function d(){h.lineStart(),f=[]}function y(){g(f[0][0],f[0][1]),h.lineEnd();var t,e,n,r,i=h.clean(),o=l.result(),a=o.length;if(f.pop(),c.push(f),f=null,a)if(1&i){if(0<(e=(n=o[0]).length-1)){for(p||(u.polygonStart(),p=!0),u.lineStart(),t=0;t<e;++t)u.point((r=n[t])[0],r[1]);u.lineEnd()}}else 1<a&&2&i&&o.push(o.pop().concat(o.shift())),s.push(o.filter(M))}return n}}},function(t,e,n){"use strict";e.b=function(n){return function(t,e){return r(n,[[0,0],t],e)}},e.a=function(n){return function(t,e){return r(n,t,e)}};var f=n(29),l=n(218);function r(t,e,n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=o&&t.clipExtent(null),Object(f.a)(n,t.stream(l.a));var a=l.a.result(),u=Math.min(r/(a[1][0]-a[0][0]),i/(a[1][1]-a[0][1])),c=+e[0][0]+(r-u*(a[1][0]+a[0][0]))/2,s=+e[0][1]+(i-u*(a[1][1]+a[0][1]))/2;return null!=o&&t.clipExtent(o),t.scale(150*u).translate([c,s])}},function(t,e,n){"use strict";e.b=i;var r=n(18);function i(t,e){return[t,e]}i.invert=i,e.a=function(){return Object(r.a)(i).scale(152.63)}},function(t,e,n){var r=n(72),i=1/0;t.exports=function(t){return null!=t&&t.length?r(t,i):[]}},function(t,e,n){var r=n(225);t.exports=function(t){if(1===t.length)return 0;var e=r(t);return Math.sqrt(e)}},function(t,e,n){var r=n(116);t.exports=function(t){if(0===t.length)throw new Error("variance requires at least one data point");return r(t,2)/t.length}},function(t,e){t.exports=function(t){if(0===t.length)return 0;for(var e,n=t[0],r=0,i=1;i<t.length;i++)e=n+t[i],Math.abs(n)>=Math.abs(t[i])?r+=n-e+t[i]:r+=t[i]-e+n,n=e;return n+r}},function(t,e){t.exports=function(t){return t.slice().sort(function(t,e){return t-e})}},function(t,e){t.exports=function(t){if(0===t.length)throw new Error("mode requires at least one data point");if(1===t.length)return t[0];for(var e=t[0],n=NaN,r=0,i=1,o=1;o<t.length+1;o++)t[o]!==e?(r<i&&(r=i,n=e),i=1,e=t[o]):i++;return n}},function(t,e){t.exports=function(t){if(0===t.length)throw new Error("min requires at least one data point");for(var e=t[0],n=1;n<t.length;n++)t[n]<e&&(e=t[n]);return e}},function(t,e){t.exports=function(t){if(0===t.length)throw new Error("max requires at least one data point");for(var e=t[0],n=1;n<t.length;n++)t[n]>e&&(e=t[n]);return e}},function(t,e,n){var r=n(117);t.exports=function(t){return+r(t,.5)}},function(t,e,n){var r=n(233);t.exports=function(t,e){var n=t.slice();return r(n.slice(),e)}},function(t,e){t.exports=function(t,e){e=e||Math.random;for(var n,r,i=t.length;0<i;)r=Math.floor(e()*i--),n=t[i],t[i]=t[r],t[r]=n;return t}},function(t,e){t.exports=function(t){for(var e,n=0,r=0;r<t.length;r++)0!==r&&t[r]===e||(e=t[r],n++);return n}},function(t,e,n){var a=n(24);t.exports=function(t,e){if(t.length!==e.length)throw new Error("sampleCovariance requires samples with equal lengths");if(t.length<2)throw new Error("sampleCovariance requires at least two data points in each sample");for(var n=a(t),r=a(e),i=0,o=0;o<t.length;o++)i+=(t[o]-n)*(e[o]-r);return i/(t.length-1)}},function(t,e,n){var r=n(119);t.exports=function(t){var e=r(t);return Math.sqrt(e)}},function(t,e){t.exports=function(t,e,n,r){return(t*e+n*r)/(e+r)}},function(t,e){var i=Math.sqrt(2*Math.PI);function n(t){for(var e=t,n=t,r=1;r<15;r++)e+=n*=t*t/(2*r+1);return Math.round(1e4*(.5+e/i*Math.exp(-t*t/2)))/1e4}for(var r=[],o=0;o<=3.09;o+=.01)r.push(n(o));t.exports=r},function(t,e){t.exports=function(t){var e=8*(Math.PI-3)/(3*Math.PI*(4-Math.PI)),n=Math.sqrt(Math.sqrt(Math.pow(2/(Math.PI*e)+Math.log(1-t*t)/2,2)-Math.log(1-t*t)/e)-(2/(Math.PI*e)+Math.log(1-t*t)/2));return 0<=t?n:-n}},function(t,e){t.exports=function(t){for(var e=1/t,n=[],r=0;r<=1;r+=e)n.push(r);return n}},function(t,e){t.exports=function(t){return null==t}},function(t,e,n){var i=n(243),o=n(70),r=n(0).geoPath,a=n(2),u=a.GEO,c=a.registerConnector,s=r();function f(t,e,n){n.dataType=u;var r=o(t.features);return r.forEach(function(e){e.name=e.properties.name,e.longitude=[],e.latitude=[];var t=e.pathData=s(e);i(t)._path.forEach(function(t){e.longitude.push(t[1]),e.latitude.push(t[2])});var n=s.centroid(e);e.centroidX=n[0],e.centroidY=n[1]}),r}c("geo",f),c("geojson",f),c("GeoJSON",f),t.exports=f},function(t,e,n){var r=n(591),i=n(592),o=n(593);function a(t){if(!(this instanceof a))return new a(t);this._path=i(t)?t:r(t),this._path=o(this._path),this._path=function(t){for(var e=[],n=["L",0,0],r=0,i=t.length;r<i;r++){var o=t[r];switch(o[0]){case"M":n=["L",o[1],o[2]],e.push(o);break;case"Z":e.push(n);break;default:e.push(o)}}return e}(this._path)}function j(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}(t.exports=a).prototype.at=function(t,e){return this._walk(t,e).pos},a.prototype.length=function(){return this._walk(null).length},a.prototype._walk=function(t,e){var n,r,i,o,a,u,c,s,f=[0,0],l=[0,0,0],h=0;"number"==typeof t&&(t*=1.045);for(var p=0;p<this._path.length;p++){var v=this._path[p];if("M"===v[0]){if(f[0]=v[1],f[1]=v[2],0===t)return{length:h,pos:f}}else if("C"===v[0]){l[0]=f[0],l[1]=f[1],l[2]=h;for(var g=100,d=0;d<=g;d++){var y=(c=v,s=x=d/g,Math.pow(1-s,3)*f[0]+3*Math.pow(1-s,2)*s*c[1]+3*(1-s)*Math.pow(s,2)*c[3]+Math.pow(s,3)*c[5]),b=(a=v,u=x,Math.pow(1-u,3)*f[1]+3*Math.pow(1-u,2)*u*a[2]+3*(1-u)*Math.pow(u,2)*a[4]+Math.pow(u,3)*a[6]);if(h+=j(f[0],f[1],y,b),f[0]=y,f[1]=b,"number"==typeof t&&t<=h){var m=(h-t)/(h-l[2]);return{length:h,pos:[f[0]*(1-m)+l[0]*m,f[1]*(1-m)+l[1]*m]}}l[0]=f[0],l[1]=f[1],l[2]=h}}else if("Q"===v[0]){l[0]=f[0],l[1]=f[1],l[2]=h;for(g=100,d=0;d<=g;d++){var x;y=(i=v,o=x=d/g,Math.pow(1-o,2)*f[0]+2*(1-o)*o*i[1]+Math.pow(o,2)*i[3]),b=(n=v,r=x,Math.pow(1-r,2)*f[1]+2*(1-r)*r*n[2]+Math.pow(r,2)*n[4]);if(h+=j(f[0],f[1],y,b),f[0]=y,f[1]=b,"number"==typeof t&&t<=h){m=(h-t)/(h-l[2]);return{length:h,pos:[f[0]*(1-m)+l[0]*m,f[1]*(1-m)+l[1]*m]}}l[0]=f[0],l[1]=f[1],l[2]=h}}else if("L"===v[0]){if(l[0]=f[0],l[1]=f[1],l[2]=h,h+=j(f[0],f[1],v[1],v[2]),f[0]=v[1],f[1]=v[2],"number"==typeof t&&t<=h){m=(h-t)/(h-l[2]);return{length:h,pos:[f[0]*(1-m)+l[0]*m,f[1]*(1-m)+l[1]*m]}}l[0]=f[0],l[1]=f[1],l[2]=h}}return{length:h/1.045,pos:f}}},function(t,e,n){"use strict";e.b=r;var h=n(245);function p(t,e,n){var r=t.x,i=t.y,o=e.r+n.r,a=t.r+n.r,u=e.x-r,c=e.y-i,s=u*u+c*c;if(s){var f=.5+((a*=a)-(o*=o))/(2*s),l=Math.sqrt(Math.max(0,2*o*(a+s)-(a-=s)*a-o*o))/(2*s);n.x=r+f*u+l*c,n.y=i+f*c-l*u}else n.x=r+a,n.y=i}function v(t,e){var n=e.x-t.x,r=e.y-t.y,i=t.r+e.r;return n*n+r*r<i*i-1e-6}function g(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function d(t){this._=t,this.next=null,this.previous=null}function r(t){if(!(i=t.length))return 0;var e,n,r,i,o,a,u,c,s,f,l;if((e=t[0]).x=0,e.y=0,!(1<i))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(2<i))return e.r+n.r;p(n,e,r=t[2]),e=new d(e),n=new d(n),r=new d(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(u=3;u<i;++u){p(e._,n._,r=t[u]),r=new d(r),c=n.next,s=e.previous,f=n._.r,l=e._.r;do{if(f<=l){if(v(c._,r._)){n=c,(e.next=n).previous=e,--u;continue t}f+=c._.r,c=c.next}else{if(v(s._,r._)){((e=s).next=n).previous=e,--u;continue t}l+=s._.r,s=s.previous}}while(c!==s.next);for(r.previous=e,r.next=n,e.next=n.previous=n=r,o=g(e);(r=r.next)!==n;)(a=g(r))<o&&(e=r,o=a);n=e.next}for(e=[n._],r=n;(r=r.next)!==n;)e.push(r._);for(r=Object(h.a)(e),u=0;u<i;++u)(e=t[u]).x-=r.x,e.y-=r.y;return r.r}e.a=function(t){return r(t),t}},function(t,e,n){"use strict";var a=n(611);function u(t,e){var n,r;if(o(e,t))return[e];for(n=0;n<t.length;++n)if(i(e,t[n])&&o(f(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(i(f(t[n],t[r]),e)&&i(f(t[n],e),t[r])&&i(f(t[r],e),t[n])&&o(l(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function i(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function c(t,e){var n=t.r-e.r+1e-6,r=e.x-t.x,i=e.y-t.y;return 0<n&&r*r+i*i<n*n}function o(t,e){for(var n=0;n<e.length;++n)if(!c(t,e[n]))return!1;return!0}function s(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return f(t[0],t[1]);case 3:return l(t[0],t[1],t[2])}var e}function f(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,u=e.r,c=o-n,s=a-r,f=u-i,l=Math.sqrt(c*c+s*s);return{x:(n+o+c/l*f)/2,y:(r+a+s/l*f)/2,r:(l+i+u)/2}}function l(t,e,n){var r=t.x,i=t.y,o=t.r,a=e.x,u=e.y,c=e.r,s=n.x,f=n.y,l=n.r,h=r-a,p=r-s,v=i-u,g=i-f,d=c-o,y=l-o,b=r*r+i*i-o*o,m=b-a*a-u*u+c*c,x=b-s*s-f*f+l*l,j=p*v-h*g,_=(v*x-g*m)/(2*j)-r,O=(g*d-v*y)/j,w=(p*m-h*x)/(2*j)-i,S=(h*y-p*d)/j,M=O*O+S*S-1,E=2*(o+_*O+w*S),C=_*_+w*w-o*o,P=-(M?(E+Math.sqrt(E*E-4*M*C))/(2*M):C/E);return{x:r+_+O*P,y:i+w+S*P,r:P}}e.a=function(t){for(var e,n,r=0,i=(t=Object(a.a)(a.b.call(t))).length,o=[];r<i;)e=t[r],n&&c(n,e)?++r:(n=s(o=u(o,e)),r=0);return n}},function(t,e,n){"use strict";e.a=function(){return 0},e.b=function(t){return function(){return t}}},function(t,e,n){"use strict";e.a=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}},function(t,e,n){"use strict";var s=n(125);e.a=function(t){var e,i=Object(s.a)(t.transform),o=1/0,a=o,u=-o,c=-o;function n(t){(t=i(t))[0]<o&&(o=t[0]),t[0]>u&&(u=t[0]),t[1]<a&&(a=t[1]),t[1]>c&&(c=t[1])}function r(t){switch(t.type){case"GeometryCollection":t.geometries.forEach(r);break;case"Point":n(t.coordinates);break;case"MultiPoint":t.coordinates.forEach(n)}}for(e in t.arcs.forEach(function(t){for(var e,n=-1,r=t.length;++n<r;)(e=i(t[n],n))[0]<o&&(o=e[0]),e[0]>u&&(u=e[0]),e[1]<a&&(a=e[1]),e[1]>c&&(c=e[1])}),t.objects)r(t.objects[e]);return[o,a,u,c]}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";e.a=function(c,i){var o={},s={},f={},a=[],u=-1;function t(t,e){for(var n in t){var r=t[n];delete e[r.start],delete r.start,delete r.end,r.forEach(function(t){o[t<0?~t:t]=1}),a.push(r)}}return i.forEach(function(t,e){var n,r=c.arcs[t<0?~t:t];r.length<3&&!r[1][0]&&!r[1][1]&&(n=i[++u],i[u]=t,i[e]=n)}),i.forEach(function(t){var e,n,r=function(t){var e,n=c.arcs[t<0?~t:t],r=n[0];c.transform?(e=[0,0],n.forEach(function(t){e[0]+=t[0],e[1]+=t[1]})):e=n[n.length-1];return t<0?[e,r]:[r,e]}(t),i=r[0],o=r[1];if(e=f[i])if(delete f[e.end],e.push(t),e.end=o,n=s[o]){delete s[n.start];var a=n===e?e:e.concat(n);s[a.start=e.start]=f[a.end=n.end]=a}else s[e.start]=f[e.end]=e;else if(e=s[o])if(delete s[e.start],e.unshift(t),e.start=i,n=f[i]){delete f[n.end];var u=n===e?e:n.concat(e);s[u.start=n.start]=f[u.end=e.end]=u}else s[e.start]=f[e.end]=e;else s[(e=[t]).start=i]=f[e.end=o]=e}),t(f,s),t(s,f),i.forEach(function(t){o[t<0?~t:t]||a.push([t])}),a}},function(t,e,n){"use strict";var r=n(249);e.a=function(t){if(null==t)return r.a;var u,c,s=t.scale[0],f=t.scale[1],l=t.translate[0],h=t.translate[1];return function(t,e){e||(u=c=0);var n=2,r=t.length,i=new Array(r),o=Math.round((t[0]-l)/s),a=Math.round((t[1]-h)/f);for(i[0]=o-u,u=o,i[1]=a-c,c=a;n<r;)i[n]=t[n],++n;return i}}},function(t,e,n){var r=n(632);t.exports=function(t,e){return!(null==t||!t.length)&&-1<r(t,e,0)}},function(t,e){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},function(t,e){var n=Array.prototype.reverse;t.exports=function(t){return null==t?t:n.call(t)}},function(t,e,n){var a=n(115),u=n(20);t.exports=function(t,r){var i=-1,o=u(t)?Array(t.length):[];return a(t,function(t,e,n){o[++i]=r(t,e,n)}),o}},function(t,e,n){"use strict";e.c=function(t){return t.depth},e.d=function(t,e){return e-1-t.height},e.b=function(t,e){return t.sourceLinks.length?t.depth:e-1},e.a=function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?Object(r.min)(t.sourceLinks,i)-1:0};var r=n(12);function i(t){return t.target.depth}},function(t,e,n){"use strict";var b=n(30),r=n(31),i=n(75),o=n(131),a=n(132);e.a=function(){var f=a.a,l=null,h=Object(r.a)(0),p=a.b,v=Object(r.a)(!0),g=null,d=i.a,y=null;function e(t){var e,n,r,i,o,a=t.length,u=!1,c=new Array(a),s=new Array(a);for(null==g&&(y=d(o=Object(b.path)())),e=0;e<=a;++e){if(!(e<a&&v(i=t[e],e,t))===u)if(u=!u)n=e,y.areaStart(),y.lineStart();else{for(y.lineEnd(),y.lineStart(),r=e-1;n<=r;--r)y.point(c[r],s[r]);y.lineEnd(),y.areaEnd()}u&&(c[e]=+f(i,e,t),s[e]=+h(i,e,t),y.point(l?+l(i,e,t):c[e],p?+p(i,e,t):s[e]))}if(o)return y=null,o+""||null}function t(){return Object(o.a)().defined(v).curve(d).context(g)}return e.x=function(t){return arguments.length?(f="function"==typeof t?t:Object(r.a)(+t),l=null,e):f},e.x0=function(t){return arguments.length?(f="function"==typeof t?t:Object(r.a)(+t),e):f},e.x1=function(t){return arguments.length?(l=null==t?null:"function"==typeof t?t:Object(r.a)(+t),e):l},e.y=function(t){return arguments.length?(h="function"==typeof t?t:Object(r.a)(+t),p=null,e):h},e.y0=function(t){return arguments.length?(h="function"==typeof t?t:Object(r.a)(+t),e):h},e.y1=function(t){return arguments.length?(p=null==t?null:"function"==typeof t?t:Object(r.a)(+t),e):p},e.lineX0=e.lineY0=function(){return t().x(f).y(h)},e.lineY1=function(){return t().x(f).y(p)},e.lineX1=function(){return t().x(l).y(h)},e.defined=function(t){return arguments.length?(v="function"==typeof t?t:Object(r.a)(!!t),e):v},e.curve=function(t){return arguments.length?(d=t,null!=g&&(y=d(g)),e):d},e.context=function(t){return arguments.length?(null==t?g=y=null:y=d(g=t),e):g},e}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=(e.b=o)(n(75).a);function i(t){this._curve=t}function o(e){function t(t){return new i(e(t))}return t._curve=e,t}i.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}}},function(t,e,n){"use strict";e.a=i;var r=n(258);n(131);function i(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(Object(r.b)(t)):e()._curve},t}},function(t,e,n){"use strict";e.a=function(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}},function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Array.prototype.slice},function(t,e,n){"use strict";var r=n(53);e.a={draw:function(t,e){var n=Math.sqrt(e/r.j);t.moveTo(n,0),t.arc(0,0,n,0,r.m)}}},function(t,e,n){"use strict";e.a={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}}},function(t,e,n){"use strict";var i=Math.sqrt(1/3),o=2*i;e.a={draw:function(t,e){var n=Math.sqrt(e/o),r=n*i;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}}},function(t,e,n){"use strict";var s=n(53),r=Math.sin(s.j/10)/Math.sin(7*s.j/10),f=Math.sin(s.m/10)*r,l=-Math.cos(s.m/10)*r;e.a={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=f*n,i=l*n;t.moveTo(0,-n),t.lineTo(r,i);for(var o=1;o<5;++o){var a=s.m*o/5,u=Math.cos(a),c=Math.sin(a);t.lineTo(c*n,-u*n),t.lineTo(u*r-c*i,c*r+u*i)}t.closePath()}}},function(t,e,n){"use strict";e.a={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}}},function(t,e,n){"use strict";var r=Math.sqrt(3);e.a={draw:function(t,e){var n=-Math.sqrt(e/(3*r));t.moveTo(0,2*n),t.lineTo(-r*n,-n),t.lineTo(r*n,-n),t.closePath()}}},function(t,e,n){"use strict";var s=Math.sqrt(3)/2,f=1/Math.sqrt(12),l=3*(f/2+1);e.a={draw:function(t,e){var n=Math.sqrt(e/l),r=n/2,i=n*f,o=r,a=n*f+n,u=-o,c=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(u,c),t.lineTo(-.5*r-s*i,s*r+-.5*i),t.lineTo(-.5*o-s*a,s*o+-.5*a),t.lineTo(-.5*u-s*c,s*u+-.5*c),t.lineTo(-.5*r+s*i,-.5*i-s*r),t.lineTo(-.5*o+s*a,-.5*a-s*o),t.lineTo(-.5*u+s*c,-.5*c-s*u),t.closePath()}}},function(t,e,n){"use strict";e.a=o;var r=n(76),i=n(78);function o(t,e){this._context=t,this._k=(1-e)/6}o.prototype={areaStart:r.a,areaEnd:r.a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Object(i.b)(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function e(n){function t(t){return new o(t,n)}return t.tension=function(t){return e(+t)},t})(0)},function(t,e,n){"use strict";e.a=i;var r=n(78);function i(t,e){this._context=t,this._k=(1-e)/6}i.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Object(r.b)(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function e(n){function t(t){return new i(t,n)}return t.tension=function(t){return e(+t)},t})(0)},function(t,e,n){"use strict";e.c=function(t){return P.b[t.index]={site:t,halfedges:[]}},e.a=A,e.d=function(){for(var t,e,n,r,i=0,o=P.b.length;i<o;++i)if((t=P.b[i])&&(r=(e=t.halfedges).length)){var a=new Array(r),u=new Array(r);for(n=0;n<r;++n)a[n]=n,u[n]=c(t,P.e[e[n]]);for(a.sort(function(t,e){return u[e]-u[t]}),n=0;n<r;++n)u[n]=e[a[n]];for(n=0;n<r;++n)e[n]=u[n]}},e.b=function(t,e,n,r){var i,o,a,u,c,s,f,l,h,p,v,g,d=P.b.length,y=!0;for(i=0;i<d;++i)if(o=P.b[i]){for(a=o.site,c=o.halfedges,u=c.length;u--;)P.e[c[u]]||c.splice(u,1);for(u=0,s=c.length;u<s;)b=o,m=P.e[c[u]],p=m[+(m.left===b.site)],v=p[0],g=p[1],f=A(o,P.e[c[++u%s]]),l=f[0],h=f[1],(Math.abs(v-l)>P.f||Math.abs(g-h)>P.f)&&(c.splice(u,0,P.e.push(Object(C.b)(a,p,Math.abs(v-t)<P.f&&r-g>P.f?[t,Math.abs(l-t)<P.f?h:r]:Math.abs(g-r)<P.f&&n-v>P.f?[Math.abs(h-r)<P.f?l:n,r]:Math.abs(v-n)<P.f&&g-e>P.f?[n,Math.abs(l-n)<P.f?h:e]:Math.abs(g-e)<P.f&&v-t>P.f?[Math.abs(h-e)<P.f?l:t,e]:null))-1),++s);s&&(y=!1)}var b,m;if(y){var x,j,_,O=1/0;for(i=0,y=null;i<d;++i)(o=P.b[i])&&(a=o.site,x=a[0]-t,j=a[1]-e,(_=x*x+j*j)<O&&(O=_,y=o));if(y){var w=[t,e],S=[t,r],M=[n,r],E=[n,e];y.halfedges.push(P.e.push(Object(C.b)(a=y.site,w,S))-1,P.e.push(Object(C.b)(a,S,M))-1,P.e.push(Object(C.b)(a,M,E))-1,P.e.push(Object(C.b)(a,E,w))-1)}}for(i=0;i<d;++i)(o=P.b[i])&&(o.halfedges.length||delete P.b[i])};var C=n(136),P=n(56);function c(t,e){var n=t.site,r=e.left,i=e.right;return n===i&&(i=r,r=n),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(n===r?(r=e[1],i=e[0]):(r=e[0],i=e[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function A(t,e){return e[+(e.left!==t.site)]}},function(t,e,n){"use strict";n.d(e,"c",function(){return x}),e.a=function(t){var e=t.P,n=t.N;if(!e||!n)return;var r=e.site,i=t.site,o=n.site;if(r===o)return;var a=i[0],u=i[1],c=r[0]-a,s=r[1]-u,f=o[0]-a,l=o[1]-u,h=2*(c*l-s*f);if(h>=-_.g)return;var p=c*c+s*s,v=f*f+l*l,g=(l*p-s*v)/h,d=(c*v-f*p)/h,y=O.pop()||new function(){Object(j.a)(this),this.x=this.y=this.arc=this.site=this.cy=null};y.arc=t,y.site=i,y.x=g+a,y.y=(y.cy=d+u)+Math.sqrt(g*g+d*d),t.circle=y;var b=null,m=_.c._;for(;m;)if(y.y<m.y||y.y===m.y&&y.x<=m.x){if(!m.L){b=m.P;break}m=m.L}else{if(!m.R){b=m;break}m=m.R}_.c.insert(b,y),b||(x=y)},e.b=function(t){var e=t.circle;e&&(e.P||(x=e.N),_.c.remove(e),O.push(e),Object(j.a)(e),t.circle=null)};var x,j=n(135),_=n(56),O=[]},function(t,e){var p={getId:function(t){return t.id||t.name},getHGap:function(t){return t.hgap||18},getVGap:function(t){return t.vgap||18},getChildren:function(t){return t.children},getHeight:function(t){return t.height||36},getWidth:function(t){var e=t.name||" ";return t.width||18*e.split("").length}},n=function(){function h(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h);var r=this;if(r.vgap=r.hgap=0,t instanceof h)return t;r.data=t;var i=(e.getHGap||p.getHGap)(t),o=(e.getVGap||p.getVGap)(t);if(r.width=(e.getWidth||p.getWidth)(t),r.height=(e.getHeight||p.getHeight)(t),r.id=(e.getId||p.getId)(t),r.x=r.y=0,r.inAnchor={x:0,y:.5},r.outAnchor={x:1,y:.5},r.depth=0,!n&&!t.isCollapsed)for(var a=[r],u=a.pop();u;){if(!u.data.isCollapsed){var c=(e.getChildren||p.getChildren)(u.data),s=c?c.length:0;if(u.children=[],c&&s)for(var f=0;f<s;f++){var l=new h(c[f],e);u.children.push(l),a.push(l),l.parent=u,l.depth=u.depth+1}}u=a.pop()}r.children||(r.children=[]),r.addGap(i,o)}return h.prototype.isRoot=function(){return 0===this.depth},h.prototype.isLeaf=function(){return 0===this.children.length},h.prototype.addGap=function(t,e){this.hgap+=t,this.vgap+=e,this.width+=2*t,this.height+=2*e},h.prototype.eachNode=function(t){for(var e=[this],n=e.pop();n;)t(n),n=(e=e.concat(n.children)).pop()},h.prototype.DFTraverse=function(t){this.eachNode(t)},h.prototype.BFTraverse=function(t){for(var e=[this],n=e.shift();n;)t(n),n=(e=e.concat(n.children)).shift()},h.prototype.getBoundingBox=function(){var e={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(function(t){e.left=Math.min(e.left,t.x),e.top=Math.min(e.top,t.y),e.width=Math.max(e.width,t.x+t.width),e.height=Math.max(e.height,t.y+t.height)}),e},h.prototype.translate=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;this.eachNode(function(t){t.x+=e,t.y+=n})},h.prototype.right2left=function(){var e=this.getBoundingBox();this.eachNode(function(t){t.x=t.x-2*(t.x-e.left)-t.width}),this.translate(e.width,0)},h.prototype.bottom2top=function(){var e=this.getBoundingBox();this.eachNode(function(t){t.y=t.y-2*(t.y-e.top)-t.height}),this.translate(0,e.height)},h.prototype.getCenterX=function(){return this.x+this.width/2},h.prototype.getCenterY=function(){return this.y+this.height/2},h.prototype.getActualWidth=function(){return this.width-2*this.hgap},h.prototype.getActualHeight=function(){return this.height-2*this.vgap},h.prototype.getAnchorPoint=function(t){var e=this.getActualWidth(),n=this.getActualHeight();return{x:this.x+this.hgap+e*t.x,y:this.y+this.vgap+n*t.y}},h}();n.prototype.each=n.prototype.eachNode,t.exports=n},function(t,e,n){var s=n(275),f=["LR","RL","TB","BT","H","V"],l=["LR","RL","H"],h=f[0];t.exports=function(t,e,n){var r,i=e.direction||h;if(e.isHorizontal=(r=i,-1<l.indexOf(r)),i&&-1===f.indexOf(i))throw new TypeError("Invalid direction: "+i);if(i===f[0])n(t,e);else if(i===f[1])n(t,e),t.right2left();else if(i===f[2])n(t,e);else if(i===f[3])n(t,e),t.bottom2top();else if(i===f[4]||i===f[5]){var o=s(t,e),a=o.left,u=o.right;n(a,e),n(u,e),e.isHorizontal?a.right2left():a.bottom2top(),u.translate(a.x-u.x,a.y-u.y),t.x=a.x,t.y=u.y;var c=t.getBoundingBox();e.isHorizontal?c.top<0&&t.translate(0,-c.top):c.left<0&&t.translate(-c.left,0)}return t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),t.eachNode(function(t){var e=t.data;e.x=t.x+t.width/2+t.hgap,e.y=t.y+t.height/2+t.vgap,e.align=t.align}),t}},function(t,e,n){var c=n(273);t.exports=function(t,e){for(var n=new c(t.data,e,!0),r=new c(t.data,e,!0),i=t.children.length,o=Math.round(i/2),a=0;a<i;a++){var u=t.children[a];a<o?r.children.push(u):n.children.push(u)}return n.eachNode(function(t){t.isRoot()||(t.side="left")}),r.eachNode(function(t){t.isRoot()||(t.side="right")}),{left:n,right:r}}},function(t,e){function n(t){return Math.abs(t)<=1?.5:0}t.exports={boxcar:n,cosine:function(t){return Math.abs(t)<=1?Math.PI/4*Math.cos(Math.PI/2*t):0},epanechnikov:function(t){return Math.abs(t)<1?.75*(1-t*t):0},gaussian:function(t){return.3989422804*Math.exp(-.5*t*t)},quartic:function(t){if(Math.abs(t)<1){var e=1-t*t;return.9375*e*e}return 0},triangular:function(t){var e=Math.abs(t);return e<1?1-e:0},tricube:function(t){return Math.abs(t)<1?70/81*(e=t,n=1-Math.pow(Math.abs(e),3),Math.pow(n,3)):0;var e,n},triweight:function(t){if(Math.abs(t)<1){var e=1-t*t;return 35/32*e*e*e}return 0},uniform:n}},function(t,e,n){n(278),n(527),n(528),n(537),n(584),n(586),n(590),n(242),n(594),n(595),n(597),n(619),n(627),n(628),n(629),n(636),n(637),n(638),n(639),n(640),n(641),n(643),n(644),n(645),n(651),n(652),n(653),n(657),n(662),n(664),n(665),n(666),n(667),n(668),n(669),n(670),n(671),n(672),n(708),n(714),n(715),n(717),n(719),n(721),n(722),n(723),n(724),n(725),n(727),n(731),n(732),t.exports=n(2)},function(t,e,n){var r=n(3),i=n(0),o=i.geoArea,a=i.geoCentroid,u=i.geoContains,c=i.geoDistance,s=i.geoLength,f=n(172).geoProject,l=n(43),h=n(207);r(l.prototype,{geoArea:function(t){return o(t)},geoAreaByName:function(t){return o(this.geoFeatureByName(t))},geoCentroid:function(t){return a(t)},geoCentroidByName:function(t){return a(this.geoFeatureByName(t))},geoDistance:function(t,e){return c(t,e)},geoLength:function(t){return s(t)},geoLengthByName:function(t){return s(this.geoFeatureByName(t))},geoContains:function(t,e){return u(t,e)},geoFeatureByName:function(e){var t=this.rows,n=void 0;return t.some(function(t){return t.name===e&&(n=t,!0)}),n},geoFeatureByPosition:function(e){var t=this.rows,n=void 0;return t.some(function(t){return!!u(t,e)&&(n=t,!0)}),n},geoNameByPosition:function(t){var e=this.geoFeatureByPosition(t);if(e)return e.name},geoProject:function(t,e){return e=h(e),f(t,e)},geoProjectByName:function(t,e){return e=h(e),f(this.geoFeatureByName(t),e)},geoProjectPosition:function(t,e){return(e=h(e))(t)},geoProjectInvert:function(t,e){return(e=h(e)).invert(t)}})},function(t,e,n){var r=n(11),i=n(283),o=n(13),a=n(140),u=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,f=c.toString,l=s.hasOwnProperty,h=RegExp("^"+f.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?h:u).test(a(t))}},function(t,e){var n,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}t.exports=n},function(t,e,n){var r=n(32),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,u=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,u),n=t[u];try{var r=!(t[u]=void 0)}catch(t){}var i=a.call(t);return r&&(e?t[u]=n:delete t[u]),i}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r,i=n(284),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},function(t,e,n){var r=n(14)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(80),c=n(143);t.exports=function(u){return r(function(t,e){var n=-1,r=e.length,i=1<r?e[r-1]:void 0,o=2<r?e[2]:void 0;for(i=3<u.length&&"function"==typeof i?(r--,i):void 0,o&&c(e[0],e[1],o)&&(i=r<3?void 0:i,r=1),t=Object(t);++n<r;){var a=e[n];a&&u(t,a,n,i)}return t})}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var r=n(289),i=n(138),o=n(38),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=a},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var o=800,a=16,u=Date.now;t.exports=function(n){var r=0,i=0;return function(){var t=u(),e=a-(t-i);if(i=t,0<e){if(++r>=o)return arguments[0]}else r=0;return n.apply(void 0,arguments)}}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(19),i=n(16),o="[object Arguments]";t.exports=function(t){return i(t)&&r(t)==o}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(19),i=n(81),o=n(16),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},function(t,u,c){(function(t){var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=c(139),r="object"==e(u)&&u&&!u.nodeType&&u,i=r&&"object"==e(t)&&t&&!t.nodeType&&t,o=i&&i.exports===r&&n.process,a=function(){try{return o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a}).call(u,c(84)(t))},function(t,e,n){var r=n(60),i=n(297),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){var r=n(146)(Object.keys,Object);t.exports=r},function(t,e,n){"use strict";var l,h,p,v,g,r,i,d,y,b,o=n(33),a=n(147),m=n(39),x=n(5),c=n(26),u=Object(o.a)(),s={point:f,lineStart:_,lineEnd:O,polygonStart:function(){s.point=w,s.lineStart=S,s.lineEnd=M,u.reset(),a.b.polygonStart()},polygonEnd:function(){a.b.polygonEnd(),s.point=f,s.lineStart=_,s.lineEnd=O,a.a<0?(l=-(p=180),h=-(v=90)):u>x.i?v=90:u<-x.i&&(h=-90),b[0]=l,b[1]=p}};function f(t,e){y.push(b=[l=t,p=t]),e<h&&(h=e),v<e&&(v=e)}function j(t,e){var n=Object(m.a)([t*x.r,e*x.r]);if(d){var r=Object(m.c)(d,n),i=[r[1],-r[0],0],o=Object(m.c)(i,r);Object(m.e)(o),o=Object(m.g)(o);var a,u=t-g,c=0<u?1:-1,s=o[0]*x.h*c,f=180<Object(x.a)(u);f^(c*g<s&&s<c*t)?(a=o[1]*x.h,v<a&&(v=a)):f^(c*g<(s=(s+360)%360-180)&&s<c*t)?(a=-o[1]*x.h)<h&&(h=a):(e<h&&(h=e),v<e&&(v=e)),f?t<g?E(l,t)>E(l,p)&&(p=t):E(t,p)>E(l,p)&&(l=t):l<=p?(t<l&&(l=t),p<t&&(p=t)):g<t?E(l,t)>E(l,p)&&(p=t):E(t,p)>E(l,p)&&(l=t)}else y.push(b=[l=t,p=t]);e<h&&(h=e),v<e&&(v=e),d=n,g=t}function _(){s.point=j}function O(){b[0]=l,b[1]=p,s.point=f,d=null}function w(t,e){if(d){var n=t-g;u.add(180<Object(x.a)(n)?n+(0<n?360:-360):n)}else r=t,i=e;a.b.point(t,e),j(t,e)}function S(){a.b.lineStart()}function M(){w(r,i),a.b.lineEnd(),Object(x.a)(u)>x.i&&(l=-(p=180)),b[0]=l,b[1]=p,d=null}function E(t,e){return(e-=t)<0?e+360:e}function C(t,e){return t[0]-e[0]}function P(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}e.a=function(t){var e,n,r,i,o,a,u;if(v=p=-(l=h=1/0),y=[],Object(c.a)(t,s),n=y.length){for(y.sort(C),e=1,o=[r=y[0]];e<n;++e)P(r,(i=y[e])[0])||P(r,i[1])?(E(r[0],i[1])>E(r[0],r[1])&&(r[1]=i[1]),E(i[0],r[1])>E(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,e=0,r=o[n=o.length-1];e<=n;r=i,++e)i=o[e],(u=E(r[1],i[0]))>a&&(a=u,l=i[0],p=r[1])}return y=b=null,l===1/0||h===1/0?[[NaN,NaN],[NaN,NaN]]:[[l,h],[p,v]]}},function(t,e,n){"use strict";var o,h,a,u,c,p,v,g,d,y,b,r,i,m,x,j,_=n(5),s=n(21),f=n(26),l={sphere:s.a,point:O,lineStart:S,lineEnd:C,polygonStart:function(){l.lineStart=P,l.lineEnd=A},polygonEnd:function(){l.lineStart=S,l.lineEnd=C}};function O(t,e){t*=_.r,e*=_.r;var n=Object(_.g)(e);w(n*Object(_.g)(t),n*Object(_.t)(t),Object(_.t)(e))}function w(t,e,n){a+=(t-a)/++o,u+=(e-u)/o,c+=(n-c)/o}function S(){l.point=M}function M(t,e){t*=_.r,e*=_.r;var n=Object(_.g)(e);m=n*Object(_.g)(t),x=n*Object(_.t)(t),j=Object(_.t)(e),l.point=E,w(m,x,j)}function E(t,e){t*=_.r,e*=_.r;var n=Object(_.g)(e),r=n*Object(_.g)(t),i=n*Object(_.t)(t),o=Object(_.t)(e),a=Object(_.e)(Object(_.u)((a=x*o-j*i)*a+(a=j*r-m*o)*a+(a=m*i-x*r)*a),m*r+x*i+j*o);h+=a,p+=a*(m+(m=r)),v+=a*(x+(x=i)),g+=a*(j+(j=o)),w(m,x,j)}function C(){l.point=O}function P(){l.point=T}function A(){k(r,i),l.point=O}function T(t,e){r=t,i=e,t*=_.r,e*=_.r,l.point=k;var n=Object(_.g)(e);m=n*Object(_.g)(t),x=n*Object(_.t)(t),j=Object(_.t)(e),w(m,x,j)}function k(t,e){t*=_.r,e*=_.r;var n=Object(_.g)(e),r=n*Object(_.g)(t),i=n*Object(_.t)(t),o=Object(_.t)(e),a=x*o-j*i,u=j*r-m*o,c=m*i-x*r,s=Object(_.u)(a*a+u*u+c*c),f=Object(_.c)(s),l=s&&-f/s;d+=l*a,y+=l*u,b+=l*c,h+=f,p+=f*(m+(m=r)),v+=f*(x+(x=i)),g+=f*(j+(j=o)),w(m,x,j)}e.a=function(t){o=h=a=u=c=p=v=g=d=y=b=0,Object(f.a)(t,l);var e=d,n=y,r=b,i=e*e+n*n+r*r;return i<_.j&&(e=p,n=v,r=g,h<_.i&&(e=a,n=u,r=c),(i=e*e+n*n+r*r)<_.j)?[NaN,NaN]:[Object(_.e)(n,e)*_.h,Object(_.c)(r/Object(_.u)(i))*_.h]}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";e.a=function(t,e,n,r,i,o){var a,u=t[0],c=t[1],s=0,f=1,l=e[0]-u,h=e[1]-c;if(a=n-u,l||!(0<a)){if(a/=l,l<0){if(a<s)return;a<f&&(f=a)}else if(0<l){if(f<a)return;s<a&&(s=a)}if(a=i-u,l||!(a<0)){if(a/=l,l<0){if(f<a)return;s<a&&(s=a)}else if(0<l){if(a<s)return;a<f&&(f=a)}if(a=r-c,h||!(0<a)){if(a/=h,h<0){if(a<s)return;a<f&&(f=a)}else if(0<h){if(f<a)return;s<a&&(s=a)}if(a=o-c,h||!(a<0)){if(a/=h,h<0){if(f<a)return;s<a&&(s=a)}else if(0<h){if(a<s)return;a<f&&(f=a)}return 0<s&&(t[0]=u+s*l,t[1]=c+s*h),f<1&&(e[0]=u+f*l,e[1]=c+f*h),!0}}}}}},function(t,e,n){"use strict";var f=n(155);e.a=function(t,e,n){var r,i,o,a,u=t.length,c=e.length,s=new Array(u*c);for(null==n&&(n=f.b),r=o=0;r<u;++r)for(a=t[r],i=0;i<c;++i,++o)s[o]=n(a,e[i]);return s}},function(t,e,n){"use strict";e.a=function(t,e){return e<t?-1:t<e?1:t<=e?0:NaN}},function(t,e,n){"use strict";var r=n(159),g=n(153),i=n(305),o=n(158),a=n(306),d=n(160),y=n(161),u=n(162);e.a=function(){var h=a.a,p=o.a,v=u.a;function e(t){var e,n,r=t.length,i=new Array(r);for(e=0;e<r;++e)i[e]=h(t[e],e,t);var o=p(i),a=o[0],u=o[1],c=v(i,a,u);Array.isArray(c)||(c=Object(y.c)(a,u,c),c=Object(d.a)(Math.ceil(a/c)*c,Math.floor(u/c)*c,c));for(var s=c.length;c[0]<=a;)c.shift(),--s;for(;c[s-1]>u;)c.pop(),--s;var f,l=new Array(s+1);for(e=0;e<=s;++e)(f=l[e]=[]).x0=0<e?c[e-1]:a,f.x1=e<s?c[e]:u;for(e=0;e<r;++e)a<=(n=i[e])&&n<=u&&l[Object(g.c)(c,n,0,s)].push(t[e]);return l}return e.value=function(t){return arguments.length?(h="function"==typeof t?t:Object(i.a)(t),e):h},e.domain=function(t){return arguments.length?(p="function"==typeof t?t:Object(i.a)([t[0],t[1]]),e):p},e.thresholds=function(t){return arguments.length?(v="function"==typeof t?t:Array.isArray(t)?Object(i.a)(r.b.call(t)):Object(i.a)(t),e):v},e}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";var r=n(159),i=n(34),o=n(40),a=n(87);e.a=function(t,e,n){return t=r.a.call(t,o.a).sort(i.a),Math.ceil((n-e)/(2*(Object(a.a)(t,.75)-Object(a.a)(t,.25))*Math.pow(t.length,-1/3)))}},function(t,e,n){"use strict";var r=n(156);e.a=function(t,e,n){return Math.ceil((n-e)/(3.5*Object(r.a)(t)*Math.pow(t.length,-1/3)))}},function(t,e,n){"use strict";e.a=function(t,e){var n,r,i=t.length,o=-1;if(null==e){for(;++o<i;)if(null!=(n=t[o])&&n<=n)for(r=n;++o<i;)null!=(n=t[o])&&r<n&&(r=n)}else for(;++o<i;)if(null!=(n=e(t[o],o,t))&&n<=n)for(r=n;++o<i;)null!=(n=e(t[o],o,t))&&r<n&&(r=n);return r}},function(t,e,n){"use strict";var u=n(40);e.a=function(t,e){var n,r=t.length,i=r,o=-1,a=0;if(null==e)for(;++o<r;)isNaN(n=Object(u.a)(t[o]))?--i:a+=n;else for(;++o<r;)isNaN(n=Object(u.a)(e(t[o],o,t)))?--i:a+=n;if(i)return a/i}},function(t,e,n){"use strict";var a=n(34),u=n(40),c=n(87);e.a=function(t,e){var n,r=t.length,i=-1,o=[];if(null==e)for(;++i<r;)isNaN(n=Object(u.a)(t[i]))||o.push(n);else for(;++i<r;)isNaN(n=Object(u.a)(e(t[i],i,t)))||o.push(n);return Object(c.a)(o.sort(a.a),.5)}},function(t,e,n){"use strict";e.a=function(t){for(var e,n,r,i=t.length,o=-1,a=0;++o<i;)a+=t[o].length;for(n=new Array(a);0<=--i;)for(e=(r=t[i]).length;0<=--e;)n[--a]=r[e];return n}},function(t,e,n){"use strict";e.a=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r}},function(t,e,n){"use strict";var u=n(34);e.a=function(t,e){if(n=t.length){var n,r,i=0,o=0,a=t[o];for(null==e&&(e=u.a);++i<n;)(e(r=t[i],a)<0||0!==e(a,a))&&(a=r,o=i);return 0===e(a,a)?o:void 0}}},function(t,e,n){"use strict";e.a=function(t,e,n){for(var r,i,o=(null==n?t.length:n)-(e=null==e?0:+e);o;)i=Math.random()*o--|0,r=t[o+e],t[o+e]=t[i+e],t[i+e]=r;return t}},function(t,e,n){"use strict";e.a=function(t,e){var n,r=t.length,i=-1,o=0;if(null==e)for(;++i<r;)(n=+t[i])&&(o+=n);else for(;++i<r;)(n=+e(t[i],i,t))&&(o+=n);return o}},function(t,e,n){"use strict";var r=n(164);e.a=function(){return Object(r.a)(arguments)}},function(t,e,n){"use strict";var r=n(165),i=n(166),o=n(5),a={Feature:function(t,e){return c(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)if(c(n[r].geometry,e))return!0;return!1}},u={Sphere:function(){return!0},Point:function(t,e){return s(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(s(n[r],e))return!0;return!1},LineString:function(t,e){return f(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(f(n[r],e))return!0;return!1},Polygon:function(t,e){return l(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(l(n[r],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)if(c(n[r],e))return!0;return!1}};function c(t,e){return!(!t||!u.hasOwnProperty(t.type))&&u[t.type](t,e)}function s(t,e){return 0===Object(i.a)(t,e)}function f(t,e){var n=Object(i.a)(t[0],t[1]);return Object(i.a)(t[0],e)+Object(i.a)(e,t[1])<=n+o.i}function l(t,e){return!!Object(r.a)(t.map(h),p(e))}function h(t){return(t=t.map(p)).pop(),t}function p(t){return[t[0]*o.r,t[1]*o.r]}e.a=function(t,e){return(t&&a.hasOwnProperty(t.type)?a[t.type]:c)(t,e)}},function(t,e,n){"use strict";e.a=r,e.b=function(){return r()()};var m=n(12),x=n(5);function j(t,e,n){var r=Object(m.range)(t,e-x.i,n).concat(e);return function(e){return r.map(function(t){return[e,t]})}}function _(t,e,n){var r=Object(m.range)(t,e-x.i,n).concat(e);return function(e){return r.map(function(t){return[t,e]})}}function r(){var e,n,r,i,o,a,u,c,s,f,l,h,p=10,v=p,g=90,d=360,y=2.5;function b(){return{type:"MultiLineString",coordinates:t()}}function t(){return Object(m.range)(Object(x.f)(i/g)*g,r,g).map(l).concat(Object(m.range)(Object(x.f)(c/d)*d,u,d).map(h)).concat(Object(m.range)(Object(x.f)(n/p)*p,e,p).filter(function(t){return Object(x.a)(t%g)>x.i}).map(s)).concat(Object(m.range)(Object(x.f)(a/v)*v,o,v).filter(function(t){return Object(x.a)(t%d)>x.i}).map(f))}return b.lines=function(){return t().map(function(t){return{type:"LineString",coordinates:t}})},b.outline=function(){return{type:"Polygon",coordinates:[l(i).concat(h(u).slice(1),l(r).reverse().slice(1),h(c).reverse().slice(1))]}},b.extent=function(t){return arguments.length?b.extentMajor(t).extentMinor(t):b.extentMinor()},b.extentMajor=function(t){return arguments.length?(i=+t[0][0],r=+t[1][0],c=+t[0][1],u=+t[1][1],r<i&&(t=i,i=r,r=t),u<c&&(t=c,c=u,u=t),b.precision(y)):[[i,c],[r,u]]},b.extentMinor=function(t){return arguments.length?(n=+t[0][0],e=+t[1][0],a=+t[0][1],o=+t[1][1],e<n&&(t=n,n=e,e=t),o<a&&(t=a,a=o,o=t),b.precision(y)):[[n,a],[e,o]]},b.step=function(t){return arguments.length?b.stepMajor(t).stepMinor(t):b.stepMinor()},b.stepMajor=function(t){return arguments.length?(g=+t[0],d=+t[1],b):[g,d]},b.stepMinor=function(t){return arguments.length?(p=+t[0],v=+t[1],b):[p,v]},b.precision=function(t){return arguments.length?(y=+t,s=j(a,o,90),f=_(n,e,y),l=j(c,u,90),h=_(i,r,y),b):y},b.extentMajor([[-180,-90+x.i],[180,90-x.i]]).extentMinor([[-180,-80-x.i],[180,80+x.i]])}},function(t,e,n){"use strict";var y=n(5);e.a=function(t,e){var n=t[0]*y.r,r=t[1]*y.r,i=e[0]*y.r,o=e[1]*y.r,a=Object(y.g)(r),u=Object(y.t)(r),c=Object(y.g)(o),s=Object(y.t)(o),f=a*Object(y.g)(n),l=a*Object(y.t)(n),h=c*Object(y.g)(i),p=c*Object(y.t)(i),v=2*Object(y.c)(Object(y.u)(Object(y.m)(o-r)+a*c*Object(y.m)(i-n))),g=Object(y.t)(v),d=v?function(t){var e=Object(y.t)(t*=v)/g,n=Object(y.t)(v-t)/g,r=n*f+e*h,i=n*l+e*p,o=n*u+e*s;return[Object(y.e)(i,r)*y.h,Object(y.e)(o,Object(y.u)(r*r+i*i))*y.h]}:function(){return[n*y.h,r*y.h]};return d.distance=v,d}},function(t,e,n){"use strict";var u=n(88),c=n(26),s=n(322),f=n(168),l=n(323),h=n(324),p=n(325),v=n(326);e.a=function(e,n){var r,i,o=4.5;function a(t){return t&&("function"==typeof o&&i.pointRadius(+o.apply(this,arguments)),Object(c.a)(t,r(i))),i.result()}return a.area=function(t){return Object(c.a)(t,r(s.a)),s.a.result()},a.measure=function(t){return Object(c.a)(t,r(p.a)),p.a.result()},a.bounds=function(t){return Object(c.a)(t,r(f.a)),f.a.result()},a.centroid=function(t){return Object(c.a)(t,r(l.a)),l.a.result()},a.projection=function(t){return arguments.length?(r=null==t?(e=null,u.a):(e=t).stream,a):e},a.context=function(t){return arguments.length?(i=null==t?(n=null,new v.a):new h.a(n=t),"function"!=typeof o&&i.pointRadius(o),a):n},a.pointRadius=function(t){return arguments.length?(o="function"==typeof t?t:(i.pointRadius(+t),+t),a):o},a.projection(e).context(n)}},function(t,e,n){"use strict";var r,i,o,a,u=n(33),c=n(5),s=n(21),f=Object(u.a)(),l=Object(u.a)(),h={point:s.a,lineStart:s.a,lineEnd:s.a,polygonStart:function(){h.lineStart=p,h.lineEnd=d},polygonEnd:function(){h.lineStart=h.lineEnd=h.point=s.a,f.add(Object(c.a)(l)),l.reset()},result:function(){var t=f/2;return f.reset(),t}};function p(){h.point=v}function v(t,e){h.point=g,r=o=t,i=a=e}function g(t,e){l.add(a*t-o*e),o=t,a=e}function d(){g(r,i)}e.a=h},function(t,e,n){"use strict";var r,i,o,a,u=n(5),c=0,s=0,f=0,l=0,h=0,p=0,v=0,g=0,d=0,y={point:b,lineStart:m,lineEnd:_,polygonStart:function(){y.lineStart=O,y.lineEnd=w},polygonEnd:function(){y.point=b,y.lineStart=m,y.lineEnd=_},result:function(){var t=d?[v/d,g/d]:p?[l/p,h/p]:f?[c/f,s/f]:[NaN,NaN];return c=s=f=l=h=p=v=g=d=0,t}};function b(t,e){c+=t,s+=e,++f}function m(){y.point=x}function x(t,e){y.point=j,b(o=t,a=e)}function j(t,e){var n=t-o,r=e-a,i=Object(u.u)(n*n+r*r);l+=i*(o+t)/2,h+=i*(a+e)/2,p+=i,b(o=t,a=e)}function _(){y.point=b}function O(){y.point=S}function w(){M(r,i)}function S(t,e){y.point=M,b(r=o=t,i=a=e)}function M(t,e){var n=t-o,r=e-a,i=Object(u.u)(n*n+r*r);l+=i*(o+t)/2,h+=i*(a+e)/2,p+=i,v+=(i=a*t-o*e)*(o+t),g+=i*(a+e),d+=3*i,b(o=t,a=e)}e.a=y},function(t,e,n){"use strict";e.a=o;var r=n(5),i=n(21);function o(t){this._context=t}o.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,r.w)}},result:i.a}},function(t,e,n){"use strict";var r,i,o,a,u,c=n(33),s=n(5),f=n(21),l=Object(c.a)(),h={point:f.a,lineStart:function(){h.point=p},lineEnd:function(){r&&v(i,o),h.point=f.a},polygonStart:function(){r=!0},polygonEnd:function(){r=null},result:function(){var t=+l;return l.reset(),t}};function p(t,e){h.point=v,i=a=t,o=u=e}function v(t,e){a-=t,u-=e,l.add(Object(s.u)(a*a+u*u)),a=t,u=e}e.a=h},function(t,e,n){"use strict";function r(){this._string=[]}function i(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}(e.a=r).prototype={_radius:4.5,_circle:i(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=i(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}}},function(t,e,n){"use strict";var r=n(170),d=n(5);e.a=Object(r.a)(function(){return!0},function(l){var h,p=NaN,v=NaN,g=NaN;return{lineStart:function(){l.lineStart(),h=1},point:function(t,e){var n,r,i,o,a,u,c,s=0<t?d.o:-d.o,f=Object(d.a)(t-p);Object(d.a)(f-d.o)<d.i?(l.point(p,v=0<(v+e)/2?d.l:-d.l),l.point(g,v),l.lineEnd(),l.lineStart(),l.point(s,v),l.point(t,v),h=0):g!==s&&f>=d.o&&(Object(d.a)(p-g)<d.i&&(p-=g*d.i),Object(d.a)(t-s)<d.i&&(t-=s*d.i),n=p,r=v,i=t,o=e,c=Object(d.t)(n-i),v=Object(d.a)(c)>d.i?Object(d.d)((Object(d.t)(r)*(u=Object(d.g)(o))*Object(d.t)(i)-Object(d.t)(o)*(a=Object(d.g)(r))*Object(d.t)(n))/(a*u*c)):(r+o)/2,l.point(g,v),l.lineEnd(),l.lineStart(),l.point(s,v),h=0),l.point(p=t,v=e),g=s},lineEnd:function(){l.lineEnd(),p=v=NaN},clean:function(){return 2-h}}},function(t,e,n,r){var i;if(null==t)i=n*d.l,r.point(-d.o,i),r.point(0,i),r.point(d.o,i),r.point(d.o,0),r.point(d.o,-i),r.point(0,-i),r.point(-d.o,-i),r.point(-d.o,0),r.point(-d.o,i);else if(Object(d.a)(t[0]-e[0])>d.i){var o=t[0]<e[0]?d.o:-d.o;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(e[0],e[1])},[-d.o,-d.l])},function(t,e,n){"use strict";var A=n(39),a=n(148),T=n(5),b=n(152),r=n(170);e.a=function(i,o){var P=Object(T.g)(i),p=0<P,v=Object(T.a)(P)>T.i;function g(t,e){return Object(T.g)(t)*Object(T.g)(e)>P}function d(t,e,n){var r=Object(A.a)(t),i=Object(A.a)(e),o=[1,0,0],a=Object(A.c)(r,i),u=Object(A.d)(a,a),c=a[0],s=u-c*c;if(!s)return!n&&t;var f=P*u/s,l=-P*c/s,h=Object(A.c)(o,a),p=Object(A.f)(o,f),v=Object(A.f)(a,l);Object(A.b)(p,v);var g=h,d=Object(A.d)(p,g),y=Object(A.d)(g,g),b=d*d-y*(Object(A.d)(p,p)-1);if(!(b<0)){var m=Object(T.u)(b),x=Object(A.f)(g,(-d-m)/y);if(Object(A.b)(x,p),x=Object(A.g)(x),!n)return x;var j,_=t[0],O=e[0],w=t[1],S=e[1];O<_&&(j=_,_=O,O=j);var M=O-_,E=Object(T.a)(M-T.o)<T.i;if(!E&&S<w&&(j=w,w=S,S=j),E||M<T.i?E?0<w+S^x[1]<(Object(T.a)(x[0]-_)<T.i?w:S):w<=x[1]&&x[1]<=S:M>T.o^(_<=x[0]&&x[0]<=O)){var C=Object(A.f)(g,(-d+m)/y);return Object(A.b)(C,p),[x,Object(A.g)(C)]}}}function y(t,e){var n=p?i:T.o-i,r=0;return t<-n?r|=1:n<t&&(r|=2),e<-n?r|=4:n<e&&(r|=8),r}return Object(r.a)(g,function(u){var c,s,f,l,h;return{lineStart:function(){l=f=!1,h=1},point:function(t,e){var n,r=[t,e],i=g(t,e),o=p?i?0:y(t,e):i?y(t+(t<0?T.o:-T.o),e):0;if(!c&&(l=f=i)&&u.lineStart(),i!==f&&(!(n=d(c,r))||Object(b.a)(c,n)||Object(b.a)(r,n))&&(r[0]+=T.i,r[1]+=T.i,i=g(r[0],r[1])),i!==f)h=0,i?(u.lineStart(),n=d(r,c),u.point(n[0],n[1])):(n=d(c,r),u.point(n[0],n[1]),u.lineEnd()),c=n;else if(v&&c&&p^i){var a;o&s||!(a=d(r,c,!0))||(h=0,p?(u.lineStart(),u.point(a[0][0],a[0][1]),u.point(a[1][0],a[1][1]),u.lineEnd()):(u.point(a[1][0],a[1][1]),u.lineEnd(),u.lineStart(),u.point(a[0][0],a[0][1])))}!i||c&&Object(b.a)(c,r)||u.point(r[0],r[1]),c=r,f=i,s=o},lineEnd:function(){f&&u.lineEnd(),c=null},clean:function(){return h|(l&&f)<<1}}},function(t,e,n,r){Object(a.a)(r,i,o,n,t,e)},p?[0,-i]:[-T.o,i-T.o])}},function(t,e,n){"use strict";var j=n(39),k=n(5),r=n(62),_=16,I=Object(k.g)(30*k.r);e.a=function(t,e){return+e?function(P,A){function T(t,e,n,r,i,o,a,u,c,s,f,l,h,p){var v=a-t,g=u-e,d=v*v+g*g;if(4*A<d&&h--){var y=r+s,b=i+f,m=o+l,x=Object(k.u)(y*y+b*b+m*m),j=Object(k.c)(m/=x),_=Object(k.a)(Object(k.a)(m)-1)<k.i||Object(k.a)(n-c)<k.i?(n+c)/2:Object(k.e)(b,y),O=P(_,j),w=O[0],S=O[1],M=w-t,E=S-e,C=g*M-v*E;(A<C*C/d||.3<Object(k.a)((v*M+g*E)/d-.5)||r*s+i*f+o*l<I)&&(T(t,e,n,r,i,o,w,S,_,y/=x,b/=x,m,h,p),p.point(w,S),T(w,S,_,y,b,m,a,u,c,s,f,l,h,p))}}return function(i){var n,r,o,a,u,c,s,f,l,h,p,v,g={point:t,lineStart:e,lineEnd:y,polygonStart:function(){i.polygonStart(),g.lineStart=b},polygonEnd:function(){i.polygonEnd(),g.lineStart=e}};function t(t,e){t=P(t,e),i.point(t[0],t[1])}function e(){f=NaN,g.point=d,i.lineStart()}function d(t,e){var n=Object(j.a)([t,e]),r=P(t,e);T(f,l,s,h,p,v,f=r[0],l=r[1],s=t,h=n[0],p=n[1],v=n[2],_,i),i.point(f,l)}function y(){g.point=t,i.lineEnd()}function b(){e(),g.point=m,g.lineEnd=x}function m(t,e){d(n=t,e),r=f,o=l,a=h,u=p,c=v,g.point=d}function x(){T(f,l,s,h,p,v,r,o,n,a,u,c,_,i),(g.lineEnd=y)()}return g}}(t,e):(n=t,Object(r.b)({point:function(t,e){t=n(t,e),this.stream.point(t[0],t[1])}}));var n}},function(t,e,n){"use strict";e.a=function(t){var n=Object(r.g)(t);function e(t,e){return[t*n,Object(r.t)(e)/n]}return e.invert=function(t,e){return[t/n,Object(r.c)(e*n)]},e};var r=n(5)},function(t,e,n){"use strict";var p=n(5),v=n(169),g=n(89),d=n(91);e.a=function(){var e,n,i,o,a,r,u=Object(v.a)(),c=Object(g.b)().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=Object(g.b)().rotate([157,0]).center([-3,19.9]).parallels([8,18]),f={point:function(t,e){r=[t,e]}};function l(t){var e=t[0],n=t[1];return r=null,i.point(e,n),r||(o.point(e,n),r)||(a.point(e,n),r)}function h(){return e=n=null,l}return l.invert=function(t){var e=u.scale(),n=u.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(.12<=i&&i<.234&&-.425<=r&&r<-.214?c:.166<=i&&i<.234&&-.214<=r&&r<-.115?s:u).invert(t)},l.stream=function(t){return e&&n===t?e:(r=[u.stream(n=t),c.stream(t),s.stream(t)],i=r.length,e={point:function(t,e){for(var n=-1;++n<i;)r[n].point(t,e)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},l.precision=function(t){return arguments.length?(u.precision(t),c.precision(t),s.precision(t),h()):u.precision()},l.scale=function(t){return arguments.length?(u.scale(t),c.scale(.35*t),s.scale(t),l.translate(u.translate())):u.scale()},l.translate=function(t){if(!arguments.length)return u.translate();var e=u.scale(),n=+t[0],r=+t[1];return i=u.translate(t).clipExtent([[n-.455*e,r-.238*e],[n+.455*e,r+.238*e]]).stream(f),o=c.translate([n-.307*e,r+.201*e]).clipExtent([[n-.425*e+p.i,r+.12*e+p.i],[n-.214*e-p.i,r+.234*e-p.i]]).stream(f),a=s.translate([n-.205*e,r+.212*e]).clipExtent([[n-.214*e+p.i,r+.166*e+p.i],[n-.115*e-p.i,r+.234*e-p.i]]).stream(f),h()},l.fitExtent=function(t,e){return Object(d.a)(l,t,e)},l.fitSize=function(t,e){return Object(d.b)(l,t,e)},l.scale(1070)}},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(5),i=n(41),o=n(17),a=Object(i.b)(function(t){return Object(r.u)(2/(1+t))});a.invert=Object(i.a)(function(t){return 2*Object(r.c)(t/2)}),e.b=function(){return Object(o.a)(a).scale(124.75).clipAngle(179.999)}},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(5),i=n(41),o=n(17),a=Object(i.b)(function(t){return(t=Object(r.b)(t))&&t/Object(r.t)(t)});a.invert=Object(i.a)(function(t){return t}),e.b=function(){return Object(o.a)(a).scale(79.4188).clipAngle(179.999)}},function(t,e,n){"use strict";e.a=i;var a=n(5),r=n(90),u=n(92);function c(t){return Object(a.v)((a.l+t)/2)}function i(t,e){var n=Object(a.g)(t),i=t===e?Object(a.t)(t):Object(a.n)(n/Object(a.g)(e))/Object(a.n)(c(e)/c(t)),o=n*Object(a.p)(c(t),i)/i;if(!i)return u.c;function r(t,e){0<o?e<-a.l+a.i&&(e=-a.l+a.i):e>a.l-a.i&&(e=a.l-a.i);var n=o/Object(a.p)(c(e),i);return[n*Object(a.t)(i*t),o-n*Object(a.g)(i*t)]}return r.invert=function(t,e){var n=o-e,r=Object(a.s)(i)*Object(a.u)(t*t+n*n);return[Object(a.e)(t,Object(a.a)(n))/i*Object(a.s)(n),2*Object(a.d)(Object(a.p)(o/r,1/i))-a.l]},r}e.b=function(){return Object(r.a)(i).scale(109.5).parallels([30,30])}},function(t,e,n){"use strict";e.a=i;var a=n(5),r=n(90),u=n(171);function i(t,e){var n=Object(a.g)(t),i=t===e?Object(a.t)(t):(n-Object(a.g)(e))/(e-t),o=n/i+t;if(Object(a.a)(i)<a.i)return u.b;function r(t,e){var n=o-e,r=i*t;return[n*Object(a.t)(r),o-n*Object(a.g)(r)]}return r.invert=function(t,e){var n=o-e;return[Object(a.e)(t,Object(a.a)(n))/i*Object(a.s)(n),o-Object(a.s)(i)*Object(a.u)(t*t+n*n)]},r}e.b=function(){return Object(r.a)(i).scale(131.154).center([0,13.9389])}},function(t,e,n){"use strict";e.b=a;var i=n(5),r=n(41),o=n(17);function a(t,e){var n=Object(i.g)(e),r=Object(i.g)(t)*n;return[n*Object(i.t)(t)/r,Object(i.t)(e)/r]}a.invert=Object(r.a)(i.d),e.a=function(){return Object(o.a)(a).scale(144.049).clipAngle(60)}},function(t,e,n){"use strict";var d=n(86),y=n(88),a=n(62),b=n(91);function m(n,r,i,o){return 1===n&&1===r&&0===i&&0===o?y.a:Object(a.b)({point:function(t,e){this.stream.point(t*n+i,e*r+o)}})}e.a=function(){var e,n,r,i,o,a,u=1,c=0,s=0,f=1,l=1,h=y.a,p=null,v=y.a;function g(){return i=o=null,a}return a={stream:function(t){return i&&o===t?i:i=h(v(o=t))},clipExtent:function(t){return arguments.length?(v=null==t?(p=e=n=r=null,y.a):Object(d.a)(p=+t[0][0],e=+t[0][1],n=+t[1][0],r=+t[1][1]),g()):null==p?null:[[p,e],[n,r]]},scale:function(t){return arguments.length?(h=m((u=+t)*f,u*l,c,s),g()):u},translate:function(t){return arguments.length?(h=m(u*f,u*l,c=+t[0],s=+t[1]),g()):[c,s]},reflectX:function(t){return arguments.length?(h=m(u*(f=t?-1:1),u*l,c,s),g()):f<0},reflectY:function(t){return arguments.length?(h=m(u*f,u*(l=t?-1:1),c,s),g()):l<0},fitExtent:function(t,e){return Object(b.a)(a,t,e)},fitSize:function(t,e){return Object(b.b)(a,t,e)}}}},function(t,e,n){"use strict";e.b=a;var r=n(5),i=n(41),o=n(17);function a(t,e){return[Object(r.g)(e)*Object(r.t)(t),Object(r.t)(e)]}a.invert=Object(i.a)(r.c),e.a=function(){return Object(o.a)(a).scale(249.5).clipAngle(90+r.i)}},function(t,e,n){"use strict";e.b=a;var i=n(5),r=n(41),o=n(17);function a(t,e){var n=Object(i.g)(e),r=1+Object(i.g)(t)*n;return[n*Object(i.t)(t)/r,Object(i.t)(e)/r]}a.invert=Object(r.a)(function(t){return 2*Object(i.d)(t)}),e.a=function(){return Object(o.a)(a).scale(250).clipAngle(142)}},function(t,e,n){"use strict";e.b=o;var r=n(5),i=n(92);function o(t,e){return[Object(r.n)(Object(r.v)((r.l+e)/2)),-t]}o.invert=function(t,e){return[-e,2*Object(r.d)(Object(r.k)(t))-r.l]},e.a=function(){var t=Object(i.b)(o),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],2<t.length?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}},function(t,e,n){"use strict";e.a=i;var r=n(0),v=n(1);function i(h){var t=Object(v.F)(h/2),p=2*Object(v.p)(Object(v.h)(h/2))/(t*t);function e(t,e){var n=Object(v.h)(t),r=Object(v.h)(e),i=Object(v.y)(e),o=r*n,a=-((1-o?Object(v.p)((1+o)/2)/(1-o):-.5)+p/(1+o));return[a*r*Object(v.y)(t),a*i]}return e.invert=function(t,e){var n,r=Object(v.B)(t*t+e*e),i=-h/2,o=50;if(!r)return[0,0];do{var a=i/2,u=Object(v.h)(a),c=Object(v.y)(a),s=Object(v.F)(a),f=Object(v.p)(1/u);i-=n=(2/s*f-p*s-r)/(-f/(c*c)+1-p/(2*u*u))}while(Object(v.a)(n)>v.k&&0<--o);var l=Object(v.y)(i);return[Object(v.g)(t*l,r*Object(v.h)(i)),Object(v.e)(e*l/r)]},e}e.b=function(){var e=v.o,n=Object(r.geoProjectionMutator)(i),t=n(e);return t.radius=function(t){return arguments.length?n(e=t*v.v):e*v.j},t.scale(179.976).clipAngle(147)}},function(t,e,n){"use strict";e.a=s;var r=n(0),w=n(1);function s(t){var m=Object(w.y)(t),x=Object(w.h)(t),j=0<=t?1:-1,_=Object(w.F)(j*t),O=(1+m-x)/2;function e(t,e){var n=Object(w.h)(e),r=Object(w.h)(t/=2);return[(1+n)*Object(w.y)(t),(j*e>-Object(w.g)(r,_)-.001?0:10*-j)+O+Object(w.y)(e)*x-(1+n)*m*r]}return e.invert=function(t,e){var n=0,r=0,i=50;do{var o=Object(w.h)(n),a=Object(w.y)(n),u=Object(w.h)(r),c=Object(w.y)(r),s=1+u,f=s*a-t,l=O+c*x-s*m*o-e,h=s*o/2,p=-a*c,v=m*s*a/2,g=x*u+m*o*c,d=p*v-g*h,y=(l*p-f*g)/d/2,b=(f*v-l*h)/d;n-=y,r-=b}while((Object(w.a)(y)>w.k||Object(w.a)(b)>w.k)&&0<--i);return j*r>-Object(w.g)(Object(w.h)(n),_)-.001?[2*n,r]:null},e}e.b=function(){var i=20*w.v,o=0<=i?1:-1,a=Object(w.F)(o*i),e=Object(r.geoProjectionMutator)(s),u=e(i),c=u.stream;return u.parallel=function(t){return arguments.length?(a=Object(w.F)((o=0<=(i=t*w.v)?1:-1)*i),e(i)):i*w.j},u.stream=function(t){var e=u.rotate(),n=c(t),r=(u.rotate([0,0]),c(t));return u.rotate(e),n.sphere=function(){r.polygonStart(),r.lineStart();for(var t=-180*o;o*t<180;t+=90*o)r.point(t,90*o);for(;-180<=o*(t-=i);)r.point(t,o*-Object(w.g)(Object(w.h)(t*w.v/2),a)*w.j);r.lineEnd(),r.polygonEnd()},n},u.scale(218.695).center([0,28.0974])}},function(t,e,n){"use strict";e.a=i;var r=n(0),c=n(1),s=Object(c.B)(8),f=Object(c.p)(1+c.D);function i(t,e){var n=Object(c.a)(e);return n<c.u?[t,Object(c.p)(Object(c.F)(c.u+e/2))]:[t*Object(c.h)(n)*(2*c.D-1/Object(c.y)(n)),Object(c.x)(e)*(2*c.D*(n-c.u)-Object(c.p)(Object(c.F)(n/2)))]}i.invert=function(t,e){if((r=Object(c.a)(e))<f)return[t,2*Object(c.f)(Object(c.m)(e))-c.o];var n,r,i=c.u,o=25;do{var a=Object(c.h)(i/2),u=Object(c.F)(i/2);i-=n=(s*(i-c.u)-Object(c.p)(u)-r)/(s-a*a/(2*u))}while(Object(c.a)(n)>c.l&&0<--o);return[t/(Object(c.h)(i)*(s-1/Object(c.y)(i))),Object(c.x)(e)*i]},e.b=function(){return Object(r.geoProjection)(i).scale(112.314)}},function(t,e,n){"use strict";e.a=o;var s=n(0),f=n(1);function o(t){var c=2*f.s/t;function e(t,e){var n=Object(s.geoAzimuthalEquidistantRaw)(t,e);if(Object(f.a)(t)>f.o){var r=Object(f.g)(n[1],n[0]),i=Object(f.B)(n[0]*n[0]+n[1]*n[1]),o=c*Object(f.w)((r-f.o)/c)+f.o,a=Object(f.g)(Object(f.y)(r-=o),2-Object(f.h)(r));r=o+Object(f.e)(f.s/i*Object(f.y)(a))-a,n[0]=i*Object(f.h)(r),n[1]=i*Object(f.y)(r)}return n}return e.invert=function(t,e){var n=Object(f.B)(t*t+e*e);if(n>f.o){var r=Object(f.g)(e,t),i=c*Object(f.w)((r-f.o)/c)+f.o,o=i<r?-1:1,a=n*Object(f.h)(i-r),u=1/Object(f.F)(o*Object(f.b)((a-f.s)/Object(f.B)(f.s*(f.s-2*a)+n*n)));r=i+2*Object(f.f)((u+o*Object(f.B)(u*u-3))/3),t=n*Object(f.h)(r),e=n*Object(f.y)(r)}return s.geoAzimuthalEquidistantRaw.invert(t,e)},e}e.b=function(){var a=5,e=Object(s.geoProjectionMutator)(o),r=e(a),i=r.stream,u=-Object(f.h)(.01*f.v),c=Object(f.y)(.01*f.v);return r.lobes=function(t){return arguments.length?e(a=+t):a},r.stream=function(t){var e=r.rotate(),n=i(t),o=(r.rotate([0,0]),i(t));return r.rotate(e),n.sphere=function(){o.polygonStart(),o.lineStart();for(var t=0,e=360/a,n=2*f.s/a,r=90-180/a,i=f.o;t<a;++t,r-=e,i-=n)o.point(Object(f.g)(c*Object(f.h)(i),u)*f.j,Object(f.e)(c*Object(f.y)(i))*f.j),r<-90?(o.point(-90,-180-r-.01),o.point(-90,-180-r+.01)):(o.point(90,r+.01),o.point(90,r-.01));o.lineEnd(),o.polygonEnd()},n},r.scale(87.8076).center([0,17.1875]).clipAngle(179.999)}},function(t,e,n){"use strict";e.a=i;var r=n(35),a=n(1),u=n(42);function i(i){if(!i)return u.b;var o=1/Object(a.F)(i);function t(t,e){var n=o+i-e,r=n?t*Object(a.h)(e)/n:n;return[n*Object(a.y)(r),o-n*Object(a.h)(r)]}return t.invert=function(t,e){var n=Object(a.B)(t*t+(e=o-e)*e),r=o+i-n;return[n/Object(a.h)(r)*Object(a.g)(t,e),r]},t}e.b=function(){return Object(r.a)(i).scale(123.082).center([0,26.1441]).parallel(45)}},function(t,e,n){"use strict";e.a=i;var r=n(0),u=n(1);function i(a){function t(t,e){var n=u.o-e,r=n?t*a*Object(u.y)(n)/n:n;return[n*Object(u.y)(r)/a,u.o-n*Object(u.h)(r)]}return t.invert=function(t,e){var n=t*a,r=u.o-e,i=Object(u.B)(n*n+r*r),o=Object(u.g)(n,r);return[(i?i/Object(u.y)(i):1)*o/a,u.o-i]},t}e.b=function(){var e=.5,n=Object(r.geoProjectionMutator)(i),t=n(e);return t.fraction=function(t){return arguments.length?n(e=+t):e},t.scale(158.837)}},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(0),i=n(1),o=n(22),a=Object(o.b)(1,4/i.s,i.s);e.b=function(){return Object(r.geoProjection)(a).scale(152.63)}},function(t,e,n){"use strict";e.b=s,e.a=function(){return r([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])},e.c=r;var c=n(0),g=n(1);function d(t,e,n,r,i,o){var a,u=Object(g.h)(o);if(1<Object(g.a)(t)||1<Object(g.a)(o))a=Object(g.b)(n*i+e*r*u);else{var c=Object(g.y)(t/2),s=Object(g.y)(o/2);a=2*Object(g.e)(Object(g.B)(c*c+e*r*s*s))}return Object(g.a)(a)>g.k?[a,Object(g.g)(r*Object(g.y)(o),e*i-n*r*u)]:[0,0]}function y(t,e,n){return Object(g.b)((t*t+e*e-n*n)/(2*t*e))}function s(t,e,n){for(var r,l=[[t[0],t[1],Object(g.y)(t[1]),Object(g.h)(t[1])],[e[0],e[1],Object(g.y)(e[1]),Object(g.h)(e[1])],[n[0],n[1],Object(g.y)(n[1]),Object(g.h)(n[1])]],i=l[2],o=0;o<3;++o,i=r)r=l[o],i.v=d(r[1]-i[1],i[3],i[2],r[3],r[2],r[0]-i[0]),i.point=[0,0];var a=y(l[0].v[0],l[2].v[0],l[1].v[0]),h=y(l[0].v[0],l[1].v[0],l[2].v[0]),p=g.s-a;l[2].point[1]=0,l[0].point[0]=-(l[1].point[0]=l[0].v[0]/2);var v=[l[2].point[0]=l[0].point[0]+l[2].v[0]*Object(g.h)(a),2*(l[0].point[1]=l[1].point[1]=l[2].v[0]*Object(g.y)(a))];return function(t,e){var n,r,i=Object(g.y)(e),o=Object(g.h)(e),a=new Array(3);for(n=0;n<3;++n){var u=l[n];if(a[n]=d(e-u[1],u[3],u[2],o,i,t-u[0]),!a[n][0])return u.point;a[n][1]=(r=a[n][1]-u.v[1])-2*g.s*Object(g.n)((r+g.s)/(2*g.s))}var c=v.slice();for(n=0;n<3;++n){var s=2==n?0:n+1,f=y(l[n].v[0],a[n][0],a[s][0]);a[n][1]<0&&(f=-f),n?1==n?(f=h-f,c[0]-=a[n][0]*Object(g.h)(f),c[1]-=a[n][0]*Object(g.y)(f)):(f=p-f,c[0]+=a[n][0]*Object(g.h)(f),c[1]+=a[n][0]*Object(g.y)(f)):(c[0]+=a[n][0]*Object(g.h)(f),c[1]-=a[n][0]*Object(g.y)(f))}return c[0]/=3,c[1]/=3,c}}function f(t){return t[0]*=g.v,t[1]*=g.v,t}function r(t,e,n){var r=Object(c.geoCentroid)({type:"MultiPoint",coordinates:[t,e,n]}),i=[-r[0],-r[1]],o=Object(c.geoRotation)(i),a=Object(c.geoProjection)(s(f(o(t)),f(o(e)),f(o(n)))).rotate(i),u=a.center;return delete a.rotate,a.center=function(t){return arguments.length?u(o(t)):o.invert(u())},a.clipAngle(90)}},function(t,e,n){"use strict";e.a=o;var i=n(1),r=n(35);function o(t){var r=Object(i.F)(t);function e(t,e){return[t,(t?t/Object(i.y)(t):1)*(Object(i.y)(e)*Object(i.h)(t)-r*Object(i.h)(e))]}return e.invert=r?function(t,e){t&&(e*=Object(i.y)(t)/t);var n=Object(i.h)(t);return[t,2*Object(i.g)(Object(i.B)(n*n+r*r-e*e)-n,r-e)]}:function(t,e){return[t,Object(i.e)(t?e*Object(i.F)(t)/t:e)]},e}e.b=function(){return Object(r.a)(o).scale(249.828).clipAngle(90)}},function(t,e,n){"use strict";e.a=a;var r=n(0),i=n(1),o=Object(i.B)(3);function a(t,e){return[o*t*(2*Object(i.h)(2*e/3)-1)/i.E,o*i.E*Object(i.y)(e/3)]}a.invert=function(t,e){var n=3*Object(i.e)(e/(o*i.E));return[i.E*t/(o*(2*Object(i.h)(2*n/3)-1)),n]},e.b=function(){return Object(r.geoProjection)(a).scale(156.19)}},function(t,e,n){"use strict";e.a=o;var r=n(1),i=n(35);function o(t){var n=Object(r.h)(t);function e(t,e){return[t*n,(1+n)*Object(r.F)(e/2)]}return e.invert=function(t,e){return[t/n,2*Object(r.f)(e/(1+n))]},e}e.b=function(){return Object(i.a)(o).scale(124.75)}},function(t,e,n){"use strict";e.b=o;var r=n(0),i=n(1);function o(t,e){var n=Object(i.B)(8/(3*i.s));return[n*t*(1-Object(i.a)(e)/i.s),n*e]}o.invert=function(t,e){var n=Object(i.B)(8/(3*i.s)),r=e/n;return[t/(n*(1-Object(i.a)(r)/i.s)),r]},e.a=function(){return Object(r.geoProjection)(o).scale(165.664)}},function(t,e,n){"use strict";e.b=o;var r=n(0),i=n(1);function o(t,e){var n=Object(i.B)(4-3*Object(i.y)(Object(i.a)(e)));return[2/Object(i.B)(6*i.s)*t*n,Object(i.x)(e)*Object(i.B)(2*i.s/3)*(2-n)]}o.invert=function(t,e){var n=2-Object(i.a)(e)/Object(i.B)(2*i.s/3);return[t*Object(i.B)(6*i.s)/(2*n),Object(i.x)(e)*Object(i.e)((4-n*n)/3)]},e.a=function(){return Object(r.geoProjection)(o).scale(165.664)}},function(t,e,n){"use strict";e.b=o;var r=n(0),i=n(1);function o(t,e){var n=Object(i.B)(i.s*(4+i.s));return[2/n*t*(1+Object(i.B)(1-4*e*e/(i.s*i.s))),4/n*e]}o.invert=function(t,e){var n=Object(i.B)(i.s*(4+i.s))/2;return[t*n/(1+Object(i.B)(1-e*e*(4+i.s)/(4*i.s))),e*n/2]},e.a=function(){return Object(r.geoProjection)(o).scale(180.739)}},function(t,e,n){"use strict";e.b=i;var r=n(0),a=n(1);function i(t,e){var n=(2+a.o)*Object(a.y)(e);e/=2;for(var r=0,i=1/0;r<10&&Object(a.a)(i)>a.k;r++){var o=Object(a.h)(e);e-=i=(e+Object(a.y)(e)*(o+2)-n)/(2*o*(1+o))}return[2/Object(a.B)(a.s*(4+a.s))*t*(1+Object(a.h)(e)),2*Object(a.B)(a.s/(4+a.s))*Object(a.y)(e)]}i.invert=function(t,e){var n=e*Object(a.B)((4+a.s)/a.s)/2,r=Object(a.e)(n),i=Object(a.h)(r);return[t/(2/Object(a.B)(a.s*(4+a.s))*(1+i)),Object(a.e)((r+n*(i+2))/(2+a.o))]},e.a=function(){return Object(r.geoProjection)(i).scale(180.739)}},function(t,e,n){"use strict";e.b=o;var r=n(0),i=n(1);function o(t,e){return[t*(1+Object(i.h)(e))/Object(i.B)(2+i.s),2*e/Object(i.B)(2+i.s)]}o.invert=function(t,e){var n=Object(i.B)(2+i.s),r=e*n/2;return[n*t/(1+Object(i.h)(r)),r]},e.a=function(){return Object(r.geoProjection)(o).scale(173.044)}},function(t,e,n){"use strict";e.b=i;var r=n(0),o=n(1);function i(t,e){for(var n=(1+o.o)*Object(o.y)(e),r=0,i=1/0;r<10&&Object(o.a)(i)>o.k;r++)e-=i=(e+Object(o.y)(e)-n)/(1+Object(o.h)(e));return n=Object(o.B)(2+o.s),[t*(1+Object(o.h)(e))/n,2*e/n]}i.invert=function(t,e){var n=1+o.o,r=Object(o.B)(n/2);return[2*t*r/(1+Object(o.h)(e*=r)),Object(o.e)((e+Object(o.y)(e))/n)]},e.a=function(){return Object(r.geoProjection)(i).scale(173.044)}},function(t,e,n){"use strict";e.b=i;var r=n(0),F=n(174),N=n(1),z=3+2*N.D;function i(t,e){var n=Object(N.y)(t/=2),r=Object(N.h)(t),i=Object(N.B)(Object(N.h)(e)),o=Object(N.h)(e/=2),a=Object(N.y)(e)/(o+N.D*r*i),u=Object(N.B)(2/(1+a*a)),c=Object(N.B)((N.D*o+(r+n)*i)/(N.D*o+(r-n)*i));return[z*(u*(c-1/c)-2*Object(N.p)(c)),z*(u*a*(c+1/c)-2*Object(N.f)(a))]}i.invert=function(t,e){if(!(n=F.a.invert(t/1.2,1.065*e)))return null;var n,r=n[0],i=n[1],o=20;t/=z,e/=z;do{var a=r/2,u=i/2,c=Object(N.y)(a),s=Object(N.h)(a),f=Object(N.y)(u),l=Object(N.h)(u),h=Object(N.h)(i),p=Object(N.B)(h),v=f/(l+N.D*s*p),g=v*v,d=Object(N.B)(2/(1+g)),y=(N.D*l+(s+c)*p)/(N.D*l+(s-c)*p),b=Object(N.B)(y),m=b-1/b,x=b+1/b,j=d*m-2*Object(N.p)(b)-t,_=d*v*x-2*Object(N.f)(v)-e,O=f&&N.C*p*c*g/f,w=(N.D*s*l+p)/(2*(l+N.D*s*p)*(l+N.D*s*p)*p),S=-.5*v*d*d*d,M=S*O,E=S*w,C=(C=2*l+N.D*p*(s-c))*C*b,P=(N.D*s*l*p+h)/C,A=-N.D*c*f/(p*C),T=m*M-2*P/b+d*(P+P/y),k=m*E-2*A/b+d*(A+A/y),I=v*x*M-2*O/(1+g)+d*x*O+d*v*(P-P/y),L=v*x*E-2*w/(1+g)+d*x*w+d*v*(A-A/y),R=k*I-L*T;if(!R)break;var D=(_*k-j*L)/R,B=(j*I-_*T)/R;r-=D,i=Object(N.q)(-N.o,Object(N.r)(N.o,i-B))}while((Object(N.a)(D)>N.k||Object(N.a)(B)>N.k)&&0<--o);return Object(N.a)(Object(N.a)(i)-N.o)<N.k?[0,i]:o&&[r,i]},e.a=function(){return Object(r.geoProjection)(i).scale(62.5271)}},function(t,e,n){"use strict";e.b=a;var r=n(0),i=n(1),o=Object(i.h)(35*i.v);function a(t,e){var n=Object(i.F)(e/2);return[t*o*Object(i.B)(1-n*n),(1+o)*n]}a.invert=function(t,e){var n=e/(1+o);return[t&&t/(o*Object(i.B)(1-n*n)),2*Object(i.f)(n)]},e.a=function(){return Object(r.geoProjection)(a).scale(137.152)}},function(t,e,n){"use strict";e.b=i;var r=n(0),o=n(1);function i(t,e){var n=e/2,r=Object(o.h)(n);return[2*t/o.E*Object(o.h)(e)*r*r,o.E*Object(o.F)(n)]}i.invert=function(t,e){var n=Object(o.f)(e/o.E),r=Object(o.h)(n),i=2*n;return[t*o.E/2/(Object(o.h)(i)*r*r),i]},e.a=function(){return Object(r.geoProjection)(i).scale(135.264)}},function(t,e,n){"use strict";var o=n(0),a=n(1);function u(t){return[t[0]/2,Object(a.e)(Object(a.F)(t[1]/2*a.v))*a.j]}function c(t){return[2*t[0],2*Object(a.f)(Object(a.y)(t[1]*a.v))*a.j]}e.a=function(t){null==t&&(t=o.geoOrthographic);var r=t(),i=Object(o.geoEquirectangular)().scale(a.j).precision(0).clipAngle(null).translate([0,0]);function n(t){return r(u(t))}function e(e){n[e]=function(t){return arguments.length?(r[e](t),n):r[e]()}}return r.invert&&(n.invert=function(t){return c(r.invert(t))}),n.stream=function(t){var n=r.stream(t),e=i.stream({point:function(t,e){n.point(t/2,Object(a.e)(Object(a.F)(-e/2*a.v))*a.j)},lineStart:function(){n.lineStart()},lineEnd:function(){n.lineEnd()},polygonStart:function(){n.polygonStart()},polygonEnd:function(){n.polygonEnd()}});return e.sphere=n.sphere,e},n.rotate=function(t){return arguments.length?(i.rotate(t),n):i.rotate()},n.center=function(t){return arguments.length?(r.center(u(t)),n):c(r.center())},e("clipAngle"),e("clipExtent"),e("scale"),e("translate"),e("precision"),n.scale(249.5)}},function(t,e,n){"use strict";e.b=r;var j=n(0),_=n(1);function r(b,t){var m=2*_.s/t,x=b*b;function e(t,e){var n=Object(j.geoAzimuthalEquidistantRaw)(t,e),r=n[0],i=n[1],o=r*r+i*i;if(x<o){var a=Object(_.B)(o),u=Object(_.g)(i,r),c=m*Object(_.w)(u/m),s=u-c,f=b*Object(_.h)(s),l=(b*Object(_.y)(s)-s*Object(_.y)(f))/(_.o-f),h=O(s,l),p=(_.s-b)/w(h,f,_.s);r=a;for(var v,g=50;r-=v=(b+w(h,f,r)*p-a)/(h(r)*p),Object(_.a)(v)>_.k&&0<--g;);i=s*Object(_.y)(r),r<_.o&&(i-=l*(r-_.o));var d=Object(_.y)(c),y=Object(_.h)(c);n[0]=r*y-i*d,n[1]=r*d+i*y}return n}return e.invert=function(t,e){var n=t*t+e*e;if(x<n){var r=Object(_.B)(n),i=Object(_.g)(e,t),o=m*Object(_.w)(i/m),a=i-o;t=r*Object(_.h)(a),e=r*Object(_.y)(a);for(var u=t-_.o,c=Object(_.y)(t),s=e/c,f=t<_.o?1/0:0,l=10;;){var h=b*Object(_.y)(s),p=b*Object(_.h)(s),v=Object(_.y)(p),g=_.o-p,d=(h-s*v)/g,y=O(s,d);if(Object(_.a)(f)<_.l||!--l)break;s-=f=(s*c-d*u-e)/(c-2*u*(g*(p+s*h*Object(_.h)(p)-v)-h*(h-s*v))/(g*g))}i=o+s,t=(r=b+w(y,p,t)*(_.s-b)/w(y,p,_.s))*Object(_.h)(i),e=r*Object(_.y)(i)}return j.geoAzimuthalEquidistantRaw.invert(t,e)},e}function O(n,r){return function(t){var e=n*Object(_.h)(t);return t<_.o&&(e-=r),Object(_.B)(1+e*e)}}function w(t,e,n){for(var r=(n-e)/50,i=t(e)+t(n),o=1,a=e;o<50;++o)i+=2*t(a+=r);return.5*i*r}e.a=function(){var i=6,e=30*_.v,o=Object(_.h)(e),a=Object(_.y)(e),n=Object(j.geoProjectionMutator)(r),u=n(e,i),c=u.stream,s=-Object(_.h)(.01*_.v),f=Object(_.y)(.01*_.v);return u.radius=function(t){return arguments.length?(o=Object(_.h)(e=t*_.v),a=Object(_.y)(e),n(e,i)):e*_.j},u.lobes=function(t){return arguments.length?n(e,i=+t):i},u.stream=function(t){var e=u.rotate(),n=c(t),r=(u.rotate([0,0]),c(t));return u.rotate(e),n.sphere=function(){r.polygonStart(),r.lineStart();for(var t=0,e=2*_.s/i,n=0;t<i;++t,n-=e)r.point(Object(_.g)(f*Object(_.h)(n),s)*_.j,Object(_.e)(f*Object(_.y)(n))*_.j),r.point(Object(_.g)(a*Object(_.h)(n-e/2),o)*_.j,Object(_.e)(a*Object(_.y)(n-e/2))*_.j);r.lineEnd(),r.polygonEnd()},n},u.rotate([90,-40]).scale(91.7095).clipAngle(179.999)}},function(t,e,n){"use strict";n.d(e,"b",function(){return o});var r=n(0),i=n(63),o=Object(i.a)(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);e.a=function(){return Object(r.geoProjection)(o).scale(149.995)}},function(t,e,n){"use strict";n.d(e,"b",function(){return o});var r=n(0),i=n(63),o=Object(i.a)(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);e.a=function(){return Object(r.geoProjection)(o).scale(153.93)}},function(t,e,n){"use strict";n.d(e,"b",function(){return a});var r=n(0),i=n(63),o=n(1),a=Object(i.a)(5/6*o.s,-.62636,-.0344,0,1.3493,-.05524,0,.045);e.a=function(){return Object(r.geoProjection)(a).scale(130.945)}},function(t,e,n){"use strict";e.b=i;var r=n(0),c=n(1);function i(t,e){var n=t*t,r=e*e;return[t*(1-.162388*r)*(.87-952426e-9*n*n),e*(1+r/12)]}i.invert=function(t,e){var n,r=t,i=e,o=50;do{var a=i*i;i-=n=(i*(1+a/12)-e)/(1+a/4)}while(Object(c.a)(n)>c.k&&0<--o);o=50,t/=1-.162388*a;do{var u=(u=r*r)*u;r-=n=(r*(.87-952426e-9*u)-t)/(.87-.00476213*u)}while(Object(c.a)(n)>c.k&&0<--o);return[r,i]},e.a=function(){return Object(r.geoProjection)(i).scale(131.747)}},function(t,e,n){"use strict";n.d(e,"b",function(){return o});var r=n(0),i=n(63),o=Object(i.a)(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);e.a=function(){return Object(r.geoProjection)(o).scale(131.087)}},function(t,e,n){"use strict";e.c=function(t,e,n){var r,i,o;if(!t)return[[0,(i=a(e,1-n))[0]/i[1]],[1/i[1],0],[i[2]/i[1],0]];return r=a(t,n),e?(i=a(e,1-n),o=i[1]*i[1]+n*r[0]*r[0]*i[0]*i[0],[[r[0]*i[2]/o,r[1]*r[2]*i[0]*i[1]/o],[r[1]*i[1]/o,-r[0]*r[2]*i[0]*i[2]/o],[r[2]*i[1]*i[2]/o,-n*r[0]*r[1]*i[0]/o]]):[[r[0],0],[r[1],0],[r[2],0]]},e.b=function(t,e,n){var r=Object(l.a)(t),i=Object(l.a)(e),o=Object(l.A)(i);if(r){var a=1/Object(l.y)(r),u=1/(Object(l.F)(r)*Object(l.F)(r)),c=-(u+n*(o*o*a*a)-1+n),s=(n-1)*u,f=(-c+Object(l.B)(c*c-4*s))/2;return[h(Object(l.f)(1/Object(l.B)(f)),n)*Object(l.x)(t),h(Object(l.f)(Object(l.B)((f/u-1)/n)),1-n)*Object(l.x)(e)]}return[0,h(Object(l.f)(o),1-n)*Object(l.x)(e)]},e.a=h;var l=n(1);function a(t,e){var n,r,i,o,a;if(e<l.k)return[(o=Object(l.y)(t))-(n=e*(t-o*(r=Object(l.h)(t)))/4)*r,r+n*o,1-e*o*o/2,t-n];if(e>=1-l.k)return n=(1-e)/4,i=1/(r=Object(l.i)(t)),[(o=Object(l.G)(t))+n*((a=r*Object(l.A)(t))-t)/(r*r),i-n*o*i*(a-t),i+n*o*i*(a+t),2*Object(l.f)(Object(l.m)(t))-l.o+n*(a-t)/r];var u=[1,0,0,0,0,0,0,0,0],c=[Object(l.B)(e),0,0,0,0,0,0,0,0],s=0;for(r=Object(l.B)(1-e),a=1;Object(l.a)(c[s]/u[s])>l.k&&s<8;)n=u[s++],c[s]=(n-r)/2,u[s]=(n+r)/2,r=Object(l.B)(n*r),a*=2;for(i=a*u[s]*t;o=c[s]*Object(l.y)(r=i)/u[s],i=(Object(l.e)(o)+i)/2,--s;);return[Object(l.y)(i),o=Object(l.h)(i),o/Object(l.h)(i-r),i]}function h(t,e){if(!e)return t;if(1===e)return Object(l.p)(Object(l.F)(t/2+l.u));for(var n=1,r=Object(l.B)(1-e),i=Object(l.B)(e),o=0;Object(l.a)(i)>l.k;o++){if(t%l.s){var a=Object(l.f)(r*Object(l.F)(t)/n);a<0&&(a+=l.s),t+=a+~~(t/l.s)*l.s}else t+=t;i=(n+r)/2,r=Object(l.B)(n*r),i=((n=i)-r)/2}return t/(Object(l.t)(2,o)*n)}},function(t,e,n){"use strict";e.b=i;var o=n(0),r=n(1);function i(r,i){if(arguments.length<2&&(i=r),1===i)return o.geoAzimuthalEqualAreaRaw;if(i===1/0)return a;function t(t,e){var n=Object(o.geoAzimuthalEqualAreaRaw)(t/i,e);return n[0]*=r,n}return t.invert=function(t,e){var n=o.geoAzimuthalEqualAreaRaw.invert(t/r,e);return n[0]*=i,n},t}function a(t,e){return[t*Object(r.h)(e)/Object(r.h)(e/=2),2*Object(r.y)(e)]}a.invert=function(t,e){var n=2*Object(r.e)(e/2);return[t*Object(r.h)(n/2)/Object(r.h)(n),n]},e.a=function(){var e=2,n=Object(o.geoProjectionMutator)(i),t=n(e);return t.coefficient=function(t){return arguments.length?n(e=+t):e},t.scale(169.529)}},function(t,e,n){"use strict";e.b=u;var a=n(0),p=n(1);function u(t){var l=Object(p.y)(t),s=Object(p.h)(t),h=r(t);function e(t,e){var n=h(t,e);t=n[0],e=n[1];var r=Object(p.y)(e),i=Object(p.h)(e),o=Object(p.h)(t),a=Object(p.b)(l*r+s*i*o),u=Object(p.y)(a),c=Object(p.a)(u)>p.k?a/u:1;return[c*s*Object(p.y)(t),(Object(p.a)(t)>p.o?c:-c)*(l*i-s*r*o)]}return h.invert=r(-t),e.invert=function(t,e){var n=Object(p.B)(t*t+e*e),r=-Object(p.y)(n),i=Object(p.h)(n),o=n*i,a=-e*r,u=n*l,c=Object(p.B)(o*o+a*a-u*u),s=Object(p.g)(o*u+a*c,a*u-o*c),f=(n>p.o?-1:1)*Object(p.g)(t*r,n*Object(p.h)(s)*i+e*Object(p.y)(s)*r);return h.invert(f,s)},e}function r(t){var a=Object(p.y)(t),u=Object(p.h)(t);return function(t,e){var n=Object(p.h)(e),r=Object(p.h)(t)*n,i=Object(p.y)(t)*n,o=Object(p.y)(e);return[Object(p.g)(i,r*u-o*a),Object(p.e)(o*u+r*a)]}}e.a=function(){var n=0,r=Object(a.geoProjectionMutator)(u),i=r(n),e=i.rotate,t=i.stream,o=Object(a.geoCircle)();return i.parallel=function(t){if(!arguments.length)return n*p.j;var e=i.rotate();return r(n=t*p.v).rotate(e)},i.rotate=function(t){return arguments.length?(e.call(i,[t[0],t[1]-n*p.j]),o.center([-t[0],-t[1]]),i):((t=e.call(i))[1]+=n*p.j,t)},i.stream=function(i){return(i=t(i)).sphere=function(){i.polygonStart();var t,e=o.radius(89.99)().coordinates[0],n=e.length-1,r=-1;for(i.lineStart();++r<n;)i.point((t=e[r])[0],t[1]);for(i.lineEnd(),n=(e=o.radius(90.01)().coordinates[0]).length-1,i.lineStart();0<=--r;)i.point((t=e[r])[0],t[1]);i.lineEnd(),i.polygonEnd()},i},i.scale(79.4187).parallel(45).clipAngle(179.999)}},function(t,e,n){"use strict";e.b=s;var u=n(12),c=n(0),v=n(93),r=n(176),g=n(1),d=41+48/36+37/3600,y=Object(r.a)(0);function s(o){var a=d*g.v,u=Object(v.a)(g.s,a)[0]-Object(v.a)(-g.s,a)[0],c=y(0,a)[1],s=Object(v.a)(0,a)[1],f=g.E-s,l=g.H/o,h=4/g.H,p=c+f*f*4/g.H;function t(t,e){var n,r=Object(g.a)(e);if(a<r){var i=Object(g.r)(o-1,Object(g.q)(0,Object(g.n)((t+g.s)/l)));t+=g.s*(o-1)/o-i*l,(n=Object(v.a)(t,r))[0]=n[0]*g.H/u-g.H*(o-1)/(2*o)+i*g.H/o,n[1]=c+4*(n[1]-s)*f/g.H,e<0&&(n[1]=-n[1])}else n=y(t,e);return n[0]*=h,n[1]/=p,n}return t.invert=function(t,e){t/=h,e*=p;var n=Object(g.a)(e);if(c<n){var r=Object(g.r)(o-1,Object(g.q)(0,Object(g.n)((t+g.s)/l)));t=(t+g.s*(o-1)/o-r*l)*u/g.H;var i=v.a.invert(t,.25*(n-c)*g.H/f+s);return i[0]-=g.s*(o-1)/o-r*l,e<0&&(i[1]=-i[1]),i}return y.invert(t,e)},t}e.a=function(){var i=4,e=Object(c.geoProjectionMutator)(s),o=e(i),a=o.stream;return o.lobes=function(t){return arguments.length?e(i=+t):i},o.stream=function(t){var e=o.rotate(),n=a(t),r=(o.rotate([0,0]),a(t));return o.rotate(e),n.sphere=function(){var t;Object(c.geoStream)((t=180/i,{type:"Polygon",coordinates:[Object(u.range)(-180,180+t/2,t).map(function(t,e){return[t,1&e?90-1e-6:d]}).concat(Object(u.range)(180,-180-t/2,-t).map(function(t,e){return[t,1&e?1e-6-90:-d]}))]}),r)},n},o.scale(239.75)}},function(t,e,n){"use strict";e.b=i;var r=n(0),x=n(1);function i(h){var p,v=1+h,t=Object(x.y)(1/v),g=Object(x.e)(t),d=2*Object(x.B)(x.s/(p=x.s+4*g*v)),y=.5*d*(v+Object(x.B)(h*(2+h))),b=h*h,m=v*v;function e(t,e){var n,r,i=1-Object(x.y)(e);if(i&&i<2){var o,a=x.o-e,u=25;do{var c=Object(x.y)(a),s=Object(x.h)(a),f=g+Object(x.g)(c,v-s),l=1+m-2*v*s;a-=o=(a-b*g-v*c+l*f-.5*i*p)/(2*v*c*f)}while(Object(x.a)(o)>x.l&&0<--u);n=d*Object(x.B)(l),r=t*f/x.s}else n=d*(h+i),r=t*g/x.s;return[n*Object(x.y)(r),y-n*Object(x.h)(r)]}return e.invert=function(t,e){var n=t*t+(e-=y)*e,r=(1+m-n/(d*d))/(2*v),i=Object(x.b)(r),o=Object(x.y)(i),a=g+Object(x.g)(o,v-r);return[Object(x.e)(t/Object(x.B)(n))*x.s/a,Object(x.e)(1-2*(i-b*g-v*o+(1+m-2*v*r)*a)/p)]},e}e.a=function(){var e=1,n=Object(r.geoProjectionMutator)(i),t=n(e);return t.ratio=function(t){return arguments.length?n(e=+t):e},t.scale(167.774).center([0,18.67])}},function(t,e,n){"use strict";var r=n(175),i=n(27),o=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];e.a=function(){return Object(i.a)(r.a,o).scale(160.857)}},function(t,e,n){"use strict";var r=n(180),i=n(27),o=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];e.a=function(){return Object(i.a)(r.b,o).scale(152.63)}},function(t,e,n){"use strict";var r=n(22),i=n(27),o=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];e.a=function(){return Object(i.a)(r.d,o).scale(169.529)}},function(t,e,n){"use strict";var r=n(22),i=n(27),o=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];e.a=function(){return Object(i.a)(r.d,o).scale(169.529).rotate([20,0])}},function(t,e,n){"use strict";var r=n(94),i=n(27),o=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];e.a=function(){return Object(i.a)(r.c,o).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}},function(t,e,n){"use strict";var r=n(42),i=n(27),o=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];e.a=function(){return Object(i.a)(r.b,o).scale(152.63).rotate([-20,0])}},function(t,e,n){"use strict";e.b=o;var r=n(0),i=n(1);function o(t,e){return[3/i.H*t*Object(i.B)(i.s*i.s/3-e*e),e]}o.invert=function(t,e){return[i.H/3*t/Object(i.B)(i.s*i.s/3-e*e),e]},e.a=function(){return Object(r.geoProjection)(o).scale(158.837)}},function(t,e,n){"use strict";e.b=i;var r=n(0),u=n(1);function i(a){function t(t,e){if(Object(u.a)(Object(u.a)(e)-u.o)<u.k)return[0,e<0?-2:2];var n=Object(u.y)(e),r=Object(u.t)((1+n)/(1-n),a/2),i=.5*(r+1/r)+Object(u.h)(t*=a);return[2*Object(u.y)(t)/i,(r-1/r)/i]}return t.invert=function(t,e){var n=Object(u.a)(e);if(Object(u.a)(n-2)<u.k)return t?null:[0,Object(u.x)(e)*u.o];if(2<n)return null;var r=(t/=2)*t,i=(e/=2)*e,o=2*e/(1+r+i);return o=Object(u.t)((1+o)/(1-o),1/a),[Object(u.g)(2*t,1-r-i)/a,Object(u.e)((o-1)/(o+1))]},t}e.a=function(){var e=.5,n=Object(r.geoProjectionMutator)(i),t=n(e);return t.spacing=function(t){return arguments.length?n(e=+t):e},t.scale(124.75)}},function(t,e,n){"use strict";e.b=i;var r=n(0),_=n(1),O=_.s/_.D;function i(t,e){return[t*(1+Object(_.B)(Object(_.h)(e)))/2,e/(Object(_.h)(e/2)*Object(_.h)(t/6))]}i.invert=function(t,e){var n=Object(_.a)(t),r=Object(_.a)(e),i=_.k,o=_.o;r<O?o*=r/O:i+=6*Object(_.b)(O/r);for(var a=0;a<25;a++){var u=Object(_.y)(o),c=Object(_.B)(Object(_.h)(o)),s=Object(_.y)(o/2),f=Object(_.h)(o/2),l=Object(_.y)(i/6),h=Object(_.h)(i/6),p=.5*i*(1+c)-n,v=o/(f*h)-r,g=c?-.25*i*u/c:0,d=.5*(1+c),y=(1+.5*o*s/f)/(f*h),b=o/f*(l/6)/(h*h),m=g*b-y*d,x=(p*b-v*d)/m,j=(v*g-p*y)/m;if(o-=x,i-=j,Object(_.a)(x)<_.k&&Object(_.a)(j)<_.k)break}return[t<0?-i:i,e<0?-o:o]},e.a=function(){return Object(r.geoProjection)(i).scale(97.2672)}},function(t,e,n){"use strict";e.b=i;var r=n(0),y=n(1);function i(t,e){var n=t*t,r=e*e;return[t*(.975534+r*(-.0143059*n-.119161+-.0547009*r)),e*(1.00384+n*(.0802894+-.02855*r+199025e-9*n)+r*(.0998909+-.0491032*r))]}i.invert=function(t,e){var n=Object(y.x)(t)*y.s,r=e/2,i=50;do{var o=n*n,a=r*r,u=n*r,c=n*(.975534+a*(-.0143059*o-.119161+-.0547009*a))-t,s=r*(1.00384+o*(.0802894+-.02855*a+199025e-9*o)+a*(.0998909+-.0491032*a))-e,f=.975534-a*(.119161+3*o*.0143059+.0547009*a),l=-u*(.238322+.2188036*a+.0286118*o),h=u*(.1605788+7961e-7*o+-.0571*a),p=1.00384+o*(.0802894+199025e-9*o)+a*(3*(.0998909-.02855*o)-.245516*a),v=l*h-p*f,g=(s*l-c*p)/v,d=(c*h-s*f)/v;n-=g,r-=d}while((Object(y.a)(g)>y.k||Object(y.a)(d)>y.k)&&0<--i);return i&&[n,r]},e.a=function(){return Object(r.geoProjection)(i).scale(139.98)}},function(t,e,n){"use strict";e.b=i;var r=n(0),a=n(1);function i(t,e){return[Object(a.y)(t)/Object(a.h)(e),Object(a.F)(e)*Object(a.h)(t)]}i.invert=function(t,e){var n=t*t,r=e*e,i=r+1,o=t?a.C*Object(a.B)((i-Object(a.B)(n*n+2*n*(r-1)+i*i))/n+1):1/Object(a.B)(i);return[Object(a.e)(t*o),Object(a.x)(e)*Object(a.b)(o)]},e.a=function(){return Object(r.geoProjection)(i).scale(144.049).clipAngle(89.999)}},function(t,e,n){"use strict";e.b=i;var r=n(35),u=n(1);function i(i){var o=Object(u.h)(i),a=Object(u.F)(u.u+i/2);function t(t,e){var n=e-i,r=Object(u.a)(n)<u.k?t*o:Object(u.a)(r=u.u+e/2)<u.k||Object(u.a)(Object(u.a)(r)-u.o)<u.k?0:t*n/Object(u.p)(Object(u.F)(r)/a);return[r,n]}return t.invert=function(t,e){var n,r=e+i;return[Object(u.a)(e)<u.k?t/o:Object(u.a)(n=u.u+r/2)<u.k||Object(u.a)(Object(u.a)(n)-u.o)<u.k?0:t*Object(u.p)(Object(u.F)(n)/a)/e,r]},t}e.a=function(){return Object(r.a)(i).parallel(40).scale(158.837)}},function(t,e,n){"use strict";e.b=o;var r=n(0),i=n(1);function o(t,e){return[t,1.25*Object(i.p)(Object(i.F)(i.u+.4*e))]}o.invert=function(t,e){return[t,2.5*Object(i.f)(Object(i.m)(.8*e))-.625*i.s]},e.a=function(){return Object(r.geoProjection)(o).scale(108.318)}},function(t,e,n){"use strict";e.g=a,e.b=function(){return f(r,[152,-64]).scale(1500).center([-160.908,62.4864]).clipAngle(25)},e.c=function(){return f(i,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])},e.d=function(){return f(u,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])},e.f=function(){return f(c,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)},e.e=function(){return f(s,[165,10]).scale(250).clipAngle(130).center([-165,-10])},e.a=f;var o=n(0),x=n(1);function a(b){var m=b.length-1;function t(t,e){for(var n,r=Object(x.h)(e),i=2/(1+r*Object(x.h)(t)),o=i*r*Object(x.y)(t),a=i*Object(x.y)(e),u=m,c=b[u],s=c[0],f=c[1];0<=--u;)s=(c=b[u])[0]+o*(n=s)-a*f,f=c[1]+o*f+a*n;return[s=o*(n=s)-a*f,f=o*f+a*n]}return t.invert=function(t,e){var n=20,r=t,i=e;do{for(var o,a=m,u=b[a],c=u[0],s=u[1],f=0,l=0;0<=--a;)f=c+r*(o=f)-i*l,l=s+r*l+i*o,c=(u=b[a])[0]+r*(o=c)-i*s,s=u[1]+r*s+i*o;var h,p,v=(f=c+r*(o=f)-i*l)*f+(l=s+r*l+i*o)*l;r-=h=((c=r*(o=c)-i*s-t)*f+(s=r*s+i*o-e)*l)/v,i-=p=(s*f-c*l)/v}while(Object(x.a)(h)+Object(x.a)(p)>x.k*x.k&&0<--n);if(n){var g=Object(x.B)(r*r+i*i),d=2*Object(x.f)(.5*g),y=Object(x.y)(d);return[Object(x.g)(r*y,g*Object(x.h)(d)),g?Object(x.e)(i*y/g):0]}},t}var r=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],i=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],u=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],c=[[.9245,0],[0,0],[.01943,0]],s=[[.721316,0],[0,0],[-.00881625,-.00617325]];function f(t,e){var n=Object(o.geoProjection)(a(t)).rotate(e).clipAngle(90),r=Object(o.geoRotation)(e),i=n.center;return delete n.rotate,n.center=function(t){return arguments.length?i(r(t)):r.invert(i())},n}},function(t,e,n){"use strict";e.b=u;var r=n(0),i=n(1),o=Object(i.B)(6),a=Object(i.B)(7);function u(t,e){var n=Object(i.e)(7*Object(i.y)(e)/(3*o));return[o*t*(2*Object(i.h)(2*n/3)-1)/a,9*Object(i.y)(n/3)/a]}u.invert=function(t,e){var n=3*Object(i.e)(e*a/9);return[t*a/(o*(2*Object(i.h)(2*n/3)-1)),Object(i.e)(3*Object(i.y)(n)*o/7)]},e.a=function(){return Object(r.geoProjection)(u).scale(164.859)}},function(t,e,n){"use strict";e.b=i;var r=n(0),a=n(1);function i(t,e){for(var n,r=(1+a.C)*Object(a.y)(e),i=e,o=0;o<25&&(i-=n=(Object(a.y)(i/2)+Object(a.y)(i)-r)/(.5*Object(a.h)(i/2)+Object(a.h)(i)),!(Object(a.a)(n)<a.k));o++);return[t*(1+2*Object(a.h)(i)/Object(a.h)(i/2))/(3*a.D),2*Object(a.B)(3)*Object(a.y)(i/2)/Object(a.B)(2+a.D)]}i.invert=function(t,e){var n=e*Object(a.B)(2+a.D)/(2*Object(a.B)(3)),r=2*Object(a.e)(n);return[3*a.D*t/(1+2*Object(a.h)(r)/Object(a.h)(r/2)),Object(a.e)((n+Object(a.y)(r))/(1+a.C))]},e.a=function(){return Object(r.geoProjection)(i).scale(188.209)}},function(t,e,n){"use strict";e.b=i;var r=n(0),u=n(1);function i(t,e){for(var n,r=Object(u.B)(6/(4+u.s)),i=(1+u.s/4)*Object(u.y)(e),o=e/2,a=0;a<25&&(o-=n=(o/2+Object(u.y)(o)-i)/(.5+Object(u.h)(o)),!(Object(u.a)(n)<u.k));a++);return[r*(.5+Object(u.h)(o))*t/1.5,r*o]}i.invert=function(t,e){var n=Object(u.B)(6/(4+u.s)),r=e/n;return Object(u.a)(Object(u.a)(r)-u.o)<u.k&&(r=r<0?-u.o:u.o),[1.5*t/(n*(.5+Object(u.h)(r))),Object(u.e)((r/2+Object(u.y)(r))/(1+u.s/4))]},e.a=function(){return Object(r.geoProjection)(i).scale(166.518)}},function(t,e,n){"use strict";e.b=i;var r=n(0),u=n(1);function i(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),e*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}i.invert=function(t,e){var n,r=e,i=25;do{var o=r*r,a=o*o;r-=n=(r*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-e)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(Object(u.a)(n)>u.k&&0<--i);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},e.a=function(){return Object(r.geoProjection)(i).scale(175.295)}},function(t,e,n){"use strict";e.b=i;var r=n(0),c=n(1);function i(t,e){var n=e*e,r=n*n,i=n*r;return[t*(.84719-.13063*n+i*i*(.05494*n-.04515-.02326*r+.00331*i)),e*(1.01183+r*r*(.01926*n-.02625-.00396*r))]}i.invert=function(t,e){for(var n,r,i,o,a=e,u=25;a-=n=(a*(1.01183+(i=(r=a*a)*r)*i*(.01926*r-.02625-.00396*i))-e)/(1.01183+i*i*(.21186*r-.23625+-.05148*i)),Object(c.a)(n)>c.l&&0<--u;);return[t/(.84719-.13063*(r=a*a)+(o=r*(i=r*r))*o*(.05494*r-.04515-.02326*i+.00331*o)),a]},e.a=function(){return Object(r.geoProjection)(i).scale(175.295)}},function(t,e,n){"use strict";e.b=i;var r=n(0),a=n(1);function i(t,e){return[t*(1+Object(a.h)(e))/2,2*(e-Object(a.F)(e/2))]}i.invert=function(t,e){for(var n=e/2,r=0,i=1/0;r<10&&Object(a.a)(i)>a.k;++r){var o=Object(a.h)(e/2);e-=i=(e-Object(a.F)(e/2)-n)/(1-.5/(o*o))}return[2*t/(1+Object(a.h)(e)),e]},e.a=function(){return Object(r.geoProjection)(i).scale(152.63)}},function(t,e,n){"use strict";e.b=i;var r=n(0),o=n(1),a=1.0148,u=.23185,c=-.14499,s=.02406,f=a,l=5*u,h=7*c,p=9*s,v=1.790857183;function i(t,e){var n=e*e;return[t,e*(a+n*n*(u+n*(c+s*n)))]}i.invert=function(t,e){v<e?e=v:e<-v&&(e=-v);var n,r=e;do{var i=r*r;r-=n=(r*(a+i*i*(u+i*(c+s*i)))-e)/(f+i*i*(l+i*(h+p*i)))}while(Object(o.a)(n)>o.k);return[t,r]},e.a=function(){return Object(r.geoProjection)(i).scale(139.319)}},function(t,e,n){"use strict";e.b=i;var r=n(0),s=n(1);function i(t,e){if(Object(s.a)(e)<s.k)return[t,0];var n=Object(s.F)(e),r=t*Object(s.y)(e);return[Object(s.y)(r)/n,e+(1-Object(s.h)(r))/n]}i.invert=function(t,e){if(Object(s.a)(e)<s.k)return[t,0];var n,r=t*t+e*e,i=.5*e,o=10;do{var a=Object(s.F)(i),u=1/Object(s.h)(i),c=r-2*e*i+i*i;i-=n=(a*c+2*(i-e))/(2+c*u*u+2*(i-e)*a)}while(Object(s.a)(n)>s.k&&0<--o);return a=Object(s.F)(i),[(Object(s.a)(e)<Object(s.a)(i+1/a)?Object(s.e)(t*a):Object(s.x)(t)*(Object(s.b)(Object(s.a)(t*a))+s.o))/Object(s.y)(i),i]},e.a=function(){return Object(r.geoProjection)(i).scale(103.74)}},function(t,e,n){"use strict";e.b=function(t){var e=1/(t[0]*t[4]-t[1]*t[3]);return[e*t[4],-e*t[1],e*(t[1]*t[5]-t[2]*t[4]),-e*t[3],e*t[0],e*(t[2]*t[3]-t[0]*t[5])]},e.c=s;var c=n(1);function s(t,e){return[t[0]*e[0]+t[1]*e[3],t[0]*e[1]+t[1]*e[4],t[0]*e[2]+t[1]*e[5]+t[2],t[3]*e[0]+t[4]*e[3],t[3]*e[1]+t[4]*e[4],t[3]*e[2]+t[4]*e[5]+t[5]]}function f(t,e){return[t[0]-e[0],t[1]-e[1]]}function l(t){return Object(c.B)(t[0]*t[0]+t[1]*t[1])}e.a=function(t,e){var n,r,i=f(t[1],t[0]),o=f(e[1],e[0]),a=(n=i,r=o,Object(c.g)(n[0]*r[1]-n[1]*r[0],n[0]*r[0]+n[1]*r[1])),u=l(i)/l(o);return s([1,0,t[0][0],0,1,t[0][1]],s([u,0,0,0,u,0],s([Object(c.h)(a),Object(c.y)(a),0,-Object(c.y)(a),Object(c.h)(a),0],[1,0,-e[0][0],0,1,-e[0][1]])))}},function(t,e,n){"use strict";var i=n(0),o=n(1),a=n(64),u=n(95);e.a=function(e){e=e||function(t){var e=Object(i.geoCentroid)({type:"MultiPoint",coordinates:t});return Object(i.geoGnomonic)().scale(1).translate([0,0]).rotate([-e[0],-e[1]])};var r=u.a.map(function(t){return{face:t,project:e(t)}});return[-1,0,0,1,0,1,4,5].forEach(function(t,e){var n=r[t];n&&(n.children||(n.children=[])).push(r[e])}),Object(a.a)(r[0],function(t,e){return r[t<-o.s/2?e<0?6:4:t<0?e<0?2:0:t<o.s/2?e<0?3:1:e<0?7:5]}).scale(101.858).center([0,45])}},function(t,e,n){"use strict";var i=n(0),r=n(93),o=n(1),a=n(64),u=n(95),c=2/Object(o.B)(3);function s(t,e){var n=Object(r.a)(t,e);return[n[0]*c,n[1]]}s.invert=function(t,e){return r.a.invert(t/c,e)},e.a=function(e){e=e||function(t){var e=Object(i.geoCentroid)({type:"MultiPoint",coordinates:t});return Object(i.geoProjection)(s).translate([0,0]).scale(1).rotate(0<e[1]?[-e[0],0]:[180-e[0],180])};var r=u.a.map(function(t){return{face:t,project:e(t)}});return[-1,0,0,1,0,1,4,5].forEach(function(t,e){var n=r[t];n&&(n.children||(n.children=[])).push(r[e])}),Object(a.a)(r[0],function(t,e){return r[t<-o.s/2?e<0?6:4:t<0?e<0?2:0:t<o.s/2?e<0?3:1:e<0?7:5]}).scale(121.906).center([0,48.5904])}},function(t,e,n){"use strict";var r=n(0),u=n(1),i=n(64),l=n(95);function h(t,e){for(var n=0,r=t.length,i=0;n<r;++n)i+=t[n]*e[n];return i}function p(t){return[Object(u.g)(t[1],t[0])*u.j,Object(u.e)(Object(u.q)(-1,Object(u.r)(1,t[2])))*u.j]}function v(t){var e=t[0]*u.v,n=t[1]*u.v,r=Object(u.h)(n);return[r*Object(u.h)(e),r*Object(u.y)(e),Object(u.y)(n)]}e.a=function(e){e=e||function(t){var e=6===t.length?Object(r.geoCentroid)({type:"MultiPoint",coordinates:t}):t[0];return Object(r.geoGnomonic)().scale(1).translate([0,0]).rotate([-e[0],-e[1]])};var c=l.a.map(function(t){for(var e,n=t.map(v),r=n.length,i=n[r-1],o=[],a=0;a<r;++a)e=n[a],o.push(p([.9486832980505138*i[0]+.31622776601683794*e[0],.9486832980505138*i[1]+.31622776601683794*e[1],.9486832980505138*i[2]+.31622776601683794*e[2]]),p([.9486832980505138*e[0]+.31622776601683794*i[0],.9486832980505138*e[1]+.31622776601683794*i[1],.9486832980505138*e[2]+.31622776601683794*i[2]])),i=e;return o}),s=[],f=[-1,0,0,1,0,1,4,5];c.forEach(function(t,e){for(var n,r,i=l.a[e],o=i.length,a=s[e]=[],u=0;u<o;++u)c.push([i[u],t[(2*u+2)%(2*o)],t[(2*u+1)%(2*o)]]),f.push(e),a.push((n=v(t[(2*u+2)%(2*o)]),r=v(t[(2*u+1)%(2*o)]),[n[1]*r[2]-n[2]*r[1],n[2]*r[0]-n[0]*r[2],n[0]*r[1]-n[1]*r[0]]))});var a=c.map(function(t){return{project:e(t),face:t}});return f.forEach(function(t,e){var n=a[t];n&&(n.children||(n.children=[])).push(a[e])}),Object(i.a)(a[0],function(t,e){var n=Object(u.h)(e),r=[n*Object(u.h)(t),n*Object(u.y)(t),Object(u.y)(e)],i=t<-u.s/2?e<0?6:4:t<0?e<0?2:0:t<u.s/2?e<0?3:1:e<0?7:5,o=s[i];return a[h(o[0],r)<0?8+3*i:h(o[1],r)<0?8+3*i+1:h(o[2],r)<0?8+3*i+2:i]}).scale(110.625).center([0,45])}},function(t,e,n){"use strict";var i=n(0),r=n(400),o=n(401),a=n(402);function u(t,e){return{type:"FeatureCollection",features:t.features.map(function(t){return c(t,e)})}}function c(t,e){return{type:"Feature",id:t.id,properties:t.properties,geometry:s(t.geometry,e)}}function s(t,e){if(!t)return null;if("GeometryCollection"===t.type)return n=e,{type:"GeometryCollection",geometries:t.geometries.map(function(t){return s(t,n)})};var n,r;switch(t.type){case"Point":case"MultiPoint":r=h;break;case"LineString":case"MultiLineString":r=p;break;case"Polygon":case"MultiPolygon":case"Sphere":r=v;break;default:return null}return Object(i.geoStream)(t,e(r)),r.result()}e.a=function(t,e){var n,r=e.stream;if(!r)throw new Error("invalid projection");switch(t&&t.type){case"Feature":n=c;break;case"FeatureCollection":n=u;break;default:n=s}return n(t,r)};var f=[],l=[],h={point:function(t,e){f.push([t,e])},result:function(){var t=f.length?f.length<2?{type:"Point",coordinates:f[0]}:{type:"MultiPoint",coordinates:f}:null;return f=[],t}},p={lineStart:r.a,point:function(t,e){f.push([t,e])},lineEnd:function(){f.length&&(l.push(f),f=[])},result:function(){var t=l.length?l.length<2?{type:"LineString",coordinates:l[0]}:{type:"MultiLineString",coordinates:l}:null;return l=[],t}},v={polygonStart:r.a,lineStart:r.a,point:function(t,e){f.push([t,e])},lineEnd:function(){var t=f.length;if(t){for(;f.push(f[0].slice()),++t<4;);l.push(f),f=[]}},polygonEnd:r.a,result:function(){if(!l.length)return null;var r=[],e=[];return l.forEach(function(t){Object(o.a)(t)?r.push([t]):e.push(t)}),e.forEach(function(e){var n=e[0];r.some(function(t){if(Object(a.a)(t[0],n))return t.push(e),!0})||r.push([e])}),l=[],r.length?1<r.length?{type:"MultiPolygon",coordinates:r}:{type:"Polygon",coordinates:r[0]}:null}}},function(t,e,n){"use strict";e.a=function(){}},function(t,e,n){"use strict";e.a=function(t){if((e=t.length)<4)return!1;for(var e,n=0,r=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++n<e;)r+=t[n-1][1]*t[n][0]-t[n-1][0]*t[n][1];return r<=0}},function(t,e,n){"use strict";e.a=function(t,e){for(var n=e[0],r=e[1],i=!1,o=0,a=t.length,u=a-1;o<a;u=o++){var c=t[o],s=c[0],f=c[1],l=t[u],h=l[0],p=l[1];r<f^r<p&&n<(h-s)*(r-f)/(p-f)+s&&(i=!i)}return i}},function(t,e,n){"use strict";var r=n(177),i=n(96);e.a=function(){return Object(i.a)(r.b).scale(176.423)}},function(t,e,n){"use strict";e.a=function(t,i){if(!(0<=(i=+i)&&i<=20))throw new Error("invalid digits");function n(t){var e=t.length,n=2,r=new Array(e);for(r[0]=+t[0].toFixed(i),r[1]=+t[1].toFixed(i);n<e;)r[n]=t[n],++n;return r}function r(t){return t.map(n)}function o(t){return t.map(r)}function a(t){if(null==t)return t;var e;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(a)};break;case"Point":e={type:"Point",coordinates:n(t.coordinates)};break;case"MultiPoint":case"LineString":e={type:t.type,coordinates:r(t.coordinates)};break;case"MultiLineString":case"Polygon":e={type:t.type,coordinates:o(t.coordinates)};break;case"MultiPolygon":e={type:"MultiPolygon",coordinates:t.coordinates.map(o)};break;default:return t}return null!=t.bbox&&(e.bbox=t.bbox),e}function e(t){var e={type:"Feature",properties:t.properties,geometry:a(t.geometry)};return null!=t.id&&(e.id=t.id),null!=t.bbox&&(e.bbox=t.bbox),e}if(null!=t)switch(t.type){case"Feature":return e(t);case"FeatureCollection":var u={type:"FeatureCollection",features:t.features.map(e)};return null!=t.bbox&&(u.bbox=t.bbox),u;default:return a(t)}return t}},function(t,e,n){"use strict";e.b=i;var p=n(1),r=n(35);function i(l){var h=Object(p.y)(l);function t(t,e){var n=h?Object(p.F)(t*h/2)/h:t/2;if(!e)return[2*n,-l];var r=2*Object(p.f)(n*Object(p.y)(e)),i=1/Object(p.F)(e);return[Object(p.y)(r)*i,e+(1-Object(p.h)(r))*i-l]}return t.invert=function(t,e){if(Object(p.a)(e+=l)<p.k)return[h?2*Object(p.f)(h*t/2)/h:t,0];var n,r=t*t+e*e,i=0,o=10;do{var a=Object(p.F)(i),u=1/Object(p.h)(i),c=r-2*e*i+i*i;i-=n=(a*c+2*(i-e))/(2+c*u*u+2*(i-e)*a)}while(Object(p.a)(n)>p.k&&0<--o);var s=t*(a=Object(p.F)(i)),f=Object(p.F)(Object(p.a)(e)<Object(p.a)(i+1/a)?.5*Object(p.e)(s):.5*Object(p.b)(s)+p.s/4)/Object(p.y)(i);return[h?2*Object(p.f)(h*f)/h:2*f,i]},t}e.a=function(){return Object(r.a)(i).scale(131.215)}},function(t,e,n){"use strict";e.b=i;var r=n(0),m=n(1),x=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];function i(t,e){var n,r=Object(m.r)(18,36*Object(m.a)(e)/m.s),i=Object(m.n)(r),o=r-i,a=(n=x[i])[0],u=n[1],c=(n=x[++i])[0],s=n[1],f=(n=x[Object(m.r)(19,++i)])[0],l=n[1];return[t*(c+o*(f-a)/2+o*o*(f-2*c+a)/2),(0<e?m.o:-m.o)*(s+o*(l-u)/2+o*o*(l-2*s+u)/2)]}x.forEach(function(t){t[1]*=1.0144}),i.invert=function(t,e){var n=e/m.o,r=90*n,i=Object(m.r)(18,Object(m.a)(r/5)),o=Object(m.q)(0,Object(m.n)(i));do{var a=x[o][1],u=x[o+1][1],c=x[Object(m.r)(19,o+2)][1],s=c-a,f=c-2*u+a,l=2*(Object(m.a)(n)-u)/s,h=f/s,p=l*(1-h*l*(1-2*h*l));if(0<=p||1===o){r=(0<=e?5:-5)*(p+i);for(var v,g=50;p=(i=Object(m.r)(18,Object(m.a)(r)/5))-(o=Object(m.n)(i)),a=x[o][1],u=x[o+1][1],c=x[Object(m.r)(19,o+2)][1],r-=(v=(0<=e?m.o:-m.o)*(u+p*(c-a)/2+p*p*(c-2*u+a)/2)-e)*m.j,Object(m.a)(v)>m.l&&0<--g;);break}}while(0<=--o);var d=x[o][0],y=x[o+1][0],b=x[Object(m.r)(19,o+2)][0];return[t/(y+p*(b-d)/2+p*p*(b-2*y+d)/2),r*m.v]},e.a=function(){return Object(r.geoProjection)(i).scale(152.63)}},function(t,e,n){"use strict";e.b=o;var i=n(0),s=n(1);function o(o,t){var a=function(o){function t(t,e){var n=Object(s.h)(e),r=(o-1)/(o-n*Object(s.h)(t));return[r*n*Object(s.y)(t),r*Object(s.y)(e)]}return t.invert=function(t,e){var n=t*t+e*e,r=Object(s.B)(n),i=(o-Object(s.B)(1-n*(o+1)/(o-1)))/((o-1)/r+r/(o-1));return[Object(s.g)(t*i,r*Object(s.B)(1-i*i)),r?Object(s.e)(e*i/r):0]},t}(o);if(!t)return a;var u=Object(s.h)(t),c=Object(s.y)(t);function e(t,e){var n=a(t,e),r=n[1],i=r*c/(o-1)+u;return[n[0]*u/i,r/i]}return e.invert=function(t,e){var n=(o-1)/(o-1-e*c);return a.invert(n*t,n*e*u)},e}e.a=function(){var e=2,n=0,r=Object(i.geoProjectionMutator)(o),t=r(e,n);return t.distance=function(t){return arguments.length?r(e=+t,n):e},t.tilt=function(t){return arguments.length?r(e,n=t*s.v):n*s.j},t.scale(432.147).clipAngle(Object(s.b)(1/e)*s.j-1e-6)}},function(t,e,n){"use strict";var r=1e4,i=-180,d=i+1e-4,o=180,y=o-1e-4,a=-90,b=a+1e-4,u=90,m=u-1e-4;function c(t){return 0<t.length}function x(t){return t===a||t===u?[0,t]:[i,(e=t,Math.floor(e*r)/r)];var e}function j(t){var e=t[0],n=t[1],r=!1;return e<=d?(e=i,r=!0):y<=e&&(e=o,r=!0),n<=b?(n=a,r=!0):m<=n&&(n=u,r=!0),r?[e,n]:t}function s(t){return t.map(j)}function f(t,e,n){for(var r=0,i=t.length;r<i;++r){var o=t[r].slice();n.push({index:-1,polygon:e,ring:o});for(var a=0,u=o.length;a<u;++a){var c=o[a],s=c[0],f=c[1];if(s<=d||y<=s||f<=b||m<=f){o[a]=j(c);for(var l=a+1;l<u;++l){var h=o[l],p=h[0],v=h[1];if(d<p&&p<y&&b<v&&v<m)break}if(l===a+1)continue;if(a){var g={index:-1,polygon:e,ring:o.slice(0,a+1)};g.ring[g.ring.length-1]=x(f),n[n.length-1]=g}else n.pop();if(u<=l)break;n.push({index:-1,polygon:e,ring:o=o.slice(l-1)}),o[0]=x(o[0][1]),a=-1,u=o.length}}}}function l(t){var e,n,r,i,o,a,u=t.length,c={},s={};for(e=0;e<u;++e)r=(n=t[e]).ring[0],o=n.ring[n.ring.length-1],r[0]!==o[0]||r[1]!==o[1]?(n.index=e,c[r]=s[o]=n):(n.polygon.push(n.ring),t[e]=null);for(e=0;e<u;++e)if(n=t[e]){if(r=n.ring[0],o=n.ring[n.ring.length-1],i=s[r],a=c[o],delete c[r],delete s[o],r[0]===o[0]&&r[1]===o[1]){n.polygon.push(n.ring);continue}i?(delete s[r],delete c[i.ring[0]],i.ring.pop(),t[i.index]=null,n={index:-1,polygon:i.polygon,ring:i.ring.concat(n.ring)},i===a?n.polygon.push(n.ring):(n.index=u++,t.push(c[n.ring[0]]=s[n.ring[n.ring.length-1]]=n))):a?(delete c[o],delete s[a.ring[a.ring.length-1]],n.ring.pop(),n={index:u++,polygon:a.polygon,ring:n.ring.concat(a.ring)},t[a.index]=null,t.push(c[n.ring[0]]=s[n.ring[n.ring.length-1]]=n)):(n.ring.push(n.ring[0]),n.polygon.push(n.ring))}}function h(t){var e={type:"Feature",geometry:p(t.geometry)};return null!=t.id&&(e.id=t.id),null!=t.bbox&&(e.bbox=t.bbox),null!=t.properties&&(e.properties=t.properties),e}function p(t){if(null==t)return t;var e,n,r,i;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(p)};break;case"Point":e={type:"Point",coordinates:j(t.coordinates)};break;case"MultiPoint":case"LineString":e={type:t.type,coordinates:s(t.coordinates)};break;case"MultiLineString":e={type:"MultiLineString",coordinates:t.coordinates.map(s)};break;case"Polygon":var o=[];f(t.coordinates,o,n=[]),l(n),e={type:"Polygon",coordinates:o};break;case"MultiPolygon":n=[],r=-1,i=t.coordinates.length;for(var a=new Array(i);++r<i;)f(t.coordinates[r],a[r]=[],n);l(n),e={type:"MultiPolygon",coordinates:a.filter(c)};break;default:return t}return null!=t.bbox&&(e.bbox=t.bbox),e}e.a=function(t){if(null==t)return t;switch(t.type){case"Feature":return h(t);case"FeatureCollection":var e={type:"FeatureCollection",features:t.features.map(h)};return null!=t.bbox&&(e.bbox=t.bbox),e;default:return p(t)}}},function(t,e,n){"use strict";e.b=o;var r=n(0),i=n(1);function o(t,e){var n=Object(i.F)(e/2),r=Object(i.y)(i.u*n);return[t*(.74482-.34588*r*r),1.70711*n]}o.invert=function(t,e){var n=e/1.70711,r=Object(i.y)(i.u*n);return[t/(.74482-.34588*r*r),2*Object(i.f)(n)]},e.a=function(){return Object(r.geoProjection)(o).scale(146.153)}},function(t,e,n){"use strict";e.b=a,e.c=function(){return u([-158,21.5],[-77,39]).clipAngle(60).scale(400)},e.a=u;var i=n(0),o=n(1),r=n(182);function a(t){var r=Object(o.h)(t);function e(t,e){var n=Object(i.geoGnomonicRaw)(t,e);return n[0]*=r,n}return e.invert=function(t,e){return i.geoGnomonicRaw.invert(t/r,e)},e}function u(t,e){return Object(r.a)(a,t,e)}},function(t,e,n){"use strict";e.b=o,e.c=function(){return a([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)},e.a=a;var r=n(0),l=n(1),i=n(182);function o(i){if(!(i*=2))return r.geoAzimuthalEquidistantRaw;var u=-i/2,c=-u,o=i*i,s=Object(l.F)(c),f=.5/Object(l.y)(c);function t(t,e){var n=Object(l.b)(Object(l.h)(e)*Object(l.h)(t-u)),r=Object(l.b)(Object(l.h)(e)*Object(l.h)(t-c));return[((n*=n)-(r*=r))/(2*i),(e<0?-1:1)*Object(l.B)(4*o*r-(o-n+r)*(o-n+r))/(2*i)]}return t.invert=function(t,e){var n,r,i=e*e,o=Object(l.h)(Object(l.B)(i+(n=t+u)*n)),a=Object(l.h)(Object(l.B)(i+(n=t+c)*n));return[Object(l.g)(r=o-a,n=(o+a)*s),(e<0?-1:1)*Object(l.b)(Object(l.B)(n*n+r*r)*f)]},t}function a(t,e){return Object(i.a)(o,t,e)}},function(t,e,n){"use strict";e.b=i;var r=n(0),p=n(1);function i(t,e){if(Object(p.a)(e)<p.k)return[t,0];var n=Object(p.a)(e/p.o),r=Object(p.e)(n);if(Object(p.a)(t)<p.k||Object(p.a)(Object(p.a)(e)-p.o)<p.k)return[0,Object(p.x)(e)*p.s*Object(p.F)(r/2)];var i=Object(p.h)(r),o=Object(p.a)(p.s/t-t/p.s)/2,a=o*o,u=i/(n+i-1),c=u*(2/n-1),s=c*c,f=s+a,l=u-s,h=a+u;return[Object(p.x)(t)*p.s*(o*l+Object(p.B)(a*l*l-f*(u*u-s)))/f,Object(p.x)(e)*p.s*(c*h-o*Object(p.B)((a+1)*f-h*h))/f]}i.invert=function(t,e){if(Object(p.a)(e)<p.k)return[t,0];if(Object(p.a)(t)<p.k)return[0,p.o*Object(p.y)(2*Object(p.f)(e/p.s))];var n=(t/=p.s)*t,r=(e/=p.s)*e,i=n+r,o=i*i,a=-Object(p.a)(e)*(1+i),u=a-2*r+n,c=-2*a+1+2*r+o,s=r/c+(2*u*u*u/(c*c*c)-9*a*u/(c*c))/27,f=(a-u*u/(3*c))/c,l=2*Object(p.B)(-f/3),h=Object(p.b)(3*s/(f*l))/3;return[p.s*(i-1+Object(p.B)(1+2*(n-r)+o))/(2*t),Object(p.x)(e)*p.s*(-l*Object(p.h)(h+p.s/3)-u/(3*c))]},e.a=function(){return Object(r.geoProjection)(i).scale(79.4183)}},function(t,e,n){"use strict";e.b=i;var r=n(0),c=n(1);function i(t,e){if(Object(c.a)(e)<c.k)return[t,0];var n=Object(c.a)(e/c.o),r=Object(c.e)(n);if(Object(c.a)(t)<c.k||Object(c.a)(Object(c.a)(e)-c.o)<c.k)return[0,Object(c.x)(e)*c.s*Object(c.F)(r/2)];var i=Object(c.h)(r),o=Object(c.a)(c.s/t-t/c.s)/2,a=o*o,u=i*(Object(c.B)(1+a)-o*i)/(1+a*n*n);return[Object(c.x)(t)*c.s*u,Object(c.x)(e)*c.s*Object(c.B)(1-u*(2*o+u))]}i.invert=function(t,e){if(!t)return[0,c.o*Object(c.y)(2*Object(c.f)(e/c.s))];var n=Object(c.a)(t/c.s),r=(1-n*n-(e/=c.s)*e)/(2*n),i=r*r,o=Object(c.B)(i+1);return[Object(c.x)(t)*c.s*(o-r),Object(c.x)(e)*c.o*Object(c.y)(2*Object(c.g)(Object(c.B)((1-2*r*n)*(r+o)-n),Object(c.B)(o+r+n)))]},e.a=function(){return Object(r.geoProjection)(i).scale(79.4183)}},function(t,e,n){"use strict";e.b=i;var r=n(0),a=n(1);function i(t,e){if(Object(a.a)(e)<a.k)return[t,0];var n=e/a.o,r=Object(a.e)(n);if(Object(a.a)(t)<a.k||Object(a.a)(Object(a.a)(e)-a.o)<a.k)return[0,a.s*Object(a.F)(r/2)];var i=(a.s/t-t/a.s)/2,o=n/(1+Object(a.h)(r));return[a.s*(Object(a.x)(t)*Object(a.B)(i*i+1-o*o)-i),a.s*o]}i.invert=function(t,e){if(!e)return[t,0];var n=e/a.s,r=(a.s*a.s*(1-n*n)-t*t)/(2*a.s*t);return[t?a.s*(Object(a.x)(t)*Object(a.B)(r*r+1)-r):0,a.o*Object(a.y)(2*Object(a.f)(n))]},e.a=function(){return Object(r.geoProjection)(i).scale(79.4183)}},function(t,e,n){"use strict";e.b=i;var r=n(0),m=n(1);function i(t,e){if(!e)return[t,0];var n=Object(m.a)(e);if(!t||n===m.o)return[0,e];var r=n/m.o,i=r*r,o=(8*r-i*(i+2)-5)/(2*i*(r-1)),a=o*o,u=r*o,c=i+a+2*u,s=r+3*o,f=t/m.o,l=f+1/f,h=Object(m.x)(Object(m.a)(t)-m.o)*Object(m.B)(l*l-4),p=h*h,v=c*(i+a*p-1)+(1-i)*(i*(s*s+4*a)+12*u*a+4*a*a),g=(h*(c+a-1)+2*Object(m.B)(v))/(4*c+p);return[Object(m.x)(t)*m.o*g,Object(m.x)(e)*m.o*Object(m.B)(1+h*Object(m.a)(g)-g*g)]}i.invert=function(t,e){var n;if(!t||!e)return[t,e];e/=m.s;var r=Object(m.x)(t)*t/m.o,i=(r*r-1+4*e*e)/Object(m.a)(r),o=i*i,a=2*e,u=50;do{var c=a*a,s=(8*a-c*(c+2)-5)/(2*c*(a-1)),f=(3*a-c*a-10)/(2*c*a),l=s*s,h=a*s,p=a+s,v=p*p,g=a+3*s,d=v*(c+l*o-1)+(1-c)*(c*(g*g+4*l)+l*(12*h+4*l)),y=-2*p*(4*h*l+(1-4*c+3*c*c)*(1+f)+l*(14*c-6-o+(8*c-8-2*o)*f)+h*(12*c-8+(10*c-10-o)*f)),b=Object(m.B)(d);a-=n=(i*(v+l-1)+2*b-r*(4*v+o))/(i*(2*s*f+2*p*(1+f))+y/b-8*p*(i*(-1+l+v)+2*b)*(1+f)/(o+4*v))}while(n>m.k&&0<--u);return[Object(m.x)(t)*(Object(m.B)(i*i+4)+i)*m.s/4,m.o*a]},e.a=function(){return Object(r.geoProjection)(i).scale(127.16)}},function(t,e,n){"use strict";n.d(e,"b",function(){return c});var r=n(0),i=n(1),o=n(22),a=4*i.s+3*Object(i.B)(3),u=2*Object(i.B)(2*i.s*Object(i.B)(3)/a),c=Object(o.b)(u*Object(i.B)(3)/i.s,u,a/6);e.a=function(){return Object(r.geoProjection)(c).scale(176.84)}},function(t,e,n){"use strict";e.b=o;var r=n(0),i=n(1);function o(t,e){return[t*Object(i.B)(1-3*e*e/(i.s*i.s)),e]}o.invert=function(t,e){return[t/Object(i.B)(1-3*e*e/(i.s*i.s)),e]},e.a=function(){return Object(r.geoProjection)(o).scale(152.63)}},function(t,e,n){"use strict";e.b=i;var r=n(0),a=n(1);function i(t,e){var n=.90631*Object(a.y)(e),r=Object(a.B)(1-n*n),i=Object(a.B)(2/(1+r*Object(a.h)(t/=3)));return[2.66723*r*i*Object(a.y)(t),1.24104*n*i]}i.invert=function(t,e){var n=t/2.66723,r=e/1.24104,i=Object(a.B)(n*n+r*r),o=2*Object(a.e)(i/2);return[3*Object(a.g)(t*Object(a.F)(o),2.66723*i),i&&Object(a.e)(e*Object(a.y)(o)/(1.24104*.90631*i))]},e.a=function(){return Object(r.geoProjection)(i).scale(172.632)}},function(t,e,n){"use strict";e.b=i;var r=n(0),u=n(1);function i(t,e){var n=Object(u.h)(e),r=Object(u.h)(t)*n,i=1-r,o=Object(u.h)(t=Object(u.g)(Object(u.y)(t)*n,-Object(u.y)(e))),a=Object(u.y)(t);return[a*(n=Object(u.B)(1-r*r))-o*i,-o*n-a*i]}i.invert=function(t,e){var n=(t*t+e*e)/-2,r=Object(u.B)(-n*(2+n)),i=e*n+t*r,o=t*n-e*r,a=Object(u.B)(o*o+i*i);return[Object(u.g)(r*i,a*(1+n)),a?-Object(u.e)(r*o/a):0]},e.a=function(){return Object(r.geoProjection)(i).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)}},function(t,e,n){"use strict";e.b=o;var r=n(0),i=n(173),M=n(1);function o(t,e){var n=Object(i.a)(t,e);return[(n[0]+t/M.o)/2,(n[1]+e)/2]}o.invert=function(t,e){var n=t,r=e,i=25;do{var o,a=Object(M.h)(r),u=Object(M.y)(r),c=Object(M.y)(2*r),s=u*u,f=a*a,l=Object(M.y)(n),h=Object(M.h)(n/2),p=Object(M.y)(n/2),v=p*p,g=1-f*h*h,d=g?Object(M.b)(a*h)*Object(M.B)(o=1/g):o=0,y=.5*(2*d*a*p+n/M.o)-t,b=.5*(d*u+r)-e,m=.5*o*(f*v+d*a*h*s)+.5/M.o,x=o*(l*c/4-d*u*p),j=.125*o*(c*p-d*u*f*l),_=.5*o*(s*h+d*v*a)+.5,O=x*j-_*m,w=(b*x-y*_)/O,S=(y*j-b*m)/O;n-=w,r-=S}while((Object(M.a)(w)>M.k||Object(M.a)(S)>M.k)&&0<--i);return[n,r]},e.a=function(){return Object(r.geoProjection)(o).scale(158.837)}},function(t,e,n){var r=n(184),i=4;t.exports=function(t){return r(t,i)}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(66),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},function(t,e,n){var r=n(66);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(66);t.exports=function(t){return-1<r(this.__data__,t)}},function(t,e,n){var i=n(66);t.exports=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}},function(t,e,n){var r=n(65);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var i=n(65),o=n(98),a=n(99),u=200;t.exports=function(t,e){var n=this.__data__;if(n instanceof i){var r=n.__data__;if(!o||r.length<u-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new a(r)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(433),i=n(65),o=n(98);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(t,e,n){var r=n(434),i=n(435),o=n(436),a=n(437),u=n(438);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,e,n){var r=n(67);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(67),i="__lodash_hash_undefined__",o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return n===i?void 0:n}return o.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(67),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},function(t,e,n){var r=n(67),i="__lodash_hash_undefined__";t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?i:e,this}},function(t,e,n){var r=n(68);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var e=void 0===t?"undefined":n(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(68);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(68);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var i=n(68);t.exports=function(t,e){var n=i(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}},function(t,e,n){var r=n(37),i=n(9);t.exports=function(t,e){return t&&r(e,i(e),t)}},function(t,e,n){var r=n(37),i=n(100);t.exports=function(t,e){return t&&r(e,i(e),t)}},function(t,e,n){var i=n(13),o=n(60),a=n(447),u=Object.prototype.hasOwnProperty;t.exports=function(t){if(!i(t))return a(t);var e=o(t),n=[];for(var r in t)("constructor"!=r||!e&&u.call(t,r))&&n.push(r);return n}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,u,c){(function(t){var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=c(14),r="object"==e(u)&&u&&!u.nodeType&&u,i=r&&"object"==e(t)&&t&&!t.nodeType&&t,o=i&&i.exports===r?n.Buffer:void 0,a=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=a?a(n):new t.constructor(n);return t.copy(r),r}}).call(u,c(84)(t))},function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},function(t,e,n){var r=n(37),i=n(101);t.exports=function(t,e){return r(t,i(t),e)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}},function(t,e,n){var r=n(37),i=n(187);t.exports=function(t,e){return r(t,i(t),e)}},function(t,e,n){var r=n(189),i=n(187),o=n(100);t.exports=function(t){return r(t,o,i)}},function(t,e,n){var r=n(25)(n(14),"DataView");t.exports=r},function(t,e,n){var r=n(25)(n(14),"Promise");t.exports=r},function(t,e,n){var r=n(25)(n(14),"WeakMap");t.exports=r},function(t,e){var r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,n=t.constructor(e);return e&&"string"==typeof t[0]&&r.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},function(t,e,n){var o=n(104),a=n(459),u=n(460),c=n(462),s=n(463),f=n(465),l=n(466),h="[object Boolean]",p="[object Date]",v="[object Map]",g="[object Number]",d="[object RegExp]",y="[object Set]",b="[object String]",m="[object Symbol]",x="[object ArrayBuffer]",j="[object DataView]",_="[object Float32Array]",O="[object Float64Array]",w="[object Int8Array]",S="[object Int16Array]",M="[object Int32Array]",E="[object Uint8Array]",C="[object Uint8ClampedArray]",P="[object Uint16Array]",A="[object Uint32Array]";t.exports=function(t,e,n,r){var i=t.constructor;switch(e){case x:return o(t);case h:case p:return new i(+t);case j:return a(t,r);case _:case O:case w:case S:case M:case E:case C:case P:case A:return l(t,r);case v:return u(t,r,n);case g:case b:return new i(t);case d:return c(t);case y:return s(t,r,n);case m:return f(t)}}},function(t,e,n){var r=n(104);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},function(t,e,n){var i=n(461),o=n(193),a=n(194),u=1;t.exports=function(t,e,n){var r=e?n(a(t),u):a(t);return o(r,i,new t.constructor)}},function(t,e){t.exports=function(t,e){return t.set(e[0],e[1]),t}},function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,n){var i=n(464),o=n(193),a=n(69),u=1;t.exports=function(t,e,n){var r=e?n(a(t),u):a(t);return o(r,i,new t.constructor)}},function(t,e){t.exports=function(t,e){return t.add(e),t}},function(t,e,n){var r=n(32),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},function(t,e,n){var r=n(104);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){var r=n(468),i=n(103),o=n(60);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},function(t,e,n){var r=n(13),i=Object.create,o=function(){function n(){}return function(t){if(!r(t))return{};if(i)return i(t);n.prototype=t;var e=new n;return n.prototype=void 0,e}}();t.exports=o},function(t,e,n){var r=n(470)(n(488));t.exports=r},function(t,e,n){var u=n(44),c=n(20),s=n(9);t.exports=function(a){return function(t,e,n){var r=Object(t);if(!c(t)){var i=u(e,3);t=s(t),e=function(t){return i(r[t],t,r)}}var o=a(t,e,n);return-1<o?r[i?t[o]:o]:void 0}}},function(t,e,n){var r=n(195),i=n(198),o=n(200);t.exports=function(e){var n=i(e);return 1==n.length&&n[0][2]?o(n[0][0],n[0][1]):function(t){return t===e||r(t,e,n)}}},function(t,e,n){var y=n(97),b=n(197),m=n(476),x=n(477),j=n(190),_=n(4),O=n(83),w=n(145),S=1,M="[object Arguments]",E="[object Array]",C="[object Object]",P=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,r,i,o){var a=_(t),u=_(e),c=a?E:j(t),s=u?E:j(e),f=(c=c==M?C:c)==C,l=(s=s==M?C:s)==C,h=c==s;if(h&&O(t)){if(!O(e))return!1;f=!(a=!0)}if(h&&!f)return o||(o=new y),a||w(t)?b(t,e,n,r,i,o):m(t,e,c,n,r,i,o);if(!(n&S)){var p=f&&P.call(t,"__wrapped__"),v=l&&P.call(e,"__wrapped__");if(p||v){var g=p?t.value():t,d=v?e.value():e;return o||(o=new y),i(g,d,n,r,o)}}return!!h&&(o||(o=new y),x(t,e,n,r,i,o))}},function(t,e){var n="__lodash_hash_undefined__";t.exports=function(t){return this.__data__.set(t,n),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t,e,n){var r=n(32),l=n(192),h=n(58),p=n(197),v=n(194),g=n(69),d=1,y=2,b="[object Boolean]",m="[object Date]",x="[object Error]",j="[object Map]",_="[object Number]",O="[object RegExp]",w="[object Set]",S="[object String]",M="[object Symbol]",E="[object ArrayBuffer]",C="[object DataView]",i=r?r.prototype:void 0,P=i?i.valueOf:void 0;t.exports=function(t,e,n,r,i,o,a){switch(n){case C:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case E:return!(t.byteLength!=e.byteLength||!o(new l(t),new l(e)));case b:case m:case _:return h(+t,+e);case x:return t.name==e.name&&t.message==e.message;case O:case S:return t==e+"";case j:var u=v;case w:var c=r&d;if(u||(u=g),t.size!=e.size&&!c)return!1;var s=a.get(t);if(s)return s==e;r|=y,a.set(t,e);var f=p(u(t),u(e),r,i,o,a);return a.delete(t),f;case M:if(P)return P.call(t)==P.call(e)}return!1}},function(t,e,n){var m=n(188),x=1,j=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,r,i,o){var a=n&x,u=m(t),c=u.length;if(c!=m(e).length&&!a)return!1;for(var s=c;s--;){var f=u[s];if(!(a?f in e:j.call(e,f)))return!1}var l=o.get(t);if(l&&o.get(e))return l==e;var h=!0;o.set(t,e),o.set(e,t);for(var p=a;++s<c;){var v=t[f=u[s]],g=e[f];if(r)var d=a?r(g,v,f,e,t,o):r(v,g,f,t,e,o);if(!(void 0===d?v===g||i(v,g,n,r,o):d)){h=!1;break}p||(p="constructor"==f)}if(h&&!p){var y=t.constructor,b=e.constructor;y!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(h=!1)}return o.delete(t),o.delete(e),h}},function(t,e,n){var i=n(196),o=n(479),a=n(202),u=n(108),c=n(199),s=n(200),f=n(47),l=1,h=2;t.exports=function(n,r){return u(n)&&c(r)?s(f(n),r):function(t){var e=o(t,n);return void 0===e&&e===r?a(t,n):i(r,e,l|h)}}},function(t,e,n){var i=n(107);t.exports=function(t,e,n){var r=null==t?void 0:i(t,e);return void 0===r?n:r}},function(t,e,n){var r=n(481),o=/^\./,a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,i=r(function(t){var i=[];return o.test(t)&&i.push(""),t.replace(a,function(t,e,n,r){i.push(n?r.replace(u,"$1"):e||t)}),i});t.exports=i},function(t,e,n){var r=n(482),i=500;t.exports=function(t){var e=r(t,function(t){return n.size===i&&n.clear(),t}),n=e.cache;return e}},function(t,e,n){var r=n(99),i="Expected a function";function u(o,a){if("function"!=typeof o||null!=a&&"function"!=typeof a)throw new TypeError(i);var t=function t(){var e=arguments,n=a?a.apply(this,e):e[0],r=t.cache;if(r.has(n))return r.get(n);var i=o.apply(this,e);return t.cache=r.set(n,i)||r,i};return t.cache=new(u.Cache||r),t}u.Cache=r,t.exports=u},function(t,e,n){var r=n(32),i=n(46),o=n(4),a=n(45),u=1/0,c=r?r.prototype:void 0,s=c?c.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return s?s.call(e):"";var n=e+"";return"0"==n&&1/e==-u?"-0":n}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var r=n(486),i=n(487),o=n(108),a=n(47);t.exports=function(t){return o(t)?r(a(t)):i(t)}},function(t,e){t.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(t,e,n){var r=n(107);t.exports=function(e){return function(t){return r(t,e)}}},function(t,e,n){var o=n(204),a=n(44),u=n(489),c=Math.max;t.exports=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:u(n);return i<0&&(i=c(r+i,0)),o(t,a(e,3),i)}},function(t,e,n){var r=n(490);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var r=n(491),i=1/0,o=1.7976931348623157e308;t.exports=function(t){return t?(t=r(t))===i||t===-i?(t<0?-1:1)*o:t==t?t:0:0===t?t:0}},function(t,e,n){var r=n(13),i=n(45),o=NaN,a=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,f=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return o;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var n=c.test(t);return n||s.test(t)?f(t.slice(2),n?2:8):u.test(t)?o:+t}},function(t,e){t.exports=function(c){return function(t,e,n){for(var r=-1,i=Object(t),o=n(t),a=o.length;a--;){var u=o[c?a:++r];if(!1===e(i[u],u,i))break}return t}}},function(t,e,n){var r=n(195),i=n(198);t.exports=function(t,e){return t===e||r(t,e,i(e))}},function(t,e,n){var r=n(495),i=n(202);t.exports=function(n,t){return r(n,t,function(t,e){return i(n,e)})}},function(t,e,n){var c=n(107),s=n(496),f=n(71);t.exports=function(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],u=c(t,a);n(u,a)&&s(o,f(a,t),u)}return o}},function(t,e,n){var l=n(57),h=n(71),p=n(59),v=n(13),g=n(47);t.exports=function(t,e,n,r){if(!v(t))return t;for(var i=-1,o=(e=h(e,t)).length,a=o-1,u=t;null!=u&&++i<o;){var c=g(e[i]),s=n;if(i!=a){var f=u[c];void 0===(s=r?r(f,c,u):void 0)&&(s=v(f)?f:p(e[i+1])?[]:{})}l(u,c,s),u=u[c]}return t}},function(t,e,n){var r=n(498),i=n(141),o=n(142);t.exports=function(t){return o(i(t,void 0,r),t+"")}},function(t,e,n){var r=n(72);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},function(t,e,n){var r=n(32),i=n(82),o=n(4),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},function(t,e,n){var r,i,o,a,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};a=function(t,T,k){"use strict";var I=1e-6;function e(){}var n=1/0,r=n,i=-n,o=i,f={point:function(t,e){t<n&&(n=t);i<t&&(i=t);e<r&&(r=e);o<e&&(o=e)},lineStart:e,lineEnd:e,polygonStart:e,polygonEnd:e,result:function(){var t=[[n,r],[i,o]];return i=o=-(r=n=1/0),t}};function L(t,e,n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],o=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=o&&t.clipExtent(null),T.geoStream(n,t.stream(f));var a=f.result(),u=Math.min(r/(a[1][0]-a[0][0]),i/(a[1][1]-a[0][1])),c=+e[0][0]+(r-u*(a[1][0]+a[0][0]))/2,s=+e[0][1]+(i-u*(a[1][1]+a[0][1]))/2;return null!=o&&t.clipExtent(o),t.scale(150*u).translate([c,s])}function R(t,e,n){return L(t,[[0,0],e],n)}t.geoAlbersUsa=function(){var e,n,i,o,a,r,s=T.geoAlbers(),u=T.geoConicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=T.geoConicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),f={point:function(t,e){r=[t,e]}};function l(t){var e=t[0],n=t[1];return r=null,i.point(e,n),r||(o.point(e,n),r)||(a.point(e,n),r)}function h(){return e=n=null,l}return l.invert=function(t){var e=s.scale(),n=s.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(.12<=i&&i<.234&&-.425<=r&&r<-.214?u:.166<=i&&i<.234&&-.214<=r&&r<-.115?c:s).invert(t)},l.stream=function(t){return e&&n===t?e:(r=[s.stream(n=t),u.stream(t),c.stream(t)],i=r.length,e={point:function(t,e){for(var n=-1;++n<i;)r[n].point(t,e)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},l.precision=function(t){return arguments.length?(s.precision(t),u.precision(t),c.precision(t),h()):s.precision()},l.scale=function(t){return arguments.length?(s.scale(t),u.scale(.35*t),c.scale(t),l.translate(s.translate())):s.scale()},l.translate=function(t){if(!arguments.length)return s.translate();var e=s.scale(),n=+t[0],r=+t[1];return i=s.translate(t).clipExtent([[n-.455*e,r-.238*e],[n+.455*e,r+.238*e]]).stream(f),o=u.translate([n-.307*e,r+.201*e]).clipExtent([[n-.425*e+I,r+.12*e+I],[n-.214*e-I,r+.234*e-I]]).stream(f),a=c.translate([n-.205*e,r+.212*e]).clipExtent([[n-.214*e+I,r+.166*e+I],[n-.115*e-I,r+.234*e-I]]).stream(f),h()},l.fitExtent=function(t,e){return L(l,t,e)},l.fitSize=function(t,e){return R(l,t,e)},l.drawCompositionBorders=function(t){var e=s([-102.91,26.3]),n=s([-104,27.5]),r=s([-108,29.1]),i=s([-110,29.1]),o=s([-110,26.7]),a=s([-112.8,27.6]),u=s([-114.3,30.6]),c=s([-119.3,30.1]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.moveTo(o[0],o[1]),t.lineTo(a[0],a[1]),t.lineTo(u[0],u[1]),t.lineTo(c[0],c[1])},l.getCompositionBorders=function(){var t=k.path();return this.drawCompositionBorders(t),t.toString()},l.scale(1070)},t.geoAlbersUsaTerritories=function(){var e,n,i,o,a,u,c,s,r,j=T.geoAlbers(),f=T.geoConicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=T.geoConicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),h=T.geoConicEqualArea().rotate([66,0]).center([0,18]).parallels([8,18]),p=T.geoEquirectangular().rotate([173,14]),v=T.geoEquirectangular().rotate([-145,-16.8]),g={point:function(t,e){r=[t,e]}};function d(t){var e=t[0],n=t[1];return r=null,i.point(e,n),r||(o.point(e,n),r)||(a.point(e,n),r)||(u.point(e,n),r)||(c.point(e,n),r)||(s.point(e,n),r)}function y(){return e=n=null,d}return d.invert=function(t){var e=j.scale(),n=j.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(.12<=i&&i<.234&&-.425<=r&&r<-.214?f:.166<=i&&i<.234&&-.214<=r&&r<-.115?l:.2064<=i&&i<.2413&&.312<=r&&r<.385?h:.09<=i&&i<.1197&&-.4243<=r&&r<-.3232?p:-.0518<=i&&i<.0895&&-.4243<=r&&r<-.3824?v:j).invert(t)},d.stream=function(t){return e&&n===t?e:(r=[j.stream(n=t),f.stream(t),l.stream(t),h.stream(t),p.stream(t),v.stream(t)],i=r.length,e={point:function(t,e){for(var n=-1;++n<i;)r[n].point(t,e)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},d.precision=function(t){return arguments.length?(j.precision(t),f.precision(t),l.precision(t),h.precision(t),p.precision(t),v.precision(t),y()):j.precision()},d.scale=function(t){return arguments.length?(j.scale(t),f.scale(.35*t),l.scale(t),h.scale(t),p.scale(2*t),v.scale(t),d.translate(j.translate())):j.scale()},d.translate=function(t){if(!arguments.length)return j.translate();var e=j.scale(),n=+t[0],r=+t[1];return i=j.translate(t).clipExtent([[n-.455*e,r-.238*e],[n+.455*e,r+.238*e]]).stream(g),o=f.translate([n-.307*e,r+.201*e]).clipExtent([[n-.425*e+I,r+.12*e+I],[n-.214*e-I,r+.233*e-I]]).stream(g),a=l.translate([n-.205*e,r+.212*e]).clipExtent([[n-.214*e+I,r+.166*e+I],[n-.115*e-I,r+.233*e-I]]).stream(g),u=h.translate([n+.35*e,r+.224*e]).clipExtent([[n+.312*e+I,r+.2064*e+I],[n+.385*e-I,r+.233*e-I]]).stream(g),c=p.translate([n-.492*e,r+.09*e]).clipExtent([[n-.4243*e+I,r+.0903*e+I],[n-.3233*e-I,r+.1197*e-I]]).stream(g),s=v.translate([n-.408*e,r+.018*e]).clipExtent([[n-.4244*e+I,r-.0519*e+I],[n-.3824*e-I,r+.0895*e-I]]).stream(g),y()},d.fitExtent=function(t,e){return L(d,t,e)},d.fitSize=function(t,e){return R(d,t,e)},d.drawCompositionBorders=function(t){var e=j([-110.4641,28.2805]),n=j([-104.0597,28.9528]),r=j([-103.7049,25.1031]),i=j([-109.8337,24.4531]),o=j([-124.4745,28.1407]),a=j([-110.931,30.8844]),u=j([-109.8337,24.4531]),c=j([-122.4628,21.8562]),s=j([-76.8579,25.1544]),f=j([-72.429,24.2097]),l=j([-72.8265,22.7056]),h=j([-77.1852,23.6392]),p=j([-125.0093,29.7791]),v=j([-118.5193,31.3262]),g=j([-118.064,29.6912]),d=j([-124.4369,28.169]),y=j([-128.1314,37.4582]),b=j([-125.2132,38.214]),m=j([-122.3616,30.5115]),x=j([-125.0315,29.8211]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),t.moveTo(o[0],o[1]),t.lineTo(a[0],a[1]),t.lineTo(u[0],u[1]),t.lineTo(u[0],u[1]),t.lineTo(c[0],c[1]),t.closePath(),t.moveTo(s[0],s[1]),t.lineTo(f[0],f[1]),t.lineTo(l[0],l[1]),t.lineTo(l[0],l[1]),t.lineTo(h[0],h[1]),t.closePath(),t.moveTo(p[0],p[1]),t.lineTo(v[0],v[1]),t.lineTo(g[0],g[1]),t.lineTo(g[0],g[1]),t.lineTo(d[0],d[1]),t.closePath(),t.moveTo(y[0],y[1]),t.lineTo(b[0],b[1]),t.lineTo(m[0],m[1]),t.lineTo(m[0],m[1]),t.lineTo(x[0],x[1]),t.closePath()},d.getCompositionBorders=function(){var t=k.path();return this.drawCompositionBorders(t),t.toString()},d.scale(1070)},t.geoConicConformalSpain=function(){var e,n,i,o,r,a=T.geoConicConformal().rotate([5,-38.6]).parallels([0,60]),u=T.geoConicConformal().rotate([5,-38.6]).parallels([0,60]),c={point:function(t,e){r=[t,e]}};function s(t){var e=t[0],n=t[1];return r=null,i.point(e,n),r||(o.point(e,n),r)}function f(){return e=n=null,s}return s.invert=function(t){var e=a.scale(),n=a.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(.05346<=i&&i<.0897&&-.13388<=r&&r<-.0322?u:a).invert(t)},s.stream=function(t){return e&&n===t?e:(r=[a.stream(n=t),u.stream(t)],i=r.length,e={point:function(t,e){for(var n=-1;++n<i;)r[n].point(t,e)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},s.precision=function(t){return arguments.length?(a.precision(t),u.precision(t),f()):a.precision()},s.scale=function(t){return arguments.length?(a.scale(t),u.scale(t),s.translate(a.translate())):a.scale()},s.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),n=+t[0],r=+t[1];return i=a.translate(t).clipExtent([[n-.06857*e,r-.1288*e],[n+.13249*e,r+.06*e]]).stream(c),o=u.translate([n+.1*e,r-.094*e]).clipExtent([[n-.1331*e+I,r+.053457*e+I],[n-.0354*e-I,r+.08969*e-I]]).stream(c),f()},s.fitExtent=function(t,e){return L(s,t,e)},s.fitSize=function(t,e){return R(s,t,e)},s.drawCompositionBorders=function(t){var e=a([-14.034675,34.965007]),n=a([-7.4208899,35.536988]),r=a([-7.3148275,33.54359]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1])},s.getCompositionBorders=function(){var t=k.path();return this.drawCompositionBorders(t),t.toString()},s.scale(2700)},t.geoConicConformalPortugal=function(){var e,n,i,o,a,r,s=T.geoConicConformal().rotate([10,-39.3]).parallels([0,60]),u=T.geoConicConformal().rotate([17,-32.7]).parallels([0,60]),c=T.geoConicConformal().rotate([27.8,-38.6]).parallels([0,60]),f={point:function(t,e){r=[t,e]}};function l(t){var e=t[0],n=t[1];return r=null,i.point(e,n),r||(o.point(e,n),r)||(a.point(e,n),r)}function h(){return e=n=null,l}return l.invert=function(t){var e=s.scale(),n=s.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(.0093<=i&&i<.03678&&-.03875<=r&&r<-.0116?u:-.0412<=i&&i<.0091&&-.07782<=r&&r<-.01166?c:s).invert(t)},l.stream=function(t){return e&&n===t?e:(r=[s.stream(n=t),u.stream(t),c.stream(t)],i=r.length,e={point:function(t,e){for(var n=-1;++n<i;)r[n].point(t,e)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},l.precision=function(t){return arguments.length?(s.precision(t),u.precision(t),c.precision(t),h()):s.precision()},l.scale=function(t){return arguments.length?(s.scale(t),u.scale(t),c.scale(.6*t),l.translate(s.translate())):s.scale()},l.translate=function(t){if(!arguments.length)return s.translate();var e=s.scale(),n=+t[0],r=+t[1];return i=s.translate(t).clipExtent([[n-.0115*e,r-.1138*e],[n+.2105*e,r+.0673*e]]).stream(f),o=u.translate([n-.0265*e,r+.025*e]).clipExtent([[n-.0388*e+I,r+.0093*e+I],[n-.0116*e-I,r+.0368*e-I]]).stream(f),a=c.translate([n-.045*e,r+-.02*e]).clipExtent([[n-.0778*e+I,r-.0413*e+I],[n-.0117*e-I,r+.0091*e-I]]).stream(f),h()},l.fitExtent=function(t,e){return L(l,t,e)},l.fitSize=function(t,e){return R(l,t,e)},l.drawCompositionBorders=function(t){var e=s([-12.8351,38.7113]),n=s([-10.8482,38.7633]),r=s([-10.8181,37.2072]),i=s([-12.7345,37.1573]),o=s([-16.0753,41.4436]),a=s([-10.9168,41.6861]),u=s([-10.8557,38.7747]),c=s([-15.6728,38.5505]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),t.moveTo(o[0],o[1]),t.lineTo(a[0],a[1]),t.lineTo(u[0],u[1]),t.lineTo(u[0],u[1]),t.lineTo(c[0],c[1]),t.closePath()},l.getCompositionBorders=function(){var t=k.path();return this.drawCompositionBorders(t),t.toString()},l.scale(4200)},t.geoMercatorEcuador=function(){var e,n,i,o,r,a=T.geoMercator().rotate([80,1.5]),u=T.geoMercator().rotate([90.73,1]),c={point:function(t,e){r=[t,e]}};function s(t){var e=t[0],n=t[1];return r=null,i.point(e,n),r||(o.point(e,n),r)}function f(){return e=n=null,s}return s.invert=function(t){var e=a.scale(),n=a.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(-.0676<=i&&i<-.026&&-.0857<=r&&r<-.0263?u:a).invert(t)},s.stream=function(t){return e&&n===t?e:(r=[a.stream(n=t),u.stream(t)],i=r.length,e={point:function(t,e){for(var n=-1;++n<i;)r[n].point(t,e)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},s.precision=function(t){return arguments.length?(a.precision(t),u.precision(t),f()):a.precision()},s.scale=function(t){return arguments.length?(a.scale(t),u.scale(t),s.translate(a.translate())):a.scale()},s.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),n=+t[0],r=+t[1];return i=a.translate(t).clipExtent([[n-.0262*e,r-.0734*e],[n+.1741*e,r+.079*e]]).stream(c),o=u.translate([n-.06*e,r-.04*e]).clipExtent([[n-.0857*e+I,r-.0676*e+I],[n-.0263*e-I,r-.026*e-I]]).stream(c),f()},s.fitExtent=function(t,e){return L(s,t,e)},s.fitSize=function(t,e){return R(s,t,e)},s.drawCompositionBorders=function(t){var e=a([-84.9032,2.3757]),n=a([-81.5047,2.3708]),r=a([-81.5063,-.01]),i=a([-84.9086,-.005]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath()},s.getCompositionBorders=function(){var t=k.path();return this.drawCompositionBorders(t),t.toString()},s.scale(3500)},t.geoTransverseMercatorChile=function(){var e,n,i,o,a,u,r,p=T.geoTransverseMercator().rotate([72,37]),c=T.geoStereographic().rotate([72,0]),s=T.geoMercator().rotate([80,33.5]),f=T.geoMercator().rotate([110,25]),l={point:function(t,e){r=[t,e]}};function h(t){var e=t[0],n=t[1];return r=null,i.point(e,n),r||(o.point(e,n),r)||(a.point(e,n),r)||(u.point(e,n),r)}function v(){return e=n=null,h}return h.invert=function(t){var e=p.scale(),n=p.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(.2582<=i&&i<.32&&-.1036<=r&&r<-.087?c:-.01298<=i&&i<.0133&&-.11396<=r&&r<-.05944?s:.01539<=i&&i<.03911&&-.089<=r&&r<-.0588?f:p).invert(t)},h.stream=function(t){return e&&n===t?e:(r=[p.stream(n=t),c.stream(t),s.stream(t),f.stream(t)],i=r.length,e={point:function(t,e){for(var n=-1;++n<i;)r[n].point(t,e)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},h.precision=function(t){return arguments.length?(p.precision(t),c.precision(t),s.precision(t),f.precision(t),v()):p.precision()},h.scale=function(t){return arguments.length?(p.scale(t),c.scale(.15*t),s.scale(1.5*t),f.scale(1.5*t),h.translate(p.translate())):p.scale()},h.translate=function(t){if(!arguments.length)return p.translate();var e=p.scale(),n=+t[0],r=+t[1];return i=p.translate(t).clipExtent([[n-.059*e,r-.3835*e],[n+.4498*e,r+.3375*e]]).stream(l),o=c.translate([n-.087*e,r+.17*e]).clipExtent([[n-.1166*e+I,r+.2582*e+I],[n-.06*e-I,r+.32*e-I]]).stream(l),a=s.translate([n-.092*e,r-0*e]).clipExtent([[n-.114*e+I,r-.013*e+I],[n-.0594*e-I,r+.0133*e-I]]).stream(l),u=f.translate([n-.089*e,r-.0265*e]).clipExtent([[n-.089*e+I,r+.0154*e+I],[n-.0588*e-I,r+.0391*e-I]]).stream(l),v()},h.fitExtent=function(t,e){return L(h,t,e)},h.fitSize=function(t,e){return R(h,t,e)},h.drawCompositionBorders=function(t){var e=p([-82.6999,-51.3043]),n=p([-77.5442,-51.6631]),r=p([-78.0254,-55.186]),i=p([-83.6106,-54.7785]),o=p([-80.0638,-35.984]),a=p([-76.2153,-36.1811]),u=p([-76.2994,-37.6839]),c=p([-80.2231,-37.4757]),s=p([-78.442,-37.706]),f=p([-76.263,-37.8054]),l=p([-76.344,-39.1595]),h=p([-78.5638,-39.0559]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),t.moveTo(o[0],o[1]),t.lineTo(a[0],a[1]),t.lineTo(u[0],u[1]),t.lineTo(u[0],u[1]),t.lineTo(c[0],c[1]),t.closePath(),t.moveTo(s[0],s[1]),t.lineTo(f[0],f[1]),t.lineTo(l[0],l[1]),t.lineTo(l[0],l[1]),t.lineTo(h[0],h[1]),t.closePath()},h.getCompositionBorders=function(){var t=k.path();return this.drawCompositionBorders(t),t.toString()},h.scale(700)},t.geoConicEquidistantJapan=function(){var e,n,i,o,a,r,s=T.geoConicEquidistant().rotate([-136,-22]).parallels([40,34]),u=T.geoConicEquidistant().rotate([-146,-26]).parallels([40,34]),c=T.geoConicEquidistant().rotate([-126,-19]).parallels([40,34]),f={point:function(t,e){r=[t,e]}};function l(t){var e=t[0],n=t[1];return r=null,i.point(e,n),r||(o.point(e,n),r)||(a.point(e,n),r)}function h(){return e=n=null,l}return l.invert=function(t){var e=s.scale(),n=s.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(-.10925<=i&&i<-.02701&&-.135<=r&&r<-.0397?u:.04713<=i&&i<.11138&&-.03986<=r&&r<.051?c:s).invert(t)},l.stream=function(t){return e&&n===t?e:(r=[s.stream(n=t),u.stream(t),c.stream(t)],i=r.length,e={point:function(t,e){for(var n=-1;++n<i;)r[n].point(t,e)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},l.precision=function(t){return arguments.length?(s.precision(t),u.precision(t),c.precision(t),h()):s.precision()},l.scale=function(t){return arguments.length?(s.scale(t),u.scale(t),c.scale(.7*t),l.translate(s.translate())):s.scale()},l.translate=function(t){if(!arguments.length)return s.translate();var e=s.scale(),n=+t[0],r=+t[1];return i=s.translate(t).clipExtent([[n-.1352*e,r-.1091*e],[n+.117*e,r+.098*e]]).stream(f),o=u.translate([n-.0425*e,r-.005*e]).clipExtent([[n-.135*e+I,r-.1093*e+I],[n-.0397*e-I,r-.027*e-I]]).stream(f),a=c.translate(t).clipExtent([[n-.0399*e+I,r+.0471*e+I],[n+.051*e-I,r+.1114*e-I]]).stream(f),h()},l.fitExtent=function(t,e){return L(l,t,e)},l.fitSize=function(t,e){return R(l,t,e)},l.drawCompositionBorders=function(t){var e=s([126.01320483689143,41.621090310215585]),n=s([133.04304387025903,42.15087523707186]),r=s([133.3021766080688,37.43975444725098]),i=s([126.87889168628224,36.95488945159779]),o=s([132.9,29.8]),a=s([134,33]),u=s([139.3,33.2]),c=s([139.16,30.5]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),t.moveTo(o[0],o[1]),t.lineTo(a[0],a[1]),t.lineTo(u[0],u[1]),t.lineTo(c[0],c[1])},l.getCompositionBorders=function(){var t=k.path();return this.drawCompositionBorders(t),t.toString()},l.scale(2200)},t.geoConicConformalFrance=function(){var e,n,i,o,a,u,c,s,f,l,h,p,v,g,r,d=T.geoConicConformal().rotate([-3,-46.2]).parallels([0,60]),y=T.geoMercator().center([-53.2,3.9]),b=T.geoMercator().center([-61.03,14.67]),m=T.geoMercator().center([-61.46,16.14]),x=T.geoMercator().center([-62.85,17.92]),j=T.geoMercator().center([-56.23,46.93]),_=T.geoMercator().center([45.16,-12.8]),O=T.geoMercator().center([55.52,-21.13]),w=T.geoMercator().center([165.8,-21.07]),S=T.geoMercator().center([-178.1,-14.3]),M=T.geoMercator().center([-150.55,-17.11]),E=T.geoMercator().center([-150.55,-17.11]),C={point:function(t,e){r=[t,e]}};function P(t){var e=t[0],n=t[1];return r=null,i.point(e,n),r||(o.point(e,n),r)||(a.point(e,n),r)||(u.point(e,n),r)||(c.point(e,n),r)||(s.point(e,n),r)||(f.point(e,n),r)||(l.point(e,n),r)||(h.point(e,n),r)||(p.point(e,n),r)||(v.point(e,n),r)||(g.point(e,n),r)}function A(){return e=n=null,P}return P.invert=function(t){var e=d.scale(),n=d.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(.029<=i&&i<.0864&&-.14<=r&&r<-.0996?y:0<=i&&i<.029&&-.14<=r&&r<-.0996?b:-.032<=i&&i<0&&-.14<=r&&r<-.0996?m:-.052<=i&&i<-.032&&-.14<=r&&r<-.0996?x:-.076<=i&&i<.052&&-.14<=r&&r<-.0996?j:-.076<=i&&i<-.052&&.0967<=r&&r<.1371?_:-.052<=i&&i<-.02&&.0967<=r&&r<.1371?O:-.02<=i&&i<.012&&.0967<=r&&r<.1371?w:.012<=i&&i<.033&&.0967<=r&&r<.1371?S:.033<=i&&i<.0864&&.0967<=r&&r<.1371?M:d).invert(t)},P.stream=function(t){return e&&n===t?e:(r=[d.stream(n=t),y.stream(t),b.stream(t),m.stream(t),x.stream(t),j.stream(t),_.stream(t),O.stream(t),w.stream(t),S.stream(t),M.stream(t),E.stream(t)],i=r.length,e={point:function(t,e){for(var n=-1;++n<i;)r[n].point(t,e)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},P.precision=function(t){return arguments.length?(d.precision(t),y.precision(t),b.precision(t),m.precision(t),x.precision(t),j.precision(t),_.precision(t),O.precision(t),w.precision(t),S.precision(t),M.precision(t),E.precision(t),A()):d.precision()},P.scale=function(t){return arguments.length?(d.scale(t),y.scale(.6*t),b.scale(1.6*t),m.scale(1.4*t),x.scale(5*t),j.scale(1.3*t),_.scale(1.6*t),O.scale(1.2*t),w.scale(.3*t),S.scale(2.7*t),M.scale(.5*t),E.scale(.06*t),P.translate(d.translate())):d.scale()},P.translate=function(t){if(!arguments.length)return d.translate();var e=d.scale(),n=+t[0],r=+t[1];return i=d.translate(t).clipExtent([[n-.0996*e,r-.0908*e],[n+.0967*e,r+.0864*e]]).stream(C),o=y.translate([n-.12*e,r+.0575*e]).clipExtent([[n-.14*e+I,r+.029*e+I],[n-.0996*e-I,r+.0864*e-I]]).stream(C),a=b.translate([n-.12*e,r+.013*e]).clipExtent([[n-.14*e+I,r+0*e+I],[n-.0996*e-I,r+.029*e-I]]).stream(C),u=m.translate([n-.12*e,r-.014*e]).clipExtent([[n-.14*e+I,r-.032*e+I],[n-.0996*e-I,r+0*e-I]]).stream(C),c=x.translate([n-.12*e,r-.044*e]).clipExtent([[n-.14*e+I,r-.052*e+I],[n-.0996*e-I,r-.032*e-I]]).stream(C),s=j.translate([n-.12*e,r-.065*e]).clipExtent([[n-.14*e+I,r-.076*e+I],[n-.0996*e-I,r-.052*e-I]]).stream(C),f=_.translate([n+.117*e,r-.064*e]).clipExtent([[n+.0967*e+I,r-.076*e+I],[n+.1371*e-I,r-.052*e-I]]).stream(C),l=O.translate([n+.116*e,r-.0355*e]).clipExtent([[n+.0967*e+I,r-.052*e+I],[n+.1371*e-I,r-.02*e-I]]).stream(C),h=w.translate([n+.116*e,r-.0048*e]).clipExtent([[n+.0967*e+I,r-.02*e+I],[n+.1371*e-I,r+.012*e-I]]).stream(C),p=S.translate([n+.116*e,r+.022*e]).clipExtent([[n+.0967*e+I,r+.012*e+I],[n+.1371*e-I,r+.033*e-I]]).stream(C),g=E.translate([n+.11*e,r+.045*e]).clipExtent([[n+.0967*e+I,r+.033*e+I],[n+.1371*e-I,r+.06*e-I]]).stream(C),v=M.translate([n+.115*e,r+.075*e]).clipExtent([[n+.0967*e+I,r+.06*e+I],[n+.1371*e-I,r+.0864*e-I]]).stream(C),A()},P.fitExtent=function(t,e){return L(P,t,e)},P.fitSize=function(t,e){return R(P,t,e)},P.drawCompositionBorders=function(t){var e,n,r,i;e=d([-7.938886725111036,43.7219460918835]),n=d([-4.832080896458295,44.12930268549372]),r=d([-4.205299743793263,40.98096346967365]),i=d([-7.071796453126152,40.610037319181444]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=d([-8.42751373617692,45.32889452553031]),n=d([-5.18599305777107,45.7566442062976]),r=d([-4.832080905154431,44.129302726751426]),i=d([-7.938886737126192,43.72194613263854]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=d([-9.012656899657046,47.127733821030176]),n=d([-5.6105244772793155,47.579777861410626]),r=d([-5.185993067168585,45.756644248170346]),i=d([-8.427513749141811,45.32889456686326]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=d([-9.405747558985553,48.26506375557457]),n=d([-5.896175018439575,48.733352850851624]),r=d([-5.610524487556043,47.57977790393761]),i=d([-9.012656913808351,47.127733862971255]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=d([-9.908436061346974,49.642448789505856]),n=d([-6.262026716233124,50.131426841787174]),r=d([-5.896175029331232,48.73335289377258]),i=d([-9.40574757396393,48.26506379787767]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=d([11.996907706504462,50.16039028163579]),n=d([15.649907879773343,49.68279246765253]),r=d([15.156712840526632,48.30371557625831]),i=d([11.64122661754411,48.761078240546816]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=d([11.641226606955788,48.7610781975889]),n=d([15.156712825832164,48.30371553390465]),r=d([14.549932166241172,46.4866532486199]),i=d([11.204443787952183,46.91899233914248]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=d([11.204443778297161,46.918992296823646]),n=d([14.549932152815039,46.486653206856396]),r=d([13.994409796764009,44.695833444323256]),i=d([10.805306599253848,45.105133870684924]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=d([10.805306590412085,45.10513382903308]),n=d([13.99440978444733,44.695833403183606]),r=d([13.654633799024392,43.53552468558152]),i=d([10.561516803980956,43.930671459798624]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=d([10.561516795617383,43.93067141859757]),n=d([13.654633787361952,43.5355246448671]),r=d([12.867691604239901,40.640701985019405]),i=d([9.997809515987688,41.00288343254471]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=d([10.8,42.4]),n=d([12.8,42.13]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1])},P.getCompositionBorders=function(){var t=k.path();return this.drawCompositionBorders(t),t.toString()},P.scale(2700)},t.geoConicConformalEurope=function(){var e,n,i,o,a,u,c,s,f,l,h,p,v,g,r,d=T.geoConicConformal().rotate([-10,-53]).parallels([0,60]),y=T.geoMercator().center([-61.46,16.14]),b=T.geoMercator().center([-53.2,3.9]),m=T.geoConicConformal().rotate([27.8,-38.9]).parallels([0,60]),x=T.geoConicConformal().rotate([25.43,-37.398]).parallels([0,60]),j=T.geoConicConformal().rotate([31.17,-39.539]).parallels([0,60]),_=T.geoConicConformal().rotate([17,-32.7]).parallels([0,60]),O=T.geoConicConformal().rotate([16,-28.5]).parallels([0,60]),w=T.geoMercator().center([-61.03,14.67]),S=T.geoMercator().center([45.16,-12.8]),M=T.geoMercator().center([55.52,-21.13]),E=T.geoConicConformal().rotate([-14.4,-35.95]).parallels([0,60]),C={point:function(t,e){r=[t,e]}};function P(t){var e=t[0],n=t[1];return r=null,i.point(e,n),r||(a.point(e,n),r)||(h.point(e,n),r)||(o.point(e,n),r)||(l.point(e,n),r)||(f.point(e,n),r)||(p.point(e,n),r)||(v.point(e,n),r)||(g.point(e,n),r)||(u.point(e,n),r)||(c.point(e,n),r)||(s.point(e,n),r)}function A(){return e=n=null,P}return P.invert=function(t){var e=d.scale(),n=d.translate(),r=(t[0]-(n[0]+.08*e))/e,i=(t[1]-n[1])/e;return(-.31<=i&&i<-.24&&.14<=r&&r<.24?y:-.24<=i&&i<-.17&&.14<=r&&r<.24?b:-.17<=i&&i<-.12&&.21<=r&&r<.24?x:-.17<=i&&i<-.14&&.14<=r&&r<.165?j:-.17<=i&&i<-.1&&.14<=r&&r<.24?m:-.1<=i&&i<-.03&&.14<=r&&r<.24?_:-.03<=i&&i<.04&&.14<=r&&r<.24?O:-.31<=i&&i<-.24&&.24<=r&&r<.34?w:-.24<=i&&i<-.17&&.24<=r&&r<.34?S:-.17<=i&&i<-.1&&.24<=r&&r<.34?M:-.1<=i&&i<-.03&&.24<=r&&r<.34?E:d).invert(t)},P.stream=function(t){return e&&n===t?e:(r=[d.stream(n=t),b.stream(t),w.stream(t),y.stream(t),O.stream(t),_.stream(t),S.stream(t),M.stream(t),E.stream(t),m.stream(t),x.stream(t),j.stream(t)],i=r.length,e={point:function(t,e){for(var n=-1;++n<i;)r[n].point(t,e)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},P.precision=function(t){return arguments.length?(d.precision(t),b.precision(t),w.precision(t),y.precision(t),O.precision(t),_.precision(t),S.precision(t),M.precision(t),E.precision(t),m.precision(t),x.precision(t),j.precision(t),A()):d.precision()},P.scale=function(t){return arguments.length?(d.scale(t),y.scale(3*t),b.scale(.8*t),w.scale(3.5*t),M.scale(2.7*t),m.scale(2*t),x.scale(2*t),j.scale(2*t),_.scale(3*t),O.scale(t),S.scale(5.5*t),E.scale(6*t),P.translate(d.translate())):d.scale()},P.translate=function(t){if(!arguments.length)return d.translate();var e=d.scale(),n=+t[0],r=+t[1];return i=d.translate([n-.08*e,r]).clipExtent([[n-.51*e,r-.33*e],[n+.5*e,r+.33*e]]).stream(C),o=y.translate([n+.19*e,r-.275*e]).clipExtent([[n+.14*e+I,r-.31*e+I],[n+.24*e-I,r-.24*e-I]]).stream(C),a=b.translate([n+.19*e,r-.205*e]).clipExtent([[n+.14*e+I,r-.24*e+I],[n+.24*e-I,r-.17*e-I]]).stream(C),u=m.translate([n+.19*e,r-.135*e]).clipExtent([[n+.14*e+I,r-.17*e+I],[n+.24*e-I,r-.1*e-I]]).stream(C),c=x.translate([n+.225*e,r-.147*e]).clipExtent([[n+.21*e+I,r-.17*e+I],[n+.24*e-I,r-.12*e-I]]).stream(C),s=j.translate([n+.153*e,r-.15*e]).clipExtent([[n+.14*e+I,r-.17*e+I],[n+.165*e-I,r-.14*e-I]]).stream(C),f=_.translate([n+.19*e,r-.065*e]).clipExtent([[n+.14*e+I,r-.1*e+I],[n+.24*e-I,r-.03*e-I]]).stream(C),l=O.translate([n+.19*e,r+.005*e]).clipExtent([[n+.14*e+I,r-.03*e+I],[n+.24*e-I,r+.04*e-I]]).stream(C),h=w.translate([n+.29*e,r-.275*e]).clipExtent([[n+.24*e+I,r-.31*e+I],[n+.34*e-I,r-.24*e-I]]).stream(C),p=S.translate([n+.29*e,r-.205*e]).clipExtent([[n+.24*e+I,r-.24*e+I],[n+.34*e-I,r-.17*e-I]]).stream(C),v=M.translate([n+.29*e,r-.135*e]).clipExtent([[n+.24*e+I,r-.17*e+I],[n+.34*e-I,r-.1*e-I]]).stream(C),g=E.translate([n+.29*e,r-.065*e]).clipExtent([[n+.24*e+I,r-.1*e+I],[n+.34*e-I,r-.03*e-I]]).stream(C),A()},P.fitExtent=function(t,e){return L(P,t,e)},P.fitSize=function(t,e){return R(P,t,e)},P.drawCompositionBorders=function(t){var e,n,r,i;e=d([42.45755610828648,63.343658547914934]),n=d([52.65837266667029,59.35045080290929]),r=d([47.19754502247785,56.12653496548117]),i=d([37.673034273363044,59.61638268506111]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=d([59.41110754003403,62.35069727399336]),n=d([66.75050228640794,57.11797303636038]),r=d([60.236065725110436,54.63331433818992]),i=d([52.65837313153311,59.350450804599355]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=d([48.81091130080243,66.93353402634641]),n=d([59.41110730654679,62.35069740653086]),r=d([52.6583728974441,59.3504509222445]),i=d([42.45755631675751,63.34365868805821]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=d([31.054198418446475,52.1080673766184]),n=d([39.09869284884117,49.400700047190554]),r=d([36.0580811499175,46.02944174908498]),i=d([28.690508588835726,48.433126979386415]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=d([33.977877745912025,55.849945501331]),n=d([42.75328432167726,52.78455122462353]),r=d([39.09869297540224,49.400700176148625]),i=d([31.05419851807008,52.10806751810923]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=d([52.658372900759296,59.35045068526415]),n=d([60.23606549583304,54.63331423800264]),r=d([54.6756370953122,51.892298789399455]),i=d([47.19754524788189,56.126534861222794]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=d([47.19754506082455,56.126534735591456]),n=d([54.675636900123514,51.892298681337095]),r=d([49.94448648951486,48.98775484983285]),i=d([42.75328468716108,52.78455126060818]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=d([42.75328453416769,52.78455113209101]),n=d([49.94448632339758,48.98775473706457]),r=d([45.912339990394315,45.99361784987003]),i=d([39.09869317356607,49.40070009378711]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=d([37.673034114296634,59.61638254183119]),n=d([47.197544835420544,56.126534839849846]),r=d([42.75328447467064,52.78455135314068]),i=d([33.977877870363905,55.849945644671145]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=d([44.56748486446032,57.26489367845818]),r=d([43.9335791193588,53.746540942601726]),i=d([43,56]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=d([37.673034114296634,59.61638254183119]),n=d([40.25902691953466,58.83002044222639]),r=d([38.458270492742024,57.26232178028002]),i=d([35.97754948030156,58.00266637992386]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath()},P.getCompositionBorders=function(){var t=k.path();return this.drawCompositionBorders(t),t.toString()},P.scale(750)},t.geoMercatorMalaysia=function(){var e,n,i,o,r,a=T.geoMercator().center([105.25,4]),u=T.geoMercator().center([118.65,2.86]),c={point:function(t,e){r=[t,e]}};function s(t){var e=t[0],n=t[1];return r=null,i.point(e,n),r||(o.point(e,n),r)}function f(){return e=n=null,s}return s.invert=function(t){var e=a.scale(),n=a.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(-.0521<=i&&i<.0229&&-.0111<=r&&r<.1?u:a).invert(t)},s.stream=function(t){return e&&n===t?e:(r=[a.stream(n=t),u.stream(t)],i=r.length,e={point:function(t,e){for(var n=-1;++n<i;)r[n].point(t,e)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},s.precision=function(t){return arguments.length?(a.precision(t),u.precision(t),f()):a.precision()},s.scale=function(t){return arguments.length?(a.scale(t),u.scale(.615*t),s.translate(a.translate())):a.scale()},s.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),n=+t[0],r=+t[1];return i=a.translate(t).clipExtent([[n-.11*e,r-.0521*e],[n-.0111*e,r+.0521*e]]).stream(c),o=u.translate([n+.09*e,r-0*e]).clipExtent([[n-.0111*e+I,r-.0521*e+I],[n+.1*e-I,r+.024*e-I]]).stream(c),f()},s.fitExtent=function(t,e){return L(s,t,e)},s.fitSize=function(t,e){return R(s,t,e)},s.drawCompositionBorders=function(t){var e=a([106.3214,2.0228]),n=a([105.1843,2.3761]),r=a([104.2151,3.3618]),i=a([104.215,4.5651]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1])},s.getCompositionBorders=function(){var t=k.path();return this.drawCompositionBorders(t),t.toString()},s.scale(4800)},t.geoMercatorEquatorialGuinea=function(){var e,n,i,o,a,r,u=T.geoMercator().rotate([-9.5,-1.5]),c=T.geoMercator().rotate([-8.6,-3.5]),s=T.geoMercator().rotate([-5.6,1.45]),f={point:function(t,e){r=[t,e]}};function l(t){var e=t[0],n=t[1];return r=null,i.point(e,n),r||(o.point(e,n),r)||(a.point(e,n),r)}function h(){return e=n=null,l}return l.invert=function(t){var e=u.scale(),n=u.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(-.02<=i&&i<0&&-.038<=r&&r<-.005?c:0<=i&&i<.02&&-.038<=r&&r<-.005?s:u).invert(t)},l.stream=function(t){return e&&n===t?e:(r=[u.stream(n=t),c.stream(t),s.stream(t)],i=r.length,e={point:function(t,e){for(var n=-1;++n<i;)r[n].point(t,e)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},l.precision=function(t){return arguments.length?(u.precision(t),c.precision(t),s.precision(t),h()):u.precision()},l.scale=function(t){return arguments.length?(u.scale(t),c.scale(1.5*t),s.scale(4*t),l.translate(u.translate())):u.scale()},l.translate=function(t){if(!arguments.length)return u.translate();var e=u.scale(),n=+t[0],r=+t[1];return i=u.translate(t).clipExtent([[n-.005*e,r-.02*e],[n+.038*e,r+.02*e]]).stream(f),o=c.translate([n-.025*e,r-.01*e]).clipExtent([[n-.038*e+I,r-.02*e+I],[n-.005*e-I,r+0*e-I]]).stream(f),a=s.translate([n-.025*e,r+.01*e]).clipExtent([[n-.038*e+I,r-0*e+I],[n-.005*e-I,r+.02*e-I]]).stream(f),h()},l.fitExtent=function(t,e){return L(l,t,e)},l.fitSize=function(t,e){return R(l,t,e)},l.drawCompositionBorders=function(t){var e,n,r,i;e=u([9.21327272751682,2.645820439454123]),n=u([11.679126293239872,2.644755519268689]),r=u([11.676845389029227,.35307824637606433]),i=u([9.213572917774014,.35414205204417754]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=u([7.320873711543669,2.64475551449975]),n=u([9.213272722738658,2.645820434679803]),r=u([9.213422896480349,1.4999812505283054]),i=u([7.322014760520787,1.4989168878985566]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath(),e=u([7.3220147605302905,1.4989168783492766]),n=u([9.213422896481598,1.499981240979021]),r=u([9.213572912999604,.354142056817247]),i=u([7.323154615739809,.353078251154504]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(r[0],r[1]),t.lineTo(i[0],i[1]),t.closePath()},l.getCompositionBorders=function(){var t=k.path();return this.drawCompositionBorders(t),t.toString()},l.scale(12e3)},Object.defineProperty(t,"__esModule",{value:!0})},"object"===u(e)&&void 0!==t?a(e,n(208),n(30)):(i=[e,n(208),n(30)],void 0===(o="function"==typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){"use strict";var l,h,p,v,g,r,i,d,c,s,o=n(49),a=n(209),y=n(50),b=n(6),f=n(29),u=Object(o.a)(),m={point:x,lineStart:_,lineEnd:O,polygonStart:function(){m.point=w,m.lineStart=S,m.lineEnd=M,u.reset(),a.b.polygonStart()},polygonEnd:function(){a.b.polygonEnd(),m.point=x,m.lineStart=_,m.lineEnd=O,a.a<0?(l=-(p=180),h=-(v=90)):u>b.i?v=90:u<-b.i&&(h=-90),s[0]=l,s[1]=p}};function x(t,e){c.push(s=[l=t,p=t]),e<h&&(h=e),v<e&&(v=e)}function j(t,e){var n=Object(y.a)([t*b.r,e*b.r]);if(d){var r=Object(y.c)(d,n),i=[r[1],-r[0],0],o=Object(y.c)(i,r);Object(y.e)(o),o=Object(y.g)(o);var a,u=t-g,c=0<u?1:-1,s=o[0]*b.h*c,f=180<Object(b.a)(u);f^(c*g<s&&s<c*t)?(a=o[1]*b.h,v<a&&(v=a)):f^(c*g<(s=(s+360)%360-180)&&s<c*t)?(a=-o[1]*b.h)<h&&(h=a):(e<h&&(h=e),v<e&&(v=e)),f?t<g?E(l,t)>E(l,p)&&(p=t):E(t,p)>E(l,p)&&(l=t):l<=p?(t<l&&(l=t),p<t&&(p=t)):g<t?E(l,t)>E(l,p)&&(p=t):E(t,p)>E(l,p)&&(l=t)}else x(t,e);d=n,g=t}function _(){m.point=j}function O(){s[0]=l,s[1]=p,m.point=x,d=null}function w(t,e){if(d){var n=t-g;u.add(180<Object(b.a)(n)?n+(0<n?360:-360):n)}else r=t,i=e;a.b.point(t,e),j(t,e)}function S(){a.b.lineStart()}function M(){w(r,i),a.b.lineEnd(),Object(b.a)(u)>b.i&&(l=-(p=180)),s[0]=l,s[1]=p,d=null}function E(t,e){return(e-=t)<0?e+360:e}function C(t,e){return t[0]-e[0]}function P(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}e.a=function(t){var e,n,r,i,o,a,u;if(v=p=-(l=h=1/0),c=[],Object(f.a)(t,m),n=c.length){for(c.sort(C),e=1,o=[r=c[0]];e<n;++e)P(r,(i=c[e])[0])||P(r,i[1])?(E(r[0],i[1])>E(r[0],r[1])&&(r[1]=i[1]),E(i[0],r[1])>E(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,e=0,r=o[n=o.length-1];e<=n;r=i,++e)i=o[e],(u=E(r[1],i[0]))>a&&(a=u,l=i[0],p=r[1])}return c=s=null,l===1/0||h===1/0?[[NaN,NaN],[NaN,NaN]]:[[l,h],[p,v]]}},function(t,e,n){"use strict";var o,p,a,u,c,v,g,d,y,b,m,r,i,x,j,_,O=n(6),s=n(28),f=n(29),l={sphere:s.a,point:h,lineStart:S,lineEnd:C,polygonStart:function(){l.lineStart=P,l.lineEnd=A},polygonEnd:function(){l.lineStart=S,l.lineEnd=C}};function h(t,e){t*=O.r,e*=O.r;var n=Object(O.g)(e);w(n*Object(O.g)(t),n*Object(O.t)(t),Object(O.t)(e))}function w(t,e,n){a+=(t-a)/++o,u+=(e-u)/o,c+=(n-c)/o}function S(){l.point=M}function M(t,e){t*=O.r,e*=O.r;var n=Object(O.g)(e);x=n*Object(O.g)(t),j=n*Object(O.t)(t),_=Object(O.t)(e),l.point=E,w(x,j,_)}function E(t,e){t*=O.r,e*=O.r;var n=Object(O.g)(e),r=n*Object(O.g)(t),i=n*Object(O.t)(t),o=Object(O.t)(e),a=Object(O.e)(Object(O.u)((a=j*o-_*i)*a+(a=_*r-x*o)*a+(a=x*i-j*r)*a),x*r+j*i+_*o);p+=a,v+=a*(x+(x=r)),g+=a*(j+(j=i)),d+=a*(_+(_=o)),w(x,j,_)}function C(){l.point=h}function P(){l.point=T}function A(){k(r,i),l.point=h}function T(t,e){r=t,i=e,t*=O.r,e*=O.r,l.point=k;var n=Object(O.g)(e);x=n*Object(O.g)(t),j=n*Object(O.t)(t),_=Object(O.t)(e),w(x,j,_)}function k(t,e){t*=O.r,e*=O.r;var n=Object(O.g)(e),r=n*Object(O.g)(t),i=n*Object(O.t)(t),o=Object(O.t)(e),a=j*o-_*i,u=_*r-x*o,c=x*i-j*r,s=Object(O.u)(a*a+u*u+c*c),f=x*r+j*i+_*o,l=s&&-Object(O.b)(f)/s,h=Object(O.e)(s,f);y+=l*a,b+=l*u,m+=l*c,p+=h,v+=h*(x+(x=r)),g+=h*(j+(j=i)),d+=h*(_+(_=o)),w(x,j,_)}e.a=function(t){o=p=a=u=c=v=g=d=y=b=m=0,Object(f.a)(t,l);var e=y,n=b,r=m,i=e*e+n*n+r*r;return i<O.j&&(e=v,n=g,r=d,p<O.i&&(e=a,n=u,r=c),(i=e*e+n*n+r*r)<O.j)?[NaN,NaN]:[Object(O.e)(n,e)*O.h,Object(O.c)(r/Object(O.u)(i))*O.h]}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";e.a=function(t,e,n,r,i,o){var a,u=t[0],c=t[1],s=0,f=1,l=e[0]-u,h=e[1]-c;if(a=n-u,l||!(0<a)){if(a/=l,l<0){if(a<s)return;a<f&&(f=a)}else if(0<l){if(f<a)return;s<a&&(s=a)}if(a=i-u,l||!(a<0)){if(a/=l,l<0){if(f<a)return;s<a&&(s=a)}else if(0<l){if(a<s)return;a<f&&(f=a)}if(a=r-c,h||!(0<a)){if(a/=h,h<0){if(a<s)return;a<f&&(f=a)}else if(0<h){if(f<a)return;s<a&&(s=a)}if(a=o-c,h||!(a<0)){if(a/=h,h<0){if(f<a)return;s<a&&(s=a)}else if(0<h){if(a<s)return;a<f&&(f=a)}return 0<s&&(t[0]=u+s*l,t[1]=c+s*h),f<1&&(e[0]=u+f*l,e[1]=c+f*h),!0}}}}}},function(t,e,n){"use strict";var r=n(216),i=[null,null],o={type:"LineString",coordinates:i};e.a=function(t,e){return i[0]=t,i[1]=e,Object(r.a)(o)}},function(t,e,n){"use strict";var m=n(12),x=n(6);function j(t,e,n){var r=Object(m.range)(t,e-x.i,n).concat(e);return function(e){return r.map(function(t){return[e,t]})}}function _(t,e,n){var r=Object(m.range)(t,e-x.i,n).concat(e);return function(e){return r.map(function(t){return[t,e]})}}e.a=function(){var e,n,r,i,o,a,u,c,s,f,l,h,p=10,v=p,g=90,d=360,y=2.5;function b(){return{type:"MultiLineString",coordinates:t()}}function t(){return Object(m.range)(Object(x.f)(i/g)*g,r,g).map(l).concat(Object(m.range)(Object(x.f)(c/d)*d,u,d).map(h)).concat(Object(m.range)(Object(x.f)(n/p)*p,e,p).filter(function(t){return Object(x.a)(t%g)>x.i}).map(s)).concat(Object(m.range)(Object(x.f)(a/v)*v,o,v).filter(function(t){return Object(x.a)(t%d)>x.i}).map(f))}return b.lines=function(){return t().map(function(t){return{type:"LineString",coordinates:t}})},b.outline=function(){return{type:"Polygon",coordinates:[l(i).concat(h(u).slice(1),l(r).reverse().slice(1),h(c).reverse().slice(1))]}},b.extent=function(t){return arguments.length?b.extentMajor(t).extentMinor(t):b.extentMinor()},b.extentMajor=function(t){return arguments.length?(i=+t[0][0],r=+t[1][0],c=+t[0][1],u=+t[1][1],r<i&&(t=i,i=r,r=t),u<c&&(t=c,c=u,u=t),b.precision(y)):[[i,c],[r,u]]},b.extentMinor=function(t){return arguments.length?(n=+t[0][0],e=+t[1][0],a=+t[0][1],o=+t[1][1],e<n&&(t=n,n=e,e=t),o<a&&(t=a,a=o,o=t),b.precision(y)):[[n,a],[e,o]]},b.step=function(t){return arguments.length?b.stepMajor(t).stepMinor(t):b.stepMinor()},b.stepMajor=function(t){return arguments.length?(g=+t[0],d=+t[1],b):[g,d]},b.stepMinor=function(t){return arguments.length?(p=+t[0],v=+t[1],b):[p,v]},b.precision=function(t){return arguments.length?(y=+t,s=j(a,o,90),f=_(n,e,y),l=j(c,u,90),h=_(i,r,y),b):y},b.extentMajor([[-180,-90+x.i],[180,90-x.i]]).extentMinor([[-180,-80-x.i],[180,80+x.i]])}},function(t,e,n){"use strict";var y=n(6);e.a=function(t,e){var n=t[0]*y.r,r=t[1]*y.r,i=e[0]*y.r,o=e[1]*y.r,a=Object(y.g)(r),u=Object(y.t)(r),c=Object(y.g)(o),s=Object(y.t)(o),f=a*Object(y.g)(n),l=a*Object(y.t)(n),h=c*Object(y.g)(i),p=c*Object(y.t)(i),v=2*Object(y.c)(Object(y.u)(Object(y.m)(o-r)+a*c*Object(y.m)(i-n))),g=Object(y.t)(v),d=v?function(t){var e=Object(y.t)(t*=v)/g,n=Object(y.t)(v-t)/g,r=n*f+e*h,i=n*l+e*p,o=n*u+e*s;return[Object(y.e)(i,r)*y.h,Object(y.e)(o,Object(y.u)(r*r+i*i))*y.h]}:function(){return[n*y.h,r*y.h]};return d.distance=v,d}},function(t,e,n){"use strict";var u=n(217),c=n(29),s=n(509),f=n(218),l=n(510),h=n(511),p=n(512);e.a=function(){var e,n,r,i,o=4.5;function a(t){return t&&("function"==typeof o&&i.pointRadius(+o.apply(this,arguments)),Object(c.a)(t,n(i))),i.result()}return a.area=function(t){return Object(c.a)(t,n(s.a)),s.a.result()},a.bounds=function(t){return Object(c.a)(t,n(f.a)),f.a.result()},a.centroid=function(t){return Object(c.a)(t,n(l.a)),l.a.result()},a.projection=function(t){return arguments.length?(n=null==(e=t)?u.a:t.stream,a):e},a.context=function(t){return arguments.length?(i=null==(r=t)?new p.a:new h.a(t),"function"!=typeof o&&i.pointRadius(o),a):r},a.pointRadius=function(t){return arguments.length?(o="function"==typeof t?t:(i.pointRadius(+t),+t),a):o},a.projection(null).context(null)}},function(t,e,n){"use strict";var r,i,o,a,u=n(49),c=n(6),s=n(28),f=Object(u.a)(),l=Object(u.a)(),h={point:s.a,lineStart:s.a,lineEnd:s.a,polygonStart:function(){h.lineStart=p,h.lineEnd=d},polygonEnd:function(){h.lineStart=h.lineEnd=h.point=s.a,f.add(Object(c.a)(l)),l.reset()},result:function(){var t=f/2;return f.reset(),t}};function p(){h.point=v}function v(t,e){h.point=g,r=o=t,i=a=e}function g(t,e){l.add(a*t-o*e),o=t,a=e}function d(){g(r,i)}e.a=h},function(t,e,n){"use strict";var r,i,o,a,u=n(6),c=0,s=0,f=0,l=0,h=0,p=0,v=0,g=0,d=0,y={point:b,lineStart:m,lineEnd:_,polygonStart:function(){y.lineStart=O,y.lineEnd=w},polygonEnd:function(){y.point=b,y.lineStart=m,y.lineEnd=_},result:function(){var t=d?[v/d,g/d]:p?[l/p,h/p]:f?[c/f,s/f]:[NaN,NaN];return c=s=f=l=h=p=v=g=d=0,t}};function b(t,e){c+=t,s+=e,++f}function m(){y.point=x}function x(t,e){y.point=j,b(o=t,a=e)}function j(t,e){var n=t-o,r=e-a,i=Object(u.u)(n*n+r*r);l+=i*(o+t)/2,h+=i*(a+e)/2,p+=i,b(o=t,a=e)}function _(){y.point=b}function O(){y.point=S}function w(){M(r,i)}function S(t,e){y.point=M,b(r=o=t,i=a=e)}function M(t,e){var n=t-o,r=e-a,i=Object(u.u)(n*n+r*r);l+=i*(o+t)/2,h+=i*(a+e)/2,p+=i,v+=(i=a*t-o*e)*(o+t),g+=i*(a+e),d+=3*i,b(o=t,a=e)}e.a=y},function(t,e,n){"use strict";e.a=o;var r=n(6),i=n(28);function o(t){this._context=t}o.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,r.w)}},result:i.a}},function(t,e,n){"use strict";function r(){this._string=[]}function i(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}(e.a=r).prototype={_circle:i(4.5),pointRadius:function(t){return this._circle=i(t),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}}}},function(t,e,n){"use strict";var r=n(220),d=n(6);e.a=Object(r.a)(function(){return!0},function(l){var h,p=NaN,v=NaN,g=NaN;return{lineStart:function(){l.lineStart(),h=1},point:function(t,e){var n,r,i,o,a,u,c,s=0<t?d.o:-d.o,f=Object(d.a)(t-p);Object(d.a)(f-d.o)<d.i?(l.point(p,v=0<(v+e)/2?d.l:-d.l),l.point(g,v),l.lineEnd(),l.lineStart(),l.point(s,v),l.point(t,v),h=0):g!==s&&f>=d.o&&(Object(d.a)(p-g)<d.i&&(p-=g*d.i),Object(d.a)(t-s)<d.i&&(t-=s*d.i),n=p,r=v,i=t,o=e,c=Object(d.t)(n-i),v=Object(d.a)(c)>d.i?Object(d.d)((Object(d.t)(r)*(u=Object(d.g)(o))*Object(d.t)(i)-Object(d.t)(o)*(a=Object(d.g)(r))*Object(d.t)(n))/(a*u*c)):(r+o)/2,l.point(g,v),l.lineEnd(),l.lineStart(),l.point(s,v),h=0),l.point(p=t,v=e),g=s},lineEnd:function(){l.lineEnd(),p=v=NaN},clean:function(){return 2-h}}},function(t,e,n,r){var i;if(null==t)i=n*d.l,r.point(-d.o,i),r.point(0,i),r.point(d.o,i),r.point(d.o,0),r.point(d.o,-i),r.point(0,-i),r.point(-d.o,-i),r.point(-d.o,0),r.point(-d.o,i);else if(Object(d.a)(t[0]-e[0])>d.i){var o=t[0]<e[0]?d.o:-d.o;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(e[0],e[1])},[-d.o,-d.l])},function(t,e,n){"use strict";var r=n(49),A=n(50),T=n(6),k=Object(r.a)();e.a=function(t,e){var n=e[0],r=e[1],i=[Object(T.t)(n),-Object(T.g)(n),0],o=0,a=0;k.reset();for(var u=0,c=t.length;u<c;++u)if(f=(s=t[u]).length)for(var s,f,l=s[f-1],h=l[0],p=l[1]/2+T.q,v=Object(T.t)(p),g=Object(T.g)(p),d=0;d<f;++d,h=b,v=x,g=j,l=y){var y=s[d],b=y[0],m=y[1]/2+T.q,x=Object(T.t)(m),j=Object(T.g)(m),_=b-h,O=0<=_?1:-1,w=O*_,S=w>T.o,M=v*x;if(k.add(Object(T.e)(M*O*Object(T.t)(w),g*j+M*Object(T.g)(w))),o+=S?_+O*T.w:_,S^n<=h^n<=b){var E=Object(A.c)(Object(A.a)(l),Object(A.a)(y));Object(A.e)(E);var C=Object(A.c)(i,E);Object(A.e)(C);var P=(S^0<=_?-1:1)*Object(T.c)(C[2]);(P<r||r===P&&(E[0]||E[1]))&&(a+=S^0<=_?1:-1)}}return(o<-T.i||o<T.i&&k<-T.i)^1&a}},function(t,e,n){"use strict";var A=n(50),a=n(210),T=n(6),b=n(215),r=n(220);e.a=function(i,o){var P=Object(T.g)(i),p=0<P,v=Object(T.a)(P)>T.i;function g(t,e){return Object(T.g)(t)*Object(T.g)(e)>P}function d(t,e,n){var r=Object(A.a)(t),i=Object(A.a)(e),o=[1,0,0],a=Object(A.c)(r,i),u=Object(A.d)(a,a),c=a[0],s=u-c*c;if(!s)return!n&&t;var f=P*u/s,l=-P*c/s,h=Object(A.c)(o,a),p=Object(A.f)(o,f),v=Object(A.f)(a,l);Object(A.b)(p,v);var g=h,d=Object(A.d)(p,g),y=Object(A.d)(g,g),b=d*d-y*(Object(A.d)(p,p)-1);if(!(b<0)){var m=Object(T.u)(b),x=Object(A.f)(g,(-d-m)/y);if(Object(A.b)(x,p),x=Object(A.g)(x),!n)return x;var j,_=t[0],O=e[0],w=t[1],S=e[1];O<_&&(j=_,_=O,O=j);var M=O-_,E=Object(T.a)(M-T.o)<T.i;if(!E&&S<w&&(j=w,w=S,S=j),E||M<T.i?E?0<w+S^x[1]<(Object(T.a)(x[0]-_)<T.i?w:S):w<=x[1]&&x[1]<=S:M>T.o^(_<=x[0]&&x[0]<=O)){var C=Object(A.f)(g,(-d+m)/y);return Object(A.b)(C,p),[x,Object(A.g)(C)]}}}function y(t,e){var n=p?i:T.o-i,r=0;return t<-n?r|=1:n<t&&(r|=2),e<-n?r|=4:n<e&&(r|=8),r}return Object(r.a)(g,function(u){var c,s,f,l,h;return{lineStart:function(){l=f=!1,h=1},point:function(t,e){var n,r=[t,e],i=g(t,e),o=p?i?0:y(t,e):i?y(t+(t<0?T.o:-T.o),e):0;if(!c&&(l=f=i)&&u.lineStart(),i!==f&&(n=d(c,r),(Object(b.a)(c,n)||Object(b.a)(r,n))&&(r[0]+=T.i,r[1]+=T.i,i=g(r[0],r[1]))),i!==f)h=0,i?(u.lineStart(),n=d(r,c),u.point(n[0],n[1])):(n=d(c,r),u.point(n[0],n[1]),u.lineEnd()),c=n;else if(v&&c&&p^i){var a;o&s||!(a=d(r,c,!0))||(h=0,p?(u.lineStart(),u.point(a[0][0],a[0][1]),u.point(a[1][0],a[1][1]),u.lineEnd()):(u.point(a[1][0],a[1][1]),u.lineEnd(),u.lineStart(),u.point(a[0][0],a[0][1])))}!i||c&&Object(b.a)(c,r)||u.point(r[0],r[1]),c=r,f=i,s=o},lineEnd:function(){f&&u.lineEnd(),c=null},clean:function(){return h|(l&&f)<<1}}},function(t,e,n,r){Object(a.a)(r,i,o,n,t,e)},p?[0,-i]:[-T.o,i-T.o])}},function(t,e,n){"use strict";var j=n(50),k=n(6),r=n(112),_=16,I=Object(k.g)(30*k.r);e.a=function(t,e){return+e?function(P,A){function T(t,e,n,r,i,o,a,u,c,s,f,l,h,p){var v=a-t,g=u-e,d=v*v+g*g;if(4*A<d&&h--){var y=r+s,b=i+f,m=o+l,x=Object(k.u)(y*y+b*b+m*m),j=Object(k.c)(m/=x),_=Object(k.a)(Object(k.a)(m)-1)<k.i||Object(k.a)(n-c)<k.i?(n+c)/2:Object(k.e)(b,y),O=P(_,j),w=O[0],S=O[1],M=w-t,E=S-e,C=g*M-v*E;(A<C*C/d||.3<Object(k.a)((v*M+g*E)/d-.5)||r*s+i*f+o*l<I)&&(T(t,e,n,r,i,o,w,S,_,y/=x,b/=x,m,h,p),p.point(w,S),T(w,S,_,y,b,m,a,u,c,s,f,l,h,p))}}return function(i){var n,r,o,a,u,c,s,f,l,h,p,v,g={point:t,lineStart:e,lineEnd:y,polygonStart:function(){i.polygonStart(),g.lineStart=b},polygonEnd:function(){i.polygonEnd(),g.lineStart=e}};function t(t,e){t=P(t,e),i.point(t[0],t[1])}function e(){f=NaN,g.point=d,i.lineStart()}function d(t,e){var n=Object(j.a)([t,e]),r=P(t,e);T(f,l,s,h,p,v,f=r[0],l=r[1],s=t,h=n[0],p=n[1],v=n[2],_,i),i.point(f,l)}function y(){g.point=t,i.lineEnd()}function b(){e(),g.point=m,g.lineEnd=x}function m(t,e){d(n=t,e),r=f,o=l,a=h,u=p,c=v,g.point=d}function x(){T(f,l,s,h,p,v,r,o,n,a,u,c,_,i),(g.lineEnd=y)()}return g}}(t,e):(n=t,Object(r.b)({point:function(t,e){t=n(t,e),this.stream.point(t[0],t[1])}}));var n}},function(t,e,n){"use strict";var h=n(6),p=n(219),v=n(110),g=n(221);e.a=function(){var e,n,i,o,a,r,u=Object(p.a)(),c=Object(v.b)().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=Object(v.b)().rotate([157,0]).center([-3,19.9]).parallels([8,18]),f={point:function(t,e){r=[t,e]}};function l(t){var e=t[0],n=t[1];return r=null,i.point(e,n),r||(o.point(e,n),r)||(a.point(e,n),r)}return l.invert=function(t){var e=u.scale(),n=u.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(.12<=i&&i<.234&&-.425<=r&&r<-.214?c:.166<=i&&i<.234&&-.214<=r&&r<-.115?s:u).invert(t)},l.stream=function(t){return e&&n===t?e:(r=[u.stream(n=t),c.stream(t),s.stream(t)],i=r.length,e={point:function(t,e){for(var n=-1;++n<i;)r[n].point(t,e)},sphere:function(){for(var t=-1;++t<i;)r[t].sphere()},lineStart:function(){for(var t=-1;++t<i;)r[t].lineStart()},lineEnd:function(){for(var t=-1;++t<i;)r[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<i;)r[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<i;)r[t].polygonEnd()}});var r,i},l.precision=function(t){return arguments.length?(u.precision(t),c.precision(t),s.precision(t),l):u.precision()},l.scale=function(t){return arguments.length?(u.scale(t),c.scale(.35*t),s.scale(t),l.translate(u.translate())):u.scale()},l.translate=function(t){if(!arguments.length)return u.translate();var e=u.scale(),n=+t[0],r=+t[1];return i=u.translate(t).clipExtent([[n-.455*e,r-.238*e],[n+.455*e,r+.238*e]]).stream(f),o=c.translate([n-.307*e,r+.201*e]).clipExtent([[n-.425*e+h.i,r+.12*e+h.i],[n-.214*e-h.i,r+.234*e-h.i]]).stream(f),a=s.translate([n-.205*e,r+.212*e]).clipExtent([[n-.214*e+h.i,r+.166*e+h.i],[n-.115*e-h.i,r+.234*e-h.i]]).stream(f),l},l.fitExtent=Object(g.a)(l),l.fitSize=Object(g.b)(l),l.scale(1070)}},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(6),i=n(51),o=n(18),a=Object(i.b)(function(t){return Object(r.u)(2/(1+t))});a.invert=Object(i.a)(function(t){return 2*Object(r.c)(t/2)}),e.b=function(){return Object(o.a)(a).scale(124.75).clipAngle(179.999)}},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(6),i=n(51),o=n(18),a=Object(i.b)(function(t){return(t=Object(r.b)(t))&&t/Object(r.t)(t)});a.invert=Object(i.a)(function(t){return t}),e.b=function(){return Object(o.a)(a).scale(79.4188).clipAngle(179.999)}},function(t,e,n){"use strict";e.a=i;var a=n(6),r=n(111),u=n(113);function c(t){return Object(a.v)((a.l+t)/2)}function i(t,e){var n=Object(a.g)(t),i=t===e?Object(a.t)(t):Object(a.n)(n/Object(a.g)(e))/Object(a.n)(c(e)/c(t)),o=n*Object(a.p)(c(t),i)/i;if(!i)return u.c;function r(t,e){0<o?e<-a.l+a.i&&(e=-a.l+a.i):e>a.l-a.i&&(e=a.l-a.i);var n=o/Object(a.p)(c(e),i);return[n*Object(a.t)(i*t),o-n*Object(a.g)(i*t)]}return r.invert=function(t,e){var n=o-e,r=Object(a.s)(i)*Object(a.u)(t*t+n*n);return[Object(a.e)(t,n)/i,2*Object(a.d)(Object(a.p)(o/r,1/i))-a.l]},r}e.b=function(){return Object(r.a)(i).scale(109.5).parallels([30,30])}},function(t,e,n){"use strict";e.a=i;var a=n(6),r=n(111),u=n(222);function i(t,e){var n=Object(a.g)(t),i=t===e?Object(a.t)(t):(n-Object(a.g)(e))/(e-t),o=n/i+t;if(Object(a.a)(i)<a.i)return u.b;function r(t,e){var n=o-e,r=i*t;return[n*Object(a.t)(r),o-n*Object(a.g)(r)]}return r.invert=function(t,e){var n=o-e;return[Object(a.e)(t,n)/i,o-Object(a.s)(i)*Object(a.u)(t*t+n*n)]},r}e.b=function(){return Object(r.a)(i).scale(131.154).center([0,13.9389])}},function(t,e,n){"use strict";e.b=a;var i=n(6),r=n(51),o=n(18);function a(t,e){var n=Object(i.g)(e),r=Object(i.g)(t)*n;return[n*Object(i.t)(t)/r,Object(i.t)(e)/r]}a.invert=Object(r.a)(i.d),e.a=function(){return Object(o.a)(a).scale(144.049).clipAngle(60)}},function(t,e,n){"use strict";e.b=a;var r=n(6),i=n(51),o=n(18);function a(t,e){return[Object(r.g)(e)*Object(r.t)(t),Object(r.t)(e)]}a.invert=Object(i.a)(r.c),e.a=function(){return Object(o.a)(a).scale(249.5).clipAngle(90+r.i)}},function(t,e,n){"use strict";e.b=a;var i=n(6),r=n(51),o=n(18);function a(t,e){var n=Object(i.g)(e),r=1+Object(i.g)(t)*n;return[n*Object(i.t)(t)/r,Object(i.t)(e)/r]}a.invert=Object(r.a)(function(t){return 2*Object(i.d)(t)}),e.a=function(){return Object(o.a)(a).scale(250).clipAngle(142)}},function(t,e,n){"use strict";e.b=o;var r=n(6),i=n(113);function o(t,e){return[Object(r.n)(Object(r.v)((r.l+e)/2)),-t]}o.invert=function(t,e){return[-e,2*Object(r.d)(Object(r.k)(t))-r.l]},e.a=function(){var t=Object(i.b)(o),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],2<t.length?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}},function(t,e,n){"use strict";var j=Math.PI,h=2*j,p=h-1e-6;function r(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function i(){return new r}r.prototype=i.prototype={constructor:r,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,u=n-t,c=r-e,s=o-t,f=a-e,l=s*s+f*f;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(1e-6<l)if(1e-6<Math.abs(f*u-c*s)&&i){var h=n-o,p=r-a,v=u*u+c*c,g=h*h+p*p,d=Math.sqrt(v),y=Math.sqrt(l),b=i*Math.tan((j-Math.acos((v+l-g)/(2*d*y)))/2),m=b/y,x=b/d;1e-6<Math.abs(m-1)&&(this._+="L"+(t+m*s)+","+(e+m*f)),this._+="A"+i+","+i+",0,0,"+ +(s*p<f*h)+","+(this._x1=t+x*u)+","+(this._y1=e+x*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,o){t=+t,e=+e;var a=(n=+n)*Math.cos(r),u=n*Math.sin(r),c=t+a,s=e+u,f=1^o,l=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+s:(1e-6<Math.abs(this._x1-c)||1e-6<Math.abs(this._y1-s))&&(this._+="L"+c+","+s),n&&(l<0&&(l=l%h+h),p<l?this._+="A"+n+","+n+",0,1,"+f+","+(t-a)+","+(e-u)+"A"+n+","+n+",0,1,"+f+","+(this._x1=c)+","+(this._y1=s):1e-6<l&&(this._+="A"+n+","+n+",0,"+ +(j<=l)+","+f+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},e.a=i},function(t,e,n){var r=n(3),i=n(43);r(i.prototype,{getAllNodes:function(){var e=[];return this.root.each(function(t){e.push(t)}),e},getAllLinks:function(){for(var e=[],n=[this.root],r=void 0;r=n.pop();){var t=r.children;t&&t.forEach(function(t){e.push({source:r,target:t}),n.push(t)})}return e}}),r(i.prototype,{getAllEdges:i.prototype.getAllLinks})},function(t,e,n){var r=n(3),i=n(114),o=n(15);r(n(43).prototype,{partition:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];return o(this.rows,t,e)},group:function(t,e){var n=this.partition(t,e);return i(n)},groups:function(t,e){return this.group(t,e)}})},function(t,e,n){var r=n(46);t.exports=function(e,t){return r(t,function(t){return e[t]})}},function(t,e,n){var r=n(79),i=n(531),o=Object.prototype.hasOwnProperty,a=i(function(t,e,n){o.call(t,n)?t[n].push(e):r(t,n,[e])});t.exports=a},function(t,e,n){var a=n(532),u=n(533),c=n(44),s=n(4);t.exports=function(i,o){return function(t,e){var n=s(t)?a:u,r=o?o():{};return n(t,i,c(e,2),r)}}},function(t,e){t.exports=function(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}},function(t,e,n){var a=n(115);t.exports=function(t,r,i,o){return a(t,function(t,e,n){r(o,t,i(t),n)}),o}},function(t,e,n){var r=n(205),i=n(9);t.exports=function(t,e){return t&&r(t,e,i)}},function(t,e,n){var u=n(20);t.exports=function(o,a){return function(t,e){if(null==t)return t;if(!u(t))return o(t,e);for(var n=t.length,r=a?n:-1,i=Object(t);(a?r--:++r<n)&&!1!==e(i[r],r,i););return t}}},function(t,e,n){var r=n(4),o=n(11),a=n(8);t.exports=function(t){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],e=void 0;return o(i)?e=i:r(i)?e=function(t,e){for(var n=0;n<i.length;n++){var r=i[n];if(t[r]<e[r])return-1;if(t[r]>e[r])return 1}return 0}:a(i)&&(e=function(t,e){return t[i]<e[i]?-1:t[i]>e[i]?1:0}),t.sort(e)}},function(t,e,n){var r=n(3),i=n(223),o=n(4),a=n(23),u=n(43),c=n(240);function s(t,e){var n=t.getColumn(e);return o(n)&&o(n[0])&&(n=i(n)),n}n(120).STATISTICS_METHODS.forEach(function(e){u.prototype[e]=function(t){return a[e](s(this,t))}});var f=a.quantile;r(u.prototype,{average:u.prototype.mean,quantile:function(t,e){return f(s(this,t),e)},quantiles:function(t,e){var n=s(this,t);return e.map(function(t){return f(n,t)})},quantilesByFraction:function(t,e){return this.quantiles(t,c(e))},range:function(t){return[this.min(t),this.max(t)]},extent:function(t){return this.range(t)}})},function(t,e){t.exports=function(t){var e,n,r=t.length;if(1===r)n=t[e=0][1];else{for(var i,o,a,u=0,c=0,s=0,f=0,l=0;l<r;l++)u+=o=(i=t[l])[0],c+=a=i[1],s+=o*o,f+=o*a;n=c/r-(e=(r*f-u*c)/(r*s-u*u))*u/r}return{m:e,b:n}}},function(t,e){t.exports=function(e){return function(t){return e.b+e.m*t}}},function(t,e){t.exports=function(t,e){if(t.length<2)return 1;for(var n,r=0,i=0;i<t.length;i++)r+=t[i][1];n=r/t.length;for(var o=0,a=0;a<t.length;a++)o+=Math.pow(n-t[a][1],2);for(var u=0,c=0;c<t.length;c++)u+=Math.pow(t[c][1]-e(t[c][0]),2);return 1-u/o}},function(t,e,n){var r=n(227),i=n(228);t.exports=function(t){return i(r(t))}},function(t,e){t.exports=function(t){for(var e,n=new Map,r=0,i=0;i<t.length;i++){var o=n.get(t[i]);void 0===o?o=1:o++,r<o&&(e=t[i],r=o),n.set(t[i],o)}if(0===r)throw new Error("mode requires at last one data point");return e}},function(t,e){t.exports=function(t){return t[0]}},function(t,e){t.exports=function(t){return t[t.length-1]}},function(t,e){t.exports=function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n];return e}},function(t,e){t.exports=function(t){for(var e=1,n=0;n<t.length;n++)e*=t[n];return e}},function(t,e){function g(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}t.exports=function t(e,n,r,i){r=r||0;i=i||e.length-1;for(;r<i;){if(600<i-r){var o=i-r+1,a=n-r+1,u=Math.log(o),c=.5*Math.exp(2*u/3),s=.5*Math.sqrt(u*c*(o-c)/o);a-o/2<0&&(s*=-1);var f=Math.max(r,Math.floor(n-a*c/o+s)),l=Math.min(i,Math.floor(n+(o-a)*c/o+s));t(e,n,f,l)}var h=e[n],p=r,v=i;for(g(e,r,n),e[i]>h&&g(e,r,i);p<v;){for(g(e,p,v),p++,v--;e[p]<h;)p++;for(;e[v]>h;)v--}e[r]===h?g(e,r,v):g(e,++v,i),v<=n&&(r=v+1),n<=v&&(i=v-1)}}},function(t,e,n){var r=n(117);t.exports=function(t){var e=r(t,.75),n=r(t,.25);if("number"==typeof e&&"number"==typeof n)return e-n}},function(t,e,n){var i=n(231);t.exports=function(t){for(var e=i(t),n=[],r=0;r<t.length;r++)n.push(Math.abs(t[r]-e));return i(n)}},function(t,e){t.exports=function(t,e){var n=[];if(e<1)throw new Error("chunk size must be a positive number");if(Math.floor(e)!==e)throw new Error("chunk size must be an integer");for(var r=0;r<t.length;r+=e)n.push(t.slice(r,r+e));return n}},function(t,e){t.exports=function(t,e,n){if(0===t.length)return[];n=n||Math.random;for(var r=t.length,i=[],o=0;o<e;o++){var a=Math.floor(n()*r);i.push(t[a])}return i}},function(t,e,n){var r=n(232);t.exports=function(t,e,n){return r(t,n).slice(0,e)}},function(t,e,n){var s=n(234),f=n(227);function l(t,e){for(var n=[],r=0;r<t;r++){for(var i=[],o=0;o<e;o++)i.push(0);n.push(i)}return n}function v(t,e,n,r){var i;if(0<t){var o=(n[e]-n[t-1])/(e-t+1);i=r[e]-r[t-1]-(e-t+1)*o*o}else i=r[e]-n[e]*n[e]/(e+1);return i<0?0:i}function g(t,e,n,r,i,o,a){if(!(e<t)){var u=Math.floor((t+e)/2);r[n][u]=r[n-1][u-1],i[n][u]=u;var c=n;n<t&&(c=Math.max(c,i[n][t-1]||0)),c=Math.max(c,i[n-1][u]||0);var s,f,l,h=u-1;e<r.length-1&&(h=Math.min(h,i[n][e+1]||0));for(var p=h;c<=p&&!((s=v(p,u,o,a))+r[n-1][c-1]>=r[n][u]);--p)(f=v(c,u,o,a)+r[n-1][c-1])<r[n][u]&&(r[n][u]=f,i[n][u]=c),c++,(l=s+r[n-1][p-1])<r[n][u]&&(r[n][u]=l,i[n][u]=p);g(t,u-1,n,r,i,o,a),g(u+1,e,n,r,i,o,a)}}t.exports=function(t,e){if(e>t.length)throw new Error("cannot generate more classes than there are data values");var n=f(t);if(1===s(n))return[n];var r=l(e,n.length),i=l(e,n.length);!function(t,e,n){for(var r,i=e[0].length,o=t[Math.floor(i/2)],a=[],u=[],c=0;c<i;++c)r=t[c]-o,0===c?(a.push(r),u.push(r*r)):(a.push(a[c-1]+r),u.push(u[c-1]+r*r)),e[0][c]=v(0,c,a,u),n[0][c]=0;for(var s=1;s<e.length;++s)g(s<e.length-1?s:i-1,i-1,s,e,n,a,u)}(n,r,i);for(var o=[],a=i[0].length-1,u=i.length-1;0<=u;u--){var c=i[u][a];o[u]=n.slice(c,a+1),0<u&&(a=c-1)}return o}},function(t,e,n){var u=n(230),c=n(229);t.exports=function(t,e){if(t.length<2)return t;for(var n=c(t),r=u(t),i=[n],o=(r-n)/e,a=1;a<e;a++)i.push(i[0]+o*a);return i.push(r),i}},function(t,e,n){var r=n(235),i=n(236);t.exports=function(t,e){return r(t,e)/i(t)/i(e)}},function(t,e,n){var s=n(24);t.exports=function(t){if(t.length<3)throw new Error("sampleSkewness requires at least three data points");for(var e,n=s(t),r=0,i=0,o=0;o<t.length;o++)r+=(e=t[o]-n)*e,i+=e*e*e;var a=t.length-1,u=Math.sqrt(r/a),c=t.length;return c*i/((c-1)*(c-2)*Math.pow(u,3))}},function(t,e,n){var u=n(24);t.exports=function(t){var e=t.length;if(e<4)throw new Error("sampleKurtosis requires at least four data points");for(var n,r=u(t),i=0,o=0,a=0;a<e;a++)i+=(n=t[a]-r)*n,o+=n*n*n*n;return(e-1)/((e-2)*(e-3))*(e*(e+1)*o/(i*i)-3*(e-1))}},function(t,e){t.exports=function(t){for(var e=new Array(t.length),n=[t.slice()],r=0;r<t.length;r++)e[r]=0;for(r=0;r<t.length;)if(e[r]<r){var i=0;r%2!=0&&(i=e[r]);var o=t[i];t[i]=t[r],t[r]=o,n.push(t.slice()),e[r]++,r=0}else e[r]=0,r++;return n}},function(t,e){t.exports=function t(e,n){var r,i,o,a,u=[];for(r=0;r<e.length;r++)if(1===n)u.push([e[r]]);else for(o=t(e.slice(r+1,e.length),n-1),i=0;i<o.length;i++)(a=o[i]).unshift(e[r]),u.push(a);return u}},function(t,e){t.exports=function t(e,n){for(var r=[],i=0;i<e.length;i++)if(1===n)r.push([e[i]]);else for(var o=t(e.slice(i,e.length),n-1),a=0;a<o.length;a++)r.push([e[i]].concat(o[a]));return r}},function(t,e){t.exports=function(t,e,n){return t+(n-t)/(e+1)}},function(t,e,n){var u=n(237);t.exports=function(t,e,n,r,i,o){var a=u(e,n,i,o);return(n*(t+Math.pow(e-a,2))+o*(r+Math.pow(i-a,2)))/(n+o)}},function(t,e){t.exports=function(t){if(0===t.length)throw new Error("geometricMean requires at least one data point");for(var e=1,n=0;n<t.length;n++){if(t[n]<=0)throw new Error("geometricMean requires only positive numbers as input");e*=t[n]}return Math.pow(e,1/t.length)}},function(t,e){t.exports=function(t){if(0===t.length)throw new Error("harmonicMean requires at least one data point");for(var e=0,n=0;n<t.length;n++){if(t[n]<=0)throw new Error("harmonicMean requires only positive numbers as input");e+=1/t[n]}return t.length/e}},function(t,e,n){var r=n(118);t.exports=function(t){return r(t,.5)}},function(t,e){t.exports=function(t,e,n){return(t*e-n)/(e-1)}},function(t,e){t.exports=function(t){if(0===t.length)throw new Error("rootMeanSquare requires at least one data point");for(var e=0,n=0;n<t.length;n++)e+=Math.pow(t[n],2);return Math.sqrt(e/t.length)}},function(t,e,n){var r=n(224),i=n(24);t.exports=function(t,e){return(i(t)-e)/(r(t)/Math.sqrt(t.length))}},function(t,e,n){var f=n(24),l=n(119);t.exports=function(t,e,n){var r=t.length,i=e.length;if(!r||!i)return null;n||(n=0);var o=f(t),a=f(e),u=l(t),c=l(e);if("number"==typeof o&&"number"==typeof a&&"number"==typeof u&&"number"==typeof c){var s=((r-1)*u+(i-1)*c)/(r+i-2);return(o-a-n)/Math.sqrt(s*(1/r+1/i))}}},function(t,e){function n(){this.totalCount=0,this.data={}}n.prototype.train=function(t,e){for(var n in this.data[e]||(this.data[e]={}),t){var r=t[n];void 0===this.data[e][n]&&(this.data[e][n]={}),void 0===this.data[e][n][r]&&(this.data[e][n][r]=0),this.data[e][n][r]++}this.totalCount++},n.prototype.score=function(t){var e,n={};for(var r in t){var i=t[r];for(e in this.data)n[e]={},this.data[e][r]?n[e][r+"_"+i]=(this.data[e][r][i]||0)/this.totalCount:n[e][r+"_"+i]=0}var o={};for(e in n)for(var a in o[e]=0,n[e])o[e]+=n[e][a];return o},t.exports=n},function(t,e){function n(){this.weights=[],this.bias=0}n.prototype.predict=function(t){if(t.length!==this.weights.length)return null;for(var e=0,n=0;n<this.weights.length;n++)e+=this.weights[n]*t[n];return 0<(e+=this.bias)?1:0},n.prototype.train=function(t,e){if(0!==e&&1!==e)return null;t.length!==this.weights.length&&(this.weights=t,this.bias=1);var n=this.predict(t);if(n!==e){for(var r=e-n,i=0;i<this.weights.length;i++)this.weights[i]+=r*t[i];this.bias+=r}return this},t.exports=n},function(t,e){t.exports=function(t){if(t<0)throw new Error("factorial requires a non-negative value");if(Math.floor(t)!==t)throw new Error("factorial requires an integer input");for(var e=1,n=2;n<=t;n++)e*=n;return e}},function(t,e){t.exports=function(t){if(t<0||1<t)throw new Error("bernoulliDistribution requires probability to be between 0 and 1 inclusive");return[1-t,t]}},function(t,e,n){var a=n(73);t.exports=function(t,e){if(!(e<0||1<e||t<=0||t%1!=0)){for(var n=0,r=0,i=[],o=1;i[n]=o*Math.pow(e,n)*Math.pow(1-e,t-n),r+=i[n],o=o*(t-++n+1)/n,r<1-a;);return i}}},function(t,e,n){var o=n(73);t.exports=function(t){if(!(t<=0)){for(var e=0,n=0,r=[],i=1;r[e]=Math.exp(-t)*Math.pow(t,e)/i,n+=r[e],i*=++e,n<1-o;);return r}}},function(t,e,n){var f=n(24),l=n(577);t.exports=function(t,e,n){for(var r,i,o=0,a=e(f(t)),u=[],c=[],s=0;s<t.length;s++)void 0===u[t[s]]&&(u[t[s]]=0),u[t[s]]++;for(s=0;s<u.length;s++)void 0===u[s]&&(u[s]=0);for(i in a)i in u&&(c[+i]=a[i]*t.length);for(i=c.length-1;0<=i;i--)c[i]<3&&(c[i-1]+=c[i],c.pop(),u[i-1]+=u[i],u.pop());for(i=0;i<u.length;i++)o+=Math.pow(u[i]-c[i],2)/c[i];return r=u.length-1-1,l[r][n]<o}},function(t,e){t.exports={1:{.995:0,.99:0,.975:0,.95:0,.9:.02,.5:.45,.1:2.71,.05:3.84,.025:5.02,.01:6.63,.005:7.88},2:{.995:.01,.99:.02,.975:.05,.95:.1,.9:.21,.5:1.39,.1:4.61,.05:5.99,.025:7.38,.01:9.21,.005:10.6},3:{.995:.07,.99:.11,.975:.22,.95:.35,.9:.58,.5:2.37,.1:6.25,.05:7.81,.025:9.35,.01:11.34,.005:12.84},4:{.995:.21,.99:.3,.975:.48,.95:.71,.9:1.06,.5:3.36,.1:7.78,.05:9.49,.025:11.14,.01:13.28,.005:14.86},5:{.995:.41,.99:.55,.975:.83,.95:1.15,.9:1.61,.5:4.35,.1:9.24,.05:11.07,.025:12.83,.01:15.09,.005:16.75},6:{.995:.68,.99:.87,.975:1.24,.95:1.64,.9:2.2,.5:5.35,.1:10.65,.05:12.59,.025:14.45,.01:16.81,.005:18.55},7:{.995:.99,.99:1.25,.975:1.69,.95:2.17,.9:2.83,.5:6.35,.1:12.02,.05:14.07,.025:16.01,.01:18.48,.005:20.28},8:{.995:1.34,.99:1.65,.975:2.18,.95:2.73,.9:3.49,.5:7.34,.1:13.36,.05:15.51,.025:17.53,.01:20.09,.005:21.96},9:{.995:1.73,.99:2.09,.975:2.7,.95:3.33,.9:4.17,.5:8.34,.1:14.68,.05:16.92,.025:19.02,.01:21.67,.005:23.59},10:{.995:2.16,.99:2.56,.975:3.25,.95:3.94,.9:4.87,.5:9.34,.1:15.99,.05:18.31,.025:20.48,.01:23.21,.005:25.19},11:{.995:2.6,.99:3.05,.975:3.82,.95:4.57,.9:5.58,.5:10.34,.1:17.28,.05:19.68,.025:21.92,.01:24.72,.005:26.76},12:{.995:3.07,.99:3.57,.975:4.4,.95:5.23,.9:6.3,.5:11.34,.1:18.55,.05:21.03,.025:23.34,.01:26.22,.005:28.3},13:{.995:3.57,.99:4.11,.975:5.01,.95:5.89,.9:7.04,.5:12.34,.1:19.81,.05:22.36,.025:24.74,.01:27.69,.005:29.82},14:{.995:4.07,.99:4.66,.975:5.63,.95:6.57,.9:7.79,.5:13.34,.1:21.06,.05:23.68,.025:26.12,.01:29.14,.005:31.32},15:{.995:4.6,.99:5.23,.975:6.27,.95:7.26,.9:8.55,.5:14.34,.1:22.31,.05:25,.025:27.49,.01:30.58,.005:32.8},16:{.995:5.14,.99:5.81,.975:6.91,.95:7.96,.9:9.31,.5:15.34,.1:23.54,.05:26.3,.025:28.85,.01:32,.005:34.27},17:{.995:5.7,.99:6.41,.975:7.56,.95:8.67,.9:10.09,.5:16.34,.1:24.77,.05:27.59,.025:30.19,.01:33.41,.005:35.72},18:{.995:6.26,.99:7.01,.975:8.23,.95:9.39,.9:10.87,.5:17.34,.1:25.99,.05:28.87,.025:31.53,.01:34.81,.005:37.16},19:{.995:6.84,.99:7.63,.975:8.91,.95:10.12,.9:11.65,.5:18.34,.1:27.2,.05:30.14,.025:32.85,.01:36.19,.005:38.58},20:{.995:7.43,.99:8.26,.975:9.59,.95:10.85,.9:12.44,.5:19.34,.1:28.41,.05:31.41,.025:34.17,.01:37.57,.005:40},21:{.995:8.03,.99:8.9,.975:10.28,.95:11.59,.9:13.24,.5:20.34,.1:29.62,.05:32.67,.025:35.48,.01:38.93,.005:41.4},22:{.995:8.64,.99:9.54,.975:10.98,.95:12.34,.9:14.04,.5:21.34,.1:30.81,.05:33.92,.025:36.78,.01:40.29,.005:42.8},23:{.995:9.26,.99:10.2,.975:11.69,.95:13.09,.9:14.85,.5:22.34,.1:32.01,.05:35.17,.025:38.08,.01:41.64,.005:44.18},24:{.995:9.89,.99:10.86,.975:12.4,.95:13.85,.9:15.66,.5:23.34,.1:33.2,.05:36.42,.025:39.36,.01:42.98,.005:45.56},25:{.995:10.52,.99:11.52,.975:13.12,.95:14.61,.9:16.47,.5:24.34,.1:34.28,.05:37.65,.025:40.65,.01:44.31,.005:46.93},26:{.995:11.16,.99:12.2,.975:13.84,.95:15.38,.9:17.29,.5:25.34,.1:35.56,.05:38.89,.025:41.92,.01:45.64,.005:48.29},27:{.995:11.81,.99:12.88,.975:14.57,.95:16.15,.9:18.11,.5:26.34,.1:36.74,.05:40.11,.025:43.19,.01:46.96,.005:49.65},28:{.995:12.46,.99:13.57,.975:15.31,.95:16.93,.9:18.94,.5:27.34,.1:37.92,.05:41.34,.025:44.46,.01:48.28,.005:50.99},29:{.995:13.12,.99:14.26,.975:16.05,.95:17.71,.9:19.77,.5:28.34,.1:39.09,.05:42.56,.025:45.72,.01:49.59,.005:52.34},30:{.995:13.79,.99:14.95,.975:16.79,.95:18.49,.9:20.6,.5:29.34,.1:40.26,.05:43.77,.025:46.98,.01:50.89,.005:53.67},40:{.995:20.71,.99:22.16,.975:24.43,.95:26.51,.9:29.05,.5:39.34,.1:51.81,.05:55.76,.025:59.34,.01:63.69,.005:66.77},50:{.995:27.99,.99:29.71,.975:32.36,.95:34.76,.9:37.69,.5:49.33,.1:63.17,.05:67.5,.025:71.42,.01:76.15,.005:79.49},60:{.995:35.53,.99:37.48,.975:40.48,.95:43.19,.9:46.46,.5:59.33,.1:74.4,.05:79.08,.025:83.3,.01:88.38,.005:91.95},70:{.995:43.28,.99:45.44,.975:48.76,.95:51.74,.9:55.33,.5:69.33,.1:85.53,.05:90.53,.025:95.02,.01:100.42,.005:104.22},80:{.995:51.17,.99:53.54,.975:57.15,.95:60.39,.9:64.28,.5:79.33,.1:96.58,.05:101.88,.025:106.63,.01:112.33,.005:116.32},90:{.995:59.2,.99:61.75,.975:65.65,.95:69.13,.9:73.29,.5:89.33,.1:107.57,.05:113.14,.025:118.14,.01:124.12,.005:128.3},100:{.995:67.33,.99:70.06,.975:74.22,.95:77.93,.9:82.36,.5:99.33,.1:118.5,.05:124.34,.025:129.56,.01:135.81,.005:140.17}}},function(t,e){t.exports=function(t,e,n){return(t-e)/n}},function(t,e,n){var r=n(238);t.exports=function(t){var e=Math.abs(t),n=Math.min(Math.round(100*e),r.length-1);return 0<=t?r[n]:+(1-r[n]).toFixed(4)}},function(t,e){t.exports=function(t){var e=1/(1+.5*Math.abs(t)),n=e*Math.exp(-Math.pow(t,2)-1.26551223+1.00002368*e+.37409196*Math.pow(e,2)+.09678418*Math.pow(e,3)-.18628806*Math.pow(e,4)+.27886807*Math.pow(e,5)-1.13520398*Math.pow(e,6)+1.48851587*Math.pow(e,7)-.82215223*Math.pow(e,8)+.17087277*Math.pow(e,9));return 0<=t?1-n:n-1}},function(t,e,n){var r=n(73),i=n(239);t.exports=function(t){return 0===t?t=r:1<=t&&(t=1-r),Math.sqrt(2)*i(2*t-1)}},function(t,e,n){var u=n(583);t.exports=function(t,e,n,r,i){if("function"!=typeof t)throw new TypeError("func must be a function");for(var o=0;o<r;o++){var a=(e+n)/2;if(0===t(a)||Math.abs((n-e)/2)<i)return a;u(t(a))===u(t(e))?e=a:n=a}throw new Error("maximum number of iterations exceeded")}},function(t,e){t.exports=function(t){if("number"==typeof t)return t<0?-1:0===t?0:1;throw new TypeError("not a number")}},function(t,e,n){var r=n(8),i=n(70);(0,n(2).registerConnector)("default",function(t,e){if(r(t)&&(t=e.getView(t)),!t)throw new TypeError("Invalid dataView");return i(t.rows)})},function(t,e,n){var r=n(201),i=0;t.exports=function(t){var e=++i;return r(t)+e}},function(t,e,n){var r=n(8),i=n(587),o=i.dsvFormat,a=i.csvParse,u=i.tsvParse,c=n(2).registerConnector;c("dsv",function(t){var e=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).delimiter||",";if(!r(e))throw new TypeError("Invalid delimiter: must be a string!");return o(e).parse(t)}),c("csv",function(t){return a(t)}),c("tsv",function(t){return u(t)})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(121);n.d(e,"dsvFormat",function(){return r.a});var i=n(588);n.d(e,"csvParse",function(){return i.c}),n.d(e,"csvParseRows",function(){return i.d}),n.d(e,"csvFormat",function(){return i.a}),n.d(e,"csvFormatRows",function(){return i.b});var o=n(589);n.d(e,"tsvParse",function(){return o.c}),n.d(e,"tsvParseRows",function(){return o.d}),n.d(e,"tsvFormat",function(){return o.a}),n.d(e,"tsvFormatRows",function(){return o.b})},function(t,e,n){"use strict";n.d(e,"c",function(){return o}),n.d(e,"d",function(){return a}),n.d(e,"a",function(){return u}),n.d(e,"b",function(){return c});var r=n(121),i=Object(r.a)(","),o=i.parse,a=i.parseRows,u=i.format,c=i.formatRows},function(t,e,n){"use strict";n.d(e,"c",function(){return o}),n.d(e,"d",function(){return a}),n.d(e,"a",function(){return u}),n.d(e,"b",function(){return c});var r=n(121),i=Object(r.a)("\t"),o=i.parse,a=i.parseRows,u=i.format,c=i.formatRows},function(t,e,n){var r=n(0).geoGraticule;function i(t,e){e.dataType="geo-graticule";var n=r().lines();return n.map(function(t,e){return t.index=""+e,t}),e.rows=n}(0,n(2).registerConnector)("geo-graticule",i),t.exports=i},function(t,e){t.exports=function(t){var o=[];return t.replace(n,function(t,e,n){var r,i=e.toLowerCase();for(n=(r=n.match(u))?r.map(Number):[],"m"==i&&2<n.length&&(o.push([e].concat(n.splice(0,2))),i="l",e="m"==e?"l":"L");;){if(n.length==a[i])return n.unshift(e),o.push(n);if(n.length<a[i])throw new Error("malformed path data");o.push([e].concat(n.splice(0,a[i])))}}),o};var a={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},n=/([astvzqmhlc])([^astvzqmhlc]*)/gi;var u=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi},function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},function(t,e){t.exports=function(t){var i=0,o=0,a=0,u=0;return t.map(function(t){var e=(t=t.slice())[0],n=e.toUpperCase();if(e!=n)switch(t[0]=n,e){case"a":t[6]+=a,t[7]+=u;break;case"v":t[1]+=u;break;case"h":t[1]+=a;break;default:for(var r=1;r<t.length;)t[r++]+=a,t[r++]+=u}switch(n){case"Z":a=i,u=o;break;case"H":a=t[1];break;case"V":u=t[1];break;case"M":a=i=t[1],u=o=t[2];break;default:a=t[t.length-2],u=t[t.length-1]}return t})}},function(t,e,n){var a=n(3),u=n(11),r=n(2),c=r.GRAPH,i=r.registerConnector,s={nodes:function(t){return t.nodes},edges:function(t){return t.edges}};function o(t,e,n){e=a({},s,e),n.dataType=c;var r=e,i=r.nodes,o=r.edges;if(i&&!u(i))throw new TypeError("Invalid nodes: must be a function!");if(o&&!u(o))throw new TypeError("Invalid edges: must be a function!");return n.rows=n.graph={nodes:i(t),edges:o(t)},a(n,n.graph),n.rows}i("graph",o),i("diagram",o)},function(t,e,n){var s=n(3),f=n(70),r=n(596),l=r.getGridForHexJSON,h=r.renderHexJSON,i=n(2),p=i.HEX,o=i.registerConnector,v={width:1,height:1};function g(e){return e.cx=e.x,e.cy=e.y,e.x=[],e.y=[],e.vertices.forEach(function(t){e.x.push(t.x+e.cx),e.y.push(t.y+e.cy)}),e}function a(t,e,n){n.dataType=p;var r=e=s({},v,e),i=r.width,o=r.height,a=f(t);n._HexJSON=a;var u=n._GridHexJSON=l(a),c=n.rows=h(a,i,o).map(g);return n._gridRows=h(u,i,o).map(g),c}o("hex",a),o("hexjson",a),o("hex-json",a),o("HexJSON",a),t.exports=a},function(t,e,n){var r,i,o,a,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};a=function(t,d){"use strict";t.renderHexJSON=function(e,t,n){var r=e.layout,i=[],o=0;Object.keys(e.hexes).forEach(function(t){e.hexes[t].key=t,i.push(e.hexes[t])});var a,u=d.max(i,function(t){return+t.q}),c=d.min(i,function(t){return+t.q}),s=d.max(i,function(t){return+t.r}),f=d.min(i,function(t){return+t.r}),l=u-c+1,h=s-f+1,p=(o="odd-r"===r||"even-r"===r?d.min([t/((l+.5)*Math.sqrt(3)),n/(1.5*(h+1/3))]):d.min([n/((h+.5)*Math.sqrt(3)),t/(1.5*(l+1/3))]))*Math.sqrt(3),v=function(t,e,n){var r=[];switch(t){case"odd-r":case"even-r":r.push({x:0,y:0-n}),r.push({x:0+.5*e,y:0-.5*n}),r.push({x:0+.5*e,y:0+.5*n}),r.push({x:0,y:0+n}),r.push({x:0-.5*e,y:0+.5*n}),r.push({x:0-.5*e,y:0-.5*n});break;case"odd-q":case"even-q":r.push({x:0-n,y:0}),r.push({x:0-.5*n,y:0-.5*e}),r.push({x:0+.5*n,y:0-.5*e}),r.push({x:0+n,y:0}),r.push({x:0+.5*n,y:0+.5*e}),r.push({x:0-.5*n,y:0+.5*e})}return r}(r,p,o),g=(a="",v.forEach(function(t){a+=t.x+","+t.y+" "}),a.substring(0,a.length-1));return i.forEach(function(t){t.qc=t.q-c,t.rc=s-t.r,t.x=function(t,e,n,r){var i=0,o=0;switch(e){case"odd-r":o=t.rc%2==1?n:n/2,i=t.qc*n+o;break;case"even-r":o=t.rc%2==0?n:n/2,i=t.qc*n+o;break;case"odd-q":case"even-q":i=t.qc*r*1.5+r}return i}(t,r,p,o),t.y=function(t,e,n,r){var i=0,o=0;switch(e){case"odd-r":case"even-r":i=t.rc*r*1.5+r;break;case"odd-q":o=t.qc%2==1?n:n/2,i=t.rc*n+o;break;case"even-q":o=t.qc%2==0?n:n/2,i=t.rc*n+o}return i}(t,r,p,o),t.vertices=v,t.points=g}),i},t.getGridForHexJSON=function(e){var t={};t.layout=e.layout,t.hexes={};var n=[];Object.keys(e.hexes).forEach(function(t){n.push(e.hexes[t])});var r,i,o,a=d.max(n,function(t){return+t.q}),u=d.min(n,function(t){return+t.q}),c=d.max(n,function(t){return+t.r}),s=d.min(n,function(t){return+t.r});for(r=u;r<=a;r++)for(i=s;i<=c;i++)o="Q"+r+"R"+i,t.hexes[o]={q:r,r:i};return t},Object.defineProperty(t,"__esModule",{value:!0})},"object"===u(e)&&void 0!==t?a(e,n(12)):(i=[e,n(12)],void 0===(o="function"==typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){var i=n(11),o=n(36).hierarchy,r=n(2),a=r.HIERARCHY,u=r.registerConnector;function c(t,e,n){n.dataType=a;var r=e&&e.children?e.children:null;if(r&&!i(r))throw new TypeError("Invalid children: must be a function!");return e.pureData?n.rows=n.root=t:n.rows=n.root=o(t,r),t}u("hierarchy",c),u("tree",c)},function(t,e,n){"use strict";function r(t,e){return t.parent===e.parent?1:2}function l(t,e){return t+e.x}function h(t,e){return Math.max(t,e.y)}e.a=function(){var u=r,c=1,s=1,f=!1;function e(e){var r,i=0;e.eachAfter(function(t){var e,n=t.children;n?(t.x=(e=n).reduce(l,0)/e.length,t.y=1+n.reduce(h,0)):(t.x=r?i+=u(t,r):0,t.y=0,r=t)});var t=function(t){for(var e;e=t.children;)t=e[0];return t}(e),n=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(e),o=t.x-u(t,n)/2,a=n.x+u(n,t)/2;return e.eachAfter(f?function(t){t.x=(t.x-e.x)*c,t.y=(e.y-t.y)*s}:function(t){t.x=(t.x-o)/(a-o)*c,t.y=(1-(e.y?t.y/e.y:1))*s})}return e.separation=function(t){return arguments.length?(u=t,e):u},e.size=function(t){return arguments.length?(f=!1,c=+t[0],s=+t[1],e):f?null:[c,s]},e.nodeSize=function(t){return arguments.length?(f=!0,c=+t[0],s=+t[1],e):f?[c,s]:null},e}},function(t,e,n){"use strict";function r(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;0<=--r;)e+=n[r].value;else e=1;t.value=e}e.a=function(){return this.eachAfter(r)}},function(t,e,n){"use strict";e.a=function(t){var e,n,r,i,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(t(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r])}while(a.length);return this}},function(t,e,n){"use strict";e.a=function(t){for(var e,n,r=this,i=[r];r=i.pop();)if(t(r),e=r.children)for(n=e.length-1;0<=n;--n)i.push(e[n]);return this}},function(t,e,n){"use strict";e.a=function(t){for(var e,n,r,i=this,o=[i],a=[];i=o.pop();)if(a.push(i),e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n]);for(;i=a.pop();)t(i);return this}},function(t,e,n){"use strict";e.a=function(i){return this.eachAfter(function(t){for(var e=+i(t.data)||0,n=t.children,r=n&&n.length;0<=--r;)e+=n[r].value;t.value=e})}},function(t,e,n){"use strict";e.a=function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}},function(t,e,n){"use strict";e.a=function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();for(;t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r}},function(t,e,n){"use strict";e.a=function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}},function(t,e,n){"use strict";e.a=function(){var e=[];return this.each(function(t){e.push(t)}),e}},function(t,e,n){"use strict";e.a=function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}},function(t,e,n){"use strict";e.a=function(){var e=this,n=[];return e.each(function(t){t!==e&&n.push({source:t.parent,target:t})}),n}},function(t,e,n){"use strict";var c=n(244),a=n(123),u=n(246);function s(t){return Math.sqrt(t.value)}function f(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function l(a,u){return function(t){if(e=t.children){var e,n,r,i=e.length,o=a(t)*u||0;if(o)for(n=0;n<i;++n)e[n].r+=o;if(r=Object(c.b)(e),o)for(n=0;n<i;++n)e[n].r-=o;t.r=r+o}}}function h(n){return function(t){var e=t.parent;t.r*=n,e&&(t.x=e.x+n*t.x,t.y=e.y+n*t.y)}}e.a=function(){var e=null,n=1,r=1,i=u.a;function o(t){return t.x=n/2,t.y=r/2,e?t.eachBefore(f(e)).eachAfter(l(i,.5)).eachBefore(h(1)):t.eachBefore(f(s)).eachAfter(l(u.a,1)).eachAfter(l(i,t.r/Math.min(n,r))).eachBefore(h(Math.min(n,r)/(2*t.r))),t}return o.radius=function(t){return arguments.length?(e=Object(a.a)(t),o):e},o.size=function(t){return arguments.length?(n=+t[0],r=+t[1],o):[n,r]},o.padding=function(t){return arguments.length?(i="function"==typeof t?t:Object(u.b)(+t),o):i},o}},function(t,e,n){"use strict";n.d(e,"b",function(){return r}),e.a=function(t){var e,n,r=t.length;for(;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t};var r=Array.prototype.slice},function(t,e,n){"use strict";var c=n(247),s=n(52);e.a=function(){var n=1,r=1,u=0,i=!1;function e(t){var o,a,e=t.height+1;return t.x0=t.y0=u,t.x1=n,t.y1=r/e,t.eachBefore((o=r,a=e,function(t){t.children&&Object(s.a)(t,t.x0,o*(t.depth+1)/a,t.x1,o*(t.depth+2)/a);var e=t.x0,n=t.y0,r=t.x1-u,i=t.y1-u;r<e&&(e=r=(e+r)/2),i<n&&(n=i=(n+i)/2),t.x0=e,t.y0=n,t.x1=r,t.y1=i})),i&&t.eachBefore(c.a),t}return e.round=function(t){return arguments.length?(i=!!t,e):i},e.size=function(t){return arguments.length?(n=+t[0],r=+t[1],e):[n,r]},e.padding=function(t){return arguments.length?(u=+t,e):u},e}},function(t,e,n){"use strict";var r=n(123),p=n(122),v="$",g={depth:-1},d={};function i(t){return t.id}function o(t){return t.parentId}e.a=function(){var l=i,h=o;function e(t){var e,n,r,i,o,a,u,c=t.length,s=new Array(c),f={};for(n=0;n<c;++n)e=t[n],o=s[n]=new p.a(e),null!=(a=l(e,n,t))&&(a+="")&&(f[u=v+(o.id=a)]=u in f?d:o);for(n=0;n<c;++n)if(o=s[n],null!=(a=h(t[n],n,t))&&(a+="")){if(!(i=f[v+a]))throw new Error("missing: "+a);if(i===d)throw new Error("ambiguous: "+a);i.children?i.children.push(o):i.children=[o],o.parent=i}else{if(r)throw new Error("multiple roots");r=o}if(!r)throw new Error("no root");if(r.parent=g,r.eachBefore(function(t){t.depth=t.parent.depth+1,--c}).eachBefore(p.b),r.parent=null,0<c)throw new Error("cycle");return r}return e.id=function(t){return arguments.length?(l=Object(r.b)(t),e):l},e.parentId=function(t){return arguments.length?(h=Object(r.b)(t),e):h},e}},function(t,e,n){"use strict";var r=n(122);function i(t,e){return t.parent===e.parent?1:2}function x(t){var e=t.children;return e?e[0]:t.t}function j(t){var e=t.children;return e?e[e.length-1]:t.t}function g(t,e){this._=t,this.parent=null,this.children=null,this.A=null,(this.a=this).z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}g.prototype=Object.create(r.a.prototype),e.a=function(){var m=i,s=1,f=1,l=null;function e(t){var e=function(t){for(var e,n,r,i,o,a=new g(t,0),u=[a];e=u.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;0<=i;--i)u.push(n=e.children[i]=new g(r[i],i)),n.parent=e;return(a.parent=new g(null,0)).children=[a],a}(t);if(e.eachAfter(h),e.parent.m=-e.z,e.eachBefore(p),l)t.eachBefore(v);else{var n=t,r=t,i=t;t.eachBefore(function(t){t.x<n.x&&(n=t),t.x>r.x&&(r=t),t.depth>i.depth&&(i=t)});var o=n===r?1:m(n,r)/2,a=o-n.x,u=s/(r.x+o+a),c=f/(i.depth||1);t.eachBefore(function(t){t.x=(t.x+a)*u,t.y=t.depth*c})}return t}function h(t){var e=t.children,n=t.parent.children,r=t.i?n[t.i-1]:null;if(e){!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;0<=--o;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(t);var i=(e[0].z+e[e.length-1].z)/2;r?(t.z=r.z+m(t._,r._),t.m=t.z-i):t.z=i}else r&&(t.z=r.z+m(t._,r._));t.parent.A=function(t,e,n){if(e){for(var r,i=t,o=t,a=e,u=i.parent.children[0],c=i.m,s=o.m,f=a.m,l=u.m;a=j(a),i=x(i),a&&i;)u=x(u),(o=j(o)).a=t,0<(r=a.z+f-i.z-c+m(a._,i._))&&(y=t,b=n,h=(d=a).a.parent===y.parent?d.a:b,void 0,g=(v=r)/((p=t).i-h.i),p.c-=g,p.s+=v,h.c+=g,p.z+=v,p.m+=v,c+=r,s+=r),f+=a.m,c+=i.m,l+=u.m,s+=o.m;a&&!j(o)&&(o.t=a,o.m+=f-s),i&&!x(u)&&(u.t=i,u.m+=c-l,n=t)}var h,p,v,g;var d,y,b;return n}(t,r,t.parent.A||n[0])}function p(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function v(t){t.x*=s,t.y=t.depth*f}return e.separation=function(t){return arguments.length?(m=t,e):m},e.size=function(t){return arguments.length?(l=!1,s=+t[0],f=+t[1],e):l?null:[s,f]},e.nodeSize=function(t){return arguments.length?(l=!0,s=+t[0],f=+t[1],e):l?[s,f]:null},e}},function(t,e,n){"use strict";var p=n(247),v=n(124),g=n(123),d=n(246);e.a=function(){var a=v.a,e=!1,n=1,r=1,u=[0],c=d.a,s=d.a,f=d.a,l=d.a,h=d.a;function i(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(o),u=[0],e&&t.eachBefore(p.a),t}function o(t){var e=u[t.depth],n=t.x0+e,r=t.y0+e,i=t.x1-e,o=t.y1-e;i<n&&(n=i=(n+i)/2),o<r&&(r=o=(r+o)/2),t.x0=n,t.y0=r,t.x1=i,t.y1=o,t.children&&(e=u[t.depth+1]=c(t)/2,n+=h(t)-e,r+=s(t)-e,(i-=f(t)-e)<n&&(n=i=(n+i)/2),(o-=l(t)-e)<r&&(r=o=(r+o)/2),a(t,n,r,i,o))}return i.round=function(t){return arguments.length?(e=!!t,i):e},i.size=function(t){return arguments.length?(n=+t[0],r=+t[1],i):[n,r]},i.tile=function(t){return arguments.length?(a=Object(g.b)(t),i):a},i.padding=function(t){return arguments.length?i.paddingInner(t).paddingOuter(t):i.paddingInner()},i.paddingInner=function(t){return arguments.length?(c="function"==typeof t?t:Object(d.b)(+t),i):c},i.paddingOuter=function(t){return arguments.length?i.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):i.paddingTop()},i.paddingTop=function(t){return arguments.length?(s="function"==typeof t?t:Object(d.b)(+t),i):s},i.paddingRight=function(t){return arguments.length?(f="function"==typeof t?t:Object(d.b)(+t),i):f},i.paddingBottom=function(t){return arguments.length?(l="function"==typeof t?t:Object(d.b)(+t),i):l},i.paddingLeft=function(t){return arguments.length?(h="function"==typeof t?t:Object(d.b)(+t),i):h},i}},function(t,e,n){"use strict";e.a=function(t,e,n,r,i){var o,a,b=t.children,u=b.length,m=new Array(u+1);for(m[0]=a=o=0;o<u;++o)m[o+1]=a+=b[o].value;!function t(e,n,r,i,o,a,u){if(n-1<=e){var c=b[e];return c.x0=i,c.y0=o,c.x1=a,void(c.y1=u)}var s=m[e],f=r/2+s,l=e+1,h=n-1;for(;l<h;){var p=l+h>>>1;m[p]<f?l=p+1:h=p}f-m[l-1]<m[l]-f&&e+1<l&&--l;var v=m[l]-s,g=r-v;if(u-o<a-i){var d=(i*g+a*v)/r;t(e,l,v,i,o,d,u),t(l,n,g,d,o,a,u)}else{var y=(o*g+u*v)/r;t(e,l,v,i,o,a,y),t(l,n,g,i,y,a,u)}}(0,u,t.value,e,n,r,i)}},function(t,e,n){"use strict";var o=n(52),a=n(74);e.a=function(t,e,n,r,i){(1&t.depth?a.a:o.a)(t,e,n,r,i)}},function(t,e,n){"use strict";var v=n(52),g=n(74),d=n(124);e.a=function e(p){function t(t,e,n,r,i){if((o=t._squarify)&&o.ratio===p)for(var o,a,u,c,s,f=-1,l=o.length,h=t.value;++f<l;){for(u=(a=o[f]).children,c=a.value=0,s=u.length;c<s;++c)a.value+=u[c].value;a.dice?Object(v.a)(a,e,n,r,n+=(i-n)*a.value/h):Object(g.a)(a,e,n,e+=(r-e)*a.value/h,i),h-=a.value}else t._squarify=o=Object(d.c)(p,t,e,n,r,i),o.ratio=p}return t.ratio=function(t){return e(1<(t=+t)?t:1)},t}(d.b)},function(t,e,n){var o=n(8),a=n(620).feature,u=n(242),r=n(2).registerConnector;function i(t,e,n){var r=e.object;if(!o(r))throw new TypeError("Invalid object: must be a string!");var i=a(t,t.objects[r]);return u(i,e,n)}r("topojson",i),r("TopoJSON",i)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(248);n.d(e,"bbox",function(){return r.a});var i=n(126);n.d(e,"feature",function(){return i.a});var o=n(622);n.d(e,"mesh",function(){return o.a}),n.d(e,"meshArcs",function(){return o.b});var a=n(623);n.d(e,"merge",function(){return a.a}),n.d(e,"mergeArcs",function(){return a.b});var u=n(624);n.d(e,"neighbors",function(){return u.a});var c=n(626);n.d(e,"quantize",function(){return c.a});var s=n(125);n.d(e,"transform",function(){return s.a});var f=n(251);n.d(e,"untransform",function(){return f.a})},function(t,e,n){"use strict";e.a=function(t,e){for(var n,r=t.length,i=r-e;i<--r;)n=t[i],t[i++]=t[r],t[r]=n}},function(t,e,n){"use strict";e.b=i;var r=n(126),a=n(250);function i(t,e,n){var r,i,o;if(1<arguments.length)r=function(t,e,n){var r,i=[],o=[];function a(t){var e=t<0?~t:t;(o[e]||(o[e]=[])).push({i:t,g:r})}function u(t){t.forEach(a)}function c(t){t.forEach(u)}return function t(e){switch((r=e).type){case"GeometryCollection":e.geometries.forEach(t);break;case"LineString":u(e.arcs);break;case"MultiLineString":case"Polygon":c(e.arcs);break;case"MultiPolygon":e.arcs.forEach(c)}}(e),o.forEach(null==n?function(t){i.push(t[0].i)}:function(t){n(t[0].g,t[t.length-1].g)&&i.push(t[0].i)}),i}(0,e,n);else for(i=0,r=new Array(o=t.arcs.length);i<o;++i)r[i]=i;return{type:"MultiLineString",arcs:Object(a.a)(t,r)}}e.a=function(t){return Object(r.b)(t,i.apply(this,arguments))}},function(t,e,n){"use strict";e.b=r;var o=n(126),f=n(250);function r(u,t){var c={},n=[],r=[];function i(e){e.forEach(function(t){t.forEach(function(t){(c[t=t<0?~t:t]||(c[t]=[])).push(e)})}),n.push(e)}function s(t){return function(t){for(var e,n=-1,r=t.length,i=t[r-1],o=0;++n<r;)e=i,i=t[n],o+=e[0]*i[1]-e[1]*i[0];return Math.abs(o)}(Object(o.b)(u,{type:"Polygon",arcs:[t]}).coordinates[0])}return t.forEach(function t(e){switch(e.type){case"GeometryCollection":e.geometries.forEach(t);break;case"Polygon":i(e.arcs);break;case"MultiPolygon":e.arcs.forEach(i)}}),n.forEach(function(t){if(!t._){var e=[],n=[t];for(t._=1,r.push(e);t=n.pop();)e.push(t),t.forEach(function(t){t.forEach(function(t){c[t<0?~t:t].forEach(function(t){t._||(t._=1,n.push(t))})})})}}),n.forEach(function(t){delete t._}),{type:"MultiPolygon",arcs:r.map(function(t){var e,n=[];if(t.forEach(function(t){t.forEach(function(t){t.forEach(function(t){c[t<0?~t:t].length<2&&n.push(t)})})}),1<(e=(n=Object(f.a)(u,n)).length))for(var r,i,o=1,a=s(n[0]);o<e;++o)(r=s(n[o]))>a&&(i=n[0],n[0]=n[o],n[o]=i,a=r);return n})}}e.a=function(t){return Object(o.b)(t,r.apply(this,arguments))}},function(t,e,n){"use strict";var v=n(625);e.a=function(t){var r={},e=t.map(function(){return[]});function n(t,n){t.forEach(function(t){t<0&&(t=~t);var e=r[t];e?e.push(n):r[t]=[n]})}function i(t,e){t.forEach(function(t){n(t,e)})}var o={LineString:n,MultiLineString:i,Polygon:i,MultiPolygon:function(t,e){t.forEach(function(t){i(t,e)})}};for(var a in t.forEach(function e(t,n){"GeometryCollection"===t.type?t.geometries.forEach(function(t){e(t,n)}):t.type in o&&o[t.type](t.arcs,n)}),r)for(var u=r[a],c=u.length,s=0;s<c;++s)for(var f=s+1;f<c;++f){var l,h=u[s],p=u[f];(l=e[h])[a=Object(v.a)(l,p)]!==p&&l.splice(a,0,p),(l=e[p])[a=Object(v.a)(l,h)]!==h&&l.splice(a,0,h)}return e}},function(t,e,n){"use strict";e.a=function(t,e){for(var n=0,r=t.length;n<r;){var i=n+r>>>1;t[i]<e?n=i+1:r=i}return n}},function(t,e,n){"use strict";var v=n(248),g=n(251);e.a=function(t,e){if(t.transform)throw new Error("already quantized");if(e&&e.scale)u=t.bbox;else{if(!(2<=(n=Math.floor(e))))throw new Error("n must be ≥2");var n,r=(u=t.bbox||Object(v.a)(t))[0],i=u[1],o=u[2],a=u[3];e={scale:[o-r?(o-r)/(n-1):1,a-i?(a-i)/(n-1):1],translate:[r,i]}}var u,c,s=Object(g.a)(e),f=t.objects,l={};function h(t){return s(t)}function p(t){var e;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(p)};break;case"Point":e={type:"Point",coordinates:h(t.coordinates)};break;case"MultiPoint":e={type:"MultiPoint",coordinates:t.coordinates.map(h)};break;default:return t}return null!=t.id&&(e.id=t.id),null!=t.bbox&&(e.bbox=t.bbox),null!=t.properties&&(e.properties=t.properties),e}for(c in f)l[c]=p(f[c]);return{type:"Topology",bbox:u,transform:e,objects:l,arcs:t.arcs.map(function(t){var e,n=0,r=1,i=t.length,o=new Array(i);for(o[0]=s(t[0],0);++n<i;)((e=s(t[n],n))[0]||e[1])&&(o[r++]=e);return 1===r&&(o[r++]=[0,0]),o.length=r,o})}}},function(t,e,n){(0,n(2).registerTransform)("default",function(t){return t})},function(t,e,n){function r(t){return!!t}(0,n(2).registerTransform)("filter",function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};t.rows=t.rows.filter(e.callback||r)})},function(t,e,n){var c=n(3),s=n(630),f=n(48),r=n(2).registerTransform,l=n(7).getFields,h={fields:[],key:"key",retains:[],value:"value"};r("fold",function(t,e){var n=t.getColumnNames();e=c({},h,e);var r=l(e);0===r.length&&(console.warn("warning: option fields is not specified, will fold all columns."),r=n);var i=e.key,o=e.value,a=e.retains;0===a.length&&(a=s(n,r));var u=[];t.rows.forEach(function(n){r.forEach(function(t){var e=f(n,a);e[i]=t,e[o]=n[t],u.push(e)})}),t.rows=u})},function(t,e,n){var r=n(631),i=n(72),o=n(80),a=n(635),u=o(function(t,e){return a(t)?r(t,i(e,1,a,!0)):[]});t.exports=u},function(t,e,n){var p=n(105),v=n(252),g=n(253),d=n(46),y=n(85),b=n(106),m=200;t.exports=function(t,e,n,r){var i=-1,o=v,a=!0,u=t.length,c=[],s=e.length;if(!u)return c;n&&(e=d(e,y(n))),r?(o=g,a=!1):e.length>=m&&(o=b,a=!1,e=new p(e));t:for(;++i<u;){var f=t[i],l=null==n?f:n(f);if(f=r||0!==f?f:0,a&&l==l){for(var h=s;h--;)if(e[h]===l)continue t;c.push(f)}else o(e,l,r)||c.push(f)}return c}},function(t,e,n){var r=n(204),i=n(633),o=n(634);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},function(t,e,n){var r=n(20),i=n(16);t.exports=function(t){return i(t)&&r(t)}},function(t,e,n){function r(t){return t}(0,n(2).registerTransform)("map",function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};t.rows=t.rows.map(e.callback||r)})},function(t,e,n){var r=n(3),i=n(114),o=n(15),a=n(2).registerTransform,u={groupBy:[],orderBy:[]};function c(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};e=r({},u,e),t.rows=i(o(t.rows,e.groupBy,e.orderBy))}a("partition",function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};e=r({},u,e),t.rows=o(t.rows,e.groupBy,e.orderBy)}),a("group",c),a("groups",c)},function(t,e,n){var s=n(3),f=n(10),l=n(4),h=n(8),p=n(23).sum,v=n(15),r=n(2).registerTransform,g=n(7).getField,d={groupBy:[],as:"_percent"};r("percent",function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};e=s({},d,e);var o=g(e),a=e.dimension,n=e.groupBy,u=e.as;if(!h(a))throw new TypeError("Invalid dimension: must be a string!");if(l(u)&&(console.warn("Invalid as: must be a string, will use the first element of the array specified."),u=u[0]),!h(u))throw new TypeError("Invalid as: must be a string!");var r=t.rows,c=[],i=v(r,n);f(i,function(t){var i=p(t.map(function(t){return t[o]}));0===i&&console.warn("Invalid data: total sum of field "+o+" is 0!");var e=v(t,[a]);f(e,function(t){var e=p(t.map(function(t){return t[o]})),n=t[0],r=n[a];n[o]=e,n[a]=r,n[u]=0===i?0:e/i,c.push(n)})}),t.rows=c})},function(t,e,n){var r=n(48),i=n(2).registerTransform,o=n(7).getFields;i("pick",function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=o(e,t.getColumnNames());t.rows=t.rows.map(function(t){return r(t,n)})})},function(t,e,n){var s=n(3),f=n(10),l=n(4),h=n(8),p=n(15),r=n(2).registerTransform,v=n(7).getField,g={groupBy:[],as:"_proportion"};r("proportion",function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};e=s({},g,e);var o=v(e),a=e.dimension,n=e.groupBy,u=e.as;if(!h(a))throw new TypeError("Invalid dimension: must be a string!");if(l(u)&&(console.warn("Invalid as: must be a string, will use the first element of the array specified."),u=u[0]),!h(u))throw new TypeError("Invalid as: must be a string!");var r=t.rows,c=[],i=p(r,n);f(i,function(t){var i=t.length,e=p(t,[a]);f(e,function(t){var e=t.length,n=t[0],r=n[a];n[o]=e,n[a]=r,n[u]=e/i,c.push(n)})}),t.rows=c})},function(t,e,n){var i=n(10),r=n(642),o=n(8),a=n(2).registerTransform;function u(t){var e=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).map||{},n={};r(e)&&i(e,function(t,e){o(t)&&o(e)&&(n[e]=t)}),t.rows.forEach(function(r){i(e,function(t,e){var n=r[e];delete r[e],r[t]=n})})}a("rename",u),a("rename-fields",u)},function(t,e,n){var r=n(19),i=n(103),o=n(16),a="[object Object]",u=Function.prototype,c=Object.prototype,s=u.toString,f=c.hasOwnProperty,l=s.call(Object);t.exports=function(t){if(!o(t)||r(t)!=a)return!1;var e=i(t);if(null===e)return!0;var n=f.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==l}},function(t,e,n){var r=n(254);(0,n(2).registerTransform)("reverse",function(t){t.rows=r(t.rows)})},function(t,e,n){(0,n(2).registerTransform)("sort",function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=t.getColumnName(0);t.rows.sort(e.callback||function(t,e){return t[n]-e[n]})})},function(t,e,n){var i=n(4),o=n(254),a=n(646),r=n(2).registerTransform,u=n(7).getFields,c=["ASC","DESC"];function s(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=u(e,[t.getColumnName(0)]);if(!i(n))throw new TypeError("Invalid fields: must be an array with strings!");t.rows=a(t.rows,n);var r=e.order;if(r&&-1===c.indexOf(r))throw new TypeError("Invalid order: "+r+" must be one of "+c.join(", "));"DESC"===r&&(t.rows=o(t.rows))}r("sort-by",s),r("sortBy",s)},function(t,e,n){var r=n(72),i=n(647),o=n(80),a=n(143),u=o(function(t,e){if(null==t)return[];var n=e.length;return 1<n&&a(t,e[0],e[1])?e=[]:2<n&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])});t.exports=u},function(t,e,n){var o=n(46),a=n(44),u=n(255),c=n(648),s=n(85),f=n(649),l=n(38);t.exports=function(t,r,n){var i=-1;r=o(r.length?r:[l],s(a));var e=u(t,function(e,t,n){return{criteria:o(r,function(t){return t(e)}),index:++i,value:e}});return c(e,function(t,e){return f(t,e,n)})}},function(t,e){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},function(t,e,n){var s=n(650);t.exports=function(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,a=i.length,u=n.length;++r<a;){var c=s(i[r],o[r]);if(c)return u<=r?c:c*("desc"==n[r]?-1:1)}return t.index-e.index}},function(t,e,n){var f=n(45);t.exports=function(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t==t,o=f(t),a=void 0!==e,u=null===e,c=e==e,s=f(e);if(!u&&!s&&!o&&e<t||o&&a&&c&&!u&&!s||r&&a&&c||!n&&c||!i)return 1;if(!r&&!o&&!s&&t<e||s&&n&&i&&!r&&!o||u&&n&&i||!a&&i||!c)return-1}return 0}},function(t,e,n){var r=n(2).registerTransform,o=n(7).getFields;r("subset",function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=e.startRowIndex||0,r=e.endRowIndex||t.rows.length-1,i=o(e,t.getColumnNames());t.rows=t.getSubset(n,r,i)})},function(t,e,n){var p=n(3),v=n(10),g=n(15),r=n(2).registerTransform,d={fillBy:"group",groupBy:[],orderBy:[]};function y(t,e){var n=t.map(function(t){return t});return e.forEach(function(t){var e=n.indexOf(t);-1<e&&n.splice(e,1)}),n}function i(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};e=p({},d,e);var a=t.rows,u=e.groupBy,c=e.orderBy,n=g(a,u,c),s=0,r=[];v(n,function(t){t.length>s&&(s=t.length,r=t)});var f=[],l={};if(r.forEach(function(e){var t=c.map(function(t){return e[t]}).join("-");f.push(t),l[t]=e}),"order"===e.fillBy){var i=r[0],o=[],h={};a.forEach(function(e){var t=c.map(function(t){return e[t]}).join("-");-1===o.indexOf(t)&&(o.push(t),h[t]=e)}),y(o,f).forEach(function(e){var n={};u.forEach(function(t){n[t]=i[t]}),c.forEach(function(t){n[t]=h[e][t]}),a.push(n),r.push(n),f.push(e),l[e]=n}),s=r.length}v(n,function(i){if(i!==r&&i.length<s){var o=i[0],t=[];i.forEach(function(e){t.push(c.map(function(t){return e[t]}).join("-"))}),y(f,t).some(function(t,e){if(e>=s-i.length)return!0;var n=l[t],r={};return u.forEach(function(t){r[t]=o[t]}),c.forEach(function(t){r[t]=n[t]}),a.push(r),!1})}})}r("fill-rows",i),r("fillRows",i)},function(t,e,n){var c=n(3),s=n(10),f=n(654),l=n(11),h=n(656),p=n(8),r=n(23),v=n(15),i=n(2).registerTransform,g=n(7).getField,d={groupBy:[]};function y(t){return t.filter(function(t){return!h(t)})}var b=["mean","median","max","min"],m={};b.forEach(function(n){m[n]=function(t,e){return r[n](e)}}),m.value=function(t,e,n){return n},i("impute",function(t){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},e=t.rows;r=c({},d,r);var i=g(r),o=r.method,n=r.groupBy;if(!o)throw new TypeError("Invalid method!");if("value"===o&&!f(r,"value"))throw new TypeError("Invalid value: it is nil.");var a=y(t.getColumn(i)),u=v(e,n);s(u,function(e){var n=y(e.map(function(t){return t[i]}));0===n.length&&(n=a),e.forEach(function(t){if(h(t[i]))if(l(o))t[i]=o(t,n,r.value,e);else{if(!p(o))throw new TypeError("Invalid method: must be a function or one of "+b.join(", "));t[i]=m[o](t,n,r.value)}})})})},function(t,e,n){var r=n(655),i=n(203);t.exports=function(t,e){return null!=t&&i(t,e,r)}},function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t,e){return null!=t&&n.call(t,e)}},function(t,e){t.exports=function(t){return void 0===t}},function(t,e,n){var f=n(3),i=n(223),l=n(10),h=n(4),p=n(8),r=n(9),o=n(658),a=n(23),v=n(15),u=n(2).registerTransform,c=n(120).STATISTICS_METHODS,g=n(7).getFields,d={as:[],fields:[],groupBy:[],operations:[]},y="count",b={count:function(t){return t.length},distinct:function(t,e){return o(t.map(function(t){return t[e]})).length}};function s(t,e){e=f({},d,e);var n=t.rows,r=e.groupBy,a=g(e);if(!h(a))throw new TypeError("Invalid fields: it must be an array with one or more strings!");var u=e.as||[];p(u)&&(u=[u]);var c=e.operations;p(c)&&(c=[c]);var i=[y];if(h(c)&&c.length||(console.warn('operations is not defined, will use [ "count" ] directly.'),u=c=i),1!==c.length||c[0]!==y){if(c.length!==a.length)throw new TypeError("Invalid operations: it's length must be the same as fields!");if(u.length!==a.length)throw new TypeError("Invalid as: it's length must be the same as fields!")}var o=v(n,r),s=[];l(o,function(i){var o=i[0];c.forEach(function(t,e){var n=u[e],r=a[e];o[n]=b[t](i,r)}),s.push(o)}),t.rows=s}c.forEach(function(r){b[r]=function(t,e){var n=t.map(function(t){return t[e]});return h(n)&&h(n[0])&&(n=i(n)),a[r](n)}}),b.average=b.mean,u("aggregate",s),u("summary",s),t.exports={VALID_AGGREGATES:r(b)}},function(t,e,n){var r=n(659);t.exports=function(t){return t&&t.length?r(t):[]}},function(t,e,n){var p=n(105),v=n(252),g=n(253),d=n(106),y=n(660),b=n(69),m=200;t.exports=function(t,e,n){var r=-1,i=v,o=t.length,a=!0,u=[],c=u;if(n)a=!1,i=g;else if(m<=o){var s=e?null:y(t);if(s)return b(s);a=!1,i=d,c=new p}else c=e?[]:u;t:for(;++r<o;){var f=t[r],l=e?e(f):f;if(f=n||0!==f?f:0,a&&l==l){for(var h=c.length;h--;)if(c[h]===l)continue t;e&&c.push(l),u.push(f)}else i(c,l,n)||(c!==u&&c.push(l),u.push(f))}return u}},function(t,e,n){var r=n(191),i=n(661),o=n(69),a=r&&1/o(new r([,-0]))[1]==1/0?function(t){return new r(t)}:i;t.exports=a},function(t,e){t.exports=function(){}},function(t,e,n){var g=n(3),d=n(4),y=n(127),b=n(663),m=n(128),r=n(2).registerTransform,x=n(7).getFields,j=n(129).silverman,_={as:["x","y"],method:"linear",order:2,precision:2},O=["linear","exponential","logarithmic","power","polynomial"];r("regression",function(t,e){e=g({},_,e);var n=x(e);if(!d(n)||2!==n.length)throw new TypeError("invalid fields: must be an array of 2 strings.");var r=n[0],i=n[1],o=e.method;if(-1===O.indexOf(o))throw new TypeError("invalid method: "+o+". Must be one of "+O.join(", "));var a=t.rows.map(function(t){return[t[r],t[i]]}),u=b[o](a,e),c=e.extent;d(c)&&2===c.length||(c=t.range(r));var s=e.bandwidth;(!y(s)||s<=0)&&(s=j(t.getColumn(r)));var f=m(c,s),l=[],h=e.as,p=h[0],v=h[1];f.forEach(function(t){var e={},n=u.predict(t),r=n[0],i=n[1];e[p]=r,e[v]=i,isFinite(i)&&l.push(e)}),t.rows=l}),t.exports={REGRESSION_METHODS:O}},function(t,e,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(t){"use strict";var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};var a={order:2,precision:2,period:null};function b(t,n){var o=[],r=[];t.forEach(function(t,e){null!==t[1]&&(r.push(t),o.push(n[e]))});var i=r.reduce(function(t,e){return t+e[1]},0)/r.length,e=r.reduce(function(t,e){var n=e[1]-i;return t+n*n},0);return 1-r.reduce(function(t,e,n){var r=o[n],i=e[1]-r[1];return t+i*i},0)/e}function m(t,e){var n=Math.pow(10,e);return Math.round(t*n)/n}var u={linear:function(t,e){for(var n=[0,0,0,0,0],r=0,i=0;i<t.length;i++)null!==t[i][1]&&(r++,n[0]+=t[i][0],n[1]+=t[i][1],n[2]+=t[i][0]*t[i][0],n[3]+=t[i][0]*t[i][1],n[4]+=t[i][1]*t[i][1]);var o=r*n[2]-n[0]*n[0],a=r*n[3]-n[0]*n[1],u=0===o?0:m(a/o,e.precision),c=m(n[1]/r-u*n[0]/r,e.precision),s=function(t){return[m(t,e.precision),m(u*t+c,e.precision)]},f=t.map(function(t){return s(t[0])});return{points:f,predict:s,equation:[u,c],r2:m(b(t,f),e.precision),string:0===c?"y = "+u+"x":"y = "+u+"x + "+c}},exponential:function(t,e){for(var n=[0,0,0,0,0,0],r=0;r<t.length;r++)null!==t[r][1]&&(n[0]+=t[r][0],n[1]+=t[r][1],n[2]+=t[r][0]*t[r][0]*t[r][1],n[3]+=t[r][1]*Math.log(t[r][1]),n[4]+=t[r][0]*t[r][1]*Math.log(t[r][1]),n[5]+=t[r][0]*t[r][1]);var i=n[1]*n[2]-n[5]*n[5],o=Math.exp((n[2]*n[3]-n[5]*n[4])/i),a=(n[1]*n[4]-n[5]*n[3])/i,u=m(o,e.precision),c=m(a,e.precision),s=function(t){return[m(t,e.precision),m(u*Math.exp(c*t),e.precision)]},f=t.map(function(t){return s(t[0])});return{points:f,predict:s,equation:[u,c],string:"y = "+u+"e^("+c+"x)",r2:m(b(t,f),e.precision)}},logarithmic:function(t,e){for(var n=[0,0,0,0],r=t.length,i=0;i<r;i++)null!==t[i][1]&&(n[0]+=Math.log(t[i][0]),n[1]+=t[i][1]*Math.log(t[i][0]),n[2]+=t[i][1],n[3]+=Math.pow(Math.log(t[i][0]),2));var o=m((r*n[1]-n[2]*n[0])/(r*n[3]-n[0]*n[0]),e.precision),a=m((n[2]-o*n[0])/r,e.precision),u=function(t){return[m(t,e.precision),m(m(a+o*Math.log(t),e.precision),e.precision)]},c=t.map(function(t){return u(t[0])});return{points:c,predict:u,equation:[a,o],string:"y = "+a+" + "+o+" ln(x)",r2:m(b(t,c),e.precision)}},power:function(t,e){for(var n=[0,0,0,0,0],r=t.length,i=0;i<r;i++)null!==t[i][1]&&(n[0]+=Math.log(t[i][0]),n[1]+=Math.log(t[i][1])*Math.log(t[i][0]),n[2]+=Math.log(t[i][1]),n[3]+=Math.pow(Math.log(t[i][0]),2));var o=(r*n[1]-n[0]*n[2])/(r*n[3]-Math.pow(n[0],2)),a=(n[2]-o*n[0])/r,u=m(Math.exp(a),e.precision),c=m(o,e.precision),s=function(t){return[m(t,e.precision),m(m(u*Math.pow(t,c),e.precision),e.precision)]},f=t.map(function(t){return s(t[0])});return{points:f,predict:s,equation:[u,c],string:"y = "+u+"x^"+c,r2:m(b(t,f),e.precision)}},polynomial:function(t,e){for(var n=[],r=[],i=0,o=0,a=t.length,u=e.order+1,c=0;c<u;c++){for(var s=0;s<a;s++)null!==t[s][1]&&(i+=Math.pow(t[s][0],c)*t[s][1]);n.push(i);for(var f=[],l=i=0;l<u;l++){for(var h=0;h<a;h++)null!==t[h][1]&&(o+=Math.pow(t[h][0],c+l));f.push(o),o=0}r.push(f)}r.push(n);for(var p=function(t,e){for(var n=t,r=t.length-1,i=[e],o=0;o<r;o++){for(var a=o,u=o+1;u<r;u++)Math.abs(n[o][u])>Math.abs(n[o][a])&&(a=u);for(var c=o;c<r+1;c++){var s=n[c][o];n[c][o]=n[c][a],n[c][a]=s}for(var f=o+1;f<r;f++)for(var l=r;o<=l;l--)n[l][f]-=n[l][o]*n[o][f]/n[o][o]}for(var h=r-1;0<=h;h--){for(var p=0,v=h+1;v<r;v++)p+=n[v][h]*i[v];i[h]=(n[r][h]-p)/n[h][h]}return i}(r,u).map(function(t){return m(t,e.precision)}),v=function(r){return[m(r,e.precision),m(p.reduce(function(t,e,n){return t+e*Math.pow(r,n)},0),e.precision)]},g=t.map(function(t){return v(t[0])}),d="y = ",y=p.length-1;0<=y;y--)d+=1<y?p[y]+"x^"+y+" + ":1===y?p[y]+"x + ":p[y];return{string:d,points:g,predict:v,equation:[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(p)).reverse(),r2:m(b(t,g),e.precision)}}};t.exports=Object.keys(u).reduce(function(t,n){return o({_round:m},t,(i=function(t,e){return u[n](t,o({},a,e))},(r=n)in(e={})?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e));var e,r,i},{})})?r.apply(e,i):r)||(t.exports=o)},function(t,e,n){var M=n(3),E=n(10),C=n(4),r=n(2).registerTransform,P=n(7).getFields,A={as:["x","y","count"],bins:[30,30],offset:[0,0],sizeByCount:!1},T=Math.sqrt(3),i=Math.PI/3,k=[0,i,2*i,3*i,4*i,5*i];function I(t,e,n,r){return Math.sqrt((t-n)*(t-n)+(e-r)*(e-r))}function L(t,e,n){var r=t-n;e/=2;var i=Math.floor(r/e);return[e*(i+(1===Math.abs(i%2)?1:0))+n,e*(i+(1===Math.abs(i%2)?0:1))+n]}function o(t,o){o=M({},A,o);var e=P(o);if(!C(e)||2!==e.length)throw new TypeError("Invalid fields: it must be an array with 2 strings!");var n=e[0],r=e[1],i=t.range(n),a=t.range(r),u=i[1]-i[0],c=a[1]-a[0],s=o.binWidth||[];if(2!==s.length){var f=o.bins,l=f[0],h=f[1];if(l<=0||h<=0)throw new TypeError("Invalid bins: must be an array with two positive numbers (e.g. [ 30, 30 ])!");s=[u/l,c/h]}var p=o.offset,v=p[0],g=p[1],d=3*s[0]/(T*s[1]),y=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[1,1],n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[0,0],h={},p=e[0],v=e[1],g=n[0],d=n[1];return t.forEach(function(t){var e=t[0],n=t[1],r=L(e,p,g),i=r[0],o=r[1],a=L(n,v,d),u=a[0],c=a[1],s=void 0,f=void 0,l=void 0;I(e,n,i,u)<I(e,n,o,c)?(s="x"+i+"y"+u,f=i,l=u):(s="x"+o+"y"+c,f=o,l=c),h[s]=h[s]||{x:f,y:l,count:0},h[s].count++}),h}(t.rows.map(function(t){return[t[n],d*t[r]]}),[s[0],d*s[1]],[v,d*g]),b=o.as,m=b[0],x=b[1],j=b[2];if(!m||!x||!j)throw new TypeError('Invalid as: it must be an array with three elements (e.g. [ "x", "y", "count" ])!');var _=s[0]/T,O=k.map(function(t){return[Math.sin(t)*_,-Math.cos(t)*_]}),w=[],S=0;o.sizeByCount&&E(y,function(t){t.count>S&&(S=t.count)}),E(y,function(e){var n=e.x,r=e.y,t=e.count,i={};i[j]=t,o.sizeByCount?(i[m]=O.map(function(t){return n+e.count/S*t[0]}),i[x]=O.map(function(t){return(r+e.count/S*t[1])/d})):(i[m]=O.map(function(t){return n+t[0]}),i[x]=O.map(function(t){return(r+t[1])/d})),w.push(i)}),t.rows=w}r("bin.hexagon",o),r("bin.hex",o),r("hexbin",o)},function(t,e,n){var h=n(3),p=n(10),v=n(48),s=n(15),r=n(2).registerTransform,g=n(7).getField,d={as:["x","count"],bins:30,offset:0,groupBy:[]};function i(t,o){o=h({},d,o);var a=g(o);if(0!==t.rows.length){var e=t.range(a),n=e[1]-e[0],f=o.binWidth;if(!f){var r=o.bins;if(r<=0)throw new TypeError("Invalid bins: it must be a positive number!");f=n/r}var l=o.offset%f,u=[],c=o.groupBy,i=s(t.rows,c);p(i,function(t){var s={};t.map(function(t){return t[a]}).forEach(function(t){var e,n,r,i,o=(e=f,r=t-(n=l),[(i=Math.floor(r/e))*e+n,(i+1)*e+n]),a=o[0],u=o[1],c=a+"-"+u;s[c]=s[c]||{x0:a,x1:u,count:0},s[c].count++});var e=o.as,n=e[0],r=e[1];if(!n||!r)throw new TypeError('Invalid as: it must be an array with 2 elements (e.g. [ "x", "count" ])!');var i=v(t[0],c);p(s,function(t){var e=h({},i);e[n]=[t.x0,t.x1],e[r]=t.count,u.push(e)})}),t.rows=u}}r("bin.histogram",i),r("bin.dot",i)},function(t,e,n){var f=n(3),l=n(10),h=n(4),p=n(8),v=n(23).quantile,g=n(15),d=n(240),r=n(2).registerTransform,y=n(7).getField,b={as:"_bin",groupBy:[],fraction:4};r("bin.quantile",function(t,e){e=f({},b,e);var i=y(e),o=e.as;if(!p(o))throw new TypeError('Invalid as: it must be a string (e.g. "_bin")!');var a=e.p,n=e.fraction;h(a)&&0!==a.length||(a=d(n));var r=t.rows,u=e.groupBy,c=g(r,u),s=[];l(c,function(t){var e=t[0],n=t.map(function(t){return t[i]}),r=a.map(function(t){return v(n,t)});e[o]=r,s.push(e)}),t.rows=s})},function(t,e,n){var w=n(3),S=n(10),r=n(2).registerTransform,M=n(7).getFields,E={as:["x","y","count"],bins:[30,30],offset:[0,0],sizeByCount:!1};function C(t,e,n){var r=t-n,i=Math.floor(r/e);return[i*e+n,(i+1)*e+n]}function i(t,e){e=w({},E,e);var n=M(e),r=n[0],i=n[1];if(!r||!i)throw new TypeError("Invalid fields: must be an array with 2 strings!");var o=t.range(r),a=t.range(i),u=o[1]-o[0],c=a[1]-a[0],s=e.binWidth||[];if(2!==s.length){var f=e.bins,l=f[0],h=f[1];if(l<=0||h<=0)throw new TypeError("Invalid bins: must be an array with 2 positive numbers (e.g. [ 30, 30 ])!");s=[u/l,c/h]}var p=t.rows.map(function(t){return[t[r],t[i]]}),v={},g=e.offset,d=g[0],y=g[1];p.forEach(function(t){var e=C(t[0],s[0],d),n=e[0],r=e[1],i=C(t[1],s[1],y),o=i[0],a=i[1],u=n+"-"+r+"-"+o+"-"+a;v[u]=v[u]||{x0:n,x1:r,y0:o,y1:a,count:0},v[u].count++});var b=[],m=e.as,x=m[0],j=m[1],_=m[2];if(!x||!j||!_)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "count" ])!');if(e.sizeByCount){var O=0;S(v,function(t){t.count>O&&(O=t.count)}),S(v,function(t){var e=t.x0,n=t.x1,r=t.y0,i=t.y1,o=t.count,a=o/O,u=(e+n)/2,c=(r+i)/2,s=(n-e)*a/2,f=(i-r)*a/2,l=u-s,h=u+s,p=c-f,v=c+f,g={};g[x]=[l,h,h,l],g[j]=[p,p,v,v],g[_]=o,b.push(g)})}else S(v,function(t){var e={};e[x]=[t.x0,t.x1,t.x1,t.x0],e[j]=[t.y0,t.y0,t.y1,t.y1],e[_]=t.count,b.push(e)});t.rows=b}r("bin.rectangle",i),r("bin.rect",i)},function(t,e,n){var u=n(3),c=n(4),s=n(8),r=n(2).registerTransform,f=n(7).getField,l={as:["_centroid_x","_centroid_y"]};r("geo.centroid",function(t,e){e=u({},l,e);var n=f(e),r=e.geoView||e.geoDataView;if(s(r)&&(r=t.dataSet.getView(r)),!r||"geo"!==r.dataType)throw new TypeError("Invalid geoView: must be a DataView of GEO dataType!");var i=e.as;if(!c(i)||2!==i.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "cX", "cY" ])!');var o=i[0],a=i[1];t.rows.forEach(function(t){var e=r.geoFeatureByName(t[n]);e&&(r._projectedAs?(t[o]=e[r._projectedAs[2]],t[a]=e[r._projectedAs[3]]):(t[o]=e.centroidX,t[a]=e.centroidY))})})},function(t,e,n){var s=n(3),r=n(0),f=n(243),l=n(4),i=n(2).registerTransform,h=n(207),p=r.geoPath,v={as:["_x","_y","_centroid_x","_centroid_y"]};i("geo.projection",function(t,e){if("geo"!==t.dataType&&"geo-graticule"!==t.dataType)throw new TypeError("Invalid dataView: this transform is for Geo data only!");var n=(e=s({},v,e)).projection;if(!n)throw new TypeError("Invalid projection!");n=h(n);var r=p(n),i=e.as;if(!l(i)||4!==i.length)throw new TypeError('Invalid as: it must be an array with 4 strings (e.g. [ "x", "y", "cX", "cY" ])!');var o=(t._projectedAs=i)[0],a=i[1],u=i[2],c=i[3];t.rows.forEach(function(e){e[o]=[],e[a]=[];var t=r(e);if(t){f(t)._path.forEach(function(t){e[o].push(t[1]),e[a].push(t[2])});var n=r.centroid(e);e[u]=n[0],e[c]=n[1]}}),t.rows=t.rows.filter(function(t){return 0!==t[o].length})})},function(t,e,n){var u=n(3),c=n(4),s=n(8),r=n(2).registerTransform,f=n(7).getField,l={as:["_x","_y"]};r("geo.region",function(t,e){e=u({},l,e);var n=f(e),r=e.geoView||e.geoDataView;if(s(r)&&(r=t.dataSet.getView(r)),!r||"geo"!==r.dataType)throw new TypeError("Invalid geoView: must be a DataView of GEO dataType!");var i=e.as;if(!c(i)||2!==i.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var o=i[0],a=i[1];t.rows.forEach(function(t){var e=r.geoFeatureByName(t[n]);e&&(r._projectedAs?(t[o]=e[r._projectedAs[0]],t[a]=e[r._projectedAs[1]]):(t[o]=e.longitude,t[a]=e.latitude))})})},function(t,e,n){var f=n(3),l=n(10),h=n(4),p=n(114),v=n(11),r=n(2).registerTransform,g={y:0,thickness:.05,weight:!1,marginRatio:.1,id:function(t){return t.id},source:function(t){return t.source},target:function(t){return t.target},sourceWeight:function(t){return t.value||1},targetWeight:function(t){return t.value||1},sortBy:null};function i(t,n){n=f({},g,n);var r,i,e,o,a,u={},c=t.nodes,s=t.edges;h(c)&&0!==c.length||(c=function(t,r){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return t.forEach(function(t){var e=r.edgeSource(t),n=r.edgeTarget(t);i[e]||(i[e]={id:e}),i[n]||(i[n]={id:n})}),p(i)}(s,n,u)),c.forEach(function(t){var e=n.id(t);u[e]=t}),r=s,i=n,l(u,function(e,n){e.inEdges=r.filter(function(t){return""+i.target(t)==""+n}),e.outEdges=r.filter(function(t){return""+i.source(t)==""+n}),e.edges=e.outEdges.concat(e.inEdges),e.frequency=e.edges.length,e.value=0,e.inEdges.forEach(function(t){e.value+=i.targetWeight(t)}),e.outEdges.forEach(function(t){e.value+=i.sourceWeight(t)})}),e=c,!(a={weight:function(t,e){return e.value-t.value},frequency:function(t,e){return e.frequency-t.frequency},id:function(t,e){return(""+o.id(t)).localeCompare(""+o.id(e))}}[(o=n).sortBy])&&v(o.sortBy)&&(a=o.sortBy),a&&e.sort(a),function(c,s){var t=c.length;if(!t)throw new TypeError("Invalid nodes: it's empty!");if(s.weight){var e=s.marginRatio;if(e<0||1<=e)throw new TypeError("Invalid marginRatio: it must be in range [0, 1)!");var f=e/(2*t),l=s.thickness;if(l<=0||1<=l)throw new TypeError("Invalid thickness: it must be in range (0, 1)!");var n=0;c.forEach(function(t){n+=t.value}),c.forEach(function(t){t.weight=t.value/n,t.width=t.weight*(1-e),t.height=l}),c.forEach(function(t,e){for(var n=0,r=e-1;0<=r;r--)n+=c[r].width+2*f;var i=t.minX=f+n,o=t.maxX=t.minX+t.width,a=t.minY=s.y-l/2,u=t.maxY=a+l;t.x=[i,o,o,i],t.y=[a,a,u,u]})}else{var r=1/t;c.forEach(function(t,e){t.x=(e+.5)*r,t.y=s.y})}}(c,n),function(v,t,g){if(g.weight){var d={};l(v,function(t,e){d[e]=t.value}),t.forEach(function(t){var e=g.source(t),n=g.target(t),r=v[e],i=v[n];if(r&&i){var o=d[e],a=g.sourceWeight(t),u=r.minX+(r.value-o)/r.value*r.width,c=u+a/r.value*r.width;d[e]-=a;var s=d[n],f=g.targetWeight(t),l=i.minX+(i.value-s)/i.value*i.width,h=l+f/i.value*i.width;d[n]-=f;var p=g.y;t.x=[u,c,l,h],t.y=[p,p,p,p]}})}else t.forEach(function(t){var e=v[g.source(t)],n=v[g.target(t)];e&&n&&(t.x=[e.x,n.x],t.y=[e.y,n.y])})}(u,s,n),t.nodes=c,t.edges=s}r("diagram.arc",i),r("arc",i)},function(t,e,n){var i=n(3),o=n(8),a=n(11),r=n(673),u=r.sankey,c=r.sankeyLeft,s=r.sankeyRight,f=r.sankeyCenter,l=r.sankeyJustify,h=n(2).registerTransform,p={sankeyLeft:c,sankeyRight:s,sankeyCenter:f,sankeyJustify:l},v={value:function(t){return t.value},source:function(t){return t.source},target:function(t){return t.target},nodeAlign:"sankeyJustify",nodeWidth:.02,nodePadding:.02};function g(t,e){e=i({},v,e);var n=null;o(e.nodeAlign)?n=p[e.nodeAlign]:a(e.nodeAlign)&&(n=e.nodeAlign);var r=u().links(function(t){return t.edges}).nodeWidth(e.nodeWidth).nodePadding(e.nodePadding).extent([[0,0],[1,1]]);a(e.nodeId)&&r.nodeId(e.nodeId),n&&r.nodeAlign(n),r(t),t.nodes.forEach(function(t){var e=t.x0,n=t.x1,r=t.y0,i=t.y1;t.x=[e,n,n,e],t.y=[r,r,i,i]}),t.edges.forEach(function(t){var e=t.source,n=t.target,r=e.x1,i=n.x0;t.x=[r,r,i,i];var o=t.width/2;t.y=[t.y0+o,t.y0-o,t.y1+o,t.y1-o]})}h("diagram.sankey",g),h("sankey",g)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(674);n.d(e,"sankey",function(){return r.a});var i=n(256);n.d(e,"sankeyCenter",function(){return i.a}),n.d(e,"sankeyLeft",function(){return i.c}),n.d(e,"sankeyRight",function(){return i.d}),n.d(e,"sankeyJustify",function(){return i.b});var o=n(682);n.d(e,"sankeyLinkHorizontal",function(){return o.a})},function(t,e,n){"use strict";var v=n(12),g=n(675),d=n(256),y=n(681),b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function m(t,e){return j(t.source,e.source)||t.index-e.index}function x(t,e){return j(t.target,e.target)||t.index-e.index}function j(t,e){return t.y0-e.y0}function _(t){return t.value}function O(t){return(t.y0+t.y1)/2}function w(t){return O(t.source)*t.value}function S(t){return O(t.target)*t.value}function M(t){return t.index}function E(t){return t.nodes}function C(t){return t.links}function P(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}e.a=function(){var o=0,c=0,a=1,s=1,u=24,f=8,e=M,l=d.b,n=E,r=C,h=32;function i(){var t={nodes:n.apply(null,arguments),links:r.apply(null,arguments)};return function(t){t.nodes.forEach(function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]});var i=Object(g.a)(t.nodes,e);t.links.forEach(function(t,e){t.index=e;var n=t.source,r=t.target;"object"!==(void 0===n?"undefined":b(n))&&(n=t.source=P(i,n)),"object"!==(void 0===r?"undefined":b(r))&&(r=t.target=P(i,r)),n.sourceLinks.push(t),r.targetLinks.push(t)})}(t),t.nodes.forEach(function(t){t.value=Math.max(Object(v.sum)(t.sourceLinks,_),Object(v.sum)(t.targetLinks,_))}),function(t){var e,n,r;for(e=t.nodes,n=[],r=0;e.length;++r,e=n,n=[])e.forEach(function(t){t.depth=r,t.sourceLinks.forEach(function(t){n.indexOf(t.target)<0&&n.push(t.target)})});for(e=t.nodes,n=[],r=0;e.length;++r,e=n,n=[])e.forEach(function(t){t.height=r,t.targetLinks.forEach(function(t){n.indexOf(t.source)<0&&n.push(t.source)})});var i=(a-o-u)/(r-1);t.nodes.forEach(function(t){t.x1=(t.x0=o+Math.max(0,Math.min(r-1,Math.floor(l.call(null,t,r))))*i)+u})}(t),function(t){var e=Object(g.b)().key(function(t){return t.x0}).sortKeys(v.ascending).entries(t.nodes).map(function(t){return t.values});n=Object(v.min)(e,function(t){return(s-c-(t.length-1)*f)/Object(v.sum)(t,_)}),e.forEach(function(t){t.forEach(function(t,e){t.y1=(t.y0=e)+t.value*n})}),t.links.forEach(function(t){t.width=t.value*n}),u();var n;for(var r=1,i=h;0<i;--i)a(r*=.99),u(),o(r),u();function o(n){e.forEach(function(t){t.forEach(function(t){if(t.targetLinks.length){var e=(Object(v.sum)(t.targetLinks,w)/Object(v.sum)(t.targetLinks,_)-O(t))*n;t.y0+=e,t.y1+=e}})})}function a(n){e.slice().reverse().forEach(function(t){t.forEach(function(t){if(t.sourceLinks.length){var e=(Object(v.sum)(t.sourceLinks,S)/Object(v.sum)(t.sourceLinks,_)-O(t))*n;t.y0+=e,t.y1+=e}})})}function u(){e.forEach(function(t){var e,n,r,i=c,o=t.length;for(t.sort(j),r=0;r<o;++r)e=t[r],0<(n=i-e.y0)&&(e.y0+=n,e.y1+=n),i=e.y1+f;if(0<(n=i-f-s))for(i=e.y0-=n,e.y1-=n,r=o-2;0<=r;--r)e=t[r],0<(n=e.y1+f-i)&&(e.y0-=n,e.y1-=n),i=e.y0})}}(t),p(t),t}function p(t){t.nodes.forEach(function(t){t.sourceLinks.sort(x),t.targetLinks.sort(m)}),t.nodes.forEach(function(t){var e=t.y0,n=e;t.sourceLinks.forEach(function(t){t.y0=e+t.width/2,e+=t.width}),t.targetLinks.forEach(function(t){t.y1=n+t.width/2,n+=t.width})})}return i.update=function(t){return p(t),t},i.nodeId=function(t){return arguments.length?(e="function"==typeof t?t:Object(y.a)(t),i):e},i.nodeAlign=function(t){return arguments.length?(l="function"==typeof t?t:Object(y.a)(t),i):l},i.nodeWidth=function(t){return arguments.length?(u=+t,i):u},i.nodePadding=function(t){return arguments.length?(f=+t,i):f},i.nodes=function(t){return arguments.length?(n="function"==typeof t?t:Object(y.a)(t),i):n},i.links=function(t){return arguments.length?(r="function"==typeof t?t:Object(y.a)(t),i):r},i.size=function(t){return arguments.length?(o=c=0,a=+t[0],s=+t[1],i):[a-o,s-c]},i.extent=function(t){return arguments.length?(o=+t[0][0],a=+t[1][0],c=+t[0][1],s=+t[1][1],i):[[o,c],[a,s]]},i.iterations=function(t){return arguments.length?(h=+t,i):h},i}},function(t,e,n){"use strict";var r=n(676);n.d(e,"b",function(){return r.a});n(677);var i=n(130);n.d(e,"a",function(){return i.a});n(678),n(679),n(680)},function(t,e,n){"use strict";var d=n(130);function r(){return{}}function i(t,e,n){t[e]=n}function o(){return Object(d.a)()}function u(t,e,n){t.set(e,n)}e.a=function(){var h,p,e,v=[],a=[];function g(t,n,r,i){if(n>=v.length)return null!=h&&t.sort(h),null!=p?p(t):t;for(var e,o,a,u=-1,c=t.length,s=v[n++],f=Object(d.a)(),l=r();++u<c;)(a=f.get(e=s(o=t[u])+""))?a.push(o):f.set(e,[o]);return f.each(function(t,e){i(l,e,g(t,n,r,i))}),l}return e={object:function(t){return g(t,0,r,i)},map:function(t){return g(t,0,o,u)},entries:function(t){return function n(t,r){if(++r>v.length)return t;var i,o=a[r-1];return null!=p&&r>=v.length?i=t.entries():(i=[],t.each(function(t,e){i.push({key:e,values:n(t,r)})})),null!=o?i.sort(function(t,e){return o(t.key,e.key)}):i}(g(t,0,o,u),0)},key:function(t){return v.push(t),e},sortKeys:function(t){return a[v.length-1]=t,e},sortValues:function(t){return h=t,e},rollup:function(t){return p=t,e}}}},function(t,e,n){"use strict";var r=n(130);function i(){}var o=r.a.prototype;i.prototype={constructor:i,has:o.has,add:function(t){return t+="",this[r.b+t]=t,this},remove:o.remove,clear:o.clear,values:o.keys,size:o.size,empty:o.empty,each:o.each}},function(t,e,n){"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";var r=n(683);function i(t){return[t.source.x1,t.y0]}function o(t){return[t.target.x0,t.y1]}e.a=function(){return Object(r.a)().source(i).target(o)}},function(t,e,n){"use strict";n(684),n(257),n(131),n(685),n(688),n(259),n(260);var r=n(689);n.d(e,"a",function(){return r.a});n(690),n(262),n(263),n(264),n(266),n(265),n(267),n(268),n(691),n(692),n(77),n(693),n(269),n(270),n(78),n(694),n(695),n(133),n(696),n(75),n(697),n(698),n(699),n(700),n(701),n(702),n(54),n(703),n(704),n(134),n(705),n(706),n(55),n(707)},function(t,e,n){"use strict";n(30),n(31),n(53)},function(t,e,n){"use strict";n(31),n(686),n(687),n(53)},function(t,e,n){"use strict";e.a=function(t,e){return e<t?-1:t<e?1:t<=e?0:NaN}},function(t,e,n){"use strict";e.a=function(t){return t}},function(t,e,n){"use strict";n(258),n(257),n(259)},function(t,e,n){"use strict";e.a=function(){return i(o)};var f=n(30),l=n(261),r=n(31),h=n(132);n(260);function p(t){return t.source}function v(t){return t.target}function i(i){var o=p,a=v,u=h.a,c=h.b,s=null;function e(){var t,e=l.a.call(arguments),n=o.apply(this,e),r=a.apply(this,e);if(s||(s=t=Object(f.path)()),i(s,+u.apply(this,(e[0]=n,e)),+c.apply(this,e),+u.apply(this,(e[0]=r,e)),+c.apply(this,e)),t)return s=null,t+""||null}return e.source=function(t){return arguments.length?(o=t,e):o},e.target=function(t){return arguments.length?(a=t,e):a},e.x=function(t){return arguments.length?(u="function"==typeof t?t:Object(r.a)(+t),e):u},e.y=function(t){return arguments.length?(c="function"==typeof t?t:Object(r.a)(+t),e):c},e.context=function(t){return arguments.length?(s=null==t?null:t,e):s},e}function o(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}},function(t,e,n){"use strict";n(30);var r=n(262),i=n(263),o=n(264),a=n(265),u=n(266),c=n(267),s=n(268);n(31),r.a,i.a,o.a,u.a,a.a,c.a,s.a},function(t,e,n){"use strict";var r=n(76),i=n(77);r.a,r.a},function(t,e,n){"use strict";var r=n(77)},function(t,e,n){"use strict";var r=n(77);function i(t,e){this._basis=new r.a(t),this._beta=e}i.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(0<n)for(var r,i=t[0],o=e[0],a=t[n]-i,u=e[n]-o,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*a),this._beta*e[c]+(1-this._beta)*(o+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};(function e(n){function t(t){return 1===n?new r.a(t):new i(t,n)}return t.beta=function(t){return e(+t)},t})(.85)},function(t,e,n){"use strict";var r=n(269),i=n(76),o=n(133);function a(t,e){this._context=t,this._alpha=e}a.prototype={areaStart:i.a,areaEnd:i.a,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Object(o.a)(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function e(n){function t(t){return n?new a(t,n):new r.a(t,0)}return t.alpha=function(t){return e(+t)},t})(.5)},function(t,e,n){"use strict";var r=n(270),i=n(133);function o(t,e){this._context=t,this._alpha=e}o.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Object(i.a)(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function e(n){function t(t){return n?new o(t,n):new r.a(t,0)}return t.alpha=function(t){return e(+t)},t})(.5)},function(t,e,n){"use strict";var r=n(76);r.a,r.a},function(t,e,n){"use strict";function c(t){return t<0?-1:1}function r(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),u=(o*i+a*r)/(r+i);return(c(o)+c(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function i(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function o(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*e,o-u,a-u*n,o,a)}function a(t){this._context=t}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:o(this,this._t0,i(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,o(this,i(this,n=r(this,t,e)),n);break;default:o(this,this._t0,n=r(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},Object.create(a.prototype).point=function(t,e){a.prototype.point.call(this,e,t)}},function(t,e,n){"use strict";function r(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(o[i[0]=0]=2,a[0]=t[0]+2*t[1],1;e<r-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],1;e<r;++e)i[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(i[r-1]=a[r-1]/o[r-1],r-2;0<=e;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}},function(t,e,n){"use strict"},function(t,e,n){"use strict";n(261),n(31),n(54),n(55)},function(t,e,n){"use strict";n(54)},function(t,e,n){"use strict"},function(t,e,n){"use strict";n(54)},function(t,e,n){"use strict";n(54)},function(t,e,n){"use strict";n(134)},function(t,e,n){"use strict";n(55),n(134)},function(t,e,n){"use strict";n(55)},function(t,e,n){var h=n(3),p=n(709),v=n(4),r=n(2).registerTransform,g=n(7).getFields,d={as:["_x","_y"]};function i(t,e){var n=(e=h({},d,e)).as;if(!v(n)||2!==n.length)throw new TypeError("Invalid as: must be an array with two strings!");var r=n[0],i=n[1],o=g(e);if(!v(o)&&2!==o.length)throw new TypeError("Invalid fields: must be an array with two strings!");var a=o[0],u=o[1],c=t.rows,s=c.map(function(t){return[t[a],t[u]]}),f=p.voronoi();e.extend&&f.extent(e.extend),e.size&&f.size(e.size);var l=f(s).polygons();c.forEach(function(t,e){var n=l[e].filter(function(t){return!!t});t[r]=n.map(function(t){return t[0]}),t[i]=n.map(function(t){return t[1]})})}r("diagram.voronoi",i),r("voronoi",i)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(710);n.d(e,"voronoi",function(){return r.a})},function(t,e,n){"use strict";var r=n(711),a=n(712),u=n(56);e.a=function(){var i=a.a,o=a.b,e=null;function n(r){return new u.d(r.map(function(t,e){var n=[Math.round(i(t,e,r)/u.f)*u.f,Math.round(o(t,e,r)/u.f)*u.f];return n.index=e,n.data=t,n}),e)}return n.polygons=function(t){return n(t).polygons()},n.links=function(t){return n(t).links()},n.triangles=function(t){return n(t).triangles()},n.x=function(t){return arguments.length?(i="function"==typeof t?t:Object(r.a)(+t),n):i},n.y=function(t){return arguments.length?(o="function"==typeof t?t:Object(r.a)(+t),n):o},n.extent=function(t){return arguments.length?(e=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],n):e&&[[e[0][0],e[0][1]],[e[1][0],e[1][1]]]},n.size=function(t){return arguments.length?(e=null==t?null:[[0,0],[+t[0],+t[1]]],n):e&&[e[1][0]-e[0][0],e[1][1]-e[0][1]]},n}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";e.a=function(t){return t[0]},e.b=function(t){return t[1]}},function(t,e,n){"use strict";e.b=function(t){var e=t.circle,n=e.x,r=e.cy,i=[n,r],o=t.P,a=t.N,u=[t];h(t);var c=o;for(;c.circle&&Math.abs(n-c.circle.x)<w.f&&Math.abs(r-c.circle.cy)<w.f;)o=c.P,u.unshift(c),h(c),c=o;u.unshift(c),Object(_.b)(c);var s=a;for(;s.circle&&Math.abs(n-s.circle.x)<w.f&&Math.abs(r-s.circle.cy)<w.f;)a=s.N,u.push(s),h(s),s=a;u.push(s),Object(_.b)(s);var f,l=u.length;for(f=1;f<l;++f)s=u[f],c=u[f-1],Object(O.d)(s.edge,c.site,s.site,i);c=u[0],(s=u[l-1]).edge=Object(O.c)(c.site,s.site,null,i),Object(_.a)(c),Object(_.a)(s)},e.a=function(t){var e,n,r,i,o=t[0],a=t[1],u=w.a._;for(;u;)if((r=M(u,a)-o)>w.f)u=u.L;else{if(!((i=o-E(u,a))>w.f)){r>-w.f?(e=u.P,n=u):i>-w.f?n=(e=u).N:e=n=u;break}if(!u.R){e=u;break}u=u.R}Object(j.c)(t);var c=S(t);if(w.a.insert(e,c),!e&&!n)return;if(e===n)return Object(_.b)(e),n=S(e.site),w.a.insert(c,n),c.edge=n.edge=Object(O.c)(e.site,c.site),Object(_.a)(e),void Object(_.a)(n);if(!n)return void(c.edge=Object(O.c)(e.site,c.site));Object(_.b)(e),Object(_.b)(n);var s=e.site,f=s[0],l=s[1],h=t[0]-f,p=t[1]-l,v=n.site,g=v[0]-f,d=v[1]-l,y=2*(h*d-p*g),b=h*h+p*p,m=g*g+d*d,x=[(d*b-p*m)/y+f,(h*m-g*b)/y+l];Object(O.d)(n.edge,s,v,x),c.edge=Object(O.c)(s,t,null,x),n.edge=Object(O.c)(t,v,null,x),Object(_.a)(e),Object(_.a)(n)};var r=n(135),j=n(271),_=n(272),O=n(136),w=n(56),i=[];function S(t){var e=i.pop()||new function(){Object(r.a)(this),this.edge=this.site=this.circle=null};return e.site=t,e}function h(t){Object(_.b)(t),w.a.remove(t),i.push(t),Object(r.a)(t)}function M(t,e){var n=t.site,r=n[0],i=n[1],o=i-e;if(!o)return r;var a=t.P;if(!a)return-1/0;var u=(n=a.site)[0],c=n[1],s=c-e;if(!s)return u;var f=u-r,l=1/o-1/s,h=f/s;return l?(-h+Math.sqrt(h*h-2*l*(f*f/(-2*s)-c+s/2+i-o/2)))/l+r:(r+u)/2}function E(t,e){var n=t.N;if(n)return M(n,e);var r=t.site;return r[1]===e?r[0]:1/0}},function(t,e,n){var c=n(3),s=n(36),f=n(4),r=n(2),l=r.HIERARCHY,i=r.registerTransform,h=n(7).getField,p={field:"value",size:[1,1],nodeSize:null,separation:null,as:["x","y"]};function o(t,e){if(t.dataType!==l)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root,r=(e=c({},p,e)).as;if(!f(r)||2!==r.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var i=void 0;try{i=h(e)}catch(t){console.warn(t)}i&&n.sum(function(t){return t[i]});var o=s.cluster();o.size(e.size),e.nodeSize&&o.nodeSize(e.nodeSize),e.separation&&o.separation(e.separation),o(n);var a=r[0],u=r[1];n.each(function(t){t[a]=t.x,t[u]=t.y})}i("hierarchy.cluster",o),i("dendrogram",o)},function(t,e,n){var r=n(137),i=n(716),o=n(274),a=n(3),u=n(2),c=u.HIERARCHY,s=u.registerTransform,f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.execute=function(){var t=o(this.rootNode,this.options,i);return t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),t},e}(r),l={};function h(t,e){var n=t.root;if(e=a({},l,e),t.dataType!==c)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var r=new f(n,e).execute();t.root=r}s("hierarchy.compact-box",h),s("compact-box-tree",h),s("non-layered-tidy-tree",h),s("mindmap-logical",h)},function(t,e){var r=function t(e,n,r){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:[];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var o=this;o.w=e||0,o.h=n||0,o.y=r||0,o.x=0,o.c=i||[],o.cs=i.length,o.prelim=0,o.mod=0,o.shift=0,o.change=0,o.tl=null,o.tr=null,o.el=null,o.er=null,o.msel=0,o.mser=0};function i(t,e){!function e(t,n,r){r?t.y+=n:t.x+=n,t.children.forEach(function(t){e(t,n,r)})}(t,-function e(t,n){var r=n?t.y:t.x;return t.children.forEach(function(t){r=Math.min(e(t,n),r)}),r}(t,e),e)}r.fromNode=function(t,e){if(!t)return null;var n=[];return t.children.forEach(function(t){n.push(r.fromNode(t,e))}),e?new r(t.height,t.width,t.x,n):new r(t.width,t.height,t.y,n)},t.exports=function(t){var e=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).isHorizontal;function a(t){0===t.cs?((t.el=t).er=t).msel=t.mser=0:(t.el=t.c[0].el,t.msel=t.c[0].msel,t.er=t.c[t.cs-1].er,t.mser=t.c[t.cs-1].mser)}function u(t,e,n){for(var r,i,o=t.c[e-1],a=o.mod,u=t.c[e],c=u.mod;null!==o&&null!==u;){p(o)>n.low&&(n=n.nxt);var s=a+o.prelim+o.w-(c+u.prelim);0<s&&(c+=s,h(t,e,n.index,s));var f=p(o),l=p(u);f<=l&&null!==(o=0===(i=o).cs?i.tr:i.c[i.cs-1])&&(a+=o.mod),l<=f&&null!==(u=0===(r=u).cs?r.tl:r.c[0])&&(c+=u.mod)}!o&&u?function(t,e,n,r){var i=t.c[0].el;i.tl=n;var o=r-n.mod-t.c[0].msel;i.mod+=o,i.prelim-=o,t.c[0].el=t.c[e].el,t.c[0].msel=t.c[e].msel}(t,e,u,c):o&&!u&&function(t,e,n,r){var i=t.c[e].er;i.tr=n;var o=r-n.mod-t.c[e].mser;i.mod+=o,i.prelim-=o,t.c[e].er=t.c[e-1].er,t.c[e].mser=t.c[e-1].mser}(t,e,o,a)}function h(t,e,n,r){t.c[e].mod+=r,t.c[e].msel+=r,t.c[e].mser+=r,function(t,e,n,r){if(n!==e-1){var i=e-n;t.c[n+1].shift+=r/i,t.c[e].shift-=r/i,t.c[e].change-=r-r/i}}(t,e,n,r)}function p(t){return t.y+t.h}function c(t,e,n){for(;null!==n&&t>=n.low;)n=n.nxt;return{low:t,index:e,nxt:n}}!function e(t,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;n?(t.x=r,r+=t.width):(t.y=r,r+=t.height),t.children.forEach(function(t){e(t,n,r)})}(t,e);var n=r.fromNode(t,e);return function t(e){if(0!==e.cs){t(e.c[0]);for(var n,r=c(p(e.c[0].el),0,null),i=1;i<e.cs;++i){t(e.c[i]);var o=p(e.c[i].er);u(e,i,r),r=c(o,i,r)}(n=e).prelim=(n.c[0].prelim+n.c[0].mod+n.c[n.cs-1].mod+n.c[n.cs-1].prelim+n.c[n.cs-1].w)/2-n.w/2,a(e)}else a(e)}(n),function t(e,n){n+=e.mod,e.x=e.prelim+n,function(t){for(var e=0,n=0,r=0;r<t.cs;r++)e+=t.c[r].shift,n+=e+t.c[r].change,t.c[r].mod+=n}(e);for(var r=0;r<e.cs;r++)t(e.c[r],n)}(n,0),function n(t,r,i){i?r.y=t.x:r.x=t.x,t.c.forEach(function(t,e){n(t,r.children[e],i)})}(n,t,e),i(t,e),t}},function(t,e,n){var r=n(137),i=n(718),o=n(274),a=n(3),u=n(2),c=u.HIERARCHY,s=u.registerTransform,f=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.execute=function(){return this.rootNode.width=0,o(this.rootNode,this.options,i)},e}(r),l={};function h(t,e){var n=t.root;if(e=a({},l,e),t.dataType!==c)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var r=new f(n,e).execute();t.root=r}s("hierarchy.dendrogram",h),s("dendrogram",h)},function(t,e){var u=function t(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);this.x=this.y=0,this.leftChild=this.rightChild=null,this.height=e||0,this.children=n},i={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};t.exports=function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};n=Object.assign({},i,n);var a=0;var r=void 0;var e=function r(t){if(!t)return null;t.width=0,t.depth&&t.depth>a&&(a=t.depth);var e=t.children,i=e.length,o=new u(t.height,[]);return e.forEach(function(t,e){var n=r(t);o.children.push(n),0===e&&(o.leftChild=n),e===i-1&&(o.rightChild=n)}),o.originNode=t,o.isLeaf=t.isLeaf(),o}(t);return function e(t){if(t.isLeaf||0===t.children.length)t.drawingDepth=a;else{var n=t.children.map(function(t){return e(t)}),r=Math.min.apply(null,n);t.drawingDepth=r-1}return t.drawingDepth}(e),function e(t){t.x=t.drawingDepth*n.rankSep,t.isLeaf?(t.y=0,r&&(t.y=r.y+r.height+n.nodeSep,t.originNode.parent!==r.originNode.parent&&(t.y+=n.subTreeSep)),r=t):(t.children.forEach(function(t){e(t)}),t.y=(t.leftChild.y+t.rightChild.y)/2)}(e),function n(t,r,i){i?(r.x=t.x,r.y=t.y):(r.x=t.y,r.y=t.x),t.children.forEach(function(t,e){n(t,r.children[e],i)})}(e,t,n.isHorizontal),t}},function(t,e,n){var r=n(137),c=n(720),i=n(3),s=n(275),o=n(2),a=o.HIERARCHY,u=o.registerTransform,f=["LR","RL","H"],l=f[0],h=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.execute=function(){var t=this.options,e=this.rootNode;t.isHorizontal=!0;var n=t.indent,r=t.direction||l;if(r&&-1===f.indexOf(r))throw new TypeError("Invalid direction: "+r);if(r===f[0])c(e,n);else if(r===f[1])c(e,n),e.right2left();else if(r===f[2]){var i=s(e,t),o=i.left,a=i.right;c(o,n),o.right2left(),c(a,n);var u=o.getBoundingBox();a.translate(u.width,0),e.x=a.x-e.width/2}return e},e}(r),p={};function v(t,e){var n=t.root;if(e=i({},p,e),t.dataType!==a)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var r=new h(n,e).execute();t.root=r}u("hierarchy.indented",v),u("indented-tree",v)},function(t,e){t.exports=function(t){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:20,o=null;t.eachNode(function(t){var e,n,r;n=o,r=i,(e=t).x+=r*e.depth,e.y=n?n.y+n.height:0,o=t})}},function(t,e,n){var s=n(3),f=n(36),l=n(4),r=n(2),h=r.HIERARCHY,i=r.registerTransform,p=n(7).getField,v={field:"value",size:[1,1],padding:0,as:["x","y","r"]};function o(t,e){if(t.dataType!==h)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root,r=(e=s({},v,e)).as;if(!l(r)||3!==r.length)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "r" ])!');var i=void 0;try{i=p(e)}catch(t){console.warn(t)}i&&n.sum(function(t){return t[i]}).sort(function(t,e){return e[i]-t[i]});var o=f.pack();o.size(e.size),e.padding&&o.padding(e.padding),o(n);var a=r[0],u=r[1],c=r[2];n.each(function(t){t[a]=t.x,t[u]=t.y,t[c]=t.r})}i("hierarchy.pack",o),i("hierarchy.circle-packing",o),i("circle-packing",o)},function(t,e,n){var c=n(3),s=n(36),f=n(4),r=n(2),l=r.HIERARCHY,i=r.registerTransform,h=n(7).getField,p={field:"value",size:[1,1],round:!1,padding:0,sort:!0,as:["x","y"]};function o(t,e){if(t.dataType!==l)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root,r=(e=c({},p,e)).as;if(!f(r)||2!==r.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var i=void 0;try{i=h(e)}catch(t){console.warn(t)}i&&n.sum(function(t){return t[i]});var o=s.partition();o.size(e.size).round(e.round).padding(e.padding),o(n);var a=r[0],u=r[1];n.each(function(e){e[a]=[e.x0,e.x1,e.x1,e.x0],e[u]=[e.y1,e.y1,e.y0,e.y0],["x0","x1","y0","y1"].forEach(function(t){-1===r.indexOf(t)&&delete e[t]})})}i("hierarchy.partition",o),i("adjacency",o)},function(t,e,n){var c=n(3),s=n(36),f=n(4),r=n(2),l=r.HIERARCHY,i=r.registerTransform,h=n(7).getField,p={field:"value",size:[1,1],nodeSize:null,separation:null,as:["x","y"]};function o(t,e){if(t.dataType!==l)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root,r=(e=c({},p,e)).as;if(!f(r)||2!==r.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var i=void 0;try{i=h(e)}catch(t){console.warn(t)}i&&n.sum(function(t){return t[i]});var o=s.tree();o.size(e.size),e.nodeSize&&o.nodeSize(e.nodeSize),e.separation&&o.separation(e.separation),o(n);var a=r[0],u=r[1];n.each(function(t){t[a]=t.x,t[u]=t.y})}i("hierarchy.tree",o),i("tree",o)},function(t,e,n){var c=n(3),s=n(36),f=n(4),r=n(2),l=r.HIERARCHY,i=r.registerTransform,h=n(7).getField,p={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"]};function o(t,e){if(t.dataType!==l)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root,r=(e=c({},p,e)).as;if(!f(r)||2!==r.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var i=void 0;try{i=h(e)}catch(t){console.warn(t)}i&&n.sum(function(t){return t[i]});var o=s.treemap();o.tile(s[e.tile]).size(e.size).round(e.round).padding(e.padding).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft),o(n);var a=r[0],u=r[1];n.each(function(e){e[a]=[e.x0,e.x1,e.x1,e.x0],e[u]=[e.y1,e.y1,e.y0,e.y0],["x0","x1","y0","y1"].forEach(function(t){-1===r.indexOf(t)&&delete e[t]})})}i("hierarchy.treemap",o),i("treemap",o)},function(t,e,n){var v=n(3),g=n(8),r=n(2).registerTransform,d=n(726),y=n(7).getFields,b={fields:["text","value"],font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:500};function i(t,e){e=v({},b,e);var n=d();["font","fontSize","padding","rotate","size","spiral","timeInterval"].forEach(function(t){e[t]&&n[t](e[t])});var r=y(e),i=r[0],o=r[1];if(!g(i)||!g(o))throw new TypeError('Invalid fields: must be an array with 2 strings (e.g. [ "text", "value" ])!');var a=t.rows.map(function(t){return t.text=t[i],t.value=t[o],t});n.words(a),e.imageMask&&n.createMask(e.imageMask);var u=n.start(),c=u._tags,s=u._bounds;c.forEach(function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2});var f=e.size,l=f[0],h=f[1],p=u.hasImage;c.push({text:"",value:0,x:p?0:s[0].x,y:p?0:s[0].y,opacity:0}),c.push({text:"",value:0,x:p?l:s[1].x,y:p?h:s[1].y,opacity:0}),t.rows=c,t._tagCloud=u}r("tag-cloud",i),r("word-cloud",i)},function(t,e){var A=Math.PI/180,T=64,k=2048;function a(t){return t.text}function u(){return"serif"}function c(){return"normal"}function s(t){return t.value}function f(){return 90*~~(2*Math.random())}function l(){return 1}function _(t,e,n,r){if(!e.sprite){var i=t.context,o=t.ratio;i.clearRect(0,0,(T<<5)/o,k/o);var a=0,u=0,c=0,s=n.length;for(--r;++r<s;){e=n[r],i.save(),i.font=e.style+" "+e.weight+" "+~~((e.size+1)/o)+"px "+e.font;var f=i.measureText(e.text+"m").width*o,l=e.size<<1;if(e.rotate){var h=Math.sin(e.rotate*A),p=Math.cos(e.rotate*A),v=f*p,g=f*h,d=l*p,y=l*h;f=Math.max(Math.abs(v+y),Math.abs(v-y))+31>>5<<5,l=~~Math.max(Math.abs(g+d),Math.abs(g-d))}else f=f+31>>5<<5;if(c<l&&(c=l),T<<5<=a+f&&(u+=c,c=a=0),k<=u+l)break;i.translate((a+(f>>1))/o,(u+(l>>1))/o),e.rotate&&i.rotate(e.rotate*A),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=f,e.height=l,e.xoff=a,e.yoff=u,e.x1=f>>1,e.y1=l>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,a+=f}for(var b=i.getImageData(0,0,(T<<5)/o,k/o).data,m=[];0<=--r;)if((e=n[r]).hasText){for(var x=e.width,j=x>>5,_=e.y1-e.y0,O=0;O<_*j;O++)m[O]=0;if(null==(a=e.xoff))return;u=e.yoff;for(var w=0,S=-1,M=0;M<_;M++){for(var E=0;E<x;E++){var C=j*M+(E>>5),P=b[(u+M)*(T<<5)+(a+E)<<2]?1<<31-E%32:0;m[C]|=P,w|=P}w?S=M:(e.y0++,_--,M--,u++)}e.y1=e.y0+S,e.sprite=m.slice(0,(e.y1-e.y0)*j)}}}function C(t,e,n){n>>=5;for(var r=t.sprite,i=t.width>>5,o=t.x-(i<<4),a=127&o,u=32-a,c=t.y1-t.y0,s=(t.y+t.y0)*n+(o>>5),f=void 0,l=0;l<c;l++){for(var h=f=0;h<=i;h++)if((f<<u|(h<i?(f=r[l*i+h])>>>a:0))&e[s+h])return!0;s+=n}return!1}function h(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function O(t){for(var e=[],n=-1;++n<t;)e[n]=0;return e}function p(){return document.createElement("canvas")}function v(t){return"function"==typeof t?t:function(){return t}}var w={archimedean:h,rectangular:function(t){var n=4*t[0]/t[1],r=0,i=0;return function(t){var e=t<0?-1:1;switch(Math.sqrt(1+4*e*t)-e&3){case 0:r+=n;break;case 1:i+=4;break;case 2:r-=n;break;default:i-=4}return[r,i]}}};t.exports=function(){var S=[256,256],n=a,r=u,i=s,o=c,g=c,d=f,y=l,M=h,e=[],b=1/0,E=Math.random,m=p,x={};function j(t,e,n){for(var r,i,o=e.x,a=e.y,u=Math.sqrt(S[0]*S[0]+S[1]*S[1]),c=M(S),s=E()<.5?1:-1,f=void 0,l=-s,h=void 0,p=void 0;(f=c(l+=s))&&(h=~~f[0],p=~~f[1],!(Math.min(Math.abs(h),Math.abs(p))>=u));)if(e.x=o+h,e.y=a+p,!(e.x+e.x0<0||e.y+e.y0<0||e.x+e.x1>S[0]||e.y+e.y1>S[1]||n&&C(e,t,S[0])||n&&(i=n,!((r=e).x+r.x1>i[0].x&&r.x+r.x0<i[1].x&&r.y+r.y1>i[0].y&&r.y+r.y0<i[1].y)))){for(var v=e.sprite,g=e.width>>5,d=S[0]>>5,y=e.x-(g<<4),b=127&y,m=32-b,x=e.y1-e.y0,j=void 0,_=(e.y+e.y0)*d+(y>>5),O=0;O<x;O++){for(var w=j=0;w<=g;w++)t[_+w]|=j<<m|(w<g?(j=v[O*g+w])>>>b:0);_+=d}return delete e.sprite,!0}return!1}return x.canvas=function(t){return arguments.length?(m=v(t),x):m},x.start=function(){var t=S,a=t[0],u=t[1],c=function(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=(T<<5)/e,t.height=k/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}(m()),s=x.board?x.board:O((S[0]>>5)*S[1]),f=e.length,l=[],h=e.map(function(t,e){return t.text=n.call(this,t,e),t.font=r.call(this,t,e),t.style=o.call(this,t,e),t.weight=g.call(this,t,e),t.rotate=d.call(this,t,e),t.size=~~i.call(this,t,e),t.padding=y.call(this,t,e),t}).sort(function(t,e){return e.size-t.size}),p=-1,v=x.board?[{x:0,y:0},{x:a,y:u}]:null;return function(){var t=Date.now();for(;Date.now()-t<b&&++p<f;){var e=h[p];e.x=a*(E()+.5)>>1,e.y=u*(E()+.5)>>1,_(c,e,h,p),e.hasText&&j(s,e,v)&&(l.push(e),v?x.hasImage||(r=e,o=i=void 0,i=(n=v)[0],o=n[1],r.x+r.x0<i.x&&(i.x=r.x+r.x0),r.y+r.y0<i.y&&(i.y=r.y+r.y0),r.x+r.x1>o.x&&(o.x=r.x+r.x1),r.y+r.y1>o.y&&(o.y=r.y+r.y1)):v=[{x:e.x+e.x0,y:e.y+e.y0},{x:e.x+e.x1,y:e.y+e.y1}],e.x-=S[0]>>1,e.y-=S[1]>>1)}var n,r,i,o;x._tags=l,x._bounds=v}(),x},x.createMask=function(t){var e=document.createElement("canvas"),n=S,r=n[0],i=n[1],o=r>>5,a=O((r>>5)*i);e.width=r,e.height=i;var u=e.getContext("2d");u.drawImage(t,0,0,t.width,t.height,0,0,r,i);for(var c=u.getImageData(0,0,r,i).data,s=0;s<i;s++)for(var f=0;f<r;f++){var l=o*s+(f>>5),h=s*r+f<<2,p=250<=c[h]&&250<=c[h+1]&&250<=c[h+2]?1<<31-f%32:0;a[l]|=p}x.board=a,x.hasImage=!0},x.timeInterval=function(t){return arguments.length?(b=null==t?1/0:t,x):b},x.words=function(t){return arguments.length?(e=t,x):e},x.size=function(t){return arguments.length?(S=[+t[0],+t[1]],x):S},x.font=function(t){return arguments.length?(r=v(t),x):r},x.fontStyle=function(t){return arguments.length?(o=v(t),x):o},x.fontWeight=function(t){return arguments.length?(g=v(t),x):g},x.rotate=function(t){return arguments.length?(d=v(t),x):d},x.text=function(t){return arguments.length?(n=v(t),x):n},x.spiral=function(t){return arguments.length?(M=w[t]||t,x):M},x.fontSize=function(t){return arguments.length?(i=v(t),x):i},x.padding=function(t){return arguments.length?(y=v(t),x):y},x.random=function(t){return arguments.length?(E=t,x):E},x}},function(t,e,n){var _=n(3),O=n(728),w=n(10),S=n(9),M=n(730),E=n(48),C=n(23).sum,P=n(15),r=n(2).registerTransform,A=n(7).getFields,T={fields:["name","value"],rows:5,size:[1,1],scale:1,groupBy:[],maxCount:1e3,gapRatio:.1,as:["x","y"]};r("waffle",function(t,e){e=_({},T,e);var n=A(e),s=n[0],f=n[1],r=e.as,l=r[0],h=r[1],p=e.groupBy,i=P(t.rows,p),o=S(i),a=e.size,u=a[0],c=a[1],v=e.maxCount,g=c/o.length,d=e.rows,y=e.gapRatio,b=[],m=e.scale,x=0,j=0;w(i,function(t){var e=C(M(t,function(t){return t[f]})),n=Math.ceil(e*m/d);v<e*m&&(m=v/e,n=Math.ceil(e*m/d)),j=u/n}),w(i,function(t){var o=[x*g,(x+1)*g],a=(o[1]-o[0])*(1-y)/d,u=0,c=0;O(t,function(t){for(var e=t[f],n=Math.round(e*m),r=0;r<n;r++){c===d&&(c=0,u++);var i=E(t,[s,f].concat(p));i[l]=u*j+j/2,i[h]=c*a+a/2+o[0],i._wStep=j,i._hStep=a,c++,b.push(i)}}),x+=1}),t.rows=b})},function(t,e,n){t.exports=n(729)},function(t,e,n){var r=n(185),i=n(115),o=n(206),a=n(4);t.exports=function(t,e){return(a(t)?r:i)(t,o(e))}},function(t,e,n){var r=n(46),i=n(44),o=n(255),a=n(4);t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},function(t,e,n){var C=n(3),P=n(4),A=n(11),T=n(127),k=n(8),r=n(9),I=n(128),L=n(276),i=n(2).registerTransform,R=n(7).getFields,D=n(129).silverman,B={as:["x","y","z"],method:"gaussian",extent:[],bandwidth:[]},F=r(L);function o(t,e){e=C({},B,e);var n=R(e);if(!P(n)||2!==n.length)throw new TypeError("invalid fields: must be an array of 2 strings!");var r=e.as,i=r[0],o=r[1],a=r[2];if(!k(i)||!k(o)||!k(a))throw new TypeError("invalid as: must be an array of 3 strings!");var u=e.method;if(k(u)){if(-1===F.indexOf(u))throw new TypeError("invalid method: "+u+". Must be one of "+F.join(", "));u=L[u]}if(!A(u))throw new TypeError("invalid method: kernel method must be a function!");var c=n[0],s=n[1],f=e.extent,l=f[0],h=f[1];P(l)&&P(h)||(l=t.range(c),h=t.range(s));var p=e.bandwidth,v=p[0],g=p[1];(!T(v)||v<=0||!T(g)||g<=0)&&(v=D(t.getColumn(c)),g=D(t.getColumn(s)));for(var d=I(l,v),y=I(h,g),b=t.rows.length,m=[],x=0;x<d.length;x++)for(var j=0;j<y.length;j++){for(var _=0,O=d[x],w=y[j],S=0;S<b;S++)_+=u((O-t.rows[S][c])/v)*u((w-t.rows[S][s])/g);var M=1/(b*v*g)*_,E={};E[i]=O,E[o]=w,E[a]=M,m.push(E)}t.rows=m}i("kernel-smooth.density",o),i("kernel.density",o),t.exports={KERNEL_METHODS:F}},function(t,e,n){var b=n(3),m=n(4),x=n(11),j=n(241),_=n(127),O=n(8),r=n(9),w=n(23).sum,S=n(128),M=n(276),i=n(2).registerTransform,E=n(7).getFields,C=n(129).silverman,P={as:["x","y"],method:"gaussian"},A=r(M);function T(e){return function(t){return m(t)?t.map(function(t){return e(t)}):e(t)}}function o(t,e){e=b({},P,e);var n=E(e);if(!m(n)||1!==n.length&&2!==n.length)throw new TypeError("invalid fields: must be an array of 1 or 2 strings!");var r=e.as,i=r[0],o=r[1];if(!O(i)||!O(o))throw new TypeError("invalid as: must be an array of 2 strings!");var a=e.method;if(O(a)){if(-1===A.indexOf(a))throw new TypeError("invalid method: "+a+". Must be one of "+A.join(", "));a=M[a]}if(!x(a))throw new TypeError("invalid method: kernel method must be a function!");var u=n[0],c=n[1],s=t.getColumn(u),f=e.extent;m(f)||(f=t.range(u));var l=e.bandwidth;(!_(l)||l<=0)&&(l=C(s));var h=S(f,l),p=s.length,v=function(t,e,n,r){return t((r-n)/e)}.bind(null,a,l),g=void 0;if(j(c))g=T(function(e){var t=s.map(function(t){return v(e,t)}),n=w(t),r=p*l;return n&&r?n/r:0});else{var d=t.getColumn(c);g=T(function(e){var t=s.map(function(t){return v(e,t)}),n=w(t.map(function(t,e){return t*d[e]})),r=w(t);return n&&r?n/r:0})}var y=h.map(function(t){var e={};return e[i]=t,e[o]=g(t),e});t.rows=y}i("kernel-smooth.regression",o),i("kernel.regression",o),t.exports={KERNEL_METHODS:A}}])},"object"==typeof n&&"object"==typeof e?e.exports=i():"function"==typeof define&&define.amd?define([],i):"object"==typeof n?n.DataSet=i():r.DataSet=i()},{}],4:[function(t,e,n){var r,i;r="undefined"!=typeof self?self:this,i=function(){return function(n){var r={};function i(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}return i.m=n,i.c=r,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=169)}([function(t,e,n){var o=5;function i(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}var a={assign:n(57),cloneDeep:n(102),each:n(234),filter:n(241),flatten:n(119),groupBy:n(264),indexOf:n(268),isArray:n(3),isBoolean:n(273),isDate:n(274),isEmpty:n(276),isEqual:n(277),isEqualWith:n(278),isFinite:n(279),isFunction:n(59),isNaN:n(280),isNil:n(125),isNull:n(281),isNumber:n(124),isObject:n(10),isPlainObject:n(282),isString:n(126),lowerFirst:n(283),map:n(288),maxBy:n(290),minBy:n(292),pick:n(294),reduce:n(299),replace:n(301),round:n(302),toArray:n(304),union:n(308),uniq:n(314),upperCase:n(315),upperFirst:n(324),snapEqual:function(t,e){return Math.abs(t-e)<.001},fixedBase:function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return 20<i&&(i=20),parseFloat(t.toFixed(i))},mix:function(t,e,n,r){return e&&i(t,e),n&&i(t,n),r&&i(t,r),t},inArray:function(t,e){return 0<=t.indexOf(e)},wrapBehavior:function(e,n){if(e["_wrap_"+n])return e["_wrap_"+n];var t=function(t){e[n](t)};return e["_wrap_"+n]=t},getWrapBehavior:function(t,e){return t["_wrap_"+e]},toAllPadding:function(t){var e=0,n=0,r=0,i=0;return a.isNumber(t)||a.isString(t)?e=n=r=i=t:a.isArray(t)?(e=t[0],r=a.isNil(t[1])?t[0]:t[1],i=a.isNil(t[2])?t[0]:t[2],n=a.isNil(t[3])?r:t[3]):a.isObject(t)&&(e=t.top||0,r=t.right||0,i=t.bottom||0,n=t.left||0),[e,r,i,n]},substitute:function(t,n){return t&&n?t.replace(/\\?\{([^{}]+)\}/g,function(t,e){return"\\"===t.charAt(0)?t.slice(1):void 0===n[e]?"":n[e]}):t}};function u(t,e,n){for(var r in n=n||0,e)if(e.hasOwnProperty(r)){var i=e[r];null!==i&&a.isPlainObject(i)?(a.isPlainObject(t[r])||(t[r]={}),n<o?u(t[r],e[r],n+1):t[r]=e[r]):a.isArray(i)?(t[r]=[],t[r]=t[r].concat(i)):void 0!==i&&(t[r]=e[r])}}a.deepMix=function(){for(var t=a.toArray(arguments),e=t[0],n=1;n<t.length;n++){u(e,t[n])}return e},a.Array={merge:function(t){for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e},values:function(t,e){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i][e];a.isNil(o)||(a.isArray(o)||(o=[o]),a.each(o,function(t){r[t]||(n.push(t),r[t]=!0)}))}return n},getRange:function(t){if(!(t=a.filter(t,function(t){return!isNaN(t)})).length)return{min:0,max:0};if(a.isArray(t[0])){for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);t=e}var r=Math.max.apply(null,t);return{min:Math.min.apply(null,t),max:r}},firstValue:function(t,e){for(var n=null,r=0;r<t.length;r++){var i=t[r][e];if(!a.isNil(i)){n=a.isArray(i)?i[0]:i;break}}return n},group:function(t,e){if(!e)return[t];var n=a.Array.groupToMap(t,e),r=[];for(var i in n)r.push(n[i]);return r},groupToMap:function(t,e){if(!e)return{0:t};if(!a.isFunction(e)){var i=a.isArray(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",n=0,r=i.length;n<r;n++)e+=t[i[n]]&&t[i[n]].toString();return e}}return a.groupBy(t,e)},remove:function(t,e){var n=a.indexOf(t,e);-1!==n&&t.splice(n,1)}},t.exports=a},function(t,e,n){var r=n(0),i=n(335),o={version:"3.0.5-beta.6",trackable:!0,animate:!0,snapArray:[0,1,2,4,5,10],snapCountArray:[0,1,1.2,1.5,1.6,2,2.2,2.4,2.5,3,4,5,6,7.5,8,10],widthRatio:{column:.5,rose:.9999999,multiplePie:1/1.3},showSinglePoint:!1,connectNulls:!1,scales:{}};function a(t){var e={};e=r.isObject(t)?t:-1!==r.indexOf(Object.keys(i),t)?i[t]:i.default,r.deepMix(o,e)}a("default"),o.setTheme=a,t.exports=o},function(t,o,e){(function(t){var e,n,r,i,E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};i=function(){return function(n){var r={};function i(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}return i.m=n,i.c=r,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=114)}([function(t,e,n){var r=n(17),i=n(87),o={};r.merge(o,r,i,{mixin:function(n,t){var r=n.CFG?"CFG":"ATTRS";if(n&&t){n._mixins=t,n[r]=n[r]||{};var i={};o.each(t,function(t){o.augment(n,t);var e=t[r];e&&o.merge(i,e)}),n[r]=o.merge(i,n[r])}}}),t.exports=o},function(t,e,n){var o=n(0),r=n(90),a=n(2),i=function t(e){t.superclass.constructor.call(this,e)};i.ATTRS={},o.extend(i,r),o.augment(i,{isShape:!0,createPath:function(){},drawInner:function(t){var e=this.__attrs;this.createPath(t);var n=t.globalAlpha;if(this.hasFill()){var r=e.fillOpacity;o.isNil(r)||1===r?t.fill():(t.globalAlpha=r,t.fill(),t.globalAlpha=n)}if(this.hasStroke()&&0<this.__attrs.lineWidth){var i=e.strokeOpacity;o.isNil(i)||1===i||(t.globalAlpha=i),t.stroke()}},isPointInPath:function(){return!1},isHitBox:function(){return!0},isHit:function(t,e){var n=[t,e,1];if(this.invert(n),this.isHitBox()){var r=this.getBBox();if(r&&!a.box(r.minX,r.maxX,r.minY,r.maxY,n[0],n[1]))return!1}var i=this.__attrs.clip;return i?!!i.inside(t,e)&&this.isPointInPath(n[0],n[1]):this.isPointInPath(n[0],n[1])},calculateBox:function(){return null},getHitLineWidth:function(){var t=this.__attrs,e=t.lineAppendWidth||0;return(t.lineWidth||0)+e},clearTotalMatrix:function(){this.__cfg.totalMatrix=null,this.__cfg.region=null},clearBBox:function(){this.__cfg.box=null,this.__cfg.region=null},getBBox:function(){var t=this.__cfg.box;return t||((t=this.calculateBox())&&(t.x=t.minX,t.y=t.minY,t.width=t.maxX-t.minX,t.height=t.maxY-t.minY),this.__cfg.box=t),t}}),t.exports=i},function(t,e,n){var s=n(52),f=n(53),l=n(32),h=n(54);t.exports={line:function(t,e,n,r,i,o,a){var u=s.box(t,e,n,r,i);if(!this.box(u.minX,u.maxX,u.minY,u.maxY,o,a))return!1;var c=s.pointDistance(t,e,n,r,o,a);return!isNaN(c)&&c<=i/2},polyline:function(t,e,n,r){var i=t.length-1;if(i<1)return!1;for(var o=0;o<i;o++){var a=t[o][0],u=t[o][1],c=t[o+1][0],s=t[o+1][1];if(this.line(a,u,c,s,e,n,r))return!0}return!1},cubicline:function(t,e,n,r,i,o,a,u,c,s,f){return l.pointDistance(t,e,n,r,i,o,a,u,s,f)<=c/2},quadraticline:function(t,e,n,r,i,o,a,u,c){return f.pointDistance(t,e,n,r,i,o,u,c)<=a/2},arcline:function(t,e,n,r,i,o,a,u,c){return h.pointDistance(t,e,n,r,i,o,u,c)<=a/2},rect:function(t,e,n,r,i,o){return t<=i&&i<=t+n&&e<=o&&o<=e+r},circle:function(t,e,n,r,i){return Math.pow(r-t,2)+Math.pow(i-e,2)<=Math.pow(n,2)},box:function(t,e,n,r,i,o){return t<=i&&i<=e&&n<=o&&o<=r}}},function(t,e,n){var r=n(17),i=n(231),o=n(232),a=n(233);a.angle=function(t,e){var n=a.dot(t,e)/(a.length(t)*a.length(e));return Math.acos(r.clamp(n,-1,1))},a.direction=function(t,e){return t[0]*e[1]-e[0]*t[1]},a.angleTo=function(t,e,n){var r=a.angle(t,e),i=0<=a.direction(t,e);return n?i?2*Math.PI-r:r:i?r:2*Math.PI-r},a.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t},i.translate=function(t,e,n){var r=new Array(9);return i.fromTranslation(r,n),i.multiply(t,r,e)},i.rotate=function(t,e,n){var r=new Array(9);return i.fromRotation(r,n),i.multiply(t,r,e)},i.scale=function(t,e,n){var r=new Array(9);return i.fromScaling(r,n),i.multiply(t,r,e)},t.exports={mat3:i,vec2:a,vec3:o,transform:function(e,t){return e=r.clone(e),r.each(t,function(t){switch(t[0]){case"t":i.translate(e,e,[t[1],t[2]]);break;case"s":i.scale(e,e,[t[1],t[2]]);break;case"r":i.rotate(e,e,t[1]);break;case"m":i.multiply(e,e,t[1]);break;default:return!1}}),e}}},function(t,e){var n="function"==typeof Symbol&&"symbol"===E(Symbol.iterator)?function(t){return void 0===t?"undefined":E(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":E(t)};t.exports=function(t){return null!=t&&"object"==(void 0===t?"undefined":n(t))}},function(t,e,n){var r="function"==typeof Symbol&&"symbol"===E(Symbol.iterator)?function(t){return void 0===t?"undefined":E(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":E(t)},i=n(56),o="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,a=i||o||Function("return this")();t.exports=a},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var r=n(11),i=n(117),o=n(118),a="[object Null]",u="[object Undefined]",c=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?u:a:c&&c in Object(t)?i(t):o(t)}},function(t,e){var n="function"==typeof Symbol&&"symbol"===E(Symbol.iterator)?function(t){return void 0===t?"undefined":E(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":E(t)};t.exports=function(t){var e=void 0===t?"undefined":n(t);return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(22),i=n(61);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},function(t,e,n){var r=n(125),i=n(128);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},function(t,e,n){var r=n(5).Symbol;t.exports=r},function(t,e,n){var r=n(124),i=n(33),o=n(129),a=n(130),u=n(131),c=n(7),s=n(60),f="[object Map]",l="[object Promise]",h="[object Set]",p="[object WeakMap]",v="[object DataView]",g=s(r),d=s(i),y=s(o),b=s(a),m=s(u),x=c;(r&&x(new r(new ArrayBuffer(1)))!=v||i&&x(new i)!=f||o&&x(o.resolve())!=l||a&&x(new a)!=h||u&&x(new u)!=p)&&(x=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,r=n?s(n):"";if(r)switch(r){case g:return v;case d:return f;case y:return l;case b:return h;case m:return p}return e}),t.exports=x},function(t,e,n){var s=n(39),f=n(40);t.exports=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var u=e[o],c=r?r(n[u],t[u],u,n,t):void 0;void 0===c&&(c=t[u]),i?f(n,u,c):s(n,u,c)}return n}},function(t,e,n){var r=n(66),i=n(58),o=n(9);t.exports=function(t){return o(t)?r(t):i(t)}},function(t,e,n){"use strict";var r=n(49);n.d(e,"a",function(){return r.e}),n.d(e,"f",function(){return r.g}),n.d(e,"d",function(){return r.f});var i=n(250);n.d(e,"e",function(){return i.a}),n.d(e,"c",function(){return i.b});var o=n(251);n.d(e,"b",function(){return o.a})},function(t,e){var g=Math.PI,d=Math.sin,y=Math.cos,b=Math.atan2,m=10,x=g/3;function a(t,e,n,r,i,o){var a=void 0,u=void 0,c=void 0,s=void 0,f=void 0,l=void 0,h=void 0;if(!e.fill){var p=e.arrowLength||m,v=e.arrowAngle?e.arrowAngle*g/180:x;h=b(o-r,i-n),h-=g,f=e.lineWidth*y(h),l=e.lineWidth*d(h),a=i+p*y(h+v/2),u=o+p*d(h+v/2),c=i+p*y(h-v/2),s=o+p*d(h-v/2),t.moveTo(a-f,u-l),t.lineTo(i-f,o-l),t.lineTo(c-f,s-l),t.moveTo(i-f,o-l),t.lineTo(i+f,o+l),t.moveTo(i,o)}}t.exports={addStartArrow:function(t,e,n,r,i,o){e.startArrow&&a(t,e,n,r,i,o)},addEndArrow:function(t,e,n,r,i,o){e.endArrow&&a(t,e,n,r,i,o)}}},function(t,e,n){var r=Math.PI/180,i=180/Math.PI;t.exports={isFunction:n(22),isObject:n(8),isBoolean:n(119),isNil:n(120),isString:n(57),isArray:n(6),isNumber:n(121),isEmpty:n(122),uniqueId:n(135),clone:n(138),assign:n(181),merge:n(189),upperFirst:n(196),remove:n(202),each:n(210),isEqual:n(215),toArray:n(225),extend:function(t,e,n,r){this.isFunction(e)||(n=e,e=t,t=function(){});var i=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},o=i(e.prototype,t);return t.prototype=this.merge(o,t.prototype),t.superclass=i(e.prototype,e),this.merge(o,n),this.merge(t,r),t},augment:function(t){for(var e=this.toArray(arguments),n=1;n<e.length;n++){var r=e[n];this.isFunction(r)&&(r=r.prototype),this.merge(t.prototype,r)}},isNumberEqual:function(t,e){return Math.abs(t-e)<1e-5},toRadian:function(t){return r*t},toDegree:function(t){return i*t},mod:function(t,e){return(t%e+e)%e},clamp:function(t,e,n){return t<e?e:n<t?n:t}}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,c,s){(function(t){var e="function"==typeof Symbol&&"symbol"===E(Symbol.iterator)?function(t){return void 0===t?"undefined":E(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":E(t)},n=s(5),r=s(133),i="object"==e(c)&&c&&!c.nodeType&&c,o=i&&"object"==e(t)&&t&&!t.nodeType&&t,a=o&&o.exports===i?n.Buffer:void 0,u=(a?a.isBuffer:void 0)||r;t.exports=u}).call(c,s(35)(t))},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){"use strict";e.c=function(t,e){var n=e-t;return n?r(t,180<n||n<-180?n-360*Math.round(n/360):n):Object(a.a)(isNaN(t)?e:t)},e.b=function(o){return 1==(o=+o)?i:function(t,e){return e-t?(n=t,r=e,i=o,n=Math.pow(n,i),r=Math.pow(r,i)-n,i=1/i,function(t){return Math.pow(n+t*r,i)}):Object(a.a)(isNaN(t)?e:t);var n,r,i}},e.a=i;var a=n(94);function r(e,n){return function(t){return e+t*n}}function i(t,e){var n=e-t;return n?r(t,n):Object(a.a)(isNaN(t)?e:t)}},function(t,e,n){var r=n(7),i=n(8),o="[object AsyncFunction]",a="[object Function]",u="[object GeneratorFunction]",c="[object Proxy]";t.exports=function(t){if(!i(t))return!1;var e=r(t);return e==a||e==u||e==o||e==c}},function(t,e,n){var r=n(134),i=n(24),o=n(36),a=o&&o.isTypedArray,u=a?i(a):r;t.exports=u},function(t,e){t.exports=function(e){return function(t){return e(t)}}},function(t,e,n){var r=n(140),i=n(141),o=n(142),a=n(143),u=n(144);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,e,n){var r=n(20);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(10)(Object,"create");t.exports=r},function(t,e,n){var r=n(158);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){var r=n(66),i=n(165),o=n(9);t.exports=function(t){return o(t)?r(t,!0):i(t)}},function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},function(t,e,n){"use strict";e.a=function(e,n){return n-=e=+e,function(t){return e+n*t}}},function(t,e,n){var b=n(0),O=n(3).vec2;function w(t,e,n,r,i){var o=1-i;return o*o*(o*r+3*i*n)+i*i*(i*t+3*o*e)}function l(t,e,n,r,i,o,a,u,c,s,f){var l=void 0,h=.005,p=1/0,v=void 0,g=void 0,d=void 0,y=void 0,b=void 0,m=void 0,x=void 0,j=[c,s];for(v=0;v<1;v+=.05)g=[w(t,n,i,a,v),w(e,r,o,u,v)],(d=O.squaredDistance(j,g))<p&&(l=v,p=d);p=1/0;for(var _=0;_<32&&!(h<1e-4);_++)x=l+h,g=[w(t,n,i,a,m=l-h),w(e,r,o,u,m)],d=O.squaredDistance(j,g),0<=m&&d<p?(l=m,p=d):(b=[w(t,n,i,a,x),w(e,r,o,u,x)],y=O.squaredDistance(j,b),x<=1&&y<p?(l=x,p=y):h*=.5);return f&&(f.x=w(t,n,i,a,l),f.y=w(e,r,o,u,l)),Math.sqrt(p)}function m(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n}t.exports={at:w,derivativeAt:function(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)},projectPoint:function(t,e,n,r,i,o,a,u,c,s){var f={};return l(t,e,n,r,i,o,a,u,c,s,f),f},pointDistance:l,extrema:function(t,e,n,r){var i=3*t-9*e+9*n-3*r,o=6*e-12*n+6*r,a=3*n-3*r,u=[],c=void 0,s=void 0,f=void 0;if(b.isNumberEqual(i,0))b.isNumberEqual(o,0)||0<=(c=-a/o)&&c<=1&&u.push(c);else{var l=o*o-4*i*a;b.isNumberEqual(l,0)?u.push(-o/(2*i)):0<l&&(s=(-o-(f=Math.sqrt(l)))/(2*i),0<=(c=(-o+f)/(2*i))&&c<=1&&u.push(c),0<=s&&s<=1&&u.push(s))}return u},len:function(t,e,n,r,i,o,a,u,c){b.isNil(c)&&(c=1);for(var s=(c=1<c?1:c<0?0:c)/2,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],l=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0,p=0;p<12;p++){var v=s*f[p]+s,g=m(v,t,n,i,a),d=m(v,e,r,o,u),y=g*g+d*d;h+=l[p]*Math.sqrt(y)}return s*h}}},function(t,e,n){var r=n(10)(n(5),"Map");t.exports=r},function(t,e,n){var r=n(132),i=n(4),o=Object.prototype,a=o.hasOwnProperty,u=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=c},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,u,c){(function(t){var e="function"==typeof Symbol&&"symbol"===E(Symbol.iterator)?function(t){return void 0===t?"undefined":E(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":E(t)},n=c(56),r="object"==e(u)&&u&&!u.nodeType&&u,i=r&&"object"==e(t)&&t&&!t.nodeType&&t,o=i&&i.exports===r&&n.process,a=function(){try{return o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a}).call(u,c(35)(t))},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},function(t,e,n){var r=n(25),i=n(145),o=n(146),a=n(147),u=n(148),c=n(149);function s(t){var e=this.__data__=new r(t);this.size=e.size}s.prototype.clear=i,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=u,s.prototype.set=c,t.exports=s},function(t,e,n){var i=n(40),o=n(20),a=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var r=t[e];a.call(t,e)&&o(r,n)&&(void 0!==n||e in t)||i(t,e,n)}},function(t,e,n){var r=n(65);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){var r=n(168),i=n(69),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return o.call(e,t)}))}:i;t.exports=u},function(t,e,n){var r=n(59)(Object.getPrototypeOf,Object);t.exports=r},function(t,e,n){var r=n(74);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},function(t,e){t.exports=function(t){return t}},function(t,e){var n={EPSILON:1e-6};n.ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array,n.RANDOM=Math.random,n.ENABLE_SIMD=!1,n.SIMD_AVAILABLE=n.ARRAY_TYPE===Float32Array&&"SIMD"in this,n.USE_SIMD=n.ENABLE_SIMD&&n.SIMD_AVAILABLE,n.setMatrixArrayType=function(t){n.ARRAY_TYPE=t};var r=Math.PI/180;n.toRadian=function(t){return t*r},n.equals=function(t,e){return Math.abs(t-e)<=n.EPSILON*Math.max(1,Math.abs(t),Math.abs(e))},t.exports=n},function(t,e,n){var r="function"==typeof Symbol&&"symbol"===E(Symbol.iterator)?function(t){return void 0===t?"undefined":E(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":E(t)},s=n(17),i="\t\n\v\f\r   ᠎             　\u2028\u2029",u=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),c=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig"),x=function(t){if(!t)return null;if((void 0===t?"undefined":r(t))===r([]))return t;var o={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},a=[];return String(t).replace(u,function(t,e,n){var r=[],i=e.toLowerCase();if(n.replace(c,function(t,e){e&&r.push(+e)}),"m"===i&&2<r.length&&(a.push([e].concat(r.splice(0,2))),i="l",e="m"===e?"l":"L"),"o"===i&&1===r.length&&a.push([e,r[0]]),"r"===i)a.push([e].concat(r));else for(;r.length>=o[i]&&(a.push([e].concat(r.splice(0,o[i]))),o[i]););}),a},j=function(t,e){for(var n=[],r=0,i=t.length;r<i-2*!e;r+=2){var o=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?o[3]={x:+t[0],y:+t[1]}:i-2===r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},_=function(t,e,n,r,i){var o=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var a=Math.PI/180,u=t+n*Math.cos(-r*a),c=t+n*Math.cos(-i*a);o=[["M",u,e+n*Math.sin(-r*a)],["A",n,n,0,+(180<i-r),0,c,e+n*Math.sin(-i*a)]]}else o=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return o},m=function(t){if(!(t=x(t))||!t.length)return[["M",0,0]];var e=[],n=0,r=0,i=0,o=0,a=0,u=void 0,c=void 0;"M"===t[0][0]&&(i=n=+t[0][1],o=r=+t[0][2],a++,e[0]=["M",n,r]);for(var s,f,l=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),h=a,p=t.length;h<p;h++){if(e.push(s=[]),(u=(f=t[h])[0])!==u.toUpperCase())switch(s[0]=u.toUpperCase(),s[0]){case"A":s[1]=f[1],s[2]=f[2],s[3]=f[3],s[4]=f[4],s[5]=f[5],s[6]=+f[6]+n,s[7]=+f[7]+r;break;case"V":s[1]=+f[1]+r;break;case"H":s[1]=+f[1]+n;break;case"R":for(var v=2,g=(c=[n,r].concat(f.slice(1))).length;v<g;v++)c[v]=+c[v]+n,c[++v]=+c[v]+r;e.pop(),e=e.concat(j(c,l));break;case"O":e.pop(),(c=_(n,r,f[1],f[2])).push(c[0]),e=e.concat(c);break;case"U":e.pop(),e=e.concat(_(n,r,f[1],f[2],f[3])),s=["U"].concat(e[e.length-1].slice(-2));break;case"M":i=+f[1]+n,o=+f[2]+r;break;default:for(var d=1,y=f.length;d<y;d++)s[d]=+f[d]+(d%2?n:r)}else if("R"===u)c=[n,r].concat(f.slice(1)),e.pop(),e=e.concat(j(c,l)),s=["R"].concat(f.slice(-2));else if("O"===u)e.pop(),(c=_(n,r,f[1],f[2])).push(c[0]),e=e.concat(c);else if("U"===u)e.pop(),e=e.concat(_(n,r,f[1],f[2],f[3])),s=["U"].concat(e[e.length-1].slice(-2));else for(var b=0,m=f.length;b<m;b++)s[b]=f[b];if("O"!==(u=u.toUpperCase()))switch(s[0]){case"Z":n=+i,r=+o;break;case"H":n=s[1];break;case"V":r=s[1];break;case"M":i=s[s.length-2],o=s[s.length-1];break;default:n=s[s.length-2],r=s[s.length-1]}}return e},O=function(t,e,n,r){return[t,e,n,r,n,r]},w=function(t,e,n,r,i,o){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*o+2/3*r,i,o]},S=function(t,e){for(var r=[],i=[],n=m(t),o=e&&m(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},c=function(t,e,n){var r=void 0,i=void 0;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(function t(e,n,r,i,o,a,u,c,s,f){r===i&&(r+=1);var l=120*Math.PI/180,h=Math.PI/180*(+o||0),p=[],v=void 0,g=void 0,d=void 0,y=void 0,b=void 0,m=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(f)g=f[0],d=f[1],y=f[2],b=f[3];else{e=(v=m(e,n,-h)).x,n=v.y,c=(v=m(c,s,-h)).x,s=v.y,e===c&&n===s&&(c+=1,s+=1);var x=(e-c)/2,j=(n-s)/2,_=x*x/(r*r)+j*j/(i*i);1<_&&(r*=_=Math.sqrt(_),i*=_);var O=r*r,w=i*i,S=(a===u?-1:1)*Math.sqrt(Math.abs((O*w-O*j*j-w*x*x)/(O*j*j+w*x*x)));y=S*r*j/i+(e+c)/2,b=S*-i*x/r+(n+s)/2,g=Math.asin(((n-b)/i).toFixed(9)),d=Math.asin(((s-b)/i).toFixed(9)),g=e<y?Math.PI-g:g,d=c<y?Math.PI-d:d,g<0&&(g=2*Math.PI+g),d<0&&(d=2*Math.PI+d),u&&d<g&&(g-=2*Math.PI),!u&&g<d&&(d-=2*Math.PI)}var M=d-g;if(Math.abs(M)>l){var E=d,C=c,P=s;d=g+l*(u&&g<d?1:-1),p=t(c=y+r*Math.cos(d),s=b+i*Math.sin(d),r,i,o,0,u,C,P,[d,E,y,b])}M=d-g;var A=Math.cos(g),T=Math.sin(g),k=Math.cos(d),I=Math.sin(d),L=Math.tan(M/4),R=4/3*r*L,D=4/3*i*L,B=[e,n],F=[e+R*T,n-D*A],N=[c+R*I,s-D*k],z=[c,s];if(F[0]=2*B[0]-F[0],F[1]=2*B[1]-F[1],f)return[F,N,z].concat(p);for(var q=[],V=0,Y=(p=[F,N,z].concat(p).join().split(",")).length;V<Y;V++)q[V]=V%2?m(p[V-1],p[V],h).y:m(p[V],p[V+1],h).x;return q}.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(w(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(w(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(O(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(O(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(O(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(O(e.x,e.y,e.X,e.Y));break;default:t=[]}return t},s=function(t,e){if(7<t[e].length){t[e].shift();for(var n=t[e];n.length;)r[e]="A",o&&(i[e]="A"),t.splice(e++,0,["C"].concat(n.splice(0,6)));t.splice(e,1)}},f=function(t,e,n,r,i){t&&e&&"M"===t[i][0]&&"M"!==e[i][0]&&(e.splice(i,0,["M",r.x,r.y]),n.bx=0,n.by=0,n.x=t[i][1],n.y=t[i][2])},l="",h="",p=0,v=Math.max(n.length,o&&o.length||0);p<v;p++){n[p]&&(l=n[p][0]),"C"!==l&&(r[p]=l,p&&(h=r[p-1])),n[p]=c(n[p],a,h),"A"!==r[p]&&"C"===l&&(r[p]="C"),s(n,p),o&&(o[p]&&(l=o[p][0]),"C"!==l&&(i[p]=l,p&&(h=i[p-1])),o[p]=c(o[p],u,h),"A"!==i[p]&&"C"===l&&(i[p]="C"),s(o,p)),f(n,o,a,u,p),f(o,n,u,a,p);var g=n[p],d=o&&o[p],y=g.length,b=o&&d.length;a.x=g[y-2],a.y=g[y-1],a.bx=parseFloat(g[y-4])||a.x,a.by=parseFloat(g[y-3])||a.y,u.bx=o&&(parseFloat(d[b-4])||u.x),u.by=o&&(parseFloat(d[b-3])||u.y),u.x=o&&d[b-2],u.y=o&&d[b-1]}return o?[n,o]:n},o=/,?([a-z]),?/gi,a=function(t){return t.join(",").replace(o,"$1")},b=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},C=function(t,e,n,r,i,o,a,u,c){null===c&&(c=1);for(var s=(c=1<c?1:c<0?0:c)/2,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],l=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0,p=0;p<12;p++){var v=s*f[p]+s,g=b(v,t,n,i,a),d=b(v,e,r,o,u),y=g*g+d*d;h+=l[p]*Math.sqrt(y)}return s*h},P=function(t,e,n,r,i,o,a,u){if(!(Math.max(t,n)<Math.min(i,a)||Math.min(t,n)>Math.max(i,a)||Math.max(e,r)<Math.min(o,u)||Math.min(e,r)>Math.max(o,u))){var c=(t-n)*(o-u)-(e-r)*(i-a);if(c){var s=((t*r-e*n)*(i-a)-(t-n)*(i*u-o*a))/c,f=((t*r-e*n)*(o-u)-(e-r)*(i*u-o*a))/c,l=+s.toFixed(2),h=+f.toFixed(2);if(!(l<+Math.min(t,n).toFixed(2)||l>+Math.max(t,n).toFixed(2)||l<+Math.min(i,a).toFixed(2)||l>+Math.max(i,a).toFixed(2)||h<+Math.min(e,r).toFixed(2)||h>+Math.max(e,r).toFixed(2)||h<+Math.min(o,u).toFixed(2)||h>+Math.max(o,u).toFixed(2)))return{x:s,y:f}}}},A=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},f=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.parsePathArray=a,o},T=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:f(t,e,n,r),vb:[t,e,n,r].join(" ")}},k=function(t,e,n,r,i,o,a,u){s.isArray(t)||(t=[t,e,n,r,i,o,a,u]);var c=function(t,e,n,r,i,o,a,u){for(var c=[],s=[[],[]],f=void 0,l=void 0,h=void 0,p=void 0,v=0;v<2;++v)if(0===v?(l=6*t-12*n+6*i,f=-3*t+9*n-9*i+3*a,h=3*n-3*t):(l=6*e-12*r+6*o,f=-3*e+9*r-9*o+3*u,h=3*r-3*e),Math.abs(f)<1e-12){if(Math.abs(l)<1e-12)continue;0<(p=-h/l)&&p<1&&c.push(p)}else{var g=l*l-4*h*f,d=Math.sqrt(g);if(!(g<0)){var y=(-l+d)/(2*f);0<y&&y<1&&c.push(y);var b=(-l-d)/(2*f);0<b&&b<1&&c.push(b)}}for(var m=c.length,x=m,j=void 0;m--;)j=1-(p=c[m]),s[0][m]=j*j*j*t+3*j*j*p*n+3*j*p*p*i+p*p*p*a,s[1][m]=j*j*j*e+3*j*j*p*r+3*j*p*p*o+p*p*p*u;return s[0][x]=t,s[1][x]=e,s[0][x+1]=a,s[1][x+1]=u,s[0].length=s[1].length=x+2,{min:{x:Math.min.apply(0,s[0]),y:Math.min.apply(0,s[1])},max:{x:Math.max.apply(0,s[0]),y:Math.max.apply(0,s[1])}}}.apply(null,t);return T(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},I=function(t,e,n,r,i,o,a,u,c){var s=1-c,f=Math.pow(s,3),l=Math.pow(s,2),h=c*c,p=h*c,v=t+2*c*(n-t)+h*(i-2*n+t),g=e+2*c*(r-e)+h*(o-2*r+e),d=n+2*c*(i-n)+h*(a-2*i+n),y=r+2*c*(o-r)+h*(u-2*o+r);return{x:f*t+3*l*c*n+3*s*c*c*i+p*a,y:f*e+3*l*c*r+3*s*c*c*o+p*u,m:{x:v,y:g},n:{x:d,y:y},start:{x:s*t+c*n,y:s*e+c*r},end:{x:s*i+c*a,y:s*o+c*u},alpha:90-180*Math.atan2(v-d,g-y)/Math.PI}},M=function(t,e,n){var r,i,o=k(t),a=k(e);if(i=a,r=T(r=o),i=T(i),!(A(i,r.x,r.y)||A(i,r.x2,r.y)||A(i,r.x,r.y2)||A(i,r.x2,r.y2)||A(r,i.x,i.y)||A(r,i.x2,i.y)||A(r,i.x,i.y2)||A(r,i.x2,i.y2)||(r.x<i.x2&&r.x>i.x||i.x<r.x2&&i.x>r.x)&&(r.y<i.y2&&r.y>i.y||i.y<r.y2&&i.y>r.y)))return n?0:[];for(var u=~~(C.apply(0,t)/8),c=~~(C.apply(0,e)/8),s=[],f=[],l={},h=n?0:[],p=0;p<u+1;p++){var v=I.apply(0,t.concat(p/u));s.push({x:v.x,y:v.y,t:p/u})}for(var g=0;g<c+1;g++){var d=I.apply(0,e.concat(g/c));f.push({x:d.x,y:d.y,t:g/c})}for(var y=0;y<u;y++)for(var b=0;b<c;b++){var m=s[y],x=s[y+1],j=f[b],_=f[b+1],O=Math.abs(x.x-m.x)<.001?"y":"x",w=Math.abs(_.x-j.x)<.001?"y":"x",S=P(m.x,m.y,x.x,x.y,j.x,j.y,_.x,_.y);if(S){if(l[S.x.toFixed(4)]===S.y.toFixed(4))continue;l[S.x.toFixed(4)]=S.y.toFixed(4);var M=m.t+Math.abs((S[O]-m[O])/(x[O]-m[O]))*(x.t-m.t),E=j.t+Math.abs((S[w]-j[w])/(_[w]-j[w]))*(_.t-j.t);0<=M&&M<=1&&0<=E&&E<=1&&(n?h++:h.push({x:S.x,y:S.y,t1:M,t2:E}))}}return h};t.exports={parsePathString:x,parsePathArray:a,pathTocurve:S,pathToAbsolute:m,catmullRomToBezier:j,rectPath:f,intersection:function(t,e){return function(t,e,n){t=S(t),e=S(e);for(var r=void 0,i=void 0,o=void 0,a=void 0,u=void 0,c=void 0,s=void 0,f=void 0,l=void 0,h=void 0,p=n?0:[],v=0,g=t.length;v<g;v++){var d=t[v];if("M"===d[0])r=u=d[1],i=c=d[2];else{"C"===d[0]?(r=(l=[r,i].concat(d.slice(1)))[6],i=l[7]):(l=[r,i,r,i,u,c,u,c],r=u,i=c);for(var y=0,b=e.length;y<b;y++){var m=e[y];if("M"===m[0])o=s=m[1],a=f=m[2];else{"C"===m[0]?(o=(h=[o,a].concat(m.slice(1)))[6],a=h[7]):(h=[o,a,o,a,s,f,s,f],o=s,a=f);var x=M(l,h,n);if(n)p+=x;else{for(var j=0,_=x.length;j<_;j++)x[j].segment1=v,x[j].segment2=y,x[j].bez1=l,x[j].bez2=h;p=p.concat(x)}}}}}return p}(t,e)}}},function(t,e,n){"use strict";e.b=g,e.a=y,e.c=b,e.d=m;var i,o,r="function"==typeof Symbol&&"symbol"===E(Symbol.iterator)?function(t){return void 0===t?"undefined":E(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":E(t)},a=0,u=0,c=0,s=1e3,f=0,l=0,h=0,p="object"===("undefined"==typeof performance?"undefined":r(performance))&&performance.now?performance:Date,v="object"===("undefined"==typeof window?"undefined":r(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function g(){return l||(v(d),l=p.now()+h)}function d(){l=0}function y(){this._call=this._time=this._next=null}function b(t,e,n){var r=new y;return r.restart(t,e,n),r}function m(){g(),++a;for(var t,e=i;e;)0<=(t=l-e._time)&&e._call.call(null,t),e=e._next;--a}function x(){l=(f=p.now())+h,a=u=0;try{m()}finally{a=0,function(){var t,e,n=i,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),n=(t=n)._next):(e=n._next,n._next=null,n=t?t._next=e:i=e);o=t,_(r)}(),l=0}}function j(){var t=p.now(),e=t-f;s<e&&(h-=e,f=t)}function _(t){a||(u&&(u=clearTimeout(u)),24<t-l?(t<1/0&&(u=setTimeout(x,t-p.now()-h)),c&&(c=clearInterval(c))):(c||(f=p.now(),c=setInterval(j,s)),a=1,v(x)))}y.prototype=b.prototype={constructor:y,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?g():+n)+(null==e?0:+e),this._next||o===this||(o?o._next=this:i=this,o=this),this._call=t,this._time=n,_()},stop:function(){this._call&&(this._call=null,this._time=1/0,_())}}},function(t,e,n){"use strict";var i=n(15),o=n(92),a=n(95),u=n(96),c=n(31),s=n(97),f=n(98),l=n(94),h="function"==typeof Symbol&&"symbol"===E(Symbol.iterator)?function(t){return void 0===t?"undefined":E(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":E(t)};e.a=function(t,e){var n,r=void 0===e?"undefined":h(e);return null==e||"boolean"===r?Object(l.a)(e):("number"===r?c.a:"string"===r?(n=Object(i.a)(e))?(e=n,o.a):f.a:e instanceof i.a?o.a:e instanceof Date?u.a:Array.isArray(e)?a.a:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?s.a:c.a)(t,e)}},function(t,e,n){"use strict";e.a=s,n.d(e,"d",function(){return i}),n.d(e,"c",function(){return o}),e.e=m,e.h=_,e.g=O,e.b=w,e.f=M;var r=n(50);function s(){}var i=.7,o=1/i,a="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",f=/^#([0-9a-f]{3})$/,l=/^#([0-9a-f]{6})$/,h=new RegExp("^rgb\\("+[a,a,a]+"\\)$"),p=new RegExp("^rgb\\("+[c,c,c]+"\\)$"),v=new RegExp("^rgba\\("+[a,a,a,u]+"\\)$"),g=new RegExp("^rgba\\("+[c,c,c,u]+"\\)$"),d=new RegExp("^hsl\\("+[u,c,c]+"\\)$"),y=new RegExp("^hsla\\("+[u,c,c,u]+"\\)$"),b={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function m(t){var e;return t=(t+"").trim().toLowerCase(),(e=f.exec(t))?new w((e=parseInt(e[1],16))>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=l.exec(t))?x(parseInt(e[1],16)):(e=h.exec(t))?new w(e[1],e[2],e[3],1):(e=p.exec(t))?new w(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=v.exec(t))?j(e[1],e[2],e[3],e[4]):(e=g.exec(t))?j(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=d.exec(t))?S(e[1],e[2]/100,e[3]/100,1):(e=y.exec(t))?S(e[1],e[2]/100,e[3]/100,e[4]):b.hasOwnProperty(t)?x(b[t]):"transparent"===t?new w(NaN,NaN,NaN,0):null}function x(t){return new w(t>>16&255,t>>8&255,255&t,1)}function j(t,e,n,r){return r<=0&&(t=e=n=NaN),new w(t,e,n,r)}function _(t){return t instanceof s||(t=m(t)),t?new w((t=t.rgb()).r,t.g,t.b,t.opacity):new w}function O(t,e,n,r){return 1===arguments.length?_(t):new w(t,e,n,null==r?1:r)}function w(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function S(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||1<=n?t=e=NaN:e<=0&&(t=NaN),new E(t,e,n,r)}function M(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof E)return new E(t.h,t.s,t.l,t.opacity);if(t instanceof s||(t=m(t)),!t)return new E;if(t instanceof E)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=e===o?(n-r)/u+6*(n<r):n===o?(r-e)/u+2:(e-n)/u+4,u/=c<.5?o+i:2-o-i,a*=60):u=0<c&&c<1?0:a,new E(a,u,c,t.opacity)}(t):new E(t,e,n,null==r?1:r)}function E(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function C(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Object(r.a)(s,m,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Object(r.a)(w,O,Object(r.b)(s,{brighter:function(t){return t=null==t?o:Math.pow(o,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?i:Math.pow(i,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),Object(r.a)(E,M,Object(r.b)(s,{brighter:function(t){return t=null==t?o:Math.pow(o,t),new E(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?i:Math.pow(i,t),new E(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new w(C(240<=t?t-240:t+120,i,r),C(t,i,r),C(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}))},function(t,e,n){"use strict";e.b=function(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n},e.a=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},function(t,e,n){"use strict";function c(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}e.a=c,e.b=function(a){var u=a.length-1;return function(t){var e=t<=0?t=0:1<=t?u-(t=1):Math.floor(t*u),n=a[e],r=a[e+1],i=0<e?a[e-1]:2*n-r,o=e<u-1?a[e+2]:2*r-n;return c((t-e/u)*u,i,n,r,o)}}},function(t,e,n){var s=n(3).vec2;t.exports={at:function(t,e,n){return(e-t)*n+t},pointDistance:function(t,e,n,r,i,o){var a=[n-t,r-e];if(s.exactEquals(a,[0,0]))return NaN;var u=[-a[1],a[0]];s.normalize(u,u);var c=[i-t,o-e];return Math.abs(s.dot(c,u))},box:function(t,e,n,r,i){var o=i/2,a=Math.min(t,n),u=Math.max(t,n);return{minX:a-o,minY:Math.min(e,r)-o,maxX:u+o,maxY:Math.max(e,r)+o}},len:function(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))}}},function(t,e,n){var o=n(0),j=n(3).vec2;function _(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function s(t,e,n,r,i,o,a,u,c){var s=void 0,f=.005,l=1/0,h=void 0,p=void 0,v=void 0,g=void 0,d=void 0,y=void 0,b=[a,u];for(g=0;g<1;g+=.05)p=[_(t,n,i,g),_(e,r,o,g)],(h=j.squaredDistance(b,p))<l&&(s=g,l=h);for(l=1/0,y=0;y<32&&!(f<1e-4);y++){var m=s-f,x=s+f;p=[_(t,n,i,m),_(e,r,o,m)],h=j.squaredDistance(b,p),0<=m&&h<l?(s=m,l=h):(v=[_(t,n,i,x),_(e,r,o,x)],d=j.squaredDistance(b,v),x<=1&&d<l?(s=x,l=d):f*=.5)}return c&&(c.x=_(t,n,i,s),c.y=_(e,r,o,s)),Math.sqrt(l)}t.exports={at:_,projectPoint:function(t,e,n,r,i,o,a,u){var c={};return s(t,e,n,r,i,o,a,u,c),c},pointDistance:s,extrema:function(t,e,n){var r=t+n-2*e;if(o.isNumberEqual(r,0))return[.5];var i=(t-e)/r;return i<=1&&0<=i?[i]:[]}}},function(t,e,n){var g=n(0),v=n(3).vec2;function d(t,e,n,r){return{x:Math.cos(r)*n+t,y:Math.sin(r)*n+e}}function o(t,e,n,r){var i=void 0,o=void 0;return r?t<e?(i=e-t,o=2*Math.PI-n+t):n<t&&(i=2*Math.PI-t+e,o=t-n):(i=t-e,o=n-t),o<i?n:e}function y(t,e,n,r){var i=0;return n-e>=2*Math.PI&&(i=2*Math.PI),e=g.mod(e,2*Math.PI),n=g.mod(n,2*Math.PI)+i,t=g.mod(t,2*Math.PI),r?n<=e?n<t&&t<e?t:o(t,n,e,!0):t<e||n<t?t:o(t,e,n):e<=n?e<t&&t<n?t:o(t,e,n,!0):e<t||t<n?t:o(t,n,e)}function s(t,e,n,r,i,o,a,u,c){var s=[a,u],f=[t,e],l=v.subtract([],s,f),h=v.angleTo([1,0],l);h=y(h,r,i,o);var p=[n*Math.cos(h)+t,n*Math.sin(h)+e];return c&&(c.x=p[0],c.y=p[1]),v.distance(p,s)}t.exports={nearAngle:y,projectPoint:function(t,e,n,r,i,o,a,u){var c={};return s(t,e,n,r,i,o,a,u,c),c},pointDistance:s,box:function(t,e,n,r,i,o){var a=Math.PI/2,u=Math.PI,c=3*Math.PI/2,s=[],f=y(0,r,i,o);0===f&&s.push(d(t,e,n,0)),(f=y(a,r,i,o))===a&&s.push(d(t,e,n,a)),(f=y(u,r,i,o))===u&&s.push(d(t,e,n,u)),(f=y(c,r,i,o))===c&&s.push(d(t,e,n,c)),s.push(d(t,e,n,r)),s.push(d(t,e,n,i));var l=1/0,h=-1/0,p=1/0,v=-1/0;return g.each(s,function(t){l>t.x&&(l=t.x),h<t.x&&(h=t.x),p>t.y&&(p=t.y),v<t.y&&(v=t.y)}),{minX:l,minY:p,maxX:h,maxY:v}}}},function(t,e,n){var r=n(0),i=n(1),f=n(2),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,width:0,height:0,radius:0,lineWidth:1},r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"rect",getDefaultAttrs:function(){return{lineWidth:1,radius:0}},calculateBox:function(){var t=this.__attrs,e=t.x,n=t.y,r=t.width,i=t.height,o=this.getHitLineWidth()/2;return{minX:e-o,minY:n-o,maxX:e+r+o,maxY:n+i+o}},isPointInPath:function(t,e){var n=this.hasFill(),r=this.hasStroke();return n&&r?this.__isPointInFill(t,e)||this.__isPointInStroke(t,e):n?this.__isPointInFill(t,e):!!r&&this.__isPointInStroke(t,e)},__isPointInFill:function(t,e){var n=this.get("context");return!!n&&(this.createPath(),n.isPointInPath(t,e))},__isPointInStroke:function(t,e){var n=this.__attrs,r=n.x,i=n.y,o=n.width,a=n.height,u=n.radius,c=this.getHitLineWidth();if(0===u){var s=c/2;return f.line(r-s,i,r+o+s,i,c,t,e)||f.line(r+o,i-s,r+o,i+a+s,c,t,e)||f.line(r+o+s,i+a,r-s,i+a,c,t,e)||f.line(r,i+a+s,r,i-s,c,t,e)}return f.line(r+u,i,r+o-u,i,c,t,e)||f.line(r+o,i+u,r+o,i+a-u,c,t,e)||f.line(r+o-u,i+a,r+u,i+a,c,t,e)||f.line(r,i+a-u,r,i+u,c,t,e)||f.arcline(r+o-u,i+u,u,1.5*Math.PI,2*Math.PI,!1,c,t,e)||f.arcline(r+o-u,i+a-u,u,0,.5*Math.PI,!1,c,t,e)||f.arcline(r+u,i+a-u,u,.5*Math.PI,Math.PI,!1,c,t,e)||f.arcline(r+u,i+u,u,Math.PI,1.5*Math.PI,!1,c,t,e)},createPath:function(t){var e=this.__attrs,n=e.x,r=e.y,i=e.width,o=e.height,a=e.radius;(t=t||this.get("context")).beginPath(),0===a?t.rect(n,r,i,o):(t.moveTo(n+a,r),t.lineTo(n+i-a,r),t.arc(n+i-a,r+a,a,-Math.PI/2,0,!1),t.lineTo(n+i,r+o-a),t.arc(n+i-a,r+o-a,a,0,Math.PI/2,!1),t.lineTo(n+a,r+o),t.arc(n+a,r+o-a,a,Math.PI/2,Math.PI,!1),t.lineTo(n,r+a),t.arc(n+a,r+a,a,Math.PI,3*Math.PI/2,!1),t.closePath())}}),t.exports=o},function(r,t,e){(function(t){var e="function"==typeof Symbol&&"symbol"===E(Symbol.iterator)?function(t){return void 0===t?"undefined":E(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":E(t)},n="object"==(void 0===t?"undefined":e(t))&&t&&t.Object===Object&&t;r.exports=n}).call(t,e(116))},function(t,e,n){var r=n(7),i=n(6),o=n(4),a="[object String]";t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&r(t)==a}},function(t,e,n){var r=n(18),i=n(123),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e){t.exports=function(e,n){return function(t){return e(n(t))}}},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e){var n=9007199254740991;t.exports=function(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=n}},function(t,e,n){var r=n(136);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var r=n(150),i=n(157),o=n(159),a=n(160),u=n(161);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e,n){var r=n(10),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(t,e,n){var f=n(163),l=n(34),h=n(6),p=n(19),v=n(67),g=n(23),d=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=h(t),r=!n&&l(t),i=!n&&!r&&p(t),o=!n&&!r&&!i&&g(t),a=n||r||i||o,u=a?f(t.length,String):[],c=u.length;for(var s in t)!e&&!d.call(t,s)||a&&("length"==s||i&&("offset"==s||"parent"==s)||o&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||v(s,c))||u.push(s);return u}},function(t,e){var r="function"==typeof Symbol&&"symbol"===E(Symbol.iterator)?function(t){return void 0===t?"undefined":E(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":E(t)},i=9007199254740991,o=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=void 0===t?"undefined":r(t);return!!(e=null==e?i:e)&&("number"==n||"symbol"!=n&&o.test(t))&&-1<t&&t%1==0&&t<e}},function(t,u,c){(function(t){var e="function"==typeof Symbol&&"symbol"===E(Symbol.iterator)?function(t){return void 0===t?"undefined":E(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":E(t)},n=c(5),r="object"==e(u)&&u&&!u.nodeType&&u,i=r&&"object"==e(t)&&t&&!t.nodeType&&t,o=i&&i.exports===r?n.Buffer:void 0,a=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=a?a(n):new t.constructor(n);return t.copy(r),r}}).call(u,c(35)(t))},function(t,e){t.exports=function(){return[]}},function(t,e,n){var r=n(71),i=n(42),o=n(41),a=n(69),u=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,o(t)),t=i(t);return e}:a;t.exports=u},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},function(t,e,n){var r=n(73),i=n(41),o=n(14);t.exports=function(t){return r(t,o,i)}},function(t,e,n){var i=n(71),o=n(6);t.exports=function(t,e,n){var r=e(t);return o(t)?r:i(r,n(t))}},function(t,e,n){var r=n(5).Uint8Array;t.exports=r},function(t,e,n){var r=n(43);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){var r=n(176),i=n(42),o=n(18);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},function(t,e,n){var r=n(78),c=n(188);t.exports=function(u){return r(function(t,e){var n=-1,r=e.length,i=1<r?e[r-1]:void 0,o=2<r?e[2]:void 0;for(i=3<u.length&&"function"==typeof i?(r--,i):void 0,o&&c(e[0],e[1],o)&&(i=r<3?void 0:i,r=1),t=Object(t);++n<r;){var a=e[n];a&&u(t,a,n,i)}return t})}},function(t,e,n){var r=n(44),i=n(182),o=n(184);t.exports=function(t,e){return o(i(t,e,r),t+"")}},function(t,e,n){var r=n(40),i=n(20);t.exports=function(t,e,n){(void 0===n||i(t[e],n))&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(191)();t.exports=r},function(t,e){t.exports=function(t,e){return"__proto__"==e?void 0:t[e]}},function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},function(t,e,n){var r=n(200),i=n(82),o=n(201);t.exports=function(t){return i(t)?o(t):r(t)}},function(t,e,n){var d=n(218),y=n(221),b=n(222),m=1,x=2;t.exports=function(t,e,n,r,i,o){var a=n&m,u=t.length,c=e.length;if(u!=c&&!(a&&u<c))return!1;var s=o.get(t);if(s&&o.get(e))return s==e;var f=-1,l=!0,h=n&x?new d:void 0;for(o.set(t,e),o.set(e,t);++f<u;){var p=t[f],v=e[f];if(r)var g=a?r(v,p,f,e,t,o):r(p,v,f,t,e,o);if(void 0!==g){if(g)continue;l=!1;break}if(h){if(!y(e,function(t,e){if(!b(h,e)&&(p===t||i(p,t,n,r,o)))return h.push(e)})){l=!1;break}}else if(p!==v&&!i(p,v,n,r,o)){l=!1;break}}return o.delete(t),o.delete(e),l}},function(t,e){t.exports=function(t){var n=-1,r=Array(t.size);return t.forEach(function(t,e){r[++n]=[e,t]}),r}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}},function(t,e,n){var r=n(17),i=document.createElement("table"),o=document.createElement("tr"),a=/^\s*<(\w+|!)[^>]*>/,u={tr:document.createElement("tbody"),tbody:i,thead:i,tfoot:i,td:o,th:o,"*":document.createElement("div")};t.exports={getBoundingClientRect:function(t,e){if(t&&t.getBoundingClientRect){var n=t.getBoundingClientRect(),r=document.documentElement.clientTop,i=document.documentElement.clientLeft;return{top:n.top-r,bottom:n.bottom-r,left:n.left-i,right:n.right-i}}return e||null},getStyle:function(t,e,n){try{return window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.currentStyle[e]}catch(t){return r.isNil(n)?null:n}},modifyCSS:function(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t},createDom:function(t){var e=a.test(t)&&RegExp.$1;e in u||(e="*");var n=u[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var r=n.childNodes[0];return n.removeChild(r),r},getRatio:function(){return window.devicePixelRatio?window.devicePixelRatio:2},getWidth:function(t,e){var n=this.getStyle(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)},getHeight:function(t,e){var n=this.getStyle(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)},getOuterHeight:function(t,e){var n=this.getHeight(t,e),r=parseFloat(this.getStyle(t,"borderTopWidth"))||0,i=parseFloat(this.getStyle(t,"paddingTop"))||0,o=parseFloat(this.getStyle(t,"paddingBottom"))||0;return n+r+(parseFloat(this.getStyle(t,"borderBottomWidth"))||0)+i+o},getOuterWidth:function(t,e){var n=this.getWidth(t,e),r=parseFloat(this.getStyle(t,"borderLeftWidth"))||0,i=parseFloat(this.getStyle(t,"paddingLeft"))||0,o=parseFloat(this.getStyle(t,"paddingRight"))||0;return n+r+(parseFloat(this.getStyle(t,"borderRightWidth"))||0)+i+o},addEventListener:function(t,e,n){if(t){if(t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if(t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}},requestAnimationFrame:function(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}}},function(t,e,n){var r=n(0),i=function(t,e,n,r){this.type=t,this.target=null,this.currentTarget=null,this.bubbles=n,this.cancelable=r,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.removed=!1,this.event=e};r.augment(i,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return r.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),t.exports=i},function(t,e,n){var u=n(0),r=n(90),c=n(263),s={},i="_INDEX";function o(t,e,n){for(var r=void 0,i=t.length-1;0<=i;i--){var o=t[i];if(o.__cfg.visible&&o.__cfg.capture&&(o.isGroup?r=o.getShape(e,n):o.isHit(e,n)&&(r=o)),r)break}return r}var a=function t(e){t.superclass.constructor.call(this,e),this.set("children",[]),this._beforeRenderUI(),this._renderUI(),this._bindUI()};u.extend(a,r),u.augment(a,{isGroup:!0,canFill:!0,canStroke:!0,getDefaultCfg:function(){return function t(e){if(!e.__cfg&&e!==a){var n=e.superclass.constructor;n&&!n.__cfg&&t(n),e.__cfg={},u.merge(e.__cfg,n.__cfg),u.merge(e.__cfg,e.CFG)}}(this.constructor),u.merge({},this.constructor.__cfg)},_beforeRenderUI:function(){},_renderUI:function(){},_bindUI:function(){},addShape:function(t,e){var n=this.get("canvas");e=e||{};var r=s[t];if(r||(r=u.upperFirst(t),s[t]=r),e.attrs){var i=e.attrs;if("text"===t){var o=n.get("fontFamily");o&&(i.fontFamily=i.fontFamily?i.fontFamily:o)}}e.canvas=n,e.type=t;var a=new c[r](e);return this.add(a),a},addGroup:function(t,e){var n=this.get("canvas"),r=void 0;if(e=u.merge({},e),u.isFunction(t))e?(e.canvas=n,e.parent=this,r=new t(e)):r=new t({canvas:n,parent:this}),this.add(r);else if(u.isObject(t))t.canvas=n,r=new a(t),this.add(r);else{if(void 0!==t)return!1;r=new a,this.add(r)}return r},renderBack:function(t,e){var n=this.get("backShape"),r=this.getBBox();return u.merge(e,{x:r.minX-t[3],y:r.minY-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2]}),n?n.attr(e):n=this.addShape("rect",{zIndex:-1,attrs:e}),this.set("backShape",n),this.sort(),n},removeChild:function(t,e){if(2<=arguments.length)this.contain(t)&&t.remove(e);else{if(1===arguments.length){if(!u.isBoolean(t))return this.contain(t)&&t.remove(!0),this;e=t}0===arguments.length&&(e=!0),a.superclass.remove.call(this,e)}return this},add:function(t){var n=this,e=n.get("children");if(u.isArray(t))u.each(t,function(t){var e=t.get("parent");e&&e.removeChild(t,!1),n.__setEvn(t)}),e.push.apply(e,t);else{var r=t,i=r.get("parent");i&&i.removeChild(r,!1),n.__setEvn(r),e.push(r)}return n},contain:function(t){return-1<this.get("children").indexOf(t)},getChildByIndex:function(t){return this.get("children")[t]},getFirst:function(){return this.getChildByIndex(0)},getLast:function(){var t=this.get("children").length-1;return this.getChildByIndex(t)},__setEvn:function(e){e.__cfg.parent=this,e.__cfg.context=this.__cfg.context,e.__cfg.canvas=this.__cfg.canvas;var t=e.__attrs.clip;t&&(t.setSilent("parent",this),t.setSilent("context",this.get("context")));var n=e.__cfg.children;n&&u.each(n,function(t){e.__setEvn(t)})},getBBox:function(){var f=1/0,l=-1/0,h=1/0,p=-1/0,t=this.get("children");u.each(t,function(t){if(t.get("visible")){var e=t.getBBox();if(!e)return!0;var n=[e.minX,e.minY,1],r=[e.minX,e.maxY,1],i=[e.maxX,e.minY,1],o=[e.maxX,e.maxY,1];t.apply(n),t.apply(r),t.apply(i),t.apply(o);var a=Math.min(n[0],r[0],i[0],o[0]),u=Math.max(n[0],r[0],i[0],o[0]),c=Math.min(n[1],r[1],i[1],o[1]),s=Math.max(n[1],r[1],i[1],o[1]);a<f&&(f=a),l<u&&(l=u),c<h&&(h=c),p<s&&(p=s)}});var e={minX:f,minY:h,maxX:l,maxY:p};return e.x=e.minX,e.y=e.minY,e.width=e.maxX-e.minX,e.height=e.maxY-e.minY,e},drawInner:function(t){for(var e=this.get("children"),n=0;n<e.length;n++){e[n].draw(t)}return this},getCount:function(){return this.get("children").length},sort:function(){var r,t=this.get("children");return u.each(t,function(t,e){return t[i]=e,t}),t.sort((r=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(t,e){var n=r(t,e);return 0===n?t[i]-e[i]:n})),this},find:function(e){return this.findBy(function(t){return t.get("id")===e})},findBy:function(e){var t=this.get("children"),n=null;return u.each(t,function(t){if(e(t)?n=t:t.findBy&&(n=t.findBy(e)),n)return!1}),n},findAllBy:function(e){var t=this.get("children"),n=[],r=[];return u.each(t,function(t){e(t)&&n.push(t),t.findAllBy&&(r=t.findAllBy(e),n=n.concat(r))}),n},getShape:function(t,e){var n=this.__attrs.clip,r=this.__cfg.children,i=void 0;return n?n.inside(t,e)&&(i=o(r,t,e)):i=o(r,t,e),i},clearTotalMatrix:function(){if(this.get("totalMatrix")){this.setSilent("totalMatrix",null);for(var t=this.__cfg.children,e=0;e<t.length;e++){t[e].clearTotalMatrix()}}},clear:function(){for(var t=this.get("children");0!==t.length;)t[t.length-1].remove();return this},destroy:function(){this.get("destroyed")||(this.clear(),a.superclass.destroy.call(this))}}),t.exports=a},function(t,e,n){var i=n(0),r=n(229),o=n(230),a=n(234),u=n(99),c=n(262),s=["fillStyle","font","globalAlpha","lineCap","lineWidth","lineJoin","miterLimit","shadowBlur","shadowColor","shadowOffsetX","shadowOffsetY","strokeStyle","textAlign","textBaseline","lineDash"],f=function(t){this.__cfg={zIndex:0,capture:!0,visible:!0,destroyed:!1},i.assign(this.__cfg,this.getDefaultCfg(),t),this.initAttrs(this.__cfg.attrs),this.initTransform(),this.init()};f.CFG={id:null,zIndex:0,canvas:null,parent:null,capture:!0,context:null,visible:!0,destroyed:!1},i.augment(f,r,o,c,a,{init:function(){this.setSilent("animable",!0),this.setSilent("animating",!1);var t=this.__attrs;t&&t.rotate&&this.rotateAtStart(t.rotate)},getParent:function(){return this.get("parent")},getDefaultCfg:function(){return{}},set:function(t,e){var n="__set"+i.upperFirst(t);return this[n]&&(e=this[n](e)),this.__cfg[t]=e,this},setSilent:function(t,e){this.__cfg[t]=e},get:function(t){return this.__cfg[t]},draw:function(t){this.get("destroyed")||this.get("visible")&&(this.setContext(t),this.drawInner(t),this.restoreContext(t))},setContext:function(t){var e=this.__attrs.clip;t.save(),e&&(e.resetTransform(t),e.createPath(t),t.clip()),this.resetContext(t),this.resetTransform(t)},restoreContext:function(t){t.restore()},resetContext:function(t){var e=this.__attrs;if(!this.isGroup)for(var n in e)if(-1<s.indexOf(n)){var r=e[n];"fillStyle"===n&&(r=u.parseStyle(r,this)),"strokeStyle"===n&&(r=u.parseStyle(r,this)),"lineDash"===n&&t.setLineDash?i.isArray(r)?t.setLineDash(r):i.isString(r)&&t.setLineDash(r.split(" ")):t[n]=r}},drawInner:function(){},show:function(){return this.set("visible",!0),this},hide:function(){return this.set("visible",!1),this},remove:function(t){if(void 0===t&&(t=!0),this.get("parent")){var e=this.get("parent").get("children");i.remove(e,this)}return t&&this.destroy(),this},destroy:function(){if(!this.get("destroyed")){if(this.get("animating")){var t=this.get("animateTimer");t&&t.stop()}this.__cfg={},this.__attrs=null,this.removeEvent(),this.set("destroyed",!0)}},__setZIndex:function(t){return this.__cfg.zIndex=t,i.isNil(this.get("parent"))||this.get("parent").sort(),t},__setAttrs:function(t){return this.attr(t),t},setZIndex:function(t){return this.__cfg.zIndex=t},clone:function(){return i.clone(this)},getBBox:function(){return{minX:0,maxX:0,minY:0,maxY:0}}}),t.exports=f},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=Math.PI/180,i=180/Math.PI},function(t,e,n){"use strict";n.d(e,"b",function(){return a}),n.d(e,"c",function(){return s});var c=n(15),r=n(51),i=n(93),u=n(21);function o(u){return function(t){var e,n,r=t.length,i=new Array(r),o=new Array(r),a=new Array(r);for(e=0;e<r;++e)n=Object(c.f)(t[e]),i[e]=n.r||0,o[e]=n.g||0,a[e]=n.b||0;return i=u(i),o=u(o),a=u(a),n.opacity=1,function(t){return n.r=i(t),n.g=o(t),n.b=a(t),n+""}}}e.a=function t(e){var a=Object(u.b)(e);function n(e,t){var n=a((e=Object(c.f)(e)).r,(t=Object(c.f)(t)).r),r=a(e.g,t.g),i=a(e.b,t.b),o=Object(u.a)(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=r(t),e.b=i(t),e.opacity=o(t),e+""}}return n.gamma=t,n}(1);var a=o(r.b),s=o(i.a)},function(t,e,n){"use strict";var c=n(51);e.a=function(a){var u=a.length;return function(t){var e=Math.floor(((t%=1)<0?++t:t)*u),n=a[(e+u-1)%u],r=a[e%u],i=a[(e+1)%u],o=a[(e+2)%u];return Object(c.a)((t-e/u)*u,n,r,i,o)}}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";var u=n(48);e.a=function(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Object(u.a)(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}},function(t,e,n){"use strict";e.a=function(e,n){var r=new Date;return n-=e=+e,function(t){return r.setTime(e+n*t),r}}},function(t,e,n){"use strict";var o=n(48),a="function"==typeof Symbol&&"symbol"===E(Symbol.iterator)?function(t){return void 0===t?"undefined":E(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":E(t)};e.a=function(t,e){var n,r={},i={};for(n in null!==t&&"object"===(void 0===t?"undefined":a(t))||(t={}),null!==e&&"object"===(void 0===e?"undefined":a(e))||(e={}),e)n in t?r[n]=Object(o.a)(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}},function(t,e,n){"use strict";var l=n(31),h=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,p=new RegExp(h.source,"g");e.a=function(t,r){var e,n,i,o,a,u=h.lastIndex=p.lastIndex=0,c=-1,s=[],f=[];for(t+="",r+="";(e=h.exec(t))&&(n=p.exec(r));)(i=n.index)>u&&(i=r.slice(u,i),s[c]?s[c]+=i:s[++c]=i),(e=e[0])===(n=n[0])?s[c]?s[c]+=n:s[++c]=n:(s[++c]=null,f.push({i:c,x:Object(l.a)(e,n)})),u=p.lastIndex;return u<r.length&&(i=r.slice(u),s[c]?s[c]+=i:s[++c]=i),s.length<2?f[0]?(a=f[0].x,function(t){return a(t)+""}):(o=r,function(){return o}):(r=f.length,function(t){for(var e,n=0;n<r;++n)s[(e=f[n]).i]=e.x(t);return s.join("")})}},function(t,e,n){var g=n(0),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi,d=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,y=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,b=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,r=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,a={};function m(t,e){var n=t.match(r);g.each(n,function(t){t=t.split(":"),e.addColorStop(t[0],t[1])})}t.exports={parsePath:function(r){return r=r||[],g.isArray(r)?r:g.isString(r)?(r=r.match(i),g.each(r,function(n,t){if(1<(n=n.match(o))[0].length){var e=n[0].charAt(0);n.splice(1,0,n[0].substr(1)),n[0]=e}g.each(n,function(t,e){isNaN(t)||(n[e]=+t)}),r[t]=n}),r):void 0},parseStyle:function(t,e){if(g.isString(t)){if("("===t[1]||"("===t[2]){if("l"===t[0])return function(t,e){var n=d.exec(t),r=g.mod(g.toRadian(parseFloat(n[1])),2*Math.PI),i=n[2],o=e.getBBox(),a=void 0,u=void 0;0<=r&&r<.5*Math.PI?(a={x:o.minX,y:o.minY},u={x:o.maxX,y:o.maxY}):.5*Math.PI<=r&&r<Math.PI?(a={x:o.maxX,y:o.minY},u={x:o.minX,y:o.maxY}):Math.PI<=r&&r<1.5*Math.PI?(a={x:o.maxX,y:o.maxY},u={x:o.minX,y:o.minY}):(a={x:o.minX,y:o.maxY},u={x:o.maxX,y:o.minY});var c=Math.tan(r),s=c*c,f=(u.x-a.x+c*(u.y-a.y))/(s+1)+a.x,l=c*(u.x-a.x+c*(u.y-a.y))/(s+1)+a.y,h=e.get("context").createLinearGradient(a.x,a.y,f,l);return m(i,h),h}(t,e);if("r"===t[0])return n=t,r=e,i=y.exec(n),o=parseFloat(i[1]),a=parseFloat(i[2]),u=parseFloat(i[3]),c=i[4],s=r.getBBox(),f=r.get("context"),l=s.maxX-s.minX,h=s.maxY-s.minY,p=Math.sqrt(l*l+h*h)/2,v=f.createRadialGradient(s.minX+l*o,s.minY+h*a,u*p,s.minX+l/2,s.minY+h/2,p),m(c,v),v;if("p"===t[0])return function(e,n){if(n.get("patternSource")&&n.get("patternSource")===e)return n.get("pattern");var r=void 0,i=void 0,t=b.exec(e),o=t[1],a=t[2];function u(){var t=n.get("context");r=t.createPattern(i,o),n.setSilent("pattern",r),n.setSilent("patternSource",e)}switch(o){case"a":o="repeat";break;case"x":o="repeat-x";break;case"y":o="repeat-y";break;case"n":o="no-repeat";break;default:o="no-repeat"}return i=new Image,a.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=a,i.complete?u():(i.onload=u,i.src=i.src),r}(t,e)}return t}var n,r,i,o,a,u,c,s,f,l,h,p,v},numberToColor:function(t){var e=a[t];if(!e){for(var n=t.toString(16),r=n.length;r<6;r++)n="0"+n;e="#"+n,a[t]=e}return e}}},function(t,e,n){var r=n(0),i=n(1),u=n(2),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,r:0,lineWidth:1},r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"circle",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this.__attrs,e=t.x,n=t.y,r=t.r,i=this.getHitLineWidth()/2+r;return{minX:e-i,minY:n-i,maxX:e+i,maxY:n+i}},isPointInPath:function(t,e){var n=this.hasFill(),r=this.hasStroke();return n&&r?this.__isPointInFill(t,e)||this.__isPointInStroke(t,e):n?this.__isPointInFill(t,e):!!r&&this.__isPointInStroke(t,e)},__isPointInFill:function(t,e){var n=this.__attrs,r=n.x,i=n.y,o=n.r;return u.circle(r,i,o,t,e)},__isPointInStroke:function(t,e){var n=this.__attrs,r=n.x,i=n.y,o=n.r,a=this.getHitLineWidth();return u.arcline(r,i,o,0,2*Math.PI,!1,a,t,e)},createPath:function(t){var e=this.__attrs,n=e.x,r=e.y,i=e.r;(t=t||self.get("context")).beginPath(),t.arc(n,r,i,0,2*Math.PI,!1)}}),t.exports=o},function(t,e,n){var r=n(0),i=n(1),v=n(2),g=n(3).mat3,d=n(3).vec3,o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,rx:1,ry:1,lineWidth:1},r.extend(o,i),r.augment(o,{canFill:!0,canStroke:!0,type:"ellipse",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this.__attrs,e=t.x,n=t.y,r=t.rx,i=t.ry,o=this.getHitLineWidth(),a=r+o/2,u=i+o/2;return{minX:e-a,minY:n-u,maxX:e+a,maxY:n+u}},isPointInPath:function(t,e){var n=this.hasFill(),r=this.hasStroke();return n&&r?this.__isPointInFill(t,e)||this.__isPointInStroke(t,e):n?this.__isPointInFill(t,e):!!r&&this.__isPointInStroke(t,e)},__isPointInFill:function(t,e){var n=this.__attrs,r=n.x,i=n.y,o=n.rx,a=n.ry,u=a<o?o:a,c=a<o?1:o/a,s=a<o?a/o:1,f=[t,e,1],l=[1,0,0,0,1,0,0,0,1];g.scale(l,l,[c,s]),g.translate(l,l,[r,i]);var h=g.invert([],l);return d.transformMat3(f,f,h),v.circle(0,0,u,f[0],f[1])},__isPointInStroke:function(t,e){var n=this.__attrs,r=n.x,i=n.y,o=n.rx,a=n.ry,u=this.getHitLineWidth(),c=a<o?o:a,s=a<o?1:o/a,f=a<o?a/o:1,l=[t,e,1],h=[1,0,0,0,1,0,0,0,1];g.scale(h,h,[s,f]),g.translate(h,h,[r,i]);var p=g.invert([],h);return d.transformMat3(l,l,p),v.arcline(0,0,c,0,2*Math.PI,!1,u,l[0],l[1])},createPath:function(t){var e=this.__attrs,n=e.x,r=e.y,i=e.rx,o=e.ry;t=t||self.get("context");var a=o<i?i:o,u=o<i?1:i/o,c=o<i?o/i:1,s=[1,0,0,0,1,0,0,0,1];g.scale(s,s,[u,c]),g.translate(s,s,[n,r]),t.beginPath(),t.save(),t.transform(s[0],s[1],s[3],s[4],s[6],s[7]),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}}),t.exports=o},function(t,e,n){var f=n(0),r=n(1),u=n(103),c=n(99),l=n(16),i=n(46),h=n(32),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={path:null,lineWidth:1,curve:null,tCache:null,startArrow:!1,endArrow:!1},f.extend(o,r),f.augment(o,{canFill:!0,canStroke:!0,type:"path",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},__afterSetAttrPath:function(t){if(f.isNil(t))return this.setSilent("segments",null),void this.setSilent("box",void 0);var e=c.parsePath(t),n=void 0,r=[];if(f.isArray(e)&&0!==e.length&&("M"===e[0][0]||"m"===e[0][0])){for(var i=e.length,o=0;o<e.length;o++){var a=e[o];n=new u(a,n,o===i-1),r.push(n)}this.setSilent("segments",r),this.set("tCache",null),this.setSilent("box",null)}},__afterSetAttrAll:function(t){t.path&&this.__afterSetAttrPath(t.path)},calculateBox:function(){var t=this.get("segments");if(!t)return null;var n=this.getHitLineWidth(),r=1/0,i=-1/0,o=1/0,a=-1/0;return f.each(t,function(t){t.getBBox(n);var e=t.box;e&&(e.minX<r&&(r=e.minX),e.maxX>i&&(i=e.maxX),e.minY<o&&(o=e.minY),e.maxY>a&&(a=e.maxY))}),{minX:r,minY:o,maxX:i,maxY:a}},isPointInPath:function(t,e){var n=this.hasFill(),r=this.hasStroke();return n&&r?this.__isPointInFill(t,e)||this.__isPointInStroke(t,e):n?this.__isPointInFill(t,e):!!r&&this.__isPointInStroke(t,e)},__isPointInFill:function(t,e){var n=this.get("context");if(n)return this.createPath(),n.isPointInPath(t,e)},__isPointInStroke:function(t,e){var n=this.get("segments");if(!f.isEmpty(n))for(var r=this.getHitLineWidth(),i=0,o=n.length;i<o;i++)if(n[i].isInside(t,e,r))return!0;return!1},__setTcache:function(){var n=0,r=0,i=[],o=void 0,a=void 0,u=void 0,c=void 0,s=this.curve;s&&(f.each(s,function(t,e){u=s[e+1],c=t.length,u&&(n+=h.len(t[c-2],t[c-1],u[1],u[2],u[3],u[4],u[5],u[6]))}),f.each(s,function(t,e){u=s[e+1],c=t.length,u&&((o=[])[0]=r/n,a=h.len(t[c-2],t[c-1],u[1],u[2],u[3],u[4],u[5],u[6]),r+=a,o[1]=r/n,i.push(o))}),this.tCache=i)},__calculateCurve:function(){var t=this.__attrs.path;this.curve=i.pathTocurve(t)},getPoint:function(n){var t=this.tCache,r=void 0,i=void 0;t||(this.__calculateCurve(),this.__setTcache(),t=this.tCache);var e=this.curve;if(!t)return e?{x:e[0][1],y:e[0][2]}:null;f.each(t,function(t,e){n>=t[0]&&n<=t[1]&&(r=(n-t[0])/(t[1]-t[0]),i=e)});var o=e[i];if(f.isNil(o)||f.isNil(i))return null;var a=o.length,u=e[i+1];return{x:h.at(o[a-2],u[1],u[3],u[5],1-r),y:h.at(o[a-1],u[2],u[4],u[6],1-r)}},createPath:function(t){var e=this.__attrs,n=this.get("segments");if(f.isArray(n)){(t=t||this.get("context")).beginPath();var r=e.path,i=void 0,o=void 0,a=!1;("z"===r[r.length-1]||"Z"===r[r.length-1]||e.fill)&&(a=!0);var u=n.length;1<u&&!a&&(i=n[0].endPoint,o=n[1].endPoint,l.addStartArrow(t,e,o.x,o.y,i.x,i.y));for(var c=0,s=u;c<s;c++)n[c].draw(t);1<u&&!a&&(i=n[u-2].endPoint,o=n[u-1].endPoint,l.addEndArrow(t,e,i.x,i.y,o.x,o.y))}}}),t.exports=o},function(t,e,n){var w=n(0),m=n(2),A=n(32),T=n(53),k=n(264),x=n(3).vec3,j=n(3).mat3,b=["m","l","c","a","q","h","v","t","s","z"];function _(t,e,n){return{x:n.x+t,y:n.y+e}}function O(t,e){return{x:e.x+(e.x-t.x),y:e.y+(e.y-t.y)}}function r(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function S(t,e){return(t[0]*e[0]+t[1]*e[1])/(r(t)*r(e))}function M(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(S(t,e))}var i=function(t,e,n){this.preSegment=e,this.isLast=n,this.init(t,e)};w.augment(i,{init:function(t,e){var n=t[0];e=e||{endPoint:{x:0,y:0}};var r=0<=b.indexOf(n),i=r?n.toUpperCase():n,o=t,a=void 0,u=void 0,c=void 0,s=void 0,f=e.endPoint,l=o[1],h=o[2];switch(i){default:break;case"M":s=r?_(l,h,f):{x:l,y:h},this.command="M",this.params=[f,s],this.subStart=s,this.endPoint=s;break;case"L":s=r?_(l,h,f):{x:l,y:h},this.command="L",this.params=[f,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-f.x,s.y-f.y]},this.startTangent=function(){return[f.x-s.x,f.y-s.y]};break;case"H":s=r?_(l,0,f):{x:l,y:f.y},this.command="L",this.params=[f,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-f.x,s.y-f.y]},this.startTangent=function(){return[f.x-s.x,f.y-s.y]};break;case"V":s=r?_(0,l,f):{x:f.x,y:l},this.command="L",this.params=[f,s],this.subStart=e.subStart,this.endPoint=s,this.endTangent=function(){return[s.x-f.x,s.y-f.y]},this.startTangent=function(){return[f.x-s.x,f.y-s.y]};break;case"Q":r?(a=_(l,h,f),u=_(o[3],o[4],f)):(a={x:l,y:h},u={x:o[3],y:o[4]}),this.command="Q",this.params=[f,a,u],this.subStart=e.subStart,this.endPoint=u,this.endTangent=function(){return[u.x-a.x,u.y-a.y]},this.startTangent=function(){return[f.x-a.x,f.y-a.y]};break;case"T":u=r?_(l,h,f):{x:l,y:h},"Q"===e.command?(a=O(e.params[1],f),this.command="Q",this.params=[f,a,u],this.subStart=e.subStart,this.endPoint=u,this.endTangent=function(){return[u.x-a.x,u.y-a.y]},this.startTangent=function(){return[f.x-a.x,f.y-a.y]}):(this.command="TL",this.params=[f,u],this.subStart=e.subStart,this.endPoint=u,this.endTangent=function(){return[u.x-f.x,u.y-f.y]},this.startTangent=function(){return[f.x-u.x,f.y-u.y]});break;case"C":r?(a=_(l,h,f),u=_(o[3],o[4],f),c=_(o[5],o[6],f)):(a={x:l,y:h},u={x:o[3],y:o[4]},c={x:o[5],y:o[6]}),this.command="C",this.params=[f,a,u,c],this.subStart=e.subStart,this.endPoint=c,this.endTangent=function(){return[c.x-u.x,c.y-u.y]},this.startTangent=function(){return[f.x-a.x,f.y-a.y]};break;case"S":r?(u=_(l,h,f),c=_(o[3],o[4],f)):(u={x:l,y:h},c={x:o[3],y:o[4]}),"C"===e.command?(a=O(e.params[2],f),this.command="C",this.params=[f,a,u,c],this.subStart=e.subStart,this.endPoint=c,this.endTangent=function(){return[c.x-u.x,c.y-u.y]},this.startTangent=function(){return[f.x-a.x,f.y-a.y]}):(this.command="SQ",this.params=[f,u,c],this.subStart=e.subStart,this.endPoint=c,this.endTangent=function(){return[c.x-u.x,c.y-u.y]},this.startTangent=function(){return[f.x-u.x,f.y-u.y]});break;case"A":var p=l,v=h,g=o[3],d=o[4],y=o[5];s=r?_(o[6],o[7],f):{x:o[6],y:o[7]},this.command="A",this.params=function(t,e,n,r,i,o,a){var u=w.mod(w.toRadian(a),2*Math.PI),c=t.x,s=t.y,f=e.x,l=e.y,h=Math.cos(u)*(c-f)/2+Math.sin(u)*(s-l)/2,p=-1*Math.sin(u)*(c-f)/2+Math.cos(u)*(s-l)/2,v=h*h/(i*i)+p*p/(o*o);1<v&&(i*=Math.sqrt(v),o*=Math.sqrt(v));var g=Math.sqrt((i*i*(o*o)-i*i*(p*p)-o*o*(h*h))/(i*i*(p*p)+o*o*(h*h)));n===r&&(g*=-1),isNaN(g)&&(g=0);var d=g*i*p/o,y=g*-o*h/i,b=(c+f)/2+Math.cos(u)*d-Math.sin(u)*y,m=(s+l)/2+Math.sin(u)*d+Math.cos(u)*y,x=M([1,0],[(h-d)/i,(p-y)/o]),j=[(h-d)/i,(p-y)/o],_=[(-1*h-d)/i,(-1*p-y)/o],O=M(j,_);return S(j,_)<=-1&&(O=Math.PI),1<=S(j,_)&&(O=0),0===r&&0<O&&(O-=2*Math.PI),1===r&&O<0&&(O+=2*Math.PI),[t,b,m,i,o,x,O,u,r]}(f,s,d,y,p,v,g),this.subStart=e.subStart,this.endPoint=s;break;case"Z":this.command="Z",this.params=[f,e.subStart],this.subStart=e.subStart,this.endPoint=e.subStart}},isInside:function(t,e,n){var r=this.command,i=this.params,o=this.box;if(o&&!m.box(o.minX,o.maxX,o.minY,o.maxY,t,e))return!1;switch(r){default:break;case"M":return!1;case"TL":case"L":case"Z":return m.line(i[0].x,i[0].y,i[1].x,i[1].y,n,t,e);case"SQ":case"Q":return m.quadraticline(i[0].x,i[0].y,i[1].x,i[1].y,i[2].x,i[2].y,n,t,e);case"C":return m.cubicline(i[0].x,i[0].y,i[1].x,i[1].y,i[2].x,i[2].y,i[3].x,i[3].y,n,t,e);case"A":var a=i,u=a[1],c=a[2],s=a[3],f=a[4],l=a[5],h=a[6],p=a[7],v=a[8],g=f<s?s:f,d=f<s?1:s/f,y=f<s?f/s:1;a=[t,e,1];var b=[1,0,0,0,1,0,0,0,1];return j.translate(b,b,[-u,-c]),j.rotate(b,b,-p),j.scale(b,b,[1/d,1/y]),x.transformMat3(a,a,b),m.arcline(0,0,g,l,l+h,1-v,n,a[0],a[1])}return!1},draw:function(t){var e=this.command,n=this.params,r=void 0,i=void 0,o=void 0;switch(e){default:break;case"M":t.moveTo(n[1].x,n[1].y);break;case"TL":case"L":t.lineTo(n[1].x,n[1].y);break;case"SQ":case"Q":r=n[1],i=n[2],t.quadraticCurveTo(r.x,r.y,i.x,i.y);break;case"C":r=n[1],i=n[2],o=n[3],t.bezierCurveTo(r.x,r.y,i.x,i.y,o.x,o.y);break;case"A":var a=n,u=a[1],c=a[2],s=a[3],f=a[4],l=a[5],h=a[6],p=a[7],v=a[8],g=f<s?s:f,d=f<s?1:s/f,y=f<s?f/s:1;t.translate(u,c),t.rotate(p),t.scale(d,y),t.arc(0,0,g,l,l+h,1-v),t.scale(1/d,1/y),t.rotate(-p),t.translate(-u,-c);break;case"Z":t.closePath()}},getBBox:function(t){var e=t/2,n=this.params,r=void 0,i=void 0,o=void 0,a=void 0;switch(this.command){default:case"M":case"Z":break;case"TL":case"L":this.box={minX:Math.min(n[0].x,n[1].x)-e,maxX:Math.max(n[0].x,n[1].x)+e,minY:Math.min(n[0].y,n[1].y)-e,maxY:Math.max(n[0].y,n[1].y)+e};break;case"SQ":case"Q":for(o=0,a=(i=T.extrema(n[0].x,n[1].x,n[2].x)).length;o<a;o++)i[o]=T.at(n[0].x,n[1].x,n[2].x,i[o]);for(i.push(n[0].x,n[2].x),o=0,a=(r=T.extrema(n[0].y,n[1].y,n[2].y)).length;o<a;o++)r[o]=T.at(n[0].y,n[1].y,n[2].y,r);r.push(n[0].y,n[2].y),this.box={minX:Math.min.apply(Math,i)-e,maxX:Math.max.apply(Math,i)+e,minY:Math.min.apply(Math,r)-e,maxY:Math.max.apply(Math,r)+e};break;case"C":for(o=0,a=(i=A.extrema(n[0].x,n[1].x,n[2].x,n[3].x)).length;o<a;o++)i[o]=A.at(n[0].x,n[1].x,n[2].x,n[3].x,i[o]);for(o=0,a=(r=A.extrema(n[0].y,n[1].y,n[2].y,n[3].y)).length;o<a;o++)r[o]=A.at(n[0].y,n[1].y,n[2].y,n[3].y,r[o]);i.push(n[0].x,n[3].x),r.push(n[0].y,n[3].y),this.box={minX:Math.min.apply(Math,i)-e,maxX:Math.max.apply(Math,i)+e,minY:Math.min.apply(Math,r)-e,maxY:Math.max.apply(Math,r)+e};break;case"A":var u=n,c=u[1],s=u[2],f=u[3],l=u[4],h=u[5],p=u[6],v=u[7],g=u[8],d=h,y=h+p,b=k.xExtrema(v,f,l),m=1/0,x=-1/0,j=[d,y];for(o=2*-Math.PI;o<=2*Math.PI;o+=Math.PI){var _=b+o;1===g?d<_&&_<y&&j.push(_):y<_&&_<d&&j.push(_)}for(o=0,a=j.length;o<a;o++){var O=k.xAt(v,f,l,c,j[o]);O<m&&(m=O),x<O&&(x=O)}var w=k.yExtrema(v,f,l),S=1/0,M=-1/0,E=[d,y];for(o=2*-Math.PI;o<=2*Math.PI;o+=Math.PI){var C=w+o;1===g?d<C&&C<y&&E.push(C):y<C&&C<d&&E.push(C)}for(o=0,a=E.length;o<a;o++){var P=k.yAt(v,f,l,s,E[o]);P<S&&(S=P),M<P&&(M=P)}this.box={minX:m-e,maxX:x+e,minY:S-e,maxY:M+e}}}}),t.exports=i},function(t,e,n){var p=n(0),r=n(1),i=n(2),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom",lineHeight:null,textArr:null},p.extend(o,r),p.augment(o,{canFill:!0,canStroke:!0,type:"text",getDefaultAttrs:function(){return{lineWidth:1,lineCount:1,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"}},initTransform:function(){this.attr("matrix",[1,0,0,0,1,0,0,0,1]);var t=this.__attrs.fontSize;t&&+t<12&&this.transform([["t",-1*this.__attrs.x,-1*this.__attrs.y],["s",+t/12,+t/12],["t",this.__attrs.x,this.__attrs.y]])},__assembleFont:function(){var t=this.__attrs,e=t.fontSize,n=t.fontFamily,r=t.fontWeight,i=t.fontStyle,o=t.fontVariant;t.font=[i,o,r,e+"px",n].join(" ")},__afterSetAttrFontSize:function(){this.__assembleFont()},__afterSetAttrFontFamily:function(){this.__assembleFont()},__afterSetAttrFontWeight:function(){this.__assembleFont()},__afterSetAttrFontStyle:function(){this.__assembleFont()},__afterSetAttrFontVariant:function(){this.__assembleFont()},__afterSetAttrFont:function(){},__afterSetAttrText:function(){var t=this.__attrs,e=t.text,n=void 0;if(p.isString(e)&&-1!==e.indexOf("\n")){var r=(n=e.split("\n")).length;t.lineCount=r,t.textArr=n}},__getTextHeight:function(){var t=this.__attrs,e=t.lineCount,n=1*t.fontSize;return 1<e?n*e+this.__getSpaceingY()*(e-1):n},__afterSetAttrAll:function(t){("fontSize"in t||"fontWeight"in t||"fontStyle"in t||"fontVariant"in t||"fontFamily"in t)&&this.__assembleFont(),"text"in t&&this.__afterSetAttrText(t.text)},isHitBox:function(){return!1},calculateBox:function(){var t=this.__attrs,e=t.x,n=t.y,r=this.measureText();if(!r)return{minX:e,minY:n,maxX:e,maxY:n};var i=this.__getTextHeight(),o=t.textAlign,a=t.textBaseline,u=this.getHitLineWidth(),c={x:e,y:n-i};o&&("end"===o||"right"===o?c.x-=r:"center"===o&&(c.x-=r/2)),a&&("top"===a?c.y+=i:"middle"===a&&(c.y+=i/2)),this.set("startPoint",c);var s=u/2;return{minX:c.x-s,minY:c.y-s,maxX:c.x+r+s,maxY:c.y+i+s}},__getSpaceingY:function(){var t=this.__attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},isPointInPath:function(t,e){var n=this.getBBox();if(this.hasFill()||this.hasStroke())return i.box(n.minX,n.maxX,n.minY,n.maxY,t,e)},drawInner:function(n){var t=this.__attrs,e=t.text;if(e){var r=t.textArr,i=1*t.fontSize,o=this.__getSpaceingY(),a=t.x,u=t.y,c=t.textBaseline,s=void 0;if(r){var f=this.getBBox();s=f.maxY-f.minY}var l=void 0;if(n.beginPath(),this.hasFill()){var h=t.fillOpacity;p.isNil(h)||1===h||(n.globalAlpha=h),r?p.each(r,function(t,e){l=u+e*(o+i)-s+i,"middle"===c&&(l+=s-i-(s-i)/2),"top"===c&&(l+=s-i),n.fillText(t,a,l)}):n.fillText(e,a,u)}this.hasStroke()&&(r?p.each(r,function(t,e){l=u+e*(o+i)-s+i,"middle"===c&&(l+=s-i-(s-i)/2),"top"===c&&(l+=s-i),n.strokeText(t,a,l)}):n.strokeText(e,a,u))}},measureText:function(){var t=this.__attrs,e=t.text,n=t.font,r=t.textArr,i=void 0,o=0;if(!p.isNil(e)){var a=document.createElement("canvas").getContext("2d");return a.save(),a.font=n,r?p.each(r,function(t){i=a.measureText(t).width,o<i&&(o=i),a.restore()}):(o=a.measureText(e).width,a.restore()),o}}}),t.exports=o},function(t,e,n){var r=n(0),i=n(1),c=n(2),a=n(16),u=n(52),o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x1:0,y1:0,x2:0,y2:0,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(o,i),r.augment(o,{canStroke:!0,type:"line",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this.__attrs,e=t.x1,n=t.y1,r=t.x2,i=t.y2,o=this.getHitLineWidth();return u.box(e,n,r,i,o)},isPointInPath:function(t,e){var n=this.__attrs,r=n.x1,i=n.y1,o=n.x2,a=n.y2,u=this.getHitLineWidth();return!!this.hasStroke()&&c.line(r,i,o,a,u,t,e)},createPath:function(t){var e=this.__attrs,n=e.x1,r=e.y1,i=e.x2,o=e.y2;(t=t||self.get("context")).beginPath(),a.addStartArrow(t,e,n,r,i,o),t.moveTo(n,r),t.lineTo(i,o),a.addEndArrow(t,e,i,o,n,r)},getPoint:function(t){var e=this.__attrs;return{x:u.at(e.x1,e.x2,t),y:u.at(e.y1,e.y2,t)}}}),t.exports=o},function(t,e,n){var l=n(0),r=n(1),u=n(2),i=function t(e){t.superclass.constructor.call(this,e)};i.ATTRS={x:0,y:0,img:void 0,width:0,height:0,sx:null,sy:null,swidth:null,sheight:null},l.extend(i,r),l.augment(i,{type:"image",__afterSetAttrImg:function(t){this.__setAttrImg(t)},__afterSetAttrAll:function(t){t.img&&this.__setAttrImg(t.img)},isHitBox:function(){return!1},calculateBox:function(){var t=this.__attrs,e=t.x,n=t.y;return{minX:e,minY:n,maxX:e+t.width,maxY:n+t.height}},isPointInPath:function(t,e){var n=this.__attrs;if(this.get("toDraw")||!n.img)return!1;var r=n.x,i=n.y,o=n.width,a=n.height;return u.rect(r,i,o,a,t,e)},__setLoading:function(t){var e=this.get("canvas");return!1===t&&!0===this.get("toDraw")&&(this.__cfg.loading=!1,e.draw()),t},__setAttrImg:function(e){var n=this,t=n.__attrs;if(!l.isString(e))return e instanceof Image?(t.width||n.attr("width",e.width),t.height||n.attr("height",e.height),e):e instanceof HTMLElement&&l.isString(e.nodeName)&&"CANVAS"===e.nodeName.toUpperCase()?(t.width||n.attr("width",Number(e.getAttribute("width"))),t.height||n.attr("height",Number(e.getAttribute("height"))),e):e instanceof ImageData?(t.width||n.attr("width",e.width),t.height||n.attr("height",e.height),e):null;var r=new Image;r.onload=function(){if(n.get("destroyed"))return!1;n.attr("imgSrc",e),n.attr("img",r);var t=n.get("callback");t&&t.call(n),n.set("loading",!1)},r.src=e,n.set("loading",!0)},drawInner:function(t){this.get("loading")?this.set("toDraw",!0):this.__drawImage(t)},__drawImage:function(t){var e=this.__attrs,n=e.x,r=e.y,i=e.img,o=e.width,a=e.height,u=e.sx,c=e.sy,s=e.swidth,f=e.sheight;if(this.set("toDraw",!1),i instanceof Image||i instanceof HTMLElement&&l.isString(i.nodeName)&&"CANVAS"===i.nodeName.toUpperCase()){if(l.isNil(u)||l.isNil(c)||l.isNil(s)||l.isNil(f))return void t.drawImage(i,n,r,o,a);if(!(l.isNil(u)||l.isNil(c)||l.isNil(s)||l.isNil(f)))return void t.drawImage(i,u,c,s,f,n,r,o,a)}else if(i instanceof ImageData)return void t.putImageData(i,n,r,u||0,c||0,s||o,f||a)}}),t.exports=i},function(t,e,n){var u=n(0),r=n(1),o=n(2),i=function t(e){t.superclass.constructor.call(this,e)};i.ATTRS={points:null,lineWidth:1},u.extend(i,r),u.augment(i,{canFill:!0,canStroke:!0,type:"polygon",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this.__attrs.points,e=this.getHitLineWidth();if(!t||0===t.length)return null;var r=1/0,i=1/0,o=-1/0,a=-1/0;u.each(t,function(t){var e=t[0],n=t[1];e<r&&(r=e),o<e&&(o=e),n<i&&(i=n),a<n&&(a=n)});var n=e/2;return{minX:r-n,minY:i-n,maxX:o+n,maxY:a+n}},isPointInPath:function(t,e){var n=this.hasFill(),r=this.hasStroke();return n&&r?this.__isPointInFill(t,e)||this.__isPointInStroke(t,e):n?this.__isPointInFill(t,e):!!r&&this.__isPointInStroke(t,e)},__isPointInFill:function(t,e){var n=this.get("context");return this.createPath(),n.isPointInPath(t,e)},__isPointInStroke:function(t,e){var n=this.__attrs.points;if(n.length<2)return!1;var r=this.getHitLineWidth(),i=n.slice(0);return 3<=n.length&&i.push(n[0]),o.polyline(i,r,t,e)},createPath:function(n){var t=this.__attrs.points;t.length<2||((n=n||this.get("context")).beginPath(),u.each(t,function(t,e){0===e?n.moveTo(t[0],t[1]):n.lineTo(t[0],t[1])}),n.closePath())}}),t.exports=i},function(t,e,n){var c=n(0),r=n(1),o=n(2),a=n(16),s=n(52),i=function t(e){t.superclass.constructor.call(this,e)};i.ATTRS={points:null,lineWidth:1,startArrow:!1,endArrow:!1,tCache:null},c.extend(i,r),c.augment(i,{canStroke:!0,type:"polyline",tCache:null,getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this.__attrs,e=this.getHitLineWidth(),n=t.points;if(!n||0===n.length)return null;var r=1/0,i=1/0,o=-1/0,a=-1/0;c.each(n,function(t){var e=t[0],n=t[1];e<r&&(r=e),o<e&&(o=e),n<i&&(i=n),a<n&&(a=n)});var u=e/2;return{minX:r-u,minY:i-u,maxX:o+u,maxY:a+u}},__setTcache:function(){var n=this.__attrs.points,r=0,i=0,o=[],a=void 0,u=void 0;n&&0!==n.length&&(c.each(n,function(t,e){n[e+1]&&(r+=s.len(t[0],t[1],n[e+1][0],n[e+1][1]))}),r<=0||(c.each(n,function(t,e){n[e+1]&&((a=[])[0]=i/r,u=s.len(t[0],t[1],n[e+1][0],n[e+1][1]),i+=u,a[1]=i/r,o.push(a))}),this.tCache=o))},isPointInPath:function(t,e){var n=this.__attrs;if(this.hasStroke()){var r=n.points;if(r.length<2)return!1;var i=n.lineWidth;return o.polyline(r,i,t,e)}return!1},createPath:function(t){var e,n=this.__attrs,r=n.points,i=void 0;if(!(r.length<2)){for((t=t||this.get("context")).beginPath(),a.addStartArrow(t,n,r[1][0],r[1][1],r[0][0],r[0][1]),t.moveTo(r[0][0],r[0][1]),i=1,e=r.length-1;i<e;i++)t.lineTo(r[i][0],r[i][1]);t.lineTo(r[e][0],r[e][1]),a.addEndArrow(t,n,r[e-1][0],r[e-1][1],r[e][0],r[e][1])}},getPoint:function(n){var t=this.__attrs.points,e=this.tCache,r=void 0,i=void 0;return e||(this.__setTcache(),e=this.tCache),c.each(e,function(t,e){n>=t[0]&&n<=t[1]&&(r=(n-t[0])/(t[1]-t[0]),i=e)}),{x:s.at(t[i][0],t[i+1][0],r),y:s.at(t[i][1],t[i+1][1],r)}}}),t.exports=i},function(t,e,n){var r=n(0),i=n(1),f=n(2),s=n(54),p=n(16);function v(t,e,n){return t+e*Math.cos(n)}function g(t,e,n){return t+e*Math.sin(n)}var o=function t(e){t.superclass.constructor.call(this,e)};o.ATTRS={x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(o,i),r.augment(o,{canStroke:!0,type:"arc",getDefaultAttrs:function(){return{x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this.__attrs,e=t.x,n=t.y,r=t.r,i=t.startAngle,o=t.endAngle,a=t.clockwise,u=this.getHitLineWidth()/2,c=s.box(e,n,r,i,o,a);return c.minX-=u,c.minY-=u,c.maxX+=u,c.maxY+=u,c},isPointInPath:function(t,e){var n=this.__attrs,r=n.x,i=n.y,o=n.r,a=n.startAngle,u=n.endAngle,c=n.clockwise,s=this.getHitLineWidth();return!!this.hasStroke()&&f.arcline(r,i,o,a,u,c,s,t,e)},createPath:function(t){var e=this.__attrs,n=e.x,r=e.y,i=e.r,o=e.startAngle,a=e.endAngle,u=e.clockwise,c=void 0,s=void 0,f=void 0,l=void 0,h=void 0;(t=t||self.get("context")).beginPath(),e.startArrow&&(c=Math.PI/180,u&&(c*=-1),s=v(n,i,o+c),f=g(r,i,o+c),l=v(n,i,o),h=g(r,i,o),p.addStartArrow(t,e,s,f,l,h)),t.arc(n,r,i,o,a,u),e.endArrow&&(c=Math.PI/180,u&&(c*=-1),s=v(n,i,a+c),f=g(r,i,a+c),l=v(n,i,a),h=g(r,i,a),p.addEndArrow(t,e,l,h,s,f))}}),t.exports=o},function(t,e,n){var v=n(0),r=n(1),g=n(2),d=n(54),y=n(3).vec2,i=function t(e){t.superclass.constructor.call(this,e)};i.ATTRS={x:0,y:0,rs:0,re:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1},v.extend(i,r),v.augment(i,{canFill:!0,canStroke:!0,type:"fan",getDefaultAttrs:function(){return{clockwise:!1,lineWidth:1,rs:0,re:0}},calculateBox:function(){var t=this.__attrs,e=t.x,n=t.y,r=t.rs,i=t.re,o=t.startAngle,a=t.endAngle,u=t.clockwise,c=this.getHitLineWidth(),s=d.box(e,n,r,o,a,u),f=d.box(e,n,i,o,a,u),l=c/2;return{minX:Math.min(s.minX,f.minX)-l,minY:Math.min(s.minY,f.minY)-l,maxX:Math.max(s.maxX,f.maxX)+l,maxY:Math.max(s.maxY,f.maxY)+l}},isPointInPath:function(t,e){var n=this.hasFill(),r=this.hasStroke();return n&&r?this.__isPointInFill(t,e)||this.__isPointInStroke(t,e):n?this.__isPointInFill(t,e):!!r&&this.__isPointInStroke(t,e)},__isPointInFill:function(t,e){var n=this.__attrs,r=n.x,i=n.y,o=n.rs,a=n.re,u=n.startAngle,c=n.endAngle,s=n.clockwise,f=[t-r,e-i],l=y.angleTo([1,0],f),h=d.nearAngle(l,u,c,s);if(v.isNumberEqual(l,h)){var p=y.squaredLength(f);if(o*o<=p&&p<=a*a)return!0}return!1},__isPointInStroke:function(t,e){var n=this.__attrs,r=n.x,i=n.y,o=n.rs,a=n.re,u=n.startAngle,c=n.endAngle,s=n.clockwise,f=this.getHitLineWidth(),l={x:Math.cos(u)*o+r,y:Math.sin(u)*o+i},h={x:Math.cos(u)*a+r,y:Math.sin(u)*a+i},p={x:Math.cos(c)*o+r,y:Math.sin(c)*o+i},v={x:Math.cos(c)*a+r,y:Math.sin(c)*a+i};return!!g.line(l.x,l.y,h.x,h.y,f,t,e)||(!!g.line(p.x,p.y,v.x,v.y,f,t,e)||(!!g.arcline(r,i,o,u,c,s,f,t,e)||!!g.arcline(r,i,a,u,c,s,f,t,e)))},createPath:function(t){var e=this.__attrs,n=e.x,r=e.y,i=e.rs,o=e.re,a=e.startAngle,u=e.endAngle,c=e.clockwise,s={x:Math.cos(a)*i+n,y:Math.sin(a)*i+r},f={x:Math.cos(a)*o+n,y:Math.sin(a)*o+r},l={x:Math.cos(u)*i+n,y:Math.sin(u)*i+r};(t=t||self.get("context")).beginPath(),t.moveTo(s.x,s.y),t.lineTo(f.x,f.y),t.arc(n,r,o,a,u,c),t.lineTo(l.x,l.y),t.arc(n,r,i,u,a,!c),t.closePath()}}),t.exports=i},function(t,e,n){var l=n(0),r=n(1),c=n(2),a=n(16),h=n(32),i=function t(e){t.superclass.constructor.call(this,e)};i.ATTRS={p1:null,p2:null,p3:null,p4:null,lineWidth:1,startArrow:!1,endArrow:!1},l.extend(i,r),l.augment(i,{canStroke:!0,type:"cubic",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this.__attrs,e=t.p1,n=t.p2,r=t.p3,i=t.p4,o=this.getHitLineWidth(),a=void 0,u=void 0;if(l.isNil(e)||l.isNil(n)||l.isNil(r)||l.isNil(i))return null;var c=o/2,s=h.extrema(e[0],n[0],r[0],i[0]);for(a=0,u=s.length;a<u;a++)s[a]=h.at(e[0],n[0],r[0],i[0],s[a]);var f=h.extrema(e[1],n[1],r[1],i[1]);for(a=0,u=f.length;a<u;a++)f[a]=h.at(e[1],n[1],r[1],i[1],f[a]);return s.push(e[0],i[0]),f.push(e[1],i[1]),{minX:Math.min.apply(Math,s)-c,maxX:Math.max.apply(Math,s)+c,minY:Math.min.apply(Math,f)-c,maxY:Math.max.apply(Math,f)+c}},isPointInPath:function(t,e){var n=this.__attrs,r=n.p1,i=n.p2,o=n.p3,a=n.p4,u=this.getHitLineWidth();return c.cubicline(r[0],r[1],i[0],i[1],o[0],o[1],a[0],a[1],u,t,e)},createPath:function(t){var e=this.__attrs,n=e.p1,r=e.p2,i=e.p3,o=e.p4;t=t||self.get("context"),l.isNil(n)||l.isNil(r)||l.isNil(i)||l.isNil(o)||(t.beginPath(),a.addStartArrow(t,e,r[0],r[1],n[0],n[1]),t.moveTo(n[0],n[1]),t.bezierCurveTo(r[0],r[1],i[0],i[1],o[0],o[1]),a.addEndArrow(t,e,i[0],i[1],o[0],o[1]))},getPoint:function(t){var e=this.__attrs;return{x:h.at(e.p4[0],e.p3[0],e.p2[0],e.p1[0],t),y:h.at(e.p4[1],e.p3[1],e.p2[1],e.p1[1],t)}}}),t.exports=i},function(t,e,n){var f=n(0),r=n(1),u=n(2),o=n(16),l=n(53),i=function t(e){t.superclass.constructor.call(this,e)};i.ATTRS={p1:null,p2:null,p3:null,lineWidth:1,startArrow:!1,endArrow:!1},f.extend(i,r),f.augment(i,{canStroke:!0,type:"quadratic",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this.__attrs,e=t.p1,n=t.p2,r=t.p3,i=this.getHitLineWidth(),o=void 0,a=void 0;if(f.isNil(e)||f.isNil(n)||f.isNil(r))return null;var u=i/2,c=l.extrema(e[0],n[0],r[0]);for(o=0,a=c.length;o<a;o++)c[o]=l.at(e[0],n[0],r[0],c[o]);c.push(e[0],r[0]);var s=l.extrema(e[1],n[1],r[1]);for(o=0,a=s.length;o<a;o++)s[o]=l.at(e[1],n[1],r[1],s[o]);return s.push(e[1],r[1]),{minX:Math.min.apply(Math,c)-u,maxX:Math.max.apply(Math,c)+u,minY:Math.min.apply(Math,s)-u,maxY:Math.max.apply(Math,s)+u}},isPointInPath:function(t,e){var n=this.__attrs,r=n.p1,i=n.p2,o=n.p3,a=this.getHitLineWidth();return u.quadraticline(r[0],r[1],i[0],i[1],o[0],o[1],a,t,e)},createPath:function(t){var e=this.__attrs,n=e.p1,r=e.p2,i=e.p3;f.isNil(n)||f.isNil(r)||f.isNil(i)||((t=t||this.get("context")).beginPath(),o.addStartArrow(t,e,r[0],r[1],n[0],n[1]),t.moveTo(n[0],n[1]),t.quadraticCurveTo(r[0],r[1],i[0],i[1]),o.addEndArrow(t,e,r[0],r[1],i[0],i[1]))},getPoint:function(t){var e=this.__attrs;return{x:l.at(e.p1[0],e.p2[0],e.p3[0],t),y:l.at(e.p1[1],e.p2[1],e.p3[1],t)}}}),t.exports=i},function(t,e,n){var u=n(0),r=n(1),c=n(2),s=function t(e){t.superclass.constructor.call(this,e)};s.Symbols={circle:function(t,e,n,r){r.arc(t,e,n,0,2*Math.PI,!1)},square:function(t,e,n,r){r.moveTo(t-n,e-n),r.lineTo(t+n,e-n),r.lineTo(t+n,e+n),r.lineTo(t-n,e+n),r.closePath()},diamond:function(t,e,n,r){r.moveTo(t-n,e),r.lineTo(t,e-n),r.lineTo(t+n,e),r.lineTo(t,e+n),r.closePath()},triangle:function(t,e,n,r){var i=n*Math.sin(1/3*Math.PI);r.moveTo(t-n,e+i),r.lineTo(t,e-i),r.lineTo(t+n,e+i),r.closePath()},"triangle-down":function(t,e,n,r){var i=n*Math.sin(1/3*Math.PI);r.moveTo(t-n,e-i),r.lineTo(t+n,e-i),r.lineTo(t,e+i),r.closePath()}},s.ATTRS={path:null,lineWidth:1},u.extend(s,r),u.augment(s,{type:"marker",canFill:!0,canStroke:!0,getDefaultAttrs:function(){return{x:0,y:0,lineWidth:1}},calculateBox:function(){var t=this.__attrs,e=t.x,n=t.y,r=t.radius,i=this.getHitLineWidth()/2+r;return{minX:e-i,minY:n-i,maxX:e+i,maxY:n+i}},isPointInPath:function(t,e){var n=this.__attrs,r=n.x,i=n.y,o=n.radius,a=this.getHitLineWidth();return c.circle(r,i,o+a/2,t,e)},createPath:function(t){var e=this.__attrs,n=e.x,r=e.y,i=e.radius,o=e.symbol||"circle",a=void 0;a=u.isFunction(o)?o:s.Symbols[o],t.beginPath(),a(n,r,i,t,this)}}),t.exports=s},function(t,e,n){t.exports={Canvas:n(115),Group:n(89),Shape:n(1),Rect:n(55),Circle:n(100),Ellipse:n(101),Path:n(102),Text:n(104),Line:n(105),Image:n(106),Polygon:n(107),Polyline:n(108),Arc:n(109),Fan:n(110),Cubic:n(111),Quadratic:n(112),Marker:n(113),PathUtil:n(46),PathSegment:n(103),MatrixUtil:n(3),CommonUtil:n(17),DomUtil:n(87),Event:n(88),version:"2.0.7-beta.1"}},function(t,e,n){var r=n(0),o=n(88),i=n(89),a=function t(e){t.superclass.constructor.call(this,e)};a.CFG={eventEnable:!0,width:null,height:null,widthCanvas:null,heightCanvas:null,widthStyle:null,heightStyle:null,containerDOM:null,canvasDOM:null,pixelRatio:null},r.extend(a,i),r.augment(a,{init:function(){a.superclass.init.call(this),this._setGlobalParam(),this._setDOM(),this._setInitSize(),this._setCanvas(),this._scale(),this.get("eventEnable")&&this._registEvents()},getEmitter:function(t,e){if(t){if(!r.isEmpty(t._getEvents()))return t;var n=t.get("parent");if(n&&!e.propagationStopped)return this.getEmitter(n,e)}},_getEventObj:function(t,e,n,r){var i=new o(t,e,!0,!0);return i.x=n.x,i.y=n.y,i.clientX=e.clientX,i.clientY=e.clientY,i.currentTarget=r,i.target=r,i},_triggerEvent:function(t,e){var n=this.getPointByClient(e.clientX,e.clientY),r=this.getShape(n.x,n.y),i=void 0;if("mousemove"===t){var o=this._getEventObj("mousemove",e,n,this);this.emit("mousemove",o);var a=this.get("preShape");if(a&&a!==r){var u=this._getEventObj("mouseleave",e,n,a);(i=this.getEmitter(a,e))&&i.emit("mouseleave",u)}if(r){var c=this._getEventObj("mousemove",e,n,r);if((i=this.getEmitter(r,e))&&i.emit("mousemove",c),a!==r){var s=this._getEventObj("mouseenter",e,n,r);i&&i.emit("mouseenter",s,e)}}this.set("preShape",r)}else{var f=this._getEventObj(t,e,n,r||this);(i=this.getEmitter(r,e))&&i!==this&&i.emit(t,f),this.emit(t,f)}var l=this.get("el");r&&!r.get("destroyed")&&(l.style.cursor=r.attr("cursor")||"default")},_registEvents:function(){var e=this,t=e.get("el");t.addEventListener("mouseout",function(t){e._triggerEvent("mouseleave",t)},!1),t.addEventListener("mouseover",function(t){e._triggerEvent("mouseenter",t)},!1),t.addEventListener("mousemove",function(t){e._triggerEvent("mousemove",t)},!1),t.addEventListener("mousedown",function(t){e._triggerEvent("mousedown",t)},!1),t.addEventListener("mouseup",function(t){e._triggerEvent("mouseup",t)},!1),t.addEventListener("click",function(t){e._triggerEvent("click",t)},!1),t.addEventListener("dblclick",function(t){e._triggerEvent("dblclick",t)},!1),t.addEventListener("touchstart",function(t){r.isEmpty(t.touches)||e._triggerEvent("touchstart",t.touches[0])},!1),t.addEventListener("touchmove",function(t){r.isEmpty(t.touches)||e._triggerEvent("touchmove",t.touches[0])},!1),t.addEventListener("touchend",function(t){r.isEmpty(t.changedTouches)||e._triggerEvent("touchend",t.changedTouches[0])},!1)},_scale:function(){var t=this.get("pixelRatio");this.scale(t,t)},_setCanvas:function(){var t=this.get("canvasDOM");this.set("el",t),this.set("context",t.getContext("2d")),this.set("canvas",this)},_setGlobalParam:function(){this.get("pixelRatio")||this.set("pixelRatio",r.getRatio())},_setDOM:function(){this._setContainer(),this._setLayer()},_setContainer:function(){var t=this.get("containerId"),e=this.get("containerDOM");e||(e=document.getElementById(t),this.set("containerDOM",e)),r.modifyCSS(e,{position:"relative"})},_setLayer:function(){var t=this.get("containerDOM"),e=r.uniqueId("canvas_");if(t){var n=r.createDom('<canvas id="'+e+'"></canvas>');t.appendChild(n),this.set("canvasDOM",n)}},_setInitSize:function(){this.changeSize(this.get("width"),this.get("height"))},_reSize:function(){var t=this.get("canvasDOM"),e=this.get("widthCanvas"),n=this.get("heightCanvas"),r=this.get("widthStyle"),i=this.get("heightStyle");t.style.width=r,t.style.height=i,t.setAttribute("width",e),t.setAttribute("height",n)},getWidth:function(){var t=this.get("pixelRatio");return this.get("width")*t},getHeight:function(){var t=this.get("pixelRatio");return this.get("height")*t},changeSize:function(t,e){var n=this.get("pixelRatio"),r=t*n,i=e*n;this.set("widthCanvas",r),this.set("heightCanvas",i),this.set("widthStyle",t+"px"),this.set("heightStyle",e+"px"),this.set("width",t),this.set("height",e),this._reSize()},getPointByClient:function(t,e){var n=this.get("el"),r=n.getBoundingClientRect(),i=r.right-r.left,o=r.bottom-r.top;return{x:(t-r.left)*(n.width/i),y:(e-r.top)*(n.height/o)}},getClientByPoint:function(t,e){var n=this.get("el"),r=n.getBoundingClientRect(),i=r.right-r.left,o=r.bottom-r.top;return{clientX:t/(n.width/i)+r.left,clientY:e/(n.height/o)+r.top}},beforeDraw:function(){var t=this.get("context"),e=this.get("el");t&&t.clearRect(0,0,e.width,e.height)},_beginDraw:function(){this.setSilent("toDraw",!0)},_endDraw:function(){this.setSilent("toDraw",!1)},draw:function(){var n=this;n.get("destroyed")||(n.get("animateHandler")?this._beginDraw():function t(){n.setSilent("animateHandler",r.requestAnimationFrame(function(){n.setSilent("animateHandler",void 0),n.get("toDraw")&&t()})),n.beforeDraw();try{var e=n.get("context");a.superclass.draw.call(n,e)}catch(t){console.warn("error in draw canvas, detail as:"),console.warn(t),n._endDraw()}n._endDraw()}())},destroy:function(){var t=this.get("containerDOM"),e=this.get("canvasDOM");e&&t&&t.removeChild(e),a.superclass.destroy.call(this)}}),t.exports=a},function(t,e){var n,r="function"==typeof Symbol&&"symbol"===E(Symbol.iterator)?function(t){return void 0===t?"undefined":E(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":E(t)};n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}t.exports=n},function(t,e,n){var r=n(11),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,u=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,u),n=t[u];try{var r=!(t[u]=void 0)}catch(t){}var i=a.call(t);return r&&(e?t[u]=n:delete t[u]),i}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r=n(7),i=n(4),o="[object Boolean]";t.exports=function(t){return!0===t||!1===t||i(t)&&r(t)==o}},function(t,e){t.exports=function(t){return null==t}},function(t,e,n){var r=n(7),i=n(4),o="[object Number]";t.exports=function(t){return"number"==typeof t||i(t)&&r(t)==o}},function(t,e,n){var r=n(58),i=n(12),o=n(34),a=n(6),u=n(9),c=n(19),s=n(18),f=n(23),l="[object Map]",h="[object Set]",p=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(u(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||f(t)||o(t)))return!t.length;var e=i(t);if(e==l||e==h)return!t.size;if(s(t))return!r(t).length;for(var n in t)if(p.call(t,n))return!1;return!0}},function(t,e,n){var r=n(59)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(10)(n(5),"DataView");t.exports=r},function(t,e,n){var r=n(22),i=n(126),o=n(8),a=n(60),u=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,f=c.toString,l=s.hasOwnProperty,h=RegExp("^"+f.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?h:u).test(a(t))}},function(t,e,n){var r,i=n(127),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},function(t,e,n){var r=n(5)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(10)(n(5),"Promise");t.exports=r},function(t,e,n){var r=n(10)(n(5),"Set");t.exports=r},function(t,e,n){var r=n(10)(n(5),"WeakMap");t.exports=r},function(t,e,n){var r=n(7),i=n(4),o="[object Arguments]";t.exports=function(t){return i(t)&&r(t)==o}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(7),i=n(61),o=n(4),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},function(t,e,n){var r=n(62),i=0;t.exports=function(t){var e=++i;return r(t)+e}},function(t,e,n){var r=n(11),i=n(37),o=n(6),a=n(137),u=1/0,c=r?r.prototype:void 0,s=c?c.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return s?s.call(e):"";var n=e+"";return"0"==n&&1/e==-u?"-0":n}},function(t,e,n){var r="function"==typeof Symbol&&"symbol"===E(Symbol.iterator)?function(t){return void 0===t?"undefined":E(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":E(t)},i=n(7),o=n(4),a="[object Symbol]";t.exports=function(t){return"symbol"==(void 0===t?"undefined":r(t))||o(t)&&i(t)==a}},function(t,e,n){var r=n(139),i=4;t.exports=function(t){return r(t,i)}},function(t,e,n){var y=n(38),b=n(64),m=n(39),x=n(162),j=n(164),_=n(68),O=n(30),w=n(167),S=n(169),M=n(72),E=n(170),C=n(12),P=n(171),A=n(172),T=n(76),k=n(6),I=n(19),L=n(177),R=n(8),D=n(179),B=n(14),F=1,N=2,z=4,q="[object Arguments]",V="[object Function]",Y="[object GeneratorFunction]",H="[object Object]",W={};W[q]=W["[object Array]"]=W["[object ArrayBuffer]"]=W["[object DataView]"]=W["[object Boolean]"]=W["[object Date]"]=W["[object Float32Array]"]=W["[object Float64Array]"]=W["[object Int8Array]"]=W["[object Int16Array]"]=W["[object Int32Array]"]=W["[object Map]"]=W["[object Number]"]=W[H]=W["[object RegExp]"]=W["[object Set]"]=W["[object String]"]=W["[object Symbol]"]=W["[object Uint8Array]"]=W["[object Uint8ClampedArray]"]=W["[object Uint16Array]"]=W["[object Uint32Array]"]=!0,W["[object Error]"]=W[V]=W["[object WeakMap]"]=!1,t.exports=function n(r,i,o,t,e,a){var u,c=i&F,s=i&N,f=i&z;if(o&&(u=e?o(r,t,e,a):o(r)),void 0!==u)return u;if(!R(r))return r;var l=k(r);if(l){if(u=P(r),!c)return O(r,u)}else{var h=C(r),p=h==V||h==Y;if(I(r))return _(r,c);if(h==H||h==q||p&&!e){if(u=s||p?{}:T(r),!c)return s?S(r,j(u,r)):w(r,x(u,r))}else{if(!W[h])return e?r:{};u=A(r,h,c)}}a||(a=new y);var v=a.get(r);if(v)return v;if(a.set(r,u),D(r))return r.forEach(function(t){u.add(n(t,i,o,t,r,a))}),u;if(L(r))return r.forEach(function(t,e){u.set(e,n(t,i,o,e,r,a))}),u;var g=f?s?E:M:s?keysIn:B,d=l?void 0:g(r);return b(d||r,function(t,e){d&&(t=r[e=t]),m(u,e,n(t,i,o,e,r,a))}),u}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(26),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},function(t,e,n){var r=n(26);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(26);t.exports=function(t){return-1<r(this.__data__,t)}},function(t,e,n){var i=n(26);t.exports=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}},function(t,e,n){var r=n(25);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var i=n(25),o=n(33),a=n(63),u=200;t.exports=function(t,e){var n=this.__data__;if(n instanceof i){var r=n.__data__;if(!o||r.length<u-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new a(r)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(151),i=n(25),o=n(33);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(t,e,n){var r=n(152),i=n(153),o=n(154),a=n(155),u=n(156);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,e,n){var r=n(27);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(27),i="__lodash_hash_undefined__",o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return n===i?void 0:n}return o.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(27),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},function(t,e,n){var r=n(27),i="__lodash_hash_undefined__";t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?i:e,this}},function(t,e,n){var r=n(28);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){var n="function"==typeof Symbol&&"symbol"===E(Symbol.iterator)?function(t){return void 0===t?"undefined":E(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":E(t)};t.exports=function(t){var e=void 0===t?"undefined":n(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(28);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(28);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var i=n(28);t.exports=function(t,e){var n=i(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}},function(t,e,n){var r=n(13),i=n(14);t.exports=function(t,e){return t&&r(e,i(e),t)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(13),i=n(29);t.exports=function(t,e){return t&&r(e,i(e),t)}},function(t,e,n){var i=n(8),o=n(18),a=n(166),u=Object.prototype.hasOwnProperty;t.exports=function(t){if(!i(t))return a(t);var e=o(t),n=[];for(var r in t)("constructor"!=r||!e&&u.call(t,r))&&n.push(r);return n}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){var r=n(13),i=n(41);t.exports=function(t,e){return r(t,i(t),e)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}},function(t,e,n){var r=n(13),i=n(70);t.exports=function(t,e){return r(t,i(t),e)}},function(t,e,n){var r=n(73),i=n(70),o=n(29);t.exports=function(t){return r(t,o,i)}},function(t,e){var r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&r.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},function(t,e,n){var i=n(43),o=n(173),a=n(174),u=n(175),c=n(75),s="[object Boolean]",f="[object Date]",l="[object Map]",h="[object Number]",p="[object RegExp]",v="[object Set]",g="[object String]",d="[object Symbol]",y="[object ArrayBuffer]",b="[object DataView]",m="[object Float32Array]",x="[object Float64Array]",j="[object Int8Array]",_="[object Int16Array]",O="[object Int32Array]",w="[object Uint8Array]",S="[object Uint8ClampedArray]",M="[object Uint16Array]",E="[object Uint32Array]";t.exports=function(t,e,n){var r=t.constructor;switch(e){case y:return i(t);case s:case f:return new r(+t);case b:return o(t,n);case m:case x:case j:case _:case O:case w:case S:case M:case E:return c(t,n);case l:return new r;case h:case g:return new r(t);case p:return a(t);case v:return new r;case d:return u(t)}}},function(t,e,n){var r=n(43);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,n){var r=n(11),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},function(t,e,n){var r=n(8),i=Object.create,o=function(){function n(){}return function(t){if(!r(t))return{};if(i)return i(t);n.prototype=t;var e=new n;return n.prototype=void 0,e}}();t.exports=o},function(t,e,n){var r=n(178),i=n(24),o=n(36),a=o&&o.isMap,u=a?i(a):r;t.exports=u},function(t,e,n){var r=n(12),i=n(4),o="[object Map]";t.exports=function(t){return i(t)&&r(t)==o}},function(t,e,n){var r=n(180),i=n(24),o=n(36),a=o&&o.isSet,u=a?i(a):r;t.exports=u},function(t,e,n){var r=n(12),i=n(4),o="[object Set]";t.exports=function(t){return i(t)&&r(t)==o}},function(t,e,n){var r=n(39),i=n(13),o=n(77),a=n(9),u=n(18),c=n(14),s=Object.prototype.hasOwnProperty,f=o(function(t,e){if(u(e)||a(e))i(e,c(e),t);else for(var n in e)s.call(e,n)&&r(t,n,e[n])});t.exports=f},function(t,e,n){var c=n(183),s=Math.max;t.exports=function(o,a,u){return a=s(void 0===a?o.length-1:a,0),function(){for(var t=arguments,e=-1,n=s(t.length-a,0),r=Array(n);++e<n;)r[e]=t[a+e];e=-1;for(var i=Array(a+1);++e<a;)i[e]=t[e];return i[a]=u(r),c(o,this,i)}}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var r=n(185),i=n(187)(r);t.exports=i},function(t,e,n){var r=n(186),i=n(65),o=n(44),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=a},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var o=800,a=16,u=Date.now;t.exports=function(n){var r=0,i=0;return function(){var t=u(),e=a-(t-i);if(i=t,0<e){if(++r>=o)return arguments[0]}else r=0;return n.apply(void 0,arguments)}}},function(t,e,n){var i="function"==typeof Symbol&&"symbol"===E(Symbol.iterator)?function(t){return void 0===t?"undefined":E(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":E(t)},o=n(20),a=n(9),u=n(67),c=n(8);t.exports=function(t,e,n){if(!c(n))return!1;var r=void 0===e?"undefined":i(e);return!!("number"==r?a(n)&&u(e,n.length):"string"==r&&e in n)&&o(n[e],t)}},function(t,e,n){var r=n(190),i=n(77)(function(t,e,n){r(t,e,n)});t.exports=i},function(t,e,n){var s=n(38),f=n(79),l=n(80),h=n(192),p=n(8),v=n(29),g=n(81);t.exports=function r(i,o,a,u,c){i!==o&&l(o,function(t,e){if(p(t))c||(c=new s),h(i,o,e,a,r,u,c);else{var n=u?u(g(i,e),t,e+"",i,o,c):void 0;void 0===n&&(n=t),f(i,e,n)}},v)}},function(t,e){t.exports=function(c){return function(t,e,n){for(var r=-1,i=Object(t),o=n(t),a=o.length;a--;){var u=o[c?a:++r];if(!1===e(i[u],u,i))break}return t}}},function(t,e,n){var g=n(79),d=n(68),y=n(75),b=n(30),m=n(76),x=n(34),j=n(6),_=n(193),O=n(19),w=n(22),S=n(8),M=n(194),E=n(23),C=n(81),P=n(195);t.exports=function(t,e,n,r,i,o,a){var u=C(t,n),c=C(e,n),s=a.get(c);if(s)g(t,n,s);else{var f=o?o(u,c,n+"",t,e,a):void 0,l=void 0===f;if(l){var h=j(c),p=!h&&O(c),v=!h&&!p&&E(c);f=c,h||p||v?f=j(u)?u:_(u)?b(u):p?d(c,!(l=!1)):v?y(c,!(l=!1)):[]:M(c)||x(c)?x(f=u)?f=P(u):(!S(u)||r&&w(u))&&(f=m(c)):l=!1}l&&(a.set(c,f),i(f,c,r,o,a),a.delete(c)),g(t,n,f)}}},function(t,e,n){var r=n(9),i=n(4);t.exports=function(t){return i(t)&&r(t)}},function(t,e,n){var r=n(7),i=n(42),o=n(4),a="[object Object]",u=Function.prototype,c=Object.prototype,s=u.toString,f=c.hasOwnProperty,l=s.call(Object);t.exports=function(t){if(!o(t)||r(t)!=a)return!1;var e=i(t);if(null===e)return!0;var n=f.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==l}},function(t,e,n){var r=n(13),i=n(29);t.exports=function(t){return r(t,i(t))}},function(t,e,n){var r=n(197)("toUpperCase");t.exports=r},function(t,e,n){var o=n(198),a=n(82),u=n(83),c=n(62);t.exports=function(i){return function(t){t=c(t);var e=a(t)?u(t):void 0,n=e?e[0]:t.charAt(0),r=e?o(e,1).join(""):t.slice(1);return n[i]()+r}}},function(t,e,n){var i=n(199);t.exports=function(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&r<=n?t:i(t,e,n)}},function(t,e){t.exports=function(t,e,n){var r=-1,i=t.length;e<0&&(e=i<-e?0:i+e),(n=i<n?i:n)<0&&(n+=i),i=n<e?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}},function(t,e){t.exports=function(t){return t.split("")}},function(t,e){var n="\\ud800-\\udfff",r="["+n+"]",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",a="[^"+n+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+i+"|"+o+")"+"?",f="[\\ufe0e\\ufe0f]?",l=f+s+("(?:\\u200d(?:"+[a,u,c].join("|")+")"+f+s+")*"),h="(?:"+[a+i+"?",i,u,c,r].join("|")+")",p=RegExp(o+"(?="+o+")|"+h+l,"g");t.exports=function(t){return t.match(p)||[]}},function(t,e,n){var r=n(78)(n(203));t.exports=r},function(t,e,n){var r=n(204);t.exports=function(t,e){return t&&t.length&&e&&e.length?r(t,e):t}},function(t,e,n){var l=n(37),h=n(205),p=n(209),v=n(24),g=n(30),d=Array.prototype.splice;t.exports=function(t,e,n,r){var i=r?p:h,o=-1,a=e.length,u=t;for(t===e&&(e=g(e)),n&&(u=l(t,v(n)));++o<a;)for(var c=0,s=e[o],f=n?n(s):s;-1<(c=i(u,f,c,r));)u!==t&&d.call(u,c,1),d.call(t,c,1);return t}},function(t,e,n){var r=n(206),i=n(207),o=n(208);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},function(t,e){t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},function(t,e){t.exports=function(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}},function(t,e,n){var r=n(64),i=n(211),o=n(214),a=n(6);t.exports=function(t,e){return(a(t)?r:i)(t,o(e))}},function(t,e,n){var r=n(212),i=n(213)(r);t.exports=i},function(t,e,n){var r=n(80),i=n(14);t.exports=function(t,e){return t&&r(t,e,i)}},function(t,e,n){var u=n(9);t.exports=function(o,a){return function(t,e){if(null==t)return t;if(!u(t))return o(t,e);for(var n=t.length,r=a?n:-1,i=Object(t);(a?r--:++r<n)&&!1!==e(i[r],r,i););return t}}},function(t,e,n){var r=n(44);t.exports=function(t){return"function"==typeof t?t:r}},function(t,e,n){var r=n(216);t.exports=function(t,e){return r(t,e)}},function(t,e,n){var a=n(217),u=n(4);t.exports=function t(e,n,r,i,o){return e===n||(null==e||null==n||!u(e)&&!u(n)?e!=e&&n!=n:a(e,n,r,i,t,o))}},function(t,e,n){var y=n(38),b=n(84),m=n(223),x=n(224),j=n(12),_=n(6),O=n(19),w=n(23),S=1,M="[object Arguments]",E="[object Array]",C="[object Object]",P=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,r,i,o){var a=_(t),u=_(e),c=a?E:j(t),s=u?E:j(e),f=(c=c==M?C:c)==C,l=(s=s==M?C:s)==C,h=c==s;if(h&&O(t)){if(!O(e))return!1;f=!(a=!0)}if(h&&!f)return o||(o=new y),a||w(t)?b(t,e,n,r,i,o):m(t,e,c,n,r,i,o);if(!(n&S)){var p=f&&P.call(t,"__wrapped__"),v=l&&P.call(e,"__wrapped__");if(p||v){var g=p?t.value():t,d=v?e.value():e;return o||(o=new y),i(g,d,n,r,o)}}return!!h&&(o||(o=new y),x(t,e,n,r,i,o))}},function(t,e,n){var r=n(63),i=n(219),o=n(220);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,t.exports=a},function(t,e){var n="__lodash_hash_undefined__";t.exports=function(t){return this.__data__.set(t,n),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var r=n(11),l=n(74),h=n(20),p=n(84),v=n(85),g=n(86),d=1,y=2,b="[object Boolean]",m="[object Date]",x="[object Error]",j="[object Map]",_="[object Number]",O="[object RegExp]",w="[object Set]",S="[object String]",M="[object Symbol]",E="[object ArrayBuffer]",C="[object DataView]",i=r?r.prototype:void 0,P=i?i.valueOf:void 0;t.exports=function(t,e,n,r,i,o,a){switch(n){case C:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case E:return!(t.byteLength!=e.byteLength||!o(new l(t),new l(e)));case b:case m:case _:return h(+t,+e);case x:return t.name==e.name&&t.message==e.message;case O:case S:return t==e+"";case j:var u=v;case w:var c=r&d;if(u||(u=g),t.size!=e.size&&!c)return!1;var s=a.get(t);if(s)return s==e;r|=y,a.set(t,e);var f=p(u(t),u(e),r,i,o,a);return a.delete(t),f;case M:if(P)return P.call(t)==P.call(e)}return!1}},function(t,e,n){var m=n(72),x=1,j=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,r,i,o){var a=n&x,u=m(t),c=u.length;if(c!=m(e).length&&!a)return!1;for(var s=c;s--;){var f=u[s];if(!(a?f in e:j.call(e,f)))return!1}var l=o.get(t);if(l&&o.get(e))return l==e;var h=!0;o.set(t,e),o.set(e,t);for(var p=a;++s<c;){var v=t[f=u[s]],g=e[f];if(r)var d=a?r(g,v,f,e,t,o):r(v,g,f,t,e,o);if(!(void 0===d?v===g||i(v,g,n,r,o):d)){h=!1;break}p||(p="constructor"==f)}if(h&&!p){var y=t.constructor,b=e.constructor;y!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(h=!1)}return o.delete(t),o.delete(e),h}},function(t,e,n){var r=n(11),i=n(30),o=n(12),a=n(9),u=n(57),c=n(226),s=n(85),f=n(86),l=n(83),h=n(227),p="[object Map]",v="[object Set]",g=r?r.iterator:void 0;t.exports=function(t){if(!t)return[];if(a(t))return u(t)?l(t):i(t);if(g&&t[g])return c(t[g]());var e=o(t);return(e==p?s:e==v?f:h)(t)}},function(t,e){t.exports=function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}},function(t,e,n){var r=n(228),i=n(14);t.exports=function(t){return null==t?[]:r(t,i(t))}},function(t,e,n){var r=n(37);t.exports=function(e,t){return r(t,function(t){return e[t]})}},function(t,e,n){var a=n(0),u=["strokeStyle","fillStyle","globalAlpha"],o=["circle","ellipse","fan","polygon","rect","path"],c={r:"R",opacity:"Opacity",lineWidth:"LineWidth",clip:"Clip",stroke:"Stroke",fill:"Fill",strokeOpacity:"Stroke",fillOpacity:"Fill",x:"X",y:"Y",rx:"Rx",ry:"Ry",re:"Re",rs:"Rs",width:"Width",height:"Height",img:"Img",x1:"X1",x2:"X2",y1:"Y1",y2:"Y2",points:"Points",p1:"P1",p2:"P2",p3:"P3",p4:"P4",text:"Text",radius:"Radius",textAlign:"TextAlign",textBaseline:"TextBaseline",font:"Font",fontSize:"FontSize",fontStyle:"FontStyle",fontVariant:"FontVariant",fontWeight:"FontWeight",fontFamily:"FontFamily",clockwise:"Clockwise",startAngle:"StartAngle",endAngle:"EndAngle",path:"Path"},r={stroke:"strokeStyle",fill:"fillStyle",opacity:"globalAlpha"};t.exports={canFill:!1,canStroke:!1,initAttrs:function(t){return this.__attrs={opacity:1,fillOpacity:1,strokeOpacity:1},this.attr(a.assign(this.getDefaultAttrs(),t)),this},getDefaultAttrs:function(){return{}},attr:function(t,e){var n=this;if(0===arguments.length)return n.__attrs;if(a.isObject(t)){for(var r in t)if(-1===u.indexOf(r)){var i=t[r];n._setAttr(r,i)}return n.__afterSetAttrAll&&n.__afterSetAttrAll(t),n.clearBBox(),n}if(2===arguments.length){if(!1!==n._setAttr(t,e)){var o="__afterSetAttr"+c[t];n[o]&&n[o](e)}return n.clearBBox(),n}return n._getAttr(t)},clearBBox:function(){this.setSilent("box",null)},__afterSetAttrAll:function(){},_getAttr:function(t){return this.__attrs[t]},_setAttr:function(t,e){if("clip"===t)this.__setAttrClip(e),this.__attrs.clip=e;else if("transform"===t)this.__setAttrTrans(e);else{this.__attrs[t]=e;var n=r[t];n&&(this.__attrs[n]=e)}return this},hasFill:function(){return this.canFill&&this.__attrs.fillStyle},hasStroke:function(){return this.canStroke&&this.__attrs.strokeStyle},__setAttrOpacity:function(t){return this.__attrs.globalAlpha=t},__setAttrClip:function(r){var i=this;return r&&-1<o.indexOf(r.type)?(null===r.get("canvas")&&(r=a.clone(r)),r.set("parent",i.get("parent")),r.set("context",i.get("context")),r.inside=function(t,e){var n=[t,e,1];return r.invert(n,i.get("canvas")),r.__isPointInFill(n[0],n[1])},r):null},__setAttrTrans:function(t){return this.transform(t)}}},function(t,e,n){var i=n(0),o=n(3).mat3,r=n(3).vec3;function a(t){return 1===t[0]&&0===t[1]&&0===t[3]&&1===t[4]&&0===t[6]&&0===t[7]}function u(t){return 0===t[1]&&0===t[3]&&0===t[6]&&0===t[7]}function c(t,e){a(e)||(u(e)?(t[0]*=e[0],t[4]*=e[4]):o.multiply(t,t,e))}t.exports={initTransform:function(){this.attr("matrix",[1,0,0,0,1,0,0,0,1])},translate:function(t,e){var n=this.attr("matrix");return o.translate(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotate:function(t){var e=this.attr("matrix");return o.rotate(e,e,t),this.clearTotalMatrix(),this.attr("matrix",e),this},scale:function(t,e){var n=this.attr("matrix");return o.scale(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotateAtStart:function(t){var e=this.attr("x"),n=this.attr("y");Math.abs(t)>2*Math.PI&&(t=t/180*Math.PI),this.transform([["t",-e,-n],["r",t],["t",e,n]])},move:function(t,e){var n=this.get("x")||0,r=this.get("y")||0;this.translate(t-n,e-r),this.set("x",t),this.set("y",e)},transform:function(t){var e=this,n=e.attr("matrix");return i.each(t,function(t){switch(t[0]){case"t":e.translate(t[1],t[2]);break;case"s":e.scale(t[1],t[2]);break;case"r":e.rotate(t[1]);break;case"m":e.attr("matrix",o.multiply([],n,t[1])),e.clearTotalMatrix()}}),e},setTransform:function(t){return this.attr("matrix",[1,0,0,0,1,0,0,0,1]),this.transform(t)},getMatrix:function(){return this.attr("matrix")},setMatrix:function(t){return this.attr("matrix",t),this.clearTotalMatrix(),this},apply:function(t,e){var n=void 0;return n=e?this._getMatrixByRoot(e):this.attr("matrix"),r.transformMat3(t,t,n),this},_getMatrixByRoot:function(t){t=t||this;for(var e=this,n=[];e!==t;)n.unshift(e),e=e.get("parent");n.unshift(e);var r=[1,0,0,0,1,0,0,0,1];return i.each(n,function(t){o.multiply(r,t.attr("matrix"),r)}),r},getTotalMatrix:function(){var t=this.__cfg.totalMatrix;if(!t){t=[1,0,0,0,1,0,0,0,1];var e=this.__cfg.parent;if(e)c(t,e.getTotalMatrix());c(t,this.attr("matrix")),this.__cfg.totalMatrix=t}return t},clearTotalMatrix:function(){},invert:function(t){var e=this.getTotalMatrix();if(u(e))t[0]/=e[0],t[1]/=e[4];else{var n=o.invert([],e);n&&r.transformMat3(t,t,n)}return this},resetTransform:function(t){var e=this.attr("matrix");a(e)||t.transform(e[0],e[1],e[3],e[4],e[6],e[7])}}},function(t,e,n){var x=n(45),r={create:function(){var t=new x.ARRAY_TYPE(9);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromMat4:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},clone:function(t){var e=new x.ARRAY_TYPE(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},fromValues:function(t,e,n,r,i,o,a,u,c){var s=new x.ARRAY_TYPE(9);return s[0]=t,s[1]=e,s[2]=n,s[3]=r,s[4]=i,s[5]=o,s[6]=a,s[7]=u,s[8]=c,s},set:function(t,e,n,r,i,o,a,u,c,s){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=u,t[7]=c,t[8]=s,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},transpose:function(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t},invert:function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],u=e[5],c=e[6],s=e[7],f=e[8],l=f*a-u*s,h=-f*o+u*c,p=s*o-a*c,v=n*l+r*h+i*p;return v?(v=1/v,t[0]=l*v,t[1]=(-f*r+i*s)*v,t[2]=(u*r-i*a)*v,t[3]=h*v,t[4]=(f*n-i*c)*v,t[5]=(-u*n+i*o)*v,t[6]=p*v,t[7]=(-s*n+r*c)*v,t[8]=(a*n-r*o)*v,t):null},adjoint:function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],u=e[5],c=e[6],s=e[7],f=e[8];return t[0]=a*f-u*s,t[1]=i*s-r*f,t[2]=r*u-i*a,t[3]=u*c-o*f,t[4]=n*f-i*c,t[5]=i*o-n*u,t[6]=o*s-a*c,t[7]=r*c-n*s,t[8]=n*a-r*o,t},determinant:function(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],u=t[6],c=t[7],s=t[8];return e*(s*o-a*c)+n*(-s*i+a*u)+r*(c*i-o*u)},multiply:function(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],u=e[4],c=e[5],s=e[6],f=e[7],l=e[8],h=n[0],p=n[1],v=n[2],g=n[3],d=n[4],y=n[5],b=n[6],m=n[7],x=n[8];return t[0]=h*r+p*a+v*s,t[1]=h*i+p*u+v*f,t[2]=h*o+p*c+v*l,t[3]=g*r+d*a+y*s,t[4]=g*i+d*u+y*f,t[5]=g*o+d*c+y*l,t[6]=b*r+m*a+x*s,t[7]=b*i+m*u+x*f,t[8]=b*o+m*c+x*l,t}};r.mul=r.multiply,r.translate=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],u=e[4],c=e[5],s=e[6],f=e[7],l=e[8],h=n[0],p=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=u,t[5]=c,t[6]=h*r+p*a+s,t[7]=h*i+p*u+f,t[8]=h*o+p*c+l,t},r.rotate=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],u=e[4],c=e[5],s=e[6],f=e[7],l=e[8],h=Math.sin(n),p=Math.cos(n);return t[0]=p*r+h*a,t[1]=p*i+h*u,t[2]=p*o+h*c,t[3]=p*a-h*r,t[4]=p*u-h*i,t[5]=p*c-h*o,t[6]=s,t[7]=f,t[8]=l,t},r.scale=function(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},r.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},r.fromRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},r.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},r.fromMat2d=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},r.fromQuat=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,u=r+r,c=i+i,s=n*a,f=r*a,l=r*u,h=i*a,p=i*u,v=i*c,g=o*a,d=o*u,y=o*c;return t[0]=1-l-v,t[3]=f-y,t[6]=h+d,t[1]=f+y,t[4]=1-s-v,t[7]=p-g,t[2]=h-d,t[5]=p+g,t[8]=1-s-l,t},r.normalFromMat4=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],u=e[5],c=e[6],s=e[7],f=e[8],l=e[9],h=e[10],p=e[11],v=e[12],g=e[13],d=e[14],y=e[15],b=n*u-r*a,m=n*c-i*a,x=n*s-o*a,j=r*c-i*u,_=r*s-o*u,O=i*s-o*c,w=f*g-l*v,S=f*d-h*v,M=f*y-p*v,E=l*d-h*g,C=l*y-p*g,P=h*y-p*d,A=b*P-m*C+x*E+j*M-_*S+O*w;return A?(A=1/A,t[0]=(u*P-c*C+s*E)*A,t[1]=(c*M-a*P-s*S)*A,t[2]=(a*C-u*M+s*w)*A,t[3]=(i*C-r*P-o*E)*A,t[4]=(n*P-i*M+o*S)*A,t[5]=(r*M-n*C-o*w)*A,t[6]=(g*O-d*_+y*j)*A,t[7]=(d*x-v*O-y*m)*A,t[8]=(v*_-g*x+y*b)*A,t):null},r.str=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},r.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2))},r.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},r.subtract=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t},r.sub=r.subtract,r.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},r.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},r.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},r.equals=function(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],u=t[5],c=t[6],s=t[7],f=t[8],l=e[0],h=e[1],p=e[2],v=e[3],g=e[4],d=e[5],y=t[6],b=e[7],m=e[8];return Math.abs(n-l)<=x.EPSILON*Math.max(1,Math.abs(n),Math.abs(l))&&Math.abs(r-h)<=x.EPSILON*Math.max(1,Math.abs(r),Math.abs(h))&&Math.abs(i-p)<=x.EPSILON*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(o-v)<=x.EPSILON*Math.max(1,Math.abs(o),Math.abs(v))&&Math.abs(a-g)<=x.EPSILON*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(u-d)<=x.EPSILON*Math.max(1,Math.abs(u),Math.abs(d))&&Math.abs(c-y)<=x.EPSILON*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(s-b)<=x.EPSILON*Math.max(1,Math.abs(s),Math.abs(b))&&Math.abs(f-m)<=x.EPSILON*Math.max(1,Math.abs(f),Math.abs(m))},t.exports=r},function(t,e,n){var c,s=n(45),o={};o.create=function(){var t=new s.ARRAY_TYPE(3);return t[0]=0,t[1]=0,t[2]=0,t},o.clone=function(t){var e=new s.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},o.fromValues=function(t,e,n){var r=new s.ARRAY_TYPE(3);return r[0]=t,r[1]=e,r[2]=n,r},o.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},o.set=function(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t},o.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t},o.subtract=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t},o.sub=o.subtract,o.multiply=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t},o.mul=o.multiply,o.divide=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t},o.div=o.divide,o.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},o.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},o.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},o.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},o.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},o.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},o.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t},o.distance=function(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(n*n+r*r+i*i)},o.dist=o.distance,o.squaredDistance=function(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i},o.sqrDist=o.squaredDistance,o.length=function(t){var e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)},o.len=o.length,o.squaredLength=function(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r},o.sqrLen=o.squaredLength,o.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},o.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},o.normalize=function(t,e){var n=e[0],r=e[1],i=e[2],o=n*n+r*r+i*i;return 0<o&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o),t},o.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},o.cross=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],u=n[1],c=n[2];return t[0]=i*c-o*u,t[1]=o*a-r*c,t[2]=r*u-i*a,t},o.lerp=function(t,e,n,r){var i=e[0],o=e[1],a=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t},o.hermite=function(t,e,n,r,i,o){var a=o*o,u=a*(2*o-3)+1,c=a*(o-2)+o,s=a*(o-1),f=a*(3-2*o);return t[0]=e[0]*u+n[0]*c+r[0]*s+i[0]*f,t[1]=e[1]*u+n[1]*c+r[1]*s+i[1]*f,t[2]=e[2]*u+n[2]*c+r[2]*s+i[2]*f,t},o.bezier=function(t,e,n,r,i,o){var a=1-o,u=a*a,c=o*o,s=u*a,f=3*o*u,l=3*c*a,h=c*o;return t[0]=e[0]*s+n[0]*f+r[0]*l+i[0]*h,t[1]=e[1]*s+n[1]*f+r[1]*l+i[1]*h,t[2]=e[2]*s+n[2]*f+r[2]*l+i[2]*h,t},o.random=function(t,e){e=e||1;var n=2*s.RANDOM()*Math.PI,r=2*s.RANDOM()-1,i=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*i,t[1]=Math.sin(n)*i,t[2]=r*e,t},o.transformMat4=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[3]*r+n[7]*i+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/a,t[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/a,t[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/a,t},o.transformMat3=function(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t},o.transformQuat=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],u=n[1],c=n[2],s=n[3],f=s*r+u*o-c*i,l=s*i+c*r-a*o,h=s*o+a*i-u*r,p=-a*r-u*i-c*o;return t[0]=f*s+p*-a+l*-c-h*-u,t[1]=l*s+p*-u+h*-a-f*-c,t[2]=h*s+p*-c+f*-u-l*-a,t},o.rotateX=function(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},o.rotateY=function(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},o.rotateZ=function(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t},o.forEach=(c=o.create(),function(t,e,n,r,i,o){var a,u;for(e||(e=3),n||(n=0),u=r?Math.min(r*e+n,t.length):t.length,a=n;a<u;a+=e)c[0]=t[a],c[1]=t[a+1],c[2]=t[a+2],i(c,c,o),t[a]=c[0],t[a+1]=c[1],t[a+2]=c[2];return t}),o.angle=function(t,e){var n=o.fromValues(t[0],t[1],t[2]),r=o.fromValues(e[0],e[1],e[2]);o.normalize(n,n),o.normalize(r,r);var i=o.dot(n,r);return 1<i?0:Math.acos(i)},o.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},o.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},o.equals=function(t,e){var n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],u=e[2];return Math.abs(n-o)<=s.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=s.EPSILON*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(i-u)<=s.EPSILON*Math.max(1,Math.abs(i),Math.abs(u))},t.exports=o},function(t,e,n){var c,a=n(45),r={};r.create=function(){var t=new a.ARRAY_TYPE(2);return t[0]=0,t[1]=0,t},r.clone=function(t){var e=new a.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e},r.fromValues=function(t,e){var n=new a.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n},r.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},r.set=function(t,e,n){return t[0]=e,t[1]=n,t},r.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},r.subtract=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t},r.sub=r.subtract,r.multiply=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},r.mul=r.multiply,r.divide=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},r.div=r.divide,r.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},r.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},r.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},r.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},r.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},r.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},r.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},r.distance=function(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)},r.dist=r.distance,r.squaredDistance=function(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r},r.sqrDist=r.squaredDistance,r.length=function(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)},r.len=r.length,r.squaredLength=function(t){var e=t[0],n=t[1];return e*e+n*n},r.sqrLen=r.squaredLength,r.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},r.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},r.normalize=function(t,e){var n=e[0],r=e[1],i=n*n+r*r;return 0<i&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i),t},r.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},r.cross=function(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t},r.lerp=function(t,e,n,r){var i=e[0],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t},r.random=function(t,e){e=e||1;var n=2*a.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},r.transformMat2=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t},r.transformMat2d=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t},r.transformMat3=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t},r.transformMat4=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t},r.forEach=(c=r.create(),function(t,e,n,r,i,o){var a,u;for(e||(e=2),n||(n=0),u=r?Math.min(r*e+n,t.length):t.length,a=n;a<u;a+=e)c[0]=t[a],c[1]=t[a+1],i(c,c,o),t[a]=c[0],t[a+1]=c[1];return t}),r.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},r.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]},r.equals=function(t,e){var n=t[0],r=t[1],i=e[0],o=e[1];return Math.abs(n-i)<=a.EPSILON*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-o)<=a.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))},t.exports=r},function(t,e,n){var s=n(3),b=n(46),m=n(0),f=n(235),l=n(246),r=n(249),x=r.interpolate,j=r.interpolateArray,_={delay:"delay"};t.exports={stopAnimate:function(){var t=this,e=t.get("canvas");if(!t.get("destroyed")&&t.get("animating")){var n=t.attr("clip");n&&n.get("animating")&&n.stopAnimate();var r=t.get("animateTimer");r&&(r.stop(),t.setSilent("animateTimer",null));var i=t.get("animateCfg");i&&(t.attr(i.toAttrs),i.toM&&t.setMatrix(i.toM),i.callback&&i.callback(),t.setSilent("animateCfg",null)),t.setSilent("animating",!1),e.draw()}},animate:function(t,r,i,o){var e=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,h=this,p=h.get("canvas"),n=function(t){var e={M:null,attrs:{}};for(var n in t)"transform"===n?e.M=s.transform(h.getMatrix(),t[n]):"matrix"===n?e.M=t[n]:_[n]||(e.attrs[n]=t[n]);return e}(t),v=n.attrs,g=n.M,d=function(t){var e={};for(var n in t)e[n]=h.attr(n);return e}(v),y=m.clone(h.getMatrix()),a=t.repeat,u=h.get("animateTimer");function c(t){var e={};if(!h.get("destroyed")){var n=void 0;for(var r in v)if(!m.isEqual(d[r],v[r]))if("path"===r){var i=b.parsePathString(v[r]),o=b.parsePathString(d[r]);e[r]=[];for(var a=0;a<i.length;a++){for(var u=i[a],c=o[a],s=[],f=0;f<u.length;f++)m.isNumber(u[f])&&c?(n=x(c[f],u[f]),s.push(n(t))):s.push(u[f]);e[r].push(s)}}else n=x(d[r],v[r]),e[r]=n(t);if(g){var l=j(y,g)(t);h.setMatrix(l)}h.attr(e),p.draw()}}u&&u.stop(),m.isNumber(o)&&(e=o,o=null),m.isFunction(i)?(o=i,i="easeLinear"):i=i||"easeLinear",h.setSilent("animating",!0),h.setSilent("animateCfg",{toAttrs:v,toM:g,callback:o}),u=l.timer(function(t){var e,n;a?(n=t%r/r,c(n=f[i](n))):(e=t/r)<1?c(e=f[i](e)):(c(1),o&&o(),h.setSilent("animating",!1),h.setSilent("animateCfg",null),h.setSilent("animateTimer",null),u.stop())},e),h.setSilent("animateTimer",u)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(236);n.d(e,"easeLinear",function(){return r.a});var i=n(237);n.d(e,"easeQuad",function(){return i.b}),n.d(e,"easeQuadIn",function(){return i.a}),n.d(e,"easeQuadOut",function(){return i.c}),n.d(e,"easeQuadInOut",function(){return i.b});var o=n(238);n.d(e,"easeCubic",function(){return o.b}),n.d(e,"easeCubicIn",function(){return o.a}),n.d(e,"easeCubicOut",function(){return o.c}),n.d(e,"easeCubicInOut",function(){return o.b});var a=n(239);n.d(e,"easePoly",function(){return a.b}),n.d(e,"easePolyIn",function(){return a.a}),n.d(e,"easePolyOut",function(){return a.c}),n.d(e,"easePolyInOut",function(){return a.b});var u=n(240);n.d(e,"easeSin",function(){return u.b}),n.d(e,"easeSinIn",function(){return u.a}),n.d(e,"easeSinOut",function(){return u.c}),n.d(e,"easeSinInOut",function(){return u.b});var c=n(241);n.d(e,"easeExp",function(){return c.b}),n.d(e,"easeExpIn",function(){return c.a}),n.d(e,"easeExpOut",function(){return c.c}),n.d(e,"easeExpInOut",function(){return c.b});var s=n(242);n.d(e,"easeCircle",function(){return s.b}),n.d(e,"easeCircleIn",function(){return s.a}),n.d(e,"easeCircleOut",function(){return s.c}),n.d(e,"easeCircleInOut",function(){return s.b});var f=n(243);n.d(e,"easeBounce",function(){return f.c}),n.d(e,"easeBounceIn",function(){return f.a}),n.d(e,"easeBounceOut",function(){return f.c}),n.d(e,"easeBounceInOut",function(){return f.b});var l=n(244);n.d(e,"easeBack",function(){return l.b}),n.d(e,"easeBackIn",function(){return l.a}),n.d(e,"easeBackOut",function(){return l.c}),n.d(e,"easeBackInOut",function(){return l.b});var h=n(245);n.d(e,"easeElastic",function(){return h.c}),n.d(e,"easeElasticIn",function(){return h.a}),n.d(e,"easeElasticOut",function(){return h.c}),n.d(e,"easeElasticInOut",function(){return h.b})},function(t,e,n){"use strict";e.a=function(t){return+t}},function(t,e,n){"use strict";e.a=function(t){return t*t},e.c=function(t){return t*(2-t)},e.b=function(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}},function(t,e,n){"use strict";e.a=function(t){return t*t*t},e.c=function(t){return--t*t*t+1},e.b=function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"c",function(){return i}),n.d(e,"b",function(){return o});var r=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),i=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),o=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3)},function(t,e,n){"use strict";e.a=function(t){return 1-Math.cos(t*i)},e.c=function(t){return Math.sin(t*i)},e.b=function(t){return(1-Math.cos(r*t))/2};var r=Math.PI,i=r/2},function(t,e,n){"use strict";e.a=function(t){return Math.pow(2,10*t-10)},e.c=function(t){return 1-Math.pow(2,-10*t)},e.b=function(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}},function(t,e,n){"use strict";e.a=function(t){return 1-Math.sqrt(1-t*t)},e.c=function(t){return Math.sqrt(1- --t*t)},e.b=function(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}},function(t,e,n){"use strict";e.a=function(t){return 1-p(1-t)},e.c=p,e.b=function(t){return((t*=2)<=1?1-p(1-t):p(t-1)+1)/2};var r=4/11,i=6/11,o=8/11,a=.75,u=9/11,c=10/11,s=.9375,f=21/22,l=63/64,h=1/r/r;function p(t){return(t=+t)<r?h*t*t:t<o?h*(t-=i)*t+a:t<c?h*(t-=u)*t+s:h*(t-=f)*t+l}},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"c",function(){return i}),n.d(e,"b",function(){return o});var r=function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(1.70158),i=function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(1.70158),o=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158)},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"c",function(){return i}),n.d(e,"b",function(){return a});var o=2*Math.PI,r=function e(n,r){var i=Math.asin(1/(n=Math.max(1,n)))*(r/=o);function t(t){return n*Math.pow(2,10*--t)*Math.sin((i-t)/r)}return t.amplitude=function(t){return e(t,r*o)},t.period=function(t){return e(n,t)},t}(1,.3),i=function e(n,r){var i=Math.asin(1/(n=Math.max(1,n)))*(r/=o);function t(t){return 1-n*Math.pow(2,-10*(t=+t))*Math.sin((t+i)/r)}return t.amplitude=function(t){return e(t,r*o)},t.period=function(t){return e(n,t)},t}(1,.3),a=function e(n,r){var i=Math.asin(1/(n=Math.max(1,n)))*(r/=o);function t(t){return((t=2*t-1)<0?n*Math.pow(2,10*t)*Math.sin((i-t)/r):2-n*Math.pow(2,-10*t)*Math.sin((i+t)/r))/2}return t.amplitude=function(t){return e(t,r*o)},t.period=function(t){return e(n,t)},t}(1,.3)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(47);n.d(e,"now",function(){return r.b}),n.d(e,"timer",function(){return r.c}),n.d(e,"timerFlush",function(){return r.d});var i=n(247);n.d(e,"timeout",function(){return i.a});var o=n(248);n.d(e,"interval",function(){return o.a})},function(t,e,n){"use strict";var i=n(47);e.a=function(e,n,t){var r=new i.a;return n=null==n?0:+n,r.restart(function(t){r.stop(),e(t+n)},n,t),r}},function(t,e,n){"use strict";var u=n(47);e.a=function(n,r,i){var o=new u.a,a=r;return null==r?o.restart(n,r,i):(r=+r,i=null==i?Object(u.b)():+i,o.restart(function t(e){e+=a,o.restart(t,a+=r,i),n(e)},r,i)),o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(48);n.d(e,"interpolate",function(){return r.a});var i=n(95);n.d(e,"interpolateArray",function(){return i.a});var o=n(51);n.d(e,"interpolateBasis",function(){return o.b});var a=n(93);n.d(e,"interpolateBasisClosed",function(){return a.a});var u=n(96);n.d(e,"interpolateDate",function(){return u.a});var c=n(31);n.d(e,"interpolateNumber",function(){return c.a});var s=n(97);n.d(e,"interpolateObject",function(){return s.a});var f=n(252);n.d(e,"interpolateRound",function(){return f.a});var l=n(98);n.d(e,"interpolateString",function(){return l.a});var h=n(253);n.d(e,"interpolateTransformCss",function(){return h.a}),n.d(e,"interpolateTransformSvg",function(){return h.b});var p=n(256);n.d(e,"interpolateZoom",function(){return p.a});var v=n(92);n.d(e,"interpolateRgb",function(){return v.a}),n.d(e,"interpolateRgbBasis",function(){return v.b}),n.d(e,"interpolateRgbBasisClosed",function(){return v.c});var g=n(257);n.d(e,"interpolateHsl",function(){return g.a}),n.d(e,"interpolateHslLong",function(){return g.b});var d=n(258);n.d(e,"interpolateLab",function(){return d.a});var y=n(259);n.d(e,"interpolateHcl",function(){return y.a}),n.d(e,"interpolateHclLong",function(){return y.b});var b=n(260);n.d(e,"interpolateCubehelix",function(){return b.b}),n.d(e,"interpolateCubehelixLong",function(){return b.a});var m=n(261);n.d(e,"quantize",function(){return m.a})},function(t,e,n){"use strict";e.a=v,e.b=x;var r=n(50),u=n(49),c=n(91),s=.95047,f=1,l=1.08883,i=4/29,o=6/29,a=3*o*o,h=o*o*o;function p(t){if(t instanceof g)return new g(t.l,t.a,t.b,t.opacity);if(t instanceof j){var e=t.h*c.a;return new g(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof u.b||(t=Object(u.h)(t));var n=m(t.r),r=m(t.g),i=m(t.b),o=d((.4124564*n+.3575761*r+.1804375*i)/s),a=d((.2126729*n+.7151522*r+.072175*i)/f);return new g(116*a-16,500*(o-a),200*(a-d((.0193339*n+.119192*r+.9503041*i)/l)),t.opacity)}function v(t,e,n,r){return 1===arguments.length?p(t):new g(t,e,n,null==r?1:r)}function g(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function d(t){return h<t?Math.pow(t,1/3):t/a+i}function y(t){return o<t?t*t*t:a*(t-i)}function b(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function m(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function x(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof j)return new j(t.h,t.c,t.l,t.opacity);t instanceof g||(t=p(t));var e=Math.atan2(t.b,t.a)*c.b;return new j(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new j(t,e,n,null==r?1:r)}function j(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}Object(r.a)(g,v,Object(r.b)(u.a,{brighter:function(t){return new g(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new g(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return t=f*y(t),e=s*y(e),n=l*y(n),new u.b(b(3.2404542*e-1.5371385*t-.4985314*n),b(-.969266*e+1.8760108*t+.041556*n),b(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),Object(r.a)(j,x,Object(r.b)(u.a,{brighter:function(t){return new j(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new j(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return p(this).rgb()}}))},function(t,e,n){"use strict";e.a=i;var r=n(50),s=n(49),f=n(91),l=-.29227,h=-.90649,p=1.97294,v=p*h,g=1.78277*p,d=1.78277*l- -.14861*h;function i(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof y)return new y(t.h,t.s,t.l,t.opacity);t instanceof s.b||(t=Object(s.h)(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(d*r+v*e-g*n)/(d+v-g),o=r-i,a=(p*(n-i)-l*o)/h,u=Math.sqrt(a*a+o*o)/(p*i*(1-i)),c=u?Math.atan2(a,o)*f.b-120:NaN;return new y(c<0?c+360:c,u,i,t.opacity)}(t):new y(t,e,n,null==r?1:r)}function y(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Object(r.a)(y,i,Object(r.b)(s.a,{brighter:function(t){return t=null==t?s.c:Math.pow(s.c,t),new y(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?s.d:Math.pow(s.d,t),new y(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*f.a,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new s.b(255*(e+n*(-.14861*r+1.78277*i)),255*(e+n*(l*r+h*i)),255*(e+n*(p*r)),this.opacity)}}))},function(t,e,n){"use strict";e.a=function(e,n){return n-=e=+e,function(t){return Math.round(e+n*t)}}},function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return a});var y=n(31),r=n(254);function i(h,p,v,g){function d(t){return t.length?t.pop()+" ":""}return function(t,e){var n,r,i,o,a,u,c,s,f=[],l=[];return t=h(t),e=h(e),function(t,e,n,r,i,o){if(t!==n||e!==r){var a=i.push("translate(",null,p,null,v);o.push({i:a-4,x:Object(y.a)(t,n)},{i:a-2,x:Object(y.a)(e,r)})}else(n||r)&&i.push("translate("+n+p+r+v)}(t.translateX,t.translateY,e.translateX,e.translateY,f,l),n=t.rotate,r=e.rotate,i=f,o=l,n!==r?(180<n-r?r+=360:180<r-n&&(n+=360),o.push({i:i.push(d(i)+"rotate(",null,g)-2,x:Object(y.a)(n,r)})):r&&i.push(d(i)+"rotate("+r+g),a=t.skewX,u=e.skewX,c=f,s=l,a!==u?s.push({i:c.push(d(c)+"skewX(",null,g)-2,x:Object(y.a)(a,u)}):u&&c.push(d(c)+"skewX("+u+g),function(t,e,n,r,i,o){if(t!==n||e!==r){var a=i.push(d(i)+"scale(",null,",",null,")");o.push({i:a-4,x:Object(y.a)(t,n)},{i:a-2,x:Object(y.a)(e,r)})}else 1===n&&1===r||i.push(d(i)+"scale("+n+","+r+")")}(t.scaleX,t.scaleY,e.scaleX,e.scaleY,f,l),t=e=null,function(t){for(var e,n=-1,r=l.length;++n<r;)f[(e=l[n]).i]=e.x(t);return f.join("")}}}var o=i(r.a,"px, ","px)","deg)"),a=i(r.b,", ",")",")")},function(t,e,n){"use strict";e.a=function(t){if("none"===t)return u.b;r||(r=document.createElement("DIV"),i=document.documentElement,o=document.defaultView);return r.style.transform=t,t=o.getComputedStyle(i.appendChild(r),null).getPropertyValue("transform"),i.removeChild(r),t=t.slice(7,-1).split(","),Object(u.a)(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5])},e.b=function(t){if(null==t)return u.b;a||(a=document.createElementNS("http://www.w3.org/2000/svg","g"));return a.setAttribute("transform",t),(t=a.transform.baseVal.consolidate())?(t=t.matrix,Object(u.a)(t.a,t.b,t.c,t.d,t.e,t.f)):u.b};var r,i,o,a,u=n(255)},function(t,e,n){"use strict";n.d(e,"b",function(){return r});var s=180/Math.PI,r={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};e.a=function(t,e,n,r,i,o){var a,u,c;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,c/=u),t*r<e*n&&(t=-t,e=-e,c=-c,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*s,skewX:Math.atan(c)*s,scaleX:a,scaleY:u}}},function(t,e,n){"use strict";var b=Math.SQRT2;function m(t){return((t=Math.exp(t))+1/t)/2}e.a=function(t,e){var n,a,u=t[0],c=t[1],s=t[2],r=e[0],i=e[1],o=e[2],f=r-u,l=i-c,h=f*f+l*l;if(h<1e-12)a=Math.log(o/s)/b,n=function(t){return[u+t*f,c+t*l,s*Math.exp(b*t*a)]};else{var p=Math.sqrt(h),v=(o*o-s*s+4*h)/(2*s*2*p),g=(o*o-s*s-4*h)/(2*o*2*p),d=Math.log(Math.sqrt(v*v+1)-v),y=Math.log(Math.sqrt(g*g+1)-g);a=(y-d)/b,n=function(t){var e,n,r=t*a,i=m(d),o=s/(2*p)*(i*(n=b*r+d,((n=Math.exp(2*n))-1)/(n+1))-(e=d,((e=Math.exp(e))-1/e)/2));return[u+o*f,c+o*l,s*i/m(b*r+d)]}}return n.duration=1e3*a,n}},function(t,e,n){"use strict";n.d(e,"b",function(){return i});var u=n(15),c=n(21);function r(a){return function(e,t){var n=a((e=Object(u.d)(e)).h,(t=Object(u.d)(t)).h),r=Object(c.a)(e.s,t.s),i=Object(c.a)(e.l,t.l),o=Object(c.a)(e.opacity,t.opacity);return function(t){return e.h=n(t),e.s=r(t),e.l=i(t),e.opacity=o(t),e+""}}}e.a=r(c.c);var i=r(c.a)},function(t,e,n){"use strict";e.a=function(e,t){var n=Object(u.a)((e=Object(a.e)(e)).l,(t=Object(a.e)(t)).l),r=Object(u.a)(e.a,t.a),i=Object(u.a)(e.b,t.b),o=Object(u.a)(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=r(t),e.b=i(t),e.opacity=o(t),e+""}};var a=n(15),u=n(21)},function(t,e,n){"use strict";n.d(e,"b",function(){return i});var u=n(15),c=n(21);function r(a){return function(e,t){var n=a((e=Object(u.c)(e)).h,(t=Object(u.c)(t)).h),r=Object(c.a)(e.c,t.c),i=Object(c.a)(e.l,t.l),o=Object(c.a)(e.opacity,t.opacity);return function(t){return e.h=n(t),e.c=r(t),e.l=i(t),e.opacity=o(t),e+""}}}e.a=r(c.c);var i=r(c.a)},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var c=n(15),s=n(21);function r(u){return function t(a){function e(e,t){var n=u((e=Object(c.b)(e)).h,(t=Object(c.b)(t)).h),r=Object(s.a)(e.s,t.s),i=Object(s.a)(e.l,t.l),o=Object(s.a)(e.opacity,t.opacity);return function(t){return e.h=n(t),e.s=r(t),e.l=i(Math.pow(t,a)),e.opacity=o(t),e+""}}return a=+a,e.gamma=t,e}(1)}e.b=r(s.c);var i=r(s.a)},function(t,e,n){"use strict";e.a=function(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n}},function(a,t,u){var c,s="function"==typeof Symbol&&"symbol"===E(Symbol.iterator)?function(t){return void 0===t?"undefined":E(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":E(t)};!function(t){"use strict";function e(){}var n=e.prototype,r=t.EventEmitter;function o(t,e){for(var n=t.length;n--;)if(t[n].listener===e)return n;return-1}function i(t){return function(){return this[t].apply(this,arguments)}}n.getListeners=function(t){var e,n,r=this._getEvents();if(t instanceof RegExp)for(n in e={},r)r.hasOwnProperty(n)&&t.test(n)&&(e[n]=r[n]);else e=r[t]||(r[t]=[]);return e},n.flattenListeners=function(t){var e,n=[];for(e=0;e<t.length;e+=1)n.push(t[e].listener);return n},n.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&((e={})[t]=n),e||n},n.addListener=function(t,e){if(!function t(e){return"function"==typeof e||e instanceof RegExp||!(!e||"object"!==(void 0===e?"undefined":s(e)))&&t(e.listener)}(e))throw new TypeError("listener must be a function");var n,r=this.getListenersAsObject(t),i="object"===(void 0===e?"undefined":s(e));for(n in r)r.hasOwnProperty(n)&&-1===o(r[n],e)&&r[n].push(i?e:{listener:e,once:!1});return this},n.on=i("addListener"),n.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},n.once=i("addOnceListener"),n.defineEvent=function(t){return this.getListeners(t),this},n.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},n.removeListener=function(t,e){var n,r,i=this.getListenersAsObject(t);for(r in i)i.hasOwnProperty(r)&&-1!==(n=o(i[r],e))&&i[r].splice(n,1);return this},n.off=i("removeListener"),n.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},n.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},n.manipulateListeners=function(t,e,n){var r,i,o=t?this.removeListener:this.addListener,a=t?this.removeListeners:this.addListeners;if("object"!==(void 0===e?"undefined":s(e))||e instanceof RegExp)for(r=n.length;r--;)o.call(this,e,n[r]);else for(r in e)e.hasOwnProperty(r)&&(i=e[r])&&("function"==typeof i?o.call(this,r,i):a.call(this,r,i));return this},n.removeEvent=function(t){var e,n=void 0===t?"undefined":s(t),r=this._getEvents();if("string"===n)delete r[t];else if(t instanceof RegExp)for(e in r)r.hasOwnProperty(e)&&t.test(e)&&delete r[e];else delete this._events;return this},n.removeAllListeners=i("removeEvent"),n.emitEvent=function(t,e){var n,r,i,o,a=this.getListenersAsObject(t);for(o in a)if(a.hasOwnProperty(o))for(n=a[o].slice(0),i=0;i<n.length;i++)!0===(r=n[i]).once&&this.removeListener(t,r.listener),r.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,r.listener);return this},n.trigger=i("emitEvent"),n.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},n.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},n._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},n._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return t.EventEmitter=r,e},void 0===(c=function(){return e}.call(t,u,t,a))||(a.exports=c)}(this||{})},function(t,e,n){var r=n(1);r.Rect=n(55),r.Rect=n(55),r.Circle=n(100),r.Ellipse=n(101),r.Path=n(102),r.Text=n(104),r.Line=n(105),r.Image=n(106),r.Polygon=n(107),r.Polyline=n(108),r.Arc=n(109),r.Fan=n(110),r.Cubic=n(111),r.Quadratic=n(112),r.Marker=n(113),t.exports=r},function(t,e){t.exports={xAt:function(t,e,n,r,i){return e*Math.cos(t)*Math.cos(i)-n*Math.sin(t)*Math.sin(i)+r},yAt:function(t,e,n,r,i){return e*Math.sin(t)*Math.cos(i)+n*Math.cos(t)*Math.sin(i)+r},xExtrema:function(t,e,n){return Math.atan(-n/e*Math.tan(t))},yExtrema:function(t,e,n){return Math.atan(n/(e*Math.tan(t)))}}}])},"object"===E(o)&&"object"===E(t)?t.exports=i():(n=[],void 0===(r="function"==typeof(e=i)?e.apply(o,n):e)||(t.exports=r))}).call(o,e(33)(t))},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(92),o="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,a=i||o||Function("return this")();t.exports=a},function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){return null!=t&&"object"==(void 0===t?"undefined":n(t))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(367);n.d(e,"create",function(){return r.a});var i=n(48);n.d(e,"creator",function(){return i.a});var o=n(396);n.d(e,"local",function(){return o.a});var a=n(142);n.d(e,"matcher",function(){return a.a});var u=n(397);n.d(e,"mouse",function(){return u.a});var c=n(78);n.d(e,"namespace",function(){return c.a});var s=n(79);n.d(e,"namespaces",function(){return s.a});var f=n(49);n.d(e,"clientPoint",function(){return f.a});var l=n(140);n.d(e,"select",function(){return l.a});var h=n(398);n.d(e,"selectAll",function(){return h.a});var p=n(7);n.d(e,"selection",function(){return p.b});var v=n(80);n.d(e,"selector",function(){return v.a});var g=n(141);n.d(e,"selectorAll",function(){return g.a});var d=n(145);n.d(e,"style",function(){return d.b});var y=n(399);n.d(e,"touch",function(){return y.a});var b=n(400);n.d(e,"touches",function(){return b.a});var m=n(81);n.d(e,"window",function(){return m.a});var x=n(82);n.d(e,"event",function(){return x.c}),n.d(e,"customEvent",function(){return x.a})},function(t,e,n){"use strict";n.d(e,"c",function(){return I}),e.a=L;var r=n(368),i=n(369),o=n(370),a=n(371),u=n(143),c=n(373),s=n(374),f=n(375),l=n(376),h=n(377),p=n(378),v=n(379),g=n(380),d=n(381),y=n(382),b=n(383),m=n(145),x=n(384),j=n(385),_=n(386),O=n(387),w=n(388),S=n(389),M=n(390),E=n(391),C=n(392),P=n(393),A=n(394),T=n(82),k=n(395),I=[null];function L(t,e){this._groups=t,this._parents=e}function R(){return new L([[document.documentElement]],I)}L.prototype=R.prototype={constructor:L,select:r.a,selectAll:i.a,filter:o.a,data:a.a,enter:u.b,exit:c.a,merge:s.a,order:f.a,sort:l.a,call:h.a,nodes:p.a,node:v.a,size:g.a,empty:d.a,each:y.a,attr:b.a,style:m.a,property:x.a,classed:j.a,text:_.a,html:O.a,raise:w.a,lower:S.a,append:M.a,insert:E.a,remove:C.a,clone:P.a,datum:A.a,on:T.b,dispatch:k.a},e.b=R},function(t,e,n){"use strict";n.d(e,"c",function(){return v}),n.d(e,"d",function(){return g}),n.d(e,"b",function(){return b}),n.d(e,"a",function(){return m}),e.g=function(t,e){var n=i(t,e);if(n.state>s)throw new Error("too late; already scheduled");return n},e.h=function(t,e){var n=i(t,e);if(n.state>g)throw new Error("too late; already started");return n},e.f=i;var r=n(403),p=n(148),u=Object(r.a)("start","end","interrupt"),c=[],s=0,v=1,g=2,d=3,y=4,b=5,m=6;function i(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}e.e=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(o,a,u){var c,s=o.__transition;function f(t){var e,n,r,i;if(u.state!==v)return h();for(e in s)if((i=s[e]).name===u.name){if(i.state===d)return Object(p.b)(f);i.state===y?(i.state=m,i.timer.stop(),i.on.call("interrupt",o,o.__data__,i.index,i.group),delete s[e]):+e<a&&(i.state=m,i.timer.stop(),delete s[e])}if(Object(p.b)(function(){u.state===d&&(u.state=y,u.timer.restart(l,u.delay,u.time),l(t))}),u.state=g,u.on.call("start",o,o.__data__,u.index,u.group),u.state===g){for(u.state=d,c=new Array(r=u.tween.length),e=0,n=-1;e<r;++e)(i=u.tween[e].value.call(o,o.__data__,u.index,u.group))&&(c[++n]=i);c.length=n+1}}function l(t){for(var e=t<u.duration?u.ease.call(null,t/u.duration):(u.timer.restart(h),u.state=b,1),n=-1,r=c.length;++n<r;)c[n].call(null,e);u.state===b&&(u.on.call("end",o,o.__data__,u.index,u.group),h())}function h(){for(var t in u.state=m,u.timer.stop(),delete s[a],s)return;delete o.__transition}(s[a]=u).timer=Object(p.c)(function(t){u.state=v,u.timer.restart(f,u.delay,u.time),u.delay<=t&&f(t-u.delay)},0,u.time)}(t,n,{name:e,index:r,group:i,on:u,tween:c,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:s})}},function(t,e,n){var r=n(16),i=n(172),o=n(173),a="[object Null]",u="[object Undefined]",c=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?u:a:c&&c in Object(t)?i(t):o(t)}},function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var e=void 0===t?"undefined":n(t);return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(73),v=n(132),g=n(0),d=n(1),h=n(337),c=n(342),i=n(76),o=n(354),a=n(355),u=n(356),s=["color","shape","size"],p="_origin";function y(t){return g.isArray(t)?t:g.isString(t)?t.split("*"):[t]}function f(n){return(g.isString(n)||g.isPlainObject(n))&&(n=[n]),g.each(n,function(t,e){g.isObject(t)||(n[e]={type:t})}),n}var l=function(n){function r(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,n.call(this,t));return g.assign(e,o,a,u),e.get("container")&&e._initContainer(),e._initOptions(),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,n),r.prototype.getDefaultCfg=function(){return{_id:null,type:"base",coord:null,attrs:{},view:null,data:[],scales:{},container:null,labelContainer:null,shapeContainer:null,attrOptions:{},styleOptions:null,selectedOptions:null,activedOptions:null,hasDefaultAdjust:!1,adjusts:null,shapeType:null,generatePoints:!1,sortable:!1,labelCfg:null,shareTooltip:!0,tooltipCfg:null,animate:!0,animateCfg:null,visible:!0}},r.prototype._initOptions=function(){var t=this.get("adjusts");t&&(t=f(t),this.set("adjusts",t))},r.prototype._createScale=function(t,e){var n=this.get("scales"),r=n[t];return r||(r=this.get("view").createScale(t,e),n[t]=r),r},r.prototype._setAttrOptions=function(t,e){this.get("attrOptions")[t]=e},r.prototype._createAttrOption=function(t,e,n,r){var i={};i.field=e,n?g.isFunction(n)?i.callback=n:i.values=n:"color"!==t&&(i.values=r),this._setAttrOptions(t,i)},r.prototype.position=function(t){return this._setAttrOptions("position",{field:t}),this},r.prototype.color=function(t,e){return this._createAttrOption("color",t,e,d.colors),this},r.prototype.size=function(t,e){return this._createAttrOption("size",t,e,d.sizes),this},r.prototype.shape=function(t,e){var n=this.get("type"),r=d.shapes[n]||[];return this._createAttrOption("shape",t,e,r),this},r.prototype.opacity=function(t,e){return this._createAttrOption("opacity",t,e,d.opacities),this},r.prototype.style=function(t,e){var n=this.get("styleOptions");n||(n={},this.set("styleOptions",n)),g.isObject(t)&&(e=t,t=null);var r=void 0;return t&&(r=y(t)),n.fields=r,n.style=e,this},r.prototype.label=function(t,e,n){var r=this.get("labelCfg");r||(r={},this.set("labelCfg",r));var i=void 0;return t&&(i=y(t)),r.fields=i,g.isFunction(e)?(n||(n={}),n.content=e):g.isObject(e)&&(n=e),r.cfg=n,this},r.prototype.tooltip=function(t,e){var n=this.get("tooltipCfg");if(n||(n={}),!1===t)this.set("tooltipCfg",!1);else{var r=void 0;t&&(r=y(t)),n.fields=r,n.cfg=e}return this.set("tooltipCfg",n),this},r.prototype.animate=function(t){return this.set("animateCfg",t),this},r.prototype.active=function(t,e){return!1===t?this.set("allowActive",!1):g.isObject(t)?(this.set("allowActive",!0),this.set("activedOptions",t)):(this.set("allowActive",!0),this.set("activedOptions",e)),this},r.prototype.adjust=function(t){return this.get("hasDefaultAdjust")||(t&&(t=f(t)),this.set("adjusts",t)),this},r.prototype.select=function(t,e){return!1===t?this.set("allowSelect",!1):g.isObject(t)?(this.set("allowSelect",!0),this.set("selectedOptions",t)):(this.set("allowSelect",!0),this.set("selectedOptions",e)),this},r.prototype.hasAdjust=function(e){var t=this.get("adjusts");if(!e)return!1;var n=!1;return g.each(t,function(t){if(t.type===e)return!(n=!0)}),n},r.prototype.hasStack=function(){var t=this.get("isStacked");return g.isNil(t)&&(t=this.hasAdjust("stack"),this.set("isStacked",t)),t},r.prototype.isInCircle=function(){var t=this.get("coord");return t&&t.isPolar},r.prototype._initContainer=function(){var t=this.get("shapeContainer");if(!t){var e=this.get("container"),n=this.get("view"),r=n&&n.get("_id");t=e.addGroup({viewId:r,visible:this.get("visible")}),this.set("shapeContainer",t)}},r.prototype.init=function(){var e=this;if(e._initContainer(),e._initAttrs(),e.get("tooltipCfg")&&e.get("tooltipCfg").fields){var t=e.get("tooltipCfg").fields;g.each(t,function(t){e._createScale(t)})}var n=e._processData();e.get("adjusts")&&e._adjust(n),e.set("dataArray",n)},r.prototype._initAttrs=function(){var t=this.get("attrs"),e=this.get("attrOptions"),n=this.get("coord"),r=!1;for(var i in e)if(e.hasOwnProperty(i)){var o=e[i],a=g.upperFirst(i),u=y(o.field);"position"===i&&(o.coord=n,1===u.length&&"theta"===n.type&&(u.unshift("1"),r=!0));for(var c=[],s=0;s<u.length;s++){var f=u[s],l=this._createScale(f);"color"===i&&g.isNil(o.values)&&(l.values.length<=8?o.values=r?d.colors_pie:d.colors:l.values.length<=16?o.values=r?d.colors_pie_16:d.colors_16:o.values=d.colors_24,g.isNil(o.values)&&(o.values=d.colors)),c.push(l)}if("theta"===n.type&&"position"===i&&1<c.length){var h=c[1];h.change({nice:!1,min:0,max:Math.max.apply(null,h.values)})}o.scales=c;var p=new v[a](o);t[i]=p}},r.prototype._processData=function(){for(var t=this.get("data"),e=[],n=this._groupData(t),r=0;r<n.length;r++){var i=n[r],o=this._saveOrigin(i);this._numberic(o),e.push(o)}return e},r.prototype._groupData=function(t){var e=this._getGroupScales().map(function(t){return t.field});return g.Array.group(t,e)},r.prototype._saveOrigin=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n],i={};for(var o in r)i[o]=r[o];i[p]=r,e.push(i)}return e},r.prototype._numberic=function(t){for(var e=this.getAttr("position").scales,n=0;n<t.length;n++)for(var r=t[n],i=0;i<Math.min(2,e.length);i++){var o=e[i];if(o.isCategory){var a=o.field;r[a]=o.translate(r[a])}}},r.prototype._getGroupScales=function(){var n=this.get("groupScales");if(!n){n=[];var t=this.get("attrs");g.each(t,function(t){if(-1!==s.indexOf(t.type)){var e=t.scales;g.each(e,function(t){t.isCategory&&-1===g.indexOf(n,t)&&n.push(t)})}}),this.set("groupScales",n)}return n},r.prototype._updateStackRange=function(t,e,n){for(var r=g.Array.merge(n),i=e.min,o=e.max,a=0;a<r.length;a++){var u=r[a],c=Math.min.apply(null,u[t]),s=Math.max.apply(null,u[t]);c<i&&(i=c),o<s&&(o=s)}(i<e.min||o>e.max)&&e.change({min:i,max:o})},r.prototype._adjust=function(a){var u=this,t=u.get("adjusts"),c=u.getYScale(),s=u.getXScale(),f=s.field,l=c?c.field:null;g.each(t,function(t){var e=g.mix({xField:f,yField:l},t),n=g.upperFirst(t.type);if("Dodge"===n){var r=[];if(s.isCategory||s.isIdentity)r.push("x");else{if(c)throw new Error("dodge is not support linear attribute, please use category attribute!");r.push("y")}e.adjustNames=r}else if("Stack"===n){var i=u.get("coord");if(!c){e.height=i.getHeight();var o=u.getDefaultValue("size")||3;e.size=o}!i.isTransposed&&g.isNil(e.reverseOrder)&&(e.reverseOrder=!0)}new h[n](e).processAdjust(a),"Stack"===n&&c&&u._updateStackRange(l,c,a)})},r.prototype.setCoord=function(t){this.set("coord",t);var e=this.getAttr("position");this.get("shapeContainer").setMatrix(t.matrix),e&&(e.coord=t)},r.prototype.paint=function(){var t=this,e=t.get("dataArray"),n=[],r=t.getShapeFactory();r.setCoord(t.get("coord"));var i=t.get("shapeContainer");t._beforeMapping(e);for(var o=0;o<e.length;o++){var a=e[o],u=o;a=t._mapping(a),n.push(a),t.draw(a,i,r,u)}t.get("labelCfg")&&t._addLabels(g.union.apply(null,n)),t.get("sortable")?t.set("dataArray",n):t._sort(n)},r.prototype._sort=function(t){var n=this.getXScale(),r=n.field;g.each(t,function(t){t.sort(function(t,e){return n.translate(t[p][r])-n.translate(e[p][r])})}),this.set("dataArray",t)},r.prototype._beforeMapping=function(r){var e=this;if(e.get("sortable")){var n=e.getXScale(),i=n.field;g.each(r,function(t){t.sort(function(t,e){return n.translate(t[i])-n.translate(e[i])})})}e.get("generatePoints")&&(g.each(r,function(t){e._generatePoints(t)}),g.each(r,function(t,e){var n=r[e+1];n&&(t[0].nextPoints=n[0].points)}))},r.prototype._addLabels=function(t){var e=this,n=e.get("type"),r=e.get("coord"),i=c.getLabelsClass(r.type,n),o=e.get("container"),a=g.map(e.get("labelCfg").fields,function(t){return e._createScale(t)}),u=o.addGroup(i,{_id:this.get("_id"),labelCfg:g.mix({scales:a},e.get("labelCfg")),coord:r,geom:e,geomType:n,visible:e.get("visible")});u.showLabels(t),e.set("labelContainer",u)},r.prototype.getShapeFactory=function(){var t=this.get("shapeFactory");if(!t){var e=this.get("shapeType");t=i.getShapeFactory(e),this.set("shapeFactory",t)}return t},r.prototype._generatePoints=function(t){for(var e=this.getShapeFactory(),n=this.getAttr("shape"),r=0;r<t.length;r++){var i=t[r],o=this.createShapePointsCfg(i),a=n?this._getAttrValues(n,i):null,u=e.getShapePoints(a,o);i.points=u}},r.prototype.createShapePointsCfg=function(t){var e=this.getXScale(),n=this.getYScale();return{x:this._normalizeValues(t[e.field],e),y:n?this._normalizeValues(t[n.field],n):t.y?t.y:.1,y0:n?n.scale(this.getYMinValue()):void 0}},r.prototype.getYMinValue=function(){var t=this.getYScale().min;return 0<=t?t:0},r.prototype._normalizeValues=function(t,e){var n=[];if(g.isArray(t))for(var r=0;r<t.length;r++){var i=t[r];n.push(e.scale(i))}else n=e.scale(t);return n},r.prototype._mapping=function(t){for(var e=this.get("attrs"),n=[],r=0;r<t.length;r++){var i=t[r],o={};for(var a in o[p]=i[p],o.points=i.points,o.nextPoints=i.nextPoints,e)if(e.hasOwnProperty(a)){var u=e[a],c=u.names,s=this._getAttrValues(u,i);if(1<c.length)for(var f=0;f<s.length;f++){var l=s[f];o[c[f]]=g.isArray(l)&&1===l.length?l[0]:l}else o[c[0]]=1===s.length?s[0]:s}n.push(o)}return n},r.prototype._getAttrValues=function(t,e){for(var n=t.scales,r=[],i=0;i<n.length;i++){var o=n[i],a=o.field;"identity"===o.type?r.push(o.value):r.push(e[a])}return t.mapping.apply(t,r)},r.prototype.getAttrValue=function(t,e){var n=this.getAttr(t),r=null;n&&(r=this._getAttrValues(n,e)[0]);return r},r.prototype.getDefaultValue=function(t){var e=this.get(t),n=this.getAttr(t);if(n){var r=n.getScale(t);"identity"===r.type&&(e=r.value)}return e},r.prototype.draw=function(t,e,n,r){for(var i=0;i<t.length;i++){var o=t[i];this.drawPoint(o,e,n,r+i)}},r.prototype.getCallbackCfg=function(t,e,n){if(!t)return e;var r={},i=t.map(function(t){return n[t]});return g.each(e,function(t,e){g.isFunction(t)?r[e]=t.apply(null,i):r[e]=t}),r},r.prototype._getShapeId=function(n){var r=this.get("_id"),t=this.get("keyFields");if(t&&0<t.length)g.each(t,function(t){r+="-"+n[t]});else{var e=this.get("type"),i=this.getXScale(),o=this.getYScale(),a=i.field||"x",u=o.field||"y",c=n[u],s=void 0;s=i.isIdentity?i.value:n[a],r+="interval"===e||"schema"===e?"-"+s:"line"===e||"area"===e||"path"===e?"-"+e:"-"+s+"-"+c;var f=this._getGroupScales();g.isEmpty(f)||g.each(f,function(t){var e=t.field;"identity"!==t.type&&(r+="-"+n[e])})}return r},r.prototype.getDrawCfg=function(t){var e={origin:t,x:t.x,y:t.y,color:t.color,size:t.size,shape:t.shape,isInCircle:this.isInCircle(),opacity:t.opacity},n=this.get("styleOptions");return n&&n.style&&(e.style=this.getCallbackCfg(n.fields,n.style,t[p])),this.get("generatePoints")&&(e.points=t.points,e.nextPoints=t.nextPoints),this.get("animate")&&(e._id=this._getShapeId(t[p])),e},r.prototype.appendShapeInfo=function(t,e){t&&(t.setSilent("index",e),t.setSilent("coord",this.get("coord")),this.get("animate")&&this.get("animateCfg")&&t.setSilent("animateCfg",this.get("animateCfg")))},r.prototype.drawPoint=function(t,e,n,r){var i=t.shape,o=this.getDrawCfg(t),a=n.drawShape(i,o,e);this.appendShapeInfo(a,r)},r.prototype.getAttr=function(t){return this.get("attrs")[t]},r.prototype.getXScale=function(){return this.getAttr("position").scales[0]},r.prototype.getYScale=function(){return this.getAttr("position").scales[1]},r.prototype.getShapes=function(){var e=[],t=this.get("shapeContainer").get("children");return g.each(t,function(t){t.get("origin")&&e.push(t)}),e},r.prototype.getAttrsForLegend=function(){var t=this.get("attrs"),e=[];return g.each(t,function(t){-1!==s.indexOf(t.type)&&e.push(t)}),e},r.prototype.getFieldsForLegend=function(){var n=[],r=this.get("attrOptions");return g.each(s,function(t){var e=r[t];e&&e.field&&g.isString(e.field)&&(n=n.concat(e.field.split("*")))}),g.uniq(n)},r.prototype.changeVisible=function(t,e){var n=this.get("shapeContainer");n.set("visible",t);var r=this.get("labelContainer");(r&&r.set("visible",t),e)||n.get("canvas").draw()},r.prototype.reset=function(){this.set("attrOptions",{}),this.clearInner()},r.prototype.clearInner=function(){this.clearActivedShapes(),this.clearSelected();var t=this.get("shapeContainer");t&&t.clear();var e=this.get("labelContainer");e&&e.remove(),this.set("attrs",{}),this.set("groupScales",null),this.set("labelContainer",null),this.set("xDistance",null),this.set("isStacked",null)},r.prototype.clear=function(){this.clearInner(),this.set("scales",{})},r.prototype.destroy=function(){this.clear();var t=this.get("shapeContainer");t&&t.remove(),this.offEvents(),n.prototype.destroy.call(this)},r.prototype.bindEvents=function(){this.get("view")&&(this._bindActiveAction(),this._bindSelectedAction())},r.prototype.offEvents=function(){this.get("view")&&(this._offActiveAction(),this._offSelectedAction())},r}(r);t.exports=l},function(t,e,n){var r=n(59),i=n(60);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},function(t,e,n){var a=n(0),r=n(18),i=n(2).PathUtil,u={},c={_coord:null,draw:function(t,e){return this.drawShape?this.drawShape(t,e):null},setCoord:function(t){this._coord=t},parsePath:function(t,e){var n=this._coord;return t=i.parsePathString(t),t=n.isPolar&&!1!==e?r.convertPolarPath(n,t):r.convertNormalPath(n,t)},parsePoint:function(t){return this._coord.convertPoint(t)},parsePoints:function(t){var e=this._coord,n=[];return a.each(t,function(t){n.push(e.convertPoint(t))}),n}},o={defaultShapeType:null,setCoord:function(t){this._coord=t},getShape:function(t){a.isArray(t)&&(t=t[0]);var e=this[t]||this[this.defaultShapeType];return e._coord=this._coord,e},getShapePoints:function(t,e){var n=this.getShape(t);return(n.getPoints||n.getShapePoints||this.getDefaultPoints)(e)},getDefaultPoints:function(){return[]},getMarkerCfg:function(t,e){var n=this.getShape(t);if(!n.getMarkerCfg){var r=this.defaultShapeType;n=this.getShape(r)}return n.getMarkerCfg(e)},getSelectedCfg:function(){return{}},drawShape:function(t,e,n){var r=this.getShape(t).draw(e,n);return r&&(r.setSilent("origin",e.origin),r._id=e.yIndex?e._id+e.yIndex:e._id,r.name=this.name),r}};u.registerFactory=function(t,e){var n=a.upperFirst(t),r=a.assign({},o,e);return(u[n]=r).name=t,r},u.registerShape=function(t,e,n){var r=a.upperFirst(t),i=u[r],o=a.assign({},c,n);return i[e]=o},u.getShapeFactory=function(t){return t=t||"point",this[a.upperFirst(t)]},t.exports=u},function(t,e,n){"use strict";e.a=_,e.b=O,e.c=function(){return++j};var r=n(6),i=n(408),o=n(421),a=n(422),u=n(423),c=n(424),s=n(425),f=n(426),l=n(427),h=n(428),p=n(429),v=n(430),g=n(431),d=n(432),y=n(433),b=n(434),m=n(435),x=n(51),j=0;function _(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function O(t){return Object(r.selection)().transition(t)}var w=r.selection.prototype;_.prototype=O.prototype={constructor:_,select:p.a,selectAll:v.a,filter:s.a,merge:f.a,selection:g.a,transition:m.a,call:w.call,nodes:w.nodes,node:w.node,size:w.size,empty:w.empty,each:w.each,on:l.a,attr:i.a,attrTween:o.a,style:d.a,styleTween:y.a,text:b.a,remove:h.a,tween:x.a,delay:a.a,duration:u.a,ease:c.a}},function(t,e,n){var r=n(170),i=n(176);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},function(t,e,n){var r=n(4).Symbol;t.exports=r},function(t,e,n){var r=n(97),i=n(100),o=n(12);t.exports=function(t){return o(t)?r(t):i(t)}},function(t,e,n){var s=n(0),u=n(344);function y(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function f(t,e){for(var n=t.length,r=[t[0]],i=1;i<n;i+=2){var o=e.convertPoint({x:t[i],y:t[i+1]});r.push(o.x,o.y)}return r}var c={getLinePath:function(t,e){return function(t,e){if(!t.length)return[];for(var n=[],r=0,i=t.length;r<i;r++){var o=t[r];0===r?n.push(["M",o.x,o.y]):n.push(["L",o.x,o.y])}return e&&n.push(["Z"]),n}(t,e)},getSplinePath:function(t,e,n){var r=[],i=t[0],o=null;if(t.length<=2)return c.getLinePath(t,e);s.each(t,function(t){o&&o.x===t.x&&o.y===t.y||(r.push(t.x),r.push(t.y),o=t)}),n=n||[[0,0],[1,1]];var a=u.catmullRom2bezier(r,e,n);return a.unshift(["M",i.x,i.y]),a},getPointRadius:function(t,e){return y(t,e)},getPointAngle:function(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)},convertNormalPath:function(e,t){var n=[];return s.each(t,function(t){switch(t[0].toLowerCase()){case"m":case"l":case"c":n.push(f(t,e));break;case"z":default:n.push(t)}}),n},convertPolarPath:function(n,r){var i,o=[],a=void 0,u=void 0,c=void 0;return s.each(r,function(t,e){switch(t[0].toLowerCase()){case"m":case"c":case"q":o.push(f(t,n));break;case"l":a=r[e-1],u=t,c=n.isTransposed,(c?a[a.length-2]===u[1]:a[a.length-1]===u[2])?o=o.concat(function(t,e,n){var r=n.isTransposed,i=n.startAngle,o=n.endAngle,a={x:t[1],y:t[2]},u={x:e[1],y:e[2]},c=[],s=r?"y":"x",f=Math.abs(u[s]-a[s])*(o-i),l=a[s]<=u[s]?1:0,h=f>Math.PI?1:0,p=n.convertPoint(u),v=y(n,p);if(.5<=v)if(f===2*Math.PI){var g={x:(u.x+a.x)/2,y:(u.y+a.y)/2},d=n.convertPoint(g);c.push(["A",v,v,0,h,l,d.x,d.y]),c.push(["A",v,v,0,h,l,p.x,p.y])}else c.push(["A",v,v,0,h,l,p.x,p.y]);return c}(a,u,n)):o.push(f(t,n));break;case"z":default:o.push(t)}}),i=o,s.each(i,function(t,e){if("a"===t[0].toLowerCase()){var n=i[e-1],r=i[e+1];r&&"a"===r[0].toLowerCase()?n&&"l"===n[0].toLowerCase()&&(n[0]="M"):n&&"a"===n[0].toLowerCase()&&r&&"l"===r[0].toLowerCase()&&(r[0]="M")}}),o}};t.exports=c},function(t,e,n){"use strict";var r=n(87);n.d(e,"a",function(){return r.e}),n.d(e,"f",function(){return r.g}),n.d(e,"d",function(){return r.f});var i=n(409);n.d(e,"e",function(){return i.a}),n.d(e,"c",function(){return i.b});var o=n(410);n.d(e,"b",function(){return o.a})},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(243),o=n(252),a=n(36),u=n(3),c=n(260);t.exports=function(t){return"function"==typeof t?t:null==t?a:"object"==(void 0===t?"undefined":r(t))?u(t)?o(t[0],t[1]):i(t):c(t)}},function(t,e,n){var r=n(257);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var u=n(0);function i(t,e){return u.isString(e)?e:t.invert(t.scale(e))}var r=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.type="base",this.name=null,this.method=null,this.values=[],this.scales=[],this.linear=null,u.mix(this,t)}return e.prototype.get=function(t){return this[t]},e.prototype.set=function(t,e){this[t]=e},e.prototype._getAttrValue=function(t,e){var n=this.values;if(t.isCategory&&!this.linear)return n[t.translate(e)%n.length];var r=t.scale(e);return this.getLinearValue(r)},e.prototype.getLinearValue=function(t){var e=this.values,n=e.length-1,r=Math.floor(n*t),i=n*t-r,o=e[r];return o+((r===n?o:e[r+1])-o)*i},e.prototype.callback=function(t){var e=this.scales[0];return"identity"===e.type?e.value:this._getAttrValue(e,t)},e.prototype.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),r=[],i=0;i<n;i++)r.push(e[i]);return r},e.prototype.getFields=function(){var t=this.scales,e=[];return u.each(t,function(t){e.push(t.field)}),e},e.prototype.getScale=function(t){return this.scales[this.names.indexOf(t)]},e.prototype.mapping=function(){for(var t=this.scales,e=this.callback,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=r;if(e){for(var a=0;a<r.length;a++)r[a]=this._toOriginParam(r[a],t[a]);o=e.apply(this,r)}return u.isArray(o)||(o=[o]),o},e.prototype._toOriginParam=function(t,e){var n=t;if(!e.isLinear)if(u.isArray(t)){n=[];for(var r=0;r<t.length;r++)n.push(i(e,t[r]))}else n=i(e,t);return n},e}();t.exports=r},function(t,e,n){var c=n(0),i=["min","max","median"];function s(t){var e=void 0;return c.each(t,function(t){if(t)return e=t,!1}),e}var r=function(){function n(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);var e=this.getDefaultCfg();t=c.deepMix({},e,t),c.mix(this,t)}return n.prototype.getDefaultCfg=function(){return{zIndex:1,xScales:null,yScales:null,el:null}},n.prototype._getNormalizedValue=function(t,e){var n=void 0;if(-1!==c.indexOf(i,t)){var r=void 0;r="median"===t?e.isCategory?(e.values.length-1)/2:(e.min+e.max)/2:e.isCategory?"min"===t?0:e.values.length-1:e[t],n=e.scale(r)}else n=e.scale(t);return n},n.prototype.parsePoint=function(t,e){var n=this.xScales,r=this.yScales;c.isFunction(e)&&(e=e(n,r));var i=void 0,o=void 0;if(c.isArray(e)&&c.isString(e[0])&&-1!==e[0].indexOf("%"))return this.parsePercentPoint(t,e);if(c.isArray(e))i=this._getNormalizedValue(e[0],s(n)),o=this._getNormalizedValue(e[1],s(r));else for(var a in e){var u=e[a];n[a]&&(i=this._getNormalizedValue(u,n[a])),r[a]&&(o=this._getNormalizedValue(u,r[a]))}return c.isNil(i)||c.isNil(o)?void 0:t.convert({x:i,y:o})},n.prototype.parsePercentPoint=function(t,e){var n=parseFloat(e[0])/100,r=parseFloat(e[1])/100,i=t.start,o=t.end,a=Math.min(i.x,o.x),u=Math.min(i.y,o.y);return{x:t.width*n+a,y:t.height*r+u}},n.prototype.setVisible=function(t){var e=this.el;e&&(e.set?e.set("visible",t):e.style.display=t?"":"none")},n.prototype.render=function(){},n.prototype.remove=function(){var t=this.el;t&&t.remove()},n}();t.exports=r},function(t,e,n){var s=n(34),f=n(58);t.exports=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var u=e[o],c=r?r(n[u],t[u],u,n,t):void 0;void 0===c&&(c=t[u]),i?f(n,u,c):s(n,u,c)}return n}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}},function(t,e,n){var r=n(236),i=n(239)(r);t.exports=i},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(9),o=n(5),a="[object Symbol]";t.exports=function(t){return"symbol"==(void 0===t?"undefined":r(t))||o(t)&&i(t)==a}},function(t,e,n){var r=n(28),i=1/0;t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}},function(t,e,n){var a=n(0),r=function(){function n(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);var e=this.getDefaultCfg();a.assign(this,e,t)}return n.prototype.getDefaultCfg=function(){return{xField:null,yField:null,adjustNames:["x","y"],groupFields:null}},n.prototype.isAdjust=function(t){return 0<=this.adjustNames.indexOf(t)},n.prototype.processAdjust=function(t){var e=a.Array.merge(t);this.adjDataArray=t,this.mergeData=e,this.adjustData(t,e),this.adjFrames=null,this.mergeData=null},n.prototype._getDimValues=function(n){var r={},t=[];if(this.xField&&this.isAdjust("x")&&t.push(this.xField),this.yField&&this.isAdjust("y")&&t.push(this.yField),a.each(t,function(t){var e=a.Array.values(n,t);e.sort(function(t,e){return t-e}),r[t]=e}),!this.yField&&this.isAdjust("y")){var e=[0,1];r.y=e}return r},n.prototype.adjustData=function(i,t){var o=this,e=o._getDimValues(t);a.each(i,function(n,r){a.each(e,function(t,e){o.adjustDim(e,t,n,i.length,r)})})},n.prototype.adjustDim=function(){},n.prototype.getAdjustRange=function(t,e,n){var r=n.indexOf(e),i=n.length,o=void 0,a=void 0;return!this.yField&&this.isAdjust("y")?(o=0,a=1):1<i?(o=0===r?n[0]:n[r-1],a=r===i-1?n[i-1]:n[r+1],0!==r?o+=(e-o)/2:o-=(a-e)/2,r!==i-1?a-=(a-e)/2:a+=(e-n[i-2])/2):(o=0===e?0:e-.5,a=0===e?1:e+.5),{pre:o,next:a}},n.prototype.groupData=function(t,n){var r={};return a.each(t,function(t){var e=t[n];void 0===e&&(e=t[n]=0),r[e]||(r[e]=[]),r[e].push(t)}),r},n}();t.exports=r},function(t,e,n){"use strict";e.c=function(t,e){var n=e-t;return n?r(t,180<n||n<-180?n-360*Math.round(n/360):n):Object(a.a)(isNaN(t)?e:t)},e.b=function(o){return 1==(o=+o)?i:function(t,e){return e-t?(n=t,r=e,i=o,n=Math.pow(n,i),r=Math.pow(r,i)-n,i=1/i,function(t){return Math.pow(n+t*r,i)}):Object(a.a)(isNaN(t)?e:t);var n,r,i}},e.a=i;var a=n(152);function r(e,n){return function(t){return e+t*n}}function i(t,e){var n=e-t;return n?r(t,n):Object(a.a)(isNaN(t)?e:t)}},function(t,e,n){t.exports={Axis:n(462),Guide:n(468),Label:n(75),Legend:n(475),Plot:n(480),Tooltip:n(481)}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var i=n(58),o=n(35),a=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var r=t[e];a.call(t,e)&&o(r,n)&&(void 0!==n||e in t)||i(t,e,n)}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e){t.exports=function(t){return t}},function(t,e){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){return!!(e=null==e?n:e)&&("number"==typeof t||r.test(t))&&-1<t&&t%1==0&&t<e}},function(t,e,n){var r=n(184),i=n(5),o=Object.prototype,a=o.hasOwnProperty,u=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=c},function(t,c,s){(function(t){var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=s(4),r=s(185),i="object"==e(c)&&c&&!c.nodeType&&c,o=i&&"object"==e(t)&&t&&!t.nodeType&&t,a=o&&o.exports===i?n.Buffer:void 0,u=(a?a.isBuffer:void 0)||r;t.exports=u}).call(c,s(33)(t))},function(t,e,n){var r=n(189),i=n(190),o=n(191),a=n(192),u=n(193);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,e,n){var r=n(35);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(15)(Object,"create");t.exports=r},function(t,e,n){var r=n(207);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){var r=n(219),i=n(63),o=n(220),a=n(111),u=n(221),c=n(9),s=n(93),f="[object Map]",l="[object Promise]",h="[object Set]",p="[object WeakMap]",v="[object DataView]",g=s(r),d=s(i),y=s(o),b=s(a),m=s(u),x=c;(r&&x(new r(new ArrayBuffer(1)))!=v||i&&x(new i)!=f||o&&x(o.resolve())!=l||a&&x(new a)!=h||u&&x(new u)!=p)&&(x=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,r=n?s(n):"";if(r)switch(r){case g:return v;case d:return f;case y:return l;case b:return h;case m:return p}return e}),t.exports=x},function(t,e){t.exports=function(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}},function(t,e,n){var a=n(245),u=n(5);t.exports=function t(e,n,r,i,o){return e===n||(null==e||null==n||!u(e)&&!u(n)?e!=e&&n!=n:a(e,n,r,i,t,o))}},function(t,e,n){var r=n(3),i=n(71),o=n(254),a=n(21);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(a(t))}},function(t,e,n){"use strict";var r=n(78),i=n(79);e.a=function(t){var e=Object(r.a)(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(n){return function(){var t=this.ownerDocument,e=this.namespaceURI;return e===i.b&&t.documentElement.namespaceURI===i.b?t.createElement(n):t.createElementNS(e,n)}})(e)}},function(t,e,n){"use strict";e.a=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}},function(t,e,n){"use strict";e.a=function(e,n){return n-=e=+e,function(t){return e+n*t}}},function(t,e,n){"use strict";e.b=function(t,e,n){var r=t._id;return t.each(function(){var t=Object(f.h)(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return Object(f.f)(t,r).value[e]}};var f=n(8);e.a=function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=Object(f.f)(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?function(i,o){var a,u;return function(){var t=Object(f.h)(this,i),e=t.tween;if(e!==a)for(var n=0,r=(u=a=e).length;n<r;++n)if(u[n].name===o){(u=u.slice()).splice(n,1);break}t.tween=u}}:function(o,a,u){var c,s;if("function"!=typeof u)throw new Error;return function(){var t=Object(f.h)(this,o),e=t.tween;if(e!==c){s=(c=e).slice();for(var n={name:a,value:u},r=0,i=s.length;r<i;++r)if(s[r].name===a){s[r]=n;break}r===i&&s.push(n)}t.tween=s}})(n,t,e))}},function(t,e,n){var i=n(0),r=function(){function n(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);var e=this.getDefaultCfg();i.mix(this,e,t),this.init()}return n.prototype.getDefaultCfg=function(){return{type:"base",formatter:null,range:[0,1],ticks:null,values:[]}},n.prototype.init=function(){},n.prototype.getTicks=function(){var n=this,t=n.ticks,r=[];return i.each(t,function(t){var e=void 0;e=i.isObject(t)?t:{text:n.getText(t),tickValue:t,value:n.scale(t)},r.push(e)}),r},n.prototype.getText=function(t){var e=this.formatter;return t=e?e(t):t,!i.isNil(t)&&t.toString||(t=""),t.toString()},n.prototype.rangeMin=function(){return this.range[0]},n.prototype.rangeMax=function(){var t=this.range;return t[t.length-1]},n.prototype.invert=function(t){return t},n.prototype.translate=function(t){return t},n.prototype.scale=function(t){return t},n.prototype.clone=function(){var n=this,t=n.constructor,r={};return i.each(n,function(t,e){r[e]=n[e]}),new t(r)},n.prototype.change=function(t){return this.ticks=null,i.mix(this,t),this.init(),this},n}();t.exports=r},function(t,e,n){var r=n(52),i=n(0),o=n(449),a=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{type:"linear",isLinear:!0,min:null,minLimit:null,max:null,maxLimit:null,nice:!1,tickCount:null,tickInterval:null,snapArray:null})},t.prototype.init=function(){var t=this;if(t.ticks){var e=t.ticks,n=t.translate(e[0]),r=t.translate(e[e.length-1]);(i.isNil(t.min)||t.min>n)&&(t.min=n),(i.isNil(t.max)||t.max<r)&&(t.max=r)}else t.min=t.translate(t.min),t.max=t.translate(t.max),t.initTicks()},t.prototype.calculateTicks=function(){var t=this.min,e=this.max,n=this.tickCount,r=this.tickInterval;if(e<t)throw new Error("max: "+e+" should not be less than min: "+t);return o({min:t,max:e,minLimit:this.minLimit,maxLimit:this.maxLimit,minCount:n,maxCount:n,interval:r,snapArray:this.snapArray}).ticks},t.prototype.initTicks=function(){var e=this,t=e.calculateTicks();if(e.nice)e.ticks=t,e.min=t[0],e.max=t[t.length-1];else{var n=[];i.each(t,function(t){t>=e.min&&t<=e.max&&n.push(t)}),n.length||(n.push(e.min),n.push(e.max)),e.ticks=n}},t.prototype.scale=function(t){if(null==t)return NaN;var e=this.max,n=this.min;if(e===n)return 0;var r=(t-n)/(e-n),i=this.rangeMin();return i+r*(this.rangeMax()-i)},t.prototype.invert=function(t){var e=(t-this.rangeMin())/(this.rangeMax()-this.rangeMin());return this.min+e*(this.max-this.min)},t}(r);t.exports=a},function(t,e,n){var r=n(0),i=n(2).MatrixUtil,a=i.mat3,u=i.vec3,o=function(){function n(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);var e=this.getDefaultCfg();r.mix(this,e,t),this.init()}return n.prototype.getDefaultCfg=function(){return{isTransposed:!1,matrix:[1,0,0,0,1,0,0,0,1]}},n.prototype.init=function(){var t=this.start,e=this.end,n={x:(t.x+e.x)/2,y:(t.y+e.y)/2};this.center=n,this.width=Math.abs(e.x-t.x),this.height=Math.abs(e.y-t.y)},n.prototype._swapDim=function(t){var e=this[t];if(e){var n=e.start;e.start=e.end,e.end=n}},n.prototype.getCenter=function(){return this.center},n.prototype.getWidth=function(){return this.width},n.prototype.getHeight=function(){return this.height},n.prototype.convertDim=function(t,e){var n=this[e],r=n.start;return r+t*(n.end-r)},n.prototype.invertDim=function(t,e){var n=this[e],r=n.start;return(t-r)/(n.end-r)},n.prototype.convertPoint=function(t){return t},n.prototype.invertPoint=function(t){return t},n.prototype.applyMatrix=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,r=this.matrix,i=[t,e,n];return u.transformMat3(i,i,r),i},n.prototype.invertMatrix=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,r=this.matrix,i=a.invert([],r),o=[t,e,n];return u.transformMat3(o,o,i),o},n.prototype.convert=function(t){var e=this.convertPoint(t),n=e.x,r=e.y,i=this.applyMatrix(n,r,1);return{x:i[0],y:i[1]}},n.prototype.invert=function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})},n.prototype.rotate=function(t){var e=this.matrix,n=this.center;return a.translate(e,e,[-n.x,-n.y]),a.rotate(e,e,t),a.translate(e,e,[n.x,n.y]),this},n.prototype.reflect=function(t){switch(t){case"x":this._swapDim("x");break;case"y":this._swapDim("y");break;default:this._swapDim("y")}return this},n.prototype.scale=function(t,e){var n=this.matrix,r=this.center;return a.translate(n,n,[-r.x,-r.y]),a.scale(n,n,[t,e]),a.translate(n,n,[r.x,r.y]),this},n.prototype.translate=function(t,e){var n=this.matrix;return a.translate(n,n,[t,e]),this},n.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},n}();t.exports=o},function(t,e,n){var h=n(0),r=n(75).LabelsRenderer,i=n(2).Group,o=n(464),a=n(1),u=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){return{_id:null,zIndex:4,ticks:null,line:null,tickLine:null,subTickCount:0,subTickLine:null,grid:null,label:{textStyle:{},autoRotate:!0,formatter:null},title:{autoRotate:!0,textStyle:{}},autoPaint:!0}},t.prototype._beforeRenderUI=function(){var t=this.get("title"),e=this.get("label"),n=this.get("grid");t&&this.setSilent("title",h.deepMix({autoRotate:!0,textStyle:{fontSize:12,fill:"#ccc",textBaseline:"middle",fontFamily:a.fontFamily,textAlign:"center"},offset:48},t)),e&&this.setSilent("label",h.deepMix({autoRotate:!0,textStyle:{fontSize:12,fill:"#ccc",textBaseline:"middle",fontFamily:a.fontFamily},offset:10},e)),n&&this.setSilent("grid",h.deepMix({lineStyle:{lineWidth:1,stroke:"#C0D0E0"}},n))},t.prototype._renderUI=function(){this.get("label")&&this.renderLabels(),this.get("autoPaint")&&this.paint(),h.isNil(this.get("title"))||this.renderTitle(),this.sort()},t.prototype._parseTicks=function(t){for(var e=(t=t||[]).length,n=0;n<e;n++){var r=t[n];h.isObject(r)||(t[n]=this.parseTick(r,n,e))}return this.set("ticks",t),t},t.prototype._addTickItem=function(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"",i=this.get("tickItems"),o=this.get("subTickItems"),a=this.getTickEnd(e,n,t),u={x1:e.x,y1:e.y,x2:a.x,y2:a.y};i||(i=[]),o||(o=[]),"sub"===r?o.push(u):i.push(u),this.set("tickItems",i),this.set("subTickItems",o)},t.prototype._renderLine=function(){var t=this.get("line"),e=void 0;if(t){e=this.getLinePath(),t=h.mix({path:e},t);var n=this.addShape("path",{attrs:t});n.name="axis-line",this.get("appendInfo")&&n.setSilent("appendInfo",this.get("appendInfo")),this.set("lineShape",n)}},t.prototype._processTicks=function(){var u=this,r=u.get("label"),c=u.get("subTickCount"),s=u.get("tickLine"),f=u.get("ticks");if(f=u._parseTicks(f),h.each(f,function(t,e){var n=u.getTickPoint(t.value,e);s&&u._addTickItem(e,n,s.length),r&&u.addLabel(t,n,e)}),c){var l=u.get("subTickLine");h.each(f,function(t,e){if(0<e){var n=t.value-f[e-1].value;n/=u.get("subTickCount")+1;for(var r=1;r<=c;r++){var i={text:"",value:e?f[e-1].value+r*n:r*n},o=u.getTickPoint(i.value),a=void 0;a=l&&l.length?l.length:parseInt(.6*s.length,10),u._addTickItem(r-1,o,a,"sub")}}})}},t.prototype._addTickLine=function(t,e){var n=h.mix({},e),r=[];h.each(t,function(t){r.push(["M",t.x1,t.y1]),r.push(["L",t.x2,t.y2])}),delete n.length,n.path=r;var i=this.addShape("path",{attrs:n});i.name="axis-ticks",i._id=this.get("_id")+"-ticks",i.set("coord",this.get("coord")),this.get("appendInfo")&&i.setSilent("appendInfo",this.get("appendInfo"))},t.prototype._renderTicks=function(){var t=this.get("tickItems"),e=this.get("subTickItems");if(!h.isEmpty(t)){var n=this.get("tickLine");this._addTickLine(t,n)}if(!h.isEmpty(e)){var r=this.get("subTickLine")||this.get("tickLine");this._addTickLine(e,r)}},t.prototype._renderGrid=function(){var t=this.get("grid");t&&(t.coord=this.get("coord"),t.appendInfo=this.get("appendInfo"),this.set("gridGroup",this.addGroup(o,t)))},t.prototype.paint=function(){this._renderLine(),this._processTicks(),this._renderTicks(),this._renderGrid();var t=this.get("label");t&&t.autoRotate&&this.autoRotateLabels()},t.prototype.parseTick=function(t,e,n){return{text:t,value:e/(n-1)}},t.prototype.getTextAnchor=function(t){return 1<=Math.abs(t[1]/t[0])?"center":0<t[0]?"start":"end"},t.prototype.getMaxLabelWidth=function(t){var e=t.get("children"),n=0;return h.each(e,function(t){var e=t.getBBox().width;n<e&&(n=e)}),n},t.prototype.remove=function(){e.prototype.remove.call(this);var t=this.get("gridGroup");t&&t.remove(),this.removeLabels()},t.prototype.autoRotateLabels=function(){},t.prototype.renderTitle=function(){},t.prototype.getLinePath=function(){},t.prototype.getTickPoint=function(){},t.prototype.getTickEnd=function(){},t.prototype.getSideVector=function(){},t}(i);h.assign(u.prototype,r,{addLabel:function(t,e,n){var r=this.get("labelsGroup"),i={},o=void 0;if(r){var a=this.get("_labelOffset");h.isNil(this.get("label").offset)||(a=this.get("label").offset);var u=this.getSideVector(a,e,n);e={x:e.x+u[0],y:e.y+u[1]},i.text=t.text,i.x=e.x,i.y=e.y,i.textAlign=this.getTextAnchor(u),(o=r.addLabel(i))&&(o.name="axis-label",o._id=this.get("_id")+"-"+t.tickValue,o.set("coord",this.get("coord")),this.get("appendInfo")&&o.setSilent("appendInfo",this.get("appendInfo")))}return o}}),t.exports=u},function(t,e,n){var i=n(57),s=n(125),f=n(3),o=n(102),r=n(1);function a(e,n){if(e["_wrap_"+n])return e["_wrap_"+n];var t=function(t){e[n](t)};return e["_wrap_"+n]=t}function u(t,e){return t["_wrap_"+e]}var c=function(){function n(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);var e=this.getDefaultCfg();i(this,e,t),this.init()}return n.prototype.getDefaultCfg=function(){return{chart:null,group:null,showTitle:!0,autoSetAxis:!0,padding:10,eachView:null,fields:[],colTitle:{offsetY:-15,style:{fontSize:14,textAlign:"center",fill:"#666",fontFamily:r.fontFamily}},rowTitle:{offsetX:15,style:{fontSize:14,textAlign:"center",rotate:90,fill:"#666",fontFamily:r.fontFamily}}}},n.prototype.init=function(){if(!this.chart)throw new Error("Facets Error: please specify the chart!");this._bindEvent(),this.initContainer(),this.chart.get("data")&&this.initViews()},n.prototype.initContainer=function(){var t=this.chart.get("frontPlot").addGroup();this.group=t},n.prototype.initViews=function(){for(var t=this.chart,e=t.get("data"),n=this.eachView,r=this.generateFacets(e),i=0;i<r.length;i++){var o=r[i],a=o.region,u=t.view({start:a.start,end:a.end,padding:this.padding});u.source(o.data),this.beforeProcessView(u,o),n&&n(u,o),this.afterProcessView(u,o),o.view=u}this.facets=r},n.prototype.beforeProcessView=function(){},n.prototype.afterProcessView=function(t,e){this.autoSetAxis&&this.processAxis(t,e)},n.prototype.processAxis=function(t,e){var n=t.get("options"),r=t.get("geoms");if((!n.coord.type||"rect"===n.coord.type)&&r.length){var i=r[0].get("attrOptions").position.field,o=f(i)?i:i.split("*").map(function(t){return t.trim()}),a=o[0],u=o[1];s(n.axes)&&(n.axes={});var c=n.axes;!1!==c&&(a&&!1!==c[a]&&(c[a]=c[a]||{},this.setXAxis(a,c,e)),u&&!1!==c[u]&&(c[u]=c[u]||{},this.setYAxis(u,c,e)))}},n.prototype.setXAxis=function(){},n.prototype.setYAxis=function(){},n.prototype.renderTitle=function(t,e){this.drawColTitle(t,e)},n.prototype.getScaleText=function(t,e,n){var r=void 0;if(t){var i=n.get("scales")[t];i||(i=n.createScale(t)),r=i.getText(e)}else r=e;return r},n.prototype.drawColTitle=function(t,e){var n=this.getScaleText(e.colField,e.colValue,t),r=i({position:["50%","0%"],content:n},this.colTitle);t.guide().text(r)},n.prototype.drawRowTitle=function(t,e){var n=this.getScaleText(e.rowField,e.rowValue,t),r=i({position:["100%","50%"],content:n},o(this.rowTitle));t.guide().text(r)},n.prototype.getFilter=function(t){return function(i){var o=!0;return t.forEach(function(t){var e=t.field,n=t.value,r=!0;!s(n)&&e&&(r=i[e]===n),o=o&&r}),o}},n.prototype.getFieldValues=function(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i][t];s(o)||r[o]||(n.push(o),r[o]=!0)}return n},n.prototype.getRegion=function(t,e,n,r){var i=1/e,o=1/t,a={x:i*n,y:o*r};return{start:a,end:{x:a.x+i,y:a.y+o}}},n.prototype.generateFacets=function(){return[]},n.prototype._bindEvent=function(){var t=this.chart;t.on("afterchangedata",a(this,"onDataChange")),t.on("beforeclear",a(this,"onClear")),t.on("beforedestroy",a(this,"destroy")),t.on("beforepaint",a(this,"onPaint")),t.on("setdata",a(this,"onDataChange"))},n.prototype._clearEvent=function(){var t=this.chart;t&&(t.off("afterchangedata",u(this,"onDataChange")),t.off("beforeclear",u(this,"onClear")),t.off("beforedestroy",u(this,"destroy")),t.off("beforepaint",u(this,"onPaint")),t.off("setdata",u(this,"onDataChange")))},n.prototype._clearFacets=function(){var t=this.facets,e=this.chart;if(t)for(var n=0;n<t.length;n++){var r=t[n];e.removeView(r.view)}this.facets=null},n.prototype.onClear=function(){this.onRemove()},n.prototype.onPaint=function(){if(this.showTitle)for(var t=this.facets,e=0;e<t.length;e++){var n=t[e],r=n.view;this.renderTitle(r,n)}},n.prototype.onDataChange=function(){this._clearFacets(),this.initViews()},n.prototype.onRemove=function(){this._clearFacets(),this._clearEvent(),this.group&&this.group.remove(),this.chart=null,this.facets=null,this.group=null},n.prototype.destroy=function(){this.onRemove(),this.destroyed=!0},n}();t.exports=c},function(t,e,n){var r=n(34),i=n(24),o=n(177),a=n(12),u=n(25),c=n(17),s=Object.prototype.hasOwnProperty,f=o(function(t,e){if(u(e)||a(e))i(e,c(e),t);else for(var n in e)s.call(e,n)&&r(t,n,e[n])});t.exports=f},function(t,e,n){var r=n(91);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){var r=n(9),i=n(10),o="[object AsyncFunction]",a="[object Function]",u="[object GeneratorFunction]",c="[object Proxy]";t.exports=function(t){if(!i(t))return!1;var e=r(t);return e==a||e==u||e==o||e==c}},function(t,e){var n=9007199254740991;t.exports=function(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=n}},function(t,e,n){var r=n(186),i=n(98),o=n(99),a=o&&o.isTypedArray,u=a?i(a):r;t.exports=u},function(t,e,n){var r=n(40),i=n(194),o=n(195),a=n(196),u=n(197),c=n(198);function s(t){var e=this.__data__=new r(t);this.size=e.size}s.prototype.clear=i,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=u,s.prototype.set=c,t.exports=s},function(t,e,n){var r=n(15)(n(4),"Map");t.exports=r},function(t,e,n){var r=n(199),i=n(206),o=n(208),a=n(209),u=n(210);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,e,n){var r=n(106),i=n(107),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return o.call(e,t)}))}:i;t.exports=u},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},function(t,e,n){var r=n(101)(Object.getPrototypeOf,Object);t.exports=r},function(t,e,n){var r=n(112);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},function(t,e){t.exports=function(t){var n=-1,r=Array(t.size);return t.forEach(function(t,e){r[++n]=[e,t]}),r}},function(t,e,n){var i=n(47),o=n(29);t.exports=function(t,e){for(var n=0,r=(e=i(e,t)).length;null!=t&&n<r;)t=t[o(e[n++])];return n&&n==r?t:void 0}},function(t,e,n){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(3),o=n(28),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=function(t,e){if(i(t))return!1;var n=void 0===t?"undefined":r(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||u.test(t)||!a.test(t)||null!=e&&t in Object(e)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},function(t,e,n){var r=n(328),a=n(0),i=function(i){function o(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.call(this)),n={visible:!0},r=e.getDefaultCfg();return e._attrs=n,a.assign(n,r,t),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(o,i),o.prototype.getDefaultCfg=function(){return{}},o.prototype.get=function(t){return this._attrs[t]},o.prototype.set=function(t,e){this._attrs[t]=e},o.prototype.show=function(){this.get("visible")||(this.set("visible",!0),this.changeVisible(!0))},o.prototype.hide=function(){this.get("visible")&&(this.set("visible",!1),this.changeVisible(!1))},o.prototype.changeVisible=function(){},o.prototype.destroy=function(){this._attrs={},this.removeAllListeners(),this.destroyed=!0},o}(r);t.exports=i},function(t,e,n){var u=n(0),i=/rgb\((\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/;function c(t,e,n,r){return t[r]+(e[r]-t[r])*n}function s(t){return"#"+r(t[0])+r(t[1])+r(t[2])}function r(t){return 1===(t=(t=Math.round(t)).toString(16)).length&&(t="0"+t),t}function o(t){var e=[];return e.push(parseInt(t.substr(1,2),16)),e.push(parseInt(t.substr(3,2),16)),e.push(parseInt(t.substr(5,2),16)),e}var a={},f=null,l={toRGB:function(t){if("#"===t[0]&&7===t.length)return t;var e;f||((e=document.createElement("i")).title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),f=e);var n=void 0;if(a[t])n=a[t];else{f.style.color=t,n=document.defaultView.getComputedStyle(f,"").getPropertyValue("color");var r=i.exec(n);r.shift(),n=s(r),a[t]=n}return n},rgb2arr:o,gradient:function(t){var e=[];return u.isString(t)&&(t=t.split("-")),u.each(t,function(t){-1===t.indexOf("#")&&(t=l.toRGB(t)),e.push(o(t))}),function(t){return function(t,e){!u.isNaN(e)&&u.isNumber(e)||(e=0);var n=t.length-1,r=Math.floor(n*e),i=n*e-r,o=t[r],a=r===n?o:t[r+1];return s([c(o,a,i,0),c(o,a,i,1),c(o,a,i,2)])}(e,t)}}};t.exports=l},function(t,e,n){var r=n(135);r.LabelsRenderer=n(343),t.exports=r},function(t,e,n){var r=n(13);n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(353),t.exports=r},function(t,e,n){var o=n(0),r={splitPoints:function(t){var r=[],i=t.x,e=t.y;return e=o.isArray(e)?e:[e],o.each(e,function(t,e){var n={x:o.isArray(i)?i[e]:i,y:t};r.push(n)}),r}};t.exports=r},function(t,e,n){"use strict";var r=n(79);e.a=function(t){var e=t+="",n=e.indexOf(":");return 0<=n&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.a.hasOwnProperty(e)?{space:r.a[e],local:t}:t}},function(t,e,n){"use strict";n.d(e,"b",function(){return r});var r="http://www.w3.org/1999/xhtml";e.a={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(t,e,n){"use strict";function r(){}e.a=function(t){return null==t?r:function(){return this.querySelector(t)}}},function(t,e,n){"use strict";e.a=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}},function(t,e,n){"use strict";n.d(e,"c",function(){return o}),e.a=function(t,e,n,r){var i=o;t.sourceEvent=o,o=t;try{return e.apply(n,r)}finally{o=i}};var r={},o=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(r={mouseenter:"mouseover",mouseleave:"mouseout"}));function i(n,t,e){return n=a(n,t,e),function(t){var e=t.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||n.call(this,t)}}function a(n,r,i){return function(t){var e=o;o=t;try{n.call(this,this.__data__,r,i)}finally{o=e}}}function l(o){return function(){var t=this.__on;if(t){for(var e,n=0,r=-1,i=t.length;n<i;++n)e=t[n],o.type&&e.type!==o.type||e.name!==o.name?t[++r]=e:this.removeEventListener(e.type,e.listener,e.capture);++r?t.length=r:delete this.__on}}}function h(c,s,f){var l=r.hasOwnProperty(c.type)?i:a;return function(t,e,n){var r,i=this.__on,o=l(s,e,n);if(i)for(var a=0,u=i.length;a<u;++a)if((r=i[a]).type===c.type&&r.name===c.name)return this.removeEventListener(r.type,r.listener,r.capture),this.addEventListener(r.type,r.listener=o,r.capture=f),void(r.value=s);this.addEventListener(c.type,o,f),r={type:c.type,name:c.name,value:s,listener:o,capture:f},i?i.push(r):this.__on=[r]}}e.b=function(t,e,n){var r,i,o=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return 0<=n&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}),a=o.length;if(!(arguments.length<2)){for(u=e?h:l,null==n&&(n=!1),r=0;r<a;++r)this.each(u(o[r],e,n));return this}var u=this.node().__on;if(u)for(var c,s=0,f=u.length;s<f;++s)for(r=0,c=u[s];r<a;++r)if((i=o[r]).type===c.type&&i.name===c.name)return c.value}},function(t,e,n){"use strict";var r=n(82);e.a=function(){for(var t,e=r.c;t=e.sourceEvent;)e=t;return e}},function(t,e,n){"use strict";e.b=g,e.a=y,e.c=b;var i,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=0,u=0,c=0,s=1e3,f=0,l=0,h=0,p="object"===("undefined"==typeof performance?"undefined":r(performance))&&performance.now?performance:Date,v="object"===("undefined"==typeof window?"undefined":r(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function g(){return l||(v(d),l=p.now()+h)}function d(){l=0}function y(){this._call=this._time=this._next=null}function b(t,e,n){var r=new y;return r.restart(t,e,n),r}function m(){l=(f=p.now())+h,a=u=0;try{!function(){g(),++a;for(var t,e=i;e;)0<=(t=l-e._time)&&e._call.call(null,t),e=e._next;--a}()}finally{a=0,function(){var t,e,n=i,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),n=(t=n)._next):(e=n._next,n._next=null,n=t?t._next=e:i=e);o=t,j(r)}(),l=0}}function x(){var t=p.now(),e=t-f;s<e&&(h-=e,f=t)}function j(t){a||(u&&(u=clearTimeout(u)),24<t-l?(t<1/0&&(u=setTimeout(m,t-p.now()-h)),c&&(c=clearInterval(c))):(c||(f=p.now(),c=setInterval(x,s)),a=1,v(m)))}y.prototype=b.prototype={constructor:y,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?g():+n)+(null==e?0:+e),this._next||o===this||(o?o._next=this:i=this,o=this),this._call=t,this._time=n,j()},stop:function(){this._call&&(this._call=null,this._time=1/0,j())}}},function(t,e,n){"use strict";n(86),n(153),n(89),n(151),n(154);var r=n(50);n.d(e,"a",function(){return r.a});n(155),n(411);var i=n(156);n.d(e,"c",function(){return i.a});var o=n(412);n.d(e,"d",function(){return o.a}),n.d(e,"e",function(){return o.b});n(415);var a=n(150);n.d(e,"b",function(){return a.a});n(416),n(417),n(418),n(419),n(420)},function(t,e,n){"use strict";var i=n(19),o=n(150),a=n(153),u=n(154),c=n(50),s=n(155),f=n(156),l=n(152),h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.a=function(t,e){var n,r=void 0===e?"undefined":h(e);return null==e||"boolean"===r?Object(l.a)(e):("number"===r?c.a:"string"===r?(n=Object(i.a)(e))?(e=n,o.a):f.a:e instanceof i.a?o.a:e instanceof Date?u.a:Array.isArray(e)?a.a:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?s.a:c.a)(t,e)}},function(t,e,n){"use strict";e.a=s,n.d(e,"d",function(){return i}),n.d(e,"c",function(){return o}),e.e=m,e.h=_,e.g=O,e.b=w,e.f=M;var r=n(88);function s(){}var i=.7,o=1/i,a="\\s*([+-]?\\d+)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",c="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",f=/^#([0-9a-f]{3})$/,l=/^#([0-9a-f]{6})$/,h=new RegExp("^rgb\\("+[a,a,a]+"\\)$"),p=new RegExp("^rgb\\("+[c,c,c]+"\\)$"),v=new RegExp("^rgba\\("+[a,a,a,u]+"\\)$"),g=new RegExp("^rgba\\("+[c,c,c,u]+"\\)$"),d=new RegExp("^hsl\\("+[u,c,c]+"\\)$"),y=new RegExp("^hsla\\("+[u,c,c,u]+"\\)$"),b={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function m(t){var e;return t=(t+"").trim().toLowerCase(),(e=f.exec(t))?new w((e=parseInt(e[1],16))>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=l.exec(t))?x(parseInt(e[1],16)):(e=h.exec(t))?new w(e[1],e[2],e[3],1):(e=p.exec(t))?new w(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=v.exec(t))?j(e[1],e[2],e[3],e[4]):(e=g.exec(t))?j(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=d.exec(t))?S(e[1],e[2]/100,e[3]/100,1):(e=y.exec(t))?S(e[1],e[2]/100,e[3]/100,e[4]):b.hasOwnProperty(t)?x(b[t]):"transparent"===t?new w(NaN,NaN,NaN,0):null}function x(t){return new w(t>>16&255,t>>8&255,255&t,1)}function j(t,e,n,r){return r<=0&&(t=e=n=NaN),new w(t,e,n,r)}function _(t){return t instanceof s||(t=m(t)),t?new w((t=t.rgb()).r,t.g,t.b,t.opacity):new w}function O(t,e,n,r){return 1===arguments.length?_(t):new w(t,e,n,null==r?1:r)}function w(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function S(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||1<=n?t=e=NaN:e<=0&&(t=NaN),new E(t,e,n,r)}function M(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof E)return new E(t.h,t.s,t.l,t.opacity);if(t instanceof s||(t=m(t)),!t)return new E;if(t instanceof E)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=e===o?(n-r)/u+6*(n<r):n===o?(r-e)/u+2:(e-n)/u+4,u/=c<.5?o+i:2-o-i,a*=60):u=0<c&&c<1?0:a,new E(a,u,c,t.opacity)}(t):new E(t,e,n,null==r?1:r)}function E(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function C(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Object(r.a)(s,m,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Object(r.a)(w,O,Object(r.b)(s,{brighter:function(t){return t=null==t?o:Math.pow(o,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?i:Math.pow(i,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),Object(r.a)(E,M,Object(r.b)(s,{brighter:function(t){return t=null==t?o:Math.pow(o,t),new E(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?i:Math.pow(i,t),new E(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new w(C(240<=t?t-240:t+120,i,r),C(t,i,r),C(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}))},function(t,e,n){"use strict";e.b=function(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n},e.a=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},function(t,e,n){"use strict";function c(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}e.a=c,e.b=function(a){var u=a.length-1;return function(t){var e=t<=0?t=0:1<=t?u-(t=1):Math.floor(t*u),n=a[e],r=a[e+1],i=0<e?a[e-1]:2*n-r,o=e<u-1?a[e+2]:2*r-n;return c((t-e/u)*u,i,n,r,o)}}},function(t,e,n){var o=n(0),r=n(325),i={appear:{duration:450,easing:"easeQuadOut"},update:{duration:450,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut",delay:100},leave:{duration:350,easing:"easeQuadIn"}},a={line:{appear:function(){return r.appear.clipIn},enter:function(){return r.enter.clipIn},leave:function(){return r.leave.lineWidthOut}},path:{appear:function(){return r.appear.clipIn},enter:function(){return r.enter.clipIn},leave:function(){return r.leave.lineWidthOut}},area:{appear:function(){return r.appear.clipIn},enter:function(){return r.enter.fadeIn},leave:function(){return r.leave.fadeOut},cfg:{appear:{duration:500,easing:"easeQuadOut"},update:{duration:450,easing:"easeQuadInOut"},enter:{duration:600,delay:150,easing:"easeQuadInOut"},leave:{easing:"easeQuadOut",duration:350}}},polygon:{appear:function(){return r.appear.zoomIn},enter:function(){return r.enter.zoomIn},leave:function(){return r.leave.zoomOut}},edge:{appear:function(){return r.appear.pathIn},enter:function(){return r.enter.pathIn},leave:function(){return r.leave.pathOut}},interval:{appear:function(t){var e=void 0;return t.isPolar?(e=r.appear.zoomIn,(t.isTransposed||"theta"===t.type)&&(e=r.appear.fanIn)):e=t.isRect?t.isTransposed?r.appear.scaleInX:r.appear.scaleInY:r.appear.zoomIn,e},enter:function(t){return t.isRect||t.isTransposed||"theta"===t.type?r.enter.fadeIn:r.enter.zoomIn},leave:function(){return r.leave.fadeOut},update:function(t){if("theta"===t.type)return r.update.fanIn}},point:{appear:function(){return r.appear.zoomIn},enter:function(){return r.enter.zoomIn},leave:function(){return r.leave.zoomOut}},schema:{appear:function(){return r.appear.clipIn},enter:function(){return r.enter.clipIn},leave:function(){return r.leave.lineWidthOut}},contour:null,heatmap:null,label:{appear:function(){return r.appear.fadeIn},enter:function(){return r.enter.fadeIn},leave:function(){return r.leave.fadeOut},cfg:{appear:{duration:900}}},"axis-label":{enter:function(){return r.appear.fadeIn},leave:function(){return r.leave.fadeOut},update:function(t){if(t.isPolar)return r.appear.fadeIn}},"axis-ticks":{enter:function(){return r.appear.fadeIn},leave:function(){return r.leave.fadeOut},update:function(t){if(t.isPolar)return r.appear.fadeIn}},"axis-grid":{enter:function(){return r.appear.fadeIn},leave:function(){return r.leave.fadeOut},update:function(t){if(t.isPolar)return r.appear.fadeIn}},"axis-grid-rect":{enter:function(){return r.appear.fadeIn},leave:function(){return r.leave.fadeOut},update:function(){return r.leave.fadeIn}},labelLine:{appear:function(){return r.appear.pathIn},enter:function(){return r.enter.pathIn},leave:function(){return r.leave.pathOut}}};a.Action=r,a.defaultCfg=i,a.getAnimation=function(t,e,n){var r=this[t];if(r){var i=r[n];if(o.isFunction(i))return i(e)}return!1},a.getAnimateCfg=function(t,e){var n=i[e];return this[t]&&this[t].cfg&&this[t].cfg[e]?o.deepMix({},n,this[t].cfg[e]):n},a.registerAnimation=function(t,e,n){this.Action[t]||(this.Action[t]={}),this.Action[t][e]=n},t.exports=a},function(t,e,n){var r=n(15),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},function(r,t,e){(function(t){var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n="object"==(void 0===t?"undefined":e(t))&&t&&t.Object===Object&&t;r.exports=n}).call(t,e(171))},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var r=n(36),i=n(95),o=n(96);t.exports=function(t,e){return o(i(t,e,r),t+"")}},function(t,e,n){var c=n(178),s=Math.max;t.exports=function(o,a,u){return a=s(void 0===a?o.length-1:a,0),function(){for(var t=arguments,e=-1,n=s(t.length-a,0),r=Array(n);++e<n;)r[e]=t[a+e];e=-1;for(var i=Array(a+1);++e<a;)i[e]=t[e];return i[a]=u(r),c(o,this,i)}}},function(t,e,n){var r=n(179),i=n(181)(r);t.exports=i},function(t,e,n){var f=n(183),l=n(38),h=n(3),p=n(39),v=n(37),g=n(61),d=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=h(t),r=!n&&l(t),i=!n&&!r&&p(t),o=!n&&!r&&!i&&g(t),a=n||r||i||o,u=a?f(t.length,String):[],c=u.length;for(var s in t)!e&&!d.call(t,s)||a&&("length"==s||i&&("offset"==s||"parent"==s)||o&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||v(s,c))||u.push(s);return u}},function(t,e){t.exports=function(e){return function(t){return e(t)}}},function(t,u,c){(function(t){var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=c(92),r="object"==e(u)&&u&&!u.nodeType&&u,i=r&&"object"==e(t)&&t&&!t.nodeType&&t,o=i&&i.exports===r&&n.process,a=function(){try{return o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a}).call(u,c(33)(t))},function(t,e,n){var r=n(25),i=n(187),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e){t.exports=function(e,n){return function(t){return e(n(t))}}},function(t,e,n){var r=n(188),i=1,o=4;t.exports=function(t){return r(t,i|o)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e,n){var r=n(97),i=n(213),o=n(12);t.exports=function(t){return o(t)?r(t,!0):i(t)}},function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var r=n(66),i=n(67),o=n(65),a=n(107),u=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,o(t)),t=i(t);return e}:a;t.exports=u},function(t,e,n){var r=n(110),i=n(65),o=n(17);t.exports=function(t){return r(t,o,i)}},function(t,e,n){var i=n(66),o=n(3);t.exports=function(t,e,n){var r=e(t);return o(t)?r:i(r,n(t))}},function(t,e,n){var r=n(15)(n(4),"Set");t.exports=r},function(t,e,n){var r=n(4).Uint8Array;t.exports=r},function(t,e,n){var d=n(114),y=n(248),b=n(115),m=1,x=2;t.exports=function(t,e,n,r,i,o){var a=n&m,u=t.length,c=e.length;if(u!=c&&!(a&&u<c))return!1;var s=o.get(t);if(s&&o.get(e))return s==e;var f=-1,l=!0,h=n&x?new d:void 0;for(o.set(t,e),o.set(e,t);++f<u;){var p=t[f],v=e[f];if(r)var g=a?r(v,p,f,e,t,o):r(p,v,f,t,e,o);if(void 0!==g){if(g)continue;l=!1;break}if(h){if(!y(e,function(t,e){if(!b(h,e)&&(p===t||i(p,t,n,r,o)))return h.push(e)})){l=!1;break}}else if(p!==v&&!i(p,v,n,r,o)){l=!1;break}}return o.delete(t),o.delete(e),l}},function(t,e,n){var r=n(64),i=n(246),o=n(247);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,t.exports=a},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var r=n(10);t.exports=function(t){return t==t&&!r(t)}},function(t,e){t.exports=function(e,n){return function(t){return null!=t&&t[e]===n&&(void 0!==n||e in Object(t))}}},function(t,e,n){var r=n(258),i=n(259);t.exports=function(t,e){return null!=t&&i(t,e,r)}},function(t,e,n){var r=n(120);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},function(t,e,n){var s=n(66),f=n(263);t.exports=function t(e,n,r,i,o){var a=-1,u=e.length;for(r||(r=f),o||(o=[]);++a<u;){var c=e[a];0<n&&r(c)?1<n?t(c,n-1,r,i,o):s(o,c):i||(o[o.length]=c)}return o}},function(t,e,n){var r=n(269),i=n(270),o=n(271);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},function(t,e,n){var r=n(272);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},function(t,e,n){var r=n(10),i=n(28),o=NaN,a=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,f=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return o;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var n=c.test(t);return n||s.test(t)?f(t.slice(2),n?2:8):u.test(t)?o:+t}},function(t,e,n){var r=n(9),i=n(5),o="[object Number]";t.exports=function(t){return"number"==typeof t||i(t)&&r(t)==o}},function(t,e){t.exports=function(t){return null==t}},function(t,e,n){var r=n(9),i=n(3),o=n(5),a="[object String]";t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&r(t)==a}},function(t,e,n){var o=n(284),a=n(128),u=n(129),c=n(21);t.exports=function(i){return function(t){t=c(t);var e=a(t)?u(t):void 0,n=e?e[0]:t.charAt(0),r=e?o(e,1).join(""):t.slice(1);return n[i]()+r}}},function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},function(t,e,n){var r=n(286),i=n(128),o=n(287);t.exports=function(t){return i(t)?o(t):r(t)}},function(t,e,n){var s=n(28);t.exports=function(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],a=e(o);if(null!=a&&(void 0===u?a==a&&!s(a):n(a,u)))var u=a,c=o}return c}},function(t,e,n){var p=n(114),v=n(309),g=n(310),d=n(115),y=n(311),b=n(26),m=200;t.exports=function(t,e,n){var r=-1,i=v,o=t.length,a=!0,u=[],c=u;if(n)a=!1,i=g;else if(m<=o){var s=e?null:y(t);if(s)return b(s);a=!1,i=d,c=new p}else c=e?[]:u;t:for(;++r<o;){var f=t[r],l=e?e(f):f;if(f=n||0!==f?f:0,a&&l==l){for(var h=c.length;h--;)if(c[h]===l)continue t;e&&c.push(l),u.push(f)}else i(c,l,n)||(c!==u&&c.push(l),u.push(f))}return u}},function(t,e,n){var r=n(22);r.Color=n(330),r.Size=n(331),r.Opacity=n(332),r.Shape=n(333),r.Position=n(334),t.exports=r},function(t,e){var n,r,i="#1890FF",o='"-apple-system", BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",SimSun, "sans-serif"',a={defaultColor:i,plotCfg:{padding:[20,20,95,80]},fontFamily:o,defaultLegendPosition:"bottom",colors:["#1890FF","#2FC25B","#FACC14","#223273","#8543E0","#13C2C2","#3436C7","#F04864"],colors_16:["#1890FF","#41D9C7","#2FC25B","#FACC14","#E6965C","#223273","#7564CC","#8543E0","#5C8EE6","#13C2C2","#5CA3E6","#3436C7","#B381E6","#F04864","#D598D9"],colors_24:["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],colors_pie:["#1890FF","#13C2C2","#2FC25B","#FACC14","#F04864","#8543E0","#3436C7","#223273"],colors_pie_16:["#1890FF","#73C9E6","#13C2C2","#6CD9B3","#2FC25B","#9DD96C","#FACC14","#E6965C","#F04864","#D66BCA","#8543E0","#8E77ED","#3436C7","#737EE6","#223273","#7EA2E6"],shapes:{point:["hollowCircle","hollowSquare","hollowDiamond","hollowBowtie","hollowTriangle","hollowHexagon","cross","tick","plus","hyphen","line"],line:["line","dash","dot"],area:["area"]},sizes:[1,10],opacities:[.1,.9],axis:{top:{position:"top",title:null,label:{offset:14,textStyle:{fill:"#545454",fontSize:12,lineHeight:20,textBaseline:"middle",fontFamily:o},autoRotate:!0},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4}},bottom:{position:"bottom",title:null,label:{offset:22,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:20,textBaseline:"middle",fontFamily:o}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4}},left:{position:"left",title:null,label:{offset:12,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:20,textBaseline:"middle",fontFamily:o}},line:null,tickLine:null,grid:{zIndex:-1,lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},right:{position:"right",title:null,label:{offset:12,autoRotate:!0,textStyle:{fill:"#545454",fontSize:12,lineHeight:20,textBaseline:"middle",fontFamily:o}},line:null,tickLine:null,grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},circle:{zIndex:1,title:null,label:{offset:12,textStyle:{fill:"#545454",fontSize:12,lineHeight:20,fontFamily:o}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4},grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},hideFirstLine:!0}},radius:{zIndex:0,label:{offset:12,textStyle:{fill:"#545454",fontSize:12,textBaseline:"middle",lineHeight:20,fontFamily:o}},line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,stroke:"#BFBFBF",length:4},grid:{lineStyle:{stroke:"#E9E9E9",lineWidth:1,lineDash:[3,3]},type:"circle"}},helix:{grid:null,label:null,title:null,line:{lineWidth:1,stroke:"#BFBFBF"},tickLine:{lineWidth:1,length:4,stroke:"#BFBFBF"}}},label:{offset:20,textStyle:{fill:"#545454",fontSize:12,textBaseline:"middle",fontFamily:o}},treemapLabels:{offset:10,textStyle:{fill:"#fff",fontSize:12,textBaseline:"top",fontStyle:"bold",fontFamily:o}},innerLabels:{textStyle:{fill:"#fff",fontSize:12,textBaseline:"middle",fontFamily:o}},thetaLabels:{labelLine:{lineWidth:1},labelHeight:14,offset:30},legend:{right:{position:"right",layout:"vertical",itemMarginBottom:8,width:16,height:156,title:null,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:o},unCheckColor:"#bfbfbf"},left:{position:"left",layout:"vertical",itemMarginBottom:8,width:16,height:156,title:null,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:o},unCheckColor:"#bfbfbf"},top:{position:"top",offset:6,layout:"horizontal",title:null,itemGap:10,width:156,height:16,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:o},unCheckColor:"#bfbfbf"},bottom:{position:"bottom",offset:58,layout:"horizontal",title:null,itemGap:24,width:156,height:16,textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"start",textBaseline:"middle",lineHeight:20,fontFamily:o},unCheckColor:"#bfbfbf"},html:(n={},n["g2-legend"]={height:"auto",width:"auto",position:"absolute",overflow:"auto",fontSize:"12px",fontFamily:o,lineHeight:"20px",color:"#8C8C8C"},n["g2-legend-title"]={marginBottom:"4px"},n["g2-legend-list"]={listStyleType:"none",margin:0,padding:0},n["g2-legend-list-item"]={cursor:"pointer",marginBottom:"5px",marginRight:"24px"},n["g2-legend-marker"]={width:"9px",height:"9px",borderRadius:"50%",display:"inline-block",marginRight:"8px",verticalAlign:"middle"},n),gradient:{textStyle:{fill:"#8C8C8C",fontSize:12,textAlign:"center",textBaseline:"middle",lineHeight:20,fontFamily:o},lineStyle:{lineWidth:1,stroke:"#fff"},unCheckColor:"#bfbfbf"}},tooltip:(r={crosshairs:!1,offset:15},r["g2-tooltip"]={position:"absolute",visibility:"hidden",whiteSpace:"nowrap",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(0, 0, 0, 0.65)",borderRadius:"4px",color:"rgb(255, 255, 255)",fontSize:"12px",fontFamily:o,lineHeight:"20px",padding:"10px 10px 6px 10px"},r["g2-tooltip-title"]={marginBottom:"4px"},r["g2-tooltip-list"]={margin:0,listStyleType:"none",padding:0},r["g2-tooltip-list-item"]={marginBottom:"4px"},r["g2-tooltip-marker"]={width:"7px",height:"7px",borderRadius:"50%",border:"1px solid #fff",display:"inline-block",marginRight:"8px"},r),tooltipMarker:{symbol:function(t,e,n,r,i){var o=i.get("color");r.fillStyle=o,r.lineWidth=1,r.strokeStyle="#fff",r.beginPath(),r.arc(t,e,n,0,2*Math.PI,!1),r.fill(),r.stroke(),r.save(),r.beginPath(),r.fillStyle="#fff",r.strokeStyle=o,r.globalAlpha=.2,r.lineWidth=3,r.arc(t,e,6,0,2*Math.PI,!1),r.stroke(),r.restore()},radius:4},tooltipCrosshairsRect:{type:"rect",style:{fill:"#CCD6EC",opacity:.3}},tooltipCrosshairsLine:{style:{stroke:"rgba(0, 0, 0, 0.25)",lineWidth:1}},shape:{point:{lineWidth:1,fill:i,radius:4},hollowPoint:{fill:"#fff",lineWidth:1,stroke:i,radius:3},interval:{lineWidth:0,fill:i,fillOpacity:.85},hollowInterval:{fill:"#fff",stroke:i,fillOpacity:0,lineWidth:2},area:{lineWidth:0,fill:i,fillOpacity:.3},polygon:{lineWidth:0,fill:i,fillOpacity:1},hollowPolygon:{fill:"#fff",stroke:i,fillOpacity:0,lineWidth:2},hollowArea:{fill:"#fff",stroke:i,fillOpacity:0,lineWidth:2},line:{stroke:i,lineWidth:2,fill:null},edge:{stroke:i,lineWidth:1,fill:null},schema:{stroke:i,lineWidth:1,fill:null}},guide:{line:{lineStyle:{stroke:i,lineDash:[0,2,2],lineWidth:1},text:{position:"end",autoRotate:!0,style:{fill:"#545454",fontSize:12,textAlign:"center",fontFamily:o}}},text:{style:{fill:"#545454",fontSize:12,textBaseline:"middle",textAlign:"start",fontFamily:o}},region:{style:{lineWidth:0,fill:"#000",fillOpacity:.04}},html:{alignX:"middle",alignY:"middle"}},pixelRatio:null};t.exports=a},function(t,e,n){var r=n(2).Group,i=n(75),o=n(1),h=n(0),a=["line","point","path"];var u=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){return{label:o.label,labelCfg:null,coord:null,geomType:null,zIndex:6}},e.prototype._renderUI=function(){t.prototype._renderUI.call(this),this.initLabelsCfg(),this.renderLabels()},e.prototype._getLabelValue=function(t){var e=t._origin,n=this.get("labelCfg"),r=n.scales,i=n.cfg&&n.cfg.content,o=void 0;if(i){var a=[];h.each(r,function(t){a.push(e[t.field])}),o=i.apply(null,a)}else{var u=r[0];if(o=e[u.field],h.isArray(o)){var c=[];h.each(o,function(t){c.push(u.getText(t))}),o=c}else o=u.getText(o)}return o},e.prototype.initLabelsCfg=function(){var t=this.getDefaultLabelCfg(),e=this.get("labelCfg");h.deepMix(t,e.cfg),this.set("label",t)},e.prototype.getDefaultLabelCfg=function(){var t=this.get("labelCfg").cfg,e=this.get("geomType");return"polygon"===e||t&&t.offset<0&&-1===h.indexOf(a,e)?h.deepMix({},this.get("label"),o.innerLabels):h.deepMix({},o.label,this.get("label"))},e.prototype.getLabelsItems=function(t){var u=this,c=[],s=u.get("label"),f=u.get("geom"),l=void 0;return h.each(t,function(i){l=i._origin;var o=u._getLabelValue(i);h.isArray(o)||(o=[o]);var a=o.length;h.each(o,function(t,e){var n=u.getLabelPoint(o,i,e);if(n){n=h.mix({},l,n);var r=void 0;r=s&&s.label&&s.label.textAlign?s.label.textAlign:u.getLabelAlign(n,e,a),n.textAlign=r,f&&(n._id=f._getShapeId(l)+"-glabel-"+e+"-"+n.text),n.coord=u.get("coord"),c.push(n)}})}),c},e.prototype.adjustItems=function(t){return t},e.prototype.drawLines=function(t,e){var n=this;0<n.getDefaultOffset()&&h.each(t,function(t){n.lineToLabel(t,e)})},e.prototype.lineToLabel=function(t,e){var n=this.get("coord"),r=t.x-t._offset.x,i=t.y-t._offset.y,o=(r+t.x)/2,a=(i+t.y)/2,u=this.get("lineGroup");u||(u=this.addGroup({elCls:"x-line-group"}),this.set("lineGroup",u));var c=u.addShape("path",{attrs:h.mix({path:["M"+r,i+" Q"+o,a+" "+t.x,t.y].join(","),fill:null,stroke:t.color},e)});c.name="labelLine",c._id=t._id&&t._id.replace("glabel","glabelline"),c.set("coord",n)},e.prototype.getLabelPoint=function(i,e,t){var n=this.get("coord");function r(t,e){var n,r;return h.isArray(t)&&(1===i.length?t.length<=2?t=t[t.length-1]:(n=t,r=0,h.each(n,function(t){r+=t}),t=r/n.length):t=t[e]),t}var o={x:r(e.x,t),y:r(e.y,t),text:i[t]};if(e&&e.nextPoints&&("funnel"===e.shape||"pyramid"===e.shape)){var a=-1/0;e.nextPoints.forEach(function(t){(t=n.convert(t)).x>a&&(a=t.x)}),o.x=(o.x+a)/2}"pyramid"===e.shape&&!e.nextPoints&&e.points&&e.points.forEach(function(t){t=n.convert(t),-1===e.x.indexOf(t.x)&&(o.x=(o.x+t.x)/2)});var u=this.getLabelOffset(o,t,i.length);return this.transLabelPoint(o),o.x+=u.x,o.y+=u.y,o.color=e.color,o._offset=u,o},e.prototype.transLabelPoint=function(t){var e=this.get("coord").applyMatrix(t.x,t.y,1);t.x=e[0],t.y=e[1]},e.prototype.getOffsetVector=function(){var t=this.get("label").offset||0,e=this.get("coord");return e.isTransposed?e.applyMatrix(t,0):e.applyMatrix(0,t)},e.prototype.getDefaultOffset=function(){var t=this.get("coord"),e=this.getOffsetVector();return t.isTransposed?e[0]:e[1]},e.prototype.getLabelOffset=function(t,e,n){var r=this.getDefaultOffset(),i=this.get("coord").isTransposed,o=i?"x":"y",a=i?1:-1,u={x:0,y:0};return u[o]=0<e||1===n?r*a:r*a*-1,u},e.prototype.getLabelAlign=function(t,e,n){var r="center";if(this.get("coord").isTransposed){var i=this.getDefaultOffset();r=i<0?"right":0===i?"center":"left",1<n&&0===e&&("right"===r?r="left":"left"===r&&(r="right"))}return r},e.prototype.showLabels=function(t){var e=this.getLabelsItems(t),n=this.get("label");e=this.adjustItems(e),this.resetLabels(e),n.labelLine&&this.drawLines(e,n.labelLine)},e.prototype.destroy=function(){this.removeLabels(),t.prototype.destroy.call(this)},e}(r);h.assign(u.prototype,i.LabelsRenderer),t.exports=u},function(t,e,n){var u=n(0),r=n(2),c=r.DomUtil,i=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){return{zIndex:6,items:null,textStyle:null,formatter:null,htmlTemplate:null,_containerTpl:'<div class="g-labels" style="position:absolute;top:0;left:0;"></div>',_itemTpl:'<div class="g-label" style="position:absolute;">{text}</div>'}},t.prototype._renderUI=function(){this._drawLabels()},t.prototype._drawLabels=function(){var n=this,t=n.get("items");u.each(t,function(t,e){n._addLabel(t,e)})},t.prototype._addLabel=function(t,e){var n=this._getLabelCfg(t,e);return this._createText(n)},t.prototype._getLabelCfg=function(t,e){var n=this.get("textStyle")||{},r=this.get("formatter"),i=this.get("htmlTemplate");if(!u.isObject(t)){var o=t;(t={}).text=o}return u.isFunction(n)&&(n=n(t.text,t,e)),r&&(t.text=r(t.text,t,e)),u.isFunction(i)&&(t.text=i(t.text,t,e)),u.isNil(t.text)&&(t.text=""),t.text=t.text+"",u.mix({},t,n,{x:t.x||0,y:t.y||0})},t.prototype._createText=function(t){var e=this.get("htmlTemplate"),n=this.get("customDiv"),r=void 0;if(!e){var i=t.point;return delete t.point,(r=this.addShape("text",{attrs:t})).setSilent("origin",i),r.name="label",this.get("appendInfo")&&r.setSilent("appendInfo",this.get("appendInfo")),r}if(!n){var o=this.get("_containerTpl"),a=this.get("canvas").get("el").parentNode;n=c.createDom(o),a.style.position="relative",a.appendChild(n),this.set("customDiv",n)}var u=this._createDom(t);n.appendChild(u),this._setCustomPosition(t,u)},t.prototype._setCustomPosition=function(t,e){var n=t.textAlign||"left",r=t.y,i=t.x,o=c.getOuterWidth(e);r-=c.getOuterHeight(e)/2,"center"===n?i-=o/2:"right"===n&&(i-=o),e.style.top=parseInt(r,10)+"px",e.style.left=parseInt(i,10)+"px"},t.prototype._createDom=function(t){var e=this.get("_itemTpl"),n=this.get("htmlTemplate");u.isString(n)&&(t.text=u.substitute(n,{text:t.text}));var r=u.substitute(e,{text:t.text});return c.createDom(r)},t.prototype.getLabels=function(){var t=this.get("customDiv");return t?u.toArray(t.childNodes):this.get("children")},t.prototype.addLabel=function(t){var e=this.get("items"),n=e.length;return e.push(t),this._addLabel(t,n)},t.prototype.changeLabel=function(t,e){if(t){var n=this.get("htmlTemplate"),r=u.indexOf(this.getLabels(),t),i=this._getLabelCfg(e,r);if(n){var o=this._createDom(i);t.innerHTML=o.innerHTML,this._setCustomPosition(i,t)}else if(t._id=e._id,t.attr("text",i.text),t.attr("x")!==i.x||t.attr("y")!==i.y){var a=t.get("attrs").rotate;a?(t.rotateAtStart(-a),t.attr(i),t.rotateAtStart(a)):t.attr(i)}}},t.prototype.clear=function(){var t=this.get("customDiv");t&&(t.innerHTML=""),e.prototype.clear.call(this)},t.prototype.setItems=function(t){this.clear(),this.set("items",t),this._drawLabels()},t.prototype.remove=function(){var t=this.get("customDiv");t&&t.parentNode.removeChild(t),e.prototype.remove.call(this)},t}(r.Group);t.exports=i},function(t,e,n){var r=n(134),i=n(18),o=n(0),a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getPointRauis=function(t,e){return i.getPointRadius(t,e)},e.prototype.getCirclePoint=function(t,e,n){var r=this.get("coord"),i=r.getCenter(),o=this._isEmitLabels(),a=this.getPointRauis(r,n);r.isTransposed&&e<a&&!o?t+=2*Math.asin(e/(2*a)):a+=e;return{x:i.x+a*Math.cos(t),y:i.y+a*Math.sin(t),angle:t,r:a}},e.prototype.getArcPoint=function(t,e){var n=void 0;return e=e||0,n=o.isArray(t.x)||o.isArray(t.y)?{x:o.isArray(t.x)?t.x[e]:t.x,y:o.isArray(t.y)?t.y[e]:t.y}:t,this.transLabelPoint(n),n},e.prototype.getPointAngle=function(t){var e=this.get("coord");return i.getPointAngle(e,t)},e.prototype.getMiddlePoint=function(t){var e=this.get("coord"),n=t.length,r={x:0,y:0};return o.each(t,function(t){r.x+=t.x,r.y+=t.y}),r.x/=n,r.y/=n,r=e.convert(r)},e.prototype._isToMiddle=function(t){return 2<t.x.length},e.prototype.getLabelPoint=function(t,e,n){var r=t[n],i=1,o=void 0;this._isToMiddle(e)?o=this.getMiddlePoint(e.points):(1===t.length&&0===n?n=1:0===n&&(i=-1),o=this.getArcPoint(e,n));var a=this.getDefaultOffset();a*=i;var u=this.getPointAngle(o),c=this.getCirclePoint(u,a,o);return c.text=r,c.angle=u,c.color=e.color,c.rotate=this.getLabelRotate(u,a,e),c},e.prototype._isEmitLabels=function(){return this.get("label").labelEmit},e.prototype.getLabelRotate=function(t){var e=void 0;return e=180*t/Math.PI,e+=90,this._isEmitLabels()&&(e-=90),e&&(90<e?e-=180:e<-90&&(e+=180)),e/180*Math.PI},e.prototype.getLabelAlign=function(t){var e=this.get("coord"),n=void 0;if(this._isEmitLabels())n=t.angle<=Math.PI/2&&t.angle>-Math.PI/2?"left":"right";else if(e.isTransposed){var r=e.getCenter(),i=this.getDefaultOffset();n=Math.abs(t.x-r.x)<1?"center":t.angle>Math.PI||t.angle<=0?0<i?"left":"right":0<i?"right":"left"}else n="center";return n},e}(r);t.exports=a},function(t,e,n){var r=n(11),i=n(138),c=n(0),o=function(n){function r(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,n.call(this,t));return c.assign(e,i),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,n),r.prototype.getDefaultCfg=function(){var t=n.prototype.getDefaultCfg.call(this);return t.type="path",t.shapeType="line",t},r.prototype.getDrawCfg=function(t){var e=n.prototype.getDrawCfg.call(this,t);return e.isStack=this.hasStack(),e},r.prototype.draw=function(t,r,i,o){var a=this,e=this.splitData(t),u=this.getDrawCfg(t[0]);u.origin=t,c.each(e,function(t,e){if(!c.isEmpty(t)){u.splitedIndex=e,u.points=t;var n=i.drawShape(u.shape,u,r);a.appendShapeInfo(n,o+e)}})},r}(r);t.exports=o},function(t,e,n){var o=n(0),a=n(1);t.exports={splitData:function(t){if(!t.length)return[];var e=[],n=[],r=this.getYScale().field,i=void 0;return o.each(t,function(t){i=t._origin?t._origin[r]:t[r],a.connectNulls?o.isNil(i)||n.push(t):o.isArray(i)&&o.isNil(i[0])||o.isNil(i)?n.length&&(e.push(n),n=[]):n.push(t)}),n.length&&e.push(n),e}}},function(t,e,n){var f=n(1),l=n(0);var r={getDefalutSize:function(){var t=this.get("defaultSize");if(!t){var e=this.get("coord"),n=this.getXScale(),r=n.values,i=this.get("dataArray"),o=void 0;if(n.isLinear&&1<r.length){r.sort();var a=function(t,e){var n=t.length;l.isString(t[0])&&(t=t.map(function(t){return e.translate(t)}));for(var r=t[1]-t[0],i=2;i<n;i++){var o=t[i]-t[i-1];o<r&&(r=o)}return r}(r,n);o=(n.max-n.min)/a,r.length>o&&(o=r.length)}else o=r.length;var u=n.range,c=1/o,s=1;if(this.isInCircle()?s=e.isTransposed&&1<o?f.widthRatio.multiplePie:f.widthRatio.rose:(n.isLinear&&(c*=u[1]-u[0]),s=f.widthRatio.column),c*=s,this.hasAdjust("dodge"))c/=this._getDodgeCount(i);t=c,this.set("defaultSize",t)}return t},_getDodgeCount:function(t){var e=this.get("adjusts"),n=void 0,r=t.length;if(l.each(e,function(t){"dodge"===t.type&&(n=t.dodgeBy)}),n){var i=l.Array.merge(t);r=l.Array.values(i,n).length}return r},getDimWidth:function(t){var e=this.get("coord"),n=e.convertPoint({x:0,y:0}),r=e.convertPoint({x:"x"===t?1:0,y:"x"===t?0:1}),i=0;return n&&r&&(i=Math.sqrt(Math.pow(r.x-n.x,2)+Math.pow(r.y-n.y,2))),i},_getWidth:function(){var t=this.get("coord");return this.isInCircle()&&!t.isTransposed?(t.endAngle-t.startAngle)*t.radius:this.getDimWidth("x")},_toNormalizedSize:function(t){return t/this._getWidth()},_toCoordSize:function(t){return this._getWidth()*t},getNormalizedSize:function(t){var e=this.getAttrValue("size",t);return e=l.isNil(e)?this.getDefalutSize():this._toNormalizedSize(e)},getSize:function(t){var e=this.getAttrValue("size",t);if(l.isNil(e)){var n=this.getDefalutSize();e=this._toCoordSize(n)}return e}};t.exports=r},function(t,e,n){"use strict";var r=n(7);e.a=function(t){return"string"==typeof t?new r.a([[document.querySelector(t)]],[document.documentElement]):new r.a([[t]],r.c)}},function(t,e,n){"use strict";function r(){return[]}e.a=function(t){return null==t?r:function(){return this.querySelectorAll(t)}}},function(t,e,n){"use strict";var r=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var i=document.documentElement;if(!i.matches){var o=i.webkitMatchesSelector||i.msMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector;r=function(t){return function(){return o.call(this,t)}}}}e.a=r},function(t,e,n){"use strict";e.a=o;var r=n(144),i=n(7);function o(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}e.b=function(){return new i.a(this._enter||this._groups.map(r.a),this._parents)},o.prototype={constructor:o,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}}},function(t,e,n){"use strict";e.a=function(t){return new Array(t.length)}},function(t,e,n){"use strict";e.b=i;var r=n(81);function i(t,e){return t.style.getPropertyValue(e)||Object(r.a)(t).getComputedStyle(t,null).getPropertyValue(e)}e.a=function(t,e,n){return 1<arguments.length?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(e,n,r){return function(){var t=n.apply(this,arguments);null==t?this.style.removeProperty(e):this.style.setProperty(e,t,r)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):i(this.node(),t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});n(401);var r=n(14);n.d(e,"transition",function(){return r.b});var i=n(447);n.d(e,"active",function(){return i.a});var o=n(147);n.d(e,"interrupt",function(){return o.a})},function(t,e,n){"use strict";var u=n(8);e.a=function(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>u.d&&n.state<u.b,n.state=u.a,n.timer.stop(),r&&n.on.call("interrupt",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}},function(t,e,n){"use strict";var r=n(84);n.d(e,"a",function(){return r.b}),n.d(e,"c",function(){return r.c});var i=n(405);n.d(e,"b",function(){return i.a});n(406)},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var r=Math.PI/180,i=180/Math.PI},function(t,e,n){"use strict";var c=n(19),r=n(89),i=n(151),u=n(31);function o(u){return function(t){var e,n,r=t.length,i=new Array(r),o=new Array(r),a=new Array(r);for(e=0;e<r;++e)n=Object(c.f)(t[e]),i[e]=n.r||0,o[e]=n.g||0,a[e]=n.b||0;return i=u(i),o=u(o),a=u(a),n.opacity=1,function(t){return n.r=i(t),n.g=o(t),n.b=a(t),n+""}}}e.a=function t(e){var a=Object(u.b)(e);function n(e,t){var n=a((e=Object(c.f)(e)).r,(t=Object(c.f)(t)).r),r=a(e.g,t.g),i=a(e.b,t.b),o=Object(u.a)(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=r(t),e.b=i(t),e.opacity=o(t),e+""}}return n.gamma=t,n}(1);o(r.b),o(i.a)},function(t,e,n){"use strict";var c=n(89);e.a=function(a){var u=a.length;return function(t){var e=Math.floor(((t%=1)<0?++t:t)*u),n=a[(e+u-1)%u],r=a[e%u],i=a[(e+1)%u],o=a[(e+2)%u];return Object(c.a)((t-e/u)*u,n,r,i,o)}}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";var u=n(86);e.a=function(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Object(u.a)(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}},function(t,e,n){"use strict";e.a=function(e,n){var r=new Date;return n-=e=+e,function(t){return r.setTime(e+n*t),r}}},function(t,e,n){"use strict";var o=n(86),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.a=function(t,e){var n,r={},i={};for(n in null!==t&&"object"===(void 0===t?"undefined":a(t))||(t={}),null!==e&&"object"===(void 0===e?"undefined":a(e))||(e={}),e)n in t?r[n]=Object(o.a)(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}},function(t,e,n){"use strict";var l=n(50),h=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,p=new RegExp(h.source,"g");e.a=function(t,r){var e,n,i,o,a,u=h.lastIndex=p.lastIndex=0,c=-1,s=[],f=[];for(t+="",r+="";(e=h.exec(t))&&(n=p.exec(r));)(i=n.index)>u&&(i=r.slice(u,i),s[c]?s[c]+=i:s[++c]=i),(e=e[0])===(n=n[0])?s[c]?s[c]+=n:s[++c]=n:(s[++c]=null,f.push({i:c,x:Object(l.a)(e,n)})),u=p.lastIndex;return u<r.length&&(i=r.slice(u),s[c]?s[c]+=i:s[++c]=i),s.length<2?f[0]?(a=f[0].x,function(t){return a(t)+""}):(o=r,function(){return o}):(r=f.length,function(t){for(var e,n=0;n<r;++n)s[(e=f[n]).i]=e.x(t);return s.join("")})}},function(t,e,n){"use strict";var r=n(19),i=n(85);e.a=function(t,e){var n;return("number"==typeof e?i.a:e instanceof r.a?i.b:(n=Object(r.a)(e))?(e=n,i.b):i.c)(t,e)}},function(t,e,n){t.exports={Scale:n(448),Coord:n(456),Axis:n(461),Guide:n(482),Legend:n(483),Tooltip:n(484),Event:n(485)}},function(t,e,n){var r=n(0),i=n(52);i.Linear=n(53),i.Identity=n(450),i.Cat=n(161),i.Time=n(451),i.TimeCat=n(453),i.Log=n(454),i.Pow=n(455);var o=function(e){if(i.hasOwnProperty(e)){var t=r.lowerFirst(e);i[t]=function(t){return new i[e](t)}}};for(var a in i)o(a);var u=["cat","timeCat"];i.isCategory=function(t){return 0<=u.indexOf(t)},t.exports=i},function(t,e){var a=12;function o(t,e){var n=t.length;if(0===n)return NaN;var r=t[0];if(e<t[0])return NaN;if(e>=t[n-1])return t[n-1];for(var i=1;i<t.length&&!(e<t[i]);i++)r=t[i];return r}function u(t,e){var n=t.length;if(0===n)return NaN;var r=void 0;if(e>t[n-1])return NaN;if(e<t[0])return t[0];for(var i=1;i<t.length;i++)if(e<=t[i]){r=t[i];break}return r}var c={snapFactorTo:function(t,e,n){if(isNaN(t))return NaN;var r=1;if(0!==t){t<0&&(r=-1);var i=function(t){var e=1;if(t===1/0||t===-1/0)throw new Error("Not support Infinity!");if(t<1){for(var n=0;t<1;)e/=10,t*=10,n++;e.toString().length>a&&(e=parseFloat(e.toFixed(n)))}else for(;10<t;)e*=10,t/=10;return e}(t*=r);r*=i,t/=i}var o=(t="floor"===n?c.snapFloor(e,t):"ceil"===n?c.snapCeiling(e,t):c.snapTo(e,t))*r;Math.abs(r)<1&&o.toString().length>a&&(o=t/parseInt(1/r)*(0<r?1:-1));return o},snapMultiple:function(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e},snapTo:function(t,e){var n=o(t,e),r=u(t,e);if(isNaN(n)||isNaN(r)){if(t[0]>=e)return t[0];var i=t[t.length-1];if(i<=e)return i}return Math.abs(e-n)<Math.abs(r-e)?n:r},snapFloor:function(t,e){return o(t,e)},snapCeiling:function(t,e){return u(t,e)}};t.exports=c},function(t,e,n){var r=n(52),o=n(0),i=n(162),a=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return o.mix({},t,{type:"cat",tickCount:null,isCategory:!0})},t.prototype.init=function(){var n=this.values,t=this.tickCount;if(o.each(n,function(t,e){n[e]=t.toString()}),!this.ticks){var e=n;if(t)e=i({maxCount:t,data:n}).ticks;this.ticks=e}},t.prototype.getText=function(t){return-1===this.values.indexOf(t)&&o.isNumber(t)&&(t=this.values[Math.round(t)]),e.prototype.getText.call(this,t)},t.prototype.translate=function(t){var e=this.values.indexOf(t);return-1===e&&o.isNumber(t)?e=t:-1===e&&(e=NaN),e},t.prototype.scale=function(t){var e=this.rangeMin(),n=this.rangeMax();return(o.isString(t)||-1!==this.values.indexOf(t))&&(t=this.translate(t)),e+(1<this.values.length?t/(this.values.length-1):t)*(n-e)},t.prototype.invert=function(t){if(o.isString(t))return t;var e=this.rangeMin(),n=this.rangeMax();t<e&&(t=e),n<t&&(t=n);var r=(t-e)/(n-e),i=Math.round(r*(this.values.length-1))%this.values.length;return i=i||0,this.values[i]},t}(r);t.exports=a},function(t,e,n){var p=n(0);t.exports=function(t){var e,n,r={},i=[],o=t.maxCount||8,a=(e=t.data,n=[],p.each(e,function(t){p.isArray(t)?n=n.concat(t):n.push(t)}),n),u=a.length,c=function(t,e){var n=void 0;for(n=e;0<n&&t%n!=0;n--);if(1===n)for(n=e;0<n&&(t-1)%n!=0;n--);return n}(u-1,o-1)+1;2===c?c=o:c<o-4&&(c=o-4);var s=parseInt(u/(c-1),10),f=a.map(function(t,e){return e%s==0?a.slice(e,e+s):null}).filter(function(t){return t});i.push(a[0]);for(var l=1;l<f.length&&l*s<u-s;l++)i.push(f[l][0]);var h=a[u-1];return-1===i.indexOf(h)&&i.push(h),r.categories=a,r.ticks=i,r}},function(d,y,b){var m;!function(t){"use strict";var c={},s=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,e=/\d\d?/,n=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,o=/\[([^]*?)\]/gm,r=function(){};function i(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}function a(i){return function(t,e,n){var r=n[i].indexOf(e.charAt(0).toUpperCase()+e.substr(1).toLowerCase());~r&&(t.month=r)}}function u(t,e){for(t=String(t),e=e||2;t.length<e;)t="0"+t;return t}var f=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=["January","February","March","April","May","June","July","August","September","October","November","December"],h=i(l,3),p=i(f,3);c.i18n={dayNamesShort:p,dayNames:f,monthNamesShort:h,monthNames:l,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][3<t%10?0:(t-t%10!=10)*t%10]}};var v={D:function(t){return t.getDate()},DD:function(t){return u(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return t.getDay()},dd:function(t){return u(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return t.getMonth()+1},MM:function(t){return u(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return String(t.getFullYear()).substr(2)},YYYY:function(t){return t.getFullYear()},h:function(t){return t.getHours()%12||12},hh:function(t){return u(t.getHours()%12||12)},H:function(t){return t.getHours()},HH:function(t){return u(t.getHours())},m:function(t){return t.getMinutes()},mm:function(t){return u(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return u(t.getSeconds())},S:function(t){return Math.round(t.getMilliseconds()/100)},SS:function(t){return u(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return u(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(0<e?"-":"+")+u(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}},g={D:[e,function(t,e){t.day=e}],Do:[new RegExp(e.source+n.source),function(t,e){t.day=parseInt(e,10)}],M:[e,function(t,e){t.month=e-1}],YY:[e,function(t,e){var n=+(""+(new Date).getFullYear()).substr(0,2);t.year=""+(68<e?n-1:n)+e}],h:[e,function(t,e){t.hour=e}],m:[e,function(t,e){t.minute=e}],s:[e,function(t,e){t.second=e}],YYYY:[/\d{4}/,function(t,e){t.year=e}],S:[/\d/,function(t,e){t.millisecond=100*e}],SS:[/\d{2}/,function(t,e){t.millisecond=10*e}],SSS:[/\d{3}/,function(t,e){t.millisecond=e}],d:[e,r],ddd:[n,r],MMM:[n,a("monthNamesShort")],MMMM:[n,a("monthNames")],a:[n,function(t,e,n){var r=e.toLowerCase();r===n.amPm[0]?t.isPm=!1:r===n.amPm[1]&&(t.isPm=!0)}],ZZ:[/([\+\-]\d\d:?\d\d|Z)/,function(t,e){"Z"===e&&(e="+00:00");var n,r=(e+"").match(/([\+\-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),t.timezoneOffset="+"===r[0]?n:-n)}]};g.dd=g.d,g.dddd=g.ddd,g.DD=g.D,g.mm=g.m,g.hh=g.H=g.HH=g.h,g.MM=g.M,g.ss=g.s,g.A=g.a,c.masks={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},c.format=function(e,t,n){var r=n||c.i18n;if("number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date in fecha.format");t=c.masks[t]||t||c.masks.default;var i=[];return(t=(t=t.replace(o,function(t,e){return i.push(e),"??"})).replace(s,function(t){return t in v?v[t](e,r):t.slice(1,t.length-1)})).replace(/\?\?/g,function(){return i.shift()})},c.parse=function(r,t,e){var i=e||c.i18n;if("string"!=typeof t)throw new Error("Invalid format in fecha.parse");if(t=c.masks[t]||t,1e3<r.length)return!1;var o=!0,a={};if(t.replace(s,function(t){if(g[t]){var e=g[t],n=r.search(e[0]);~n?r.replace(e[0],function(t){return e[1](a,t,i),r=r.substr(n+t.length),t}):o=!1}return g[t]?"":t.slice(1,t.length-1)}),!o)return!1;var n,u=new Date;return!0===a.isPm&&null!=a.hour&&12!=+a.hour?a.hour=+a.hour+12:!1===a.isPm&&12==+a.hour&&(a.hour=0),null!=a.timezoneOffset?(a.minute=+(a.minute||0)-+a.timezoneOffset,n=new Date(Date.UTC(a.year||u.getFullYear(),a.month||0,a.day||1,a.hour||0,a.minute||0,a.second||0,a.millisecond||0))):n=new Date(a.year||u.getFullYear(),a.month||0,a.day||1,a.hour||0,a.minute||0,a.second||0,a.millisecond||0),n},void 0!==d&&d.exports?d.exports=c:void 0===(m=function(){return c}.call(y,b,y,d))||(d.exports=m)}()},function(t,e,n){var r=n(0);t.exports={toTimeStamp:function(t){return r.isString(t)&&(t=0<t.indexOf("T")?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),r.isDate(t)&&(t=t.getTime()),t}}},function(t,e,n){var r=n(0),i=n(1),o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){return{title:{fill:"#333",textBaseline:"middle"},itemFormatter:null,useHtml:!1,inPlot:!1,hoverable:!0}},e.prototype._beforeRenderUI=function(){var t=this.addGroup();t.set("viewId",this.get("viewId")),this.set("itemsGroup",t)},e.prototype._renderUI=function(){this._renderTitle()},e.prototype._renderTitle=function(){var t=this.get("title");if(t&&t.text){var e=this.addShape("text",{attrs:r.mix({x:0,y:0,fill:"#333",textBaseline:"middle",fontFamily:i.fontFamily},t)});e.name="legend-title",this.get("appendInfo")&&e.setSilent("appendInfo",this.get("appendInfo")),this.set("titleShape",e)}},e.prototype.getCheckedCount=function(){var t=this.get("itemsGroup").get("children");return r.filter(t,function(t){return t.get("checked")}).length},e.prototype.setItems=function(t){this.set("items",t),this.clearItems(),this._renderUI()},e.prototype.addItem=function(t){this.get("items").push(t),this.clearItems(),this._renderUI()},e.prototype.clearItems=function(){this.get("itemsGroup").clear()},e.prototype.getWidth=function(){return this.getBBox().width},e.prototype.getHeight=function(){return this.getBBox().height},e}(n(2).Group);t.exports=o},function(t,e,n){var s=n(0),r=n(1),i=n(165),o=n(2),c=o.Event,a=o.Group,u=n(478),f=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return s.mix({},t,{type:"continuous-legend",items:null,layout:"vertical",width:156,height:20,titleGap:22,textStyle:{fill:"#333",textAlign:"center",textBaseline:"middle",fontFamily:r.fontFamily},slidable:!0,inRange:{fill:"#4E7CCC"},_range:[0,100],middleAttr:{fill:"#fff",fillOpacity:0},outRangeStyle:{fill:"#D9D9D9"},numberFormatter:null,labelOffset:10})},t.prototype._calStartPoint=function(){var t={x:0,y:this.get("titleGap")-12},e=this.get("titleShape");if(e){var n=e.getBBox();t.y+=n.height}return t},t.prototype._beforeRenderUI=function(){var t=this.get("items");s.isArray(t)&&!s.isEmpty(t)&&(e.prototype._beforeRenderUI.call(this),this.set("firstItem",t[0]),this.set("lastItem",t[t.length-1]))},t.prototype._formatItemValue=function(t){var e=this.get("numberFormatter");e&&(t=e(t));var n=this.get("itemFormatter");return n&&(t=n.call(this,t)),t},t.prototype._renderUI=function(){e.prototype._renderUI.call(this),this.get("slidable")?this._renderSlider():this._renderBackground()},t.prototype._renderSlider=function(){var t=new a,e=new a,n=new a,r=this._calStartPoint(),i=this.addGroup(u,{minHandleElement:t,maxHandleElement:e,backgroundElement:n,middleAttr:this.get("middleAttr"),layout:this.get("layout"),range:this.get("_range"),width:this.get("width"),height:this.get("height")});i.translate(r.x,r.y),this.set("slider",i),this._renderSliderShape().attr("clip",i.get("middleHandleElement")),this._renderTrigger()},t.prototype._addBackground=function(t,e,n){return t.addShape(e,{attrs:s.mix({},n,this.get("outRangeStyle"))}),t.addShape(e,{attrs:n})},t.prototype._renderTrigger=function(){var t=this.get("firstItem"),e=this.get("lastItem"),n=this.get("layout"),r=this.get("textStyle"),i=this.get("inRange"),o=void 0,a=void 0;"color-legend"===this.get("type")?(o={fill:t.attrValue},a={fill:e.attrValue}):(o=s.mix({},i),a=s.mix({},i));var u=s.mix({text:this._formatItemValue(t.value)+""},r),c=s.mix({text:this._formatItemValue(e.value)+""},r);"vertical"===n?(this._addVerticalTrigger("min",o,u),this._addVerticalTrigger("max",a,c)):(this._addHorizontalTrigger("min",o,u),this._addHorizontalTrigger("max",a,c))},t.prototype._addVerticalTrigger=function(t,e,n){var r=this.get("slider").get(t+"HandleElement"),i=this.get("width"),o=r.addShape("polygon",{attrs:s.mix({points:[[i/2+12,0],[i/2+1,0],[i/2+12,"min"===t?12:-12]]},e)}),a=r.addShape("text",{attrs:s.mix(n,{x:i+8,y:"max"===t?-4:4,textAlign:"start",lineHeight:1,textBaseline:"middle"})}),u="vertical"===this.get("layout")?"ns-resize":"ew-resize";o.attr("cursor",u),a.attr("cursor",u),this.set(t+"ButtonElement",o),this.set(t+"TextElement",a)},t.prototype._addHorizontalTrigger=function(t,e,n){var r=this.get("slider").get(t+"HandleElement"),i=r.addShape("polygon",{attrs:s.mix({points:[[0,0],[0,12],["min"===t?-12:12,12]]},e)}),o=r.addShape("text",{attrs:s.mix(n,{x:"min"===t?-16:16,y:6,textAlign:"min"===t?"end":"start",textBaseline:"middle"})}),a="vertical"===this.get("layout")?"ns-resize":"ew-resize";i.attr("cursor",a),o.attr("cursor",a),this.set(t+"ButtonElement",i),this.set(t+"TextElement",o)},t.prototype._bindUI=function(){var u=this;u.get("slidable")&&u.get("slider").on("sliderchange",function(t){var e=t.range,n=1*u.get("firstItem").value,r=1*u.get("lastItem").value,i=n+e[0]/100*(r-n),o=n+e[1]/100*(r-n);u._updateElement(i,o);var a=new c("itemfilter",t,!0,!0);a.range=[i,o],u.emit("itemfilter",a)})},t.prototype._updateElement=function(t,e){var n=this.get("minTextElement"),r=this.get("maxTextElement");if(1<e&&(t=parseInt(t,10),e=parseInt(e,10)),n.attr("text",this._formatItemValue(t)+""),r.attr("text",this._formatItemValue(e)+""),"color-legend"===this.get("type")&&this.get("attr")){var i=this.get("attr"),o=this.get("minButtonElement"),a=this.get("maxButtonElement");o.attr("fill",i.mapping(t).join("")),a.attr("fill",i.mapping(e).join(""))}},t}(i);t.exports=f},function(t,e,n){var r=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.type="rect",t},t.prototype.generateFacets=function(c){var s=this,t=s.fields,f=[],l=1,h=1,p=t[0],v=t[1],g=[""],d=[""];return p&&(g=s.getFieldValues(p,c),h=g.length),v&&(d=s.getFieldValues(v,c),l=d.length),g.forEach(function(a,u){d.forEach(function(t,e){var n=[{field:p,value:a,values:g},{field:v,value:t,values:d}],r=s.getFilter(n),i=c.filter(r),o={type:s.type,colValue:a,rowValue:t,colField:p,rowField:v,colIndex:u,rowIndex:e,cols:h,rows:l,data:i,region:s.getRegion(l,h,u,e)};f.push(o)})}),f},t.prototype.setXAxis=function(t,e,n){n.rowIndex!==n.rows-1?(e[t].title=null,e[t].label=null):n.colIndex!==parseInt((n.cols-1)/2)&&(e[t].title=null)},t.prototype.setYAxis=function(t,e,n){0!==n.colIndex?(e[t].title=null,e[t].label=null):n.rowIndex!==parseInt((n.rows-1)/2)&&(e[t].title=null)},t.prototype.renderTitle=function(t,e){0===e.rowIndex&&this.drawColTitle(t,e),e.colIndex===e.cols-1&&this.drawRowTitle(t,e)},t}(n(56));t.exports=r},function(t,e,n){var r=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.type="list",t.cols=null,t},t.prototype.generateFacets=function(c){var s=this,f=s.fields[0];if(!f)throw"Please specify for the field for facet!";var l=s.getFieldValues(f,c),h=l.length,p=s.cols||h,v=parseInt((h+p-1)/p),g=[];return l.forEach(function(t,e){var n=parseInt(e/p),r=e%p,i=[{field:f,value:t,values:l}],o=s.getFilter(i),a=c.filter(o),u={type:s.type,count:h,colValue:t,colField:f,rowField:null,rowValue:t,colIndex:r,rowIndex:n,cols:p,rows:v,data:a,region:s.getRegion(v,p,r,n)};g.push(u)}),g},t.prototype.setXAxis=function(t,e,n){n.rowIndex!==n.rows-1&&n.cols*n.rowIndex+n.colIndex+1+n.cols<=n.count&&(e[t].label=null,e[t].title=null)},t.prototype.setYAxis=function(t,e,n){0!==n.colIndex&&(e[t].title=null,e[t].label=null)},t}(n(56));t.exports=r},function(t,e,n){var r=n(2),i=n(90),o=n(326),a=n(1),u=n(159),c=n(76),s=n(0),f={version:a.version,Animate:i,Chart:o,Global:a,Scale:u,Shape:c,Util:s,G:r,DomUtil:r.DomUtil,MatrixUtil:r.MatrixUtil,PathUtil:r.PathUtil,track:function(t){a.trackable=t}};n(492),"undefined"!=typeof window&&(window.G2?console.warn("There are multiple versions of G2. Version "+f.version+"'s reference is 'window.G2_3'"):window.G2=f),t.exports=f},function(t,e,n){var r=n(59),i=n(174),o=n(10),a=n(93),u=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,f=c.toString,l=s.hasOwnProperty,h=RegExp("^"+f.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?h:u).test(a(t))}},function(t,e){var n,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}t.exports=n},function(t,e,n){var r=n(16),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,u=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,u),n=t[u];try{var r=!(t[u]=void 0)}catch(t){}var i=a.call(t);return r&&(e?t[u]=n:delete t[u]),i}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r,i=n(175),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},function(t,e,n){var r=n(4)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(94),c=n(182);t.exports=function(u){return r(function(t,e){var n=-1,r=e.length,i=1<r?e[r-1]:void 0,o=2<r?e[2]:void 0;for(i=3<u.length&&"function"==typeof i?(r--,i):void 0,o&&c(e[0],e[1],o)&&(i=r<3?void 0:i,r=1),t=Object(t);++n<r;){var a=e[n];a&&u(t,a,n,i)}return t})}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var r=n(180),i=n(91),o=n(36),a=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=a},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var o=800,a=16,u=Date.now;t.exports=function(n){var r=0,i=0;return function(){var t=u(),e=a-(t-i);if(i=t,0<e){if(++r>=o)return arguments[0]}else r=0;return n.apply(void 0,arguments)}}},function(t,e,n){var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=n(35),a=n(12),u=n(37),c=n(10);t.exports=function(t,e,n){if(!c(n))return!1;var r=void 0===e?"undefined":i(e);return!!("number"==r?a(n)&&u(e,n.length):"string"==r&&e in n)&&o(n[e],t)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var r=n(9),i=n(5),o="[object Arguments]";t.exports=function(t){return i(t)&&r(t)==o}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(9),i=n(60),o=n(5),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!a[r(t)]}},function(t,e,n){var r=n(101)(Object.keys,Object);t.exports=r},function(t,e,n){var y=n(62),b=n(103),m=n(34),x=n(211),j=n(212),_=n(215),O=n(105),w=n(216),S=n(217),M=n(109),E=n(218),C=n(44),P=n(222),A=n(223),T=n(232),k=n(3),I=n(39),L=n(10),R=n(17),D=1,B=2,F=4,N="[object Arguments]",z="[object Function]",q="[object GeneratorFunction]",V="[object Object]",Y={};Y[N]=Y["[object Array]"]=Y["[object ArrayBuffer]"]=Y["[object DataView]"]=Y["[object Boolean]"]=Y["[object Date]"]=Y["[object Float32Array]"]=Y["[object Float64Array]"]=Y["[object Int8Array]"]=Y["[object Int16Array]"]=Y["[object Int32Array]"]=Y["[object Map]"]=Y["[object Number]"]=Y[V]=Y["[object RegExp]"]=Y["[object Set]"]=Y["[object String]"]=Y["[object Symbol]"]=Y["[object Uint8Array]"]=Y["[object Uint8ClampedArray]"]=Y["[object Uint16Array]"]=Y["[object Uint32Array]"]=!0,Y["[object Error]"]=Y[z]=Y["[object WeakMap]"]=!1,t.exports=function n(r,i,o,t,e,a){var u,c=i&D,s=i&B,f=i&F;if(o&&(u=e?o(r,t,e,a):o(r)),void 0!==u)return u;if(!L(r))return r;var l=k(r);if(l){if(u=P(r),!c)return O(r,u)}else{var h=C(r),p=h==z||h==q;if(I(r))return _(r,c);if(h==V||h==N||p&&!e){if(u=s||p?{}:T(r),!c)return s?S(r,j(u,r)):w(r,x(u,r))}else{if(!Y[h])return e?r:{};u=A(r,h,n,c)}}a||(a=new y);var v=a.get(r);if(v)return v;a.set(r,u);var g=f?s?E:M:s?keysIn:R,d=l?void 0:g(r);return b(d||r,function(t,e){d&&(t=r[e=t]),m(u,e,n(t,i,o,e,r,a))}),u}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(41),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},function(t,e,n){var r=n(41);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(41);t.exports=function(t){return-1<r(this.__data__,t)}},function(t,e,n){var i=n(41);t.exports=function(t,e){var n=this.__data__,r=i(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}},function(t,e,n){var r=n(40);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var i=n(40),o=n(63),a=n(64),u=200;t.exports=function(t,e){var n=this.__data__;if(n instanceof i){var r=n.__data__;if(!o||r.length<u-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new a(r)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(200),i=n(40),o=n(63);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(t,e,n){var r=n(201),i=n(202),o=n(203),a=n(204),u=n(205);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=u,t.exports=c},function(t,e,n){var r=n(42);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(42),i="__lodash_hash_undefined__",o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return n===i?void 0:n}return o.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(42),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},function(t,e,n){var r=n(42),i="__lodash_hash_undefined__";t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?i:e,this}},function(t,e,n){var r=n(43);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};t.exports=function(t){var e=void 0===t?"undefined":n(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(43);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(43);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var i=n(43);t.exports=function(t,e){var n=i(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}},function(t,e,n){var r=n(24),i=n(17);t.exports=function(t,e){return t&&r(e,i(e),t)}},function(t,e,n){var r=n(24),i=n(104);t.exports=function(t,e){return t&&r(e,i(e),t)}},function(t,e,n){var i=n(10),o=n(25),a=n(214),u=Object.prototype.hasOwnProperty;t.exports=function(t){if(!i(t))return a(t);var e=o(t),n=[];for(var r in t)("constructor"!=r||!e&&u.call(t,r))&&n.push(r);return n}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,u,c){(function(t){var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=c(4),r="object"==e(u)&&u&&!u.nodeType&&u,i=r&&"object"==e(t)&&t&&!t.nodeType&&t,o=i&&i.exports===r?n.Buffer:void 0,a=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=a?a(n):new t.constructor(n);return t.copy(r),r}}).call(u,c(33)(t))},function(t,e,n){var r=n(24),i=n(65);t.exports=function(t,e){return r(t,i(t),e)}},function(t,e,n){var r=n(24),i=n(108);t.exports=function(t,e){return r(t,i(t),e)}},function(t,e,n){var r=n(110),i=n(108),o=n(104);t.exports=function(t){return r(t,o,i)}},function(t,e,n){var r=n(15)(n(4),"DataView");t.exports=r},function(t,e,n){var r=n(15)(n(4),"Promise");t.exports=r},function(t,e,n){var r=n(15)(n(4),"WeakMap");t.exports=r},function(t,e){var r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,n=t.constructor(e);return e&&"string"==typeof t[0]&&r.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},function(t,e,n){var o=n(68),a=n(224),u=n(225),c=n(227),s=n(228),f=n(230),l=n(231),h="[object Boolean]",p="[object Date]",v="[object Map]",g="[object Number]",d="[object RegExp]",y="[object Set]",b="[object String]",m="[object Symbol]",x="[object ArrayBuffer]",j="[object DataView]",_="[object Float32Array]",O="[object Float64Array]",w="[object Int8Array]",S="[object Int16Array]",M="[object Int32Array]",E="[object Uint8Array]",C="[object Uint8ClampedArray]",P="[object Uint16Array]",A="[object Uint32Array]";t.exports=function(t,e,n,r){var i=t.constructor;switch(e){case x:return o(t);case h:case p:return new i(+t);case j:return a(t,r);case _:case O:case w:case S:case M:case E:case C:case P:case A:return l(t,r);case v:return u(t,r,n);case g:case b:return new i(t);case d:return c(t);case y:return s(t,r,n);case m:return f(t)}}},function(t,e,n){var r=n(68);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},function(t,e,n){var i=n(226),o=n(45),a=n(69),u=1;t.exports=function(t,e,n){var r=e?n(a(t),u):a(t);return o(r,i,new t.constructor)}},function(t,e){t.exports=function(t,e){return t.set(e[0],e[1]),t}},function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,n){var i=n(229),o=n(45),a=n(26),u=1;t.exports=function(t,e,n){var r=e?n(a(t),u):a(t);return o(r,i,new t.constructor)}},function(t,e){t.exports=function(t,e){return t.add(e),t}},function(t,e,n){var r=n(16),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;t.exports=function(t){return o?Object(o.call(t)):{}}},function(t,e,n){var r=n(68);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){var r=n(233),i=n(67),o=n(25);t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:r(i(t))}},function(t,e,n){var r=n(10),i=Object.create,o=function(){function n(){}return function(t){if(!r(t))return{};if(i)return i(t);n.prototype=t;var e=new n;return n.prototype=void 0,e}}();t.exports=o},function(t,e,n){t.exports=n(235)},function(t,e,n){var r=n(103),i=n(27),o=n(240),a=n(3);t.exports=function(t,e){return(a(t)?r:i)(t,o(e))}},function(t,e,n){var r=n(237),i=n(17);t.exports=function(t,e){return t&&r(t,e,i)}},function(t,e,n){var r=n(238)();t.exports=r},function(t,e){t.exports=function(c){return function(t,e,n){for(var r=-1,i=Object(t),o=n(t),a=o.length;a--;){var u=o[c?a:++r];if(!1===e(i[u],u,i))break}return t}}},function(t,e,n){var u=n(12);t.exports=function(o,a){return function(t,e){if(null==t)return t;if(!u(t))return o(t,e);for(var n=t.length,r=a?n:-1,i=Object(t);(a?r--:++r<n)&&!1!==e(i[r],r,i););return t}}},function(t,e,n){var r=n(36);t.exports=function(t){return"function"==typeof t?t:r}},function(t,e,n){var r=n(106),i=n(242),o=n(20),a=n(3);t.exports=function(t,e){return(a(t)?r:i)(t,o(e,3))}},function(t,e,n){var o=n(27);t.exports=function(t,r){var i=[];return o(t,function(t,e,n){r(t,e,n)&&i.push(t)}),i}},function(t,e,n){var r=n(244),i=n(251),o=n(117);t.exports=function(e){var n=i(e);return 1==n.length&&n[0][2]?o(n[0][0],n[0][1]):function(t){return t===e||r(t,e,n)}}},function(t,e,n){var p=n(62),v=n(46),g=1,d=2;t.exports=function(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;for(t=Object(t);i--;){var u=n[i];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++i<o;){var c=(u=n[i])[0],s=t[c],f=u[1];if(a&&u[2]){if(void 0===s&&!(c in t))return!1}else{var l=new p;if(r)var h=r(s,f,c,t,e,l);if(!(void 0===h?v(f,s,g|d,r,l):h))return!1}}return!0}},function(t,e,n){var y=n(62),b=n(113),m=n(249),x=n(250),j=n(44),_=n(3),O=n(39),w=n(61),S=1,M="[object Arguments]",E="[object Array]",C="[object Object]",P=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,r,i,o){var a=_(t),u=_(e),c=a?E:j(t),s=u?E:j(e),f=(c=c==M?C:c)==C,l=(s=s==M?C:s)==C,h=c==s;if(h&&O(t)){if(!O(e))return!1;f=!(a=!0)}if(h&&!f)return o||(o=new y),a||w(t)?b(t,e,n,r,i,o):m(t,e,c,n,r,i,o);if(!(n&S)){var p=f&&P.call(t,"__wrapped__"),v=l&&P.call(e,"__wrapped__");if(p||v){var g=p?t.value():t,d=v?e.value():e;return o||(o=new y),i(g,d,n,r,o)}}return!!h&&(o||(o=new y),x(t,e,n,r,i,o))}},function(t,e){var n="__lodash_hash_undefined__";t.exports=function(t){return this.__data__.set(t,n),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t,e,n){var r=n(16),l=n(112),h=n(35),p=n(113),v=n(69),g=n(26),d=1,y=2,b="[object Boolean]",m="[object Date]",x="[object Error]",j="[object Map]",_="[object Number]",O="[object RegExp]",w="[object Set]",S="[object String]",M="[object Symbol]",E="[object ArrayBuffer]",C="[object DataView]",i=r?r.prototype:void 0,P=i?i.valueOf:void 0;t.exports=function(t,e,n,r,i,o,a){switch(n){case C:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case E:return!(t.byteLength!=e.byteLength||!o(new l(t),new l(e)));case b:case m:case _:return h(+t,+e);case x:return t.name==e.name&&t.message==e.message;case O:case S:return t==e+"";case j:var u=v;case w:var c=r&d;if(u||(u=g),t.size!=e.size&&!c)return!1;var s=a.get(t);if(s)return s==e;r|=y,a.set(t,e);var f=p(u(t),u(e),r,i,o,a);return a.delete(t),f;case M:if(P)return P.call(t)==P.call(e)}return!1}},function(t,e,n){var m=n(109),x=1,j=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,r,i,o){var a=n&x,u=m(t),c=u.length;if(c!=m(e).length&&!a)return!1;for(var s=c;s--;){var f=u[s];if(!(a?f in e:j.call(e,f)))return!1}var l=o.get(t);if(l&&o.get(e))return l==e;var h=!0;o.set(t,e),o.set(e,t);for(var p=a;++s<c;){var v=t[f=u[s]],g=e[f];if(r)var d=a?r(g,v,f,e,t,o):r(v,g,f,t,e,o);if(!(void 0===d?v===g||i(v,g,n,r,o):d)){h=!1;break}p||(p="constructor"==f)}if(h&&!p){var y=t.constructor,b=e.constructor;y!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b)&&(h=!1)}return o.delete(t),o.delete(e),h}},function(t,e,n){var o=n(116),a=n(17);t.exports=function(t){for(var e=a(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,o(i)]}return e}},function(t,e,n){var i=n(46),o=n(253),a=n(118),u=n(71),c=n(116),s=n(117),f=n(29),l=1,h=2;t.exports=function(n,r){return u(n)&&c(r)?s(f(n),r):function(t){var e=o(t,n);return void 0===e&&e===r?a(t,n):i(r,e,l|h)}}},function(t,e,n){var i=n(70);t.exports=function(t,e,n){var r=null==t?void 0:i(t,e);return void 0===r?n:r}},function(t,e,n){var r=n(255),o=/^\./,a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,u=/\\(\\)?/g,i=r(function(t){var i=[];return o.test(t)&&i.push(""),t.replace(a,function(t,e,n,r){i.push(n?r.replace(u,"$1"):e||t)}),i});t.exports=i},function(t,e,n){var r=n(256),i=500;t.exports=function(t){var e=r(t,function(t){return n.size===i&&n.clear(),t}),n=e.cache;return e}},function(t,e,n){var r=n(64),i="Expected a function";function u(o,a){if("function"!=typeof o||null!=a&&"function"!=typeof a)throw new TypeError(i);var t=function t(){var e=arguments,n=a?a.apply(this,e):e[0],r=t.cache;if(r.has(n))return r.get(n);var i=o.apply(this,e);return t.cache=r.set(n,i)||r,i};return t.cache=new(u.Cache||r),t}u.Cache=r,t.exports=u},function(t,e,n){var r=n(16),i=n(72),o=n(3),a=n(28),u=1/0,c=r?r.prototype:void 0,s=c?c.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return s?s.call(e):"";var n=e+"";return"0"==n&&1/e==-u?"-0":n}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,n){var u=n(47),c=n(38),s=n(3),f=n(37),l=n(60),h=n(29);t.exports=function(t,e,n){for(var r=-1,i=(e=u(e,t)).length,o=!1;++r<i;){var a=h(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&l(i)&&f(a,i)&&(s(t)||c(t))}},function(t,e,n){var r=n(261),i=n(262),o=n(71),a=n(29);t.exports=function(t){return o(t)?r(a(t)):i(t)}},function(t,e){t.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(t,e,n){var r=n(70);t.exports=function(e){return function(t){return r(t,e)}}},function(t,e,n){var r=n(16),i=n(38),o=n(3),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},function(t,e,n){var r=n(58),i=n(265),o=Object.prototype.hasOwnProperty,a=i(function(t,e,n){o.call(t,n)?t[n].push(e):r(t,n,[e])});t.exports=a},function(t,e,n){var a=n(266),u=n(267),c=n(20),s=n(3);t.exports=function(i,o){return function(t,e){var n=s(t)?a:u,r=o?o():{};return n(t,i,c(e,2),r)}}},function(t,e){t.exports=function(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}},function(t,e,n){var a=n(27);t.exports=function(t,r,i,o){return a(t,function(t,e,n){r(o,t,i(t),n)}),o}},function(t,e,n){var o=n(121),a=n(122),u=Math.max;t.exports=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:a(n);return i<0&&(i=u(r+i,0)),o(t,e,i)}},function(t,e){t.exports=function(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},function(t,e,n){var r=n(123),i=1/0,o=1.7976931348623157e308;t.exports=function(t){return t?(t=r(t))===i||t===-i?(t<0?-1:1)*o:t==t?t:0:0===t?t:0}},function(t,e,n){var r=n(9),i=n(5),o="[object Boolean]";t.exports=function(t){return!0===t||!1===t||i(t)&&r(t)==o}},function(t,e,n){var r=n(275),i=n(98),o=n(99),a=o&&o.isDate,u=a?i(a):r;t.exports=u},function(t,e,n){var r=n(9),i=n(5),o="[object Date]";t.exports=function(t){return i(t)&&r(t)==o}},function(t,e,n){var r=n(100),i=n(44),o=n(38),a=n(3),u=n(12),c=n(39),s=n(25),f=n(61),l="[object Map]",h="[object Set]",p=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(u(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||f(t)||o(t)))return!t.length;var e=i(t);if(e==l||e==h)return!t.size;if(s(t))return!r(t).length;for(var n in t)if(p.call(t,n))return!1;return!0}},function(t,e,n){var r=n(46);t.exports=function(t,e){return r(t,e)}},function(t,e,n){var i=n(46);t.exports=function(t,e,n){var r=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===r?i(t,e,void 0,n):!!r}},function(t,e,n){var r=n(4).isFinite;t.exports=function(t){return"number"==typeof t&&r(t)}},function(t,e,n){var r=n(124);t.exports=function(t){return r(t)&&t!=+t}},function(t,e){t.exports=function(t){return null===t}},function(t,e,n){var r=n(9),i=n(67),o=n(5),a="[object Object]",u=Function.prototype,c=Object.prototype,s=u.toString,f=c.hasOwnProperty,l=s.call(Object);t.exports=function(t){if(!o(t)||r(t)!=a)return!1;var e=i(t);if(null===e)return!0;var n=f.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==l}},function(t,e,n){var r=n(127)("toLowerCase");t.exports=r},function(t,e,n){var i=n(285);t.exports=function(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&r<=n?t:i(t,e,n)}},function(t,e){t.exports=function(t,e,n){var r=-1,i=t.length;e<0&&(e=i<-e?0:i+e),(n=i<n?i:n)<0&&(n+=i),i=n<e?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}},function(t,e){t.exports=function(t){return t.split("")}},function(t,e){var n="\\ud800-\\udfff",r="["+n+"]",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",a="[^"+n+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+i+"|"+o+")"+"?",f="[\\ufe0e\\ufe0f]?",l=f+s+("(?:\\u200d(?:"+[a,u,c].join("|")+")"+f+s+")*"),h="(?:"+[a+i+"?",i,u,c,r].join("|")+")",p=RegExp(o+"(?="+o+")|"+h+l,"g");t.exports=function(t){return t.match(p)||[]}},function(t,e,n){var r=n(72),i=n(20),o=n(289),a=n(3);t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},function(t,e,n){var a=n(27),u=n(12);t.exports=function(t,r){var i=-1,o=u(t)?Array(t.length):[];return a(t,function(t,e,n){o[++i]=r(t,e,n)}),o}},function(t,e,n){var r=n(130),i=n(291),o=n(20);t.exports=function(t,e){return t&&t.length?r(t,o(e,2),i):void 0}},function(t,e){t.exports=function(t,e){return e<t}},function(t,e,n){var r=n(130),i=n(20),o=n(293);t.exports=function(t,e){return t&&t.length?r(t,i(e,2),o):void 0}},function(t,e){t.exports=function(t,e){return t<e}},function(t,e,n){var r=n(295),i=n(298)(function(t,e){return null==t?{}:r(t,e)});t.exports=i},function(t,e,n){var r=n(296),i=n(118);t.exports=function(n,t){return r(n,t,function(t,e){return i(n,e)})}},function(t,e,n){var c=n(70),s=n(297),f=n(47);t.exports=function(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],u=c(t,a);n(u,a)&&s(o,f(a,t),u)}return o}},function(t,e,n){var l=n(34),h=n(47),p=n(37),v=n(10),g=n(29);t.exports=function(t,e,n,r){if(!v(t))return t;for(var i=-1,o=(e=h(e,t)).length,a=o-1,u=t;null!=u&&++i<o;){var c=g(e[i]),s=n;if(i!=a){var f=u[c];void 0===(s=r?r(f,c,u):void 0)&&(s=v(f)?f:p(e[i+1])?[]:{})}l(u,c,s),u=u[c]}return t}},function(t,e,n){var r=n(119),i=n(95),o=n(96);t.exports=function(t){return o(i(t,void 0,r),t+"")}},function(t,e,n){var o=n(45),a=n(27),u=n(20),c=n(300),s=n(3);t.exports=function(t,e,n){var r=s(t)?o:c,i=arguments.length<3;return r(t,u(e,4),n,i,a)}},function(t,e){t.exports=function(t,r,i,o,e){return e(t,function(t,e,n){i=o?(o=!1,t):r(i,t,e,n)}),i}},function(t,e,n){var r=n(21);t.exports=function(){var t=arguments,e=r(t[0]);return t.length<3?e:e.replace(t[1],t[2])}},function(t,e,n){var r=n(303)("round");t.exports=r},function(t,e,n){var o=n(122),a=n(123),u=n(21),c=Math.min;t.exports=function(t){var i=Math[t];return function(t,e){if(t=a(t),e=null==e?0:c(o(e),292)){var n=(u(t)+"e").split("e"),r=i(n[0]+"e"+(+n[1]+e));return+((n=(u(r)+"e").split("e"))[0]+"e"+(+n[1]-e))}return i(t)}}},function(t,e,n){var r=n(16),i=n(105),o=n(44),a=n(12),u=n(126),c=n(305),s=n(69),f=n(26),l=n(129),h=n(306),p="[object Map]",v="[object Set]",g=r?r.iterator:void 0;t.exports=function(t){if(!t)return[];if(a(t))return u(t)?l(t):i(t);if(g&&t[g])return c(t[g]());var e=o(t);return(e==p?s:e==v?f:h)(t)}},function(t,e){t.exports=function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}},function(t,e,n){var r=n(307),i=n(17);t.exports=function(t){return null==t?[]:r(t,i(t))}},function(t,e,n){var r=n(72);t.exports=function(e,t){return r(t,function(t){return e[t]})}},function(t,e,n){var r=n(120),i=n(94),o=n(131),a=n(313),u=i(function(t){return o(r(t,1,a,!0))});t.exports=u},function(t,e,n){var r=n(121);t.exports=function(t,e){return!(null==t||!t.length)&&-1<r(t,e,0)}},function(t,e){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}},function(t,e,n){var r=n(111),i=n(312),o=n(26),a=r&&1/o(new r([,-0]))[1]==1/0?function(t){return new r(t)}:i;t.exports=a},function(t,e){t.exports=function(){}},function(t,e,n){var r=n(12),i=n(5);t.exports=function(t){return i(t)&&r(t)}},function(t,e,n){var r=n(131);t.exports=function(t){return t&&t.length?r(t):[]}},function(t,e,n){var r=n(316)(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()});t.exports=r},function(t,e,n){var r=n(45),i=n(317),o=n(320),a=RegExp("['’]","g");t.exports=function(e){return function(t){return r(o(i(t).replace(a,"")),e,"")}}},function(t,e,n){var r=n(318),i=n(21),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");t.exports=function(t){return(t=i(t))&&t.replace(o,r).replace(a,"")}},function(t,e,n){var r=n(319)({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","Ĳ":"IJ","ĳ":"ij","Œ":"Oe","œ":"oe","ŉ":"'n","ſ":"s"});t.exports=r},function(t,e){t.exports=function(e){return function(t){return null==e?void 0:e[t]}}},function(t,e,n){var r=n(321),i=n(322),o=n(21),a=n(323);t.exports=function(t,e,n){return t=o(t),void 0===(e=n?void 0:e)?i(t)?a(t):r(t):t.match(e)||[]}},function(t,e){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(t){return t.match(n)||[]}},function(t,e){var n=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;t.exports=function(t){return n.test(t)}},function(t,e){var n="\\ud800-\\udfff",r="\\u2700-\\u27bf",i="a-z\\xdf-\\xf6\\xf8-\\xff",o="A-Z\\xc0-\\xd6\\xd8-\\xde",a="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",u="["+a+"]",c="\\d+",s="["+r+"]",f="["+i+"]",l="[^"+n+a+c+r+i+o+"]",h="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",v="["+o+"]",g="(?:"+f+"|"+l+")",d="(?:"+v+"|"+l+")",y="(?:['’](?:d|ll|m|re|s|t|ve))?",b="(?:['’](?:D|LL|M|RE|S|T|VE))?",m="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",x="[\\ufe0e\\ufe0f]?",j=x+m+("(?:\\u200d(?:"+["[^"+n+"]",h,p].join("|")+")"+x+m+")*"),_="(?:"+[s,h,p].join("|")+")"+j,O=RegExp([v+"?"+f+"+"+y+"(?="+[u,v,"$"].join("|")+")",d+"+"+b+"(?="+[u,v+g,"$"].join("|")+")",v+"?"+g+"+"+y,v+"+"+b,"\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)","\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)",c,_].join("|"),"g");t.exports=function(t){return t.match(O)||[]}},function(t,e,n){var r=n(127)("toUpperCase");t.exports=r},function(t,e,n){var c=n(0),j=n(2),u=j.PathUtil;function o(t,e){var n=function(t){if(c.isEmpty(t))return null;var e=t[0].x,n=t[0].x,r=t[0].y,i=t[0].y;return c.each(t,function(t){e=e>t.x?t.x:e,n=n<t.x?t.x:n,r=r>t.y?t.y:r,i=i<t.y?t.y:i}),{minX:e,maxX:n,minY:r,maxY:i,centerX:(e+n)/2,centerY:(r+i)/2}}(t.points||t.get("origin").points),r=void 0,i=void 0,o=e.startAngle,a=e.endAngle-o;return e.isTransposed?(r=n.maxY*a,i=n.minY*a):(r=n.maxX*a,i=n.minX*a),{startAngle:i+=o,endAngle:r+=o}}function _(t,e,n){var r={};return t.delay&&(r.delay=c.isFunction(t.delay)?t.delay(e,n):t.delay),r.easing=c.isFunction(t.easing)?t.easing(e,n):t.easing,r.duration=c.isFunction(t.duration)?t.duration(e,n):t.duration,r.callback=t.callback,r}function r(t,e){var n=t._id,r=t.get("index"),i=t.getBBox(),o=t.get("origin").points,a=(i.minX+i.maxX)/2,u=void 0,c=[a,u=o[0].y-o[1].y<=0?i.maxY:i.minY,1];t.apply(c),t.attr("transform",[["t",-a,-u],["s",1,.01],["t",a,u]]);var s={transform:[["t",-a,-u],["s",1,100],["t",a,u]]},f=_(e,r,n);t.animate(s,f.duration,f.easing,f.callback,f.delay)}function i(t,e){var n=t._id,r=t.get("index"),i=t.getBBox(),o=t.get("origin").points,a=void 0,u=(i.minY+i.maxY)/2,c=[a=0<o[0].y-o[1].y?i.maxX:i.minX,u,1];t.apply(c),t.attr({transform:[["t",-a,-u],["s",.01,1],["t",a,u]]});var s={transform:[["t",-a,-u],["s",100,1],["t",a,u]]},f=_(e,r,n);t.animate(s,f.duration,f.easing,f.callback,f.delay)}function a(t,e,n){var r=t._id,i=t.get("index"),o=void 0,a=void 0;if(n.isPolar&&"point"!==t.name)o=n.getCenter().x,a=n.getCenter().y;else{var u=t.getBBox();o=(u.minX+u.maxX)/2,a=(u.minY+u.maxY)/2}var c=[o,a,1];t.apply(c),t.attr({transform:[["t",-o,-a],["s",.01,.01],["t",o,a]]});var s={transform:[["t",-o,-a],["s",100,100],["t",o,a]]},f=_(e,i,r);t.animate(s,f.duration,f.easing,f.callback,f.delay)}function s(t,e){if("path"===t.get("type")){var n=t._id,r=t.get("index"),i=u.pathToAbsolute(t.attr("path"));t.attr("path",[i[0]]);var o={path:i},a=_(e,r,n);t.animate(o,a.duration,a.easing,a.callback,a.delay)}}function f(t,e,n,r,i){var o,a,u,c,s,f,l,h,p,v,g=(a=(o=n).start,u=o.end,c=o.getWidth(),s=o.getHeight(),v=p=h=l=f=void 0,o.isPolar?(p=o.getRadius(),h=o.getCenter(),f=o.startAngle,l=o.endAngle,(v=new j.Fan({attrs:{x:h.x,y:h.y,rs:0,re:p+200,startAngle:f,endAngle:f}})).endState={endAngle:l}):(v=new j.Rect({attrs:{x:a.x-200,y:u.y-200,width:o.isTransposed?c+400:0,height:o.isTransposed?0:s+400}}),o.isTransposed?v.endState={height:s+400}:v.endState={width:c+400}),v.isClip=!0,v),d=t.get("canvas"),y=t._id,b=t.get("index"),m=void 0;r?(g.attr("startAngle",r),g.attr("endAngle",r),m={endAngle:i}):m=g.endState,g.set("canvas",d),t.attr("clip",g),t.setSilent("animating",!0);var x=_(e,b,y);g.animate(m,x.duration,x.easing,function(){t&&!t.get("destroyed")&&(t.attr("clip",null),t.setSilent("cacheShape",null),t.setSilent("animating",!1),g.remove())},x.delay)}function l(t,e){var n=t._id,r=t.get("index"),i=c.isNil(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),o=c.isNil(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity");t.attr("fillOpacity",0),t.attr("strokeOpacity",0);var a={fillOpacity:i,strokeOpacity:o},u=_(e,r,n);t.animate(a,u.duration,u.easing,u.callback,u.delay)}function h(t,e,n){var r=o(t,n),i=r.endAngle;f(t,e,n,r.startAngle,i)}t.exports={enter:{clipIn:f,zoomIn:a,pathIn:s,scaleInY:r,scaleInX:i,fanIn:h,fadeIn:l},leave:{lineWidthOut:function(t,e){var n={lineWidth:0,opacity:0},r=t._id,i=_(e,t.get("index"),r);t.animate(n,i.duration,i.easing,function(){t.remove()},i.delay)},zoomOut:function(t,e,n){var r=t._id,i=t.get("index"),o=void 0,a=void 0;if(n.isPolar&&"point"!==t.name)o=n.getCenter().x,a=n.getCenter().y;else{var u=t.getBBox();o=(u.minX+u.maxX)/2,a=(u.minY+u.maxY)/2}var c=[o,a,1];t.apply(c);var s={transform:[["t",-o,-a],["s",.01,.01],["t",o,a]]},f=_(e,i,r);t.animate(s,f.duration,f.easing,function(){t.remove()},f.delay)},pathOut:function(t,e){if("path"===t.get("type")){var n=t._id,r=t.get("index"),i={path:[u.pathToAbsolute(t.attr("path"))[0]]},o=_(e,r,n);t.animate(i,o.duration,o.easing,function(){t.remove()},o.delay)}},fadeOut:function(t,e){var n=t._id,r={fillOpacity:0,strokeOpacity:0},i=_(e,t.get("index"),n);t.animate(r,i.duration,i.easing,function(){t.remove()},i.delay)}},appear:{clipIn:f,zoomIn:a,pathIn:s,scaleInY:r,scaleInX:i,fanIn:h,fadeIn:l},update:{fadeIn:l,fanIn:h}}},function(t,e,n){var l=n(0),i=n(327),r=n(2),a=r.Canvas,u=r.DomUtil,o=n(32),c=n(158),s=n(487),f=n(1);function h(t,e){return l.isEqualWith(t,e,function(t,e){return t===e})}var p=function(r){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,r.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,r),t.prototype.getDefaultCfg=function(){var t=r.prototype.getDefaultCfg.call(this);return l.mix(t,{id:null,forceFit:!1,container:null,wrapperEl:null,canvas:null,width:500,height:500,pixelRatio:null,padding:f.plotCfg.padding,backPlot:null,frontPlot:null,plotBackground:null,background:null,autoPaddingAppend:5,views:[]})},t.prototype.init=function(){this._initCanvas(),this._initPlot(),this._initEvents(),r.prototype.init.call(this);var t=new c.Tooltip({chart:this,options:{}});this.set("tooltipController",t);var e=new c.Legend({chart:this});this.set("legendController",e),this.set("_id","chart"),this.emit("afterinit")},t.prototype._isAutoPadding=function(){var t=this.get("padding");return l.isArray(t)?-1!==t.indexOf("auto"):"auto"===t},t.prototype._getAutoPadding=function(){for(var t,e,n=this.get("padding"),r=this.get("frontPlot").getBBox(),i=this.get("backPlot").getBBox(),o=(t=r,e=i,{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}),a=[0-o.minY,o.maxX-this.get("width"),o.maxY-this.get("height"),0-o.minX],u=l.toAllPadding(n),c=0;c<u.length;c++)if("auto"===u[c]){var s=Math.max(0,a[c]);u[c]=s+this.get("autoPaddingAppend")}return u},t.prototype._initCanvas=function(){var t=this.get("container"),e=this.get("id");!t&&e&&(t=e,this.set("container",e));var n=this.get("width"),r=this.get("height");if(l.isString(t)){if(!(t=document.getElementById(t)))throw new Error("Please specify the container for the chart!");this.set("container",t)}var i=u.createDom('<div style="position:relative;"></div>');t.appendChild(i),this.set("wrapperEl",i),this.get("forceFit")&&(n=u.getWidth(t,n),this.set("width",n));var o=new a({containerDOM:i,width:n,height:r,pixelRatio:this.get("pixelRatio")});this.set("canvas",o)},t.prototype._initPlot=function(){this._initPlotBack();var t=this.get("canvas"),e=t.addGroup({zIndex:1}),n=t.addGroup({zIndex:2}),r=t.addGroup({zIndex:3});this.set("backPlot",e),this.set("middlePlot",n),this.set("frontPlot",r)},t.prototype._initPlotBack=function(){var t=this.get("canvas").addGroup(o.Plot,{padding:this.get("padding"),plotBackground:l.mix({},f.plotBackground,this.get("plotBackground")),background:l.mix({},f.background,this.get("background"))});this.set("plot",t),this.set("plotRange",t.get("plotRange"))},t.prototype._initEvents=function(){this.get("forceFit")&&window.addEventListener("resize",l.wrapBehavior(this,"_initForceFitEvent"))},t.prototype._initForceFitEvent=function(){var t=setTimeout(l.wrapBehavior(this,"forceFit"),200);clearTimeout(this.get("resizeTimer")),this.set("resizeTimer",t)},t.prototype._renderLegends=function(){var t=this.get("options").legends;if(l.isNil(t)||!1!==t){var s=this.get("legendController");if(s.options=t||{},s.plotRange=this.get("plotRange"),t&&t.custom)s.addCustomLegend();else{var e=this.getAllGeoms(),f=[];l.each(e,function(u){var c=u.get("view"),t=u.getAttrsForLegend();l.each(t,function(t){var e,r,i,n=t.type,o=t.getScale(n);if(o.field&&"identity"!==o.type&&(e=f,r=o,i=!1,l.each(e,function(t){var e=[].concat(t.values),n=[].concat(r.values);t.type!==r.type||t.field!==r.field||e.sort().toString()!==n.sort().toString()||(i=!0)}),!i)){f.push(o);var a=c.getFilteredValues(o.field);s.addLegend(o,t,u,a)}})})}s.alignLegends()}},t.prototype._renderTooltips=function(){var t=this.get("options");if(l.isNil(t.tooltip)||!1!==t.tooltip){var e=this.get("tooltipController");e.options=t.tooltip||{},e.renderTooltip()}},t.prototype.getAllGeoms=function(){var e=[];e=e.concat(this.get("geoms"));var t=this.get("views");return l.each(t,function(t){e=e.concat(t.get("geoms"))}),e},t.prototype.forceFit=function(){if(this&&!this.destroyed){var t=this.get("container"),e=this.get("width"),n=u.getWidth(t,e);if(0!==n&&n!==e){var r=this.get("height");this.changeSize(n,r)}return this}},t.prototype.resetPlot=function(){var t=this.get("plot"),e=this.get("padding");h(e,t.get("padding"))||(t.set("padding",e),t.repaint())},t.prototype.changeSize=function(t,e){this.get("canvas").changeSize(t,e);var n=this.get("plot");return this.set("width",t),this.set("height",e),n.repaint(),this.set("keepPadding",!0),this.repaint(),this.set("keepPadding",!1),this.emit("afterchangesize"),this},t.prototype.changeWidth=function(t){return this.changeSize(t,this.get("height"))},t.prototype.changeHeight=function(t){return this.changeSize(this.get("width"),t)},t.prototype.facet=function(t,e){var n=s[l.upperFirst(t)];if(!n)throw new Error("Not support such type of facets as: "+t);var r=this.get("facets");r&&r.destroy(),e.chart=this;var i=new n(e);this.set("facets",i)},t.prototype.view=function(t){(t=t||{}).parent=this,t.backPlot=this.get("backPlot"),t.middlePlot=this.get("middlePlot"),t.frontPlot=this.get("frontPlot"),t.canvas=this.get("canvas"),l.isNil(t.animate)&&(t.animate=this.get("animate")),t.options=l.mix({},this._getSharedOptions(),t.options);var e=new i(t);return e.set("_id","view"+this.get("views").length),this.get("views").push(e),this.emit("addview",{view:e}),e},t.prototype.removeView=function(t){var e=this.get("views");l.Array.remove(e,t),t.destroy()},t.prototype._getSharedOptions=function(){var e=this.get("options"),n={};return l.each(["scales","coord","axes"],function(t){n[t]=l.cloneDeep(e[t])}),n},t.prototype.getViewRegion=function(){var t=this.get("plotRange");return{start:t.bl,end:t.tr}},t.prototype.legend=function(t,e){var n=this.get("options");n.legends||(n.legends={});var r={};return!1===t?n.legends=!1:l.isObject(t)?r=t:l.isString(t)?r[t]=e:r=e,l.mix(n.legends,r),this},t.prototype.tooltip=function(t,e){var n=this.get("options");return n.tooltip||(n.tooltip={}),!1===t?n.tooltip=!1:l.isObject(t)?l.mix(n.tooltip,t):l.mix(n.tooltip,e),this},t.prototype.clear=function(){this.emit("beforeclear");for(var t=this.get("views");0<t.length;){t.shift().destroy()}r.prototype.clear.call(this);var e=this.get("canvas");return this.resetPlot(),e.draw(),this.emit("afterclear"),this},t.prototype.clearInner=function(){var t=this.get("views");l.each(t,function(t){t.clearInner()});var e=this.get("tooltipController");if(e&&e.clear(),!this.get("keepLegend")){var n=this.get("legendController");n&&n.clear()}r.prototype.clearInner.call(this)},t.prototype.drawComponents=function(){r.prototype.drawComponents.call(this),this.get("keepLegend")||this._renderLegends()},t.prototype.render=function(){if(!this.get("keepPadding")&&this._isAutoPadding()){this.beforeRender(),this.drawComponents();var t=this._getAutoPadding(),e=this.get("plot");h(e.get("padding"),t)||(e.set("padding",t),e.repaint())}r.prototype.render.call(this),this._renderTooltips()},t.prototype.repaint=function(){this.get("keepPadding")||this.resetPlot(),r.prototype.repaint.call(this)},t.prototype.changeVisible=function(t){var e=t?"":"none";this.get("wrapperEl").style.display=e},t.prototype.toDataURL=function(){return this.get("canvas").get("el").toDataURL("image/png")},t.prototype.downloadImage=function(t){var e=this.toDataURL(),n=document.createElement("a");n.addEventListener("click",function(){n.download=(t||"chart")+".png",n.href=e.replace("image/png","image/octet-stream")});var r=document.createEvent("MouseEvents");return r.initEvent("click",!1,!1),n.dispatchEvent(r),e},t.prototype.showTooltip=function(t){var e=this.getViewsByPoint(t);e.length&&this.get("tooltipController").showTooltip(t,e);return this},t.prototype.hideTooltip=function(){return this.get("tooltipController").hideTooltip(),this},t.prototype.getTooltipItems=function(o){var t=this.getViewsByPoint(o),n=[];return l.each(t,function(t){var e=t.get("geoms");l.each(e,function(r){var t=r.get("dataArray"),i=[];l.each(t,function(t){var e=r.findPoint(o,t);if(e){var n=r.getTipItems(e);i=i.concat(n)}}),n=n.concat(i)})}),n},t.prototype.destroy=function(){this.emit("beforedestroy"),clearTimeout(this.get("resizeTimer"));var t=this.get("canvas"),e=this.get("wrapperEl");e.parentNode.removeChild(e),r.prototype.destroy.call(this),t.destroy(),window.removeEventListener("resize",l.getWrapBehavior(this,"_initForceFitEvent")),this.emit("afterdestroy")},t}(i);t.exports=p},function(t,e,n){var r=n(73),i=n(329),v=n(0),o=n(158),s=n(1),a=n(486);function u(t,e,n){var r=(t-e)/(n-e);return 0<=r&&r<=1}function c(t,e){var n=!1;if(t)if("theta"===t.type){var r=t.start,i=t.end;n=u(e.x,r.x,i.x)&&u(e.y,r.y,i.y)}else{var o=t.invert(e);n=0<=o.x&&0<=o.y&&o.x<=1&&o.y<=1}return n}var f={};v.each(i,function(n,t){var e=v.lowerFirst(t);f[e]=function(t){var e=new n(t);return this.addGeom(e),e}});var l=function(n){function r(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,n.call(this,t));return v.mix(e,f),e.init(),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,n),r.prototype.getDefaultCfg=function(){return{viewContainer:null,coord:null,start:{x:0,y:0},end:{x:1,y:1},geoms:[],scales:{},options:{},scaleController:null,padding:0,parent:null,tooltipEnable:!0,animate:!0,visible:!0}},r.prototype.init=function(){this._initViewPlot(),this.get("data")&&this._initData(this.get("data")),this._initOptions(),this._initControllers(),this._bindEvents()},r.prototype._initOptions=function(){var e=this,t=v.mix({},e.get("options"));t.scales||(t.scales={}),t.coord||(t.coord={}),!1===t.animate&&this.set("animate",!1),(!1===t.tooltip||v.isNull(t.tooltip))&&this.set("tooltipEnable",!1),t.geoms&&t.geoms.length&&v.each(t.geoms,function(t){e._createGeom(t)});var n=e.get("scaleController");n&&(n.defs=t.scales);var r=e.get("coordController");r&&r.reset(t.coord),this.set("options",t)},r.prototype._createGeom=function(t){var e=t.type,r=void 0;this[e]&&(r=this[e](),v.each(t,function(t,e){if(r[e])if(v.isObject(t)&&t.field)if("label"===t)r[e](t.field,t.callback,t.cfg);else{var n=void 0;v.each(t,function(t,e){"field"!==e&&(n=t)}),r[e](t.field,n)}else r[e](t)}))},r.prototype._initControllers=function(){var t=this.get("options"),e=new o.Scale({defs:t.scales}),n=new o.Coord(t.coord);this.set("scaleController",e),this.set("coordController",n);var r=new o.Axis;this.set("axisController",r);var i=new o.Guide({options:t.guides||[]});this.set("guideController",i)},r.prototype._initViewPlot=function(){this.get("viewContainer")||this.set("viewContainer",this.get("middlePlot"))},r.prototype._initGeoms=function(){for(var t=this.get("geoms"),e=this.get("filteredData"),n=this.get("coord"),r=this.get("_id"),i=0;i<t.length;i++){var o=t[i];o.set("data",e),o.set("coord",n),o.set("_id",r+"-geom"+i),o.set("keyFields",this.get("keyFields")),o.init()}},r.prototype._clearGeoms=function(){for(var t=this.get("geoms"),e=0;e<t.length;e++){t[e].clear()}},r.prototype._removeGeoms=function(){for(var t=this.get("geoms");0<t.length;){t.shift().destroy()}},r.prototype._drawGeoms=function(){for(var t=this.get("geoms"),e=this.get("coord"),n=0;n<t.length;n++){var r=t[n];r.setCoord(e),r.paint()}},r.prototype.isShapeInView=function(t){var e=this.get("_id"),n=t._id;return n?n.split("-")[0]===e:t.get("parent").get("viewId")===e},r.prototype.getViewRegion=function(){var t=this.get("parent"),e=void 0,n=void 0;if(t){var r=t.getViewRegion(),i=this._getViewRegion(r.start,r.end);e=i.start,n=i.end}else e=this.get("start"),n=this.get("end");return{start:e,end:n}},r.prototype._getViewRegion=function(t,e){var n=this.get("start"),r=this.get("end"),i=n.x,o=1-r.y,a=r.x,u=1-n.y,c=this.get("padding"),s=v.toAllPadding(c),f=s[0],l=s[1],h=s[2],p=s[3];return{start:{x:i*(e.x-t.x)+t.x+p,y:o*(e.y-t.y)+t.y-h},end:{x:a*(e.x-t.x)+t.x-l,y:u*(e.y-t.y)+t.y+f}}},r.prototype._createCoord=function(){var t=this.get("coordController"),e=this.getViewRegion(),n=t.createCoord(e.start,e.end);this.set("coord",n)},r.prototype._renderAxes=function(){var t=this.get("options").axes;if(!1!==t){var e=this.get("axisController");e.container=this.get("backPlot"),e.coord=this.get("coord"),e.options=t||{};var n=this.getXScale(),r=this.getYScales(),i=this.get("_id");e.createAxis(n,r,i)}},r.prototype._renderGuides=function(){var t=this.get("guideController");if(!v.isEmpty(t.options)){var e=this.get("coord");t.backContainer=this.get("backPlot"),t.frontContainer=this.get("frontPlot"),t.xScales=this._getScales("x"),t.yScales=this._getScales("y"),t.render(e)}},r.prototype._bindEvents=function(){var t=new o.Event({view:this,canvas:this.get("canvas")});t.bindEvents(),this.set("eventController",t)},r.prototype._clearEvents=function(){var t=this.get("eventController");t&&t.clearEvents()},r.prototype._getScales=function(t){for(var e=this.get("geoms"),n={},r=0;r<e.length;r++){var i=e[r],o="x"===t?i.getXScale():i.getYScale();o&&!n[o.field]&&(n[o.field]=o)}return n},r.prototype._adjustScale=function(){this._setCatScalesRange();for(var t=this.get("geoms"),e=this.get("scaleController").defs,n=0;n<t.length;n++){var r=t[n];if("interval"===r.get("type")){var i=r.getYScale(),o=i.field;e[o]&&e[o].min||!(0<i.min)||"time"===i.type||i.change({min:0})}}},r.prototype._setCatScalesRange=function(){var i=this.get("coord"),t=this.getXScale(),e=this.getYScales(),n=[];t&&n.push(t),n=n.concat(e);var r,o,a,u=i.isPolar&&(o=(r=i).startAngle,a=r.endAngle,!(!v.isNil(o)&&!v.isNil(a)&&a-o<2*Math.PI)),c=this.get("scaleController").defs;v.each(n,function(t){if((t.isCategory||t.isIdentity)&&t.values&&(!c[t.field]||!c[t.field].range)){var e=t.values.length,n=void 0;if(1===e)n=[.5,1];else{var r=0;n=u?i.isTransposed?[(r=1/e*s.widthRatio.multiplePie)/2,1-r/2]:[0,1-1/e]:[r=1/e*1/2,1-r]}t.range=n}})},r.prototype.getXScale=function(){var t=this.get("geoms"),e=null;return v.isEmpty(t)||(e=t[0].getXScale()),e},r.prototype.getYScales=function(){for(var t=this.get("geoms"),e=[],n=0;n<t.length;n++){var r=t[n].getYScale();r&&-1===v.indexOf(e,r)&&e.push(r)}return e},r.prototype.getXY=function(t){var e=this.get("coord"),n=this._getScales("x"),r=this._getScales("y"),i=void 0,o=void 0;for(var a in t)n[a]&&(i=n[a].scale(t[a])),r[a]&&(o=r[a].scale(t[a]));return v.isNil(i)||v.isNil(o)?null:e.convert({x:i,y:o})},r.prototype.getSnapRecords=function(r){var t=this.get("geoms"),i=[];return v.each(t,function(e){var t=e.get("dataArray"),n=void 0;v.each(t,function(t){(n=e.findPoint(r,t))&&i.push(n)})}),i},r.prototype.addGeom=function(t){this.get("geoms").push(t),t.set("view",this);var e=this.get("viewContainer");t.set("container",e),t.set("animate",this.get("animate")),t.bindEvents()},r.prototype.removeGeom=function(t){var e=this.get("geoms");v.Array.remove(e,t),t.destroy()},r.prototype.createScale=function(t,e){var n=this.get("scales"),r=this.get("parent"),i=n[t];if(!e){var o=this.get("filteredData"),a=this._getFieldsForLegend();e=o.length&&-1===a.indexOf(t)?o:this.get("data")}var u=this.get("scaleController");if(i){if(i.sync){var c=u.createScale(t,e);this._syncScale(i,c)}}else{if((i=u.createScale(t,e)).sync&&r){var s=r.createScale(t,e);i=this._getSyncScale(s,i)}n[t]=i}return i},r.prototype._getFieldsForLegend=function(){var n=[],t=this.get("geoms");return v.each(t,function(t){var e=t.getFieldsForLegend();n=n.concat(e)}),v.uniq(n)},r.prototype._getSyncScale=function(t,e){return t.type!==e.type?e:(this._syncScale(t,e),t)},r.prototype._syncScale=function(t,e){var n=v.union(t.values,e.values);if(e.isLinear){var r=Math.max(t.max,e.max),i=Math.min(t.min,e.min);t.max===r&&t.min===i||t.change({min:i,max:r,values:n})}n.length!==t.values.length&&t.change({values:n})},r.prototype.getFilteredValues=function(t){var e=this.get("scales")[t].values,n=this._getFilters();return n&&n[t]?e.filter(n[t]):e.slice(0)},r.prototype.filter=function(t,e){var n=this.get("options");n.filters||(n.filters={}),n.filters[t]=e},r.prototype._getFilters=function(){return this.get("options").filters},r.prototype.execFilter=function(t){var e=this._getFilters();return e&&(t=t.filter(function(n){var r=!0;return v.each(e,function(t,e){if(t&&!(r=t(n[e],n)))return!1}),r})),t},r.prototype.axis=function(t,e){var n=this.get("options");!1===t?n.axes=!1:(n.axes||(n.axes={}),n.axes[t]=e);return this},r.prototype.guide=function(){return this.get("guideController")},r.prototype._getKeyFields=function(t){var n=[];v.each(t,function(t,e){t.key&&n.push(e)}),this.set("keyFields",n)},r.prototype.scale=function(t,e){var n=this.get("options").scales;return v.isObject(t)?v.mix(n,t):n[t]=e,this._getKeyFields(n),this},r.prototype.tooltip=function(t){return this.set("tooltipEnable",t),this},r.prototype.animate=function(t){return this.get("options").animate=t,this.set("animate",t),this},r.prototype.changeOptions=function(t){return this.set("options",t),this._initOptions(t),this},r.prototype.getViewsByPoint=function(e){var n=[],t=this.get("views");return c(this.get("coord"),e)&&n.push(this),v.each(t,function(t){t.get("visible")&&c(t.get("coord"),e)&&n.push(t)}),n},r.prototype.eachShape=function(o){var a=this,t=a.get("views"),e=a.get("canvas");v.each(t,function(t){t.eachShape(o)});var n=this.get("geoms");return v.each(n,function(i){var t=i.getShapes();v.each(t,function(t){var e=t.get("origin");if(v.isArray(e)){var n=e.map(function(t){return t._origin});o(n,t,i,a)}else{var r=e._origin;o(r,t,i,a)}})}),e.draw(),this},r.prototype.filterShape=function(i){return this.eachShape(function(t,e,n,r){i(t,e,n,r)?e.set("visible",!0):e.set("visible",!1)}),this},r.prototype.clearInner=function(){this.set("scales",{}),this.get("options").geoms=null,this._clearGeoms(),this.get("guideController")&&this.get("guideController").reset(),this.get("axisController")&&this.get("axisController").clear()},r.prototype.clear=function(){return this.get("options").filters=null,this._removeGeoms(),this.clearInner(),this.get("guideController")&&this.get("guideController").clear(),this.set("isUpdate",!1),this.set("keyFields",[]),this},r.prototype.coord=function(t,e){var n=this.get("coordController");return n.reset({type:t,cfg:e}),n},r.prototype.resetCoord=function(){this._createCoord()},r.prototype.source=function(t,e){return this._initData(t),e&&this.scale(e),this.emit("setdata"),this},r.prototype.changeData=function(t){return this.emit("beforechangedata"),this._initData(t),this.emit("afterchangedata"),this.repaint(),this},r.prototype._initData=function(t){var e=this.get("dataView");e&&(e.off("change",v.getWrapBehavior(this,"_onViewChange")),this.set("dataView",null)),t&&t.isDataView&&(t.on("change",v.wrapBehavior(this,"_onViewChange")),this.set("dataView",t),t=t.rows),this.set("data",t)},r.prototype._onViewChange=function(){this.emit("beforechangedata");var t=this.get("dataView").rows;this.set("data",t),this.emit("afterchangedata"),this.repaint()},r.prototype.beforeRender=function(){var t=this.get("views");v.each(t,function(t){t.beforeRender()}),this.initView()},r.prototype.drawComponents=function(){var t=this.get("views");v.each(t,function(t){t.drawComponents()}),this._renderGuides(),this._renderAxes()},r.prototype.drawCanvas=function(t){if(!t){var e=this.get("views");this.get("backPlot").sort();var n=this.get("canvas");if(this.get("animate")){var r=this.get("isUpdate");v.each(e,function(t){a.execAnimation(t,r)}),a.execAnimation(this,r)}else n.draw()}},r.prototype.render=function(t){return this.clearInner(),this.emit("beforerender"),this.beforeRender(),this.emit("beforepaint"),this.drawComponents(),this.paint(),this.emit("afterpaint"),this.drawCanvas(t),this.emit("afterrender"),this.set("rendered",!0),this},r.prototype.initView=function(){var t=this.get("data")||[],e=this.execFilter(t);this.set("filteredData",e),this._createCoord(),this._initGeoms(),this._adjustScale()},r.prototype.paint=function(){var t=this.get("views");v.each(t,function(t){t.paint()});var e=this.get("data");v.isEmpty(e)||this._drawGeoms(),this.get("visible")||this.changeVisible(!1,!0)},r.prototype.changeVisible=function(e,t){var n=this.get("geoms");(v.each(n,function(t){t.get("visible")&&t.changeVisible(e,!0)}),this.get("axisController")&&this.get("axisController").changeVisible(e),this.get("guideController")&&this.get("guideController").changeVisible(e),t)||this.get("canvas").draw()},r.prototype.repaint=function(){this.set("isUpdate",!0),this.clearInner(),this.render()},r.prototype.destroy=function(){this._clearEvents();var t=this.get("dataView");t&&t.off("change",v.getWrapBehavior(this,"_onViewChange")),this.clear(),n.prototype.destroy.call(this)},r}(r);t.exports=l},function(a,t,u){var c,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t){"use strict";function e(){}var n=e.prototype,r=t.EventEmitter;function o(t,e){for(var n=t.length;n--;)if(t[n].listener===e)return n;return-1}function i(t){return function(){return this[t].apply(this,arguments)}}n.getListeners=function(t){var e,n,r=this._getEvents();if(t instanceof RegExp)for(n in e={},r)r.hasOwnProperty(n)&&t.test(n)&&(e[n]=r[n]);else e=r[t]||(r[t]=[]);return e},n.flattenListeners=function(t){var e,n=[];for(e=0;e<t.length;e+=1)n.push(t[e].listener);return n},n.getListenersAsObject=function(t){var e,n=this.getListeners(t);return n instanceof Array&&((e={})[t]=n),e||n},n.addListener=function(t,e){if(!function t(e){return"function"==typeof e||e instanceof RegExp||!(!e||"object"!==(void 0===e?"undefined":s(e)))&&t(e.listener)}(e))throw new TypeError("listener must be a function");var n,r=this.getListenersAsObject(t),i="object"===(void 0===e?"undefined":s(e));for(n in r)r.hasOwnProperty(n)&&-1===o(r[n],e)&&r[n].push(i?e:{listener:e,once:!1});return this},n.on=i("addListener"),n.addOnceListener=function(t,e){return this.addListener(t,{listener:e,once:!0})},n.once=i("addOnceListener"),n.defineEvent=function(t){return this.getListeners(t),this},n.defineEvents=function(t){for(var e=0;e<t.length;e+=1)this.defineEvent(t[e]);return this},n.removeListener=function(t,e){var n,r,i=this.getListenersAsObject(t);for(r in i)i.hasOwnProperty(r)&&-1!==(n=o(i[r],e))&&i[r].splice(n,1);return this},n.off=i("removeListener"),n.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},n.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},n.manipulateListeners=function(t,e,n){var r,i,o=t?this.removeListener:this.addListener,a=t?this.removeListeners:this.addListeners;if("object"!==(void 0===e?"undefined":s(e))||e instanceof RegExp)for(r=n.length;r--;)o.call(this,e,n[r]);else for(r in e)e.hasOwnProperty(r)&&(i=e[r])&&("function"==typeof i?o.call(this,r,i):a.call(this,r,i));return this},n.removeEvent=function(t){var e,n=void 0===t?"undefined":s(t),r=this._getEvents();if("string"===n)delete r[t];else if(t instanceof RegExp)for(e in r)r.hasOwnProperty(e)&&t.test(e)&&delete r[e];else delete this._events;return this},n.removeAllListeners=i("removeEvent"),n.emitEvent=function(t,e){var n,r,i,o,a=this.getListenersAsObject(t);for(o in a)if(a.hasOwnProperty(o))for(n=a[o].slice(0),i=0;i<n.length;i++)!0===(r=n[i]).once&&this.removeListener(t,r.listener),r.listener.apply(this,e||[])===this._getOnceReturnValue()&&this.removeListener(t,r.listener);return this},n.trigger=i("emitEvent"),n.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},n.setOnceReturnValue=function(t){return this._onceReturnValue=t,this},n._getOnceReturnValue=function(){return!this.hasOwnProperty("_onceReturnValue")||this._onceReturnValue},n._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return t.EventEmitter=r,e},void 0===(c=function(){return e}.call(t,u,t,a))||(a.exports=c)}(this||{})},function(t,e,n){var r=n(11);r.Point=n(357),r.PointJitter=r.Point.Jitter,r.PointStack=r.Point.Stack,r.Path=n(137),r.Line=n(358),r.LineStack=r.Line.Stack,r.Interval=n(359),r.IntervalStack=r.Interval.Stack,r.IntervalDodge=r.Interval.Dodge,r.IntervalSymmetric=r.Interval.Symmetric,r.Area=n(360),r.AreaStack=r.Area.Stack,r.Polygon=n(361),r.Schema=n(362),r.SchemaDodge=r.Schema.Dodge,r.Edge=n(363),r.Heatmap=n(364),r.Venn=n(365),t.exports=r},function(t,e,n){var i=n(74),r=n(22),o=n(0),a=function(n){function r(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,n.call(this,t));return e.names=["color"],e.type="color",e.gradient=null,o.isString(e.values)&&(e.linear=!0),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,n),r.prototype.getLinearValue=function(t){var e=this.gradient;if(!e){var n=this.values;e=i.gradient(n),this.gradient=e}return e(t)},r}(r);t.exports=a},function(t,e,n){var r=function(n){function r(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,n.call(this,t));return e.names=["size"],e.type="size",e.gradient=null,e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,n),r}(n(22));t.exports=r},function(t,e,n){var r=function(n){function r(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,n.call(this,t));return e.names=["opacity"],e.type="opacity",e.gradient=null,e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,n),r}(n(22));t.exports=r},function(t,e,n){var r=function(n){function r(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,n.call(this,t));return e.names=["shape"],e.type="shape",e.gradient=null,e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,n),r.prototype.getLinearValue=function(t){var e=this.values;return e[Math.round((e.length-1)*t)]},r}(n(22));t.exports=r},function(t,e,n){var h=n(0),r=function(n){function r(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,n.call(this,t));return e.names=["x","y"],e.type="position",e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,n),r.prototype.mapping=function(e,n){var t=this.scales,r=this.coord,i=t[0],o=t[1],a=void 0,u=void 0,c=void 0;if(h.isNil(e)||h.isNil(n))return[];if(h.isArray(n)&&h.isArray(e)){a=[],u=[];for(var s=0,f=0;s<e.length&&f<n.length;s++,f++)c=r.convertPoint({x:i.scale(e[s]),y:o.scale(n[f])}),a.push(c.x),u.push(c.y)}else if(h.isArray(n))e=i.scale(e),u=[],h.each(n,function(t){t=o.scale(t),c=r.convertPoint({x:e,y:t}),a&&a!==c.x?(h.isArray(a)||(a=[a]),a.push(c.x)):a=c.x,u.push(c.y)});else if(h.isArray(e))n=o.scale(n),a=[],h.each(e,function(t){t=i.scale(t),c=r.convertPoint({x:t,y:n}),u&&u!==c.y?(h.isArray(u)||(u=[u]),u.push(c.y)):u=c.y,a.push(c.x)});else{e=i.scale(e),n=o.scale(n);var l=r.convertPoint({x:e,y:n});a=l.x,u=l.y}return[a,u]},r}(n(22));t.exports=r},function(t,e,n){var r={default:n(133),dark:n(336)};t.exports=r},function(t,e,n){var r,i,o=n(0),a=n(133),u=o.deepMix({},a,{background:{fill:"#1F1F1F",radius:2},plotBackground:{fill:"#1F1F1F"},axis:{top:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"}},bottom:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"}},left:{label:{textStyle:{fill:"#A6A6A6"}},grid:{lineStyle:{stroke:"#404040"}}},right:{label:{textStyle:{fill:"#A6A6A6"}},grid:{lineStyle:{stroke:"#404040"}}},circle:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"},grid:{lineStyle:{stroke:"#404040"}}},radius:{label:{textStyle:{fill:"#A6A6A6"}},line:{stroke:"#737373"},tickLine:{stroke:"#737373"},grid:{lineStyle:{stroke:"#404040"}}},helix:{line:{stroke:"#737373"},tickLine:{stroke:"#737373"}}},label:{textStyle:{fill:"#A6A6A6"}},legend:{right:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},left:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},top:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},bottom:{textStyle:{fill:"#737373"},unCheckColor:"#bfbfbf"},html:(r={},r["g2-legend"]={color:"#D9D9D9"},r),gradient:{textStyle:{fill:"#D9D9D9"},lineStyle:{stroke:"#404040"}}},tooltip:(i={},i["g2-tooltip"]={color:"#D9D9D9"},i),tooltipCrosshairsRect:{type:"rect",style:{fill:"#fff",opacity:.1}},tooltipCrosshairsLine:{style:{stroke:"rgba(255, 255, 255, 0.45)"}},guide:{line:{text:{style:{fill:"#A6A6A6"}}},text:{style:{fill:"#A6A6A6"}},region:{style:{lineWidth:0,fill:"#000",fillOpacity:.04}}}});t.exports=u},function(t,e,n){var r=n(30);r.Stack=n(338),r.Jitter=n(339),r.Symmetric=n(340),r.Dodge=n(341),t.exports=r},function(t,e,n){var p=n(0),r=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return p.assign(t,{height:null,size:10,reverseOrder:!1,adjustNames:["y"]})},t.prototype.processOneDimStack=function(t){var e=this.xField,n=this.yField||"y",r=this.height,i={};this.reverseOrder&&(t=t.slice(0).reverse());for(var o=0;o<t.length;o++)for(var a=t[o],u=0;u<a.length;u++){var c=a[u],s=2*(c.size||this.size)/r,f=c[e];i[f]||(i[f]=s/2),c[n]=i[f],i[f]+=s}},t.prototype.processAdjust=function(t){this.yField?this.processStack(t):this.processOneDimStack(t)},t.prototype.processStack=function(t){var e=this.xField,n=this.yField,r=t.length,i={positive:{},negative:{}};this.reverseOrder&&(t=t.slice(0).reverse());for(var o=0;o<r;o++)for(var a=t[o],u=0;u<a.length;u++){var c=a[u],s=c[e]||0,f=c[n]||0,l=s.toString(),h=0<=(f=p.isArray(f)?f[1]:f)?"positive":"negative";i[h][l]||(i[h][l]=0),c[n]=[i[h][l],f+i[h][l]],i[h][l]+=f}},t}(n(30));t.exports=r},function(t,e,n){var a=n(0),r=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getAdjustOffset=function(t,e){var n=e-t;return t+.05*n+.9*n*Math.random()},e.prototype._adjustGroup=function(t,e,n,r){var i=this,o=i.getAdjustRange(e,n,r);a.each(t,function(t){t[e]=i.getAdjustOffset(o.pre,o.next)})},e.prototype.adjustDim=function(n,r,t){var i=this,e=i.groupData(t,n);a.each(e,function(t,e){e=parseFloat(e),i._adjustGroup(t,n,e,r)})},e}(n(30));t.exports=r},function(t,e,n){var f=n(0),r=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return f.assign(t,{cacheMax:null,adjustNames:["y"]})},t.prototype._getMax=function(n){var t=this.mergeData,e=f.maxBy(t,function(t){var e=t[n];return f.isArray(e)?Math.max.apply(null,e):e})[n];return f.isArray(e)?Math.max.apply(null,e):e},t.prototype._getXValuesMax=function(){var i=this.yField,o=this.xField,a={},t=this.mergeData;return f.each(t,function(t){var e=t[o],n=t[i],r=f.isArray(n)?Math.max.apply(null,n):n;a[e]=a[e]||0,a[e]<r&&(a[e]=r)}),a},t.prototype.processAdjust=function(t){var e=f.Array.merge(t);this.mergeData=e,this._processSymmetric(t),this.mergeData=null},t.prototype._processSymmetric=function(t){var a=this.xField,u=this.yField,c=this._getMax(u),e=t[0][0],s=void 0;e&&f.isArray(e[u])&&(s=this._getXValuesMax()),f.each(t,function(t){f.each(t,function(t){var e=t[u],n=void 0;if(f.isArray(e)){var r=t[a],i=s[r];n=(c-i)/2;var o=[];f.each(e,function(t){o.push(n+t)}),t[u]=o}else n=(c-e)/2,t[u]=[n,e+n]})})},t}(n(30));t.exports=r},function(t,e,n){var s=n(0),r=n(30),i=n(1),o=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return s.assign(t,{marginRatio:.5,dodgeRatio:i.widthRatio.column,dodgeBy:null})},t.prototype.processAdjust=function(t){var e=s.Array.merge(t),n=this.dodgeBy,r=t;n&&(r=s.Array.group(e,n)),this.cacheMap={},this.adjDataArray=r,this.mergeData=e,this.adjustData(r,e),this.adjDataArray=null,this.mergeData=null},t.prototype.getDistribution=function(r){var t=this.adjDataArray,e=this.cacheMap,i=e[r];return i||(i={},s.each(t,function(t,e){var n=s.Array.values(t,r);n.length||n.push(0),s.each(n,function(t){i[t]||(i[t]=[]),i[t].push(e)})}),e[r]=i),i},t.prototype.adjustDim=function(o,n,t,e,a){var u=this,c=u.getDistribution(o),r=u.groupData(t,o);s.each(r,function(t,e){e=parseFloat(e);var i=void 0;i=1===n.length?{pre:n[0]-1,next:n[0]+1}:u.getAdjustRange(o,e,n),s.each(t,function(t){var e=t[o],n=c[e],r=n.indexOf(a);t[o]=u.getDodgeOffset(i,r,n.length)})})},t.prototype.getDodgeOffset=function(t,e,n){var r=t.pre,i=t.next,o=i-r,a=o*this.dodgeRatio/n,u=this.marginRatio*a;return(r+i)/2+(.5*(o-n*a-(n-1)*u)+((e+1)*a+e*u)-.5*a-.5*o)},t}(r);t.exports=o},function(t,e,n){var r=n(134),i=n(136),o=n(345),a={getLabelsClass:function(t){var e=r;return"polar"===t?e=i:"theta"===t&&(e=o),e}};t.exports=a},function(t,e,n){var r=n(0),i=n(135);t.exports={renderLabels:function(){var t=this.get("label");if(!r.isNil(t)){r.isNil(t.items)&&(t.items=[]);var e=this.addGroup(i,t);this.set("labelsGroup",e)}},resetLabels:function(t){var i=this,e=i.get("label");if(e){var o=i.get("labelsGroup"),a=o.getLabels(),u=a.length;t=t||e.items,r.each(t,function(t,e){if(e<u){var n=a[e];o.changeLabel(n,t)}else{var r=i.addLabel(t.text,t);r&&(r._id=t._id,r.set("coord",t.coord))}});for(var n=u-1;n>=t.length;n--)a[n].remove()}},addLabel:function(t,e){var n=this.get("labelsGroup"),r={},i=void 0;return n&&(r.text=t,r.x=e.x,r.y=e.y,r.point=e,r.textAlign=e.textAlign,e.rotate&&(r.rotate=e.rotate),i=n.addLabel(r)),i},removeLabels:function(){var t=this.get("labelsGroup");t&&t.remove(),this.set("labelsGroup",null)}}},function(t,e,n){var w=n(2).MatrixUtil.vec2;t.exports={catmullRom2bezier:function(t,e,n){for(var r=!!e,i=[],o=0,a=t.length;o<a;o+=2)i.push([t[o],t[o+1]]);for(var u=function(t,e,n,r){var i=[],o=void 0,a=void 0,u=!!r,c=void 0,s=void 0;if(u){c=[1/0,1/0],s=[-1/0,-1/0];for(var f=0,l=t.length;f<l;f++){var h=t[f];c=w.min([],c,h),s=w.max([],s,h)}c=w.min([],c,r[0]),s=w.max([],s,r[1])}for(var p=0,v=t.length;p<v;p++){var g=t[p];if(n)o=t[p?p-1:v-1],a=t[(p+1)%v];else{if(0===p||p===v-1){i.push(g);continue}o=t[p-1],a=t[p+1]}var d=[];d=w.sub(d,a,o),d=w.scale(d,d,e);var y=w.distance(g,o),b=w.distance(g,a),m=y+b;0!==m&&(y/=m,b/=m);var x=w.scale([],d,-y),j=w.scale([],d,b),_=w.add([],g,x),O=w.add([],g,j);u&&(_=w.max([],_,c),_=w.min([],_,s),O=w.max([],O,c),O=w.min([],O,s)),i.push(_),i.push(O)}return n&&i.push(i.shift()),i}(i,.4,r,n),c=i.length,s=[],f=void 0,l=void 0,h=void 0,p=0;p<c-1;p++)f=u[2*p],l=u[2*p+1],h=i[p+1],s.push(["C",f[0],f[1],l[0],l[1],h[0],h[1]]);return r&&(f=u[c],l=u[c+1],h=i[0],s.push(["C",f[0],f[1],l[0],l[1],h[0],h[1]])),s}}},function(t,e,n){var l=n(0),r=n(136),u=n(18),i=n(1);function h(t,e,n){return{x:t.x+n*Math.cos(e),y:t.y+n*Math.sin(e)}}var o=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){return{label:i.thetaLabels}},e.prototype.getDefaultOffset=function(){return this.get("label").offset||0},e.prototype.adjustItems=function(t){var e=this.getDefaultOffset();return 0<e&&(t=this._distribute(t,e)),t},e.prototype._distribute=function(t,e){var n=this.get("coord"),r=n.getRadius(),i=this.get("label").labelHeight,o=n.getCenter(),a=2*(r+e)+2*i,u={start:n.start,end:n.end},c=this.get("geom");if(c){var s=c.get("view");u=s.getViewRegion()}var f=[[],[]];return t.forEach(function(t){"right"===t.textAlign?f[0].push(t):f[1].push(t)}),f.forEach(function(t,e){var n=parseInt(a/i,10);t.length>n&&(t.sort(function(t,e){return e["..percent"]-t["..percent"]}),t.splice(n,t.length-n)),t.sort(function(t,e){return t.y-e.y}),function(n,r,t,i,o){var e=!0,a=t.start,u=t.end,c=Math.min(a.y,u.y),s=Math.abs(a.y-u.y),f=void 0,l=0,h=Number.MIN_VALUE,p=n.map(function(t){return t.y>l&&(l=t.y),t.y<h&&(h=t.y),{size:r,targets:[t.y-c]}});for(h-=c,s<l-c&&(s=l-c);e;)for(p.forEach(function(t){var e=(Math.min.apply(h,t.targets)+Math.max.apply(h,t.targets))/2;t.pos=Math.min(Math.max(h,e-t.size/2),s-t.size)}),e=!1,f=p.length;f--;)if(0<f){var v=p[f-1],g=p[f];v.pos+v.size>g.pos&&(v.size+=g.size,v.targets=v.targets.concat(g.targets),v.pos+v.size>s&&(v.pos=s-v.size),p.splice(f,1),e=!0)}f=0,p.forEach(function(t){var e=c+r/2;t.targets.forEach(function(){n[f].y=t.pos+e,e+=r,f++})}),n.forEach(function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-i.y),2);if(e<n)t.x=i.x;else{var r=Math.sqrt(e-n);t.x=o?i.x+r:i.x-r}})}(t,i,u,o,e)}),f[0].concat(f[1])},e.prototype.lineToLabel=function(t,e){var n=this.get("coord"),r=n.getRadius(),i=this.getDefaultOffset(),o=t.orignAngle||t.angle,a=n.getCenter(),u=h(a,o,r+2.5),c=h(a,o,r+i/2),s=this.get("lineGroup");s||(s=this.addGroup({elCls:"x-line-group"}),this.set("lineGroup",s));var f=s.addShape("path",{attrs:l.mix({path:["M"+u.x,u.y+" Q"+c.x,c.y+" "+t.x,t.y].join(","),fill:null,stroke:t.color},e)});f.name="labelLine",f._id=t._id&&t._id.replace("glabel","glabelline"),f.set("coord",n)},e.prototype.getLabelRotate=function(t,e){var n=void 0;return e<0&&(90<(n=180*t/Math.PI)&&(n-=180),n<-90&&(n+=180)),n/180*Math.PI},e.prototype.getLabelAlign=function(t){var e=this.get("coord").getCenter(),n=void 0;return n=t.angle<=Math.PI/2&&t.x>=e.x?"left":"right",this.getDefaultOffset()<=0&&(n="right"===n?"left":"right"),n},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e=this.get("coord"),n={x:l.isArray(t.x)?t.x[0]:t.x,y:t.y[0]};this.transLabelPoint(n);var r={x:l.isArray(t.x)?t.x[1]:t.x,y:t.y[1]};this.transLabelPoint(r);var i=void 0,o=u.getPointAngle(e,n);if(t.points&&t.points[0].y===t.points[1].y)i=o;else{var a=u.getPointAngle(e,r);a<=o&&(a+=2*Math.PI),i=o+(a-o)/2}return i},e.prototype.getCirclePoint=function(t,e){var n=this.get("coord"),r=n.getCenter(),i=n.getRadius()+e,o=h(r,t,i);return o.angle=t,o.r=i,o},e}(r);t.exports=o},function(t,e,n){var s=n(0),r=n(13),f=n(18),c=n(1);function i(t){var e=c.shape.hollowArea;return s.mix({},e,{stroke:t.color,lineWidth:t.size,strokeOpacity:t.opacity},t.style)}function o(t){var e=c.shape.area;return s.mix({},e,{fill:t.color,stroke:t.color,lineWidth:t.size,fillOpacity:t.opacity},t.style)}function a(i,o,a){var u=[],t=[],e=[],n=[],c=i.isInCircle;return s.each(i.points,function(t){e.push(t[1]),n.push(t[0])}),c||(n=n.reverse()),t.push(e,n),s.each(t,function(t,e){var n=[],r=(t=a.parsePoints(t))[0];c&&t.push({x:r.x,y:r.y}),n=o?f.getSplinePath(t,!1,i.constraint):f.getLinePath(t,!1),!c&&0<e&&(n[0][0]="L"),u=u.concat(n)}),u.push(["Z"]),u}function u(t){return{symbol:function(t,e,n,r){r.save(),r.lineWidth=2,r.strokeStyle=r.fillStyle,r.moveTo(t-5.5,e-4),r.lineTo(t+5.5,e-4),r.stroke(),r.restore(),r.moveTo(t-5.5,e-4),r.lineTo(t+5.5,e-4),r.lineTo(t+5.5,e+4),r.lineTo(t-5.5,e+4),r.closePath()},radius:5,fill:t.color,fillOpacity:.3}}var l=r.registerFactory("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=[],n=t.x,r=t.y,i=t.y0;return r=s.isArray(r)?r:[i,r],s.each(r,function(t){e.push({x:n,y:t})}),e},getActiveCfg:function(t,e){return function(t,e){if("line"===t||"smoothLine"===t)return{lineWidth:(e.lineWidth||0)+1};var n=e.fillOpacity||e.opacity||1;return{fillOpacity:n-.15,strokeOpacity:n-.15}}(t,e)},drawShape:function(t,e,n){var r,i,o,a=this.getShape(t),u=void 0;return 1===e.points.length&&c.showSinglePoint?(r=e,i=n,o=this._coord.convertPoint(r.points[0][1]),u=i.addShape("circle",{attrs:s.mix({x:o.x,y:o.y,r:2,fill:r.color},r.style)})):u=a.draw(e,n),u&&(u.set("origin",e.origin),u._id=e.splitedIndex?e._id+e.splitedIndex:e._id,u.name=this.name),u},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});r.registerShape("area","area",{draw:function(t,e){var n=o(t),r=a(t,!1,this);return e.addShape("path",{attrs:s.mix(n,{path:r})})},getMarkerCfg:function(t){return u(t)}}),r.registerShape("area","smooth",{draw:function(t,e){var n=o(t),r=this._coord;t.constraint=[[r.start.x,r.end.y],[r.end.x,r.start.y]];var i=a(t,!0,this);return e.addShape("path",{attrs:s.mix(n,{path:i})})},getMarkerCfg:function(t){return u(t)}}),r.registerShape("area","line",{draw:function(t,e){var n=i(t),r=a(t,!1,this);return e.addShape("path",{attrs:s.mix(n,{path:r})})},getMarkerCfg:function(t){return u(t)}}),r.registerShape("area","smoothLine",{draw:function(t,e){var n=i(t),r=a(t,!0,this);return e.addShape("path",{attrs:s.mix(n,{path:r})})},getMarkerCfg:function(t){return u(t)}}),l.spline=l.smooth,t.exports=l},function(t,e,n){var m=n(0),r=n(13),i=n(77),o=n(1),a=n(18),u=1/3;function x(t){var e=o.shape.edge;return m.mix({},e,{stroke:t.color,lineWidth:t.size,strokeOpacity:t.opacity,opacity:t.opacity},t.style)}var c=r.registerFactory("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return i.splitPoints(t)},getActiveCfg:function(t,e){return{lineWidth:(e.lineWidth||0)+1}}});function j(t,e){var n=[];n.push({x:t.x,y:.5*t.y+1*e.y/2}),n.push({y:.5*t.y+1*e.y/2,x:e.x}),n.push(e);var r=["C"];return m.each(n,function(t){r.push(t.x,t.y)}),r}function _(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var r=["Q"];return m.each(n,function(t){r.push(t.x,t.y)}),r}r.registerShape("edge","line",{draw:function(t,e){var n=this.parsePoints(t.points),r=x(t),i=a.getLinePath(n);return e.addShape("path",{attrs:m.mix(r,{path:i})})},getMarkerCfg:function(t){return m.mix({symbol:"circle",radius:4.5},x(t))}}),r.registerShape("edge","vhv",{draw:function(t,e){var n=t.points,r=x(t),i=function(t,e){var n=[];n.push({y:t.y*(1-u)+e.y*u,x:t.x}),n.push({y:t.y*(1-u)+e.y*u,x:e.x}),n.push(e);var r=[["M",t.x,t.y]];return m.each(n,function(t){r.push(["L",t.x,t.y])}),r}(n[0],n[1]);return i=this.parsePath(i),e.addShape("path",{attrs:m.mix(r,{path:i})})},getMarkerCfg:function(t){return m.mix({symbol:"circle",radius:4.5},x(t))}}),r.registerShape("edge","smooth",{draw:function(t,e){var n,r,i,o,a=t.points,u=x(t),c=(n=a[0],r=a[1],i=j(n,r),(o=[["M",n.x,n.y]]).push(i),o);return c=this.parsePath(c),e.addShape("path",{attrs:m.mix(u,{path:c})})},getMarkerCfg:function(t){return m.mix({symbol:"circle",radius:4.5},x(t))}}),r.registerShape("edge","arc",{draw:function(t,e){var n,r,i,o,a,u,c,s,f,l=t.points,h=2<l.length?"weight":"normal",p=x(t),v=void 0,g=void 0;if(t.isInCircle){var d={x:0,y:1};"normal"===h?(u=l[0],c=l[1],s=_(c,d),(f=[["M",u.x,u.y]]).push(s),g=f):(p.fill=p.stroke,r=d,i=_((n=l)[1],r),o=_(n[3],r),(a=[["M",n[0].x,n[0].y]]).push(o),a.push(["L",n[3].x,n[3].y]),a.push(["L",n[2].x,n[2].y]),a.push(i),a.push(["L",n[1].x,n[1].y]),a.push(["L",n[0].x,n[0].y]),a.push(["Z"]),g=a),g=this.parsePath(g),v=e.addShape("path",{attrs:m.mix(p,{path:g})})}else if("normal"===h)l=this.parsePoints(l),v=e.addShape("arc",{attrs:m.mix(p,{x:(l[1].x+l[0].x)/2,y:l[0].y,r:Math.abs(l[1].x-l[0].x)/2,startAngle:Math.PI,endAngle:2*Math.PI})});else{g=[["M",l[0].x,l[0].y],["L",l[1].x,l[1].y]];var y=j(l[1],l[3]),b=j(l[2],l[0]);g.push(y),g.push(["L",l[3].x,l[3].y]),g.push(["L",l[2].x,l[2].y]),g.push(b),g.push(["Z"]),g=this.parsePath(g),p.fill=p.stroke,v=e.addShape("path",{attrs:m.mix(p,{path:g})})}return v},getMarkerCfg:function(t){return m.mix({symbol:"circle",radius:4.5},x(t))}}),t.exports=c},function(t,e,n){var _=n(0),r=n(13),g=n(18),O=n(2).PathUtil,i=n(1);function o(t,e){var n=t.x,r=t.y,i=t.y0,o=t.size,a=i,u=r;_.isArray(r)&&(u=r[1],a=r[0]);var c=void 0,s=void 0;_.isArray(n)?(c=n[0],s=n[1]):(c=n-o/2,s=n+o/2);var f=[];return f.push({x:c,y:a},{x:c,y:u}),e?f.push({x:s,y:(u+a)/2}):f.push({x:s,y:u},{x:s,y:a}),f}function a(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(r){var i=0===n?"M":"L";e.push([i,r.x,r.y])}}var o=t[0];return e.push(["L",o.x,o.y]),e.push(["z"]),e}function w(t){var e=i.shape.interval;return _.mix({},e,{fill:t.color,stroke:t.color,fillOpacity:t.opacity},t.style)}function S(t){var e=i.shape.hollowInterval;return _.mix({},e,{stroke:t.color,strokeOpacity:t.opacity},t.style)}function u(t,e){var n=[],r=t.points,i=t.nextPoints;return _.isNil(i)?e?n.push(["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["L",r[2].x,r[2].y],["L",r[3].x,r[3].y],["Z"]):n.push(["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["L",r[2].x,r[2].y],["L",r[2].x,r[2].y],["Z"]):n.push(["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["L",i[1].x,i[1].y],["L",i[0].x,i[0].y],["Z"]),n}function c(t,e){var n,r,i,o,a,u,c,s,f=e.geom.get("coord"),l=e.point,h=void 0;if(f&&"theta"===f.type){var p=(n=l,i=(r=f).getRadius(),a=o=void 0,u=i*r.innerRadius,s=c=void 0,!_.isArray(n.x)&&_.isArray(n.y)&&(n.x=[n.x,n.x]),_.isArray(n.x)?(c={x:n.x[0],y:n.y[0]},s={x:n.x[1],y:n.y[1]},o=g.getPointAngle(r,c),(a=g.getPointAngle(r,s))<=o&&(a+=2*Math.PI)):(s=n,o=r.startAngle,a=g.getPointAngle(r,s)),{r:i,ir:u,startAngle:o,endAngle:a}),v=(p.endAngle-p.startAngle)/2+p.startAngle;h={transform:[["t",7.5*Math.cos(v),7.5*Math.sin(v)]]}}return _.mix({},h)}var s=r.registerFactory("interval",{defaultShapeType:"rect",getActiveCfg:function(t,e){return!t||_.inArray(["rect","funnel","pyramid"],t)?{fillOpacity:(e.fillOpacity||e.opacity||1)-.15}:{lineWidth:(e.lineWidth||0)+1}},getDefaultPoints:function(t){return o(t)},getSelectedCfg:function(t,e){return c(0,e)}});function h(t,e,n,r,i,o,a){for(var u=2*Math.ceil(2*t/n*4),c=[];r<2*-Math.PI;)r+=2*Math.PI;for(;0<r;)r-=2*Math.PI;var s=o-t+(r=r/Math.PI/2*n)-2*t;c.push(["M",s,e]);for(var f,l,h,p,v=0,g=0;g<u;++g){var d=(f=g*n/4,h=n,p=i,0===(l=g%4)?[[f+.5*h/Math.PI/2,p/2],[f+.5*h/Math.PI,p],[f+h/4,p]]:1===l?[[f+.5*h/Math.PI/2*(Math.PI-2),p],[f+.5*h/Math.PI/2*(Math.PI-1),p/2],[f+h/4,0]]:2===l?[[f+.5*h/Math.PI/2,-p/2],[f+.5*h/Math.PI,-p],[f+h/4,-p]]:[[f+.5*h/Math.PI/2*(Math.PI-2),-p],[f+.5*h/Math.PI/2*(Math.PI-1),-p/2],[f+h/4,0]]);c.push(["C",d[0][0]+s,-d[0][1]+e,d[1][0]+s,-d[1][1]+e,d[2][0]+s,-d[2][1]+e]),g===u-1&&(v=d[2][0])}return c.push(["L",v+s,a+t]),c.push(["L",s,a+t]),c.push(["L",s,e]),c}function M(t,e,n,r,i,o,a,u){for(var c=a.getBBox(),s=c.maxX-c.minX,f=c.maxY-c.minY,l=0;l<r;l++){o.addShape("path",{attrs:{path:h(u,c.minY+f*n,s/4,0,s/64,t,e),fill:i[l],clip:a}}).animate({transform:[["t",s/2,0]],repeat:!0},5e3-300*l)}}r.registerShape("interval","rect",{draw:function(t,e){var n=w(t),r=a(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:_.mix(n,{path:r})})},getMarkerCfg:function(t){var e=w(t),n=t.isInCircle;return _.mix({symbol:n?"circle":"square",radius:n?4.5:4},e)}}),r.registerShape("interval","hollowRect",{draw:function(t,e){var n=S(t),r=a(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:_.mix(n,{path:r})})},getMarkerCfg:function(t){var e=S(t),n=t.isInCircle;return _.mix({symbol:n?"circle":"square",radius:n?4.5:4},e)}}),r.registerShape("interval","line",{getPoints:function(t){return n=(e=t).x,r=e.y,i=e.y0,o=[],_.isArray(r)?_.each(r,function(t,e){o.push({x:_.isArray(n)?n[e]:n,y:t})}):o.push({x:n,y:r},{x:n,y:i}),o;var e,n,r,i,o},draw:function(t,e){var n=S(t);n.lineWidth=t.size||1;var r=a(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:_.mix(n,{path:r})})},getMarkerCfg:function(t){var e=S(t);return _.mix({symbol:"line",radius:5},e)}}),r.registerShape("interval","tick",{getPoints:function(t){return n=(e=t).x,r=_.isArray(e.y)?e.y[1]:e.y,i=_.isArray(e.y)?e.y[0]:e.y0,o=e.size,(a=[]).push({x:n-o/2,y:r},{x:n+o/2,y:r},{x:n,y:r},{x:n,y:i},{x:n-o/2,y:i},{x:n+o/2,y:i}),a;var e,n,r,i,o,a},draw:function(t,e){var n,r,i=S(t),o=(n=t.points,(r=[]).push(["M",n[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y]),r);return o=this.parsePath(o),e.addShape("path",{attrs:_.mix(i,{path:o})})},getMarkerCfg:function(t){var e=S(t);return _.mix({symbol:"tick",radius:5},e)}}),r.registerShape("interval","funnel",{getPoints:function(t){return t.size=2*t.size,o(t)},draw:function(t,e){var n=w(t),r=u(t,!0);return r=this.parsePath(r),e.addShape("path",{attrs:_.mix(n,{path:r})})},getMarkerCfg:function(t){var e=w(t);return _.mix({symbol:"square",radius:4},e)}}),r.registerShape("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,o(t,!0)},draw:function(t,e){var n=w(t),r=u(t,!1);return r=this.parsePath(r),e.addShape("path",{attrs:_.mix(n,{path:r})})},getMarkerCfg:function(t){var e=w(t);return _.mix({symbol:"square",radius:4},e)}}),r.registerShape("interval","liquid-fill-gauge",{draw:function(t,e){var n=0,r=1/0;_.each(t.points,function(t){t.x<r&&(r=t.x),n+=t.x});var i=n/t.points.length,o=this.parsePoint({x:i,y:.5}),a=this.parsePoint({x:r,y:.5}),u=o.x-a.x,c=Math.min(u,a.y),s=w(t),f=e.addShape("circle",{attrs:{x:o.x,y:o.y,r:c}});return M(o.x,o.y,t.y/(2*o.y),1,[s.fill],e,f,4*c),e.addShape("circle",{attrs:_.mix(S(t),{x:o.x,y:o.y,r:c+c/8})})}});var E={};r.registerShape("interval","liquid-fill-path",{draw:function(t,e){var n=_.mix({},w(t)),r=t.shape[1],i=0,o=1/0;_.each(t.points,function(t){t.x<o&&(o=t.x),i+=t.x});var a=i/t.points.length,u=this.parsePoint({x:a,y:.5}),c=this.parsePoint({x:o,y:.5}),s=u.x-c.x,f=Math.min(s,c.y),l=void 0;if(E[r])l=E[r];else{var h=O.parsePathString(r);E[r]=l={segments:h}}var p=[];n.rotate&&(p.push(["r",n.rotate/180*Math.PI]),delete n.rotate);var v=e.addShape("path",{attrs:_.mix(n,{fillOpacity:0,path:l.segments})}),g=_.cloneDeep(v.getBBox()),d=g.maxX-g.minX,y=g.maxY-g.minY,b=2*f/Math.max(d,y);v.transform(p.concat([["s",b,b]]));var m=b*d/2,x=b*y/2;v.transform([["t",u.x-m,u.y-x]]),M(u.x,u.y,t.y/(2*u.y),1,[n.fill],e,v,4*c.y);var j=e.addShape("path",{attrs:_.mix(S(t),{path:l.segments})});return j.transform(p.concat([["s",b,b],["t",u.x-m,u.y-x]])),j}}),t.exports=s},function(t,e,n){var c=n(0),a=n(18),h=n(77),r=n(13),s=n(1),i=[1,1],o=[5.5,1];function u(t){var e=s.shape.line;return c.mix({},e,{stroke:t.color,lineWidth:t.size,strokeOpacity:t.opacity,opacity:t.opacity},t.style)}function f(t){var e=s.shape.line;return c.mix({},e,{stroke:t.color,lineWidth:2,strokeOpacity:t.opacity,opacity:t.opacity,radius:6},t.style)}function p(t,e,n,r){var i=void 0;if(e){var o=r.constraint;n&&t.length&&t.push({x:t[0].x,y:t[0].y}),i=a.getSplinePath(t,!1,o)}else i=a.getLinePath(t,!1),n&&i.push(["Z"]);return i}function l(t,e){var n=t.points,r=t.isInCircle,i=n[0];return c.isArray(i.y)?function(t,e,n,r){for(var i=[],o=r.isStack,a=[],u=0;u<t.length;u++){var c=t[u],s=h.splitPoints(c);a.push(s[0]),i.push(s[1])}var f=p(i,e,n,r),l=p(a,e,n,r);return o?f:f.concat(l)}(n,e,r,t):p(n,e,r,t)}function v(t,e){var r,i,o,n,a,u=(r=t.points,i=e,o=[],c.each(r,function(t,e){var n=r[e+1];o.push(t),n&&(o=o.concat(i(t,n)))}),o);return n=u,a=[],c.each(n,function(t,e){var n=0===e?["M",t.x,t.y]:["L",t.x,t.y];a.push(n)}),a}function g(t,e,n,r){r.moveTo(t-n,e),r.lineTo(t+n,e)}function d(t,e,n,r){r.moveTo(t-n,e),r.arcTo(t-n/2,e-n/2,t,e,n/2),r.lineTo(t,e),r.arcTo(t+n/2,e+n/2,t+n,e-n/2,n/2)}function y(t,e){return c.mix({symbol:e?d:g},f(t))}function b(t,e){return c.mix({symbol:e},f(t))}var m=r.registerFactory("line",{defaultShapeType:"line",getActiveCfg:function(t,e){return{lineWidth:(e.lineWidth||0)+1}},getDefaultPoints:function(t){return h.splitPoints(t)},drawShape:function(t,e,n){var r,i,o,a=this.getShape(t),u=void 0;return 1===e.points.length&&s.showSinglePoint?(i=n,o=(r=e).points[0],u=i.addShape("circle",{attrs:c.mix({x:o.x,y:o.y,r:2,fill:r.color},r.style)})):u=a.draw(e,n),u&&(u.set("origin",e.origin),u._id=e.splitedIndex?e._id+e.splitedIndex:e._id,u.name=this.name),u}});r.registerShape("line","line",{draw:function(t,e){var n=u(t),r=l(t,!1);return e.addShape("path",{attrs:c.mix(n,{path:r})})},getMarkerCfg:function(t){return y(t)}}),r.registerShape("line","dot",{draw:function(t,e){var n=u(t),r=l(t,!1);return e.addShape("path",{attrs:c.mix(n,{path:r,lineDash:i})})},getMarkerCfg:function(t){var e=y(t,!1);return e.lineDash=i,e}}),r.registerShape("line","dash",{draw:function(t,e){var n=u(t),r=l(t,!1);return e.addShape("path",{attrs:c.mix({path:r,lineDash:o},n)})},getMarkerCfg:function(t){var e=y(t,!1);return e.lineDash=e.lineDash||o,e}}),r.registerShape("line","smooth",{draw:function(t,e){var n=u(t),r=this._coord;t.constraint=[[r.start.x,r.end.y],[r.end.x,r.start.y]];var i=l(t,!0);return e.addShape("path",{attrs:c.mix(n,{path:i})})},getMarkerCfg:function(t){return y(t,!0)}}),r.registerShape("line","hv",{draw:function(t,e){var n=u(t),r=v(t,function(t,e){var n=[];return n.push({x:e.x,y:t.y}),n});return e.addShape("path",{attrs:c.mix(n,{path:r})})},getMarkerCfg:function(t){return b(t,function(t,e,n,r){r.moveTo(t-n-1,e-2.5),r.lineTo(t,e-2.5),r.lineTo(t,e+2.5),r.lineTo(t+n+1,e+2.5)})}}),r.registerShape("line","vh",{draw:function(t,e){var n=u(t),r=v(t,function(t,e){var n=[];return n.push({x:t.x,y:e.y}),n});return e.addShape("path",{attrs:c.mix(n,{path:r})})},getMarkerCfg:function(t){return b(t,function(t,e,n,r){r.moveTo(t-n-1,e+2.5),r.lineTo(t,e+2.5),r.lineTo(t,e-2.5),r.lineTo(t+n+1,e-2.5)})}}),r.registerShape("line","hvh",{draw:function(t,e){var n=u(t),r=v(t,function(t,e){var n=[],r=(e.x-t.x)/2+t.x;return n.push({x:r,y:t.y}),n.push({x:r,y:e.y}),n});return e.addShape("path",{attrs:c.mix(n,{path:r})})},getMarkerCfg:function(t){return b(t,function(t,e,n,r){r.moveTo(t-(n+1),e+2.5),r.lineTo(t-n/2,e+2.5),r.lineTo(t-n/2,e-2.5),r.lineTo(t+n/2,e-2.5),r.lineTo(t+n/2,e+2.5),r.lineTo(t+n+1,e+2.5)})}}),r.registerShape("line","vhv",{draw:function(t,e){var n=u(t),r=v(t,function(t,e){var n=[],r=(e.y-t.y)/2+t.y;return n.push({x:t.x,y:r}),n.push({x:e.x,y:r}),n});return e.addShape("path",{attrs:c.mix(n,{path:r})})},getMarkerCfg:function(t){return b(t,function(t,e,n,r){r.moveTo(t-5,e+2.5),r.lineTo(t-5,e),r.lineTo(t,e),r.lineTo(t,e-3),r.lineTo(t,e+3),r.lineTo(t+6.5,e+3)})}}),m.spline=m.smooth,t.exports=m},function(t,e,n){var l=n(0),r=n(77),i=n(1),o=n(13),a=n(2),u=a.Marker,h=a.PathUtil,c=["cross","tick","plus","hyphen","line","pointerLine","pointerArrow"],s=Math.sqrt(3);function p(t){var e=i.shape.point;return l.mix({},e,{fill:t.color,fillOpacity:t.opacity,radius:t.size},t.style)}function v(t){var e=i.shape.hollowPoint;return l.mix({},e,{stroke:t.color,strokeOpacity:t.opacity,radius:t.size},t.style)}l.mix(u.Symbols,{hexagon:function(t,e,n,r){var i=n/2*s;r.moveTo(t,e-n),r.lineTo(t+i,e-n/2),r.lineTo(t+i,e+n/2),r.lineTo(t,e+n),r.lineTo(t-i,e+n/2),r.lineTo(t-i,e-n/2),r.closePath()},bowtie:function(t,e,n,r){var i=n-1.5;r.moveTo(t-n,e-i),r.lineTo(t+n,e+i),r.lineTo(t+n,e-i),r.lineTo(t-n,e+i),r.closePath()},cross:function(t,e,n,r){r.moveTo(t-n,e-n),r.lineTo(t+n,e+n),r.moveTo(t+n,e-n),r.lineTo(t-n,e+n)},tick:function(t,e,n,r){r.moveTo(t-n/2,e-n),r.lineTo(t+n/2,e-n),r.moveTo(t,e-n),r.lineTo(t,e+n),r.moveTo(t-n/2,e+n),r.lineTo(t+n/2,e+n)},plus:function(t,e,n,r){r.moveTo(t-n,e),r.lineTo(t+n,e),r.moveTo(t,e-n),r.lineTo(t,e+n)},hyphen:function(t,e,n,r){r.moveTo(t-n,e),r.lineTo(t+n,e)},line:function(t,e,n,r){r.moveTo(t,e-n),r.lineTo(t,e+n)}});var f=o.registerFactory("point",{defaultShapeType:"hollowCircle",getActiveCfg:function(t,e){var n=e.radius,r=void 0;return{radius:n+1,shadowBlur:n,shadowColor:r=t&&(0===t.indexOf("hollow")||-1!==l.indexOf(c,t))||!t?e.stroke||e.strokeStyle:e.fill||e.fillStyle,stroke:r,strokeOpacity:1,lineWidth:1}},getDefaultPoints:function(t){return r.splitPoints(t)}});o.registerShape("point","rect",{draw:function(t,e){var n,r,i,o,a,u=p(t),c=(r=(n=t).points[0].x,i=n.points[0].y,o=n.size[0],a=n.size[1],[["M",r-.5*o,i-.5*a],["L",r+.5*o,i-.5*a],["L",r+.5*o,i+.5*a],["L",r-.5*o,i+.5*a],["z"]]);return c=this.parsePath(c),e.addShape("path",{attrs:l.mix(u,{path:c})})},getMarkerCfg:function(t){var e=p(t);return e.symbol="rect",e.radius=4.5,e}}),l.each(["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],function(r){o.registerShape("point",r,{draw:function(t,e){var n=p(t);return e.addShape("Marker",{attrs:l.mix(n,{symbol:r,x:t.x,y:t.y})})},getMarkerCfg:function(t){var e=p(t);return e.symbol=r,e.radius=4.5,e}}),o.registerShape("point","hollow"+l.upperFirst(r),{draw:function(t,e){var n=v(t);return e.addShape("Marker",{attrs:l.mix(n,{symbol:r,x:t.x,y:t.y})})},getMarkerCfg:function(t){var e=v(t);return e.symbol=r,e.radius=4.5,e}})}),l.each(c,function(r){o.registerShape("point",r,{draw:function(t,e){var n=v(t);return e.addShape("Marker",{attrs:l.mix(n,{symbol:r,x:t.x,y:t.y})})},getMarkerCfg:function(t){var e=v(t);return e.symbol=r,e.radius=4.5,e}})}),o.registerShape("point","image",{draw:function(t,e){return t.points=this.parsePoints(t.points),e.addShape("image",{attrs:{x:t.points[0].x-t.size/2,y:t.points[0].y-t.size,width:t.size,height:t.size,img:t.shape[1]}})}});var g={};o.registerShape("point","path",{draw:function(t,e){var n=l.mix({},v(t),p(t)),r=t.shape[1],i=t.size||10,o=void 0;if(g[r])o=g[r];else{var a=h.parsePathString(r),u=l.flatten(a).filter(function(t){return l.isNumber(t)});g[r]=o={range:Math.max.apply(null,u)-Math.min.apply(null,u),segments:a}}var c=i/o.range,s=[];n.rotate&&(s.push(["r",n.rotate/180*Math.PI]),delete n.rotate);var f=e.addShape("path",{attrs:l.mix(n,{path:o.segments})});return s.push(["s",c,c],["t",t.x,t.y]),f.transform(s),f}}),t.exports=f},function(t,e,n){var s=n(0),r=n(13),a=n(1);function i(t){var e=a.shape.polygon;return s.mix({},e,{stroke:t.color,fill:t.color,fillOpacity:t.opacity},t.style)}function u(i){var o=[],a=[i[0].x,i[0].y],u=0,c=i[0];return s.each(i,function(t,e){var n=0===e?["M",t.x,t.y]:["L",t.x,t.y];if(o.push(n),u!==e&&e<i.length-1&&s.isEqualWith(a,[t.x,t.y])){var r=i[e+1];o.push(["Z"]),o.push(["M",r.x,r.y]),u=e+1,a=[(c=r).x,r.y]}}),o.push(["L",c.x,c.y]),o.push(["Z"]),o}var o=r.registerFactory("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(r){var i=[];return s.each(r.x,function(t,e){var n=r.y[e];i.push({x:t,y:n})}),i},getActiveCfg:function(t,e){var n=e.lineWidth||1;return"hollow"===t?{lineWidth:n+1}:{fillOpacity:(e.fillOpacity||e.opacity||1)-.08}},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});r.registerShape("polygon","polygon",{draw:function(t,e){if(!s.isEmpty(t.points)){var n=i(t),r=u(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:s.mix(n,{path:r})})}},getMarkerCfg:function(t){return s.mix({symbol:"square",radius:4},i(t))}}),r.registerShape("polygon","hollow",{draw:function(t,e){if(!s.isEmpty(t.points)){var n=(i=t,o=a.shape.hollowPolygon,s.mix({},o,{stroke:i.color,strokeOpacity:i.opacity},i.style)),r=u(t.points);return r=this.parsePath(r),e.addShape("path",{attrs:s.mix(n,{path:r})})}var i,o},getMarkerCfg:function(t){return s.mix({symbol:"square",radius:4},i(t))}}),t.exports=o},function(t,e,n){var c=n(0),r=n(13),u=n(1);function s(t){c.isArray(t)||(t=[t]);var e=t[0],n=t[t.length-1],r=1<t.length?t[1]:e;return{min:e,max:n,min1:r,max1:3<t.length?t[3]:n,median:2<t.length?t[2]:r}}function o(t,e,n){var r,i,o=[],a=void 0,u=void 0;return c.isArray(e)?a=[[t-n/2,(u=s(e)).max],[t+n/2,u.max],[t,u.max],[t,u.max1],[t-n/2,u.min1],[t-n/2,u.max1],[t+n/2,u.max1],[t+n/2,u.min1],[t,u.min1],[t,u.min],[t-n/2,u.min],[t+n/2,u.min],[t-n/2,u.median],[t+n/2,u.median]]:(e=e||.5,a=[[(u=s(t)).min,e-n/2],[u.min,e+n/2],[u.min,e],[u.min1,e],[u.min1,e-n/2],[u.min1,e+n/2],[u.max1,e+n/2],[u.max1,e-n/2],[u.max1,e],[u.max,e],[u.max,e-n/2],[u.max,e+n/2],[u.median,e-n/2],[u.median,e+n/2]]),r=a,i=o,c.each(r,function(t){i.push({x:t[0],y:t[1]})}),o}function a(t,e,n){var r=function(t){c.isArray(t)||(t=[t]);var e=t.sort(function(t,e){return t<e?1:-1}),n=e.length;if(n<4)for(var r=e[n-1],i=0;i<4-n;i++)e.push(r);return e}(e);return[{x:t,y:r[0]},{x:t,y:r[1]},{x:t-n/2,y:r[2]},{x:t-n/2,y:r[1]},{x:t+n/2,y:r[1]},{x:t+n/2,y:r[2]},{x:t,y:r[2]},{x:t,y:r[3]}]}var i=r.registerFactory("schema",{defaultShapeType:"",getActiveCfg:function(t,e){if("box"===t)return{lineWidth:(e.lineWidth||1)+1};var n=e.fillOpacity||e.opacity||1;return{fillOpacity:n-.15,strokeOpacity:n-.15}},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});r.registerShape("schema","box",{getPoints:function(t){return o(t.x,t.y,t.size)},draw:function(t,e){var n,r,i,o=(n=t,r=u.shape.schema,c.mix({},r,{stroke:n.color,strokeOpacity:n.opacity},n.style)),a=[["M",(i=t.points)[0].x,i[0].y],["L",i[1].x,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["M",i[4].x,i[4].y],["L",i[5].x,i[5].y],["L",i[6].x,i[6].y],["L",i[7].x,i[7].y],["L",i[4].x,i[4].y],["Z"],["M",i[8].x,i[8].y],["L",i[9].x,i[9].y],["M",i[10].x,i[10].y],["L",i[11].x,i[11].y],["M",i[12].x,i[12].y],["L",i[13].x,i[13].y]];return a=this.parsePath(a),e.addShape("path",{attrs:c.mix(o,{path:a})})},getMarkerCfg:function(t){return{symbol:function(t,e,n,r){var i=o(t,[e-6,e-3,e,e+3,e+6],n);r.moveTo(i[0].x+1,i[0].y),r.lineTo(i[1].x-1,i[1].y),r.moveTo(i[2].x,i[2].y),r.lineTo(i[3].x,i[3].y),r.moveTo(i[4].x,i[4].y),r.lineTo(i[5].x,i[5].y),r.lineTo(i[6].x,i[6].y),r.lineTo(i[7].x,i[7].y),r.lineTo(i[4].x,i[4].y),r.closePath(),r.moveTo(i[8].x,i[8].y),r.lineTo(i[9].x,i[9].y),r.moveTo(i[10].x+1,i[10].y),r.lineTo(i[11].x-1,i[11].y),r.moveTo(i[12].x,i[12].y),r.lineTo(i[13].x,i[13].y)},radius:6,lineWidth:1,stroke:t.color}}}),r.registerShape("schema","candle",{getPoints:function(t){return a(t.x,t.y,t.size)},draw:function(t,e){var n,r,i,o=(n=t,r=u.shape.schema,c.mix({},r,{fill:n.color,stroke:n.color,fillOpacity:n.opacity},n.style)),a=[["M",(i=t.points)[0].x,i[0].y],["L",i[1].x,i[1].y],["M",i[2].x,i[2].y],["L",i[3].x,i[3].y],["L",i[4].x,i[4].y],["L",i[5].x,i[5].y],["Z"],["M",i[6].x,i[6].y],["L",i[7].x,i[7].y]];return a=this.parsePath(a),e.addShape("path",{attrs:c.mix(o,{path:a})})},getMarkerCfg:function(t){return{symbol:function(t,e,n,r){var i=a(t,e=[e+7.5,e+3,e-3,e-7.5],n);r.moveTo(i[0].x,i[0].y),r.lineTo(i[1].x,i[1].y),r.moveTo(i[2].x,i[2].y),r.lineTo(i[3].x,i[3].y),r.lineTo(i[4].x,i[4].y),r.lineTo(i[5].x,i[5].y),r.closePath(),r.moveTo(i[6].x,i[6].y),r.lineTo(i[7].x,i[7].y)},lineWidth:1,stroke:t.color,fill:t.color,radius:6}}}),t.exports=i},function(t,e,n){var u=n(0),r=n(13),c=n(1),s=n(2).PathUtil;function o(t){var e=c.shape.venn;return u.mix({},e,{stroke:t.color,fill:t.color,fillOpacity:t.opacity},t.style)}var i=r.registerFactory("venn",{defaultShapeType:"venn",getDefaultPoints:function(r){var i=[];return u.each(r.x,function(t,e){var n=r.y[e];i.push({x:t,y:n})}),i},getActiveCfg:function(t,e){var n=e.lineWidth||1;return"hollow"===t?{lineWidth:n+1}:{fillOpacity:(e.fillOpacity||e.opacity||1)-.08}},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});r.registerShape("venn","venn",{draw:function(t,e){var n=t.origin._origin.path,r=o(t),i=s.parsePathString(n);return e.addShape("path",{attrs:u.mix(r,{path:i})})},getMarkerCfg:function(t){return u.mix({symbol:"circle",radius:4},o(t))}}),r.registerShape("venn","hollow",{draw:function(t,e){var n,r,i=t.origin._origin.path,o=(n=t,r=c.shape.hollowVenn,u.mix({},r,{stroke:n.color,strokeOpacity:n.opacity},n.style)),a=s.parsePathString(i);return e.addShape("path",{attrs:u.mix(o,{path:a})})},getMarkerCfg:function(t){return u.mix({symbol:"circle",radius:4},o(t))}}),t.exports=i},function(t,e,n){var M=n(0),g=n(1).defaultColor,E="_origin";function d(t){return t.alias||t.field}var r={_snapEqual:function(t,e,n){return t=n.translate(t),e=n.translate(e),n.isCategory?t===e:M.snapEqual(t,e)},_getScaleValueByPoint:function(t){var e=0,n=this.get("coord"),r=this.getXScale(),i=n.invert(t).x;return this.isInCircle()&&i>(1+r.rangeMax())/2&&(i=r.rangeMin()),e=r.invert(i),r.isCategory&&(e=r.translate(e)),e},_getOriginByPoint:function(t){var e=this.getXScale(),n=this.getYScale(),r=e.field,i=n.field,o=this.get("coord").invert(t),a=e.invert(o.x),u=n.invert(o.y),c={};return c[r]=a,c[i]=u,c},_getScale:function(e){var t=this.get("scales"),n=null;return M.each(t,function(t){if(t.field===e)return n=t,!1}),n},_getTipValueScale:function(){var t=this.getAttrsForLegend(),n=void 0;M.each(t,function(t){var e=t.getScale(t.type);if(e.isLinear)return n=e,!1});var e=this.getXScale(),r=this.getYScale();return!n&&r&&"..y"===r.field?e:n||r||e},_getTipTitleScale:function(t){if(t)return this._getScale(t);var e=this.getAttr("position").getFields(),n=void 0;return M.each(e,function(t){if(-1===t.indexOf(".."))return n=t,!1}),this._getScale(n)},_filterValue:function(t,e){var n=this.get("coord"),r=this.getYScale(),i=r.field,o=n.invert(e).y;o=r.invert(o);var a=t[t.length-1];return M.each(t,function(t){var e=t[E];if(e[i][0]<=o&&e[i][1]>=o)return a=t,!1}),a},getXDistance:function(){var t=this.get("xDistance");if(!t){var e=this.getXScale();if(e.isCategory)t=1;else{var n=e.values,r=e.translate(n[0]),i=r;M.each(n,function(t){(t=e.translate(t))<r&&(r=t),i<t&&(i=t)});var o=n.length;t=(i-r)/(o-1)}this.set("xDistance",t)}return t},findPoint:function(t,r){var i=this,e=i.get("type"),o=i.getXScale(),n=i.getYScale(),a=o.field,u=n.field,c=null;if(-1<M.indexOf(["heatmap"],e)){var s=i.get("coord").invert(t),f=o.invert(s.x),l=n.invert(s.y),h=1/0;return M.each(r,function(t){var e=Math.pow(t[E][a]-f,2)+Math.pow(t[E][u]-l,2);e<h&&(h=e,c=t)}),c}var p=r[0],v=r[r.length-1];if(!p)return c;var g=i._getScaleValueByPoint(t),d=p[E][a],y=p[E][u],b=v[E][a],m=n.isLinear&&M.isArray(y);if(M.isArray(d))M.each(r,function(t){var e=t[E];if(o.translate(e[a][0])<=g&&o.translate(e[a][1])>=g){if(!m)return c=t,!1;M.isArray(c)||(c=[]),c.push(t)}}),M.isArray(c)&&(c=this._filterValue(c,t));else{var x=void 0;if(o.isLinear||"timeCat"===o.type){if((g>o.translate(b)||g<o.translate(d))&&(g>o.max||g<o.min))return null;for(var j=0,_=r.length-1,O=void 0;j<=_;){O=Math.floor((j+_)/2);var w=r[O][E][a];if(i._snapEqual(w,g,o))return r[O];o.translate(w)<=o.translate(g)?(j=O+1,v=r[O],x=r[O+1]):(0===_&&(v=r[0]),_=O-1)}}else M.each(r,function(t,e){var n=t[E];if(i._snapEqual(n[a],g,o)){if(!m)return c=t,!1;M.isArray(c)||(c=[]),c.push(t)}else o.translate(n[a])<=g&&(v=t,x=r[e+1])}),M.isArray(c)&&(c=this._filterValue(c,t));v&&x&&Math.abs(o.translate(v[E][a])-g)>Math.abs(o.translate(x[E][a])-g)&&(v=x)}var S=i.getXDistance();return!c&&Math.abs(o.translate(v[E][a])-g)<=S/2&&(c=v),c},getTipTitle:function(t,e){var n="",r=this._getTipTitleScale(e);if(r){var i=t[r.field];n=r.getText(i)}else if("heatmap"===this.get("type")){var o=this.getXScale(),a=this.getYScale();n="( "+o.getText(t[o.field])+", "+a.getText(t[a.field])+" )"}return n},getTipValue:function(t,e){var n=void 0;if(n=t[e.field],M.isArray(n)){var r=[];M.each(n,function(t){r.push(e.getText(t))}),n=r.join("-")}else n=e.getText(n);return n},getTipName:function(t){var e=void 0,n=void 0,r=this._getGroupScales();if(r.length&&M.each(r,function(t){return n=t,!1}),n){var i=n.field;e=n.getText(t[i])}else{e=d(this._getTipValueScale())}return e},getTipItems:function(i,t){var o=this,n=i[E],a=o.getTipTitle(n,t),e=o.get("tooltipCfg"),u=[],r=void 0,c=void 0;function s(t,e,n){if(!M.isNil(e)&&""!==e){var r={title:a,point:i,name:t||a,value:e,color:i.color||g,marker:!0};"interval"!==o.get("type")&&"schema"!==o.get("type")||(r.size=o.getSize(i[E])),u.push(M.mix({},r,n))}}if(e){var f=e.fields,l=e.cfg,h=[];if(M.each(f,function(t){h.push(n[t])}),l){M.isFunction(l)&&(l=l.apply(null,h));var p=M.mix({},{point:i,title:a,color:i.color||g,marker:!0},l);"interval"!==o.get("type")&&"schema"!==o.get("type")||(p.size=o.getSize(i[E])),u.push(p)}else M.each(f,function(t){if(!M.isNil(n[t])){var e=o._getScale(t);r=d(e),c=e.getText(n[t]),s(r,c)}})}else{var v=o._getTipValueScale();M.isNil(n[v.field])||(c=o.getTipValue(n,v),s(r=o.getTipName(n),c))}return u},isShareTooltip:function(){var t=this.get("shareTooltip"),e=this.get("type"),n=this.get("view"),r=void 0;if(r=n.get("parent")?n.get("parent").get("options"):n.get("options"),"interval"===e){var i=this.get("coord"),o=i.type;("theta"===o||"polar"===o&&i.isTransposed)&&(t=!1)}else this.getYScale()&&!M.inArray(["contour","point","polygon","edge"],e)||(t=!1);return r.tooltip&&M.isBoolean(r.tooltip.shared)&&(t=r.tooltip.shared),t}};t.exports=r},function(t,e,n){var c=n(0);function u(n,t){if(!n)return!0;if(n.length!==t.length)return!0;var r=!1;return c.each(t,function(t,e){if(!function(t,e){if(c.isNil(t)||c.isNil(e))return!1;var n=t.get("origin"),r=e.get("origin");return c.isEqual(n,r)}(t,n[e]))return!(r=!0)}),r}function s(t,r){var i={};return c.each(t,function(t,e){var n=r.__attrs[e];c.isArray(n)&&(n=c.cloneDeep(n)),i[e]=n}),i}var r={_isAllowActive:function(){var t=this.get("allowActive");if(!c.isNil(t))return t;var e=this.get("view"),n=this.isShareTooltip();return!1===e.get("options").tooltip||!n},_onMouseenter:function(t){var e=t.shape,n=this.get("shapeContainer");e&&n.contain(e)&&this._isAllowActive()&&this.setShapesActived(e)},_onMouseleave:function(){var t=this.get("view").get("canvas");this.get("activeShapes")&&(this.clearActivedShapes(),t.draw())},_bindActiveAction:function(){var t=this.get("view"),e=this.get("type");t.on(e+":mouseenter",c.wrapBehavior(this,"_onMouseenter")),t.on(e+":mouseleave",c.wrapBehavior(this,"_onMouseleave"))},_offActiveAction:function(){var t=this.get("view"),e=this.get("type");t.off(e+":mouseenter",c.getWrapBehavior(this,"_onMouseenter")),t.off(e+":mouseleave",c.getWrapBehavior(this,"_onMouseleave"))},_setActiveShape:function(t){var e=this.get("activedOptions")||{},n=t.get("origin"),r=n.shape||this.getDefaultValue("shape");c.isArray(r)&&(r=r[0]);var i=this.get("shapeFactory"),o=c.mix({},t.__attrs,{origin:n}),a=i.getActiveCfg(r,o);e.style&&c.mix(a,e.style);var u=s(a,t);t.setSilent("_originAttrs",u),e.animate?t.animate(a,300):t.attr(a),t.setZIndex(1)},setShapesActived:function(t){var e=this;c.isArray(t)||(t=[t]);var n=e.get("activeShapes");if(u(n,t)){var r=e.get("view").get("canvas"),i=e.get("shapeContainer"),o=e.get("activedOptions");o&&o.highlight?(c.each(t,function(t){t.get("animating")&&t.stopAnimate()}),e.highlightShapes(t)):(n&&e.clearActivedShapes(),c.each(t,function(t){t.get("animating")&&t.stopAnimate(),t.get("visible")&&!t.get("selected")&&e._setActiveShape(t)})),e.set("activeShapes",t),i.sort(),r.draw()}},clearActivedShapes:function(){var t=this.get("shapeContainer"),e=this.get("activedOptions"),n=e&&e.animate;if(t&&!t.get("destroyed")){var r=this.get("activeShapes");if(c.each(r,function(t){if(!t.get("selected")){var e=t.get("_originAttrs");n?(t.stopAnimate(),t.animate(e,300)):t.attr(e),t.setZIndex(0),t.set("_originAttrs",null)}}),this.get("preHighlightShapes")){var i=t.get("children");c.each(i,function(t){if(!t.get("selected")){var e=t.get("_originAttrs");e&&(n?(t.stopAnimate(),t.animate(e,300)):t.attr(e),t.setZIndex(0),t.set("_originAttrs",null))}})}t.get("children").sort(function(t,e){return t._INDEX-e._INDEX}),this.set("activeShapes",null),this.set("preHighlightShapes",null)}},getGroupShapesByPoint:function(t){var e=this.get("shapeContainer"),n=[];if(e){var r=this.getXScale().field,i=this.getShapes(),o=this._getOriginByPoint(t);c.each(i,function(t){var e=t.get("origin");t.get("visible")&&e&&(e._origin[r]===o[r]&&n.push(t))})}return n},getSingleShapeByPoint:function(t){var e=this.get("shapeContainer"),n=e.get("canvas").get("pixelRatio"),r=void 0;if(e&&(r=e.getShape(t.x*n,t.y*n)),r&&r.get("origin"))return r},highlightShapes:function(r,i){c.isArray(r)||(r=[r]);var t=this.get("activeShapes");if(u(t,r)){t&&this.clearActivedShapes();var e=this.getShapes(),n=this.get("activedOptions"),o=n&&n.animate,a=n&&n.style;c.each(e,function(t){var e={};t.stopAnimate(),-1!==c.indexOf(r,t)?(c.mix(e,a,i),t.setZIndex(1)):(c.mix(e,{fillOpacity:.3}),t.setZIndex(0));var n=s(e,t);t.setSilent("_originAttrs",n),o?t.animate(e,300):t.attr(e)}),this.set("preHighlightShapes",r),this.set("activeShapes",r)}}};t.exports=r},function(t,e,n){var g=n(0);function o(t,e){if(g.isNil(t)||g.isNil(e))return!1;var n=t.get("origin"),r=e.get("origin");return g.isEqual(n,r)}var r={_isAllowSelect:function(){var t=this.get("allowSelect");if(!g.isNil(t))return t;var e=this.get("type"),n=this.get("coord"),r=n&&n.type;return"interval"===e&&"theta"===r},_onClick:function(t){if(this._isAllowSelect()){this.clearActivedShapes();var e=t.shape,n=this.get("shapeContainer");e&&!e.get("animating")&&n.contain(e)&&this.setShapeSelected(e)}},_bindSelectedAction:function(){var t=this.get("view"),e=this.get("type");t.on(e+":click",g.wrapBehavior(this,"_onClick"))},_offSelectedAction:function(){var t=this.get("view"),e=this.get("type");t.off(e+":click",g.getWrapBehavior(this,"_onClick"))},_setShapeStatus:function(t,e){var n=this.get("view"),r=this.get("selectedOptions")||{},i=!1!==r.animate,o=n.get("canvas");t.set("selected",e);var a,u,c,s=t.get("origin");if(e){var f=s.shape||this.getDefaultValue("shape");g.isArray(f)&&(f=f[0]);var l=this.get("shapeFactory"),h=g.mix({geom:this,point:s},r),p=l.getSelectedCfg(f,h);g.mix(p,h.style),t.get("_originAttrs")||(t.get("animating")&&t.stopAnimate(),t.set("_originAttrs",(a=p,u=t,c={},g.each(a,function(t,e){"transform"===e&&(e="matrix");var n=u.__attrs[e];g.isArray(n)&&(n=g.cloneDeep(n)),c[e]=n}),c))),i?t.animate(p,300):(t.attr(p),o.draw())}else{var v=t.get("_originAttrs");t.set("_originAttrs",null),i?t.animate(v,300):(t.attr(v),o.draw())}},setShapeSelected:function(t){var e=this._getSelectedShapes(),n=this.get("selectedOptions")||{},r=!1!==n.cancelable;if("multiple"===n.mode)-1===g.indexOf(e,t)?(e.push(t),this._setShapeStatus(t,!0)):r&&(g.Array.remove(e,t),this._setShapeStatus(t,!1));else{var i=e[0];r&&(t=o(i,t)?null:t),o(i,t)||(i&&this._setShapeStatus(i,!1),t&&this._setShapeStatus(t,!0))}},clearSelected:function(){var e=this,t=e.get("shapeContainer");if(t&&!t.get("destroyed")){var n=e._getSelectedShapes();g.each(n,function(t){e._setShapeStatus(t,!1),t.set("_originAttrs",null)})}},setSelected:function(n){var r=this,t=r.getShapes();return g.each(t,function(t){var e=t.get("origin");e&&e._origin===n&&r.setShapeSelected(t)}),this},_getSelectedShapes:function(){var t=this.getShapes(),e=[];return g.each(t,function(t){t.get("selected")&&e.push(t)}),this.set("selectedShapes",e),e}};t.exports=r},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(11),f=n(0),u=function(e){function t(){return r(this,t),i(this,e.apply(this,arguments))}return o(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.type="point",t.shapeType="point",t.generatePoints=!0,t},t.prototype.drawPoint=function(t,n,r,i){var o=this,a=t.shape,u=o.getDrawCfg(t),c=void 0;if(f.isArray(t.y)){var s=o.hasStack();f.each(t.y,function(t,e){u.y=t,u.yIndex=e,s&&0===e||(c=r.drawShape(a,u,n),o.appendShapeInfo(c,i+e))})}else f.isNil(t.y)||(c=r.drawShape(a,u,n),o.appendShapeInfo(c,i))},t}(a),c=function(e){function t(){return r(this,t),i(this,e.apply(this,arguments))}return o(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.hasDefaultAdjust=!0,t.adjusts=[{type:"jitter"}],t},t}(u),s=function(e){function t(){return r(this,t),i(this,e.apply(this,arguments))}return o(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.hasDefaultAdjust=!0,t.adjusts=[{type:"stack"}],t},t}(u);u.Jitter=c,u.Stack=s,t.exports=u},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=function(e){function t(){return r(this,t),i(this,e.apply(this,arguments))}return o(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.type="line",t.sortable=!0,t},t}(n(137)),u=function(e){function t(){return r(this,t),i(this,e.apply(this,arguments))}return o(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.hasDefaultAdjust=!0,t.adjusts=[{type:"stack"}],t},t}(a);a.Stack=u,t.exports=a},function(t,e,n){function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var r=n(11),u=n(0),c=n(139),s=function(n){function r(t){i(this,r);var e=o(this,n.call(this,t));return u.assign(e,c),e}return a(r,n),r.prototype.getDefaultCfg=function(){var t=n.prototype.getDefaultCfg.call(this);return t.type="interval",t.shapeType="interval",t.generatePoints=!0,t},r.prototype.createShapePointsCfg=function(t){var e=n.prototype.createShapePointsCfg.call(this,t);return e.size=this.getNormalizedSize(t),e},r.prototype.clearInner=function(){n.prototype.clearInner.call(this),this.set("defaultSize",null)},r}(r),f=function(e){function t(){return i(this,t),o(this,e.apply(this,arguments))}return a(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.hasDefaultAdjust=!0,t.adjusts=[{type:"stack"}],t},t}(s),l=function(e){function t(){return i(this,t),o(this,e.apply(this,arguments))}return a(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.hasDefaultAdjust=!0,t.adjusts=[{type:"dodge"}],t},t}(s),h=function(e){function t(){return i(this,t),o(this,e.apply(this,arguments))}return a(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.hasDefaultAdjust=!0,t.adjusts=[{type:"symmetric"}],t},t}(s);s.Stack=f,s.Dodge=l,s.Symmetric=h,t.exports=s},function(t,e,n){function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var r=n(11),u=n(138),s=n(0),c=function(n){function r(t){i(this,r);var e=o(this,n.call(this,t));return s.assign(e,u),e}return a(r,n),r.prototype.getDefaultCfg=function(){var t=n.prototype.getDefaultCfg.call(this);return t.type="area",t.shapeType="area",t.generatePoints=!0,t.sortable=!0,t},r.prototype.draw=function(t,i,o,a){var u=this,c=this.getDrawCfg(t[0]),e=this.splitData(t);c.origin=t,s.each(e,function(t,e){c.splitedIndex=e;var n=t.map(function(t){return t.points});c.points=n;var r=o.drawShape(c.shape,c,i);u.appendShapeInfo(r,a+e)})},r}(r),f=function(e){function t(){return i(this,t),o(this,e.apply(this,arguments))}return a(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.hasDefaultAdjust=!0,t.adjusts=[{type:"stack"}],t},t}(c);c.Stack=f,t.exports=c},function(t,e,n){var r=n(11),f=n(0),i=function(s){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,s.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,s),t.prototype.getDefaultCfg=function(){var t=s.prototype.getDefaultCfg.call(this);return t.type="polygon",t.shapeType="polygon",t.generatePoints=!0,t},t.prototype.createShapePointsCfg=function(t){var e=s.prototype.createShapePointsCfg.call(this,t),n=e.x,r=e.y,i=void 0;if(!f.isArray(n)||!f.isArray(r)){var o=this.getXScale(),a=this.getYScale(),u=.5/(o.values?o.values.length:o.ticks.length),c=.5/(a.values?a.values.length:a.ticks.length);o.isCategory&&a.isCategory?(n=[n-u,n-u,n+u,n+u],r=[r-c,r+c,r+c,r-c]):f.isArray(n)?(n=[(i=n)[0],i[0],i[1],i[1]],r=[r-c/2,r+c/2,r+c/2,r-c/2]):f.isArray(r)&&(r=[(i=r)[0],i[1],i[1],i[0]],n=[n-u/2,n-u/2,n+u/2,n+u/2]),e.x=n,e.y=r}return e},t}(r);t.exports=i},function(t,e,n){function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var r=n(11),u=n(0),c=n(139),s=function(n){function r(t){i(this,r);var e=o(this,n.call(this,t));return u.assign(e,c),e}return a(r,n),r.prototype.getDefaultCfg=function(){var t=n.prototype.getDefaultCfg.call(this);return t.type="schema",t.shapeType="schema",t.generatePoints=!0,t},r.prototype.createShapePointsCfg=function(t){var e=n.prototype.createShapePointsCfg.call(this,t);return e.size=this.getNormalizedSize(t),e},r}(r),f=function(e){function t(){return i(this,t),o(this,e.apply(this,arguments))}return a(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.hasDefaultAdjust=!0,t.adjusts=[{type:"dodge"}],t},t}(s);s.Dodge=f,t.exports=s},function(t,e,n){var r=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.type="edge",t.shapeType="edge",t.generatePoints=!0,t},t}(n(11));t.exports=r},function(t,e,n){var r=n(11),a=n(74),i=n(0),b="_origin",o="shadowCanvasCtx",u="valueRange",c="imageShape",m="mappedData",s="grayScaleBlurredCanvas",x="heatmapSize",f={},l=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.type="heatmap",t},t.prototype._prepareRange=function(){var t=this.get(m),n=this.getAttr("color").field,r=1/0,i=-1/0;t.forEach(function(t){var e=t[b][n];i<e&&(i=e),e<r&&(r=e)}),r===i&&(r=i-1);var e=[r,i];this.set(u,e)},t.prototype._prepareSize=function(){var t=this.getDefaultValue("size");i.isNumber(t)||(t=this._getDefaultSize());var e=this.get("styleOptions"),n=e&&i.isObject(e.style)?e.style.blur:null;i.isFinite(n)||(n=t/2),this.set(x,{blur:n,radius:t})},t.prototype._getDefaultSize=function(){var t=this.getAttr("position"),e=this.get("coord");return Math.min(e.width/(4*t.scales[0].ticks.length),e.height/(4*t.scales[1].ticks.length))},t.prototype._colorize=function(t){for(var e=this.getAttr("color"),n=t.data,r=3;r<n.length;r+=4){var i=n[r];if(i){var o=void 0;f[i]?o=f[i]:(o=a.rgb2arr(e.gradient(i/256)),f[i]=o),n[r-3]=o[0],n[r-2]=o[1],n[r-1]=o[2],n[r]=i}}},t.prototype._prepareGreyScaleBlurredCircle=function(t,e){var n=this.get(s);n||(n=document.createElement("canvas"),this.set(s,n));var r=t+e,i=n.getContext("2d");n.width=n.height=2*r,i.clearRect(0,0,n.width,n.height),i.shadowOffsetX=i.shadowOffsetY=2*r,i.shadowBlur=e,i.shadowColor="black",i.beginPath(),i.arc(-r,-r,t,0,2*Math.PI,!0),i.closePath(),i.fill()},t.prototype._drawGrayScaleBlurredCircle=function(t,e,n,r,i){var o=this.get(s);i.globalAlpha=r,i.drawImage(o,t-n,e-n)},t.prototype._getShadowCanvasCtx=function(){var t=this.get(o);if(t)return t;var e=this.get("coord"),n=e.width,r=e.height,i=document.createElement("canvas");return i.width=n,i.height=r,t=i.getContext("2d"),this.set(o,t),t},t.prototype._clearShadowCanvasCtx=function(){var t=this.get(o);t&&t.clearRect(0,0,t.canvas.width,t.canvas.height)},t.prototype._getImageShape=function(){var t=this.get(c);return t||(t=this.get("container").addShape("Image",{}),this.set(c,t),t)},t.prototype.drawWithRange=function(e){var t=this,n=t.get("coord"),r=n.start,i=n.end,o=n.width,a=n.height,u=t.getAttr("color").field,c=t.get(x);t._clearShadowCanvasCtx();var s=t._getShadowCanvasCtx(),f=t.get(m);e&&(f=f.filter(function(t){return t[b][u]<=e[1]&&t[b][u]>=e[0]}));for(var l=t._getScale(u),h=0;h<f.length;h++){var p=f[h],v=t.getDrawCfg(p),g=l.scale(p[b][u]);t._drawGrayScaleBlurredCircle(v.x,v.y,c.radius+c.blur,g,s)}var d=s.getImageData(r.x,i.y,o,a);t._clearShadowCanvasCtx(),t._colorize(d),s.putImageData(d,0,0);var y=t._getImageShape();y.attr("x",r.x),y.attr("y",i.y),y.attr("width",o),y.attr("height",a),y.attr("img",s.canvas)},t.prototype.draw=function(t){this.set(m,t),this._prepareRange(),this._prepareSize();var e=this.get(x);this._prepareGreyScaleBlurredCircle(e.radius,e.blur);var n=this.get(u);this.drawWithRange(n)},t}(r);t.exports=l},function(t,e,n){var r=n(11),C=n(132),P=n(1),A=n(0),i=n(366),T=i.venn,k=i.scaleSolution,I=i.circlePath,L=i.intersectionAreaPath,R=i.computeTextCentres;var o=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.type="venn",t.shapeType="venn",t.generatePoints=!0,t},t.prototype._initAttrs=function(){var t=this,e=t.get("view"),n=this.get("attrs"),r=t.get("attrOptions"),i=t.get("labelCfg"),o=t.get("data"),a=r.size?r.size.field:"size",u=i?i.fields[0]:"sets";t.set("labelCfg",null),o.forEach(function(t){t.sets=t[u],t.size=t[a]});var c=T(o),s=t.get("coord"),f=[Math.min(s.x.end,s.x.start),Math.max(s.x.end,s.x.start)],l=[Math.min(s.y.end,s.y.start),Math.max(s.y.end,s.y.start)],h=f[1]-f[0],p=l[1]-l[0],v=t.get("styleOptions"),g=v&&A.isObject(v.style)?v.style.padding:0;A.isFinite(g)||(g=0);var d,y=k(c,h,p,g),b=R(y,o);for(var m in o.forEach(function(t){var e=t.sets,n=e.join(",");if(t.id=n,1===e.length){var r=y[n];t.path=I(r.x,r.y,r.radius),A.assign(t,r)}else{var i=e.map(function(t){return y[t]}),o=L(i);/[zZ]$/.test(o)||(o+="Z"),t.path=o;var a=b[n]||{x:0,y:0};A.assign(t,a)}}),e.set("data",o),t.set("data",o),t.set("dataArray",o),t.position("x*y"),r)if(r.hasOwnProperty(m)){var x=r[m],j=A.upperFirst(m),_=(d=x.field,A.isArray(d)?d:A.isString(d)?d.split("*"):[d]);"position"===m&&(x.coord=s);for(var O=[],w=0;w<_.length;w++){var S=_[w],M=t._createScale(S,o);"color"===m&&A.isNil(x.values)&&(M.values.length<=8?x.values=P.colors:M.values.length<=16?x.values=P.colors_16:x.values=P.colors_24,A.isNil(x.values)&&(x.values=P.colors)),O.push(M)}"position"===m&&(O[0].change({nice:!1,min:f[0],max:f[1]}),O[1].change({nice:!1,min:l[0],max:l[1]})),x.scales=O;var E=new C[j](x);n[m]=E}},t.prototype.paint=function(){e.prototype.paint.call(this);var r=this,t=r.get("dataArray"),i=r.get("shapeContainer");t.forEach(function(t){var e=r.getDrawCfg(t[0]),n=e.origin._origin;i.addShape("text",{attrs:A.mix({},{x:n.x,y:n.y,text:n.label||"",fontSize:18,fill:"hollow"===e.shape?e.color:"#666",textAlign:"center",textBaseline:"middle"},e.style?e.style.textStyle:{})})})},t}(r);t.exports=o},function(t,e,n){var r,i,o,a,u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};a=function(t,I,e){"use strict";var O=1e-10;function h(e,t){var n,r=function(t){for(var e=[],n=0;n<t.length;++n)for(var r=n+1;r<t.length;++r)for(var i=k(t[n],t[r]),o=0;o<i.length;++o){var a=i[o];a.parentIndex=[n,r],e.push(a)}return e}(e),i=r.filter(function(t){return function(t,e){for(var n=0;n<e.length;++n)if(S(t,e[n])>e[n].radius+O)return!1;return!0}(t,e)}),o=0,a=0,u=[];if(1<i.length){var c=M(i);for(n=0;n<i.length;++n){var s=i[n];s.angle=Math.atan2(s.x-c.x,s.y-c.y)}i.sort(function(t,e){return e.angle-t.angle});var f=i[i.length-1];for(n=0;n<i.length;++n){var l=i[n];a+=(f.x+l.x)*(l.y-f.y);for(var h={x:(l.x+f.x)/2,y:(l.y+f.y)/2},p=null,v=0;v<l.parentIndex.length;++v)if(-1<f.parentIndex.indexOf(l.parentIndex[v])){var g=e[l.parentIndex[v]],d=Math.atan2(l.x-g.x,l.y-g.y),y=Math.atan2(f.x-g.x,f.y-g.y),b=y-d;b<0&&(b+=2*Math.PI);var m=y-b/2,x=S(h,{x:g.x+g.radius*Math.sin(m),y:g.y+g.radius*Math.cos(m)});x>2*g.radius&&(x=2*g.radius),(null===p||p.width>x)&&(p={circle:g,width:x,p1:l,p2:f})}null!==p&&(u.push(p),o+=w(p.circle.radius,p.width),f=l)}}else{var j=e[0];for(n=1;n<e.length;++n)e[n].radius<j.radius&&(j=e[n]);var _=!1;for(n=0;n<e.length;++n)if(S(e[n],j)>Math.abs(j.radius-e[n].radius)){_=!0;break}_?o=a=0:(o=j.radius*j.radius*Math.PI,u.push({circle:j,p1:{x:j.x,y:j.y+j.radius},p2:{x:j.x-O,y:j.y+j.radius},width:2*j.radius}))}return a/=2,t&&(t.area=o+a,t.arcArea=o,t.polygonArea=a,t.arcs=u,t.innerPoints=i,t.intersectionPoints=r),o+a}function w(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function S(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function c(t,e,n){if(t+e<=n)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);var r=e-(n*n-t*t+e*e)/(2*n);return w(t,t-(n*n-e*e+t*t)/(2*n))+w(e,r)}function k(t,e){var n=S(t,e),r=t.radius,i=e.radius;if(r+i<=n||n<=Math.abs(r-i))return[];var o=(r*r-i*i+n*n)/(2*n),a=Math.sqrt(r*r-o*o),u=t.x+o*(e.x-t.x)/n,c=t.y+o*(e.y-t.y)/n,s=-(e.y-t.y)*(a/n),f=-(e.x-t.x)*(a/n);return[{x:u+s,y:c-f},{x:u-s,y:c+f}]}function M(t){for(var e={x:0,y:0},n=0;n<t.length;++n)e.x+=t[n].x,e.y+=t[n].y;return e.x/=t.length,e.y/=t.length,e}function E(t){for(var e=new Array(t),n=0;n<t;++n)e[n]=0;return e}function C(t,e){return E(t).map(function(){return E(e)})}function g(t,e){for(var n=0,r=0;r<t.length;++r)n+=t[r]*e[r];return n}function P(t){return Math.sqrt(g(t,t))}function A(t,e,n){for(var r=0;r<e.length;++r)t[r]=e[r]*n}function T(t,e,n,r,i){for(var o=0;o<t.length;++o)t[o]=e*n[o]+r*i[o]}function p(t,e,n){var r,i=(n=n||{}).maxIterations||200*e.length,o=n.nonZeroDelta||1.05,a=n.zeroDelta||.001,u=n.minErrorDelta||1e-6,c=n.minErrorDelta||1e-5,s=void 0!==n.rho?n.rho:1,f=void 0!==n.chi?n.chi:2,l=void 0!==n.psi?n.psi:-.5,h=void 0!==n.sigma?n.sigma:.5,p=e.length,v=new Array(p+1);v[0]=e,v[0].fx=t(e);for(var g=v[0].id=0;g<p;++g){var d=e.slice();d[g]=d[g]?d[g]*o:a,v[g+1]=d,v[g+1].fx=t(d),v[g+1].id=g+1}function y(t){for(var e=0;e<t.length;e++)v[p][e]=t[e];v[p].fx=t.fx}for(var b=function(t,e){return t.fx-e.fx},m=e.slice(),x=e.slice(),j=e.slice(),_=e.slice(),O=0;O<i;++O){if(v.sort(b),n.history){var w=v.map(function(t){var e=t.slice();return e.fx=t.fx,e.id=t.id,e});w.sort(function(t,e){return t.id-e.id}),n.history.push({x:v[0].slice(),fx:v[0].fx,simplex:w})}for(g=r=0;g<p;++g)r=Math.max(r,Math.abs(v[0][g]-v[1][g]));if(Math.abs(v[0].fx-v[p].fx)<u&&r<c)break;for(g=0;g<p;++g){for(var S=m[g]=0;S<p;++S)m[g]+=v[S][g];m[g]/=p}var M=v[p];if(T(x,1+s,m,-s,M),x.fx=t(x),x.fx<v[0].fx)T(_,1+f,m,-f,M),_.fx=t(_),_.fx<x.fx?y(_):y(x);else if(x.fx>=v[p-1].fx){var E=!1;if(x.fx>M.fx?(T(j,1+l,m,-l,M),j.fx=t(j),j.fx<M.fx?y(j):E=!0):(T(j,1-l*s,m,l*s,M),j.fx=t(j),j.fx<x.fx?y(j):E=!0),E){if(1<=h)break;for(g=1;g<v.length;++g)T(v[g],1-h,v[0],h,v[g]),v[g].fx=t(v[g])}}else y(x)}return v.sort(b),{fx:v[0].fx,x:v[0]}}function v(i,o,a,u,c,s,f){var l=a.fx,h=g(a.fxprime,o),p=l,t=l,v=h,e=0;function n(t,e,n){for(var r=0;r<16;++r)if(c=(t+e)/2,T(u.x,1,a.x,c,o),p=u.fx=i(u.x,u.fxprime),v=g(u.fxprime,o),l+s*c*h<p||n<=p)e=c;else{if(Math.abs(v)<=-f*h)return c;0<=v*(e-t)&&(e=t),t=c,n=p}return 0}c=c||1,s=s||1e-6,f=f||.1;for(var r=0;r<10;++r){if(T(u.x,1,a.x,c,o),p=u.fx=i(u.x,u.fxprime),v=g(u.fxprime,o),l+s*c*h<p||r&&t<=p)return n(e,c,t);if(Math.abs(v)<=-f*h)return c;if(0<=v)return n(c,e,p);t=p,e=c,c*=2}return c}function L(t,e,n){var r,i,o,a={x:e.slice(),fx:0,fxprime:e.slice()},u={x:e.slice(),fx:0,fxprime:e.slice()},c=e.slice(),s=1;o=(n=n||{}).maxIterations||20*e.length,a.fx=t(a.x,a.fxprime),A(r=a.fxprime.slice(),a.fxprime,-1);for(var f=0;f<o;++f){if(s=v(t,r,a,u,s),n.history&&n.history.push({x:a.x.slice(),fx:a.fx,fxprime:a.fxprime.slice(),alpha:s}),s){T(c,1,u.fxprime,-1,a.fxprime);var l=g(a.fxprime,a.fxprime);T(r,Math.max(0,g(c,u.fxprime)/l),r,-1,u.fxprime),i=a,a=u,u=i}else A(r,a.fxprime,-1);if(P(a.fxprime)<=1e-5)break}return n.history&&n.history.push({x:a.x.slice(),fx:a.fx,fxprime:a.fxprime.slice(),alpha:s}),a}function o(i,t){(t=t||{}).maxIterations=t.maxIterations||500;var e,n=t.initialLayout||f,o=t.lossFunction||B,a=n(i=function(t){t=t.slice();var e,n,r,i,o=[],a={};for(e=0;e<t.length;++e){var u=t[e];1==u.sets.length?o.push(u.sets[0]):2==u.sets.length&&(r=u.sets[0],i=u.sets[1],a[[r,i]]=!0,a[[i,r]]=!0)}for(o.sort(function(t,e){return e<t}),e=0;e<o.length;++e)for(r=o[e],n=e+1;n<o.length;++n)i=o[n],[r,i]in a||t.push({sets:[r,i],size:0});return t}(i),t),r=[],u=[];for(e in a)a.hasOwnProperty(e)&&(r.push(a[e].x),r.push(a[e].y),u.push(e));for(var c=p(function(t){for(var e={},n=0;n<u.length;++n){var r=u[n];e[r]={x:t[2*n],y:t[2*n+1],radius:a[r].radius}}return o(e,i)},r,t).x,s=0;s<u.length;++s)e=u[s],a[e].x=c[2*s],a[e].y=c[2*s+1];return a}var R=1e-10;function D(e,n,r){return Math.min(e,n)*Math.min(e,n)*Math.PI<=r+R?Math.abs(e-n):function(t,e,n,r){var i=(r=r||{}).maxIterations||100,o=r.tolerance||1e-10,a=t(e),u=t(n),c=n-e;if(0<a*u)throw"Initial bisect points must have opposite signs";if(0===a)return e;if(0===u)return n;for(var s=0;s<i;++s){var f=e+(c/=2),l=t(f);if(0<=l*a&&(e=f),Math.abs(c)<o||0===l)return f}return e+c}(function(t){return c(e,n,t)-r},0,e+n)}function f(t,e){var n=a(t,e),r=e.lossFunction||B;if(8<=t.length){var i=function(t,e){var n,r=(e=e||{}).restarts||10,i=[],o={};for(n=0;n<t.length;++n){var a=t[n];1==a.sets.length&&(o[a.sets[0]]=i.length,i.push(a))}var u=(l=t,h=i,p=o,v=C(h.length,h.length),g=C(h.length,h.length),l.filter(function(t){return 2==t.sets.length}).map(function(t){var e=p[t.sets[0]],n=p[t.sets[1]],r=D(Math.sqrt(h[e].size/Math.PI),Math.sqrt(h[n].size/Math.PI),t.size);v[e][n]=v[n][e]=r;var i=0;t.size+1e-10>=Math.min(h[e].size,h[n].size)?i=1:t.size<=1e-10&&(i=-1),g[e][n]=g[n][e]=i}),{distances:v,constraints:g}),c=u.distances,s=u.constraints,f=P(c.map(P))/c.length;var l,h,p,v,g;c=c.map(function(t){return t.map(function(t){return t/f})});var d,y,b=function(t,e){return function(t,e,n,r){var i,o=0;for(i=0;i<e.length;++i)e[i]=0;for(i=0;i<n.length;++i)for(var a=t[2*i],u=t[2*i+1],c=i+1;c<n.length;++c){var s=t[2*c],f=t[2*c+1],l=n[i][c],h=r[i][c],p=(s-a)*(s-a)+(f-u)*(f-u),v=Math.sqrt(p),g=p-l*l;0<h&&v<=l||h<0&&l<=v||(o+=2*g*g,e[2*i]+=4*g*(a-s),e[2*i+1]+=4*g*(u-f),e[2*c]+=4*g*(s-a),e[2*c+1]+=4*g*(f-u))}return o}(t,e,c,s)};for(n=0;n<r;++n){var m=E(2*c.length).map(Math.random);y=L(b,m,e),(!d||y.fx<d.fx)&&(d=y)}var x=d.x,j={};for(n=0;n<i.length;++n){var _=i[n];j[_.sets[0]]={x:x[2*n]*f,y:x[2*n+1]*f,radius:Math.sqrt(_.size/Math.PI)}}if(e.history)for(n=0;n<e.history.length;++n)A(e.history[n].x,f);return j}(t,e);r(i,t)+1e-8<r(n,t)&&(n=i)}return n}function a(t,e){for(var n,r=e&&e.lossFunction?e.lossFunction:B,i={},o={},a=0;a<t.length;++a){var u=t[a];1==u.sets.length&&(n=u.sets[0],i[n]={x:1e10,y:1e10,rowid:i.length,size:u.size,radius:Math.sqrt(u.size/Math.PI)},o[n]=[])}for(t=t.filter(function(t){return 2==t.sets.length}),a=0;a<t.length;++a){var c=t[a],s=c.hasOwnProperty("weight")?c.weight:1,f=c.sets[0],l=c.sets[1];c.size+R>=Math.min(i[f].size,i[l].size)&&(s=0),o[f].push({set:l,size:c.size,weight:s}),o[l].push({set:f,size:c.size,weight:s})}var h=[];for(n in o)if(o.hasOwnProperty(n)){var p=0;for(a=0;a<o[n].length;++a)p+=o[n][a].size*o[n][a].weight;h.push({set:n,size:p})}function v(t,e){return e.size-t.size}h.sort(v);var g={};function d(t){return t.set in g}function y(t,e){i[e].x=t.x,i[e].y=t.y,g[e]=!0}for(y({x:0,y:0},h[0].set),a=1;a<h.length;++a){var b=h[a].set,m=o[b].filter(d);if(n=i[b],m.sort(v),0===m.length)throw"ERROR: missing pairwise overlap information";for(var x=[],j=0;j<m.length;++j){var _=i[m[j].set],O=D(n.radius,_.radius,m[j].size);x.push({x:_.x+O,y:_.y}),x.push({x:_.x-O,y:_.y}),x.push({y:_.y+O,x:_.x}),x.push({y:_.y-O,x:_.x});for(var w=j+1;w<m.length;++w)for(var S=i[m[w].set],M=D(n.radius,S.radius,m[w].size),E=k({x:_.x,y:_.y,radius:O},{x:S.x,y:S.y,radius:M}),C=0;C<E.length;++C)x.push(E[C])}var P=1e50,A=x[0];for(j=0;j<x.length;++j){i[b].x=x[j].x,i[b].y=x[j].y;var T=r(i,t);T<P&&(P=T,A=x[j])}y(A,b)}return i}function B(e,t){var n=0;for(var r=0;r<t.length;++r){var i,o=t[r];if(1!=o.sets.length){if(2==o.sets.length){var a=e[o.sets[0]],u=e[o.sets[1]];i=c(a.radius,u.radius,S(a,u))}else i=h(o.sets.map(function(t){return e[t]}));n+=(o.hasOwnProperty("weight")?o.weight:1)*(i-o.size)*(i-o.size)}}return n}function d(t,e,n){var r;if(null===n?t.sort(function(t,e){return e.radius-t.radius}):t.sort(n),0<t.length){var i=t[0].x,o=t[0].y;for(r=0;r<t.length;++r)t[r].x-=i,t[r].y-=o}2==t.length&&(S(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y));if(1<t.length){var a,u,c=Math.atan2(t[1].x,t[1].y)-e,s=Math.cos(c),f=Math.sin(c);for(r=0;r<t.length;++r)a=t[r].x,u=t[r].y,t[r].x=s*a-f*u,t[r].y=f*a+s*u}if(2<t.length){for(var l=Math.atan2(t[2].x,t[2].y)-e;l<0;)l+=2*Math.PI;for(;l>2*Math.PI;)l-=2*Math.PI;if(l>Math.PI){var h=t[1].y/(1e-10+t[1].x);for(r=0;r<t.length;++r){var p=(t[r].x+h*t[r].y)/(1+h*h);t[r].x=2*p-t[r].x,t[r].y=2*p*h-t[r].y}}}}function y(t){function e(t){return t.parent!==t&&(t.parent=e(t.parent)),t.parent}t.map(function(t){t.parent=t});for(var n=0;n<t.length;++n)for(var r=n+1;r<t.length;++r){var i=t[n].radius+t[r].radius;S(t[n],t[r])+1e-10<i&&(o=t[r],a=t[n],u=void 0,u=e(o),c=e(a),u.parent=c)}var o,a,u,c,s,f={};for(n=0;n<t.length;++n)(s=e(t[n]).parent.setid)in f||(f[s]=[]),f[s].push(t[n]);t.map(function(t){delete t.parent});var l=[];for(s in f)f.hasOwnProperty(s)&&l.push(f[s]);return l}function b(t){var e=function(e){return{max:Math.max.apply(null,t.map(function(t){return t[e]+t.radius})),min:Math.min.apply(null,t.map(function(t){return t[e]-t.radius}))}};return{xRange:e("x"),yRange:e("y")}}function F(t,e,n){null===e&&(e=Math.PI/2);var r,i,c=[];for(i in t)if(t.hasOwnProperty(i)){var o=t[i];c.push({x:o.x,y:o.y,radius:o.radius,setid:i})}var a=y(c);for(r=0;r<a.length;++r){d(a[r],e,n);var u=b(a[r]);a[r].size=(u.xRange.max-u.xRange.min)*(u.yRange.max-u.yRange.min),a[r].bounds=u}a.sort(function(t,e){return e.size-t.size});var s=(c=a[0]).bounds,f=(s.xRange.max-s.xRange.min)/50;function l(t,e,n){if(t){var r,i,o,a=t.bounds;e?r=s.xRange.max-a.xRange.min+f:(r=s.xRange.max-a.xRange.max,(o=(a.xRange.max-a.xRange.min)/2-(s.xRange.max-s.xRange.min)/2)<0&&(r+=o)),n?i=s.yRange.max-a.yRange.min+f:(i=s.yRange.max-a.yRange.max,(o=(a.yRange.max-a.yRange.min)/2-(s.yRange.max-s.yRange.min)/2)<0&&(i+=o));for(var u=0;u<t.length;++u)t[u].x+=r,t[u].y+=i,c.push(t[u])}}for(var h=1;h<a.length;)l(a[h],!0,!1),l(a[h+1],!1,!0),l(a[h+2],!0,!0),h+=3,s=b(c);var p={};for(r=0;r<c.length;++r)p[c[r].setid]=c[r];return p}function N(t,e,n,r){var i=[],o=[];for(var a in t)t.hasOwnProperty(a)&&(o.push(a),i.push(t[a]));e-=2*r,n-=2*r;var u=b(i),c=u.xRange,s=u.yRange;if(c.max==c.min||s.max==s.min)return console.log("not scaling solution: zero size detected"),t;for(var f=e/(c.max-c.min),l=n/(s.max-s.min),h=Math.min(l,f),p=(e-(c.max-c.min)*h)/2,v=(n-(s.max-s.min)*h)/2,g={},d=0;d<i.length;++d){var y=i[d];g[o[d]]={radius:h*y.radius,x:r+p+(y.x-c.min)*h,y:r+v+(y.y-s.min)*h}}return g}function z(v,g){return function(){for(var t,e=I.select(this),n=e.datum(),r=v[n.sets[0]].radius||50,i=g(n)||"",o=i.split(/\s+/).reverse(),a=(i.length+o.length)/3,u=o.pop(),c=[u],s=0,f=e.text(null).append("tspan").text(u);u=o.pop();)c.push(u),t=c.join(" "),f.text(t),t.length>a&&f.node().getComputedTextLength()>r&&(c.pop(),f.text(c.join(" ")),c=[u],f=e.append("tspan").text(u),s++);var l=.35-1.1*s/2,h=e.attr("x"),p=e.attr("y");e.selectAll("tspan").attr("x",h).attr("y",p).attr("dy",function(t,e){return l+1.1*e+"em"})}}function m(t,e,n){var r,i,o=e[0].radius-S(e[0],t);for(r=1;r<e.length;++r)(i=e[r].radius-S(e[r],t))<=o&&(o=i);for(r=0;r<n.length;++r)(i=S(n[r],t)-n[r].radius)<=o&&(o=i);return o}function x(e,n){var t,r=[];for(t=0;t<e.length;++t){var i=e[t];r.push({x:i.x,y:i.y}),r.push({x:i.x+i.radius/2,y:i.y}),r.push({x:i.x-i.radius/2,y:i.y}),r.push({x:i.x,y:i.y+i.radius/2}),r.push({x:i.x,y:i.y-i.radius/2})}var o=r[0],a=m(r[0],e,n);for(t=1;t<r.length;++t){var u=m(r[t],e,n);a<=u&&(o=r[t],a=u)}var c=p(function(t){return-1*m({x:t[0],y:t[1]},e,n)},[o.x,o.y],{maxIterations:500,minErrorDelta:1e-10}).x,s={x:c[0],y:c[1]},f=!0;for(t=0;t<e.length;++t)if(S(s,e[t])>e[t].radius){f=!1;break}for(t=0;t<n.length;++t)if(S(s,n[t])<n[t].radius){f=!1;break}if(!f)if(1==e.length)s={x:e[0].x,y:e[0].y};else{var l={};h(e,l),s=0===l.arcs.length?{x:0,y:-1e3,disjoint:!0}:1==l.arcs.length?{x:l.arcs[0].circle.x,y:l.arcs[0].circle.y}:n.length?x(e,[]):M(l.arcs.map(function(t){return t.p1}))}return s}function j(t){var e={},n=[];for(var r in t)n.push(r),e[r]=[];for(var i=0;i<n.length;i++)for(var o=t[n[i]],a=i+1;a<n.length;++a){var u=t[n[a]],c=S(o,u);c+u.radius<=o.radius+1e-10?e[n[a]].push(n[i]):c+o.radius<=u.radius+1e-10&&e[n[i]].push(n[a])}return e}function q(t,e){for(var n={},r=j(t),i=0;i<e.length;++i){for(var o=e[i].sets,a={},u={},c=0;c<o.length;++c){a[o[c]]=!0;for(var s=r[o[c]],f=0;f<s.length;++f)u[s[f]]=!0}var l=[],h=[];for(var p in t)p in a?l.push(t[p]):p in u||h.push(t[p]);var v=x(l,h);(n[o]=v).disjoint&&0<e[i].size&&console.log("WARNING: area "+o+" not represented on screen")}return n}function s(t,e,n){var r=[];return r.push("\nM",t,e),r.push("\nm",-n,0),r.push("\na",n,n,0,1,0,2*n,0),r.push("\na",n,n,0,1,0,2*-n,0),r.join(" ")}function V(t){var e=t.split(" ");return{x:parseFloat(e[1]),y:parseFloat(e[2]),radius:-parseFloat(e[4])}}function Y(t){var e={};h(t,e);var n=e.arcs;if(0===n.length)return"M 0 0";if(1==n.length){var r=n[0].circle;return s(r.x,r.y,r.radius)}for(var i=["\nM",n[0].p2.x,n[0].p2.y],o=0;o<n.length;++o){var a=n[o],u=a.circle.radius,c=a.width>u;i.push("\nA",u,u,0,c?1:0,1,a.p1.x,a.p1.y)}return i.join(" ")}t.intersectionArea=h,t.circleCircleIntersection=k,t.circleOverlap=c,t.circleArea=w,t.distance=S,t.venn=o,t.greedyLayout=a,t.scaleSolution=N,t.normalizeSolution=F,t.bestInitialLayout=f,t.lossFunction=B,t.disjointCluster=y,t.distanceFromIntersectArea=D,t.VennDiagram=function(){var x=600,j=350,_=15,O=1e3,w=Math.PI/2,S=!0,M=!0,E=!0,C=null,P=null,n={},r=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],i=0,A=function(t){if(t in n)return n[t];var e=n[t]=r[i];return r.length<=(i+=1)&&(i=0),e},T=o,k=B;function e(t){var e=t.datum(),n={};e.forEach(function(t){0==t.size&&1==t.sets.length&&(n[t.sets[0]]=1)}),e=e.filter(function(t){return!t.sets.some(function(t){return t in n})});var i={},r={};if(0<e.length){var o=T(e,{lossFunction:k});S&&(o=F(o,w,P)),i=N(o,x,j,_),r=q(i,e)}var a={};function u(t){return t.sets in a?a[t.sets]:1==t.sets.length?""+t.sets[0]:void 0}e.forEach(function(t){t.label&&(a[t.sets]=t.label)}),t.selectAll("svg").data([i]).enter().append("svg");var c=t.select("svg").attr("width",x).attr("height",j),s={},f=!1;c.selectAll(".venn-area path").each(function(t){var e=I.select(this).attr("d");1==t.sets.length&&e&&(f=!0,s[t.sets[0]]=V(e))});var l=function(t){return function(r){return Y(t.sets.map(function(t){var e=s[t],n=i[t];return e||(e={x:x/2,y:j/2,radius:1}),n||(n={x:x/2,y:j/2,radius:1}),{x:e.x*(1-r)+n.x*r,y:e.y*(1-r)+n.y*r,radius:e.radius*(1-r)+n.radius*r}}))}},h=c.selectAll(".venn-area").data(e,function(t){return t.sets}),p=h.enter().append("g").attr("class",function(t){return"venn-area venn-"+(1==t.sets.length?"circle":"intersection")}).attr("data-venn-sets",function(t){return t.sets.join("_")}),v=p.append("path"),g=p.append("text").attr("class","label").text(function(t){return u(t)}).attr("text-anchor","middle").attr("dy",".35em").attr("x",x/2).attr("y",j/2);E&&(v.style("fill-opacity","0").filter(function(t){return 1==t.sets.length}).style("fill",function(t){return A(t.sets)}).style("fill-opacity",".25"),g.style("fill",function(t){return 1==t.sets.length?A(t.sets):"#444"}));var d=t;f?(d=t.transition("venn").duration(O)).selectAll("path").attrTween("d",l):d.selectAll("path").attr("d",function(t){return Y(t.sets.map(function(t){return i[t]}))});var y=d.selectAll("text").filter(function(t){return t.sets in r}).text(function(t){return u(t)}).attr("x",function(t){return Math.floor(r[t.sets].x)}).attr("y",function(t){return Math.floor(r[t.sets].y)});M&&(f?"on"in y?y.on("end",z(i,u)):y.each("end",z(i,u)):y.each(z(i,u)));var b=h.exit().transition("venn").duration(O).remove();b.selectAll("path").attrTween("d",l);var m=b.selectAll("text").attr("x",x/2).attr("y",j/2);return null!==C&&(g.style("font-size","0px"),y.style("font-size",C),m.style("font-size","0px")),{circles:i,textCentres:r,nodes:h,enter:p,update:d,exit:b}}return e.wrap=function(t){return arguments.length?(M=t,e):M},e.width=function(t){return arguments.length?(x=t,e):x},e.height=function(t){return arguments.length?(j=t,e):j},e.padding=function(t){return arguments.length?(_=t,e):_},e.colours=function(t){return arguments.length?(A=t,e):A},e.fontSize=function(t){return arguments.length?(C=t,e):C},e.duration=function(t){return arguments.length?(O=t,e):O},e.layoutFunction=function(t){return arguments.length?(T=t,e):T},e.normalize=function(t){return arguments.length?(S=t,e):S},e.styled=function(t){return arguments.length?(E=t,e):E},e.orientation=function(t){return arguments.length?(w=t,e):w},e.orientationOrder=function(t){return arguments.length?(P=t,e):P},e.lossFunction=function(t){return arguments.length?(k=t,e):k},e},t.wrapText=z,t.computeTextCentres=q,t.computeTextCentre=x,t.sortAreas=function(t,n){for(var e=j(t.selectAll("svg").datum()),r={},i=0;i<n.sets.length;++i){var o=n.sets[i];for(var a in e)for(var u=e[a],c=0;c<u.length;++c)if(u[c]==o){r[a]=!0;break}}function s(t){for(var e=0;e<t.length;++e)if(!(t[e]in r))return!1;return!0}t.selectAll("g").sort(function(t,e){return t.sets.length!=e.sets.length?t.sets.length-e.sets.length:t==n?s(e.sets)?-1:1:e==n?s(t.sets)?1:-1:e.size-t.size})},t.circlePath=s,t.circleFromPath=V,t.intersectionAreaPath=Y,Object.defineProperty(t,"__esModule",{value:!0})},"object"===u(e)&&void 0!==t?a(e,n(6),n(146)):(i=[e,n(6),n(146)],void 0===(o="function"==typeof(r=a)?r.apply(e,i):r)||(t.exports=o))},function(t,e,n){"use strict";var r=n(48),i=n(140);e.a=function(t){return Object(i.a)(Object(r.a)(t).call(document.documentElement))}},function(t,e,n){"use strict";var l=n(7),h=n(80);e.a=function(t){"function"!=typeof t&&(t=Object(h.a)(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a,u=e[i],c=u.length,s=r[i]=new Array(c),f=0;f<c;++f)(o=u[f])&&(a=t.call(o,o.__data__,f,u))&&("__data__"in o&&(a.__data__=o.__data__),s[f]=a);return new l.a(r,this._parents)}},function(t,e,n){"use strict";var f=n(7),l=n(141);e.a=function(t){"function"!=typeof t&&(t=Object(l.a)(t));for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,u=e[o],c=u.length,s=0;s<c;++s)(a=u[s])&&(r.push(t.call(a,a.__data__,s,u)),i.push(a));return new f.a(r,i)}},function(t,e,n){"use strict";var f=n(7),l=n(142);e.a=function(t){"function"!=typeof t&&(t=Object(l.a)(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],u=a.length,c=r[i]=[],s=0;s<u;++s)(o=a[s])&&t.call(o,o.__data__,s,a)&&c.push(o);return new f.a(r,this._parents)}},function(t,e,n){"use strict";var j=n(7),v=n(143),_=n(372),g="$";function O(t,e,n,r,i,o){for(var a,u=0,c=e.length,s=o.length;u<s;++u)(a=e[u])?(a.__data__=o[u],r[u]=a):n[u]=new v.a(t,o[u]);for(;u<c;++u)(a=e[u])&&(i[u]=a)}function w(t,e,n,r,i,o,a){var u,c,s,f={},l=e.length,h=o.length,p=new Array(l);for(u=0;u<l;++u)(c=e[u])&&(p[u]=s=g+a.call(c,c.__data__,u,e),s in f?i[u]=c:f[s]=c);for(u=0;u<h;++u)(c=f[s=g+a.call(t,o[u],u,o)])?((r[u]=c).__data__=o[u],f[s]=null):n[u]=new v.a(t,o[u]);for(u=0;u<l;++u)(c=e[u])&&f[p[u]]===c&&(i[u]=c)}e.a=function(t,e){if(!t)return p=new Array(this.size()),s=-1,this.each(function(t){p[++s]=t}),p;var n=e?w:O,r=this._parents,i=this._groups;"function"!=typeof t&&(t=Object(_.a)(t));for(var o=i.length,a=new Array(o),u=new Array(o),c=new Array(o),s=0;s<o;++s){var f=r[s],l=i[s],h=l.length,p=t.call(f,f&&f.__data__,s,r),v=p.length,g=u[s]=new Array(v),d=a[s]=new Array(v);n(f,l,g,d,c[s]=new Array(h),p,e);for(var y,b,m=0,x=0;m<v;++m)if(y=g[m]){for(x<=m&&(x=m+1);!(b=d[x])&&++x<v;);y._next=b||null}}return(a=new j.a(a,r))._enter=u,a._exit=c,a}},function(t,e,n){"use strict";e.a=function(t){return function(){return t}}},function(t,e,n){"use strict";var r=n(144),i=n(7);e.a=function(){return new i.a(this._exit||this._groups.map(r.a),this._parents)}},function(t,e,n){"use strict";var v=n(7);e.a=function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var c,s=e[u],f=n[u],l=s.length,h=a[u]=new Array(l),p=0;p<l;++p)(c=s[p]||f[p])&&(h[p]=c);for(;u<r;++u)a[u]=e[u];return new v.a(a,this._parents)}},function(t,e,n){"use strict";e.a=function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];0<=--o;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this}},function(t,e,n){"use strict";var l=n(7);function h(t,e){return t<e?-1:e<t?1:e<=t?0:NaN}e.a=function(n){function t(t,e){return t&&e?n(t.__data__,e.__data__):!t-!e}n||(n=h);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o<r;++o){for(var a,u=e[o],c=u.length,s=i[o]=new Array(c),f=0;f<c;++f)(a=u[f])&&(s[f]=a);s.sort(t)}return new l.a(i,this._parents).order()}},function(t,e,n){"use strict";e.a=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}},function(t,e,n){"use strict";e.a=function(){var t=new Array(this.size()),e=-1;return this.each(function(){t[++e]=this}),t}},function(t,e,n){"use strict";e.a=function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}},function(t,e,n){"use strict";e.a=function(){var t=0;return this.each(function(){++t}),t}},function(t,e,n){"use strict";e.a=function(){return!this.node()}},function(t,e,n){"use strict";e.a=function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,u=o.length;a<u;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this}},function(t,e,n){"use strict";var i=n(78);e.a=function(t,e){var n=Object(i.a)(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(e,n){return function(){var t=n.apply(this,arguments);null==t?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}}:function(e,n){return function(){var t=n.apply(this,arguments);null==t?this.removeAttribute(e):this.setAttribute(e,t)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))}},function(t,e,n){"use strict";e.a=function(t,e){return 1<arguments.length?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(e,n){return function(){var t=n.apply(this,arguments);null==t?delete this[e]:this[e]=t}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]}},function(t,e,n){"use strict";function a(t){return t.trim().split(/^|\s+/)}function u(t){return t.classList||new r(t)}function r(t){this._node=t,this._names=a(t.getAttribute("class")||"")}function c(t,e){for(var n=u(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function s(t,e){for(var n=u(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}r.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);0<=e&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return 0<=this._names.indexOf(t)}},e.a=function(t,e){var n=a(t+"");if(arguments.length<2){for(var r=u(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?c:s)(this,t)}}:e?function(t){return function(){c(this,t)}}:function(t){return function(){s(this,t)}})(n,e))}},function(t,e,n){"use strict";function r(){this.textContent=""}e.a=function(t){return arguments.length?this.each(null==t?r:("function"==typeof t?function(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent}},function(t,e,n){"use strict";function r(){this.innerHTML=""}e.a=function(t){return arguments.length?this.each(null==t?r:("function"==typeof t?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML}},function(t,e,n){"use strict";function r(){this.nextSibling&&this.parentNode.appendChild(this)}e.a=function(){return this.each(r)}},function(t,e,n){"use strict";function r(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}e.a=function(){return this.each(r)}},function(t,e,n){"use strict";var r=n(48);e.a=function(t){var e="function"==typeof t?t:Object(r.a)(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}},function(t,e,n){"use strict";var i=n(48),o=n(80);function a(){return null}e.a=function(t,e){var n="function"==typeof t?t:Object(i.a)(t),r=null==e?a:"function"==typeof e?e:Object(o.a)(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}},function(t,e,n){"use strict";function r(){var t=this.parentNode;t&&t.removeChild(this)}e.a=function(){return this.each(r)}},function(t,e,n){"use strict";function r(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function i(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}e.a=function(t){return this.select(t?i:r)}},function(t,e,n){"use strict";e.a=function(t){return arguments.length?this.property("__data__",t):this.node().__data__}},function(t,e,n){"use strict";var o=n(81);function r(t,e,n){var r=Object(o.a)(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}e.a=function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return r(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return r(this,t,e)}})(t,e))}},function(t,e,n){"use strict";e.a=i;var r=0;function i(){return new o}function o(){this._="@"+(++r).toString(36)}o.prototype=i.prototype={constructor:o,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}}},function(t,e,n){"use strict";var r=n(83),i=n(49);e.a=function(t){var e=Object(r.a)();return e.changedTouches&&(e=e.changedTouches[0]),Object(i.a)(t,e)}},function(t,e,n){"use strict";var r=n(7);e.a=function(t){return"string"==typeof t?new r.a([document.querySelectorAll(t)],[document.documentElement]):new r.a([null==t?[]:t],r.c)}},function(t,e,n){"use strict";var a=n(83),u=n(49);e.a=function(t,e,n){arguments.length<3&&(n=e,e=Object(a.a)().changedTouches);for(var r,i=0,o=e?e.length:0;i<o;++i)if((r=e[i]).identifier===n)return Object(u.a)(t,r);return null}},function(t,e,n){"use strict";var o=n(83),a=n(49);e.a=function(t,e){null==e&&(e=Object(o.a)().touches);for(var n=0,r=e?e.length:0,i=new Array(r);n<r;++n)i[n]=Object(a.a)(t,e[n]);return i}},function(t,e,n){"use strict";var r=n(6),i=n(402),o=n(407);r.selection.prototype.interrupt=i.a,r.selection.prototype.transition=o.a},function(t,e,n){"use strict";var r=n(147);e.a=function(t){return this.each(function(){Object(r.a)(this,t)})}},function(t,e,n){"use strict";var r=n(404);n.d(e,"a",function(){return r.a})},function(t,e,n){"use strict";var o={value:function(){}};function r(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r)throw new Error("illegal type: "+t);r[t]=[]}return new i(r)}function i(t){this._=t}function c(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function s(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=o,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}i.prototype=r.prototype={constructor:i,on:function(t,e){var n,r,i=this._,o=(r=i,(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(0<=n&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})),a=-1,u=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<u;)if(n=(t=o[a]).type)i[n]=s(i[n],t.name,e);else if(null==e)for(n in i)i[n]=s(i[n],t.name,null);return this}for(;++a<u;)if((n=(t=o[a]).type)&&(n=c(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new i(t)},call:function(t,e){if(0<(n=arguments.length-2))for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}},e.a=r},function(t,e,n){"use strict";var i=n(84);e.a=function(e,n,t){var r=new i.a;return n=null==n?0:+n,r.restart(function(t){r.stop(),e(t+n)},n,t),r}},function(t,e,n){"use strict";n(84)},function(t,e,n){"use strict";var f=n(14),l=n(8),r=n(436),h=n(148),p={time:null,delay:0,duration:250,ease:r.a};function v(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))return p.time=Object(h.a)(),p;return n}e.a=function(t){var e,n;t instanceof f.a?(e=t._id,t=t._name):(e=Object(f.c)(),(n=p).time=Object(h.a)(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],c=u.length,s=0;s<c;++s)(a=u[s])&&Object(l.e)(a,t,e,s,u,n||v(a,e));return new f.a(r,this._parents,t,e)}},function(t,e,n){"use strict";var i=n(85),o=n(6),a=n(51),u=n(157);e.a=function(t,e){var n=Object(o.namespace)(t),r="transform"===n?i.e:u.a;return this.attrTween(t,"function"==typeof e?(n.local?function(n,r,i){var o,a,u;return function(){var t,e=i(this);if(null!=e)return(t=this.getAttributeNS(n.space,n.local))===e?null:t===o&&e===a?u:u=r(o=t,a=e);this.removeAttributeNS(n.space,n.local)}}:function(n,r,i){var o,a,u;return function(){var t,e=i(this);if(null!=e)return(t=this.getAttribute(n))===e?null:t===o&&e===a?u:u=r(o=t,a=e);this.removeAttribute(n)}})(n,r,Object(a.b)(this,"attr."+t,e)):null==e?(n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(n):(n.local?function(e,n,r){var i,o;return function(){var t=this.getAttributeNS(e.space,e.local);return t===r?null:t===i?o:o=n(i=t,r)}}:function(e,n,r){var i,o;return function(){var t=this.getAttribute(e);return t===r?null:t===i?o:o=n(i=t,r)}})(n,r,e+""))}},function(t,e,n){"use strict";e.a=v,e.b=x;var r=n(88),u=n(87),c=n(149),s=.95047,f=1,l=1.08883,i=4/29,o=6/29,a=3*o*o,h=o*o*o;function p(t){if(t instanceof g)return new g(t.l,t.a,t.b,t.opacity);if(t instanceof j){var e=t.h*c.a;return new g(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof u.b||(t=Object(u.h)(t));var n=m(t.r),r=m(t.g),i=m(t.b),o=d((.4124564*n+.3575761*r+.1804375*i)/s),a=d((.2126729*n+.7151522*r+.072175*i)/f);return new g(116*a-16,500*(o-a),200*(a-d((.0193339*n+.119192*r+.9503041*i)/l)),t.opacity)}function v(t,e,n,r){return 1===arguments.length?p(t):new g(t,e,n,null==r?1:r)}function g(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function d(t){return h<t?Math.pow(t,1/3):t/a+i}function y(t){return o<t?t*t*t:a*(t-i)}function b(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function m(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function x(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof j)return new j(t.h,t.c,t.l,t.opacity);t instanceof g||(t=p(t));var e=Math.atan2(t.b,t.a)*c.b;return new j(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new j(t,e,n,null==r?1:r)}function j(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}Object(r.a)(g,v,Object(r.b)(u.a,{brighter:function(t){return new g(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new g(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return t=f*y(t),e=s*y(e),n=l*y(n),new u.b(b(3.2404542*e-1.5371385*t-.4985314*n),b(-.969266*e+1.8760108*t+.041556*n),b(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),Object(r.a)(j,x,Object(r.b)(u.a,{brighter:function(t){return new j(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new j(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return p(this).rgb()}}))},function(t,e,n){"use strict";e.a=i;var r=n(88),s=n(87),f=n(149),l=-.29227,h=-.90649,p=1.97294,v=p*h,g=1.78277*p,d=1.78277*l- -.14861*h;function i(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof y)return new y(t.h,t.s,t.l,t.opacity);t instanceof s.b||(t=Object(s.h)(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(d*r+v*e-g*n)/(d+v-g),o=r-i,a=(p*(n-i)-l*o)/h,u=Math.sqrt(a*a+o*o)/(p*i*(1-i)),c=u?Math.atan2(a,o)*f.b-120:NaN;return new y(c<0?c+360:c,u,i,t.opacity)}(t):new y(t,e,n,null==r?1:r)}function y(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Object(r.a)(y,i,Object(r.b)(s.a,{brighter:function(t){return t=null==t?s.c:Math.pow(s.c,t),new y(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?s.d:Math.pow(s.d,t),new y(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*f.a,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new s.b(255*(e+n*(-.14861*r+1.78277*i)),255*(e+n*(l*r+h*i)),255*(e+n*(p*r)),this.opacity)}}))},function(t,e,n){"use strict"},function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return a});var y=n(50),r=n(413);function i(h,p,v,g){function d(t){return t.length?t.pop()+" ":""}return function(t,e){var n,r,i,o,a,u,c,s,f=[],l=[];return t=h(t),e=h(e),function(t,e,n,r,i,o){if(t!==n||e!==r){var a=i.push("translate(",null,p,null,v);o.push({i:a-4,x:Object(y.a)(t,n)},{i:a-2,x:Object(y.a)(e,r)})}else(n||r)&&i.push("translate("+n+p+r+v)}(t.translateX,t.translateY,e.translateX,e.translateY,f,l),n=t.rotate,r=e.rotate,i=f,o=l,n!==r?(180<n-r?r+=360:180<r-n&&(n+=360),o.push({i:i.push(d(i)+"rotate(",null,g)-2,x:Object(y.a)(n,r)})):r&&i.push(d(i)+"rotate("+r+g),a=t.skewX,u=e.skewX,c=f,s=l,a!==u?s.push({i:c.push(d(c)+"skewX(",null,g)-2,x:Object(y.a)(a,u)}):u&&c.push(d(c)+"skewX("+u+g),function(t,e,n,r,i,o){if(t!==n||e!==r){var a=i.push(d(i)+"scale(",null,",",null,")");o.push({i:a-4,x:Object(y.a)(t,n)},{i:a-2,x:Object(y.a)(e,r)})}else 1===n&&1===r||i.push(d(i)+"scale("+n+","+r+")")}(t.scaleX,t.scaleY,e.scaleX,e.scaleY,f,l),t=e=null,function(t){for(var e,n=-1,r=l.length;++n<r;)f[(e=l[n]).i]=e.x(t);return f.join("")}}}var o=i(r.a,"px, ","px)","deg)"),a=i(r.b,", ",")",")")},function(t,e,n){"use strict";e.a=function(t){if("none"===t)return u.b;r||(r=document.createElement("DIV"),i=document.documentElement,o=document.defaultView);return r.style.transform=t,t=o.getComputedStyle(i.appendChild(r),null).getPropertyValue("transform"),i.removeChild(r),t=t.slice(7,-1).split(","),Object(u.a)(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5])},e.b=function(t){if(null==t)return u.b;a||(a=document.createElementNS("http://www.w3.org/2000/svg","g"));return a.setAttribute("transform",t),(t=a.transform.baseVal.consolidate())?(t=t.matrix,Object(u.a)(t.a,t.b,t.c,t.d,t.e,t.f)):u.b};var r,i,o,a,u=n(414)},function(t,e,n){"use strict";n.d(e,"b",function(){return r});var s=180/Math.PI,r={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};e.a=function(t,e,n,r,i,o){var a,u,c;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(c=t*n+e*r)&&(n-=t*c,r-=e*c),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,c/=u),t*r<e*n&&(t=-t,e=-e,c=-c,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*s,skewX:Math.atan(c)*s,scaleX:a,scaleY:u}}},function(t,e,n){"use strict";Math.SQRT2},function(t,e,n){"use strict";var u=n(19),c=n(31);function r(a){return function(e,t){var n=a((e=Object(u.d)(e)).h,(t=Object(u.d)(t)).h),r=Object(c.a)(e.s,t.s),i=Object(c.a)(e.l,t.l),o=Object(c.a)(e.opacity,t.opacity);return function(t){return e.h=n(t),e.s=r(t),e.l=i(t),e.opacity=o(t),e+""}}}r(c.c),r(c.a)},function(t,e,n){"use strict";n(19),n(31)},function(t,e,n){"use strict";var u=n(19),c=n(31);function r(a){return function(e,t){var n=a((e=Object(u.c)(e)).h,(t=Object(u.c)(t)).h),r=Object(c.a)(e.c,t.c),i=Object(c.a)(e.l,t.l),o=Object(c.a)(e.opacity,t.opacity);return function(t){return e.h=n(t),e.c=r(t),e.l=i(t),e.opacity=o(t),e+""}}}r(c.c),r(c.a)},function(t,e,n){"use strict";var c=n(19),s=n(31);function r(u){return function t(a){function e(e,t){var n=u((e=Object(c.b)(e)).h,(t=Object(c.b)(t)).h),r=Object(s.a)(e.s,t.s),i=Object(s.a)(e.l,t.l),o=Object(s.a)(e.opacity,t.opacity);return function(t){return e.h=n(t),e.s=r(t),e.l=i(Math.pow(t,a)),e.opacity=o(t),e+""}}return a=+a,e.gamma=t,e}(1)}r(s.c),r(s.a)},function(t,e,n){"use strict"},function(t,e,n){"use strict";var i=n(6);e.a=function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=Object(i.namespace)(t);return this.tween(n,(r.local?function(r,t){function e(){var e=this,n=t.apply(e,arguments);return n&&function(t){e.setAttributeNS(r.space,r.local,n(t))}}return e._value=t,e}:function(r,t){function e(){var e=this,n=t.apply(e,arguments);return n&&function(t){e.setAttribute(r,n(t))}}return e._value=t,e})(r,e))}},function(t,e,n){"use strict";var r=n(8);e.a=function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){Object(r.g)(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){Object(r.g)(this,t).delay=e}})(e,t)):Object(r.f)(this.node(),e).delay}},function(t,e,n){"use strict";var r=n(8);e.a=function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){Object(r.h)(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){Object(r.h)(this,t).duration=e}})(e,t)):Object(r.f)(this.node(),e).duration}},function(t,e,n){"use strict";var r=n(8);e.a=function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){Object(r.h)(this,t).ease=e}}(e,t)):Object(r.f)(this.node(),e).ease}},function(t,e,n){"use strict";var f=n(6),l=n(14);e.a=function(t){"function"!=typeof t&&(t=Object(f.matcher)(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],u=a.length,c=r[i]=[],s=0;s<u;++s)(o=a[s])&&t.call(o,o.__data__,s,a)&&c.push(o);return new l.a(r,this._parents,this._name,this._id)}},function(t,e,n){"use strict";var v=n(14);e.a=function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var c,s=e[u],f=n[u],l=s.length,h=a[u]=new Array(l),p=0;p<l;++p)(c=s[p]||f[p])&&(h[p]=c);for(;u<r;++u)a[u]=e[u];return new v.a(a,this._parents,this._name,this._id)}},function(t,e,n){"use strict";var s=n(8);e.a=function(t,e){var n,r,i,o,a,u,c=this._id;return arguments.length<2?Object(s.f)(this.node(),c).on.on(t):this.each((n=c,i=e,u=((r=t)+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return 0<=e&&(t=t.slice(0,e)),!t||"start"===t})?s.g:s.h,function(){var t=u(this,n),e=t.on;e!==o&&(a=(o=e).copy()).on(r,i),t.on=a}))}},function(t,e,n){"use strict";e.a=function(){return this.on("end.remove",(n=this._id,function(){var t=this.parentNode;for(var e in this.__transition)if(+e!==n)return;t&&t.removeChild(this)}));var n}},function(t,e,n){"use strict";var p=n(6),v=n(14),g=n(8);e.a=function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Object(p.selector)(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var u,c,s=r[a],f=s.length,l=o[a]=new Array(f),h=0;h<f;++h)(u=s[h])&&(c=t.call(u,u.__data__,h,s))&&("__data__"in u&&(c.__data__=u.__data__),l[h]=c,Object(g.e)(l[h],e,n,h,l,Object(g.f)(u,n)));return new v.a(o,this._parents,e,n)}},function(t,e,n){"use strict";var y=n(6),b=n(14),m=n(8);e.a=function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Object(y.selectorAll)(t));for(var r=this._groups,i=r.length,o=[],a=[],u=0;u<i;++u)for(var c,s=r[u],f=s.length,l=0;l<f;++l)if(c=s[l]){for(var h,p=t.call(c,c.__data__,l,s),v=Object(m.f)(c,n),g=0,d=p.length;g<d;++g)(h=p[g])&&Object(m.e)(h,e,n,g,p,v);o.push(p),a.push(c)}return new b.a(o,a,e,n)}},function(t,e,n){"use strict";var r=n(6).selection.prototype.constructor;e.a=function(){return new r(this._groups,this._parents)}},function(t,e,n){"use strict";var j=n(85),_=n(6),O=n(51),w=n(157);e.a=function(t,e,n){var r,i,o,a,u,c,s,f,l,h,p,v,g,d,y,b,m,x="transform"==(t+="")?j.d:w.a;return null==e?this.styleTween(t,(g=t,d=x,function(){var t=Object(_.style)(this,g),e=(this.style.removeProperty(g),Object(_.style)(this,g));return t===e?null:t===y&&e===b?m:m=d(y=t,b=e)})).on("end.style."+t,(v=t,function(){this.style.removeProperty(v)})):this.styleTween(t,"function"==typeof e?(c=t,s=x,f=Object(O.b)(this,"style."+t,e),function(){var t=Object(_.style)(this,c),e=f(this);return null==e&&(this.style.removeProperty(c),e=Object(_.style)(this,c)),t===e?null:t===l&&e===h?p:p=s(l=t,h=e)}):(r=t,i=x,o=e+"",function(){var t=Object(_.style)(this,r);return t===o?null:t===a?u:u=i(a=t,o)}),n)}},function(t,e,n){"use strict";e.a=function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(r,t,i){function e(){var e=this,n=t.apply(e,arguments);return n&&function(t){e.style.setProperty(r,n(t),i)}}return e._value=t,e}(t,e,null==n?"":n))}},function(t,e,n){"use strict";var r=n(51);e.a=function(t){return this.tween("text","function"==typeof t?(n=Object(r.b)(this,"text",t),function(){var t=n(this);this.textContent=null==t?"":t}):(e=null==t?"":t+"",function(){this.textContent=e}));var e,n}},function(t,e,n){"use strict";var l=n(14),h=n(8);e.a=function(){for(var t=this._name,e=this._id,n=Object(l.c)(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],c=u.length,s=0;s<c;++s)if(a=u[s]){var f=Object(h.f)(a,e);Object(h.e)(a,t,n,s,u,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new l.a(r,this._parents,t,n)}},function(t,e,n){"use strict";n(437),n(438);var r=n(439);n.d(e,"a",function(){return r.a});n(440),n(441),n(442),n(443),n(444),n(445),n(446)},function(t,e,n){"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict";e.a=function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}},function(t,e,n){"use strict";(function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n})(3),function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3)},function(t,e,n){"use strict";Math.PI},function(t,e,n){"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict"},function(t,e,n){"use strict";(function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n})(1.70158),function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(1.70158),function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158)},function(t,e,n){"use strict";var o=2*Math.PI;(function e(n,r){var i=Math.asin(1/(n=Math.max(1,n)))*(r/=o);function t(t){return n*Math.pow(2,10*--t)*Math.sin((i-t)/r)}return t.amplitude=function(t){return e(t,r*o)},t.period=function(t){return e(n,t)},t})(1,.3),function e(n,r){var i=Math.asin(1/(n=Math.max(1,n)))*(r/=o);function t(t){return 1-n*Math.pow(2,-10*(t=+t))*Math.sin((t+i)/r)}return t.amplitude=function(t){return e(t,r*o)},t.period=function(t){return e(n,t)},t}(1,.3),function e(n,r){var i=Math.asin(1/(n=Math.max(1,n)))*(r/=o);function t(t){return((t=2*t-1)<0?n*Math.pow(2,10*t)*Math.sin((i-t)/r):2-n*Math.pow(2,-10*t)*Math.sin((i+t)/r))/2}return t.amplitude=function(t){return e(t,r*o)},t.period=function(t){return e(n,t)},t}(1,.3)},function(t,e,n){"use strict";var o=n(14),a=n(8),u=[null];e.a=function(t,e){var n,r,i=t.__transition;if(i)for(r in e=null==e?null:e+"",i)if((n=i[r]).state>a.c&&n.name===e)return new o.a([[t]],u,e,+r);return null}},function(t,e,n){var u=n(0),r=n(1),c=n(159),i=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]?)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/,o="linear",a="cat",s="time",f=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.defs={},u.assign(this,t)}return e.prototype._getDef=function(t){var e=this.defs,n=null;return(r.scales[t]||e[t])&&(n=u.mix({},r.scales[t]),u.each(e[t],function(t,e){u.isNil(t)?delete n[e]:n[e]=t})),n},e.prototype._getDefaultType=function(t,e){var n=o,r=u.Array.firstValue(e,t);return u.isArray(r)&&(r=r[0]),i.test(r)?n=s:u.isString(r)&&(n=a),n},e.prototype._getScaleCfg=function(t,e,n){var r={field:e},i=u.Array.values(n,e);if(r.values=i,!c.isCategory(t)&&"time"!==t){var o=u.Array.getRange(i);r.min=o.min,r.max=o.max,r.nice=!0}return"time"===t&&(r.nice=!1),r},e.prototype.createScale=function(t,e){var n=this._getDef(t),r=void 0;if(!e||!e.length)return r=n&&n.type?c[n.type](n):c.identity({value:t,field:t.toString(),values:[t]});var i=u.Array.firstValue(e,t);if(u.isNumber(t)||u.isNil(i)&&!n)r=c.identity({value:t,field:t.toString(),values:[t]});else{var o=void 0;n&&(o=n.type),o=o||this._getDefaultType(t,e);var a=this._getScaleCfg(o,t,e);n&&u.mix(a,n),r=c[o](a)}return r},e}();t.exports=f},function(t,e,n){var j=n(0),_=n(160),O=n(1);t.exports=function(t){var e=t.min,n=t.max,r=t.interval,i=[],o=t.minCount||5,a=t.maxCount||7,u=o===a,c=j.isNil(t.minLimit)?-1/0:t.minLimit,s=j.isNil(t.maxLimit)?1/0:t.maxLimit,f=(o+a)/2,l=f,h=t.snapArray?t.snapArray:u?O.snapCountArray:O.snapArray;if(e===c&&n===s&&u&&(r=(n-e)/(l-1)),j.isNil(e)&&(e=0),j.isNil(n)&&(n=0),n===e&&(0===e?n=1:0<e?e=0:n=0,n-e<5&&!r&&1<=n-e&&(r=1)),j.isNil(r)){var p=(n-e)/(f-1);r=_.snapFactorTo(p,h,"ceil"),a!==o&&(a<(l=parseInt((n-e)/r,10))&&(l=a),l<o&&(l=o),r=_.snapFactorTo((n-e)/(l-1),h,"floor"))}if(t.interval||a!==o)n=Math.min(_.snapMultiple(n,r,"ceil"),s),e=Math.max(_.snapMultiple(e,r,"floor"),c),l=Math.round((n-e)/r),e=j.fixedBase(e,r),n=j.fixedBase(n,r);else{f=parseInt(f,10);var v=(n+e)/2,g=_.snapMultiple(v,r,"ceil"),d=Math.floor((f-2)/2),y=g+d*r,b=void 0;y<n&&(y+=r),e<(b=f%2==0?g-d*r:g-(d+1)*r)&&(b-=r),n=j.fixedBase(y,r),e=j.fixedBase(b,r)}n=Math.min(n,s),e=Math.max(e,c),i.push(e);for(var m=1;m<l;m++){var x=j.fixedBase(r*m+e,r);x<n&&i.push(x)}return i[i.length-1]<n&&i.push(n),{min:e,max:n,interval:r,count:l,ticks:i}}},function(t,e,n){var r=n(52),i=n(0),o=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{isIdentity:!0,type:"identity",value:null})},t.prototype.getText=function(){return this.value.toString()},t.prototype.scale=function(t){return this.value!==t&&i.isNumber(t)?t:this.range[0]},t.prototype.invert=function(){return this.value},t}(r);t.exports=o},function(t,e,n){var r=n(53),u=n(0),i=n(452),o=n(163),a=n(164),c=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return u.mix({},t,{type:"time",mask:"YYYY-MM-DD"})},t.prototype.init=function(){var n=this,t=n.values;if(t){var r=[],i=1/0,o=i,a=0;u.each(t,function(t){var e=n._toTimeStamp(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t);e<i?(o=i,i=e):e<o&&(o=e),a<e&&(a=e),r.push(e)}),1<t.length&&(n.minTickInterval=o-i),(u.isNil(n.min)||n._toTimeStamp(n.min)>i)&&(n.min=i),(u.isNil(n.max)||n._toTimeStamp(n.max)<a)&&(n.max=a)}e.prototype.init.call(this)},t.prototype.calculateTicks=function(){var t=this.min,e=this.max,n=this.tickCount,r=this.tickInterval;return i({min:t,max:e,minCount:n,maxCount:n,interval:r,minInterval:this.minTickInterval}).ticks},t.prototype.getText=function(t){var e=this.formatter;return t=this.translate(t),t=e?e(t):o.format(t,this.mask)},t.prototype.scale=function(t){return u.isString(t)&&(t=this.translate(t)),e.prototype.scale.call(this,t)},t.prototype.translate=function(t){return this._toTimeStamp(t)},t.prototype._toTimeStamp=function(t){return a.toTimeStamp(t)},t}(r);t.exports=c},function(t,e,n){var Q=n(0),J=n(160),K=[1,2,4,6,8,12],tt=36e5,et=864e5;function nt(t){return new Date(t).getFullYear()}function rt(t){return new Date(t).getMonth()}t.exports=function(t){var e,n,r,i,o,a,u,c,s,f,l,h=t.minInterval,p=[],v=t.min,g=t.max,d=t.interval,y=void 0;if(g===v&&(g=v+et),Q.isNil(d)){var b=et,m=365*b;d=parseInt((g-v)/(t.maxCount||6),10),h&&d<h&&(d=h);var x=d/m,j=nt(v);if(.51<x){for(var _=Math.ceil(x),O=nt(g),w=j;w<=O+_;w+=_)p.push(new Date(w,0,1).getTime());d=null}else if(.0834<x){for(var S=Math.ceil(x/.0834),M=rt(v),E=(c=g,s=nt(u=v),f=nt(c),l=rt(u),12*(f-s)+(rt(c)-l)%12),C=0;C<=E+S;C+=S)p.push(new Date(j,C+M,1).getTime());d=null}else if(.5*b<d){var P=new Date(v),A=P.getFullYear(),T=P.getMonth(v),k=P.getDate(),I=Math.ceil(d/b),L=(o=v,a=g,Math.ceil((a-o)/et));d=I*b;for(var R=0;R<L+I;R+=I)p.push(new Date(A,T,k+R).getTime())}else if(tt<d){var D=new Date(v),B=D.getFullYear(),F=D.getMonth(v),N=D.getDate(),z=D.getHours(),q=J.snapTo(K,Math.ceil(d/tt)),V=(r=v,i=g,Math.ceil((i-r)/tt));d=q*tt;for(var Y=0;Y<=V+q;Y+=q)p.push(new Date(B,F,N,z+Y).getTime())}else if(6e4<d){var H=(e=v,n=g,Math.ceil((n-e)/6e4)),W=Math.ceil(d/6e4);d=6e4*W;for(var G=0;G<=H+W;G+=W)p.push(v+6e4*G)}else{d<1e3&&(d=1e3),v=1e3*Math.floor(v/1e3);var X=Math.ceil((g-v)/1e3),U=Math.ceil(d/1e3);d=1e3*U;for(var $=0;$<X+U;$+=U)p.push(v+1e3*$)}}if(!p.length){v=1e3*Math.floor(v/1e3),y=((g=1e3*Math.ceil(g/1e3))-v)/d;for(var Z=0;Z<=y;Z++)p.push(Q.fixedBase(d*Z+v,d))}return{max:g,min:v,interval:d,ticks:p,count:p.length}}},function(t,e,n){var r=n(161),o=n(0),a=n(163),u=n(162),i=n(164),c=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return o.mix({},t,{type:"timeCat",mask:"YYYY-MM-DD",tickCount:7})},t.prototype.init=function(){var n=this,r=this.values;o.each(r,function(t,e){r[e]=n._toTimeStamp(t)}),r.sort(function(t,e){return t-e}),n.ticks||(n.ticks=this.calculateTicks(!1))},t.prototype.calculateTicks=function(t){var n=this,e=n.tickCount,r=void 0;if(e){var i=u({maxCount:e,data:n.values});r=i.ticks}else r=n.values;return t&&o.each(r,function(t,e){r[e]=a.format(t,n.mask)}),r},t.prototype.translate=function(t){t=this._toTimeStamp(t);var e=this.values.indexOf(t);return-1===e&&(e=o.isNumber(t)&&t<this.values.length?t:NaN),e},t.prototype.scale=function(t){var e=this.rangeMin(),n=this.rangeMax(),r=this.translate(t);return e+(1===this.values.length?r:-1<r?r/(this.values.length-1):0)*(n-e)},t.prototype.getText=function(t){var e="",n=this.translate(t);e=-1<n?this.values[n]:t;var r=this.formatter;return e=parseInt(e,10),e=r?r(e):a.format(e,this.mask)},t.prototype.getTicks=function(){var n=this,t=this.ticks,r=[];return o.each(t,function(t){var e=void 0;e=o.isObject(t)?t:{text:o.isString(t)?t:n.getText(t),tickValue:t,value:n.scale(t)},r.push(e)}),r},t.prototype._toTimeStamp=function(t){return i.toTimeStamp(t)},t}(r);t.exports=c},function(t,e,n){var r=n(53),l=n(0);function h(t,e){return 1===t?1:Math.log(e)/Math.log(t)}var i=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return l.mix({},t,{type:"log",base:2,tickCount:10,_minTick:null})},t.prototype.calculateTicks=function(){var t=this,e=t.base,n=void 0;if(t.min<0)throw new Error("The minimum value must be greater than zero!");var r=h(e,t.max);if(0<t.min)n=Math.floor(h(e,t.min));else{var i=t.values,o=t.max;l.each(i,function(t){0<t&&t<o&&(o=t)}),o===t.max&&(o=t.max/e),1<o&&(o=1),n=Math.floor(h(e,o)),t._minTick=n,t.positiveMin=o}for(var a=r-n,u=t.tickCount,c=Math.ceil(a/u),s=[],f=n;f<r+c;f+=c)s.push(Math.pow(e,f));return 0===t.min&&s.unshift(0),s},t.prototype._getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;if(t<=0)return 0;var r=this.base,i=this.positiveMin;i&&(n=1*i/r);return t<i?t/i/(h(r,e)-h(r,n)):(h(r,t)-h(r,n))/(h(r,e)-h(r,n))},t.prototype.scale=function(t){var e=this._getScalePercent(t),n=this.rangeMin();return n+e*(this.rangeMax()-n)},t.prototype.invert=function(t){var e=this.base,n=h(e,this.max),r=this.rangeMin(),i=this.rangeMax()-r,o=void 0,a=this.positiveMin;if(a){if(0===t)return 0;var u=1/(n-(o=h(e,a/e)))*i;if(t<u)return t/u*a}else o=h(e,this.min);var c=(t-r)/i*(n-o)+o;return Math.pow(e,c)},t}(r);t.exports=i},function(t,e,n){var r=n(53),i=n(0);function s(t,e){var n=Math.E;return Math.pow(n,Math.log(e)/t)}var o=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return i.mix({},t,{type:"pow",exponent:2,tickCount:10})},t.prototype.calculateTicks=function(){var t=this.exponent,e=void 0,n=Math.ceil(s(t,this.max));if(n<(e=0<=this.min?Math.floor(s(t,this.min)):0)){var r=n;n=e,e=r}for(var i=n-e,o=this.tickCount,a=Math.ceil(i/o),u=[],c=e;c<n+a;c+=a)u.push(Math.pow(c,t));return u},t.prototype._getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent;return(s(r,t)-s(r,n))/(s(r,e)-s(r,n))},t.prototype.scale=function(t){var e=this._getScalePercent(t),n=this.rangeMin();return n+e*(this.rangeMax()-n)},t.prototype.invert=function(t){var e=(t-this.rangeMin())/(this.rangeMax()-this.rangeMin()),n=this.exponent,r=s(n,this.max),i=s(n,this.min),o=e*(r-i)+i;return Math.pow(o,n)},t}(r);t.exports=o},function(t,e,n){var u=n(0),c=n(457),r=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.type="rect",this.actions=[],this.cfg={},u.mix(this,t),this.option=t||{}}return e.prototype.reset=function(t){return this.actions=t.actions||[],this.type=t.type,this.cfg=t.cfg,this.option.actions=this.actions,this.option.type=this.type,this.option.cfg=this.cfg,this},e.prototype._execActions=function(n){var t=this.actions;u.each(t,function(t){var e=t[0];n[e](t[1],t[2])})},e.prototype.hasAction=function(e){var t=this.actions,n=!1;return u.each(t,function(t){if(e===t[0])return!(n=!0)}),n},e.prototype.createCoord=function(t,e){var n=this.type,r=this.cfg,i=void 0,o=void 0,a=u.mix({start:t,end:e},r);return"theta"===n?(i=c.Polar,this.hasAction("transpose")||this.transpose(),(o=new i(a)).type=n):o=new(i=c[u.upperFirst(n)]||c.Rect)(a),this._execActions(o),o},e.prototype.rotate=function(t){return t=t*Math.PI/180,this.actions.push(["rotate",t]),this},e.prototype.reflect=function(t){return this.actions.push(["reflect",t]),this},e.prototype.scale=function(t,e){return this.actions.push(["scale",t,e]),this},e.prototype.transpose=function(){return this.actions.push(["transpose"]),this},e}();t.exports=r},function(t,e,n){var r=n(54);r.Cartesian=n(458),r.Rect=r.Cartesian,r.Polar=n(459),r.Helix=n(460),t.exports=r},function(t,e,n){var i=n(0),r=function(n){function r(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,n.call(this,t));return e._init(),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,n),r.prototype.getDefaultCfg=function(){var t=n.prototype.getDefaultCfg.call(this);return i.mix({},t,{start:{x:0,y:0},end:{x:0,y:0},type:"cartesian",isRect:!0})},r.prototype._init=function(){var t=this.start,e=this.end,n={start:t.x,end:e.x},r={start:t.y,end:e.y};this.x=n,this.y=r},r.prototype.convertPoint=function(t){var e=void 0,n=void 0;return this.isTransposed?(e=t.y,n=t.x):(e=t.x,n=t.y),{x:this.convertDim(e,"x"),y:this.convertDim(n,"y")}},r.prototype.invertPoint=function(t){var e=this.invertDim(t.x,"x"),n=this.invertDim(t.y,"y");return this.isTransposed?{x:n,y:e}:{x:e,y:n}},r}(n(54));t.exports=r},function(t,e,n){var l=n(0),r=n(54),i=n(2).MatrixUtil,h=i.mat3,p=i.vec2,v=i.vec3,o=function(n){function r(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,n.call(this,t));return e._init(),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,n),r.prototype.getDefaultCfg=function(){var t=n.prototype.getDefaultCfg.call(this);return l.mix({},t,{startAngle:-Math.PI/2,endAngle:3*Math.PI/2,innerRadius:0,type:"polar",isPolar:!0})},r.prototype._init=function(){var t=this.radius,e=this.innerRadius,n=this.startAngle,r=this.endAngle,i=this.center,o=this.getOneBox(),a=o.maxX-o.minX,u=o.maxY-o.minY,c=Math.abs(o.minX)/a,s=Math.abs(o.minY)/u,f=this.width,l=this.height,h=void 0,p=void 0;f/a<l/u?(h=f/a,p={x:i.x-(.5-c)*f,y:i.y-(.5-s)*h*u}):(h=l/u,p={x:i.x-(.5-c)*h*a,y:i.y-(.5-s)*l}),t?0<t&&t<=1?t*=h:(t<=0||h<t)&&(t=h):t=h;var v={start:n,end:r},g={start:e*t,end:t};this.x=v,this.y=g,this.radius=t,this.circleCentre=p,this.center=p},r.prototype.getCenter=function(){return this.circleCentre},r.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(e-t>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],r=[0,Math.sin(t),Math.sin(e)],i=5*-Math.PI/2;i<3*Math.PI/2;i+=Math.PI/2)t<=i&&i<=e&&(n.push(Math.cos(i)),r.push(Math.sin(i)));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,r),maxY:Math.max.apply(Math,r)}},r.prototype.getRadius=function(){return this.radius},r.prototype.convertPoint=function(t){var e=this.getCenter(),n=this.isTransposed?t.y:t.x,r=this.isTransposed?t.x:t.y;return n=this.convertDim(n,"x"),r=this.convertDim(r,"y"),{x:e.x+Math.cos(n)*r,y:e.y+Math.sin(n)*r}},r.prototype.invertPoint=function(t){var e=this.getCenter(),n=[t.x-e.x,t.y-e.y],r=this.x,i=[1,0,0,0,1,0,0,0,1];h.rotate(i,i,r.start);var o=[1,0,0];v.transformMat3(o,o,i),o=[o[0],o[1]];var a=p.angleTo(o,n,r.end<r.start);l.snapEqual(a,2*Math.PI)&&(a=0);var u=p.length(n),c=a/(r.end-r.start);c=0<r.end-r.start?c:-c;var s=this.invertDim(u,"y"),f={};return f.x=this.isTransposed?s:c,f.y=this.isTransposed?c:s,f},r}(r);t.exports=o},function(t,e,n){var h=n(0),r=n(54),p=n(2).MatrixUtil.vec2,i=function(n){function r(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,n.call(this,t));return e._init(),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,n),r.prototype.getDefaultCfg=function(){var t=n.prototype.getDefaultCfg.call(this);return h.mix({},t,{startAngle:1.25*Math.PI,endAngle:7.25*Math.PI,innerRadius:0,type:"helix",isHelix:!0})},r.prototype._init=function(){var t=this.width,e=this.height,n=this.radius,r=this.innerRadius,i=this.startAngle,o=this.endAngle,a=(o-i)/(2*Math.PI)+1,u=Math.min(t,e)/2;n&&0<=n&&n<=1&&(u*=n);var c=Math.floor(u*(1-r)/a),s=c/(2*Math.PI),f={start:i,end:o},l={start:r*u,end:r*u+.99*c};this.a=s,this.d=c,this.x=f,this.y=l},r.prototype.getCenter=function(){return this.center},r.prototype.convertPoint=function(t){var e=this.a,n=this.center,r=void 0,i=void 0;this.isTransposed?(r=t.y,i=t.x):(r=t.x,i=t.y);var o=this.convertDim(r,"x"),a=e*o,u=this.convertDim(i,"y");return{x:n.x+Math.cos(o)*(a+u),y:n.y+Math.sin(o)*(a+u)}},r.prototype.invertPoint=function(t){var e=this.center,n=this.a,r=this.d+this.y.start,i=p.subtract([],[t.x,t.y],[e.x,e.y]),o=p.angleTo(i,[1,0],!0),a=o*n;p.length(i)<a&&(a=p.length(i));var u=n*(o=2*Math.floor((p.length(i)-a)/r)*Math.PI+o),c=p.length(i)-u;c=h.snapEqual(c,0)?0:c;var s=this.invertDim(o,"x"),f=this.invertDim(c,"y");s=h.snapEqual(s,0)?0:s,f=h.snapEqual(f,0)?0:f;var l={};return l.x=this.isTransposed?f:s,l.y=this.isTransposed?s:f,l},r}(r);t.exports=i},function(t,e,n){var b=n(0),h=n(32).Axis,l=n(2).MatrixUtil.vec2,u=n(1);var r=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.visible=!0,this.container=null,this.coord=null,this.options=null,this.axes=[],b.mix(this,t)}return e.prototype._isHide=function(t){var e=this.options;return!(!e||!1!==e[t])},e.prototype._getMiddleValue=function(t,e,n,r){if(0===t&&!r)return 0;if(1===t)return 1;var i=e[n+1].value;return r||1!==i?(t+i)/2:1},e.prototype._getLineRange=function(t,e,n,r){var i=void 0,o=void 0,a=void 0,u=e.field,c=this.options,s="";return c[u]&&c[u].position&&(s=c[u].position),"x"===n?(i={x:0,y:"top"===s?1:0},a=!(o={x:1,y:"top"===s?1:0})):(r?(i={x:"left"===s?0:1,y:0},o={x:"left"===s?0:1,y:1}):(i={x:"right"===s?1:0,y:0},o={x:"right"===s?1:0,y:1}),a=!0),{start:i=t.convert(i),end:o=t.convert(o),isVertical:a}},e.prototype._getLineCfg=function(t,e,n,r){var i=this._getLineRange(t,e,n,r),o=i.isVertical,a=i.start,u=i.end,c=t.center;return t.isTransposed&&(o=!o),{isVertical:o,factor:o&&a.x>c.x||!o&&a.y>c.y?1:-1,start:a,end:u}},e.prototype._getCircleCfg=function(t){var e={},n=t.x,r=t.y,i=r.start>r.end,o=void 0;o=t.isTransposed?{x:i?0:1,y:0}:{x:0,y:i?0:1},o=t.convert(o);var a=t.circleCentre,u=[o.x-a.x,o.y-a.y],c=[1,0],s=void 0,f=(s=o.y>a.y?l.angle(u,c):-1*l.angle(u,c))+(n.end-n.start);return e.startAngle=s,e.endAngle=f,e.center=a,e.radius=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),e.inner=t.innerRadius||0,e},e.prototype._getRadiusCfg=function(t){var e=t.x.start<0?-1:1,n=void 0,r=void 0;return t.isTransposed?(n={x:0,y:0},r={x:1,y:0}):(n={x:0,y:0},r={x:0,y:1}),{factor:e,start:t.convert(n),end:t.convert(r)}},e.prototype._getAxisPosition=function(t,e,n,r){var i="",o=this.options;if(o[r]&&o[r].position)i=o[r].position;else{var a=t.type;t.isRect?"x"===e?i="bottom":"y"===e&&(i=n?"right":"left"):i="helix"===a?"helix":"x"===e?t.isTransposed?"radius":"circle":t.isTransposed?"circle":"radius"}return i},e.prototype._getAxisDefaultCfg=function(t,e,n,r){var i={},o=this.options,a=e.field;return(i=b.deepMix({},u.axis[r],i,o[a])).title&&b.deepMix(i,{title:{text:e.alias||a}}),i.ticks=e.getTicks(),t.isPolar&&!e.isCategory&&"x"===n&&Math.abs(t.endAngle-t.startAngle)===2*Math.PI&&i.ticks.pop(),i.coord=t,i.label&&b.isNil(i.label.autoRotate)&&(i.label.autoRotate=!0),i},e.prototype._getAxisCfg=function(s,n,t,f){var e,r,i,o,l=4<arguments.length&&void 0!==arguments[4]?arguments[4]:"",h=arguments[5],p=this,a=p._getAxisPosition(s,f,l,n.field),v=p._getAxisDefaultCfg(s,n,f,a);if(!b.isEmpty(v.grid)&&t){var g=[],d=function(t){var e=[];if(0<t.length){var n=(e=t.slice(0))[0],r=e[e.length-1];0!==n.value&&e.unshift({value:0}),1!==r.value&&e.push({value:1})}return e}(t.getTicks());if(d.length){var y=(e=v.ticks,r=n.isLinear,i="center"===v.grid.align,o=[],e.length<1||(2<=e.length&&r&&i&&o.push({text:"",tickValue:"",value:0}),0!==e[0].value&&o.push({text:"",tickValue:"",value:0}),1!==(o=o.concat(e))[o.length-1].value&&o.push({text:"",tickValue:"",value:1})),o);b.each(y,function(t,e){var o=[],a=t.value;if("center"===v.grid.align&&(a=p._getMiddleValue(a,y,e,n.isLinear)),!b.isNil(a)){var u=s.x,c=s.y;b.each(d,function(t){var e="x"===f?a:t.value,n="x"===f?t.value:a,r=s.convert({x:e,y:n});if(s.isPolar){var i=s.circleCentre;c.start>c.end&&(n=1-n),r.flag=u.start>u.end?0:1,r.radius=Math.sqrt(Math.pow(r.x-i.x,2)+Math.pow(r.y-i.y,2))}o.push(r)}),g.push({_id:h+"-"+f+l+"-grid-"+t.tickValue,points:o})}})}v.grid.items=g}return v},e.prototype._getHelixCfg=function(t){for(var e={},n=t.a,r=t.startAngle,i=t.endAngle,o=[],a=0;a<=100;a++){var u=t.convert({x:a/100,y:0});o.push(u.x),o.push(u.y)}var c=t.convert({x:0,y:0});return e.a=n,e.startAngle=r,e.endAngle=i,e.crp=o,e.axisStart=c,e.center=t.center,e.inner=t.y.start,e},e.prototype._drawAxis=function(t,e,n,r,i,o,a){var u=this.container,c=void 0,s=void 0;"cartesian"===t.type?(c=h.Line,s=this._getLineCfg(t,e,r,a)):"helix"===t.type&&"x"===r?(c=h.Helix,s=this._getHelixCfg(t)):"x"===r?(c=h.Circle,s=this._getCircleCfg(t)):(c=h.Line,s=this._getRadiusCfg(t));var f=this._getAxisCfg(t,e,n,r,a,i);f=b.mix({},f,s),"y"===r&&o&&"circle"===o.get("type")&&(f.circle=o),f._id=i+"-"+r,b.isNil(a)||(f._id=i+"-"+r+a);var l=u.addGroup(c,f);return this.axes.push(l),l},e.prototype.createAxis=function(n,t,r){var i=this,o=this.coord,e=o.type;if("theta"!==e&&("polar"!==e||!o.isTransposed)){var a=void 0;n&&!i._isHide(n.field)&&(a=i._drawAxis(o,n,t[0],"x",r)),b.isEmpty(t)||"helix"===e||b.each(t,function(t,e){i._isHide(t.field)||i._drawAxis(o,t,n,"y",r,a,e)})}},e.prototype.changeVisible=function(e){var t=this.axes;b.each(t,function(t){t.set("visible",e)})},e.prototype.clear=function(){var t=this.axes;b.each(t,function(t){t.remove()}),this.axes=[]},e}();t.exports=r},function(t,e,n){t.exports={Line:n(463),Circle:n(465),Helix:n(466),PolyLine:n(467)}},function(t,e,n){var r=n(55),v=n(0),g=n(2).MatrixUtil.vec2,i=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return v.mix({},t,{x:null,y:null,line:{lineWidth:1,stroke:"#C0D0E0"},tickLine:{lineWidth:1,stroke:"#C0D0E0",length:5},isVertical:!1,start:null,end:null})},t.prototype._getAvgLabelLength=function(t){var e=t.get("children");return e[1].attr("x")-e[0].attr("x")},t.prototype.getSideVector=function(t){var e=this.get("factor"),n=this.get("isVertical"),r=this.get("start"),i=this.get("end"),o=this.getAxisVector(),a=g.normalize([],o),u=!1;(n&&r.y<i.y||!n&&r.x>i.x)&&(u=!0);var c=g.vertical([],a,u);return g.scale([],c,t*e)},t.prototype.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},t.prototype.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},t.prototype.getTickEnd=function(t,e){var n=this.getSideVector(e);return{x:t.x+n[0],y:t.y+n[1]}},t.prototype.getTickPoint=function(t){var e=this.get("start"),n=this.get("end"),r=n.x-e.x,i=n.y-e.y;return{x:e.x+r*t,y:e.y+i*t}},t.prototype.renderTitle=function(){var t=this,e=t.get("title"),n=t.getTickPoint(.5),r=e.offset;if(v.isNil(r)){r=20;var i=t.get("labelsGroup");if(i)r+=t.getMaxLabelWidth(i)+(t.get("label").offset||t.get("_labelOffset"))}var o=e.textStyle,a=v.mix({},o);if(e.text){var u=t.getAxisVector();if(e.autoRotate&&v.isNil(o.rotate)){var c=0;if(!v.snapEqual(u[1],0)){var s=[u[0],u[1]];c=g.angleTo(s,[1,0],!0)}a.rotate=c*(180/Math.PI)}else v.isNil(o.rotate)||(a.rotate=o.rotate/180*Math.PI);var f=t.getSideVector(r),l=void 0,h=e.position;l="start"===h?{x:this.get("start").x+f[0],y:this.get("start").y+f[1]}:"end"===h?{x:this.get("end").x+f[0],y:this.get("end").y+f[1]}:{x:n.x+f[0],y:n.y+f[1]},a.x=l.x,a.y=l.y,a.text=e.text;var p=t.addShape("Text",{zIndex:2,attrs:a});p.name="axis-title",t.get("appendInfo")&&p.setSilent("appendInfo",t.get("appendInfo"))}},t.prototype.autoRotateLabels=function(){var t=this.get("labelsGroup"),e=this.get("title");if(t){var n=this.get("label").offset,r=e?e.offset:48;if(r<0)return;var i=this.getAxisVector(),o=void 0,a=void 0;if(v.snapEqual(i[0],0)&&e&&e.text)r-n-12<(a=this.getMaxLabelWidth(t))&&(o=-1*Math.acos((r-n-12)/a));else if(v.snapEqual(i[1],0)&&1<t.getCount()){Math.abs(this._getAvgLabelLength(t))<(a=this.getMaxLabelWidth(t))&&(o=Math.asin(1.25*(r-n-12)/a))}if(o){var u=this.get("factor");v.each(t.get("children"),function(t){t.rotateAtStart(o),v.snapEqual(i[1],0)&&(0<u?t.attr("textAlign","left"):t.attr("textAlign","right"))})}}},t}(r);t.exports=i},function(t,e,n){var r=n(2).Group,f=n(0),i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){return{zIndex:1,type:"line",lineStyle:null,items:null,alternateColor:null,matrix:null,hideFirstLine:!1,hideLastLine:!1}},e.prototype._renderUI=function(){t.prototype._renderUI.call(this),this._drawLines()},e.prototype._drawLines=function(){var t=this.get("lineStyle"),e=this.get("items");e&&e.length&&(this._precessItems(e),this._drawGridLines(e,t))},e.prototype._precessItems=function(t){var n=this,r=void 0;f.each(t,function(t,e){r&&n.get("alternateColor")&&n._drawAlternativeBg(t,r,e),r=t})},e.prototype._drawGridLines=function(t,n){var r=this,i=this.get("type"),o=void 0,a=void 0,u=void 0,c=void 0,s=t.length;"line"===i||"polygon"===i?f.each(t,function(t,e){r.get("hideFirstLine")&&0===e||r.get("hideLastLine")&&e===s-1||(c=t.points,a=[],"line"===i?(a.push(["M",c[0].x,c[0].y]),a.push(["L",c[c.length-1].x,c[c.length-1].y])):f.each(c,function(t,e){0===e?a.push(["M",t.x,t.y]):a.push(["L",t.x,t.y])}),u=f.mix({},n,{path:a}),(o=r.addShape("path",{attrs:u})).name="axis-grid",o._id=t._id,o.set("coord",r.get("coord")),r.get("appendInfo")&&o.setSilent("appendInfo",r.get("appendInfo")))}):f.each(t,function(t,e){r.get("hideFirstLine")&&0===e||r.get("hideLastLine")&&e===s-1||(c=t.points,a=[],f.each(c,function(t,e){var n=t.radius;0===e?a.push(["M",t.x,t.y]):a.push(["A",n,n,0,0,t.flag,t.x,t.y])}),u=f.mix({},n,{path:a}),(o=r.addShape("path",{attrs:u})).name="axis-grid",o._id=t._id,o.set("coord",r.get("coord")),r.get("appendInfo")&&o.setSilent("appendInfo",r.get("appendInfo")))})},e.prototype._drawAlternativeBg=function(t,e,n){var r=this.get("alternateColor"),i=void 0,o=void 0,a=void 0;f.isString(r)?o=r:f.isArray(r)&&(o=r[0],a=r[1]),n%2==0?a&&(i=this._getBackItem(e.points,t.points,a)):o&&(i=this._getBackItem(e.points,t.points,o));var u=this.addShape("Path",{attrs:i});u.name="axis-grid-rect",u._id=t._id&&t._id.replace("grid","grid-rect"),u.set("coord",this.get("coord")),this.get("appendInfo")&&u.setSilent("appendInfo",this.get("appendInfo"))},e.prototype._getBackItem=function(t,e,n){var r=[],i=this.get("type");if("line"===i)r.push(["M",t[0].x,t[0].y]),r.push(["L",t[t.length-1].x,t[t.length-1].y]),r.push(["L",e[e.length-1].x,e[e.length-1].y]),r.push(["L",e[0].x,e[0].y]),r.push(["Z"]);else if("polygon"===i){f.each(t,function(t,e){0===e?r.push(["M",t.x,t.y]):r.push(["L",t.x,t.y])});for(var o=e.length-1;0<=o;o--)r.push(["L",e[o].x,e[o].y]);r.push(["Z"])}else{var a=t[0].flag;f.each(t,function(t,e){var n=t.radius;0===e?r.push(["M",t.x,t.y]):r.push(["A",n,n,0,0,t.flag,t.x,t.y])});for(var u=e.length-1;0<=u;u--){var c=e[u],s=c.radius;u===e.length-1?r.push(["M",c.x,c.y]):r.push(["A",s,s,0,0,1===a?0:1,c.x,c.y])}}return{fill:n,path:r}},e}(r);t.exports=i},function(t,e,n){var s=n(0),r=n(55),o=n(2).MatrixUtil.vec2,i=function(i){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,i.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,i),t.prototype.getDefaultCfg=function(){var t=i.prototype.getDefaultCfg.call(this);return s.mix({},t,{type:"circle",tickInterval:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,line:{lineWidth:1,stroke:"#C0D0E0"},tickLine:{lineWidth:1,stroke:"#C0D0E0",length:5},_labelOffset:5})},t.prototype.parseTick=function(t,e,n){return{text:t,value:e/n}},t.prototype._getCirclePoint=function(t,e){var n=this.get("center");return e=e||this.get("radius"),{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},t.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n=e+(this.get("endAngle")-e)*t;return this._getCirclePoint(n)},t.prototype.getSideVector=function(t,e){var n=this.get("center"),r=[e.x-n.x,e.y-n.y];if(!s.isNil(t)){var i=o.length(r);o.scale(r,r,t/i)}return r},t.prototype.getSidePoint=function(t,e){var n=this.getSideVector(e,t);return{x:t.x+n[0],y:t.y+n[1]}},t.prototype.getTickEnd=function(t,e){var n=this.get("tickLine");return e=e||n.length,this.getSidePoint(t,e)},t.prototype.getTextAnchor=function(t){var e=void 0;return s.snapEqual(t[0],0)?e="center":0<t[0]?e="left":t[0]<0&&(e="right"),e},t.prototype.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,r=this.get("radius"),i=r,o=this.get("startAngle"),a=this.get("endAngle"),u=this.get("inner"),c=[];if(Math.abs(a-o)===2*Math.PI)c=[["M",e,n],["m",0,-i],["a",r,i,0,1,1,0,2*i],["a",r,i,0,1,1,0,-2*i],["z"]];else{var s=this._getCirclePoint(o),f=this._getCirclePoint(a),l=Math.abs(a-o)>Math.PI?1:0,h=a<o?0:1;if(u){var p=this.getSideVector(u*r,s),v=this.getSideVector(u*r,f),g={x:p[0]+e,y:p[1]+n},d={x:v[0]+e,y:v[1]+n};c=[["M",g.x,g.y],["L",s.x,s.y],["A",r,i,0,l,h,f.x,f.y],["L",d.x,d.y],["A",r*u,i*u,0,l,Math.abs(h-1),g.x,g.y]]}else c=[["M",e,n],["L",s.x,s.y],["A",r,i,0,l,h,f.x,f.y],["L",e,n]]}return c},t.prototype.addLabel=function(t,e,n){var r=this.get("label").offset||this.get("_labelOffset")||.001;e=this.getSidePoint(e,r),i.prototype.addLabel.call(this,t,e,n)},t.prototype.autoRotateLabels=function(){var i=this.get("ticks"),t=this.get("labelsGroup");if(t&&12<i.length){var e=this.get("radius"),o=this.get("startAngle"),a=this.get("endAngle")-o,n=a/(i.length-1),u=Math.sin(n/2)*e*2,c=this.getMaxLabelWidth(t);s.each(t.get("children"),function(t,e){var n=i[e].value*a+o,r=n%(2*Math.PI);c<u?(r<=0&&(n+=Math.PI),r>Math.PI&&(n-=Math.PI),n-=Math.PI/2,t.attr("textAlign","center")):r>Math.PI/2?n-=Math.PI:r<Math.PI/2*-1&&(n+=Math.PI),t.rotateAtStart(n)})}},t}(r);t.exports=i},function(t,e,n){var r=n(0),i=n(55),o=n(2),a=o.MatrixUtil,u=o.PathUtil,c=a.vec2,s=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return r.mix({},t,{type:"helix",line:{lineWidth:1,stroke:"#C0D0E0"},tickLine:{lineWidth:1,stroke:"#C0D0E0",length:5},startAngle:1.25*Math.PI,endAngle:7.25*Math.PI,a:0,center:null,axisStart:null,crp:[]})},t.prototype.getLinePath=function(){var t=this.get("crp"),e=this.get("axisStart"),n=u.catmullRomToBezier(t);return n.unshift(["M",e.x,e.y]),n},t.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n=e+(this.get("endAngle")-e)*t;return this._getHelixPoint(n)},t.prototype._getHelixPoint=function(t){var e=this.get("center"),n=this.get("a")*t+this.get("inner");return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},t.prototype.getSideVector=function(t,e){var n=this.get("center"),r=[e.x-n.x,e.y-n.y];if(t){var i=c.length(r);c.scale(r,r,t/i)}return r},t.prototype.getSidePoint=function(t,e){var n=this.getSideVector(e,t);return{x:t.x+n[0],y:t.y+n[1]}},t.prototype.getTickEnd=function(t,e){var n=this.get("tickLine");return e=e||n.length,this.getSidePoint(t,e)},t}(i);t.exports=s},function(t,e,n){var o=n(0),r=n(55),i=n(2),a=i.MatrixUtil,u=i.PathUtil,c=a.vec2,s=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return o.mix({},t,{type:"polyline"})},t.prototype.getLinePath=function(){var t=this.get("tickPoints"),e=this.get("start"),n=this.get("end"),r=[];r.push(e.x),r.push(e.y),o.each(t,function(t){r.push(t.x),r.push(t.y)}),r.push(n.x),r.push(n.y);var i=u.catmullRomToBezier(r);return i.unshift(["M",e.x,e.y]),i},t.prototype.getTickPoint=function(t,e){return this.get("tickPoints")[e]},t.prototype.getTickEnd=function(t,e,n){var r=this.get("tickLine"),i=e||r.length,o=this.getSideVector(i,t,n);return{x:t.x+o[0],y:t.y+o[1]}},t.prototype.getSideVector=function(t,e,n){var r=void 0;0===n?r=this.get("start"):r=this.get("tickPoints")[n-1];var i=[e.x-r.x,e.y-r.y],o=c.normalize([],i),a=c.vertical([],o,!1);return c.scale([],a,t)},t}(r);t.exports=s},function(t,e,n){t.exports={Line:n(469),Text:n(470),Image:n(471),Region:n(472),Html:n(473),Arc:n(474)}},function(t,e,n){var f=n(0),r=n(23),l=n(2).MatrixUtil.vec2,i=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return f.mix({},t,{type:"line",start:null,end:null,lineStyle:{stroke:"#000",lineWidth:1},text:{position:"end",autoRotate:!0,style:{fill:"#999",fontSize:12,fontWeight:500,fontFamily:"sans-serif"},content:null}})},t.prototype.render=function(t,e){var n=this.parsePoint(t,this.start),r=this.parsePoint(t,this.end),i=e.addGroup();this._drawLines(n,r,i),this.text&&this.text.content&&this._drawText(n,r,i),this.el=i},t.prototype._drawLines=function(t,e,n){var r=[["M",t.x,t.y],["L",e.x,e.y]],i=n.addShape("Path",{attrs:f.mix({path:r},this.lineStyle)});i.name="guide-line",this.appendInfo&&i.setSilent("appendInfo",this.appendInfo)},t.prototype._drawText=function(t,e,n){var r=this.text,i=r.position,o=r.style,a=void 0;(1<(a="start"===i?0:"center"===i?.5:f.isString(i)&&-1!==i.indexOf("%")?parseInt(i,10)/100:f.isNumber(i)?i:1)||a<0)&&(a=1);var u={x:t.x+(e.x-t.x)*a,y:t.y+(e.y-t.y)*a};if(r.offsetX&&(u.x+=r.offsetX),r.offsetY&&(u.y+=r.offsetY),u.text=r.content,u=f.mix({},u,o),r.autoRotate&&f.isNil(o.rotate)){var c=l.angleTo([e.x-t.x,e.y-t.y],[1,0],1);u.rotate=c}else f.isNil(o.rotate)||(u.rotate=o.rotate*Math.PI/180);var s=n.addShape("Text",{attrs:u});s.name="guide-line-text",this.appendInfo&&s.setSilent("appendInfo",this.appendInfo)},t}(r);t.exports=i},function(t,e,n){var u=n(0),r=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return u.mix({},t,{type:"text",position:null,content:null,style:{fill:"#999",fontSize:12,fontWeight:500,textAlign:"center"},offsetX:null,offsetY:null})},t.prototype.render=function(t,e){var n=this,r=n.position,i=n.parsePoint(t,r),o=u.mix({},this.style);n.offsetX&&(i.x+=n.offsetX),n.offsetY&&(i.y+=n.offsetY),o.rotate&&(o.rotate=o.rotate*Math.PI/180);var a=e.addShape("Text",{zIndex:n.zIndex,attrs:u.mix({text:n.content},o,i)});a.name="guide-text",n.appendInfo&&a.setSilent("appendInfo",n.appendInfo),n.el=a},t}(n(23));t.exports=r},function(t,e,n){var r=n(0),i=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return r.mix({},t,{type:"image",zIndex:1,start:null,end:null,src:null,offsetX:null,offsetY:null})},t.prototype.render=function(t,e){var n=this,r=n.parsePoint(t,n.start),i={x:r.x,y:r.y};if(i.img=n.src,n.end){var o=n.parsePoint(t,n.end);i.width=Math.abs(o.x-r.x),i.height=Math.abs(r.y-o.y)}else n.width&&(i.width=n.width),n.height&&(i.height=n.height);n.offsetX&&(i.x+=n.offsetX),n.offsetY&&(i.y+=n.offsetY);var a=e.addShape("Image",{zIndex:1,attrs:i});a.name="guide-image",n.appendInfo&&a.setSilent("appendInfo",n.appendInfo),n.el=a},t}(n(23));t.exports=i},function(t,e,n){var o=n(0),r=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return o.mix({},t,{type:"region",zIndex:1,start:null,end:null,style:{lineWidth:0,fill:"#CCD7EB",opacity:.4}})},t.prototype.render=function(t,e){var n=this.style,r=this._getPath(t),i=e.addShape("path",{zIndex:this.zIndex,attrs:o.mix({path:r},n)});i.name="guide-region",this.appendInfo&&i.setSilent("appendInfo",this.appendInfo),this.el=i},t.prototype._getPath=function(t){var e=this.parsePoint(t,this.start),n=this.parsePoint(t,this.end),r=[];return r.push(["M",e.x,e.y]),r.push(["L",n.x,e.y]),r.push(["L",n.x,n.y]),r.push(["L",e.x,n.y]),r.push(["z"]),r},t}(n(23));t.exports=r},function(t,e,n){var c=n(0),s=n(2).DomUtil,r=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return c.mix({},t,{type:"html",zIndex:7,position:null,alignX:"middle",alignY:"middle",offsetX:null,offsetY:null,html:null})},t.prototype.render=function(t,e){var n=this.parsePoint(t,this.position),r=e.get("canvas").get("el").parentNode,i=s.createDom('<div class="g-guide"></div>');r.appendChild(i);var o=this.html;c.isFunction(o)&&(o=o(this.xScales,this.yScales));var a=s.createDom(o);i.appendChild(a),this._setDomPosition(i,a,n),this.el=i},t.prototype._setDomPosition=function(t,e,n){var r=this.alignX,i=this.alignY,o=s.getOuterWidth(e),a=s.getOuterHeight(e),u={x:n.x,y:n.y};"middle"===r&&"top"===i?u.x-=c.round(o/2):"middle"===r&&"bottom"===i?(u.x-=c.round(o/2),u.y-=c.round(a)):"left"===r&&"bottom"===i?u.y-=c.round(a):"left"===r&&"middle"===i?u.y-=c.round(a/2):"left"===r&&"top"===i?(u.x=n.x,u.y=n.y):"right"===r&&"bottom"===i?(u.x-=c.round(o),u.y-=c.round(a)):"right"===r&&"middle"===i?(u.x-=c.round(o),u.y-=c.round(a/2)):"right"===r&&"top"===i?u.x-=c.round(o):(u.x-=c.round(o/2),u.y-=c.round(a/2)),this.offsetX&&(u.x+=this.offsetX),this.offsetY&&(u.y+=this.offsetY),s.modifyCSS(t,{position:"absolute",top:Math.round(u.y)+"px",left:Math.round(u.x)+"px",visibility:"visible",zIndex:this.zIndex})},t.prototype.remove=function(){var t=this.el;t&&t.parentNode.removeChild(t)},t}(n(23));t.exports=r},function(t,e,n){var s=n(0),r=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return s.mix({},t,{type:"arc",start:null,end:null,style:{stroke:"#999",lineWidth:1}})},t.prototype.render=function(t,e){var n=this.parsePoint(t,this.start),r=this.parsePoint(t,this.end),i=t.getCenter(),o=Math.sqrt((n.x-i.x)*(n.x-i.x)+(n.y-i.y)*(n.y-i.y)),a=Math.atan2(n.y-i.y,n.x-i.x),u=Math.atan2(r.y-i.y,r.x-i.x),c=e.addShape("arc",{zIndex:this.zIndex,attrs:s.mix({x:i.x,y:i.y,r:o,startAngle:a,endAngle:u},this.style)});c.name="guide-arc",this.appendInfo&&c.setSilent("appendInfo",this.appendInfo),this.el=c},t}(n(23));t.exports=r},function(t,e,n){t.exports={Category:n(476),Color:n(477),Size:n(479)}},function(t,e,n){var O=n(0),r=n(165),i=n(2),w=i.DomUtil,p=i.Event,o=i.Group,S=n(1),M="g2-legend",E="g2-legend-title",C="g2-legend-list",P="g2-legend-list-item",A="g2-legend-text",T="g2-legend-marker";function k(t,e){return t.getElementsByClassName(e)[0]}function I(t,e){var n=t.className;return-1<(n=n.split(" ")).indexOf(e)?t:t.parentNode?t.parentNode.className===M?t.parentNode:I(t.parentNode,e):null}function L(t,e){var n=null,r=e instanceof o?e.get("value"):e;return O.each(t,function(t){if(t.value===r)return n=t,!1}),n}function v(t,e){return t.findBy(function(t){return t.name===e})}var a=function(n){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,n.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,n),t.prototype.getDefaultCfg=function(){var t=n.prototype.getDefaultCfg.call(this);return O.mix({},t,{type:"category-legend",items:null,itemGap:5,titleGap:15,itemMarginBottom:8,itemsGroup:null,layout:"horizontal",allowAllCanceled:!1,backPadding:[0,0,0,0],checkable:!0,unCheckColor:"#ccc",background:{fill:"#fff",fillOpacity:0},itemWidth:null,textStyle:{fill:"#333",fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:S.fontFamily},_wordSpaceing:8,useHtml:!1,autoPosition:!0,container:null,containerTpl:'<div class="'+M+'"><h4 class="'+E+'"></h4><ul class="'+C+'"></ul></div>',_defaultItemTpl:'<li class="'+P+' item-{index} {checked}" data-color="{originColor}" data-value="{originValue}"><i class="'+T+'" style="background-color:{color};"></i><span class="'+A+'">{value}</span></li>',itemTpl:null,clickable:!0,selectedMode:"multiple",reversed:!1,autoWrap:!0})},t.prototype._beforeRenderUI=function(){n.prototype._beforeRenderUI.call(this)},t.prototype._renderUI=function(){this.get("useHtml")?this._renderHTML():(n.prototype._renderUI.call(this),this._renderItems(),this.get("autoWrap")&&this._adjustItems(),this._renderBack())},t.prototype._bindUI=function(){this.get("hoverable")&&(this.on("mousemove",O.wrapBehavior(this,"_onMousemove")),this.on("mouseleave",O.wrapBehavior(this,"_onMouseleave"))),this.get("clickable")&&this.on("click",O.wrapBehavior(this,"_onClick"))},t.prototype._getLegendItem=function(t){var e=t.get("parent");return e&&"legendGroup"===e.name?e:null},t.prototype._onMousemove=function(t){var e=this._getLegendItem(t.currentTarget);if(e&&e.get("checked")){var n=this.get("items"),r=new p("itemhover",t,!0,!0);r.item=L(n,e),r.checked=e.get("checked"),this.emit("itemhover",r)}else e||this.emit("itemunhover",t)},t.prototype._onMouseleave=function(t){this.emit("itemunhover",t)},t.prototype._onClick=function(t){var e=this._getLegendItem(t.currentTarget),n=this.get("items");if(e&&!e.get("destroyed")){var r=e.get("checked");if(!this.get("allowAllCanceled")&&r&&1===this.getCheckedCount())return;var i=this.get("selectedMode"),o=L(n,e),a=new p("itemclick",t,!0,!0);a.item=o,a.currentTarget=e,a.checked="single"===i||!r;var u=this.get("unCheckColor"),c=this.get("textStyle").fill,s=void 0,f=void 0,l=void 0;if("single"===i){var h=this.get("itemsGroup").get("children");O.each(h,function(t){s=v(t,"legend-marker"),f=v(t,"legend-text"),l=v(t,"legend-item"),t!==e?(s.attr("fill")&&s.attr("fill",u),s.attr("stroke")&&s.attr("stroke",u),f.attr("fill",u),s.setSilent("checked",!1),f.setSilent("checked",!1),l.setSilent("checked",!1),t.setSilent("checked",!1)):(s.attr("fill")&&s.attr("fill",o.marker.fill),s.attr("stroke")&&s.attr("stroke",o.marker.stroke),f.attr("fill",c),s.setSilent("checked",!0),f.setSilent("checked",!0),l.setSilent("checked",!0),t.setSilent("checked",!0))})}else s=v(e,"legend-marker"),f=v(e,"legend-text"),l=v(e,"legend-item"),s.attr("fill")&&s.attr("fill",r?u:o.marker.fill),s.attr("stroke")&&s.attr("stroke",r?u:o.marker.stroke),f.attr("fill",r?u:c),e.setSilent("checked",!r),s.setSilent("checked",!r),f.setSilent("checked",!r),l.setSilent("checked",!r);this.emit("itemclick",a)}},t.prototype._renderHTML=function(){var l=this,h=this,t=h.get("canvas").get("el").parentNode,e=this.get("title"),n=h.get("containerTpl"),r=w.createDom(n),i=k(r,E),f=k(r,C),p=h.get("unCheckColor"),v=h.get("selectedMode"),o=S.legend.html,a=h.get("container");if(/^\#/.test(a)){var u=a.replace("#","");(a=document.getElementById(u)).appendChild(r)}else{var c=h.get("position"),s=h.get("canvas"),g={};g="left"===c||"right"===c?{maxHeight:(h.get("maxLength")||s.get("height"))+"px"}:{maxWidth:(h.get("maxLength")||s.get("width"))+"px"},w.modifyCSS(r,O.mix({},o[M],g,h.get(M))),t.appendChild(r)}w.modifyCSS(f,O.mix({},o[C],h.get(C))),i&&(e&&e.text?(i.innerHTML=e.text,w.modifyCSS(i,O.mix({},o[E],h.get(E)))):r.removeChild(i));var d=h.get("items"),y=h.get("_defaultItemTpl"),b=h.get("itemTpl");b&&b!==y&&(y=b),h.get("reversed")&&d.reverse();var m=h.get("position"),x=O.mix({},o[P],{display:"right"===m||"left"===m?"block":"inline-block"},h.get(P)),j=O.mix({},o[T],h.get(T));if(O.each(d,function(t,e){var n=t.checked,r=h._formatItemValue(t.value),i=t.marker.fill||t.marker.stroke,o=n?i:p,a=void 0;a=O.isFunction(y)?y(r,o,n,e):y;var u=O.substitute(a,{index:e,checked:n?"checked":"unChecked",value:r,color:o,originColor:i,originValue:t.value}),c=w.createDom(u),s=k(c,T);w.modifyCSS(c,x),s&&w.modifyCSS(s,j),n||(c.style.color=p,s&&(s.style.backgroundColor=p)),f.appendChild(c)}),h.get("clickable")){var _=f.childNodes;r.onclick=function(t){var e=t.target,n=e.className;if(!(-1<(n=n.split(" ")).indexOf(M)||-1<n.indexOf(C))){var r=I(e,P),i=k(r,A),o=k(r,T),a=L(d,r.getAttribute("data-value"));if(a){var u=r.className,c=r.getAttribute("data-color");if("single"===v)a.checked=!0,O.each(_,function(t){t!==r?(k(t,T).style.backgroundColor=p,t.className=O.replace(t.className,"checked","unChecked"),t.style.color=p,L(d,t.getAttribute("data-value")).checked=!1):(i&&(i.style.color=h.get("textStyle").fill),o&&(o.style.backgroundColor=c),r.className=O.replace(u,"unChecked","checked"))});else{var s=u.includes("checked"),f=0;if(O.each(_,function(t){t.className.includes("checked")&&f++}),!l.get("allowAllCanceled")&&s&&1===f)return;a.checked=!a.checked,s?(o&&(o.style.backgroundColor=p),r.className=O.replace(u,"checked","unChecked"),r.style.color=p):(o&&(o.style.backgroundColor=c),r.className=O.replace(u,"unChecked","checked"),r.style.color=h.get("textStyle").fill)}h.emit("itemclick",{item:a,currentTarget:r,checked:"single"===v||a.checked})}}}}h.get("hoverable")&&(r.onmousemove=function(t){var e=t.target,n=e.className;if(!(-1<(n=n.split(" ")).indexOf(M)||-1<n.indexOf(C))){var r=I(e,P),i=r.className,o=L(d,r.getAttribute("data-value"));o&&i.includes("checked")?h.emit("itemhover",{item:o,currentTarget:r,checked:o.checked}):o||h.emit("itemunhover",t)}},r.onmouseout=function(t){h.emit("itemunhover",t)}),h.set("legendWrapper",r)},t.prototype._renderItems=function(){var n=this,t=n.get("items");n.get("reversed")&&t.reverse(),O.each(t,function(t,e){n._addItem(t,e)})},t.prototype._renderBack=function(){var t=this.get("backPadding"),e=this.get("background");this.renderBack(t,e)},t.prototype._formatItemValue=function(t){var e=this.get("itemFormatter");return e&&(t=e.call(this,t)),t},t.prototype._getNextX=function(){var t=this.get("layout"),e=this.get("itemGap"),n=this.get("itemsGroup"),r=this.get("itemWidth"),i=n.get("children"),o=0;return"horizontal"===t&&O.each(i,function(t){o+=(r||t.getBBox().width)+e}),o},t.prototype._getNextY=function(){var e=this.get("itemMarginBottom"),t=this.get("titleShape")?this.get("titleGap"):0,n=this.get("layout"),r=this.get("itemsGroup"),i=this.get("titleShape"),o=r.get("children"),a=t;return i&&(a+=i.getBBox().height),"vertical"===n&&O.each(o,function(t){a+=t.getBBox().height+e}),a},t.prototype._addItem=function(t){var e=this.get("itemsGroup"),n=this._getNextX(),r=this._getNextY(),i=this.get("unCheckColor"),o=e.addGroup({x:n,y:r,value:t.value,checked:t.checked});o.set("viewId",e.get("viewId"));var a=this.get("textStyle"),u=this.get("_wordSpaceing"),c=0;if(t.marker){var s=O.mix({},t.marker,{x:t.marker.radius+n,y:r});t.checked||(s.fill&&(s.fill=i),s.stroke&&(s.stroke=i));var f=o.addShape("marker",{type:"marker",attrs:s});f.attr("cursor","pointer"),f.name="legend-marker",c+=f.getBBox().width+u}var l=O.mix({},a,{x:c+n,y:r,text:this._formatItemValue(t.value)});t.checked||O.mix(l,{fill:i});var h=o.addShape("text",{attrs:l});h.attr("cursor","pointer"),h.name="legend-text",this.get("appendInfo")&&h.setSilent("appendInfo",this.get("appendInfo"));var p=o.getBBox(),v=this.get("itemWidth"),g=o.addShape("rect",{attrs:{x:n,y:r-p.height/2,fill:"#fff",fillOpacity:0,width:v||p.width,height:p.height}});return g.attr("cursor","pointer"),g.setSilent("origin",t),g.name="legend-item",this.get("appendInfo")&&g.setSilent("appendInfo",this.get("appendInfo")),o.name="legendGroup",o},t.prototype._adjustHorizontal=function(){var t=this.get("itemsGroup"),e=t.get("children"),n=this.get("maxLength"),r=this.get("itemGap"),i=this.get("itemMarginBottom"),o=this.get("titleShape")?this.get("titleGap"):0,a=0,u=0,c=void 0,s=void 0,f=void 0,l=this.get("itemWidth");t.getBBox().width>n&&O.each(e,function(t){f=t.getBBox(),c=l||f.width,s=f.height+i,n-u<c&&(a++,u=0),t.move(u,a*s+o),u+=c+r})},t.prototype._adjustVertical=function(){var t=this.get("itemsGroup"),e=this.get("titleShape"),n=t.get("children"),r=this.get("maxLength"),i=this.get("itemGap"),o=this.get("itemMarginBottom"),a=this.get("titleGap"),u=e?e.getBBox().height+a:0,c=this.get("itemWidth"),s=u,f=void 0,l=void 0,h=void 0,p=0,v=0;t.getBBox().height>r&&O.each(n,function(t){h=t.getBBox(),f=h.width,l=h.height,c?p=c+i:p<f&&(p=f+i),r-s<l?(s=u,v+=p,t.move(v,u)):t.move(v,s),s+=l+o})},t.prototype._adjustItems=function(){"horizontal"===this.get("layout")?this._adjustHorizontal():this._adjustVertical()},t.prototype.getWidth=function(){return this.get("useHtml")?w.getOuterWidth(this.get("legendWrapper")):n.prototype.getWidth.call(this)},t.prototype.getHeight=function(){return this.get("useHtml")?w.getOuterHeight(this.get("legendWrapper")):n.prototype.getHeight.call(this)},t.prototype.move=function(t,e){this.get("useHtml")&&!/^\#/.test(this.get("container"))?w.modifyCSS(this.get("legendWrapper"),{left:t+"px",top:e+"px"}):n.prototype.move.call(this,t,e)},t.prototype.remove=function(){if(this.get("useHtml")){var t=this.get("legendWrapper");t&&t.parentNode&&t.parentNode.removeChild(t)}n.prototype.remove.call(this)},t}(r);t.exports=a},function(t,e,n){var l=n(0),r=n(166),h=n(74),i=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return l.mix({},t,{type:"color-legend",layout:"vertical",labelOffset:15,lineStyle:{lineWidth:1,stroke:"#fff"}})},t.prototype._renderSliderShape=function(){var t=this.get("slider").get("backgroundElement"),e=this.get("width"),n=this.get("height"),r=this.get("layout"),i=this.get("items"),o="",a=void 0;return"vertical"===r?(o+="l (90) ",l.each(i,function(t){a=h.toRGB(t.attrValue),o+=1-t.scaleValue+":"+a+" "})):(o+="l (0) ",l.each(i,function(t){a=h.toRGB(t.attrValue),o+=t.scaleValue+":"+a+" "})),this._addBackground(t,"Rect",{x:0,y:0,width:e,height:n,fill:o,strokeOpacity:0})},t.prototype._renderBackground=function(){var n=this,t=this.get("titleShape"),e=this.get("titleGap");e=t?t.getBBox().height+e:e;var r=this.get("width"),i=this.get("height"),o=this.get("layout"),a=this.get("items"),u="",c=void 0,s=[],f=this.addGroup();"vertical"===o?(u+="l (90) ",l.each(a,function(t,e){0!==e&&e!==a.length-1&&(s.push(["M",0,i-t.scaleValue*i]),s.push(["L",r,i-t.scaleValue*i])),c=h.toRGB(t.attrValue),u+=1-t.scaleValue+":"+c+" ",f.addShape("text",{attrs:l.mix({},{x:r+n.get("labelOffset")/2,y:i-t.scaleValue*i,text:n._formatItemValue(t.value)+""},n.get("textStyle"),{textAlign:"start"})})})):(u+="l (0) ",l.each(a,function(t,e){0!==e&&e!==a.length-1&&(s.push(["M",t.scaleValue*r,0]),s.push(["L",t.scaleValue*r,i])),c=h.toRGB(t.attrValue),u+=t.scaleValue+":"+c+" ",f.addShape("text",{attrs:l.mix({},{x:t.scaleValue*r,y:i+n.get("labelOffset"),text:n._formatItemValue(t.value)+""},n.get("textStyle"))})})),f.addShape("rect",{attrs:{x:0,y:0,width:r,height:i,fill:u,strokeOpacity:0}}),f.addShape("path",{attrs:l.mix({path:s},this.get("lineStyle"))}),f.move(0,e)},t}(r);t.exports=i},function(t,e,n){var l=n(0),r=n(2),i=r.Group,o=r.DomUtil,a=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){return{range:null,middleAttr:null,backgroundElement:null,minHandleElement:null,maxHandleElement:null,middleHandleElement:null,currentTarget:null,layout:"vertical",width:null,height:null,pageX:null,pageY:null}},e.prototype._beforeRenderUI=function(){var t=this.get("layout"),e=this.get("backgroundElement"),n=this.get("minHandleElement"),r=this.get("maxHandleElement"),i=this.addShape("rect",{attrs:this.get("middleAttr")}),o="vertical"===t?"ns-resize":"ew-resize";this.add([e,n,r]),this.set("middleHandleElement",i),e.set("zIndex",0),i.set("zIndex",1),n.set("zIndex",2),r.set("zIndex",2),i.attr("cursor",o),n.attr("cursor",o),r.attr("cursor",o),this.sort()},e.prototype._renderUI=function(){"horizontal"===this.get("layout")?this._renderHorizontal():this._renderVertical()},e.prototype._transform=function(t){var e=this.get("range"),n=e[0]/100,r=e[1]/100,i=this.get("width"),o=this.get("height"),a=this.get("minHandleElement"),u=this.get("maxHandleElement"),c=this.get("middleHandleElement");a.initTransform(),u.initTransform(),"horizontal"===t?(c.attr({x:i*n,y:0,width:(r-n)*i,height:o}),a.translate(n*i,o),u.translate(r*i,o)):(c.attr({x:0,y:o*(1-r),width:i,height:(r-n)*o}),a.translate(i/2,(1-n)*o),u.translate(i/2,(1-r)*o))},e.prototype._renderHorizontal=function(){this._transform("horizontal")},e.prototype._renderVertical=function(){this._transform("vertical")},e.prototype._bindUI=function(){this.on("mousedown",l.wrapBehavior(this,"_onMouseDown"))},e.prototype._isElement=function(t,e){var n=this.get(e);return t===n||!!n.isGroup&&-1<n.get("children").indexOf(t)},e.prototype._getRange=function(t,e){var n=t+e;return n=(n=100<n?100:n)<0?0:n},e.prototype._updateStatus=function(t,e){var n="x"===t?this.get("width"):this.get("height");t=l.upperFirst(t);var r=this.get("range"),i=this.get("page"+t),o=this.get("currentTarget"),a=this.get("rangeStash"),u="vertical"===this.get("layout")?-1:1,c=e["page"+t],s=(c-i)/n*100*u,f=void 0;r[1]<=r[0]?(this._isElement(o,"minHandleElement")||this._isElement(o,"maxHandleElement"))&&(r[0]=this._getRange(s,r[0]),r[1]=this._getRange(s,r[0])):(this._isElement(o,"minHandleElement")&&(r[0]=this._getRange(s,r[0])),this._isElement(o,"maxHandleElement")&&(r[1]=this._getRange(s,r[1]))),this._isElement(o,"middleHandleElement")&&(f=a[1]-a[0],r[0]=this._getRange(s,r[0]),r[1]=r[0]+f,100<r[1]&&(r[1]=100,r[0]=r[1]-f)),this.emit("sliderchange",{range:r}),this.set("page"+t,c),this._renderUI(),this.get("canvas").draw()},e.prototype._onMouseDown=function(t){var e=t.currentTarget,n=t.event,r=this.get("range");n.stopPropagation(),n.preventDefault(),this.set("pageX",n.pageX),this.set("pageY",n.pageY),this.set("currentTarget",e),this.set("rangeStash",[r[0],r[1]]),this._bindCanvasEvents()},e.prototype._bindCanvasEvents=function(){var t=this.get("canvas").get("containerDOM");this.onMouseMoveListener=o.addEventListener(t,"mousemove",l.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=o.addEventListener(t,"mouseup",l.wrapBehavior(this,"_onCanvasMouseUp"))},e.prototype._onCanvasMouseMove=function(t){"horizontal"===this.get("layout")?this._updateStatus("x",t):this._updateStatus("y",t)},e.prototype._onCanvasMouseUp=function(){this._removeDocumentEvents()},e.prototype._removeDocumentEvents=function(){this.onMouseMoveListener.remove(),this.onMouseUpListener.remove()},e}(i);t.exports=a},function(t,e,n){var f=n(0),r=n(1),i=n(166),o=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return f.mix({},t,{type:"size-legend",width:100,height:200,_circleStyle:{stroke:"#4E7CCC",fill:"#fff",fillOpacity:0},textStyle:{fill:"#333",textAlign:"start",textBaseline:"middle",fontFamily:r.fontFamily}})},t.prototype._renderSliderShape=function(){var t=this.get("slider").get("backgroundElement"),e=this.get("width"),n=this.get("height"),r=this.get("inRange"),i="vertical"===this.get("layout")?[[0,0],[e,0],[e,n]]:[[0,n],[e,0],[e,n]];return this._addBackground(t,"Polygon",f.mix({points:i},r))},t.prototype._addCircle=function(t,e,n,r,i){var o=this.addGroup(),a=this.get("_circleStyle"),u=this.get("textStyle"),c=this.get("titleShape"),s=this.get("titleGap");c&&(s+=c.getBBox().height),o.addShape("circle",{attrs:f.mix({x:t,y:e+s,r:0===n?1:n},a)}),o.addShape("text",{attrs:f.mix({x:i+5,y:e+s,text:0===r?"0":r},u)})},t.prototype._renderBackground=function(){var t=1*this.get("firstItem").attrValue,e=1*this.get("lastItem").attrValue,n=(t+e)/2;this._addCircle(e,e,e,n,2*e),this._addCircle(e,2*e+8+n,n,(t+n)/2,2*e),this._addCircle(e,2*(e+8+n)+t,t,t,2*e)},t}(i);t.exports=o},function(t,e,n){var v=n(0),r=n(2).Group,i=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.getDefaultCfg=function(){return{type:"plotBack",padding:null,background:null,plotRange:null,plotBackground:null}},e.prototype._beforeRenderUI=function(){this._calculateRange()},e.prototype._renderUI=function(){this._renderBackground(),this._renderPlotBackground()},e.prototype._renderBackground=function(){var t=this.get("background");if(t){var e=this.get("canvas"),n={x:0,y:0,width:this.get("width")||e.get("width"),height:this.get("height")||e.get("height")},r=this.get("backgroundShape");r?r.attr(n):(r=this.addShape("rect",{attrs:v.mix(n,t)}),this.set("backgroundShape",r))}},e.prototype._renderPlotBackground=function(){var t=this.get("plotBackground");if(t){var e=this.get("plotRange"),n=e.br.x-e.bl.x,r=e.br.y-e.tr.y,i=e.tl,o={x:i.x,y:i.y,width:n,height:r},a=this.get("plotBackShape");a?a.attr(o):(t.image?(o.img=t.image,a=this.addShape("image",{attrs:o})):(v.mix(o,t),a=this.addShape("rect",{attrs:o})),this.set("plotBackShape",a))}},e.prototype._convert=function(t,e){if(v.isString(t))if("auto"===t)t=0;else if(-1!==t.indexOf("%")){var n=this.get("canvas"),r=this.get("width")||n.get("width"),i=this.get("height")||n.get("height");t=parseInt(t,10)/100,t=e?t*r:t*i}return t},e.prototype._calculateRange=function(){var t=this.get("plotRange");v.isNil(t)&&(t={});var e=this.get("padding"),n=this.get("canvas"),r=this.get("width")||n.get("width"),i=this.get("height")||n.get("height"),o=v.toAllPadding(e),a=this._convert(o[0],!1),u=this._convert(o[1],!0),c=this._convert(o[2],!1),s=this._convert(o[3],!0),f=Math.min(s,r-u),l=Math.max(s,r-u),h=Math.min(i-c,a),p=Math.max(i-c,a);t.tl={x:f,y:h},t.tr={x:l,y:h},t.bl={x:f,y:p},t.br={x:l,y:p},t.cc={x:(l+f)/2,y:(p+h)/2},this.set("plotRange",t)},e.prototype.repaint=function(){return this._calculateRange(),this._renderBackground(),this._renderPlotBackground(),this},e}(r);t.exports=i},function(t,e,n){var F=n(0),r=n(73),i=n(1),N=n(2).DomUtil,o="g2-tooltip",u="g2-tooltip-title",c="g2-tooltip-list",s="g2-tooltip-marker";function f(t,e){return t.getElementsByClassName(e)[0]}var a=function(a){function n(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n);var e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,a.call(this,t));return e._init(),e.get("items")&&e._renderTooltip(),e._renderCrosshairs(),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(n,a),n.prototype.getDefaultCfg=function(){return{x:0,y:0,items:null,showTitle:!0,crosshairs:null,plotRange:null,offset:10,timeStamp:0,containerTpl:'<div class="'+o+'"><div class="'+u+'"></div><ul class="'+c+'"></ul></div>',itemTpl:'<li data-index={index}><span style="background-color:{color};" class='+s+"></span>{name}: {value}</li>",inPlot:!0,follow:!0,enterable:!1}},n.prototype._initTooltipWrapper=function(){var t=this.get("containerTpl"),e=this.get("canvas").get("el").parentNode,n=void 0;if(/^\#/.test(t)){var r=t.replace("#","");n=document.getElementById(r)}else n=N.createDom(t),N.modifyCSS(n,this.get(o)),e.appendChild(n),e.style.position="relative";this.set("container",n)},n.prototype._init=function(){var t=this.get("crosshairs"),e=this.get("frontPlot"),n=this.get("backPlot"),r=void 0;t&&("rect"===t.type?(this.set("crosshairs",F.deepMix({},i.tooltipCrosshairsRect,t)),r=n.addGroup({zIndex:0})):(this.set("crosshairs",F.deepMix({},i.tooltipCrosshairsLine,t)),r=e.addGroup())),this.set("crosshairsGroup",r),this._initTooltipWrapper()},n.prototype._clearDom=function(){var t=this.get("container"),e=f(t,u),n=f(t,c);e&&(e.innerHTML=""),n&&(n.innerHTML="")},n.prototype._addItem=function(t,e){var n=this.get("itemTpl"),r=F.substitute(n,F.mix({index:e},t)),i=N.createDom(r);N.modifyCSS(i,this.get("g2-tooltip-list-item"));var o=f(i,s);return o&&N.modifyCSS(o,this.get(s)),i},n.prototype._renderTooltip=function(){var n=this,t=n.get("showTitle"),e=n.get("titleContent"),r=n.get("container"),i=f(r,u),o=f(r,c),a=n.get("items");n._clearDom(),i&&t&&(N.modifyCSS(i,n.get(u)),i.innerHTML=e),o&&(N.modifyCSS(o,n.get(c)),F.each(a,function(t,e){o.appendChild(n._addItem(t,e))}))},n.prototype._clearCrosshairsGroup=function(){var t=this.get("crosshairsGroup");this.set("crossLineShapeX",null),this.set("crossLineShapeY",null),this.set("crosshairsRectShape",null),t.clear()},n.prototype._renderCrosshairs=function(){var t=this.get("crosshairs"),e=this.get("canvas"),n=this.get("plotRange"),r=this.get("isTransposed");if(t)switch(this._clearCrosshairsGroup(),t.type){case"x":this._renderHorizontalLine(e,n);break;case"y":this._renderVerticalLine(e,n);break;case"cross":this._renderHorizontalLine(e,n),this._renderVerticalLine(e,n);break;case"rect":this._renderBackground(e,n);break;default:r?this._renderHorizontalLine(e,n):this._renderVerticalLine(e,n)}},n.prototype._addCrossLineShape=function(t,e){var n=this.get("crosshairsGroup").addShape("line",{attrs:t});return n.hide(),this.set("crossLineShape"+e,n),n},n.prototype._renderVerticalLine=function(t,e){var n=this.get("crosshairs").style,r=F.mix({x1:0,y1:e?e.bl.y:t.get("height"),x2:0,y2:e?e.tl.y:0},n);this._addCrossLineShape(r,"Y")},n.prototype._renderHorizontalLine=function(t,e){var n=this.get("crosshairs").style,r=F.mix({x1:e?e.bl.x:t.get("width"),y1:0,x2:e?e.br.x:0,y2:0},n);this._addCrossLineShape(r,"X")},n.prototype._renderBackground=function(t,e){var n=this.get("crosshairs").style,r=this.get("crosshairsGroup"),i=F.mix({x:e?e.tl.x:0,y:e?e.tl.y:t.get("height"),width:e?e.br.x-e.bl.x:t.get("width"),height:e?Math.abs(e.tl.y-e.bl.y):t.get("height")},n),o=r.addShape("rect",{attrs:i});return o.hide(),this.set("crosshairsRectShape",o),o},n.prototype.isContentChange=function(t,e){var n=this.get("titleContent"),r=this.get("items"),i=!(t===n&&r.length===e.length);return i||F.each(e,function(t,e){var n=r[e];if(i=t.value!==n.value||t.color!==n.color||t.name!==n.name||t.title!==n.title)return!1}),i},n.prototype.setContent=function(t,e){var n=+new Date;return this.set("items",e),this.set("titleContent",t),this.set("timeStamp",n),this._renderTooltip(),this},n.prototype.setMarkers=function(t,e){var n=this.get("markerGroup"),r=this.get("frontPlot");n?n.clear():(n=r.addGroup({zIndex:1,capture:!1}),this.set("markerGroup",n)),F.each(t,function(t){n.addShape("marker",{color:t.color,attrs:F.mix({},e,{x:t.x,y:t.y})})}),this.set("markerItems",t)},n.prototype.clearMarkers=function(){var t=this.get("markerGroup");t&&t.clear()},n.prototype.setPosition=function(t,e,n){var r,i,o,a,u,c,s,f,l,h,p,v,g,d=this.get("container"),y=this.get("crossLineShapeX"),b=this.get("crossLineShapeY"),m=this.get("crosshairsRectShape"),x=t,j=e,_=this.get("canvas").get("el"),O=N.getWidth(_),w=N.getHeight(_),S=this.get("offset"),M=void 0;if(this.get("position")?(t=(M=function(t,e,n,r,i){var o=r.clientWidth,a=r.clientHeight,u=0,c=0,s=20;if(i){var f=i.getBBox();u=f.width,c=f.height,t=f.x,e=f.y,s=5}switch(n){case"inside":t=t+u/2-o/2,e=e+c/2-a/2;break;case"top":t=t+u/2-o/2,e=e-a-s;break;case"left":t=t-o-s,e=e+c/2-a/2;break;case"right":t=t+u+s,e=e+c/2-a/2;break;case"bottom":default:t=t+u/2-o/2,e=e+c+s}return[t,e]}(t,e,this.get("position"),d,n))[0],e=M[1]):this.get("position")||(r=t,i=e,a=O,u=w,c=(o=d).clientWidth,s=o.clientHeight,a<r+c+20?r=(r-=c+20)<0?0:r:r+=20,u<i+s+20?(i-=s+20,i=r<0?0:i):i+=20,t=(M=[r,i])[0],e=M[1]),this.get("inPlot")){var E=this.get("plotRange");f=t,l=e,p=E,v=(h=d).clientWidth,g=h.clientHeight,f+v>p.tr.x&&(f-=v+40),f<p.tl.x&&(f=p.tl.x),l+g>p.bl.y&&(l-=g+40),l<p.tl.y&&(l=p.tl.y),t=(M=[f,l])[0],e=M[1]}if(this.get("x")!==t||this.get("y")!==e){var C=this.get("markerItems");if(F.isEmpty(C)||(x=C[0].x,j=C[0].y),b&&b.move(x,0),y&&y.move(0,j),m){var P=this.get("isTransposed"),A=this.get("items"),T=A[0],k=A[A.length-1],I=P?"y":"x",L=P?"height":"width",R=T[I];if(1<A.length&&T[I]>k[I]&&(R=k[I]),this.get("crosshairs").width)m.attr(I,R-this.get("crosshairs").width/2),m.attr(L,this.get("crosshairs").width);else if(S=T.size/2+T.size/4||10,m.attr(I,R-S),1===A.length)m.attr(L,T.size+T.size/2);else{var D=A[A.length-1];m.attr(L,Math.abs(D[I]-T[I])+2*S)}}var B=this.get("follow");d.style.left=B?t+"px":0,d.style.top=B?e+"px":0}},n.prototype.show=function(){var t=this.get("crossLineShapeX"),e=this.get("crossLineShapeY"),n=this.get("crosshairsRectShape"),r=this.get("markerGroup"),i=this.get("container"),o=this.get("canvas");t&&t.show(),e&&e.show(),n&&n.show(),r&&r.show(),a.prototype.show.call(this),i.style.visibility="visible",o.draw()},n.prototype.hide=function(){var t=this.get("container"),e=this.get("crossLineShapeX"),n=this.get("crossLineShapeY"),r=this.get("crosshairsRectShape"),i=this.get("markerGroup"),o=this.get("canvas");t.style.visibility="hidden",e&&e.hide(),n&&n.hide(),r&&r.hide(),i&&i.hide(),a.prototype.hide.call(this),o.draw()},n.prototype.destroy=function(){var t=this.get("crossLineShapeX"),e=this.get("crossLineShapeY"),n=this.get("markerGroup"),r=this.get("crosshairsRectShape"),i=this.get("container"),o=this.get("containerTpl");i&&!/^\#/.test(o)&&i.parentNode.removeChild(i),t&&t.remove(),e&&e.remove(),n&&n.remove(),r&&r.remove(),a.prototype.destroy.call(this)},n}(r);t.exports=a},function(t,e,n){var u=n(0),c=n(32).Guide,s=n(1),r=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.guides=[],this.options=[],this.xScales=null,this.yScales=null,this.container=null,u.mix(this,t)}return e.prototype._creatGuides=function(){var i=this,t=this.options,o=this.xScales,a=this.yScales;return t.forEach(function(t){var e=t.type,n=u.deepMix({xScales:o,yScales:a},s.guide[e],t);e=u.upperFirst(e);var r=new c[e](n);i.guides.push(r)}),i.guides},e.prototype.line=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this.options.push(u.mix({type:"line"},t)),this},e.prototype.arc=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this.options.push(u.mix({type:"arc"},t)),this},e.prototype.text=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this.options.push(u.mix({type:"text"},t)),this},e.prototype.image=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this.options.push(u.mix({type:"image"},t)),this},e.prototype.region=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this.options.push(u.mix({type:"region"},t)),this},e.prototype.html=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return this.options.push(u.mix({type:"html"},t)),this},e.prototype.render=function(e){var n=this,t=n._creatGuides(),r=n.backContainer;u.each(t,function(t){t.top&&(r=n.frontContainer),t.render(e,r)})},e.prototype.clear=function(){this.options=[],this.reset()},e.prototype.changeVisible=function(e){var t=this.guides;u.each(t,function(t){t.setVisible(e)})},e.prototype.reset=function(){var t=this.guides;u.each(t,function(t){t.remove()}),this.guides=[]},e}();t.exports=r},function(t,e,n){var j=n(0),_=n(1),O=n(32).Legend,w=n(76),c=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame;var r=function(){function n(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),this.options={},j.mix(this,t),this.clear();var e=this.chart;this.container=e.get("frontPlot"),this.plotRange=e.get("plotRange")}return n.prototype.clear=function(){var t=this.legends;j.each(t,function(t){j.each(t,function(t){t.remove()})}),this.legends={}},n.prototype._isFieldInView=function(t,e,n){var r=!1,i=n.get("scales")[t];return i&&i.values&&(r=j.inArray(i.values,e)),r},n.prototype._bindClickEvent=function(o,t,a){var u=this,c=u.chart,s=c.get("views"),f=t.field,l=u.options;o.on("itemclick",function(t){if(l.onClick)l.onClick(t);else{var e=t.item,n=t.checked,r="single"===o.get("selectedMode"),i=e.dataValue;n?(a.push(i),u._isFieldInView(f,i,c)&&c.filter(f,function(t){return r?t===i:j.inArray(a,t)}),j.each(s,function(t){u._isFieldInView(f,i,t)&&t.filter(f,function(t){return r?t===i:j.inArray(a,t)})})):r||(j.Array.remove(a,i),u._isFieldInView(f,i,c)&&c.filter(f,function(t){return j.inArray(a,t)}),j.each(s,function(t){u._isFieldInView(f,i,t)&&t.filter(f,function(t){return j.inArray(a,t)})})),c.set("keepLegend",!0),c.set("keepPadding",!0),c.repaint(),c.set("keepPadding",!1),c.set("keepLegend",!1)}})},n.prototype._filterLabels=function(n,t,r){if(n.get("gLabel"))n.get("gLabel").set("visible",r);else{var e=t.get("labelCfg");if(e&&e.fields&&0<e.fields.length){var i=t.getXScale(),o=t.getYScale(),a=i.field,u=o.field,c=n.get("origin")._origin,s=t.get("labelContainer").get("labelsGroup").get("children");j.each(s,function(t){var e=t.get("origin")||[];e[a]===c[a]&&e[u]===c[u]&&(t.set("visible",r),n.set("gLabel",t))})}}},n.prototype._bindFilterEvent=function(t,e){var o=this,a=this.chart,u=e.field;t.on("itemfilter",function(t){var i=t.range;a.filterShape(function(t,e,n){if(t[u]){var r=t[u]>=i[0]&&t[u]<=i[1];return o._filterLabels(e,n,r),r}return!0});for(var n=a.getAllGeoms()||[],e=function(t){var e=n[t];"heatmap"===e.get("type")&&c(function(){e.drawWithRange(i)})},r=0;r<n.length;r++)e(r)})},n.prototype._getShapeData=function(t){var e=t.get("origin");return j.isArray(e)&&(e=e[0]),e._origin},n.prototype._bindHoverEvent=function(t,c){var s=this,e=s.chart,n=e.getAllGeoms(),i=s.options,f=e.get("canvas");t.on("itemhover",function(r){var u=r.item.value,t=s.pre;if(t){if(t===u)return}else j.each(n,function(t){var e=t.get("shapeContainer"),n=t.getShapes(),o=[];if(c){var a=t.get("scales")[c];j.each(n,function(t){var e,n,r,i=s._getShapeData(t);i&&(e=i[c],n=u,r=a,!j.isNil(r)&&(e=r.translate(e),n=r.translate(n),r.isCategory?e===n:Math.abs(e-n)<=1))&&o.push(t)})}else t.getYScale().field===u&&(o=n);j.isEmpty(o)||(r.shapes=o,r.geom=t,i.onHover?(i.onHover(r),e.sort(),f.draw()):t.setShapesActived(o))}),s.pre=u}),t.on("itemunhover",function(){s.pre=null,j.each(n,function(t){t.get("activeShapes")&&(t.clearActivedShapes(),f.draw())})})},n.prototype._isFiltered=function(e,t,n){if(!e.isCategory)return!0;var r=!1;return n=e.invert(n),j.each(t,function(t){if(r=r||e.getText(t)===e.getText(n))return!1}),r},n.prototype._alignLegend=function(t,e,n,r){var i=this.container.get("canvas"),o=i.get("width"),a=i.get("height"),u=this.plotRange,c=t.get("offsetX")||0,s=t.get("offsetY")||0,f=j.isNil(t.get("offset"))?24:t.get("offset"),l=t.getHeight(),h=0,p=0;if("left"===r||"right"===r)a=u.br.y,h="left"===r?f:u.br.x+f,p=a-l,e&&(p=e.get("y")-l-24);else if(h=(o-n.totalWidth)/2,p="top"===r?f:u.bl.y+f,e){var v=e.getWidth();h=e.get("x")+v+24}t.move(h+c,p+s)},n.prototype._getRegion=function(t){var n=0,r=0;return j.each(t,function(t){var e=t.getWidth();n<e&&(n=e),r+=e}),{maxWidth:n,totalWidth:r}},n.prototype._addCategroyLegend=function(l,t,h,p,e){var v=this,n=l.field,r=v.options,i=v.legends;i[e]=i[e]||[];var o=v.container,g=[],a=l.getTicks(),d=!0,y=h.get("shapeType")||"point",b=h.getDefaultValue("shape")||"circle";r[n]&&r[n].marker?(b=r[n].marker,d=!(y="point")):r.marker&&(b=r.marker,d=!(y="point"));var u=v.chart,c=u.get("canvas"),s=v.plotRange,f="right"===e||"left"===e?s.bl.y-s.tr.y:c.get("width");j.each(a,function(t){var e=t.text,n=t.value,r=l.invert(n),i={isInCircle:h.isInCircle()},o=!p||v._isFiltered(l,p,n),a=h.getAttr("color"),u=h.getAttr("shape");if(a)if(a.callback&&1<a.callback.length){var c=Array(a.callback.length-1).fill("");i.color=a.mapping.apply(a,[r].concat(c)).join("")||_.defaultColor}else i.color=a.mapping(r).join("")||_.defaultColor;if(d&&u)if(u.callback&&1<u.callback.length){var s=Array(u.callback.length-1).fill("");b=u.mapping.apply(u,[r].concat(s)).join("")}else b=u.mapping(r).join("");var f=w.getShapeFactory(y).getMarkerCfg(b,i);j.isFunction(b)&&(f.symbol=b),g.push({value:e,dataValue:r,checked:o,marker:f})});var m=j.deepMix({},_.legend[e],r[n]||r,{viewId:u.get("_id"),maxLength:f,items:g});m.title&&j.deepMix(m,{title:{text:l.alias||l.field}});var x=o.addGroup(O.Category,m);return v._bindClickEvent(x,l,p),i[e].push(x),x},n.prototype._addContinuousLegend=function(i,o,t){var e=this.legends;e[t]=e[t]||[];var n=this.container,r=i.field,a=i.getTicks(),u=[],c=void 0,s=void 0,f=void 0;j.each(a,function(t){var e=t.value,n=i.invert(e),r=o.mapping(n).join("");u.push({value:t.tickValue,attrValue:r,scaleValue:e}),0===e&&(s=!0),1===e&&(f=!0)}),s||u.push({value:i.min,attrValue:o.mapping(0).join(""),scaleValue:0}),f||u.push({value:i.max,attrValue:o.mapping(1).join(""),scaleValue:1});var l=this.options,h=_.legend[t];(l&&!1===l.slidable||l[r]&&!1===l[r].slidable)&&(h=j.mix({},h,_.legend.gradient));var p=j.deepMix({},h,l[r]||l,{items:u,attr:o,numberFormatter:i.formatter});return p.title&&j.deepMix(p,{title:{text:i.alias||i.field}}),"color"===o.type?c=n.addGroup(O.Color,p):"size"===o.type&&(c=n.addGroup(O.Size,p)),this._bindFilterEvent(c,i),e[t].push(c),c},n.prototype.addLegend=function(t,e,n,r){var i=this.options,o=t.field,a=i[o];if(!1===a)return null;if(a&&a.custom)this.addCustomLegend(o);else{var u=i.position||_.defaultLegendPosition;a&&a.position&&(u=a.position);var c=void 0;c=t.isLinear?this._addContinuousLegend(t,e,u):this._addCategroyLegend(t,e,n,r,u),this._bindHoverEvent(c,o)}},n.prototype.addCustomLegend=function(t){var e=this.chart,n=this.container,r=this.options;t&&(r=r[t]);var i=r.position||_.defaultLegendPosition,o=this.legends;o[i]=o[i]||[];var a=r.items;if(a){var u=e.getAllGeoms();j.each(a,function(t){var e,n,r,i=(e=u,n=t.value,r=void 0,j.each(e,function(t){t.get("visible")&&t.getYScale().field===n&&(r=t)}),r);j.isObject(t.marker)?t.marker.radius=t.marker.radius||4.5:t.marker={symbol:t.marker?t.marker:"circle",fill:t.fill,radius:4.5},t.checked=!!j.isNil(t.checked)||t.checked,t.geom=i});var c=e.get("canvas"),s=this.plotRange,f="right"===i||"left"===i?s.bl.y-s.tr.y:c.get("width"),l=j.deepMix({},_.legend[i],r,{maxLength:f,items:a}),h=n.addGroup(O.Category,l);o[i].push(h),h.on("itemclick",function(t){r.onClick&&r.onClick(t)}),this._bindHoverEvent(h)}},n.prototype.alignLegends=function(){var a=this,t=a.legends;return j.each(t,function(r,i){var o=a._getRegion(r);j.each(r,function(t,e){var n=r[e-1];t.get("useHtml")&&!t.get("autoPosition")||a._alignLegend(t,n,o,i)})}),this},n}();t.exports=r},function(t,e,n){var l=n(0),h=n(1),c=n(32).Tooltip,p=n(2).MatrixUtil.vec2,v=["line","area","path","areaStack"],o=["line","area"];function i(t,e){if(!t)return!1;return!!t.className&&-1!==(l.isNil(t.className.baseVal)?t.className:t.className.baseVal).indexOf(e)}function g(t){var o=[];return l.each(t,function(t){var e,n,r,i=(e=o,n=t,r=-1,l.each(e,function(t,e){if(t.title===n.title&&t.name===n.name&&t.value===n.value&&t.color===n.color)return r=e,!1}),r);-1===i?o.push(t):o[i]=t}),o}var r=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),l.assign(this,t),this.timeStamp=0}return e.prototype._normalizeEvent=function(t){var e=this.chart,n=this._getCanvas(),r=n.getPointByClient(t.clientX,t.clientY),i=n.get("pixelRatio");r.x=r.x/i,r.y=r.y/i;var o=e.getViewsByPoint(r);return r.views=o,r},e.prototype._getCanvas=function(){return this.chart.get("canvas")},e.prototype._getTriggerEvent=function(){var t=this.options.triggerOn,e=void 0;return t&&"mousemove"!==t?"click"===t?e="plotclick":"none"===t&&(e=null):e="plotmove",e},e.prototype._getDefaultTooltipCfg=function(){var t=this.options,e=l.mix({},h.tooltip),n=this.chart.getAllGeoms().filter(function(t){return t.get("visible")}),i=[];l.each(n,function(t){var e=t.get("type"),n=t.get("adjusts"),r=!1;n&&l.each(n,function(t){if("symmetric"===t.type||"Symmetric"===t.type)return!(r=!0)}),-1!==l.indexOf(i,e)||r||i.push(e)});var r=void 0;return n.length&&n[0].get("coord")&&"cartesian"===n[0].get("coord").type&&1===i.length&&("interval"===i[0]&&!1!==t.shared?r={zIndex:0,crosshairs:h.tooltipCrosshairsRect}:-1<l.indexOf(o,i[0])&&(r={crosshairs:h.tooltipCrosshairsLine})),l.mix(e,r,{isTransposed:!(!n.length||!n[0].get("coord"))&&n[0].get("coord").isTransposed})},e.prototype._bindEvent=function(){var t=this.chart,e=this._getTriggerEvent();e&&(t.on(e,l.wrapBehavior(this,"onMouseMove")),t.on("plotleave",l.wrapBehavior(this,"onMouseOut")))},e.prototype._offEvent=function(){var t=this.chart,e=this._getTriggerEvent();e&&(t.off(e,l.getWrapBehavior(this,"onMouseMove")),t.off("plotleave",l.getWrapBehavior(this,"onMouseOut")))},e.prototype._setTooltip=function(t,e,n,r){var i=this.tooltip,o=this.prePoint;if(!o||o.x!==t.x||o.y!==t.y){e=g(e),this.prePoint=t;var a=this.chart,u=l.isArray(t.x)?t.x[t.x.length-1]:t.x,c=l.isArray(t.y)?t.y[t.y.length-1]:t.y;i.get("visible")||a.emit("tooltip:show",{x:u,y:c,tooltip:i});var s=e[0],f=s.title||s.name;i.isContentChange(f,e)&&(a.emit("tooltip:change",{tooltip:i,x:u,y:c,items:e}),f=e[0].title||e[0].name,i.setContent(f,e),l.isEmpty(n)?i.clearMarkers():!0===this.options.hideMarkers?i.set("markerItems",n):i.setMarkers(n,h.tooltipMarker)),i.setPosition(u,c,r),i.show()}},e.prototype.hideTooltip=function(){var t=this.tooltip,e=this.chart,n=this._getCanvas();this.prePoint=null,t.hide(),e.emit("tooltip:hide",{tooltip:t}),n.draw()},e.prototype.onMouseMove=function(t){if(!l.isEmpty(t.views)){var e=this.timeStamp,n=+new Date,r={x:t.x,y:t.y};if(16<n-e){var i=void 0;t.shape&&l.inArray(["point","interval","polygon","schema"],t.shape.name)&&(i=t.shape),this.showTooltip(r,t.views,i),this.timeStamp=n}}},e.prototype.onMouseOut=function(t){var e=this.tooltip,n=this._getCanvas();e.get("visible")&&(t&&t.target!==n||t&&t.toElement&&(i(t.toElement,"g2-tooltip")||function(t,e){for(var n=t.parentNode,r=!1;n&&n!==document.body;){if(i(n,e)){r=!0;break}n=n.parentNode}return r}(t.toElement,"g2-tooltip"))||this.hideTooltip())},e.prototype.renderTooltip=function(){var n=this;if(!n.tooltip){var r=n.chart,t=n._getCanvas(),e=n._getDefaultTooltipCfg(),i=n.options;(i=l.deepMix({plotRange:r.get("plotRange"),capture:!1,canvas:t,frontPlot:r.get("frontPlot"),backPlot:r.get("backPlot")},e,i)).crosshairs&&"rect"===i.crosshairs.type&&(i.zIndex=0),(i.visible=!1)===i.shared&&l.isNil(i.position)&&(i.position="top");var o=new c(i);n.tooltip=o;var a=n._getTriggerEvent();if(!o.get("enterable")&&"plotmove"===a){var u=o.get("container");u&&(u.onmousemove=function(t){var e=n._normalizeEvent(t);r.emit(a,e)})}n._bindEvent()}},e.prototype.showTooltip=function(u,t,e){if(!l.isEmpty(t)&&u){this.tooltip||this.renderTooltip();var c=this.options,s=[],f=[];if(l.each(t,function(t){if(!t.get("tooltipEnable"))return!0;var e=t.get("geoms"),a=t.get("coord");l.each(e,function(r){var i=r.get("type");if(r.get("visible")&&!1!==r.get("tooltipCfg")){var t=r.get("dataArray");if(r.isShareTooltip()||!1===c.shared&&l.inArray(["area","line","path"],i))l.each(t,function(t){var e=r.findPoint(u,t);if(e){var n=r.getTipItems(e,c.title);-1!==l.indexOf(v,i)&&l.each(n,function(t){var e=t.point;if(e&&e.x&&e.y){var n=l.isArray(e.x)?e.x[e.x.length-1]:e.x,r=l.isArray(e.y)?e.y[e.y.length-1]:e.y;e=a.applyMatrix(n,r,1),t.x=e[0],t.y=e[1],t.showMarker=!0,s.push(t)}}),f=f.concat(n)}});else{var e=r.get("shapeContainer"),n=e.get("canvas").get("pixelRatio"),o=e.getShape(u.x*n,u.y*n);o&&o.get("visible")&&o.get("origin")&&(f=r.getTipItems(o.get("origin"),c.title))}}}),l.each(f,function(t){var e=t.point,n=l.isArray(e.x)?e.x[e.x.length-1]:e.x,r=l.isArray(e.y)?e.y[e.y.length-1]:e.y;e=a.applyMatrix(n,r,1),t.x=e[0],t.y=e[1]})}),f.length){var n=f[0];if(!f.every(function(t){return t.title===n.title})){var r=n,i=1/0;f.forEach(function(t){var e=p.distance([u.x,u.y],[t.x,t.y]);e<i&&(i=e,r=t)}),f=f.filter(function(t){return t.title===r.title}),s=s.filter(function(t){return t.title===r.title})}if(!1===c.shared&&1<f.length){var o=f[0],a=Math.abs(u.y-o.y);l.each(f,function(t){Math.abs(u.y-t.y)<=a&&(o=t,a=Math.abs(u.y-t.y))}),o&&o.x&&o.y&&(s=[o]),f=[o]}this._setTooltip(u,f,s,e)}else this.hideTooltip()}},e.prototype.clear=function(){var t=this.tooltip;t&&t.destroy(),this.tooltip=null,this.prePoint=null,this._offEvent()},e}();t.exports=r},function(t,e,n){var c=n(0);function s(t,e){if(c.isNil(t)||c.isNil(e))return!1;var n=t.get("origin"),r=e.get("origin");return c.isNil(n)&&c.isNil(r)?c.isEqual(t,e):c.isEqual(n,r)}function f(t){t.shape&&t.shape.get("origin")&&(t.data=t.shape.get("origin"))}var r=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),this.view=null,this.canvas=null,c.assign(this,t),this._init()}return e.prototype._init=function(){this.pixelRatio=this.canvas.get("pixelRatio")},e.prototype._getShapeEventObj=function(t){return{x:t.x/this.pixelRatio,y:t.y/this.pixelRatio,target:t.target,toElement:t.event.toElement||t.event.relatedTarget}},e.prototype._getShape=function(t,e){return this.view.get("canvas").getShape(t,e)},e.prototype._getPointInfo=function(t){var e=this.view,n={x:t.x/this.pixelRatio,y:t.y/this.pixelRatio},r=e.getViewsByPoint(n);return n.views=r,n},e.prototype._getEventObj=function(t,e,n){return{x:e.x,y:e.y,target:t.target,toElement:t.event.toElement||t.event.relatedTarget,views:n}},e.prototype.bindEvents=function(){var t=this.canvas;t.on("mousedown",c.wrapBehavior(this,"onDown")),t.on("mousemove",c.wrapBehavior(this,"onMove")),t.on("mouseleave",c.wrapBehavior(this,"onOut")),t.on("mouseup",c.wrapBehavior(this,"onUp")),t.on("click",c.wrapBehavior(this,"onClick")),t.on("dblclick",c.wrapBehavior(this,"onClick")),t.on("touchstart",c.wrapBehavior(this,"onTouchstart")),t.on("touchmove",c.wrapBehavior(this,"onTouchmove")),t.on("touchend",c.wrapBehavior(this,"onTouchend"))},e.prototype._triggerShapeEvent=function(t,e,n){if(t&&t.name&&!t.get("destroyed")){var r=this.view;if(r.isShapeInView(t)){var i=t.name+":"+e;n.view=r,n.appendInfo=t.get("appendInfo"),r.emit(i,n);var o=r.get("parent");o&&o.emit(i,n)}}},e.prototype.onDown=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,f(n),e.emit("mousedown",n),this._triggerShapeEvent(this.currentShape,"mousedown",n)},e.prototype.onMove=function(t){var e=this,n=e.view,r=e.currentShape;r&&r.get("destroyed")&&(r=null,e.currentShape=null);var i=e._getShape(t.x,t.y),o=e._getShapeEventObj(t);if(o.shape=i,f(o),n.emit("mousemove",o),e._triggerShapeEvent(i,"mousemove",o),r&&!s(r,i)){var a=e._getShapeEventObj(t);a.shape=r,a.toShape=i,f(a),e._triggerShapeEvent(r,"mouseleave",a)}if(i&&!s(r,i)){var u=e._getShapeEventObj(t);u.shape=i,u.fromShape=r,f(u),e._triggerShapeEvent(i,"mouseenter",u)}e.currentShape=i;var c=e._getPointInfo(t);0===(e.curViews||[]).length&&c.views.length&&n.emit("plotenter",e._getEventObj(t,c,c.views)),c.views.length&&((o=e._getEventObj(t,c,c.views)).shape=i,f(o),n.emit("plotmove",o)),e.curViews=c.views},e.prototype.onOut=function(t){var e=this.view,n=this._getPointInfo(t),r=this.curViews||[],i=this._getEventObj(t,n,r);0!==n.views.length||i.toElement&&"CANVAS"===i.toElement.tagName||e.emit("plotleave",i)},e.prototype.onUp=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,e.emit("mouseup",n),this._triggerShapeEvent(this.currentShape,"mouseup",n)},e.prototype.onClick=function(t){var e=this.view,n=this._getShape(t.x,t.y),r=this._getShapeEventObj(t);r.shape=n,f(r),e.emit("click",r),this._triggerShapeEvent(n,t.type,r),this.currentShape=n;var i=this._getPointInfo(t),o=i.views;if(!c.isEmpty(o)){var a=this._getEventObj(t,i,o);if(this.currentShape){var u=this.currentShape;a.shape=u,f(a)}e.emit("plotclick",a),"dblclick"===t.type&&(e.emit("plotdblclick",a),e.emit("dblclick",r))}},e.prototype.onTouchstart=function(t){var e=this.view,n=this._getShape(t.x,t.y),r=this._getShapeEventObj(t);r.shape=n,f(r),e.emit("touchstart",r),this._triggerShapeEvent(n,"touchstart",r),this.currentShape=n},e.prototype.onTouchmove=function(t){var e=this.view,n=this._getShape(t.x,t.y),r=this._getShapeEventObj(t);r.shape=n,f(r),e.emit("touchmove",r),this._triggerShapeEvent(n,"touchmove",r),this.currentShape=n},e.prototype.onTouchend=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,f(n),e.emit("touchend",n),this._triggerShapeEvent(this.currentShape,"touchend",n)},e.prototype.clearEvents=function(){var t=this.canvas;t.off("mousemove",c.getWrapBehavior(this,"onMove")),t.off("mouseleave",c.getWrapBehavior(this,"onOut")),t.off("mousedown",c.getWrapBehavior(this,"onDown")),t.off("mouseup",c.getWrapBehavior(this,"onUp")),t.off("click",c.getWrapBehavior(this,"onClick")),t.off("dblclick",c.getWrapBehavior(this,"onClick")),t.off("touchstart",c.getWrapBehavior(this,"onTouchstart")),t.off("touchmove",c.getWrapBehavior(this,"onTouchmove")),t.off("touchend",c.getWrapBehavior(this,"onTouchend"))},e}();t.exports=r},function(t,e,n){var v=n(0),i=n(90),g=n(2).MatrixUtil.mat3;function h(t,n){var r=[];if(!1===t.get("animate"))return[];var e=t.get("children");return v.each(e,function(t){if(t.isGroup)r=r.concat(h(t,n));else if(t.isShape&&t._id){var e=t._id;(e=e.split("-")[0])===n&&r.push(t)}}),r}function d(t,e,n,r){return r?i.Action[n][r]:i.getAnimation(t,e,n)}function y(t,e,n){var r=i.getAnimateCfg(t,e);return n&&n[e]?v.deepMix({},r,n[e]):r}function p(n,t,f,e){var l=void 0,h=void 0,p=!1;if(e){var r=[],i=[];v.each(t,function(t){var e=n[t._id];e?(t.setSilent("cacheShape",e),r.push(t),delete n[t._id]):i.push(t)}),v.each(n,function(t){var e=t.name,n=t.coord,r=t._id,i=t.attrs,o=t.index,a=t.type;if(h=y(e,"leave",t.animateCfg),l=d(e,n,"leave",h.animation),v.isFunction(l)){var u=f.addShape(a,{attrs:i,index:o});if(u._id=r,u.name=e,n&&"label"!==e){var c=u.getMatrix(),s=g.multiply([],c,n.matrix);u.setMatrix(s)}p=!0,l(u,h,n)}}),v.each(r,function(t){var e=t.name,n=t.get("coord"),r=t.get("cacheShape").attrs;if(!v.isEqual(r,t.__attrs)){if(h=y(e,"update",t.get("animateCfg")),l=d(e,n,"update",h.animation),v.isFunction(l))l(t,h,n);else{var i=v.cloneDeep(t.__attrs);t.attr(r),t.animate(i,h.duration,h.easing,function(){t.setSilent("cacheShape",null)})}p=!0}}),v.each(i,function(t){var e=t.name,n=t.get("coord");h=y(e,"enter",t.get("animateCfg")),l=d(e,n,"enter",h.animation),v.isFunction(l)&&(l(t,h,n),p=!0)})}else v.each(t,function(t){var e=t.name,n=t.get("coord");h=y(e,"appear",t.get("animateCfg")),l=d(e,n,"appear",h.animation),v.isFunction(l)&&(l(t,h,n),p=!0)});return p}t.exports={execAnimation:function(t,e){var n=t.get("middlePlot"),r=t.get("backPlot"),i=t.get("_id"),o=t.get("canvas"),a=o.get(i+"caches")||[];0===a.length&&(e=!1);var u,c,s=h(n,i),f=h(r,i),l=s.concat(f);o.setSilent(i+"caches",(u=l,c={},v.each(u,function(t){if(t._id&&!t.isClip){var e=t._id;c[e]={_id:e,type:t.get("type"),attrs:v.cloneDeep(t.__attrs),name:t.name,index:t.get("index"),animateCfg:t.get("animateCfg"),coord:t.get("coord")}}}),c));p(a,e?l:s,o,e)||o.draw()}}},function(t,e,n){var r={};r.Rect=n(167),r.List=n(168),r.Circle=n(488),r.Tree=n(489),r.Mirror=n(490),r.Matrix=n(491),t.exports=r},function(t,e,n){function c(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}var r=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.type="circle",t},t.prototype.getRegion=function(t,e){var n=2*Math.PI/t,r=-1*Math.PI/2+n*e,i=.5/(1+1/Math.sin(n/2)),o=c({x:.5,y:.5},.5-i,r),a=5*Math.PI/4,u=1*Math.PI/4;return{start:c(o,i,a),end:c(o,i,u)}},t.prototype.generateFacets=function(a){var u=this,c=u.fields[0];if(!c)throw"Please specify for the field for facet!";var s=u.getFieldValues(c,a),f=s.length,l=[];return s.forEach(function(t,e){var n=[{field:c,value:t,values:s}],r=u.getFilter(n),i=a.filter(r),o={type:u.type,colValue:t,colField:c,colIndex:e,cols:f,rows:1,rowIndex:0,data:i,region:u.getRegion(f,e)};l.push(o)}),l},t}(n(56));t.exports=r},function(t,e,n){var i=n(57),r=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.type="tree",t.line={lineWidth:1,stroke:"#ddd"},t.lineSmooth=!1,t},t.prototype.generateFacets=function(t){if(!this.fields.length)throw"Please specify for the fields for facet!";var e=[],n=this.getRootFacet(t);return e.push(n),n.children=this.getChildFacets(t,1,e),this.setRegion(e),e},t.prototype.getRootFacet=function(t){return{type:this.type,rows:this.getRows(),rowIndex:0,colIndex:0,colValue:this.rootTitle,data:t}},t.prototype.getRows=function(){return this.fields.length+1},t.prototype.getChildFacets=function(a,u,c){var s=this,t=s.fields;if(!(t.length<u)){var f=[],l=t[u-1],h=s.getFieldValues(l,a);return h.forEach(function(t,e){var n=[{field:l,value:t,values:h}],r=s.getFilter(n),i=a.filter(r);if(i.length){var o={type:s.type,colValue:t,colField:l,colIndex:e,rows:s.getRows(),rowIndex:u,data:i,children:s.getChildFacets(i,u+1,c)};f.push(o),c.push(o)}}),f}},t.prototype.setRegion=function(t){var e=this;e.forceColIndex(t),t.forEach(function(t){t.region=e.getRegion(t.rows,t.cols,t.colIndex,t.rowIndex)})},t.prototype.forceColIndex=function(t){var e=this,n=[],r=0;t.forEach(function(t){e.isLeaf(t)&&(n.push(t),t.colIndex=r,r++)}),n.forEach(function(t){t.cols=n.length});for(var i=e.fields.length-1;0<=i;i--)for(var o=e.getFacetsByLevel(t,i),a=0;a<o.length;a++){var u=o[a];e.isLeaf(u)||(u.originColIndex=u.colIndex,u.colIndex=e.getRegionIndex(u.children),u.cols=n.length)}},t.prototype.getFacetsByLevel=function(t,e){var n=[];return t.forEach(function(t){t.rowIndex===e&&n.push(t)}),n},t.prototype.getRegion=function(t,e,n,r){var i=1/e,o=1/t,a={x:i*n,y:o*r};return{start:a,end:{x:a.x+i,y:a.y+2*o/3}}},t.prototype.getRegionIndex=function(t){var e=t[0];return(t[t.length-1].colIndex-e.colIndex)/2+e.colIndex},t.prototype.isLeaf=function(t){return!t.children||!t.children.length},t.prototype.setXAxis=function(t,e,n){n.rowIndex!==n.rows-1&&(e[t].label=null,e[t].title=null)},t.prototype.setYAxis=function(t,e,n){0!==n.originColIndex&&0!==n.colIndex&&(e[t].title=null,e[t].label=null)},t.prototype.onPaint=function(){e.prototype.onPaint.call(this),this.group.clear(),this.facets&&this.line&&this.drawLines(this.facets,this.group)},t.prototype.drawLines=function(t,e){var n=this,r=e.addGroup();t.forEach(function(t){if(!n.isLeaf(t)){var e=t.children;n._addFacetLines(t,e,r)}})},t.prototype._addFacetLines=function(t,e,o){var a=this,n=t.view.getViewRegion(),u={x:n.start.x+(n.end.x-n.start.x)/2,y:n.start.y};e.forEach(function(t){var e=t.view.getViewRegion(),n={x:e.start.x+(e.end.x-e.start.x)/2,y:e.end.y},r={x:u.x,y:u.y+(n.y-u.y)/2},i={x:n.x,y:r.y};a._drawLine([u,r,i,n],o)})},t.prototype._getPath=function(t){var n=[];return this.lineSmooth?(n.push(["M",t[0].x,t[0].y]),n.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y])):t.forEach(function(t,e){0===e?n.push(["M",t.x,t.y]):n.push(["L",t.x,t.y])}),n},t.prototype._drawLine=function(t,e){var n=this._getPath(t),r=this.line;e.addShape("path",{attrs:i({path:n},r)})},t}(n(56));t.exports=r},function(t,e,n){var r=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.type="mirror",this.transpose=!1,t},t.prototype.init=function(){this.transpose?(this.cols=2,this.rows=1):(this.cols=1,this.rows=2),e.prototype.init.call(this)},t.prototype.beforeProcessView=function(t,e){this.transpose?e.colIndex%2==0?t.coord().transpose().scale(-1,1):t.coord().transpose():e.rowIndex%2!=0&&t.coord().scale(1,-1)},t.prototype.renderTitle=function(t,e){this.transpose?this.drawColTitle(t,e):this.drawRowTitle(t,e)},t.prototype.setXAxis=function(t,e,n){1!==n.colIndex&&1!==n.rowIndex||(e[t].label=null,e[t].title=null)},t.prototype.setYAxis=function(){},t}(n(168));t.exports=r},function(t,e,n){var r=function(e){function t(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,e.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(t,e),t.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return t.type="matrix",t.showTitle=!1,t},t.prototype.generateFacets=function(t){for(var e=this.fields,n=e.length,r=n,i=[],o=0;o<r;o++)for(var a=e[o],u=0;u<n;u++){var c=e[u],s={type:this.type,colValue:a,rowValue:c,colField:a,rowField:c,colIndex:o,rowIndex:u,cols:r,rows:n,data:t,region:this.getRegion(n,r,o,u)};i.push(s)}return i},t.prototype.setXAxis=function(t,e,n){n.rowIndex!==n.rows-1&&(e[t].title=null,e[t].label=null)},t.prototype.setYAxis=function(t,e,n){0!==n.colIndex&&(e[t].title=null,e[t].label=null)},t}(n(167));t.exports=r},function(t,e,n){var r=n(1),i="https://kcart.alipay.com/web/bi.do",o=n(0),a=function(){function r(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r);var e=t||{},n=new Image;o.mix(this,{image:n,server:i},e)}return r.prototype.log=function(t){var e=t||{},n=o.mix({pg:document.URL,r:(new Date).getTime()},e),r=encodeURIComponent(JSON.stringify([n]));this.image.src=this.server+"?BIProfile=merge&d="+r},r}();setTimeout(function(){r.trackable&&(new a).log({g2:!0,version:r.version,page_type:"syslog"})},3e3)}])},"object"==typeof n&&"object"==typeof e?e.exports=i():"function"==typeof define&&define.amd?define([],i):"object"==typeof n?n.G2_3=i():r.G2_3=i()},{}]},{},[1]);