graphdb-workbench
Version:
The web application for GraphDB APIs
1 lines • 151 kB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{214:function(n,t,e){var r,i;!function(){var u={version:"3.5.12"},o=[].slice,a=function(n){return o.call(n)},l=this.document;function c(n){return n&&(n.ownerDocument||n.document||n).documentElement}function f(n){return n&&(n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView)}if(l)try{a(l.documentElement.childNodes)[0].nodeType}catch(n){a=function(n){for(var t=n.length,e=new Array(t);t--;)e[t]=n[t];return e}}if(Date.now||(Date.now=function(){return+new Date}),l)try{l.createElement("DIV").style.setProperty("opacity",0,"")}catch(n){var s=this.Element.prototype,h=s.setAttribute,p=s.setAttributeNS,g=this.CSSStyleDeclaration.prototype,v=g.setProperty;s.setAttribute=function(n,t){h.call(this,n,t+"")},s.setAttributeNS=function(n,t,e){p.call(this,n,t,e+"")},g.setProperty=function(n,t,e){v.call(this,n,t+"",e)}}function d(n,t){return n<t?-1:n>t?1:n>=t?0:NaN}function y(n){return null===n?NaN:+n}function m(n){return!isNaN(n)}function M(n){return{left:function(t,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);r<i;){var u=r+i>>>1;n(t[u],e)<0?r=u+1:i=u}return r},right:function(t,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);r<i;){var u=r+i>>>1;n(t[u],e)>0?i=u:r=u+1}return r}}}u.ascending=d,u.descending=function(n,t){return t<n?-1:t>n?1:t>=n?0:NaN},u.min=function(n,t){var e,r,i=-1,u=n.length;if(1===arguments.length){for(;++i<u;)if(null!=(r=n[i])&&r>=r){e=r;break}for(;++i<u;)null!=(r=n[i])&&e>r&&(e=r)}else{for(;++i<u;)if(null!=(r=t.call(n,n[i],i))&&r>=r){e=r;break}for(;++i<u;)null!=(r=t.call(n,n[i],i))&&e>r&&(e=r)}return e},u.max=function(n,t){var e,r,i=-1,u=n.length;if(1===arguments.length){for(;++i<u;)if(null!=(r=n[i])&&r>=r){e=r;break}for(;++i<u;)null!=(r=n[i])&&r>e&&(e=r)}else{for(;++i<u;)if(null!=(r=t.call(n,n[i],i))&&r>=r){e=r;break}for(;++i<u;)null!=(r=t.call(n,n[i],i))&&r>e&&(e=r)}return e},u.extent=function(n,t){var e,r,i,u=-1,o=n.length;if(1===arguments.length){for(;++u<o;)if(null!=(r=n[u])&&r>=r){e=i=r;break}for(;++u<o;)null!=(r=n[u])&&(e>r&&(e=r),i<r&&(i=r))}else{for(;++u<o;)if(null!=(r=t.call(n,n[u],u))&&r>=r){e=i=r;break}for(;++u<o;)null!=(r=t.call(n,n[u],u))&&(e>r&&(e=r),i<r&&(i=r))}return[e,i]},u.sum=function(n,t){var e,r=0,i=n.length,u=-1;if(1===arguments.length)for(;++u<i;)m(e=+n[u])&&(r+=e);else for(;++u<i;)m(e=+t.call(n,n[u],u))&&(r+=e);return r},u.mean=function(n,t){var e,r=0,i=n.length,u=-1,o=i;if(1===arguments.length)for(;++u<i;)m(e=y(n[u]))?r+=e:--o;else for(;++u<i;)m(e=y(t.call(n,n[u],u)))?r+=e:--o;if(o)return r/o},u.quantile=function(n,t){var e=(n.length-1)*t+1,r=Math.floor(e),i=+n[r-1],u=e-r;return u?i+u*(n[r]-i):i},u.median=function(n,t){var e,r=[],i=n.length,o=-1;if(1===arguments.length)for(;++o<i;)m(e=y(n[o]))&&r.push(e);else for(;++o<i;)m(e=y(t.call(n,n[o],o)))&&r.push(e);if(r.length)return u.quantile(r.sort(d),.5)},u.variance=function(n,t){var e,r,i=n.length,u=0,o=0,a=-1,l=0;if(1===arguments.length)for(;++a<i;)m(e=y(n[a]))&&(o+=(r=e-u)*(e-(u+=r/++l)));else for(;++a<i;)m(e=y(t.call(n,n[a],a)))&&(o+=(r=e-u)*(e-(u+=r/++l)));if(l>1)return o/(l-1)},u.deviation=function(){var n=u.variance.apply(this,arguments);return n?Math.sqrt(n):n};var x=M(d);function b(n){return n.length}u.bisectLeft=x.left,u.bisect=u.bisectRight=x.right,u.bisector=function(n){return M(1===n.length?function(t,e){return d(n(t),e)}:n)},u.shuffle=function(n,t,e){(u=arguments.length)<3&&(e=n.length,u<2&&(t=0));for(var r,i,u=e-t;u;)i=Math.random()*u--|0,r=n[u+t],n[u+t]=n[i+t],n[i+t]=r;return n},u.permute=function(n,t){for(var e=t.length,r=new Array(e);e--;)r[e]=n[t[e]];return r},u.pairs=function(n){for(var t=0,e=n.length-1,r=n[0],i=new Array(e<0?0:e);t<e;)i[t]=[r,r=n[++t]];return i},u.zip=function(){if(!(r=arguments.length))return[];for(var n=-1,t=u.min(arguments,b),e=new Array(t);++n<t;)for(var r,i=-1,o=e[n]=new Array(r);++i<r;)o[i]=arguments[i][n];return e},u.transpose=function(n){return u.zip.apply(u,n)},u.keys=function(n){var t=[];for(var e in n)t.push(e);return t},u.values=function(n){var t=[];for(var e in n)t.push(n[e]);return t},u.entries=function(n){var t=[];for(var e in n)t.push({key:e,value:n[e]});return t},u.merge=function(n){for(var t,e,r,i=n.length,u=-1,o=0;++u<i;)o+=n[u].length;for(e=new Array(o);--i>=0;)for(t=(r=n[i]).length;--t>=0;)e[--o]=r[t];return e};var w=Math.abs;function _(n){for(var t=1;n*t%1;)t*=10;return t}function N(n,t){for(var e in t)Object.defineProperty(n.prototype,e,{value:t[e],enumerable:!1})}function k(){this._=Object.create(null)}u.range=function(n,t,e){if(arguments.length<3&&(e=1,arguments.length<2&&(t=n,n=0)),(t-n)/e==1/0)throw new Error("infinite range");var r,i=[],u=_(w(e)),o=-1;if(n*=u,t*=u,(e*=u)<0)for(;(r=n+e*++o)>t;)i.push(r/u);else for(;(r=n+e*++o)<t;)i.push(r/u);return i},u.map=function(n,t){var e=new k;if(n instanceof k)n.forEach((function(n,t){e.set(n,t)}));else if(Array.isArray(n)){var r,i=-1,u=n.length;if(1===arguments.length)for(;++i<u;)e.set(i,n[i]);else for(;++i<u;)e.set(t.call(n,r=n[i],i),r)}else for(var o in n)e.set(o,n[o]);return e};var S="__proto__",E="\0";function A(n){return(n+="")===S||n[0]===E?E+n:n}function C(n){return(n+="")[0]===E?n.slice(1):n}function z(n){return A(n)in this._}function L(n){return(n=A(n))in this._&&delete this._[n]}function q(){var n=[];for(var t in this._)n.push(C(t));return n}function T(){var n=0;for(var t in this._)++n;return n}function R(){for(var n in this._)return!1;return!0}function D(){this._=Object.create(null)}function P(n){return n}function U(n,t,e){return function(){var r=e.apply(t,arguments);return r===t?n:r}}function j(n,t){if(t in n)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var e=0,r=F.length;e<r;++e){var i=F[e]+t;if(i in n)return i}}N(k,{has:z,get:function(n){return this._[A(n)]},set:function(n,t){return this._[A(n)]=t},remove:L,keys:q,values:function(){var n=[];for(var t in this._)n.push(this._[t]);return n},entries:function(){var n=[];for(var t in this._)n.push({key:C(t),value:this._[t]});return n},size:T,empty:R,forEach:function(n){for(var t in this._)n.call(this,C(t),this._[t])}}),u.nest=function(){var n,t,e={},r=[],i=[];function o(i,u,a){if(a>=r.length)return t?t.call(e,u):n?u.sort(n):u;for(var l,c,f,s,h=-1,p=u.length,g=r[a++],v=new k;++h<p;)(s=v.get(l=g(c=u[h])))?s.push(c):v.set(l,[c]);return i?(c=i(),f=function(n,t){c.set(n,o(i,t,a))}):(c={},f=function(n,t){c[n]=o(i,t,a)}),v.forEach(f),c}return e.map=function(n,t){return o(t,n,0)},e.entries=function(n){return function n(t,e){if(e>=r.length)return t;var u=[],o=i[e++];return t.forEach((function(t,r){u.push({key:t,values:n(r,e)})})),o?u.sort((function(n,t){return o(n.key,t.key)})):u}(o(u.map,n,0),0)},e.key=function(n){return r.push(n),e},e.sortKeys=function(n){return i[r.length-1]=n,e},e.sortValues=function(t){return n=t,e},e.rollup=function(n){return t=n,e},e},u.set=function(n){var t=new D;if(n)for(var e=0,r=n.length;e<r;++e)t.add(n[e]);return t},N(D,{has:z,add:function(n){return this._[A(n+="")]=!0,n},remove:L,values:q,size:T,empty:R,forEach:function(n){for(var t in this._)n.call(this,C(t))}}),u.behavior={},u.rebind=function(n,t){for(var e,r=1,i=arguments.length;++r<i;)n[e=arguments[r]]=U(n,t,t[e]);return n};var F=["webkit","ms","moz","Moz","o","O"];function H(){}function O(){}function I(n){var t=[],e=new k;function r(){for(var e,r=t,i=-1,u=r.length;++i<u;)(e=r[i].on)&&e.apply(this,arguments);return n}return r.on=function(r,i){var u,o=e.get(r);return arguments.length<2?o&&o.on:(o&&(o.on=null,t=t.slice(0,u=t.indexOf(o)).concat(t.slice(u+1)),e.remove(r)),i&&t.push(e.set(r,{on:i})),n)},r}function Y(){u.event.preventDefault()}function Z(){for(var n,t=u.event;n=t.sourceEvent;)t=n;return t}function V(n){for(var t=new O,e=0,r=arguments.length;++e<r;)t[arguments[e]]=I(t);return t.of=function(e,r){return function(i){try{var o=i.sourceEvent=u.event;i.target=n,u.event=i,t[i.type].apply(e,r)}finally{u.event=o}}},t}u.dispatch=function(){for(var n=new O,t=-1,e=arguments.length;++t<e;)n[arguments[t]]=I(n);return n},O.prototype.on=function(n,t){var e=n.indexOf("."),r="";if(e>=0&&(r=n.slice(e+1),n=n.slice(0,e)),n)return arguments.length<2?this[n].on(r):this[n].on(r,t);if(2===arguments.length){if(null==t)for(n in this)this.hasOwnProperty(n)&&this[n].on(r,null);return this}},u.event=null,u.requote=function(n){return n.replace(X,"\\$&")};var X=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,$={}.__proto__?function(n,t){n.__proto__=t}:function(n,t){for(var e in t)n[e]=t[e]};function B(n){return $(n,K),n}var J=function(n,t){return t.querySelector(n)},W=function(n,t){return t.querySelectorAll(n)},G=function(n,t){var e=n.matches||n[j(n,"matchesSelector")];return(G=function(n,t){return e.call(n,t)})(n,t)};"function"==typeof Sizzle&&(J=function(n,t){return Sizzle(n,t)[0]||null},W=Sizzle,G=Sizzle.matchesSelector),u.selection=function(){return u.select(l.documentElement)};var K=u.selection.prototype=[];function Q(n){return"function"==typeof n?n:function(){return J(n,this)}}function nn(n){return"function"==typeof n?n:function(){return W(n,this)}}K.select=function(n){var t,e,r,i,u=[];n=Q(n);for(var o=-1,a=this.length;++o<a;){u.push(t=[]),t.parentNode=(r=this[o]).parentNode;for(var l=-1,c=r.length;++l<c;)(i=r[l])?(t.push(e=n.call(i,i.__data__,l,o)),e&&"__data__"in i&&(e.__data__=i.__data__)):t.push(null)}return B(u)},K.selectAll=function(n){var t,e,r=[];n=nn(n);for(var i=-1,u=this.length;++i<u;)for(var o=this[i],l=-1,c=o.length;++l<c;)(e=o[l])&&(r.push(t=a(n.call(e,e.__data__,l,i))),t.parentNode=e);return B(r)};var tn={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/"};function en(n,t){return n=u.ns.qualify(n),null==t?n.local?function(){this.removeAttributeNS(n.space,n.local)}:function(){this.removeAttribute(n)}:"function"==typeof t?n.local?function(){var e=t.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}:function(){var e=t.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}:n.local?function(){this.setAttributeNS(n.space,n.local,t)}:function(){this.setAttribute(n,t)}}function rn(n){return n.trim().replace(/\s+/g," ")}function un(n){return new RegExp("(?:^|\\s+)"+u.requote(n)+"(?:\\s+|$)","g")}function on(n){return(n+"").trim().split(/^|\s+/)}function an(n,t){var e=(n=on(n).map(ln)).length;return"function"==typeof t?function(){for(var r=-1,i=t.apply(this,arguments);++r<e;)n[r](this,i)}:function(){for(var r=-1;++r<e;)n[r](this,t)}}function ln(n){var t=un(n);return function(e,r){if(i=e.classList)return r?i.add(n):i.remove(n);var i=e.getAttribute("class")||"";r?(t.lastIndex=0,t.test(i)||e.setAttribute("class",rn(i+" "+n))):e.setAttribute("class",rn(i.replace(t," ")))}}function cn(n,t,e){return null==t?function(){this.style.removeProperty(n)}:"function"==typeof t?function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(n):this.style.setProperty(n,r,e)}:function(){this.style.setProperty(n,t,e)}}function fn(n,t){return null==t?function(){delete this[n]}:"function"==typeof t?function(){var e=t.apply(this,arguments);null==e?delete this[n]:this[n]=e}:function(){this[n]=t}}function sn(n){return"function"==typeof n?n:(n=u.ns.qualify(n)).local?function(){return this.ownerDocument.createElementNS(n.space,n.local)}:function(){var t=this.ownerDocument,e=this.namespaceURI;return e?t.createElementNS(e,n):t.createElement(n)}}function hn(){var n=this.parentNode;n&&n.removeChild(this)}function pn(n){return{__data__:n}}function gn(n){return function(){return G(this,n)}}function vn(n){return arguments.length||(n=d),function(t,e){return t&&e?n(t.__data__,e.__data__):!t-!e}}function dn(n,t){for(var e=0,r=n.length;e<r;e++)for(var i,u=n[e],o=0,a=u.length;o<a;o++)(i=u[o])&&t(i,o,e);return n}function yn(n){return $(n,mn),n}u.ns={prefix:tn,qualify:function(n){var t=n.indexOf(":"),e=n;return t>=0&&"xmlns"!==(e=n.slice(0,t))&&(n=n.slice(t+1)),tn.hasOwnProperty(e)?{space:tn[e],local:n}:n}},K.attr=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node();return(n=u.ns.qualify(n)).local?e.getAttributeNS(n.space,n.local):e.getAttribute(n)}for(t in n)this.each(en(t,n[t]));return this}return this.each(en(n,t))},K.classed=function(n,t){if(arguments.length<2){if("string"==typeof n){var e=this.node(),r=(n=on(n)).length,i=-1;if(t=e.classList){for(;++i<r;)if(!t.contains(n[i]))return!1}else for(t=e.getAttribute("class");++i<r;)if(!un(n[i]).test(t))return!1;return!0}for(t in n)this.each(an(t,n[t]));return this}return this.each(an(n,t))},K.style=function(n,t,e){var r=arguments.length;if(r<3){if("string"!=typeof n){for(e in r<2&&(t=""),n)this.each(cn(e,n[e],t));return this}if(r<2){var i=this.node();return f(i).getComputedStyle(i,null).getPropertyValue(n)}e=""}return this.each(cn(n,t,e))},K.property=function(n,t){if(arguments.length<2){if("string"==typeof n)return this.node()[n];for(t in n)this.each(fn(t,n[t]));return this}return this.each(fn(n,t))},K.text=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.textContent=null==t?"":t}:null==n?function(){this.textContent=""}:function(){this.textContent=n}):this.node().textContent},K.html=function(n){return arguments.length?this.each("function"==typeof n?function(){var t=n.apply(this,arguments);this.innerHTML=null==t?"":t}:null==n?function(){this.innerHTML=""}:function(){this.innerHTML=n}):this.node().innerHTML},K.append=function(n){return n=sn(n),this.select((function(){return this.appendChild(n.apply(this,arguments))}))},K.insert=function(n,t){return n=sn(n),t=Q(t),this.select((function(){return this.insertBefore(n.apply(this,arguments),t.apply(this,arguments)||null)}))},K.remove=function(){return this.each(hn)},K.data=function(n,t){var e,r,i=-1,u=this.length;if(!arguments.length){for(n=new Array(u=(e=this[0]).length);++i<u;)(r=e[i])&&(n[i]=r.__data__);return n}function o(n,e){var r,i,u,o=n.length,f=e.length,s=Math.min(o,f),h=new Array(f),p=new Array(f),g=new Array(o);if(t){var v,d=new k,y=new Array(o);for(r=-1;++r<o;)(i=n[r])&&(d.has(v=t.call(i,i.__data__,r))?g[r]=i:d.set(v,i),y[r]=v);for(r=-1;++r<f;)(i=d.get(v=t.call(e,u=e[r],r)))?!0!==i&&(h[r]=i,i.__data__=u):p[r]=pn(u),d.set(v,!0);for(r=-1;++r<o;)r in y&&!0!==d.get(y[r])&&(g[r]=n[r])}else{for(r=-1;++r<s;)i=n[r],u=e[r],i?(i.__data__=u,h[r]=i):p[r]=pn(u);for(;r<f;++r)p[r]=pn(e[r]);for(;r<o;++r)g[r]=n[r]}p.update=h,p.parentNode=h.parentNode=g.parentNode=n.parentNode,a.push(p),l.push(h),c.push(g)}var a=yn([]),l=B([]),c=B([]);if("function"==typeof n)for(;++i<u;)o(e=this[i],n.call(e,e.parentNode.__data__,i));else for(;++i<u;)o(e=this[i],n);return l.enter=function(){return a},l.exit=function(){return c},l},K.datum=function(n){return arguments.length?this.property("__data__",n):this.property("__data__")},K.filter=function(n){var t,e,r,i=[];"function"!=typeof n&&(n=gn(n));for(var u=0,o=this.length;u<o;u++){i.push(t=[]),t.parentNode=(e=this[u]).parentNode;for(var a=0,l=e.length;a<l;a++)(r=e[a])&&n.call(r,r.__data__,a,u)&&t.push(r)}return B(i)},K.order=function(){for(var n=-1,t=this.length;++n<t;)for(var e,r=this[n],i=r.length-1,u=r[i];--i>=0;)(e=r[i])&&(u&&u!==e.nextSibling&&u.parentNode.insertBefore(e,u),u=e);return this},K.sort=function(n){n=vn.apply(this,arguments);for(var t=-1,e=this.length;++t<e;)this[t].sort(n);return this.order()},K.each=function(n){return dn(this,(function(t,e,r){n.call(t,t.__data__,e,r)}))},K.call=function(n){var t=a(arguments);return n.apply(t[0]=this,t),this},K.empty=function(){return!this.node()},K.node=function(){for(var n=0,t=this.length;n<t;n++)for(var e=this[n],r=0,i=e.length;r<i;r++){var u=e[r];if(u)return u}return null},K.size=function(){var n=0;return dn(this,(function(){++n})),n};var mn=[];function Mn(n){var t,e;return function(r,i,u){var o,a=n[u].update,l=a.length;for(u!=e&&(e=u,t=0),i>=t&&(t=i+1);!(o=a[t])&&++t<l;);return o}}function xn(n,t,e){var r="__on"+n,i=n.indexOf("."),o=wn;i>0&&(n=n.slice(0,i));var l=bn.get(n);function c(){var t=this[r];t&&(this.removeEventListener(n,t,t.$),delete this[r])}return l&&(n=l,o=_n),i?t?function(){var i=o(t,a(arguments));c.call(this),this.addEventListener(n,this[r]=i,i.$=e),i._=t}:c:t?H:function(){var t,e=new RegExp("^__on([^.]+)"+u.requote(n)+"$");for(var r in this)if(t=r.match(e)){var i=this[r];this.removeEventListener(t[1],i,i.$),delete this[r]}}}u.selection.enter=yn,u.selection.enter.prototype=mn,mn.append=K.append,mn.empty=K.empty,mn.node=K.node,mn.call=K.call,mn.size=K.size,mn.select=function(n){for(var t,e,r,i,u,o=[],a=-1,l=this.length;++a<l;){r=(i=this[a]).update,o.push(t=[]),t.parentNode=i.parentNode;for(var c=-1,f=i.length;++c<f;)(u=i[c])?(t.push(r[c]=e=n.call(i.parentNode,u.__data__,c,a)),e.__data__=u.__data__):t.push(null)}return B(o)},mn.insert=function(n,t){return arguments.length<2&&(t=Mn(this)),K.insert.call(this,n,t)},u.select=function(n){var t;return"string"==typeof n?(t=[J(n,l)]).parentNode=l.documentElement:(t=[n]).parentNode=c(n),B([t])},u.selectAll=function(n){var t;return"string"==typeof n?(t=a(W(n,l))).parentNode=l.documentElement:(t=a(n)).parentNode=null,B([t])},K.on=function(n,t,e){var r=arguments.length;if(r<3){if("string"!=typeof n){for(e in r<2&&(t=!1),n)this.each(xn(e,n[e],t));return this}if(r<2)return(r=this.node()["__on"+n])&&r._;e=!1}return this.each(xn(n,t,e))};var bn=u.map({mouseenter:"mouseover",mouseleave:"mouseout"});function wn(n,t){return function(e){var r=u.event;u.event=e,t[0]=this.__data__;try{n.apply(this,t)}finally{u.event=r}}}function _n(n,t){var e=wn(n,t);return function(n){var t=n.relatedTarget;t&&(t===this||8&t.compareDocumentPosition(this))||e.call(this,n)}}l&&bn.forEach((function(n){"on"+n in l&&bn.remove(n)}));var Nn,kn=0;function Sn(n){var t=".dragsuppress-"+ ++kn,e="click"+t,r=u.select(f(n)).on("touchmove"+t,Y).on("dragstart"+t,Y).on("selectstart"+t,Y);if(null==Nn&&(Nn=!("onselectstart"in n)&&j(n.style,"userSelect")),Nn){var i=c(n).style,o=i[Nn];i[Nn]="none"}return function(n){if(r.on(t,null),Nn&&(i[Nn]=o),n){var u=function(){r.on(e,null)};r.on(e,(function(){Y(),u()}),!0),setTimeout(u,0)}}}u.mouse=function(n){return An(n,Z())};var En=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function An(n,t){t.changedTouches&&(t=t.changedTouches[0]);var e=n.ownerSVGElement||n;if(e.createSVGPoint){var r=e.createSVGPoint();if(En<0){var i=f(n);if(i.scrollX||i.scrollY){var o=(e=u.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important"))[0][0].getScreenCTM();En=!(o.f||o.e),e.remove()}}return En?(r.x=t.pageX,r.y=t.pageY):(r.x=t.clientX,r.y=t.clientY),[(r=r.matrixTransform(n.getScreenCTM().inverse())).x,r.y]}var a=n.getBoundingClientRect();return[t.clientX-a.left-n.clientLeft,t.clientY-a.top-n.clientTop]}function Cn(){return u.event.changedTouches[0].identifier}u.touch=function(n,t,e){if(arguments.length<3&&(e=t,t=Z().changedTouches),t)for(var r,i=0,u=t.length;i<u;++i)if((r=t[i]).identifier===e)return An(n,r)},u.behavior.drag=function(){var n=V(i,"drag","dragstart","dragend"),t=null,e=o(H,u.mouse,f,"mousemove","mouseup"),r=o(Cn,u.touch,P,"touchmove","touchend");function i(){this.on("mousedown.drag",e).on("touchstart.drag",r)}function o(e,r,i,o,a){return function(){var l,c=this,f=u.event.target,s=c.parentNode,h=n.of(c,arguments),p=0,g=e(),v=".drag"+(null==g?"":"-"+g),d=u.select(i(f)).on(o+v,M).on(a+v,x),y=Sn(f),m=r(s,g);function M(){var n,t,e=r(s,g);e&&(n=e[0]-m[0],t=e[1]-m[1],p|=n|t,m=e,h({type:"drag",x:e[0]+l[0],y:e[1]+l[1],dx:n,dy:t}))}function x(){r(s,g)&&(d.on(o+v,null).on(a+v,null),y(p),h({type:"dragend"}))}l=t?[(l=t.apply(c,arguments)).x-m[0],l.y-m[1]]:[0,0],h({type:"dragstart"})}}return i.origin=function(n){return arguments.length?(t=n,i):t},u.rebind(i,n,"on")},u.touches=function(n,t){return arguments.length<2&&(t=Z().touches),t?a(t).map((function(t){var e=An(n,t);return e.identifier=t.identifier,e})):[]};var zn=1e-6,Ln=zn*zn,qn=Math.PI,Tn=2*qn,Rn=Tn-zn,Dn=qn/2,Pn=qn/180,Un=180/qn;function jn(n){return n>0?1:n<0?-1:0}function Fn(n,t,e){return(t[0]-n[0])*(e[1]-n[1])-(t[1]-n[1])*(e[0]-n[0])}function Hn(n){return n>1?0:n<-1?qn:Math.acos(n)}function On(n){return n>1?Dn:n<-1?-Dn:Math.asin(n)}function In(n){return((n=Math.exp(n))+1/n)/2}function Yn(n){return(n=Math.sin(n/2))*n}var Zn=Math.SQRT2;u.interpolateZoom=function(n,t){var e,r,i=n[0],u=n[1],o=n[2],a=t[0],l=t[1],c=t[2],f=a-i,s=l-u,h=f*f+s*s;if(h<Ln)r=Math.log(c/o)/Zn,e=function(n){return[i+n*f,u+n*s,o*Math.exp(Zn*n*r)]};else{var p=Math.sqrt(h),g=(c*c-o*o+4*h)/(2*o*2*p),v=(c*c-o*o-4*h)/(2*c*2*p),d=Math.log(Math.sqrt(g*g+1)-g),y=Math.log(Math.sqrt(v*v+1)-v);r=(y-d)/Zn,e=function(n){var t,e=n*r,a=In(d),l=o/(2*p)*(a*(t=Zn*e+d,((t=Math.exp(2*t))-1)/(t+1))-function(n){return((n=Math.exp(n))-1/n)/2}(d));return[i+l*f,u+l*s,o*a/In(Zn*e+d)]}}return e.duration=1e3*r,e},u.behavior.zoom=function(){var n,t,e,r,i,o,a,c,s,h={x:0,y:0,k:1},p=[960,500],g=$n,v=250,d=0,y="mousedown.zoom",m="mousemove.zoom",M="mouseup.zoom",x="touchstart.zoom",b=V(w,"zoomstart","zoom","zoomend");function w(n){n.on(y,L).on(Xn+".zoom",T).on("dblclick.zoom",R).on(x,q)}function _(n){return[(n[0]-h.x)/h.k,(n[1]-h.y)/h.k]}function N(n){h.k=Math.max(g[0],Math.min(g[1],n))}function k(n,t){t=function(n){return[n[0]*h.k+h.x,n[1]*h.k+h.y]}(t),h.x+=n[0]-t[0],h.y+=n[1]-t[1]}function S(n,e,r,i){n.__chart__={x:h.x,y:h.y,k:h.k},N(Math.pow(2,i)),k(t=e,r),n=u.select(n),v>0&&(n=n.transition().duration(v)),n.call(w.event)}function E(){a&&a.domain(o.range().map((function(n){return(n-h.x)/h.k})).map(o.invert)),s&&s.domain(c.range().map((function(n){return(n-h.y)/h.k})).map(c.invert))}function A(n){d++||n({type:"zoomstart"})}function C(n){E(),n({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function z(n){--d||(n({type:"zoomend"}),t=null)}function L(){var n=this,t=b.of(n,arguments),e=0,r=u.select(f(n)).on(m,(function(){e=1,k(u.mouse(n),i),C(t)})).on(M,(function(){r.on(m,null).on(M,null),o(e),z(t)})),i=_(u.mouse(n)),o=Sn(n);Sa.call(n),A(t)}function q(){var n,t=this,e=b.of(t,arguments),r={},o=0,a=".zoom-"+u.event.changedTouches[0].identifier,l="touchmove"+a,c="touchend"+a,f=[],s=u.select(t),p=Sn(t);function g(){var e=u.touches(t);return n=h.k,e.forEach((function(n){n.identifier in r&&(r[n.identifier]=_(n))})),e}function v(){var n=u.event.target;u.select(n).on(l,d).on(c,m),f.push(n);for(var e=u.event.changedTouches,a=0,s=e.length;a<s;++a)r[e[a].identifier]=null;var p=g(),v=Date.now();if(1===p.length){if(v-i<500){var y=p[0];S(t,y,r[y.identifier],Math.floor(Math.log(h.k)/Math.LN2)+1),Y()}i=v}else if(p.length>1){y=p[0];var M=p[1],x=y[0]-M[0],b=y[1]-M[1];o=x*x+b*b}}function d(){var a,l,c,f,s=u.touches(t);Sa.call(t);for(var h=0,p=s.length;h<p;++h,f=null)if(c=s[h],f=r[c.identifier]){if(l)break;a=c,l=f}if(f){var g=(g=c[0]-a[0])*g+(g=c[1]-a[1])*g,v=o&&Math.sqrt(g/o);a=[(a[0]+c[0])/2,(a[1]+c[1])/2],l=[(l[0]+f[0])/2,(l[1]+f[1])/2],N(v*n)}i=null,k(a,l),C(e)}function m(){if(u.event.touches.length){for(var n=u.event.changedTouches,t=0,i=n.length;t<i;++t)delete r[n[t].identifier];for(var o in r)return void g()}u.selectAll(f).on(a,null),s.on(y,L).on(x,q),p(),z(e)}v(),A(e),s.on(y,null).on(x,v)}function T(){var i=b.of(this,arguments);r?clearTimeout(r):(Sa.call(this),n=_(t=e||u.mouse(this)),A(i)),r=setTimeout((function(){r=null,z(i)}),50),Y(),N(Math.pow(2,.002*Vn())*h.k),k(t,n),C(i)}function R(){var n=u.mouse(this),t=Math.log(h.k)/Math.LN2;S(this,n,_(n),u.event.shiftKey?Math.ceil(t)-1:Math.floor(t)+1)}return Xn||(Xn="onwheel"in l?(Vn=function(){return-u.event.deltaY*(u.event.deltaMode?120:1)},"wheel"):"onmousewheel"in l?(Vn=function(){return u.event.wheelDelta},"mousewheel"):(Vn=function(){return-u.event.detail},"MozMousePixelScroll")),w.event=function(n){n.each((function(){var n=b.of(this,arguments),e=h;Ca?u.select(this).transition().each("start.zoom",(function(){h=this.__chart__||{x:0,y:0,k:1},A(n)})).tween("zoom:zoom",(function(){var r=p[0],i=p[1],o=t?t[0]:r/2,a=t?t[1]:i/2,l=u.interpolateZoom([(o-h.x)/h.k,(a-h.y)/h.k,r/h.k],[(o-e.x)/e.k,(a-e.y)/e.k,r/e.k]);return function(t){var e=l(t),i=r/e[2];this.__chart__=h={x:o-e[0]*i,y:a-e[1]*i,k:i},C(n)}})).each("interrupt.zoom",(function(){z(n)})).each("end.zoom",(function(){z(n)})):(this.__chart__=h,A(n),C(n),z(n))}))},w.translate=function(n){return arguments.length?(h={x:+n[0],y:+n[1],k:h.k},E(),w):[h.x,h.y]},w.scale=function(n){return arguments.length?(h={x:h.x,y:h.y,k:null},N(+n),E(),w):h.k},w.scaleExtent=function(n){return arguments.length?(g=null==n?$n:[+n[0],+n[1]],w):g},w.center=function(n){return arguments.length?(e=n&&[+n[0],+n[1]],w):e},w.size=function(n){return arguments.length?(p=n&&[+n[0],+n[1]],w):p},w.duration=function(n){return arguments.length?(v=+n,w):v},w.x=function(n){return arguments.length?(a=n,o=n.copy(),h={x:0,y:0,k:1},w):a},w.y=function(n){return arguments.length?(s=n,c=n.copy(),h={x:0,y:0,k:1},w):s},u.rebind(w,b,"on")};var Vn,Xn,$n=[0,1/0];function Bn(){}function Jn(n,t,e){return this instanceof Jn?(this.h=+n,this.s=+t,void(this.l=+e)):arguments.length<2?n instanceof Jn?new Jn(n.h,n.s,n.l):yt(""+n,mt,Jn):new Jn(n,t,e)}u.color=Bn,Bn.prototype.toString=function(){return this.rgb()+""},u.hsl=Jn;var Wn=Jn.prototype=new Bn;function Gn(n,t,e){var r,i;function u(n){return Math.round(255*function(n){return n>360?n-=360:n<0&&(n+=360),n<60?r+(i-r)*n/60:n<180?i:n<240?r+(i-r)*(240-n)/60:r}(n))}return n=isNaN(n)?0:(n%=360)<0?n+360:n,t=isNaN(t)?0:t<0?0:t>1?1:t,r=2*(e=e<0?0:e>1?1:e)-(i=e<=.5?e*(1+t):e+t-e*t),new ht(u(n+120),u(n),u(n-120))}function Kn(n,t,e){return this instanceof Kn?(this.h=+n,this.c=+t,void(this.l=+e)):arguments.length<2?n instanceof Kn?new Kn(n.h,n.c,n.l):lt(n instanceof tt?n.l:(n=Mt((n=u.rgb(n)).r,n.g,n.b)).l,n.a,n.b):new Kn(n,t,e)}Wn.brighter=function(n){return n=Math.pow(.7,arguments.length?n:1),new Jn(this.h,this.s,this.l/n)},Wn.darker=function(n){return n=Math.pow(.7,arguments.length?n:1),new Jn(this.h,this.s,n*this.l)},Wn.rgb=function(){return Gn(this.h,this.s,this.l)},u.hcl=Kn;var Qn=Kn.prototype=new Bn;function nt(n,t,e){return isNaN(n)&&(n=0),isNaN(t)&&(t=0),new tt(e,Math.cos(n*=Pn)*t,Math.sin(n)*t)}function tt(n,t,e){return this instanceof tt?(this.l=+n,this.a=+t,void(this.b=+e)):arguments.length<2?n instanceof tt?new tt(n.l,n.a,n.b):n instanceof Kn?nt(n.h,n.c,n.l):Mt((n=ht(n)).r,n.g,n.b):new tt(n,t,e)}Qn.brighter=function(n){return new Kn(this.h,this.c,Math.min(100,this.l+et*(arguments.length?n:1)))},Qn.darker=function(n){return new Kn(this.h,this.c,Math.max(0,this.l-et*(arguments.length?n:1)))},Qn.rgb=function(){return nt(this.h,this.c,this.l).rgb()},u.lab=tt;var et=18,rt=.95047,it=1,ut=1.08883,ot=tt.prototype=new Bn;function at(n,t,e){var r=(n+16)/116,i=r+t/500,u=r-e/200;return new ht(st(3.2404542*(i=ct(i)*rt)-1.5371385*(r=ct(r)*it)-.4985314*(u=ct(u)*ut)),st(-.969266*i+1.8760108*r+.041556*u),st(.0556434*i-.2040259*r+1.0572252*u))}function lt(n,t,e){return n>0?new Kn(Math.atan2(e,t)*Un,Math.sqrt(t*t+e*e),n):new Kn(NaN,NaN,n)}function ct(n){return n>.206893034?n*n*n:(n-4/29)/7.787037}function ft(n){return n>.008856?Math.pow(n,1/3):7.787037*n+4/29}function st(n){return Math.round(255*(n<=.00304?12.92*n:1.055*Math.pow(n,1/2.4)-.055))}function ht(n,t,e){return this instanceof ht?(this.r=~~n,this.g=~~t,void(this.b=~~e)):arguments.length<2?n instanceof ht?new ht(n.r,n.g,n.b):yt(""+n,ht,Gn):new ht(n,t,e)}function pt(n){return new ht(n>>16,n>>8&255,255&n)}function gt(n){return pt(n)+""}ot.brighter=function(n){return new tt(Math.min(100,this.l+et*(arguments.length?n:1)),this.a,this.b)},ot.darker=function(n){return new tt(Math.max(0,this.l-et*(arguments.length?n:1)),this.a,this.b)},ot.rgb=function(){return at(this.l,this.a,this.b)},u.rgb=ht;var vt=ht.prototype=new Bn;function dt(n){return n<16?"0"+Math.max(0,n).toString(16):Math.min(255,n).toString(16)}function yt(n,t,e){var r,i,u,o=0,a=0,l=0;if(r=/([a-z]+)\((.*)\)/.exec(n=n.toLowerCase()))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 t(bt(i[0]),bt(i[1]),bt(i[2]))}return(u=wt.get(n))?t(u.r,u.g,u.b):(null==n||"#"!==n.charAt(0)||isNaN(u=parseInt(n.slice(1),16))||(4===n.length?(o=(3840&u)>>4,o|=o>>4,a=240&u,a|=a>>4,l=15&u,l|=l<<4):7===n.length&&(o=(16711680&u)>>16,a=(65280&u)>>8,l=255&u)),t(o,a,l))}function mt(n,t,e){var r,i,u=Math.min(n/=255,t/=255,e/=255),o=Math.max(n,t,e),a=o-u,l=(o+u)/2;return a?(i=l<.5?a/(o+u):a/(2-o-u),r=n==o?(t-e)/a+(t<e?6:0):t==o?(e-n)/a+2:(n-t)/a+4,r*=60):(r=NaN,i=l>0&&l<1?0:r),new Jn(r,i,l)}function Mt(n,t,e){var r=ft((.4124564*(n=xt(n))+.3575761*(t=xt(t))+.1804375*(e=xt(e)))/rt),i=ft((.2126729*n+.7151522*t+.072175*e)/it);return tt(116*i-16,500*(r-i),200*(i-ft((.0193339*n+.119192*t+.9503041*e)/ut)))}function xt(n){return(n/=255)<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function bt(n){var t=parseFloat(n);return"%"===n.charAt(n.length-1)?Math.round(2.55*t):t}vt.brighter=function(n){n=Math.pow(.7,arguments.length?n:1);var t=this.r,e=this.g,r=this.b,i=30;return t||e||r?(t&&t<i&&(t=i),e&&e<i&&(e=i),r&&r<i&&(r=i),new ht(Math.min(255,t/n),Math.min(255,e/n),Math.min(255,r/n))):new ht(i,i,i)},vt.darker=function(n){return new ht((n=Math.pow(.7,arguments.length?n:1))*this.r,n*this.g,n*this.b)},vt.hsl=function(){return mt(this.r,this.g,this.b)},vt.toString=function(){return"#"+dt(this.r)+dt(this.g)+dt(this.b)};var wt=u.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});function _t(n){return"function"==typeof n?n:function(){return n}}function Nt(n){return function(t,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=null),kt(t,e,n,r)}}function kt(n,t,e,r){var i={},o=u.dispatch("beforesend","progress","load","error"),l={},c=new XMLHttpRequest,f=null;function s(){var n,t=c.status;if(!t&&function(n){var t=n.responseType;return t&&"text"!==t?n.response:n.responseText}(c)||t>=200&&t<300||304===t){try{n=e.call(i,c)}catch(n){return void o.error.call(i,n)}o.load.call(i,n)}else o.error.call(i,c)}return!this.XDomainRequest||"withCredentials"in c||!/^(http(s)?:)?\/\//.test(n)||(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=s:c.onreadystatechange=function(){c.readyState>3&&s()},c.onprogress=function(n){var t=u.event;u.event=n;try{o.progress.call(i,c)}finally{u.event=t}},i.header=function(n,t){return n=(n+"").toLowerCase(),arguments.length<2?l[n]:(null==t?delete l[n]:l[n]=t+"",i)},i.mimeType=function(n){return arguments.length?(t=null==n?null:n+"",i):t},i.responseType=function(n){return arguments.length?(f=n,i):f},i.response=function(n){return e=n,i},["get","post"].forEach((function(n){i[n]=function(){return i.send.apply(i,[n].concat(a(arguments)))}})),i.send=function(e,r,u){if(2===arguments.length&&"function"==typeof r&&(u=r,r=null),c.open(e,n,!0),null==t||"accept"in l||(l.accept=t+",*/*"),c.setRequestHeader)for(var a in l)c.setRequestHeader(a,l[a]);return null!=t&&c.overrideMimeType&&c.overrideMimeType(t),null!=f&&(c.responseType=f),null!=u&&i.on("error",u).on("load",(function(n){u(null,n)})),o.beforesend.call(i,c),c.send(null==r?null:r),i},i.abort=function(){return c.abort(),i},u.rebind(i,o,"on"),null==r?i:i.get(function(n){return 1===n.length?function(t,e){n(null==t?e:null)}:n}(r))}wt.forEach((function(n,t){wt.set(n,pt(t))})),u.functor=_t,u.xhr=Nt(P),u.dsv=function(n,t){var e=new RegExp('["'+n+"\n]"),r=n.charCodeAt(0);function i(n,e,r){arguments.length<3&&(r=e,e=null);var i=kt(n,t,null==e?u:o(e),r);return i.row=function(n){return arguments.length?i.response(null==(e=n)?u:o(n)):e},i}function u(n){return i.parse(n.responseText)}function o(n){return function(t){return i.parse(t.responseText,n)}}function a(t){return t.map(l).join(n)}function l(n){return e.test(n)?'"'+n.replace(/\"/g,'""')+'"':n}return i.parse=function(n,t){var e;return i.parseRows(n,(function(n,r){if(e)return e(n,r-1);var i=new Function("d","return {"+n.map((function(n,t){return JSON.stringify(n)+": d["+t+"]"})).join(",")+"}");e=t?function(n,e){return t(i(n),e)}:i}))},i.parseRows=function(n,t){var e,i,u={},o={},a=[],l=n.length,c=0,f=0;function s(){if(c>=l)return o;if(i)return i=!1,u;var t=c;if(34===n.charCodeAt(t)){for(var e=t;e++<l;)if(34===n.charCodeAt(e)){if(34!==n.charCodeAt(e+1))break;++e}return c=e+2,13===(a=n.charCodeAt(e+1))?(i=!0,10===n.charCodeAt(e+2)&&++c):10===a&&(i=!0),n.slice(t+1,e).replace(/""/g,'"')}for(;c<l;){var a,f=1;if(10===(a=n.charCodeAt(c++)))i=!0;else if(13===a)i=!0,10===n.charCodeAt(c)&&(++c,++f);else if(a!==r)continue;return n.slice(t,c-f)}return n.slice(t)}for(;(e=s())!==o;){for(var h=[];e!==u&&e!==o;)h.push(e),e=s();t&&null==(h=t(h,f++))||a.push(h)}return a},i.format=function(t){if(Array.isArray(t[0]))return i.formatRows(t);var e=new D,r=[];return t.forEach((function(n){for(var t in n)e.has(t)||r.push(e.add(t))})),[r.map(l).join(n)].concat(t.map((function(t){return r.map((function(n){return l(t[n])})).join(n)}))).join("\n")},i.formatRows=function(n){return n.map(a).join("\n")},i},u.csv=u.dsv(",","text/csv"),u.tsv=u.dsv("\t","text/tab-separated-values");var St,Et,At,Ct,zt=this[j(this,"requestAnimationFrame")]||function(n){setTimeout(n,17)};function Lt(n,t,e){var r=arguments.length;r<2&&(t=0),r<3&&(e=Date.now());var i={c:n,t:e+t,n:null};return Et?Et.n=i:St=i,Et=i,At||(Ct=clearTimeout(Ct),At=1,zt(qt)),i}function qt(){var n=Tt(),t=Rt()-n;t>24?(isFinite(t)&&(clearTimeout(Ct),Ct=setTimeout(qt,t)),At=0):(At=1,zt(qt))}function Tt(){for(var n=Date.now(),t=St;t;)n>=t.t&&t.c(n-t.t)&&(t.c=null),t=t.n;return n}function Rt(){for(var n,t=St,e=1/0;t;)t.c?(t.t<e&&(e=t.t),t=(n=t).n):t=n?n.n=t.n:St=t.n;return Et=n,e}function Dt(n,t){return t-(n?Math.ceil(Math.log(n)/Math.LN10):1)}u.timer=function(){Lt.apply(this,arguments)},u.timer.flush=function(){Tt(),Rt()},u.round=function(n,t){return t?Math.round(n*(t=Math.pow(10,t)))/t:Math.round(n)};var Pt=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map((function(n,t){var e=Math.pow(10,3*w(8-t));return{scale:t>8?function(n){return n/e}:function(n){return n*e},symbol:n}}));function Ut(n){var t=n.decimal,e=n.thousands,r=n.grouping,i=n.currency,o=r&&e?function(n,t){for(var i=n.length,u=[],o=0,a=r[0],l=0;i>0&&a>0&&(l+a+1>t&&(a=Math.max(1,t-l)),u.push(n.substring(i-=a,i+a)),!((l+=a+1)>t));)a=r[o=(o+1)%r.length];return u.reverse().join(e)}:P;return function(n){var e=jt.exec(n),r=e[1]||" ",a=e[2]||">",l=e[3]||"-",c=e[4]||"",f=e[5],s=+e[6],h=e[7],p=e[8],g=e[9],v=1,d="",y="",m=!1,M=!0;switch(p&&(p=+p.substring(1)),(f||"0"===r&&"="===a)&&(f=r="0",a="="),g){case"n":h=!0,g="g";break;case"%":v=100,y="%",g="f";break;case"p":v=100,y="%",g="r";break;case"b":case"o":case"x":case"X":"#"===c&&(d="0"+g.toLowerCase());case"c":M=!1;case"d":m=!0,p=0;break;case"s":v=-1,g="r"}"$"===c&&(d=i[0],y=i[1]),"r"!=g||p||(g="g"),null!=p&&("g"==g?p=Math.max(1,Math.min(21,p)):"e"!=g&&"f"!=g||(p=Math.max(0,Math.min(20,p)))),g=Ft.get(g)||Ht;var x=f&&h;return function(n){var e=y;if(m&&n%1)return"";var i=n<0||0===n&&1/n<0?(n=-n,"-"):"-"===l?"":l;if(v<0){var c=u.formatPrefix(n,p);n=c.scale(n),e=c.symbol+y}else n*=v;var b,w,_=(n=g(n,p)).lastIndexOf(".");if(_<0){var N=M?n.lastIndexOf("e"):-1;N<0?(b=n,w=""):(b=n.substring(0,N),w=n.substring(N))}else b=n.substring(0,_),w=t+n.substring(_+1);!f&&h&&(b=o(b,1/0));var k=d.length+b.length+w.length+(x?0:i.length),S=k<s?new Array(k=s-k+1).join(r):"";return x&&(b=o(S+b,S.length?s-w.length:1/0)),i+=d,n=b+w,("<"===a?i+n+S:">"===a?S+i+n:"^"===a?S.substring(0,k>>=1)+i+n+S.substring(k):i+(x?n:S+n))+e}}}u.formatPrefix=function(n,t){var e=0;return(n=+n)&&(n<0&&(n*=-1),t&&(n=u.round(n,Dt(n,t))),e=1+Math.floor(1e-12+Math.log(n)/Math.LN10),e=Math.max(-24,Math.min(24,3*Math.floor((e-1)/3)))),Pt[8+e/3]};var jt=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Ft=u.map({b:function(n){return n.toString(2)},c:function(n){return String.fromCharCode(n)},o:function(n){return n.toString(8)},x:function(n){return n.toString(16)},X:function(n){return n.toString(16).toUpperCase()},g:function(n,t){return n.toPrecision(t)},e:function(n,t){return n.toExponential(t)},f:function(n,t){return n.toFixed(t)},r:function(n,t){return(n=u.round(n,Dt(n,t))).toFixed(Math.max(0,Math.min(20,Dt(n*(1+1e-15),t))))}});function Ht(n){return n+""}var Ot=u.time={},It=Date;function Yt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}Yt.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){Zt.setUTCDate.apply(this._,arguments)},setDay:function(){Zt.setUTCDay.apply(this._,arguments)},setFullYear:function(){Zt.setUTCFullYear.apply(this._,arguments)},setHours:function(){Zt.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Zt.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Zt.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Zt.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Zt.setUTCSeconds.apply(this._,arguments)},setTime:function(){Zt.setTime.apply(this._,arguments)}};var Zt=Date.prototype;function Vt(n,t,e){function r(t){var e=n(t),r=u(e,1);return t-e<r-t?e:r}function i(e){return t(e=n(new It(e-1)),1),e}function u(n,e){return t(n=new It(+n),e),n}function o(n,r,u){var o=i(n),a=[];if(u>1)for(;o<r;)e(o)%u||a.push(new Date(+o)),t(o,1);else for(;o<r;)a.push(new Date(+o)),t(o,1);return a}n.floor=n,n.round=r,n.ceil=i,n.offset=u,n.range=o;var a=n.utc=Xt(n);return a.floor=a,a.round=Xt(r),a.ceil=Xt(i),a.offset=Xt(u),a.range=function(n,t,e){try{It=Yt;var r=new Yt;return r._=n,o(r,t,e)}finally{It=Date}},n}function Xt(n){return function(t,e){try{It=Yt;var r=new Yt;return r._=t,n(r,e)._}finally{It=Date}}}function $t(n){var t=n.dateTime,e=n.date,r=n.time,i=n.periods,o=n.days,a=n.shortDays,l=n.months,c=n.shortMonths;function f(n){var t=n.length;function e(e){for(var r,i,u,o=[],a=-1,l=0;++a<t;)37===n.charCodeAt(a)&&(o.push(n.slice(l,a)),null!=(i=Bt[r=n.charAt(++a)])&&(r=n.charAt(++a)),(u=b[r])&&(r=u(e,null==i?"e"===r?" ":"0":i)),o.push(r),l=a+1);return o.push(n.slice(l,a)),o.join("")}return e.parse=function(t){var e={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(s(e,n,t,0)!=t.length)return null;"p"in e&&(e.H=e.H%12+12*e.p);var r=null!=e.Z&&It!==Yt,i=new(r?Yt:It);return"j"in e?i.setFullYear(e.y,0,e.j):"W"in e||"U"in e?("w"in e||(e.w="W"in e?1:0),i.setFullYear(e.y,0,1),i.setFullYear(e.y,0,"W"in e?(e.w+6)%7+7*e.W-(i.getDay()+5)%7:e.w+7*e.U-(i.getDay()+6)%7)):i.setFullYear(e.y,e.m,e.d),i.setHours(e.H+(e.Z/100|0),e.M+e.Z%100,e.S,e.L),r?i._:i},e.toString=function(){return n},e}function s(n,t,e,r){for(var i,u,o,a=0,l=t.length,c=e.length;a<l;){if(r>=c)return-1;if(37===(i=t.charCodeAt(a++))){if(o=t.charAt(a++),!(u=w[o in Bt?t.charAt(a++):o])||(r=u(n,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}f.utc=function(n){var t=f(n);function e(n){try{var e=new(It=Yt);return e._=n,t(e)}finally{It=Date}}return e.parse=function(n){try{It=Yt;var e=t.parse(n);return e&&e._}finally{It=Date}},e.toString=t.toString,e},f.multi=f.utc.multi=ve;var h=u.map(),p=Kt(o),g=Qt(o),v=Kt(a),d=Qt(a),y=Kt(l),m=Qt(l),M=Kt(c),x=Qt(c);i.forEach((function(n,t){h.set(n.toLowerCase(),t)}));var b={a:function(n){return a[n.getDay()]},A:function(n){return o[n.getDay()]},b:function(n){return c[n.getMonth()]},B:function(n){return l[n.getMonth()]},c:f(t),d:function(n,t){return Gt(n.getDate(),t,2)},e:function(n,t){return Gt(n.getDate(),t,2)},H:function(n,t){return Gt(n.getHours(),t,2)},I:function(n,t){return Gt(n.getHours()%12||12,t,2)},j:function(n,t){return Gt(1+Ot.dayOfYear(n),t,3)},L:function(n,t){return Gt(n.getMilliseconds(),t,3)},m:function(n,t){return Gt(n.getMonth()+1,t,2)},M:function(n,t){return Gt(n.getMinutes(),t,2)},p:function(n){return i[+(n.getHours()>=12)]},S:function(n,t){return Gt(n.getSeconds(),t,2)},U:function(n,t){return Gt(Ot.sundayOfYear(n),t,2)},w:function(n){return n.getDay()},W:function(n,t){return Gt(Ot.mondayOfYear(n),t,2)},x:f(e),X:f(r),y:function(n,t){return Gt(n.getFullYear()%100,t,2)},Y:function(n,t){return Gt(n.getFullYear()%1e4,t,4)},Z:pe,"%":function(){return"%"}},w={a:function(n,t,e){v.lastIndex=0;var r=v.exec(t.slice(e));return r?(n.w=d.get(r[0].toLowerCase()),e+r[0].length):-1},A:function(n,t,e){p.lastIndex=0;var r=p.exec(t.slice(e));return r?(n.w=g.get(r[0].toLowerCase()),e+r[0].length):-1},b:function(n,t,e){M.lastIndex=0;var r=M.exec(t.slice(e));return r?(n.m=x.get(r[0].toLowerCase()),e+r[0].length):-1},B:function(n,t,e){y.lastIndex=0;var r=y.exec(t.slice(e));return r?(n.m=m.get(r[0].toLowerCase()),e+r[0].length):-1},c:function(n,t,e){return s(n,b.c.toString(),t,e)},d:ae,e:ae,H:ce,I:ce,j:le,L:he,m:oe,M:fe,p:function(n,t,e){var r=h.get(t.slice(e,e+=2).toLowerCase());return null==r?-1:(n.p=r,e)},S:se,U:te,w:ne,W:ee,x:function(n,t,e){return s(n,b.x.toString(),t,e)},X:function(n,t,e){return s(n,b.X.toString(),t,e)},y:ie,Y:re,Z:ue,"%":ge};return f}Ot.year=Vt((function(n){return(n=Ot.day(n)).setMonth(0,1),n}),(function(n,t){n.setFullYear(n.getFullYear()+t)}),(function(n){return n.getFullYear()})),Ot.years=Ot.year.range,Ot.years.utc=Ot.year.utc.range,Ot.day=Vt((function(n){var t=new It(2e3,0);return t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),t}),(function(n,t){n.setDate(n.getDate()+t)}),(function(n){return n.getDate()-1})),Ot.days=Ot.day.range,Ot.days.utc=Ot.day.utc.range,Ot.dayOfYear=function(n){var t=Ot.year(n);return Math.floor((n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach((function(n,t){t=7-t;var e=Ot[n]=Vt((function(n){return(n=Ot.day(n)).setDate(n.getDate()-(n.getDay()+t)%7),n}),(function(n,t){n.setDate(n.getDate()+7*Math.floor(t))}),(function(n){var e=Ot.year(n).getDay();return Math.floor((Ot.dayOfYear(n)+(e+t)%7)/7)-(e!==t)}));Ot[n+"s"]=e.range,Ot[n+"s"].utc=e.utc.range,Ot[n+"OfYear"]=function(n){var e=Ot.year(n).getDay();return Math.floor((Ot.dayOfYear(n)+(e+t)%7)/7)}})),Ot.week=Ot.sunday,Ot.weeks=Ot.sunday.range,Ot.weeks.utc=Ot.sunday.utc.range,Ot.weekOfYear=Ot.sundayOfYear;var Bt={"-":"",_:" ",0:"0"},Jt=/^\s*\d+/,Wt=/^%/;function Gt(n,t,e){var r=n<0?"-":"",i=(r?-n:n)+"",u=i.length;return r+(u<e?new Array(e-u+1).join(t)+i:i)}function Kt(n){return new RegExp("^(?:"+n.map(u.requote).join("|")+")","i")}function Qt(n){for(var t=new k,e=-1,r=n.length;++e<r;)t.set(n[e].toLowerCase(),e);return t}function ne(n,t,e){Jt.lastIndex=0;var r=Jt.exec(t.slice(e,e+1));return r?(n.w=+r[0],e+r[0].length):-1}function te(n,t,e){Jt.lastIndex=0;var r=Jt.exec(t.slice(e));return r?(n.U=+r[0],e+r[0].length):-1}function ee(n,t,e){Jt.lastIndex=0;var r=Jt.exec(t.slice(e));return r?(n.W=+r[0],e+r[0].length):-1}function re(n,t,e){Jt.lastIndex=0;var r=Jt.exec(t.slice(e,e+4));return r?(n.y=+r[0],e+r[0].length):-1}function ie(n,t,e){Jt.lastIndex=0;var r,i=Jt.exec(t.slice(e,e+2));return i?(n.y=(r=+i[0])+(r>68?1900:2e3),e+i[0].length):-1}function ue(n,t,e){return/^[+-]\d{4}$/.test(t=t.slice(e,e+5))?(n.Z=-t,e+5):-1}function oe(n,t,e){Jt.lastIndex=0;var r=Jt.exec(t.slice(e,e+2));return r?(n.m=r[0]-1,e+r[0].length):-1}function ae(n,t,e){Jt.lastIndex=0;var r=Jt.exec(t.slice(e,e+2));return r?(n.d=+r[0],e+r[0].length):-1}function le(n,t,e){Jt.lastIndex=0;var r=Jt.exec(t.slice(e,e+3));return r?(n.j=+r[0],e+r[0].length):-1}function ce(n,t,e){Jt.lastIndex=0;var r=Jt.exec(t.slice(e,e+2));return r?(n.H=+r[0],e+r[0].length):-1}function fe(n,t,e){Jt.lastIndex=0;var r=Jt.exec(t.slice(e,e+2));return r?(n.M=+r[0],e+r[0].length):-1}function se(n,t,e){Jt.lastIndex=0;var r=Jt.exec(t.slice(e,e+2));return r?(n.S=+r[0],e+r[0].length):-1}function he(n,t,e){Jt.lastIndex=0;var r=Jt.exec(t.slice(e,e+3));return r?(n.L=+r[0],e+r[0].length):-1}function pe(n){var t=n.getTimezoneOffset(),e=t>0?"-":"+",r=w(t)/60|0,i=w(t)%60;return e+Gt(r,"0",2)+Gt(i,"0",2)}function ge(n,t,e){Wt.lastIndex=0;var r=Wt.exec(t.slice(e,e+1));return r?e+r[0].length:-1}function ve(n){for(var t=n.length,e=-1;++e<t;)n[e][0]=this(n[e][0]);return function(t){for(var e=0,r=n[e];!r[1](t);)r=n[++e];return r[0](t)}}u.locale=function(n){return{numberFormat:Ut(n),timeFormat:$t(n)}};var de=u.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"]});function ye(){}u.format=de.numberFormat,u.geo={},ye.prototype={s:0,t:0,add:function(n){Me(n,this.t,me),Me(me.s,this.s,this),this.s?this.t+=me.t:this.s=me.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var me=new ye;function Me(n,t,e){var r=e.s=n+t,i=r-n,u=r-i;e.t=n-u+(t-i)}function xe(n,t){n&&we.hasOwnProperty(n.type)&&we[n.type](n,t)}u.geo.stream=function(n,t){n&&be.hasOwnProperty(n.type)?be[n.type](n,t):xe(n,t)};var be={Feature:function(n,t){xe(n.geometry,t)},FeatureCollection:function(n,t){for(var e=n.features,r=-1,i=e.length;++r<i;)xe(e[r].geometry,t)}},we={Sphere:function(n,t){t.sphere()},Point:function(n,t){n=n.coordinates,t.point(n[0],n[1],n[2])},MultiPoint:function(n,t){for(var e=n.coordinates,r=-1,i=e.length;++r<i;)n=e[r],t.point(n[0],n[1],n[2])},LineString:function(n,t){_e(n.coordinates,t,0)},MultiLineString:function(n,t){for(var e=n.coordinates,r=-1,i=e.length;++r<i;)_e(e[r],t,0)},Polygon:function(n,t){Ne(n.coordinates,t)},MultiPolygon:function(n,t){for(var e=n.coordinates,r=-1,i=e.length;++r<i;)Ne(e[r],t)},GeometryCollection:function(n,t){for(var e=n.geometries,r=-1,i=e.length;++r<i;)xe(e[r],t)}};function _e(n,t,e){var r,i=-1,u=n.length-e;for(t.lineStart();++i<u;)r=n[i],t.point(r[0],r[1],r[2]);t.lineEnd()}function Ne(n,t){var e=-1,r=n.length;for(t.polygonStart();++e<r;)_e(n[e],t,1);t.polygonEnd()}u.geo.area=function(n){return ke=0,u.geo.stream(n,je),ke};var ke,Se,Ee,Ae,Ce,ze,Le,qe,Te,Re,De,Pe,Ue=new ye,je={sphere:function(){ke+=4*qn},point:H,lineStart:H,lineEnd:H,polygonStart:function(){Ue.reset(),je.lineStart=Fe},polygonEnd:function(){var n=2*Ue;ke+=n<0?4*qn+n:n,je.lineStart=je.lineEnd=je.point=H}};function Fe(){var n,t,e,r,i;function u(n,t){t=t*Pn/2+qn/4;var u=(n*=Pn)-e,o=u>=0?1:-1,a=o*u,l=Math.cos(t),c=Math.sin(t),f=i*c,s=r*l+f*Math.cos(a),h=f*o*Math.sin(a);Ue.add(Math.atan2(h,s)),e=n,r=l,i=c}je.point=function(o,a){je.point=u,e=(n=o)*Pn,r=Math.cos(a=(t=a)*Pn/2+qn/4),i=Math.sin(a)},je.lineEnd=function(){u(n,t)}}function He(n){var t=n[0],e=n[1],r=Math.cos(e);return[r*Math.cos(t),r*Math.sin(t),Math.sin(e)]}function Oe(n,t){return n[0]*t[0]+n[1]*t[1]+n[2]*t[2]}function Ie(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}function Ye(n,t){n[0]+=t[0],n[1]+=t[1],n[2]+=t[2]}function Ze(n,t){return[n[0]*t,n[1]*t,n[2]*t]}function Ve(n){var t=Math.sqrt(n[0]*n[0]+n[1]*n[1]+n[2]*n[2]);n[0]/=t,n[1]/=t,n[2]/=t}function Xe(n){return[Math.atan2(n[1],n[0]),On(n[2])]}functio