UNPKG

241 kBJavaScriptView Raw
1!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports["d3-state-visualizer"]=n():t["d3-state-visualizer"]=n()}(self,(function(){return(()=>{var t={5997:(t,n,r)=>{"use strict";n.Z=function(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"tooltip",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=s(s({},p),e),a=i.left,c=i.top,l=i.offset,v=i.root,d={class:r},g=function(t){return""},y={},m=v||t.select("body"),x=m.node();function b(e){e.on("mouseover.tip",(function(e){var o=u(t.mouse(x),2),i=o[0],h=o[1],p=a||i+l.left,v=c||h-l.top;m.selectAll("div.".concat(r)).remove(),n=m.append("div").attr(f(r)(d)).style(s({position:"absolute","z-index":1001,left:"".concat(p,"px"),top:"".concat(v,"px")},y)).html((function(){return g(e)}))})),e.on("mousemove.tip",(function(r){var e=u(t.mouse(x),2),o=e[0],i=e[1],s=a||o+l.left,f=c||i-l.top;n.style({left:"".concat(s,"px"),top:"".concat(f,"px")}).html((function(){return g(r)}))})),e.on("mouseout.tip",(function(){return n.remove()}))}return b.attr=function(t){return(0,o.is)(Object,t)&&(d=s(s({},d),t)),this},b.style=function(t){return(0,o.is)(Object,t)&&(y=s(s({},y),t)),this},b.text=function(t){return g=h(t),this},b};var e,o=r(2061),i=(e=r(2553))&&e.__esModule?e:{default:e};function u(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var e,o,i=[],u=!0,a=!1;try{for(r=r.call(t);!(u=(e=r.next()).done)&&(i.push(e.value),!n||i.length!==n);u=!0);}catch(t){a=!0,o=t}finally{try{u||null==r.return||r.return()}finally{if(a)throw o}}return i}}(t,n)||function(t,n){if(t){if("string"==typeof t)return a(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,n):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}function c(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);n&&(e=e.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),r.push.apply(r,e)}return r}function s(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?c(Object(r),!0).forEach((function(n){l(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))}))}return t}function l(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}var f=i.default.prependClass,h=i.default.functor,p={left:void 0,top:void 0,offset:{left:0,top:0},root:void 0}},6662:(t,n,r)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t){return(0,e.is)(Function,t)?t:function(){return t}};var e=r(2061)},2553:(t,n,r)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e=i(r(4926)),o=i(r(6662));function i(t){return t&&t.__esModule?t:{default:t}}var u={prependClass:e.default,functor:o.default};n.default=u},4926:(t,n,r)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t){return(0,o.mapObjIndexed)((function(n,r){if("class"===r){var e=(0,i.default)(n);return function(n,r){var i=e(n,r);return i!==t?(0,o.join)(" ",[t,i]):i}}return n}))};var e,o=r(2061),i=(e=r(6662))&&e.__esModule?e:{default:e}},2287:(t,n,r)=>{"use strict";n.Z=function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{name:r.key||"state",children:[]};if(!(0,o.default)(n)&&n&&!n.toJS)return{};var c=r.key,l=void 0===c?"state":c,f=r.pushMethod,h=void 0===f?"push":f,p=s(u,l);return null===p?{}:((0,i.default)(n&&n.toJS?n.toJS():n,(function(n,r){var i=n&&n.toJS?n.toJS():n,c={name:r};if((0,e.default)(i)){c.children=[];for(var s=0;s<i.length;s++)c.children[h](a({name:"".concat(r,"[").concat(s,"]")},(0,o.default)(i[s])?"object":"value",i[s]))}else(0,o.default)(i)?c.children=[]:c.value=i;p.children[h](c),t(i,{key:r,pushMethod:h},u)})),u)};var e=u(r(4609)),o=u(r(3966)),i=u(r(8781));function u(t){return t&&t.__esModule?t:{default:t}}function a(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function c(t,n,r){if(t){n(t);var e=r(t);if(e)for(var o=e.length,i=0;i<o;i++)c(e[i],n,r)}}function s(t,n){var r=null;return c(t,(function(t){t.name===n&&(r=t)}),(function(t){return t.children})),r}},8308:(t,n,r)=>{var e,o;!function(){var i={version:"3.5.17"},u=[].slice,a=function(t){return u.call(t)},c=this.document;function s(t){return t&&(t.ownerDocument||t.document||t).documentElement}function l(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}if(c)try{a(c.documentElement.childNodes)[0].nodeType}catch(t){a=function(t){for(var n=t.length,r=new Array(n);n--;)r[n]=t[n];return r}}if(Date.now||(Date.now=function(){return+new Date}),c)try{c.createElement("DIV").style.setProperty("opacity",0,"")}catch(t){var f=this.Element.prototype,h=f.setAttribute,p=f.setAttributeNS,v=this.CSSStyleDeclaration.prototype,d=v.setProperty;f.setAttribute=function(t,n){h.call(this,t,n+"")},f.setAttributeNS=function(t,n,r){p.call(this,t,n,r+"")},v.setProperty=function(t,n,r){d.call(this,t,n+"",r)}}function g(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function y(t){return null===t?NaN:+t}function m(t){return!isNaN(t)}function x(t){return{left:function(n,r,e,o){for(arguments.length<3&&(e=0),arguments.length<4&&(o=n.length);e<o;){var i=e+o>>>1;t(n[i],r)<0?e=i+1:o=i}return e},right:function(n,r,e,o){for(arguments.length<3&&(e=0),arguments.length<4&&(o=n.length);e<o;){var i=e+o>>>1;t(n[i],r)>0?o=i:e=i+1}return e}}}i.ascending=g,i.descending=function(t,n){return n<t?-1:n>t?1:n>=t?0:NaN},i.min=function(t,n){var r,e,o=-1,i=t.length;if(1===arguments.length){for(;++o<i;)if(null!=(e=t[o])&&e>=e){r=e;break}for(;++o<i;)null!=(e=t[o])&&r>e&&(r=e)}else{for(;++o<i;)if(null!=(e=n.call(t,t[o],o))&&e>=e){r=e;break}for(;++o<i;)null!=(e=n.call(t,t[o],o))&&r>e&&(r=e)}return r},i.max=function(t,n){var r,e,o=-1,i=t.length;if(1===arguments.length){for(;++o<i;)if(null!=(e=t[o])&&e>=e){r=e;break}for(;++o<i;)null!=(e=t[o])&&e>r&&(r=e)}else{for(;++o<i;)if(null!=(e=n.call(t,t[o],o))&&e>=e){r=e;break}for(;++o<i;)null!=(e=n.call(t,t[o],o))&&e>r&&(r=e)}return r},i.extent=function(t,n){var r,e,o,i=-1,u=t.length;if(1===arguments.length){for(;++i<u;)if(null!=(e=t[i])&&e>=e){r=o=e;break}for(;++i<u;)null!=(e=t[i])&&(r>e&&(r=e),o<e&&(o=e))}else{for(;++i<u;)if(null!=(e=n.call(t,t[i],i))&&e>=e){r=o=e;break}for(;++i<u;)null!=(e=n.call(t,t[i],i))&&(r>e&&(r=e),o<e&&(o=e))}return[r,o]},i.sum=function(t,n){var r,e=0,o=t.length,i=-1;if(1===arguments.length)for(;++i<o;)m(r=+t[i])&&(e+=r);else for(;++i<o;)m(r=+n.call(t,t[i],i))&&(e+=r);return e},i.mean=function(t,n){var r,e=0,o=t.length,i=-1,u=o;if(1===arguments.length)for(;++i<o;)m(r=y(t[i]))?e+=r:--u;else for(;++i<o;)m(r=y(n.call(t,t[i],i)))?e+=r:--u;if(u)return e/u},i.quantile=function(t,n){var r=(t.length-1)*n+1,e=Math.floor(r),o=+t[e-1],i=r-e;return i?o+i*(t[e]-o):o},i.median=function(t,n){var r,e=[],o=t.length,u=-1;if(1===arguments.length)for(;++u<o;)m(r=y(t[u]))&&e.push(r);else for(;++u<o;)m(r=y(n.call(t,t[u],u)))&&e.push(r);if(e.length)return i.quantile(e.sort(g),.5)},i.variance=function(t,n){var r,e,o=t.length,i=0,u=0,a=-1,c=0;if(1===arguments.length)for(;++a<o;)m(r=y(t[a]))&&(u+=(e=r-i)*(r-(i+=e/++c)));else for(;++a<o;)m(r=y(n.call(t,t[a],a)))&&(u+=(e=r-i)*(r-(i+=e/++c)));if(c>1)return u/(c-1)},i.deviation=function(){var t=i.variance.apply(this,arguments);return t?Math.sqrt(t):t};var b=x(g);function Z(t){return t.length}i.bisectLeft=b.left,i.bisect=i.bisectRight=b.right,i.bisector=function(t){return x(1===t.length?function(n,r){return g(t(n),r)}:t)},i.shuffle=function(t,n,r){(i=arguments.length)<3&&(r=t.length,i<2&&(n=0));for(var e,o,i=r-n;i;)o=Math.random()*i--|0,e=t[i+n],t[i+n]=t[o+n],t[o+n]=e;return t},i.permute=function(t,n){for(var r=n.length,e=new Array(r);r--;)e[r]=t[n[r]];return e},i.pairs=function(t){for(var n=0,r=t.length-1,e=t[0],o=new Array(r<0?0:r);n<r;)o[n]=[e,e=t[++n]];return o},i.transpose=function(t){if(!(o=t.length))return[];for(var n=-1,r=i.min(t,Z),e=new Array(r);++n<r;)for(var o,u=-1,a=e[n]=new Array(o);++u<o;)a[u]=t[u][n];return e},i.zip=function(){return i.transpose(arguments)},i.keys=function(t){var n=[];for(var r in t)n.push(r);return n},i.values=function(t){var n=[];for(var r in t)n.push(t[r]);return n},i.entries=function(t){var n=[];for(var r in t)n.push({key:r,value:t[r]});return n},i.merge=function(t){for(var n,r,e,o=t.length,i=-1,u=0;++i<o;)u+=t[i].length;for(r=new Array(u);--o>=0;)for(n=(e=t[o]).length;--n>=0;)r[--u]=e[n];return r};var M=Math.abs;function _(t){for(var n=1;t*n%1;)n*=10;return n}function w(t,n){for(var r in n)Object.defineProperty(t.prototype,r,{value:n[r],enumerable:!1})}function S(){this._=Object.create(null)}function j(t){return"__proto__"==(t+="")||"\0"===t[0]?"\0"+t:t}function A(t){return"\0"===(t+="")[0]?t.slice(1):t}function k(t){return j(t)in this._}function E(t){return(t=j(t))in this._&&delete this._[t]}function O(){var t=[];for(var n in this._)t.push(A(n));return t}function N(){var t=0;for(var n in this._)++t;return t}function C(){for(var t in this._)return!1;return!0}function z(){this._=Object.create(null)}function T(t){return t}function q(t,n,r){return function(){var e=r.apply(n,arguments);return e===n?t:e}}function P(t,n){if(n in t)return n;n=n.charAt(0).toUpperCase()+n.slice(1);for(var r=0,e=L.length;r<e;++r){var o=L[r]+n;if(o in t)return o}}i.range=function(t,n,r){if(arguments.length<3&&(r=1,arguments.length<2&&(n=t,t=0)),(n-t)/r==1/0)throw new Error("infinite range");var e,o=[],i=_(M(r)),u=-1;if(t*=i,n*=i,(r*=i)<0)for(;(e=t+r*++u)>n;)o.push(e/i);else for(;(e=t+r*++u)<n;)o.push(e/i);return o},i.map=function(t,n){var r=new S;if(t instanceof S)t.forEach((function(t,n){r.set(t,n)}));else if(Array.isArray(t)){var e,o=-1,i=t.length;if(1===arguments.length)for(;++o<i;)r.set(o,t[o]);else for(;++o<i;)r.set(n.call(t,e=t[o],o),e)}else for(var u in t)r.set(u,t[u]);return r},w(S,{has:k,get:function(t){return this._[j(t)]},set:function(t,n){return this._[j(t)]=n},remove:E,keys:O,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:A(n),value:this._[n]});return t},size:N,empty:C,forEach:function(t){for(var n in this._)t.call(this,A(n),this._[n])}}),i.nest=function(){var t,n,r={},e=[],o=[];function u(o,i,a){if(a>=e.length)return n?n.call(r,i):t?i.sort(t):i;for(var c,s,l,f,h=-1,p=i.length,v=e[a++],d=new S;++h<p;)(f=d.get(c=v(s=i[h])))?f.push(s):d.set(c,[s]);return o?(s=o(),l=function(t,n){s.set(t,u(o,n,a))}):(s={},l=function(t,n){s[t]=u(o,n,a)}),d.forEach(l),s}function a(t,n){if(n>=e.length)return t;var r=[],i=o[n++];return t.forEach((function(t,e){r.push({key:t,values:a(e,n)})})),i?r.sort((function(t,n){return i(t.key,n.key)})):r}return r.map=function(t,n){return u(n,t,0)},r.entries=function(t){return a(u(i.map,t,0),0)},r.key=function(t){return e.push(t),r},r.sortKeys=function(t){return o[e.length-1]=t,r},r.sortValues=function(n){return t=n,r},r.rollup=function(t){return n=t,r},r},i.set=function(t){var n=new z;if(t)for(var r=0,e=t.length;r<e;++r)n.add(t[r]);return n},w(z,{has:k,add:function(t){return this._[j(t+="")]=!0,t},remove:E,values:O,size:N,empty:C,forEach:function(t){for(var n in this._)t.call(this,A(n))}}),i.behavior={},i.rebind=function(t,n){for(var r,e=1,o=arguments.length;++e<o;)t[r=arguments[e]]=q(t,n,n[r]);return t};var L=["webkit","ms","moz","Moz","o","O"];function D(){}function R(){}function U(t){var n=[],r=new S;function e(){for(var r,e=n,o=-1,i=e.length;++o<i;)(r=e[o].on)&&r.apply(this,arguments);return t}return e.on=function(e,o){var i,u=r.get(e);return arguments.length<2?u&&u.on:(u&&(u.on=null,n=n.slice(0,i=n.indexOf(u)).concat(n.slice(i+1)),r.remove(e)),o&&n.push(r.set(e,{on:o})),t)},e}function I(){i.event.preventDefault()}function F(){for(var t,n=i.event;t=n.sourceEvent;)n=t;return n}function B(t){for(var n=new R,r=0,e=arguments.length;++r<e;)n[arguments[r]]=U(n);return n.of=function(r,e){return function(o){try{var u=o.sourceEvent=i.event;o.target=t,i.event=o,n[o.type].apply(r,e)}finally{i.event=u}}},n}i.dispatch=function(){for(var t=new R,n=-1,r=arguments.length;++n<r;)t[arguments[n]]=U(t);return t},R.prototype.on=function(t,n){var r=t.indexOf("."),e="";if(r>=0&&(e=t.slice(r+1),t=t.slice(0,r)),t)return arguments.length<2?this[t].on(e):this[t].on(e,n);if(2===arguments.length){if(null==n)for(t in this)this.hasOwnProperty(t)&&this[t].on(e,null);return this}},i.event=null,i.requote=function(t){return t.replace(H,"\\$&")};var H=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,W={}.__proto__?function(t,n){t.__proto__=n}:function(t,n){for(var r in n)t[r]=n[r]};function Y(t){return W(t,J),t}var V=function(t,n){return n.querySelector(t)},$=function(t,n){return n.querySelectorAll(t)},X=function(t,n){var r=t.matches||t[P(t,"matchesSelector")];return X=function(t,n){return r.call(t,n)},X(t,n)};"function"==typeof Sizzle&&(V=function(t,n){return Sizzle(t,n)[0]||null},$=Sizzle,X=Sizzle.matchesSelector),i.selection=function(){return i.select(c.documentElement)};var J=i.selection.prototype=[];function K(t){return"function"==typeof t?t:function(){return V(t,this)}}function G(t){return"function"==typeof t?t:function(){return $(t,this)}}J.select=function(t){var n,r,e,o,i=[];t=K(t);for(var u=-1,a=this.length;++u<a;){i.push(n=[]),n.parentNode=(e=this[u]).parentNode;for(var c=-1,s=e.length;++c<s;)(o=e[c])?(n.push(r=t.call(o,o.__data__,c,u)),r&&"__data__"in o&&(r.__data__=o.__data__)):n.push(null)}return Y(i)},J.selectAll=function(t){var n,r,e=[];t=G(t);for(var o=-1,i=this.length;++o<i;)for(var u=this[o],c=-1,s=u.length;++c<s;)(r=u[c])&&(e.push(n=a(t.call(r,r.__data__,c,o))),n.parentNode=r);return Y(e)};var Q="http://www.w3.org/1999/xhtml",tt={svg:"http://www.w3.org/2000/svg",xhtml:Q,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function nt(t,n){return t=i.ns.qualify(t),null==n?t.local?function(){this.removeAttributeNS(t.space,t.local)}:function(){this.removeAttribute(t)}:"function"==typeof n?t.local?function(){var r=n.apply(this,arguments);null==r?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}:function(){var r=n.apply(this,arguments);null==r?this.removeAttribute(t):this.setAttribute(t,r)}:t.local?function(){this.setAttributeNS(t.space,t.local,n)}:function(){this.setAttribute(t,n)}}function rt(t){return t.trim().replace(/\s+/g," ")}function et(t){return new RegExp("(?:^|\\s+)"+i.requote(t)+"(?:\\s+|$)","g")}function ot(t){return(t+"").trim().split(/^|\s+/)}function it(t,n){var r=(t=ot(t).map(ut)).length;return"function"==typeof n?function(){for(var e=-1,o=n.apply(this,arguments);++e<r;)t[e](this,o)}:function(){for(var e=-1;++e<r;)t[e](this,n)}}function ut(t){var n=et(t);return function(r,e){if(o=r.classList)return e?o.add(t):o.remove(t);var o=r.getAttribute("class")||"";e?(n.lastIndex=0,n.test(o)||r.setAttribute("class",rt(o+" "+t))):r.setAttribute("class",rt(o.replace(n," ")))}}function at(t,n,r){return null==n?function(){this.style.removeProperty(t)}:"function"==typeof n?function(){var e=n.apply(this,arguments);null==e?this.style.removeProperty(t):this.style.setProperty(t,e,r)}:function(){this.style.setProperty(t,n,r)}}function ct(t,n){return null==n?function(){delete this[t]}:"function"==typeof n?function(){var r=n.apply(this,arguments);null==r?delete this[t]:this[t]=r}:function(){this[t]=n}}function st(t){return"function"==typeof t?t:(t=i.ns.qualify(t)).local?function(){return this.ownerDocument.createElementNS(t.space,t.local)}:function(){var n=this.ownerDocument,r=this.namespaceURI;return r===Q&&n.documentElement.namespaceURI===Q?n.createElement(t):n.createElementNS(r,t)}}function lt(){var t=this.parentNode;t&&t.removeChild(this)}function ft(t){return{__data__:t}}function ht(t){return function(){return X(this,t)}}function pt(t){return arguments.length||(t=g),function(n,r){return n&&r?t(n.__data__,r.__data__):!n-!r}}function vt(t,n){for(var r=0,e=t.length;r<e;r++)for(var o,i=t[r],u=0,a=i.length;u<a;u++)(o=i[u])&&n(o,u,r);return t}function dt(t){return W(t,gt),t}i.ns={prefix:tt,qualify:function(t){var n=t.indexOf(":"),r=t;return n>=0&&"xmlns"!==(r=t.slice(0,n))&&(t=t.slice(n+1)),tt.hasOwnProperty(r)?{space:tt[r],local:t}:t}},J.attr=function(t,n){if(arguments.length<2){if("string"==typeof t){var r=this.node();return(t=i.ns.qualify(t)).local?r.getAttributeNS(t.space,t.local):r.getAttribute(t)}for(n in t)this.each(nt(n,t[n]));return this}return this.each(nt(t,n))},J.classed=function(t,n){if(arguments.length<2){if("string"==typeof t){var r=this.node(),e=(t=ot(t)).length,o=-1;if(n=r.classList){for(;++o<e;)if(!n.contains(t[o]))return!1}else for(n=r.getAttribute("class");++o<e;)if(!et(t[o]).test(n))return!1;return!0}for(n in t)this.each(it(n,t[n]));return this}return this.each(it(t,n))},J.style=function(t,n,r){var e=arguments.length;if(e<3){if("string"!=typeof t){for(r in e<2&&(n=""),t)this.each(at(r,t[r],n));return this}if(e<2){var o=this.node();return l(o).getComputedStyle(o,null).getPropertyValue(t)}r=""}return this.each(at(t,n,r))},J.property=function(t,n){if(arguments.length<2){if("string"==typeof t)return this.node()[t];for(n in t)this.each(ct(n,t[n]));return this}return this.each(ct(t,n))},J.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},J.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},J.append=function(t){return t=st(t),this.select((function(){return this.appendChild(t.apply(this,arguments))}))},J.insert=function(t,n){return t=st(t),n=K(n),this.select((function(){return this.insertBefore(t.apply(this,arguments),n.apply(this,arguments)||null)}))},J.remove=function(){return this.each(lt)},J.data=function(t,n){var r,e,o=-1,i=this.length;if(!arguments.length){for(t=new Array(i=(r=this[0]).length);++o<i;)(e=r[o])&&(t[o]=e.__data__);return t}function u(t,r){var e,o,i,u=t.length,l=r.length,f=Math.min(u,l),h=new Array(l),p=new Array(l),v=new Array(u);if(n){var d,g=new S,y=new Array(u);for(e=-1;++e<u;)(o=t[e])&&(g.has(d=n.call(o,o.__data__,e))?v[e]=o:g.set(d,o),y[e]=d);for(e=-1;++e<l;)(o=g.get(d=n.call(r,i=r[e],e)))?!0!==o&&(h[e]=o,o.__data__=i):p[e]=ft(i),g.set(d,!0);for(e=-1;++e<u;)e in y&&!0!==g.get(y[e])&&(v[e]=t[e])}else{for(e=-1;++e<f;)o=t[e],i=r[e],o?(o.__data__=i,h[e]=o):p[e]=ft(i);for(;e<l;++e)p[e]=ft(r[e]);for(;e<u;++e)v[e]=t[e]}p.update=h,p.parentNode=h.parentNode=v.parentNode=t.parentNode,a.push(p),c.push(h),s.push(v)}var a=dt([]),c=Y([]),s=Y([]);if("function"==typeof t)for(;++o<i;)u(r=this[o],t.call(r,r.parentNode.__data__,o));else for(;++o<i;)u(r=this[o],t);return c.enter=function(){return a},c.exit=function(){return s},c},J.datum=function(t){return arguments.length?this.property("__data__",t):this.property("__data__")},J.filter=function(t){var n,r,e,o=[];"function"!=typeof t&&(t=ht(t));for(var i=0,u=this.length;i<u;i++){o.push(n=[]),n.parentNode=(r=this[i]).parentNode;for(var a=0,c=r.length;a<c;a++)(e=r[a])&&t.call(e,e.__data__,a,i)&&n.push(e)}return Y(o)},J.order=function(){for(var t=-1,n=this.length;++t<n;)for(var r,e=this[t],o=e.length-1,i=e[o];--o>=0;)(r=e[o])&&(i&&i!==r.nextSibling&&i.parentNode.insertBefore(r,i),i=r);return this},J.sort=function(t){t=pt.apply(this,arguments);for(var n=-1,r=this.length;++n<r;)this[n].sort(t);return this.order()},J.each=function(t){return vt(this,(function(n,r,e){t.call(n,n.__data__,r,e)}))},J.call=function(t){var n=a(arguments);return t.apply(n[0]=this,n),this},J.empty=function(){return!this.node()},J.node=function(){for(var t=0,n=this.length;t<n;t++)for(var r=this[t],e=0,o=r.length;e<o;e++){var i=r[e];if(i)return i}return null},J.size=function(){var t=0;return vt(this,(function(){++t})),t};var gt=[];function yt(t){var n,r;return function(e,o,i){var u,a=t[i].update,c=a.length;for(i!=r&&(r=i,n=0),o>=n&&(n=o+1);!(u=a[n])&&++n<c;);return u}}function mt(t,n,r){var e="__on"+t,o=t.indexOf("."),u=bt;o>0&&(t=t.slice(0,o));var c=xt.get(t);function s(){var n=this[e];n&&(this.removeEventListener(t,n,n.$),delete this[e])}return c&&(t=c,u=Zt),o?n?function(){var o=u(n,a(arguments));s.call(this),this.addEventListener(t,this[e]=o,o.$=r),o._=n}:s:n?D:function(){var n,r=new RegExp("^__on([^.]+)"+i.requote(t)+"$");for(var e in this)if(n=e.match(r)){var o=this[e];this.removeEventListener(n[1],o,o.$),delete this[e]}}}i.selection.enter=dt,i.selection.enter.prototype=gt,gt.append=J.append,gt.empty=J.empty,gt.node=J.node,gt.call=J.call,gt.size=J.size,gt.select=function(t){for(var n,r,e,o,i,u=[],a=-1,c=this.length;++a<c;){e=(o=this[a]).update,u.push(n=[]),n.parentNode=o.parentNode;for(var s=-1,l=o.length;++s<l;)(i=o[s])?(n.push(e[s]=r=t.call(o.parentNode,i.__data__,s,a)),r.__data__=i.__data__):n.push(null)}return Y(u)},gt.insert=function(t,n){return arguments.length<2&&(n=yt(this)),J.insert.call(this,t,n)},i.select=function(t){var n;return"string"==typeof t?(n=[V(t,c)]).parentNode=c.documentElement:(n=[t]).parentNode=s(t),Y([n])},i.selectAll=function(t){var n;return"string"==typeof t?(n=a($(t,c))).parentNode=c.documentElement:(n=a(t)).parentNode=null,Y([n])},J.on=function(t,n,r){var e=arguments.length;if(e<3){if("string"!=typeof t){for(r in e<2&&(n=!1),t)this.each(mt(r,t[r],n));return this}if(e<2)return(e=this.node()["__on"+t])&&e._;r=!1}return this.each(mt(t,n,r))};var xt=i.map({mouseenter:"mouseover",mouseleave:"mouseout"});function bt(t,n){return function(r){var e=i.event;i.event=r,n[0]=this.__data__;try{t.apply(this,n)}finally{i.event=e}}}function Zt(t,n){var r=bt(t,n);return function(t){var n=this,e=t.relatedTarget;e&&(e===n||8&e.compareDocumentPosition(n))||r.call(n,t)}}c&&xt.forEach((function(t){"on"+t in c&&xt.remove(t)}));var Mt,_t=0;function wt(t){var n=".dragsuppress-"+ ++_t,r="click"+n,e=i.select(l(t)).on("touchmove"+n,I).on("dragstart"+n,I).on("selectstart"+n,I);if(null==Mt&&(Mt=!("onselectstart"in t)&&P(t.style,"userSelect")),Mt){var o=s(t).style,u=o[Mt];o[Mt]="none"}return function(t){if(e.on(n,null),Mt&&(o[Mt]=u),t){var i=function(){e.on(r,null)};e.on(r,(function(){I(),i()}),!0),setTimeout(i,0)}}}i.mouse=function(t){return jt(t,F())};var St=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function jt(t,n){n.changedTouches&&(n=n.changedTouches[0]);var r=t.ownerSVGElement||t;if(r.createSVGPoint){var e=r.createSVGPoint();if(St<0){var o=l(t);if(o.scrollX||o.scrollY){var u=(r=i.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important"))[0][0].getScreenCTM();St=!(u.f||u.e),r.remove()}}return St?(e.x=n.pageX,e.y=n.pageY):(e.x=n.clientX,e.y=n.clientY),[(e=e.matrixTransform(t.getScreenCTM().inverse())).x,e.y]}var a=t.getBoundingClientRect();return[n.clientX-a.left-t.clientLeft,n.clientY-a.top-t.clientTop]}function At(){return i.event.changedTouches[0].identifier}i.touch=function(t,n,r){if(arguments.length<3&&(r=n,n=F().changedTouches),n)for(var e,o=0,i=n.length;o<i;++o)if((e=n[o]).identifier===r)return jt(t,e)},i.behavior.drag=function(){var t=B(o,"drag","dragstart","dragend"),n=null,r=u(D,i.mouse,l,"mousemove","mouseup"),e=u(At,i.touch,T,"touchmove","touchend");function o(){this.on("mousedown.drag",r).on("touchstart.drag",e)}function u(r,e,o,u,a){return function(){var c,s=this,l=i.event.target.correspondingElement||i.event.target,f=s.parentNode,h=t.of(s,arguments),p=0,v=r(),d=".drag"+(null==v?"":"-"+v),g=i.select(o(l)).on(u+d,x).on(a+d,b),y=wt(l),m=e(f,v);function x(){var t,n,r=e(f,v);r&&(t=r[0]-m[0],n=r[1]-m[1],p|=t|n,m=r,h({type:"drag",x:r[0]+c[0],y:r[1]+c[1],dx:t,dy:n}))}function b(){e(f,v)&&(g.on(u+d,null).on(a+d,null),y(p),h({type:"dragend"}))}c=n?[(c=n.apply(s,arguments)).x-m[0],c.y-m[1]]:[0,0],h({type:"dragstart"})}}return o.origin=function(t){return arguments.length?(n=t,o):n},i.rebind(o,t,"on")},i.touches=function(t,n){return arguments.length<2&&(n=F().touches),n?a(n).map((function(n){var r=jt(t,n);return r.identifier=n.identifier,r})):[]};var kt=1e-6,Et=kt*kt,Ot=Math.PI,Nt=2*Ot,Ct=Nt-kt,zt=Ot/2,Tt=Ot/180,qt=180/Ot;function Pt(t){return t>0?1:t<0?-1:0}function Lt(t,n,r){return(n[0]-t[0])*(r[1]-t[1])-(n[1]-t[1])*(r[0]-t[0])}function Dt(t){return t>1?0:t<-1?Ot:Math.acos(t)}function Rt(t){return t>1?zt:t<-1?-zt:Math.asin(t)}function Ut(t){return((t=Math.exp(t))+1/t)/2}function It(t){return(t=Math.sin(t/2))*t}var Ft=Math.SQRT2;i.interpolateZoom=function(t,n){var r,e,o=t[0],i=t[1],u=t[2],a=n[0],c=n[1],s=n[2],l=a-o,f=c-i,h=l*l+f*f;if(h<Et)e=Math.log(s/u)/Ft,r=function(t){return[o+t*l,i+t*f,u*Math.exp(Ft*t*e)]};else{var p=Math.sqrt(h),v=(s*s-u*u+4*h)/(2*u*2*p),d=(s*s-u*u-4*h)/(2*s*2*p),g=Math.log(Math.sqrt(v*v+1)-v),y=Math.log(Math.sqrt(d*d+1)-d);e=(y-g)/Ft,r=function(t){var n,r=t*e,a=Ut(g),c=u/(2*p)*(a*(n=Ft*r+g,((n=Math.exp(2*n))-1)/(n+1))-function(t){return((t=Math.exp(t))-1/t)/2}(g));return[o+c*l,i+c*f,u*a/Ut(Ft*r+g)]}}return r.duration=1e3*e,r},i.behavior.zoom=function(){var t,n,r,e,o,u,a,s,f,h={x:0,y:0,k:1},p=[960,500],v=Wt,d=250,g=0,y="mousedown.zoom",m="mousemove.zoom",x="mouseup.zoom",b="touchstart.zoom",Z=B(M,"zoomstart","zoom","zoomend");function M(t){t.on(y,N).on(Ht+".zoom",z).on("dblclick.zoom",T).on(b,C)}function _(t){return[(t[0]-h.x)/h.k,(t[1]-h.y)/h.k]}function w(t){h.k=Math.max(v[0],Math.min(v[1],t))}function S(t,n){n=function(t){return[t[0]*h.k+h.x,t[1]*h.k+h.y]}(n),h.x+=t[0]-n[0],h.y+=t[1]-n[1]}function j(t,r,e,o){t.__chart__={x:h.x,y:h.y,k:h.k},w(Math.pow(2,o)),S(n=r,e),t=i.select(t),d>0&&(t=t.transition().duration(d)),t.call(M.event)}function A(){a&&a.domain(u.range().map((function(t){return(t-h.x)/h.k})).map(u.invert)),f&&f.domain(s.range().map((function(t){return(t-h.y)/h.k})).map(s.invert))}function k(t){g++||t({type:"zoomstart"})}function E(t){A(),t({type:"zoom",scale:h.k,translate:[h.x,h.y]})}function O(t){--g||(t({type:"zoomend"}),n=null)}function N(){var t=this,n=Z.of(t,arguments),r=0,e=i.select(l(t)).on(m,a).on(x,c),o=_(i.mouse(t)),u=wt(t);function a(){r=1,S(i.mouse(t),o),E(n)}function c(){e.on(m,null).on(x,null),u(r),O(n)}qa.call(t),k(n)}function C(){var t,n=this,r=Z.of(n,arguments),e={},u=0,a=".zoom-"+i.event.changedTouches[0].identifier,c="touchmove"+a,s="touchend"+a,l=[],f=i.select(n),p=wt(n);function v(){var r=i.touches(n);return t=h.k,r.forEach((function(t){t.identifier in e&&(e[t.identifier]=_(t))})),r}function d(){var t=i.event.target;i.select(t).on(c,g).on(s,m),l.push(t);for(var r=i.event.changedTouches,a=0,f=r.length;a<f;++a)e[r[a].identifier]=null;var p=v(),d=Date.now();if(1===p.length){if(d-o<500){var y=p[0];j(n,y,e[y.identifier],Math.floor(Math.log(h.k)/Math.LN2)+1),I()}o=d}else if(p.length>1){y=p[0];var x=p[1],b=y[0]-x[0],Z=y[1]-x[1];u=b*b+Z*Z}}function g(){var a,c,s,l,f=i.touches(n);qa.call(n);for(var h=0,p=f.length;h<p;++h,l=null)if(s=f[h],l=e[s.identifier]){if(c)break;a=s,c=l}if(l){var v=(v=s[0]-a[0])*v+(v=s[1]-a[1])*v,d=u&&Math.sqrt(v/u);a=[(a[0]+s[0])/2,(a[1]+s[1])/2],c=[(c[0]+l[0])/2,(c[1]+l[1])/2],w(d*t)}o=null,S(a,c),E(r)}function m(){if(i.event.touches.length){for(var t=i.event.changedTouches,n=0,o=t.length;n<o;++n)delete e[t[n].identifier];for(var u in e)return void v()}i.selectAll(l).on(a,null),f.on(y,N).on(b,C),p(),O(r)}d(),k(r),f.on(y,null).on(b,d)}function z(){var o=Z.of(this,arguments);e?clearTimeout(e):(qa.call(this),t=_(n=r||i.mouse(this)),k(o)),e=setTimeout((function(){e=null,O(o)}),50),I(),w(Math.pow(2,.002*Bt())*h.k),S(n,t),E(o)}function T(){var t=i.mouse(this),n=Math.log(h.k)/Math.LN2;j(this,t,_(t),i.event.shiftKey?Math.ceil(n)-1:Math.floor(n)+1)}return Ht||(Ht="onwheel"in c?(Bt=function(){return-i.event.deltaY*(i.event.deltaMode?120:1)},"wheel"):"onmousewheel"in c?(Bt=function(){return i.event.wheelDelta},"mousewheel"):(Bt=function(){return-i.event.detail},"MozMousePixelScroll")),M.event=function(t){t.each((function(){var t=Z.of(this,arguments),r=h;Da?i.select(this).transition().each("start.zoom",(function(){h=this.__chart__||{x:0,y:0,k:1},k(t)})).tween("zoom:zoom",(function(){var e=p[0],o=p[1],u=n?n[0]:e/2,a=n?n[1]:o/2,c=i.interpolateZoom([(u-h.x)/h.k,(a-h.y)/h.k,e/h.k],[(u-r.x)/r.k,(a-r.y)/r.k,e/r.k]);return function(n){var r=c(n),o=e/r[2];this.__chart__=h={x:u-r[0]*o,y:a-r[1]*o,k:o},E(t)}})).each("interrupt.zoom",(function(){O(t)})).each("end.zoom",(function(){O(t)})):(this.__chart__=h,k(t),E(t),O(t))}))},M.translate=function(t){return arguments.length?(h={x:+t[0],y:+t[1],k:h.k},A(),M):[h.x,h.y]},M.scale=function(t){return arguments.length?(h={x:h.x,y:h.y,k:null},w(+t),A(),M):h.k},M.scaleExtent=function(t){return arguments.length?(v=null==t?Wt:[+t[0],+t[1]],M):v},M.center=function(t){return arguments.length?(r=t&&[+t[0],+t[1]],M):r},M.size=function(t){return arguments.length?(p=t&&[+t[0],+t[1]],M):p},M.duration=function(t){return arguments.length?(d=+t,M):d},M.x=function(t){return arguments.length?(a=t,u=t.copy(),h={x:0,y:0,k:1},M):a},M.y=function(t){return arguments.length?(f=t,s=t.copy(),h={x:0,y:0,k:1},M):f},i.rebind(M,Z,"on")};var Bt,Ht,Wt=[0,1/0];function Yt(){}function Vt(t,n,r){return this instanceof Vt?(this.h=+t,this.s=+n,void(this.l=+r)):arguments.length<2?t instanceof Vt?new Vt(t.h,t.s,t.l):dn(""+t,gn,Vt):new Vt(t,n,r)}i.color=Yt,Yt.prototype.toString=function(){return this.rgb()+""},i.hsl=Vt;var $t=Vt.prototype=new Yt;function Xt(t,n,r){var e,o;function i(t){return Math.round(255*function(t){return t>360?t-=360:t<0&&(t+=360),t<60?e+(o-e)*t/60:t<180?o:t<240?e+(o-e)*(240-t)/60:e}(t))}return t=isNaN(t)?0:(t%=360)<0?t+360:t,n=isNaN(n)||n<0?0:n>1?1:n,e=2*(r=r<0?0:r>1?1:r)-(o=r<=.5?r*(1+n):r+n-r*n),new ln(i(t+120),i(t),i(t-120))}function Jt(t,n,r){return this instanceof Jt?(this.h=+t,this.c=+n,void(this.l=+r)):arguments.length<2?t instanceof Jt?new Jt(t.h,t.c,t.l):un(t instanceof Qt?t.l:(t=yn((t=i.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new Jt(t,n,r)}$t.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new Vt(this.h,this.s,this.l/t)},$t.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new Vt(this.h,this.s,t*this.l)},$t.rgb=function(){return Xt(this.h,this.s,this.l)},i.hcl=Jt;var Kt=Jt.prototype=new Yt;function Gt(t,n,r){return isNaN(t)&&(t=0),isNaN(n)&&(n=0),new Qt(r,Math.cos(t*=Tt)*n,Math.sin(t)*n)}function Qt(t,n,r){return this instanceof Qt?(this.l=+t,this.a=+n,void(this.b=+r)):arguments.length<2?t instanceof Qt?new Qt(t.l,t.a,t.b):t instanceof Jt?Gt(t.h,t.c,t.l):yn((t=ln(t)).r,t.g,t.b):new Qt(t,n,r)}Kt.brighter=function(t){return new Jt(this.h,this.c,Math.min(100,this.l+tn*(arguments.length?t:1)))},Kt.darker=function(t){return new Jt(this.h,this.c,Math.max(0,this.l-tn*(arguments.length?t:1)))},Kt.rgb=function(){return Gt(this.h,this.c,this.l).rgb()},i.lab=Qt;var tn=18,nn=.95047,rn=1.08883,en=Qt.prototype=new Yt;function on(t,n,r){var e=(t+16)/116,o=e+n/500,i=e-r/200;return new ln(sn(3.2404542*(o=an(o)*nn)-1.5371385*(e=1*an(e))-.4985314*(i=an(i)*rn)),sn(-.969266*o+1.8760108*e+.041556*i),sn(.0556434*o-.2040259*e+1.0572252*i))}function un(t,n,r){return t>0?new Jt(Math.atan2(r,n)*qt,Math.sqrt(n*n+r*r),t):new Jt(NaN,NaN,t)}function an(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function cn(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function sn(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function ln(t,n,r){return this instanceof ln?(this.r=~~t,this.g=~~n,void(this.b=~~r)):arguments.length<2?t instanceof ln?new ln(t.r,t.g,t.b):dn(""+t,ln,Xt):new ln(t,n,r)}function fn(t){return new ln(t>>16,t>>8&255,255&t)}function hn(t){return fn(t)+""}en.brighter=function(t){return new Qt(Math.min(100,this.l+tn*(arguments.length?t:1)),this.a,this.b)},en.darker=function(t){return new Qt(Math.max(0,this.l-tn*(arguments.length?t:1)),this.a,this.b)},en.rgb=function(){return on(this.l,this.a,this.b)},i.rgb=ln;var pn=ln.prototype=new Yt;function vn(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function dn(t,n,r){var e,o,i,u=0,a=0,c=0;if(e=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(o=e[2].split(","),e[1]){case"hsl":return r(parseFloat(o[0]),parseFloat(o[1])/100,parseFloat(o[2])/100);case"rgb":return n(xn(o[0]),xn(o[1]),xn(o[2]))}return(i=bn.get(t))?n(i.r,i.g,i.b):(null==t||"#"!==t.charAt(0)||isNaN(i=parseInt(t.slice(1),16))||(4===t.length?(u=(3840&i)>>4,u|=u>>4,a=240&i,a|=a>>4,c=15&i,c|=c<<4):7===t.length&&(u=(16711680&i)>>16,a=(65280&i)>>8,c=255&i)),n(u,a,c))}function gn(t,n,r){var e,o,i=Math.min(t/=255,n/=255,r/=255),u=Math.max(t,n,r),a=u-i,c=(u+i)/2;return a?(o=c<.5?a/(u+i):a/(2-u-i),e=t==u?(n-r)/a+(n<r?6:0):n==u?(r-t)/a+2:(t-n)/a+4,e*=60):(e=NaN,o=c>0&&c<1?0:e),new Vt(e,o,c)}function yn(t,n,r){var e=cn((.4124564*(t=mn(t))+.3575761*(n=mn(n))+.1804375*(r=mn(r)))/nn),o=cn((.2126729*t+.7151522*n+.072175*r)/1);return Qt(116*o-16,500*(e-o),200*(o-cn((.0193339*t+.119192*n+.9503041*r)/rn)))}function mn(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function xn(t){var n=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*n):n}pn.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var n=this.r,r=this.g,e=this.b,o=30;return n||r||e?(n&&n<o&&(n=o),r&&r<o&&(r=o),e&&e<o&&(e=o),new ln(Math.min(255,n/t),Math.min(255,r/t),Math.min(255,e/t))):new ln(o,o,o)},pn.darker=function(t){return new ln((t=Math.pow(.7,arguments.length?t:1))*this.r,t*this.g,t*this.b)},pn.hsl=function(){return gn(this.r,this.g,this.b)},pn.toString=function(){return"#"+vn(this.r)+vn(this.g)+vn(this.b)};var bn=i.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 Zn(t){return"function"==typeof t?t:function(){return t}}function Mn(t){return function(n,r,e){return 2===arguments.length&&"function"==typeof r&&(e=r,r=null),_n(n,r,t,e)}}function _n(t,n,r,e){var o={},u=i.dispatch("beforesend","progress","load","error"),c={},s=new XMLHttpRequest,l=null;function f(){var t,n=s.status;if(!n&&function(t){var n=t.responseType;return n&&"text"!==n?t.response:t.responseText}(s)||n>=200&&n<300||304===n){try{t=r.call(o,s)}catch(t){return void u.error.call(o,t)}u.load.call(o,t)}else u.error.call(o,s)}return this.XDomainRequest&&!("withCredentials"in s)&&/^(http(s)?:)?\/\//.test(t)&&(s=new XDomainRequest),"onload"in s?s.onload=s.onerror=f:s.onreadystatechange=function(){s.readyState>3&&f()},s.onprogress=function(t){var n=i.event;i.event=t;try{u.progress.call(o,s)}finally{i.event=n}},o.header=function(t,n){return t=(t+"").toLowerCase(),arguments.length<2?c[t]:(null==n?delete c[t]:c[t]=n+"",o)},o.mimeType=function(t){return arguments.length?(n=null==t?null:t+"",o):n},o.responseType=function(t){return arguments.length?(l=t,o):l},o.response=function(t){return r=t,o},["get","post"].forEach((function(t){o[t]=function(){return o.send.apply(o,[t].concat(a(arguments)))}})),o.send=function(r,e,i){if(2===arguments.length&&"function"==typeof e&&(i=e,e=null),s.open(r,t,!0),null==n||"accept"in c||(c.accept=n+",*/*"),s.setRequestHeader)for(var a in c)s.setRequestHeader(a,c[a]);return null!=n&&s.overrideMimeType&&s.overrideMimeType(n),null!=l&&(s.responseType=l),null!=i&&o.on("error",i).on("load",(function(t){i(null,t)})),u.beforesend.call(o,s),s.send(null==e?null:e),o},o.abort=function(){return s.abort(),o},i.rebind(o,u,"on"),null==e?o:o.get(function(t){return 1===t.length?function(n,r){t(null==n?r:null)}:t}(e))}bn.forEach((function(t,n){bn.set(t,fn(n))})),i.functor=Zn,i.xhr=Mn(T),i.dsv=function(t,n){var r=new RegExp('["'+t+"\n]"),e=t.charCodeAt(0);function o(t,r,e){arguments.length<3&&(e=r,r=null);var o=_n(t,n,null==r?i:u(r),e);return o.row=function(t){return arguments.length?o.response(null==(r=t)?i:u(t)):r},o}function i(t){return o.parse(t.responseText)}function u(t){return function(n){return o.parse(n.responseText,t)}}function a(n){return n.map(c).join(t)}function c(t){return r.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}return o.parse=function(t,n){var r;return o.parseRows(t,(function(t,e){if(r)return r(t,e-1);var o=new Function("d","return {"+t.map((function(t,n){return JSON.stringify(t)+": d["+n+"]"})).join(",")+"}");r=n?function(t,r){return n(o(t),r)}:o}))},o.parseRows=function(t,n){var r,o,i={},u={},a=[],c=t.length,s=0,l=0;function f(){if(s>=c)return u;if(o)return o=!1,i;var n=s;if(34===t.charCodeAt(n)){for(var r=n;r++<c;)if(34===t.charCodeAt(r)){if(34!==t.charCodeAt(r+1))break;++r}return s=r+2,13===(a=t.charCodeAt(r+1))?(o=!0,10===t.charCodeAt(r+2)&&++s):10===a&&(o=!0),t.slice(n+1,r).replace(/""/g,'"')}for(;s<c;){var a,l=1;if(10===(a=t.charCodeAt(s++)))o=!0;else if(13===a)o=!0,10===t.charCodeAt(s)&&(++s,++l);else if(a!==e)continue;return t.slice(n,s-l)}return t.slice(n)}for(;(r=f())!==u;){for(var h=[];r!==i&&r!==u;)h.push(r),r=f();n&&null==(h=n(h,l++))||a.push(h)}return a},o.format=function(n){if(Array.isArray(n[0]))return o.formatRows(n);var r=new z,e=[];return n.forEach((function(t){for(var n in t)r.has(n)||e.push(r.add(n))})),[e.map(c).join(t)].concat(n.map((function(n){return e.map((function(t){return c(n[t])})).join(t)}))).join("\n")},o.formatRows=function(t){return t.map(a).join("\n")},o},i.csv=i.dsv(",","text/csv"),i.tsv=i.dsv("\t","text/tab-separated-values");var wn,Sn,jn,An,kn=this[P(this,"requestAnimationFrame")]||function(t){setTimeout(t,17)};function En(t,n,r){var e=arguments.length;e<2&&(n=0),e<3&&(r=Date.now());var o=r+n,i={c:t,t:o,n:null};return Sn?Sn.n=i:wn=i,Sn=i,jn||(An=clearTimeout(An),jn=1,kn(On)),i}function On(){var t=Nn(),n=Cn()-t;n>24?(isFinite(n)&&(clearTimeout(An),An=setTimeout(On,n)),jn=0):(jn=1,kn(On))}function Nn(){for(var t=Date.now(),n=wn;n;)t>=n.t&&n.c(t-n.t)&&(n.c=null),n=n.n;return t}function Cn(){for(var t,n=wn,r=1/0;n;)n.c?(n.t<r&&(r=n.t),n=(t=n).n):n=t?t.n=n.n:wn=n.n;return Sn=t,r}function zn(t,n){return n-(t?Math.ceil(Math.log(t)/Math.LN10):1)}i.timer=function(){En.apply(this,arguments)},i.timer.flush=function(){Nn(),Cn()},i.round=function(t,n){return n?Math.round(t*(n=Math.pow(10,n)))/n:Math.round(t)};var Tn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map((function(t,n){var r=Math.pow(10,3*M(8-n));return{scale:n>8?function(t){return t/r}:function(t){return t*r},symbol:t}}));function qn(t){var n=t.decimal,r=t.thousands,e=t.grouping,o=t.currency,u=e&&r?function(t,n){for(var o=t.length,i=[],u=0,a=e[0],c=0;o>0&&a>0&&(c+a+1>n&&(a=Math.max(1,n-c)),i.push(t.substring(o-=a,o+a)),!((c+=a+1)>n));)a=e[u=(u+1)%e.length];return i.reverse().join(r)}:T;return function(t){var r=Pn.exec(t),e=r[1]||" ",a=r[2]||">",c=r[3]||"-",s=r[4]||"",l=r[5],f=+r[6],h=r[7],p=r[8],v=r[9],d=1,g="",y="",m=!1,x=!0;switch(p&&(p=+p.substring(1)),(l||"0"===e&&"="===a)&&(l=e="0",a="="),v){case"n":h=!0,v="g";break;case"%":d=100,y="%",v="f";break;case"p":d=100,y="%",v="r";break;case"b":case"o":case"x":case"X":"#"===s&&(g="0"+v.toLowerCase());case"c":x=!1;case"d":m=!0,p=0;break;case"s":d=-1,v="r"}"$"===s&&(g=o[0],y=o[1]),"r"!=v||p||(v="g"),null!=p&&("g"==v?p=Math.max(1,Math.min(21,p)):"e"!=v&&"f"!=v||(p=Math.max(0,Math.min(20,p)))),v=Ln.get(v)||Dn;var b=l&&h;return function(t){var r=y;if(m&&t%1)return"";var o=t<0||0===t&&1/t<0?(t=-t,"-"):"-"===c?"":c;if(d<0){var s=i.formatPrefix(t,p);t=s.scale(t),r=s.symbol+y}else t*=d;var Z,M,_=(t=v(t,p)).lastIndexOf(".");if(_<0){var w=x?t.lastIndexOf("e"):-1;w<0?(Z=t,M=""):(Z=t.substring(0,w),M=t.substring(w))}else Z=t.substring(0,_),M=n+t.substring(_+1);!l&&h&&(Z=u(Z,1/0));var S=g.length+Z.length+M.length+(b?0:o.length),j=S<f?new Array(S=f-S+1).join(e):"";return b&&(Z=u(j+Z,j.length?f-M.length:1/0)),o+=g,t=Z+M,("<"===a?o+t+j:">"===a?j+o+t:"^"===a?j.substring(0,S>>=1)+o+t+j.substring(S):o+(b?t:j+t))+r}}}i.formatPrefix=function(t,n){var r=0;return(t=+t)&&(t<0&&(t*=-1),n&&(t=i.round(t,zn(t,n))),r=1+Math.floor(1e-12+Math.log(t)/Math.LN10),r=Math.max(-24,Math.min(24,3*Math.floor((r-1)/3)))),Tn[8+r/3]};var Pn=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Ln=i.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=i.round(t,zn(t,n))).toFixed(Math.max(0,Math.min(20,zn(t*(1+1e-15),n))))}});function Dn(t){return t+""}var Rn=i.time={},Un=Date;function In(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}In.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(){Fn.setUTCDate.apply(this._,arguments)},setDay:function(){Fn.setUTCDay.apply(this._,arguments)},setFullYear:function(){Fn.setUTCFullYear.apply(this._,arguments)},setHours:function(){Fn.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Fn.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Fn.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Fn.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Fn.setUTCSeconds.apply(this._,arguments)},setTime:function(){Fn.setTime.apply(this._,arguments)}};var Fn=Date.prototype;function Bn(t,n,r){function e(n){var r=t(n),e=i(r,1);return n-r<e-n?r:e}function o(r){return n(r=t(new Un(r-1)),1),r}function i(t,r){return n(t=new Un(+t),r),t}function u(t,e,i){var u=o(t),a=[];if(i>1)for(;u<e;)r(u)%i||a.push(new Date(+u)),n(u,1);else for(;u<e;)a.push(new Date(+u)),n(u,1);return a}t.floor=t,t.round=e,t.ceil=o,t.offset=i,t.range=u;var a=t.utc=Hn(t);return a.floor=a,a.round=Hn(e),a.ceil=Hn(o),a.offset=Hn(i),a.range=function(t,n,r){try{Un=In;var e=new In;return e._=t,u(e,n,r)}finally{Un=Date}},t}function Hn(t){return function(n,r){try{Un=In;var e=new In;return e._=n,t(e,r)._}finally{Un=Date}}}function Wn(t){var n=t.dateTime,r=t.date,e=t.time,o=t.periods,u=t.days,a=t.shortDays,c=t.months,s=t.shortMonths;function l(t){var n=t.length;function r(r){for(var e,o,i,u=[],a=-1,c=0;++a<n;)37===t.charCodeAt(a)&&(u.push(t.slice(c,a)),null!=(o=Yn[e=t.charAt(++a)])&&(e=t.charAt(++a)),(i=Z[e])&&(e=i(r,null==o?"e"===e?" ":"0":o)),u.push(e),c=a+1);return u.push(t.slice(c,a)),u.join("")}return r.parse=function(n){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(f(r,t,n,0)!=n.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var e=null!=r.Z&&Un!==In,o=new(e?In:Un);return"j"in r?o.setFullYear(r.y,0,r.j):"W"in r||"U"in r?("w"in r||(r.w="W"in r?1:0),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),e?o._:o},r.toString=function(){return t},r}function f(t,n,r,e){for(var o,i,u,a=0,c=n.length,s=r.length;a<c;){if(e>=s)return-1;if(37===(o=n.charCodeAt(a++))){if(u=n.charAt(a++),!(i=M[u in Yn?n.charAt(a++):u])||(e=i(t,r,e))<0)return-1}else if(o!=r.charCodeAt(e++))return-1}return e}l.utc=function(t){var n=l(t);function r(t){try{var r=new(Un=In);return r._=t,n(r)}finally{Un=Date}}return r.parse=function(t){try{Un=In;var r=n.parse(t);return r&&r._}finally{Un=Date}},r.toString=n.toString,r},l.multi=l.utc.multi=pr;var h=i.map(),p=Jn(u),v=Kn(u),d=Jn(a),g=Kn(a),y=Jn(c),m=Kn(c),x=Jn(s),b=Kn(s);o.forEach((function(t,n){h.set(t.toLowerCase(),n)}));var Z={a:function(t){return a[t.getDay()]},A:function(t){return u[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return c[t.getMonth()]},c:l(n),d:function(t,n){return Xn(t.getDate(),n,2)},e:function(t,n){return Xn(t.getDate(),n,2)},H:function(t,n){return Xn(t.getHours(),n,2)},I:function(t,n){return Xn(t.getHours()%12||12,n,2)},j:function(t,n){return Xn(1+Rn.dayOfYear(t),n,3)},L:function(t,n){return Xn(t.getMilliseconds(),n,3)},m:function(t,n){return Xn(t.getMonth()+1,n,2)},M:function(t,n){return Xn(t.getMinutes(),n,2)},p:function(t){return o[+(t.getHours()>=12)]},S:function(t,n){return Xn(t.getSeconds(),n,2)},U:function(t,n){return Xn(Rn.sundayOfYear(t),n,2)},w:function(t){return t.getDay()},W:function(t,n){return Xn(Rn.mondayOfYear(t),n,2)},x:l(r),X:l(e),y:function(t,n){return Xn(t.getFullYear()%100,n,2)},Y:function(t,n){return Xn(t.getFullYear()%1e4,n,4)},Z:fr,"%":function(){return"%"}},M={a:function(t,n,r){d.lastIndex=0;var e=d.exec(n.slice(r));return e?(t.w=g.get(e[0].toLowerCase()),r+e[0].length):-1},A:function(t,n,r){p.lastIndex=0;var e=p.exec(n.slice(r));return e?(t.w=v.get(e[0].toLowerCase()),r+e[0].length):-1},b:function(t,n,r){x.lastIndex=0;var e=x.exec(n.slice(r));return e?(t.m=b.get(e[0].toLowerCase()),r+e[0].length):-1},B:function(t,n,r){y.lastIndex=0;var e=y.exec(n.slice(r));return e?(t.m=m.get(e[0].toLowerCase()),r+e[0].length):-1},c:function(t,n,r){return f(t,Z.c.toString(),n,r)},d:ir,e:ir,H:ar,I:ar,j:ur,L:lr,m:or,M:cr,p:function(t,n,r){var e=h.get(n.slice(r,r+=2).toLowerCase());return null==e?-1:(t.p=e,r)},S:sr,U:Qn,w:Gn,W:tr,x:function(t,n,r){return f(t,Z.x.toString(),n,r)},X:function(t,n,r){return f(t,Z.X.toString(),n,r)},y:rr,Y:nr,Z:er,"%":hr};return l}Rn.year=Bn((function(t){return(t=Rn.day(t)).setMonth(0,1),t}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t){return t.getFullYear()})),Rn.years=Rn.year.range,Rn.years.utc=Rn.year.utc.range,Rn.day=Bn((function(t){var n=new Un(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})),Rn.days=Rn.day.range,Rn.days.utc=Rn.day.utc.range,Rn.dayOfYear=function(t){var n=Rn.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 r=Rn[t]=Bn((function(t){return(t=Rn.day(t)).setDate(t.getDate()-(t.getDay()+n)%7),t}),(function(t,n){t.setDate(t.getDate()+7*Math.floor(n))}),(function(t){var r=Rn.year(t).getDay();return Math.floor((Rn.dayOfYear(t)+(r+n)%7)/7)-(r!==n)}));Rn[t+"s"]=r.range,Rn[t+"s"].utc=r.utc.range,Rn[t+"OfYear"]=function(t){var r=Rn.year(t).getDay();return Math.floor((Rn.dayOfYear(t)+(r+n)%7)/7)}})),Rn.week=Rn.sunday,Rn.weeks=Rn.sunday.range,Rn.weeks.utc=Rn.sunday.utc.range,Rn.weekOfYear=Rn.sundayOfYear;var Yn={"-":"",_:" ",0:"0"},Vn=/^\s*\d+/,$n=/^%/;function Xn(t,n,r){var e=t<0?"-":"",o=(e?-t:t)+"",i=o.length;return e+(i<r?new Array(r-i+1).join(n)+o:o)}function Jn(t){return new RegExp("^(?:"+t.map(i.requote).join("|")+")","i")}function Kn(t){for(var n=new S,r=-1,e=t.length;++r<e;)n.set(t[r].toLowerCase(),r);return n}function Gn(t,n,r){Vn.lastIndex=0;var e=Vn.exec(n.slice(r,r+1));return e?(t.w=+e[0],r+e[0].length):-1}function Qn(t,n,r){Vn.lastIndex=0;var e=Vn.exec(n.slice(r));return e?(t.U=+e[0],r+e[0].length):-1}function tr(t,n,r){Vn.lastIndex=0;var e=Vn.exec(n.slice(r));return e?(t.W=+e[0],r+e[0].length):-1}function nr(t,n,r){Vn.lastIndex=0;var e=Vn.exec(n.slice(r,r+4));return e?(t.y=+e[0],r+e[0].length):-1}function rr(t,n,r){Vn.lastIndex=0;var e,o=Vn.exec(n.slice(r,r+2));return o?(t.y=(e=+o[0])+(e>68?1900:2e3),r+o[0].length):-1}function er(t,n,r){return/^[+-]\d{4}$/.test(n=n.slice(r,r+5))?(t.Z=-n,r+5):-1}function or(t,n,r){Vn.lastIndex=0;var e=Vn.exec(n.slice(r,r+2));return e?(t.m=e[0]-1,r+e[0].length):-1}function ir(t,n,r){Vn.lastIndex=0;var e=Vn.exec(n.slice(r,r+2));return e?(t.d=+e[0],r+e[0].length):-1}function ur(t,n,r){Vn.lastIndex=0;var e=Vn.exec(n.slice(r,r+3));return e?(t.j=+e[0],r+e[0].length):-1}function ar(t,n,r){Vn.lastIndex=0;var e=Vn.exec(n.slice(r,r+2));return e?(t.H=+e[0],r+e[0].length):-1}function cr(t,n,r){Vn.lastIndex=0;var e=Vn.exec(n.slice(r,r+2));return e?(t.M=+e[0],r+e[0].length):-1}function sr(t,n,r){Vn.lastIndex=0;var e=Vn.exec(n.slice(r,r+2));return e?(t.S=+e[0],r+e[0].length):-1}function lr(t,n,r){Vn.lastIndex=0;var e=Vn.exec(n.slice(r,r+3));return e?(t.L=+e[0],r+e[0].length):-1}function fr(t){var n=t.getTimezoneOffset(),r=n>0?"-":"+",e=M(n)/60|0,o=M(n)%60;return r+Xn(e,"0",2)+Xn(o,"0",2)}function hr(t,n,r){$n.lastIndex=0;var e=$n.exec(n.slice(r,r+1));return e?r+e[0].length:-1}function pr(t){for(var n=t.length,r=-1;++r<n;)t[r][0]=this(t[r][0]);return function(n){for(var r=0,e=t[r];!e[1](n);)e=t[++r];return e[0](n)}}i.locale=function(t){return{numberFormat:qn(t),timeFormat:Wn(t)}};var vr=i.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 dr(){}i.format=vr.numberFormat,i.geo={},dr.prototype={s:0,t:0,add:function(t){yr(t,this.t,gr),yr(gr.s,this.s,this),this.s?this.t+=gr.t:this.s=gr.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var gr=new dr;function yr(t,n,r){var e=r.s=t+n,o=e-t,i=e-o;r.t=t-i+(n-o)}function mr(t,n){t&&br.hasOwnProperty(t.type)&&br[t.type](t,n)}i.geo.stream=function(t,n){t&&xr.hasOwnProperty(t.type)?xr[t.type](t,n):mr(t,n)};var xr={Feature:function(t,n){mr(t.geometry,n)},FeatureCollection:function(t,n){for(var r=t.features,e=-1,o=r.length;++e<o;)mr(r[e].geometry,n)}},br={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 r=t.coordinates,e=-1,o=r.length;++e<o;)t=r[e],n.point(t[0],t[1],t[2])},LineString:function(t,n){Zr(t.coordinates,n,0)},MultiLineString:function(t,n){for(var r=t.coordinates,e=-1,o=r.length;++e<o;)Zr(r[e],n,0)},Polygon:function(t,n){Mr(t.coordinates,n)},MultiPolygon:function(t,n){for(var r=t.coordinates,e=-1,o=r.length;++e<o;)Mr(r[e],n)},GeometryCollection:function(t,n){for(var r=t.geometries,e=-1,o=r.length;++e<o;)mr(r[e],n)}};function Zr(t,n,r){var e,o=-1,i=t.length-r;for(n.lineStart();++o<i;)e=t[o],n.point(e[0],e[1],e[2]);n.lineEnd()}function Mr(t,n){var r=-1,e=t.length;for(n.polygonStart();++r<e;)Zr(t[r],n,1);n.polygonEnd()}i.geo.area=function(t){return _r=0,i.geo.stream(t,Pr),_r};var _r,wr,Sr,jr,Ar,kr,Er,Or,Nr,Cr,zr,Tr,qr=new dr,Pr={sphere:function(){_r+=4*Ot},point:D,lineStart:D,lineEnd:D,polygonStart:function(){qr.reset(),Pr.lineStart=Lr},polygonEnd:function(){var t=2*qr;_r+=t<0?4*Ot+t:t,Pr.lineStart=Pr.lineEnd=Pr.point=D}};function Lr(){var t,n,r,e,o;function i(t,n){n=n*Tt/2+Ot/4;var i=(t*=Tt)-r,u=i>=0?1:-1,a=u*i,c=Math.cos(n),s=Math.sin(n),l=o*s,f=e*c+l*Math.cos(a),h=l*u*Math.sin(a);qr.add(Math.atan2(h,f)),r=t,e=c,o=s}Pr.point=function(u,a){Pr.point=i,r=(t=u)*Tt,e=Math.cos(a=(n=a)*Tt/2+Ot/4),o=Math.sin(a)},Pr.lineEnd=function(){i(t,n)}}function Dr(t){var n=t[0],r=t[1],e=Math.cos(r);return[e*Math.cos(n),e*Math.sin(n),Math.sin(r)]}function Rr(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function Ur(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 Ir(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function Fr(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function Br(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 Hr(t){return[Math.atan2(t[1],t[0]),Rt(t[2])]}function Wr(t,n){return M(t[0]-n[0])<kt&&M(t[1]-n[1])<kt}i.geo.bounds=function(){var t,n,r,e,o,u,a,c,s,l,f,h={point:p,lineStart:d,lineEnd:g,polygonStart:function(){h.point=y,h.lineStart=m,h.lineEnd=x,s=0,Pr.polygonStart()},polygonEnd:function(){Pr.polygonEnd(),h.point=p,h.lineStart=d,h.lineEnd=g,qr<0?(t=-(r=180),n=-(e=90)):s>kt?e=90:s<-kt&&(n=-90),f[0]=t,f[1]=r}};function p(o,i){l.push(f=[t=o,r=o]),i<n&&(n=i),i>e&&(e=i)}function v(i,u){var a=Dr([i*Tt,u*Tt]);if(c){var s=Ur(c,a),l=Ur([s[1],-s[0],0],s);Br(l),l=Hr(l);var f=i-o,h=f>0?1:-1,v=l[0]*qt*h,d=M(f)>180;if(d^(h*o<v&&v<h*i))(g=l[1]*qt)>e&&(e=g);else if(d^(h*o<(v=(v+360)%360-180)&&v<h*i)){var g;(g=-l[1]*qt)<n&&(n=g)}else u<n&&(n=u),u>e&&(e=u);d?i<o?b(t,i)>b(t,r)&&(r=i):b(i,r)>b(t,r)&&(t=i):r>=t?(i<t&&(t=i),i>r&&(r=i)):i>o?b(t,i)>b(t,r)&&(r=i):b(i,r)>b(t,r)&&(t=i)}else p(i,u);c=a,o=i}function d(){h.point=v}function g(){f[0]=t,f[1]=r,h.point=p,c=null}function y(t,n){if(c){var r=t-o;s+=M(r)>180?r+(r>0?360:-360):r}else u=t,a=n;Pr.point(t,n),v(t,n)}function m(){Pr.lineStart()}function x(){y(u,a),Pr.lineEnd(),M(s)>kt&&(t=-(r=180)),f[0]=t,f[1]=r,c=null}function b(t,n){return(n-=t)<0?n+360:n}function Z(t,n){return t[0]-n[0]}function _(t,n){return n[0]<=n[1]?n[0]<=t&&t<=n[1]:t<n[0]||n[1]<t}return function(o){if(e=r=-(t=n=1/0),l=[],i.geo.stream(o,h),s=l.length){l.sort(Z);for(var u=1,a=[d=l[0]];u<s;++u)_((p=l[u])[0],d)||_(p[1],d)?(b(d[0],p[1])>b(d[0],d[1])&&(d[1]=p[1]),b(p[0],d[1])>b(d[0],d[1])&&(d[0]=p[0])):a.push(d=p);for(var c,s,p,v=-1/0,d=(u=0,a[s=a.length-1]);u<=s;d=p,++u)p=a[u],(c=b(d[1],p[0]))>v&&(v=c,t=p[0],r=d[1])}return l=f=null,t===1/0||n===1/0?[[NaN,NaN],[NaN,NaN]]:[[t,n],[r,e]]}}(),i.geo.centroid=function(t){wr=Sr=jr=Ar=kr=Er=Or=Nr=Cr=zr=Tr=0,i.geo.stream(t,Yr);var n=Cr,r=zr,e=Tr,o=n*n+r*r+e*e;return o<Et&&(n=Er,r=Or,e=Nr,Sr<kt&&(n=jr,r=Ar,e=kr),(o=n*n+r*r+e*e)<Et)?[NaN,NaN]:[Math.atan2(r,n)*qt,Rt(e/Math.sqrt(o))*qt]};var Yr={sphere:D,point:Vr,lineStart:Xr,lineEnd:Jr,polygonStart:function(){Yr.lineStart=Kr},polygonEnd:function(){Yr.lineStart=Xr}};function Vr(t,n){t*=Tt;var r=Math.cos(n*=Tt);$r(r*Math.cos(t),r*Math.sin(t),Math.sin(n))}function $r(t,n,r){++wr,jr+=(t-jr)/wr,Ar+=(n-Ar)/wr,kr+=(r-kr)/wr}function Xr(){var t,n,r;function e(e,o){e*=Tt;var i=Math.cos(o*=Tt),u=i*Math.cos(e),a=i*Math.sin(e),c=Math.sin(o),s=Math.atan2(Math.sqrt((s=n*c-r*a)*s+(s=r*u-t*c)*s+(s=t*a-n*u)*s),t*u+n*a+r*c);Sr+=s,Er+=s*(t+(t=u)),Or+=s*(n+(n=a)),Nr+=s*(r+(r=c)),$r(t,n,r)}Yr.point=function(o,i){o*=Tt;var u=Math.cos(i*=Tt);t=u*Math.cos(o),n=u*Math.sin(o),r=Math.sin(i),Yr.point=e,$r(t,n,r)}}function Jr(){Yr.point=Vr}function Kr(){var t,n,r,e,o;function i(t,n){t*=Tt;var i=Math.cos(n*=Tt),u=i*Math.cos(t),a=i*Math.sin(t),c=Math.sin(n),s=e*c-o*a,l=o*u-r*c,f=r*a-e*u,h=Math.sqrt(s*s+l*l+f*f),p=r*u+e*a+o*c,v=h&&-Dt(p)/h,d=Math.atan2(h,p);Cr+=v*s,zr+=v*l,Tr+=v*f,Sr+=d,Er+=d*(r+(r=u)),Or+=d*(e+(e=a)),Nr+=d*(o+(o=c)),$r(r,e,o)}Yr.point=function(u,a){t=u,n=a,Yr.point=i,u*=Tt;var c=Math.cos(a*=Tt);r=c*Math.cos(u),e=c*Math.sin(u),o=Math.sin(a),$r(r,e,o)},Yr.lineEnd=function(){i(t,n),Yr.lineEnd=Jr,Yr.point=Vr}}function Gr(t,n){function r(r,e){return r=t(r,e),n(r[0],r[1])}return t.invert&&n.invert&&(r.invert=function(r,e){return(r=n.invert(r,e))&&t.invert(r[0],r[1])}),r}function Qr(){return!0}function te(t,n,r,e,o){var i=[],u=[];if(t.forEach((function(t){if(!((n=t.length-1)<=0)){var n,r=t[0],e=t[n];if(Wr(r,e)){o.lineStart();for(var a=0;a<n;++a)o.point((r=t[a])[0],r[1]);o.lineEnd()}else{var c=new re(r,t,null,!0),s=new re(r,null,c,!1);c.o=s,i.push(c),u.push(s),c=new re(e,t,null,!1),s=new re(e,null,c,!0),c.o=s,i.push(c),u.push(s)}}})),u.sort(n),ne(i),ne(u),i.length){for(var a=0,c=r,s=u.length;a<s;++a)u[a].e=c=!c;for(var l,f,h=i[0];;){for(var p=h,v=!0;p.v;)if((p=p.n)===h)return;l=p.z,o.lineStart();do{if(p.v=p.o.v=!0,p.e){if(v)for(a=0,s=l.length;a<s;++a)o.point((f=l[a])[0],f[1]);else e(p.x,p.n.x,1,o);p=p.n}else{if(v)for(a=(l=p.p.z).length-1;a>=0;--a)o.point((f=l[a])[0],f[1]);else e(p.x,p.p.x,-1,o);p=p.p}l=(p=p.o).z,v=!v}while(!p.v);o.lineEnd()}}}function ne(t){if(n=t.length){for(var n,r,e=0,o=t[0];++e<n;)o.n=r=t[e],r.p=o,o=r;o.n=r=t[0],r.p=o}}function re(t,n,r,e){this.x=t,this.z=n,this.o=r,this.e=e,this.v=!1,this.n=this.p=null}function ee(t,n,r,e){return function(o,u){var a,c=n(u),s=o.invert(e[0],e[1]),l={point:f,lineStart:p,lineEnd:v,polygonStart:function(){l.point=b,l.lineStart=Z,l.lineEnd=M,a=[],d=[]},polygonEnd:function(){l.point=f,l.lineStart=p,l.lineEnd=v,a=i.merge(a);var t=function(t,n){var r=t[0],e=t[1],o=[Math.sin(r),-Math.cos(r),0],i=0,u=0;qr.reset();for(var a=0,c=n.length;a<c;++a){var s=n[a],l=s.length;if(l)for(var f=s[0],h=f[0],p=f[1]/2+Ot/4,v=Math.sin(p),d=Math.cos(p),g=1;;){g===l&&(g=0);var y=(t=s[g])[0],m=t[1]/2+Ot/4,x=Math.sin(m),b=Math.cos(m),Z=y-h,M=Z>=0?1:-1,_=M*Z,w=_>Ot,S=v*x;if(qr.add(Math.atan2(S*M*Math.sin(_),d*b+S*Math.cos(_))),i+=w?Z+M*Nt:Z,w^h>=r^y>=r){var j=Ur(Dr(f),Dr(t));Br(j);var A=Ur(o,j);Br(A);var k=(w^Z>=0?-1:1)*Rt(A[2]);(e>k||e===k&&(j[0]||j[1]))&&(u+=w^Z>=0?1:-1)}if(!g++)break;h=y,v=x,d=b,f=t}}return(i<-kt||i<kt&&qr<-kt)^1&u}(s,d);a.length?(x||(u.polygonStart(),x=!0),te(a,ue,t,r,u)):t&&(x||(u.polygonStart(),x=!0),u.lineStart(),r(null,null,1,u),u.lineEnd()),x&&(u.polygonEnd(),x=!1),a=d=null},sphere:function(){u.polygonStart(),u.lineStart(),r(null,null,1,u),u.lineEnd(),u.polygonEnd()}};function f(n,r){var e=o(n,r);t(n=e[0],r=e[1])&&u.point(n,r)}function h(t,n){var r=o(t,n);c.point(r[0],r[1])}function p(){l.point=h,c.lineStart()}function v(){l.point=f,c.lineEnd()}var d,g,y=ie(),m=n(y),x=!1;function b(t,n){g.push([t,n]);var r=o(t,n);m.point(r[0],r[1])}function Z(){m.lineStart(),g=[]}function M(){b(g[0][0],g[0][1]),m.lineEnd();var t,n=m.clean(),r=y.buffer(),e=r.length;if(g.pop(),d.push(g),g=null,e)if(1&n){var o,i=-1;if((e=(t=r[0]).length-1)>0){for(x||(u.polygonStart(),x=!0),u.lineStart();++i<e;)u.point((o=t[i])[0],o[1]);u.lineEnd()}}else e>1&&2&n&&r.push(r.pop().concat(r.shift())),a.push(r.filter(oe))}return l}}function oe(t){return t.length>1}function ie(){var t,n=[];return{lineStart:function(){n.push(t=[])},point:function(n,r){t.push([n,r])},lineEnd:D,buffer:function(){var r=n;return n=[],t=null,r},rejoin:function(){n.length>1&&n.push(n.pop().concat(n.shift()))}}}function ue(t,n){return((t=t.x)[0]<0?t[1]-zt-kt:zt-t[1])-((n=n.x)[0]<0?n[1]-zt-kt:zt-n[1])}var ae=ee(Qr,(function(t){var n,r=NaN,e=NaN,o=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(i,u){var a=i>0?Ot:-Ot,c=M(i-r);M(c-Ot)<kt?(t.point(r,e=(e+u)/2>0?zt:-zt),t.point(o,e),t.lineEnd(),t.lineStart(),t.point(a,e),t.point(i,e),n=0):o!==a&&c>=Ot&&(M(r-o)<kt&&(r-=o*kt),M(i-a)<kt&&(i-=a*kt),e=function(t,n,r,e){var o,i,u=Math.sin(t-r);return M(u)>kt?Math.atan((Math.sin(n)*(i=Math.cos(e))*Math.sin(r)-Math.sin(e)*(o=Math.cos(n))*Math.sin(t))/(o*i*u)):(n+e)/2}(r,e,i,u),t.point(o,e),t.lineEnd(),t.lineStart(),t.point(a,e),n=0),t.point(r=i,e=u),o=a},lineEnd:function(){t.lineEnd(),r=e=NaN},clean:function(){return 2-n}}}),(function(t,n,r,e){var o;if(null==t)o=r*zt,e.point(-Ot,o),e.point(0,o),e.point(Ot,o),e.point(Ot,0),e.point(Ot,-o),e.point(0,-o),e.point(-Ot,-o),e.point(-Ot,0),e.point(-Ot,o);else if(M(t[0]-n[0])>kt){var i=t[0]<n[0]?Ot:-Ot;o=r*i/2,e.point(-i,o),e.point(0,o),e.point(i,o)}else e.point(n[0],n[1])}),[-Ot,-Ot/2]);function ce(t){var n=Math.cos(t),r=n>0,e=M(n)>kt;return ee(o,(function(t){var n,a,c,s,l;return{lineStart:function(){s=c=!1,l=1},point:function(f,h){var p,v=[f,h],d=o(f,h),g=r?d?0:u(f,h):d?u(f+(f<0?Ot:-Ot),h):0;if(!n&&(s=c=d)&&t.lineStart(),d!==c&&(p=i(n,v),(Wr(n,p)||Wr(v,p))&&(v[0]+=kt,v[1]+=kt,d=o(v[0],v[1]))),d!==c)l=0,d?(t.lineStart(),p=i(v,n),t.point(p[0],p[1])):(p=i(n,v),t.point(p[0],p[1]),t.lineEnd()),n=p;else if(e&&n&&r^d){var y;g&a||!(y=i(v,n,!0))||(l=0,r?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!d||n&&Wr(n,v)||t.point(v[0],v[1]),n=v,c=d,a=g},lineEnd:function(){c&&t.lineEnd(),n=null},clean:function(){return l|(s&&c)<<1}}}),We(t,6*Tt),r?[0,-t]:[-Ot,t-Ot]);function o(t,r){return Math.cos(t)*Math.cos(r)>n}function i(t,r,e){var o=[1,0,0],i=Ur(Dr(t),Dr(r)),u=Rr(i,i),a=i[0],c=u-a*a;if(!c)return!e&&t;var s=n*u/c,l=-n*a/c,f=Ur(o,i),h=Fr(o,s);Ir(h,Fr(i,l));var p=f,v=Rr(h,p),d=Rr(p,p),g=v*v-d*(Rr(h,h)-1);if(!(g<0)){var y=Math.sqrt(g),m=Fr(p,(-v-y)/d);if(Ir(m,h),m=Hr(m),!e)return m;var x,b=t[0],Z=r[0],_=t[1],w=r[1];Z<b&&(x=b,b=Z,Z=x);var S=Z-b,j=M(S-Ot)<kt;if(!j&&w<_&&(x=_,_=w,w=x),j||S<kt?j?_+w>0^m[1]<(M(m[0]-b)<kt?_:w):_<=m[1]&&m[1]<=w:S>Ot^(b<=m[0]&&m[0]<=Z)){var A=Fr(p,(-v+y)/d);return Ir(A,h),[m,Hr(A)]}}}function u(n,e){var o=r?t:Ot-t,i=0;return n<-o?i|=1:n>o&&(i|=2),e<-o?i|=4:e>o&&(i|=8),i}}function se(t,n,r,e){return function(o){var i,u=o.a,a=o.b,c=u.x,s=u.y,l=0,f=1,h=a.x-c,p=a.y-s;if(i=t-c,h||!(i>0)){if(i/=h,h<0){if(i<l)return;i<f&&(f=i)}else if(h>0){if(i>f)return;i>l&&(l=i)}if(i=r-c,h||!(i<0)){if(i/=h,h<0){if(i>f)return;i>l&&(l=i)}else if(h>0){if(i<l)return;i<f&&(f=i)}if(i=n-s,p||!(i>0)){if(i/=p,p<0){if(i<l)return;i<f&&(f=i)}else if(p>0){if(i>f)return;i>l&&(l=i)}if(i=e-s,p||!(i<0)){if(i/=p,p<0){if(i>f)return;i>l&&(l=i)}else if(p>0){if(i<l)return;i<f&&(f=i)}return l>0&&(o.a={x:c+l*h,y:s+l*p}),f<1&&(o.b={x:c+f*h,y:s+f*p}),o}}}}}}var le=1e9;function fe(t,n,r,e){return function(c){var s,l,f,h,p,v,d,g,y,m,x,b=c,Z=ie(),M=se(t,n,r,e),_={point:j,lineStart:function(){_.point=A,l&&l.push(f=[]),m=!0,y=!1,d=g=NaN},lineEnd:function(){s&&(A(h,p),v&&y&&Z.rejoin(),s.push(Z.buffer())),_.point=j,y&&c.lineEnd()},polygonStart:function(){c=Z,s=[],l=[],x=!0},polygonEnd:function(){c=b,s=i.merge(s);var n=function(t){for(var n=0,r=l.length,e=t[1],o=0;o<r;++o)for(var i,u=1,a=l[o],c=a.length,s=a[0];u<c;++u)i=a[u],s[1]<=e?i[1]>e&&Lt(s,i,t)>0&&++n:i[1]<=e&&Lt(s,i,t)<0&&--n,s=i;return 0!==n}([t,e]),r=x&&n,o=s.length;(r||o)&&(c.polygonStart(),r&&(c.lineStart(),w(null,null,1,c),c.lineEnd()),o&&te(s,u,n,w,c),c.polygonEnd()),s=l=f=null}};function w(i,u,c,s){var l=0,f=0;if(null==i||(l=o(i,c))!==(f=o(u,c))||a(i,u)<0^c>0)do{s.point(0===l||3===l?t:r,l>1?e:n)}while((l=(l+c+4)%4)!==f);else s.point(u[0],u[1])}function S(o,i){return t<=o&&o<=r&&n<=i&&i<=e}function j(t,n){S(t,n)&&c.point(t,n)}function A(t,n){var r=S(t=Math.max(-1e9,Math.min(le,t)),n=Math.max(-1e9,Math.min(le,n)));if(l&&f.push([t,n]),m)h=t,p=n,v=r,m=!1,r&&(c.lineStart(),c.point(t,n));else if(r&&y)c.point(t,n);else{var e={a:{x:d,y:g},b:{x:t,y:n}};M(e)?(y||(c.lineStart(),c.point(e.a.x,e.a.y)),c.point(e.b.x,e.b.y),r||c.lineEnd(),x=!1):r&&(c.lineStart(),c.point(t,n),x=!1)}d=t,g=n,y=r}return _};function o(e,o){return M(e[0]-t)<kt?o>0?0:3:M(e[0]-r)<kt?o>0?2:1:M(e[1]-n)<kt?o>0?1:0:o>0?3:2}function u(t,n){return a(t.x,n.x)}function a(t,n){var r=o(t,1),e=o(n,1);return r!==e?r-e:0===r?n[1]-t[1]:1===r?t[0]-n[0]:2===r?t[1]-n[1]:n[0]-t[0]}}function he(t){var n=0,r=Ot/3,e=Le(t),o=e(n,r);return o.parallels=function(t){return arguments.length?e(n=t[0]*Ot/180,r=t[1]*Ot/180):[n/Ot*180,r/Ot*180]},o}function pe(t,n){var r=Math.sin(t),e=(r+Math.sin(n))/2,o=1+r*(2*e-r),i=Math.sqrt(o)/e;function u(t,n){var r=Math.sqrt(o-2*e*Math.sin(n))/e;return[r*Math.sin(t*=e),i-r*Math.cos(t)]}return u.invert=function(t,n){var r=i-n;return[Math.atan2(t,r)/e,Rt((o-(t*t+r*r)*e*e)/(2*e))]},u}i.geo.clipExtent=function(){var t,n,r,e,o,i,u={stream:function(t){return o&&(o.valid=!1),(o=i(t)).valid=!0,o},extent:function(a){return arguments.length?(i=fe(t=+a[0][0],n=+a[0][1],r=+a[1][0],e=+a[1][1]),o&&(o.valid=!1,o=null),u):[[t,n],[r,e]]}};return u.extent([[0,0],[960,500]])},(i.geo.conicEqualArea=function(){return he(pe)}).raw=pe,i.geo.albers=function(){return i.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},i.geo.albersUsa=function(){var t,n,r,e,o=i.geo.albers(),u=i.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a=i.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(n,r){t=[n,r]}};function s(o){var i=o[0],u=o[1];return t=null,n(i,u),t||(r(i,u),t)||e(i,u),t}return s.invert=function(t){var n=o.scale(),r=o.translate(),e=(t[0]-r[0])/n,i=(t[1]-r[1])/n;return(i>=.12&&i<.234&&e>=-.425&&e<-.214?u:i>=.166&&i<.234&&e>=-.214&&e<-.115?a:o).invert(t)},s.stream=function(t){var n=o.stream(t),r=u.stream(t),e=a.stream(t);return{point:function(t,o){n.point(t,o),r.point(t,o),e.point(t,o)},sphere:function(){n.sphere(),r.sphere(),e.sphere()},lineStart:function(){n.lineStart(),r.lineStart(),e.lineStart()},lineEnd:function(){n.lineEnd(),r.lineEnd(),e.lineEnd()},polygonStart:function(){n.polygonStart(),r.polygonStart(),e.polygonStart()},polygonEnd:function(){n.polygonEnd(),r.polygonEnd(),e.polygonEnd()}}},s.precision=function(t){return arguments.length?(o.precision(t),u.precision(t),a.precision(t),s):o.precision()},s.scale=function(t){return arguments.length?(o.scale(t),u.scale(.35*t),a.scale(t),s.translate(o.translate())):o.scale()},s.translate=function(t){if(!arguments.length)return o.translate();var i=o.scale(),l=+t[0],f=+t[1];return n=o.translate(t).clipExtent([[l-.455*i,f-.238*i],[l+.455*i,f+.238*i]]).stream(c).point,r=u.translate([l-.307*i,f+.201*i]).clipExtent([[l-.425*i+kt,f+.12*i+kt],[l-.214*i-kt,f+.234*i-kt]]).stream(c).point,e=a.translate([l-.205*i,f+.212*i]).clipExtent([[l-.214*i+kt,f+.166*i+kt],[l-.115*i-kt,f+.234*i-kt]]).stream(c).point,s},s.scale(1070)};var ve,de,ge,ye,me,xe,be={point:D,lineStart:D,lineEnd:D,polygonStart:function(){de=0,be.lineStart=Ze},polygonEnd:function(){be.lineStart=be.lineEnd=be.point=D,ve+=M(de/2)}};function Ze(){var t,n,r,e;function o(t,n){de+=e*t-r*n,r=t,e=n}be.point=function(i,u){be.point=o,t=r=i,n=e=u},be.lineEnd=function(){o(t,n)}}var Me={point:function(t,n){t<ge&&(ge=t),t>me&&(me=t),n<ye&&(ye=n),n>xe&&(xe=n)},lineStart:D,lineEnd:D,polygonStart:D,polygonEnd:D};function _e(){var t=we(4.5),n=[],r={point:e,lineStart:function(){r.point=o},lineEnd:u,polygonStart:function(){r.lineEnd=a},polygonEnd:function(){r.lineEnd=u,r.point=e},pointRadius:function(n){return t=we(n),r},result:function(){if(n.length){var t=n.join("");return n=[],t}}};function e(r,e){n.push("M",r,",",e,t)}function o(t,e){n.push("M",t,",",e),r.point=i}function i(t,r){n.push("L",t,",",r)}function u(){r.point=e}function a(){n.push("Z")}return r}function we(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}var Se,je={point:Ae,lineStart:ke,lineEnd:Ee,polygonStart:function(){je.lineStart=Oe},polygonEnd:function(){je.point=Ae,je.lineStart=ke,je.lineEnd=Ee}};function Ae(t,n){jr+=t,Ar+=n,++kr}function ke(){var t,n;function r(r,e){var o=r-t,i=e-n,u=Math.sqrt(o*o+i*i);Er+=u*(t+r)/2,Or+=u*(n+e)/2,Nr+=u,Ae(t=r,n=e)}je.point=function(e,o){je.point=r,Ae(t=e,n=o)}}function Ee(){je.point=Ae}function Oe(){var t,n,r,e;function o(t,n){var o=t-r,i=n-e,u=Math.sqrt(o*o+i*i);Er+=u*(r+t)/2,Or+=u*(e+n)/2,Nr+=u,Cr+=(u=e*t-r*n)*(r+t),zr+=u*(e+n),Tr+=3*u,Ae(r=t,e=n)}je.point=function(i,u){je.point=o,Ae(t=r=i,n=e=u)},je.lineEnd=function(){o(t,n)}}function Ne(t){var n=4.5,r={point:e,lineStart:function(){r.point=o},lineEnd:u,polygonStart:function(){r.lineEnd=a},polygonEnd:function(){r.lineEnd=u,r.point=e},pointRadius:function(t){return n=t,r},result:D};function e(r,e){t.moveTo(r+n,e),t.arc(r,e,n,0,Nt)}function o(n,e){t.moveTo(n,e),r.point=i}function i(n,r){t.lineTo(n,r)}function u(){r.point=e}function a(){t.closePath()}return r}function Ce(t){var n=.5,r=Math.cos(30*Tt),e=16;function o(t){return(e?u:i)(t)}function i(n){return qe(n,(function(r,e){r=t(r,e),n.point(r[0],r[1])}))}function u(n){var r,o,i,u,c,s,l,f,h,p,v,d,g={point:y,lineStart:m,lineEnd:b,polygonStart:function(){n.polygonStart(),g.lineStart=Z},polygonEnd:function(){n.polygonEnd(),g.lineStart=m}};function y(r,e){r=t(r,e),n.point(r[0],r[1])}function m(){f=NaN,g.point=x,n.lineStart()}function x(r,o){var i=Dr([r,o]),u=t(r,o);a(f,h,l,p,v,d,f=u[0],h=u[1],l=r,p=i[0],v=i[1],d=i[2],e,n),n.point(f,h)}function b(){g.point=y,n.lineEnd()}function Z(){m(),g.point=M,g.lineEnd=_}function M(t,n){x(r=t,n),o=f,i=h,u=p,c=v,s=d,g.point=x}function _(){a(f,h,l,p,v,d,o,i,r,u,c,s,e,n),g.lineEnd=b,b()}return g}function a(e,o,i,u,c,s,l,f,h,p,v,d,g,y){var m=l-e,x=f-o,b=m*m+x*x;if(b>4*n&&g--){var Z=u+p,_=c+v,w=s+d,S=Math.sqrt(Z*Z+_*_+w*w),j=Math.asin(w/=S),A=M(M(w)-1)<kt||M(i-h)<kt?(i+h)/2:Math.atan2(_,Z),k=t(A,j),E=k[0],O=k[1],N=E-e,C=O-o,z=x*N-m*C;(z*z/b>n||M((m*N+x*C)/b-.5)>.3||u*p+c*v+s*d<r)&&(a(e,o,i,u,c,s,E,O,A,Z/=S,_/=S,w,g,y),y.point(E,O),a(E,O,A,Z,_,w,l,f,h,p,v,d,g,y))}}return o.precision=function(t){return arguments.length?(e=(n=t*t)>0&&16,o):Math.sqrt(n)},o}function ze(t){var n=Ce((function(n,r){return t([n*qt,r*qt])}));return function(t){return De(n(t))}}function Te(t){this.stream=t}function qe(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 Pe(t){return Le((function(){return t}))()}function Le(t){var n,r,e,o,u,a,c=Ce((function(t,r){return[(t=n(t,r))[0]*s+o,u-t[1]*s]})),s=150,l=480,f=250,h=0,p=0,v=0,d=0,g=0,y=ae,m=T,x=null,b=null;function Z(t){return[(t=e(t[0]*Tt,t[1]*Tt))[0]*s+o,u-t[1]*s]}function M(t){return(t=e.invert((t[0]-o)/s,(u-t[1])/s))&&[t[0]*qt,t[1]*qt]}function _(){e=Gr(r=Ie(v,d,g),n);var t=n(h,p);return o=l-t[0]*s,u=f+t[1]*s,w()}function w(){return a&&(a.valid=!1,a=null),Z}return Z.stream=function(t){return a&&(a.valid=!1),(a=De(y(r,c(m(t))))).valid=!0,a},Z.clipAngle=function(t){return arguments.length?(y=null==t?(x=t,ae):ce((x=+t)*Tt),w()):x},Z.clipExtent=function(t){return arguments.length?(b=t,m=t?fe(t[0][0],t[0][1],t[1][0],t[1][1]):T,w()):b},Z.scale=function(t){return arguments.length?(s=+t,_()):s},Z.translate=function(t){return arguments.length?(l=+t[0],f=+t[1],_()):[l,f]},Z.center=function(t){return arguments.length?(h=t[0]%360*Tt,p=t[1]%360*Tt,_()):[h*qt,p*qt]},Z.rotate=function(t){return arguments.length?(v=t[0]%360*Tt,d=t[1]%360*Tt,g=t.length>2?t[2]%360*Tt:0,_()):[v*qt,d*qt,g*qt]},i.rebind(Z,c,"precision"),function(){return n=t.apply(this,arguments),Z.invert=n.invert&&M,_()}}function De(t){return qe(t,(function(n,r){t.point(n*Tt,r*Tt)}))}function Re(t,n){return[t,n]}function Ue(t,n){return[t>Ot?t-Nt:t<-Ot?t+Nt:t,n]}function Ie(t,n,r){return t?n||r?Gr(Be(t),He(n,r)):Be(t):n||r?He(n,r):Ue}function Fe(t){return function(n,r){return[(n+=t)>Ot?n-Nt:n<-Ot?n+Nt:n,r]}}function Be(t){var n=Fe(t);return n.invert=Fe(-t),n}function He(t,n){var r=Math.cos(t),e=Math.sin(t),o=Math.cos(n),i=Math.sin(n);function u(t,n){var u=Math.cos(n),a=Math.cos(t)*u,c=Math.sin(t)*u,s=Math.sin(n),l=s*r+a*e;return[Math.atan2(c*o-l*i,a*r-s*e),Rt(l*o+c*i)]}return u.invert=function(t,n){var u=Math.cos(n),a=Math.cos(t)*u,c=Math.sin(t)*u,s=Math.sin(n),l=s*o-c*i;return[Math.atan2(c*o+s*i,a*r+l*e),Rt(l*r-a*e)]},u}function We(t,n){var r=Math.cos(t),e=Math.sin(t);return function(o,i,u,a){var c=u*n;null!=o?(o=Ye(r,o),i=Ye(r,i),(u>0?o<i:o>i)&&(o+=u*Nt)):(o=t+u*Nt,i=t-.5*c);for(var s,l=o;u>0?l>i:l<i;l-=c)a.point((s=Hr([r,-e*Math.cos(l),-e*Math.sin(l)]))[0],s[1])}}function Ye(t,n){var r=Dr(n);r[0]-=t,Br(r);var e=Dt(-r[1]);return((-r[2]<0?-e:e)+2*Math.PI-kt)%(2*Math.PI)}function Ve(t,n,r){var e=i.range(t,n-kt,r).concat(n);return function(t){return e.map((function(n){return[t,n]}))}}function $e(t,n,r){var e=i.range(t,n-kt,r).concat(n);return function(t){return e.map((function(n){return[n,t]}))}}function Xe(t){return t.source}function Je(t){return t.target}i.geo.path=function(){var t,n,r,e,o,u=4.5;function a(t){return t&&("function"==typeof u&&e.pointRadius(+u.apply(this,arguments)),o&&o.valid||(o=r(e)),i.geo.stream(t,o)),e.result()}function c(){return o=null,a}return a.area=function(t){return ve=0,i.geo.stream(t,r(be)),ve},a.centroid=function(t){return jr=Ar=kr=Er=Or=Nr=Cr=zr=Tr=0,i.geo.stream(t,r(je)),Tr?[Cr/Tr,zr/Tr]:Nr?[Er/Nr,Or/Nr]:kr?[jr/kr,Ar/kr]:[NaN,NaN]},a.bounds=function(t){return me=xe=-(ge=ye=1/0),i.geo.stream(t,r(Me)),[[ge,ye],[me,xe]]},a.projection=function(n){return arguments.length?(r=(t=n)?n.stream||ze(n):T,c()):t},a.context=function(t){return arguments.length?(e=null==(n=t)?new _e:new Ne(t),"function"!=typeof u&&e.pointRadius(u),c()):n},a.pointRadius=function(t){return arguments.length?(u="function"==typeof t?t:(e.pointRadius(+t),+t),a):u},a.projection(i.geo.albersUsa()).context(null)},i.geo.transform=function(t){return{stream:function(n){var r=new Te(n);for(var e in t)r[e]=t[e];return r}}},Te.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()}},i.geo.projection=Pe,i.geo.projectionMutator=Le,(i.geo.equirectangular=function(){return Pe(Re)}).raw=Re.invert=Re,i.geo.rotation=function(t){function n(n){return(n=t(n[0]*Tt,n[1]*Tt))[0]*=qt,n[1]*=qt,n}return t=Ie(t[0]%360*Tt,t[1]*Tt,t.length>2?t[2]*Tt:0),n.invert=function(n){return(n=t.invert(n[0]*Tt,n[1]*Tt))[0]*=qt,n[1]*=qt,n},n},Ue.invert=Re,i.geo.circle=function(){var t,n,r=[0,0],e=6;function o(){var t="function"==typeof r?r.apply(this,arguments):r,e=Ie(-t[0]*Tt,-t[1]*Tt,0).invert,o=[];return n(null,null,1,{point:function(t,n){o.push(t=e(t,n)),t[0]*=qt,t[1]*=qt}}),{type:"Polygon",coordinates:[o]}}return o.origin=function(t){return arguments.length?(r=t,o):r},o.angle=function(r){return arguments.length?(n=We((t=+r)*Tt,e*Tt),o):t},o.precision=function(r){return arguments.length?(n=We(t*Tt,(e=+r)*Tt),o):e},o.angle(90)},i.geo.distance=function(t,n){var r,e=(n[0]-t[0])*Tt,o=t[1]*Tt,i=n[1]*Tt,u=Math.sin(e),a=Math.cos(e),c=Math.sin(o),s=Math.cos(o),l=Math.sin(i),f=Math.cos(i);return Math.atan2(Math.sqrt((r=f*u)*r+(r=s*l-c*f*a)*r),c*l+s*f*a)},i.geo.graticule=function(){var t,n,r,e,o,u,a,c,s,l,f,h,p=10,v=p,d=90,g=360,y=2.5;function m(){return{type:"MultiLineString",coordinates:x()}}function x(){return i.range(Math.ceil(e/d)*d,r,d).map(f).concat(i.range(Math.ceil(c/g)*g,a,g).map(h)).concat(i.range(Math.ceil(n/p)*p,t,p).filter((function(t){return M(t%d)>kt})).map(s)).concat(i.range(Math.ceil(u/v)*v,o,v).filter((function(t){return M(t%g)>kt})).map(l))}return m.lines=function(){return x().map((function(t){return{type:"LineString",coordinates:t}}))},m.outline=function(){return{type:"Polygon",coordinates:[f(e).concat(h(a).slice(1),f(r).reverse().slice(1),h(c).reverse().slice(1))]}},m.extent=function(t){return arguments.length?m.majorExtent(t).minorExtent(t):m.minorExtent()},m.majorExtent=function(t){return arguments.length?(e=+t[0][0],r=+t[1][0],c=+t[0][1],a=+t[1][1],e>r&&(t=e,e=r,r=t),c>a&&(t=c,c=a,a=t),m.precision(y)):[[e,c],[r,a]]},m.minorExtent=function(r){return arguments.length?(n=+r[0][0],t=+r[1][0],u=+r[0][1],o=+r[1][1],n>t&&(r=n,n=t,t=r),u>o&&(r=u,u=o,o=r),m.precision(y)):[[n,u],[t,o]]},m.step=function(t){return arguments.length?m.majorStep(t).minorStep(t):m.minorStep()},m.majorStep=function(t){return arguments.length?(d=+t[0],g=+t[1],m):[d,g]},m.minorStep=function(t){return arguments.length?(p=+t[0],v=+t[1],m):[p,v]},m.precision=function(i){return arguments.length?(y=+i,s=Ve(u,o,90),l=$e(n,t,y),f=Ve(c,a,90),h=$e(e,r,y),m):y},m.majorExtent([[-180,-90+kt],[180,90-kt]]).minorExtent([[-180,-80-kt],[180,80+kt]])},i.geo.greatArc=function(){var t,n,r=Xe,e=Je;function o(){return{type:"LineString",coordinates:[t||r.apply(this,arguments),n||e.apply(this,arguments)]}}return o.distance=function(){return i.geo.distance(t||r.apply(this,arguments),n||e.apply(this,arguments))},o.source=function(n){return arguments.length?(r=n,t="function"==typeof n?null:n,o):r},o.target=function(t){return arguments.length?(e=t,n="function"==typeof t?null:t,o):e},o.precision=function(){return arguments.length?o:0},o},i.geo.interpolate=function(t,n){return r=t[0]*Tt,e=t[1]*Tt,o=n[0]*Tt,i=n[1]*Tt,u=Math.cos(e),a=Math.sin(e),c=Math.cos(i),s=Math.sin(i),l=u*Math.cos(r),f=u*Math.sin(r),h=c*Math.cos(o),p=c*Math.sin(o),v=2*Math.asin(Math.sqrt(It(i-e)+u*c*It(o-r))),d=1/Math.sin(v),(g=v?function(t){var n=Math.sin(t*=v)*d,r=Math.sin(v-t)*d,e=r*l+n*h,o=r*f+n*p,i=r*a+n*s;return[Math.atan2(o,e)*qt,Math.atan2(i,Math.sqrt(e*e+o*o))*qt]}:function(){return[r*qt,e*qt]}).distance=v,g;var r,e,o,i,u,a,c,s,l,f,h,p,v,d,g},i.geo.length=function(t){return Se=0,i.geo.stream(t,Ke),Se};var Ke={sphere:D,point:D,lineStart:function(){var t,n,r;function e(e,o){var i=Math.sin(o*=Tt),u=Math.cos(o),a=M((e*=Tt)-t),c=Math.cos(a);Se+=Math.atan2(Math.sqrt((a=u*Math.sin(a))*a+(a=r*i-n*u*c)*a),n*i+r*u*c),t=e,n=i,r=u}Ke.point=function(o,i){t=o*Tt,n=Math.sin(i*=Tt),r=Math.cos(i),Ke.point=e},Ke.lineEnd=function(){Ke.point=Ke.lineEnd=D}},lineEnd:D,polygonStart:D,polygonEnd:D};function Ge(t,n){function r(n,r){var e=Math.cos(n),o=Math.cos(r),i=t(e*o);return[i*o*Math.sin(n),i*Math.sin(r)]}return r.invert=function(t,r){var e=Math.sqrt(t*t+r*r),o=n(e),i=Math.sin(o),u=Math.cos(o);return[Math.atan2(t*i,e*u),Math.asin(e&&r*i/e)]},r}var Qe=Ge((function(t){return Math.sqrt(2/(1+t))}),(function(t){return 2*Math.asin(t/2)}));(i.geo.azimuthalEqualArea=function(){return Pe(Qe)}).raw=Qe;var to=Ge((function(t){var n=Math.acos(t);return n&&n/Math.sin(n)}),T);function no(t,n){var r=Math.cos(t),e=function(t){return Math.tan(Ot/4+t/2)},o=t===n?Math.sin(t):Math.log(r/Math.cos(n))/Math.log(e(n)/e(t)),i=r*Math.pow(e(t),o)/o;if(!o)return oo;function u(t,n){i>0?n<-zt+kt&&(n=-zt+kt):n>zt-kt&&(n=zt-kt);var r=i/Math.pow(e(n),o);return[r*Math.sin(o*t),i-r*Math.cos(o*t)]}return u.invert=function(t,n){var r=i-n,e=Pt(o)*Math.sqrt(t*t+r*r);return[Math.atan2(t,r)/o,2*Math.atan(Math.pow(i/e,1/o))-zt]},u}function ro(t,n){var r=Math.cos(t),e=t===n?Math.sin(t):(r-Math.cos(n))/(n-t),o=r/e+t;if(M(e)<kt)return Re;function i(t,n){var r=o-n;return[r*Math.sin(e*t),o-r*Math.cos(e*t)]}return i.invert=function(t,n){var r=o-n;return[Math.atan2(t,r)/e,o-Pt(e)*Math.sqrt(t*t+r*r)]},i}(i.geo.azimuthalEquidistant=function(){return Pe(to)}).raw=to,(i.geo.conicConformal=function(){return he(no)}).raw=no,(i.geo.conicEquidistant=function(){return he(ro)}).raw=ro;var eo=Ge((function(t){return 1/t}),Math.atan);function oo(t,n){return[t,Math.log(Math.tan(Ot/4+n/2))]}function io(t){var n,r=Pe(t),e=r.scale,o=r.translate,i=r.clipExtent;return r.scale=function(){var t=e.apply(r,arguments);return t===r?n?r.clipExtent(null):r:t},r.translate=function(){var t=o.apply(r,arguments);return t===r?n?r.clipExtent(null):r:t},r.clipExtent=function(t){var u=i.apply(r,arguments);if(u===r){if(n=null==t){var a=Ot*e(),c=o();i([[c[0]-a,c[1]-a],[c[0]+a,c[1]+a]])}}else n&&(u=null);return u},r.clipExtent(null)}(i.geo.gnomonic=function(){return Pe(eo)}).raw=eo,oo.invert=function(t,n){return[t,2*Math.atan(Math.exp(n))-zt]},(i.geo.mercator=function(){return io(oo)}).raw=oo;var uo=Ge((function(){return 1}),Math.asin);(i.geo.orthographic=function(){return Pe(uo)}).raw=uo;var ao=Ge((function(t){return 1/(1+t)}),(function(t){return 2*Math.atan(t)}));function co(t,n){return[Math.log(Math.tan(Ot/4+n/2)),-t]}function so(t){return t[0]}function lo(t){return t[1]}function fo(t){for(var n=t.length,r=[0,1],e=2,o=2;o<n;o++){for(;e>1&&Lt(t[r[e-2]],t[r[e-1]],t[o])<=0;)--e;r[e++]=o}return r.slice(0,e)}function ho(t,n){return t[0]-n[0]||t[1]-n[1]}(i.geo.stereographic=function(){return Pe(ao)}).raw=ao,co.invert=function(t,n){return[-n,2*Math.atan(Math.exp(t))-zt]},(i.geo.transverseMercator=function(){var t=io(co),n=t.center,r=t.rotate;return t.center=function(t){return t?n([-t[1],t[0]]):[(t=n())[1],-t[0]]},t.rotate=function(t){return t?r([t[0],t[1],t.length>2?t[2]+90:90]):[(t=r())[0],t[1],t[2]-90]},r([0,0,90])}).raw=co,i.geom={},i.geom.hull=function(t){var n=so,r=lo;if(arguments.length)return e(t);function e(t){if(t.length<3)return[];var e,o=Zn(n),i=Zn(r),u=t.length,a=[],c=[];for(e=0;e<u;e++)a.push([+o.call(this,t[e],e),+i.call(this,t[e],e),e]);for(a.sort(ho),e=0;e<u;e++)c.push([a[e][0],-a[e][1]]);var s=fo(a),l=fo(c),f=l[0]===s[0],h=l[l.length-1]===s[s.length-1],p=[];for(e=s.length-1;e>=0;--e)p.push(t[a[s[e]][2]]);for(e=+f;e<l.length-h;++e)p.push(t[a[l[e]][2]]);return p}return e.x=function(t){return arguments.length?(n=t,e):n},e.y=function(t){return arguments.length?(r=t,e):r},e},i.geom.polygon=function(t){return W(t,po),t};var po=i.geom.polygon.prototype=[];function vo(t,n,r){return(r[0]-n[0])*(t[1]-n[1])<(r[1]-n[1])*(t[0]-n[0])}function go(t,n,r,e){var o=t[0],i=r[0],u=n[0]-o,a=e[0]-i,c=t[1],s=r[1],l=n[1]-c,f=e[1]-s,h=(a*(c-s)-f*(o-i))/(f*u-a*l);return[o+h*u,c+h*l]}function yo(t){var n=t[0],r=t[t.length-1];return!(n[0]-r[0]||n[1]-r[1])}po.area=function(){for(var t,n=-1,r=this.length,e=this[r-1],o=0;++n<r;)t=e,e=this[n],o+=t[1]*e[0]-t[0]*e[1];return.5*o},po.centroid=function(t){var n,r,e=-1,o=this.length,i=0,u=0,a=this[o-1];for(arguments.length||(t=-1/(6*this.area()));++e<o;)n=a,a=this[e],r=n[0]*a[1]-a[0]*n[1],i+=(n[0]+a[0])*r,u+=(n[1]+a[1])*r;return[i*t,u*t]},po.clip=function(t){for(var n,r,e,o,i,u,a=yo(t),c=-1,s=this.length-yo(this),l=this[s-1];++c<s;){for(n=t.slice(),t.length=0,o=this[c],i=n[(e=n.length-a)-1],r=-1;++r<e;)vo(u=n[r],l,o)?(vo(i,l,o)||t.push(go(i,u,l,o)),t.push(u)):vo(i,l,o)&&t.push(go(i,u,l,o)),i=u;a&&t.push(t[0]),l=o}return t};var mo,xo,bo,Zo,Mo,_o=[],wo=[];function So(){Bo(this),this.edge=this.site=this.circle=null}function jo(t){var n=_o.pop()||new So;return n.site=t,n}function Ao(t){Po(t),bo.remove(t),_o.push(t),Bo(t)}function ko(t){var n=t.circle,r=n.x,e=n.cy,o={x:r,y:e},i=t.P,u=t.N,a=[t];Ao(t);for(var c=i;c.circle&&M(r-c.circle.x)<kt&&M(e-c.circle.cy)<kt;)i=c.P,a.unshift(c),Ao(c),c=i;a.unshift(c),Po(c);for(var s=u;s.circle&&M(r-s.circle.x)<kt&&M(e-s.circle.cy)<kt;)u=s.N,a.push(s),Ao(s),s=u;a.push(s),Po(s);var l,f=a.length;for(l=1;l<f;++l)s=a[l],c=a[l-1],Uo(s.edge,c.site,s.site,o);c=a[0],(s=a[f-1]).edge=Ro(c.site,s.site,null,o),qo(c),qo(s)}function Eo(t){for(var n,r,e,o,i=t.x,u=t.y,a=bo._;a;)if((e=Oo(a,u)-i)>kt)a=a.L;else{if(!((o=i-No(a,u))>kt)){e>-kt?(n=a.P,r=a):o>-kt?(n=a,r=a.N):n=r=a;break}if(!a.R){n=a;break}a=a.R}var c=jo(t);if(bo.insert(n,c),n||r){if(n===r)return Po(n),r=jo(n.site),bo.insert(c,r),c.edge=r.edge=Ro(n.site,c.site),qo(n),void qo(r);if(r){Po(n),Po(r);var s=n.site,l=s.x,f=s.y,h=t.x-l,p=t.y-f,v=r.site,d=v.x-l,g=v.y-f,y=2*(h*g-p*d),m=h*h+p*p,x=d*d+g*g,b={x:(g*m-p*x)/y+l,y:(h*x-d*m)/y+f};Uo(r.edge,s,v,b),c.edge=Ro(s,t,null,b),r.edge=Ro(t,v,null,b),qo(n),qo(r)}else c.edge=Ro(n.site,c.site)}}function Oo(t,n){var r=t.site,e=r.x,o=r.y,i=o-n;if(!i)return e;var u=t.P;if(!u)return-1/0;var a=(r=u.site).x,c=r.y,s=c-n;if(!s)return a;var l=a-e,f=1/i-1/s,h=l/s;return f?(-h+Math.sqrt(h*h-2*f*(l*l/(-2*s)-c+s/2+o-i/2)))/f+e:(e+a)/2}function No(t,n){var r=t.N;if(r)return Oo(r,n);var e=t.site;return e.y===n?e.x:1/0}function Co(t){this.site=t,this.edges=[]}function zo(t,n){return n.angle-t.angle}function To(){Bo(this),this.x=this.y=this.arc=this.site=this.cy=null}function qo(t){var n=t.P,r=t.N;if(n&&r){var e=n.site,o=t.site,i=r.site;if(e!==i){var u=o.x,a=o.y,c=e.x-u,s=e.y-a,l=i.x-u,f=2*(c*(g=i.y-a)-s*l);if(!(f>=-Et)){var h=c*c+s*s,p=l*l+g*g,v=(g*h-s*p)/f,d=(c*p-l*h)/f,g=d+a,y=wo.pop()||new To;y.arc=t,y.site=o,y.x=v+u,y.y=g+Math.sqrt(v*v+d*d),y.cy=g,t.circle=y;for(var m=null,x=Mo._;x;)if(y.y<x.y||y.y===x.y&&y.x<=x.x){if(!x.L){m=x.P;break}x=x.L}else{if(!x.R){m=x;break}x=x.R}Mo.insert(m,y),m||(Zo=y)}}}}function Po(t){var n=t.circle;n&&(n.P||(Zo=n.N),Mo.remove(n),wo.push(n),Bo(n),t.circle=null)}function Lo(t,n){var r=t.b;if(r)return!0;var e,o,i=t.a,u=n[0][0],a=n[1][0],c=n[0][1],s=n[1][1],l=t.l,f=t.r,h=l.x,p=l.y,v=f.x,d=f.y,g=(h+v)/2,y=(p+d)/2;if(d===p){if(g<u||g>=a)return;if(h>v){if(i){if(i.y>=s)return}else i={x:g,y:c};r={x:g,y:s}}else{if(i){if(i.y<c)return}else i={x:g,y:s};r={x:g,y:c}}}else if(o=y-(e=(h-v)/(d-p))*g,e<-1||e>1)if(h>v){if(i){if(i.y>=s)return}else i={x:(c-o)/e,y:c};r={x:(s-o)/e,y:s}}else{if(i){if(i.y<c)return}else i={x:(s-o)/e,y:s};r={x:(c-o)/e,y:c}}else if(p<d){if(i){if(i.x>=a)return}else i={x:u,y:e*u+o};r={x:a,y:e*a+o}}else{if(i){if(i.x<u)return}else i={x:a,y:e*a+o};r={x:u,y:e*u+o}}return t.a=i,t.b=r,!0}function Do(t,n){this.l=t,this.r=n,this.a=this.b=null}function Ro(t,n,r,e){var o=new Do(t,n);return mo.push(o),r&&Uo(o,t,n,r),e&&Uo(o,n,t,e),xo[t.i].edges.push(new Io(o,t,n)),xo[n.i].edges.push(new Io(o,n,t)),o}function Uo(t,n,r,e){t.a||t.b?t.l===r?t.b=e:t.a=e:(t.a=e,t.l=n,t.r=r)}function Io(t,n,r){var e=t.a,o=t.b;this.edge=t,this.site=n,this.angle=r?Math.atan2(r.y-n.y,r.x-n.x):t.l===n?Math.atan2(o.x-e.x,e.y-o.y):Math.atan2(e.x-o.x,o.y-e.y)}function Fo(){this._=null}function Bo(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Ho(t,n){var r=n,e=n.R,o=r.U;o?o.L===r?o.L=e:o.R=e:t._=e,e.U=o,r.U=e,r.R=e.L,r.R&&(r.R.U=r),e.L=r}function Wo(t,n){var r=n,e=n.L,o=r.U;o?o.L===r?o.L=e:o.R=e:t._=e,e.U=o,r.U=e,r.L=e.R,r.L&&(r.L.U=r),e.R=r}function Yo(t){for(;t.L;)t=t.L;return t}function Vo(t,n){var r,e,o,i=t.sort($o).pop();for(mo=[],xo=new Array(t.length),bo=new Fo,Mo=new Fo;;)if(o=Zo,i&&(!o||i.y<o.y||i.y===o.y&&i.x<o.x))i.x===r&&i.y===e||(xo[i.i]=new Co(i),Eo(i),r=i.x,e=i.y),i=t.pop();else{if(!o)break;ko(o.arc)}n&&(function(t){for(var n,r=mo,e=se(t[0][0],t[0][1],t[1][0],t[1][1]),o=r.length;o--;)(!Lo(n=r[o],t)||!e(n)||M(n.a.x-n.b.x)<kt&&M(n.a.y-n.b.y)<kt)&&(n.a=n.b=null,r.splice(o,1))}(n),function(t){for(var n,r,e,o,i,u,a,c,s,l,f=t[0][0],h=t[1][0],p=t[0][1],v=t[1][1],d=xo,g=d.length;g--;)if((i=d[g])&&i.prepare())for(c=(a=i.edges).length,u=0;u<c;)e=(l=a[u].end()).x,o=l.y,n=(s=a[++u%c].start()).x,r=s.y,(M(e-n)>kt||M(o-r)>kt)&&(a.splice(u,0,new Io((y=i.site,m=l,x=M(e-f)<kt&&v-o>kt?{x:f,y:M(n-f)<kt?r:v}:M(o-v)<kt&&h-e>kt?{x:M(r-v)<kt?n:h,y:v}:M(e-h)<kt&&o-p>kt?{x:h,y:M(n-h)<kt?r:p}:M(o-p)<kt&&e-f>kt?{x:M(r-p)<kt?n:f,y:p}:null,b=void 0,(b=new Do(y,null)).a=m,b.b=x,mo.push(b),b),i.site,null)),++c);var y,m,x,b}(n));var u={cells:xo,edges:mo};return bo=Mo=mo=xo=null,u}function $o(t,n){return n.y-t.y||n.x-t.x}Co.prototype.prepare=function(){for(var t,n=this.edges,r=n.length;r--;)(t=n[r].edge).b&&t.a||n.splice(r,1);return n.sort(zo),n.length},Io.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}},Fo.prototype={insert:function(t,n){var r,e,o;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;r=t}else this._?(t=Yo(this._),n.P=null,n.N=t,t.P=t.L=n,r=t):(n.P=n.N=null,this._=n,r=null);for(n.L=n.R=null,n.U=r,n.C=!0,t=n;r&&r.C;)r===(e=r.U).L?(o=e.R)&&o.C?(r.C=o.C=!1,e.C=!0,t=e):(t===r.R&&(Ho(this,r),r=(t=r).U),r.C=!1,e.C=!0,Wo(this,e)):(o=e.L)&&o.C?(r.C=o.C=!1,e.C=!0,t=e):(t===r.L&&(Wo(this,r),r=(t=r).U),r.C=!1,e.C=!0,Ho(this,e)),r=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,r,e,o=t.U,i=t.L,u=t.R;if(r=i?u?Yo(u):i:u,o?o.L===t?o.L=r:o.R=r:this._=r,i&&u?(e=r.C,r.C=t.C,r.L=i,i.U=r,r!==u?(o=r.U,r.U=t.U,t=r.R,o.L=t,r.R=u,u.U=r):(r.U=o,o=r,t=r.R)):(e=t.C,t=r),t&&(t.U=o),!e)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===o.L){if((n=o.R).C&&(n.C=!1,o.C=!0,Ho(this,o),n=o.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,Wo(this,n),n=o.R),n.C=o.C,o.C=n.R.C=!1,Ho(this,o),t=this._;break}}else if((n=o.L).C&&(n.C=!1,o.C=!0,Wo(this,o),n=o.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,Ho(this,n),n=o.L),n.C=o.C,o.C=n.L.C=!1,Wo(this,o),t=this._;break}n.C=!0,t=o,o=o.U}while(!t.C);t&&(t.C=!1)}}},i.geom.voronoi=function(t){var n=so,r=lo,e=n,o=r,i=Xo;if(t)return u(t);function u(t){var n=new Array(t.length),r=i[0][0],e=i[0][1],o=i[1][0],u=i[1][1];return Vo(a(t),i).cells.forEach((function(i,a){var c=i.edges,s=i.site;(n[a]=c.length?c.map((function(t){var n=t.start();return[n.x,n.y]})):s.x>=r&&s.x<=o&&s.y>=e&&s.y<=u?[[r,u],[o,u],[o,e],[r,e]]:[]).point=t[a]})),n}function a(t){return t.map((function(t,n){return{x:Math.round(e(t,n)/kt)*kt,y:Math.round(o(t,n)/kt)*kt,i:n}}))}return u.links=function(t){return Vo(a(t)).edges.filter((function(t){return t.l&&t.r})).map((function(n){return{source:t[n.l.i],target:t[n.r.i]}}))},u.triangles=function(t){var n=[];return Vo(a(t)).cells.forEach((function(r,e){for(var o,i,u,a,c=r.site,s=r.edges.sort(zo),l=-1,f=s.length,h=s[f-1].edge,p=h.l===c?h.r:h.l;++l<f;)o=p,p=(h=s[l].edge).l===c?h.r:h.l,e<o.i&&e<p.i&&(u=o,a=p,((i=c).x-a.x)*(u.y-i.y)-(i.x-u.x)*(a.y-i.y)<0)&&n.push([t[e],t[o.i],t[p.i]])})),n},u.x=function(t){return arguments.length?(e=Zn(n=t),u):n},u.y=function(t){return arguments.length?(o=Zn(r=t),u):r},u.clipExtent=function(t){return arguments.length?(i=null==t?Xo:t,u):i===Xo?null:i},u.size=function(t){return arguments.length?u.clipExtent(t&&[[0,0],t]):i===Xo?null:i&&i[1]},u};var Xo=[[-1e6,-1e6],[1e6,1e6]];function Jo(t){return t.x}function Ko(t){return t.y}function Go(t,n,r,e,o,i){if(!t(n,r,e,o,i)){var u=.5*(r+o),a=.5*(e+i),c=n.nodes;c[0]&&Go(t,c[0],r,e,u,a),c[1]&&Go(t,c[1],u,e,o,a),c[2]&&Go(t,c[2],r,a,u,i),c[3]&&Go(t,c[3],u,a,o,i)}}function Qo(t,n,r,e,o,i,u){var a,c=1/0;return function t(s,l,f,h,p){if(!(l>i||f>u||h<e||p<o)){if(v=s.point){var v,d=n-s.x,g=r-s.y,y=d*d+g*g;if(y<c){var m=Math.sqrt(c=y);e=n-m,o=r-m,i=n+m,u=r+m,a=v}}for(var x=s.nodes,b=.5*(l+h),Z=.5*(f+p),M=(r>=Z)<<1|n>=b,_=M+4;M<_;++M)if(s=x[3&M])switch(3&M){case 0:t(s,l,f,b,Z);break;case 1:t(s,b,f,h,Z);break;case 2:t(s,l,Z,b,p);break;case 3:t(s,b,Z,h,p)}}}(t,e,o,i,u),a}function ti(t,n){t=i.rgb(t),n=i.rgb(n);var r=t.r,e=t.g,o=t.b,u=n.r-r,a=n.g-e,c=n.b-o;return function(t){return"#"+vn(Math.round(r+u*t))+vn(Math.round(e+a*t))+vn(Math.round(o+c*t))}}function ni(t,n){var r,e={},o={};for(r in t)r in n?e[r]=ui(t[r],n[r]):o[r]=t[r];for(r in n)r in t||(o[r]=n[r]);return function(t){for(r in e)o[r]=e[r](t);return o}}function ri(t,n){return t=+t,n=+n,function(r){return t*(1-r)+n*r}}function ei(t,n){var r,e,o,i=oi.lastIndex=ii.lastIndex=0,u=-1,a=[],c=[];for(t+="",n+="";(r=oi.exec(t))&&(e=ii.exec(n));)(o=e.index)>i&&(o=n.slice(i,o),a[u]?a[u]+=o:a[++u]=o),(r=r[0])===(e=e[0])?a[u]?a[u]+=e:a[++u]=e:(a[++u]=null,c.push({i:u,x:ri(r,e)})),i=ii.lastIndex;return i<n.length&&(o=n.slice(i),a[u]?a[u]+=o:a[++u]=o),a.length<2?c[0]?(n=c[0].x,function(t){return n(t)+""}):function(){return n}:(n=c.length,function(t){for(var r,e=0;e<n;++e)a[(r=c[e]).i]=r.x(t);return a.join("")})}i.geom.delaunay=function(t){return i.geom.voronoi().triangles(t)},i.geom.quadtree=function(t,n,r,e,o){var i,u=so,a=lo;if(i=arguments.length)return u=Jo,a=Ko,3===i&&(o=r,e=n,r=n=0),c(t);function c(t){var c,s,l,f,h,p,v,d,g,y=Zn(u),m=Zn(a);if(null!=n)p=n,v=r,d=e,g=o;else if(d=g=-(p=v=1/0),s=[],l=[],h=t.length,i)for(f=0;f<h;++f)(c=t[f]).x<p&&(p=c.x),c.y<v&&(v=c.y),c.x>d&&(d=c.x),c.y>g&&(g=c.y),s.push(c.x),l.push(c.y);else for(f=0;f<h;++f){var x=+y(c=t[f],f),b=+m(c,f);x<p&&(p=x),b<v&&(v=b),x>d&&(d=x),b>g&&(g=b),s.push(x),l.push(b)}var Z=d-p,_=g-v;function w(t,n,r,e,o,i,u,a){if(!isNaN(r)&&!isNaN(e))if(t.leaf){var c=t.x,s=t.y;if(null!=c)if(M(c-r)+M(s-e)<.01)S(t,n,r,e,o,i,u,a);else{var l=t.point;t.x=t.y=t.point=null,S(t,l,c,s,o,i,u,a),S(t,n,r,e,o,i,u,a)}else t.x=r,t.y=e,t.point=n}else S(t,n,r,e,o,i,u,a)}function S(t,n,r,e,o,i,u,a){var c=.5*(o+u),s=.5*(i+a),l=r>=c,f=e>=s,h=f<<1|l;t.leaf=!1,l?o=c:u=c,f?i=s:a=s,w(t=t.nodes[h]||(t.nodes[h]={leaf:!0,nodes:[],point:null,x:null,y:null}),n,r,e,o,i,u,a)}Z>_?g=v+Z:d=p+_;var j={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(t){w(j,t,+y(t,++f),+m(t,f),p,v,d,g)},visit:function(t){Go(t,j,p,v,d,g)},find:function(t){return Qo(j,t[0],t[1],p,v,d,g)}};if(f=-1,null==n){for(;++f<h;)w(j,t[f],s[f],l[f],p,v,d,g);--f}else t.forEach(j.add);return s=l=t=c=null,j}return c.x=function(t){return arguments.length?(u=t,c):u},c.y=function(t){return arguments.length?(a=t,c):a},c.extent=function(t){return arguments.length?(null==t?n=r=e=o=null:(n=+t[0][0],r=+t[0][1],e=+t[1][0],o=+t[1][1]),c):null==n?null:[[n,r],[e,o]]},c.size=function(t){return arguments.length?(null==t?n=r=e=o=null:(n=r=0,e=+t[0],o=+t[1]),c):null==n?null:[e-n,o-r]},c},i.interpolateRgb=ti,i.interpolateObject=ni,i.interpolateNumber=ri,i.interpolateString=ei;var oi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ii=new RegExp(oi.source,"g");function ui(t,n){for(var r,e=i.interpolators.length;--e>=0&&!(r=i.interpolators[e](t,n)););return r}function ai(t,n){var r,e=[],o=[],i=t.length,u=n.length,a=Math.min(t.length,n.length);for(r=0;r<a;++r)e.push(ui(t[r],n[r]));for(;r<i;++r)o[r]=t[r];for(;r<u;++r)o[r]=n[r];return function(t){for(r=0;r<a;++r)o[r]=e[r](t);return o}}i.interpolate=ui,i.interpolators=[function(t,n){var r=typeof n;return("string"===r?bn.has(n.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(n)?ti:ei:n instanceof Yt?ti:Array.isArray(n)?ai:"object"===r&&isNaN(n)?ni:ri)(t,n)}],i.interpolateArray=ai;var ci=function(){return T},si=i.map({linear:ci,poly:function(t){return function(n){return Math.pow(n,t)}},quad:function(){return vi},cubic:function(){return di},sin:function(){return yi},exp:function(){return mi},circle:function(){return xi},elastic:function(t,n){var r;return arguments.length<2&&(n=.45),arguments.length?r=n/Nt*Math.asin(1/t):(t=1,r=n/4),function(e){return 1+t*Math.pow(2,-10*e)*Math.sin((e-r)*Nt/n)}},back:function(t){return t||(t=1.70158),function(n){return n*n*((t+1)*n-t)}},bounce:function(){return bi}}),li=i.map({in:T,out:hi,"in-out":pi,"out-in":function(t){return pi(hi(t))}});function fi(t){return function(n){return n<=0?0:n>=1?1:t(n)}}function hi(t){return function(n){return 1-t(1-n)}}function pi(t){return function(n){return.5*(n<.5?t(2*n):2-t(2-2*n))}}function vi(t){return t*t}function di(t){return t*t*t}function gi(t){if(t<=0)return 0;if(t>=1)return 1;var n=t*t,r=n*t;return 4*(t<.5?r:3*(t-n)+r-.75)}function yi(t){return 1-Math.cos(t*zt)}function mi(t){return Math.pow(2,10*(t-1))}function xi(t){return 1-Math.sqrt(1-t*t)}function bi(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function Zi(t,n){return n-=t,function(r){return Math.round(t+n*r)}}function Mi(t){var n,r,e,o=[t.a,t.b],i=[t.c,t.d],u=wi(o),a=_i(o,i),c=wi(((n=i)[0]+=(e=-a)*(r=o)[0],n[1]+=e*r[1],n))||0;o[0]*i[1]<i[0]*o[1]&&(o[0]*=-1,o[1]*=-1,u*=-1,a*=-1),this.rotate=(u?Math.atan2(o[1],o[0]):Math.atan2(-i[0],i[1]))*qt,this.translate=[t.e,t.f],this.scale=[u,c],this.skew=c?Math.atan2(a,c)*qt:0}function _i(t,n){return t[0]*n[0]+t[1]*n[1]}function wi(t){var n=Math.sqrt(_i(t,t));return n&&(t[0]/=n,t[1]/=n),n}i.ease=function(t){var n=t.indexOf("-"),r=n>=0?t.slice(0,n):t,e=n>=0?t.slice(n+1):"in";return r=si.get(r)||ci,fi((e=li.get(e)||T)(r.apply(null,u.call(arguments,1))))},i.interpolateHcl=function(t,n){t=i.hcl(t),n=i.hcl(n);var r=t.h,e=t.c,o=t.l,u=n.h-r,a=n.c-e,c=n.l-o;return isNaN(a)&&(a=0,e=isNaN(e)?n.c:e),isNaN(u)?(u=0,r=isNaN(r)?n.h:r):u>180?u-=360:u<-180&&(u+=360),function(t){return Gt(r+u*t,e+a*t,o+c*t)+""}},i.interpolateHsl=function(t,n){t=i.hsl(t),n=i.hsl(n);var r=t.h,e=t.s,o=t.l,u=n.h-r,a=n.s-e,c=n.l-o;return isNaN(a)&&(a=0,e=isNaN(e)?n.s:e),isNaN(u)?(u=0,r=isNaN(r)?n.h:r):u>180?u-=360:u<-180&&(u+=360),function(t){return Xt(r+u*t,e+a*t,o+c*t)+""}},i.interpolateLab=function(t,n){t=i.lab(t),n=i.lab(n);var r=t.l,e=t.a,o=t.b,u=n.l-r,a=n.a-e,c=n.b-o;return function(t){return on(r+u*t,e+a*t,o+c*t)+""}},i.interpolateRound=Zi,i.transform=function(t){var n=c.createElementNS(i.ns.prefix.svg,"g");return(i.transform=function(t){if(null!=t){n.setAttribute("transform",t);var r=n.transform.baseVal.consolidate()}return new Mi(r?r.matrix:Si)})(t)},Mi.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var Si={a:1,b:0,c:0,d:1,e:0,f:0};function ji(t){return t.length?t.pop()+",":""}function Ai(t,n){var r=[],e=[];return t=i.transform(t),n=i.transform(n),function(t,n,r,e){if(t[0]!==n[0]||t[1]!==n[1]){var o=r.push("translate(",null,",",null,")");e.push({i:o-4,x:ri(t[0],n[0])},{i:o-2,x:ri(t[1],n[1])})}else(n[0]||n[1])&&r.push("translate("+n+")")}(t.translate,n.translate,r,e),function(t,n,r,e){t!==n?(t-n>180?n+=360:n-t>180&&(t+=360),e.push({i:r.push(ji(r)+"rotate(",null,")")-2,x:ri(t,n)})):n&&r.push(ji(r)+"rotate("+n+")")}(t.rotate,n.rotate,r,e),function(t,n,r,e){t!==n?e.push({i:r.push(ji(r)+"skewX(",null,")")-2,x:ri(t,n)}):n&&r.push(ji(r)+"skewX("+n+")")}(t.skew,n.skew,r,e),function(t,n,r,e){if(t[0]!==n[0]||t[1]!==n[1]){var o=r.push(ji(r)+"scale(",null,",",null,")");e.push({i:o-4,x:ri(t[0],n[0])},{i:o-2,x:ri(t[1],n[1])})}else 1===n[0]&&1===n[1]||r.push(ji(r)+"scale("+n+")")}(t.scale,n.scale,r,e),t=n=null,function(t){for(var n,o=-1,i=e.length;++o<i;)r[(n=e[o]).i]=n.x(t);return r.join("")}}function ki(t,n){return n=(n-=t=+t)||1/n,function(r){return(r-t)/n}}function Ei(t,n){return n=(n-=t=+t)||1/n,function(r){return Math.max(0,Math.min(1,(r-t)/n))}}function Oi(t){for(var n=t.source,r=t.target,e=function(t,n){if(t===n)return t;for(var r=Ni(t),e=Ni(n),o=r.pop(),i=e.pop(),u=null;o===i;)u=o,o=r.pop(),i=e.pop();return u}(n,r),o=[n];n!==e;)n=n.parent,o.push(n);for(var i=o.length;r!==e;)o.splice(i,0,r),r=r.parent;return o}function Ni(t){for(var n=[],r=t.parent;null!=r;)n.push(t),t=r,r=r.parent;return n.push(t),n}function Ci(t){t.fixed|=2}function zi(t){t.fixed&=-7}function Ti(t){t.fixed|=4,t.px=t.x,t.py=t.y}function qi(t){t.fixed&=-5}function Pi(t,n,r){var e=0,o=0;if(t.charge=0,!t.leaf)for(var i,u=t.nodes,a=u.length,c=-1;++c<a;)null!=(i=u[c])&&(Pi(i,n,r),t.charge+=i.charge,e+=i.charge*i.cx,o+=i.charge*i.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var s=n*r[t.point.index];t.charge+=t.pointCharge=s,e+=s*t.point.x,o+=s*t.point.y}t.cx=e/t.charge,t.cy=o/t.charge}i.interpolateTransform=Ai,i.layout={},i.layout.bundle=function(){return function(t){for(var n=[],r=-1,e=t.length;++r<e;)n.push(Oi(t[r]));return n}},i.layout.chord=function(){var t,n,r,e,o,u,a,c={},s=0;function l(){var c,l,h,p,v,d={},g=[],y=i.range(e),m=[];for(t=[],n=[],c=0,p=-1;++p<e;){for(l=0,v=-1;++v<e;)l+=r[p][v];g.push(l),m.push(i.range(e)),c+=l}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(r[n][t],r[n][e])}))})),c=(Nt-s*e)/c,l=0,p=-1;++p<e;){for(h=l,v=-1;++v<e;){var x=y[p],b=m[x][v],Z=r[x][b],M=l,_=l+=Z*c;d[x+"-"+b]={index:x,subindex:b,startAngle:M,endAngle:_,value:Z}}n[x]={index:x,startAngle:h,endAngle:l,value:g[x]},l+=s}for(p=-1;++p<e;)for(v=p-1;++v<e;){var w=d[p+"-"+v],S=d[v+"-"+p];(w.value||S.value)&&t.push(w.value<S.value?{source:S,target:w}:{source:w,target:S})}a&&f()}function f(){t.sort((function(t,n){return a((t.source.value+t.target.value)/2,(n.source.value+n.target.value)/2)}))}return c.matrix=function(o){return arguments.length?(e=(r=o)&&r.length,t=n=null,c):r},c.padding=function(r){return arguments.length?(s=r,t=n=null,c):s},c.sortGroups=function(r){return arguments.length?(o=r,t=n=null,c):o},c.sortSubgroups=function(n){return arguments.length?(u=n,t=null,c):u},c.sortChords=function(n){return arguments.length?(a=n,t&&f(),c):a},c.chords=function(){return t||l(),t},c.groups=function(){return n||l(),n},c},i.layout.force=function(){var t,n,r,e,o,u,a={},c=i.dispatch("start","tick","end"),s=[1,1],l=.9,f=Li,h=Di,p=-30,v=Ri,d=.1,g=.64,y=[],m=[];function x(t){return function(n,r,e,o){if(n.point!==t){var i=n.cx-t.x,u=n.cy-t.y,a=o-r,c=i*i+u*u;if(a*a/g<c){if(c<v){var s=n.charge/c;t.px-=i*s,t.py-=u*s}return!0}n.point&&c&&c<v&&(s=n.pointCharge/c,t.px-=i*s,t.py-=u*s)}return!n.charge}}function b(t){t.px=i.event.x,t.py=i.event.y,a.resume()}return a.tick=function(){if((r*=.99)<.005)return t=null,c.end({type:"end",alpha:r=0}),!0;var n,a,f,h,v,g,b,Z,M,_=y.length,w=m.length;for(a=0;a<w;++a)h=(f=m[a]).source,(g=(Z=(v=f.target).x-h.x)*Z+(M=v.y-h.y)*M)&&(Z*=g=r*o[a]*((g=Math.sqrt(g))-e[a])/g,M*=g,v.x-=Z*(b=h.weight+v.weight?h.weight/(h.weight+v.weight):.5),v.y-=M*b,h.x+=Z*(b=1-b),h.y+=M*b);if((b=r*d)&&(Z=s[0]/2,M=s[1]/2,a=-1,b))for(;++a<_;)(f=y[a]).x+=(Z-f.x)*b,f.y+=(M-f.y)*b;if(p)for(Pi(n=i.geom.quadtree(y),r,u),a=-1;++a<_;)(f=y[a]).fixed||n.visit(x(f));for(a=-1;++a<_;)(f=y[a]).fixed?(f.x=f.px,f.y=f.py):(f.x-=(f.px-(f.px=f.x))*l,f.y-=(f.py-(f.py=f.y))*l);c.tick({type:"tick",alpha:r})},a.nodes=function(t){return arguments.length?(y=t,a):y},a.links=function(t){return arguments.length?(m=t,a):m},a.size=function(t){return arguments.length?(s=t,a):s},a.linkDistance=function(t){return arguments.length?(f="function"==typeof t?t:+t,a):f},a.distance=a.linkDistance,a.linkStrength=function(t){return arguments.length?(h="function"==typeof t?t:+t,a):h},a.friction=function(t){return arguments.length?(l=+t,a):l},a.charge=function(t){return arguments.length?(p="function"==typeof t?t:+t,a):p},a.chargeDistance=function(t){return arguments.length?(v=t*t,a):Math.sqrt(v)},a.gravity=function(t){return arguments.length?(d=+t,a):d},a.theta=function(t){return arguments.length?(g=t*t,a):Math.sqrt(g)},a.alpha=function(n){return arguments.length?(n=+n,r?n>0?r=n:(t.c=null,t.t=NaN,t=null,c.end({type:"end",alpha:r=0})):n>0&&(c.start({type:"start",alpha:r=n}),t=En(a.tick)),a):r},a.start=function(){var t,n,r,i=y.length,c=m.length,l=s[0],v=s[1];for(t=0;t<i;++t)(r=y[t]).index=t,r.weight=0;for(t=0;t<c;++t)"number"==typeof(r=m[t]).source&&(r.source=y[r.source]),"number"==typeof r.target&&(r.target=y[r.target]),++r.source.weight,++r.target.weight;for(t=0;t<i;++t)r=y[t],isNaN(r.x)&&(r.x=d("x",l)),isNaN(r.y)&&(r.y=d("y",v)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(e=[],"function"==typeof f)for(t=0;t<c;++t)e[t]=+f.call(this,m[t],t);else for(t=0;t<c;++t)e[t]=f;if(o=[],"function"==typeof h)for(t=0;t<c;++t)o[t]=+h.call(this,m[t],t);else for(t=0;t<c;++t)o[t]=h;if(u=[],"function"==typeof p)for(t=0;t<i;++t)u[t]=+p.call(this,y[t],t);else for(t=0;t<i;++t)u[t]=p;function d(r,e){if(!n){for(n=new Array(i),s=0;s<i;++s)n[s]=[];for(s=0;s<c;++s){var o=m[s];n[o.source.index].push(o.target),n[o.target.index].push(o.source)}}for(var u,a=n[t],s=-1,l=a.length;++s<l;)if(!isNaN(u=a[s][r]))return u;return Math.random()*e}return a.resume()},a.resume=function(){return a.alpha(.1)},a.stop=function(){return a.alpha(0)},a.drag=function(){if(n||(n=i.behavior.drag().origin(T).on("dragstart.force",Ci).on("drag.force",b).on("dragend.force",zi)),!arguments.length)return n;this.on("mouseover.force",Ti).on("mouseout.force",qi).call(n)},i.rebind(a,c,"on")};var Li=20,Di=1,Ri=1/0;function Ui(t,n){return i.rebind(t,n,"sort","children","value"),t.nodes=t,t.links=Yi,t}function Ii(t,n){for(var r=[t];null!=(t=r.pop());)if(n(t),(o=t.children)&&(e=o.length))for(var e,o;--e>=0;)r.push(o[e])}function Fi(t,n){for(var r=[t],e=[];null!=(t=r.pop());)if(e.push(t),(i=t.children)&&(o=i.length))for(var o,i,u=-1;++u<o;)r.push(i[u]);for(;null!=(t=e.pop());)n(t)}function Bi(t){return t.children}function Hi(t){return t.value}function Wi(t,n){return n.value-t.value}function Yi(t){return i.merge(t.map((function(t){return(t.children||[]).map((function(n){return{source:t,target:n}}))})))}i.layout.hierarchy=function(){var t=Wi,n=Bi,r=Hi;function e(o){var i,u=[o],a=[];for(o.depth=0;null!=(i=u.pop());)if(a.push(i),(s=n.call(e,i,i.depth))&&(c=s.length)){for(var c,s,l;--c>=0;)u.push(l=s[c]),l.parent=i,l.depth=i.depth+1;r&&(i.value=0),i.children=s}else r&&(i.value=+r.call(e,i,i.depth)||0),delete i.children;return Fi(o,(function(n){var e,o;t&&(e=n.children)&&e.sort(t),r&&(o=n.parent)&&(o.value+=n.value)})),a}return e.sort=function(n){return arguments.length?(t=n,e):t},e.children=function(t){return arguments.length?(n=t,e):n},e.value=function(t){return arguments.length?(r=t,e):r},e.revalue=function(t){return r&&(Ii(t,(function(t){t.children&&(t.value=0)})),Fi(t,(function(t){var n;t.children||(t.value=+r.call(e,t,t.depth)||0),(n=t.parent)&&(n.value+=t.value)}))),t},e},i.layout.partition=function(){var t=i.layout.hierarchy(),n=[1,1];function r(t,n,e,o){var i=t.children;if(t.x=n,t.y=t.depth*o,t.dx=e,t.dy=o,i&&(u=i.length)){var u,a,c,s=-1;for(e=t.value?e/t.value:0;++s<u;)r(a=i[s],n,c=a.value*e,o),n+=c}}function e(t){var n=t.children,r=0;if(n&&(o=n.length))for(var o,i=-1;++i<o;)r=Math.max(r,e(n[i]));return 1+r}function o(o,i){var u=t.call(this,o,i);return r(u[0],0,n[0],n[1]/e(u[0])),u}return o.size=function(t){return arguments.length?(n=t,o):n},Ui(o,t)},i.layout.pie=function(){var t=Number,n=Vi,r=0,e=Nt,o=0;function u(a){var c,s=a.length,l=a.map((function(n,r){return+t.call(u,n,r)})),f=+("function"==typeof r?r.apply(this,arguments):r),h=("function"==typeof e?e.apply(this,arguments):e)-f,p=Math.min(Math.abs(h)/s,+("function"==typeof o?o.apply(this,arguments):o)),v=p*(h<0?-1:1),d=i.sum(l),g=d?(h-s*v)/d:0,y=i.range(s),m=[];return null!=n&&y.sort(n===Vi?function(t,n){return l[n]-l[t]}:function(t,r){return n(a[t],a[r])}),y.forEach((function(t){m[t]={data:a[t],value:c=l[t],startAngle:f,endAngle:f+=c*g+v,padAngle:p}})),m}return u.value=function(n){return arguments.length?(t=n,u):t},u.sort=function(t){return arguments.length?(n=t,u):n},u.startAngle=function(t){return arguments.length?(r=t,u):r},u.endAngle=function(t){return arguments.length?(e=t,u):e},u.padAngle=function(t){return arguments.length?(o=t,u):o},u};var Vi={};function $i(t){return t.x}function Xi(t){return t.y}function Ji(t,n,r){t.y0=n,t.y=r}i.layout.stack=function(){var t=T,n=Qi,r=tu,e=Ji,o=$i,u=Xi;function a(c,s){if(!(p=c.length))return c;var l=c.map((function(n,r){return t.call(a,n,r)})),f=l.map((function(t){return t.map((function(t,n){return[o.call(a,t,n),u.call(a,t,n)]}))})),h=n.call(a,f,s);l=i.permute(l,h),f=i.permute(f,h);var p,v,d,g,y=r.call(a,f,s),m=l[0].length;for(d=0;d<m;++d)for(e.call(a,l[0][d],g=y[d],f[0][d][1]),v=1;v<p;++v)e.call(a,l[v][d],g+=f[v-1][d][1],f[v][d][1]);return c}return a.values=function(n){return arguments.length?(t=n,a):t},a.order=function(t){return arguments.length?(n="function"==typeof t?t:Ki.get(t)||Qi,a):n},a.offset=function(t){return arguments.length?(r="function"==typeof t?t:Gi.get(t)||tu,a):r},a.x=function(t){return arguments.length?(o=t,a):o},a.y=function(t){return arguments.length?(u=t,a):u},a.out=function(t){return arguments.length?(e=t,a):e},a};var Ki=i.map({"inside-out":function(t){var n,r,e=t.length,o=t.map(nu),u=t.map(ru),a=i.range(e).sort((function(t,n){return o[t]-o[n]})),c=0,s=0,l=[],f=[];for(n=0;n<e;++n)r=a[n],c<s?(c+=u[r],l.push(r)):(s+=u[r],f.push(r));return f.reverse().concat(l)},reverse:function(t){return i.range(t.length).reverse()},default:Qi}),Gi=i.map({silhouette:function(t){var n,r,e,o=t.length,i=t[0].length,u=[],a=0,c=[];for(r=0;r<i;++r){for(n=0,e=0;n<o;n++)e+=t[n][r][1];e>a&&(a=e),u.push(e)}for(r=0;r<i;++r)c[r]=(a-u[r])/2;return c},wiggle:function(t){var n,r,e,o,i,u,a,c,s,l=t.length,f=t[0],h=f.length,p=[];for(p[0]=c=s=0,r=1;r<h;++r){for(n=0,o=0;n<l;++n)o+=t[n][r][1];for(n=0,i=0,a=f[r][0]-f[r-1][0];n<l;++n){for(e=0,u=(t[n][r][1]-t[n][r-1][1])/(2*a);e<n;++e)u+=(t[e][r][1]-t[e][r-1][1])/a;i+=u*t[n][r][1]}p[r]=c-=o?i/o*a:0,c<s&&(s=c)}for(r=0;r<h;++r)p[r]-=s;return p},expand:function(t){var n,r,e,o=t.length,i=t[0].length,u=1/o,a=[];for(r=0;r<i;++r){for(n=0,e=0;n<o;n++)e+=t[n][r][1];if(e)for(n=0;n<o;n++)t[n][r][1]/=e;else for(n=0;n<o;n++)t[n][r][1]=u}for(r=0;r<i;++r)a[r]=0;return a},zero:tu});function Qi(t){return i.range(t.length)}function tu(t){for(var n=-1,r=t[0].length,e=[];++n<r;)e[n]=0;return e}function nu(t){for(var n,r=1,e=0,o=t[0][1],i=t.length;r<i;++r)(n=t[r][1])>o&&(e=r,o=n);return e}function ru(t){return t.reduce(eu,0)}function eu(t,n){return t+n[1]}function ou(t,n){return iu(t,Math.ceil(Math.log(n.length)/Math.LN2+1))}function iu(t,n){for(var r=-1,e=+t[0],o=(t[1]-e)/n,i=[];++r<=n;)i[r]=o*r+e;return i}function uu(t){return[i.min(t),i.max(t)]}function au(t,n){return t.value-n.value}function cu(t,n){var r=t._pack_next;t._pack_next=n,n._pack_prev=t,n._pack_next=r,r._pack_prev=n}function su(t,n){t._pack_next=n,n._pack_prev=t}function lu(t,n){var r=n.x-t.x,e=n.y-t.y,o=t.r+n.r;return.999*o*o>r*r+e*e}function fu(t){if((n=t.children)&&(c=n.length)){var n,r,e,o,i,u,a,c,s=1/0,l=-1/0,f=1/0,h=-1/0;if(n.forEach(hu),(r=n[0]).x=-r.r,r.y=0,x(r),c>1&&((e=n[1]).x=e.r,e.y=0,x(e),c>2))for(du(r,e,o=n[2]),x(o),cu(r,o),r._pack_prev=o,cu(o,e),e=r._pack_next,i=3;i<c;i++){du(r,e,o=n[i]);var p=0,v=1,d=1;for(u=e._pack_next;u!==e;u=u._pack_next,v++)if(lu(u,o)){p=1;break}if(1==p)for(a=r._pack_prev;a!==u._pack_prev&&!lu(a,o);a=a._pack_prev,d++);p?(v<d||v==d&&e.r<r.r?su(r,e=u):su(r=a,e),i--):(cu(r,o),e=o,x(o))}var g=(s+l)/2,y=(f+h)/2,m=0;for(i=0;i<c;i++)(o=n[i]).x-=g,o.y-=y,m=Math.max(m,o.r+Math.sqrt(o.x*o.x+o.y*o.y));t.r=m,n.forEach(pu)}function x(t){s=Math.min(t.x-t.r,s),l=Math.max(t.x+t.r,l),f=Math.min(t.y-t.r,f),h=Math.max(t.y+t.r,h)}}function hu(t){t._pack_next=t._pack_prev=t}function pu(t){delete t._pack_next,delete t._pack_prev}function vu(t,n,r,e){var o=t.children;if(t.x=n+=e*t.x,t.y=r+=e*t.y,t.r*=e,o)for(var i=-1,u=o.length;++i<u;)vu(o[i],n,r,e)}function du(t,n,r){var e=t.r+r.r,o=n.x-t.x,i=n.y-t.y;if(e&&(o||i)){var u=n.r+r.r,a=o*o+i*i,c=.5+((e*=e)-(u*=u))/(2*a),s=Math.sqrt(Math.max(0,2*u*(e+a)-(e-=a)*e-u*u))/(2*a);r.x=t.x+c*o+s*i,r.y=t.y+c*i-s*o}else r.x=t.x+e,r.y=t.y}function gu(t,n){return t.parent==n.parent?1:2}function yu(t){var n=t.children;return n.length?n[0]:t.t}function mu(t){var n,r=t.children;return(n=r.length)?r[n-1]:t.t}function xu(t,n,r){var e=r/(n.i-t.i);n.c-=e,n.s+=r,t.c+=e,n.z+=r,n.m+=r}function bu(t,n,r){return t.a.parent===n.parent?t.a:r}function Zu(t){var n=t.children;return n&&n.length?Zu(n[0]):t}function Mu(t){var n,r=t.children;return r&&(n=r.length)?Mu(r[n-1]):t}function _u(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function wu(t,n){var r=t.x+n[3],e=t.y+n[0],o=t.dx-n[1]-n[3],i=t.dy-n[0]-n[2];return o<0&&(r+=o/2,o=0),i<0&&(e+=i/2,i=0),{x:r,y:e,dx:o,dy:i}}function Su(t){var n=t[0],r=t[t.length-1];return n<r?[n,r]:[r,n]}function ju(t){return t.rangeExtent?t.rangeExtent():Su(t.range())}function Au(t,n,r,e){var o=r(t[0],t[1]),i=e(n[0],n[1]);return function(t){return i(o(t))}}function ku(t,n){var r,e=0,o=t.length-1,i=t[e],u=t[o];return u<i&&(r=e,e=o,o=r,r=i,i=u,u=r),t[e]=n.floor(i),t[o]=n.ceil(u),t}function Eu(t){return t?{floor:function(n){return Math.floor(n/t)*t},ceil:function(n){return Math.ceil(n/t)*t}}:Ou}i.layout.histogram=function(){var t=!0,n=Number,r=uu,e=ou;function o(o,u){for(var a,c,s=[],l=o.map(n,this),f=r.call(this,l,u),h=e.call(this,f,l,u),p=(u=-1,l.length),v=h.length-1,d=t?1:1/p;++u<v;)(a=s[u]=[]).dx=h[u+1]-(a.x=h[u]),a.y=0;if(v>0)for(u=-1;++u<p;)(c=l[u])>=f[0]&&c<=f[1]&&((a=s[i.bisect(h,c,1,v)-1]).y+=d,a.push(o[u]));return s}return o.value=function(t){return arguments.length?(n=t,o):n},o.range=function(t){return arguments.length?(r=Zn(t),o):r},o.bins=function(t){return arguments.length?(e="number"==typeof t?function(n){return iu(n,t)}:Zn(t),o):e},o.frequency=function(n){return arguments.length?(t=!!n,o):t},o},i.layout.pack=function(){var t,n=i.layout.hierarchy().sort(au),r=0,e=[1,1];function o(o,i){var u=n.call(this,o,i),a=u[0],c=e[0],s=e[1],l=null==t?Math.sqrt:"function"==typeof t?t:function(){return t};if(a.x=a.y=0,Fi(a,(function(t){t.r=+l(t.value)})),Fi(a,fu),r){var f=r*(t?1:Math.max(2*a.r/c,2*a.r/s))/2;Fi(a,(function(t){t.r+=f})),Fi(a,fu),Fi(a,(function(t){t.r-=f}))}return vu(a,c/2,s/2,t?1:1/Math.max(2*a.r/c,2*a.r/s)),u}return o.size=function(t){return arguments.length?(e=t,o):e},o.radius=function(n){return arguments.length?(t=null==n||"function"==typeof n?n:+n,o):t},o.padding=function(t){return arguments.length?(r=+t,o):r},Ui(o,n)},i.layout.tree=function(){var t=i.layout.hierarchy().sort(null).value(null),n=gu,r=[1,1],e=null;function o(o,i){var s=t.call(this,o,i),l=s[0],f=function(t){for(var n,r={A:null,children:[t]},e=[r];null!=(n=e.pop());)for(var o,i=n.children,u=0,a=i.length;u<a;++u)e.push((i[u]=o={_:i[u],parent:n,children:(o=i[u].children)&&o.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:u}).a=o);return r.children[0]}(l);if(Fi(f,u),f.parent.m=-f.z,Ii(f,a),e)Ii(l,c);else{var h=l,p=l,v=l;Ii(l,(function(t){t.x<h.x&&(h=t),t.x>p.x&&(p=t),t.depth>v.depth&&(v=t)}));var d=n(h,p)/2-h.x,g=r[0]/(p.x+n(p,h)/2+d),y=r[1]/(v.depth||1);Ii(l,(function(t){t.x=(t.x+d)*g,t.y=t.depth*y}))}return s}function u(t){var r=t.children,e=t.parent.children,o=t.i?e[t.i-1]:null;if(r.length){!function(t){for(var n,r=0,e=0,o=t.children,i=o.length;--i>=0;)(n=o[i]).z+=r,n.m+=r,r+=n.s+(e+=n.c)}(t);var i=(r[0].z+r[r.length-1].z)/2;o?(t.z=o.z+n(t._,o._),t.m=t.z-i):t.z=i}else o&&(t.z=o.z+n(t._,o._));t.parent.A=function(t,r,e){if(r){for(var o,i=t,u=t,a=r,c=i.parent.children[0],s=i.m,l=u.m,f=a.m,h=c.m;a=mu(a),i=yu(i),a&&i;)c=yu(c),(u=mu(u)).a=t,(o=a.z+f-i.z-s+n(a._,i._))>0&&(xu(bu(a,t,e),t,o),s+=o,l+=o),f+=a.m,s+=i.m,h+=c.m,l+=u.m;a&&!mu(u)&&(u.t=a,u.m+=f-l),i&&!yu(c)&&(c.t=i,c.m+=s-h,e=t)}return e}(t,o,t.parent.A||e[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function c(t){t.x*=r[0],t.y=t.depth*r[1]}return o.separation=function(t){return arguments.length?(n=t,o):n},o.size=function(t){return arguments.length?(e=null==(r=t)?c:null,o):e?null:r},o.nodeSize=function(t){return arguments.length?(e=null==(r=t)?null:c,o):e?r:null},Ui(o,t)},i.layout.cluster=function(){var t=i.layout.hierarchy().sort(null).value(null),n=gu,r=[1,1],e=!1;function o(o,u){var a,c=t.call(this,o,u),s=c[0],l=0;Fi(s,(function(t){var r=t.children;r&&r.length?(t.x=function(t){return t.reduce((function(t,n){return t+n.x}),0)/t.length}(r),t.y=function(t){return 1+i.max(t,(function(t){return t.y}))}(r)):(t.x=a?l+=n(t,a):0,t.y=0,a=t)}));var f=Zu(s),h=Mu(s),p=f.x-n(f,h)/2,v=h.x+n(h,f)/2;return Fi(s,e?function(t){t.x=(t.x-s.x)*r[0],t.y=(s.y-t.y)*r[1]}:function(t){t.x=(t.x-p)/(v-p)*r[0],t.y=(1-(s.y?t.y/s.y:1))*r[1]}),c}return o.separation=function(t){return arguments.length?(n=t,o):n},o.size=function(t){return arguments.length?(e=null==(r=t),o):e?null:r},o.nodeSize=function(t){return arguments.length?(e=null!=(r=t),o):e?r:null},Ui(o,t)},i.layout.treemap=function(){var t,n=i.layout.hierarchy(),r=Math.round,e=[1,1],o=null,u=_u,a=!1,c="squarify",s=.5*(1+Math.sqrt(5));function l(t,n){for(var r,e,o=-1,i=t.length;++o<i;)e=(r=t[o]).value*(n<0?0:n),r.area=isNaN(e)||e<=0?0:e}function f(t){var n=t.children;if(n&&n.length){var r,e,o,i=u(t),a=[],s=n.slice(),h=1/0,d="slice"===c?i.dx:"dice"===c?i.dy:"slice-dice"===c?1&t.depth?i.dy:i.dx:Math.min(i.dx,i.dy);for(l(s,i.dx*i.dy/t.value),a.area=0;(o=s.length)>0;)a.push(r=s[o-1]),a.area+=r.area,"squarify"!==c||(e=p(a,d))<=h?(s.pop(),h=e):(a.area-=a.pop().area,v(a,d,i,!1),d=Math.min(i.dx,i.dy),a.length=a.area=0,h=1/0);a.length&&(v(a,d,i,!0),a.length=a.area=0),n.forEach(f)}}function h(t){var n=t.children;if(n&&n.length){var r,e=u(t),o=n.slice(),i=[];for(l(o,e.dx*e.dy/t.value),i.area=0;r=o.pop();)i.push(r),i.area+=r.area,null!=r.z&&(v(i,r.z?e.dx:e.dy,e,!o.length),i.length=i.area=0);n.forEach(h)}}function p(t,n){for(var r,e=t.area,o=0,i=1/0,u=-1,a=t.length;++u<a;)(r=t[u].area)&&(r<i&&(i=r),r>o&&(o=r));return n*=n,(e*=e)?Math.max(n*o*s/e,e/(n*i*s)):1/0}function v(t,n,e,o){var i,u=-1,a=t.length,c=e.x,s=e.y,l=n?r(t.area/n):0;if(n==e.dx){for((o||l>e.dy)&&(l=e.dy);++u<a;)(i=t[u]).x=c,i.y=s,i.dy=l,c+=i.dx=Math.min(e.x+e.dx-c,l?r(i.area/l):0);i.z=!0,i.dx+=e.x+e.dx-c,e.y+=l,e.dy-=l}else{for((o||l>e.dx)&&(l=e.dx);++u<a;)(i=t[u]).x=c,i.y=s,i.dx=l,s+=i.dy=Math.min(e.y+e.dy-s,l?r(i.area/l):0);i.z=!1,i.dy+=e.y+e.dy-s,e.x+=l,e.dx-=l}}function d(r){var o=t||n(r),i=o[0];return i.x=i.y=0,i.value?(i.dx=e[0],i.dy=e[1]):i.dx=i.dy=0,t&&n.revalue(i),l([i],i.dx*i.dy/i.value),(t?h:f)(i),a&&(t=o),o}return d.size=function(t){return arguments.length?(e=t,d):e},d.padding=function(t){if(!arguments.length)return o;function n(n){var r=t.call(d,n,n.depth);return null==r?_u(n):wu(n,"number"==typeof r?[r,r,r,r]:r)}function r(n){return wu(n,t)}var e;return u=null==(o=t)?_u:"function"==(e=typeof t)?n:"number"===e?(t=[t,t,t,t],r):r,d},d.round=function(t){return arguments.length?(r=t?Math.round:Number,d):r!=Number},d.sticky=function(n){return arguments.length?(a=n,t=null,d):a},d.ratio=function(t){return arguments.length?(s=t,d):s},d.mode=function(t){return arguments.length?(c=t+"",d):c},Ui(d,n)},i.random={normal:function(t,n){var r=arguments.length;return r<2&&(n=1),r<1&&(t=0),function(){var r,e,o;do{o=(r=2*Math.random()-1)*r+(e=2*Math.random()-1)*e}while(!o||o>1);return t+n*r*Math.sqrt(-2*Math.log(o)/o)}},logNormal:function(){var t=i.random.normal.apply(i,arguments);return function(){return Math.exp(t())}},bates:function(t){var n=i.random.irwinHall(t);return function(){return n()/t}},irwinHall:function(t){return function(){for(var n=0,r=0;r<t;r++)n+=Math.random();return n}}},i.scale={};var Ou={floor:T,ceil:T};function Nu(t,n,r,e){var o=[],u=[],a=0,c=Math.min(t.length,n.length)-1;for(t[c]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<=c;)o.push(r(t[a-1],t[a])),u.push(e(n[a-1],n[a]));return function(n){var r=i.bisect(t,n,1,c)-1;return u[r](o[r](n))}}function Cu(t,n,r,e){var o,i;function u(){var u=Math.min(t.length,n.length)>2?Nu:Au,c=e?Ei:ki;return o=u(t,n,c,r),i=u(n,t,c,ui),a}function a(t){return o(t)}return a.invert=function(t){return i(t)},a.domain=function(n){return arguments.length?(t=n.map(Number),u()):t},a.range=function(t){return arguments.length?(n=t,u()):n},a.rangeRound=function(t){return a.range(t).interpolate(Zi)},a.clamp=function(t){return arguments.length?(e=t,u()):e},a.interpolate=function(t){return arguments.length?(r=t,u()):r},a.ticks=function(n){return Pu(t,n)},a.tickFormat=function(n,r){return Lu(t,n,r)},a.nice=function(n){return Tu(t,n),u()},a.copy=function(){return Cu(t,n,r,e)},u()}function zu(t,n){return i.rebind(t,n,"range","rangeRound","interpolate","clamp")}function Tu(t,n){return ku(t,Eu(qu(t,n)[2])),ku(t,Eu(qu(t,n)[2])),t}function qu(t,n){null==n&&(n=10);var r=Su(t),e=r[1]-r[0],o=Math.pow(10,Math.floor(Math.log(e/n)/Math.LN10)),i=n/e*o;return i<=.15?o*=10:i<=.35?o*=5:i<=.75&&(o*=2),r[0]=Math.ceil(r[0]/o)*o,r[1]=Math.floor(r[1]/o)*o+.5*o,r[2]=o,r}function Pu(t,n){return i.range.apply(i,qu(t,n))}function Lu(t,n,r){var e=qu(t,n);if(r){var o=Pn.exec(r);if(o.shift(),"s"===o[8]){var u=i.formatPrefix(Math.max(M(e[0]),M(e[1])));return o[7]||(o[7]="."+Ru(u.scale(e[2]))),o[8]="f",r=i.format(o.join("")),function(t){return r(u.scale(t))+u.symbol}}o[7]||(o[7]="."+function(t,n){var r=Ru(n[2]);return t in Du?Math.abs(r-Ru(Math.max(M(n[0]),M(n[1]))))+ +("e"!==t):r-2*("%"===t)}(o[8],e)),r=o.join("")}else r=",."+Ru(e[2])+"f";return i.format(r)}i.scale.linear=function(){return Cu([0,1],[0,1],ui,!1)};var Du={s:1,g:1,p:1,r:1,e:1};function Ru(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function Uu(t,n,r,e){function o(t){return(r?Math.log(t<0?0:t):-Math.log(t>0?0:-t))/Math.log(n)}function u(t){return r?Math.pow(n,t):-Math.pow(n,-t)}function a(n){return t(o(n))}return a.invert=function(n){return u(t.invert(n))},a.domain=function(n){return arguments.length?(r=n[0]>=0,t.domain((e=n.map(Number)).map(o)),a):e},a.base=function(r){return arguments.length?(n=+r,t.domain(e.map(o)),a):n},a.nice=function(){var n=ku(e.map(o),r?Math:Fu);return t.domain(n),e=n.map(u),a},a.ticks=function(){var t=Su(e),i=[],a=t[0],c=t[1],s=Math.floor(o(a)),l=Math.ceil(o(c)),f=n%1?2:n;if(isFinite(l-s)){if(r){for(;s<l;s++)for(var h=1;h<f;h++)i.push(u(s)*h);i.push(u(s))}else for(i.push(u(s));s++<l;)for(h=f-1;h>0;h--)i.push(u(s)*h);for(s=0;i[s]<a;s++);for(l=i.length;i[l-1]>c;l--);i=i.slice(s,l)}return i},a.tickFormat=function(t,r){if(!arguments.length)return Iu;arguments.length<2?r=Iu:"function"!=typeof r&&(r=i.format(r));var e=Math.max(1,n*t/a.ticks().length);return function(t){var i=t/u(Math.round(o(t)));return i*n<n-.5&&(i*=n),i<=e?r(t):""}},a.copy=function(){return Uu(t.copy(),n,r,e)},zu(a,t)}i.scale.log=function(){return Uu(i.scale.linear().domain([0,1]),10,!0,[1,10])};var Iu=i.format(".0e"),Fu={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};function Bu(t,n,r){var e=Hu(n),o=Hu(1/n);function i(n){return t(e(n))}return i.invert=function(n){return o(t.invert(n))},i.domain=function(n){return arguments.length?(t.domain((r=n.map(Number)).map(e)),i):r},i.ticks=function(t){return Pu(r,t)},i.tickFormat=function(t,n){return Lu(r,t,n)},i.nice=function(t){return i.domain(Tu(r,t))},i.exponent=function(u){return arguments.length?(e=Hu(n=u),o=Hu(1/n),t.domain(r.map(e)),i):n},i.copy=function(){return Bu(t.copy(),n,r)},zu(i,t)}function Hu(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function Wu(t,n){var r,e,o;function u(o){return e[((r.get(o)||("range"===n.t?r.set(o,t.push(o)):NaN))-1)%e.length]}function a(n,r){return i.range(t.length).map((function(t){return n+r*t}))}return u.domain=function(e){if(!arguments.length)return t;t=[],r=new S;for(var o,i=-1,a=e.length;++i<a;)r.has(o=e[i])||r.set(o,t.push(o));return u[n.t].apply(u,n.a)},u.range=function(t){return arguments.length?(e=t,o=0,n={t:"range",a:arguments},u):e},u.rangePoints=function(r,i){arguments.length<2&&(i=0);var c=r[0],s=r[1],l=t.length<2?(c=(c+s)/2,0):(s-c)/(t.length-1+i);return e=a(c+l*i/2,l),o=0,n={t:"rangePoints",a:arguments},u},u.rangeRoundPoints=function(r,i){arguments.length<2&&(i=0);var c=r[0],s=r[1],l=t.length<2?(c=s=Math.round((c+s)/2),0):(s-c)/(t.length-1+i)|0;return e=a(c+Math.round(l*i/2+(s-c-(t.length-1+i)*l)/2),l),o=0,n={t:"rangeRoundPoints",a:arguments},u},u.rangeBands=function(r,i,c){arguments.length<2&&(i=0),arguments.length<3&&(c=i);var s=r[1]<r[0],l=r[s-0],f=r[1-s],h=(f-l)/(t.length-i+2*c);return e=a(l+h*c,h),s&&e.reverse(),o=h*(1-i),n={t:"rangeBands",a:arguments},u},u.rangeRoundBands=function(r,i,c){arguments.length<2&&(i=0),arguments.length<3&&(c=i);var s=r[1]<r[0],l=r[s-0],f=r[1-s],h=Math.floor((f-l)/(t.length-i+2*c));return e=a(l+Math.round((f-l-(t.length-i)*h)/2),h),s&&e.reverse(),o=Math.round(h*(1-i)),n={t:"rangeRoundBands",a:arguments},u},u.rangeBand=function(){return o},u.rangeExtent=function(){return Su(n.a[0])},u.copy=function(){return Wu(t,n)},u.domain(t)}i.scale.pow=function(){return Bu(i.scale.linear(),1,[0,1])},i.scale.sqrt=function(){return i.scale.pow().exponent(.5)},i.scale.ordinal=function(){return Wu([],{t:"range",a:[[]]})},i.scale.category10=function(){return i.scale.ordinal().range(Yu)},i.scale.category20=function(){return i.scale.ordinal().range(Vu)},i.scale.category20b=function(){return i.scale.ordinal().range($u)},i.scale.category20c=function(){return i.scale.ordinal().range(Xu)};var Yu=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(hn),Vu=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(hn),$u=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(hn),Xu=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(hn);function Ju(t,n){var r;function e(){var e=0,u=n.length;for(r=[];++e<u;)r[e-1]=i.quantile(t,e/u);return o}function o(t){if(!isNaN(t=+t))return n[i.bisect(r,t)]}return o.domain=function(n){return arguments.length?(t=n.map(y).filter(m).sort(g),e()):t},o.range=function(t){return arguments.length?(n=t,e()):n},o.quantiles=function(){return r},o.invertExtent=function(e){return(e=n.indexOf(e))<0?[NaN,NaN]:[e>0?r[e-1]:t[0],e<r.length?r[e]:t[t.length-1]]},o.copy=function(){return Ju(t,n)},e()}function Ku(t,n,r){var e,o;function i(n){return r[Math.max(0,Math.min(o,Math.floor(e*(n-t))))]}function u(){return e=r.length/(n-t),o=r.length-1,i}return i.domain=function(r){return arguments.length?(t=+r[0],n=+r[r.length-1],u()):[t,n]},i.range=function(t){return arguments.length?(r=t,u()):r},i.invertExtent=function(n){return[n=(n=r.indexOf(n))<0?NaN:n/e+t,n+1/e]},i.copy=function(){return Ku(t,n,r)},u()}function Gu(t,n){function r(r){if(r<=r)return n[i.bisect(t,r)]}return r.domain=function(n){return arguments.length?(t=n,r):t},r.range=function(t){return arguments.length?(n=t,r):n},r.invertExtent=function(r){return r=n.indexOf(r),[t[r-1],t[r]]},r.copy=function(){return Gu(t,n)},r}function Qu(t){function n(t){return+t}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(t=r.map(n),n):t},n.ticks=function(n){return Pu(t,n)},n.tickFormat=function(n,r){return Lu(t,n,r)},n.copy=function(){return Qu(t)},n}function ta(){return 0}i.scale.quantile=function(){return Ju([],[])},i.scale.quantize=function(){return Ku(0,1,[0,1])},i.scale.threshold=function(){return Gu([.5],[0,1])},i.scale.identity=function(){return Qu([0,1])},i.svg={},i.svg.arc=function(){var t=ra,n=ea,r=ta,e=na,o=oa,i=ia,u=ua;function a(){var a=Math.max(0,+t.apply(this,arguments)),s=Math.max(0,+n.apply(this,arguments)),l=o.apply(this,arguments)-zt,f=i.apply(this,arguments)-zt,h=Math.abs(f-l),p=l>f?0:1;if(s<a&&(v=s,s=a,a=v),h>=Ct)return c(s,p)+(a?c(a,1-p):"")+"Z";var v,d,g,y,m,x,b,Z,M,_,w,S,j=0,A=0,k=[];if((y=(+u.apply(this,arguments)||0)/2)&&(g=e===na?Math.sqrt(a*a+s*s):+e.apply(this,arguments),p||(A*=-1),s&&(A=Rt(g/s*Math.sin(y))),a&&(j=Rt(g/a*Math.sin(y)))),s){m=s*Math.cos(l+A),x=s*Math.sin(l+A),b=s*Math.cos(f-A),Z=s*Math.sin(f-A);var E=Math.abs(f-l-2*A)<=Ot?0:1;if(A&&aa(m,x,b,Z)===p^E){var O=(l+f)/2;m=s*Math.cos(O),x=s*Math.sin(O),b=Z=null}}else m=x=0;if(a){M=a*Math.cos(f-j),_=a*Math.sin(f-j),w=a*Math.cos(l+j),S=a*Math.sin(l+j);var N=Math.abs(l-f+2*j)<=Ot?0:1;if(j&&aa(M,_,w,S)===1-p^N){var C=(l+f)/2;M=a*Math.cos(C),_=a*Math.sin(C),w=S=null}}else M=_=0;if(h>kt&&(v=Math.min(Math.abs(s-a)/2,+r.apply(this,arguments)))>.001){d=a<s^p?0:1;var z=v,T=v;if(h<Ot){var q=null==w?[M,_]:null==b?[m,x]:go([m,x],[w,S],[b,Z],[M,_]),P=m-q[0],L=x-q[1],D=b-q[0],R=Z-q[1],U=1/Math.sin(Math.acos((P*D+L*R)/(Math.sqrt(P*P+L*L)*Math.sqrt(D*D+R*R)))/2),I=Math.sqrt(q[0]*q[0]+q[1]*q[1]);T=Math.min(v,(a-I)/(U-1)),z=Math.min(v,(s-I)/(U+1))}if(null!=b){var F=ca(null==w?[M,_]:[w,S],[m,x],s,z,p),B=ca([b,Z],[M,_],s,z,p);v===z?k.push("M",F[0],"A",z,",",z," 0 0,",d," ",F[1],"A",s,",",s," 0 ",1-p^aa(F[1][0],F[1][1],B[1][0],B[1][1]),",",p," ",B[1],"A",z,",",z," 0 0,",d," ",B[0]):k.push("M",F[0],"A",z,",",z," 0 1,",d," ",B[0])}else k.push("M",m,",",x);if(null!=w){var H=ca([m,x],[w,S],a,-T,p),W=ca([M,_],null==b?[m,x]:[b,Z],a,-T,p);v===T?k.push("L",W[0],"A",T,",",T," 0 0,",d," ",W[1],"A",a,",",a," 0 ",p^aa(W[1][0],W[1][1],H[1][0],H[1][1]),",",1-p," ",H[1],"A",T,",",T," 0 0,",d," ",H[0]):k.push("L",W[0],"A",T,",",T," 0 0,",d," ",H[0])}else k.push("L",M,",",_)}else k.push("M",m,",",x),null!=b&&k.push("A",s,",",s," 0 ",E,",",p," ",b,",",Z),k.push("L",M,",",_),null!=w&&k.push("A",a,",",a," 0 ",N,",",1-p," ",w,",",S);return k.push("Z"),k.join("")}function c(t,n){return"M0,"+t+"A"+t+","+t+" 0 1,"+n+" 0,"+-t+"A"+t+","+t+" 0 1,"+n+" 0,"+t}return a.innerRadius=function(n){return arguments.length?(t=Zn(n),a):t},a.outerRadius=function(t){return arguments.length?(n=Zn(t),a):n},a.cornerRadius=function(t){return arguments.length?(r=Zn(t),a):r},a.padRadius=function(t){return arguments.length?(e=t==na?na:Zn(t),a):e},a.startAngle=function(t){return arguments.length?(o=Zn(t),a):o},a.endAngle=function(t){return arguments.length?(i=Zn(t),a):i},a.padAngle=function(t){return arguments.length?(u=Zn(t),a):u},a.centroid=function(){var r=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,e=(+o.apply(this,arguments)+ +i.apply(this,arguments))/2-zt;return[Math.cos(e)*r,Math.sin(e)*r]},a};var na="auto";function ra(t){return t.innerRadius}function ea(t){return t.outerRadius}function oa(t){return t.startAngle}function ia(t){return t.endAngle}function ua(t){return t&&t.padAngle}function aa(t,n,r,e){return(t-r)*n-(n-e)*t>0?0:1}function ca(t,n,r,e,o){var i=t[0]-n[0],u=t[1]-n[1],a=(o?e:-e)/Math.sqrt(i*i+u*u),c=a*u,s=-a*i,l=t[0]+c,f=t[1]+s,h=n[0]+c,p=n[1]+s,v=(l+h)/2,d=(f+p)/2,g=h-l,y=p-f,m=g*g+y*y,x=r-e,b=l*p-h*f,Z=(y<0?-1:1)*Math.sqrt(Math.max(0,x*x*m-b*b)),M=(b*y-g*Z)/m,_=(-b*g-y*Z)/m,w=(b*y+g*Z)/m,S=(-b*g+y*Z)/m,j=M-v,A=_-d,k=w-v,E=S-d;return j*j+A*A>k*k+E*E&&(M=w,_=S),[[M-c,_-s],[M*r/x,_*r/x]]}function sa(t){var n=so,r=lo,e=Qr,o=fa,i=o.key,u=.7;function a(i){var a,c=[],s=[],l=-1,f=i.length,h=Zn(n),p=Zn(r);function v(){c.push("M",o(t(s),u))}for(;++l<f;)e.call(this,a=i[l],l)?s.push([+h.call(this,a,l),+p.call(this,a,l)]):s.length&&(v(),s=[]);return s.length&&v(),c.length?c.join(""):null}return a.x=function(t){return arguments.length?(n=t,a):n},a.y=function(t){return arguments.length?(r=t,a):r},a.defined=function(t){return arguments.length?(e=t,a):e},a.interpolate=function(t){return arguments.length?(i="function"==typeof t?o=t:(o=la.get(t)||fa).key,a):i},a.tension=function(t){return arguments.length?(u=t,a):u},a}i.svg.line=function(){return sa(T)};var la=i.map({linear:fa,"linear-closed":ha,step:function(t){for(var n=0,r=t.length,e=t[0],o=[e[0],",",e[1]];++n<r;)o.push("H",(e[0]+(e=t[n])[0])/2,"V",e[1]);return r>1&&o.push("H",e[0]),o.join("")},"step-before":pa,"step-after":va,basis:ya,"basis-open":function(t){if(t.length<4)return fa(t);for(var n,r=[],e=-1,o=t.length,i=[0],u=[0];++e<3;)n=t[e],i.push(n[0]),u.push(n[1]);for(r.push(ma(Za,i)+","+ma(Za,u)),--e;++e<o;)n=t[e],i.shift(),i.push(n[0]),u.shift(),u.push(n[1]),Ma(r,i,u);return r.join("")},"basis-closed":function(t){for(var n,r,e=-1,o=t.length,i=o+4,u=[],a=[];++e<4;)r=t[e%o],u.push(r[0]),a.push(r[1]);for(n=[ma(Za,u),",",ma(Za,a)],--e;++e<i;)r=t[e%o],u.shift(),u.push(r[0]),a.shift(),a.push(r[1]),Ma(n,u,a);return n.join("")},bundle:function(t,n){var r=t.length-1;if(r)for(var e,o,i=t[0][0],u=t[0][1],a=t[r][0]-i,c=t[r][1]-u,s=-1;++s<=r;)o=s/r,(e=t[s])[0]=n*e[0]+(1-n)*(i+o*a),e[1]=n*e[1]+(1-n)*(u+o*c);return ya(t)},cardinal:function(t,n){return t.length<3?fa(t):t[0]+da(t,ga(t,n))},"cardinal-open":function(t,n){return t.length<4?fa(t):t[1]+da(t.slice(1,-1),ga(t,n))},"cardinal-closed":function(t,n){return t.length<3?ha(t):t[0]+da((t.push(t[0]),t),ga([t[t.length-2]].concat(t,[t[1]]),n))},monotone:function(t){return t.length<3?fa(t):t[0]+da(t,function(t){for(var n,r,e,o,i=[],u=function(t){for(var n=0,r=t.length-1,e=[],o=t[0],i=t[1],u=e[0]=_a(o,i);++n<r;)e[n]=(u+(u=_a(o=i,i=t[n+1])))/2;return e[n]=u,e}(t),a=-1,c=t.length-1;++a<c;)n=_a(t[a],t[a+1]),M(n)<kt?u[a]=u[a+1]=0:(o=(r=u[a]/n)*r+(e=u[a+1]/n)*e)>9&&(o=3*n/Math.sqrt(o),u[a]=o*r,u[a+1]=o*e);for(a=-1;++a<=c;)o=(t[Math.min(c,a+1)][0]-t[Math.max(0,a-1)][0])/(6*(1+u[a]*u[a])),i.push([o||0,u[a]*o||0]);return i}(t))}});function fa(t){return t.length>1?t.join("L"):t+"Z"}function ha(t){return t.join("L")+"Z"}function pa(t){for(var n=0,r=t.length,e=t[0],o=[e[0],",",e[1]];++n<r;)o.push("V",(e=t[n])[1],"H",e[0]);return o.join("")}function va(t){for(var n=0,r=t.length,e=t[0],o=[e[0],",",e[1]];++n<r;)o.push("H",(e=t[n])[0],"V",e[1]);return o.join("")}function da(t,n){if(n.length<1||t.length!=n.length&&t.length!=n.length+2)return fa(t);var r=t.length!=n.length,e="",o=t[0],i=t[1],u=n[0],a=u,c=1;if(r&&(e+="Q"+(i[0]-2*u[0]/3)+","+(i[1]-2*u[1]/3)+","+i[0]+","+i[1],o=t[1],c=2),n.length>1){a=n[1],i=t[c],c++,e+="C"+(o[0]+u[0])+","+(o[1]+u[1])+","+(i[0]-a[0])+","+(i[1]-a[1])+","+i[0]+","+i[1];for(var s=2;s<n.length;s++,c++)i=t[c],a=n[s],e+="S"+(i[0]-a[0])+","+(i[1]-a[1])+","+i[0]+","+i[1]}if(r){var l=t[c];e+="Q"+(i[0]+2*a[0]/3)+","+(i[1]+2*a[1]/3)+","+l[0]+","+l[1]}return e}function ga(t,n){for(var r,e=[],o=(1-n)/2,i=t[0],u=t[1],a=1,c=t.length;++a<c;)r=i,i=u,u=t[a],e.push([o*(u[0]-r[0]),o*(u[1]-r[1])]);return e}function ya(t){if(t.length<3)return fa(t);var n=1,r=t.length,e=t[0],o=e[0],i=e[1],u=[o,o,o,(e=t[1])[0]],a=[i,i,i,e[1]],c=[o,",",i,"L",ma(Za,u),",",ma(Za,a)];for(t.push(t[r-1]);++n<=r;)e=t[n],u.shift(),u.push(e[0]),a.shift(),a.push(e[1]),Ma(c,u,a);return t.pop(),c.push("L",e),c.join("")}function ma(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]+t[3]*n[3]}la.forEach((function(t,n){n.key=t,n.closed=/-closed$/.test(t)}));var xa=[0,2/3,1/3,0],ba=[0,1/3,2/3,0],Za=[0,1/6,2/3,1/6];function Ma(t,n,r){t.push("C",ma(xa,n),",",ma(xa,r),",",ma(ba,n),",",ma(ba,r),",",ma(Za,n),",",ma(Za,r))}function _a(t,n){return(n[1]-t[1])/(n[0]-t[0])}function wa(t){for(var n,r,e,o=-1,i=t.length;++o<i;)r=(n=t[o])[0],e=n[1]-zt,n[0]=r*Math.cos(e),n[1]=r*Math.sin(e);return t}function Sa(t){var n=so,r=so,e=0,o=lo,i=Qr,u=fa,a=u.key,c=u,s="L",l=.7;function f(a){var f,h,p,v=[],d=[],g=[],y=-1,m=a.length,x=Zn(n),b=Zn(e),Z=n===r?function(){return h}:Zn(r),M=e===o?function(){return p}:Zn(o);function _(){v.push("M",u(t(g),l),s,c(t(d.reverse()),l),"Z")}for(;++y<m;)i.call(this,f=a[y],y)?(d.push([h=+x.call(this,f,y),p=+b.call(this,f,y)]),g.push([+Z.call(this,f,y),+M.call(this,f,y)])):d.length&&(_(),d=[],g=[]);return d.length&&_(),v.length?v.join(""):null}return f.x=function(t){return arguments.length?(n=r=t,f):r},f.x0=function(t){return arguments.length?(n=t,f):n},f.x1=function(t){return arguments.length?(r=t,f):r},f.y=function(t){return arguments.length?(e=o=t,f):o},f.y0=function(t){return arguments.length?(e=t,f):e},f.y1=function(t){return arguments.length?(o=t,f):o},f.defined=function(t){return arguments.length?(i=t,f):i},f.interpolate=function(t){return arguments.length?(a="function"==typeof t?u=t:(u=la.get(t)||fa).key,c=u.reverse||u,s=u.closed?"M":"L",f):a},f.tension=function(t){return arguments.length?(l=t,f):l},f}function ja(t){return t.radius}function Aa(t){return[t.x,t.y]}function ka(t){return function(){var n=t.apply(this,arguments),r=n[0],e=n[1]-zt;return[r*Math.cos(e),r*Math.sin(e)]}}function Ea(){return 64}function Oa(){return"circle"}function Na(t){var n=Math.sqrt(t/Ot);return"M0,"+n+"A"+n+","+n+" 0 1,1 0,"+-n+"A"+n+","+n+" 0 1,1 0,"+n+"Z"}i.svg.line.radial=function(){var t=sa(wa);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},pa.reverse=va,va.reverse=pa,i.svg.area=function(){return Sa(T)},i.svg.area.radial=function(){var t=Sa(wa);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},i.svg.chord=function(){var t=Xe,n=Je,r=ja,e=oa,o=ia;function i(r,e){var o,i,s=u(this,t,r,e),l=u(this,n,r,e);return"M"+s.p0+a(s.r,s.p1,s.a1-s.a0)+(i=l,((o=s).a0==i.a0&&o.a1==i.a1?c(s.r,s.p1,s.r,s.p0):c(s.r,s.p1,l.r,l.p0)+a(l.r,l.p1,l.a1-l.a0)+c(l.r,l.p1,s.r,s.p0))+"Z")}function u(t,n,i,u){var a=n.call(t,i,u),c=r.call(t,a,u),s=e.call(t,a,u)-zt,l=o.call(t,a,u)-zt;return{r:c,a0:s,a1:l,p0:[c*Math.cos(s),c*Math.sin(s)],p1:[c*Math.cos(l),c*Math.sin(l)]}}function a(t,n,r){return"A"+t+","+t+" 0 "+ +(r>Ot)+",1 "+n}function c(t,n,r,e){return"Q 0,0 "+e}return i.radius=function(t){return arguments.length?(r=Zn(t),i):r},i.source=function(n){return arguments.length?(t=Zn(n),i):t},i.target=function(t){return arguments.length?(n=Zn(t),i):n},i.startAngle=function(t){return arguments.length?(e=Zn(t),i):e},i.endAngle=function(t){return arguments.length?(o=Zn(t),i):o},i},i.svg.diagonal=function(){var t=Xe,n=Je,r=Aa;function e(e,o){var i=t.call(this,e,o),u=n.call(this,e,o),a=(i.y+u.y)/2,c=[i,{x:i.x,y:a},{x:u.x,y:a},u];return"M"+(c=c.map(r))[0]+"C"+c[1]+" "+c[2]+" "+c[3]}return e.source=function(n){return arguments.length?(t=Zn(n),e):t},e.target=function(t){return arguments.length?(n=Zn(t),e):n},e.projection=function(t){return arguments.length?(r=t,e):r},e},i.svg.diagonal.radial=function(){var t=i.svg.diagonal(),n=Aa,r=t.projection;return t.projection=function(t){return arguments.length?r(ka(n=t)):n},t},i.svg.symbol=function(){var t=Oa,n=Ea;function r(r,e){return(Ca.get(t.call(this,r,e))||Na)(n.call(this,r,e))}return r.type=function(n){return arguments.length?(t=Zn(n),r):t},r.size=function(t){return arguments.length?(n=Zn(t),r):n},r};var Ca=i.map({circle:Na,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*Ta)),r=n*Ta;return"M0,"+-n+"L"+r+",0 0,"+n+" "+-r+",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/za),r=n*za/2;return"M0,"+r+"L"+n+","+-r+" "+-n+","+-r+"Z"},"triangle-up":function(t){var n=Math.sqrt(t/za),r=n*za/2;return"M0,"+-r+"L"+n+","+r+" "+-n+","+r+"Z"}});i.svg.symbolTypes=Ca.keys();var za=Math.sqrt(3),Ta=Math.tan(30*Tt);J.transition=function(t){for(var n,r,e=Da||++Ia,o=Ha(t),i=[],u=Ra||{time:Date.now(),ease:gi,delay:0,duration:250},a=-1,c=this.length;++a<c;){i.push(n=[]);for(var s=this[a],l=-1,f=s.length;++l<f;)(r=s[l])&&Wa(r,l,o,e,u),n.push(r)}return La(i,o,e)},J.interrupt=function(t){return this.each(null==t?qa:Pa(Ha(t)))};var qa=Pa(Ha());function Pa(t){return function(){var n,r,e;(n=this[t])&&(e=n[r=n.active])&&(e.timer.c=null,e.timer.t=NaN,--n.count?delete n[r]:delete this[t],n.active+=.5,e.event&&e.event.interrupt.call(this,this.__data__,e.index))}}function La(t,n,r){return W(t,Ua),t.namespace=n,t.id=r,t}var Da,Ra,Ua=[],Ia=0;function Fa(t,n,r,e){var o=t.id,i=t.namespace;return vt(t,"function"==typeof r?function(t,u,a){t[i][o].tween.set(n,e(r.call(t,t.__data__,u,a)))}:(r=e(r),function(t){t[i][o].tween.set(n,r)}))}function Ba(t){return null==t&&(t=""),function(){this.textContent=t}}function Ha(t){return null==t?"__transition__":"__transition_"+t+"__"}function Wa(t,n,r,e,o){var i,u,a,c,s,l=t[r]||(t[r]={active:0,count:0}),f=l[e];function h(r){var o=l.active,h=l[o];for(var v in h&&(h.timer.c=null,h.timer.t=NaN,--l.count,delete l[o],h.event&&h.event.interrupt.call(t,t.__data__,h.index)),l)if(+v<e){var d=l[v];d.timer.c=null,d.timer.t=NaN,--l.count,delete l[v]}u.c=p,En((function(){return u.c&&p(r||1)&&(u.c=null,u.t=NaN),1}),0,i),l.active=e,f.event&&f.event.start.call(t,t.__data__,n),s=[],f.tween.forEach((function(r,e){(e=e.call(t,t.__data__,n))&&s.push(e)})),c=f.ease,a=f.duration}function p(o){for(var i=o/a,u=c(i),h=s.length;h>0;)s[--h].call(t,u);if(i>=1)return f.event&&f.event.end.call(t,t.__data__,n),--l.count?delete l[e]:delete t[r],1}f||(i=o.time,u=En((function(t){var n=f.delay;if(u.t=n+i,n<=t)return h(t-n);u.c=h}),0,i),f=l[e]={tween:new S,time:i,timer:u,delay:o.delay,duration:o.duration,ease:o.ease,index:n},o=null,++l.count)}Ua.call=J.call,Ua.empty=J.empty,Ua.node=J.node,Ua.size=J.size,i.transition=function(t,n){return t&&t.transition?Da?t.transition(n):t:i.selection().transition(t)},i.transition.prototype=Ua,Ua.select=function(t){var n,r,e,o=this.id,i=this.namespace,u=[];t=K(t);for(var a=-1,c=this.length;++a<c;){u.push(n=[]);for(var s=this[a],l=-1,f=s.length;++l<f;)(e=s[l])&&(r=t.call(e,e.__data__,l,a))?("__data__"in e&&(r.__data__=e.__data__),Wa(r,l,i,o,e[i][o]),n.push(r)):n.push(null)}return La(u,i,o)},Ua.selectAll=function(t){var n,r,e,o,i,u=this.id,a=this.namespace,c=[];t=G(t);for(var s=-1,l=this.length;++s<l;)for(var f=this[s],h=-1,p=f.length;++h<p;)if(e=f[h]){i=e[a][u],r=t.call(e,e.__data__,h,s),c.push(n=[]);for(var v=-1,d=r.length;++v<d;)(o=r[v])&&Wa(o,v,a,u,i),n.push(o)}return La(c,a,u)},Ua.filter=function(t){var n,r,e=[];"function"!=typeof t&&(t=ht(t));for(var o=0,i=this.length;o<i;o++){e.push(n=[]);for(var u,a=0,c=(u=this[o]).length;a<c;a++)(r=u[a])&&t.call(r,r.__data__,a,o)&&n.push(r)}return La(e,this.namespace,this.id)},Ua.tween=function(t,n){var r=this.id,e=this.namespace;return arguments.length<2?this.node()[e][r].tween.get(t):vt(this,null==n?function(n){n[e][r].tween.remove(t)}:function(o){o[e][r].tween.set(t,n)})},Ua.attr=function(t,n){if(arguments.length<2){for(n in t)this.attr(n,t[n]);return this}var r="transform"==t?Ai:ui,e=i.ns.qualify(t);function o(){this.removeAttribute(e)}function u(){this.removeAttributeNS(e.space,e.local)}function a(t){return null==t?o:(t+="",function(){var n,o=this.getAttribute(e);return o!==t&&(n=r(o,t),function(t){this.setAttribute(e,n(t))})})}function c(t){return null==t?u:(t+="",function(){var n,o=this.getAttributeNS(e.space,e.local);return o!==t&&(n=r(o,t),function(t){this.setAttributeNS(e.space,e.local,n(t))})})}return Fa(this,"attr."+t,n,e.local?c:a)},Ua.attrTween=function(t,n){var r=i.ns.qualify(t);return this.tween("attr."+t,r.local?function(t,e){var o=n.call(this,t,e,this.getAttributeNS(r.space,r.local));return o&&function(t){this.setAttributeNS(r.space,r.local,o(t))}}:function(t,e){var o=n.call(this,t,e,this.getAttribute(r));return o&&function(t){this.setAttribute(r,o(t))}})},Ua.style=function(t,n,r){var e=arguments.length;if(e<3){if("string"!=typeof t){for(r in e<2&&(n=""),t)this.style(r,t[r],n);return this}r=""}function o(){this.style.removeProperty(t)}function i(n){return null==n?o:(n+="",function(){var e,o=l(this).getComputedStyle(this,null).getPropertyValue(t);return o!==n&&(e=ui(o,n),function(n){this.style.setProperty(t,e(n),r)})})}return Fa(this,"style."+t,n,i)},Ua.styleTween=function(t,n,r){function e(e,o){var i=n.call(this,e,o,l(this).getComputedStyle(this,null).getPropertyValue(t));return i&&function(n){this.style.setProperty(t,i(n),r)}}return arguments.length<3&&(r=""),this.tween("style."+t,e)},Ua.text=function(t){return Fa(this,"text",t,Ba)},Ua.remove=function(){var t=this.namespace;return this.each("end.transition",(function(){var n;this[t].count<2&&(n=this.parentNode)&&n.removeChild(this)}))},Ua.ease=function(t){var n=this.id,r=this.namespace;return arguments.length<1?this.node()[r][n].ease:("function"!=typeof t&&(t=i.ease.apply(i,arguments)),vt(this,(function(e){e[r][n].ease=t})))},Ua.delay=function(t){var n=this.id,r=this.namespace;return arguments.length<1?this.node()[r][n].delay:vt(this,"function"==typeof t?function(e,o,i){e[r][n].delay=+t.call(e,e.__data__,o,i)}:(t=+t,function(e){e[r][n].delay=t}))},Ua.duration=function(t){var n=this.id,r=this.namespace;return arguments.length<1?this.node()[r][n].duration:vt(this,"function"==typeof t?function(e,o,i){e[r][n].duration=Math.max(1,t.call(e,e.__data__,o,i))}:(t=Math.max(1,t),function(e){e[r][n].duration=t}))},Ua.each=function(t,n){var r=this.id,e=this.namespace;if(arguments.length<2){var o=Ra,u=Da;try{Da=r,vt(this,(function(n,o,i){Ra=n[e][r],t.call(n,n.__data__,o,i)}))}finally{Ra=o,Da=u}}else vt(this,(function(o){var u=o[e][r];(u.event||(u.event=i.dispatch("start","end","interrupt"))).on(t,n)}));return this},Ua.transition=function(){for(var t,n,r,e=this.id,o=++Ia,i=this.namespace,u=[],a=0,c=this.length;a<c;a++){u.push(t=[]);for(var s,l=0,f=(s=this[a]).length;l<f;l++)(n=s[l])&&Wa(n,l,i,o,{time:(r=n[i][e]).time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration}),t.push(n)}return La(u,i,o)},i.svg.axis=function(){var t,n=i.scale.linear(),r=Ya,e=6,o=6,u=3,c=[10],s=null;function l(a){a.each((function(){var a,l=i.select(this),f=this.__chart__||n,h=this.__chart__=n.copy(),p=null==s?h.ticks?h.ticks.apply(h,c):h.domain():s,v=null==t?h.tickFormat?h.tickFormat.apply(h,c):T:t,d=l.selectAll(".tick").data(p,h),g=d.enter().insert("g",".domain").attr("class","tick").style("opacity",kt),y=i.transition(d.exit()).style("opacity",kt).remove(),m=i.transition(d.order()).style("opacity",1),x=Math.max(e,0)+u,b=ju(h),Z=l.selectAll(".domain").data([0]),M=(Z.enter().append("path").attr("class","domain"),i.transition(Z));g.append("line"),g.append("text");var _,w,S,j,A=g.select("line"),k=m.select("line"),E=d.select("text").text(v),O=g.select("text"),N=m.select("text"),C="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(a=$a,_="x",S="y",w="x2",j="y2",E.attr("dy",C<0?"0em":".71em").style("text-anchor","middle"),M.attr("d","M"+b[0]+","+C*o+"V0H"+b[1]+"V"+C*o)):(a=Xa,_="y",S="x",w="y2",j="x2",E.attr("dy",".32em").style("text-anchor",C<0?"end":"start"),M.attr("d","M"+C*o+","+b[0]+"H0V"+b[1]+"H"+C*o)),A.attr(j,C*e),O.attr(S,C*x),k.attr(w,0).attr(j,C*e),N.attr(_,0).attr(S,C*x),h.rangeBand){var z=h,q=z.rangeBand()/2;f=h=function(t){return z(t)+q}}else f.rangeBand?f=h:y.call(a,h,f);g.call(a,f,h),m.call(a,h,h)}))}return l.scale=function(t){return arguments.length?(n=t,l):n},l.orient=function(t){return arguments.length?(r=t in Va?t+"":Ya,l):r},l.ticks=function(){return arguments.length?(c=a(arguments),l):c},l.tickValues=function(t){return arguments.length?(s=t,l):s},l.tickFormat=function(n){return arguments.length?(t=n,l):t},l.tickSize=function(t){var n=arguments.length;return n?(e=+t,o=+arguments[n-1],l):e},l.innerTickSize=function(t){return arguments.length?(e=+t,l):e},l.outerTickSize=function(t){return arguments.length?(o=+t,l):o},l.tickPadding=function(t){return arguments.length?(u=+t,l):u},l.tickSubdivide=function(){return arguments.length&&l},l};var Ya="bottom",Va={top:1,right:1,bottom:1,left:1};function $a(t,n,r){t.attr("transform",(function(t){var e=n(t);return"translate("+(isFinite(e)?e:r(t))+",0)"}))}function Xa(t,n,r){t.attr("transform",(function(t){var e=n(t);return"translate(0,"+(isFinite(e)?e:r(t))+")"}))}i.svg.brush=function(){var t,n,r=B(h,"brushstart","brush","brushend"),e=null,o=null,u=[0,0],a=[0,0],c=!0,s=!0,f=Ka[0];function h(t){t.each((function(){var t=i.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",g).on("touchstart.brush",g),n=t.selectAll(".background").data([0]);n.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),t.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var r=t.selectAll(".resize").data(f,T);r.exit().remove(),r.enter().append("g").attr("class",(function(t){return"resize "+t})).style("cursor",(function(t){return Ja[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"),r.style("display",h.empty()?"none":null);var u,a=i.transition(t),c=i.transition(n);e&&(u=ju(e),c.attr("x",u[0]).attr("width",u[1]-u[0]),v(a)),o&&(u=ju(o),c.attr("y",u[0]).attr("height",u[1]-u[0]),d(a)),p(a)}))}function p(t){t.selectAll(".resize").attr("transform",(function(t){return"translate("+u[+/e$/.test(t)]+","+a[+/^s/.test(t)]+")"}))}function v(t){t.select(".extent").attr("x",u[0]),t.selectAll(".extent,.n>rect,.s>rect").attr("width",u[1]-u[0])}function d(t){t.select(".extent").attr("y",a[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",a[1]-a[0])}function g(){var f,g,y=this,m=i.select(i.event.target),x=r.of(y,arguments),b=i.select(y),Z=m.datum(),M=!/^(n|s)$/.test(Z)&&e,_=!/^(e|w)$/.test(Z)&&o,w=m.classed("extent"),S=wt(y),j=i.mouse(y),A=i.select(l(y)).on("keydown.brush",O).on("keyup.brush",N);if(i.event.changedTouches?A.on("touchmove.brush",C).on("touchend.brush",T):A.on("mousemove.brush",C).on("mouseup.brush",T),b.interrupt().selectAll("*").interrupt(),w)j[0]=u[0]-j[0],j[1]=a[0]-j[1];else if(Z){var k=+/w$/.test(Z),E=+/^n/.test(Z);g=[u[1-k]-j[0],a[1-E]-j[1]],j[0]=u[k],j[1]=a[E]}else i.event.altKey&&(f=j.slice());function O(){32==i.event.keyCode&&(w||(f=null,j[0]-=u[1],j[1]-=a[1],w=2),I())}function N(){32==i.event.keyCode&&2==w&&(j[0]+=u[1],j[1]+=a[1],w=0,I())}function C(){var t=i.mouse(y),n=!1;g&&(t[0]+=g[0],t[1]+=g[1]),w||(i.event.altKey?(f||(f=[(u[0]+u[1])/2,(a[0]+a[1])/2]),j[0]=u[+(t[0]<f[0])],j[1]=a[+(t[1]<f[1])]):f=null),M&&z(t,e,0)&&(v(b),n=!0),_&&z(t,o,1)&&(d(b),n=!0),n&&(p(b),x({type:"brush",mode:w?"move":"resize"}))}function z(r,e,o){var i,l,h=ju(e),p=h[0],v=h[1],d=j[o],g=o?a:u,y=g[1]-g[0];if(w&&(p-=d,v-=y+d),i=(o?s:c)?Math.max(p,Math.min(v,r[o])):r[o],w?l=(i+=d)+y:(f&&(d=Math.max(p,Math.min(v,2*f[o]-i))),d<i?(l=i,i=d):l=d),g[0]!=i||g[1]!=l)return o?n=null:t=null,g[0]=i,g[1]=l,!0}function T(){C(),b.style("pointer-events","all").selectAll(".resize").style("display",h.empty()?"none":null),i.select("body").style("cursor",null),A.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),S(),x({type:"brushend"})}b.style("pointer-events","none").selectAll(".resize").style("display",null),i.select("body").style("cursor",m.style("cursor")),x({type:"brushstart"}),C()}return h.event=function(e){e.each((function(){var e=r.of(this,arguments),o={x:u,y:a,i:t,j:n},c=this.__chart__||o;this.__chart__=o,Da?i.select(this).transition().each("start.brush",(function(){t=c.i,n=c.j,u=c.x,a=c.y,e({type:"brushstart"})})).tween("brush:brush",(function(){var r=ai(u,o.x),i=ai(a,o.y);return t=n=null,function(t){u=o.x=r(t),a=o.y=i(t),e({type:"brush",mode:"resize"})}})).each("end.brush",(function(){t=o.i,n=o.j,e({type:"brush",mode:"resize"}),e({type:"brushend"})})):(e({type:"brushstart"}),e({type:"brush",mode:"resize"}),e({type:"brushend"}))}))},h.x=function(t){return arguments.length?(f=Ka[!(e=t)<<1|!o],h):e},h.y=function(t){return arguments.length?(f=Ka[!e<<1|!(o=t)],h):o},h.clamp=function(t){return arguments.length?(e&&o?(c=!!t[0],s=!!t[1]):e?c=!!t:o&&(s=!!t),h):e&&o?[c,s]:e?c:o?s:null},h.extent=function(r){var i,c,s,l,f;return arguments.length?(e&&(i=r[0],c=r[1],o&&(i=i[0],c=c[0]),t=[i,c],e.invert&&(i=e(i),c=e(c)),c<i&&(f=i,i=c,c=f),i==u[0]&&c==u[1]||(u=[i,c])),o&&(s=r[0],l=r[1],e&&(s=s[1],l=l[1]),n=[s,l],o.invert&&(s=o(s),l=o(l)),l<s&&(f=s,s=l,l=f),s==a[0]&&l==a[1]||(a=[s,l])),h):(e&&(t?(i=t[0],c=t[1]):(i=u[0],c=u[1],e.invert&&(i=e.invert(i),c=e.invert(c)),c<i&&(f=i,i=c,c=f))),o&&(n?(s=n[0],l=n[1]):(s=a[0],l=a[1],o.invert&&(s=o.invert(s),l=o.invert(l)),l<s&&(f=s,s=l,l=f))),e&&o?[[i,s],[c,l]]:e?[i,c]:o&&[s,l])},h.clear=function(){return h.empty()||(u=[0,0],a=[0,0],t=n=null),h},h.empty=function(){return!!e&&u[0]==u[1]||!!o&&a[0]==a[1]},i.rebind(h,r,"on")};var Ja={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Ka=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Ga=Rn.format=vr.timeFormat,Qa=Ga.utc,tc=Qa("%Y-%m-%dT%H:%M:%S.%LZ");function nc(t){return t.toISOString()}function rc(t,n,r){function e(n){return t(n)}function o(t,r){var e=(t[1]-t[0])/r,o=i.bisect(oc,e);return o==oc.length?[n.year,qu(t.map((function(t){return t/31536e6})),r)[2]]:o?n[e/oc[o-1]<oc[o]/e?o-1:o]:[ac,qu(t,r)[2]]}return e.invert=function(n){return ec(t.invert(n))},e.domain=function(n){return arguments.length?(t.domain(n),e):t.domain().map(ec)},e.nice=function(t,n){var r=e.domain(),i=Su(r),u=null==t?o(i,10):"number"==typeof t&&o(i,t);function a(r){return!isNaN(r)&&!t.range(r,ec(+r+1),n).length}return u&&(t=u[0],n=u[1]),e.domain(ku(r,n>1?{floor:function(n){for(;a(n=t.floor(n));)n=ec(n-1);return n},ceil:function(n){for(;a(n=t.ceil(n));)n=ec(+n+1);return n}}:t))},e.ticks=function(t,n){var r=Su(e.domain()),i=null==t?o(r,10):"number"==typeof t?o(r,t):!t.range&&[{range:t},n];return i&&(t=i[0],n=i[1]),t.range(r[0],ec(+r[1]+1),n<1?1:n)},e.tickFormat=function(){return r},e.copy=function(){return rc(t.copy(),n,r)},zu(e,t)}function ec(t){return new Date(t)}Ga.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?nc:tc,nc.parse=function(t){var n=new Date(t);return isNaN(n)?null:n},nc.toString=tc.toString,Rn.second=Bn((function(t){return new Un(1e3*Math.floor(t/1e3))}),(function(t,n){t.setTime(t.getTime()+1e3*Math.floor(n))}),(function(t){return t.getSeconds()})),Rn.seconds=Rn.second.range,Rn.seconds.utc=Rn.second.utc.range,Rn.minute=Bn((function(t){return new Un(6e4*Math.floor(t/6e4))}),(function(t,n){t.setTime(t.getTime()+6e4*Math.floor(n))}),(function(t){return t.getMinutes()})),Rn.minutes=Rn.minute.range,Rn.minutes.utc=Rn.minute.utc.range,Rn.hour=Bn((function(t){var n=t.getTimezoneOffset()/60;return new Un(36e5*(Math.floor(t/36e5-n)+n))}),(function(t,n){t.setTime(t.getTime()+36e5*Math.floor(n))}),(function(t){return t.getHours()})),Rn.hours=Rn.hour.range,Rn.hours.utc=Rn.hour.utc.range,Rn.month=Bn((function(t){return(t=Rn.day(t)).setDate(1),t}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t){return t.getMonth()})),Rn.months=Rn.month.range,Rn.months.utc=Rn.month.utc.range;var oc=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],ic=[[Rn.second,1],[Rn.second,5],[Rn.second,15],[Rn.second,30],[Rn.minute,1],[Rn.minute,5],[Rn.minute,15],[Rn.minute,30],[Rn.hour,1],[Rn.hour,3],[Rn.hour,6],[Rn.hour,12],[Rn.day,1],[Rn.day,2],[Rn.week,1],[Rn.month,1],[Rn.month,3],[Rn.year,1]],uc=Ga.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",Qr]]),ac={range:function(t,n,r){return i.range(Math.ceil(t/r)*r,+n,r).map(ec)},floor:T,ceil:T};ic.year=Rn.year,Rn.scale=function(){return rc(i.scale.linear(),ic,uc)};var cc=ic.map((function(t){return[t[0].utc,t[1]]})),sc=Qa.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",Qr]]);function lc(t){return JSON.parse(t.responseText)}function fc(t){var n=c.createRange();return n.selectNode(c.body),n.createContextualFragment(t.responseText)}cc.year=Rn.year.utc,Rn.scale.utc=function(){return rc(i.scale.linear(),cc,sc)},i.text=Mn((function(t){return t.responseText})),i.json=function(t,n){return _n(t,"application/json",lc,n)},i.html=function(t,n){return _n(t,"text/html",fc,n)},i.xml=Mn((function(t){return t.responseXML})),this.d3=i,void 0===(o="function"==typeof(e=i)?e.call(n,r,n,t):e)||(t.exports=o)}()},653:t=>{"use strict";var n=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var n=Object.prototype.toString.call(t);return"[object RegExp]"===n||"[object Date]"===n||function(t){return t.$$typeof===r}(t)}(t)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function e(t,n){return!1!==n.clone&&n.isMergeableObject(t)?a((r=t,Array.isArray(r)?[]:{}),t,n):t;var r}function o(t,n,r){return t.concat(n).map((function(t){return e(t,r)}))}function i(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(n){return t.propertyIsEnumerable(n)})):[]}(t))}function u(t,n){try{return n in t}catch(t){return!1}}function a(t,r,c){(c=c||{}).arrayMerge=c.arrayMerge||o,c.isMergeableObject=c.isMergeableObject||n,c.cloneUnlessOtherwiseSpecified=e;var s=Array.isArray(r);return s===Array.isArray(t)?s?c.arrayMerge(t,r,c):function(t,n,r){var o={};return r.isMergeableObject(t)&&i(t).forEach((function(n){o[n]=e(t[n],r)})),i(n).forEach((function(i){(function(t,n){return u(t,n)&&!(Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))})(t,i)||(u(t,i)&&r.isMergeableObject(n[i])?o[i]=function(t,n){if(!n.customMerge)return a;var r=n.customMerge(t);return"function"==typeof r?r:a}(i,r)(t[i],n[i],r):o[i]=e(n[i],r))})),o}(t,r,c):e(r,c)}a.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,r){return a(t,r,n)}),{})};var c=a;t.exports=c},194:(t,n,r)=>{var e=r(2651)(r(4329),"DataView");t.exports=e},9155:(t,n,r)=>{var e=r(6673),o=r(9605),i=r(9687),u=r(1972),a=r(863);function c(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}c.prototype.clear=e,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=u,c.prototype.set=a,t.exports=c},2970:(t,n,r)=>{var e=r(8886),o=r(6457),i=r(8108),u=r(7765),a=r(9142);function c(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}c.prototype.clear=e,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=u,c.prototype.set=a,t.exports=c},2602:(t,n,r)=>{var e=r(2651)(r(4329),"Map");t.exports=e},7372:(t,n,r)=>{var e=r(4692),o=r(7238),i=r(9615),u=r(1336),a=r(5084);function c(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var e=t[n];this.set(e[0],e[1])}}c.prototype.clear=e,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=u,c.prototype.set=a,t.exports=c},3057:(t,n,r)=>{var e=r(2651)(r(4329),"Promise");t.exports=e},6559:(t,n,r)=>{var e=r(2651)(r(4329),"Set");t.exports=e},6041:(t,n,r)=>{var e=r(7372),o=r(3312),i=r(4201);function u(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new e;++n<r;)this.add(t[n])}u.prototype.add=u.prototype.push=o,u.prototype.has=i,t.exports=u},4395:(t,n,r)=>{var e=r(2970),o=r(7617),i=r(4944),u=r(9935),a=r(9236),c=r(9346);function s(t){var n=this.__data__=new e(t);this.size=n.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=u,s.prototype.has=a,s.prototype.set=c,t.exports=s},877:(t,n,r)=>{var e=r(4329).Symbol;t.exports=e},9904:(t,n,r)=>{var e=r(4329).Uint8Array;t.exports=e},4215:(t,n,r)=>{var e=r(2651)(r(4329),"WeakMap");t.exports=e},9574:t=>{t.exports=function(t,n){for(var r=-1,e=null==t?0:t.length,o=0,i=[];++r<e;){var u=t[r];n(u,r,t)&&(i[o++]=u)}return i}},6681:(t,n,r)=>{var e=r(3803),o=r(2441),i=r(4609),u=r(5211),a=r(2850),c=r(6603),s=Object.prototype.hasOwnProperty;t.exports=function(t,n){var r=i(t),l=!r&&o(t),f=!r&&!l&&u(t),h=!r&&!l&&!f&&c(t),p=r||l||f||h,v=p?e(t.length,String):[],d=v.length;for(var g in t)!n&&!s.call(t,g)||p&&("length"==g||f&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,d))||v.push(g);return v}},8106:t=>{t.exports=function(t,n){for(var r=-1,e=null==t?0:t.length,o=Array(e);++r<e;)o[r]=n(t[r],r,t);return o}},3309:t=>{t.exports=function(t,n){for(var r=-1,e=n.length,o=t.length;++r<e;)t[o+r]=n[r];return t}},898:t=>{t.exports=function(t,n){for(var r=-1,e=null==t?0:t.length;++r<e;)if(n(t[r],r,t))return!0;return!1}},5256:(t,n,r)=>{var e=r(8213);t.exports=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1}},852:(t,n,r)=>{var e=r(4257);t.exports=function(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}},6014:(t,n,r)=>{var e=r(1032)();t.exports=e},5876:(t,n,r)=>{var e=r(6014),o=r(8220);t.exports=function(t,n){return t&&e(t,n,o)}},3409:(t,n,r)=>{var e=r(4702),o=r(2566);t.exports=function(t,n){for(var r=0,i=(n=e(n,t)).length;null!=t&&r<i;)t=t[o(n[r++])];return r&&r==i?t:void 0}},1999:(t,n,r)=>{var e=r(3309),o=r(4609);t.exports=function(t,n,r){var i=n(t);return o(t)?i:e(i,r(t))}},3984:(t,n,r)=>{var e=r(877),o=r(1115),i=r(7058),u=e?e.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":u&&u in Object(t)?o(t):i(t)}},1016:t=>{t.exports=function(t,n){return null!=t&&n in Object(t)}},8996:(t,n,r)=>{var e=r(3984),o=r(8994);t.exports=function(t){return o(t)&&"[object Arguments]"==e(t)}},241:(t,n,r)=>{var e=r(5024),o=r(8994);t.exports=function t(n,r,i,u,a){return n===r||(null==n||null==r||!o(n)&&!o(r)?n!=n&&r!=r:e(n,r,i,u,t,a))}},5024:(t,n,r)=>{var e=r(4395),o=r(6436),i=r(4112),u=r(1800),a=r(3460),c=r(4609),s=r(5211),l=r(6603),f="[object Arguments]",h="[object Array]",p="[object Object]",v=Object.prototype.hasOwnProperty;t.exports=function(t,n,r,d,g,y){var m=c(t),x=c(n),b=m?h:a(t),Z=x?h:a(n),M=(b=b==f?p:b)==p,_=(Z=Z==f?p:Z)==p,w=b==Z;if(w&&s(t)){if(!s(n))return!1;m=!0,M=!1}if(w&&!M)return y||(y=new e),m||l(t)?o(t,n,r,d,g,y):i(t,n,b,r,d,g,y);if(!(1&r)){var S=M&&v.call(t,"__wrapped__"),j=_&&v.call(n,"__wrapped__");if(S||j){var A=S?t.value():t,k=j?n.value():n;return y||(y=new e),g(A,k,r,d,y)}}return!!w&&(y||(y=new e),u(t,n,r,d,g,y))}},2425:(t,n,r)=>{var e=r(4395),o=r(241);t.exports=function(t,n,r,i){var u=r.length,a=u,c=!i;if(null==t)return!a;for(t=Object(t);u--;){var s=r[u];if(c&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++u<a;){var l=(s=r[u])[0],f=t[l],h=s[1];if(c&&s[2]){if(void 0===f&&!(l in t))return!1}else{var p=new e;if(i)var v=i(f,h,l,t,n,p);if(!(void 0===v?o(h,f,3,i,p):v))return!1}}return!0}},9532:(t,n,r)=>{var e=r(664),o=r(3013),i=r(4411),u=r(1087),a=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,l=c.toString,f=s.hasOwnProperty,h=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(e(t)?h:a).test(u(t))}},7934:(t,n,r)=>{var e=r(3984),o=r(2829),i=r(8994),u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!u[e(t)]}},3571:(t,n,r)=>{var e=r(2614),o=r(3688),i=r(5314),u=r(4609),a=r(4774);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?u(t)?o(t[0],t[1]):e(t):a(t)}},1350:(t,n,r)=>{var e=r(3624),o=r(1360),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!e(t))return o(t);var n=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&n.push(r);return n}},2614:(t,n,r)=>{var e=r(2425),o=r(3077),i=r(508);t.exports=function(t){var n=o(t);return 1==n.length&&n[0][2]?i(n[0][0],n[0][1]):function(r){return r===t||e(r,t,n)}}},3688:(t,n,r)=>{var e=r(241),o=r(2756),i=r(7215),u=r(692),a=r(5778),c=r(508),s=r(2566);t.exports=function(t,n){return u(t)&&a(n)?c(s(t),n):function(r){var u=o(r,t);return void 0===u&&u===n?i(r,t):e(n,u,3)}}},179:t=>{t.exports=function(t){return function(n){return null==n?void 0:n[t]}}},2308:(t,n,r)=>{var e=r(3409);t.exports=function(t){return function(n){return e(n,t)}}},3803:t=>{t.exports=function(t,n){for(var r=-1,e=Array(t);++r<t;)e[r]=n(r);return e}},3588:(t,n,r)=>{var e=r(877),o=r(8106),i=r(4609),u=r(9739),a=e?e.prototype:void 0,c=a?a.toString:void 0;t.exports=function t(n){if("string"==typeof n)return n;if(i(n))return o(n,t)+"";if(u(n))return c?c.call(n):"";var r=n+"";return"0"==r&&1/n==-1/0?"-0":r}},3452:t=>{t.exports=function(t){return function(n){return t(n)}}},4299:t=>{t.exports=function(t,n){return t.has(n)}},4702:(t,n,r)=>{var e=r(4609),o=r(692),i=r(6731),u=r(8553);t.exports=function(t,n){return e(t)?t:o(t,n)?[t]:i(u(t))}},5637:(t,n,r)=>{var e=r(4329)["__core-js_shared__"];t.exports=e},1032:t=>{t.exports=function(t){return function(n,r,e){for(var o=-1,i=Object(n),u=e(n),a=u.length;a--;){var c=u[t?a:++o];if(!1===r(i[c],c,i))break}return n}}},4257:(t,n,r)=>{var e=r(2651),o=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},6436:(t,n,r)=>{var e=r(6041),o=r(898),i=r(4299);t.exports=function(t,n,r,u,a,c){var s=1&r,l=t.length,f=n.length;if(l!=f&&!(s&&f>l))return!1;var h=c.get(t),p=c.get(n);if(h&&p)return h==n&&p==t;var v=-1,d=!0,g=2&r?new e:void 0;for(c.set(t,n),c.set(n,t);++v<l;){var y=t[v],m=n[v];if(u)var x=s?u(m,y,v,n,t,c):u(y,m,v,t,n,c);if(void 0!==x){if(x)continue;d=!1;break}if(g){if(!o(n,(function(t,n){if(!i(g,n)&&(y===t||a(y,t,r,u,c)))return g.push(n)}))){d=!1;break}}else if(y!==m&&!a(y,m,r,u,c)){d=!1;break}}return c.delete(t),c.delete(n),d}},4112:(t,n,r)=>{var e=r(877),o=r(9904),i=r(8213),u=r(6436),a=r(8628),c=r(8044),s=e?e.prototype:void 0,l=s?s.valueOf:void 0;t.exports=function(t,n,r,e,s,f,h){switch(r){case"[object DataView]":if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=n.byteLength||!f(new o(t),new o(n)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+n);case"[object Error]":return t.name==n.name&&t.message==n.message;case"[object RegExp]":case"[object String]":return t==n+"";case"[object Map]":var p=a;case"[object Set]":var v=1&e;if(p||(p=c),t.size!=n.size&&!v)return!1;var d=h.get(t);if(d)return d==n;e|=2,h.set(t,n);var g=u(p(t),p(n),e,s,f,h);return h.delete(t),g;case"[object Symbol]":if(l)return l.call(t)==l.call(n)}return!1}},1800:(t,n,r)=>{var e=r(147),o=Object.prototype.hasOwnProperty;t.exports=function(t,n,r,i,u,a){var c=1&r,s=e(t),l=s.length;if(l!=e(n).length&&!c)return!1;for(var f=l;f--;){var h=s[f];if(!(c?h in n:o.call(n,h)))return!1}var p=a.get(t),v=a.get(n);if(p&&v)return p==n&&v==t;var d=!0;a.set(t,n),a.set(n,t);for(var g=c;++f<l;){var y=t[h=s[f]],m=n[h];if(i)var x=c?i(m,y,h,n,t,a):i(y,m,h,t,n,a);if(!(void 0===x?y===m||u(y,m,r,i,a):x)){d=!1;break}g||(g="constructor"==h)}if(d&&!g){var b=t.constructor,Z=n.constructor;b==Z||!("constructor"in t)||!("constructor"in n)||"function"==typeof b&&b instanceof b&&"function"==typeof Z&&Z instanceof Z||(d=!1)}return a.delete(t),a.delete(n),d}},2836:(t,n,r)=>{var e="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=e},147:(t,n,r)=>{var e=r(1999),o=r(8968),i=r(8220);t.exports=function(t){return e(t,i,o)}},7864:(t,n,r)=>{var e=r(5668);t.exports=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map}},3077:(t,n,r)=>{var e=r(5778),o=r(8220);t.exports=function(t){for(var n=o(t),r=n.length;r--;){var i=n[r],u=t[i];n[r]=[i,u,e(u)]}return n}},2651:(t,n,r)=>{var e=r(9532),o=r(4428);t.exports=function(t,n){var r=o(t,n);return e(r)?r:void 0}},8711:(t,n,r)=>{var e=r(6507)(Object.getPrototypeOf,Object);t.exports=e},1115:(t,n,r)=>{var e=r(877),o=Object.prototype,i=o.hasOwnProperty,u=o.toString,a=e?e.toStringTag:void 0;t.exports=function(t){var n=i.call(t,a),r=t[a];try{t[a]=void 0;var e=!0}catch(t){}var o=u.call(t);return e&&(n?t[a]=r:delete t[a]),o}},8968:(t,n,r)=>{var e=r(9574),o=r(9874),i=Object.prototype.propertyIsEnumerable,u=Object.getOwnPropertySymbols,a=u?function(t){return null==t?[]:(t=Object(t),e(u(t),(function(n){return i.call(t,n)})))}:o;t.exports=a},3460:(t,n,r)=>{var e=r(194),o=r(2602),i=r(3057),u=r(6559),a=r(4215),c=r(3984),s=r(1087),l="[object Map]",f="[object Promise]",h="[object Set]",p="[object WeakMap]",v="[object DataView]",d=s(e),g=s(o),y=s(i),m=s(u),x=s(a),b=c;(e&&b(new e(new ArrayBuffer(1)))!=v||o&&b(new o)!=l||i&&b(i.resolve())!=f||u&&b(new u)!=h||a&&b(new a)!=p)&&(b=function(t){var n=c(t),r="[object Object]"==n?t.constructor:void 0,e=r?s(r):"";if(e)switch(e){case d:return v;case g:return l;case y:return f;case m:return h;case x:return p}return n}),t.exports=b},4428:t=>{t.exports=function(t,n){return null==t?void 0:t[n]}},1181:(t,n,r)=>{var e=r(4702),o=r(2441),i=r(4609),u=r(2850),a=r(2829),c=r(2566);t.exports=function(t,n,r){for(var s=-1,l=(n=e(n,t)).length,f=!1;++s<l;){var h=c(n[s]);if(!(f=null!=t&&r(t,h)))break;t=t[h]}return f||++s!=l?f:!!(l=null==t?0:t.length)&&a(l)&&u(h,l)&&(i(t)||o(t))}},6673:(t,n,r)=>{var e=r(591);t.exports=function(){this.__data__=e?e(null):{},this.size=0}},9605:t=>{t.exports=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}},9687:(t,n,r)=>{var e=r(591),o=Object.prototype.hasOwnProperty;t.exports=function(t){var n=this.__data__;if(e){var r=n[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(n,t)?n[t]:void 0}},1972:(t,n,r)=>{var e=r(591),o=Object.prototype.hasOwnProperty;t.exports=function(t){var n=this.__data__;return e?void 0!==n[t]:o.call(n,t)}},863:(t,n,r)=>{var e=r(591);t.exports=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this}},2850:t=>{var n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var e=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==e||"symbol"!=e&&n.test(t))&&t>-1&&t%1==0&&t<r}},692:(t,n,r)=>{var e=r(4609),o=r(9739),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=function(t,n){if(e(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||u.test(t)||!i.test(t)||null!=n&&t in Object(n)}},5668:t=>{t.exports=function(t){var n=typeof t;return"string"==n||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t}},3013:(t,n,r)=>{var e,o=r(5637),i=(e=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"";t.exports=function(t){return!!i&&i in t}},3624:t=>{var n=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||n)}},5778:(t,n,r)=>{var e=r(4411);t.exports=function(t){return t==t&&!e(t)}},8886:t=>{t.exports=function(){this.__data__=[],this.size=0}},6457:(t,n,r)=>{var e=r(5256),o=Array.prototype.splice;t.exports=function(t){var n=this.__data__,r=e(n,t);return!(r<0||(r==n.length-1?n.pop():o.call(n,r,1),--this.size,0))}},8108:(t,n,r)=>{var e=r(5256);t.exports=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]}},7765:(t,n,r)=>{var e=r(5256);t.exports=function(t){return e(this.__data__,t)>-1}},9142:(t,n,r)=>{var e=r(5256);t.exports=function(t,n){var r=this.__data__,o=e(r,t);return o<0?(++this.size,r.push([t,n])):r[o][1]=n,this}},4692:(t,n,r)=>{var e=r(9155),o=r(2970),i=r(2602);t.exports=function(){this.size=0,this.__data__={hash:new e,map:new(i||o),string:new e}}},7238:(t,n,r)=>{var e=r(7864);t.exports=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}},9615:(t,n,r)=>{var e=r(7864);t.exports=function(t){return e(this,t).get(t)}},1336:(t,n,r)=>{var e=r(7864);t.exports=function(t){return e(this,t).has(t)}},5084:(t,n,r)=>{var e=r(7864);t.exports=function(t,n){var r=e(this,t),o=r.size;return r.set(t,n),this.size+=r.size==o?0:1,this}},8628:t=>{t.exports=function(t){var n=-1,r=Array(t.size);return t.forEach((function(t,e){r[++n]=[e,t]})),r}},508:t=>{t.exports=function(t,n){return function(r){return null!=r&&r[t]===n&&(void 0!==n||t in Object(r))}}},4149:(t,n,r)=>{var e=r(9872);t.exports=function(t){var n=e(t,(function(t){return 500===r.size&&r.clear(),t})),r=n.cache;return n}},591:(t,n,r)=>{var e=r(2651)(Object,"create");t.exports=e},1360:(t,n,r)=>{var e=r(6507)(Object.keys,Object);t.exports=e},2824:(t,n,r)=>{t=r.nmd(t);var e=r(2836),o=n&&!n.nodeType&&n,i=o&&t&&!t.nodeType&&t,u=i&&i.exports===o&&e.process,a=function(){try{return i&&i.require&&i.require("util").types||u&&u.binding&&u.binding("util")}catch(t){}}();t.exports=a},7058:t=>{var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},6507:t=>{t.exports=function(t,n){return function(r){return t(n(r))}}},4329:(t,n,r)=>{var e=r(2836),o="object"==typeof self&&self&&self.Object===Object&&self,i=e||o||Function("return this")();t.exports=i},3312:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},4201:t=>{t.exports=function(t){return this.__data__.has(t)}},8044:t=>{t.exports=function(t){var n=-1,r=Array(t.size);return t.forEach((function(t){r[++n]=t})),r}},7617:(t,n,r)=>{var e=r(2970);t.exports=function(){this.__data__=new e,this.size=0}},4944:t=>{t.exports=function(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}},9935:t=>{t.exports=function(t){return this.__data__.get(t)}},9236:t=>{t.exports=function(t){return this.__data__.has(t)}},9346:(t,n,r)=>{var e=r(2970),o=r(2602),i=r(7372);t.exports=function(t,n){var r=this.__data__;if(r instanceof e){var u=r.__data__;if(!o||u.length<199)return u.push([t,n]),this.size=++r.size,this;r=this.__data__=new i(u)}return r.set(t,n),this.size=r.size,this}},6731:(t,n,r)=>{var e=r(4149),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,u=e((function(t){var n=[];return 46===t.charCodeAt(0)&&n.push(""),t.replace(o,(function(t,r,e,o){n.push(e?o.replace(i,"$1"):r||t)})),n}));t.exports=u},2566:(t,n,r)=>{var e=r(9739);t.exports=function(t){if("string"==typeof t||e(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},1087:t=>{var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},8213:t=>{t.exports=function(t,n){return t===n||t!=t&&n!=n}},2756:(t,n,r)=>{var e=r(3409);t.exports=function(t,n,r){var o=null==t?void 0:e(t,n);return void 0===o?r:o}},7215:(t,n,r)=>{var e=r(1016),o=r(1181);t.exports=function(t,n){return null!=t&&o(t,n,e)}},5314:t=>{t.exports=function(t){return t}},2441:(t,n,r)=>{var e=r(8996),o=r(8994),i=Object.prototype,u=i.hasOwnProperty,a=i.propertyIsEnumerable,c=e(function(){return arguments}())?e:function(t){return o(t)&&u.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},4609:t=>{var n=Array.isArray;t.exports=n},3527:(t,n,r)=>{var e=r(664),o=r(2829);t.exports=function(t){return null!=t&&o(t.length)&&!e(t)}},5211:(t,n,r)=>{t=r.nmd(t);var e=r(4329),o=r(5676),i=n&&!n.nodeType&&n,u=i&&t&&!t.nodeType&&t,a=u&&u.exports===i?e.Buffer:void 0,c=(a?a.isBuffer:void 0)||o;t.exports=c},664:(t,n,r)=>{var e=r(3984),o=r(4411);t.exports=function(t){if(!o(t))return!1;var n=e(t);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}},2829:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},4411:t=>{t.exports=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}},8994:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},3966:(t,n,r)=>{var e=r(3984),o=r(8711),i=r(8994),u=Function.prototype,a=Object.prototype,c=u.toString,s=a.hasOwnProperty,l=c.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=e(t))return!1;var n=o(t);if(null===n)return!0;var r=s.call(n,"constructor")&&n.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==l}},9739:(t,n,r)=>{var e=r(3984),o=r(8994);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==e(t)}},6603:(t,n,r)=>{var e=r(7934),o=r(3452),i=r(2824),u=i&&i.isTypedArray,a=u?o(u):e;t.exports=a},8220:(t,n,r)=>{var e=r(6681),o=r(1350),i=r(3527);t.exports=function(t){return i(t)?e(t):o(t)}},8781:(t,n,r)=>{var e=r(852),o=r(5876),i=r(3571);t.exports=function(t,n){var r={};return n=i(n,3),o(t,(function(t,o,i){e(r,o,n(t,o,i))})),r}},9872:(t,n,r)=>{var e=r(7372);function o(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new TypeError("Expected a function");var r=function(){var e=arguments,o=n?n.apply(this,e):e[0],i=r.cache;if(i.has(o))return i.get(o);var u=t.apply(this,e);return r.cache=i.set(o,u)||i,u};return r.cache=new(o.Cache||e),r}o.Cache=e,t.exports=o},4774:(t,n,r)=>{var e=r(179),o=r(2308),i=r(692),u=r(2566);t.exports=function(t){return i(t)?e(u(t)):o(t)}},9874:t=>{t.exports=function(){return[]}},5676:t=>{t.exports=function(){return!1}},8553:(t,n,r)=>{var e=r(3588);t.exports=function(t){return null==t?"":e(t)}},7706:(t,n,r)=>{"use strict";r.d(n,{Z:()=>i});var e=r(9437),o=(0,r(2202).Z)((function(t,n){return(0,e.Z)(t.length,(function(){return t.apply(n,arguments)}))}));const i=o},1465:(t,n,r)=>{"use strict";r.d(n,{Z:()=>a});var e=r(9437),o=r(7829),i=r(2202),u=r(4277);const a=(0,i.Z)((function(t,n){return 1===t?(0,o.Z)(n):(0,e.Z)(t,(0,u.Z)(t,[],n))}))},8852:(t,n,r)=>{"use strict";r.d(n,{Z:()=>s});var e=r(7829),o=r(2532),i=r(7146),u=r(2599),a=r(6204),c=(0,e.Z)((function(t){return null!=t&&"function"==typeof t["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"==typeof t.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():(0,i.Z)(t)?[]:(0,a.Z)(t)?"":(0,u.Z)(t)?{}:(0,o.Z)(t)?function(){return arguments}():void 0}));const s=c},554:(t,n,r)=>{"use strict";r.d(n,{Z:()=>h});var e=r(2202);function o(t){for(var n,r=[];!(n=t.next()).done;)r.push(n.value);return r}var i=r(8242),u=r(853),a=r(5175),c=r(3939),s=r(4746);function l(t,n,r,e){var u=o(t),a=o(n);function c(t,n){return f(t,n,r.slice(),e.slice())}return!(0,i.Z)((function(t,n){return!(0,i.Z)(c,n,t)}),a,u)}function f(t,n,r,e){if((0,a.Z)(t,n))return!0;var o,i,h=(0,s.Z)(t);if(h!==(0,s.Z)(n))return!1;if(null==t||null==n)return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof n["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](n)&&"function"==typeof n["fantasy-land/equals"]&&n["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof n.equals)return"function"==typeof t.equals&&t.equals(n)&&"function"==typeof n.equals&&n.equals(t);switch(h){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===(o=t.constructor,null==(i=String(o).match(/^function (\w*)/))?"":i[1]))return t===n;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof n||!(0,a.Z)(t.valueOf(),n.valueOf()))return!1;break;case"Date":if(!(0,a.Z)(t.valueOf(),n.valueOf()))return!1;break;case"Error":return t.name===n.name&&t.message===n.message;case"RegExp":if(t.source!==n.source||t.global!==n.global||t.ignoreCase!==n.ignoreCase||t.multiline!==n.multiline||t.sticky!==n.sticky||t.unicode!==n.unicode)return!1}for(var p=r.length-1;p>=0;){if(r[p]===t)return e[p]===n;p-=1}switch(h){case"Map":return t.size===n.size&&l(t.entries(),n.entries(),r.concat([t]),e.concat([n]));case"Set":return t.size===n.size&&l(t.values(),n.values(),r.concat([t]),e.concat([n]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var v=(0,c.Z)(t);if(v.length!==(0,c.Z)(n).length)return!1;var d=r.concat([t]),g=e.concat([n]);for(p=v.length-1;p>=0;){var y=v[p];if(!(0,u.Z)(y,n)||!f(n[y],t[y],d,g))return!1;p-=1}return!0}const h=(0,e.Z)((function(t,n){return f(t,n,[],[])}))},4400:(t,n,r)=>{"use strict";r.d(n,{Z:()=>h});var e=r(2202),o=r(9416),i=r(6882),u=r(2599),a=r(8949),c=r(8069),s=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=c.Z.init,t.prototype["@@transducer/result"]=c.Z.result,t.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.xf["@@transducer/step"](t,n):t},t}();const l=(0,e.Z)((function(t,n){return new s(t,n)}));var f=r(3939);const h=(0,e.Z)((0,o.Z)(["filter"],l,(function(t,n){return(0,u.Z)(n)?(0,a.Z)((function(r,e){return t(n[e])&&(r[e]=n[e]),r}),{},(0,f.Z)(n)):(0,i.Z)(t,n)})))},2061:(t,n,r)=>{"use strict";r.r(n),r.d(n,{F:()=>e,T:()=>o,__:()=>i,add:()=>a,addIndex:()=>h,adjust:()=>v,all:()=>b,allPass:()=>D,always:()=>R,and:()=>U,andThen:()=>hi,any:()=>B,anyPass:()=>W,ap:()=>Y,aperture:()=>J,append:()=>K,apply:()=>G,applySpec:()=>rt,applyTo:()=>et,ascend:()=>ot,assoc:()=>it,assocPath:()=>st,binary:()=>ft,bind:()=>ht.Z,both:()=>mt,call:()=>Zt,chain:()=>St,clamp:()=>jt,clone:()=>Ot,comparator:()=>Nt,complement:()=>zt,compose:()=>Pt,composeK:()=>Lt,composeP:()=>Ft,composeWith:()=>$t,concat:()=>Jt,cond:()=>Gt,construct:()=>nn,constructN:()=>tn,contains:()=>en,converge:()=>un,countBy:()=>fn,curry:()=>xt,curryN:()=>l.Z,dec:()=>hn,defaultTo:()=>pn,descend:()=>vn,difference:()=>yn,differenceWith:()=>xn,dissoc:()=>bn,dissocPath:()=>wn,divide:()=>Sn,drop:()=>En,dropLast:()=>Pn,dropLastWhile:()=>Un,dropRepeats:()=>Yn,dropRepeatsWith:()=>Hn,dropWhile:()=>Xn,either:()=>Gn,empty:()=>Qn.Z,endsWith:()=>nr,eqBy:()=>rr,eqProps:()=>er,equals:()=>Wn.Z,evolve:()=>ir,filter:()=>ur.Z,find:()=>sr,findIndex:()=>hr,findLast:()=>dr,findLastIndex:()=>mr,flatten:()=>xr,flip:()=>Zr,forEach:()=>_r,forEachObjIndexed:()=>wr,fromPairs:()=>Sr,groupBy:()=>jr,groupWith:()=>Ar,gt:()=>kr,gte:()=>Er,has:()=>Nr,hasIn:()=>Cr,hasPath:()=>Or,head:()=>Bt,identical:()=>Tr,identity:()=>Wt,ifElse:()=>Pr,inc:()=>Lr,includes:()=>Dr,indexBy:()=>Rr,indexOf:()=>Ir,init:()=>Fr,innerJoin:()=>Hr,insert:()=>Wr,insertAll:()=>Yr,intersection:()=>Jr,intersperse:()=>Kr,into:()=>oe,invert:()=>ie,invertObj:()=>ue,invoker:()=>ae.Z,is:()=>ce.Z,isEmpty:()=>se.Z,isNil:()=>ct,join:()=>le.Z,juxt:()=>he,keys:()=>j.Z,keysIn:()=>pe,last:()=>Bn,lastIndexOf:()=>ve,length:()=>ge,lens:()=>ye,lensIndex:()=>me,lensPath:()=>xe,lensProp:()=>be,lift:()=>gt,liftN:()=>dt,lt:()=>Ze,lte:()=>Me,map:()=>k,mapAccum:()=>_e,mapAccumRight:()=>we,mapObjIndexed:()=>Se,match:()=>je,mathMod:()=>Ae,max:()=>Z,maxBy:()=>ke,mean:()=>Oe,median:()=>Ne,memoizeWith:()=>ze,merge:()=>Te,mergeAll:()=>qe,mergeDeepLeft:()=>Re,mergeDeepRight:()=>Ue,mergeDeepWith:()=>Ie,mergeDeepWithKey:()=>De,mergeLeft:()=>Fe,mergeRight:()=>Be,mergeWith:()=>He,mergeWithKey:()=>Le,min:()=>We,minBy:()=>Ye,modulo:()=>Ve,move:()=>$e,multiply:()=>Xe,nAry:()=>lt,negate:()=>Je,none:()=>Ge,not:()=>Ct,nth:()=>N,nthArg:()=>to,o:()=>no,objOf:()=>te,of:()=>eo,omit:()=>oo,once:()=>uo,or:()=>Jn,otherwise:()=>so,over:()=>fo,pair:()=>ho,partial:()=>vo,partialRight:()=>go,partition:()=>mo,path:()=>z,pathEq:()=>xo,pathOr:()=>bo,pathSatisfies:()=>Zo,paths:()=>C,pick:()=>Mo,pickAll:()=>_o,pickBy:()=>wo,pipe:()=>Tt.Z,pipeK:()=>So,pipeP:()=>It,pipeWith:()=>Vt,pluck:()=>q,prepend:()=>jo,product:()=>Ao,project:()=>Oo,prop:()=>T,propEq:()=>No,propIs:()=>zo,propOr:()=>To,propSatisfies:()=>qo,props:()=>Po,range:()=>Lo,reduce:()=>P.Z,reduceBy:()=>ln,reduceRight:()=>Do,reduceWhile:()=>Ro,reduced:()=>Uo,reject:()=>yo.Z,remove:()=>Zn,repeat:()=>Fo,replace:()=>Bo.Z,reverse:()=>qt,scan:()=>Ho,sequence:()=>Wo,set:()=>Yo,slice:()=>kn.Z,sort:()=>Vo,sortBy:()=>$o,sortWith:()=>Xo,split:()=>Jo,splitAt:()=>Ko,splitEvery:()=>Go,splitWhen:()=>Qo,startsWith:()=>ti,subtract:()=>ni,sum:()=>Ee,symmetricDifference:()=>ri,symmetricDifferenceWith:()=>ei,tail:()=>Ut.Z,take:()=>Cn,takeLast:()=>tr,takeLastWhile:()=>oi,takeWhile:()=>ai,tap:()=>li,test:()=>fi,thunkify:()=>Ki,times:()=>Io,toLower:()=>pi,toPairs:()=>vi,toPairsIn:()=>di,toString:()=>Xt.Z,toUpper:()=>gi,transduce:()=>mi,transpose:()=>xi,traverse:()=>bi,trim:()=>Mi,tryCatch:()=>wi,type:()=>kt.Z,unapply:()=>ji,unary:()=>Ai,uncurryN:()=>Ei,unfold:()=>Oi,union:()=>Ni,unionWith:()=>zi,uniq:()=>Xr,uniqBy:()=>$r,uniqWith:()=>Ci,unless:()=>Ti,unnest:()=>qi,until:()=>Pi,update:()=>Mn,useWith:()=>Eo,values:()=>Q,valuesIn:()=>Li,view:()=>Ri,when:()=>Ui,where:()=>Ii,whereEq:()=>Fi,without:()=>Bi,xor:()=>Hi,xprod:()=>Wi,zip:()=>Yi,zipObj:()=>$i,zipWith:()=>Xi});const e=function(){return!1},o=function(){return!0},i={"@@functional/placeholder":!0};var u=r(2202);const a=(0,u.Z)((function(t,n){return Number(t)+Number(n)}));function c(t,n){var r;n=n||[];var e=(t=t||[]).length,o=n.length,i=[];for(r=0;r<e;)i[i.length]=t[r],r+=1;for(r=0;r<o;)i[i.length]=n[r],r+=1;return i}var s=r(7829),l=r(1465),f=(0,s.Z)((function(t){return(0,l.Z)(t.length,(function(){var n=0,r=arguments[0],e=arguments[arguments.length-1],o=Array.prototype.slice.call(arguments,0);return o[0]=function(){var t=r.apply(this,c(arguments,[n,e]));return n+=1,t},t.apply(this,o)}))}));const h=f;var p=r(7692);const v=(0,p.Z)((function(t,n,r){if(t>=r.length||t<-r.length)return r;var e=(t<0?r.length:0)+t,o=c(r);return o[e]=n(r[e]),o}));var d=r(9416);function g(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}var y=r(8069),m=function(){function t(t,n){this.xf=n,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=y.Z.init,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)||(this.all=!1,t=g(this.xf["@@transducer/step"](t,!1))),t},t}();const x=(0,u.Z)((function(t,n){return new m(t,n)})),b=(0,u.Z)((0,d.Z)(["all"],x,(function(t,n){for(var r=0;r<n.length;){if(!t(n[r]))return!1;r+=1}return!0}))),Z=(0,u.Z)((function(t,n){return n>t?n:t}));var M=r(894),_=r(8949),w=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=y.Z.init,t.prototype["@@transducer/result"]=y.Z.result,t.prototype["@@transducer/step"]=function(t,n){return this.xf["@@transducer/step"](t,this.f(n))},t}();const S=(0,u.Z)((function(t,n){return new w(t,n)}));var j=r(3939),A=(0,u.Z)((0,d.Z)(["fantasy-land/map","map"],S,(function(t,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return(0,l.Z)(n.length,(function(){return t.call(this,n.apply(this,arguments))}));case"[object Object]":return(0,_.Z)((function(r,e){return r[e]=t(n[e]),r}),{},(0,j.Z)(n));default:return(0,M.Z)(t,n)}})));const k=A,E=Number.isInteger||function(t){return t<<0===t};var O=r(6204);const N=(0,u.Z)((function(t,n){var r=t<0?n.length+t:t;return(0,O.Z)(n)?n.charAt(r):n[r]})),C=(0,u.Z)((function(t,n){return t.map((function(t){for(var r,e=n,o=0;o<t.length;){if(null==e)return;r=t[o],e=E(r)?N(r,e):e[r],o+=1}return e}))})),z=(0,u.Z)((function(t,n){return C([t],n)[0]})),T=(0,u.Z)((function(t,n){return z([t],n)})),q=(0,u.Z)((function(t,n){return k(T(t),n)}));var P=r(3161),L=(0,s.Z)((function(t){return(0,l.Z)((0,P.Z)(Z,0,q("length",t)),(function(){for(var n=0,r=t.length;n<r;){if(!t[n].apply(this,arguments))return!1;n+=1}return!0}))}));const D=L,R=(0,s.Z)((function(t){return function(){return t}})),U=(0,u.Z)((function(t,n){return t&&n}));var I=function(){function t(t,n){this.xf=n,this.f=t,this.any=!1}return t.prototype["@@transducer/init"]=y.Z.init,t.prototype["@@transducer/result"]=function(t){return this.any||(t=this.xf["@@transducer/step"](t,!1)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)&&(this.any=!0,t=g(this.xf["@@transducer/step"](t,!0))),t},t}();const F=(0,u.Z)((function(t,n){return new I(t,n)})),B=(0,u.Z)((0,d.Z)(["any"],F,(function(t,n){for(var r=0;r<n.length;){if(t(n[r]))return!0;r+=1}return!1})));var H=(0,s.Z)((function(t){return(0,l.Z)((0,P.Z)(Z,0,q("length",t)),(function(){for(var n=0,r=t.length;n<r;){if(t[n].apply(this,arguments))return!0;n+=1}return!1}))}));const W=H,Y=(0,u.Z)((function(t,n){return"function"==typeof n["fantasy-land/ap"]?n["fantasy-land/ap"](t):"function"==typeof t.ap?t.ap(n):"function"==typeof t?function(r){return t(r)(n(r))}:(0,_.Z)((function(t,r){return c(t,k(r,n))}),[],t)}));function V(t,n){for(var r=0,e=n.length-(t-1),o=new Array(e>=0?e:0);r<e;)o[r]=Array.prototype.slice.call(n,r,r+t),r+=1;return o}var $=function(){function t(t,n){this.xf=n,this.pos=0,this.full=!1,this.acc=new Array(t)}return t.prototype["@@transducer/init"]=y.Z.init,t.prototype["@@transducer/result"]=function(t){return this.acc=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.store(n),this.full?this.xf["@@transducer/step"](t,this.getCopy()):t},t.prototype.store=function(t){this.acc[this.pos]=t,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},t.prototype.getCopy=function(){return c(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))},t}();const X=(0,u.Z)((function(t,n){return new $(t,n)})),J=(0,u.Z)((0,d.Z)([],X,V)),K=(0,u.Z)((function(t,n){return c(n,[t])})),G=(0,u.Z)((function(t,n){return t.apply(this,n)}));const Q=(0,s.Z)((function(t){for(var n=(0,j.Z)(t),r=n.length,e=[],o=0;o<r;)e[o]=t[n[o]],o+=1;return e}));function tt(t,n){return(0,j.Z)(n).reduce((function(r,e){return r[e]=t(n[e]),r}),{})}var nt=(0,s.Z)((function t(n){return n=tt((function(n){return"function"==typeof n?n:t(n)}),n),(0,l.Z)((0,P.Z)(Z,0,q("length",Q(n))),(function(){var t=arguments;return tt((function(n){return G(n,t)}),n)}))}));const rt=nt,et=(0,u.Z)((function(t,n){return n(t)})),ot=(0,p.Z)((function(t,n,r){var e=t(n),o=t(r);return e<o?-1:e>o?1:0}));const it=(0,p.Z)((function(t,n,r){var e={};for(var o in r)e[o]=r[o];return e[t]=n,e}));var ut=r(853),at=r(7146);const ct=(0,s.Z)((function(t){return null==t}));const st=(0,p.Z)((function t(n,r,e){if(0===n.length)return r;var o=n[0];if(n.length>1){var i=!ct(e)&&(0,ut.Z)(o,e)?e[o]:E(n[1])?[]:{};r=t(Array.prototype.slice.call(n,1),r,i)}if(E(o)&&(0,at.Z)(e)){var u=[].concat(e);return u[o]=r,u}return it(o,r,e)})),lt=(0,u.Z)((function(t,n){switch(t){case 0:return function(){return n.call(this)};case 1:return function(t){return n.call(this,t)};case 2:return function(t,r){return n.call(this,t,r)};case 3:return function(t,r,e){return n.call(this,t,r,e)};case 4:return function(t,r,e,o){return n.call(this,t,r,e,o)};case 5:return function(t,r,e,o,i){return n.call(this,t,r,e,o,i)};case 6:return function(t,r,e,o,i,u){return n.call(this,t,r,e,o,i,u)};case 7:return function(t,r,e,o,i,u,a){return n.call(this,t,r,e,o,i,u,a)};case 8:return function(t,r,e,o,i,u,a,c){return n.call(this,t,r,e,o,i,u,a,c)};case 9:return function(t,r,e,o,i,u,a,c,s){return n.call(this,t,r,e,o,i,u,a,c,s)};case 10:return function(t,r,e,o,i,u,a,c,s,l){return n.call(this,t,r,e,o,i,u,a,c,s,l)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}})),ft=(0,s.Z)((function(t){return lt(2,t)}));var ht=r(7706),pt=r(5864),vt=(0,u.Z)((function(t,n){var r=(0,l.Z)(t,n);return(0,l.Z)(t,(function(){return(0,_.Z)(Y,k(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const dt=vt,gt=(0,s.Z)((function(t){return dt(t.length,t)}));var yt=(0,u.Z)((function(t,n){return(0,pt.Z)(t)?function(){return t.apply(this,arguments)&&n.apply(this,arguments)}:gt(U)(t,n)}));const mt=yt,xt=(0,s.Z)((function(t){return(0,l.Z)(t.length,t)}));var bt=xt((function(t){return t.apply(this,Array.prototype.slice.call(arguments,1))}));const Zt=bt;var Mt=r(6581);function _t(t){return function n(r){for(var e,o,i,u=[],a=0,c=r.length;a<c;){if((0,Mt.Z)(r[a]))for(i=0,o=(e=t?n(r[a]):r[a]).length;i<o;)u[u.length]=e[i],i+=1;else u[u.length]=r[a];a+=1}return u}}const wt=(0,u.Z)((function(t,n){return k(t,function(t){var n=function(t){return{"@@transducer/init":y.Z.init,"@@transducer/result":function(n){return t["@@transducer/result"](n)},"@@transducer/step":function(n,r){var e=t["@@transducer/step"](n,r);return e["@@transducer/reduced"]?{"@@transducer/value":e,"@@transducer/reduced":!0}:e}}}(t);return{"@@transducer/init":y.Z.init,"@@transducer/result":function(t){return n["@@transducer/result"](t)},"@@transducer/step":function(t,r){return(0,Mt.Z)(r)?(0,_.Z)(n,t,r):(0,_.Z)(n,t,[r])}}}(n))})),St=(0,u.Z)((0,d.Z)(["fantasy-land/chain","chain"],wt,(function(t,n){return"function"==typeof n?function(r){return t(n(r))(r)}:_t(!1)(k(t,n))})));const jt=(0,p.Z)((function(t,n,r){if(t>n)throw new Error("min must not be greater than max in clamp(min, max, value)");return r<t?t:r>n?n:r}));function At(t){return new RegExp(t.source,(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":""))}var kt=r(4746);function Et(t,n,r,e){var o=function(o){for(var i=n.length,u=0;u<i;){if(t===n[u])return r[u];u+=1}for(var a in n[u+1]=t,r[u+1]=o,t)o[a]=e?Et(t[a],n,r,!0):t[a];return o};switch((0,kt.Z)(t)){case"Object":return o({});case"Array":return o([]);case"Date":return new Date(t.valueOf());case"RegExp":return At(t);default:return t}}const Ot=(0,s.Z)((function(t){return null!=t&&"function"==typeof t.clone?t.clone():Et(t,[],[],!0)})),Nt=(0,s.Z)((function(t){return function(n,r){return t(n,r)?-1:t(r,n)?1:0}})),Ct=(0,s.Z)((function(t){return!t})),zt=gt(Ct);var Tt=r(140);const qt=(0,s.Z)((function(t){return(0,O.Z)(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()}));function Pt(){if(0===arguments.length)throw new Error("compose requires at least one argument");return Tt.Z.apply(this,qt(arguments))}function Lt(){if(0===arguments.length)throw new Error("composeK requires at least one argument");var t=Array.prototype.slice.call(arguments),n=t.pop();return Pt(Pt.apply(this,k(St,t)),n)}var Dt=r(9437);function Rt(t,n){return function(){var r=this;return t.apply(r,arguments).then((function(t){return n.call(r,t)}))}}var Ut=r(280);function It(){if(0===arguments.length)throw new Error("pipeP requires at least one argument");return(0,Dt.Z)(arguments[0].length,(0,P.Z)(Rt,arguments[0],(0,Ut.Z)(arguments)))}function Ft(){if(0===arguments.length)throw new Error("composeP requires at least one argument");return It.apply(this,qt(arguments))}const Bt=N(0);function Ht(t){return t}const Wt=(0,s.Z)(Ht);var Yt=(0,u.Z)((function(t,n){if(n.length<=0)return Wt;var r=Bt(n),e=(0,Ut.Z)(n);return(0,Dt.Z)(r.length,(function(){return(0,_.Z)((function(n,r){return t.call(this,r,n)}),r.apply(this,arguments),e)}))}));const Vt=Yt,$t=(0,u.Z)((function(t,n){return Vt.apply(this,[t,qt(n)])}));var Xt=r(8659);const Jt=(0,u.Z)((function(t,n){if((0,at.Z)(t)){if((0,at.Z)(n))return t.concat(n);throw new TypeError((0,Xt.Z)(n)+" is not an array")}if((0,O.Z)(t)){if((0,O.Z)(n))return t+n;throw new TypeError((0,Xt.Z)(n)+" is not a string")}if(null!=t&&(0,pt.Z)(t["fantasy-land/concat"]))return t["fantasy-land/concat"](n);if(null!=t&&(0,pt.Z)(t.concat))return t.concat(n);throw new TypeError((0,Xt.Z)(t)+' does not have a method named "concat" or "fantasy-land/concat"')}));var Kt=(0,s.Z)((function(t){var n=(0,P.Z)(Z,0,k((function(t){return t[0].length}),t));return(0,Dt.Z)(n,(function(){for(var n=0;n<t.length;){if(t[n][0].apply(this,arguments))return t[n][1].apply(this,arguments);n+=1}}))}));const Gt=Kt;var Qt=(0,u.Z)((function(t,n){if(t>10)throw new Error("Constructor with greater than ten arguments");return 0===t?function(){return new n}:xt(lt(t,(function(t,r,e,o,i,u,a,c,s,l){switch(arguments.length){case 1:return new n(t);case 2:return new n(t,r);case 3:return new n(t,r,e);case 4:return new n(t,r,e,o);case 5:return new n(t,r,e,o,i);case 6:return new n(t,r,e,o,i,u);case 7:return new n(t,r,e,o,i,u,a);case 8:return new n(t,r,e,o,i,u,a,c);case 9:return new n(t,r,e,o,i,u,a,c,s);case 10:return new n(t,r,e,o,i,u,a,c,s,l)}})))}));const tn=Qt,nn=(0,s.Z)((function(t){return tn(t.length,t)}));var rn=r(8501);const en=(0,u.Z)(rn.Z);var on=(0,u.Z)((function(t,n){return(0,l.Z)((0,P.Z)(Z,0,q("length",n)),(function(){var r=arguments,e=this;return t.apply(e,(0,M.Z)((function(t){return t.apply(e,r)}),n))}))}));const un=on;var an=r(4277),cn=function(){function t(t,n,r,e){this.valueFn=t,this.valueAcc=n,this.keyFn=r,this.xf=e,this.inputs={}}return t.prototype["@@transducer/init"]=y.Z.init,t.prototype["@@transducer/result"]=function(t){var n;for(n in this.inputs)if((0,ut.Z)(n,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[n]))["@@transducer/reduced"]){t=t["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){var r=this.keyFn(n);return this.inputs[r]=this.inputs[r]||[r,this.valueAcc],this.inputs[r][1]=this.valueFn(this.inputs[r][1],n),t},t}();const sn=(0,an.Z)(4,[],(function(t,n,r,e){return new cn(t,n,r,e)})),ln=(0,an.Z)(4,[],(0,d.Z)([],sn,(function(t,n,r,e){return(0,_.Z)((function(e,o){var i=r(o);return e[i]=t((0,ut.Z)(i,e)?e[i]:Et(n,[],[],!1),o),e}),{},e)}))),fn=ln((function(t,n){return t+1}),0),hn=a(-1),pn=(0,u.Z)((function(t,n){return null==n||n!=n?t:n})),vn=(0,p.Z)((function(t,n,r){var e=t(n),o=t(r);return e>o?-1:e<o?1:0}));function dn(t,n,r){var e,o=typeof t;switch(o){case"string":case"number":return 0===t&&1/t==-1/0?!!r._items["-0"]||(n&&(r._items["-0"]=!0),!1):null!==r._nativeSet?n?(e=r._nativeSet.size,r._nativeSet.add(t),r._nativeSet.size===e):r._nativeSet.has(t):o in r._items?t in r._items[o]||(n&&(r._items[o][t]=!0),!1):(n&&(r._items[o]={},r._items[o][t]=!0),!1);case"boolean":if(o in r._items){var i=t?1:0;return!!r._items[o][i]||(n&&(r._items[o][i]=!0),!1)}return n&&(r._items[o]=t?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?n?(e=r._nativeSet.size,r._nativeSet.add(t),r._nativeSet.size===e):r._nativeSet.has(t):o in r._items?!!(0,rn.Z)(t,r._items[o])||(n&&r._items[o].push(t),!1):(n&&(r._items[o]=[t]),!1);case"undefined":return!!r._items[o]||(n&&(r._items[o]=!0),!1);case"object":if(null===t)return!!r._items.null||(n&&(r._items.null=!0),!1);default:return(o=Object.prototype.toString.call(t))in r._items?!!(0,rn.Z)(t,r._items[o])||(n&&r._items[o].push(t),!1):(n&&(r._items[o]=[t]),!1)}}const gn=function(){function t(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return t.prototype.add=function(t){return!dn(t,!0,this)},t.prototype.has=function(t){return dn(t,!1,this)},t}(),yn=(0,u.Z)((function(t,n){for(var r=[],e=0,o=t.length,i=n.length,u=new gn,a=0;a<i;a+=1)u.add(n[a]);for(;e<o;)u.add(t[e])&&(r[r.length]=t[e]),e+=1;return r}));var mn=r(8242);const xn=(0,p.Z)((function(t,n,r){for(var e=[],o=0,i=n.length;o<i;)(0,mn.Z)(t,n[o],r)||(0,mn.Z)(t,n[o],e)||e.push(n[o]),o+=1;return e}));const bn=(0,u.Z)((function(t,n){var r={};for(var e in n)r[e]=n[e];return delete r[t],r})),Zn=(0,p.Z)((function(t,n,r){var e=Array.prototype.slice.call(r,0);return e.splice(t,n),e})),Mn=(0,p.Z)((function(t,n,r){return v(t,R(n),r)}));var _n=(0,u.Z)((function t(n,r){switch(n.length){case 0:return r;case 1:return E(n[0])&&(0,at.Z)(r)?Zn(n[0],1,r):bn(n[0],r);default:var e=n[0],o=Array.prototype.slice.call(n,1);return null==r[e]?r:E(e)&&(0,at.Z)(r)?Mn(e,t(o,r[e]),r):it(e,t(o,r[e]),r)}}));const wn=_n,Sn=(0,u.Z)((function(t,n){return t/n}));var jn=function(){function t(t,n){this.xf=n,this.n=t}return t.prototype["@@transducer/init"]=y.Z.init,t.prototype["@@transducer/result"]=y.Z.result,t.prototype["@@transducer/step"]=function(t,n){return this.n>0?(this.n-=1,t):this.xf["@@transducer/step"](t,n)},t}();const An=(0,u.Z)((function(t,n){return new jn(t,n)}));var kn=r(2507);const En=(0,u.Z)((0,d.Z)(["drop"],An,(function(t,n){return(0,kn.Z)(Math.max(0,t),1/0,n)})));var On=function(){function t(t,n){this.xf=n,this.n=t,this.i=0}return t.prototype["@@transducer/init"]=y.Z.init,t.prototype["@@transducer/result"]=y.Z.result,t.prototype["@@transducer/step"]=function(t,n){this.i+=1;var r=0===this.n?t:this.xf["@@transducer/step"](t,n);return this.n>=0&&this.i>=this.n?g(r):r},t}();const Nn=(0,u.Z)((function(t,n){return new On(t,n)})),Cn=(0,u.Z)((0,d.Z)(["take"],Nn,(function(t,n){return(0,kn.Z)(0,t<0?1/0:t,n)})));function zn(t,n){return Cn(t<n.length?n.length-t:0,n)}var Tn=function(){function t(t,n){this.xf=n,this.pos=0,this.full=!1,this.acc=new Array(t)}return t.prototype["@@transducer/init"]=y.Z.init,t.prototype["@@transducer/result"]=function(t){return this.acc=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.full&&(t=this.xf["@@transducer/step"](t,this.acc[this.pos])),this.store(n),t},t.prototype.store=function(t){this.acc[this.pos]=t,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},t}();const qn=(0,u.Z)((function(t,n){return new Tn(t,n)})),Pn=(0,u.Z)((0,d.Z)([],qn,zn));function Ln(t,n){for(var r=n.length-1;r>=0&&t(n[r]);)r-=1;return(0,kn.Z)(0,r+1,n)}var Dn=function(){function t(t,n){this.f=t,this.retained=[],this.xf=n}return t.prototype["@@transducer/init"]=y.Z.init,t.prototype["@@transducer/result"]=function(t){return this.retained=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.retain(t,n):this.flush(t,n)},t.prototype.flush=function(t,n){return t=(0,_.Z)(this.xf["@@transducer/step"],t,this.retained),this.retained=[],this.xf["@@transducer/step"](t,n)},t.prototype.retain=function(t,n){return this.retained.push(n),t},t}();const Rn=(0,u.Z)((function(t,n){return new Dn(t,n)})),Un=(0,u.Z)((0,d.Z)([],Rn,Ln));var In=function(){function t(t,n){this.xf=n,this.pred=t,this.lastValue=void 0,this.seenFirstValue=!1}return t.prototype["@@transducer/init"]=y.Z.init,t.prototype["@@transducer/result"]=y.Z.result,t.prototype["@@transducer/step"]=function(t,n){var r=!1;return this.seenFirstValue?this.pred(this.lastValue,n)&&(r=!0):this.seenFirstValue=!0,this.lastValue=n,r?t:this.xf["@@transducer/step"](t,n)},t}();const Fn=(0,u.Z)((function(t,n){return new In(t,n)})),Bn=N(-1),Hn=(0,u.Z)((0,d.Z)([],Fn,(function(t,n){var r=[],e=1,o=n.length;if(0!==o)for(r[0]=n[0];e<o;)t(Bn(r),n[e])||(r[r.length]=n[e]),e+=1;return r})));var Wn=r(554);const Yn=(0,s.Z)((0,d.Z)([],Fn(Wn.Z),Hn(Wn.Z)));var Vn=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=y.Z.init,t.prototype["@@transducer/result"]=y.Z.result,t.prototype["@@transducer/step"]=function(t,n){if(this.f){if(this.f(n))return t;this.f=null}return this.xf["@@transducer/step"](t,n)},t}();const $n=(0,u.Z)((function(t,n){return new Vn(t,n)})),Xn=(0,u.Z)((0,d.Z)(["dropWhile"],$n,(function(t,n){for(var r=0,e=n.length;r<e&&t(n[r]);)r+=1;return(0,kn.Z)(r,1/0,n)}))),Jn=(0,u.Z)((function(t,n){return t||n}));var Kn=(0,u.Z)((function(t,n){return(0,pt.Z)(t)?function(){return t.apply(this,arguments)||n.apply(this,arguments)}:gt(Jn)(t,n)}));const Gn=Kn;var Qn=r(8852);const tr=(0,u.Z)((function(t,n){return En(t>=0?n.length-t:0,n)})),nr=(0,u.Z)((function(t,n){return(0,Wn.Z)(tr(t.length,n),t)})),rr=(0,p.Z)((function(t,n,r){return(0,Wn.Z)(t(n),t(r))}));const er=(0,p.Z)((function(t,n,r){return(0,Wn.Z)(n[t],r[t])}));var or=(0,u.Z)((function t(n,r){var e,o,i,u=r instanceof Array?[]:{};for(o in r)i=typeof(e=n[o]),u[o]="function"===i?e(r[o]):e&&"object"===i?t(e,r[o]):r[o];return u}));const ir=or;var ur=r(4400),ar=function(){function t(t,n){this.xf=n,this.f=t,this.found=!1}return t.prototype["@@transducer/init"]=y.Z.init,t.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,void 0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)&&(this.found=!0,t=g(this.xf["@@transducer/step"](t,n))),t},t}();const cr=(0,u.Z)((function(t,n){return new ar(t,n)})),sr=(0,u.Z)((0,d.Z)(["find"],cr,(function(t,n){for(var r=0,e=n.length;r<e;){if(t(n[r]))return n[r];r+=1}})));var lr=function(){function t(t,n){this.xf=n,this.f=t,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=y.Z.init,t.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,-1)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,n){return this.idx+=1,this.f(n)&&(this.found=!0,t=g(this.xf["@@transducer/step"](t,this.idx))),t},t}();const fr=(0,u.Z)((function(t,n){return new lr(t,n)})),hr=(0,u.Z)((0,d.Z)([],fr,(function(t,n){for(var r=0,e=n.length;r<e;){if(t(n[r]))return r;r+=1}return-1})));var pr=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=y.Z.init,t.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.last))},t.prototype["@@transducer/step"]=function(t,n){return this.f(n)&&(this.last=n),t},t}();const vr=(0,u.Z)((function(t,n){return new pr(t,n)})),dr=(0,u.Z)((0,d.Z)([],vr,(function(t,n){for(var r=n.length-1;r>=0;){if(t(n[r]))return n[r];r-=1}})));var gr=function(){function t(t,n){this.xf=n,this.f=t,this.idx=-1,this.lastIdx=-1}return t.prototype["@@transducer/init"]=y.Z.init,t.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.lastIdx))},t.prototype["@@transducer/step"]=function(t,n){return this.idx+=1,this.f(n)&&(this.lastIdx=this.idx),t},t}();const yr=(0,u.Z)((function(t,n){return new gr(t,n)})),mr=(0,u.Z)((0,d.Z)([],yr,(function(t,n){for(var r=n.length-1;r>=0;){if(t(n[r]))return r;r-=1}return-1}))),xr=(0,s.Z)(_t(!0));var br=(0,s.Z)((function(t){return(0,l.Z)(t.length,(function(n,r){var e=Array.prototype.slice.call(arguments,0);return e[0]=r,e[1]=n,t.apply(this,e)}))}));const Zr=br;var Mr=r(4116);const _r=(0,u.Z)((0,Mr.Z)("forEach",(function(t,n){for(var r=n.length,e=0;e<r;)t(n[e]),e+=1;return n}))),wr=(0,u.Z)((function(t,n){for(var r=(0,j.Z)(n),e=0;e<r.length;){var o=r[e];t(n[o],o,n),e+=1}return n})),Sr=(0,s.Z)((function(t){for(var n={},r=0;r<t.length;)n[t[r][0]]=t[r][1],r+=1;return n})),jr=(0,u.Z)((0,Mr.Z)("groupBy",ln((function(t,n){return null==t&&(t=[]),t.push(n),t}),null))),Ar=(0,u.Z)((function(t,n){for(var r=[],e=0,o=n.length;e<o;){for(var i=e+1;i<o&&t(n[i-1],n[i]);)i+=1;r.push(n.slice(e,i)),e=i}return r})),kr=(0,u.Z)((function(t,n){return t>n})),Er=(0,u.Z)((function(t,n){return t>=n})),Or=(0,u.Z)((function(t,n){if(0===t.length||ct(n))return!1;for(var r=n,e=0;e<t.length;){if(ct(r)||!(0,ut.Z)(t[e],r))return!1;r=r[t[e]],e+=1}return!0}));const Nr=(0,u.Z)((function(t,n){return Or([t],n)}));const Cr=(0,u.Z)((function(t,n){return t in n}));var zr=r(5175);const Tr=(0,u.Z)(zr.Z);var qr=(0,p.Z)((function(t,n,r){return(0,l.Z)(Math.max(t.length,n.length,r.length),(function(){return t.apply(this,arguments)?n.apply(this,arguments):r.apply(this,arguments)}))}));const Pr=qr,Lr=a(1),Dr=(0,u.Z)(rn.Z),Rr=ln((function(t,n){return n}),null);var Ur=r(6862);const Ir=(0,u.Z)((function(t,n){return"function"!=typeof n.indexOf||(0,at.Z)(n)?(0,Ur.Z)(n,t,0):n.indexOf(t)})),Fr=(0,kn.Z)(0,-1);var Br=r(6882);const Hr=(0,p.Z)((function(t,n,r){return(0,Br.Z)((function(n){return(0,mn.Z)(t,n,r)}),n)})),Wr=(0,p.Z)((function(t,n,r){t=t<r.length&&t>=0?t:r.length;var e=Array.prototype.slice.call(r,0);return e.splice(t,0,n),e})),Yr=(0,p.Z)((function(t,n,r){return t=t<r.length&&t>=0?t:r.length,[].concat(Array.prototype.slice.call(r,0,t),n,Array.prototype.slice.call(r,t))}));var Vr=(0,u.Z)((function(t,n){for(var r,e,o=new gn,i=[],u=0;u<n.length;)r=t(e=n[u]),o.add(r)&&i.push(e),u+=1;return i}));const $r=Vr,Xr=$r(Wt),Jr=(0,u.Z)((function(t,n){var r,e;return t.length>n.length?(r=t,e=n):(r=n,e=t),Xr((0,Br.Z)(Zr(rn.Z)(r),e))})),Kr=(0,u.Z)((0,Mr.Z)("intersperse",(function(t,n){for(var r=[],e=0,o=n.length;e<o;)e===o-1?r.push(n[e]):r.push(n[e],t),e+=1;return r})));var Gr=r(2590);const Qr="function"==typeof Object.assign?Object.assign:function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1,e=arguments.length;r<e;){var o=arguments[r];if(null!=o)for(var i in o)(0,ut.Z)(i,o)&&(n[i]=o[i]);r+=1}return n},te=(0,u.Z)((function(t,n){var r={};return r[t]=n,r}));var ne={"@@transducer/init":Array,"@@transducer/step":function(t,n){return t.push(n),t},"@@transducer/result":Ht},re={"@@transducer/init":String,"@@transducer/step":function(t,n){return t+n},"@@transducer/result":Ht},ee={"@@transducer/init":Object,"@@transducer/step":function(t,n){return Qr(t,(0,Mt.Z)(n)?te(n[0],n[1]):n)},"@@transducer/result":Ht};const oe=(0,p.Z)((function(t,n,r){return(0,Gr.Z)(t)?(0,_.Z)(n(t),t["@@transducer/init"](),r):(0,_.Z)(n(function(t){if((0,Gr.Z)(t))return t;if((0,Mt.Z)(t))return ne;if("string"==typeof t)return re;if("object"==typeof t)return ee;throw new Error("Cannot create transformer for "+t)}(t)),Et(t,[],[],!1),r)}));const ie=(0,s.Z)((function(t){for(var n=(0,j.Z)(t),r=n.length,e=0,o={};e<r;){var i=n[e],u=t[i],a=(0,ut.Z)(u,o)?o[u]:o[u]=[];a[a.length]=i,e+=1}return o}));const ue=(0,s.Z)((function(t){for(var n=(0,j.Z)(t),r=n.length,e=0,o={};e<r;){var i=n[e];o[t[i]]=i,e+=1}return o}));var ae=r(9266),ce=r(3692),se=r(7407),le=r(7376),fe=(0,s.Z)((function(t){return un((function(){return Array.prototype.slice.call(arguments,0)}),t)}));const he=fe;const pe=(0,s.Z)((function(t){var n,r=[];for(n in t)r[r.length]=n;return r})),ve=(0,u.Z)((function(t,n){if("function"!=typeof n.lastIndexOf||(0,at.Z)(n)){for(var r=n.length-1;r>=0;){if((0,Wn.Z)(n[r],t))return r;r-=1}return-1}return n.lastIndexOf(t)}));function de(t){return"[object Number]"===Object.prototype.toString.call(t)}const ge=(0,s.Z)((function(t){return null!=t&&de(t.length)?t.length:NaN})),ye=(0,u.Z)((function(t,n){return function(r){return function(e){return k((function(t){return n(t,e)}),r(t(e)))}}})),me=(0,s.Z)((function(t){return ye(N(t),Mn(t))})),xe=(0,s.Z)((function(t){return ye(z(t),st(t))})),be=(0,s.Z)((function(t){return ye(T(t),it(t))})),Ze=(0,u.Z)((function(t,n){return t<n})),Me=(0,u.Z)((function(t,n){return t<=n})),_e=(0,p.Z)((function(t,n,r){for(var e=0,o=r.length,i=[],u=[n];e<o;)u=t(u[0],r[e]),i[e]=u[1],e+=1;return[u[0],i]})),we=(0,p.Z)((function(t,n,r){for(var e=r.length-1,o=[],i=[n];e>=0;)i=t(i[0],r[e]),o[e]=i[1],e-=1;return[i[0],o]})),Se=(0,u.Z)((function(t,n){return(0,_.Z)((function(r,e){return r[e]=t(n[e],e,n),r}),{},(0,j.Z)(n))})),je=(0,u.Z)((function(t,n){return n.match(t)||[]})),Ae=(0,u.Z)((function(t,n){return E(t)?!E(n)||n<1?NaN:(t%n+n)%n:NaN})),ke=(0,p.Z)((function(t,n,r){return t(r)>t(n)?r:n})),Ee=(0,P.Z)(a,0),Oe=(0,s.Z)((function(t){return Ee(t)/t.length})),Ne=(0,s.Z)((function(t){var n=t.length;if(0===n)return NaN;var r=2-n%2,e=(n-r)/2;return Oe(Array.prototype.slice.call(t,0).sort((function(t,n){return t<n?-1:t>n?1:0})).slice(e,e+r))}));var Ce=(0,u.Z)((function(t,n){var r={};return(0,Dt.Z)(n.length,(function(){var e=t.apply(this,arguments);return(0,ut.Z)(e,r)||(r[e]=n.apply(this,arguments)),r[e]}))}));const ze=Ce,Te=(0,u.Z)((function(t,n){return Qr({},t,n)})),qe=(0,s.Z)((function(t){return Qr.apply(null,[{}].concat(t))}));var Pe=r(2599);const Le=(0,p.Z)((function(t,n,r){var e,o={};for(e in n)(0,ut.Z)(e,n)&&(o[e]=(0,ut.Z)(e,r)?t(e,n[e],r[e]):n[e]);for(e in r)(0,ut.Z)(e,r)&&!(0,ut.Z)(e,o)&&(o[e]=r[e]);return o})),De=(0,p.Z)((function t(n,r,e){return Le((function(r,e,o){return(0,Pe.Z)(e)&&(0,Pe.Z)(o)?t(n,e,o):n(r,e,o)}),r,e)})),Re=(0,u.Z)((function(t,n){return De((function(t,n,r){return n}),t,n)})),Ue=(0,u.Z)((function(t,n){return De((function(t,n,r){return r}),t,n)})),Ie=(0,p.Z)((function(t,n,r){return De((function(n,r,e){return t(r,e)}),n,r)})),Fe=(0,u.Z)((function(t,n){return Qr({},n,t)})),Be=(0,u.Z)((function(t,n){return Qr({},t,n)})),He=(0,p.Z)((function(t,n,r){return Le((function(n,r,e){return t(r,e)}),n,r)})),We=(0,u.Z)((function(t,n){return n<t?n:t})),Ye=(0,p.Z)((function(t,n,r){return t(r)<t(n)?r:n})),Ve=(0,u.Z)((function(t,n){return t%n})),$e=(0,p.Z)((function(t,n,r){var e=r.length,o=r.slice(),i=t<0?e+t:t,u=n<0?e+n:n,a=o.splice(i,1);return i<0||i>=r.length||u<0||u>=r.length?r:[].concat(o.slice(0,u)).concat(a).concat(o.slice(u,r.length))})),Xe=(0,u.Z)((function(t,n){return t*n})),Je=(0,s.Z)((function(t){return-t}));var Ke=r(356);const Ge=(0,u.Z)((function(t,n){return b((0,Ke.Z)(t),n)}));var Qe=(0,s.Z)((function(t){var n=t<0?1:t+1;return(0,l.Z)(n,(function(){return N(t,arguments)}))}));const to=Qe,no=(0,p.Z)((function(t,n,r){return t(n(r))}));function ro(t){return[t]}const eo=(0,s.Z)(ro);const oo=(0,u.Z)((function(t,n){for(var r={},e={},o=0,i=t.length;o<i;)e[t[o]]=1,o+=1;for(var u in n)e.hasOwnProperty(u)||(r[u]=n[u]);return r}));var io=(0,s.Z)((function(t){var n,r=!1;return(0,Dt.Z)(t.length,(function(){return r?n:(r=!0,n=t.apply(this,arguments))}))}));const uo=io;var ao=r(6426);function co(t,n){if(null==n||!(0,pt.Z)(n.then))throw new TypeError("`"+t+"` expected a Promise, received "+(0,ao.Z)(n,[]))}const so=(0,u.Z)((function(t,n){return co("otherwise",n),n.then(null,t)}));var lo=function(t){return{value:t,map:function(n){return lo(n(t))}}};const fo=(0,p.Z)((function(t,n,r){return t((function(t){return lo(n(t))}))(r).value})),ho=(0,u.Z)((function(t,n){return[t,n]}));function po(t){return(0,u.Z)((function(n,r){return(0,Dt.Z)(Math.max(0,n.length-r.length),(function(){return n.apply(this,t(r,arguments))}))}))}const vo=po(c),go=po(Zr(c));var yo=r(6990);const mo=he([ur.Z,yo.Z]),xo=(0,p.Z)((function(t,n,r){return(0,Wn.Z)(z(t,r),n)})),bo=(0,p.Z)((function(t,n,r){return pn(t,z(n,r))})),Zo=(0,p.Z)((function(t,n,r){return t(z(n,r))})),Mo=(0,u.Z)((function(t,n){for(var r={},e=0;e<t.length;)t[e]in n&&(r[t[e]]=n[t[e]]),e+=1;return r})),_o=(0,u.Z)((function(t,n){for(var r={},e=0,o=t.length;e<o;){var i=t[e];r[i]=n[i],e+=1}return r}));const wo=(0,u.Z)((function(t,n){var r={};for(var e in n)t(n[e],e,n)&&(r[e]=n[e]);return r}));function So(){if(0===arguments.length)throw new Error("pipeK requires at least one argument");return Lt.apply(this,qt(arguments))}const jo=(0,u.Z)((function(t,n){return c([t],n)})),Ao=(0,P.Z)(Xe,1);var ko=(0,u.Z)((function(t,n){return(0,l.Z)(n.length,(function(){for(var r=[],e=0;e<n.length;)r.push(n[e].call(this,arguments[e])),e+=1;return t.apply(this,r.concat(Array.prototype.slice.call(arguments,n.length)))}))}));const Eo=ko,Oo=Eo(M.Z,[_o,Wt]),No=(0,p.Z)((function(t,n,r){return(0,Wn.Z)(n,r[t])}));var Co=(0,p.Z)((function(t,n,r){return(0,ce.Z)(t,r[n])}));const zo=Co,To=(0,p.Z)((function(t,n,r){return bo(t,[n],r)})),qo=(0,p.Z)((function(t,n,r){return t(r[n])})),Po=(0,u.Z)((function(t,n){return t.map((function(t){return z([t],n)}))})),Lo=(0,u.Z)((function(t,n){if(!de(t)||!de(n))throw new TypeError("Both arguments to range must be numbers");for(var r=[],e=t;e<n;)r.push(e),e+=1;return r})),Do=(0,p.Z)((function(t,n,r){for(var e=r.length-1;e>=0;)n=t(r[e],n),e-=1;return n})),Ro=(0,an.Z)(4,[],(function(t,n,r,e){return(0,_.Z)((function(r,e){return t(r,e)?n(r,e):g(r)}),r,e)})),Uo=(0,s.Z)(g),Io=(0,u.Z)((function(t,n){var r,e=Number(n),o=0;if(e<0||isNaN(e))throw new RangeError("n must be a non-negative number");for(r=new Array(e);o<e;)r[o]=t(o),o+=1;return r})),Fo=(0,u.Z)((function(t,n){return Io(R(t),n)}));var Bo=r(3595);const Ho=(0,p.Z)((function(t,n,r){for(var e=0,o=r.length,i=[n];e<o;)n=t(n,r[e]),i[e+1]=n,e+=1;return i}));const Wo=(0,u.Z)((function(t,n){return"function"==typeof n.sequence?n.sequence(t):Do((function(t,n){return Y(k(jo,t),n)}),t([]),n)}));const Yo=(0,p.Z)((function(t,n,r){return fo(t,R(n),r)}));const Vo=(0,u.Z)((function(t,n){return Array.prototype.slice.call(n,0).sort(t)})),$o=(0,u.Z)((function(t,n){return Array.prototype.slice.call(n,0).sort((function(n,r){var e=t(n),o=t(r);return e<o?-1:e>o?1:0}))})),Xo=(0,u.Z)((function(t,n){return Array.prototype.slice.call(n,0).sort((function(n,r){for(var e=0,o=0;0===e&&o<t.length;)e=t[o](n,r),o+=1;return e}))})),Jo=(0,ae.Z)(1,"split"),Ko=(0,u.Z)((function(t,n){return[(0,kn.Z)(0,t,n),(0,kn.Z)(t,ge(n),n)]})),Go=(0,u.Z)((function(t,n){if(t<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var r=[],e=0;e<n.length;)r.push((0,kn.Z)(e,e+=t,n));return r})),Qo=(0,u.Z)((function(t,n){for(var r=0,e=n.length,o=[];r<e&&!t(n[r]);)o.push(n[r]),r+=1;return[o,Array.prototype.slice.call(n,r)]})),ti=(0,u.Z)((function(t,n){return(0,Wn.Z)(Cn(t.length,n),t)})),ni=(0,u.Z)((function(t,n){return Number(t)-Number(n)})),ri=(0,u.Z)((function(t,n){return Jt(yn(t,n),yn(n,t))})),ei=(0,p.Z)((function(t,n,r){return Jt(xn(t,n,r),xn(t,r,n))})),oi=(0,u.Z)((function(t,n){for(var r=n.length-1;r>=0&&t(n[r]);)r-=1;return(0,kn.Z)(r+1,1/0,n)}));var ii=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=y.Z.init,t.prototype["@@transducer/result"]=y.Z.result,t.prototype["@@transducer/step"]=function(t,n){return this.f(n)?this.xf["@@transducer/step"](t,n):g(t)},t}();const ui=(0,u.Z)((function(t,n){return new ii(t,n)})),ai=(0,u.Z)((0,d.Z)(["takeWhile"],ui,(function(t,n){for(var r=0,e=n.length;r<e&&t(n[r]);)r+=1;return(0,kn.Z)(0,r,n)})));var ci=function(){function t(t,n){this.xf=n,this.f=t}return t.prototype["@@transducer/init"]=y.Z.init,t.prototype["@@transducer/result"]=y.Z.result,t.prototype["@@transducer/step"]=function(t,n){return this.f(n),this.xf["@@transducer/step"](t,n)},t}();const si=(0,u.Z)((function(t,n){return new ci(t,n)})),li=(0,u.Z)((0,d.Z)([],si,(function(t,n){return t(n),n}))),fi=(0,u.Z)((function(t,n){if(r=t,"[object RegExp]"!==Object.prototype.toString.call(r))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+(0,Xt.Z)(t));var r;return At(t).test(n)})),hi=(0,u.Z)((function(t,n){return co("andThen",n),n.then(t)})),pi=(0,ae.Z)(0,"toLowerCase");const vi=(0,s.Z)((function(t){var n=[];for(var r in t)(0,ut.Z)(r,t)&&(n[n.length]=[r,t[r]]);return n}));const di=(0,s.Z)((function(t){var n=[];for(var r in t)n[n.length]=[r,t[r]];return n})),gi=(0,ae.Z)(0,"toUpperCase");var yi=r(3866);const mi=(0,l.Z)(4,(function(t,n,r,e){return(0,_.Z)(t("function"==typeof n?(0,yi.Z)(n):n),r,e)})),xi=(0,s.Z)((function(t){for(var n=0,r=[];n<t.length;){for(var e=t[n],o=0;o<e.length;)void 0===r[o]&&(r[o]=[]),r[o].push(e[o]),o+=1;n+=1}return r}));const bi=(0,p.Z)((function(t,n,r){return"function"==typeof r["fantasy-land/traverse"]?r["fantasy-land/traverse"](n,t):Wo(t,k(n,r))}));var Zi="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff";const Mi="function"==typeof String.prototype.trim&&!Zi.trim()&&"​".trim()?(0,s.Z)((function(t){return t.trim()})):(0,s.Z)((function(t){var n=new RegExp("^["+Zi+"]["+Zi+"]*"),r=new RegExp("["+Zi+"]["+Zi+"]*$");return t.replace(n,"").replace(r,"")}));var _i=(0,u.Z)((function(t,n){return(0,Dt.Z)(t.length,(function(){try{return t.apply(this,arguments)}catch(t){return n.apply(this,c([t],arguments))}}))}));const wi=_i;var Si=(0,s.Z)((function(t){return function(){return t(Array.prototype.slice.call(arguments,0))}}));const ji=Si,Ai=(0,s.Z)((function(t){return lt(1,t)}));var ki=(0,u.Z)((function(t,n){return(0,l.Z)(t,(function(){for(var r,e=1,o=n,i=0;e<=t&&"function"==typeof o;)r=e===t?arguments.length:i+o.length,o=o.apply(this,Array.prototype.slice.call(arguments,i,r)),e+=1,i=r;return o}))}));const Ei=ki;const Oi=(0,u.Z)((function(t,n){for(var r=t(n),e=[];r&&r.length;)e[e.length]=r[0],r=t(r[1]);return e})),Ni=(0,u.Z)(Pt(Xr,c)),Ci=(0,u.Z)((function(t,n){for(var r,e=0,o=n.length,i=[];e<o;)r=n[e],(0,mn.Z)(t,r,i)||(i[i.length]=r),e+=1;return i})),zi=(0,p.Z)((function(t,n,r){return Ci(t,c(n,r))})),Ti=(0,p.Z)((function(t,n,r){return t(r)?r:n(r)})),qi=St(Ht);const Pi=(0,p.Z)((function(t,n,r){for(var e=r;!t(e);)e=n(e);return e}));const Li=(0,s.Z)((function(t){var n,r=[];for(n in t)r[r.length]=t[n];return r}));var Di=function(t){return{value:t,"fantasy-land/map":function(){return this}}};const Ri=(0,u.Z)((function(t,n){return t(Di)(n).value})),Ui=(0,p.Z)((function(t,n,r){return t(r)?n(r):r}));const Ii=(0,u.Z)((function(t,n){for(var r in t)if((0,ut.Z)(r,t)&&!t[r](n[r]))return!1;return!0})),Fi=(0,u.Z)((function(t,n){return Ii(k(Wn.Z,t),n)})),Bi=(0,u.Z)((function(t,n){return(0,yo.Z)(Zr(rn.Z)(t),n)})),Hi=(0,u.Z)((function(t,n){return Boolean(!t^!n)})),Wi=(0,u.Z)((function(t,n){for(var r,e=0,o=t.length,i=n.length,u=[];e<o;){for(r=0;r<i;)u[u.length]=[t[e],n[r]],r+=1;e+=1}return u})),Yi=(0,u.Z)((function(t,n){for(var r=[],e=0,o=Math.min(t.length,n.length);e<o;)r[e]=[t[e],n[e]],e+=1;return r}));var Vi=(0,u.Z)((function(t,n){for(var r=0,e=Math.min(t.length,n.length),o={};r<e;)o[t[r]]=n[r],r+=1;return o}));const $i=Vi,Xi=(0,p.Z)((function(t,n,r){for(var e=[],o=0,i=Math.min(n.length,r.length);o<i;)e[o]=t(n[o],r[o]),o+=1;return e}));var Ji=(0,s.Z)((function(t){return(0,l.Z)(t.length,(function(){var n=arguments;return function(){return t.apply(this,n)}}))}));const Ki=Ji},9437:(t,n,r)=>{"use strict";function e(t,n){switch(t){case 0:return function(){return n.apply(this,arguments)};case 1:return function(t){return n.apply(this,arguments)};case 2:return function(t,r){return n.apply(this,arguments)};case 3:return function(t,r,e){return n.apply(this,arguments)};case 4:return function(t,r,e,o){return n.apply(this,arguments)};case 5:return function(t,r,e,o,i){return n.apply(this,arguments)};case 6:return function(t,r,e,o,i,u){return n.apply(this,arguments)};case 7:return function(t,r,e,o,i,u,a){return n.apply(this,arguments)};case 8:return function(t,r,e,o,i,u,a,c){return n.apply(this,arguments)};case 9:return function(t,r,e,o,i,u,a,c,s){return n.apply(this,arguments)};case 10:return function(t,r,e,o,i,u,a,c,s,l){return n.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}r.d(n,{Z:()=>e})},4116:(t,n,r)=>{"use strict";r.d(n,{Z:()=>o});var e=r(7146);function o(t,n){return function(){var r=arguments.length;if(0===r)return n();var o=arguments[r-1];return(0,e.Z)(o)||"function"!=typeof o[t]?n.apply(this,arguments):o[t].apply(o,Array.prototype.slice.call(arguments,0,r-1))}}},356:(t,n,r)=>{"use strict";function e(t){return function(){return!t.apply(this,arguments)}}r.d(n,{Z:()=>e})},7829:(t,n,r)=>{"use strict";r.d(n,{Z:()=>o});var e=r(841);function o(t){return function n(r){return 0===arguments.length||(0,e.Z)(r)?n:t.apply(this,arguments)}}},2202:(t,n,r)=>{"use strict";r.d(n,{Z:()=>i});var e=r(7829),o=r(841);function i(t){return function n(r,i){switch(arguments.length){case 0:return n;case 1:return(0,o.Z)(r)?n:(0,e.Z)((function(n){return t(r,n)}));default:return(0,o.Z)(r)&&(0,o.Z)(i)?n:(0,o.Z)(r)?(0,e.Z)((function(n){return t(n,i)})):(0,o.Z)(i)?(0,e.Z)((function(n){return t(r,n)})):t(r,i)}}}},7692:(t,n,r)=>{"use strict";r.d(n,{Z:()=>u});var e=r(7829),o=r(2202),i=r(841);function u(t){return function n(r,u,a){switch(arguments.length){case 0:return n;case 1:return(0,i.Z)(r)?n:(0,o.Z)((function(n,e){return t(r,n,e)}));case 2:return(0,i.Z)(r)&&(0,i.Z)(u)?n:(0,i.Z)(r)?(0,o.Z)((function(n,r){return t(n,u,r)})):(0,i.Z)(u)?(0,o.Z)((function(n,e){return t(r,n,e)})):(0,e.Z)((function(n){return t(r,u,n)}));default:return(0,i.Z)(r)&&(0,i.Z)(u)&&(0,i.Z)(a)?n:(0,i.Z)(r)&&(0,i.Z)(u)?(0,o.Z)((function(n,r){return t(n,r,a)})):(0,i.Z)(r)&&(0,i.Z)(a)?(0,o.Z)((function(n,r){return t(n,u,r)})):(0,i.Z)(u)&&(0,i.Z)(a)?(0,o.Z)((function(n,e){return t(r,n,e)})):(0,i.Z)(r)?(0,e.Z)((function(n){return t(n,u,a)})):(0,i.Z)(u)?(0,e.Z)((function(n){return t(r,n,a)})):(0,i.Z)(a)?(0,e.Z)((function(n){return t(r,u,n)})):t(r,u,a)}}}},4277:(t,n,r)=>{"use strict";r.d(n,{Z:()=>i});var e=r(9437),o=r(841);function i(t,n,r){return function(){for(var u=[],a=0,c=t,s=0;s<n.length||a<arguments.length;){var l;s<n.length&&(!(0,o.Z)(n[s])||a>=arguments.length)?l=n[s]:(l=arguments[a],a+=1),u[s]=l,(0,o.Z)(l)||(c-=1),s+=1}return c<=0?r.apply(this,u):(0,e.Z)(c,i(t,u,r))}}},9416:(t,n,r)=>{"use strict";r.d(n,{Z:()=>i});var e=r(7146),o=r(2590);function i(t,n,r){return function(){if(0===arguments.length)return r();var i=Array.prototype.slice.call(arguments,0),u=i.pop();if(!(0,e.Z)(u)){for(var a=0;a<t.length;){if("function"==typeof u[t[a]])return u[t[a]].apply(u,i);a+=1}if((0,o.Z)(u)){var c=n.apply(null,i);return c(u)}}return r.apply(this,arguments)}}},6882:(t,n,r)=>{"use strict";function e(t,n){for(var r=0,e=n.length,o=[];r<e;)t(n[r])&&(o[o.length]=n[r]),r+=1;return o}r.d(n,{Z:()=>e})},853:(t,n,r)=>{"use strict";function e(t,n){return Object.prototype.hasOwnProperty.call(n,t)}r.d(n,{Z:()=>e})},8501:(t,n,r)=>{"use strict";r.d(n,{Z:()=>o});var e=r(6862);function o(t,n){return(0,e.Z)(n,t,0)>=0}},8242:(t,n,r)=>{"use strict";function e(t,n,r){for(var e=0,o=r.length;e<o;){if(t(n,r[e]))return!0;e+=1}return!1}r.d(n,{Z:()=>e})},6862:(t,n,r)=>{"use strict";r.d(n,{Z:()=>o});var e=r(554);function o(t,n,r){var o,i;if("function"==typeof t.indexOf)switch(typeof n){case"number":if(0===n){for(o=1/n;r<t.length;){if(0===(i=t[r])&&1/i===o)return r;r+=1}return-1}if(n!=n){for(;r<t.length;){if("number"==typeof(i=t[r])&&i!=i)return r;r+=1}return-1}return t.indexOf(n,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(n,r);case"object":if(null===n)return t.indexOf(n,r)}for(;r<t.length;){if((0,e.Z)(t[r],n))return r;r+=1}return-1}},2532:(t,n,r)=>{"use strict";r.d(n,{Z:()=>u});var e=r(853),o=Object.prototype.toString,i=function(){return"[object Arguments]"===o.call(arguments)?function(t){return"[object Arguments]"===o.call(t)}:function(t){return(0,e.Z)("callee",t)}}();const u=i},7146:(t,n,r)=>{"use strict";r.d(n,{Z:()=>e});const e=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)}},6581:(t,n,r)=>{"use strict";r.d(n,{Z:()=>u});var e=r(7829),o=r(7146),i=r(6204);const u=(0,e.Z)((function(t){return!!(0,o.Z)(t)||!!t&&"object"==typeof t&&!(0,i.Z)(t)&&(1===t.nodeType?!!t.length:0===t.length||t.length>0&&t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1))}))},5864:(t,n,r)=>{"use strict";function e(t){var n=Object.prototype.toString.call(t);return"[object Function]"===n||"[object AsyncFunction]"===n||"[object GeneratorFunction]"===n||"[object AsyncGeneratorFunction]"===n}r.d(n,{Z:()=>e})},2599:(t,n,r)=>{"use strict";function e(t){return"[object Object]"===Object.prototype.toString.call(t)}r.d(n,{Z:()=>e})},841:(t,n,r)=>{"use strict";function e(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}r.d(n,{Z:()=>e})},6204:(t,n,r)=>{"use strict";function e(t){return"[object String]"===Object.prototype.toString.call(t)}r.d(n,{Z:()=>e})},2590:(t,n,r)=>{"use strict";function e(t){return null!=t&&"function"==typeof t["@@transducer/step"]}r.d(n,{Z:()=>e})},894:(t,n,r)=>{"use strict";function e(t,n){for(var r=0,e=n.length,o=Array(e);r<e;)o[r]=t(n[r]),r+=1;return o}r.d(n,{Z:()=>e})},5175:(t,n,r)=>{"use strict";r.d(n,{Z:()=>e});const e="function"==typeof Object.is?Object.is:function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}},8949:(t,n,r)=>{"use strict";r.d(n,{Z:()=>s});var e=r(6581),o=r(3866),i=r(7706);function u(t,n,r){for(var e=r.next();!e.done;){if((n=t["@@transducer/step"](n,e.value))&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e=r.next()}return t["@@transducer/result"](n)}function a(t,n,r,e){return t["@@transducer/result"](r[e]((0,i.Z)(t["@@transducer/step"],t),n))}var c="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function s(t,n,r){if("function"==typeof t&&(t=(0,o.Z)(t)),(0,e.Z)(r))return function(t,n,r){for(var e=0,o=r.length;e<o;){if((n=t["@@transducer/step"](n,r[e]))&&n["@@transducer/reduced"]){n=n["@@transducer/value"];break}e+=1}return t["@@transducer/result"](n)}(t,n,r);if("function"==typeof r["fantasy-land/reduce"])return a(t,n,r,"fantasy-land/reduce");if(null!=r[c])return u(t,n,r[c]());if("function"==typeof r.next)return u(t,n,r);if("function"==typeof r.reduce)return a(t,n,r,"reduce");throw new TypeError("reduce: list must be array or iterable")}},6426:(t,n,r)=>{"use strict";r.d(n,{Z:()=>l});var e=r(8501),o=r(894);function i(t){return'"'+t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var u=function(t){return(t<10?"0":"")+t};const a="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+u(t.getUTCMonth()+1)+"-"+u(t.getUTCDate())+"T"+u(t.getUTCHours())+":"+u(t.getUTCMinutes())+":"+u(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};var c=r(3939),s=r(6990);function l(t,n){var r=function(r){var o=n.concat([t]);return(0,e.Z)(r,o)?"<Circular>":l(r,o)},u=function(t,n){return(0,o.Z)((function(n){return i(n)+": "+r(t[n])}),n.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+(0,o.Z)(r,t).join(", ")+"))";case"[object Array]":return"["+(0,o.Z)(r,t).concat(u(t,(0,s.Z)((function(t){return/^\d+$/.test(t)}),(0,c.Z)(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):i(a(t)))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+r(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object String]":return"object"==typeof t?"new String("+r(t.valueOf())+")":i(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var f=t.toString();if("[object Object]"!==f)return f}return"{"+u(t,(0,c.Z)(t)).join(", ")+"}"}}},8069:(t,n,r)=>{"use strict";r.d(n,{Z:()=>e});const e={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}}},3866:(t,n,r)=>{"use strict";r.d(n,{Z:()=>o});var e=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,n){return this.f(t,n)},t}();function o(t){return new e(t)}},9266:(t,n,r)=>{"use strict";r.d(n,{Z:()=>c});var e=r(2202),o=r(5864),i=r(1465),u=r(8659),a=(0,e.Z)((function(t,n){return(0,i.Z)(t+1,(function(){var r=arguments[t];if(null!=r&&(0,o.Z)(r[n]))return r[n].apply(r,Array.prototype.slice.call(arguments,0,t));throw new TypeError((0,u.Z)(r)+' does not have a method named "'+n+'"')}))}));const c=a},3692:(t,n,r)=>{"use strict";r.d(n,{Z:()=>e});const e=(0,r(2202).Z)((function(t,n){return null!=n&&n.constructor===t||n instanceof t}))},7407:(t,n,r)=>{"use strict";r.d(n,{Z:()=>u});var e=r(7829),o=r(8852),i=r(554);const u=(0,e.Z)((function(t){return null!=t&&(0,i.Z)(t,(0,o.Z)(t))}))},7376:(t,n,r)=>{"use strict";r.d(n,{Z:()=>e});const e=(0,r(9266).Z)(1,"join")},3939:(t,n,r)=>{"use strict";r.d(n,{Z:()=>l});var e=r(7829),o=r(853),i=r(2532),u=!{toString:null}.propertyIsEnumerable("toString"),a=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],c=function(){return arguments.propertyIsEnumerable("length")}(),s=function(t,n){for(var r=0;r<t.length;){if(t[r]===n)return!0;r+=1}return!1};const l="function"!=typeof Object.keys||c?(0,e.Z)((function(t){if(Object(t)!==t)return[];var n,r,e=[],l=c&&(0,i.Z)(t);for(n in t)!(0,o.Z)(n,t)||l&&"length"===n||(e[e.length]=n);if(u)for(r=a.length-1;r>=0;)n=a[r],(0,o.Z)(n,t)&&!s(e,n)&&(e[e.length]=n),r-=1;return e})):(0,e.Z)((function(t){return Object(t)!==t?[]:Object.keys(t)}))},140:(t,n,r)=>{"use strict";r.d(n,{Z:()=>a});var e=r(9437);function o(t,n){return function(){return n.call(this,t.apply(this,arguments))}}var i=r(3161),u=r(280);function a(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return(0,e.Z)(arguments[0].length,(0,i.Z)(o,arguments[0],(0,u.Z)(arguments)))}},3161:(t,n,r)=>{"use strict";r.d(n,{Z:()=>i});var e=r(7692),o=r(8949);const i=(0,e.Z)(o.Z)},6990:(t,n,r)=>{"use strict";r.d(n,{Z:()=>u});var e=r(356),o=r(2202),i=r(4400);const u=(0,o.Z)((function(t,n){return(0,i.Z)((0,e.Z)(t),n)}))},3595:(t,n,r)=>{"use strict";r.d(n,{Z:()=>e});const e=(0,r(7692).Z)((function(t,n,r){return r.replace(t,n)}))},2507:(t,n,r)=>{"use strict";r.d(n,{Z:()=>o});var e=r(4116);const o=(0,r(7692).Z)((0,e.Z)("slice",(function(t,n,r){return Array.prototype.slice.call(r,t,n)})))},280:(t,n,r)=>{"use strict";r.d(n,{Z:()=>u});var e=r(4116),o=r(7829),i=r(2507);const u=(0,o.Z)((0,e.Z)("tail",(0,i.Z)(1,1/0)))},8659:(t,n,r)=>{"use strict";r.d(n,{Z:()=>i});var e=r(7829),o=r(6426);const i=(0,e.Z)((function(t){return(0,o.Z)(t,[])}))},4746:(t,n,r)=>{"use strict";r.d(n,{Z:()=>e});const e=(0,r(7829).Z)((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}))}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return t[e](i,i.exports,r),i.loaded=!0,i.exports}r.n=t=>{var n=t&&t.__esModule?()=>t.default:()=>t;return r.d(n,{a:n}),n},r.d=(t,n)=>{for(var e in n)r.o(n,e)&&!r.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var e={};return(()=>{"use strict";r.r(e),r.d(e,{default:()=>k,tree:()=>A});var t={};r.r(t),r.d(t,{tree:()=>A});var n=r(8308),o=r.n(n),i=r(7407),u=r(2287),a=r(653),c=r.n(a),s=r(3692),l=r(7376),f=r(3595),h=r(140);function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function v(t,n){if(t instanceof Array)return n?t.sort():t;if(t&&"object"===p(t)){var r={};return Object.keys(t).sort().forEach((function(n){return r[n]=v(t[n])})),r}return t}function d(t){return JSON.stringify(v(t,!0),void 0,2)}function g(t){return t.children?(t._children=t.children,t.children=null):t._children&&(t.children=t._children,t._children=null),t}function y(t,n,r){if(t){n(t);var e=r(t);if(e)for(var o=e.length,i=0;i<o;i++)y(e[i],n,r)}}function m(t){var n=[1];return function t(r){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!r.children||0===r.children.length)return 0;n.length<=e+1&&n.push(0),n[e+1]+=r.children.length,r.children.forEach((function(n){t(n,e+1)}))}(t),n}function x(t,n,r){var e=r.indentationSize,o=void 0===e?4:e;if(!(0,s.Z)(Object,t))return"";var i=(0,l.Z)("&nbsp;&nbsp;"),u=(0,f.Z)(/\n/g,"<br/>"),a=(0,f.Z)(/\s{2}/g,i(new Array(o))),c=(0,h.Z)(d,u,a),p=t.children||t._children;return void 0!==t.value?c(t.value):void 0!==t.object?c(t.object):p&&p.length?"childrenCount: ".concat(p.length):"empty"}var b=r(5997);function Z(t){return function(t){if(Array.isArray(t))return M(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return M(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?M(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}function _(t,n){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);n&&(e=e.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),r.push.apply(r,e)}return r}function w(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?_(Object(r),!0).forEach((function(n){S(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))}))}return t}function S(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}var j={state:void 0,rootKeyName:"state",pushMethod:"push",tree:void 0,id:"d3svg",style:{node:{colors:{default:"#ccc",collapsed:"lightsteelblue",parent:"white"},radius:7},text:{colors:{default:"black",hover:"skyblue"}},link:{stroke:"#000",fill:"none"}},size:500,aspectRatio:1,initialZoom:1,margin:{top:10,right:10,bottom:10,left:50},isSorted:!1,heightBetweenNodesCoeff:2,widthBetweenNodesCoeff:1,transitionDuration:750,blinkDuration:100,onClickText:function(){},tooltipOptions:{disabled:!1,left:void 0,top:void 0,offset:{left:0,top:0},style:void 0}};function A(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=c()(j,n),e=r.id,a=r.style,s=r.size,l=r.aspectRatio,f=r.initialZoom,h=r.margin,p=r.isSorted,v=r.widthBetweenNodesCoeff,d=r.heightBetweenNodesCoeff,M=r.transitionDuration,_=r.blinkDuration,S=r.state,A=r.rootKeyName,k=r.pushMethod,E=r.tree,O=r.tooltipOptions,N=r.onClickText,C=s-h.left-h.right,z=s*l-h.top-h.bottom,T=s,q=s*l,P={id:e,preserveAspectRatio:"xMinYMin slice"};a.width||(P.width=T),a.width&&a.height||(P.viewBox="0 0 ".concat(T," ").concat(q));var L,D=o().select(t),R=o().behavior.zoom().scaleExtent([.1,3]).scale(f),U=D.append("svg").attr(P).style(w({cursor:"-webkit-grab"},a)).call(R.on("zoom",(function(){var t=o().event,n=t.translate,r=t.scale;U.attr("transform","translate(".concat(n.toString(),")scale(").concat(r,")"))}))).append("g").attr({transform:"translate(".concat(h.left+a.node.radius,", ").concat(h.top,") scale(").concat(f,")")}),I=o().layout.tree().size([C,z]);p&&I.sort((function(t,n){return n.name.toLowerCase()<t.name.toLowerCase()?1:-1}));var F={root:{id:"root",parentId:null,x:z/2,y:0}};function B(t,n,r){for(var e=t[n];e;){if(!(e=t[e.parentId]))return null;if(!r||r(e))return e}}return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E||S;L=E?t:(0,u.Z)(t,{key:A,pushMethod:k}),!(0,i.Z)(L)&&L.name||(L={name:"error",message:"Please provide a state map or a tree structure"});var n=0,r=0;function e(){var t=o().svg.diagonal().projection((function(t){return[t.y,t.x]})),i=Math.max.apply(Math,Z(m(L))),u=(I=I.size([25*i*d,C])).nodes(L),c=I.links(u);u.forEach((function(t){return t.y=t.depth*(7*r*v)}));var s=u.map((function(t){return{parentId:t.parent&&t.parent.id,id:t.id,x:t.x,y:t.y}})),l={};s.forEach((function(t){return l[t.id]=t}));var f=U.selectAll("g.node").property("__oldData__",(function(t){return t})).data(u,(function(t){return t.id||(t.id=++n)})),h=f.enter().append("g").attr({class:"node",transform:function(t){var n=B(l,t.id,(function(t){return!!F[t.id]})),r=n&&F[n.id]||F.root;return"translate(".concat(r.y,",").concat(r.x,")")}}).style({fill:a.text.colors.default,cursor:"pointer"}).on("mouseover",(function(){o().select(this).style({fill:a.text.colors.hover})})).on("mouseout",(function(){o().select(this).style({fill:a.text.colors.default})}));O.disabled||h.call((0,b.Z)(o(),"tooltip",w(w({},O),{},{root:D})).text((function(t,n){return x(t,0,O)})).style(O.style));var p=h.append("g");p.append("circle").attr({class:"nodeCircle",r:0}).on("click",(function(t){o().event.defaultPrevented||(g(t),e())})),p.append("text").attr({class:"nodeText","text-anchor":"middle",transform:"translate(0,0)",dy:".35em"}).style({"fill-opacity":0}).text((function(t){return t.name})).on("click",N),f.select("text").text((function(t){return t.name})),f.select("circle").style({stroke:"black","stroke-width":"1.5px",fill:function(t){return t._children?a.node.colors.collapsed:t.children?a.node.colors.parent:a.node.colors.default}});var y=f.transition().duration(M).attr({transform:function(t){return"translate(".concat(t.y,",").concat(t.x,")")}});y.select("circle").attr("r",a.node.radius),y.select("text").style("fill-opacity",1).attr({transform:function(t){var n=(t.children||t._children?-1:1)*(this.getBBox().width/2+a.node.radius+5);return"translate(".concat(n,",0)")}}),f.filter((function(t){return this.__oldData__&&t.value!==this.__oldData__.value})).select("g").style("opacity","0.3").transition().duration(_).style("opacity","1");var S=f.exit().transition().duration(M).attr({transform:function(t){var n=B(F,t.id,(function(t){return!!l[t.id]})),r=n&&l[n.id]||l.root;return"translate(".concat(r.y,",").concat(r.x,")")}}).remove();S.select("circle").attr("r",0),S.select("text").style("fill-opacity",0);var j=U.selectAll("path.link").data(c,(function(t){return t.target.id}));j.enter().insert("path","g").attr({class:"link",d:function(n){var r=B(l,n.target.id,(function(t){return!!F[t.id]})),e=r&&F[r.id]||F.root;return t({source:e,target:e})}}).style(a.link),j.transition().duration(M).attr({d:t}),j.exit().transition().duration(M).attr({d:function(n){var r=B(F,n.target.id,(function(t){return!!l[t.id]})),e=r&&l[r.id]||l.root;return t({source:e,target:e})}}).remove(),f.property("__oldData__",null),F=l}y(L,(function(t){r=Math.max(t.name.length,r),t.id=t.id||"root"}),(function(t){return t.children&&t.children.length>0?t.children.map((function(n){return n.id="".concat(t.id||"","|").concat(n.name),n})):null})),e()}}const k=t})(),e})()}));
\No newline at end of file