Files
Cloud-book/node_modules/dagre-d3-renderer/dist/dagre-d3.js
2025-08-27 17:10:05 +08:00

2 lines
285 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.dagreD3=n():t.dagreD3=n()}("undefined"!=typeof self?self:this,function(){return function(t){function n(r){if(e[r])return e[r].exports;var u=e[r]={i:r,l:!1,exports:{}};return t[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}var e={};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,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=18)}([function(t,n,e){var r;try{r=e(2)}catch(t){}r||(r=window._),t.exports=r},function(t,n,e){"use strict";function r(t,n){return!!t.children(n).length}function u(t){return i(t.v)+":"+i(t.w)+":"+i(t.name)}function i(t){return t?String(t).replace(s,"\\:"):""}function o(t,n){n&&t.attr("style",n)}function a(t,n,e){n&&t.attr("class",n).attr("class",e+" "+t.attr("class"))}function c(t,n){var e=n.graph();if(l.default.isPlainObject(e)){var r=e.transition;if(l.default.isFunction(r))return r(t)}return t}Object.defineProperty(n,"__esModule",{value:!0});var f=e(2),l=function(t){return t&&t.__esModule?t:{default:t}}(f),s=/:/g;n.default={isSubgraph:r,edgeToId:u,applyStyle:o,applyClass:a,applyTransition:c}},function(t,n,e){(function(t,r){var u;(function(){function i(t,n){return t.set(n[0],n[1]),t}function o(t,n){return t.add(n),t}function a(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function c(t,n,e,r){for(var u=-1,i=null==t?0:t.length;++u<i;){var o=t[u];n(r,o,e(o),t)}return r}function f(t,n){for(var e=-1,r=null==t?0:t.length;++e<r&&!1!==n(t[e],e,t););return t}function l(t,n){for(var e=null==t?0:t.length;e--&&!1!==n(t[e],e,t););return t}function s(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(!n(t[e],e,t))return!1;return!0}function h(t,n){for(var e=-1,r=null==t?0:t.length,u=0,i=[];++e<r;){var o=t[e];n(o,e,t)&&(i[u++]=o)}return i}function d(t,n){return!!(null==t?0:t.length)&&k(t,n,0)>-1}function p(t,n,e){for(var r=-1,u=null==t?0:t.length;++r<u;)if(e(n,t[r]))return!0;return!1}function g(t,n){for(var e=-1,r=null==t?0:t.length,u=Array(r);++e<r;)u[e]=n(t[e],e,t);return u}function v(t,n){for(var e=-1,r=n.length,u=t.length;++e<r;)t[u+e]=n[e];return t}function y(t,n,e,r){var u=-1,i=null==t?0:t.length;for(r&&i&&(e=t[++u]);++u<i;)e=n(e,t[u],u,t);return e}function _(t,n,e,r){var u=null==t?0:t.length;for(r&&u&&(e=t[--u]);u--;)e=n(e,t[u],u,t);return e}function m(t,n){for(var e=-1,r=null==t?0:t.length;++e<r;)if(n(t[e],e,t))return!0;return!1}function x(t){return t.split("")}function b(t){return t.match(Fn)||[]}function w(t,n,e){var r;return e(t,function(t,e,u){if(n(t,e,u))return r=e,!1}),r}function M(t,n,e,r){for(var u=t.length,i=e+(r?1:-1);r?i--:++i<u;)if(n(t[i],i,t))return i;return-1}function k(t,n,e){return n===n?J(t,n,e):M(t,N,e)}function E(t,n,e,r){for(var u=e-1,i=t.length;++u<i;)if(r(t[u],n))return u;return-1}function N(t){return t!==t}function S(t,n){var e=null==t?0:t.length;return e?T(t,n)/e:Pt}function j(t){return function(n){return null==n?ut:n[t]}}function C(t){return function(n){return null==t?ut:t[n]}}function A(t,n,e,r,u){return u(t,function(t,u,i){e=r?(r=!1,t):n(e,t,u,i)}),e}function L(t,n){var e=t.length;for(t.sort(n);e--;)t[e]=t[e].value;return t}function T(t,n){for(var e,r=-1,u=t.length;++r<u;){var i=n(t[r]);i!==ut&&(e=e===ut?i:e+i)}return e}function O(t,n){for(var e=-1,r=Array(t);++e<t;)r[e]=n(e);return r}function R(t,n){return g(n,function(n){return[n,t[n]]})}function P(t){return function(n){return t(n)}}function I(t,n){return g(n,function(n){return t[n]})}function z(t,n){return t.has(n)}function D(t,n){for(var e=-1,r=t.length;++e<r&&k(n,t[e],0)>-1;);return e}function q(t,n){for(var e=t.length;e--&&k(n,t[e],0)>-1;);return e}function U(t,n){for(var e=t.length,r=0;e--;)t[e]===n&&++r;return r}function F(t){return"\\"+je[t]}function B(t,n){return null==t?ut:t[n]}function W(t){return me.test(t)}function Y(t){return xe.test(t)}function H(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}function V(t){var n=-1,e=Array(t.size);return t.forEach(function(t,r){e[++n]=[r,t]}),e}function $(t,n){return function(e){return t(n(e))}}function G(t,n){for(var e=-1,r=t.length,u=0,i=[];++e<r;){var o=t[e];o!==n&&o!==lt||(t[e]=lt,i[u++]=e)}return i}function Z(t){var n=-1,e=Array(t.size);return t.forEach(function(t){e[++n]=t}),e}function X(t){var n=-1,e=Array(t.size);return t.forEach(function(t){e[++n]=[t,t]}),e}function J(t,n,e){for(var r=e-1,u=t.length;++r<u;)if(t[r]===n)return r;return-1}function K(t,n,e){for(var r=e+1;r--;)if(t[r]===n)return r;return r}function Q(t){return W(t)?nt(t):He(t)}function tt(t){return W(t)?et(t):x(t)}function nt(t){for(var n=ye.lastIndex=0;ye.test(t);)++n;return n}function et(t){return t.match(ye)||[]}function rt(t){return t.match(_e)||[]}var ut,it=200,ot="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",at="Expected a function",ct="__lodash_hash_undefined__",ft=500,lt="__lodash_placeholder__",st=1,ht=2,dt=4,pt=1,gt=2,vt=1,yt=2,_t=4,mt=8,xt=16,bt=32,wt=64,Mt=128,kt=256,Et=512,Nt=30,St="...",jt=800,Ct=16,At=1,Lt=2,Tt=1/0,Ot=9007199254740991,Rt=1.7976931348623157e308,Pt=NaN,It=4294967295,zt=It-1,Dt=It>>>1,qt=[["ary",Mt],["bind",vt],["bindKey",yt],["curry",mt],["curryRight",xt],["flip",Et],["partial",bt],["partialRight",wt],["rearg",kt]],Ut="[object Arguments]",Ft="[object Array]",Bt="[object AsyncFunction]",Wt="[object Boolean]",Yt="[object Date]",Ht="[object DOMException]",Vt="[object Error]",$t="[object Function]",Gt="[object GeneratorFunction]",Zt="[object Map]",Xt="[object Number]",Jt="[object Null]",Kt="[object Object]",Qt="[object Proxy]",tn="[object RegExp]",nn="[object Set]",en="[object String]",rn="[object Symbol]",un="[object Undefined]",on="[object WeakMap]",an="[object WeakSet]",cn="[object ArrayBuffer]",fn="[object DataView]",ln="[object Float32Array]",sn="[object Float64Array]",hn="[object Int8Array]",dn="[object Int16Array]",pn="[object Int32Array]",gn="[object Uint8Array]",vn="[object Uint8ClampedArray]",yn="[object Uint16Array]",_n="[object Uint32Array]",mn=/\b__p \+= '';/g,xn=/\b(__p \+=) '' \+/g,bn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wn=/&(?:amp|lt|gt|quot|#39);/g,Mn=/[&<>"']/g,kn=RegExp(wn.source),En=RegExp(Mn.source),Nn=/<%-([\s\S]+?)%>/g,Sn=/<%([\s\S]+?)%>/g,jn=/<%=([\s\S]+?)%>/g,Cn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,An=/^\w*$/,Ln=/^\./,Tn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,On=/[\\^$.*+?()[\]{}|]/g,Rn=RegExp(On.source),Pn=/^\s+|\s+$/g,In=/^\s+/,zn=/\s+$/,Dn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,qn=/\{\n\/\* \[wrapped with (.+)\] \*/,Un=/,? & /,Fn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Bn=/\\(\\)?/g,Wn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yn=/\w*$/,Hn=/^[-+]0x[0-9a-f]+$/i,Vn=/^0b[01]+$/i,$n=/^\[object .+?Constructor\]$/,Gn=/^0o[0-7]+$/i,Zn=/^(?:0|[1-9]\d*)$/,Xn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Jn=/($^)/,Kn=/['\n\r\u2028\u2029\\]/g,Qn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",te="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ne="["+te+"]",ee="["+Qn+"]",re="[a-z\\xdf-\\xf6\\xf8-\\xff]",ue="[^\\ud800-\\udfff"+te+"\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ie="\\ud83c[\\udffb-\\udfff]",oe="(?:\\ud83c[\\udde6-\\uddff]){2}",ae="[\\ud800-\\udbff][\\udc00-\\udfff]",ce="[A-Z\\xc0-\\xd6\\xd8-\\xde]",fe="(?:"+re+"|"+ue+")",le="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",se="(?:\\u200d(?:"+["[^\\ud800-\\udfff]",oe,ae].join("|")+")[\\ufe0e\\ufe0f]?"+le+")*",he="[\\ufe0e\\ufe0f]?"+le+se,de="(?:"+["[\\u2700-\\u27bf]",oe,ae].join("|")+")"+he,pe="(?:"+["[^\\ud800-\\udfff]"+ee+"?",ee,oe,ae,"[\\ud800-\\udfff]"].join("|")+")",ge=RegExp("[']","g"),ve=RegExp(ee,"g"),ye=RegExp(ie+"(?="+ie+")|"+pe+he,"g"),_e=RegExp([ce+"?"+re+"+(?:['](?:d|ll|m|re|s|t|ve))?(?="+[ne,ce,"$"].join("|")+")","(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['](?:D|LL|M|RE|S|T|VE))?(?="+[ne,ce+fe,"$"].join("|")+")",ce+"?"+fe+"+(?:['](?:d|ll|m|re|s|t|ve))?",ce+"+(?:['](?:D|LL|M|RE|S|T|VE))?","\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)","\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)","\\d+",de].join("|"),"g"),me=RegExp("[\\u200d\\ud800-\\udfff"+Qn+"\\ufe0e\\ufe0f]"),xe=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,be=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],we=-1,Me={};Me[ln]=Me[sn]=Me[hn]=Me[dn]=Me[pn]=Me[gn]=Me[vn]=Me[yn]=Me[_n]=!0,Me[Ut]=Me[Ft]=Me[cn]=Me[Wt]=Me[fn]=Me[Yt]=Me[Vt]=Me[$t]=Me[Zt]=Me[Xt]=Me[Kt]=Me[tn]=Me[nn]=Me[en]=Me[on]=!1;var ke={};ke[Ut]=ke[Ft]=ke[cn]=ke[fn]=ke[Wt]=ke[Yt]=ke[ln]=ke[sn]=ke[hn]=ke[dn]=ke[pn]=ke[Zt]=ke[Xt]=ke[Kt]=ke[tn]=ke[nn]=ke[en]=ke[rn]=ke[gn]=ke[vn]=ke[yn]=ke[_n]=!0,ke[Vt]=ke[$t]=ke[on]=!1;var Ee={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"},Ne={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Se={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},je={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ce=parseFloat,Ae=parseInt,Le="object"==typeof t&&t&&t.Object===Object&&t,Te="object"==typeof self&&self&&self.Object===Object&&self,Oe=Le||Te||Function("return this")(),Re="object"==typeof n&&n&&!n.nodeType&&n,Pe=Re&&"object"==typeof r&&r&&!r.nodeType&&r,Ie=Pe&&Pe.exports===Re,ze=Ie&&Le.process,De=function(){try{return ze&&ze.binding&&ze.binding("util")}catch(t){}}(),qe=De&&De.isArrayBuffer,Ue=De&&De.isDate,Fe=De&&De.isMap,Be=De&&De.isRegExp,We=De&&De.isSet,Ye=De&&De.isTypedArray,He=j("length"),Ve=C(Ee),$e=C(Ne),Ge=C(Se),Ze=function t(n){function e(t){if(ic(t)&&!yh(t)&&!(t instanceof x)){if(t instanceof u)return t;if(yl.call(t,"__wrapped__"))return no(t)}return new u(t)}function r(){}function u(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=ut}function x(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=It,this.__views__=[]}function C(){var t=new x(this.__wrapped__);return t.__actions__=zu(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=zu(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=zu(this.__views__),t}function J(){if(this.__filtered__){var t=new x(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function nt(){var t=this.__wrapped__.value(),n=this.__dir__,e=yh(t),r=n<0,u=e?t.length:0,i=Ni(0,u,this.__views__),o=i.start,a=i.end,c=a-o,f=r?a:o-1,l=this.__iteratees__,s=l.length,h=0,d=$l(c,this.__takeCount__);if(!e||!r&&u==c&&d==c)return _u(t,this.__actions__);var p=[];t:for(;c--&&h<d;){f+=n;for(var g=-1,v=t[f];++g<s;){var y=l[g],_=y.iteratee,m=y.type,x=_(v);if(m==Lt)v=x;else if(!x){if(m==At)continue t;break t}}p[h++]=v}return p}function et(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function Fn(){this.__data__=rs?rs(null):{},this.size=0}function Qn(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}function te(t){var n=this.__data__;if(rs){var e=n[t];return e===ct?ut:e}return yl.call(n,t)?n[t]:ut}function ne(t){var n=this.__data__;return rs?n[t]!==ut:yl.call(n,t)}function ee(t,n){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=rs&&n===ut?ct:n,this}function re(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function ue(){this.__data__=[],this.size=0}function ie(t){var n=this.__data__,e=Xe(n,t);return!(e<0)&&(e==n.length-1?n.pop():Ll.call(n,e,1),--this.size,!0)}function oe(t){var n=this.__data__,e=Xe(n,t);return e<0?ut:n[e][1]}function ae(t){return Xe(this.__data__,t)>-1}function ce(t,n){var e=this.__data__,r=Xe(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this}function fe(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n<e;){var r=t[n];this.set(r[0],r[1])}}function le(){this.size=0,this.__data__={hash:new et,map:new(Ql||re),string:new et}}function se(t){var n=wi(this,t).delete(t);return this.size-=n?1:0,n}function he(t){return wi(this,t).get(t)}function de(t){return wi(this,t).has(t)}function pe(t,n){var e=wi(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this}function ye(t){var n=-1,e=null==t?0:t.length;for(this.__data__=new fe;++n<e;)this.add(t[n])}function _e(t){return this.__data__.set(t,ct),this}function me(t){return this.__data__.has(t)}function xe(t){var n=this.__data__=new re(t);this.size=n.size}function Ee(){this.__data__=new re,this.size=0}function Ne(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e}function Se(t){return this.__data__.get(t)}function je(t){return this.__data__.has(t)}function Le(t,n){var e=this.__data__;if(e instanceof re){var r=e.__data__;if(!Ql||r.length<it-1)return r.push([t,n]),this.size=++e.size,this;e=this.__data__=new fe(r)}return e.set(t,n),this.size=e.size,this}function Te(t,n){var e=yh(t),r=!e&&vh(t),u=!e&&!r&&mh(t),i=!e&&!r&&!u&&kh(t),o=e||r||u||i,a=o?O(t.length,ll):[],c=a.length;for(var f in t)!n&&!yl.call(t,f)||o&&("length"==f||u&&("offset"==f||"parent"==f)||i&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||Ri(f,c))||a.push(f);return a}function Re(t){var n=t.length;return n?t[Qr(0,n-1)]:ut}function Pe(t,n){return Ji(zu(t),er(n,0,t.length))}function ze(t){return Ji(zu(t))}function De(t,n,e){(e===ut||Ha(t[n],e))&&(e!==ut||n in t)||tr(t,n,e)}function He(t,n,e){var r=t[n];yl.call(t,n)&&Ha(r,e)&&(e!==ut||n in t)||tr(t,n,e)}function Xe(t,n){for(var e=t.length;e--;)if(Ha(t[e][0],n))return e;return-1}function Je(t,n,e,r){return gs(t,function(t,u,i){n(r,t,e(t),i)}),r}function Ke(t,n){return t&&Du(n,Uc(n),t)}function Qe(t,n){return t&&Du(n,Fc(n),t)}function tr(t,n,e){"__proto__"==n&&Pl?Pl(t,n,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[n]=e}function nr(t,n){for(var e=-1,r=n.length,u=rl(r),i=null==t;++e<r;)u[e]=i?ut:zc(t,n[e]);return u}function er(t,n,e){return t===t&&(e!==ut&&(t=t<=e?t:e),n!==ut&&(t=t>=n?t:n)),t}function rr(t,n,e,r,u,i){var o,a=n&st,c=n&ht,l=n&dt;if(e&&(o=u?e(t,r,u,i):e(t)),o!==ut)return o;if(!uc(t))return t;var s=yh(t);if(s){if(o=Ci(t),!a)return zu(t,o)}else{var h=Ss(t),d=h==$t||h==Gt;if(mh(t))return Eu(t,a);if(h==Kt||h==Ut||d&&!u){if(o=c||d?{}:Ai(t),!a)return c?Uu(t,Qe(o,t)):qu(t,Ke(o,t))}else{if(!ke[h])return u?t:{};o=Li(t,h,rr,a)}}i||(i=new xe);var p=i.get(t);if(p)return p;i.set(t,o);var g=l?c?_i:yi:c?Fc:Uc,v=s?ut:g(t);return f(v||t,function(r,u){v&&(u=r,r=t[u]),He(o,u,rr(r,n,e,u,t,i))}),o}function ur(t){var n=Uc(t);return function(e){return ir(e,t,n)}}function ir(t,n,e){var r=e.length;if(null==t)return!r;for(t=cl(t);r--;){var u=e[r],i=n[u],o=t[u];if(o===ut&&!(u in t)||!i(o))return!1}return!0}function or(t,n,e){if("function"!=typeof t)throw new sl(at);return As(function(){t.apply(ut,e)},n)}function ar(t,n,e,r){var u=-1,i=d,o=!0,a=t.length,c=[],f=n.length;if(!a)return c;e&&(n=g(n,P(e))),r?(i=p,o=!1):n.length>=it&&(i=z,o=!1,n=new ye(n));t:for(;++u<a;){var l=t[u],s=null==e?l:e(l);if(l=r||0!==l?l:0,o&&s===s){for(var h=f;h--;)if(n[h]===s)continue t;c.push(l)}else i(n,s,r)||c.push(l)}return c}function cr(t,n){var e=!0;return gs(t,function(t,r,u){return e=!!n(t,r,u)}),e}function fr(t,n,e){for(var r=-1,u=t.length;++r<u;){var i=t[r],o=n(i);if(null!=o&&(a===ut?o===o&&!vc(o):e(o,a)))var a=o,c=i}return c}function lr(t,n,e,r){var u=t.length;for(e=wc(e),e<0&&(e=-e>u?0:u+e),r=r===ut||r>u?u:wc(r),r<0&&(r+=u),r=e>r?0:Mc(r);e<r;)t[e++]=n;return t}function sr(t,n){var e=[];return gs(t,function(t,r,u){n(t,r,u)&&e.push(t)}),e}function hr(t,n,e,r,u){var i=-1,o=t.length;for(e||(e=Oi),u||(u=[]);++i<o;){var a=t[i];n>0&&e(a)?n>1?hr(a,n-1,e,r,u):v(u,a):r||(u[u.length]=a)}return u}function dr(t,n){return t&&ys(t,n,Uc)}function pr(t,n){return t&&_s(t,n,Uc)}function gr(t,n){return h(n,function(n){return nc(t[n])})}function vr(t,n){n=Mu(n,t);for(var e=0,r=n.length;null!=t&&e<r;)t=t[Ki(n[e++])];return e&&e==r?t:ut}function yr(t,n,e){var r=n(t);return yh(t)?r:v(r,e(t))}function _r(t){return null==t?t===ut?un:Jt:Rl&&Rl in cl(t)?Ei(t):Hi(t)}function mr(t,n){return t>n}function xr(t,n){return null!=t&&yl.call(t,n)}function br(t,n){return null!=t&&n in cl(t)}function wr(t,n,e){return t>=$l(n,e)&&t<Vl(n,e)}function Mr(t,n,e){for(var r=e?p:d,u=t[0].length,i=t.length,o=i,a=rl(i),c=1/0,f=[];o--;){var l=t[o];o&&n&&(l=g(l,P(n))),c=$l(l.length,c),a[o]=!e&&(n||u>=120&&l.length>=120)?new ye(o&&l):ut}l=t[0];var s=-1,h=a[0];t:for(;++s<u&&f.length<c;){var v=l[s],y=n?n(v):v;if(v=e||0!==v?v:0,!(h?z(h,y):r(f,y,e))){for(o=i;--o;){var _=a[o];if(!(_?z(_,y):r(t[o],y,e)))continue t}h&&h.push(y),f.push(v)}}return f}function kr(t,n,e,r){return dr(t,function(t,u,i){n(r,e(t),u,i)}),r}function Er(t,n,e){n=Mu(n,t),t=$i(t,n);var r=null==t?t:t[Ki(bo(n))];return null==r?ut:a(r,t,e)}function Nr(t){return ic(t)&&_r(t)==Ut}function Sr(t){return ic(t)&&_r(t)==cn}function jr(t){return ic(t)&&_r(t)==Yt}function Cr(t,n,e,r,u){return t===n||(null==t||null==n||!ic(t)&&!ic(n)?t!==t&&n!==n:Ar(t,n,e,r,Cr,u))}function Ar(t,n,e,r,u,i){var o=yh(t),a=yh(n),c=o?Ft:Ss(t),f=a?Ft:Ss(n);c=c==Ut?Kt:c,f=f==Ut?Kt:f;var l=c==Kt,s=f==Kt,h=c==f;if(h&&mh(t)){if(!mh(n))return!1;o=!0,l=!1}if(h&&!l)return i||(i=new xe),o||kh(t)?di(t,n,e,r,u,i):pi(t,n,c,e,r,u,i);if(!(e&pt)){var d=l&&yl.call(t,"__wrapped__"),p=s&&yl.call(n,"__wrapped__");if(d||p){var g=d?t.value():t,v=p?n.value():n;return i||(i=new xe),u(g,v,e,r,i)}}return!!h&&(i||(i=new xe),gi(t,n,e,r,u,i))}function Lr(t){return ic(t)&&Ss(t)==Zt}function Tr(t,n,e,r){var u=e.length,i=u,o=!r;if(null==t)return!i;for(t=cl(t);u--;){var a=e[u];if(o&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++u<i;){a=e[u];var c=a[0],f=t[c],l=a[1];if(o&&a[2]){if(f===ut&&!(c in t))return!1}else{var s=new xe;if(r)var h=r(f,l,c,t,n,s);if(!(h===ut?Cr(l,f,pt|gt,r,s):h))return!1}}return!0}function Or(t){return!(!uc(t)||qi(t))&&(nc(t)?Ml:$n).test(Qi(t))}function Rr(t){return ic(t)&&_r(t)==tn}function Pr(t){return ic(t)&&Ss(t)==nn}function Ir(t){return ic(t)&&rc(t.length)&&!!Me[_r(t)]}function zr(t){return"function"==typeof t?t:null==t?Lf:"object"==typeof t?yh(t)?Wr(t[0],t[1]):Br(t):qf(t)}function Dr(t){if(!Ui(t))return Hl(t);var n=[];for(var e in cl(t))yl.call(t,e)&&"constructor"!=e&&n.push(e);return n}function qr(t){if(!uc(t))return Yi(t);var n=Ui(t),e=[];for(var r in t)("constructor"!=r||!n&&yl.call(t,r))&&e.push(r);return e}function Ur(t,n){return t<n}function Fr(t,n){var e=-1,r=Va(t)?rl(t.length):[];return gs(t,function(t,u,i){r[++e]=n(t,u,i)}),r}function Br(t){var n=Mi(t);return 1==n.length&&n[0][2]?Bi(n[0][0],n[0][1]):function(e){return e===t||Tr(e,t,n)}}function Wr(t,n){return Ii(t)&&Fi(n)?Bi(Ki(t),n):function(e){var r=zc(e,t);return r===ut&&r===n?qc(e,t):Cr(n,r,pt|gt)}}function Yr(t,n,e,r,u){t!==n&&ys(n,function(i,o){if(uc(i))u||(u=new xe),Hr(t,n,o,e,Yr,r,u);else{var a=r?r(t[o],i,o+"",t,n,u):ut;a===ut&&(a=i),De(t,o,a)}},Fc)}function Hr(t,n,e,r,u,i,o){var a=t[e],c=n[e],f=o.get(c);if(f)return void De(t,e,f);var l=i?i(a,c,e+"",t,n,o):ut,s=l===ut;if(s){var h=yh(c),d=!h&&mh(c),p=!h&&!d&&kh(c);l=c,h||d||p?yh(a)?l=a:$a(a)?l=zu(a):d?(s=!1,l=Eu(c,!0)):p?(s=!1,l=Tu(c,!0)):l=[]:dc(c)||vh(c)?(l=a,vh(a)?l=Ec(a):(!uc(a)||r&&nc(a))&&(l=Ai(c))):s=!1}s&&(o.set(c,l),u(l,c,r,i,o),o.delete(c)),De(t,e,l)}function Vr(t,n){var e=t.length;if(e)return n+=n<0?e:0,Ri(n,e)?t[n]:ut}function $r(t,n,e){var r=-1;return n=g(n.length?n:[Lf],P(bi())),L(Fr(t,function(t,e,u){return{criteria:g(n,function(n){return n(t)}),index:++r,value:t}}),function(t,n){return Ru(t,n,e)})}function Gr(t,n){return Zr(t,n,function(n,e){return qc(t,e)})}function Zr(t,n,e){for(var r=-1,u=n.length,i={};++r<u;){var o=n[r],a=vr(t,o);e(a,o)&&iu(i,Mu(o,t),a)}return i}function Xr(t){return function(n){return vr(n,t)}}function Jr(t,n,e,r){var u=r?E:k,i=-1,o=n.length,a=t;for(t===n&&(n=zu(n)),e&&(a=g(t,P(e)));++i<o;)for(var c=0,f=n[i],l=e?e(f):f;(c=u(a,l,c,r))>-1;)a!==t&&Ll.call(a,c,1),Ll.call(t,c,1);return t}function Kr(t,n){for(var e=t?n.length:0,r=e-1;e--;){var u=n[e];if(e==r||u!==i){var i=u;Ri(u)?Ll.call(t,u,1):gu(t,u)}}return t}function Qr(t,n){return t+Ul(Xl()*(n-t+1))}function tu(t,n,e,r){for(var u=-1,i=Vl(ql((n-t)/(e||1)),0),o=rl(i);i--;)o[r?i:++u]=t,t+=e;return o}function nu(t,n){var e="";if(!t||n<1||n>Ot)return e;do{n%2&&(e+=t),(n=Ul(n/2))&&(t+=t)}while(n);return e}function eu(t,n){return Ls(Vi(t,n,Lf),t+"")}function ru(t){return Re(Qc(t))}function uu(t,n){var e=Qc(t);return Ji(e,er(n,0,e.length))}function iu(t,n,e,r){if(!uc(t))return t;n=Mu(n,t);for(var u=-1,i=n.length,o=i-1,a=t;null!=a&&++u<i;){var c=Ki(n[u]),f=e;if(u!=o){var l=a[c];f=r?r(l,c,a):ut,f===ut&&(f=uc(l)?l:Ri(n[u+1])?[]:{})}He(a,c,f),a=a[c]}return t}function ou(t){return Ji(Qc(t))}function au(t,n,e){var r=-1,u=t.length;n<0&&(n=-n>u?0:u+n),e=e>u?u:e,e<0&&(e+=u),u=n>e?0:e-n>>>0,n>>>=0;for(var i=rl(u);++r<u;)i[r]=t[r+n];return i}function cu(t,n){var e;return gs(t,function(t,r,u){return!(e=n(t,r,u))}),!!e}function fu(t,n,e){var r=0,u=null==t?r:t.length;if("number"==typeof n&&n===n&&u<=Dt){for(;r<u;){var i=r+u>>>1,o=t[i];null!==o&&!vc(o)&&(e?o<=n:o<n)?r=i+1:u=i}return u}return lu(t,n,Lf,e)}function lu(t,n,e,r){n=e(n);for(var u=0,i=null==t?0:t.length,o=n!==n,a=null===n,c=vc(n),f=n===ut;u<i;){var l=Ul((u+i)/2),s=e(t[l]),h=s!==ut,d=null===s,p=s===s,g=vc(s);if(o)var v=r||p;else v=f?p&&(r||h):a?p&&h&&(r||!d):c?p&&h&&!d&&(r||!g):!d&&!g&&(r?s<=n:s<n);v?u=l+1:i=l}return $l(i,zt)}function su(t,n){for(var e=-1,r=t.length,u=0,i=[];++e<r;){var o=t[e],a=n?n(o):o;if(!e||!Ha(a,c)){var c=a;i[u++]=0===o?0:o}}return i}function hu(t){return"number"==typeof t?t:vc(t)?Pt:+t}function du(t){if("string"==typeof t)return t;if(yh(t))return g(t,du)+"";if(vc(t))return ds?ds.call(t):"";var n=t+"";return"0"==n&&1/t==-Tt?"-0":n}function pu(t,n,e){var r=-1,u=d,i=t.length,o=!0,a=[],c=a;if(e)o=!1,u=p;else if(i>=it){var f=n?null:Ms(t);if(f)return Z(f);o=!1,u=z,c=new ye}else c=n?[]:a;t:for(;++r<i;){var l=t[r],s=n?n(l):l;if(l=e||0!==l?l:0,o&&s===s){for(var h=c.length;h--;)if(c[h]===s)continue t;n&&c.push(s),a.push(l)}else u(c,s,e)||(c!==a&&c.push(s),a.push(l))}return a}function gu(t,n){return n=Mu(n,t),null==(t=$i(t,n))||delete t[Ki(bo(n))]}function vu(t,n,e,r){return iu(t,n,e(vr(t,n)),r)}function yu(t,n,e,r){for(var u=t.length,i=r?u:-1;(r?i--:++i<u)&&n(t[i],i,t););return e?au(t,r?0:i,r?i+1:u):au(t,r?i+1:0,r?u:i)}function _u(t,n){var e=t;return e instanceof x&&(e=e.value()),y(n,function(t,n){return n.func.apply(n.thisArg,v([t],n.args))},e)}function mu(t,n,e){var r=t.length;if(r<2)return r?pu(t[0]):[];for(var u=-1,i=rl(r);++u<r;)for(var o=t[u],a=-1;++a<r;)a!=u&&(i[u]=ar(i[u]||o,t[a],n,e));return pu(hr(i,1),n,e)}function xu(t,n,e){for(var r=-1,u=t.length,i=n.length,o={};++r<u;){var a=r<i?n[r]:ut;e(o,t[r],a)}return o}function bu(t){return $a(t)?t:[]}function wu(t){return"function"==typeof t?t:Lf}function Mu(t,n){return yh(t)?t:Ii(t,n)?[t]:Ts(Sc(t))}function ku(t,n,e){var r=t.length;return e=e===ut?r:e,!n&&e>=r?t:au(t,n,e)}function Eu(t,n){if(n)return t.slice();var e=t.length,r=Sl?Sl(e):new t.constructor(e);return t.copy(r),r}function Nu(t){var n=new t.constructor(t.byteLength);return new Nl(n).set(new Nl(t)),n}function Su(t,n){var e=n?Nu(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}function ju(t,n,e){return y(n?e(V(t),st):V(t),i,new t.constructor)}function Cu(t){var n=new t.constructor(t.source,Yn.exec(t));return n.lastIndex=t.lastIndex,n}function Au(t,n,e){return y(n?e(Z(t),st):Z(t),o,new t.constructor)}function Lu(t){return hs?cl(hs.call(t)):{}}function Tu(t,n){var e=n?Nu(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function Ou(t,n){if(t!==n){var e=t!==ut,r=null===t,u=t===t,i=vc(t),o=n!==ut,a=null===n,c=n===n,f=vc(n);if(!a&&!f&&!i&&t>n||i&&o&&c&&!a&&!f||r&&o&&c||!e&&c||!u)return 1;if(!r&&!i&&!f&&t<n||f&&e&&u&&!r&&!i||a&&e&&u||!o&&u||!c)return-1}return 0}function Ru(t,n,e){for(var r=-1,u=t.criteria,i=n.criteria,o=u.length,a=e.length;++r<o;){var c=Ou(u[r],i[r]);if(c){if(r>=a)return c;return c*("desc"==e[r]?-1:1)}}return t.index-n.index}function Pu(t,n,e,r){for(var u=-1,i=t.length,o=e.length,a=-1,c=n.length,f=Vl(i-o,0),l=rl(c+f),s=!r;++a<c;)l[a]=n[a];for(;++u<o;)(s||u<i)&&(l[e[u]]=t[u]);for(;f--;)l[a++]=t[u++];return l}function Iu(t,n,e,r){for(var u=-1,i=t.length,o=-1,a=e.length,c=-1,f=n.length,l=Vl(i-a,0),s=rl(l+f),h=!r;++u<l;)s[u]=t[u];for(var d=u;++c<f;)s[d+c]=n[c];for(;++o<a;)(h||u<i)&&(s[d+e[o]]=t[u++]);return s}function zu(t,n){var e=-1,r=t.length;for(n||(n=rl(r));++e<r;)n[e]=t[e];return n}function Du(t,n,e,r){var u=!e;e||(e={});for(var i=-1,o=n.length;++i<o;){var a=n[i],c=r?r(e[a],t[a],a,e,t):ut;c===ut&&(c=t[a]),u?tr(e,a,c):He(e,a,c)}return e}function qu(t,n){return Du(t,Es(t),n)}function Uu(t,n){return Du(t,Ns(t),n)}function Fu(t,n){return function(e,r){var u=yh(e)?c:Je,i=n?n():{};return u(e,t,bi(r,2),i)}}function Bu(t){return eu(function(n,e){var r=-1,u=e.length,i=u>1?e[u-1]:ut,o=u>2?e[2]:ut;for(i=t.length>3&&"function"==typeof i?(u--,i):ut,o&&Pi(e[0],e[1],o)&&(i=u<3?ut:i,u=1),n=cl(n);++r<u;){var a=e[r];a&&t(n,a,r,i)}return n})}function Wu(t,n){return function(e,r){if(null==e)return e;if(!Va(e))return t(e,r);for(var u=e.length,i=n?u:-1,o=cl(e);(n?i--:++i<u)&&!1!==r(o[i],i,o););return e}}function Yu(t){return function(n,e,r){for(var u=-1,i=cl(n),o=r(n),a=o.length;a--;){var c=o[t?a:++u];if(!1===e(i[c],c,i))break}return n}}function Hu(t,n,e){function r(){return(this&&this!==Oe&&this instanceof r?i:t).apply(u?e:this,arguments)}var u=n&vt,i=Gu(t);return r}function Vu(t){return function(n){n=Sc(n);var e=W(n)?tt(n):ut,r=e?e[0]:n.charAt(0),u=e?ku(e,1).join(""):n.slice(1);return r[t]()+u}}function $u(t){return function(n){return y(Nf(of(n).replace(ge,"")),t,"")}}function Gu(t){return function(){var n=arguments;switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3]);case 5:return new t(n[0],n[1],n[2],n[3],n[4]);case 6:return new t(n[0],n[1],n[2],n[3],n[4],n[5]);case 7:return new t(n[0],n[1],n[2],n[3],n[4],n[5],n[6])}var e=ps(t.prototype),r=t.apply(e,n);return uc(r)?r:e}}function Zu(t,n,e){function r(){for(var i=arguments.length,o=rl(i),c=i,f=xi(r);c--;)o[c]=arguments[c];var l=i<3&&o[0]!==f&&o[i-1]!==f?[]:G(o,f);return(i-=l.length)<e?oi(t,n,Ku,r.placeholder,ut,o,l,ut,ut,e-i):a(this&&this!==Oe&&this instanceof r?u:t,this,o)}var u=Gu(t);return r}function Xu(t){return function(n,e,r){var u=cl(n);if(!Va(n)){var i=bi(e,3);n=Uc(n),e=function(t){return i(u[t],t,u)}}var o=t(n,e,r);return o>-1?u[i?n[o]:o]:ut}}function Ju(t){return vi(function(n){var e=n.length,r=e,i=u.prototype.thru;for(t&&n.reverse();r--;){var o=n[r];if("function"!=typeof o)throw new sl(at);if(i&&!a&&"wrapper"==mi(o))var a=new u([],!0)}for(r=a?r:e;++r<e;){o=n[r];var c=mi(o),f="wrapper"==c?ks(o):ut;a=f&&Di(f[0])&&f[1]==(Mt|mt|bt|kt)&&!f[4].length&&1==f[9]?a[mi(f[0])].apply(a,f[3]):1==o.length&&Di(o)?a[c]():a.thru(o)}return function(){var t=arguments,r=t[0];if(a&&1==t.length&&yh(r))return a.plant(r).value();for(var u=0,i=e?n[u].apply(this,t):r;++u<e;)i=n[u].call(this,i);return i}})}function Ku(t,n,e,r,u,i,o,a,c,f){function l(){for(var y=arguments.length,_=rl(y),m=y;m--;)_[m]=arguments[m];if(p)var x=xi(l),b=U(_,x);if(r&&(_=Pu(_,r,u,p)),i&&(_=Iu(_,i,o,p)),y-=b,p&&y<f){var w=G(_,x);return oi(t,n,Ku,l.placeholder,e,_,w,a,c,f-y)}var M=h?e:this,k=d?M[t]:t;return y=_.length,a?_=Gi(_,a):g&&y>1&&_.reverse(),s&&c<y&&(_.length=c),this&&this!==Oe&&this instanceof l&&(k=v||Gu(k)),k.apply(M,_)}var s=n&Mt,h=n&vt,d=n&yt,p=n&(mt|xt),g=n&Et,v=d?ut:Gu(t);return l}function Qu(t,n){return function(e,r){return kr(e,t,n(r),{})}}function ti(t,n){return function(e,r){var u;if(e===ut&&r===ut)return n;if(e!==ut&&(u=e),r!==ut){if(u===ut)return r;"string"==typeof e||"string"==typeof r?(e=du(e),r=du(r)):(e=hu(e),r=hu(r)),u=t(e,r)}return u}}function ni(t){return vi(function(n){return n=g(n,P(bi())),eu(function(e){var r=this;return t(n,function(t){return a(t,r,e)})})})}function ei(t,n){n=n===ut?" ":du(n);var e=n.length;if(e<2)return e?nu(n,t):n;var r=nu(n,ql(t/Q(n)));return W(n)?ku(tt(r),0,t).join(""):r.slice(0,t)}function ri(t,n,e,r){function u(){for(var n=-1,c=arguments.length,f=-1,l=r.length,s=rl(l+c),h=this&&this!==Oe&&this instanceof u?o:t;++f<l;)s[f]=r[f];for(;c--;)s[f++]=arguments[++n];return a(h,i?e:this,s)}var i=n&vt,o=Gu(t);return u}function ui(t){return function(n,e,r){return r&&"number"!=typeof r&&Pi(n,e,r)&&(e=r=ut),n=bc(n),e===ut?(e=n,n=0):e=bc(e),r=r===ut?n<e?1:-1:bc(r),tu(n,e,r,t)}}function ii(t){return function(n,e){return"string"==typeof n&&"string"==typeof e||(n=kc(n),e=kc(e)),t(n,e)}}function oi(t,n,e,r,u,i,o,a,c,f){var l=n&mt,s=l?o:ut,h=l?ut:o,d=l?i:ut,p=l?ut:i;n|=l?bt:wt,(n&=~(l?wt:bt))&_t||(n&=~(vt|yt));var g=[t,n,u,d,s,p,h,a,c,f],v=e.apply(ut,g);return Di(t)&&Cs(v,g),v.placeholder=r,Zi(v,t,n)}function ai(t){var n=al[t];return function(t,e){if(t=kc(t),e=null==e?0:$l(wc(e),292)){var r=(Sc(t)+"e").split("e");return r=(Sc(n(r[0]+"e"+(+r[1]+e)))+"e").split("e"),+(r[0]+"e"+(+r[1]-e))}return n(t)}}function ci(t){return function(n){var e=Ss(n);return e==Zt?V(n):e==nn?X(n):R(n,t(n))}}function fi(t,n,e,r,u,i,o,a){var c=n&yt;if(!c&&"function"!=typeof t)throw new sl(at);var f=r?r.length:0;if(f||(n&=~(bt|wt),r=u=ut),o=o===ut?o:Vl(wc(o),0),a=a===ut?a:wc(a),f-=u?u.length:0,n&wt){var l=r,s=u;r=u=ut}var h=c?ut:ks(t),d=[t,n,e,r,u,l,s,i,o,a];if(h&&Wi(d,h),t=d[0],n=d[1],e=d[2],r=d[3],u=d[4],a=d[9]=d[9]===ut?c?0:t.length:Vl(d[9]-f,0),!a&&n&(mt|xt)&&(n&=~(mt|xt)),n&&n!=vt)p=n==mt||n==xt?Zu(t,n,a):n!=bt&&n!=(vt|bt)||u.length?Ku.apply(ut,d):ri(t,n,e,r);else var p=Hu(t,n,e);return Zi((h?ms:Cs)(p,d),t,n)}function li(t,n,e,r){return t===ut||Ha(t,pl[e])&&!yl.call(r,e)?n:t}function si(t,n,e,r,u,i){return uc(t)&&uc(n)&&(i.set(n,t),Yr(t,n,ut,si,i),i.delete(n)),t}function hi(t){return dc(t)?ut:t}function di(t,n,e,r,u,i){var o=e&pt,a=t.length,c=n.length;if(a!=c&&!(o&&c>a))return!1;var f=i.get(t);if(f&&i.get(n))return f==n;var l=-1,s=!0,h=e&gt?new ye:ut;for(i.set(t,n),i.set(n,t);++l<a;){var d=t[l],p=n[l];if(r)var g=o?r(p,d,l,n,t,i):r(d,p,l,t,n,i);if(g!==ut){if(g)continue;s=!1;break}if(h){if(!m(n,function(t,n){if(!z(h,n)&&(d===t||u(d,t,e,r,i)))return h.push(n)})){s=!1;break}}else if(d!==p&&!u(d,p,e,r,i)){s=!1;break}}return i.delete(t),i.delete(n),s}function pi(t,n,e,r,u,i,o){switch(e){case fn:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case cn:return!(t.byteLength!=n.byteLength||!i(new Nl(t),new Nl(n)));case Wt:case Yt:case Xt:return Ha(+t,+n);case Vt:return t.name==n.name&&t.message==n.message;case tn:case en:return t==n+"";case Zt:var a=V;case nn:var c=r&pt;if(a||(a=Z),t.size!=n.size&&!c)return!1;var f=o.get(t);if(f)return f==n;r|=gt,o.set(t,n);var l=di(a(t),a(n),r,u,i,o);return o.delete(t),l;case rn:if(hs)return hs.call(t)==hs.call(n)}return!1}function gi(t,n,e,r,u,i){var o=e&pt,a=yi(t),c=a.length;if(c!=yi(n).length&&!o)return!1;for(var f=c;f--;){var l=a[f];if(!(o?l in n:yl.call(n,l)))return!1}var s=i.get(t);if(s&&i.get(n))return s==n;var h=!0;i.set(t,n),i.set(n,t);for(var d=o;++f<c;){l=a[f];var p=t[l],g=n[l];if(r)var v=o?r(g,p,l,n,t,i):r(p,g,l,t,n,i);if(!(v===ut?p===g||u(p,g,e,r,i):v)){h=!1;break}d||(d="constructor"==l)}if(h&&!d){var y=t.constructor,_=n.constructor;y!=_&&"constructor"in t&&"constructor"in n&&!("function"==typeof y&&y instanceof y&&"function"==typeof _&&_ instanceof _)&&(h=!1)}return i.delete(t),i.delete(n),h}function vi(t){return Ls(Vi(t,ut,ho),t+"")}function yi(t){return yr(t,Uc,Es)}function _i(t){return yr(t,Fc,Ns)}function mi(t){for(var n=t.name+"",e=is[n],r=yl.call(is,n)?e.length:0;r--;){var u=e[r],i=u.func;if(null==i||i==t)return u.name}return n}function xi(t){return(yl.call(e,"placeholder")?e:t).placeholder}function bi(){var t=e.iteratee||Tf;return t=t===Tf?zr:t,arguments.length?t(arguments[0],arguments[1]):t}function wi(t,n){var e=t.__data__;return zi(n)?e["string"==typeof n?"string":"hash"]:e.map}function Mi(t){for(var n=Uc(t),e=n.length;e--;){var r=n[e],u=t[r];n[e]=[r,u,Fi(u)]}return n}function ki(t,n){var e=B(t,n);return Or(e)?e:ut}function Ei(t){var n=yl.call(t,Rl),e=t[Rl];try{t[Rl]=ut;var r=!0}catch(t){}var u=xl.call(t);return r&&(n?t[Rl]=e:delete t[Rl]),u}function Ni(t,n,e){for(var r=-1,u=e.length;++r<u;){var i=e[r],o=i.size;switch(i.type){case"drop":t+=o;break;case"dropRight":n-=o;break;case"take":n=$l(n,t+o);break;case"takeRight":t=Vl(t,n-o)}}return{start:t,end:n}}function Si(t){var n=t.match(qn);return n?n[1].split(Un):[]}function ji(t,n,e){n=Mu(n,t);for(var r=-1,u=n.length,i=!1;++r<u;){var o=Ki(n[r]);if(!(i=null!=t&&e(t,o)))break;t=t[o]}return i||++r!=u?i:!!(u=null==t?0:t.length)&&rc(u)&&Ri(o,u)&&(yh(t)||vh(t))}function Ci(t){var n=t.length,e=t.constructor(n);return n&&"string"==typeof t[0]&&yl.call(t,"index")&&(e.index=t.index,e.input=t.input),e}function Ai(t){return"function"!=typeof t.constructor||Ui(t)?{}:ps(jl(t))}function Li(t,n,e,r){var u=t.constructor;switch(n){case cn:return Nu(t);case Wt:case Yt:return new u(+t);case fn:return Su(t,r);case ln:case sn:case hn:case dn:case pn:case gn:case vn:case yn:case _n:return Tu(t,r);case Zt:return ju(t,r,e);case Xt:case en:return new u(t);case tn:return Cu(t);case nn:return Au(t,r,e);case rn:return Lu(t)}}function Ti(t,n){var e=n.length;if(!e)return t;var r=e-1;return n[r]=(e>1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(Dn,"{\n/* [wrapped with "+n+"] */\n")}function Oi(t){return yh(t)||vh(t)||!!(Tl&&t&&t[Tl])}function Ri(t,n){return!!(n=null==n?Ot:n)&&("number"==typeof t||Zn.test(t))&&t>-1&&t%1==0&&t<n}function Pi(t,n,e){if(!uc(e))return!1;var r=typeof n;return!!("number"==r?Va(e)&&Ri(n,e.length):"string"==r&&n in e)&&Ha(e[n],t)}function Ii(t,n){if(yh(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!vc(t))||(An.test(t)||!Cn.test(t)||null!=n&&t in cl(n))}function zi(t){var n=typeof t;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t}function Di(t){var n=mi(t),r=e[n];if("function"!=typeof r||!(n in x.prototype))return!1;if(t===r)return!0;var u=ks(r);return!!u&&t===u[0]}function qi(t){return!!ml&&ml in t}function Ui(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||pl)}function Fi(t){return t===t&&!uc(t)}function Bi(t,n){return function(e){return null!=e&&(e[t]===n&&(n!==ut||t in cl(e)))}}function Wi(t,n){var e=t[1],r=n[1],u=e|r,i=u<(vt|yt|Mt),o=r==Mt&&e==mt||r==Mt&&e==kt&&t[7].length<=n[8]||r==(Mt|kt)&&n[7].length<=n[8]&&e==mt;if(!i&&!o)return t;r&vt&&(t[2]=n[2],u|=e&vt?0:_t);var a=n[3];if(a){var c=t[3];t[3]=c?Pu(c,a,n[4]):a,t[4]=c?G(t[3],lt):n[4]}return a=n[5],a&&(c=t[5],t[5]=c?Iu(c,a,n[6]):a,t[6]=c?G(t[5],lt):n[6]),a=n[7],a&&(t[7]=a),r&Mt&&(t[8]=null==t[8]?n[8]:$l(t[8],n[8])),null==t[9]&&(t[9]=n[9]),t[0]=n[0],t[1]=u,t}function Yi(t){var n=[];if(null!=t)for(var e in cl(t))n.push(e);return n}function Hi(t){return xl.call(t)}function Vi(t,n,e){return n=Vl(n===ut?t.length-1:n,0),function(){for(var r=arguments,u=-1,i=Vl(r.length-n,0),o=rl(i);++u<i;)o[u]=r[n+u];u=-1;for(var c=rl(n+1);++u<n;)c[u]=r[u];return c[n]=e(o),a(t,this,c)}}function $i(t,n){return n.length<2?t:vr(t,au(n,0,-1))}function Gi(t,n){for(var e=t.length,r=$l(n.length,e),u=zu(t);r--;){var i=n[r];t[r]=Ri(i,e)?u[i]:ut}return t}function Zi(t,n,e){var r=n+"";return Ls(t,Ti(r,to(Si(r),e)))}function Xi(t){var n=0,e=0;return function(){var r=Gl(),u=Ct-(r-e);if(e=r,u>0){if(++n>=jt)return arguments[0]}else n=0;return t.apply(ut,arguments)}}function Ji(t,n){var e=-1,r=t.length,u=r-1;for(n=n===ut?r:n;++e<n;){var i=Qr(e,u),o=t[i];t[i]=t[e],t[e]=o}return t.length=n,t}function Ki(t){if("string"==typeof t||vc(t))return t;var n=t+"";return"0"==n&&1/t==-Tt?"-0":n}function Qi(t){if(null!=t){try{return vl.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function to(t,n){return f(qt,function(e){var r="_."+e[0];n&e[1]&&!d(t,r)&&t.push(r)}),t.sort()}function no(t){if(t instanceof x)return t.clone();var n=new u(t.__wrapped__,t.__chain__);return n.__actions__=zu(t.__actions__),n.__index__=t.__index__,n.__values__=t.__values__,n}function eo(t,n,e){n=(e?Pi(t,n,e):n===ut)?1:Vl(wc(n),0);var r=null==t?0:t.length;if(!r||n<1)return[];for(var u=0,i=0,o=rl(ql(r/n));u<r;)o[i++]=au(t,u,u+=n);return o}function ro(t){for(var n=-1,e=null==t?0:t.length,r=0,u=[];++n<e;){var i=t[n];i&&(u[r++]=i)}return u}function uo(){var t=arguments.length;if(!t)return[];for(var n=rl(t-1),e=arguments[0],r=t;r--;)n[r-1]=arguments[r];return v(yh(e)?zu(e):[e],hr(n,1))}function io(t,n,e){var r=null==t?0:t.length;return r?(n=e||n===ut?1:wc(n),au(t,n<0?0:n,r)):[]}function oo(t,n,e){var r=null==t?0:t.length;return r?(n=e||n===ut?1:wc(n),n=r-n,au(t,0,n<0?0:n)):[]}function ao(t,n){return t&&t.length?yu(t,bi(n,3),!0,!0):[]}function co(t,n){return t&&t.length?yu(t,bi(n,3),!0):[]}function fo(t,n,e,r){var u=null==t?0:t.length;return u?(e&&"number"!=typeof e&&Pi(t,n,e)&&(e=0,r=u),lr(t,n,e,r)):[]}function lo(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var u=null==e?0:wc(e);return u<0&&(u=Vl(r+u,0)),M(t,bi(n,3),u)}function so(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var u=r-1;return e!==ut&&(u=wc(e),u=e<0?Vl(r+u,0):$l(u,r-1)),M(t,bi(n,3),u,!0)}function ho(t){return(null==t?0:t.length)?hr(t,1):[]}function po(t){return(null==t?0:t.length)?hr(t,Tt):[]}function go(t,n){return(null==t?0:t.length)?(n=n===ut?1:wc(n),hr(t,n)):[]}function vo(t){for(var n=-1,e=null==t?0:t.length,r={};++n<e;){var u=t[n];r[u[0]]=u[1]}return r}function yo(t){return t&&t.length?t[0]:ut}function _o(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var u=null==e?0:wc(e);return u<0&&(u=Vl(r+u,0)),k(t,n,u)}function mo(t){return(null==t?0:t.length)?au(t,0,-1):[]}function xo(t,n){return null==t?"":Yl.call(t,n)}function bo(t){var n=null==t?0:t.length;return n?t[n-1]:ut}function wo(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var u=r;return e!==ut&&(u=wc(e),u=u<0?Vl(r+u,0):$l(u,r-1)),n===n?K(t,n,u):M(t,N,u,!0)}function Mo(t,n){return t&&t.length?Vr(t,wc(n)):ut}function ko(t,n){return t&&t.length&&n&&n.length?Jr(t,n):t}function Eo(t,n,e){return t&&t.length&&n&&n.length?Jr(t,n,bi(e,2)):t}function No(t,n,e){return t&&t.length&&n&&n.length?Jr(t,n,ut,e):t}function So(t,n){var e=[];if(!t||!t.length)return e;var r=-1,u=[],i=t.length;for(n=bi(n,3);++r<i;){var o=t[r];n(o,r,t)&&(e.push(o),u.push(r))}return Kr(t,u),e}function jo(t){return null==t?t:Jl.call(t)}function Co(t,n,e){var r=null==t?0:t.length;return r?(e&&"number"!=typeof e&&Pi(t,n,e)?(n=0,e=r):(n=null==n?0:wc(n),e=e===ut?r:wc(e)),au(t,n,e)):[]}function Ao(t,n){return fu(t,n)}function Lo(t,n,e){return lu(t,n,bi(e,2))}function To(t,n){var e=null==t?0:t.length;if(e){var r=fu(t,n);if(r<e&&Ha(t[r],n))return r}return-1}function Oo(t,n){return fu(t,n,!0)}function Ro(t,n,e){return lu(t,n,bi(e,2),!0)}function Po(t,n){if(null==t?0:t.length){var e=fu(t,n,!0)-1;if(Ha(t[e],n))return e}return-1}function Io(t){return t&&t.length?su(t):[]}function zo(t,n){return t&&t.length?su(t,bi(n,2)):[]}function Do(t){var n=null==t?0:t.length;return n?au(t,1,n):[]}function qo(t,n,e){return t&&t.length?(n=e||n===ut?1:wc(n),au(t,0,n<0?0:n)):[]}function Uo(t,n,e){var r=null==t?0:t.length;return r?(n=e||n===ut?1:wc(n),n=r-n,au(t,n<0?0:n,r)):[]}function Fo(t,n){return t&&t.length?yu(t,bi(n,3),!1,!0):[]}function Bo(t,n){return t&&t.length?yu(t,bi(n,3)):[]}function Wo(t){return t&&t.length?pu(t):[]}function Yo(t,n){return t&&t.length?pu(t,bi(n,2)):[]}function Ho(t,n){return n="function"==typeof n?n:ut,t&&t.length?pu(t,ut,n):[]}function Vo(t){if(!t||!t.length)return[];var n=0;return t=h(t,function(t){if($a(t))return n=Vl(t.length,n),!0}),O(n,function(n){return g(t,j(n))})}function $o(t,n){if(!t||!t.length)return[];var e=Vo(t);return null==n?e:g(e,function(t){return a(n,ut,t)})}function Go(t,n){return xu(t||[],n||[],He)}function Zo(t,n){return xu(t||[],n||[],iu)}function Xo(t){var n=e(t);return n.__chain__=!0,n}function Jo(t,n){return n(t),t}function Ko(t,n){return n(t)}function Qo(){return Xo(this)}function ta(){return new u(this.value(),this.__chain__)}function na(){this.__values__===ut&&(this.__values__=xc(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?ut:this.__values__[this.__index__++]}}function ea(){return this}function ra(t){for(var n,e=this;e instanceof r;){var u=no(e);u.__index__=0,u.__values__=ut,n?i.__wrapped__=u:n=u;var i=u;e=e.__wrapped__}return i.__wrapped__=t,n}function ua(){var t=this.__wrapped__;if(t instanceof x){var n=t;return this.__actions__.length&&(n=new x(this)),n=n.reverse(),n.__actions__.push({func:Ko,args:[jo],thisArg:ut}),new u(n,this.__chain__)}return this.thru(jo)}function ia(){return _u(this.__wrapped__,this.__actions__)}function oa(t,n,e){var r=yh(t)?s:cr;return e&&Pi(t,n,e)&&(n=ut),r(t,bi(n,3))}function aa(t,n){return(yh(t)?h:sr)(t,bi(n,3))}function ca(t,n){return hr(pa(t,n),1)}function fa(t,n){return hr(pa(t,n),Tt)}function la(t,n,e){return e=e===ut?1:wc(e),hr(pa(t,n),e)}function sa(t,n){return(yh(t)?f:gs)(t,bi(n,3))}function ha(t,n){return(yh(t)?l:vs)(t,bi(n,3))}function da(t,n,e,r){t=Va(t)?t:Qc(t),e=e&&!r?wc(e):0;var u=t.length;return e<0&&(e=Vl(u+e,0)),gc(t)?e<=u&&t.indexOf(n,e)>-1:!!u&&k(t,n,e)>-1}function pa(t,n){return(yh(t)?g:Fr)(t,bi(n,3))}function ga(t,n,e,r){return null==t?[]:(yh(n)||(n=null==n?[]:[n]),e=r?ut:e,yh(e)||(e=null==e?[]:[e]),$r(t,n,e))}function va(t,n,e){var r=yh(t)?y:A,u=arguments.length<3;return r(t,bi(n,4),e,u,gs)}function ya(t,n,e){var r=yh(t)?_:A,u=arguments.length<3;return r(t,bi(n,4),e,u,vs)}function _a(t,n){return(yh(t)?h:sr)(t,Ta(bi(n,3)))}function ma(t){return(yh(t)?Re:ru)(t)}function xa(t,n,e){return n=(e?Pi(t,n,e):n===ut)?1:wc(n),(yh(t)?Pe:uu)(t,n)}function ba(t){return(yh(t)?ze:ou)(t)}function wa(t){if(null==t)return 0;if(Va(t))return gc(t)?Q(t):t.length;var n=Ss(t);return n==Zt||n==nn?t.size:Dr(t).length}function Ma(t,n,e){var r=yh(t)?m:cu;return e&&Pi(t,n,e)&&(n=ut),r(t,bi(n,3))}function ka(t,n){if("function"!=typeof n)throw new sl(at);return t=wc(t),function(){if(--t<1)return n.apply(this,arguments)}}function Ea(t,n,e){return n=e?ut:n,n=t&&null==n?t.length:n,fi(t,Mt,ut,ut,ut,ut,n)}function Na(t,n){var e;if("function"!=typeof n)throw new sl(at);return t=wc(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=ut),e}}function Sa(t,n,e){n=e?ut:n;var r=fi(t,mt,ut,ut,ut,ut,ut,n);return r.placeholder=Sa.placeholder,r}function ja(t,n,e){n=e?ut:n;var r=fi(t,xt,ut,ut,ut,ut,ut,n);return r.placeholder=ja.placeholder,r}function Ca(t,n,e){function r(n){var e=h,r=d;return h=d=ut,_=n,g=t.apply(r,e)}function u(t){return _=t,v=As(a,n),m?r(t):g}function i(t){var e=t-y,r=t-_,u=n-e;return x?$l(u,p-r):u}function o(t){var e=t-y,r=t-_;return y===ut||e>=n||e<0||x&&r>=p}function a(){var t=ih();if(o(t))return c(t);v=As(a,i(t))}function c(t){return v=ut,b&&h?r(t):(h=d=ut,g)}function f(){v!==ut&&ws(v),_=0,h=y=d=v=ut}function l(){return v===ut?g:c(ih())}function s(){var t=ih(),e=o(t);if(h=arguments,d=this,y=t,e){if(v===ut)return u(y);if(x)return v=As(a,n),r(y)}return v===ut&&(v=As(a,n)),g}var h,d,p,g,v,y,_=0,m=!1,x=!1,b=!0;if("function"!=typeof t)throw new sl(at);return n=kc(n)||0,uc(e)&&(m=!!e.leading,x="maxWait"in e,p=x?Vl(kc(e.maxWait)||0,n):p,b="trailing"in e?!!e.trailing:b),s.cancel=f,s.flush=l,s}function Aa(t){return fi(t,Et)}function La(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new sl(at);var e=function(){var r=arguments,u=n?n.apply(this,r):r[0],i=e.cache;if(i.has(u))return i.get(u);var o=t.apply(this,r);return e.cache=i.set(u,o)||i,o};return e.cache=new(La.Cache||fe),e}function Ta(t){if("function"!=typeof t)throw new sl(at);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}function Oa(t){return Na(2,t)}function Ra(t,n){if("function"!=typeof t)throw new sl(at);return n=n===ut?n:wc(n),eu(t,n)}function Pa(t,n){if("function"!=typeof t)throw new sl(at);return n=null==n?0:Vl(wc(n),0),eu(function(e){var r=e[n],u=ku(e,0,n);return r&&v(u,r),a(t,this,u)})}function Ia(t,n,e){var r=!0,u=!0;if("function"!=typeof t)throw new sl(at);return uc(e)&&(r="leading"in e?!!e.leading:r,u="trailing"in e?!!e.trailing:u),Ca(t,n,{leading:r,maxWait:n,trailing:u})}function za(t){return Ea(t,1)}function Da(t,n){return sh(wu(n),t)}function qa(){if(!arguments.length)return[];var t=arguments[0];return yh(t)?t:[t]}function Ua(t){return rr(t,dt)}function Fa(t,n){return n="function"==typeof n?n:ut,rr(t,dt,n)}function Ba(t){return rr(t,st|dt)}function Wa(t,n){return n="function"==typeof n?n:ut,rr(t,st|dt,n)}function Ya(t,n){return null==n||ir(t,n,Uc(n))}function Ha(t,n){return t===n||t!==t&&n!==n}function Va(t){return null!=t&&rc(t.length)&&!nc(t)}function $a(t){return ic(t)&&Va(t)}function Ga(t){return!0===t||!1===t||ic(t)&&_r(t)==Wt}function Za(t){return ic(t)&&1===t.nodeType&&!dc(t)}function Xa(t){if(null==t)return!0;if(Va(t)&&(yh(t)||"string"==typeof t||"function"==typeof t.splice||mh(t)||kh(t)||vh(t)))return!t.length;var n=Ss(t);if(n==Zt||n==nn)return!t.size;if(Ui(t))return!Dr(t).length;for(var e in t)if(yl.call(t,e))return!1;return!0}function Ja(t,n){return Cr(t,n)}function Ka(t,n,e){e="function"==typeof e?e:ut;var r=e?e(t,n):ut;return r===ut?Cr(t,n,ut,e):!!r}function Qa(t){if(!ic(t))return!1;var n=_r(t);return n==Vt||n==Ht||"string"==typeof t.message&&"string"==typeof t.name&&!dc(t)}function tc(t){return"number"==typeof t&&Wl(t)}function nc(t){if(!uc(t))return!1;var n=_r(t);return n==$t||n==Gt||n==Bt||n==Qt}function ec(t){return"number"==typeof t&&t==wc(t)}function rc(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Ot}function uc(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function ic(t){return null!=t&&"object"==typeof t}function oc(t,n){return t===n||Tr(t,n,Mi(n))}function ac(t,n,e){return e="function"==typeof e?e:ut,Tr(t,n,Mi(n),e)}function cc(t){return hc(t)&&t!=+t}function fc(t){if(js(t))throw new il(ot);return Or(t)}function lc(t){return null===t}function sc(t){return null==t}function hc(t){return"number"==typeof t||ic(t)&&_r(t)==Xt}function dc(t){if(!ic(t)||_r(t)!=Kt)return!1;var n=jl(t);if(null===n)return!0;var e=yl.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&vl.call(e)==bl}function pc(t){return ec(t)&&t>=-Ot&&t<=Ot}function gc(t){return"string"==typeof t||!yh(t)&&ic(t)&&_r(t)==en}function vc(t){return"symbol"==typeof t||ic(t)&&_r(t)==rn}function yc(t){return t===ut}function _c(t){return ic(t)&&Ss(t)==on}function mc(t){return ic(t)&&_r(t)==an}function xc(t){if(!t)return[];if(Va(t))return gc(t)?tt(t):zu(t);if(Ol&&t[Ol])return H(t[Ol]());var n=Ss(t);return(n==Zt?V:n==nn?Z:Qc)(t)}function bc(t){if(!t)return 0===t?t:0;if((t=kc(t))===Tt||t===-Tt){return(t<0?-1:1)*Rt}return t===t?t:0}function wc(t){var n=bc(t),e=n%1;return n===n?e?n-e:n:0}function Mc(t){return t?er(wc(t),0,It):0}function kc(t){if("number"==typeof t)return t;if(vc(t))return Pt;if(uc(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=uc(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Pn,"");var e=Vn.test(t);return e||Gn.test(t)?Ae(t.slice(2),e?2:8):Hn.test(t)?Pt:+t}function Ec(t){return Du(t,Fc(t))}function Nc(t){return t?er(wc(t),-Ot,Ot):0===t?t:0}function Sc(t){return null==t?"":du(t)}function jc(t,n){var e=ps(t);return null==n?e:Ke(e,n)}function Cc(t,n){return w(t,bi(n,3),dr)}function Ac(t,n){return w(t,bi(n,3),pr)}function Lc(t,n){return null==t?t:ys(t,bi(n,3),Fc)}function Tc(t,n){return null==t?t:_s(t,bi(n,3),Fc)}function Oc(t,n){return t&&dr(t,bi(n,3))}function Rc(t,n){return t&&pr(t,bi(n,3))}function Pc(t){return null==t?[]:gr(t,Uc(t))}function Ic(t){return null==t?[]:gr(t,Fc(t))}function zc(t,n,e){var r=null==t?ut:vr(t,n);return r===ut?e:r}function Dc(t,n){return null!=t&&ji(t,n,xr)}function qc(t,n){return null!=t&&ji(t,n,br)}function Uc(t){return Va(t)?Te(t):Dr(t)}function Fc(t){return Va(t)?Te(t,!0):qr(t)}function Bc(t,n){var e={};return n=bi(n,3),dr(t,function(t,r,u){tr(e,n(t,r,u),t)}),e}function Wc(t,n){var e={};return n=bi(n,3),dr(t,function(t,r,u){tr(e,r,n(t,r,u))}),e}function Yc(t,n){return Hc(t,Ta(bi(n)))}function Hc(t,n){if(null==t)return{};var e=g(_i(t),function(t){return[t]});return n=bi(n),Zr(t,e,function(t,e){return n(t,e[0])})}function Vc(t,n,e){n=Mu(n,t);var r=-1,u=n.length;for(u||(u=1,t=ut);++r<u;){var i=null==t?ut:t[Ki(n[r])];i===ut&&(r=u,i=e),t=nc(i)?i.call(t):i}return t}function $c(t,n,e){return null==t?t:iu(t,n,e)}function Gc(t,n,e,r){return r="function"==typeof r?r:ut,null==t?t:iu(t,n,e,r)}function Zc(t,n,e){var r=yh(t),u=r||mh(t)||kh(t);if(n=bi(n,4),null==e){var i=t&&t.constructor;e=u?r?new i:[]:uc(t)&&nc(i)?ps(jl(t)):{}}return(u?f:dr)(t,function(t,r,u){return n(e,t,r,u)}),e}function Xc(t,n){return null==t||gu(t,n)}function Jc(t,n,e){return null==t?t:vu(t,n,wu(e))}function Kc(t,n,e,r){return r="function"==typeof r?r:ut,null==t?t:vu(t,n,wu(e),r)}function Qc(t){return null==t?[]:I(t,Uc(t))}function tf(t){return null==t?[]:I(t,Fc(t))}function nf(t,n,e){return e===ut&&(e=n,n=ut),e!==ut&&(e=kc(e),e=e===e?e:0),n!==ut&&(n=kc(n),n=n===n?n:0),er(kc(t),n,e)}function ef(t,n,e){return n=bc(n),e===ut?(e=n,n=0):e=bc(e),t=kc(t),wr(t,n,e)}function rf(t,n,e){if(e&&"boolean"!=typeof e&&Pi(t,n,e)&&(n=e=ut),e===ut&&("boolean"==typeof n?(e=n,n=ut):"boolean"==typeof t&&(e=t,t=ut)),t===ut&&n===ut?(t=0,n=1):(t=bc(t),n===ut?(n=t,t=0):n=bc(n)),t>n){var r=t;t=n,n=r}if(e||t%1||n%1){var u=Xl();return $l(t+u*(n-t+Ce("1e-"+((u+"").length-1))),n)}return Qr(t,n)}function uf(t){return Xh(Sc(t).toLowerCase())}function of(t){return(t=Sc(t))&&t.replace(Xn,Ve).replace(ve,"")}function af(t,n,e){t=Sc(t),n=du(n);var r=t.length;e=e===ut?r:er(wc(e),0,r);var u=e;return(e-=n.length)>=0&&t.slice(e,u)==n}function cf(t){return t=Sc(t),t&&En.test(t)?t.replace(Mn,$e):t}function ff(t){return t=Sc(t),t&&Rn.test(t)?t.replace(On,"\\$&"):t}function lf(t,n,e){t=Sc(t),n=wc(n);var r=n?Q(t):0;if(!n||r>=n)return t;var u=(n-r)/2;return ei(Ul(u),e)+t+ei(ql(u),e)}function sf(t,n,e){t=Sc(t),n=wc(n);var r=n?Q(t):0;return n&&r<n?t+ei(n-r,e):t}function hf(t,n,e){t=Sc(t),n=wc(n);var r=n?Q(t):0;return n&&r<n?ei(n-r,e)+t:t}function df(t,n,e){return e||null==n?n=0:n&&(n=+n),Zl(Sc(t).replace(In,""),n||0)}function pf(t,n,e){return n=(e?Pi(t,n,e):n===ut)?1:wc(n),nu(Sc(t),n)}function gf(){var t=arguments,n=Sc(t[0]);return t.length<3?n:n.replace(t[1],t[2])}function vf(t,n,e){return e&&"number"!=typeof e&&Pi(t,n,e)&&(n=e=ut),(e=e===ut?It:e>>>0)?(t=Sc(t),t&&("string"==typeof n||null!=n&&!wh(n))&&!(n=du(n))&&W(t)?ku(tt(t),0,e):t.split(n,e)):[]}function yf(t,n,e){return t=Sc(t),e=null==e?0:er(wc(e),0,t.length),n=du(n),t.slice(e,e+n.length)==n}function _f(t,n,r){var u=e.templateSettings;r&&Pi(t,n,r)&&(n=ut),t=Sc(t),n=Ch({},n,u,li);var i,o,a=Ch({},n.imports,u.imports,li),c=Uc(a),f=I(a,c),l=0,s=n.interpolate||Jn,h="__p += '",d=fl((n.escape||Jn).source+"|"+s.source+"|"+(s===jn?Wn:Jn).source+"|"+(n.evaluate||Jn).source+"|$","g"),p="//# sourceURL="+("sourceURL"in n?n.sourceURL:"lodash.templateSources["+ ++we+"]")+"\n";t.replace(d,function(n,e,r,u,a,c){return r||(r=u),h+=t.slice(l,c).replace(Kn,F),e&&(i=!0,h+="' +\n__e("+e+") +\n'"),a&&(o=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=c+n.length,n}),h+="';\n";var g=n.variable;g||(h="with (obj) {\n"+h+"\n}\n"),h=(o?h.replace(mn,""):h).replace(xn,"$1").replace(bn,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var v=Jh(function(){return ol(c,p+"return "+h).apply(ut,f)});if(v.source=h,Qa(v))throw v;return v}function mf(t){return Sc(t).toLowerCase()}function xf(t){return Sc(t).toUpperCase()}function bf(t,n,e){if((t=Sc(t))&&(e||n===ut))return t.replace(Pn,"");if(!t||!(n=du(n)))return t;var r=tt(t),u=tt(n);return ku(r,D(r,u),q(r,u)+1).join("")}function wf(t,n,e){if((t=Sc(t))&&(e||n===ut))return t.replace(zn,"");if(!t||!(n=du(n)))return t;var r=tt(t);return ku(r,0,q(r,tt(n))+1).join("")}function Mf(t,n,e){if((t=Sc(t))&&(e||n===ut))return t.replace(In,"");if(!t||!(n=du(n)))return t;var r=tt(t);return ku(r,D(r,tt(n))).join("")}function kf(t,n){var e=Nt,r=St;if(uc(n)){var u="separator"in n?n.separator:u;e="length"in n?wc(n.length):e,r="omission"in n?du(n.omission):r}t=Sc(t);var i=t.length;if(W(t)){var o=tt(t);i=o.length}if(e>=i)return t;var a=e-Q(r);if(a<1)return r;var c=o?ku(o,0,a).join(""):t.slice(0,a);if(u===ut)return c+r;if(o&&(a+=c.length-a),wh(u)){if(t.slice(a).search(u)){var f,l=c;for(u.global||(u=fl(u.source,Sc(Yn.exec(u))+"g")),u.lastIndex=0;f=u.exec(l);)var s=f.index;c=c.slice(0,s===ut?a:s)}}else if(t.indexOf(du(u),a)!=a){var h=c.lastIndexOf(u);h>-1&&(c=c.slice(0,h))}return c+r}function Ef(t){return t=Sc(t),t&&kn.test(t)?t.replace(wn,Ge):t}function Nf(t,n,e){return t=Sc(t),n=e?ut:n,n===ut?Y(t)?rt(t):b(t):t.match(n)||[]}function Sf(t){var n=null==t?0:t.length,e=bi();return t=n?g(t,function(t){if("function"!=typeof t[1])throw new sl(at);return[e(t[0]),t[1]]}):[],eu(function(e){for(var r=-1;++r<n;){var u=t[r];if(a(u[0],this,e))return a(u[1],this,e)}})}function jf(t){return ur(rr(t,st))}function Cf(t){return function(){return t}}function Af(t,n){return null==t||t!==t?n:t}function Lf(t){return t}function Tf(t){return zr("function"==typeof t?t:rr(t,st))}function Of(t){return Br(rr(t,st))}function Rf(t,n){return Wr(t,rr(n,st))}function Pf(t,n,e){var r=Uc(n),u=gr(n,r);null!=e||uc(n)&&(u.length||!r.length)||(e=n,n=t,t=this,u=gr(n,Uc(n)));var i=!(uc(e)&&"chain"in e&&!e.chain),o=nc(t);return f(u,function(e){var r=n[e];t[e]=r,o&&(t.prototype[e]=function(){var n=this.__chain__;if(i||n){var e=t(this.__wrapped__);return(e.__actions__=zu(this.__actions__)).push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,v([this.value()],arguments))})}),t}function If(){return Oe._===this&&(Oe._=wl),this}function zf(){}function Df(t){return t=wc(t),eu(function(n){return Vr(n,t)})}function qf(t){return Ii(t)?j(Ki(t)):Xr(t)}function Uf(t){return function(n){return null==t?ut:vr(t,n)}}function Ff(){return[]}function Bf(){return!1}function Wf(){return{}}function Yf(){return""}function Hf(){return!0}function Vf(t,n){if((t=wc(t))<1||t>Ot)return[];var e=It,r=$l(t,It);n=bi(n),t-=It;for(var u=O(r,n);++e<t;)n(e);return u}function $f(t){return yh(t)?g(t,Ki):vc(t)?[t]:zu(Ts(Sc(t)))}function Gf(t){var n=++_l;return Sc(t)+n}function Zf(t){return t&&t.length?fr(t,Lf,mr):ut}function Xf(t,n){return t&&t.length?fr(t,bi(n,2),mr):ut}function Jf(t){return S(t,Lf)}function Kf(t,n){return S(t,bi(n,2))}function Qf(t){return t&&t.length?fr(t,Lf,Ur):ut}function tl(t,n){return t&&t.length?fr(t,bi(n,2),Ur):ut}function nl(t){return t&&t.length?T(t,Lf):0}function el(t,n){return t&&t.length?T(t,bi(n,2)):0}n=null==n?Oe:Ze.defaults(Oe.Object(),n,Ze.pick(Oe,be));var rl=n.Array,ul=n.Date,il=n.Error,ol=n.Function,al=n.Math,cl=n.Object,fl=n.RegExp,ll=n.String,sl=n.TypeError,hl=rl.prototype,dl=ol.prototype,pl=cl.prototype,gl=n["__core-js_shared__"],vl=dl.toString,yl=pl.hasOwnProperty,_l=0,ml=function(){var t=/[^.]+$/.exec(gl&&gl.keys&&gl.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),xl=pl.toString,bl=vl.call(cl),wl=Oe._,Ml=fl("^"+vl.call(yl).replace(On,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kl=Ie?n.Buffer:ut,El=n.Symbol,Nl=n.Uint8Array,Sl=kl?kl.allocUnsafe:ut,jl=$(cl.getPrototypeOf,cl),Cl=cl.create,Al=pl.propertyIsEnumerable,Ll=hl.splice,Tl=El?El.isConcatSpreadable:ut,Ol=El?El.iterator:ut,Rl=El?El.toStringTag:ut,Pl=function(){try{var t=ki(cl,"defineProperty");return t({},"",{}),t}catch(t){}}(),Il=n.clearTimeout!==Oe.clearTimeout&&n.clearTimeout,zl=ul&&ul.now!==Oe.Date.now&&ul.now,Dl=n.setTimeout!==Oe.setTimeout&&n.setTimeout,ql=al.ceil,Ul=al.floor,Fl=cl.getOwnPropertySymbols,Bl=kl?kl.isBuffer:ut,Wl=n.isFinite,Yl=hl.join,Hl=$(cl.keys,cl),Vl=al.max,$l=al.min,Gl=ul.now,Zl=n.parseInt,Xl=al.random,Jl=hl.reverse,Kl=ki(n,"DataView"),Ql=ki(n,"Map"),ts=ki(n,"Promise"),ns=ki(n,"Set"),es=ki(n,"WeakMap"),rs=ki(cl,"create"),us=es&&new es,is={},os=Qi(Kl),as=Qi(Ql),cs=Qi(ts),fs=Qi(ns),ls=Qi(es),ss=El?El.prototype:ut,hs=ss?ss.valueOf:ut,ds=ss?ss.toString:ut,ps=function(){function t(){}return function(n){if(!uc(n))return{};if(Cl)return Cl(n);t.prototype=n;var e=new t;return t.prototype=ut,e}}();e.templateSettings={escape:Nn,evaluate:Sn,interpolate:jn,variable:"",imports:{_:e}},e.prototype=r.prototype,e.prototype.constructor=e,u.prototype=ps(r.prototype),u.prototype.constructor=u,x.prototype=ps(r.prototype),x.prototype.constructor=x,et.prototype.clear=Fn,et.prototype.delete=Qn,et.prototype.get=te,et.prototype.has=ne,et.prototype.set=ee,re.prototype.clear=ue,re.prototype.delete=ie,re.prototype.get=oe,re.prototype.has=ae,re.prototype.set=ce,fe.prototype.clear=le,fe.prototype.delete=se,fe.prototype.get=he,fe.prototype.has=de,fe.prototype.set=pe,ye.prototype.add=ye.prototype.push=_e,ye.prototype.has=me,xe.prototype.clear=Ee,xe.prototype.delete=Ne,xe.prototype.get=Se,xe.prototype.has=je,xe.prototype.set=Le;var gs=Wu(dr),vs=Wu(pr,!0),ys=Yu(),_s=Yu(!0),ms=us?function(t,n){return us.set(t,n),t}:Lf,xs=Pl?function(t,n){return Pl(t,"toString",{configurable:!0,enumerable:!1,value:Cf(n),writable:!0})}:Lf,bs=eu,ws=Il||function(t){return Oe.clearTimeout(t)},Ms=ns&&1/Z(new ns([,-0]))[1]==Tt?function(t){return new ns(t)}:zf,ks=us?function(t){return us.get(t)}:zf,Es=Fl?function(t){return null==t?[]:(t=cl(t),h(Fl(t),function(n){return Al.call(t,n)}))}:Ff,Ns=Fl?function(t){for(var n=[];t;)v(n,Es(t)),t=jl(t);return n}:Ff,Ss=_r;(Kl&&Ss(new Kl(new ArrayBuffer(1)))!=fn||Ql&&Ss(new Ql)!=Zt||ts&&"[object Promise]"!=Ss(ts.resolve())||ns&&Ss(new ns)!=nn||es&&Ss(new es)!=on)&&(Ss=function(t){var n=_r(t),e=n==Kt?t.constructor:ut,r=e?Qi(e):"";if(r)switch(r){case os:return fn;case as:return Zt;case cs:return"[object Promise]";case fs:return nn;case ls:return on}return n});var js=gl?nc:Bf,Cs=Xi(ms),As=Dl||function(t,n){return Oe.setTimeout(t,n)},Ls=Xi(xs),Ts=function(t){var n=La(t,function(t){return e.size===ft&&e.clear(),t}),e=n.cache;return n}(function(t){var n=[];return Ln.test(t)&&n.push(""),t.replace(Tn,function(t,e,r,u){n.push(r?u.replace(Bn,"$1"):e||t)}),n}),Os=eu(function(t,n){return $a(t)?ar(t,hr(n,1,$a,!0)):[]}),Rs=eu(function(t,n){var e=bo(n);return $a(e)&&(e=ut),$a(t)?ar(t,hr(n,1,$a,!0),bi(e,2)):[]}),Ps=eu(function(t,n){var e=bo(n);return $a(e)&&(e=ut),$a(t)?ar(t,hr(n,1,$a,!0),ut,e):[]}),Is=eu(function(t){var n=g(t,bu);return n.length&&n[0]===t[0]?Mr(n):[]}),zs=eu(function(t){var n=bo(t),e=g(t,bu);return n===bo(e)?n=ut:e.pop(),e.length&&e[0]===t[0]?Mr(e,bi(n,2)):[]}),Ds=eu(function(t){var n=bo(t),e=g(t,bu);return n="function"==typeof n?n:ut,n&&e.pop(),e.length&&e[0]===t[0]?Mr(e,ut,n):[]}),qs=eu(ko),Us=vi(function(t,n){var e=null==t?0:t.length,r=nr(t,n);return Kr(t,g(n,function(t){return Ri(t,e)?+t:t}).sort(Ou)),r}),Fs=eu(function(t){return pu(hr(t,1,$a,!0))}),Bs=eu(function(t){var n=bo(t);return $a(n)&&(n=ut),pu(hr(t,1,$a,!0),bi(n,2))}),Ws=eu(function(t){var n=bo(t);return n="function"==typeof n?n:ut,pu(hr(t,1,$a,!0),ut,n)}),Ys=eu(function(t,n){return $a(t)?ar(t,n):[]}),Hs=eu(function(t){return mu(h(t,$a))}),Vs=eu(function(t){var n=bo(t);return $a(n)&&(n=ut),mu(h(t,$a),bi(n,2))}),$s=eu(function(t){var n=bo(t);return n="function"==typeof n?n:ut,mu(h(t,$a),ut,n)}),Gs=eu(Vo),Zs=eu(function(t){var n=t.length,e=n>1?t[n-1]:ut;return e="function"==typeof e?(t.pop(),e):ut,$o(t,e)}),Xs=vi(function(t){var n=t.length,e=n?t[0]:0,r=this.__wrapped__,i=function(n){return nr(n,t)};return!(n>1||this.__actions__.length)&&r instanceof x&&Ri(e)?(r=r.slice(e,+e+(n?1:0)),r.__actions__.push({func:Ko,args:[i],thisArg:ut}),new u(r,this.__chain__).thru(function(t){return n&&!t.length&&t.push(ut),t})):this.thru(i)}),Js=Fu(function(t,n,e){yl.call(t,e)?++t[e]:tr(t,e,1)}),Ks=Xu(lo),Qs=Xu(so),th=Fu(function(t,n,e){yl.call(t,e)?t[e].push(n):tr(t,e,[n])}),nh=eu(function(t,n,e){var r=-1,u="function"==typeof n,i=Va(t)?rl(t.length):[];return gs(t,function(t){i[++r]=u?a(n,t,e):Er(t,n,e)}),i}),eh=Fu(function(t,n,e){tr(t,e,n)}),rh=Fu(function(t,n,e){t[e?0:1].push(n)},function(){return[[],[]]}),uh=eu(function(t,n){if(null==t)return[];var e=n.length;return e>1&&Pi(t,n[0],n[1])?n=[]:e>2&&Pi(n[0],n[1],n[2])&&(n=[n[0]]),$r(t,hr(n,1),[])}),ih=zl||function(){return Oe.Date.now()},oh=eu(function(t,n,e){var r=vt;if(e.length){var u=G(e,xi(oh));r|=bt}return fi(t,r,n,e,u)}),ah=eu(function(t,n,e){var r=vt|yt;if(e.length){var u=G(e,xi(ah));r|=bt}return fi(n,r,t,e,u)}),ch=eu(function(t,n){return or(t,1,n)}),fh=eu(function(t,n,e){return or(t,kc(n)||0,e)});La.Cache=fe;var lh=bs(function(t,n){n=1==n.length&&yh(n[0])?g(n[0],P(bi())):g(hr(n,1),P(bi()));var e=n.length;return eu(function(r){for(var u=-1,i=$l(r.length,e);++u<i;)r[u]=n[u].call(this,r[u]);return a(t,this,r)})}),sh=eu(function(t,n){var e=G(n,xi(sh));return fi(t,bt,ut,n,e)}),hh=eu(function(t,n){var e=G(n,xi(hh));return fi(t,wt,ut,n,e)}),dh=vi(function(t,n){return fi(t,kt,ut,ut,ut,n)}),ph=ii(mr),gh=ii(function(t,n){return t>=n}),vh=Nr(function(){return arguments}())?Nr:function(t){return ic(t)&&yl.call(t,"callee")&&!Al.call(t,"callee")},yh=rl.isArray,_h=qe?P(qe):Sr,mh=Bl||Bf,xh=Ue?P(Ue):jr,bh=Fe?P(Fe):Lr,wh=Be?P(Be):Rr,Mh=We?P(We):Pr,kh=Ye?P(Ye):Ir,Eh=ii(Ur),Nh=ii(function(t,n){return t<=n}),Sh=Bu(function(t,n){if(Ui(n)||Va(n))return void Du(n,Uc(n),t);for(var e in n)yl.call(n,e)&&He(t,e,n[e])}),jh=Bu(function(t,n){Du(n,Fc(n),t)}),Ch=Bu(function(t,n,e,r){Du(n,Fc(n),t,r)}),Ah=Bu(function(t,n,e,r){Du(n,Uc(n),t,r)}),Lh=vi(nr),Th=eu(function(t){return t.push(ut,li),a(Ch,ut,t)}),Oh=eu(function(t){return t.push(ut,si),a(Dh,ut,t)}),Rh=Qu(function(t,n,e){t[n]=e},Cf(Lf)),Ph=Qu(function(t,n,e){yl.call(t,n)?t[n].push(e):t[n]=[e]},bi),Ih=eu(Er),zh=Bu(function(t,n,e){Yr(t,n,e)}),Dh=Bu(function(t,n,e,r){Yr(t,n,e,r)}),qh=vi(function(t,n){var e={};if(null==t)return e;var r=!1;n=g(n,function(n){return n=Mu(n,t),r||(r=n.length>1),n}),Du(t,_i(t),e),r&&(e=rr(e,st|ht|dt,hi));for(var u=n.length;u--;)gu(e,n[u]);return e}),Uh=vi(function(t,n){return null==t?{}:Gr(t,n)}),Fh=ci(Uc),Bh=ci(Fc),Wh=$u(function(t,n,e){return n=n.toLowerCase(),t+(e?uf(n):n)}),Yh=$u(function(t,n,e){return t+(e?"-":"")+n.toLowerCase()}),Hh=$u(function(t,n,e){return t+(e?" ":"")+n.toLowerCase()}),Vh=Vu("toLowerCase"),$h=$u(function(t,n,e){return t+(e?"_":"")+n.toLowerCase()}),Gh=$u(function(t,n,e){return t+(e?" ":"")+Xh(n)}),Zh=$u(function(t,n,e){return t+(e?" ":"")+n.toUpperCase()}),Xh=Vu("toUpperCase"),Jh=eu(function(t,n){try{return a(t,ut,n)}catch(t){return Qa(t)?t:new il(t)}}),Kh=vi(function(t,n){return f(n,function(n){n=Ki(n),tr(t,n,oh(t[n],t))}),t}),Qh=Ju(),td=Ju(!0),nd=eu(function(t,n){return function(e){return Er(e,t,n)}}),ed=eu(function(t,n){return function(e){return Er(t,e,n)}}),rd=ni(g),ud=ni(s),id=ni(m),od=ui(),ad=ui(!0),cd=ti(function(t,n){return t+n},0),fd=ai("ceil"),ld=ti(function(t,n){return t/n},1),sd=ai("floor"),hd=ti(function(t,n){return t*n},1),dd=ai("round"),pd=ti(function(t,n){return t-n},0);return e.after=ka,e.ary=Ea,e.assign=Sh,e.assignIn=jh,e.assignInWith=Ch,e.assignWith=Ah,e.at=Lh,e.before=Na,e.bind=oh,e.bindAll=Kh,e.bindKey=ah,e.castArray=qa,e.chain=Xo,e.chunk=eo,e.compact=ro,e.concat=uo,e.cond=Sf,e.conforms=jf,e.constant=Cf,e.countBy=Js,e.create=jc,e.curry=Sa,e.curryRight=ja,e.debounce=Ca,e.defaults=Th,e.defaultsDeep=Oh,e.defer=ch,e.delay=fh,e.difference=Os,e.differenceBy=Rs,e.differenceWith=Ps,e.drop=io,e.dropRight=oo,e.dropRightWhile=ao,e.dropWhile=co,e.fill=fo,e.filter=aa,e.flatMap=ca,e.flatMapDeep=fa,e.flatMapDepth=la,e.flatten=ho,e.flattenDeep=po,e.flattenDepth=go,e.flip=Aa,e.flow=Qh,e.flowRight=td,e.fromPairs=vo,e.functions=Pc,e.functionsIn=Ic,e.groupBy=th,e.initial=mo,e.intersection=Is,e.intersectionBy=zs,e.intersectionWith=Ds,e.invert=Rh,e.invertBy=Ph,e.invokeMap=nh,e.iteratee=Tf,e.keyBy=eh,e.keys=Uc,e.keysIn=Fc,e.map=pa,e.mapKeys=Bc,e.mapValues=Wc,e.matches=Of,e.matchesProperty=Rf,e.memoize=La,e.merge=zh,e.mergeWith=Dh,e.method=nd,e.methodOf=ed,e.mixin=Pf,e.negate=Ta,e.nthArg=Df,e.omit=qh,e.omitBy=Yc,e.once=Oa,e.orderBy=ga,e.over=rd,e.overArgs=lh,e.overEvery=ud,e.overSome=id,e.partial=sh,e.partialRight=hh,e.partition=rh,e.pick=Uh,e.pickBy=Hc,e.property=qf,e.propertyOf=Uf,e.pull=qs,e.pullAll=ko,e.pullAllBy=Eo,e.pullAllWith=No,e.pullAt=Us,e.range=od,e.rangeRight=ad,e.rearg=dh,e.reject=_a,e.remove=So,e.rest=Ra,e.reverse=jo,e.sampleSize=xa,e.set=$c,e.setWith=Gc,e.shuffle=ba,e.slice=Co,e.sortBy=uh,e.sortedUniq=Io,e.sortedUniqBy=zo,e.split=vf,e.spread=Pa,e.tail=Do,e.take=qo,e.takeRight=Uo,e.takeRightWhile=Fo,e.takeWhile=Bo,e.tap=Jo,e.throttle=Ia,e.thru=Ko,e.toArray=xc,e.toPairs=Fh,e.toPairsIn=Bh,e.toPath=$f,e.toPlainObject=Ec,e.transform=Zc,e.unary=za,e.union=Fs,e.unionBy=Bs,e.unionWith=Ws,e.uniq=Wo,e.uniqBy=Yo,e.uniqWith=Ho,e.unset=Xc,e.unzip=Vo,e.unzipWith=$o,e.update=Jc,e.updateWith=Kc,e.values=Qc,e.valuesIn=tf,e.without=Ys,e.words=Nf,e.wrap=Da,e.xor=Hs,e.xorBy=Vs,e.xorWith=$s,e.zip=Gs,e.zipObject=Go,e.zipObjectDeep=Zo,e.zipWith=Zs,e.entries=Fh,e.entriesIn=Bh,e.extend=jh,e.extendWith=Ch,Pf(e,e),e.add=cd,e.attempt=Jh,e.camelCase=Wh,e.capitalize=uf,e.ceil=fd,e.clamp=nf,e.clone=Ua,e.cloneDeep=Ba,e.cloneDeepWith=Wa,e.cloneWith=Fa,e.conformsTo=Ya,e.deburr=of,e.defaultTo=Af,e.divide=ld,e.endsWith=af,e.eq=Ha,e.escape=cf,e.escapeRegExp=ff,e.every=oa,e.find=Ks,e.findIndex=lo,e.findKey=Cc,e.findLast=Qs,e.findLastIndex=so,e.findLastKey=Ac,e.floor=sd,e.forEach=sa,e.forEachRight=ha,e.forIn=Lc,e.forInRight=Tc,e.forOwn=Oc,e.forOwnRight=Rc,e.get=zc,e.gt=ph,e.gte=gh,e.has=Dc,e.hasIn=qc,e.head=yo,e.identity=Lf,e.includes=da,e.indexOf=_o,e.inRange=ef,e.invoke=Ih,e.isArguments=vh,e.isArray=yh,e.isArrayBuffer=_h,e.isArrayLike=Va,e.isArrayLikeObject=$a,e.isBoolean=Ga,e.isBuffer=mh,e.isDate=xh,e.isElement=Za,e.isEmpty=Xa,e.isEqual=Ja,e.isEqualWith=Ka,e.isError=Qa,e.isFinite=tc,e.isFunction=nc,e.isInteger=ec,e.isLength=rc,e.isMap=bh,e.isMatch=oc,e.isMatchWith=ac,e.isNaN=cc,e.isNative=fc,e.isNil=sc,e.isNull=lc,e.isNumber=hc,e.isObject=uc,e.isObjectLike=ic,e.isPlainObject=dc,e.isRegExp=wh,e.isSafeInteger=pc,e.isSet=Mh,e.isString=gc,e.isSymbol=vc,e.isTypedArray=kh,e.isUndefined=yc,e.isWeakMap=_c,e.isWeakSet=mc,e.join=xo,e.kebabCase=Yh,e.last=bo,e.lastIndexOf=wo,e.lowerCase=Hh,e.lowerFirst=Vh,e.lt=Eh,e.lte=Nh,e.max=Zf,e.maxBy=Xf,e.mean=Jf,e.meanBy=Kf,e.min=Qf,e.minBy=tl,e.stubArray=Ff,e.stubFalse=Bf,e.stubObject=Wf,e.stubString=Yf,e.stubTrue=Hf,e.multiply=hd,e.nth=Mo,e.noConflict=If,e.noop=zf,e.now=ih,e.pad=lf,e.padEnd=sf,e.padStart=hf,e.parseInt=df,e.random=rf,e.reduce=va,e.reduceRight=ya,e.repeat=pf,e.replace=gf,e.result=Vc,e.round=dd,e.runInContext=t,e.sample=ma,e.size=wa,e.snakeCase=$h,e.some=Ma,e.sortedIndex=Ao,e.sortedIndexBy=Lo,e.sortedIndexOf=To,e.sortedLastIndex=Oo,e.sortedLastIndexBy=Ro,e.sortedLastIndexOf=Po,e.startCase=Gh,e.startsWith=yf,e.subtract=pd,e.sum=nl,e.sumBy=el,e.template=_f,e.times=Vf,e.toFinite=bc,e.toInteger=wc,e.toLength=Mc,e.toLower=mf,e.toNumber=kc,e.toSafeInteger=Nc,e.toString=Sc,e.toUpper=xf,e.trim=bf,e.trimEnd=wf,e.trimStart=Mf,e.truncate=kf,e.unescape=Ef,e.uniqueId=Gf,e.upperCase=Zh,e.upperFirst=Xh,e.each=sa,e.eachRight=ha,e.first=yo,Pf(e,function(){var t={};return dr(e,function(n,r){yl.call(e.prototype,r)||(t[r]=n)}),t}(),{chain:!1}),e.VERSION="4.17.4",f(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){e[t].placeholder=e}),f(["drop","take"],function(t,n){x.prototype[t]=function(e){e=e===ut?1:Vl(wc(e),0);var r=this.__filtered__&&!n?new x(this):this.clone();return r.__filtered__?r.__takeCount__=$l(e,r.__takeCount__):r.__views__.push({size:$l(e,It),type:t+(r.__dir__<0?"Right":"")}),r},x.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}}),f(["filter","map","takeWhile"],function(t,n){var e=n+1,r=e==At||3==e;x.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:bi(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}}),f(["head","last"],function(t,n){var e="take"+(n?"Right":"");x.prototype[t]=function(){return this[e](1).value()[0]}}),f(["initial","tail"],function(t,n){var e="drop"+(n?"":"Right");x.prototype[t]=function(){return this.__filtered__?new x(this):this[e](1)}}),x.prototype.compact=function(){return this.filter(Lf)},x.prototype.find=function(t){return this.filter(t).head()},x.prototype.findLast=function(t){return this.reverse().find(t)},x.prototype.invokeMap=eu(function(t,n){return"function"==typeof t?new x(this):this.map(function(e){return Er(e,t,n)})}),x.prototype.reject=function(t){return this.filter(Ta(bi(t)))},x.prototype.slice=function(t,n){t=wc(t);var e=this;return e.__filtered__&&(t>0||n<0)?new x(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),n!==ut&&(n=wc(n),e=n<0?e.dropRight(-n):e.take(n-t)),e)},x.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},x.prototype.toArray=function(){return this.take(It)},dr(x.prototype,function(t,n){var r=/^(?:filter|find|map|reject)|While$/.test(n),i=/^(?:head|last)$/.test(n),o=e[i?"take"+("last"==n?"Right":""):n],a=i||/^find/.test(n);o&&(e.prototype[n]=function(){var n=this.__wrapped__,c=i?[1]:arguments,f=n instanceof x,l=c[0],s=f||yh(n),h=function(t){var n=o.apply(e,v([t],c));return i&&d?n[0]:n};s&&r&&"function"==typeof l&&1!=l.length&&(f=s=!1);var d=this.__chain__,p=!!this.__actions__.length,g=a&&!d,y=f&&!p;if(!a&&s){n=y?n:new x(this);var _=t.apply(n,c);return _.__actions__.push({func:Ko,args:[h],thisArg:ut}),new u(_,d)}return g&&y?t.apply(this,c):(_=this.thru(h),g?i?_.value()[0]:_.value():_)})}),f(["pop","push","shift","sort","splice","unshift"],function(t){var n=hl[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",u=/^(?:pop|shift)$/.test(t);e.prototype[t]=function(){var t=arguments;if(u&&!this.__chain__){var e=this.value();return n.apply(yh(e)?e:[],t)}return this[r](function(e){return n.apply(yh(e)?e:[],t)})}}),dr(x.prototype,function(t,n){var r=e[n];if(r){var u=r.name+"";(is[u]||(is[u]=[])).push({name:n,func:r})}}),is[Ku(ut,yt).name]=[{name:"wrapper",func:ut}],x.prototype.clone=C,x.prototype.reverse=J,x.prototype.value=nt,e.prototype.at=Xs,e.prototype.chain=Qo,e.prototype.commit=ta,e.prototype.next=na,e.prototype.plant=ra,e.prototype.reverse=ua,e.prototype.toJSON=e.prototype.valueOf=e.prototype.value=ia,e.prototype.first=e.prototype.head,Ol&&(e.prototype[Ol]=ea),e}();Oe._=Ze,(u=function(){return Ze}.call(n,e,n,r))!==ut&&(r.exports=u)}).call(this)}).call(n,e(20),e(21)(t))},function(t,n,e){var r,u;!function(){function i(t){return t&&(t.ownerDocument||t.document||t).documentElement}function o(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}function a(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function c(t){return null===t?NaN:+t}function f(t){return!isNaN(t)}function l(t){return{left:function(n,e,r,u){for(arguments.length<3&&(r=0),arguments.length<4&&(u=n.length);r<u;){var i=r+u>>>1;t(n[i],e)<0?r=i+1:u=i}return r},right:function(n,e,r,u){for(arguments.length<3&&(r=0),arguments.length<4&&(u=n.length);r<u;){var i=r+u>>>1;t(n[i],e)>0?u=i:r=i+1}return r}}}function s(t){return t.length}function h(t){for(var n=1;t*n%1;)n*=10;return n}function d(t,n){for(var e in n)Object.defineProperty(t.prototype,e,{value:n[e],enumerable:!1})}function p(){this._=Object.create(null)}function g(t){return(t+="")===ko||t[0]===Eo?Eo+t:t}function v(t){return(t+="")[0]===Eo?t.slice(1):t}function y(t){return g(t)in this._}function _(t){return(t=g(t))in this._&&delete this._[t]}function m(){var t=[];for(var n in this._)t.push(v(n));return t}function x(){var t=0;for(var n in this._)++t;return t}function b(){for(var t in this._)return!1;return!0}function w(){this._=Object.create(null)}function M(t){return t}function k(t,n,e){return function(){var r=e.apply(n,arguments);return r===n?t:r}}function E(t,n){if(n in t)return n;n=n.charAt(0).toUpperCase()+n.slice(1);for(var e=0,r=No.length;e<r;++e){var u=No[e]+n;if(u in t)return u}}function N(){}function S(){}function j(t){function n(){for(var n,r=e,u=-1,i=r.length;++u<i;)(n=r[u].on)&&n.apply(this,arguments);return t}var e=[],r=new p;return n.on=function(n,u){var i,o=r.get(n);return arguments.length<2?o&&o.on:(o&&(o.on=null,e=e.slice(0,i=e.indexOf(o)).concat(e.slice(i+1)),r.remove(n)),u&&e.push(r.set(n,{on:u})),t)},n}function C(){ho.event.preventDefault()}function A(){for(var t,n=ho.event;t=n.sourceEvent;)n=t;return n}function L(t){for(var n=new S,e=0,r=arguments.length;++e<r;)n[arguments[e]]=j(n);return n.of=function(e,r){return function(u){try{var i=u.sourceEvent=ho.event;u.target=t,ho.event=u,n[u.type].apply(e,r)}finally{ho.event=i}}},n}function T(t){return jo(t,To),t}function O(t){return"function"==typeof t?t:function(){return Co(t,this)}}function R(t){return"function"==typeof t?t:function(){return Ao(t,this)}}function P(t,n){function e(){this.removeAttribute(t)}function r(){this.removeAttributeNS(t.space,t.local)}function u(){this.setAttribute(t,n)}function i(){this.setAttributeNS(t.space,t.local,n)}function o(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}function a(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}return t=ho.ns.qualify(t),null==n?t.local?r:e:"function"==typeof n?t.local?a:o:t.local?i:u}function I(t){return t.trim().replace(/\s+/g," ")}function z(t){return new RegExp("(?:^|\\s+)"+ho.requote(t)+"(?:\\s+|$)","g")}function D(t){return(t+"").trim().split(/^|\s+/)}function q(t,n){function e(){for(var e=-1;++e<u;)t[e](this,n)}function r(){for(var e=-1,r=n.apply(this,arguments);++e<u;)t[e](this,r)}t=D(t).map(U);var u=t.length;return"function"==typeof n?r:e}function U(t){var n=z(t);return function(e,r){if(u=e.classList)return r?u.add(t):u.remove(t);var u=e.getAttribute("class")||"";r?(n.lastIndex=0,n.test(u)||e.setAttribute("class",I(u+" "+t))):e.setAttribute("class",I(u.replace(n," ")))}}function F(t,n,e){function r(){this.style.removeProperty(t)}function u(){this.style.setProperty(t,n,e)}function i(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}return null==n?r:"function"==typeof n?i:u}function B(t,n){function e(){delete this[t]}function r(){this[t]=n}function u(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}return null==n?e:"function"==typeof n?u:r}function W(t){function n(){var n=this.ownerDocument,e=this.namespaceURI;return e===Oo&&n.documentElement.namespaceURI===Oo?n.createElement(t):n.createElementNS(e,t)}function e(){return this.ownerDocument.createElementNS(t.space,t.local)}return"function"==typeof t?t:(t=ho.ns.qualify(t)).local?e:n}function Y(){var t=this.parentNode;t&&t.removeChild(this)}function H(t){return{__data__:t}}function V(t){return function(){return Lo(this,t)}}function $(t){return arguments.length||(t=a),function(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}}function G(t,n){for(var e=0,r=t.length;e<r;e++)for(var u,i=t[e],o=0,a=i.length;o<a;o++)(u=i[o])&&n(u,o,e);return t}function Z(t){return jo(t,Po),t}function X(t){var n,e;return function(r,u,i){var o,a=t[i].update,c=a.length;for(i!=e&&(e=i,n=0),u>=n&&(n=u+1);!(o=a[n])&&++n<c;);return o}}function J(t,n,e){function r(){var n=this[o];n&&(this.removeEventListener(t,n,n.$),delete this[o])}function u(){var u=c(n,go(arguments));r.call(this),this.addEventListener(t,this[o]=u,u.$=e),u._=n}function i(){var n,e=new RegExp("^__on([^.]+)"+ho.requote(t)+"$");for(var r in this)if(n=r.match(e)){var u=this[r];this.removeEventListener(n[1],u,u.$),delete this[r]}}var o="__on"+t,a=t.indexOf("."),c=K;a>0&&(t=t.slice(0,a));var f=Io.get(t);return f&&(t=f,c=Q),a?n?u:r:n?N:i}function K(t,n){return function(e){var r=ho.event;ho.event=e,n[0]=this.__data__;try{t.apply(this,n)}finally{ho.event=r}}}function Q(t,n){var e=K(t,n);return function(t){var n=this,r=t.relatedTarget;r&&(r===n||8&r.compareDocumentPosition(n))||e.call(n,t)}}function tt(t){var n=".dragsuppress-"+ ++Do,e="click"+n,r=ho.select(o(t)).on("touchmove"+n,C).on("dragstart"+n,C).on("selectstart"+n,C);if(null==zo&&(zo=!("onselectstart"in t)&&E(t.style,"userSelect")),zo){var u=i(t).style,a=u[zo];u[zo]="none"}return function(t){if(r.on(n,null),zo&&(u[zo]=a),t){var i=function(){r.on(e,null)};r.on(e,function(){C(),i()},!0),setTimeout(i,0)}}}function nt(t,n){n.changedTouches&&(n=n.changedTouches[0]);var e=t.ownerSVGElement||t;if(e.createSVGPoint){var r=e.createSVGPoint();if(qo<0){var u=o(t);if(u.scrollX||u.scrollY){e=ho.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var i=e[0][0].getScreenCTM();qo=!(i.f||i.e),e.remove()}}return qo?(r.x=n.pageX,r.y=n.pageY):(r.x=n.clientX,r.y=n.clientY),r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var a=t.getBoundingClientRect();return[n.clientX-a.left-t.clientLeft,n.clientY-a.top-t.clientTop]}function et(){return ho.event.changedTouches[0].identifier}function rt(t){return t>0?1:t<0?-1:0}function ut(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])}function it(t){return t>1?0:t<-1?Bo:Math.acos(t)}function ot(t){return t>1?Ho:t<-1?-Ho:Math.asin(t)}function at(t){return((t=Math.exp(t))-1/t)/2}function ct(t){return((t=Math.exp(t))+1/t)/2}function ft(t){return((t=Math.exp(2*t))-1)/(t+1)}function lt(t){return(t=Math.sin(t/2))*t}function st(){}function ht(t,n,e){return this instanceof ht?(this.h=+t,this.s=+n,void(this.l=+e)):arguments.length<2?t instanceof ht?new ht(t.h,t.s,t.l):Nt(""+t,St,ht):new ht(t,n,e)}function dt(t,n,e){function r(t){return t>360?t-=360:t<0&&(t+=360),t<60?i+(o-i)*t/60:t<180?o:t<240?i+(o-i)*(240-t)/60:i}function u(t){return Math.round(255*r(t))}var i,o;return t=isNaN(t)?0:(t%=360)<0?t+360:t,n=isNaN(n)?0:n<0?0:n>1?1:n,e=e<0?0:e>1?1:e,o=e<=.5?e*(1+n):e+n-e*n,i=2*e-o,new wt(u(t+120),u(t),u(t-120))}function pt(t,n,e){return this instanceof pt?(this.h=+t,this.c=+n,void(this.l=+e)):arguments.length<2?t instanceof pt?new pt(t.h,t.c,t.l):t instanceof vt?_t(t.l,t.a,t.b):_t((t=jt((t=ho.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new pt(t,n,e)}function gt(t,n,e){return isNaN(t)&&(t=0),isNaN(n)&&(n=0),new vt(e,Math.cos(t*=Vo)*n,Math.sin(t)*n)}function vt(t,n,e){return this instanceof vt?(this.l=+t,this.a=+n,void(this.b=+e)):arguments.length<2?t instanceof vt?new vt(t.l,t.a,t.b):t instanceof pt?gt(t.h,t.c,t.l):jt((t=wt(t)).r,t.g,t.b):new vt(t,n,e)}function yt(t,n,e){var r=(t+16)/116,u=r+n/500,i=r-e/200;return u=mt(u)*na,r=mt(r)*ea,i=mt(i)*ra,new wt(bt(3.2404542*u-1.5371385*r-.4985314*i),bt(-.969266*u+1.8760108*r+.041556*i),bt(.0556434*u-.2040259*r+1.0572252*i))}function _t(t,n,e){return t>0?new pt(Math.atan2(e,n)*$o,Math.sqrt(n*n+e*e),t):new pt(NaN,NaN,t)}function mt(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function xt(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function bt(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function wt(t,n,e){return this instanceof wt?(this.r=~~t,this.g=~~n,void(this.b=~~e)):arguments.length<2?t instanceof wt?new wt(t.r,t.g,t.b):Nt(""+t,wt,dt):new wt(t,n,e)}function Mt(t){return new wt(t>>16,t>>8&255,255&t)}function kt(t){return Mt(t)+""}function Et(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function Nt(t,n,e){var r,u,i,o=0,a=0,c=0;if(r=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(u=r[2].split(","),r[1]){case"hsl":return e(parseFloat(u[0]),parseFloat(u[1])/100,parseFloat(u[2])/100);case"rgb":return n(At(u[0]),At(u[1]),At(u[2]))}return(i=oa.get(t))?n(i.r,i.g,i.b):(null==t||"#"!==t.charAt(0)||isNaN(i=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&i)>>4,o|=o>>4,a=240&i,a|=a>>4,c=15&i,c|=c<<4):7===t.length&&(o=(16711680&i)>>16,a=(65280&i)>>8,c=255&i)),n(o,a,c))}function St(t,n,e){var r,u,i=Math.min(t/=255,n/=255,e/=255),o=Math.max(t,n,e),a=o-i,c=(o+i)/2;return a?(u=c<.5?a/(o+i):a/(2-o-i),r=t==o?(n-e)/a+(n<e?6:0):n==o?(e-t)/a+2:(t-n)/a+4,r*=60):(r=NaN,u=c>0&&c<1?0:r),new ht(r,u,c)}function jt(t,n,e){t=Ct(t),n=Ct(n),e=Ct(e);var r=xt((.4124564*t+.3575761*n+.1804375*e)/na),u=xt((.2126729*t+.7151522*n+.072175*e)/ea);return vt(116*u-16,500*(r-u),200*(u-xt((.0193339*t+.119192*n+.9503041*e)/ra)))}function Ct(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function At(t){var n=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*n):n}function Lt(t){return"function"==typeof t?t:function(){return t}}function Tt(t){return function(n,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=null),Ot(n,e,t,r)}}function Ot(t,n,e,r){function u(){var t,n=c.status;if(!n&&Pt(c)||n>=200&&n<300||304===n){try{t=e.call(i,c)}catch(t){return void o.error.call(i,t)}o.load.call(i,t)}else o.error.call(i,c)}var i={},o=ho.dispatch("beforesend","progress","load","error"),a={},c=new XMLHttpRequest,f=null;return!this.XDomainRequest||"withCredentials"in c||!/^(http(s)?:)?\/\//.test(t)||(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=u:c.onreadystatechange=function(){c.readyState>3&&u()},c.onprogress=function(t){var n=ho.event;ho.event=t;try{o.progress.call(i,c)}finally{ho.event=n}},i.header=function(t,n){return t=(t+"").toLowerCase(),arguments.length<2?a[t]:(null==n?delete a[t]:a[t]=n+"",i)},i.mimeType=function(t){return arguments.length?(n=null==t?null:t+"",i):n},i.responseType=function(t){return arguments.length?(f=t,i):f},i.response=function(t){return e=t,i},["get","post"].forEach(function(t){i[t]=function(){return i.send.apply(i,[t].concat(go(arguments)))}}),i.send=function(e,r,u){if(2===arguments.length&&"function"==typeof r&&(u=r,r=null),c.open(e,t,!0),null==n||"accept"in a||(a.accept=n+",*/*"),c.setRequestHeader)for(var l in a)c.setRequestHeader(l,a[l]);return null!=n&&c.overrideMimeType&&c.overrideMimeType(n),null!=f&&(c.responseType=f),null!=u&&i.on("error",u).on("load",function(t){u(null,t)}),o.beforesend.call(i,c),c.send(null==r?null:r),i},i.abort=function(){return c.abort(),i},ho.rebind(i,o,"on"),null==r?i:i.get(Rt(r))}function Rt(t){return 1===t.length?function(n,e){t(null==n?e:null)}:t}function Pt(t){var n=t.responseType;return n&&"text"!==n?t.response:t.responseText}function It(t,n,e){var r=arguments.length;r<2&&(n=0),r<3&&(e=Date.now());var u=e+n,i={c:t,t:u,n:null};return ca?ca.n=i:aa=i,ca=i,fa||(la=clearTimeout(la),fa=1,sa(zt)),i}function zt(){var t=Dt(),n=qt()-t;n>24?(isFinite(n)&&(clearTimeout(la),la=setTimeout(zt,n)),fa=0):(fa=1,sa(zt))}function Dt(){for(var t=Date.now(),n=aa;n;)t>=n.t&&n.c(t-n.t)&&(n.c=null),n=n.n;return t}function qt(){for(var t,n=aa,e=1/0;n;)n.c?(n.t<e&&(e=n.t),n=(t=n).n):n=t?t.n=n.n:aa=n.n;return ca=t,e}function Ut(t,n){return n-(t?Math.ceil(Math.log(t)/Math.LN10):1)}function Ft(t,n){var e=Math.pow(10,3*Mo(8-n));return{scale:n>8?function(t){return t/e}:function(t){return t*e},symbol:t}}function Bt(t){var n=t.decimal,e=t.thousands,r=t.grouping,u=t.currency,i=r&&e?function(t,n){for(var u=t.length,i=[],o=0,a=r[0],c=0;u>0&&a>0&&(c+a+1>n&&(a=Math.max(1,n-c)),i.push(t.substring(u-=a,u+a)),!((c+=a+1)>n));)a=r[o=(o+1)%r.length];return i.reverse().join(e)}:M;return function(t){var e=da.exec(t),r=e[1]||" ",o=e[2]||">",a=e[3]||"-",c=e[4]||"",f=e[5],l=+e[6],s=e[7],h=e[8],d=e[9],p=1,g="",v="",y=!1,_=!0;switch(h&&(h=+h.substring(1)),(f||"0"===r&&"="===o)&&(f=r="0",o="="),d){case"n":s=!0,d="g";break;case"%":p=100,v="%",d="f";break;case"p":p=100,v="%",d="r";break;case"b":case"o":case"x":case"X":"#"===c&&(g="0"+d.toLowerCase());case"c":_=!1;case"d":y=!0,h=0;break;case"s":p=-1,d="r"}"$"===c&&(g=u[0],v=u[1]),"r"!=d||h||(d="g"),null!=h&&("g"==d?h=Math.max(1,Math.min(21,h)):"e"!=d&&"f"!=d||(h=Math.max(0,Math.min(20,h)))),d=pa.get(d)||Wt;var m=f&&s;return function(t){var e=v;if(y&&t%1)return"";var u=t<0||0===t&&1/t<0?(t=-t,"-"):"-"===a?"":a;if(p<0){var c=ho.formatPrefix(t,h);t=c.scale(t),e=c.symbol+v}else t*=p;t=d(t,h);var x,b,w=t.lastIndexOf(".");if(w<0){var M=_?t.lastIndexOf("e"):-1;M<0?(x=t,b=""):(x=t.substring(0,M),b=t.substring(M))}else x=t.substring(0,w),b=n+t.substring(w+1);!f&&s&&(x=i(x,1/0));var k=g.length+x.length+b.length+(m?0:u.length),E=k<l?new Array(k=l-k+1).join(r):"";return m&&(x=i(E+x,E.length?l-b.length:1/0)),u+=g,t=x+b,("<"===o?u+t+E:">"===o?E+u+t:"^"===o?E.substring(0,k>>=1)+u+t+E.substring(k):u+(m?t:E+t))+e}}}function Wt(t){return t+""}function Yt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Ht(t,n,e){function r(n){var e=t(n),r=i(e,1);return n-e<r-n?e:r}function u(e){return n(e=t(new va(e-1)),1),e}function i(t,e){return n(t=new va(+t),e),t}function o(t,r,i){var o=u(t),a=[];if(i>1)for(;o<r;)e(o)%i||a.push(new Date(+o)),n(o,1);else for(;o<r;)a.push(new Date(+o)),n(o,1);return a}function a(t,n,e){try{va=Yt;var r=new Yt;return r._=t,o(r,n,e)}finally{va=Date}}t.floor=t,t.round=r,t.ceil=u,t.offset=i,t.range=o;var c=t.utc=Vt(t);return c.floor=c,c.round=Vt(r),c.ceil=Vt(u),c.offset=Vt(i),c.range=a,t}function Vt(t){return function(n,e){try{va=Yt;var r=new Yt;return r._=n,t(r,e)._}finally{va=Date}}}function $t(t){function n(t){function n(n){for(var e,u,i,o=[],a=-1,c=0;++a<r;)37===t.charCodeAt(a)&&(o.push(t.slice(c,a)),null!=(u=_a[e=t.charAt(++a)])&&(e=t.charAt(++a)),(i=j[e])&&(e=i(n,null==u?"e"===e?" ":"0":u)),o.push(e),c=a+1);return o.push(t.slice(c,a)),o.join("")}var r=t.length;return n.parse=function(n){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(e(r,t,n,0)!=n.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var u=null!=r.Z&&va!==Yt,i=new(u?Yt:va);return"j"in r?i.setFullYear(r.y,0,r.j):"W"in r||"U"in r?("w"in r||(r.w="W"in r?1:0),i.setFullYear(r.y,0,1),i.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(i.getDay()+5)%7:r.w+7*r.U-(i.getDay()+6)%7)):i.setFullYear(r.y,r.m,r.d),i.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),u?i._:i},n.toString=function(){return t},n}function e(t,n,e,r){for(var u,i,o,a=0,c=n.length,f=e.length;a<c;){if(r>=f)return-1;if(37===(u=n.charCodeAt(a++))){if(o=n.charAt(a++),!(i=C[o in _a?n.charAt(a++):o])||(r=i(t,e,r))<0)return-1}else if(u!=e.charCodeAt(r++))return-1}return r}function r(t,n,e){w.lastIndex=0;var r=w.exec(n.slice(e));return r?(t.w=M.get(r[0].toLowerCase()),e+r[0].length):-1}function u(t,n,e){x.lastIndex=0;var r=x.exec(n.slice(e));return r?(t.w=b.get(r[0].toLowerCase()),e+r[0].length):-1}function i(t,n,e){N.lastIndex=0;var r=N.exec(n.slice(e));return r?(t.m=S.get(r[0].toLowerCase()),e+r[0].length):-1}function o(t,n,e){k.lastIndex=0;var r=k.exec(n.slice(e));return r?(t.m=E.get(r[0].toLowerCase()),e+r[0].length):-1}function a(t,n,r){return e(t,j.c.toString(),n,r)}function c(t,n,r){return e(t,j.x.toString(),n,r)}function f(t,n,r){return e(t,j.X.toString(),n,r)}function l(t,n,e){var r=m.get(n.slice(e,e+=2).toLowerCase());return null==r?-1:(t.p=r,e)}var s=t.dateTime,h=t.date,d=t.time,p=t.periods,g=t.days,v=t.shortDays,y=t.months,_=t.shortMonths;n.utc=function(t){function e(t){try{va=Yt;var n=new va;return n._=t,r(n)}finally{va=Date}}var r=n(t);return e.parse=function(t){try{va=Yt;var n=r.parse(t);return n&&n._}finally{va=Date}},e.toString=r.toString,e},n.multi=n.utc.multi=pn;var m=ho.map(),x=Zt(g),b=Xt(g),w=Zt(v),M=Xt(v),k=Zt(y),E=Xt(y),N=Zt(_),S=Xt(_);p.forEach(function(t,n){m.set(t.toLowerCase(),n)});var j={a:function(t){return v[t.getDay()]},A:function(t){return g[t.getDay()]},b:function(t){return _[t.getMonth()]},B:function(t){return y[t.getMonth()]},c:n(s),d:function(t,n){return Gt(t.getDate(),n,2)},e:function(t,n){return Gt(t.getDate(),n,2)},H:function(t,n){return Gt(t.getHours(),n,2)},I:function(t,n){return Gt(t.getHours()%12||12,n,2)},j:function(t,n){return Gt(1+ga.dayOfYear(t),n,3)},L:function(t,n){return Gt(t.getMilliseconds(),n,3)},m:function(t,n){return Gt(t.getMonth()+1,n,2)},M:function(t,n){return Gt(t.getMinutes(),n,2)},p:function(t){return p[+(t.getHours()>=12)]},S:function(t,n){return Gt(t.getSeconds(),n,2)},U:function(t,n){return Gt(ga.sundayOfYear(t),n,2)},w:function(t){return t.getDay()},W:function(t,n){return Gt(ga.mondayOfYear(t),n,2)},x:n(h),X:n(d),y:function(t,n){return Gt(t.getFullYear()%100,n,2)},Y:function(t,n){return Gt(t.getFullYear()%1e4,n,4)},Z:hn,"%":function(){return"%"}},C={a:r,A:u,b:i,B:o,c:a,d:on,e:on,H:cn,I:cn,j:an,L:sn,m:un,M:fn,p:l,S:ln,U:Kt,w:Jt,W:Qt,x:c,X:f,y:nn,Y:tn,Z:en,"%":dn};return n}function Gt(t,n,e){var r=t<0?"-":"",u=(r?-t:t)+"",i=u.length;return r+(i<e?new Array(e-i+1).join(n)+u:u)}function Zt(t){return new RegExp("^(?:"+t.map(ho.requote).join("|")+")","i")}function Xt(t){for(var n=new p,e=-1,r=t.length;++e<r;)n.set(t[e].toLowerCase(),e);return n}function Jt(t,n,e){ma.lastIndex=0;var r=ma.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function Kt(t,n,e){ma.lastIndex=0;var r=ma.exec(n.slice(e));return r?(t.U=+r[0],e+r[0].length):-1}function Qt(t,n,e){ma.lastIndex=0;var r=ma.exec(n.slice(e));return r?(t.W=+r[0],e+r[0].length):-1}function tn(t,n,e){ma.lastIndex=0;var r=ma.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function nn(t,n,e){ma.lastIndex=0;var r=ma.exec(n.slice(e,e+2));return r?(t.y=rn(+r[0]),e+r[0].length):-1}function en(t,n,e){return/^[+-]\d{4}$/.test(n=n.slice(e,e+5))?(t.Z=-n,e+5):-1}function rn(t){return t+(t>68?1900:2e3)}function un(t,n,e){ma.lastIndex=0;var r=ma.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function on(t,n,e){ma.lastIndex=0;var r=ma.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function an(t,n,e){ma.lastIndex=0;var r=ma.exec(n.slice(e,e+3));return r?(t.j=+r[0],e+r[0].length):-1}function cn(t,n,e){ma.lastIndex=0;var r=ma.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function fn(t,n,e){ma.lastIndex=0;var r=ma.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function ln(t,n,e){ma.lastIndex=0;var r=ma.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function sn(t,n,e){ma.lastIndex=0;var r=ma.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function hn(t){var n=t.getTimezoneOffset(),e=n>0?"-":"+",r=Mo(n)/60|0,u=Mo(n)%60;return e+Gt(r,"0",2)+Gt(u,"0",2)}function dn(t,n,e){xa.lastIndex=0;var r=xa.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function pn(t){for(var n=t.length,e=-1;++e<n;)t[e][0]=this(t[e][0]);return function(n){for(var e=0,r=t[e];!r[1](n);)r=t[++e];return r[0](n)}}function gn(){}function vn(t,n,e){var r=e.s=t+n,u=r-t,i=r-u;e.t=t-i+(n-u)}function yn(t,n){t&&ka.hasOwnProperty(t.type)&&ka[t.type](t,n)}function _n(t,n,e){var r,u=-1,i=t.length-e;for(n.lineStart();++u<i;)r=t[u],n.point(r[0],r[1],r[2]);n.lineEnd()}function mn(t,n){var e=-1,r=t.length;for(n.polygonStart();++e<r;)_n(t[e],n,1);n.polygonEnd()}function xn(){function t(t,n){t*=Vo,n=n*Vo/2+Bo/4;var e=t-r,o=e>=0?1:-1,a=o*e,c=Math.cos(n),f=Math.sin(n),l=i*f,s=u*c+l*Math.cos(a),h=l*o*Math.sin(a);Na.add(Math.atan2(h,s)),r=t,u=c,i=f}var n,e,r,u,i;Sa.point=function(o,a){Sa.point=t,r=(n=o)*Vo,u=Math.cos(a=(e=a)*Vo/2+Bo/4),i=Math.sin(a)},Sa.lineEnd=function(){t(n,e)}}function bn(t){var n=t[0],e=t[1],r=Math.cos(e);return[r*Math.cos(n),r*Math.sin(n),Math.sin(e)]}function wn(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function Mn(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function kn(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function En(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function Nn(t){var n=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}function Sn(t){return[Math.atan2(t[1],t[0]),ot(t[2])]}function jn(t,n){return Mo(t[0]-n[0])<Uo&&Mo(t[1]-n[1])<Uo}function Cn(t,n){t*=Vo;var e=Math.cos(n*=Vo);An(e*Math.cos(t),e*Math.sin(t),Math.sin(n))}function An(t,n,e){++ja,Aa+=(t-Aa)/ja,La+=(n-La)/ja,Ta+=(e-Ta)/ja}function Ln(){function t(t,u){t*=Vo;var i=Math.cos(u*=Vo),o=i*Math.cos(t),a=i*Math.sin(t),c=Math.sin(u),f=Math.atan2(Math.sqrt((f=e*c-r*a)*f+(f=r*o-n*c)*f+(f=n*a-e*o)*f),n*o+e*a+r*c);Ca+=f,Oa+=f*(n+(n=o)),Ra+=f*(e+(e=a)),Pa+=f*(r+(r=c)),An(n,e,r)}var n,e,r;qa.point=function(u,i){u*=Vo;var o=Math.cos(i*=Vo);n=o*Math.cos(u),e=o*Math.sin(u),r=Math.sin(i),qa.point=t,An(n,e,r)}}function Tn(){qa.point=Cn}function On(){function t(t,n){t*=Vo;var e=Math.cos(n*=Vo),o=e*Math.cos(t),a=e*Math.sin(t),c=Math.sin(n),f=u*c-i*a,l=i*o-r*c,s=r*a-u*o,h=Math.sqrt(f*f+l*l+s*s),d=r*o+u*a+i*c,p=h&&-it(d)/h,g=Math.atan2(h,d);Ia+=p*f,za+=p*l,Da+=p*s,Ca+=g,Oa+=g*(r+(r=o)),Ra+=g*(u+(u=a)),Pa+=g*(i+(i=c)),An(r,u,i)}var n,e,r,u,i;qa.point=function(o,a){n=o,e=a,qa.point=t,o*=Vo;var c=Math.cos(a*=Vo);r=c*Math.cos(o),u=c*Math.sin(o),i=Math.sin(a),An(r,u,i)},qa.lineEnd=function(){t(n,e),qa.lineEnd=Tn,qa.point=Cn}}function Rn(t,n){function e(e,r){return e=t(e,r),n(e[0],e[1])}return t.invert&&n.invert&&(e.invert=function(e,r){return(e=n.invert(e,r))&&t.invert(e[0],e[1])}),e}function Pn(){return!0}function In(t,n,e,r,u){var i=[],o=[];if(t.forEach(function(t){if(!((n=t.length-1)<=0)){var n,e=t[0],r=t[n];if(jn(e,r)){u.lineStart();for(var a=0;a<n;++a)u.point((e=t[a])[0],e[1]);return void u.lineEnd()}var c=new Dn(e,t,null,!0),f=new Dn(e,null,c,!1);c.o=f,i.push(c),o.push(f),c=new Dn(r,t,null,!1),f=new Dn(r,null,c,!0),c.o=f,i.push(c),o.push(f)}}),o.sort(n),zn(i),zn(o),i.length){for(var a=0,c=e,f=o.length;a<f;++a)o[a].e=c=!c;for(var l,s,h=i[0];;){for(var d=h,p=!0;d.v;)if((d=d.n)===h)return;l=d.z,u.lineStart();do{if(d.v=d.o.v=!0,d.e){if(p)for(var a=0,f=l.length;a<f;++a)u.point((s=l[a])[0],s[1]);else r(d.x,d.n.x,1,u);d=d.n}else{if(p){l=d.p.z;for(var a=l.length-1;a>=0;--a)u.point((s=l[a])[0],s[1])}else r(d.x,d.p.x,-1,u);d=d.p}d=d.o,l=d.z,p=!p}while(!d.v);u.lineEnd()}}}function zn(t){if(n=t.length){for(var n,e,r=0,u=t[0];++r<n;)u.n=e=t[r],e.p=u,u=e;u.n=e=t[0],e.p=u}}function Dn(t,n,e,r){this.x=t,this.z=n,this.o=e,this.e=r,this.v=!1,this.n=this.p=null}function qn(t,n,e,r){return function(u,i){function o(n,e){var r=u(n,e);t(n=r[0],e=r[1])&&i.point(n,e)}function a(t,n){var e=u(t,n);v.point(e[0],e[1])}function c(){_.point=a,v.lineStart()}function f(){_.point=o,v.lineEnd()}function l(t,n){g.push([t,n]);var e=u(t,n);x.point(e[0],e[1])}function s(){x.lineStart(),g=[]}function h(){l(g[0][0],g[0][1]),x.lineEnd();var t,n=x.clean(),e=m.buffer(),r=e.length;if(g.pop(),p.push(g),g=null,r)if(1&n){t=e[0];var u,r=t.length-1,o=-1;if(r>0){for(b||(i.polygonStart(),b=!0),i.lineStart();++o<r;)i.point((u=t[o])[0],u[1]);i.lineEnd()}}else r>1&&2&n&&e.push(e.pop().concat(e.shift())),d.push(e.filter(Un))}var d,p,g,v=n(i),y=u.invert(r[0],r[1]),_={point:o,lineStart:c,lineEnd:f,polygonStart:function(){_.point=l,_.lineStart=s,_.lineEnd=h,d=[],p=[]},polygonEnd:function(){_.point=o,_.lineStart=c,_.lineEnd=f,d=ho.merge(d);var t=Vn(y,p);d.length?(b||(i.polygonStart(),b=!0),In(d,Bn,t,e,i)):t&&(b||(i.polygonStart(),b=!0),i.lineStart(),e(null,null,1,i),i.lineEnd()),b&&(i.polygonEnd(),b=!1),d=p=null},sphere:function(){i.polygonStart(),i.lineStart(),e(null,null,1,i),i.lineEnd(),i.polygonEnd()}},m=Fn(),x=n(m),b=!1;return _}}function Un(t){return t.length>1}function Fn(){var t,n=[];return{lineStart:function(){n.push(t=[])},point:function(n,e){t.push([n,e])},lineEnd:N,buffer:function(){var e=n;return n=[],t=null,e},rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))}}}function Bn(t,n){return((t=t.x)[0]<0?t[1]-Ho-Uo:Ho-t[1])-((n=n.x)[0]<0?n[1]-Ho-Uo:Ho-n[1])}function Wn(t){var n,e=NaN,r=NaN,u=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(i,o){var a=i>0?Bo:-Bo,c=Mo(i-e);Mo(c-Bo)<Uo?(t.point(e,r=(r+o)/2>0?Ho:-Ho),t.point(u,r),t.lineEnd(),t.lineStart(),t.point(a,r),t.point(i,r),n=0):u!==a&&c>=Bo&&(Mo(e-u)<Uo&&(e-=u*Uo),Mo(i-a)<Uo&&(i-=a*Uo),r=Yn(e,r,i,o),t.point(u,r),t.lineEnd(),t.lineStart(),t.point(a,r),n=0),t.point(e=i,r=o),u=a},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}}function Yn(t,n,e,r){var u,i,o=Math.sin(t-e);return Mo(o)>Uo?Math.atan((Math.sin(n)*(i=Math.cos(r))*Math.sin(e)-Math.sin(r)*(u=Math.cos(n))*Math.sin(t))/(u*i*o)):(n+r)/2}function Hn(t,n,e,r){var u;if(null==t)u=e*Ho,r.point(-Bo,u),r.point(0,u),r.point(Bo,u),r.point(Bo,0),r.point(Bo,-u),r.point(0,-u),r.point(-Bo,-u),r.point(-Bo,0),r.point(-Bo,u);else if(Mo(t[0]-n[0])>Uo){var i=t[0]<n[0]?Bo:-Bo;u=e*i/2,r.point(-i,u),r.point(0,u),r.point(i,u)}else r.point(n[0],n[1])}function Vn(t,n){var e=t[0],r=t[1],u=[Math.sin(e),-Math.cos(e),0],i=0,o=0;Na.reset();for(var a=0,c=n.length;a<c;++a){var f=n[a],l=f.length;if(l)for(var s=f[0],h=s[0],d=s[1]/2+Bo/4,p=Math.sin(d),g=Math.cos(d),v=1;;){v===l&&(v=0),t=f[v];var y=t[0],_=t[1]/2+Bo/4,m=Math.sin(_),x=Math.cos(_),b=y-h,w=b>=0?1:-1,M=w*b,k=M>Bo,E=p*m;if(Na.add(Math.atan2(E*w*Math.sin(M),g*x+E*Math.cos(M))),i+=k?b+w*Wo:b,k^h>=e^y>=e){var N=Mn(bn(s),bn(t));Nn(N);var S=Mn(u,N);Nn(S);var j=(k^b>=0?-1:1)*ot(S[2]);(r>j||r===j&&(N[0]||N[1]))&&(o+=k^b>=0?1:-1)}if(!v++)break;h=y,p=m,g=x,s=t}}return(i<-Uo||i<Uo&&Na<-Uo)^1&o}function $n(t){function n(t,n){return Math.cos(t)*Math.cos(n)>i}function e(t){var e,i,c,f,l;return{lineStart:function(){f=c=!1,l=1},point:function(s,h){var d,p=[s,h],g=n(s,h),v=o?g?0:u(s,h):g?u(s+(s<0?Bo:-Bo),h):0;if(!e&&(f=c=g)&&t.lineStart(),g!==c&&(d=r(e,p),(jn(e,d)||jn(p,d))&&(p[0]+=Uo,p[1]+=Uo,g=n(p[0],p[1]))),g!==c)l=0,g?(t.lineStart(),d=r(p,e),t.point(d[0],d[1])):(d=r(e,p),t.point(d[0],d[1]),t.lineEnd()),e=d;else if(a&&e&&o^g){var y;v&i||!(y=r(p,e,!0))||(l=0,o?(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&&jn(e,p)||t.point(p[0],p[1]),e=p,c=g,i=v},lineEnd:function(){c&&t.lineEnd(),e=null},clean:function(){return l|(f&&c)<<1}}}function r(t,n,e){var r=bn(t),u=bn(n),o=[1,0,0],a=Mn(r,u),c=wn(a,a),f=a[0],l=c-f*f;if(!l)return!e&&t;var s=i*c/l,h=-i*f/l,d=Mn(o,a),p=En(o,s);kn(p,En(a,h));var g=d,v=wn(p,g),y=wn(g,g),_=v*v-y*(wn(p,p)-1);if(!(_<0)){var m=Math.sqrt(_),x=En(g,(-v-m)/y);if(kn(x,p),x=Sn(x),!e)return x;var b,w=t[0],M=n[0],k=t[1],E=n[1];M<w&&(b=w,w=M,M=b);var N=M-w,S=Mo(N-Bo)<Uo,j=S||N<Uo;if(!S&&E<k&&(b=k,k=E,E=b),j?S?k+E>0^x[1]<(Mo(x[0]-w)<Uo?k:E):k<=x[1]&&x[1]<=E:N>Bo^(w<=x[0]&&x[0]<=M)){var C=En(g,(-v+m)/y);return kn(C,p),[x,Sn(C)]}}}function u(n,e){var r=o?t:Bo-t,u=0;return n<-r?u|=1:n>r&&(u|=2),e<-r?u|=4:e>r&&(u|=8),u}var i=Math.cos(t),o=i>0,a=Mo(i)>Uo;return qn(n,e,xe(t,6*Vo),o?[0,-t]:[-Bo,t-Bo])}function Gn(t,n,e,r){return function(u){var i,o=u.a,a=u.b,c=o.x,f=o.y,l=a.x,s=a.y,h=0,d=1,p=l-c,g=s-f;if(i=t-c,p||!(i>0)){if(i/=p,p<0){if(i<h)return;i<d&&(d=i)}else if(p>0){if(i>d)return;i>h&&(h=i)}if(i=e-c,p||!(i<0)){if(i/=p,p<0){if(i>d)return;i>h&&(h=i)}else if(p>0){if(i<h)return;i<d&&(d=i)}if(i=n-f,g||!(i>0)){if(i/=g,g<0){if(i<h)return;i<d&&(d=i)}else if(g>0){if(i>d)return;i>h&&(h=i)}if(i=r-f,g||!(i<0)){if(i/=g,g<0){if(i>d)return;i>h&&(h=i)}else if(g>0){if(i<h)return;i<d&&(d=i)}return h>0&&(u.a={x:c+h*p,y:f+h*g}),d<1&&(u.b={x:c+d*p,y:f+d*g}),u}}}}}}function Zn(t,n,e,r){function u(r,u){return Mo(r[0]-t)<Uo?u>0?0:3:Mo(r[0]-e)<Uo?u>0?2:1:Mo(r[1]-n)<Uo?u>0?1:0:u>0?3:2}function i(t,n){return o(t.x,n.x)}function o(t,n){var e=u(t,1),r=u(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(a){function c(t){for(var n=0,e=v.length,r=t[1],u=0;u<e;++u)for(var i,o=1,a=v[u],c=a.length,f=a[0];o<c;++o)i=a[o],f[1]<=r?i[1]>r&&ut(f,i,t)>0&&++n:i[1]<=r&&ut(f,i,t)<0&&--n,f=i;return 0!==n}function f(i,a,c,f){var l=0,s=0;if(null==i||(l=u(i,c))!==(s=u(a,c))||o(i,a)<0^c>0)do{f.point(0===l||3===l?t:e,l>1?r:n)}while((l=(l+c+4)%4)!==s);else f.point(a[0],a[1])}function l(u,i){return t<=u&&u<=e&&n<=i&&i<=r}function s(t,n){l(t,n)&&a.point(t,n)}function h(){C.point=p,v&&v.push(y=[]),k=!0,M=!1,b=w=NaN}function d(){g&&(p(_,m),x&&M&&S.rejoin(),g.push(S.buffer())),C.point=s,M&&a.lineEnd()}function p(t,n){t=Math.max(-Fa,Math.min(Fa,t)),n=Math.max(-Fa,Math.min(Fa,n));var e=l(t,n);if(v&&y.push([t,n]),k)_=t,m=n,x=e,k=!1,e&&(a.lineStart(),a.point(t,n));else if(e&&M)a.point(t,n);else{var r={a:{x:b,y:w},b:{x:t,y:n}};j(r)?(M||(a.lineStart(),a.point(r.a.x,r.a.y)),a.point(r.b.x,r.b.y),e||a.lineEnd(),E=!1):e&&(a.lineStart(),a.point(t,n),E=!1)}b=t,w=n,M=e}var g,v,y,_,m,x,b,w,M,k,E,N=a,S=Fn(),j=Gn(t,n,e,r),C={point:s,lineStart:h,lineEnd:d,polygonStart:function(){a=S,g=[],v=[],E=!0},polygonEnd:function(){a=N,g=ho.merge(g);var n=c([t,r]),e=E&&n,u=g.length;(e||u)&&(a.polygonStart(),e&&(a.lineStart(),f(null,null,1,a),a.lineEnd()),u&&In(g,i,n,f,a),a.polygonEnd()),g=v=y=null}};return C}}function Xn(t){var n=0,e=Bo/3,r=he(t),u=r(n,e);return u.parallels=function(t){return arguments.length?r(n=t[0]*Bo/180,e=t[1]*Bo/180):[n/Bo*180,e/Bo*180]},u}function Jn(t,n){function e(t,n){var e=Math.sqrt(i-2*u*Math.sin(n))/u;return[e*Math.sin(t*=u),o-e*Math.cos(t)]}var r=Math.sin(t),u=(r+Math.sin(n))/2,i=1+r*(2*u-r),o=Math.sqrt(i)/u;return e.invert=function(t,n){var e=o-n;return[Math.atan2(t,e)/u,ot((i-(t*t+e*e)*u*u)/(2*u))]},e}function Kn(){function t(t,n){Wa+=u*t-r*n,r=t,u=n}var n,e,r,u;Ga.point=function(i,o){Ga.point=t,n=r=i,e=u=o},Ga.lineEnd=function(){t(n,e)}}function Qn(t,n){t<Ya&&(Ya=t),t>Va&&(Va=t),n<Ha&&(Ha=n),n>$a&&($a=n)}function te(){function t(t,n){o.push("M",t,",",n,i)}function n(t,n){o.push("M",t,",",n),a.point=e}function e(t,n){o.push("L",t,",",n)}function r(){a.point=t}function u(){o.push("Z")}var i=ne(4.5),o=[],a={point:t,lineStart:function(){a.point=n},lineEnd:r,polygonStart:function(){a.lineEnd=u},polygonEnd:function(){a.lineEnd=r,a.point=t},pointRadius:function(t){return i=ne(t),a},result:function(){if(o.length){var t=o.join("");return o=[],t}}};return a}function ne(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function ee(t,n){Aa+=t,La+=n,++Ta}function re(){function t(t,r){var u=t-n,i=r-e,o=Math.sqrt(u*u+i*i);Oa+=o*(n+t)/2,Ra+=o*(e+r)/2,Pa+=o,ee(n=t,e=r)}var n,e;Xa.point=function(r,u){Xa.point=t,ee(n=r,e=u)}}function ue(){Xa.point=ee}function ie(){function t(t,n){var e=t-r,i=n-u,o=Math.sqrt(e*e+i*i);Oa+=o*(r+t)/2,Ra+=o*(u+n)/2,Pa+=o,o=u*t-r*n,Ia+=o*(r+t),za+=o*(u+n),Da+=3*o,ee(r=t,u=n)}var n,e,r,u;Xa.point=function(i,o){Xa.point=t,ee(n=r=i,e=u=o)},Xa.lineEnd=function(){t(n,e)}}function oe(t){function n(n,e){t.moveTo(n+o,e),t.arc(n,e,o,0,Wo)}function e(n,e){t.moveTo(n,e),a.point=r}function r(n,e){t.lineTo(n,e)}function u(){a.point=n}function i(){t.closePath()}var o=4.5,a={point:n,lineStart:function(){a.point=e},lineEnd:u,polygonStart:function(){a.lineEnd=i},polygonEnd:function(){a.lineEnd=u,a.point=n},pointRadius:function(t){return o=t,a},result:N};return a}function ae(t){function n(t){return(a?r:e)(t)}function e(n){return le(n,function(e,r){e=t(e,r),n.point(e[0],e[1])})}function r(n){function e(e,r){e=t(e,r),n.point(e[0],e[1])}function r(){m=NaN,k.point=i,n.lineStart()}function i(e,r){var i=bn([e,r]),o=t(e,r);u(m,x,_,b,w,M,m=o[0],x=o[1],_=e,b=i[0],w=i[1],M=i[2],a,n),n.point(m,x)}function o(){k.point=e,n.lineEnd()}function c(){r(),k.point=f,k.lineEnd=l}function f(t,n){i(s=t,h=n),d=m,p=x,g=b,v=w,y=M,k.point=i}function l(){u(m,x,_,b,w,M,d,p,s,g,v,y,a,n),k.lineEnd=o,o()}var s,h,d,p,g,v,y,_,m,x,b,w,M,k={point:e,lineStart:r,lineEnd:o,polygonStart:function(){n.polygonStart(),k.lineStart=c},polygonEnd:function(){n.polygonEnd(),k.lineStart=r}};return k}function u(n,e,r,a,c,f,l,s,h,d,p,g,v,y){var _=l-n,m=s-e,x=_*_+m*m;if(x>4*i&&v--){var b=a+d,w=c+p,M=f+g,k=Math.sqrt(b*b+w*w+M*M),E=Math.asin(M/=k),N=Mo(Mo(M)-1)<Uo||Mo(r-h)<Uo?(r+h)/2:Math.atan2(w,b),S=t(N,E),j=S[0],C=S[1],A=j-n,L=C-e,T=m*A-_*L;(T*T/x>i||Mo((_*A+m*L)/x-.5)>.3||a*d+c*p+f*g<o)&&(u(n,e,r,a,c,f,j,C,N,b/=k,w/=k,M,v,y),y.point(j,C),u(j,C,N,b,w,M,l,s,h,d,p,g,v,y))}}var i=.5,o=Math.cos(30*Vo),a=16;return n.precision=function(t){return arguments.length?(a=(i=t*t)>0&&16,n):Math.sqrt(i)},n}function ce(t){var n=ae(function(n,e){return t([n*$o,e*$o])});return function(t){return de(n(t))}}function fe(t){this.stream=t}function le(t,n){return{point:n,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function se(t){return he(function(){return t})()}function he(t){function n(t){return t=a(t[0]*Vo,t[1]*Vo),[t[0]*h+c,f-t[1]*h]}function e(t){return(t=a.invert((t[0]-c)/h,(f-t[1])/h))&&[t[0]*$o,t[1]*$o]}function r(){a=Rn(o=ve(y,_,m),i);var t=i(g,v);return c=d-t[0]*h,f=p+t[1]*h,u()}function u(){return l&&(l.valid=!1,l=null),n}var i,o,a,c,f,l,s=ae(function(t,n){return t=i(t,n),[t[0]*h+c,f-t[1]*h]}),h=150,d=480,p=250,g=0,v=0,y=0,_=0,m=0,x=Ua,b=M,w=null,k=null;return n.stream=function(t){return l&&(l.valid=!1),l=de(x(o,s(b(t)))),l.valid=!0,l},n.clipAngle=function(t){return arguments.length?(x=null==t?(w=t,Ua):$n((w=+t)*Vo),u()):w},n.clipExtent=function(t){return arguments.length?(k=t,b=t?Zn(t[0][0],t[0][1],t[1][0],t[1][1]):M,u()):k},n.scale=function(t){return arguments.length?(h=+t,r()):h},n.translate=function(t){return arguments.length?(d=+t[0],p=+t[1],r()):[d,p]},n.center=function(t){return arguments.length?(g=t[0]%360*Vo,v=t[1]%360*Vo,r()):[g*$o,v*$o]},n.rotate=function(t){return arguments.length?(y=t[0]%360*Vo,_=t[1]%360*Vo,m=t.length>2?t[2]%360*Vo:0,r()):[y*$o,_*$o,m*$o]},ho.rebind(n,s,"precision"),function(){return i=t.apply(this,arguments),n.invert=i.invert&&e,r()}}function de(t){return le(t,function(n,e){t.point(n*Vo,e*Vo)})}function pe(t,n){return[t,n]}function ge(t,n){return[t>Bo?t-Wo:t<-Bo?t+Wo:t,n]}function ve(t,n,e){return t?n||e?Rn(_e(t),me(n,e)):_e(t):n||e?me(n,e):ge}function ye(t){return function(n,e){return n+=t,[n>Bo?n-Wo:n<-Bo?n+Wo:n,e]}}function _e(t){var n=ye(t);return n.invert=ye(-t),n}function me(t,n){function e(t,n){var e=Math.cos(n),a=Math.cos(t)*e,c=Math.sin(t)*e,f=Math.sin(n),l=f*r+a*u;return[Math.atan2(c*i-l*o,a*r-f*u),ot(l*i+c*o)]}var r=Math.cos(t),u=Math.sin(t),i=Math.cos(n),o=Math.sin(n);return e.invert=function(t,n){var e=Math.cos(n),a=Math.cos(t)*e,c=Math.sin(t)*e,f=Math.sin(n),l=f*i-c*o;return[Math.atan2(c*i+f*o,a*r+l*u),ot(l*r-a*u)]},e}function xe(t,n){var e=Math.cos(t),r=Math.sin(t);return function(u,i,o,a){var c=o*n;null!=u?(u=be(e,u),i=be(e,i),(o>0?u<i:u>i)&&(u+=o*Wo)):(u=t+o*Wo,i=t-.5*c);for(var f,l=u;o>0?l>i:l<i;l-=c)a.point((f=Sn([e,-r*Math.cos(l),-r*Math.sin(l)]))[0],f[1])}}function be(t,n){var e=bn(n);e[0]-=t,Nn(e);var r=it(-e[1]);return((-e[2]<0?-r:r)+2*Math.PI-Uo)%(2*Math.PI)}function we(t,n,e){var r=ho.range(t,n-Uo,e).concat(n);return function(t){return r.map(function(n){return[t,n]})}}function Me(t,n,e){var r=ho.range(t,n-Uo,e).concat(n);return function(t){return r.map(function(n){return[n,t]})}}function ke(t){return t.source}function Ee(t){return t.target}function Ne(t,n,e,r){var u=Math.cos(n),i=Math.sin(n),o=Math.cos(r),a=Math.sin(r),c=u*Math.cos(t),f=u*Math.sin(t),l=o*Math.cos(e),s=o*Math.sin(e),h=2*Math.asin(Math.sqrt(lt(r-n)+u*o*lt(e-t))),d=1/Math.sin(h),p=h?function(t){var n=Math.sin(t*=h)*d,e=Math.sin(h-t)*d,r=e*c+n*l,u=e*f+n*s,o=e*i+n*a;return[Math.atan2(u,r)*$o,Math.atan2(o,Math.sqrt(r*r+u*u))*$o]}:function(){return[t*$o,n*$o]};return p.distance=h,p}function Se(){function t(t,u){var i=Math.sin(u*=Vo),o=Math.cos(u),a=Mo((t*=Vo)-n),c=Math.cos(a);Ja+=Math.atan2(Math.sqrt((a=o*Math.sin(a))*a+(a=r*i-e*o*c)*a),e*i+r*o*c),n=t,e=i,r=o}var n,e,r;Ka.point=function(u,i){n=u*Vo,e=Math.sin(i*=Vo),r=Math.cos(i),Ka.point=t},Ka.lineEnd=function(){Ka.point=Ka.lineEnd=N}}function je(t,n){function e(n,e){var r=Math.cos(n),u=Math.cos(e),i=t(r*u);return[i*u*Math.sin(n),i*Math.sin(e)]}return e.invert=function(t,e){var r=Math.sqrt(t*t+e*e),u=n(r),i=Math.sin(u),o=Math.cos(u);return[Math.atan2(t*i,r*o),Math.asin(r&&e*i/r)]},e}function Ce(t,n){function e(t,n){o>0?n<-Ho+Uo&&(n=-Ho+Uo):n>Ho-Uo&&(n=Ho-Uo);var e=o/Math.pow(u(n),i);return[e*Math.sin(i*t),o-e*Math.cos(i*t)]}var r=Math.cos(t),u=function(t){return Math.tan(Bo/4+t/2)},i=t===n?Math.sin(t):Math.log(r/Math.cos(n))/Math.log(u(n)/u(t)),o=r*Math.pow(u(t),i)/i;return i?(e.invert=function(t,n){var e=o-n,r=rt(i)*Math.sqrt(t*t+e*e);return[Math.atan2(t,e)/i,2*Math.atan(Math.pow(o/r,1/i))-Ho]},e):Le}function Ae(t,n){function e(t,n){var e=i-n;return[e*Math.sin(u*t),i-e*Math.cos(u*t)]}var r=Math.cos(t),u=t===n?Math.sin(t):(r-Math.cos(n))/(n-t),i=r/u+t;return Mo(u)<Uo?pe:(e.invert=function(t,n){var e=i-n;return[Math.atan2(t,e)/u,i-rt(u)*Math.sqrt(t*t+e*e)]},e)}function Le(t,n){return[t,Math.log(Math.tan(Bo/4+n/2))]}function Te(t){var n,e=se(t),r=e.scale,u=e.translate,i=e.clipExtent;return e.scale=function(){var t=r.apply(e,arguments);return t===e?n?e.clipExtent(null):e:t},e.translate=function(){var t=u.apply(e,arguments);return t===e?n?e.clipExtent(null):e:t},e.clipExtent=function(t){var o=i.apply(e,arguments);if(o===e){if(n=null==t){var a=Bo*r(),c=u();i([[c[0]-a,c[1]-a],[c[0]+a,c[1]+a]])}}else n&&(o=null);return o},e.clipExtent(null)}function Oe(t,n){return[Math.log(Math.tan(Bo/4+n/2)),-t]}function Re(t){return t[0]}function Pe(t){return t[1]}function Ie(t){for(var n=t.length,e=[0,1],r=2,u=2;u<n;u++){for(;r>1&&ut(t[e[r-2]],t[e[r-1]],t[u])<=0;)--r;e[r++]=u}return e.slice(0,r)}function ze(t,n){return t[0]-n[0]||t[1]-n[1]}function De(t,n,e){return(e[0]-n[0])*(t[1]-n[1])<(e[1]-n[1])*(t[0]-n[0])}function qe(t,n,e,r){var u=t[0],i=e[0],o=n[0]-u,a=r[0]-i,c=t[1],f=e[1],l=n[1]-c,s=r[1]-f,h=(a*(c-f)-s*(u-i))/(s*o-a*l);return[u+h*o,c+h*l]}function Ue(t){var n=t[0],e=t[t.length-1];return!(n[0]-e[0]||n[1]-e[1])}function Fe(){cr(this),this.edge=this.site=this.circle=null}function Be(t){var n=lc.pop()||new Fe;return n.site=t,n}function We(t){Qe(t),ac.remove(t),lc.push(t),cr(t)}function Ye(t){var n=t.circle,e=n.x,r=n.cy,u={x:e,y:r},i=t.P,o=t.N,a=[t];We(t);for(var c=i;c.circle&&Mo(e-c.circle.x)<Uo&&Mo(r-c.circle.cy)<Uo;)i=c.P,a.unshift(c),We(c),c=i;a.unshift(c),Qe(c);for(var f=o;f.circle&&Mo(e-f.circle.x)<Uo&&Mo(r-f.circle.cy)<Uo;)o=f.N,a.push(f),We(f),f=o;a.push(f),Qe(f);var l,s=a.length;for(l=1;l<s;++l)f=a[l],c=a[l-1],ir(f.edge,c.site,f.site,u);c=a[0],f=a[s-1],f.edge=rr(c.site,f.site,null,u),Ke(c),Ke(f)}function He(t){for(var n,e,r,u,i=t.x,o=t.y,a=ac._;a;)if((r=Ve(a,o)-i)>Uo)a=a.L;else{if(!((u=i-$e(a,o))>Uo)){r>-Uo?(n=a.P,e=a):u>-Uo?(n=a,e=a.N):n=e=a;break}if(!a.R){n=a;break}a=a.R}var c=Be(t);if(ac.insert(n,c),n||e){if(n===e)return Qe(n),e=Be(n.site),ac.insert(c,e),c.edge=e.edge=rr(n.site,c.site),Ke(n),void Ke(e);if(!e)return void(c.edge=rr(n.site,c.site));Qe(n),Qe(e);var f=n.site,l=f.x,s=f.y,h=t.x-l,d=t.y-s,p=e.site,g=p.x-l,v=p.y-s,y=2*(h*v-d*g),_=h*h+d*d,m=g*g+v*v,x={x:(v*_-d*m)/y+l,y:(h*m-g*_)/y+s};ir(e.edge,f,p,x),c.edge=rr(f,t,null,x),e.edge=rr(t,p,null,x),Ke(n),Ke(e)}}function Ve(t,n){var e=t.site,r=e.x,u=e.y,i=u-n;if(!i)return r;var o=t.P;if(!o)return-1/0;e=o.site;var a=e.x,c=e.y,f=c-n;if(!f)return a;var l=a-r,s=1/i-1/f,h=l/f;return s?(-h+Math.sqrt(h*h-2*s*(l*l/(-2*f)-c+f/2+u-i/2)))/s+r:(r+a)/2}function $e(t,n){var e=t.N;if(e)return Ve(e,n);var r=t.site;return r.y===n?r.x:1/0}function Ge(t){this.site=t,this.edges=[]}function Ze(t){for(var n,e,r,u,i,o,a,c,f,l,s=t[0][0],h=t[1][0],d=t[0][1],p=t[1][1],g=oc,v=g.length;v--;)if((i=g[v])&&i.prepare())for(a=i.edges,c=a.length,o=0;o<c;)l=a[o].end(),r=l.x,u=l.y,f=a[++o%c].start(),n=f.x,e=f.y,(Mo(r-n)>Uo||Mo(u-e)>Uo)&&(a.splice(o,0,new or(ur(i.site,l,Mo(r-s)<Uo&&p-u>Uo?{x:s,y:Mo(n-s)<Uo?e:p}:Mo(u-p)<Uo&&h-r>Uo?{x:Mo(e-p)<Uo?n:h,y:p}:Mo(r-h)<Uo&&u-d>Uo?{x:h,y:Mo(n-h)<Uo?e:d}:Mo(u-d)<Uo&&r-s>Uo?{x:Mo(e-d)<Uo?n:s,y:d}:null),i.site,null)),++c)}function Xe(t,n){return n.angle-t.angle}function Je(){cr(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ke(t){var n=t.P,e=t.N;if(n&&e){var r=n.site,u=t.site,i=e.site;if(r!==i){var o=u.x,a=u.y,c=r.x-o,f=r.y-a,l=i.x-o,s=i.y-a,h=2*(c*s-f*l);if(!(h>=-Fo)){var d=c*c+f*f,p=l*l+s*s,g=(s*d-f*p)/h,v=(c*p-l*d)/h,s=v+a,y=sc.pop()||new Je;y.arc=t,y.site=u,y.x=g+o,y.y=s+Math.sqrt(g*g+v*v),y.cy=s,t.circle=y;for(var _=null,m=fc._;m;)if(y.y<m.y||y.y===m.y&&y.x<=m.x){if(!m.L){_=m.P;break}m=m.L}else{if(!m.R){_=m;break}m=m.R}fc.insert(_,y),_||(cc=y)}}}}function Qe(t){var n=t.circle;n&&(n.P||(cc=n.N),fc.remove(n),sc.push(n),cr(n),t.circle=null)}function tr(t){for(var n,e=ic,r=Gn(t[0][0],t[0][1],t[1][0],t[1][1]),u=e.length;u--;)n=e[u],(!nr(n,t)||!r(n)||Mo(n.a.x-n.b.x)<Uo&&Mo(n.a.y-n.b.y)<Uo)&&(n.a=n.b=null,e.splice(u,1))}function nr(t,n){var e=t.b;if(e)return!0;var r,u,i=t.a,o=n[0][0],a=n[1][0],c=n[0][1],f=n[1][1],l=t.l,s=t.r,h=l.x,d=l.y,p=s.x,g=s.y,v=(h+p)/2,y=(d+g)/2;if(g===d){if(v<o||v>=a)return;if(h>p){if(i){if(i.y>=f)return}else i={x:v,y:c};e={x:v,y:f}}else{if(i){if(i.y<c)return}else i={x:v,y:f};e={x:v,y:c}}}else if(r=(h-p)/(g-d),u=y-r*v,r<-1||r>1)if(h>p){if(i){if(i.y>=f)return}else i={x:(c-u)/r,y:c};e={x:(f-u)/r,y:f}}else{if(i){if(i.y<c)return}else i={x:(f-u)/r,y:f};e={x:(c-u)/r,y:c}}else if(d<g){if(i){if(i.x>=a)return}else i={x:o,y:r*o+u};e={x:a,y:r*a+u}}else{if(i){if(i.x<o)return}else i={x:a,y:r*a+u};e={x:o,y:r*o+u}}return t.a=i,t.b=e,!0}function er(t,n){this.l=t,this.r=n,this.a=this.b=null}function rr(t,n,e,r){var u=new er(t,n);return ic.push(u),e&&ir(u,t,n,e),r&&ir(u,n,t,r),oc[t.i].edges.push(new or(u,t,n)),oc[n.i].edges.push(new or(u,n,t)),u}function ur(t,n,e){var r=new er(t,null);return r.a=n,r.b=e,ic.push(r),r}function ir(t,n,e,r){t.a||t.b?t.l===e?t.b=r:t.a=r:(t.a=r,t.l=n,t.r=e)}function or(t,n,e){var r=t.a,u=t.b;this.edge=t,this.site=n,this.angle=e?Math.atan2(e.y-n.y,e.x-n.x):t.l===n?Math.atan2(u.x-r.x,r.y-u.y):Math.atan2(r.x-u.x,u.y-r.y)}function ar(){this._=null}function cr(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function fr(t,n){var e=n,r=n.R,u=e.U;u?u.L===e?u.L=r:u.R=r:t._=r,r.U=u,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function lr(t,n){var e=n,r=n.L,u=e.U;u?u.L===e?u.L=r:u.R=r:t._=r,r.U=u,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function sr(t){for(;t.L;)t=t.L;return t}function hr(t,n){var e,r,u,i=t.sort(dr).pop();for(ic=[],oc=new Array(t.length),ac=new ar,fc=new ar;;)if(u=cc,i&&(!u||i.y<u.y||i.y===u.y&&i.x<u.x))i.x===e&&i.y===r||(oc[i.i]=new Ge(i),He(i),e=i.x,r=i.y),i=t.pop();else{if(!u)break;Ye(u.arc)}n&&(tr(n),Ze(n));var o={cells:oc,edges:ic};return ac=fc=ic=oc=null,o}function dr(t,n){return n.y-t.y||n.x-t.x}function pr(t,n,e){return(t.x-e.x)*(n.y-t.y)-(t.x-n.x)*(e.y-t.y)}function gr(t){return t.x}function vr(t){return t.y}function yr(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function _r(t,n,e,r,u,i){if(!t(n,e,r,u,i)){var o=.5*(e+u),a=.5*(r+i),c=n.nodes;c[0]&&_r(t,c[0],e,r,o,a),c[1]&&_r(t,c[1],o,r,u,a),c[2]&&_r(t,c[2],e,a,o,i),c[3]&&_r(t,c[3],o,a,u,i)}}function mr(t,n,e,r,u,i,o){var a,c=1/0;return function t(f,l,s,h,d){if(!(l>i||s>o||h<r||d<u)){if(p=f.point){var p,g=n-f.x,v=e-f.y,y=g*g+v*v;if(y<c){var _=Math.sqrt(c=y);r=n-_,u=e-_,i=n+_,o=e+_,a=p}}for(var m=f.nodes,x=.5*(l+h),b=.5*(s+d),w=n>=x,M=e>=b,k=M<<1|w,E=k+4;k<E;++k)if(f=m[3&k])switch(3&k){case 0:t(f,l,s,x,b);break;case 1:t(f,x,s,h,b);break;case 2:t(f,l,b,x,d);break;case 3:t(f,x,b,h,d)}}}(t,r,u,i,o),a}function xr(t,n){t=ho.rgb(t),n=ho.rgb(n);var e=t.r,r=t.g,u=t.b,i=n.r-e,o=n.g-r,a=n.b-u;return function(t){return"#"+Et(Math.round(e+i*t))+Et(Math.round(r+o*t))+Et(Math.round(u+a*t))}}function br(t,n){var e,r={},u={};for(e in t)e in n?r[e]=kr(t[e],n[e]):u[e]=t[e];for(e in n)e in t||(u[e]=n[e]);return function(t){for(e in r)u[e]=r[e](t);return u}}function wr(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function Mr(t,n){var e,r,u,i=dc.lastIndex=pc.lastIndex=0,o=-1,a=[],c=[];for(t+="",n+="";(e=dc.exec(t))&&(r=pc.exec(n));)(u=r.index)>i&&(u=n.slice(i,u),a[o]?a[o]+=u:a[++o]=u),(e=e[0])===(r=r[0])?a[o]?a[o]+=r:a[++o]=r:(a[++o]=null,c.push({i:o,x:wr(e,r)})),i=pc.lastIndex;return i<n.length&&(u=n.slice(i),a[o]?a[o]+=u:a[++o]=u),a.length<2?c[0]?(n=c[0].x,function(t){return n(t)+""}):function(){return n}:(n=c.length,function(t){for(var e,r=0;r<n;++r)a[(e=c[r]).i]=e.x(t);return a.join("")})}function kr(t,n){for(var e,r=ho.interpolators.length;--r>=0&&!(e=ho.interpolators[r](t,n)););return e}function Er(t,n){var e,r=[],u=[],i=t.length,o=n.length,a=Math.min(t.length,n.length);for(e=0;e<a;++e)r.push(kr(t[e],n[e]));for(;e<i;++e)u[e]=t[e];for(;e<o;++e)u[e]=n[e];return function(t){for(e=0;e<a;++e)u[e]=r[e](t);return u}}function Nr(t){return function(n){return n<=0?0:n>=1?1:t(n)}}function Sr(t){return function(n){return 1-t(1-n)}}function jr(t){return function(n){return.5*(n<.5?t(2*n):2-t(2-2*n))}}function Cr(t){return t*t}function Ar(t){return t*t*t}function Lr(t){if(t<=0)return 0;if(t>=1)return 1;var n=t*t,e=n*t;return 4*(t<.5?e:3*(t-n)+e-.75)}function Tr(t){return function(n){return Math.pow(n,t)}}function Or(t){return 1-Math.cos(t*Ho)}function Rr(t){return Math.pow(2,10*(t-1))}function Pr(t){return 1-Math.sqrt(1-t*t)}function Ir(t,n){var e;return arguments.length<2&&(n=.45),arguments.length?e=n/Wo*Math.asin(1/t):(t=1,e=n/4),function(r){return 1+t*Math.pow(2,-10*r)*Math.sin((r-e)*Wo/n)}}function zr(t){return t||(t=1.70158),function(n){return n*n*((t+1)*n-t)}}function Dr(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function qr(t,n){t=ho.hcl(t),n=ho.hcl(n);var e=t.h,r=t.c,u=t.l,i=n.h-e,o=n.c-r,a=n.l-u;return isNaN(o)&&(o=0,r=isNaN(r)?n.c:r),isNaN(i)?(i=0,e=isNaN(e)?n.h:e):i>180?i-=360:i<-180&&(i+=360),function(t){return gt(e+i*t,r+o*t,u+a*t)+""}}function Ur(t,n){t=ho.hsl(t),n=ho.hsl(n);var e=t.h,r=t.s,u=t.l,i=n.h-e,o=n.s-r,a=n.l-u;return isNaN(o)&&(o=0,r=isNaN(r)?n.s:r),isNaN(i)?(i=0,e=isNaN(e)?n.h:e):i>180?i-=360:i<-180&&(i+=360),function(t){return dt(e+i*t,r+o*t,u+a*t)+""}}function Fr(t,n){t=ho.lab(t),n=ho.lab(n);var e=t.l,r=t.a,u=t.b,i=n.l-e,o=n.a-r,a=n.b-u;return function(t){return yt(e+i*t,r+o*t,u+a*t)+""}}function Br(t,n){return n-=t,function(e){return Math.round(t+n*e)}}function Wr(t){var n=[t.a,t.b],e=[t.c,t.d],r=Hr(n),u=Yr(n,e),i=Hr(Vr(e,n,-u))||0;n[0]*e[1]<e[0]*n[1]&&(n[0]*=-1,n[1]*=-1,r*=-1,u*=-1),this.rotate=(r?Math.atan2(n[1],n[0]):Math.atan2(-e[0],e[1]))*$o,this.translate=[t.e,t.f],this.scale=[r,i],this.skew=i?Math.atan2(u,i)*$o:0}function Yr(t,n){return t[0]*n[0]+t[1]*n[1]}function Hr(t){var n=Math.sqrt(Yr(t,t));return n&&(t[0]/=n,t[1]/=n),n}function Vr(t,n,e){return t[0]+=e*n[0],t[1]+=e*n[1],t}function $r(t){return t.length?t.pop()+",":""}function Gr(t,n,e,r){if(t[0]!==n[0]||t[1]!==n[1]){var u=e.push("translate(",null,",",null,")");r.push({i:u-4,x:wr(t[0],n[0])},{i:u-2,x:wr(t[1],n[1])})}else(n[0]||n[1])&&e.push("translate("+n+")")}function Zr(t,n,e,r){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),r.push({i:e.push($r(e)+"rotate(",null,")")-2,x:wr(t,n)})):n&&e.push($r(e)+"rotate("+n+")")}function Xr(t,n,e,r){t!==n?r.push({i:e.push($r(e)+"skewX(",null,")")-2,x:wr(t,n)}):n&&e.push($r(e)+"skewX("+n+")")}function Jr(t,n,e,r){if(t[0]!==n[0]||t[1]!==n[1]){var u=e.push($r(e)+"scale(",null,",",null,")");r.push({i:u-4,x:wr(t[0],n[0])},{i:u-2,x:wr(t[1],n[1])})}else 1===n[0]&&1===n[1]||e.push($r(e)+"scale("+n+")")}function Kr(t,n){var e=[],r=[];return t=ho.transform(t),n=ho.transform(n),Gr(t.translate,n.translate,e,r),Zr(t.rotate,n.rotate,e,r),Xr(t.skew,n.skew,e,r),Jr(t.scale,n.scale,e,r),t=n=null,function(t){for(var n,u=-1,i=r.length;++u<i;)e[(n=r[u]).i]=n.x(t);return e.join("")}}function Qr(t,n){return n=(n-=t=+t)||1/n,function(e){return(e-t)/n}}function tu(t,n){return n=(n-=t=+t)||1/n,function(e){return Math.max(0,Math.min(1,(e-t)/n))}}function nu(t){for(var n=t.source,e=t.target,r=ru(n,e),u=[n];n!==r;)n=n.parent,u.push(n);for(var i=u.length;e!==r;)u.splice(i,0,e),e=e.parent;return u}function eu(t){for(var n=[],e=t.parent;null!=e;)n.push(t),t=e,e=e.parent;return n.push(t),n}function ru(t,n){if(t===n)return t;for(var e=eu(t),r=eu(n),u=e.pop(),i=r.pop(),o=null;u===i;)o=u,u=e.pop(),i=r.pop();return o}function uu(t){t.fixed|=2}function iu(t){t.fixed&=-7}function ou(t){t.fixed|=4,t.px=t.x,t.py=t.y}function au(t){t.fixed&=-5}function cu(t,n,e){var r=0,u=0;if(t.charge=0,!t.leaf)for(var i,o=t.nodes,a=o.length,c=-1;++c<a;)null!=(i=o[c])&&(cu(i,n,e),t.charge+=i.charge,r+=i.charge*i.cx,u+=i.charge*i.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var f=n*e[t.point.index];t.charge+=t.pointCharge=f,r+=f*t.point.x,u+=f*t.point.y}t.cx=r/t.charge,t.cy=u/t.charge}function fu(t,n){return ho.rebind(t,n,"sort","children","value"),t.nodes=t,t.links=gu,t}function lu(t,n){for(var e=[t];null!=(t=e.pop());)if(n(t),(u=t.children)&&(r=u.length))for(var r,u;--r>=0;)e.push(u[r])}function su(t,n){for(var e=[t],r=[];null!=(t=e.pop());)if(r.push(t),(i=t.children)&&(u=i.length))for(var u,i,o=-1;++o<u;)e.push(i[o]);for(;null!=(t=r.pop());)n(t)}function hu(t){return t.children}function du(t){return t.value}function pu(t,n){return n.value-t.value}function gu(t){return ho.merge(t.map(function(t){return(t.children||[]).map(function(n){return{source:t,target:n}})}))}function vu(t){return t.x}function yu(t){return t.y}function _u(t,n,e){t.y0=n,t.y=e}function mu(t){return ho.range(t.length)}function xu(t){for(var n=-1,e=t[0].length,r=[];++n<e;)r[n]=0;return r}function bu(t){for(var n,e=1,r=0,u=t[0][1],i=t.length;e<i;++e)(n=t[e][1])>u&&(r=e,u=n);return r}function wu(t){return t.reduce(Mu,0)}function Mu(t,n){return t+n[1]}function ku(t,n){return Eu(t,Math.ceil(Math.log(n.length)/Math.LN2+1))}function Eu(t,n){for(var e=-1,r=+t[0],u=(t[1]-r)/n,i=[];++e<=n;)i[e]=u*e+r;return i}function Nu(t){return[ho.min(t),ho.max(t)]}function Su(t,n){return t.value-n.value}function ju(t,n){var e=t._pack_next;t._pack_next=n,n._pack_prev=t,n._pack_next=e,e._pack_prev=n}function Cu(t,n){t._pack_next=n,n._pack_prev=t}function Au(t,n){var e=n.x-t.x,r=n.y-t.y,u=t.r+n.r;return.999*u*u>e*e+r*r}function Lu(t){function n(t){l=Math.min(t.x-t.r,l),s=Math.max(t.x+t.r,s),h=Math.min(t.y-t.r,h),d=Math.max(t.y+t.r,d)}if((e=t.children)&&(f=e.length)){var e,r,u,i,o,a,c,f,l=1/0,s=-1/0,h=1/0,d=-1/0;if(e.forEach(Tu),r=e[0],r.x=-r.r,r.y=0,n(r),f>1&&(u=e[1],u.x=u.r,u.y=0,n(u),f>2))for(i=e[2],Pu(r,u,i),n(i),ju(r,i),r._pack_prev=i,ju(i,u),u=r._pack_next,o=3;o<f;o++){Pu(r,u,i=e[o]);var p=0,g=1,v=1;for(a=u._pack_next;a!==u;a=a._pack_next,g++)if(Au(a,i)){p=1;break}if(1==p)for(c=r._pack_prev;c!==a._pack_prev&&!Au(c,i);c=c._pack_prev,v++);p?(g<v||g==v&&u.r<r.r?Cu(r,u=a):Cu(r=c,u),o--):(ju(r,i),u=i,n(i))}var y=(l+s)/2,_=(h+d)/2,m=0;for(o=0;o<f;o++)i=e[o],i.x-=y,i.y-=_,m=Math.max(m,i.r+Math.sqrt(i.x*i.x+i.y*i.y));t.r=m,e.forEach(Ou)}}function Tu(t){t._pack_next=t._pack_prev=t}function Ou(t){delete t._pack_next,delete t._pack_prev}function Ru(t,n,e,r){var u=t.children;if(t.x=n+=r*t.x,t.y=e+=r*t.y,t.r*=r,u)for(var i=-1,o=u.length;++i<o;)Ru(u[i],n,e,r)}function Pu(t,n,e){var r=t.r+e.r,u=n.x-t.x,i=n.y-t.y;if(r&&(u||i)){var o=n.r+e.r,a=u*u+i*i;o*=o,r*=r;var c=.5+(r-o)/(2*a),f=Math.sqrt(Math.max(0,2*o*(r+a)-(r-=a)*r-o*o))/(2*a);e.x=t.x+c*u+f*i,e.y=t.y+c*i-f*u}else e.x=t.x+r,e.y=t.y}function Iu(t,n){return t.parent==n.parent?1:2}function zu(t){var n=t.children;return n.length?n[0]:t.t}function Du(t){var n,e=t.children;return(n=e.length)?e[n-1]:t.t}function qu(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function Uu(t){for(var n,e=0,r=0,u=t.children,i=u.length;--i>=0;)n=u[i],n.z+=e,n.m+=e,e+=n.s+(r+=n.c)}function Fu(t,n,e){return t.a.parent===n.parent?t.a:e}function Bu(t){return 1+ho.max(t,function(t){return t.y})}function Wu(t){return t.reduce(function(t,n){return t+n.x},0)/t.length}function Yu(t){var n=t.children;return n&&n.length?Yu(n[0]):t}function Hu(t){var n,e=t.children;return e&&(n=e.length)?Hu(e[n-1]):t}function Vu(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function $u(t,n){var e=t.x+n[3],r=t.y+n[0],u=t.dx-n[1]-n[3],i=t.dy-n[0]-n[2];return u<0&&(e+=u/2,u=0),i<0&&(r+=i/2,i=0),{x:e,y:r,dx:u,dy:i}}function Gu(t){var n=t[0],e=t[t.length-1];return n<e?[n,e]:[e,n]}function Zu(t){return t.rangeExtent?t.rangeExtent():Gu(t.range())}function Xu(t,n,e,r){var u=e(t[0],t[1]),i=r(n[0],n[1]);return function(t){return i(u(t))}}function Ju(t,n){var e,r=0,u=t.length-1,i=t[r],o=t[u];return o<i&&(e=r,r=u,u=e,e=i,i=o,o=e),t[r]=n.floor(i),t[u]=n.ceil(o),t}function Ku(t){return t?{floor:function(n){return Math.floor(n/t)*t},ceil:function(n){return Math.ceil(n/t)*t}}:Ec}function Qu(t,n,e,r){var u=[],i=[],o=0,a=Math.min(t.length,n.length)-1;for(t[a]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++o<=a;)u.push(e(t[o-1],t[o])),i.push(r(n[o-1],n[o]));return function(n){var e=ho.bisect(t,n,1,a)-1;return i[e](u[e](n))}}function ti(t,n,e,r){function u(){var u=Math.min(t.length,n.length)>2?Qu:Xu,c=r?tu:Qr;return o=u(t,n,c,e),a=u(n,t,c,kr),i}function i(t){return o(t)}var o,a;return i.invert=function(t){return a(t)},i.domain=function(n){return arguments.length?(t=n.map(Number),u()):t},i.range=function(t){return arguments.length?(n=t,u()):n},i.rangeRound=function(t){return i.range(t).interpolate(Br)},i.clamp=function(t){return arguments.length?(r=t,u()):r},i.interpolate=function(t){return arguments.length?(e=t,u()):e},i.ticks=function(n){return ui(t,n)},i.tickFormat=function(n,e){return ii(t,n,e)},i.nice=function(n){return ei(t,n),u()},i.copy=function(){return ti(t,n,e,r)},u()}function ni(t,n){return ho.rebind(t,n,"range","rangeRound","interpolate","clamp")}function ei(t,n){return Ju(t,Ku(ri(t,n)[2])),Ju(t,Ku(ri(t,n)[2])),t}function ri(t,n){null==n&&(n=10);var e=Gu(t),r=e[1]-e[0],u=Math.pow(10,Math.floor(Math.log(r/n)/Math.LN10)),i=n/r*u;return i<=.15?u*=10:i<=.35?u*=5:i<=.75&&(u*=2),e[0]=Math.ceil(e[0]/u)*u,e[1]=Math.floor(e[1]/u)*u+.5*u,e[2]=u,e}function ui(t,n){return ho.range.apply(ho,ri(t,n))}function ii(t,n,e){var r=ri(t,n);if(e){var u=da.exec(e);if(u.shift(),"s"===u[8]){var i=ho.formatPrefix(Math.max(Mo(r[0]),Mo(r[1])));return u[7]||(u[7]="."+oi(i.scale(r[2]))),u[8]="f",e=ho.format(u.join("")),function(t){return e(i.scale(t))+i.symbol}}u[7]||(u[7]="."+ai(u[8],r)),e=u.join("")}else e=",."+oi(r[2])+"f";return ho.format(e)}function oi(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function ai(t,n){var e=oi(n[2]);return t in Nc?Math.abs(e-oi(Math.max(Mo(n[0]),Mo(n[1]))))+ +("e"!==t):e-2*("%"===t)}function ci(t,n,e,r){function u(t){return(e?Math.log(t<0?0:t):-Math.log(t>0?0:-t))/Math.log(n)}function i(t){return e?Math.pow(n,t):-Math.pow(n,-t)}function o(n){return t(u(n))}return o.invert=function(n){return i(t.invert(n))},o.domain=function(n){return arguments.length?(e=n[0]>=0,t.domain((r=n.map(Number)).map(u)),o):r},o.base=function(e){return arguments.length?(n=+e,t.domain(r.map(u)),o):n},o.nice=function(){var n=Ju(r.map(u),e?Math:jc);return t.domain(n),r=n.map(i),o},o.ticks=function(){var t=Gu(r),o=[],a=t[0],c=t[1],f=Math.floor(u(a)),l=Math.ceil(u(c)),s=n%1?2:n;if(isFinite(l-f)){if(e){for(;f<l;f++)for(var h=1;h<s;h++)o.push(i(f)*h);o.push(i(f))}else for(o.push(i(f));f++<l;)for(var h=s-1;h>0;h--)o.push(i(f)*h);for(f=0;o[f]<a;f++);for(l=o.length;o[l-1]>c;l--);o=o.slice(f,l)}return o},o.tickFormat=function(t,e){if(!arguments.length)return Sc;arguments.length<2?e=Sc:"function"!=typeof e&&(e=ho.format(e));var r=Math.max(1,n*t/o.ticks().length);return function(t){var o=t/i(Math.round(u(t)));return o*n<n-.5&&(o*=n),o<=r?e(t):""}},o.copy=function(){return ci(t.copy(),n,e,r)},ni(o,t)}function fi(t,n,e){function r(n){return t(u(n))}var u=li(n),i=li(1/n);return r.invert=function(n){return i(t.invert(n))},r.domain=function(n){return arguments.length?(t.domain((e=n.map(Number)).map(u)),r):e},r.ticks=function(t){return ui(e,t)},r.tickFormat=function(t,n){return ii(e,t,n)},r.nice=function(t){return r.domain(ei(e,t))},r.exponent=function(o){return arguments.length?(u=li(n=o),i=li(1/n),t.domain(e.map(u)),r):n},r.copy=function(){return fi(t.copy(),n,e)},ni(r,t)}function li(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function si(t,n){function e(e){return i[((u.get(e)||("range"===n.t?u.set(e,t.push(e)):NaN))-1)%i.length]}function r(n,e){return ho.range(t.length).map(function(t){return n+e*t})}var u,i,o;return e.domain=function(r){if(!arguments.length)return t;t=[],u=new p;for(var i,o=-1,a=r.length;++o<a;)u.has(i=r[o])||u.set(i,t.push(i));return e[n.t].apply(e,n.a)},e.range=function(t){return arguments.length?(i=t,o=0,n={t:"range",a:arguments},e):i},e.rangePoints=function(u,a){arguments.length<2&&(a=0);var c=u[0],f=u[1],l=t.length<2?(c=(c+f)/2,0):(f-c)/(t.length-1+a);return i=r(c+l*a/2,l),o=0,n={t:"rangePoints",a:arguments},e},e.rangeRoundPoints=function(u,a){arguments.length<2&&(a=0);var c=u[0],f=u[1],l=t.length<2?(c=f=Math.round((c+f)/2),0):(f-c)/(t.length-1+a)|0;return i=r(c+Math.round(l*a/2+(f-c-(t.length-1+a)*l)/2),l),o=0,n={t:"rangeRoundPoints",a:arguments},e},e.rangeBands=function(u,a,c){arguments.length<2&&(a=0),arguments.length<3&&(c=a);var f=u[1]<u[0],l=u[f-0],s=u[1-f],h=(s-l)/(t.length-a+2*c);return i=r(l+h*c,h),f&&i.reverse(),o=h*(1-a),n={t:"rangeBands",a:arguments},e},e.rangeRoundBands=function(u,a,c){arguments.length<2&&(a=0),arguments.length<3&&(c=a);var f=u[1]<u[0],l=u[f-0],s=u[1-f],h=Math.floor((s-l)/(t.length-a+2*c));return i=r(l+Math.round((s-l-(t.length-a)*h)/2),h),f&&i.reverse(),o=Math.round(h*(1-a)),n={t:"rangeRoundBands",a:arguments},e},e.rangeBand=function(){return o},e.rangeExtent=function(){return Gu(n.a[0])},e.copy=function(){return si(t,n)},e.domain(t)}function hi(t,n){function e(){var e=0,i=n.length;for(u=[];++e<i;)u[e-1]=ho.quantile(t,e/i);return r}function r(t){if(!isNaN(t=+t))return n[ho.bisect(u,t)]}var u;return r.domain=function(n){return arguments.length?(t=n.map(c).filter(f).sort(a),e()):t},r.range=function(t){return arguments.length?(n=t,e()):n},r.quantiles=function(){return u},r.invertExtent=function(e){return e=n.indexOf(e),e<0?[NaN,NaN]:[e>0?u[e-1]:t[0],e<u.length?u[e]:t[t.length-1]]},r.copy=function(){return hi(t,n)},e()}function di(t,n,e){function r(n){return e[Math.max(0,Math.min(o,Math.floor(i*(n-t))))]}function u(){return i=e.length/(n-t),o=e.length-1,r}var i,o;return r.domain=function(e){return arguments.length?(t=+e[0],n=+e[e.length-1],u()):[t,n]},r.range=function(t){return arguments.length?(e=t,u()):e},r.invertExtent=function(n){return n=e.indexOf(n),n=n<0?NaN:n/i+t,[n,n+1/i]},r.copy=function(){return di(t,n,e)},u()}function pi(t,n){function e(e){if(e<=e)return n[ho.bisect(t,e)]}return e.domain=function(n){return arguments.length?(t=n,e):t},e.range=function(t){return arguments.length?(n=t,e):n},e.invertExtent=function(e){return e=n.indexOf(e),[t[e-1],t[e]]},e.copy=function(){return pi(t,n)},e}function gi(t){function n(t){return+t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=e.map(n),n):t},n.ticks=function(n){return ui(t,n)},n.tickFormat=function(n,e){return ii(t,n,e)},n.copy=function(){return gi(t)},n}function vi(){return 0}function yi(t){return t.innerRadius}function _i(t){return t.outerRadius}function mi(t){return t.startAngle}function xi(t){return t.endAngle}function bi(t){return t&&t.padAngle}function wi(t,n,e,r){return(t-e)*n-(n-r)*t>0?0:1}function Mi(t,n,e,r,u){var i=t[0]-n[0],o=t[1]-n[1],a=(u?r:-r)/Math.sqrt(i*i+o*o),c=a*o,f=-a*i,l=t[0]+c,s=t[1]+f,h=n[0]+c,d=n[1]+f,p=(l+h)/2,g=(s+d)/2,v=h-l,y=d-s,_=v*v+y*y,m=e-r,x=l*d-h*s,b=(y<0?-1:1)*Math.sqrt(Math.max(0,m*m*_-x*x)),w=(x*y-v*b)/_,M=(-x*v-y*b)/_,k=(x*y+v*b)/_,E=(-x*v+y*b)/_,N=w-p,S=M-g,j=k-p,C=E-g;return N*N+S*S>j*j+C*C&&(w=k,M=E),[[w-c,M-f],[w*e/m,M*e/m]]}function ki(t){function n(n){function o(){f.push("M",i(t(l),a))}for(var c,f=[],l=[],s=-1,h=n.length,d=Lt(e),p=Lt(r);++s<h;)u.call(this,c=n[s],s)?l.push([+d.call(this,c,s),+p.call(this,c,s)]):l.length&&(o(),l=[]);return l.length&&o(),f.length?f.join(""):null}var e=Re,r=Pe,u=Pn,i=Ei,o=i.key,a=.7;return n.x=function(t){return arguments.length?(e=t,n):e},n.y=function(t){return arguments.length?(r=t,n):r},n.defined=function(t){return arguments.length?(u=t,n):u},n.interpolate=function(t){return arguments.length?(o="function"==typeof t?i=t:(i=Rc.get(t)||Ei).key,n):o},n.tension=function(t){return arguments.length?(a=t,n):a},n}function Ei(t){return t.length>1?t.join("L"):t+"Z"}function Ni(t){return t.join("L")+"Z"}function Si(t){for(var n=0,e=t.length,r=t[0],u=[r[0],",",r[1]];++n<e;)u.push("H",(r[0]+(r=t[n])[0])/2,"V",r[1]);return e>1&&u.push("H",r[0]),u.join("")}function ji(t){for(var n=0,e=t.length,r=t[0],u=[r[0],",",r[1]];++n<e;)u.push("V",(r=t[n])[1],"H",r[0]);return u.join("")}function Ci(t){for(var n=0,e=t.length,r=t[0],u=[r[0],",",r[1]];++n<e;)u.push("H",(r=t[n])[0],"V",r[1]);return u.join("")}function Ai(t,n){return t.length<4?Ei(t):t[1]+Oi(t.slice(1,-1),Ri(t,n))}function Li(t,n){return t.length<3?Ni(t):t[0]+Oi((t.push(t[0]),t),Ri([t[t.length-2]].concat(t,[t[1]]),n))}function Ti(t,n){return t.length<3?Ei(t):t[0]+Oi(t,Ri(t,n))}function Oi(t,n){if(n.length<1||t.length!=n.length&&t.length!=n.length+2)return Ei(t);var e=t.length!=n.length,r="",u=t[0],i=t[1],o=n[0],a=o,c=1;if(e&&(r+="Q"+(i[0]-2*o[0]/3)+","+(i[1]-2*o[1]/3)+","+i[0]+","+i[1],u=t[1],c=2),n.length>1){a=n[1],i=t[c],c++,r+="C"+(u[0]+o[0])+","+(u[1]+o[1])+","+(i[0]-a[0])+","+(i[1]-a[1])+","+i[0]+","+i[1];for(var f=2;f<n.length;f++,c++)i=t[c],a=n[f],r+="S"+(i[0]-a[0])+","+(i[1]-a[1])+","+i[0]+","+i[1]}if(e){var l=t[c];r+="Q"+(i[0]+2*a[0]/3)+","+(i[1]+2*a[1]/3)+","+l[0]+","+l[1]}return r}function Ri(t,n){for(var e,r=[],u=(1-n)/2,i=t[0],o=t[1],a=1,c=t.length;++a<c;)e=i,i=o,o=t[a],r.push([u*(o[0]-e[0]),u*(o[1]-e[1])]);return r}function Pi(t){if(t.length<3)return Ei(t);var n=1,e=t.length,r=t[0],u=r[0],i=r[1],o=[u,u,u,(r=t[1])[0]],a=[i,i,i,r[1]],c=[u,",",i,"L",qi(zc,o),",",qi(zc,a)];for(t.push(t[e-1]);++n<=e;)r=t[n],o.shift(),o.push(r[0]),a.shift(),a.push(r[1]),Ui(c,o,a);return t.pop(),c.push("L",r),c.join("")}function Ii(t){if(t.length<4)return Ei(t);for(var n,e=[],r=-1,u=t.length,i=[0],o=[0];++r<3;)n=t[r],i.push(n[0]),o.push(n[1]);for(e.push(qi(zc,i)+","+qi(zc,o)),--r;++r<u;)n=t[r],i.shift(),i.push(n[0]),o.shift(),o.push(n[1]),Ui(e,i,o);return e.join("")}function zi(t){for(var n,e,r=-1,u=t.length,i=u+4,o=[],a=[];++r<4;)e=t[r%u],o.push(e[0]),a.push(e[1]);for(n=[qi(zc,o),",",qi(zc,a)],--r;++r<i;)e=t[r%u],o.shift(),o.push(e[0]),a.shift(),a.push(e[1]),Ui(n,o,a);return n.join("")}function Di(t,n){var e=t.length-1;if(e)for(var r,u,i=t[0][0],o=t[0][1],a=t[e][0]-i,c=t[e][1]-o,f=-1;++f<=e;)r=t[f],u=f/e,r[0]=n*r[0]+(1-n)*(i+u*a),r[1]=n*r[1]+(1-n)*(o+u*c);return Pi(t)}function qi(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function Ui(t,n,e){t.push("C",qi(Pc,n),",",qi(Pc,e),",",qi(Ic,n),",",qi(Ic,e),",",qi(zc,n),",",qi(zc,e))}function Fi(t,n){return(n[1]-t[1])/(n[0]-t[0])}function Bi(t){for(var n=0,e=t.length-1,r=[],u=t[0],i=t[1],o=r[0]=Fi(u,i);++n<e;)r[n]=(o+(o=Fi(u=i,i=t[n+1])))/2;return r[n]=o,r}function Wi(t){for(var n,e,r,u,i=[],o=Bi(t),a=-1,c=t.length-1;++a<c;)n=Fi(t[a],t[a+1]),Mo(n)<Uo?o[a]=o[a+1]=0:(e=o[a]/n,r=o[a+1]/n,(u=e*e+r*r)>9&&(u=3*n/Math.sqrt(u),o[a]=u*e,o[a+1]=u*r));for(a=-1;++a<=c;)u=(t[Math.min(c,a+1)][0]-t[Math.max(0,a-1)][0])/(6*(1+o[a]*o[a])),i.push([u||0,o[a]*u||0]);return i}function Yi(t){return t.length<3?Ei(t):t[0]+Oi(t,Wi(t))}function Hi(t){for(var n,e,r,u=-1,i=t.length;++u<i;)n=t[u],e=n[0],r=n[1]-Ho,n[0]=e*Math.cos(r),n[1]=e*Math.sin(r);return t}function Vi(t){function n(n){function c(){g.push("M",a(t(y),s),l,f(t(v.reverse()),s),"Z")}for(var h,d,p,g=[],v=[],y=[],_=-1,m=n.length,x=Lt(e),b=Lt(u),w=e===r?function(){return d}:Lt(r),M=u===i?function(){return p}:Lt(i);++_<m;)o.call(this,h=n[_],_)?(v.push([d=+x.call(this,h,_),p=+b.call(this,h,_)]),y.push([+w.call(this,h,_),+M.call(this,h,_)])):v.length&&(c(),v=[],y=[]);return v.length&&c(),g.length?g.join(""):null}var e=Re,r=Re,u=0,i=Pe,o=Pn,a=Ei,c=a.key,f=a,l="L",s=.7;return n.x=function(t){return arguments.length?(e=r=t,n):r},n.x0=function(t){return arguments.length?(e=t,n):e},n.x1=function(t){return arguments.length?(r=t,n):r},n.y=function(t){return arguments.length?(u=i=t,n):i},n.y0=function(t){return arguments.length?(u=t,n):u},n.y1=function(t){return arguments.length?(i=t,n):i},n.defined=function(t){return arguments.length?(o=t,n):o},n.interpolate=function(t){return arguments.length?(c="function"==typeof t?a=t:(a=Rc.get(t)||Ei).key,f=a.reverse||a,l=a.closed?"M":"L",n):c},n.tension=function(t){return arguments.length?(s=t,n):s},n}function $i(t){return t.radius}function Gi(t){return[t.x,t.y]}function Zi(t){return function(){var n=t.apply(this,arguments),e=n[0],r=n[1]-Ho;return[e*Math.cos(r),e*Math.sin(r)]}}function Xi(){return 64}function Ji(){return"circle"}function Ki(t){var n=Math.sqrt(t/Bo);return"M0,"+n+"A"+n+","+n+" 0 1,1 0,"+-n+"A"+n+","+n+" 0 1,1 0,"+n+"Z"}function Qi(t){return function(){var n,e,r;(n=this[t])&&(r=n[e=n.active])&&(r.timer.c=null,r.timer.t=NaN,--n.count?delete n[e]:delete this[t],n.active+=.5,r.event&&r.event.interrupt.call(this,this.__data__,r.index))}}function to(t,n,e){return jo(t,Yc),t.namespace=n,t.id=e,t}function no(t,n,e,r){var u=t.id,i=t.namespace;return G(t,"function"==typeof e?function(t,o,a){t[i][u].tween.set(n,r(e.call(t,t.__data__,o,a)))}:(e=r(e),function(t){t[i][u].tween.set(n,e)}))}function eo(t){return null==t&&(t=""),function(){this.textContent=t}}function ro(t){return null==t?"__transition__":"__transition_"+t+"__"}function uo(t,n,e,r,u){function i(t){var n=g.delay;if(f.t=n+c,n<=t)return o(t-n);f.c=o}function o(e){var u=d.active,i=d[u];i&&(i.timer.c=null,i.timer.t=NaN,--d.count,delete d[u],i.event&&i.event.interrupt.call(t,t.__data__,i.index));for(var o in d)if(+o<r){var p=d[o];p.timer.c=null,p.timer.t=NaN,--d.count,delete d[o]}f.c=a,It(function(){return f.c&&a(e||1)&&(f.c=null,f.t=NaN),1},0,c),d.active=r,g.event&&g.event.start.call(t,t.__data__,n),h=[],g.tween.forEach(function(e,r){(r=r.call(t,t.__data__,n))&&h.push(r)}),s=g.ease,l=g.duration}function a(u){for(var i=u/l,o=s(i),a=h.length;a>0;)h[--a].call(t,o);if(i>=1)return g.event&&g.event.end.call(t,t.__data__,n),--d.count?delete d[r]:delete t[e],1}var c,f,l,s,h,d=t[e]||(t[e]={active:0,count:0}),g=d[r];g||(c=u.time,f=It(i,0,c),g=d[r]={tween:new p,time:c,timer:f,delay:u.delay,duration:u.duration,ease:u.ease,index:n},u=null,++d.count)}function io(t,n,e){t.attr("transform",function(t){var r=n(t);return"translate("+(isFinite(r)?r:e(t))+",0)"})}function oo(t,n,e){t.attr("transform",function(t){var r=n(t);return"translate(0,"+(isFinite(r)?r:e(t))+")"})}function ao(t){return t.toISOString()}function co(t,n,e){function r(n){return t(n)}function u(t,e){var r=t[1]-t[0],u=r/e,i=ho.bisect(Qc,u);return i==Qc.length?[n.year,ri(t.map(function(t){return t/31536e6}),e)[2]]:i?n[u/Qc[i-1]<Qc[i]/u?i-1:i]:[ef,ri(t,e)[2]]}return r.invert=function(n){return fo(t.invert(n))},r.domain=function(n){return arguments.length?(t.domain(n),r):t.domain().map(fo)},r.nice=function(t,n){function e(e){return!isNaN(e)&&!t.range(e,fo(+e+1),n).length}var i=r.domain(),o=Gu(i),a=null==t?u(o,10):"number"==typeof t&&u(o,t);return a&&(t=a[0],n=a[1]),r.domain(Ju(i,n>1?{floor:function(n){for(;e(n=t.floor(n));)n=fo(n-1);return n},ceil:function(n){for(;e(n=t.ceil(n));)n=fo(+n+1);return n}}:t))},r.ticks=function(t,n){var e=Gu(r.domain()),i=null==t?u(e,10):"number"==typeof t?u(e,t):!t.range&&[{range:t},n];return i&&(t=i[0],n=i[1]),t.range(e[0],fo(+e[1]+1),n<1?1:n)},r.tickFormat=function(){return e},r.copy=function(){return co(t.copy(),n,e)},ni(r,t)}function fo(t){return new Date(t)}function lo(t){return JSON.parse(t.responseText)}function so(t){var n=vo.createRange();return n.selectNode(vo.body),n.createContextualFragment(t.responseText)}var ho={version:"3.5.17"},po=[].slice,go=function(t){return po.call(t)},vo=this.document;if(vo)try{go(vo.documentElement.childNodes)[0].nodeType}catch(t){go=function(t){for(var n=t.length,e=new Array(n);n--;)e[n]=t[n];return e}}if(Date.now||(Date.now=function(){return+new Date}),vo)try{vo.createElement("DIV").style.setProperty("opacity",0,"")}catch(t){var yo=this.Element.prototype,_o=yo.setAttribute,mo=yo.setAttributeNS,xo=this.CSSStyleDeclaration.prototype,bo=xo.setProperty;yo.setAttribute=function(t,n){_o.call(this,t,n+"")},yo.setAttributeNS=function(t,n,e){mo.call(this,t,n,e+"")},xo.setProperty=function(t,n,e){bo.call(this,t,n+"",e)}}ho.ascending=a,ho.descending=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN},ho.min=function(t,n){var e,r,u=-1,i=t.length;if(1===arguments.length){for(;++u<i;)if(null!=(r=t[u])&&r>=r){e=r;break}for(;++u<i;)null!=(r=t[u])&&e>r&&(e=r)}else{for(;++u<i;)if(null!=(r=n.call(t,t[u],u))&&r>=r){e=r;break}for(;++u<i;)null!=(r=n.call(t,t[u],u))&&e>r&&(e=r)}return e},ho.max=function(t,n){var e,r,u=-1,i=t.length;if(1===arguments.length){for(;++u<i;)if(null!=(r=t[u])&&r>=r){e=r;break}for(;++u<i;)null!=(r=t[u])&&r>e&&(e=r)}else{for(;++u<i;)if(null!=(r=n.call(t,t[u],u))&&r>=r){e=r;break}for(;++u<i;)null!=(r=n.call(t,t[u],u))&&r>e&&(e=r)}return e},ho.extent=function(t,n){var e,r,u,i=-1,o=t.length;if(1===arguments.length){for(;++i<o;)if(null!=(r=t[i])&&r>=r){e=u=r;break}for(;++i<o;)null!=(r=t[i])&&(e>r&&(e=r),u<r&&(u=r))}else{for(;++i<o;)if(null!=(r=n.call(t,t[i],i))&&r>=r){e=u=r;break}for(;++i<o;)null!=(r=n.call(t,t[i],i))&&(e>r&&(e=r),u<r&&(u=r))}return[e,u]},ho.sum=function(t,n){var e,r=0,u=t.length,i=-1;if(1===arguments.length)for(;++i<u;)f(e=+t[i])&&(r+=e);else for(;++i<u;)f(e=+n.call(t,t[i],i))&&(r+=e);return r},ho.mean=function(t,n){var e,r=0,u=t.length,i=-1,o=u;if(1===arguments.length)for(;++i<u;)f(e=c(t[i]))?r+=e:--o;else for(;++i<u;)f(e=c(n.call(t,t[i],i)))?r+=e:--o;if(o)return r/o},ho.quantile=function(t,n){var e=(t.length-1)*n+1,r=Math.floor(e),u=+t[r-1],i=e-r;return i?u+i*(t[r]-u):u},ho.median=function(t,n){var e,r=[],u=t.length,i=-1;if(1===arguments.length)for(;++i<u;)f(e=c(t[i]))&&r.push(e);else for(;++i<u;)f(e=c(n.call(t,t[i],i)))&&r.push(e);if(r.length)return ho.quantile(r.sort(a),.5)},ho.variance=function(t,n){var e,r,u=t.length,i=0,o=0,a=-1,l=0;if(1===arguments.length)for(;++a<u;)f(e=c(t[a]))&&(r=e-i,i+=r/++l,o+=r*(e-i));else for(;++a<u;)f(e=c(n.call(t,t[a],a)))&&(r=e-i,i+=r/++l,o+=r*(e-i));if(l>1)return o/(l-1)},ho.deviation=function(){var t=ho.variance.apply(this,arguments);return t?Math.sqrt(t):t};var wo=l(a);ho.bisectLeft=wo.left,ho.bisect=ho.bisectRight=wo.right,ho.bisector=function(t){return l(1===t.length?function(n,e){return a(t(n),e)}:t)},ho.shuffle=function(t,n,e){(i=arguments.length)<3&&(e=t.length,i<2&&(n=0));for(var r,u,i=e-n;i;)u=Math.random()*i--|0,r=t[i+n],t[i+n]=t[u+n],t[u+n]=r;return t},ho.permute=function(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r},ho.pairs=function(t){for(var n=0,e=t.length-1,r=t[0],u=new Array(e<0?0:e);n<e;)u[n]=[r,r=t[++n]];return u},ho.transpose=function(t){if(!(u=t.length))return[];for(var n=-1,e=ho.min(t,s),r=new Array(e);++n<e;)for(var u,i=-1,o=r[n]=new Array(u);++i<u;)o[i]=t[i][n];return r},ho.zip=function(){return ho.transpose(arguments)},ho.keys=function(t){var n=[];for(var e in t)n.push(e);return n},ho.values=function(t){var n=[];for(var e in t)n.push(t[e]);return n},ho.entries=function(t){var n=[];for(var e in t)n.push({key:e,value:t[e]});return n},ho.merge=function(t){for(var n,e,r,u=t.length,i=-1,o=0;++i<u;)o+=t[i].length;for(e=new Array(o);--u>=0;)for(r=t[u],n=r.length;--n>=0;)e[--o]=r[n];return e};var Mo=Math.abs;ho.range=function(t,n,e){if(arguments.length<3&&(e=1,arguments.length<2&&(n=t,t=0)),(n-t)/e==1/0)throw new Error("infinite range");var r,u=[],i=h(Mo(e)),o=-1;if(t*=i,n*=i,e*=i,e<0)for(;(r=t+e*++o)>n;)u.push(r/i);else for(;(r=t+e*++o)<n;)u.push(r/i);return u},ho.map=function(t,n){var e=new p;if(t instanceof p)t.forEach(function(t,n){e.set(t,n)});else if(Array.isArray(t)){var r,u=-1,i=t.length;if(1===arguments.length)for(;++u<i;)e.set(u,t[u]);else for(;++u<i;)e.set(n.call(t,r=t[u],u),r)}else for(var o in t)e.set(o,t[o]);return e};var ko="__proto__",Eo="\0";d(p,{has:y,get:function(t){return this._[g(t)]},set:function(t,n){return this._[g(t)]=n},remove:_,keys:m,values:function(){var t=[];for(var n in this._)t.push(this._[n]);return t},entries:function(){var t=[];for(var n in this._)t.push({key:v(n),value:this._[n]});return t},size:x,empty:b,forEach:function(t){for(var n in this._)t.call(this,v(n),this._[n])}}),ho.nest=function(){function t(n,o,a){if(a>=i.length)return r?r.call(u,o):e?o.sort(e):o;for(var c,f,l,s,h=-1,d=o.length,g=i[a++],v=new p;++h<d;)(s=v.get(c=g(f=o[h])))?s.push(f):v.set(c,[f]);return n?(f=n(),l=function(e,r){f.set(e,t(n,r,a))}):(f={},l=function(e,r){f[e]=t(n,r,a)}),v.forEach(l),f}function n(t,e){if(e>=i.length)return t;var r=[],u=o[e++];return t.forEach(function(t,u){r.push({key:t,values:n(u,e)})}),u?r.sort(function(t,n){return u(t.key,n.key)}):r}var e,r,u={},i=[],o=[];return u.map=function(n,e){return t(e,n,0)},u.entries=function(e){return n(t(ho.map,e,0),0)},u.key=function(t){return i.push(t),u},u.sortKeys=function(t){return o[i.length-1]=t,u},u.sortValues=function(t){return e=t,u},u.rollup=function(t){return r=t,u},u},ho.set=function(t){var n=new w;if(t)for(var e=0,r=t.length;e<r;++e)n.add(t[e]);return n},d(w,{has:y,add:function(t){return this._[g(t+="")]=!0,t},remove:_,values:m,size:x,empty:b,forEach:function(t){for(var n in this._)t.call(this,v(n))}}),ho.behavior={},ho.rebind=function(t,n){for(var e,r=1,u=arguments.length;++r<u;)t[e=arguments[r]]=k(t,n,n[e]);return t};var No=["webkit","ms","moz","Moz","o","O"];ho.dispatch=function(){for(var t=new S,n=-1,e=arguments.length;++n<e;)t[arguments[n]]=j(t);return t},S.prototype.on=function(t,n){var e=t.indexOf("."),r="";if(e>=0&&(r=t.slice(e+1),t=t.slice(0,e)),t)return arguments.length<2?this[t].on(r):this[t].on(r,n);if(2===arguments.length){if(null==n)for(t in this)this.hasOwnProperty(t)&&this[t].on(r,null);return this}},ho.event=null,ho.requote=function(t){return t.replace(So,"\\$&")};var So=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,jo={}.__proto__?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)t[e]=n[e]},Co=function(t,n){return n.querySelector(t)},Ao=function(t,n){return n.querySelectorAll(t)},Lo=function(t,n){var e=t.matches||t[E(t,"matchesSelector")];return(Lo=function(t,n){return e.call(t,n)})(t,n)};"function"==typeof Sizzle&&(Co=function(t,n){return Sizzle(t,n)[0]||null},Ao=Sizzle,Lo=Sizzle.matchesSelector),ho.selection=function(){return ho.select(vo.documentElement)};var To=ho.selection.prototype=[];To.select=function(t){var n,e,r,u,i=[];t=O(t);for(var o=-1,a=this.length;++o<a;){i.push(n=[]),n.parentNode=(r=this[o]).parentNode;for(var c=-1,f=r.length;++c<f;)(u=r[c])?(n.push(e=t.call(u,u.__data__,c,o)),e&&"__data__"in u&&(e.__data__=u.__data__)):n.push(null)}return T(i)},To.selectAll=function(t){var n,e,r=[];t=R(t);for(var u=-1,i=this.length;++u<i;)for(var o=this[u],a=-1,c=o.length;++a<c;)(e=o[a])&&(r.push(n=go(t.call(e,e.__data__,a,u))),n.parentNode=e);return T(r)};var Oo="http://www.w3.org/1999/xhtml",Ro={svg:"http://www.w3.org/2000/svg",xhtml:Oo,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};ho.ns={prefix:Ro,qualify:function(t){var n=t.indexOf(":"),e=t;return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Ro.hasOwnProperty(e)?{space:Ro[e],local:t}:t}},To.attr=function(t,n){if(arguments.length<2){if("string"==typeof t){var e=this.node();return t=ho.ns.qualify(t),t.local?e.getAttributeNS(t.space,t.local):e.getAttribute(t)}for(n in t)this.each(P(n,t[n]));return this}return this.each(P(t,n))},To.classed=function(t,n){if(arguments.length<2){if("string"==typeof t){var e=this.node(),r=(t=D(t)).length,u=-1;if(n=e.classList){for(;++u<r;)if(!n.contains(t[u]))return!1}else for(n=e.getAttribute("class");++u<r;)if(!z(t[u]).test(n))return!1;return!0}for(n in t)this.each(q(n,t[n]));return this}return this.each(q(t,n))},To.style=function(t,n,e){var r=arguments.length;if(r<3){if("string"!=typeof t){r<2&&(n="");for(e in t)this.each(F(e,t[e],n));return this}if(r<2){var u=this.node();return o(u).getComputedStyle(u,null).getPropertyValue(t)}e=""}return this.each(F(t,n,e))},To.property=function(t,n){if(arguments.length<2){if("string"==typeof t)return this.node()[t];for(n in t)this.each(B(n,t[n]));return this}return this.each(B(t,n))},To.text=function(t){return arguments.length?this.each("function"==typeof t?function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}:null==t?function(){this.textContent=""}:function(){this.textContent=t}):this.node().textContent},To.html=function(t){return arguments.length?this.each("function"==typeof t?function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}:null==t?function(){this.innerHTML=""}:function(){this.innerHTML=t}):this.node().innerHTML},To.append=function(t){return t=W(t),this.select(function(){return this.appendChild(t.apply(this,arguments))})},To.insert=function(t,n){return t=W(t),n=O(n),this.select(function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)})},To.remove=function(){return this.each(Y)},To.data=function(t,n){function e(t,e){var r,u,i,o=t.length,l=e.length,s=Math.min(o,l),h=new Array(l),d=new Array(l),g=new Array(o);if(n){var v,y=new p,_=new Array(o);for(r=-1;++r<o;)(u=t[r])&&(y.has(v=n.call(u,u.__data__,r))?g[r]=u:y.set(v,u),_[r]=v);for(r=-1;++r<l;)(u=y.get(v=n.call(e,i=e[r],r)))?!0!==u&&(h[r]=u,u.__data__=i):d[r]=H(i),y.set(v,!0);for(r=-1;++r<o;)r in _&&!0!==y.get(_[r])&&(g[r]=t[r])}else{for(r=-1;++r<s;)u=t[r],i=e[r],u?(u.__data__=i,h[r]=u):d[r]=H(i);for(;r<l;++r)d[r]=H(e[r]);for(;r<o;++r)g[r]=t[r]}d.update=h,d.parentNode=h.parentNode=g.parentNode=t.parentNode,a.push(d),c.push(h),f.push(g)}var r,u,i=-1,o=this.length;if(!arguments.length){for(t=new Array(o=(r=this[0]).length);++i<o;)(u=r[i])&&(t[i]=u.__data__);return t}var a=Z([]),c=T([]),f=T([]);if("function"==typeof t)for(;++i<o;)e(r=this[i],t.call(r,r.parentNode.__data__,i));else for(;++i<o;)e(r=this[i],t);return c.enter=function(){return a},c.exit=function(){return f},c},To.datum=function(t){return arguments.length?this.property("__data__",t):this.property("__data__")},To.filter=function(t){var n,e,r,u=[];"function"!=typeof t&&(t=V(t));for(var i=0,o=this.length;i<o;i++){u.push(n=[]),n.parentNode=(e=this[i]).parentNode;for(var a=0,c=e.length;a<c;a++)(r=e[a])&&t.call(r,r.__data__,a,i)&&n.push(r)}return T(u)},To.order=function(){for(var t=-1,n=this.length;++t<n;)for(var e,r=this[t],u=r.length-1,i=r[u];--u>=0;)(e=r[u])&&(i&&i!==e.nextSibling&&i.parentNode.insertBefore(e,i),i=e);return this},To.sort=function(t){t=$.apply(this,arguments);for(var n=-1,e=this.length;++n<e;)this[n].sort(t);return this.order()},To.each=function(t){return G(this,function(n,e,r){t.call(n,n.__data__,e,r)})},To.call=function(t){var n=go(arguments);return t.apply(n[0]=this,n),this},To.empty=function(){return!this.node()},To.node=function(){for(var t=0,n=this.length;t<n;t++)for(var e=this[t],r=0,u=e.length;r<u;r++){var i=e[r];if(i)return i}return null},To.size=function(){var t=0;return G(this,function(){++t}),t};var Po=[];ho.selection.enter=Z,ho.selection.enter.prototype=Po,Po.append=To.append,Po.empty=To.empty,Po.node=To.node,Po.call=To.call,Po.size=To.size,Po.select=function(t){for(var n,e,r,u,i,o=[],a=-1,c=this.length;++a<c;){r=(u=this[a]).update,o.push(n=[]),n.parentNode=u.parentNode;for(var f=-1,l=u.length;++f<l;)(i=u[f])?(n.push(r[f]=e=t.call(u.parentNode,i.__data__,f,a)),e.__data__=i.__data__):n.push(null)}return T(o)},Po.insert=function(t,n){return arguments.length<2&&(n=X(this)),To.insert.call(this,t,n)},ho.select=function(t){var n;return"string"==typeof t?(n=[Co(t,vo)],n.parentNode=vo.documentElement):(n=[t],n.parentNode=i(t)),T([n])},ho.selectAll=function(t){var n;return"string"==typeof t?(n=go(Ao(t,vo)),n.parentNode=vo.documentElement):(n=go(t),n.parentNode=null),T([n])},To.on=function(t,n,e){var r=arguments.length;if(r<3){if("string"!=typeof t){r<2&&(n=!1);for(e in t)this.each(J(e,t[e],n));return this}if(r<2)return(r=this.node()["__on"+t])&&r._;e=!1}return this.each(J(t,n,e))};var Io=ho.map({mouseenter:"mouseover",mouseleave:"mouseout"});vo&&Io.forEach(function(t){"on"+t in vo&&Io.remove(t)});var zo,Do=0;ho.mouse=function(t){return nt(t,A())};var qo=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;ho.touch=function(t,n,e){if(arguments.length<3&&(e=n,n=A().changedTouches),n)for(var r,u=0,i=n.length;u<i;++u)if((r=n[u]).identifier===e)return nt(t,r)},ho.behavior.drag=function(){function t(){this.on("mousedown.drag",u).on("touchstart.drag",i)}function n(t,n,u,i,o){return function(){function a(){var t,e,r=n(h,g);r&&(t=r[0]-m[0],e=r[1]-m[1],p|=t|e,m=r,d({type:"drag",x:r[0]+f[0],y:r[1]+f[1],dx:t,dy:e}))}function c(){n(h,g)&&(y.on(i+v,null).on(o+v,null),_(p),d({type:"dragend"}))}var f,l=this,s=ho.event.target.correspondingElement||ho.event.target,h=l.parentNode,d=e.of(l,arguments),p=0,g=t(),v=".drag"+(null==g?"":"-"+g),y=ho.select(u(s)).on(i+v,a).on(o+v,c),_=tt(s),m=n(h,g);r?(f=r.apply(l,arguments),f=[f.x-m[0],f.y-m[1]]):f=[0,0],d({type:"dragstart"})}}var e=L(t,"drag","dragstart","dragend"),r=null,u=n(N,ho.mouse,o,"mousemove","mouseup"),i=n(et,ho.touch,M,"touchmove","touchend");return t.origin=function(n){return arguments.length?(r=n,t):r},ho.rebind(t,e,"on")},ho.touches=function(t,n){return arguments.length<2&&(n=A().touches),n?go(n).map(function(n){var e=nt(t,n);return e.identifier=n.identifier,e}):[]};var Uo=1e-6,Fo=Uo*Uo,Bo=Math.PI,Wo=2*Bo,Yo=Wo-Uo,Ho=Bo/2,Vo=Bo/180,$o=180/Bo,Go=Math.SQRT2;ho.interpolateZoom=function(t,n){var e,r,u=t[0],i=t[1],o=t[2],a=n[0],c=n[1],f=n[2],l=a-u,s=c-i,h=l*l+s*s;if(h<Fo)r=Math.log(f/o)/Go,e=function(t){return[u+t*l,i+t*s,o*Math.exp(Go*t*r)]};else{var d=Math.sqrt(h),p=(f*f-o*o+4*h)/(2*o*2*d),g=(f*f-o*o-4*h)/(2*f*2*d),v=Math.log(Math.sqrt(p*p+1)-p),y=Math.log(Math.sqrt(g*g+1)-g);r=(y-v)/Go,e=function(t){var n=t*r,e=ct(v),a=o/(2*d)*(e*ft(Go*n+v)-at(v));return[u+a*l,i+a*s,o*e/ct(Go*n+v)]}}return e.duration=1e3*r,e},ho.behavior.zoom=function(){function t(t){t.on(A,s).on(Xo+".zoom",d).on("dblclick.zoom",p).on(R,h)}function n(t){return[(t[0]-k.x)/k.k,(t[1]-k.y)/k.k]}function e(t){return[t[0]*k.k+k.x,t[1]*k.k+k.y]}function r(t){k.k=Math.max(N[0],Math.min(N[1],t))}function u(t,n){n=e(n),k.x+=t[0]-n[0],k.y+=t[1]-n[1]}function i(n,e,i,o){n.__chart__={x:k.x,y:k.y,k:k.k},r(Math.pow(2,o)),u(v=e,i),n=ho.select(n),S>0&&(n=n.transition().duration(S)),n.call(t.event)}function a(){b&&b.domain(x.range().map(function(t){return(t-k.x)/k.k}).map(x.invert)),M&&M.domain(w.range().map(function(t){return(t-k.y)/k.k}).map(w.invert))}function c(t){j++||t({type:"zoomstart"})}function f(t){a(),t({type:"zoom",scale:k.k,translate:[k.x,k.y]})}function l(t){--j||(t({type:"zoomend"}),v=null)}function s(){function t(){a=1,u(ho.mouse(r),h),f(i)}function e(){s.on(T,null).on(O,null),d(a),l(i)}var r=this,i=P.of(r,arguments),a=0,s=ho.select(o(r)).on(T,t).on(O,e),h=n(ho.mouse(r)),d=tt(r);Wc.call(r),c(i)}function h(){function t(){var t=ho.touches(p);return d=k.k,t.forEach(function(t){t.identifier in v&&(v[t.identifier]=n(t))}),t}function e(){var n=ho.event.target;ho.select(n).on(x,o).on(b,a),w.push(n);for(var e=ho.event.changedTouches,r=0,u=e.length;r<u;++r)v[e[r].identifier]=null;var c=t(),f=Date.now();if(1===c.length){if(f-m<500){var l=c[0];i(p,l,v[l.identifier],Math.floor(Math.log(k.k)/Math.LN2)+1),C()}m=f}else if(c.length>1){var l=c[0],s=c[1],h=l[0]-s[0],d=l[1]-s[1];y=h*h+d*d}}function o(){var t,n,e,i,o=ho.touches(p);Wc.call(p);for(var a=0,c=o.length;a<c;++a,i=null)if(e=o[a],i=v[e.identifier]){if(n)break;t=e,n=i}if(i){var l=(l=e[0]-t[0])*l+(l=e[1]-t[1])*l,s=y&&Math.sqrt(l/y);t=[(t[0]+e[0])/2,(t[1]+e[1])/2],n=[(n[0]+i[0])/2,(n[1]+i[1])/2],r(s*d)}m=null,u(t,n),f(g)}function a(){if(ho.event.touches.length){for(var n=ho.event.changedTouches,e=0,r=n.length;e<r;++e)delete v[n[e].identifier];for(var u in v)return void t()}ho.selectAll(w).on(_,null),M.on(A,s).on(R,h),E(),l(g)}var d,p=this,g=P.of(p,arguments),v={},y=0,_=".zoom-"+ho.event.changedTouches[0].identifier,x="touchmove"+_,b="touchend"+_,w=[],M=ho.select(p),E=tt(p);e(),c(g),M.on(A,null).on(R,e)}function d(){var t=P.of(this,arguments);_?clearTimeout(_):(Wc.call(this),g=n(v=y||ho.mouse(this)),c(t)),_=setTimeout(function(){_=null,l(t)},50),C(),r(Math.pow(2,.002*Zo())*k.k),u(v,g),f(t)}function p(){var t=ho.mouse(this),e=Math.log(k.k)/Math.LN2;i(this,t,n(t),ho.event.shiftKey?Math.ceil(e)-1:Math.floor(e)+1)}var g,v,y,_,m,x,b,w,M,k={x:0,y:0,k:1},E=[960,500],N=Jo,S=250,j=0,A="mousedown.zoom",T="mousemove.zoom",O="mouseup.zoom",R="touchstart.zoom",P=L(t,"zoomstart","zoom","zoomend");return Xo||(Xo="onwheel"in vo?(Zo=function(){return-ho.event.deltaY*(ho.event.deltaMode?120:1)},"wheel"):"onmousewheel"in vo?(Zo=function(){return ho.event.wheelDelta},"mousewheel"):(Zo=function(){return-ho.event.detail},"MozMousePixelScroll")),t.event=function(t){t.each(function(){var t=P.of(this,arguments),n=k;Fc?ho.select(this).transition().each("start.zoom",function(){k=this.__chart__||{x:0,y:0,k:1},c(t)}).tween("zoom:zoom",function(){var e=E[0],r=E[1],u=v?v[0]:e/2,i=v?v[1]:r/2,o=ho.interpolateZoom([(u-k.x)/k.k,(i-k.y)/k.k,e/k.k],[(u-n.x)/n.k,(i-n.y)/n.k,e/n.k]);return function(n){var r=o(n),a=e/r[2];this.__chart__=k={x:u-r[0]*a,y:i-r[1]*a,k:a},f(t)}}).each("interrupt.zoom",function(){l(t)}).each("end.zoom",function(){l(t)}):(this.__chart__=k,c(t),f(t),l(t))})},t.translate=function(n){return arguments.length?(k={x:+n[0],y:+n[1],k:k.k},a(),t):[k.x,k.y]},t.scale=function(n){return arguments.length?(k={x:k.x,y:k.y,k:null},r(+n),a(),t):k.k},t.scaleExtent=function(n){return arguments.length?(N=null==n?Jo:[+n[0],+n[1]],t):N},t.center=function(n){return arguments.length?(y=n&&[+n[0],+n[1]],t):y},t.size=function(n){return arguments.length?(E=n&&[+n[0],+n[1]],t):E},t.duration=function(n){return arguments.length?(S=+n,t):S},t.x=function(n){return arguments.length?(b=n,x=n.copy(),k={x:0,y:0,k:1},t):b},t.y=function(n){return arguments.length?(M=n,w=n.copy(),k={x:0,y:0,k:1},t):M},ho.rebind(t,P,"on")};var Zo,Xo,Jo=[0,1/0];ho.color=st,st.prototype.toString=function(){return this.rgb()+""},ho.hsl=ht;var Ko=ht.prototype=new st;Ko.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new ht(this.h,this.s,this.l/t)},Ko.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new ht(this.h,this.s,t*this.l)},Ko.rgb=function(){return dt(this.h,this.s,this.l)},ho.hcl=pt;var Qo=pt.prototype=new st;Qo.brighter=function(t){return new pt(this.h,this.c,Math.min(100,this.l+ta*(arguments.length?t:1)))},Qo.darker=function(t){return new pt(this.h,this.c,Math.max(0,this.l-ta*(arguments.length?t:1)))},Qo.rgb=function(){return gt(this.h,this.c,this.l).rgb()},ho.lab=vt;var ta=18,na=.95047,ea=1,ra=1.08883,ua=vt.prototype=new st;ua.brighter=function(t){return new vt(Math.min(100,this.l+ta*(arguments.length?t:1)),this.a,this.b)},ua.darker=function(t){return new vt(Math.max(0,this.l-ta*(arguments.length?t:1)),this.a,this.b)},ua.rgb=function(){return yt(this.l,this.a,this.b)},ho.rgb=wt;var ia=wt.prototype=new st;ia.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var n=this.r,e=this.g,r=this.b,u=30;return n||e||r?(n&&n<u&&(n=u),e&&e<u&&(e=u),r&&r<u&&(r=u),new wt(Math.min(255,n/t),Math.min(255,e/t),Math.min(255,r/t))):new wt(u,u,u)},ia.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new wt(t*this.r,t*this.g,t*this.b)},ia.hsl=function(){return St(this.r,this.g,this.b)},ia.toString=function(){return"#"+Et(this.r)+Et(this.g)+Et(this.b)};var oa=ho.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});oa.forEach(function(t,n){oa.set(t,Mt(n))}),ho.functor=Lt,ho.xhr=Tt(M),ho.dsv=function(t,n){function e(t,e,i){arguments.length<3&&(i=e,e=null);var o=Ot(t,n,null==e?r:u(e),i);return o.row=function(t){return arguments.length?o.response(null==(e=t)?r:u(t)):e},o}function r(t){return e.parse(t.responseText)}function u(t){return function(n){return e.parse(n.responseText,t)}}function i(n){return n.map(o).join(t)}function o(t){return a.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}var a=new RegExp('["'+t+"\n]"),c=t.charCodeAt(0);return e.parse=function(t,n){var r;return e.parseRows(t,function(t,e){if(r)return r(t,e-1);var u=new Function("d","return {"+t.map(function(t,n){return JSON.stringify(t)+": d["+n+"]"}).join(",")+"}");r=n?function(t,e){return n(u(t),e)}:u})},e.parseRows=function(t,n){function e(){if(l>=f)return o;if(u)return u=!1,i;var n=l;if(34===t.charCodeAt(n)){for(var e=n;e++<f;)if(34===t.charCodeAt(e)){if(34!==t.charCodeAt(e+1))break;++e}l=e+2;var r=t.charCodeAt(e+1);return 13===r?(u=!0,10===t.charCodeAt(e+2)&&++l):10===r&&(u=!0),t.slice(n+1,e).replace(/""/g,'"')}for(;l<f;){var r=t.charCodeAt(l++),a=1;if(10===r)u=!0;else if(13===r)u=!0,10===t.charCodeAt(l)&&(++l,++a);else if(r!==c)continue;return t.slice(n,l-a)}return t.slice(n)}for(var r,u,i={},o={},a=[],f=t.length,l=0,s=0;(r=e())!==o;){for(var h=[];r!==i&&r!==o;)h.push(r),r=e();n&&null==(h=n(h,s++))||a.push(h)}return a},e.format=function(n){if(Array.isArray(n[0]))return e.formatRows(n);var r=new w,u=[];return n.forEach(function(t){for(var n in t)r.has(n)||u.push(r.add(n))}),[u.map(o).join(t)].concat(n.map(function(n){return u.map(function(t){return o(n[t])}).join(t)})).join("\n")},e.formatRows=function(t){return t.map(i).join("\n")},e},ho.csv=ho.dsv(",","text/csv"),ho.tsv=ho.dsv("\t","text/tab-separated-values");var aa,ca,fa,la,sa=this[E(this,"requestAnimationFrame")]||function(t){setTimeout(t,17)};ho.timer=function(){It.apply(this,arguments)},ho.timer.flush=function(){Dt(),qt()},ho.round=function(t,n){return n?Math.round(t*(n=Math.pow(10,n)))/n:Math.round(t)};var ha=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(Ft);ho.formatPrefix=function(t,n){var e=0;return(t=+t)&&(t<0&&(t*=-1),n&&(t=ho.round(t,Ut(t,n))),e=1+Math.floor(1e-12+Math.log(t)/Math.LN10),e=Math.max(-24,Math.min(24,3*Math.floor((e-1)/3)))),ha[8+e/3]};var da=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,pa=ho.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,n){return t.toPrecision(n)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},r:function(t,n){return(t=ho.round(t,Ut(t,n))).toFixed(Math.max(0,Math.min(20,Ut(t*(1+1e-15),n))))}}),ga=ho.time={},va=Date;Yt.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){ya.setUTCDate.apply(this._,arguments)},setDay:function(){ya.setUTCDay.apply(this._,arguments)},setFullYear:function(){ya.setUTCFullYear.apply(this._,arguments)},setHours:function(){ya.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){ya.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){ya.setUTCMinutes.apply(this._,arguments)},setMonth:function(){ya.setUTCMonth.apply(this._,arguments)},setSeconds:function(){ya.setUTCSeconds.apply(this._,arguments)},setTime:function(){ya.setTime.apply(this._,arguments)}};var ya=Date.prototype;ga.year=Ht(function(t){return t=ga.day(t),t.setMonth(0,1),t},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t){return t.getFullYear()}),ga.years=ga.year.range,ga.years.utc=ga.year.utc.range,ga.day=Ht(function(t){var n=new va(2e3,0);return n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n},function(t,n){t.setDate(t.getDate()+n)},function(t){return t.getDate()-1}),ga.days=ga.day.range,ga.days.utc=ga.day.utc.range,ga.dayOfYear=function(t){var n=ga.year(t);return Math.floor((t-n-6e4*(t.getTimezoneOffset()-n.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(t,n){n=7-n;var e=ga[t]=Ht(function(t){return(t=ga.day(t)).setDate(t.getDate()-(t.getDay()+n)%7),t},function(t,n){t.setDate(t.getDate()+7*Math.floor(n))},function(t){var e=ga.year(t).getDay();return Math.floor((ga.dayOfYear(t)+(e+n)%7)/7)-(e!==n)});ga[t+"s"]=e.range,ga[t+"s"].utc=e.utc.range,ga[t+"OfYear"]=function(t){var e=ga.year(t).getDay();return Math.floor((ga.dayOfYear(t)+(e+n)%7)/7)}}),ga.week=ga.sunday,ga.weeks=ga.sunday.range,ga.weeks.utc=ga.sunday.utc.range,ga.weekOfYear=ga.sundayOfYear;var _a={"-":"",_:" ",0:"0"},ma=/^\s*\d+/,xa=/^%/;ho.locale=function(t){return{numberFormat:Bt(t),timeFormat:$t(t)}};var ba=ho.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});ho.format=ba.numberFormat,ho.geo={},gn.prototype={s:0,t:0,add:function(t){vn(t,this.t,wa),vn(wa.s,this.s,this),this.s?this.t+=wa.t:this.s=wa.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var wa=new gn;ho.geo.stream=function(t,n){t&&Ma.hasOwnProperty(t.type)?Ma[t.type](t,n):yn(t,n)};var Ma={Feature:function(t,n){yn(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,u=e.length;++r<u;)yn(e[r].geometry,n)}},ka={Sphere:function(t,n){n.sphere()},Point:function(t,n){t=t.coordinates,n.point(t[0],t[1],t[2])},MultiPoint:function(t,n){for(var e=t.coordinates,r=-1,u=e.length;++r<u;)t=e[r],n.point(t[0],t[1],t[2])},LineString:function(t,n){_n(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,u=e.length;++r<u;)_n(e[r],n,0)},Polygon:function(t,n){mn(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,u=e.length;++r<u;)mn(e[r],n)},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,u=e.length;++r<u;)yn(e[r],n)}};ho.geo.area=function(t){return Ea=0,ho.geo.stream(t,Sa),Ea};var Ea,Na=new gn,Sa={sphere:function(){Ea+=4*Bo},point:N,lineStart:N,lineEnd:N,polygonStart:function(){Na.reset(),Sa.lineStart=xn},polygonEnd:function(){var t=2*Na;Ea+=t<0?4*Bo+t:t,Sa.lineStart=Sa.lineEnd=Sa.point=N}};ho.geo.bounds=function(){function t(t,n){m.push(x=[l=t,h=t]),n<s&&(s=n),n>d&&(d=n)}function n(n,e){var r=bn([n*Vo,e*Vo]);if(y){var u=Mn(y,r),i=[u[1],-u[0],0],o=Mn(i,u);Nn(o),o=Sn(o);var c=n-p,f=c>0?1:-1,g=o[0]*$o*f,v=Mo(c)>180;if(v^(f*p<g&&g<f*n)){var _=o[1]*$o;_>d&&(d=_)}else if(g=(g+360)%360-180,v^(f*p<g&&g<f*n)){var _=-o[1]*$o;_<s&&(s=_)}else e<s&&(s=e),e>d&&(d=e);v?n<p?a(l,n)>a(l,h)&&(h=n):a(n,h)>a(l,h)&&(l=n):h>=l?(n<l&&(l=n),n>h&&(h=n)):n>p?a(l,n)>a(l,h)&&(h=n):a(n,h)>a(l,h)&&(l=n)}else t(n,e);y=r,p=n}function e(){b.point=n}function r(){x[0]=l,x[1]=h,b.point=t,y=null}function u(t,e){if(y){var r=t-p;_+=Mo(r)>180?r+(r>0?360:-360):r}else g=t,v=e;Sa.point(t,e),n(t,e)}function i(){Sa.lineStart()}function o(){u(g,v),Sa.lineEnd(),Mo(_)>Uo&&(l=-(h=180)),x[0]=l,x[1]=h,y=null}function a(t,n){return(n-=t)<0?n+360:n}function c(t,n){return t[0]-n[0]}function f(t,n){return n[0]<=n[1]?n[0]<=t&&t<=n[1]:t<n[0]||n[1]<t}var l,s,h,d,p,g,v,y,_,m,x,b={point:t,lineStart:e,lineEnd:r,polygonStart:function(){b.point=u,b.lineStart=i,b.lineEnd=o,_=0,Sa.polygonStart()},polygonEnd:function(){Sa.polygonEnd(),b.point=t,b.lineStart=e,b.lineEnd=r,Na<0?(l=-(h=180),s=-(d=90)):_>Uo?d=90:_<-Uo&&(s=-90),x[0]=l,x[1]=h}};return function(t){d=h=-(l=s=1/0),m=[],ho.geo.stream(t,b);var n=m.length;if(n){m.sort(c);for(var e,r=1,u=m[0],i=[u];r<n;++r)e=m[r],f(e[0],u)||f(e[1],u)?(a(u[0],e[1])>a(u[0],u[1])&&(u[1]=e[1]),a(e[0],u[1])>a(u[0],u[1])&&(u[0]=e[0])):i.push(u=e);for(var o,e,p=-1/0,n=i.length-1,r=0,u=i[n];r<=n;u=e,++r)e=i[r],(o=a(u[1],e[0]))>p&&(p=o,l=e[0],h=u[1])}return m=x=null,l===1/0||s===1/0?[[NaN,NaN],[NaN,NaN]]:[[l,s],[h,d]]}}(),ho.geo.centroid=function(t){ja=Ca=Aa=La=Ta=Oa=Ra=Pa=Ia=za=Da=0,ho.geo.stream(t,qa);var n=Ia,e=za,r=Da,u=n*n+e*e+r*r;return u<Fo&&(n=Oa,e=Ra,r=Pa,Ca<Uo&&(n=Aa,e=La,r=Ta),(u=n*n+e*e+r*r)<Fo)?[NaN,NaN]:[Math.atan2(e,n)*$o,ot(r/Math.sqrt(u))*$o]};var ja,Ca,Aa,La,Ta,Oa,Ra,Pa,Ia,za,Da,qa={sphere:N,point:Cn,lineStart:Ln,lineEnd:Tn,polygonStart:function(){qa.lineStart=On},polygonEnd:function(){qa.lineStart=Ln}},Ua=qn(Pn,Wn,Hn,[-Bo,-Bo/2]),Fa=1e9;ho.geo.clipExtent=function(){var t,n,e,r,u,i,o={stream:function(t){return u&&(u.valid=!1),u=i(t),u.valid=!0,u},extent:function(a){return arguments.length?(i=Zn(t=+a[0][0],n=+a[0][1],e=+a[1][0],r=+a[1][1]),u&&(u.valid=!1,u=null),o):[[t,n],[e,r]]}};return o.extent([[0,0],[960,500]])},(ho.geo.conicEqualArea=function(){return Xn(Jn)}).raw=Jn,ho.geo.albers=function(){return ho.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},ho.geo.albersUsa=function(){function t(t){var i=t[0],o=t[1];return n=null,e(i,o),n||(r(i,o),n)||u(i,o),n}var n,e,r,u,i=ho.geo.albers(),o=ho.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a=ho.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(t,e){n=[t,e]}};return t.invert=function(t){var n=i.scale(),e=i.translate(),r=(t[0]-e[0])/n,u=(t[1]-e[1])/n;return(u>=.12&&u<.234&&r>=-.425&&r<-.214?o:u>=.166&&u<.234&&r>=-.214&&r<-.115?a:i).invert(t)},t.stream=function(t){var n=i.stream(t),e=o.stream(t),r=a.stream(t);return{point:function(t,u){n.point(t,u),e.point(t,u),r.point(t,u)},sphere:function(){n.sphere(),e.sphere(),r.sphere()},lineStart:function(){n.lineStart(),e.lineStart(),r.lineStart()},lineEnd:function(){n.lineEnd(),e.lineEnd(),r.lineEnd()},polygonStart:function(){n.polygonStart(),e.polygonStart(),r.polygonStart()},polygonEnd:function(){n.polygonEnd(),e.polygonEnd(),r.polygonEnd()}}},t.precision=function(n){return arguments.length?(i.precision(n),o.precision(n),a.precision(n),t):i.precision()},t.scale=function(n){return arguments.length?(i.scale(n),o.scale(.35*n),a.scale(n),t.translate(i.translate())):i.scale()},t.translate=function(n){if(!arguments.length)return i.translate();var f=i.scale(),l=+n[0],s=+n[1];return e=i.translate(n).clipExtent([[l-.455*f,s-.238*f],[l+.455*f,s+.238*f]]).stream(c).point,r=o.translate([l-.307*f,s+.201*f]).clipExtent([[l-.425*f+Uo,s+.12*f+Uo],[l-.214*f-Uo,s+.234*f-Uo]]).stream(c).point,u=a.translate([l-.205*f,s+.212*f]).clipExtent([[l-.214*f+Uo,s+.166*f+Uo],[l-.115*f-Uo,s+.234*f-Uo]]).stream(c).point,t},t.scale(1070)};var Ba,Wa,Ya,Ha,Va,$a,Ga={point:N,lineStart:N,lineEnd:N,polygonStart:function(){Wa=0,Ga.lineStart=Kn},polygonEnd:function(){Ga.lineStart=Ga.lineEnd=Ga.point=N,Ba+=Mo(Wa/2)}},Za={point:Qn,lineStart:N,lineEnd:N,polygonStart:N,polygonEnd:N},Xa={point:ee,lineStart:re,lineEnd:ue,polygonStart:function(){Xa.lineStart=ie},polygonEnd:function(){Xa.point=ee,Xa.lineStart=re,Xa.lineEnd=ue}};ho.geo.path=function(){function t(t){return t&&("function"==typeof a&&i.pointRadius(+a.apply(this,arguments)),o&&o.valid||(o=u(i)),ho.geo.stream(t,o)),i.result()}function n(){return o=null,t}var e,r,u,i,o,a=4.5;return t.area=function(t){return Ba=0,ho.geo.stream(t,u(Ga)),Ba},t.centroid=function(t){return Aa=La=Ta=Oa=Ra=Pa=Ia=za=Da=0,ho.geo.stream(t,u(Xa)),Da?[Ia/Da,za/Da]:Pa?[Oa/Pa,Ra/Pa]:Ta?[Aa/Ta,La/Ta]:[NaN,NaN]},t.bounds=function(t){return Va=$a=-(Ya=Ha=1/0),ho.geo.stream(t,u(Za)),[[Ya,Ha],[Va,$a]]},t.projection=function(t){return arguments.length?(u=(e=t)?t.stream||ce(t):M,n()):e},t.context=function(t){return arguments.length?(i=null==(r=t)?new te:new oe(t),"function"!=typeof a&&i.pointRadius(a),n()):r},t.pointRadius=function(n){return arguments.length?(a="function"==typeof n?n:(i.pointRadius(+n),+n),t):a},t.projection(ho.geo.albersUsa()).context(null)},ho.geo.transform=function(t){return{stream:function(n){var e=new fe(n);for(var r in t)e[r]=t[r];return e}}},fe.prototype={point:function(t,n){this.stream.point(t,n)},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()}},ho.geo.projection=se,ho.geo.projectionMutator=he,(ho.geo.equirectangular=function(){return se(pe)}).raw=pe.invert=pe,ho.geo.rotation=function(t){function n(n){return n=t(n[0]*Vo,n[1]*Vo),n[0]*=$o,n[1]*=$o,n}return t=ve(t[0]%360*Vo,t[1]*Vo,t.length>2?t[2]*Vo:0),n.invert=function(n){return n=t.invert(n[0]*Vo,n[1]*Vo),n[0]*=$o,n[1]*=$o,n},n},ge.invert=pe,ho.geo.circle=function(){function t(){var t="function"==typeof r?r.apply(this,arguments):r,n=ve(-t[0]*Vo,-t[1]*Vo,0).invert,u=[];return e(null,null,1,{point:function(t,e){u.push(t=n(t,e)),t[0]*=$o,t[1]*=$o}}),{type:"Polygon",coordinates:[u]}}var n,e,r=[0,0],u=6;return t.origin=function(n){return arguments.length?(r=n,t):r},t.angle=function(r){return arguments.length?(e=xe((n=+r)*Vo,u*Vo),t):n},t.precision=function(r){return arguments.length?(e=xe(n*Vo,(u=+r)*Vo),t):u},t.angle(90)},ho.geo.distance=function(t,n){var e,r=(n[0]-t[0])*Vo,u=t[1]*Vo,i=n[1]*Vo,o=Math.sin(r),a=Math.cos(r),c=Math.sin(u),f=Math.cos(u),l=Math.sin(i),s=Math.cos(i);return Math.atan2(Math.sqrt((e=s*o)*e+(e=f*l-c*s*a)*e),c*l+f*s*a)},ho.geo.graticule=function(){function t(){return{type:"MultiLineString",coordinates:n()}}function n(){return ho.range(Math.ceil(i/v)*v,u,v).map(h).concat(ho.range(Math.ceil(f/y)*y,c,y).map(d)).concat(ho.range(Math.ceil(r/p)*p,e,p).filter(function(t){return Mo(t%v)>Uo}).map(l)).concat(ho.range(Math.ceil(a/g)*g,o,g).filter(function(t){return Mo(t%y)>Uo}).map(s))}var e,r,u,i,o,a,c,f,l,s,h,d,p=10,g=p,v=90,y=360,_=2.5;return t.lines=function(){return n().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[h(i).concat(d(c).slice(1),h(u).reverse().slice(1),d(f).reverse().slice(1))]}},t.extent=function(n){return arguments.length?t.majorExtent(n).minorExtent(n):t.minorExtent()},t.majorExtent=function(n){return arguments.length?(i=+n[0][0],u=+n[1][0],f=+n[0][1],c=+n[1][1],i>u&&(n=i,i=u,u=n),f>c&&(n=f,f=c,c=n),t.precision(_)):[[i,f],[u,c]]},t.minorExtent=function(n){return arguments.length?(r=+n[0][0],e=+n[1][0],a=+n[0][1],o=+n[1][1],r>e&&(n=r,r=e,e=n),a>o&&(n=a,a=o,o=n),t.precision(_)):[[r,a],[e,o]]},t.step=function(n){return arguments.length?t.majorStep(n).minorStep(n):t.minorStep()},t.majorStep=function(n){return arguments.length?(v=+n[0],y=+n[1],t):[v,y]},t.minorStep=function(n){return arguments.length?(p=+n[0],g=+n[1],t):[p,g]},t.precision=function(n){return arguments.length?(_=+n,l=we(a,o,90),s=Me(r,e,_),h=we(f,c,90),d=Me(i,u,_),t):_},t.majorExtent([[-180,-90+Uo],[180,90-Uo]]).minorExtent([[-180,-80-Uo],[180,80+Uo]])},ho.geo.greatArc=function(){function t(){return{type:"LineString",coordinates:[n||r.apply(this,arguments),e||u.apply(this,arguments)]}}var n,e,r=ke,u=Ee;return t.distance=function(){return ho.geo.distance(n||r.apply(this,arguments),e||u.apply(this,arguments))},t.source=function(e){return arguments.length?(r=e,n="function"==typeof e?null:e,t):r},t.target=function(n){return arguments.length?(u=n,e="function"==typeof n?null:n,t):u},t.precision=function(){return arguments.length?t:0},t},ho.geo.interpolate=function(t,n){return Ne(t[0]*Vo,t[1]*Vo,n[0]*Vo,n[1]*Vo)},ho.geo.length=function(t){return Ja=0,ho.geo.stream(t,Ka),Ja};var Ja,Ka={sphere:N,point:N,lineStart:Se,lineEnd:N,polygonStart:N,polygonEnd:N},Qa=je(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(ho.geo.azimuthalEqualArea=function(){return se(Qa)}).raw=Qa;var tc=je(function(t){var n=Math.acos(t);return n&&n/Math.sin(n)},M);(ho.geo.azimuthalEquidistant=function(){return se(tc)}).raw=tc,(ho.geo.conicConformal=function(){return Xn(Ce)}).raw=Ce,(ho.geo.conicEquidistant=function(){return Xn(Ae)}).raw=Ae;var nc=je(function(t){return 1/t},Math.atan);(ho.geo.gnomonic=function(){return se(nc)}).raw=nc,Le.invert=function(t,n){return[t,2*Math.atan(Math.exp(n))-Ho]},(ho.geo.mercator=function(){return Te(Le)}).raw=Le;var ec=je(function(){return 1},Math.asin);(ho.geo.orthographic=function(){return se(ec)}).raw=ec;var rc=je(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(ho.geo.stereographic=function(){return se(rc)}).raw=rc,Oe.invert=function(t,n){return[-n,2*Math.atan(Math.exp(t))-Ho]},(ho.geo.transverseMercator=function(){var t=Te(Oe),n=t.center,e=t.rotate;return t.center=function(t){return t?n([-t[1],t[0]]):(t=n(),[t[1],-t[0]])},t.rotate=function(t){return t?e([t[0],t[1],t.length>2?t[2]+90:90]):(t=e(),[t[0],t[1],t[2]-90])},e([0,0,90])}).raw=Oe,ho.geom={},ho.geom.hull=function(t){function n(t){if(t.length<3)return[];var n,u=Lt(e),i=Lt(r),o=t.length,a=[],c=[];for(n=0;n<o;n++)a.push([+u.call(this,t[n],n),+i.call(this,t[n],n),n]);for(a.sort(ze),n=0;n<o;n++)c.push([a[n][0],-a[n][1]]);var f=Ie(a),l=Ie(c),s=l[0]===f[0],h=l[l.length-1]===f[f.length-1],d=[];for(n=f.length-1;n>=0;--n)d.push(t[a[f[n]][2]]);for(n=+s;n<l.length-h;++n)d.push(t[a[l[n]][2]]);return d}var e=Re,r=Pe;return arguments.length?n(t):(n.x=function(t){return arguments.length?(e=t,n):e},n.y=function(t){return arguments.length?(r=t,n):r},n)},ho.geom.polygon=function(t){return jo(t,uc),t};var uc=ho.geom.polygon.prototype=[];uc.area=function(){for(var t,n=-1,e=this.length,r=this[e-1],u=0;++n<e;)t=r,r=this[n],u+=t[1]*r[0]-t[0]*r[1];return.5*u},uc.centroid=function(t){var n,e,r=-1,u=this.length,i=0,o=0,a=this[u-1];for(arguments.length||(t=-1/(6*this.area()));++r<u;)n=a,a=this[r],e=n[0]*a[1]-a[0]*n[1],i+=(n[0]+a[0])*e,o+=(n[1]+a[1])*e;return[i*t,o*t]},uc.clip=function(t){for(var n,e,r,u,i,o,a=Ue(t),c=-1,f=this.length-Ue(this),l=this[f-1];++c<f;){for(n=t.slice(),t.length=0,u=this[c],i=n[(r=n.length-a)-1],e=-1;++e<r;)o=n[e],De(o,l,u)?(De(i,l,u)||t.push(qe(i,o,l,u)),t.push(o)):De(i,l,u)&&t.push(qe(i,o,l,u)),i=o;a&&t.push(t[0]),l=u}return t};var ic,oc,ac,cc,fc,lc=[],sc=[];Ge.prototype.prepare=function(){for(var t,n=this.edges,e=n.length;e--;)t=n[e].edge,t.b&&t.a||n.splice(e,1);return n.sort(Xe),n.length},or.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},ar.prototype={insert:function(t,n){var e,r,u;if(t){if(n.P=t,n.N=t.N,t.N&&(t.N.P=n),t.N=n,t.R){for(t=t.R;t.L;)t=t.L;t.L=n}else t.R=n;e=t}else this._?(t=sr(this._),n.P=null,n.N=t,t.P=t.L=n,e=t):(n.P=n.N=null,this._=n,e=null);for(n.L=n.R=null,n.U=e,n.C=!0,t=n;e&&e.C;)r=e.U,e===r.L?(u=r.R,u&&u.C?(e.C=u.C=!1,r.C=!0,t=r):(t===e.R&&(fr(this,e),t=e,e=t.U),e.C=!1,r.C=!0,lr(this,r))):(u=r.L,u&&u.C?(e.C=u.C=!1,r.C=!0,t=r):(t===e.L&&(lr(this,e),t=e,e=t.U),e.C=!1,r.C=!0,fr(this,r))),e=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var n,e,r,u=t.U,i=t.L,o=t.R;if(e=i?o?sr(o):i:o,u?u.L===t?u.L=e:u.R=e:this._=e,i&&o?(r=e.C,e.C=t.C,e.L=i,i.U=e,e!==o?(u=e.U,e.U=t.U,t=e.R,u.L=t,e.R=o,o.U=e):(e.U=u,u=e,t=e.R)):(r=t.C,t=e),t&&(t.U=u),!r){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===u.L){if(n=u.R,n.C&&(n.C=!1,u.C=!0,fr(this,u),n=u.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,lr(this,n),n=u.R),n.C=u.C,u.C=n.R.C=!1,fr(this,u),t=this._;break}}else if(n=u.L,n.C&&(n.C=!1,u.C=!0,lr(this,u),n=u.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,fr(this,n),n=u.L),n.C=u.C,u.C=n.L.C=!1,lr(this,u),t=this._;break}n.C=!0,t=u,u=u.U}while(!t.C);t&&(t.C=!1)}}},ho.geom.voronoi=function(t){function n(t){var n=new Array(t.length),r=a[0][0],u=a[0][1],i=a[1][0],o=a[1][1];return hr(e(t),a).cells.forEach(function(e,a){var c=e.edges,f=e.site;(n[a]=c.length?c.map(function(t){var n=t.start();return[n.x,n.y]}):f.x>=r&&f.x<=i&&f.y>=u&&f.y<=o?[[r,o],[i,o],[i,u],[r,u]]:[]).point=t[a]}),n}function e(t){return t.map(function(t,n){return{x:Math.round(i(t,n)/Uo)*Uo,y:Math.round(o(t,n)/Uo)*Uo,i:n}})}var r=Re,u=Pe,i=r,o=u,a=hc;return t?n(t):(n.links=function(t){return hr(e(t)).edges.filter(function(t){return t.l&&t.r}).map(function(n){return{source:t[n.l.i],target:t[n.r.i]}})},n.triangles=function(t){var n=[];return hr(e(t)).cells.forEach(function(e,r){for(var u,i=e.site,o=e.edges.sort(Xe),a=-1,c=o.length,f=o[c-1].edge,l=f.l===i?f.r:f.l;++a<c;)f,u=l,f=o[a].edge,l=f.l===i?f.r:f.l,r<u.i&&r<l.i&&pr(i,u,l)<0&&n.push([t[r],t[u.i],t[l.i]])}),n},n.x=function(t){return arguments.length?(i=Lt(r=t),n):r},n.y=function(t){return arguments.length?(o=Lt(u=t),n):u},n.clipExtent=function(t){return arguments.length?(a=null==t?hc:t,n):a===hc?null:a},n.size=function(t){return arguments.length?n.clipExtent(t&&[[0,0],t]):a===hc?null:a&&a[1]},n)};var hc=[[-1e6,-1e6],[1e6,1e6]];ho.geom.delaunay=function(t){return ho.geom.voronoi().triangles(t)},ho.geom.quadtree=function(t,n,e,r,u){function i(t){function i(t,n,e,r,u,i,o,a){if(!isNaN(e)&&!isNaN(r))if(t.leaf){var c=t.x,l=t.y;if(null!=c)if(Mo(c-e)+Mo(l-r)<.01)f(t,n,e,r,u,i,o,a);else{var s=t.point;t.x=t.y=t.point=null,f(t,s,c,l,u,i,o,a),f(t,n,e,r,u,i,o,a)}else t.x=e,t.y=r,t.point=n}else f(t,n,e,r,u,i,o,a)}function f(t,n,e,r,u,o,a,c){var f=.5*(u+a),l=.5*(o+c),s=e>=f,h=r>=l,d=h<<1|s;t.leaf=!1,t=t.nodes[d]||(t.nodes[d]=yr()),s?u=f:a=f,h?o=l:c=l,i(t,n,e,r,u,o,a,c)}var l,s,h,d,p,g,v,y,_,m=Lt(a),x=Lt(c);if(null!=n)g=n,v=e,y=r,_=u;else if(y=_=-(g=v=1/0),s=[],h=[],p=t.length,o)for(d=0;d<p;++d)l=t[d],l.x<g&&(g=l.x),l.y<v&&(v=l.y),l.x>y&&(y=l.x),l.y>_&&(_=l.y),s.push(l.x),h.push(l.y);else for(d=0;d<p;++d){var b=+m(l=t[d],d),w=+x(l,d);b<g&&(g=b),w<v&&(v=w),b>y&&(y=b),w>_&&(_=w),s.push(b),h.push(w)}var M=y-g,k=_-v;M>k?_=v+M:y=g+k;var E=yr();if(E.add=function(t){i(E,t,+m(t,++d),+x(t,d),g,v,y,_)},E.visit=function(t){_r(t,E,g,v,y,_)},E.find=function(t){return mr(E,t[0],t[1],g,v,y,_)},d=-1,null==n){for(;++d<p;)i(E,t[d],s[d],h[d],g,v,y,_);--d}else t.forEach(E.add);return s=h=t=l=null,E}var o,a=Re,c=Pe;return(o=arguments.length)?(a=gr,c=vr,3===o&&(u=e,r=n,e=n=0),i(t)):(i.x=function(t){return arguments.length?(a=t,i):a},i.y=function(t){return arguments.length?(c=t,i):c},i.extent=function(t){return arguments.length?(null==t?n=e=r=u=null:(n=+t[0][0],e=+t[0][1],r=+t[1][0],u=+t[1][1]),i):null==n?null:[[n,e],[r,u]]},i.size=function(t){return arguments.length?(null==t?n=e=r=u=null:(n=e=0,r=+t[0],u=+t[1]),i):null==n?null:[r-n,u-e]},i)},ho.interpolateRgb=xr,ho.interpolateObject=br,ho.interpolateNumber=wr,ho.interpolateString=Mr;var dc=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pc=new RegExp(dc.source,"g");ho.interpolate=kr,ho.interpolators=[function(t,n){var e=typeof n;return("string"===e?oa.has(n.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(n)?xr:Mr:n instanceof st?xr:Array.isArray(n)?Er:"object"===e&&isNaN(n)?br:wr)(t,n)}],ho.interpolateArray=Er;var gc=function(){return M},vc=ho.map({linear:gc,poly:Tr,quad:function(){return Cr},cubic:function(){return Ar},sin:function(){return Or},exp:function(){return Rr},circle:function(){return Pr},elastic:Ir,back:zr,bounce:function(){return Dr}}),yc=ho.map({in:M,out:Sr,"in-out":jr,"out-in":function(t){return jr(Sr(t))}});ho.ease=function(t){var n=t.indexOf("-"),e=n>=0?t.slice(0,n):t,r=n>=0?t.slice(n+1):"in";return e=vc.get(e)||gc,r=yc.get(r)||M,Nr(r(e.apply(null,po.call(arguments,1))))},ho.interpolateHcl=qr,ho.interpolateHsl=Ur,ho.interpolateLab=Fr,ho.interpolateRound=Br,ho.transform=function(t){var n=vo.createElementNS(ho.ns.prefix.svg,"g");return(ho.transform=function(t){if(null!=t){n.setAttribute("transform",t);var e=n.transform.baseVal.consolidate()}return new Wr(e?e.matrix:_c)})(t)},Wr.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var _c={a:1,b:0,c:0,d:1,e:0,f:0};ho.interpolateTransform=Kr,ho.layout={},ho.layout.bundle=function(){return function(t){for(var n=[],e=-1,r=t.length;++e<r;)n.push(nu(t[e]));return n}},ho.layout.chord=function(){function t(){var t,f,s,h,d,p={},g=[],v=ho.range(i),y=[];for(e=[],r=[],t=0,h=-1;++h<i;){for(f=0,d=-1;++d<i;)f+=u[h][d];g.push(f),y.push(ho.range(i)),t+=f}for(o&&v.sort(function(t,n){return o(g[t],g[n])}),a&&y.forEach(function(t,n){t.sort(function(t,e){return a(u[n][t],u[n][e])})}),t=(Wo-l*i)/t,f=0,h=-1;++h<i;){for(s=f,d=-1;++d<i;){var _=v[h],m=y[_][d],x=u[_][m],b=f,w=f+=x*t;p[_+"-"+m]={index:_,subindex:m,startAngle:b,endAngle:w,value:x}}r[_]={index:_,startAngle:s,endAngle:f,value:g[_]},f+=l}for(h=-1;++h<i;)for(d=h-1;++d<i;){var M=p[h+"-"+d],k=p[d+"-"+h];(M.value||k.value)&&e.push(M.value<k.value?{source:k,target:M}:{source:M,target:k})}c&&n()}function n(){e.sort(function(t,n){return c((t.source.value+t.target.value)/2,(n.source.value+n.target.value)/2)})}var e,r,u,i,o,a,c,f={},l=0;return f.matrix=function(t){return arguments.length?(i=(u=t)&&u.length,e=r=null,f):u},f.padding=function(t){return arguments.length?(l=t,e=r=null,f):l},f.sortGroups=function(t){return arguments.length?(o=t,e=r=null,f):o},f.sortSubgroups=function(t){return arguments.length?(a=t,e=null,f):a},f.sortChords=function(t){return arguments.length?(c=t,e&&n(),f):c},f.chords=function(){return e||t(),e},f.groups=function(){return r||t(),r},f},ho.layout.force=function(){function t(t){return function(n,e,r,u){if(n.point!==t){var i=n.cx-t.x,o=n.cy-t.y,a=u-e,c=i*i+o*o;if(a*a/y<c){if(c<g){var f=n.charge/c;t.px-=i*f,t.py-=o*f}return!0}if(n.point&&c&&c<g){var f=n.pointCharge/c;t.px-=i*f,t.py-=o*f}}return!n.charge}}function n(t){t.px=ho.event.x,t.py=ho.event.y,c.resume()}var e,r,u,i,o,a,c={},f=ho.dispatch("start","tick","end"),l=[1,1],s=.9,h=mc,d=xc,p=-30,g=bc,v=.1,y=.64,_=[],m=[];return c.tick=function(){if((u*=.99)<.005)return e=null,f.end({type:"end",alpha:u=0}),!0;var n,r,c,h,d,g,y,x,b,w=_.length,M=m.length;for(r=0;r<M;++r)c=m[r],h=c.source,d=c.target,x=d.x-h.x,b=d.y-h.y,(g=x*x+b*b)&&(g=u*o[r]*((g=Math.sqrt(g))-i[r])/g,x*=g,b*=g,d.x-=x*(y=h.weight+d.weight?h.weight/(h.weight+d.weight):.5),d.y-=b*y,h.x+=x*(y=1-y),h.y+=b*y);if((y=u*v)&&(x=l[0]/2,b=l[1]/2,r=-1,y))for(;++r<w;)c=_[r],c.x+=(x-c.x)*y,c.y+=(b-c.y)*y;if(p)for(cu(n=ho.geom.quadtree(_),u,a),r=-1;++r<w;)(c=_[r]).fixed||n.visit(t(c));for(r=-1;++r<w;)c=_[r],c.fixed?(c.x=c.px,c.y=c.py):(c.x-=(c.px-(c.px=c.x))*s,c.y-=(c.py-(c.py=c.y))*s);f.tick({type:"tick",alpha:u})},c.nodes=function(t){return arguments.length?(_=t,c):_},c.links=function(t){return arguments.length?(m=t,c):m},c.size=function(t){return arguments.length?(l=t,c):l},c.linkDistance=function(t){return arguments.length?(h="function"==typeof t?t:+t,c):h},c.distance=c.linkDistance,c.linkStrength=function(t){return arguments.length?(d="function"==typeof t?t:+t,c):d},c.friction=function(t){return arguments.length?(s=+t,c):s},c.charge=function(t){return arguments.length?(p="function"==typeof t?t:+t,c):p},c.chargeDistance=function(t){return arguments.length?(g=t*t,c):Math.sqrt(g)},c.gravity=function(t){return arguments.length?(v=+t,c):v},c.theta=function(t){return arguments.length?(y=t*t,c):Math.sqrt(y)},c.alpha=function(t){return arguments.length?(t=+t,u?t>0?u=t:(e.c=null,e.t=NaN,e=null,f.end({type:"end",alpha:u=0})):t>0&&(f.start({type:"start",alpha:u=t}),e=It(c.tick)),c):u},c.start=function(){function t(t,r){if(!e){for(e=new Array(u),c=0;c<u;++c)e[c]=[];for(c=0;c<f;++c){var i=m[c];e[i.source.index].push(i.target),e[i.target.index].push(i.source)}}for(var o,a=e[n],c=-1,l=a.length;++c<l;)if(!isNaN(o=a[c][t]))return o;return Math.random()*r}var n,e,r,u=_.length,f=m.length,s=l[0],g=l[1];for(n=0;n<u;++n)(r=_[n]).index=n,r.weight=0;for(n=0;n<f;++n)r=m[n],"number"==typeof r.source&&(r.source=_[r.source]),"number"==typeof r.target&&(r.target=_[r.target]),++r.source.weight,++r.target.weight;for(n=0;n<u;++n)r=_[n],isNaN(r.x)&&(r.x=t("x",s)),isNaN(r.y)&&(r.y=t("y",g)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(i=[],"function"==typeof h)for(n=0;n<f;++n)i[n]=+h.call(this,m[n],n);else for(n=0;n<f;++n)i[n]=h;if(o=[],"function"==typeof d)for(n=0;n<f;++n)o[n]=+d.call(this,m[n],n);else for(n=0;n<f;++n)o[n]=d;if(a=[],"function"==typeof p)for(n=0;n<u;++n)a[n]=+p.call(this,_[n],n);else for(n=0;n<u;++n)a[n]=p;return c.resume()},c.resume=function(){return c.alpha(.1)},c.stop=function(){return c.alpha(0)},c.drag=function(){if(r||(r=ho.behavior.drag().origin(M).on("dragstart.force",uu).on("drag.force",n).on("dragend.force",iu)),!arguments.length)return r;this.on("mouseover.force",ou).on("mouseout.force",au).call(r)},ho.rebind(c,f,"on")};var mc=20,xc=1,bc=1/0;ho.layout.hierarchy=function(){function t(u){var i,o=[u],a=[];for(u.depth=0;null!=(i=o.pop());)if(a.push(i),(f=e.call(t,i,i.depth))&&(c=f.length)){for(var c,f,l;--c>=0;)o.push(l=f[c]),l.parent=i,l.depth=i.depth+1;r&&(i.value=0),i.children=f}else r&&(i.value=+r.call(t,i,i.depth)||0),delete i.children;return su(u,function(t){var e,u;n&&(e=t.children)&&e.sort(n),r&&(u=t.parent)&&(u.value+=t.value)}),a}var n=pu,e=hu,r=du;return t.sort=function(e){return arguments.length?(n=e,t):n},t.children=function(n){return arguments.length?(e=n,t):e},t.value=function(n){return arguments.length?(r=n,t):r},t.revalue=function(n){return r&&(lu(n,function(t){t.children&&(t.value=0)}),su(n,function(n){var e;n.children||(n.value=+r.call(t,n,n.depth)||0),(e=n.parent)&&(e.value+=n.value)})),n},t},ho.layout.partition=function(){function t(n,e,r,u){var i=n.children;if(n.x=e,n.y=n.depth*u,n.dx=r,n.dy=u,i&&(o=i.length)){var o,a,c,f=-1;for(r=n.value?r/n.value:0;++f<o;)t(a=i[f],e,c=a.value*r,u),e+=c}}function n(t){var e=t.children,r=0;if(e&&(u=e.length))for(var u,i=-1;++i<u;)r=Math.max(r,n(e[i]));return 1+r}function e(e,i){var o=r.call(this,e,i);return t(o[0],0,u[0],u[1]/n(o[0])),o}var r=ho.layout.hierarchy(),u=[1,1];return e.size=function(t){return arguments.length?(u=t,e):u},fu(e,r)},ho.layout.pie=function(){function t(o){var a,c=o.length,f=o.map(function(e,r){return+n.call(t,e,r)}),l=+("function"==typeof r?r.apply(this,arguments):r),s=("function"==typeof u?u.apply(this,arguments):u)-l,h=Math.min(Math.abs(s)/c,+("function"==typeof i?i.apply(this,arguments):i)),d=h*(s<0?-1:1),p=ho.sum(f),g=p?(s-c*d)/p:0,v=ho.range(c),y=[];return null!=e&&v.sort(e===wc?function(t,n){return f[n]-f[t]}:function(t,n){return e(o[t],o[n])}),v.forEach(function(t){y[t]={data:o[t],value:a=f[t],startAngle:l,endAngle:l+=a*g+d,padAngle:h}}),y}var n=Number,e=wc,r=0,u=Wo,i=0;return t.value=function(e){return arguments.length?(n=e,t):n},t.sort=function(n){return arguments.length?(e=n,t):e},t.startAngle=function(n){return arguments.length?(r=n,t):r},t.endAngle=function(n){return arguments.length?(u=n,t):u},t.padAngle=function(n){return arguments.length?(i=n,t):i},t};var wc={};ho.layout.stack=function(){function t(a,c){if(!(h=a.length))return a;var f=a.map(function(e,r){return n.call(t,e,r)}),l=f.map(function(n){return n.map(function(n,e){return[i.call(t,n,e),o.call(t,n,e)]})}),s=e.call(t,l,c);f=ho.permute(f,s),l=ho.permute(l,s);var h,d,p,g,v=r.call(t,l,c),y=f[0].length;for(p=0;p<y;++p)for(u.call(t,f[0][p],g=v[p],l[0][p][1]),d=1;d<h;++d)u.call(t,f[d][p],g+=l[d-1][p][1],l[d][p][1]);return a}var n=M,e=mu,r=xu,u=_u,i=vu,o=yu;return t.values=function(e){return arguments.length?(n=e,t):n},t.order=function(n){return arguments.length?(e="function"==typeof n?n:Mc.get(n)||mu,t):e},t.offset=function(n){return arguments.length?(r="function"==typeof n?n:kc.get(n)||xu,t):r},t.x=function(n){return arguments.length?(i=n,t):i},t.y=function(n){return arguments.length?(o=n,t):o},t.out=function(n){return arguments.length?(u=n,t):u},t};var Mc=ho.map({"inside-out":function(t){var n,e,r=t.length,u=t.map(bu),i=t.map(wu),o=ho.range(r).sort(function(t,n){return u[t]-u[n]}),a=0,c=0,f=[],l=[];for(n=0;n<r;++n)e=o[n],a<c?(a+=i[e],f.push(e)):(c+=i[e],l.push(e));return l.reverse().concat(f)},reverse:function(t){return ho.range(t.length).reverse()},default:mu}),kc=ho.map({silhouette:function(t){var n,e,r,u=t.length,i=t[0].length,o=[],a=0,c=[];for(e=0;e<i;++e){for(n=0,r=0;n<u;n++)r+=t[n][e][1];r>a&&(a=r),o.push(r)}for(e=0;e<i;++e)c[e]=(a-o[e])/2;return c},wiggle:function(t){var n,e,r,u,i,o,a,c,f,l=t.length,s=t[0],h=s.length,d=[];for(d[0]=c=f=0,e=1;e<h;++e){for(n=0,u=0;n<l;++n)u+=t[n][e][1];for(n=0,i=0,a=s[e][0]-s[e-1][0];n<l;++n){for(r=0,o=(t[n][e][1]-t[n][e-1][1])/(2*a);r<n;++r)o+=(t[r][e][1]-t[r][e-1][1])/a;i+=o*t[n][e][1]}d[e]=c-=u?i/u*a:0,c<f&&(f=c)}for(e=0;e<h;++e)d[e]-=f;return d},expand:function(t){var n,e,r,u=t.length,i=t[0].length,o=1/u,a=[];for(e=0;e<i;++e){for(n=0,r=0;n<u;n++)r+=t[n][e][1];if(r)for(n=0;n<u;n++)t[n][e][1]/=r;else for(n=0;n<u;n++)t[n][e][1]=o}for(e=0;e<i;++e)a[e]=0;return a},zero:xu});ho.layout.histogram=function(){function t(t,i){for(var o,a,c=[],f=t.map(e,this),l=r.call(this,f,i),s=u.call(this,l,f,i),i=-1,h=f.length,d=s.length-1,p=n?1:1/h;++i<d;)o=c[i]=[],o.dx=s[i+1]-(o.x=s[i]),o.y=0;if(d>0)for(i=-1;++i<h;)(a=f[i])>=l[0]&&a<=l[1]&&(o=c[ho.bisect(s,a,1,d)-1],o.y+=p,o.push(t[i]));return c}var n=!0,e=Number,r=Nu,u=ku;return t.value=function(n){return arguments.length?(e=n,t):e},t.range=function(n){return arguments.length?(r=Lt(n),t):r},t.bins=function(n){return arguments.length?(u="number"==typeof n?function(t){return Eu(t,n)}:Lt(n),t):u},t.frequency=function(e){return arguments.length?(n=!!e,t):n},t},ho.layout.pack=function(){function t(t,i){var o=e.call(this,t,i),a=o[0],c=u[0],f=u[1],l=null==n?Math.sqrt:"function"==typeof n?n:function(){return n};if(a.x=a.y=0,su(a,function(t){t.r=+l(t.value)}),su(a,Lu),r){var s=r*(n?1:Math.max(2*a.r/c,2*a.r/f))/2;su(a,function(t){t.r+=s}),su(a,Lu),su(a,function(t){t.r-=s})}return Ru(a,c/2,f/2,n?1:1/Math.max(2*a.r/c,2*a.r/f)),o}var n,e=ho.layout.hierarchy().sort(Su),r=0,u=[1,1];return t.size=function(n){return arguments.length?(u=n,t):u},t.radius=function(e){return arguments.length?(n=null==e||"function"==typeof e?e:+e,t):n},t.padding=function(n){return arguments.length?(r=+n,t):r},fu(t,e)},ho.layout.tree=function(){function t(t,u){var l=o.call(this,t,u),s=l[0],h=n(s);if(su(h,e),h.parent.m=-h.z,lu(h,r),f)lu(s,i);else{var d=s,p=s,g=s;lu(s,function(t){t.x<d.x&&(d=t),t.x>p.x&&(p=t),t.depth>g.depth&&(g=t)});var v=a(d,p)/2-d.x,y=c[0]/(p.x+a(p,d)/2+v),_=c[1]/(g.depth||1);lu(s,function(t){t.x=(t.x+v)*y,t.y=t.depth*_})}return l}function n(t){for(var n,e={A:null,children:[t]},r=[e];null!=(n=r.pop());)for(var u,i=n.children,o=0,a=i.length;o<a;++o)r.push((i[o]=u={_:i[o],parent:n,children:(u=i[o].children)&&u.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=u);return e.children[0]}function e(t){var n=t.children,e=t.parent.children,r=t.i?e[t.i-1]:null;if(n.length){Uu(t);var i=(n[0].z+n[n.length-1].z)/2;r?(t.z=r.z+a(t._,r._),t.m=t.z-i):t.z=i}else r&&(t.z=r.z+a(t._,r._));t.parent.A=u(t,r,t.parent.A||e[0])}function r(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t,n,e){if(n){for(var r,u=t,i=t,o=n,c=u.parent.children[0],f=u.m,l=i.m,s=o.m,h=c.m;o=Du(o),u=zu(u),o&&u;)c=zu(c),i=Du(i),i.a=t,r=o.z+s-u.z-f+a(o._,u._),r>0&&(qu(Fu(o,t,e),t,r),f+=r,l+=r),s+=o.m,f+=u.m,h+=c.m,l+=i.m;o&&!Du(i)&&(i.t=o,i.m+=s-l),u&&!zu(c)&&(c.t=u,c.m+=f-h,e=t)}return e}function i(t){t.x*=c[0],t.y=t.depth*c[1]}var o=ho.layout.hierarchy().sort(null).value(null),a=Iu,c=[1,1],f=null;return t.separation=function(n){return arguments.length?(a=n,t):a},t.size=function(n){return arguments.length?(f=null==(c=n)?i:null,t):f?null:c},t.nodeSize=function(n){return arguments.length?(f=null==(c=n)?null:i,t):f?c:null},fu(t,o)},ho.layout.cluster=function(){function t(t,i){var o,a=n.call(this,t,i),c=a[0],f=0;su(c,function(t){var n=t.children;n&&n.length?(t.x=Wu(n),t.y=Bu(n)):(t.x=o?f+=e(t,o):0,t.y=0,o=t)});var l=Yu(c),s=Hu(c),h=l.x-e(l,s)/2,d=s.x+e(s,l)/2;return su(c,u?function(t){t.x=(t.x-c.x)*r[0],t.y=(c.y-t.y)*r[1]}:function(t){t.x=(t.x-h)/(d-h)*r[0],t.y=(1-(c.y?t.y/c.y:1))*r[1]}),a}var n=ho.layout.hierarchy().sort(null).value(null),e=Iu,r=[1,1],u=!1;return t.separation=function(n){return arguments.length?(e=n,t):e},t.size=function(n){return arguments.length?(u=null==(r=n),t):u?null:r},t.nodeSize=function(n){return arguments.length?(u=null!=(r=n),t):u?r:null},fu(t,n)},ho.layout.treemap=function(){function t(t,n){for(var e,r,u=-1,i=t.length;++u<i;)r=(e=t[u]).value*(n<0?0:n),e.area=isNaN(r)||r<=0?0:r}function n(e){var i=e.children;if(i&&i.length){var o,a,c,f=s(e),l=[],h=i.slice(),p=1/0,g="slice"===d?f.dx:"dice"===d?f.dy:"slice-dice"===d?1&e.depth?f.dy:f.dx:Math.min(f.dx,f.dy);for(t(h,f.dx*f.dy/e.value),l.area=0;(c=h.length)>0;)l.push(o=h[c-1]),l.area+=o.area,"squarify"!==d||(a=r(l,g))<=p?(h.pop(),p=a):(l.area-=l.pop().area,u(l,g,f,!1),g=Math.min(f.dx,f.dy),l.length=l.area=0,p=1/0);l.length&&(u(l,g,f,!0),l.length=l.area=0),i.forEach(n)}}function e(n){var r=n.children;if(r&&r.length){var i,o=s(n),a=r.slice(),c=[];for(t(a,o.dx*o.dy/n.value),c.area=0;i=a.pop();)c.push(i),c.area+=i.area,null!=i.z&&(u(c,i.z?o.dx:o.dy,o,!a.length),c.length=c.area=0);r.forEach(e)}}function r(t,n){for(var e,r=t.area,u=0,i=1/0,o=-1,a=t.length;++o<a;)(e=t[o].area)&&(e<i&&(i=e),e>u&&(u=e));return r*=r,n*=n,r?Math.max(n*u*p/r,r/(n*i*p)):1/0}function u(t,n,e,r){var u,i=-1,o=t.length,a=e.x,f=e.y,l=n?c(t.area/n):0;if(n==e.dx){for((r||l>e.dy)&&(l=e.dy);++i<o;)u=t[i],u.x=a,u.y=f,u.dy=l,a+=u.dx=Math.min(e.x+e.dx-a,l?c(u.area/l):0);u.z=!0,u.dx+=e.x+e.dx-a,e.y+=l,e.dy-=l}else{for((r||l>e.dx)&&(l=e.dx);++i<o;)u=t[i],u.x=a,u.y=f,u.dx=l,f+=u.dy=Math.min(e.y+e.dy-f,l?c(u.area/l):0);u.z=!1,u.dy+=e.y+e.dy-f,e.x+=l,e.dx-=l}}function i(r){var u=o||a(r),i=u[0];return i.x=i.y=0,i.value?(i.dx=f[0],i.dy=f[1]):i.dx=i.dy=0,o&&a.revalue(i),t([i],i.dx*i.dy/i.value),(o?e:n)(i),h&&(o=u),u}var o,a=ho.layout.hierarchy(),c=Math.round,f=[1,1],l=null,s=Vu,h=!1,d="squarify",p=.5*(1+Math.sqrt(5));return i.size=function(t){return arguments.length?(f=t,i):f},i.padding=function(t){function n(n){var e=t.call(i,n,n.depth);return null==e?Vu(n):$u(n,"number"==typeof e?[e,e,e,e]:e)}function e(n){return $u(n,t)}if(!arguments.length)return l;var r;return s=null==(l=t)?Vu:"function"==(r=typeof t)?n:"number"===r?(t=[t,t,t,t],e):e,i},i.round=function(t){return arguments.length?(c=t?Math.round:Number,i):c!=Number},i.sticky=function(t){return arguments.length?(h=t,o=null,i):h},i.ratio=function(t){return arguments.length?(p=t,i):p},i.mode=function(t){return arguments.length?(d=t+"",i):d},fu(i,a)},ho.random={normal:function(t,n){var e=arguments.length;return e<2&&(n=1),e<1&&(t=0),function(){var e,r,u;do{e=2*Math.random()-1,r=2*Math.random()-1,u=e*e+r*r}while(!u||u>1);return t+n*e*Math.sqrt(-2*Math.log(u)/u)}},logNormal:function(){var t=ho.random.normal.apply(ho,arguments);return function(){return Math.exp(t())}},bates:function(t){var n=ho.random.irwinHall(t);return function(){return n()/t}},irwinHall:function(t){return function(){for(var n=0,e=0;e<t;e++)n+=Math.random();return n}}},ho.scale={};var Ec={floor:M,ceil:M};ho.scale.linear=function(){return ti([0,1],[0,1],kr,!1)};var Nc={s:1,g:1,p:1,r:1,e:1};ho.scale.log=function(){return ci(ho.scale.linear().domain([0,1]),10,!0,[1,10])};var Sc=ho.format(".0e"),jc={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};ho.scale.pow=function(){return fi(ho.scale.linear(),1,[0,1])},ho.scale.sqrt=function(){return ho.scale.pow().exponent(.5)},ho.scale.ordinal=function(){return si([],{t:"range",a:[[]]})},ho.scale.category10=function(){return ho.scale.ordinal().range(Cc)},ho.scale.category20=function(){return ho.scale.ordinal().range(Ac)},ho.scale.category20b=function(){return ho.scale.ordinal().range(Lc)},ho.scale.category20c=function(){return ho.scale.ordinal().range(Tc)};var Cc=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(kt),Ac=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(kt),Lc=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(kt),Tc=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(kt);ho.scale.quantile=function(){return hi([],[])},ho.scale.quantize=function(){return di(0,1,[0,1])},ho.scale.threshold=function(){return pi([.5],[0,1])},ho.scale.identity=function(){return gi([0,1])},ho.svg={},ho.svg.arc=function(){function t(){var t=Math.max(0,+e.apply(this,arguments)),f=Math.max(0,+r.apply(this,arguments)),l=o.apply(this,arguments)-Ho,s=a.apply(this,arguments)-Ho,h=Math.abs(s-l),d=l>s?0:1;if(f<t&&(p=f,f=t,t=p),h>=Yo)return n(f,d)+(t?n(t,1-d):"")+"Z";var p,g,v,y,_,m,x,b,w,M,k,E,N=0,S=0,j=[];if((y=(+c.apply(this,arguments)||0)/2)&&(v=i===Oc?Math.sqrt(t*t+f*f):+i.apply(this,arguments),d||(S*=-1),f&&(S=ot(v/f*Math.sin(y))),t&&(N=ot(v/t*Math.sin(y)))),f){_=f*Math.cos(l+S),m=f*Math.sin(l+S),x=f*Math.cos(s-S),b=f*Math.sin(s-S);var C=Math.abs(s-l-2*S)<=Bo?0:1;if(S&&wi(_,m,x,b)===d^C){var A=(l+s)/2;_=f*Math.cos(A),m=f*Math.sin(A),x=b=null}}else _=m=0;if(t){w=t*Math.cos(s-N),M=t*Math.sin(s-N),k=t*Math.cos(l+N),E=t*Math.sin(l+N);var L=Math.abs(l-s+2*N)<=Bo?0:1;if(N&&wi(w,M,k,E)===1-d^L){var T=(l+s)/2;w=t*Math.cos(T),M=t*Math.sin(T),k=E=null}}else w=M=0;if(h>Uo&&(p=Math.min(Math.abs(f-t)/2,+u.apply(this,arguments)))>.001){g=t<f^d?0:1;var O=p,R=p;if(h<Bo){var P=null==k?[w,M]:null==x?[_,m]:qe([_,m],[k,E],[x,b],[w,M]),I=_-P[0],z=m-P[1],D=x-P[0],q=b-P[1],U=1/Math.sin(Math.acos((I*D+z*q)/(Math.sqrt(I*I+z*z)*Math.sqrt(D*D+q*q)))/2),F=Math.sqrt(P[0]*P[0]+P[1]*P[1]);R=Math.min(p,(t-F)/(U-1)),O=Math.min(p,(f-F)/(U+1))}if(null!=x){var B=Mi(null==k?[w,M]:[k,E],[_,m],f,O,d),W=Mi([x,b],[w,M],f,O,d);p===O?j.push("M",B[0],"A",O,",",O," 0 0,",g," ",B[1],"A",f,",",f," 0 ",1-d^wi(B[1][0],B[1][1],W[1][0],W[1][1]),",",d," ",W[1],"A",O,",",O," 0 0,",g," ",W[0]):j.push("M",B[0],"A",O,",",O," 0 1,",g," ",W[0])}else j.push("M",_,",",m);if(null!=k){var Y=Mi([_,m],[k,E],t,-R,d),H=Mi([w,M],null==x?[_,m]:[x,b],t,-R,d);p===R?j.push("L",H[0],"A",R,",",R," 0 0,",g," ",H[1],"A",t,",",t," 0 ",d^wi(H[1][0],H[1][1],Y[1][0],Y[1][1]),",",1-d," ",Y[1],"A",R,",",R," 0 0,",g," ",Y[0]):j.push("L",H[0],"A",R,",",R," 0 0,",g," ",Y[0])}else j.push("L",w,",",M)}else j.push("M",_,",",m),null!=x&&j.push("A",f,",",f," 0 ",C,",",d," ",x,",",b),j.push("L",w,",",M),null!=k&&j.push("A",t,",",t," 0 ",L,",",1-d," ",k,",",E);return j.push("Z"),j.join("")}function n(t,n){return"M0,"+t+"A"+t+","+t+" 0 1,"+n+" 0,"+-t+"A"+t+","+t+" 0 1,"+n+" 0,"+t}var e=yi,r=_i,u=vi,i=Oc,o=mi,a=xi,c=bi;return t.innerRadius=function(n){return arguments.length?(e=Lt(n),t):e},t.outerRadius=function(n){return arguments.length?(r=Lt(n),t):r},t.cornerRadius=function(n){return arguments.length?(u=Lt(n),t):u},t.padRadius=function(n){return arguments.length?(i=n==Oc?Oc:Lt(n),t):i},t.startAngle=function(n){return arguments.length?(o=Lt(n),t):o},t.endAngle=function(n){return arguments.length?(a=Lt(n),t):a},t.padAngle=function(n){return arguments.length?(c=Lt(n),t):c},t.centroid=function(){var t=(+e.apply(this,arguments)+ +r.apply(this,arguments))/2,n=(+o.apply(this,arguments)+ +a.apply(this,arguments))/2-Ho;return[Math.cos(n)*t,Math.sin(n)*t]},t};var Oc="auto";ho.svg.line=function(){return ki(M)};var Rc=ho.map({linear:Ei,"linear-closed":Ni,step:Si,"step-before":ji,"step-after":Ci,basis:Pi,"basis-open":Ii,"basis-closed":zi,bundle:Di,cardinal:Ti,"cardinal-open":Ai,"cardinal-closed":Li,monotone:Yi});Rc.forEach(function(t,n){n.key=t,n.closed=/-closed$/.test(t)});var Pc=[0,2/3,1/3,0],Ic=[0,1/3,2/3,0],zc=[0,1/6,2/3,1/6];ho.svg.line.radial=function(){var t=ki(Hi);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},ji.reverse=Ci,Ci.reverse=ji,ho.svg.area=function(){return Vi(M)},ho.svg.area.radial=function(){var t=Vi(Hi);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},ho.svg.chord=function(){function t(t,a){var c=n(this,i,t,a),f=n(this,o,t,a);return"M"+c.p0+r(c.r,c.p1,c.a1-c.a0)+(e(c,f)?u(c.r,c.p1,c.r,c.p0):u(c.r,c.p1,f.r,f.p0)+r(f.r,f.p1,f.a1-f.a0)+u(f.r,f.p1,c.r,c.p0))+"Z"}function n(t,n,e,r){var u=n.call(t,e,r),i=a.call(t,u,r),o=c.call(t,u,r)-Ho,l=f.call(t,u,r)-Ho;return{r:i,a0:o,a1:l,p0:[i*Math.cos(o),i*Math.sin(o)],p1:[i*Math.cos(l),i*Math.sin(l)]}}function e(t,n){return t.a0==n.a0&&t.a1==n.a1}function r(t,n,e){return"A"+t+","+t+" 0 "+ +(e>Bo)+",1 "+n}function u(t,n,e,r){return"Q 0,0 "+r}var i=ke,o=Ee,a=$i,c=mi,f=xi;return t.radius=function(n){return arguments.length?(a=Lt(n),t):a},t.source=function(n){return arguments.length?(i=Lt(n),t):i},t.target=function(n){return arguments.length?(o=Lt(n),t):o},t.startAngle=function(n){return arguments.length?(c=Lt(n),t):c},t.endAngle=function(n){return arguments.length?(f=Lt(n),t):f},t},ho.svg.diagonal=function(){function t(t,u){var i=n.call(this,t,u),o=e.call(this,t,u),a=(i.y+o.y)/2,c=[i,{x:i.x,y:a},{x:o.x,y:a},o];return c=c.map(r),"M"+c[0]+"C"+c[1]+" "+c[2]+" "+c[3]}var n=ke,e=Ee,r=Gi;return t.source=function(e){return arguments.length?(n=Lt(e),t):n},t.target=function(n){return arguments.length?(e=Lt(n),t):e},t.projection=function(n){return arguments.length?(r=n,t):r},t},ho.svg.diagonal.radial=function(){var t=ho.svg.diagonal(),n=Gi,e=t.projection;return t.projection=function(t){return arguments.length?e(Zi(n=t)):n},t},ho.svg.symbol=function(){function t(t,r){return(Dc.get(n.call(this,t,r))||Ki)(e.call(this,t,r))}var n=Ji,e=Xi;return t.type=function(e){return arguments.length?(n=Lt(e),t):n},t.size=function(n){return arguments.length?(e=Lt(n),t):e},t};var Dc=ho.map({circle:Ki,cross:function(t){var n=Math.sqrt(t/5)/2;return"M"+-3*n+","+-n+"H"+-n+"V"+-3*n+"H"+n+"V"+-n+"H"+3*n+"V"+n+"H"+n+"V"+3*n+"H"+-n+"V"+n+"H"+-3*n+"Z"},diamond:function(t){var n=Math.sqrt(t/(2*Uc)),e=n*Uc;return"M0,"+-n+"L"+e+",0 0,"+n+" "+-e+",0Z"},square:function(t){var n=Math.sqrt(t)/2;return"M"+-n+","+-n+"L"+n+","+-n+" "+n+","+n+" "+-n+","+n+"Z"},"triangle-down":function(t){var n=Math.sqrt(t/qc),e=n*qc/2;return"M0,"+e+"L"+n+","+-e+" "+-n+","+-e+"Z"},"triangle-up":function(t){var n=Math.sqrt(t/qc),e=n*qc/2;return"M0,"+-e+"L"+n+","+e+" "+-n+","+e+"Z"}});ho.svg.symbolTypes=Dc.keys();var qc=Math.sqrt(3),Uc=Math.tan(30*Vo);To.transition=function(t){for(var n,e,r=Fc||++Hc,u=ro(t),i=[],o=Bc||{time:Date.now(),ease:Lr,delay:0,duration:250},a=-1,c=this.length;++a<c;){i.push(n=[]);for(var f=this[a],l=-1,s=f.length;++l<s;)(e=f[l])&&uo(e,l,u,r,o),n.push(e)}return to(i,u,r)},To.interrupt=function(t){return this.each(null==t?Wc:Qi(ro(t)))};var Fc,Bc,Wc=Qi(ro()),Yc=[],Hc=0;Yc.call=To.call,Yc.empty=To.empty,Yc.node=To.node,Yc.size=To.size,ho.transition=function(t,n){return t&&t.transition?Fc?t.transition(n):t:ho.selection().transition(t)},ho.transition.prototype=Yc,Yc.select=function(t){var n,e,r,u=this.id,i=this.namespace,o=[];t=O(t);for(var a=-1,c=this.length;++a<c;){o.push(n=[]);for(var f=this[a],l=-1,s=f.length;++l<s;)(r=f[l])&&(e=t.call(r,r.__data__,l,a))?("__data__"in r&&(e.__data__=r.__data__),uo(e,l,i,u,r[i][u]),n.push(e)):n.push(null)}return to(o,i,u)},Yc.selectAll=function(t){var n,e,r,u,i,o=this.id,a=this.namespace,c=[];t=R(t);for(var f=-1,l=this.length;++f<l;)for(var s=this[f],h=-1,d=s.length;++h<d;)if(r=s[h]){i=r[a][o],e=t.call(r,r.__data__,h,f),c.push(n=[]);for(var p=-1,g=e.length;++p<g;)(u=e[p])&&uo(u,p,a,o,i),n.push(u)}return to(c,a,o)},Yc.filter=function(t){var n,e,r,u=[];"function"!=typeof t&&(t=V(t));for(var i=0,o=this.length;i<o;i++){u.push(n=[]);for(var e=this[i],a=0,c=e.length;a<c;a++)(r=e[a])&&t.call(r,r.__data__,a,i)&&n.push(r)}return to(u,this.namespace,this.id)},Yc.tween=function(t,n){var e=this.id,r=this.namespace;return arguments.length<2?this.node()[r][e].tween.get(t):G(this,null==n?function(n){n[r][e].tween.remove(t)}:function(u){u[r][e].tween.set(t,n)})},Yc.attr=function(t,n){function e(){this.removeAttribute(a)}function r(){this.removeAttributeNS(a.space,a.local)}function u(t){return null==t?e:(t+="",function(){var n,e=this.getAttribute(a);return e!==t&&(n=o(e,t),function(t){this.setAttribute(a,n(t))})})}function i(t){return null==t?r:(t+="",function(){var n,e=this.getAttributeNS(a.space,a.local);return e!==t&&(n=o(e,t),function(t){this.setAttributeNS(a.space,a.local,n(t))})})}if(arguments.length<2){for(n in t)this.attr(n,t[n]);return this}var o="transform"==t?Kr:kr,a=ho.ns.qualify(t);return no(this,"attr."+t,n,a.local?i:u)},Yc.attrTween=function(t,n){function e(t,e){var r=n.call(this,t,e,this.getAttribute(u));return r&&function(t){this.setAttribute(u,r(t))}}function r(t,e){var r=n.call(this,t,e,this.getAttributeNS(u.space,u.local));return r&&function(t){this.setAttributeNS(u.space,u.local,r(t))}}var u=ho.ns.qualify(t);return this.tween("attr."+t,u.local?r:e)},Yc.style=function(t,n,e){function r(){this.style.removeProperty(t)}function u(n){return null==n?r:(n+="",function(){var r,u=o(this).getComputedStyle(this,null).getPropertyValue(t);return u!==n&&(r=kr(u,n),function(n){this.style.setProperty(t,r(n),e)})})}var i=arguments.length;if(i<3){if("string"!=typeof t){i<2&&(n="");for(e in t)this.style(e,t[e],n);return this}e=""}return no(this,"style."+t,n,u)},Yc.styleTween=function(t,n,e){function r(r,u){var i=n.call(this,r,u,o(this).getComputedStyle(this,null).getPropertyValue(t));return i&&function(n){this.style.setProperty(t,i(n),e)}}return arguments.length<3&&(e=""),this.tween("style."+t,r)},Yc.text=function(t){return no(this,"text",t,eo)},Yc.remove=function(){var t=this.namespace;return this.each("end.transition",function(){var n;this[t].count<2&&(n=this.parentNode)&&n.removeChild(this)})},Yc.ease=function(t){var n=this.id,e=this.namespace;return arguments.length<1?this.node()[e][n].ease:("function"!=typeof t&&(t=ho.ease.apply(ho,arguments)),G(this,function(r){r[e][n].ease=t}))},Yc.delay=function(t){var n=this.id,e=this.namespace;return arguments.length<1?this.node()[e][n].delay:G(this,"function"==typeof t?function(r,u,i){r[e][n].delay=+t.call(r,r.__data__,u,i)}:(t=+t,function(r){r[e][n].delay=t}))},Yc.duration=function(t){var n=this.id,e=this.namespace;return arguments.length<1?this.node()[e][n].duration:G(this,"function"==typeof t?function(r,u,i){r[e][n].duration=Math.max(1,t.call(r,r.__data__,u,i))}:(t=Math.max(1,t),function(r){r[e][n].duration=t}))},Yc.each=function(t,n){var e=this.id,r=this.namespace;if(arguments.length<2){var u=Bc,i=Fc;try{Fc=e,G(this,function(n,u,i){Bc=n[r][e],t.call(n,n.__data__,u,i)})}finally{Bc=u,Fc=i}}else G(this,function(u){var i=u[r][e];(i.event||(i.event=ho.dispatch("start","end","interrupt"))).on(t,n)});return this},Yc.transition=function(){for(var t,n,e,r,u=this.id,i=++Hc,o=this.namespace,a=[],c=0,f=this.length;c<f;c++){a.push(t=[]);for(var n=this[c],l=0,s=n.length;l<s;l++)(e=n[l])&&(r=e[o][u],uo(e,l,o,i,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),t.push(e)}return to(a,o,i)},ho.svg.axis=function(){function t(t){t.each(function(){var t,f=ho.select(this),l=this.__chart__||e,s=this.__chart__=e.copy(),h=null==c?s.ticks?s.ticks.apply(s,a):s.domain():c,d=null==n?s.tickFormat?s.tickFormat.apply(s,a):M:n,p=f.selectAll(".tick").data(h,s),g=p.enter().insert("g",".domain").attr("class","tick").style("opacity",Uo),v=ho.transition(p.exit()).style("opacity",Uo).remove(),y=ho.transition(p.order()).style("opacity",1),_=Math.max(u,0)+o,m=Zu(s),x=f.selectAll(".domain").data([0]),b=(x.enter().append("path").attr("class","domain"),ho.transition(x));g.append("line"),g.append("text");var w,k,E,N,S=g.select("line"),j=y.select("line"),C=p.select("text").text(d),A=g.select("text"),L=y.select("text"),T="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(t=io,w="x",E="y",k="x2",N="y2",C.attr("dy",T<0?"0em":".71em").style("text-anchor","middle"),b.attr("d","M"+m[0]+","+T*i+"V0H"+m[1]+"V"+T*i)):(t=oo,w="y",E="x",k="y2",N="x2",C.attr("dy",".32em").style("text-anchor",T<0?"end":"start"),b.attr("d","M"+T*i+","+m[0]+"H0V"+m[1]+"H"+T*i)),S.attr(N,T*u),A.attr(E,T*_),j.attr(k,0).attr(N,T*u),L.attr(w,0).attr(E,T*_),s.rangeBand){var O=s,R=O.rangeBand()/2;l=s=function(t){return O(t)+R}}else l.rangeBand?l=s:v.call(t,s,l);g.call(t,l,s),y.call(t,s,s)})}var n,e=ho.scale.linear(),r=Vc,u=6,i=6,o=3,a=[10],c=null;return t.scale=function(n){return arguments.length?(e=n,t):e},t.orient=function(n){return arguments.length?(r=n in $c?n+"":Vc,t):r},t.ticks=function(){return arguments.length?(a=go(arguments),t):a},t.tickValues=function(n){return arguments.length?(c=n,t):c},t.tickFormat=function(e){return arguments.length?(n=e,t):n},t.tickSize=function(n){var e=arguments.length;return e?(u=+n,i=+arguments[e-1],t):u},t.innerTickSize=function(n){return arguments.length?(u=+n,t):u},t.outerTickSize=function(n){return arguments.length?(i=+n,t):i},t.tickPadding=function(n){return arguments.length?(o=+n,t):o},t.tickSubdivide=function(){return arguments.length&&t},t};var Vc="bottom",$c={top:1,right:1,bottom:1,left:1};ho.svg.brush=function(){function t(i){i.each(function(){var i=ho.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",u).on("touchstart.brush",u),o=i.selectAll(".background").data([0]);o.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),i.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var a=i.selectAll(".resize").data(g,M);a.exit().remove(),a.enter().append("g").attr("class",function(t){return"resize "+t}).style("cursor",function(t){return Gc[t]}).append("rect").attr("x",function(t){return/[ew]$/.test(t)?-3:null}).attr("y",function(t){return/^[ns]/.test(t)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),a.style("display",t.empty()?"none":null);var c,s=ho.transition(i),h=ho.transition(o);f&&(c=Zu(f),h.attr("x",c[0]).attr("width",c[1]-c[0]),e(s)),l&&(c=Zu(l),h.attr("y",c[0]).attr("height",c[1]-c[0]),r(s)),n(s)})}function n(t){t.selectAll(".resize").attr("transform",function(t){return"translate("+s[+/e$/.test(t)]+","+h[+/^s/.test(t)]+")"})}function e(t){t.select(".extent").attr("x",s[0]),t.selectAll(".extent,.n>rect,.s>rect").attr("width",s[1]-s[0])}function r(t){t.select(".extent").attr("y",h[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",h[1]-h[0])}function u(){function u(){32==ho.event.keyCode&&(j||(m=null,L[0]-=s[1],L[1]-=h[1],j=2),C())}function g(){32==ho.event.keyCode&&2==j&&(L[0]+=s[1],L[1]+=h[1],j=0,C())}function v(){var t=ho.mouse(b),u=!1;x&&(t[0]+=x[0],t[1]+=x[1]),j||(ho.event.altKey?(m||(m=[(s[0]+s[1])/2,(h[0]+h[1])/2]),L[0]=s[+(t[0]<m[0])],L[1]=h[+(t[1]<m[1])]):m=null),N&&y(t,f,0)&&(e(k),u=!0),S&&y(t,l,1)&&(r(k),u=!0),u&&(n(k),M({type:"brush",mode:j?"move":"resize"}))}function y(t,n,e){var r,u,o=Zu(n),c=o[0],f=o[1],l=L[e],g=e?h:s,v=g[1]-g[0];if(j&&(c-=l,f-=v+l),r=(e?p:d)?Math.max(c,Math.min(f,t[e])):t[e],j?u=(r+=l)+v:(m&&(l=Math.max(c,Math.min(f,2*m[e]-r))),l<r?(u=r,r=l):u=l),g[0]!=r||g[1]!=u)return e?a=null:i=null,g[0]=r,g[1]=u,!0}function _(){v(),k.style("pointer-events","all").selectAll(".resize").style("display",t.empty()?"none":null),ho.select("body").style("cursor",null),T.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),A(),M({type:"brushend"})}var m,x,b=this,w=ho.select(ho.event.target),M=c.of(b,arguments),k=ho.select(b),E=w.datum(),N=!/^(n|s)$/.test(E)&&f,S=!/^(e|w)$/.test(E)&&l,j=w.classed("extent"),A=tt(b),L=ho.mouse(b),T=ho.select(o(b)).on("keydown.brush",u).on("keyup.brush",g);if(ho.event.changedTouches?T.on("touchmove.brush",v).on("touchend.brush",_):T.on("mousemove.brush",v).on("mouseup.brush",_),k.interrupt().selectAll("*").interrupt(),j)L[0]=s[0]-L[0],L[1]=h[0]-L[1];else if(E){var O=+/w$/.test(E),R=+/^n/.test(E);x=[s[1-O]-L[0],h[1-R]-L[1]],L[0]=s[O],L[1]=h[R]}else ho.event.altKey&&(m=L.slice());k.style("pointer-events","none").selectAll(".resize").style("display",null),ho.select("body").style("cursor",w.style("cursor")),M({type:"brushstart"}),v()}var i,a,c=L(t,"brushstart","brush","brushend"),f=null,l=null,s=[0,0],h=[0,0],d=!0,p=!0,g=Zc[0];return t.event=function(t){t.each(function(){var t=c.of(this,arguments),n={x:s,y:h,i:i,j:a},e=this.__chart__||n;this.__chart__=n,Fc?ho.select(this).transition().each("start.brush",function(){i=e.i,a=e.j,s=e.x,h=e.y,t({type:"brushstart"})}).tween("brush:brush",function(){var e=Er(s,n.x),r=Er(h,n.y);return i=a=null,function(u){s=n.x=e(u),h=n.y=r(u),t({type:"brush",mode:"resize"})}}).each("end.brush",function(){i=n.i,a=n.j,t({type:"brush",mode:"resize"}),t({type:"brushend"})}):(t({type:"brushstart"}),t({type:"brush",mode:"resize"}),t({type:"brushend"}))})},t.x=function(n){return arguments.length?(f=n,g=Zc[!f<<1|!l],t):f},t.y=function(n){return arguments.length?(l=n,g=Zc[!f<<1|!l],t):l},t.clamp=function(n){return arguments.length?(f&&l?(d=!!n[0],p=!!n[1]):f?d=!!n:l&&(p=!!n),t):f&&l?[d,p]:f?d:l?p:null},t.extent=function(n){var e,r,u,o,c;return arguments.length?(f&&(e=n[0],r=n[1],l&&(e=e[0],r=r[0]),i=[e,r],f.invert&&(e=f(e),r=f(r)),r<e&&(c=e,e=r,r=c),e==s[0]&&r==s[1]||(s=[e,r])),l&&(u=n[0],o=n[1],f&&(u=u[1],o=o[1]),a=[u,o],l.invert&&(u=l(u),o=l(o)),o<u&&(c=u,u=o,o=c),u==h[0]&&o==h[1]||(h=[u,o])),t):(f&&(i?(e=i[0],r=i[1]):(e=s[0],r=s[1],f.invert&&(e=f.invert(e),r=f.invert(r)),r<e&&(c=e,e=r,r=c))),l&&(a?(u=a[0],o=a[1]):(u=h[0],o=h[1],l.invert&&(u=l.invert(u),o=l.invert(o)),o<u&&(c=u,u=o,o=c))),f&&l?[[e,u],[r,o]]:f?[e,r]:l&&[u,o])},t.clear=function(){return t.empty()||(s=[0,0],h=[0,0],i=a=null),t},t.empty=function(){return!!f&&s[0]==s[1]||!!l&&h[0]==h[1]},ho.rebind(t,c,"on")};var Gc={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Zc=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Xc=ga.format=ba.timeFormat,Jc=Xc.utc,Kc=Jc("%Y-%m-%dT%H:%M:%S.%LZ");Xc.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?ao:Kc,ao.parse=function(t){var n=new Date(t);return isNaN(n)?null:n},ao.toString=Kc.toString,ga.second=Ht(function(t){return new va(1e3*Math.floor(t/1e3))},function(t,n){t.setTime(t.getTime()+1e3*Math.floor(n))},function(t){return t.getSeconds()}),ga.seconds=ga.second.range,ga.seconds.utc=ga.second.utc.range,ga.minute=Ht(function(t){return new va(6e4*Math.floor(t/6e4))},function(t,n){t.setTime(t.getTime()+6e4*Math.floor(n))},function(t){return t.getMinutes()}),ga.minutes=ga.minute.range,ga.minutes.utc=ga.minute.utc.range,ga.hour=Ht(function(t){var n=t.getTimezoneOffset()/60;return new va(36e5*(Math.floor(t/36e5-n)+n))},function(t,n){t.setTime(t.getTime()+36e5*Math.floor(n))},function(t){return t.getHours()}),ga.hours=ga.hour.range,ga.hours.utc=ga.hour.utc.range,ga.month=Ht(function(t){return t=ga.day(t),t.setDate(1),t},function(t,n){t.setMonth(t.getMonth()+n)},function(t){return t.getMonth()}),ga.months=ga.month.range,ga.months.utc=ga.month.utc.range;var Qc=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],tf=[[ga.second,1],[ga.second,5],[ga.second,15],[ga.second,30],[ga.minute,1],[ga.minute,5],[ga.minute,15],[ga.minute,30],[ga.hour,1],[ga.hour,3],[ga.hour,6],[ga.hour,12],[ga.day,1],[ga.day,2],[ga.week,1],[ga.month,1],[ga.month,3],[ga.year,1]],nf=Xc.multi([[".%L",function(t){return t.getMilliseconds()}],[":%S",function(t){return t.getSeconds()}],["%I:%M",function(t){return t.getMinutes()}],["%I %p",function(t){return t.getHours()}],["%a %d",function(t){return t.getDay()&&1!=t.getDate()}],["%b %d",function(t){return 1!=t.getDate()}],["%B",function(t){return t.getMonth()}],["%Y",Pn]]),ef={range:function(t,n,e){return ho.range(Math.ceil(t/e)*e,+n,e).map(fo)},floor:M,ceil:M};tf.year=ga.year,ga.scale=function(){return co(ho.scale.linear(),tf,nf)};var rf=tf.map(function(t){return[t[0].utc,t[1]]}),uf=Jc.multi([[".%L",function(t){return t.getUTCMilliseconds()}],[":%S",function(t){return t.getUTCSeconds()}],["%I:%M",function(t){return t.getUTCMinutes()}],["%I %p",function(t){return t.getUTCHours()}],["%a %d",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],["%b %d",function(t){return 1!=t.getUTCDate()}],["%B",function(t){return t.getUTCMonth()}],["%Y",Pn]]);rf.year=ga.year.utc,ga.scale.utc=function(){return co(ho.scale.linear(),rf,uf)},ho.text=Tt(function(t){return t.responseText}),ho.json=function(t,n){return Ot(t,"application/json",lo,n)},ho.html=function(t,n){return Ot(t,"text/html",so,n)},ho.xml=Tt(function(t){return t.responseXML}),this.d3=ho,r=ho,void 0!==(u="function"==typeof r?r.call(n,e,n,t):r)&&(t.exports=u)}()},function(t,n,e){var r=e(19);t.exports={Graph:r.Graph,json:e(23),alg:e(24),version:r.version}},function(t,n,e){"use strict";function r(t){this._isDirected=!f.has(t,"directed")||t.directed,this._isMultigraph=!!f.has(t,"multigraph")&&t.multigraph,this._isCompound=!!f.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=f.constant(void 0),this._defaultEdgeLabelFn=f.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[s]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function u(t,n){t[n]?t[n]++:t[n]=1}function i(t,n){--t[n]||delete t[n]}function o(t,n,e,r){var u=""+n,i=""+e;if(!t&&u>i){var o=u;u=i,i=o}return u+h+i+h+(f.isUndefined(r)?l:r)}function a(t,n,e,r){var u=""+n,i=""+e;if(!t&&u>i){var o=u;u=i,i=o}var a={v:u,w:i};return r&&(a.name=r),a}function c(t,n){return o(t,n.v,n.w,n.name)}var f=e(0);t.exports=r;var l="\0",s="\0",h="";r.prototype._nodeCount=0,r.prototype._edgeCount=0,r.prototype.isDirected=function(){return this._isDirected},r.prototype.isMultigraph=function(){return this._isMultigraph},r.prototype.isCompound=function(){return this._isCompound},r.prototype.setGraph=function(t){return this._label=t,this},r.prototype.graph=function(){return this._label},r.prototype.setDefaultNodeLabel=function(t){return f.isFunction(t)||(t=f.constant(t)),this._defaultNodeLabelFn=t,this},r.prototype.nodeCount=function(){return this._nodeCount},r.prototype.nodes=function(){return f.keys(this._nodes)},r.prototype.sources=function(){return f.filter(this.nodes(),f.bind(function(t){return f.isEmpty(this._in[t])},this))},r.prototype.sinks=function(){return f.filter(this.nodes(),f.bind(function(t){return f.isEmpty(this._out[t])},this))},r.prototype.setNodes=function(t,n){var e=arguments;return f.each(t,f.bind(function(t){e.length>1?this.setNode(t,n):this.setNode(t)},this)),this},r.prototype.setNode=function(t,n){return f.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=n),this):(this._nodes[t]=arguments.length>1?n:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=s,this._children[t]={},this._children[s][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},r.prototype.node=function(t){return this._nodes[t]},r.prototype.hasNode=function(t){return f.has(this._nodes,t)},r.prototype.removeNode=function(t){var n=this;if(f.has(this._nodes,t)){var e=function(t){n.removeEdge(n._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],f.each(this.children(t),f.bind(function(t){this.setParent(t)},this)),delete this._children[t]),f.each(f.keys(this._in[t]),e),delete this._in[t],delete this._preds[t],f.each(f.keys(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},r.prototype.setParent=function(t,n){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(f.isUndefined(n))n=s;else{n+="";for(var e=n;!f.isUndefined(e);e=this.parent(e))if(e===t)throw new Error("Setting "+n+" as parent of "+t+" would create create a cycle");this.setNode(n)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=n,this._children[n][t]=!0,this},r.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},r.prototype.parent=function(t){if(this._isCompound){var n=this._parent[t];if(n!==s)return n}},r.prototype.children=function(t){if(f.isUndefined(t)&&(t=s),this._isCompound){var n=this._children[t];if(n)return f.keys(n)}else{if(t===s)return this.nodes();if(this.hasNode(t))return[]}},r.prototype.predecessors=function(t){var n=this._preds[t];if(n)return f.keys(n)},r.prototype.successors=function(t){var n=this._sucs[t];if(n)return f.keys(n)},r.prototype.neighbors=function(t){var n=this.predecessors(t);if(n)return f.union(n,this.successors(t))},r.prototype.filterNodes=function(t){function n(t){var i=r.parent(t);return void 0===i||e.hasNode(i)?(u[t]=i,i):i in u?u[i]:n(i)}var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph()),f.each(this._nodes,f.bind(function(n,r){t(r)&&e.setNode(r,n)},this)),f.each(this._edgeObjs,f.bind(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,this.edge(t))},this));var r=this,u={};return this._isCompound&&f.each(e.nodes(),function(t){e.setParent(t,n(t))}),e},r.prototype.setDefaultEdgeLabel=function(t){return f.isFunction(t)||(t=f.constant(t)),this._defaultEdgeLabelFn=t,this},r.prototype.edgeCount=function(){return this._edgeCount},r.prototype.edges=function(){return f.values(this._edgeObjs)},r.prototype.setPath=function(t,n){var e=this,r=arguments;return f.reduce(t,function(t,u){return r.length>1?e.setEdge(t,u,n):e.setEdge(t,u),u}),this},r.prototype.setEdge=function(){var t,n,e,r,i=!1,c=arguments[0];"object"==typeof c&&null!==c&&"v"in c?(t=c.v,n=c.w,e=c.name,2===arguments.length&&(r=arguments[1],i=!0)):(t=c,n=arguments[1],e=arguments[3],arguments.length>2&&(r=arguments[2],i=!0)),t=""+t,n=""+n,f.isUndefined(e)||(e=""+e);var l=o(this._isDirected,t,n,e);if(f.has(this._edgeLabels,l))return i&&(this._edgeLabels[l]=r),this;if(!f.isUndefined(e)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(n),this._edgeLabels[l]=i?r:this._defaultEdgeLabelFn(t,n,e);var s=a(this._isDirected,t,n,e);return t=s.v,n=s.w,Object.freeze(s),this._edgeObjs[l]=s,u(this._preds[n],t),u(this._sucs[t],n),this._in[n][l]=s,this._out[t][l]=s,this._edgeCount++,this},r.prototype.edge=function(t,n,e){var r=1===arguments.length?c(this._isDirected,arguments[0]):o(this._isDirected,t,n,e);return this._edgeLabels[r]},r.prototype.hasEdge=function(t,n,e){var r=1===arguments.length?c(this._isDirected,arguments[0]):o(this._isDirected,t,n,e);return f.has(this._edgeLabels,r)},r.prototype.removeEdge=function(t,n,e){var r=1===arguments.length?c(this._isDirected,arguments[0]):o(this._isDirected,t,n,e),u=this._edgeObjs[r];return u&&(t=u.v,n=u.w,delete this._edgeLabels[r],delete this._edgeObjs[r],i(this._preds[n],t),i(this._sucs[t],n),delete this._in[n][r],delete this._out[t][r],this._edgeCount--),this},r.prototype.inEdges=function(t,n){var e=this._in[t];if(e){var r=f.values(e);return n?f.filter(r,function(t){return t.v===n}):r}},r.prototype.outEdges=function(t,n){var e=this._out[t];if(e){var r=f.values(e);return n?f.filter(r,function(t){return t.w===n}):r}},r.prototype.nodeEdges=function(t,n){var e=this.inEdges(t,n);if(e)return e.concat(this.outEdges(t,n))}},function(t,n,e){"use strict";function r(t,n,e,r){var u=t.x,i=t.y,o=u-r.x,a=i-r.y,c=Math.sqrt(n*n*a*a+e*e*o*o),f=Math.abs(n*e*o/c);r.x<u&&(f=-f);var l=Math.abs(n*e*a/c);return r.y<i&&(l=-l),{x:u+f,y:i+l}}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function u(t,n,e){var r=n.label,u=t.append("g");"svg"===n.labelType?(0,l.default)(u,n):"string"!=typeof r||"html"===n.labelType?(0,c.default)(u,n):(0,o.default)(u,n);var i=u.node().getBBox(),a=void 0;switch(e){case"top":a=-n.height/2;break;case"bottom":a=n.height/2-i.height;break;default:a=-i.height/2}return u.attr("transform","translate("+-i.width/2+","+a+")"),u}Object.defineProperty(n,"__esModule",{value:!0});var i=e(40),o=r(i),a=e(41),c=r(a),f=e(42),l=r(f);n.default=u},function(t,n,e){function r(t,n,e,r){return u(t,String(n),e||a,r||function(n){return t.outEdges(n)})}function u(t,n,e,r){var u,i,a={},c=new o,f=function(t){var n=t.v!==u?t.v:t.w,r=a[n],o=e(t),f=i.distance+o;if(o<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+o);f<r.distance&&(r.distance=f,r.predecessor=u,c.decrease(n,f))};for(t.nodes().forEach(function(t){var e=t===n?0:Number.POSITIVE_INFINITY;a[t]={distance:e},c.add(t,e)});c.size()>0&&(u=c.removeMin(),i=a[u],i.distance!==Number.POSITIVE_INFINITY);)r(u).forEach(f);return a}var i=e(0),o=e(9);t.exports=r;var a=i.constant(1)},function(t,n,e){function r(){this._arr=[],this._keyIndices={}}var u=e(0);t.exports=r,r.prototype.size=function(){return this._arr.length},r.prototype.keys=function(){return this._arr.map(function(t){return t.key})},r.prototype.has=function(t){return u.has(this._keyIndices,t)},r.prototype.priority=function(t){var n=this._keyIndices[t];if(void 0!==n)return this._arr[n].priority},r.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},r.prototype.add=function(t,n){var e=this._keyIndices;if(t=String(t),!u.has(e,t)){var r=this._arr,i=r.length;return e[t]=i,r.push({key:t,priority:n}),this._decrease(i),!0}return!1},r.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},r.prototype.decrease=function(t,n){var e=this._keyIndices[t];if(n>this._arr[e].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[e].priority+" New: "+n);this._arr[e].priority=n,this._decrease(e)},r.prototype._heapify=function(t){var n=this._arr,e=2*t,r=e+1,u=t;e<n.length&&(u=n[e].priority<n[u].priority?e:u,r<n.length&&(u=n[r].priority<n[u].priority?r:u),u!==t&&(this._swap(t,u),this._heapify(u)))},r.prototype._decrease=function(t){for(var n,e=this._arr,r=e[t].priority;0!==t&&(n=t>>1,!(e[n].priority<r));)this._swap(t,n),t=n},r.prototype._swap=function(t,n){var e=this._arr,r=this._keyIndices,u=e[t],i=e[n];e[t]=i,e[n]=u,r[i.key]=t,r[u.key]=n}},function(t,n,e){function r(t){function n(a){var c=i[a]={onStack:!0,lowlink:e,index:e++};if(r.push(a),t.successors(a).forEach(function(t){u.has(i,t)?i[t].onStack&&(c.lowlink=Math.min(c.lowlink,i[t].index)):(n(t),c.lowlink=Math.min(c.lowlink,i[t].lowlink))}),c.lowlink===c.index){var f,l=[];do{f=r.pop(),i[f].onStack=!1,l.push(f)}while(a!==f);o.push(l)}}var e=0,r=[],i={},o=[];return t.nodes().forEach(function(t){u.has(i,t)||n(t)}),o}var u=e(0);t.exports=r},function(t,n,e){function r(t){function n(a){if(i.has(r,a))throw new u;i.has(e,a)||(r[a]=!0,e[a]=!0,i.each(t.predecessors(a),n),delete r[a],o.push(a))}var e={},r={},o=[];if(i.each(t.sinks(),n),i.size(e)!==t.nodeCount())throw new u;return o}function u(){}var i=e(0);t.exports=r,r.CycleException=u},function(t,n,e){function r(t,n,e){i.isArray(n)||(n=[n]);var r=(t.isDirected()?t.successors:t.neighbors).bind(t),o=[],a={};return i.each(n,function(n){if(!t.hasNode(n))throw new Error("Graph does not have node: "+n);u(t,n,"post"===e,a,r,o)}),o}function u(t,n,e,r,o,a){i.has(r,n)||(r[n]=!0,e||a.push(n),i.each(o(n),function(n){u(t,n,e,r,o,a)}),e&&a.push(n))}var i=e(0);t.exports=r},function(t,n,e){!function(n,r){t.exports=r(e(2),e(4))}(0,function(t,n){return function(t){function n(r){if(e[r])return e[r].exports;var u=e[r]={i:r,l:!1,exports:{}};return t[r].call(u.exports,u,u.exports,n),u.l=!0,u.exports}var e={};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,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=5)}([function(t,n){t.exports=e(2)},function(t,n,e){"use strict";function r(t,n,e,r){var u=void 0;do{u=_.default.uniqueId(r)}while(t.hasNode(u));return e.dummy=n,t.setNode(u,e),u}function u(t){var n=(new m.Graph).setGraph(t.graph());return _.default.each(t.nodes(),function(e){n.setNode(e,t.node(e))}),_.default.each(t.edges(),function(e){var r=n.edge(e.v,e.w)||{weight:0,minlen:1},u=t.edge(e);n.setEdge(e.v,e.w,{weight:r.weight+u.weight,minlen:Math.max(r.minlen,u.minlen)})}),n}function i(t){var n=new m.Graph({multigraph:t.isMultigraph()}).setGraph(t.graph());return _.default.each(t.nodes(),function(e){t.children(e).length||n.setNode(e,t.node(e))}),_.default.each(t.edges(),function(e){n.setEdge(e,t.edge(e))}),n}function o(t){var n=_.default.map(t.nodes(),function(n){var e={};return _.default.each(t.outEdges(n),function(n){e[n.w]=(e[n.w]||0)+t.edge(n).weight}),e});return _.default.zipObject(t.nodes(),n)}function a(t){var n=_.default.map(t.nodes(),function(n){var e={};return _.default.each(t.inEdges(n),function(n){e[n.v]=(e[n.v]||0)+t.edge(n).weight}),e});return _.default.zipObject(t.nodes(),n)}function c(t,n){var e=t.x,r=t.y,u=n.x-e,i=n.y-r,o=t.width/2,a=t.height/2;if(!u&&!i)throw new Error("Not possible to find intersection inside of the rectangle");var c=void 0,f=void 0;return Math.abs(i)*o>Math.abs(u)*a?(i<0&&(a=-a),c=a*u/i,f=a):(u<0&&(o=-o),c=o,f=o*i/u),{x:e+c,y:r+f}}function f(t){var n=_.default.map(_.default.range(d(t)+1),function(){return[]});return _.default.each(t.nodes(),function(e){var r=t.node(e),u=r.rank;_.default.isUndefined(u)||(n[u][r.order]=e)}),n}function l(t){var n=_.default.min(_.default.map(t.nodes(),function(n){return t.node(n).rank}));_.default.each(t.nodes(),function(e){var r=t.node(e);_.default.has(r,"rank")&&(r.rank-=n)})}function s(t){var n=_.default.min(_.default.map(t.nodes(),function(n){return t.node(n).rank})),e=[];_.default.each(t.nodes(),function(r){var u=t.node(r).rank-n;e[u]||(e[u]=[]),e[u].push(r)});var r=0,u=t.graph().nodeRankFactor;_.default.each(e,function(n,e){_.default.isUndefined(n)&&e%u!=0?--r:r&&_.default.each(n,function(n){t.node(n).rank+=r})})}function h(t,n,e,u){var i={width:0,height:0};return arguments.length>=4&&(i.rank=e,i.order=u),r(t,"border",i,n)}function d(t){return _.default.max(_.default.map(t.nodes(),function(n){var e=t.node(n).rank;if(!_.default.isUndefined(e))return e}))}function p(t,n){var e={lhs:[],rhs:[]};return _.default.each(t,function(t){n(t)?e.lhs.push(t):e.rhs.push(t)}),e}function g(t,n){var e=_.default.now();try{return n()}finally{console.log(t+" time: "+(_.default.now()-e)+"ms")}}function v(t,n){return n()}Object.defineProperty(n,"__esModule",{value:!0}),n.addDummyNode=r,n.simplify=u,n.asNonCompoundGraph=i,n.successorWeights=o,n.predecessorWeights=a,n.intersectRect=c,n.buildLayerMatrix=f,n.normalizeRanks=l,n.removeEmptyRanks=s,n.addBorderNode=h,n.maxRank=d,n.partition=p,n.time=g,n.notime=v;var y=e(0),_=function(t){return t&&t.__esModule?t:{default:t}}(y),m=e(2);n.default={addDummyNode:r,simplify:u,asNonCompoundGraph:i,successorWeights:o,predecessorWeights:a,intersectRect:c,buildLayerMatrix:f,normalizeRanks:l,removeEmptyRanks:s,addBorderNode:h,maxRank:d,partition:p,time:g,notime:v}},function(t,n){t.exports=e(4)},function(t,n,e){"use strict";function r(t){function n(r){var u=t.node(r);if(o.default.has(e,r))return u.rank;e[r]=!0;var i=o.default.min(o.default.map(t.outEdges(r),function(e){return n(e.w)-t.edge(e).minlen}))||0;return u.rank=i}var e={};o.default.each(t.sources(),n)}function u(t,n){return t.node(n.w).rank-t.node(n.v).rank-t.edge(n).minlen}Object.defineProperty(n,"__esModule",{value:!0}),n.longestPath=r,n.slack=u;var i=e(0),o=function(t){return t&&t.__esModule?t:{default:t}}(i);n.default={longestPath:r,slack:u}},function(t,n,e){"use strict";function r(t){var n=new f.Graph({directed:!1}),e=t.nodes()[0],r=t.nodeCount();n.setNode(e,{});for(var a=void 0,c=void 0;u(n,t)<r;)a=i(n,t),c=n.hasNode(a.v)?(0,l.slack)(t,a):-(0,l.slack)(t,a),o(n,t,c);return n}function u(t,n){function e(r){c.default.each(n.nodeEdges(r),function(u){var i=u.v,o=r===i?u.w:i;t.hasNode(o)||(0,l.slack)(n,u)||(t.setNode(o,{}),t.setEdge(r,o,{}),e(o))})}return c.default.each(t.nodes(),e),t.nodeCount()}function i(t,n){return c.default.minBy(n.edges(),function(e){if(t.hasNode(e.v)!==t.hasNode(e.w))return(0,l.slack)(n,e)})}function o(t,n,e){c.default.each(t.nodes(),function(t){n.node(t).rank+=e})}Object.defineProperty(n,"__esModule",{value:!0});var a=e(0),c=function(t){return t&&t.__esModule?t:{default:t}}(a),f=e(2),l=e(3);n.default=r},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var u=e(2),i=r(u),o=e(6),a=r(o),c=e(28),f=r(c),l=e(1),s=r(l),h=e(29);n.default={graphlib:i.default,layout:a.default,debug:f.default,util:{time:s.default.time,notime:s.default.notime},version:h.version}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function u(t,n){var e=n&&n.debugTiming?T.default.time:T.default.notime;e("layout",function(){var n=e(" buildLayoutGraph",function(){return a(t)});e(" runLayout",function(){i(n,e)}),e(" updateInputGraph",function(){o(t,n)})})}function i(t,n){n(" makeSpaceForEdgeLabels",function(){c(t)}),n(" removeSelfEdges",function(){y(t)}),n(" acyclic",function(){N.default.run(t)}),n(" nestingGraph.run",function(){I.default.run(t)}),n(" rank",function(){(0,A.default)(T.default.asNonCompoundGraph(t))}),n(" injectEdgeLabelProxies",function(){f(t)}),n(" removeEmptyRanks",function(){(0,L.removeEmptyRanks)(t)}),n(" nestingGraph.cleanup",function(){I.default.cleanup(t)}),n(" normalizeRanks",function(){(0,L.normalizeRanks)(t)}),n(" assignRankMinMax",function(){l(t)}),n(" removeEdgeLabelProxies",function(){s(t)}),n(" normalize.run",function(){j.default.run(t)}),n(" parentDummyChains",function(){(0,R.default)(t)}),n(" addBorderSegments",function(){(0,D.default)(t)}),n(" order",function(){(0,B.default)(t)}),n(" insertSelfEdges",function(){_(t)}),n(" adjustCoordinateSystem",function(){U.default.adjust(t)}),n(" position",function(){(0,Y.default)(t)}),n(" positionSelfEdges",function(){m(t)}),n(" removeBorderNodes",function(){v(t)}),n(" normalize.undo",function(){j.default.undo(t)}),n(" fixupEdgeLabelCoords",function(){p(t)}),n(" undoCoordinateSystem",function(){U.default.undo(t)}),n(" translateGraph",function(){h(t)}),n(" assignNodeIntersects",function(){d(t)}),n(" reversePoints",function(){g(t)}),n(" acyclic.undo",function(){N.default.undo(t)})}function o(t,n){M.default.each(t.nodes(),function(e){var r=t.node(e),u=n.node(e);r&&(r.x=u.x,r.y=u.y,n.children(e).length&&(r.width=u.width,r.height=u.height))}),M.default.each(t.edges(),function(e){var r=t.edge(e),u=n.edge(e);r.points=u.points,M.default.has(u,"x")&&(r.x=u.x,r.y=u.y)}),t.graph().width=n.graph().width,t.graph().height=n.graph().height}function a(t){var n=new k.Graph({multigraph:!0,compound:!0}),e=b(t.graph());return n.setGraph(M.default.merge({},V,x(e,H),M.default.pick(e,$))),M.default.each(t.nodes(),function(e){var r=b(t.node(e));n.setNode(e,M.default.defaults(x(r,G),Z)),n.setParent(e,t.parent(e))}),M.default.each(t.edges(),function(e){var r=b(t.edge(e));n.setEdge(e,M.default.merge({},J,x(r,X),M.default.pick(r,K)))}),n}function c(t){var n=t.graph();n.ranksep/=2,M.default.each(t.edges(),function(e){var r=t.edge(e);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===n.rankdir||"BT"===n.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function f(t){M.default.each(t.edges(),function(n){var e=t.edge(n);if(e.width&&e.height){var r=t.node(n.v),u=t.node(n.w),i={rank:(u.rank-r.rank)/2+r.rank,e:n};T.default.addDummyNode(t,"edge-proxy",i,"_ep")}})}function l(t){var n=0;M.default.each(t.nodes(),function(e){var r=t.node(e);r.borderTop&&(r.minRank=t.node(r.borderTop).rank,r.maxRank=t.node(r.borderBottom).rank,n=Math.max(n,r.maxRank))}),t.graph().maxRank=n}function s(t){M.default.each(t.nodes(),function(n){var e=t.node(n);"edge-proxy"===e.dummy&&(t.edge(e.e).labelRank=e.rank,t.removeNode(n))})}function h(t){function n(t){var n=t.x,o=t.y,a=t.width,c=t.height;e=Math.min(e,n-a/2),r=Math.max(r,n+a/2),u=Math.min(u,o-c/2),i=Math.max(i,o+c/2)}var e=Number.POSITIVE_INFINITY,r=0,u=Number.POSITIVE_INFINITY,i=0,o=t.graph(),a=o.marginx||0,c=o.marginy||0;M.default.each(t.nodes(),function(e){n(t.node(e))}),M.default.each(t.edges(),function(e){var r=t.edge(e);M.default.has(r,"x")&&n(r)}),e-=a,u-=c,M.default.each(t.nodes(),function(n){var r=t.node(n);r.x-=e,r.y-=u}),M.default.each(t.edges(),function(n){var r=t.edge(n);M.default.each(r.points,function(t){t.x-=e,t.y-=u}),M.default.has(r,"x")&&(r.x-=e),M.default.has(r,"y")&&(r.y-=u)}),o.width=r-e+a,o.height=i-u+c}function d(t){M.default.each(t.edges(),function(n){var e=t.edge(n),r=t.node(n.v),u=t.node(n.w),i=null,o=null;e.points?(i=e.points[0],o=e.points[e.points.length-1]):(e.points=[],i=u,o=r),e.points.unshift(T.default.intersectRect(r,i)),e.points.push(T.default.intersectRect(u,o))})}function p(t){M.default.each(t.edges(),function(n){var e=t.edge(n);if(M.default.has(e,"x"))switch("l"!==e.labelpos&&"r"!==e.labelpos||(e.width-=e.labeloffset),e.labelpos){case"l":e.x-=e.width/2+e.labeloffset;break;case"r":e.x+=e.width/2+e.labeloffset}})}function g(t){M.default.each(t.edges(),function(n){var e=t.edge(n);e.reversed&&e.points.reverse()})}function v(t){M.default.each(t.nodes(),function(n){if(t.children(n).length){var e=t.node(n),r=t.node(e.borderTop),u=t.node(e.borderBottom),i=t.node(M.default.last(e.borderLeft)),o=t.node(M.default.last(e.borderRight));e.width=Math.abs(o.x-i.x),e.height=Math.abs(u.y-r.y),e.x=i.x+e.width/2,e.y=r.y+e.height/2}}),M.default.each(t.nodes(),function(n){"border"===t.node(n).dummy&&t.removeNode(n)})}function y(t){M.default.each(t.edges(),function(n){if(n.v===n.w){var e=t.node(n.v);e.selfEdges||(e.selfEdges=[]),e.selfEdges.push({e:n,label:t.edge(n)}),t.removeEdge(n)}})}function _(t){var n=T.default.buildLayerMatrix(t);M.default.each(n,function(n){var e=0;M.default.each(n,function(n,r){var u=t.node(n);u.order=r+e,M.default.each(u.selfEdges,function(n){T.default.addDummyNode(t,"selfedge",{width:n.label.width,height:n.label.height,rank:u.rank,order:r+ ++e,e:n.e,label:n.label},"_se")}),delete u.selfEdges})})}function m(t){M.default.each(t.nodes(),function(n){var e=t.node(n);if("selfedge"===e.dummy){var r=t.node(e.e.v),u=r.x+r.width/2,i=r.y,o=e.x-u,a=r.height/2;t.setEdge(e.e,e.label),t.removeNode(n),e.label.points=[{x:u+2*o/3,y:i-a},{x:u+5*o/6,y:i-a},{x:u+o,y:i},{x:u+5*o/6,y:i+a},{x:u+2*o/3,y:i+a}],e.label.x=e.x,e.label.y=e.y}})}function x(t,n){return M.default.mapValues(M.default.pick(t,n),Number)}function b(t){var n={};return M.default.each(t,function(t,e){n[e.toLowerCase()]=t}),n}Object.defineProperty(n,"__esModule",{value:!0});var w=e(0),M=r(w),k=e(2),E=e(7),N=r(E),S=e(10),j=r(S),C=e(11),A=r(C),L=e(1),T=r(L),O=e(13),R=r(O),P=e(14),I=r(P),z=e(15),D=r(z),q=e(16),U=r(q),F=e(17),B=r(F),W=e(26),Y=r(W),H=["nodesep","edgesep","ranksep","marginx","marginy"],V={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},$=["acyclicer","ranker","rankdir","align"],G=["width","height"],Z={width:0,height:0},X=["minlen","weight","width","height","labeloffset"],J={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},K=["labelpos"];n.default=u},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function u(t){var n="greedy"===t.graph().acyclicer?(0,l.default)(t,function(t){return function(n){return t.edge(n).weight}}(t)):i(t);c.default.each(n,function(n){var e=t.edge(n);t.removeEdge(n),e.forwardName=n.name,e.reversed=!0,t.setEdge(n.w,n.v,e,c.default.uniqueId("rev"))})}function i(t){function n(i){c.default.has(u,i)||(u[i]=!0,r[i]=!0,c.default.each(t.outEdges(i),function(t){c.default.has(r,t.w)?e.push(t):n(t.w)}),delete r[i])}var e=[],r={},u={};return c.default.each(t.nodes(),n),e}function o(t){c.default.each(t.edges(),function(n){var e=t.edge(n);if(e.reversed){t.removeEdge(n);var r=e.forwardName;delete e.reversed,delete e.forwardName,t.setEdge(n.w,n.v,e,r)}})}Object.defineProperty(n,"__esModule",{value:!0});var a=e(0),c=r(a),f=e(8),l=r(f);n.default={run:u,undo:o}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function u(t,n){if(t.nodeCount()<=1)return[];var e=a(t,n||p),r=i(e.graph,e.buckets,e.zeroIdx);return l.default.flatten(l.default.map(r,function(n){return t.outEdges(n.v,n.w)}),!0)}function i(t,n,e){for(var r=[],u=n[n.length-1],i=n[0],a=void 0;t.nodeCount();){for(;a=i.dequeue();)o(t,n,e,a);for(;a=u.dequeue();)o(t,n,e,a);if(t.nodeCount())for(var c=n.length-2;c>0;--c)if(a=n[c].dequeue()){r=r.concat(o(t,n,e,a,!0));break}}return r}function o(t,n,e,r,u){var i=u?[]:void 0;return l.default.each(t.inEdges(r.v),function(r){var o=t.edge(r),a=t.node(r.v);u&&i.push({v:r.v,w:r.w}),a.out-=o,c(n,e,a)}),l.default.each(t.outEdges(r.v),function(r){var u=t.edge(r),i=r.w,o=t.node(i);o.in-=u,c(n,e,o)}),t.removeNode(r.v),i}function a(t,n){var e=new s.Graph,r=0,u=0;l.default.each(t.nodes(),function(t){e.setNode(t,{v:t,in:0,out:0})}),l.default.each(t.edges(),function(t){var i=e.edge(t.v,t.w)||0,o=n(t),a=i+o;e.setEdge(t.v,t.w,a),u=Math.max(u,e.node(t.v).out+=o),r=Math.max(r,e.node(t.w).in+=o)});var i=l.default.range(u+r+3).map(function(){return new d.default}),o=r+1;return l.default.each(e.nodes(),function(t){c(i,o,e.node(t))}),{graph:e,buckets:i,zeroIdx:o}}function c(t,n,e){e.out?e.in?t[e.out-e.in+n].enqueue(e):t[t.length-1].enqueue(e):t[0].enqueue(e)}Object.defineProperty(n,"__esModule",{value:!0});var f=e(0),l=r(f),s=e(2),h=e(9),d=r(h),p=l.default.constant(1);n.default=u},function(t,n,e){"use strict";function r(){var t={};t._next=t._prev=t,this._sentinel=t}function u(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function i(t,n){if("_next"!==t&&"_prev"!==t)return n}Object.defineProperty(n,"__esModule",{value:!0}),r.prototype.dequeue=function(){var t=this._sentinel,n=t._prev;if(n!==t)return u(n),n},r.prototype.enqueue=function(t){var n=this._sentinel;t._prev&&t._next&&u(t),t._next=n._next,n._next._prev=t,n._next=t,t._prev=n},r.prototype.toString=function(){for(var t=[],n=this._sentinel,e=n._prev;e!==n;)t.push(JSON.stringify(e,i)),e=e._prev;return"["+t.join(", ")+"]"},n.default=r},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function u(t){t.graph().dummyChains=[],c.default.each(t.edges(),function(n){i(t,n)})}function i(t,n){var e=n.v,r=t.node(e).rank,u=n.w,i=t.node(u).rank,o=n.name,a=t.edge(n),c=a.labelRank;if(i!==r+1){t.removeEdge(n);var f=void 0,s=void 0,h=void 0;for(h=0,++r;r<i;++h,++r)a.points=[],s={width:0,height:0,edgeLabel:a,edgeObj:n,rank:r},f=l.default.addDummyNode(t,"edge",s,"_d"),r===c&&(s.width=a.width,s.height=a.height,s.dummy="edge-label",s.labelpos=a.labelpos),t.setEdge(e,f,{weight:a.weight},o),0===h&&t.graph().dummyChains.push(f),e=f;t.setEdge(e,u,{weight:a.weight},o)}}function o(t){c.default.each(t.graph().dummyChains,function(n){var e=t.node(n),r=e.edgeLabel,u=null;for(t.setEdge(e.edgeObj,r);e.dummy;)u=t.successors(n)[0],t.removeNode(n),r.points.push({x:e.x,y:e.y}),"edge-label"===e.dummy&&(r.x=e.x,r.y=e.y,r.width=e.width,r.height=e.height),n=u,e=t.node(n)})}Object.defineProperty(n,"__esModule",{value:!0});var a=e(0),c=r(a),f=e(1),l=r(f);n.default={run:u,undo:o}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function u(t){switch(t.graph().ranker){case"network-simplex":o(t);break;case"tight-tree":i(t);break;case"longest-path":h(t);break;default:o(t)}}function i(t){(0,a.longestPath)(t),(0,f.default)(t)}function o(t){(0,s.default)(t)}Object.defineProperty(n,"__esModule",{value:!0});var a=e(3),c=e(4),f=r(c),l=e(12),s=r(l),h=a.longestPath;n.default=u},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function u(t){t=(0,w.simplify)(t),(0,b.longestPath)(t);var n=(0,x.default)(t);c(n),i(n,t);for(var e=void 0,r=void 0;e=l(n);)r=s(n,t,e),h(n,t,e,r)}function i(t,n){var e=k(t,t.nodes());e=e.slice(0,e.length-1),y.default.each(e,function(e){o(t,n,e)})}function o(t,n,e){var r=t.node(e),u=r.parent;t.edge(e,u).cutvalue=a(t,n,e)}function a(t,n,e){var r=t.node(e),u=r.parent,i=!0,o=n.edge(e,u),a=0;return o||(i=!1,o=n.edge(u,e)),a=o.weight,y.default.each(n.nodeEdges(e),function(r){var o=r.v===e,c=o?r.w:r.v;if(c!==u){var f=o===i,l=n.edge(r).weight;if(a+=f?l:-l,p(t,e,c)){var s=t.edge(e,c).cutvalue;a+=f?-s:s}}}),a}function c(t,n){arguments.length<2&&(n=t.nodes()[0]),f(t,{},1,n)}function f(t,n,e,r,u){var i=e,o=t.node(r);return n[r]=!0,y.default.each(t.neighbors(r),function(u){y.default.has(n,u)||(e=f(t,n,e,u,r))}),o.low=i,o.lim=e++,u?o.parent=u:delete o.parent,e}function l(t){return y.default.find(t.edges(),function(n){return t.edge(n).cutvalue<0})}function s(t,n,e){var r=e.v,u=e.w;n.hasEdge(r,u)||(r=e.w,u=e.v);var i=t.node(r),o=t.node(u),a=i,c=!1;i.lim>o.lim&&(a=o,c=!0);var f=y.default.filter(n.edges(),function(n){return c===g(t,t.node(n.v),a)&&c!==g(t,t.node(n.w),a)});return y.default.minBy(f,function(t){return(0,b.slack)(n,t)})}function h(t,n,e,r){var u=e.v,o=e.w;t.removeEdge(u,o),t.setEdge(r.v,r.w,{}),c(t),i(t,n),d(t,n)}function d(t,n){var e=y.default.find(t.nodes(),function(t){return!n.node(t).parent}),r=M(t,e);r=r.slice(1),y.default.each(r,function(e){var r=t.node(e).parent,u=n.edge(e,r),i=!1;u||(u=n.edge(r,e),i=!0),n.node(e).rank=n.node(r).rank+(i?u.minlen:-u.minlen)})}function p(t,n,e){return t.hasEdge(n,e)}function g(t,n,e){return e.low<=n.lim&&n.lim<=e.lim}Object.defineProperty(n,"__esModule",{value:!0});var v=e(0),y=r(v),_=e(2),m=e(4),x=r(m),b=e(3),w=e(1),M=_.alg.preorder,k=_.alg.postorder;u.initLowLimValues=c,u.initCutValues=i,u.calcCutValue=a,u.leaveEdge=l,u.enterEdge=s,u.exchangeEdges=h,n.default=u},function(t,n,e){"use strict";function r(t){var n=i(t);a.default.each(t.graph().dummyChains,function(e){for(var r=t.node(e),i=r.edgeObj,o=u(t,n,i.v,i.w),a=o.path,c=o.lca,f=0,l=a[f],s=!0;e!==i.w;){if(r=t.node(e),s){for(;(l=a[f])!==c&&t.node(l).maxRank<r.rank;)f++;l===c&&(s=!1)}if(!s){for(;f<a.length-1&&t.node(l=a[f+1]).minRank<=r.rank;)f++;l=a[f]}t.setParent(e,l),e=t.successors(e)[0]}})}function u(t,n,e,r){var u=[],i=[],o=Math.min(n[e].low,n[r].low),a=Math.max(n[e].lim,n[r].lim),c=void 0,f=void 0;c=e;do{c=t.parent(c),u.push(c)}while(c&&(n[c].low>o||a>n[c].lim));for(f=c,c=r;(c=t.parent(c))!==f;)i.push(c);return{path:u.concat(i.reverse()),lca:f}}function i(t){function n(u){var i=r;a.default.each(t.children(u),n),e[u]={low:i,lim:r++}}var e={},r=0;return a.default.each(t.children(),n),e}Object.defineProperty(n,"__esModule",{value:!0});var o=e(0),a=function(t){return t&&t.__esModule?t:{default:t}}(o);n.default=r},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function u(t){var n=h.default.addDummyNode(t,"root",{},"_root"),e=o(t),r=l.default.max(l.default.values(e))-1,u=2*r+1;t.graph().nestingRoot=n,l.default.each(t.edges(),function(n){t.edge(n).minlen*=u});var c=a(t)+1;l.default.each(t.children(),function(o){i(t,n,u,c,r,e,o)}),t.graph().nodeRankFactor=u}function i(t,n,e,r,u,o,a){var c=t.children(a);if(!c.length)return void(a!==n&&t.setEdge(n,a,{weight:0,minlen:e}));var f=h.default.addBorderNode(t,"_bt"),s=h.default.addBorderNode(t,"_bb"),d=t.node(a);t.setParent(f,a),d.borderTop=f,t.setParent(s,a),d.borderBottom=s,l.default.each(c,function(c){i(t,n,e,r,u,o,c);var l=t.node(c),h=l.borderTop?l.borderTop:c,d=l.borderBottom?l.borderBottom:c,p=l.borderTop?r:2*r,g=h!==d?1:u-o[a]+1;t.setEdge(f,h,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(d,s,{weight:p,minlen:g,nestingEdge:!0})}),t.parent(a)||t.setEdge(n,f,{weight:0,minlen:u+o[a]})}function o(t){function n(r,u){var i=t.children(r);i&&i.length&&l.default.each(i,function(t){n(t,u+1)}),e[r]=u}var e={};return l.default.each(t.children(),function(t){n(t,1)}),e}function a(t){return l.default.reduce(t.edges(),function(n,e){return n+t.edge(e).weight},0)}function c(t){var n=t.graph();t.removeNode(n.nestingRoot),delete n.nestingRoot,l.default.each(t.edges(),function(n){t.edge(n).nestingEdge&&t.removeEdge(n)})}Object.defineProperty(n,"__esModule",{value:!0});var f=e(0),l=r(f),s=e(1),h=r(s);n.default={run:u,cleanup:c}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function u(t){function n(e){var r=t.children(e),u=t.node(e);if(r.length&&a.default.each(r,n),a.default.has(u,"minRank")){u.borderLeft=[],u.borderRight=[];for(var o=u.minRank,c=u.maxRank+1;o<c;++o)i(t,"borderLeft","_bl",e,u,o),i(t,"borderRight","_br",e,u,o)}}a.default.each(t.children(),n)}function i(t,n,e,r,u,i){var o={width:0,height:0,rank:i,borderType:n},a=u[n][i-1],c=f.default.addDummyNode(t,"border",o,e);u[n][i]=c,t.setParent(c,r),a&&t.setEdge(a,c,{weight:1})}Object.defineProperty(n,"__esModule",{value:!0});var o=e(0),a=r(o),c=e(1),f=r(c);n.default=u},function(t,n,e){"use strict";function r(t){var n=t.graph().rankdir.toLowerCase();"lr"!==n&&"rl"!==n||i(t)}function u(t){var n=t.graph().rankdir.toLowerCase();"bt"!==n&&"rl"!==n||a(t),"lr"!==n&&"rl"!==n||(f(t),i(t))}function i(t){h.default.each(t.nodes(),function(n){o(t.node(n))}),h.default.each(t.edges(),function(n){o(t.edge(n))})}function o(t){var n=t.width;t.width=t.height,t.height=n}function a(t){h.default.each(t.nodes(),function(n){c(t.node(n))}),h.default.each(t.edges(),function(n){var e=t.edge(n);h.default.each(e.points,c),h.default.has(e,"y")&&c(e)})}function c(t){t.y=-t.y}function f(t){h.default.each(t.nodes(),function(n){l(t.node(n))}),h.default.each(t.edges(),function(n){var e=t.edge(n);h.default.each(e.points,l),h.default.has(e,"x")&&l(e)})}function l(t){var n=t.x;t.x=t.y,t.y=n}Object.defineProperty(n,"__esModule",{value:!0});var s=e(0),h=function(t){return t&&t.__esModule?t:{default:t}}(s);n.default={adjust:r,undo:u}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function u(t){var n=w.default.maxRank(t),e=i(t,f.default.range(1,n+1),"inEdges"),r=i(t,f.default.range(n-1,-1,-1),"outEdges"),u=(0,h.default)(t);a(t,u);for(var c=Number.POSITIVE_INFINITY,l=void 0,s=0,d=0;d<4;++s,++d){o(s%2?e:r,s%4>=2),u=w.default.buildLayerMatrix(t);var g=(0,p.default)(t,u);g<c&&(d=0,l=f.default.cloneDeep(u),c=g)}a(t,l)}function i(t,n,e){return f.default.map(n,function(n){return(0,_.default)(t,n,e)})}function o(t,n){var e=new l.Graph;f.default.each(t,function(t){var r=t.graph().root,u=(0,v.default)(t,r,e,n);f.default.each(u.vs,function(n,e){t.node(n).order=e}),(0,x.default)(t,e,u.vs)})}function a(t,n){f.default.each(n,function(n){f.default.each(n,function(n,e){t.node(n).order=e})})}Object.defineProperty(n,"__esModule",{value:!0});var c=e(0),f=r(c),l=e(2),s=e(18),h=r(s),d=e(19),p=r(d),g=e(20),v=r(g),y=e(24),_=r(y),m=e(25),x=r(m),b=e(1),w=r(b);n.default=u},function(t,n,e){"use strict";function r(t){function n(r){if(!i.default.has(e,r)){e[r]=!0;var u=t.node(r);o[u.rank].push(r),i.default.each(t.successors(r),n)}}var e={},r=i.default.filter(t.nodes(),function(n){return!t.children(n).length}),u=i.default.max(i.default.map(r,function(n){return t.node(n).rank})),o=i.default.map(i.default.range(u+1),function(){return[]}),a=i.default.sortBy(r,function(n){return t.node(n).rank});return i.default.each(a,n),o}Object.defineProperty(n,"__esModule",{value:!0});var u=e(0),i=function(t){return t&&t.__esModule?t:{default:t}}(u);n.default=r},function(t,n,e){"use strict";function r(t,n){for(var e=0,r=1;r<n.length;++r)e+=u(t,n[r-1],n[r]);return e}function u(t,n,e){for(var r=o.default.zipObject(e,o.default.map(e,function(t,n){return n})),u=o.default.flatten(o.default.map(n,function(n){return o.default.chain(t.outEdges(n)).map(function(n){return{pos:r[n.w],weight:t.edge(n).weight}}).sortBy("pos").value()}),!0),i=1;i<e.length;)i<<=1;var a=2*i-1;i-=1;var c=o.default.map(new Array(a),function(){return 0}),f=0;return o.default.each(u.forEach(function(t){var n=t.pos+i;c[n]+=t.weight;for(var e=0;n>0;)n%2&&(e+=c[n+1]),n=n-1>>1,c[n]+=t.weight;f+=t.weight*e})),f}Object.defineProperty(n,"__esModule",{value:!0});var i=e(0),o=function(t){return t&&t.__esModule?t:{default:t}}(i);n.default=r},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function u(t,n,e,r){var a=t.children(n),f=t.node(n),s=f?f.borderLeft:void 0,d=f?f.borderRight:void 0,g={};s&&(a=c.default.filter(a,function(t){return t!==s&&t!==d}));var v=(0,l.default)(t,a);c.default.each(v,function(n){if(t.children(n.v).length){var i=u(t,n.v,e,r);g[n.v]=i,c.default.has(i,"barycenter")&&o(n,i)}});var y=(0,h.default)(v,e);i(y,g);var _=(0,p.default)(y,r);if(s&&(_.vs=c.default.flatten([s,_.vs,d],!0),t.predecessors(s).length)){var m=t.node(t.predecessors(s)[0]),x=t.node(t.predecessors(d)[0]);c.default.has(_,"barycenter")||(_.barycenter=0,_.weight=0),_.barycenter=(_.barycenter*_.weight+m.order+x.order)/(_.weight+2),_.weight+=2}return _}function i(t,n){c.default.each(t,function(t){t.vs=c.default.flatten(t.vs.map(function(t){return n[t]?n[t].vs:t}),!0)})}function o(t,n){c.default.isUndefined(t.barycenter)?(t.barycenter=n.barycenter,t.weight=n.weight):(t.barycenter=(t.barycenter*t.weight+n.barycenter*n.weight)/(t.weight+n.weight),t.weight+=n.weight)}Object.defineProperty(n,"__esModule",{value:!0});var a=e(0),c=r(a),f=e(21),l=r(f),s=e(22),h=r(s),d=e(23),p=r(d);n.default=u},function(t,n,e){"use strict";function r(t,n){return i.default.map(n,function(n){var e=t.inEdges(n);if(e.length){var r=i.default.reduce(e,function(n,e){var r=t.edge(e),u=t.node(e.v);return{sum:n.sum+r.weight*u.order,weight:n.weight+r.weight}},{sum:0,weight:0});return{v:n,barycenter:r.sum/r.weight,weight:r.weight}}return{v:n}})}Object.defineProperty(n,"__esModule",{value:!0});var u=e(0),i=function(t){return t&&t.__esModule?t:{default:t}}(u);n.default=r},function(t,n,e){"use strict";function r(t,n){var e={};return a.default.each(t,function(t,n){var r=e[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:n};a.default.isUndefined(t.barycenter)||(r.barycenter=t.barycenter,r.weight=t.weight)}),a.default.each(n.edges(),function(t){var n=e[t.v],r=e[t.w];a.default.isUndefined(n)||a.default.isUndefined(r)||(r.indegree++,n.out.push(e[t.w]))}),u(a.default.filter(e,function(t){return!t.indegree}))}function u(t){for(var n=[];t.length;){var e=t.pop();n.push(e),a.default.each(e.in.reverse(),function(t){return function(n){n.merged||(a.default.isUndefined(n.barycenter)||a.default.isUndefined(t.barycenter)||n.barycenter>=t.barycenter)&&i(t,n)}}(e)),a.default.each(e.out,function(n){return function(e){e.in.push(n),0==--e.indegree&&t.push(e)}}(e))}return a.default.chain(n).filter(function(t){return!t.merged}).map(function(t){return a.default.pick(t,["vs","i","barycenter","weight"])}).value()}function i(t,n){var e=0,r=0;t.weight&&(e+=t.barycenter*t.weight,r+=t.weight),n.weight&&(e+=n.barycenter*n.weight,r+=n.weight),t.vs=n.vs.concat(t.vs),t.barycenter=e/r,t.weight=r,t.i=Math.min(n.i,t.i),n.merged=!0}Object.defineProperty(n,"__esModule",{value:!0});var o=e(0),a=function(t){return t&&t.__esModule?t:{default:t}}(o);n.default=r},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function u(t,n){var e=l.default.partition(t,function(t){return c.default.has(t,"barycenter")}),r=e.lhs,u=c.default.sortBy(e.rhs,function(t){return-t.i}),a=[],f=0,s=0,h=0;r.sort(o(!!n)),h=i(a,u,h),c.default.each(r,function(t){h+=t.vs.length,a.push(t.vs),f+=t.barycenter*t.weight,s+=t.weight,h=i(a,u,h)});var d={vs:c.default.flatten(a,!0)};return s&&(d.barycenter=f/s,d.weight=s),d}function i(t,n,e){for(var r=void 0;n.length&&(r=c.default.last(n)).i<=e;)n.pop(),t.push(r.vs),e++;return e}function o(t){return function(n,e){return n.barycenter<e.barycenter?-1:n.barycenter>e.barycenter?1:t?e.i-n.i:n.i-e.i}}Object.defineProperty(n,"__esModule",{value:!0});var a=e(0),c=r(a),f=e(1),l=r(f);n.default=u},function(t,n,e){"use strict";function r(t,n,e){var r=u(t),i=new a.Graph({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(function(n){return t.node(n)});return o.default.each(t.nodes(),function(u){var a=t.node(u),c=t.parent(u);(a.rank===n||a.minRank<=n&&n<=a.maxRank)&&(i.setNode(u),i.setParent(u,c||r),o.default.each(t[e](u),function(n){var e=n.v===u?n.w:n.v,r=i.edge(e,u),a=o.default.isUndefined(r)?0:r.weight;i.setEdge(e,u,{weight:t.edge(n).weight+a})}),o.default.has(a,"minRank")&&i.setNode(u,{borderLeft:a.borderLeft[n],borderRight:a.borderRight[n]}))}),i}function u(t){for(var n=void 0;t.hasNode(n=o.default.uniqueId("_root")););return n}Object.defineProperty(n,"__esModule",{value:!0});var i=e(0),o=function(t){return t&&t.__esModule?t:{default:t}}(i),a=e(2);n.default=r},function(t,n,e){"use strict";function r(t,n,e){var r={},u=void 0;i.default.each(e,function(e){for(var i=t.parent(e),o=void 0,a=void 0;i;){if(o=t.parent(i),o?(a=r[o],r[o]=i):(a=u,u=i),a&&a!==i)return void n.setEdge(a,i);i=o}})}Object.defineProperty(n,"__esModule",{value:!0});var u=e(0),i=function(t){return t&&t.__esModule?t:{default:t}}(u);n.default=r},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function u(t){t=f.default.asNonCompoundGraph(t),i(t),a.default.each((0,l.positionX)(t),function(n,e){t.node(e).x=n})}function i(t){var n=f.default.buildLayerMatrix(t),e=t.graph().ranksep,r=0;a.default.each(n,function(n){var u=a.default.max(a.default.map(n,function(n){return t.node(n).height}));a.default.each(n,function(n){t.node(n).y=r+u/2}),r+=u+e})}Object.defineProperty(n,"__esModule",{value:!0});var o=e(0),a=r(o),c=e(1),f=r(c),l=e(27);n.default=u},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function u(t,n){function e(n,e){var u=0,i=0,c=n.length,f=m.default.last(e);return m.default.each(e,function(n,l){var s=o(t,n),h=s?t.node(s).order:c;(s||n===f)&&(m.default.each(e.slice(i,l+1),function(n){m.default.each(t.predecessors(n),function(e){var i=t.node(e),o=i.order;!(o<u||h<o)||i.dummy&&t.node(n).dummy||a(r,e,n)})}),i=l+1,u=h)}),e}var r={};return m.default.reduce(n,e),r}function i(t,n){function e(n,e,r,i,o){var c=void 0;m.default.each(m.default.range(e,r),function(e){c=n[e],t.node(c).dummy&&m.default.each(t.predecessors(c),function(n){var e=t.node(n);e.dummy&&(e.order<i||e.order>o)&&a(u,n,c)})})}function r(n,r){var u=-1,i=void 0,o=0;return m.default.each(r,function(a,c){if("border"===t.node(a).dummy){var f=t.predecessors(a);f.length&&(i=t.node(f[0]).order,e(r,o,c,u,i),o=c,u=i)}e(r,o,r.length,i,n.length)}),r}var u={};return m.default.reduce(n,r),u}function o(t,n){if(t.node(n).dummy)return m.default.find(t.predecessors(n),function(n){return t.node(n).dummy})}function a(t,n,e){if(n>e){var r=n;n=e,e=r}var u=t[n];u||(t[n]=u={}),u[e]=!0}function c(t,n,e){if(n>e){var r=n;n=e,e=r}return m.default.has(t[n],e)}function f(t,n,e,r){var u={},i={},o={};return m.default.each(n,function(t){m.default.each(t,function(t,n){u[t]=t,i[t]=t,o[t]=n})}),m.default.each(n,function(t){var n=-1;m.default.each(t,function(t){var a=r(t);if(a.length){a=m.default.sortBy(a,function(t){return o[t]});for(var f=(a.length-1)/2,l=Math.floor(f),s=Math.ceil(f);l<=s;++l){var h=a[l];i[t]===t&&n<o[h]&&!c(e,t,h)&&(i[h]=t,i[t]=u[t]=u[h],n=o[h])}}})}),{root:u,align:i}}function l(t,n,e,r,u){function i(t){m.default.has(f,t)||(f[t]=!0,a[t]=m.default.reduce(c.inEdges(t),function(t,n){return i(n.v),Math.max(t,a[n.v]+c.edge(n))},0))}function o(n){if(2!==f[n]){f[n]++;var e=t.node(n),r=m.default.reduce(c.outEdges(n),function(t,n){return o(n.w),Math.min(t,a[n.w]-c.edge(n))},Number.POSITIVE_INFINITY);r!==Number.POSITIVE_INFINITY&&e.borderType!==l&&(a[n]=Math.max(a[n],r))}}var a={},c=s(t,n,e,u),f={};m.default.each(c.nodes(),i);var l=u?"borderLeft":"borderRight";return m.default.each(c.nodes(),o),m.default.each(r,function(t){a[t]=a[e[t]]}),a}function s(t,n,e,r){var u=new x.Graph,i=t.graph(),o=v(i.nodesep,i.edgesep,r);return m.default.each(n,function(n){var r=void 0;m.default.each(n,function(n){var i=e[n];if(u.setNode(i),r){var a=e[r],c=u.edge(a,i);u.setEdge(a,i,Math.max(o(t,n,r),c||0))}r=n})}),u}function h(t,n){return m.default.minBy(m.default.values(n),function(n){var e=(m.default.minBy(m.default.toPairs(n),function(n){return n[1]-y(t,n[0])/2})||["k",0])[1];return(m.default.maxBy(m.default.toPairs(n),function(n){return n[1]+y(t,n[0])/2})||["k",0])[1]-e})}function d(t,n){var e=m.default.min(m.default.values(n)),r=m.default.max(m.default.values(n));m.default.each(["u","d"],function(u){m.default.each(["l","r"],function(i){var o=u+i,a=t[o];if(a!==n){var c="l"===i?e-m.default.min(m.default.values(a)):r-m.default.max(m.default.values(a));c&&(t[o]=m.default.mapValues(a,function(t){return t+c}))}})})}function p(t,n){return m.default.mapValues(t.ul,function(e,r){if(n)return t[n.toLowerCase()][r];var u=m.default.sortBy(m.default.map(t,r));return(u[1]+u[2])/2})}function g(t){var n=w.default.buildLayerMatrix(t),e=m.default.merge(u(t,n),i(t,n)),r={},o=void 0;m.default.each(["u","d"],function(u){o="u"===u?n:m.default.values(n).reverse(),m.default.each(["l","r"],function(n){"r"===n&&(o=m.default.map(o,function(t){return m.default.values(t).reverse()}));var i=m.default.bind("u"===u?t.predecessors:t.successors,t),a=f(t,o,e,i),c=l(t,o,a.root,a.align,"r"===n);"r"===n&&(c=m.default.mapValues(c,function(t){return-t})),r[u+n]=c})});var a=h(t,r);return d(r,a),p(r,t.graph().align)}function v(t,n,e){return function(r,u,i){var o=r.node(u),a=r.node(i),c=0,f=void 0;if(c+=o.width/2,m.default.has(o,"labelpos"))switch(o.labelpos.toLowerCase()){case"l":f=-o.width/2;break;case"r":f=o.width/2}if(f&&(c+=e?f:-f),f=0,c+=(o.dummy?n:t)/2,c+=(a.dummy?n:t)/2,c+=a.width/2,m.default.has(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":f=a.width/2;break;case"r":f=-a.width/2}return f&&(c+=e?f:-f),f=0,c}}function y(t,n){return t.node(n).width}Object.defineProperty(n,"__esModule",{value:!0}),n.positionX=g;var _=e(0),m=r(_),x=e(2),b=e(1),w=r(b);n.default={positionX:g,findType1Conflicts:u,findType2Conflicts:i,addConflict:a,hasConflict:c,verticalAlignment:f,horizontalCompaction:l,alignCoordinates:d,findSmallestWidthAlignment:h,balance:p}},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function u(t){var n=f.default.buildLayerMatrix(t),e=new a.Graph({compound:!0,multigraph:!0}).setGraph({});return o.default.each(t.nodes(),function(n){e.setNode(n,{label:n}),e.setParent(n,"layer"+t.node(n).rank)}),o.default.each(t.edges(),function(t){e.setEdge(t.v,t.w,{},t.name)}),o.default.each(n,function(t,n){var r="layer"+n;e.setNode(r,{rank:"same"}),o.default.reduce(t,function(t,n){return e.setEdge(t,n,{style:"invis"}),n})}),e}Object.defineProperty(n,"__esModule",{value:!0});var i=e(0),o=r(i),a=e(2),c=e(1),f=r(c);n.default={debugOrdering:u}},function(t,n){t.exports={name:"dagre-layout",version:"0.7.9",description:"Graph layout for JavaScript",author:"Tyler Long <tyler4long@gmail.com>",main:"dist/dagre-layout.js",keywords:["graph","layout","dagre"],scripts:{lint:"standard",jest:"jest --coverage",karma:"node -r babel-register node_modules/.bin/karma start",test:"yarn lint && yarn jest && yarn karma --single-run",bench:"node -r babel-register src/bench.js",build:"node -r babel-register node_modules/.bin/webpack --progress --colors","build:watch":"yarn build --watch",upgrade:"yarn-upgrade-all"},dependencies:{graphlib:"^2.1.1",lodash:"^4.17.4"},devDependencies:{"babel-core":"^6.26.0","babel-loader":"^7.1.2","babel-preset-env":"^1.6.0","babel-preset-es2015":"^6.24.1",benchmark:"^2.1.4",chai:"^4.1.2",coveralls:"^2.13.1",jest:"^21.0.1",karma:"^1.7.1","karma-chrome-launcher":"^2.2.0","karma-firefox-launcher":"^1.0.1","karma-mocha":"^1.3.0","karma-safari-launcher":"^1.0.0",mocha:"^3.5.0",sprintf:"^0.1.5",standard:"^10.0.3",webpack:"^3.5.6","webpack-node-externals":"^1.6.0","yarn-upgrade-all":"^0.1.8"},repository:{type:"git",url:"https://github.com/tylingsoft/dagre-layout.git"},license:"MIT",files:["dist/","lib/","index.js"],standard:{ignore:["dist/**/*.js","coverage/**/*.js"]},jest:{testRegex:"test/.+?-test\\.js",testPathIgnorePatterns:["test/bundle-test\\.js"]}}}]).default})},function(t,n,e){"use strict";function r(t,n){return t.intersect(n)}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r},function(t,n,e){"use strict";function r(t,n,e){return(0,i.default)(t,n,n,e)}Object.defineProperty(n,"__esModule",{value:!0});var u=e(6),i=function(t){return t&&t.__esModule?t:{default:t}}(u);n.default=r},function(t,n,e){"use strict";function r(t,n,e){var r=t.x,u=t.y,o=[],a=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY;n.forEach(function(t){a=Math.min(a,t.x),c=Math.min(c,t.y)});for(var f=r-t.width/2-a,l=u-t.height/2-c,s=0;s<n.length;s+=1){var h=n[s],d=n[s<n.length-1?s+1:0],p=(0,i.default)(t,e,{x:f+h.x,y:l+h.y},{x:f+d.x,y:l+d.y});p&&o.push(p)}return o.length?(o.length>1&&o.sort(function(t,n){var r=t.x-e.x,u=t.y-e.y,i=Math.sqrt(r*r+u*u),o=n.x-e.x,a=n.y-e.y,c=Math.sqrt(o*o+a*a);return i<c?-1:i===c?0:1}),o[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",t),t)}Object.defineProperty(n,"__esModule",{value:!0});var u=e(34),i=function(t){return t&&t.__esModule?t:{default:t}}(u);n.default=r},function(t,n,e){"use strict";function r(t,n){var e=t.x,r=t.y,u=n.x-e,i=n.y-r,o=t.width/2,a=t.height/2,c=void 0,f=void 0;return Math.abs(i)*o>Math.abs(u)*a?(i<0&&(a=-a),c=0===i?0:a*u/i,f=a):(u<0&&(o=-o),c=o,f=0===u?0:o*i/u),{x:e+c,y:r+f}}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var u=e(3),i=r(u),o=e(4),a=r(o),c=e(13),f=r(c),l=e(33),s=r(l),h=e(35),d=r(h),p=e(1),g=r(p),v=e(48);n.default={d3:i.default,graphlib:a.default,dagre:f.default,intersect:s.default,render:d.default,util:g.default,version:v.version}},function(t,n,e){t.exports={Graph:e(5),version:e(22)}},function(t,n){var e;e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,n){t.exports="2.1.1"},function(t,n,e){function r(t){var n={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:u(t),edges:i(t)};return a.isUndefined(t.graph())||(n.value=a.clone(t.graph())),n}function u(t){return a.map(t.nodes(),function(n){var e=t.node(n),r=t.parent(n),u={v:n};return a.isUndefined(e)||(u.value=e),a.isUndefined(r)||(u.parent=r),u})}function i(t){return a.map(t.edges(),function(n){var e=t.edge(n),r={v:n.v,w:n.w};return a.isUndefined(n.name)||(r.name=n.name),a.isUndefined(e)||(r.value=e),r})}function o(t){var n=new c(t.options).setGraph(t.value);return a.each(t.nodes,function(t){n.setNode(t.v,t.value),t.parent&&n.setParent(t.v,t.parent)}),a.each(t.edges,function(t){n.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),n}var a=e(0),c=e(5);t.exports={write:r,read:o}},function(t,n,e){t.exports={components:e(25),dijkstra:e(8),dijkstraAll:e(26),findCycles:e(27),floydWarshall:e(28),isAcyclic:e(29),postorder:e(30),preorder:e(31),prim:e(32),tarjan:e(10),topsort:e(11)}},function(t,n,e){function r(t){function n(i){u.has(r,i)||(r[i]=!0,e.push(i),u.each(t.successors(i),n),u.each(t.predecessors(i),n))}var e,r={},i=[];return u.each(t.nodes(),function(t){e=[],n(t),e.length&&i.push(e)}),i}var u=e(0);t.exports=r},function(t,n,e){function r(t,n,e){return i.transform(t.nodes(),function(r,i){r[i]=u(t,i,n,e)},{})}var u=e(8),i=e(0);t.exports=r},function(t,n,e){function r(t){return u.filter(i(t),function(n){return n.length>1||1===n.length&&t.hasEdge(n[0],n[0])})}var u=e(0),i=e(10);t.exports=r},function(t,n,e){function r(t,n,e){return u(t,n||o,e||function(n){return t.outEdges(n)})}function u(t,n,e){var r={},u=t.nodes();return u.forEach(function(t){r[t]={},r[t][t]={distance:0},u.forEach(function(n){t!==n&&(r[t][n]={distance:Number.POSITIVE_INFINITY})}),e(t).forEach(function(e){var u=e.v===t?e.w:e.v,i=n(e);r[t][u]={distance:i,predecessor:t}})}),u.forEach(function(t){var n=r[t];u.forEach(function(e){var i=r[e];u.forEach(function(e){var r=i[t],u=n[e],o=i[e],a=r.distance+u.distance;a<o.distance&&(o.distance=a,o.predecessor=u.predecessor)})})}),r}var i=e(0);t.exports=r;var o=i.constant(1)},function(t,n,e){function r(t){try{u(t)}catch(t){if(t instanceof u.CycleException)return!1;throw t}return!0}var u=e(11);t.exports=r},function(t,n,e){function r(t,n){return u(t,n,"post")}var u=e(12);t.exports=r},function(t,n,e){function r(t,n){return u(t,n,"pre")}var u=e(12);t.exports=r},function(t,n,e){function r(t,n){function e(t){var e=t.v===r?t.w:t.v,u=f.priority(e);if(void 0!==u){var i=n(t);i<u&&(c[e]=r,f.decrease(e,i))}}var r,a=new i,c={},f=new o;if(0===t.nodeCount())return a;u.each(t.nodes(),function(t){f.add(t,Number.POSITIVE_INFINITY),a.setNode(t)}),f.decrease(t.nodes()[0],0);for(var l=!1;f.size()>0;){if(r=f.removeMin(),u.has(c,r))a.setEdge(r,c[r]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(r).forEach(e)}return a}var u=e(0),i=e(5),o=e(9);t.exports=r},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(n,"__esModule",{value:!0});var u=e(14),i=r(u),o=e(15),a=r(o),c=e(6),f=r(c),l=e(16),s=r(l),h=e(17),d=r(h);n.default={node:i.default,circle:a.default,ellipse:f.default,polygon:s.default,rect:d.default}},function(t,n,e){"use strict";function r(t,n,e,r){var i=n.y-t.y,o=t.x-n.x,a=n.x*t.y-t.x*n.y,c=i*e.x+o*e.y+a,f=i*r.x+o*r.y+a;if(0===c||0===f||!u(c,f)){var l=r.y-e.y,s=e.x-r.x,h=r.x*e.y-e.x*r.y,d=l*t.x+s*t.y+h,p=l*n.x+s*n.y+h;if(0===d||0===p||!u(d,p)){var g=i*s-l*o;if(0!==g){var v=Math.abs(g/2),y=o*h-s*a,_=y<0?(y-v)/g:(y+v)/g;y=l*a-i*h;return{x:_,y:y<0?(y-v)/g:(y+v)/g}}}}}function u(t,n){return t*n>0}Object.defineProperty(n,"__esModule",{value:!0}),n.default=r},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function u(){var t=_.default,n=x.default,e=w.default,r=k.default,u=N.default,c=j.default,f=function(f,s){i(s);var d=a(f,"output"),g=a(d,"clusters"),y=a(d,"edgePaths"),_=e(a(d,"edgeLabels"),s),m=t(a(d,"nodes"),s,u);(0,l.layout)(s),(0,h.default)(m,s),(0,p.default)(_,s),r(y,s,c);var x=n(g,s);(0,v.default)(x,s),o(s)};return f.createNodes=function(n){return arguments.length?(t=n,f):t},f.createClusters=function(t){return arguments.length?(n=t,f):n},f.createEdgeLabels=function(t){return arguments.length?(e=t,f):e},f.createEdgePaths=function(t){return arguments.length?(r=t,f):r},f.shapes=function(t){return arguments.length?(u=t,f):u},f.arrows=function(t){return arguments.length?(c=t,f):c},f}function i(t){t.nodes().forEach(function(n){var e=t.node(n);f.default.has(e,"label")||t.children(n).length||(e.label=n),f.default.has(e,"paddingX")&&f.default.defaults(e,{paddingLeft:e.paddingX,paddingRight:e.paddingX}),f.default.has(e,"paddingY")&&f.default.defaults(e,{paddingTop:e.paddingY,paddingBottom:e.paddingY}),f.default.has(e,"padding")&&f.default.defaults(e,{paddingLeft:e.padding,paddingRight:e.padding,paddingTop:e.padding,paddingBottom:e.padding}),f.default.defaults(e,C),f.default.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(t){e[t]=Number(e[t])}),f.default.has(e,"width")&&(e._prevWidth=e.width),f.default.has(e,"height")&&(e._prevHeight=e.height)}),t.edges().forEach(function(n){var e=t.edge(n);f.default.has(e,"label")||(e.label=""),f.default.defaults(e,A)})}function o(t){f.default.each(t.nodes(),function(n){var e=t.node(n);f.default.has(e,"_prevWidth")?e.width=e._prevWidth:delete e.width,f.default.has(e,"_prevHeight")?e.height=e._prevHeight:delete e.height,delete e._prevWidth,delete e._prevHeight})}function a(t,n){var e=t.select("g."+n);return e.empty()&&(e=t.append("g").attr("class",n)),e}Object.defineProperty(n,"__esModule",{value:!0});var c=e(2),f=r(c),l=e(13),s=e(36),h=r(s),d=e(37),p=r(d),g=e(38),v=r(g),y=e(39),_=r(y),m=e(43),x=r(m),b=e(44),w=r(b),M=e(45),k=r(M),E=e(46),N=r(E),S=e(47),j=r(S),C={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},A={arrowhead:"normal",lineInterpolate:"linear"};n.default=u},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function u(t,n){function e(t){var e=n.node(t);return"translate("+e.x+","+e.y+")"}t.filter(function(){return!o.default.select(this).classed("update")}).attr("transform",e),c.default.applyTransition(t,n).style("opacity",1).attr("transform",e)}Object.defineProperty(n,"__esModule",{value:!0});var i=e(3),o=r(i),a=e(1),c=r(a);n.default=u},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function u(t,n){function e(t){var e=n.edge(t);return c.default.has(e,"x")?"translate("+e.x+","+e.y+")":""}t.filter(function(){return!o.default.select(this).classed("update")}).attr("transform",e),l.default.applyTransition(t,n).style("opacity",1).attr("transform",e)}Object.defineProperty(n,"__esModule",{value:!0});var i=e(3),o=r(i),a=e(2),c=r(a),f=e(1),l=r(f);n.default=u},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function u(t,n){function e(t){var e=n.node(t);return"translate("+e.x+","+e.y+")"}var r=t.filter(function(){return!o.default.select(this).classed("update")});r.attr("transform",e),c.default.applyTransition(t,n).style("opacity",1).attr("transform",e),c.default.applyTransition(r.selectAll("rect"),n).attr("width",function(t){return n.node(t).width}).attr("height",function(t){return n.node(t).height}).attr("x",function(t){return-n.node(t).width/2}).attr("y",function(t){return-n.node(t).height/2})}Object.defineProperty(n,"__esModule",{value:!0});var i=e(3),o=r(i),a=e(1),c=r(a);n.default=u},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function u(t,n,e){var r=n.nodes().filter(function(t){return!h.default.isSubgraph(n,t)}),u=t.selectAll("g.node").data(r,function(t){return t}).classed("update",!0);return u.selectAll("*").remove(),u.enter().append("g").attr("class","node").style("opacity",0),u.each(function(t){var r=n.node(t),u=c.default.select(this),i=u.append("g").attr("class","label"),a=(0,l.default)(i,r),f=e[r.shape],s=o.default.pick(a.node().getBBox(),"width","height");r.elem=this,r.id&&u.attr("id",r.id),r.labelId&&i.attr("id",r.labelId),h.default.applyClass(u,r.class,(u.classed("update")?"update ":"")+"node"),o.default.has(r,"width")&&(s.width=r.width),o.default.has(r,"height")&&(s.height=r.height),s.width+=r.paddingLeft+r.paddingRight,s.height+=r.paddingTop+r.paddingBottom,i.attr("transform","translate("+(r.paddingLeft-r.paddingRight)/2+","+(r.paddingTop-r.paddingBottom)/2+")");var d=f(c.default.select(this),s,r);h.default.applyStyle(d,r.style);var p=d.node().getBBox();r.width=p.width,r.height=p.height}),h.default.applyTransition(u.exit(),n).style("opacity",0).remove(),u}Object.defineProperty(n,"__esModule",{value:!0});var i=e(2),o=r(i),a=e(3),c=r(a),f=e(7),l=r(f),s=e(1),h=r(s);n.default=u},function(t,n,e){"use strict";function r(t,n){for(var e=t.append("text"),r=u(n.label).split("\n"),i=0;i<r.length;i+=1)e.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(r[i]);return o.default.applyStyle(e,n.labelStyle),e}function u(t){for(var n="",e=!1,r=null,u=0;u<t.length;u+=1)if(r=t[u],e){switch(r){case"n":n+="\n";break;default:n+=r}e=!1}else"\\"===r?e=!0:n+=r;return n}Object.defineProperty(n,"__esModule",{value:!0});var i=e(1),o=function(t){return t&&t.__esModule?t:{default:t}}(i);n.default=r},function(t,n,e){"use strict";function r(t,n){var e=t.append("foreignObject").attr("width","100000"),r=e.append("xhtml:div");r.attr("xmlns","http://www.w3.org/1999/xhtml");var i=n.label;switch(void 0===i?"undefined":u(i)){case"function":r.insert(i);break;case"object":r.insert(function(){return i});break;default:r.html(i)}o.default.applyStyle(r,n.labelStyle),r.style("display","inline-block"),r.style("white-space","nowrap");var a=r[0][0].getBoundingClientRect();return e.attr("width",a.width).attr("height",a.height),e}Object.defineProperty(n,"__esModule",{value:!0});var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=e(1),o=function(t){return t&&t.__esModule?t:{default:t}}(i);n.default=r},function(t,n,e){"use strict";function r(t,n){var e=t;return e.node().appendChild(n.label),i.default.applyStyle(e,n.labelStyle),e}Object.defineProperty(n,"__esModule",{value:!0});var u=e(1),i=function(t){return t&&t.__esModule?t:{default:t}}(u);n.default=r},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function u(t,n){var e=n.nodes().filter(function(t){return c.default.isSubgraph(n,t)}),r=t.selectAll("g.cluster").data(e,function(t){return t});return r.selectAll("*").remove(),r.enter().append("g").attr("class","cluster").attr("id",function(t){return n.node(t).id}).style("opacity",0),c.default.applyTransition(r,n).style("opacity",1),r.each(function(t){var e=n.node(t),r=o.default.select(this);o.default.select(this).append("rect");var u=r.append("g").attr("class","label");(0,l.default)(u,e,e.clusterLabelPos)}),r.selectAll("rect").each(function(t){var e=n.node(t),r=o.default.select(this);c.default.applyStyle(r,e.style)}),c.default.applyTransition(r.exit(),n).style("opacity",0).remove(),r}Object.defineProperty(n,"__esModule",{value:!0});var i=e(3),o=r(i),a=e(1),c=r(a),f=e(7),l=r(f);n.default=u},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function u(t,n){var e=t.selectAll("g.edgeLabel").data(n.edges(),function(t){return h.default.edgeToId(t)}).classed("update",!0);return e.selectAll("*").remove(),e.enter().append("g").classed("edgeLabel",!0).style("opacity",0),e.each(function(t){var e=n.edge(t),r=(0,l.default)(o.default.select(this),n.edge(t),0,0).classed("label",!0),u=r.node().getBBox();e.labelId&&r.attr("id",e.labelId),c.default.has(e,"width")||(e.width=u.width),c.default.has(e,"height")||(e.height=u.height)}),h.default.applyTransition(e.exit(),n).style("opacity",0).remove(),e}Object.defineProperty(n,"__esModule",{value:!0});var i=e(3),o=r(i),a=e(2),c=r(a),f=e(7),l=r(f),s=e(1),h=r(s);n.default=u},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function u(t,n,e){var r=t.selectAll("g.edgePath").data(n.edges(),function(t){return y.default.edgeToId(t)}).classed("update",!0);return c(r,n),f(r,n),y.default.applyTransition(r,n).style("opacity",1),r.each(function(t){var e=s.default.select(this),r=n.edge(t);r.elem=this,r.id&&e.attr("id",r.id),y.default.applyClass(e,r.class,(e.classed("update")?"update ":"")+"edgePath")}),r.selectAll("path.path").each(function(t){var e=n.edge(t);e.arrowheadId=d.default.uniqueId("arrowhead");var r=s.default.select(this).attr("marker-end",function(){return"url(#"+e.arrowheadId+")"}).style("fill","none");y.default.applyTransition(r,n).attr("d",function(t){return i(n,t)}),y.default.applyStyle(r,e.style)}),r.selectAll("defs *").remove(),r.selectAll("defs").each(function(t){var r=n.edge(t);(0,e[r.arrowhead])(s.default.select(this),r.arrowheadId,r,"arrowhead")}),r}function i(t,n){var e=t.edge(n),r=t.node(n.v),u=t.node(n.w),i=e.points.slice(1,e.points.length-1);return i.unshift((0,g.default)(r,i[0])),i.push((0,g.default)(u,i[i.length-1])),o(e,i)}function o(t,n){var e=s.default.svg.line().x(function(t){return t.x}).y(function(t){return t.y});return d.default.has(t,"lineInterpolate")&&e.interpolate(t.lineInterpolate),d.default.has(t,"lineTension")&&e.tension(Number(t.lineTension)),e(n)}function a(t){var n=t.getBBox(),e=t.ownerSVGElement.getScreenCTM().inverse().multiply(t.getScreenCTM()).translate(n.width/2,n.height/2);return{x:e.e,y:e.f}}function c(t,n){var e=t.enter().append("g").attr("class","edgePath").style("opacity",0);e.append("path").attr("class","path").attr("d",function(t){var e=n.edge(t),r=n.node(t.v).elem;return o(e,d.default.range(e.points.length).map(function(){return a(r)}))}),e.append("defs")}function f(t,n){var e=t.exit();y.default.applyTransition(e,n).style("opacity",0).remove(),y.default.applyTransition(e.select("path.path"),n).attr("d",function(t){var e=n.node(t.v);if(e){return o({},d.default.range(this.getTotalLength()).map(function(){return e}))}return s.default.select(this).attr("d")})}Object.defineProperty(n,"__esModule",{value:!0});var l=e(3),s=r(l),h=e(2),d=r(h),p=e(14),g=r(p),v=e(1),y=r(v);n.default=u},function(t,n,e){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function u(t,n,e){var r=t.insert("rect",":first-child").attr("rx",e.rx).attr("ry",e.ry).attr("x",-n.width/2).attr("y",-n.height/2).attr("width",n.width).attr("height",n.height);return e.intersect=function(t){return(0,f.default)(e,t)},r}function i(t,n,e){var r=n.width/2,u=n.height/2,i=t.insert("ellipse",":first-child").attr("x",-n.width/2).attr("y",-n.height/2).attr("rx",r).attr("ry",u);return e.intersect=function(t){return(0,s.default)(e,r,u,t)},i}function o(t,n,e){var r=Math.max(n.width,n.height)/2,u=t.insert("circle",":first-child").attr("x",-n.width/2).attr("y",-n.height/2).attr("r",r);return e.intersect=function(t){return(0,d.default)(e,r,t)},u}function a(t,n,e){var r=n.width*Math.SQRT2/2,u=n.height*Math.SQRT2/2,i=[{x:0,y:-u},{x:-r,y:0},{x:0,y:u},{x:r,y:0}],o=t.insert("polygon",":first-child").attr("points",i.map(function(t){return t.x+","+t.y}).join(" "));return e.intersect=function(t){return(0,g.default)(e,i,t)},o}Object.defineProperty(n,"__esModule",{value:!0});var c=e(17),f=r(c),l=e(6),s=r(l),h=e(15),d=r(h),p=e(16),g=r(p);n.default={rect:u,ellipse:i,circle:o,diamond:a}},function(t,n,e){"use strict";function r(t,n,e,r){var u=t.append("marker").attr("id",n).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),i=u.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");a.default.applyStyle(i,e[r+"Style"]),e[r+"Class"]&&i.attr("class",e[r+"Class"])}function u(t,n,e,r){var u=t.append("marker").attr("id",n).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),i=u.append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");a.default.applyStyle(i,e[r+"Style"]),e[r+"Class"]&&i.attr("class",e[r+"Class"])}function i(t,n,e,r){var u=t.append("marker").attr("id",n).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto"),i=u.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");a.default.applyStyle(i,e[r+"Style"]),e[r+"Class"]&&i.attr("class",e[r+"Class"])}Object.defineProperty(n,"__esModule",{value:!0});var o=e(1),a=function(t){return t&&t.__esModule?t:{default:t}}(o);n.default={normal:r,vee:u,undirected:i,default:r}},function(t,n){t.exports={name:"dagre-d3-renderer",version:"0.4.26",description:"A D3-based renderer for Dagre",keywords:["graph","dagre","graphlib","renderer","d3"],main:"dist/dagre-d3.core.js",scripts:{lint:"standard",karma:"node -r babel-register ./node_modules/.bin/karma start --single-run",test:"yarn lint && yarn karma && phantomjs test/demo-test.js",upgrade:"yarn-upgrade-all && yarn remove d3 && yarn add d3@3.5.17",build:"webpack --progress --colors","build:watch":"yarn build --watch",release:"yarn build -p"},dependencies:{d3:"3.5.17","dagre-layout":"^0.8.0",graphlib:"^2.1.1",lodash:"^4.17.4"},devDependencies:{"babel-core":"^6.26.0","babel-loader":"^7.1.2","babel-preset-env":"^1.6.1",chai:"^4.1.2",karma:"^1.7.1","karma-chrome-launcher":"^2.2.0","karma-firefox-launcher":"^1.1.0","karma-mocha":"^1.3.0","karma-safari-launcher":"^1.0.0",mocha:"^4.0.1","phantomjs-prebuilt":"^2.1.16",standard:"^10.0.3",webpack:"^3.10.0","webpack-node-externals":"^1.6.0","yarn-upgrade-all":"^0.2.0"},repository:{type:"git",url:"https://github.com/tylingsoft/dagre-d3-renderer.git"},license:"MIT",standard:{ignore:["dist/**/*.js"]}}}]).default});
//# sourceMappingURL=dagre-d3.js.map