/** * Minified by jsDelivr using Terser v3.14.1. * Original file: /npm/@antv/data-set@0.11.4/build/data-set.js * * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files */ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.DataSet=e():t.DataSet=e()}(window,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="./src/index.ts")}({"./node_modules/_@antv_hierarchy@0.6.2@@antv/hierarchy/build/hierarchy.js":function(t,e,n){var r;"undefined"!=typeof self&&self,r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=5)}([function(t,e,n){var r=n(7);t.exports={assign:r}},function(t,e,n){var r=n(3),o=function(){function t(t,e){void 0===e&&(e={});this.options=e,this.rootNode=r(t,e)}return t.prototype.execute=function(){throw new Error("please override this method")},t}();t.exports=o},function(t,e,n){var r=n(4),o=["LR","RL","TB","BT","H","V"],i=["LR","RL","H"],a=o[0];t.exports=function(t,e,n){var s=e.direction||a;if(e.isHorizontal=function(t){return i.indexOf(t)>-1}(s),s&&-1===o.indexOf(s))throw new TypeError("Invalid direction: "+s);if(s===o[0])n(t,e);else if(s===o[1])n(t,e),t.right2left();else if(s===o[2])n(t,e);else if(s===o[3])n(t,e),t.bottom2top();else if(s===o[4]||s===o[5]){var u=r(t,e),l=u.left,c=u.right;n(l,e),n(c,e),e.isHorizontal?l.right2left():l.bottom2top(),c.translate(l.x-c.x,l.y-c.y),t.x=l.x,t.y=c.y;var d=t.getBoundingBox();e.isHorizontal?d.top<0&&t.translate(0,-d.top):d.left<0&&t.translate(-d.left,0)}var f=e.fixedRoot;return void 0===f&&(f=!0),f&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),t}},function(t,e,n){var r=n(0),o={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}};function i(t,e){var n=this;if(n.vgap=n.hgap=0,t instanceof i)return t;n.data=t;var r=e.getHGap(t),o=e.getVGap(t);return n.width=e.getWidth(t),n.height=e.getHeight(t),n.id=e.getId(t),n.x=n.y=0,n.depth=0,n.children||(n.children=[]),n.addGap(r,o),n}r.assign(i.prototype,{isRoot:function(){return 0===this.depth},isLeaf:function(){return 0===this.children.length},addGap:function(t,e){this.hgap+=t,this.vgap+=e,this.width+=2*t,this.height+=2*e},eachNode:function(t){for(var e,n=[this];e=n.pop();)t(e),n=n.concat(e.children)},DFTraverse:function(t){this.eachNode(t)},BFTraverse:function(t){for(var e,n=[this];e=n.shift();)t(e),n=n.concat(e.children)},getBoundingBox:function(){var t={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(function(e){t.left=Math.min(t.left,e.x),t.top=Math.min(t.top,e.y),t.width=Math.max(t.width,e.x+e.width),t.height=Math.max(t.height,e.y+e.height)}),t},translate:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.eachNode(function(n){n.x+=t,n.y+=e})},right2left:function(){var t=this.getBoundingBox();this.eachNode(function(e){e.x=e.x-2*(e.x-t.left)-e.width}),this.translate(t.width,0)},bottom2top:function(){var t=this.getBoundingBox();this.eachNode(function(e){e.y=e.y-2*(e.y-t.top)-e.height}),this.translate(0,t.height)}}),t.exports=function(t,e,n){void 0===e&&(e={});var a,s=new i(t,e=r.assign({},o,e)),u=[s];if(!n&&!t.collapsed)for(;a=u.pop();)if(!a.data.collapsed){var l=e.getChildren(a.data),c=l?l.length:0;if(a.children=new Array(c),l&&c)for(var d=0;dn.low&&(n=n.nxt);var d=o+r.prelim+r.w-(a+i.prelim);d>0&&(a+=d,s(t,e,n.index,d));var f=c(r),h=c(i);f<=h&&null!==(r=l(r))&&(o+=r.mod),f>=h&&null!==(i=u(i))&&(a+=i.mod)}!r&&i?function(t,e,n,r){var o=t.c[0].el;o.tl=n;var i=r-n.mod-t.c[0].msel;o.mod+=i,o.prelim-=i,t.c[0].el=t.c[e].el,t.c[0].msel=t.c[e].msel}(t,e,i,a):r&&!i&&function(t,e,n,r){var o=t.c[e].er;o.tr=n;var i=r-n.mod-t.c[e].mser;o.mod+=i,o.prelim-=i,t.c[e].er=t.c[e-1].er,t.c[e].mser=t.c[e-1].mser}(t,e,r,o)}function s(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 o=e-n;t.c[n+1].shift+=r/o,t.c[e].shift-=r/o,t.c[e].change-=r-r/o}}(t,e,n,r)}function u(t){return 0===t.cs?t.tl:t.c[0]}function l(t){return 0===t.cs?t.tr:t.c[t.cs-1]}function c(t){return t.y+t.h}function d(t,e,n){for(;null!==n&&t>=n.low;)n=n.nxt;return{low:t,index:e,nxt:n}}!function t(e,n,r){void 0===r&&(r=0),n?(e.x=r,r+=e.width):(e.y=r,r+=e.height),e.children.forEach(function(e){t(e,n,r)})}(t,o);var f=n.fromNode(t,o);return function t(e){if(0!==e.cs){t(e.c[0]);for(var n=d(c(e.c[0].el),0,null),r=1;ra&&(a=e.depth);var n=e.children,r=n.length,i=new o(e.height,[]);return n.forEach(function(e,n){var o=t(e);i.children.push(o),0===n&&(i.leftChild=o),n===r-1&&(i.rightChild=o)}),i.originNode=e,i.isLeaf=e.isLeaf(),i}(t);return function t(e){if(e.isLeaf||0===e.children.length)e.drawingDepth=a;else{var n=e.children.map(function(e){return t(e)}),r=Math.min.apply(null,n);e.drawingDepth=r-1}return e.drawingDepth}(s),function t(r){r.x=r.drawingDepth*e.rankSep,r.isLeaf?(r.y=0,n&&(r.y=n.y+n.height+e.nodeSep,r.originNode.parent!==n.originNode.parent&&(r.y+=e.subTreeSep)),n=r):(r.children.forEach(function(e){t(e)}),r.y=(r.leftChild.y+r.rightChild.y)/2)}(s),function t(e,n,r){r?(n.x=e.x,n.y=e.y):(n.x=e.y,n.y=e.x),e.children.forEach(function(e,o){t(e,n.children[o],r)})}(s,t,e.isHorizontal),t}},function(t,e,n){var r=n(1),o=n(12),i=n(4),a=n(0),s=["LR","RL","H"],u=s[0],l=function(t){var e,n;function r(){return t.apply(this,arguments)||this}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.prototype.execute=function(){var t=this.options,e=this.rootNode;t.isHorizontal=!0;var n=t.indent,r=t.direction||u;if(r&&-1===s.indexOf(r))throw new TypeError("Invalid direction: "+r);if(r===s[0])o(e,n);else if(r===s[1])o(e,n),e.right2left();else if(r===s[2]){var a=i(e,t),l=a.left,c=a.right;o(l,n),l.right2left(),o(c,n);var d=l.getBoundingBox();c.translate(d.width,0),e.x=c.x-e.width/2}return e},r}(r),c={};t.exports=function(t,e){return e=a.assign({},c,e),new l(t,e).execute()}},function(t,e){t.exports=function(t,e){void 0===e&&(e=20);var n=null;t.eachNode(function(t){!function(t,e,n){t.x+=n*t.depth,t.y=e?e.y+e.height:0}(t,n,e),n=t})}},function(t,e,n){var r=n(1),o=n(14),i=n(2),a=n(0),s=function(t){var e,n;function r(){return t.apply(this,arguments)||this}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.prototype.execute=function(){return i(this.rootNode,this.options,o)},r}(r),u={};t.exports=function(t,e){return e=a.assign({},u,e),new s(t,e).execute()}},function(t,e,n){var r=n(0);var o={getSubTreeSep:function(){return 0}};t.exports=function(t,e){void 0===e&&(e={}),e=r.assign({},o,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse(function(t){t.x=t.parent.x+t.parent.width}),t.parent=null,function t(e,n){var r=0;return e.children.length?e.children.forEach(function(e){r+=t(e,n)}):r=e.height,e._subTreeSep=n.getSubTreeSep(e.data),e.totalHeight=Math.max(e.height,r)+2*e._subTreeSep,e.totalHeight}(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode(function(t){var e=t.children,n=e.length;if(n){var r=e[0];if(r.startY=t.startY+t._subTreeSep,1===n)r.y=t.y+t.height/2-r.height/2;else{r.y=r.startY+r.totalHeight/2-r.height/2;for(var o=1;oe.height)e.y=o.y+a/2-e.height/2;else if(1!==n.length||e.height>s){var u=e.y+(e.height-a)/2-o.y;n.forEach(function(t){t.translate(0,u)})}else e.y=(o.y+o.height/2+i.y+i.height/2)/2-e.height/2}}(t)}}])},t.exports=r()},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/augment.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/mix.js"),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js");e.default=function(){for(var t=[],e=0;en?n:t}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/clear-animation-frame.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/clone.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),o=function(t){if("object"!=typeof t||null===t)return t;var e;if(r.default(t)){e=[];for(var n=0,i=t.length;n-1}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/debounce.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r;return function(){var o=this,i=arguments,a=n&&!r;clearTimeout(r),r=setTimeout(function(){r=null,n||t.apply(o,i)},e),a&&t.apply(o,i)}}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/deep-mix.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-plain-object.js"),i=5;function a(t,e,n,s){for(var u in n=n||0,s=s||i,e)if(e.hasOwnProperty(u)){var l=e[u];null!==l&&o.default(l)?(o.default(t[u])||(t[u]={}),n20&&(o=20),parseFloat(t.toFixed(o))}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/flatten-deep.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),o=function(t,e){if(void 0===e&&(e=[]),r.default(t))for(var n=0;n0}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-prototype.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.prototype;e.default=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-reg-exp.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-type.js");e.default=function(t){return r.default(t,"RegExp")}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-string.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-type.js");e.default=function(t){return r.default(t,"String")}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-type.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={}.toString;e.default=function(t,e){return r.call(t)==="[object "+e+"]"}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-undefined.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return void 0===t}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/keys.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/each.js"),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js"),i=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return r.default(t,function(n,r){o.default(t)&&"prototype"===r||e.push(r)}),e};e.default=i},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/last.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array-like.js");e.default=function(t){if(r.default(t))return t[t.length-1]}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/lower-case.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-string.js");e.default=function(t){return r.default(t).toLowerCase()}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/lower-first.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-string.js");e.default=function(t){var e=r.default(t);return e.charAt(0).toLowerCase()+e.substring(1)}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/map-values.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-nil.js"),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-object.js"),i=function(t){return t};e.default=function(t,e){void 0===e&&(e=i);var n={};return o.default(t)&&!r.default(t)&&Object.keys(t).forEach(function(r){n[r]=e(t[r],r)}),n}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/map.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/each.js"),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array-like.js");e.default=function(t,e){if(!o.default(t))return t;var n=[];return r.default(t,function(t,r){n.push(e(t,r))}),n}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/max-by.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/each.js"),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js");e.default=function(t,e){if(o.default(t)){var n,a,s=t[0];return n=i.default(e)?e(t[0]):t[0][e],r.default(t,function(t){(a=i.default(e)?e(t):t[e])>n&&(s=t,n=a)}),s}}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/memoize.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-function.js");e.default=function(t,e){if(!r.default(t))throw new TypeError("Expected a function");var n=function(){for(var r=[],o=0;o-1;)o.call(t,s,1);return t}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/reduce.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/each.js"),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array.js"),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-plain-object.js");e.default=function(t,e,n){if(!o.default(t)&&!i.default(t))return t;var a=n;return r.default(t,function(t,n){a=e(a,t,n)}),a}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/remove.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array-like.js"),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/pull-at.js");e.default=function(t,e){var n=[];if(!r.default(t))return n;for(var i=-1,a=[],s=t.length;++ie[r])return 1;if(t[r]e?(r&&(clearTimeout(r),r=null),s=l,a=t.apply(o,i),r||(o=i=null)):r||!1===n.trailing||(r=setTimeout(u,c)),a};return l.cancel=function(){clearTimeout(r),s=0,r=o=i=null},l}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-array.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-array-like.js");e.default=function(t){return r.default(t)?Array.prototype.slice.call(t):[]}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-degree.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=180/Math.PI;e.default=function(t){return r*t}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-integer.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=parseInt},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-radian.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Math.PI/180;e.default=function(t){return r*t}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/to-string.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/is-nil.js");e.default=function(t){return r.default(t)?"":t.toString()}},"./node_modules/_@antv_util@2.0.7@@antv/util/lib/union.js":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/uniq.js");e.default=function(){for(var t=[],e=0;ee?1:t>=e?0:NaN}function n(t){var n;return 1===t.length&&(n=t,t=function(t,r){return e(n(t),r)}),{left:function(e,n,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r>>1;t(e[i],n)<0?r=i+1:o=i}return r},right:function(e,n,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r>>1;t(e[i],n)>0?o=i:r=i+1}return r}}}var r=n(e),o=r.right,i=r.left;function a(t,e){return[t,e]}function s(t){return null===t?NaN:+t}function u(t,e){var n,r,o=t.length,i=0,a=-1,u=0,l=0;if(null==e)for(;++a1)return l/(i-1)}function l(t,e){var n=u(t,e);return n?Math.sqrt(n):n}function c(t,e){var n,r,o,i=t.length,a=-1;if(null==e){for(;++a=n)for(r=o=n;++an&&(r=n),o=n)for(r=o=n;++an&&(r=n),o=0?(i>=g?10:i>=m?5:i>=y?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=g?10:i>=m?5:i>=y?2:1)}function j(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=g?o*=10:i>=m?o*=5:i>=y&&(o*=2),e=1)return+n(t[r-1],r-1,t);var r,o=(r-1)*e,i=Math.floor(o),a=+n(t[i],i,t),u=+n(t[i+1],i+1,t);return a+(u-a)*(o-i)}}function E(t,e){var n,r,o=t.length,i=-1;if(null==e){for(;++i=n)for(r=n;++in&&(r=n)}else for(;++i=n)for(r=n;++in&&(r=n);return r}function M(t){if(!(o=t.length))return[];for(var e=-1,n=E(t,S),r=new Array(n);++et?1:e>=t?0:NaN},t.deviation=l,t.extent=c,t.histogram=function(){var t=p,e=c,n=x;function r(r){var i,a,s=r.length,u=new Array(s);for(i=0;id;)f.pop(),--h;var _,p=new Array(h+1);for(i=0;i<=h;++i)(_=p[i]=[]).x0=i>0?f[i-1]:c,_.x1=i=n)for(r=n;++ir&&(r=n)}else for(;++i=n)for(r=n;++ir&&(r=n);return r},t.mean=function(t,e){var n,r=t.length,o=r,i=-1,a=0;if(null==e)for(;++i=0;)for(r=t[o],e=r.length;--e>=0;)n[--a]=r[e];return n},t.min=E,t.pairs=function(t,e){null==e&&(e=a);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n0)return[t];if((r=e0)for(t=Math.ceil(t/a),e=Math.floor(e/a),i=new Array(o=Math.ceil(e-t+1));++s=u.length)return null!=t&&r.sort(t),null!=e?e(r):r;for(var s,l,d,f=-1,h=r.length,_=u[o++],p=n(),v=i();++fu.length)return n;var o,i=l[r-1];return null!=e&&r>=u.length?o=n.entries():(o=[],n.each(function(e,n){o.push({key:n,values:t(e,r)})})),null!=i?o.sort(function(t,e){return i(t.key,e.key)}):o}(c(t,0,i,a),0)},key:function(t){return u.push(t),s},sortKeys:function(t){return l[u.length-1]=t,s},sortValues:function(e){return t=e,s},rollup:function(t){return e=t,s}}},t.set=l,t.map=n,t.keys=function(t){var e=[];for(var n in t)e.push(n);return e},t.values=function(t){var e=[];for(var n in t)e.push(t[n]);return e},t.entries=function(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e},Object.defineProperty(t,"__esModule",{value:!0})}(e)},"./node_modules/_d3-composite-projections@1.3.2@d3-composite-projections/d3-composite-projections.js":function(t,e,n){!function(t,e,n){"use strict";var r=1e-6;function o(){}var i=1/0,a=i,s=-i,u=s,l={point:function(t,e){ts&&(s=t),eu&&(u=e)},lineStart:o,lineEnd:o,polygonStart:o,polygonEnd:o,result:function(){var t=[[i,a],[s,u]];return s=u=-(a=i=1/0),t}};function c(t,n,r){var o=n[1][0]-n[0][0],i=n[1][1]-n[0][1],a=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=a&&t.clipExtent(null),e.geoStream(r,t.stream(l));var s=l.result(),u=Math.min(o/(s[1][0]-s[0][0]),i/(s[1][1]-s[0][1])),c=+n[0][0]+(o-u*(s[1][0]+s[0][0]))/2,d=+n[0][1]+(i-u*(s[1][1]+s[0][1]))/2;return null!=a&&t.clipExtent(a),t.scale(150*u).translate([c,d])}function d(t,e,n){return c(t,[[0,0],e],n)}t.geoAlbersUk=function(){var t,o,i,a,s,u=e.geoAlbers().rotate([4.4,.8]).center([0,55.4]).parallels([50,60]),l=e.geoAlbers().rotate([4.4,.8]).center([0,55.4]).parallels([50,60]),f={point:function(t,e){s=[t,e]}};function h(t){var e=t[0],n=t[1];return s=null,i.point(e,n),s||(a.point(e,n),s)}function _(){return t=o=null,h}return h.invert=function(t){var e=u.scale(),n=u.translate(),r=(t[0]-n[0])/e,o=(t[1]-n[1])/e;return(o>=-.089&&o<.06&&r>=.029&&r<.046?l:u).invert(t)},h.stream=function(e){return t&&o===e?t:(n=[u.stream(o=e),l.stream(e)],r=n.length,t={point:function(t,e){for(var o=-1;++o=.12&&o<.234&&r>=-.425&&r<-.214?f:o>=.166&&o<.234&&r>=-.214&&r<-.115?h:l).invert(t)},p.stream=function(e){return t&&o===e?t:(n=[l.stream(o=e),f.stream(e),h.stream(e)],r=n.length,t={point:function(t,e){for(var o=-1;++o=.12&&o<.234&&r>=-.425&&r<-.214?p:o>=.166&&o<.234&&r>=-.214&&r<-.115?v:o>=.2064&&o<.2413&&r>=.312&&r<.385?g:o>=.09&&o<.1197&&r>=-.4243&&r<-.3232?m:o>=-.0518&&o<.0895&&r>=-.4243&&r<-.3824?y:_).invert(t)},j.stream=function(e){return t&&o===e?t:(n=[_.stream(o=e),p.stream(e),v.stream(e),g.stream(e),m.stream(e),y.stream(e)],r=n.length,t={point:function(t,e){for(var o=-1;++o=-.31&&o<-.24&&r>=.14&&r<.24?j:o>=-.24&&o<-.17&&r>=.14&&r<.24?x:o>=-.17&&o<-.12&&r>=.21&&r<.24?E:o>=-.17&&o<-.14&&r>=.14&&r<.165?M:o>=-.17&&o<-.1&&r>=.14&&r<.24?w:o>=-.1&&o<-.03&&r>=.14&&r<.24?S:o>=-.03&&o<.04&&r>=.14&&r<.24?T:o>=-.31&&o<-.24&&r>=.24&&r<.34?P:o>=-.24&&o<-.17&&r>=.24&&r<.34?k:o>=-.17&&o<-.1&&r>=.24&&r<.34?O:o>=-.1&&o<-.03&&r>=.24&&r<.34?C:b).invert(t)},N.stream=function(e){return t&&o===e?t:(n=[b.stream(o=e),x.stream(e),P.stream(e),j.stream(e),T.stream(e),S.stream(e),k.stream(e),O.stream(e),C.stream(e),w.stream(e),E.stream(e),M.stream(e)],r=n.length,t={point:function(t,e){for(var o=-1;++o=.029&&o<.0864&&r>=-.14&&r<-.0996?j:o>=0&&o<.029&&r>=-.14&&r<-.0996?x:o>=-.032&&o<0&&r>=-.14&&r<-.0996?w:o>=-.052&&o<-.032&&r>=-.14&&r<-.0996?E:o>=-.076&&o<.052&&r>=-.14&&r<-.0996?M:o>=-.076&&o<-.052&&r>=.0967&&r<.1371?S:o>=-.052&&o<-.02&&r>=.0967&&r<.1371?T:o>=-.02&&o<.012&&r>=.0967&&r<.1371?P:o>=.012&&o<.033&&r>=.0967&&r<.1371?k:o>=.033&&o<.0864&&r>=.0967&&r<.1371?O:b).invert(t)},N.stream=function(e){return t&&o===e?t:(n=[b.stream(o=e),j.stream(e),x.stream(e),w.stream(e),E.stream(e),M.stream(e),S.stream(e),T.stream(e),P.stream(e),k.stream(e),O.stream(e),C.stream(e)],r=n.length,t={point:function(t,e){for(var o=-1;++o=.0093&&o<.03678&&r>=-.03875&&r<-.0116?f:o>=-.0412&&o<.0091&&r>=-.07782&&r<-.01166?h:l).invert(t)},p.stream=function(e){return t&&o===e?t:(n=[l.stream(o=e),f.stream(e),h.stream(e)],r=n.length,t={point:function(t,e){for(var o=-1;++o=.05346&&o<.0897&&r>=-.13388&&r<-.0322?l:u).invert(t)},h.stream=function(e){return t&&o===e?t:(n=[u.stream(o=e),l.stream(e)],r=n.length,t={point:function(t,e){for(var o=-1;++o=-.10925&&o<-.02701&&r>=-.135&&r<-.0397?f:o>=.04713&&o<.11138&&r>=-.03986&&r<.051?h:l).invert(t)},p.stream=function(e){return t&&o===e?t:(n=[l.stream(o=e),f.stream(e),h.stream(e)],r=n.length,t={point:function(t,e){for(var o=-1;++o=-.0676&&o<-.026&&r>=-.0857&&r<-.0263?l:u).invert(t)},h.stream=function(e){return t&&o===e?t:(n=[u.stream(o=e),l.stream(e)],r=n.length,t={point:function(t,e){for(var o=-1;++o=-.02&&o<0&&r>=-.038&&r<-.005?f:o>=0&&o<.02&&r>=-.038&&r<-.005?h:l).invert(t)},p.stream=function(e){return t&&o===e?t:(n=[l.stream(o=e),f.stream(e),h.stream(e)],r=n.length,t={point:function(t,e){for(var o=-1;++o=-.0521&&o<.0229&&r>=-.0111&&r<.1?l:u).invert(t)},h.stream=function(e){return t&&o===e?t:(n=[u.stream(o=e),l.stream(e)],r=n.length,t={point:function(t,e){for(var o=-1;++o=.2582&&o<.32&&r>=-.1036&&r<-.087?h:o>=-.01298&&o<.0133&&r>=-.11396&&r<-.05944?_:o>=.01539&&o<.03911&&r>=-.089&&r<-.0588?p:f).invert(t)},g.stream=function(e){return t&&o===e?t:(n=[f.stream(o=e),h.stream(e),_.stream(e),p.stream(e)],r=n.length,t={point:function(t,e){for(var o=-1;++o9999?"+"+u(e,6):u(e,4))+"-"+u(t.getUTCMonth()+1,2)+"-"+u(t.getUTCDate(),2)+(i?"T"+u(n,2)+":"+u(r,2)+":"+u(o,2)+"."+u(i,3)+"Z":o?"T"+u(n,2)+":"+u(r,2)+":"+u(o,2)+"Z":r||n?"T"+u(n,2)+":"+u(r,2)+"Z":"")}function c(t){var u=new RegExp('["'+t+"\n\r]"),c=t.charCodeAt(0);function d(t,a){var s,u=[],l=t.length,d=0,f=0,h=l<=0,_=!1;function p(){if(h)return n;if(_)return _=!1,e;var a,s,u=d;if(t.charCodeAt(u)===r){for(;d++=l?h=!0:(s=t.charCodeAt(d++))===o?_=!0:s===i&&(_=!0,t.charCodeAt(d)===o&&++d),t.slice(u+1,a-1).replace(/""/g,'"')}for(;d0?1:t<0?-1:0},p=Math.sin,v=Math.tan,g=1e-6,m=1e-12,y=Math.PI,b=y/2,j=y/4,x=Math.SQRT1_2,w=O(2),E=O(y),M=2*y,S=180/y,T=y/180;function P(t){return t>1?b:t<-1?-b:Math.asin(t)}function k(t){return t>1?0:t<-1?y:Math.acos(t)}function O(t){return t>0?Math.sqrt(t):0}function C(t){return(s(t)-s(-t))/2}function A(t){return(s(t)+s(-t))/2}function N(t){var e=v(t/2),n=2*l(a(t/2))/(e*e);function o(t,e){var r=a(t),o=a(e),i=p(e),s=o*r,u=-((1-s?l((1+s)/2)/(1-s):-.5)+n/(1+s));return[u*o*p(t),u*i]}return o.invert=function(e,o){var s,u=O(e*e+o*o),c=-t/2,d=50;if(!u)return[0,0];do{var f=c/2,h=a(f),_=p(f),m=v(f),y=l(1/h);c-=s=(2/m*y-n*m-u)/(-y/(_*_)+1-n/(2*h*h))}while(r(s)>g&&--d>0);var b=p(c);return[i(e*b,u*a(c)),P(o*b/u)]},o}function I(t,e){var n=a(e),r=function(t){return t?t/Math.sin(t):1}(k(n*a(t/=2)));return[2*n*p(t)*r,p(e)*r]}function R(t){var e=p(t),n=a(t),o=t>=0?1:-1,s=v(o*t),u=(1+e-n)/2;function l(t,r){var l=a(r),c=a(t/=2);return[(1+l)*p(t),(o*r>-i(c,s)-.001?0:10*-o)+u+p(r)*n-(1+l)*e*c]}return l.invert=function(t,l){var c=0,d=0,f=50;do{var h=a(c),_=p(c),v=a(d),m=p(d),y=1+v,b=y*_-t,j=u+m*n-y*e*h-l,x=y*h/2,w=-_*m,E=e*y*_/2,M=n*v+e*h*m,S=w*E-M*x,T=(j*w-b*M)/S/2,P=(b*E-j*x)/S;c-=T,d-=P}while((r(T)>g||r(P)>g)&&--f>0);return o*d>-i(a(c),s)-.001?[2*c,d]:null},l}function D(t,e){var n=v(e/2),r=O(1-n*n),o=1+r*a(t/=2),i=p(t)*r/o,s=n/o,u=i*i,l=s*s;return[4/3*i*(3+u-3*l),4/3*s*(3+3*u-l)]}I.invert=function(t,e){if(!(t*t+4*e*e>y*y+g)){var n=t,o=e,i=25;do{var s,u=p(n),l=p(n/2),c=a(n/2),d=p(o),f=a(o),h=p(2*o),_=d*d,v=f*f,m=l*l,b=1-v*c*c,j=b?k(f*c)*O(s=1/b):s=0,x=2*j*f*l-t,w=j*d-e,E=s*(v*m+j*f*c*_),M=s*(.5*u*h-2*j*d*l),S=.25*s*(h*l-j*d*v*u),T=s*(_*c+j*m*f),P=M*S-T*E;if(!P)break;var C=(w*M-x*T)/P,A=(x*S-w*E)/P;n-=C,o-=A}while((r(C)>g||r(A)>g)&&--i>0);return[n,o]}},D.invert=function(t,e){if(e*=3/8,!(t*=3/8)&&r(e)>1)return null;var n=t*t,o=e*e,s=1+n+o,u=O((s-O(s*s-4*e*e))/2),c=P(u)/3,d=u?function(t){return l(t+O(t*t-1))}(r(e/u))/3:function(t){return l(t+O(t*t+1))}(r(t))/3,f=a(c),h=A(d),v=h*h-f*f;return[2*_(t)*i(C(d)*f,.25-v),2*_(e)*i(h*p(c),.25+v)]};var L=O(8),q=l(1+w);function B(t,e){var n=r(e);return nb){var u=i(s[1],s[0]),l=O(s[0]*s[0]+s[1]*s[1]),c=n*h((u-b)/n)+b,d=i(p(u-=c),2-a(u));u=c+P(y/l*p(d))-d,s[0]=l*a(u),s[1]=l*p(u)}return s}return s.invert=function(t,r){var s=O(t*t+r*r);if(s>b){var u=i(r,t),l=n*h((u-b)/n)+b,c=u>l?-1:1,d=s*a(l-u),f=1/v(c*k((d-y)/O(y*(y-2*d)+s*s)));u=l+2*o((f+c*O(f*f-3))/3),t=s*a(u),r=s*p(u)}return e.geoAzimuthalEquidistantRaw.invert(t,r)},s}function F(t,e){var n,o=t*p(e),i=30;do{e-=n=(e+p(e)-o)/(1+a(e))}while(r(n)>g&&--i>0);return e/2}function G(t,e,n){function r(r,o){return[t*r*a(o=F(n,o)),e*p(o)]}return r.invert=function(r,o){return o=P(o/e),[r/(t*a(o)),P((2*o+p(2*o))/n)]},r}B.invert=function(t,e){if((i=r(e))m&&--c>0);return[t/(a(u)*(L-1/p(u))),_(e)*u]};var V=G(w/b,w,y),H=2.00276,U=1.11072;function W(t,e){var n=F(y,e);return[H*t/(1/a(e)+U/a(n)),(e+w*p(n))/H]}W.invert=function(t,e){var n,o,i=H*e,s=e<0?-j:j,u=25;do{o=i-w*p(s),s-=n=(p(2*s)+2*s-y*p(o))/(2*a(2*s)+2+y*a(o)*w*a(s))}while(r(n)>g&&--u>0);return o=i-w*p(s),[t*(1/a(o)+U/a(s))/H,o]};var K=function(t){var n=0,r=e.geoProjectionMutator(t),o=r(n);return o.parallel=function(t){return arguments.length?r(n=t*T):n*S},o};function Y(t,e){return[t*a(e),e]}function $(t){if(!t)return Y;var e=1/v(t);function n(n,r){var o=e+t-r,i=o?n*a(r)/o:o;return[o*p(i),e-o*a(i)]}return n.invert=function(n,r){var o=O(n*n+(r=e-r)*r),s=e+t-o;return[o/a(s)*i(n,r),s]},n}function X(t){function e(e,n){var r=b-n,o=r?e*t*p(r)/r:r;return[r*p(o)/t,b-r*a(o)]}return e.invert=function(e,n){var r=e*t,o=b-n,a=O(r*r+o*o),s=i(r,o);return[(a?a/p(a):1)*s/t,b-a]},e}Y.invert=function(t,e){return[t/a(e),e]};var J=G(1,4/y,y);function Q(t,e,n,o,s,u){var l,c=a(u);if(r(t)>1||r(u)>1)l=k(n*s+e*o*c);else{var d=p(t/2),f=p(u/2);l=2*P(O(d*d+e*o*f*f))}return r(l)>g?[l,i(o*p(u),e*s-n*o*c)]:[0,0]}function Z(t,e,n){return k((t*t+e*e-n*n)/(2*t*e))}function tt(t){return t-2*y*u((t+y)/(2*y))}function et(t,e,n){for(var r,o=[[t[0],t[1],p(t[1]),a(t[1])],[e[0],e[1],p(e[1]),a(e[1])],[n[0],n[1],p(n[1]),a(n[1])]],i=o[2],s=0;s<3;++s,i=r)r=o[s],i.v=Q(r[1]-i[1],i[3],i[2],r[3],r[2],r[0]-i[0]),i.point=[0,0];var u=Z(o[0].v[0],o[2].v[0],o[1].v[0]),l=Z(o[0].v[0],o[1].v[0],o[2].v[0]),c=y-u;o[2].point[1]=0,o[0].point[0]=-(o[1].point[0]=o[0].v[0]/2);var d=[o[2].point[0]=o[0].point[0]+o[2].v[0]*a(u),2*(o[0].point[1]=o[1].point[1]=o[2].v[0]*p(u))];return function(t,e){var n,r=p(e),i=a(e),s=new Array(3);for(n=0;n<3;++n){var u=o[n];if(s[n]=Q(e-u[1],u[3],u[2],i,r,t-u[0]),!s[n][0])return u.point;s[n][1]=tt(s[n][1]-u.v[1])}var f=d.slice();for(n=0;n<3;++n){var h=2==n?0:n+1,_=Z(o[n].v[0],s[n][0],s[h][0]);s[n][1]<0&&(_=-_),n?1==n?(_=l-_,f[0]-=s[n][0]*a(_),f[1]-=s[n][0]*p(_)):(_=c-_,f[0]+=s[n][0]*a(_),f[1]+=s[n][0]*p(_)):(f[0]+=s[n][0]*a(_),f[1]-=s[n][0]*p(_))}return f[0]/=3,f[1]/=3,f}}function nt(t){return t[0]*=T,t[1]*=T,t}function rt(t,n,r){var o=e.geoCentroid({type:"MultiPoint",coordinates:[t,n,r]}),i=[-o[0],-o[1]],a=e.geoRotation(i),s=e.geoProjection(et(nt(a(t)),nt(a(n)),nt(a(r)))).rotate(i),u=s.center;return delete s.rotate,s.center=function(t){return arguments.length?u(a(t)):a.invert(u())},s.clipAngle(90)}function ot(t,e){var n=O(1-p(e));return[2/E*t*n,E*(1-n)]}function it(t){var e=v(t);function n(t,n){return[t,(t?t/p(t):1)*(p(n)*a(t)-e*a(n))]}return n.invert=e?function(t,n){t&&(n*=p(t)/t);var r=a(t);return[t,2*i(O(r*r+e*e-n*n)-r,e-n)]}:function(t,e){return[t,P(t?e*v(t)/t:e)]},n}ot.invert=function(t,e){var n=(n=e/E-1)*n;return[n>0?t*O(y/n)/2:0,P(1-n)]};var at=O(3);function st(t,e){return[at*t*(2*a(2*e/3)-1)/E,at*E*p(e/3)]}function ut(t){var e=a(t);function n(t,n){return[t*e,p(n)/e]}return n.invert=function(t,n){return[t/e,P(n*e)]},n}function lt(t){var e=a(t);function n(t,n){return[t*e,(1+e)*v(n/2)]}return n.invert=function(t,n){return[t/e,2*o(n/(1+e))]},n}function ct(t,e){var n=O(8/(3*y));return[n*t*(1-r(e)/y),n*e]}function dt(t,e){var n=O(4-3*p(r(e)));return[2/O(6*y)*t*n,_(e)*O(2*y/3)*(2-n)]}function ft(t,e){var n=O(y*(4+y));return[2/n*t*(1+O(1-4*e*e/(y*y))),4/n*e]}function ht(t,e){var n=(2+b)*p(e);e/=2;for(var o=0,i=1/0;o<10&&r(i)>g;o++){var s=a(e);e-=i=(e+p(e)*(s+2)-n)/(2*s*(1+s))}return[2/O(y*(4+y))*t*(1+a(e)),2*O(y/(4+y))*p(e)]}function _t(t,e){return[t*(1+a(e))/O(2+y),2*e/O(2+y)]}function pt(t,e){for(var n=(1+b)*p(e),o=0,i=1/0;o<10&&r(i)>g;o++)e-=i=(e+p(e)-n)/(1+a(e));return n=O(2+y),[t*(1+a(e))/n,2*e/n]}st.invert=function(t,e){var n=3*P(e/(at*E));return[E*t/(at*(2*a(2*n/3)-1)),n]},ct.invert=function(t,e){var n=O(8/(3*y)),o=e/n;return[t/(n*(1-r(o)/y)),o]},dt.invert=function(t,e){var n=2-r(e)/O(2*y/3);return[t*O(6*y)/(2*n),_(e)*P((4-n*n)/3)]},ft.invert=function(t,e){var n=O(y*(4+y))/2;return[t*n/(1+O(1-e*e*(4+y)/(4*y))),e*n/2]},ht.invert=function(t,e){var n=e*O((4+y)/y)/2,r=P(n),o=a(r);return[t/(2/O(y*(4+y))*(1+o)),P((r+n*(o+2))/(2+b))]},_t.invert=function(t,e){var n=O(2+y),r=e*n/2;return[n*t/(1+a(r)),r]},pt.invert=function(t,e){var n=1+b,r=O(n/2);return[2*t*r/(1+a(e*=r)),P((e+p(e))/n)]};var vt=3+2*w;function gt(t,e){var n=p(t/=2),r=a(t),i=O(a(e)),s=a(e/=2),u=p(e)/(s+w*r*i),c=O(2/(1+u*u)),d=O((w*s+(r+n)*i)/(w*s+(r-n)*i));return[vt*(c*(d-1/d)-2*l(d)),vt*(c*u*(d+1/d)-2*o(u))]}gt.invert=function(t,e){if(!(n=D.invert(t/1.2,1.065*e)))return null;var n,i=n[0],s=n[1],u=20;t/=vt,e/=vt;do{var f=i/2,h=s/2,_=p(f),v=a(f),m=p(h),y=a(h),j=a(s),E=O(j),M=m/(y+w*v*E),S=M*M,T=O(2/(1+S)),P=w*y+(v+_)*E,k=w*y+(v-_)*E,C=P/k,A=O(C),N=A-1/A,I=A+1/A,R=T*N-2*l(A)-t,L=T*M*I-2*o(M)-e,q=m&&x*E*_*S/m,B=(w*v*y+E)/(2*(y+w*v*E)*(y+w*v*E)*E),z=-.5*M*T*T*T,F=z*q,G=z*B,V=(V=2*y+w*E*(v-_))*V*A,H=(w*v*y*E+j)/V,U=-w*_*m/(E*V),W=N*F-2*H/A+T*(H+H/C),K=N*G-2*U/A+T*(U+U/C),Y=M*I*F-2*q/(1+S)+T*I*q+T*M*(H-H/C),$=M*I*G-2*B/(1+S)+T*I*B+T*M*(U-U/C),X=K*Y-$*W;if(!X)break;var J=(L*K-R*$)/X,Q=(R*Y-L*W)/X;i-=J,s=c(-b,d(b,s-Q))}while((r(J)>g||r(Q)>g)&&--u>0);return r(r(s)-b)s){var _=O(f),v=i(d,c),m=o*h(v/o),j=v-m,x=t*a(j),w=(t*p(j)-j*p(x))/(b-x),E=Et(j,w),M=(y-t)/Mt(E,x,y);c=_;var S,T=50;do{c-=S=(t+Mt(E,x,c)*M-_)/(E(c)*M)}while(r(S)>g&&--T>0);d=j*p(c),cs){var c=O(l),d=i(u,n),f=o*h(d/o),_=d-f;n=c*a(_),u=c*p(_);for(var v=n-b,g=p(n),j=u/g,x=ng||r(h)>g)&&--m>0);return[_,v]},c},Tt=St(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555),Pt=St(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742),kt=St(5/6*y,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Ot(t,e){var n=t*t,r=e*e;return[t*(1-.162388*r)*(.87-952426e-9*n*n),e*(1+r/12)]}Ot.invert=function(t,e){var n,o=t,i=e,a=50;do{var s=i*i;i-=n=(i*(1+s/12)-e)/(1+s/4)}while(r(n)>g&&--a>0);a=50,t/=1-.162388*s;do{var u=(u=o*o)*u;o-=n=(o*(.87-952426e-9*u)-t)/(.87-.00476213*u)}while(r(n)>g&&--a>0);return[o,i]};var Ct=St(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762),At=function(t){var e=t(b,0)[0]-t(-b,0)[0];function n(n,r){var o=n>0?-.5:.5,i=t(n+o*y,r);return i[0]-=o*e,i}return t.invert&&(n.invert=function(n,r){var o=n>0?-.5:.5,i=t.invert(n+o*e,r),a=i[0]-o*y;return a<-y?a+=2*y:a>y&&(a-=2*y),i[0]=a,i}),n};function Nt(t,e){var n=_(t),o=_(e),s=a(e),u=a(t)*s,l=p(t)*s,c=p(o*e);t=r(i(l,c)),e=P(u),r(t-b)>g&&(t%=b);var d=function(t,e){if(e===b)return[0,0];var n,o,i=p(e),s=i*i,u=s*s,l=1+u,c=1+3*u,d=1-u,f=P(1/O(l)),h=d+s*l*f,_=(1-i)/h,v=O(_),m=_*l,j=O(m),x=v*d;if(0===t)return[0,-(x+s*j)];var w,E=a(e),M=1/E,S=2*i*E,T=(-h*E-(-3*s+f*c)*S*(1-i))/(h*h),k=-M*S,C=-M*(s*l*T+_*c*S),A=-2*M*(d*(.5*T/v)-2*s*v*S),N=4*t/y;if(t>.222*y||e.175*y){if(n=(x+s*O(m*(1+u)-x*x))/(1+u),t>y/4)return[n,n];var I=n,R=.5*n;n=.5*(R+I),o=50;do{var D=O(m-n*n),L=n*(A+k*D)+C*P(n/j)-N;if(!L)break;L<0?R=n:I=n,n=.5*(R+I)}while(r(I-R)>g&&--o>0)}else{n=g,o=25;do{var q=n*n,B=O(m-q),z=A+k*B,F=n*z+C*P(n/j)-N,G=z+(C-k*q)/B;n-=w=B?F/G:0}while(r(w)>g&&--o>0)}return[n,-x-s*O(m-n*n)]}(t>y/4?b-t:t,e);return t>y/4&&(c=d[0],d[0]=-d[1],d[1]=-c),d[0]*=n,d[1]*=-o,d}function It(t,e){var n,i,u,l,c,d;if(e=1-g)return n=(1-e)/4,i=A(t),l=((d=s(2*(d=t)))-1)/(d+1),u=1/i,c=i*C(t),[l+n*(c-t)/(i*i),u-n*l*u*(c-t),u+n*l*u*(c+t),2*o(s(t))-b+n*(c-t)/i];var f=[1,0,0,0,0,0,0,0,0],h=[O(e),0,0,0,0,0,0,0,0],_=0;for(i=O(1-e),c=1;r(h[_]/f[_])>g&&_<8;)n=f[_++],h[_]=(n-i)/2,f[_]=(n+i)/2,i=O(n*i),c*=2;u=c*f[_]*t;do{l=h[_]*p(i=u)/f[_],u=(P(l)+u)/2}while(--_);return[p(u),l=a(u),l/a(u-i),u]}function Rt(t,e){if(!e)return t;if(1===e)return l(v(t/2+j));for(var n=1,i=O(1-e),a=O(e),s=0;r(a)>g;s++){if(t%y){var u=o(i*v(t)/n);u<0&&(u+=y),t+=u+~~(t/y)*y}else t+=t;a=(n+i)/2,i=O(n*i),a=((n=a)-i)/2}return t/(f(2,s)*n)}function Dt(t,e){var n=(w-1)/(w+1),u=O(1-n*n),c=Rt(b,u*u),d=l(v(y/4+r(e)/2)),f=s(-1*d)/O(n),h=function(t,e){var n=t*t,r=e+1,o=1-n-e*e;return[.5*((t>=0?b:-b)-i(o,2*t)),-.25*l(o*o+4*n)+.5*l(r*r+n)]}(f*a(-1*t),f*p(-1*t)),g=function(t,e,n){var i=r(t),a=C(r(e));if(i){var s=1/p(i),u=1/(v(i)*v(i)),l=-(u+n*(a*a*s*s)-1+n),c=(n-1)*u,d=(-l+O(l*l-4*c))/2;return[Rt(o(1/O(d)),n)*_(t),Rt(o(O((d/u-1)/n)),1-n)*_(e)]}return[0,Rt(o(a),1-n)*_(e)]}(h[0],h[1],u*u);return[-g[1],(e>=0?1:-1)*(.5*c-g[0])]}function Lt(t,n){if(arguments.length<2&&(n=t),1===n)return e.geoAzimuthalEqualAreaRaw;if(n===1/0)return qt;function r(r,o){var i=e.geoAzimuthalEqualAreaRaw(r/n,o);return i[0]*=t,i}return r.invert=function(r,o){var i=e.geoAzimuthalEqualAreaRaw.invert(r/t,o);return i[0]*=n,i},r}function qt(t,e){return[t*a(e)/a(e/=2),2*p(e)]}function Bt(t){var e=p(t),n=a(t),o=zt(t);function s(t,i){var s=o(t,i);t=s[0],i=s[1];var u=p(i),l=a(i),c=a(t),d=k(e*u+n*l*c),f=p(d),h=r(f)>g?d/f:1;return[h*n*p(t),(r(t)>b?h:-h)*(e*l-n*u*c)]}return o.invert=zt(-t),s.invert=function(t,n){var r=O(t*t+n*n),s=-p(r),u=a(r),l=r*u,c=-n*s,d=r*e,f=O(l*l+c*c-d*d),h=i(l*d+c*f,c*d-l*f),_=(r>b?-1:1)*i(t*s,r*a(h)*u+n*p(h)*s);return o.invert(_,h)},s}function zt(t){var e=p(t),n=a(t);return function(t,r){var o=a(r),s=a(t)*o,u=p(t)*o,l=p(r);return[i(u,s*n-l*e),P(l*n+s*e)]}}Nt.invert=function(t,e){r(t)>1&&(t=2*_(t)-t),r(e)>1&&(e=2*_(e)-e);var n=_(t),o=_(e),s=-n*t,u=-o*e,l=u/s<1,c=function(t,e){for(var n=0,o=1,i=.5,s=50;;){var u=i*i,l=O(i),c=P(1/O(1+u)),d=1-u+i*(1+u)*c,f=(1-l)/d,h=O(f),_=f*(1+u),p=h*(1-u),v=_-t*t,g=O(v),b=e+p+i*g;if(r(o-n)0?n=i:o=i,i=.5*(n+o)}if(!s)return null;var j=P(l),x=a(j),w=1/x,E=2*l*x,M=(-d*x-(-3*i+c*(1+3*u))*E*(1-l))/(d*d);return[y/4*(t*(-2*w*(.5*M/h*(1-u)-2*i*h*E)+-w*E*g)+-w*(i*(1+u)*M+f*(1+3*u)*E)*P(t/O(_))),j]}(l?u:s,l?s:u),d=c[0],f=c[1],h=a(f);return l&&(d=-b-d),[n*(i(p(d)*h,-p(f))+y),o*P(a(d)*h)]},Dt.invert=function(t,e){var n,r,a,u=(w-1)/(w+1),c=O(1-u*u),d=Rt(b,c*c),f=function(t,e,n){var r,o,i;return t?(r=It(t,n),e?(o=It(e,1-n),i=o[1]*o[1]+n*r[0]*r[0]*o[0]*o[0],[[r[0]*o[2]/i,r[1]*r[2]*o[0]*o[1]/i],[r[1]*o[1]/i,-r[0]*r[2]*o[0]*o[2]/i],[r[2]*o[1]*o[2]/i,-n*r[0]*r[1]*o[0]/i]]):[[r[0],0],[r[1],0],[r[2],0]]):[[0,(o=It(e,1-n))[0]/o[1]],[1/o[1],0],[o[2]/o[1],0]]}(.5*d-e,-t,c*c),h=(n=f[0],r=f[1],a=r[0]*r[0]+r[1]*r[1],[(n[0]*r[0]+n[1]*r[1])/a,(n[1]*r[0]-n[0]*r[1])/a]),_=i(h[1],h[0])/-1;return[_,2*o(s(-.5*l(u*h[0]*h[0]+u*h[1]*h[1])))-b]},qt.invert=function(t,e){var n=2*P(e/2);return[t*a(n/2)/a(n),n]};var Ft=41+48/36+37/3600,Gt=ut(0);function Vt(t){var e=Ft*T,n=ot(y,e)[0]-ot(-y,e)[0],o=Gt(0,e)[1],i=ot(0,e)[1],a=E-i,s=M/t,l=4/M,f=o+a*a*4/M;function h(h,_){var p,v=r(_);if(v>e){var g=d(t-1,c(0,u((h+y)/s)));(p=ot(h+=y*(t-1)/t-g*s,v))[0]=p[0]*M/n-M*(t-1)/(2*t)+g*M/t,p[1]=o+4*(p[1]-i)*a/M,_<0&&(p[1]=-p[1])}else p=Gt(h,_);return p[0]*=l,p[1]/=f,p}return h.invert=function(e,h){e/=l;var _=r(h*=f);if(_>o){var p=d(t-1,c(0,u((e+y)/s)));e=(e+y*(t-1)/t-p*s)*n/M;var v=ot.invert(e,.25*(_-o)*M/a+i);return v[0]-=y*(t-1)/t-p*s,h<0&&(v[1]=-v[1]),v}return Gt.invert(e,h)},h}function Ht(t){var e,n=1+t,o=p(1/n),s=P(o),u=2*O(y/(e=y+4*s*n)),l=.5*u*(n+O(t*(2+t))),c=t*t,d=n*n;function f(o,f){var h,_,v=1-p(f);if(v&&v<2){var g,j=b-f,x=25;do{var w=p(j),E=a(j),M=s+i(w,n-E),S=1+d-2*n*E;j-=g=(j-c*s-n*w+S*M-.5*v*e)/(2*n*w*M)}while(r(g)>m&&--x>0);h=u*O(S),_=o*M/y}else h=u*(t+v),_=o*s/y;return[h*p(_),l-h*a(_)]}return f.invert=function(t,r){var o=t*t+(r-=l)*r,a=(1+d-o/(u*u))/(2*n),f=k(a),h=p(f),_=s+i(h,n-a);return[P(t/O(o))*y/_,P(1-2*(f-c*s-n*h+(1+d-2*n*a)*_)/e)]},f}var Ut=.7109889596207567,Wt=.0528035274542;function Kt(t,e){return e>-Ut?((t=V(t,e))[1]+=Wt,t):Y(t,e)}function Yt(t,e){return r(e)>Ut?((t=V(t,e))[1]-=e>0?Wt:-Wt,t):Y(t,e)}function $t(t,e){return r(t[0]-e[0])-Ut?V.invert(t,e-Wt):Y.invert(t,e)},Yt.invert=function(t,e){return r(e)>Ut?V.invert(t,e+(e>0?Wt:-Wt)):Y.invert(t,e)};var Jt=function(t,r){var o=function(t){var e,r,o,i,a,s,u,l=[],c=t[0].length;for(u=0;u=0;--u)e=t[1][u],r=e[0][0],o=e[0][1],i=e[1][1],a=e[2][0],s=e[2][1],l.push(Xt([[a-g,s-g],[a-g,i+g],[r+g,i+g],[r+g,o-g]],30));return{type:"Polygon",coordinates:[n.merge(l)]}}(r),i=(r=r.map(function(t){return t.map(function(t){return[[t[0][0]*T,t[0][1]*T],[t[1][0]*T,t[1][1]*T],[t[2][0]*T,t[2][1]*T]]})})).map(function(e){return e.map(function(e){var n,r=t(e[0][0],e[0][1])[0],o=t(e[2][0],e[2][1])[0],i=t(e[1][0],e[0][1])[1],a=t(e[1][0],e[1][1])[1];return i>a&&(n=i,i=a,a=n),[[r,i],[o,a]]})});function a(e,n){for(var o=n<0?-1:1,i=r[+(n<0)],a=0,s=i.length-1;ai[a][2][0];++a);var u=t(e-i[a][1][0],n);return u[0]+=t(i[a][1][0],o*n>o*i[a][0][1]?i[a][0][1]:n)[0],u}t.invert&&(a.invert=function(e,n){for(var o=i[+(n<0)],s=r[+(n<0)],u=0,l=o.length;u2)return null;var a=(e/=2)*e,s=(n/=2)*n,u=2*n/(1+a+s);return u=f((1+u)/(1-u),1/t),[i(2*e,1-a-s)/t,P((u-1)/(u+1))]},e}oe.invert=function(t,e){return[M/3*t/O(y*y/3-e*e),e]};var ae=y/w;function se(t,e){return[t*(1+O(a(e)))/2,e/(a(e/2)*a(t/6))]}function ue(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))]}function le(t,e){return[p(t)/a(e),v(e)*a(t)]}function ce(t){var e=a(t),n=v(j+t/2);function o(o,i){var a=i-t,s=r(a)=0;)d=t[c],f=d[0]+u*(o=f)-l*h,h=d[1]+u*h+l*o;return[f=u*(o=f)-l*h,h=u*h+l*o]}return n.invert=function(n,s){var u=20,l=n,c=s;do{for(var d,f=e,h=t[f],_=h[0],v=h[1],m=0,y=0;--f>=0;)h=t[f],m=_+l*(d=m)-c*y,y=v+l*y+c*d,_=h[0]+l*(d=_)-c*v,v=h[1]+l*v+c*d;m=_+l*(d=m)-c*y,y=v+l*y+c*d,_=l*(d=_)-c*v-n;var b,j,x=m*m+y*y;l-=b=(_*m+(v=l*v+c*d-s)*y)/x,c-=j=(v*m-_*y)/x}while(r(b)+r(j)>g*g&&--u>0);if(u){var w=O(l*l+c*c),E=2*o(.5*w),M=p(E);return[i(l*M,w*a(E)),w?P(c*M/w):0]}},n}se.invert=function(t,e){var n=r(t),o=r(e),i=g,s=b;og||r(b)>g)&&--i>0);return i&&[n,o]},le.invert=function(t,e){var n=t*t,r=e*e,o=r+1,i=t?x*O((o-O(n*n+2*n*(r-1)+o*o))/n+1):1/O(o);return[P(t*i),_(e)*k(i)]},de.invert=function(t,e){return[t,2.5*o(s(.8*e))-.625*y]};var he=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],_e=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],pe=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],ve=[[.9245,0],[0,0],[.01943,0]],ge=[[.721316,0],[0,0],[-.00881625,-.00617325]];function me(t,n){var r=e.geoProjection(fe(t)).rotate(n).clipAngle(90),o=e.geoRotation(n),i=r.center;return delete r.rotate,r.center=function(t){return arguments.length?i(o(t)):o.invert(i())},r}var ye=O(6),be=O(7);function je(t,e){var n=P(7*p(e)/(3*ye));return[ye*t*(2*a(2*n/3)-1)/be,9*p(n/3)/be]}function xe(t,e){for(var n,o=(1+x)*p(e),i=e,s=0;s<25&&(i-=n=(p(i/2)+p(i)-o)/(.5*a(i/2)+a(i)),!(r(n)g&&--i>0);return[t/(.8707+(a=o*o)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),o]},Me.invert=function(t,e){var n,o,i,a,s=e,u=25;do{s-=n=(s*(1.01183+(i=(o=s*s)*o)*i*(.01926*o-.02625-.00396*i))-e)/(1.01183+i*i*(.21186*o-.23625+-.05148*i))}while(r(n)>m&&--u>0);return[t/(.84719-.13063*(o=s*s)+(a=o*(i=o*o))*a*(.05494*o-.04515-.02326*i+.00331*a)),s]},Se.invert=function(t,e){for(var n=e/2,o=0,i=1/0;o<10&&r(i)>g;++o){var s=a(e/2);e-=i=(e-v(e/2)-n)/(1-.5/(s*s))}return[2*t/(1+a(e)),e]};var Te=1.0148,Pe=.23185,ke=-.14499,Oe=.02406,Ce=Te,Ae=5*Pe,Ne=7*ke,Ie=9*Oe;function Re(t,e){var n=e*e;return[t,e*(Te+n*n*(Pe+n*(ke+Oe*n)))]}function De(t,e){if(r(e)1.790857183?e=1.790857183:e<-1.790857183&&(e=-1.790857183);var n,o=e;do{var i=o*o;o-=n=(o*(Te+i*i*(Pe+i*(ke+Oe*i)))-e)/(Ce+i*i*(Ae+i*(Ne+Ie*i)))}while(r(n)>g);return[t,o]},De.invert=function(t,e){if(r(e)g&&--s>0);return u=v(i),[(r(e)=0;)if(r=e[s],n[0]===r[0]&&n[1]===r[1]){if(i)return[i,n];i=n}}}(e.face,n.face),o=Le(r.map(n.project),r.map(e.project));e.transform=n.transform?qe(n.transform,o):o;for(var i=n.edges,a=0,s=i.length;ar^h>r&&n<(f-l)*(r-c)/(h-c)+l&&(o=!o)}return o}(t[0],n))return t.push(e),!0})||t.push([e])}),nn=[],t.length?t.length>1?{type:"MultiPolygon",coordinates:t}:{type:"Polygon",coordinates:t[0]}:null}},sn=function(t){var n=t(b,0)[0]-t(-b,0)[0];function o(e,o){var i=r(e)0?e-y:e+y,o),s=(a[0]-a[1])*x,u=(a[0]+a[1])*x;if(i)return[s,u];var l=n*x,c=s>0^u>0?-1:1;return[c*s-_(u)*l,c*u-_(s)*l]}return t.invert&&(o.invert=function(e,o){var i=(e+o)*x,a=(o-e)*x,s=r(i)<.5*n&&r(a)<.5*n;if(!s){var u=n*x,l=i>0^a>0?-1:1,c=-l*e+(a>0?1:-1)*u,d=-l*o+(i>0?1:-1)*u;i=(-c-d)*x,a=(c-d)*x}var f=t.invert(i,a);return s||(f[0]+=i>0?y:-y),f}),e.geoProjection(o).rotate([-90,-90,45]).clipAngle(179.999)},un=function(){return sn(Dt).scale(111.48)};function ln(t){var e=p(t);function n(n,r){var i=e?v(n*e/2)/e:n/2;if(!r)return[2*i,-t];var s=2*o(i*p(r)),u=1/v(r);return[p(s)*u,r+(1-a(s))*u-t]}return n.invert=function(n,i){if(r(i+=t)g&&--c>0);var _=n*(d=v(l)),m=v(r(i)0?b:-b)*(f+a*(_-l)/2+a*a*(_-2*f+l)/2)]}function fn(t,e){var n=function(t){function e(e,n){var r=a(n),o=(t-1)/(t-r*a(e));return[o*r*p(e),o*p(n)]}return e.invert=function(e,n){var r=e*e+n*n,o=O(r),a=(t-O(1-r*(t+1)/(t-1)))/((t-1)/o+o/(t-1));return[i(e*a,o*O(1-a*a)),o?P(n*a/o):0]},e}(t);if(!e)return n;var r=a(e),o=p(e);function s(e,i){var a=n(e,i),s=a[1],u=s*o/(t-1)+r;return[a[0]*r/u,s/u]}return s.invert=function(e,i){var a=(t-1)/(t-1-i*o);return n.invert(a*e,a*i*r)},s}cn.forEach(function(t){t[1]*=1.0144}),dn.invert=function(t,e){var n=e/b,o=90*n,i=d(18,r(o/5)),a=c(0,u(i));do{var s=cn[a][1],l=cn[a+1][1],f=cn[d(19,a+2)][1],h=f-s,_=f-2*l+s,p=2*(r(n)-l)/h,v=_/h,g=p*(1-v*p*(1-2*v*p));if(g>=0||1===a){o=(e>=0?5:-5)*(g+i);var y,j=50;do{i=d(18,r(o)/5),a=u(i),g=i-a,s=cn[a][1],l=cn[a+1][1],f=cn[d(19,a+2)][1],o-=(y=(e>=0?b:-b)*(l+g*(f-s)/2+g*g*(f-2*l+s)/2)-e)*S}while(r(y)>m&&--j>0);break}}while(--a>=0);var x=cn[a][0],w=cn[a+1][0],E=cn[d(19,a+2)][0];return[t/(w+g*(E-x)/2+g*g*(E-2*w+x)/2),o*T]};var hn=1e4,_n=-180,pn=_n+1e-4,vn=180,gn=vn-1e-4,mn=-90,yn=mn+1e-4,bn=90,jn=bn-1e-4;function xn(t){return t.length>0}function wn(t){return t===mn||t===bn?[0,t]:[_n,(e=t,Math.floor(e*hn)/hn)];var e}function En(t){var e=t[0],n=t[1],r=!1;return e<=pn?(e=_n,r=!0):e>=gn&&(e=vn,r=!0),n<=yn?(n=mn,r=!0):n>=jn&&(n=bn,r=!0),r?[e,n]:t}function Mn(t){return t.map(En)}function Sn(t,e,n){for(var r=0,o=t.length;r=gn||c<=yn||c>=jn){i[a]=En(u);for(var d=a+1;dpn&&hyn&&_=s)break;n.push({index:-1,polygon:e,ring:i=i.slice(d-1)}),i[0]=wn(i[0][1]),a=-1,s=i.length}}}}function Tn(t){var e,n,r,o,i,a,s=t.length,u={},l={};for(e=0;e0?y-u:u)*S],c=e.geoProjection(t(s)).rotate(l),d=e.geoRotation(l),f=c.center;return delete c.rotate,c.center=function(t){return arguments.length?f(d(t)):d.invert(f())},c.clipAngle(90)};function An(t){var n=a(t);function r(t,r){var o=e.geoGnomonicRaw(t,r);return o[0]*=n,o}return r.invert=function(t,r){return e.geoGnomonicRaw.invert(t/n,r)},r}function Nn(t,e){return Cn(An,t,e)}function In(t){if(!(t*=2))return e.geoAzimuthalEquidistantRaw;var n=-t/2,r=-n,o=t*t,s=v(r),u=.5/p(r);function l(e,i){var s=k(a(i)*a(e-n)),u=k(a(i)*a(e-r)),l=i<0?-1:1;return[((s*=s)-(u*=u))/(2*t),l*O(4*o*u-(o-s+u)*(o-s+u))/(2*t)]}return l.invert=function(t,e){var o,l,c=e*e,d=a(O(c+(o=t+n)*o)),f=a(O(c+(o=t+r)*o));return[i(l=d-f,o=(d+f)*s),(e<0?-1:1)*k(O(o*o+l*l)*u)]},l}function Rn(t,e){return Cn(In,t,e)}function Dn(t,e){if(r(e)g&&--u>0);return[_(t)*(O(i*i+4)+i)*y/4,b*s]};var zn=4*y+3*O(3),Fn=2*O(2*y*O(3)/zn),Gn=G(Fn*O(3)/y,Fn,zn/6);function Vn(t,e){return[t*O(1-3*e*e/(y*y)),e]}function Hn(t,e){var n=.90631*p(e),r=O(1-n*n),o=O(2/(1+r*a(t/=3)));return[2.66723*r*o*p(t),1.24104*n*o]}function Un(t,e){var n=a(e),r=a(t)*n,o=1-r,s=a(t=i(p(t)*n,-p(e))),u=p(t);return n=O(1-r*r),[u*n-s*o,-s*n-u*o]}function Wn(t,e){var n=I(t,e);return[(n[0]+t/b)/2,(n[1]+e)/2]}Vn.invert=function(t,e){return[t/O(1-3*e*e/(y*y)),e]},Hn.invert=function(t,e){var n=t/2.66723,r=e/1.24104,o=O(n*n+r*r),a=2*P(o/2);return[3*i(t*v(a),2.66723*o),o&&P(e*p(a)/(1.24104*.90631*o))]},Un.invert=function(t,e){var n=(t*t+e*e)/-2,r=O(-n*(2+n)),o=e*n+t*r,a=t*n-e*r,s=O(a*a+o*o);return[i(r*o,s*(1+n)),s?-P(r*a/s):0]},Wn.invert=function(t,e){var n=t,o=e,i=25;do{var s,u=a(o),l=p(o),c=p(2*o),d=l*l,f=u*u,h=p(n),_=a(n/2),v=p(n/2),m=v*v,y=1-f*_*_,j=y?k(u*_)*O(s=1/y):s=0,x=.5*(2*j*u*v+n/b)-t,w=.5*(j*l+o)-e,E=.5*s*(f*m+j*u*_*d)+.5/b,M=s*(h*c/4-j*l*v),S=.125*s*(c*v-j*l*f*h),T=.5*s*(d*_+j*m*u)+.5,P=M*S-T*E,C=(w*M-x*T)/P,A=(x*S-w*E)/P;n-=C,o-=A}while((r(C)>g||r(A)>g)&&--i>0);return[n,o]},t.geoAiry=function(){var t=b,n=e.geoProjectionMutator(N),r=n(t);return r.radius=function(e){return arguments.length?n(t=e*T):t*S},r.scale(179.976).clipAngle(147)},t.geoAiryRaw=N,t.geoAitoff=function(){return e.geoProjection(I).scale(152.63)},t.geoAitoffRaw=I,t.geoArmadillo=function(){var t=20*T,n=t>=0?1:-1,r=v(n*t),o=e.geoProjectionMutator(R),s=o(t),u=s.stream;return s.parallel=function(e){return arguments.length?(r=v((n=(t=e*T)>=0?1:-1)*t),o(t)):t*S},s.stream=function(e){var o=s.rotate(),l=u(e),c=(s.rotate([0,0]),u(e));return s.rotate(o),l.sphere=function(){c.polygonStart(),c.lineStart();for(var e=-180*n;n*e<180;e+=90*n)c.point(e,90*n);for(;n*(e-=t)>=-180;)c.point(e,n*-i(a(e*T/2),r)*S);c.lineEnd(),c.polygonEnd()},l},s.scale(218.695).center([0,28.0974])},t.geoArmadilloRaw=R,t.geoAugust=function(){return e.geoProjection(D).scale(66.1603)},t.geoAugustRaw=D,t.geoBaker=function(){return e.geoProjection(B).scale(112.314)},t.geoBakerRaw=B,t.geoBerghaus=function(){var t=5,n=e.geoProjectionMutator(z),r=n(t),o=r.stream,s=-a(.01*T),u=p(.01*T);return r.lobes=function(e){return arguments.length?n(t=+e):t},r.stream=function(e){var n=r.rotate(),l=o(e),c=(r.rotate([0,0]),o(e));return r.rotate(n),l.sphere=function(){c.polygonStart(),c.lineStart();for(var e=0,n=360/t,r=2*y/t,o=90-180/t,l=b;e=0;)t.point((e=n[o])[0],e[1]);t.lineEnd(),t.polygonEnd()},t},r.scale(79.4187).parallel(45).clipAngle(179.999)},t.geoHammerRetroazimuthalRaw=Bt,t.geoHealpix=function(){var t=4,r=e.geoProjectionMutator(Vt),o=r(t),i=o.stream;return o.lobes=function(e){return arguments.length?r(t=+e):t},o.stream=function(r){var a=o.rotate(),s=i(r),u=(o.rotate([0,0]),i(r));return o.rotate(a),s.sphere=function(){var r;e.geoStream((r=180/t,{type:"Polygon",coordinates:[n.range(-180,180+r/2,r).map(function(t,e){return[t,1&e?90-1e-6:Ft]}).concat(n.range(180,-180-r/2,-r).map(function(t,e){return[t,1&e?1e-6-90:-Ft]}))]}),u)},s},o.scale(239.75)},t.geoHealpixRaw=Vt,t.geoHill=function(){var t=1,n=e.geoProjectionMutator(Ht),r=n(t);return r.ratio=function(e){return arguments.length?n(t=+e):t},r.scale(167.774).center([0,18.67])},t.geoHillRaw=Ht,t.geoHomolosine=function(){return e.geoProjection(Yt).scale(152.63)},t.geoHomolosineRaw=Yt,t.geoInterrupt=Jt,t.geoInterruptedBoggs=function(){return Jt(W,Qt).scale(160.857)},t.geoInterruptedHomolosine=function(){return Jt(Yt,Zt).scale(152.63)},t.geoInterruptedMollweide=function(){return Jt(V,te).scale(169.529)},t.geoInterruptedMollweideHemispheres=function(){return Jt(V,ee).scale(169.529).rotate([20,0])},t.geoInterruptedSinuMollweide=function(){return Jt(Kt,ne).rotate([-20,-55]).scale(164.263).center([0,-5.4036])},t.geoInterruptedSinusoidal=function(){return Jt(Y,re).scale(152.63).rotate([-20,0])},t.geoKavrayskiy7=function(){return e.geoProjection(oe).scale(158.837)},t.geoKavrayskiy7Raw=oe,t.geoLagrange=function(){var t=.5,n=e.geoProjectionMutator(ie),r=n(t);return r.spacing=function(e){return arguments.length?n(t=+e):t},r.scale(124.75)},t.geoLagrangeRaw=ie,t.geoLarrivee=function(){return e.geoProjection(se).scale(97.2672)},t.geoLarriveeRaw=se,t.geoLaskowski=function(){return e.geoProjection(ue).scale(139.98)},t.geoLaskowskiRaw=ue,t.geoLittrow=function(){return e.geoProjection(le).scale(144.049).clipAngle(89.999)},t.geoLittrowRaw=le,t.geoLoximuthal=function(){return K(ce).parallel(40).scale(158.837)},t.geoLoximuthalRaw=ce,t.geoMiller=function(){return e.geoProjection(de).scale(108.318)},t.geoMillerRaw=de,t.geoModifiedStereographic=me,t.geoModifiedStereographicRaw=fe,t.geoModifiedStereographicAlaska=function(){return me(he,[152,-64]).scale(1500).center([-160.908,62.4864]).clipAngle(25)},t.geoModifiedStereographicGs48=function(){return me(_e,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])},t.geoModifiedStereographicGs50=function(){return me(pe,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])},t.geoModifiedStereographicMiller=function(){return me(ve,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)},t.geoModifiedStereographicLee=function(){return me(ge,[165,10]).scale(250).clipAngle(130).center([-165,-10])},t.geoMollweide=function(){return e.geoProjection(V).scale(169.529)},t.geoMollweideRaw=V,t.geoMtFlatPolarParabolic=function(){return e.geoProjection(je).scale(164.859)},t.geoMtFlatPolarParabolicRaw=je,t.geoMtFlatPolarQuartic=function(){return e.geoProjection(xe).scale(188.209)},t.geoMtFlatPolarQuarticRaw=xe,t.geoMtFlatPolarSinusoidal=function(){return e.geoProjection(we).scale(166.518)},t.geoMtFlatPolarSinusoidalRaw=we,t.geoNaturalEarth=function(){return e.geoProjection(Ee).scale(175.295)},t.geoNaturalEarthRaw=Ee,t.geoNaturalEarth2=function(){return e.geoProjection(Me).scale(175.295)},t.geoNaturalEarth2Raw=Me,t.geoNellHammer=function(){return e.geoProjection(Se).scale(152.63)},t.geoNellHammerRaw=Se,t.geoPatterson=function(){return e.geoProjection(Re).scale(139.319)},t.geoPattersonRaw=Re,t.geoPolyconic=function(){return e.geoProjection(De).scale(103.74)},t.geoPolyconicRaw=De,t.geoPolyhedral=Fe,t.geoPolyhedralButterfly=function(t){t=t||function(t){var n=e.geoCentroid({type:"MultiPoint",coordinates:t});return e.geoGnomonic().scale(1).translate([0,0]).rotate([-n[0],-n[1]])};var n=Ue.map(function(e){return{face:e,project:t(e)}});return[-1,0,0,1,0,1,4,5].forEach(function(t,e){var r=n[t];r&&(r.children||(r.children=[])).push(n[e])}),Fe(n[0],function(t,e){return n[t<-y/2?e<0?6:4:t<0?e<0?2:0:t0?[-n[0],0]:[180-n[0],180])};var n=Ue.map(function(e){return{face:e,project:t(e)}});return[-1,0,0,1,0,1,4,5].forEach(function(t,e){var r=n[t];r&&(r.children||(r.children=[])).push(n[e])}),Fe(n[0],function(t,e){return n[t<-y/2?e<0?6:4:t<0?e<0?2:0:t0?1:t<0?-1:0},E=Math.sqrt,M=Math.tan;function S(t){return t>1?0:t<-1?u:Math.acos(t)}function T(t){return t>1?l:t<-1?-l:Math.asin(t)}function P(t){return(t=x(t/2))*t}function k(){}function O(t,e){t&&A.hasOwnProperty(t.type)&&A[t.type](t,e)}var C={Feature:function(t,e){O(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,o=n.length;++r=0?1:-1,o=r*n,i=g(e=(e*=h)/2+c),a=x(e),s=z*a,u=B*i+s*g(o),l=s*r*x(o);F.add(v(l,u)),q=t,B=i,z=a}function Y(t){return[v(t[1],t[0]),T(t[2])]}function $(t){var e=t[0],n=t[1],r=g(n);return[r*g(e),r*x(e),x(n)]}function X(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function J(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]]}function Q(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Z(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function tt(t){var e=E(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var et,nt,rt,ot,it,at,st,ut,lt,ct,dt,ft,ht,_t,pt,vt,gt,mt,yt,bt,jt,xt,wt,Et,Mt,St,Tt=n(),Pt={point:kt,lineStart:Ct,lineEnd:At,polygonStart:function(){Pt.point=Nt,Pt.lineStart=It,Pt.lineEnd=Rt,Tt.reset(),V.polygonStart()},polygonEnd:function(){V.polygonEnd(),Pt.point=kt,Pt.lineStart=Ct,Pt.lineEnd=At,F<0?(et=-(rt=180),nt=-(ot=90)):Tt>a?ot=90:Tt<-a&&(nt=-90),ct[0]=et,ct[1]=rt},sphere:function(){et=-(rt=180),nt=-(ot=90)}};function kt(t,e){lt.push(ct=[et=t,rt=t]),eot&&(ot=e)}function Ot(t,e){var n=$([t*h,e*h]);if(ut){var r=J(ut,n),o=[r[1],-r[0],0],i=J(o,r);tt(i),i=Y(i);var a,s=t-it,u=s>0?1:-1,l=i[0]*f*u,c=_(s)>180;c^(u*itot&&(ot=a):c^(u*it<(l=(l+360)%360-180)&&lot&&(ot=e)),c?tDt(et,rt)&&(rt=t):Dt(t,rt)>Dt(et,rt)&&(et=t):rt>=et?(trt&&(rt=t)):t>it?Dt(et,t)>Dt(et,rt)&&(rt=t):Dt(t,rt)>Dt(et,rt)&&(et=t)}else lt.push(ct=[et=t,rt=t]);eot&&(ot=e),ut=n,it=t}function Ct(){Pt.point=Ot}function At(){ct[0]=et,ct[1]=rt,Pt.point=kt,ut=null}function Nt(t,e){if(ut){var n=t-it;Tt.add(_(n)>180?n+(n>0?360:-360):n)}else at=t,st=e;V.point(t,e),Ot(t,e)}function It(){V.lineStart()}function Rt(){Nt(at,st),V.lineEnd(),_(Tt)>a&&(et=-(rt=180)),ct[0]=et,ct[1]=rt,ut=null}function Dt(t,e){return(e-=t)<0?e+360:e}function Lt(t,e){return t[0]-e[0]}function qt(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:eu?t+Math.round(-t/d)*d:t,e]}function Zt(t,e,n){return(t%=d)?e||n?Jt(ee(t),ne(e,n)):ee(t):e||n?ne(e,n):Qt}function te(t){return function(e,n){return[(e+=t)>u?e-d:e<-u?e+d:e,n]}}function ee(t){var e=te(t);return e.invert=te(-t),e}function ne(t,e){var n=g(t),r=x(t),o=g(e),i=x(e);function a(t,e){var a=g(e),s=g(t)*a,u=x(t)*a,l=x(e),c=l*n+s*r;return[v(u*o-c*i,s*n-l*r),T(c*o+u*i)]}return a.invert=function(t,e){var a=g(e),s=g(t)*a,u=x(t)*a,l=x(e),c=l*o-u*i;return[v(u*o+l*i,s*n+c*r),T(c*n-s*r)]},a}function re(t){function e(e){return(e=t(e[0]*h,e[1]*h))[0]*=f,e[1]*=f,e}return t=Zt(t[0]*h,t[1]*h,t.length>2?t[2]*h:0),e.invert=function(e){return(e=t.invert(e[0]*h,e[1]*h))[0]*=f,e[1]*=f,e},e}function oe(t,e,n,r,o,i){if(n){var a=g(e),s=x(e),u=r*n;null==o?(o=e+r*d,i=e-u/2):(o=ie(a,o),i=ie(a,i),(r>0?oi)&&(o+=r*d));for(var l,c=o;r>0?c>i:c1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function se(t,e){return _(t[0]-e[0])=0;--i)o.point((c=l[i])[0],c[1]);else r(f.x,f.p.x,-1,o);f=f.p}f=f.o,l=f.z,h=!h}while(!f.v);o.lineEnd()}}}function ce(t){if(e=t.length){for(var e,n,r=0,o=t[0];++r=0?1:-1,I=N*A,R=I>u,D=w*O;if(de.add(v(D*N*x(I),E*C+D*g(I))),s+=R?A+N*d:A,R^b>=n^P>=n){var L=J($(y),$(S));tt(L);var q=J(i,L);tt(q);var B=(R^A>=0?-1:1)*T(q[2]);(r>B||r===B&&(L[0]||L[1]))&&(f+=R^A>=0?1:-1)}}return(s<-a||s0){for(f||(i.polygonStart(),f=!0),i.lineStart(),t=0;t1&&2&o&&l.push(l.pop().concat(l.shift())),s.push(l.filter(pe))}return h}}function pe(t){return t.length>1}function ve(t,e){return((t=t.x)[0]<0?t[1]-l-a:l-t[1])-((e=e.x)[0]<0?e[1]-l-a:l-e[1])}var ge=_e(function(){return!0},function(t){var e,n=NaN,r=NaN,o=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(i,s){var c=i>0?u:-u,d=_(i-n);_(d-u)0?l:-l),t.point(o,r),t.lineEnd(),t.lineStart(),t.point(c,r),t.point(i,r),e=0):o!==c&&d>=u&&(_(n-o)a?p((x(e)*(i=g(r))*x(n)-x(r)*(o=g(e))*x(t))/(o*i*s)):(e+r)/2}(n,r,i,s),t.point(o,r),t.lineEnd(),t.lineStart(),t.point(c,r),e=0),t.point(n=i,r=s),o=c},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}},function(t,e,n,r){var o;if(null==t)o=n*l,r.point(-u,o),r.point(0,o),r.point(u,o),r.point(u,0),r.point(u,-o),r.point(0,-o),r.point(-u,-o),r.point(-u,0),r.point(-u,o);else if(_(t[0]-e[0])>a){var i=t[0]0,o=_(e)>a;function i(t,n){return g(t)*g(n)>e}function s(t,n,r){var o=$(t),i=$(n),s=[1,0,0],l=J(o,i),c=X(l,l),d=l[0],f=c-d*d;if(!f)return!r&&t;var h=e*c/f,p=-e*d/f,v=J(s,l),g=Z(s,h),m=Z(l,p);Q(g,m);var y=v,b=X(g,y),j=X(y,y),x=b*b-j*(X(g,g)-1);if(!(x<0)){var w=E(x),M=Z(y,(-b-w)/j);if(Q(M,g),M=Y(M),!r)return M;var S,T=t[0],P=n[0],k=t[1],O=n[1];P0^M[1]<(_(M[0]-T)u^(T<=M[0]&&M[0]<=P)){var I=Z(y,(-b+w)/j);return Q(I,g),[M,Y(I)]}}}function l(e,n){var o=r?t:u-t,i=0;return e<-o?i|=1:e>o&&(i|=2),n<-o?i|=4:n>o&&(i|=8),i}return _e(i,function(t){var e,n,c,d,f;return{lineStart:function(){d=c=!1,f=1},point:function(h,_){var p,v=[h,_],g=i(h,_),m=r?g?0:l(h,_):g?l(h+(h<0?u:-u),_):0;if(!e&&(d=c=g)&&t.lineStart(),g!==c&&(!(p=s(e,v))||se(e,p)||se(v,p))&&(v[0]+=a,v[1]+=a,g=i(v[0],v[1])),g!==c)f=0,g?(t.lineStart(),p=s(v,e),t.point(p[0],p[1])):(p=s(e,v),t.point(p[0],p[1]),t.lineEnd()),e=p;else if(o&&e&&r^g){var y;m&n||!(y=s(v,e,!0))||(f=0,r?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!g||e&&se(e,v)||t.point(v[0],v[1]),e=v,c=g,n=m},lineEnd:function(){c&&t.lineEnd(),e=null},clean:function(){return f|(d&&c)<<1}}},function(e,r,o,i){oe(i,t,n,o,e,r)},r?[0,-t]:[-u,t-u])}var ye=1e9,be=-ye;function je(t,n,r,o){function i(e,i){return t<=e&&e<=r&&n<=i&&i<=o}function s(e,i,a,s){var l=0,d=0;if(null==e||(l=u(e,a))!==(d=u(i,a))||c(e,i)<0^a>0)do{s.point(0===l||3===l?t:r,l>1?o:n)}while((l=(l+a+4)%4)!==d);else s.point(i[0],i[1])}function u(e,o){return _(e[0]-t)0?0:3:_(e[0]-r)0?2:1:_(e[1]-n)0?1:0:o>0?3:2}function l(t,e){return c(t.x,e.x)}function c(t,e){var n=u(t,1),r=u(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(a){var u,c,d,f,h,_,p,v,g,m,y,b=a,j=ae(),x={point:w,lineStart:function(){x.point=E,c&&c.push(d=[]),m=!0,g=!1,p=v=NaN},lineEnd:function(){u&&(E(f,h),_&&g&&j.rejoin(),u.push(j.result())),x.point=w,g&&b.lineEnd()},polygonStart:function(){b=j,u=[],c=[],y=!0},polygonEnd:function(){var n=function(){for(var e=0,n=0,r=c.length;no&&(f-i)*(o-a)>(h-a)*(t-i)&&++e:h<=o&&(f-i)*(o-a)<(h-a)*(t-i)&&--e;return e}(),r=y&&n,i=(u=e.merge(u)).length;(r||i)&&(a.polygonStart(),r&&(a.lineStart(),s(null,null,1,a),a.lineEnd()),i&&le(u,l,n,s,a),a.polygonEnd()),b=a,u=c=d=null}};function w(t,e){i(t,e)&&b.point(t,e)}function E(e,a){var s=i(e,a);if(c&&d.push([e,a]),m)f=e,h=a,_=s,m=!1,s&&(b.lineStart(),b.point(e,a));else if(s&&g)b.point(e,a);else{var u=[p=Math.max(be,Math.min(ye,p)),v=Math.max(be,Math.min(ye,v))],l=[e=Math.max(be,Math.min(ye,e)),a=Math.max(be,Math.min(ye,a))];!function(t,e,n,r,o,i){var a,s=t[0],u=t[1],l=e[0],c=e[1],d=0,f=1,h=l-s,_=c-u;if(a=n-s,h||!(a>0)){if(a/=h,h<0){if(a0){if(a>f)return;a>d&&(d=a)}if(a=o-s,h||!(a<0)){if(a/=h,h<0){if(a>f)return;a>d&&(d=a)}else if(h>0){if(a0)){if(a/=_,_<0){if(a0){if(a>f)return;a>d&&(d=a)}if(a=i-u,_||!(a<0)){if(a/=_,_<0){if(a>f)return;a>d&&(d=a)}else if(_>0){if(a0&&(t[0]=s+d*h,t[1]=u+d*_),f<1&&(e[0]=s+f*h,e[1]=u+f*_),!0}}}}}(u,l,t,n,r,o)?s&&(b.lineStart(),b.point(e,a),y=!1):(g||(b.lineStart(),b.point(u[0],u[1])),b.point(l[0],l[1]),s||b.lineEnd(),y=!1)}p=e,v=a,g=s}return x}}var xe,we,Ee,Me=n(),Se={sphere:k,point:k,lineStart:function(){Se.point=Pe,Se.lineEnd=Te},lineEnd:k,polygonStart:k,polygonEnd:k};function Te(){Se.point=Se.lineEnd=k}function Pe(t,e){xe=t*=h,we=x(e*=h),Ee=g(e),Se.point=ke}function ke(t,e){t*=h;var n=x(e*=h),r=g(e),o=_(t-xe),i=g(o),a=x(o),s=r*a,u=Ee*n-we*r*i,l=we*n+Ee*r*i;Me.add(v(E(s*s+u*u),l)),xe=t,we=n,Ee=r}function Oe(t){return Me.reset(),R(t,Se),+Me}var Ce=[null,null],Ae={type:"LineString",coordinates:Ce};function Ne(t,e){return Ce[0]=t,Ce[1]=e,Oe(Ae)}var Ie={Feature:function(t,e){return De(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,o=n.length;++r0&&(o=Ne(t[i],t[i-1]))>0&&n<=o&&r<=o&&(n+r-o)*(1-Math.pow((n-r)/o,2))a}).map(c)).concat(e.range(m(s/v)*v,i,v).filter(function(t){return _(t%y)>a}).map(d))}return j.lines=function(){return x().map(function(t){return{type:"LineString",coordinates:t}})},j.outline=function(){return{type:"Polygon",coordinates:[f(o).concat(h(u).slice(1),f(r).reverse().slice(1),h(l).reverse().slice(1))]}},j.extent=function(t){return arguments.length?j.extentMajor(t).extentMinor(t):j.extentMinor()},j.extentMajor=function(t){return arguments.length?(o=+t[0][0],r=+t[1][0],l=+t[0][1],u=+t[1][1],o>r&&(t=o,o=r,r=t),l>u&&(t=l,l=u,u=t),j.precision(b)):[[o,l],[r,u]]},j.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],s=+e[0][1],i=+e[1][1],n>t&&(e=n,n=t,t=e),s>i&&(e=s,s=i,i=e),j.precision(b)):[[n,s],[t,i]]},j.step=function(t){return arguments.length?j.stepMajor(t).stepMinor(t):j.stepMinor()},j.stepMajor=function(t){return arguments.length?(g=+t[0],y=+t[1],j):[g,y]},j.stepMinor=function(t){return arguments.length?(p=+t[0],v=+t[1],j):[p,v]},j.precision=function(e){return arguments.length?(b=+e,c=Ge(s,i,90),d=Ve(n,t,b),f=Ge(l,u,90),h=Ve(o,r,b),j):b},j.extentMajor([[-180,-90+a],[180,90-a]]).extentMinor([[-180,-80-a],[180,80+a]])}function Ue(t){return t}var We,Ke,Ye,$e,Xe=n(),Je=n(),Qe={point:k,lineStart:k,lineEnd:k,polygonStart:function(){Qe.lineStart=Ze,Qe.lineEnd=nn},polygonEnd:function(){Qe.lineStart=Qe.lineEnd=Qe.point=k,Xe.add(_(Je)),Je.reset()},result:function(){var t=Xe/2;return Xe.reset(),t}};function Ze(){Qe.point=tn}function tn(t,e){Qe.point=en,We=Ye=t,Ke=$e=e}function en(t,e){Je.add($e*t-Ye*e),Ye=t,$e=e}function nn(){en(We,Ke)}var rn,on,an,sn,un=1/0,ln=un,cn=-un,dn=cn,fn={point:function(t,e){tcn&&(cn=t),edn&&(dn=e)},lineStart:k,lineEnd:k,polygonStart:k,polygonEnd:k,result:function(){var t=[[un,ln],[cn,dn]];return cn=dn=-(ln=un=1/0),t}},hn=0,_n=0,pn=0,vn=0,gn=0,mn=0,yn=0,bn=0,jn=0,xn={point:wn,lineStart:En,lineEnd:Tn,polygonStart:function(){xn.lineStart=Pn,xn.lineEnd=kn},polygonEnd:function(){xn.point=wn,xn.lineStart=En,xn.lineEnd=Tn},result:function(){var t=jn?[yn/jn,bn/jn]:mn?[vn/mn,gn/mn]:pn?[hn/pn,_n/pn]:[NaN,NaN];return hn=_n=pn=vn=gn=mn=yn=bn=jn=0,t}};function wn(t,e){hn+=t,_n+=e,++pn}function En(){xn.point=Mn}function Mn(t,e){xn.point=Sn,wn(an=t,sn=e)}function Sn(t,e){var n=t-an,r=e-sn,o=E(n*n+r*r);vn+=o*(an+t)/2,gn+=o*(sn+e)/2,mn+=o,wn(an=t,sn=e)}function Tn(){xn.point=wn}function Pn(){xn.point=On}function kn(){Cn(rn,on)}function On(t,e){xn.point=Cn,wn(rn=an=t,on=sn=e)}function Cn(t,e){var n=t-an,r=e-sn,o=E(n*n+r*r);vn+=o*(an+t)/2,gn+=o*(sn+e)/2,mn+=o,yn+=(o=sn*t-an*e)*(an+t),bn+=o*(sn+e),jn+=3*o,wn(an=t,sn=e)}function An(t){this._context=t}An.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,d)}},result:k};var Nn,In,Rn,Dn,Ln,qn=n(),Bn={point:k,lineStart:function(){Bn.point=zn},lineEnd:function(){Nn&&Fn(In,Rn),Bn.point=k},polygonStart:function(){Nn=!0},polygonEnd:function(){Nn=null},result:function(){var t=+qn;return qn.reset(),t}};function zn(t,e){Bn.point=Fn,In=Dn=t,Rn=Ln=e}function Fn(t,e){Dn-=t,Ln-=e,qn.add(E(Dn*Dn+Ln*Ln)),Dn=t,Ln=e}function Gn(){this._string=[]}function Vn(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Hn(t){return function(e){var n=new Un;for(var r in t)n[r]=t[r];return n.stream=e,n}}function Un(){}function Wn(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),R(n,t.stream(fn)),e(fn.result()),null!=r&&t.clipExtent(r),t}function Kn(t,e,n){return Wn(t,function(n){var r=e[1][0]-e[0][0],o=e[1][1]-e[0][1],i=Math.min(r/(n[1][0]-n[0][0]),o/(n[1][1]-n[0][1])),a=+e[0][0]+(r-i*(n[1][0]+n[0][0]))/2,s=+e[0][1]+(o-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([a,s])},n)}function Yn(t,e,n){return Kn(t,[[0,0],e],n)}function $n(t,e,n){return Wn(t,function(n){var r=+e,o=r/(n[1][0]-n[0][0]),i=(r-o*(n[1][0]+n[0][0]))/2,a=-o*n[0][1];t.scale(150*o).translate([i,a])},n)}function Xn(t,e,n){return Wn(t,function(n){var r=+e,o=r/(n[1][1]-n[0][1]),i=-o*n[0][0],a=(r-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([i,a])},n)}Gn.prototype={_radius:4.5,_circle:Vn(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=Vn(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}},Un.prototype={constructor:Un,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()}};var Jn=16,Qn=g(30*h);function Zn(t,e){return+e?function(t,e){function n(r,o,i,s,u,l,c,d,f,h,p,g,m,y){var b=c-r,j=d-o,x=b*b+j*j;if(x>4*e&&m--){var w=s+h,M=u+p,S=l+g,P=E(w*w+M*M+S*S),k=T(S/=P),O=_(_(S)-1)e||_((b*I+j*R)/x-.5)>.3||s*h+u*p+l*g2?t[2]%360*h:0,O()):[m*f,y*f,b*f]},P.angle=function(t){return arguments.length?(j=t%360*h,O()):j*f},P.precision=function(t){return arguments.length?(a=Zn(s,T=t*t),C()):E(T)},P.fitExtent=function(t,e){return Kn(P,t,e)},P.fitSize=function(t,e){return Yn(P,t,e)},P.fitWidth=function(t,e){return $n(P,t,e)},P.fitHeight=function(t,e){return Xn(P,t,e)},function(){return e=t.apply(this,arguments),P.invert=e.invert&&k,O()}}function or(t){var e=0,n=u/3,r=rr(t),o=r(e,n);return o.parallels=function(t){return arguments.length?r(e=t[0]*h,n=t[1]*h):[e*f,n*f]},o}function ir(t,e){var n=x(t),r=(n+x(e))/2;if(_(r)0?e<-l+a&&(e=-l+a):e>l-a&&(e=l-a);var n=o/j(_r(e),r);return[n*x(r*t),o-n*g(r*t)]}return i.invert=function(t,e){var n=o-e,i=w(r)*E(t*t+n*n);return[v(t,_(n))/r*w(n),2*p(j(o/i,1/r))-l]},i}function vr(t,e){return[t,e]}function gr(t,e){var n=g(t),r=t===e?x(t):(n-g(e))/(e-t),o=n/r+t;if(_(r)a&&--o>0);return[t/(.8707+(i=r*r)*(i*(i*i*i*(.003971-.001529*i)-.013791)-.131979)),r]},Tr.invert=lr(T),Pr.invert=lr(function(t){return 2*p(t)}),kr.invert=function(t,e){return[-e,2*p(y(t))-l]},t.geoAlbers=sr,t.geoAlbersUsa=function(){var t,e,n,r,o,i,s=sr(),u=ar().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=ar().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(t,e){i=[t,e]}};function d(t){var e=t[0],a=t[1];return i=null,n.point(e,a),i||(r.point(e,a),i)||(o.point(e,a),i)}function f(){return t=e=null,d}return d.invert=function(t){var e=s.scale(),n=s.translate(),r=(t[0]-n[0])/e,o=(t[1]-n[1])/e;return(o>=.12&&o<.234&&r>=-.425&&r<-.214?u:o>=.166&&o<.234&&r>=-.214&&r<-.115?l:s).invert(t)},d.stream=function(n){return t&&e===n?t:(r=[s.stream(e=n),u.stream(n),l.stream(n)],o=r.length,t={point:function(t,e){for(var n=-1;++nDt(r[0],r[1])&&(r[1]=o[1]),Dt(o[0],r[1])>Dt(r[0],r[1])&&(r[0]=o[0])):i.push(r=o);for(a=-1/0,n=i.length-1,e=0,r=i[n];e<=n;r=o,++e)o=i[e],(s=Dt(r[1],o[0]))>a&&(a=s,et=o[0],rt=r[1])}return lt=ct=null,et===1/0||nt===1/0?[[NaN,NaN],[NaN,NaN]]:[[et,nt],[rt,ot]]},t.geoCentroid=function(t){dt=ft=ht=_t=pt=vt=gt=mt=yt=bt=jt=0,R(t,Bt);var e=yt,n=bt,r=jt,o=e*e+n*n+r*r;return o2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)},t.geoTransverseMercatorRaw=kr,Object.defineProperty(t,"__esModule",{value:!0})}(e,n("./node_modules/_d3-array@1.2.4@d3-array/dist/d3-array.js"))},"./node_modules/_d3-geo@1.6.4@d3-geo/build/d3-geo.js":function(t,e,n){!function(t,e){"use strict";var n=function(){return new r};function r(){this.reset()}r.prototype={constructor:r,reset:function(){this.s=this.t=0},add:function(t){i(o,t,this.t),i(this,o.s,this.s),this.s?this.t+=o.t:this.s=o.t},valueOf:function(){return this.s}};var o=new r;function i(t,e,n){var r=t.s=e+n,o=r-e,i=r-o;t.t=e-i+(n-o)}var a=1e-6,s=Math.PI,u=s/2,l=s/4,c=2*s,d=180/s,f=s/180,h=Math.abs,_=Math.atan,p=Math.atan2,v=Math.cos,g=Math.ceil,m=Math.exp,y=Math.log,b=Math.pow,j=Math.sin,x=Math.sign||function(t){return t>0?1:t<0?-1:0},w=Math.sqrt,E=Math.tan;function M(t){return t>1?0:t<-1?s:Math.acos(t)}function S(t){return t>1?u:t<-1?-u:Math.asin(t)}function T(t){return(t=j(t/2))*t}function P(){}function k(t,e){t&&C.hasOwnProperty(t.type)&&C[t.type](t,e)}var O={Feature:function(t,e){k(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,o=n.length;++r=0?1:-1,o=r*n,i=v(e=(e*=f)/2+l),a=j(e),s=q*a,u=L*i+s*v(o),c=s*r*j(o);Y.add(p(c,u)),D=t,L=i,q=a}function et(t){return[p(t[1],t[0]),S(t[2])]}function nt(t){var e=t[0],n=t[1],r=v(n);return[r*v(e),r*j(e),j(n)]}function rt(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function ot(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]]}function it(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function at(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function st(t){var e=w(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var ut,lt,ct=n(),dt={point:ft,lineStart:_t,lineEnd:pt,polygonStart:function(){dt.point=vt,dt.lineStart=gt,dt.lineEnd=mt,ct.reset(),X.polygonStart()},polygonEnd:function(){X.polygonEnd(),dt.point=ft,dt.lineStart=_t,dt.lineEnd=pt,Y<0?(B=-(F=180),z=-(G=90)):ct>a?G=90:ct<-a&&(z=-90),lt[0]=B,lt[1]=F}};function ft(t,e){ut.push(lt=[B=t,F=t]),eG&&(G=e)}function ht(t,e){var n=nt([t*f,e*f]);if(W){var r=ot(W,n),o=[r[1],-r[0],0],i=ot(o,r);st(i),i=et(i);var a,s=t-V,u=s>0?1:-1,l=i[0]*d*u,c=h(s)>180;c^(u*VG&&(G=a):c^(u*V<(l=(l+360)%360-180)&&lG&&(G=e)),c?tyt(B,F)&&(F=t):yt(t,F)>yt(B,F)&&(B=t):F>=B?(tF&&(F=t)):t>V?yt(B,t)>yt(B,F)&&(F=t):yt(t,F)>yt(B,F)&&(B=t)}else ut.push(lt=[B=t,F=t]);eG&&(G=e),W=n,V=t}function _t(){dt.point=ht}function pt(){lt[0]=B,lt[1]=F,dt.point=ft,W=null}function vt(t,e){if(W){var n=t-V;ct.add(h(n)>180?n+(n>0?360:-360):n)}else H=t,U=e;X.point(t,e),ht(t,e)}function gt(){X.lineStart()}function mt(){vt(H,U),X.lineEnd(),h(ct)>a&&(B=-(F=180)),lt[0]=B,lt[1]=F,W=null}function yt(t,e){return(e-=t)<0?e+360:e}function bt(t,e){return t[0]-e[0]}function jt(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:es?t-c:t<-s?t+c:t,e]}function Qt(t,e,n){return(t%=c)?e||n?Xt(te(t),ee(e,n)):te(t):e||n?ee(e,n):Jt}function Zt(t){return function(e,n){return[(e+=t)>s?e-c:e<-s?e+c:e,n]}}function te(t){var e=Zt(t);return e.invert=Zt(-t),e}function ee(t,e){var n=v(t),r=j(t),o=v(e),i=j(e);function a(t,e){var a=v(e),s=v(t)*a,u=j(t)*a,l=j(e),c=l*n+s*r;return[p(u*o-c*i,s*n-l*r),S(c*o+u*i)]}return a.invert=function(t,e){var a=v(e),s=v(t)*a,u=j(t)*a,l=j(e),c=l*o-u*i;return[p(u*o+l*i,s*n+c*r),S(c*n-s*r)]},a}Jt.invert=Jt;var ne=function(t){function e(e){return(e=t(e[0]*f,e[1]*f))[0]*=d,e[1]*=d,e}return t=Qt(t[0]*f,t[1]*f,t.length>2?t[2]*f:0),e.invert=function(e){return(e=t.invert(e[0]*f,e[1]*f))[0]*=d,e[1]*=d,e},e};function re(t,e,n,r,o,i){if(n){var a=v(e),s=j(e),u=r*n;null==o?(o=e+r*c,i=e-u/2):(o=oe(a,o),i=oe(a,i),(r>0?oi)&&(o+=r*c));for(var l,d=o;r>0?d>i:d1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}},ae=function(t,e,n,r,o,i){var a,s=t[0],u=t[1],l=e[0],c=e[1],d=0,f=1,h=l-s,_=c-u;if(a=n-s,h||!(a>0)){if(a/=h,h<0){if(a0){if(a>f)return;a>d&&(d=a)}if(a=o-s,h||!(a<0)){if(a/=h,h<0){if(a>f)return;a>d&&(d=a)}else if(h>0){if(a0)){if(a/=_,_<0){if(a0){if(a>f)return;a>d&&(d=a)}if(a=i-u,_||!(a<0)){if(a/=_,_<0){if(a>f)return;a>d&&(d=a)}else if(_>0){if(a0&&(t[0]=s+d*h,t[1]=u+d*_),f<1&&(e[0]=s+f*h,e[1]=u+f*_),!0}}}}},se=function(t,e){return h(t[0]-e[0])=0;--i)o.point((c=l[i])[0],c[1]);else r(f.x,f.p.x,-1,o);f=f.p}f=f.o,l=f.z,h=!h}while(!f.v);o.lineEnd()}}};function ce(t){if(e=t.length){for(var e,n,r=0,o=t[0];++r0)do{s.point(0===l||3===l?t:r,l>1?o:n)}while((l=(l+a+4)%4)!==d);else s.point(i[0],i[1])}function u(e,o){return h(e[0]-t)0?0:3:h(e[0]-r)0?2:1:h(e[1]-n)0?1:0:o>0?3:2}function l(t,e){return c(t.x,e.x)}function c(t,e){var n=u(t,1),r=u(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(a){var u,c,d,f,h,_,p,v,g,m,y,b=a,j=ie(),x={point:w,lineStart:function(){x.point=E,c&&c.push(d=[]),m=!0,g=!1,p=v=NaN},lineEnd:function(){u&&(E(f,h),_&&g&&j.rejoin(),u.push(j.result())),x.point=w,g&&b.lineEnd()},polygonStart:function(){b=j,u=[],c=[],y=!0},polygonEnd:function(){var n=function(){for(var e=0,n=0,r=c.length;no&&(f-i)*(o-a)>(h-a)*(t-i)&&++e:h<=o&&(f-i)*(o-a)<(h-a)*(t-i)&&--e;return e}(),r=y&&n,i=(u=e.merge(u)).length;(r||i)&&(a.polygonStart(),r&&(a.lineStart(),s(null,null,1,a),a.lineEnd()),i&&le(u,l,n,s,a),a.polygonEnd()),b=a,u=c=d=null}};function w(t,e){i(t,e)&&b.point(t,e)}function E(e,a){var s=i(e,a);if(c&&d.push([e,a]),m)f=e,h=a,_=s,m=!1,s&&(b.lineStart(),b.point(e,a));else if(s&&g)b.point(e,a);else{var u=[p=Math.max(fe,Math.min(de,p)),v=Math.max(fe,Math.min(de,v))],l=[e=Math.max(fe,Math.min(de,e)),a=Math.max(fe,Math.min(de,a))];ae(u,l,t,n,r,o)?(g||(b.lineStart(),b.point(u[0],u[1])),b.point(l[0],l[1]),s||b.lineEnd(),y=!1):s&&(b.lineStart(),b.point(e,a),y=!1)}p=e,v=a,g=s}return x}}var _e,pe,ve,ge=n(),me=function(t,e){var n=e[0],r=e[1],o=[j(n),-v(n),0],i=0,u=0;ge.reset();for(var d=0,f=t.length;d=0?1:-1,A=C*O,N=A>s,I=b*P;if(ge.add(p(I*C*j(A),x*k+I*v(A))),i+=N?O+C*c:O,N^m>=n^M>=n){var R=ot(nt(g),nt(E));st(R);var D=ot(o,R);st(D);var L=(N^O>=0?-1:1)*S(D[2]);(r>L||r===L&&(R[0]||R[1]))&&(u+=N^O>=0?1:-1)}}return(i<-a||ia}).map(c)).concat(e.range(g(s/v)*v,i,v).filter(function(t){return h(t%y)>a}).map(d))}return j.lines=function(){return x().map(function(t){return{type:"LineString",coordinates:t}})},j.outline=function(){return{type:"Polygon",coordinates:[f(o).concat(_(u).slice(1),f(r).reverse().slice(1),_(l).reverse().slice(1))]}},j.extent=function(t){return arguments.length?j.extentMajor(t).extentMinor(t):j.extentMinor()},j.extentMajor=function(t){return arguments.length?(o=+t[0][0],r=+t[1][0],l=+t[0][1],u=+t[1][1],o>r&&(t=o,o=r,r=t),l>u&&(t=l,l=u,u=t),j.precision(b)):[[o,l],[r,u]]},j.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],s=+e[0][1],i=+e[1][1],n>t&&(e=n,n=t,t=e),s>i&&(e=s,s=i,i=e),j.precision(b)):[[n,s],[t,i]]},j.step=function(t){return arguments.length?j.stepMajor(t).stepMinor(t):j.stepMinor()},j.stepMajor=function(t){return arguments.length?(m=+t[0],y=+t[1],j):[m,y]},j.stepMinor=function(t){return arguments.length?(p=+t[0],v=+t[1],j):[p,v]},j.precision=function(e){return arguments.length?(b=+e,c=De(s,i,90),d=Le(n,t,b),f=De(l,u,90),_=Le(o,r,b),j):b},j.extentMajor([[-180,-90+a],[180,90-a]]).extentMinor([[-180,-80-a],[180,80+a]])}var Be,ze,Fe,Ge,Ve=function(t){return t},He=n(),Ue=n(),We={point:P,lineStart:P,lineEnd:P,polygonStart:function(){We.lineStart=Ke,We.lineEnd=Xe},polygonEnd:function(){We.lineStart=We.lineEnd=We.point=P,He.add(h(Ue)),Ue.reset()},result:function(){var t=He/2;return He.reset(),t}};function Ke(){We.point=Ye}function Ye(t,e){We.point=$e,Be=Fe=t,ze=Ge=e}function $e(t,e){Ue.add(Ge*t-Fe*e),Fe=t,Ge=e}function Xe(){$e(Be,ze)}var Je,Qe,Ze,tn,en=1/0,nn=en,rn=-en,on=rn,an={point:function(t,e){trn&&(rn=t),eon&&(on=e)},lineStart:P,lineEnd:P,polygonStart:P,polygonEnd:P,result:function(){var t=[[en,nn],[rn,on]];return rn=on=-(nn=en=1/0),t}},sn=0,un=0,ln=0,cn=0,dn=0,fn=0,hn=0,_n=0,pn=0,vn={point:gn,lineStart:mn,lineEnd:jn,polygonStart:function(){vn.lineStart=xn,vn.lineEnd=wn},polygonEnd:function(){vn.point=gn,vn.lineStart=mn,vn.lineEnd=jn},result:function(){var t=pn?[hn/pn,_n/pn]:fn?[cn/fn,dn/fn]:ln?[sn/ln,un/ln]:[NaN,NaN];return sn=un=ln=cn=dn=fn=hn=_n=pn=0,t}};function gn(t,e){sn+=t,un+=e,++ln}function mn(){vn.point=yn}function yn(t,e){vn.point=bn,gn(Ze=t,tn=e)}function bn(t,e){var n=t-Ze,r=e-tn,o=w(n*n+r*r);cn+=o*(Ze+t)/2,dn+=o*(tn+e)/2,fn+=o,gn(Ze=t,tn=e)}function jn(){vn.point=gn}function xn(){vn.point=En}function wn(){Mn(Je,Qe)}function En(t,e){vn.point=Mn,gn(Je=Ze=t,Qe=tn=e)}function Mn(t,e){var n=t-Ze,r=e-tn,o=w(n*n+r*r);cn+=o*(Ze+t)/2,dn+=o*(tn+e)/2,fn+=o,hn+=(o=tn*t-Ze*e)*(Ze+t),_n+=o*(tn+e),pn+=3*o,gn(Ze=t,tn=e)}function Sn(t){this._context=t}Sn.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,c)}},result:P};var Tn,Pn,kn,On,Cn,An=n(),Nn={point:P,lineStart:function(){Nn.point=In},lineEnd:function(){Tn&&Rn(Pn,kn),Nn.point=P},polygonStart:function(){Tn=!0},polygonEnd:function(){Tn=null},result:function(){var t=+An;return An.reset(),t}};function In(t,e){Nn.point=Rn,Pn=On=t,kn=Cn=e}function Rn(t,e){On-=t,Cn-=e,An.add(w(On*On+Cn*Cn)),On=t,Cn=e}function Dn(){this._string=[]}function Ln(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}Dn.prototype={_radius:4.5,_circle:Ln(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=Ln(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}};var qn=function(t,n,r,o){return function(i,a){var s,u,l,c=n(a),d=i.invert(o[0],o[1]),f=ie(),h=n(f),_=!1,p={point:v,lineStart:m,lineEnd:y,polygonStart:function(){p.point=b,p.lineStart=j,p.lineEnd=x,u=[],s=[]},polygonEnd:function(){p.point=v,p.lineStart=m,p.lineEnd=y,u=e.merge(u);var t=me(s,d);u.length?(_||(a.polygonStart(),_=!0),le(u,zn,t,r,a)):t&&(_||(a.polygonStart(),_=!0),a.lineStart(),r(null,null,1,a),a.lineEnd()),_&&(a.polygonEnd(),_=!1),u=s=null},sphere:function(){a.polygonStart(),a.lineStart(),r(null,null,1,a),a.lineEnd(),a.polygonEnd()}};function v(e,n){var r=i(e,n);t(e=r[0],n=r[1])&&a.point(e,n)}function g(t,e){var n=i(t,e);c.point(n[0],n[1])}function m(){p.point=g,c.lineStart()}function y(){p.point=v,c.lineEnd()}function b(t,e){l.push([t,e]);var n=i(t,e);h.point(n[0],n[1])}function j(){h.lineStart(),l=[]}function x(){b(l[0][0],l[0][1]),h.lineEnd();var t,e,n,r,o=h.clean(),i=f.result(),c=i.length;if(l.pop(),s.push(l),l=null,c)if(1&o){if(n=i[0],(e=n.length-1)>0){for(_||(a.polygonStart(),_=!0),a.lineStart(),t=0;t1&&2&o&&i.push(i.pop().concat(i.shift())),u.push(i.filter(Bn))}return p}};function Bn(t){return t.length>1}function zn(t,e){return((t=t.x)[0]<0?t[1]-u-a:u-t[1])-((e=e.x)[0]<0?e[1]-u-a:u-e[1])}var Fn=qn(function(){return!0},function(t){var e,n=NaN,r=NaN,o=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(i,l){var c=i>0?s:-s,d=h(i-n);h(d-s)0?u:-u),t.point(o,r),t.lineEnd(),t.lineStart(),t.point(c,r),t.point(i,r),e=0):o!==c&&d>=s&&(h(n-o)a?_((j(e)*(i=v(r))*j(n)-j(r)*(o=v(e))*j(t))/(o*i*s)):(e+r)/2}(n,r,i,l),t.point(o,r),t.lineEnd(),t.lineStart(),t.point(c,r),e=0),t.point(n=i,r=l),o=c},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}},function(t,e,n,r){var o;if(null==t)o=n*u,r.point(-s,o),r.point(0,o),r.point(s,o),r.point(s,0),r.point(s,-o),r.point(0,-o),r.point(-s,-o),r.point(-s,0),r.point(-s,o);else if(h(t[0]-e[0])>a){var i=t[0]0,o=h(n)>a;function i(t,e){return v(t)*v(e)>n}function u(t,e,r){var o=nt(t),i=nt(e),u=[1,0,0],l=ot(o,i),c=rt(l,l),d=l[0],f=c-d*d;if(!f)return!r&&t;var _=n*c/f,p=-n*d/f,v=ot(u,l),g=at(u,_),m=at(l,p);it(g,m);var y=v,b=rt(g,y),j=rt(y,y),x=b*b-j*(rt(g,g)-1);if(!(x<0)){var E=w(x),M=at(y,(-b-E)/j);if(it(M,g),M=et(M),!r)return M;var S,T=t[0],P=e[0],k=t[1],O=e[1];P0^M[1]<(h(M[0]-T)s^(T<=M[0]&&M[0]<=P)){var I=at(y,(-b+E)/j);return it(I,g),[M,et(I)]}}}function l(e,n){var o=r?t:s-t,i=0;return e<-o?i|=1:e>o&&(i|=2),n<-o?i|=4:n>o&&(i|=8),i}return qn(i,function(t){var e,n,c,d,f;return{lineStart:function(){d=c=!1,f=1},point:function(h,_){var p,v=[h,_],g=i(h,_),m=r?g?0:l(h,_):g?l(h+(h<0?s:-s),_):0;if(!e&&(d=c=g)&&t.lineStart(),g!==c&&(!(p=u(e,v))||se(e,p)||se(v,p))&&(v[0]+=a,v[1]+=a,g=i(v[0],v[1])),g!==c)f=0,g?(t.lineStart(),p=u(v,e),t.point(p[0],p[1])):(p=u(e,v),t.point(p[0],p[1]),t.lineEnd()),e=p;else if(o&&e&&r^g){var y;m&n||!(y=u(v,e,!0))||(f=0,r?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!g||e&&se(e,v)||t.point(v[0],v[1]),e=v,c=g,n=m},lineEnd:function(){c&&t.lineEnd(),e=null},clean:function(){return f|(d&&c)<<1}}},function(n,r,o,i){re(i,t,e,o,n,r)},r?[0,-t]:[-s,t-s])};function Vn(t){return function(e){var n=new Hn;for(var r in t)n[r]=t[r];return n.stream=e,n}}function Hn(){}function Un(t,e,n){var r=e[1][0]-e[0][0],o=e[1][1]-e[0][1],i=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=i&&t.clipExtent(null),K(n,t.stream(an));var a=an.result(),s=Math.min(r/(a[1][0]-a[0][0]),o/(a[1][1]-a[0][1])),u=+e[0][0]+(r-s*(a[1][0]+a[0][0]))/2,l=+e[0][1]+(o-s*(a[1][1]+a[0][1]))/2;return null!=i&&t.clipExtent(i),t.scale(150*s).translate([u,l])}function Wn(t,e,n){return Un(t,[[0,0],e],n)}Hn.prototype={constructor:Hn,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()}};var Kn=16,Yn=v(30*f),$n=function(t,e){return+e?function(t,e){function n(r,o,i,s,u,l,c,d,f,_,v,g,m,y){var b=c-r,j=d-o,x=b*b+j*j;if(x>4*e&&m--){var E=s+_,M=u+v,T=l+g,P=w(E*E+M*M+T*T),k=S(T/=P),O=h(h(T)-1)e||h((b*I+j*R)/x-.5)>.3||s*_+u*v+l*g2?t[2]%360*f:0,C()):[m*d,y*d,b*d]},P.precision=function(t){return arguments.length?(T=$n(O,S=t*t),A()):w(S)},P.fitExtent=function(t,e){return Un(P,t,e)},P.fitSize=function(t,e){return Wn(P,t,e)},function(){return e=t.apply(this,arguments),P.invert=e.invert&&k,C()}}function Zn(t){var e=0,n=s/3,r=Qn(t),o=r(e,n);return o.parallels=function(t){return arguments.length?r(e=t[0]*f,n=t[1]*f):[e*d,n*d]},o}function tr(t,e){var n=j(t),r=(n+j(e))/2;if(h(r)0?e<-u+a&&(e=-u+a):e>u-a&&(e=u-a);var n=o/b(lr(e),r);return[n*j(r*t),o-n*v(r*t)]}return i.invert=function(t,e){var n=o-e,i=x(r)*w(t*t+n*n);return[p(t,h(n))/r*x(n),2*_(b(o/i,1/r))-u]},i}function dr(t,e){return[t,e]}function fr(t,e){var n=v(t),r=t===e?j(t):(n-v(e))/(e-t),o=n/r+t;if(h(r)yt(r[0],r[1])&&(r[1]=o[1]),yt(o[0],r[1])>yt(r[0],r[1])&&(r[0]=o[0])):i.push(r=o);for(a=-1/0,n=i.length-1,e=0,r=i[n];e<=n;r=o,++e)o=i[e],(s=yt(r[1],o[0]))>a&&(a=s,B=o[0],F=r[1])}return ut=lt=null,B===1/0||z===1/0?[[NaN,NaN],[NaN,NaN]]:[[B,z],[F,G]]},t.geoCentroid=function(t){xt=wt=Et=Mt=St=Tt=Pt=kt=Ot=Ct=At=0,K(t,qt);var e=Ot,n=Ct,r=At,o=e*e+n*n+r*r;return o<1e-12&&(e=Tt,n=Pt,r=kt,wt=.12&&o<.234&&r>=-.425&&r<-.214?u:o>=.166&&o<.234&&r>=-.214&&r<-.115?l:s).invert(t)},d.stream=function(n){return t&&e===n?t:(r=[s.stream(e=n),u.stream(n),l.stream(n)],o=r.length,t={point:function(t,e){for(var n=-1;++n2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)},t.geoTransverseMercatorRaw=gr,t.geoRotation=ne,t.geoStream=K,t.geoTransform=function(t){return{stream:Vn(t)}},Object.defineProperty(t,"__esModule",{value:!0})}(e,n("./node_modules/_d3-array@1.2.4@d3-array/dist/d3-array.js"))},"./node_modules/_d3-hexjson@1.1.0@d3-hexjson/build/d3-hexjson.js":function(t,e,n){!function(t,e){"use strict";function n(t,e,n,r){var o=0,i=0;switch(e){case"odd-r":i=t.rc%2==1?n:n/2,o=t.qc*n+i;break;case"even-r":i=t.rc%2==0?n:n/2,o=t.qc*n+i;break;case"odd-q":case"even-q":o=t.qc*r*1.5+r}return o}function r(t,e,n,r){var o=0,i=0;switch(e){case"odd-r":case"even-r":o=t.rc*r*1.5+r;break;case"odd-q":i=t.qc%2==1?n:n/2,o=t.rc*n+i;break;case"even-q":i=t.qc%2==0?n:n/2,o=t.rc*n+i}return o}t.renderHexJSON=function(t,o,i){var a=t.layout,s=[],u=0;Object.keys(t.hexes).forEach(function(e){t.hexes[e].key=e,s.push(t.hexes[e])});var l=e.max(s,function(t){return+t.q}),c=e.min(s,function(t){return+t.q}),d=e.max(s,function(t){return+t.r}),f=e.min(s,function(t){return+t.r}),h=l-c+1,_=d-f+1,p=(u="odd-r"===a||"even-r"===a?e.min([o/((h+.5)*Math.sqrt(3)),i/(1.5*(_+1/3))]):e.min([i/((_+.5)*Math.sqrt(3)),o/(1.5*(h+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}(a,p,u),g=function(t){var e="";return t.forEach(function(t){e+=t.x+","+t.y+" "}),e.substring(0,e.length-1)}(v);return s.forEach(function(t){t.qc=t.q-c,t.rc=d-t.r,t.x=n(t,a,p,u),t.y=r(t,a,p,u),t.vertices=v,t.points=g}),s},t.getGridForHexJSON=function(t){var n={};n.layout=t.layout,n.hexes={};var r=[];Object.keys(t.hexes).forEach(function(e){r.push(t.hexes[e])});var o,i,a,s=e.max(r,function(t){return+t.q}),u=e.min(r,function(t){return+t.q}),l=e.max(r,function(t){return+t.r}),c=e.min(r,function(t){return+t.r});for(o=u;o<=s;o++)for(i=c;i<=l;i++)a="Q"+o+"R"+i,n.hexes[a]={q:o,r:i};return n},t.getBoundaryDotsForHexJSON=function(t,o,i,a){var s=[],u=t.layout;Object.keys(t.hexes).forEach(function(e){s.push(t.hexes[e])});var l,c=e.max(s,function(t){return+t.q}),d=e.min(s,function(t){return+t.q}),f=e.max(s,function(t){return+t.r}),h=e.min(s,function(t){return+t.r}),_=c-d+1,p=f-h+1,v=(l="odd-r"===u||"even-r"===u?e.min([o/((_+.5)*Math.sqrt(3)),i/(1.5*(p+1/3))]):e.min([i/((p+.5)*Math.sqrt(3)),o/(1.5*(_+1/3))]))*Math.sqrt(3),g=[],m=l*l*4,y=s.length;if(y>1){s.forEach(function(t){t.qc=t.q-d,t.rc=f-t.r,t.x=n(t,u,v,l),t.y=r(t,u,v,l)});for(var b=0;b1){s.forEach(function(t){t.qc=t.q-d,t.rc=f-t.r,t.x=n(t,u,v,l),t.y=r(t,u,v,l)});for(var b=0;b=0;)e+=n[r].value;else e=1;t.value=e}function i(t,e){var n,r,o,i,s,c=new l(t),d=+t.value&&(c.value=t.value),f=[c];for(null==e&&(e=a);n=f.pop();)if(d&&(n.value=+n.data.value),(o=e(n.data))&&(s=o.length))for(n.children=new Array(s),i=s-1;i>=0;--i)f.push(r=n.children[i]=new l(o[i])),r.parent=n,r.depth=n.depth+1;return c.eachBefore(u)}function a(t){return t.children}function s(t){t.data=t.data.data}function u(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function l(t){this.data=t,this.depth=this.height=0,this.parent=null}l.prototype=i.prototype={constructor:l,count:function(){return this.eachAfter(o)},each:function(t){var e,n,r,o,i=this,a=[i];do{for(e=a.reverse(),a=[];i=e.pop();)if(t(i),n=i.children)for(r=0,o=n.length;r=0;--n)o.push(e[n]);return this},sum:function(t){return this.eachAfter(function(e){for(var n=+t(e.data)||0,r=e.children,o=r&&r.length;--o>=0;)n+=r[o].value;e.value=n})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),o=null;for(t=n.pop(),e=r.pop();t===e;)o=t,t=n.pop(),e=r.pop();return o}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var o=r.length;t!==n;)r.splice(o,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each(function(e){t.push(e)}),t},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,e=[];return t.each(function(n){n!==t&&e.push({source:n.parent,target:n})}),e},copy:function(){return i(this).eachBefore(s)}};var c=Array.prototype.slice;function d(t){for(var e,n,r=0,o=(t=function(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}(c.call(t))).length,i=[];r0&&n*n>r*r+o*o}function p(t,e){for(var n=0;n(a*=a)?(r=(l+a-o)/(2*l),i=Math.sqrt(Math.max(0,a/l-r*r)),n.x=t.x-r*s-i*u,n.y=t.y-r*u+i*s):(r=(l+o-a)/(2*l),i=Math.sqrt(Math.max(0,o/l-r*r)),n.x=e.x+r*s-i*u,n.y=e.y+r*u+i*s)):(n.x=e.x+n.r,n.y=e.y)}function b(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,o=e.y-t.y;return n>0&&n*n>r*r+o*o}function j(t){var e=t._,n=t.next._,r=e.r+n.r,o=(e.x*n.r+n.x*e.r)/r,i=(e.y*n.r+n.y*e.r)/r;return o*o+i*i}function x(t){this._=t,this.next=null,this.previous=null}function w(t){if(!(o=t.length))return 0;var e,n,r,o,i,a,s,u,l,c,f;if((e=t[0]).x=0,e.y=0,!(o>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(o>2))return e.r+n.r;y(n,e,r=t[2]),e=new x(e),n=new x(n),r=new x(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(s=3;sf&&(f=s),v=c*c*p,(h=Math.max(f/v,v/d))>_){c-=s;break}_=h}g.push(a={value:c,dice:u1?e:1)},n}(U),Y=function t(e){function n(t,n,r,o,i){if((a=t._squarify)&&a.ratio===e)for(var a,s,u,l,c,d=-1,f=a.length,h=t.value;++d1?e:1)},n}(U);t.cluster=function(){var t=e,o=1,i=1,a=!1;function s(e){var s,u=0;e.eachAfter(function(e){var o=e.children;o?(e.x=function(t){return t.reduce(n,0)/t.length}(o),e.y=function(t){return 1+t.reduce(r,0)}(o)):(e.x=s?u+=t(e,s):0,e.y=0,s=e)});var l=function(t){for(var e;e=t.children;)t=e[0];return t}(e),c=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(e),d=l.x-t(l,c)/2,f=c.x+t(c,l)/2;return e.eachAfter(a?function(t){t.x=(t.x-e.x)*o,t.y=(e.y-t.y)*i}:function(t){t.x=(t.x-d)/(f-d)*o,t.y=(1-(e.y?t.y/e.y:1))*i})}return s.separation=function(e){return arguments.length?(t=e,s):t},s.size=function(t){return arguments.length?(a=!1,o=+t[0],i=+t[1],s):a?null:[o,i]},s.nodeSize=function(t){return arguments.length?(a=!0,o=+t[0],i=+t[1],s):a?[o,i]:null},s},t.hierarchy=i,t.pack=function(){var t=null,e=1,n=1,r=M;function o(o){return o.x=e/2,o.y=n/2,t?o.eachBefore(P(t)).eachAfter(k(r,.5)).eachBefore(O(1)):o.eachBefore(P(T)).eachAfter(k(M,1)).eachAfter(k(r,o.r/Math.min(e,n))).eachBefore(O(Math.min(e,n)/(2*o.r))),o}return o.radius=function(e){return arguments.length?(t=null==(n=e)?null:E(n),o):t;var n},o.size=function(t){return arguments.length?(e=+t[0],n=+t[1],o):[e,n]},o.padding=function(t){return arguments.length?(r="function"==typeof t?t:S(+t),o):r},o},t.packEnclose=d,t.packSiblings=function(t){return w(t),t},t.partition=function(){var t=1,e=1,n=0,r=!1;function o(o){var i=o.height+1;return o.x0=o.y0=n,o.x1=t,o.y1=e/i,o.eachBefore(function(t,e){return function(r){r.children&&A(r,r.x0,t*(r.depth+1)/e,r.x1,t*(r.depth+2)/e);var o=r.x0,i=r.y0,a=r.x1-n,s=r.y1-n;a0)throw new Error("cycle");return i}return n.id=function(e){return arguments.length?(t=E(e),n):t},n.parentId=function(t){return arguments.length?(e=E(t),n):e},n},t.tree=function(){var t=q,e=1,n=1,r=null;function o(o){var u=function(t){for(var e,n,r,o,i,a=new V(t,0),s=[a];e=s.pop();)if(r=e._.children)for(e.children=new Array(i=r.length),o=i-1;o>=0;--o)s.push(n=e.children[o]=new V(r[o],o)),n.parent=e;return(a.parent=new V(null,0)).children=[a],a}(o);if(u.eachAfter(i),u.parent.m=-u.z,u.eachBefore(a),r)o.eachBefore(s);else{var l=o,c=o,d=o;o.eachBefore(function(t){t.xc.x&&(c=t),t.depth>d.depth&&(d=t)});var f=l===c?1:t(l,c)/2,h=f-l.x,_=e/(c.x+f+h),p=n/(d.depth||1);o.eachBefore(function(t){t.x=(t.x+h)*_,t.y=t.depth*p})}return o}function i(e){var n=e.children,r=e.parent.children,o=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,o=t.children,i=o.length;--i>=0;)(e=o[i]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var i=(n[0].z+n[n.length-1].z)/2;o?(e.z=o.z+t(e._,o._),e.m=e.z-i):e.z=i}else o&&(e.z=o.z+t(e._,o._));e.parent.A=function(e,n,r){if(n){for(var o,i=e,a=e,s=n,u=i.parent.children[0],l=i.m,c=a.m,d=s.m,f=u.m;s=z(s),i=B(i),s&&i;)u=B(u),(a=z(a)).a=e,(o=s.z+d-i.z-l+t(s._,i._))>0&&(F(G(s,e,r),e,o),l+=o,c+=o),d+=s.m,l+=i.m,f+=u.m,c+=a.m;s&&!z(a)&&(a.t=s,a.m+=d-c),i&&!B(u)&&(u.t=i,u.m+=l-f,r=e)}return r}(e,o,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*n}return o.separation=function(e){return arguments.length?(t=e,o):t},o.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],o):r?null:[e,n]},o.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],o):r?[e,n]:null},o},t.treemap=function(){var t=K,e=!1,n=1,r=1,o=[0],i=M,a=M,s=M,u=M,l=M;function c(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(d),o=[0],e&&t.eachBefore(C),t}function d(e){var n=o[e.depth],r=e.x0+n,c=e.y0+n,d=e.x1-n,f=e.y1-n;d=n-1){var c=s[e];return c.x0=o,c.y0=i,c.x1=a,void(c.y1=u)}for(var d=l[e],f=r/2+d,h=e+1,_=n-1;h<_;){var p=h+_>>>1;l[p]u-i){var m=(o*g+a*v)/r;t(e,h,v,o,i,m,u),t(h,n,g,m,i,a,u)}else{var y=(i*g+u*v)/r;t(e,h,v,o,i,a,y),t(h,n,g,o,y,a,u)}}(0,u,t.value,e,n,r,o)},t.treemapDice=A,t.treemapResquarify=Y,t.treemapSlice=H,t.treemapSliceDice=function(t,e,n,r,o){(1&t.depth?H:A)(t,e,n,r,o)},t.treemapSquarify=K,Object.defineProperty(t,"__esModule",{value:!0})}(e)},"./node_modules/_d3-path@1.0.9@d3-path/dist/d3-path.js":function(t,e,n){!function(t){"use strict";var e=Math.PI,n=2*e,r=n-1e-6;function o(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function i(){return new o}o.prototype=i.prototype={constructor:o,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,o,i){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+o)+","+(this._y1=+i)},arcTo:function(t,n,r,o,i){t=+t,n=+n,r=+r,o=+o,i=+i;var a=this._x1,s=this._y1,u=r-t,l=o-n,c=a-t,d=s-n,f=c*c+d*d;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=n);else if(f>1e-6)if(Math.abs(d*u-l*c)>1e-6&&i){var h=r-a,_=o-s,p=u*u+l*l,v=h*h+_*_,g=Math.sqrt(p),m=Math.sqrt(f),y=i*Math.tan((e-Math.acos((p+f-v)/(2*g*m)))/2),b=y/m,j=y/g;Math.abs(b-1)>1e-6&&(this._+="L"+(t+b*c)+","+(n+b*d)),this._+="A"+i+","+i+",0,0,"+ +(d*h>c*_)+","+(this._x1=t+j*u)+","+(this._y1=n+j*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,o,i,a,s,u){t=+t,o=+o,u=!!u;var l=(i=+i)*Math.cos(a),c=i*Math.sin(a),d=t+l,f=o+c,h=1^u,_=u?a-s:s-a;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+d+","+f:(Math.abs(this._x1-d)>1e-6||Math.abs(this._y1-f)>1e-6)&&(this._+="L"+d+","+f),i&&(_<0&&(_=_%n+n),_>r?this._+="A"+i+","+i+",0,1,"+h+","+(t-l)+","+(o-c)+"A"+i+","+i+",0,1,"+h+","+(this._x1=d)+","+(this._y1=f):_>1e-6&&(this._+="A"+i+","+i+",0,"+ +(_>=e)+","+h+","+(this._x1=t+i*Math.cos(s))+","+(this._y1=o+i*Math.sin(s))))},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._}},t.path=i,Object.defineProperty(t,"__esModule",{value:!0})}(e)},"./node_modules/_d3-sankey@0.9.1@d3-sankey/dist/d3-sankey.js":function(t,e,n){var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js");!function(t,e,n,o){"use strict";function i(t){return t.target.depth}function a(t,e){return t.sourceLinks.length?t.depth:e-1}function s(t){return function(){return t}}function u(t,e){return c(t.source,e.source)||t.index-e.index}function l(t,e){return c(t.target,e.target)||t.index-e.index}function c(t,e){return t.y0-e.y0}function d(t){return t.value}function f(t){return t.index}function h(t){return t.nodes}function _(t){return t.links}function p(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function v(t){return[t.source.x1,t.y0]}function g(t){return[t.target.x0,t.y1]}t.sankey=function(){var t,o=0,i=0,v=1,g=1,m=24,y=8,b=f,j=a,x=h,w=_,E=6;function M(){var a={nodes:x.apply(null,arguments),links:w.apply(null,arguments)};return function(t){t.nodes.forEach(function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]});var e=n.map(t.nodes,b);t.links.forEach(function(t,n){t.index=n;var r=t.source,o=t.target;"object"!=typeof r&&(r=t.source=p(e,r)),"object"!=typeof o&&(o=t.target=p(e,o)),r.sourceLinks.push(t),o.targetLinks.push(t)})}(a),function(t){t.nodes.forEach(function(t){t.value=Math.max(e.sum(t.sourceLinks,d),e.sum(t.targetLinks,d))})}(a),function(t){var e,n,r,i=t.nodes.length;for(e=t.nodes,n=[],r=0;e.length;++r,e=n,n=[]){if(r>i)throw new Error("circular link");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=[]){if(r>i)throw new Error("circular link");e.forEach(function(t){t.height=r,t.targetLinks.forEach(function(t){n.indexOf(t.source)<0&&n.push(t.source)})})}var a=(v-o-m)/(r-1);t.nodes.forEach(function(t){t.x1=(t.x0=o+Math.max(0,Math.min(r-1,Math.floor(j.call(null,t,r))))*a)+m})}(a),function(o){var a,s=n.nest().key(function(t){return t.x0}).sortKeys(e.ascending).entries(o.nodes).map(function(t){return t.values});a=e.min(s,function(t){return(g-i-(t.length-1)*y)/e.sum(t,d)}),s.forEach(function(e){null!=t&&e.sort(t),e.forEach(function(t,e){t.y1=(t.y0=e)+t.value*a})}),o.links.forEach(function(t){t.width=t.value*a}),v();for(var f=.9,h=E;h>0;--h,f*=.9)p(f),v(),_(f),v();function _(t){s.forEach(function(e){e.forEach(function(e){var n,o,i,a,s=e.y0;try{for(var u=r.__values(e.sourceLinks.sort(l)),c=u.next();!c.done;c=u.next()){var d=c.value,f=d.target,h=d.width,_=d.value;if(_>0){var p=0;try{for(var v=(i=void 0,r.__values(f.targetLinks)),g=v.next();!g.done;g=v.next()){var m=g.value,b=m.source,j=m.width;if(b===e)break;p+=j+y/2}}catch(t){i={error:t}}finally{try{g&&!g.done&&(a=v.return)&&a.call(v)}finally{if(i)throw i.error}}p=(s-p-f.y0)*t*(_/Math.min(e.value,f.value)),f.y0+=p,f.y1+=p}s+=h+y/2}}catch(t){n={error:t}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}})})}function p(t){s.slice().reverse().forEach(function(e){e.forEach(function(e){var n,o,i,a,s=e.y0;try{for(var l=r.__values(e.targetLinks.sort(u)),c=l.next();!c.done;c=l.next()){var d=c.value,f=d.source,h=d.width,_=d.value;if(_>0){var p=0;try{for(var v=(i=void 0,r.__values(f.sourceLinks)),g=v.next();!g.done;g=v.next()){var m=g.value,b=m.target,j=m.width;if(b===e)break;p+=j+y/2}}catch(t){i={error:t}}finally{try{g&&!g.done&&(a=v.return)&&a.call(v)}finally{if(i)throw i.error}}p=(s-p-f.y0)*t*(_/Math.min(e.value,f.value)),f.y0+=p,f.y1+=p}s+=h+y/2}}catch(t){n={error:t}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(n)throw n.error}}})})}function v(){s.forEach(function(e){var n,r,o,a=i,s=e.length;for(void 0===t&&e.sort(c),o=0;o0&&(n.y0+=r,n.y1+=r),a=n.y1+y;if((r=a-y-g)>0)for(a=n.y0-=r,n.y1-=r,o=s-2;o>=0;--o)n=e[o],(r=n.y1+y-a)>0&&(n.y0-=r,n.y1-=r),a=n.y0})}}(a),S(a),a}function S(t){t.nodes.forEach(function(t){t.sourceLinks.sort(l),t.targetLinks.sort(u)}),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 M.update=function(t){return S(t),t},M.nodeId=function(t){return arguments.length?(b="function"==typeof t?t:s(t),M):b},M.nodeAlign=function(t){return arguments.length?(j="function"==typeof t?t:s(t),M):j},M.nodeSort=function(e){return arguments.length?(t=e,M):t},M.nodeWidth=function(t){return arguments.length?(m=+t,M):m},M.nodePadding=function(t){return arguments.length?(y=+t,M):y},M.nodes=function(t){return arguments.length?(x="function"==typeof t?t:s(t),M):x},M.links=function(t){return arguments.length?(w="function"==typeof t?t:s(t),M):w},M.size=function(t){return arguments.length?(o=i=0,v=+t[0],g=+t[1],M):[v-o,g-i]},M.extent=function(t){return arguments.length?(o=+t[0][0],v=+t[1][0],i=+t[0][1],g=+t[1][1],M):[[o,i],[v,g]]},M.iterations=function(t){return arguments.length?(E=+t,M):E},M},t.sankeyCenter=function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?e.min(t.sourceLinks,i)-1:0},t.sankeyLeft=function(t){return t.depth},t.sankeyRight=function(t,e){return e-1-t.height},t.sankeyJustify=a,t.sankeyLinkHorizontal=function(){return o.linkHorizontal().source(v).target(g)},Object.defineProperty(t,"__esModule",{value:!0})}(e,n("./node_modules/_d3-array@1.2.4@d3-array/dist/d3-array.js"),n("./node_modules/_d3-collection@1.0.7@d3-collection/dist/d3-collection.js"),n("./node_modules/_d3-shape@1.3.7@d3-shape/dist/d3-shape.js"))},"./node_modules/_d3-shape@1.3.7@d3-shape/dist/d3-shape.js":function(t,e,n){!function(t,e){"use strict";function n(t){return function(){return t}}var r=Math.abs,o=Math.atan2,i=Math.cos,a=Math.max,s=Math.min,u=Math.sin,l=Math.sqrt,c=1e-12,d=Math.PI,f=d/2,h=2*d;function _(t){return t>=1?f:t<=-1?-f:Math.asin(t)}function p(t){return t.innerRadius}function v(t){return t.outerRadius}function g(t){return t.startAngle}function m(t){return t.endAngle}function y(t){return t&&t.padAngle}function b(t,e,n,r,o,i,s){var u=t-n,c=e-r,d=(s?i:-i)/l(u*u+c*c),f=d*c,h=-d*u,_=t+f,p=e+h,v=n+f,g=r+h,m=(_+v)/2,y=(p+g)/2,b=v-_,j=g-p,x=b*b+j*j,w=o-i,E=_*g-v*p,M=(j<0?-1:1)*l(a(0,w*w*x-E*E)),S=(E*j-b*M)/x,T=(-E*b-j*M)/x,P=(E*j+b*M)/x,k=(-E*b+j*M)/x,O=S-m,C=T-y,A=P-m,N=k-y;return O*O+C*C>A*A+N*N&&(S=P,T=k),{cx:S,cy:T,x01:-f,y01:-h,x11:S*(o/w-1),y11:T*(o/w-1)}}function j(t){this._context=t}function x(t){return new j(t)}function w(t){return t[0]}function E(t){return t[1]}function M(){var t=w,r=E,o=n(!0),i=null,a=x,s=null;function u(n){var u,l,c,d=n.length,f=!1;for(null==i&&(s=a(c=e.path())),u=0;u<=d;++u)!(u=d;--f)l.point(g[f],m[f]);l.lineEnd(),l.areaEnd()}v&&(g[c]=+t(h,c,n),m[c]=+o(h,c,n),l.point(r?+r(h,c,n):g[c],i?+i(h,c,n):m[c]))}if(_)return l=null,_+""||null}function d(){return M().defined(a).curve(u).context(s)}return c.x=function(e){return arguments.length?(t="function"==typeof e?e:n(+e),r=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:n(+e),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:n(+t),c):r},c.y=function(t){return arguments.length?(o="function"==typeof t?t:n(+t),i=null,c):o},c.y0=function(t){return arguments.length?(o="function"==typeof t?t:n(+t),c):o},c.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:n(+t),c):i},c.lineX0=c.lineY0=function(){return d().x(t).y(o)},c.lineY1=function(){return d().x(t).y(i)},c.lineX1=function(){return d().x(r).y(o)},c.defined=function(t){return arguments.length?(a="function"==typeof t?t:n(!!t),c):a},c.curve=function(t){return arguments.length?(u=t,null!=s&&(l=u(s)),c):u},c.context=function(t){return arguments.length?(null==t?s=l=null:l=u(s=t),c):s},c}function T(t,e){return et?1:e>=t?0:NaN}function P(t){return t}j.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)}}};var k=C(x);function O(t){this._curve=t}function C(t){function e(e){return new O(t(e))}return e._curve=t,e}function A(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(C(t)):e()._curve},t}function N(){return A(M().curve(k))}function I(){var t=S().curve(k),e=t.curve,n=t.lineX0,r=t.lineX1,o=t.lineY0,i=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return A(n())},delete t.lineX0,t.lineEndAngle=function(){return A(r())},delete t.lineX1,t.lineInnerRadius=function(){return A(o())},delete t.lineY0,t.lineOuterRadius=function(){return A(i())},delete t.lineY1,t.curve=function(t){return arguments.length?e(C(t)):e()._curve},t}function R(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}O.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))}};var D=Array.prototype.slice;function L(t){return t.source}function q(t){return t.target}function B(t){var r=L,o=q,i=w,a=E,s=null;function u(){var n,u=D.call(arguments),l=r.apply(this,u),c=o.apply(this,u);if(s||(s=n=e.path()),t(s,+i.apply(this,(u[0]=l,u)),+a.apply(this,u),+i.apply(this,(u[0]=c,u)),+a.apply(this,u)),n)return s=null,n+""||null}return u.source=function(t){return arguments.length?(r=t,u):r},u.target=function(t){return arguments.length?(o=t,u):o},u.x=function(t){return arguments.length?(i="function"==typeof t?t:n(+t),u):i},u.y=function(t){return arguments.length?(a="function"==typeof t?t:n(+t),u):a},u.context=function(t){return arguments.length?(s=null==t?null:t,u):s},u}function z(t,e,n,r,o){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,o,r,o)}function F(t,e,n,r,o){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+o)/2,r,n,r,o)}function G(t,e,n,r,o){var i=R(e,n),a=R(e,n=(n+o)/2),s=R(r,n),u=R(r,o);t.moveTo(i[0],i[1]),t.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}var V={draw:function(t,e){var n=Math.sqrt(e/d);t.moveTo(n,0),t.arc(0,0,n,0,h)}},H={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()}},U=Math.sqrt(1/3),W=2*U,K={draw:function(t,e){var n=Math.sqrt(e/W),r=n*U;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}},Y=Math.sin(d/10)/Math.sin(7*d/10),$=Math.sin(h/10)*Y,X=-Math.cos(h/10)*Y,J={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=$*n,o=X*n;t.moveTo(0,-n),t.lineTo(r,o);for(var i=1;i<5;++i){var a=h*i/5,s=Math.cos(a),u=Math.sin(a);t.lineTo(u*n,-s*n),t.lineTo(s*r-u*o,u*r+s*o)}t.closePath()}},Q={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}},Z=Math.sqrt(3),tt={draw:function(t,e){var n=-Math.sqrt(e/(3*Z));t.moveTo(0,2*n),t.lineTo(-Z*n,-n),t.lineTo(Z*n,-n),t.closePath()}},et=-.5,nt=Math.sqrt(3)/2,rt=1/Math.sqrt(12),ot=3*(rt/2+1),it={draw:function(t,e){var n=Math.sqrt(e/ot),r=n/2,o=n*rt,i=r,a=n*rt+n,s=-i,u=a;t.moveTo(r,o),t.lineTo(i,a),t.lineTo(s,u),t.lineTo(et*r-nt*o,nt*r+et*o),t.lineTo(et*i-nt*a,nt*i+et*a),t.lineTo(et*s-nt*u,nt*s+et*u),t.lineTo(et*r+nt*o,et*o-nt*r),t.lineTo(et*i+nt*a,et*a-nt*i),t.lineTo(et*s+nt*u,et*u-nt*s),t.closePath()}},at=[V,H,K,Q,J,tt,it];function st(){}function ut(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 lt(t){this._context=t}function ct(t){this._context=t}function dt(t){this._context=t}function ft(t,e){this._basis=new lt(t),this._beta=e}lt.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:ut(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:ut(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ct.prototype={areaStart:st,areaEnd:st,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:ut(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},dt.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(){(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;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ut(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ft.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,o=t[0],i=e[0],a=t[n]-o,s=e[n]-i,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(o+r*a),this._beta*e[u]+(1-this._beta)*(i+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var ht=function t(e){function n(t){return 1===e?new lt(t):new ft(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function _t(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 pt(t,e){this._context=t,this._k=(1-e)/6}pt.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:_t(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:_t(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}};var vt=function t(e){function n(t){return new pt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function gt(t,e){this._context=t,this._k=(1-e)/6}gt.prototype={areaStart:st,areaEnd:st,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:_t(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}};var mt=function t(e){function n(t){return new gt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function yt(t,e){this._context=t,this._k=(1-e)/6}yt.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:_t(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}};var bt=function t(e){function n(t){return new yt(t,e)}return n.tension=function(e){return t(+e)},n}(0);function jt(t,e,n){var r=t._x1,o=t._y1,i=t._x2,a=t._y2;if(t._l01_a>c){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,o=(o*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>c){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,d=3*t._l23_a*(t._l23_a+t._l12_a);i=(i*l+t._x1*t._l23_2a-e*t._l12_2a)/d,a=(a*l+t._y1*t._l23_2a-n*t._l12_2a)/d}t._context.bezierCurveTo(r,o,i,a,t._x2,t._y2)}function xt(t,e){this._context=t,this._alpha=e}xt.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:jt(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}};var wt=function t(e){function n(t){return e?new xt(t,e):new pt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Et(t,e){this._context=t,this._alpha=e}Et.prototype={areaStart:st,areaEnd:st,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:jt(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}};var Mt=function t(e){function n(t){return e?new Et(t,e):new gt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function St(t,e){this._context=t,this._alpha=e}St.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:jt(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}};var Tt=function t(e){function n(t){return e?new St(t,e):new yt(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Pt(t){this._context=t}function kt(t){return t<0?-1:1}function Ot(t,e,n){var r=t._x1-t._x0,o=e-t._x1,i=(t._y1-t._y0)/(r||o<0&&-0),a=(n-t._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(kt(i)+kt(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function Ct(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function At(t,e,n){var r=t._x0,o=t._y0,i=t._x1,a=t._y1,s=(i-r)/3;t._context.bezierCurveTo(r+s,o+s*e,i-s,a-s*n,i,a)}function Nt(t){this._context=t}function It(t){this._context=new Rt(t)}function Rt(t){this._context=t}function Dt(t){this._context=t}function Lt(t){var e,n,r=t.length-1,o=new Array(r),i=new Array(r),a=new Array(r);for(o[0]=0,i[0]=2,a[0]=t[0]+2*t[1],e=1;e=0;--e)o[e]=(a[e]-o[e+1])/i[e];for(i[r-1]=(t[r]+o[r-1])/2,e=0;e1)for(var n,r,o,i=1,a=t[e[0]],s=a.length;i=0;)n[e]=e;return n}function Ft(t,e){return t[e]}function Gt(t){var e=t.map(Vt);return zt(t).sort(function(t,n){return e[t]-e[n]})}function Vt(t){for(var e,n=-1,r=0,o=t.length,i=-1/0;++ni&&(i=e,r=n);return r}function Ht(t){var e=t.map(Ut);return zt(t).sort(function(t,n){return e[t]-e[n]})}function Ut(t){for(var e,n=0,r=-1,o=t.length;++r=0&&(this._t=1-this._t,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:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},t.arc=function(){var t=p,a=v,j=n(0),x=null,w=g,E=m,M=y,S=null;function T(){var n,p,v,g=+t.apply(this,arguments),m=+a.apply(this,arguments),y=w.apply(this,arguments)-f,T=E.apply(this,arguments)-f,P=r(T-y),k=T>y;if(S||(S=n=e.path()),mc)if(P>h-c)S.moveTo(m*i(y),m*u(y)),S.arc(0,0,m,y,T,!k),g>c&&(S.moveTo(g*i(T),g*u(T)),S.arc(0,0,g,T,y,k));else{var O,C,A=y,N=T,I=y,R=T,D=P,L=P,q=M.apply(this,arguments)/2,B=q>c&&(x?+x.apply(this,arguments):l(g*g+m*m)),z=s(r(m-g)/2,+j.apply(this,arguments)),F=z,G=z;if(B>c){var V=_(B/g*u(q)),H=_(B/m*u(q));(D-=2*V)>c?(I+=V*=k?1:-1,R-=V):(D=0,I=R=(y+T)/2),(L-=2*H)>c?(A+=H*=k?1:-1,N-=H):(L=0,A=N=(y+T)/2)}var U=m*i(A),W=m*u(A),K=g*i(R),Y=g*u(R);if(z>c){var $,X=m*i(N),J=m*u(N),Q=g*i(I),Z=g*u(I);if(P1?0:v<-1?d:Math.acos(v))/2),it=l($[0]*$[0]+$[1]*$[1]);F=s(z,(g-it)/(ot-1)),G=s(z,(m-it)/(ot+1))}}L>c?G>c?(O=b(Q,Z,U,W,m,G,k),C=b(X,J,K,Y,m,G,k),S.moveTo(O.cx+O.x01,O.cy+O.y01),Gc&&D>c?F>c?(O=b(K,Y,X,J,g,-F,k),C=b(U,W,Q,Z,g,-F,k),S.lineTo(O.cx+O.x01,O.cy+O.y01),F0&&(_+=d);for(null!=e?p.sort(function(t,n){return e(v[t],v[n])}):null!=r&&p.sort(function(t,e){return r(n[t],n[e])}),s=0,l=_?(m-f*b)/_:0;s0?d*l:0)+b,v[u]={data:n[u],index:s,value:d,startAngle:g,endAngle:c,padAngle:y};return v}return s.value=function(e){return arguments.length?(t="function"==typeof e?e:n(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,r=null,s):e},s.sort=function(t){return arguments.length?(r=t,e=null,s):r},s.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:n(+t),s):o},s.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:n(+t),s):i},s.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:n(+t),s):a},s},t.pointRadial=R,t.radialArea=I,t.radialLine=N,t.stack=function(){var t=n([]),e=zt,r=Bt,o=Ft;function i(n){var i,a,s=t.apply(this,arguments),u=n.length,l=s.length,c=new Array(l);for(i=0;i0)for(var n,r,o,i,a,s,u=0,l=t[e[0]].length;u0?(r[0]=i,r[1]=i+=o):o<0?(r[1]=a,r[0]=a+=o):(r[0]=0,r[1]=o)},t.stackOffsetExpand=function(t,e){if((r=t.length)>0){for(var n,r,o,i=0,a=t[0].length;i0){for(var n,r=0,o=t[e[0]],i=o.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,o,i=0,a=1;a0)){if(i/=_,_<0){if(i0){if(i>h)return;i>f&&(f=i)}if(i=r-u,_||!(i<0)){if(i/=_,_<0){if(i>h)return;i>f&&(f=i)}else if(_>0){if(i0)){if(i/=p,p<0){if(i0){if(i>h)return;i>f&&(f=i)}if(i=o-l,p||!(i<0)){if(i/=p,p<0){if(i>h)return;i>f&&(f=i)}else if(p>0){if(i0||h<1)||(f>0&&(t[0]=[u+f*_,l+f*p]),h<1&&(t[1]=[u+h*_,l+h*p]),!0)}}}}}function h(t,e,n,r,o){var i=t[1];if(i)return!0;var a,s,u=t[0],l=t.left,c=t.right,d=l[0],f=l[1],h=c[0],_=c[1],p=(d+h)/2,v=(f+_)/2;if(_===f){if(p=r)return;if(d>h){if(u){if(u[1]>=o)return}else u=[p,n];i=[p,o]}else{if(u){if(u[1]1)if(d>h){if(u){if(u[1]>=o)return}else u=[(n-s)/a,n];i=[(o-s)/a,o]}else{if(u){if(u[1]=r)return}else u=[e,a*e+s];i=[r,a*r+s]}else{if(u){if(u[0]=-R)){var h=u*u+l*l,_=c*c+d*d,p=(d*h-l*_)/f,v=(u*_-c*h)/f,b=m.pop()||new y;b.arc=t,b.site=o,b.x=p+a,b.y=(b.cy=v+s)+Math.sqrt(p*p+v*v),t.circle=b;for(var j=null,x=A._;x;)if(b.yI)s=s.L;else{if(!((o=i-k(s,a))>I)){r>-I?(e=s.P,n=s):o>-I?(e=s,n=s.N):e=n=s;break}if(!s.R){e=s;break}s=s.R}!function(t){C[t.index]={site:t,halfedges:[]}}(t);var u=E(t);if(O.insert(e,u),e||n){if(e===n)return j(e),n=E(e.site),O.insert(u,n),u.edge=n.edge=l(e.site,u.site),b(e),void b(n);if(n){j(e),j(n);var c=e.site,f=c[0],h=c[1],_=t[0]-f,p=t[1]-h,v=n.site,g=v[0]-f,m=v[1]-h,y=2*(_*m-p*g),x=_*_+p*p,w=g*g+m*m,M=[(m*x-p*w)/y+f,(_*w-g*x)/y+h];d(n.edge,c,v,M),u.edge=l(c,t,null,M),n.edge=l(t,v,null,M),b(e),b(n)}else u.edge=l(e.site,u.site)}}function P(t,e){var n=t.site,r=n[0],o=n[1],i=o-e;if(!i)return r;var a=t.P;if(!a)return-1/0;var s=(n=a.site)[0],u=n[1],l=u-e;if(!l)return s;var c=s-r,d=1/i-1/l,f=c/l;return d?(-f+Math.sqrt(f*f-2*d*(c*c/(-2*l)-u+l/2+o-i/2)))/d+r:(r+s)/2}function k(t,e){var n=t.N;if(n)return P(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var O,C,A,N,I=1e-6,R=1e-12;function D(t,e){return e[1]-t[1]||e[0]-t[0]}function L(t,e){var n,r,i,a=t.sort(D).pop();for(N=[],C=new Array(t.length),O=new o,A=new o;;)if(i=g,a&&(!i||a[1]I||Math.abs(o[0][1]-o[1][1])>I)||delete N[i]}(s,u,l,d),function(t,e,n,r){var o,i,a,s,u,l,d,f,h,_,g,m,y=C.length,b=!0;for(o=0;oI||Math.abs(m-h)>I)&&(u.splice(s,0,N.push(c(a,_,Math.abs(g-t)I?[t,Math.abs(f-t)I?[Math.abs(h-r)I?[n,Math.abs(f-n)I?[Math.abs(h-e)=s)return null;var u=t-o.site[0],l=e-o.site[1],c=u*u+l*l;do{o=i.cells[r=a],a=null,o.halfedges.forEach(function(n){var r=i.edges[n],s=r.left;if(s!==o.site&&s||(s=r.right)){var u=t-s[0],l=e-s[1],d=u*u+l*l;d0;--u)if(r=e[u].dequeue()){o=o.concat(s(t,e,n,r,!0));break}}return o}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(l,function(e){return t.outEdges(e.v,e.w)}),!0)};var a=r.constant(1);function s(t,e,n,o,i){var a=i?[]:void 0;return r.forEach(t.inEdges(o.v),function(r){var o=t.edge(r),s=t.node(r.v);i&&a.push({v:r.v,w:r.w}),s.out-=o,u(e,n,s)}),r.forEach(t.outEdges(o.v),function(r){var o=t.edge(r),i=r.w,a=t.node(i);a.in-=o,u(e,n,a)}),t.removeNode(o.v),a}function u(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},"./node_modules/_dagre@0.8.5@dagre/lib/layout.js":function(t,e,n){"use strict";var r=n("./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),o=n("./node_modules/_dagre@0.8.5@dagre/lib/acyclic.js"),i=n("./node_modules/_dagre@0.8.5@dagre/lib/normalize.js"),a=n("./node_modules/_dagre@0.8.5@dagre/lib/rank/index.js"),s=n("./node_modules/_dagre@0.8.5@dagre/lib/util.js").normalizeRanks,u=n("./node_modules/_dagre@0.8.5@dagre/lib/parent-dummy-chains.js"),l=n("./node_modules/_dagre@0.8.5@dagre/lib/util.js").removeEmptyRanks,c=n("./node_modules/_dagre@0.8.5@dagre/lib/nesting-graph.js"),d=n("./node_modules/_dagre@0.8.5@dagre/lib/add-border-segments.js"),f=n("./node_modules/_dagre@0.8.5@dagre/lib/coordinate-system.js"),h=n("./node_modules/_dagre@0.8.5@dagre/lib/order/index.js"),_=n("./node_modules/_dagre@0.8.5@dagre/lib/position/index.js"),p=n("./node_modules/_dagre@0.8.5@dagre/lib/util.js"),v=n("./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").Graph;t.exports=function(t,e){var n=e&&e.debugTiming?p.time:p.notime;n("layout",function(){var e=n(" buildLayoutGraph",function(){return function(t){var e=new v({multigraph:!0,compound:!0}),n=S(t.graph());return e.setGraph(r.merge({},m,M(n,g),r.pick(n,y))),r.forEach(t.nodes(),function(n){var o=S(t.node(n));e.setNode(n,r.defaults(M(o,b),j)),e.setParent(n,t.parent(n))}),r.forEach(t.edges(),function(n){var o=S(t.edge(n));e.setEdge(n,r.merge({},w,M(o,x),r.pick(o,E)))}),e}(t)});n(" runLayout",function(){!function(t,e){e(" makeSpaceForEdgeLabels",function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}(t)}),e(" removeSelfEdges",function(){!function(t){r.forEach(t.edges(),function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}})}(t)}),e(" acyclic",function(){o.run(t)}),e(" nestingGraph.run",function(){c.run(t)}),e(" rank",function(){a(p.asNonCompoundGraph(t))}),e(" injectEdgeLabelProxies",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),o=t.node(e.w),i={rank:(o.rank-r.rank)/2+r.rank,e:e};p.addDummyNode(t,"edge-proxy",i,"_ep")}})}(t)}),e(" removeEmptyRanks",function(){l(t)}),e(" nestingGraph.cleanup",function(){c.cleanup(t)}),e(" normalizeRanks",function(){s(t)}),e(" assignRankMinMax",function(){!function(t){var e=0;r.forEach(t.nodes(),function(n){var o=t.node(n);o.borderTop&&(o.minRank=t.node(o.borderTop).rank,o.maxRank=t.node(o.borderBottom).rank,e=r.max(e,o.maxRank))}),t.graph().maxRank=e}(t)}),e(" removeEdgeLabelProxies",function(){!function(t){r.forEach(t.nodes(),function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))})}(t)}),e(" normalize.run",function(){i.run(t)}),e(" parentDummyChains",function(){u(t)}),e(" addBorderSegments",function(){d(t)}),e(" order",function(){h(t)}),e(" insertSelfEdges",function(){!function(t){var e=p.buildLayerMatrix(t);r.forEach(e,function(e){var n=0;r.forEach(e,function(e,o){var i=t.node(e);i.order=o+n,r.forEach(i.selfEdges,function(e){p.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:i.rank,order:o+ ++n,e:e.e,label:e.label},"_se")}),delete i.selfEdges})})}(t)}),e(" adjustCoordinateSystem",function(){f.adjust(t)}),e(" position",function(){_(t)}),e(" positionSelfEdges",function(){!function(t){r.forEach(t.nodes(),function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),o=r.x+r.width/2,i=r.y,a=n.x-o,s=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:o+2*a/3,y:i-s},{x:o+5*a/6,y:i-s},{x:o+a,y:i},{x:o+5*a/6,y:i+s},{x:o+2*a/3,y:i+s}],n.label.x=n.x,n.label.y=n.y}})}(t)}),e(" removeBorderNodes",function(){!function(t){r.forEach(t.nodes(),function(e){if(t.children(e).length){var n=t.node(e),o=t.node(n.borderTop),i=t.node(n.borderBottom),a=t.node(r.last(n.borderLeft)),s=t.node(r.last(n.borderRight));n.width=Math.abs(s.x-a.x),n.height=Math.abs(i.y-o.y),n.x=a.x+n.width/2,n.y=o.y+n.height/2}}),r.forEach(t.nodes(),function(e){"border"===t.node(e).dummy&&t.removeNode(e)})}(t)}),e(" normalize.undo",function(){i.undo(t)}),e(" fixupEdgeLabelCoords",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}})}(t)}),e(" undoCoordinateSystem",function(){f.undo(t)}),e(" translateGraph",function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,o=Number.POSITIVE_INFINITY,i=0,a=t.graph(),s=a.marginx||0,u=a.marginy||0;function l(t){var r=t.x,a=t.y,s=t.width,u=t.height;e=Math.min(e,r-s/2),n=Math.max(n,r+s/2),o=Math.min(o,a-u/2),i=Math.max(i,a+u/2)}r.forEach(t.nodes(),function(e){l(t.node(e))}),r.forEach(t.edges(),function(e){var n=t.edge(e);r.has(n,"x")&&l(n)}),e-=s,o-=u,r.forEach(t.nodes(),function(n){var r=t.node(n);r.x-=e,r.y-=o}),r.forEach(t.edges(),function(n){var i=t.edge(n);r.forEach(i.points,function(t){t.x-=e,t.y-=o}),r.has(i,"x")&&(i.x-=e),r.has(i,"y")&&(i.y-=o)}),a.width=n-e+s,a.height=i-o+u}(t)}),e(" assignNodeIntersects",function(){!function(t){r.forEach(t.edges(),function(e){var n,r,o=t.edge(e),i=t.node(e.v),a=t.node(e.w);o.points?(n=o.points[0],r=o.points[o.points.length-1]):(o.points=[],n=a,r=i),o.points.unshift(p.intersectRect(i,n)),o.points.push(p.intersectRect(a,r))})}(t)}),e(" reversePoints",function(){!function(t){r.forEach(t.edges(),function(e){var n=t.edge(e);n.reversed&&n.points.reverse()})}(t)}),e(" acyclic.undo",function(){o.undo(t)})}(e,n)}),n(" updateInputGraph",function(){!function(t,e){r.forEach(t.nodes(),function(n){var r=t.node(n),o=e.node(n);r&&(r.x=o.x,r.y=o.y,e.children(n).length&&(r.width=o.width,r.height=o.height))}),r.forEach(t.edges(),function(n){var o=t.edge(n),i=e.edge(n);o.points=i.points,r.has(i,"x")&&(o.x=i.x,o.y=i.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)})})};var g=["nodesep","edgesep","ranksep","marginx","marginy"],m={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},y=["acyclicer","ranker","rankdir","align"],b=["width","height"],j={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],w={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},E=["labelpos"];function M(t,e){return r.mapValues(r.pick(t,e),Number)}function S(t){var e={};return r.forEach(t,function(t,n){e[n.toLowerCase()]=t}),e}},"./node_modules/_dagre@0.8.5@dagre/lib/lodash.js":function(t,e,n){var r;try{r={cloneDeep:n("./node_modules/_lodash@4.17.15@lodash/cloneDeep.js"),constant:n("./node_modules/_lodash@4.17.15@lodash/constant.js"),defaults:n("./node_modules/_lodash@4.17.15@lodash/defaults.js"),each:n("./node_modules/_lodash@4.17.15@lodash/each.js"),filter:n("./node_modules/_lodash@4.17.15@lodash/filter.js"),find:n("./node_modules/_lodash@4.17.15@lodash/find.js"),flatten:n("./node_modules/_lodash@4.17.15@lodash/flatten.js"),forEach:n("./node_modules/_lodash@4.17.15@lodash/forEach.js"),forIn:n("./node_modules/_lodash@4.17.15@lodash/forIn.js"),has:n("./node_modules/_lodash@4.17.15@lodash/has.js"),isUndefined:n("./node_modules/_lodash@4.17.15@lodash/isUndefined.js"),last:n("./node_modules/_lodash@4.17.15@lodash/last.js"),map:n("./node_modules/_lodash@4.17.15@lodash/map.js"),mapValues:n("./node_modules/_lodash@4.17.15@lodash/mapValues.js"),max:n("./node_modules/_lodash@4.17.15@lodash/max.js"),merge:n("./node_modules/_lodash@4.17.15@lodash/merge.js"),min:n("./node_modules/_lodash@4.17.15@lodash/min.js"),minBy:n("./node_modules/_lodash@4.17.15@lodash/minBy.js"),now:n("./node_modules/_lodash@4.17.15@lodash/now.js"),pick:n("./node_modules/_lodash@4.17.15@lodash/pick.js"),range:n("./node_modules/_lodash@4.17.15@lodash/range.js"),reduce:n("./node_modules/_lodash@4.17.15@lodash/reduce.js"),sortBy:n("./node_modules/_lodash@4.17.15@lodash/sortBy.js"),uniqueId:n("./node_modules/_lodash@4.17.15@lodash/uniqueId.js"),values:n("./node_modules/_lodash@4.17.15@lodash/values.js"),zipObject:n("./node_modules/_lodash@4.17.15@lodash/zipObject.js")}}catch(t){}r||(r=window._),t.exports=r},"./node_modules/_dagre@0.8.5@dagre/lib/nesting-graph.js":function(t,e,n){var r=n("./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),o=n("./node_modules/_dagre@0.8.5@dagre/lib/util.js");t.exports={run:function(t){var e=o.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};return r.forEach(t.children(),function(n){!function n(o,i){var a=t.children(o);a&&a.length&&r.forEach(a,function(t){n(t,i+1)}),e[o]=i}(n,1)}),e}(t),i=r.max(r.values(n))-1,a=2*i+1;t.graph().nestingRoot=e,r.forEach(t.edges(),function(e){t.edge(e).minlen*=a});var s=function(t){return r.reduce(t.edges(),function(e,n){return e+t.edge(n).weight},0)}(t)+1;r.forEach(t.children(),function(u){!function t(e,n,i,a,s,u,l){var c=e.children(l);if(!c.length)return void(l!==n&&e.setEdge(n,l,{weight:0,minlen:i}));var d=o.addBorderNode(e,"_bt");var f=o.addBorderNode(e,"_bb");var h=e.node(l);e.setParent(d,l);h.borderTop=d;e.setParent(f,l);h.borderBottom=f;r.forEach(c,function(r){t(e,n,i,a,s,u,r);var o=e.node(r),c=o.borderTop?o.borderTop:r,h=o.borderBottom?o.borderBottom:r,_=o.borderTop?a:2*a,p=c!==h?1:s-u[l]+1;e.setEdge(d,c,{weight:_,minlen:p,nestingEdge:!0}),e.setEdge(h,f,{weight:_,minlen:p,nestingEdge:!0})});e.parent(l)||e.setEdge(n,d,{weight:0,minlen:s+u[l]})}(t,e,a,s,i,n,u)}),t.graph().nodeRankFactor=a},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),function(e){var n=t.edge(e);n.nestingEdge&&t.removeEdge(e)})}}},"./node_modules/_dagre@0.8.5@dagre/lib/normalize.js":function(t,e,n){"use strict";var r=n("./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),o=n("./node_modules/_dagre@0.8.5@dagre/lib/util.js");t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),function(e){!function(t,e){var n,r,i,a=e.v,s=t.node(a).rank,u=e.w,l=t.node(u).rank,c=e.name,d=t.edge(e),f=d.labelRank;if(l===s+1)return;for(t.removeEdge(e),i=0,++s;s0;)e%2&&(n+=u[e+1]),u[e=e-1>>1]+=t.weight;l+=t.weight*n})),l}t.exports=function(t,e){for(var n=0,r=1;r=2),s=c.buildLayerMatrix(t);var v=i(t,s);v=t.barycenter)&&(o=e,i=0,a=0,(n=t).weight&&(i+=n.barycenter*n.weight,a+=n.weight),o.weight&&(i+=o.barycenter*o.weight,a+=o.weight),n.vs=o.vs.concat(n.vs),n.barycenter=i/a,n.weight=a,n.i=Math.min(o.i,n.i),o.merged=!0)}}function o(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var i=t.pop();e.push(i),r.forEach(i.in.reverse(),n(i)),r.forEach(i.out,o(i))}return r.map(r.filter(e,function(t){return!t.merged}),function(t){return r.pick(t,["vs","i","barycenter","weight"])})}(r.filter(n,function(t){return!t.indegree}))}},"./node_modules/_dagre@0.8.5@dagre/lib/order/sort-subgraph.js":function(t,e,n){var r=n("./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),o=n("./node_modules/_dagre@0.8.5@dagre/lib/order/barycenter.js"),i=n("./node_modules/_dagre@0.8.5@dagre/lib/order/resolve-conflicts.js"),a=n("./node_modules/_dagre@0.8.5@dagre/lib/order/sort.js");t.exports=function t(e,n,s,u){var l=e.children(n);var c=e.node(n);var d=c?c.borderLeft:void 0;var f=c?c.borderRight:void 0;var h={};d&&(l=r.filter(l,function(t){return t!==d&&t!==f}));var _=o(e,l);r.forEach(_,function(n){if(e.children(n.v).length){var o=t(e,n.v,s,u);h[n.v]=o,r.has(o,"barycenter")&&(i=n,a=o,r.isUndefined(i.barycenter)?(i.barycenter=a.barycenter,i.weight=a.weight):(i.barycenter=(i.barycenter*i.weight+a.barycenter*a.weight)/(i.weight+a.weight),i.weight+=a.weight))}var i,a});var p=i(_,s);!function(t,e){r.forEach(t,function(t){t.vs=r.flatten(t.vs.map(function(t){return e[t]?e[t].vs:t}),!0)})}(p,h);var v=a(p,u);if(d&&(v.vs=r.flatten([d,v.vs,f],!0),e.predecessors(d).length)){var g=e.node(e.predecessors(d)[0]),m=e.node(e.predecessors(f)[0]);r.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+g.order+m.order)/(v.weight+2),v.weight+=2}return v}},"./node_modules/_dagre@0.8.5@dagre/lib/order/sort.js":function(t,e,n){var r=n("./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),o=n("./node_modules/_dagre@0.8.5@dagre/lib/util.js");function i(t,e,n){for(var o;e.length&&(o=r.last(e)).i<=n;)e.pop(),t.push(o.vs),n++;return n}t.exports=function(t,e){var n=o.partition(t,function(t){return r.has(t,"barycenter")}),a=n.lhs,s=r.sortBy(n.rhs,function(t){return-t.i}),u=[],l=0,c=0,d=0;a.sort((f=!!e,function(t,e){return t.barycentere.barycenter?1:f?e.i-t.i:t.i-e.i})),d=i(u,s,d),r.forEach(a,function(t){d+=t.vs.length,u.push(t.vs),l+=t.barycenter*t.weight,c+=t.weight,d=i(u,s,d)});var f;var h={vs:r.flatten(u,!0)};c&&(h.barycenter=l/c,h.weight=c);return h}},"./node_modules/_dagre@0.8.5@dagre/lib/parent-dummy-chains.js":function(t,e,n){var r=n("./node_modules/_dagre@0.8.5@dagre/lib/lodash.js");t.exports=function(t){var e=function(t){var e={},n=0;return r.forEach(t.children(),function o(i){var a=n;r.forEach(t.children(i),o),e[i]={low:a,lim:n++}}),e}(t);r.forEach(t.graph().dummyChains,function(n){for(var r=t.node(n),o=r.edgeObj,i=function(t,e,n,r){var o,i,a=[],s=[],u=Math.min(e[n].low,e[r].low),l=Math.max(e[n].lim,e[r].lim);o=n;do{o=t.parent(o),a.push(o)}while(o&&(e[o].low>u||l>e[o].lim));i=o,o=r;for(;(o=t.parent(o))!==i;)s.push(o);return{path:a.concat(s.reverse()),lca:i}}(t,e,o.v,o.w),a=i.path,s=i.lca,u=0,l=a[u],c=!0;n!==o.w;){if(r=t.node(n),c){for(;(l=a[u])!==s&&t.node(l).maxRanks)&&u(n,e,l)})})}return r.reduce(e,function(e,n){var i,a=-1,s=0;return r.forEach(n,function(r,u){if("border"===t.node(r).dummy){var l=t.predecessors(r);l.length&&(i=t.node(l[0]).order,o(n,s,u,a,i),s=u,a=i)}o(n,s,n.length,i,e.length)}),n}),n}function u(t,e,n){if(e>n){var r=e;e=n,n=r}var o=t[e];o||(t[e]=o={}),o[n]=!0}function l(t,e,n){if(e>n){var o=e;e=n,n=o}return r.has(t[e],n)}function c(t,e,n,o){var i={},a={},s={};return r.forEach(e,function(t){r.forEach(t,function(t,e){i[t]=t,a[t]=t,s[t]=e})}),r.forEach(e,function(t){var e=-1;r.forEach(t,function(t){var u=o(t);if(u.length)for(var c=((u=r.sortBy(u,function(t){return s[t]})).length-1)/2,d=Math.floor(c),f=Math.ceil(c);d<=f;++d){var h=u[d];a[t]===t&&eu.lim&&(l=u,c=!0);var d=r.filter(e.edges(),function(e){return c===g(t,t.node(e.v),l)&&c!==g(t,t.node(e.w),l)});return r.minBy(d,function(t){return i(e,t)})}function v(t,e,n,o){var i=n.v,a=n.w;t.removeEdge(i,a),t.setEdge(o.v,o.w,{}),h(t),d(t,e),function(t,e){var n=r.find(t.nodes(),function(t){return!e.node(t).parent}),o=s(t,n);o=o.slice(1),r.forEach(o,function(n){var r=t.node(n).parent,o=e.edge(n,r),i=!1;o||(o=e.edge(r,n),i=!0),e.node(n).rank=e.node(r).rank+(i?o.minlen:-o.minlen)})}(t,e)}function g(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=c,c.initLowLimValues=h,c.initCutValues=d,c.calcCutValue=f,c.leaveEdge=_,c.enterEdge=p,c.exchangeEdges=v},"./node_modules/_dagre@0.8.5@dagre/lib/rank/util.js":function(t,e,n){"use strict";var r=n("./node_modules/_dagre@0.8.5@dagre/lib/lodash.js");t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),function n(o){var i=t.node(o);if(r.has(e,o))return i.rank;e[o]=!0;var a=r.min(r.map(t.outEdges(o),function(e){return n(e.w)-t.edge(e).minlen}));a!==Number.POSITIVE_INFINITY&&null!=a||(a=0);return i.rank=a})},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},"./node_modules/_dagre@0.8.5@dagre/lib/util.js":function(t,e,n){"use strict";var r=n("./node_modules/_dagre@0.8.5@dagre/lib/lodash.js"),o=n("./node_modules/_dagre@0.8.5@dagre/lib/graphlib.js").Graph;function i(t,e,n,o){var i;do{i=r.uniqueId(o)}while(t.hasNode(i));return n.dummy=e,t.setNode(i,n),i}function a(t){return r.max(r.map(t.nodes(),function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n}))}t.exports={addDummyNode:i,simplify:function(t){var e=(new o).setGraph(t.graph());return r.forEach(t.nodes(),function(n){e.setNode(n,t.node(n))}),r.forEach(t.edges(),function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},o=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+o.weight,minlen:Math.max(r.minlen,o.minlen)})}),e},asNonCompoundGraph:function(t){var e=new o({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),function(n){t.children(n).length||e.setNode(n,t.node(n))}),r.forEach(t.edges(),function(n){e.setEdge(n,t.edge(n))}),e},successorWeights:function(t){var e=r.map(t.nodes(),function(e){var n={};return r.forEach(t.outEdges(e),function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight}),n});return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),function(e){var n={};return r.forEach(t.inEdges(e),function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight}),n});return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,o=t.x,i=t.y,a=e.x-o,s=e.y-i,u=t.width/2,l=t.height/2;if(!a&&!s)throw new Error("Not possible to find intersection inside of the rectangle");Math.abs(s)*u>Math.abs(a)*l?(s<0&&(l=-l),n=l*a/s,r=l):(a<0&&(u=-u),n=u,r=u*s/a);return{x:o+n,y:i+r}},buildLayerMatrix:function(t){var e=r.map(r.range(a(t)+1),function(){return[]});return r.forEach(t.nodes(),function(n){var o=t.node(n),i=o.rank;r.isUndefined(i)||(e[i][o.order]=n)}),e},normalizeRanks:function(t){var e=r.min(r.map(t.nodes(),function(e){return t.node(e).rank}));r.forEach(t.nodes(),function(n){var o=t.node(n);r.has(o,"rank")&&(o.rank-=e)})},removeEmptyRanks:function(t){var e=r.min(r.map(t.nodes(),function(e){return t.node(e).rank})),n=[];r.forEach(t.nodes(),function(r){var o=t.node(r).rank-e;n[o]||(n[o]=[]),n[o].push(r)});var o=0,i=t.graph().nodeRankFactor;r.forEach(n,function(e,n){r.isUndefined(e)&&n%i!=0?--o:o&&r.forEach(e,function(e){t.node(e).rank+=o})})},addBorderNode:function(t,e,n,r){var o={width:0,height:0};arguments.length>=4&&(o.rank=n,o.order=r);return i(t,"border",o,e)},maxRank:a,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,function(t){e(t)?n.lhs.push(t):n.rhs.push(t)}),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},"./node_modules/_dagre@0.8.5@dagre/lib/version.js":function(t,e){t.exports="0.8.5"},"./node_modules/_graphlib@2.1.8@graphlib/index.js":function(t,e,n){var r=n("./node_modules/_graphlib@2.1.8@graphlib/lib/index.js");t.exports={Graph:r.Graph,json:n("./node_modules/_graphlib@2.1.8@graphlib/lib/json.js"),alg:n("./node_modules/_graphlib@2.1.8@graphlib/lib/alg/index.js"),version:r.version}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/components.js":function(t,e,n){var r=n("./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");t.exports=function(t){var e,n={},o=[];function i(o){r.has(n,o)||(n[o]=!0,e.push(o),r.each(t.successors(o),i),r.each(t.predecessors(o),i))}return r.each(t.nodes(),function(t){e=[],i(t),e.length&&o.push(e)}),o}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dfs.js":function(t,e,n){var r=n("./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var o=(t.isDirected()?t.successors:t.neighbors).bind(t),i=[],a={};return r.each(e,function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);!function t(e,n,o,i,a,s){r.has(i,n)||(i[n]=!0,o||s.push(n),r.each(a(n),function(n){t(e,n,o,i,a,s)}),o&&s.push(n))}(t,e,"post"===n,a,o,i)}),i}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra-all.js":function(t,e,n){var r=n("./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra.js"),o=n("./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");t.exports=function(t,e,n){return o.transform(t.nodes(),function(o,i){o[i]=r(t,i,e,n)},{})}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/dijkstra.js":function(t,e,n){var r=n("./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js"),o=n("./node_modules/_graphlib@2.1.8@graphlib/lib/data/priority-queue.js");t.exports=function(t,e,n,r){return function(t,e,n,r){var i,a,s={},u=new o,l=function(t){var e=t.v!==i?t.v:t.w,r=s[e],o=n(t),l=a.distance+o;if(o<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+o);l0&&(i=u.removeMin(),(a=s[i]).distance!==Number.POSITIVE_INFINITY);)r(i).forEach(l);return s}(t,String(e),n||i,r||function(e){return t.outEdges(e)})};var i=r.constant(1)},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/find-cycles.js":function(t,e,n){var r=n("./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js"),o=n("./node_modules/_graphlib@2.1.8@graphlib/lib/alg/tarjan.js");t.exports=function(t){return r.filter(o(t),function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])})}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/floyd-warshall.js":function(t,e,n){var r=n("./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");t.exports=function(t,e,n){return function(t,e,n){var r={},o=t.nodes();return o.forEach(function(t){r[t]={},r[t][t]={distance:0},o.forEach(function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})}),n(t).forEach(function(n){var o=n.v===t?n.w:n.v,i=e(n);r[t][o]={distance:i,predecessor:t}})}),o.forEach(function(t){var e=r[t];o.forEach(function(n){var i=r[n];o.forEach(function(n){var r=i[t],o=e[n],a=i[n],s=r.distance+o.distance;s0;){if(n=u.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(c)throw new Error("Input graph is not connected: "+t);c=!0}t.nodeEdges(n).forEach(l)}return a}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/tarjan.js":function(t,e,n){var r=n("./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");t.exports=function(t){var e=0,n=[],o={},i=[];return t.nodes().forEach(function(a){r.has(o,a)||function a(s){var u=o[s]={onStack:!0,lowlink:e,index:e++};if(n.push(s),t.successors(s).forEach(function(t){r.has(o,t)?o[t].onStack&&(u.lowlink=Math.min(u.lowlink,o[t].index)):(a(t),u.lowlink=Math.min(u.lowlink,o[t].lowlink))}),u.lowlink===u.index){var l,c=[];do{l=n.pop(),o[l].onStack=!1,c.push(l)}while(s!==l);i.push(c)}}(a)}),i}},"./node_modules/_graphlib@2.1.8@graphlib/lib/alg/topsort.js":function(t,e,n){var r=n("./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");function o(t){var e={},n={},o=[];if(r.each(t.sinks(),function a(s){if(r.has(n,s))throw new i;r.has(e,s)||(n[s]=!0,e[s]=!0,r.each(t.predecessors(s),a),delete n[s],o.push(s))}),r.size(e)!==t.nodeCount())throw new i;return o}function i(){}t.exports=o,o.CycleException=i,i.prototype=new Error},"./node_modules/_graphlib@2.1.8@graphlib/lib/data/priority-queue.js":function(t,e,n){var r=n("./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js");function o(){this._arr=[],this._keyIndices={}}t.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map(function(t){return t.key})},o.prototype.has=function(t){return r.has(this._keyIndices,t)},o.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},o.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var o=this._arr,i=o.length;return n[t]=i,o.push({key:t,priority:e}),this._decrease(i),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},o.prototype.decrease=function(t,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},o.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,o=t;n>1].priorityu){var l=s;s=u,u=l}return s+a+u+a+(r.isUndefined(i)?o:i)}function d(t,e){return c(t,e.v,e.w,e.name)}s.prototype._nodeCount=0,s.prototype._edgeCount=0,s.prototype.isDirected=function(){return this._isDirected},s.prototype.isMultigraph=function(){return this._isMultigraph},s.prototype.isCompound=function(){return this._isCompound},s.prototype.setGraph=function(t){return this._label=t,this},s.prototype.graph=function(){return this._label},s.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},s.prototype.nodeCount=function(){return this._nodeCount},s.prototype.nodes=function(){return r.keys(this._nodes)},s.prototype.sources=function(){var t=this;return r.filter(this.nodes(),function(e){return r.isEmpty(t._in[e])})},s.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),function(e){return r.isEmpty(t._out[e])})},s.prototype.setNodes=function(t,e){var n=arguments,o=this;return r.each(t,function(t){n.length>1?o.setNode(t,e):o.setNode(t)}),this},s.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=i,this._children[t]={},this._children[i][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},s.prototype.node=function(t){return this._nodes[t]},s.prototype.hasNode=function(t){return r.has(this._nodes,t)},s.prototype.removeNode=function(t){var e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),function(t){e.setParent(t)}),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},s.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e=i;else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},s.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},s.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==i)return e}},s.prototype.children=function(t){if(r.isUndefined(t)&&(t=i),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if(t===i)return this.nodes();if(this.hasNode(t))return[]}},s.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},s.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},s.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,this.successors(t))},s.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},s.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,function(n,r){t(r)&&e.setNode(r,n)}),r.each(this._edgeObjs,function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))});var o={};return this._isCompound&&r.each(e.nodes(),function(t){e.setParent(t,function t(r){var i=n.parent(r);return void 0===i||e.hasNode(i)?(o[r]=i,i):i in o?o[i]:t(i)}(t))}),e},s.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},s.prototype.edgeCount=function(){return this._edgeCount},s.prototype.edges=function(){return r.values(this._edgeObjs)},s.prototype.setPath=function(t,e){var n=this,o=arguments;return r.reduce(t,function(t,r){return o.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r}),this},s.prototype.setEdge=function(){var t,e,n,o,i=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(t=a.v,e=a.w,n=a.name,2===arguments.length&&(o=arguments[1],i=!0)):(t=a,e=arguments[1],n=arguments[3],arguments.length>2&&(o=arguments[2],i=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var s=c(this._isDirected,t,e,n);if(r.has(this._edgeLabels,s))return i&&(this._edgeLabels[s]=o),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[s]=i?o:this._defaultEdgeLabelFn(t,e,n);var l=function(t,e,n,r){var o=""+e,i=""+n;if(!t&&o>i){var a=o;o=i,i=a}var s={v:o,w:i};r&&(s.name=r);return s}(this._isDirected,t,e,n);return t=l.v,e=l.w,Object.freeze(l),this._edgeObjs[s]=l,u(this._preds[e],t),u(this._sucs[t],e),this._in[e][s]=l,this._out[t][s]=l,this._edgeCount++,this},s.prototype.edge=function(t,e,n){var r=1===arguments.length?d(this._isDirected,arguments[0]):c(this._isDirected,t,e,n);return this._edgeLabels[r]},s.prototype.hasEdge=function(t,e,n){var o=1===arguments.length?d(this._isDirected,arguments[0]):c(this._isDirected,t,e,n);return r.has(this._edgeLabels,o)},s.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?d(this._isDirected,arguments[0]):c(this._isDirected,t,e,n),o=this._edgeObjs[r];return o&&(t=o.v,e=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],l(this._preds[e],t),l(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},s.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var o=r.values(n);return e?r.filter(o,function(t){return t.v===e}):o}},s.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var o=r.values(n);return e?r.filter(o,function(t){return t.w===e}):o}},s.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},"./node_modules/_graphlib@2.1.8@graphlib/lib/index.js":function(t,e,n){t.exports={Graph:n("./node_modules/_graphlib@2.1.8@graphlib/lib/graph.js"),version:n("./node_modules/_graphlib@2.1.8@graphlib/lib/version.js")}},"./node_modules/_graphlib@2.1.8@graphlib/lib/json.js":function(t,e,n){var r=n("./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js"),o=n("./node_modules/_graphlib@2.1.8@graphlib/lib/graph.js");function i(t){return r.map(t.nodes(),function(e){var n=t.node(e),o=t.parent(e),i={v:e};return r.isUndefined(n)||(i.value=n),r.isUndefined(o)||(i.parent=o),i})}function a(t){return r.map(t.edges(),function(e){var n=t.edge(e),o={v:e.v,w:e.w};return r.isUndefined(e.name)||(o.name=e.name),r.isUndefined(n)||(o.value=n),o})}t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:i(t),edges:a(t)};r.isUndefined(t.graph())||(e.value=r.clone(t.graph()));return e},read:function(t){var e=new o(t.options).setGraph(t.value);return r.each(t.nodes,function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)}),r.each(t.edges,function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),e}}},"./node_modules/_graphlib@2.1.8@graphlib/lib/lodash.js":function(t,e,n){var r;try{r={clone:n("./node_modules/_lodash@4.17.15@lodash/clone.js"),constant:n("./node_modules/_lodash@4.17.15@lodash/constant.js"),each:n("./node_modules/_lodash@4.17.15@lodash/each.js"),filter:n("./node_modules/_lodash@4.17.15@lodash/filter.js"),has:n("./node_modules/_lodash@4.17.15@lodash/has.js"),isArray:n("./node_modules/_lodash@4.17.15@lodash/isArray.js"),isEmpty:n("./node_modules/_lodash@4.17.15@lodash/isEmpty.js"),isFunction:n("./node_modules/_lodash@4.17.15@lodash/isFunction.js"),isUndefined:n("./node_modules/_lodash@4.17.15@lodash/isUndefined.js"),keys:n("./node_modules/_lodash@4.17.15@lodash/keys.js"),map:n("./node_modules/_lodash@4.17.15@lodash/map.js"),reduce:n("./node_modules/_lodash@4.17.15@lodash/reduce.js"),size:n("./node_modules/_lodash@4.17.15@lodash/size.js"),transform:n("./node_modules/_lodash@4.17.15@lodash/transform.js"),union:n("./node_modules/_lodash@4.17.15@lodash/union.js"),values:n("./node_modules/_lodash@4.17.15@lodash/values.js")}}catch(t){}r||(r=window._),t.exports=r},"./node_modules/_graphlib@2.1.8@graphlib/lib/version.js":function(t,e){t.exports="2.1.8"},"./node_modules/_isarray@0.0.1@isarray/index.js":function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},"./node_modules/_lodash@4.17.15@lodash/_DataView.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_getNative.js")(n("./node_modules/_lodash@4.17.15@lodash/_root.js"),"DataView");t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_Hash.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_hashClear.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_hashDelete.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_hashGet.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_hashHas.js"),s=n("./node_modules/_lodash@4.17.15@lodash/_hashSet.js");function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1}},"./node_modules/_lodash@4.17.15@lodash/_arrayIncludesWith.js":function(t,e){t.exports=function(t,e,n){for(var r=-1,o=null==t?0:t.length;++r0&&i(c)?n>1?t(c,n-1,i,a,s):r(s,c):a||(s[s.length]=c)}return s}},"./node_modules/_lodash@4.17.15@lodash/_baseFor.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_createBaseFor.js")();t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_baseForOwn.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseFor.js"),o=n("./node_modules/_lodash@4.17.15@lodash/keys.js");t.exports=function(t,e){return t&&r(t,e,o)}},"./node_modules/_lodash@4.17.15@lodash/_baseGet.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_castPath.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_toKey.js");t.exports=function(t,e){for(var n=0,i=(e=r(e,t)).length;null!=t&&ne}},"./node_modules/_lodash@4.17.15@lodash/_baseHas.js":function(t,e){var n=Object.prototype.hasOwnProperty;t.exports=function(t,e){return null!=t&&n.call(t,e)}},"./node_modules/_lodash@4.17.15@lodash/_baseHasIn.js":function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},"./node_modules/_lodash@4.17.15@lodash/_baseIndexOf.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseFindIndex.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseIsNaN.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_strictIndexOf.js");t.exports=function(t,e,n){return e==e?i(t,e,n):r(t,o,n)}},"./node_modules/_lodash@4.17.15@lodash/_baseIsArguments.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseGetTag.js"),o=n("./node_modules/_lodash@4.17.15@lodash/isObjectLike.js"),i="[object Arguments]";t.exports=function(t){return o(t)&&r(t)==i}},"./node_modules/_lodash@4.17.15@lodash/_baseIsEqual.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseIsEqualDeep.js"),o=n("./node_modules/_lodash@4.17.15@lodash/isObjectLike.js");t.exports=function t(e,n,i,a,s){return e===n||(null==e||null==n||!o(e)&&!o(n)?e!=e&&n!=n:r(e,n,i,a,t,s))}},"./node_modules/_lodash@4.17.15@lodash/_baseIsEqualDeep.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_Stack.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_equalArrays.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_equalByTag.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_equalObjects.js"),s=n("./node_modules/_lodash@4.17.15@lodash/_getTag.js"),u=n("./node_modules/_lodash@4.17.15@lodash/isArray.js"),l=n("./node_modules/_lodash@4.17.15@lodash/isBuffer.js"),c=n("./node_modules/_lodash@4.17.15@lodash/isTypedArray.js"),d=1,f="[object Arguments]",h="[object Array]",_="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,v,g,m){var y=u(t),b=u(e),j=y?h:s(t),x=b?h:s(e),w=(j=j==f?_:j)==_,E=(x=x==f?_:x)==_,M=j==x;if(M&&l(t)){if(!l(e))return!1;y=!0,w=!1}if(M&&!w)return m||(m=new r),y||c(t)?o(t,e,n,v,g,m):i(t,e,j,n,v,g,m);if(!(n&d)){var S=w&&p.call(t,"__wrapped__"),T=E&&p.call(e,"__wrapped__");if(S||T){var P=S?t.value():t,k=T?e.value():e;return m||(m=new r),g(P,k,n,v,m)}}return!!M&&(m||(m=new r),a(t,e,n,v,g,m))}},"./node_modules/_lodash@4.17.15@lodash/_baseIsMap.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_getTag.js"),o=n("./node_modules/_lodash@4.17.15@lodash/isObjectLike.js"),i="[object Map]";t.exports=function(t){return o(t)&&r(t)==i}},"./node_modules/_lodash@4.17.15@lodash/_baseIsMatch.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_Stack.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseIsEqual.js"),i=1,a=2;t.exports=function(t,e,n,s){var u=n.length,l=u,c=!s;if(null==t)return!l;for(t=Object(t);u--;){var d=n[u];if(c&&d[2]?d[1]!==t[d[0]]:!(d[0]in t))return!1}for(;++u=l){var v=e?null:s(t);if(v)return u(v);h=!1,d=a,p=new r}else p=e?[]:_;t:for(;++ce||a&&s&&l&&!u&&!c||o&&s&&l||!n&&l||!i)return 1;if(!o&&!a&&!c&&t=u?l:l*("desc"==n[o]?-1:1)}return t.index-e.index}},"./node_modules/_lodash@4.17.15@lodash/_copyArray.js":function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),e=Object(e);++r-1?s[u?e[l]:l]:void 0}}},"./node_modules/_lodash@4.17.15@lodash/_createRange.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseRange.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_isIterateeCall.js"),i=n("./node_modules/_lodash@4.17.15@lodash/toFinite.js");t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&o(e,n,a)&&(n=a=void 0),e=i(e),void 0===n?(n=e,e=0):n=i(n),a=void 0===a?ef))return!1;var _=c.get(t);if(_&&c.get(e))return _==e;var p=-1,v=!0,g=n&s?new r:void 0;for(c.set(t,e),c.set(e,t);++p-1&&t%1==0&&t-1}},"./node_modules/_lodash@4.17.15@lodash/_listCacheSet.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_assocIndexOf.js");t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},"./node_modules/_lodash@4.17.15@lodash/_mapCacheClear.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_Hash.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_ListCache.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_Map.js");t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},"./node_modules/_lodash@4.17.15@lodash/_mapCacheDelete.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_getMapData.js");t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},"./node_modules/_lodash@4.17.15@lodash/_mapCacheGet.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_getMapData.js");t.exports=function(t){return r(this,t).get(t)}},"./node_modules/_lodash@4.17.15@lodash/_mapCacheHas.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_getMapData.js");t.exports=function(t){return r(this,t).has(t)}},"./node_modules/_lodash@4.17.15@lodash/_mapCacheSet.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_getMapData.js");t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},"./node_modules/_lodash@4.17.15@lodash/_mapToArray.js":function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},"./node_modules/_lodash@4.17.15@lodash/_matchesStrictComparable.js":function(t,e){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},"./node_modules/_lodash@4.17.15@lodash/_memoizeCapped.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/memoize.js"),o=500;t.exports=function(t){var e=r(t,function(t){return n.size===o&&n.clear(),t}),n=e.cache;return e}},"./node_modules/_lodash@4.17.15@lodash/_nativeCreate.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_getNative.js")(Object,"create");t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_nativeKeys.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_overArg.js")(Object.keys,Object);t.exports=r},"./node_modules/_lodash@4.17.15@lodash/_nativeKeysIn.js":function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},"./node_modules/_lodash@4.17.15@lodash/_nodeUtil.js":function(t,e,n){(function(t){var r=n("./node_modules/_lodash@4.17.15@lodash/_freeGlobal.js"),o=e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o&&r.process,s=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s}).call(this,n("./node_modules/_webpack@4.42.1@webpack/buildin/module.js")(t))},"./node_modules/_lodash@4.17.15@lodash/_objectToString.js":function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},"./node_modules/_lodash@4.17.15@lodash/_overArg.js":function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},"./node_modules/_lodash@4.17.15@lodash/_overRest.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_apply.js"),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,s=o(i.length-e,0),u=Array(s);++a0){if(++e>=n)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},"./node_modules/_lodash@4.17.15@lodash/_stackClear.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_ListCache.js");t.exports=function(){this.__data__=new r,this.size=0}},"./node_modules/_lodash@4.17.15@lodash/_stackDelete.js":function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},"./node_modules/_lodash@4.17.15@lodash/_stackGet.js":function(t,e){t.exports=function(t){return this.__data__.get(t)}},"./node_modules/_lodash@4.17.15@lodash/_stackHas.js":function(t,e){t.exports=function(t){return this.__data__.has(t)}},"./node_modules/_lodash@4.17.15@lodash/_stackSet.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_ListCache.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_Map.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_MapCache.js"),a=200;t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length2?e[2]:void 0;for(l&&i(e[0],e[1],l)&&(r=1);++n-1&&t%1==0&&t<=n}},"./node_modules/_lodash@4.17.15@lodash/isMap.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseIsMap.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseUnary.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_nodeUtil.js"),a=i&&i.isMap,s=a?o(a):r;t.exports=s},"./node_modules/_lodash@4.17.15@lodash/isObject.js":function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},"./node_modules/_lodash@4.17.15@lodash/isObjectLike.js":function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},"./node_modules/_lodash@4.17.15@lodash/isPlainObject.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseGetTag.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_getPrototype.js"),i=n("./node_modules/_lodash@4.17.15@lodash/isObjectLike.js"),a="[object Object]",s=Function.prototype,u=Object.prototype,l=s.toString,c=u.hasOwnProperty,d=l.call(Object);t.exports=function(t){if(!i(t)||r(t)!=a)return!1;var e=o(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==d}},"./node_modules/_lodash@4.17.15@lodash/isSet.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseIsSet.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseUnary.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_nodeUtil.js"),a=i&&i.isSet,s=a?o(a):r;t.exports=s},"./node_modules/_lodash@4.17.15@lodash/isString.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseGetTag.js"),o=n("./node_modules/_lodash@4.17.15@lodash/isArray.js"),i=n("./node_modules/_lodash@4.17.15@lodash/isObjectLike.js"),a="[object String]";t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&r(t)==a}},"./node_modules/_lodash@4.17.15@lodash/isSymbol.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseGetTag.js"),o=n("./node_modules/_lodash@4.17.15@lodash/isObjectLike.js"),i="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||o(t)&&r(t)==i}},"./node_modules/_lodash@4.17.15@lodash/isTypedArray.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseIsTypedArray.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseUnary.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_nodeUtil.js"),a=i&&i.isTypedArray,s=a?o(a):r;t.exports=s},"./node_modules/_lodash@4.17.15@lodash/isUndefined.js":function(t,e){t.exports=function(t){return void 0===t}},"./node_modules/_lodash@4.17.15@lodash/keys.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_arrayLikeKeys.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseKeys.js"),i=n("./node_modules/_lodash@4.17.15@lodash/isArrayLike.js");t.exports=function(t){return i(t)?r(t):o(t)}},"./node_modules/_lodash@4.17.15@lodash/keysIn.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_arrayLikeKeys.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseKeysIn.js"),i=n("./node_modules/_lodash@4.17.15@lodash/isArrayLike.js");t.exports=function(t){return i(t)?r(t,!0):o(t)}},"./node_modules/_lodash@4.17.15@lodash/last.js":function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},"./node_modules/_lodash@4.17.15@lodash/map.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_arrayMap.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseIteratee.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseMap.js"),a=n("./node_modules/_lodash@4.17.15@lodash/isArray.js");t.exports=function(t,e){return(a(t)?r:i)(t,o(e,3))}},"./node_modules/_lodash@4.17.15@lodash/mapValues.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseAssignValue.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseForOwn.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseIteratee.js");t.exports=function(t,e){var n={};return e=i(e,3),o(t,function(t,o,i){r(n,o,e(t,o,i))}),n}},"./node_modules/_lodash@4.17.15@lodash/max.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseExtremum.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseGt.js"),i=n("./node_modules/_lodash@4.17.15@lodash/identity.js");t.exports=function(t){return t&&t.length?r(t,i,o):void 0}},"./node_modules/_lodash@4.17.15@lodash/memoize.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_MapCache.js"),o="Expected a function";function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(o);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},"./node_modules/_lodash@4.17.15@lodash/merge.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseMerge.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_createAssigner.js")(function(t,e,n){r(t,e,n)});t.exports=o},"./node_modules/_lodash@4.17.15@lodash/min.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseExtremum.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseLt.js"),i=n("./node_modules/_lodash@4.17.15@lodash/identity.js");t.exports=function(t){return t&&t.length?r(t,i,o):void 0}},"./node_modules/_lodash@4.17.15@lodash/minBy.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseExtremum.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseIteratee.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseLt.js");t.exports=function(t,e){return t&&t.length?r(t,o(e,2),i):void 0}},"./node_modules/_lodash@4.17.15@lodash/noop.js":function(t,e){t.exports=function(){}},"./node_modules/_lodash@4.17.15@lodash/now.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_root.js");t.exports=function(){return r.Date.now()}},"./node_modules/_lodash@4.17.15@lodash/pick.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_basePick.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_flatRest.js")(function(t,e){return null==t?{}:r(t,e)});t.exports=o},"./node_modules/_lodash@4.17.15@lodash/property.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseProperty.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_basePropertyDeep.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_isKey.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_toKey.js");t.exports=function(t){return i(t)?r(a(t)):o(t)}},"./node_modules/_lodash@4.17.15@lodash/range.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_createRange.js")();t.exports=r},"./node_modules/_lodash@4.17.15@lodash/reduce.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_arrayReduce.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseEach.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseIteratee.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_baseReduce.js"),s=n("./node_modules/_lodash@4.17.15@lodash/isArray.js");t.exports=function(t,e,n){var u=s(t)?r:a,l=arguments.length<3;return u(t,i(e,4),n,l,o)}},"./node_modules/_lodash@4.17.15@lodash/size.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseKeys.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_getTag.js"),i=n("./node_modules/_lodash@4.17.15@lodash/isArrayLike.js"),a=n("./node_modules/_lodash@4.17.15@lodash/isString.js"),s=n("./node_modules/_lodash@4.17.15@lodash/_stringSize.js"),u="[object Map]",l="[object Set]";t.exports=function(t){if(null==t)return 0;if(i(t))return a(t)?s(t):t.length;var e=o(t);return e==u||e==l?t.size:r(t).length}},"./node_modules/_lodash@4.17.15@lodash/sortBy.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseFlatten.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseOrderBy.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseRest.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_isIterateeCall.js"),s=i(function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),o(t,r(e,1),[])});t.exports=s},"./node_modules/_lodash@4.17.15@lodash/stubArray.js":function(t,e){t.exports=function(){return[]}},"./node_modules/_lodash@4.17.15@lodash/stubFalse.js":function(t,e){t.exports=function(){return!1}},"./node_modules/_lodash@4.17.15@lodash/toFinite.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/toNumber.js"),o=1/0,i=1.7976931348623157e308;t.exports=function(t){return t?(t=r(t))===o||t===-o?(t<0?-1:1)*i:t==t?t:0:0===t?t:0}},"./node_modules/_lodash@4.17.15@lodash/toInteger.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/toFinite.js");t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},"./node_modules/_lodash@4.17.15@lodash/toNumber.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/isObject.js"),o=n("./node_modules/_lodash@4.17.15@lodash/isSymbol.js"),i=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return i;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=u.test(t);return n||l.test(t)?c(t.slice(2),n?2:8):s.test(t)?i:+t}},"./node_modules/_lodash@4.17.15@lodash/toPlainObject.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_copyObject.js"),o=n("./node_modules/_lodash@4.17.15@lodash/keysIn.js");t.exports=function(t){return r(t,o(t))}},"./node_modules/_lodash@4.17.15@lodash/toString.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseToString.js");t.exports=function(t){return null==t?"":r(t)}},"./node_modules/_lodash@4.17.15@lodash/transform.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_arrayEach.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseCreate.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseForOwn.js"),a=n("./node_modules/_lodash@4.17.15@lodash/_baseIteratee.js"),s=n("./node_modules/_lodash@4.17.15@lodash/_getPrototype.js"),u=n("./node_modules/_lodash@4.17.15@lodash/isArray.js"),l=n("./node_modules/_lodash@4.17.15@lodash/isBuffer.js"),c=n("./node_modules/_lodash@4.17.15@lodash/isFunction.js"),d=n("./node_modules/_lodash@4.17.15@lodash/isObject.js"),f=n("./node_modules/_lodash@4.17.15@lodash/isTypedArray.js");t.exports=function(t,e,n){var h=u(t),_=h||l(t)||f(t);if(e=a(e,4),null==n){var p=t&&t.constructor;n=_?h?new p:[]:d(t)&&c(p)?o(s(t)):{}}return(_?r:i)(t,function(t,r,o){return e(n,t,r,o)}),n}},"./node_modules/_lodash@4.17.15@lodash/union.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseFlatten.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseRest.js"),i=n("./node_modules/_lodash@4.17.15@lodash/_baseUniq.js"),a=n("./node_modules/_lodash@4.17.15@lodash/isArrayLikeObject.js"),s=o(function(t){return i(r(t,1,a,!0))});t.exports=s},"./node_modules/_lodash@4.17.15@lodash/uniqueId.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/toString.js"),o=0;t.exports=function(t){var e=++o;return r(t)+e}},"./node_modules/_lodash@4.17.15@lodash/values.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_baseValues.js"),o=n("./node_modules/_lodash@4.17.15@lodash/keys.js");t.exports=function(t){return null==t?[]:r(t,o(t))}},"./node_modules/_lodash@4.17.15@lodash/zipObject.js":function(t,e,n){var r=n("./node_modules/_lodash@4.17.15@lodash/_assignValue.js"),o=n("./node_modules/_lodash@4.17.15@lodash/_baseZipObject.js");t.exports=function(t,e){return o(t||[],e||[],r)}},"./node_modules/_parse-svg-path@0.1.2@parse-svg-path/index.js":function(t,e){t.exports=function(t){var e=[];return t.replace(r,function(t,r,i){var a=r.toLowerCase();for(i=function(t){var e=t.match(o);return e?e.map(Number):[]}(i),"m"==a&&i.length>2&&(e.push([r].concat(i.splice(0,2))),a="l",r="m"==r?"l":"L");;){if(i.length==n[a])return i.unshift(r),e.push(i);if(i.length=t){var h=(i-t)/(i-r[2]);return{length:i,pos:[n[0]*(1-h)+r[0]*h,n[1]*(1-h)+r[1]*h]}}r[0]=n[0],r[1]=n[1],r[2]=i}}else if("Q"===u[0]){r[0]=o[0]=n[0],r[1]=o[1]=n[1],r[2]=i;for(l=100,c=0;c<=l;c++){var _;d=g(u,_=c/l),f=m(u,_);if(i+=s(n[0],n[1],d,f),n[0]=d,n[1]=f,"number"==typeof t&&i>=t){h=(i-t)/(i-r[2]);return{length:i,pos:[n[0]*(1-h)+r[0]*h,n[1]*(1-h)+r[1]*h]}}r[0]=n[0],r[1]=n[1],r[2]=i}}else if("L"===u[0]){if(r[0]=n[0],r[1]=n[1],r[2]=i,i+=s(n[0],n[1],u[1],u[2]),n[0]=u[1],n[1]=u[2],"number"==typeof t&&i>=t){h=(i-t)/(i-r[2]);return{length:i,pos:[n[0]*(1-h)+r[0]*h,n[1]*(1-h)+r[1]*h]}}r[0]=n[0],r[1]=n[1],r[2]=i}}return{length:i,pos:n};function p(t,e){return Math.pow(1-e,3)*o[0]+3*Math.pow(1-e,2)*e*t[1]+3*(1-e)*Math.pow(e,2)*t[3]+Math.pow(e,3)*t[5]}function v(t,e){return Math.pow(1-e,3)*o[1]+3*Math.pow(1-e,2)*e*t[2]+3*(1-e)*Math.pow(e,2)*t[4]+Math.pow(e,3)*t[6]}function g(t,e){return Math.pow(1-e,2)*o[0]+2*(1-e)*e*t[1]+Math.pow(e,2)*t[3]}function m(t,e){return Math.pow(1-e,2)*o[1]+2*(1-e)*e*t[2]+Math.pow(e,2)*t[4]}}},"./node_modules/_regression@2.0.1@regression/dist/regression.js":function(t,e,n){var r,o,i;o=[t],void 0===(i="function"==typeof(r=function(t){"use strict";var e=Object.assign||function(t){for(var e=1;eMath.abs(n[i][a])&&(a=s);for(var u=i;u=i;d--)n[d][c]-=n[d][i]*n[i][c]/n[i][i]}for(var f=r-1;f>=0;f--){for(var h=0,_=f+1;_=0;b--)y+=b>1?v[b]+"x^"+b+" + ":1===b?v[b]+"x + ":v[b];return{string:y,points:m,predict:g,equation:[].concat(n(v)).reverse(),r2:i(o(t,m),e.precision)}}};t.exports=Object.keys(a).reduce(function(t,n){return e({_round:i},t,(u=function(t,o){return a[n](t,e({},r,o))},(s=n)in(o={})?Object.defineProperty(o,s,{value:u,enumerable:!0,configurable:!0,writable:!0}):o[s]=u,o));var o,s,u},{})})?r.apply(e,o):r)||(t.exports=i)},"./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js":function(t,e,n){!function(t){"use strict";function e(t){if(0===t.length)return 0;for(var e,n=t[0],r=0,o=1;o=Math.abs(t[o])?r+=n-e+t[o]:r+=t[o]-e+n,n=e;return n+r}function n(t){if(0===t.length)throw new Error("mean requires at least one data point");return e(t)/t.length}function r(t,e){var r,o,i=n(t),a=0;if(2===e)for(o=0;oe&&(e=t[n]);return e}function c(t,e){var n=t.length*e;if(0===t.length)throw new Error("quantile requires at least one data point.");if(e<0||1l&&f(t,n,r);cl;)h--}t[n]===l?f(t,n,h):f(t,++h,r),h<=e&&(n=h+1),e<=h&&(r=h-1)}}function f(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function h(t,e){var n=t.slice();if(Array.isArray(e)){!function(t,e){for(var n=[0],r=0;rt[t.length-1])return 1;var n=function(t,e){for(var n=0,r=0,o=t.length;r>>1]?o=n:r=-~n;return r}(t,e);if(t[n]!==e)return n/t.length;n++;var r=function(t,e){for(var n=0,r=0,o=t.length;r=t[n=r+o>>>1]?r=-~n:o=n;return r}(t,e);if(r===n)return n/t.length;var o=r-n+1;return o*(r+n)/2/o/t.length}function m(t){var e=h(t,.75),n=h(t,.25);if("number"==typeof e&&"number"==typeof n)return e-n}function y(t){return+h(t,.5)}function b(t){for(var e=y(t),n=[],r=0;r=r[n][s]);--h)(c=M(u,s,i,a)+r[n-1][u-1])n&&(n=t[r]),t[r]t.length)throw new Error("cannot generate more classes than there are data values");var n=s(t);if(1===w(n))return[n];var r=E(e,n.length),o=E(e,n.length);!function(t,e,n){for(var r,o=e[0].length,i=t[Math.floor(o/2)],a=[],s=[],u=0;u=Math.abs(i)&&(h+=1);else if("greater"===r)for(l=0;l<=o;l++)a[l]>=i&&(h+=1);else for(l=0;l<=o;l++)a[l]<=i&&(h+=1);return h/o},t.bisect=function(t,e,n,r,o){if("function"!=typeof t)throw new TypeError("func must be a function");for(var i=0;ia&&(a=t[0]),t[1]s&&(s=t[1])}function l(t){switch(t.type){case"GeometryCollection":t.geometries.forEach(l);break;case"Point":u(t.coordinates);break;case"MultiPoint":t.coordinates.forEach(u)}}for(e in t.arcs.forEach(function(t){for(var e,n=-1,u=t.length;++na&&(a=e[0]),e[1]s&&(s=e[1])}),t.objects)l(t.objects[e]);return[o,i,a,s]}function o(t,e){var n=e.id,r=e.bbox,o=null==e.properties?{}:e.properties,a=i(t,e);return null==n&&null==r?{type:"Feature",properties:o,geometry:a}:null==r?{type:"Feature",id:n,properties:o,geometry:a}:{type:"Feature",id:n,bbox:r,properties:o,geometry:a}}function i(t,e){var r=n(t.transform),o=t.arcs;function i(t,e){e.length&&e.pop();for(var n=o[t<0?~t:t],i=0,a=n.length;i1)r=function(t,e,n){var r,o=[],i=[];function a(t){var e=t<0?~t:t;(i[e]||(i[e]=[])).push({i:t,g:r})}function s(t){t.forEach(a)}function u(t){t.forEach(s)}return function t(e){switch(r=e,e.type){case"GeometryCollection":e.geometries.forEach(t);break;case"LineString":s(e.arcs);break;case"MultiLineString":case"Polygon":u(e.arcs);break;case"MultiPolygon":e.arcs.forEach(u)}}(e),i.forEach(null==n?function(t){o.push(t[0].i)}:function(t){n(t[0].g,t[t.length-1].g)&&o.push(t[0].i)}),o}(0,e,n);else for(o=0,r=new Array(i=t.arcs.length);o1)for(var i,s,l=1,c=u(o[0]);lc&&(s=o[0],o[0]=o[l],o[l]=s,c=i);return o}).filter(function(t){return t.length>0})}}function l(t,e){for(var n=0,r=t.length;n>>1;t[o]=2))throw new Error("n must be ≥2");var n,o=(u=t.bbox||r(t))[0],i=u[1],a=u[2],s=u[3];e={scale:[a-o?(a-o)/(n-1):1,s-i?(s-i)/(n-1):1],translate:[o,i]}}var u,l,d=c(e),f=t.objects,h={};function _(t){return d(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:_(t.coordinates)};break;case"MultiPoint":e={type:"MultiPoint",coordinates:t.coordinates.map(_)};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(l in f)h[l]=p(f[l]);return{type:"Topology",bbox:u,transform:e,objects:h,arcs:t.arcs.map(function(t){var e,n=0,r=1,o=t.length,i=new Array(o);for(i[0]=d(t[0],0);++n=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},u=function(t,e){return function(n,r){e(n,r,t)}},l=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=function(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}u((r=r.apply(t,e||[])).next())})},d=function(t,e){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},_=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},p=function(){for(var t=[],e=0;e1||s(t,e)})})}function s(t,e){try{(n=o[t](e)).value instanceof g?Promise.resolve(n.value.v).then(u,l):c(i[0][2],n)}catch(t){c(i[0][3],t)}var n}function u(t){s("next",t)}function l(t){s("throw",t)}function c(t,e){t(e),i.shift(),i.length&&s(i[0][0],i[0][1])}},y=function(t){var e,n;return e={},r("next"),r("throw",function(t){throw t}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,o){e[r]=t[r]?function(e){return(n=!n)?{value:g(t[r](e)),done:"return"===r}:o?o(e):e}:o}},b=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=h(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise(function(r,o){e=t[n](e),function(t,e,n,r){Promise.resolve(r).then(function(e){t({value:e,done:n})},e)}(r,o,e.done,e.value)})}}},j=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},x=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e},w=function(t){return t&&t.__esModule?t:{default:t}},E=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},M=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n},e("__extends",o),e("__assign",i),e("__rest",a),e("__decorate",s),e("__param",u),e("__metadata",l),e("__awaiter",c),e("__generator",d),e("__exportStar",f),e("__values",h),e("__read",_),e("__spread",p),e("__spreadArrays",v),e("__await",g),e("__asyncGenerator",m),e("__asyncDelegator",y),e("__asyncValues",b),e("__makeTemplateObject",j),e("__importStar",x),e("__importDefault",w),e("__classPrivateFieldGet",E),e("__classPrivateFieldSet",M)}.apply(e,[e]))||(t.exports=r)}()}).call(this,n("./node_modules/_webpack@4.42.1@webpack/buildin/global.js"))},"./node_modules/_webpack@4.42.1@webpack/buildin/global.js":function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},"./node_modules/_webpack@4.42.1@webpack/buildin/module.js":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}},"./node_modules/_wolfy87-eventemitter@5.2.9@wolfy87-eventemitter/EventEmitter.js":function(t,e,n){var r;!function(e){"use strict";function o(){}var i=o.prototype,a=e.EventEmitter;function s(t,e){for(var n=t.length;n--;)if(t[n].listener===e)return n;return-1}function u(t){return function(){return this[t].apply(this,arguments)}}i.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},i.flattenListeners=function(t){var e,n=[];for(e=0;eI&&(I=t.count)}),o.forIn(S,function(t){var n=t.x,r=t.y,o=t.count,i={};i[O]=o,e.sizeByCount?(i[P]=A.map(function(e){return n+t.count/I*e[0]}),i[k]=A.map(function(e){return(r+t.count/I*e[1])/M})):(i[P]=A.map(function(t){return n+t[0]}),i[k]=A.map(function(t){return(r+t[1])/M})),N.push(i)}),t.rows=N}i.DataSet.registerTransform("bin.hexagon",h),i.DataSet.registerTransform("bin.hex",h),i.DataSet.registerTransform("hexbin",h)},"./src/transform/bin/histogram.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),i=r.__importDefault(n("./src/util/partition.ts")),a=n("./src/data-set.ts"),s=n("./src/util/option-parser.ts"),u={as:["x","count"],bins:30,offset:0,groupBy:[]};function l(t,e){e=o.assign({},u,e);var n=s.getField(e);if(0!==t.rows.length){var a=t.range(n),l=a[1]-a[0],c=e.binWidth;if(!c){var d=e.bins;if(d<=0)throw new TypeError("Invalid bins: it must be a positive number!");c=l/d}var f=e.offset%c,h=[],_=e.groupBy,p=i.default(t.rows,_);o.forIn(p,function(t){var i={};t.map(function(t){return t[n]}).forEach(function(t){var e=r.__read(function(t,e,n){var r=t-n,o=Math.floor(r/e);return[o*e+n,(o+1)*e+n]}(t,c,f),2),n=e[0],o=e[1],a=n+"-"+o;i[a]=i[a]||{x0:n,x1:o,count:0},i[a].count++});var a=r.__read(e.as,2),s=a[0],u=a[1];if(!s||!u)throw new TypeError('Invalid as: it must be an array with 2 elements (e.g. [ "x", "count" ])!');var l=o.pick(t[0],_);o.forIn(i,function(t){var e=o.assign({},l);e[s]=[t.x0,t.x1],e[u]=t.count,h.push(e)})}),t.rows=h}}a.DataSet.registerTransform("bin.histogram",l),a.DataSet.registerTransform("bin.dot",l)},"./src/transform/bin/quantile.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),i=n("./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js"),a=r.__importDefault(n("./src/util/partition.ts")),s=r.__importDefault(n("./src/util/p-by-fraction.ts")),u=n("./src/data-set.ts").DataSet.registerTransform,l=n("./src/util/option-parser.ts"),c={as:"_bin",groupBy:[],fraction:4};u("bin.quantile",function(t,e){e=o.assign({},c,e);var n=l.getField(e),r=e.as;if(!o.isString(r))throw new TypeError('Invalid as: it must be a string (e.g. "_bin")!');var u=e.p,d=e.fraction;o.isArray(u)&&0!==u.length||(u=s.default(d));var f=t.rows,h=e.groupBy,_=a.default(f,h),p=[];o.forIn(_,function(t){var e=t[0],o=t.map(function(t){return t[n]}),a=u.map(function(t){return i.quantile(o,t)});e[r]=a,p.push(e)}),t.rows=p})},"./src/transform/bin/rectangle.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),i=n("./src/data-set.ts").DataSet.registerTransform,a=n("./src/util/option-parser.ts"),s={as:["x","y","count"],bins:[30,30],offset:[0,0],sizeByCount:!1};function u(t,e,n){var r=t-n,o=Math.floor(r/e);return[o*e+n,(o+1)*e+n]}function l(t,e){e=o.assign({},s,e);var n=r.__read(a.getFields(e),2),i=n[0],l=n[1];if(!i||!l)throw new TypeError("Invalid fields: must be an array with 2 strings!");var c=t.range(i),d=t.range(l),f=c[1]-c[0],h=d[1]-d[0],_=e.binWidth||[];if(2!==_.length){var p=r.__read(e.bins,2),v=p[0],g=p[1];if(v<=0||g<=0)throw new TypeError("Invalid bins: must be an array with 2 positive numbers (e.g. [ 30, 30 ])!");_=[f/v,h/g]}var m=t.rows.map(function(t){return[t[i],t[l]]}),y={},b=r.__read(e.offset,2),j=b[0],x=b[1];m.forEach(function(t){var e=r.__read(u(t[0],_[0],j),2),n=e[0],o=e[1],i=r.__read(u(t[1],_[1],x),2),a=i[0],s=i[1],l=n+"-"+o+"-"+a+"-"+s;y[l]=y[l]||{x0:n,x1:o,y0:a,y1:s,count:0},y[l].count++});var w=[],E=r.__read(e.as,3),M=E[0],S=E[1],T=E[2];if(!M||!S||!T)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "count" ])!');if(e.sizeByCount){var P=0;o.forIn(y,function(t){t.count>P&&(P=t.count)}),o.forIn(y,function(t){var e=t.x0,n=t.x1,o=t.y0,i=t.y1,a=t.count,s=a/P,u=r.__read([(e+n)/2,(o+i)/2],2),l=u[0],c=u[1],d=(n-e)*s/2,f=(i-o)*s/2,h=l-d,_=l+d,p=c-f,v=c+f,g={};g[M]=[h,_,_,h],g[S]=[p,p,v,v],g[T]=a,w.push(g)})}else o.forIn(y,function(t){var e={};e[M]=[t.x0,t.x1,t.x1,t.x0],e[S]=[t.y0,t.y0,t.y1,t.y1],e[T]=t.count,w.push(e)});t.rows=w}i("bin.rectangle",l),i("bin.rect",l)},"./src/transform/default.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n("./src/data-set.ts").DataSet.registerTransform("default",function(t){return t})},"./src/transform/diagram/arc.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=n("./src/data-set.ts"),i={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 a(t,e){e=r.assign({},i,e);var n={},o=t.nodes,a=t.edges;r.isArray(o)&&0!==o.length||(o=function(t,e,n){return void 0===n&&(n={}),t.forEach(function(t){var r=e.edgeSource(t),o=e.edgeTarget(t);n[r]||(n[r]={id:r}),n[o]||(n[o]={id:o})}),r.values(n)}(a,e,n)),o.forEach(function(t){var r=e.id(t);n[r]=t}),function(t,e,n){r.forIn(t,function(t,r){t.inEdges=e.filter(function(t){return""+n.target(t)==""+r}),t.outEdges=e.filter(function(t){return""+n.source(t)==""+r}),t.edges=t.outEdges.concat(t.inEdges),t.frequency=t.edges.length,t.value=0,t.inEdges.forEach(function(e){t.value+=n.targetWeight(e)}),t.outEdges.forEach(function(e){t.value+=n.sourceWeight(e)})})}(n,a,e),function(t,e){var n={weight:function(t,e){return e.value-t.value},frequency:function(t,e){return e.frequency-t.frequency},id:function(t,n){return(""+e.id(t)).localeCompare(""+e.id(n))}}[e.sortBy];!n&&r.isFunction(e.sortBy)&&(n=e.sortBy),n&&t.sort(n)}(o,e),function(t,e){var n=t.length;if(!n)throw new TypeError("Invalid nodes: it's empty!");if(e.weight){var r=e.marginRatio;if(r<0||r>=1)throw new TypeError("Invalid marginRatio: it must be in range [0, 1)!");var o=r/(2*n),i=e.thickness;if(i<=0||i>=1)throw new TypeError("Invalid thickness: it must be in range (0, 1)!");var a=0;t.forEach(function(t){a+=t.value}),t.forEach(function(t){t.weight=t.value/a,t.width=t.weight*(1-r),t.height=i}),t.forEach(function(n,r){for(var a=0,s=r-1;s>=0;s--)a+=t[s].width+2*o;var u=n.minX=o+a,l=n.maxX=n.minX+n.width,c=n.minY=e.y-i/2,d=n.maxY=c+i;n.x=[u,l,l,u],n.y=[c,c,d,d]})}else{var s=1/n;t.forEach(function(t,n){t.x=(n+.5)*s,t.y=e.y})}}(o,e),function(t,e,n){if(n.weight){var o={};r.forIn(t,function(t,e){o[e]=t.value}),e.forEach(function(e){var r=n.source(e),i=n.target(e),a=t[r],s=t[i];if(a&&s){var u=o[r],l=n.sourceWeight(e),c=a.minX+(a.value-u)/a.value*a.width,d=c+l/a.value*a.width;o[r]-=l;var f=o[i],h=n.targetWeight(e),_=s.minX+(s.value-f)/s.value*s.width,p=_+h/s.value*s.width;o[i]-=h;var v=n.y;e.x=[c,d,_,p],e.y=[v,v,v,v]}})}else e.forEach(function(e){var r=t[n.source(e)],o=t[n.target(e)];r&&o&&(e.x=[r.x,o.x],e.y=[r.y,o.y])})}(n,a,e),t.nodes=o,t.edges=a}o.DataSet.registerTransform("diagram.arc",a),o.DataSet.registerTransform("arc",a)},"./src/transform/diagram/dagre.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),i=r.__importDefault(n("./node_modules/_dagre@0.8.5@dagre/index.js")),a=n("./src/data-set.ts"),s={rankdir:"TB",align:"TB",nodesep:50,edgesep:10,ranksep:50,source:function(t){return t.source},target:function(t){return t.target}};function u(t,e){e=o.assign({},s,e);var n=new i.default.graphlib.Graph;n.setGraph({}),n.setDefaultEdgeLabel(function(){return{}}),t.nodes.forEach(function(t){var r=e.nodeId?e.nodeId(t):t.id;t.height||t.width||(t.height=t.width=e.edgesep),n.setNode(r,t)}),t.edges.forEach(function(t){n.setEdge(e.source(t),e.target(t))}),i.default.layout(n);var r=[],a=[];n.nodes().forEach(function(t){var e=n.node(t),o=e.x,i=e.y,a=e.height,s=e.width;e.x=[o-s/2,o+s/2,o+s/2,o-s/2],e.y=[i+a/2,i+a/2,i-a/2,i-a/2],r.push(e)}),n.edges().forEach(function(t){var e=n.edge(t).points,r={};r.x=e.map(function(t){return t.x}),r.y=e.map(function(t){return t.y}),a.push(r)}),t.nodes=r,t.edges=a}a.DataSet.registerTransform("diagram.dagre",u),a.DataSet.registerTransform("dagre",u)},"./src/transform/diagram/sankey.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=n("./node_modules/_d3-sankey@0.9.1@d3-sankey/dist/d3-sankey.js"),i=n("./src/data-set.ts"),a={sankeyLeft:o.sankeyLeft,sankeyRight:o.sankeyRight,sankeyCenter:o.sankeyCenter,sankeyJustify:o.sankeyJustify},s={value:function(t){return t.value},source:function(t){return t.source},target:function(t){return t.target},nodeAlign:"sankeyJustify",nodeWidth:.02,nodePadding:.02,sort:void 0};function u(t,e){e=r.assign({},s,e);var n=null;r.isString(e.nodeAlign)?n=a[e.nodeAlign]:r.isFunction(e.nodeAlign)&&(n=e.nodeAlign);var i=o.sankey().nodeSort(e.sort).links(function(t){return t.edges}).nodeWidth(e.nodeWidth).nodePadding(e.nodePadding).extent([[0,0],[1,1]]);r.isFunction(e.nodeId)&&i.nodeId(e.nodeId),n&&i.nodeAlign(n),i(t),t.nodes.forEach(function(t){var e=t.x0,n=t.x1,r=t.y0,o=t.y1;t.x=[e,n,n,e],t.y=[r,r,o,o]}),t.edges.forEach(function(t){var e=t.source,n=t.target,r=e.x1,o=n.x0;t.x=[r,r,o,o];var i=t.width/2;t.y=[t.y0+i,t.y0-i,t.y1+i,t.y1-i]})}i.DataSet.registerTransform("diagram.sankey",u),i.DataSet.registerTransform("sankey",u)},"./src/transform/diagram/voronoi.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js").__importStar(n("./node_modules/_d3-voronoi@1.1.4@d3-voronoi/dist/d3-voronoi.js")),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),i=n("./src/data-set.ts").DataSet.registerTransform,a=n("./src/util/option-parser.ts"),s={as:["_x","_y"]};function u(t,e){var n=(e=o.assign({},s,e)).as;if(!o.isArray(n)||2!==n.length)throw new TypeError("Invalid as: must be an array with two strings!");var i=n[0],u=n[1],l=a.getFields(e);if(!o.isArray(l)||2!==l.length)throw new TypeError("Invalid fields: must be an array with two strings!");var c=l[0],d=l[1],f=t.rows,h=f.map(function(t){return[t[c],t[d]]}),_=r.voronoi();e.extend&&_.extent(e.extend),e.size&&_.size(e.size);var p=_(h).polygons();f.forEach(function(t,e){var n=p[e].filter(function(t){return!!t});t[i]=n.map(function(t){return t[0]}),t[u]=n.map(function(t){return t[1]})})}i("diagram.voronoi",u),i("voronoi",u)},"./src/transform/fill-rows.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),i=r.__importDefault(n("./src/util/partition.ts")),a=n("./src/data-set.ts"),s={fillBy:"group",groupBy:[],orderBy:[]};function u(t,e){var n=t.map(function(t){return t});return e.forEach(function(t){var e=n.indexOf(t);e>-1&&n.splice(e,1)}),n}function l(t,e){e=o.assign({},s,e);var n=t.rows,r=e.groupBy,a=e.orderBy,l=i.default(n,r,a),c=0,d=[];o.forIn(l,function(t){t.length>c&&(c=t.length,d=t)});var f=[],h={};if(d.forEach(function(t){var e=a.map(function(e){return t[e]}).join("-");f.push(e),h[e]=t}),"order"===e.fillBy){var _=d[0],p=[],v={};n.forEach(function(t){var e=a.map(function(e){return t[e]}).join("-");-1===p.indexOf(e)&&(p.push(e),v[e]=t)}),u(p,f).forEach(function(t){var e={};r.forEach(function(t){e[t]=_[t]}),a.forEach(function(n){e[n]=v[t][n]}),n.push(e),d.push(e),f.push(t),h[t]=e}),c=d.length}o.forIn(l,function(t){if(t!==d&&t.length=c-t.length)return!0;var s=h[o],u={};return r.forEach(function(t){u[t]=e[t]}),a.forEach(function(t){u[t]=s[t]}),n.push(u),!1})}})}a.DataSet.registerTransform("fill-rows",l),a.DataSet.registerTransform("fillRows",l)},"./src/transform/filter.ts":function(t,e,n){"use strict";function r(t){return!!t}Object.defineProperty(e,"__esModule",{value:!0}),n("./src/data-set.ts").DataSet.registerTransform("filter",function(t,e){t.rows=t.rows.filter(e.callback||r)})},"./src/transform/fold.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=n("./src/data-set.ts"),i=n("./src/util/option-parser.ts"),a={fields:[],key:"key",retains:[],value:"value"};o.DataSet.registerTransform("fold",function(t,e){var n=t.getColumnNames();e=r.assign({},a,e);var o=i.getFields(e);0===o.length&&(console.warn("warning: option fields is not specified, will fold all columns."),o=n);var s=e.key,u=e.value,l=e.retains;l&&0!==l.length||(l=r.difference(n,o));var c=[];t.rows.forEach(function(t){o.forEach(function(e){var n=r.pick(t,l);n[s]=e,n[u]=t[e],c.push(n)})}),t.rows=c})},"./src/transform/geo/centroid.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=n("./src/data-set.ts").DataSet.registerTransform,i=n("./src/util/option-parser.ts"),a={as:["_centroid_x","_centroid_y"]};o("geo.centroid",function(t,e){e=r.assign({},a,e);var n=i.getField(e),o=e.geoView||e.geoDataView;if(r.isString(o)&&t.dataSet&&(o=t.dataSet.getView(o)),!o||"geo"!==o.dataType)throw new TypeError("Invalid geoView: must be a DataView of GEO dataType!");var s=e.as;if(!r.isArray(s)||2!==s.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "cX", "cY" ])!');var u=s[0],l=s[1];t.rows.forEach(function(t){var e=o.geoFeatureByName(t[n]);e&&(o._projectedAs?(t[u]=e[o._projectedAs[2]],t[l]=e[o._projectedAs[3]]):(t[u]=e.centroidX,t[l]=e.centroidY))})})},"./src/transform/geo/projection.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),i=n("./node_modules/_d3-geo@1.6.4@d3-geo/build/d3-geo.js"),a=r.__importDefault(n("./node_modules/_point-at-length@1.1.0@point-at-length/index.js")),s=n("./src/data-set.ts").DataSet.registerTransform,u=r.__importDefault(n("./src/util/get-geo-projection.ts")),l={as:["_x","_y","_centroid_x","_centroid_y"]};s("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=o.assign({},l,e)).projection;if(!n)throw new TypeError("Invalid projection!");n=u.default(n);var s=i.geoPath(n),c=e.as;if(!o.isArray(c)||4!==c.length)throw new TypeError('Invalid as: it must be an array with 4 strings (e.g. [ "x", "y", "cX", "cY" ])!');t._projectedAs=c;var d=r.__read(c,4),f=d[0],h=d[1],_=d[2],p=d[3];t.rows.forEach(function(t){t[f]=[],t[h]=[];var e=s(t);if(e){a.default(e)._path.forEach(function(e){t[f].push(e[1]),t[h].push(e[2])});var n=s.centroid(t);t[_]=n[0],t[p]=n[1]}}),t.rows=t.rows.filter(function(t){return 0!==t[f].length})})},"./src/transform/geo/region.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),o=n("./src/data-set.ts").DataSet.registerTransform,i=n("./src/util/option-parser.ts"),a={as:["_x","_y"]};o("geo.region",function(t,e){e=r.assign({},a,e);var n=i.getField(e),o=e.geoView||e.geoDataView;if(r.isString(o)&&(o=t.dataSet.getView(o)),!o||"geo"!==o.dataType)throw new TypeError("Invalid geoView: must be a DataView of GEO dataType!");var s=e.as;if(!r.isArray(s)||2!==s.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var u=s[0],l=s[1];t.rows.forEach(function(t){var e=o.geoFeatureByName(t[n]);e&&(o._projectedAs?(t[u]=e[o._projectedAs[0]],t[l]=e[o._projectedAs[1]]):(t[u]=e.longitude,t[l]=e.latitude))})})},"./src/transform/hierarchy/cluster.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js").__importStar(n("./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js")),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),i=n("./src/data-set.ts"),a=n("./src/util/option-parser.ts"),s={field:"value",size:[1,1],nodeSize:null,separation:null,as:["x","y"]};function u(t,e){if(t.dataType!==i.DataSet.CONSTANTS.HIERARCHY||!t.root)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n=t.root,u=(e=o.assign({},s,e)).as;if(!o.isArray(u)||2!==u.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var l=void 0;try{l=a.getField(e)}catch(t){console.warn(t)}l&&n.sum(function(t){return t[l]});var c=r.cluster();c.size(e.size),e.nodeSize&&c.nodeSize(e.nodeSize),e.separation&&c.separation(e.separation),c(n);var d=u[0],f=u[1];n.each(function(t){t[d]=t.x,t[f]=t.y})}i.DataSet.registerTransform("hierarchy.cluster",u),i.DataSet.registerTransform("dendrogram",u)},"./src/transform/hierarchy/compact-box.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js").__importDefault(n("./node_modules/_@antv_hierarchy@0.6.2@@antv/hierarchy/build/hierarchy.js")),o=n("./src/data-set.ts"),i={};function a(t,e){var n=t.root;if(e=Object.assign({},i,e),t.dataType!==o.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");t.root=r.default.compactBox(n,e)}o.DataSet.registerTransform("hierarchy.compact-box",a),o.DataSet.registerTransform("compact-box-tree",a),o.DataSet.registerTransform("non-layered-tidy-tree",a),o.DataSet.registerTransform("mindmap-logical",a)},"./src/transform/hierarchy/dendrogram.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js").__importDefault(n("./node_modules/_@antv_hierarchy@0.6.2@@antv/hierarchy/build/hierarchy.js")),o=n("./src/data-set.ts"),i={};function a(t,e){var n=t.root;if(e=Object.assign({},i,e),t.dataType!==o.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");t.root=r.default.dendrogram(n,e)}o.DataSet.registerTransform("hierarchy.dendrogram",a),o.DataSet.registerTransform("dendrogram",a)},"./src/transform/hierarchy/indented.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js").__importDefault(n("./node_modules/_@antv_hierarchy@0.6.2@@antv/hierarchy/build/hierarchy.js")),o=n("./src/data-set.ts"),i={};function a(t,e){var n=t.root;if(e=Object.assign({},i,e),t.dataType!==o.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");t.root=r.default.indented(n,e)}o.DataSet.registerTransform("hierarchy.indented",a),o.DataSet.registerTransform("indented-tree",a)},"./src/transform/hierarchy/pack.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),i=r.__importStar(n("./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js")),a=n("./src/data-set.ts"),s=n("./src/util/option-parser.ts"),u={field:"value",size:[1,1],padding:0,as:["x","y","r"]};function l(t,e){if(t.dataType!==a.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n,r=t.root,l=(e=o.assign({},u,e)).as;if(!o.isArray(l)||3!==l.length)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "r" ])!');try{n=s.getField(e)}catch(t){console.warn(t)}n&&r.sum(function(t){return t[n]}).sort(function(t,e){return e[n]-t[n]});var c=i.pack();c.size(e.size),e.padding&&c.padding(e.padding),c(r);var d=l[0],f=l[1],h=l[2];r.each(function(t){t[d]=t.x,t[f]=t.y,t[h]=t.r})}a.DataSet.registerTransform("hierarchy.pack",l),a.DataSet.registerTransform("hierarchy.circle-packing",l),a.DataSet.registerTransform("circle-packing",l)},"./src/transform/hierarchy/partition.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js").__importStar(n("./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js")),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),i=n("./src/data-set.ts"),a=n("./src/util/option-parser.ts"),s={field:"value",size:[1,1],round:!1,padding:0,sort:!0,as:["x","y"]};function u(t,e){if(t.dataType!==i.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n,u=t.root,l=(e=o.assign({},s,e)).as;if(!o.isArray(l)||2!==l.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=a.getField(e)}catch(t){console.warn(t)}n&&u.sum(function(t){return t[n]});var c=r.partition();c.size(e.size).round(e.round).padding(e.padding),c(u);var d=l[0],f=l[1];u.each(function(t){t[d]=[t.x0,t.x1,t.x1,t.x0],t[f]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach(function(e){-1===l.indexOf(e)&&delete t[e]})})}i.DataSet.registerTransform("hierarchy.partition",u),i.DataSet.registerTransform("adjacency",u)},"./src/transform/hierarchy/tree.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js").__importStar(n("./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js")),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),i=n("./src/data-set.ts"),a=n("./src/util/option-parser.ts"),s={field:"value",size:[1,1],nodeSize:null,separation:null,as:["x","y"]};function u(t,e){if(t.dataType!==i.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n,u=t.root,l=(e=o.assign({},s,e)).as;if(!o.isArray(l)||2!==l.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=a.getField(e)}catch(t){console.warn(t)}n&&u.sum(function(t){return t[n]});var c=r.tree();c.size(e.size),e.nodeSize&&c.nodeSize(e.nodeSize),e.separation&&c.separation(e.separation),c(u);var d=l[0],f=l[1];u.each(function(t){t[d]=t.x,t[f]=t.y})}i.DataSet.registerTransform("hierarchy.tree",u),i.DataSet.registerTransform("tree",u)},"./src/transform/hierarchy/treemap.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js").__importStar(n("./node_modules/_d3-hierarchy@1.1.9@d3-hierarchy/dist/d3-hierarchy.js")),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),i=n("./src/data-set.ts"),a=n("./src/util/option-parser.ts"),s={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 u(t,e){if(t.dataType!==i.DataSet.CONSTANTS.HIERARCHY)throw new TypeError("Invalid DataView: This transform is for Hierarchy data only!");var n,u=t.root,l=(e=o.assign({},s,e)).as;if(!o.isArray(l)||2!==l.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=a.getField(e)}catch(t){console.warn(t)}n&&u.sum(function(t){return t[n]});var c=r.treemap();c.tile(r[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),c(u);var d=l[0],f=l[1];u.each(function(t){t[d]=[t.x0,t.x1,t.x1,t.x0],t[f]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach(function(e){-1===l.indexOf(e)&&delete t[e]})})}i.DataSet.registerTransform("hierarchy.treemap",u),i.DataSet.registerTransform("treemap",u)},"./src/transform/impute.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),i=r.__importStar(n("./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js")),a=r.__importDefault(n("./src/util/partition.ts")),s=n("./src/data-set.ts"),u=n("./src/util/option-parser.ts"),l={groupBy:[]};function c(t){return t.filter(function(t){return!o.isUndefined(t)})}var d=["mean","median","max","min"],f={};d.forEach(function(t){f[t]=function(e,n){return i[t](n)}}),f.value=function(t,e,n){return n},s.DataSet.registerTransform("impute",function(t,e){e=o.assign({},l,e);var n=u.getField(e),r=e.method;if(!r)throw new TypeError("Invalid method!");if("value"===r&&!o.has(e,"value"))throw new TypeError("Invalid value: it is nil.");var i=c(t.getColumn(n)),s=a.default(t.rows,e.groupBy);o.forIn(s,function(t){var a=c(t.map(function(t){return t[n]}));0===a.length&&(a=i),t.forEach(function(i){if(o.isUndefined(i[n]))if(o.isFunction(r))i[n]=r(i,a,e.value,t);else{if(!o.isString(r))throw new TypeError("Invalid method: must be a function or one of "+d.join(", "));i[n]=f[r](i,a,e.value)}})})})},"./src/transform/kde.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),i=r.__importDefault(n("./src/util/get-series-values.ts")),a=r.__importDefault(n("./src/util/kernel.ts")),s=r.__importStar(n("./src/util/bandwidth.ts")),u=r.__importDefault(n("./src/util/partition.ts")),l=n("./src/data-set.ts"),c=n("./src/util/option-parser.ts"),d=n("./node_modules/_simple-statistics@6.1.1@simple-statistics/dist/simple-statistics.min.js"),f={minSize:.01,as:["key","y","size"],extent:[],method:"gaussian",bandwidth:"nrd",step:0,groupBy:[]},h=o.keys(a.default),_=o.keys(s);function p(t,e){e=o.assign({},f,e);var n=c.getFields(e);if(!o.isArray(n)||n.length<1)throw new TypeError("invalid fields: must be an array of at least 1 strings!");var l=e.as;if(!o.isArray(l)||3!==l.length)throw new TypeError("invalid as: must be an array of 3 strings!");var _=e.method;if(o.isString(_)){if(-1===h.indexOf(_))throw new TypeError("invalid method: "+_+". Must be one of "+h.join(", "));_=a.default[_]}if(!o.isFunction(_))throw new TypeError("invalid method: kernel method must be a function!");var p=e.extent;if(!o.isArray(p)||0===p.length){var v=[];o.each(n,function(e){var n=t.range(e);v=v.concat(n)}),p=[Math.min.apply(Math,r.__spread(v)),Math.max.apply(Math,r.__spread(v))]}var g=e.bandwidth;o.isString(g)&&s[g]?g=s[g](t.getColumn(n[0])):o.isFunction(g)?g=g(t.getColumn(n[0])):(!o.isNumber(g)||g<=0)&&(g=s.nrd(t.getColumn(n[0])));var m=i.default(p,e.step?e.step:g),y=[],b=e.groupBy,j=u.default(t.rows,b);o.forIn(j,function(t){var i={};o.each(n,function(n){var a=o.pick(t[0],b);i[n]=d.kernelDensityEstimation(t.map(function(t){return t[n]}),_,g);var s=r.__read(l,3),u=s[0],c=s[1],f=s[2];a[u]=n,a[c]=[],a[f]=[],o.each(m,function(t){var r=i[n](t);r>=e.minSize&&(a[c].push(t),a[f].push(r))}),y.push(a)})}),t.rows=y}l.DataSet.registerTransform("kernel-density-estimation",p),l.DataSet.registerTransform("kde",p),l.DataSet.registerTransform("KDE",p),e.default={KERNEL_METHODS:h,BANDWIDTH_METHODS:_}},"./src/transform/kernel-smooth/density.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),o=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js"),i=r.__importDefault(n("./src/util/get-series-values.ts")),a=r.__importDefault(n("./src/util/kernel.ts")),s=n("./src/data-set.ts"),u=n("./src/util/option-parser.ts"),l=n("./src/util/bandwidth.ts"),c={as:["x","y","z"],method:"gaussian"},d=o.keys(a.default);function f(t,e){var n,s;e=o.assign({},c,e);var f=u.getFields(e);if(!o.isArray(f)||2!==f.length)throw new TypeError("invalid fields: must be an array of 2 strings!");var h,_=r.__read(e.as,3),p=_[0],v=_[1],g=_[2];if(!o.isString(p)||!o.isString(v)||!o.isString(g))throw new TypeError("invalid as: must be an array of 3 strings!");if(o.isString(e.method)){if(-1===d.indexOf(e.method))throw new TypeError("invalid method: "+e.method+". Must be one of "+d.join(", "));h=a.default[e.method]}var m,y,b,j,x=r.__read(f,2),w=x[0],E=x[1],M=e.extent,S=e.bandwidth;M&&Array.isArray(M)&&Array.isArray(M[0])&&Array.isArray(M[1])?(m=(n=r.__read(M,2))[0],y=n[1]):(m=t.range(w),y=t.range(E)),S&&Array.isArray(S)&&S.slice(0,2).every(o.isNumber)&&S.slice(0,2).every(function(t){return t>0})?(b=(s=r.__read(S,2))[0],j=s[1]):(b=l.silverman(t.getColumn(w)),j=l.silverman(t.getColumn(E)));for(var T=i.default(m,b),P=i.default(y,j),k=t.rows.length,O=[],C=0;Cj&&(S=j/e,n=Math.ceil(e*S/w)),P=y/n}),o.forIn(v,function(t){var e=[T*x,(T+1)*x],n=(e[1]-e[0])*(1-E)/w,r=0,i=0;o.each(t,function(t){for(var a=t[d],s=Math.round(a*S),u=0;un[o])return 1}return 0}:r.isString(e)&&(n=function(t,n){return t[e]n[e]?1:0}),t.sort(n)}},"./src/util/tag-cloud.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),o=Math.PI/180,i=64,a=2048;function s(t){return t.text}function u(){return"serif"}function l(){return"normal"}function c(t){return t.value}function d(){return 90*~~(2*Math.random())}function f(){return 1}function h(t,e,n,r){if(!e.sprite){var s=t.context,u=t.ratio;s.clearRect(0,0,(i<<5)/u,a/u);var l=0,c=0,d=0,f=n.length;for(--r;++r>5<<5,_=~~Math.max(Math.abs(m+y),Math.abs(m-y))}else h=h+31>>5<<5;if(_>d&&(d=_),l+h>=i<<5&&(l=0,c+=d,d=0),c+_>=a)break;s.translate((l+(h>>1))/u,(c+(_>>1))/u),e.rotate&&s.rotate(e.rotate*o),s.fillText(e.text,0,0),e.padding&&(s.lineWidth=2*e.padding,s.strokeText(e.text,0,0)),s.restore(),e.width=h,e.height=_,e.xoff=l,e.yoff=c,e.x1=h>>1,e.y1=_>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,l+=h}for(var j=s.getImageData(0,0,(i<<5)/u,a/u).data,x=[];--r>=0;)if((e=n[r]).hasText){for(var w=(h=e.width)>>5,E=(_=e.y1-e.y0,0);E<_*w;E++)x[E]=0;if(null==(l=e.xoff))return;c=e.yoff;for(var M=0,S=-1,T=0;T<_;T++){for(E=0;E>5),k=j[(c+T)*(i<<5)+(l+E)<<2]?1<<31-E%32:0;x[P]|=k,M|=k}M?S=T:(e.y0++,_--,T--,c++)}e.y1=e.y0+S,e.sprite=x.slice(0,(e.y1-e.y0)*w)}}}function _(t,e,n){n>>=5;for(var r,o=t.sprite,i=t.width>>5,a=t.x-(i<<4),s=127&a,u=32-s,l=t.y1-t.y0,c=(t.y+t.y0)*n+(a>>5),d=0;d>>s:0))&e[c+f])return!0;c+=n}return!1}function p(t,e){var n=t[0],r=t[1];e.x+e.x0r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function v(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function g(t){for(var e=[],n=-1;++n=d));)if(n.x=l+i,n.y=c+a,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1]||r&&_(n,e,t[0])||r&&(u=r,!((s=n).x+s.x1>u[0].x&&s.x+s.x0u[0].y&&s.y+s.y0>5,m=t[0]>>5,y=n.x-(g<<4),b=127&y,j=32-b,x=n.y1-n.y0,w=void 0,E=(n.y+n.y0)*m+(y>>5),S=0;S>>b:0);E+=m}return delete n.sprite,!0}return!1}return O.canvas=function(t){return arguments.length?(k=y(t),O):k},O.start=function(){var s=r.__read(t,2),u=s[0],l=s[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=(i<<5)/e,t.height=a/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}(k()),d=O.board?O.board:g((t[0]>>5)*t[1]),f=S.length,_=[],v=S.map(function(t,r){return t.text=e.call(this,t,r),t.font=n.call(this,t,r),t.style=j.call(this,t,r),t.weight=x.call(this,t,r),t.rotate=w.call(this,t,r),t.size=~~o.call(this,t,r),t.padding=E.call(this,t,r),t}).sort(function(t,e){return e.size-t.size}),m=-1,y=O.board?[{x:0,y:0},{x:u,y:l}]:null;return function(){for(var e=Date.now();Date.now()-e>1,n.y=l*(P()+.5)>>1,h(c,n,v,m),n.hasText&&C(d,n,y)&&(_.push(n),y?O.hasImage||p(y,n):y=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}O._tags=_,O._bounds=y}(),O},O.createMask=function(e){var n=document.createElement("canvas"),o=r.__read(t,2),i=o[0],a=o[1],s=i>>5,u=g((i>>5)*a);n.width=i,n.height=a;var l=n.getContext("2d");l.drawImage(e,0,0,e.width,e.height,0,0,i,a);for(var c=l.getImageData(0,0,i,a).data,d=0;d>5),_=d*i+f<<2,p=c[_]>=250&&c[_+1]>=250&&c[_+2]>=250?1<<31-f%32:0;u[h]|=p}O.board=u,O.hasImage=!0},O.timeInterval=function(t){return arguments.length?(T=null==t?1/0:t,O):T},O.words=function(t){return arguments.length?(S=t,O):S},O.size=function(e){return arguments.length?(t=[+e[0],+e[1]],O):t},O.font=function(t){return arguments.length?(n=y(t),O):n},O.fontStyle=function(t){return arguments.length?(j=y(t),O):j},O.fontWeight=function(t){return arguments.length?(x=y(t),O):x},O.rotate=function(t){return arguments.length?(w=y(t),O):w},O.text=function(t){return arguments.length?(e=y(t),O):e},O.spiral=function(t){return arguments.length?(M=b[t]||t,O):M},O.fontSize=function(t){return arguments.length?(o=y(t),O):o},O.padding=function(t){return arguments.length?(E=y(t),O):E},O.random=function(t){return arguments.length?(P=t,O):P},O}},"./src/view.ts":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n("./node_modules/_tslib@1.11.1@tslib/tslib.js"),o=r.__importDefault(n("./node_modules/_wolfy87-eventemitter@5.2.9@wolfy87-eventemitter/EventEmitter.js")),i=n("./node_modules/_@antv_util@2.0.7@@antv/util/lib/index.js");var a=function(t){function e(e,n){var r=t.call(this)||this;if(r.isView=!0,r.isDataView=!0,r.watchingStates=null,r.dataType="table",r.transforms=[],r.origin=[],r.rows=[],e&&e.isDataSet?r.dataSet=e:(r.dataSet=null,n=e),r.loose=!r.dataSet,n&&(r.watchingStates=n.watchingStates),!r.loose){var o=r.watchingStates;e.on("statechange",function(t){i.isArray(o)?o.indexOf(t)>-1&&r._reExecute():r._reExecute()})}return r}return r.__extends(e,t),e.prototype._parseStateExpression=function(t){var e=this.dataSet;if(null!==e){var n=/^\$state\.(\w+)/.exec(t);return n?e.state[n[1]]:t}},e.prototype._preparseOptions=function(t){var e=this,n=function(t){var e={};return i.forIn(t,function(t,n){i.isObject(t)&&t.isView?e[n]=t:i.isArray(t)?e[n]=t.concat([]):i.isPlainObject(t)?e[n]=i.clone(t):e[n]=t}),e}(t);return this.loose?n:(i.forIn(n,function(t,r){i.isString(t)&&/^\$state\./.test(t)&&(n[r]=e._parseStateExpression(t))}),n)},e.prototype._prepareSource=function(t,n){if(this._source={source:t,options:n},n){r=this._preparseOptions(n);this.origin=e.DataSet.getConnector(r.type)(t,r,this)}else if(t instanceof e||i.isString(t))this.origin=e.DataSet.getConnector("default")(t,this.dataSet);else if(i.isArray(t))this.origin=t;else{if(!i.isObject(t)||!t.type)throw new TypeError("Invalid source");var r=this._preparseOptions(t);this.origin=e.DataSet.getConnector(r.type)(r,this)}return this.rows=i.deepMix([],this.origin),this},e.prototype.source=function(t,e){return this._prepareSource(t,e)._reExecuteTransforms(),this.trigger("change",[]),this},e.prototype.transform=function(t){return t&&t.type&&(this.transforms.push(t),this._executeTransform(t)),this},e.prototype._executeTransform=function(t){t=this._preparseOptions(t),e.DataSet.getTransform(t.type)(this,t)},e.prototype._reExecuteTransforms=function(){var t=this;this.transforms.forEach(function(e){t._executeTransform(e)})},e.prototype.addRow=function(t){this.rows.push(t)},e.prototype.removeRow=function(t){this.rows.splice(t,1)},e.prototype.updateRow=function(t,e){i.assign(this.rows[t],e)},e.prototype.findRows=function(t){return this.rows.filter(function(e){return i.isMatch(e,t)})},e.prototype.findRow=function(t){return i.find(this.rows,t)},e.prototype.getColumnNames=function(){var t=this.rows[0];return t?i.keys(t):[]},e.prototype.getColumnName=function(t){return this.getColumnNames()[t]},e.prototype.getColumnIndex=function(t){return this.getColumnNames().indexOf(t)},e.prototype.getColumn=function(t){return this.rows.map(function(e){return e[t]})},e.prototype.getColumnData=function(t){return this.getColumn(t)},e.prototype.getSubset=function(t,e,n){for(var r=[],o=t;o<=e;o++)r.push(i.pick(this.rows[o],n));return r},e.prototype.toString=function(t){return void 0===t&&(t=!1),t?JSON.stringify(this.rows,null,2):JSON.stringify(this.rows)},e.prototype._reExecute=function(){var t=this._source,e=t.source,n=t.options;this._prepareSource(e,n),this._reExecuteTransforms(),this.trigger("change",[])},e}(o.default);e.View=a}})}); //# sourceMappingURL=/sm/de67647084900a8830892d4b8445d7c6397d4fd342ffcae48cba784a1d2396b9.map