text: !function(){function t(t,n){return n>t?-1:t>n?1:t>=n?0:0/0}function n(t){return null===t?0/0:+t}function e(t){return!isNaN(t)}function r(t){return{left:function(n,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=n.length);i>r;){var a=r+i>>>1;t(n[a],e)<0?r=a+1:i=a}return r},right:function(n,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=n.length);i>r;){var a=r+i>>>1;t(n[a],e)>0?i=a:r=a+1}return r}}}function i(t){return t.length}function a(t){for(var n=1;t*n%1;)n*=10;return n}function o(t,n){for(var e in n)Object.defineProperty(t.prototype,e,{value:n[e],enumerable:!1})}function u(){this._=Object.create(null)}function s(t){return(t+="")===co||t[0]===lo?lo+t:t}function c(t){return(t+="")[0]===lo?t.slice(1):t}function l(t){return s(t)in this._}function f(t){return(t=s(t))in this._&&delete this._[t]}function h(){var t=[];for(var n in this._)t.push(c(n));return t}function d(){var t=0;for(var n in this._)++t;return t}function p(){for(var t in this._)return!1;return!0}function g(){this._=Object.create(null)}function y(t,n,e){return function(){var r=e.apply(n,arguments);return r===n?t:r}}function m(t,n){if(n in t)return n;n=n.charAt(0).toUpperCase()+n.slice(1);for(var e=0,r=fo.length;r>e;++e){var i=fo[e]+n;if(i in t)return i}}function v(){}function b(){}function _(t){function n(){for(var n,r=e,i=-1,a=r.length;++i<a;)(n=r[i].on)&&n.apply(this,arguments);return t}var e=[],r=new u;return n.on=function(n,i){var a,o=r.get(n);return arguments.length<2?o&&o.on:(o&&(o.on=null,e=e.slice(0,a=e.indexOf(o)).concat(e.slice(a+1)),r.remove(n)),i&&e.push(r.set(n,{on:i})),t)},n}function x(){Wa.event.preventDefault()}function w(){for(var t,n=Wa.event;t=n.sourceEvent;)n=t;return n}function k(t){for(var n=new b,e=0,r=arguments.length;++e<r;)n[arguments[e]]=_(n);return n.of=function(e,r){return function(i){try{var a=i.sourceEvent=Wa.event;i.target=t,Wa.event=i,n[i.type].apply(e,r)}finally{Wa.event=a}}},n}function E(t){return po(t,bo),t}function M(t){return"function"==typeof t?t:function(){return go(t,this)}}function A(t){return"function"==typeof t?t:function(){return yo(t,this)}}function D(t,n){function e(){this.removeAttribute(t)}function r(){this.removeAttributeNS(t.space,t.local)}function i(){this.setAttribute(t,n)}function a(){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 u(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}return t=Wa.ns.qualify(t),null==n?t.local?r:e:"function"==typeof n?t.local?u:o:t.local?a:i}function S(t){return t.trim().replace(/\s+/g," ")}function C(t){return new RegExp("(?:^|\\s+)"+Wa.requote(t)+"(?:\\s+|$)","g")}function T(t){return(t+"").trim().split(/^|\s+/)}function F(t,n){function e(){for(var e=-1;++e<i;)t[e](this,n)}function r(){for(var e=-1,r=n.apply(this,arguments);++e<i;)t[e](this,r)}t=T(t).map(N);var i=t.length;return"function"==typeof n?r:e}function N(t){var n=C(t);return function(e,r){if(i=e.classList)return r?i.add(t):i.remove(t);var i=e.getAttribute("class")||"";r?(n.lastIndex=0,n.test(i)||e.setAttribute("class",S(i+" "+t))):e.setAttribute("class",S(i.replace(n," ")))}}function L(t,n,e){function r(){this.style.removeProperty(t)}function i(){this.style.setProperty(t,n,e)}function a(){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?a:i}function B(t,n){function e(){delete this[t]}function r(){this[t]=n}function i(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}return null==n?e:"function"==typeof n?i:r}function O(t){return"function"==typeof t?t:(t=Wa.ns.qualify(t)).local?function(){return this.ownerDocument.createElementNS(t.space,t.local)}:function(){return this.ownerDocument.createElementNS(this.namespaceURI,t)}}function I(t){return{__data__:t}}function q(t){return function(){return vo(this,t)}}function R(n){return arguments.length||(n=t),function(t,e){return t&&e?n(t.__data__,e.__data__):!t-!e}}function P(t,n){for(var e=0,r=t.length;r>e;e++)for(var i,a=t[e],o=0,u=a.length;u>o;o++)(i=a[o])&&n(i,o,e);return t}function j(t){return po(t,xo),t}function U(t){var n,e;return function(r,i,a){var o,u=t[a].update,s=u.length;for(a!=e&&(e=a,n=0),i>=n&&(n=i+1);!(o=u[n])&&++n<s;);return o}}function z(){var t=this.__transition__;t&&++t.active}function Y(t,n,e){function r(){var n=this[o];n&&(this.removeEventListener(t,n,n.$),delete this[o])}function i(){var i=s(n,Xa(arguments));r.call(this),this.addEventListener(t,this[o]=i,i.$=e),i._=n}function a(){var n,e=new RegExp("^__on([^.]+)"+Wa.requote(t)+"$");for(var r in this)if(n=r.match(e)){var i=this[r];this.removeEventListener(n[1],i,i.$),delete this[r]}}var o="__on"+t,u=t.indexOf("."),s=V;u>0&&(t=t.slice(0,u));var c=ko.get(t);return c&&(t=c,s=H),u?n?i:r:n?v:a}function V(t,n){return function(e){var r=Wa.event;Wa.event=e,n[0]=this.__data__;try{t.apply(this,n)}finally{Wa.event=r}}}function H(t,n){var e=V(t,n);return function(t){var n=this,r=t.relatedTarget;r&&(r===n||8&r.compareDocumentPosition(n))||e.call(n,t)}}function G(){var t=".dragsuppress-"+ ++Mo,n="click"+t,e=Wa.select(Qa).on("touchmove"+t,x).on("dragstart"+t,x).on("selectstart"+t,x);if(Eo){var r=Ja.style,i=r[Eo];r[Eo]="none"}return function(a){function o(){e.on(n,null)}e.on(t,null),Eo&&(r[Eo]=i),a&&(e.on(n,function(){x(),o()},!0),setTimeout(o,0))}}function $(t,n){n.changedTouches&&(n=n.changedTouches[0]);var e=t.ownerSVGElement||t;if(e.createSVGPoint){var r=e.createSVGPoint();if(0>Ao&&(Qa.scrollX||Qa.scrollY)){e=Wa.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var i=e[0][0].getScreenCTM();Ao=!(i.f||i.e),e.remove()}return Ao?(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 W(){return Wa.event.changedTouches[0].identifier}function Z(){return Wa.event.target}function X(){return Qa}function K(t){return t>0?1:0>t?-1:0}function J(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])}function Q(t){return t>1?0:-1>t?Do:Math.acos(t)}function tt(t){return t>1?Co:-1>t?-Co:Math.asin(t)}function nt(t){return((t=Math.exp(t))-1/t)/2}function et(t){return((t=Math.exp(t))+1/t)/2}function rt(t){return((t=Math.exp(2*t))-1)/(t+1)}function it(t){return(t=Math.sin(t/2))*t}function at(){}function ot(t,n,e){return this instanceof ot?(this.h=+t,this.s=+n,void(this.l=+e)):arguments.length<2?t instanceof ot?new ot(t.h,t.s,t.l):_t(""+t,xt,ot):new ot(t,n,e)}function ut(t,n,e){function r(t){return t>360?t-=360:0>t&&(t+=360),60>t?a+(o-a)*t/60:180>t?o:240>t?a+(o-a)*(240-t)/60:a}function i(t){return Math.round(255*r(t))}var a,o;return t=isNaN(t)?0:(t%=360)<0?t+360:t,n=isNaN(n)?0:0>n?0:n>1?1:n,e=0>e?0:e>1?1:e,o=.5>=e?e*(1+n):e+n-e*n,a=2*e-o,new yt(i(t+120),i(t),i(t-120))}function st(t,n,e){return this instanceof st?(this.h=+t,this.c=+n,void(this.l=+e)):arguments.length<2?t instanceof st?new st(t.h,t.c,t.l):t instanceof lt?ht(t.l,t.a,t.b):ht((t=wt((t=Wa.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new st(t,n,e)}function ct(t,n,e){return isNaN(t)&&(t=0),isNaN(n)&&(n=0),new lt(e,Math.cos(t*=No)*n,Math.sin(t)*n)}function lt(t,n,e){return this instanceof lt?(this.l=+t,this.a=+n,void(this.b=+e)):arguments.length<2?t instanceof lt?new lt(t.l,t.a,t.b):t instanceof st?ct(t.h,t.c,t.l):wt((t=yt(t)).r,t.g,t.b):new lt(t,n,e)}function ft(t,n,e){var r=(t+16)/116,i=r+n/500,a=r-e/200;return i=dt(i)*Yo,r=dt(r)*Vo,a=dt(a)*Ho,new yt(gt(3.2404542*i-1.5371385*r-.4985314*a),gt(-.969266*i+1.8760108*r+.041556*a),gt(.0556434*i-.2040259*r+1.0572252*a))}function ht(t,n,e){return t>0?new st(Math.atan2(e,n)*Lo,Math.sqrt(n*n+e*e),t):new st(0/0,0/0,t)}function dt(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function pt(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function gt(t){return Math.round(255*(.00304>=t?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function yt(t,n,e){return this instanceof yt?(this.r=~~t,this.g=~~n,void(this.b=~~e)):arguments.length<2?t instanceof yt?new yt(t.r,t.g,t.b):_t(""+t,yt,ut):new yt(t,n,e)}function mt(t){return new yt(t>>16,255&t>>8,255&t)}function vt(t){return mt(t)+""}function bt(t){return 16>t?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function _t(t,n,e){var r,i,a,o=0,u=0,s=0;if(r=/([a-z]+)\((.*)\)/i.exec(t))switch(i=r[2].split(","),r[1]){case"hsl":return e(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return n(Et(i[0]),Et(i[1]),Et(i[2]))}return(a=Wo.get(t))?n(a.r,a.g,a.b):(null==t||"#"!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&a)>>4,o=o>>4|o,u=240&a,u=u>>4|u,s=15&a,s=s<<4|s):7===t.length&&(o=(16711680&a)>>16,u=(65280&a)>>8,s=255&a)),n(o,u,s))}function xt(t,n,e){var r,i,a=Math.min(t/=255,n/=255,e/=255),o=Math.max(t,n,e),u=o-a,s=(o+a)/2;return u?(i=.5>s?u/(o+a):u/(2-o-a),r=t==o?(n-e)/u+(e>n?6:0):n==o?(e-t)/u+2:(t-n)/u+4,r*=60):(r=0/0,i=s>0&&1>s?0:r),new ot(r,i,s)}function wt(t,n,e){t=kt(t),n=kt(n),e=kt(e);var r=pt((.4124564*t+.3575761*n+.1804375*e)/Yo),i=pt((.2126729*t+.7151522*n+.072175*e)/Vo),a=pt((.0193339*t+.119192*n+.9503041*e)/Ho);return lt(116*i-16,500*(r-i),200*(i-a))}function kt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Et(t){var n=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*n):n}function Mt(t){return"function"==typeof t?t:function(){return t}}function At(t){return t}function Dt(t){return function(n,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=null),St(n,e,t,r)}}function St(t,n,e,r){function i(){var t,n=s.status;if(!n&&Tt(s)||n>=200&&300>n||304===n){try{t=e.call(a,s)}catch(r){return void o.error.call(a,r)}o.load.call(a,t)}else o.error.call(a,s)}var a={},o=Wa.dispatch("beforesend","progress","load","error"),u={},s=new XMLHttpRequest,c=null;return!Qa.XDomainRequest||"withCredentials"in s||!/^(http(s)?:)?\/\//.test(t)||(s=new XDomainRequest),"onload"in s?s.onload=s.onerror=i:s.onreadystatechange=function(){s.readyState>3&&i()},s.onprogress=function(t){var n=Wa.event;Wa.event=t;try{o.progress.call(a,s)}finally{Wa.event=n}},a.header=function(t,n){return t=(t+"").toLowerCase(),arguments.length<2?u[t]:(null==n?delete u[t]:u[t]=n+"",a)},a.mimeType=function(t){return arguments.length?(n=null==t?null:t+"",a):n},a.responseType=function(t){return arguments.length?(c=t,a):c},a.response=function(t){return e=t,a},["get","post"].forEach(function(t){a[t]=function(){return a.send.apply(a,[t].concat(Xa(arguments)))}}),a.send=function(e,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),s.open(e,t,!0),null==n||"accept"in u||(u.accept=n+",*/*"),s.setRequestHeader)for(var l in u)s.setRequestHeader(l,u[l]);return null!=n&&s.overrideMimeType&&s.overrideMimeType(n),null!=c&&(s.responseType=c),null!=i&&a.on("error",i).on("load",function(t){i(null,t)}),o.beforesend.call(a,s),s.send(null==r?null:r),a},a.abort=function(){return s.abort(),a},Wa.rebind(a,o,"on"),null==r?a:a.get(Ct(r))}function Ct(t){return 1===t.length?function(n,e){t(null==n?e:null)}:t}function Tt(t){var n=t.responseType;return n&&"text"!==n?t.response:t.responseText}function Ft(){var t=Nt(),n=Lt()-t;n>24?(isFinite(n)&&(clearTimeout(Jo),Jo=setTimeout(Ft,n)),Ko=0):(Ko=1,tu(Ft))}function Nt(){var t=Date.now();for(Qo=Zo;Qo;)t>=Qo.t&&(Qo.f=Qo.c(t-Qo.t)),Qo=Qo.n;return t}function Lt(){for(var t,n=Zo,e=1/0;n;)n.f?n=t?t.n=n.n:Zo=n.n:(n.t<e&&(e=n.t),n=(t=n).n);return Xo=t,e}function Bt(t,n){return n-(t?Math.ceil(Math.log(t)/Math.LN10):1)}function Ot(t,n){var e=Math.pow(10,3*so(8-n));return{scale:n>8?function(t){return t/e}:function(t){return t*e},symbol:t}}function It(t){var n=t.decimal,e=t.thousands,r=t.grouping,i=t.currency,a=r&&e?function(t,n){for(var i=t.length,a=[],o=0,u=r[0],s=0;i>0&&u>0&&(s+u+1>n&&(u=Math.max(1,n-s)),a.push(t.substring(i-=u,i+u)),!((s+=u+1)>n));)u=r[o=(o+1)%r.length];return a.reverse().join(e)}:At;return function(t){var e=eu.exec(t),r=e[1]||" ",o=e[2]||">",u=e[3]||"-",s=e[4]||"",c=e[5],l=+e[6],f=e[7],h=e[8],d=e[9],p=1,g="",y="",m=!1,v=!0;switch(h&&(h=+h.substring(1)),(c||"0"===r&&"="===o)&&(c=r="0",o="="),d){case"n":f=!0,d="g";break;case"%":p=100,y="%",d="f";break;case"p":p=100,y="%",d="r";break;case"b":case"o":case"x":case"X":"#"===s&&(g="0"+d.toLowerCase());case"c":v=!1;case"d":m=!0,h=0;break;case"s":p=-1,d="r"}"$"===s&&(g=i[0],y=i[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=ru.get(d)||qt;var b=c&&f;return function(t){var e=y;if(m&&t%1)return"";var i=0>t||0===t&&0>1/t?(t=-t,"-"):"-"===u?"":u;if(0>p){var s=Wa.formatPrefix(t,h);t=s.scale(t),e=s.symbol+y}else t*=p;t=d(t,h);var _,x,w=t.lastIndexOf(".");if(0>w){var k=v?t.lastIndexOf("e"):-1;0>k?(_=t,x=""):(_=t.substring(0,k),x=t.substring(k))}else _=t.substring(0,w),x=n+t.substring(w+1);!c&&f&&(_=a(_,1/0));var E=g.length+_.length+x.length+(b?0:i.length),M=l>E?new Array(E=l-E+1).join(r):"";return b&&(_=a(M+_,M.length?l-x.length:1/0)),i+=g,t=_+x,("<"===o?i+t+M:">"===o?M+i+t:"^"===o?M.substring(0,E>>=1)+i+t+M.substring(E):i+(b?t:M+t))+e}}}function qt(t){return t+""}function Rt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Pt(t,n,e){function r(n){var e=t(n),r=a(e,1);return r-n>n-e?e:r}function i(e){return n(e=t(new au(e-1)),1),e}function a(t,e){return n(t=new au(+t),e),t}function o(t,r,a){var o=i(t),u=[];if(a>1)for(;r>o;)e(o)%a||u.push(new Date(+o)),n(o,1);else for(;r>o;)u.push(new Date(+o)),n(o,1);return u}function u(t,n,e){try{au=Rt;var r=new Rt;return r._=t,o(r,n,e)}finally{au=Date}}t.floor=t,t.round=r,t.ceil=i,t.offset=a,t.range=o;var s=t.utc=jt(t);return s.floor=s,s.round=jt(r),s.ceil=jt(i),s.offset=jt(a),s.range=u,t}function jt(t){return function(n,e){try{au=Rt;var r=new Rt;return r._=n,t(r,e)._}finally{au=Date}}}function Ut(t){function n(t){function n(n){for(var e,i,a,o=[],u=-1,s=0;++u<r;)37===t.charCodeAt(u)&&(o.push(t.slice(s,u)),null!=(i=uu[e=t.charAt(++u)])&&(e=t.charAt(++u)),(a=S[e])&&(e=a(n,null==i?"e"===e?" ":"0":i)),o.push(e),s=u+1);return o.push(t.slice(s,u)),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},i=e(r,t,n,0);if(i!=n.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var a=null!=r.Z&&au!==Rt,o=new(a?Rt:au);return"j"in r?o.setFullYear(r.y,0,r.j):"w"in r&&("W"in r||"U"in r)?(o.setFullYear(r.y,0,1),o.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(o.getDay()+5)%7:r.w+7*r.U-(o.getDay()+6)%7)):o.setFullYear(r.y,r.m,r.d),o.setHours(r.H+(0|r.Z/100),r.M+r.Z%100,r.S,r.L),a?o._:o},n.toString=function(){return t},n}function e(t,n,e,r){for(var i,a,o,u=0,s=n.length,c=e.length;s>u;){if(r>=c)return-1;if(i=n.charCodeAt(u++),37===i){if(o=n.charAt(u++),a=C[o in uu?n.charAt(u++):o],!a||(r=a(t,e,r))<0)return-1}else if(i!=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=k.get(r[0].toLowerCase()),e+r[0].length):-1}function i(t,n,e){_.lastIndex=0;var r=_.exec(n.slice(e));return r?(t.w=x.get(r[0].toLowerCase()),e+r[0].length):-1}function a(t,n,e){A.lastIndex=0;var r=A.exec(n.slice(e));return r?(t.m=D.get(r[0].toLowerCase()),e+r[0].length):-1}function o(t,n,e){E.lastIndex=0;var r=E.exec(n.slice(e));return r?(t.m=M.get(r[0].toLowerCase()),e+r[0].length):-1}function u(t,n,r){return e(t,S.c.toString(),n,r)}function s(t,n,r){return e(t,S.x.toString(),n,r)}function c(t,n,r){return e(t,S.X.toString(),n,r)}function l(t,n,e){var r=b.get(n.slice(e,e+=2).toLowerCase());return null==r?-1:(t.p=r,e)}var f=t.dateTime,h=t.date,d=t.time,p=t.periods,g=t.days,y=t.shortDays,m=t.months,v=t.shortMonths;n.utc=function(t){function e(t){try{au=Rt;var n=new au;return n._=t,r(n)}finally{au=Date}}var r=n(t);return e.parse=function(t){try{au=Rt;var n=r.parse(t);return n&&n._}finally{au=Date}},e.toString=r.toString,e},n.multi=n.utc.multi=sn;var b=Wa.map(),_=Yt(g),x=Vt(g),w=Yt(y),k=Vt(y),E=Yt(m),M=Vt(m),A=Yt(v),D=Vt(v);p.forEach(function(t,n){b.set(t.toLowerCase(),n)});var S={a:function(t){return y[t.getDay()]},A:function(t){return g[t.getDay()]},b:function(t){return v[t.getMonth()]},B:function(t){return m[t.getMonth()]},c:n(f),d:function(t,n){return zt(t.getDate(),n,2)},e:function(t,n){return zt(t.getDate(),n,2)},H:function(t,n){return zt(t.getHours(),n,2)},I:function(t,n){return zt(t.getHours()%12||12,n,2)},j:function(t,n){return zt(1+iu.dayOfYear(t),n,3)},L:function(t,n){return zt(t.getMilliseconds(),n,3)},m:function(t,n){return zt(t.getMonth()+1,n,2)},M:function(t,n){return zt(t.getMinutes(),n,2)},p:function(t){return p[+(t.getHours()>=12)]},S:function(t,n){return zt(t.getSeconds(),n,2)},U:function(t,n){return zt(iu.sundayOfYear(t),n,2)},w:function(t){return t.getDay()},W:function(t,n){return zt(iu.mondayOfYear(t),n,2)},x:n(h),X:n(d),y:function(t,n){return zt(t.getFullYear()%100,n,2)},Y:function(t,n){return zt(t.getFullYear()%1e4,n,4)},Z:on,"%":function(){return"%"}},C={a:r,A:i,b:a,B:o,c:u,d:Qt,e:Qt,H:nn,I:nn,j:tn,L:an,m:Jt,M:en,p:l,S:rn,U:Gt,w:Ht,W:$t,x:s,X:c,y:Zt,Y:Wt,Z:Xt,"%":un};return n}function zt(t,n,e){var r=0>t?"-":"",i=(r?-t:t)+"",a=i.length;return r+(e>a?new Array(e-a+1).join(n)+i:i)}function Yt(t){return new RegExp("^(?:"+t.map(Wa.requote).join("|")+")","i")}function Vt(t){for(var n=new u,e=-1,r=t.length;++e<r;)n.set(t[e].toLowerCase(),e);return n}function Ht(t,n,e){su.lastIndex=0;var r=su.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function Gt(t,n,e){su.lastIndex=0;var r=su.exec(n.slice(e));return r?(t.U=+r[0],e+r[0].length):-1}function $t(t,n,e){su.lastIndex=0;var r=su.exec(n.slice(e));return r?(t.W=+r[0],e+r[0].length):-1}function Wt(t,n,e){su.lastIndex=0;var r=su.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function Zt(t,n,e){su.lastIndex=0;var r=su.exec(n.slice(e,e+2));return r?(t.y=Kt(+r[0]),e+r[0].length):-1}function Xt(t,n,e){return/^[+-]\d{4}$/.test(n=n.slice(e,e+5))?(t.Z=-n,e+5):-1}function Kt(t){return t+(t>68?1900:2e3)}function Jt(t,n,e){su.lastIndex=0;var r=su.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function Qt(t,n,e){su.lastIndex=0;var r=su.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function tn(t,n,e){su.lastIndex=0;var r=su.exec(n.slice(e,e+3));return r?(t.j=+r[0],e+r[0].length):-1}function nn(t,n,e){su.lastIndex=0;var r=su.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function en(t,n,e){su.lastIndex=0;var r=su.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function rn(t,n,e){su.lastIndex=0;var r=su.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function an(t,n,e){su.lastIndex=0;var r=su.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function on(t){var n=t.getTimezoneOffset(),e=n>0?"-":"+",r=0|so(n)/60,i=so(n)%60;return e+zt(r,"0",2)+zt(i,"0",2)}function un(t,n,e){cu.lastIndex=0;var r=cu.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function sn(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 cn(){}function ln(t,n,e){var r=e.s=t+n,i=r-t,a=r-i;e.t=t-a+(n-i)}function fn(t,n){t&&du.hasOwnProperty(t.type)&&du[t.type](t,n)}function hn(t,n,e){var r,i=-1,a=t.length-e;for(n.lineStart();++i<a;)r=t[i],n.point(r[0],r[1],r[2]);n.lineEnd()}function dn(t,n){var e=-1,r=t.length;for(n.polygonStart();++e<r;)hn(t[e],n,1);n.polygonEnd()}function pn(){function t(t,n){t*=No,n=n*No/2+Do/4;var e=t-r,o=e>=0?1:-1,u=o*e,s=Math.cos(n),c=Math.sin(n),l=a*c,f=i*s+l*Math.cos(u),h=l*o*Math.sin(u);gu.add(Math.atan2(h,f)),r=t,i=s,a=c}var n,e,r,i,a;yu.point=function(o,u){yu.point=t,r=(n=o)*No,i=Math.cos(u=(e=u)*No/2+Do/4),a=Math.sin(u)},yu.lineEnd=function(){t(n,e)}}function gn(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 yn(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 vn(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function bn(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function _n(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 xn(t){return[Math.atan2(t[1],t[0]),tt(t[2])]}function wn(t,n){return so(t[0]-n[0])<To&&so(t[1]-n[1])<To}function kn(t,n){t*=No;var e=Math.cos(n*=No);En(e*Math.cos(t),e*Math.sin(t),Math.sin(n))}function En(t,n,e){++mu,bu+=(t-bu)/mu,_u+=(n-_u)/mu,xu+=(e-xu)/mu}function Mn(){function t(t,i){t*=No;var a=Math.cos(i*=No),o=a*Math.cos(t),u=a*Math.sin(t),s=Math.sin(i),c=Math.atan2(Math.sqrt((c=e*s-r*u)*c+(c=r*o-n*s)*c+(c=n*u-e*o)*c),n*o+e*u+r*s);vu+=c,wu+=c*(n+(n=o)),ku+=c*(e+(e=u)),Eu+=c*(r+(r=s)),En(n,e,r)}var n,e,r;Su.point=function(i,a){i*=No;var o=Math.cos(a*=No);n=o*Math.cos(i),e=o*Math.sin(i),r=Math.sin(a),Su.point=t,En(n,e,r)}}function An(){Su.point=kn}function Dn(){function t(t,n){t*=No;var e=Math.cos(n*=No),o=e*Math.cos(t),u=e*Math.sin(t),s=Math.sin(n),c=i*s-a*u,l=a*o-r*s,f=r*u-i*o,h=Math.sqrt(c*c+l*l+f*f),d=r*o+i*u+a*s,p=h&&-Q(d)/h,g=Math.atan2(h,d);Mu+=p*c,Au+=p*l,Du+=p*f,vu+=g,wu+=g*(r+(r=o)),ku+=g*(i+(i=u)),Eu+=g*(a+(a=s)),En(r,i,a)}var n,e,r,i,a;Su.point=function(o,u){n=o,e=u,Su.point=t,o*=No;var s=Math.cos(u*=No);r=s*Math.cos(o),i=s*Math.sin(o),a=Math.sin(u),En(r,i,a)},Su.lineEnd=function(){t(n,e),Su.lineEnd=An,Su.point=kn}}function Sn(){return!0}function Cn(t,n,e,r,i){var a=[],o=[];if(t.forEach(function(t){if(!((n=t.length-1)<=0)){var n,e=t[0],r=t[n];if(wn(e,r)){i.lineStart();for(var u=0;n>u;++u)i.point((e=t[u])[0],e[1]);return void i.lineEnd()}var s=new Fn(e,t,null,!0),c=new Fn(e,null,s,!1);s.o=c,a.push(s),o.push(c),s=new Fn(r,t,null,!1),c=new Fn(r,null,s,!0),s.o=c,a.push(s),o.push(c)}}),o.sort(n),Tn(a),Tn(o),a.length){for(var u=0,s=e,c=o.length;c>u;++u)o[u].e=s=!s;for(var l,f,h=a[0];;){for(var d=h,p=!0;d.v;)if((d=d.n)===h)return;l=d.z,i.lineStart();do{if(d.v=d.o.v=!0,d.e){if(p)for(var u=0,c=l.length;c>u;++u)i.point((f=l[u])[0],f[1]);else r(d.x,d.n.x,1,i);d=d.n}else{if(p){l=d.p.z;for(var u=l.length-1;u>=0;--u)i.point((f=l[u])[0],f[1])}else r(d.x,d.p.x,-1,i);d=d.p}d=d.o,l=d.z,p=!p}while(!d.v);i.lineEnd()}}}function Tn(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r<n;)i.n=e=t[r],e.p=i,i=e;i.n=e=t[0],e.p=i}}function Fn(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 Nn(t,n,e,r){return function(i,a){function o(n,e){var r=i(n,e);t(n=r[0],e=r[1])&&a.point(n,e)}function u(t,n){var e=i(t,n);y.point(e[0],e[1])}function s(){v.point=u,y.lineStart()}function c(){v.point=o,y.lineEnd()}function l(t,n){g.push([t,n]);var e=i(t,n);_.point(e[0],e[1])}function f(){_.lineStart(),g=[]}function h(){l(g[0][0],g[0][1]),_.lineEnd();var t,n=_.clean(),e=b.buffer(),r=e.length;if(g.pop(),p.push(g),g=null,r)if(1&n){t=e[0];var i,r=t.length-1,o=-1;if(r>0){for(x||(a.polygonStart(),x=!0),a.lineStart();++o<r;)a.point((i=t[o])[0],i[1]);a.lineEnd()}}else r>1&&2&n&&e.push(e.pop().concat(e.shift())),d.push(e.filter(Ln))}var d,p,g,y=n(a),m=i.invert(r[0],r[1]),v={point:o,lineStart:s,lineEnd:c,polygonStart:function(){v.point=l,v.lineStart=f,v.lineEnd=h,d=[],p=[]},polygonEnd:function(){v.point=o,v.lineStart=s,v.lineEnd=c,d=Wa.merge(d);var t=Pn(m,p);d.length?(x||(a.polygonStart(),x=!0),Cn(d,On,t,e,a)):t&&(x||(a.polygonStart(),x=!0),a.lineStart(),e(null,null,1,a),a.lineEnd()),x&&(a.polygonEnd(),x=!1),d=p=null},sphere:function(){a.polygonStart(),a.lineStart(),e(null,null,1,a),a.lineEnd(),a.polygonEnd()}},b=Bn(),_=n(b),x=!1;return v}}function Ln(t){return t.length>1}function Bn(){var t,n=[];return{lineStart:function(){n.push(t=[])},point:function(n,e){t.push([n,e])},lineEnd:v,buffer:function(){var e=n;return n=[],t=null,e},rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))}}}function On(t,n){return((t=t.x)[0]<0?t[1]-Co-To:Co-t[1])-((n=n.x)[0]<0?n[1]-Co-To:Co-n[1])}function In(t){var n,e=0/0,r=0/0,i=0/0;return{lineStart:function(){t.lineStart(),n=1},point:function(a,o){var u=a>0?Do:-Do,s=so(a-e);so(s-Do)<To?(t.point(e,r=(r+o)/2>0?Co:-Co),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(a,r),n=0):i!==u&&s>=Do&&(so(e-i)<To&&(e-=i*To),so(a-u)<To&&(a-=u*To),r=qn(e,r,a,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),n=0),t.point(e=a,r=o),i=u},lineEnd:function(){t.lineEnd(),e=r=0/0},clean:function(){return 2-n}}}function qn(t,n,e,r){var i,a,o=Math.sin(t-e);return so(o)>To?Math.atan((Math.sin(n)*(a=Math.cos(r))*Math.sin(e)-Math.sin(r)*(i=Math.cos(n))*Math.sin(t))/(i*a*o)):(n+r)/2}function Rn(t,n,e,r){var i;if(null==t)i=e*Co,r.point(-Do,i),r.point(0,i),r.point(Do,i),r.point(Do,0),r.point(Do,-i),r.point(0,-i),r.point(-Do,-i),r.point(-Do,0),r.point(-Do,i);else if(so(t[0]-n[0])>To){var a=t[0]<n[0]?Do:-Do;i=e*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(n[0],n[1])}function Pn(t,n){var e=t[0],r=t[1],i=[Math.sin(e),-Math.cos(e),0],a=0,o=0;gu.reset();for(var u=0,s=n.length;s>u;++u){var c=n[u],l=c.length;if(l)for(var f=c[0],h=f[0],d=f[1]/2+Do/4,p=Math.sin(d),g=Math.cos(d),y=1;;){y===l&&(y=0),t=c[y];var m=t[0],v=t[1]/2+Do/4,b=Math.sin(v),_=Math.cos(v),x=m-h,w=x>=0?1:-1,k=w*x,E=k>Do,M=p*b;if(gu.add(Math.atan2(M*w*Math.sin(k),g*_+M*Math.cos(k))),a+=E?x+w*So:x,E^h>=e^m>=e){var A=mn(gn(f),gn(t));_n(A);var D=mn(i,A);_n(D);var S=(E^x>=0?-1:1)*tt(D[2]);(r>S||r===S&&(A[0]||A[1]))&&(o+=E^x>=0?1:-1)}if(!y++)break;h=m,p=b,g=_,f=t}}return(-To>a||To>a&&0>gu)^1&o}function jn(t){function n(t,n){return Math.cos(t)*Math.cos(n)>a}function e(t){var e,a,s,c,l;return{lineStart:function(){c=s=!1,l=1},point:function(f,h){var d,p=[f,h],g=n(f,h),y=o?g?0:i(f,h):g?i(f+(0>f?Do:-Do),h):0;if(!e&&(c=s=g)&&t.lineStart(),g!==s&&(d=r(e,p),(wn(e,d)||wn(p,d))&&(p[0]+=To,p[1]+=To,g=n(p[0],p[1]))),g!==s)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(u&&e&&o^g){var m;y&a||!(m=r(p,e,!0))||(l=0,o?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1])))}!g||e&&wn(e,p)||t.point(p[0],p[1]),e=p,s=g,a=y},lineEnd:function(){s&&t.lineEnd(),e=null},clean:function(){return l|(c&&s)<<1}}}function r(t,n,e){var r=gn(t),i=gn(n),o=[1,0,0],u=mn(r,i),s=yn(u,u),c=u[0],l=s-c*c;if(!l)return!e&&t;var f=a*s/l,h=-a*c/l,d=mn(o,u),p=bn(o,f),g=bn(u,h);vn(p,g);var y=d,m=yn(p,y),v=yn(y,y),b=m*m-v*(yn(p,p)-1);if(!(0>b)){var _=Math.sqrt(b),x=bn(y,(-m-_)/v);if(vn(x,p),x=xn(x),!e)return x;var w,k=t[0],E=n[0],M=t[1],A=n[1];k>E&&(w=k,k=E,E=w);var D=E-k,S=so(D-Do)<To,C=S||To>D;if(!S&&M>A&&(w=M,M=A,A=w),C?S?M+A>0^x[1]<(so(x[0]-k)<To?M:A):M<=x[1]&&x[1]<=A:D>Do^(k<=x[0]&&x[0]<=E)){var T=bn(y,(-m+_)/v);return vn(T,p),[x,xn(T)]}}}function i(n,e){var r=o?t:Do-t,i=0;return-r>n?i|=1:n>r&&(i|=2),-r>e?i|=4:e>r&&(i|=8),i}var a=Math.cos(t),o=a>0,u=so(a)>To,s=pe(t,6*No);return Nn(n,e,s,o?[0,-t]:[-Do,t-Do])}function Un(t,n,e,r){return function(i){var a,o=i.a,u=i.b,s=o.x,c=o.y,l=u.x,f=u.y,h=0,d=1,p=l-s,g=f-c;if(a=t-s,p||!(a>0)){if(a/=p,0>p){if(h>a)return;d>a&&(d=a)}else if(p>0){if(a>d)return;a>h&&(h=a)}if(a=e-s,p||!(0>a)){if(a/=p,0>p){if(a>d)return;a>h&&(h=a)}else if(p>0){if(h>a)return;d>a&&(d=a)}if(a=n-c,g||!(a>0)){if(a/=g,0>g){if(h>a)return;d>a&&(d=a)}else if(g>0){if(a>d)return;a>h&&(h=a)}if(a=r-c,g||!(0>a)){if(a/=g,0>g){if(a>d)return;a>h&&(h=a)}else if(g>0){if(h>a)return;d>a&&(d=a)}return h>0&&(i.a={x:s+h*p,y:c+h*g}),1>d&&(i.b={x:s+d*p,y:c+d*g}),i}}}}}}function zn(t,n,e,r){function i(r,i){return so(r[0]-t)<To?i>0?0:3:so(r[0]-e)<To?i>0?2:1:so(r[1]-n)<To?i>0?1:0:i>0?3:2}function a(t,n){return o(t.x,n.x)}function o(t,n){var e=i(t,1),r=i(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(u){function s(t){for(var n=0,e=y.length,r=t[1],i=0;e>i;++i)for(var a,o=1,u=y[i],s=u.length,c=u[0];s>o;++o)a=u[o],c[1]<=r?a[1]>r&&J(c,a,t)>0&&++n:a[1]<=r&&J(c,a,t)<0&&--n,c=a;return 0!==n}function c(a,u,s,c){var l=0,f=0;if(null==a||(l=i(a,s))!==(f=i(u,s))||o(a,u)<0^s>0){do c.point(0===l||3===l?t:e,l>1?r:n);while((l=(l+s+4)%4)!==f)}else c.point(u[0],u[1])}function l(i,a){return i>=t&&e>=i&&a>=n&&r>=a}function f(t,n){l(t,n)&&u.point(t,n)}function h(){C.point=p,y&&y.push(m=[]),E=!0,k=!1,x=w=0/0}function d(){g&&(p(v,b),_&&k&&D.rejoin(),g.push(D.buffer())),C.point=f,k&&u.lineEnd()}function p(t,n){t=Math.max(-Tu,Math.min(Tu,t)),n=Math.max(-Tu,Math.min(Tu,n));var e=l(t,n);if(y&&m.push([t,n]),E)v=t,b=n,_=e,E=!1,e&&(u.lineStart(),u.point(t,n));else if(e&&k)u.point(t,n);else{var r={a:{x:x,y:w},b:{x:t,y:n}};S(r)?(k||(u.lineStart(),u.point(r.a.x,r.a.y)),u.point(r.b.x,r.b.y),e||u.lineEnd(),M=!1):e&&(u.lineStart(),u.point(t,n),M=!1)}x=t,w=n,k=e}var g,y,m,v,b,_,x,w,k,E,M,A=u,D=Bn(),S=Un(t,n,e,r),C={point:f,lineStart:h,lineEnd:d,polygonStart:function(){u=D,g=[],y=[],M=!0},polygonEnd:function(){u=A,g=Wa.merge(g);var n=s([t,r]),e=M&&n,i=g.length;(e||i)&&(u.polygonStart(),e&&(u.lineStart(),c(null,null,1,u),u.lineEnd()),i&&Cn(g,a,n,c,u),u.polygonEnd()),g=y=m=null}};return C}}function Yn(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),e&&t.invert(e[0],e[1])}),e}function Vn(t){var n=0,e=Do/3,r=oe(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*Do/180,e=t[1]*Do/180):[180*(n/Do),180*(e/Do)]},i}function Hn(t,n){function e(t,n){var e=Math.sqrt(a-2*i*Math.sin(n))/i;return[e*Math.sin(t*=i),o-e*Math.cos(t)]}var r=Math.sin(t),i=(r+Math.sin(n))/2,a=1+r*(2*i-r),o=Math.sqrt(a)/i;return e.invert=function(t,n){var e=o-n;return[Math.atan2(t,e)/i,tt((a-(t*t+e*e)*i*i)/(2*i))]},e}function Gn(){function t(t,n){Nu+=i*t-r*n,r=t,i=n}var n,e,r,i;qu.point=function(a,o){qu.point=t,n=r=a,e=i=o},qu.lineEnd=function(){t(n,e)}}function $n(t,n){Lu>t&&(Lu=t),t>Ou&&(Ou=t),Bu>n&&(Bu=n),n>Iu&&(Iu=n)}function Wn(){function t(t,n){o.push("M",t,",",n,a)}function n(t,n){o.push("M",t,",",n),u.point=e}function e(t,n){o.push("L",t,",",n)}function r(){u.point=t}function i(){o.push("Z")}var a=Zn(4.5),o=[],u={point:t,lineStart:function(){u.point=n},lineEnd:r,polygonStart:function(){u.lineEnd=i},polygonEnd:function(){u.lineEnd=r,u.point=t},pointRadius:function(t){return a=Zn(t),u},result:function(){if(o.length){var t=o.join("");return o=[],t}}};return u}function Zn(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Xn(t,n){bu+=t,_u+=n,++xu}function Kn(){function t(t,r){var i=t-n,a=r-e,o=Math.sqrt(i*i+a*a);wu+=o*(n+t)/2,ku+=o*(e+r)/2,Eu+=o,Xn(n=t,e=r)}var n,e;Pu.point=function(r,i){Pu.point=t,Xn(n=r,e=i)}}function Jn(){Pu.point=Xn}function Qn(){function t(t,n){var e=t-r,a=n-i,o=Math.sqrt(e*e+a*a);wu+=o*(r+t)/2,ku+=o*(i+n)/2,Eu+=o,o=i*t-r*n,Mu+=o*(r+t),Au+=o*(i+n),Du+=3*o,Xn(r=t,i=n)}var n,e,r,i;Pu.point=function(a,o){Pu.point=t,Xn(n=r=a,e=i=o)},Pu.lineEnd=function(){t(n,e)}}function te(t){function n(n,e){t.moveTo(n,e),t.arc(n,e,o,0,So)}function e(n,e){t.moveTo(n,e),u.point=r}function r(n,e){t.lineTo(n,e)}function i(){u.point=n}function a(){t.closePath()}var o=4.5,u={point:n,lineStart:function(){u.point=e},lineEnd:i,polygonStart:function(){u.lineEnd=a},polygonEnd:function(){u.lineEnd=i,u.point=n},pointRadius:function(t){return o=t,u},result:v};return u}function ne(t){function n(t){return(u?r:e)(t)}function e(n){return ie(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(){b=0/0,E.point=a,n.lineStart()}function a(e,r){var a=gn([e,r]),o=t(e,r);i(b,_,v,x,w,k,b=o[0],_=o[1],v=e,x=a[0],w=a[1],k=a[2],u,n),n.point(b,_)}function o(){E.point=e,n.lineEnd()}function s(){r(),E.point=c,E.lineEnd=l}function c(t,n){a(f=t,h=n),d=b,p=_,g=x,y=w,m=k,E.point=a}function l(){i(b,_,v,x,w,k,d,p,f,g,y,m,u,n),E.lineEnd=o,o()}var f,h,d,p,g,y,m,v,b,_,x,w,k,E={point:e,lineStart:r,lineEnd:o,polygonStart:function(){n.polygonStart(),E.lineStart=s},polygonEnd:function(){n.polygonEnd(),E.lineStart=r}};return E}function i(n,e,r,u,s,c,l,f,h,d,p,g,y,m){var v=l-n,b=f-e,_=v*v+b*b;if(_>4*a&&y--){var x=u+d,w=s+p,k=c+g,E=Math.sqrt(x*x+w*w+k*k),M=Math.asin(k/=E),A=so(so(k)-1)<To||so(r-h)<To?(r+h)/2:Math.atan2(w,x),D=t(A,M),S=D[0],C=D[1],T=S-n,F=C-e,N=b*T-v*F;
  
  (N*N/_>a||so((v*T+b*F)/_-.5)>.3||o>u*d+s*p+c*g)&&(i(n,e,r,u,s,c,S,C,A,x/=E,w/=E,k,y,m),m.point(S,C),i(S,C,A,x,w,k,l,f,h,d,p,g,y,m))}}var a=.5,o=Math.cos(30*No),u=16;return n.precision=function(t){return arguments.length?(u=(a=t*t)>0&&16,n):Math.sqrt(a)},n}function ee(t){var n=ne(function(n,e){return t([n*Lo,e*Lo])});return function(t){return ue(n(t))}}function re(t){this.stream=t}function ie(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 ae(t){return oe(function(){return t})()}function oe(t){function n(t){return t=u(t[0]*No,t[1]*No),[t[0]*h+s,c-t[1]*h]}function e(t){return t=u.invert((t[0]-s)/h,(c-t[1])/h),t&&[t[0]*Lo,t[1]*Lo]}function r(){u=Yn(o=le(m,v,b),a);var t=a(g,y);return s=d-t[0]*h,c=p+t[1]*h,i()}function i(){return l&&(l.valid=!1,l=null),n}var a,o,u,s,c,l,f=ne(function(t,n){return t=a(t,n),[t[0]*h+s,c-t[1]*h]}),h=150,d=480,p=250,g=0,y=0,m=0,v=0,b=0,_=Cu,x=At,w=null,k=null;return n.stream=function(t){return l&&(l.valid=!1),l=ue(_(o,f(x(t)))),l.valid=!0,l},n.clipAngle=function(t){return arguments.length?(_=null==t?(w=t,Cu):jn((w=+t)*No),i()):w},n.clipExtent=function(t){return arguments.length?(k=t,x=t?zn(t[0][0],t[0][1],t[1][0],t[1][1]):At,i()):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*No,y=t[1]%360*No,r()):[g*Lo,y*Lo]},n.rotate=function(t){return arguments.length?(m=t[0]%360*No,v=t[1]%360*No,b=t.length>2?t[2]%360*No:0,r()):[m*Lo,v*Lo,b*Lo]},Wa.rebind(n,f,"precision"),function(){return a=t.apply(this,arguments),n.invert=a.invert&&e,r()}}function ue(t){return ie(t,function(n,e){t.point(n*No,e*No)})}function se(t,n){return[t,n]}function ce(t,n){return[t>Do?t-So:-Do>t?t+So:t,n]}function le(t,n,e){return t?n||e?Yn(he(t),de(n,e)):he(t):n||e?de(n,e):ce}function fe(t){return function(n,e){return n+=t,[n>Do?n-So:-Do>n?n+So:n,e]}}function he(t){var n=fe(t);return n.invert=fe(-t),n}function de(t,n){function e(t,n){var e=Math.cos(n),u=Math.cos(t)*e,s=Math.sin(t)*e,c=Math.sin(n),l=c*r+u*i;return[Math.atan2(s*a-l*o,u*r-c*i),tt(l*a+s*o)]}var r=Math.cos(t),i=Math.sin(t),a=Math.cos(n),o=Math.sin(n);return e.invert=function(t,n){var e=Math.cos(n),u=Math.cos(t)*e,s=Math.sin(t)*e,c=Math.sin(n),l=c*a-s*o;return[Math.atan2(s*a+c*o,u*r+l*i),tt(l*r-u*i)]},e}function pe(t,n){var e=Math.cos(t),r=Math.sin(t);return function(i,a,o,u){var s=o*n;null!=i?(i=ge(e,i),a=ge(e,a),(o>0?a>i:i>a)&&(i+=o*So)):(i=t+o*So,a=t-.5*s);for(var c,l=i;o>0?l>a:a>l;l-=s)u.point((c=xn([e,-r*Math.cos(l),-r*Math.sin(l)]))[0],c[1])}}function ge(t,n){var e=gn(n);e[0]-=t,_n(e);var r=Q(-e[1]);return((-e[2]<0?-r:r)+2*Math.PI-To)%(2*Math.PI)}function ye(t,n,e){var r=Wa.range(t,n-To,e).concat(n);return function(t){return r.map(function(n){return[t,n]})}}function me(t,n,e){var r=Wa.range(t,n-To,e).concat(n);return function(t){return r.map(function(n){return[n,t]})}}function ve(t){return t.source}function be(t){return t.target}function _e(t,n,e,r){var i=Math.cos(n),a=Math.sin(n),o=Math.cos(r),u=Math.sin(r),s=i*Math.cos(t),c=i*Math.sin(t),l=o*Math.cos(e),f=o*Math.sin(e),h=2*Math.asin(Math.sqrt(it(r-n)+i*o*it(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*s+n*l,i=e*c+n*f,o=e*a+n*u;return[Math.atan2(i,r)*Lo,Math.atan2(o,Math.sqrt(r*r+i*i))*Lo]}:function(){return[t*Lo,n*Lo]};return p.distance=h,p}function xe(){function t(t,i){var a=Math.sin(i*=No),o=Math.cos(i),u=so((t*=No)-n),s=Math.cos(u);ju+=Math.atan2(Math.sqrt((u=o*Math.sin(u))*u+(u=r*a-e*o*s)*u),e*a+r*o*s),n=t,e=a,r=o}var n,e,r;Uu.point=function(i,a){n=i*No,e=Math.sin(a*=No),r=Math.cos(a),Uu.point=t},Uu.lineEnd=function(){Uu.point=Uu.lineEnd=v}}function we(t,n){function e(n,e){var r=Math.cos(n),i=Math.cos(e),a=t(r*i);return[a*i*Math.sin(n),a*Math.sin(e)]}return e.invert=function(t,e){var r=Math.sqrt(t*t+e*e),i=n(r),a=Math.sin(i),o=Math.cos(i);return[Math.atan2(t*a,r*o),Math.asin(r&&e*a/r)]},e}function ke(t,n){function e(t,n){o>0?-Co+To>n&&(n=-Co+To):n>Co-To&&(n=Co-To);var e=o/Math.pow(i(n),a);return[e*Math.sin(a*t),o-e*Math.cos(a*t)]}var r=Math.cos(t),i=function(t){return Math.tan(Do/4+t/2)},a=t===n?Math.sin(t):Math.log(r/Math.cos(n))/Math.log(i(n)/i(t)),o=r*Math.pow(i(t),a)/a;return a?(e.invert=function(t,n){var e=o-n,r=K(a)*Math.sqrt(t*t+e*e);return[Math.atan2(t,e)/a,2*Math.atan(Math.pow(o/r,1/a))-Co]},e):Me}function Ee(t,n){function e(t,n){var e=a-n;return[e*Math.sin(i*t),a-e*Math.cos(i*t)]}var r=Math.cos(t),i=t===n?Math.sin(t):(r-Math.cos(n))/(n-t),a=r/i+t;return so(i)<To?se:(e.invert=function(t,n){var e=a-n;return[Math.atan2(t,e)/i,a-K(i)*Math.sqrt(t*t+e*e)]},e)}function Me(t,n){return[t,Math.log(Math.tan(Do/4+n/2))]}function Ae(t){var n,e=ae(t),r=e.scale,i=e.translate,a=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=i.apply(e,arguments);return t===e?n?e.clipExtent(null):e:t},e.clipExtent=function(t){var o=a.apply(e,arguments);if(o===e){if(n=null==t){var u=Do*r(),s=i();a([[s[0]-u,s[1]-u],[s[0]+u,s[1]+u]])}}else n&&(o=null);return o},e.clipExtent(null)}function De(t,n){return[Math.log(Math.tan(Do/4+n/2)),-t]}function Se(t){return t[0]}function Ce(t){return t[1]}function Te(t){for(var n=t.length,e=[0,1],r=2,i=2;n>i;i++){for(;r>1&&J(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function Fe(t,n){return t[0]-n[0]||t[1]-n[1]}function Ne(t,n,e){return(e[0]-n[0])*(t[1]-n[1])<(e[1]-n[1])*(t[0]-n[0])}function Le(t,n,e,r){var i=t[0],a=e[0],o=n[0]-i,u=r[0]-a,s=t[1],c=e[1],l=n[1]-s,f=r[1]-c,h=(u*(s-c)-f*(i-a))/(f*o-u*l);return[i+h*o,s+h*l]}function Be(t){var n=t[0],e=t[t.length-1];return!(n[0]-e[0]||n[1]-e[1])}function Oe(){er(this),this.edge=this.site=this.circle=null}function Ie(t){var n=Qu.pop()||new Oe;return n.site=t,n}function qe(t){$e(t),Xu.remove(t),Qu.push(t),er(t)}function Re(t){var n=t.circle,e=n.x,r=n.cy,i={x:e,y:r},a=t.P,o=t.N,u=[t];qe(t);for(var s=a;s.circle&&so(e-s.circle.x)<To&&so(r-s.circle.cy)<To;)a=s.P,u.unshift(s),qe(s),s=a;u.unshift(s),$e(s);for(var c=o;c.circle&&so(e-c.circle.x)<To&&so(r-c.circle.cy)<To;)o=c.N,u.push(c),qe(c),c=o;u.push(c),$e(c);var l,f=u.length;for(l=1;f>l;++l)c=u[l],s=u[l-1],Qe(c.edge,s.site,c.site,i);s=u[0],c=u[f-1],c.edge=Ke(s.site,c.site,null,i),Ge(s),Ge(c)}function Pe(t){for(var n,e,r,i,a=t.x,o=t.y,u=Xu._;u;)if(r=je(u,o)-a,r>To)u=u.L;else{if(i=a-Ue(u,o),!(i>To)){r>-To?(n=u.P,e=u):i>-To?(n=u,e=u.N):n=e=u;break}if(!u.R){n=u;break}u=u.R}var s=Ie(t);if(Xu.insert(n,s),n||e){if(n===e)return $e(n),e=Ie(n.site),Xu.insert(s,e),s.edge=e.edge=Ke(n.site,s.site),Ge(n),void Ge(e);if(!e)return void(s.edge=Ke(n.site,s.site));$e(n),$e(e);var c=n.site,l=c.x,f=c.y,h=t.x-l,d=t.y-f,p=e.site,g=p.x-l,y=p.y-f,m=2*(h*y-d*g),v=h*h+d*d,b=g*g+y*y,_={x:(y*v-d*b)/m+l,y:(h*b-g*v)/m+f};Qe(e.edge,c,p,_),s.edge=Ke(c,t,null,_),e.edge=Ke(t,p,null,_),Ge(n),Ge(e)}}function je(t,n){var e=t.site,r=e.x,i=e.y,a=i-n;if(!a)return r;var o=t.P;if(!o)return-1/0;e=o.site;var u=e.x,s=e.y,c=s-n;if(!c)return u;var l=u-r,f=1/a-1/c,h=l/c;return f?(-h+Math.sqrt(h*h-2*f*(l*l/(-2*c)-s+c/2+i-a/2)))/f+r:(r+u)/2}function Ue(t,n){var e=t.N;if(e)return je(e,n);var r=t.site;return r.y===n?r.x:1/0}function ze(t){this.site=t,this.edges=[]}function Ye(t){for(var n,e,r,i,a,o,u,s,c,l,f=t[0][0],h=t[1][0],d=t[0][1],p=t[1][1],g=Zu,y=g.length;y--;)if(a=g[y],a&&a.prepare())for(u=a.edges,s=u.length,o=0;s>o;)l=u[o].end(),r=l.x,i=l.y,c=u[++o%s].start(),n=c.x,e=c.y,(so(r-n)>To||so(i-e)>To)&&(u.splice(o,0,new tr(Je(a.site,l,so(r-f)<To&&p-i>To?{x:f,y:so(n-f)<To?e:p}:so(i-p)<To&&h-r>To?{x:so(e-p)<To?n:h,y:p}:so(r-h)<To&&i-d>To?{x:h,y:so(n-h)<To?e:d}:so(i-d)<To&&r-f>To?{x:so(e-d)<To?n:f,y:d}:null),a.site,null)),++s)}function Ve(t,n){return n.angle-t.angle}function He(){er(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ge(t){var n=t.P,e=t.N;if(n&&e){var r=n.site,i=t.site,a=e.site;if(r!==a){var o=i.x,u=i.y,s=r.x-o,c=r.y-u,l=a.x-o,f=a.y-u,h=2*(s*f-c*l);if(!(h>=-Fo)){var d=s*s+c*c,p=l*l+f*f,g=(f*d-c*p)/h,y=(s*p-l*d)/h,f=y+u,m=ts.pop()||new He;m.arc=t,m.site=i,m.x=g+o,m.y=f+Math.sqrt(g*g+y*y),m.cy=f,t.circle=m;for(var v=null,b=Ju._;b;)if(m.y<b.y||m.y===b.y&&m.x<=b.x){if(!b.L){v=b.P;break}b=b.L}else{if(!b.R){v=b;break}b=b.R}Ju.insert(v,m),v||(Ku=m)}}}}function $e(t){var n=t.circle;n&&(n.P||(Ku=n.N),Ju.remove(n),ts.push(n),er(n),t.circle=null)}function We(t){for(var n,e=Wu,r=Un(t[0][0],t[0][1],t[1][0],t[1][1]),i=e.length;i--;)n=e[i],(!Ze(n,t)||!r(n)||so(n.a.x-n.b.x)<To&&so(n.a.y-n.b.y)<To)&&(n.a=n.b=null,e.splice(i,1))}function Ze(t,n){var e=t.b;if(e)return!0;var r,i,a=t.a,o=n[0][0],u=n[1][0],s=n[0][1],c=n[1][1],l=t.l,f=t.r,h=l.x,d=l.y,p=f.x,g=f.y,y=(h+p)/2,m=(d+g)/2;if(g===d){if(o>y||y>=u)return;if(h>p){if(a){if(a.y>=c)return}else a={x:y,y:s};e={x:y,y:c}}else{if(a){if(a.y<s)return}else a={x:y,y:c};e={x:y,y:s}}}else if(r=(h-p)/(g-d),i=m-r*y,-1>r||r>1)if(h>p){if(a){if(a.y>=c)return}else a={x:(s-i)/r,y:s};e={x:(c-i)/r,y:c}}else{if(a){if(a.y<s)return}else a={x:(c-i)/r,y:c};e={x:(s-i)/r,y:s}}else if(g>d){if(a){if(a.x>=u)return}else a={x:o,y:r*o+i};e={x:u,y:r*u+i}}else{if(a){if(a.x<o)return}else a={x:u,y:r*u+i};e={x:o,y:r*o+i}}return t.a=a,t.b=e,!0}function Xe(t,n){this.l=t,this.r=n,this.a=this.b=null}function Ke(t,n,e,r){var i=new Xe(t,n);return Wu.push(i),e&&Qe(i,t,n,e),r&&Qe(i,n,t,r),Zu[t.i].edges.push(new tr(i,t,n)),Zu[n.i].edges.push(new tr(i,n,t)),i}function Je(t,n,e){var r=new Xe(t,null);return r.a=n,r.b=e,Wu.push(r),r}function Qe(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 tr(t,n,e){var r=t.a,i=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(i.x-r.x,r.y-i.y):Math.atan2(r.x-i.x,i.y-r.y)}function nr(){this._=null}function er(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function rr(t,n){var e=n,r=n.R,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function ir(t,n){var e=n,r=n.L,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function ar(t){for(;t.L;)t=t.L;return t}function or(t,n){var e,r,i,a=t.sort(ur).pop();for(Wu=[],Zu=new Array(t.length),Xu=new nr,Ju=new nr;;)if(i=Ku,a&&(!i||a.y<i.y||a.y===i.y&&a.x<i.x))(a.x!==e||a.y!==r)&&(Zu[a.i]=new ze(a),Pe(a),e=a.x,r=a.y),a=t.pop();else{if(!i)break;Re(i.arc)}n&&(We(n),Ye(n));var o={cells:Zu,edges:Wu};return Xu=Ju=Wu=Zu=null,o}function ur(t,n){return n.y-t.y||n.x-t.x}function sr(t,n,e){return(t.x-e.x)*(n.y-t.y)-(t.x-n.x)*(e.y-t.y)}function cr(t){return t.x}function lr(t){return t.y}function fr(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function hr(t,n,e,r,i,a){if(!t(n,e,r,i,a)){var o=.5*(e+i),u=.5*(r+a),s=n.nodes;s[0]&&hr(t,s[0],e,r,o,u),s[1]&&hr(t,s[1],o,r,i,u),s[2]&&hr(t,s[2],e,u,o,a),s[3]&&hr(t,s[3],o,u,i,a)}}function dr(t,n){t=Wa.rgb(t),n=Wa.rgb(n);var e=t.r,r=t.g,i=t.b,a=n.r-e,o=n.g-r,u=n.b-i;return function(t){return"#"+bt(Math.round(e+a*t))+bt(Math.round(r+o*t))+bt(Math.round(i+u*t))}}function pr(t,n){var e,r={},i={};for(e in t)e in n?r[e]=mr(t[e],n[e]):i[e]=t[e];for(e in n)e in t||(i[e]=n[e]);return function(t){for(e in r)i[e]=r[e](t);return i}}function gr(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function yr(t,n){var e,r,i,a=es.lastIndex=rs.lastIndex=0,o=-1,u=[],s=[];for(t+="",n+="";(e=es.exec(t))&&(r=rs.exec(n));)(i=r.index)>a&&(i=n.slice(a,i),u[o]?u[o]+=i:u[++o]=i),(e=e[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,s.push({i:o,x:gr(e,r)})),a=rs.lastIndex;return a<n.length&&(i=n.slice(a),u[o]?u[o]+=i:u[++o]=i),u.length<2?s[0]?(n=s[0].x,function(t){return n(t)+""}):function(){return n}:(n=s.length,function(t){for(var e,r=0;n>r;++r)u[(e=s[r]).i]=e.x(t);return u.join("")})}function mr(t,n){for(var e,r=Wa.interpolators.length;--r>=0&&!(e=Wa.interpolators[r](t,n)););return e}function vr(t,n){var e,r=[],i=[],a=t.length,o=n.length,u=Math.min(t.length,n.length);for(e=0;u>e;++e)r.push(mr(t[e],n[e]));for(;a>e;++e)i[e]=t[e];for(;o>e;++e)i[e]=n[e];return function(t){for(e=0;u>e;++e)i[e]=r[e](t);return i}}function br(t){return function(n){return 0>=n?0:n>=1?1:t(n)}}function _r(t){return function(n){return 1-t(1-n)}}function xr(t){return function(n){return.5*(.5>n?t(2*n):2-t(2-2*n))}}function wr(t){return t*t}function kr(t){return t*t*t}function Er(t){if(0>=t)return 0;if(t>=1)return 1;var n=t*t,e=n*t;return 4*(.5>t?e:3*(t-n)+e-.75)}function Mr(t){return function(n){return Math.pow(n,t)}}function Ar(t){return 1-Math.cos(t*Co)}function Dr(t){return Math.pow(2,10*(t-1))}function Sr(t){return 1-Math.sqrt(1-t*t)}function Cr(t,n){var e;return arguments.length<2&&(n=.45),arguments.length?e=n/So*Math.asin(1/t):(t=1,e=n/4),function(r){return 1+t*Math.pow(2,-10*r)*Math.sin((r-e)*So/n)}}function Tr(t){return t||(t=1.70158),function(n){return n*n*((t+1)*n-t)}}function Fr(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function Nr(t,n){t=Wa.hcl(t),n=Wa.hcl(n);var e=t.h,r=t.c,i=t.l,a=n.h-e,o=n.c-r,u=n.l-i;return isNaN(o)&&(o=0,r=isNaN(r)?n.c:r),isNaN(a)?(a=0,e=isNaN(e)?n.h:e):a>180?a-=360:-180>a&&(a+=360),function(t){return ct(e+a*t,r+o*t,i+u*t)+""}}function Lr(t,n){t=Wa.hsl(t),n=Wa.hsl(n);var e=t.h,r=t.s,i=t.l,a=n.h-e,o=n.s-r,u=n.l-i;return isNaN(o)&&(o=0,r=isNaN(r)?n.s:r),isNaN(a)?(a=0,e=isNaN(e)?n.h:e):a>180?a-=360:-180>a&&(a+=360),function(t){return ut(e+a*t,r+o*t,i+u*t)+""}}function Br(t,n){t=Wa.lab(t),n=Wa.lab(n);var e=t.l,r=t.a,i=t.b,a=n.l-e,o=n.a-r,u=n.b-i;return function(t){return ft(e+a*t,r+o*t,i+u*t)+""}}function Or(t,n){return n-=t,function(e){return Math.round(t+n*e)}}function Ir(t){var n=[t.a,t.b],e=[t.c,t.d],r=Rr(n),i=qr(n,e),a=Rr(Pr(e,n,-i))||0;n[0]*e[1]<e[0]*n[1]&&(n[0]*=-1,n[1]*=-1,r*=-1,i*=-1),this.rotate=(r?Math.atan2(n[1],n[0]):Math.atan2(-e[0],e[1]))*Lo,this.translate=[t.e,t.f],this.scale=[r,a],this.skew=a?Math.atan2(i,a)*Lo:0}function qr(t,n){return t[0]*n[0]+t[1]*n[1]}function Rr(t){var n=Math.sqrt(qr(t,t));return n&&(t[0]/=n,t[1]/=n),n}function Pr(t,n,e){return t[0]+=e*n[0],t[1]+=e*n[1],t}function jr(t,n){var e,r=[],i=[],a=Wa.transform(t),o=Wa.transform(n),u=a.translate,s=o.translate,c=a.rotate,l=o.rotate,f=a.skew,h=o.skew,d=a.scale,p=o.scale;return u[0]!=s[0]||u[1]!=s[1]?(r.push("translate(",null,",",null,")"),i.push({i:1,x:gr(u[0],s[0])},{i:3,x:gr(u[1],s[1])})):r.push(s[0]||s[1]?"translate("+s+")":""),c!=l?(c-l>180?l+=360:l-c>180&&(c+=360),i.push({i:r.push(r.pop()+"rotate(",null,")")-2,x:gr(c,l)})):l&&r.push(r.pop()+"rotate("+l+")"),f!=h?i.push({i:r.push(r.pop()+"skewX(",null,")")-2,x:gr(f,h)}):h&&r.push(r.pop()+"skewX("+h+")"),d[0]!=p[0]||d[1]!=p[1]?(e=r.push(r.pop()+"scale(",null,",",null,")"),i.push({i:e-4,x:gr(d[0],p[0])},{i:e-2,x:gr(d[1],p[1])})):(1!=p[0]||1!=p[1])&&r.push(r.pop()+"scale("+p+")"),e=i.length,function(t){for(var n,a=-1;++a<e;)r[(n=i[a]).i]=n.x(t);return r.join("")}}function Ur(t,n){return n=(n-=t=+t)||1/n,function(e){return(e-t)/n}}function zr(t,n){return n=(n-=t=+t)||1/n,function(e){return Math.max(0,Math.min(1,(e-t)/n))}}function Yr(t){for(var n=t.source,e=t.target,r=Hr(n,e),i=[n];n!==r;)n=n.parent,i.push(n);for(var a=i.length;e!==r;)i.splice(a,0,e),e=e.parent;return i}function Vr(t){for(var n=[],e=t.parent;null!=e;)n.push(t),t=e,e=e.parent;return n.push(t),n}function Hr(t,n){if(t===n)return t;for(var e=Vr(t),r=Vr(n),i=e.pop(),a=r.pop(),o=null;i===a;)o=i,i=e.pop(),a=r.pop();return o}function Gr(t){t.fixed|=2}function $r(t){t.fixed&=-7}function Wr(t){t.fixed|=4,t.px=t.x,t.py=t.y}function Zr(t){t.fixed&=-5}function Xr(t,n,e){var r=0,i=0;if(t.charge=0,!t.leaf)for(var a,o=t.nodes,u=o.length,s=-1;++s<u;)a=o[s],null!=a&&(Xr(a,n,e),t.charge+=a.charge,r+=a.charge*a.cx,i+=a.charge*a.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var c=n*e[t.point.index];t.charge+=t.pointCharge=c,r+=c*t.point.x,i+=c*t.point.y}t.cx=r/t.charge,t.cy=i/t.charge}function Kr(t,n){return Wa.rebind(t,n,"sort","children","value"),t.nodes=t,t.links=ri,t}function Jr(t,n){for(var e=[t];null!=(t=e.pop());)if(n(t),(i=t.children)&&(r=i.length))for(var r,i;--r>=0;)e.push(i[r])}function Qr(t,n){for(var e=[t],r=[];null!=(t=e.pop());)if(r.push(t),(a=t.children)&&(i=a.length))for(var i,a,o=-1;++o<i;)e.push(a[o]);for(;null!=(t=r.pop());)n(t)}function ti(t){return t.children}function ni(t){return t.value}function ei(t,n){return n.value-t.value}function ri(t){return Wa.merge(t.map(function(t){return(t.children||[]).map(function(n){return{source:t,target:n}})}))}function ii(t){return t.x}function ai(t){return t.y}function oi(t,n,e){t.y0=n,t.y=e}function ui(t){return Wa.range(t.length)}function si(t){for(var n=-1,e=t[0].length,r=[];++n<e;)r[n]=0;return r}function ci(t){for(var n,e=1,r=0,i=t[0][1],a=t.length;a>e;++e)(n=t[e][1])>i&&(r=e,i=n);return r}function li(t){return t.reduce(fi,0)}function fi(t,n){return t+n[1]}function hi(t,n){return di(t,Math.ceil(Math.log(n.length)/Math.LN2+1))}function di(t,n){for(var e=-1,r=+t[0],i=(t[1]-r)/n,a=[];++e<=n;)a[e]=i*e+r;return a}function pi(t){return[Wa.min(t),Wa.max(t)]}function gi(t,n){return t.value-n.value}function yi(t,n){var e=t._pack_next;t._pack_next=n,n._pack_prev=t,n._pack_next=e,e._pack_prev=n}function mi(t,n){t._pack_next=n,n._pack_prev=t}function vi(t,n){var e=n.x-t.x,r=n.y-t.y,i=t.r+n.r;return.999*i*i>e*e+r*r}function bi(t){function n(t){l=Math.min(t.x-t.r,l),f=Math.max(t.x+t.r,f),h=Math.min(t.y-t.r,h),d=Math.max(t.y+t.r,d)}if((e=t.children)&&(c=e.length)){var e,r,i,a,o,u,s,c,l=1/0,f=-1/0,h=1/0,d=-1/0;if(e.forEach(_i),r=e[0],r.x=-r.r,r.y=0,n(r),c>1&&(i=e[1],i.x=i.r,i.y=0,n(i),c>2))for(a=e[2],ki(r,i,a),n(a),yi(r,a),r._pack_prev=a,yi(a,i),i=r._pack_next,o=3;c>o;o++){ki(r,i,a=e[o]);var p=0,g=1,y=1;for(u=i._pack_next;u!==i;u=u._pack_next,g++)if(vi(u,a)){p=1;break}if(1==p)for(s=r._pack_prev;s!==u._pack_prev&&!vi(s,a);s=s._pack_prev,y++);p?(y>g||g==y&&i.r<r.r?mi(r,i=u):mi(r=s,i),o--):(yi(r,a),i=a,n(a))}var m=(l+f)/2,v=(h+d)/2,b=0;for(o=0;c>o;o++)a=e[o],a.x-=m,a.y-=v,b=Math.max(b,a.r+Math.sqrt(a.x*a.x+a.y*a.y));t.r=b,e.forEach(xi)}}function _i(t){t._pack_next=t._pack_prev=t}function xi(t){delete t._pack_next,delete t._pack_prev}function wi(t,n,e,r){var i=t.children;if(t.x=n+=r*t.x,t.y=e+=r*t.y,t.r*=r,i)for(var a=-1,o=i.length;++a<o;)wi(i[a],n,e,r)}function ki(t,n,e){var r=t.r+e.r,i=n.x-t.x,a=n.y-t.y;if(r&&(i||a)){var o=n.r+e.r,u=i*i+a*a;o*=o,r*=r;var s=.5+(r-o)/(2*u),c=Math.sqrt(Math.max(0,2*o*(r+u)-(r-=u)*r-o*o))/(2*u);e.x=t.x+s*i+c*a,e.y=t.y+s*a-c*i}else e.x=t.x+r,e.y=t.y}function Ei(t,n){return t.parent==n.parent?1:2}function Mi(t){var n=t.children;return n.length?n[0]:t.t}function Ai(t){var n,e=t.children;return(n=e.length)?e[n-1]:t.t}function Di(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 Si(t){for(var n,e=0,r=0,i=t.children,a=i.length;--a>=0;)n=i[a],n.z+=e,n.m+=e,e+=n.s+(r+=n.c)}function Ci(t,n,e){return t.a.parent===n.parent?t.a:e}function Ti(t){return 1+Wa.max(t,function(t){return t.y})}function Fi(t){return t.reduce(function(t,n){return t+n.x},0)/t.length}function Ni(t){var n=t.children;return n&&n.length?Ni(n[0]):t}function Li(t){var n,e=t.children;return e&&(n=e.length)?Li(e[n-1]):t}function Bi(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function Oi(t,n){var e=t.x+n[3],r=t.y+n[0],i=t.dx-n[1]-n[3],a=t.dy-n[0]-n[2];return 0>i&&(e+=i/2,i=0),0>a&&(r+=a/2,a=0),{x:e,y:r,dx:i,dy:a}}function Ii(t){var n=t[0],e=t[t.length-1];return e>n?[n,e]:[e,n]}function qi(t){return t.rangeExtent?t.rangeExtent():Ii(t.range())}function Ri(t,n,e,r){var i=e(t[0],t[1]),a=r(n[0],n[1]);return function(t){return a(i(t))}}function Pi(t,n){var e,r=0,i=t.length-1,a=t[r],o=t[i];return a>o&&(e=r,r=i,i=e,e=a,a=o,o=e),t[r]=n.floor(a),t[i]=n.ceil(o),t}function ji(t){return t?{floor:function(n){return Math.floor(n/t)*t},ceil:function(n){return Math.ceil(n/t)*t}}:ps}function Ui(t,n,e,r){var i=[],a=[],o=0,u=Math.min(t.length,n.length)-1;for(t[u]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++o<=u;)i.push(e(t[o-1],t[o])),a.push(r(n[o-1],n[o]));return function(n){var e=Wa.bisect(t,n,1,u)-1;return a[e](i[e](n))}}function zi(t,n,e,r){function i(){var i=Math.min(t.length,n.length)>2?Ui:Ri,s=r?zr:Ur;return o=i(t,n,s,e),u=i(n,t,s,mr),a}function a(t){return o(t)}var o,u;return a.invert=function(t){return u(t)},a.domain=function(n){return arguments.length?(t=n.map(Number),i()):t},a.range=function(t){return arguments.length?(n=t,i()):n},a.rangeRound=function(t){return a.range(t).interpolate(Or)},a.clamp=function(t){return arguments.length?(r=t,i()):r},a.interpolate=function(t){return arguments.length?(e=t,i()):e},a.ticks=function(n){return Gi(t,n)},a.tickFormat=function(n,e){return $i(t,n,e)},a.nice=function(n){return Vi(t,n),i()},a.copy=function(){return zi(t,n,e,r)},i()}function Yi(t,n){return Wa.rebind(t,n,"range","rangeRound","interpolate","clamp")}function Vi(t,n){return Pi(t,ji(Hi(t,n)[2]))}function Hi(t,n){null==n&&(n=10);var e=Ii(t),r=e[1]-e[0],i=Math.pow(10,Math.floor(Math.log(r/n)/Math.LN10)),a=n/r*i;return.15>=a?i*=10:.35>=a?i*=5:.75>=a&&(i*=2),e[0]=Math.ceil(e[0]/i)*i,e[1]=Math.floor(e[1]/i)*i+.5*i,e[2]=i,e}function Gi(t,n){return Wa.range.apply(Wa,Hi(t,n))}function $i(t,n,e){var r=Hi(t,n);if(e){var i=eu.exec(e);if(i.shift(),"s"===i[8]){var a=Wa.formatPrefix(Math.max(so(r[0]),so(r[1])));return i[7]||(i[7]="."+Wi(a.scale(r[2]))),i[8]="f",e=Wa.format(i.join("")),function(t){return e(a.scale(t))+a.symbol}}i[7]||(i[7]="."+Zi(i[8],r)),e=i.join("")}else e=",."+Wi(r[2])+"f";return Wa.format(e)}function Wi(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function Zi(t,n){var e=Wi(n[2]);return t in gs?Math.abs(e-Wi(Math.max(so(n[0]),so(n[1]))))+ +("e"!==t):e-2*("%"===t)}function Xi(t,n,e,r){function i(t){return(e?Math.log(0>t?0:t):-Math.log(t>0?0:-t))/Math.log(n)}function a(t){return e?Math.pow(n,t):-Math.pow(n,-t)}function o(n){return t(i(n))}return o.invert=function(n){return a(t.invert(n))},o.domain=function(n){return arguments.length?(e=n[0]>=0,t.domain((r=n.map(Number)).map(i)),o):r},o.base=function(e){return arguments.length?(n=+e,t.domain(r.map(i)),o):n},o.nice=function(){var n=Pi(r.map(i),e?Math:ms);return t.domain(n),r=n.map(a),o},o.ticks=function(){var t=Ii(r),o=[],u=t[0],s=t[1],c=Math.floor(i(u)),l=Math.ceil(i(s)),f=n%1?2:n;if(isFinite(l-c)){if(e){for(;l>c;c++)for(var h=1;f>h;h++)o.push(a(c)*h);o.push(a(c))}else for(o.push(a(c));c++<l;)for(var h=f-1;h>0;h--)o.push(a(c)*h);for(c=0;o[c]<u;c++);for(l=o.length;o[l-1]>s;l--);o=o.slice(c,l)}return o},o.tickFormat=function(t,n){if(!arguments.length)return ys;arguments.length<2?n=ys:"function"!=typeof n&&(n=Wa.format(n));var r,u=Math.max(.1,t/o.ticks().length),s=e?(r=1e-12,Math.ceil):(r=-1e-12,Math.floor);return function(t){return t/a(s(i(t)+r))<=u?n(t):""}},o.copy=function(){return Xi(t.copy(),n,e,r)},Yi(o,t)}function Ki(t,n,e){function r(n){return t(i(n))}var i=Ji(n),a=Ji(1/n);return r.invert=function(n){return a(t.invert(n))},r.domain=function(n){return arguments.length?(t.domain((e=n.map(Number)).map(i)),r):e},r.ticks=function(t){return Gi(e,t)},r.tickFormat=function(t,n){return $i(e,t,n)},r.nice=function(t){return r.domain(Vi(e,t))},r.exponent=function(o){return arguments.length?(i=Ji(n=o),a=Ji(1/n),t.domain(e.map(i)),r):n},r.copy=function(){return Ki(t.copy(),n,e)},Yi(r,t)}function Ji(t){return function(n){return 0>n?-Math.pow(-n,t):Math.pow(n,t)}}function Qi(t,n){function e(e){return a[((i.get(e)||("range"===n.t?i.set(e,t.push(e)):0/0))-1)%a.length]}function r(n,e){return Wa.range(t.length).map(function(t){return n+e*t})}var i,a,o;return e.domain=function(r){if(!arguments.length)return t;t=[],i=new u;for(var a,o=-1,s=r.length;++o<s;)i.has(a=r[o])||i.set(a,t.push(a));return e[n.t].apply(e,n.a)},e.range=function(t){return arguments.length?(a=t,o=0,n={t:"range",a:arguments},e):a},e.rangePoints=function(i,u){arguments.length<2&&(u=0);var s=i[0],c=i[1],l=(c-s)/(Math.max(1,t.length-1)+u);return a=r(t.length<2?(s+c)/2:s+l*u/2,l),o=0,n={t:"rangePoints",a:arguments},e},e.rangeBands=function(i,u,s){arguments.length<2&&(u=0),arguments.length<3&&(s=u);var c=i[1]<i[0],l=i[c-0],f=i[1-c],h=(f-l)/(t.length-u+2*s);return a=r(l+h*s,h),c&&a.reverse(),o=h*(1-u),n={t:"rangeBands",a:arguments},e},e.rangeRoundBands=function(i,u,s){arguments.length<2&&(u=0),arguments.length<3&&(s=u);var c=i[1]<i[0],l=i[c-0],f=i[1-c],h=Math.floor((f-l)/(t.length-u+2*s)),d=f-l-(t.length-u)*h;return a=r(l+Math.round(d/2),h),c&&a.reverse(),o=Math.round(h*(1-u)),n={t:"rangeRoundBands",a:arguments},e},e.rangeBand=function(){return o},e.rangeExtent=function(){return Ii(n.a[0])},e.copy=function(){return Qi(t,n)},e.domain(t)}function ta(r,i){function a(){var t=0,n=i.length;for(u=[];++t<n;)u[t-1]=Wa.quantile(r,t/n);return o}function o(t){return isNaN(t=+t)?void 0:i[Wa.bisect(u,t)]}var u;return o.domain=function(i){return arguments.length?(r=i.map(n).filter(e).sort(t),a()):r},o.range=function(t){return arguments.length?(i=t,a()):i},o.quantiles=function(){return u},o.invertExtent=function(t){return t=i.indexOf(t),0>t?[0/0,0/0]:[t>0?u[t-1]:r[0],t<u.length?u[t]:r[r.length-1]]},o.copy=function(){return ta(r,i)},a()}function na(t,n,e){function r(n){return e[Math.max(0,Math.min(o,Math.floor(a*(n-t))))]}function i(){return a=e.length/(n-t),o=e.length-1,r}var a,o;return r.domain=function(e){return arguments.length?(t=+e[0],n=+e[e.length-1],i()):[t,n]},r.range=function(t){return arguments.length?(e=t,i()):e},r.invertExtent=function(n){return n=e.indexOf(n),n=0>n?0/0:n/a+t,[n,n+1/a]},r.copy=function(){return na(t,n,e)},i()}function ea(t,n){function e(e){return e>=e?n[Wa.bisect(t,e)]:void 0}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 ea(t,n)},e}function ra(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 Gi(t,n)},n.tickFormat=function(n,e){return $i(t,n,e)},n.copy=function(){return ra(t)},n}function ia(t){return t.innerRadius}function aa(t){return t.outerRadius}function oa(t){return t.startAngle}function ua(t){return t.endAngle}function sa(t){function n(n){function o(){c.push("M",a(t(l),u))}for(var s,c=[],l=[],f=-1,h=n.length,d=Mt(e),p=Mt(r);++f<h;)i.call(this,s=n[f],f)?l.push([+d.call(this,s,f),+p.call(this,s,f)]):l.length&&(o(),l=[]);return l.length&&o(),c.length?c.join(""):null}var e=Se,r=Ce,i=Sn,a=ca,o=a.key,u=.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?(i=t,n):i},n.interpolate=function(t){return arguments.length?(o="function"==typeof t?a=t:(a=Es.get(t)||ca).key,n):o},n.tension=function(t){return arguments.length?(u=t,n):u},n}function ca(t){return t.join("L")}function la(t){return ca(t)+"Z"}function fa(t){for(var n=0,e=t.length,r=t[0],i=[r[0],",",r[1]];++n<e;)i.push("H",(r[0]+(r=t[n])[0])/2,"V",r[1]);return e>1&&i.push("H",r[0]),i.join("")}function ha(t){for(var n=0,e=t.length,r=t[0],i=[r[0],",",r[1]];++n<e;)i.push("V",(r=t[n])[1],"H",r[0]);return i.join("")}function da(t){for(var n=0,e=t.length,r=t[0],i=[r[0],",",r[1]];++n<e;)i.push("H",(r=t[n])[0],"V",r[1]);return i.join("")}function pa(t,n){return t.length<4?ca(t):t[1]+ma(t.slice(1,t.length-1),va(t,n))}function ga(t,n){return t.length<3?ca(t):t[0]+ma((t.push(t[0]),t),va([t[t.length-2]].concat(t,[t[1]]),n))}function ya(t,n){return t.length<3?ca(t):t[0]+ma(t,va(t,n))}function ma(t,n){if(n.length<1||t.length!=n.length&&t.length!=n.length+2)return ca(t);var e=t.length!=n.length,r="",i=t[0],a=t[1],o=n[0],u=o,s=1;if(e&&(r+="Q"+(a[0]-2*o[0]/3)+","+(a[1]-2*o[1]/3)+","+a[0]+","+a[1],i=t[1],s=2),n.length>1){u=n[1],a=t[s],s++,r+="C"+(i[0]+o[0])+","+(i[1]+o[1])+","+(a[0]-u[0])+","+(a[1]-u[1])+","+a[0]+","+a[1];for(var c=2;c<n.length;c++,s++)a=t[s],u=n[c],r+="S"+(a[0]-u[0])+","+(a[1]-u[1])+","+a[0]+","+a[1]}if(e){var l=t[s];r+="Q"+(a[0]+2*u[0]/3)+","+(a[1]+2*u[1]/3)+","+l[0]+","+l[1]}return r}function va(t,n){for(var e,r=[],i=(1-n)/2,a=t[0],o=t[1],u=1,s=t.length;++u<s;)e=a,a=o,o=t[u],r.push([i*(o[0]-e[0]),i*(o[1]-e[1])]);return r}function ba(t){if(t.length<3)return ca(t);var n=1,e=t.length,r=t[0],i=r[0],a=r[1],o=[i,i,i,(r=t[1])[0]],u=[a,a,a,r[1]],s=[i,",",a,"L",ka(Ds,o),",",ka(Ds,u)];for(t.push(t[e-1]);++n<=e;)r=t[n],o.shift(),o.push(r[0]),u.shift(),u.push(r[1]),Ea(s,o,u);return t.pop(),s.push("L",r),s.join("")}function _a(t){if(t.length<4)return ca(t);for(var n,e=[],r=-1,i=t.length,a=[0],o=[0];++r<3;)n=t[r],a.push(n[0]),o.push(n[1]);for(e.push(ka(Ds,a)+","+ka(Ds,o)),--r;++r<i;)n=t[r],a.shift(),a.push(n[0]),o.shift(),o.push(n[1]),Ea(e,a,o);return e.join("")}function xa(t){for(var n,e,r=-1,i=t.length,a=i+4,o=[],u=[];++r<4;)e=t[r%i],o.push(e[0]),u.push(e[1]);for(n=[ka(Ds,o),",",ka(Ds,u)],--r;++r<a;)e=t[r%i],o.shift(),o.push(e[0]),u.shift(),u.push(e[1]),Ea(n,o,u);return n.join("")}function wa(t,n){var e=t.length-1;if(e)for(var r,i,a=t[0][0],o=t[0][1],u=t[e][0]-a,s=t[e][1]-o,c=-1;++c<=e;)r=t[c],i=c/e,r[0]=n*r[0]+(1-n)*(a+i*u),r[1]=n*r[1]+(1-n)*(o+i*s);return ba(t)}function ka(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function Ea(t,n,e){t.push("C",ka(Ms,n),",",ka(Ms,e),",",ka(As,n),",",ka(As,e),",",ka(Ds,n),",",ka(Ds,e))}function Ma(t,n){return(n[1]-t[1])/(n[0]-t[0])}function Aa(t){for(var n=0,e=t.length-1,r=[],i=t[0],a=t[1],o=r[0]=Ma(i,a);++n<e;)r[n]=(o+(o=Ma(i=a,a=t[n+1])))/2;return r[n]=o,r}function Da(t){for(var n,e,r,i,a=[],o=Aa(t),u=-1,s=t.length-1;++u<s;)n=Ma(t[u],t[u+1]),so(n)<To?o[u]=o[u+1]=0:(e=o[u]/n,r=o[u+1]/n,i=e*e+r*r,i>9&&(i=3*n/Math.sqrt(i),o[u]=i*e,o[u+1]=i*r));for(u=-1;++u<=s;)i=(t[Math.min(s,u+1)][0]-t[Math.max(0,u-1)][0])/(6*(1+o[u]*o[u])),a.push([i||0,o[u]*i||0]);return a}function Sa(t){return t.length<3?ca(t):t[0]+ma(t,Da(t))}function Ca(t){for(var n,e,r,i=-1,a=t.length;++i<a;)n=t[i],e=n[0],r=n[1]+ws,n[0]=e*Math.cos(r),n[1]=e*Math.sin(r);return t}function Ta(t){function n(n){function s(){g.push("M",u(t(m),f),l,c(t(y.reverse()),f),"Z")}for(var h,d,p,g=[],y=[],m=[],v=-1,b=n.length,_=Mt(e),x=Mt(i),w=e===r?function(){return d}:Mt(r),k=i===a?function(){return p}:Mt(a);++v<b;)o.call(this,h=n[v],v)?(y.push([d=+_.call(this,h,v),p=+x.call(this,h,v)]),m.push([+w.call(this,h,v),+k.call(this,h,v)])):y.length&&(s(),y=[],m=[]);return y.length&&s(),g.length?g.join(""):null}var e=Se,r=Se,i=0,a=Ce,o=Sn,u=ca,s=u.key,c=u,l="L",f=.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?(i=a=t,n):a},n.y0=function(t){return arguments.length?(i=t,n):i},n.y1=function(t){return arguments.length?(a=t,n):a},n.defined=function(t){return arguments.length?(o=t,n):o},n.interpolate=function(t){return arguments.length?(s="function"==typeof t?u=t:(u=Es.get(t)||ca).key,c=u.reverse||u,l=u.closed?"M":"L",n):s},n.tension=function(t){return arguments.length?(f=t,n):f},n}function Fa(t){return t.radius}function Na(t){return[t.x,t.y]}function La(t){return function(){var n=t.apply(this,arguments),e=n[0],r=n[1]+ws;return[e*Math.cos(r),e*Math.sin(r)]}}function Ba(){return 64}function Oa(){return"circle"}function Ia(t){var n=Math.sqrt(t/Do);return"M0,"+n+"A"+n+","+n+" 0 1,1 0,"+-n+"A"+n+","+n+" 0 1,1 0,"+n+"Z"}function qa(t,n){return po(t,Ls),t.id=n,t}function Ra(t,n,e,r){var i=t.id;return P(t,"function"==typeof e?function(t,a,o){t.__transition__[i].tween.set(n,r(e.call(t,t.__data__,a,o)))}:(e=r(e),function(t){t.__transition__[i].tween.set(n,e)}))}function Pa(t){return null==t&&(t=""),function(){this.textContent=t}}function ja(t,n,e,r){var i=t.__transition__||(t.__transition__={active:0,count:0}),a=i[e];if(!a){var o=r.time;a=i[e]={tween:new u,time:o,ease:r.ease,delay:r.delay,duration:r.duration},++i.count,Wa.timer(function(r){function u(r){return i.active>e?c():(i.active=e,a.event&&a.event.start.call(t,l,n),a.tween.forEach(function(e,r){
  (r=r.call(t,l,n))&&g.push(r)}),void Wa.timer(function(){return p.c=s(r||1)?Sn:s,1},0,o))}function s(r){if(i.active!==e)return c();for(var o=r/d,u=f(o),s=g.length;s>0;)g[--s].call(t,u);return o>=1?(a.event&&a.event.end.call(t,l,n),c()):void 0}function c(){return--i.count?delete i[e]:delete t.__transition__,1}var l=t.__data__,f=a.ease,h=a.delay,d=a.duration,p=Qo,g=[];return p.t=h+o,r>=h?u(r-h):void(p.c=u)},0,o)}}function Ua(t,n,e){t.attr("transform",function(t){var r=n(t);return"translate("+(isFinite(r)?r:e(t))+",0)"})}function za(t,n,e){t.attr("transform",function(t){var r=n(t);return"translate(0,"+(isFinite(r)?r:e(t))+")"})}function Ya(t){return t.toISOString()}function Va(t,n,e){function r(n){return t(n)}function i(t,e){var r=t[1]-t[0],i=r/e,a=Wa.bisect(zs,i);return a==zs.length?[n.year,Hi(t.map(function(t){return t/31536e6}),e)[2]]:a?n[i/zs[a-1]<zs[a]/i?a-1:a]:[Hs,Hi(t,e)[2]]}return r.invert=function(n){return Ha(t.invert(n))},r.domain=function(n){return arguments.length?(t.domain(n),r):t.domain().map(Ha)},r.nice=function(t,n){function e(e){return!isNaN(e)&&!t.range(e,Ha(+e+1),n).length}var a=r.domain(),o=Ii(a),u=null==t?i(o,10):"number"==typeof t&&i(o,t);return u&&(t=u[0],n=u[1]),r.domain(Pi(a,n>1?{floor:function(n){for(;e(n=t.floor(n));)n=Ha(n-1);return n},ceil:function(n){for(;e(n=t.ceil(n));)n=Ha(+n+1);return n}}:t))},r.ticks=function(t,n){var e=Ii(r.domain()),a=null==t?i(e,10):"number"==typeof t?i(e,t):!t.range&&[{range:t},n];return a&&(t=a[0],n=a[1]),t.range(e[0],Ha(+e[1]+1),1>n?1:n)},r.tickFormat=function(){return e},r.copy=function(){return Va(t.copy(),n,e)},Yi(r,t)}function Ha(t){return new Date(t)}function Ga(t){return JSON.parse(t.responseText)}function $a(t){var n=Ka.createRange();return n.selectNode(Ka.body),n.createContextualFragment(t.responseText)}var Wa={version:"3.4.13"};Date.now||(Date.now=function(){return+new Date});var Za=[].slice,Xa=function(t){return Za.call(t)},Ka=document,Ja=Ka.documentElement,Qa=window;try{Xa(Ja.childNodes)[0].nodeType}catch(to){Xa=function(t){for(var n=t.length,e=new Array(n);n--;)e[n]=t[n];return e}}try{Ka.createElement("div").style.setProperty("opacity",0,"")}catch(no){var eo=Qa.Element.prototype,ro=eo.setAttribute,io=eo.setAttributeNS,ao=Qa.CSSStyleDeclaration.prototype,oo=ao.setProperty;eo.setAttribute=function(t,n){ro.call(this,t,n+"")},eo.setAttributeNS=function(t,n,e){io.call(this,t,n,e+"")},ao.setProperty=function(t,n,e){oo.call(this,t,n+"",e)}}Wa.ascending=t,Wa.descending=function(t,n){return t>n?-1:n>t?1:n>=t?0:0/0},Wa.min=function(t,n){var e,r,i=-1,a=t.length;if(1===arguments.length){for(;++i<a&&!(null!=(e=t[i])&&e>=e);)e=void 0;for(;++i<a;)null!=(r=t[i])&&e>r&&(e=r)}else{for(;++i<a&&!(null!=(e=n.call(t,t[i],i))&&e>=e);)e=void 0;for(;++i<a;)null!=(r=n.call(t,t[i],i))&&e>r&&(e=r)}return e},Wa.max=function(t,n){var e,r,i=-1,a=t.length;if(1===arguments.length){for(;++i<a&&!(null!=(e=t[i])&&e>=e);)e=void 0;for(;++i<a;)null!=(r=t[i])&&r>e&&(e=r)}else{for(;++i<a&&!(null!=(e=n.call(t,t[i],i))&&e>=e);)e=void 0;for(;++i<a;)null!=(r=n.call(t,t[i],i))&&r>e&&(e=r)}return e},Wa.extent=function(t,n){var e,r,i,a=-1,o=t.length;if(1===arguments.length){for(;++a<o&&!(null!=(e=i=t[a])&&e>=e);)e=i=void 0;for(;++a<o;)null!=(r=t[a])&&(e>r&&(e=r),r>i&&(i=r))}else{for(;++a<o&&!(null!=(e=i=n.call(t,t[a],a))&&e>=e);)e=void 0;for(;++a<o;)null!=(r=n.call(t,t[a],a))&&(e>r&&(e=r),r>i&&(i=r))}return[e,i]},Wa.sum=function(t,n){var r,i=0,a=t.length,o=-1;if(1===arguments.length)for(;++o<a;)e(r=+t[o])&&(i+=r);else for(;++o<a;)e(r=+n.call(t,t[o],o))&&(i+=r);return i},Wa.mean=function(t,r){var i,a=0,o=t.length,u=-1,s=o;if(1===arguments.length)for(;++u<o;)e(i=n(t[u]))?a+=i:--s;else for(;++u<o;)e(i=n(r.call(t,t[u],u)))?a+=i:--s;return s?a/s:void 0},Wa.quantile=function(t,n){var e=(t.length-1)*n+1,r=Math.floor(e),i=+t[r-1],a=e-r;return a?i+a*(t[r]-i):i},Wa.median=function(r,i){var a,o=[],u=r.length,s=-1;if(1===arguments.length)for(;++s<u;)e(a=n(r[s]))&&o.push(a);else for(;++s<u;)e(a=n(i.call(r,r[s],s)))&&o.push(a);return o.length?Wa.quantile(o.sort(t),.5):void 0};var uo=r(t);Wa.bisectLeft=uo.left,Wa.bisect=Wa.bisectRight=uo.right,Wa.bisector=function(n){return r(1===n.length?function(e,r){return t(n(e),r)}:n)},Wa.shuffle=function(t){for(var n,e,r=t.length;r;)e=0|Math.random()*r--,n=t[r],t[r]=t[e],t[e]=n;return t},Wa.permute=function(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r},Wa.pairs=function(t){for(var n,e=0,r=t.length-1,i=t[0],a=new Array(0>r?0:r);r>e;)a[e]=[n=i,i=t[++e]];return a},Wa.zip=function(){if(!(r=arguments.length))return[];for(var t=-1,n=Wa.min(arguments,i),e=new Array(n);++t<n;)for(var r,a=-1,o=e[t]=new Array(r);++a<r;)o[a]=arguments[a][t];return e},Wa.transpose=function(t){return Wa.zip.apply(Wa,t)},Wa.keys=function(t){var n=[];for(var e in t)n.push(e);return n},Wa.values=function(t){var n=[];for(var e in t)n.push(t[e]);return n},Wa.entries=function(t){var n=[];for(var e in t)n.push({key:e,value:t[e]});return n},Wa.merge=function(t){for(var n,e,r,i=t.length,a=-1,o=0;++a<i;)o+=t[a].length;for(e=new Array(o);--i>=0;)for(r=t[i],n=r.length;--n>=0;)e[--o]=r[n];return e};var so=Math.abs;Wa.range=function(t,n,e){if(arguments.length<3&&(e=1,arguments.length<2&&(n=t,t=0)),1/0===(n-t)/e)throw new Error("infinite range");var r,i=[],o=a(so(e)),u=-1;if(t*=o,n*=o,e*=o,0>e)for(;(r=t+e*++u)>n;)i.push(r/o);else for(;(r=t+e*++u)<n;)i.push(r/o);return i},Wa.map=function(t){var n=new u;if(t instanceof u)t.forEach(function(t,e){n.set(t,e)});else for(var e in t)n.set(e,t[e]);return n};var co="__proto__",lo="\x00";o(u,{has:l,get:function(t){return this._[s(t)]},set:function(t,n){return this._[s(t)]=n},remove:f,keys:h,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:c(n),value:this._[n]});return t},size:d,empty:p,forEach:function(t){for(var n in this._)t.call(this,c(n),this._[n])}}),Wa.nest=function(){function t(n,o,s){if(s>=a.length)return r?r.call(i,o):e?o.sort(e):o;for(var c,l,f,h,d=-1,p=o.length,g=a[s++],y=new u;++d<p;)(h=y.get(c=g(l=o[d])))?h.push(l):y.set(c,[l]);return n?(l=n(),f=function(e,r){l.set(e,t(n,r,s))}):(l={},f=function(e,r){l[e]=t(n,r,s)}),y.forEach(f),l}function n(t,e){if(e>=a.length)return t;var r=[],i=o[e++];return t.forEach(function(t,i){r.push({key:t,values:n(i,e)})}),i?r.sort(function(t,n){return i(t.key,n.key)}):r}var e,r,i={},a=[],o=[];return i.map=function(n,e){return t(e,n,0)},i.entries=function(e){return n(t(Wa.map,e,0),0)},i.key=function(t){return a.push(t),i},i.sortKeys=function(t){return o[a.length-1]=t,i},i.sortValues=function(t){return e=t,i},i.rollup=function(t){return r=t,i},i},Wa.set=function(t){var n=new g;if(t)for(var e=0,r=t.length;r>e;++e)n.add(t[e]);return n},o(g,{has:l,add:function(t){return this._[s(t+="")]=!0,t},remove:f,values:h,size:d,empty:p,forEach:function(t){for(var n in this._)t.call(this,c(n))}}),Wa.behavior={},Wa.rebind=function(t,n){for(var e,r=1,i=arguments.length;++r<i;)t[e=arguments[r]]=y(t,n,n[e]);return t};var fo=["webkit","ms","moz","Moz","o","O"];Wa.dispatch=function(){for(var t=new b,n=-1,e=arguments.length;++n<e;)t[arguments[n]]=_(t);return t},b.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}},Wa.event=null,Wa.requote=function(t){return t.replace(ho,"\\$&")};var ho=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,po={}.__proto__?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)t[e]=n[e]},go=function(t,n){return n.querySelector(t)},yo=function(t,n){return n.querySelectorAll(t)},mo=Ja.matches||Ja[m(Ja,"matchesSelector")],vo=function(t,n){return mo.call(t,n)};"function"==typeof Sizzle&&(go=function(t,n){return Sizzle(t,n)[0]||null},yo=Sizzle,vo=Sizzle.matchesSelector),Wa.selection=function(){return wo};var bo=Wa.selection.prototype=[];bo.select=function(t){var n,e,r,i,a=[];t=M(t);for(var o=-1,u=this.length;++o<u;){a.push(n=[]),n.parentNode=(r=this[o]).parentNode;for(var s=-1,c=r.length;++s<c;)(i=r[s])?(n.push(e=t.call(i,i.__data__,s,o)),e&&"__data__"in i&&(e.__data__=i.__data__)):n.push(null)}return E(a)},bo.selectAll=function(t){var n,e,r=[];t=A(t);for(var i=-1,a=this.length;++i<a;)for(var o=this[i],u=-1,s=o.length;++u<s;)(e=o[u])&&(r.push(n=Xa(t.call(e,e.__data__,u,i))),n.parentNode=e);return E(r)};var _o={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};Wa.ns={prefix:_o,qualify:function(t){var n=t.indexOf(":"),e=t;return n>=0&&(e=t.slice(0,n),t=t.slice(n+1)),_o.hasOwnProperty(e)?{space:_o[e],local:t}:t}},bo.attr=function(t,n){if(arguments.length<2){if("string"==typeof t){var e=this.node();return t=Wa.ns.qualify(t),t.local?e.getAttributeNS(t.space,t.local):e.getAttribute(t)}for(n in t)this.each(D(n,t[n]));return this}return this.each(D(t,n))},bo.classed=function(t,n){if(arguments.length<2){if("string"==typeof t){var e=this.node(),r=(t=T(t)).length,i=-1;if(n=e.classList){for(;++i<r;)if(!n.contains(t[i]))return!1}else for(n=e.getAttribute("class");++i<r;)if(!C(t[i]).test(n))return!1;return!0}for(n in t)this.each(F(n,t[n]));return this}return this.each(F(t,n))},bo.style=function(t,n,e){var r=arguments.length;if(3>r){if("string"!=typeof t){2>r&&(n="");for(e in t)this.each(L(e,t[e],n));return this}if(2>r)return Qa.getComputedStyle(this.node(),null).getPropertyValue(t);e=""}return this.each(L(t,n,e))},bo.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))},bo.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},bo.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},bo.append=function(t){return t=O(t),this.select(function(){return this.appendChild(t.apply(this,arguments))})},bo.insert=function(t,n){return t=O(t),n=M(n),this.select(function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)})},bo.remove=function(){return this.each(function(){var t=this.parentNode;t&&t.removeChild(this)})},bo.data=function(t,n){function e(t,e){var r,i,a,o=t.length,f=e.length,h=Math.min(o,f),d=new Array(f),p=new Array(f),g=new Array(o);if(n){var y,m=new u,v=new Array(o);for(r=-1;++r<o;)m.has(y=n.call(i=t[r],i.__data__,r))?g[r]=i:m.set(y,i),v[r]=y;for(r=-1;++r<f;)(i=m.get(y=n.call(e,a=e[r],r)))?i!==!0&&(d[r]=i,i.__data__=a):p[r]=I(a),m.set(y,!0);for(r=-1;++r<o;)m.get(v[r])!==!0&&(g[r]=t[r])}else{for(r=-1;++r<h;)i=t[r],a=e[r],i?(i.__data__=a,d[r]=i):p[r]=I(a);for(;f>r;++r)p[r]=I(e[r]);for(;o>r;++r)g[r]=t[r]}p.update=d,p.parentNode=d.parentNode=g.parentNode=t.parentNode,s.push(p),c.push(d),l.push(g)}var r,i,a=-1,o=this.length;if(!arguments.length){for(t=new Array(o=(r=this[0]).length);++a<o;)(i=r[a])&&(t[a]=i.__data__);return t}var s=j([]),c=E([]),l=E([]);if("function"==typeof t)for(;++a<o;)e(r=this[a],t.call(r,r.parentNode.__data__,a));else for(;++a<o;)e(r=this[a],t);return c.enter=function(){return s},c.exit=function(){return l},c},bo.datum=function(t){return arguments.length?this.property("__data__",t):this.property("__data__")},bo.filter=function(t){var n,e,r,i=[];"function"!=typeof t&&(t=q(t));for(var a=0,o=this.length;o>a;a++){i.push(n=[]),n.parentNode=(e=this[a]).parentNode;for(var u=0,s=e.length;s>u;u++)(r=e[u])&&t.call(r,r.__data__,u,a)&&n.push(r)}return E(i)},bo.order=function(){for(var t=-1,n=this.length;++t<n;)for(var e,r=this[t],i=r.length-1,a=r[i];--i>=0;)(e=r[i])&&(a&&a!==e.nextSibling&&a.parentNode.insertBefore(e,a),a=e);return this},bo.sort=function(t){t=R.apply(this,arguments);for(var n=-1,e=this.length;++n<e;)this[n].sort(t);return this.order()},bo.each=function(t){return P(this,function(n,e,r){t.call(n,n.__data__,e,r)})},bo.call=function(t){var n=Xa(arguments);return t.apply(n[0]=this,n),this},bo.empty=function(){return!this.node()},bo.node=function(){for(var t=0,n=this.length;n>t;t++)for(var e=this[t],r=0,i=e.length;i>r;r++){var a=e[r];if(a)return a}return null},bo.size=function(){var t=0;return P(this,function(){++t}),t};var xo=[];Wa.selection.enter=j,Wa.selection.enter.prototype=xo,xo.append=bo.append,xo.empty=bo.empty,xo.node=bo.node,xo.call=bo.call,xo.size=bo.size,xo.select=function(t){for(var n,e,r,i,a,o=[],u=-1,s=this.length;++u<s;){r=(i=this[u]).update,o.push(n=[]),n.parentNode=i.parentNode;for(var c=-1,l=i.length;++c<l;)(a=i[c])?(n.push(r[c]=e=t.call(i.parentNode,a.__data__,c,u)),e.__data__=a.__data__):n.push(null)}return E(o)},xo.insert=function(t,n){return arguments.length<2&&(n=U(this)),bo.insert.call(this,t,n)},bo.transition=function(){for(var t,n,e=Cs||++Bs,r=[],i=Ts||{time:Date.now(),ease:Er,delay:0,duration:250},a=-1,o=this.length;++a<o;){r.push(t=[]);for(var u=this[a],s=-1,c=u.length;++s<c;)(n=u[s])&&ja(n,s,e,i),t.push(n)}return qa(r,e)},bo.interrupt=function(){return this.each(z)},Wa.select=function(t){var n=["string"==typeof t?go(t,Ka):t];return n.parentNode=Ja,E([n])},Wa.selectAll=function(t){var n=Xa("string"==typeof t?yo(t,Ka):t);return n.parentNode=Ja,E([n])};var wo=Wa.select(Ja);bo.on=function(t,n,e){var r=arguments.length;if(3>r){if("string"!=typeof t){2>r&&(n=!1);for(e in t)this.each(Y(e,t[e],n));return this}if(2>r)return(r=this.node()["__on"+t])&&r._;e=!1}return this.each(Y(t,n,e))};var ko=Wa.map({mouseenter:"mouseover",mouseleave:"mouseout"});ko.forEach(function(t){"on"+t in Ka&&ko.remove(t)});var Eo="onselectstart"in Ka?null:m(Ja.style,"userSelect"),Mo=0;Wa.mouse=function(t){return $(t,w())};var Ao=/WebKit/.test(Qa.navigator.userAgent)?-1:0;Wa.touch=function(t,n,e){if(arguments.length<3&&(e=n,n=w().changedTouches),n)for(var r,i=0,a=n.length;a>i;++i)if((r=n[i]).identifier===e)return $(t,r)},Wa.behavior.drag=function(){function t(){this.on("mousedown.drag",i).on("touchstart.drag",a)}function n(t,n,i,a,o){return function(){function u(){var t,e,r=n(h,g);r&&(t=r[0]-b[0],e=r[1]-b[1],p|=t|e,b=r,d({type:"drag",x:r[0]+c[0],y:r[1]+c[1],dx:t,dy:e}))}function s(){n(h,g)&&(m.on(a+y,null).on(o+y,null),v(p&&Wa.event.target===f),d({type:"dragend"}))}var c,l=this,f=Wa.event.target,h=l.parentNode,d=e.of(l,arguments),p=0,g=t(),y=".drag"+(null==g?"":"-"+g),m=Wa.select(i()).on(a+y,u).on(o+y,s),v=G(),b=n(h,g);r?(c=r.apply(l,arguments),c=[c.x-b[0],c.y-b[1]]):c=[0,0],d({type:"dragstart"})}}var e=k(t,"drag","dragstart","dragend"),r=null,i=n(v,Wa.mouse,X,"mousemove","mouseup"),a=n(W,Wa.touch,Z,"touchmove","touchend");return t.origin=function(n){return arguments.length?(r=n,t):r},Wa.rebind(t,e,"on")},Wa.touches=function(t,n){return arguments.length<2&&(n=w().touches),n?Xa(n).map(function(n){var e=$(t,n);return e.identifier=n.identifier,e}):[]};var Do=Math.PI,So=2*Do,Co=Do/2,To=1e-6,Fo=To*To,No=Do/180,Lo=180/Do,Bo=Math.SQRT2,Oo=2,Io=4;Wa.interpolateZoom=function(t,n){function e(t){var n=t*v;if(m){var e=et(g),o=a/(Oo*h)*(e*rt(Bo*n+g)-nt(g));return[r+o*c,i+o*l,a*e/et(Bo*n+g)]}return[r+t*c,i+t*l,a*Math.exp(Bo*n)]}var r=t[0],i=t[1],a=t[2],o=n[0],u=n[1],s=n[2],c=o-r,l=u-i,f=c*c+l*l,h=Math.sqrt(f),d=(s*s-a*a+Io*f)/(2*a*Oo*h),p=(s*s-a*a-Io*f)/(2*s*Oo*h),g=Math.log(Math.sqrt(d*d+1)-d),y=Math.log(Math.sqrt(p*p+1)-p),m=y-g,v=(m||Math.log(s/a))/Bo;return e.duration=1e3*v,e},Wa.behavior.zoom=function(){function t(t){t.on(D,c).on(Po+".zoom",f).on("dblclick.zoom",h).on(T,l)}function n(t){return[(t[0]-E.x)/E.k,(t[1]-E.y)/E.k]}function e(t){return[t[0]*E.k+E.x,t[1]*E.k+E.y]}function r(t){E.k=Math.max(A[0],Math.min(A[1],t))}function i(t,n){n=e(n),E.x+=t[0]-n[0],E.y+=t[1]-n[1]}function a(){b&&b.domain(v.range().map(function(t){return(t-E.x)/E.k}).map(v.invert)),w&&w.domain(_.range().map(function(t){return(t-E.y)/E.k}).map(_.invert))}function o(t){t({type:"zoomstart"})}function u(t){a(),t({type:"zoom",scale:E.k,translate:[E.x,E.y]})}function s(t){t({type:"zoomend"})}function c(){function t(){l=1,i(Wa.mouse(r),h),u(c)}function e(){f.on(S,null).on(C,null),d(l&&Wa.event.target===a),s(c)}var r=this,a=Wa.event.target,c=F.of(r,arguments),l=0,f=Wa.select(Qa).on(S,t).on(C,e),h=n(Wa.mouse(r)),d=G();z.call(r),o(c)}function l(){function t(){var t=Wa.touches(d);return h=E.k,t.forEach(function(t){t.identifier in g&&(g[t.identifier]=n(t))}),t}function e(){var n=Wa.event.target;Wa.select(n).on(b,a).on(_,f),w.push(n);for(var e=Wa.event.changedTouches,o=0,s=e.length;s>o;++o)g[e[o].identifier]=null;var c=t(),l=Date.now();if(1===c.length){if(500>l-m){var h=c[0],d=g[h.identifier];r(2*E.k),i(h,d),x(),u(p)}m=l}else if(c.length>1){var h=c[0],v=c[1],k=h[0]-v[0],M=h[1]-v[1];y=k*k+M*M}}function a(){for(var t,n,e,a,o=Wa.touches(d),s=0,c=o.length;c>s;++s,a=null)if(e=o[s],a=g[e.identifier]){if(n)break;t=e,n=a}if(a){var l=(l=e[0]-t[0])*l+(l=e[1]-t[1])*l,f=y&&Math.sqrt(l/y);t=[(t[0]+e[0])/2,(t[1]+e[1])/2],n=[(n[0]+a[0])/2,(n[1]+a[1])/2],r(f*h)}m=null,i(t,n),u(p)}function f(){if(Wa.event.touches.length){for(var n=Wa.event.changedTouches,e=0,r=n.length;r>e;++e)delete g[n[e].identifier];for(var i in g)return void t()}Wa.selectAll(w).on(v,null),k.on(D,c).on(T,l),M(),s(p)}var h,d=this,p=F.of(d,arguments),g={},y=0,v=".zoom-"+Wa.event.changedTouches[0].identifier,b="touchmove"+v,_="touchend"+v,w=[],k=Wa.select(d),M=G();z.call(d),e(),o(p),k.on(D,null).on(T,e)}function f(){var t=F.of(this,arguments);y?clearTimeout(y):(d=n(p=g||Wa.mouse(this)),z.call(this),o(t)),y=setTimeout(function(){y=null,s(t)},50),x(),r(Math.pow(2,.002*qo())*E.k),i(p,d),u(t)}function h(){var t=F.of(this,arguments),e=Wa.mouse(this),a=n(e),c=Math.log(E.k)/Math.LN2;o(t),r(Math.pow(2,Wa.event.shiftKey?Math.ceil(c)-1:Math.floor(c)+1)),i(e,a),u(t),s(t)}var d,p,g,y,m,v,b,_,w,E={x:0,y:0,k:1},M=[960,500],A=Ro,D="mousedown.zoom",S="mousemove.zoom",C="mouseup.zoom",T="touchstart.zoom",F=k(t,"zoomstart","zoom","zoomend");return t.event=function(t){t.each(function(){var t=F.of(this,arguments),n=E;Cs?Wa.select(this).transition().each("start.zoom",function(){E=this.__chart__||{x:0,y:0,k:1},o(t)}).tween("zoom:zoom",function(){var e=M[0],r=M[1],i=e/2,a=r/2,o=Wa.interpolateZoom([(i-E.x)/E.k,(a-E.y)/E.k,e/E.k],[(i-n.x)/n.k,(a-n.y)/n.k,e/n.k]);return function(n){var r=o(n),s=e/r[2];this.__chart__=E={x:i-r[0]*s,y:a-r[1]*s,k:s},u(t)}}).each("end.zoom",function(){s(t)}):(this.__chart__=E,o(t),u(t),s(t))})},t.translate=function(n){return arguments.length?(E={x:+n[0],y:+n[1],k:E.k},a(),t):[E.x,E.y]},t.scale=function(n){return arguments.length?(E={x:E.x,y:E.y,k:+n},a(),t):E.k},t.scaleExtent=function(n){return arguments.length?(A=null==n?Ro:[+n[0],+n[1]],t):A},t.center=function(n){return arguments.length?(g=n&&[+n[0],+n[1]],t):g},t.size=function(n){return arguments.length?(M=n&&[+n[0],+n[1]],t):M},t.x=function(n){return arguments.length?(b=n,v=n.copy(),E={x:0,y:0,k:1},t):b},t.y=function(n){return arguments.length?(w=n,_=n.copy(),E={x:0,y:0,k:1},t):w},Wa.rebind(t,F,"on")};var qo,Ro=[0,1/0],Po="onwheel"in Ka?(qo=function(){return-Wa.event.deltaY*(Wa.event.deltaMode?120:1)},"wheel"):"onmousewheel"in Ka?(qo=function(){return Wa.event.wheelDelta},"mousewheel"):(qo=function(){return-Wa.event.detail},"MozMousePixelScroll");Wa.color=at,at.prototype.toString=function(){return this.rgb()+""},Wa.hsl=ot;var jo=ot.prototype=new at;jo.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new ot(this.h,this.s,this.l/t)},jo.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new ot(this.h,this.s,t*this.l)},jo.rgb=function(){return ut(this.h,this.s,this.l)},Wa.hcl=st;var Uo=st.prototype=new at;Uo.brighter=function(t){return new st(this.h,this.c,Math.min(100,this.l+zo*(arguments.length?t:1)))},Uo.darker=function(t){return new st(this.h,this.c,Math.max(0,this.l-zo*(arguments.length?t:1)))},Uo.rgb=function(){return ct(this.h,this.c,this.l).rgb()},Wa.lab=lt;var zo=18,Yo=.95047,Vo=1,Ho=1.08883,Go=lt.prototype=new at;Go.brighter=function(t){return new lt(Math.min(100,this.l+zo*(arguments.length?t:1)),this.a,this.b)},Go.darker=function(t){return new lt(Math.max(0,this.l-zo*(arguments.length?t:1)),this.a,this.b)},Go.rgb=function(){return ft(this.l,this.a,this.b)},Wa.rgb=yt;var $o=yt.prototype=new at;$o.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var n=this.r,e=this.g,r=this.b,i=30;return n||e||r?(n&&i>n&&(n=i),e&&i>e&&(e=i),r&&i>r&&(r=i),new yt(Math.min(255,n/t),Math.min(255,e/t),Math.min(255,r/t))):new yt(i,i,i)},$o.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new yt(t*this.r,t*this.g,t*this.b)},$o.hsl=function(){return xt(this.r,this.g,this.b)},$o.toString=function(){return"#"+bt(this.r)+bt(this.g)+bt(this.b)};var Wo=Wa.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,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});Wo.forEach(function(t,n){Wo.set(t,mt(n))}),Wa.functor=Mt,Wa.xhr=Dt(At),Wa.dsv=function(t,n){function e(t,e,a){arguments.length<3&&(a=e,e=null);var o=St(t,n,null==e?r:i(e),a);return o.row=function(t){return arguments.length?o.response(null==(e=t)?r:i(t)):e},o}function r(t){return e.parse(t.responseText)}function i(t){return function(n){return e.parse(n.responseText,t)}}function a(n){return n.map(o).join(t)}function o(t){return u.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}var u=new RegExp('["'+t+"\n]"),s=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 i=new Function("d","return {"+t.map(function(t,n){return JSON.stringify(t)+": d["+n+"]"}).join(",")+"}");r=n?function(t,e){return n(i(t),e)}:i})},e.parseRows=function(t,n){function e(){if(l>=c)return o;if(i)return i=!1,a;var n=l;if(34===t.charCodeAt(n)){for(var e=n;e++<c;)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?(i=!0,10===t.charCodeAt(e+2)&&++l):10===r&&(i=!0),t.slice(n+1,e).replace(/""/g,'"')}for(;c>l;){var r=t.charCodeAt(l++),u=1;if(10===r)i=!0;else if(13===r)i=!0,10===t.charCodeAt(l)&&(++l,++u);else if(r!==s)continue;return t.slice(n,l-u)}return t.slice(n)}for(var r,i,a={},o={},u=[],c=t.length,l=0,f=0;(r=e())!==o;){for(var h=[];r!==a&&r!==o;)h.push(r),r=e();n&&null==(h=n(h,f++))||u.push(h)}return u},e.format=function(n){if(Array.isArray(n[0]))return e.formatRows(n);var r=new g,i=[];return n.forEach(function(t){for(var n in t)r.has(n)||i.push(r.add(n))}),[i.map(o).join(t)].concat(n.map(function(n){return i.map(function(t){return o(n[t])}).join(t)})).join("\n")},e.formatRows=function(t){return t.map(a).join("\n")},e},Wa.csv=Wa.dsv(",","text/csv"),Wa.tsv=Wa.dsv("	","text/tab-separated-values");var Zo,Xo,Ko,Jo,Qo,tu=Qa[m(Qa,"requestAnimationFrame")]||function(t){setTimeout(t,17)};Wa.timer=function(t,n,e){var r=arguments.length;2>r&&(n=0),3>r&&(e=Date.now());var i=e+n,a={c:t,t:i,f:!1,n:null};Xo?Xo.n=a:Zo=a,Xo=a,Ko||(Jo=clearTimeout(Jo),Ko=1,tu(Ft))},Wa.timer.flush=function(){Nt(),Lt()},Wa.round=function(t,n){return n?Math.round(t*(n=Math.pow(10,n)))/n:Math.round(t)};var nu=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(Ot);Wa.formatPrefix=function(t,n){var e=0;return t&&(0>t&&(t*=-1),n&&(t=Wa.round(t,Bt(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)))),nu[8+e/3]};var eu=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,ru=Wa.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=Wa.round(t,Bt(t,n))).toFixed(Math.max(0,Math.min(20,Bt(t*(1+1e-15),n))))}}),iu=Wa.time={},au=Date;Rt.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(){ou.setUTCDate.apply(this._,arguments)},setDay:function(){ou.setUTCDay.apply(this._,arguments)},setFullYear:function(){ou.setUTCFullYear.apply(this._,arguments)},setHours:function(){ou.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){ou.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){ou.setUTCMinutes.apply(this._,arguments)},setMonth:function(){ou.setUTCMonth.apply(this._,arguments)},setSeconds:function(){ou.setUTCSeconds.apply(this._,arguments)},setTime:function(){ou.setTime.apply(this._,arguments)}};var ou=Date.prototype;iu.year=Pt(function(t){return t=iu.day(t),t.setMonth(0,1),t},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t){return t.getFullYear()}),iu.years=iu.year.range,iu.years.utc=iu.year.utc.range,iu.day=Pt(function(t){var n=new au(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}),iu.days=iu.day.range,iu.days.utc=iu.day.utc.range,iu.dayOfYear=function(t){var n=iu.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=iu[t]=Pt(function(t){return(t=iu.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=iu.year(t).getDay();return Math.floor((iu.dayOfYear(t)+(e+n)%7)/7)-(e!==n)});iu[t+"s"]=e.range,iu[t+"s"].utc=e.utc.range,iu[t+"OfYear"]=function(t){var e=iu.year(t).getDay();return Math.floor((iu.dayOfYear(t)+(e+n)%7)/7)}}),iu.week=iu.sunday,iu.weeks=iu.sunday.range,iu.weeks.utc=iu.sunday.utc.range,iu.weekOfYear=iu.sundayOfYear;var uu={"-":"",_:" ",0:"0"},su=/^\s*\d+/,cu=/^%/;Wa.locale=function(t){return{numberFormat:It(t),timeFormat:Ut(t)}};var lu=Wa.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"]});Wa.format=lu.numberFormat,Wa.geo={},cn.prototype={s:0,t:0,add:function(t){ln(t,this.t,fu),ln(fu.s,this.s,this),this.s?this.t+=fu.t:this.s=fu.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var fu=new cn;Wa.geo.stream=function(t,n){t&&hu.hasOwnProperty(t.type)?hu[t.type](t,n):fn(t,n)};var hu={Feature:function(t,n){fn(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)fn(e[r].geometry,n)}},du={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,i=e.length;++r<i;)t=e[r],n.point(t[0],t[1],t[2])},LineString:function(t,n){hn(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)hn(e[r],n,0)},Polygon:function(t,n){dn(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)dn(e[r],n)},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)fn(e[r],n)}};Wa.geo.area=function(t){return pu=0,Wa.geo.stream(t,yu),pu};var pu,gu=new cn,yu={sphere:function(){pu+=4*Do},point:v,lineStart:v,lineEnd:v,polygonStart:function(){gu.reset(),yu.lineStart=pn},polygonEnd:function(){var t=2*gu;pu+=0>t?4*Do+t:t,yu.lineStart=yu.lineEnd=yu.point=v}};Wa.geo.bounds=function(){function t(t,n){b.push(_=[l=t,h=t]),f>n&&(f=n),n>d&&(d=n)}function n(n,e){var r=gn([n*No,e*No]);if(m){var i=mn(m,r),a=[i[1],-i[0],0],o=mn(a,i);_n(o),o=xn(o);var s=n-p,c=s>0?1:-1,g=o[0]*Lo*c,y=so(s)>180;if(y^(g>c*p&&c*n>g)){var v=o[1]*Lo;v>d&&(d=v)}else if(g=(g+360)%360-180,y^(g>c*p&&c*n>g)){var v=-o[1]*Lo;f>v&&(f=v)}else f>e&&(f=e),e>d&&(d=e);y?p>n?u(l,n)>u(l,h)&&(h=n):u(n,h)>u(l,h)&&(l=n):h>=l?(l>n&&(l=n),n>h&&(h=n)):n>p?u(l,n)>u(l,h)&&(h=n):u(n,h)>u(l,h)&&(l=n)}else t(n,e);m=r,p=n}function e(){x.point=n}function r(){_[0]=l,_[1]=h,x.point=t,m=null}function i(t,e){if(m){var r=t-p;v+=so(r)>180?r+(r>0?360:-360):r}else g=t,y=e;yu.point(t,e),n(t,e)}function a(){yu.lineStart()}function o(){i(g,y),yu.lineEnd(),so(v)>To&&(l=-(h=180)),_[0]=l,_[1]=h,m=null}function u(t,n){return(n-=t)<0?n+360:n}function s(t,n){return t[0]-n[0]}function c(t,n){return n[0]<=n[1]?n[0]<=t&&t<=n[1]:t<n[0]||n[1]<t}var l,f,h,d,p,g,y,m,v,b,_,x={point:t,lineStart:e,lineEnd:r,polygonStart:function(){x.point=i,x.lineStart=a,x.lineEnd=o,v=0,yu.polygonStart()},polygonEnd:function(){yu.polygonEnd(),x.point=t,x.lineStart=e,x.lineEnd=r,0>gu?(l=-(h=180),f=-(d=90)):v>To?d=90:-To>v&&(f=-90),_[0]=l,_[1]=h}
  };return function(t){d=h=-(l=f=1/0),b=[],Wa.geo.stream(t,x);var n=b.length;if(n){b.sort(s);for(var e,r=1,i=b[0],a=[i];n>r;++r)e=b[r],c(e[0],i)||c(e[1],i)?(u(i[0],e[1])>u(i[0],i[1])&&(i[1]=e[1]),u(e[0],i[1])>u(i[0],i[1])&&(i[0]=e[0])):a.push(i=e);for(var o,e,p=-1/0,n=a.length-1,r=0,i=a[n];n>=r;i=e,++r)e=a[r],(o=u(i[1],e[0]))>p&&(p=o,l=e[0],h=i[1])}return b=_=null,1/0===l||1/0===f?[[0/0,0/0],[0/0,0/0]]:[[l,f],[h,d]]}}(),Wa.geo.centroid=function(t){mu=vu=bu=_u=xu=wu=ku=Eu=Mu=Au=Du=0,Wa.geo.stream(t,Su);var n=Mu,e=Au,r=Du,i=n*n+e*e+r*r;return Fo>i&&(n=wu,e=ku,r=Eu,To>vu&&(n=bu,e=_u,r=xu),i=n*n+e*e+r*r,Fo>i)?[0/0,0/0]:[Math.atan2(e,n)*Lo,tt(r/Math.sqrt(i))*Lo]};var mu,vu,bu,_u,xu,wu,ku,Eu,Mu,Au,Du,Su={sphere:v,point:kn,lineStart:Mn,lineEnd:An,polygonStart:function(){Su.lineStart=Dn},polygonEnd:function(){Su.lineStart=Mn}},Cu=Nn(Sn,In,Rn,[-Do,-Do/2]),Tu=1e9;Wa.geo.clipExtent=function(){var t,n,e,r,i,a,o={stream:function(t){return i&&(i.valid=!1),i=a(t),i.valid=!0,i},extent:function(u){return arguments.length?(a=zn(t=+u[0][0],n=+u[0][1],e=+u[1][0],r=+u[1][1]),i&&(i.valid=!1,i=null),o):[[t,n],[e,r]]}};return o.extent([[0,0],[960,500]])},(Wa.geo.conicEqualArea=function(){return Vn(Hn)}).raw=Hn,Wa.geo.albers=function(){return Wa.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},Wa.geo.albersUsa=function(){function t(t){var a=t[0],o=t[1];return n=null,e(a,o),n||(r(a,o),n)||i(a,o),n}var n,e,r,i,a=Wa.geo.albers(),o=Wa.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=Wa.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(t,e){n=[t,e]}};return t.invert=function(t){var n=a.scale(),e=a.translate(),r=(t[0]-e[0])/n,i=(t[1]-e[1])/n;return(i>=.12&&.234>i&&r>=-.425&&-.214>r?o:i>=.166&&.234>i&&r>=-.214&&-.115>r?u:a).invert(t)},t.stream=function(t){var n=a.stream(t),e=o.stream(t),r=u.stream(t);return{point:function(t,i){n.point(t,i),e.point(t,i),r.point(t,i)},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?(a.precision(n),o.precision(n),u.precision(n),t):a.precision()},t.scale=function(n){return arguments.length?(a.scale(n),o.scale(.35*n),u.scale(n),t.translate(a.translate())):a.scale()},t.translate=function(n){if(!arguments.length)return a.translate();var c=a.scale(),l=+n[0],f=+n[1];return e=a.translate(n).clipExtent([[l-.455*c,f-.238*c],[l+.455*c,f+.238*c]]).stream(s).point,r=o.translate([l-.307*c,f+.201*c]).clipExtent([[l-.425*c+To,f+.12*c+To],[l-.214*c-To,f+.234*c-To]]).stream(s).point,i=u.translate([l-.205*c,f+.212*c]).clipExtent([[l-.214*c+To,f+.166*c+To],[l-.115*c-To,f+.234*c-To]]).stream(s).point,t},t.scale(1070)};var Fu,Nu,Lu,Bu,Ou,Iu,qu={point:v,lineStart:v,lineEnd:v,polygonStart:function(){Nu=0,qu.lineStart=Gn},polygonEnd:function(){qu.lineStart=qu.lineEnd=qu.point=v,Fu+=so(Nu/2)}},Ru={point:$n,lineStart:v,lineEnd:v,polygonStart:v,polygonEnd:v},Pu={point:Xn,lineStart:Kn,lineEnd:Jn,polygonStart:function(){Pu.lineStart=Qn},polygonEnd:function(){Pu.point=Xn,Pu.lineStart=Kn,Pu.lineEnd=Jn}};Wa.geo.path=function(){function t(t){return t&&("function"==typeof u&&a.pointRadius(+u.apply(this,arguments)),o&&o.valid||(o=i(a)),Wa.geo.stream(t,o)),a.result()}function n(){return o=null,t}var e,r,i,a,o,u=4.5;return t.area=function(t){return Fu=0,Wa.geo.stream(t,i(qu)),Fu},t.centroid=function(t){return bu=_u=xu=wu=ku=Eu=Mu=Au=Du=0,Wa.geo.stream(t,i(Pu)),Du?[Mu/Du,Au/Du]:Eu?[wu/Eu,ku/Eu]:xu?[bu/xu,_u/xu]:[0/0,0/0]},t.bounds=function(t){return Ou=Iu=-(Lu=Bu=1/0),Wa.geo.stream(t,i(Ru)),[[Lu,Bu],[Ou,Iu]]},t.projection=function(t){return arguments.length?(i=(e=t)?t.stream||ee(t):At,n()):e},t.context=function(t){return arguments.length?(a=null==(r=t)?new Wn:new te(t),"function"!=typeof u&&a.pointRadius(u),n()):r},t.pointRadius=function(n){return arguments.length?(u="function"==typeof n?n:(a.pointRadius(+n),+n),t):u},t.projection(Wa.geo.albersUsa()).context(null)},Wa.geo.transform=function(t){return{stream:function(n){var e=new re(n);for(var r in t)e[r]=t[r];return e}}},re.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()}},Wa.geo.projection=ae,Wa.geo.projectionMutator=oe,(Wa.geo.equirectangular=function(){return ae(se)}).raw=se.invert=se,Wa.geo.rotation=function(t){function n(n){return n=t(n[0]*No,n[1]*No),n[0]*=Lo,n[1]*=Lo,n}return t=le(t[0]%360*No,t[1]*No,t.length>2?t[2]*No:0),n.invert=function(n){return n=t.invert(n[0]*No,n[1]*No),n[0]*=Lo,n[1]*=Lo,n},n},ce.invert=se,Wa.geo.circle=function(){function t(){var t="function"==typeof r?r.apply(this,arguments):r,n=le(-t[0]*No,-t[1]*No,0).invert,i=[];return e(null,null,1,{point:function(t,e){i.push(t=n(t,e)),t[0]*=Lo,t[1]*=Lo}}),{type:"Polygon",coordinates:[i]}}var n,e,r=[0,0],i=6;return t.origin=function(n){return arguments.length?(r=n,t):r},t.angle=function(r){return arguments.length?(e=pe((n=+r)*No,i*No),t):n},t.precision=function(r){return arguments.length?(e=pe(n*No,(i=+r)*No),t):i},t.angle(90)},Wa.geo.distance=function(t,n){var e,r=(n[0]-t[0])*No,i=t[1]*No,a=n[1]*No,o=Math.sin(r),u=Math.cos(r),s=Math.sin(i),c=Math.cos(i),l=Math.sin(a),f=Math.cos(a);return Math.atan2(Math.sqrt((e=f*o)*e+(e=c*l-s*f*u)*e),s*l+c*f*u)},Wa.geo.graticule=function(){function t(){return{type:"MultiLineString",coordinates:n()}}function n(){return Wa.range(Math.ceil(a/y)*y,i,y).map(h).concat(Wa.range(Math.ceil(c/m)*m,s,m).map(d)).concat(Wa.range(Math.ceil(r/p)*p,e,p).filter(function(t){return so(t%y)>To}).map(l)).concat(Wa.range(Math.ceil(u/g)*g,o,g).filter(function(t){return so(t%m)>To}).map(f))}var e,r,i,a,o,u,s,c,l,f,h,d,p=10,g=p,y=90,m=360,v=2.5;return t.lines=function(){return n().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[h(a).concat(d(s).slice(1),h(i).reverse().slice(1),d(c).reverse().slice(1))]}},t.extent=function(n){return arguments.length?t.majorExtent(n).minorExtent(n):t.minorExtent()},t.majorExtent=function(n){return arguments.length?(a=+n[0][0],i=+n[1][0],c=+n[0][1],s=+n[1][1],a>i&&(n=a,a=i,i=n),c>s&&(n=c,c=s,s=n),t.precision(v)):[[a,c],[i,s]]},t.minorExtent=function(n){return arguments.length?(r=+n[0][0],e=+n[1][0],u=+n[0][1],o=+n[1][1],r>e&&(n=r,r=e,e=n),u>o&&(n=u,u=o,o=n),t.precision(v)):[[r,u],[e,o]]},t.step=function(n){return arguments.length?t.majorStep(n).minorStep(n):t.minorStep()},t.majorStep=function(n){return arguments.length?(y=+n[0],m=+n[1],t):[y,m]},t.minorStep=function(n){return arguments.length?(p=+n[0],g=+n[1],t):[p,g]},t.precision=function(n){return arguments.length?(v=+n,l=ye(u,o,90),f=me(r,e,v),h=ye(c,s,90),d=me(a,i,v),t):v},t.majorExtent([[-180,-90+To],[180,90-To]]).minorExtent([[-180,-80-To],[180,80+To]])},Wa.geo.greatArc=function(){function t(){return{type:"LineString",coordinates:[n||r.apply(this,arguments),e||i.apply(this,arguments)]}}var n,e,r=ve,i=be;return t.distance=function(){return Wa.geo.distance(n||r.apply(this,arguments),e||i.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?(i=n,e="function"==typeof n?null:n,t):i},t.precision=function(){return arguments.length?t:0},t},Wa.geo.interpolate=function(t,n){return _e(t[0]*No,t[1]*No,n[0]*No,n[1]*No)},Wa.geo.length=function(t){return ju=0,Wa.geo.stream(t,Uu),ju};var ju,Uu={sphere:v,point:v,lineStart:xe,lineEnd:v,polygonStart:v,polygonEnd:v},zu=we(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(Wa.geo.azimuthalEqualArea=function(){return ae(zu)}).raw=zu;var Yu=we(function(t){var n=Math.acos(t);return n&&n/Math.sin(n)},At);(Wa.geo.azimuthalEquidistant=function(){return ae(Yu)}).raw=Yu,(Wa.geo.conicConformal=function(){return Vn(ke)}).raw=ke,(Wa.geo.conicEquidistant=function(){return Vn(Ee)}).raw=Ee;var Vu=we(function(t){return 1/t},Math.atan);(Wa.geo.gnomonic=function(){return ae(Vu)}).raw=Vu,Me.invert=function(t,n){return[t,2*Math.atan(Math.exp(n))-Co]},(Wa.geo.mercator=function(){return Ae(Me)}).raw=Me;var Hu=we(function(){return 1},Math.asin);(Wa.geo.orthographic=function(){return ae(Hu)}).raw=Hu;var Gu=we(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(Wa.geo.stereographic=function(){return ae(Gu)}).raw=Gu,De.invert=function(t,n){return[-n,2*Math.atan(Math.exp(t))-Co]},(Wa.geo.transverseMercator=function(){var t=Ae(De),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=De,Wa.geom={},Wa.geom.hull=function(t){function n(t){if(t.length<3)return[];var n,i=Mt(e),a=Mt(r),o=t.length,u=[],s=[];for(n=0;o>n;n++)u.push([+i.call(this,t[n],n),+a.call(this,t[n],n),n]);for(u.sort(Fe),n=0;o>n;n++)s.push([u[n][0],-u[n][1]]);var c=Te(u),l=Te(s),f=l[0]===c[0],h=l[l.length-1]===c[c.length-1],d=[];for(n=c.length-1;n>=0;--n)d.push(t[u[c[n]][2]]);for(n=+f;n<l.length-h;++n)d.push(t[u[l[n]][2]]);return d}var e=Se,r=Ce;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)},Wa.geom.polygon=function(t){return po(t,$u),t};var $u=Wa.geom.polygon.prototype=[];$u.area=function(){for(var t,n=-1,e=this.length,r=this[e-1],i=0;++n<e;)t=r,r=this[n],i+=t[1]*r[0]-t[0]*r[1];return.5*i},$u.centroid=function(t){var n,e,r=-1,i=this.length,a=0,o=0,u=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++r<i;)n=u,u=this[r],e=n[0]*u[1]-u[0]*n[1],a+=(n[0]+u[0])*e,o+=(n[1]+u[1])*e;return[a*t,o*t]},$u.clip=function(t){for(var n,e,r,i,a,o,u=Be(t),s=-1,c=this.length-Be(this),l=this[c-1];++s<c;){for(n=t.slice(),t.length=0,i=this[s],a=n[(r=n.length-u)-1],e=-1;++e<r;)o=n[e],Ne(o,l,i)?(Ne(a,l,i)||t.push(Le(a,o,l,i)),t.push(o)):Ne(a,l,i)&&t.push(Le(a,o,l,i)),a=o;u&&t.push(t[0]),l=i}return t};var Wu,Zu,Xu,Ku,Ju,Qu=[],ts=[];ze.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(Ve),n.length},tr.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}},nr.prototype={insert:function(t,n){var e,r,i;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=ar(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?(i=r.R,i&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(rr(this,e),t=e,e=t.U),e.C=!1,r.C=!0,ir(this,r))):(i=r.L,i&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(ir(this,e),t=e,e=t.U),e.C=!1,r.C=!0,rr(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,i=t.U,a=t.L,o=t.R;if(e=a?o?ar(o):a:o,i?i.L===t?i.L=e:i.R=e:this._=e,a&&o?(r=e.C,e.C=t.C,e.L=a,a.U=e,e!==o?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=o,o.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===i.L){if(n=i.R,n.C&&(n.C=!1,i.C=!0,rr(this,i),n=i.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,ir(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,rr(this,i),t=this._;break}}else if(n=i.L,n.C&&(n.C=!1,i.C=!0,ir(this,i),n=i.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,rr(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,ir(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}},Wa.geom.voronoi=function(t){function n(t){var n=new Array(t.length),r=u[0][0],i=u[0][1],a=u[1][0],o=u[1][1];return or(e(t),u).cells.forEach(function(e,u){var s=e.edges,c=e.site,l=n[u]=s.length?s.map(function(t){var n=t.start();return[n.x,n.y]}):c.x>=r&&c.x<=a&&c.y>=i&&c.y<=o?[[r,o],[a,o],[a,i],[r,i]]:[];l.point=t[u]}),n}function e(t){return t.map(function(t,n){return{x:Math.round(a(t,n)/To)*To,y:Math.round(o(t,n)/To)*To,i:n}})}var r=Se,i=Ce,a=r,o=i,u=ns;return t?n(t):(n.links=function(t){return or(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 or(e(t)).cells.forEach(function(e,r){for(var i,a,o=e.site,u=e.edges.sort(Ve),s=-1,c=u.length,l=u[c-1].edge,f=l.l===o?l.r:l.l;++s<c;)i=l,a=f,l=u[s].edge,f=l.l===o?l.r:l.l,r<a.i&&r<f.i&&sr(o,a,f)<0&&n.push([t[r],t[a.i],t[f.i]])}),n},n.x=function(t){return arguments.length?(a=Mt(r=t),n):r},n.y=function(t){return arguments.length?(o=Mt(i=t),n):i},n.clipExtent=function(t){return arguments.length?(u=null==t?ns:t,n):u===ns?null:u},n.size=function(t){return arguments.length?n.clipExtent(t&&[[0,0],t]):u===ns?null:u&&u[1]},n)};var ns=[[-1e6,-1e6],[1e6,1e6]];Wa.geom.delaunay=function(t){return Wa.geom.voronoi().triangles(t)},Wa.geom.quadtree=function(t,n,e,r,i){function a(t){function a(t,n,e,r,i,a,o,u){if(!isNaN(e)&&!isNaN(r))if(t.leaf){var s=t.x,l=t.y;if(null!=s)if(so(s-e)+so(l-r)<.01)c(t,n,e,r,i,a,o,u);else{var f=t.point;t.x=t.y=t.point=null,c(t,f,s,l,i,a,o,u),c(t,n,e,r,i,a,o,u)}else t.x=e,t.y=r,t.point=n}else c(t,n,e,r,i,a,o,u)}function c(t,n,e,r,i,o,u,s){var c=.5*(i+u),l=.5*(o+s),f=e>=c,h=r>=l,d=(h<<1)+f;t.leaf=!1,t=t.nodes[d]||(t.nodes[d]=fr()),f?i=c:u=c,h?o=l:s=l,a(t,n,e,r,i,o,u,s)}var l,f,h,d,p,g,y,m,v,b=Mt(u),_=Mt(s);if(null!=n)g=n,y=e,m=r,v=i;else if(m=v=-(g=y=1/0),f=[],h=[],p=t.length,o)for(d=0;p>d;++d)l=t[d],l.x<g&&(g=l.x),l.y<y&&(y=l.y),l.x>m&&(m=l.x),l.y>v&&(v=l.y),f.push(l.x),h.push(l.y);else for(d=0;p>d;++d){var x=+b(l=t[d],d),w=+_(l,d);g>x&&(g=x),y>w&&(y=w),x>m&&(m=x),w>v&&(v=w),f.push(x),h.push(w)}var k=m-g,E=v-y;k>E?v=y+k:m=g+E;var M=fr();if(M.add=function(t){a(M,t,+b(t,++d),+_(t,d),g,y,m,v)},M.visit=function(t){hr(t,M,g,y,m,v)},d=-1,null==n){for(;++d<p;)a(M,t[d],f[d],h[d],g,y,m,v);--d}else t.forEach(M.add);return f=h=t=l=null,M}var o,u=Se,s=Ce;return(o=arguments.length)?(u=cr,s=lr,3===o&&(i=e,r=n,e=n=0),a(t)):(a.x=function(t){return arguments.length?(u=t,a):u},a.y=function(t){return arguments.length?(s=t,a):s},a.extent=function(t){return arguments.length?(null==t?n=e=r=i=null:(n=+t[0][0],e=+t[0][1],r=+t[1][0],i=+t[1][1]),a):null==n?null:[[n,e],[r,i]]},a.size=function(t){return arguments.length?(null==t?n=e=r=i=null:(n=e=0,r=+t[0],i=+t[1]),a):null==n?null:[r-n,i-e]},a)},Wa.interpolateRgb=dr,Wa.interpolateObject=pr,Wa.interpolateNumber=gr,Wa.interpolateString=yr;var es=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,rs=new RegExp(es.source,"g");Wa.interpolate=mr,Wa.interpolators=[function(t,n){var e=typeof n;return("string"===e?Wo.has(n)||/^(#|rgb\(|hsl\()/.test(n)?dr:yr:n instanceof at?dr:Array.isArray(n)?vr:"object"===e&&isNaN(n)?pr:gr)(t,n)}],Wa.interpolateArray=vr;var is=function(){return At},as=Wa.map({linear:is,poly:Mr,quad:function(){return wr},cubic:function(){return kr},sin:function(){return Ar},exp:function(){return Dr},circle:function(){return Sr},elastic:Cr,back:Tr,bounce:function(){return Fr}}),os=Wa.map({"in":At,out:_r,"in-out":xr,"out-in":function(t){return xr(_r(t))}});Wa.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=as.get(e)||is,r=os.get(r)||At,br(r(e.apply(null,Za.call(arguments,1))))},Wa.interpolateHcl=Nr,Wa.interpolateHsl=Lr,Wa.interpolateLab=Br,Wa.interpolateRound=Or,Wa.transform=function(t){var n=Ka.createElementNS(Wa.ns.prefix.svg,"g");return(Wa.transform=function(t){if(null!=t){n.setAttribute("transform",t);var e=n.transform.baseVal.consolidate()}return new Ir(e?e.matrix:us)})(t)},Ir.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var us={a:1,b:0,c:0,d:1,e:0,f:0};Wa.interpolateTransform=jr,Wa.layout={},Wa.layout.bundle=function(){return function(t){for(var n=[],e=-1,r=t.length;++e<r;)n.push(Yr(t[e]));return n}},Wa.layout.chord=function(){function t(){var t,c,f,h,d,p={},g=[],y=Wa.range(a),m=[];for(e=[],r=[],t=0,h=-1;++h<a;){for(c=0,d=-1;++d<a;)c+=i[h][d];g.push(c),m.push(Wa.range(a)),t+=c}for(o&&y.sort(function(t,n){return o(g[t],g[n])}),u&&m.forEach(function(t,n){t.sort(function(t,e){return u(i[n][t],i[n][e])})}),t=(So-l*a)/t,c=0,h=-1;++h<a;){for(f=c,d=-1;++d<a;){var v=y[h],b=m[v][d],_=i[v][b],x=c,w=c+=_*t;p[v+"-"+b]={index:v,subindex:b,startAngle:x,endAngle:w,value:_}}r[v]={index:v,startAngle:f,endAngle:c,value:(c-f)/t},c+=l}for(h=-1;++h<a;)for(d=h-1;++d<a;){var k=p[h+"-"+d],E=p[d+"-"+h];(k.value||E.value)&&e.push(k.value<E.value?{source:E,target:k}:{source:k,target:E})}s&&n()}function n(){e.sort(function(t,n){return s((t.source.value+t.target.value)/2,(n.source.value+n.target.value)/2)})}var e,r,i,a,o,u,s,c={},l=0;return c.matrix=function(t){return arguments.length?(a=(i=t)&&i.length,e=r=null,c):i},c.padding=function(t){return arguments.length?(l=t,e=r=null,c):l},c.sortGroups=function(t){return arguments.length?(o=t,e=r=null,c):o},c.sortSubgroups=function(t){return arguments.length?(u=t,e=null,c):u},c.sortChords=function(t){return arguments.length?(s=t,e&&n(),c):s},c.chords=function(){return e||t(),e},c.groups=function(){return r||t(),r},c},Wa.layout.force=function(){function t(t){return function(n,e,r,i){if(n.point!==t){var a=n.cx-t.x,o=n.cy-t.y,u=i-e,s=a*a+o*o;if(s>u*u/y){if(p>s){var c=n.charge/s;t.px-=a*c,t.py-=o*c}return!0}if(n.point&&s&&p>s){var c=n.pointCharge/s;t.px-=a*c,t.py-=o*c}}return!n.charge}}function n(t){t.px=Wa.event.x,t.py=Wa.event.y,u.resume()}var e,r,i,a,o,u={},s=Wa.dispatch("start","tick","end"),c=[1,1],l=.9,f=ss,h=cs,d=-30,p=ls,g=.1,y=.64,m=[],v=[];return u.tick=function(){if((r*=.99)<.005)return s.end({type:"end",alpha:r=0}),!0;var n,e,u,f,h,p,y,b,_,x=m.length,w=v.length;for(e=0;w>e;++e)u=v[e],f=u.source,h=u.target,b=h.x-f.x,_=h.y-f.y,(p=b*b+_*_)&&(p=r*a[e]*((p=Math.sqrt(p))-i[e])/p,b*=p,_*=p,h.x-=b*(y=f.weight/(h.weight+f.weight)),h.y-=_*y,f.x+=b*(y=1-y),f.y+=_*y);if((y=r*g)&&(b=c[0]/2,_=c[1]/2,e=-1,y))for(;++e<x;)u=m[e],u.x+=(b-u.x)*y,u.y+=(_-u.y)*y;if(d)for(Xr(n=Wa.geom.quadtree(m),r,o),e=-1;++e<x;)(u=m[e]).fixed||n.visit(t(u));for(e=-1;++e<x;)u=m[e],u.fixed?(u.x=u.px,u.y=u.py):(u.x-=(u.px-(u.px=u.x))*l,u.y-=(u.py-(u.py=u.y))*l);s.tick({type:"tick",alpha:r})},u.nodes=function(t){return arguments.length?(m=t,u):m},u.links=function(t){return arguments.length?(v=t,u):v},u.size=function(t){return arguments.length?(c=t,u):c},u.linkDistance=function(t){return arguments.length?(f="function"==typeof t?t:+t,u):f},u.distance=u.linkDistance,u.linkStrength=function(t){return arguments.length?(h="function"==typeof t?t:+t,u):h},u.friction=function(t){return arguments.length?(l=+t,u):l},u.charge=function(t){return arguments.length?(d="function"==typeof t?t:+t,u):d},u.chargeDistance=function(t){return arguments.length?(p=t*t,u):Math.sqrt(p)},u.gravity=function(t){return arguments.length?(g=+t,u):g},u.theta=function(t){return arguments.length?(y=t*t,u):Math.sqrt(y)},u.alpha=function(t){return arguments.length?(t=+t,r?r=t>0?t:0:t>0&&(s.start({type:"start",alpha:r=t}),Wa.timer(u.tick)),u):r},u.start=function(){function t(t,r){if(!e){for(e=new Array(s),u=0;s>u;++u)e[u]=[];for(u=0;c>u;++u){var i=v[u];e[i.source.index].push(i.target),e[i.target.index].push(i.source)}}for(var a,o=e[n],u=-1,c=o.length;++u<c;)if(!isNaN(a=o[u][t]))return a;return Math.random()*r}var n,e,r,s=m.length,l=v.length,p=c[0],g=c[1];for(n=0;s>n;++n)(r=m[n]).index=n,r.weight=0;for(n=0;l>n;++n)r=v[n],"number"==typeof r.source&&(r.source=m[r.source]),"number"==typeof r.target&&(r.target=m[r.target]),++r.source.weight,++r.target.weight;for(n=0;s>n;++n)r=m[n],isNaN(r.x)&&(r.x=t("x",p)),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 f)for(n=0;l>n;++n)i[n]=+f.call(this,v[n],n);else for(n=0;l>n;++n)i[n]=f;if(a=[],"function"==typeof h)for(n=0;l>n;++n)a[n]=+h.call(this,v[n],n);else for(n=0;l>n;++n)a[n]=h;if(o=[],"function"==typeof d)for(n=0;s>n;++n)o[n]=+d.call(this,m[n],n);else for(n=0;s>n;++n)o[n]=d;return u.resume()},u.resume=function(){return u.alpha(.1)},u.stop=function(){return u.alpha(0)},u.drag=function(){return e||(e=Wa.behavior.drag().origin(At).on("dragstart.force",Gr).on("drag.force",n).on("dragend.force",$r)),arguments.length?void this.on("mouseover.force",Wr).on("mouseout.force",Zr).call(e):e},Wa.rebind(u,s,"on")};var ss=20,cs=1,ls=1/0;Wa.layout.hierarchy=function(){function t(i){var a,o=[i],u=[];for(i.depth=0;null!=(a=o.pop());)if(u.push(a),(c=e.call(t,a,a.depth))&&(s=c.length)){for(var s,c,l;--s>=0;)o.push(l=c[s]),l.parent=a,l.depth=a.depth+1;r&&(a.value=0),a.children=c}else r&&(a.value=+r.call(t,a,a.depth)||0),delete a.children;return Qr(i,function(t){var e,i;n&&(e=t.children)&&e.sort(n),r&&(i=t.parent)&&(i.value+=t.value)}),u}var n=ei,e=ti,r=ni;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&&(Jr(n,function(t){t.children&&(t.value=0)}),Qr(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},Wa.layout.partition=function(){function t(n,e,r,i){var a=n.children;if(n.x=e,n.y=n.depth*i,n.dx=r,n.dy=i,a&&(o=a.length)){var o,u,s,c=-1;for(r=n.value?r/n.value:0;++c<o;)t(u=a[c],e,s=u.value*r,i),e+=s}}function n(t){var e=t.children,r=0;if(e&&(i=e.length))for(var i,a=-1;++a<i;)r=Math.max(r,n(e[a]));return 1+r}function e(e,a){var o=r.call(this,e,a);return t(o[0],0,i[0],i[1]/n(o[0])),o}var r=Wa.layout.hierarchy(),i=[1,1];return e.size=function(t){return arguments.length?(i=t,e):i},Kr(e,r)},Wa.layout.pie=function(){function t(a){var o=a.map(function(e,r){return+n.call(t,e,r)}),u=+("function"==typeof r?r.apply(this,arguments):r),s=(("function"==typeof i?i.apply(this,arguments):i)-u)/Wa.sum(o),c=Wa.range(a.length);null!=e&&c.sort(e===fs?function(t,n){return o[n]-o[t]}:function(t,n){return e(a[t],a[n])});var l=[];return c.forEach(function(t){var n;l[t]={data:a[t],value:n=o[t],startAngle:u,endAngle:u+=n*s}}),l}var n=Number,e=fs,r=0,i=So;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?(i=n,t):i},t};var fs={};Wa.layout.stack=function(){function t(u,s){if(!(h=u.length))return u;var c=u.map(function(e,r){return n.call(t,e,r)}),l=c.map(function(n){return n.map(function(n,e){return[a.call(t,n,e),o.call(t,n,e)]})}),f=e.call(t,l,s);c=Wa.permute(c,f),l=Wa.permute(l,f);var h,d,p,g,y=r.call(t,l,s),m=c[0].length;for(p=0;m>p;++p)for(i.call(t,c[0][p],g=y[p],l[0][p][1]),d=1;h>d;++d)i.call(t,c[d][p],g+=l[d-1][p][1],l[d][p][1]);return u}var n=At,e=ui,r=si,i=oi,a=ii,o=ai;return t.values=function(e){return arguments.length?(n=e,t):n},t.order=function(n){return arguments.length?(e="function"==typeof n?n:hs.get(n)||ui,t):e},t.offset=function(n){return arguments.length?(r="function"==typeof n?n:ds.get(n)||si,t):r},t.x=function(n){return arguments.length?(a=n,t):a},t.y=function(n){return arguments.length?(o=n,t):o},t.out=function(n){return arguments.length?(i=n,t):i},t};var hs=Wa.map({"inside-out":function(t){var n,e,r=t.length,i=t.map(ci),a=t.map(li),o=Wa.range(r).sort(function(t,n){return i[t]-i[n]}),u=0,s=0,c=[],l=[];for(n=0;r>n;++n)e=o[n],s>u?(u+=a[e],c.push(e)):(s+=a[e],l.push(e));return l.reverse().concat(c)},reverse:function(t){return Wa.range(t.length).reverse()},"default":ui}),ds=Wa.map({silhouette:function(t){var n,e,r,i=t.length,a=t[0].length,o=[],u=0,s=[];for(e=0;a>e;++e){for(n=0,r=0;i>n;n++)r+=t[n][e][1];r>u&&(u=r),o.push(r)}for(e=0;a>e;++e)s[e]=(u-o[e])/2;return s},wiggle:function(t){var n,e,r,i,a,o,u,s,c,l=t.length,f=t[0],h=f.length,d=[];for(d[0]=s=c=0,e=1;h>e;++e){for(n=0,i=0;l>n;++n)i+=t[n][e][1];for(n=0,a=0,u=f[e][0]-f[e-1][0];l>n;++n){for(r=0,o=(t[n][e][1]-t[n][e-1][1])/(2*u);n>r;++r)o+=(t[r][e][1]-t[r][e-1][1])/u;a+=o*t[n][e][1]}d[e]=s-=i?a/i*u:0,c>s&&(c=s)}for(e=0;h>e;++e)d[e]-=c;return d},expand:function(t){var n,e,r,i=t.length,a=t[0].length,o=1/i,u=[];for(e=0;a>e;++e){for(n=0,r=0;i>n;n++)r+=t[n][e][1];if(r)for(n=0;i>n;n++)t[n][e][1]/=r;else for(n=0;i>n;n++)t[n][e][1]=o}for(e=0;a>e;++e)u[e]=0;return u},zero:si});Wa.layout.histogram=function(){function t(t,a){for(var o,u,s=[],c=t.map(e,this),l=r.call(this,c,a),f=i.call(this,l,c,a),a=-1,h=c.length,d=f.length-1,p=n?1:1/h;++a<d;)o=s[a]=[],o.dx=f[a+1]-(o.x=f[a]),o.y=0;if(d>0)for(a=-1;++a<h;)u=c[a],u>=l[0]&&u<=l[1]&&(o=s[Wa.bisect(f,u,1,d)-1],o.y+=p,o.push(t[a]));return s}var n=!0,e=Number,r=pi,i=hi;return t.value=function(n){return arguments.length?(e=n,t):e},t.range=function(n){return arguments.length?(r=Mt(n),t):r},t.bins=function(n){return arguments.length?(i="number"==typeof n?function(t){return di(t,n)}:Mt(n),t):i},t.frequency=function(e){return arguments.length?(n=!!e,t):n},t},Wa.layout.pack=function(){function t(t,a){var o=e.call(this,t,a),u=o[0],s=i[0],c=i[1],l=null==n?Math.sqrt:"function"==typeof n?n:function(){return n};if(u.x=u.y=0,Qr(u,function(t){t.r=+l(t.value)}),Qr(u,bi),r){var f=r*(n?1:Math.max(2*u.r/s,2*u.r/c))/2;Qr(u,function(t){t.r+=f}),Qr(u,bi),Qr(u,function(t){t.r-=f})}return wi(u,s/2,c/2,n?1:1/Math.max(2*u.r/s,2*u.r/c)),o}var n,e=Wa.layout.hierarchy().sort(gi),r=0,i=[1,1];return t.size=function(n){return arguments.length?(i=n,t):i},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},Kr(t,e)},Wa.layout.tree=function(){function t(t,i){var l=o.call(this,t,i),f=l[0],h=n(f);if(Qr(h,e),h.parent.m=-h.z,Jr(h,r),c)Jr(f,a);else{var d=f,p=f,g=f;Jr(f,function(t){t.x<d.x&&(d=t),t.x>p.x&&(p=t),t.depth>g.depth&&(g=t)});var y=u(d,p)/2-d.x,m=s[0]/(p.x+u(p,d)/2+y),v=s[1]/(g.depth||1);Jr(f,function(t){t.x=(t.x+y)*m,t.y=t.depth*v})}return l}function n(t){for(var n,e={A:null,children:[t]},r=[e];null!=(n=r.pop());)for(var i,a=n.children,o=0,u=a.length;u>o;++o)r.push((a[o]=i={_:a[o],parent:n,children:(i=a[o].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);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){Si(t);var a=(n[0].z+n[n.length-1].z)/2;r?(t.z=r.z+u(t._,r._),t.m=t.z-a):t.z=a}else r&&(t.z=r.z+u(t._,r._));t.parent.A=i(t,r,t.parent.A||e[0])}function r(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function i(t,n,e){if(n){for(var r,i=t,a=t,o=n,s=i.parent.children[0],c=i.m,l=a.m,f=o.m,h=s.m;o=Ai(o),i=Mi(i),o&&i;)s=Mi(s),a=Ai(a),a.a=t,r=o.z+f-i.z-c+u(o._,i._),r>0&&(Di(Ci(o,t,e),t,r),c+=r,l+=r),f+=o.m,c+=i.m,h+=s.m,l+=a.m;o&&!Ai(a)&&(a.t=o,a.m+=f-l),i&&!Mi(s)&&(s.t=i,s.m+=c-h,e=t)}return e}function a(t){t.x*=s[0],t.y=t.depth*s[1]}var o=Wa.layout.hierarchy().sort(null).value(null),u=Ei,s=[1,1],c=null;return t.separation=function(n){return arguments.length?(u=n,t):u},t.size=function(n){return arguments.length?(c=null==(s=n)?a:null,t):c?null:s},t.nodeSize=function(n){return arguments.length?(c=null==(s=n)?null:a,t):c?s:null},Kr(t,o)},Wa.layout.cluster=function(){function t(t,a){var o,u=n.call(this,t,a),s=u[0],c=0;Qr(s,function(t){var n=t.children;n&&n.length?(t.x=Fi(n),t.y=Ti(n)):(t.x=o?c+=e(t,o):0,t.y=0,o=t)});var l=Ni(s),f=Li(s),h=l.x-e(l,f)/2,d=f.x+e(f,l)/2;return Qr(s,i?function(t){t.x=(t.x-s.x)*r[0],t.y=(s.y-t.y)*r[1]}:function(t){t.x=(t.x-h)/(d-h)*r[0],t.y=(1-(s.y?t.y/s.y:1))*r[1]}),u}var n=Wa.layout.hierarchy().sort(null).value(null),e=Ei,r=[1,1],i=!1;return t.separation=function(n){return arguments.length?(e=n,t):e},t.size=function(n){return arguments.length?(i=null==(r=n),t):i?null:r},t.nodeSize=function(n){return arguments.length?(i=null!=(r=n),t):i?r:null},Kr(t,n)},Wa.layout.treemap=function(){function t(t,n){for(var e,r,i=-1,a=t.length;++i<a;)r=(e=t[i]).value*(0>n?0:n),e.area=isNaN(r)||0>=r?0:r}function n(e){var a=e.children;if(a&&a.length){var o,u,s,c=f(e),l=[],h=a.slice(),p=1/0,g="slice"===d?c.dx:"dice"===d?c.dy:"slice-dice"===d?1&e.depth?c.dy:c.dx:Math.min(c.dx,c.dy);for(t(h,c.dx*c.dy/e.value),l.area=0;(s=h.length)>0;)l.push(o=h[s-1]),l.area+=o.area,"squarify"!==d||(u=r(l,g))<=p?(h.pop(),p=u):(l.area-=l.pop().area,i(l,g,c,!1),g=Math.min(c.dx,c.dy),l.length=l.area=0,p=1/0);l.length&&(i(l,g,c,!0),l.length=l.area=0),a.forEach(n)}}function e(n){var r=n.children;if(r&&r.length){var a,o=f(n),u=r.slice(),s=[];for(t(u,o.dx*o.dy/n.value),s.area=0;a=u.pop();)s.push(a),s.area+=a.area,null!=a.z&&(i(s,a.z?o.dx:o.dy,o,!u.length),s.length=s.area=0);r.forEach(e)}}function r(t,n){for(var e,r=t.area,i=0,a=1/0,o=-1,u=t.length;++o<u;)(e=t[o].area)&&(a>e&&(a=e),e>i&&(i=e));return r*=r,n*=n,r?Math.max(n*i*p/r,r/(n*a*p)):1/0}function i(t,n,e,r){var i,a=-1,o=t.length,u=e.x,c=e.y,l=n?s(t.area/n):0;if(n==e.dx){for((r||l>e.dy)&&(l=e.dy);++a<o;)i=t[a],i.x=u,i.y=c,i.dy=l,u+=i.dx=Math.min(e.x+e.dx-u,l?s(i.area/l):0);i.z=!0,i.dx+=e.x+e.dx-u,e.y+=l,e.dy-=l}else{for((r||l>e.dx)&&(l=e.dx);++a<o;)i=t[a],i.x=u,i.y=c,i.dx=l,c+=i.dy=Math.min(e.y+e.dy-c,l?s(i.area/l):0);i.z=!1,i.dy+=e.y+e.dy-c,e.x+=l,e.dx-=l}}function a(r){var i=o||u(r),a=i[0];return a.x=0,a.y=0,a.dx=c[0],a.dy=c[1],o&&u.revalue(a),t([a],a.dx*a.dy/a.value),(o?e:n)(a),h&&(o=i),i}var o,u=Wa.layout.hierarchy(),s=Math.round,c=[1,1],l=null,f=Bi,h=!1,d="squarify",p=.5*(1+Math.sqrt(5));return a.size=function(t){return arguments.length?(c=t,a):c},a.padding=function(t){function n(n){var e=t.call(a,n,n.depth);return null==e?Bi(n):Oi(n,"number"==typeof e?[e,e,e,e]:e)}function e(n){return Oi(n,t)}if(!arguments.length)return l;var r;return f=null==(l=t)?Bi:"function"==(r=typeof t)?n:"number"===r?(t=[t,t,t,t],e):e,a},a.round=function(t){return arguments.length?(s=t?Math.round:Number,a):s!=Number},a.sticky=function(t){return arguments.length?(h=t,o=null,a):h},a.ratio=function(t){return arguments.length?(p=t,a):p},a.mode=function(t){return arguments.length?(d=t+"",a):d},Kr(a,u)},Wa.random={normal:function(t,n){var e=arguments.length;return 2>e&&(n=1),1>e&&(t=0),function(){var e,r,i;do e=2*Math.random()-1,r=2*Math.random()-1,i=e*e+r*r;while(!i||i>1);return t+n*e*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=Wa.random.normal.apply(Wa,arguments);return function(){return Math.exp(t())}},bates:function(t){var n=Wa.random.irwinHall(t);return function(){return n()/t}},irwinHall:function(t){return function(){for(var n=0,e=0;t>e;e++)n+=Math.random();return n}}},Wa.scale={};var ps={floor:At,ceil:At};Wa.scale.linear=function(){return zi([0,1],[0,1],mr,!1)};var gs={s:1,g:1,p:1,r:1,e:1};Wa.scale.log=function(){return Xi(Wa.scale.linear().domain([0,1]),10,!0,[1,10])};var ys=Wa.format(".0e"),ms={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};Wa.scale.pow=function(){return Ki(Wa.scale.linear(),1,[0,1])},Wa.scale.sqrt=function(){return Wa.scale.pow().exponent(.5)},Wa.scale.ordinal=function(){return Qi([],{t:"range",a:[[]]})},Wa.scale.category10=function(){return Wa.scale.ordinal().range(vs)},Wa.scale.category20=function(){return Wa.scale.ordinal().range(bs)},Wa.scale.category20b=function(){return Wa.scale.ordinal().range(_s)},Wa.scale.category20c=function(){return Wa.scale.ordinal().range(xs)};var vs=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(vt),bs=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(vt),_s=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(vt),xs=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(vt);
  
  Wa.scale.quantile=function(){return ta([],[])},Wa.scale.quantize=function(){return na(0,1,[0,1])},Wa.scale.threshold=function(){return ea([.5],[0,1])},Wa.scale.identity=function(){return ra([0,1])},Wa.svg={},Wa.svg.arc=function(){function t(){var t=n.apply(this,arguments),a=e.apply(this,arguments),o=r.apply(this,arguments)+ws,u=i.apply(this,arguments)+ws,s=(o>u&&(s=o,o=u,u=s),u-o),c=Do>s?"0":"1",l=Math.cos(o),f=Math.sin(o),h=Math.cos(u),d=Math.sin(u);return s>=ks?t?"M0,"+a+"A"+a+","+a+" 0 1,1 0,"+-a+"A"+a+","+a+" 0 1,1 0,"+a+"M0,"+t+"A"+t+","+t+" 0 1,0 0,"+-t+"A"+t+","+t+" 0 1,0 0,"+t+"Z":"M0,"+a+"A"+a+","+a+" 0 1,1 0,"+-a+"A"+a+","+a+" 0 1,1 0,"+a+"Z":t?"M"+a*l+","+a*f+"A"+a+","+a+" 0 "+c+",1 "+a*h+","+a*d+"L"+t*h+","+t*d+"A"+t+","+t+" 0 "+c+",0 "+t*l+","+t*f+"Z":"M"+a*l+","+a*f+"A"+a+","+a+" 0 "+c+",1 "+a*h+","+a*d+"L0,0Z"}var n=ia,e=aa,r=oa,i=ua;return t.innerRadius=function(e){return arguments.length?(n=Mt(e),t):n},t.outerRadius=function(n){return arguments.length?(e=Mt(n),t):e},t.startAngle=function(n){return arguments.length?(r=Mt(n),t):r},t.endAngle=function(n){return arguments.length?(i=Mt(n),t):i},t.centroid=function(){var t=(n.apply(this,arguments)+e.apply(this,arguments))/2,a=(r.apply(this,arguments)+i.apply(this,arguments))/2+ws;return[Math.cos(a)*t,Math.sin(a)*t]},t};var ws=-Co,ks=So-To;Wa.svg.line=function(){return sa(At)};var Es=Wa.map({linear:ca,"linear-closed":la,step:fa,"step-before":ha,"step-after":da,basis:ba,"basis-open":_a,"basis-closed":xa,bundle:wa,cardinal:ya,"cardinal-open":pa,"cardinal-closed":ga,monotone:Sa});Es.forEach(function(t,n){n.key=t,n.closed=/-closed$/.test(t)});var Ms=[0,2/3,1/3,0],As=[0,1/3,2/3,0],Ds=[0,1/6,2/3,1/6];Wa.svg.line.radial=function(){var t=sa(Ca);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},ha.reverse=da,da.reverse=ha,Wa.svg.area=function(){return Ta(At)},Wa.svg.area.radial=function(){var t=Ta(Ca);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},Wa.svg.chord=function(){function t(t,u){var s=n(this,a,t,u),c=n(this,o,t,u);return"M"+s.p0+r(s.r,s.p1,s.a1-s.a0)+(e(s,c)?i(s.r,s.p1,s.r,s.p0):i(s.r,s.p1,c.r,c.p0)+r(c.r,c.p1,c.a1-c.a0)+i(c.r,c.p1,s.r,s.p0))+"Z"}function n(t,n,e,r){var i=n.call(t,e,r),a=u.call(t,i,r),o=s.call(t,i,r)+ws,l=c.call(t,i,r)+ws;return{r:a,a0:o,a1:l,p0:[a*Math.cos(o),a*Math.sin(o)],p1:[a*Math.cos(l),a*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>Do)+",1 "+n}function i(t,n,e,r){return"Q 0,0 "+r}var a=ve,o=be,u=Fa,s=oa,c=ua;return t.radius=function(n){return arguments.length?(u=Mt(n),t):u},t.source=function(n){return arguments.length?(a=Mt(n),t):a},t.target=function(n){return arguments.length?(o=Mt(n),t):o},t.startAngle=function(n){return arguments.length?(s=Mt(n),t):s},t.endAngle=function(n){return arguments.length?(c=Mt(n),t):c},t},Wa.svg.diagonal=function(){function t(t,i){var a=n.call(this,t,i),o=e.call(this,t,i),u=(a.y+o.y)/2,s=[a,{x:a.x,y:u},{x:o.x,y:u},o];return s=s.map(r),"M"+s[0]+"C"+s[1]+" "+s[2]+" "+s[3]}var n=ve,e=be,r=Na;return t.source=function(e){return arguments.length?(n=Mt(e),t):n},t.target=function(n){return arguments.length?(e=Mt(n),t):e},t.projection=function(n){return arguments.length?(r=n,t):r},t},Wa.svg.diagonal.radial=function(){var t=Wa.svg.diagonal(),n=Na,e=t.projection;return t.projection=function(t){return arguments.length?e(La(n=t)):n},t},Wa.svg.symbol=function(){function t(t,r){return(Ss.get(n.call(this,t,r))||Ia)(e.call(this,t,r))}var n=Oa,e=Ba;return t.type=function(e){return arguments.length?(n=Mt(e),t):n},t.size=function(n){return arguments.length?(e=Mt(n),t):e},t};var Ss=Wa.map({circle:Ia,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*Ns)),e=n*Ns;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/Fs),e=n*Fs/2;return"M0,"+e+"L"+n+","+-e+" "+-n+","+-e+"Z"},"triangle-up":function(t){var n=Math.sqrt(t/Fs),e=n*Fs/2;return"M0,"+-e+"L"+n+","+e+" "+-n+","+e+"Z"}});Wa.svg.symbolTypes=Ss.keys();var Cs,Ts,Fs=Math.sqrt(3),Ns=Math.tan(30*No),Ls=[],Bs=0;Ls.call=bo.call,Ls.empty=bo.empty,Ls.node=bo.node,Ls.size=bo.size,Wa.transition=function(t){return arguments.length?Cs?t.transition():t:wo.transition()},Wa.transition.prototype=Ls,Ls.select=function(t){var n,e,r,i=this.id,a=[];t=M(t);for(var o=-1,u=this.length;++o<u;){a.push(n=[]);for(var s=this[o],c=-1,l=s.length;++c<l;)(r=s[c])&&(e=t.call(r,r.__data__,c,o))?("__data__"in r&&(e.__data__=r.__data__),ja(e,c,i,r.__transition__[i]),n.push(e)):n.push(null)}return qa(a,i)},Ls.selectAll=function(t){var n,e,r,i,a,o=this.id,u=[];t=A(t);for(var s=-1,c=this.length;++s<c;)for(var l=this[s],f=-1,h=l.length;++f<h;)if(r=l[f]){a=r.__transition__[o],e=t.call(r,r.__data__,f,s),u.push(n=[]);for(var d=-1,p=e.length;++d<p;)(i=e[d])&&ja(i,d,o,a),n.push(i)}return qa(u,o)},Ls.filter=function(t){var n,e,r,i=[];"function"!=typeof t&&(t=q(t));for(var a=0,o=this.length;o>a;a++){i.push(n=[]);for(var e=this[a],u=0,s=e.length;s>u;u++)(r=e[u])&&t.call(r,r.__data__,u,a)&&n.push(r)}return qa(i,this.id)},Ls.tween=function(t,n){var e=this.id;return arguments.length<2?this.node().__transition__[e].tween.get(t):P(this,null==n?function(n){n.__transition__[e].tween.remove(t)}:function(r){r.__transition__[e].tween.set(t,n)})},Ls.attr=function(t,n){function e(){this.removeAttribute(u)}function r(){this.removeAttributeNS(u.space,u.local)}function i(t){return null==t?e:(t+="",function(){var n,e=this.getAttribute(u);return e!==t&&(n=o(e,t),function(t){this.setAttribute(u,n(t))})})}function a(t){return null==t?r:(t+="",function(){var n,e=this.getAttributeNS(u.space,u.local);return e!==t&&(n=o(e,t),function(t){this.setAttributeNS(u.space,u.local,n(t))})})}if(arguments.length<2){for(n in t)this.attr(n,t[n]);return this}var o="transform"==t?jr:mr,u=Wa.ns.qualify(t);return Ra(this,"attr."+t,n,u.local?a:i)},Ls.attrTween=function(t,n){function e(t,e){var r=n.call(this,t,e,this.getAttribute(i));return r&&function(t){this.setAttribute(i,r(t))}}function r(t,e){var r=n.call(this,t,e,this.getAttributeNS(i.space,i.local));return r&&function(t){this.setAttributeNS(i.space,i.local,r(t))}}var i=Wa.ns.qualify(t);return this.tween("attr."+t,i.local?r:e)},Ls.style=function(t,n,e){function r(){this.style.removeProperty(t)}function i(n){return null==n?r:(n+="",function(){var r,i=Qa.getComputedStyle(this,null).getPropertyValue(t);return i!==n&&(r=mr(i,n),function(n){this.style.setProperty(t,r(n),e)})})}var a=arguments.length;if(3>a){if("string"!=typeof t){2>a&&(n="");for(e in t)this.style(e,t[e],n);return this}e=""}return Ra(this,"style."+t,n,i)},Ls.styleTween=function(t,n,e){function r(r,i){var a=n.call(this,r,i,Qa.getComputedStyle(this,null).getPropertyValue(t));return a&&function(n){this.style.setProperty(t,a(n),e)}}return arguments.length<3&&(e=""),this.tween("style."+t,r)},Ls.text=function(t){return Ra(this,"text",t,Pa)},Ls.remove=function(){return this.each("end.transition",function(){var t;this.__transition__.count<2&&(t=this.parentNode)&&t.removeChild(this)})},Ls.ease=function(t){var n=this.id;return arguments.length<1?this.node().__transition__[n].ease:("function"!=typeof t&&(t=Wa.ease.apply(Wa,arguments)),P(this,function(e){e.__transition__[n].ease=t}))},Ls.delay=function(t){var n=this.id;return arguments.length<1?this.node().__transition__[n].delay:P(this,"function"==typeof t?function(e,r,i){e.__transition__[n].delay=+t.call(e,e.__data__,r,i)}:(t=+t,function(e){e.__transition__[n].delay=t}))},Ls.duration=function(t){var n=this.id;return arguments.length<1?this.node().__transition__[n].duration:P(this,"function"==typeof t?function(e,r,i){e.__transition__[n].duration=Math.max(1,t.call(e,e.__data__,r,i))}:(t=Math.max(1,t),function(e){e.__transition__[n].duration=t}))},Ls.each=function(t,n){var e=this.id;if(arguments.length<2){var r=Ts,i=Cs;Cs=e,P(this,function(n,r,i){Ts=n.__transition__[e],t.call(n,n.__data__,r,i)}),Ts=r,Cs=i}else P(this,function(r){var i=r.__transition__[e];(i.event||(i.event=Wa.dispatch("start","end"))).on(t,n)});return this},Ls.transition=function(){for(var t,n,e,r,i=this.id,a=++Bs,o=[],u=0,s=this.length;s>u;u++){o.push(t=[]);for(var n=this[u],c=0,l=n.length;l>c;c++)(e=n[c])&&(r=Object.create(e.__transition__[i]),r.delay+=r.duration,ja(e,c,a,r)),t.push(e)}return qa(o,a)},Wa.svg.axis=function(){function t(t){t.each(function(){var t,c=Wa.select(this),l=this.__chart__||e,f=this.__chart__=e.copy(),h=null==s?f.ticks?f.ticks.apply(f,u):f.domain():s,d=null==n?f.tickFormat?f.tickFormat.apply(f,u):At:n,p=c.selectAll(".tick").data(h,f),g=p.enter().insert("g",".domain").attr("class","tick").style("opacity",To),y=Wa.transition(p.exit()).style("opacity",To).remove(),m=Wa.transition(p.order()).style("opacity",1),v=Math.max(i,0)+o,b=qi(f),_=c.selectAll(".domain").data([0]),x=(_.enter().append("path").attr("class","domain"),Wa.transition(_));g.append("line"),g.append("text");var w,k,E,M,A=g.select("line"),D=m.select("line"),S=p.select("text").text(d),C=g.select("text"),T=m.select("text"),F="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(t=Ua,w="x",E="y",k="x2",M="y2",S.attr("dy",0>F?"0em":".71em").style("text-anchor","middle"),x.attr("d","M"+b[0]+","+F*a+"V0H"+b[1]+"V"+F*a)):(t=za,w="y",E="x",k="y2",M="x2",S.attr("dy",".32em").style("text-anchor",0>F?"end":"start"),x.attr("d","M"+F*a+","+b[0]+"H0V"+b[1]+"H"+F*a)),A.attr(M,F*i),C.attr(E,F*v),D.attr(k,0).attr(M,F*i),T.attr(w,0).attr(E,F*v),f.rangeBand){var N=f,L=N.rangeBand()/2;l=f=function(t){return N(t)+L}}else l.rangeBand?l=f:y.call(t,f,l);g.call(t,l,f),m.call(t,f,f)})}var n,e=Wa.scale.linear(),r=Os,i=6,a=6,o=3,u=[10],s=null;return t.scale=function(n){return arguments.length?(e=n,t):e},t.orient=function(n){return arguments.length?(r=n in Is?n+"":Os,t):r},t.ticks=function(){return arguments.length?(u=arguments,t):u},t.tickValues=function(n){return arguments.length?(s=n,t):s},t.tickFormat=function(e){return arguments.length?(n=e,t):n},t.tickSize=function(n){var e=arguments.length;return e?(i=+n,a=+arguments[e-1],t):i},t.innerTickSize=function(n){return arguments.length?(i=+n,t):i},t.outerTickSize=function(n){return arguments.length?(a=+n,t):a},t.tickPadding=function(n){return arguments.length?(o=+n,t):o},t.tickSubdivide=function(){return arguments.length&&t},t};var Os="bottom",Is={top:1,right:1,bottom:1,left:1};Wa.svg.brush=function(){function t(a){a.each(function(){var a=Wa.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",i).on("touchstart.brush",i),o=a.selectAll(".background").data([0]);o.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),a.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var u=a.selectAll(".resize").data(p,At);u.exit().remove(),u.enter().append("g").attr("class",function(t){return"resize "+t}).style("cursor",function(t){return qs[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"),u.style("display",t.empty()?"none":null);var l,f=Wa.transition(a),h=Wa.transition(o);s&&(l=qi(s),h.attr("x",l[0]).attr("width",l[1]-l[0]),e(f)),c&&(l=qi(c),h.attr("y",l[0]).attr("height",l[1]-l[0]),r(f)),n(f)})}function n(t){t.selectAll(".resize").attr("transform",function(t){return"translate("+l[+/e$/.test(t)]+","+f[+/^s/.test(t)]+")"})}function e(t){t.select(".extent").attr("x",l[0]),t.selectAll(".extent,.n>rect,.s>rect").attr("width",l[1]-l[0])}function r(t){t.select(".extent").attr("y",f[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",f[1]-f[0])}function i(){function i(){32==Wa.event.keyCode&&(S||(v=null,T[0]-=l[1],T[1]-=f[1],S=2),x())}function p(){32==Wa.event.keyCode&&2==S&&(T[0]+=l[1],T[1]+=f[1],S=0,x())}function g(){var t=Wa.mouse(_),i=!1;b&&(t[0]+=b[0],t[1]+=b[1]),S||(Wa.event.altKey?(v||(v=[(l[0]+l[1])/2,(f[0]+f[1])/2]),T[0]=l[+(t[0]<v[0])],T[1]=f[+(t[1]<v[1])]):v=null),A&&y(t,s,0)&&(e(E),i=!0),D&&y(t,c,1)&&(r(E),i=!0),i&&(n(E),k({type:"brush",mode:S?"move":"resize"}))}function y(t,n,e){var r,i,u=qi(n),s=u[0],c=u[1],p=T[e],g=e?f:l,y=g[1]-g[0];return S&&(s-=p,c-=y+p),r=(e?d:h)?Math.max(s,Math.min(c,t[e])):t[e],S?i=(r+=p)+y:(v&&(p=Math.max(s,Math.min(c,2*v[e]-r))),r>p?(i=r,r=p):i=p),g[0]!=r||g[1]!=i?(e?o=null:a=null,g[0]=r,g[1]=i,!0):void 0}function m(){g(),E.style("pointer-events","all").selectAll(".resize").style("display",t.empty()?"none":null),Wa.select("body").style("cursor",null),F.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),C(),k({type:"brushend"})}var v,b,_=this,w=Wa.select(Wa.event.target),k=u.of(_,arguments),E=Wa.select(_),M=w.datum(),A=!/^(n|s)$/.test(M)&&s,D=!/^(e|w)$/.test(M)&&c,S=w.classed("extent"),C=G(),T=Wa.mouse(_),F=Wa.select(Qa).on("keydown.brush",i).on("keyup.brush",p);if(Wa.event.changedTouches?F.on("touchmove.brush",g).on("touchend.brush",m):F.on("mousemove.brush",g).on("mouseup.brush",m),E.interrupt().selectAll("*").interrupt(),S)T[0]=l[0]-T[0],T[1]=f[0]-T[1];else if(M){var N=+/w$/.test(M),L=+/^n/.test(M);b=[l[1-N]-T[0],f[1-L]-T[1]],T[0]=l[N],T[1]=f[L]}else Wa.event.altKey&&(v=T.slice());E.style("pointer-events","none").selectAll(".resize").style("display",null),Wa.select("body").style("cursor",w.style("cursor")),k({type:"brushstart"}),g()}var a,o,u=k(t,"brushstart","brush","brushend"),s=null,c=null,l=[0,0],f=[0,0],h=!0,d=!0,p=Rs[0];return t.event=function(t){t.each(function(){var t=u.of(this,arguments),n={x:l,y:f,i:a,j:o},e=this.__chart__||n;this.__chart__=n,Cs?Wa.select(this).transition().each("start.brush",function(){a=e.i,o=e.j,l=e.x,f=e.y,t({type:"brushstart"})}).tween("brush:brush",function(){var e=vr(l,n.x),r=vr(f,n.y);return a=o=null,function(i){l=n.x=e(i),f=n.y=r(i),t({type:"brush",mode:"resize"})}}).each("end.brush",function(){a=n.i,o=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?(s=n,p=Rs[!s<<1|!c],t):s},t.y=function(n){return arguments.length?(c=n,p=Rs[!s<<1|!c],t):c},t.clamp=function(n){return arguments.length?(s&&c?(h=!!n[0],d=!!n[1]):s?h=!!n:c&&(d=!!n),t):s&&c?[h,d]:s?h:c?d:null},t.extent=function(n){var e,r,i,u,h;return arguments.length?(s&&(e=n[0],r=n[1],c&&(e=e[0],r=r[0]),a=[e,r],s.invert&&(e=s(e),r=s(r)),e>r&&(h=e,e=r,r=h),(e!=l[0]||r!=l[1])&&(l=[e,r])),c&&(i=n[0],u=n[1],s&&(i=i[1],u=u[1]),o=[i,u],c.invert&&(i=c(i),u=c(u)),i>u&&(h=i,i=u,u=h),(i!=f[0]||u!=f[1])&&(f=[i,u])),t):(s&&(a?(e=a[0],r=a[1]):(e=l[0],r=l[1],s.invert&&(e=s.invert(e),r=s.invert(r)),e>r&&(h=e,e=r,r=h))),c&&(o?(i=o[0],u=o[1]):(i=f[0],u=f[1],c.invert&&(i=c.invert(i),u=c.invert(u)),i>u&&(h=i,i=u,u=h))),s&&c?[[e,i],[r,u]]:s?[e,r]:c&&[i,u])},t.clear=function(){return t.empty()||(l=[0,0],f=[0,0],a=o=null),t},t.empty=function(){return!!s&&l[0]==l[1]||!!c&&f[0]==f[1]},Wa.rebind(t,u,"on")};var qs={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Rs=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Ps=iu.format=lu.timeFormat,js=Ps.utc,Us=js("%Y-%m-%dT%H:%M:%S.%LZ");Ps.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Ya:Us,Ya.parse=function(t){var n=new Date(t);return isNaN(n)?null:n},Ya.toString=Us.toString,iu.second=Pt(function(t){return new au(1e3*Math.floor(t/1e3))},function(t,n){t.setTime(t.getTime()+1e3*Math.floor(n))},function(t){return t.getSeconds()}),iu.seconds=iu.second.range,iu.seconds.utc=iu.second.utc.range,iu.minute=Pt(function(t){return new au(6e4*Math.floor(t/6e4))},function(t,n){t.setTime(t.getTime()+6e4*Math.floor(n))},function(t){return t.getMinutes()}),iu.minutes=iu.minute.range,iu.minutes.utc=iu.minute.utc.range,iu.hour=Pt(function(t){var n=t.getTimezoneOffset()/60;return new au(36e5*(Math.floor(t/36e5-n)+n))},function(t,n){t.setTime(t.getTime()+36e5*Math.floor(n))},function(t){return t.getHours()}),iu.hours=iu.hour.range,iu.hours.utc=iu.hour.utc.range,iu.month=Pt(function(t){return t=iu.day(t),t.setDate(1),t},function(t,n){t.setMonth(t.getMonth()+n)},function(t){return t.getMonth()}),iu.months=iu.month.range,iu.months.utc=iu.month.utc.range;var zs=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Ys=[[iu.second,1],[iu.second,5],[iu.second,15],[iu.second,30],[iu.minute,1],[iu.minute,5],[iu.minute,15],[iu.minute,30],[iu.hour,1],[iu.hour,3],[iu.hour,6],[iu.hour,12],[iu.day,1],[iu.day,2],[iu.week,1],[iu.month,1],[iu.month,3],[iu.year,1]],Vs=Ps.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",Sn]]),Hs={range:function(t,n,e){return Wa.range(Math.ceil(t/e)*e,+n,e).map(Ha)},floor:At,ceil:At};Ys.year=iu.year,iu.scale=function(){return Va(Wa.scale.linear(),Ys,Vs)};var Gs=Ys.map(function(t){return[t[0].utc,t[1]]}),$s=js.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",Sn]]);Gs.year=iu.year.utc,iu.scale.utc=function(){return Va(Wa.scale.linear(),Gs,$s)},Wa.text=Dt(function(t){return t.responseText}),Wa.json=function(t,n){return St(t,"application/json",Ga,n)},Wa.html=function(t,n){return St(t,"text/html",$a,n)},Wa.xml=Dt(function(t){return t.responseXML}),"function"==typeof define&&define.amd?define(Wa):"object"==typeof module&&module.exports&&(module.exports=Wa),this.d3=Wa}(),!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n=global:"undefined"!=typeof self&&(n=self),n.dagreD3=t()}}(function(){var t;return function n(t,e,r){function i(o,u){if(!e[o]){if(!t[o]){var s="function"==typeof require&&require;if(!u&&s)return s(o,!0);if(a)return a(o,!0);var c=new Error("Cannot find module '"+o+"'");throw c.code="MODULE_NOT_FOUND",c}var l=e[o]={exports:{}};t[o][0].call(l.exports,function(n){var e=t[o][1][n];return i(e?e:n)},l,l.exports,n,t,e,r)}return e[o].exports}for(var a="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(t,n){n.exports={graphlib:t("./lib/graphlib"),dagre:t("./lib/dagre"),intersect:t("./lib/intersect"),render:t("./lib/render"),util:t("./lib/util"),version:t("./lib/version")}},{"./lib/dagre":8,"./lib/graphlib":9,"./lib/intersect":10,"./lib/render":23,"./lib/util":25,"./lib/version":26}],2:[function(t,n){function e(t,n,e,r){var i=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"),o=i.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");a.applyStyle(o,e[r+"Style"])}function r(t,n,e,r){var i=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"),o=i.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.applyStyle(o,e[r+"Style"])}function i(t,n,e,r){var i=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"),o=i.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");a.applyStyle(o,e[r+"Style"])}var a=t("./util");n.exports={"default":e,normal:e,vee:r,undirected:i}},{"./util":25}],3:[function(t,n){function e(t,n){var e=n.nodes().filter(function(t){return r.isSubgraph(n,t)}),i=t.selectAll("g.cluster").data(e,function(t){return t});i.enter().append("g").attr("class","cluster").style("opacity",0).append("rect"),r.applyTransition(i.exit(),n).style("opacity",0).remove(),r.applyTransition(i,n).style("opacity",1),r.applyTransition(i.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){var e=n.node(t);return e.x-e.width/2}).attr("y",function(t){var e=n.node(t);return e.y-e.height/2})}var r=t("./util");n.exports=e},{"./util":25}],4:[function(t,n){"use strict";function e(t,n){var e=t.selectAll("g.edgeLabel").data(n.edges(),function(t){return a.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),a=i(o.select(this),n.edge(t),0,0).classed("label",!0),u=a.node().getBBox();e.labelId&&a.attr("id",e.labelId),r.has(e,"width")||(e.width=u.width),r.has(e,"height")||(e.height=u.height)}),a.applyTransition(e.exit(),n).style("opacity",0).remove(),e}var r=t("./lodash"),i=t("./label/add-label"),a=t("./util"),o=t("./d3");n.exports=e},{"./d3":7,"./label/add-label":18,"./lodash":20,"./util":25}],5:[function(t,n){"use strict";function e(t,n,e){var i=t.selectAll("g.edgePath").data(n.edges(),function(t){return l.edgeToId(t)}).classed("update",!0);return o(i,n),u(i,n),l.applyTransition(i,n).style("opacity",1),i.each(function(t){var e=f.select(this),r=n.edge(t);r.elem=this,r.id&&e.attr("id",r.id),l.applyClass(e,r["class"],(e.classed("update")?"update ":"")+"edgePath")}),i.selectAll("path.path").each(function(t){var e=n.edge(t);e.arrowheadId=s.uniqueId("arrowhead");var i=f.select(this).attr("marker-end",function(){return"url(#"+e.arrowheadId+")"}).style("fill","none");l.applyTransition(i,n).attr("d",function(t){return r(n,t)}),l.applyStyle(i,e.style)}),i.selectAll("defs *").remove(),i.selectAll("defs").each(function(t){var r=n.edge(t),i=e[r.arrowhead];i(f.select(this),r.arrowheadId,r,"arrowhead")}),i}function r(t,n){var e=t.edge(n),r=t.node(n.v),a=t.node(n.w),o=e.points.slice(1,e.points.length-1);return o.unshift(c(r,o[0])),o.push(c(a,o[o.length-1])),i(e,o)}function i(t,n){var e=f.svg.line().x(function(t){return t.x}).y(function(t){return t.y});return s.has(t,"lineInterpolate")&&e.interpolate(t.lineInterpolate),s.has(t,"lineTension")&&e.tension(Number(t.lineTension)),e(n)}function a(t){var n=t.getBBox(),e=t.getTransformToElement(t.ownerSVGElement).translate(n.width/2,n.height/2);return{x:e.e,y:e.f}}function o(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,o=s.range(e.points.length).map(function(){return a(r)});return i(e,o)}),e.append("defs")}function u(t,n){var e=t.exit();l.applyTransition(e,n).style("opacity",0).remove(),l.applyTransition(e.select("path.path"),n).attr("d",function(t){var e=n.node(t.v);if(e){var r=s.range(this.pathSegList.length).map(function(){return e});return i({},r)}return f.select(this).attr("d")})}var s=t("./lodash"),c=t("./intersect/intersect-node"),l=t("./util"),f=t("./d3");n.exports=e},{"./d3":7,"./intersect/intersect-node":14,"./lodash":20,"./util":25}],6:[function(t,n){"use strict";function e(t,n,e){var u=n.nodes().filter(function(t){return!a.isSubgraph(n,t)}),s=t.selectAll("g.node").data(u,function(t){return t}).classed("update",!0);return s.selectAll("*").remove(),s.enter().append("g").attr("class","node").style("opacity",0),s.each(function(t){var u=n.node(t),s=o.select(this),c=s.append("g").attr("class","label"),l=i(c,u),f=e[u.shape],h=r.pick(l.node().getBBox(),"width","height");u.elem=this,u.id&&s.attr("id",u.id),u.labelId&&c.attr("id",u.labelId),a.applyClass(s,u["class"],(s.classed("update")?"update ":"")+"node"),r.has(u,"width")&&(h.width=u.width),r.has(u,"height")&&(h.height=u.height),h.width+=u.paddingLeft+u.paddingRight,h.height+=u.paddingTop+u.paddingBottom,c.attr("transform","translate("+(u.paddingLeft-u.paddingRight)/2+","+(u.paddingTop-u.paddingBottom)/2+")");var d=f(o.select(this),h,u);a.applyStyle(d,u.style);var p=d.node().getBBox();u.width=p.width,u.height=p.height}),a.applyTransition(s.exit(),n).style("opacity",0).remove(),s}var r=t("./lodash"),i=t("./label/add-label"),a=t("./util"),o=t("./d3");n.exports=e},{"./d3":7,"./label/add-label":18,"./lodash":20,"./util":25}],7:[function(t,n){n.exports=window.d3},{}],8:[function(t,n){var e;if(t)try{e=t("dagre")}catch(r){}e||(e=window.dagre),n.exports=e},{dagre:27}],9:[function(t,n){var e;if(t)try{e=t("graphlib")}catch(r){}e||(e=window.graphlib),n.exports=e},{graphlib:57}],10:[function(t,n){n.exports={node:t("./intersect-node"),circle:t("./intersect-circle"),ellipse:t("./intersect-ellipse"),polygon:t("./intersect-polygon"),rect:t("./intersect-rect")}},{"./intersect-circle":11,"./intersect-ellipse":12,"./intersect-node":14,"./intersect-polygon":15,"./intersect-rect":16}],11:[function(t,n){function e(t,n,e){return r(t,n,n,e)}var r=t("./intersect-ellipse");n.exports=e},{"./intersect-ellipse":12}],12:[function(t,n){function e(t,n,e,r){var i=t.x,a=t.y,o=i-r.x,u=a-r.y,s=Math.sqrt(n*n*u*u+e*e*o*o),c=Math.abs(n*e*o/s);r.x<i&&(c=-c);var l=Math.abs(n*e*u/s);return r.y<a&&(l=-l),{x:i+c,y:a+l}}n.exports=e},{}],13:[function(t,n){function e(t,n,e,i){var a,o,u,s,c,l,f,h,d,p,g,y,m,v,b;return a=n.y-t.y,u=t.x-n.x,c=n.x*t.y-t.x*n.y,d=a*e.x+u*e.y+c,p=a*i.x+u*i.y+c,0!==d&&0!==p&&r(d,p)||(o=i.y-e.y,s=e.x-i.x,l=i.x*e.y-e.x*i.y,f=o*t.x+s*t.yy+l,h=o*n.x+s*n.y+l,0!==f&&0!==h&&r(f,h)||(g=a*s-o*u,0===g))?void 0:(y=Math.abs(g/2),m=u*l-s*c,v=0>m?(m-y)/g:(m+y)/g,m=o*c-a*l,b=0>m?(m-y)/g:(m+y)/g,{x:v,y:b})}function r(t,n){return t*n>0}n.exports=e},{}],14:[function(t,n){function e(t,n){return t.intersect(n)}n.exports=e},{}],15:[function(t,n){function e(t,n,e){var i=t.x,a=t.y,o=[],u=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;n.forEach(function(t){u=Math.min(u,t.x),s=Math.min(s,t.y)});for(var c=i-t.width/2-u,l=a-t.height/2-s,f=0;f<n.length;f++){var h=n[f],d=n[f<n.length-1?f+1:0],p=r(t,e,{x:c+h.x,y:l+h.y},{x:c+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,i=t.y-e.y,a=Math.sqrt(r*r+i*i),o=n.x-e.x,u=n.y-e.y,s=Math.sqrt(o*o+u*u);return s>a?-1:a===s?0:1}),o[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",t),t)}var r=t("./intersect-line");n.exports=e},{"./intersect-line":13}],16:[function(t,n){function e(t,n){var e,r,i=t.x,a=t.y,o=n.x-i,u=n.y-a,s=t.width/2,c=t.height/2;return Math.abs(u)*s>Math.abs(o)*c?(0>u&&(c=-c),e=0===u?0:c*o/u,r=c):(0>o&&(s=-s),e=s,r=0===o?0:s*u/o),{x:i+e,y:a+r}}n.exports=e},{}],17:[function(t,n){function e(t,n){var e=t.append("foreignObject").attr("width","100000"),i=e.append("xhtml:div"),a=n.label;switch(typeof a){case"function":i.insert(a);break;case"object":i.insert(function(){return a});break;default:i.html(a)}r.applyStyle(i,n.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap");var o,u;return i.each(function(){o=this.clientWidth,u=this.clientHeight}),e.attr("width",o).attr("height",u),e}var r=t("../util");n.exports=e},{"../util":25}],18:[function(t,n){function e(t,n){var e=n.label,a=t.append("g");"string"!=typeof e||"html"===n.labelType?i(a,n):r(a,n);var o=a.node().getBBox();return a.attr("transform","translate("+-o.width/2+","+-o.height/2+")"),a}var r=t("./add-text-label"),i=t("./add-html-label");n.exports=e},{"./add-html-label":17,"./add-text-label":19}],19:[function(t,n){function e(t,n){for(var e=t.append("text"),a=r(n.label).split("\n"),o=0;o<a.length;o++)e.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(a[o]);return i.applyStyle(e,n.labelStyle),e}function r(t){for(var n,e="",r=!1,i=0;i<t.length;++i)if(n=t[i],r){switch(n){case"n":e+="\n";break;default:e+=n}r=!1}else"\\"===n?r=!0:e+=n;return e}var i=t("../util");n.exports=e},{"../util":25}],20:[function(t,n){var e;if(t)try{e=t("lodash")}catch(r){}e||(e=window._),n.exports=e},{lodash:77}],21:[function(t,n){"use strict";function e(t,n){function e(t){var e=n.edge(t);return a.has(e,"x")?"translate("+e.x+","+e.y+")":""}var o=t.filter(function(){return!i.select(this).classed("update")});o.attr("transform",e),r.applyTransition(t,n).style("opacity",1).attr("transform",e)}var r=t("./util"),i=t("./d3"),a=t("./lodash");n.exports=e},{"./d3":7,"./lodash":20,"./util":25}],22:[function(t,n){"use strict";function e(t,n){function e(t){var e=n.node(t);return"translate("+e.x+","+e.y+")"}var a=t.filter(function(){return!i.select(this).classed("update")});a.attr("transform",e),r.applyTransition(t,n).style("opacity",1).attr("transform",e)}var r=t("./util"),i=t("./d3");n.exports=e},{"./d3":7,"./util":25}],23:[function(t,n){function e(){var n=t("./create-nodes"),e=t("./create-clusters"),o=t("./create-edge-labels"),s=t("./create-edge-paths"),c=t("./position-nodes"),l=t("./position-edge-labels"),f=t("./shapes"),h=t("./arrows"),d=function(t,d){r(d);var p=a(t,"output"),g=a(p,"clusters"),y=a(p,"edgePaths"),m=o(a(p,"edgeLabels"),d),v=n(a(p,"nodes"),d,f);u(d),c(v,d),l(m,d),s(y,d,h),e(g,d),i(d)};return d.createNodes=function(t){return arguments.length?(n=t,d):n},d.createClusters=function(t){return arguments.length?(e=t,d):e},d.createEdgeLabels=function(t){return arguments.length?(o=t,d):o},d.createEdgePaths=function(t){return arguments.length?(s=t,d):s},d.shapes=function(t){return arguments.length?(f=t,d):f},d.arrows=function(t){return arguments.length?(h=t,d):h},d}function r(t){t.nodes().forEach(function(n){var e=t.node(n);o.has(e,"label")||(e.label=n),o.has(e,"paddingX")&&o.defaults(e,{paddingLeft:e.paddingX,paddingRight:e.paddingX}),o.has(e,"paddingY")&&o.defaults(e,{paddingTop:e.paddingY,paddingBottom:e.paddingY}),o.has(e,"padding")&&o.defaults(e,{paddingLeft:e.padding,paddingRight:e.padding,paddingTop:e.padding,paddingBottom:e.padding}),o.defaults(e,s),o.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(t){e[t]=Number(e[t])}),o.has(e,"width")&&(e._prevWidth=e.width),o.has(e,"height")&&(e._prevHeight=e.height)}),t.edges().forEach(function(n){var e=t.edge(n);o.has(e,"label")||(e.label=""),o.defaults(e,c)})}function i(t){o.each(t.nodes(),function(n){var e=t.node(n);o.has(e,"_prevWidth")?e.width=e._prevWidth:delete e.width,o.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}var o=t("./lodash"),u=t("./dagre").layout;n.exports=e;var s={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},c={arrowhead:"normal",lineInterpolate:"linear"}},{"./arrows":2,"./create-clusters":3,"./create-edge-labels":4,"./create-edge-paths":5,"./create-nodes":6,"./dagre":8,"./lodash":20,"./position-edge-labels":21,"./position-nodes":22,"./shapes":24}],24:[function(t,n){"use strict";function e(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 o(e,t)},r}function r(t,n,e){var r=n.width/2,i=n.height/2,a=t.insert("ellipse",":first-child").attr("x",-n.width/2).attr("y",-n.height/2).attr("rx",r).attr("ry",i);return e.intersect=function(t){return u(e,r,i,t)},a}function i(t,n,e){
  var r=Math.max(n.width,n.height)/2,i=t.insert("circle",":first-child").attr("x",-n.width/2).attr("y",-n.height/2).attr("r",r);return e.intersect=function(t){return s(e,r,t)},i}function a(t,n,e){var r=n.width*Math.SQRT2/2,i=n.height*Math.SQRT2/2,a=[{x:0,y:-i},{x:-r,y:0},{x:0,y:i},{x:r,y:0}],o=t.insert("polygon",":first-child").attr("points",a.map(function(t){return t.x+","+t.y}).join(" "));return e.intersect=function(t){return c(e,a,t)},o}var o=t("./intersect/intersect-rect"),u=t("./intersect/intersect-ellipse"),s=t("./intersect/intersect-circle"),c=t("./intersect/intersect-polygon");n.exports={rect:e,ellipse:r,circle:i,diamond:a}},{"./intersect/intersect-circle":11,"./intersect/intersect-ellipse":12,"./intersect/intersect-polygon":15,"./intersect/intersect-rect":16}],25:[function(t,n){function e(t,n){return!!t.children(n).length}function r(t){return i(t.v)+":"+i(t.w)+":"+i(t.name)}function i(t){return t?String(t).replace(c,"\\:"):""}function a(t,n){n&&t.attr("style",n)}function o(t,n,e){n&&t.attr("class",n).attr("class",e+" "+t.attr("class"))}function u(t,n){var e=n.graph();if(s.isPlainObject(e)){var r=e.transition;if(s.isFunction(r))return r(t)}return t}var s=t("./lodash");n.exports={isSubgraph:e,edgeToId:r,applyStyle:a,applyClass:o,applyTransition:u};var c=/:/g},{"./lodash":20}],26:[function(t,n){n.exports="0.4.3"},{}],27:[function(t,n){n.exports={graphlib:t("./lib/graphlib"),layout:t("./lib/layout"),debug:t("./lib/debug"),util:{time:t("./lib/util").time,notime:t("./lib/util").notime},version:t("./lib/version")}},{"./lib/debug":32,"./lib/graphlib":33,"./lib/layout":35,"./lib/util":55,"./lib/version":56}],28:[function(t,n){"use strict";function e(t){function n(t){return function(n){return t.edge(n).weight}}var e="greedy"===t.graph().acyclicer?o(t,n(t)):r(t);a.each(e,function(n){var e=t.edge(n);t.removeEdge(n),e.forwardName=n.name,e.reversed=!0,t.setEdge(n.w,n.v,e,a.uniqueId("rev"))})}function r(t){function n(o){a.has(i,o)||(i[o]=!0,r[o]=!0,a.each(t.outEdges(o),function(t){a.has(r,t.w)?e.push(t):n(t.w)}),delete r[o])}var e=[],r={},i={};return a.each(t.nodes(),n),e}function i(t){a.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)}})}var a=t("./lodash"),o=t("./greedy-fas");n.exports={run:e,undo:i}},{"./greedy-fas":34,"./lodash":36}],29:[function(t,n){function e(t){function n(e){var a=t.children(e),o=t.node(e);if(a.length&&i.each(a,n),i.has(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var u=o.minRank,s=o.maxRank+1;s>u;++u)r(t,"borderLeft","_bl",e,o,u),r(t,"borderRight","_br",e,o,u)}}i.each(t.children(),n)}function r(t,n,e,r,i,o){var u={width:0,height:0,rank:o},s=i[n][o-1],c=a.addDummyNode(t,"border",u,e);i[n][o]=c,t.setParent(c,r),s&&t.setEdge(s,c,{weight:1})}var i=t("./lodash"),a=t("./util");n.exports=e},{"./lodash":36,"./util":55}],30:[function(t,n){"use strict";function e(t){var n=t.graph().rankdir.toLowerCase();("lr"===n||"rl"===n)&&i(t)}function r(t){var n=t.graph().rankdir.toLowerCase();("bt"===n||"rl"===n)&&o(t),("lr"===n||"rl"===n)&&(s(t),i(t))}function i(t){l.each(t.nodes(),function(n){a(t.node(n))}),l.each(t.edges(),function(n){a(t.edge(n))})}function a(t){var n=t.width;t.width=t.height,t.height=n}function o(t){l.each(t.nodes(),function(n){u(t.node(n))}),l.each(t.edges(),function(n){var e=t.edge(n);l.each(e.points,u),l.has(e,"y")&&u(e)})}function u(t){t.y=-t.y}function s(t){l.each(t.nodes(),function(n){c(t.node(n))}),l.each(t.edges(),function(n){var e=t.edge(n);l.each(e.points,c),l.has(e,"x")&&c(e)})}function c(t){var n=t.x;t.x=t.y,t.y=n}var l=t("./lodash");n.exports={adjust:e,undo:r}},{"./lodash":36}],31:[function(t,n){function e(){var t={};t._next=t._prev=t,this._sentinel=t}function r(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function i(t,n){return"_next"!==t&&"_prev"!==t?n:void 0}n.exports=e,e.prototype.dequeue=function(){var t=this._sentinel,n=t._prev;return n!==t?(r(n),n):void 0},e.prototype.enqueue=function(t){var n=this._sentinel;t._prev&&t._next&&r(t),t._next=n._next,n._next._prev=t,n._next=t,t._prev=n},e.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(", ")+"]"}},{}],32:[function(t,n){function e(t){var n=i.buildLayerMatrix(t),e=new a({compound:!0,multigraph:!0}).setGraph({});return r.each(t.nodes(),function(n){e.setNode(n,{label:n}),e.setParent(n,"layer"+t.node(n).rank)}),r.each(t.edges(),function(t){e.setEdge(t.v,t.w,{},t.name)}),r.each(n,function(t,n){var i="layer"+n;e.setNode(i,{rank:"same"}),r.reduce(t,function(t,n){return e.setEdge(t,n,{style:"invis"}),n})}),e}var r=t("./lodash"),i=t("./util"),a=t("./graphlib").Graph;n.exports={debugOrdering:e}},{"./graphlib":33,"./lodash":36,"./util":55}],33:[function(t,n){n.exports=t(9)},{"/Users/cpettitt/projects/dagre-d3/lib/graphlib.js":9,graphlib:57}],34:[function(t,n){function e(t,n){if(t.nodeCount()<=1)return[];var e=a(t,n||l),i=r(e.graph,e.buckets,e.zeroIdx);return u.flatten(u.map(i,function(n){return t.outEdges(n.v,n.w)}),!0)}function r(t,n,e){for(var r,a=[],o=n[n.length-1],u=n[0];t.nodeCount();){for(;r=u.dequeue();)i(t,n,e,r);for(;r=o.dequeue();)i(t,n,e,r);if(t.nodeCount())for(var s=n.length-2;s>0;--s)if(r=n[s].dequeue()){a=a.concat(i(t,n,e,r,!0));break}}return a}function i(t,n,e,r,i){var a=i?[]:void 0;return u.each(t.inEdges(r.v),function(r){var u=t.edge(r),s=t.node(r.v);i&&a.push({v:r.v,w:r.w}),s.out-=u,o(n,e,s)}),u.each(t.outEdges(r.v),function(r){var i=t.edge(r),a=r.w,u=t.node(a);u["in"]-=i,o(n,e,u)}),t.removeNode(r.v),a}function a(t,n){var e=new s,r=0,i=0;u.each(t.nodes(),function(t){e.setNode(t,{v:t,"in":0,out:0})}),u.each(t.edges(),function(t){var a=e.edge(t.v,t.w)||0,o=n(t),u=a+o;e.setEdge(t.v,t.w,u),i=Math.max(i,e.node(t.v).out+=o),r=Math.max(r,e.node(t.w)["in"]+=o)});var a=u.range(i+r+3).map(function(){return new c}),l=r+1;return u.each(e.nodes(),function(t){o(a,l,e.node(t))}),{graph:e,buckets:a,zeroIdx:l}}function o(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)}var u=t("./lodash"),s=t("./graphlib").Graph,c=t("./data/list");n.exports=e;var l=u.constant(1)},{"./data/list":31,"./graphlib":33,"./lodash":36}],35:[function(t,n){"use strict";function e(t,n){var e=n&&n.debugTiming?N.time:N.notime;e("layout",function(){var n=e("  buildLayoutGraph",function(){return a(t)});e("  runLayout",function(){r(n,e)}),e("  updateInputGraph",function(){i(t,n)})})}function r(t,n){n("    makeSpaceForEdgeLabels",function(){o(t)}),n("    removeSelfEdges",function(){g(t)}),n("    acyclic",function(){x.run(t)}),n("    nestingGraph.run",function(){D.run(t)}),n("    rank",function(){k(N.asNonCompoundGraph(t))}),n("    injectEdgeLabelProxies",function(){u(t)}),n("    removeEmptyRanks",function(){A(t)}),n("    nestingGraph.cleanup",function(){D.cleanup(t)}),n("    normalizeRanks",function(){E(t)}),n("    assignRankMinMax",function(){s(t)}),n("    removeEdgeLabelProxies",function(){c(t)}),n("    normalize.run",function(){w.run(t)}),n("    parentDummyChains",function(){M(t)}),n("    addBorderSegments",function(){S(t)}),n("    order",function(){T(t)}),n("    insertSelfEdges",function(){y(t)}),n("    adjustCoordinateSystem",function(){C.adjust(t)}),n("    position",function(){F(t)}),n("    positionSelfEdges",function(){m(t)}),n("    removeBorderNodes",function(){p(t)}),n("    normalize.undo",function(){w.undo(t)}),n("    fixupEdgeLabelCoords",function(){h(t)}),n("    undoCoordinateSystem",function(){C.undo(t)}),n("    translateGraph",function(){l(t)}),n("    assignNodeIntersects",function(){f(t)}),n("    reversePoints",function(){d(t)}),n("    acyclic.undo",function(){x.undo(t)})}function i(t,n){_.each(t.nodes(),function(e){var r=t.node(e),i=n.node(e);r&&(r.x=i.x,r.y=i.y,n.children(e).length&&(r.width=i.width,r.height=i.height))}),_.each(t.edges(),function(e){var r=t.edge(e),i=n.edge(e);r.points=i.points,_.has(i,"x")&&(r.x=i.x,r.y=i.y)}),t.graph().width=n.graph().width,t.graph().height=n.graph().height}function a(t){var n=new L({multigraph:!0,compound:!0}),e=b(t.graph());return n.setGraph(_.merge({},O,v(e,B),_.pick(e,I))),_.each(t.nodes(),function(e){var r=b(t.node(e));n.setNode(e,_.defaults(v(r,q),R)),n.setParent(e,t.parent(e))}),_.each(t.edges(),function(e){var r=b(t.edge(e));n.setEdge(e,_.merge({},j,v(r,P),_.pick(r,U)))}),n}function o(t){var n=t.graph();n.ranksep/=2,_.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 u(t){_.each(t.edges(),function(n){var e=t.edge(n);if(e.width&&e.height){var r=t.node(n.v),i=t.node(n.w),a={rank:(i.rank-r.rank)/2+r.rank,e:n};N.addDummyNode(t,"edge-proxy",a,"_ep")}})}function s(t){var n=0;_.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=_.max(n,r.maxRank))}),t.graph().maxRank=n}function c(t){_.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 l(t){function n(t){var n=t.x,o=t.y,u=t.width,s=t.height;e=Math.min(e,n-u/2),r=Math.max(r,n+u/2),i=Math.min(i,o-s/2),a=Math.max(a,o+s/2)}var e=Number.POSITIVE_INFINITY,r=0,i=Number.POSITIVE_INFINITY,a=0,o=t.graph(),u=o.marginx||0,s=o.marginy||0;_.each(t.nodes(),function(e){n(t.node(e))}),_.each(t.edges(),function(e){var r=t.edge(e);_.has(r,"x")&&n(r)}),e-=u,i-=s,_.each(t.nodes(),function(n){var r=t.node(n);r.x-=e,r.y-=i}),_.each(t.edges(),function(n){var r=t.edge(n);_.each(r.points,function(t){t.x-=e,t.y-=i}),_.has(r,"x")&&(r.x-=e),_.has(r,"y")&&(r.y-=i)}),o.width=r-e+u,o.height=a-i+s}function f(t){_.each(t.edges(),function(n){var e,r,i=t.edge(n),a=t.node(n.v),o=t.node(n.w);i.points?(e=i.points[0],r=i.points[i.points.length-1]):(i.points=[],e=o,r=a),i.points.unshift(N.intersectRect(a,e)),i.points.push(N.intersectRect(o,r))})}function h(t){_.each(t.edges(),function(n){var e=t.edge(n);if(_.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 d(t){_.each(t.edges(),function(n){var e=t.edge(n);e.reversed&&e.points.reverse()})}function p(t){_.each(t.nodes(),function(n){if(t.children(n).length){var e=t.node(n),r=t.node(e.borderTop),i=t.node(e.borderBottom),a=t.node(_.last(e.borderLeft)),o=t.node(_.last(e.borderRight));e.width=Math.abs(o.x-a.x),e.height=Math.abs(i.y-r.y),e.x=a.x+e.width/2,e.y=r.y+e.height/2}}),_.each(t.nodes(),function(n){"border"===t.node(n).dummy&&t.removeNode(n)})}function g(t){_.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 y(t){var n=N.buildLayerMatrix(t);_.each(n,function(n){var e=0;_.each(n,function(n,r){var i=t.node(n);i.order=r+e,_.each(i.selfEdges,function(n){N.addDummyNode(t,"selfedge",{width:n.label.width,height:n.label.height,rank:i.rank,order:r+ ++e,e:n.e,label:n.label},"_se")}),delete i.selfEdges})})}function m(t){_.each(t.nodes(),function(n){var e=t.node(n);if("selfedge"===e.dummy){var r=t.node(e.e.v),i=r.x+r.width/2,a=r.y,o=e.x-i,u=r.height/2;t.setEdge(e.e,e.label),t.removeNode(n),e.label.points=[{x:i+2*o/3,y:a-u},{x:i+5*o/6,y:a-u},{x:i+o,y:a},{x:i+5*o/6,y:a+u},{x:i+2*o/3,y:a+u}],e.label.x=e.x,e.label.y=e.y}})}function v(t,n){return _.mapValues(_.pick(t,n),Number)}function b(t){var n={};return _.each(t,function(t,e){n[e.toLowerCase()]=t}),n}var _=t("./lodash"),x=t("./acyclic"),w=t("./normalize"),k=t("./rank"),E=t("./util").normalizeRanks,M=t("./parent-dummy-chains"),A=t("./util").removeEmptyRanks,D=t("./nesting-graph"),S=t("./add-border-segments"),C=t("./coordinate-system"),T=t("./order"),F=t("./position"),N=t("./util"),L=t("./graphlib").Graph;n.exports=e;var B=["nodesep","edgesep","ranksep","marginx","marginy"],O={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},I=["acyclicer","ranker","rankdir","align"],q=["width","height"],R={width:0,height:0},P=["minlen","weight","width","height","labeloffset"],j={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},U=["labelpos"]},{"./acyclic":28,"./add-border-segments":29,"./coordinate-system":30,"./graphlib":33,"./lodash":36,"./nesting-graph":37,"./normalize":38,"./order":43,"./parent-dummy-chains":48,"./position":50,"./rank":52,"./util":55}],36:[function(t,n){n.exports=t(20)},{"/Users/cpettitt/projects/dagre-d3/lib/lodash.js":20,lodash:77}],37:[function(t,n){function e(t){var n=s.addDummyNode(t,"root",{},"_root"),e=i(t),o=u.max(e)-1,c=2*o+1;t.graph().nestingRoot=n,u.each(t.edges(),function(n){t.edge(n).minlen*=c});var l=a(t)+1;u.each(t.children(),function(i){r(t,n,c,l,o,e,i)}),t.graph().nodeRankFactor=c}function r(t,n,e,i,a,o,c){var l=t.children(c);if(!l.length)return void(c!==n&&t.setEdge(n,c,{weight:0,minlen:e}));var f=s.addBorderNode(t,"_bt"),h=s.addBorderNode(t,"_bb"),d=t.node(c);t.setParent(f,c),d.borderTop=f,t.setParent(h,c),d.borderBottom=h,u.each(l,function(u){r(t,n,e,i,a,o,u);var s=t.node(u),l=s.borderTop?s.borderTop:u,d=s.borderBottom?s.borderBottom:u,p=s.borderTop?i:2*i,g=l!==d?1:a-o[c]+1;t.setEdge(f,l,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(d,h,{weight:p,minlen:g,nestingEdge:!0})}),t.parent(c)||t.setEdge(n,f,{weight:0,minlen:a+o[c]})}function i(t){function n(r,i){var a=t.children(r);a&&a.length&&u.each(a,function(t){n(t,i+1)}),e[r]=i}var e={};return u.each(t.children(),function(t){n(t,1)}),e}function a(t){return u.reduce(t.edges(),function(n,e){return n+t.edge(e).weight},0)}function o(t){var n=t.graph();t.removeNode(n.nestingRoot),delete n.nestingRoot,u.each(t.edges(),function(n){var e=t.edge(n);e.nestingEdge&&t.removeEdge(n)})}var u=t("./lodash"),s=t("./util");n.exports={run:e,cleanup:o}},{"./lodash":36,"./util":55}],38:[function(t,n){"use strict";function e(t){t.graph().dummyChains=[],a.each(t.edges(),function(n){r(t,n)})}function r(t,n){var e=n.v,r=t.node(e).rank,i=n.w,a=t.node(i).rank,u=n.name,s=t.edge(n),c=s.labelRank;if(a!==r+1){t.removeEdge(n);var l,f,h;for(h=0,++r;a>r;++h,++r)s.points=[],f={width:0,height:0,edgeLabel:s,edgeObj:n,rank:r},l=o.addDummyNode(t,"edge",f,"_d"),r===c&&(f.width=s.width,f.height=s.height,f.dummy="edge-label",f.labelpos=s.labelpos),t.setEdge(e,l,{weight:s.weight},u),0===h&&t.graph().dummyChains.push(l),e=l;t.setEdge(e,i,{weight:s.weight},u)}}function i(t){a.each(t.graph().dummyChains,function(n){var e,r=t.node(n),i=r.edgeLabel;for(t.setEdge(r.edgeObj,i);r.dummy;)e=t.successors(n)[0],t.removeNode(n),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),n=e,r=t.node(n)})}var a=t("./lodash"),o=t("./util");n.exports={run:e,undo:i}},{"./lodash":36,"./util":55}],39:[function(t,n){function e(t,n,e){var i,a={};r.each(e,function(e){for(var r,o,u=t.parent(e);u;){if(r=t.parent(u),r?(o=a[r],a[r]=u):(o=i,i=u),o&&o!==u)return void n.setEdge(o,u);u=r}})}var r=t("../lodash");n.exports=e},{"../lodash":36}],40:[function(t,n){function e(t,n){return r.map(n,function(n){var e=t.inEdges(n);if(e.length){var i=r.reduce(e,function(n,e){var r=t.edge(e),i=t.node(e.v);return{sum:n.sum+r.weight*i.order,weight:n.weight+r.weight}},{sum:0,weight:0});return{v:n,barycenter:i.sum/i.weight,weight:i.weight}}return{v:n}})}var r=t("../lodash");n.exports=e},{"../lodash":36}],41:[function(t,n){function e(t,n,e){var o=r(t),u=new a({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(n){return t.node(n)});return i.each(t.nodes(),function(r){var a=t.node(r),s=t.parent(r);(a.rank===n||a.minRank<=n&&n<=a.maxRank)&&(u.setNode(r),u.setParent(r,s||o),i.each(t[e](r),function(n){var e=n.v===r?n.w:n.v,a=u.edge(e,r),o=i.isUndefined(a)?0:a.weight;u.setEdge(e,r,{weight:t.edge(n).weight+o})}),i.has(a,"minRank")&&u.setNode(r,{borderLeft:a.borderLeft[n],borderRight:a.borderRight[n]}))}),u}function r(t){for(var n;t.hasNode(n=i.uniqueId("_root")););return n}var i=t("../lodash"),a=t("../graphlib").Graph;n.exports=e},{"../graphlib":33,"../lodash":36}],42:[function(t,n){"use strict";function e(t,n){for(var e=0,i=1;i<n.length;++i)e+=r(t,n[i-1],n[i]);return e}function r(t,n,e){for(var r=i.zipObject(e,i.map(e,function(t,n){return n})),a=i.flatten(i.map(n,function(n){return i.chain(t.outEdges(n)).map(function(n){return{pos:r[n.w],weight:t.edge(n).weight}}).sortBy("pos").value()}),!0),o=1;o<e.length;)o<<=1;var u=2*o-1;o-=1;var s=i.map(new Array(u),function(){return 0}),c=0;return i.each(a.forEach(function(t){var n=t.pos+o;s[n]+=t.weight;for(var e=0;n>0;)n%2&&(e+=s[n+1]),n=n-1>>1,s[n]+=t.weight;c+=t.weight*e})),c}var i=t("../lodash");n.exports=e},{"../lodash":36}],43:[function(t,n){"use strict";function e(t){var n=d.maxRank(t),e=r(t,o.range(1,n+1),"inEdges"),c=r(t,o.range(n-1,-1,-1),"outEdges"),l=u(t);a(t,l);for(var f,h=Number.POSITIVE_INFINITY,p=0,g=0;4>g;++p,++g){i(p%2?e:c,p%4>=2),l=d.buildLayerMatrix(t);var y=s(t,l);h>y&&(g=0,f=o.cloneDeep(l),h=y)}a(t,f)}function r(t,n,e){return o.map(n,function(n){return l(t,n,e)})}function i(t,n){var e=new h;o.each(t,function(t){var r=t.graph().root,i=c(t,r,e,n);o.each(i.vs,function(n,e){t.node(n).order=e}),f(t,e,i.vs)})}function a(t,n){o.each(n,function(n){o.each(n,function(n,e){t.node(n).order=e})})}var o=t("../lodash"),u=t("./init-order"),s=t("./cross-count"),c=t("./sort-subgraph"),l=t("./build-layer-graph"),f=t("./add-subgraph-constraints"),h=t("../graphlib").Graph,d=t("../util");n.exports=e},{"../graphlib":33,"../lodash":36,"../util":55,"./add-subgraph-constraints":39,"./build-layer-graph":41,"./cross-count":42,"./init-order":44,"./sort-subgraph":46}],44:[function(t,n){"use strict";function e(t){function n(i){if(!r.has(e,i)){e[i]=!0;var a=t.node(i);o[a.rank].push(i),r.each(t.successors(i),n)}}var e={},i=r.filter(t.nodes(),function(n){return!t.children(n).length}),a=r.max(r.map(i,function(n){return t.node(n).rank})),o=r.map(r.range(a+1),function(){return[]}),u=r.sortBy(i,function(n){return t.node(n).rank});return r.each(u,n),o}var r=t("../lodash");n.exports=e},{"../lodash":36}],45:[function(t,n){"use strict";function e(t,n){var e={};a.each(t,function(t,n){var r=e[t.v]={indegree:0,"in":[],out:[],vs:[t.v],i:n};a.isUndefined(t.barycenter)||(r.barycenter=t.barycenter,r.weight=t.weight)}),a.each(n.edges(),function(t){var n=e[t.v],r=e[t.w];a.isUndefined(n)||a.isUndefined(r)||(r.indegree++,n.out.push(e[t.w]))});var i=a.filter(e,function(t){return!t.indegree});return r(i)}function r(t){function n(t){return function(n){n.merged||(a.isUndefined(n.barycenter)||a.isUndefined(t.barycenter)||n.barycenter>=t.barycenter)&&i(t,n)}}function e(n){return function(e){e["in"].push(n),0===--e.indegree&&t.push(e)}}for(var r=[];t.length;){var o=t.pop();r.push(o),a.each(o["in"].reverse(),n(o)),a.each(o.out,e(o))}return a.chain(r).filter(function(t){return!t.merged}).map(function(t){return a.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}var a=t("../lodash");n.exports=e},{"../lodash":36}],46:[function(t,n){function e(t,n,c,l){var f=t.children(n),h=t.node(n),d=h?h.borderLeft:void 0,p=h?h.borderRight:void 0,g={};d&&(f=a.filter(f,function(t){return t!==d&&t!==p}));var y=o(t,f);a.each(y,function(n){if(t.children(n.v).length){var r=e(t,n.v,c,l);g[n.v]=r,a.has(r,"barycenter")&&i(n,r)}});var m=u(y,c);r(m,g);var v=s(m,l);if(d&&(v.vs=a.flatten([d,v.vs,p],!0),t.predecessors(d).length)){var b=t.node(t.predecessors(d)[0]),_=t.node(t.predecessors(p)[0]);a.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+b.order+_.order)/(v.weight+2),v.weight+=2}return v}function r(t,n){a.each(t,function(t){t.vs=a.flatten(t.vs.map(function(t){return n[t]?n[t].vs:t}),!0)})}function i(t,n){a.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)}var a=t("../lodash"),o=t("./barycenter"),u=t("./resolve-conflicts"),s=t("./sort");n.exports=e},{"../lodash":36,"./barycenter":40,"./resolve-conflicts":45,"./sort":47}],47:[function(t,n){function e(t,n){var e=o.partition(t,function(t){return a.has(t,"barycenter")}),u=e.lhs,s=a.sortBy(e.rhs,function(t){return-t.i}),c=[],l=0,f=0,h=0;u.sort(i(!!n)),h=r(c,s,h),a.each(u,function(t){h+=t.vs.length,c.push(t.vs),l+=t.barycenter*t.weight,f+=t.weight,h=r(c,s,h)});var d={vs:a.flatten(c,!0)};return f&&(d.barycenter=l/f,d.weight=f),d}function r(t,n,e){for(var r;n.length&&(r=a.last(n)).i<=e;)n.pop(),t.push(r.vs),e++;return e}function i(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}}var a=t("../lodash"),o=t("../util");n.exports=e},{"../lodash":36,"../util":55}],48:[function(t,n){function e(t){var n=i(t);a.each(t.graph().dummyChains,function(e){for(var i=t.node(e),a=i.edgeObj,o=r(t,n,a.v,a.w),u=o.path,s=o.lca,c=0,l=u[c],f=!0;e!==a.w;){if(i=t.node(e),f){for(;(l=u[c])!==s&&t.node(l).maxRank<i.rank;)c++;l===s&&(f=!1)}if(!f){for(;c<u.length-1&&t.node(l=u[c+1]).minRank<=i.rank;)c++;l=u[c]}t.setParent(e,l),e=t.successors(e)[0]}})}function r(t,n,e,r){var i,a,o=[],u=[],s=Math.min(n[e].low,n[r].low),c=Math.max(n[e].lim,n[r].lim);i=e;do i=t.parent(i),o.push(i);while(i&&(n[i].low>s||c>n[i].lim));for(a=i,i=r;(i=t.parent(i))!==a;)u.push(i);return{path:o.concat(u.reverse()),lca:a}}function i(t){function n(i){var o=r;a.each(t.children(i),n),e[i]={low:o,lim:r++}}var e={},r=0;return a.each(t.children(),n),e}var a=t("./lodash");n.exports=e},{"./lodash":36}],49:[function(t,n){"use strict";function e(t,n){function e(n,e){var o=0,u=0,s=n.length,c=y.last(e);return y.each(e,function(n,l){var f=i(t,n),h=f?t.node(f).order:s;(f||n===c)&&(y.each(e.slice(u,l+1),function(n){y.each(t.predecessors(n),function(e){var i=t.node(e),u=i.order;!(o>u||u>h)||i.dummy&&t.node(n).dummy||a(r,e,n)})}),u=l+1,o=h)}),e}var r={};return y.reduce(n,e),r}function r(t,n){function e(n,e,r,o,u){var s;y.each(y.range(e,r),function(e){s=n[e],t.node(s).dummy&&y.each(t.predecessors(s),function(n){var e=t.node(n);e.dummy&&(e.order<o||e.order>u)&&a(i,n,s)})})}function r(n,r){var i,a=-1,o=0;return y.each(r,function(u,s){if("border"===t.node(u).dummy){var c=t.predecessors(u);c.length&&(i=t.node(c[0]).order,e(r,o,s,a,i),o=s,a=i)}e(r,o,r.length,i,n.length)}),r}var i={};return y.reduce(n,r),i}function i(t,n){return t.node(n).dummy?y.find(t.predecessors(n),function(n){return t.node(n).dummy}):void 0}function a(t,n,e){if(n>e){var r=n;n=e,e=r}var i=t[n];i||(t[n]=i={}),i[e]=!0}function o(t,n,e){if(n>e){var r=n;n=e,e=r}return y.has(t[n],e)}function u(t,n,e,r){var i={},a={},u={};return y.each(n,function(t){y.each(t,function(t,n){i[t]=t,a[t]=t,u[t]=n})}),y.each(n,function(t){var n=-1;y.each(t,function(t){var s=r(t);if(s.length){s=y.sortBy(s,function(t){return u[t]});for(var c=(s.length-1)/2,l=Math.floor(c),f=Math.ceil(c);f>=l;++l){var h=s[l];a[t]===t&&n<u[h]&&!o(e,t,h)&&(a[h]=t,a[t]=i[t]=i[h],n=u[h])}}})}),{root:i,align:a}}function s(t,n,e,r,i){function a(t){y.has(l,t)||(l[t]=!0,u[t]=y.reduce(s.inEdges(t),function(t,n){return a(n.v),Math.max(t,u[n.v]+s.edge(n))},0))}function o(t){if(2!==l[t]){l[t]++;var n=y.reduce(s.outEdges(t),function(t,n){return o(n.w),Math.min(t,u[n.w]-s.edge(n))},Number.POSITIVE_INFINITY);n!==Number.POSITIVE_INFINITY&&(u[t]=Math.max(u[t],n))}}var u={},s=c(t,n,e,i),l={};return y.each(s.nodes(),a),y.each(s.nodes(),o),y.each(r,function(t){u[t]=u[e[t]]}),u}function c(t,n,e,r){var i=new m,a=t.graph(),o=p(a.nodesep,a.edgesep,r);return y.each(n,function(n){var r;y.each(n,function(n){var a=e[n];if(i.setNode(a),r){var u=e[r],s=i.edge(u,a);i.setEdge(u,a,Math.max(o(t,n,r),s||0))}r=n})}),i}function l(t,n){return y.min(n,function(n){var e=y.min(n,function(n,e){return n-g(t,e)/2}),r=y.max(n,function(n,e){return n+g(t,e)/2});return r-e})}function f(t,n){var e=y.min(n),r=y.max(n);y.each(["u","d"],function(i){y.each(["l","r"],function(a){var o,u=i+a,s=t[u];s!==n&&(o="l"===a?e-y.min(s):r-y.max(s),o&&(t[u]=y.mapValues(s,function(t){return t+o})))})})}function h(t,n){return y.mapValues(t.ul,function(e,r){if(n)return t[n.toLowerCase()][r];var i=y.sortBy(y.pluck(t,r));return(i[1]+i[2])/2})}function d(t){var n,i=v.buildLayerMatrix(t),a=y.merge(e(t,i),r(t,i)),o={};y.each(["u","d"],function(e){n="u"===e?i:y.values(i).reverse(),y.each(["l","r"],function(r){"r"===r&&(n=y.map(n,function(t){return y.values(t).reverse()}));var i=y.bind("u"===e?t.predecessors:t.successors,t),c=u(t,n,a,i),l=s(t,n,c.root,c.align,"r"===r);"r"===r&&(l=y.mapValues(l,function(t){return-t})),o[e+r]=l})});var c=l(t,o);return f(o,c),h(o,t.graph().align)}function p(t,n,e){return function(r,i,a){var o,u=r.node(i),s=r.node(a),c=0;if(c+=u.width/2,y.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":o=-u.width/2;break;case"r":o=u.width/2}if(o&&(c+=e?o:-o),o=0,c+=(u.dummy?n:t)/2,c+=(s.dummy?n:t)/2,c+=s.width/2,y.has(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":o=s.width/2;break;case"r":o=-s.width/2}return o&&(c+=e?o:-o),o=0,c}}function g(t,n){return t.node(n).width}var y=t("../lodash"),m=t("../graphlib").Graph,v=t("../util");n.exports={positionX:d,findType1Conflicts:e,findType2Conflicts:r,addConflict:a,hasConflict:o,verticalAlignment:u,horizontalCompaction:s,alignCoordinates:f,findSmallestWidthAlignment:l,balance:h}},{"../graphlib":33,"../lodash":36,"../util":55}],50:[function(t,n){"use strict";function e(t){t=a.asNonCompoundGraph(t),r(t),i.each(o(t),function(n,e){t.node(e).x=n})}function r(t){var n=a.buildLayerMatrix(t),e=t.graph().ranksep,r=0;i.each(n,function(n){var a=i.max(i.map(n,function(n){return t.node(n).height}));i.each(n,function(n){t.node(n).y=r+a/2}),r+=a+e})}var i=t("../lodash"),a=t("../util"),o=t("./bk").positionX;n.exports=e},{"../lodash":36,"../util":55,"./bk":49}],51:[function(t,n){"use strict";function e(t){var n=new u({directed:!1}),e=t.nodes()[0],o=t.nodeCount();n.setNode(e,{});for(var c,l;r(n,t)<o;)c=i(n,t),l=n.hasNode(c.v)?s(t,c):-s(t,c),a(n,t,l);return n}function r(t,n){function e(r){o.each(n.nodeEdges(r),function(i){var a=i.v,o=r===a?i.w:a;t.hasNode(o)||s(n,i)||(t.setNode(o,{}),t.setEdge(r,o,{}),e(o))})}return o.each(t.nodes(),e),t.nodeCount()}function i(t,n){return o.min(n.edges(),function(e){return t.hasNode(e.v)!==t.hasNode(e.w)?s(n,e):void 0})}function a(t,n,e){o.each(t.nodes(),function(t){n.node(t).rank+=e})}var o=t("../lodash"),u=t("../graphlib").Graph,s=t("./util").slack;n.exports=e},{"../graphlib":33,"../lodash":36,"./util":54}],52:[function(t,n){"use strict";function e(t){switch(t.graph().ranker){case"network-simplex":i(t);break;case"tight-tree":r(t);break;case"longest-path":c(t);break;default:i(t)}}function r(t){o(t),u(t)}function i(t){s(t)}var a=t("./util"),o=a.longestPath,u=t("./feasible-tree"),s=t("./network-simplex");n.exports=e;var c=o},{"./feasible-tree":51,"./network-simplex":53,"./util":54}],53:[function(t,n){"use strict";function e(t){t=_(t),m(t);var n=g(t);o(n),r(n,t);for(var e,i;e=s(n);)i=c(n,t,e),l(n,t,e,i)}function r(t,n){var e=b(t,t.nodes());e=e.slice(0,e.length-1),p.each(e,function(e){i(t,n,e)})}function i(t,n,e){var r=t.node(e),i=r.parent;t.edge(e,i).cutvalue=a(t,n,e)}function a(t,n,e){var r=t.node(e),i=r.parent,a=!0,o=n.edge(e,i),u=0;return o||(a=!1,o=n.edge(i,e)),u=o.weight,p.each(n.nodeEdges(e),function(r){var o=r.v===e,s=o?r.w:r.v;if(s!==i){var c=o===a,l=n.edge(r).weight;if(u+=c?l:-l,h(t,e,s)){var f=t.edge(e,s).cutvalue;u+=c?-f:f}}}),u}function o(t,n){arguments.length<2&&(n=t.nodes()[0]),u(t,{},1,n)}function u(t,n,e,r,i){var a=e,o=t.node(r);return n[r]=!0,p.each(t.neighbors(r),function(i){p.has(n,i)||(e=u(t,n,e,i,r))}),o.low=a,o.lim=e++,i?o.parent=i:delete o.parent,e}function s(t){return p.find(t.edges(),function(n){return t.edge(n).cutvalue<0})}function c(t,n,e){var r=e.v,i=e.w;n.hasEdge(r,i)||(r=e.w,i=e.v);var a=t.node(r),o=t.node(i),u=a,s=!1;a.lim>o.lim&&(u=o,s=!0);var c=p.filter(n.edges(),function(n){return s===d(t,t.node(n.v),u)&&s!==d(t,t.node(n.w),u)});return p.min(c,function(t){return y(n,t)})}function l(t,n,e,i){var a=e.v,u=e.w;t.removeEdge(a,u),t.setEdge(i.v,i.w,{}),o(t),r(t,n),f(t,n)}function f(t,n){var e=p.find(t.nodes(),function(t){return!n.node(t).parent}),r=v(t,e);r=r.slice(1),p.each(r,function(e){var r=t.node(e).parent,i=n.edge(e,r),a=!1;i||(i=n.edge(r,e),a=!0),n.node(e).rank=n.node(r).rank+(a?i.minlen:-i.minlen)})}function h(t,n,e){return t.hasEdge(n,e)}function d(t,n,e){return e.low<=n.lim&&n.lim<=e.lim}var p=t("../lodash"),g=t("./feasible-tree"),y=t("./util").slack,m=t("./util").longestPath,v=t("../graphlib").alg.preorder,b=t("../graphlib").alg.postorder,_=t("../util").simplify;n.exports=e,e.initLowLimValues=o,e.initCutValues=r,e.calcCutValue=a,e.leaveEdge=s,e.enterEdge=c,e.exchangeEdges=l},{"../graphlib":33,"../lodash":36,"../util":55,"./feasible-tree":51,"./util":54}],54:[function(t,n){"use strict";function e(t){function n(r){var a=t.node(r);if(i.has(e,r))return a.rank;e[r]=!0;var o=i.min(i.map(t.outEdges(r),function(e){return n(e.w)-t.edge(e).minlen}));return o===Number.POSITIVE_INFINITY&&(o=0),a.rank=o}var e={};i.each(t.sources(),n)}function r(t,n){return t.node(n.w).rank-t.node(n.v).rank-t.edge(n).minlen}var i=t("../lodash");n.exports={longestPath:e,slack:r}},{"../lodash":36}],55:[function(t,n){"use strict";function e(t,n,e,r){var i;do i=y.uniqueId(r);while(t.hasNode(i));return e.dummy=n,t.setNode(i,e),i}function r(t){var n=(new m).setGraph(t.graph());return y.each(t.nodes(),function(e){n.setNode(e,t.node(e))}),y.each(t.edges(),function(e){var r=n.edge(e.v,e.w)||{weight:0,minlen:1},i=t.edge(e);n.setEdge(e.v,e.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),n}function i(t){var n=new m({multigraph:t.isMultigraph()}).setGraph(t.graph());return y.each(t.nodes(),function(e){t.children(e).length||n.setNode(e,t.node(e))}),y.each(t.edges(),function(e){n.setEdge(e,t.edge(e))}),n}function a(t){var n=y.map(t.nodes(),function(n){var e={};return y.each(t.outEdges(n),function(n){e[n.w]=(e[n.w]||0)+t.edge(n).weight}),e});return y.zipObject(t.nodes(),n)}function o(t){var n=y.map(t.nodes(),function(n){var e={};return y.each(t.inEdges(n),function(n){e[n.v]=(e[n.v]||0)+t.edge(n).weight}),e});return y.zipObject(t.nodes(),n)}function u(t,n){var e=t.x,r=t.y,i=n.x-e,a=n.y-r,o=t.width/2,u=t.height/2;if(!i&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var s,c;return Math.abs(a)*o>Math.abs(i)*u?(0>a&&(u=-u),s=u*i/a,c=u):(0>i&&(o=-o),s=o,c=o*a/i),{x:e+s,y:r+c}}function s(t){var n=y.map(y.range(h(t)+1),function(){return[]});return y.each(t.nodes(),function(e){var r=t.node(e),i=r.rank;y.isUndefined(i)||(n[i][r.order]=e)}),n}function c(t){var n=y.min(y.map(t.nodes(),function(n){return t.node(n).rank}));y.each(t.nodes(),function(e){var r=t.node(e);y.has(r,"rank")&&(r.rank-=n)})}function l(t){var n=y.min(y.map(t.nodes(),function(n){return t.node(n).rank})),e=[];y.each(t.nodes(),function(r){var i=t.node(r).rank-n;y.has(e,i)||(e[i]=[]),e[i].push(r)});var r=0,i=t.graph().nodeRankFactor;y.each(e,function(n,e){y.isUndefined(n)&&e%i!==0?--r:r&&y.each(n,function(n){t.node(n).rank+=r})})}function f(t,n,r,i){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=i),e(t,"border",a,n)}function h(t){return y.max(y.map(t.nodes(),function(n){var e=t.node(n).rank;return y.isUndefined(e)?void 0:e}))}function d(t,n){var e={lhs:[],rhs:[]};return y.each(t,function(t){n(t)?e.lhs.push(t):e.rhs.push(t)}),e}function p(t,n){var e=y.now();try{return n()}finally{console.log(t+" time: "+(y.now()-e)+"ms")}}function g(t,n){return n()}var y=t("./lodash"),m=t("./graphlib").Graph;n.exports={addDummyNode:e,simplify:r,asNonCompoundGraph:i,successorWeights:a,predecessorWeights:o,intersectRect:u,buildLayerMatrix:s,normalizeRanks:c,removeEmptyRanks:l,addBorderNode:f,maxRank:h,partition:d,time:p,notime:g}},{"./graphlib":33,"./lodash":36}],56:[function(t,n){
  n.exports="0.7.1"},{}],57:[function(t,n){var e=t("./lib");n.exports={Graph:e.Graph,json:t("./lib/json"),alg:t("./lib/alg"),version:e.version}},{"./lib":73,"./lib/alg":64,"./lib/json":74}],58:[function(t,n){function e(t){function n(a){r.has(i,a)||(i[a]=!0,e.push(a),r.each(t.successors(a),n),r.each(t.predecessors(a),n))}var e,i={},a=[];return r.each(t.nodes(),function(t){e=[],n(t),e.length&&a.push(e)}),a}var r=t("../lodash");n.exports=e},{"../lodash":75}],59:[function(t,n){function e(t,n,e){i.isArray(n)||(n=[n]);var a=[],o={};return i.each(n,function(n){if(!t.hasNode(n))throw new Error("Graph does not have node: "+n);r(t,n,"post"===e,o,a)}),a}function r(t,n,e,a,o){i.has(a,n)||(a[n]=!0,e||o.push(n),i.each(t.neighbors(n),function(n){r(t,n,e,a,o)}),e&&o.push(n))}var i=t("../lodash");n.exports=e},{"../lodash":75}],60:[function(t,n){function e(t,n,e){return i.transform(t.nodes(),function(i,a){i[a]=r(t,a,n,e)},{})}var r=t("./dijkstra"),i=t("../lodash");n.exports=e},{"../lodash":75,"./dijkstra":61}],61:[function(t,n){function e(t,n,e,i){return r(t,String(n),e||o,i||function(n){return t.outEdges(n)})}function r(t,n,e,r){var i,o,u={},s=new a,c=function(t){var n=t.v!==i?t.v:t.w,r=u[n],a=e(t),c=o.distance+a;if(0>a)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+a);c<r.distance&&(r.distance=c,r.predecessor=i,s.decrease(n,c))};for(t.nodes().forEach(function(t){var e=t===n?0:Number.POSITIVE_INFINITY;u[t]={distance:e},s.add(t,e)});s.size()>0&&(i=s.removeMin(),o=u[i],o.distance!==Number.POSITIVE_INFINITY);)r(i).forEach(c);return u}var i=t("../lodash"),a=t("../data/priority-queue");n.exports=e;var o=i.constant(1)},{"../data/priority-queue":71,"../lodash":75}],62:[function(t,n){function e(t){return r.filter(i(t),function(t){return t.length>1})}var r=t("../lodash"),i=t("./tarjan");n.exports=e},{"../lodash":75,"./tarjan":69}],63:[function(t,n){function e(t,n,e){return r(t,n||a,e||function(n){return t.outEdges(n)})}function r(t,n,e){var r={},i=t.nodes();return i.forEach(function(t){r[t]={},r[t][t]={distance:0},i.forEach(function(n){t!==n&&(r[t][n]={distance:Number.POSITIVE_INFINITY})}),e(t).forEach(function(e){var i=e.v===t?e.w:e.v,a=n(e);r[t][i]={distance:a,predecessor:t}})}),i.forEach(function(t){var n=r[t];i.forEach(function(e){var a=r[e];i.forEach(function(e){var r=a[t],i=n[e],o=a[e],u=r.distance+i.distance;u<o.distance&&(o.distance=u,o.predecessor=i.predecessor)})})}),r}var i=t("../lodash");n.exports=e;var a=i.constant(1)},{"../lodash":75}],64:[function(t,n){n.exports={components:t("./components"),dijkstra:t("./dijkstra"),dijkstraAll:t("./dijkstra-all"),findCycles:t("./find-cycles"),floydWarshall:t("./floyd-warshall"),isAcyclic:t("./is-acyclic"),postorder:t("./postorder"),preorder:t("./preorder"),prim:t("./prim"),tarjan:t("./tarjan"),topsort:t("./topsort")}},{"./components":58,"./dijkstra":61,"./dijkstra-all":60,"./find-cycles":62,"./floyd-warshall":63,"./is-acyclic":65,"./postorder":66,"./preorder":67,"./prim":68,"./tarjan":69,"./topsort":70}],65:[function(t,n){function e(t){try{r(t)}catch(n){if(n instanceof r.CycleException)return!1;throw n}return!0}var r=t("./topsort");n.exports=e},{"./topsort":70}],66:[function(t,n){function e(t,n){return r(t,n,"post")}var r=t("./dfs");n.exports=e},{"./dfs":59}],67:[function(t,n){function e(t,n){return r(t,n,"pre")}var r=t("./dfs");n.exports=e},{"./dfs":59}],68:[function(t,n){function e(t,n){function e(t){var e=t.v===o?t.w:t.v,r=c.priority(e);if(void 0!==r){var i=n(t);r>i&&(s[e]=o,c.decrease(e,i))}}var o,u=new i,s={},c=new a;if(0===t.nodeCount())return u;r.each(t.nodes(),function(t){c.add(t,Number.POSITIVE_INFINITY),u.setNode(t)}),c.decrease(t.nodes()[0],0);for(var l=!1;c.size()>0;){if(o=c.removeMin(),r.has(s,o))u.setEdge(o,s[o]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(o).forEach(e)}return u}var r=t("../lodash"),i=t("../graph"),a=t("../data/priority-queue");n.exports=e},{"../data/priority-queue":71,"../graph":72,"../lodash":75}],69:[function(t,n){function e(t){function n(u){var s=a[u]={onStack:!0,lowlink:e,index:e++};if(i.push(u),t.successors(u).forEach(function(t){r.has(a,t)?a[t].onStack&&(s.lowlink=Math.min(s.lowlink,a[t].index)):(n(t),s.lowlink=Math.min(s.lowlink,a[t].lowlink))}),s.lowlink===s.index){var c,l=[];do c=i.pop(),a[c].onStack=!1,l.push(c);while(u!==c);o.push(l)}}var e=0,i=[],a={},o=[];return t.nodes().forEach(function(t){r.has(a,t)||n(t)}),o}var r=t("../lodash");n.exports=e},{"../lodash":75}],70:[function(t,n){function e(t){function n(u){if(i.has(a,u))throw new r;i.has(e,u)||(a[u]=!0,e[u]=!0,i.each(t.predecessors(u),n),delete a[u],o.push(u))}var e={},a={},o=[];if(i.each(t.sinks(),n),i.size(e)!==t.nodeCount())throw new r;return o}function r(){}var i=t("../lodash");n.exports=e,e.CycleException=r},{"../lodash":75}],71:[function(t,n){function e(){this._arr=[],this._keyIndices={}}var r=t("../lodash");n.exports=e,e.prototype.size=function(){return this._arr.length},e.prototype.keys=function(){return this._arr.map(function(t){return t.key})},e.prototype.has=function(t){return r.has(this._keyIndices,t)},e.prototype.priority=function(t){var n=this._keyIndices[t];return void 0!==n?this._arr[n].priority:void 0},e.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},e.prototype.add=function(t,n){var e=this._keyIndices;if(t=String(t),!r.has(e,t)){var i=this._arr,a=i.length;return e[t]=a,i.push({key:t,priority:n}),this._decrease(a),!0}return!1},e.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},e.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)},e.prototype._heapify=function(t){var n=this._arr,e=2*t,r=e+1,i=t;e<n.length&&(i=n[e].priority<n[i].priority?e:i,r<n.length&&(i=n[r].priority<n[i].priority?r:i),i!==t&&(this._swap(t,i),this._heapify(i)))},e.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},e.prototype._swap=function(t,n){var e=this._arr,r=this._keyIndices,i=e[t],a=e[n];e[t]=a,e[n]=i,r[a.key]=t,r[i.key]=n}},{"../lodash":75}],72:[function(t,n){"use strict";function e(t){this._isDirected=s.has(t,"directed")?t.directed:!0,this._isMultigraph=s.has(t,"multigraph")?t.multigraph:!1,this._isCompound=s.has(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=s.constant(void 0),this._defaultEdgeLabelFn=s.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[l]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function r(t,n){s.has(t,n)?t[n]++:t[n]=1}function i(t,n){--t[n]||delete t[n]}function a(t,n,e,r){if(!t&&n>e){var i=n;n=e,e=i}return n+f+e+f+(s.isUndefined(r)?c:r)}function o(t,n,e,r){if(!t&&n>e){var i=n;n=e,e=i}var a={v:n,w:e};return r&&(a.name=r),a}function u(t,n){return a(t,n.v,n.w,n.name)}var s=t("./lodash");n.exports=e;var c="\x00",l="\x00",f="";e.prototype._nodeCount=0,e.prototype._edgeCount=0,e.prototype.isDirected=function(){return this._isDirected},e.prototype.isMultigraph=function(){return this._isMultigraph},e.prototype.isCompound=function(){return this._isCompound},e.prototype.setGraph=function(t){return this._label=t,this},e.prototype.graph=function(){return this._label},e.prototype.setDefaultNodeLabel=function(t){return s.isFunction(t)||(t=s.constant(t)),this._defaultNodeLabelFn=t,this},e.prototype.nodeCount=function(){return this._nodeCount},e.prototype.nodes=function(){return s.keys(this._nodes)},e.prototype.sources=function(){return s.filter(this.nodes(),function(t){return s.isEmpty(this._in[t])},this)},e.prototype.sinks=function(){return s.filter(this.nodes(),function(t){return s.isEmpty(this._out[t])},this)},e.prototype.setNodes=function(t,n){var e=arguments;return s.each(t,function(t){e.length>1?this.setNode(t,n):this.setNode(t)},this),this},e.prototype.setNode=function(t,n){return s.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]=l,this._children[t]={},this._children[l][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},e.prototype.node=function(t){return this._nodes[t]},e.prototype.hasNode=function(t){return s.has(this._nodes,t)},e.prototype.removeNode=function(t){var n=this;if(s.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],s.each(this.children(t),function(t){this.setParent(t)},this),delete this._children[t]),s.each(s.keys(this._in[t]),e),delete this._in[t],delete this._preds[t],s.each(s.keys(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},e.prototype.setParent=function(t,n){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(s.isUndefined(n))n=l;else{for(var e=n;!s.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},e.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},e.prototype.parent=function(t){if(this._isCompound){var n=this._parent[t];if(n!==l)return n}},e.prototype.children=function(t){if(s.isUndefined(t)&&(t=l),this._isCompound){var n=this._children[t];if(n)return s.keys(n)}else{if(t===l)return this.nodes();if(this.hasNode(t))return[]}},e.prototype.predecessors=function(t){var n=this._preds[t];return n?s.keys(n):void 0},e.prototype.successors=function(t){var n=this._sucs[t];return n?s.keys(n):void 0},e.prototype.neighbors=function(t){var n=this.predecessors(t);return n?s.union(n,this.successors(t)):void 0},e.prototype.setDefaultEdgeLabel=function(t){return s.isFunction(t)||(t=s.constant(t)),this._defaultEdgeLabelFn=t,this},e.prototype.edgeCount=function(){return this._edgeCount},e.prototype.edges=function(){return s.values(this._edgeObjs)},e.prototype.setPath=function(t,n){var e=this,r=arguments;return s.reduce(t,function(t,i){return r.length>1?e.setEdge(t,i,n):e.setEdge(t,i),i}),this},e.prototype.setEdge=function(){var t,n,e,i,u=!1;s.isPlainObject(arguments[0])?(t=arguments[0].v,n=arguments[0].w,e=arguments[0].name,2===arguments.length&&(i=arguments[1],u=!0)):(t=arguments[0],n=arguments[1],e=arguments[3],arguments.length>2&&(i=arguments[2],u=!0)),t=""+t,n=""+n,s.isUndefined(e)||(e=""+e);var c=a(this._isDirected,t,n,e);if(s.has(this._edgeLabels,c))return u&&(this._edgeLabels[c]=i),this;if(!s.isUndefined(e)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(n),this._edgeLabels[c]=u?i:this._defaultEdgeLabelFn(t,n,e);var l=o(this._isDirected,t,n,e);return t=l.v,n=l.w,Object.freeze(l),this._edgeObjs[c]=l,r(this._preds[n],t),r(this._sucs[t],n),this._in[n][c]=l,this._out[t][c]=l,this._edgeCount++,this},e.prototype.edge=function(t,n,e){var r=1===arguments.length?u(this._isDirected,arguments[0]):a(this._isDirected,t,n,e);return this._edgeLabels[r]},e.prototype.hasEdge=function(t,n,e){var r=1===arguments.length?u(this._isDirected,arguments[0]):a(this._isDirected,t,n,e);return s.has(this._edgeLabels,r)},e.prototype.removeEdge=function(t,n,e){var r=1===arguments.length?u(this._isDirected,arguments[0]):a(this._isDirected,t,n,e),o=this._edgeObjs[r];return o&&(t=o.v,n=o.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},e.prototype.inEdges=function(t,n){var e=this._in[t];if(e){var r=s.values(e);return n?s.filter(r,function(t){return t.v===n}):r}},e.prototype.outEdges=function(t,n){var e=this._out[t];if(e){var r=s.values(e);return n?s.filter(r,function(t){return t.w===n}):r}},e.prototype.nodeEdges=function(t,n){var e=this.inEdges(t,n);return e?e.concat(this.outEdges(t,n)):void 0}},{"./lodash":75}],73:[function(t,n){n.exports={Graph:t("./graph"),version:t("./version")}},{"./graph":72,"./version":76}],74:[function(t,n){function e(t){var n={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:r(t),edges:i(t)};return o.isUndefined(t.graph())||(n.value=o.clone(t.graph())),n}function r(t){return o.map(t.nodes(),function(n){var e=t.node(n),r=t.parent(n),i={v:n};return o.isUndefined(e)||(i.value=e),o.isUndefined(r)||(i.parent=r),i})}function i(t){return o.map(t.edges(),function(n){var e=t.edge(n),r={v:n.v,w:n.w};return o.isUndefined(n.name)||(r.name=n.name),o.isUndefined(e)||(r.value=e),r})}function a(t){var n=new u(t.options).setGraph(t.value);return o.each(t.nodes,function(t){n.setNode(t.v,t.value),t.parent&&n.setParent(t.v,t.parent)}),o.each(t.edges,function(t){n.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),n}var o=t("./lodash"),u=t("./graph");n.exports={write:e,read:a}},{"./graph":72,"./lodash":75}],75:[function(t,n){n.exports=t(20)},{"/Users/cpettitt/projects/dagre-d3/lib/lodash.js":20,lodash:77}],76:[function(t,n){n.exports="1.0.1"},{}],77:[function(n,e,r){(function(n){(function(){function i(t,n,e){for(var r=(e||0)-1,i=t?t.length:0;++r<i;)if(t[r]===n)return r;return-1}function a(t,n){var e=typeof n;if(t=t.cache,"boolean"==e||null==n)return t[n]?0:-1;"number"!=e&&"string"!=e&&(e="object");var r="number"==e?n:x+n;return t=(t=t[e])&&t[r],"object"==e?t&&i(t,n)>-1?0:-1:t?0:-1}function o(t){var n=this.cache,e=typeof t;if("boolean"==e||null==t)n[t]=!0;else{"number"!=e&&"string"!=e&&(e="object");var r="number"==e?t:x+t,i=n[e]||(n[e]={});"object"==e?(i[r]||(i[r]=[])).push(t):i[r]=!0}}function u(t){return t.charCodeAt(0)}function s(t,n){for(var e=t.criteria,r=n.criteria,i=-1,a=e.length;++i<a;){var o=e[i],u=r[i];if(o!==u){if(o>u||"undefined"==typeof o)return 1;if(u>o||"undefined"==typeof u)return-1}}return t.index-n.index}function c(t){var n=-1,e=t.length,r=t[0],i=t[e/2|0],a=t[e-1];if(r&&"object"==typeof r&&i&&"object"==typeof i&&a&&"object"==typeof a)return!1;var u=h();u["false"]=u["null"]=u["true"]=u.undefined=!1;var s=h();for(s.array=t,s.cache=u,s.push=o;++n<e;)s.push(t[n]);return s}function l(t){return"\\"+K[t]}function f(){return v.pop()||[]}function h(){return b.pop()||{array:null,cache:null,criteria:null,"false":!1,index:0,"null":!1,number:null,object:null,push:null,string:null,"true":!1,undefined:!1,value:null}}function d(t){t.length=0,v.length<k&&v.push(t)}function p(t){var n=t.cache;n&&p(n),t.array=t.cache=t.criteria=t.object=t.number=t.string=t.value=null,b.length<k&&b.push(t)}function g(t,n,e){n||(n=0),"undefined"==typeof e&&(e=t?t.length:0);for(var r=-1,i=e-n||0,a=Array(0>i?0:i);++r<i;)a[r]=t[n+r];return a}function y(t){function n(t){return t&&"object"==typeof t&&!Je(t)&&Be.call(t,"__wrapped__")?t:new e(t)}function e(t,n){this.__chain__=!!n,this.__wrapped__=t}function r(t){function n(){if(r){var t=g(r);Oe.apply(t,arguments)}if(this instanceof n){var a=v(e.prototype),o=e.apply(a,t||arguments);return Tt(o)?o:a}return e.apply(i,t||arguments)}var e=t[0],r=t[2],i=t[4];return Ke(n,t),n}function o(t,n,e,r,i){if(e){var a=e(t);if("undefined"!=typeof a)return a}var u=Tt(t);if(!u)return t;var s=De.call(t);if(!$[s])return t;var c=Ze[s];switch(s){case j:case U:return new c(+t);case Y:case G:return new c(t);case H:return a=c(t.source,C.exec(t)),a.lastIndex=t.lastIndex,a}var l=Je(t);if(n){var h=!r;r||(r=f()),i||(i=f());for(var p=r.length;p--;)if(r[p]==t)return i[p];a=l?c(t.length):{}}else a=l?g(t):ar({},t);return l&&(Be.call(t,"index")&&(a.index=t.index),Be.call(t,"input")&&(a.input=t.input)),n?(r.push(t),i.push(a),(l?Xt:sr)(t,function(t,u){a[u]=o(t,n,e,r,i)}),h&&(d(r),d(i)),a):a}function v(t){return Tt(t)?je(t):{}}function b(t,n,e){if("function"!=typeof t)return Jn;if("undefined"==typeof n||!("prototype"in t))return t;var r=t.__bindData__;if("undefined"==typeof r&&(Xe.funcNames&&(r=!t.name),r=r||!Xe.funcDecomp,!r)){var i=Ne.call(t);Xe.funcNames||(r=!T.test(i)),r||(r=B.test(i),Ke(t,r))}if(r===!1||r!==!0&&1&r[1])return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,i){return t.call(n,e,r,i)};case 4:return function(e,r,i,a){return t.call(n,e,r,i,a)}}return On(t,n)}function k(t){function n(){var t=s?o:this;if(i){var d=g(i);Oe.apply(d,arguments)}if((a||l)&&(d||(d=g(arguments)),a&&Oe.apply(d,a),l&&d.length<u))return r|=16,k([e,f?r:-4&r,d,null,o,u]);if(d||(d=arguments),c&&(e=t[h]),this instanceof n){t=v(e.prototype);var p=e.apply(t,d);return Tt(p)?p:t}return e.apply(t,d)}var e=t[0],r=t[1],i=t[2],a=t[3],o=t[4],u=t[5],s=1&r,c=2&r,l=4&r,f=8&r,h=e;return Ke(n,t),n}function K(t,n){var e=-1,r=st(),o=t?t.length:0,u=o>=w&&r===i,s=[];if(u){var l=c(n);l?(r=a,n=l):u=!1}for(;++e<o;){var f=t[e];r(n,f)<0&&s.push(f)}return u&&p(n),s}function Q(t,n,e,r){for(var i=(r||0)-1,a=t?t.length:0,o=[];++i<a;){var u=t[i];if(u&&"object"==typeof u&&"number"==typeof u.length&&(Je(u)||ht(u))){n||(u=Q(u,n,e));var s=-1,c=u.length,l=o.length;for(o.length+=c;++s<c;)o[l++]=u[s]}else e||o.push(u)}return o}function tt(t,n,e,r,i,a){if(e){var o=e(t,n);if("undefined"!=typeof o)return!!o}if(t===n)return 0!==t||1/t==1/n;var u=typeof t,s=typeof n;if(!(t!==t||t&&X[u]||n&&X[s]))return!1;if(null==t||null==n)return t===n;var c=De.call(t),l=De.call(n);if(c==R&&(c=V),l==R&&(l=V),c!=l)return!1;switch(c){case j:case U:return+t==+n;case Y:return t!=+t?n!=+n:0==t?1/t==1/n:t==+n;case H:case G:return t==we(n)}var h=c==P;if(!h){var p=Be.call(t,"__wrapped__"),g=Be.call(n,"__wrapped__");if(p||g)return tt(p?t.__wrapped__:t,g?n.__wrapped__:n,e,r,i,a);if(c!=V)return!1;var y=t.constructor,m=n.constructor;if(y!=m&&!(Ct(y)&&y instanceof y&&Ct(m)&&m instanceof m)&&"constructor"in t&&"constructor"in n)return!1}var v=!i;i||(i=f()),a||(a=f());for(var b=i.length;b--;)if(i[b]==t)return a[b]==n;var _=0;if(o=!0,i.push(t),a.push(n),h){if(b=t.length,_=n.length,o=_==b,o||r)for(;_--;){var x=b,w=n[_];if(r)for(;x--&&!(o=tt(t[x],w,e,r,i,a)););else if(!(o=tt(t[_],w,e,r,i,a)))break}}else ur(n,function(n,u,s){return Be.call(s,u)?(_++,o=Be.call(t,u)&&tt(t[u],n,e,r,i,a)):void 0}),o&&!r&&ur(t,function(t,n,e){return Be.call(e,n)?o=--_>-1:void 0});return i.pop(),a.pop(),v&&(d(i),d(a)),o}function nt(t,n,e,r,i){(Je(n)?Xt:sr)(n,function(n,a){var o,u,s=n,c=t[a];if(n&&((u=Je(n))||cr(n))){for(var l=r.length;l--;)if(o=r[l]==n){c=i[l];break}if(!o){var f;e&&(s=e(c,n),(f="undefined"!=typeof s)&&(c=s)),f||(c=u?Je(c)?c:[]:cr(c)?c:{}),r.push(n),i.push(c),f||nt(c,n,e,r,i)}}else e&&(s=e(c,n),"undefined"==typeof s&&(s=n)),"undefined"!=typeof s&&(c=s);t[a]=c})}function et(t,n){return t+Fe(We()*(n-t+1))}function it(t,n,e){var r=-1,o=st(),u=t?t.length:0,s=[],l=!n&&u>=w&&o===i,h=e||l?f():s;if(l){var g=c(h);o=a,h=g}for(;++r<u;){var y=t[r],m=e?e(y,r,t):y;(n?!r||h[h.length-1]!==m:o(h,m)<0)&&((e||l)&&h.push(m),s.push(y))}return l?(d(h.array),p(h)):e&&d(h),s}function at(t){return function(e,r,i){var a={};r=n.createCallback(r,i,3);var o=-1,u=e?e.length:0;if("number"==typeof u)for(;++o<u;){var s=e[o];t(a,s,r(s,o,e),e)}else sr(e,function(n,e,i){t(a,n,r(n,e,i),i)});return a}}function ot(t,n,e,i,a,o){var u=1&n,s=2&n,c=4&n,l=16&n,f=32&n;if(!s&&!Ct(t))throw new ke;l&&!e.length&&(n&=-17,l=e=!1),f&&!i.length&&(n&=-33,f=i=!1);var h=t&&t.__bindData__;if(h&&h!==!0)return h=g(h),h[2]&&(h[2]=g(h[2])),h[3]&&(h[3]=g(h[3])),!u||1&h[1]||(h[4]=a),!u&&1&h[1]&&(n|=8),!c||4&h[1]||(h[5]=o),l&&Oe.apply(h[2]||(h[2]=[]),e),f&&Re.apply(h[3]||(h[3]=[]),i),h[1]|=n,ot.apply(null,h);var d=1==n||17===n?r:k;return d([t,n,e,i,a,o])}function ut(t){return nr[t]}function st(){var t=(t=n.indexOf)===vn?i:t;return t}function ct(t){return"function"==typeof t&&Se.test(t)}function lt(t){var n,e;return t&&De.call(t)==V&&(n=t.constructor,!Ct(n)||n instanceof n)?(ur(t,function(t,n){e=n}),"undefined"==typeof e||Be.call(t,e)):!1}function ft(t){return er[t]}function ht(t){return t&&"object"==typeof t&&"number"==typeof t.length&&De.call(t)==R||!1}function dt(t,n,e,r){return"boolean"!=typeof n&&null!=n&&(r=e,e=n,n=!1),o(t,n,"function"==typeof e&&b(e,r,1))}function pt(t,n,e){return o(t,!0,"function"==typeof n&&b(n,e,1))}function gt(t,n){var e=v(t);return n?ar(e,n):e}function yt(t,e,r){var i;return e=n.createCallback(e,r,3),sr(t,function(t,n,r){return e(t,n,r)?(i=n,!1):void 0}),i}function mt(t,e,r){var i;return e=n.createCallback(e,r,3),bt(t,function(t,n,r){return e(t,n,r)?(i=n,!1):void 0}),i}function vt(t,n,e){var r=[];ur(t,function(t,n){r.push(n,t)});var i=r.length;for(n=b(n,e,3);i--&&n(r[i--],r[i],t)!==!1;);return t}function bt(t,n,e){var r=tr(t),i=r.length;for(n=b(n,e,3);i--;){var a=r[i];if(n(t[a],a,t)===!1)break}return t}function _t(t){var n=[];return ur(t,function(t,e){Ct(t)&&n.push(e)}),n.sort()}function xt(t,n){return t?Be.call(t,n):!1}function wt(t){for(var n=-1,e=tr(t),r=e.length,i={};++n<r;){var a=e[n];i[t[a]]=a}return i}function kt(t){return t===!0||t===!1||t&&"object"==typeof t&&De.call(t)==j||!1}function Et(t){return t&&"object"==typeof t&&De.call(t)==U||!1}function Mt(t){return t&&1===t.nodeType||!1}function At(t){var n=!0;if(!t)return n;var e=De.call(t),r=t.length;return e==P||e==G||e==R||e==V&&"number"==typeof r&&Ct(t.splice)?!r:(sr(t,function(){return n=!1}),n)}function Dt(t,n,e,r){return tt(t,n,"function"==typeof e&&b(e,r,2))}function St(t){return ze(t)&&!Ye(parseFloat(t))}function Ct(t){return"function"==typeof t}function Tt(t){return!(!t||!X[typeof t])}function Ft(t){return Lt(t)&&t!=+t}function Nt(t){return null===t}function Lt(t){return"number"==typeof t||t&&"object"==typeof t&&De.call(t)==Y||!1}function Bt(t){return t&&"object"==typeof t&&De.call(t)==H||!1}function Ot(t){return"string"==typeof t||t&&"object"==typeof t&&De.call(t)==G||!1}function It(t){return"undefined"==typeof t}function qt(t,e,r){var i={};return e=n.createCallback(e,r,3),sr(t,function(t,n,r){i[n]=e(t,n,r)}),i}function Rt(t){var n=arguments,e=2;if(!Tt(t))return t;if("number"!=typeof n[2]&&(e=n.length),e>3&&"function"==typeof n[e-2])var r=b(n[--e-1],n[e--],2);else e>2&&"function"==typeof n[e-1]&&(r=n[--e]);for(var i=g(arguments,1,e),a=-1,o=f(),u=f();++a<e;)nt(t,i[a],r,o,u);return d(o),d(u),t}function Pt(t,e,r){var i={};if("function"!=typeof e){var a=[];ur(t,function(t,n){a.push(n)}),a=K(a,Q(arguments,!0,!1,1));for(var o=-1,u=a.length;++o<u;){var s=a[o];i[s]=t[s]}}else e=n.createCallback(e,r,3),ur(t,function(t,n,r){e(t,n,r)||(i[n]=t)});return i}function jt(t){for(var n=-1,e=tr(t),r=e.length,i=pe(r);++n<r;){var a=e[n];i[n]=[a,t[a]]}return i}function Ut(t,e,r){var i={};if("function"!=typeof e)for(var a=-1,o=Q(arguments,!0,!1,1),u=Tt(t)?o.length:0;++a<u;){var s=o[a];s in t&&(i[s]=t[s])}else e=n.createCallback(e,r,3),ur(t,function(t,n,r){e(t,n,r)&&(i[n]=t)});return i}function zt(t,e,r,i){var a=Je(t);if(null==r)if(a)r=[];else{var o=t&&t.constructor,u=o&&o.prototype;r=v(u)}return e&&(e=n.createCallback(e,i,4),(a?Xt:sr)(t,function(t,n,i){return e(r,t,n,i)})),r}function Yt(t){for(var n=-1,e=tr(t),r=e.length,i=pe(r);++n<r;)i[n]=t[e[n]];return i}function Vt(t){for(var n=arguments,e=-1,r=Q(n,!0,!1,1),i=n[2]&&n[2][n[1]]===t?1:r.length,a=pe(i);++e<i;)a[e]=t[r[e]];return a}function Ht(t,n,e){var r=-1,i=st(),a=t?t.length:0,o=!1;return e=(0>e?He(0,a+e):e)||0,Je(t)?o=i(t,n,e)>-1:"number"==typeof a?o=(Ot(t)?t.indexOf(n,e):i(t,n,e))>-1:sr(t,function(t){return++r>=e?!(o=t===n):void 0}),o}function Gt(t,e,r){var i=!0;e=n.createCallback(e,r,3);var a=-1,o=t?t.length:0;if("number"==typeof o)for(;++a<o&&(i=!!e(t[a],a,t)););else sr(t,function(t,n,r){return i=!!e(t,n,r)});return i}function $t(t,e,r){var i=[];e=n.createCallback(e,r,3);var a=-1,o=t?t.length:0;if("number"==typeof o)for(;++a<o;){var u=t[a];e(u,a,t)&&i.push(u)}else sr(t,function(t,n,r){e(t,n,r)&&i.push(t)});return i}function Wt(t,e,r){e=n.createCallback(e,r,3);var i=-1,a=t?t.length:0;if("number"!=typeof a){var o;return sr(t,function(t,n,r){return e(t,n,r)?(o=t,!1):void 0}),o}for(;++i<a;){var u=t[i];if(e(u,i,t))return u}}function Zt(t,e,r){var i;return e=n.createCallback(e,r,3),Kt(t,function(t,n,r){return e(t,n,r)?(i=t,!1):void 0}),i}function Xt(t,n,e){var r=-1,i=t?t.length:0;if(n=n&&"undefined"==typeof e?n:b(n,e,3),"number"==typeof i)for(;++r<i&&n(t[r],r,t)!==!1;);else sr(t,n);return t}function Kt(t,n,e){var r=t?t.length:0;if(n=n&&"undefined"==typeof e?n:b(n,e,3),"number"==typeof r)for(;r--&&n(t[r],r,t)!==!1;);else{var i=tr(t);r=i.length,sr(t,function(t,e,a){return e=i?i[--r]:--r,n(a[e],e,a)})}return t}function Jt(t,n){var e=g(arguments,2),r=-1,i="function"==typeof n,a=t?t.length:0,o=pe("number"==typeof a?a:0);return Xt(t,function(t){o[++r]=(i?n:t[n]).apply(t,e)}),o}function Qt(t,e,r){var i=-1,a=t?t.length:0;if(e=n.createCallback(e,r,3),"number"==typeof a)for(var o=pe(a);++i<a;)o[i]=e(t[i],i,t);else o=[],sr(t,function(t,n,r){o[++i]=e(t,n,r)});return o}function tn(t,e,r){var i=-(1/0),a=i;if("function"!=typeof e&&r&&r[e]===t&&(e=null),null==e&&Je(t))for(var o=-1,s=t.length;++o<s;){var c=t[o];c>a&&(a=c)}else e=null==e&&Ot(t)?u:n.createCallback(e,r,3),Xt(t,function(t,n,r){var o=e(t,n,r);o>i&&(i=o,a=t)});return a}function nn(t,e,r){var i=1/0,a=i;if("function"!=typeof e&&r&&r[e]===t&&(e=null),null==e&&Je(t))for(var o=-1,s=t.length;++o<s;){var c=t[o];a>c&&(a=c)}else e=null==e&&Ot(t)?u:n.createCallback(e,r,3),Xt(t,function(t,n,r){var o=e(t,n,r);i>o&&(i=o,a=t)});return a}function en(t,e,r,i){if(!t)return r;var a=arguments.length<3;e=n.createCallback(e,i,4);var o=-1,u=t.length;if("number"==typeof u)for(a&&(r=t[++o]);++o<u;)r=e(r,t[o],o,t);else sr(t,function(t,n,i){r=a?(a=!1,t):e(r,t,n,i)});return r}function rn(t,e,r,i){var a=arguments.length<3;return e=n.createCallback(e,i,4),Kt(t,function(t,n,i){r=a?(a=!1,t):e(r,t,n,i)}),r}function an(t,e,r){return e=n.createCallback(e,r,3),$t(t,function(t,n,r){return!e(t,n,r)})}function on(t,n,e){if(t&&"number"!=typeof t.length&&(t=Yt(t)),null==n||e)return t?t[et(0,t.length-1)]:m;var r=un(t);return r.length=Ge(He(0,n),r.length),r}function un(t){var n=-1,e=t?t.length:0,r=pe("number"==typeof e?e:0);return Xt(t,function(t){var e=et(0,++n);r[n]=r[e],r[e]=t}),r}function sn(t){var n=t?t.length:0;return"number"==typeof n?n:tr(t).length}function cn(t,e,r){var i;e=n.createCallback(e,r,3);var a=-1,o=t?t.length:0;if("number"==typeof o)for(;++a<o&&!(i=e(t[a],a,t)););else sr(t,function(t,n,r){return!(i=e(t,n,r))});return!!i}function ln(t,e,r){var i=-1,a=Je(e),o=t?t.length:0,u=pe("number"==typeof o?o:0);for(a||(e=n.createCallback(e,r,3)),Xt(t,function(t,n,r){var o=u[++i]=h();a?o.criteria=Qt(e,function(n){return t[n]}):(o.criteria=f())[0]=e(t,n,r),o.index=i,o.value=t}),o=u.length,u.sort(s);o--;){var c=u[o];u[o]=c.value,a||d(c.criteria),p(c)}return u}function fn(t){return t&&"number"==typeof t.length?g(t):Yt(t)}function hn(t){for(var n=-1,e=t?t.length:0,r=[];++n<e;){var i=t[n];i&&r.push(i)}return r}function dn(t){return K(t,Q(arguments,!0,!0,1))}function pn(t,e,r){var i=-1,a=t?t.length:0;for(e=n.createCallback(e,r,3);++i<a;)if(e(t[i],i,t))return i;return-1}function gn(t,e,r){var i=t?t.length:0;for(e=n.createCallback(e,r,3);i--;)if(e(t[i],i,t))return i;return-1}function yn(t,e,r){var i=0,a=t?t.length:0;if("number"!=typeof e&&null!=e){var o=-1;for(e=n.createCallback(e,r,3);++o<a&&e(t[o],o,t);)i++}else if(i=e,null==i||r)return t?t[0]:m;return g(t,0,Ge(He(0,i),a))}function mn(t,n,e,r){return"boolean"!=typeof n&&null!=n&&(r=e,e="function"!=typeof n&&r&&r[n]===t?null:n,n=!1),null!=e&&(t=Qt(t,e,r)),Q(t,n)}function vn(t,n,e){if("number"==typeof e){var r=t?t.length:0;e=0>e?He(0,r+e):e||0}else if(e){var a=Dn(t,n);return t[a]===n?a:-1}return i(t,n,e)}function bn(t,e,r){var i=0,a=t?t.length:0;if("number"!=typeof e&&null!=e){var o=a;for(e=n.createCallback(e,r,3);o--&&e(t[o],o,t);)i++}else i=null==e||r?1:e||i;return g(t,0,Ge(He(0,a-i),a))}function _n(){for(var t=[],n=-1,e=arguments.length,r=f(),o=st(),u=o===i,s=f();++n<e;){var l=arguments[n];(Je(l)||ht(l))&&(t.push(l),r.push(u&&l.length>=w&&c(n?t[n]:s)))}var h=t[0],g=-1,y=h?h.length:0,m=[];t:for(;++g<y;){var v=r[0];if(l=h[g],(v?a(v,l):o(s,l))<0){for(n=e,(v||s).push(l);--n;)if(v=r[n],(v?a(v,l):o(t[n],l))<0)continue t;m.push(l)}}for(;e--;)v=r[e],v&&p(v);return d(r),d(s),m}function xn(t,e,r){var i=0,a=t?t.length:0;if("number"!=typeof e&&null!=e){var o=a;for(e=n.createCallback(e,r,3);o--&&e(t[o],o,t);)i++}else if(i=e,null==i||r)return t?t[a-1]:m;return g(t,He(0,a-i))}function wn(t,n,e){var r=t?t.length:0;for("number"==typeof e&&(r=(0>e?He(0,r+e):Ge(e,r-1))+1);r--;)if(t[r]===n)return r;return-1}function kn(t){for(var n=arguments,e=0,r=n.length,i=t?t.length:0;++e<r;)for(var a=-1,o=n[e];++a<i;)t[a]===o&&(qe.call(t,a--,1),i--);return t}function En(t,n,e){t=+t||0,e="number"==typeof e?e:+e||1,null==n&&(n=t,t=0);for(var r=-1,i=He(0,Ce((n-t)/(e||1))),a=pe(i);++r<i;)a[r]=t,t+=e;return a}function Mn(t,e,r){var i=-1,a=t?t.length:0,o=[];for(e=n.createCallback(e,r,3);++i<a;){var u=t[i];e(u,i,t)&&(o.push(u),qe.call(t,i--,1),a--)}return o}function An(t,e,r){if("number"!=typeof e&&null!=e){var i=0,a=-1,o=t?t.length:0;for(e=n.createCallback(e,r,3);++a<o&&e(t[a],a,t);)i++}else i=null==e||r?1:He(0,e);return g(t,i)}function Dn(t,e,r,i){var a=0,o=t?t.length:a;for(r=r?n.createCallback(r,i,1):Jn,e=r(e);o>a;){var u=a+o>>>1;r(t[u])<e?a=u+1:o=u}return a}function Sn(){return it(Q(arguments,!0,!0))}function Cn(t,e,r,i){return"boolean"!=typeof e&&null!=e&&(i=r,r="function"!=typeof e&&i&&i[e]===t?null:e,e=!1),null!=r&&(r=n.createCallback(r,i,3)),it(t,e,r)}function Tn(t){return K(t,g(arguments,1))}function Fn(){for(var t=-1,n=arguments.length;++t<n;){var e=arguments[t];if(Je(e)||ht(e))var r=r?it(K(r,e).concat(K(e,r))):e}return r||[]}function Nn(){for(var t=arguments.length>1?arguments:arguments[0],n=-1,e=t?tn(dr(t,"length")):0,r=pe(0>e?0:e);++n<e;)r[n]=dr(t,n);return r}function Ln(t,n){var e=-1,r=t?t.length:0,i={};for(n||!r||Je(t[0])||(n=[]);++e<r;){var a=t[e];n?i[a]=n[e]:a&&(i[a[0]]=a[1])}return i}function Bn(t,n){if(!Ct(n))throw new ke;return function(){return--t<1?n.apply(this,arguments):void 0}}function On(t,n){return arguments.length>2?ot(t,17,g(arguments,2),null,n):ot(t,1,null,null,n)}function In(t){for(var n=arguments.length>1?Q(arguments,!0,!1,1):_t(t),e=-1,r=n.length;++e<r;){var i=n[e];t[i]=ot(t[i],1,null,null,t)}return t}function qn(t,n){return arguments.length>2?ot(n,19,g(arguments,2),null,t):ot(n,3,null,null,t)}function Rn(){for(var t=arguments,n=t.length;n--;)if(!Ct(t[n]))throw new ke;return function(){for(var n=arguments,e=t.length;e--;)n=[t[e].apply(this,n)];return n[0]}}function Pn(t,n){return n="number"==typeof n?n:+n||t.length,ot(t,4,null,null,null,n)}function jn(t,n,e){var r,i,a,o,u,s,c,l=0,f=!1,h=!0;if(!Ct(t))throw new ke;if(n=He(0,n)||0,e===!0){var d=!0;h=!1}else Tt(e)&&(d=e.leading,f="maxWait"in e&&(He(n,e.maxWait)||0),h="trailing"in e?e.trailing:h);var p=function(){var e=n-(gr()-o);if(0>=e){i&&Te(i);var f=c;i=s=c=m,f&&(l=gr(),a=t.apply(u,r),s||i||(r=u=null))}else s=Ie(p,e)},g=function(){s&&Te(s),i=s=c=m,(h||f!==n)&&(l=gr(),a=t.apply(u,r),s||i||(r=u=null))};return function(){if(r=arguments,o=gr(),u=this,c=h&&(s||!d),f===!1)var e=d&&!s;else{i||d||(l=o);var y=f-(o-l),m=0>=y;m?(i&&(i=Te(i)),l=o,a=t.apply(u,r)):i||(i=Ie(g,y))}return m&&s?s=Te(s):s||n===f||(s=Ie(p,n)),e&&(m=!0,a=t.apply(u,r)),!m||s||i||(r=u=null),a}}function Un(t){if(!Ct(t))throw new ke;var n=g(arguments,1);return Ie(function(){t.apply(m,n)},1)}function zn(t,n){if(!Ct(t))throw new ke;var e=g(arguments,2);return Ie(function(){t.apply(m,e)},n)}function Yn(t,n){if(!Ct(t))throw new ke;var e=function(){var r=e.cache,i=n?n.apply(this,arguments):x+arguments[0];return Be.call(r,i)?r[i]:r[i]=t.apply(this,arguments)};return e.cache={},e}function Vn(t){var n,e;if(!Ct(t))throw new ke;return function(){return n?e:(n=!0,e=t.apply(this,arguments),
  t=null,e)}}function Hn(t){return ot(t,16,g(arguments,1))}function Gn(t){return ot(t,32,null,g(arguments,1))}function $n(t,n,e){var r=!0,i=!0;if(!Ct(t))throw new ke;return e===!1?r=!1:Tt(e)&&(r="leading"in e?e.leading:r,i="trailing"in e?e.trailing:i),W.leading=r,W.maxWait=n,W.trailing=i,jn(t,n,W)}function Wn(t,n){return ot(n,16,[t])}function Zn(t){return function(){return t}}function Xn(t,n,e){var r=typeof t;if(null==t||"function"==r)return b(t,n,e);if("object"!=r)return ee(t);var i=tr(t),a=i[0],o=t[a];return 1!=i.length||o!==o||Tt(o)?function(n){for(var e=i.length,r=!1;e--&&(r=tt(n[i[e]],t[i[e]],null,!0)););return r}:function(t){var n=t[a];return o===n&&(0!==o||1/o==1/n)}}function Kn(t){return null==t?"":we(t).replace(ir,ut)}function Jn(t){return t}function Qn(t,r,i){var a=!0,o=r&&_t(r);r&&(i||o.length)||(null==i&&(i=r),u=e,r=t,t=n,o=_t(r)),i===!1?a=!1:Tt(i)&&"chain"in i&&(a=i.chain);var u=t,s=Ct(u);Xt(o,function(n){var e=t[n]=r[n];s&&(u.prototype[n]=function(){var n=this.__chain__,r=this.__wrapped__,i=[r];Oe.apply(i,arguments);var o=e.apply(t,i);if(a||n){if(r===o&&Tt(o))return this;o=new u(o),o.__chain__=n}return o})})}function te(){return t._=Ae,this}function ne(){}function ee(t){return function(n){return n[t]}}function re(t,n,e){var r=null==t,i=null==n;if(null==e&&("boolean"==typeof t&&i?(e=t,t=1):i||"boolean"!=typeof n||(e=n,i=!0)),r&&i&&(n=1),t=+t||0,i?(n=t,t=0):n=+n||0,e||t%1||n%1){var a=We();return Ge(t+a*(n-t+parseFloat("1e-"+((a+"").length-1))),n)}return et(t,n)}function ie(t,n){if(t){var e=t[n];return Ct(e)?t[n]():e}}function ae(t,e,r){var i=n.templateSettings;t=we(t||""),r=or({},r,i);var a,o=or({},r.imports,i.imports),u=tr(o),s=Yt(o),c=0,f=r.interpolate||L,h="__p += '",d=xe((r.escape||L).source+"|"+f.source+"|"+(f===F?S:L).source+"|"+(r.evaluate||L).source+"|$","g");t.replace(d,function(n,e,r,i,o,u){return r||(r=i),h+=t.slice(c,u).replace(O,l),e&&(h+="' +\n__e("+e+") +\n'"),o&&(a=!0,h+="';\n"+o+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+n.length,n}),h+="';\n";var p=r.variable,g=p;g||(p="obj",h="with ("+p+") {\n"+h+"\n}\n"),h=(a?h.replace(M,""):h).replace(A,"$1").replace(D,"$1;"),h="function("+p+") {\n"+(g?"":p+" || ("+p+" = {});\n")+"var __t, __p = '', __e = _.escape"+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var y="\n/*\n//# sourceURL="+(r.sourceURL||"/lodash/template/source["+q++ +"]")+"\n*/";try{var v=me(u,"return "+h+y).apply(m,s)}catch(b){throw b.source=h,b}return e?v(e):(v.source=h,v)}function oe(t,n,e){t=(t=+t)>-1?t:0;var r=-1,i=pe(t);for(n=b(n,e,1);++r<t;)i[r]=n(r);return i}function ue(t){return null==t?"":we(t).replace(rr,ft)}function se(t){var n=++_;return we(null==t?"":t)+n}function ce(t){return t=new e(t),t.__chain__=!0,t}function le(t,n){return n(t),t}function fe(){return this.__chain__=!0,this}function he(){return we(this.__wrapped__)}function de(){return this.__wrapped__}t=t?rt.defaults(J.Object(),t,rt.pick(J,I)):J;var pe=t.Array,ge=t.Boolean,ye=t.Date,me=t.Function,ve=t.Math,be=t.Number,_e=t.Object,xe=t.RegExp,we=t.String,ke=t.TypeError,Ee=[],Me=_e.prototype,Ae=t._,De=Me.toString,Se=xe("^"+we(De).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),Ce=ve.ceil,Te=t.clearTimeout,Fe=ve.floor,Ne=me.prototype.toString,Le=ct(Le=_e.getPrototypeOf)&&Le,Be=Me.hasOwnProperty,Oe=Ee.push,Ie=t.setTimeout,qe=Ee.splice,Re=Ee.unshift,Pe=function(){try{var t={},n=ct(n=_e.defineProperty)&&n,e=n(t,t,t)&&n}catch(r){}return e}(),je=ct(je=_e.create)&&je,Ue=ct(Ue=pe.isArray)&&Ue,ze=t.isFinite,Ye=t.isNaN,Ve=ct(Ve=_e.keys)&&Ve,He=ve.max,Ge=ve.min,$e=t.parseInt,We=ve.random,Ze={};Ze[P]=pe,Ze[j]=ge,Ze[U]=ye,Ze[z]=me,Ze[V]=_e,Ze[Y]=be,Ze[H]=xe,Ze[G]=we,e.prototype=n.prototype;var Xe=n.support={};Xe.funcDecomp=!ct(t.WinRTError)&&B.test(y),Xe.funcNames="string"==typeof me.name,n.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:F,variable:"",imports:{_:n}},je||(v=function(){function n(){}return function(e){if(Tt(e)){n.prototype=e;var r=new n;n.prototype=null}return r||t.Object()}}());var Ke=Pe?function(t,n){Z.value=n,Pe(t,"__bindData__",Z)}:ne,Je=Ue||function(t){return t&&"object"==typeof t&&"number"==typeof t.length&&De.call(t)==P||!1},Qe=function(t){var n,e=t,r=[];if(!e)return r;if(!X[typeof t])return r;for(n in e)Be.call(e,n)&&r.push(n);return r},tr=Ve?function(t){return Tt(t)?Ve(t):[]}:Qe,nr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},er=wt(nr),rr=xe("("+tr(er).join("|")+")","g"),ir=xe("["+tr(nr).join("")+"]","g"),ar=function(t,n,e){var r,i=t,a=i;if(!i)return a;var o=arguments,u=0,s="number"==typeof e?2:o.length;if(s>3&&"function"==typeof o[s-2])var c=b(o[--s-1],o[s--],2);else s>2&&"function"==typeof o[s-1]&&(c=o[--s]);for(;++u<s;)if(i=o[u],i&&X[typeof i])for(var l=-1,f=X[typeof i]&&tr(i),h=f?f.length:0;++l<h;)r=f[l],a[r]=c?c(a[r],i[r]):i[r];return a},or=function(t,n,e){var r,i=t,a=i;if(!i)return a;for(var o=arguments,u=0,s="number"==typeof e?2:o.length;++u<s;)if(i=o[u],i&&X[typeof i])for(var c=-1,l=X[typeof i]&&tr(i),f=l?l.length:0;++c<f;)r=l[c],"undefined"==typeof a[r]&&(a[r]=i[r]);return a},ur=function(t,n,e){var r,i=t,a=i;if(!i)return a;if(!X[typeof i])return a;n=n&&"undefined"==typeof e?n:b(n,e,3);for(r in i)if(n(i[r],r,t)===!1)return a;return a},sr=function(t,n,e){var r,i=t,a=i;if(!i)return a;if(!X[typeof i])return a;n=n&&"undefined"==typeof e?n:b(n,e,3);for(var o=-1,u=X[typeof i]&&tr(i),s=u?u.length:0;++o<s;)if(r=u[o],n(i[r],r,t)===!1)return a;return a},cr=Le?function(t){if(!t||De.call(t)!=V)return!1;var n=t.valueOf,e=ct(n)&&(e=Le(n))&&Le(e);return e?t==e||Le(t)==e:lt(t)}:lt,lr=at(function(t,n,e){Be.call(t,e)?t[e]++:t[e]=1}),fr=at(function(t,n,e){(Be.call(t,e)?t[e]:t[e]=[]).push(n)}),hr=at(function(t,n,e){t[e]=n}),dr=Qt,pr=$t,gr=ct(gr=ye.now)&&gr||function(){return(new ye).getTime()},yr=8==$e(E+"08")?$e:function(t,n){return $e(Ot(t)?t.replace(N,""):t,n||0)};return n.after=Bn,n.assign=ar,n.at=Vt,n.bind=On,n.bindAll=In,n.bindKey=qn,n.chain=ce,n.compact=hn,n.compose=Rn,n.constant=Zn,n.countBy=lr,n.create=gt,n.createCallback=Xn,n.curry=Pn,n.debounce=jn,n.defaults=or,n.defer=Un,n.delay=zn,n.difference=dn,n.filter=$t,n.flatten=mn,n.forEach=Xt,n.forEachRight=Kt,n.forIn=ur,n.forInRight=vt,n.forOwn=sr,n.forOwnRight=bt,n.functions=_t,n.groupBy=fr,n.indexBy=hr,n.initial=bn,n.intersection=_n,n.invert=wt,n.invoke=Jt,n.keys=tr,n.map=Qt,n.mapValues=qt,n.max=tn,n.memoize=Yn,n.merge=Rt,n.min=nn,n.omit=Pt,n.once=Vn,n.pairs=jt,n.partial=Hn,n.partialRight=Gn,n.pick=Ut,n.pluck=dr,n.property=ee,n.pull=kn,n.range=En,n.reject=an,n.remove=Mn,n.rest=An,n.shuffle=un,n.sortBy=ln,n.tap=le,n.throttle=$n,n.times=oe,n.toArray=fn,n.transform=zt,n.union=Sn,n.uniq=Cn,n.values=Yt,n.where=pr,n.without=Tn,n.wrap=Wn,n.xor=Fn,n.zip=Nn,n.zipObject=Ln,n.collect=Qt,n.drop=An,n.each=Xt,n.eachRight=Kt,n.extend=ar,n.methods=_t,n.object=Ln,n.select=$t,n.tail=An,n.unique=Cn,n.unzip=Nn,Qn(n),n.clone=dt,n.cloneDeep=pt,n.contains=Ht,n.escape=Kn,n.every=Gt,n.find=Wt,n.findIndex=pn,n.findKey=yt,n.findLast=Zt,n.findLastIndex=gn,n.findLastKey=mt,n.has=xt,n.identity=Jn,n.indexOf=vn,n.isArguments=ht,n.isArray=Je,n.isBoolean=kt,n.isDate=Et,n.isElement=Mt,n.isEmpty=At,n.isEqual=Dt,n.isFinite=St,n.isFunction=Ct,n.isNaN=Ft,n.isNull=Nt,n.isNumber=Lt,n.isObject=Tt,n.isPlainObject=cr,n.isRegExp=Bt,n.isString=Ot,n.isUndefined=It,n.lastIndexOf=wn,n.mixin=Qn,n.noConflict=te,n.noop=ne,n.now=gr,n.parseInt=yr,n.random=re,n.reduce=en,n.reduceRight=rn,n.result=ie,n.runInContext=y,n.size=sn,n.some=cn,n.sortedIndex=Dn,n.template=ae,n.unescape=ue,n.uniqueId=se,n.all=Gt,n.any=cn,n.detect=Wt,n.findWhere=Wt,n.foldl=en,n.foldr=rn,n.include=Ht,n.inject=en,Qn(function(){var t={};return sr(n,function(e,r){n.prototype[r]||(t[r]=e)}),t}(),!1),n.first=yn,n.last=xn,n.sample=on,n.take=yn,n.head=yn,sr(n,function(t,r){var i="sample"!==r;n.prototype[r]||(n.prototype[r]=function(n,r){var a=this.__chain__,o=t(this.__wrapped__,n,r);return a||null!=n&&(!r||i&&"function"==typeof n)?new e(o,a):o})}),n.VERSION="2.4.1",n.prototype.chain=fe,n.prototype.toString=he,n.prototype.value=de,n.prototype.valueOf=de,Xt(["join","pop","shift"],function(t){var r=Ee[t];n.prototype[t]=function(){var t=this.__chain__,n=r.apply(this.__wrapped__,arguments);return t?new e(n,t):n}}),Xt(["push","reverse","sort","unshift"],function(t){var e=Ee[t];n.prototype[t]=function(){return e.apply(this.__wrapped__,arguments),this}}),Xt(["concat","slice","splice"],function(t){var r=Ee[t];n.prototype[t]=function(){return new e(r.apply(this.__wrapped__,arguments),this.__chain__)}}),n}var m,v=[],b=[],_=0,x=+new Date+"",w=75,k=40,E=" 	\f \n\r\u2028\u2029 ᠎             　",M=/\b__p \+= '';/g,A=/\b(__p \+=) '' \+/g,D=/(__e\(.*?\)|\b__t\)) \+\n'';/g,S=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,C=/\w*$/,T=/^\s*function[ \n\r\t]+\w/,F=/<%=([\s\S]+?)%>/g,N=RegExp("^["+E+"]*0+(?=.$)"),L=/($^)/,B=/\bthis\b/,O=/['\n\r\t\u2028\u2029\\]/g,I=["Array","Boolean","Date","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],q=0,R="[object Arguments]",P="[object Array]",j="[object Boolean]",U="[object Date]",z="[object Function]",Y="[object Number]",V="[object Object]",H="[object RegExp]",G="[object String]",$={};$[z]=!1,$[R]=$[P]=$[j]=$[U]=$[Y]=$[V]=$[H]=$[G]=!0;var W={leading:!1,maxWait:0,trailing:!1},Z={configurable:!1,enumerable:!1,value:null,writable:!1},X={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},K={"\\":"\\","'":"'","\n":"n","\r":"r","	":"t","\u2028":"u2028","\u2029":"u2029"},J=X[typeof window]&&window||this,Q=X[typeof r]&&r&&!r.nodeType&&r,tt=X[typeof e]&&e&&!e.nodeType&&e,nt=tt&&tt.exports===Q&&Q,et=X[typeof n]&&n;!et||et.global!==et&&et.window!==et||(J=et);var rt=y();"function"==typeof t&&"object"==typeof t.amd&&t.amd?(J._=rt,t(function(){return rt})):Q&&tt?nt?(tt.exports=rt)._=rt:Q._=rt:J._=rt}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[1])(1)}),function(){var define=void 0;!function t(n,e,r){function i(o,u){if(!e[o]){if(!n[o]){var s="function"==typeof require&&require;if(!u&&s)return s(o,!0);if(a)return a(o,!0);throw new Error("Cannot find module '"+o+"'")}var c=e[o]={exports:{}};n[o][0].call(c.exports,function(t){var e=n[o][1][t];return i(e?e:t)},c,c.exports,t,n,e,r)}return e[o].exports}for(var a="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(t,n){!function(){function t(t,n){return n>t?-1:t>n?1:t>=n?0:0/0}function e(t){return null===t?0/0:+t}function r(t){return!isNaN(t)}function i(t){return{left:function(n,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=n.length);i>r;){var a=r+i>>>1;t(n[a],e)<0?r=a+1:i=a}return r},right:function(n,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=n.length);i>r;){var a=r+i>>>1;t(n[a],e)>0?i=a:r=a+1}return r}}}function a(t){return t.length}function o(t){for(var n=1;t*n%1;)n*=10;return n}function u(t,n){for(var e in n)Object.defineProperty(t.prototype,e,{value:n[e],enumerable:!1})}function s(){this._=Object.create(null)}function c(t){return(t+="")===lo||t[0]===fo?fo+t:t}function l(t){return(t+="")[0]===fo?t.slice(1):t}function f(t){return c(t)in this._}function h(t){return(t=c(t))in this._&&delete this._[t]}function d(){var t=[];for(var n in this._)t.push(l(n));return t}function p(){var t=0;for(var n in this._)++t;return t}function g(){for(var t in this._)return!1;return!0}function y(){this._=Object.create(null)}function m(t,n,e){return function(){var r=e.apply(n,arguments);return r===n?t:r}}function v(t,n){if(n in t)return n;n=n.charAt(0).toUpperCase()+n.slice(1);for(var e=0,r=ho.length;r>e;++e){var i=ho[e]+n;if(i in t)return i}}function b(){}function _(){}function x(t){function n(){for(var n,r=e,i=-1,a=r.length;++i<a;)(n=r[i].on)&&n.apply(this,arguments);return t}var e=[],r=new s;return n.on=function(n,i){var a,o=r.get(n);return arguments.length<2?o&&o.on:(o&&(o.on=null,e=e.slice(0,a=e.indexOf(o)).concat(e.slice(a+1)),r.remove(n)),i&&e.push(r.set(n,{on:i})),t)},n}function w(){Za.event.preventDefault()}function k(){for(var t,n=Za.event;t=n.sourceEvent;)n=t;return n}function E(t){for(var n=new _,e=0,r=arguments.length;++e<r;)n[arguments[e]]=x(n);return n.of=function(e,r){return function(i){try{var a=i.sourceEvent=Za.event;i.target=t,Za.event=i,n[i.type].apply(e,r)}finally{Za.event=a}}},n}function M(t){return go(t,_o),t}function A(t){return"function"==typeof t?t:function(){return yo(t,this)}}function D(t){return"function"==typeof t?t:function(){return mo(t,this)}}function S(t,n){function e(){this.removeAttribute(t)}function r(){this.removeAttributeNS(t.space,t.local)}function i(){this.setAttribute(t,n)}function a(){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 u(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}return t=Za.ns.qualify(t),null==n?t.local?r:e:"function"==typeof n?t.local?u:o:t.local?a:i}function C(t){return t.trim().replace(/\s+/g," ")}function T(t){return new RegExp("(?:^|\\s+)"+Za.requote(t)+"(?:\\s+|$)","g")}function F(t){return(t+"").trim().split(/^|\s+/)}function N(t,n){function e(){for(var e=-1;++e<i;)t[e](this,n)}function r(){for(var e=-1,r=n.apply(this,arguments);++e<i;)t[e](this,r)}t=F(t).map(L);var i=t.length;return"function"==typeof n?r:e}function L(t){var n=T(t);return function(e,r){if(i=e.classList)return r?i.add(t):i.remove(t);var i=e.getAttribute("class")||"";r?(n.lastIndex=0,n.test(i)||e.setAttribute("class",C(i+" "+t))):e.setAttribute("class",C(i.replace(n," ")))}}function B(t,n,e){function r(){this.style.removeProperty(t)}function i(){this.style.setProperty(t,n,e)}function a(){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?a:i}function O(t,n){function e(){delete this[t]}function r(){this[t]=n}function i(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}return null==n?e:"function"==typeof n?i:r}function I(t){return"function"==typeof t?t:(t=Za.ns.qualify(t)).local?function(){return this.ownerDocument.createElementNS(t.space,t.local)}:function(){return this.ownerDocument.createElementNS(this.namespaceURI,t)}}function q(t){return{__data__:t}}function R(t){return function(){return bo(this,t)}}function P(n){return arguments.length||(n=t),function(t,e){return t&&e?n(t.__data__,e.__data__):!t-!e}}function j(t,n){for(var e=0,r=t.length;r>e;e++)for(var i,a=t[e],o=0,u=a.length;u>o;o++)(i=a[o])&&n(i,o,e);return t}function U(t){return go(t,wo),t}function z(t){var n,e;return function(r,i,a){var o,u=t[a].update,s=u.length;for(a!=e&&(e=a,n=0),i>=n&&(n=i+1);!(o=u[n])&&++n<s;);return o}}function Y(){var t=this.__transition__;t&&++t.active}function V(t,n,e){function r(){var n=this[o];n&&(this.removeEventListener(t,n,n.$),delete this[o])}function i(){var i=s(n,Ka(arguments));r.call(this),this.addEventListener(t,this[o]=i,i.$=e),i._=n}function a(){var n,e=new RegExp("^__on([^.]+)"+Za.requote(t)+"$");for(var r in this)if(n=r.match(e)){var i=this[r];this.removeEventListener(n[1],i,i.$),delete this[r]}}var o="__on"+t,u=t.indexOf("."),s=H;u>0&&(t=t.slice(0,u));var c=Eo.get(t);return c&&(t=c,s=G),u?n?i:r:n?b:a}function H(t,n){return function(e){var r=Za.event;Za.event=e,n[0]=this.__data__;try{t.apply(this,n)}finally{Za.event=r}}}function G(t,n){var e=H(t,n);return function(t){var n=this,r=t.relatedTarget;r&&(r===n||8&r.compareDocumentPosition(n))||e.call(n,t)}}function $(){var t=".dragsuppress-"+ ++Ao,n="click"+t,e=Za.select(to).on("touchmove"+t,w).on("dragstart"+t,w).on("selectstart"+t,w);if(Mo){var r=Qa.style,i=r[Mo];r[Mo]="none"}return function(a){function o(){e.on(n,null)}e.on(t,null),Mo&&(r[Mo]=i),a&&(e.on(n,function(){w(),o()},!0),setTimeout(o,0))}}function W(t,n){n.changedTouches&&(n=n.changedTouches[0]);var e=t.ownerSVGElement||t;if(e.createSVGPoint){var r=e.createSVGPoint();if(0>Do&&(to.scrollX||to.scrollY)){e=Za.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var i=e[0][0].getScreenCTM();Do=!(i.f||i.e),e.remove()}return Do?(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 Z(){return Za.event.changedTouches[0].identifier}function X(){return Za.event.target}function K(){return to}function J(t){return t>0?1:0>t?-1:0}function Q(t,n,e){return(n[0]-t[0])*(e[1]-t[1])-(n[1]-t[1])*(e[0]-t[0])}function tt(t){return t>1?0:-1>t?So:Math.acos(t)}function nt(t){return t>1?To:-1>t?-To:Math.asin(t)}function et(t){return((t=Math.exp(t))-1/t)/2}function rt(t){return((t=Math.exp(t))+1/t)/2}function it(t){return((t=Math.exp(2*t))-1)/(t+1)}function at(t){return(t=Math.sin(t/2))*t}function ot(){}function ut(t,n,e){return this instanceof ut?(this.h=+t,this.s=+n,void(this.l=+e)):arguments.length<2?t instanceof ut?new ut(t.h,t.s,t.l):xt(""+t,wt,ut):new ut(t,n,e)}function st(t,n,e){function r(t){return t>360?t-=360:0>t&&(t+=360),60>t?a+(o-a)*t/60:180>t?o:240>t?a+(o-a)*(240-t)/60:a}function i(t){return Math.round(255*r(t))}var a,o;return t=isNaN(t)?0:(t%=360)<0?t+360:t,n=isNaN(n)?0:0>n?0:n>1?1:n,e=0>e?0:e>1?1:e,o=.5>=e?e*(1+n):e+n-e*n,a=2*e-o,new mt(i(t+120),i(t),i(t-120))}function ct(t,n,e){return this instanceof ct?(this.h=+t,this.c=+n,void(this.l=+e)):arguments.length<2?t instanceof ct?new ct(t.h,t.c,t.l):t instanceof ft?dt(t.l,t.a,t.b):dt((t=kt((t=Za.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new ct(t,n,e)}function lt(t,n,e){return isNaN(t)&&(t=0),isNaN(n)&&(n=0),new ft(e,Math.cos(t*=Lo)*n,Math.sin(t)*n)}function ft(t,n,e){return this instanceof ft?(this.l=+t,this.a=+n,void(this.b=+e)):arguments.length<2?t instanceof ft?new ft(t.l,t.a,t.b):t instanceof ct?lt(t.h,t.c,t.l):kt((t=mt(t)).r,t.g,t.b):new ft(t,n,e)}function ht(t,n,e){var r=(t+16)/116,i=r+n/500,a=r-e/200;return i=pt(i)*Vo,r=pt(r)*Ho,a=pt(a)*Go,new mt(yt(3.2404542*i-1.5371385*r-.4985314*a),yt(-.969266*i+1.8760108*r+.041556*a),yt(.0556434*i-.2040259*r+1.0572252*a))}function dt(t,n,e){return t>0?new ct(Math.atan2(e,n)*Bo,Math.sqrt(n*n+e*e),t):new ct(0/0,0/0,t)}function pt(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function gt(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function yt(t){return Math.round(255*(.00304>=t?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function mt(t,n,e){return this instanceof mt?(this.r=~~t,this.g=~~n,void(this.b=~~e)):arguments.length<2?t instanceof mt?new mt(t.r,t.g,t.b):xt(""+t,mt,st):new mt(t,n,e)}function vt(t){return new mt(t>>16,t>>8&255,255&t)}function bt(t){return vt(t)+""}function _t(t){return 16>t?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function xt(t,n,e){var r,i,a,o=0,u=0,s=0;if(r=/([a-z]+)\((.*)\)/i.exec(t))switch(i=r[2].split(","),r[1]){case"hsl":return e(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return n(Mt(i[0]),Mt(i[1]),Mt(i[2]))}return(a=Zo.get(t))?n(a.r,a.g,a.b):(null==t||"#"!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&a)>>4,o=o>>4|o,u=240&a,u=u>>4|u,s=15&a,s=s<<4|s):7===t.length&&(o=(16711680&a)>>16,u=(65280&a)>>8,s=255&a)),n(o,u,s))}function wt(t,n,e){var r,i,a=Math.min(t/=255,n/=255,e/=255),o=Math.max(t,n,e),u=o-a,s=(o+a)/2;return u?(i=.5>s?u/(o+a):u/(2-o-a),r=t==o?(n-e)/u+(e>n?6:0):n==o?(e-t)/u+2:(t-n)/u+4,r*=60):(r=0/0,i=s>0&&1>s?0:r),new ut(r,i,s)}function kt(t,n,e){t=Et(t),n=Et(n),e=Et(e);var r=gt((.4124564*t+.3575761*n+.1804375*e)/Vo),i=gt((.2126729*t+.7151522*n+.072175*e)/Ho),a=gt((.0193339*t+.119192*n+.9503041*e)/Go);return ft(116*i-16,500*(r-i),200*(i-a))}function Et(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Mt(t){var n=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*n):n}function At(t){return"function"==typeof t?t:function(){return t}}function Dt(t){return t}function St(t){return function(n,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=null),Ct(n,e,t,r)}}function Ct(t,n,e,r){function i(){var t,n=s.status;if(!n&&Ft(s)||n>=200&&300>n||304===n){try{t=e.call(a,s)}catch(r){return void o.error.call(a,r)}o.load.call(a,t)}else o.error.call(a,s)}var a={},o=Za.dispatch("beforesend","progress","load","error"),u={},s=new XMLHttpRequest,c=null;return!to.XDomainRequest||"withCredentials"in s||!/^(http(s)?:)?\/\//.test(t)||(s=new XDomainRequest),"onload"in s?s.onload=s.onerror=i:s.onreadystatechange=function(){s.readyState>3&&i()},s.onprogress=function(t){var n=Za.event;Za.event=t;try{o.progress.call(a,s)}finally{Za.event=n}},a.header=function(t,n){return t=(t+"").toLowerCase(),arguments.length<2?u[t]:(null==n?delete u[t]:u[t]=n+"",a)},a.mimeType=function(t){return arguments.length?(n=null==t?null:t+"",a):n},a.responseType=function(t){return arguments.length?(c=t,a):c},a.response=function(t){return e=t,a},["get","post"].forEach(function(t){a[t]=function(){return a.send.apply(a,[t].concat(Ka(arguments)))}}),a.send=function(e,r,i){if(2===arguments.length&&"function"==typeof r&&(i=r,r=null),s.open(e,t,!0),null==n||"accept"in u||(u.accept=n+",*/*"),s.setRequestHeader)for(var l in u)s.setRequestHeader(l,u[l]);return null!=n&&s.overrideMimeType&&s.overrideMimeType(n),null!=c&&(s.responseType=c),null!=i&&a.on("error",i).on("load",function(t){i(null,t)}),o.beforesend.call(a,s),s.send(null==r?null:r),a},a.abort=function(){return s.abort(),a},Za.rebind(a,o,"on"),null==r?a:a.get(Tt(r))}function Tt(t){return 1===t.length?function(n,e){t(null==n?e:null)}:t}function Ft(t){var n=t.responseType;return n&&"text"!==n?t.response:t.responseText}function Nt(){var t=Lt(),n=Bt()-t;n>24?(isFinite(n)&&(clearTimeout(Qo),Qo=setTimeout(Nt,n)),Jo=0):(Jo=1,nu(Nt))}function Lt(){var t=Date.now();for(tu=Xo;tu;)t>=tu.t&&(tu.f=tu.c(t-tu.t)),tu=tu.n;return t}function Bt(){for(var t,n=Xo,e=1/0;n;)n.f?n=t?t.n=n.n:Xo=n.n:(n.t<e&&(e=n.t),n=(t=n).n);return Ko=t,e}function Ot(t,n){return n-(t?Math.ceil(Math.log(t)/Math.LN10):1)}function It(t,n){var e=Math.pow(10,3*co(8-n));return{scale:n>8?function(t){return t/e}:function(t){return t*e},symbol:t}}function qt(t){var n=t.decimal,e=t.thousands,r=t.grouping,i=t.currency,a=r&&e?function(t,n){for(var i=t.length,a=[],o=0,u=r[0],s=0;i>0&&u>0&&(s+u+1>n&&(u=Math.max(1,n-s)),a.push(t.substring(i-=u,i+u)),!((s+=u+1)>n));)u=r[o=(o+1)%r.length];return a.reverse().join(e)}:Dt;return function(t){var e=ru.exec(t),r=e[1]||" ",o=e[2]||">",u=e[3]||"-",s=e[4]||"",c=e[5],l=+e[6],f=e[7],h=e[8],d=e[9],p=1,g="",y="",m=!1,v=!0;switch(h&&(h=+h.substring(1)),(c||"0"===r&&"="===o)&&(c=r="0",o="="),d){case"n":f=!0,d="g";break;case"%":p=100,y="%",d="f";break;case"p":p=100,y="%",d="r";break;case"b":case"o":case"x":case"X":"#"===s&&(g="0"+d.toLowerCase());case"c":v=!1;case"d":m=!0,h=0;break;case"s":p=-1,d="r"}"$"===s&&(g=i[0],y=i[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=iu.get(d)||Rt;var b=c&&f;return function(t){var e=y;if(m&&t%1)return"";var i=0>t||0===t&&0>1/t?(t=-t,"-"):"-"===u?"":u;if(0>p){var s=Za.formatPrefix(t,h);t=s.scale(t),e=s.symbol+y}else t*=p;t=d(t,h);var _,x,w=t.lastIndexOf(".");if(0>w){var k=v?t.lastIndexOf("e"):-1;0>k?(_=t,x=""):(_=t.substring(0,k),x=t.substring(k))}else _=t.substring(0,w),x=n+t.substring(w+1);!c&&f&&(_=a(_,1/0));var E=g.length+_.length+x.length+(b?0:i.length),M=l>E?new Array(E=l-E+1).join(r):"";return b&&(_=a(M+_,M.length?l-x.length:1/0)),i+=g,t=_+x,("<"===o?i+t+M:">"===o?M+i+t:"^"===o?M.substring(0,E>>=1)+i+t+M.substring(E):i+(b?t:M+t))+e}}}function Rt(t){return t+""}function Pt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function jt(t,n,e){function r(n){var e=t(n),r=a(e,1);return r-n>n-e?e:r}function i(e){return n(e=t(new ou(e-1)),1),e}function a(t,e){return n(t=new ou(+t),e),t}function o(t,r,a){var o=i(t),u=[];if(a>1)for(;r>o;)e(o)%a||u.push(new Date(+o)),n(o,1);else for(;r>o;)u.push(new Date(+o)),n(o,1);return u}function u(t,n,e){try{ou=Pt;var r=new Pt;return r._=t,o(r,n,e)}finally{ou=Date}}t.floor=t,t.round=r,t.ceil=i,t.offset=a,t.range=o;var s=t.utc=Ut(t);return s.floor=s,s.round=Ut(r),s.ceil=Ut(i),s.offset=Ut(a),s.range=u,t}function Ut(t){return function(n,e){try{ou=Pt;var r=new Pt;return r._=n,t(r,e)._}finally{ou=Date}}}function zt(t){function n(t){function n(n){for(var e,i,a,o=[],u=-1,s=0;++u<r;)37===t.charCodeAt(u)&&(o.push(t.slice(s,u)),null!=(i=su[e=t.charAt(++u)])&&(e=t.charAt(++u)),(a=S[e])&&(e=a(n,null==i?"e"===e?" ":"0":i)),o.push(e),s=u+1);return o.push(t.slice(s,u)),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},i=e(r,t,n,0);if(i!=n.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var a=null!=r.Z&&ou!==Pt,o=new(a?Pt:ou);return"j"in r?o.setFullYear(r.y,0,r.j):"w"in r&&("W"in r||"U"in r)?(o.setFullYear(r.y,0,1),o.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(o.getDay()+5)%7:r.w+7*r.U-(o.getDay()+6)%7)):o.setFullYear(r.y,r.m,r.d),o.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),a?o._:o},n.toString=function(){return t},n}function e(t,n,e,r){for(var i,a,o,u=0,s=n.length,c=e.length;s>u;){if(r>=c)return-1;if(i=n.charCodeAt(u++),37===i){if(o=n.charAt(u++),a=C[o in su?n.charAt(u++):o],!a||(r=a(t,e,r))<0)return-1}else if(i!=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=k.get(r[0].toLowerCase()),e+r[0].length):-1}function i(t,n,e){_.lastIndex=0;var r=_.exec(n.slice(e));return r?(t.w=x.get(r[0].toLowerCase()),e+r[0].length):-1}function a(t,n,e){A.lastIndex=0;var r=A.exec(n.slice(e));return r?(t.m=D.get(r[0].toLowerCase()),e+r[0].length):-1}function o(t,n,e){E.lastIndex=0;var r=E.exec(n.slice(e));return r?(t.m=M.get(r[0].toLowerCase()),e+r[0].length):-1}function u(t,n,r){return e(t,S.c.toString(),n,r)}function s(t,n,r){return e(t,S.x.toString(),n,r)}function c(t,n,r){return e(t,S.X.toString(),n,r)}function l(t,n,e){var r=b.get(n.slice(e,e+=2).toLowerCase());return null==r?-1:(t.p=r,e)}var f=t.dateTime,h=t.date,d=t.time,p=t.periods,g=t.days,y=t.shortDays,m=t.months,v=t.shortMonths;n.utc=function(t){function e(t){try{ou=Pt;var n=new ou;return n._=t,r(n)}finally{ou=Date}}var r=n(t);return e.parse=function(t){try{ou=Pt;var n=r.parse(t);return n&&n._}finally{ou=Date}},e.toString=r.toString,e},n.multi=n.utc.multi=cn;var b=Za.map(),_=Vt(g),x=Ht(g),w=Vt(y),k=Ht(y),E=Vt(m),M=Ht(m),A=Vt(v),D=Ht(v);p.forEach(function(t,n){b.set(t.toLowerCase(),n)});var S={a:function(t){return y[t.getDay()]},A:function(t){return g[t.getDay()]},b:function(t){return v[t.getMonth()]},B:function(t){return m[t.getMonth()]},c:n(f),d:function(t,n){return Yt(t.getDate(),n,2)},e:function(t,n){return Yt(t.getDate(),n,2)},H:function(t,n){return Yt(t.getHours(),n,2)},I:function(t,n){return Yt(t.getHours()%12||12,n,2)},j:function(t,n){return Yt(1+au.dayOfYear(t),n,3)},L:function(t,n){return Yt(t.getMilliseconds(),n,3)},m:function(t,n){return Yt(t.getMonth()+1,n,2)},M:function(t,n){return Yt(t.getMinutes(),n,2)},p:function(t){return p[+(t.getHours()>=12)]},S:function(t,n){return Yt(t.getSeconds(),n,2)},U:function(t,n){return Yt(au.sundayOfYear(t),n,2)},w:function(t){return t.getDay()},W:function(t,n){return Yt(au.mondayOfYear(t),n,2)},x:n(h),X:n(d),y:function(t,n){return Yt(t.getFullYear()%100,n,2)},Y:function(t,n){return Yt(t.getFullYear()%1e4,n,4)},Z:un,"%":function(){return"%"}},C={a:r,A:i,b:a,B:o,c:u,d:tn,e:tn,H:en,I:en,j:nn,L:on,m:Qt,M:rn,p:l,S:an,U:$t,w:Gt,W:Wt,x:s,X:c,y:Xt,Y:Zt,Z:Kt,"%":sn};return n}function Yt(t,n,e){var r=0>t?"-":"",i=(r?-t:t)+"",a=i.length;return r+(e>a?new Array(e-a+1).join(n)+i:i)}function Vt(t){return new RegExp("^(?:"+t.map(Za.requote).join("|")+")","i")}function Ht(t){for(var n=new s,e=-1,r=t.length;++e<r;)n.set(t[e].toLowerCase(),e);return n}function Gt(t,n,e){cu.lastIndex=0;var r=cu.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function $t(t,n,e){cu.lastIndex=0;var r=cu.exec(n.slice(e));return r?(t.U=+r[0],e+r[0].length):-1}function Wt(t,n,e){cu.lastIndex=0;var r=cu.exec(n.slice(e));return r?(t.W=+r[0],e+r[0].length):-1}function Zt(t,n,e){cu.lastIndex=0;var r=cu.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function Xt(t,n,e){cu.lastIndex=0;var r=cu.exec(n.slice(e,e+2));return r?(t.y=Jt(+r[0]),e+r[0].length):-1}function Kt(t,n,e){return/^[+-]\d{4}$/.test(n=n.slice(e,e+5))?(t.Z=-n,e+5):-1}function Jt(t){return t+(t>68?1900:2e3)}function Qt(t,n,e){cu.lastIndex=0;var r=cu.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function tn(t,n,e){cu.lastIndex=0;var r=cu.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function nn(t,n,e){cu.lastIndex=0;var r=cu.exec(n.slice(e,e+3));return r?(t.j=+r[0],e+r[0].length):-1}function en(t,n,e){cu.lastIndex=0;var r=cu.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function rn(t,n,e){cu.lastIndex=0;var r=cu.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function an(t,n,e){cu.lastIndex=0;var r=cu.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function on(t,n,e){cu.lastIndex=0;var r=cu.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function un(t){var n=t.getTimezoneOffset(),e=n>0?"-":"+",r=co(n)/60|0,i=co(n)%60;return e+Yt(r,"0",2)+Yt(i,"0",2)}function sn(t,n,e){lu.lastIndex=0;var r=lu.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function cn(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 ln(){}function fn(t,n,e){var r=e.s=t+n,i=r-t,a=r-i;e.t=t-a+(n-i)}function hn(t,n){t&&pu.hasOwnProperty(t.type)&&pu[t.type](t,n)}function dn(t,n,e){var r,i=-1,a=t.length-e;for(n.lineStart();++i<a;)r=t[i],n.point(r[0],r[1],r[2]);n.lineEnd()}function pn(t,n){var e=-1,r=t.length;for(n.polygonStart();++e<r;)dn(t[e],n,1);n.polygonEnd()}function gn(){function t(t,n){t*=Lo,n=n*Lo/2+So/4;var e=t-r,o=e>=0?1:-1,u=o*e,s=Math.cos(n),c=Math.sin(n),l=a*c,f=i*s+l*Math.cos(u),h=l*o*Math.sin(u);yu.add(Math.atan2(h,f)),r=t,i=s,a=c}var n,e,r,i,a;mu.point=function(o,u){mu.point=t,r=(n=o)*Lo,i=Math.cos(u=(e=u)*Lo/2+So/4),a=Math.sin(u)},mu.lineEnd=function(){t(n,e)}}function yn(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 mn(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function vn(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 bn(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function _n(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function xn(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 wn(t){return[Math.atan2(t[1],t[0]),nt(t[2])]}function kn(t,n){return co(t[0]-n[0])<Fo&&co(t[1]-n[1])<Fo}function En(t,n){t*=Lo;var e=Math.cos(n*=Lo);Mn(e*Math.cos(t),e*Math.sin(t),Math.sin(n))}function Mn(t,n,e){++vu,_u+=(t-_u)/vu,xu+=(n-xu)/vu,wu+=(e-wu)/vu}function An(){function t(t,i){t*=Lo;var a=Math.cos(i*=Lo),o=a*Math.cos(t),u=a*Math.sin(t),s=Math.sin(i),c=Math.atan2(Math.sqrt((c=e*s-r*u)*c+(c=r*o-n*s)*c+(c=n*u-e*o)*c),n*o+e*u+r*s);bu+=c,ku+=c*(n+(n=o)),Eu+=c*(e+(e=u)),Mu+=c*(r+(r=s)),Mn(n,e,r)}var n,e,r;Cu.point=function(i,a){i*=Lo;var o=Math.cos(a*=Lo);n=o*Math.cos(i),e=o*Math.sin(i),r=Math.sin(a),Cu.point=t,Mn(n,e,r)}}function Dn(){Cu.point=En}function Sn(){function t(t,n){t*=Lo;var e=Math.cos(n*=Lo),o=e*Math.cos(t),u=e*Math.sin(t),s=Math.sin(n),c=i*s-a*u,l=a*o-r*s,f=r*u-i*o,h=Math.sqrt(c*c+l*l+f*f),d=r*o+i*u+a*s,p=h&&-tt(d)/h,g=Math.atan2(h,d);Au+=p*c,Du+=p*l,Su+=p*f,bu+=g,ku+=g*(r+(r=o)),Eu+=g*(i+(i=u)),Mu+=g*(a+(a=s)),Mn(r,i,a)}var n,e,r,i,a;Cu.point=function(o,u){n=o,e=u,Cu.point=t,o*=Lo;var s=Math.cos(u*=Lo);r=s*Math.cos(o),i=s*Math.sin(o),a=Math.sin(u),Mn(r,i,a)},Cu.lineEnd=function(){t(n,e),Cu.lineEnd=Dn,Cu.point=En}}function Cn(){return!0}function Tn(t,n,e,r,i){var a=[],o=[];if(t.forEach(function(t){if(!((n=t.length-1)<=0)){var n,e=t[0],r=t[n];
  
  if(kn(e,r)){i.lineStart();for(var u=0;n>u;++u)i.point((e=t[u])[0],e[1]);return void i.lineEnd()}var s=new Nn(e,t,null,!0),c=new Nn(e,null,s,!1);s.o=c,a.push(s),o.push(c),s=new Nn(r,t,null,!1),c=new Nn(r,null,s,!0),s.o=c,a.push(s),o.push(c)}}),o.sort(n),Fn(a),Fn(o),a.length){for(var u=0,s=e,c=o.length;c>u;++u)o[u].e=s=!s;for(var l,f,h=a[0];;){for(var d=h,p=!0;d.v;)if((d=d.n)===h)return;l=d.z,i.lineStart();do{if(d.v=d.o.v=!0,d.e){if(p)for(var u=0,c=l.length;c>u;++u)i.point((f=l[u])[0],f[1]);else r(d.x,d.n.x,1,i);d=d.n}else{if(p){l=d.p.z;for(var u=l.length-1;u>=0;--u)i.point((f=l[u])[0],f[1])}else r(d.x,d.p.x,-1,i);d=d.p}d=d.o,l=d.z,p=!p}while(!d.v);i.lineEnd()}}}function Fn(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r<n;)i.n=e=t[r],e.p=i,i=e;i.n=e=t[0],e.p=i}}function Nn(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 Ln(t,n,e,r){return function(i,a){function o(n,e){var r=i(n,e);t(n=r[0],e=r[1])&&a.point(n,e)}function u(t,n){var e=i(t,n);y.point(e[0],e[1])}function s(){v.point=u,y.lineStart()}function c(){v.point=o,y.lineEnd()}function l(t,n){g.push([t,n]);var e=i(t,n);_.point(e[0],e[1])}function f(){_.lineStart(),g=[]}function h(){l(g[0][0],g[0][1]),_.lineEnd();var t,n=_.clean(),e=b.buffer(),r=e.length;if(g.pop(),p.push(g),g=null,r)if(1&n){t=e[0];var i,r=t.length-1,o=-1;if(r>0){for(x||(a.polygonStart(),x=!0),a.lineStart();++o<r;)a.point((i=t[o])[0],i[1]);a.lineEnd()}}else r>1&&2&n&&e.push(e.pop().concat(e.shift())),d.push(e.filter(Bn))}var d,p,g,y=n(a),m=i.invert(r[0],r[1]),v={point:o,lineStart:s,lineEnd:c,polygonStart:function(){v.point=l,v.lineStart=f,v.lineEnd=h,d=[],p=[]},polygonEnd:function(){v.point=o,v.lineStart=s,v.lineEnd=c,d=Za.merge(d);var t=jn(m,p);d.length?(x||(a.polygonStart(),x=!0),Tn(d,In,t,e,a)):t&&(x||(a.polygonStart(),x=!0),a.lineStart(),e(null,null,1,a),a.lineEnd()),x&&(a.polygonEnd(),x=!1),d=p=null},sphere:function(){a.polygonStart(),a.lineStart(),e(null,null,1,a),a.lineEnd(),a.polygonEnd()}},b=On(),_=n(b),x=!1;return v}}function Bn(t){return t.length>1}function On(){var t,n=[];return{lineStart:function(){n.push(t=[])},point:function(n,e){t.push([n,e])},lineEnd:b,buffer:function(){var e=n;return n=[],t=null,e},rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))}}}function In(t,n){return((t=t.x)[0]<0?t[1]-To-Fo:To-t[1])-((n=n.x)[0]<0?n[1]-To-Fo:To-n[1])}function qn(t){var n,e=0/0,r=0/0,i=0/0;return{lineStart:function(){t.lineStart(),n=1},point:function(a,o){var u=a>0?So:-So,s=co(a-e);co(s-So)<Fo?(t.point(e,r=(r+o)/2>0?To:-To),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(a,r),n=0):i!==u&&s>=So&&(co(e-i)<Fo&&(e-=i*Fo),co(a-u)<Fo&&(a-=u*Fo),r=Rn(e,r,a,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),n=0),t.point(e=a,r=o),i=u},lineEnd:function(){t.lineEnd(),e=r=0/0},clean:function(){return 2-n}}}function Rn(t,n,e,r){var i,a,o=Math.sin(t-e);return co(o)>Fo?Math.atan((Math.sin(n)*(a=Math.cos(r))*Math.sin(e)-Math.sin(r)*(i=Math.cos(n))*Math.sin(t))/(i*a*o)):(n+r)/2}function Pn(t,n,e,r){var i;if(null==t)i=e*To,r.point(-So,i),r.point(0,i),r.point(So,i),r.point(So,0),r.point(So,-i),r.point(0,-i),r.point(-So,-i),r.point(-So,0),r.point(-So,i);else if(co(t[0]-n[0])>Fo){var a=t[0]<n[0]?So:-So;i=e*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(n[0],n[1])}function jn(t,n){var e=t[0],r=t[1],i=[Math.sin(e),-Math.cos(e),0],a=0,o=0;yu.reset();for(var u=0,s=n.length;s>u;++u){var c=n[u],l=c.length;if(l)for(var f=c[0],h=f[0],d=f[1]/2+So/4,p=Math.sin(d),g=Math.cos(d),y=1;;){y===l&&(y=0),t=c[y];var m=t[0],v=t[1]/2+So/4,b=Math.sin(v),_=Math.cos(v),x=m-h,w=x>=0?1:-1,k=w*x,E=k>So,M=p*b;if(yu.add(Math.atan2(M*w*Math.sin(k),g*_+M*Math.cos(k))),a+=E?x+w*Co:x,E^h>=e^m>=e){var A=vn(yn(f),yn(t));xn(A);var D=vn(i,A);xn(D);var S=(E^x>=0?-1:1)*nt(D[2]);(r>S||r===S&&(A[0]||A[1]))&&(o+=E^x>=0?1:-1)}if(!y++)break;h=m,p=b,g=_,f=t}}return(-Fo>a||Fo>a&&0>yu)^1&o}function Un(t){function n(t,n){return Math.cos(t)*Math.cos(n)>a}function e(t){var e,a,s,c,l;return{lineStart:function(){c=s=!1,l=1},point:function(f,h){var d,p=[f,h],g=n(f,h),y=o?g?0:i(f,h):g?i(f+(0>f?So:-So),h):0;if(!e&&(c=s=g)&&t.lineStart(),g!==s&&(d=r(e,p),(kn(e,d)||kn(p,d))&&(p[0]+=Fo,p[1]+=Fo,g=n(p[0],p[1]))),g!==s)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(u&&e&&o^g){var m;y&a||!(m=r(p,e,!0))||(l=0,o?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1])))}!g||e&&kn(e,p)||t.point(p[0],p[1]),e=p,s=g,a=y},lineEnd:function(){s&&t.lineEnd(),e=null},clean:function(){return l|(c&&s)<<1}}}function r(t,n,e){var r=yn(t),i=yn(n),o=[1,0,0],u=vn(r,i),s=mn(u,u),c=u[0],l=s-c*c;if(!l)return!e&&t;var f=a*s/l,h=-a*c/l,d=vn(o,u),p=_n(o,f),g=_n(u,h);bn(p,g);var y=d,m=mn(p,y),v=mn(y,y),b=m*m-v*(mn(p,p)-1);if(!(0>b)){var _=Math.sqrt(b),x=_n(y,(-m-_)/v);if(bn(x,p),x=wn(x),!e)return x;var w,k=t[0],E=n[0],M=t[1],A=n[1];k>E&&(w=k,k=E,E=w);var D=E-k,S=co(D-So)<Fo,C=S||Fo>D;if(!S&&M>A&&(w=M,M=A,A=w),C?S?M+A>0^x[1]<(co(x[0]-k)<Fo?M:A):M<=x[1]&&x[1]<=A:D>So^(k<=x[0]&&x[0]<=E)){var T=_n(y,(-m+_)/v);return bn(T,p),[x,wn(T)]}}}function i(n,e){var r=o?t:So-t,i=0;return-r>n?i|=1:n>r&&(i|=2),-r>e?i|=4:e>r&&(i|=8),i}var a=Math.cos(t),o=a>0,u=co(a)>Fo,s=ge(t,6*Lo);return Ln(n,e,s,o?[0,-t]:[-So,t-So])}function zn(t,n,e,r){return function(i){var a,o=i.a,u=i.b,s=o.x,c=o.y,l=u.x,f=u.y,h=0,d=1,p=l-s,g=f-c;if(a=t-s,p||!(a>0)){if(a/=p,0>p){if(h>a)return;d>a&&(d=a)}else if(p>0){if(a>d)return;a>h&&(h=a)}if(a=e-s,p||!(0>a)){if(a/=p,0>p){if(a>d)return;a>h&&(h=a)}else if(p>0){if(h>a)return;d>a&&(d=a)}if(a=n-c,g||!(a>0)){if(a/=g,0>g){if(h>a)return;d>a&&(d=a)}else if(g>0){if(a>d)return;a>h&&(h=a)}if(a=r-c,g||!(0>a)){if(a/=g,0>g){if(a>d)return;a>h&&(h=a)}else if(g>0){if(h>a)return;d>a&&(d=a)}return h>0&&(i.a={x:s+h*p,y:c+h*g}),1>d&&(i.b={x:s+d*p,y:c+d*g}),i}}}}}}function Yn(t,n,e,r){function i(r,i){return co(r[0]-t)<Fo?i>0?0:3:co(r[0]-e)<Fo?i>0?2:1:co(r[1]-n)<Fo?i>0?1:0:i>0?3:2}function a(t,n){return o(t.x,n.x)}function o(t,n){var e=i(t,1),r=i(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(u){function s(t){for(var n=0,e=y.length,r=t[1],i=0;e>i;++i)for(var a,o=1,u=y[i],s=u.length,c=u[0];s>o;++o)a=u[o],c[1]<=r?a[1]>r&&Q(c,a,t)>0&&++n:a[1]<=r&&Q(c,a,t)<0&&--n,c=a;return 0!==n}function c(a,u,s,c){var l=0,f=0;if(null==a||(l=i(a,s))!==(f=i(u,s))||o(a,u)<0^s>0){do c.point(0===l||3===l?t:e,l>1?r:n);while((l=(l+s+4)%4)!==f)}else c.point(u[0],u[1])}function l(i,a){return i>=t&&e>=i&&a>=n&&r>=a}function f(t,n){l(t,n)&&u.point(t,n)}function h(){C.point=p,y&&y.push(m=[]),E=!0,k=!1,x=w=0/0}function d(){g&&(p(v,b),_&&k&&D.rejoin(),g.push(D.buffer())),C.point=f,k&&u.lineEnd()}function p(t,n){t=Math.max(-Fu,Math.min(Fu,t)),n=Math.max(-Fu,Math.min(Fu,n));var e=l(t,n);if(y&&m.push([t,n]),E)v=t,b=n,_=e,E=!1,e&&(u.lineStart(),u.point(t,n));else if(e&&k)u.point(t,n);else{var r={a:{x:x,y:w},b:{x:t,y:n}};S(r)?(k||(u.lineStart(),u.point(r.a.x,r.a.y)),u.point(r.b.x,r.b.y),e||u.lineEnd(),M=!1):e&&(u.lineStart(),u.point(t,n),M=!1)}x=t,w=n,k=e}var g,y,m,v,b,_,x,w,k,E,M,A=u,D=On(),S=zn(t,n,e,r),C={point:f,lineStart:h,lineEnd:d,polygonStart:function(){u=D,g=[],y=[],M=!0},polygonEnd:function(){u=A,g=Za.merge(g);var n=s([t,r]),e=M&&n,i=g.length;(e||i)&&(u.polygonStart(),e&&(u.lineStart(),c(null,null,1,u),u.lineEnd()),i&&Tn(g,a,n,c,u),u.polygonEnd()),g=y=m=null}};return C}}function Vn(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),e&&t.invert(e[0],e[1])}),e}function Hn(t){var n=0,e=So/3,r=ue(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*So/180,e=t[1]*So/180):[n/So*180,e/So*180]},i}function Gn(t,n){function e(t,n){var e=Math.sqrt(a-2*i*Math.sin(n))/i;return[e*Math.sin(t*=i),o-e*Math.cos(t)]}var r=Math.sin(t),i=(r+Math.sin(n))/2,a=1+r*(2*i-r),o=Math.sqrt(a)/i;return e.invert=function(t,n){var e=o-n;return[Math.atan2(t,e)/i,nt((a-(t*t+e*e)*i*i)/(2*i))]},e}function $n(){function t(t,n){Lu+=i*t-r*n,r=t,i=n}var n,e,r,i;Ru.point=function(a,o){Ru.point=t,n=r=a,e=i=o},Ru.lineEnd=function(){t(n,e)}}function Wn(t,n){Bu>t&&(Bu=t),t>Iu&&(Iu=t),Ou>n&&(Ou=n),n>qu&&(qu=n)}function Zn(){function t(t,n){o.push("M",t,",",n,a)}function n(t,n){o.push("M",t,",",n),u.point=e}function e(t,n){o.push("L",t,",",n)}function r(){u.point=t}function i(){o.push("Z")}var a=Xn(4.5),o=[],u={point:t,lineStart:function(){u.point=n},lineEnd:r,polygonStart:function(){u.lineEnd=i},polygonEnd:function(){u.lineEnd=r,u.point=t},pointRadius:function(t){return a=Xn(t),u},result:function(){if(o.length){var t=o.join("");return o=[],t}}};return u}function Xn(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Kn(t,n){_u+=t,xu+=n,++wu}function Jn(){function t(t,r){var i=t-n,a=r-e,o=Math.sqrt(i*i+a*a);ku+=o*(n+t)/2,Eu+=o*(e+r)/2,Mu+=o,Kn(n=t,e=r)}var n,e;ju.point=function(r,i){ju.point=t,Kn(n=r,e=i)}}function Qn(){ju.point=Kn}function te(){function t(t,n){var e=t-r,a=n-i,o=Math.sqrt(e*e+a*a);ku+=o*(r+t)/2,Eu+=o*(i+n)/2,Mu+=o,o=i*t-r*n,Au+=o*(r+t),Du+=o*(i+n),Su+=3*o,Kn(r=t,i=n)}var n,e,r,i;ju.point=function(a,o){ju.point=t,Kn(n=r=a,e=i=o)},ju.lineEnd=function(){t(n,e)}}function ne(t){function n(n,e){t.moveTo(n,e),t.arc(n,e,o,0,Co)}function e(n,e){t.moveTo(n,e),u.point=r}function r(n,e){t.lineTo(n,e)}function i(){u.point=n}function a(){t.closePath()}var o=4.5,u={point:n,lineStart:function(){u.point=e},lineEnd:i,polygonStart:function(){u.lineEnd=a},polygonEnd:function(){u.lineEnd=i,u.point=n},pointRadius:function(t){return o=t,u},result:b};return u}function ee(t){function n(t){return(u?r:e)(t)}function e(n){return ae(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(){b=0/0,E.point=a,n.lineStart()}function a(e,r){var a=yn([e,r]),o=t(e,r);i(b,_,v,x,w,k,b=o[0],_=o[1],v=e,x=a[0],w=a[1],k=a[2],u,n),n.point(b,_)}function o(){E.point=e,n.lineEnd()}function s(){r(),E.point=c,E.lineEnd=l}function c(t,n){a(f=t,h=n),d=b,p=_,g=x,y=w,m=k,E.point=a}function l(){i(b,_,v,x,w,k,d,p,f,g,y,m,u,n),E.lineEnd=o,o()}var f,h,d,p,g,y,m,v,b,_,x,w,k,E={point:e,lineStart:r,lineEnd:o,polygonStart:function(){n.polygonStart(),E.lineStart=s},polygonEnd:function(){n.polygonEnd(),E.lineStart=r}};return E}function i(n,e,r,u,s,c,l,f,h,d,p,g,y,m){var v=l-n,b=f-e,_=v*v+b*b;if(_>4*a&&y--){var x=u+d,w=s+p,k=c+g,E=Math.sqrt(x*x+w*w+k*k),M=Math.asin(k/=E),A=co(co(k)-1)<Fo||co(r-h)<Fo?(r+h)/2:Math.atan2(w,x),D=t(A,M),S=D[0],C=D[1],T=S-n,F=C-e,N=b*T-v*F;(N*N/_>a||co((v*T+b*F)/_-.5)>.3||o>u*d+s*p+c*g)&&(i(n,e,r,u,s,c,S,C,A,x/=E,w/=E,k,y,m),m.point(S,C),i(S,C,A,x,w,k,l,f,h,d,p,g,y,m))}}var a=.5,o=Math.cos(30*Lo),u=16;return n.precision=function(t){return arguments.length?(u=(a=t*t)>0&&16,n):Math.sqrt(a)},n}function re(t){var n=ee(function(n,e){return t([n*Bo,e*Bo])});return function(t){return se(n(t))}}function ie(t){this.stream=t}function ae(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 oe(t){return ue(function(){return t})()}function ue(t){function n(t){return t=u(t[0]*Lo,t[1]*Lo),[t[0]*h+s,c-t[1]*h]}function e(t){return t=u.invert((t[0]-s)/h,(c-t[1])/h),t&&[t[0]*Bo,t[1]*Bo]}function r(){u=Vn(o=fe(m,v,b),a);var t=a(g,y);return s=d-t[0]*h,c=p+t[1]*h,i()}function i(){return l&&(l.valid=!1,l=null),n}var a,o,u,s,c,l,f=ee(function(t,n){return t=a(t,n),[t[0]*h+s,c-t[1]*h]}),h=150,d=480,p=250,g=0,y=0,m=0,v=0,b=0,_=Tu,x=Dt,w=null,k=null;return n.stream=function(t){return l&&(l.valid=!1),l=se(_(o,f(x(t)))),l.valid=!0,l},n.clipAngle=function(t){return arguments.length?(_=null==t?(w=t,Tu):Un((w=+t)*Lo),i()):w},n.clipExtent=function(t){return arguments.length?(k=t,x=t?Yn(t[0][0],t[0][1],t[1][0],t[1][1]):Dt,i()):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*Lo,y=t[1]%360*Lo,r()):[g*Bo,y*Bo]},n.rotate=function(t){return arguments.length?(m=t[0]%360*Lo,v=t[1]%360*Lo,b=t.length>2?t[2]%360*Lo:0,r()):[m*Bo,v*Bo,b*Bo]},Za.rebind(n,f,"precision"),function(){return a=t.apply(this,arguments),n.invert=a.invert&&e,r()}}function se(t){return ae(t,function(n,e){t.point(n*Lo,e*Lo)})}function ce(t,n){return[t,n]}function le(t,n){return[t>So?t-Co:-So>t?t+Co:t,n]}function fe(t,n,e){return t?n||e?Vn(de(t),pe(n,e)):de(t):n||e?pe(n,e):le}function he(t){return function(n,e){return n+=t,[n>So?n-Co:-So>n?n+Co:n,e]}}function de(t){var n=he(t);return n.invert=he(-t),n}function pe(t,n){function e(t,n){var e=Math.cos(n),u=Math.cos(t)*e,s=Math.sin(t)*e,c=Math.sin(n),l=c*r+u*i;return[Math.atan2(s*a-l*o,u*r-c*i),nt(l*a+s*o)]}var r=Math.cos(t),i=Math.sin(t),a=Math.cos(n),o=Math.sin(n);return e.invert=function(t,n){var e=Math.cos(n),u=Math.cos(t)*e,s=Math.sin(t)*e,c=Math.sin(n),l=c*a-s*o;return[Math.atan2(s*a+c*o,u*r+l*i),nt(l*r-u*i)]},e}function ge(t,n){var e=Math.cos(t),r=Math.sin(t);return function(i,a,o,u){var s=o*n;null!=i?(i=ye(e,i),a=ye(e,a),(o>0?a>i:i>a)&&(i+=o*Co)):(i=t+o*Co,a=t-.5*s);for(var c,l=i;o>0?l>a:a>l;l-=s)u.point((c=wn([e,-r*Math.cos(l),-r*Math.sin(l)]))[0],c[1])}}function ye(t,n){var e=yn(n);e[0]-=t,xn(e);var r=tt(-e[1]);return((-e[2]<0?-r:r)+2*Math.PI-Fo)%(2*Math.PI)}function me(t,n,e){var r=Za.range(t,n-Fo,e).concat(n);return function(t){return r.map(function(n){return[t,n]})}}function ve(t,n,e){var r=Za.range(t,n-Fo,e).concat(n);return function(t){return r.map(function(n){return[n,t]})}}function be(t){return t.source}function _e(t){return t.target}function xe(t,n,e,r){var i=Math.cos(n),a=Math.sin(n),o=Math.cos(r),u=Math.sin(r),s=i*Math.cos(t),c=i*Math.sin(t),l=o*Math.cos(e),f=o*Math.sin(e),h=2*Math.asin(Math.sqrt(at(r-n)+i*o*at(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*s+n*l,i=e*c+n*f,o=e*a+n*u;return[Math.atan2(i,r)*Bo,Math.atan2(o,Math.sqrt(r*r+i*i))*Bo]}:function(){return[t*Bo,n*Bo]};return p.distance=h,p}function we(){function t(t,i){var a=Math.sin(i*=Lo),o=Math.cos(i),u=co((t*=Lo)-n),s=Math.cos(u);Uu+=Math.atan2(Math.sqrt((u=o*Math.sin(u))*u+(u=r*a-e*o*s)*u),e*a+r*o*s),n=t,e=a,r=o}var n,e,r;zu.point=function(i,a){n=i*Lo,e=Math.sin(a*=Lo),r=Math.cos(a),zu.point=t},zu.lineEnd=function(){zu.point=zu.lineEnd=b}}function ke(t,n){function e(n,e){var r=Math.cos(n),i=Math.cos(e),a=t(r*i);return[a*i*Math.sin(n),a*Math.sin(e)]}return e.invert=function(t,e){var r=Math.sqrt(t*t+e*e),i=n(r),a=Math.sin(i),o=Math.cos(i);return[Math.atan2(t*a,r*o),Math.asin(r&&e*a/r)]},e}function Ee(t,n){function e(t,n){o>0?-To+Fo>n&&(n=-To+Fo):n>To-Fo&&(n=To-Fo);var e=o/Math.pow(i(n),a);return[e*Math.sin(a*t),o-e*Math.cos(a*t)]}var r=Math.cos(t),i=function(t){return Math.tan(So/4+t/2)},a=t===n?Math.sin(t):Math.log(r/Math.cos(n))/Math.log(i(n)/i(t)),o=r*Math.pow(i(t),a)/a;return a?(e.invert=function(t,n){var e=o-n,r=J(a)*Math.sqrt(t*t+e*e);return[Math.atan2(t,e)/a,2*Math.atan(Math.pow(o/r,1/a))-To]},e):Ae}function Me(t,n){function e(t,n){var e=a-n;return[e*Math.sin(i*t),a-e*Math.cos(i*t)]}var r=Math.cos(t),i=t===n?Math.sin(t):(r-Math.cos(n))/(n-t),a=r/i+t;return co(i)<Fo?ce:(e.invert=function(t,n){var e=a-n;return[Math.atan2(t,e)/i,a-J(i)*Math.sqrt(t*t+e*e)]},e)}function Ae(t,n){return[t,Math.log(Math.tan(So/4+n/2))]}function De(t){var n,e=oe(t),r=e.scale,i=e.translate,a=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=i.apply(e,arguments);return t===e?n?e.clipExtent(null):e:t},e.clipExtent=function(t){var o=a.apply(e,arguments);if(o===e){if(n=null==t){var u=So*r(),s=i();a([[s[0]-u,s[1]-u],[s[0]+u,s[1]+u]])}}else n&&(o=null);return o},e.clipExtent(null)}function Se(t,n){return[Math.log(Math.tan(So/4+n/2)),-t]}function Ce(t){return t[0]}function Te(t){return t[1]}function Fe(t){for(var n=t.length,e=[0,1],r=2,i=2;n>i;i++){for(;r>1&&Q(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function Ne(t,n){return t[0]-n[0]||t[1]-n[1]}function Le(t,n,e){return(e[0]-n[0])*(t[1]-n[1])<(e[1]-n[1])*(t[0]-n[0])}function Be(t,n,e,r){var i=t[0],a=e[0],o=n[0]-i,u=r[0]-a,s=t[1],c=e[1],l=n[1]-s,f=r[1]-c,h=(u*(s-c)-f*(i-a))/(f*o-u*l);return[i+h*o,s+h*l]}function Oe(t){var n=t[0],e=t[t.length-1];return!(n[0]-e[0]||n[1]-e[1])}function Ie(){rr(this),this.edge=this.site=this.circle=null}function qe(t){var n=ts.pop()||new Ie;return n.site=t,n}function Re(t){We(t),Ku.remove(t),ts.push(t),rr(t)}function Pe(t){var n=t.circle,e=n.x,r=n.cy,i={x:e,y:r},a=t.P,o=t.N,u=[t];Re(t);for(var s=a;s.circle&&co(e-s.circle.x)<Fo&&co(r-s.circle.cy)<Fo;)a=s.P,u.unshift(s),Re(s),s=a;u.unshift(s),We(s);for(var c=o;c.circle&&co(e-c.circle.x)<Fo&&co(r-c.circle.cy)<Fo;)o=c.N,u.push(c),Re(c),c=o;u.push(c),We(c);var l,f=u.length;for(l=1;f>l;++l)c=u[l],s=u[l-1],tr(c.edge,s.site,c.site,i);s=u[0],c=u[f-1],c.edge=Je(s.site,c.site,null,i),$e(s),$e(c)}function je(t){for(var n,e,r,i,a=t.x,o=t.y,u=Ku._;u;)if(r=Ue(u,o)-a,r>Fo)u=u.L;else{if(i=a-ze(u,o),!(i>Fo)){r>-Fo?(n=u.P,e=u):i>-Fo?(n=u,e=u.N):n=e=u;break}if(!u.R){n=u;break}u=u.R}var s=qe(t);if(Ku.insert(n,s),n||e){if(n===e)return We(n),e=qe(n.site),Ku.insert(s,e),s.edge=e.edge=Je(n.site,s.site),$e(n),void $e(e);if(!e)return void(s.edge=Je(n.site,s.site));We(n),We(e);var c=n.site,l=c.x,f=c.y,h=t.x-l,d=t.y-f,p=e.site,g=p.x-l,y=p.y-f,m=2*(h*y-d*g),v=h*h+d*d,b=g*g+y*y,_={x:(y*v-d*b)/m+l,y:(h*b-g*v)/m+f};tr(e.edge,c,p,_),s.edge=Je(c,t,null,_),e.edge=Je(t,p,null,_),$e(n),$e(e)}}function Ue(t,n){var e=t.site,r=e.x,i=e.y,a=i-n;if(!a)return r;var o=t.P;if(!o)return-(1/0);e=o.site;var u=e.x,s=e.y,c=s-n;if(!c)return u;var l=u-r,f=1/a-1/c,h=l/c;return f?(-h+Math.sqrt(h*h-2*f*(l*l/(-2*c)-s+c/2+i-a/2)))/f+r:(r+u)/2}function ze(t,n){var e=t.N;if(e)return Ue(e,n);var r=t.site;return r.y===n?r.x:1/0}function Ye(t){this.site=t,this.edges=[]}function Ve(t){for(var n,e,r,i,a,o,u,s,c,l,f=t[0][0],h=t[1][0],d=t[0][1],p=t[1][1],g=Xu,y=g.length;y--;)if(a=g[y],a&&a.prepare())for(u=a.edges,s=u.length,o=0;s>o;)l=u[o].end(),r=l.x,i=l.y,c=u[++o%s].start(),n=c.x,e=c.y,(co(r-n)>Fo||co(i-e)>Fo)&&(u.splice(o,0,new nr(Qe(a.site,l,co(r-f)<Fo&&p-i>Fo?{x:f,y:co(n-f)<Fo?e:p}:co(i-p)<Fo&&h-r>Fo?{x:co(e-p)<Fo?n:h,y:p}:co(r-h)<Fo&&i-d>Fo?{x:h,y:co(n-h)<Fo?e:d}:co(i-d)<Fo&&r-f>Fo?{x:co(e-d)<Fo?n:f,y:d}:null),a.site,null)),++s)}function He(t,n){return n.angle-t.angle}function Ge(){rr(this),this.x=this.y=this.arc=this.site=this.cy=null}function $e(t){var n=t.P,e=t.N;if(n&&e){var r=n.site,i=t.site,a=e.site;if(r!==a){var o=i.x,u=i.y,s=r.x-o,c=r.y-u,l=a.x-o,f=a.y-u,h=2*(s*f-c*l);if(!(h>=-No)){var d=s*s+c*c,p=l*l+f*f,g=(f*d-c*p)/h,y=(s*p-l*d)/h,f=y+u,m=ns.pop()||new Ge;m.arc=t,m.site=i,m.x=g+o,m.y=f+Math.sqrt(g*g+y*y),m.cy=f,t.circle=m;for(var v=null,b=Qu._;b;)if(m.y<b.y||m.y===b.y&&m.x<=b.x){if(!b.L){v=b.P;break}b=b.L}else{if(!b.R){v=b;break}b=b.R}Qu.insert(v,m),v||(Ju=m)}}}}function We(t){var n=t.circle;n&&(n.P||(Ju=n.N),Qu.remove(n),ns.push(n),rr(n),t.circle=null)}function Ze(t){for(var n,e=Zu,r=zn(t[0][0],t[0][1],t[1][0],t[1][1]),i=e.length;i--;)n=e[i],(!Xe(n,t)||!r(n)||co(n.a.x-n.b.x)<Fo&&co(n.a.y-n.b.y)<Fo)&&(n.a=n.b=null,e.splice(i,1))}function Xe(t,n){var e=t.b;if(e)return!0;var r,i,a=t.a,o=n[0][0],u=n[1][0],s=n[0][1],c=n[1][1],l=t.l,f=t.r,h=l.x,d=l.y,p=f.x,g=f.y,y=(h+p)/2,m=(d+g)/2;if(g===d){if(o>y||y>=u)return;if(h>p){if(a){if(a.y>=c)return}else a={x:y,y:s};e={x:y,y:c}}else{if(a){if(a.y<s)return}else a={x:y,y:c};e={x:y,y:s}}}else if(r=(h-p)/(g-d),i=m-r*y,-1>r||r>1)if(h>p){if(a){if(a.y>=c)return}else a={x:(s-i)/r,y:s};e={x:(c-i)/r,y:c}}else{if(a){if(a.y<s)return}else a={x:(c-i)/r,y:c};e={x:(s-i)/r,y:s}}else if(g>d){if(a){if(a.x>=u)return}else a={x:o,y:r*o+i};e={x:u,y:r*u+i}}else{if(a){if(a.x<o)return}else a={x:u,y:r*u+i};e={x:o,y:r*o+i}}return t.a=a,t.b=e,!0}function Ke(t,n){this.l=t,this.r=n,this.a=this.b=null}function Je(t,n,e,r){var i=new Ke(t,n);return Zu.push(i),e&&tr(i,t,n,e),r&&tr(i,n,t,r),Xu[t.i].edges.push(new nr(i,t,n)),Xu[n.i].edges.push(new nr(i,n,t)),i}function Qe(t,n,e){var r=new Ke(t,null);return r.a=n,r.b=e,Zu.push(r),r}function tr(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 nr(t,n,e){var r=t.a,i=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(i.x-r.x,r.y-i.y):Math.atan2(r.x-i.x,i.y-r.y)}function er(){this._=null}function rr(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function ir(t,n){var e=n,r=n.R,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function ar(t,n){var e=n,r=n.L,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function or(t){for(;t.L;)t=t.L;return t}function ur(t,n){var e,r,i,a=t.sort(sr).pop();for(Zu=[],Xu=new Array(t.length),Ku=new er,Qu=new er;;)if(i=Ju,a&&(!i||a.y<i.y||a.y===i.y&&a.x<i.x))(a.x!==e||a.y!==r)&&(Xu[a.i]=new Ye(a),je(a),e=a.x,r=a.y),a=t.pop();else{if(!i)break;Pe(i.arc)}n&&(Ze(n),Ve(n));var o={cells:Xu,edges:Zu};return Ku=Qu=Zu=Xu=null,o}function sr(t,n){return n.y-t.y||n.x-t.x}function cr(t,n,e){return(t.x-e.x)*(n.y-t.y)-(t.x-n.x)*(e.y-t.y)}function lr(t){return t.x}function fr(t){return t.y}function hr(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function dr(t,n,e,r,i,a){if(!t(n,e,r,i,a)){var o=.5*(e+i),u=.5*(r+a),s=n.nodes;s[0]&&dr(t,s[0],e,r,o,u),s[1]&&dr(t,s[1],o,r,i,u),s[2]&&dr(t,s[2],e,u,o,a),s[3]&&dr(t,s[3],o,u,i,a)}}function pr(t,n){t=Za.rgb(t),n=Za.rgb(n);var e=t.r,r=t.g,i=t.b,a=n.r-e,o=n.g-r,u=n.b-i;return function(t){return"#"+_t(Math.round(e+a*t))+_t(Math.round(r+o*t))+_t(Math.round(i+u*t))}}function gr(t,n){var e,r={},i={};for(e in t)e in n?r[e]=vr(t[e],n[e]):i[e]=t[e];for(e in n)e in t||(i[e]=n[e]);return function(t){for(e in r)i[e]=r[e](t);return i}}function yr(t,n){return t=+t,n=+n,function(e){return t*(1-e)+n*e}}function mr(t,n){var e,r,i,a=rs.lastIndex=is.lastIndex=0,o=-1,u=[],s=[];for(t+="",n+="";(e=rs.exec(t))&&(r=is.exec(n));)(i=r.index)>a&&(i=n.slice(a,i),u[o]?u[o]+=i:u[++o]=i),(e=e[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,s.push({i:o,x:yr(e,r)})),a=is.lastIndex;return a<n.length&&(i=n.slice(a),u[o]?u[o]+=i:u[++o]=i),u.length<2?s[0]?(n=s[0].x,function(t){return n(t)+""}):function(){return n}:(n=s.length,function(t){for(var e,r=0;n>r;++r)u[(e=s[r]).i]=e.x(t);return u.join("")})}function vr(t,n){for(var e,r=Za.interpolators.length;--r>=0&&!(e=Za.interpolators[r](t,n)););return e}function br(t,n){var e,r=[],i=[],a=t.length,o=n.length,u=Math.min(t.length,n.length);for(e=0;u>e;++e)r.push(vr(t[e],n[e]));for(;a>e;++e)i[e]=t[e];for(;o>e;++e)i[e]=n[e];return function(t){for(e=0;u>e;++e)i[e]=r[e](t);return i}}function _r(t){return function(n){return 0>=n?0:n>=1?1:t(n)}}function xr(t){return function(n){return 1-t(1-n)}}function wr(t){return function(n){return.5*(.5>n?t(2*n):2-t(2-2*n))}}function kr(t){return t*t}function Er(t){return t*t*t}function Mr(t){if(0>=t)return 0;if(t>=1)return 1;var n=t*t,e=n*t;return 4*(.5>t?e:3*(t-n)+e-.75)}function Ar(t){return function(n){return Math.pow(n,t)}}function Dr(t){return 1-Math.cos(t*To)}function Sr(t){return Math.pow(2,10*(t-1))}function Cr(t){return 1-Math.sqrt(1-t*t)}function Tr(t,n){var e;return arguments.length<2&&(n=.45),arguments.length?e=n/Co*Math.asin(1/t):(t=1,e=n/4),function(r){return 1+t*Math.pow(2,-10*r)*Math.sin((r-e)*Co/n)}}function Fr(t){return t||(t=1.70158),function(n){return n*n*((t+1)*n-t)}}function Nr(t){return 1/2.75>t?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function Lr(t,n){t=Za.hcl(t),n=Za.hcl(n);var e=t.h,r=t.c,i=t.l,a=n.h-e,o=n.c-r,u=n.l-i;return isNaN(o)&&(o=0,r=isNaN(r)?n.c:r),isNaN(a)?(a=0,e=isNaN(e)?n.h:e):a>180?a-=360:-180>a&&(a+=360),function(t){return lt(e+a*t,r+o*t,i+u*t)+""}}function Br(t,n){t=Za.hsl(t),n=Za.hsl(n);var e=t.h,r=t.s,i=t.l,a=n.h-e,o=n.s-r,u=n.l-i;return isNaN(o)&&(o=0,r=isNaN(r)?n.s:r),isNaN(a)?(a=0,e=isNaN(e)?n.h:e):a>180?a-=360:-180>a&&(a+=360),function(t){return st(e+a*t,r+o*t,i+u*t)+""}}function Or(t,n){t=Za.lab(t),n=Za.lab(n);var e=t.l,r=t.a,i=t.b,a=n.l-e,o=n.a-r,u=n.b-i;return function(t){return ht(e+a*t,r+o*t,i+u*t)+""}}function Ir(t,n){return n-=t,function(e){return Math.round(t+n*e)}}function qr(t){var n=[t.a,t.b],e=[t.c,t.d],r=Pr(n),i=Rr(n,e),a=Pr(jr(e,n,-i))||0;n[0]*e[1]<e[0]*n[1]&&(n[0]*=-1,n[1]*=-1,r*=-1,i*=-1),this.rotate=(r?Math.atan2(n[1],n[0]):Math.atan2(-e[0],e[1]))*Bo,this.translate=[t.e,t.f],this.scale=[r,a],this.skew=a?Math.atan2(i,a)*Bo:0}function Rr(t,n){return t[0]*n[0]+t[1]*n[1]}function Pr(t){var n=Math.sqrt(Rr(t,t));return n&&(t[0]/=n,t[1]/=n),n}function jr(t,n,e){return t[0]+=e*n[0],t[1]+=e*n[1],t}function Ur(t,n){var e,r=[],i=[],a=Za.transform(t),o=Za.transform(n),u=a.translate,s=o.translate,c=a.rotate,l=o.rotate,f=a.skew,h=o.skew,d=a.scale,p=o.scale;return u[0]!=s[0]||u[1]!=s[1]?(r.push("translate(",null,",",null,")"),i.push({i:1,x:yr(u[0],s[0])},{i:3,x:yr(u[1],s[1])})):r.push(s[0]||s[1]?"translate("+s+")":""),c!=l?(c-l>180?l+=360:l-c>180&&(c+=360),i.push({i:r.push(r.pop()+"rotate(",null,")")-2,x:yr(c,l)})):l&&r.push(r.pop()+"rotate("+l+")"),f!=h?i.push({i:r.push(r.pop()+"skewX(",null,")")-2,x:yr(f,h)}):h&&r.push(r.pop()+"skewX("+h+")"),d[0]!=p[0]||d[1]!=p[1]?(e=r.push(r.pop()+"scale(",null,",",null,")"),i.push({i:e-4,x:yr(d[0],p[0])},{i:e-2,x:yr(d[1],p[1])})):(1!=p[0]||1!=p[1])&&r.push(r.pop()+"scale("+p+")"),e=i.length,function(t){for(var n,a=-1;++a<e;)r[(n=i[a]).i]=n.x(t);return r.join("")}}function zr(t,n){return n=(n-=t=+t)||1/n,function(e){return(e-t)/n}}function Yr(t,n){return n=(n-=t=+t)||1/n,function(e){return Math.max(0,Math.min(1,(e-t)/n))}}function Vr(t){for(var n=t.source,e=t.target,r=Gr(n,e),i=[n];n!==r;)n=n.parent,i.push(n);for(var a=i.length;e!==r;)i.splice(a,0,e),e=e.parent;return i}function Hr(t){for(var n=[],e=t.parent;null!=e;)n.push(t),t=e,e=e.parent;return n.push(t),n}function Gr(t,n){if(t===n)return t;for(var e=Hr(t),r=Hr(n),i=e.pop(),a=r.pop(),o=null;i===a;)o=i,i=e.pop(),a=r.pop();return o}function $r(t){t.fixed|=2}function Wr(t){t.fixed&=-7}function Zr(t){t.fixed|=4,t.px=t.x,t.py=t.y}function Xr(t){t.fixed&=-5}function Kr(t,n,e){var r=0,i=0;if(t.charge=0,!t.leaf)for(var a,o=t.nodes,u=o.length,s=-1;++s<u;)a=o[s],null!=a&&(Kr(a,n,e),t.charge+=a.charge,r+=a.charge*a.cx,i+=a.charge*a.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var c=n*e[t.point.index];t.charge+=t.pointCharge=c,r+=c*t.point.x,i+=c*t.point.y}t.cx=r/t.charge,t.cy=i/t.charge}function Jr(t,n){return Za.rebind(t,n,"sort","children","value"),t.nodes=t,t.links=ii,t}function Qr(t,n){for(var e=[t];null!=(t=e.pop());)if(n(t),(i=t.children)&&(r=i.length))for(var r,i;--r>=0;)e.push(i[r])}function ti(t,n){for(var e=[t],r=[];null!=(t=e.pop());)if(r.push(t),(a=t.children)&&(i=a.length))for(var i,a,o=-1;++o<i;)e.push(a[o]);for(;null!=(t=r.pop());)n(t)}function ni(t){return t.children}function ei(t){return t.value}function ri(t,n){return n.value-t.value}function ii(t){return Za.merge(t.map(function(t){return(t.children||[]).map(function(n){return{source:t,target:n}})}))}function ai(t){return t.x}function oi(t){return t.y}function ui(t,n,e){t.y0=n,t.y=e}function si(t){return Za.range(t.length)}function ci(t){for(var n=-1,e=t[0].length,r=[];++n<e;)r[n]=0;return r}function li(t){for(var n,e=1,r=0,i=t[0][1],a=t.length;a>e;++e)(n=t[e][1])>i&&(r=e,i=n);return r}function fi(t){return t.reduce(hi,0)}function hi(t,n){return t+n[1]}function di(t,n){return pi(t,Math.ceil(Math.log(n.length)/Math.LN2+1))}function pi(t,n){for(var e=-1,r=+t[0],i=(t[1]-r)/n,a=[];++e<=n;)a[e]=i*e+r;return a}function gi(t){return[Za.min(t),Za.max(t)]}function yi(t,n){return t.value-n.value}function mi(t,n){var e=t._pack_next;t._pack_next=n,n._pack_prev=t,n._pack_next=e,e._pack_prev=n}function vi(t,n){t._pack_next=n,n._pack_prev=t}function bi(t,n){var e=n.x-t.x,r=n.y-t.y,i=t.r+n.r;return.999*i*i>e*e+r*r}function _i(t){function n(t){l=Math.min(t.x-t.r,l),f=Math.max(t.x+t.r,f),h=Math.min(t.y-t.r,h),d=Math.max(t.y+t.r,d)}if((e=t.children)&&(c=e.length)){var e,r,i,a,o,u,s,c,l=1/0,f=-(1/0),h=1/0,d=-(1/0);if(e.forEach(xi),r=e[0],r.x=-r.r,r.y=0,n(r),c>1&&(i=e[1],i.x=i.r,i.y=0,n(i),c>2))for(a=e[2],Ei(r,i,a),n(a),mi(r,a),r._pack_prev=a,mi(a,i),i=r._pack_next,o=3;c>o;o++){Ei(r,i,a=e[o]);var p=0,g=1,y=1;for(u=i._pack_next;u!==i;u=u._pack_next,g++)if(bi(u,a)){p=1;break}if(1==p)for(s=r._pack_prev;s!==u._pack_prev&&!bi(s,a);s=s._pack_prev,y++);p?(y>g||g==y&&i.r<r.r?vi(r,i=u):vi(r=s,i),o--):(mi(r,a),i=a,n(a))}var m=(l+f)/2,v=(h+d)/2,b=0;for(o=0;c>o;o++)a=e[o],a.x-=m,a.y-=v,b=Math.max(b,a.r+Math.sqrt(a.x*a.x+a.y*a.y));t.r=b,e.forEach(wi)}}function xi(t){t._pack_next=t._pack_prev=t}function wi(t){delete t._pack_next,delete t._pack_prev}function ki(t,n,e,r){var i=t.children;if(t.x=n+=r*t.x,t.y=e+=r*t.y,t.r*=r,i)for(var a=-1,o=i.length;++a<o;)ki(i[a],n,e,r)}function Ei(t,n,e){var r=t.r+e.r,i=n.x-t.x,a=n.y-t.y;if(r&&(i||a)){var o=n.r+e.r,u=i*i+a*a;o*=o,r*=r;var s=.5+(r-o)/(2*u),c=Math.sqrt(Math.max(0,2*o*(r+u)-(r-=u)*r-o*o))/(2*u);e.x=t.x+s*i+c*a,e.y=t.y+s*a-c*i}else e.x=t.x+r,e.y=t.y}function Mi(t,n){return t.parent==n.parent?1:2}function Ai(t){var n=t.children;return n.length?n[0]:t.t}function Di(t){var n,e=t.children;return(n=e.length)?e[n-1]:t.t}function Si(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 Ci(t){for(var n,e=0,r=0,i=t.children,a=i.length;--a>=0;)n=i[a],n.z+=e,n.m+=e,e+=n.s+(r+=n.c)}function Ti(t,n,e){return t.a.parent===n.parent?t.a:e}function Fi(t){return 1+Za.max(t,function(t){return t.y})}function Ni(t){return t.reduce(function(t,n){return t+n.x},0)/t.length}function Li(t){var n=t.children;return n&&n.length?Li(n[0]):t}function Bi(t){var n,e=t.children;return e&&(n=e.length)?Bi(e[n-1]):t}function Oi(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function Ii(t,n){var e=t.x+n[3],r=t.y+n[0],i=t.dx-n[1]-n[3],a=t.dy-n[0]-n[2];return 0>i&&(e+=i/2,i=0),0>a&&(r+=a/2,a=0),{x:e,y:r,dx:i,dy:a}}function qi(t){var n=t[0],e=t[t.length-1];return e>n?[n,e]:[e,n]}function Ri(t){return t.rangeExtent?t.rangeExtent():qi(t.range())}function Pi(t,n,e,r){var i=e(t[0],t[1]),a=r(n[0],n[1]);return function(t){return a(i(t))}}function ji(t,n){var e,r=0,i=t.length-1,a=t[r],o=t[i];return a>o&&(e=r,r=i,i=e,e=a,a=o,o=e),t[r]=n.floor(a),t[i]=n.ceil(o),t}function Ui(t){return t?{floor:function(n){return Math.floor(n/t)*t},ceil:function(n){return Math.ceil(n/t)*t}}:gs}function zi(t,n,e,r){var i=[],a=[],o=0,u=Math.min(t.length,n.length)-1;for(t[u]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++o<=u;)i.push(e(t[o-1],t[o])),a.push(r(n[o-1],n[o]));return function(n){var e=Za.bisect(t,n,1,u)-1;return a[e](i[e](n))}}function Yi(t,n,e,r){function i(){var i=Math.min(t.length,n.length)>2?zi:Pi,s=r?Yr:zr;return o=i(t,n,s,e),u=i(n,t,s,vr),a}function a(t){return o(t)}var o,u;return a.invert=function(t){return u(t)},a.domain=function(n){return arguments.length?(t=n.map(Number),i()):t},a.range=function(t){return arguments.length?(n=t,i()):n},a.rangeRound=function(t){return a.range(t).interpolate(Ir)},a.clamp=function(t){return arguments.length?(r=t,i()):r},a.interpolate=function(t){return arguments.length?(e=t,i()):e},a.ticks=function(n){return $i(t,n)},a.tickFormat=function(n,e){return Wi(t,n,e)},a.nice=function(n){return Hi(t,n),i()},a.copy=function(){return Yi(t,n,e,r)},i()}function Vi(t,n){return Za.rebind(t,n,"range","rangeRound","interpolate","clamp")}function Hi(t,n){return ji(t,Ui(Gi(t,n)[2]))}function Gi(t,n){null==n&&(n=10);var e=qi(t),r=e[1]-e[0],i=Math.pow(10,Math.floor(Math.log(r/n)/Math.LN10)),a=n/r*i;return.15>=a?i*=10:.35>=a?i*=5:.75>=a&&(i*=2),e[0]=Math.ceil(e[0]/i)*i,e[1]=Math.floor(e[1]/i)*i+.5*i,e[2]=i,e}function $i(t,n){return Za.range.apply(Za,Gi(t,n))}function Wi(t,n,e){var r=Gi(t,n);if(e){var i=ru.exec(e);if(i.shift(),"s"===i[8]){var a=Za.formatPrefix(Math.max(co(r[0]),co(r[1])));return i[7]||(i[7]="."+Zi(a.scale(r[2]))),i[8]="f",e=Za.format(i.join("")),
  function(t){return e(a.scale(t))+a.symbol}}i[7]||(i[7]="."+Xi(i[8],r)),e=i.join("")}else e=",."+Zi(r[2])+"f";return Za.format(e)}function Zi(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function Xi(t,n){var e=Zi(n[2]);return t in ys?Math.abs(e-Zi(Math.max(co(n[0]),co(n[1]))))+ +("e"!==t):e-2*("%"===t)}function Ki(t,n,e,r){function i(t){return(e?Math.log(0>t?0:t):-Math.log(t>0?0:-t))/Math.log(n)}function a(t){return e?Math.pow(n,t):-Math.pow(n,-t)}function o(n){return t(i(n))}return o.invert=function(n){return a(t.invert(n))},o.domain=function(n){return arguments.length?(e=n[0]>=0,t.domain((r=n.map(Number)).map(i)),o):r},o.base=function(e){return arguments.length?(n=+e,t.domain(r.map(i)),o):n},o.nice=function(){var n=ji(r.map(i),e?Math:vs);return t.domain(n),r=n.map(a),o},o.ticks=function(){var t=qi(r),o=[],u=t[0],s=t[1],c=Math.floor(i(u)),l=Math.ceil(i(s)),f=n%1?2:n;if(isFinite(l-c)){if(e){for(;l>c;c++)for(var h=1;f>h;h++)o.push(a(c)*h);o.push(a(c))}else for(o.push(a(c));c++<l;)for(var h=f-1;h>0;h--)o.push(a(c)*h);for(c=0;o[c]<u;c++);for(l=o.length;o[l-1]>s;l--);o=o.slice(c,l)}return o},o.tickFormat=function(t,n){if(!arguments.length)return ms;arguments.length<2?n=ms:"function"!=typeof n&&(n=Za.format(n));var r,u=Math.max(.1,t/o.ticks().length),s=e?(r=1e-12,Math.ceil):(r=-1e-12,Math.floor);return function(t){return t/a(s(i(t)+r))<=u?n(t):""}},o.copy=function(){return Ki(t.copy(),n,e,r)},Vi(o,t)}function Ji(t,n,e){function r(n){return t(i(n))}var i=Qi(n),a=Qi(1/n);return r.invert=function(n){return a(t.invert(n))},r.domain=function(n){return arguments.length?(t.domain((e=n.map(Number)).map(i)),r):e},r.ticks=function(t){return $i(e,t)},r.tickFormat=function(t,n){return Wi(e,t,n)},r.nice=function(t){return r.domain(Hi(e,t))},r.exponent=function(o){return arguments.length?(i=Qi(n=o),a=Qi(1/n),t.domain(e.map(i)),r):n},r.copy=function(){return Ji(t.copy(),n,e)},Vi(r,t)}function Qi(t){return function(n){return 0>n?-Math.pow(-n,t):Math.pow(n,t)}}function ta(t,n){function e(e){return a[((i.get(e)||("range"===n.t?i.set(e,t.push(e)):0/0))-1)%a.length]}function r(n,e){return Za.range(t.length).map(function(t){return n+e*t})}var i,a,o;return e.domain=function(r){if(!arguments.length)return t;t=[],i=new s;for(var a,o=-1,u=r.length;++o<u;)i.has(a=r[o])||i.set(a,t.push(a));return e[n.t].apply(e,n.a)},e.range=function(t){return arguments.length?(a=t,o=0,n={t:"range",a:arguments},e):a},e.rangePoints=function(i,u){arguments.length<2&&(u=0);var s=i[0],c=i[1],l=(c-s)/(Math.max(1,t.length-1)+u);return a=r(t.length<2?(s+c)/2:s+l*u/2,l),o=0,n={t:"rangePoints",a:arguments},e},e.rangeBands=function(i,u,s){arguments.length<2&&(u=0),arguments.length<3&&(s=u);var c=i[1]<i[0],l=i[c-0],f=i[1-c],h=(f-l)/(t.length-u+2*s);return a=r(l+h*s,h),c&&a.reverse(),o=h*(1-u),n={t:"rangeBands",a:arguments},e},e.rangeRoundBands=function(i,u,s){arguments.length<2&&(u=0),arguments.length<3&&(s=u);var c=i[1]<i[0],l=i[c-0],f=i[1-c],h=Math.floor((f-l)/(t.length-u+2*s)),d=f-l-(t.length-u)*h;return a=r(l+Math.round(d/2),h),c&&a.reverse(),o=Math.round(h*(1-u)),n={t:"rangeRoundBands",a:arguments},e},e.rangeBand=function(){return o},e.rangeExtent=function(){return qi(n.a[0])},e.copy=function(){return ta(t,n)},e.domain(t)}function na(n,i){function a(){var t=0,e=i.length;for(u=[];++t<e;)u[t-1]=Za.quantile(n,t/e);return o}function o(t){return isNaN(t=+t)?void 0:i[Za.bisect(u,t)]}var u;return o.domain=function(i){return arguments.length?(n=i.map(e).filter(r).sort(t),a()):n},o.range=function(t){return arguments.length?(i=t,a()):i},o.quantiles=function(){return u},o.invertExtent=function(t){return t=i.indexOf(t),0>t?[0/0,0/0]:[t>0?u[t-1]:n[0],t<u.length?u[t]:n[n.length-1]]},o.copy=function(){return na(n,i)},a()}function ea(t,n,e){function r(n){return e[Math.max(0,Math.min(o,Math.floor(a*(n-t))))]}function i(){return a=e.length/(n-t),o=e.length-1,r}var a,o;return r.domain=function(e){return arguments.length?(t=+e[0],n=+e[e.length-1],i()):[t,n]},r.range=function(t){return arguments.length?(e=t,i()):e},r.invertExtent=function(n){return n=e.indexOf(n),n=0>n?0/0:n/a+t,[n,n+1/a]},r.copy=function(){return ea(t,n,e)},i()}function ra(t,n){function e(e){return e>=e?n[Za.bisect(t,e)]:void 0}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 ra(t,n)},e}function ia(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 $i(t,n)},n.tickFormat=function(n,e){return Wi(t,n,e)},n.copy=function(){return ia(t)},n}function aa(t){return t.innerRadius}function oa(t){return t.outerRadius}function ua(t){return t.startAngle}function sa(t){return t.endAngle}function ca(t){function n(n){function o(){c.push("M",a(t(l),u))}for(var s,c=[],l=[],f=-1,h=n.length,d=At(e),p=At(r);++f<h;)i.call(this,s=n[f],f)?l.push([+d.call(this,s,f),+p.call(this,s,f)]):l.length&&(o(),l=[]);return l.length&&o(),c.length?c.join(""):null}var e=Ce,r=Te,i=Cn,a=la,o=a.key,u=.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?(i=t,n):i},n.interpolate=function(t){return arguments.length?(o="function"==typeof t?a=t:(a=Ms.get(t)||la).key,n):o},n.tension=function(t){return arguments.length?(u=t,n):u},n}function la(t){return t.join("L")}function fa(t){return la(t)+"Z"}function ha(t){for(var n=0,e=t.length,r=t[0],i=[r[0],",",r[1]];++n<e;)i.push("H",(r[0]+(r=t[n])[0])/2,"V",r[1]);return e>1&&i.push("H",r[0]),i.join("")}function da(t){for(var n=0,e=t.length,r=t[0],i=[r[0],",",r[1]];++n<e;)i.push("V",(r=t[n])[1],"H",r[0]);return i.join("")}function pa(t){for(var n=0,e=t.length,r=t[0],i=[r[0],",",r[1]];++n<e;)i.push("H",(r=t[n])[0],"V",r[1]);return i.join("")}function ga(t,n){return t.length<4?la(t):t[1]+va(t.slice(1,t.length-1),ba(t,n))}function ya(t,n){return t.length<3?la(t):t[0]+va((t.push(t[0]),t),ba([t[t.length-2]].concat(t,[t[1]]),n))}function ma(t,n){return t.length<3?la(t):t[0]+va(t,ba(t,n))}function va(t,n){if(n.length<1||t.length!=n.length&&t.length!=n.length+2)return la(t);var e=t.length!=n.length,r="",i=t[0],a=t[1],o=n[0],u=o,s=1;if(e&&(r+="Q"+(a[0]-2*o[0]/3)+","+(a[1]-2*o[1]/3)+","+a[0]+","+a[1],i=t[1],s=2),n.length>1){u=n[1],a=t[s],s++,r+="C"+(i[0]+o[0])+","+(i[1]+o[1])+","+(a[0]-u[0])+","+(a[1]-u[1])+","+a[0]+","+a[1];for(var c=2;c<n.length;c++,s++)a=t[s],u=n[c],r+="S"+(a[0]-u[0])+","+(a[1]-u[1])+","+a[0]+","+a[1]}if(e){var l=t[s];r+="Q"+(a[0]+2*u[0]/3)+","+(a[1]+2*u[1]/3)+","+l[0]+","+l[1]}return r}function ba(t,n){for(var e,r=[],i=(1-n)/2,a=t[0],o=t[1],u=1,s=t.length;++u<s;)e=a,a=o,o=t[u],r.push([i*(o[0]-e[0]),i*(o[1]-e[1])]);return r}function _a(t){if(t.length<3)return la(t);var n=1,e=t.length,r=t[0],i=r[0],a=r[1],o=[i,i,i,(r=t[1])[0]],u=[a,a,a,r[1]],s=[i,",",a,"L",Ea(Ss,o),",",Ea(Ss,u)];for(t.push(t[e-1]);++n<=e;)r=t[n],o.shift(),o.push(r[0]),u.shift(),u.push(r[1]),Ma(s,o,u);return t.pop(),s.push("L",r),s.join("")}function xa(t){if(t.length<4)return la(t);for(var n,e=[],r=-1,i=t.length,a=[0],o=[0];++r<3;)n=t[r],a.push(n[0]),o.push(n[1]);for(e.push(Ea(Ss,a)+","+Ea(Ss,o)),--r;++r<i;)n=t[r],a.shift(),a.push(n[0]),o.shift(),o.push(n[1]),Ma(e,a,o);return e.join("")}function wa(t){for(var n,e,r=-1,i=t.length,a=i+4,o=[],u=[];++r<4;)e=t[r%i],o.push(e[0]),u.push(e[1]);for(n=[Ea(Ss,o),",",Ea(Ss,u)],--r;++r<a;)e=t[r%i],o.shift(),o.push(e[0]),u.shift(),u.push(e[1]),Ma(n,o,u);return n.join("")}function ka(t,n){var e=t.length-1;if(e)for(var r,i,a=t[0][0],o=t[0][1],u=t[e][0]-a,s=t[e][1]-o,c=-1;++c<=e;)r=t[c],i=c/e,r[0]=n*r[0]+(1-n)*(a+i*u),r[1]=n*r[1]+(1-n)*(o+i*s);return _a(t)}function Ea(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}function Ma(t,n,e){t.push("C",Ea(As,n),",",Ea(As,e),",",Ea(Ds,n),",",Ea(Ds,e),",",Ea(Ss,n),",",Ea(Ss,e))}function Aa(t,n){return(n[1]-t[1])/(n[0]-t[0])}function Da(t){for(var n=0,e=t.length-1,r=[],i=t[0],a=t[1],o=r[0]=Aa(i,a);++n<e;)r[n]=(o+(o=Aa(i=a,a=t[n+1])))/2;return r[n]=o,r}function Sa(t){for(var n,e,r,i,a=[],o=Da(t),u=-1,s=t.length-1;++u<s;)n=Aa(t[u],t[u+1]),co(n)<Fo?o[u]=o[u+1]=0:(e=o[u]/n,r=o[u+1]/n,i=e*e+r*r,i>9&&(i=3*n/Math.sqrt(i),o[u]=i*e,o[u+1]=i*r));for(u=-1;++u<=s;)i=(t[Math.min(s,u+1)][0]-t[Math.max(0,u-1)][0])/(6*(1+o[u]*o[u])),a.push([i||0,o[u]*i||0]);return a}function Ca(t){return t.length<3?la(t):t[0]+va(t,Sa(t))}function Ta(t){for(var n,e,r,i=-1,a=t.length;++i<a;)n=t[i],e=n[0],r=n[1]+ks,n[0]=e*Math.cos(r),n[1]=e*Math.sin(r);return t}function Fa(t){function n(n){function s(){g.push("M",u(t(m),f),l,c(t(y.reverse()),f),"Z")}for(var h,d,p,g=[],y=[],m=[],v=-1,b=n.length,_=At(e),x=At(i),w=e===r?function(){return d}:At(r),k=i===a?function(){return p}:At(a);++v<b;)o.call(this,h=n[v],v)?(y.push([d=+_.call(this,h,v),p=+x.call(this,h,v)]),m.push([+w.call(this,h,v),+k.call(this,h,v)])):y.length&&(s(),y=[],m=[]);return y.length&&s(),g.length?g.join(""):null}var e=Ce,r=Ce,i=0,a=Te,o=Cn,u=la,s=u.key,c=u,l="L",f=.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?(i=a=t,n):a},n.y0=function(t){return arguments.length?(i=t,n):i},n.y1=function(t){return arguments.length?(a=t,n):a},n.defined=function(t){return arguments.length?(o=t,n):o},n.interpolate=function(t){return arguments.length?(s="function"==typeof t?u=t:(u=Ms.get(t)||la).key,c=u.reverse||u,l=u.closed?"M":"L",n):s},n.tension=function(t){return arguments.length?(f=t,n):f},n}function Na(t){return t.radius}function La(t){return[t.x,t.y]}function Ba(t){return function(){var n=t.apply(this,arguments),e=n[0],r=n[1]+ks;return[e*Math.cos(r),e*Math.sin(r)]}}function Oa(){return 64}function Ia(){return"circle"}function qa(t){var n=Math.sqrt(t/So);return"M0,"+n+"A"+n+","+n+" 0 1,1 0,"+-n+"A"+n+","+n+" 0 1,1 0,"+n+"Z"}function Ra(t,n){return go(t,Bs),t.id=n,t}function Pa(t,n,e,r){var i=t.id;return j(t,"function"==typeof e?function(t,a,o){t.__transition__[i].tween.set(n,r(e.call(t,t.__data__,a,o)))}:(e=r(e),function(t){t.__transition__[i].tween.set(n,e)}))}function ja(t){return null==t&&(t=""),function(){this.textContent=t}}function Ua(t,n,e,r){var i=t.__transition__||(t.__transition__={active:0,count:0}),a=i[e];if(!a){var o=r.time;a=i[e]={tween:new s,time:o,ease:r.ease,delay:r.delay,duration:r.duration},++i.count,Za.timer(function(r){function u(r){return i.active>e?c():(i.active=e,a.event&&a.event.start.call(t,l,n),a.tween.forEach(function(e,r){(r=r.call(t,l,n))&&g.push(r)}),void Za.timer(function(){return p.c=s(r||1)?Cn:s,1},0,o))}function s(r){if(i.active!==e)return c();for(var o=r/d,u=f(o),s=g.length;s>0;)g[--s].call(t,u);return o>=1?(a.event&&a.event.end.call(t,l,n),c()):void 0}function c(){return--i.count?delete i[e]:delete t.__transition__,1}var l=t.__data__,f=a.ease,h=a.delay,d=a.duration,p=tu,g=[];return p.t=h+o,r>=h?u(r-h):void(p.c=u)},0,o)}}function za(t,n,e){t.attr("transform",function(t){var r=n(t);return"translate("+(isFinite(r)?r:e(t))+",0)"})}function Ya(t,n,e){t.attr("transform",function(t){var r=n(t);return"translate(0,"+(isFinite(r)?r:e(t))+")"})}function Va(t){return t.toISOString()}function Ha(t,n,e){function r(n){return t(n)}function i(t,e){var r=t[1]-t[0],i=r/e,a=Za.bisect(Ys,i);return a==Ys.length?[n.year,Gi(t.map(function(t){return t/31536e6}),e)[2]]:a?n[i/Ys[a-1]<Ys[a]/i?a-1:a]:[Gs,Gi(t,e)[2]]}return r.invert=function(n){return Ga(t.invert(n))},r.domain=function(n){return arguments.length?(t.domain(n),r):t.domain().map(Ga)},r.nice=function(t,n){function e(e){return!isNaN(e)&&!t.range(e,Ga(+e+1),n).length}var a=r.domain(),o=qi(a),u=null==t?i(o,10):"number"==typeof t&&i(o,t);return u&&(t=u[0],n=u[1]),r.domain(ji(a,n>1?{floor:function(n){for(;e(n=t.floor(n));)n=Ga(n-1);return n},ceil:function(n){for(;e(n=t.ceil(n));)n=Ga(+n+1);return n}}:t))},r.ticks=function(t,n){var e=qi(r.domain()),a=null==t?i(e,10):"number"==typeof t?i(e,t):!t.range&&[{range:t},n];return a&&(t=a[0],n=a[1]),t.range(e[0],Ga(+e[1]+1),1>n?1:n)},r.tickFormat=function(){return e},r.copy=function(){return Ha(t.copy(),n,e)},Vi(r,t)}function Ga(t){return new Date(t)}function $a(t){return JSON.parse(t.responseText)}function Wa(t){var n=Ja.createRange();return n.selectNode(Ja.body),n.createContextualFragment(t.responseText)}var Za={version:"3.4.13"};Date.now||(Date.now=function(){return+new Date});var Xa=[].slice,Ka=function(t){return Xa.call(t)},Ja=document,Qa=Ja.documentElement,to=window;try{Ka(Qa.childNodes)[0].nodeType}catch(no){Ka=function(t){for(var n=t.length,e=new Array(n);n--;)e[n]=t[n];return e}}try{Ja.createElement("div").style.setProperty("opacity",0,"")}catch(eo){var ro=to.Element.prototype,io=ro.setAttribute,ao=ro.setAttributeNS,oo=to.CSSStyleDeclaration.prototype,uo=oo.setProperty;ro.setAttribute=function(t,n){io.call(this,t,n+"")},ro.setAttributeNS=function(t,n,e){ao.call(this,t,n,e+"")},oo.setProperty=function(t,n,e){uo.call(this,t,n+"",e)}}Za.ascending=t,Za.descending=function(t,n){return t>n?-1:n>t?1:n>=t?0:0/0},Za.min=function(t,n){var e,r,i=-1,a=t.length;if(1===arguments.length){for(;++i<a&&!(null!=(e=t[i])&&e>=e);)e=void 0;for(;++i<a;)null!=(r=t[i])&&e>r&&(e=r)}else{for(;++i<a&&!(null!=(e=n.call(t,t[i],i))&&e>=e);)e=void 0;for(;++i<a;)null!=(r=n.call(t,t[i],i))&&e>r&&(e=r)}return e},Za.max=function(t,n){var e,r,i=-1,a=t.length;if(1===arguments.length){for(;++i<a&&!(null!=(e=t[i])&&e>=e);)e=void 0;for(;++i<a;)null!=(r=t[i])&&r>e&&(e=r)}else{for(;++i<a&&!(null!=(e=n.call(t,t[i],i))&&e>=e);)e=void 0;for(;++i<a;)null!=(r=n.call(t,t[i],i))&&r>e&&(e=r)}return e},Za.extent=function(t,n){var e,r,i,a=-1,o=t.length;if(1===arguments.length){for(;++a<o&&!(null!=(e=i=t[a])&&e>=e);)e=i=void 0;for(;++a<o;)null!=(r=t[a])&&(e>r&&(e=r),r>i&&(i=r))}else{for(;++a<o&&!(null!=(e=i=n.call(t,t[a],a))&&e>=e);)e=void 0;for(;++a<o;)null!=(r=n.call(t,t[a],a))&&(e>r&&(e=r),r>i&&(i=r))}return[e,i]},Za.sum=function(t,n){var e,i=0,a=t.length,o=-1;if(1===arguments.length)for(;++o<a;)r(e=+t[o])&&(i+=e);else for(;++o<a;)r(e=+n.call(t,t[o],o))&&(i+=e);return i},Za.mean=function(t,n){var i,a=0,o=t.length,u=-1,s=o;if(1===arguments.length)for(;++u<o;)r(i=e(t[u]))?a+=i:--s;else for(;++u<o;)r(i=e(n.call(t,t[u],u)))?a+=i:--s;return s?a/s:void 0},Za.quantile=function(t,n){var e=(t.length-1)*n+1,r=Math.floor(e),i=+t[r-1],a=e-r;return a?i+a*(t[r]-i):i},Za.median=function(n,i){var a,o=[],u=n.length,s=-1;if(1===arguments.length)for(;++s<u;)r(a=e(n[s]))&&o.push(a);else for(;++s<u;)r(a=e(i.call(n,n[s],s)))&&o.push(a);return o.length?Za.quantile(o.sort(t),.5):void 0};var so=i(t);Za.bisectLeft=so.left,Za.bisect=Za.bisectRight=so.right,Za.bisector=function(n){return i(1===n.length?function(e,r){return t(n(e),r)}:n)},Za.shuffle=function(t){for(var n,e,r=t.length;r;)e=Math.random()*r--|0,n=t[r],t[r]=t[e],t[e]=n;return t},Za.permute=function(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r},Za.pairs=function(t){for(var n,e=0,r=t.length-1,i=t[0],a=new Array(0>r?0:r);r>e;)a[e]=[n=i,i=t[++e]];return a},Za.zip=function(){if(!(r=arguments.length))return[];for(var t=-1,n=Za.min(arguments,a),e=new Array(n);++t<n;)for(var r,i=-1,o=e[t]=new Array(r);++i<r;)o[i]=arguments[i][t];return e},Za.transpose=function(t){return Za.zip.apply(Za,t)},Za.keys=function(t){var n=[];for(var e in t)n.push(e);return n},Za.values=function(t){var n=[];for(var e in t)n.push(t[e]);return n},Za.entries=function(t){var n=[];for(var e in t)n.push({key:e,value:t[e]});return n},Za.merge=function(t){for(var n,e,r,i=t.length,a=-1,o=0;++a<i;)o+=t[a].length;for(e=new Array(o);--i>=0;)for(r=t[i],n=r.length;--n>=0;)e[--o]=r[n];return e};var co=Math.abs;Za.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,i=[],a=o(co(e)),u=-1;if(t*=a,n*=a,e*=a,0>e)for(;(r=t+e*++u)>n;)i.push(r/a);else for(;(r=t+e*++u)<n;)i.push(r/a);return i},Za.map=function(t){var n=new s;if(t instanceof s)t.forEach(function(t,e){n.set(t,e)});else for(var e in t)n.set(e,t[e]);return n};var lo="__proto__",fo="\x00";u(s,{has:f,get:function(t){return this._[c(t)]},set:function(t,n){return this._[c(t)]=n},remove:h,keys:d,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:l(n),value:this._[n]});return t},size:p,empty:g,forEach:function(t){for(var n in this._)t.call(this,l(n),this._[n])}}),Za.nest=function(){function t(n,o,u){if(u>=a.length)return r?r.call(i,o):e?o.sort(e):o;for(var c,l,f,h,d=-1,p=o.length,g=a[u++],y=new s;++d<p;)(h=y.get(c=g(l=o[d])))?h.push(l):y.set(c,[l]);return n?(l=n(),f=function(e,r){l.set(e,t(n,r,u))}):(l={},f=function(e,r){l[e]=t(n,r,u)}),y.forEach(f),l}function n(t,e){if(e>=a.length)return t;var r=[],i=o[e++];return t.forEach(function(t,i){r.push({key:t,values:n(i,e)})}),i?r.sort(function(t,n){return i(t.key,n.key)}):r}var e,r,i={},a=[],o=[];return i.map=function(n,e){return t(e,n,0)},i.entries=function(e){return n(t(Za.map,e,0),0)},i.key=function(t){return a.push(t),i},i.sortKeys=function(t){return o[a.length-1]=t,i},i.sortValues=function(t){return e=t,i},i.rollup=function(t){return r=t,i},i},Za.set=function(t){var n=new y;if(t)for(var e=0,r=t.length;r>e;++e)n.add(t[e]);return n},u(y,{has:f,add:function(t){return this._[c(t+="")]=!0,t},remove:h,values:d,size:p,empty:g,forEach:function(t){for(var n in this._)t.call(this,l(n))}}),Za.behavior={},Za.rebind=function(t,n){for(var e,r=1,i=arguments.length;++r<i;)t[e=arguments[r]]=m(t,n,n[e]);return t};var ho=["webkit","ms","moz","Moz","o","O"];Za.dispatch=function(){for(var t=new _,n=-1,e=arguments.length;++n<e;)t[arguments[n]]=x(t);return t},_.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}},Za.event=null,Za.requote=function(t){return t.replace(po,"\\$&")};var po=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,go={}.__proto__?function(t,n){t.__proto__=n}:function(t,n){for(var e in n)t[e]=n[e]},yo=function(t,n){return n.querySelector(t)},mo=function(t,n){return n.querySelectorAll(t)},vo=Qa.matches||Qa[v(Qa,"matchesSelector")],bo=function(t,n){return vo.call(t,n)};"function"==typeof Sizzle&&(yo=function(t,n){return Sizzle(t,n)[0]||null},mo=Sizzle,bo=Sizzle.matchesSelector),Za.selection=function(){return ko};var _o=Za.selection.prototype=[];_o.select=function(t){var n,e,r,i,a=[];t=A(t);for(var o=-1,u=this.length;++o<u;){a.push(n=[]),n.parentNode=(r=this[o]).parentNode;for(var s=-1,c=r.length;++s<c;)(i=r[s])?(n.push(e=t.call(i,i.__data__,s,o)),e&&"__data__"in i&&(e.__data__=i.__data__)):n.push(null)}return M(a)},_o.selectAll=function(t){var n,e,r=[];t=D(t);for(var i=-1,a=this.length;++i<a;)for(var o=this[i],u=-1,s=o.length;++u<s;)(e=o[u])&&(r.push(n=Ka(t.call(e,e.__data__,u,i))),n.parentNode=e);return M(r)};var xo={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};Za.ns={prefix:xo,qualify:function(t){var n=t.indexOf(":"),e=t;return n>=0&&(e=t.slice(0,n),t=t.slice(n+1)),xo.hasOwnProperty(e)?{space:xo[e],local:t}:t}},_o.attr=function(t,n){if(arguments.length<2){if("string"==typeof t){var e=this.node();return t=Za.ns.qualify(t),t.local?e.getAttributeNS(t.space,t.local):e.getAttribute(t)}for(n in t)this.each(S(n,t[n]));return this}return this.each(S(t,n))},_o.classed=function(t,n){if(arguments.length<2){if("string"==typeof t){var e=this.node(),r=(t=F(t)).length,i=-1;if(n=e.classList){for(;++i<r;)if(!n.contains(t[i]))return!1}else for(n=e.getAttribute("class");++i<r;)if(!T(t[i]).test(n))return!1;return!0}for(n in t)this.each(N(n,t[n]));return this}return this.each(N(t,n))},_o.style=function(t,n,e){var r=arguments.length;if(3>r){if("string"!=typeof t){2>r&&(n="");for(e in t)this.each(B(e,t[e],n));return this}if(2>r)return to.getComputedStyle(this.node(),null).getPropertyValue(t);e=""}return this.each(B(t,n,e))},_o.property=function(t,n){if(arguments.length<2){if("string"==typeof t)return this.node()[t];for(n in t)this.each(O(n,t[n]));return this}return this.each(O(t,n))},_o.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},_o.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},_o.append=function(t){return t=I(t),this.select(function(){return this.appendChild(t.apply(this,arguments))})},_o.insert=function(t,n){return t=I(t),n=A(n),this.select(function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)})},_o.remove=function(){return this.each(function(){var t=this.parentNode;t&&t.removeChild(this)})},_o.data=function(t,n){function e(t,e){var r,i,a,o=t.length,f=e.length,h=Math.min(o,f),d=new Array(f),p=new Array(f),g=new Array(o);if(n){var y,m=new s,v=new Array(o);for(r=-1;++r<o;)m.has(y=n.call(i=t[r],i.__data__,r))?g[r]=i:m.set(y,i),v[r]=y;for(r=-1;++r<f;)(i=m.get(y=n.call(e,a=e[r],r)))?i!==!0&&(d[r]=i,i.__data__=a):p[r]=q(a),m.set(y,!0);for(r=-1;++r<o;)m.get(v[r])!==!0&&(g[r]=t[r])}else{for(r=-1;++r<h;)i=t[r],a=e[r],i?(i.__data__=a,d[r]=i):p[r]=q(a);for(;f>r;++r)p[r]=q(e[r]);for(;o>r;++r)g[r]=t[r]}p.update=d,p.parentNode=d.parentNode=g.parentNode=t.parentNode,u.push(p),c.push(d),l.push(g)}var r,i,a=-1,o=this.length;if(!arguments.length){for(t=new Array(o=(r=this[0]).length);++a<o;)(i=r[a])&&(t[a]=i.__data__);return t}var u=U([]),c=M([]),l=M([]);if("function"==typeof t)for(;++a<o;)e(r=this[a],t.call(r,r.parentNode.__data__,a));else for(;++a<o;)e(r=this[a],t);return c.enter=function(){return u},c.exit=function(){return l},c},_o.datum=function(t){return arguments.length?this.property("__data__",t):this.property("__data__")},_o.filter=function(t){var n,e,r,i=[];"function"!=typeof t&&(t=R(t));for(var a=0,o=this.length;o>a;a++){i.push(n=[]),n.parentNode=(e=this[a]).parentNode;for(var u=0,s=e.length;s>u;u++)(r=e[u])&&t.call(r,r.__data__,u,a)&&n.push(r)}return M(i)},_o.order=function(){for(var t=-1,n=this.length;++t<n;)for(var e,r=this[t],i=r.length-1,a=r[i];--i>=0;)(e=r[i])&&(a&&a!==e.nextSibling&&a.parentNode.insertBefore(e,a),a=e);return this},_o.sort=function(t){t=P.apply(this,arguments);for(var n=-1,e=this.length;++n<e;)this[n].sort(t);return this.order()},_o.each=function(t){return j(this,function(n,e,r){t.call(n,n.__data__,e,r)})},_o.call=function(t){var n=Ka(arguments);return t.apply(n[0]=this,n),this},_o.empty=function(){return!this.node()},_o.node=function(){for(var t=0,n=this.length;n>t;t++)for(var e=this[t],r=0,i=e.length;i>r;r++){var a=e[r];if(a)return a}return null},_o.size=function(){var t=0;return j(this,function(){++t}),t};var wo=[];Za.selection.enter=U,Za.selection.enter.prototype=wo,wo.append=_o.append,wo.empty=_o.empty,wo.node=_o.node,wo.call=_o.call,wo.size=_o.size,wo.select=function(t){for(var n,e,r,i,a,o=[],u=-1,s=this.length;++u<s;){r=(i=this[u]).update,o.push(n=[]),n.parentNode=i.parentNode;for(var c=-1,l=i.length;++c<l;)(a=i[c])?(n.push(r[c]=e=t.call(i.parentNode,a.__data__,c,u)),e.__data__=a.__data__):n.push(null)}return M(o)},wo.insert=function(t,n){return arguments.length<2&&(n=z(this)),_o.insert.call(this,t,n)},_o.transition=function(){for(var t,n,e=Ts||++Os,r=[],i=Fs||{time:Date.now(),ease:Mr,delay:0,duration:250},a=-1,o=this.length;++a<o;){r.push(t=[]);for(var u=this[a],s=-1,c=u.length;++s<c;)(n=u[s])&&Ua(n,s,e,i),t.push(n)}return Ra(r,e)},_o.interrupt=function(){return this.each(Y)},Za.select=function(t){var n=["string"==typeof t?yo(t,Ja):t];return n.parentNode=Qa,M([n])},Za.selectAll=function(t){var n=Ka("string"==typeof t?mo(t,Ja):t);return n.parentNode=Qa,M([n])};var ko=Za.select(Qa);_o.on=function(t,n,e){var r=arguments.length;if(3>r){if("string"!=typeof t){2>r&&(n=!1);for(e in t)this.each(V(e,t[e],n));return this}if(2>r)return(r=this.node()["__on"+t])&&r._;e=!1}return this.each(V(t,n,e))};var Eo=Za.map({mouseenter:"mouseover",mouseleave:"mouseout"});Eo.forEach(function(t){"on"+t in Ja&&Eo.remove(t)});var Mo="onselectstart"in Ja?null:v(Qa.style,"userSelect"),Ao=0;Za.mouse=function(t){return W(t,k())};var Do=/WebKit/.test(to.navigator.userAgent)?-1:0;Za.touch=function(t,n,e){if(arguments.length<3&&(e=n,n=k().changedTouches),n)for(var r,i=0,a=n.length;a>i;++i)if((r=n[i]).identifier===e)return W(t,r)},Za.behavior.drag=function(){function t(){this.on("mousedown.drag",i).on("touchstart.drag",a)}function n(t,n,i,a,o){return function(){function u(){var t,e,r=n(h,g);r&&(t=r[0]-b[0],e=r[1]-b[1],p|=t|e,b=r,d({type:"drag",x:r[0]+c[0],y:r[1]+c[1],dx:t,dy:e}))}function s(){n(h,g)&&(m.on(a+y,null).on(o+y,null),v(p&&Za.event.target===f),d({type:"dragend"}))}var c,l=this,f=Za.event.target,h=l.parentNode,d=e.of(l,arguments),p=0,g=t(),y=".drag"+(null==g?"":"-"+g),m=Za.select(i()).on(a+y,u).on(o+y,s),v=$(),b=n(h,g);r?(c=r.apply(l,arguments),c=[c.x-b[0],c.y-b[1]]):c=[0,0],d({type:"dragstart"})}}var e=E(t,"drag","dragstart","dragend"),r=null,i=n(b,Za.mouse,K,"mousemove","mouseup"),a=n(Z,Za.touch,X,"touchmove","touchend");return t.origin=function(n){return arguments.length?(r=n,t):r},Za.rebind(t,e,"on")},Za.touches=function(t,n){return arguments.length<2&&(n=k().touches),n?Ka(n).map(function(n){var e=W(t,n);return e.identifier=n.identifier,e}):[]};var So=Math.PI,Co=2*So,To=So/2,Fo=1e-6,No=Fo*Fo,Lo=So/180,Bo=180/So,Oo=Math.SQRT2,Io=2,qo=4;Za.interpolateZoom=function(t,n){function e(t){var n=t*v;if(m){var e=rt(g),o=a/(Io*h)*(e*it(Oo*n+g)-et(g));return[r+o*c,i+o*l,a*e/rt(Oo*n+g)]}return[r+t*c,i+t*l,a*Math.exp(Oo*n)]}var r=t[0],i=t[1],a=t[2],o=n[0],u=n[1],s=n[2],c=o-r,l=u-i,f=c*c+l*l,h=Math.sqrt(f),d=(s*s-a*a+qo*f)/(2*a*Io*h),p=(s*s-a*a-qo*f)/(2*s*Io*h),g=Math.log(Math.sqrt(d*d+1)-d),y=Math.log(Math.sqrt(p*p+1)-p),m=y-g,v=(m||Math.log(s/a))/Oo;return e.duration=1e3*v,e},Za.behavior.zoom=function(){function t(t){t.on(D,c).on(jo+".zoom",f).on("dblclick.zoom",h).on(T,l)}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(A[0],Math.min(A[1],t))}function i(t,n){n=e(n),k.x+=t[0]-n[0],k.y+=t[1]-n[1]}function a(){b&&b.domain(v.range().map(function(t){return(t-k.x)/k.k}).map(v.invert)),x&&x.domain(_.range().map(function(t){return(t-k.y)/k.k}).map(_.invert))}function o(t){t({type:"zoomstart"})}function u(t){a(),t({type:"zoom",scale:k.k,translate:[k.x,k.y]})}function s(t){t({type:"zoomend"})}function c(){function t(){l=1,i(Za.mouse(r),h),u(c)}function e(){f.on(S,null).on(C,null),d(l&&Za.event.target===a),s(c)}var r=this,a=Za.event.target,c=F.of(r,arguments),l=0,f=Za.select(to).on(S,t).on(C,e),h=n(Za.mouse(r)),d=$();Y.call(r),o(c)}function l(){function t(){var t=Za.touches(d);return h=k.k,t.forEach(function(t){t.identifier in g&&(g[t.identifier]=n(t))}),t}function e(){var n=Za.event.target;Za.select(n).on(b,a).on(_,f),x.push(n);for(var e=Za.event.changedTouches,o=0,s=e.length;s>o;++o)g[e[o].identifier]=null;var c=t(),l=Date.now();if(1===c.length){if(500>l-m){var h=c[0],d=g[h.identifier];r(2*k.k),i(h,d),w(),u(p)}m=l}else if(c.length>1){var h=c[0],v=c[1],E=h[0]-v[0],M=h[1]-v[1];y=E*E+M*M}}function a(){for(var t,n,e,a,o=Za.touches(d),s=0,c=o.length;c>s;++s,a=null)if(e=o[s],a=g[e.identifier]){if(n)break;t=e,n=a}if(a){var l=(l=e[0]-t[0])*l+(l=e[1]-t[1])*l,f=y&&Math.sqrt(l/y);t=[(t[0]+e[0])/2,(t[1]+e[1])/2],n=[(n[0]+a[0])/2,(n[1]+a[1])/2],r(f*h)}m=null,i(t,n),u(p)}function f(){if(Za.event.touches.length){for(var n=Za.event.changedTouches,e=0,r=n.length;r>e;++e)delete g[n[e].identifier];for(var i in g)return void t()}Za.selectAll(x).on(v,null),E.on(D,c).on(T,l),M(),s(p)}var h,d=this,p=F.of(d,arguments),g={},y=0,v=".zoom-"+Za.event.changedTouches[0].identifier,b="touchmove"+v,_="touchend"+v,x=[],E=Za.select(d),M=$();Y.call(d),e(),o(p),E.on(D,null).on(T,e)}function f(){var t=F.of(this,arguments);y?clearTimeout(y):(d=n(p=g||Za.mouse(this)),Y.call(this),o(t)),y=setTimeout(function(){y=null,s(t)},50),w(),r(Math.pow(2,.002*Ro())*k.k),i(p,d),u(t)}function h(){var t=F.of(this,arguments),e=Za.mouse(this),a=n(e),c=Math.log(k.k)/Math.LN2;o(t),r(Math.pow(2,Za.event.shiftKey?Math.ceil(c)-1:Math.floor(c)+1)),i(e,a),u(t),s(t)}var d,p,g,y,m,v,b,_,x,k={x:0,y:0,k:1},M=[960,500],A=Po,D="mousedown.zoom",S="mousemove.zoom",C="mouseup.zoom",T="touchstart.zoom",F=E(t,"zoomstart","zoom","zoomend");return t.event=function(t){t.each(function(){var t=F.of(this,arguments),n=k;Ts?Za.select(this).transition().each("start.zoom",function(){k=this.__chart__||{x:0,y:0,k:1},o(t)}).tween("zoom:zoom",function(){var e=M[0],r=M[1],i=e/2,a=r/2,o=Za.interpolateZoom([(i-k.x)/k.k,(a-k.y)/k.k,e/k.k],[(i-n.x)/n.k,(a-n.y)/n.k,e/n.k]);return function(n){var r=o(n),s=e/r[2];this.__chart__=k={x:i-r[0]*s,y:a-r[1]*s,k:s},u(t)}}).each("end.zoom",function(){s(t)}):(this.__chart__=k,o(t),u(t),s(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:+n},a(),t):k.k},t.scaleExtent=function(n){return arguments.length?(A=null==n?Po:[+n[0],+n[1]],t):A},t.center=function(n){return arguments.length?(g=n&&[+n[0],+n[1]],t):g},t.size=function(n){return arguments.length?(M=n&&[+n[0],+n[1]],t):M},t.x=function(n){return arguments.length?(b=n,v=n.copy(),k={x:0,y:0,k:1},t):b},t.y=function(n){return arguments.length?(x=n,_=n.copy(),k={x:0,y:0,k:1},t):x},Za.rebind(t,F,"on")};var Ro,Po=[0,1/0],jo="onwheel"in Ja?(Ro=function(){return-Za.event.deltaY*(Za.event.deltaMode?120:1)},"wheel"):"onmousewheel"in Ja?(Ro=function(){return Za.event.wheelDelta},"mousewheel"):(Ro=function(){return-Za.event.detail},"MozMousePixelScroll");Za.color=ot,ot.prototype.toString=function(){return this.rgb()+""},Za.hsl=ut;var Uo=ut.prototype=new ot;Uo.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new ut(this.h,this.s,this.l/t)},Uo.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new ut(this.h,this.s,t*this.l)},Uo.rgb=function(){return st(this.h,this.s,this.l)},Za.hcl=ct;var zo=ct.prototype=new ot;zo.brighter=function(t){return new ct(this.h,this.c,Math.min(100,this.l+Yo*(arguments.length?t:1)))},zo.darker=function(t){return new ct(this.h,this.c,Math.max(0,this.l-Yo*(arguments.length?t:1)))},zo.rgb=function(){return lt(this.h,this.c,this.l).rgb()},Za.lab=ft;var Yo=18,Vo=.95047,Ho=1,Go=1.08883,$o=ft.prototype=new ot;$o.brighter=function(t){return new ft(Math.min(100,this.l+Yo*(arguments.length?t:1)),this.a,this.b)},$o.darker=function(t){return new ft(Math.max(0,this.l-Yo*(arguments.length?t:1)),this.a,this.b)},$o.rgb=function(){return ht(this.l,this.a,this.b)},Za.rgb=mt;var Wo=mt.prototype=new ot;Wo.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var n=this.r,e=this.g,r=this.b,i=30;return n||e||r?(n&&i>n&&(n=i),e&&i>e&&(e=i),r&&i>r&&(r=i),new mt(Math.min(255,n/t),Math.min(255,e/t),Math.min(255,r/t))):new mt(i,i,i)},Wo.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new mt(t*this.r,t*this.g,t*this.b)},Wo.hsl=function(){return wt(this.r,this.g,this.b)},Wo.toString=function(){return"#"+_t(this.r)+_t(this.g)+_t(this.b)};var Zo=Za.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,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});Zo.forEach(function(t,n){Zo.set(t,vt(n))}),Za.functor=At,Za.xhr=St(Dt),Za.dsv=function(t,n){function e(t,e,a){arguments.length<3&&(a=e,e=null);var o=Ct(t,n,null==e?r:i(e),a);return o.row=function(t){return arguments.length?o.response(null==(e=t)?r:i(t)):e},o}function r(t){return e.parse(t.responseText)}function i(t){return function(n){return e.parse(n.responseText,t)}}function a(n){return n.map(o).join(t)}function o(t){return u.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}var u=new RegExp('["'+t+"\n]"),s=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 i=new Function("d","return {"+t.map(function(t,n){return JSON.stringify(t)+": d["+n+"]"}).join(",")+"}");r=n?function(t,e){return n(i(t),e)}:i})},e.parseRows=function(t,n){function e(){if(l>=c)return o;if(i)return i=!1,a;var n=l;if(34===t.charCodeAt(n)){for(var e=n;e++<c;)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?(i=!0,10===t.charCodeAt(e+2)&&++l):10===r&&(i=!0),t.slice(n+1,e).replace(/""/g,'"')}for(;c>l;){var r=t.charCodeAt(l++),u=1;if(10===r)i=!0;else if(13===r)i=!0,10===t.charCodeAt(l)&&(++l,++u);else if(r!==s)continue;return t.slice(n,l-u)}return t.slice(n)}for(var r,i,a={},o={},u=[],c=t.length,l=0,f=0;(r=e())!==o;){for(var h=[];r!==a&&r!==o;)h.push(r),r=e();n&&null==(h=n(h,f++))||u.push(h)}return u},e.format=function(n){if(Array.isArray(n[0]))return e.formatRows(n);var r=new y,i=[];return n.forEach(function(t){for(var n in t)r.has(n)||i.push(r.add(n))}),[i.map(o).join(t)].concat(n.map(function(n){return i.map(function(t){return o(n[t])}).join(t)})).join("\n")},e.formatRows=function(t){return t.map(a).join("\n")},e},Za.csv=Za.dsv(",","text/csv"),Za.tsv=Za.dsv("	","text/tab-separated-values");var Xo,Ko,Jo,Qo,tu,nu=to[v(to,"requestAnimationFrame")]||function(t){setTimeout(t,17)};Za.timer=function(t,n,e){var r=arguments.length;2>r&&(n=0),3>r&&(e=Date.now());var i=e+n,a={c:t,t:i,f:!1,n:null};Ko?Ko.n=a:Xo=a,Ko=a,Jo||(Qo=clearTimeout(Qo),Jo=1,nu(Nt))},Za.timer.flush=function(){Lt(),Bt()},Za.round=function(t,n){return n?Math.round(t*(n=Math.pow(10,n)))/n:Math.round(t)};var eu=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(It);Za.formatPrefix=function(t,n){var e=0;return t&&(0>t&&(t*=-1),n&&(t=Za.round(t,Ot(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)))),eu[8+e/3]};var ru=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,iu=Za.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=Za.round(t,Ot(t,n))).toFixed(Math.max(0,Math.min(20,Ot(t*(1+1e-15),n))))}}),au=Za.time={},ou=Date;Pt.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(){uu.setUTCDate.apply(this._,arguments)},setDay:function(){uu.setUTCDay.apply(this._,arguments)},setFullYear:function(){uu.setUTCFullYear.apply(this._,arguments)},setHours:function(){uu.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){uu.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){uu.setUTCMinutes.apply(this._,arguments)},setMonth:function(){uu.setUTCMonth.apply(this._,arguments)},setSeconds:function(){uu.setUTCSeconds.apply(this._,arguments)},setTime:function(){uu.setTime.apply(this._,arguments)}};var uu=Date.prototype;au.year=jt(function(t){return t=au.day(t),t.setMonth(0,1),t},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t){return t.getFullYear()}),au.years=au.year.range,au.years.utc=au.year.utc.range,au.day=jt(function(t){var n=new ou(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}),au.days=au.day.range,au.days.utc=au.day.utc.range,au.dayOfYear=function(t){var n=au.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=au[t]=jt(function(t){return(t=au.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=au.year(t).getDay();return Math.floor((au.dayOfYear(t)+(e+n)%7)/7)-(e!==n)});au[t+"s"]=e.range,au[t+"s"].utc=e.utc.range,au[t+"OfYear"]=function(t){var e=au.year(t).getDay();return Math.floor((au.dayOfYear(t)+(e+n)%7)/7)}}),au.week=au.sunday,au.weeks=au.sunday.range,au.weeks.utc=au.sunday.utc.range,au.weekOfYear=au.sundayOfYear;var su={"-":"",_:" ",0:"0"},cu=/^\s*\d+/,lu=/^%/;Za.locale=function(t){return{numberFormat:qt(t),timeFormat:zt(t)}};var fu=Za.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"]});Za.format=fu.numberFormat,Za.geo={},ln.prototype={s:0,t:0,add:function(t){fn(t,this.t,hu),fn(hu.s,this.s,this),this.s?this.t+=hu.t:this.s=hu.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var hu=new ln;Za.geo.stream=function(t,n){t&&du.hasOwnProperty(t.type)?du[t.type](t,n):hn(t,n)};var du={Feature:function(t,n){hn(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r<i;)hn(e[r].geometry,n)}},pu={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,i=e.length;++r<i;)t=e[r],n.point(t[0],t[1],t[2])},LineString:function(t,n){dn(t.coordinates,n,0)},MultiLineString:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)dn(e[r],n,0)},Polygon:function(t,n){pn(t.coordinates,n)},MultiPolygon:function(t,n){for(var e=t.coordinates,r=-1,i=e.length;++r<i;)pn(e[r],n)},GeometryCollection:function(t,n){for(var e=t.geometries,r=-1,i=e.length;++r<i;)hn(e[r],n)}};Za.geo.area=function(t){return gu=0,Za.geo.stream(t,mu),gu};var gu,yu=new ln,mu={sphere:function(){gu+=4*So},point:b,lineStart:b,lineEnd:b,polygonStart:function(){yu.reset(),mu.lineStart=gn},polygonEnd:function(){var t=2*yu;gu+=0>t?4*So+t:t,mu.lineStart=mu.lineEnd=mu.point=b}};Za.geo.bounds=function(){function t(t,n){b.push(_=[l=t,h=t]),f>n&&(f=n),n>d&&(d=n)}function n(n,e){var r=yn([n*Lo,e*Lo]);if(m){var i=vn(m,r),a=[i[1],-i[0],0],o=vn(a,i);xn(o),o=wn(o);var s=n-p,c=s>0?1:-1,g=o[0]*Bo*c,y=co(s)>180;if(y^(g>c*p&&c*n>g)){var v=o[1]*Bo;v>d&&(d=v)}else if(g=(g+360)%360-180,y^(g>c*p&&c*n>g)){var v=-o[1]*Bo;f>v&&(f=v)}else f>e&&(f=e),e>d&&(d=e);y?p>n?u(l,n)>u(l,h)&&(h=n):u(n,h)>u(l,h)&&(l=n):h>=l?(l>n&&(l=n),n>h&&(h=n)):n>p?u(l,n)>u(l,h)&&(h=n):u(n,h)>u(l,h)&&(l=n)}else t(n,e);m=r,p=n}function e(){x.point=n}function r(){_[0]=l,_[1]=h,x.point=t,m=null}function i(t,e){if(m){var r=t-p;v+=co(r)>180?r+(r>0?360:-360):r}else g=t,y=e;mu.point(t,e),n(t,e)}function a(){mu.lineStart()}function o(){i(g,y),mu.lineEnd(),co(v)>Fo&&(l=-(h=180)),_[0]=l,_[1]=h,m=null}function u(t,n){return(n-=t)<0?n+360:n}function s(t,n){return t[0]-n[0]}function c(t,n){return n[0]<=n[1]?n[0]<=t&&t<=n[1]:t<n[0]||n[1]<t}var l,f,h,d,p,g,y,m,v,b,_,x={point:t,lineStart:e,lineEnd:r,polygonStart:function(){x.point=i,x.lineStart=a,x.lineEnd=o,v=0,mu.polygonStart()},polygonEnd:function(){mu.polygonEnd(),x.point=t,x.lineStart=e,x.lineEnd=r,0>yu?(l=-(h=180),f=-(d=90)):v>Fo?d=90:-Fo>v&&(f=-90),_[0]=l,_[1]=h}};return function(t){d=h=-(l=f=1/0),b=[],Za.geo.stream(t,x);var n=b.length;if(n){b.sort(s);for(var e,r=1,i=b[0],a=[i];n>r;++r)e=b[r],c(e[0],i)||c(e[1],i)?(u(i[0],e[1])>u(i[0],i[1])&&(i[1]=e[1]),u(e[0],i[1])>u(i[0],i[1])&&(i[0]=e[0])):a.push(i=e);for(var o,e,p=-(1/0),n=a.length-1,r=0,i=a[n];n>=r;i=e,++r)e=a[r],(o=u(i[1],e[0]))>p&&(p=o,l=e[0],h=i[1])}return b=_=null,l===1/0||f===1/0?[[0/0,0/0],[0/0,0/0]]:[[l,f],[h,d]]}}(),Za.geo.centroid=function(t){vu=bu=_u=xu=wu=ku=Eu=Mu=Au=Du=Su=0,Za.geo.stream(t,Cu);var n=Au,e=Du,r=Su,i=n*n+e*e+r*r;return No>i&&(n=ku,e=Eu,r=Mu,Fo>bu&&(n=_u,e=xu,r=wu),i=n*n+e*e+r*r,No>i)?[0/0,0/0]:[Math.atan2(e,n)*Bo,nt(r/Math.sqrt(i))*Bo]};var vu,bu,_u,xu,wu,ku,Eu,Mu,Au,Du,Su,Cu={sphere:b,point:En,lineStart:An,lineEnd:Dn,polygonStart:function(){Cu.lineStart=Sn},polygonEnd:function(){Cu.lineStart=An}},Tu=Ln(Cn,qn,Pn,[-So,-So/2]),Fu=1e9;Za.geo.clipExtent=function(){var t,n,e,r,i,a,o={stream:function(t){return i&&(i.valid=!1),i=a(t),i.valid=!0,i},extent:function(u){return arguments.length?(a=Yn(t=+u[0][0],n=+u[0][1],e=+u[1][0],r=+u[1][1]),i&&(i.valid=!1,i=null),o):[[t,n],[e,r]]}};return o.extent([[0,0],[960,500]])},(Za.geo.conicEqualArea=function(){return Hn(Gn)}).raw=Gn,Za.geo.albers=function(){return Za.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},Za.geo.albersUsa=function(){function t(t){var a=t[0],o=t[1];return n=null,e(a,o),n||(r(a,o),n)||i(a,o),n}var n,e,r,i,a=Za.geo.albers(),o=Za.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=Za.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(t,e){n=[t,e]}};return t.invert=function(t){var n=a.scale(),e=a.translate(),r=(t[0]-e[0])/n,i=(t[1]-e[1])/n;return(i>=.12&&.234>i&&r>=-.425&&-.214>r?o:i>=.166&&.234>i&&r>=-.214&&-.115>r?u:a).invert(t)},t.stream=function(t){var n=a.stream(t),e=o.stream(t),r=u.stream(t);return{point:function(t,i){n.point(t,i),e.point(t,i),r.point(t,i)},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?(a.precision(n),o.precision(n),u.precision(n),t):a.precision()},t.scale=function(n){return arguments.length?(a.scale(n),o.scale(.35*n),u.scale(n),t.translate(a.translate())):a.scale()},t.translate=function(n){if(!arguments.length)return a.translate();var c=a.scale(),l=+n[0],f=+n[1];return e=a.translate(n).clipExtent([[l-.455*c,f-.238*c],[l+.455*c,f+.238*c]]).stream(s).point,r=o.translate([l-.307*c,f+.201*c]).clipExtent([[l-.425*c+Fo,f+.12*c+Fo],[l-.214*c-Fo,f+.234*c-Fo]]).stream(s).point,i=u.translate([l-.205*c,f+.212*c]).clipExtent([[l-.214*c+Fo,f+.166*c+Fo],[l-.115*c-Fo,f+.234*c-Fo]]).stream(s).point,t},t.scale(1070)};var Nu,Lu,Bu,Ou,Iu,qu,Ru={point:b,lineStart:b,lineEnd:b,polygonStart:function(){Lu=0,Ru.lineStart=$n},polygonEnd:function(){Ru.lineStart=Ru.lineEnd=Ru.point=b,Nu+=co(Lu/2)}},Pu={point:Wn,lineStart:b,lineEnd:b,polygonStart:b,polygonEnd:b},ju={point:Kn,lineStart:Jn,lineEnd:Qn,polygonStart:function(){ju.lineStart=te},polygonEnd:function(){ju.point=Kn,ju.lineStart=Jn,ju.lineEnd=Qn}};Za.geo.path=function(){function t(t){return t&&("function"==typeof u&&a.pointRadius(+u.apply(this,arguments)),o&&o.valid||(o=i(a)),Za.geo.stream(t,o)),a.result()}function n(){return o=null,t}var e,r,i,a,o,u=4.5;return t.area=function(t){return Nu=0,Za.geo.stream(t,i(Ru)),Nu},t.centroid=function(t){return _u=xu=wu=ku=Eu=Mu=Au=Du=Su=0,Za.geo.stream(t,i(ju)),Su?[Au/Su,Du/Su]:Mu?[ku/Mu,Eu/Mu]:wu?[_u/wu,xu/wu]:[0/0,0/0]},t.bounds=function(t){return Iu=qu=-(Bu=Ou=1/0),Za.geo.stream(t,i(Pu)),[[Bu,Ou],[Iu,qu]]},t.projection=function(t){return arguments.length?(i=(e=t)?t.stream||re(t):Dt,n()):e},t.context=function(t){return arguments.length?(a=null==(r=t)?new Zn:new ne(t),"function"!=typeof u&&a.pointRadius(u),n()):r},t.pointRadius=function(n){return arguments.length?(u="function"==typeof n?n:(a.pointRadius(+n),+n),t):u},t.projection(Za.geo.albersUsa()).context(null)},Za.geo.transform=function(t){return{stream:function(n){var e=new ie(n);for(var r in t)e[r]=t[r];return e}}},ie.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()}},Za.geo.projection=oe,Za.geo.projectionMutator=ue,(Za.geo.equirectangular=function(){return oe(ce)}).raw=ce.invert=ce,Za.geo.rotation=function(t){function n(n){return n=t(n[0]*Lo,n[1]*Lo),n[0]*=Bo,n[1]*=Bo,n}return t=fe(t[0]%360*Lo,t[1]*Lo,t.length>2?t[2]*Lo:0),n.invert=function(n){return n=t.invert(n[0]*Lo,n[1]*Lo),n[0]*=Bo,n[1]*=Bo,n},n},le.invert=ce,Za.geo.circle=function(){function t(){var t="function"==typeof r?r.apply(this,arguments):r,n=fe(-t[0]*Lo,-t[1]*Lo,0).invert,i=[];return e(null,null,1,{point:function(t,e){i.push(t=n(t,e)),t[0]*=Bo,t[1]*=Bo}}),{type:"Polygon",coordinates:[i]}}var n,e,r=[0,0],i=6;return t.origin=function(n){return arguments.length?(r=n,t):r},t.angle=function(r){return arguments.length?(e=ge((n=+r)*Lo,i*Lo),t):n},t.precision=function(r){return arguments.length?(e=ge(n*Lo,(i=+r)*Lo),t):i},t.angle(90)},Za.geo.distance=function(t,n){var e,r=(n[0]-t[0])*Lo,i=t[1]*Lo,a=n[1]*Lo,o=Math.sin(r),u=Math.cos(r),s=Math.sin(i),c=Math.cos(i),l=Math.sin(a),f=Math.cos(a);return Math.atan2(Math.sqrt((e=f*o)*e+(e=c*l-s*f*u)*e),s*l+c*f*u)},Za.geo.graticule=function(){function t(){return{type:"MultiLineString",coordinates:n()}}function n(){return Za.range(Math.ceil(a/y)*y,i,y).map(h).concat(Za.range(Math.ceil(c/m)*m,s,m).map(d)).concat(Za.range(Math.ceil(r/p)*p,e,p).filter(function(t){return co(t%y)>Fo}).map(l)).concat(Za.range(Math.ceil(u/g)*g,o,g).filter(function(t){return co(t%m)>Fo}).map(f))}var e,r,i,a,o,u,s,c,l,f,h,d,p=10,g=p,y=90,m=360,v=2.5;return t.lines=function(){return n().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[h(a).concat(d(s).slice(1),h(i).reverse().slice(1),d(c).reverse().slice(1))]}},t.extent=function(n){return arguments.length?t.majorExtent(n).minorExtent(n):t.minorExtent()},t.majorExtent=function(n){return arguments.length?(a=+n[0][0],i=+n[1][0],c=+n[0][1],s=+n[1][1],a>i&&(n=a,a=i,i=n),c>s&&(n=c,c=s,s=n),t.precision(v)):[[a,c],[i,s]]},t.minorExtent=function(n){return arguments.length?(r=+n[0][0],e=+n[1][0],u=+n[0][1],o=+n[1][1],r>e&&(n=r,r=e,e=n),u>o&&(n=u,u=o,o=n),t.precision(v)):[[r,u],[e,o]]},t.step=function(n){return arguments.length?t.majorStep(n).minorStep(n):t.minorStep()},t.majorStep=function(n){return arguments.length?(y=+n[0],m=+n[1],t):[y,m]},t.minorStep=function(n){return arguments.length?(p=+n[0],g=+n[1],t):[p,g]},t.precision=function(n){return arguments.length?(v=+n,l=me(u,o,90),f=ve(r,e,v),h=me(c,s,90),d=ve(a,i,v),t):v},t.majorExtent([[-180,-90+Fo],[180,90-Fo]]).minorExtent([[-180,-80-Fo],[180,80+Fo]])},Za.geo.greatArc=function(){function t(){return{type:"LineString",coordinates:[n||r.apply(this,arguments),e||i.apply(this,arguments)]}}var n,e,r=be,i=_e;return t.distance=function(){return Za.geo.distance(n||r.apply(this,arguments),e||i.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?(i=n,e="function"==typeof n?null:n,t):i},t.precision=function(){return arguments.length?t:0},t},Za.geo.interpolate=function(t,n){return xe(t[0]*Lo,t[1]*Lo,n[0]*Lo,n[1]*Lo)},Za.geo.length=function(t){return Uu=0,Za.geo.stream(t,zu),Uu};var Uu,zu={sphere:b,point:b,lineStart:we,lineEnd:b,polygonStart:b,polygonEnd:b},Yu=ke(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(Za.geo.azimuthalEqualArea=function(){return oe(Yu)}).raw=Yu;var Vu=ke(function(t){var n=Math.acos(t);return n&&n/Math.sin(n)},Dt);(Za.geo.azimuthalEquidistant=function(){return oe(Vu)}).raw=Vu,(Za.geo.conicConformal=function(){return Hn(Ee)}).raw=Ee,(Za.geo.conicEquidistant=function(){return Hn(Me)}).raw=Me;var Hu=ke(function(t){return 1/t},Math.atan);(Za.geo.gnomonic=function(){return oe(Hu)}).raw=Hu,Ae.invert=function(t,n){return[t,2*Math.atan(Math.exp(n))-To]},(Za.geo.mercator=function(){return De(Ae)}).raw=Ae;var Gu=ke(function(){return 1},Math.asin);(Za.geo.orthographic=function(){return oe(Gu)}).raw=Gu;var $u=ke(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(Za.geo.stereographic=function(){return oe($u)}).raw=$u,Se.invert=function(t,n){return[-n,2*Math.atan(Math.exp(t))-To]},(Za.geo.transverseMercator=function(){var t=De(Se),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=Se,Za.geom={},Za.geom.hull=function(t){function n(t){if(t.length<3)return[];var n,i=At(e),a=At(r),o=t.length,u=[],s=[];for(n=0;o>n;n++)u.push([+i.call(this,t[n],n),+a.call(this,t[n],n),n]);for(u.sort(Ne),n=0;o>n;n++)s.push([u[n][0],-u[n][1]]);var c=Fe(u),l=Fe(s),f=l[0]===c[0],h=l[l.length-1]===c[c.length-1],d=[];for(n=c.length-1;n>=0;--n)d.push(t[u[c[n]][2]]);for(n=+f;n<l.length-h;++n)d.push(t[u[l[n]][2]]);return d}var e=Ce,r=Te;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)},Za.geom.polygon=function(t){return go(t,Wu),t};var Wu=Za.geom.polygon.prototype=[];Wu.area=function(){for(var t,n=-1,e=this.length,r=this[e-1],i=0;++n<e;)t=r,r=this[n],i+=t[1]*r[0]-t[0]*r[1];return.5*i},Wu.centroid=function(t){var n,e,r=-1,i=this.length,a=0,o=0,u=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++r<i;)n=u,u=this[r],e=n[0]*u[1]-u[0]*n[1],a+=(n[0]+u[0])*e,o+=(n[1]+u[1])*e;return[a*t,o*t]},Wu.clip=function(t){for(var n,e,r,i,a,o,u=Oe(t),s=-1,c=this.length-Oe(this),l=this[c-1];++s<c;){for(n=t.slice(),t.length=0,i=this[s],a=n[(r=n.length-u)-1],e=-1;++e<r;)o=n[e],Le(o,l,i)?(Le(a,l,i)||t.push(Be(a,o,l,i)),t.push(o)):Le(a,l,i)&&t.push(Be(a,o,l,i)),a=o;u&&t.push(t[0]),l=i}return t};var Zu,Xu,Ku,Ju,Qu,ts=[],ns=[];Ye.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(He),n.length},nr.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}},er.prototype={insert:function(t,n){var e,r,i;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=or(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?(i=r.R,i&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(ir(this,e),t=e,e=t.U),e.C=!1,r.C=!0,ar(this,r))):(i=r.L,i&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(ar(this,e),t=e,e=t.U),e.C=!1,r.C=!0,ir(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,i=t.U,a=t.L,o=t.R;if(e=a?o?or(o):a:o,i?i.L===t?i.L=e:i.R=e:this._=e,a&&o?(r=e.C,e.C=t.C,e.L=a,a.U=e,e!==o?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=o,o.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===i.L){if(n=i.R,n.C&&(n.C=!1,i.C=!0,ir(this,i),n=i.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,ar(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,ir(this,i),t=this._;break}}else if(n=i.L,n.C&&(n.C=!1,i.C=!0,ar(this,i),n=i.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,ir(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,ar(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}},Za.geom.voronoi=function(t){function n(t){var n=new Array(t.length),r=u[0][0],i=u[0][1],a=u[1][0],o=u[1][1];return ur(e(t),u).cells.forEach(function(e,u){var s=e.edges,c=e.site,l=n[u]=s.length?s.map(function(t){var n=t.start();return[n.x,n.y]}):c.x>=r&&c.x<=a&&c.y>=i&&c.y<=o?[[r,o],[a,o],[a,i],[r,i]]:[];l.point=t[u]}),n}function e(t){return t.map(function(t,n){return{x:Math.round(a(t,n)/Fo)*Fo,y:Math.round(o(t,n)/Fo)*Fo,i:n}})}var r=Ce,i=Te,a=r,o=i,u=es;return t?n(t):(n.links=function(t){return ur(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 ur(e(t)).cells.forEach(function(e,r){for(var i,a,o=e.site,u=e.edges.sort(He),s=-1,c=u.length,l=u[c-1].edge,f=l.l===o?l.r:l.l;++s<c;)i=l,a=f,l=u[s].edge,f=l.l===o?l.r:l.l,r<a.i&&r<f.i&&cr(o,a,f)<0&&n.push([t[r],t[a.i],t[f.i]])}),n},n.x=function(t){return arguments.length?(a=At(r=t),n):r},n.y=function(t){return arguments.length?(o=At(i=t),n):i},n.clipExtent=function(t){return arguments.length?(u=null==t?es:t,n):u===es?null:u},n.size=function(t){return arguments.length?n.clipExtent(t&&[[0,0],t]):u===es?null:u&&u[1]},n)};var es=[[-1e6,-1e6],[1e6,1e6]];Za.geom.delaunay=function(t){return Za.geom.voronoi().triangles(t)},Za.geom.quadtree=function(t,n,e,r,i){function a(t){function a(t,n,e,r,i,a,o,u){if(!isNaN(e)&&!isNaN(r))if(t.leaf){var s=t.x,l=t.y;if(null!=s)if(co(s-e)+co(l-r)<.01)c(t,n,e,r,i,a,o,u);else{var f=t.point;t.x=t.y=t.point=null,c(t,f,s,l,i,a,o,u),c(t,n,e,r,i,a,o,u)}else t.x=e,t.y=r,t.point=n}else c(t,n,e,r,i,a,o,u)}function c(t,n,e,r,i,o,u,s){var c=.5*(i+u),l=.5*(o+s),f=e>=c,h=r>=l,d=(h<<1)+f;t.leaf=!1,t=t.nodes[d]||(t.nodes[d]=hr()),f?i=c:u=c,h?o=l:s=l,a(t,n,e,r,i,o,u,s)}var l,f,h,d,p,g,y,m,v,b=At(u),_=At(s);if(null!=n)g=n,y=e,m=r,v=i;else if(m=v=-(g=y=1/0),f=[],h=[],p=t.length,o)for(d=0;p>d;++d)l=t[d],l.x<g&&(g=l.x),l.y<y&&(y=l.y),l.x>m&&(m=l.x),l.y>v&&(v=l.y),f.push(l.x),h.push(l.y);else for(d=0;p>d;++d){var x=+b(l=t[d],d),w=+_(l,d);g>x&&(g=x),y>w&&(y=w),x>m&&(m=x),w>v&&(v=w),f.push(x),h.push(w)}var k=m-g,E=v-y;k>E?v=y+k:m=g+E;var M=hr();if(M.add=function(t){a(M,t,+b(t,++d),+_(t,d),g,y,m,v)},M.visit=function(t){dr(t,M,g,y,m,v)},d=-1,null==n){for(;++d<p;)a(M,t[d],f[d],h[d],g,y,m,v);--d}else t.forEach(M.add);return f=h=t=l=null,M}var o,u=Ce,s=Te;return(o=arguments.length)?(u=lr,s=fr,3===o&&(i=e,r=n,e=n=0),a(t)):(a.x=function(t){return arguments.length?(u=t,a):u},a.y=function(t){return arguments.length?(s=t,a):s},a.extent=function(t){return arguments.length?(null==t?n=e=r=i=null:(n=+t[0][0],e=+t[0][1],r=+t[1][0],i=+t[1][1]),a):null==n?null:[[n,e],[r,i]]},a.size=function(t){return arguments.length?(null==t?n=e=r=i=null:(n=e=0,r=+t[0],i=+t[1]),a):null==n?null:[r-n,i-e]},a)},Za.interpolateRgb=pr,Za.interpolateObject=gr,Za.interpolateNumber=yr,Za.interpolateString=mr;var rs=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,is=new RegExp(rs.source,"g");Za.interpolate=vr,Za.interpolators=[function(t,n){var e=typeof n;return("string"===e?Zo.has(n)||/^(#|rgb\(|hsl\()/.test(n)?pr:mr:n instanceof ot?pr:Array.isArray(n)?br:"object"===e&&isNaN(n)?gr:yr)(t,n)}],Za.interpolateArray=br;var as=function(){return Dt},os=Za.map({linear:as,poly:Ar,quad:function(){return kr},cubic:function(){return Er},sin:function(){return Dr},exp:function(){return Sr},circle:function(){return Cr},elastic:Tr,back:Fr,bounce:function(){return Nr}}),us=Za.map({"in":Dt,out:xr,"in-out":wr,"out-in":function(t){return wr(xr(t))}});Za.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=os.get(e)||as,r=us.get(r)||Dt,_r(r(e.apply(null,Xa.call(arguments,1))))},Za.interpolateHcl=Lr,Za.interpolateHsl=Br,Za.interpolateLab=Or,Za.interpolateRound=Ir,Za.transform=function(t){var n=Ja.createElementNS(Za.ns.prefix.svg,"g");return(Za.transform=function(t){if(null!=t){n.setAttribute("transform",t);var e=n.transform.baseVal.consolidate()}return new qr(e?e.matrix:ss)})(t)},qr.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var ss={a:1,b:0,c:0,d:1,e:0,f:0};Za.interpolateTransform=Ur,Za.layout={},Za.layout.bundle=function(){return function(t){for(var n=[],e=-1,r=t.length;++e<r;)n.push(Vr(t[e]));return n}},Za.layout.chord=function(){function t(){var t,c,f,h,d,p={},g=[],y=Za.range(a),m=[];for(e=[],r=[],t=0,h=-1;++h<a;){for(c=0,d=-1;++d<a;)c+=i[h][d];g.push(c),m.push(Za.range(a)),t+=c}for(o&&y.sort(function(t,n){return o(g[t],g[n])}),u&&m.forEach(function(t,n){t.sort(function(t,e){return u(i[n][t],i[n][e])})}),t=(Co-l*a)/t,c=0,h=-1;++h<a;){for(f=c,d=-1;++d<a;){var v=y[h],b=m[v][d],_=i[v][b],x=c,w=c+=_*t;p[v+"-"+b]={index:v,subindex:b,startAngle:x,endAngle:w,value:_}}r[v]={index:v,startAngle:f,endAngle:c,value:(c-f)/t},c+=l}for(h=-1;++h<a;)for(d=h-1;++d<a;){var k=p[h+"-"+d],E=p[d+"-"+h];(k.value||E.value)&&e.push(k.value<E.value?{source:E,target:k}:{source:k,target:E})}s&&n()}function n(){e.sort(function(t,n){return s((t.source.value+t.target.value)/2,(n.source.value+n.target.value)/2)})}var e,r,i,a,o,u,s,c={},l=0;return c.matrix=function(t){return arguments.length?(a=(i=t)&&i.length,e=r=null,c):i},c.padding=function(t){return arguments.length?(l=t,e=r=null,c):l},c.sortGroups=function(t){return arguments.length?(o=t,e=r=null,c):o},c.sortSubgroups=function(t){return arguments.length?(u=t,e=null,c):u},c.sortChords=function(t){return arguments.length?(s=t,e&&n(),c):s},c.chords=function(){return e||t(),e},c.groups=function(){return r||t(),r},c},Za.layout.force=function(){function t(t){return function(n,e,r,i){if(n.point!==t){var a=n.cx-t.x,o=n.cy-t.y,u=i-e,s=a*a+o*o;if(s>u*u/y){if(p>s){var c=n.charge/s;t.px-=a*c,t.py-=o*c}return!0}if(n.point&&s&&p>s){var c=n.pointCharge/s;t.px-=a*c,t.py-=o*c}}return!n.charge}}function n(t){t.px=Za.event.x,t.py=Za.event.y,u.resume()}var e,r,i,a,o,u={},s=Za.dispatch("start","tick","end"),c=[1,1],l=.9,f=cs,h=ls,d=-30,p=fs,g=.1,y=.64,m=[],v=[];return u.tick=function(){if((r*=.99)<.005)return s.end({type:"end",alpha:r=0}),!0;var n,e,u,f,h,p,y,b,_,x=m.length,w=v.length;for(e=0;w>e;++e)u=v[e],f=u.source,h=u.target,b=h.x-f.x,_=h.y-f.y,(p=b*b+_*_)&&(p=r*a[e]*((p=Math.sqrt(p))-i[e])/p,b*=p,_*=p,h.x-=b*(y=f.weight/(h.weight+f.weight)),h.y-=_*y,f.x+=b*(y=1-y),f.y+=_*y);if((y=r*g)&&(b=c[0]/2,_=c[1]/2,e=-1,y))for(;++e<x;)u=m[e],u.x+=(b-u.x)*y,u.y+=(_-u.y)*y;if(d)for(Kr(n=Za.geom.quadtree(m),r,o),e=-1;++e<x;)(u=m[e]).fixed||n.visit(t(u));for(e=-1;++e<x;)u=m[e],u.fixed?(u.x=u.px,u.y=u.py):(u.x-=(u.px-(u.px=u.x))*l,u.y-=(u.py-(u.py=u.y))*l);s.tick({type:"tick",alpha:r})},u.nodes=function(t){return arguments.length?(m=t,u):m},u.links=function(t){return arguments.length?(v=t,u):v},u.size=function(t){return arguments.length?(c=t,u):c},u.linkDistance=function(t){return arguments.length?(f="function"==typeof t?t:+t,u):f},u.distance=u.linkDistance,u.linkStrength=function(t){return arguments.length?(h="function"==typeof t?t:+t,u):h},u.friction=function(t){return arguments.length?(l=+t,u):l},u.charge=function(t){return arguments.length?(d="function"==typeof t?t:+t,u):d},u.chargeDistance=function(t){return arguments.length?(p=t*t,u):Math.sqrt(p)},u.gravity=function(t){return arguments.length?(g=+t,u):g},u.theta=function(t){return arguments.length?(y=t*t,u):Math.sqrt(y)},u.alpha=function(t){return arguments.length?(t=+t,r?r=t>0?t:0:t>0&&(s.start({type:"start",alpha:r=t}),Za.timer(u.tick)),u):r},u.start=function(){function t(t,r){if(!e){for(e=new Array(s),u=0;s>u;++u)e[u]=[];for(u=0;c>u;++u){var i=v[u];e[i.source.index].push(i.target),e[i.target.index].push(i.source)}}for(var a,o=e[n],u=-1,c=o.length;++u<c;)if(!isNaN(a=o[u][t]))return a;return Math.random()*r}var n,e,r,s=m.length,l=v.length,p=c[0],g=c[1];for(n=0;s>n;++n)(r=m[n]).index=n,r.weight=0;for(n=0;l>n;++n)r=v[n],"number"==typeof r.source&&(r.source=m[r.source]),"number"==typeof r.target&&(r.target=m[r.target]),++r.source.weight,++r.target.weight;for(n=0;s>n;++n)r=m[n],isNaN(r.x)&&(r.x=t("x",p)),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 f)for(n=0;l>n;++n)i[n]=+f.call(this,v[n],n);else for(n=0;l>n;++n)i[n]=f;if(a=[],"function"==typeof h)for(n=0;l>n;++n)a[n]=+h.call(this,v[n],n);else for(n=0;l>n;++n)a[n]=h;if(o=[],"function"==typeof d)for(n=0;s>n;++n)o[n]=+d.call(this,m[n],n);else for(n=0;s>n;++n)o[n]=d;return u.resume()},u.resume=function(){return u.alpha(.1)},u.stop=function(){return u.alpha(0)},u.drag=function(){return e||(e=Za.behavior.drag().origin(Dt).on("dragstart.force",$r).on("drag.force",n).on("dragend.force",Wr)),arguments.length?void this.on("mouseover.force",Zr).on("mouseout.force",Xr).call(e):e},Za.rebind(u,s,"on")};var cs=20,ls=1,fs=1/0;Za.layout.hierarchy=function(){function t(i){var a,o=[i],u=[];for(i.depth=0;null!=(a=o.pop());)if(u.push(a),(c=e.call(t,a,a.depth))&&(s=c.length)){for(var s,c,l;--s>=0;)o.push(l=c[s]),l.parent=a,l.depth=a.depth+1;r&&(a.value=0),a.children=c}else r&&(a.value=+r.call(t,a,a.depth)||0),delete a.children;return ti(i,function(t){var e,i;n&&(e=t.children)&&e.sort(n),r&&(i=t.parent)&&(i.value+=t.value)}),u}var n=ri,e=ni,r=ei;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&&(Qr(n,function(t){t.children&&(t.value=0)}),ti(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},Za.layout.partition=function(){function t(n,e,r,i){
  var a=n.children;if(n.x=e,n.y=n.depth*i,n.dx=r,n.dy=i,a&&(o=a.length)){var o,u,s,c=-1;for(r=n.value?r/n.value:0;++c<o;)t(u=a[c],e,s=u.value*r,i),e+=s}}function n(t){var e=t.children,r=0;if(e&&(i=e.length))for(var i,a=-1;++a<i;)r=Math.max(r,n(e[a]));return 1+r}function e(e,a){var o=r.call(this,e,a);return t(o[0],0,i[0],i[1]/n(o[0])),o}var r=Za.layout.hierarchy(),i=[1,1];return e.size=function(t){return arguments.length?(i=t,e):i},Jr(e,r)},Za.layout.pie=function(){function t(a){var o=a.map(function(e,r){return+n.call(t,e,r)}),u=+("function"==typeof r?r.apply(this,arguments):r),s=(("function"==typeof i?i.apply(this,arguments):i)-u)/Za.sum(o),c=Za.range(a.length);null!=e&&c.sort(e===hs?function(t,n){return o[n]-o[t]}:function(t,n){return e(a[t],a[n])});var l=[];return c.forEach(function(t){var n;l[t]={data:a[t],value:n=o[t],startAngle:u,endAngle:u+=n*s}}),l}var n=Number,e=hs,r=0,i=Co;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?(i=n,t):i},t};var hs={};Za.layout.stack=function(){function t(u,s){if(!(h=u.length))return u;var c=u.map(function(e,r){return n.call(t,e,r)}),l=c.map(function(n){return n.map(function(n,e){return[a.call(t,n,e),o.call(t,n,e)]})}),f=e.call(t,l,s);c=Za.permute(c,f),l=Za.permute(l,f);var h,d,p,g,y=r.call(t,l,s),m=c[0].length;for(p=0;m>p;++p)for(i.call(t,c[0][p],g=y[p],l[0][p][1]),d=1;h>d;++d)i.call(t,c[d][p],g+=l[d-1][p][1],l[d][p][1]);return u}var n=Dt,e=si,r=ci,i=ui,a=ai,o=oi;return t.values=function(e){return arguments.length?(n=e,t):n},t.order=function(n){return arguments.length?(e="function"==typeof n?n:ds.get(n)||si,t):e},t.offset=function(n){return arguments.length?(r="function"==typeof n?n:ps.get(n)||ci,t):r},t.x=function(n){return arguments.length?(a=n,t):a},t.y=function(n){return arguments.length?(o=n,t):o},t.out=function(n){return arguments.length?(i=n,t):i},t};var ds=Za.map({"inside-out":function(t){var n,e,r=t.length,i=t.map(li),a=t.map(fi),o=Za.range(r).sort(function(t,n){return i[t]-i[n]}),u=0,s=0,c=[],l=[];for(n=0;r>n;++n)e=o[n],s>u?(u+=a[e],c.push(e)):(s+=a[e],l.push(e));return l.reverse().concat(c)},reverse:function(t){return Za.range(t.length).reverse()},"default":si}),ps=Za.map({silhouette:function(t){var n,e,r,i=t.length,a=t[0].length,o=[],u=0,s=[];for(e=0;a>e;++e){for(n=0,r=0;i>n;n++)r+=t[n][e][1];r>u&&(u=r),o.push(r)}for(e=0;a>e;++e)s[e]=(u-o[e])/2;return s},wiggle:function(t){var n,e,r,i,a,o,u,s,c,l=t.length,f=t[0],h=f.length,d=[];for(d[0]=s=c=0,e=1;h>e;++e){for(n=0,i=0;l>n;++n)i+=t[n][e][1];for(n=0,a=0,u=f[e][0]-f[e-1][0];l>n;++n){for(r=0,o=(t[n][e][1]-t[n][e-1][1])/(2*u);n>r;++r)o+=(t[r][e][1]-t[r][e-1][1])/u;a+=o*t[n][e][1]}d[e]=s-=i?a/i*u:0,c>s&&(c=s)}for(e=0;h>e;++e)d[e]-=c;return d},expand:function(t){var n,e,r,i=t.length,a=t[0].length,o=1/i,u=[];for(e=0;a>e;++e){for(n=0,r=0;i>n;n++)r+=t[n][e][1];if(r)for(n=0;i>n;n++)t[n][e][1]/=r;else for(n=0;i>n;n++)t[n][e][1]=o}for(e=0;a>e;++e)u[e]=0;return u},zero:ci});Za.layout.histogram=function(){function t(t,a){for(var o,u,s=[],c=t.map(e,this),l=r.call(this,c,a),f=i.call(this,l,c,a),a=-1,h=c.length,d=f.length-1,p=n?1:1/h;++a<d;)o=s[a]=[],o.dx=f[a+1]-(o.x=f[a]),o.y=0;if(d>0)for(a=-1;++a<h;)u=c[a],u>=l[0]&&u<=l[1]&&(o=s[Za.bisect(f,u,1,d)-1],o.y+=p,o.push(t[a]));return s}var n=!0,e=Number,r=gi,i=di;return t.value=function(n){return arguments.length?(e=n,t):e},t.range=function(n){return arguments.length?(r=At(n),t):r},t.bins=function(n){return arguments.length?(i="number"==typeof n?function(t){return pi(t,n)}:At(n),t):i},t.frequency=function(e){return arguments.length?(n=!!e,t):n},t},Za.layout.pack=function(){function t(t,a){var o=e.call(this,t,a),u=o[0],s=i[0],c=i[1],l=null==n?Math.sqrt:"function"==typeof n?n:function(){return n};if(u.x=u.y=0,ti(u,function(t){t.r=+l(t.value)}),ti(u,_i),r){var f=r*(n?1:Math.max(2*u.r/s,2*u.r/c))/2;ti(u,function(t){t.r+=f}),ti(u,_i),ti(u,function(t){t.r-=f})}return ki(u,s/2,c/2,n?1:1/Math.max(2*u.r/s,2*u.r/c)),o}var n,e=Za.layout.hierarchy().sort(yi),r=0,i=[1,1];return t.size=function(n){return arguments.length?(i=n,t):i},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},Jr(t,e)},Za.layout.tree=function(){function t(t,i){var l=o.call(this,t,i),f=l[0],h=n(f);if(ti(h,e),h.parent.m=-h.z,Qr(h,r),c)Qr(f,a);else{var d=f,p=f,g=f;Qr(f,function(t){t.x<d.x&&(d=t),t.x>p.x&&(p=t),t.depth>g.depth&&(g=t)});var y=u(d,p)/2-d.x,m=s[0]/(p.x+u(p,d)/2+y),v=s[1]/(g.depth||1);Qr(f,function(t){t.x=(t.x+y)*m,t.y=t.depth*v})}return l}function n(t){for(var n,e={A:null,children:[t]},r=[e];null!=(n=r.pop());)for(var i,a=n.children,o=0,u=a.length;u>o;++o)r.push((a[o]=i={_:a[o],parent:n,children:(i=a[o].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);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){Ci(t);var a=(n[0].z+n[n.length-1].z)/2;r?(t.z=r.z+u(t._,r._),t.m=t.z-a):t.z=a}else r&&(t.z=r.z+u(t._,r._));t.parent.A=i(t,r,t.parent.A||e[0])}function r(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function i(t,n,e){if(n){for(var r,i=t,a=t,o=n,s=i.parent.children[0],c=i.m,l=a.m,f=o.m,h=s.m;o=Di(o),i=Ai(i),o&&i;)s=Ai(s),a=Di(a),a.a=t,r=o.z+f-i.z-c+u(o._,i._),r>0&&(Si(Ti(o,t,e),t,r),c+=r,l+=r),f+=o.m,c+=i.m,h+=s.m,l+=a.m;o&&!Di(a)&&(a.t=o,a.m+=f-l),i&&!Ai(s)&&(s.t=i,s.m+=c-h,e=t)}return e}function a(t){t.x*=s[0],t.y=t.depth*s[1]}var o=Za.layout.hierarchy().sort(null).value(null),u=Mi,s=[1,1],c=null;return t.separation=function(n){return arguments.length?(u=n,t):u},t.size=function(n){return arguments.length?(c=null==(s=n)?a:null,t):c?null:s},t.nodeSize=function(n){return arguments.length?(c=null==(s=n)?null:a,t):c?s:null},Jr(t,o)},Za.layout.cluster=function(){function t(t,a){var o,u=n.call(this,t,a),s=u[0],c=0;ti(s,function(t){var n=t.children;n&&n.length?(t.x=Ni(n),t.y=Fi(n)):(t.x=o?c+=e(t,o):0,t.y=0,o=t)});var l=Li(s),f=Bi(s),h=l.x-e(l,f)/2,d=f.x+e(f,l)/2;return ti(s,i?function(t){t.x=(t.x-s.x)*r[0],t.y=(s.y-t.y)*r[1]}:function(t){t.x=(t.x-h)/(d-h)*r[0],t.y=(1-(s.y?t.y/s.y:1))*r[1]}),u}var n=Za.layout.hierarchy().sort(null).value(null),e=Mi,r=[1,1],i=!1;return t.separation=function(n){return arguments.length?(e=n,t):e},t.size=function(n){return arguments.length?(i=null==(r=n),t):i?null:r},t.nodeSize=function(n){return arguments.length?(i=null!=(r=n),t):i?r:null},Jr(t,n)},Za.layout.treemap=function(){function t(t,n){for(var e,r,i=-1,a=t.length;++i<a;)r=(e=t[i]).value*(0>n?0:n),e.area=isNaN(r)||0>=r?0:r}function n(e){var a=e.children;if(a&&a.length){var o,u,s,c=f(e),l=[],h=a.slice(),p=1/0,g="slice"===d?c.dx:"dice"===d?c.dy:"slice-dice"===d?1&e.depth?c.dy:c.dx:Math.min(c.dx,c.dy);for(t(h,c.dx*c.dy/e.value),l.area=0;(s=h.length)>0;)l.push(o=h[s-1]),l.area+=o.area,"squarify"!==d||(u=r(l,g))<=p?(h.pop(),p=u):(l.area-=l.pop().area,i(l,g,c,!1),g=Math.min(c.dx,c.dy),l.length=l.area=0,p=1/0);l.length&&(i(l,g,c,!0),l.length=l.area=0),a.forEach(n)}}function e(n){var r=n.children;if(r&&r.length){var a,o=f(n),u=r.slice(),s=[];for(t(u,o.dx*o.dy/n.value),s.area=0;a=u.pop();)s.push(a),s.area+=a.area,null!=a.z&&(i(s,a.z?o.dx:o.dy,o,!u.length),s.length=s.area=0);r.forEach(e)}}function r(t,n){for(var e,r=t.area,i=0,a=1/0,o=-1,u=t.length;++o<u;)(e=t[o].area)&&(a>e&&(a=e),e>i&&(i=e));return r*=r,n*=n,r?Math.max(n*i*p/r,r/(n*a*p)):1/0}function i(t,n,e,r){var i,a=-1,o=t.length,u=e.x,c=e.y,l=n?s(t.area/n):0;if(n==e.dx){for((r||l>e.dy)&&(l=e.dy);++a<o;)i=t[a],i.x=u,i.y=c,i.dy=l,u+=i.dx=Math.min(e.x+e.dx-u,l?s(i.area/l):0);i.z=!0,i.dx+=e.x+e.dx-u,e.y+=l,e.dy-=l}else{for((r||l>e.dx)&&(l=e.dx);++a<o;)i=t[a],i.x=u,i.y=c,i.dx=l,c+=i.dy=Math.min(e.y+e.dy-c,l?s(i.area/l):0);i.z=!1,i.dy+=e.y+e.dy-c,e.x+=l,e.dx-=l}}function a(r){var i=o||u(r),a=i[0];return a.x=0,a.y=0,a.dx=c[0],a.dy=c[1],o&&u.revalue(a),t([a],a.dx*a.dy/a.value),(o?e:n)(a),h&&(o=i),i}var o,u=Za.layout.hierarchy(),s=Math.round,c=[1,1],l=null,f=Oi,h=!1,d="squarify",p=.5*(1+Math.sqrt(5));return a.size=function(t){return arguments.length?(c=t,a):c},a.padding=function(t){function n(n){var e=t.call(a,n,n.depth);return null==e?Oi(n):Ii(n,"number"==typeof e?[e,e,e,e]:e)}function e(n){return Ii(n,t)}if(!arguments.length)return l;var r;return f=null==(l=t)?Oi:"function"==(r=typeof t)?n:"number"===r?(t=[t,t,t,t],e):e,a},a.round=function(t){return arguments.length?(s=t?Math.round:Number,a):s!=Number},a.sticky=function(t){return arguments.length?(h=t,o=null,a):h},a.ratio=function(t){return arguments.length?(p=t,a):p},a.mode=function(t){return arguments.length?(d=t+"",a):d},Jr(a,u)},Za.random={normal:function(t,n){var e=arguments.length;return 2>e&&(n=1),1>e&&(t=0),function(){var e,r,i;do e=2*Math.random()-1,r=2*Math.random()-1,i=e*e+r*r;while(!i||i>1);return t+n*e*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var t=Za.random.normal.apply(Za,arguments);return function(){return Math.exp(t())}},bates:function(t){var n=Za.random.irwinHall(t);return function(){return n()/t}},irwinHall:function(t){return function(){for(var n=0,e=0;t>e;e++)n+=Math.random();return n}}},Za.scale={};var gs={floor:Dt,ceil:Dt};Za.scale.linear=function(){return Yi([0,1],[0,1],vr,!1)};var ys={s:1,g:1,p:1,r:1,e:1};Za.scale.log=function(){return Ki(Za.scale.linear().domain([0,1]),10,!0,[1,10])};var ms=Za.format(".0e"),vs={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};Za.scale.pow=function(){return Ji(Za.scale.linear(),1,[0,1])},Za.scale.sqrt=function(){return Za.scale.pow().exponent(.5)},Za.scale.ordinal=function(){return ta([],{t:"range",a:[[]]})},Za.scale.category10=function(){return Za.scale.ordinal().range(bs)},Za.scale.category20=function(){return Za.scale.ordinal().range(_s)},Za.scale.category20b=function(){return Za.scale.ordinal().range(xs)},Za.scale.category20c=function(){return Za.scale.ordinal().range(ws)};var bs=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(bt),_s=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(bt),xs=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(bt),ws=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(bt);Za.scale.quantile=function(){return na([],[])},Za.scale.quantize=function(){return ea(0,1,[0,1])},Za.scale.threshold=function(){return ra([.5],[0,1])},Za.scale.identity=function(){return ia([0,1])},Za.svg={},Za.svg.arc=function(){function t(){var t=n.apply(this,arguments),a=e.apply(this,arguments),o=r.apply(this,arguments)+ks,u=i.apply(this,arguments)+ks,s=(o>u&&(s=o,o=u,u=s),u-o),c=So>s?"0":"1",l=Math.cos(o),f=Math.sin(o),h=Math.cos(u),d=Math.sin(u);return s>=Es?t?"M0,"+a+"A"+a+","+a+" 0 1,1 0,"+-a+"A"+a+","+a+" 0 1,1 0,"+a+"M0,"+t+"A"+t+","+t+" 0 1,0 0,"+-t+"A"+t+","+t+" 0 1,0 0,"+t+"Z":"M0,"+a+"A"+a+","+a+" 0 1,1 0,"+-a+"A"+a+","+a+" 0 1,1 0,"+a+"Z":t?"M"+a*l+","+a*f+"A"+a+","+a+" 0 "+c+",1 "+a*h+","+a*d+"L"+t*h+","+t*d+"A"+t+","+t+" 0 "+c+",0 "+t*l+","+t*f+"Z":"M"+a*l+","+a*f+"A"+a+","+a+" 0 "+c+",1 "+a*h+","+a*d+"L0,0Z"}var n=aa,e=oa,r=ua,i=sa;return t.innerRadius=function(e){return arguments.length?(n=At(e),t):n},t.outerRadius=function(n){return arguments.length?(e=At(n),t):e},t.startAngle=function(n){return arguments.length?(r=At(n),t):r},t.endAngle=function(n){return arguments.length?(i=At(n),t):i},t.centroid=function(){var t=(n.apply(this,arguments)+e.apply(this,arguments))/2,a=(r.apply(this,arguments)+i.apply(this,arguments))/2+ks;return[Math.cos(a)*t,Math.sin(a)*t]},t};var ks=-To,Es=Co-Fo;Za.svg.line=function(){return ca(Dt)};var Ms=Za.map({linear:la,"linear-closed":fa,step:ha,"step-before":da,"step-after":pa,basis:_a,"basis-open":xa,"basis-closed":wa,bundle:ka,cardinal:ma,"cardinal-open":ga,"cardinal-closed":ya,monotone:Ca});Ms.forEach(function(t,n){n.key=t,n.closed=/-closed$/.test(t)});var As=[0,2/3,1/3,0],Ds=[0,1/3,2/3,0],Ss=[0,1/6,2/3,1/6];Za.svg.line.radial=function(){var t=ca(Ta);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},da.reverse=pa,pa.reverse=da,Za.svg.area=function(){return Fa(Dt)},Za.svg.area.radial=function(){var t=Fa(Ta);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},Za.svg.chord=function(){function t(t,u){var s=n(this,a,t,u),c=n(this,o,t,u);return"M"+s.p0+r(s.r,s.p1,s.a1-s.a0)+(e(s,c)?i(s.r,s.p1,s.r,s.p0):i(s.r,s.p1,c.r,c.p0)+r(c.r,c.p1,c.a1-c.a0)+i(c.r,c.p1,s.r,s.p0))+"Z"}function n(t,n,e,r){var i=n.call(t,e,r),a=u.call(t,i,r),o=s.call(t,i,r)+ks,l=c.call(t,i,r)+ks;return{r:a,a0:o,a1:l,p0:[a*Math.cos(o),a*Math.sin(o)],p1:[a*Math.cos(l),a*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>So)+",1 "+n}function i(t,n,e,r){return"Q 0,0 "+r}var a=be,o=_e,u=Na,s=ua,c=sa;return t.radius=function(n){return arguments.length?(u=At(n),t):u},t.source=function(n){return arguments.length?(a=At(n),t):a},t.target=function(n){return arguments.length?(o=At(n),t):o},t.startAngle=function(n){return arguments.length?(s=At(n),t):s},t.endAngle=function(n){return arguments.length?(c=At(n),t):c},t},Za.svg.diagonal=function(){function t(t,i){var a=n.call(this,t,i),o=e.call(this,t,i),u=(a.y+o.y)/2,s=[a,{x:a.x,y:u},{x:o.x,y:u},o];return s=s.map(r),"M"+s[0]+"C"+s[1]+" "+s[2]+" "+s[3]}var n=be,e=_e,r=La;return t.source=function(e){return arguments.length?(n=At(e),t):n},t.target=function(n){return arguments.length?(e=At(n),t):e},t.projection=function(n){return arguments.length?(r=n,t):r},t},Za.svg.diagonal.radial=function(){var t=Za.svg.diagonal(),n=La,e=t.projection;return t.projection=function(t){return arguments.length?e(Ba(n=t)):n},t},Za.svg.symbol=function(){function t(t,r){return(Cs.get(n.call(this,t,r))||qa)(e.call(this,t,r))}var n=Ia,e=Oa;return t.type=function(e){return arguments.length?(n=At(e),t):n},t.size=function(n){return arguments.length?(e=At(n),t):e},t};var Cs=Za.map({circle:qa,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*Ls)),e=n*Ls;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/Ns),e=n*Ns/2;return"M0,"+e+"L"+n+","+-e+" "+-n+","+-e+"Z"},"triangle-up":function(t){var n=Math.sqrt(t/Ns),e=n*Ns/2;return"M0,"+-e+"L"+n+","+e+" "+-n+","+e+"Z"}});Za.svg.symbolTypes=Cs.keys();var Ts,Fs,Ns=Math.sqrt(3),Ls=Math.tan(30*Lo),Bs=[],Os=0;Bs.call=_o.call,Bs.empty=_o.empty,Bs.node=_o.node,Bs.size=_o.size,Za.transition=function(t){return arguments.length?Ts?t.transition():t:ko.transition()},Za.transition.prototype=Bs,Bs.select=function(t){var n,e,r,i=this.id,a=[];t=A(t);for(var o=-1,u=this.length;++o<u;){a.push(n=[]);for(var s=this[o],c=-1,l=s.length;++c<l;)(r=s[c])&&(e=t.call(r,r.__data__,c,o))?("__data__"in r&&(e.__data__=r.__data__),Ua(e,c,i,r.__transition__[i]),n.push(e)):n.push(null)}return Ra(a,i)},Bs.selectAll=function(t){var n,e,r,i,a,o=this.id,u=[];t=D(t);for(var s=-1,c=this.length;++s<c;)for(var l=this[s],f=-1,h=l.length;++f<h;)if(r=l[f]){a=r.__transition__[o],e=t.call(r,r.__data__,f,s),u.push(n=[]);for(var d=-1,p=e.length;++d<p;)(i=e[d])&&Ua(i,d,o,a),n.push(i)}return Ra(u,o)},Bs.filter=function(t){var n,e,r,i=[];"function"!=typeof t&&(t=R(t));for(var a=0,o=this.length;o>a;a++){i.push(n=[]);for(var e=this[a],u=0,s=e.length;s>u;u++)(r=e[u])&&t.call(r,r.__data__,u,a)&&n.push(r)}return Ra(i,this.id)},Bs.tween=function(t,n){var e=this.id;return arguments.length<2?this.node().__transition__[e].tween.get(t):j(this,null==n?function(n){n.__transition__[e].tween.remove(t)}:function(r){r.__transition__[e].tween.set(t,n)})},Bs.attr=function(t,n){function e(){this.removeAttribute(u)}function r(){this.removeAttributeNS(u.space,u.local)}function i(t){return null==t?e:(t+="",function(){var n,e=this.getAttribute(u);return e!==t&&(n=o(e,t),function(t){this.setAttribute(u,n(t))})})}function a(t){return null==t?r:(t+="",function(){var n,e=this.getAttributeNS(u.space,u.local);return e!==t&&(n=o(e,t),function(t){this.setAttributeNS(u.space,u.local,n(t))})})}if(arguments.length<2){for(n in t)this.attr(n,t[n]);return this}var o="transform"==t?Ur:vr,u=Za.ns.qualify(t);return Pa(this,"attr."+t,n,u.local?a:i)},Bs.attrTween=function(t,n){function e(t,e){var r=n.call(this,t,e,this.getAttribute(i));return r&&function(t){this.setAttribute(i,r(t))}}function r(t,e){var r=n.call(this,t,e,this.getAttributeNS(i.space,i.local));return r&&function(t){this.setAttributeNS(i.space,i.local,r(t))}}var i=Za.ns.qualify(t);return this.tween("attr."+t,i.local?r:e)},Bs.style=function(t,n,e){function r(){this.style.removeProperty(t)}function i(n){return null==n?r:(n+="",function(){var r,i=to.getComputedStyle(this,null).getPropertyValue(t);return i!==n&&(r=vr(i,n),function(n){this.style.setProperty(t,r(n),e)})})}var a=arguments.length;if(3>a){if("string"!=typeof t){2>a&&(n="");for(e in t)this.style(e,t[e],n);return this}e=""}return Pa(this,"style."+t,n,i)},Bs.styleTween=function(t,n,e){function r(r,i){var a=n.call(this,r,i,to.getComputedStyle(this,null).getPropertyValue(t));return a&&function(n){this.style.setProperty(t,a(n),e)}}return arguments.length<3&&(e=""),this.tween("style."+t,r)},Bs.text=function(t){return Pa(this,"text",t,ja)},Bs.remove=function(){return this.each("end.transition",function(){var t;this.__transition__.count<2&&(t=this.parentNode)&&t.removeChild(this)})},Bs.ease=function(t){var n=this.id;return arguments.length<1?this.node().__transition__[n].ease:("function"!=typeof t&&(t=Za.ease.apply(Za,arguments)),j(this,function(e){e.__transition__[n].ease=t}))},Bs.delay=function(t){var n=this.id;return arguments.length<1?this.node().__transition__[n].delay:j(this,"function"==typeof t?function(e,r,i){e.__transition__[n].delay=+t.call(e,e.__data__,r,i)}:(t=+t,function(e){e.__transition__[n].delay=t}))},Bs.duration=function(t){var n=this.id;return arguments.length<1?this.node().__transition__[n].duration:j(this,"function"==typeof t?function(e,r,i){e.__transition__[n].duration=Math.max(1,t.call(e,e.__data__,r,i))}:(t=Math.max(1,t),function(e){e.__transition__[n].duration=t}))},Bs.each=function(t,n){var e=this.id;if(arguments.length<2){var r=Fs,i=Ts;Ts=e,j(this,function(n,r,i){Fs=n.__transition__[e],t.call(n,n.__data__,r,i)}),Fs=r,Ts=i}else j(this,function(r){var i=r.__transition__[e];(i.event||(i.event=Za.dispatch("start","end"))).on(t,n)});return this},Bs.transition=function(){for(var t,n,e,r,i=this.id,a=++Os,o=[],u=0,s=this.length;s>u;u++){o.push(t=[]);for(var n=this[u],c=0,l=n.length;l>c;c++)(e=n[c])&&(r=Object.create(e.__transition__[i]),r.delay+=r.duration,Ua(e,c,a,r)),t.push(e)}return Ra(o,a)},Za.svg.axis=function(){function t(t){t.each(function(){var t,c=Za.select(this),l=this.__chart__||e,f=this.__chart__=e.copy(),h=null==s?f.ticks?f.ticks.apply(f,u):f.domain():s,d=null==n?f.tickFormat?f.tickFormat.apply(f,u):Dt:n,p=c.selectAll(".tick").data(h,f),g=p.enter().insert("g",".domain").attr("class","tick").style("opacity",Fo),y=Za.transition(p.exit()).style("opacity",Fo).remove(),m=Za.transition(p.order()).style("opacity",1),v=Math.max(i,0)+o,b=Ri(f),_=c.selectAll(".domain").data([0]),x=(_.enter().append("path").attr("class","domain"),Za.transition(_));g.append("line"),g.append("text");var w,k,E,M,A=g.select("line"),D=m.select("line"),S=p.select("text").text(d),C=g.select("text"),T=m.select("text"),F="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(t=za,w="x",E="y",k="x2",M="y2",S.attr("dy",0>F?"0em":".71em").style("text-anchor","middle"),x.attr("d","M"+b[0]+","+F*a+"V0H"+b[1]+"V"+F*a)):(t=Ya,w="y",E="x",k="y2",M="x2",S.attr("dy",".32em").style("text-anchor",0>F?"end":"start"),x.attr("d","M"+F*a+","+b[0]+"H0V"+b[1]+"H"+F*a)),A.attr(M,F*i),C.attr(E,F*v),D.attr(k,0).attr(M,F*i),T.attr(w,0).attr(E,F*v),f.rangeBand){var N=f,L=N.rangeBand()/2;l=f=function(t){return N(t)+L}}else l.rangeBand?l=f:y.call(t,f,l);g.call(t,l,f),m.call(t,f,f)})}var n,e=Za.scale.linear(),r=Is,i=6,a=6,o=3,u=[10],s=null;return t.scale=function(n){return arguments.length?(e=n,t):e},t.orient=function(n){return arguments.length?(r=n in qs?n+"":Is,t):r},t.ticks=function(){return arguments.length?(u=arguments,t):u},t.tickValues=function(n){return arguments.length?(s=n,t):s},t.tickFormat=function(e){return arguments.length?(n=e,t):n},t.tickSize=function(n){var e=arguments.length;return e?(i=+n,a=+arguments[e-1],t):i},t.innerTickSize=function(n){return arguments.length?(i=+n,t):i},t.outerTickSize=function(n){return arguments.length?(a=+n,t):a},t.tickPadding=function(n){return arguments.length?(o=+n,t):o},t.tickSubdivide=function(){return arguments.length&&t},t};var Is="bottom",qs={top:1,right:1,bottom:1,left:1};Za.svg.brush=function(){function t(a){a.each(function(){var a=Za.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",i).on("touchstart.brush",i),o=a.selectAll(".background").data([0]);o.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),a.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var u=a.selectAll(".resize").data(p,Dt);u.exit().remove(),u.enter().append("g").attr("class",function(t){return"resize "+t}).style("cursor",function(t){return Rs[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"),u.style("display",t.empty()?"none":null);var l,f=Za.transition(a),h=Za.transition(o);s&&(l=Ri(s),h.attr("x",l[0]).attr("width",l[1]-l[0]),e(f)),c&&(l=Ri(c),h.attr("y",l[0]).attr("height",l[1]-l[0]),r(f)),n(f)})}function n(t){t.selectAll(".resize").attr("transform",function(t){return"translate("+l[+/e$/.test(t)]+","+f[+/^s/.test(t)]+")"})}function e(t){t.select(".extent").attr("x",l[0]),t.selectAll(".extent,.n>rect,.s>rect").attr("width",l[1]-l[0])}function r(t){t.select(".extent").attr("y",f[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",f[1]-f[0])}function i(){function i(){32==Za.event.keyCode&&(S||(v=null,T[0]-=l[1],T[1]-=f[1],S=2),w())}function p(){32==Za.event.keyCode&&2==S&&(T[0]+=l[1],T[1]+=f[1],S=0,w())}function g(){var t=Za.mouse(_),i=!1;b&&(t[0]+=b[0],t[1]+=b[1]),S||(Za.event.altKey?(v||(v=[(l[0]+l[1])/2,(f[0]+f[1])/2]),T[0]=l[+(t[0]<v[0])],T[1]=f[+(t[1]<v[1])]):v=null),A&&y(t,s,0)&&(e(E),i=!0),D&&y(t,c,1)&&(r(E),i=!0),i&&(n(E),k({type:"brush",mode:S?"move":"resize"}))}function y(t,n,e){var r,i,u=Ri(n),s=u[0],c=u[1],p=T[e],g=e?f:l,y=g[1]-g[0];return S&&(s-=p,c-=y+p),r=(e?d:h)?Math.max(s,Math.min(c,t[e])):t[e],S?i=(r+=p)+y:(v&&(p=Math.max(s,Math.min(c,2*v[e]-r))),r>p?(i=r,r=p):i=p),g[0]!=r||g[1]!=i?(e?o=null:a=null,g[0]=r,g[1]=i,!0):void 0}function m(){g(),E.style("pointer-events","all").selectAll(".resize").style("display",t.empty()?"none":null),Za.select("body").style("cursor",null),F.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),C(),k({type:"brushend"})}var v,b,_=this,x=Za.select(Za.event.target),k=u.of(_,arguments),E=Za.select(_),M=x.datum(),A=!/^(n|s)$/.test(M)&&s,D=!/^(e|w)$/.test(M)&&c,S=x.classed("extent"),C=$(),T=Za.mouse(_),F=Za.select(to).on("keydown.brush",i).on("keyup.brush",p);if(Za.event.changedTouches?F.on("touchmove.brush",g).on("touchend.brush",m):F.on("mousemove.brush",g).on("mouseup.brush",m),E.interrupt().selectAll("*").interrupt(),S)T[0]=l[0]-T[0],T[1]=f[0]-T[1];else if(M){var N=+/w$/.test(M),L=+/^n/.test(M);b=[l[1-N]-T[0],f[1-L]-T[1]],T[0]=l[N],T[1]=f[L]}else Za.event.altKey&&(v=T.slice());E.style("pointer-events","none").selectAll(".resize").style("display",null),Za.select("body").style("cursor",x.style("cursor")),k({type:"brushstart"}),g()}var a,o,u=E(t,"brushstart","brush","brushend"),s=null,c=null,l=[0,0],f=[0,0],h=!0,d=!0,p=Ps[0];return t.event=function(t){t.each(function(){var t=u.of(this,arguments),n={x:l,y:f,i:a,j:o},e=this.__chart__||n;this.__chart__=n,Ts?Za.select(this).transition().each("start.brush",function(){a=e.i,o=e.j,l=e.x,f=e.y,t({type:"brushstart"})}).tween("brush:brush",function(){var e=br(l,n.x),r=br(f,n.y);return a=o=null,function(i){l=n.x=e(i),f=n.y=r(i),t({type:"brush",mode:"resize"})}}).each("end.brush",function(){a=n.i,o=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?(s=n,p=Ps[!s<<1|!c],t):s},t.y=function(n){return arguments.length?(c=n,p=Ps[!s<<1|!c],t):c},t.clamp=function(n){return arguments.length?(s&&c?(h=!!n[0],d=!!n[1]):s?h=!!n:c&&(d=!!n),t):s&&c?[h,d]:s?h:c?d:null},t.extent=function(n){var e,r,i,u,h;return arguments.length?(s&&(e=n[0],r=n[1],c&&(e=e[0],r=r[0]),a=[e,r],s.invert&&(e=s(e),r=s(r)),e>r&&(h=e,e=r,r=h),(e!=l[0]||r!=l[1])&&(l=[e,r])),c&&(i=n[0],u=n[1],s&&(i=i[1],u=u[1]),o=[i,u],c.invert&&(i=c(i),u=c(u)),i>u&&(h=i,i=u,u=h),(i!=f[0]||u!=f[1])&&(f=[i,u])),t):(s&&(a?(e=a[0],r=a[1]):(e=l[0],r=l[1],s.invert&&(e=s.invert(e),r=s.invert(r)),e>r&&(h=e,e=r,r=h))),c&&(o?(i=o[0],u=o[1]):(i=f[0],u=f[1],c.invert&&(i=c.invert(i),u=c.invert(u)),i>u&&(h=i,i=u,u=h))),s&&c?[[e,i],[r,u]]:s?[e,r]:c&&[i,u])},t.clear=function(){return t.empty()||(l=[0,0],f=[0,0],a=o=null),t},t.empty=function(){return!!s&&l[0]==l[1]||!!c&&f[0]==f[1]},Za.rebind(t,u,"on")};var Rs={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Ps=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],js=au.format=fu.timeFormat,Us=js.utc,zs=Us("%Y-%m-%dT%H:%M:%S.%LZ");js.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Va:zs,Va.parse=function(t){var n=new Date(t);return isNaN(n)?null:n},Va.toString=zs.toString,au.second=jt(function(t){return new ou(1e3*Math.floor(t/1e3))},function(t,n){t.setTime(t.getTime()+1e3*Math.floor(n))},function(t){return t.getSeconds()}),au.seconds=au.second.range,au.seconds.utc=au.second.utc.range,au.minute=jt(function(t){return new ou(6e4*Math.floor(t/6e4))},function(t,n){t.setTime(t.getTime()+6e4*Math.floor(n))},function(t){return t.getMinutes()}),au.minutes=au.minute.range,au.minutes.utc=au.minute.utc.range,au.hour=jt(function(t){var n=t.getTimezoneOffset()/60;return new ou(36e5*(Math.floor(t/36e5-n)+n))},function(t,n){t.setTime(t.getTime()+36e5*Math.floor(n))},function(t){return t.getHours()}),au.hours=au.hour.range,au.hours.utc=au.hour.utc.range,au.month=jt(function(t){return t=au.day(t),t.setDate(1),t},function(t,n){t.setMonth(t.getMonth()+n)},function(t){return t.getMonth()}),au.months=au.month.range,au.months.utc=au.month.utc.range;var Ys=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Vs=[[au.second,1],[au.second,5],[au.second,15],[au.second,30],[au.minute,1],[au.minute,5],[au.minute,15],[au.minute,30],[au.hour,1],[au.hour,3],[au.hour,6],[au.hour,12],[au.day,1],[au.day,2],[au.week,1],[au.month,1],[au.month,3],[au.year,1]],Hs=js.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",Cn]]),Gs={range:function(t,n,e){return Za.range(Math.ceil(t/e)*e,+n,e).map(Ga)},floor:Dt,ceil:Dt};Vs.year=au.year,au.scale=function(){return Ha(Za.scale.linear(),Vs,Hs)};var $s=Vs.map(function(t){return[t[0].utc,t[1]]}),Ws=Us.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",Cn]]);$s.year=au.year.utc,au.scale.utc=function(){return Ha(Za.scale.linear(),$s,Ws)},Za.text=St(function(t){return t.responseText}),Za.json=function(t,n){return Ct(t,"application/json",$a,n)},Za.html=function(t,n){return Ct(t,"text/html",Wa,n)},Za.xml=St(function(t){return t.responseXML}),"function"==typeof define&&define.amd?define(Za):"object"==typeof n&&n.exports&&(n.exports=Za),this.d3=Za}()},{}],2:[function(t,n){n.exports={graphlib:t("./lib/graphlib"),dagre:t("./lib/dagre"),intersect:t("./lib/intersect"),render:t("./lib/render"),util:t("./lib/util"),version:t("./lib/version")}},{"./lib/dagre":9,"./lib/graphlib":10,"./lib/intersect":11,"./lib/render":24,"./lib/util":26,"./lib/version":27}],3:[function(t,n){function e(t,n,e,r){var i=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"),o=i.append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");a.applyStyle(o,e[r+"Style"])}function r(t,n,e,r){var i=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"),o=i.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.applyStyle(o,e[r+"Style"])}function i(t,n,e,r){var i=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"),o=i.append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");a.applyStyle(o,e[r+"Style"])}var a=t("./util");n.exports={"default":e,normal:e,vee:r,undirected:i}},{"./util":26}],4:[function(t,n){function e(t,n){var e=n.nodes().filter(function(t){return r.isSubgraph(n,t)}),i=t.selectAll("g.cluster").data(e,function(t){return t});i.enter().append("g").attr("class","cluster").style("opacity",0).append("rect"),r.applyTransition(i.exit(),n).style("opacity",0).remove(),r.applyTransition(i,n).style("opacity",1),r.applyTransition(i.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){var e=n.node(t);return e.x-e.width/2}).attr("y",function(t){var e=n.node(t);return e.y-e.height/2})}var r=t("./util");n.exports=e},{"./util":26}],5:[function(t,n){"use strict";function e(t,n){var e=t.selectAll("g.edgeLabel").data(n.edges(),function(t){return a.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),a=i(o.select(this),n.edge(t),0,0).classed("label",!0),u=a.node().getBBox();e.labelId&&a.attr("id",e.labelId),r.has(e,"width")||(e.width=u.width),r.has(e,"height")||(e.height=u.height)}),a.applyTransition(e.exit(),n).style("opacity",0).remove(),e}var r=t("./lodash"),i=t("./label/add-label"),a=t("./util"),o=t("./d3");n.exports=e},{"./d3":8,"./label/add-label":19,"./lodash":21,"./util":26}],6:[function(t,n){"use strict";function e(t,n,e){var i=t.selectAll("g.edgePath").data(n.edges(),function(t){return l.edgeToId(t)}).classed("update",!0);return o(i,n),u(i,n),l.applyTransition(i,n).style("opacity",1),i.each(function(t){var e=f.select(this),r=n.edge(t);
  
  r.elem=this,r.id&&e.attr("id",r.id),l.applyClass(e,r["class"],(e.classed("update")?"update ":"")+"edgePath")}),i.selectAll("path.path").each(function(t){var e=n.edge(t);e.arrowheadId=s.uniqueId("arrowhead");var i=f.select(this).attr("marker-end",function(){return"url(#"+e.arrowheadId+")"}).style("fill","none");l.applyTransition(i,n).attr("d",function(t){return r(n,t)}),l.applyStyle(i,e.style)}),i.selectAll("defs *").remove(),i.selectAll("defs").each(function(t){var r=n.edge(t),i=e[r.arrowhead];i(f.select(this),r.arrowheadId,r,"arrowhead")}),i}function r(t,n){var e=t.edge(n),r=t.node(n.v),a=t.node(n.w),o=e.points.slice(1,e.points.length-1);return o.unshift(c(r,o[0])),o.push(c(a,o[o.length-1])),i(e,o)}function i(t,n){var e=f.svg.line().x(function(t){return t.x}).y(function(t){return t.y});return s.has(t,"lineInterpolate")&&e.interpolate(t.lineInterpolate),s.has(t,"lineTension")&&e.tension(Number(t.lineTension)),e(n)}function a(t){var n=t.getBBox(),e=t.getTransformToElement(t.ownerSVGElement).translate(n.width/2,n.height/2);return{x:e.e,y:e.f}}function o(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,o=s.range(e.points.length).map(function(){return a(r)});return i(e,o)}),e.append("defs")}function u(t,n){var e=t.exit();l.applyTransition(e,n).style("opacity",0).remove(),l.applyTransition(e.select("path.path"),n).attr("d",function(t){var e=n.node(t.v);if(e){var r=s.range(this.pathSegList.length).map(function(){return e});return i({},r)}return f.select(this).attr("d")})}var s=t("./lodash"),c=t("./intersect/intersect-node"),l=t("./util"),f=t("./d3");n.exports=e},{"./d3":8,"./intersect/intersect-node":15,"./lodash":21,"./util":26}],7:[function(t,n){"use strict";function e(t,n,e){var u=n.nodes().filter(function(t){return!a.isSubgraph(n,t)}),s=t.selectAll("g.node").data(u,function(t){return t}).classed("update",!0);return s.selectAll("*").remove(),s.enter().append("g").attr("class","node").style("opacity",0),s.each(function(t){var u=n.node(t),s=o.select(this),c=s.append("g").attr("class","label"),l=i(c,u),f=e[u.shape],h=r.pick(l.node().getBBox(),"width","height");u.elem=this,u.id&&s.attr("id",u.id),u.labelId&&c.attr("id",u.labelId),a.applyClass(s,u["class"],(s.classed("update")?"update ":"")+"node"),r.has(u,"width")&&(h.width=u.width),r.has(u,"height")&&(h.height=u.height),h.width+=u.paddingLeft+u.paddingRight,h.height+=u.paddingTop+u.paddingBottom,c.attr("transform","translate("+(u.paddingLeft-u.paddingRight)/2+","+(u.paddingTop-u.paddingBottom)/2+")");var d=f(o.select(this),h,u);a.applyStyle(d,u.style);var p=d.node().getBBox();u.width=p.width,u.height=p.height}),a.applyTransition(s.exit(),n).style("opacity",0).remove(),s}var r=t("./lodash"),i=t("./label/add-label"),a=t("./util"),o=t("./d3");n.exports=e},{"./d3":8,"./label/add-label":19,"./lodash":21,"./util":26}],8:[function(t,n){n.exports=window.d3},{}],9:[function(t,n){var e;if(t)try{e=t("dagre")}catch(r){}e||(e=window.dagre),n.exports=e},{dagre:28}],10:[function(t,n){var e;if(t)try{e=t("graphlib")}catch(r){}e||(e=window.graphlib),n.exports=e},{graphlib:58}],11:[function(t,n){n.exports={node:t("./intersect-node"),circle:t("./intersect-circle"),ellipse:t("./intersect-ellipse"),polygon:t("./intersect-polygon"),rect:t("./intersect-rect")}},{"./intersect-circle":12,"./intersect-ellipse":13,"./intersect-node":15,"./intersect-polygon":16,"./intersect-rect":17}],12:[function(t,n){function e(t,n,e){return r(t,n,n,e)}var r=t("./intersect-ellipse");n.exports=e},{"./intersect-ellipse":13}],13:[function(t,n){function e(t,n,e,r){var i=t.x,a=t.y,o=i-r.x,u=a-r.y,s=Math.sqrt(n*n*u*u+e*e*o*o),c=Math.abs(n*e*o/s);r.x<i&&(c=-c);var l=Math.abs(n*e*u/s);return r.y<a&&(l=-l),{x:i+c,y:a+l}}n.exports=e},{}],14:[function(t,n){function e(t,n,e,i){var a,o,u,s,c,l,f,h,d,p,g,y,m,v,b;return a=n.y-t.y,u=t.x-n.x,c=n.x*t.y-t.x*n.y,d=a*e.x+u*e.y+c,p=a*i.x+u*i.y+c,0!==d&&0!==p&&r(d,p)||(o=i.y-e.y,s=e.x-i.x,l=i.x*e.y-e.x*i.y,f=o*t.x+s*t.yy+l,h=o*n.x+s*n.y+l,0!==f&&0!==h&&r(f,h)||(g=a*s-o*u,0===g))?void 0:(y=Math.abs(g/2),m=u*l-s*c,v=0>m?(m-y)/g:(m+y)/g,m=o*c-a*l,b=0>m?(m-y)/g:(m+y)/g,{x:v,y:b})}function r(t,n){return t*n>0}n.exports=e},{}],15:[function(t,n){function e(t,n){return t.intersect(n)}n.exports=e},{}],16:[function(t,n){function e(t,n,e){var i=t.x,a=t.y,o=[],u=Number.POSITIVE_INFINITY,s=Number.POSITIVE_INFINITY;n.forEach(function(t){u=Math.min(u,t.x),s=Math.min(s,t.y)});for(var c=i-t.width/2-u,l=a-t.height/2-s,f=0;f<n.length;f++){var h=n[f],d=n[f<n.length-1?f+1:0],p=r(t,e,{x:c+h.x,y:l+h.y},{x:c+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,i=t.y-e.y,a=Math.sqrt(r*r+i*i),o=n.x-e.x,u=n.y-e.y,s=Math.sqrt(o*o+u*u);return s>a?-1:a===s?0:1}),o[0]):(console.log("NO INTERSECTION FOUND, RETURN NODE CENTER",t),t)}var r=t("./intersect-line");n.exports=e},{"./intersect-line":14}],17:[function(t,n){function e(t,n){var e,r,i=t.x,a=t.y,o=n.x-i,u=n.y-a,s=t.width/2,c=t.height/2;return Math.abs(u)*s>Math.abs(o)*c?(0>u&&(c=-c),e=0===u?0:c*o/u,r=c):(0>o&&(s=-s),e=s,r=0===o?0:s*u/o),{x:i+e,y:a+r}}n.exports=e},{}],18:[function(t,n){function e(t,n){var e=t.append("foreignObject").attr("width","100000"),i=e.append("xhtml:div"),a=n.label;switch(typeof a){case"function":i.insert(a);break;case"object":i.insert(function(){return a});break;default:i.html(a)}r.applyStyle(i,n.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap");var o,u;return i.each(function(){o=this.clientWidth,u=this.clientHeight}),e.attr("width",o).attr("height",u),e}var r=t("../util");n.exports=e},{"../util":26}],19:[function(t,n){function e(t,n){var e=n.label,a=t.append("g");"string"!=typeof e||"html"===n.labelType?i(a,n):r(a,n);var o=a.node().getBBox();return a.attr("transform","translate("+-o.width/2+","+-o.height/2+")"),a}var r=t("./add-text-label"),i=t("./add-html-label");n.exports=e},{"./add-html-label":18,"./add-text-label":20}],20:[function(t,n){function e(t,n){for(var e=t.append("text"),a=r(n.label).split("\n"),o=0;o<a.length;o++)e.append("tspan").attr("xml:space","preserve").attr("dy","1em").attr("x","1").text(a[o]);return i.applyStyle(e,n.labelStyle),e}function r(t){for(var n,e="",r=!1,i=0;i<t.length;++i)if(n=t[i],r){switch(n){case"n":e+="\n";break;default:e+=n}r=!1}else"\\"===n?r=!0:e+=n;return e}var i=t("../util");n.exports=e},{"../util":26}],21:[function(t,n){var e;if(t)try{e=t("lodash")}catch(r){}e||(e=window._),n.exports=e},{lodash:82}],22:[function(t,n){"use strict";function e(t,n){function e(t){var e=n.edge(t);return a.has(e,"x")?"translate("+e.x+","+e.y+")":""}var o=t.filter(function(){return!i.select(this).classed("update")});o.attr("transform",e),r.applyTransition(t,n).style("opacity",1).attr("transform",e)}var r=t("./util"),i=t("./d3"),a=t("./lodash");n.exports=e},{"./d3":8,"./lodash":21,"./util":26}],23:[function(t,n){"use strict";function e(t,n){function e(t){var e=n.node(t);return"translate("+e.x+","+e.y+")"}var a=t.filter(function(){return!i.select(this).classed("update")});a.attr("transform",e),r.applyTransition(t,n).style("opacity",1).attr("transform",e)}var r=t("./util"),i=t("./d3");n.exports=e},{"./d3":8,"./util":26}],24:[function(t,n){function e(){var n=t("./create-nodes"),e=t("./create-clusters"),o=t("./create-edge-labels"),s=t("./create-edge-paths"),c=t("./position-nodes"),l=t("./position-edge-labels"),f=t("./shapes"),h=t("./arrows"),d=function(t,d){r(d);var p=a(t,"output"),g=a(p,"clusters"),y=a(p,"edgePaths"),m=o(a(p,"edgeLabels"),d),v=n(a(p,"nodes"),d,f);u(d),c(v,d),l(m,d),s(y,d,h),e(g,d),i(d)};return d.createNodes=function(t){return arguments.length?(n=t,d):n},d.createClusters=function(t){return arguments.length?(e=t,d):e},d.createEdgeLabels=function(t){return arguments.length?(o=t,d):o},d.createEdgePaths=function(t){return arguments.length?(s=t,d):s},d.shapes=function(t){return arguments.length?(f=t,d):f},d.arrows=function(t){return arguments.length?(h=t,d):h},d}function r(t){t.nodes().forEach(function(n){var e=t.node(n);o.has(e,"label")||(e.label=n),o.has(e,"paddingX")&&o.defaults(e,{paddingLeft:e.paddingX,paddingRight:e.paddingX}),o.has(e,"paddingY")&&o.defaults(e,{paddingTop:e.paddingY,paddingBottom:e.paddingY}),o.has(e,"padding")&&o.defaults(e,{paddingLeft:e.padding,paddingRight:e.padding,paddingTop:e.padding,paddingBottom:e.padding}),o.defaults(e,s),o.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],function(t){e[t]=Number(e[t])}),o.has(e,"width")&&(e._prevWidth=e.width),o.has(e,"height")&&(e._prevHeight=e.height)}),t.edges().forEach(function(n){var e=t.edge(n);o.has(e,"label")||(e.label=""),o.defaults(e,c)})}function i(t){o.each(t.nodes(),function(n){var e=t.node(n);o.has(e,"_prevWidth")?e.width=e._prevWidth:delete e.width,o.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}var o=t("./lodash"),u=t("./dagre").layout;n.exports=e;var s={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},c={arrowhead:"normal",lineInterpolate:"linear"}},{"./arrows":3,"./create-clusters":4,"./create-edge-labels":5,"./create-edge-paths":6,"./create-nodes":7,"./dagre":9,"./lodash":21,"./position-edge-labels":22,"./position-nodes":23,"./shapes":25}],25:[function(t,n){"use strict";function e(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 o(e,t)},r}function r(t,n,e){var r=n.width/2,i=n.height/2,a=t.insert("ellipse",":first-child").attr("x",-n.width/2).attr("y",-n.height/2).attr("rx",r).attr("ry",i);return e.intersect=function(t){return u(e,r,i,t)},a}function i(t,n,e){var r=Math.max(n.width,n.height)/2,i=t.insert("circle",":first-child").attr("x",-n.width/2).attr("y",-n.height/2).attr("r",r);return e.intersect=function(t){return s(e,r,t)},i}function a(t,n,e){var r=n.width*Math.SQRT2/2,i=n.height*Math.SQRT2/2,a=[{x:0,y:-i},{x:-r,y:0},{x:0,y:i},{x:r,y:0}],o=t.insert("polygon",":first-child").attr("points",a.map(function(t){return t.x+","+t.y}).join(" "));return e.intersect=function(t){return c(e,a,t)},o}var o=t("./intersect/intersect-rect"),u=t("./intersect/intersect-ellipse"),s=t("./intersect/intersect-circle"),c=t("./intersect/intersect-polygon");n.exports={rect:e,ellipse:r,circle:i,diamond:a}},{"./intersect/intersect-circle":12,"./intersect/intersect-ellipse":13,"./intersect/intersect-polygon":16,"./intersect/intersect-rect":17}],26:[function(t,n){function e(t,n){return!!t.children(n).length}function r(t){return i(t.v)+":"+i(t.w)+":"+i(t.name)}function i(t){return t?String(t).replace(c,"\\:"):""}function a(t,n){n&&t.attr("style",n)}function o(t,n,e){n&&t.attr("class",n).attr("class",e+" "+t.attr("class"))}function u(t,n){var e=n.graph();if(s.isPlainObject(e)){var r=e.transition;if(s.isFunction(r))return r(t)}return t}var s=t("./lodash");n.exports={isSubgraph:e,edgeToId:r,applyStyle:a,applyClass:o,applyTransition:u};var c=/:/g},{"./lodash":21}],27:[function(t,n){n.exports="0.4.3"},{}],28:[function(t,n){n.exports={graphlib:t("./lib/graphlib"),layout:t("./lib/layout"),debug:t("./lib/debug"),util:{time:t("./lib/util").time,notime:t("./lib/util").notime},version:t("./lib/version")}},{"./lib/debug":33,"./lib/graphlib":34,"./lib/layout":36,"./lib/util":56,"./lib/version":57}],29:[function(t,n){"use strict";function e(t){function n(t){return function(n){return t.edge(n).weight}}var e="greedy"===t.graph().acyclicer?o(t,n(t)):r(t);a.each(e,function(n){var e=t.edge(n);t.removeEdge(n),e.forwardName=n.name,e.reversed=!0,t.setEdge(n.w,n.v,e,a.uniqueId("rev"))})}function r(t){function n(o){a.has(i,o)||(i[o]=!0,r[o]=!0,a.each(t.outEdges(o),function(t){a.has(r,t.w)?e.push(t):n(t.w)}),delete r[o])}var e=[],r={},i={};return a.each(t.nodes(),n),e}function i(t){a.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)}})}var a=t("./lodash"),o=t("./greedy-fas");n.exports={run:e,undo:i}},{"./greedy-fas":35,"./lodash":37}],30:[function(t,n){function e(t){function n(e){var a=t.children(e),o=t.node(e);if(a.length&&i.each(a,n),i.has(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var u=o.minRank,s=o.maxRank+1;s>u;++u)r(t,"borderLeft","_bl",e,o,u),r(t,"borderRight","_br",e,o,u)}}i.each(t.children(),n)}function r(t,n,e,r,i,o){var u={width:0,height:0,rank:o},s=i[n][o-1],c=a.addDummyNode(t,"border",u,e);i[n][o]=c,t.setParent(c,r),s&&t.setEdge(s,c,{weight:1})}var i=t("./lodash"),a=t("./util");n.exports=e},{"./lodash":37,"./util":56}],31:[function(t,n){"use strict";function e(t){var n=t.graph().rankdir.toLowerCase();("lr"===n||"rl"===n)&&i(t)}function r(t){var n=t.graph().rankdir.toLowerCase();("bt"===n||"rl"===n)&&o(t),("lr"===n||"rl"===n)&&(s(t),i(t))}function i(t){l.each(t.nodes(),function(n){a(t.node(n))}),l.each(t.edges(),function(n){a(t.edge(n))})}function a(t){var n=t.width;t.width=t.height,t.height=n}function o(t){l.each(t.nodes(),function(n){u(t.node(n))}),l.each(t.edges(),function(n){var e=t.edge(n);l.each(e.points,u),l.has(e,"y")&&u(e)})}function u(t){t.y=-t.y}function s(t){l.each(t.nodes(),function(n){c(t.node(n))}),l.each(t.edges(),function(n){var e=t.edge(n);l.each(e.points,c),l.has(e,"x")&&c(e)})}function c(t){var n=t.x;t.x=t.y,t.y=n}var l=t("./lodash");n.exports={adjust:e,undo:r}},{"./lodash":37}],32:[function(t,n){function e(){var t={};t._next=t._prev=t,this._sentinel=t}function r(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function i(t,n){return"_next"!==t&&"_prev"!==t?n:void 0}n.exports=e,e.prototype.dequeue=function(){var t=this._sentinel,n=t._prev;return n!==t?(r(n),n):void 0},e.prototype.enqueue=function(t){var n=this._sentinel;t._prev&&t._next&&r(t),t._next=n._next,n._next._prev=t,n._next=t,t._prev=n},e.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(", ")+"]"}},{}],33:[function(t,n){function e(t){var n=i.buildLayerMatrix(t),e=new a({compound:!0,multigraph:!0}).setGraph({});return r.each(t.nodes(),function(n){e.setNode(n,{label:n}),e.setParent(n,"layer"+t.node(n).rank)}),r.each(t.edges(),function(t){e.setEdge(t.v,t.w,{},t.name)}),r.each(n,function(t,n){var i="layer"+n;e.setNode(i,{rank:"same"}),r.reduce(t,function(t,n){return e.setEdge(t,n,{style:"invis"}),n})}),e}var r=t("./lodash"),i=t("./util"),a=t("./graphlib").Graph;n.exports={debugOrdering:e}},{"./graphlib":34,"./lodash":37,"./util":56}],34:[function(t,n){n.exports=t(10)},{graphlib:58}],35:[function(t,n){function e(t,n){if(t.nodeCount()<=1)return[];var e=a(t,n||l),i=r(e.graph,e.buckets,e.zeroIdx);return u.flatten(u.map(i,function(n){return t.outEdges(n.v,n.w)}),!0)}function r(t,n,e){for(var r,a=[],o=n[n.length-1],u=n[0];t.nodeCount();){for(;r=u.dequeue();)i(t,n,e,r);for(;r=o.dequeue();)i(t,n,e,r);if(t.nodeCount())for(var s=n.length-2;s>0;--s)if(r=n[s].dequeue()){a=a.concat(i(t,n,e,r,!0));break}}return a}function i(t,n,e,r,i){var a=i?[]:void 0;return u.each(t.inEdges(r.v),function(r){var u=t.edge(r),s=t.node(r.v);i&&a.push({v:r.v,w:r.w}),s.out-=u,o(n,e,s)}),u.each(t.outEdges(r.v),function(r){var i=t.edge(r),a=r.w,u=t.node(a);u["in"]-=i,o(n,e,u)}),t.removeNode(r.v),a}function a(t,n){var e=new s,r=0,i=0;u.each(t.nodes(),function(t){e.setNode(t,{v:t,"in":0,out:0})}),u.each(t.edges(),function(t){var a=e.edge(t.v,t.w)||0,o=n(t),u=a+o;e.setEdge(t.v,t.w,u),i=Math.max(i,e.node(t.v).out+=o),r=Math.max(r,e.node(t.w)["in"]+=o)});var a=u.range(i+r+3).map(function(){return new c}),l=r+1;return u.each(e.nodes(),function(t){o(a,l,e.node(t))}),{graph:e,buckets:a,zeroIdx:l}}function o(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)}var u=t("./lodash"),s=t("./graphlib").Graph,c=t("./data/list");n.exports=e;var l=u.constant(1)},{"./data/list":32,"./graphlib":34,"./lodash":37}],36:[function(t,n){"use strict";function e(t,n){var e=n&&n.debugTiming?N.time:N.notime;e("layout",function(){var n=e("  buildLayoutGraph",function(){return a(t)});e("  runLayout",function(){r(n,e)}),e("  updateInputGraph",function(){i(t,n)})})}function r(t,n){n("    makeSpaceForEdgeLabels",function(){o(t)}),n("    removeSelfEdges",function(){g(t)}),n("    acyclic",function(){x.run(t)}),n("    nestingGraph.run",function(){D.run(t)}),n("    rank",function(){k(N.asNonCompoundGraph(t))}),n("    injectEdgeLabelProxies",function(){u(t)}),n("    removeEmptyRanks",function(){A(t)}),n("    nestingGraph.cleanup",function(){D.cleanup(t)}),n("    normalizeRanks",function(){E(t)}),n("    assignRankMinMax",function(){s(t)}),n("    removeEdgeLabelProxies",function(){c(t)}),n("    normalize.run",function(){w.run(t)}),n("    parentDummyChains",function(){M(t)}),n("    addBorderSegments",function(){S(t)}),n("    order",function(){T(t)}),n("    insertSelfEdges",function(){y(t)}),n("    adjustCoordinateSystem",function(){C.adjust(t)}),n("    position",function(){F(t)}),n("    positionSelfEdges",function(){m(t)}),n("    removeBorderNodes",function(){p(t)}),n("    normalize.undo",function(){w.undo(t)}),n("    fixupEdgeLabelCoords",function(){h(t)}),n("    undoCoordinateSystem",function(){C.undo(t)}),n("    translateGraph",function(){l(t)}),n("    assignNodeIntersects",function(){f(t)}),n("    reversePoints",function(){d(t)}),n("    acyclic.undo",function(){x.undo(t)})}function i(t,n){_.each(t.nodes(),function(e){var r=t.node(e),i=n.node(e);r&&(r.x=i.x,r.y=i.y,n.children(e).length&&(r.width=i.width,r.height=i.height))}),_.each(t.edges(),function(e){var r=t.edge(e),i=n.edge(e);r.points=i.points,_.has(i,"x")&&(r.x=i.x,r.y=i.y)}),t.graph().width=n.graph().width,t.graph().height=n.graph().height}function a(t){var n=new L({multigraph:!0,compound:!0}),e=b(t.graph());return n.setGraph(_.merge({},O,v(e,B),_.pick(e,I))),_.each(t.nodes(),function(e){var r=b(t.node(e));n.setNode(e,_.defaults(v(r,q),R)),n.setParent(e,t.parent(e))}),_.each(t.edges(),function(e){var r=b(t.edge(e));n.setEdge(e,_.merge({},j,v(r,P),_.pick(r,U)))}),n}function o(t){var n=t.graph();n.ranksep/=2,_.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 u(t){_.each(t.edges(),function(n){var e=t.edge(n);if(e.width&&e.height){var r=t.node(n.v),i=t.node(n.w),a={rank:(i.rank-r.rank)/2+r.rank,e:n};N.addDummyNode(t,"edge-proxy",a,"_ep")}})}function s(t){var n=0;_.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=_.max(n,r.maxRank))}),t.graph().maxRank=n}function c(t){_.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 l(t){function n(t){var n=t.x,o=t.y,u=t.width,s=t.height;e=Math.min(e,n-u/2),r=Math.max(r,n+u/2),i=Math.min(i,o-s/2),a=Math.max(a,o+s/2)}var e=Number.POSITIVE_INFINITY,r=0,i=Number.POSITIVE_INFINITY,a=0,o=t.graph(),u=o.marginx||0,s=o.marginy||0;_.each(t.nodes(),function(e){n(t.node(e))}),_.each(t.edges(),function(e){var r=t.edge(e);_.has(r,"x")&&n(r)}),e-=u,i-=s,_.each(t.nodes(),function(n){var r=t.node(n);r.x-=e,r.y-=i}),_.each(t.edges(),function(n){var r=t.edge(n);_.each(r.points,function(t){t.x-=e,t.y-=i}),_.has(r,"x")&&(r.x-=e),_.has(r,"y")&&(r.y-=i)}),o.width=r-e+u,o.height=a-i+s}function f(t){_.each(t.edges(),function(n){var e,r,i=t.edge(n),a=t.node(n.v),o=t.node(n.w);i.points?(e=i.points[0],r=i.points[i.points.length-1]):(i.points=[],e=o,r=a),i.points.unshift(N.intersectRect(a,e)),i.points.push(N.intersectRect(o,r))})}function h(t){_.each(t.edges(),function(n){var e=t.edge(n);if(_.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 d(t){_.each(t.edges(),function(n){var e=t.edge(n);e.reversed&&e.points.reverse()})}function p(t){_.each(t.nodes(),function(n){if(t.children(n).length){var e=t.node(n),r=t.node(e.borderTop),i=t.node(e.borderBottom),a=t.node(_.last(e.borderLeft)),o=t.node(_.last(e.borderRight));e.width=Math.abs(o.x-a.x),e.height=Math.abs(i.y-r.y),e.x=a.x+e.width/2,e.y=r.y+e.height/2}}),_.each(t.nodes(),function(n){"border"===t.node(n).dummy&&t.removeNode(n)})}function g(t){_.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 y(t){var n=N.buildLayerMatrix(t);_.each(n,function(n){var e=0;_.each(n,function(n,r){var i=t.node(n);i.order=r+e,_.each(i.selfEdges,function(n){N.addDummyNode(t,"selfedge",{width:n.label.width,height:n.label.height,rank:i.rank,order:r+ ++e,e:n.e,label:n.label},"_se")}),delete i.selfEdges})})}function m(t){_.each(t.nodes(),function(n){var e=t.node(n);if("selfedge"===e.dummy){var r=t.node(e.e.v),i=r.x+r.width/2,a=r.y,o=e.x-i,u=r.height/2;t.setEdge(e.e,e.label),t.removeNode(n),e.label.points=[{x:i+2*o/3,y:a-u},{x:i+5*o/6,y:a-u},{x:i+o,y:a},{x:i+5*o/6,y:a+u},{x:i+2*o/3,y:a+u}],e.label.x=e.x,e.label.y=e.y}})}function v(t,n){return _.mapValues(_.pick(t,n),Number)}function b(t){var n={};return _.each(t,function(t,e){n[e.toLowerCase()]=t}),n}var _=t("./lodash"),x=t("./acyclic"),w=t("./normalize"),k=t("./rank"),E=t("./util").normalizeRanks,M=t("./parent-dummy-chains"),A=t("./util").removeEmptyRanks,D=t("./nesting-graph"),S=t("./add-border-segments"),C=t("./coordinate-system"),T=t("./order"),F=t("./position"),N=t("./util"),L=t("./graphlib").Graph;n.exports=e;var B=["nodesep","edgesep","ranksep","marginx","marginy"],O={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},I=["acyclicer","ranker","rankdir","align"],q=["width","height"],R={width:0,height:0},P=["minlen","weight","width","height","labeloffset"],j={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},U=["labelpos"]},{"./acyclic":29,"./add-border-segments":30,"./coordinate-system":31,"./graphlib":34,"./lodash":37,"./nesting-graph":38,"./normalize":39,"./order":44,"./parent-dummy-chains":49,"./position":51,"./rank":53,"./util":56}],37:[function(t,n){n.exports=t(21)},{lodash:82}],38:[function(t,n){function e(t){var n=s.addDummyNode(t,"root",{},"_root"),e=i(t),o=u.max(e)-1,c=2*o+1;t.graph().nestingRoot=n,u.each(t.edges(),function(n){t.edge(n).minlen*=c});var l=a(t)+1;u.each(t.children(),function(i){r(t,n,c,l,o,e,i)}),t.graph().nodeRankFactor=c}function r(t,n,e,i,a,o,c){var l=t.children(c);if(!l.length)return void(c!==n&&t.setEdge(n,c,{weight:0,minlen:e}));var f=s.addBorderNode(t,"_bt"),h=s.addBorderNode(t,"_bb"),d=t.node(c);t.setParent(f,c),d.borderTop=f,t.setParent(h,c),d.borderBottom=h,u.each(l,function(u){r(t,n,e,i,a,o,u);var s=t.node(u),l=s.borderTop?s.borderTop:u,d=s.borderBottom?s.borderBottom:u,p=s.borderTop?i:2*i,g=l!==d?1:a-o[c]+1;t.setEdge(f,l,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(d,h,{weight:p,minlen:g,nestingEdge:!0})}),t.parent(c)||t.setEdge(n,f,{weight:0,minlen:a+o[c]})}function i(t){function n(r,i){var a=t.children(r);a&&a.length&&u.each(a,function(t){n(t,i+1)}),e[r]=i}var e={};return u.each(t.children(),function(t){n(t,1)}),e}function a(t){return u.reduce(t.edges(),function(n,e){return n+t.edge(e).weight},0)}function o(t){var n=t.graph();t.removeNode(n.nestingRoot),delete n.nestingRoot,u.each(t.edges(),function(n){var e=t.edge(n);e.nestingEdge&&t.removeEdge(n)})}var u=t("./lodash"),s=t("./util");n.exports={run:e,cleanup:o}},{"./lodash":37,"./util":56}],39:[function(t,n){"use strict";function e(t){t.graph().dummyChains=[],a.each(t.edges(),function(n){r(t,n)})}function r(t,n){var e=n.v,r=t.node(e).rank,i=n.w,a=t.node(i).rank,u=n.name,s=t.edge(n),c=s.labelRank;if(a!==r+1){t.removeEdge(n);var l,f,h;for(h=0,++r;a>r;++h,++r)s.points=[],f={width:0,height:0,edgeLabel:s,edgeObj:n,rank:r},l=o.addDummyNode(t,"edge",f,"_d"),r===c&&(f.width=s.width,f.height=s.height,f.dummy="edge-label",f.labelpos=s.labelpos),t.setEdge(e,l,{weight:s.weight},u),0===h&&t.graph().dummyChains.push(l),e=l;t.setEdge(e,i,{weight:s.weight},u)}}function i(t){a.each(t.graph().dummyChains,function(n){var e,r=t.node(n),i=r.edgeLabel;for(t.setEdge(r.edgeObj,i);r.dummy;)e=t.successors(n)[0],t.removeNode(n),i.points.push({x:r.x,y:r.y}),"edge-label"===r.dummy&&(i.x=r.x,i.y=r.y,i.width=r.width,i.height=r.height),n=e,r=t.node(n)})}var a=t("./lodash"),o=t("./util");n.exports={run:e,undo:i}},{"./lodash":37,"./util":56}],40:[function(t,n){function e(t,n,e){var i,a={};r.each(e,function(e){for(var r,o,u=t.parent(e);u;){if(r=t.parent(u),r?(o=a[r],a[r]=u):(o=i,i=u),o&&o!==u)return void n.setEdge(o,u);u=r}})}var r=t("../lodash");n.exports=e},{"../lodash":37}],41:[function(t,n){function e(t,n){return r.map(n,function(n){var e=t.inEdges(n);if(e.length){var i=r.reduce(e,function(n,e){var r=t.edge(e),i=t.node(e.v);return{sum:n.sum+r.weight*i.order,weight:n.weight+r.weight}},{sum:0,weight:0});return{v:n,barycenter:i.sum/i.weight,weight:i.weight}}return{v:n}})}var r=t("../lodash");n.exports=e},{"../lodash":37}],42:[function(t,n){function e(t,n,e){var o=r(t),u=new a({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(function(n){return t.node(n)});return i.each(t.nodes(),function(r){var a=t.node(r),s=t.parent(r);(a.rank===n||a.minRank<=n&&n<=a.maxRank)&&(u.setNode(r),u.setParent(r,s||o),i.each(t[e](r),function(n){var e=n.v===r?n.w:n.v,a=u.edge(e,r),o=i.isUndefined(a)?0:a.weight;u.setEdge(e,r,{weight:t.edge(n).weight+o})}),i.has(a,"minRank")&&u.setNode(r,{borderLeft:a.borderLeft[n],borderRight:a.borderRight[n]}))}),u}function r(t){for(var n;t.hasNode(n=i.uniqueId("_root")););return n}var i=t("../lodash"),a=t("../graphlib").Graph;n.exports=e},{"../graphlib":34,"../lodash":37}],43:[function(t,n){"use strict";function e(t,n){for(var e=0,i=1;i<n.length;++i)e+=r(t,n[i-1],n[i]);return e}function r(t,n,e){for(var r=i.zipObject(e,i.map(e,function(t,n){return n})),a=i.flatten(i.map(n,function(n){return i.chain(t.outEdges(n)).map(function(n){return{pos:r[n.w],weight:t.edge(n).weight}}).sortBy("pos").value()}),!0),o=1;o<e.length;)o<<=1;var u=2*o-1;o-=1;var s=i.map(new Array(u),function(){return 0}),c=0;return i.each(a.forEach(function(t){var n=t.pos+o;s[n]+=t.weight;for(var e=0;n>0;)n%2&&(e+=s[n+1]),n=n-1>>1,s[n]+=t.weight;c+=t.weight*e})),c}var i=t("../lodash");n.exports=e},{"../lodash":37}],44:[function(t,n){"use strict";function e(t){var n=d.maxRank(t),e=r(t,o.range(1,n+1),"inEdges"),c=r(t,o.range(n-1,-1,-1),"outEdges"),l=u(t);a(t,l);for(var f,h=Number.POSITIVE_INFINITY,p=0,g=0;4>g;++p,++g){i(p%2?e:c,p%4>=2),l=d.buildLayerMatrix(t);var y=s(t,l);h>y&&(g=0,f=o.cloneDeep(l),h=y)}a(t,f)}function r(t,n,e){return o.map(n,function(n){return l(t,n,e)})}function i(t,n){var e=new h;o.each(t,function(t){var r=t.graph().root,i=c(t,r,e,n);o.each(i.vs,function(n,e){t.node(n).order=e}),f(t,e,i.vs)})}function a(t,n){o.each(n,function(n){o.each(n,function(n,e){t.node(n).order=e})})}var o=t("../lodash"),u=t("./init-order"),s=t("./cross-count"),c=t("./sort-subgraph"),l=t("./build-layer-graph"),f=t("./add-subgraph-constraints"),h=t("../graphlib").Graph,d=t("../util");n.exports=e},{"../graphlib":34,"../lodash":37,"../util":56,"./add-subgraph-constraints":40,"./build-layer-graph":42,"./cross-count":43,"./init-order":45,"./sort-subgraph":47}],45:[function(t,n){"use strict";function e(t){function n(i){if(!r.has(e,i)){e[i]=!0;var a=t.node(i);o[a.rank].push(i),r.each(t.successors(i),n)}}var e={},i=r.filter(t.nodes(),function(n){return!t.children(n).length}),a=r.max(r.map(i,function(n){return t.node(n).rank})),o=r.map(r.range(a+1),function(){return[]}),u=r.sortBy(i,function(n){return t.node(n).rank});return r.each(u,n),o}var r=t("../lodash");n.exports=e},{"../lodash":37}],46:[function(t,n){"use strict";function e(t,n){var e={};a.each(t,function(t,n){var r=e[t.v]={indegree:0,"in":[],out:[],vs:[t.v],i:n};a.isUndefined(t.barycenter)||(r.barycenter=t.barycenter,r.weight=t.weight)}),a.each(n.edges(),function(t){var n=e[t.v],r=e[t.w];a.isUndefined(n)||a.isUndefined(r)||(r.indegree++,n.out.push(e[t.w]))});var i=a.filter(e,function(t){return!t.indegree});return r(i)}function r(t){function n(t){return function(n){n.merged||(a.isUndefined(n.barycenter)||a.isUndefined(t.barycenter)||n.barycenter>=t.barycenter)&&i(t,n)}}function e(n){return function(e){e["in"].push(n),0===--e.indegree&&t.push(e)}}for(var r=[];t.length;){var o=t.pop();r.push(o),a.each(o["in"].reverse(),n(o)),a.each(o.out,e(o))}return a.chain(r).filter(function(t){return!t.merged}).map(function(t){return a.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}var a=t("../lodash");n.exports=e},{"../lodash":37}],47:[function(t,n){function e(t,n,c,l){var f=t.children(n),h=t.node(n),d=h?h.borderLeft:void 0,p=h?h.borderRight:void 0,g={};d&&(f=a.filter(f,function(t){return t!==d&&t!==p}));var y=o(t,f);a.each(y,function(n){if(t.children(n.v).length){var r=e(t,n.v,c,l);g[n.v]=r,a.has(r,"barycenter")&&i(n,r)}});var m=u(y,c);r(m,g);var v=s(m,l);if(d&&(v.vs=a.flatten([d,v.vs,p],!0),t.predecessors(d).length)){var b=t.node(t.predecessors(d)[0]),_=t.node(t.predecessors(p)[0]);a.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+b.order+_.order)/(v.weight+2),v.weight+=2}return v}function r(t,n){a.each(t,function(t){t.vs=a.flatten(t.vs.map(function(t){return n[t]?n[t].vs:t}),!0)})}function i(t,n){a.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)}var a=t("../lodash"),o=t("./barycenter"),u=t("./resolve-conflicts"),s=t("./sort");n.exports=e},{"../lodash":37,"./barycenter":41,"./resolve-conflicts":46,"./sort":48}],48:[function(t,n){function e(t,n){var e=o.partition(t,function(t){return a.has(t,"barycenter")}),u=e.lhs,s=a.sortBy(e.rhs,function(t){return-t.i}),c=[],l=0,f=0,h=0;u.sort(i(!!n)),h=r(c,s,h),a.each(u,function(t){h+=t.vs.length,c.push(t.vs),l+=t.barycenter*t.weight,f+=t.weight,h=r(c,s,h)});var d={vs:a.flatten(c,!0)};return f&&(d.barycenter=l/f,d.weight=f),d}function r(t,n,e){for(var r;n.length&&(r=a.last(n)).i<=e;)n.pop(),t.push(r.vs),e++;return e}function i(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}}var a=t("../lodash"),o=t("../util");n.exports=e},{"../lodash":37,"../util":56}],49:[function(t,n){function e(t){var n=i(t);a.each(t.graph().dummyChains,function(e){for(var i=t.node(e),a=i.edgeObj,o=r(t,n,a.v,a.w),u=o.path,s=o.lca,c=0,l=u[c],f=!0;e!==a.w;){if(i=t.node(e),f){for(;(l=u[c])!==s&&t.node(l).maxRank<i.rank;)c++;l===s&&(f=!1)}if(!f){for(;c<u.length-1&&t.node(l=u[c+1]).minRank<=i.rank;)c++;l=u[c]}t.setParent(e,l),e=t.successors(e)[0]}})}function r(t,n,e,r){var i,a,o=[],u=[],s=Math.min(n[e].low,n[r].low),c=Math.max(n[e].lim,n[r].lim);i=e;do i=t.parent(i),o.push(i);while(i&&(n[i].low>s||c>n[i].lim));for(a=i,i=r;(i=t.parent(i))!==a;)u.push(i);return{path:o.concat(u.reverse()),lca:a}}function i(t){function n(i){var o=r;a.each(t.children(i),n),e[i]={low:o,lim:r++}}var e={},r=0;return a.each(t.children(),n),e}var a=t("./lodash");n.exports=e},{"./lodash":37}],50:[function(t,n){"use strict";function e(t,n){function e(n,e){var o=0,u=0,s=n.length,c=y.last(e);return y.each(e,function(n,l){var f=i(t,n),h=f?t.node(f).order:s;(f||n===c)&&(y.each(e.slice(u,l+1),function(n){y.each(t.predecessors(n),function(e){var i=t.node(e),u=i.order;!(o>u||u>h)||i.dummy&&t.node(n).dummy||a(r,e,n)})}),u=l+1,o=h)}),e}var r={};return y.reduce(n,e),r}function r(t,n){function e(n,e,r,o,u){var s;y.each(y.range(e,r),function(e){s=n[e],t.node(s).dummy&&y.each(t.predecessors(s),function(n){var e=t.node(n);e.dummy&&(e.order<o||e.order>u)&&a(i,n,s);
  
  })})}function r(n,r){var i,a=-1,o=0;return y.each(r,function(u,s){if("border"===t.node(u).dummy){var c=t.predecessors(u);c.length&&(i=t.node(c[0]).order,e(r,o,s,a,i),o=s,a=i)}e(r,o,r.length,i,n.length)}),r}var i={};return y.reduce(n,r),i}function i(t,n){return t.node(n).dummy?y.find(t.predecessors(n),function(n){return t.node(n).dummy}):void 0}function a(t,n,e){if(n>e){var r=n;n=e,e=r}var i=t[n];i||(t[n]=i={}),i[e]=!0}function o(t,n,e){if(n>e){var r=n;n=e,e=r}return y.has(t[n],e)}function u(t,n,e,r){var i={},a={},u={};return y.each(n,function(t){y.each(t,function(t,n){i[t]=t,a[t]=t,u[t]=n})}),y.each(n,function(t){var n=-1;y.each(t,function(t){var s=r(t);if(s.length){s=y.sortBy(s,function(t){return u[t]});for(var c=(s.length-1)/2,l=Math.floor(c),f=Math.ceil(c);f>=l;++l){var h=s[l];a[t]===t&&n<u[h]&&!o(e,t,h)&&(a[h]=t,a[t]=i[t]=i[h],n=u[h])}}})}),{root:i,align:a}}function s(t,n,e,r,i){function a(t){y.has(l,t)||(l[t]=!0,u[t]=y.reduce(s.inEdges(t),function(t,n){return a(n.v),Math.max(t,u[n.v]+s.edge(n))},0))}function o(t){if(2!==l[t]){l[t]++;var n=y.reduce(s.outEdges(t),function(t,n){return o(n.w),Math.min(t,u[n.w]-s.edge(n))},Number.POSITIVE_INFINITY);n!==Number.POSITIVE_INFINITY&&(u[t]=Math.max(u[t],n))}}var u={},s=c(t,n,e,i),l={};return y.each(s.nodes(),a),y.each(s.nodes(),o),y.each(r,function(t){u[t]=u[e[t]]}),u}function c(t,n,e,r){var i=new m,a=t.graph(),o=p(a.nodesep,a.edgesep,r);return y.each(n,function(n){var r;y.each(n,function(n){var a=e[n];if(i.setNode(a),r){var u=e[r],s=i.edge(u,a);i.setEdge(u,a,Math.max(o(t,n,r),s||0))}r=n})}),i}function l(t,n){return y.min(n,function(n){var e=y.min(n,function(n,e){return n-g(t,e)/2}),r=y.max(n,function(n,e){return n+g(t,e)/2});return r-e})}function f(t,n){var e=y.min(n),r=y.max(n);y.each(["u","d"],function(i){y.each(["l","r"],function(a){var o,u=i+a,s=t[u];s!==n&&(o="l"===a?e-y.min(s):r-y.max(s),o&&(t[u]=y.mapValues(s,function(t){return t+o})))})})}function h(t,n){return y.mapValues(t.ul,function(e,r){if(n)return t[n.toLowerCase()][r];var i=y.sortBy(y.pluck(t,r));return(i[1]+i[2])/2})}function d(t){var n,i=v.buildLayerMatrix(t),a=y.merge(e(t,i),r(t,i)),o={};y.each(["u","d"],function(e){n="u"===e?i:y.values(i).reverse(),y.each(["l","r"],function(r){"r"===r&&(n=y.map(n,function(t){return y.values(t).reverse()}));var i=y.bind("u"===e?t.predecessors:t.successors,t),c=u(t,n,a,i),l=s(t,n,c.root,c.align,"r"===r);"r"===r&&(l=y.mapValues(l,function(t){return-t})),o[e+r]=l})});var c=l(t,o);return f(o,c),h(o,t.graph().align)}function p(t,n,e){return function(r,i,a){var o,u=r.node(i),s=r.node(a),c=0;if(c+=u.width/2,y.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":o=-u.width/2;break;case"r":o=u.width/2}if(o&&(c+=e?o:-o),o=0,c+=(u.dummy?n:t)/2,c+=(s.dummy?n:t)/2,c+=s.width/2,y.has(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":o=s.width/2;break;case"r":o=-s.width/2}return o&&(c+=e?o:-o),o=0,c}}function g(t,n){return t.node(n).width}var y=t("../lodash"),m=t("../graphlib").Graph,v=t("../util");n.exports={positionX:d,findType1Conflicts:e,findType2Conflicts:r,addConflict:a,hasConflict:o,verticalAlignment:u,horizontalCompaction:s,alignCoordinates:f,findSmallestWidthAlignment:l,balance:h}},{"../graphlib":34,"../lodash":37,"../util":56}],51:[function(t,n){"use strict";function e(t){t=a.asNonCompoundGraph(t),r(t),i.each(o(t),function(n,e){t.node(e).x=n})}function r(t){var n=a.buildLayerMatrix(t),e=t.graph().ranksep,r=0;i.each(n,function(n){var a=i.max(i.map(n,function(n){return t.node(n).height}));i.each(n,function(n){t.node(n).y=r+a/2}),r+=a+e})}var i=t("../lodash"),a=t("../util"),o=t("./bk").positionX;n.exports=e},{"../lodash":37,"../util":56,"./bk":50}],52:[function(t,n){"use strict";function e(t){var n=new u({directed:!1}),e=t.nodes()[0],o=t.nodeCount();n.setNode(e,{});for(var c,l;r(n,t)<o;)c=i(n,t),l=n.hasNode(c.v)?s(t,c):-s(t,c),a(n,t,l);return n}function r(t,n){function e(r){o.each(n.nodeEdges(r),function(i){var a=i.v,o=r===a?i.w:a;t.hasNode(o)||s(n,i)||(t.setNode(o,{}),t.setEdge(r,o,{}),e(o))})}return o.each(t.nodes(),e),t.nodeCount()}function i(t,n){return o.min(n.edges(),function(e){return t.hasNode(e.v)!==t.hasNode(e.w)?s(n,e):void 0})}function a(t,n,e){o.each(t.nodes(),function(t){n.node(t).rank+=e})}var o=t("../lodash"),u=t("../graphlib").Graph,s=t("./util").slack;n.exports=e},{"../graphlib":34,"../lodash":37,"./util":55}],53:[function(t,n){"use strict";function e(t){switch(t.graph().ranker){case"network-simplex":i(t);break;case"tight-tree":r(t);break;case"longest-path":c(t);break;default:i(t)}}function r(t){o(t),u(t)}function i(t){s(t)}var a=t("./util"),o=a.longestPath,u=t("./feasible-tree"),s=t("./network-simplex");n.exports=e;var c=o},{"./feasible-tree":52,"./network-simplex":54,"./util":55}],54:[function(t,n){"use strict";function e(t){t=_(t),m(t);var n=g(t);o(n),r(n,t);for(var e,i;e=s(n);)i=c(n,t,e),l(n,t,e,i)}function r(t,n){var e=b(t,t.nodes());e=e.slice(0,e.length-1),p.each(e,function(e){i(t,n,e)})}function i(t,n,e){var r=t.node(e),i=r.parent;t.edge(e,i).cutvalue=a(t,n,e)}function a(t,n,e){var r=t.node(e),i=r.parent,a=!0,o=n.edge(e,i),u=0;return o||(a=!1,o=n.edge(i,e)),u=o.weight,p.each(n.nodeEdges(e),function(r){var o=r.v===e,s=o?r.w:r.v;if(s!==i){var c=o===a,l=n.edge(r).weight;if(u+=c?l:-l,h(t,e,s)){var f=t.edge(e,s).cutvalue;u+=c?-f:f}}}),u}function o(t,n){arguments.length<2&&(n=t.nodes()[0]),u(t,{},1,n)}function u(t,n,e,r,i){var a=e,o=t.node(r);return n[r]=!0,p.each(t.neighbors(r),function(i){p.has(n,i)||(e=u(t,n,e,i,r))}),o.low=a,o.lim=e++,i?o.parent=i:delete o.parent,e}function s(t){return p.find(t.edges(),function(n){return t.edge(n).cutvalue<0})}function c(t,n,e){var r=e.v,i=e.w;n.hasEdge(r,i)||(r=e.w,i=e.v);var a=t.node(r),o=t.node(i),u=a,s=!1;a.lim>o.lim&&(u=o,s=!0);var c=p.filter(n.edges(),function(n){return s===d(t,t.node(n.v),u)&&s!==d(t,t.node(n.w),u)});return p.min(c,function(t){return y(n,t)})}function l(t,n,e,i){var a=e.v,u=e.w;t.removeEdge(a,u),t.setEdge(i.v,i.w,{}),o(t),r(t,n),f(t,n)}function f(t,n){var e=p.find(t.nodes(),function(t){return!n.node(t).parent}),r=v(t,e);r=r.slice(1),p.each(r,function(e){var r=t.node(e).parent,i=n.edge(e,r),a=!1;i||(i=n.edge(r,e),a=!0),n.node(e).rank=n.node(r).rank+(a?i.minlen:-i.minlen)})}function h(t,n,e){return t.hasEdge(n,e)}function d(t,n,e){return e.low<=n.lim&&n.lim<=e.lim}var p=t("../lodash"),g=t("./feasible-tree"),y=t("./util").slack,m=t("./util").longestPath,v=t("../graphlib").alg.preorder,b=t("../graphlib").alg.postorder,_=t("../util").simplify;n.exports=e,e.initLowLimValues=o,e.initCutValues=r,e.calcCutValue=a,e.leaveEdge=s,e.enterEdge=c,e.exchangeEdges=l},{"../graphlib":34,"../lodash":37,"../util":56,"./feasible-tree":52,"./util":55}],55:[function(t,n){"use strict";function e(t){function n(r){var a=t.node(r);if(i.has(e,r))return a.rank;e[r]=!0;var o=i.min(i.map(t.outEdges(r),function(e){return n(e.w)-t.edge(e).minlen}));return o===Number.POSITIVE_INFINITY&&(o=0),a.rank=o}var e={};i.each(t.sources(),n)}function r(t,n){return t.node(n.w).rank-t.node(n.v).rank-t.edge(n).minlen}var i=t("../lodash");n.exports={longestPath:e,slack:r}},{"../lodash":37}],56:[function(t,n){"use strict";function e(t,n,e,r){var i;do i=y.uniqueId(r);while(t.hasNode(i));return e.dummy=n,t.setNode(i,e),i}function r(t){var n=(new m).setGraph(t.graph());return y.each(t.nodes(),function(e){n.setNode(e,t.node(e))}),y.each(t.edges(),function(e){var r=n.edge(e.v,e.w)||{weight:0,minlen:1},i=t.edge(e);n.setEdge(e.v,e.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),n}function i(t){var n=new m({multigraph:t.isMultigraph()}).setGraph(t.graph());return y.each(t.nodes(),function(e){t.children(e).length||n.setNode(e,t.node(e))}),y.each(t.edges(),function(e){n.setEdge(e,t.edge(e))}),n}function a(t){var n=y.map(t.nodes(),function(n){var e={};return y.each(t.outEdges(n),function(n){e[n.w]=(e[n.w]||0)+t.edge(n).weight}),e});return y.zipObject(t.nodes(),n)}function o(t){var n=y.map(t.nodes(),function(n){var e={};return y.each(t.inEdges(n),function(n){e[n.v]=(e[n.v]||0)+t.edge(n).weight}),e});return y.zipObject(t.nodes(),n)}function u(t,n){var e=t.x,r=t.y,i=n.x-e,a=n.y-r,o=t.width/2,u=t.height/2;if(!i&&!a)throw new Error("Not possible to find intersection inside of the rectangle");var s,c;return Math.abs(a)*o>Math.abs(i)*u?(0>a&&(u=-u),s=u*i/a,c=u):(0>i&&(o=-o),s=o,c=o*a/i),{x:e+s,y:r+c}}function s(t){var n=y.map(y.range(h(t)+1),function(){return[]});return y.each(t.nodes(),function(e){var r=t.node(e),i=r.rank;y.isUndefined(i)||(n[i][r.order]=e)}),n}function c(t){var n=y.min(y.map(t.nodes(),function(n){return t.node(n).rank}));y.each(t.nodes(),function(e){var r=t.node(e);y.has(r,"rank")&&(r.rank-=n)})}function l(t){var n=y.min(y.map(t.nodes(),function(n){return t.node(n).rank})),e=[];y.each(t.nodes(),function(r){var i=t.node(r).rank-n;y.has(e,i)||(e[i]=[]),e[i].push(r)});var r=0,i=t.graph().nodeRankFactor;y.each(e,function(n,e){y.isUndefined(n)&&e%i!==0?--r:r&&y.each(n,function(n){t.node(n).rank+=r})})}function f(t,n,r,i){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=i),e(t,"border",a,n)}function h(t){return y.max(y.map(t.nodes(),function(n){var e=t.node(n).rank;return y.isUndefined(e)?void 0:e}))}function d(t,n){var e={lhs:[],rhs:[]};return y.each(t,function(t){n(t)?e.lhs.push(t):e.rhs.push(t)}),e}function p(t,n){var e=y.now();try{return n()}finally{console.log(t+" time: "+(y.now()-e)+"ms")}}function g(t,n){return n()}var y=t("./lodash"),m=t("./graphlib").Graph;n.exports={addDummyNode:e,simplify:r,asNonCompoundGraph:i,successorWeights:a,predecessorWeights:o,intersectRect:u,buildLayerMatrix:s,normalizeRanks:c,removeEmptyRanks:l,addBorderNode:f,maxRank:h,partition:d,time:p,notime:g}},{"./graphlib":34,"./lodash":37}],57:[function(t,n){n.exports="0.7.1"},{}],58:[function(t,n){var e=t("./lib");n.exports={Graph:e.Graph,json:t("./lib/json"),alg:t("./lib/alg"),version:e.version}},{"./lib":74,"./lib/alg":65,"./lib/json":75}],59:[function(t,n){function e(t){function n(a){r.has(i,a)||(i[a]=!0,e.push(a),r.each(t.successors(a),n),r.each(t.predecessors(a),n))}var e,i={},a=[];return r.each(t.nodes(),function(t){e=[],n(t),e.length&&a.push(e)}),a}var r=t("../lodash");n.exports=e},{"../lodash":76}],60:[function(t,n){function e(t,n,e){i.isArray(n)||(n=[n]);var a=[],o={};return i.each(n,function(n){if(!t.hasNode(n))throw new Error("Graph does not have node: "+n);r(t,n,"post"===e,o,a)}),a}function r(t,n,e,a,o){i.has(a,n)||(a[n]=!0,e||o.push(n),i.each(t.neighbors(n),function(n){r(t,n,e,a,o)}),e&&o.push(n))}var i=t("../lodash");n.exports=e},{"../lodash":76}],61:[function(t,n){function e(t,n,e){return i.transform(t.nodes(),function(i,a){i[a]=r(t,a,n,e)},{})}var r=t("./dijkstra"),i=t("../lodash");n.exports=e},{"../lodash":76,"./dijkstra":62}],62:[function(t,n){function e(t,n,e,i){return r(t,String(n),e||o,i||function(n){return t.outEdges(n)})}function r(t,n,e,r){var i,o,u={},s=new a,c=function(t){var n=t.v!==i?t.v:t.w,r=u[n],a=e(t),c=o.distance+a;if(0>a)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+a);c<r.distance&&(r.distance=c,r.predecessor=i,s.decrease(n,c))};for(t.nodes().forEach(function(t){var e=t===n?0:Number.POSITIVE_INFINITY;u[t]={distance:e},s.add(t,e)});s.size()>0&&(i=s.removeMin(),o=u[i],o.distance!==Number.POSITIVE_INFINITY);)r(i).forEach(c);return u}var i=t("../lodash"),a=t("../data/priority-queue");n.exports=e;var o=i.constant(1)},{"../data/priority-queue":72,"../lodash":76}],63:[function(t,n){function e(t){return r.filter(i(t),function(t){return t.length>1})}var r=t("../lodash"),i=t("./tarjan");n.exports=e},{"../lodash":76,"./tarjan":70}],64:[function(t,n){function e(t,n,e){return r(t,n||a,e||function(n){return t.outEdges(n)})}function r(t,n,e){var r={},i=t.nodes();return i.forEach(function(t){r[t]={},r[t][t]={distance:0},i.forEach(function(n){t!==n&&(r[t][n]={distance:Number.POSITIVE_INFINITY})}),e(t).forEach(function(e){var i=e.v===t?e.w:e.v,a=n(e);r[t][i]={distance:a,predecessor:t}})}),i.forEach(function(t){var n=r[t];i.forEach(function(e){var a=r[e];i.forEach(function(e){var r=a[t],i=n[e],o=a[e],u=r.distance+i.distance;u<o.distance&&(o.distance=u,o.predecessor=i.predecessor)})})}),r}var i=t("../lodash");n.exports=e;var a=i.constant(1)},{"../lodash":76}],65:[function(t,n){n.exports={components:t("./components"),dijkstra:t("./dijkstra"),dijkstraAll:t("./dijkstra-all"),findCycles:t("./find-cycles"),floydWarshall:t("./floyd-warshall"),isAcyclic:t("./is-acyclic"),postorder:t("./postorder"),preorder:t("./preorder"),prim:t("./prim"),tarjan:t("./tarjan"),topsort:t("./topsort")}},{"./components":59,"./dijkstra":62,"./dijkstra-all":61,"./find-cycles":63,"./floyd-warshall":64,"./is-acyclic":66,"./postorder":67,"./preorder":68,"./prim":69,"./tarjan":70,"./topsort":71}],66:[function(t,n){function e(t){try{r(t)}catch(n){if(n instanceof r.CycleException)return!1;throw n}return!0}var r=t("./topsort");n.exports=e},{"./topsort":71}],67:[function(t,n){function e(t,n){return r(t,n,"post")}var r=t("./dfs");n.exports=e},{"./dfs":60}],68:[function(t,n){function e(t,n){return r(t,n,"pre")}var r=t("./dfs");n.exports=e},{"./dfs":60}],69:[function(t,n){function e(t,n){function e(t){var e=t.v===o?t.w:t.v,r=c.priority(e);if(void 0!==r){var i=n(t);r>i&&(s[e]=o,c.decrease(e,i))}}var o,u=new i,s={},c=new a;if(0===t.nodeCount())return u;r.each(t.nodes(),function(t){c.add(t,Number.POSITIVE_INFINITY),u.setNode(t)}),c.decrease(t.nodes()[0],0);for(var l=!1;c.size()>0;){if(o=c.removeMin(),r.has(s,o))u.setEdge(o,s[o]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(o).forEach(e)}return u}var r=t("../lodash"),i=t("../graph"),a=t("../data/priority-queue");n.exports=e},{"../data/priority-queue":72,"../graph":73,"../lodash":76}],70:[function(t,n){function e(t){function n(u){var s=a[u]={onStack:!0,lowlink:e,index:e++};if(i.push(u),t.successors(u).forEach(function(t){r.has(a,t)?a[t].onStack&&(s.lowlink=Math.min(s.lowlink,a[t].index)):(n(t),s.lowlink=Math.min(s.lowlink,a[t].lowlink))}),s.lowlink===s.index){var c,l=[];do c=i.pop(),a[c].onStack=!1,l.push(c);while(u!==c);o.push(l)}}var e=0,i=[],a={},o=[];return t.nodes().forEach(function(t){r.has(a,t)||n(t)}),o}var r=t("../lodash");n.exports=e},{"../lodash":76}],71:[function(t,n){function e(t){function n(u){if(i.has(a,u))throw new r;i.has(e,u)||(a[u]=!0,e[u]=!0,i.each(t.predecessors(u),n),delete a[u],o.push(u))}var e={},a={},o=[];if(i.each(t.sinks(),n),i.size(e)!==t.nodeCount())throw new r;return o}function r(){}var i=t("../lodash");n.exports=e,e.CycleException=r},{"../lodash":76}],72:[function(t,n){function e(){this._arr=[],this._keyIndices={}}var r=t("../lodash");n.exports=e,e.prototype.size=function(){return this._arr.length},e.prototype.keys=function(){return this._arr.map(function(t){return t.key})},e.prototype.has=function(t){return r.has(this._keyIndices,t)},e.prototype.priority=function(t){var n=this._keyIndices[t];return void 0!==n?this._arr[n].priority:void 0},e.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},e.prototype.add=function(t,n){var e=this._keyIndices;if(t=String(t),!r.has(e,t)){var i=this._arr,a=i.length;return e[t]=a,i.push({key:t,priority:n}),this._decrease(a),!0}return!1},e.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},e.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)},e.prototype._heapify=function(t){var n=this._arr,e=2*t,r=e+1,i=t;e<n.length&&(i=n[e].priority<n[i].priority?e:i,r<n.length&&(i=n[r].priority<n[i].priority?r:i),i!==t&&(this._swap(t,i),this._heapify(i)))},e.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},e.prototype._swap=function(t,n){var e=this._arr,r=this._keyIndices,i=e[t],a=e[n];e[t]=a,e[n]=i,r[a.key]=t,r[i.key]=n}},{"../lodash":76}],73:[function(t,n){"use strict";function e(t){this._isDirected=s.has(t,"directed")?t.directed:!0,this._isMultigraph=s.has(t,"multigraph")?t.multigraph:!1,this._isCompound=s.has(t,"compound")?t.compound:!1,this._label=void 0,this._defaultNodeLabelFn=s.constant(void 0),this._defaultEdgeLabelFn=s.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[l]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function r(t,n){s.has(t,n)?t[n]++:t[n]=1}function i(t,n){--t[n]||delete t[n]}function a(t,n,e,r){if(!t&&n>e){var i=n;n=e,e=i}return n+f+e+f+(s.isUndefined(r)?c:r)}function o(t,n,e,r){if(!t&&n>e){var i=n;n=e,e=i}var a={v:n,w:e};return r&&(a.name=r),a}function u(t,n){return a(t,n.v,n.w,n.name)}var s=t("./lodash");n.exports=e;var c="\x00",l="\x00",f="";e.prototype._nodeCount=0,e.prototype._edgeCount=0,e.prototype.isDirected=function(){return this._isDirected},e.prototype.isMultigraph=function(){return this._isMultigraph},e.prototype.isCompound=function(){return this._isCompound},e.prototype.setGraph=function(t){return this._label=t,this},e.prototype.graph=function(){return this._label},e.prototype.setDefaultNodeLabel=function(t){return s.isFunction(t)||(t=s.constant(t)),this._defaultNodeLabelFn=t,this},e.prototype.nodeCount=function(){return this._nodeCount},e.prototype.nodes=function(){return s.keys(this._nodes)},e.prototype.sources=function(){return s.filter(this.nodes(),function(t){return s.isEmpty(this._in[t])},this)},e.prototype.sinks=function(){return s.filter(this.nodes(),function(t){return s.isEmpty(this._out[t])},this)},e.prototype.setNodes=function(t,n){var e=arguments;return s.each(t,function(t){e.length>1?this.setNode(t,n):this.setNode(t)},this),this},e.prototype.setNode=function(t,n){return s.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]=l,this._children[t]={},this._children[l][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},e.prototype.node=function(t){return this._nodes[t]},e.prototype.hasNode=function(t){return s.has(this._nodes,t)},e.prototype.removeNode=function(t){var n=this;if(s.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],s.each(this.children(t),function(t){this.setParent(t)},this),delete this._children[t]),s.each(s.keys(this._in[t]),e),delete this._in[t],delete this._preds[t],s.each(s.keys(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},e.prototype.setParent=function(t,n){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(s.isUndefined(n))n=l;else{for(var e=n;!s.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},e.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},e.prototype.parent=function(t){if(this._isCompound){var n=this._parent[t];if(n!==l)return n}},e.prototype.children=function(t){if(s.isUndefined(t)&&(t=l),this._isCompound){var n=this._children[t];if(n)return s.keys(n)}else{if(t===l)return this.nodes();if(this.hasNode(t))return[]}},e.prototype.predecessors=function(t){var n=this._preds[t];return n?s.keys(n):void 0},e.prototype.successors=function(t){var n=this._sucs[t];return n?s.keys(n):void 0},e.prototype.neighbors=function(t){var n=this.predecessors(t);return n?s.union(n,this.successors(t)):void 0},e.prototype.setDefaultEdgeLabel=function(t){return s.isFunction(t)||(t=s.constant(t)),this._defaultEdgeLabelFn=t,this},e.prototype.edgeCount=function(){return this._edgeCount},e.prototype.edges=function(){return s.values(this._edgeObjs)},e.prototype.setPath=function(t,n){var e=this,r=arguments;return s.reduce(t,function(t,i){return r.length>1?e.setEdge(t,i,n):e.setEdge(t,i),i}),this},e.prototype.setEdge=function(){var t,n,e,i,u=!1;s.isPlainObject(arguments[0])?(t=arguments[0].v,n=arguments[0].w,e=arguments[0].name,2===arguments.length&&(i=arguments[1],u=!0)):(t=arguments[0],n=arguments[1],e=arguments[3],arguments.length>2&&(i=arguments[2],u=!0)),t=""+t,n=""+n,s.isUndefined(e)||(e=""+e);var c=a(this._isDirected,t,n,e);if(s.has(this._edgeLabels,c))return u&&(this._edgeLabels[c]=i),this;if(!s.isUndefined(e)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(n),this._edgeLabels[c]=u?i:this._defaultEdgeLabelFn(t,n,e);var l=o(this._isDirected,t,n,e);return t=l.v,n=l.w,Object.freeze(l),this._edgeObjs[c]=l,r(this._preds[n],t),r(this._sucs[t],n),this._in[n][c]=l,this._out[t][c]=l,this._edgeCount++,this},e.prototype.edge=function(t,n,e){var r=1===arguments.length?u(this._isDirected,arguments[0]):a(this._isDirected,t,n,e);return this._edgeLabels[r]},e.prototype.hasEdge=function(t,n,e){var r=1===arguments.length?u(this._isDirected,arguments[0]):a(this._isDirected,t,n,e);return s.has(this._edgeLabels,r)},e.prototype.removeEdge=function(t,n,e){var r=1===arguments.length?u(this._isDirected,arguments[0]):a(this._isDirected,t,n,e),o=this._edgeObjs[r];return o&&(t=o.v,n=o.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},e.prototype.inEdges=function(t,n){var e=this._in[t];if(e){var r=s.values(e);return n?s.filter(r,function(t){return t.v===n}):r}},e.prototype.outEdges=function(t,n){var e=this._out[t];if(e){var r=s.values(e);return n?s.filter(r,function(t){return t.w===n}):r}},e.prototype.nodeEdges=function(t,n){var e=this.inEdges(t,n);return e?e.concat(this.outEdges(t,n)):void 0}},{"./lodash":76}],74:[function(t,n){n.exports={Graph:t("./graph"),version:t("./version")}},{"./graph":73,"./version":77}],75:[function(t,n){function e(t){var n={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:r(t),edges:i(t)};return o.isUndefined(t.graph())||(n.value=o.clone(t.graph())),n}function r(t){return o.map(t.nodes(),function(n){var e=t.node(n),r=t.parent(n),i={v:n};return o.isUndefined(e)||(i.value=e),o.isUndefined(r)||(i.parent=r),i})}function i(t){return o.map(t.edges(),function(n){var e=t.edge(n),r={v:n.v,w:n.w};return o.isUndefined(n.name)||(r.name=n.name),o.isUndefined(e)||(r.value=e),r})}function a(t){var n=new u(t.options).setGraph(t.value);return o.each(t.nodes,function(t){n.setNode(t.v,t.value),t.parent&&n.setParent(t.v,t.parent)}),o.each(t.edges,function(t){n.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),n}var o=t("./lodash"),u=t("./graph");n.exports={write:e,read:a}},{"./graph":73,"./lodash":76}],76:[function(t,n){n.exports=t(21)},{lodash:82}],77:[function(t,n){n.exports="1.0.1"},{}],78:[function(){},{}],79:[function(t,n,e){(function(t){function n(t,n){for(var e=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),e++):e&&(t.splice(r,1),e--)}if(n)for(;e--;e)t.unshift("..");return t}function r(t,n){if(t.filter)return t.filter(n);for(var e=[],r=0;r<t.length;r++)n(t[r],r,t)&&e.push(t[r]);return e}var i=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,a=function(t){return i.exec(t).slice(1)};e.resolve=function(){for(var e="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o=a>=0?arguments[a]:t.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(e=o+"/"+e,i="/"===o.charAt(0))}return e=n(r(e.split("/"),function(t){return!!t}),!i).join("/"),(i?"/":"")+e||"."},e.normalize=function(t){var i=e.isAbsolute(t),a="/"===o(t,-1);return t=n(r(t.split("/"),function(t){return!!t}),!i).join("/"),t||i||(t="."),t&&a&&(t+="/"),(i?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,function(t){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},e.relative=function(t,n){function r(t){for(var n=0;n<t.length&&""===t[n];n++);for(var e=t.length-1;e>=0&&""===t[e];e--);return n>e?[]:t.slice(n,e-n+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),a=r(n.split("/")),o=Math.min(i.length,a.length),u=o,s=0;o>s;s++)if(i[s]!==a[s]){u=s;break}for(var c=[],s=u;s<i.length;s++)c.push("..");return c=c.concat(a.slice(u)),c.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){var n=a(t),e=n[0],r=n[1];return e||r?(r&&(r=r.substr(0,r.length-1)),e+r):"."},e.basename=function(t,n){var e=a(t)[2];return n&&e.substr(-1*n.length)===n&&(e=e.substr(0,e.length-n.length)),e},e.extname=function(t){return a(t)[3]};var o="b"==="ab".substr(-1)?function(t,n,e){return t.substr(n,e)}:function(t,n,e){return 0>n&&(n=t.length+n),t.substr(n,e)}}).call(this,t("1YiZ5S"))},{"1YiZ5S":80}],80:[function(t,n){function e(){}var r=n.exports={};r.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,n="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(n){var e=[];return window.addEventListener("message",function(t){var n=t.source;if((n===window||null===n)&&"process-tick"===t.data&&(t.stopPropagation(),e.length>0)){var r=e.shift();r()}},!0),function(t){e.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),r.title="browser",r.browser=!0,r.env={},r.argv=[],r.on=e,r.addListener=e,r.once=e,r.off=e,r.removeListener=e,r.removeAllListeners=e,r.emit=e,r.binding=function(){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(){throw new Error("process.chdir is not supported")}},{}],81:[function(t,n,e){(function(t){!function(r){var i="object"==typeof e&&e,a="object"==typeof n&&n&&n.exports==i&&n,o="object"==typeof t&&t;(o.global===o||o.window===o)&&(r=o);var u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,s=/[\x01-\x7F]/g,c=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,l=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,f={"Á":"Aacute","á":"aacute","Ă":"Abreve","ă":"abreve","∾":"ac","∿":"acd","∾̳":"acE","Â":"Acirc","â":"acirc","´":"acute","А":"Acy","а":"acy","Æ":"AElig","æ":"aelig","⁡":"af","𝔄":"Afr","𝔞":"afr","À":"Agrave","à":"agrave","ℵ":"aleph","Α":"Alpha","α":"alpha","Ā":"Amacr","ā":"amacr","⨿":"amalg","&":"amp","⩕":"andand","⩓":"And","∧":"and","⩜":"andd","⩘":"andslope","⩚":"andv","∠":"ang","⦤":"ange","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","∡":"angmsd","∟":"angrt","⊾":"angrtvb","⦝":"angrtvbd","∢":"angsph","Å":"angst","⍼":"angzarr","Ą":"Aogon","ą":"aogon","𝔸":"Aopf","𝕒":"aopf","⩯":"apacir","≈":"ap","⩰":"apE","≊":"ape","≋":"apid","'":"apos","å":"aring","𝒜":"Ascr","𝒶":"ascr","≔":"colone","*":"ast","≍":"CupCap","Ã":"Atilde","ã":"atilde","Ä":"Auml","ä":"auml","∳":"awconint","⨑":"awint","≌":"bcong","϶":"bepsi","‵":"bprime","∽":"bsim","⋍":"bsime","∖":"setmn","⫧":"Barv","⊽":"barvee","⌅":"barwed","⌆":"Barwed","⎵":"bbrk","⎶":"bbrktbrk","Б":"Bcy","б":"bcy","„":"bdquo","∵":"becaus","⦰":"bemptyv","ℬ":"Bscr","Β":"Beta","β":"beta","ℶ":"beth","≬":"twixt","𝔅":"Bfr","𝔟":"bfr","⋂":"xcap","◯":"xcirc","⋃":"xcup","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨆":"xsqcup","★":"starf","▽":"xdtri","△":"xutri","⨄":"xuplus","⋁":"Vee","⋀":"Wedge","⤍":"rbarr","⧫":"lozf","▪":"squf","▴":"utrif","▾":"dtrif","◂":"ltrif","▸":"rtrif","␣":"blank","▒":"blk12","░":"blk14","▓":"blk34","█":"block","=⃥":"bne","≡⃥":"bnequiv","⫭":"bNot","⌐":"bnot","𝔹":"Bopf","𝕓":"bopf","⊥":"bot","⋈":"bowtie","⧉":"boxbox","┐":"boxdl","╕":"boxdL","╖":"boxDl","╗":"boxDL","┌":"boxdr","╒":"boxdR","╓":"boxDr","╔":"boxDR","─":"boxh","═":"boxH","┬":"boxhd","╤":"boxHd","╥":"boxhD","╦":"boxHD","┴":"boxhu","╧":"boxHu","╨":"boxhU","╩":"boxHU","⊟":"minusb","⊞":"plusb","⊠":"timesb","┘":"boxul","╛":"boxuL","╜":"boxUl","╝":"boxUL","└":"boxur","╘":"boxuR","╙":"boxUr","╚":"boxUR","│":"boxv","║":"boxV","┼":"boxvh","╪":"boxvH","╫":"boxVh","╬":"boxVH","┤":"boxvl","╡":"boxvL","╢":"boxVl","╣":"boxVL","├":"boxvr","╞":"boxvR","╟":"boxVr","╠":"boxVR","˘":"breve","¦":"brvbar","𝒷":"bscr","⁏":"bsemi","⧅":"bsolb","\\":"bsol","⟈":"bsolhsub","•":"bull","≎":"bump","⪮":"bumpE","≏":"bumpe","Ć":"Cacute","ć":"cacute","⩄":"capand","⩉":"capbrcup","⩋":"capcap","∩":"cap","⋒":"Cap","⩇":"capcup","⩀":"capdot","ⅅ":"DD","∩︀":"caps","⁁":"caret","ˇ":"caron","ℭ":"Cfr","⩍":"ccaps","Č":"Ccaron","č":"ccaron","Ç":"Ccedil","ç":"ccedil","Ĉ":"Ccirc","ĉ":"ccirc","∰":"Cconint","⩌":"ccups","⩐":"ccupssm","Ċ":"Cdot","ċ":"cdot","¸":"cedil",
  "⦲":"cemptyv","¢":"cent","·":"middot","𝔠":"cfr","Ч":"CHcy","ч":"chcy","✓":"check","Χ":"Chi","χ":"chi","ˆ":"circ","≗":"cire","↺":"olarr","↻":"orarr","⊛":"oast","⊚":"ocir","⊝":"odash","⊙":"odot","®":"reg","Ⓢ":"oS","⊖":"ominus","⊕":"oplus","⊗":"otimes","○":"cir","⧃":"cirE","⨐":"cirfnint","⫯":"cirmid","⧂":"cirscir","∲":"cwconint","”":"rdquo","’":"rsquo","♣":"clubs",":":"colon","∷":"Colon","⩴":"Colone",",":"comma","@":"commat","∁":"comp","∘":"compfn","ℂ":"Copf","≅":"cong","⩭":"congdot","≡":"equiv","∮":"oint","∯":"Conint","𝕔":"copf","∐":"coprod","©":"copy","℗":"copysr","↵":"crarr","✗":"cross","⨯":"Cross","𝒞":"Cscr","𝒸":"cscr","⫏":"csub","⫑":"csube","⫐":"csup","⫒":"csupe","⋯":"ctdot","⤸":"cudarrl","⤵":"cudarrr","⋞":"cuepr","⋟":"cuesc","↶":"cularr","⤽":"cularrp","⩈":"cupbrcap","⩆":"cupcap","∪":"cup","⋓":"Cup","⩊":"cupcup","⊍":"cupdot","⩅":"cupor","∪︀":"cups","↷":"curarr","⤼":"curarrm","⋎":"cuvee","⋏":"cuwed","¤":"curren","∱":"cwint","⌭":"cylcty","†":"dagger","‡":"Dagger","ℸ":"daleth","↓":"darr","↡":"Darr","⇓":"dArr","‐":"dash","⫤":"Dashv","⊣":"dashv","⤏":"rBarr","˝":"dblac","Ď":"Dcaron","ď":"dcaron","Д":"Dcy","д":"dcy","⇊":"ddarr","ⅆ":"dd","⤑":"DDotrahd","⩷":"eDDot","°":"deg","∇":"Del","Δ":"Delta","δ":"delta","⦱":"demptyv","⥿":"dfisht","𝔇":"Dfr","𝔡":"dfr","⥥":"dHar","⇃":"dharl","⇂":"dharr","˙":"dot","`":"grave","˜":"tilde","⋄":"diam","♦":"diams","¨":"die","ϝ":"gammad","⋲":"disin","÷":"div","⋇":"divonx","Ђ":"DJcy","ђ":"djcy","⌞":"dlcorn","⌍":"dlcrop",$:"dollar","𝔻":"Dopf","𝕕":"dopf","⃜":"DotDot","≐":"doteq","≑":"eDot","∸":"minusd","∔":"plusdo","⊡":"sdotb","⇐":"lArr","⇔":"iff","⟸":"xlArr","⟺":"xhArr","⟹":"xrArr","⇒":"rArr","⊨":"vDash","⇑":"uArr","⇕":"vArr","∥":"par","⤓":"DownArrowBar","⇵":"duarr","̑":"DownBreve","⥐":"DownLeftRightVector","⥞":"DownLeftTeeVector","⥖":"DownLeftVectorBar","↽":"lhard","⥟":"DownRightTeeVector","⥗":"DownRightVectorBar","⇁":"rhard","↧":"mapstodown","⊤":"top","⤐":"RBarr","⌟":"drcorn","⌌":"drcrop","𝒟":"Dscr","𝒹":"dscr","Ѕ":"DScy","ѕ":"dscy","⧶":"dsol","Đ":"Dstrok","đ":"dstrok","⋱":"dtdot","▿":"dtri","⥯":"duhar","⦦":"dwangle","Џ":"DZcy","џ":"dzcy","⟿":"dzigrarr","É":"Eacute","é":"eacute","⩮":"easter","Ě":"Ecaron","ě":"ecaron","Ê":"Ecirc","ê":"ecirc","≖":"ecir","≕":"ecolon","Э":"Ecy","э":"ecy","Ė":"Edot","ė":"edot","ⅇ":"ee","≒":"efDot","𝔈":"Efr","𝔢":"efr","⪚":"eg","È":"Egrave","è":"egrave","⪖":"egs","⪘":"egsdot","⪙":"el","∈":"in","⏧":"elinters","ℓ":"ell","⪕":"els","⪗":"elsdot","Ē":"Emacr","ē":"emacr","∅":"empty","◻":"EmptySmallSquare","▫":"EmptyVerySmallSquare"," ":"emsp13"," ":"emsp14"," ":"emsp","Ŋ":"ENG","ŋ":"eng"," ":"ensp","Ę":"Eogon","ę":"eogon","𝔼":"Eopf","𝕖":"eopf","⋕":"epar","⧣":"eparsl","⩱":"eplus","ε":"epsi","Ε":"Epsilon","ϵ":"epsiv","≂":"esim","⩵":"Equal","=":"equals","≟":"equest","⇌":"rlhar","⩸":"equivDD","⧥":"eqvparsl","⥱":"erarr","≓":"erDot","ℯ":"escr","ℰ":"Escr","⩳":"Esim","Η":"Eta","η":"eta","Ð":"ETH","ð":"eth","Ë":"Euml","ë":"euml","€":"euro","!":"excl","∃":"exist","Ф":"Fcy","ф":"fcy","♀":"female","ﬃ":"ffilig","ﬀ":"fflig","ﬄ":"ffllig","𝔉":"Ffr","𝔣":"ffr","ﬁ":"filig","◼":"FilledSmallSquare",fj:"fjlig","♭":"flat","ﬂ":"fllig","▱":"fltns","ƒ":"fnof","𝔽":"Fopf","𝕗":"fopf","∀":"forall","⋔":"fork","⫙":"forkv","ℱ":"Fscr","⨍":"fpartint","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","⅔":"frac23","⅖":"frac25","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78","⁄":"frasl","⌢":"frown","𝒻":"fscr","ǵ":"gacute","Γ":"Gamma","γ":"gamma","Ϝ":"Gammad","⪆":"gap","Ğ":"Gbreve","ğ":"gbreve","Ģ":"Gcedil","Ĝ":"Gcirc","ĝ":"gcirc","Г":"Gcy","г":"gcy","Ġ":"Gdot","ġ":"gdot","≥":"ge","≧":"gE","⪌":"gEl","⋛":"gel","⩾":"ges","⪩":"gescc","⪀":"gesdot","⪂":"gesdoto","⪄":"gesdotol","⋛︀":"gesl","⪔":"gesles","𝔊":"Gfr","𝔤":"gfr","≫":"gg","⋙":"Gg","ℷ":"gimel","Ѓ":"GJcy","ѓ":"gjcy","⪥":"gla","≷":"gl","⪒":"glE","⪤":"glj","⪊":"gnap","⪈":"gne","≩":"gnE","⋧":"gnsim","𝔾":"Gopf","𝕘":"gopf","⪢":"GreaterGreater","≳":"gsim","𝒢":"Gscr","ℊ":"gscr","⪎":"gsime","⪐":"gsiml","⪧":"gtcc","⩺":"gtcir",">":"gt","⋗":"gtdot","⦕":"gtlPar","⩼":"gtquest","⥸":"gtrarr","≩︀":"gvnE"," ":"hairsp","ℋ":"Hscr","Ъ":"HARDcy","ъ":"hardcy","⥈":"harrcir","↔":"harr","↭":"harrw","^":"Hat","ℏ":"hbar","Ĥ":"Hcirc","ĥ":"hcirc","♥":"hearts","…":"mldr","⊹":"hercon","𝔥":"hfr","ℌ":"Hfr","⤥":"searhk","⤦":"swarhk","⇿":"hoarr","∻":"homtht","↩":"larrhk","↪":"rarrhk","𝕙":"hopf","ℍ":"Hopf","―":"horbar","𝒽":"hscr","Ħ":"Hstrok","ħ":"hstrok","⁃":"hybull","Í":"Iacute","í":"iacute","⁣":"ic","Î":"Icirc","î":"icirc","И":"Icy","и":"icy","İ":"Idot","Е":"IEcy","е":"iecy","¡":"iexcl","𝔦":"ifr","ℑ":"Im","Ì":"Igrave","ì":"igrave","ⅈ":"ii","⨌":"qint","∭":"tint","⧜":"iinfin","℩":"iiota","Ĳ":"IJlig","ĳ":"ijlig","Ī":"Imacr","ī":"imacr","ℐ":"Iscr","ı":"imath","⊷":"imof","Ƶ":"imped","℅":"incare","∞":"infin","⧝":"infintie","⊺":"intcal","∫":"int","∬":"Int","ℤ":"Zopf","⨗":"intlarhk","⨼":"iprod","⁢":"it","Ё":"IOcy","ё":"iocy","Į":"Iogon","į":"iogon","𝕀":"Iopf","𝕚":"iopf","Ι":"Iota","ι":"iota","¿":"iquest","𝒾":"iscr","⋵":"isindot","⋹":"isinE","⋴":"isins","⋳":"isinsv","Ĩ":"Itilde","ĩ":"itilde","І":"Iukcy","і":"iukcy","Ï":"Iuml","ï":"iuml","Ĵ":"Jcirc","ĵ":"jcirc","Й":"Jcy","й":"jcy","𝔍":"Jfr","𝔧":"jfr","ȷ":"jmath","𝕁":"Jopf","𝕛":"jopf","𝒥":"Jscr","𝒿":"jscr","Ј":"Jsercy","ј":"jsercy","Є":"Jukcy","є":"jukcy","Κ":"Kappa","κ":"kappa","ϰ":"kappav","Ķ":"Kcedil","ķ":"kcedil","К":"Kcy","к":"kcy","𝔎":"Kfr","𝔨":"kfr","ĸ":"kgreen","Х":"KHcy","х":"khcy","Ќ":"KJcy","ќ":"kjcy","𝕂":"Kopf","𝕜":"kopf","𝒦":"Kscr","𝓀":"kscr","⇚":"lAarr","Ĺ":"Lacute","ĺ":"lacute","⦴":"laemptyv","ℒ":"Lscr","Λ":"Lambda","λ":"lambda","⟨":"lang","⟪":"Lang","⦑":"langd","⪅":"lap","«":"laquo","⇤":"larrb","⤟":"larrbfs","←":"larr","↞":"Larr","⤝":"larrfs","↫":"larrlp","⤹":"larrpl","⥳":"larrsim","↢":"larrtl","⤙":"latail","⤛":"lAtail","⪫":"lat","⪭":"late","⪭︀":"lates","⤌":"lbarr","⤎":"lBarr","❲":"lbbrk","{":"lcub","[":"lsqb","⦋":"lbrke","⦏":"lbrksld","⦍":"lbrkslu","Ľ":"Lcaron","ľ":"lcaron","Ļ":"Lcedil","ļ":"lcedil","⌈":"lceil","Л":"Lcy","л":"lcy","⤶":"ldca","“":"ldquo","⥧":"ldrdhar","⥋":"ldrushar","↲":"ldsh","≤":"le","≦":"lE","⇆":"lrarr","⟦":"lobrk","⥡":"LeftDownTeeVector","⥙":"LeftDownVectorBar","⌊":"lfloor","↼":"lharu","⇇":"llarr","⇋":"lrhar","⥎":"LeftRightVector","↤":"mapstoleft","⥚":"LeftTeeVector","⋋":"lthree","⧏":"LeftTriangleBar","⊲":"vltri","⊴":"ltrie","⥑":"LeftUpDownVector","⥠":"LeftUpTeeVector","⥘":"LeftUpVectorBar","↿":"uharl","⥒":"LeftVectorBar","⪋":"lEg","⋚":"leg","⩽":"les","⪨":"lescc","⩿":"lesdot","⪁":"lesdoto","⪃":"lesdotor","⋚︀":"lesg","⪓":"lesges","⋖":"ltdot","≶":"lg","⪡":"LessLess","≲":"lsim","⥼":"lfisht","𝔏":"Lfr","𝔩":"lfr","⪑":"lgE","⥢":"lHar","⥪":"lharul","▄":"lhblk","Љ":"LJcy","љ":"ljcy","≪":"ll","⋘":"Ll","⥫":"llhard","◺":"lltri","Ŀ":"Lmidot","ŀ":"lmidot","⎰":"lmoust","⪉":"lnap","⪇":"lne","≨":"lnE","⋦":"lnsim","⟬":"loang","⇽":"loarr","⟵":"xlarr","⟷":"xharr","⟼":"xmap","⟶":"xrarr","↬":"rarrlp","⦅":"lopar","𝕃":"Lopf","𝕝":"lopf","⨭":"loplus","⨴":"lotimes","∗":"lowast",_:"lowbar","↙":"swarr","↘":"searr","◊":"loz","(":"lpar","⦓":"lparlt","⥭":"lrhard","‎":"lrm","⊿":"lrtri","‹":"lsaquo","𝓁":"lscr","↰":"lsh","⪍":"lsime","⪏":"lsimg","‘":"lsquo","‚":"sbquo","Ł":"Lstrok","ł":"lstrok","⪦":"ltcc","⩹":"ltcir","<":"lt","⋉":"ltimes","⥶":"ltlarr","⩻":"ltquest","◃":"ltri","⦖":"ltrPar","⥊":"lurdshar","⥦":"luruhar","≨︀":"lvnE","¯":"macr","♂":"male","✠":"malt","⤅":"Map","↦":"map","↥":"mapstoup","▮":"marker","⨩":"mcomma","М":"Mcy","м":"mcy","—":"mdash","∺":"mDDot"," ":"MediumSpace","ℳ":"Mscr","𝔐":"Mfr","𝔪":"mfr","℧":"mho","µ":"micro","⫰":"midcir","∣":"mid","−":"minus","⨪":"minusdu","∓":"mp","⫛":"mlcp","⊧":"models","𝕄":"Mopf","𝕞":"mopf","𝓂":"mscr","Μ":"Mu","μ":"mu","⊸":"mumap","Ń":"Nacute","ń":"nacute","∠⃒":"nang","≉":"nap","⩰̸":"napE","≋̸":"napid","ŉ":"napos","♮":"natur","ℕ":"Nopf"," ":"nbsp","≎̸":"nbump","≏̸":"nbumpe","⩃":"ncap","Ň":"Ncaron","ň":"ncaron","Ņ":"Ncedil","ņ":"ncedil","≇":"ncong","⩭̸":"ncongdot","⩂":"ncup","Н":"Ncy","н":"ncy","–":"ndash","⤤":"nearhk","↗":"nearr","⇗":"neArr","≠":"ne","≐̸":"nedot","​":"ZeroWidthSpace","≢":"nequiv","⤨":"toea","≂̸":"nesim","\n":"NewLine","∄":"nexist","𝔑":"Nfr","𝔫":"nfr","≧̸":"ngE","≱":"nge","⩾̸":"nges","⋙̸":"nGg","≵":"ngsim","≫⃒":"nGt","≯":"ngt","≫̸":"nGtv","↮":"nharr","⇎":"nhArr","⫲":"nhpar","∋":"ni","⋼":"nis","⋺":"nisd","Њ":"NJcy","њ":"njcy","↚":"nlarr","⇍":"nlArr","‥":"nldr","≦̸":"nlE","≰":"nle","⩽̸":"nles","≮":"nlt","⋘̸":"nLl","≴":"nlsim","≪⃒":"nLt","⋪":"nltri","⋬":"nltrie","≪̸":"nLtv","∤":"nmid","⁠":"NoBreak","𝕟":"nopf","⫬":"Not","¬":"not","≭":"NotCupCap","∦":"npar","∉":"notin","≹":"ntgl","⋵̸":"notindot","⋹̸":"notinE","⋷":"notinvb","⋶":"notinvc","⧏̸":"NotLeftTriangleBar","≸":"ntlg","⪢̸":"NotNestedGreaterGreater","⪡̸":"NotNestedLessLess","∌":"notni","⋾":"notnivb","⋽":"notnivc","⊀":"npr","⪯̸":"npre","⋠":"nprcue","⧐̸":"NotRightTriangleBar","⋫":"nrtri","⋭":"nrtrie","⊏̸":"NotSquareSubset","⋢":"nsqsube","⊐̸":"NotSquareSuperset","⋣":"nsqsupe","⊂⃒":"vnsub","⊈":"nsube","⊁":"nsc","⪰̸":"nsce","⋡":"nsccue","≿̸":"NotSucceedsTilde","⊃⃒":"vnsup","⊉":"nsupe","≁":"nsim","≄":"nsime","⫽⃥":"nparsl","∂̸":"npart","⨔":"npolint","⤳̸":"nrarrc","↛":"nrarr","⇏":"nrArr","↝̸":"nrarrw","𝒩":"Nscr","𝓃":"nscr","⊄":"nsub","⫅̸":"nsubE","⊅":"nsup","⫆̸":"nsupE","Ñ":"Ntilde","ñ":"ntilde","Ν":"Nu","ν":"nu","#":"num","№":"numero"," ":"numsp","≍⃒":"nvap","⊬":"nvdash","⊭":"nvDash","⊮":"nVdash","⊯":"nVDash","≥⃒":"nvge",">⃒":"nvgt","⤄":"nvHarr","⧞":"nvinfin","⤂":"nvlArr","≤⃒":"nvle","<⃒":"nvlt","⊴⃒":"nvltrie","⤃":"nvrArr","⊵⃒":"nvrtrie","∼⃒":"nvsim","⤣":"nwarhk","↖":"nwarr","⇖":"nwArr","⤧":"nwnear","Ó":"Oacute","ó":"oacute","Ô":"Ocirc","ô":"ocirc","О":"Ocy","о":"ocy","Ő":"Odblac","ő":"odblac","⨸":"odiv","⦼":"odsold","Œ":"OElig","œ":"oelig","⦿":"ofcir","𝔒":"Ofr","𝔬":"ofr","˛":"ogon","Ò":"Ograve","ò":"ograve","⧁":"ogt","⦵":"ohbar","Ω":"ohm","⦾":"olcir","⦻":"olcross","‾":"oline","⧀":"olt","Ō":"Omacr","ō":"omacr","ω":"omega","Ο":"Omicron","ο":"omicron","⦶":"omid","𝕆":"Oopf","𝕠":"oopf","⦷":"opar","⦹":"operp","⩔":"Or","∨":"or","⩝":"ord","ℴ":"oscr","ª":"ordf","º":"ordm","⊶":"origof","⩖":"oror","⩗":"orslope","⩛":"orv","𝒪":"Oscr","Ø":"Oslash","ø":"oslash","⊘":"osol","Õ":"Otilde","õ":"otilde","⨶":"otimesas","⨷":"Otimes","Ö":"Ouml","ö":"ouml","⌽":"ovbar","⏞":"OverBrace","⎴":"tbrk","⏜":"OverParenthesis","¶":"para","⫳":"parsim","⫽":"parsl","∂":"part","П":"Pcy","п":"pcy","%":"percnt",".":"period","‰":"permil","‱":"pertenk","𝔓":"Pfr","𝔭":"pfr","Φ":"Phi","φ":"phi","ϕ":"phiv","☎":"phone","Π":"Pi","π":"pi","ϖ":"piv","ℎ":"planckh","⨣":"plusacir","⨢":"pluscir","+":"plus","⨥":"plusdu","⩲":"pluse","±":"pm","⨦":"plussim","⨧":"plustwo","⨕":"pointint","𝕡":"popf","ℙ":"Popf","£":"pound","⪷":"prap","⪻":"Pr","≺":"pr","≼":"prcue","⪯":"pre","≾":"prsim","⪹":"prnap","⪵":"prnE","⋨":"prnsim","⪳":"prE","′":"prime","″":"Prime","∏":"prod","⌮":"profalar","⌒":"profline","⌓":"profsurf","∝":"prop","⊰":"prurel","𝒫":"Pscr","𝓅":"pscr","Ψ":"Psi","ψ":"psi"," ":"puncsp","𝔔":"Qfr","𝔮":"qfr","𝕢":"qopf","ℚ":"Qopf","⁗":"qprime","𝒬":"Qscr","𝓆":"qscr","⨖":"quatint","?":"quest",'"':"quot","⇛":"rAarr","∽̱":"race","Ŕ":"Racute","ŕ":"racute","√":"Sqrt","⦳":"raemptyv","⟩":"rang","⟫":"Rang","⦒":"rangd","⦥":"range","»":"raquo","⥵":"rarrap","⇥":"rarrb","⤠":"rarrbfs","⤳":"rarrc","→":"rarr","↠":"Rarr","⤞":"rarrfs","⥅":"rarrpl","⥴":"rarrsim","⤖":"Rarrtl","↣":"rarrtl","↝":"rarrw","⤚":"ratail","⤜":"rAtail","∶":"ratio","❳":"rbbrk","}":"rcub","]":"rsqb","⦌":"rbrke","⦎":"rbrksld","⦐":"rbrkslu","Ř":"Rcaron","ř":"rcaron","Ŗ":"Rcedil","ŗ":"rcedil","⌉":"rceil","Р":"Rcy","р":"rcy","⤷":"rdca","⥩":"rdldhar","↳":"rdsh","ℜ":"Re","ℛ":"Rscr","ℝ":"Ropf","▭":"rect","⥽":"rfisht","⌋":"rfloor","𝔯":"rfr","⥤":"rHar","⇀":"rharu","⥬":"rharul","Ρ":"Rho","ρ":"rho","ϱ":"rhov","⇄":"rlarr","⟧":"robrk","⥝":"RightDownTeeVector","⥕":"RightDownVectorBar","⇉":"rrarr","⊢":"vdash","⥛":"RightTeeVector","⋌":"rthree","⧐":"RightTriangleBar","⊳":"vrtri","⊵":"rtrie","⥏":"RightUpDownVector","⥜":"RightUpTeeVector","⥔":"RightUpVectorBar","↾":"uharr","⥓":"RightVectorBar","˚":"ring","‏":"rlm","⎱":"rmoust","⫮":"rnmid","⟭":"roang","⇾":"roarr","⦆":"ropar","𝕣":"ropf","⨮":"roplus","⨵":"rotimes","⥰":"RoundImplies",")":"rpar","⦔":"rpargt","⨒":"rppolint","›":"rsaquo","𝓇":"rscr","↱":"rsh","⋊":"rtimes","▹":"rtri","⧎":"rtriltri","⧴":"RuleDelayed","⥨":"ruluhar","℞":"rx","Ś":"Sacute","ś":"sacute","⪸":"scap","Š":"Scaron","š":"scaron","⪼":"Sc","≻":"sc","≽":"sccue","⪰":"sce","⪴":"scE","Ş":"Scedil","ş":"scedil","Ŝ":"Scirc","ŝ":"scirc","⪺":"scnap","⪶":"scnE","⋩":"scnsim","⨓":"scpolint","≿":"scsim","С":"Scy","с":"scy","⋅":"sdot","⩦":"sdote","⇘":"seArr","§":"sect",";":"semi","⤩":"tosa","✶":"sext","𝔖":"Sfr","𝔰":"sfr","♯":"sharp","Щ":"SHCHcy","щ":"shchcy","Ш":"SHcy","ш":"shcy","↑":"uarr","­":"shy","Σ":"Sigma","σ":"sigma","ς":"sigmaf","∼":"sim","⩪":"simdot","≃":"sime","⪞":"simg","⪠":"simgE","⪝":"siml","⪟":"simlE","≆":"simne","⨤":"simplus","⥲":"simrarr","⨳":"smashp","⧤":"smeparsl","⌣":"smile","⪪":"smt","⪬":"smte","⪬︀":"smtes","Ь":"SOFTcy","ь":"softcy","⌿":"solbar","⧄":"solb","/":"sol","𝕊":"Sopf","𝕤":"sopf","♠":"spades","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊏":"sqsub","⊑":"sqsube","⊐":"sqsup","⊒":"sqsupe","□":"squ","𝒮":"Sscr","𝓈":"sscr","⋆":"Star","☆":"star","⊂":"sub","⋐":"Sub","⪽":"subdot","⫅":"subE","⊆":"sube","⫃":"subedot","⫁":"submult","⫋":"subnE","⊊":"subne","⪿":"subplus","⥹":"subrarr","⫇":"subsim","⫕":"subsub","⫓":"subsup","∑":"sum","♪":"sung","¹":"sup1","²":"sup2","³":"sup3","⊃":"sup","⋑":"Sup","⪾":"supdot","⫘":"supdsub","⫆":"supE","⊇":"supe","⫄":"supedot","⟉":"suphsol","⫗":"suphsub","⥻":"suplarr","⫂":"supmult","⫌":"supnE","⊋":"supne","⫀":"supplus","⫈":"supsim","⫔":"supsub","⫖":"supsup","⇙":"swArr","⤪":"swnwar","ß":"szlig","	":"Tab","⌖":"target","Τ":"Tau","τ":"tau","Ť":"Tcaron","ť":"tcaron","Ţ":"Tcedil","ţ":"tcedil","Т":"Tcy","т":"tcy","⃛":"tdot","⌕":"telrec","𝔗":"Tfr","𝔱":"tfr","∴":"there4","Θ":"Theta","θ":"theta","ϑ":"thetav","  ":"ThickSpace"," ":"thinsp","Þ":"THORN","þ":"thorn","⨱":"timesbar","×":"times","⨰":"timesd","⌶":"topbot","⫱":"topcir","𝕋":"Topf","𝕥":"topf","⫚":"topfork","‴":"tprime","™":"trade","▵":"utri","≜":"trie","◬":"tridot","⨺":"triminus","⨹":"triplus","⧍":"trisb","⨻":"tritime","⏢":"trpezium","𝒯":"Tscr","𝓉":"tscr","Ц":"TScy","ц":"tscy","Ћ":"TSHcy","ћ":"tshcy","Ŧ":"Tstrok","ŧ":"tstrok","Ú":"Uacute","ú":"uacute","↟":"Uarr","⥉":"Uarrocir","Ў":"Ubrcy","ў":"ubrcy","Ŭ":"Ubreve","ŭ":"ubreve","Û":"Ucirc","û":"ucirc","У":"Ucy","у":"ucy","⇅":"udarr","Ű":"Udblac","ű":"udblac","⥮":"udhar","⥾":"ufisht","𝔘":"Ufr","𝔲":"ufr","Ù":"Ugrave","ù":"ugrave","⥣":"uHar","▀":"uhblk","⌜":"ulcorn","⌏":"ulcrop","◸":"ultri","Ū":"Umacr","ū":"umacr","⏟":"UnderBrace","⏝":"UnderParenthesis","⊎":"uplus","Ų":"Uogon","ų":"uogon","𝕌":"Uopf","𝕦":"uopf","⤒":"UpArrowBar","↕":"varr","υ":"upsi","ϒ":"Upsi","Υ":"Upsilon","⇈":"uuarr","⌝":"urcorn","⌎":"urcrop","Ů":"Uring","ů":"uring","◹":"urtri","𝒰":"Uscr","𝓊":"uscr","⋰":"utdot","Ũ":"Utilde","ũ":"utilde","Ü":"Uuml","ü":"uuml","⦧":"uwangle","⦜":"vangrt","⊊︀":"vsubne","⫋︀":"vsubnE","⊋︀":"vsupne","⫌︀":"vsupnE","⫨":"vBar","⫫":"Vbar","⫩":"vBarv","В":"Vcy","в":"vcy","⊩":"Vdash","⊫":"VDash","⫦":"Vdashl","⊻":"veebar","≚":"veeeq","⋮":"vellip","|":"vert","‖":"Vert","❘":"VerticalSeparator","≀":"wr","𝔙":"Vfr","𝔳":"vfr","𝕍":"Vopf","𝕧":"vopf","𝒱":"Vscr","𝓋":"vscr","⊪":"Vvdash","⦚":"vzigzag","Ŵ":"Wcirc","ŵ":"wcirc","⩟":"wedbar","≙":"wedgeq","℘":"wp","𝔚":"Wfr","𝔴":"wfr","𝕎":"Wopf","𝕨":"wopf","𝒲":"Wscr","𝓌":"wscr","𝔛":"Xfr","𝔵":"xfr","Ξ":"Xi","ξ":"xi","⋻":"xnis","𝕏":"Xopf","𝕩":"xopf","𝒳":"Xscr","𝓍":"xscr","Ý":"Yacute","ý":"yacute","Я":"YAcy","я":"yacy","Ŷ":"Ycirc","ŷ":"ycirc","Ы":"Ycy","ы":"ycy","¥":"yen","𝔜":"Yfr","𝔶":"yfr","Ї":"YIcy","ї":"yicy","𝕐":"Yopf","𝕪":"yopf","𝒴":"Yscr","𝓎":"yscr","Ю":"YUcy","ю":"yucy","ÿ":"yuml","Ÿ":"Yuml","Ź":"Zacute","ź":"zacute","Ž":"Zcaron","ž":"zcaron","З":"Zcy","з":"zcy","Ż":"Zdot","ż":"zdot","ℨ":"Zfr","Ζ":"Zeta","ζ":"zeta","𝔷":"zfr","Ж":"ZHcy","ж":"zhcy","⇝":"zigrarr","𝕫":"zopf","𝒵":"Zscr","𝓏":"zscr","‍":"zwj","‌":"zwnj"},h=/["&'<>`]/g,d={'"':"&quot;","&":"&amp;","'":"&#x27;","<":"&lt;",">":"&gt;","`":"&#x60;"},p=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,g=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,y=/&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+);|&(Aacute|iacute|Uacute|plusmn|otilde|Otilde|Agrave|agrave|yacute|Yacute|oslash|Oslash|Atilde|atilde|brvbar|Ccedil|ccedil|ograve|curren|divide|Eacute|eacute|Ograve|oacute|Egrave|egrave|ugrave|frac12|frac14|frac34|Ugrave|Oacute|Iacute|ntilde|Ntilde|uacute|middot|Igrave|igrave|iquest|aacute|laquo|THORN|micro|iexcl|icirc|Icirc|Acirc|ucirc|ecirc|Ocirc|ocirc|Ecirc|Ucirc|aring|Aring|aelig|AElig|acute|pound|raquo|acirc|times|thorn|szlig|cedil|COPY|Auml|ordf|ordm|uuml|macr|Uuml|auml|Ouml|ouml|para|nbsp|Euml|quot|QUOT|euml|yuml|cent|sect|copy|sup1|sup2|sup3|Iuml|iuml|shy|eth|reg|not|yen|amp|AMP|REG|uml|ETH|deg|gt|GT|LT|lt)([=a-zA-Z0-9])?/g,m={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ﬃ",fflig:"ﬀ",ffllig:"ﬄ",Ffr:"𝔉",ffr:"𝔣",filig:"ﬁ",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"ﬂ",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"Ĳ",ijlig:"ĳ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅","in":"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺","int":"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ŉ",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",
  nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"	",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"},v={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"},b={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},_=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],x=String.fromCharCode,w={},k=w.hasOwnProperty,E=function(t,n){return k.call(t,n)},M=function(t,n){for(var e=-1,r=t.length;++e<r;)if(t[e]==n)return!0;return!1},A=function(t,n){if(!t)return n;var e,r={};for(e in n)r[e]=E(t,e)?t[e]:n[e];return r},D=function(t,n){var e="";return t>=55296&&57343>=t||t>1114111?(n&&C("character reference outside the permissible Unicode range"),"�"):E(b,t)?(n&&C("disallowed character reference"),b[t]):(n&&M(_,t)&&C("disallowed character reference"),t>65535&&(t-=65536,e+=x(t>>>10&1023|55296),t=56320|1023&t),e+=x(t))},S=function(t){return"&#x"+t.charCodeAt(0).toString(16).toUpperCase()+";"},C=function(t){throw Error("Parse error: "+t)},T=function(t,n){n=A(n,T.options);var e=n.strict;e&&g.test(t)&&C("forbidden code point");var r=n.encodeEverything,i=n.useNamedReferences,a=n.allowUnsafeSymbols;return r?(t=t.replace(s,function(t){return i&&E(f,t)?"&"+f[t]+";":S(t)}),i&&(t=t.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;").replace(/&#x66;&#x6A;/g,"&fjlig;")),i&&(t=t.replace(l,function(t){return"&"+f[t]+";"}))):i?(a||(t=t.replace(h,function(t){return"&"+f[t]+";"})),t=t.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;"),t=t.replace(l,function(t){return"&"+f[t]+";"})):a||(t=t.replace(h,S)),t.replace(u,function(t){var n=t.charCodeAt(0),e=t.charCodeAt(1),r=1024*(n-55296)+e-56320+65536;return"&#x"+r.toString(16).toUpperCase()+";"}).replace(c,S)};T.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1};var F=function(t,n){n=A(n,F.options);var e=n.strict;return e&&p.test(t)&&C("malformed character reference"),t.replace(y,function(t,r,i,a,o,u,s,c){var l,f,h,d,p;return r?(l=r,f=i,e&&!f&&C("character reference was not terminated by a semicolon"),D(l,e)):a?(h=a,f=o,e&&!f&&C("character reference was not terminated by a semicolon"),l=parseInt(h,16),D(l,e)):u?(d=u,E(m,d)?m[d]:(e&&C("named character reference was not terminated by a semicolon"),t)):(d=s,p=c,p&&n.isAttributeValue?(e&&"="==p&&C("`&` did not start a character reference"),t):(e&&C("named character reference was not terminated by a semicolon"),v[d]+(p||"")))})};F.options={isAttributeValue:!1,strict:!1};var N=function(t){return t.replace(h,function(t){return d[t]})},L={version:"0.5.0",encode:T,decode:F,escape:N,unescape:F};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define(function(){return L});else if(i&&!i.nodeType)if(a)a.exports=L;else for(var B in L)E(L,B)&&(i[B]=L[B]);else r.he=L}(this)}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],82:[function(t,n,e){(function(t){(function(){function r(t,n,e){for(var r=(e||0)-1,i=t?t.length:0;++r<i;)if(t[r]===n)return r;return-1}function i(t,n){var e=typeof n;if(t=t.cache,"boolean"==e||null==n)return t[n]?0:-1;"number"!=e&&"string"!=e&&(e="object");var i="number"==e?n:_+n;return t=(t=t[e])&&t[i],"object"==e?t&&r(t,n)>-1?0:-1:t?0:-1}function a(t){var n=this.cache,e=typeof t;if("boolean"==e||null==t)n[t]=!0;else{"number"!=e&&"string"!=e&&(e="object");var r="number"==e?t:_+t,i=n[e]||(n[e]={});"object"==e?(i[r]||(i[r]=[])).push(t):i[r]=!0}}function o(t){return t.charCodeAt(0)}function u(t,n){for(var e=t.criteria,r=n.criteria,i=-1,a=e.length;++i<a;){var o=e[i],u=r[i];if(o!==u){if(o>u||"undefined"==typeof o)return 1;if(u>o||"undefined"==typeof u)return-1}}return t.index-n.index}function s(t){var n=-1,e=t.length,r=t[0],i=t[e/2|0],o=t[e-1];if(r&&"object"==typeof r&&i&&"object"==typeof i&&o&&"object"==typeof o)return!1;var u=f();u["false"]=u["null"]=u["true"]=u.undefined=!1;var s=f();for(s.array=t,s.cache=u,s.push=a;++n<e;)s.push(t[n]);return s}function c(t){return"\\"+X[t]}function l(){return m.pop()||[]}function f(){return v.pop()||{array:null,cache:null,criteria:null,"false":!1,index:0,"null":!1,number:null,object:null,push:null,string:null,"true":!1,undefined:!1,value:null}}function h(t){t.length=0,m.length<w&&m.push(t)}function d(t){var n=t.cache;n&&d(n),t.array=t.cache=t.criteria=t.object=t.number=t.string=t.value=null,v.length<w&&v.push(t)}function p(t,n,e){n||(n=0),"undefined"==typeof e&&(e=t?t.length:0);for(var r=-1,i=e-n||0,a=Array(0>i?0:i);++r<i;)a[r]=t[n+r];return a}function g(t){function n(t){return t&&"object"==typeof t&&!Je(t)&&Be.call(t,"__wrapped__")?t:new e(t)}function e(t,n){this.__chain__=!!n,this.__wrapped__=t}function a(t){function n(){if(r){var t=p(r);Oe.apply(t,arguments)}if(this instanceof n){var a=v(e.prototype),o=e.apply(a,t||arguments);return Tt(o)?o:a}return e.apply(i,t||arguments)}var e=t[0],r=t[2],i=t[4];return Ke(n,t),n}function m(t,n,e,r,i){if(e){var a=e(t);if("undefined"!=typeof a)return a}var o=Tt(t);if(!o)return t;var u=De.call(t);if(!G[u])return t;var s=Ze[u];switch(u){case P:case j:return new s(+t);case z:case H:return new s(t);case V:return a=s(t.source,S.exec(t)),a.lastIndex=t.lastIndex,a}var c=Je(t);if(n){var f=!r;r||(r=l()),i||(i=l());for(var d=r.length;d--;)if(r[d]==t)return i[d];a=c?s(t.length):{}}else a=c?p(t):ar({},t);return c&&(Be.call(t,"index")&&(a.index=t.index),Be.call(t,"input")&&(a.input=t.input)),n?(r.push(t),i.push(a),(c?Xt:sr)(t,function(t,o){a[o]=m(t,n,e,r,i)}),f&&(h(r),h(i)),a):a}function v(t){return Tt(t)?je(t):{}}function w(t,n,e){if("function"!=typeof t)return Jn;if("undefined"==typeof n||!("prototype"in t))return t;var r=t.__bindData__;if("undefined"==typeof r&&(Xe.funcNames&&(r=!t.name),r=r||!Xe.funcDecomp,!r)){var i=Ne.call(t);Xe.funcNames||(r=!C.test(i)),r||(r=L.test(i),Ke(t,r))}if(r===!1||r!==!0&&1&r[1])return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,i){return t.call(n,e,r,i)};case 4:return function(e,r,i,a){return t.call(n,e,r,i,a)}}return On(t,n)}function X(t){function n(){var t=s?o:this;if(i){var d=p(i);Oe.apply(d,arguments)}if((a||l)&&(d||(d=p(arguments)),a&&Oe.apply(d,a),l&&d.length<u))return r|=16,X([e,f?r:-4&r,d,null,o,u]);if(d||(d=arguments),c&&(e=t[h]),this instanceof n){t=v(e.prototype);var g=e.apply(t,d);return Tt(g)?g:t}return e.apply(t,d)}var e=t[0],r=t[1],i=t[2],a=t[3],o=t[4],u=t[5],s=1&r,c=2&r,l=4&r,f=8&r,h=e;return Ke(n,t),n}function J(t,n){var e=-1,a=st(),o=t?t.length:0,u=o>=x&&a===r,c=[];if(u){var l=s(n);l?(a=i,n=l):u=!1}for(;++e<o;){var f=t[e];a(n,f)<0&&c.push(f)}return u&&d(n),c}function Q(t,n,e,r){for(var i=(r||0)-1,a=t?t.length:0,o=[];++i<a;){var u=t[i];if(u&&"object"==typeof u&&"number"==typeof u.length&&(Je(u)||ht(u))){n||(u=Q(u,n,e));var s=-1,c=u.length,l=o.length;for(o.length+=c;++s<c;)o[l++]=u[s]}else e||o.push(u)}return o}function tt(t,n,e,r,i,a){if(e){var o=e(t,n);if("undefined"!=typeof o)return!!o}if(t===n)return 0!==t||1/t==1/n;var u=typeof t,s=typeof n;if(!(t!==t||t&&Z[u]||n&&Z[s]))return!1;if(null==t||null==n)return t===n;var c=De.call(t),f=De.call(n);if(c==q&&(c=Y),f==q&&(f=Y),c!=f)return!1;switch(c){case P:case j:return+t==+n;case z:return t!=+t?n!=+n:0==t?1/t==1/n:t==+n;case V:case H:return t==we(n)}var d=c==R;if(!d){var p=Be.call(t,"__wrapped__"),g=Be.call(n,"__wrapped__");if(p||g)return tt(p?t.__wrapped__:t,g?n.__wrapped__:n,e,r,i,a);if(c!=Y)return!1;var y=t.constructor,m=n.constructor;if(y!=m&&!(Ct(y)&&y instanceof y&&Ct(m)&&m instanceof m)&&"constructor"in t&&"constructor"in n)return!1}var v=!i;i||(i=l()),a||(a=l());for(var b=i.length;b--;)if(i[b]==t)return a[b]==n;var _=0;if(o=!0,i.push(t),a.push(n),d){if(b=t.length,_=n.length,o=_==b,o||r)for(;_--;){var x=b,w=n[_];if(r)for(;x--&&!(o=tt(t[x],w,e,r,i,a)););else if(!(o=tt(t[_],w,e,r,i,a)))break}}else ur(n,function(n,u,s){return Be.call(s,u)?(_++,o=Be.call(t,u)&&tt(t[u],n,e,r,i,a)):void 0}),o&&!r&&ur(t,function(t,n,e){return Be.call(e,n)?o=--_>-1:void 0});return i.pop(),a.pop(),v&&(h(i),h(a)),o}function nt(t,n,e,r,i){(Je(n)?Xt:sr)(n,function(n,a){var o,u,s=n,c=t[a];if(n&&((u=Je(n))||cr(n))){for(var l=r.length;l--;)if(o=r[l]==n){c=i[l];break}if(!o){var f;e&&(s=e(c,n),(f="undefined"!=typeof s)&&(c=s)),f||(c=u?Je(c)?c:[]:cr(c)?c:{}),r.push(n),i.push(c),f||nt(c,n,e,r,i)}}else e&&(s=e(c,n),"undefined"==typeof s&&(s=n)),"undefined"!=typeof s&&(c=s);t[a]=c})}function rt(t,n){return t+Fe(We()*(n-t+1))}function it(t,n,e){var a=-1,o=st(),u=t?t.length:0,c=[],f=!n&&u>=x&&o===r,p=e||f?l():c;if(f){var g=s(p);o=i,p=g}for(;++a<u;){var y=t[a],m=e?e(y,a,t):y;(n?!a||p[p.length-1]!==m:o(p,m)<0)&&((e||f)&&p.push(m),c.push(y))}return f?(h(p.array),d(p)):e&&h(p),c}function at(t){return function(e,r,i){var a={};r=n.createCallback(r,i,3);var o=-1,u=e?e.length:0;if("number"==typeof u)for(;++o<u;){var s=e[o];t(a,s,r(s,o,e),e)}else sr(e,function(n,e,i){t(a,n,r(n,e,i),i)});return a}}function ot(t,n,e,r,i,o){var u=1&n,s=2&n,c=4&n,l=16&n,f=32&n;if(!s&&!Ct(t))throw new ke;l&&!e.length&&(n&=-17,l=e=!1),f&&!r.length&&(n&=-33,f=r=!1);var h=t&&t.__bindData__;if(h&&h!==!0)return h=p(h),h[2]&&(h[2]=p(h[2])),h[3]&&(h[3]=p(h[3])),!u||1&h[1]||(h[4]=i),!u&&1&h[1]&&(n|=8),!c||4&h[1]||(h[5]=o),l&&Oe.apply(h[2]||(h[2]=[]),e),f&&Re.apply(h[3]||(h[3]=[]),r),h[1]|=n,ot.apply(null,h);var d=1==n||17===n?a:X;return d([t,n,e,r,i,o])}function ut(t){return nr[t]}function st(){var t=(t=n.indexOf)===vn?r:t;return t}function ct(t){return"function"==typeof t&&Se.test(t)}function lt(t){var n,e;return t&&De.call(t)==Y&&(n=t.constructor,!Ct(n)||n instanceof n)?(ur(t,function(t,n){e=n}),"undefined"==typeof e||Be.call(t,e)):!1}function ft(t){return er[t]}function ht(t){return t&&"object"==typeof t&&"number"==typeof t.length&&De.call(t)==q||!1}function dt(t,n,e,r){return"boolean"!=typeof n&&null!=n&&(r=e,e=n,n=!1),m(t,n,"function"==typeof e&&w(e,r,1))}function pt(t,n,e){return m(t,!0,"function"==typeof n&&w(n,e,1))}function gt(t,n){var e=v(t);return n?ar(e,n):e}function yt(t,e,r){var i;return e=n.createCallback(e,r,3),sr(t,function(t,n,r){return e(t,n,r)?(i=n,!1):void 0}),i}function mt(t,e,r){var i;return e=n.createCallback(e,r,3),bt(t,function(t,n,r){return e(t,n,r)?(i=n,!1):void 0}),i}function vt(t,n,e){var r=[];ur(t,function(t,n){r.push(n,t)});var i=r.length;for(n=w(n,e,3);i--&&n(r[i--],r[i],t)!==!1;);return t}function bt(t,n,e){var r=tr(t),i=r.length;for(n=w(n,e,3);i--;){var a=r[i];if(n(t[a],a,t)===!1)break}return t}function _t(t){var n=[];return ur(t,function(t,e){Ct(t)&&n.push(e)}),n.sort()}function xt(t,n){return t?Be.call(t,n):!1}function wt(t){for(var n=-1,e=tr(t),r=e.length,i={};++n<r;){var a=e[n];i[t[a]]=a}return i}function kt(t){return t===!0||t===!1||t&&"object"==typeof t&&De.call(t)==P||!1}function Et(t){return t&&"object"==typeof t&&De.call(t)==j||!1}function Mt(t){return t&&1===t.nodeType||!1}function At(t){var n=!0;if(!t)return n;var e=De.call(t),r=t.length;return e==R||e==H||e==q||e==Y&&"number"==typeof r&&Ct(t.splice)?!r:(sr(t,function(){return n=!1}),n)}function Dt(t,n,e,r){return tt(t,n,"function"==typeof e&&w(e,r,2))}function St(t){return ze(t)&&!Ye(parseFloat(t))}function Ct(t){return"function"==typeof t}function Tt(t){return!(!t||!Z[typeof t])}function Ft(t){return Lt(t)&&t!=+t}function Nt(t){return null===t}function Lt(t){return"number"==typeof t||t&&"object"==typeof t&&De.call(t)==z||!1}function Bt(t){return t&&"object"==typeof t&&De.call(t)==V||!1}function Ot(t){return"string"==typeof t||t&&"object"==typeof t&&De.call(t)==H||!1}function It(t){return"undefined"==typeof t}function qt(t,e,r){var i={};return e=n.createCallback(e,r,3),sr(t,function(t,n,r){i[n]=e(t,n,r)}),i}function Rt(t){var n=arguments,e=2;if(!Tt(t))return t;if("number"!=typeof n[2]&&(e=n.length),e>3&&"function"==typeof n[e-2])var r=w(n[--e-1],n[e--],2);else e>2&&"function"==typeof n[e-1]&&(r=n[--e]);for(var i=p(arguments,1,e),a=-1,o=l(),u=l();++a<e;)nt(t,i[a],r,o,u);return h(o),h(u),t}function Pt(t,e,r){var i={};if("function"!=typeof e){var a=[];ur(t,function(t,n){a.push(n)}),a=J(a,Q(arguments,!0,!1,1));for(var o=-1,u=a.length;++o<u;){var s=a[o];i[s]=t[s]}}else e=n.createCallback(e,r,3),ur(t,function(t,n,r){e(t,n,r)||(i[n]=t)});return i}function jt(t){for(var n=-1,e=tr(t),r=e.length,i=pe(r);++n<r;){var a=e[n];i[n]=[a,t[a]]}return i}function Ut(t,e,r){var i={};if("function"!=typeof e)for(var a=-1,o=Q(arguments,!0,!1,1),u=Tt(t)?o.length:0;++a<u;){var s=o[a];s in t&&(i[s]=t[s])}else e=n.createCallback(e,r,3),ur(t,function(t,n,r){e(t,n,r)&&(i[n]=t)});return i}function zt(t,e,r,i){var a=Je(t);if(null==r)if(a)r=[];else{var o=t&&t.constructor,u=o&&o.prototype;r=v(u)}return e&&(e=n.createCallback(e,i,4),(a?Xt:sr)(t,function(t,n,i){return e(r,t,n,i)})),r}function Yt(t){for(var n=-1,e=tr(t),r=e.length,i=pe(r);++n<r;)i[n]=t[e[n]];return i}function Vt(t){for(var n=arguments,e=-1,r=Q(n,!0,!1,1),i=n[2]&&n[2][n[1]]===t?1:r.length,a=pe(i);++e<i;)a[e]=t[r[e]];return a}function Ht(t,n,e){var r=-1,i=st(),a=t?t.length:0,o=!1;return e=(0>e?He(0,a+e):e)||0,Je(t)?o=i(t,n,e)>-1:"number"==typeof a?o=(Ot(t)?t.indexOf(n,e):i(t,n,e))>-1:sr(t,function(t){return++r>=e?!(o=t===n):void 0}),o}function Gt(t,e,r){var i=!0;e=n.createCallback(e,r,3);var a=-1,o=t?t.length:0;if("number"==typeof o)for(;++a<o&&(i=!!e(t[a],a,t)););else sr(t,function(t,n,r){return i=!!e(t,n,r)});return i}function $t(t,e,r){var i=[];e=n.createCallback(e,r,3);var a=-1,o=t?t.length:0;if("number"==typeof o)for(;++a<o;){var u=t[a];e(u,a,t)&&i.push(u)}else sr(t,function(t,n,r){e(t,n,r)&&i.push(t)});return i}function Wt(t,e,r){e=n.createCallback(e,r,3);var i=-1,a=t?t.length:0;if("number"!=typeof a){var o;return sr(t,function(t,n,r){return e(t,n,r)?(o=t,!1):void 0}),o}for(;++i<a;){var u=t[i];if(e(u,i,t))return u}}function Zt(t,e,r){var i;return e=n.createCallback(e,r,3),Kt(t,function(t,n,r){return e(t,n,r)?(i=t,!1):void 0}),i}function Xt(t,n,e){var r=-1,i=t?t.length:0;if(n=n&&"undefined"==typeof e?n:w(n,e,3),"number"==typeof i)for(;++r<i&&n(t[r],r,t)!==!1;);else sr(t,n);return t}function Kt(t,n,e){var r=t?t.length:0;if(n=n&&"undefined"==typeof e?n:w(n,e,3),"number"==typeof r)for(;r--&&n(t[r],r,t)!==!1;);else{var i=tr(t);r=i.length,sr(t,function(t,e,a){return e=i?i[--r]:--r,n(a[e],e,a)})}return t}function Jt(t,n){var e=p(arguments,2),r=-1,i="function"==typeof n,a=t?t.length:0,o=pe("number"==typeof a?a:0);return Xt(t,function(t){o[++r]=(i?n:t[n]).apply(t,e)}),o}function Qt(t,e,r){var i=-1,a=t?t.length:0;if(e=n.createCallback(e,r,3),"number"==typeof a)for(var o=pe(a);++i<a;)o[i]=e(t[i],i,t);else o=[],sr(t,function(t,n,r){o[++i]=e(t,n,r)});return o}function tn(t,e,r){var i=-(1/0),a=i;if("function"!=typeof e&&r&&r[e]===t&&(e=null),null==e&&Je(t))for(var u=-1,s=t.length;++u<s;){var c=t[u];c>a&&(a=c)}else e=null==e&&Ot(t)?o:n.createCallback(e,r,3),Xt(t,function(t,n,r){var o=e(t,n,r);o>i&&(i=o,a=t)});return a}function nn(t,e,r){var i=1/0,a=i;if("function"!=typeof e&&r&&r[e]===t&&(e=null),null==e&&Je(t))for(var u=-1,s=t.length;++u<s;){var c=t[u];a>c&&(a=c)}else e=null==e&&Ot(t)?o:n.createCallback(e,r,3),Xt(t,function(t,n,r){var o=e(t,n,r);i>o&&(i=o,a=t)});return a}function en(t,e,r,i){if(!t)return r;var a=arguments.length<3;e=n.createCallback(e,i,4);var o=-1,u=t.length;if("number"==typeof u)for(a&&(r=t[++o]);++o<u;)r=e(r,t[o],o,t);else sr(t,function(t,n,i){r=a?(a=!1,t):e(r,t,n,i)});return r}function rn(t,e,r,i){var a=arguments.length<3;return e=n.createCallback(e,i,4),Kt(t,function(t,n,i){r=a?(a=!1,t):e(r,t,n,i)}),r}function an(t,e,r){return e=n.createCallback(e,r,3),$t(t,function(t,n,r){return!e(t,n,r)})}function on(t,n,e){if(t&&"number"!=typeof t.length&&(t=Yt(t)),null==n||e)return t?t[rt(0,t.length-1)]:y;var r=un(t);return r.length=Ge(He(0,n),r.length),r}function un(t){var n=-1,e=t?t.length:0,r=pe("number"==typeof e?e:0);return Xt(t,function(t){var e=rt(0,++n);r[n]=r[e],r[e]=t}),r}function sn(t){var n=t?t.length:0;return"number"==typeof n?n:tr(t).length}function cn(t,e,r){var i;e=n.createCallback(e,r,3);var a=-1,o=t?t.length:0;if("number"==typeof o)for(;++a<o&&!(i=e(t[a],a,t)););else sr(t,function(t,n,r){return!(i=e(t,n,r))});return!!i}function ln(t,e,r){var i=-1,a=Je(e),o=t?t.length:0,s=pe("number"==typeof o?o:0);for(a||(e=n.createCallback(e,r,3)),Xt(t,function(t,n,r){var o=s[++i]=f();a?o.criteria=Qt(e,function(n){return t[n]}):(o.criteria=l())[0]=e(t,n,r),o.index=i,o.value=t}),o=s.length,s.sort(u);o--;){var c=s[o];s[o]=c.value,a||h(c.criteria),d(c)}return s}function fn(t){return t&&"number"==typeof t.length?p(t):Yt(t)}function hn(t){for(var n=-1,e=t?t.length:0,r=[];++n<e;){var i=t[n];i&&r.push(i)}return r}function dn(t){return J(t,Q(arguments,!0,!0,1))}function pn(t,e,r){var i=-1,a=t?t.length:0;for(e=n.createCallback(e,r,3);++i<a;)if(e(t[i],i,t))return i;return-1}function gn(t,e,r){var i=t?t.length:0;for(e=n.createCallback(e,r,3);i--;)if(e(t[i],i,t))return i;return-1}function yn(t,e,r){var i=0,a=t?t.length:0;if("number"!=typeof e&&null!=e){var o=-1;for(e=n.createCallback(e,r,3);++o<a&&e(t[o],o,t);)i++}else if(i=e,null==i||r)return t?t[0]:y;return p(t,0,Ge(He(0,i),a))}function mn(t,n,e,r){return"boolean"!=typeof n&&null!=n&&(r=e,e="function"!=typeof n&&r&&r[n]===t?null:n,n=!1),null!=e&&(t=Qt(t,e,r)),Q(t,n)}function vn(t,n,e){if("number"==typeof e){var i=t?t.length:0;e=0>e?He(0,i+e):e||0}else if(e){var a=Dn(t,n);return t[a]===n?a:-1}return r(t,n,e)}function bn(t,e,r){var i=0,a=t?t.length:0;if("number"!=typeof e&&null!=e){var o=a;for(e=n.createCallback(e,r,3);o--&&e(t[o],o,t);)i++}else i=null==e||r?1:e||i;return p(t,0,Ge(He(0,a-i),a))}function _n(){for(var t=[],n=-1,e=arguments.length,a=l(),o=st(),u=o===r,c=l();++n<e;){var f=arguments[n];(Je(f)||ht(f))&&(t.push(f),a.push(u&&f.length>=x&&s(n?t[n]:c)))}var p=t[0],g=-1,y=p?p.length:0,m=[];t:for(;++g<y;){var v=a[0];if(f=p[g],(v?i(v,f):o(c,f))<0){for(n=e,(v||c).push(f);--n;)if(v=a[n],(v?i(v,f):o(t[n],f))<0)continue t;m.push(f)}}for(;e--;)v=a[e],v&&d(v);return h(a),h(c),m}function xn(t,e,r){var i=0,a=t?t.length:0;if("number"!=typeof e&&null!=e){var o=a;for(e=n.createCallback(e,r,3);o--&&e(t[o],o,t);)i++}else if(i=e,null==i||r)return t?t[a-1]:y;return p(t,He(0,a-i))}function wn(t,n,e){var r=t?t.length:0;for("number"==typeof e&&(r=(0>e?He(0,r+e):Ge(e,r-1))+1);r--;)if(t[r]===n)return r;return-1}function kn(t){for(var n=arguments,e=0,r=n.length,i=t?t.length:0;++e<r;)for(var a=-1,o=n[e];++a<i;)t[a]===o&&(qe.call(t,a--,1),i--);return t}function En(t,n,e){t=+t||0,e="number"==typeof e?e:+e||1,null==n&&(n=t,t=0);for(var r=-1,i=He(0,Ce((n-t)/(e||1))),a=pe(i);++r<i;)a[r]=t,t+=e;return a}function Mn(t,e,r){var i=-1,a=t?t.length:0,o=[];for(e=n.createCallback(e,r,3);++i<a;){var u=t[i];e(u,i,t)&&(o.push(u),qe.call(t,i--,1),a--)}return o}function An(t,e,r){if("number"!=typeof e&&null!=e){var i=0,a=-1,o=t?t.length:0;for(e=n.createCallback(e,r,3);++a<o&&e(t[a],a,t);)i++}else i=null==e||r?1:He(0,e);return p(t,i)}function Dn(t,e,r,i){var a=0,o=t?t.length:a;for(r=r?n.createCallback(r,i,1):Jn,e=r(e);o>a;){var u=a+o>>>1;r(t[u])<e?a=u+1:o=u}return a}function Sn(){return it(Q(arguments,!0,!0))}function Cn(t,e,r,i){return"boolean"!=typeof e&&null!=e&&(i=r,r="function"!=typeof e&&i&&i[e]===t?null:e,e=!1),null!=r&&(r=n.createCallback(r,i,3)),it(t,e,r)}function Tn(t){return J(t,p(arguments,1))}function Fn(){for(var t=-1,n=arguments.length;++t<n;){var e=arguments[t];if(Je(e)||ht(e))var r=r?it(J(r,e).concat(J(e,r))):e}return r||[]}function Nn(){for(var t=arguments.length>1?arguments:arguments[0],n=-1,e=t?tn(dr(t,"length")):0,r=pe(0>e?0:e);++n<e;)r[n]=dr(t,n);return r}function Ln(t,n){var e=-1,r=t?t.length:0,i={};for(n||!r||Je(t[0])||(n=[]);++e<r;){var a=t[e];n?i[a]=n[e]:a&&(i[a[0]]=a[1])}return i}function Bn(t,n){if(!Ct(n))throw new ke;return function(){return--t<1?n.apply(this,arguments):void 0}}function On(t,n){return arguments.length>2?ot(t,17,p(arguments,2),null,n):ot(t,1,null,null,n)}function In(t){for(var n=arguments.length>1?Q(arguments,!0,!1,1):_t(t),e=-1,r=n.length;++e<r;){var i=n[e];t[i]=ot(t[i],1,null,null,t)}return t}function qn(t,n){return arguments.length>2?ot(n,19,p(arguments,2),null,t):ot(n,3,null,null,t)}function Rn(){for(var t=arguments,n=t.length;n--;)if(!Ct(t[n]))throw new ke;return function(){for(var n=arguments,e=t.length;e--;)n=[t[e].apply(this,n)];return n[0]}}function Pn(t,n){return n="number"==typeof n?n:+n||t.length,ot(t,4,null,null,null,n)}function jn(t,n,e){var r,i,a,o,u,s,c,l=0,f=!1,h=!0;if(!Ct(t))throw new ke;if(n=He(0,n)||0,e===!0){var d=!0;h=!1}else Tt(e)&&(d=e.leading,f="maxWait"in e&&(He(n,e.maxWait)||0),
  h="trailing"in e?e.trailing:h);var p=function(){var e=n-(gr()-o);if(0>=e){i&&Te(i);var f=c;i=s=c=y,f&&(l=gr(),a=t.apply(u,r),s||i||(r=u=null))}else s=Ie(p,e)},g=function(){s&&Te(s),i=s=c=y,(h||f!==n)&&(l=gr(),a=t.apply(u,r),s||i||(r=u=null))};return function(){if(r=arguments,o=gr(),u=this,c=h&&(s||!d),f===!1)var e=d&&!s;else{i||d||(l=o);var y=f-(o-l),m=0>=y;m?(i&&(i=Te(i)),l=o,a=t.apply(u,r)):i||(i=Ie(g,y))}return m&&s?s=Te(s):s||n===f||(s=Ie(p,n)),e&&(m=!0,a=t.apply(u,r)),!m||s||i||(r=u=null),a}}function Un(t){if(!Ct(t))throw new ke;var n=p(arguments,1);return Ie(function(){t.apply(y,n)},1)}function zn(t,n){if(!Ct(t))throw new ke;var e=p(arguments,2);return Ie(function(){t.apply(y,e)},n)}function Yn(t,n){if(!Ct(t))throw new ke;var e=function(){var r=e.cache,i=n?n.apply(this,arguments):_+arguments[0];return Be.call(r,i)?r[i]:r[i]=t.apply(this,arguments)};return e.cache={},e}function Vn(t){var n,e;if(!Ct(t))throw new ke;return function(){return n?e:(n=!0,e=t.apply(this,arguments),t=null,e)}}function Hn(t){return ot(t,16,p(arguments,1))}function Gn(t){return ot(t,32,null,p(arguments,1))}function $n(t,n,e){var r=!0,i=!0;if(!Ct(t))throw new ke;return e===!1?r=!1:Tt(e)&&(r="leading"in e?e.leading:r,i="trailing"in e?e.trailing:i),$.leading=r,$.maxWait=n,$.trailing=i,jn(t,n,$)}function Wn(t,n){return ot(n,16,[t])}function Zn(t){return function(){return t}}function Xn(t,n,e){var r=typeof t;if(null==t||"function"==r)return w(t,n,e);if("object"!=r)return ee(t);var i=tr(t),a=i[0],o=t[a];return 1!=i.length||o!==o||Tt(o)?function(n){for(var e=i.length,r=!1;e--&&(r=tt(n[i[e]],t[i[e]],null,!0)););return r}:function(t){var n=t[a];return o===n&&(0!==o||1/o==1/n)}}function Kn(t){return null==t?"":we(t).replace(ir,ut)}function Jn(t){return t}function Qn(t,r,i){var a=!0,o=r&&_t(r);r&&(i||o.length)||(null==i&&(i=r),u=e,r=t,t=n,o=_t(r)),i===!1?a=!1:Tt(i)&&"chain"in i&&(a=i.chain);var u=t,s=Ct(u);Xt(o,function(n){var e=t[n]=r[n];s&&(u.prototype[n]=function(){var n=this.__chain__,r=this.__wrapped__,i=[r];Oe.apply(i,arguments);var o=e.apply(t,i);if(a||n){if(r===o&&Tt(o))return this;o=new u(o),o.__chain__=n}return o})})}function te(){return t._=Ae,this}function ne(){}function ee(t){return function(n){return n[t]}}function re(t,n,e){var r=null==t,i=null==n;if(null==e&&("boolean"==typeof t&&i?(e=t,t=1):i||"boolean"!=typeof n||(e=n,i=!0)),r&&i&&(n=1),t=+t||0,i?(n=t,t=0):n=+n||0,e||t%1||n%1){var a=We();return Ge(t+a*(n-t+parseFloat("1e-"+((a+"").length-1))),n)}return rt(t,n)}function ie(t,n){if(t){var e=t[n];return Ct(e)?t[n]():e}}function ae(t,e,r){var i=n.templateSettings;t=we(t||""),r=or({},r,i);var a,o=or({},r.imports,i.imports),u=tr(o),s=Yt(o),l=0,f=r.interpolate||N,h="__p += '",d=xe((r.escape||N).source+"|"+f.source+"|"+(f===T?D:N).source+"|"+(r.evaluate||N).source+"|$","g");t.replace(d,function(n,e,r,i,o,u){return r||(r=i),h+=t.slice(l,u).replace(B,c),e&&(h+="' +\n__e("+e+") +\n'"),o&&(a=!0,h+="';\n"+o+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+n.length,n}),h+="';\n";var p=r.variable,g=p;g||(p="obj",h="with ("+p+") {\n"+h+"\n}\n"),h=(a?h.replace(E,""):h).replace(M,"$1").replace(A,"$1;"),h="function("+p+") {\n"+(g?"":p+" || ("+p+" = {});\n")+"var __t, __p = '', __e = _.escape"+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var m="\n/*\n//# sourceURL="+(r.sourceURL||"/lodash/template/source["+I++ +"]")+"\n*/";try{var v=me(u,"return "+h+m).apply(y,s)}catch(b){throw b.source=h,b}return e?v(e):(v.source=h,v)}function oe(t,n,e){t=(t=+t)>-1?t:0;var r=-1,i=pe(t);for(n=w(n,e,1);++r<t;)i[r]=n(r);return i}function ue(t){return null==t?"":we(t).replace(rr,ft)}function se(t){var n=++b;return we(null==t?"":t)+n}function ce(t){return t=new e(t),t.__chain__=!0,t}function le(t,n){return n(t),t}function fe(){return this.__chain__=!0,this}function he(){return we(this.__wrapped__)}function de(){return this.__wrapped__}t=t?et.defaults(K.Object(),t,et.pick(K,O)):K;var pe=t.Array,ge=t.Boolean,ye=t.Date,me=t.Function,ve=t.Math,be=t.Number,_e=t.Object,xe=t.RegExp,we=t.String,ke=t.TypeError,Ee=[],Me=_e.prototype,Ae=t._,De=Me.toString,Se=xe("^"+we(De).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),Ce=ve.ceil,Te=t.clearTimeout,Fe=ve.floor,Ne=me.prototype.toString,Le=ct(Le=_e.getPrototypeOf)&&Le,Be=Me.hasOwnProperty,Oe=Ee.push,Ie=t.setTimeout,qe=Ee.splice,Re=Ee.unshift,Pe=function(){try{var t={},n=ct(n=_e.defineProperty)&&n,e=n(t,t,t)&&n}catch(r){}return e}(),je=ct(je=_e.create)&&je,Ue=ct(Ue=pe.isArray)&&Ue,ze=t.isFinite,Ye=t.isNaN,Ve=ct(Ve=_e.keys)&&Ve,He=ve.max,Ge=ve.min,$e=t.parseInt,We=ve.random,Ze={};Ze[R]=pe,Ze[P]=ge,Ze[j]=ye,Ze[U]=me,Ze[Y]=_e,Ze[z]=be,Ze[V]=xe,Ze[H]=we,e.prototype=n.prototype;var Xe=n.support={};Xe.funcDecomp=!ct(t.WinRTError)&&L.test(g),Xe.funcNames="string"==typeof me.name,n.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:T,variable:"",imports:{_:n}},je||(v=function(){function n(){}return function(e){if(Tt(e)){n.prototype=e;var r=new n;n.prototype=null}return r||t.Object()}}());var Ke=Pe?function(t,n){W.value=n,Pe(t,"__bindData__",W)}:ne,Je=Ue||function(t){return t&&"object"==typeof t&&"number"==typeof t.length&&De.call(t)==R||!1},Qe=function(t){var n,e=t,r=[];if(!e)return r;if(!Z[typeof t])return r;for(n in e)Be.call(e,n)&&r.push(n);return r},tr=Ve?function(t){return Tt(t)?Ve(t):[]}:Qe,nr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},er=wt(nr),rr=xe("("+tr(er).join("|")+")","g"),ir=xe("["+tr(nr).join("")+"]","g"),ar=function(t,n,e){var r,i=t,a=i;if(!i)return a;var o=arguments,u=0,s="number"==typeof e?2:o.length;if(s>3&&"function"==typeof o[s-2])var c=w(o[--s-1],o[s--],2);else s>2&&"function"==typeof o[s-1]&&(c=o[--s]);for(;++u<s;)if(i=o[u],i&&Z[typeof i])for(var l=-1,f=Z[typeof i]&&tr(i),h=f?f.length:0;++l<h;)r=f[l],a[r]=c?c(a[r],i[r]):i[r];return a},or=function(t,n,e){var r,i=t,a=i;if(!i)return a;for(var o=arguments,u=0,s="number"==typeof e?2:o.length;++u<s;)if(i=o[u],i&&Z[typeof i])for(var c=-1,l=Z[typeof i]&&tr(i),f=l?l.length:0;++c<f;)r=l[c],"undefined"==typeof a[r]&&(a[r]=i[r]);return a},ur=function(t,n,e){var r,i=t,a=i;if(!i)return a;if(!Z[typeof i])return a;n=n&&"undefined"==typeof e?n:w(n,e,3);for(r in i)if(n(i[r],r,t)===!1)return a;return a},sr=function(t,n,e){var r,i=t,a=i;if(!i)return a;if(!Z[typeof i])return a;n=n&&"undefined"==typeof e?n:w(n,e,3);for(var o=-1,u=Z[typeof i]&&tr(i),s=u?u.length:0;++o<s;)if(r=u[o],n(i[r],r,t)===!1)return a;return a},cr=Le?function(t){if(!t||De.call(t)!=Y)return!1;var n=t.valueOf,e=ct(n)&&(e=Le(n))&&Le(e);return e?t==e||Le(t)==e:lt(t)}:lt,lr=at(function(t,n,e){Be.call(t,e)?t[e]++:t[e]=1}),fr=at(function(t,n,e){(Be.call(t,e)?t[e]:t[e]=[]).push(n)}),hr=at(function(t,n,e){t[e]=n}),dr=Qt,pr=$t,gr=ct(gr=ye.now)&&gr||function(){return(new ye).getTime()},yr=8==$e(k+"08")?$e:function(t,n){return $e(Ot(t)?t.replace(F,""):t,n||0)};return n.after=Bn,n.assign=ar,n.at=Vt,n.bind=On,n.bindAll=In,n.bindKey=qn,n.chain=ce,n.compact=hn,n.compose=Rn,n.constant=Zn,n.countBy=lr,n.create=gt,n.createCallback=Xn,n.curry=Pn,n.debounce=jn,n.defaults=or,n.defer=Un,n.delay=zn,n.difference=dn,n.filter=$t,n.flatten=mn,n.forEach=Xt,n.forEachRight=Kt,n.forIn=ur,n.forInRight=vt,n.forOwn=sr,n.forOwnRight=bt,n.functions=_t,n.groupBy=fr,n.indexBy=hr,n.initial=bn,n.intersection=_n,n.invert=wt,n.invoke=Jt,n.keys=tr,n.map=Qt,n.mapValues=qt,n.max=tn,n.memoize=Yn,n.merge=Rt,n.min=nn,n.omit=Pt,n.once=Vn,n.pairs=jt,n.partial=Hn,n.partialRight=Gn,n.pick=Ut,n.pluck=dr,n.property=ee,n.pull=kn,n.range=En,n.reject=an,n.remove=Mn,n.rest=An,n.shuffle=un,n.sortBy=ln,n.tap=le,n.throttle=$n,n.times=oe,n.toArray=fn,n.transform=zt,n.union=Sn,n.uniq=Cn,n.values=Yt,n.where=pr,n.without=Tn,n.wrap=Wn,n.xor=Fn,n.zip=Nn,n.zipObject=Ln,n.collect=Qt,n.drop=An,n.each=Xt,n.eachRight=Kt,n.extend=ar,n.methods=_t,n.object=Ln,n.select=$t,n.tail=An,n.unique=Cn,n.unzip=Nn,Qn(n),n.clone=dt,n.cloneDeep=pt,n.contains=Ht,n.escape=Kn,n.every=Gt,n.find=Wt,n.findIndex=pn,n.findKey=yt,n.findLast=Zt,n.findLastIndex=gn,n.findLastKey=mt,n.has=xt,n.identity=Jn,n.indexOf=vn,n.isArguments=ht,n.isArray=Je,n.isBoolean=kt,n.isDate=Et,n.isElement=Mt,n.isEmpty=At,n.isEqual=Dt,n.isFinite=St,n.isFunction=Ct,n.isNaN=Ft,n.isNull=Nt,n.isNumber=Lt,n.isObject=Tt,n.isPlainObject=cr,n.isRegExp=Bt,n.isString=Ot,n.isUndefined=It,n.lastIndexOf=wn,n.mixin=Qn,n.noConflict=te,n.noop=ne,n.now=gr,n.parseInt=yr,n.random=re,n.reduce=en,n.reduceRight=rn,n.result=ie,n.runInContext=g,n.size=sn,n.some=cn,n.sortedIndex=Dn,n.template=ae,n.unescape=ue,n.uniqueId=se,n.all=Gt,n.any=cn,n.detect=Wt,n.findWhere=Wt,n.foldl=en,n.foldr=rn,n.include=Ht,n.inject=en,Qn(function(){var t={};return sr(n,function(e,r){n.prototype[r]||(t[r]=e)}),t}(),!1),n.first=yn,n.last=xn,n.sample=on,n.take=yn,n.head=yn,sr(n,function(t,r){var i="sample"!==r;n.prototype[r]||(n.prototype[r]=function(n,r){var a=this.__chain__,o=t(this.__wrapped__,n,r);return a||null!=n&&(!r||i&&"function"==typeof n)?new e(o,a):o})}),n.VERSION="2.4.1",n.prototype.chain=fe,n.prototype.toString=he,n.prototype.value=de,n.prototype.valueOf=de,Xt(["join","pop","shift"],function(t){var r=Ee[t];n.prototype[t]=function(){var t=this.__chain__,n=r.apply(this.__wrapped__,arguments);return t?new e(n,t):n}}),Xt(["push","reverse","sort","unshift"],function(t){var e=Ee[t];n.prototype[t]=function(){return e.apply(this.__wrapped__,arguments),this}}),Xt(["concat","slice","splice"],function(t){var r=Ee[t];n.prototype[t]=function(){return new e(r.apply(this.__wrapped__,arguments),this.__chain__)}}),n}var y,m=[],v=[],b=0,_=+new Date+"",x=75,w=40,k=" 	\f \ufeff\n\r\u2028\u2029 ᠎             　",E=/\b__p \+= '';/g,M=/\b(__p \+=) '' \+/g,A=/(__e\(.*?\)|\b__t\)) \+\n'';/g,D=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,S=/\w*$/,C=/^\s*function[ \n\r\t]+\w/,T=/<%=([\s\S]+?)%>/g,F=RegExp("^["+k+"]*0+(?=.$)"),N=/($^)/,L=/\bthis\b/,B=/['\n\r\t\u2028\u2029\\]/g,O=["Array","Boolean","Date","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],I=0,q="[object Arguments]",R="[object Array]",P="[object Boolean]",j="[object Date]",U="[object Function]",z="[object Number]",Y="[object Object]",V="[object RegExp]",H="[object String]",G={};G[U]=!1,G[q]=G[R]=G[P]=G[j]=G[z]=G[Y]=G[V]=G[H]=!0;var $={leading:!1,maxWait:0,trailing:!1},W={configurable:!1,enumerable:!1,value:null,writable:!1},Z={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1},X={"\\":"\\","'":"'","\n":"n","\r":"r","	":"t","\u2028":"u2028","\u2029":"u2029"},K=Z[typeof window]&&window||this,J=Z[typeof e]&&e&&!e.nodeType&&e,Q=Z[typeof n]&&n&&!n.nodeType&&n,tt=Q&&Q.exports===J&&J,nt=Z[typeof t]&&t;!nt||nt.global!==nt&&nt.window!==nt||(K=nt);var et=g();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(K._=et,define(function(){return et})):J&&Q?tt?(Q.exports=et)._=et:J._=et:K._=et}).call(this)}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],83:[function(t,n,e){!function(t,r){"object"==typeof e&&"undefined"!=typeof n?n.exports=r():"function"==typeof define&&define.amd?define(r):t.moment=r()}(this,function(){"use strict";function e(){return Ce.apply(null,arguments)}function r(t){Ce=t}function i(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function a(t){return"[object Array]"===Object.prototype.toString.call(t)}function o(t){return"[object Date]"===Object.prototype.toString.call(t)||t instanceof Date}function u(t,n){var e,r=[];for(e=0;e<t.length;++e)r.push(n(t[e],e));return r}function s(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function c(t,n){for(var e in n)s(n,e)&&(t[e]=n[e]);return s(n,"toString")&&(t.toString=n.toString),s(n,"valueOf")&&(t.valueOf=n.valueOf),t}function l(t,n,e,r){return At(t,n,e,r,!0).utc()}function f(t){return null==t._isValid&&(t._isValid=!isNaN(t._d.getTime())&&t._pf.overflow<0&&!t._pf.empty&&!t._pf.invalidMonth&&!t._pf.nullInput&&!t._pf.invalidFormat&&!t._pf.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===t._pf.charsLeftOver&&0===t._pf.unusedTokens.length&&void 0===t._pf.bigHour)),t._isValid}function h(t){var n=l(0/0);return null!=t?c(n._pf,t):n._pf.userInvalidated=!0,n}function d(t,n){var e,r,i;if("undefined"!=typeof n._isAMomentObject&&(t._isAMomentObject=n._isAMomentObject),"undefined"!=typeof n._i&&(t._i=n._i),"undefined"!=typeof n._f&&(t._f=n._f),"undefined"!=typeof n._l&&(t._l=n._l),"undefined"!=typeof n._strict&&(t._strict=n._strict),"undefined"!=typeof n._tzm&&(t._tzm=n._tzm),"undefined"!=typeof n._isUTC&&(t._isUTC=n._isUTC),"undefined"!=typeof n._offset&&(t._offset=n._offset),"undefined"!=typeof n._pf&&(t._pf=n._pf),"undefined"!=typeof n._locale&&(t._locale=n._locale),Fe.length>0)for(e in Fe)r=Fe[e],i=n[r],"undefined"!=typeof i&&(t[r]=i);return t}function p(t){d(this,t),this._d=new Date(+t._d),Ne===!1&&(Ne=!0,e.updateOffset(this),Ne=!1)}function g(t){return t instanceof p||null!=t&&s(t,"_isAMomentObject")}function y(t){var n=+t,e=0;return 0!==n&&isFinite(n)&&(e=n>=0?Math.floor(n):Math.ceil(n)),e}function m(t,n,e){var r,i=Math.min(t.length,n.length),a=Math.abs(t.length-n.length),o=0;for(r=0;i>r;r++)(e&&t[r]!==n[r]||!e&&y(t[r])!==y(n[r]))&&o++;return o+a}function v(){}function b(t){return t?t.toLowerCase().replace("_","-"):t}function _(t){for(var n,e,r,i,a=0;a<t.length;){for(i=b(t[a]).split("-"),n=i.length,e=b(t[a+1]),e=e?e.split("-"):null;n>0;){if(r=x(i.slice(0,n).join("-")))return r;if(e&&e.length>=n&&m(i,e,!0)>=n-1)break;n--}a++}return null}function x(e){var r=null;if(!Le[e]&&"undefined"!=typeof n&&n&&n.exports)try{r=Te._abbr,t("./locale/"+e),w(r)}catch(i){}return Le[e]}function w(t,n){var e;return t&&(e="undefined"==typeof n?E(t):k(t,n),e&&(Te=e)),Te._abbr}function k(t,n){return null!==n?(n.abbr=t,Le[t]||(Le[t]=new v),Le[t].set(n),w(t),Le[t]):(delete Le[t],null)}function E(t){var n;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Te;if(!a(t)){if(n=x(t))return n;t=[t]}return _(t)}function M(t,n){var e=t.toLowerCase();Be[e]=Be[e+"s"]=Be[n]=t}function A(t){return"string"==typeof t?Be[t]||Be[t.toLowerCase()]:void 0}function D(t){var n,e,r={};for(e in t)s(t,e)&&(n=A(e),n&&(r[n]=t[e]));return r}function S(t,n){return function(r){return null!=r?(T(this,t,r),e.updateOffset(this,n),this):C(this,t)}}function C(t,n){return t._d["get"+(t._isUTC?"UTC":"")+n]()}function T(t,n,e){return t._d["set"+(t._isUTC?"UTC":"")+n](e)}function F(t,n){var e;if("object"==typeof t)for(e in t)this.set(e,t[e]);else if(t=A(t),"function"==typeof this[t])return this[t](n);return this}function N(t,n,e){for(var r=""+Math.abs(t),i=t>=0;r.length<n;)r="0"+r;return(i?e?"+":"":"-")+r}function L(t,n,e,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(Re[t]=i),n&&(Re[n[0]]=function(){return N(i.apply(this,arguments),n[1],n[2])}),e&&(Re[e]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function B(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function O(t){var n,e,r=t.match(Oe);for(n=0,e=r.length;e>n;n++)r[n]=Re[r[n]]?Re[r[n]]:B(r[n]);return function(i){var a="";for(n=0;e>n;n++)a+=r[n]instanceof Function?r[n].call(i,t):r[n];return a}}function I(t,n){return t.isValid()?(n=q(n,t.localeData()),qe[n]||(qe[n]=O(n)),qe[n](t)):t.localeData().invalidDate()}function q(t,n){function e(t){return n.longDateFormat(t)||t}var r=5;for(Ie.lastIndex=0;r>=0&&Ie.test(t);)t=t.replace(Ie,e),Ie.lastIndex=0,r-=1;return t}function R(t,n,e){Qe[t]="function"==typeof n?n:function(t){return t&&e?e:n}}function P(t,n){return s(Qe,t)?Qe[t](n._strict,n._locale):new RegExp(j(t))}function j(t){return t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,e,r,i){return n||e||r||i}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function U(t,n){var e,r=n;for("string"==typeof t&&(t=[t]),"number"==typeof n&&(r=function(t,e){e[n]=y(t)}),e=0;e<t.length;e++)tr[t[e]]=r}function z(t,n){U(t,function(t,e,r,i){r._w=r._w||{},n(t,r._w,r,i)})}function Y(t,n,e){null!=n&&s(tr,t)&&tr[t](n,e._a,e,t)}function V(t,n){return new Date(Date.UTC(t,n+1,0)).getUTCDate()}function H(t){return this._months[t.month()]}function G(t){return this._monthsShort[t.month()]}function $(t,n,e){var r,i,a;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;12>r;r++){if(i=l([2e3,r]),e&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),e||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),e&&"MMMM"===n&&this._longMonthsParse[r].test(t))return r;if(e&&"MMM"===n&&this._shortMonthsParse[r].test(t))return r;if(!e&&this._monthsParse[r].test(t))return r}}function W(t,n){var e;return"string"==typeof n&&(n=t.localeData().monthsParse(n),"number"!=typeof n)?t:(e=Math.min(t.date(),V(t.year(),n)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](n,e),t)}function Z(t){return null!=t?(W(this,t),e.updateOffset(this,!0),this):C(this,"Month")}function X(){return V(this.year(),this.month())}function K(t){var n,e=t._a;return e&&-2===t._pf.overflow&&(n=e[er]<0||e[er]>11?er:e[rr]<1||e[rr]>V(e[nr],e[er])?rr:e[ir]<0||e[ir]>24||24===e[ir]&&(0!==e[ar]||0!==e[or]||0!==e[ur])?ir:e[ar]<0||e[ar]>59?ar:e[or]<0||e[or]>59?or:e[ur]<0||e[ur]>999?ur:-1,t._pf._overflowDayOfYear&&(nr>n||n>rr)&&(n=rr),t._pf.overflow=n),t}function J(t){e.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function Q(t,n){var e=!0;return c(function(){return e&&(J(t),e=!1),n.apply(this,arguments)},n)}function tt(t,n){lr[t]||(J(n),lr[t]=!0)}function nt(t){var n,e,r=t._i,i=fr.exec(r);if(i){for(t._pf.iso=!0,n=0,e=hr.length;e>n;n++)if(hr[n][1].exec(r)){t._f=hr[n][0]+(i[6]||" ");break}for(n=0,e=dr.length;e>n;n++)if(dr[n][1].exec(r)){t._f+=dr[n][0];break}r.match(Xe)&&(t._f+="Z"),_t(t)}else t._isValid=!1}function et(t){var n=pr.exec(t._i);return null!==n?void(t._d=new Date(+n[1])):(nt(t),void(t._isValid===!1&&(delete t._isValid,e.createFromInputFallback(t))))}function rt(t,n,e,r,i,a,o){var u=new Date(t,n,e,r,i,a,o);return 1970>t&&u.setFullYear(t),u}function it(t){var n=new Date(Date.UTC.apply(null,arguments));return 1970>t&&n.setUTCFullYear(t),n}function at(t){return ot(t)?366:365}function ot(t){return t%4===0&&t%100!==0||t%400===0}function ut(){return ot(this.year())}function st(t,n,e){var r,i=e-n,a=e-t.day();return a>i&&(a-=7),i-7>a&&(a+=7),r=Dt(t).add(a,"d"),{week:Math.ceil(r.dayOfYear()/7),year:r.year()}}function ct(t){return st(t,this._week.dow,this._week.doy).week}function lt(){return this._week.dow}function ft(){return this._week.doy}function ht(t){var n=this.localeData().week(this);return null==t?n:this.add(7*(t-n),"d")}function dt(t){var n=st(this,1,4).week;return null==t?n:this.add(7*(t-n),"d")}function pt(t,n,e,r,i){var a,o,u=it(t,0,1).getUTCDay();return u=0===u?7:u,e=null!=e?e:i,a=i-u+(u>r?7:0)-(i>u?7:0),o=7*(n-1)+(e-i)+a+1,{year:o>0?t:t-1,dayOfYear:o>0?o:at(t-1)+o}}function gt(t){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?n:this.add(t-n,"d")}function yt(t,n,e){return null!=t?t:null!=n?n:e}function mt(t){var n=new Date;return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function vt(t){var n,e,r,i,a=[];if(!t._d){for(r=mt(t),t._w&&null==t._a[rr]&&null==t._a[er]&&bt(t),t._dayOfYear&&(i=yt(t._a[nr],r[nr]),t._dayOfYear>at(i)&&(t._pf._overflowDayOfYear=!0),e=it(i,0,t._dayOfYear),t._a[er]=e.getUTCMonth(),t._a[rr]=e.getUTCDate()),n=0;3>n&&null==t._a[n];++n)t._a[n]=a[n]=r[n];for(;7>n;n++)t._a[n]=a[n]=null==t._a[n]?2===n?1:0:t._a[n];24===t._a[ir]&&0===t._a[ar]&&0===t._a[or]&&0===t._a[ur]&&(t._nextDay=!0,t._a[ir]=0),t._d=(t._useUTC?it:rt).apply(null,a),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[ir]=24)}}function bt(t){var n,e,r,i,a,o,u;n=t._w,null!=n.GG||null!=n.W||null!=n.E?(a=1,o=4,e=yt(n.GG,t._a[nr],st(Dt(),1,4).year),r=yt(n.W,1),i=yt(n.E,1)):(a=t._locale._week.dow,o=t._locale._week.doy,e=yt(n.gg,t._a[nr],st(Dt(),a,o).year),r=yt(n.w,1),null!=n.d?(i=n.d,a>i&&++r):i=null!=n.e?n.e+a:a),u=pt(e,r,i,o,a),t._a[nr]=u.year,t._dayOfYear=u.dayOfYear}function _t(t){if(t._f===e.ISO_8601)return void nt(t);t._a=[],t._pf.empty=!0;var n,r,i,a,o,u=""+t._i,s=u.length,c=0;for(i=q(t._f,t._locale).match(Oe)||[],n=0;n<i.length;n++)a=i[n],r=(u.match(P(a,t))||[])[0],r&&(o=u.substr(0,u.indexOf(r)),o.length>0&&t._pf.unusedInput.push(o),u=u.slice(u.indexOf(r)+r.length),c+=r.length),Re[a]?(r?t._pf.empty=!1:t._pf.unusedTokens.push(a),Y(a,r,t)):t._strict&&!r&&t._pf.unusedTokens.push(a);t._pf.charsLeftOver=s-c,u.length>0&&t._pf.unusedInput.push(u),t._pf.bigHour===!0&&t._a[ir]<=12&&(t._pf.bigHour=void 0),t._a[ir]=xt(t._locale,t._a[ir],t._meridiem),vt(t),K(t)}function xt(t,n,e){var r;return null==e?n:null!=t.meridiemHour?t.meridiemHour(n,e):null!=t.isPM?(r=t.isPM(e),r&&12>n&&(n+=12),r||12!==n||(n=0),n):n}function wt(t){var n,e,r,a,o;if(0===t._f.length)return t._pf.invalidFormat=!0,void(t._d=new Date(0/0));for(a=0;a<t._f.length;a++)o=0,n=d({},t),null!=t._useUTC&&(n._useUTC=t._useUTC),n._pf=i(),n._f=t._f[a],_t(n),f(n)&&(o+=n._pf.charsLeftOver,o+=10*n._pf.unusedTokens.length,n._pf.score=o,(null==r||r>o)&&(r=o,e=n));c(t,e||n)}function kt(t){if(!t._d){var n=D(t._i);t._a=[n.year,n.month,n.day||n.date,n.hour,n.minute,n.second,n.millisecond],vt(t)}}function Et(t){var n,e=t._i,r=t._f;return t._locale=t._locale||E(t._l),null===e||void 0===r&&""===e?h({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),g(e)?new p(K(e)):(a(r)?wt(t):r?_t(t):Mt(t),n=new p(K(t)),n._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n))}function Mt(t){var n=t._i;void 0===n?t._d=new Date:o(n)?t._d=new Date(+n):"string"==typeof n?et(t):a(n)?(t._a=u(n.slice(0),function(t){return parseInt(t,10)}),vt(t)):"object"==typeof n?kt(t):"number"==typeof n?t._d=new Date(n):e.createFromInputFallback(t)}function At(t,n,e,r,a){var o={};return"boolean"==typeof e&&(r=e,e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=a,o._l=e,o._i=t,o._f=n,o._strict=r,o._pf=i(),Et(o)}function Dt(t,n,e,r){return At(t,n,e,r,!1)}function St(t,n){var e,r;if(1===n.length&&a(n[0])&&(n=n[0]),!n.length)return Dt();for(e=n[0],r=1;r<n.length;++r)n[r][t](e)&&(e=n[r]);return e}function Ct(){var t=[].slice.call(arguments,0);return St("isBefore",t)}function Tt(){var t=[].slice.call(arguments,0);return St("isAfter",t)}function Ft(t){var n=D(t),e=n.year||0,r=n.quarter||0,i=n.month||0,a=n.week||0,o=n.day||0,u=n.hour||0,s=n.minute||0,c=n.second||0,l=n.millisecond||0;this._milliseconds=+l+1e3*c+6e4*s+36e5*u,this._days=+o+7*a,this._months=+i+3*r+12*e,this._data={},this._locale=E(),this._bubble()}function Nt(t){return t instanceof Ft}function Lt(t,n){L(t,0,0,function(){var t=this.utcOffset(),e="+";return 0>t&&(t=-t,e="-"),e+N(~~(t/60),2)+n+N(~~t%60,2)})}function Bt(t){var n=(t||"").match(Xe)||[],e=n[n.length-1]||[],r=(e+"").match(br)||["-",0,0],i=+(60*r[1])+y(r[2]);return"+"===r[0]?i:-i}function Ot(t,n){var r,i;return n._isUTC?(r=n.clone(),i=(g(t)||o(t)?+t:+Dt(t))-+r,r._d.setTime(+r._d+i),e.updateOffset(r,!1),r):Dt(t).local()}function It(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function qt(t,n){var r,i=this._offset||0;return null!=t?("string"==typeof t&&(t=Bt(t)),Math.abs(t)<16&&(t=60*t),!this._isUTC&&n&&(r=It(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==t&&(!n||this._changeInProgress?Qt(this,Wt(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?i:It(this)}function Rt(t,n){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,n),this):-this.utcOffset()}function Pt(t){return this.utcOffset(0,t)}function jt(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(It(this),"m")),this}function Ut(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Bt(this._i)),this}function zt(t){return t=t?Dt(t).utcOffset():0,(this.utcOffset()-t)%60===0}function Yt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Vt(){if(this._a){var t=this._isUTC?l(this._a):Dt(this._a);return this.isValid()&&m(this._a,t.toArray())>0}return!1}function Ht(){return!this._isUTC}function Gt(){return this._isUTC}function $t(){return this._isUTC&&0===this._offset}function Wt(t,n){var e,r,i,a=t,o=null;return Nt(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(a={},n?a[n]=t:a.milliseconds=t):(o=_r.exec(t))?(e="-"===o[1]?-1:1,a={y:0,d:y(o[rr])*e,h:y(o[ir])*e,m:y(o[ar])*e,s:y(o[or])*e,ms:y(o[ur])*e}):(o=xr.exec(t))?(e="-"===o[1]?-1:1,a={y:Zt(o[2],e),M:Zt(o[3],e),d:Zt(o[4],e),h:Zt(o[5],e),m:Zt(o[6],e),s:Zt(o[7],e),w:Zt(o[8],e)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=Kt(Dt(a.from),Dt(a.to)),a={},a.ms=i.milliseconds,a.M=i.months),r=new Ft(a),Nt(t)&&s(t,"_locale")&&(r._locale=t._locale),r}function Zt(t,n){var e=t&&parseFloat(t.replace(",","."));return(isNaN(e)?0:e)*n}function Xt(t,n){var e={milliseconds:0,months:0};return e.months=n.month()-t.month()+12*(n.year()-t.year()),t.clone().add(e.months,"M").isAfter(n)&&--e.months,e.milliseconds=+n-+t.clone().add(e.months,"M"),e}function Kt(t,n){var e;return n=Ot(n,t),t.isBefore(n)?e=Xt(t,n):(e=Xt(n,t),e.milliseconds=-e.milliseconds,e.months=-e.months),e}function Jt(t,n){return function(e,r){var i,a;return null===r||isNaN(+r)||(tt(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period)."),a=e,e=r,r=a),e="string"==typeof e?+e:e,i=Wt(e,r),Qt(this,i,t),this}}function Qt(t,n,r,i){var a=n._milliseconds,o=n._days,u=n._months;i=null==i?!0:i,a&&t._d.setTime(+t._d+a*r),o&&T(t,"Date",C(t,"Date")+o*r),u&&W(t,C(t,"Month")+u*r),i&&e.updateOffset(t,o||u)}function tn(t){var n=t||Dt(),e=Ot(n,this).startOf("day"),r=this.diff(e,"days",!0),i=-6>r?"sameElse":-1>r?"lastWeek":0>r?"lastDay":1>r?"sameDay":2>r?"nextDay":7>r?"nextWeek":"sameElse";return this.format(this.localeData().calendar(i,this,Dt(n)))}function nn(){return new p(this)}function en(t,n){var e;return n=A("undefined"!=typeof n?n:"millisecond"),"millisecond"===n?(t=g(t)?t:Dt(t),+this>+t):(e=g(t)?+t:+Dt(t),e<+this.clone().startOf(n))}function rn(t,n){var e;return n=A("undefined"!=typeof n?n:"millisecond"),"millisecond"===n?(t=g(t)?t:Dt(t),+t>+this):(e=g(t)?+t:+Dt(t),+this.clone().endOf(n)<e)}function an(t,n,e){return this.isAfter(t,e)&&this.isBefore(n,e)}function on(t,n){var e;return n=A(n||"millisecond"),"millisecond"===n?(t=g(t)?t:Dt(t),+this===+t):(e=+Dt(t),+this.clone().startOf(n)<=e&&e<=+this.clone().endOf(n))}function un(t){return 0>t?Math.ceil(t):Math.floor(t)}function sn(t,n,e){var r,i,a=Ot(t,this),o=6e4*(a.utcOffset()-this.utcOffset());return n=A(n),"year"===n||"month"===n||"quarter"===n?(i=cn(this,a),"quarter"===n?i/=3:"year"===n&&(i/=12)):(r=this-a,i="second"===n?r/1e3:"minute"===n?r/6e4:"hour"===n?r/36e5:"day"===n?(r-o)/864e5:"week"===n?(r-o)/6048e5:r),e?i:un(i)}function cn(t,n){var e,r,i=12*(n.year()-t.year())+(n.month()-t.month()),a=t.clone().add(i,"months");return 0>n-a?(e=t.clone().add(i-1,"months"),r=(n-a)/(a-e)):(e=t.clone().add(i+1,"months"),r=(n-a)/(e-a)),-(i+r)}function ln(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function fn(){var t=this.clone().utc();return 0<t.year()&&t.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():I(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):I(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function hn(t){var n=I(this,t||e.defaultFormat);return this.localeData().postformat(n)}function dn(t,n){return Wt({to:this,from:t}).locale(this.locale()).humanize(!n)}function pn(t){return this.from(Dt(),t)}function gn(t){var n;return void 0===t?this._locale._abbr:(n=E(t),null!=n&&(this._locale=n),this)}function yn(){return this._locale}function mn(t){switch(t=A(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this}function vn(t){return t=A(t),void 0===t||"millisecond"===t?this:this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms")}function bn(){return+this._d-6e4*(this._offset||0)}function _n(){return Math.floor(+this/1e3)}function xn(){return this._offset?new Date(+this):this._d}function wn(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function kn(){return f(this)}function En(){return c({},this._pf)}function Mn(){return this._pf.overflow}function An(t,n){L(0,[t,t.length],0,n)}function Dn(t,n,e){return st(Dt([t,11,31+n-e]),n,e).week}function Sn(t){var n=st(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==t?n:this.add(t-n,"y")}function Cn(t){var n=st(this,1,4).year;return null==t?n:this.add(t-n,"y")}function Tn(){return Dn(this.year(),1,4)}function Fn(){var t=this.localeData()._week;return Dn(this.year(),t.dow,t.doy)}function Nn(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Ln(t,n){if("string"==typeof t)if(isNaN(t)){if(t=n.weekdaysParse(t),"number"!=typeof t)return null}else t=parseInt(t,10);return t}function Bn(t){return this._weekdays[t.day()]}function On(t){return this._weekdaysShort[t.day()]}function In(t){return this._weekdaysMin[t.day()]}function qn(t){var n,e,r;for(this._weekdaysParse||(this._weekdaysParse=[]),n=0;7>n;n++)if(this._weekdaysParse[n]||(e=Dt([2e3,1]).day(n),r="^"+this.weekdays(e,"")+"|^"+this.weekdaysShort(e,"")+"|^"+this.weekdaysMin(e,""),this._weekdaysParse[n]=new RegExp(r.replace(".",""),"i")),this._weekdaysParse[n].test(t))return n}function Rn(t){var n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Ln(t,this.localeData()),this.add(t-n,"d")):n}function Pn(t){var n=(this.day()+7-this.localeData()._week.dow)%7;return null==t?n:this.add(t-n,"d")}function jn(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)}function Un(t,n){L(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)})}function zn(t,n){return n._meridiemParse}function Yn(t){return"p"===(t+"").toLowerCase().charAt(0)}function Vn(t,n,e){return t>11?e?"pm":"PM":e?"am":"AM"}function Hn(t){L(0,[t,3],0,"millisecond")}function Gn(){return this._isUTC?"UTC":""}function $n(){return this._isUTC?"Coordinated Universal Time":""}function Wn(t){return Dt(1e3*t)}function Zn(){return Dt.apply(null,arguments).parseZone()}function Xn(t,n,e){var r=this._calendar[t];return"function"==typeof r?r.call(n,e):r}function Kn(t){var n=this._longDateFormat[t];return!n&&this._longDateFormat[t.toUpperCase()]&&(n=this._longDateFormat[t.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]=n),n}function Jn(){return this._invalidDate}function Qn(t){return this._ordinal.replace("%d",t)}function te(t){return t}function ne(t,n,e,r){var i=this._relativeTime[e];return"function"==typeof i?i(t,n,e,r):i.replace(/%d/i,t)}function ee(t,n){var e=this._relativeTime[t>0?"future":"past"];return"function"==typeof e?e(n):e.replace(/%s/i,n)}function re(t){var n,e;for(e in t)n=t[e],"function"==typeof n?this[e]=n:this["_"+e]=n;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function ie(t,n,e,r){var i=E(),a=l().set(r,n);return i[e](a,t)}function ae(t,n,e,r,i){if("number"==typeof t&&(n=t,t=void 0),t=t||"",null!=n)return ie(t,n,e,i);var a,o=[];for(a=0;r>a;a++)o[a]=ie(t,a,e,i);return o}function oe(t,n){return ae(t,n,"months",12,"month")}function ue(t,n){
  return ae(t,n,"monthsShort",12,"month")}function se(t,n){return ae(t,n,"weekdays",7,"day")}function ce(t,n){return ae(t,n,"weekdaysShort",7,"day")}function le(t,n){return ae(t,n,"weekdaysMin",7,"day")}function fe(){var t=this._data;return this._milliseconds=Yr(this._milliseconds),this._days=Yr(this._days),this._months=Yr(this._months),t.milliseconds=Yr(t.milliseconds),t.seconds=Yr(t.seconds),t.minutes=Yr(t.minutes),t.hours=Yr(t.hours),t.months=Yr(t.months),t.years=Yr(t.years),this}function he(t,n,e,r){var i=Wt(n,e);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function de(t,n){return he(this,t,n,1)}function pe(t,n){return he(this,t,n,-1)}function ge(){var t,n,e,r=this._milliseconds,i=this._days,a=this._months,o=this._data,u=0;return o.milliseconds=r%1e3,t=un(r/1e3),o.seconds=t%60,n=un(t/60),o.minutes=n%60,e=un(n/60),o.hours=e%24,i+=un(e/24),u=un(ye(i)),i-=un(me(u)),a+=un(i/30),i%=30,u+=un(a/12),a%=12,o.days=i,o.months=a,o.years=u,this}function ye(t){return 400*t/146097}function me(t){return 146097*t/400}function ve(t){var n,e,r=this._milliseconds;if(t=A(t),"month"===t||"year"===t)return n=this._days+r/864e5,e=this._months+12*ye(n),"month"===t?e:e/12;switch(n=this._days+Math.round(me(this._months/12)),t){case"week":return n/7+r/6048e5;case"day":return n+r/864e5;case"hour":return 24*n+r/36e5;case"minute":return 24*n*60+r/6e4;case"second":return 24*n*60*60+r/1e3;case"millisecond":return Math.floor(24*n*60*60*1e3)+r;default:throw new Error("Unknown unit "+t)}}function be(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*y(this._months/12)}function _e(t){return function(){return this.as(t)}}function xe(t){return t=A(t),this[t+"s"]()}function we(t){return function(){return this._data[t]}}function ke(){return un(this.days()/7)}function Ee(t,n,e,r,i){return i.relativeTime(n||1,!!e,t,r)}function Me(t,n,e){var r=Wt(t).abs(),i=ai(r.as("s")),a=ai(r.as("m")),o=ai(r.as("h")),u=ai(r.as("d")),s=ai(r.as("M")),c=ai(r.as("y")),l=i<oi.s&&["s",i]||1===a&&["m"]||a<oi.m&&["mm",a]||1===o&&["h"]||o<oi.h&&["hh",o]||1===u&&["d"]||u<oi.d&&["dd",u]||1===s&&["M"]||s<oi.M&&["MM",s]||1===c&&["y"]||["yy",c];return l[2]=n,l[3]=+t>0,l[4]=e,Ee.apply(null,l)}function Ae(t,n){return void 0===oi[t]?!1:void 0===n?oi[t]:(oi[t]=n,!0)}function De(t){var n=this.localeData(),e=Me(this,!t,n);return t&&(e=n.pastFuture(+this,e)),n.postformat(e)}function Se(){var t=ui(this.years()),n=ui(this.months()),e=ui(this.days()),r=ui(this.hours()),i=ui(this.minutes()),a=ui(this.seconds()+this.milliseconds()/1e3),o=this.asSeconds();return o?(0>o?"-":"")+"P"+(t?t+"Y":"")+(n?n+"M":"")+(e?e+"D":"")+(r||i||a?"T":"")+(r?r+"H":"")+(i?i+"M":"")+(a?a+"S":""):"P0D"}var Ce,Te,Fe=e.momentProperties=[],Ne=!1,Le={},Be={},Oe=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|x|X|zz?|ZZ?|.)/g,Ie=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,qe={},Re={},Pe=/\d/,je=/\d\d/,Ue=/\d{3}/,ze=/\d{4}/,Ye=/[+-]?\d{6}/,Ve=/\d\d?/,He=/\d{1,3}/,Ge=/\d{1,4}/,$e=/[+-]?\d{1,6}/,We=/\d+/,Ze=/[+-]?\d+/,Xe=/Z|[+-]\d\d:?\d\d/gi,Ke=/[+-]?\d+(\.\d{1,3})?/,Je=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Qe={},tr={},nr=0,er=1,rr=2,ir=3,ar=4,or=5,ur=6;L("M",["MM",2],"Mo",function(){return this.month()+1}),L("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),L("MMMM",0,0,function(t){return this.localeData().months(this,t)}),M("month","M"),R("M",Ve),R("MM",Ve,je),R("MMM",Je),R("MMMM",Je),U(["M","MM"],function(t,n){n[er]=y(t)-1}),U(["MMM","MMMM"],function(t,n,e,r){var i=e._locale.monthsParse(t,r,e._strict);null!=i?n[er]=i:e._pf.invalidMonth=t});var sr="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),cr="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),lr={};e.suppressDeprecationWarnings=!1;var fr=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,hr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],dr=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],pr=/^\/?Date\((\-?\d+)/i;e.createFromInputFallback=Q("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),L(0,["YY",2],0,function(){return this.year()%100}),L(0,["YYYY",4],0,"year"),L(0,["YYYYY",5],0,"year"),L(0,["YYYYYY",6,!0],0,"year"),M("year","y"),R("Y",Ze),R("YY",Ve,je),R("YYYY",Ge,ze),R("YYYYY",$e,Ye),R("YYYYYY",$e,Ye),U(["YYYY","YYYYY","YYYYYY"],nr),U("YY",function(t,n){n[nr]=e.parseTwoDigitYear(t)}),e.parseTwoDigitYear=function(t){return y(t)+(y(t)>68?1900:2e3)};var gr=S("FullYear",!1);L("w",["ww",2],"wo","week"),L("W",["WW",2],"Wo","isoWeek"),M("week","w"),M("isoWeek","W"),R("w",Ve),R("ww",Ve,je),R("W",Ve),R("WW",Ve,je),z(["w","ww","W","WW"],function(t,n,e,r){n[r.substr(0,1)]=y(t)});var yr={dow:0,doy:6};L("DDD",["DDDD",3],"DDDo","dayOfYear"),M("dayOfYear","DDD"),R("DDD",He),R("DDDD",Ue),U(["DDD","DDDD"],function(t,n,e){e._dayOfYear=y(t)}),e.ISO_8601=function(){};var mr=Q("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var t=Dt.apply(null,arguments);return this>t?this:t}),vr=Q("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var t=Dt.apply(null,arguments);return t>this?this:t});Lt("Z",":"),Lt("ZZ",""),R("Z",Xe),R("ZZ",Xe),U(["Z","ZZ"],function(t,n,e){e._useUTC=!0,e._tzm=Bt(t)});var br=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var _r=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,xr=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;Wt.fn=Ft.prototype;var wr=Jt(1,"add"),kr=Jt(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var Er=Q("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});L(0,["gg",2],0,function(){return this.weekYear()%100}),L(0,["GG",2],0,function(){return this.isoWeekYear()%100}),An("gggg","weekYear"),An("ggggg","weekYear"),An("GGGG","isoWeekYear"),An("GGGGG","isoWeekYear"),M("weekYear","gg"),M("isoWeekYear","GG"),R("G",Ze),R("g",Ze),R("GG",Ve,je),R("gg",Ve,je),R("GGGG",Ge,ze),R("gggg",Ge,ze),R("GGGGG",$e,Ye),R("ggggg",$e,Ye),z(["gggg","ggggg","GGGG","GGGGG"],function(t,n,e,r){n[r.substr(0,2)]=y(t)}),z(["gg","GG"],function(t,n,r,i){n[i]=e.parseTwoDigitYear(t)}),L("Q",0,0,"quarter"),M("quarter","Q"),R("Q",Pe),U("Q",function(t,n){n[er]=3*(y(t)-1)}),L("D",["DD",2],"Do","date"),M("date","D"),R("D",Ve),R("DD",Ve,je),R("Do",function(t,n){return t?n._ordinalParse:n._ordinalParseLenient}),U(["D","DD"],rr),U("Do",function(t,n){n[rr]=y(t.match(Ve)[0],10)});var Mr=S("Date",!0);L("d",0,"do","day"),L("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),L("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),L("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),L("e",0,0,"weekday"),L("E",0,0,"isoWeekday"),M("day","d"),M("weekday","e"),M("isoWeekday","E"),R("d",Ve),R("e",Ve),R("E",Ve),R("dd",Je),R("ddd",Je),R("dddd",Je),z(["dd","ddd","dddd"],function(t,n,e){var r=e._locale.weekdaysParse(t);null!=r?n.d=r:e._pf.invalidWeekday=t}),z(["d","e","E"],function(t,n,e,r){n[r]=y(t)});var Ar="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Dr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Sr="Su_Mo_Tu_We_Th_Fr_Sa".split("_");L("H",["HH",2],0,"hour"),L("h",["hh",2],0,function(){return this.hours()%12||12}),Un("a",!0),Un("A",!1),M("hour","h"),R("a",zn),R("A",zn),R("H",Ve),R("h",Ve),R("HH",Ve,je),R("hh",Ve,je),U(["H","HH"],ir),U(["a","A"],function(t,n,e){e._isPm=e._locale.isPM(t),e._meridiem=t}),U(["h","hh"],function(t,n,e){n[ir]=y(t),e._pf.bigHour=!0});var Cr=/[ap]\.?m?\.?/i,Tr=S("Hours",!0);L("m",["mm",2],0,"minute"),M("minute","m"),R("m",Ve),R("mm",Ve,je),U(["m","mm"],ar);var Fr=S("Minutes",!1);L("s",["ss",2],0,"second"),M("second","s"),R("s",Ve),R("ss",Ve,je),U(["s","ss"],or);var Nr=S("Seconds",!1);L("S",0,0,function(){return~~(this.millisecond()/100)}),L(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Hn("SSS"),Hn("SSSS"),M("millisecond","ms"),R("S",He,Pe),R("SS",He,je),R("SSS",He,Ue),R("SSSS",We),U(["S","SS","SSS","SSSS"],function(t,n){n[ur]=y(1e3*("0."+t))});var Lr=S("Milliseconds",!1);L("z",0,0,"zoneAbbr"),L("zz",0,0,"zoneName");var Br=p.prototype;Br.add=wr,Br.calendar=tn,Br.clone=nn,Br.diff=sn,Br.endOf=vn,Br.format=hn,Br.from=dn,Br.fromNow=pn,Br.get=F,Br.invalidAt=Mn,Br.isAfter=en,Br.isBefore=rn,Br.isBetween=an,Br.isSame=on,Br.isValid=kn,Br.lang=Er,Br.locale=gn,Br.localeData=yn,Br.max=vr,Br.min=mr,Br.parsingFlags=En,Br.set=F,Br.startOf=mn,Br.subtract=kr,Br.toArray=wn,Br.toDate=xn,Br.toISOString=fn,Br.toJSON=fn,Br.toString=ln,Br.unix=_n,Br.valueOf=bn,Br.year=gr,Br.isLeapYear=ut,Br.weekYear=Sn,Br.isoWeekYear=Cn,Br.quarter=Br.quarters=Nn,Br.month=Z,Br.daysInMonth=X,Br.week=Br.weeks=ht,Br.isoWeek=Br.isoWeeks=dt,Br.weeksInYear=Fn,Br.isoWeeksInYear=Tn,Br.date=Mr,Br.day=Br.days=Rn,Br.weekday=Pn,Br.isoWeekday=jn,Br.dayOfYear=gt,Br.hour=Br.hours=Tr,Br.minute=Br.minutes=Fr,Br.second=Br.seconds=Nr,Br.millisecond=Br.milliseconds=Lr,Br.utcOffset=qt,Br.utc=Pt,Br.local=jt,Br.parseZone=Ut,Br.hasAlignedHourOffset=zt,Br.isDST=Yt,Br.isDSTShifted=Vt,Br.isLocal=Ht,Br.isUtcOffset=Gt,Br.isUtc=$t,Br.isUTC=$t,Br.zoneAbbr=Gn,Br.zoneName=$n,Br.dates=Q("dates accessor is deprecated. Use date instead.",Mr),Br.months=Q("months accessor is deprecated. Use month instead",Z),Br.years=Q("years accessor is deprecated. Use year instead",gr),Br.zone=Q("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",Rt);var Or=Br,Ir={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},qr={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},Rr="Invalid date",Pr="%d",jr=/\d{1,2}/,Ur={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},zr=v.prototype;zr._calendar=Ir,zr.calendar=Xn,zr._longDateFormat=qr,zr.longDateFormat=Kn,zr._invalidDate=Rr,zr.invalidDate=Jn,zr._ordinal=Pr,zr.ordinal=Qn,zr._ordinalParse=jr,zr.preparse=te,zr.postformat=te,zr._relativeTime=Ur,zr.relativeTime=ne,zr.pastFuture=ee,zr.set=re,zr.months=H,zr._months=sr,zr.monthsShort=G,zr._monthsShort=cr,zr.monthsParse=$,zr.week=ct,zr._week=yr,zr.firstDayOfYear=ft,zr.firstDayOfWeek=lt,zr.weekdays=Bn,zr._weekdays=Ar,zr.weekdaysMin=In,zr._weekdaysMin=Sr,zr.weekdaysShort=On,zr._weekdaysShort=Dr,zr.weekdaysParse=qn,zr.isPM=Yn,zr._meridiemParse=Cr,zr.meridiem=Vn,w("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var n=t%10,e=1===y(t%100/10)?"th":1===n?"st":2===n?"nd":3===n?"rd":"th";return t+e}}),e.lang=Q("moment.lang is deprecated. Use moment.locale instead.",w),e.langData=Q("moment.langData is deprecated. Use moment.localeData instead.",E);var Yr=Math.abs,Vr=_e("ms"),Hr=_e("s"),Gr=_e("m"),$r=_e("h"),Wr=_e("d"),Zr=_e("w"),Xr=_e("M"),Kr=_e("y"),Jr=we("milliseconds"),Qr=we("seconds"),ti=we("minutes"),ni=we("hours"),ei=we("days"),ri=we("months"),ii=we("years"),ai=Math.round,oi={s:45,m:45,h:22,d:26,M:11},ui=Math.abs,si=Ft.prototype;si.abs=fe,si.add=de,si.subtract=pe,si.as=ve,si.asMilliseconds=Vr,si.asSeconds=Hr,si.asMinutes=Gr,si.asHours=$r,si.asDays=Wr,si.asWeeks=Zr,si.asMonths=Xr,si.asYears=Kr,si.valueOf=be,si._bubble=ge,si.get=xe,si.milliseconds=Jr,si.seconds=Qr,si.minutes=ti,si.hours=ni,si.days=ei,si.weeks=ke,si.months=ri,si.years=ii,si.humanize=De,si.toISOString=Se,si.toString=Se,si.toJSON=Se,si.locale=gn,si.localeData=yn,si.toIsoString=Q("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Se),si.lang=Er,L("X",0,0,"unix"),L("x",0,0,"valueOf"),R("x",Ze),R("X",Ke),U("X",function(t,n,e){e._d=new Date(1e3*parseFloat(t,10))}),U("x",function(t,n,e){e._d=new Date(y(t))}),e.version="2.10.2",r(Dt),e.fn=Or,e.min=Ct,e.max=Tt,e.utc=l,e.unix=Wn,e.months=oe,e.isDate=o,e.locale=w,e.invalid=h,e.duration=Wt,e.isMoment=g,e.weekdays=se,e.parseZone=Zn,e.localeData=E,e.isDuration=Nt,e.monthsShort=ue,e.weekdaysMin=le,e.defineLocale=k,e.weekdaysShort=ce,e.normalizeUnits=A,e.relativeTimeThreshold=Ae;var ci=e;return ci})},{}],84:[function(t,n){n.exports={name:"mermaid",version:"0.4.0",description:"Markdownish syntax for generating flowcharts, sequence diagrams and gantt charts.",main:"src/main.js",keywords:["diagram","markdown","flowchart","sequence diagram","gantt"],bin:{mermaid:"./bin/mermaid.js"},scripts:{test:"gulp test"},repository:{type:"git",url:"https://github.com/knsv/mermaid"},author:"Knut Sveidqvist",license:"MIT",dependencies:{chalk:"^0.5.1",d3:"~3.4.13","dagre-d3":"~0.4.2",he:"^0.5.0",minimist:"^1.1.0",mkdirp:"^0.5.0",moment:"^2.9.0",semver:"^4.1.1",which:"^1.0.8"},devDependencies:{async:"^0.9.0",browserify:"~6.2.0",clone:"^0.2.0","codeclimate-test-reporter":"0.0.4",d3:"~3.4.13","dagre-d3":"~0.3.3",dateformat:"^1.0.11","event-stream":"^3.2.0",foundation:"^4.2.1-1","front-matter":"^0.2.0",gulp:"~3.8.9","gulp-browserify":"^0.5.0","gulp-bump":"^0.1.11","gulp-concat":"~2.4.1","gulp-data":"^1.1.1","gulp-ext-replace":"~0.1.0","gulp-hogan":"^1.1.0","gulp-insert":"^0.4.0","gulp-istanbul":"^0.4.0","gulp-jasmine":"~1.0.1","gulp-jison":"~1.0.0","gulp-jshint":"^1.9.0","gulp-less":"^3.0.1","gulp-rename":"~1.2.0","gulp-shell":"^0.2.10","gulp-tag-version":"^1.2.1","gulp-uglify":"~1.0.1",he:"^0.5.0","hogan.js":"^3.0.2",jasmine:"~2.0.1",jison:"~0.4.15","jshint-stylish":"^1.0.0",karma:"~0.12.20","karma-chrome-launcher":"~0.1.5","karma-jasmine":"~0.2.1","karma-requirejs":"~0.2.2",lodash:"^2.4.1","lodash._escapestringchar":"^2.4.1","lodash._objecttypes":"^2.4.1","lodash._reinterpolate":"^2.4.1","lodash._reunescapedhtml":"^2.4.1","lodash.defaults":"^2.4.1","lodash.templatesettings":"^2.4.1","lodash.values":"^2.4.1",marked:"^0.3.2","mock-browser":"^0.90.27",path:"^0.4.9",phantomjs:"^1.9.12",proxyquire:"^1.3.1",rewire:"^2.1.3",rimraf:"^2.2.8",tape:"^3.0.3"}}},{}],85:[function(t,n,e){var r="",i=!1;e.setMessage=function(t){r=t},e.getMessage=function(){return r},e.setInfo=function(t){i=t},e.getInfo=function(){return i},e.parseError=function(t,n){mermaid.parseError(t,n)}},{}],86:[function(t,n,e){var r=t("./exampleDb"),i=t("./parser/example.js");e.draw=function(t,n,e){var a;a=i.parser,a.yy=r,a.parse(t);var o=d3.select("#"+n),u=o.append("g");u.append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size","32px").style("text-anchor","middle").text("mermaid "+e),o.attr("height",100),o.attr("width",400)}},{"./exampleDb":85,"./parser/example.js":87}],87:[function(t,n,e){(function(r){var i=function(){function t(){this.yy={}}var n=function(t,n,e,r){for(e=e||{},r=t.length;r--;e[t[r]]=n);return e},e=[6,9,10,12],r={trace:function(){},yy:{},symbols_:{error:2,start:3,info:4,document:5,EOF:6,line:7,statement:8,NL:9,showInfo:10,message:11,say:12,TXT:13,$accept:0,$end:1},terminals_:{2:"error",4:"info",6:"EOF",9:"NL",10:"showInfo",12:"say",13:"TXT"},productions_:[0,[3,3],[5,0],[5,2],[7,1],[7,1],[8,1],[8,1],[11,2]],performAction:function(t,n,e,r,i,a){var o=a.length-1;switch(i){case 1:return r;case 4:break;case 6:r.setInfo(!0);break;case 7:r.setMessage(a[o]);break;case 8:this.$=a[o-1].substring(1).trim().replace(/\\n/gm,"\n")}},table:[{3:1,4:[1,2]},{1:[3]},n(e,[2,2],{5:3}),{6:[1,4],7:5,8:6,9:[1,7],10:[1,8],11:9,12:[1,10]},{1:[2,1]},n(e,[2,3]),n(e,[2,4]),n(e,[2,5]),n(e,[2,6]),n(e,[2,7]),{13:[1,11]},n(e,[2,8])],defaultActions:{4:[2,1]},parseError:function(t,n){if(!n.recoverable)throw new Error(t);this.trace(t)},parse:function(t){function n(){var t;return t=p.lex()||h,"number"!=typeof t&&(t=e.symbols_[t]||t),t}var e=this,r=[0],i=[null],a=[],o=this.table,u="",s=0,c=0,l=0,f=2,h=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,"undefined"==typeof p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;this.parseError="function"==typeof g.yy.parseError?g.yy.parseError:Object.getPrototypeOf(this).parseError;for(var b,_,x,w,k,E,M,A,D,S={};;){if(x=r[r.length-1],this.defaultActions[x]?w=this.defaultActions[x]:((null===b||"undefined"==typeof b)&&(b=n()),w=o[x]&&o[x][b]),"undefined"==typeof w||!w.length||!w[0]){var C="";D=[];for(E in o[x])this.terminals_[E]&&E>f&&D.push("'"+this.terminals_[E]+"'");C=p.showPosition?"Parse error on line "+(s+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(C,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:m,expected:D})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+b);switch(w[0]){case 1:r.push(b),i.push(p.yytext),a.push(p.yylloc),r.push(w[1]),b=null,_?(b=_,_=null):(c=p.yyleng,u=p.yytext,s=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(M=this.productions_[w[1]][1],S.$=i[i.length-M],S._$={first_line:a[a.length-(M||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(M||1)].first_column,last_column:a[a.length-1].last_column},v&&(S._$.range=[a[a.length-(M||1)].range[0],a[a.length-1].range[1]]),k=this.performAction.apply(S,[u,c,s,g.yy,w[1],i,a].concat(d)),"undefined"!=typeof k)return k;M&&(r=r.slice(0,-1*M*2),i=i.slice(0,-1*M),a=a.slice(0,-1*M)),r.push(this.productions_[w[1]][0]),i.push(S.$),a.push(S._$),A=o[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0}},i=function(){var t={EOF:1,parseError:function(t,n){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,n)},setInput:function(t,n){return this.yy=n||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var n=t.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var n=t.length,e=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===r.length?this.yylloc.first_column:0)+r[r.length-e.length].length-e[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),n=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+n+"^"},test_match:function(t,n){var e,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,n,e,r;this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if(e=this._input.match(this.rules[i[a]]),e&&(!n||e[0].length>n[0].length)){if(n=e,r=a,this.options.backtrack_lexer){if(t=this.test_match(e,i[a]),t!==!1)return t;if(this._backtrack){n=!1;continue}return!1}if(!this.options.flex)break}return n?(t=this.test_match(n,i[r]),t!==!1?t:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,n,e,r){switch(e){case 0:return 9;case 1:return 10;case 2:return 4;case 3:return 12;case 4:return 13;case 5:return 6;case 6:return"INVALID"}},rules:[/^(?:[\n]+)/i,/^(?:showInfo\b)/i,/^(?:info\b)/i,/^(?:say\b)/i,/^(?::[^#\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6],inclusive:!0}}};return t}();return r.lexer=i,t.prototype=r,r.Parser=t,new t}();"undefined"!=typeof t&&"undefined"!=typeof e&&(e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(n){n[1]||(console.log("Usage: "+n[0]+" FILE"),r.exit(1));var i=t("fs").readFileSync(t("path").normalize(n[1]),"utf8");return e.parser.parse(i)},"undefined"!=typeof n&&t.main===n&&e.main(r.argv.slice(1)))}).call(this,t("1YiZ5S"))},{"1YiZ5S":80,fs:78,path:79}],88:[function(t,n){var e;if(t)try{e=t("d3")}catch(r){}e||(e=window.d3),n.exports=e},{d3:1}],89:[function(t,n){var e;if(t)try{e=t("dagre-d3")}catch(r){}e||(e=window.dagreD3),n.exports=e},{"dagre-d3":2}],90:[function(t,n,e){(function(r){var i=t("./graphDb"),a=t("./parser/flow"),o=t("./parser/dot"),u=t("./dagre-d3"),s=t("./d3"),c={};n.exports.setConf=function(t){var n,e=Object.keys(t);for(n=0;n<e.length;n++)c[e[n]]=t[e[n]]},e.addVertices=function(t,n){var e=Object.keys(t),i=function(t,n){var e;for(e=0;e<n.length;e++)"undefined"!=typeof n[e]&&(t=t+n[e]+";");return t};e.forEach(function(e){var a,o=t[e],u="";o.classes.length>0&&(u=o.classes.join(" "));var s="";s=i(s,o.styles),a="undefined"==typeof o.text?o.id:o.text;var c="";r.mermaid.htmlLabels?c="html":(a=a.replace(/<br>/g,"\n"),c="text");var l=0,f="";switch(o.type){case"round":l=5,f="rect";break;case"square":f="rect";break;case"diamond":f="question";break;case"odd":f="rect_left_inv_arrow";break;case"odd_right":f="rect_left_inv_arrow";break;case"circle":f="circle";break;default:f="rect"}n.setNode(o.id,{labelType:c,shape:f,label:a,rx:l,ry:l,"class":u,style:s,id:o.id})})},e.addEdges=function(t,n){var e,i,a=0;"undefined"!=typeof t.defaultStyle&&(i=t.defaultStyle.toString().replace(/,/g,";")),t.forEach(function(t){a++,e="arrow_open"===t.type?"none":"normal";var o="";if("undefined"!=typeof t.style)t.style.forEach(function(t){o=o+t+";"});else switch(t.stroke){case"normal":o="fill:none","undefined"!=typeof i&&(o=i);break;case"dotted":o="stroke: #333; fill:none;stroke-width:2px;stroke-dasharray:3;";break;case"thick":o="stroke: #333; stroke-width: 3.5px;fill:none"}if("undefined"==typeof t.text)"undefined"==typeof t.style?n.setEdge(t.start,t.end,{style:o,arrowhead:e},a):n.setEdge(t.start,t.end,{style:o,arrowheadStyle:"fill: #333",arrowhead:e},a);else{var u=t.text.replace(/<br>/g,"\n");"undefined"==typeof t.style?r.mermaid.htmlLabels?n.setEdge(t.start,t.end,{labelType:"html",style:o,labelpos:"c",label:'<span style="background:#e8e8e8">'+t.text+"</span>",arrowheadStyle:"fill: #333",arrowhead:e},a):n.setEdge(t.start,t.end,{labelType:"text",style:"stroke: #333; stroke-width: 1.5px;fill:none",labelpos:"c",label:u,arrowheadStyle:"fill: #333",arrowhead:e},a):n.setEdge(t.start,t.end,{labelType:"text",style:o,arrowheadStyle:"fill: #333",label:u,arrowhead:e},a)}})},e.getClasses=function(t,n){var e;i.clear(),e=n?o.parser:a.parser,e.yy=i,e.parse(t);var r=i.getClasses();return"undefined"==typeof r["default"]&&(r["default"]={id:"default"},r["default"].styles=["fill:#ffa","stroke:#666","stroke-width:3px"],r["default"].nodeLabelStyles=["fill:#000","stroke:none","font-weight:300",'font-family:"Helvetica Neue",Helvetica,Arial,sans-serf',"font-size:14px"],r["default"].edgeLabelStyles=["fill:#000","stroke:none","font-weight:300",'font-family:"Helvetica Neue",Helvetica,Arial,sans-serf',"font-size:14px"]),r},e.draw=function(t,n,r){var l;i.clear(),l=r?o.parser:a.parser,l.yy=i;try{l.parse(t)}catch(f){}var h;h=i.getDirection(),"undefined"==typeof h&&(h="TD");var d=new u.graphlib.Graph({multigraph:!0,compound:!0}).setGraph({rankdir:h,marginx:20,marginy:20}).setDefaultEdgeLabel(function(){return{}}),p=i.getSubGraphs(),g=0;p.forEach(function(){g+=1;var t="subG"+g;i.addVertex(t,void 0,void 0,void 0)});var y=i.getVertices(),m=i.getEdges();g=0,p.forEach(function(t){g+=1;var n="subG"+g;s.selectAll("cluster").append("text"),t.nodes.forEach(function(t){d.setParent(t,n)})}),e.addVertices(y,d),e.addEdges(m,d);var v=new u.render;v.shapes().question=function(t,n,e){var r=n.width,i=n.height,a=.8*(r+i),o=[{x:a/2,y:0},{x:a,y:-a/2},{x:a/2,y:-a},{x:0,y:-a/2}],s=t.insert("polygon",":first-child").attr("points",o.map(function(t){return t.x+","+t.y}).join(" ")).attr("rx",5).attr("ry",5).attr("transform","translate("+-a/2+","+2*a/4+")");return e.intersect=function(t){return u.intersect.polygon(e,o,t)},s},v.shapes().rect_left_inv_arrow=function(t,n,e){var r=n.width,i=n.height,a=[{x:-i/2,y:0},{x:r,y:0},{x:r,y:-i},{x:-i/2,y:-i},{x:0,y:-i/2}],o=t.insert("polygon",":first-child").attr("points",a.map(function(t){return t.x+","+t.y}).join(" ")).attr("transform","translate("+-r/2+","+2*i/4+")");return e.intersect=function(t){return u.intersect.polygon(e,a,t)},o},v.shapes().rect_right_inv_arrow=function(t,n,e){var r=n.width,i=n.height,a=[{x:0,y:0},{x:r+i/2,y:0},{x:r,y:-i/2},{x:r+i/2,y:-i},{x:0,y:-i}],o=t.insert("polygon",":first-child").attr("points",a.map(function(t){return t.x+","+t.y}).join(" ")).attr("transform","translate("+-r/2+","+2*i/4+")");return e.intersect=function(t){return u.intersect.polygon(e,a,t)},o},v.arrows().none=function(t,n,e,r){var i=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"),a=i.append("path").attr("d","M 0 0 L 0 0 L 0 0 z");u.util.applyStyle(a,e[r+"Style"])};var b=s.select("#"+n);svgGroup=s.select("#"+n+" g"),v(s.select("#"+n+" g"),d);document.querySelector("#"+n);b.attr("height",d.graph().height),"undefined"==typeof c.width?b.attr("width",d.graph().width):b.attr("width",c.width),b.attr("viewBox","0 0 "+(d.graph().width+20)+" "+(d.graph().height+20)),setTimeout(function(){var t=0;p.forEach(function(e){var r=document.querySelectorAll("#"+n+" .clusters rect"),i=document.querySelectorAll("#"+n+" .cluster");if("undefined"!==e.title){var a=r[t].x.baseVal.value,o=r[t].y.baseVal.value,u=r[t].width.baseVal.value,c=s.select(i[t]),l=c.append("text");l.attr("x",a+u/2),l.attr("y",o+14),l.attr("fill","black"),l.attr("stroke","none"),l.attr("id",n+"Text"),l.style("text-anchor","middle"),l.text(e.title)}t+=1})},20)}}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./d3":88,"./dagre-d3":89,"./graphDb":91,"./parser/dot":92,"./parser/flow":93}],91:[function(require,module,exports){var vertices={},edges=[],classes=[],subGraphs=[],direction,funs=[];exports.addVertex=function(t,n,e,r){"undefined"!=typeof t&&0!==t.trim().length&&("undefined"==typeof vertices[t]&&(vertices[t]={id:t,styles:[],classes:[]}),"undefined"!=typeof n&&(vertices[t].text=n),"undefined"!=typeof e&&(vertices[t].type=e),"undefined"!=typeof e&&(vertices[t].type=e),"undefined"!=typeof r&&null!==r&&r.forEach(function(n){vertices[t].styles.push(n)}))},exports.addLink=function(t,n,e,r){var i={start:t,end:n,type:void 0,text:""};r=e.text,"undefined"!=typeof r&&(i.text=r),"undefined"!=typeof e&&(i.type=e.type,i.stroke=e.stroke),edges.push(i)},exports.updateLink=function(t,n){t.substr(1);"default"===t?edges.defaultStyle=n:edges[t].style=n},exports.addClass=function(t,n){"undefined"==typeof classes[t]&&(classes[t]={id:t,styles:[]}),"undefined"!=typeof n&&null!==n&&n.forEach(function(n){classes[t].styles.push(n)})},exports.setDirection=function(t){direction=t},exports.setClass=function(t,n){t.indexOf(",")>0?t.split(",").forEach(function(t){"undefined"!=typeof vertices[t]&&vertices[t].classes.push(n)}):"undefined"!=typeof vertices[t]&&vertices[t].classes.push(n)},exports.setClickEvent=function(id,functionName){id.indexOf(",")>0?id.split(",").forEach(function(id2){"undefined"!=typeof vertices[id2]&&funs.push(function(){var elem=document.getElementById(id2);null!==elem&&(elem.onclick=function(){eval(functionName+"('"+id2+"')")})})}):"undefined"!=typeof vertices[id]&&funs.push(function(){var elem=document.getElementById(id);null!==elem&&(elem.onclick=function(){eval(functionName+"('"+id+"')")})})},exports.bindFunctions=function(){funs.forEach(function(t){t()})},exports.getDirection=function(){return direction},exports.getVertices=function(){return vertices},exports.getEdges=function(){return edges},exports.getClasses=function(){return classes},exports.clear=function(){vertices={},classes={},edges=[],funs=[],subGraphs=[]},exports.defaultStyle=function(){return"fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;";
  
  },exports.addSubGraph=function(t,n){function e(t){var n={"boolean":{},number:{},string:{}},e=[];return t.filter(function(t){var r=typeof t;return" "===t?!1:r in n?n[r].hasOwnProperty(t)?!1:n[r][t]=!0:e.indexOf(t)>=0?!1:e.push(t)})}var r=[];r=e(r.concat.apply(r,t)),subGraphs.push({nodes:r,title:n})},exports.getSubGraphs=function(){return subGraphs},exports.parseError=function(t,n){mermaid.parseError(t,n)}},{}],92:[function(t,n,e){(function(r){var i=function(){function t(){this.yy={}}var n=function(t,n,e,r){for(e=e||{},r=t.length;r--;e[t[r]]=n);return e},e=[1,5],r=[1,6],i=[1,12],a=[1,13],o=[1,14],u=[1,15],s=[1,16],c=[1,17],l=[1,18],f=[1,19],h=[1,20],d=[1,21],p=[1,22],g=[8,16,17,18,19,20,21,22,23,24,25,26],y=[1,37],m=[1,33],v=[1,34],b=[1,35],_=[1,36],x=[8,10,16,17,18,19,20,21,22,23,24,25,26,28,32,37,39,40,45,57,58],w=[10,28],k=[10,28,37,57,58],E=[2,49],M=[1,45],A=[1,48],D=[1,49],S=[1,52],C=[2,65],T=[1,65],F=[1,66],N=[1,67],L=[1,68],B=[1,69],O=[1,70],I=[1,71],q=[1,72],R=[1,73],P=[8,16,17,18,19,20,21,22,23,24,25,26,47],j=[10,28,37],U={trace:function(){},yy:{},symbols_:{error:2,expressions:3,graph:4,EOF:5,graphStatement:6,idStatement:7,"{":8,stmt_list:9,"}":10,strict:11,GRAPH:12,DIGRAPH:13,textNoTags:14,textNoTagsToken:15,ALPHA:16,NUM:17,COLON:18,PLUS:19,EQUALS:20,MULT:21,DOT:22,BRKT:23,SPACE:24,MINUS:25,keywords:26,stmt:27,";":28,node_stmt:29,edge_stmt:30,attr_stmt:31,"=":32,subgraph:33,attr_list:34,NODE:35,EDGE:36,"[":37,a_list:38,"]":39,",":40,edgeRHS:41,node_id:42,edgeop:43,port:44,":":45,compass_pt:46,SUBGRAPH:47,n:48,ne:49,e:50,se:51,s:52,sw:53,w:54,nw:55,c:56,ARROW_POINT:57,ARROW_OPEN:58,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",8:"{",10:"}",11:"strict",12:"GRAPH",13:"DIGRAPH",16:"ALPHA",17:"NUM",18:"COLON",19:"PLUS",20:"EQUALS",21:"MULT",22:"DOT",23:"BRKT",24:"SPACE",25:"MINUS",26:"keywords",28:";",32:"=",35:"NODE",36:"EDGE",37:"[",39:"]",40:",",45:":",47:"SUBGRAPH",48:"n",49:"ne",50:"e",51:"se",52:"s",53:"sw",54:"w",55:"nw",56:"c",57:"ARROW_POINT",58:"ARROW_OPEN"},productions_:[0,[3,2],[4,5],[4,6],[4,4],[6,1],[6,1],[7,1],[14,1],[14,2],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[15,1],[9,1],[9,3],[27,1],[27,1],[27,1],[27,3],[27,1],[31,2],[31,2],[31,2],[34,4],[34,3],[34,3],[34,2],[38,5],[38,5],[38,3],[30,3],[30,3],[30,2],[30,2],[41,3],[41,3],[41,2],[41,2],[29,2],[29,1],[42,2],[42,1],[44,4],[44,2],[44,2],[33,5],[33,4],[33,3],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,1],[46,0],[43,1],[43,1]],performAction:function(t,n,e,r,i,a){var o=a.length-1;switch(i){case 1:this.$=a[o-1];break;case 2:this.$=a[o-4];break;case 3:this.$=a[o-5];break;case 4:this.$=a[o-3];break;case 8:case 10:case 11:this.$=a[o];break;case 9:this.$=a[o-1]+""+a[o];break;case 12:case 13:case 14:case 15:case 16:case 18:case 19:case 20:this.$=a[o];break;case 17:this.$="<br>";break;case 39:this.$="oy";break;case 40:r.addLink(a[o-1],a[o].id,a[o].op),this.$="oy";break;case 42:r.addLink(a[o-1],a[o].id,a[o].op),this.$={op:a[o-2],id:a[o-1]};break;case 44:this.$={op:a[o-1],id:a[o]};break;case 48:r.addVertex(a[o-1]),this.$=a[o-1];break;case 49:r.addVertex(a[o]),this.$=a[o];break;case 66:this.$="arrow";break;case 67:this.$="arrow_open"}},table:[{3:1,4:2,6:3,11:[1,4],12:e,13:r},{1:[3]},{5:[1,7]},{7:8,8:[1,9],14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:f,24:h,25:d,26:p},{6:23,12:e,13:r},n(g,[2,5]),n(g,[2,6]),{1:[2,1]},{8:[1,24]},{7:30,8:y,9:25,12:m,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:f,24:h,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},n([8,10,28,32,37,39,40,45,57,58],[2,7],{15:38,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:f,24:h,25:d,26:p}),n(x,[2,8]),n(x,[2,10]),n(x,[2,11]),n(x,[2,12]),n(x,[2,13]),n(x,[2,14]),n(x,[2,15]),n(x,[2,16]),n(x,[2,17]),n(x,[2,18]),n(x,[2,19]),n(x,[2,20]),{7:39,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:f,24:h,25:d,26:p},{7:30,8:y,9:40,12:m,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:f,24:h,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},{10:[1,41]},{10:[2,21],28:[1,42]},n(w,[2,23]),n(w,[2,24]),n(w,[2,25]),n(k,E,{44:44,32:[1,43],45:M}),n(w,[2,27],{41:46,43:47,57:A,58:D}),n(w,[2,47],{43:47,34:50,41:51,37:S,57:A,58:D}),{34:53,37:S},{34:54,37:S},{34:55,37:S},{7:56,8:[1,57],14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:f,24:h,25:d,26:p},{7:30,8:y,9:58,12:m,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:f,24:h,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},n(x,[2,9]),{8:[1,59]},{10:[1,60]},{5:[2,4]},{7:30,8:y,9:61,12:m,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:f,24:h,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},{7:62,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:f,24:h,25:d,26:p},n(k,[2,48]),n(k,C,{14:10,15:11,7:63,46:64,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:f,24:h,25:d,26:p,48:T,49:F,50:N,51:L,52:B,53:O,54:I,55:q,56:R}),n(w,[2,41],{34:74,37:S}),{7:77,8:y,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:f,24:h,25:d,26:p,33:76,42:75,47:_},n(P,[2,66]),n(P,[2,67]),n(w,[2,46]),n(w,[2,40],{34:78,37:S}),{7:81,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:f,24:h,25:d,26:p,38:79,39:[1,80]},n(w,[2,28]),n(w,[2,29]),n(w,[2,30]),{8:[1,82]},{7:30,8:y,9:83,12:m,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:f,24:h,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},{10:[1,84]},{7:30,8:y,9:85,12:m,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:f,24:h,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},{5:[2,2]},{10:[2,22]},n(w,[2,26]),n(k,[2,51],{45:[1,86]}),n(k,[2,52]),n(k,[2,56]),n(k,[2,57]),n(k,[2,58]),n(k,[2,59]),n(k,[2,60]),n(k,[2,61]),n(k,[2,62]),n(k,[2,63]),n(k,[2,64]),n(w,[2,38]),n(j,[2,44],{43:47,41:87,57:A,58:D}),n(j,[2,45],{43:47,41:88,57:A,58:D}),n(k,E,{44:44,45:M}),n(w,[2,39]),{39:[1,89]},n(w,[2,34],{34:90,37:S}),{32:[1,91]},{7:30,8:y,9:92,12:m,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:f,24:h,25:d,26:p,27:26,29:27,30:28,31:29,33:31,35:v,36:b,42:32,47:_},{10:[1,93]},n(k,[2,55]),{10:[1,94]},n(k,C,{46:95,48:T,49:F,50:N,51:L,52:B,53:O,54:I,55:q,56:R}),n(j,[2,42]),n(j,[2,43]),n(w,[2,33],{34:96,37:S}),n(w,[2,32]),{7:97,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:f,24:h,25:d,26:p},{10:[1,98]},n(k,[2,54]),{5:[2,3]},n(k,[2,50]),n(w,[2,31]),{28:[1,99],39:[2,37],40:[1,100]},n(k,[2,53]),{7:81,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:f,24:h,25:d,26:p,38:101},{7:81,14:10,15:11,16:i,17:a,18:o,19:u,20:s,21:c,22:l,23:f,24:h,25:d,26:p,38:102},{39:[2,35]},{39:[2,36]}],defaultActions:{7:[2,1],41:[2,4],60:[2,2],61:[2,22],94:[2,3],101:[2,35],102:[2,36]},parseError:function(t,n){if(!n.recoverable)throw new Error(t);this.trace(t)},parse:function(t){function n(){var t;return t=p.lex()||h,"number"!=typeof t&&(t=e.symbols_[t]||t),t}var e=this,r=[0],i=[null],a=[],o=this.table,u="",s=0,c=0,l=0,f=2,h=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,"undefined"==typeof p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;this.parseError="function"==typeof g.yy.parseError?g.yy.parseError:Object.getPrototypeOf(this).parseError;for(var b,_,x,w,k,E,M,A,D,S={};;){if(x=r[r.length-1],this.defaultActions[x]?w=this.defaultActions[x]:((null===b||"undefined"==typeof b)&&(b=n()),w=o[x]&&o[x][b]),"undefined"==typeof w||!w.length||!w[0]){var C="";D=[];for(E in o[x])this.terminals_[E]&&E>f&&D.push("'"+this.terminals_[E]+"'");C=p.showPosition?"Parse error on line "+(s+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(C,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:m,expected:D})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+b);switch(w[0]){case 1:r.push(b),i.push(p.yytext),a.push(p.yylloc),r.push(w[1]),b=null,_?(b=_,_=null):(c=p.yyleng,u=p.yytext,s=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(M=this.productions_[w[1]][1],S.$=i[i.length-M],S._$={first_line:a[a.length-(M||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(M||1)].first_column,last_column:a[a.length-1].last_column},v&&(S._$.range=[a[a.length-(M||1)].range[0],a[a.length-1].range[1]]),k=this.performAction.apply(S,[u,c,s,g.yy,w[1],i,a].concat(d)),"undefined"!=typeof k)return k;M&&(r=r.slice(0,-1*M*2),i=i.slice(0,-1*M),a=a.slice(0,-1*M)),r.push(this.productions_[w[1]][0]),i.push(S.$),a.push(S._$),A=o[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0}},z=function(){var t={EOF:1,parseError:function(t,n){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,n)},setInput:function(t,n){return this.yy=n||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var n=t.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var n=t.length,e=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===r.length?this.yylloc.first_column:0)+r[r.length-e.length].length-e[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),n=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+n+"^"},test_match:function(t,n){var e,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,n,e,r;this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if(e=this._input.match(this.rules[i[a]]),e&&(!n||e[0].length>n[0].length)){if(n=e,r=a,this.options.backtrack_lexer){if(t=this.test_match(e,i[a]),t!==!1)return t;if(this._backtrack){n=!1;continue}return!1}if(!this.options.flex)break}return n?(t=this.test_match(n,i[r]),t!==!1?t:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,n,e,r){switch(e){case 0:return"STYLE";case 1:return"LINKSTYLE";case 2:return"CLASSDEF";case 3:return"CLASS";case 4:return"CLICK";case 5:return 12;case 6:return 13;case 7:return 47;case 8:return 35;case 9:return 36;case 10:return"DIR";case 11:return"DIR";case 12:return"DIR";case 13:return"DIR";case 14:return"DIR";case 15:return"DIR";case 16:return 17;case 17:return 23;case 18:return 18;case 19:return 28;case 20:return 40;case 21:return 32;case 22:return 21;case 23:return 22;case 24:return"ARROW_CROSS";case 25:return 57;case 26:return"ARROW_CIRCLE";case 27:return 58;case 28:return 25;case 29:return 19;case 30:return 20;case 31:return 16;case 32:return"PIPE";case 33:return"PS";case 34:return"PE";case 35:return 37;case 36:return 39;case 37:return 8;case 38:return 10;case 39:return"QUOTE";case 40:return 24;case 41:return"NEWLINE";case 42:return 5}},rules:[/^(?:style\b)/,/^(?:linkStyle\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:click\b)/,/^(?:graph\b)/,/^(?:digraph\b)/,/^(?:subgraph\b)/,/^(?:node\b)/,/^(?:edge\b)/,/^(?:LR\b)/,/^(?:RL\b)/,/^(?:TB\b)/,/^(?:BT\b)/,/^(?:TD\b)/,/^(?:BR\b)/,/^(?:[0-9])/,/^(?:#)/,/^(?::)/,/^(?:;)/,/^(?:,)/,/^(?:=)/,/^(?:\*)/,/^(?:\.)/,/^(?:--[x])/,/^(?:->)/,/^(?:--[o])/,/^(?:--)/,/^(?:-)/,/^(?:\+)/,/^(?:=)/,/^(?:[\u0021-\u0027\u002A-\u002E\u003F\u0041-\u005A\u0061-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC_])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:\s)/,/^(?:\n)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],inclusive:!0}}};return t}();return U.lexer=z,t.prototype=U,U.Parser=t,new t}();"undefined"!=typeof t&&"undefined"!=typeof e&&(e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(n){n[1]||(console.log("Usage: "+n[0]+" FILE"),r.exit(1));var i=t("fs").readFileSync(t("path").normalize(n[1]),"utf8");return e.parser.parse(i)},"undefined"!=typeof n&&t.main===n&&e.main(r.argv.slice(1)))}).call(this,t("1YiZ5S"))},{"1YiZ5S":80,fs:78,path:79}],93:[function(t,n,e){(function(r){var i=function(){function t(){this.yy={}}var n=function(t,n,e,r){for(e=e||{},r=t.length;r--;e[t[r]]=n);return e},e=[1,4],r=[1,3],i=[1,5],a=[1,8,9,10,11,13,30,67,68,69,70,71,77,81,83,84,86,87,89,90,91],o=[2,2],u=[1,12],s=[1,13],c=[1,14],l=[1,15],f=[1,31],h=[1,22],d=[1,24],p=[1,25],g=[1,26],y=[1,27],m=[1,28],v=[1,34],b=[1,36],_=[1,33],x=[1,35],w=[1,41],k=[1,40],E=[1,37],M=[1,38],A=[1,39],D=[1,8,9,10,11,13,30,32,67,68,69,70,71,77,81,83,84,86,87,89,90,91],S=[1,49],C=[1,48],T=[1,50],F=[1,67],N=[1,75],L=[1,76],B=[1,61],O=[1,60],I=[1,80],q=[1,79],R=[1,77],P=[1,78],j=[1,68],U=[1,63],z=[1,62],Y=[1,70],V=[1,71],H=[1,72],G=[1,73],$=[1,74],W=[1,65],Z=[1,64],X=[8,9,11],K=[8,9,11,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61],J=[1,109],Q=[8,9,10,11,13,15,36,38,40,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,77,81,83,84,86,87,89,90,91],tt=[8,9,10,11,12,13,15,16,17,18,30,32,36,37,38,39,40,41,44,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,67,68,69,70,71,74,77,79,81,83,84,86,87,89,90,91],nt=[1,112],et=[1,113],rt=[8,9,10,11,13,30,32,67,68,69,70,71,77,81,83,84,86,87,89,90,91],it=[8,9,10,11,12,13,15,16,17,18,30,32,37,39,41,44,47,48,49,50,51,53,54,55,56,57,58,59,60,61,62,67,68,69,70,71,74,77,79,81,83,84,86,87,89,90,91],at=[13,77,81,83,84,86,87,89,90,91],ot=[13,62,77,81,83,84,86,87,89,90,91],ut=[1,184],st=[1,181],ct=[1,188],lt=[1,185],ft=[1,182],ht=[1,189],dt=[1,179],pt=[1,180],gt=[1,183],yt=[1,186],mt=[1,187],vt=[1,203],bt=[8,9,11,81],_t=[8,9,10,11,44,67,76,77,79,81,83,84,85,86,87],xt={trace:function(){},yy:{},symbols_:{error:2,mermaidDoc:3,graphConfig:4,document:5,line:6,statement:7,SEMI:8,NEWLINE:9,SPACE:10,EOF:11,GRAPH:12,DIR:13,FirstStmtSeperator:14,TAGEND:15,TAGSTART:16,UP:17,DOWN:18,ending:19,endToken:20,spaceList:21,spaceListNewline:22,verticeStatement:23,separator:24,styleStatement:25,linkStyleStatement:26,classDefStatement:27,classStatement:28,clickStatement:29,subgraph:30,text:31,end:32,vertex:33,link:34,alphaNum:35,SQS:36,SQE:37,PS:38,PE:39,DIAMOND_START:40,DIAMOND_STOP:41,alphaNumStatement:42,alphaNumToken:43,MINUS:44,linkStatement:45,arrowText:46,"--":47,ARROW_POINT:48,ARROW_CIRCLE:49,ARROW_CROSS:50,ARROW_OPEN:51,"-.":52,DOTTED_ARROW_POINT:53,DOTTED_ARROW_CIRCLE:54,DOTTED_ARROW_CROSS:55,DOTTED_ARROW_OPEN:56,"==":57,THICK_ARROW_POINT:58,THICK_ARROW_CIRCLE:59,THICK_ARROW_CROSS:60,THICK_ARROW_OPEN:61,PIPE:62,textToken:63,commentText:64,commentToken:65,keywords:66,STYLE:67,LINKSTYLE:68,CLASSDEF:69,CLASS:70,CLICK:71,textNoTags:72,textNoTagsToken:73,DEFAULT:74,stylesOpt:75,HEX:76,NUM:77,commentStatement:78,PCT:79,style:80,COMMA:81,styleComponent:82,ALPHA:83,COLON:84,UNIT:85,BRKT:86,DOT:87,graphCodeTokens:88,PLUS:89,EQUALS:90,MULT:91,TAG_START:92,TAG_END:93,QUOTE:94,$accept:0,$end:1},terminals_:{2:"error",8:"SEMI",9:"NEWLINE",10:"SPACE",11:"EOF",12:"GRAPH",13:"DIR",15:"TAGEND",16:"TAGSTART",17:"UP",18:"DOWN",30:"subgraph",32:"end",36:"SQS",37:"SQE",38:"PS",39:"PE",40:"DIAMOND_START",41:"DIAMOND_STOP",44:"MINUS",47:"--",48:"ARROW_POINT",49:"ARROW_CIRCLE",50:"ARROW_CROSS",51:"ARROW_OPEN",52:"-.",53:"DOTTED_ARROW_POINT",54:"DOTTED_ARROW_CIRCLE",55:"DOTTED_ARROW_CROSS",56:"DOTTED_ARROW_OPEN",57:"==",58:"THICK_ARROW_POINT",59:"THICK_ARROW_CIRCLE",60:"THICK_ARROW_CROSS",61:"THICK_ARROW_OPEN",62:"PIPE",67:"STYLE",68:"LINKSTYLE",69:"CLASSDEF",70:"CLASS",71:"CLICK",74:"DEFAULT",76:"HEX",77:"NUM",79:"PCT",81:"COMMA",83:"ALPHA",84:"COLON",85:"UNIT",86:"BRKT",87:"DOT",89:"PLUS",90:"EQUALS",91:"MULT",92:"TAG_START",93:"TAG_END",94:"QUOTE"},productions_:[0,[3,2],[5,0],[5,2],[6,1],[6,1],[6,1],[6,1],[6,1],[4,2],[4,2],[4,4],[4,4],[4,4],[4,4],[4,4],[19,2],[19,1],[20,1],[20,1],[20,1],[14,1],[14,1],[14,2],[22,2],[22,2],[22,1],[22,1],[21,2],[21,1],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,6],[7,5],[24,1],[24,1],[24,1],[23,3],[23,1],[33,4],[33,5],[33,6],[33,7],[33,4],[33,5],[33,4],[33,5],[33,4],[33,5],[33,1],[33,2],[35,1],[35,2],[42,1],[42,1],[42,3],[34,2],[34,3],[34,1],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[34,3],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[45,1],[46,3],[31,1],[31,2],[64,1],[64,2],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[66,1],[72,1],[72,2],[27,5],[27,5],[28,5],[29,5],[25,5],[25,5],[26,5],[26,5],[78,3],[75,1],[75,3],[80,1],[80,2],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[82,1],[65,1],[65,1],[63,1],[63,1],[63,1],[63,1],[63,1],[63,1],[63,1],[73,1],[73,1],[73,1],[73,1],[43,1],[43,1],[43,1],[43,1],[43,1],[43,1],[43,1],[43,1],[43,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1],[88,1]],performAction:function(t,n,e,r,i,a){var o=a.length-1;switch(i){case 2:this.$=[];break;case 3:a[o]!==[]&&a[o-1].push(a[o]),this.$=a[o-1];break;case 4:case 55:case 57:case 58:case 88:case 90:case 103:this.$=a[o];break;case 11:r.setDirection(a[o-1]),this.$=a[o-1];break;case 12:r.setDirection("LR"),this.$=a[o-1];break;case 13:r.setDirection("RL"),this.$=a[o-1];break;case 14:r.setDirection("BT"),this.$=a[o-1];break;case 15:r.setDirection("TB"),this.$=a[o-1];break;case 30:this.$=a[o-1];break;case 31:case 32:case 33:case 34:case 35:this.$=[];break;case 36:r.addSubGraph(a[o-2],a[o-4]);break;case 37:r.addSubGraph(a[o-2],void 0);break;case 41:r.addLink(a[o-2],a[o],a[o-1]),this.$=[a[o-2],a[o]];break;case 42:this.$=[a[o]];break;case 43:this.$=a[o-3],r.addVertex(a[o-3],a[o-1],"square");break;case 44:this.$=a[o-4],r.addVertex(a[o-4],a[o-2],"square");break;case 45:this.$=a[o-5],r.addVertex(a[o-5],a[o-2],"circle");break;case 46:this.$=a[o-6],r.addVertex(a[o-6],a[o-3],"circle");break;case 47:this.$=a[o-3],r.addVertex(a[o-3],a[o-1],"round");break;case 48:this.$=a[o-4],r.addVertex(a[o-4],a[o-2],"round");break;case 49:this.$=a[o-3],r.addVertex(a[o-3],a[o-1],"diamond");break;case 50:this.$=a[o-4],r.addVertex(a[o-4],a[o-2],"diamond");break;case 51:this.$=a[o-3],r.addVertex(a[o-3],a[o-1],"odd");break;case 52:this.$=a[o-4],r.addVertex(a[o-4],a[o-2],"odd");break;case 53:this.$=a[o],r.addVertex(a[o]);break;case 54:this.$=a[o-1],r.addVertex(a[o-1]);break;case 56:case 89:case 91:case 104:this.$=a[o-1]+""+a[o];break;case 59:this.$=a[o-2]+"-"+a[o];break;case 60:a[o-1].text=a[o],this.$=a[o-1];break;case 61:a[o-2].text=a[o-1],this.$=a[o-2];break;case 62:this.$=a[o];break;case 63:this.$={type:"arrow",stroke:"normal",text:a[o-1]};break;case 64:this.$={type:"arrow_circle",stroke:"normal",text:a[o-1]};break;case 65:this.$={type:"arrow_cross",stroke:"normal",text:a[o-1]};break;case 66:this.$={type:"arrow_open",stroke:"normal",text:a[o-1]};break;case 67:this.$={type:"arrow",stroke:"dotted",text:a[o-1]};break;case 68:this.$={type:"arrow_circle",stroke:"dotted",text:a[o-1]};break;case 69:this.$={type:"arrow_cross",stroke:"dotted",text:a[o-1]};break;case 70:this.$={type:"arrow_open",stroke:"dotted",text:a[o-1]};break;case 71:this.$={type:"arrow",stroke:"thick",text:a[o-1]};break;case 72:this.$={type:"arrow_circle",stroke:"thick",text:a[o-1]};break;case 73:this.$={type:"arrow_cross",stroke:"thick",text:a[o-1]};break;case 74:this.$={type:"arrow_open",stroke:"thick",text:a[o-1]};break;case 75:this.$={type:"arrow",stroke:"normal"};break;case 76:this.$={type:"arrow_circle",stroke:"normal"};break;case 77:this.$={type:"arrow_cross",stroke:"normal"};break;case 78:this.$={type:"arrow_open",stroke:"normal"};break;case 79:this.$={type:"arrow",stroke:"dotted"};break;case 80:this.$={type:"arrow_circle",stroke:"dotted"};break;case 81:this.$={type:"arrow_cross",stroke:"dotted"};break;case 82:this.$={type:"arrow_open",stroke:"dotted"};break;case 83:this.$={type:"arrow",stroke:"thick"};break;case 84:this.$={type:"arrow_circle",stroke:"thick"};break;case 85:this.$={type:"arrow_cross",stroke:"thick"};break;case 86:this.$={type:"arrow_open",stroke:"thick"};break;case 87:this.$=a[o-1];break;case 105:case 106:this.$=a[o-4],r.addClass(a[o-2],a[o]);break;case 107:this.$=a[o-4],r.setClass(a[o-2],a[o]);break;case 108:this.$=a[o-4],r.setClickEvent(a[o-2],a[o]);break;case 109:this.$=a[o-4],r.addVertex(a[o-2],void 0,void 0,a[o]);break;case 110:case 111:case 112:this.$=a[o-4],r.updateLink(a[o-2],a[o]);break;case 114:this.$=[a[o]];break;case 115:a[o-2].push(a[o]),this.$=a[o-2];break;case 117:this.$=a[o-1]+a[o]}},table:[{3:1,4:2,9:e,10:r,12:i},{1:[3]},n(a,o,{5:6}),{4:7,9:e,10:r,12:i},{4:8,9:e,10:r,12:i},{10:[1,9]},{1:[2,1],6:10,7:11,8:u,9:s,10:c,11:l,13:f,23:16,25:17,26:18,27:19,28:20,29:21,30:h,33:23,35:29,42:30,43:32,67:d,68:p,69:g,70:y,71:m,77:v,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},n(a,[2,9]),n(a,[2,10]),{13:[1,42],15:[1,43],16:[1,44],17:[1,45],18:[1,46]},n(D,[2,3]),n(D,[2,4]),n(D,[2,5]),n(D,[2,6]),n(D,[2,7]),n(D,[2,8]),{8:S,9:C,11:T,24:47},{8:S,9:C,11:T,24:51},{8:S,9:C,11:T,24:52},{8:S,9:C,11:T,24:53},{8:S,9:C,11:T,24:54},{8:S,9:C,11:T,24:55},{8:S,9:C,10:F,11:T,12:N,13:L,15:B,16:O,17:I,18:q,24:57,30:R,31:56,32:P,43:66,44:j,47:U,57:z,63:58,66:69,67:Y,68:V,69:H,70:G,71:$,73:59,74:W,77:v,79:Z,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},n(X,[2,42],{34:81,45:82,47:[1,83],48:[1,86],49:[1,87],50:[1,88],51:[1,89],52:[1,84],53:[1,90],54:[1,91],55:[1,92],56:[1,93],57:[1,85],58:[1,94],59:[1,95],60:[1,96],61:[1,97]}),{10:[1,98]},{10:[1,99]},{10:[1,100]},{10:[1,101]},{10:[1,102]},n(K,[2,53],{43:32,21:107,42:108,10:J,13:f,15:[1,106],36:[1,103],38:[1,104],40:[1,105],77:v,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A}),n(Q,[2,55]),n(Q,[2,57]),n(Q,[2,58],{44:[1,110]}),n(tt,[2,142]),n(tt,[2,143]),n(tt,[2,144]),n(tt,[2,145]),n(tt,[2,146]),n(tt,[2,147]),n(tt,[2,148]),n(tt,[2,149]),n(tt,[2,150]),{8:nt,9:et,10:J,14:111,21:114},{8:nt,9:et,10:J,14:115,21:114},{8:nt,9:et,10:J,14:116,21:114},{8:nt,9:et,10:J,14:117,21:114},{8:nt,9:et,10:J,14:118,21:114},n(D,[2,30]),n(D,[2,38]),n(D,[2,39]),n(D,[2,40]),n(D,[2,31]),n(D,[2,32]),n(D,[2,33]),n(D,[2,34]),n(D,[2,35]),{8:S,9:C,10:F,11:T,12:N,13:L,15:B,16:O,17:I,18:q,24:119,30:R,32:P,43:66,44:j,47:U,57:z,63:120,66:69,67:Y,68:V,69:H,70:G,71:$,73:59,74:W,77:v,79:Z,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},n(rt,o,{5:121}),n(it,[2,88]),n(it,[2,131]),n(it,[2,132]),n(it,[2,133]),n(it,[2,134]),n(it,[2,135]),n(it,[2,136]),n(it,[2,137]),n(it,[2,138]),n(it,[2,139]),n(it,[2,140]),n(it,[2,141]),n(it,[2,92]),n(it,[2,93]),n(it,[2,94]),n(it,[2,95]),n(it,[2,96]),n(it,[2,97]),n(it,[2,98]),n(it,[2,99]),n(it,[2,100]),n(it,[2,101]),n(it,[2,102]),{13:f,33:122,35:29,42:30,43:32,77:v,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},n(at,[2,62],{46:123,62:[1,124]}),{10:F,12:N,13:L,15:B,16:O,17:I,18:q,30:R,31:125,32:P,43:66,44:j,47:U,57:z,63:58,66:69,67:Y,68:V,69:H,70:G,71:$,73:59,74:W,77:v,79:Z,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},{10:F,12:N,13:L,15:B,16:O,17:I,18:q,30:R,31:126,32:P,43:66,44:j,47:U,57:z,63:58,66:69,67:Y,68:V,69:H,70:G,71:$,73:59,74:W,77:v,79:Z,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},{10:F,12:N,13:L,15:B,16:O,17:I,18:q,30:R,31:127,32:P,43:66,44:j,47:U,57:z,63:58,66:69,67:Y,68:V,69:H,70:G,71:$,73:59,74:W,77:v,79:Z,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},n(ot,[2,75]),n(ot,[2,76]),n(ot,[2,77]),n(ot,[2,78]),n(ot,[2,79]),n(ot,[2,80]),n(ot,[2,81]),n(ot,[2,82]),n(ot,[2,83]),n(ot,[2,84]),n(ot,[2,85]),n(ot,[2,86]),{13:f,35:128,42:30,43:32,76:[1,129],77:v,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},{74:[1,130],77:[1,131]},{13:f,35:133,42:30,43:32,74:[1,132],77:v,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},{13:f,35:134,42:30,43:32,77:v,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},{13:f,35:135,42:30,43:32,77:v,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},{10:F,12:N,13:L,15:B,16:O,17:I,18:q,30:R,31:136,32:P,43:66,44:j,47:U,57:z,63:58,66:69,67:Y,68:V,69:H,70:G,71:$,73:59,74:W,77:v,79:Z,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},{10:F,12:N,13:L,15:B,16:O,17:I,18:q,30:R,31:138,32:P,38:[1,137],43:66,44:j,47:U,57:z,63:58,66:69,67:Y,68:V,69:H,70:G,71:$,73:59,74:W,77:v,79:Z,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},{10:F,12:N,13:L,15:B,16:O,17:I,18:q,30:R,31:139,32:P,43:66,44:j,47:U,57:z,63:58,66:69,67:Y,68:V,69:H,70:G,71:$,73:59,74:W,77:v,79:Z,81:b,83:_,84:x,86:w,87:k,89:E,
  90:M,91:A},{10:F,12:N,13:L,15:B,16:O,17:I,18:q,30:R,31:140,32:P,43:66,44:j,47:U,57:z,63:58,66:69,67:Y,68:V,69:H,70:G,71:$,73:59,74:W,77:v,79:Z,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},n(K,[2,54]),n(Q,[2,56]),n(K,[2,29],{21:141,10:J}),{43:142,77:v,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},n(a,[2,11]),n(a,[2,21]),n(a,[2,22]),{9:[1,143]},n(a,[2,12]),n(a,[2,13]),n(a,[2,14]),n(a,[2,15]),n(rt,o,{5:144}),n(it,[2,89]),{6:10,7:11,8:u,9:s,10:c,11:l,13:f,23:16,25:17,26:18,27:19,28:20,29:21,30:h,32:[1,145],33:23,35:29,42:30,43:32,67:d,68:p,69:g,70:y,71:m,77:v,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},n(X,[2,41]),n(at,[2,60],{10:[1,146]}),{10:F,12:N,13:L,15:B,16:O,17:I,18:q,30:R,31:147,32:P,43:66,44:j,47:U,57:z,63:58,66:69,67:Y,68:V,69:H,70:G,71:$,73:59,74:W,77:v,79:Z,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},{10:F,12:N,13:L,15:B,16:O,17:I,18:q,30:R,32:P,43:66,44:j,47:U,48:[1,148],49:[1,149],50:[1,150],51:[1,151],57:z,63:120,66:69,67:Y,68:V,69:H,70:G,71:$,73:59,74:W,77:v,79:Z,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},{10:F,12:N,13:L,15:B,16:O,17:I,18:q,30:R,32:P,43:66,44:j,47:U,53:[1,152],54:[1,153],55:[1,154],56:[1,155],57:z,63:120,66:69,67:Y,68:V,69:H,70:G,71:$,73:59,74:W,77:v,79:Z,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},{10:F,12:N,13:L,15:B,16:O,17:I,18:q,30:R,32:P,43:66,44:j,47:U,57:z,58:[1,156],59:[1,157],60:[1,158],61:[1,159],63:120,66:69,67:Y,68:V,69:H,70:G,71:$,73:59,74:W,77:v,79:Z,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},{10:[1,160],13:f,42:108,43:32,77:v,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},{10:[1,161]},{10:[1,162]},{10:[1,163]},{10:[1,164]},{10:[1,165],13:f,42:108,43:32,77:v,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},{10:[1,166],13:f,42:108,43:32,77:v,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},{10:[1,167],13:f,42:108,43:32,77:v,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},{10:F,12:N,13:L,15:B,16:O,17:I,18:q,30:R,32:P,37:[1,168],43:66,44:j,47:U,57:z,63:120,66:69,67:Y,68:V,69:H,70:G,71:$,73:59,74:W,77:v,79:Z,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},{10:F,12:N,13:L,15:B,16:O,17:I,18:q,30:R,31:169,32:P,43:66,44:j,47:U,57:z,63:58,66:69,67:Y,68:V,69:H,70:G,71:$,73:59,74:W,77:v,79:Z,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},{10:F,12:N,13:L,15:B,16:O,17:I,18:q,30:R,32:P,39:[1,170],43:66,44:j,47:U,57:z,63:120,66:69,67:Y,68:V,69:H,70:G,71:$,73:59,74:W,77:v,79:Z,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},{10:F,12:N,13:L,15:B,16:O,17:I,18:q,30:R,32:P,41:[1,171],43:66,44:j,47:U,57:z,63:120,66:69,67:Y,68:V,69:H,70:G,71:$,73:59,74:W,77:v,79:Z,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},{10:F,12:N,13:L,15:B,16:O,17:I,18:q,30:R,32:P,37:[1,172],43:66,44:j,47:U,57:z,63:120,66:69,67:Y,68:V,69:H,70:G,71:$,73:59,74:W,77:v,79:Z,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},n(K,[2,28]),n(Q,[2,59]),n(a,[2,23]),{6:10,7:11,8:u,9:s,10:c,11:l,13:f,23:16,25:17,26:18,27:19,28:20,29:21,30:h,32:[1,173],33:23,35:29,42:30,43:32,67:d,68:p,69:g,70:y,71:m,77:v,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},{8:S,9:C,11:T,24:174},n(at,[2,61]),{10:F,12:N,13:L,15:B,16:O,17:I,18:q,30:R,32:P,43:66,44:j,47:U,57:z,62:[1,175],63:120,66:69,67:Y,68:V,69:H,70:G,71:$,73:59,74:W,77:v,79:Z,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},n(at,[2,63]),n(at,[2,64]),n(at,[2,65]),n(at,[2,66]),n(at,[2,67]),n(at,[2,68]),n(at,[2,69]),n(at,[2,70]),n(at,[2,71]),n(at,[2,72]),n(at,[2,73]),n(at,[2,74]),{10:ut,44:st,67:ct,75:176,76:lt,77:ft,79:ht,80:177,82:178,83:dt,84:pt,85:gt,86:yt,87:mt},{10:ut,44:st,67:ct,75:190,76:lt,77:ft,79:ht,80:177,82:178,83:dt,84:pt,85:gt,86:yt,87:mt},{10:ut,44:st,67:ct,75:191,76:lt,77:ft,79:ht,80:177,82:178,83:dt,84:pt,85:gt,86:yt,87:mt},{10:ut,44:st,67:ct,75:192,76:lt,77:ft,79:ht,80:177,82:178,83:dt,84:pt,85:gt,86:yt,87:mt},{10:ut,44:st,67:ct,75:193,76:lt,77:ft,79:ht,80:177,82:178,83:dt,84:pt,85:gt,86:yt,87:mt},{10:ut,44:st,67:ct,75:194,76:lt,77:ft,79:ht,80:177,82:178,83:dt,84:pt,85:gt,86:yt,87:mt},{13:f,35:195,42:30,43:32,77:v,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},{13:f,35:196,42:30,43:32,77:v,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},n(K,[2,43],{21:197,10:J}),{10:F,12:N,13:L,15:B,16:O,17:I,18:q,30:R,32:P,39:[1,198],43:66,44:j,47:U,57:z,63:120,66:69,67:Y,68:V,69:H,70:G,71:$,73:59,74:W,77:v,79:Z,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A},n(K,[2,47],{21:199,10:J}),n(K,[2,49],{21:200,10:J}),n(K,[2,51],{21:201,10:J}),{8:S,9:C,11:T,24:202},n(D,[2,37]),n([10,13,77,81,83,84,86,87,89,90,91],[2,87]),n(X,[2,109],{81:vt}),n(bt,[2,114],{82:204,10:ut,44:st,67:ct,76:lt,77:ft,79:ht,83:dt,84:pt,85:gt,86:yt,87:mt}),n(_t,[2,116]),n(_t,[2,118]),n(_t,[2,119]),n(_t,[2,120]),n(_t,[2,121]),n(_t,[2,122]),n(_t,[2,123]),n(_t,[2,124]),n(_t,[2,125]),n(_t,[2,126]),n(_t,[2,127]),n(_t,[2,128]),n(X,[2,110],{81:vt}),n(X,[2,111],{81:vt}),n(X,[2,112],{81:vt}),n(X,[2,105],{81:vt}),n(X,[2,106],{81:vt}),n(X,[2,107],{43:32,42:108,13:f,77:v,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A}),n(X,[2,108],{43:32,42:108,13:f,77:v,81:b,83:_,84:x,86:w,87:k,89:E,90:M,91:A}),n(K,[2,44]),{39:[1,205]},n(K,[2,48]),n(K,[2,50]),n(K,[2,52]),n(D,[2,36]),{10:ut,44:st,67:ct,76:lt,77:ft,79:ht,80:206,82:178,83:dt,84:pt,85:gt,86:yt,87:mt},n(_t,[2,117]),n(K,[2,45],{21:207,10:J}),n(bt,[2,115],{82:204,10:ut,44:st,67:ct,76:lt,77:ft,79:ht,83:dt,84:pt,85:gt,86:yt,87:mt}),n(K,[2,46])],defaultActions:{},parseError:function(t,n){if(!n.recoverable)throw new Error(t);this.trace(t)},parse:function(t){function n(){var t;return t=p.lex()||h,"number"!=typeof t&&(t=e.symbols_[t]||t),t}var e=this,r=[0],i=[null],a=[],o=this.table,u="",s=0,c=0,l=0,f=2,h=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,"undefined"==typeof p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;this.parseError="function"==typeof g.yy.parseError?g.yy.parseError:Object.getPrototypeOf(this).parseError;for(var b,_,x,w,k,E,M,A,D,S={};;){if(x=r[r.length-1],this.defaultActions[x]?w=this.defaultActions[x]:((null===b||"undefined"==typeof b)&&(b=n()),w=o[x]&&o[x][b]),"undefined"==typeof w||!w.length||!w[0]){var C="";D=[];for(E in o[x])this.terminals_[E]&&E>f&&D.push("'"+this.terminals_[E]+"'");C=p.showPosition?"Parse error on line "+(s+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(C,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:m,expected:D})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+b);switch(w[0]){case 1:r.push(b),i.push(p.yytext),a.push(p.yylloc),r.push(w[1]),b=null,_?(b=_,_=null):(c=p.yyleng,u=p.yytext,s=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(M=this.productions_[w[1]][1],S.$=i[i.length-M],S._$={first_line:a[a.length-(M||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(M||1)].first_column,last_column:a[a.length-1].last_column},v&&(S._$.range=[a[a.length-(M||1)].range[0],a[a.length-1].range[1]]),k=this.performAction.apply(S,[u,c,s,g.yy,w[1],i,a].concat(d)),"undefined"!=typeof k)return k;M&&(r=r.slice(0,-1*M*2),i=i.slice(0,-1*M),a=a.slice(0,-1*M)),r.push(this.productions_[w[1]][0]),i.push(S.$),a.push(S._$),A=o[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0}},wt=function(){var t={EOF:1,parseError:function(t,n){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,n)},setInput:function(t,n){return this.yy=n||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var n=t.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var n=t.length,e=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===r.length?this.yylloc.first_column:0)+r[r.length-e.length].length-e[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),n=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+n+"^"},test_match:function(t,n){var e,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,n,e,r;this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if(e=this._input.match(this.rules[i[a]]),e&&(!n||e[0].length>n[0].length)){if(n=e,r=a,this.options.backtrack_lexer){if(t=this.test_match(e,i[a]),t!==!1)return t;if(this._backtrack){n=!1;continue}return!1}if(!this.options.flex)break}return n?(t=this.test_match(n,i[r]),t!==!1?t:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(t,n,e,r){switch(e){case 0:break;case 1:return 67;case 2:return 74;case 3:return 68;case 4:return 69;case 5:return 70;case 6:return 71;case 7:return 12;case 8:return 30;case 9:return 32;case 10:return 13;case 11:return 13;case 12:return 13;case 13:return 13;case 14:return 13;case 15:return 13;case 16:return 77;case 17:return 86;case 18:return 84;case 19:return 8;case 20:return 81;case 21:return 91;case 22:return 16;case 23:return 15;case 24:return 17;case 25:return 18;case 26:return 50;case 27:return 48;case 28:return 49;case 29:return 51;case 30:return 55;case 31:return 53;case 32:return 54;case 33:return 56;case 34:return 55;case 35:return 53;case 36:return 54;case 37:return 56;case 38:return 60;case 39:return 58;case 40:return 59;case 41:return 61;case 42:return 47;case 43:return 52;case 44:return 57;case 45:return 44;case 46:return 87;case 47:return 89;case 48:return 79;case 49:return 90;case 50:return 90;case 51:return 83;case 52:return 62;case 53:return 38;case 54:return 39;case 55:return 36;case 56:return 37;case 57:return 40;case 58:return 41;case 59:return 94;case 60:return 9;case 61:return 10;case 62:return 11}},rules:[/^(?:%%[^\n]*)/,/^(?:style\b)/,/^(?:default\b)/,/^(?:linkStyle\b)/,/^(?:classDef\b)/,/^(?:class\b)/,/^(?:click\b)/,/^(?:graph\b)/,/^(?:subgraph\b)/,/^(?:end\b)/,/^(?:LR\b)/,/^(?:RL\b)/,/^(?:TB\b)/,/^(?:BT\b)/,/^(?:TD\b)/,/^(?:BR\b)/,/^(?:[0-9]+)/,/^(?:#)/,/^(?::)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:<)/,/^(?:>)/,/^(?:\^)/,/^(?:v\b)/,/^(?:\s*--[x]\s*)/,/^(?:\s*-->\s*)/,/^(?:\s*--[o]\s*)/,/^(?:\s*---\s*)/,/^(?:\s*-\.-[x]\s*)/,/^(?:\s*-\.->\s*)/,/^(?:\s*-\.-[o]\s*)/,/^(?:\s*-\.-\s*)/,/^(?:\s*.-[x]\s*)/,/^(?:\s*\.->\s*)/,/^(?:\s*\.-[o]\s*)/,/^(?:\s*\.-\s*)/,/^(?:\s*==[x]\s*)/,/^(?:\s*==>\s*)/,/^(?:\s*==[o]\s*)/,/^(?:\s*==[\=]\s*)/,/^(?:\s*--\s*)/,/^(?:\s*-\.\s*)/,/^(?:\s*==\s*)/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:[\u0021-\u0027\u002A-\u002E\u003F\u0041-\u005A\u005C\u005F-\u007A\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC_\/])/,/^(?:\|)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:")/,/^(?:\n+)/,/^(?:\s)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62],inclusive:!0}}};return t}();return xt.lexer=wt,t.prototype=xt,xt.Parser=t,new t}();"undefined"!=typeof t&&"undefined"!=typeof e&&(e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(n){n[1]||(console.log("Usage: "+n[0]+" FILE"),r.exit(1));var i=t("fs").readFileSync(t("path").normalize(n[1]),"utf8");return e.parser.parse(i)},"undefined"!=typeof n&&t.main===n&&e.main(r.argv.slice(1)))}).call(this,t("1YiZ5S"))},{"1YiZ5S":80,fs:78,path:79}],94:[function(t,n){n.exports=t(88)},{d3:1}],95:[function(t,n,e){var r=t("moment"),i="",a="",o=[],u=[],s="";e.clear=function(){o=[],u=[],s="",a="",h=0,c=void 0},e.setDateFormat=function(t){i=t},e.getDateFormat=function(){return i},e.setTitle=function(t){a=t},e.getTitle=function(){return a},e.addSection=function(t){s=t,o.push(t)},e.findTaskById=function(t){var n;for(n=0;n<u.length;n++)if(u[n].id===t)return u[n]},e.getTasks=function(){var t;for(t=1e4;t<u.length;t++)u[t].startTime=r(u[t].startTime).format(i),u[t].endTime=r(u[t].endTime).format(i);return u};var c,l=function(t,n,i){i=i.trim();var a=/^after\s+([\d\w\-]+)/,o=a.exec(i.trim());if(null!==o){var u=e.findTaskById(o[1]);if("undefined"==typeof u){var s=new Date;return s.setHours(0,0,0,0),s}return u.endTime}return r(i,n.trim(),!0).isValid()?r(i,n.trim(),!0).toDate():(console.log("Invalid date:"+i),console.log("With date format:"+n.trim()),console.log("----"),new Date)},f=function(t,n,e){if(e=e.trim(),r(e,n.trim(),!0).isValid())return r(e,n.trim()).toDate();var i=r(t),a=/^([\d]+)([wdh])/,o=a.exec(e.trim());if(null!==o){switch(o[2]){case"h":i.add(o[1],"hours");break;case"d":i.add(o[1],"days");break;case"w":i.add(o[1],"weeks")}return i.toDate()}return i.toDate()},h=0,d=function(t){return"undefined"==typeof t?(h+=1,"task"+h):t},p=function(t,n){var r;r=":"===n.substr(0,1)?n.substr(1,n.length):n;for(var i=r.split(","),a={},o=e.getDateFormat(),u=!0;u;)u=!1,i[0].match(/^\s*active\s*$/)&&(a.active=!0,i.shift(1),u=!0),i[0].match(/^\s*done\s*$/)&&(a.done=!0,i.shift(1),u=!0),i[0].match(/^\s*crit\s*$/)&&(a.crit=!0,i.shift(1),u=!0);var s;for(s=0;s<i.length;s++)i[s]=i[s].trim();switch(i.length){case 1:a.id=d(),a.startTime=t.endTime,a.endTime=f(a.startTime,o,i[0]);break;case 2:a.id=d(),a.startTime=l(void 0,o,i[0]),a.endTime=f(a.startTime,o,i[1]);break;case 3:a.id=d(i[0]),a.startTime=l(void 0,o,i[1]),a.endTime=f(a.startTime,o,i[2])}return a};e.addTask=function(t,n){var e={section:s,type:s,description:t,task:t},r=p(c,n);e.startTime=r.startTime,e.endTime=r.endTime,e.id=r.id,e.active=r.active,e.done=r.done,e.crit=r.crit,c=e,u.push(e)},e.parseError=function(t,n){mermaid.parseError(t,n)}},{moment:83}],96:[function(t,n){var e=t("./parser/gantt").parser;e.yy=t("./ganttDb");var r,i=t("./d3"),a=t("moment"),o={titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,sidePadding:75,gridLineStartPadding:35,fontSize:11,fontFamily:'"Open-Sans", "sans-serif"'};n.exports.setConf=function(t){var n=Object.keys(t);n.forEach(function(n){o[n]=t[n]})};var u;n.exports.draw=function(t,n){function s(t,n,e){var r=o.barHeight,a=r+o.barGap,u=o.topPadding,s=o.sidePadding,d=i.scale.linear().domain([0,k.length]).range(["#00B9FA","#F95002"]).interpolate(i.interpolateHcl);l(s,u,n,e),c(t,a,u,s,r,d,n,e),f(a,u,s,r,d),h(s,u,n,e)}function c(t,n,e,r,i,a,u){{var s=(b.append("g").selectAll("rect").data(t).enter().append("rect").attr("x",0).attr("y",function(t,r){return r*n+e-2}).attr("width",function(){return u-r/2}).attr("height",n).attr("class",function(t){for(var n=0;n<k.length;n++)if(t.type===k[n])return"section section"+n%o.numberSectionStyles;return"section section0"}),b.append("g").selectAll("rect").data(t).enter());s.append("rect").attr("rx",3).attr("ry",3).attr("x",function(t){return w(t.startTime)+r}).attr("y",function(t,r){return r*n+e}).attr("width",function(t){return w(t.endTime)-w(t.startTime)}).attr("height",i).attr("class",function(t){for(var n="task ",e=0,r=0;r<k.length;r++)t.type===k[r]&&(e=r%o.numberSectionStyles);return t.active?t.crit?n+" activeCrit"+e:n+" active"+e:t.done?t.crit?n+" doneCrit"+e:n+" done"+e:t.crit?n+" crit"+e:n+" task"+e}),s.append("text").text(function(t){return t.task}).attr("font-size",o.fontSize).attr("x",function(t){var n=w(t.startTime),e=w(t.endTime),i=this.getBBox().width;return i>e-n?e+i+1.5*o.sidePadding>u?n+r-5:e+r+5:(e-n)/2+n+r}).attr("y",function(t,r){return r*n+o.barHeight/2+(o.fontSize/2-2)+e}).attr("text-height",i).attr("class",function(t){for(var n=w(t.startTime),e=w(t.endTime),r=this.getBBox().width,i=0,a=0;a<k.length;a++)t.type===k[a]&&(i=a%o.numberSectionStyles);var s="";return t.active&&(s=t.crit?"activeCritText"+i:"activeText"+i),t.done?s=t.crit?s+" doneCritText"+i:s+" doneText"+i:t.crit&&(s=s+" critText"+i),r>e-n?e+r+1.5*o.sidePadding>u?"taskTextOutsideLeft taskTextOutside"+i+" "+s:"taskTextOutsideRight taskTextOutside"+i+" "+s:"taskText taskText"+i+" "+s})}}function l(t,n,e,a){var u,s=[[".%L",function(t){return t.getMilliseconds()}],[":%S",function(t){return t.getSeconds()}],["h1 %I:%M",function(t){return t.getMinutes()}]],c=[["%Y",function(){return!0}]],l=[["%I:%M",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()}]];"undefined"!=typeof o.axisFormatter&&(l=[],o.axisFormatter.forEach(function(t){var n=[];n[0]=t[0],n[1]=t[1],l.push(n)})),u=s.concat(l).concat(c);var f=i.svg.axis().scale(w).orient("bottom").tickSize(-a+n+o.gridLineStartPadding,0,0).tickFormat(i.time.format.multi(u));r>7&&230>r&&(f=f.ticks(i.time.monday.range));b.append("g").attr("class","grid").attr("transform","translate("+t+", "+(a-50)+")").call(f).selectAll("text").style("text-anchor","middle").attr("fill","#000").attr("stroke","none").attr("font-size",10).attr("dy","1em")}function f(t,n){for(var e=[],r=0,i=0;i<k.length;i++)e[i]=[k[i],g(k[i],M)];b.append("g").selectAll("text").data(e).enter().append("text").text(function(t){return t[0]}).attr("x",10).attr("y",function(i,a){if(!(a>0))return i[1]*t/2+n;for(var o=0;a>o;o++)return r+=e[a-1][1],i[1]*t/2+r*t+n}).attr("class",function(t){for(var n=0;n<k.length;n++)if(t[0]===k[n])return"sectionTitle sectionTitle"+n%o.numberSectionStyles;return"sectionTitle"})}function h(t,n,e,r){{var i=b.append("g").attr("class","today"),a=new Date;i.append("line").attr("x1",w(a)+t).attr("x2",w(a)+t).attr("y1",o.titleTopMargin).attr("y2",r-o.titleTopMargin).attr("class","today")}}function d(t){for(var n={},e=[],r=0,i=t.length;i>r;++r)n.hasOwnProperty(t[r])||(n[t[r]]=!0,e.push(t[r]));return e}function p(t){for(var n=t.length,e={};n;)e[t[--n]]=(e[t[n]]||0)+1;return e}function g(t,n){return p(n)[t]||0}e.yy.clear(),e.parse(t);var y=document.getElementById(n);u=y.offsetWidth,"undefined"==typeof u&&(u=800);var m=e.yy.getTasks(),v=m.length*(o.barHeight+o.barGap)+2*o.topPadding;y.style.height=v+"px";var b=i.select("#"+n),_=(i.time.format("%Y-%m-%d"),i.min(m,function(t){return t.startTime})),x=i.max(m,function(t){return t.endTime}),w=i.time.scale().domain([i.min(m,function(t){return t.startTime}),i.max(m,function(t){return t.endTime})]).rangeRound([0,u-150]),k=[];r=a.duration(x-_).asDays();for(var E=0;E<m.length;E++)k.push(m[E].type);var M=k;k=d(k),s(m,u,v);b.append("text").text(e.yy.getTitle()).attr("x",u/2).attr("y",o.titleTopMargin).attr("class","titleText")}},{"./d3":94,"./ganttDb":95,"./parser/gantt":97,moment:83}],97:[function(t,n,e){(function(r){var i=function(){function t(){this.yy={}}var n=function(t,n,e,r){for(e=e||{},r=t.length;r--;e[t[r]]=n);return e},e=[6,8,10,11,12,13,14],r=[1,9],i=[1,10],a=[1,11],o=[1,12],u={trace:function(){},yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,dateFormat:11,title:12,section:13,taskTxt:14,taskData:15,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",11:"dateFormat",12:"title",13:"section",14:"taskTxt",15:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,1],[9,1],[9,2]],performAction:function(t,n,e,r,i,a){var o=a.length-1;switch(i){case 1:return a[o-1];case 2:this.$=[];break;case 3:a[o-1].push(a[o]),this.$=a[o-1];break;case 4:case 5:this.$=a[o];break;case 6:case 7:this.$=[];break;case 8:r.setDateFormat(a[o].substr(11)),this.$=a[o].substr(11);break;case 9:r.setTitle(a[o].substr(6)),this.$=a[o].substr(6);break;case 10:r.addSection(a[o].substr(8)),this.$=a[o].substr(8);break;case 11:r.addTask(a[o-1],a[o]),this.$="task"}},table:[{3:1,4:[1,2]},{1:[3]},n(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:r,12:i,13:a,14:o},n(e,[2,7],{1:[2,1]}),n(e,[2,3]),{9:13,11:r,12:i,13:a,14:o},n(e,[2,5]),n(e,[2,6]),n(e,[2,8]),n(e,[2,9]),n(e,[2,10]),{15:[1,14]},n(e,[2,4]),n(e,[2,11])],defaultActions:{},parseError:function(t,n){if(!n.recoverable)throw new Error(t);this.trace(t)},parse:function(t){function n(){var t;return t=p.lex()||h,"number"!=typeof t&&(t=e.symbols_[t]||t),t}var e=this,r=[0],i=[null],a=[],o=this.table,u="",s=0,c=0,l=0,f=2,h=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,"undefined"==typeof p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;this.parseError="function"==typeof g.yy.parseError?g.yy.parseError:Object.getPrototypeOf(this).parseError;for(var b,_,x,w,k,E,M,A,D,S={};;){if(x=r[r.length-1],this.defaultActions[x]?w=this.defaultActions[x]:((null===b||"undefined"==typeof b)&&(b=n()),w=o[x]&&o[x][b]),"undefined"==typeof w||!w.length||!w[0]){var C="";D=[];for(E in o[x])this.terminals_[E]&&E>f&&D.push("'"+this.terminals_[E]+"'");C=p.showPosition?"Parse error on line "+(s+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(C,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:m,expected:D})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+b);switch(w[0]){case 1:r.push(b),i.push(p.yytext),a.push(p.yylloc),r.push(w[1]),b=null,_?(b=_,_=null):(c=p.yyleng,u=p.yytext,s=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(M=this.productions_[w[1]][1],S.$=i[i.length-M],S._$={first_line:a[a.length-(M||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(M||1)].first_column,last_column:a[a.length-1].last_column},v&&(S._$.range=[a[a.length-(M||1)].range[0],a[a.length-1].range[1]]),k=this.performAction.apply(S,[u,c,s,g.yy,w[1],i,a].concat(d)),"undefined"!=typeof k)return k;M&&(r=r.slice(0,-1*M*2),i=i.slice(0,-1*M),a=a.slice(0,-1*M)),r.push(this.productions_[w[1]][0]),i.push(S.$),a.push(S._$),A=o[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0}},s=function(){var t={EOF:1,parseError:function(t,n){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,n)},setInput:function(t,n){return this.yy=n||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var n=t.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var n=t.length,e=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===r.length?this.yylloc.first_column:0)+r[r.length-e.length].length-e[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),n=new Array(t.length+1).join("-");
  
  return t+this.upcomingInput()+"\n"+n+"^"},test_match:function(t,n){var e,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,n,e,r;this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if(e=this._input.match(this.rules[i[a]]),e&&(!n||e[0].length>n[0].length)){if(n=e,r=a,this.options.backtrack_lexer){if(t=this.test_match(e,i[a]),t!==!1)return t;if(this._backtrack){n=!1;continue}return!1}if(!this.options.flex)break}return n?(t=this.test_match(n,i[r]),t!==!1?t:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,n,e,r){switch(e){case 0:return 10;case 1:break;case 2:break;case 3:break;case 4:return 4;case 5:return 11;case 6:return"date";case 7:return 12;case 8:return 13;case 9:return 14;case 10:return 15;case 11:return":";case 12:return 6;case 13:return"INVALID"}},rules:[/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:gantt\b)/i,/^(?:dateFormat\s[^#\n;]+)/i,/^(?:\d\d\d\d-\d\d-\d\d\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13],inclusive:!0}}};return t}();return u.lexer=s,t.prototype=u,u.Parser=t,new t}();"undefined"!=typeof t&&"undefined"!=typeof e&&(e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(n){n[1]||(console.log("Usage: "+n[0]+" FILE"),r.exit(1));var i=t("fs").readFileSync(t("path").normalize(n[1]),"utf8");return e.parser.parse(i)},"undefined"!=typeof n&&t.main===n&&e.main(r.argv.slice(1)))}).call(this,t("1YiZ5S"))},{"1YiZ5S":80,fs:78,path:79}],98:[function(t,n){n.exports=t(88)},{d3:1}],99:[function(t,n,e){(function(r){var i=function(){function t(){this.yy={}}var n=function(t,n,e,r){for(e=e||{},r=t.length;r--;e[t[r]]=n);return e},e=[6,8,10,11,15,17,19,20,22,33],r=[2,2],i=[1,6],a=[1,8],o=[1,9],u=[1,12],s=[1,13],c=[1,14],l=[1,15],f=[1,17],h=[1,18],d=[2,7],p=[6,8,10,11,15,17,18,19,20,21,22,33],g=[6,8,10,11,15,17,18,19,20,22,33],y=[1,46],m=[1,49],v=[1,53],b={trace:function(){},yy:{},symbols_:{error:2,start:3,SD:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,participant:11,actor:12,signal:13,note_statement:14,title:15,text:16,loop:17,end:18,opt:19,alt:20,"else":21,note:22,placement:23,text2:24,over:25,spaceList:26,actor_pair:27,",":28,left_of:29,right_of:30,signaltype:31,actors:32,ACTOR:33,SOLID_OPEN_ARROW:34,DOTTED_OPEN_ARROW:35,SOLID_ARROW:36,DOTTED_ARROW:37,SOLID_CROSS:38,DOTTED_CROSS:39,TXT:40,$accept:0,$end:1},terminals_:{2:"error",4:"SD",6:"EOF",8:"SPACE",10:"NL",11:"participant",15:"title",16:"text",17:"loop",18:"end",19:"opt",20:"alt",21:"else",22:"note",25:"over",28:",",29:"left_of",30:"right_of",33:"ACTOR",34:"SOLID_OPEN_ARROW",35:"DOTTED_OPEN_ARROW",36:"SOLID_ARROW",37:"DOTTED_ARROW",38:"SOLID_CROSS",39:"DOTTED_CROSS",40:"TXT"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,3],[9,2],[9,2],[9,4],[9,4],[9,4],[9,7],[14,4],[14,5],[26,2],[26,1],[27,1],[27,3],[23,1],[23,1],[13,4],[32,2],[32,1],[12,1],[31,1],[31,1],[31,1],[31,1],[31,1],[31,1],[24,1]],performAction:function(t,n,e,r,i,a){var o=a.length-1;switch(i){case 1:return r.apply(a[o-1]),a[o-1];case 2:this.$=[];break;case 3:a[o-1].push(a[o]),this.$=a[o-1];break;case 4:case 5:this.$=a[o];break;case 6:case 7:this.$=[];break;case 8:this.$=a[o-1];break;case 12:a[o-1].unshift({type:"loopStart",loopText:a[o-2].actor,signalType:r.LINETYPE.LOOP_START}),a[o-1].push({type:"loopEnd",loopText:a[o-2],signalType:r.LINETYPE.LOOP_END}),this.$=a[o-1];break;case 13:a[o-1].unshift({type:"optStart",optText:a[o-2].actor,signalType:r.LINETYPE.OPT_START}),a[o-1].push({type:"optEnd",optText:a[o-2].actor,signalType:r.LINETYPE.OPT_END}),this.$=a[o-1];break;case 14:a[o-4].unshift({type:"altStart",altText:a[o-5].actor,signalType:r.LINETYPE.ALT_START}),a[o-4].push({type:"else",altText:a[o-2].actor,signalType:r.LINETYPE.ALT_ELSE}),a[o-4]=a[o-4].concat(a[o-1]),a[o-4].push({type:"altEnd",signalType:r.LINETYPE.ALT_END}),this.$=a[o-4];break;case 15:this.$=[a[o-1],{type:"addNote",placement:a[o-2],actor:a[o-1].actor,text:a[o]}];break;case 19:this.$=a[o];break;case 20:this.$=[a[o-2],a[o]];break;case 21:this.$=r.PLACEMENT.LEFTOF;break;case 22:this.$=r.PLACEMENT.RIGHTOF;break;case 23:this.$=[a[o-3],a[o-1],{type:"addMessage",from:a[o-3].actor,to:a[o-1].actor,signalType:a[o-2],msg:a[o]}];break;case 26:this.$={type:"addActor",actor:a[o]};break;case 27:this.$=r.LINETYPE.SOLID_OPEN;break;case 28:this.$=r.LINETYPE.DOTTED_OPEN;break;case 29:this.$=r.LINETYPE.SOLID;break;case 30:this.$=r.LINETYPE.DOTTED;break;case 31:this.$=r.LINETYPE.SOLID_CROSS;break;case 32:this.$=r.LINETYPE.DOTTED_CROSS;break;case 33:this.$=a[o].substring(1).trim().replace(/\\n/gm,"\n")}},table:[{3:1,4:[1,2]},{1:[3]},n(e,r,{5:3}),{6:[1,4],7:5,8:i,9:7,10:a,11:o,12:16,13:10,14:11,15:u,17:s,19:c,20:l,22:f,33:h},n(e,d,{1:[2,1]}),n(p,[2,3]),{9:19,11:o,12:16,13:10,14:11,15:u,17:s,19:c,20:l,22:f,33:h},n(p,[2,5]),n(p,[2,6]),{12:20,33:h},{10:[1,21]},{10:[1,22]},{8:[1,23]},{12:24,33:h},{12:25,33:h},{12:26,33:h},{31:27,34:[1,28],35:[1,29],36:[1,30],37:[1,31],38:[1,32],39:[1,33]},{23:34,25:[1,35],29:[1,36],30:[1,37]},n([6,8,10,11,15,17,18,19,20,21,22,28,33,34,35,36,37,38,39,40],[2,26]),n(p,[2,4]),{10:[1,38]},n(p,[2,9]),n(p,[2,10]),{16:[1,39]},n(g,r,{5:40}),n(g,r,{5:41}),n([6,8,10,11,15,17,19,20,21,22,33],r,{5:42}),{12:43,33:h},{33:[2,27]},{33:[2,28]},{33:[2,29]},{33:[2,30]},{33:[2,31]},{33:[2,32]},{12:44,33:h},{8:y,26:45},{33:[2,21]},{33:[2,22]},n(p,[2,8]),{10:[1,47]},{6:m,7:5,8:i,9:7,10:a,11:o,12:16,13:10,14:11,15:u,17:s,18:[1,48],19:c,20:l,22:f,33:h},{6:m,7:5,8:i,9:7,10:a,11:o,12:16,13:10,14:11,15:u,17:s,18:[1,50],19:c,20:l,22:f,33:h},{6:m,7:5,8:i,9:7,10:a,11:o,12:16,13:10,14:11,15:u,17:s,19:c,20:l,21:[1,51],22:f,33:h},{24:52,40:v},{24:54,40:v},{12:56,27:55,33:h},{8:y,26:57,33:[2,18]},n(p,[2,11]),n(p,[2,12]),n(p,d),n(p,[2,13]),{12:58,33:h},{10:[2,23]},{10:[2,33]},{10:[2,15]},{12:59,33:h},{28:[1,60],33:[2,19]},{33:[2,17]},n(g,r,{5:61}),{10:[2,16]},{12:62,33:h},{6:m,7:5,8:i,9:7,10:a,11:o,12:16,13:10,14:11,15:u,17:s,18:[1,63],19:c,20:l,22:f,33:h},{33:[2,20]},n(p,[2,14])],defaultActions:{28:[2,27],29:[2,28],30:[2,29],31:[2,30],32:[2,31],33:[2,32],36:[2,21],37:[2,22],52:[2,23],53:[2,33],54:[2,15],57:[2,17],59:[2,16],62:[2,20]},parseError:function(t,n){if(!n.recoverable)throw new Error(t);this.trace(t)},parse:function(t){function n(){var t;return t=p.lex()||h,"number"!=typeof t&&(t=e.symbols_[t]||t),t}var e=this,r=[0],i=[null],a=[],o=this.table,u="",s=0,c=0,l=0,f=2,h=1,d=a.slice.call(arguments,1),p=Object.create(this.lexer),g={yy:{}};for(var y in this.yy)Object.prototype.hasOwnProperty.call(this.yy,y)&&(g.yy[y]=this.yy[y]);p.setInput(t,g.yy),g.yy.lexer=p,g.yy.parser=this,"undefined"==typeof p.yylloc&&(p.yylloc={});var m=p.yylloc;a.push(m);var v=p.options&&p.options.ranges;this.parseError="function"==typeof g.yy.parseError?g.yy.parseError:Object.getPrototypeOf(this).parseError;for(var b,_,x,w,k,E,M,A,D,S={};;){if(x=r[r.length-1],this.defaultActions[x]?w=this.defaultActions[x]:((null===b||"undefined"==typeof b)&&(b=n()),w=o[x]&&o[x][b]),"undefined"==typeof w||!w.length||!w[0]){var C="";D=[];for(E in o[x])this.terminals_[E]&&E>f&&D.push("'"+this.terminals_[E]+"'");C=p.showPosition?"Parse error on line "+(s+1)+":\n"+p.showPosition()+"\nExpecting "+D.join(", ")+", got '"+(this.terminals_[b]||b)+"'":"Parse error on line "+(s+1)+": Unexpected "+(b==h?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(C,{text:p.match,token:this.terminals_[b]||b,line:p.yylineno,loc:m,expected:D})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+b);switch(w[0]){case 1:r.push(b),i.push(p.yytext),a.push(p.yylloc),r.push(w[1]),b=null,_?(b=_,_=null):(c=p.yyleng,u=p.yytext,s=p.yylineno,m=p.yylloc,l>0&&l--);break;case 2:if(M=this.productions_[w[1]][1],S.$=i[i.length-M],S._$={first_line:a[a.length-(M||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(M||1)].first_column,last_column:a[a.length-1].last_column},v&&(S._$.range=[a[a.length-(M||1)].range[0],a[a.length-1].range[1]]),k=this.performAction.apply(S,[u,c,s,g.yy,w[1],i,a].concat(d)),"undefined"!=typeof k)return k;M&&(r=r.slice(0,-1*M*2),i=i.slice(0,-1*M),a=a.slice(0,-1*M)),r.push(this.productions_[w[1]][0]),i.push(S.$),a.push(S._$),A=o[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0}},_=function(){var t={EOF:1,parseError:function(t,n){if(!this.yy.parser)throw new Error(t);this.yy.parser.parseError(t,n)},setInput:function(t,n){return this.yy=n||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var n=t.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},unput:function(t){var n=t.length,e=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),e.length-1&&(this.yylineno-=e.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:e?(e.length===r.length?this.yylloc.first_column:0)+r[r.length-e.length].length-e[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(t){this.unput(this.match.slice(t))},pastInput:function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var t=this.pastInput(),n=new Array(t.length+1).join("-");return t+this.upcomingInput()+"\n"+n+"^"},test_match:function(t,n){var e,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=t[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e)return e;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var t,n,e,r;this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;a<i.length;a++)if(e=this._input.match(this.rules[i[a]]),e&&(!n||e[0].length>n[0].length)){if(n=e,r=a,this.options.backtrack_lexer){if(t=this.test_match(e,i[a]),t!==!1)return t;if(this._backtrack){n=!1;continue}return!1}if(!this.options.flex)break}return n?(t=this.test_match(n,i[r]),t!==!1?t:!1):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var t=this.next();return t?t:this.lex()},begin:function(t){this.conditionStack.push(t)},popState:function(){var t=this.conditionStack.length-1;return t>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(t){return t=this.conditionStack.length-1-Math.abs(t||0),t>=0?this.conditionStack[t]:"INITIAL"},pushState:function(t){this.begin(t)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(t,n,e,r){switch(e){case 0:return 10;case 1:return 38;case 2:return 39;case 3:return 36;case 4:return 37;case 5:break;case 6:break;case 7:break;case 8:return 11;case 9:return 19;case 10:return 17;case 11:return 20;case 12:return 21;case 13:return 18;case 14:return 29;case 15:return 30;case 16:return 25;case 17:return 22;case 18:return 15;case 19:return 4;case 20:return 28;case 21:return 10;case 22:return 33;case 23:return 34;case 24:return 35;case 25:return 36;case 26:return 37;case 27:return 40;case 28:return 6;case 29:return"INVALID"}},rules:[/^(?:[\n]+)/i,/^(?:[\-][x])/i,/^(?:[\-][\-][x])/i,/^(?:[\-][>][>])/i,/^(?:[\-][\-][>][>])/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:%[^\n]*)/i,/^(?:participant\b)/i,/^(?:opt\b)/i,/^(?:loop\b)/i,/^(?:alt\b)/i,/^(?:else\b)/i,/^(?:end\b)/i,/^(?:left of\b)/i,/^(?:right of\b)/i,/^(?:over\b)/i,/^(?:note\b)/i,/^(?:title\b)/i,/^(?:sequenceDiagram\b)/i,/^(?:,)/i,/^(?:;)/i,/^(?:[^\->:\n,;]+)/i,/^(?:->)/i,/^(?:-->)/i,/^(?:->>)/i,/^(?:-->>)/i,/^(?::[^#\n;]+)/i,/^(?:$)/i,/^(?:.)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29],inclusive:!0}}};return t}();return b.lexer=_,t.prototype=b,b.Parser=t,new t}();"undefined"!=typeof t&&"undefined"!=typeof e&&(e.parser=i,e.Parser=i.Parser,e.parse=function(){return i.parse.apply(i,arguments)},e.main=function(n){n[1]||(console.log("Usage: "+n[0]+" FILE"),r.exit(1));var i=t("fs").readFileSync(t("path").normalize(n[1]),"utf8");return e.parser.parse(i)},"undefined"!=typeof n&&t.main===n&&e.main(r.argv.slice(1)))}).call(this,t("1YiZ5S"))},{"1YiZ5S":80,fs:78,path:79}],100:[function(t,n,e){var r={},i=[],a=[],o=[];e.addActor=function(t,n,e){r[t]={name:n,description:e},i.push(t)},e.addMessage=function(t,n,e,r){a.push({from:t,to:n,message:e,answer:r})},e.addSignal=function(t,n,e,r){a.push({from:t,to:n,message:e,type:r})},e.getMessages=function(){return a},e.getActors=function(){return r},e.getActor=function(t){return r[t]},e.getActorKeys=function(){return Object.keys(r)},e.clear=function(){r={},a=[]},e.LINETYPE={SOLID:0,DOTTED:1,NOTE:2,SOLID_CROSS:3,DOTTED_CROSS:4,SOLID_OPEN:5,DOTTED_OPEN:6,LOOP_START:10,LOOP_END:11,ALT_START:12,ALT_ELSE:13,ALT_END:14,OPT_START:15,OPT_END:16},e.ARROWTYPE={FILLED:0,OPEN:1},e.PLACEMENT={LEFTOF:0,RIGHTOF:1,OVER:2},e.addNote=function(t,n,r){var i={actor:t,placement:n,message:r};o.push(i),a.push({from:t,to:t,message:r,type:e.LINETYPE.NOTE,placement:n})},e.parseError=function(t,n){mermaid.parseError(t,n)},e.apply=function(t){if(t instanceof Array)t.forEach(function(t){e.apply(t)});else switch(t.type){case"addActor":e.addActor(t.actor,t.actor,t.actor);break;case"addNote":e.addNote(t.actor,t.placement,t.text);break;case"addMessage":e.addSignal(t.from,t.to,t.msg,t.signalType);break;case"loopStart":e.addSignal(void 0,void 0,t.loopText,t.signalType);break;case"loopEnd":e.addSignal(void 0,void 0,void 0,t.signalType);break;case"optStart":e.addSignal(void 0,void 0,t.optText,t.signalType);break;case"optEnd":e.addSignal(void 0,void 0,void 0,t.signalType);break;case"altStart":e.addSignal(void 0,void 0,t.altText,t.signalType);break;case"else":e.addSignal(void 0,void 0,t.altText,t.signalType);break;case"altEnd":e.addSignal(void 0,void 0,void 0,t.signalType)}}},{}],101:[function(t,n,e){var r=t("./parser/sequenceDiagram").parser;r.yy=t("./sequenceDb");var i=t("./svgDraw"),a=t("./d3"),o={diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,mirrorActors:!1,bottomMarginAdj:1};e.bounds={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,list:[],init:function(){this.list=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},updateVal:function(t,n,e,r){t[n]="undefined"==typeof t[n]?e:r(e,t[n])},updateLoops:function(t,n,r,i){var a=this,u=0;this.list.forEach(function(s){u++;var c=a.list.length-u+1;a.updateVal(s,"startx",t-c*o.boxMargin,Math.min),a.updateVal(s,"starty",n-c*o.boxMargin,Math.min),a.updateVal(s,"stopx",r+c*o.boxMargin,Math.max),a.updateVal(s,"stopy",i+c*o.boxMargin,Math.max),a.updateVal(e.bounds.data,"startx",t-c*o.boxMargin,Math.min),a.updateVal(e.bounds.data,"starty",n-c*o.boxMargin,Math.min),a.updateVal(e.bounds.data,"stopx",r+c*o.boxMargin,Math.max),a.updateVal(e.bounds.data,"stopy",i+c*o.boxMargin,Math.max)})},insert:function(t,n,r,i){var a,o,u,s;a=Math.min(t,r),u=Math.max(t,r),o=Math.min(n,i),s=Math.max(n,i),this.updateVal(e.bounds.data,"startx",a,Math.min),this.updateVal(e.bounds.data,"starty",o,Math.min),this.updateVal(e.bounds.data,"stopx",u,Math.max),this.updateVal(e.bounds.data,"stopy",s,Math.max),this.updateLoops(a,o,u,s)},newLoop:function(t){this.list.push({startx:void 0,starty:this.verticalPos,stopx:void 0,stopy:void 0,title:t})},endLoop:function(){var t=this.list.pop();return t},addElseToLoop:function(t){var n=this.list.pop();n.elsey=e.bounds.getVerticalPos(),n.elseText=t,this.list.push(n)},bumpVerticalPos:function(t){this.verticalPos=this.verticalPos+t,this.data.stopy=this.verticalPos},getVerticalPos:function(){return this.verticalPos},getBounds:function(){return this.data}};var u=function(t,n,r,a){var u=i.getNoteRect();u.x=n,u.y=r,u.width=o.width,u["class"]="note";var s=t.append("g"),c=i.drawRect(s,u),l=i.getTextObj();l.x=n,l.y=r+o.noteMargin,l.textMargin=o.noteMargin,l.dy="1em",l.text=a.message,l["class"]="noteText";var f=i.drawText(s,l),h=f[0][0].getBBox().height;e.bounds.insert(n,r,n+o.width,r+2*o.noteMargin+h),c.attr("height",h+2*o.noteMargin),e.bounds.bumpVerticalPos(h+2*o.noteMargin)},s=function(t,n,i,a,o){var u,s=t.append("g"),c=n+(i-n)/2,l=s.append("text").attr("x",c).attr("y",a-7).style("text-anchor","middle").attr("class","messageText").text(o.message),f=l[0][0].getBBox().width;if(n===i){u=s.append("path").attr("d","M "+n+","+a+" C "+(n+60)+","+(a-10)+" "+(n+60)+","+(a+30)+" "+n+","+(a+20)),e.bounds.bumpVerticalPos(30);var h=Math.max(f/2,100);e.bounds.insert(n-h,e.bounds.getVerticalPos()-10,i+h,e.bounds.getVerticalPos())}else u=s.append("line"),u.attr("x1",n),u.attr("y1",a),u.attr("x2",i),u.attr("y2",a),e.bounds.insert(n,e.bounds.getVerticalPos()-10,i,e.bounds.getVerticalPos());o.type===r.yy.LINETYPE.DOTTED||o.type===r.yy.LINETYPE.DOTTED_CROSS||o.type===r.yy.LINETYPE.DOTTED_OPEN?(u.style("stroke-dasharray","3, 3"),u.attr("class","messageLine1")):u.attr("class","messageLine0"),u.attr("stroke-width",2),u.attr("stroke","black"),u.style("fill","none"),(o.type===r.yy.LINETYPE.SOLID||o.type===r.yy.LINETYPE.DOTTED)&&u.attr("marker-end","url(#arrowhead)"),(o.type===r.yy.LINETYPE.SOLID_CROSS||o.type===r.yy.LINETYPE.DOTTED_CROSS)&&u.attr("marker-end","url(#crosshead)")};n.exports.drawActors=function(t,n,r,a){var u;for(u=0;u<r.length;u++){var s=r[u];n[s].x=u*o.actorMargin+u*o.width,n[s].y=a,n[s].width=o.diagramMarginY,n[s].height=o.diagramMarginY,i.drawActor(t,n[s].x,a,n[s].description,o),e.bounds.insert(n[s].x,a,n[s].x+o.width,o.height)}e.bounds.bumpVerticalPos(o.height)},n.exports.setConf=function(t){var n=Object.keys(t);n.forEach(function(n){o[n]=t[n]})},n.exports.draw=function(t,c){r.yy.clear(),r.parse(t+"\n"),e.bounds.init();var l,f,h=a.select("#"+c),d=r.yy.getActors(),p=r.yy.getActorKeys(),g=r.yy.getMessages();n.exports.drawActors(h,d,p,0),i.insertArrowHead(h),i.insertArrowCrossHead(h),g.forEach(function(t){var n;switch(t.type){case r.yy.LINETYPE.NOTE:e.bounds.bumpVerticalPos(o.boxMargin),l=d[t.from].x,f=d[t.to].x,0!==t.placement?u(h,l+(o.width+o.actorMargin)/2,e.bounds.getVerticalPos(),t):u(h,l-(o.width+o.actorMargin)/2,e.bounds.getVerticalPos(),t);break;case r.yy.LINETYPE.LOOP_START:e.bounds.bumpVerticalPos(o.boxMargin),e.bounds.newLoop(t.message),e.bounds.bumpVerticalPos(o.boxMargin+o.boxTextMargin);break;case r.yy.LINETYPE.LOOP_END:n=e.bounds.endLoop(),i.drawLoop(h,n,"loop",o),e.bounds.bumpVerticalPos(o.boxMargin);break;case r.yy.LINETYPE.OPT_START:e.bounds.bumpVerticalPos(o.boxMargin),e.bounds.newLoop(t.message),e.bounds.bumpVerticalPos(o.boxMargin+o.boxTextMargin);break;case r.yy.LINETYPE.OPT_END:n=e.bounds.endLoop(),i.drawLoop(h,n,"opt",o),e.bounds.bumpVerticalPos(o.boxMargin);break;case r.yy.LINETYPE.ALT_START:e.bounds.bumpVerticalPos(o.boxMargin),e.bounds.newLoop(t.message),e.bounds.bumpVerticalPos(o.boxMargin+o.boxTextMargin);break;case r.yy.LINETYPE.ALT_ELSE:e.bounds.bumpVerticalPos(o.boxMargin),n=e.bounds.addElseToLoop(t.message),e.bounds.bumpVerticalPos(o.boxMargin);break;case r.yy.LINETYPE.ALT_END:n=e.bounds.endLoop(),i.drawLoop(h,n,"alt",o),e.bounds.bumpVerticalPos(o.boxMargin);break;default:e.bounds.bumpVerticalPos(o.messageMargin),l=d[t.from].x+o.width/2,f=d[t.to].x+o.width/2,s(h,l,f,e.bounds.getVerticalPos(),t)}}),o.mirrorActors&&(e.bounds.bumpVerticalPos(2*o.boxMargin),n.exports.drawActors(h,d,p,e.bounds.getVerticalPos()));var y=e.bounds.getBounds(),m=y.stopy-y.starty+2*o.diagramMarginY;o.mirrorActors&&(m=m-o.boxMargin+o.bottomMarginAdj);var v=y.stopx-y.startx+2*o.diagramMarginX;h.attr("height",m),h.attr("width",v),h.attr("viewBox",y.startx-o.diagramMarginX+" -"+o.diagramMarginY+" "+v+" "+m)}},{"./d3":98,"./parser/sequenceDiagram":99,"./sequenceDb":100,"./svgDraw":102}],102:[function(t,n,e){e.drawRect=function(t,n){var e=t.append("rect");return e.attr("x",n.x),e.attr("y",n.y),e.attr("fill",n.fill),e.attr("stroke",n.stroke),e.attr("width",n.width),e.attr("height",n.height),e.attr("rx",n.rx),e.attr("ry",n.ry),"undefined"!=typeof n["class"]&&e.attr("class",n["class"]),e},e.drawText=function(t,n){var e=t.append("text");return e.attr("x",n.x),e.attr("y",n.y),e.style("text-anchor",n.anchor),e.attr("fill",n.fill),n.text.split(/<br\/?>/gi).forEach(function(t){var r=e.append("tspan");r.attr("x",n.x+n.textMargin),r.attr("dy",n.dy),r.text(t)}),"undefined"!=typeof n["class"]&&e.attr("class",n["class"]),e},e.drawLabel=function(t,n){var r=e.getNoteRect();r.x=n.x,r.y=n.y,r.width=50,r.height=20,r.fill="#526e52",r.stroke="none",r["class"]="labelBox",e.drawRect(t,r),n.y=n.y+n.labelMargin,n.x=n.x+.5*n.labelMargin,n.fill="white",e.drawText(t,n)},e.drawActor=function(t,n,r,i,a){var o=n+a.width/2,u=t.append("g");0===r&&u.append("line").attr("x1",o).attr("y1",5).attr("x2",o).attr("y2",2e3).attr("class","actor-line").attr("stroke-width","0.5px").attr("stroke","#999");var s=e.getNoteRect();s.x=n,s.y=r,s.fill="#eaeaea",s.width=a.width,s.height=a.height,s["class"]="actor",s.rx=3,s.ry=3,e.drawRect(u,s),u.append("text").attr("x",o).attr("y",r+a.height/2+5).attr("class","actor").style("text-anchor","middle").text(i)},e.drawLoop=function(t,n,r,i){var a=t.append("g"),o=function(t,n,e,r){a.append("line").attr("x1",t).attr("y1",n).attr("x2",e).attr("y2",r).attr("stroke-width",2).attr("stroke","#526e52").attr("class","loopLine")};o(n.startx,n.starty,n.stopx,n.starty),o(n.stopx,n.starty,n.stopx,n.stopy),o(n.startx,n.stopy,n.stopx,n.stopy),o(n.startx,n.starty,n.startx,n.stopy),"undefined"!=typeof n.elsey&&o(n.startx,n.elsey,n.stopx,n.elsey);var u=e.getTextObj();u.text=r,u.x=n.startx,u.y=n.starty,u.labelMargin=1.5*i.boxMargin,u["class"]="labelText",u.fill="white",e.drawLabel(a,u),u=e.getTextObj(),u.text="[ "+n.title+" ]",u.x=n.startx+(n.stopx-n.startx)/2,u.y=n.starty+1.5*i.boxMargin,u.anchor="middle",u["class"]="loopText",e.drawText(a,u),"undefined"!=typeof n.elseText&&(u.text="[ "+n.elseText+" ]",u.y=n.elsey+1.5*i.boxMargin,e.drawText(a,u))},e.insertArrowHead=function(t){t.append("defs").append("marker").attr("id","arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},e.insertArrowCrossHead=function(t){var n=t.append("defs"),e=n.append("marker").attr("id","crosshead").attr("markerWidth",15).attr("markerHeight",8).attr("orient","auto").attr("refX",16).attr("refY",4);e.append("path").attr("fill","black").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 9,2 V 6 L16,4 Z"),e.append("path").attr("fill","none").attr("stroke","#000000").style("stroke-dasharray","0, 0").attr("stroke-width","1px").attr("d","M 0,1 L 6,7 M 6,1 L 0,7")},e.getTextObj=function(){var t={x:0,y:0,fill:"black","text-anchor":"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0};return t},e.getNoteRect=function(){var t={x:0,y:0,fill:"#EDF2AE",stroke:"#666",width:100,anchor:"start",height:100,rx:0,ry:0};return t}},{}],103:[function(t,n,e){(function(n){var r=t("./diagrams/flowchart/graphDb"),i=t("./diagrams/flowchart/parser/flow"),a=t("./utils"),o=t("./diagrams/flowchart/flowRenderer"),u=t("./diagrams/sequenceDiagram/sequenceRenderer"),s=t("./diagrams/example/exampleRenderer"),c=t("he"),l=t("./diagrams/example/parser/example"),f=t("./diagrams/flowchart/parser/flow"),h=t("./diagrams/flowchart/parser/dot"),d=t("./diagrams/sequenceDiagram/parser/sequenceDiagram"),p=t("./diagrams/sequenceDiagram/sequenceDb"),g=t("./diagrams/example/exampleDb"),y=t("./diagrams/gantt/ganttRenderer"),m=t("./diagrams/gantt/parser/gantt"),v=t("./diagrams/gantt/ganttDb"),b=0,_=function(t){var n,e=a.detectType(t);switch(e){case"graph":n=f,n.parser.yy=r;break;case"dotGraph":n=h,n.parser.yy=r;break;case"sequenceDiagram":n=d,n.parser.yy=p;break;case"info":n=l,n.parser.yy=g;break;case"gantt":n=m,n.parser.yy=v}try{return n.parse(t),!0}catch(i){return!1}},x=function(){var t;2===arguments.length?("undefined"!=typeof arguments[0]&&(mermaid.sequenceConfig=arguments[0]),t=arguments[1]):t=arguments[0],t=void 0===t?document.querySelectorAll(".mermaid"):"string"==typeof t?document.querySelectorAll(t):t instanceof Node?[t]:t;var n;for(n=0;n<t.length;n++){var i=t[n];if(!i.getAttribute("data-processed")){i.setAttribute("data-processed",!0);var l="mermaidChart"+b++,f=i.innerHTML;f=f.replace(/>/g,"&gt;"),f=f.replace(/</g,"&lt;"),f=c.decode(f).trim(),i.innerHTML='<svg id="'+l+'" width="100%" xmlns="http://www.w3.org/2000/svg"><g /></svg>';var h=a.detectType(f),d={};switch(h){case"graph":d=o.getClasses(f,!1),"object"==typeof mermaid.flowchartConfig&&o.setConf(mermaid.flowchartConfig),o.draw(f,l,!1),a.cloneCssStyles(i.firstChild,d),r.bindFunctions();break;case"dotGraph":d=o.getClasses(f,!0),o.draw(f,l,!0),a.cloneCssStyles(i.firstChild,d);break;case"sequenceDiagram":"object"==typeof mermaid.sequenceConfig&&u.setConf(mermaid.sequenceConfig),u.draw(f,l),a.cloneCssStyles(i.firstChild,[]);break;case"gantt":"object"==typeof mermaid.ganttConfig&&y.setConf(mermaid.ganttConfig),y.draw(f,l),a.cloneCssStyles(i.firstChild,[]);break;case"info":s.draw(f,l,e.version()),a.cloneCssStyles(i.firstChild,[])}}}};e.tester=function(){},e.version=function(){return t("../package.json").version};var w=function(t,n){return"undefined"==typeof n?!1:t===n};n.mermaid={startOnLoad:!0,htmlLabels:!0,init:function(){x.apply(null,arguments)},version:function(){return e.version()},getParser:function(){return i.parser},parse:function(t){return _(t)},parseError:function(t){console.log("Mermaid Syntax error:"),console.log(t)}},e.contentLoaded=function(){"undefined"!=typeof mermaid_config&&w(!1,mermaid_config.htmlLabels)&&(n.mermaid.htmlLabels=!1),n.mermaid.startOnLoad&&("undefined"!=typeof mermaid_config?w(!0,mermaid_config.startOnLoad)&&n.mermaid.init():n.mermaid.init())},"undefined"!=typeof document&&document.addEventListener("DOMContentLoaded",function(){e.contentLoaded()},!1)}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../package.json":84,"./diagrams/example/exampleDb":85,"./diagrams/example/exampleRenderer":86,"./diagrams/example/parser/example":87,"./diagrams/flowchart/flowRenderer":90,"./diagrams/flowchart/graphDb":91,"./diagrams/flowchart/parser/dot":92,"./diagrams/flowchart/parser/flow":93,"./diagrams/gantt/ganttDb":95,"./diagrams/gantt/ganttRenderer":96,"./diagrams/gantt/parser/gantt":97,"./diagrams/sequenceDiagram/parser/sequenceDiagram":99,"./diagrams/sequenceDiagram/sequenceDb":100,"./diagrams/sequenceDiagram/sequenceRenderer":101,"./utils":104,he:81}],104:[function(t,n){n.exports.detectType=function(t){return t.match(/^\s*sequenceDiagram/)?"sequenceDiagram":t.match(/^\s*sequence/)?"sequence":t.match(/^\s*digraph/)?"dotGraph":t.match(/^\s*info/)?"info":t.match(/^\s*gantt/)?"gantt":"graph"},n.exports.cloneCssStyles=function(t,n){for(var e="",r=document.styleSheets,i=0;i<r.length;i++)if("mermaid-svg-internal-css"!==r[i].title)try{var a=r[i].cssRules;if(null!==a)for(var o=0;o<a.length;o++){var u=a[o];if("undefined"!=typeof u.style){var s;s=t.querySelectorAll(u.selectorText),s.length>0&&(e+=u.selectorText+" { "+u.style.cssText+" }\n")}}}catch(c){"undefined"!=typeof console&&"undefined"!==console.warn;
  
  }var l="",f="";for(var h in n)n.hasOwnProperty(h)&&"undefined"!=typeof h&&("default"===h?(n["default"].styles instanceof Array&&(l+="#"+t.id.trim()+" .node { "+n[h].styles.join("; ")+"; }\n"),n["default"].nodeLabelStyles instanceof Array&&(l+="#"+t.id.trim()+" .node text  { "+n[h].nodeLabelStyles.join("; ")+"; }\n"),n["default"].edgeLabelStyles instanceof Array&&(l+="#"+t.id.trim()+" .edgeLabel text  { "+n[h].edgeLabelStyles.join("; ")+"; }\n")):n[h].styles instanceof Array&&(f+="#"+t.id.trim()+" ."+h+" { "+n[h].styles.join("; ")+"; }\n"));if(""!==e||""!==l||""!==f){var d=document.createElement("style");d.setAttribute("type","text/css"),d.setAttribute("title","mermaid-svg-internal-css"),d.innerHTML="/* <![CDATA[ */\n",""!==l&&(d.innerHTML+=l),""!==e&&(d.innerHTML+=e),""!==f&&(d.innerHTML+=f),d.innerHTML+="/* ]]> */\n",t.insertBefore(d,t.firstChild)}}},{}]},{},[103])}();