OSCR

Multiomics analysis identifies VPA-induced changes in neural progenitor cells, ventricular-like regions, and cellular microenvironment in dorsal forebrain organoids.

Code ↔ Paper

6 matches between paragraphs of the paper and lines of its authors' code, computed by the harvester (lexical-v1). Click a colored paragraph or line to see its counterpart.

The 6 matches · 3 of them tie a paragraph to a whole file, not to given lines: weak matches, whose lines are not tinted
  1. [1] § Materials and methods › Immunohistochemistry (IHC) in dorsal forebrain organoid slices ↔ components/app/R/www/editor/static/js/main.187c56e6.js, the whole file · a weak match · score 0.64 · Gold, Ki, hour, minutes, mouse, visibility
  2. [2] § Results › Single-cell transcriptomic analysis suggests that VPA-treated DFOs have altered cell type proportions ↔ components/board.upload/R/upload_ui.R, the whole file · a weak match · score 0.57 · mRNA, scRNA, RNA seq, translational, query
  3. [3] § Materials and methods › Second harmonic generation (SHG) ↔ components/app/R/www/editor/static/js/main.187c56e6.js, the whole file · a weak match · score 0.56 · backward, band, pixels, post, radius, median
  4. [4] § Results › Single-cell transcriptomic analysis suggests that VPA-treated DFOs have altered cell type proportions ↔ components/board.upload/R/upload_server.R, lines 39–93 · score 0.54 · mRNA, scRNA, RNA seq, human
  5. [5] § Materials and methods › Single-cell data analysis › Quality control and data preprocessing ↔ components/board.upload/R/upload_module_normalizationSC.R, lines 9–60 · score 0.52 · dimensionality reduction, Seurat, mitochondrial, ribosomal, UMAP, PCA
  6. [6] § Materials and methods › RNA isolation and bulk RNA sequencing ↔ tools/scripts/pgx-GSE114716-ipilimumab.R, lines 129–204 · score 0.52 · removeBatchEffect, limma, treatment, matrix

Paper

Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC

The paper is loaded when this pane is shown.

The authors' code

JavaScript · 2 lines · 195 KB · CC-BY-NC-ND-4.0 · 2 matches

  1. /*! For license information please see main.187c56e6.js.LICENSE.txt */
  2. (()=>{var __webpack_modules__={54371:(e,t,r)=>{"use strict";var n,a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(65043),i=(n=o)&&n.__esModule?n:{default:n};t.A=function(e){var t=e.fill,r=void 0===t?"currentColor":t,n=e.width,o=void 0===n?24:n,l=e.height,s=void 0===l?24:l,u=e.style,c=void 0===u?{}:u,f=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["fill","width","height","style"]);return i.default.createElement("svg",a({viewBox:"0 0 24 24",style:a({fill:r,width:o,height:s},c)},f),i.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},29128:(e,t,r)=>{"use strict";var n,a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(65043),i=(n=o)&&n.__esModule?n:{default:n};t.A=function(e){var t=e.fill,r=void 0===t?"currentColor":t,n=e.width,o=void 0===n?24:n,l=e.height,s=void 0===l?24:l,u=e.style,c=void 0===u?{}:u,f=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["fill","width","height","style"]);return i.default.createElement("svg",a({viewBox:"0 0 24 24",style:a({fill:r,width:o,height:s},c)},f),i.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},63279:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(n=(i=l.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(s){a=!0,o=s}finally{try{!n&&l.return&&l.return()}finally{if(a)throw o}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.default=function(e,t){if(null==e)return t;var a=n(t,2),o=a[0],i=a[1],l=r({},o),s=[].concat(function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}(i)),u=!0,c=!1,f=void 0;try{for(var p,d=Object.keys(e)[Symbol.iterator]();!(u=(p=d.next()).done);u=!0){var h=p.value;if(o.hasOwnProperty(h)){var v=o[h];l[h]=r({},v,e[h])}else l[h]=e[h],s.push(h)}}catch(m){c=!0,f=m}finally{try{!u&&d.return&&d.return()}finally{if(c)throw f}}return[l,s]}},76613:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"};t.default=function(e){if(null==e)return e;var t={},n=!1,a=!0,o=!1,i=void 0;try{for(var l,s=Object.keys(e)[Symbol.iterator]();!(a=(l=s.next()).done);a=!0){var u=l.value,c=u;r.hasOwnProperty(u)&&(c=r[u],n=!0),t[c]=e[u]}}catch(f){o=!0,i=f}finally{try{!a&&s.return&&s.return()}finally{if(o)throw i}}return n?t:e}},73372:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=/^(moz|ms|o|webkit)-/,n=/^\d+$/,a=/([A-Z])/g,o={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};t.default=function(e){return Object.keys(e).map((function(t){var i=function(e,t){var r=void 0;return"string"===typeof t?r=n.test(t):(r=!0,t=String(t)),r&&"0"!==t&&!0!==o[e]?t+"px":t}(t,e[t]),l=function(e){return e.replace(a,"-$1").toLowerCase().replace(r,"-$1-")}(t);return l+": "+i})).join("; ")}},83844:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(31024);Object.defineProperty(t,"stateToHTML",{enumerable:!0,get:function(){return(e=n,e&&e.__esModule?e:{default:e}).default;var e}})},31024:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,a,o,i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(n=(i=l.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(s){a=!0,o=s}finally{try{!n&&l.return&&l.return()}finally{if(a)throw o}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},s=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();t.default=function(e,t){return new C(e,t).generate()};var u=d(r(63279)),c=d(r(76613)),f=d(r(73372)),p=r(77530);function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=p.INLINE_STYLE.BOLD,m=p.INLINE_STYLE.CODE,g=p.INLINE_STYLE.ITALIC,y=p.INLINE_STYLE.STRIKETHROUGH,b=p.INLINE_STYLE.UNDERLINE,_="<br>",x=/^data-([a-z0-9-]+)$/,w=(h(n={},v,{element:"strong"}),h(n,m,{element:"code"}),h(n,g,{element:"em"}),h(n,y,{element:"del"}),h(n,b,{element:"u"}),n),T=[v,g,b,y,m],k=(h(a={},p.ENTITY_TYPE.LINK,{url:"href",href:"href",rel:"rel",target:"target",title:"title",className:"class"}),h(a,p.ENTITY_TYPE.IMAGE,{src:"src",height:"height",width:"width",alt:"alt",className:"class"}),a),M=(h(o={},p.ENTITY_TYPE.LINK,(function(e,t){var r=k.hasOwnProperty(e)?k[e]:{},n=t.getData(),a={},o=!0,i=!1,l=void 0;try{for(var s,u=Object.keys(n)[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var c=s.value,f=n[c];if(r.hasOwnProperty(c))a[r[c]]=f;else x.test(c)&&(a[c]=f)}}catch(p){i=!0,l=p}finally{try{!o&&u.return&&u.return()}finally{if(i)throw l}}return a})),h(o,p.ENTITY_TYPE.IMAGE,(function(e,t){var r=k.hasOwnProperty(e)?k[e]:{},n=t.getData(),a={},o=!0,i=!1,l=void 0;try{for(var s,u=Object.keys(n)[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var c=s.value,f=n[c];if(r.hasOwnProperty(c))a[r[c]]=f;else x.test(c)&&(a[c]=f)}}catch(p){i=!0,l=p}finally{try{!o&&u.return&&u.return()}finally{if(i)throw l}}return a})),o);function E(e,t){switch(e){case p.BLOCK_TYPE.HEADER_ONE:return["h1"];case p.BLOCK_TYPE.HEADER_TWO:return["h2"];case p.BLOCK_TYPE.HEADER_THREE:return["h3"];case p.BLOCK_TYPE.HEADER_FOUR:return["h4"];case p.BLOCK_TYPE.HEADER_FIVE:return["h5"];case p.BLOCK_TYPE.HEADER_SIX:return["h6"];case p.BLOCK_TYPE.UNORDERED_LIST_ITEM:case p.BLOCK_TYPE.ORDERED_LIST_ITEM:return["li"];case p.BLOCK_TYPE.BLOCKQUOTE:return["blockquote"];case p.BLOCK_TYPE.CODE:return["pre","code"];case p.BLOCK_TYPE.ATOMIC:return["figure"];default:return null===t?[]:[t||"p"]}}var C=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),null==r&&(r={}),this.contentState=t,this.options=r;var n=(0,u.default)(r.inlineStyles,[w,T]),a=l(n,2),o=a[0],i=a[1];this.inlineStyles=o,this.styleOrder=i}return s(e,[{key:"generate",value:function(){for(this.output=[],this.blocks=this.contentState.getBlocksAsArray(),this.totalBlocks=this.blocks.length,this.currentBlock=0,this.indentLevel=0,this.wrapperTag=null;this.currentBlock<this.totalBlocks;)this.processBlock();return this.closeWrapperTag(),this.output.join("").trim()}},{key:"processBlock",value:function(){var e=this.options,t=e.blockRenderers,r=e.defaultBlockTag,n=this.blocks[this.currentBlock],a=n.getType(),o=function(e){switch(e){case p.BLOCK_TYPE.UNORDERED_LIST_ITEM:return"ul";case p.BLOCK_TYPE.ORDERED_LIST_ITEM:return"ol";default:return null}}(a);this.wrapperTag!==o&&(this.wrapperTag&&this.closeWrapperTag(),o&&this.openWrapperTag(o)),this.indent();var i=null!=t&&t.hasOwnProperty(a)?t[a]:null,l=i?i(n):null;if(null!=l)return this.output.push(l),this.output.push("\n"),void(this.currentBlock+=1);this.writeStartTag(n,r),this.output.push(this.renderBlockContent(n));var s=this.getNextBlock();if(function(e){switch(e){case p.BLOCK_TYPE.UNORDERED_LIST_ITEM:case p.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}(a)&&s&&s.getDepth()===n.getDepth()+1){this.output.push("\n");var u=this.wrapperTag;this.wrapperTag=null,this.indentLevel+=1,this.currentBlock+=1,this.processBlocksAtDepth(s.getDepth()),this.wrapperTag=u,this.indentLevel-=1,this.indent()}else this.currentBlock+=1;this.writeEndTag(n,r)}},{key:"processBlocksAtDepth",value:function(e){for(var t=this.blocks[this.currentBlock];t&&t.getDepth()===e;)this.processBlock(),t=this.blocks[this.currentBlock];this.closeWrapperTag()}},{key:"getNextBlock",value:function(){return this.blocks[this.currentBlock+1]}},{key:"writeStartTag",value:function(e,t){var r=E(e.getType(),t),n=void 0;if(this.options.blockStyleFn){var a=this.options.blockStyleFn(e)||{},o=a.attributes,l=a.style;if(o=(0,c.default)(o),null!=l){var s=(0,f.default)(l);o=null==o?{style:s}:i({},o,{style:s})}n=S(o)}else n="";var u=!0,p=!1,d=void 0;try{for(var h,v=r[Symbol.iterator]();!(u=(h=v.next()).done);u=!0){var m=h.value;this.output.push("<"+m+n+">")}}catch(g){p=!0,d=g}finally{try{!u&&v.return&&v.return()}finally{if(p)throw d}}}},{key:"writeEndTag",value:function(e,t){var r=E(e.getType(),t);if(1===r.length)this.output.push("</"+r[0]+">\n");else{var n=[],a=!0,o=!1,i=void 0;try{for(var l,s=r[Symbol.iterator]();!(a=(l=s.next()).done);a=!0){var u=l.value;n.unshift("</"+u+">")}}catch(c){o=!0,i=c}finally{try{!a&&s.return&&s.return()}finally{if(o)throw i}}this.output.push(n.join("")+"\n")}}},{key:"openWrapperTag",value:function(e){this.wrapperTag=e,this.indent(),this.output.push("<"+e+">\n"),this.indentLevel+=1}},{key:"closeWrapperTag",value:function(){var e=this.wrapperTag;e&&(this.indentLevel-=1,this.indent(),this.output.push("</"+e+">\n"),this.wrapperTag=null)}},{key:"indent",value:function(){this.output.push(" ".repeat(this.indentLevel))}},{key:"renderBlockContent",value:function(e){var t=this,r=e.getType(),n=e.getText();if(""===n)return _;n=this.preserveWhitespace(n);var a=e.getCharacterList();return(0,p.getEntityRanges)(n,a).map((function(e){var n=l(e,2),a=n[0],o=n[1].map((function(e){var n=l(e,2),a=n[0],o=n[1],s=function(e){return e.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;").split("\xa0").join("&nbsp;").split("\n").join(_+"\n")}(a),u=!0,d=!1,h=void 0;try{for(var v,g=t.styleOrder[Symbol.iterator]();!(u=(v=g.next()).done);u=!0){var y=v.value;if((y!==m||r!==p.BLOCK_TYPE.CODE)&&o.has(y)){var b=t.inlineStyles[y],x=b.element,w=b.attributes,T=b.style;if(null==x&&(x="span"),w=(0,c.default)(w),null!=T){var k=(0,f.default)(T);w=null==w?{style:k}:i({},w,{style:k})}s="<"+x+S(w)+">"+s+"</"+x+">"}}}catch(M){d=!0,h=M}finally{try{!u&&g.return&&g.return()}finally{if(d)throw h}}return s})).join(""),s=a?t.contentState.getEntity(a):null,u=null==s?null:s.getType().toUpperCase(),d=void 0;if(null!=s&&t.options.entityStyleFn&&(d=t.options.entityStyleFn(s))){var h=d,v=h.element,g=h.attributes,y=h.style;if(null==v&&(v="span"),g=(0,c.default)(g),null!=y){var b=(0,f.default)(y);g=null==g?{style:b}:i({},g,{style:b})}return"<"+v+S(g)+">"+o+"</"+v+">"}return null!=u&&u===p.ENTITY_TYPE.LINK?"<a"+S(M.hasOwnProperty(u)?M[u](u,s):null)+">"+o+"</a>":null!=u&&u===p.ENTITY_TYPE.IMAGE?"<img"+S(M.hasOwnProperty(u)?M[u](u,s):null)+"/>":o})).join("")}},{key:"preserveWhitespace",value:function(e){for(var t=e.length,r=new Array(t),n=0;n<t;n++)" "!==e[n]||0!==n&&n!==t-1&&" "!==e[n-1]?r[n]=e[n]:r[n]="\xa0";return r.join("")}}]),e}();function S(e){if(null==e)return"";var t=[],r=!0,n=!1,a=void 0;try{for(var o,i=Object.keys(e)[Symbol.iterator]();!(r=(o=i.next()).done);r=!0){var l=o.value,s=e[l];null!=s&&t.push(" "+l+'="'+((s+"").split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;").split('"').join("&quot;")+'"'))}}catch(u){n=!0,a=u}finally{try{!r&&i.return&&i.return()}finally{if(n)throw a}}return t.join("")}},96247:(e,t)=>{"use strict";t.A=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",a=(e.type||"").toLowerCase(),o=a.replace(/\/.*$/,"");return r.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?n.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):a===t}))}return!0}},64600:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var i=a.apply(null,r);i&&e.push(i)}else if("object"===o)for(var l in r)n.call(r,l)&&r[l]&&e.push(l)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},66354:(e,t,r)=>{"use strict";r.d(t,{DC:()=>j,aL:()=>z});var n=new Date,a=new Date;function o(e,t,r,i){function l(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return l.floor=function(t){return e(t=new Date(+t)),t},l.ceil=function(r){return e(r=new Date(r-1)),t(r,1),e(r),r},l.round=function(e){var t=l(e),r=l.ceil(e);return e-t<r-e?t:r},l.offset=function(e,r){return t(e=new Date(+e),null==r?1:Math.floor(r)),e},l.range=function(r,n,a){var o,i=[];if(r=l.ceil(r),a=null==a?1:Math.floor(a),!(r<n)||!(a>0))return i;do{i.push(o=new Date(+r)),t(r,a),e(r)}while(o<r&&r<n);return i},l.filter=function(r){return o((function(t){if(t>=t)for(;e(t),!r(t);)t.setTime(t-1)}),(function(e,n){if(e>=e)if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););}))},r&&(l.count=function(t,o){return n.setTime(+t),a.setTime(+o),e(n),e(a),Math.floor(r(n,a))},l.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?l.filter(i?function(t){return i(t)%e===0}:function(t){return l.count(0,t)%e===0}):l:null}),l}var i=864e5,l=6048e5;function s(e){return o((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/l}))}var u=s(0),c=s(1),f=s(2),p=s(3),d=s(4),h=s(5),v=s(6),m=(u.range,c.range,f.range,p.range,d.range,h.range,v.range,o((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/i}),(function(e){return e.getUTCDate()-1})));const g=m;m.range;function y(e){return o((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/l}))}var b=y(0),_=y(1),x=y(2),w=y(3),T=y(4),k=y(5),M=y(6),E=(b.range,_.range,x.range,w.range,T.range,k.range,M.range,o((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/i}),(function(e){return e.getDate()-1})));const C=E;E.range;var S=o((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));S.every=function(e){return isFinite(e=Math.floor(e))&&e>0?o((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,r){t.setFullYear(t.getFullYear()+r*e)})):null};const A=S;S.range;var O=o((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));O.every=function(e){return isFinite(e=Math.floor(e))&&e>0?o((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,r){t.setUTCFullYear(t.getUTCFullYear()+r*e)})):null};const P=O;O.range;function L(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function D(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function I(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}var R,j,z,N={"-":"",_:" ",0:"0"},F=/^\s*\d+/,B=/^%/,H=/[\\^$*+?|[\]().{}]/g;function V(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",o=a.length;return n+(o<r?new Array(r-o+1).join(t)+a:a)}function U(e){return e.replace(H,"\\$&")}function q(e){return new RegExp("^(?:"+e.map(U).join("|")+")","i")}function G(e){for(var t={},r=-1,n=e.length;++r<n;)t[e[r].toLowerCase()]=r;return t}function W(e,t,r){var n=F.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Y(e,t,r){var n=F.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function K(e,t,r){var n=F.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function X(e,t,r){var n=F.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function Z(e,t,r){var n=F.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function J(e,t,r){var n=F.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function $(e,t,r){var n=F.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function Q(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function ee(e,t,r){var n=F.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function te(e,t,r){var n=F.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function re(e,t,r){var n=F.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function ne(e,t,r){var n=F.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function ae(e,t,r){var n=F.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function oe(e,t,r){var n=F.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function ie(e,t,r){var n=F.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function le(e,t,r){var n=F.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function se(e,t,r){var n=F.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function ue(e,t,r){var n=B.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function ce(e,t,r){var n=F.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function fe(e,t,r){var n=F.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function pe(e,t){return V(e.getDate(),t,2)}function de(e,t){return V(e.getHours(),t,2)}function he(e,t){return V(e.getHours()%12||12,t,2)}function ve(e,t){return V(1+C.count(A(e),e),t,3)}function me(e,t){return V(e.getMilliseconds(),t,3)}function ge(e,t){return me(e,t)+"000"}function ye(e,t){return V(e.getMonth()+1,t,2)}function be(e,t){return V(e.getMinutes(),t,2)}function _e(e,t){return V(e.getSeconds(),t,2)}function xe(e){var t=e.getDay();return 0===t?7:t}function we(e,t){return V(b.count(A(e)-1,e),t,2)}function Te(e){var t=e.getDay();return t>=4||0===t?T(e):T.ceil(e)}function ke(e,t){return e=Te(e),V(T.count(A(e),e)+(4===A(e).getDay()),t,2)}function Me(e){return e.getDay()}function Ee(e,t){return V(_.count(A(e)-1,e),t,2)}function Ce(e,t){return V(e.getFullYear()%100,t,2)}function Se(e,t){return V((e=Te(e)).getFullYear()%100,t,2)}function Ae(e,t){return V(e.getFullYear()%1e4,t,4)}function Oe(e,t){var r=e.getDay();return V((e=r>=4||0===r?T(e):T.ceil(e)).getFullYear()%1e4,t,4)}function Pe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+V(t/60|0,"0",2)+V(t%60,"0",2)}function Le(e,t){return V(e.getUTCDate(),t,2)}function De(e,t){return V(e.getUTCHours(),t,2)}function Ie(e,t){return V(e.getUTCHours()%12||12,t,2)}function Re(e,t){return V(1+g.count(P(e),e),t,3)}function je(e,t){return V(e.getUTCMilliseconds(),t,3)}function ze(e,t){return je(e,t)+"000"}function Ne(e,t){return V(e.getUTCMonth()+1,t,2)}function Fe(e,t){return V(e.getUTCMinutes(),t,2)}function Be(e,t){return V(e.getUTCSeconds(),t,2)}function He(e){var t=e.getUTCDay();return 0===t?7:t}function Ve(e,t){return V(u.count(P(e)-1,e),t,2)}function Ue(e){var t=e.getUTCDay();return t>=4||0===t?d(e):d.ceil(e)}function qe(e,t){return e=Ue(e),V(d.count(P(e),e)+(4===P(e).getUTCDay()),t,2)}function Ge(e){return e.getUTCDay()}function We(e,t){return V(c.count(P(e)-1,e),t,2)}function Ye(e,t){return V(e.getUTCFullYear()%100,t,2)}function Ke(e,t){return V((e=Ue(e)).getUTCFullYear()%100,t,2)}function Xe(e,t){return V(e.getUTCFullYear()%1e4,t,4)}function Ze(e,t){var r=e.getUTCDay();return V((e=r>=4||0===r?d(e):d.ceil(e)).getUTCFullYear()%1e4,t,4)}function Je(){return"+0000"}function $e(){return"%"}function Qe(e){return+e}function et(e){return Math.floor(+e/1e3)}R=function(e){var t=e.dateTime,r=e.date,n=e.time,a=e.periods,o=e.days,i=e.shortDays,l=e.months,s=e.shortMonths,u=q(a),f=G(a),p=q(o),d=G(o),h=q(i),v=G(i),m=q(l),y=G(l),b=q(s),x=G(s),w={a:function(e){return i[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:pe,e:pe,f:ge,g:Se,G:Oe,H:de,I:he,j:ve,L:me,m:ye,M:be,p:function(e){return a[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Qe,s:et,S:_e,u:xe,U:we,V:ke,w:Me,W:Ee,x:null,X:null,y:Ce,Y:Ae,Z:Pe,"%":$e},T={a:function(e){return i[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:Le,e:Le,f:ze,g:Ke,G:Ze,H:De,I:Ie,j:Re,L:je,m:Ne,M:Fe,p:function(e){return a[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Qe,s:et,S:Be,u:He,U:Ve,V:qe,w:Ge,W:We,x:null,X:null,y:Ye,Y:Xe,Z:Je,"%":$e},k={a:function(e,t,r){var n=h.exec(t.slice(r));return n?(e.w=v[n[0].toLowerCase()],r+n[0].length):-1},A:function(e,t,r){var n=p.exec(t.slice(r));return n?(e.w=d[n[0].toLowerCase()],r+n[0].length):-1},b:function(e,t,r){var n=b.exec(t.slice(r));return n?(e.m=x[n[0].toLowerCase()],r+n[0].length):-1},B:function(e,t,r){var n=m.exec(t.slice(r));return n?(e.m=y[n[0].toLowerCase()],r+n[0].length):-1},c:function(e,r,n){return S(e,t,r,n)},d:re,e:re,f:se,g:$,G:J,H:ae,I:ae,j:ne,L:le,m:te,M:oe,p:function(e,t,r){var n=u.exec(t.slice(r));return n?(e.p=f[n[0].toLowerCase()],r+n[0].length):-1},q:ee,Q:ce,s:fe,S:ie,u:Y,U:K,V:X,w:W,W:Z,x:function(e,t,n){return S(e,r,t,n)},X:function(e,t,r){return S(e,n,t,r)},y:$,Y:J,Z:Q,"%":ue};function M(e,t){return function(r){var n,a,o,i=[],l=-1,s=0,u=e.length;for(r instanceof Date||(r=new Date(+r));++l<u;)37===e.charCodeAt(l)&&(i.push(e.slice(s,l)),null!=(a=N[n=e.charAt(++l)])?n=e.charAt(++l):a="e"===n?" ":"0",(o=t[n])&&(n=o(r,a)),i.push(n),s=l+1);return i.push(e.slice(s,l)),i.join("")}}function E(e,t){return function(r){var n,a,o=I(1900,void 0,1);if(S(o,e,r+="",0)!=r.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(a=(n=D(I(o.y,0,1))).getUTCDay(),n=a>4||0===a?c.ceil(n):c(n),n=g.offset(n,7*(o.V-1)),o.y=n.getUTCFullYear(),o.m=n.getUTCMonth(),o.d=n.getUTCDate()+(o.w+6)%7):(a=(n=L(I(o.y,0,1))).getDay(),n=a>4||0===a?_.ceil(n):_(n),n=C.offset(n,7*(o.V-1)),o.y=n.getFullYear(),o.m=n.getMonth(),o.d=n.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),a="Z"in o?D(I(o.y,0,1)).getUTCDay():L(I(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(a+5)%7:o.w+7*o.U-(a+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,D(o)):L(o)}}function S(e,t,r,n){for(var a,o,i=0,l=t.length,s=r.length;i<l;){if(n>=s)return-1;if(37===(a=t.charCodeAt(i++))){if(a=t.charAt(i++),!(o=k[a in N?t.charAt(i++):a])||(n=o(e,r,n))<0)return-1}else if(a!=r.charCodeAt(n++))return-1}return n}return w.x=M(r,w),w.X=M(n,w),w.c=M(t,w),T.x=M(r,T),T.X=M(n,T),T.c=M(t,T),{format:function(e){var t=M(e+="",w);return t.toString=function(){return e},t},parse:function(e){var t=E(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=M(e+="",T);return t.toString=function(){return e},t},utcParse:function(e){var t=E(e+="",!0);return t.toString=function(){return e},t}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",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"]}),j=R.format,R.parse,z=R.utcFormat,R.utcParse},8596:(e,t,r)=>{var n,a;!function(){var o={version:"3.5.17"},i=[].slice,l=function(e){return i.call(e)},s=this.document;function u(e){return e&&(e.ownerDocument||e.document||e).documentElement}function c(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}if(s)try{l(s.documentElement.childNodes)[0].nodeType}catch(ss){l=function(e){for(var t=e.length,r=new Array(t);t--;)r[t]=e[t];return r}}if(Date.now||(Date.now=function(){return+new Date}),s)try{s.createElement("DIV").style.setProperty("opacity",0,"")}catch(us){var f=this.Element.prototype,p=f.setAttribute,d=f.setAttributeNS,h=this.CSSStyleDeclaration.prototype,v=h.setProperty;f.setAttribute=function(e,t){p.call(this,e,t+"")},f.setAttributeNS=function(e,t,r){d.call(this,e,t,r+"")},h.setProperty=function(e,t,r){v.call(this,e,t+"",r)}}function m(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function g(e){return null===e?NaN:+e}function y(e){return!isNaN(e)}function b(e){return{left:function(t,r,n,a){for(arguments.length<3&&(n=0),arguments.length<4&&(a=t.length);n<a;){var o=n+a>>>1;e(t[o],r)<0?n=o+1:a=o}return n},right:function(t,r,n,a){for(arguments.length<3&&(n=0),arguments.length<4&&(a=t.length);n<a;){var o=n+a>>>1;e(t[o],r)>0?a=o:n=o+1}return n}}}o.ascending=m,o.descending=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},o.min=function(e,t){var r,n,a=-1,o=e.length;if(1===arguments.length){for(;++a<o;)if(null!=(n=e[a])&&n>=n){r=n;break}for(;++a<o;)null!=(n=e[a])&&r>n&&(r=n)}else{for(;++a<o;)if(null!=(n=t.call(e,e[a],a))&&n>=n){r=n;break}for(;++a<o;)null!=(n=t.call(e,e[a],a))&&r>n&&(r=n)}return r},o.max=function(e,t){var r,n,a=-1,o=e.length;if(1===arguments.length){for(;++a<o;)if(null!=(n=e[a])&&n>=n){r=n;break}for(;++a<o;)null!=(n=e[a])&&n>r&&(r=n)}else{for(;++a<o;)if(null!=(n=t.call(e,e[a],a))&&n>=n){r=n;break}for(;++a<o;)null!=(n=t.call(e,e[a],a))&&n>r&&(r=n)}return r},o.extent=function(e,t){var r,n,a,o=-1,i=e.length;if(1===arguments.length){for(;++o<i;)if(null!=(n=e[o])&&n>=n){r=a=n;break}for(;++o<i;)null!=(n=e[o])&&(r>n&&(r=n),a<n&&(a=n))}else{for(;++o<i;)if(null!=(n=t.call(e,e[o],o))&&n>=n){r=a=n;break}for(;++o<i;)null!=(n=t.call(e,e[o],o))&&(r>n&&(r=n),a<n&&(a=n))}return[r,a]},o.sum=function(e,t){var r,n=0,a=e.length,o=-1;if(1===arguments.length)for(;++o<a;)y(r=+e[o])&&(n+=r);else for(;++o<a;)y(r=+t.call(e,e[o],o))&&(n+=r);return n},o.mean=function(e,t){var r,n=0,a=e.length,o=-1,i=a;if(1===arguments.length)for(;++o<a;)y(r=g(e[o]))?n+=r:--i;else for(;++o<a;)y(r=g(t.call(e,e[o],o)))?n+=r:--i;if(i)return n/i},o.quantile=function(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),a=+e[n-1],o=r-n;return o?a+o*(e[n]-a):a},o.median=function(e,t){var r,n=[],a=e.length,i=-1;if(1===arguments.length)for(;++i<a;)y(r=g(e[i]))&&n.push(r);else for(;++i<a;)y(r=g(t.call(e,e[i],i)))&&n.push(r);if(n.length)return o.quantile(n.sort(m),.5)},o.variance=function(e,t){var r,n,a=e.length,o=0,i=0,l=-1,s=0;if(1===arguments.length)for(;++l<a;)y(r=g(e[l]))&&(i+=(n=r-o)*(r-(o+=n/++s)));else for(;++l<a;)y(r=g(t.call(e,e[l],l)))&&(i+=(n=r-o)*(r-(o+=n/++s)));if(s>1)return i/(s-1)},o.deviation=function(){var e=o.variance.apply(this,arguments);return e?Math.sqrt(e):e};var _=b(m);function x(e){return e.length}o.bisectLeft=_.left,o.bisect=o.bisectRight=_.right,o.bisector=function(e){return b(1===e.length?function(t,r){return m(e(t),r)}:e)},o.shuffle=function(e,t,r){(o=arguments.length)<3&&(r=e.length,o<2&&(t=0));for(var n,a,o=r-t;o;)a=Math.random()*o--|0,n=e[o+t],e[o+t]=e[a+t],e[a+t]=n;return e},o.permute=function(e,t){for(var r=t.length,n=new Array(r);r--;)n[r]=e[t[r]];return n},o.pairs=function(e){for(var t=0,r=e.length-1,n=e[0],a=new Array(r<0?0:r);t<r;)a[t]=[n,n=e[++t]];return a},o.transpose=function(e){if(!(a=e.length))return[];for(var t=-1,r=o.min(e,x),n=new Array(r);++t<r;)for(var a,i=-1,l=n[t]=new Array(a);++i<a;)l[i]=e[i][t];return n},o.zip=function(){return o.transpose(arguments)},o.keys=function(e){var t=[];for(var r in e)t.push(r);return t},o.values=function(e){var t=[];for(var r in e)t.push(e[r]);return t},o.entries=function(e){var t=[];for(var r in e)t.push({key:r,value:e[r]});return t},o.merge=function(e){for(var t,r,n,a=e.length,o=-1,i=0;++o<a;)i+=e[o].length;for(r=new Array(i);--a>=0;)for(t=(n=e[a]).length;--t>=0;)r[--i]=n[t];return r};var w=Math.abs;function T(e,t){for(var r in t)Object.defineProperty(e.prototype,r,{value:t[r],enumerable:!1})}function k(){this._=Object.create(null)}o.range=function(e,t,r){if(arguments.length<3&&(r=1,arguments.length<2&&(t=e,e=0)),(t-e)/r===1/0)throw new Error("infinite range");var n,a=[],o=function(e){var t=1;for(;e*t%1;)t*=10;return t}(w(r)),i=-1;if(e*=o,t*=o,(r*=o)<0)for(;(n=e+r*++i)>t;)a.push(n/o);else for(;(n=e+r*++i)<t;)a.push(n/o);return a},o.map=function(e,t){var r=new k;if(e instanceof k)e.forEach((function(e,t){r.set(e,t)}));else if(Array.isArray(e)){var n,a=-1,o=e.length;if(1===arguments.length)for(;++a<o;)r.set(a,e[a]);else for(;++a<o;)r.set(t.call(e,n=e[a],a),n)}else for(var i in e)r.set(i,e[i]);return r};function M(e){return"__proto__"===(e+="")||"\0"===e[0]?"\0"+e:e}function E(e){return"\0"===(e+="")[0]?e.slice(1):e}function C(e){return M(e)in this._}function S(e){return(e=M(e))in this._&&delete this._[e]}function A(){var e=[];for(var t in this._)e.push(E(t));return e}function O(){var e=0;for(var t in this._)++e;return e}function P(){for(var e in this._)return!1;return!0}function L(){this._=Object.create(null)}function D(e){return e}function I(e,t,r){return function(){var n=r.apply(t,arguments);return n===t?e:n}}function R(e,t){if(t in e)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var r=0,n=j.length;r<n;++r){var a=j[r]+t;if(a in e)return a}}T(k,{has:C,get:function(e){return this._[M(e)]},set:function(e,t){return this._[M(e)]=t},remove:S,keys:A,values:function(){var e=[];for(var t in this._)e.push(this._[t]);return e},entries:function(){var e=[];for(var t in this._)e.push({key:E(t),value:this._[t]});return e},size:O,empty:P,forEach:function(e){for(var t in this._)e.call(this,E(t),this._[t])}}),o.nest=function(){var e,t,r={},n=[],a=[];function i(a,o,l){if(l>=n.length)return t?t.call(r,o):e?o.sort(e):o;for(var s,u,c,f,p=-1,d=o.length,h=n[l++],v=new k;++p<d;)(f=v.get(s=h(u=o[p])))?f.push(u):v.set(s,[u]);return a?(u=a(),c=function(e,t){u.set(e,i(a,t,l))}):(u={},c=function(e,t){u[e]=i(a,t,l)}),v.forEach(c),u}function l(e,t){if(t>=n.length)return e;var r=[],o=a[t++];return e.forEach((function(e,n){r.push({key:e,values:l(n,t)})})),o?r.sort((function(e,t){return o(e.key,t.key)})):r}return r.map=function(e,t){return i(t,e,0)},r.entries=function(e){return l(i(o.map,e,0),0)},r.key=function(e){return n.push(e),r},r.sortKeys=function(e){return a[n.length-1]=e,r},r.sortValues=function(t){return e=t,r},r.rollup=function(e){return t=e,r},r},o.set=function(e){var t=new L;if(e)for(var r=0,n=e.length;r<n;++r)t.add(e[r]);return t},T(L,{has:C,add:function(e){return this._[M(e+="")]=!0,e},remove:S,values:A,size:O,empty:P,forEach:function(e){for(var t in this._)e.call(this,E(t))}}),o.behavior={},o.rebind=function(e,t){for(var r,n=1,a=arguments.length;++n<a;)e[r=arguments[n]]=I(e,t,t[r]);return e};var j=["webkit","ms","moz","Moz","o","O"];function z(){}function N(){}function F(e){var t=[],r=new k;function n(){for(var r,n=t,a=-1,o=n.length;++a<o;)(r=n[a].on)&&r.apply(this,arguments);return e}return n.on=function(n,a){var o,i=r.get(n);return arguments.length<2?i&&i.on:(i&&(i.on=null,t=t.slice(0,o=t.indexOf(i)).concat(t.slice(o+1)),r.remove(n)),a&&t.push(r.set(n,{on:a})),e)},n}function B(){o.event.preventDefault()}function H(){for(var e,t=o.event;e=t.sourceEvent;)t=e;return t}function V(e){for(var t=new N,r=0,n=arguments.length;++r<n;)t[arguments[r]]=F(t);return t.of=function(r,n){return function(a){try{var i=a.sourceEvent=o.event;a.target=e,o.event=a,t[a.type].apply(r,n)}finally{o.event=i}}},t}o.dispatch=function(){for(var e=new N,t=-1,r=arguments.length;++t<r;)e[arguments[t]]=F(e);return e},N.prototype.on=function(e,t){var r=e.indexOf("."),n="";if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e)return arguments.length<2?this[e].on(n):this[e].on(n,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(n,null);return this}},o.event=null,o.requote=function(e){return e.replace(U,"\\$&")};var U=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,q={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var r in t)e[r]=t[r]};function G(e){return q(e,X),e}var W=function(e,t){return t.querySelector(e)},Y=function(e,t){return t.querySelectorAll(e)},K=function(e,t){var r=e.matches||e[R(e,"matchesSelector")];return K=function(e,t){return r.call(e,t)},K(e,t)};"function"===typeof Sizzle&&(W=function(e,t){return Sizzle(e,t)[0]||null},Y=Sizzle,K=Sizzle.matchesSelector),o.selection=function(){return o.select(s.documentElement)};var X=o.selection.prototype=[];function Z(e){return"function"===typeof e?e:function(){return W(e,this)}}function J(e){return"function"===typeof e?e:function(){return Y(e,this)}}X.select=function(e){var t,r,n,a,o=[];e=Z(e);for(var i=-1,l=this.length;++i<l;){o.push(t=[]),t.parentNode=(n=this[i]).parentNode;for(var s=-1,u=n.length;++s<u;)(a=n[s])?(t.push(r=e.call(a,a.__data__,s,i)),r&&"__data__"in a&&(r.__data__=a.__data__)):t.push(null)}return G(o)},X.selectAll=function(e){var t,r,n=[];e=J(e);for(var a=-1,o=this.length;++a<o;)for(var i=this[a],s=-1,u=i.length;++s<u;)(r=i[s])&&(n.push(t=l(e.call(r,r.__data__,s,a))),t.parentNode=r);return G(n)};var $="http://www.w3.org/1999/xhtml",Q={svg:"http://www.w3.org/2000/svg",xhtml:$,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ee(e,t){return e=o.ns.qualify(e),null==t?e.local?function(){this.removeAttributeNS(e.space,e.local)}:function(){this.removeAttribute(e)}:"function"===typeof t?e.local?function(){var r=t.apply(this,arguments);null==r?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}:function(){var r=t.apply(this,arguments);null==r?this.removeAttribute(e):this.setAttribute(e,r)}:e.local?function(){this.setAttributeNS(e.space,e.local,t)}:function(){this.setAttribute(e,t)}}function te(e){return e.trim().replace(/\s+/g," ")}function re(e){return new RegExp("(?:^|\\s+)"+o.requote(e)+"(?:\\s+|$)","g")}function ne(e){return(e+"").trim().split(/^|\s+/)}function ae(e,t){var r=(e=ne(e).map(oe)).length;return"function"===typeof t?function(){for(var n=-1,a=t.apply(this,arguments);++n<r;)e[n](this,a)}:function(){for(var n=-1;++n<r;)e[n](this,t)}}function oe(e){var t=re(e);return function(r,n){if(a=r.classList)return n?a.add(e):a.remove(e);var a=r.getAttribute("class")||"";n?(t.lastIndex=0,t.test(a)||r.setAttribute("class",te(a+" "+e))):r.setAttribute("class",te(a.replace(t," ")))}}function ie(e,t,r){return null==t?function(){this.style.removeProperty(e)}:"function"===typeof t?function(){var n=t.apply(this,arguments);null==n?this.style.removeProperty(e):this.style.setProperty(e,n,r)}:function(){this.style.setProperty(e,t,r)}}function le(e,t){return null==t?function(){delete this[e]}:"function"===typeof t?function(){var r=t.apply(this,arguments);null==r?delete this[e]:this[e]=r}:function(){this[e]=t}}function se(e){return"function"===typeof e?e:(e=o.ns.qualify(e)).local?function(){return this.ownerDocument.createElementNS(e.space,e.local)}:function(){var t=this.ownerDocument,r=this.namespaceURI;return r===$&&t.documentElement.namespaceURI===$?t.createElement(e):t.createElementNS(r,e)}}function ue(){var e=this.parentNode;e&&e.removeChild(this)}function ce(e){return{__data__:e}}function fe(e){return function(){return K(this,e)}}function pe(e){return arguments.length||(e=m),function(t,r){return t&&r?e(t.__data__,r.__data__):!t-!r}}function de(e,t){for(var r=0,n=e.length;r<n;r++)for(var a,o=e[r],i=0,l=o.length;i<l;i++)(a=o[i])&&t(a,i,r);return e}function he(e){return q(e,ve),e}o.ns={prefix:Q,qualify:function(e){var t=e.indexOf(":"),r=e;return t>=0&&"xmlns"!==(r=e.slice(0,t))&&(e=e.slice(t+1)),Q.hasOwnProperty(r)?{space:Q[r],local:e}:e}},X.attr=function(e,t){if(arguments.length<2){if("string"===typeof e){var r=this.node();return(e=o.ns.qualify(e)).local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}for(t in e)this.each(ee(t,e[t]));return this}return this.each(ee(e,t))},X.classed=function(e,t){if(arguments.length<2){if("string"===typeof e){var r=this.node(),n=(e=ne(e)).length,a=-1;if(t=r.classList){for(;++a<n;)if(!t.contains(e[a]))return!1}else for(t=r.getAttribute("class");++a<n;)if(!re(e[a]).test(t))return!1;return!0}for(t in e)this.each(ae(t,e[t]));return this}return this.each(ae(e,t))},X.style=function(e,t,r){var n=arguments.length;if(n<3){if("string"!==typeof e){for(r in n<2&&(t=""),e)this.each(ie(r,e[r],t));return this}if(n<2){var a=this.node();return c(a).getComputedStyle(a,null).getPropertyValue(e)}r=""}return this.each(ie(e,t,r))},X.property=function(e,t){if(arguments.length<2){if("string"===typeof e)return this.node()[e];for(t in e)this.each(le(t,e[t]));return this}return this.each(le(e,t))},X.text=function(e){return arguments.length?this.each("function"===typeof e?function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}:null==e?function(){this.textContent=""}:function(){this.textContent=e}):this.node().textContent},X.html=function(e){return arguments.length?this.each("function"===typeof e?function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}:null==e?function(){this.innerHTML=""}:function(){this.innerHTML=e}):this.node().innerHTML},X.append=function(e){return e=se(e),this.select((function(){return this.appendChild(e.apply(this,arguments))}))},X.insert=function(e,t){return e=se(e),t=Z(t),this.select((function(){return this.insertBefore(e.apply(this,arguments),t.apply(this,arguments)||null)}))},X.remove=function(){return this.each(ue)},X.data=function(e,t){var r,n,a=-1,o=this.length;if(!arguments.length){for(e=new Array(o=(r=this[0]).length);++a<o;)(n=r[a])&&(e[a]=n.__data__);return e}function i(e,r){var n,a,o,i=e.length,c=r.length,f=Math.min(i,c),p=new Array(c),d=new Array(c),h=new Array(i);if(t){var v,m=new k,g=new Array(i);for(n=-1;++n<i;)(a=e[n])&&(m.has(v=t.call(a,a.__data__,n))?h[n]=a:m.set(v,a),g[n]=v);for(n=-1;++n<c;)(a=m.get(v=t.call(r,o=r[n],n)))?!0!==a&&(p[n]=a,a.__data__=o):d[n]=ce(o),m.set(v,!0);for(n=-1;++n<i;)n in g&&!0!==m.get(g[n])&&(h[n]=e[n])}else{for(n=-1;++n<f;)a=e[n],o=r[n],a?(a.__data__=o,p[n]=a):d[n]=ce(o);for(;n<c;++n)d[n]=ce(r[n]);for(;n<i;++n)h[n]=e[n]}d.update=p,d.parentNode=p.parentNode=h.parentNode=e.parentNode,l.push(d),s.push(p),u.push(h)}var l=he([]),s=G([]),u=G([]);if("function"===typeof e)for(;++a<o;)i(r=this[a],e.call(r,r.parentNode.__data__,a));else for(;++a<o;)i(r=this[a],e);return s.enter=function(){return l},s.exit=function(){return u},s},X.datum=function(e){return arguments.length?this.property("__data__",e):this.property("__data__")},X.filter=function(e){var t,r,n,a=[];"function"!==typeof e&&(e=fe(e));for(var o=0,i=this.length;o<i;o++){a.push(t=[]),t.parentNode=(r=this[o]).parentNode;for(var l=0,s=r.length;l<s;l++)(n=r[l])&&e.call(n,n.__data__,l,o)&&t.push(n)}return G(a)},X.order=function(){for(var e=-1,t=this.length;++e<t;)for(var r,n=this[e],a=n.length-1,o=n[a];--a>=0;)(r=n[a])&&(o&&o!==r.nextSibling&&o.parentNode.insertBefore(r,o),o=r);return this},X.sort=function(e){e=pe.apply(this,arguments);for(var t=-1,r=this.length;++t<r;)this[t].sort(e);return this.order()},X.each=function(e){return de(this,(function(t,r,n){e.call(t,t.__data__,r,n)}))},X.call=function(e){var t=l(arguments);return e.apply(t[0]=this,t),this},X.empty=function(){return!this.node()},X.node=function(){for(var e=0,t=this.length;e<t;e++)for(var r=this[e],n=0,a=r.length;n<a;n++){var o=r[n];if(o)return o}return null},X.size=function(){var e=0;return de(this,(function(){++e})),e};var ve=[];function me(e,t,r){var n="__on"+e,a=e.indexOf("."),i=ye;a>0&&(e=e.slice(0,a));var s=ge.get(e);function u(){var t=this[n];t&&(this.removeEventListener(e,t,t.$),delete this[n])}return s&&(e=s,i=be),a?t?function(){var a=i(t,l(arguments));u.call(this),this.addEventListener(e,this[n]=a,a.$=r),a._=t}:u:t?z:function(){var t,r=new RegExp("^__on([^.]+)"+o.requote(e)+"$");for(var n in this)if(t=n.match(r)){var a=this[n];this.removeEventListener(t[1],a,a.$),delete this[n]}}}o.selection.enter=he,o.selection.enter.prototype=ve,ve.append=X.append,ve.empty=X.empty,ve.node=X.node,ve.call=X.call,ve.size=X.size,ve.select=function(e){for(var t,r,n,a,o,i=[],l=-1,s=this.length;++l<s;){n=(a=this[l]).update,i.push(t=[]),t.parentNode=a.parentNode;for(var u=-1,c=a.length;++u<c;)(o=a[u])?(t.push(n[u]=r=e.call(a.parentNode,o.__data__,u,l)),r.__data__=o.__data__):t.push(null)}return G(i)},ve.insert=function(e,t){return arguments.length<2&&(t=function(e){var t,r;return function(n,a,o){var i,l=e[o].update,s=l.length;for(o!=r&&(r=o,t=0),a>=t&&(t=a+1);!(i=l[t])&&++t<s;);return i}}(this)),X.insert.call(this,e,t)},o.select=function(e){var t;return"string"===typeof e?(t=[W(e,s)]).parentNode=s.documentElement:(t=[e]).parentNode=u(e),G([t])},o.selectAll=function(e){var t;return"string"===typeof e?(t=l(Y(e,s))).parentNode=s.documentElement:(t=l(e)).parentNode=null,G([t])},X.on=function(e,t,r){var n=arguments.length;if(n<3){if("string"!==typeof e){for(r in n<2&&(t=!1),e)this.each(me(r,e[r],t));return this}if(n<2)return(n=this.node()["__on"+e])&&n._;r=!1}return this.each(me(e,t,r))};var ge=o.map({mouseenter:"mouseover",mouseleave:"mouseout"});function ye(e,t){return function(r){var n=o.event;o.event=r,t[0]=this.__data__;try{e.apply(this,t)}finally{o.event=n}}}function be(e,t){var r=ye(e,t);return function(e){var t=this,n=e.relatedTarget;n&&(n===t||8&n.compareDocumentPosition(t))||r.call(t,e)}}s&&ge.forEach((function(e){"on"+e in s&&ge.remove(e)}));var _e,xe=0;function we(e){var t=".dragsuppress-"+ ++xe,r="click"+t,n=o.select(c(e)).on("touchmove"+t,B).on("dragstart"+t,B).on("selectstart"+t,B);if(null==_e&&(_e=!("onselectstart"in e)&&R(e.style,"userSelect")),_e){var a=u(e).style,i=a[_e];a[_e]="none"}return function(e){if(n.on(t,null),_e&&(a[_e]=i),e){var o=function(){n.on(r,null)};n.on(r,(function(){B(),o()}),!0),setTimeout(o,0)}}}o.mouse=function(e){return ke(e,H())};var Te=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function ke(e,t){t.changedTouches&&(t=t.changedTouches[0]);var r=e.ownerSVGElement||e;if(r.createSVGPoint){var n=r.createSVGPoint();if(Te<0){var a=c(e);if(a.scrollX||a.scrollY){var i=(r=o.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important"))[0][0].getScreenCTM();Te=!(i.f||i.e),r.remove()}}return Te?(n.x=t.pageX,n.y=t.pageY):(n.x=t.clientX,n.y=t.clientY),[(n=n.matrixTransform(e.getScreenCTM().inverse())).x,n.y]}var l=e.getBoundingClientRect();return[t.clientX-l.left-e.clientLeft,t.clientY-l.top-e.clientTop]}function Me(){return o.event.changedTouches[0].identifier}o.touch=function(e,t,r){if(arguments.length<3&&(r=t,t=H().changedTouches),t)for(var n,a=0,o=t.length;a<o;++a)if((n=t[a]).identifier===r)return ke(e,n)},o.behavior.drag=function(){var e=V(a,"drag","dragstart","dragend"),t=null,r=i(z,o.mouse,c,"mousemove","mouseup"),n=i(Me,o.touch,D,"touchmove","touchend");function a(){this.on("mousedown.drag",r).on("touchstart.drag",n)}function i(r,n,a,i,l){return function(){var s,u=this,c=o.event.target.correspondingElement||o.event.target,f=u.parentNode,p=e.of(u,arguments),d=0,h=r(),v=".drag"+(null==h?"":"-"+h),m=o.select(a(c)).on(i+v,(function(){var e,t,r=n(f,h);if(!r)return;e=r[0]-y[0],t=r[1]-y[1],d|=e|t,y=r,p({type:"drag",x:r[0]+s[0],y:r[1]+s[1],dx:e,dy:t})})).on(l+v,(function(){if(!n(f,h))return;m.on(i+v,null).on(l+v,null),g(d),p({type:"dragend"})})),g=we(c),y=n(f,h);s=t?[(s=t.apply(u,arguments)).x-y[0],s.y-y[1]]:[0,0],p({type:"dragstart"})}}return a.origin=function(e){return arguments.length?(t=e,a):t},o.rebind(a,e,"on")},o.touches=function(e,t){return arguments.length<2&&(t=H().touches),t?l(t).map((function(t){var r=ke(e,t);return r.identifier=t.identifier,r})):[]};var Ee=1e-6,Ce=Ee*Ee,Se=Math.PI,Ae=2*Se,Oe=Ae-Ee,Pe=Se/2,Le=Se/180,De=180/Se;function Ie(e){return e>0?1:e<0?-1:0}function Re(e,t,r){return(t[0]-e[0])*(r[1]-e[1])-(t[1]-e[1])*(r[0]-e[0])}function je(e){return e>1?0:e<-1?Se:Math.acos(e)}function ze(e){return e>1?Pe:e<-1?-Pe:Math.asin(e)}function Ne(e){return((e=Math.exp(e))+1/e)/2}function Fe(e){return(e=Math.sin(e/2))*e}var Be=Math.SQRT2;o.interpolateZoom=function(e,t){var r,n,a=e[0],o=e[1],i=e[2],l=t[0],s=t[1],u=t[2],c=l-a,f=s-o,p=c*c+f*f;if(p<Ce)n=Math.log(u/i)/Be,r=function(e){return[a+e*c,o+e*f,i*Math.exp(Be*e*n)]};else{var d=Math.sqrt(p),h=(u*u-i*i+4*p)/(2*i*2*d),v=(u*u-i*i-4*p)/(2*u*2*d),m=Math.log(Math.sqrt(h*h+1)-h),g=Math.log(Math.sqrt(v*v+1)-v);n=(g-m)/Be,r=function(e){var t,r=e*n,l=Ne(m),s=i/(2*d)*(l*(t=Be*r+m,((t=Math.exp(2*t))-1)/(t+1))-function(e){return((e=Math.exp(e))-1/e)/2}(m));return[a+s*c,o+s*f,i*l/Ne(Be*r+m)]}}return r.duration=1e3*n,r},o.behavior.zoom=function(){var e,t,r,n,a,i,l,u,f,p={x:0,y:0,k:1},d=[960,500],h=Ue,v=250,m=0,g="mousedown.zoom",y="mousemove.zoom",b="mouseup.zoom",_="touchstart.zoom",x=V(w,"zoomstart","zoom","zoomend");function w(e){e.on(g,P).on(Ve+".zoom",D).on("dblclick.zoom",I).on(_,L)}function T(e){return[(e[0]-p.x)/p.k,(e[1]-p.y)/p.k]}function k(e){p.k=Math.max(h[0],Math.min(h[1],e))}function M(e,t){t=function(e){return[e[0]*p.k+p.x,e[1]*p.k+p.y]}(t),p.x+=e[0]-t[0],p.y+=e[1]-t[1]}function E(e,r,n,a){e.__chart__={x:p.x,y:p.y,k:p.k},k(Math.pow(2,a)),M(t=r,n),e=o.select(e),v>0&&(e=e.transition().duration(v)),e.call(w.event)}function C(){l&&l.domain(i.range().map((function(e){return(e-p.x)/p.k})).map(i.invert)),f&&f.domain(u.range().map((function(e){return(e-p.y)/p.k})).map(u.invert))}function S(e){m++||e({type:"zoomstart"})}function A(e){C(),e({type:"zoom",scale:p.k,translate:[p.x,p.y]})}function O(e){--m||(e({type:"zoomend"}),t=null)}function P(){var e=this,t=x.of(e,arguments),r=0,n=o.select(c(e)).on(y,(function(){r=1,M(o.mouse(e),a),A(t)})).on(b,(function(){n.on(y,null).on(b,null),i(r),O(t)})),a=T(o.mouse(e)),i=we(e);Pl.call(e),S(t)}function L(){var e,t=this,r=x.of(t,arguments),n={},i=0,l=".zoom-"+o.event.changedTouches[0].identifier,s="touchmove"+l,u="touchend"+l,c=[],f=o.select(t),d=we(t);function h(){var r=o.touches(t);return e=p.k,r.forEach((function(e){e.identifier in n&&(n[e.identifier]=T(e))})),r}function v(){var e=o.event.target;o.select(e).on(s,m).on(u,y),c.push(e);for(var r=o.event.changedTouches,l=0,f=r.length;l<f;++l)n[r[l].identifier]=null;var d=h(),v=Date.now();if(1===d.length){if(v-a<500){var g=d[0];E(t,g,n[g.identifier],Math.floor(Math.log(p.k)/Math.LN2)+1),B()}a=v}else if(d.length>1){g=d[0];var b=d[1],_=g[0]-b[0],x=g[1]-b[1];i=_*_+x*x}}function m(){var l,s,u,c,f=o.touches(t);Pl.call(t);for(var p=0,d=f.length;p<d;++p,c=null)if(u=f[p],c=n[u.identifier]){if(s)break;l=u,s=c}if(c){var h=(h=u[0]-l[0])*h+(h=u[1]-l[1])*h,v=i&&Math.sqrt(h/i);l=[(l[0]+u[0])/2,(l[1]+u[1])/2],s=[(s[0]+c[0])/2,(s[1]+c[1])/2],k(v*e)}a=null,M(l,s),A(r)}function y(){if(o.event.touches.length){for(var e=o.event.changedTouches,t=0,a=e.length;t<a;++t)delete n[e[t].identifier];for(var i in n)return void h()}o.selectAll(c).on(l,null),f.on(g,P).on(_,L),d(),O(r)}v(),S(r),f.on(g,null).on(_,v)}function D(){var a=x.of(this,arguments);n?clearTimeout(n):(Pl.call(this),e=T(t=r||o.mouse(this)),S(a)),n=setTimeout((function(){n=null,O(a)}),50),B(),k(Math.pow(2,.002*He())*p.k),M(t,e),A(a)}function I(){var e=o.mouse(this),t=Math.log(p.k)/Math.LN2;E(this,e,T(e),o.event.shiftKey?Math.ceil(t)-1:Math.floor(t)+1)}return Ve||(Ve="onwheel"in s?(He=function(){return-o.event.deltaY*(o.event.deltaMode?120:1)},"wheel"):"onmousewheel"in s?(He=function(){return o.event.wheelDelta},"mousewheel"):(He=function(){return-o.event.detail},"MozMousePixelScroll")),w.event=function(e){e.each((function(){var e=x.of(this,arguments),r=p;Il?o.select(this).transition().each("start.zoom",(function(){p=this.__chart__||{x:0,y:0,k:1},S(e)})).tween("zoom:zoom",(function(){var n=d[0],a=d[1],i=t?t[0]:n/2,l=t?t[1]:a/2,s=o.interpolateZoom([(i-p.x)/p.k,(l-p.y)/p.k,n/p.k],[(i-r.x)/r.k,(l-r.y)/r.k,n/r.k]);return function(t){var r=s(t),a=n/r[2];this.__chart__=p={x:i-r[0]*a,y:l-r[1]*a,k:a},A(e)}})).each("interrupt.zoom",(function(){O(e)})).each("end.zoom",(function(){O(e)})):(this.__chart__=p,S(e),A(e),O(e))}))},w.translate=function(e){return arguments.length?(p={x:+e[0],y:+e[1],k:p.k},C(),w):[p.x,p.y]},w.scale=function(e){return arguments.length?(p={x:p.x,y:p.y,k:null},k(+e),C(),w):p.k},w.scaleExtent=function(e){return arguments.length?(h=null==e?Ue:[+e[0],+e[1]],w):h},w.center=function(e){return arguments.length?(r=e&&[+e[0],+e[1]],w):r},w.size=function(e){return arguments.length?(d=e&&[+e[0],+e[1]],w):d},w.duration=function(e){return arguments.length?(v=+e,w):v},w.x=function(e){return arguments.length?(l=e,i=e.copy(),p={x:0,y:0,k:1},w):l},w.y=function(e){return arguments.length?(f=e,u=e.copy(),p={x:0,y:0,k:1},w):f},o.rebind(w,x,"on")};var He,Ve,Ue=[0,1/0];function qe(){}function Ge(e,t,r){return this instanceof Ge?(this.h=+e,this.s=+t,void(this.l=+r)):arguments.length<2?e instanceof Ge?new Ge(e.h,e.s,e.l):dt(""+e,ht,Ge):new Ge(e,t,r)}o.color=qe,qe.prototype.toString=function(){return this.rgb()+""},o.hsl=Ge;var We=Ge.prototype=new qe;function Ye(e,t,r){var n,a;function o(e){return Math.round(255*function(e){return e>360?e-=360:e<0&&(e+=360),e<60?n+(a-n)*e/60:e<180?a:e<240?n+(a-n)*(240-e)/60:n}(e))}return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)||t<0?0:t>1?1:t,n=2*(r=r<0?0:r>1?1:r)-(a=r<=.5?r*(1+t):r+t-r*t),new st(o(e+120),o(e),o(e-120))}function Ke(e,t,r){return this instanceof Ke?(this.h=+e,this.c=+t,void(this.l=+r)):arguments.length<2?e instanceof Ke?new Ke(e.h,e.c,e.l):at(e instanceof Je?e.l:(e=vt((e=o.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new Ke(e,t,r)}We.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new Ge(this.h,this.s,this.l/e)},We.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new Ge(this.h,this.s,e*this.l)},We.rgb=function(){return Ye(this.h,this.s,this.l)},o.hcl=Ke;var Xe=Ke.prototype=new qe;function Ze(e,t,r){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new Je(r,Math.cos(e*=Le)*t,Math.sin(e)*t)}function Je(e,t,r){return this instanceof Je?(this.l=+e,this.a=+t,void(this.b=+r)):arguments.length<2?e instanceof Je?new Je(e.l,e.a,e.b):e instanceof Ke?Ze(e.h,e.c,e.l):vt((e=st(e)).r,e.g,e.b):new Je(e,t,r)}Xe.brighter=function(e){return new Ke(this.h,this.c,Math.min(100,this.l+$e*(arguments.length?e:1)))},Xe.darker=function(e){return new Ke(this.h,this.c,Math.max(0,this.l-$e*(arguments.length?e:1)))},Xe.rgb=function(){return Ze(this.h,this.c,this.l).rgb()},o.lab=Je;var $e=18,Qe=.95047,et=1,tt=1.08883,rt=Je.prototype=new qe;function nt(e,t,r){var n=(e+16)/116,a=n+t/500,o=n-r/200;return new st(lt(3.2404542*(a=ot(a)*Qe)-1.5371385*(n=ot(n)*et)-.4985314*(o=ot(o)*tt)),lt(-.969266*a+1.8760108*n+.041556*o),lt(.0556434*a-.2040259*n+1.0572252*o))}function at(e,t,r){return e>0?new Ke(Math.atan2(r,t)*De,Math.sqrt(t*t+r*r),e):new Ke(NaN,NaN,e)}function ot(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function it(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function lt(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function st(e,t,r){return this instanceof st?(this.r=~~e,this.g=~~t,void(this.b=~~r)):arguments.length<2?e instanceof st?new st(e.r,e.g,e.b):dt(""+e,st,Ye):new st(e,t,r)}function ut(e){return new st(e>>16,e>>8&255,255&e)}function ct(e){return ut(e)+""}rt.brighter=function(e){return new Je(Math.min(100,this.l+$e*(arguments.length?e:1)),this.a,this.b)},rt.darker=function(e){return new Je(Math.max(0,this.l-$e*(arguments.length?e:1)),this.a,this.b)},rt.rgb=function(){return nt(this.l,this.a,this.b)},o.rgb=st;var ft=st.prototype=new qe;function pt(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function dt(e,t,r){var n,a,o,i=0,l=0,s=0;if(n=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(a=n[2].split(","),n[1]){case"hsl":return r(parseFloat(a[0]),parseFloat(a[1])/100,parseFloat(a[2])/100);case"rgb":return t(gt(a[0]),gt(a[1]),gt(a[2]))}return(o=yt.get(e))?t(o.r,o.g,o.b):(null==e||"#"!==e.charAt(0)||isNaN(o=parseInt(e.slice(1),16))||(4===e.length?(i=(3840&o)>>4,i|=i>>4,l=240&o,l|=l>>4,s=15&o,s|=s<<4):7===e.length&&(i=(16711680&o)>>16,l=(65280&o)>>8,s=255&o)),t(i,l,s))}function ht(e,t,r){var n,a,o=Math.min(e/=255,t/=255,r/=255),i=Math.max(e,t,r),l=i-o,s=(i+o)/2;return l?(a=s<.5?l/(i+o):l/(2-i-o),n=e==i?(t-r)/l+(t<r?6:0):t==i?(r-e)/l+2:(e-t)/l+4,n*=60):(n=NaN,a=s>0&&s<1?0:n),new Ge(n,a,s)}function vt(e,t,r){var n=it((.4124564*(e=mt(e))+.3575761*(t=mt(t))+.1804375*(r=mt(r)))/Qe),a=it((.2126729*e+.7151522*t+.072175*r)/et);return Je(116*a-16,500*(n-a),200*(a-it((.0193339*e+.119192*t+.9503041*r)/tt)))}function mt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function gt(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}ft.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,r=this.g,n=this.b,a=30;return t||r||n?(t&&t<a&&(t=a),r&&r<a&&(r=a),n&&n<a&&(n=a),new st(Math.min(255,t/e),Math.min(255,r/e),Math.min(255,n/e))):new st(a,a,a)},ft.darker=function(e){return new st((e=Math.pow(.7,arguments.length?e:1))*this.r,e*this.g,e*this.b)},ft.hsl=function(){return ht(this.r,this.g,this.b)},ft.toString=function(){return"#"+pt(this.r)+pt(this.g)+pt(this.b)};var yt=o.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 bt(e){return"function"===typeof e?e:function(){return e}}function _t(e){return function(t,r,n){return 2===arguments.length&&"function"===typeof r&&(n=r,r=null),xt(t,r,e,n)}}function xt(e,t,r,n){var a={},i=o.dispatch("beforesend","progress","load","error"),s={},u=new XMLHttpRequest,c=null;function f(){var e,t=u.status;if(!t&&function(e){var t=e.responseType;return t&&"text"!==t?e.response:e.responseText}(u)||t>=200&&t<300||304===t){try{e=r.call(a,u)}catch(ss){return void i.error.call(a,ss)}i.load.call(a,e)}else i.error.call(a,u)}return this.XDomainRequest&&!("withCredentials"in u)&&/^(http(s)?:)?\/\//.test(e)&&(u=new XDomainRequest),"onload"in u?u.onload=u.onerror=f:u.onreadystatechange=function(){u.readyState>3&&f()},u.onprogress=function(e){var t=o.event;o.event=e;try{i.progress.call(a,u)}finally{o.event=t}},a.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?s[e]:(null==t?delete s[e]:s[e]=t+"",a)},a.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",a):t},a.responseType=function(e){return arguments.length?(c=e,a):c},a.response=function(e){return r=e,a},["get","post"].forEach((function(e){a[e]=function(){return a.send.apply(a,[e].concat(l(arguments)))}})),a.send=function(r,n,o){if(2===arguments.length&&"function"===typeof n&&(o=n,n=null),u.open(r,e,!0),null==t||"accept"in s||(s.accept=t+",*/*"),u.setRequestHeader)for(var l in s)u.setRequestHeader(l,s[l]);return null!=t&&u.overrideMimeType&&u.overrideMimeType(t),null!=c&&(u.responseType=c),null!=o&&a.on("error",o).on("load",(function(e){o(null,e)})),i.beforesend.call(a,u),u.send(null==n?null:n),a},a.abort=function(){return u.abort(),a},o.rebind(a,i,"on"),null==n?a:a.get(function(e){return 1===e.length?function(t,r){e(null==t?r:null)}:e}(n))}yt.forEach((function(e,t){yt.set(e,ut(t))})),o.functor=bt,o.xhr=_t(D),o.dsv=function(e,t){var r=new RegExp('["'+e+"\n]"),n=e.charCodeAt(0);function a(e,r,n){arguments.length<3&&(n=r,r=null);var a=xt(e,t,null==r?o:i(r),n);return a.row=function(e){return arguments.length?a.response(null==(r=e)?o:i(e)):r},a}function o(e){return a.parse(e.responseText)}function i(e){return function(t){return a.parse(t.responseText,e)}}function l(t){return t.map(s).join(e)}function s(e){return r.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}return a.parse=function(e,t){var r;return a.parseRows(e,(function(e,n){if(r)return r(e,n-1);var a=new Function("d","return {"+e.map((function(e,t){return JSON.stringify(e)+": d["+t+"]"})).join(",")+"}");r=t?function(e,r){return t(a(e),r)}:a}))},a.parseRows=function(e,t){var r,a,o={},i={},l=[],s=e.length,u=0,c=0;function f(){if(u>=s)return i;if(a)return a=!1,o;var t=u;if(34===e.charCodeAt(t)){for(var r=t;r++<s;)if(34===e.charCodeAt(r)){if(34!==e.charCodeAt(r+1))break;++r}return u=r+2,13===(l=e.charCodeAt(r+1))?(a=!0,10===e.charCodeAt(r+2)&&++u):10===l&&(a=!0),e.slice(t+1,r).replace(/""/g,'"')}for(;u<s;){var l,c=1;if(10===(l=e.charCodeAt(u++)))a=!0;else if(13===l)a=!0,10===e.charCodeAt(u)&&(++u,++c);else if(l!==n)continue;return e.slice(t,u-c)}return e.slice(t)}for(;(r=f())!==i;){for(var p=[];r!==o&&r!==i;)p.push(r),r=f();t&&null==(p=t(p,c++))||l.push(p)}return l},a.format=function(t){if(Array.isArray(t[0]))return a.formatRows(t);var r=new L,n=[];return t.forEach((function(e){for(var t in e)r.has(t)||n.push(r.add(t))})),[n.map(s).join(e)].concat(t.map((function(t){return n.map((function(e){return s(t[e])})).join(e)}))).join("\n")},a.formatRows=function(e){return e.map(l).join("\n")},a},o.csv=o.dsv(",","text/csv"),o.tsv=o.dsv("\t","text/tab-separated-values");var wt,Tt,kt,Mt,Et=this[R(this,"requestAnimationFrame")]||function(e){setTimeout(e,17)};function Ct(e,t,r){var n=arguments.length;n<2&&(t=0),n<3&&(r=Date.now());var a={c:e,t:r+t,n:null};return Tt?Tt.n=a:wt=a,Tt=a,kt||(Mt=clearTimeout(Mt),kt=1,Et(St)),a}function St(){var e=At(),t=Ot()-e;t>24?(isFinite(t)&&(clearTimeout(Mt),Mt=setTimeout(St,t)),kt=0):(kt=1,Et(St))}function At(){for(var e=Date.now(),t=wt;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function Ot(){for(var e,t=wt,r=1/0;t;)t.c?(t.t<r&&(r=t.t),t=(e=t).n):t=e?e.n=t.n:wt=t.n;return Tt=e,r}function Pt(e,t){return t-(e?Math.ceil(Math.log(e)/Math.LN10):1)}o.timer=function(){Ct.apply(this,arguments)},o.timer.flush=function(){At(),Ot()},o.round=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)};var Lt=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"].map((function(e,t){var r=Math.pow(10,3*w(8-t));return{scale:t>8?function(e){return e/r}:function(e){return e*r},symbol:e}}));function Dt(e){var t=e.decimal,r=e.thousands,n=e.grouping,a=e.currency,i=n&&r?function(e,t){for(var a=e.length,o=[],i=0,l=n[0],s=0;a>0&&l>0&&(s+l+1>t&&(l=Math.max(1,t-s)),o.push(e.substring(a-=l,a+l)),!((s+=l+1)>t));)l=n[i=(i+1)%n.length];return o.reverse().join(r)}:D;return function(e){var r=It.exec(e),n=r[1]||" ",l=r[2]||">",s=r[3]||"-",u=r[4]||"",c=r[5],f=+r[6],p=r[7],d=r[8],h=r[9],v=1,m="",g="",y=!1,b=!0;switch(d&&(d=+d.substring(1)),(c||"0"===n&&"="===l)&&(c=n="0",l="="),h){case"n":p=!0,h="g";break;case"%":v=100,g="%",h="f";break;case"p":v=100,g="%",h="r";break;case"b":case"o":case"x":case"X":"#"===u&&(m="0"+h.toLowerCase());case"c":b=!1;case"d":y=!0,d=0;break;case"s":v=-1,h="r"}"$"===u&&(m=a[0],g=a[1]),"r"!=h||d||(h="g"),null!=d&&("g"==h?d=Math.max(1,Math.min(21,d)):"e"!=h&&"f"!=h||(d=Math.max(0,Math.min(20,d)))),h=Rt.get(h)||jt;var _=c&&p;return function(e){var r=g;if(y&&e%1)return"";var a=e<0||0===e&&1/e<0?(e=-e,"-"):"-"===s?"":s;if(v<0){var u=o.formatPrefix(e,d);e=u.scale(e),r=u.symbol+g}else e*=v;var x,w,T=(e=h(e,d)).lastIndexOf(".");if(T<0){var k=b?e.lastIndexOf("e"):-1;k<0?(x=e,w=""):(x=e.substring(0,k),w=e.substring(k))}else x=e.substring(0,T),w=t+e.substring(T+1);!c&&p&&(x=i(x,1/0));var M=m.length+x.length+w.length+(_?0:a.length),E=M<f?new Array(M=f-M+1).join(n):"";return _&&(x=i(E+x,E.length?f-w.length:1/0)),a+=m,e=x+w,("<"===l?a+e+E:">"===l?E+a+e:"^"===l?E.substring(0,M>>=1)+a+e+E.substring(M):a+(_?e:E+e))+r}}}o.formatPrefix=function(e,t){var r=0;return(e=+e)&&(e<0&&(e*=-1),t&&(e=o.round(e,Pt(e,t))),r=1+Math.floor(1e-12+Math.log(e)/Math.LN10),r=Math.max(-24,Math.min(24,3*Math.floor((r-1)/3)))),Lt[8+r/3]};var It=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Rt=o.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,t){return e.toPrecision(t)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},r:function(e,t){return(e=o.round(e,Pt(e,t))).toFixed(Math.max(0,Math.min(20,Pt(e*(1+1e-15),t))))}});function jt(e){return e+""}var zt=o.time={},Nt=Date;function Ft(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}Ft.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(){Bt.setUTCDate.apply(this._,arguments)},setDay:function(){Bt.setUTCDay.apply(this._,arguments)},setFullYear:function(){Bt.setUTCFullYear.apply(this._,arguments)},setHours:function(){Bt.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Bt.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Bt.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Bt.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Bt.setUTCSeconds.apply(this._,arguments)},setTime:function(){Bt.setTime.apply(this._,arguments)}};var Bt=Date.prototype;function Ht(e,t,r){function n(t){var r=e(t),n=o(r,1);return t-r<n-t?r:n}function a(r){return t(r=e(new Nt(r-1)),1),r}function o(e,r){return t(e=new Nt(+e),r),e}function i(e,n,o){var i=a(e),l=[];if(o>1)for(;i<n;)r(i)%o||l.push(new Date(+i)),t(i,1);else for(;i<n;)l.push(new Date(+i)),t(i,1);return l}e.floor=e,e.round=n,e.ceil=a,e.offset=o,e.range=i;var l=e.utc=Vt(e);return l.floor=l,l.round=Vt(n),l.ceil=Vt(a),l.offset=Vt(o),l.range=function(e,t,r){try{Nt=Ft;var n=new Ft;return n._=e,i(n,t,r)}finally{Nt=Date}},e}function Vt(e){return function(t,r){try{Nt=Ft;var n=new Ft;return n._=t,e(n,r)._}finally{Nt=Date}}}function Ut(e){var t=e.dateTime,r=e.date,n=e.time,a=e.periods,i=e.days,l=e.shortDays,s=e.months,u=e.shortMonths;function c(e){var t=e.length;function r(r){for(var n,a,o,i=[],l=-1,s=0;++l<t;)37===e.charCodeAt(l)&&(i.push(e.slice(s,l)),null!=(a=qt[n=e.charAt(++l)])&&(n=e.charAt(++l)),(o=x[n])&&(n=o(r,null==a?"e"===n?" ":"0":a)),i.push(n),s=l+1);return i.push(e.slice(s,l)),i.join("")}return r.parse=function(t){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(f(r,e,t,0)!=t.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var n=null!=r.Z&&Nt!==Ft,a=new(n?Ft:Nt);return"j"in r?a.setFullYear(r.y,0,r.j):"W"in r||"U"in r?("w"in r||(r.w="W"in r?1:0),a.setFullYear(r.y,0,1),a.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(a.getDay()+5)%7:r.w+7*r.U-(a.getDay()+6)%7)):a.setFullYear(r.y,r.m,r.d),a.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),n?a._:a},r.toString=function(){return e},r}function f(e,t,r,n){for(var a,o,i,l=0,s=t.length,u=r.length;l<s;){if(n>=u)return-1;if(37===(a=t.charCodeAt(l++))){if(i=t.charAt(l++),!(o=w[i in qt?t.charAt(l++):i])||(n=o(e,r,n))<0)return-1}else if(a!=r.charCodeAt(n++))return-1}return n}c.utc=function(e){var t=c(e);function r(e){try{var r=new(Nt=Ft);return r._=e,t(r)}finally{Nt=Date}}return r.parse=function(e){try{Nt=Ft;var r=t.parse(e);return r&&r._}finally{Nt=Date}},r.toString=t.toString,r},c.multi=c.utc.multi=fr;var p=o.map(),d=Kt(i),h=Xt(i),v=Kt(l),m=Xt(l),g=Kt(s),y=Xt(s),b=Kt(u),_=Xt(u);a.forEach((function(e,t){p.set(e.toLowerCase(),t)}));var x={a:function(e){return l[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:c(t),d:function(e,t){return Yt(e.getDate(),t,2)},e:function(e,t){return Yt(e.getDate(),t,2)},H:function(e,t){return Yt(e.getHours(),t,2)},I:function(e,t){return Yt(e.getHours()%12||12,t,2)},j:function(e,t){return Yt(1+zt.dayOfYear(e),t,3)},L:function(e,t){return Yt(e.getMilliseconds(),t,3)},m:function(e,t){return Yt(e.getMonth()+1,t,2)},M:function(e,t){return Yt(e.getMinutes(),t,2)},p:function(e){return a[+(e.getHours()>=12)]},S:function(e,t){return Yt(e.getSeconds(),t,2)},U:function(e,t){return Yt(zt.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return Yt(zt.mondayOfYear(e),t,2)},x:c(r),X:c(n),y:function(e,t){return Yt(e.getFullYear()%100,t,2)},Y:function(e,t){return Yt(e.getFullYear()%1e4,t,4)},Z:ur,"%":function(){return"%"}},w={a:function(e,t,r){v.lastIndex=0;var n=v.exec(t.slice(r));return n?(e.w=m.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(e,t,r){d.lastIndex=0;var n=d.exec(t.slice(r));return n?(e.w=h.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(e,t,r){b.lastIndex=0;var n=b.exec(t.slice(r));return n?(e.m=_.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(e,t,r){g.lastIndex=0;var n=g.exec(t.slice(r));return n?(e.m=y.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,t,r){return f(e,x.c.toString(),t,r)},d:nr,e:nr,H:or,I:or,j:ar,L:sr,m:rr,M:ir,p:function(e,t,r){var n=p.get(t.slice(r,r+=2).toLowerCase());return null==n?-1:(e.p=n,r)},S:lr,U:Jt,w:Zt,W:$t,x:function(e,t,r){return f(e,x.x.toString(),t,r)},X:function(e,t,r){return f(e,x.X.toString(),t,r)},y:er,Y:Qt,Z:tr,"%":cr};return c}zt.year=Ht((function(e){return(e=zt.day(e)).setMonth(0,1),e}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e){return e.getFullYear()})),zt.years=zt.year.range,zt.years.utc=zt.year.utc.range,zt.day=Ht((function(e){var t=new Nt(2e3,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e){return e.getDate()-1})),zt.days=zt.day.range,zt.days.utc=zt.day.utc.range,zt.dayOfYear=function(e){var t=zt.year(e);return Math.floor((e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach((function(e,t){t=7-t;var r=zt[e]=Ht((function(e){return(e=zt.day(e)).setDate(e.getDate()-(e.getDay()+t)%7),e}),(function(e,t){e.setDate(e.getDate()+7*Math.floor(t))}),(function(e){var r=zt.year(e).getDay();return Math.floor((zt.dayOfYear(e)+(r+t)%7)/7)-(r!==t)}));zt[e+"s"]=r.range,zt[e+"s"].utc=r.utc.range,zt[e+"OfYear"]=function(e){var r=zt.year(e).getDay();return Math.floor((zt.dayOfYear(e)+(r+t)%7)/7)}})),zt.week=zt.sunday,zt.weeks=zt.sunday.range,zt.weeks.utc=zt.sunday.utc.range,zt.weekOfYear=zt.sundayOfYear;var qt={"-":"",_:" ",0:"0"},Gt=/^\s*\d+/,Wt=/^%/;function Yt(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",o=a.length;return n+(o<r?new Array(r-o+1).join(t)+a:a)}function Kt(e){return new RegExp("^(?:"+e.map(o.requote).join("|")+")","i")}function Xt(e){for(var t=new k,r=-1,n=e.length;++r<n;)t.set(e[r].toLowerCase(),r);return t}function Zt(e,t,r){Gt.lastIndex=0;var n=Gt.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function Jt(e,t,r){Gt.lastIndex=0;var n=Gt.exec(t.slice(r));return n?(e.U=+n[0],r+n[0].length):-1}function $t(e,t,r){Gt.lastIndex=0;var n=Gt.exec(t.slice(r));return n?(e.W=+n[0],r+n[0].length):-1}function Qt(e,t,r){Gt.lastIndex=0;var n=Gt.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function er(e,t,r){Gt.lastIndex=0;var n=Gt.exec(t.slice(r,r+2));return n?(e.y=function(e){return e+(e>68?1900:2e3)}(+n[0]),r+n[0].length):-1}function tr(e,t,r){return/^[+-]\d{4}$/.test(t=t.slice(r,r+5))?(e.Z=-t,r+5):-1}function rr(e,t,r){Gt.lastIndex=0;var n=Gt.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function nr(e,t,r){Gt.lastIndex=0;var n=Gt.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function ar(e,t,r){Gt.lastIndex=0;var n=Gt.exec(t.slice(r,r+3));return n?(e.j=+n[0],r+n[0].length):-1}function or(e,t,r){Gt.lastIndex=0;var n=Gt.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function ir(e,t,r){Gt.lastIndex=0;var n=Gt.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function lr(e,t,r){Gt.lastIndex=0;var n=Gt.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function sr(e,t,r){Gt.lastIndex=0;var n=Gt.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function ur(e){var t=e.getTimezoneOffset(),r=t>0?"-":"+",n=w(t)/60|0,a=w(t)%60;return r+Yt(n,"0",2)+Yt(a,"0",2)}function cr(e,t,r){Wt.lastIndex=0;var n=Wt.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function fr(e){for(var t=e.length,r=-1;++r<t;)e[r][0]=this(e[r][0]);return function(t){for(var r=0,n=e[r];!n[1](t);)n=e[++r];return n[0](t)}}o.locale=function(e){return{numberFormat:Dt(e),timeFormat:Ut(e)}};var pr=o.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(){}o.format=pr.numberFormat,o.geo={},dr.prototype={s:0,t:0,add:function(e){vr(e,this.t,hr),vr(hr.s,this.s,this),this.s?this.t+=hr.t:this.s=hr.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var hr=new dr;function vr(e,t,r){var n=r.s=e+t,a=n-e,o=n-a;r.t=e-o+(t-a)}function mr(e,t){e&&yr.hasOwnProperty(e.type)&&yr[e.type](e,t)}o.geo.stream=function(e,t){e&&gr.hasOwnProperty(e.type)?gr[e.type](e,t):mr(e,t)};var gr={Feature:function(e,t){mr(e.geometry,t)},FeatureCollection:function(e,t){for(var r=e.features,n=-1,a=r.length;++n<a;)mr(r[n].geometry,t)}},yr={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var r=e.coordinates,n=-1,a=r.length;++n<a;)e=r[n],t.point(e[0],e[1],e[2])},LineString:function(e,t){br(e.coordinates,t,0)},MultiLineString:function(e,t){for(var r=e.coordinates,n=-1,a=r.length;++n<a;)br(r[n],t,0)},Polygon:function(e,t){_r(e.coordinates,t)},MultiPolygon:function(e,t){for(var r=e.coordinates,n=-1,a=r.length;++n<a;)_r(r[n],t)},GeometryCollection:function(e,t){for(var r=e.geometries,n=-1,a=r.length;++n<a;)mr(r[n],t)}};function br(e,t,r){var n,a=-1,o=e.length-r;for(t.lineStart();++a<o;)n=e[a],t.point(n[0],n[1],n[2]);t.lineEnd()}function _r(e,t){var r=-1,n=e.length;for(t.polygonStart();++r<n;)br(e[r],t,1);t.polygonEnd()}o.geo.area=function(e){return xr=0,o.geo.stream(e,Ir),xr};var xr,wr,Tr,kr,Mr,Er,Cr,Sr,Ar,Or,Pr,Lr,Dr=new dr,Ir={sphere:function(){xr+=4*Se},point:z,lineStart:z,lineEnd:z,polygonStart:function(){Dr.reset(),Ir.lineStart=Rr},polygonEnd:function(){var e=2*Dr;xr+=e<0?4*Se+e:e,Ir.lineStart=Ir.lineEnd=Ir.point=z}};function Rr(){var e,t,r,n,a;function o(e,t){t=t*Le/2+Se/4;var o=(e*=Le)-r,i=o>=0?1:-1,l=i*o,s=Math.cos(t),u=Math.sin(t),c=a*u,f=n*s+c*Math.cos(l),p=c*i*Math.sin(l);Dr.add(Math.atan2(p,f)),r=e,n=s,a=u}Ir.point=function(i,l){Ir.point=o,r=(e=i)*Le,n=Math.cos(l=(t=l)*Le/2+Se/4),a=Math.sin(l)},Ir.lineEnd=function(){o(e,t)}}function jr(e){var t=e[0],r=e[1],n=Math.cos(r);return[n*Math.cos(t),n*Math.sin(t),Math.sin(r)]}function zr(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Nr(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Fr(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Br(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Hr(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function Vr(e){return[Math.atan2(e[1],e[0]),ze(e[2])]}function Ur(e,t){return w(e[0]-t[0])<Ee&&w(e[1]-t[1])<Ee}o.geo.bounds=function(){var e,t,r,n,a,i,l,s,u,c,f,p={point:d,lineStart:v,lineEnd:m,polygonStart:function(){p.point=g,p.lineStart=y,p.lineEnd=b,u=0,Ir.polygonStart()},polygonEnd:function(){Ir.polygonEnd(),p.point=d,p.lineStart=v,p.lineEnd=m,Dr<0?(e=-(r=180),t=-(n=90)):u>Ee?n=90:u<-Ee&&(t=-90),f[0]=e,f[1]=r}};function d(a,o){c.push(f=[e=a,r=a]),o<t&&(t=o),o>n&&(n=o)}function h(o,i){var l=jr([o*Le,i*Le]);if(s){var u=Nr(s,l),c=Nr([u[1],-u[0],0],u);Hr(c),c=Vr(c);var f=o-a,p=f>0?1:-1,h=c[0]*De*p,v=w(f)>180;if(v^(p*a<h&&h<p*o))(m=c[1]*De)>n&&(n=m);else if(v^(p*a<(h=(h+360)%360-180)&&h<p*o)){var m;(m=-c[1]*De)<t&&(t=m)}else i<t&&(t=i),i>n&&(n=i);v?o<a?_(e,o)>_(e,r)&&(r=o):_(o,r)>_(e,r)&&(e=o):r>=e?(o<e&&(e=o),o>r&&(r=o)):o>a?_(e,o)>_(e,r)&&(r=o):_(o,r)>_(e,r)&&(e=o)}else d(o,i);s=l,a=o}function v(){p.point=h}function m(){f[0]=e,f[1]=r,p.point=d,s=null}function g(e,t){if(s){var r=e-a;u+=w(r)>180?r+(r>0?360:-360):r}else i=e,l=t;Ir.point(e,t),h(e,t)}function y(){Ir.lineStart()}function b(){g(i,l),Ir.lineEnd(),w(u)>Ee&&(e=-(r=180)),f[0]=e,f[1]=r,s=null}function _(e,t){return(t-=e)<0?t+360:t}function x(e,t){return e[0]-t[0]}function T(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}return function(a){if(n=r=-(e=t=1/0),c=[],o.geo.stream(a,p),u=c.length){c.sort(x);for(var i=1,l=[v=c[0]];i<u;++i)T((d=c[i])[0],v)||T(d[1],v)?(_(v[0],d[1])>_(v[0],v[1])&&(v[1]=d[1]),_(d[0],v[1])>_(v[0],v[1])&&(v[0]=d[0])):l.push(v=d);for(var s,u,d,h=-1/0,v=(i=0,l[u=l.length-1]);i<=u;v=d,++i)d=l[i],(s=_(v[1],d[0]))>h&&(h=s,e=d[0],r=v[1])}return c=f=null,e===1/0||t===1/0?[[NaN,NaN],[NaN,NaN]]:[[e,t],[r,n]]}}(),o.geo.centroid=function(e){wr=Tr=kr=Mr=Er=Cr=Sr=Ar=Or=Pr=Lr=0,o.geo.stream(e,qr);var t=Or,r=Pr,n=Lr,a=t*t+r*r+n*n;return a<Ce&&(t=Cr,r=Sr,n=Ar,Tr<Ee&&(t=kr,r=Mr,n=Er),(a=t*t+r*r+n*n)<Ce)?[NaN,NaN]:[Math.atan2(r,t)*De,ze(n/Math.sqrt(a))*De]};var qr={sphere:z,point:Gr,lineStart:Yr,lineEnd:Kr,polygonStart:function(){qr.lineStart=Xr},polygonEnd:function(){qr.lineStart=Yr}};function Gr(e,t){e*=Le;var r=Math.cos(t*=Le);Wr(r*Math.cos(e),r*Math.sin(e),Math.sin(t))}function Wr(e,t,r){++wr,kr+=(e-kr)/wr,Mr+=(t-Mr)/wr,Er+=(r-Er)/wr}function Yr(){var e,t,r;function n(n,a){n*=Le;var o=Math.cos(a*=Le),i=o*Math.cos(n),l=o*Math.sin(n),s=Math.sin(a),u=Math.atan2(Math.sqrt((u=t*s-r*l)*u+(u=r*i-e*s)*u+(u=e*l-t*i)*u),e*i+t*l+r*s);Tr+=u,Cr+=u*(e+(e=i)),Sr+=u*(t+(t=l)),Ar+=u*(r+(r=s)),Wr(e,t,r)}qr.point=function(a,o){a*=Le;var i=Math.cos(o*=Le);e=i*Math.cos(a),t=i*Math.sin(a),r=Math.sin(o),qr.point=n,Wr(e,t,r)}}function Kr(){qr.point=Gr}function Xr(){var e,t,r,n,a;function o(e,t){e*=Le;var o=Math.cos(t*=Le),i=o*Math.cos(e),l=o*Math.sin(e),s=Math.sin(t),u=n*s-a*l,c=a*i-r*s,f=r*l-n*i,p=Math.sqrt(u*u+c*c+f*f),d=r*i+n*l+a*s,h=p&&-je(d)/p,v=Math.atan2(p,d);Or+=h*u,Pr+=h*c,Lr+=h*f,Tr+=v,Cr+=v*(r+(r=i)),Sr+=v*(n+(n=l)),Ar+=v*(a+(a=s)),Wr(r,n,a)}qr.point=function(i,l){e=i,t=l,qr.point=o,i*=Le;var s=Math.cos(l*=Le);r=s*Math.cos(i),n=s*Math.sin(i),a=Math.sin(l),Wr(r,n,a)},qr.lineEnd=function(){o(e,t),qr.lineEnd=Kr,qr.point=Gr}}function Zr(e,t){function r(r,n){return r=e(r,n),t(r[0],r[1])}return e.invert&&t.invert&&(r.invert=function(r,n){return(r=t.invert(r,n))&&e.invert(r[0],r[1])}),r}function Jr(){return!0}function $r(e,t,r,n,a){var o=[],i=[];if(e.forEach((function(e){if(!((t=e.length-1)<=0)){var t,r=e[0],n=e[t];if(Ur(r,n)){a.lineStart();for(var l=0;l<t;++l)a.point((r=e[l])[0],r[1]);a.lineEnd()}else{var s=new en(r,e,null,!0),u=new en(r,null,s,!1);s.o=u,o.push(s),i.push(u),s=new en(n,e,null,!1),u=new en(n,null,s,!0),s.o=u,o.push(s),i.push(u)}}})),i.sort(t),Qr(o),Qr(i),o.length){for(var l=0,s=r,u=i.length;l<u;++l)i[l].e=s=!s;for(var c,f,p=o[0];;){for(var d=p,h=!0;d.v;)if((d=d.n)===p)return;c=d.z,a.lineStart();do{if(d.v=d.o.v=!0,d.e){if(h)for(l=0,u=c.length;l<u;++l)a.point((f=c[l])[0],f[1]);else n(d.x,d.n.x,1,a);d=d.n}else{if(h)for(l=(c=d.p.z).length-1;l>=0;--l)a.point((f=c[l])[0],f[1]);else n(d.x,d.p.x,-1,a);d=d.p}c=(d=d.o).z,h=!h}while(!d.v);a.lineEnd()}}}function Qr(e){if(t=e.length){for(var t,r,n=0,a=e[0];++n<t;)a.n=r=e[n],r.p=a,a=r;a.n=r=e[0],r.p=a}}function en(e,t,r,n){this.x=e,this.z=t,this.o=r,this.e=n,this.v=!1,this.n=this.p=null}function tn(e,t,r,n){return function(a,i){var l,s=t(i),u=a.invert(n[0],n[1]),c={point:f,lineStart:d,lineEnd:h,polygonStart:function(){c.point=_,c.lineStart=x,c.lineEnd=w,l=[],v=[]},polygonEnd:function(){c.point=f,c.lineStart=d,c.lineEnd=h,l=o.merge(l);var e=function(e,t){var r=e[0],n=e[1],a=[Math.sin(r),-Math.cos(r),0],o=0,i=0;Dr.reset();for(var l=0,s=t.length;l<s;++l){var u=t[l],c=u.length;if(c)for(var f=u[0],p=f[0],d=f[1]/2+Se/4,h=Math.sin(d),v=Math.cos(d),m=1;;){m===c&&(m=0);var g=(e=u[m])[0],y=e[1]/2+Se/4,b=Math.sin(y),_=Math.cos(y),x=g-p,w=x>=0?1:-1,T=w*x,k=T>Se,M=h*b;if(Dr.add(Math.atan2(M*w*Math.sin(T),v*_+M*Math.cos(T))),o+=k?x+w*Ae:x,k^p>=r^g>=r){var E=Nr(jr(f),jr(e));Hr(E);var C=Nr(a,E);Hr(C);var S=(k^x>=0?-1:1)*ze(C[2]);(n>S||n===S&&(E[0]||E[1]))&&(i+=k^x>=0?1:-1)}if(!m++)break;p=g,h=b,v=_,f=e}}return(o<-Ee||o<Ee&&Dr<-Ee)^1&i}(u,v);l.length?(b||(i.polygonStart(),b=!0),$r(l,an,e,r,i)):e&&(b||(i.polygonStart(),b=!0),i.lineStart(),r(null,null,1,i),i.lineEnd()),b&&(i.polygonEnd(),b=!1),l=v=null},sphere:function(){i.polygonStart(),i.lineStart(),r(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function f(t,r){var n=a(t,r);e(t=n[0],r=n[1])&&i.point(t,r)}function p(e,t){var r=a(e,t);s.point(r[0],r[1])}function d(){c.point=p,s.lineStart()}function h(){c.point=f,s.lineEnd()}var v,m,g=nn(),y=t(g),b=!1;function _(e,t){m.push([e,t]);var r=a(e,t);y.point(r[0],r[1])}function x(){y.lineStart(),m=[]}function w(){_(m[0][0],m[0][1]),y.lineEnd();var e,t=y.clean(),r=g.buffer(),n=r.length;if(m.pop(),v.push(m),m=null,n)if(1&t){var a,o=-1;if((n=(e=r[0]).length-1)>0){for(b||(i.polygonStart(),b=!0),i.lineStart();++o<n;)i.point((a=e[o])[0],a[1]);i.lineEnd()}}else n>1&&2&t&&r.push(r.pop().concat(r.shift())),l.push(r.filter(rn))}return c}}function rn(e){return e.length>1}function nn(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(t,r){e.push([t,r])},lineEnd:z,buffer:function(){var r=t;return t=[],e=null,r},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function an(e,t){return((e=e.x)[0]<0?e[1]-Pe-Ee:Pe-e[1])-((t=t.x)[0]<0?t[1]-Pe-Ee:Pe-t[1])}var on=tn(Jr,(function(e){var t,r=NaN,n=NaN,a=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,i){var l=o>0?Se:-Se,s=w(o-r);w(s-Se)<Ee?(e.point(r,n=(n+i)/2>0?Pe:-Pe),e.point(a,n),e.lineEnd(),e.lineStart(),e.point(l,n),e.point(o,n),t=0):a!==l&&s>=Se&&(w(r-a)<Ee&&(r-=a*Ee),w(o-l)<Ee&&(o-=l*Ee),n=function(e,t,r,n){var a,o,i=Math.sin(e-r);return w(i)>Ee?Math.atan((Math.sin(t)*(o=Math.cos(n))*Math.sin(r)-Math.sin(n)*(a=Math.cos(t))*Math.sin(e))/(a*o*i)):(t+n)/2}(r,n,o,i),e.point(a,n),e.lineEnd(),e.lineStart(),e.point(l,n),t=0),e.point(r=o,n=i),a=l},lineEnd:function(){e.lineEnd(),r=n=NaN},clean:function(){return 2-t}}}),(function(e,t,r,n){var a;if(null==e)a=r*Pe,n.point(-Se,a),n.point(0,a),n.point(Se,a),n.point(Se,0),n.point(Se,-a),n.point(0,-a),n.point(-Se,-a),n.point(-Se,0),n.point(-Se,a);else if(w(e[0]-t[0])>Ee){var o=e[0]<t[0]?Se:-Se;a=r*o/2,n.point(-o,a),n.point(0,a),n.point(o,a)}else n.point(t[0],t[1])}),[-Se,-Se/2]);function ln(e,t,r,n){return function(a){var o,i=a.a,l=a.b,s=i.x,u=i.y,c=0,f=1,p=l.x-s,d=l.y-u;if(o=e-s,p||!(o>0)){if(o/=p,p<0){if(o<c)return;o<f&&(f=o)}else if(p>0){if(o>f)return;o>c&&(c=o)}if(o=r-s,p||!(o<0)){if(o/=p,p<0){if(o>f)return;o>c&&(c=o)}else if(p>0){if(o<c)return;o<f&&(f=o)}if(o=t-u,d||!(o>0)){if(o/=d,d<0){if(o<c)return;o<f&&(f=o)}else if(d>0){if(o>f)return;o>c&&(c=o)}if(o=n-u,d||!(o<0)){if(o/=d,d<0){if(o>f)return;o>c&&(c=o)}else if(d>0){if(o<c)return;o<f&&(f=o)}return c>0&&(a.a={x:s+c*p,y:u+c*d}),f<1&&(a.b={x:s+f*p,y:u+f*d}),a}}}}}}var sn=1e9;function un(e,t,r,n){return function(s){var u,c,f,p,d,h,v,m,g,y,b,_=s,x=nn(),w=ln(e,t,r,n),T={point:E,lineStart:function(){T.point=C,c&&c.push(f=[]);y=!0,g=!1,v=m=NaN},lineEnd:function(){u&&(C(p,d),h&&g&&x.rejoin(),u.push(x.buffer()));T.point=E,g&&s.lineEnd()},polygonStart:function(){s=x,u=[],c=[],b=!0},polygonEnd:function(){s=_,u=o.merge(u);var t=function(e){for(var t=0,r=c.length,n=e[1],a=0;a<r;++a)for(var o,i=1,l=c[a],s=l.length,u=l[0];i<s;++i)o=l[i],u[1]<=n?o[1]>n&&Re(u,o,e)>0&&++t:o[1]<=n&&Re(u,o,e)<0&&--t,u=o;return 0!==t}([e,n]),r=b&&t,a=u.length;(r||a)&&(s.polygonStart(),r&&(s.lineStart(),k(null,null,1,s),s.lineEnd()),a&&$r(u,i,t,k,s),s.polygonEnd()),u=c=f=null}};function k(o,i,s,u){var c=0,f=0;if(null==o||(c=a(o,s))!==(f=a(i,s))||l(o,i)<0^s>0)do{u.point(0===c||3===c?e:r,c>1?n:t)}while((c=(c+s+4)%4)!==f);else u.point(i[0],i[1])}function M(a,o){return e<=a&&a<=r&&t<=o&&o<=n}function E(e,t){M(e,t)&&s.point(e,t)}function C(e,t){var r=M(e=Math.max(-1e9,Math.min(sn,e)),t=Math.max(-1e9,Math.min(sn,t)));if(c&&f.push([e,t]),y)p=e,d=t,h=r,y=!1,r&&(s.lineStart(),s.point(e,t));else if(r&&g)s.point(e,t);else{var n={a:{x:v,y:m},b:{x:e,y:t}};w(n)?(g||(s.lineStart(),s.point(n.a.x,n.a.y)),s.point(n.b.x,n.b.y),r||s.lineEnd(),b=!1):r&&(s.lineStart(),s.point(e,t),b=!1)}v=e,m=t,g=r}return T};function a(n,a){return w(n[0]-e)<Ee?a>0?0:3:w(n[0]-r)<Ee?a>0?2:1:w(n[1]-t)<Ee?a>0?1:0:a>0?3:2}function i(e,t){return l(e.x,t.x)}function l(e,t){var r=a(e,1),n=a(t,1);return r!==n?r-n:0===r?t[1]-e[1]:1===r?e[0]-t[0]:2===r?e[1]-t[1]:t[0]-e[0]}}function cn(e){var t=0,r=Se/3,n=In(e),a=n(t,r);return a.parallels=function(e){return arguments.length?n(t=e[0]*Se/180,r=e[1]*Se/180):[t/Se*180,r/Se*180]},a}function fn(e,t){var r=Math.sin(e),n=(r+Math.sin(t))/2,a=1+r*(2*n-r),o=Math.sqrt(a)/n;function i(e,t){var r=Math.sqrt(a-2*n*Math.sin(t))/n;return[r*Math.sin(e*=n),o-r*Math.cos(e)]}return i.invert=function(e,t){var r=o-t;return[Math.atan2(e,r)/n,ze((a-(e*e+r*r)*n*n)/(2*n))]},i}o.geo.clipExtent=function(){var e,t,r,n,a,o,i={stream:function(e){return a&&(a.valid=!1),(a=o(e)).valid=!0,a},extent:function(l){return arguments.length?(o=un(e=+l[0][0],t=+l[0][1],r=+l[1][0],n=+l[1][1]),a&&(a.valid=!1,a=null),i):[[e,t],[r,n]]}};return i.extent([[0,0],[960,500]])},(o.geo.conicEqualArea=function(){return cn(fn)}).raw=fn,o.geo.albers=function(){return o.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},o.geo.albersUsa=function(){var e,t,r,n,a=o.geo.albers(),i=o.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=o.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(t,r){e=[t,r]}};function u(a){var o=a[0],i=a[1];return e=null,t(o,i),e||(r(o,i),e)||n(o,i),e}return u.invert=function(e){var t=a.scale(),r=a.translate(),n=(e[0]-r[0])/t,o=(e[1]-r[1])/t;return(o>=.12&&o<.234&&n>=-.425&&n<-.214?i:o>=.166&&o<.234&&n>=-.214&&n<-.115?l:a).invert(e)},u.stream=function(e){var t=a.stream(e),r=i.stream(e),n=l.stream(e);return{point:function(e,a){t.point(e,a),r.point(e,a),n.point(e,a)},sphere:function(){t.sphere(),r.sphere(),n.sphere()},lineStart:function(){t.lineStart(),r.lineStart(),n.lineStart()},lineEnd:function(){t.lineEnd(),r.lineEnd(),n.lineEnd()},polygonStart:function(){t.polygonStart(),r.polygonStart(),n.polygonStart()},polygonEnd:function(){t.polygonEnd(),r.polygonEnd(),n.polygonEnd()}}},u.precision=function(e){return arguments.length?(a.precision(e),i.precision(e),l.precision(e),u):a.precision()},u.scale=function(e){return arguments.length?(a.scale(e),i.scale(.35*e),l.scale(e),u.translate(a.translate())):a.scale()},u.translate=function(e){if(!arguments.length)return a.translate();var o=a.scale(),c=+e[0],f=+e[1];return t=a.translate(e).clipExtent([[c-.455*o,f-.238*o],[c+.455*o,f+.238*o]]).stream(s).point,r=i.translate([c-.307*o,f+.201*o]).clipExtent([[c-.425*o+Ee,f+.12*o+Ee],[c-.214*o-Ee,f+.234*o-Ee]]).stream(s).point,n=l.translate([c-.205*o,f+.212*o]).clipExtent([[c-.214*o+Ee,f+.166*o+Ee],[c-.115*o-Ee,f+.234*o-Ee]]).stream(s).point,u},u.scale(1070)};var pn,dn,hn,vn,mn,gn,yn={point:z,lineStart:z,lineEnd:z,polygonStart:function(){dn=0,yn.lineStart=bn},polygonEnd:function(){yn.lineStart=yn.lineEnd=yn.point=z,pn+=w(dn/2)}};function bn(){var e,t,r,n;function a(e,t){dn+=n*e-r*t,r=e,n=t}yn.point=function(o,i){yn.point=a,e=r=o,t=n=i},yn.lineEnd=function(){a(e,t)}}var _n={point:function(e,t){e<hn&&(hn=e);e>mn&&(mn=e);t<vn&&(vn=t);t>gn&&(gn=t)},lineStart:z,lineEnd:z,polygonStart:z,polygonEnd:z};function xn(){var e=wn(4.5),t=[],r={point:n,lineStart:function(){r.point=a},lineEnd:i,polygonStart:function(){r.lineEnd=l},polygonEnd:function(){r.lineEnd=i,r.point=n},pointRadius:function(t){return e=wn(t),r},result:function(){if(t.length){var e=t.join("");return t=[],e}}};function n(r,n){t.push("M",r,",",n,e)}function a(e,n){t.push("M",e,",",n),r.point=o}function o(e,r){t.push("L",e,",",r)}function i(){r.point=n}function l(){t.push("Z")}return r}function wn(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}var Tn,kn={point:Mn,lineStart:En,lineEnd:Cn,polygonStart:function(){kn.lineStart=Sn},polygonEnd:function(){kn.point=Mn,kn.lineStart=En,kn.lineEnd=Cn}};function Mn(e,t){kr+=e,Mr+=t,++Er}function En(){var e,t;function r(r,n){var a=r-e,o=n-t,i=Math.sqrt(a*a+o*o);Cr+=i*(e+r)/2,Sr+=i*(t+n)/2,Ar+=i,Mn(e=r,t=n)}kn.point=function(n,a){kn.point=r,Mn(e=n,t=a)}}function Cn(){kn.point=Mn}function Sn(){var e,t,r,n;function a(e,t){var a=e-r,o=t-n,i=Math.sqrt(a*a+o*o);Cr+=i*(r+e)/2,Sr+=i*(n+t)/2,Ar+=i,Or+=(i=n*e-r*t)*(r+e),Pr+=i*(n+t),Lr+=3*i,Mn(r=e,n=t)}kn.point=function(o,i){kn.point=a,Mn(e=r=o,t=n=i)},kn.lineEnd=function(){a(e,t)}}function An(e){var t=4.5,r={point:n,lineStart:function(){r.point=a},lineEnd:i,polygonStart:function(){r.lineEnd=l},polygonEnd:function(){r.lineEnd=i,r.point=n},pointRadius:function(e){return t=e,r},result:z};function n(r,n){e.moveTo(r+t,n),e.arc(r,n,t,0,Ae)}function a(t,n){e.moveTo(t,n),r.point=o}function o(t,r){e.lineTo(t,r)}function i(){r.point=n}function l(){e.closePath()}return r}function On(e){var t=.5,r=Math.cos(30*Le),n=16;function a(e){return(n?i:o)(e)}function o(t){return Ln(t,(function(r,n){r=e(r,n),t.point(r[0],r[1])}))}function i(t){var r,a,o,i,s,u,c,f,p,d,h,v,m={point:g,lineStart:y,lineEnd:_,polygonStart:function(){t.polygonStart(),m.lineStart=x},polygonEnd:function(){t.polygonEnd(),m.lineStart=y}};function g(r,n){r=e(r,n),t.point(r[0],r[1])}function y(){f=NaN,m.point=b,t.lineStart()}function b(r,a){var o=jr([r,a]),i=e(r,a);l(f,p,c,d,h,v,f=i[0],p=i[1],c=r,d=o[0],h=o[1],v=o[2],n,t),t.point(f,p)}function _(){m.point=g,t.lineEnd()}function x(){y(),m.point=w,m.lineEnd=T}function w(e,t){b(r=e,t),a=f,o=p,i=d,s=h,u=v,m.point=b}function T(){l(f,p,c,d,h,v,a,o,r,i,s,u,n,t),m.lineEnd=_,_()}return m}function l(n,a,o,i,s,u,c,f,p,d,h,v,m,g){var y=c-n,b=f-a,_=y*y+b*b;if(_>4*t&&m--){var x=i+d,T=s+h,k=u+v,M=Math.sqrt(x*x+T*T+k*k),E=Math.asin(k/=M),C=w(w(k)-1)<Ee||w(o-p)<Ee?(o+p)/2:Math.atan2(T,x),S=e(C,E),A=S[0],O=S[1],P=A-n,L=O-a,D=b*P-y*L;(D*D/_>t||w((y*P+b*L)/_-.5)>.3||i*d+s*h+u*v<r)&&(l(n,a,o,i,s,u,A,O,C,x/=M,T/=M,k,m,g),g.point(A,O),l(A,O,C,x,T,k,c,f,p,d,h,v,m,g))}}return a.precision=function(e){return arguments.length?(n=(t=e*e)>0&&16,a):Math.sqrt(t)},a}function Pn(e){this.stream=e}function Ln(e,t){return{point:t,sphere:function(){e.sphere()},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}}}function Dn(e){return In((function(){return e}))()}function In(e){var t,r,n,a,i,l,s=On((function(e,r){return[(e=t(e,r))[0]*u+a,i-e[1]*u]})),u=150,c=480,f=250,p=0,d=0,h=0,v=0,m=0,g=on,y=D,b=null,_=null;function x(e){return[(e=n(e[0]*Le,e[1]*Le))[0]*u+a,i-e[1]*u]}function T(e){return(e=n.invert((e[0]-a)/u,(i-e[1])/u))&&[e[0]*De,e[1]*De]}function k(){n=Zr(r=Nn(h,v,m),t);var e=t(p,d);return a=c-e[0]*u,i=f+e[1]*u,M()}function M(){return l&&(l.valid=!1,l=null),x}return x.stream=function(e){return l&&(l.valid=!1),(l=Rn(g(r,s(y(e))))).valid=!0,l},x.clipAngle=function(e){return arguments.length?(g=null==e?(b=e,on):function(e){var t=Math.cos(e),r=t>0,n=w(t)>Ee;return tn(a,(function(e){var t,l,s,u,c;return{lineStart:function(){u=s=!1,c=1},point:function(f,p){var d,h=[f,p],v=a(f,p),m=r?v?0:i(f,p):v?i(f+(f<0?Se:-Se),p):0;if(!t&&(u=s=v)&&e.lineStart(),v!==s&&(d=o(t,h),(Ur(t,d)||Ur(h,d))&&(h[0]+=Ee,h[1]+=Ee,v=a(h[0],h[1]))),v!==s)c=0,v?(e.lineStart(),d=o(h,t),e.point(d[0],d[1])):(d=o(t,h),e.point(d[0],d[1]),e.lineEnd()),t=d;else if(n&&t&&r^v){var g;m&l||!(g=o(h,t,!0))||(c=0,r?(e.lineStart(),e.point(g[0][0],g[0][1]),e.point(g[1][0],g[1][1]),e.lineEnd()):(e.point(g[1][0],g[1][1]),e.lineEnd(),e.lineStart(),e.point(g[0][0],g[0][1])))}!v||t&&Ur(t,h)||e.point(h[0],h[1]),t=h,s=v,l=m},lineEnd:function(){s&&e.lineEnd(),t=null},clean:function(){return c|(u&&s)<<1}}}),Vn(e,6*Le),r?[0,-e]:[-Se,e-Se]);function a(e,r){return Math.cos(e)*Math.cos(r)>t}function o(e,r,n){var a=[1,0,0],o=Nr(jr(e),jr(r)),i=zr(o,o),l=o[0],s=i-l*l;if(!s)return!n&&e;var u=t*i/s,c=-t*l/s,f=Nr(a,o),p=Br(a,u);Fr(p,Br(o,c));var d=f,h=zr(p,d),v=zr(d,d),m=h*h-v*(zr(p,p)-1);if(!(m<0)){var g=Math.sqrt(m),y=Br(d,(-h-g)/v);if(Fr(y,p),y=Vr(y),!n)return y;var b,_=e[0],x=r[0],T=e[1],k=r[1];x<_&&(b=_,_=x,x=b);var M=x-_,E=w(M-Se)<Ee;if(!E&&k<T&&(b=T,T=k,k=b),E||M<Ee?E?T+k>0^y[1]<(w(y[0]-_)<Ee?T:k):T<=y[1]&&y[1]<=k:M>Se^(_<=y[0]&&y[0]<=x)){var C=Br(d,(-h+g)/v);return Fr(C,p),[y,Vr(C)]}}}function i(t,n){var a=r?e:Se-e,o=0;return t<-a?o|=1:t>a&&(o|=2),n<-a?o|=4:n>a&&(o|=8),o}}((b=+e)*Le),M()):b},x.clipExtent=function(e){return arguments.length?(_=e,y=e?un(e[0][0],e[0][1],e[1][0],e[1][1]):D,M()):_},x.scale=function(e){return arguments.length?(u=+e,k()):u},x.translate=function(e){return arguments.length?(c=+e[0],f=+e[1],k()):[c,f]},x.center=function(e){return arguments.length?(p=e[0]%360*Le,d=e[1]%360*Le,k()):[p*De,d*De]},x.rotate=function(e){return arguments.length?(h=e[0]%360*Le,v=e[1]%360*Le,m=e.length>2?e[2]%360*Le:0,k()):[h*De,v*De,m*De]},o.rebind(x,s,"precision"),function(){return t=e.apply(this,arguments),x.invert=t.invert&&T,k()}}function Rn(e){return Ln(e,(function(t,r){e.point(t*Le,r*Le)}))}function jn(e,t){return[e,t]}function zn(e,t){return[e>Se?e-Ae:e<-Se?e+Ae:e,t]}function Nn(e,t,r){return e?t||r?Zr(Bn(e),Hn(t,r)):Bn(e):t||r?Hn(t,r):zn}function Fn(e){return function(t,r){return[(t+=e)>Se?t-Ae:t<-Se?t+Ae:t,r]}}function Bn(e){var t=Fn(e);return t.invert=Fn(-e),t}function Hn(e,t){var r=Math.cos(e),n=Math.sin(e),a=Math.cos(t),o=Math.sin(t);function i(e,t){var i=Math.cos(t),l=Math.cos(e)*i,s=Math.sin(e)*i,u=Math.sin(t),c=u*r+l*n;return[Math.atan2(s*a-c*o,l*r-u*n),ze(c*a+s*o)]}return i.invert=function(e,t){var i=Math.cos(t),l=Math.cos(e)*i,s=Math.sin(e)*i,u=Math.sin(t),c=u*a-s*o;return[Math.atan2(s*a+u*o,l*r+c*n),ze(c*r-l*n)]},i}function Vn(e,t){var r=Math.cos(e),n=Math.sin(e);return function(a,o,i,l){var s=i*t;null!=a?(a=Un(r,a),o=Un(r,o),(i>0?a<o:a>o)&&(a+=i*Ae)):(a=e+i*Ae,o=e-.5*s);for(var u,c=a;i>0?c>o:c<o;c-=s)l.point((u=Vr([r,-n*Math.cos(c),-n*Math.sin(c)]))[0],u[1])}}function Un(e,t){var r=jr(t);r[0]-=e,Hr(r);var n=je(-r[1]);return((-r[2]<0?-n:n)+2*Math.PI-Ee)%(2*Math.PI)}function qn(e,t,r){var n=o.range(e,t-Ee,r).concat(t);return function(e){return n.map((function(t){return[e,t]}))}}function Gn(e,t,r){var n=o.range(e,t-Ee,r).concat(t);return function(e){return n.map((function(t){return[t,e]}))}}function Wn(e){return e.source}function Yn(e){return e.target}o.geo.path=function(){var e,t,r,n,a,i=4.5;function l(e){return e&&("function"===typeof i&&n.pointRadius(+i.apply(this,arguments)),a&&a.valid||(a=r(n)),o.geo.stream(e,a)),n.result()}function s(){return a=null,l}return l.area=function(e){return pn=0,o.geo.stream(e,r(yn)),pn},l.centroid=function(e){return kr=Mr=Er=Cr=Sr=Ar=Or=Pr=Lr=0,o.geo.stream(e,r(kn)),Lr?[Or/Lr,Pr/Lr]:Ar?[Cr/Ar,Sr/Ar]:Er?[kr/Er,Mr/Er]:[NaN,NaN]},l.bounds=function(e){return mn=gn=-(hn=vn=1/0),o.geo.stream(e,r(_n)),[[hn,vn],[mn,gn]]},l.projection=function(t){return arguments.length?(r=(e=t)?t.stream||function(e){var t=On((function(t,r){return e([t*De,r*De])}));return function(e){return Rn(t(e))}}(t):D,s()):e},l.context=function(e){return arguments.length?(n=null==(t=e)?new xn:new An(e),"function"!==typeof i&&n.pointRadius(i),s()):t},l.pointRadius=function(e){return arguments.length?(i="function"===typeof e?e:(n.pointRadius(+e),+e),l):i},l.projection(o.geo.albersUsa()).context(null)},o.geo.transform=function(e){return{stream:function(t){var r=new Pn(t);for(var n in e)r[n]=e[n];return r}}},Pn.prototype={point:function(e,t){this.stream.point(e,t)},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()}},o.geo.projection=Dn,o.geo.projectionMutator=In,(o.geo.equirectangular=function(){return Dn(jn)}).raw=jn.invert=jn,o.geo.rotation=function(e){function t(t){return(t=e(t[0]*Le,t[1]*Le))[0]*=De,t[1]*=De,t}return e=Nn(e[0]%360*Le,e[1]*Le,e.length>2?e[2]*Le:0),t.invert=function(t){return(t=e.invert(t[0]*Le,t[1]*Le))[0]*=De,t[1]*=De,t},t},zn.invert=jn,o.geo.circle=function(){var e,t,r=[0,0],n=6;function a(){var e="function"===typeof r?r.apply(this,arguments):r,n=Nn(-e[0]*Le,-e[1]*Le,0).invert,a=[];return t(null,null,1,{point:function(e,t){a.push(e=n(e,t)),e[0]*=De,e[1]*=De}}),{type:"Polygon",coordinates:[a]}}return a.origin=function(e){return arguments.length?(r=e,a):r},a.angle=function(r){return arguments.length?(t=Vn((e=+r)*Le,n*Le),a):e},a.precision=function(r){return arguments.length?(t=Vn(e*Le,(n=+r)*Le),a):n},a.angle(90)},o.geo.distance=function(e,t){var r,n=(t[0]-e[0])*Le,a=e[1]*Le,o=t[1]*Le,i=Math.sin(n),l=Math.cos(n),s=Math.sin(a),u=Math.cos(a),c=Math.sin(o),f=Math.cos(o);return Math.atan2(Math.sqrt((r=f*i)*r+(r=u*c-s*f*l)*r),s*c+u*f*l)},o.geo.graticule=function(){var e,t,r,n,a,i,l,s,u,c,f,p,d=10,h=d,v=90,m=360,g=2.5;function y(){return{type:"MultiLineString",coordinates:b()}}function b(){return o.range(Math.ceil(n/v)*v,r,v).map(f).concat(o.range(Math.ceil(s/m)*m,l,m).map(p)).concat(o.range(Math.ceil(t/d)*d,e,d).filter((function(e){return w(e%v)>Ee})).map(u)).concat(o.range(Math.ceil(i/h)*h,a,h).filter((function(e){return w(e%m)>Ee})).map(c))}return y.lines=function(){return b().map((function(e){return{type:"LineString",coordinates:e}}))},y.outline=function(){return{type:"Polygon",coordinates:[f(n).concat(p(l).slice(1),f(r).reverse().slice(1),p(s).reverse().slice(1))]}},y.extent=function(e){return arguments.length?y.majorExtent(e).minorExtent(e):y.minorExtent()},y.majorExtent=function(e){return arguments.length?(n=+e[0][0],r=+e[1][0],s=+e[0][1],l=+e[1][1],n>r&&(e=n,n=r,r=e),s>l&&(e=s,s=l,l=e),y.precision(g)):[[n,s],[r,l]]},y.minorExtent=function(r){return arguments.length?(t=+r[0][0],e=+r[1][0],i=+r[0][1],a=+r[1][1],t>e&&(r=t,t=e,e=r),i>a&&(r=i,i=a,a=r),y.precision(g)):[[t,i],[e,a]]},y.step=function(e){return arguments.length?y.majorStep(e).minorStep(e):y.minorStep()},y.majorStep=function(e){return arguments.length?(v=+e[0],m=+e[1],y):[v,m]},y.minorStep=function(e){return arguments.length?(d=+e[0],h=+e[1],y):[d,h]},y.precision=function(o){return arguments.length?(g=+o,u=qn(i,a,90),c=Gn(t,e,g),f=qn(s,l,90),p=Gn(n,r,g),y):g},y.majorExtent([[-180,-90+Ee],[180,90-Ee]]).minorExtent([[-180,-80-Ee],[180,80+Ee]])},o.geo.greatArc=function(){var e,t,r=Wn,n=Yn;function a(){return{type:"LineString",coordinates:[e||r.apply(this,arguments),t||n.apply(this,arguments)]}}return a.distance=function(){return o.geo.distance(e||r.apply(this,arguments),t||n.apply(this,arguments))},a.source=function(t){return arguments.length?(r=t,e="function"===typeof t?null:t,a):r},a.target=function(e){return arguments.length?(n=e,t="function"===typeof e?null:e,a):n},a.precision=function(){return arguments.length?a:0},a},o.geo.interpolate=function(e,t){return function(e,t,r,n){var a=Math.cos(t),o=Math.sin(t),i=Math.cos(n),l=Math.sin(n),s=a*Math.cos(e),u=a*Math.sin(e),c=i*Math.cos(r),f=i*Math.sin(r),p=2*Math.asin(Math.sqrt(Fe(n-t)+a*i*Fe(r-e))),d=1/Math.sin(p),h=p?function(e){var t=Math.sin(e*=p)*d,r=Math.sin(p-e)*d,n=r*s+t*c,a=r*u+t*f,i=r*o+t*l;return[Math.atan2(a,n)*De,Math.atan2(i,Math.sqrt(n*n+a*a))*De]}:function(){return[e*De,t*De]};return h.distance=p,h}(e[0]*Le,e[1]*Le,t[0]*Le,t[1]*Le)},o.geo.length=function(e){return Tn=0,o.geo.stream(e,Kn),Tn};var Kn={sphere:z,point:z,lineStart:function(){var e,t,r;function n(n,a){var o=Math.sin(a*=Le),i=Math.cos(a),l=w((n*=Le)-e),s=Math.cos(l);Tn+=Math.atan2(Math.sqrt((l=i*Math.sin(l))*l+(l=r*o-t*i*s)*l),t*o+r*i*s),e=n,t=o,r=i}Kn.point=function(a,o){e=a*Le,t=Math.sin(o*=Le),r=Math.cos(o),Kn.point=n},Kn.lineEnd=function(){Kn.point=Kn.lineEnd=z}},lineEnd:z,polygonStart:z,polygonEnd:z};function Xn(e,t){function r(t,r){var n=Math.cos(t),a=Math.cos(r),o=e(n*a);return[o*a*Math.sin(t),o*Math.sin(r)]}return r.invert=function(e,r){var n=Math.sqrt(e*e+r*r),a=t(n),o=Math.sin(a),i=Math.cos(a);return[Math.atan2(e*o,n*i),Math.asin(n&&r*o/n)]},r}var Zn=Xn((function(e){return Math.sqrt(2/(1+e))}),(function(e){return 2*Math.asin(e/2)}));(o.geo.azimuthalEqualArea=function(){return Dn(Zn)}).raw=Zn;var Jn=Xn((function(e){var t=Math.acos(e);return t&&t/Math.sin(t)}),D);function $n(e,t){var r=Math.cos(e),n=function(e){return Math.tan(Se/4+e/2)},a=e===t?Math.sin(e):Math.log(r/Math.cos(t))/Math.log(n(t)/n(e)),o=r*Math.pow(n(e),a)/a;if(!a)return ta;function i(e,t){o>0?t<-Pe+Ee&&(t=-Pe+Ee):t>Pe-Ee&&(t=Pe-Ee);var r=o/Math.pow(n(t),a);return[r*Math.sin(a*e),o-r*Math.cos(a*e)]}return i.invert=function(e,t){var r=o-t,n=Ie(a)*Math.sqrt(e*e+r*r);return[Math.atan2(e,r)/a,2*Math.atan(Math.pow(o/n,1/a))-Pe]},i}function Qn(e,t){var r=Math.cos(e),n=e===t?Math.sin(e):(r-Math.cos(t))/(t-e),a=r/n+e;if(w(n)<Ee)return jn;function o(e,t){var r=a-t;return[r*Math.sin(n*e),a-r*Math.cos(n*e)]}return o.invert=function(e,t){var r=a-t;return[Math.atan2(e,r)/n,a-Ie(n)*Math.sqrt(e*e+r*r)]},o}(o.geo.azimuthalEquidistant=function(){return Dn(Jn)}).raw=Jn,(o.geo.conicConformal=function(){return cn($n)}).raw=$n,(o.geo.conicEquidistant=function(){return cn(Qn)}).raw=Qn;var ea=Xn((function(e){return 1/e}),Math.atan);function ta(e,t){return[e,Math.log(Math.tan(Se/4+t/2))]}function ra(e){var t,r=Dn(e),n=r.scale,a=r.translate,o=r.clipExtent;return r.scale=function(){var e=n.apply(r,arguments);return e===r?t?r.clipExtent(null):r:e},r.translate=function(){var e=a.apply(r,arguments);return e===r?t?r.clipExtent(null):r:e},r.clipExtent=function(e){var i=o.apply(r,arguments);if(i===r){if(t=null==e){var l=Se*n(),s=a();o([[s[0]-l,s[1]-l],[s[0]+l,s[1]+l]])}}else t&&(i=null);return i},r.clipExtent(null)}(o.geo.gnomonic=function(){return Dn(ea)}).raw=ea,ta.invert=function(e,t){return[e,2*Math.atan(Math.exp(t))-Pe]},(o.geo.mercator=function(){return ra(ta)}).raw=ta;var na=Xn((function(){return 1}),Math.asin);(o.geo.orthographic=function(){return Dn(na)}).raw=na;var aa=Xn((function(e){return 1/(1+e)}),(function(e){return 2*Math.atan(e)}));function oa(e,t){return[Math.log(Math.tan(Se/4+t/2)),-e]}function ia(e){return e[0]}function la(e){return e[1]}function sa(e){for(var t=e.length,r=[0,1],n=2,a=2;a<t;a++){for(;n>1&&Re(e[r[n-2]],e[r[n-1]],e[a])<=0;)--n;r[n++]=a}return r.slice(0,n)}function ua(e,t){return e[0]-t[0]||e[1]-t[1]}(o.geo.stereographic=function(){return Dn(aa)}).raw=aa,oa.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-Pe]},(o.geo.transverseMercator=function(){var e=ra(oa),t=e.center,r=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return e?r([e[0],e[1],e.length>2?e[2]+90:90]):[(e=r())[0],e[1],e[2]-90]},r([0,0,90])}).raw=oa,o.geom={},o.geom.hull=function(e){var t=ia,r=la;if(arguments.length)return n(e);function n(e){if(e.length<3)return[];var n,a=bt(t),o=bt(r),i=e.length,l=[],s=[];for(n=0;n<i;n++)l.push([+a.call(this,e[n],n),+o.call(this,e[n],n),n]);for(l.sort(ua),n=0;n<i;n++)s.push([l[n][0],-l[n][1]]);var u=sa(l),c=sa(s),f=c[0]===u[0],p=c[c.length-1]===u[u.length-1],d=[];for(n=u.length-1;n>=0;--n)d.push(e[l[u[n]][2]]);for(n=+f;n<c.length-p;++n)d.push(e[l[c[n]][2]]);return d}return n.x=function(e){return arguments.length?(t=e,n):t},n.y=function(e){return arguments.length?(r=e,n):r},n},o.geom.polygon=function(e){return q(e,ca),e};var ca=o.geom.polygon.prototype=[];function fa(e,t,r){return(r[0]-t[0])*(e[1]-t[1])<(r[1]-t[1])*(e[0]-t[0])}function pa(e,t,r,n){var a=e[0],o=r[0],i=t[0]-a,l=n[0]-o,s=e[1],u=r[1],c=t[1]-s,f=n[1]-u,p=(l*(s-u)-f*(a-o))/(f*i-l*c);return[a+p*i,s+p*c]}function da(e){var t=e[0],r=e[e.length-1];return!(t[0]-r[0]||t[1]-r[1])}ca.area=function(){for(var e,t=-1,r=this.length,n=this[r-1],a=0;++t<r;)e=n,n=this[t],a+=e[1]*n[0]-e[0]*n[1];return.5*a},ca.centroid=function(e){var t,r,n=-1,a=this.length,o=0,i=0,l=this[a-1];for(arguments.length||(e=-1/(6*this.area()));++n<a;)t=l,l=this[n],r=t[0]*l[1]-l[0]*t[1],o+=(t[0]+l[0])*r,i+=(t[1]+l[1])*r;return[o*e,i*e]},ca.clip=function(e){for(var t,r,n,a,o,i,l=da(e),s=-1,u=this.length-da(this),c=this[u-1];++s<u;){for(t=e.slice(),e.length=0,a=this[s],o=t[(n=t.length-l)-1],r=-1;++r<n;)fa(i=t[r],c,a)?(fa(o,c,a)||e.push(pa(o,i,c,a)),e.push(i)):fa(o,c,a)&&e.push(pa(o,i,c,a)),o=i;l&&e.push(e[0]),c=a}return e};var ha,va,ma,ga,ya,ba=[],_a=[];function xa(){Ba(this),this.edge=this.site=this.circle=null}function wa(e){var t=ba.pop()||new xa;return t.site=e,t}function Ta(e){La(e),ma.remove(e),ba.push(e),Ba(e)}function ka(e){var t=e.circle,r=t.x,n=t.cy,a={x:r,y:n},o=e.P,i=e.N,l=[e];Ta(e);for(var s=o;s.circle&&w(r-s.circle.x)<Ee&&w(n-s.circle.cy)<Ee;)o=s.P,l.unshift(s),Ta(s),s=o;l.unshift(s),La(s);for(var u=i;u.circle&&w(r-u.circle.x)<Ee&&w(n-u.circle.cy)<Ee;)i=u.N,l.push(u),Ta(u),u=i;l.push(u),La(u);var c,f=l.length;for(c=1;c<f;++c)u=l[c],s=l[c-1],za(u.edge,s.site,u.site,a);s=l[0],(u=l[f-1]).edge=Ra(s.site,u.site,null,a),Pa(s),Pa(u)}function Ma(e){for(var t,r,n,a,o=e.x,i=e.y,l=ma._;l;)if((n=Ea(l,i)-o)>Ee)l=l.L;else{if(!((a=o-Ca(l,i))>Ee)){n>-Ee?(t=l.P,r=l):a>-Ee?(t=l,r=l.N):t=r=l;break}if(!l.R){t=l;break}l=l.R}var s=wa(e);if(ma.insert(t,s),t||r){if(t===r)return La(t),r=wa(t.site),ma.insert(s,r),s.edge=r.edge=Ra(t.site,s.site),Pa(t),void Pa(r);if(r){La(t),La(r);var u=t.site,c=u.x,f=u.y,p=e.x-c,d=e.y-f,h=r.site,v=h.x-c,m=h.y-f,g=2*(p*m-d*v),y=p*p+d*d,b=v*v+m*m,_={x:(m*y-d*b)/g+c,y:(p*b-v*y)/g+f};za(r.edge,u,h,_),s.edge=Ra(u,e,null,_),r.edge=Ra(e,h,null,_),Pa(t),Pa(r)}else s.edge=Ra(t.site,s.site)}}function Ea(e,t){var r=e.site,n=r.x,a=r.y,o=a-t;if(!o)return n;var i=e.P;if(!i)return-1/0;var l=(r=i.site).x,s=r.y,u=s-t;if(!u)return l;var c=l-n,f=1/o-1/u,p=c/u;return f?(-p+Math.sqrt(p*p-2*f*(c*c/(-2*u)-s+u/2+a-o/2)))/f+n:(n+l)/2}function Ca(e,t){var r=e.N;if(r)return Ea(r,t);var n=e.site;return n.y===t?n.x:1/0}function Sa(e){this.site=e,this.edges=[]}function Aa(e,t){return t.angle-e.angle}function Oa(){Ba(this),this.x=this.y=this.arc=this.site=this.cy=null}function Pa(e){var t=e.P,r=e.N;if(t&&r){var n=t.site,a=e.site,o=r.site;if(n!==o){var i=a.x,l=a.y,s=n.x-i,u=n.y-l,c=o.x-i,f=2*(s*(m=o.y-l)-u*c);if(!(f>=-Ce)){var p=s*s+u*u,d=c*c+m*m,h=(m*p-u*d)/f,v=(s*d-c*p)/f,m=v+l,g=_a.pop()||new Oa;g.arc=e,g.site=a,g.x=h+i,g.y=m+Math.sqrt(h*h+v*v),g.cy=m,e.circle=g;for(var y=null,b=ya._;b;)if(g.y<b.y||g.y===b.y&&g.x<=b.x){if(!b.L){y=b.P;break}b=b.L}else{if(!b.R){y=b;break}b=b.R}ya.insert(y,g),y||(ga=g)}}}}function La(e){var t=e.circle;t&&(t.P||(ga=t.N),ya.remove(t),_a.push(t),Ba(t),e.circle=null)}function Da(e,t){var r=e.b;if(r)return!0;var n,a,o=e.a,i=t[0][0],l=t[1][0],s=t[0][1],u=t[1][1],c=e.l,f=e.r,p=c.x,d=c.y,h=f.x,v=f.y,m=(p+h)/2,g=(d+v)/2;if(v===d){if(m<i||m>=l)return;if(p>h){if(o){if(o.y>=u)return}else o={x:m,y:s};r={x:m,y:u}}else{if(o){if(o.y<s)return}else o={x:m,y:u};r={x:m,y:s}}}else if(a=g-(n=(p-h)/(v-d))*m,n<-1||n>1)if(p>h){if(o){if(o.y>=u)return}else o={x:(s-a)/n,y:s};r={x:(u-a)/n,y:u}}else{if(o){if(o.y<s)return}else o={x:(u-a)/n,y:u};r={x:(s-a)/n,y:s}}else if(d<v){if(o){if(o.x>=l)return}else o={x:i,y:n*i+a};r={x:l,y:n*l+a}}else{if(o){if(o.x<i)return}else o={x:l,y:n*l+a};r={x:i,y:n*i+a}}return e.a=o,e.b=r,!0}function Ia(e,t){this.l=e,this.r=t,this.a=this.b=null}function Ra(e,t,r,n){var a=new Ia(e,t);return ha.push(a),r&&za(a,e,t,r),n&&za(a,t,e,n),va[e.i].edges.push(new Na(a,e,t)),va[t.i].edges.push(new Na(a,t,e)),a}function ja(e,t,r){var n=new Ia(e,null);return n.a=t,n.b=r,ha.push(n),n}function za(e,t,r,n){e.a||e.b?e.l===r?e.b=n:e.a=n:(e.a=n,e.l=t,e.r=r)}function Na(e,t,r){var n=e.a,a=e.b;this.edge=e,this.site=t,this.angle=r?Math.atan2(r.y-t.y,r.x-t.x):e.l===t?Math.atan2(a.x-n.x,n.y-a.y):Math.atan2(n.x-a.x,a.y-n.y)}function Fa(){this._=null}function Ba(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function Ha(e,t){var r=t,n=t.R,a=r.U;a?a.L===r?a.L=n:a.R=n:e._=n,n.U=a,r.U=n,r.R=n.L,r.R&&(r.R.U=r),n.L=r}function Va(e,t){var r=t,n=t.L,a=r.U;a?a.L===r?a.L=n:a.R=n:e._=n,n.U=a,r.U=n,r.L=n.R,r.L&&(r.L.U=r),n.R=r}function Ua(e){for(;e.L;)e=e.L;return e}function qa(e,t){var r,n,a,o=e.sort(Ga).pop();for(ha=[],va=new Array(e.length),ma=new Fa,ya=new Fa;;)if(a=ga,o&&(!a||o.y<a.y||o.y===a.y&&o.x<a.x))o.x===r&&o.y===n||(va[o.i]=new Sa(o),Ma(o),r=o.x,n=o.y),o=e.pop();else{if(!a)break;ka(a.arc)}t&&(function(e){for(var t,r=ha,n=ln(e[0][0],e[0][1],e[1][0],e[1][1]),a=r.length;a--;)(!Da(t=r[a],e)||!n(t)||w(t.a.x-t.b.x)<Ee&&w(t.a.y-t.b.y)<Ee)&&(t.a=t.b=null,r.splice(a,1))}(t),function(e){for(var t,r,n,a,o,i,l,s,u,c,f=e[0][0],p=e[1][0],d=e[0][1],h=e[1][1],v=va,m=v.length;m--;)if((o=v[m])&&o.prepare())for(s=(l=o.edges).length,i=0;i<s;)n=(c=l[i].end()).x,a=c.y,t=(u=l[++i%s].start()).x,r=u.y,(w(n-t)>Ee||w(a-r)>Ee)&&(l.splice(i,0,new Na(ja(o.site,c,w(n-f)<Ee&&h-a>Ee?{x:f,y:w(t-f)<Ee?r:h}:w(a-h)<Ee&&p-n>Ee?{x:w(r-h)<Ee?t:p,y:h}:w(n-p)<Ee&&a-d>Ee?{x:p,y:w(t-p)<Ee?r:d}:w(a-d)<Ee&&n-f>Ee?{x:w(r-d)<Ee?t:f,y:d}:null),o.site,null)),++s)}(t));var i={cells:va,edges:ha};return ma=ya=ha=va=null,i}function Ga(e,t){return t.y-e.y||t.x-e.x}Sa.prototype.prepare=function(){for(var e,t=this.edges,r=t.length;r--;)(e=t[r].edge).b&&e.a||t.splice(r,1);return t.sort(Aa),t.length},Na.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}},Fa.prototype={insert:function(e,t){var r,n,a;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;r=e}else this._?(e=Ua(this._),t.P=null,t.N=e,e.P=e.L=t,r=e):(t.P=t.N=null,this._=t,r=null);for(t.L=t.R=null,t.U=r,t.C=!0,e=t;r&&r.C;)r===(n=r.U).L?(a=n.R)&&a.C?(r.C=a.C=!1,n.C=!0,e=n):(e===r.R&&(Ha(this,r),r=(e=r).U),r.C=!1,n.C=!0,Va(this,n)):(a=n.L)&&a.C?(r.C=a.C=!1,n.C=!0,e=n):(e===r.L&&(Va(this,r),r=(e=r).U),r.C=!1,n.C=!0,Ha(this,n)),r=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,r,n,a=e.U,o=e.L,i=e.R;if(r=o?i?Ua(i):o:i,a?a.L===e?a.L=r:a.R=r:this._=r,o&&i?(n=r.C,r.C=e.C,r.L=o,o.U=r,r!==i?(a=r.U,r.U=e.U,e=r.R,a.L=e,r.R=i,i.U=r):(r.U=a,a=r,e=r.R)):(n=e.C,e=r),e&&(e.U=a),!n)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===a.L){if((t=a.R).C&&(t.C=!1,a.C=!0,Ha(this,a),t=a.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,Va(this,t),t=a.R),t.C=a.C,a.C=t.R.C=!1,Ha(this,a),e=this._;break}}else if((t=a.L).C&&(t.C=!1,a.C=!0,Va(this,a),t=a.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,Ha(this,t),t=a.L),t.C=a.C,a.C=t.L.C=!1,Va(this,a),e=this._;break}t.C=!0,e=a,a=a.U}while(!e.C);e&&(e.C=!1)}}},o.geom.voronoi=function(e){var t=ia,r=la,n=t,a=r,o=Wa;if(e)return i(e);function i(e){var t=new Array(e.length),r=o[0][0],n=o[0][1],a=o[1][0],i=o[1][1];return qa(l(e),o).cells.forEach((function(o,l){var s=o.edges,u=o.site;(t[l]=s.length?s.map((function(e){var t=e.start();return[t.x,t.y]})):u.x>=r&&u.x<=a&&u.y>=n&&u.y<=i?[[r,i],[a,i],[a,n],[r,n]]:[]).point=e[l]})),t}function l(e){return e.map((function(e,t){return{x:Math.round(n(e,t)/Ee)*Ee,y:Math.round(a(e,t)/Ee)*Ee,i:t}}))}return i.links=function(e){return qa(l(e)).edges.filter((function(e){return e.l&&e.r})).map((function(t){return{source:e[t.l.i],target:e[t.r.i]}}))},i.triangles=function(e){var t=[];return qa(l(e)).cells.forEach((function(r,n){for(var a,o=r.site,i=r.edges.sort(Aa),l=-1,s=i.length,u=i[s-1].edge,c=u.l===o?u.r:u.l;++l<s;)a=c,c=(u=i[l].edge).l===o?u.r:u.l,n<a.i&&n<c.i&&Ya(o,a,c)<0&&t.push([e[n],e[a.i],e[c.i]])})),t},i.x=function(e){return arguments.length?(n=bt(t=e),i):t},i.y=function(e){return arguments.length?(a=bt(r=e),i):r},i.clipExtent=function(e){return arguments.length?(o=null==e?Wa:e,i):o===Wa?null:o},i.size=function(e){return arguments.length?i.clipExtent(e&&[[0,0],e]):o===Wa?null:o&&o[1]},i};var Wa=[[-1e6,-1e6],[1e6,1e6]];function Ya(e,t,r){return(e.x-r.x)*(t.y-e.y)-(e.x-t.x)*(r.y-e.y)}function Ka(e){return e.x}function Xa(e){return e.y}function Za(e,t,r,n,a,o){if(!e(t,r,n,a,o)){var i=.5*(r+a),l=.5*(n+o),s=t.nodes;s[0]&&Za(e,s[0],r,n,i,l),s[1]&&Za(e,s[1],i,n,a,l),s[2]&&Za(e,s[2],r,l,i,o),s[3]&&Za(e,s[3],i,l,a,o)}}function Ja(e,t){e=o.rgb(e),t=o.rgb(t);var r=e.r,n=e.g,a=e.b,i=t.r-r,l=t.g-n,s=t.b-a;return function(e){return"#"+pt(Math.round(r+i*e))+pt(Math.round(n+l*e))+pt(Math.round(a+s*e))}}function $a(e,t){var r,n={},a={};for(r in e)r in t?n[r]=no(e[r],t[r]):a[r]=e[r];for(r in t)r in e||(a[r]=t[r]);return function(e){for(r in n)a[r]=n[r](e);return a}}function Qa(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function eo(e,t){var r,n,a,o=to.lastIndex=ro.lastIndex=0,i=-1,l=[],s=[];for(e+="",t+="";(r=to.exec(e))&&(n=ro.exec(t));)(a=n.index)>o&&(a=t.slice(o,a),l[i]?l[i]+=a:l[++i]=a),(r=r[0])===(n=n[0])?l[i]?l[i]+=n:l[++i]=n:(l[++i]=null,s.push({i:i,x:Qa(r,n)})),o=ro.lastIndex;return o<t.length&&(a=t.slice(o),l[i]?l[i]+=a:l[++i]=a),l.length<2?s[0]?(t=s[0].x,function(e){return t(e)+""}):function(){return t}:(t=s.length,function(e){for(var r,n=0;n<t;++n)l[(r=s[n]).i]=r.x(e);return l.join("")})}o.geom.delaunay=function(e){return o.geom.voronoi().triangles(e)},o.geom.quadtree=function(e,t,r,n,a){var o,i=ia,l=la;if(o=arguments.length)return i=Ka,l=Xa,3===o&&(a=r,n=t,r=t=0),s(e);function s(e){var s,u,c,f,p,d,h,v,m,g=bt(i),y=bt(l);if(null!=t)d=t,h=r,v=n,m=a;else if(v=m=-(d=h=1/0),u=[],c=[],p=e.length,o)for(f=0;f<p;++f)(s=e[f]).x<d&&(d=s.x),s.y<h&&(h=s.y),s.x>v&&(v=s.x),s.y>m&&(m=s.y),u.push(s.x),c.push(s.y);else for(f=0;f<p;++f){var b=+g(s=e[f],f),_=+y(s,f);b<d&&(d=b),_<h&&(h=_),b>v&&(v=b),_>m&&(m=_),u.push(b),c.push(_)}var x=v-d,T=m-h;function k(e,t,r,n,a,o,i,l){if(!isNaN(r)&&!isNaN(n))if(e.leaf){var s=e.x,u=e.y;if(null!=s)if(w(s-r)+w(u-n)<.01)M(e,t,r,n,a,o,i,l);else{var c=e.point;e.x=e.y=e.point=null,M(e,c,s,u,a,o,i,l),M(e,t,r,n,a,o,i,l)}else e.x=r,e.y=n,e.point=t}else M(e,t,r,n,a,o,i,l)}function M(e,t,r,n,a,o,i,l){var s=.5*(a+i),u=.5*(o+l),c=r>=s,f=n>=u,p=f<<1|c;e.leaf=!1,c?a=s:i=s,f?o=u:l=u,k(e=e.nodes[p]||(e.nodes[p]={leaf:!0,nodes:[],point:null,x:null,y:null}),t,r,n,a,o,i,l)}x>T?m=h+x:v=d+T;var E={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(e){k(E,e,+g(e,++f),+y(e,f),d,h,v,m)}};if(E.visit=function(e){Za(e,E,d,h,v,m)},E.find=function(e){return function(e,t,r,n,a,o,i){var l,s=1/0;return function e(u,c,f,p,d){if(!(c>o||f>i||p<n||d<a)){if(h=u.point){var h,v=t-u.x,m=r-u.y,g=v*v+m*m;if(g<s){var y=Math.sqrt(s=g);n=t-y,a=r-y,o=t+y,i=r+y,l=h}}for(var b=u.nodes,_=.5*(c+p),x=.5*(f+d),w=(r>=x)<<1|t>=_,T=w+4;w<T;++w)if(u=b[3&w])switch(3&w){case 0:e(u,c,f,_,x);break;case 1:e(u,_,f,p,x);break;case 2:e(u,c,x,_,d);break;case 3:e(u,_,x,p,d)}}}(e,n,a,o,i),l}(E,e[0],e[1],d,h,v,m)},f=-1,null==t){for(;++f<p;)k(E,e[f],u[f],c[f],d,h,v,m);--f}else e.forEach(E.add);return u=c=e=s=null,E}return s.x=function(e){return arguments.length?(i=e,s):i},s.y=function(e){return arguments.length?(l=e,s):l},s.extent=function(e){return arguments.length?(null==e?t=r=n=a=null:(t=+e[0][0],r=+e[0][1],n=+e[1][0],a=+e[1][1]),s):null==t?null:[[t,r],[n,a]]},s.size=function(e){return arguments.length?(null==e?t=r=n=a=null:(t=r=0,n=+e[0],a=+e[1]),s):null==t?null:[n-t,a-r]},s},o.interpolateRgb=Ja,o.interpolateObject=$a,o.interpolateNumber=Qa,o.interpolateString=eo;var to=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ro=new RegExp(to.source,"g");function no(e,t){for(var r,n=o.interpolators.length;--n>=0&&!(r=o.interpolators[n](e,t)););return r}function ao(e,t){var r,n=[],a=[],o=e.length,i=t.length,l=Math.min(e.length,t.length);for(r=0;r<l;++r)n.push(no(e[r],t[r]));for(;r<o;++r)a[r]=e[r];for(;r<i;++r)a[r]=t[r];return function(e){for(r=0;r<l;++r)a[r]=n[r](e);return a}}o.interpolate=no,o.interpolators=[function(e,t){var r=typeof t;return("string"===r?yt.has(t.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(t)?Ja:eo:t instanceof qe?Ja:Array.isArray(t)?ao:"object"===r&&isNaN(t)?$a:Qa)(e,t)}],o.interpolateArray=ao;var oo=function(){return D},io=o.map({linear:oo,poly:function(e){return function(t){return Math.pow(t,e)}},quad:function(){return co},cubic:function(){return fo},sin:function(){return ho},exp:function(){return vo},circle:function(){return mo},elastic:function(e,t){var r;arguments.length<2&&(t=.45);arguments.length?r=t/Ae*Math.asin(1/e):(e=1,r=t/4);return function(n){return 1+e*Math.pow(2,-10*n)*Math.sin((n-r)*Ae/t)}},back:function(e){e||(e=1.70158);return function(t){return t*t*((e+1)*t-e)}},bounce:function(){return go}}),lo=o.map({in:D,out:so,"in-out":uo,"out-in":function(e){return uo(so(e))}});function so(e){return function(t){return 1-e(1-t)}}function uo(e){return function(t){return.5*(t<.5?e(2*t):2-e(2-2*t))}}function co(e){return e*e}function fo(e){return e*e*e}function po(e){if(e<=0)return 0;if(e>=1)return 1;var t=e*e,r=t*e;return 4*(e<.5?r:3*(e-t)+r-.75)}function ho(e){return 1-Math.cos(e*Pe)}function vo(e){return Math.pow(2,10*(e-1))}function mo(e){return 1-Math.sqrt(1-e*e)}function go(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function yo(e,t){return t-=e,function(r){return Math.round(e+t*r)}}function bo(e){var t,r,n,a=[e.a,e.b],o=[e.c,e.d],i=xo(a),l=_o(a,o),s=xo(((t=o)[0]+=(n=-l)*(r=a)[0],t[1]+=n*r[1],t))||0;a[0]*o[1]<o[0]*a[1]&&(a[0]*=-1,a[1]*=-1,i*=-1,l*=-1),this.rotate=(i?Math.atan2(a[1],a[0]):Math.atan2(-o[0],o[1]))*De,this.translate=[e.e,e.f],this.scale=[i,s],this.skew=s?Math.atan2(l,s)*De:0}function _o(e,t){return e[0]*t[0]+e[1]*t[1]}function xo(e){var t=Math.sqrt(_o(e,e));return t&&(e[0]/=t,e[1]/=t),t}o.ease=function(e){var t,r=e.indexOf("-"),n=r>=0?e.slice(0,r):e,a=r>=0?e.slice(r+1):"in";return n=io.get(n)||oo,a=lo.get(a)||D,t=a(n.apply(null,i.call(arguments,1))),function(e){return e<=0?0:e>=1?1:t(e)}},o.interpolateHcl=function(e,t){e=o.hcl(e),t=o.hcl(t);var r=e.h,n=e.c,a=e.l,i=t.h-r,l=t.c-n,s=t.l-a;isNaN(l)&&(l=0,n=isNaN(n)?t.c:n);isNaN(i)?(i=0,r=isNaN(r)?t.h:r):i>180?i-=360:i<-180&&(i+=360);return function(e){return Ze(r+i*e,n+l*e,a+s*e)+""}},o.interpolateHsl=function(e,t){e=o.hsl(e),t=o.hsl(t);var r=e.h,n=e.s,a=e.l,i=t.h-r,l=t.s-n,s=t.l-a;isNaN(l)&&(l=0,n=isNaN(n)?t.s:n);isNaN(i)?(i=0,r=isNaN(r)?t.h:r):i>180?i-=360:i<-180&&(i+=360);return function(e){return Ye(r+i*e,n+l*e,a+s*e)+""}},o.interpolateLab=function(e,t){e=o.lab(e),t=o.lab(t);var r=e.l,n=e.a,a=e.b,i=t.l-r,l=t.a-n,s=t.b-a;return function(e){return nt(r+i*e,n+l*e,a+s*e)+""}},o.interpolateRound=yo,o.transform=function(e){var t=s.createElementNS(o.ns.prefix.svg,"g");return(o.transform=function(e){if(null!=e){t.setAttribute("transform",e);var r=t.transform.baseVal.consolidate()}return new bo(r?r.matrix:wo)})(e)},bo.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var wo={a:1,b:0,c:0,d:1,e:0,f:0};function To(e){return e.length?e.pop()+",":""}function ko(e,t){var r=[],n=[];return e=o.transform(e),t=o.transform(t),function(e,t,r,n){if(e[0]!==t[0]||e[1]!==t[1]){var a=r.push("translate(",null,",",null,")");n.push({i:a-4,x:Qa(e[0],t[0])},{i:a-2,x:Qa(e[1],t[1])})}else(t[0]||t[1])&&r.push("translate("+t+")")}(e.translate,t.translate,r,n),function(e,t,r,n){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),n.push({i:r.push(To(r)+"rotate(",null,")")-2,x:Qa(e,t)})):t&&r.push(To(r)+"rotate("+t+")")}(e.rotate,t.rotate,r,n),function(e,t,r,n){e!==t?n.push({i:r.push(To(r)+"skewX(",null,")")-2,x:Qa(e,t)}):t&&r.push(To(r)+"skewX("+t+")")}(e.skew,t.skew,r,n),function(e,t,r,n){if(e[0]!==t[0]||e[1]!==t[1]){var a=r.push(To(r)+"scale(",null,",",null,")");n.push({i:a-4,x:Qa(e[0],t[0])},{i:a-2,x:Qa(e[1],t[1])})}else 1===t[0]&&1===t[1]||r.push(To(r)+"scale("+t+")")}(e.scale,t.scale,r,n),e=t=null,function(e){for(var t,a=-1,o=n.length;++a<o;)r[(t=n[a]).i]=t.x(e);return r.join("")}}function Mo(e,t){return t=(t-=e=+e)||1/t,function(r){return(r-e)/t}}function Eo(e,t){return t=(t-=e=+e)||1/t,function(r){return Math.max(0,Math.min(1,(r-e)/t))}}function Co(e){for(var t=e.source,r=e.target,n=function(e,t){if(e===t)return e;var r=So(e),n=So(t),a=r.pop(),o=n.pop(),i=null;for(;a===o;)i=a,a=r.pop(),o=n.pop();return i}(t,r),a=[t];t!==n;)t=t.parent,a.push(t);for(var o=a.length;r!==n;)a.splice(o,0,r),r=r.parent;return a}function So(e){for(var t=[],r=e.parent;null!=r;)t.push(e),e=r,r=r.parent;return t.push(e),t}function Ao(e){e.fixed|=2}function Oo(e){e.fixed&=-7}function Po(e){e.fixed|=4,e.px=e.x,e.py=e.y}function Lo(e){e.fixed&=-5}function Do(e,t,r){var n=0,a=0;if(e.charge=0,!e.leaf)for(var o,i=e.nodes,l=i.length,s=-1;++s<l;)null!=(o=i[s])&&(Do(o,t,r),e.charge+=o.charge,n+=o.charge*o.cx,a+=o.charge*o.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var u=t*r[e.point.index];e.charge+=e.pointCharge=u,n+=u*e.point.x,a+=u*e.point.y}e.cx=n/e.charge,e.cy=a/e.charge}o.interpolateTransform=ko,o.layout={},o.layout.bundle=function(){return function(e){for(var t=[],r=-1,n=e.length;++r<n;)t.push(Co(e[r]));return t}},o.layout.chord=function(){var e,t,r,n,a,i,l,s={},u=0;function c(){var s,c,p,d,h,v={},m=[],g=o.range(n),y=[];for(e=[],t=[],s=0,d=-1;++d<n;){for(c=0,h=-1;++h<n;)c+=r[d][h];m.push(c),y.push(o.range(n)),s+=c}for(a&&g.sort((function(e,t){return a(m[e],m[t])})),i&&y.forEach((function(e,t){e.sort((function(e,n){return i(r[t][e],r[t][n])}))})),s=(Ae-u*n)/s,c=0,d=-1;++d<n;){for(p=c,h=-1;++h<n;){var b=g[d],_=y[b][h],x=r[b][_],w=c,T=c+=x*s;v[b+"-"+_]={index:b,subindex:_,startAngle:w,endAngle:T,value:x}}t[b]={index:b,startAngle:p,endAngle:c,value:m[b]},c+=u}for(d=-1;++d<n;)for(h=d-1;++h<n;){var k=v[d+"-"+h],M=v[h+"-"+d];(k.value||M.value)&&e.push(k.value<M.value?{source:M,target:k}:{source:k,target:M})}l&&f()}function f(){e.sort((function(e,t){return l((e.source.value+e.target.value)/2,(t.source.value+t.target.value)/2)}))}return s.matrix=function(a){return arguments.length?(n=(r=a)&&r.length,e=t=null,s):r},s.padding=function(r){return arguments.length?(u=r,e=t=null,s):u},s.sortGroups=function(r){return arguments.length?(a=r,e=t=null,s):a},s.sortSubgroups=function(t){return arguments.length?(i=t,e=null,s):i},s.sortChords=function(t){return arguments.length?(l=t,e&&f(),s):l},s.chords=function(){return e||c(),e},s.groups=function(){return t||c(),t},s},o.layout.force=function(){var e,t,r,n,a,i,l={},s=o.dispatch("start","tick","end"),u=[1,1],c=.9,f=Io,p=Ro,d=-30,h=jo,v=.1,m=.64,g=[],y=[];function b(e){return function(t,r,n,a){if(t.point!==e){var o=t.cx-e.x,i=t.cy-e.y,l=a-r,s=o*o+i*i;if(l*l/m<s){if(s<h){var u=t.charge/s;e.px-=o*u,e.py-=i*u}return!0}if(t.point&&s&&s<h){u=t.pointCharge/s;e.px-=o*u,e.py-=i*u}}return!t.charge}}function _(e){e.px=o.event.x,e.py=o.event.y,l.resume()}return l.tick=function(){if((r*=.99)<.005)return e=null,s.end({type:"end",alpha:r=0}),!0;var t,l,f,p,h,m,_,x,w,T=g.length,k=y.length;for(l=0;l<k;++l)p=(f=y[l]).source,(m=(x=(h=f.target).x-p.x)*x+(w=h.y-p.y)*w)&&(x*=m=r*a[l]*((m=Math.sqrt(m))-n[l])/m,w*=m,h.x-=x*(_=p.weight+h.weight?p.weight/(p.weight+h.weight):.5),h.y-=w*_,p.x+=x*(_=1-_),p.y+=w*_);if((_=r*v)&&(x=u[0]/2,w=u[1]/2,l=-1,_))for(;++l<T;)(f=g[l]).x+=(x-f.x)*_,f.y+=(w-f.y)*_;if(d)for(Do(t=o.geom.quadtree(g),r,i),l=-1;++l<T;)(f=g[l]).fixed||t.visit(b(f));for(l=-1;++l<T;)(f=g[l]).fixed?(f.x=f.px,f.y=f.py):(f.x-=(f.px-(f.px=f.x))*c,f.y-=(f.py-(f.py=f.y))*c);s.tick({type:"tick",alpha:r})},l.nodes=function(e){return arguments.length?(g=e,l):g},l.links=function(e){return arguments.length?(y=e,l):y},l.size=function(e){return arguments.length?(u=e,l):u},l.linkDistance=function(e){return arguments.length?(f="function"===typeof e?e:+e,l):f},l.distance=l.linkDistance,l.linkStrength=function(e){return arguments.length?(p="function"===typeof e?e:+e,l):p},l.friction=function(e){return arguments.length?(c=+e,l):c},l.charge=function(e){return arguments.length?(d="function"===typeof e?e:+e,l):d},l.chargeDistance=function(e){return arguments.length?(h=e*e,l):Math.sqrt(h)},l.gravity=function(e){return arguments.length?(v=+e,l):v},l.theta=function(e){return arguments.length?(m=e*e,l):Math.sqrt(m)},l.alpha=function(t){return arguments.length?(t=+t,r?t>0?r=t:(e.c=null,e.t=NaN,e=null,s.end({type:"end",alpha:r=0})):t>0&&(s.start({type:"start",alpha:r=t}),e=Ct(l.tick)),l):r},l.start=function(){var e,t,r,o=g.length,s=y.length,c=u[0],h=u[1];for(e=0;e<o;++e)(r=g[e]).index=e,r.weight=0;for(e=0;e<s;++e)"number"==typeof(r=y[e]).source&&(r.source=g[r.source]),"number"==typeof r.target&&(r.target=g[r.target]),++r.source.weight,++r.target.weight;for(e=0;e<o;++e)r=g[e],isNaN(r.x)&&(r.x=v("x",c)),isNaN(r.y)&&(r.y=v("y",h)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(n=[],"function"===typeof f)for(e=0;e<s;++e)n[e]=+f.call(this,y[e],e);else for(e=0;e<s;++e)n[e]=f;if(a=[],"function"===typeof p)for(e=0;e<s;++e)a[e]=+p.call(this,y[e],e);else for(e=0;e<s;++e)a[e]=p;if(i=[],"function"===typeof d)for(e=0;e<o;++e)i[e]=+d.call(this,g[e],e);else for(e=0;e<o;++e)i[e]=d;function v(r,n){if(!t){for(t=new Array(o),u=0;u<o;++u)t[u]=[];for(u=0;u<s;++u){var a=y[u];t[a.source.index].push(a.target),t[a.target.index].push(a.source)}}for(var i,l=t[e],u=-1,c=l.length;++u<c;)if(!isNaN(i=l[u][r]))return i;return Math.random()*n}return l.resume()},l.resume=function(){return l.alpha(.1)},l.stop=function(){return l.alpha(0)},l.drag=function(){if(t||(t=o.behavior.drag().origin(D).on("dragstart.force",Ao).on("drag.force",_).on("dragend.force",Oo)),!arguments.length)return t;this.on("mouseover.force",Po).on("mouseout.force",Lo).call(t)},o.rebind(l,s,"on")};var Io=20,Ro=1,jo=1/0;function zo(e,t){return o.rebind(e,t,"sort","children","value"),e.nodes=e,e.links=Uo,e}function No(e,t){for(var r=[e];null!=(e=r.pop());)if(t(e),(a=e.children)&&(n=a.length))for(var n,a;--n>=0;)r.push(a[n])}function Fo(e,t){for(var r=[e],n=[];null!=(e=r.pop());)if(n.push(e),(o=e.children)&&(a=o.length))for(var a,o,i=-1;++i<a;)r.push(o[i]);for(;null!=(e=n.pop());)t(e)}function Bo(e){return e.children}function Ho(e){return e.value}function Vo(e,t){return t.value-e.value}function Uo(e){return o.merge(e.map((function(e){return(e.children||[]).map((function(t){return{source:e,target:t}}))})))}o.layout.hierarchy=function(){var e=Vo,t=Bo,r=Ho;function n(a){var o,i=[a],l=[];for(a.depth=0;null!=(o=i.pop());)if(l.push(o),(u=t.call(n,o,o.depth))&&(s=u.length)){for(var s,u,c;--s>=0;)i.push(c=u[s]),c.parent=o,c.depth=o.depth+1;r&&(o.value=0),o.children=u}else r&&(o.value=+r.call(n,o,o.depth)||0),delete o.children;return Fo(a,(function(t){var n,a;e&&(n=t.children)&&n.sort(e),r&&(a=t.parent)&&(a.value+=t.value)})),l}return n.sort=function(t){return arguments.length?(e=t,n):e},n.children=function(e){return arguments.length?(t=e,n):t},n.value=function(e){return arguments.length?(r=e,n):r},n.revalue=function(e){return r&&(No(e,(function(e){e.children&&(e.value=0)})),Fo(e,(function(e){var t;e.children||(e.value=+r.call(n,e,e.depth)||0),(t=e.parent)&&(t.value+=e.value)}))),e},n},o.layout.partition=function(){var e=o.layout.hierarchy(),t=[1,1];function r(e,t,n,a){var o=e.children;if(e.x=t,e.y=e.depth*a,e.dx=n,e.dy=a,o&&(i=o.length)){var i,l,s,u=-1;for(n=e.value?n/e.value:0;++u<i;)r(l=o[u],t,s=l.value*n,a),t+=s}}function n(e){var t=e.children,r=0;if(t&&(a=t.length))for(var a,o=-1;++o<a;)r=Math.max(r,n(t[o]));return 1+r}function a(a,o){var i=e.call(this,a,o);return r(i[0],0,t[0],t[1]/n(i[0])),i}return a.size=function(e){return arguments.length?(t=e,a):t},zo(a,e)},o.layout.pie=function(){var e=Number,t=qo,r=0,n=Ae,a=0;function i(l){var s,u=l.length,c=l.map((function(t,r){return+e.call(i,t,r)})),f=+("function"===typeof r?r.apply(this,arguments):r),p=("function"===typeof n?n.apply(this,arguments):n)-f,d=Math.min(Math.abs(p)/u,+("function"===typeof a?a.apply(this,arguments):a)),h=d*(p<0?-1:1),v=o.sum(c),m=v?(p-u*h)/v:0,g=o.range(u),y=[];return null!=t&&g.sort(t===qo?function(e,t){return c[t]-c[e]}:function(e,r){return t(l[e],l[r])}),g.forEach((function(e){y[e]={data:l[e],value:s=c[e],startAngle:f,endAngle:f+=s*m+h,padAngle:d}})),y}return i.value=function(t){return arguments.length?(e=t,i):e},i.sort=function(e){return arguments.length?(t=e,i):t},i.startAngle=function(e){return arguments.length?(r=e,i):r},i.endAngle=function(e){return arguments.length?(n=e,i):n},i.padAngle=function(e){return arguments.length?(a=e,i):a},i};var qo={};function Go(e){return e.x}function Wo(e){return e.y}function Yo(e,t,r){e.y0=t,e.y=r}o.layout.stack=function(){var e=D,t=Zo,r=Jo,n=Yo,a=Go,i=Wo;function l(s,u){if(!(d=s.length))return s;var c=s.map((function(t,r){return e.call(l,t,r)})),f=c.map((function(e){return e.map((function(e,t){return[a.call(l,e,t),i.call(l,e,t)]}))})),p=t.call(l,f,u);c=o.permute(c,p),f=o.permute(f,p);var d,h,v,m,g=r.call(l,f,u),y=c[0].length;for(v=0;v<y;++v)for(n.call(l,c[0][v],m=g[v],f[0][v][1]),h=1;h<d;++h)n.call(l,c[h][v],m+=f[h-1][v][1],f[h][v][1]);return s}return l.values=function(t){return arguments.length?(e=t,l):e},l.order=function(e){return arguments.length?(t="function"===typeof e?e:Ko.get(e)||Zo,l):t},l.offset=function(e){return arguments.length?(r="function"===typeof e?e:Xo.get(e)||Jo,l):r},l.x=function(e){return arguments.length?(a=e,l):a},l.y=function(e){return arguments.length?(i=e,l):i},l.out=function(e){return arguments.length?(n=e,l):n},l};var Ko=o.map({"inside-out":function(e){var t,r,n=e.length,a=e.map($o),i=e.map(Qo),l=o.range(n).sort((function(e,t){return a[e]-a[t]})),s=0,u=0,c=[],f=[];for(t=0;t<n;++t)r=l[t],s<u?(s+=i[r],c.push(r)):(u+=i[r],f.push(r));return f.reverse().concat(c)},reverse:function(e){return o.range(e.length).reverse()},default:Zo}),Xo=o.map({silhouette:function(e){var t,r,n,a=e.length,o=e[0].length,i=[],l=0,s=[];for(r=0;r<o;++r){for(t=0,n=0;t<a;t++)n+=e[t][r][1];n>l&&(l=n),i.push(n)}for(r=0;r<o;++r)s[r]=(l-i[r])/2;return s},wiggle:function(e){var t,r,n,a,o,i,l,s,u,c=e.length,f=e[0],p=f.length,d=[];for(d[0]=s=u=0,r=1;r<p;++r){for(t=0,a=0;t<c;++t)a+=e[t][r][1];for(t=0,o=0,l=f[r][0]-f[r-1][0];t<c;++t){for(n=0,i=(e[t][r][1]-e[t][r-1][1])/(2*l);n<t;++n)i+=(e[n][r][1]-e[n][r-1][1])/l;o+=i*e[t][r][1]}d[r]=s-=a?o/a*l:0,s<u&&(u=s)}for(r=0;r<p;++r)d[r]-=u;return d},expand:function(e){var t,r,n,a=e.length,o=e[0].length,i=1/a,l=[];for(r=0;r<o;++r){for(t=0,n=0;t<a;t++)n+=e[t][r][1];if(n)for(t=0;t<a;t++)e[t][r][1]/=n;else for(t=0;t<a;t++)e[t][r][1]=i}for(r=0;r<o;++r)l[r]=0;return l},zero:Jo});function Zo(e){return o.range(e.length)}function Jo(e){for(var t=-1,r=e[0].length,n=[];++t<r;)n[t]=0;return n}function $o(e){for(var t,r=1,n=0,a=e[0][1],o=e.length;r<o;++r)(t=e[r][1])>a&&(n=r,a=t);return n}function Qo(e){return e.reduce(ei,0)}function ei(e,t){return e+t[1]}function ti(e,t){return ri(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function ri(e,t){for(var r=-1,n=+e[0],a=(e[1]-n)/t,o=[];++r<=t;)o[r]=a*r+n;return o}function ni(e){return[o.min(e),o.max(e)]}function ai(e,t){return e.value-t.value}function oi(e,t){var r=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=r,r._pack_prev=t}function ii(e,t){e._pack_next=t,t._pack_prev=e}function li(e,t){var r=t.x-e.x,n=t.y-e.y,a=e.r+t.r;return.999*a*a>r*r+n*n}function si(e){if((t=e.children)&&(s=t.length)){var t,r,n,a,o,i,l,s,u=1/0,c=-1/0,f=1/0,p=-1/0;if(t.forEach(ui),(r=t[0]).x=-r.r,r.y=0,b(r),s>1&&((n=t[1]).x=n.r,n.y=0,b(n),s>2))for(pi(r,n,a=t[2]),b(a),oi(r,a),r._pack_prev=a,oi(a,n),n=r._pack_next,o=3;o<s;o++){pi(r,n,a=t[o]);var d=0,h=1,v=1;for(i=n._pack_next;i!==n;i=i._pack_next,h++)if(li(i,a)){d=1;break}if(1==d)for(l=r._pack_prev;l!==i._pack_prev&&!li(l,a);l=l._pack_prev,v++);d?(h<v||h==v&&n.r<r.r?ii(r,n=i):ii(r=l,n),o--):(oi(r,a),n=a,b(a))}var m=(u+c)/2,g=(f+p)/2,y=0;for(o=0;o<s;o++)(a=t[o]).x-=m,a.y-=g,y=Math.max(y,a.r+Math.sqrt(a.x*a.x+a.y*a.y));e.r=y,t.forEach(ci)}function b(e){u=Math.min(e.x-e.r,u),c=Math.max(e.x+e.r,c),f=Math.min(e.y-e.r,f),p=Math.max(e.y+e.r,p)}}function ui(e){e._pack_next=e._pack_prev=e}function ci(e){delete e._pack_next,delete e._pack_prev}function fi(e,t,r,n){var a=e.children;if(e.x=t+=n*e.x,e.y=r+=n*e.y,e.r*=n,a)for(var o=-1,i=a.length;++o<i;)fi(a[o],t,r,n)}function pi(e,t,r){var n=e.r+r.r,a=t.x-e.x,o=t.y-e.y;if(n&&(a||o)){var i=t.r+r.r,l=a*a+o*o,s=.5+((n*=n)-(i*=i))/(2*l),u=Math.sqrt(Math.max(0,2*i*(n+l)-(n-=l)*n-i*i))/(2*l);r.x=e.x+s*a+u*o,r.y=e.y+s*o-u*a}else r.x=e.x+n,r.y=e.y}function di(e,t){return e.parent==t.parent?1:2}function hi(e){var t=e.children;return t.length?t[0]:e.t}function vi(e){var t,r=e.children;return(t=r.length)?r[t-1]:e.t}function mi(e,t,r){var n=r/(t.i-e.i);t.c-=n,t.s+=r,e.c+=n,t.z+=r,t.m+=r}function gi(e,t,r){return e.a.parent===t.parent?e.a:r}function yi(e){var t=e.children;return t&&t.length?yi(t[0]):e}function bi(e){var t,r=e.children;return r&&(t=r.length)?bi(r[t-1]):e}function _i(e){return{x:e.x,y:e.y,dx:e.dx,dy:e.dy}}function xi(e,t){var r=e.x+t[3],n=e.y+t[0],a=e.dx-t[1]-t[3],o=e.dy-t[0]-t[2];return a<0&&(r+=a/2,a=0),o<0&&(n+=o/2,o=0),{x:r,y:n,dx:a,dy:o}}function wi(e){var t=e[0],r=e[e.length-1];return t<r?[t,r]:[r,t]}function Ti(e){return e.rangeExtent?e.rangeExtent():wi(e.range())}function ki(e,t,r,n){var a=r(e[0],e[1]),o=n(t[0],t[1]);return function(e){return o(a(e))}}function Mi(e,t){var r,n=0,a=e.length-1,o=e[n],i=e[a];return i<o&&(r=n,n=a,a=r,r=o,o=i,i=r),e[n]=t.floor(o),e[a]=t.ceil(i),e}function Ei(e){return e?{floor:function(t){return Math.floor(t/e)*e},ceil:function(t){return Math.ceil(t/e)*e}}:Ci}o.layout.histogram=function(){var e=!0,t=Number,r=ni,n=ti;function a(a,i){for(var l,s,u=[],c=a.map(t,this),f=r.call(this,c,i),p=n.call(this,f,c,i),d=(i=-1,c.length),h=p.length-1,v=e?1:1/d;++i<h;)(l=u[i]=[]).dx=p[i+1]-(l.x=p[i]),l.y=0;if(h>0)for(i=-1;++i<d;)(s=c[i])>=f[0]&&s<=f[1]&&((l=u[o.bisect(p,s,1,h)-1]).y+=v,l.push(a[i]));return u}return a.value=function(e){return arguments.length?(t=e,a):t},a.range=function(e){return arguments.length?(r=bt(e),a):r},a.bins=function(e){return arguments.length?(n="number"===typeof e?function(t){return ri(t,e)}:bt(e),a):n},a.frequency=function(t){return arguments.length?(e=!!t,a):e},a},o.layout.pack=function(){var e,t=o.layout.hierarchy().sort(ai),r=0,n=[1,1];function a(a,o){var i=t.call(this,a,o),l=i[0],s=n[0],u=n[1],c=null==e?Math.sqrt:"function"===typeof e?e:function(){return e};if(l.x=l.y=0,Fo(l,(function(e){e.r=+c(e.value)})),Fo(l,si),r){var f=r*(e?1:Math.max(2*l.r/s,2*l.r/u))/2;Fo(l,(function(e){e.r+=f})),Fo(l,si),Fo(l,(function(e){e.r-=f}))}return fi(l,s/2,u/2,e?1:1/Math.max(2*l.r/s,2*l.r/u)),i}return a.size=function(e){return arguments.length?(n=e,a):n},a.radius=function(t){return arguments.length?(e=null==t||"function"===typeof t?t:+t,a):e},a.padding=function(e){return arguments.length?(r=+e,a):r},zo(a,t)},o.layout.tree=function(){var e=o.layout.hierarchy().sort(null).value(null),t=di,r=[1,1],n=null;function a(a,o){var u=e.call(this,a,o),c=u[0],f=function(e){var t,r={A:null,children:[e]},n=[r];for(;null!=(t=n.pop());)for(var a,o=t.children,i=0,l=o.length;i<l;++i)n.push((o[i]=a={_:o[i],parent:t,children:(a=o[i].children)&&a.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:i}).a=a);return r.children[0]}(c);if(Fo(f,i),f.parent.m=-f.z,No(f,l),n)No(c,s);else{var p=c,d=c,h=c;No(c,(function(e){e.x<p.x&&(p=e),e.x>d.x&&(d=e),e.depth>h.depth&&(h=e)}));var v=t(p,d)/2-p.x,m=r[0]/(d.x+t(d,p)/2+v),g=r[1]/(h.depth||1);No(c,(function(e){e.x=(e.x+v)*m,e.y=e.depth*g}))}return u}function i(e){var r=e.children,n=e.parent.children,a=e.i?n[e.i-1]:null;if(r.length){!function(e){var t,r=0,n=0,a=e.children,o=a.length;for(;--o>=0;)(t=a[o]).z+=r,t.m+=r,r+=t.s+(n+=t.c)}(e);var o=(r[0].z+r[r.length-1].z)/2;a?(e.z=a.z+t(e._,a._),e.m=e.z-o):e.z=o}else a&&(e.z=a.z+t(e._,a._));e.parent.A=function(e,r,n){if(r){for(var a,o=e,i=e,l=r,s=o.parent.children[0],u=o.m,c=i.m,f=l.m,p=s.m;l=vi(l),o=hi(o),l&&o;)s=hi(s),(i=vi(i)).a=e,(a=l.z+f-o.z-u+t(l._,o._))>0&&(mi(gi(l,e,n),e,a),u+=a,c+=a),f+=l.m,u+=o.m,p+=s.m,c+=i.m;l&&!vi(i)&&(i.t=l,i.m+=f-c),o&&!hi(s)&&(s.t=o,s.m+=u-p,n=e)}return n}(e,a,e.parent.A||n[0])}function l(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=r[0],e.y=e.depth*r[1]}return a.separation=function(e){return arguments.length?(t=e,a):t},a.size=function(e){return arguments.length?(n=null==(r=e)?s:null,a):n?null:r},a.nodeSize=function(e){return arguments.length?(n=null==(r=e)?null:s,a):n?r:null},zo(a,e)},o.layout.cluster=function(){var e=o.layout.hierarchy().sort(null).value(null),t=di,r=[1,1],n=!1;function a(a,i){var l,s=e.call(this,a,i),u=s[0],c=0;Fo(u,(function(e){var r=e.children;r&&r.length?(e.x=function(e){return e.reduce((function(e,t){return e+t.x}),0)/e.length}(r),e.y=function(e){return 1+o.max(e,(function(e){return e.y}))}(r)):(e.x=l?c+=t(e,l):0,e.y=0,l=e)}));var f=yi(u),p=bi(u),d=f.x-t(f,p)/2,h=p.x+t(p,f)/2;return Fo(u,n?function(e){e.x=(e.x-u.x)*r[0],e.y=(u.y-e.y)*r[1]}:function(e){e.x=(e.x-d)/(h-d)*r[0],e.y=(1-(u.y?e.y/u.y:1))*r[1]}),s}return a.separation=function(e){return arguments.length?(t=e,a):t},a.size=function(e){return arguments.length?(n=null==(r=e),a):n?null:r},a.nodeSize=function(e){return arguments.length?(n=null!=(r=e),a):n?r:null},zo(a,e)},o.layout.treemap=function(){var e,t=o.layout.hierarchy(),r=Math.round,n=[1,1],a=null,i=_i,l=!1,s="squarify",u=.5*(1+Math.sqrt(5));function c(e,t){for(var r,n,a=-1,o=e.length;++a<o;)n=(r=e[a]).value*(t<0?0:t),r.area=isNaN(n)||n<=0?0:n}function f(e){var t=e.children;if(t&&t.length){var r,n,a,o=i(e),l=[],u=t.slice(),p=1/0,v="slice"===s?o.dx:"dice"===s?o.dy:"slice-dice"===s?1&e.depth?o.dy:o.dx:Math.min(o.dx,o.dy);for(c(u,o.dx*o.dy/e.value),l.area=0;(a=u.length)>0;)l.push(r=u[a-1]),l.area+=r.area,"squarify"!==s||(n=d(l,v))<=p?(u.pop(),p=n):(l.area-=l.pop().area,h(l,v,o,!1),v=Math.min(o.dx,o.dy),l.length=l.area=0,p=1/0);l.length&&(h(l,v,o,!0),l.length=l.area=0),t.forEach(f)}}function p(e){var t=e.children;if(t&&t.length){var r,n=i(e),a=t.slice(),o=[];for(c(a,n.dx*n.dy/e.value),o.area=0;r=a.pop();)o.push(r),o.area+=r.area,null!=r.z&&(h(o,r.z?n.dx:n.dy,n,!a.length),o.length=o.area=0);t.forEach(p)}}function d(e,t){for(var r,n=e.area,a=0,o=1/0,i=-1,l=e.length;++i<l;)(r=e[i].area)&&(r<o&&(o=r),r>a&&(a=r));return t*=t,(n*=n)?Math.max(t*a*u/n,n/(t*o*u)):1/0}function h(e,t,n,a){var o,i=-1,l=e.length,s=n.x,u=n.y,c=t?r(e.area/t):0;if(t==n.dx){for((a||c>n.dy)&&(c=n.dy);++i<l;)(o=e[i]).x=s,o.y=u,o.dy=c,s+=o.dx=Math.min(n.x+n.dx-s,c?r(o.area/c):0);o.z=!0,o.dx+=n.x+n.dx-s,n.y+=c,n.dy-=c}else{for((a||c>n.dx)&&(c=n.dx);++i<l;)(o=e[i]).x=s,o.y=u,o.dx=c,u+=o.dy=Math.min(n.y+n.dy-u,c?r(o.area/c):0);o.z=!1,o.dy+=n.y+n.dy-u,n.x+=c,n.dx-=c}}function v(r){var a=e||t(r),o=a[0];return o.x=o.y=0,o.value?(o.dx=n[0],o.dy=n[1]):o.dx=o.dy=0,e&&t.revalue(o),c([o],o.dx*o.dy/o.value),(e?p:f)(o),l&&(e=a),a}return v.size=function(e){return arguments.length?(n=e,v):n},v.padding=function(e){if(!arguments.length)return a;function t(t){return xi(t,e)}var r;return i=null==(a=e)?_i:"function"===(r=typeof e)?function(t){var r=e.call(v,t,t.depth);return null==r?_i(t):xi(t,"number"===typeof r?[r,r,r,r]:r)}:"number"===r?(e=[e,e,e,e],t):t,v},v.round=function(e){return arguments.length?(r=e?Math.round:Number,v):r!=Number},v.sticky=function(t){return arguments.length?(l=t,e=null,v):l},v.ratio=function(e){return arguments.length?(u=e,v):u},v.mode=function(e){return arguments.length?(s=e+"",v):s},zo(v,t)},o.random={normal:function(e,t){var r=arguments.length;return r<2&&(t=1),r<1&&(e=0),function(){var r,n,a;do{a=(r=2*Math.random()-1)*r+(n=2*Math.random()-1)*n}while(!a||a>1);return e+t*r*Math.sqrt(-2*Math.log(a)/a)}},logNormal:function(){var e=o.random.normal.apply(o,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=o.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,r=0;r<e;r++)t+=Math.random();return t}}},o.scale={};var Ci={floor:D,ceil:D};function Si(e,t,r,n){var a=[],i=[],l=0,s=Math.min(e.length,t.length)-1;for(e[s]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<=s;)a.push(r(e[l-1],e[l])),i.push(n(t[l-1],t[l]));return function(t){var r=o.bisect(e,t,1,s)-1;return i[r](a[r](t))}}function Ai(e,t,r,n){var a,o;function i(){var i=Math.min(e.length,t.length)>2?Si:ki,s=n?Eo:Mo;return a=i(e,t,s,r),o=i(t,e,s,no),l}function l(e){return a(e)}return l.invert=function(e){return o(e)},l.domain=function(t){return arguments.length?(e=t.map(Number),i()):e},l.range=function(e){return arguments.length?(t=e,i()):t},l.rangeRound=function(e){return l.range(e).interpolate(yo)},l.clamp=function(e){return arguments.length?(n=e,i()):n},l.interpolate=function(e){return arguments.length?(r=e,i()):r},l.ticks=function(t){return Di(e,t)},l.tickFormat=function(t,r){return Ii(e,t,r)},l.nice=function(t){return Pi(e,t),i()},l.copy=function(){return Ai(e,t,r,n)},i()}function Oi(e,t){return o.rebind(e,t,"range","rangeRound","interpolate","clamp")}function Pi(e,t){return Mi(e,Ei(Li(e,t)[2])),Mi(e,Ei(Li(e,t)[2])),e}function Li(e,t){null==t&&(t=10);var r=wi(e),n=r[1]-r[0],a=Math.pow(10,Math.floor(Math.log(n/t)/Math.LN10)),o=t/n*a;return o<=.15?a*=10:o<=.35?a*=5:o<=.75&&(a*=2),r[0]=Math.ceil(r[0]/a)*a,r[1]=Math.floor(r[1]/a)*a+.5*a,r[2]=a,r}function Di(e,t){return o.range.apply(o,Li(e,t))}function Ii(e,t,r){var n=Li(e,t);if(r){var a=It.exec(r);if(a.shift(),"s"===a[8]){var i=o.formatPrefix(Math.max(w(n[0]),w(n[1])));return a[7]||(a[7]="."+ji(i.scale(n[2]))),a[8]="f",r=o.format(a.join("")),function(e){return r(i.scale(e))+i.symbol}}a[7]||(a[7]="."+function(e,t){var r=ji(t[2]);return e in Ri?Math.abs(r-ji(Math.max(w(t[0]),w(t[1]))))+ +("e"!==e):r-2*("%"===e)}(a[8],n)),r=a.join("")}else r=",."+ji(n[2])+"f";return o.format(r)}o.scale.linear=function(){return Ai([0,1],[0,1],no,!1)};var Ri={s:1,g:1,p:1,r:1,e:1};function ji(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}function zi(e,t,r,n){function a(e){return(r?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(t)}function i(e){return r?Math.pow(t,e):-Math.pow(t,-e)}function l(t){return e(a(t))}return l.invert=function(t){return i(e.invert(t))},l.domain=function(t){return arguments.length?(r=t[0]>=0,e.domain((n=t.map(Number)).map(a)),l):n},l.base=function(r){return arguments.length?(t=+r,e.domain(n.map(a)),l):t},l.nice=function(){var t=Mi(n.map(a),r?Math:Fi);return e.domain(t),n=t.map(i),l},l.ticks=function(){var e=wi(n),o=[],l=e[0],s=e[1],u=Math.floor(a(l)),c=Math.ceil(a(s)),f=t%1?2:t;if(isFinite(c-u)){if(r){for(;u<c;u++)for(var p=1;p<f;p++)o.push(i(u)*p);o.push(i(u))}else for(o.push(i(u));u++<c;)for(p=f-1;p>0;p--)o.push(i(u)*p);for(u=0;o[u]<l;u++);for(c=o.length;o[c-1]>s;c--);o=o.slice(u,c)}return o},l.tickFormat=function(e,r){if(!arguments.length)return Ni;arguments.length<2?r=Ni:"function"!==typeof r&&(r=o.format(r));var n=Math.max(1,t*e/l.ticks().length);return function(e){var o=e/i(Math.round(a(e)));return o*t<t-.5&&(o*=t),o<=n?r(e):""}},l.copy=function(){return zi(e.copy(),t,r,n)},Oi(l,e)}o.scale.log=function(){return zi(o.scale.linear().domain([0,1]),10,!0,[1,10])};var Ni=o.format(".0e"),Fi={floor:function(e){return-Math.ceil(-e)},ceil:function(e){return-Math.floor(-e)}};function Bi(e,t,r){var n=Hi(t),a=Hi(1/t);function o(t){return e(n(t))}return o.invert=function(t){return a(e.invert(t))},o.domain=function(t){return arguments.length?(e.domain((r=t.map(Number)).map(n)),o):r},o.ticks=function(e){return Di(r,e)},o.tickFormat=function(e,t){return Ii(r,e,t)},o.nice=function(e){return o.domain(Pi(r,e))},o.exponent=function(i){return arguments.length?(n=Hi(t=i),a=Hi(1/t),e.domain(r.map(n)),o):t},o.copy=function(){return Bi(e.copy(),t,r)},Oi(o,e)}function Hi(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Vi(e,t){var r,n,a;function i(a){return n[((r.get(a)||("range"===t.t?r.set(a,e.push(a)):NaN))-1)%n.length]}function l(t,r){return o.range(e.length).map((function(e){return t+r*e}))}return i.domain=function(n){if(!arguments.length)return e;e=[],r=new k;for(var a,o=-1,l=n.length;++o<l;)r.has(a=n[o])||r.set(a,e.push(a));return i[t.t].apply(i,t.a)},i.range=function(e){return arguments.length?(n=e,a=0,t={t:"range",a:arguments},i):n},i.rangePoints=function(r,o){arguments.length<2&&(o=0);var s=r[0],u=r[1],c=e.length<2?(s=(s+u)/2,0):(u-s)/(e.length-1+o);return n=l(s+c*o/2,c),a=0,t={t:"rangePoints",a:arguments},i},i.rangeRoundPoints=function(r,o){arguments.length<2&&(o=0);var s=r[0],u=r[1],c=e.length<2?(s=u=Math.round((s+u)/2),0):(u-s)/(e.length-1+o)|0;return n=l(s+Math.round(c*o/2+(u-s-(e.length-1+o)*c)/2),c),a=0,t={t:"rangeRoundPoints",a:arguments},i},i.rangeBands=function(r,o,s){arguments.length<2&&(o=0),arguments.length<3&&(s=o);var u=r[1]<r[0],c=r[u-0],f=(r[1-u]-c)/(e.length-o+2*s);return n=l(c+f*s,f),u&&n.reverse(),a=f*(1-o),t={t:"rangeBands",a:arguments},i},i.rangeRoundBands=function(r,o,s){arguments.length<2&&(o=0),arguments.length<3&&(s=o);var u=r[1]<r[0],c=r[u-0],f=r[1-u],p=Math.floor((f-c)/(e.length-o+2*s));return n=l(c+Math.round((f-c-(e.length-o)*p)/2),p),u&&n.reverse(),a=Math.round(p*(1-o)),t={t:"rangeRoundBands",a:arguments},i},i.rangeBand=function(){return a},i.rangeExtent=function(){return wi(t.a[0])},i.copy=function(){return Vi(e,t)},i.domain(e)}o.scale.pow=function(){return Bi(o.scale.linear(),1,[0,1])},o.scale.sqrt=function(){return o.scale.pow().exponent(.5)},o.scale.ordinal=function(){return Vi([],{t:"range",a:[[]]})},o.scale.category10=function(){return o.scale.ordinal().range(Ui)},o.scale.category20=function(){return o.scale.ordinal().range(qi)},o.scale.category20b=function(){return o.scale.ordinal().range(Gi)},o.scale.category20c=function(){return o.scale.ordinal().range(Wi)};var Ui=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(ct),qi=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(ct),Gi=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(ct),Wi=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(ct);function Yi(e,t){var r;function n(){var n=0,i=t.length;for(r=[];++n<i;)r[n-1]=o.quantile(e,n/i);return a}function a(e){if(!isNaN(e=+e))return t[o.bisect(r,e)]}return a.domain=function(t){return arguments.length?(e=t.map(g).filter(y).sort(m),n()):e},a.range=function(e){return arguments.length?(t=e,n()):t},a.quantiles=function(){return r},a.invertExtent=function(n){return(n=t.indexOf(n))<0?[NaN,NaN]:[n>0?r[n-1]:e[0],n<r.length?r[n]:e[e.length-1]]},a.copy=function(){return Yi(e,t)},n()}function Ki(e,t,r){var n,a;function o(t){return r[Math.max(0,Math.min(a,Math.floor(n*(t-e))))]}function i(){return n=r.length/(t-e),a=r.length-1,o}return o.domain=function(r){return arguments.length?(e=+r[0],t=+r[r.length-1],i()):[e,t]},o.range=function(e){return arguments.length?(r=e,i()):r},o.invertExtent=function(t){return[t=(t=r.indexOf(t))<0?NaN:t/n+e,t+1/n]},o.copy=function(){return Ki(e,t,r)},i()}function Xi(e,t){function r(r){if(r<=r)return t[o.bisect(e,r)]}return r.domain=function(t){return arguments.length?(e=t,r):e},r.range=function(e){return arguments.length?(t=e,r):t},r.invertExtent=function(r){return r=t.indexOf(r),[e[r-1],e[r]]},r.copy=function(){return Xi(e,t)},r}function Zi(e){function t(e){return+e}return t.invert=t,t.domain=t.range=function(r){return arguments.length?(e=r.map(t),t):e},t.ticks=function(t){return Di(e,t)},t.tickFormat=function(t,r){return Ii(e,t,r)},t.copy=function(){return Zi(e)},t}function Ji(){return 0}o.scale.quantile=function(){return Yi([],[])},o.scale.quantize=function(){return Ki(0,1,[0,1])},o.scale.threshold=function(){return Xi([.5],[0,1])},o.scale.identity=function(){return Zi([0,1])},o.svg={},o.svg.arc=function(){var e=Qi,t=el,r=Ji,n=$i,a=tl,o=rl,i=nl;function l(){var l=Math.max(0,+e.apply(this,arguments)),u=Math.max(0,+t.apply(this,arguments)),c=a.apply(this,arguments)-Pe,f=o.apply(this,arguments)-Pe,p=Math.abs(f-c),d=c>f?0:1;if(u<l&&(h=u,u=l,l=h),p>=Oe)return s(u,d)+(l?s(l,1-d):"")+"Z";var h,v,m,g,y,b,_,x,w,T,k,M,E=0,C=0,S=[];if((g=(+i.apply(this,arguments)||0)/2)&&(m=n===$i?Math.sqrt(l*l+u*u):+n.apply(this,arguments),d||(C*=-1),u&&(C=ze(m/u*Math.sin(g))),l&&(E=ze(m/l*Math.sin(g)))),u){y=u*Math.cos(c+C),b=u*Math.sin(c+C),_=u*Math.cos(f-C),x=u*Math.sin(f-C);var A=Math.abs(f-c-2*C)<=Se?0:1;if(C&&al(y,b,_,x)===d^A){var O=(c+f)/2;y=u*Math.cos(O),b=u*Math.sin(O),_=x=null}}else y=b=0;if(l){w=l*Math.cos(f-E),T=l*Math.sin(f-E),k=l*Math.cos(c+E),M=l*Math.sin(c+E);var P=Math.abs(c-f+2*E)<=Se?0:1;if(E&&al(w,T,k,M)===1-d^P){var L=(c+f)/2;w=l*Math.cos(L),T=l*Math.sin(L),k=M=null}}else w=T=0;if(p>Ee&&(h=Math.min(Math.abs(u-l)/2,+r.apply(this,arguments)))>.001){v=l<u^d?0:1;var D=h,I=h;if(p<Se){var R=null==k?[w,T]:null==_?[y,b]:pa([y,b],[k,M],[_,x],[w,T]),j=y-R[0],z=b-R[1],N=_-R[0],F=x-R[1],B=1/Math.sin(Math.acos((j*N+z*F)/(Math.sqrt(j*j+z*z)*Math.sqrt(N*N+F*F)))/2),H=Math.sqrt(R[0]*R[0]+R[1]*R[1]);I=Math.min(h,(l-H)/(B-1)),D=Math.min(h,(u-H)/(B+1))}if(null!=_){var V=ol(null==k?[w,T]:[k,M],[y,b],u,D,d),U=ol([_,x],[w,T],u,D,d);h===D?S.push("M",V[0],"A",D,",",D," 0 0,",v," ",V[1],"A",u,",",u," 0 ",1-d^al(V[1][0],V[1][1],U[1][0],U[1][1]),",",d," ",U[1],"A",D,",",D," 0 0,",v," ",U[0]):S.push("M",V[0],"A",D,",",D," 0 1,",v," ",U[0])}else S.push("M",y,",",b);if(null!=k){var q=ol([y,b],[k,M],l,-I,d),G=ol([w,T],null==_?[y,b]:[_,x],l,-I,d);h===I?S.push("L",G[0],"A",I,",",I," 0 0,",v," ",G[1],"A",l,",",l," 0 ",d^al(G[1][0],G[1][1],q[1][0],q[1][1]),",",1-d," ",q[1],"A",I,",",I," 0 0,",v," ",q[0]):S.push("L",G[0],"A",I,",",I," 0 0,",v," ",q[0])}else S.push("L",w,",",T)}else S.push("M",y,",",b),null!=_&&S.push("A",u,",",u," 0 ",A,",",d," ",_,",",x),S.push("L",w,",",T),null!=k&&S.push("A",l,",",l," 0 ",P,",",1-d," ",k,",",M);return S.push("Z"),S.join("")}function s(e,t){return"M0,"+e+"A"+e+","+e+" 0 1,"+t+" 0,"+-e+"A"+e+","+e+" 0 1,"+t+" 0,"+e}return l.innerRadius=function(t){return arguments.length?(e=bt(t),l):e},l.outerRadius=function(e){return arguments.length?(t=bt(e),l):t},l.cornerRadius=function(e){return arguments.length?(r=bt(e),l):r},l.padRadius=function(e){return arguments.length?(n=e==$i?$i:bt(e),l):n},l.startAngle=function(e){return arguments.length?(a=bt(e),l):a},l.endAngle=function(e){return arguments.length?(o=bt(e),l):o},l.padAngle=function(e){return arguments.length?(i=bt(e),l):i},l.centroid=function(){var r=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,n=(+a.apply(this,arguments)+ +o.apply(this,arguments))/2-Pe;return[Math.cos(n)*r,Math.sin(n)*r]},l};var $i="auto";function Qi(e){return e.innerRadius}function el(e){return e.outerRadius}function tl(e){return e.startAngle}function rl(e){return e.endAngle}function nl(e){return e&&e.padAngle}function al(e,t,r,n){return(e-r)*t-(t-n)*e>0?0:1}function ol(e,t,r,n,a){var o=e[0]-t[0],i=e[1]-t[1],l=(a?n:-n)/Math.sqrt(o*o+i*i),s=l*i,u=-l*o,c=e[0]+s,f=e[1]+u,p=t[0]+s,d=t[1]+u,h=(c+p)/2,v=(f+d)/2,m=p-c,g=d-f,y=m*m+g*g,b=r-n,_=c*d-p*f,x=(g<0?-1:1)*Math.sqrt(Math.max(0,b*b*y-_*_)),w=(_*g-m*x)/y,T=(-_*m-g*x)/y,k=(_*g+m*x)/y,M=(-_*m+g*x)/y,E=w-h,C=T-v,S=k-h,A=M-v;return E*E+C*C>S*S+A*A&&(w=k,T=M),[[w-s,T-u],[w*r/b,T*r/b]]}function il(e){var t=ia,r=la,n=Jr,a=sl,o=a.key,i=.7;function l(o){var l,s=[],u=[],c=-1,f=o.length,p=bt(t),d=bt(r);function h(){s.push("M",a(e(u),i))}for(;++c<f;)n.call(this,l=o[c],c)?u.push([+p.call(this,l,c),+d.call(this,l,c)]):u.length&&(h(),u=[]);return u.length&&h(),s.length?s.join(""):null}return l.x=function(e){return arguments.length?(t=e,l):t},l.y=function(e){return arguments.length?(r=e,l):r},l.defined=function(e){return arguments.length?(n=e,l):n},l.interpolate=function(e){return arguments.length?(o="function"===typeof e?a=e:(a=ll.get(e)||sl).key,l):o},l.tension=function(e){return arguments.length?(i=e,l):i},l}o.svg.line=function(){return il(D)};var ll=o.map({linear:sl,"linear-closed":ul,step:function(e){var t=0,r=e.length,n=e[0],a=[n[0],",",n[1]];for(;++t<r;)a.push("H",(n[0]+(n=e[t])[0])/2,"V",n[1]);r>1&&a.push("H",n[0]);return a.join("")},"step-before":cl,"step-after":fl,basis:hl,"basis-open":function(e){if(e.length<4)return sl(e);var t,r=[],n=-1,a=e.length,o=[0],i=[0];for(;++n<3;)t=e[n],o.push(t[0]),i.push(t[1]);r.push(vl(yl,o)+","+vl(yl,i)),--n;for(;++n<a;)t=e[n],o.shift(),o.push(t[0]),i.shift(),i.push(t[1]),bl(r,o,i);return r.join("")},"basis-closed":function(e){var t,r,n=-1,a=e.length,o=a+4,i=[],l=[];for(;++n<4;)r=e[n%a],i.push(r[0]),l.push(r[1]);t=[vl(yl,i),",",vl(yl,l)],--n;for(;++n<o;)r=e[n%a],i.shift(),i.push(r[0]),l.shift(),l.push(r[1]),bl(t,i,l);return t.join("")},bundle:function(e,t){var r=e.length-1;if(r)for(var n,a,o=e[0][0],i=e[0][1],l=e[r][0]-o,s=e[r][1]-i,u=-1;++u<=r;)a=u/r,(n=e[u])[0]=t*n[0]+(1-t)*(o+a*l),n[1]=t*n[1]+(1-t)*(i+a*s);return hl(e)},cardinal:function(e,t){return e.length<3?sl(e):e[0]+pl(e,dl(e,t))},"cardinal-open":function(e,t){return e.length<4?sl(e):e[1]+pl(e.slice(1,-1),dl(e,t))},"cardinal-closed":function(e,t){return e.length<3?ul(e):e[0]+pl((e.push(e[0]),e),dl([e[e.length-2]].concat(e,[e[1]]),t))},monotone:function(e){return e.length<3?sl(e):e[0]+pl(e,function(e){var t,r,n,a,o=[],i=function(e){var t=0,r=e.length-1,n=[],a=e[0],o=e[1],i=n[0]=_l(a,o);for(;++t<r;)n[t]=(i+(i=_l(a=o,o=e[t+1])))/2;return n[t]=i,n}(e),l=-1,s=e.length-1;for(;++l<s;)t=_l(e[l],e[l+1]),w(t)<Ee?i[l]=i[l+1]=0:(a=(r=i[l]/t)*r+(n=i[l+1]/t)*n)>9&&(a=3*t/Math.sqrt(a),i[l]=a*r,i[l+1]=a*n);l=-1;for(;++l<=s;)a=(e[Math.min(s,l+1)][0]-e[Math.max(0,l-1)][0])/(6*(1+i[l]*i[l])),o.push([a||0,i[l]*a||0]);return o}(e))}});function sl(e){return e.length>1?e.join("L"):e+"Z"}function ul(e){return e.join("L")+"Z"}function cl(e){for(var t=0,r=e.length,n=e[0],a=[n[0],",",n[1]];++t<r;)a.push("V",(n=e[t])[1],"H",n[0]);return a.join("")}function fl(e){for(var t=0,r=e.length,n=e[0],a=[n[0],",",n[1]];++t<r;)a.push("H",(n=e[t])[0],"V",n[1]);return a.join("")}function pl(e,t){if(t.length<1||e.length!=t.length&&e.length!=t.length+2)return sl(e);var r=e.length!=t.length,n="",a=e[0],o=e[1],i=t[0],l=i,s=1;if(r&&(n+="Q"+(o[0]-2*i[0]/3)+","+(o[1]-2*i[1]/3)+","+o[0]+","+o[1],a=e[1],s=2),t.length>1){l=t[1],o=e[s],s++,n+="C"+(a[0]+i[0])+","+(a[1]+i[1])+","+(o[0]-l[0])+","+(o[1]-l[1])+","+o[0]+","+o[1];for(var u=2;u<t.length;u++,s++)o=e[s],l=t[u],n+="S"+(o[0]-l[0])+","+(o[1]-l[1])+","+o[0]+","+o[1]}if(r){var c=e[s];n+="Q"+(o[0]+2*l[0]/3)+","+(o[1]+2*l[1]/3)+","+c[0]+","+c[1]}return n}function dl(e,t){for(var r,n=[],a=(1-t)/2,o=e[0],i=e[1],l=1,s=e.length;++l<s;)r=o,o=i,i=e[l],n.push([a*(i[0]-r[0]),a*(i[1]-r[1])]);return n}function hl(e){if(e.length<3)return sl(e);var t=1,r=e.length,n=e[0],a=n[0],o=n[1],i=[a,a,a,(n=e[1])[0]],l=[o,o,o,n[1]],s=[a,",",o,"L",vl(yl,i),",",vl(yl,l)];for(e.push(e[r-1]);++t<=r;)n=e[t],i.shift(),i.push(n[0]),l.shift(),l.push(n[1]),bl(s,i,l);return e.pop(),s.push("L",n),s.join("")}function vl(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}ll.forEach((function(e,t){t.key=e,t.closed=/-closed$/.test(e)}));var ml=[0,2/3,1/3,0],gl=[0,1/3,2/3,0],yl=[0,1/6,2/3,1/6];function bl(e,t,r){e.push("C",vl(ml,t),",",vl(ml,r),",",vl(gl,t),",",vl(gl,r),",",vl(yl,t),",",vl(yl,r))}function _l(e,t){return(t[1]-e[1])/(t[0]-e[0])}function xl(e){for(var t,r,n,a=-1,o=e.length;++a<o;)r=(t=e[a])[0],n=t[1]-Pe,t[0]=r*Math.cos(n),t[1]=r*Math.sin(n);return e}function wl(e){var t=ia,r=ia,n=0,a=la,o=Jr,i=sl,l=i.key,s=i,u="L",c=.7;function f(l){var f,p,d,h=[],v=[],m=[],g=-1,y=l.length,b=bt(t),_=bt(n),x=t===r?function(){return p}:bt(r),w=n===a?function(){return d}:bt(a);function T(){h.push("M",i(e(m),c),u,s(e(v.reverse()),c),"Z")}for(;++g<y;)o.call(this,f=l[g],g)?(v.push([p=+b.call(this,f,g),d=+_.call(this,f,g)]),m.push([+x.call(this,f,g),+w.call(this,f,g)])):v.length&&(T(),v=[],m=[]);return v.length&&T(),h.length?h.join(""):null}return f.x=function(e){return arguments.length?(t=r=e,f):r},f.x0=function(e){return arguments.length?(t=e,f):t},f.x1=function(e){return arguments.length?(r=e,f):r},f.y=function(e){return arguments.length?(n=a=e,f):a},f.y0=function(e){return arguments.length?(n=e,f):n},f.y1=function(e){return arguments.length?(a=e,f):a},f.defined=function(e){return arguments.length?(o=e,f):o},f.interpolate=function(e){return arguments.length?(l="function"===typeof e?i=e:(i=ll.get(e)||sl).key,s=i.reverse||i,u=i.closed?"M":"L",f):l},f.tension=function(e){return arguments.length?(c=e,f):c},f}function Tl(e){return e.radius}function kl(e){return[e.x,e.y]}function Ml(){return 64}function El(){return"circle"}function Cl(e){var t=Math.sqrt(e/Se);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}o.svg.line.radial=function(){var e=il(xl);return e.radius=e.x,delete e.x,e.angle=e.y,delete e.y,e},cl.reverse=fl,fl.reverse=cl,o.svg.area=function(){return wl(D)},o.svg.area.radial=function(){var e=wl(xl);return e.radius=e.x,delete e.x,e.innerRadius=e.x0,delete e.x0,e.outerRadius=e.x1,delete e.x1,e.angle=e.y,delete e.y,e.startAngle=e.y0,delete e.y0,e.endAngle=e.y1,delete e.y1,e},o.svg.chord=function(){var e=Wn,t=Yn,r=Tl,n=tl,a=rl;function o(r,n){var a,o,u=i(this,e,r,n),c=i(this,t,r,n);return"M"+u.p0+l(u.r,u.p1,u.a1-u.a0)+(o=c,((a=u).a0==o.a0&&a.a1==o.a1?s(u.r,u.p1,u.r,u.p0):s(u.r,u.p1,c.r,c.p0)+l(c.r,c.p1,c.a1-c.a0)+s(c.r,c.p1,u.r,u.p0))+"Z")}function i(e,t,o,i){var l=t.call(e,o,i),s=r.call(e,l,i),u=n.call(e,l,i)-Pe,c=a.call(e,l,i)-Pe;return{r:s,a0:u,a1:c,p0:[s*Math.cos(u),s*Math.sin(u)],p1:[s*Math.cos(c),s*Math.sin(c)]}}function l(e,t,r){return"A"+e+","+e+" 0 "+ +(r>Se)+",1 "+t}function s(e,t,r,n){return"Q 0,0 "+n}return o.radius=function(e){return arguments.length?(r=bt(e),o):r},o.source=function(t){return arguments.length?(e=bt(t),o):e},o.target=function(e){return arguments.length?(t=bt(e),o):t},o.startAngle=function(e){return arguments.length?(n=bt(e),o):n},o.endAngle=function(e){return arguments.length?(a=bt(e),o):a},o},o.svg.diagonal=function(){var e=Wn,t=Yn,r=kl;function n(n,a){var o=e.call(this,n,a),i=t.call(this,n,a),l=(o.y+i.y)/2,s=[o,{x:o.x,y:l},{x:i.x,y:l},i];return"M"+(s=s.map(r))[0]+"C"+s[1]+" "+s[2]+" "+s[3]}return n.source=function(t){return arguments.length?(e=bt(t),n):e},n.target=function(e){return arguments.length?(t=bt(e),n):t},n.projection=function(e){return arguments.length?(r=e,n):r},n},o.svg.diagonal.radial=function(){var e=o.svg.diagonal(),t=kl,r=e.projection;return e.projection=function(e){return arguments.length?r(function(e){return function(){var t=e.apply(this,arguments),r=t[0],n=t[1]-Pe;return[r*Math.cos(n),r*Math.sin(n)]}}(t=e)):t},e},o.svg.symbol=function(){var e=El,t=Ml;function r(r,n){return(Sl.get(e.call(this,r,n))||Cl)(t.call(this,r,n))}return r.type=function(t){return arguments.length?(e=bt(t),r):e},r.size=function(e){return arguments.length?(t=bt(e),r):t},r};var Sl=o.map({circle:Cl,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*Ol)),r=t*Ol;return"M0,"+-t+"L"+r+",0 0,"+t+" "+-r+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/Al),r=t*Al/2;return"M0,"+r+"L"+t+","+-r+" "+-t+","+-r+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/Al),r=t*Al/2;return"M0,"+-r+"L"+t+","+r+" "+-t+","+r+"Z"}});o.svg.symbolTypes=Sl.keys();var Al=Math.sqrt(3),Ol=Math.tan(30*Le);X.transition=function(e){for(var t,r,n=Il||++zl,a=Bl(e),o=[],i=Rl||{time:Date.now(),ease:po,delay:0,duration:250},l=-1,s=this.length;++l<s;){o.push(t=[]);for(var u=this[l],c=-1,f=u.length;++c<f;)(r=u[c])&&Hl(r,c,a,n,i),t.push(r)}return Dl(o,a,n)},X.interrupt=function(e){return this.each(null==e?Pl:Ll(Bl(e)))};var Pl=Ll(Bl());function Ll(e){return function(){var t,r,n;(t=this[e])&&(n=t[r=t.active])&&(n.timer.c=null,n.timer.t=NaN,--t.count?delete t[r]:delete this[e],t.active+=.5,n.event&&n.event.interrupt.call(this,this.__data__,n.index))}}function Dl(e,t,r){return q(e,jl),e.namespace=t,e.id=r,e}var Il,Rl,jl=[],zl=0;function Nl(e,t,r,n){var a=e.id,o=e.namespace;return de(e,"function"===typeof r?function(e,i,l){e[o][a].tween.set(t,n(r.call(e,e.__data__,i,l)))}:(r=n(r),function(e){e[o][a].tween.set(t,r)}))}function Fl(e){return null==e&&(e=""),function(){this.textContent=e}}function Bl(e){return null==e?"__transition__":"__transition_"+e+"__"}function Hl(e,t,r,n,a){var o,i,l,s,u,c=e[r]||(e[r]={active:0,count:0}),f=c[n];function p(r){var a=c.active,p=c[a];for(var h in p&&(p.timer.c=null,p.timer.t=NaN,--c.count,delete c[a],p.event&&p.event.interrupt.call(e,e.__data__,p.index)),c)if(+h<n){var v=c[h];v.timer.c=null,v.timer.t=NaN,--c.count,delete c[h]}i.c=d,Ct((function(){return i.c&&d(r||1)&&(i.c=null,i.t=NaN),1}),0,o),c.active=n,f.event&&f.event.start.call(e,e.__data__,t),u=[],f.tween.forEach((function(r,n){(n=n.call(e,e.__data__,t))&&u.push(n)})),s=f.ease,l=f.duration}function d(a){for(var o=a/l,i=s(o),p=u.length;p>0;)u[--p].call(e,i);if(o>=1)return f.event&&f.event.end.call(e,e.__data__,t),--c.count?delete c[n]:delete e[r],1}f||(o=a.time,i=Ct((function(e){var t=f.delay;if(i.t=t+o,t<=e)return p(e-t);i.c=p}),0,o),f=c[n]={tween:new k,time:o,timer:i,delay:a.delay,duration:a.duration,ease:a.ease,index:t},a=null,++c.count)}jl.call=X.call,jl.empty=X.empty,jl.node=X.node,jl.size=X.size,o.transition=function(e,t){return e&&e.transition?Il?e.transition(t):e:o.selection().transition(e)},o.transition.prototype=jl,jl.select=function(e){var t,r,n,a=this.id,o=this.namespace,i=[];e=Z(e);for(var l=-1,s=this.length;++l<s;){i.push(t=[]);for(var u=this[l],c=-1,f=u.length;++c<f;)(n=u[c])&&(r=e.call(n,n.__data__,c,l))?("__data__"in n&&(r.__data__=n.__data__),Hl(r,c,o,a,n[o][a]),t.push(r)):t.push(null)}return Dl(i,o,a)},jl.selectAll=function(e){var t,r,n,a,o,i=this.id,l=this.namespace,s=[];e=J(e);for(var u=-1,c=this.length;++u<c;)for(var f=this[u],p=-1,d=f.length;++p<d;)if(n=f[p]){o=n[l][i],r=e.call(n,n.__data__,p,u),s.push(t=[]);for(var h=-1,v=r.length;++h<v;)(a=r[h])&&Hl(a,h,l,i,o),t.push(a)}return Dl(s,l,i)},jl.filter=function(e){var t,r,n=[];"function"!==typeof e&&(e=fe(e));for(var a=0,o=this.length;a<o;a++){n.push(t=[]);for(var i,l=0,s=(i=this[a]).length;l<s;l++)(r=i[l])&&e.call(r,r.__data__,l,a)&&t.push(r)}return Dl(n,this.namespace,this.id)},jl.tween=function(e,t){var r=this.id,n=this.namespace;return arguments.length<2?this.node()[n][r].tween.get(e):de(this,null==t?function(t){t[n][r].tween.remove(e)}:function(a){a[n][r].tween.set(e,t)})},jl.attr=function(e,t){if(arguments.length<2){for(t in e)this.attr(t,e[t]);return this}var r="transform"==e?ko:no,n=o.ns.qualify(e);function a(){this.removeAttribute(n)}function i(){this.removeAttributeNS(n.space,n.local)}return Nl(this,"attr."+e,t,n.local?function(e){return null==e?i:(e+="",function(){var t,a=this.getAttributeNS(n.space,n.local);return a!==e&&(t=r(a,e),function(e){this.setAttributeNS(n.space,n.local,t(e))})})}:function(e){return null==e?a:(e+="",function(){var t,a=this.getAttribute(n);return a!==e&&(t=r(a,e),function(e){this.setAttribute(n,t(e))})})})},jl.attrTween=function(e,t){var r=o.ns.qualify(e);return this.tween("attr."+e,r.local?function(e,n){var a=t.call(this,e,n,this.getAttributeNS(r.space,r.local));return a&&function(e){this.setAttributeNS(r.space,r.local,a(e))}}:function(e,n){var a=t.call(this,e,n,this.getAttribute(r));return a&&function(e){this.setAttribute(r,a(e))}})},jl.style=function(e,t,r){var n=arguments.length;if(n<3){if("string"!==typeof e){for(r in n<2&&(t=""),e)this.style(r,e[r],t);return this}r=""}function a(){this.style.removeProperty(e)}return Nl(this,"style."+e,t,(function(t){return null==t?a:(t+="",function(){var n,a=c(this).getComputedStyle(this,null).getPropertyValue(e);return a!==t&&(n=no(a,t),function(t){this.style.setProperty(e,n(t),r)})})}))},jl.styleTween=function(e,t,r){return arguments.length<3&&(r=""),this.tween("style."+e,(function(n,a){var o=t.call(this,n,a,c(this).getComputedStyle(this,null).getPropertyValue(e));return o&&function(t){this.style.setProperty(e,o(t),r)}}))},jl.text=function(e){return Nl(this,"text",e,Fl)},jl.remove=function(){var e=this.namespace;return this.each("end.transition",(function(){var t;this[e].count<2&&(t=this.parentNode)&&t.removeChild(this)}))},jl.ease=function(e){var t=this.id,r=this.namespace;return arguments.length<1?this.node()[r][t].ease:("function"!==typeof e&&(e=o.ease.apply(o,arguments)),de(this,(function(n){n[r][t].ease=e})))},jl.delay=function(e){var t=this.id,r=this.namespace;return arguments.length<1?this.node()[r][t].delay:de(this,"function"===typeof e?function(n,a,o){n[r][t].delay=+e.call(n,n.__data__,a,o)}:(e=+e,function(n){n[r][t].delay=e}))},jl.duration=function(e){var t=this.id,r=this.namespace;return arguments.length<1?this.node()[r][t].duration:de(this,"function"===typeof e?function(n,a,o){n[r][t].duration=Math.max(1,e.call(n,n.__data__,a,o))}:(e=Math.max(1,e),function(n){n[r][t].duration=e}))},jl.each=function(e,t){var r=this.id,n=this.namespace;if(arguments.length<2){var a=Rl,i=Il;try{Il=r,de(this,(function(t,a,o){Rl=t[n][r],e.call(t,t.__data__,a,o)}))}finally{Rl=a,Il=i}}else de(this,(function(a){var i=a[n][r];(i.event||(i.event=o.dispatch("start","end","interrupt"))).on(e,t)}));return this},jl.transition=function(){for(var e,t,r,n=this.id,a=++zl,o=this.namespace,i=[],l=0,s=this.length;l<s;l++){i.push(e=[]);for(var u,c=0,f=(u=this[l]).length;c<f;c++)(t=u[c])&&Hl(t,c,o,a,{time:(r=t[o][n]).time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration}),e.push(t)}return Dl(i,o,a)},o.svg.axis=function(){var e,t=o.scale.linear(),r=Vl,n=6,a=6,i=3,s=[10],u=null;function c(l){l.each((function(){var l,c=o.select(this),f=this.__chart__||t,p=this.__chart__=t.copy(),d=null==u?p.ticks?p.ticks.apply(p,s):p.domain():u,h=null==e?p.tickFormat?p.tickFormat.apply(p,s):D:e,v=c.selectAll(".tick").data(d,p),m=v.enter().insert("g",".domain").attr("class","tick").style("opacity",Ee),g=o.transition(v.exit()).style("opacity",Ee).remove(),y=o.transition(v.order()).style("opacity",1),b=Math.max(n,0)+i,_=Ti(p),x=c.selectAll(".domain").data([0]),w=(x.enter().append("path").attr("class","domain"),o.transition(x));m.append("line"),m.append("text");var T,k,M,E,C=m.select("line"),S=y.select("line"),A=v.select("text").text(h),O=m.select("text"),P=y.select("text"),L="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(l=ql,T="x",M="y",k="x2",E="y2",A.attr("dy",L<0?"0em":".71em").style("text-anchor","middle"),w.attr("d","M"+_[0]+","+L*a+"V0H"+_[1]+"V"+L*a)):(l=Gl,T="y",M="x",k="y2",E="x2",A.attr("dy",".32em").style("text-anchor",L<0?"end":"start"),w.attr("d","M"+L*a+","+_[0]+"H0V"+_[1]+"H"+L*a)),C.attr(E,L*n),O.attr(M,L*b),S.attr(k,0).attr(E,L*n),P.attr(T,0).attr(M,L*b),p.rangeBand){var I=p,R=I.rangeBand()/2;f=p=function(e){return I(e)+R}}else f.rangeBand?f=p:g.call(l,p,f);m.call(l,f,p),y.call(l,p,p)}))}return c.scale=function(e){return arguments.length?(t=e,c):t},c.orient=function(e){return arguments.length?(r=e in Ul?e+"":Vl,c):r},c.ticks=function(){return arguments.length?(s=l(arguments),c):s},c.tickValues=function(e){return arguments.length?(u=e,c):u},c.tickFormat=function(t){return arguments.length?(e=t,c):e},c.tickSize=function(e){var t=arguments.length;return t?(n=+e,a=+arguments[t-1],c):n},c.innerTickSize=function(e){return arguments.length?(n=+e,c):n},c.outerTickSize=function(e){return arguments.length?(a=+e,c):a},c.tickPadding=function(e){return arguments.length?(i=+e,c):i},c.tickSubdivide=function(){return arguments.length&&c},c};var Vl="bottom",Ul={top:1,right:1,bottom:1,left:1};function ql(e,t,r){e.attr("transform",(function(e){var n=t(e);return"translate("+(isFinite(n)?n:r(e))+",0)"}))}function Gl(e,t,r){e.attr("transform",(function(e){var n=t(e);return"translate(0,"+(isFinite(n)?n:r(e))+")"}))}o.svg.brush=function(){var e,t,r=V(p,"brushstart","brush","brushend"),n=null,a=null,i=[0,0],l=[0,0],s=!0,u=!0,f=Yl[0];function p(e){e.each((function(){var e=o.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",m).on("touchstart.brush",m),t=e.selectAll(".background").data([0]);t.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),e.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var r=e.selectAll(".resize").data(f,D);r.exit().remove(),r.enter().append("g").attr("class",(function(e){return"resize "+e})).style("cursor",(function(e){return Wl[e]})).append("rect").attr("x",(function(e){return/[ew]$/.test(e)?-3:null})).attr("y",(function(e){return/^[ns]/.test(e)?-3:null})).attr("width",6).attr("height",6).style("visibility","hidden"),r.style("display",p.empty()?"none":null);var i,l=o.transition(e),s=o.transition(t);n&&(i=Ti(n),s.attr("x",i[0]).attr("width",i[1]-i[0]),h(l)),a&&(i=Ti(a),s.attr("y",i[0]).attr("height",i[1]-i[0]),v(l)),d(l)}))}function d(e){e.selectAll(".resize").attr("transform",(function(e){return"translate("+i[+/e$/.test(e)]+","+l[+/^s/.test(e)]+")"}))}function h(e){e.select(".extent").attr("x",i[0]),e.selectAll(".extent,.n>rect,.s>rect").attr("width",i[1]-i[0])}function v(e){e.select(".extent").attr("y",l[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",l[1]-l[0])}function m(){var f,m,g=this,y=o.select(o.event.target),b=r.of(g,arguments),_=o.select(g),x=y.datum(),w=!/^(n|s)$/.test(x)&&n,T=!/^(e|w)$/.test(x)&&a,k=y.classed("extent"),M=we(g),E=o.mouse(g),C=o.select(c(g)).on("keydown.brush",(function(){32==o.event.keyCode&&(k||(f=null,E[0]-=i[1],E[1]-=l[1],k=2),B())})).on("keyup.brush",(function(){32==o.event.keyCode&&2==k&&(E[0]+=i[1],E[1]+=l[1],k=0,B())}));if(o.event.changedTouches?C.on("touchmove.brush",O).on("touchend.brush",L):C.on("mousemove.brush",O).on("mouseup.brush",L),_.interrupt().selectAll("*").interrupt(),k)E[0]=i[0]-E[0],E[1]=l[0]-E[1];else if(x){var S=+/w$/.test(x),A=+/^n/.test(x);m=[i[1-S]-E[0],l[1-A]-E[1]],E[0]=i[S],E[1]=l[A]}else o.event.altKey&&(f=E.slice());function O(){var e=o.mouse(g),t=!1;m&&(e[0]+=m[0],e[1]+=m[1]),k||(o.event.altKey?(f||(f=[(i[0]+i[1])/2,(l[0]+l[1])/2]),E[0]=i[+(e[0]<f[0])],E[1]=l[+(e[1]<f[1])]):f=null),w&&P(e,n,0)&&(h(_),t=!0),T&&P(e,a,1)&&(v(_),t=!0),t&&(d(_),b({type:"brush",mode:k?"move":"resize"}))}function P(r,n,a){var o,c,p=Ti(n),d=p[0],h=p[1],v=E[a],m=a?l:i,g=m[1]-m[0];if(k&&(d-=v,h-=g+v),o=(a?u:s)?Math.max(d,Math.min(h,r[a])):r[a],k?c=(o+=v)+g:(f&&(v=Math.max(d,Math.min(h,2*f[a]-o))),v<o?(c=o,o=v):c=v),m[0]!=o||m[1]!=c)return a?t=null:e=null,m[0]=o,m[1]=c,!0}function L(){O(),_.style("pointer-events","all").selectAll(".resize").style("display",p.empty()?"none":null),o.select("body").style("cursor",null),C.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),M(),b({type:"brushend"})}_.style("pointer-events","none").selectAll(".resize").style("display",null),o.select("body").style("cursor",y.style("cursor")),b({type:"brushstart"}),O()}return p.event=function(n){n.each((function(){var n=r.of(this,arguments),a={x:i,y:l,i:e,j:t},s=this.__chart__||a;this.__chart__=a,Il?o.select(this).transition().each("start.brush",(function(){e=s.i,t=s.j,i=s.x,l=s.y,n({type:"brushstart"})})).tween("brush:brush",(function(){var r=ao(i,a.x),o=ao(l,a.y);return e=t=null,function(e){i=a.x=r(e),l=a.y=o(e),n({type:"brush",mode:"resize"})}})).each("end.brush",(function(){e=a.i,t=a.j,n({type:"brush",mode:"resize"}),n({type:"brushend"})})):(n({type:"brushstart"}),n({type:"brush",mode:"resize"}),n({type:"brushend"}))}))},p.x=function(e){return arguments.length?(f=Yl[!(n=e)<<1|!a],p):n},p.y=function(e){return arguments.length?(f=Yl[!n<<1|!(a=e)],p):a},p.clamp=function(e){return arguments.length?(n&&a?(s=!!e[0],u=!!e[1]):n?s=!!e:a&&(u=!!e),p):n&&a?[s,u]:n?s:a?u:null},p.extent=function(r){var o,s,u,c,f;return arguments.length?(n&&(o=r[0],s=r[1],a&&(o=o[0],s=s[0]),e=[o,s],n.invert&&(o=n(o),s=n(s)),s<o&&(f=o,o=s,s=f),o==i[0]&&s==i[1]||(i=[o,s])),a&&(u=r[0],c=r[1],n&&(u=u[1],c=c[1]),t=[u,c],a.invert&&(u=a(u),c=a(c)),c<u&&(f=u,u=c,c=f),u==l[0]&&c==l[1]||(l=[u,c])),p):(n&&(e?(o=e[0],s=e[1]):(o=i[0],s=i[1],n.invert&&(o=n.invert(o),s=n.invert(s)),s<o&&(f=o,o=s,s=f))),a&&(t?(u=t[0],c=t[1]):(u=l[0],c=l[1],a.invert&&(u=a.invert(u),c=a.invert(c)),c<u&&(f=u,u=c,c=f))),n&&a?[[o,u],[s,c]]:n?[o,s]:a&&[u,c])},p.clear=function(){return p.empty()||(i=[0,0],l=[0,0],e=t=null),p},p.empty=function(){return!!n&&i[0]==i[1]||!!a&&l[0]==l[1]},o.rebind(p,r,"on")};var Wl={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Yl=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Kl=zt.format=pr.timeFormat,Xl=Kl.utc,Zl=Xl("%Y-%m-%dT%H:%M:%S.%LZ");function Jl(e){return e.toISOString()}function $l(e,t,r){function n(t){return e(t)}function a(e,r){var n=(e[1]-e[0])/r,a=o.bisect(es,n);return a==es.length?[t.year,Li(e.map((function(e){return e/31536e6})),r)[2]]:a?t[n/es[a-1]<es[a]/n?a-1:a]:[ns,Li(e,r)[2]]}return n.invert=function(t){return Ql(e.invert(t))},n.domain=function(t){return arguments.length?(e.domain(t),n):e.domain().map(Ql)},n.nice=function(e,t){var r=n.domain(),o=wi(r),i=null==e?a(o,10):"number"===typeof e&&a(o,e);function l(r){return!isNaN(r)&&!e.range(r,Ql(+r+1),t).length}return i&&(e=i[0],t=i[1]),n.domain(Mi(r,t>1?{floor:function(t){for(;l(t=e.floor(t));)t=Ql(t-1);return t},ceil:function(t){for(;l(t=e.ceil(t));)t=Ql(+t+1);return t}}:e))},n.ticks=function(e,t){var r=wi(n.domain()),o=null==e?a(r,10):"number"===typeof e?a(r,e):!e.range&&[{range:e},t];return o&&(e=o[0],t=o[1]),e.range(r[0],Ql(+r[1]+1),t<1?1:t)},n.tickFormat=function(){return r},n.copy=function(){return $l(e.copy(),t,r)},Oi(n,e)}function Ql(e){return new Date(e)}Kl.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Jl:Zl,Jl.parse=function(e){var t=new Date(e);return isNaN(t)?null:t},Jl.toString=Zl.toString,zt.second=Ht((function(e){return new Nt(1e3*Math.floor(e/1e3))}),(function(e,t){e.setTime(e.getTime()+1e3*Math.floor(t))}),(function(e){return e.getSeconds()})),zt.seconds=zt.second.range,zt.seconds.utc=zt.second.utc.range,zt.minute=Ht((function(e){return new Nt(6e4*Math.floor(e/6e4))}),(function(e,t){e.setTime(e.getTime()+6e4*Math.floor(t))}),(function(e){return e.getMinutes()})),zt.minutes=zt.minute.range,zt.minutes.utc=zt.minute.utc.range,zt.hour=Ht((function(e){var t=e.getTimezoneOffset()/60;return new Nt(36e5*(Math.floor(e/36e5-t)+t))}),(function(e,t){e.setTime(e.getTime()+36e5*Math.floor(t))}),(function(e){return e.getHours()})),zt.hours=zt.hour.range,zt.hours.utc=zt.hour.utc.range,zt.month=Ht((function(e){return(e=zt.day(e)).setDate(1),e}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e){return e.getMonth()})),zt.months=zt.month.range,zt.months.utc=zt.month.utc.range;var es=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],ts=[[zt.second,1],[zt.second,5],[zt.second,15],[zt.second,30],[zt.minute,1],[zt.minute,5],[zt.minute,15],[zt.minute,30],[zt.hour,1],[zt.hour,3],[zt.hour,6],[zt.hour,12],[zt.day,1],[zt.day,2],[zt.week,1],[zt.month,1],[zt.month,3],[zt.year,1]],rs=Kl.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",Jr]]),ns={range:function(e,t,r){return o.range(Math.ceil(e/r)*r,+t,r).map(Ql)},floor:D,ceil:D};ts.year=zt.year,zt.scale=function(){return $l(o.scale.linear(),ts,rs)};var as=ts.map((function(e){return[e[0].utc,e[1]]})),os=Xl.multi([[".%L",function(e){return e.getUTCMilliseconds()}],[":%S",function(e){return e.getUTCSeconds()}],["%I:%M",function(e){return e.getUTCMinutes()}],["%I %p",function(e){return e.getUTCHours()}],["%a %d",function(e){return e.getUTCDay()&&1!=e.getUTCDate()}],["%b %d",function(e){return 1!=e.getUTCDate()}],["%B",function(e){return e.getUTCMonth()}],["%Y",Jr]]);function is(e){return JSON.parse(e.responseText)}function ls(e){var t=s.createRange();return t.selectNode(s.body),t.createContextualFragment(e.responseText)}as.year=zt.year.utc,zt.scale.utc=function(){return $l(o.scale.linear(),as,os)},o.text=_t((function(e){return e.responseText})),o.json=function(e,t){return xt(e,"application/json",is,t)},o.html=function(e,t){return xt(e,"text/html",ls,t)},o.xml=_t((function(e){return e.responseXML})),this.d3=o,void 0===(a="function"===typeof(n=o)?n.call(t,r,t,e):n)||(e.exports=a)}()},59066:(e,t,r)=>{"use strict";var n=r(2613);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,a.default)(e,t)||("string"===typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var a=n(r(14483));e.exports=t.default},14483:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},86403:e=>{"use strict";function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,r){e.classList?e.classList.remove(r):"string"===typeof e.className?e.className=t(e.className,r):e.setAttribute("class",t(e.className&&e.className.baseVal||"",r))}},51608:(e,t,r)=>{"use strict";function n(e,t,r){for(var n=e.text,o=e.characterMeta,i=t.length,l=r.length,s=[],u=o.slice(0,0),c=0,f=n.indexOf(t);-1!==f;)s.push(n.slice(c,f)+r),u=u.concat(o.slice(c,f),a(o.slice(f,f+1),l)),c=f+i,f=n.indexOf(t,c);return s.push(n.slice(c)),u=u.concat(o.slice(c)),{text:s.join(""),characterMeta:u}}function a(e,t){for(var r=e.slice(0,0);t-- >0;)r=r.concat(e);return r}r.r(t),r.d(t,{stateFromHTML:()=>O});var o=r(54410),i=r(64453),l=r(77530);var s={a:1,abbr:1,area:1,audio:1,b:1,bdi:1,bdo:1,br:1,button:1,canvas:1,cite:1,code:1,command:1,datalist:1,del:1,dfn:1,em:1,embed:1,i:1,iframe:1,img:1,input:1,ins:1,kbd:1,keygen:1,label:1,map:1,mark:1,meter:1,noscript:1,object:1,output:1,progress:1,q:1,ruby:1,s:1,samp:1,script:1,select:1,small:1,span:1,strong:1,sub:1,sup:1,textarea:1,time:1,u:1,var:1,video:1,wbr:1,acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1},u={area:1,base:1,br:1,col:1,colgroup:1,command:1,dl:1,embed:1,head:1,hgroup:1,hr:1,iframe:1,img:1,input:1,keygen:1,link:1,meta:1,ol:1,optgroup:1,option:1,param:1,script:1,select:1,source:1,style:1,table:1,tbody:1,textarea:1,tfoot:1,thead:1,title:1,tr:1,track:1,ul:1,wbr:1,basefont:1,dialog:1,dir:1,isindex:1},c={img:1};function f(e){return f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){var r=Object.keys(e);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(e)),t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function h(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var v=/^data:/i,m=(0,i.OrderedSet)(),g=new o.ContentBlock({key:(0,o.genKey)(),text:"",type:l.BLOCK_TYPE.UNSTYLED,characterList:(0,i.List)(),depth:0}),y=/(\r\n|\r|\n)/g,b="\r",_=/^data-([a-z0-9-]+)$/,x={a:{href:"url",rel:"rel",target:"target",title:"title"},img:{src:"src",alt:"alt",width:"width",height:"height"}},w=function(e,t){var r={};if(x.hasOwnProperty(e))for(var n=x[e],a=0;a<t.attributes.length;a++){var o=t.attributes[a],i=o.name,l=o.value;if("string"===typeof l){var s=l;if(n.hasOwnProperty(i))r[n[i]]=s;else _.test(i)&&(r[i]=s)}}return r},T={a:function(e,t,r){var n,a=w(t,r);if(null!=(n=a.url)&&!n.match(v))return e.createEntity(l.ENTITY_TYPE.LINK,a)},img:function(e,t,r){var n=w(t,r);if(null!=n.src)return e.createEntity(l.ENTITY_TYPE.IMAGE,n)}},k=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,"contentStateForEntities",void 0),h(this,"blockStack",void 0),h(this,"blockList",void 0),h(this,"depth",void 0),h(this,"options",void 0),h(this,"inlineCreators",{Style:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return{type:"STYLE",style:e}})),Entity:function(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"MUTABLE";return{type:"ENTITY",entityKey:t.createEntity(e,M(r),n)}}}),this.options=r,this.contentStateForEntities=o.ContentState.createFromBlockArray([]),this.blockStack=[],this.blockList=[],this.depth=0}var t,r,a;return t=e,r=[{key:"process",value:function(e){this.processBlockElement(e);var t=[];return this.blockList.forEach((function(e){var r=function(e){var t="",r=(0,i.Seq)();return e.forEach((function(e){t+=e.text,r=r.concat(e.characterMeta)})),{text:t,characterMeta:r}}(e.textFragments),a=r.text,l=r.characterMeta,s=!1;if(a===b&&(s=!0,a=""),"pre"===e.tagName){var u=function(e,t){return"\n"===e.charAt(0)&&(e=e.slice(1),t=t.slice(1)),{text:e,characterMeta:t}}(a,l);a=u.text,l=u.characterMeta}else{var c=function(e,t){var r=function(e,t){for(;" "===e.charAt(0);)e=e.slice(1),t=t.slice(1);return{text:e,characterMeta:t}}(e=e.replace(/[ \t\n]/g," "),t);e=r.text,t=r.characterMeta;var a=function(e,t){for(;" "===e.slice(-1);)e=e.slice(0,-1),t=t.slice(0,-1);return{text:e,characterMeta:t}}(e,t);e=a.text,t=a.characterMeta;for(var o=e.length;o--;)" "===e.charAt(o)&&" "===e.charAt(o-1)&&(e=e.slice(0,o)+e.slice(o+1),t=t.slice(0,o).concat(t.slice(o+1)));var i=n({text:e,characterMeta:t},"\r ",b);e=i.text,t=i.characterMeta;var l=n({text:e,characterMeta:t}," \r",b);return e=l.text,t=l.characterMeta,{text:e,characterMeta:t}}(a,l);a=c.text,l=c.characterMeta}((a=a.split(b).join("\n")).length||s)&&t.push(new o.ContentBlock({key:(0,o.genKey)(),text:a,type:e.type,characterList:l.toList(),depth:e.depth,data:e.data?(0,i.Map)(e.data):(0,i.Map)()}))})),t.length||(t=[g]),o.ContentState.createFromBlockArray(t,this.contentStateForEntities.getEntityMap())}},{key:"getBlockTypeFromTagName",value:function(e){var t=this.options.blockTypes;if(t&&t[e])return t[e];switch(e){case"li":return"ol"===this.blockStack.slice(-1)[0].tagName?l.BLOCK_TYPE.ORDERED_LIST_ITEM:l.BLOCK_TYPE.UNORDERED_LIST_ITEM;case"blockquote":return l.BLOCK_TYPE.BLOCKQUOTE;case"h1":return l.BLOCK_TYPE.HEADER_ONE;case"h2":return l.BLOCK_TYPE.HEADER_TWO;case"h3":return l.BLOCK_TYPE.HEADER_THREE;case"h4":return l.BLOCK_TYPE.HEADER_FOUR;case"h5":return l.BLOCK_TYPE.HEADER_FIVE;case"h6":return l.BLOCK_TYPE.HEADER_SIX;case"pre":return l.BLOCK_TYPE.CODE;case"figure":return l.BLOCK_TYPE.ATOMIC;default:return l.BLOCK_TYPE.UNSTYLED}}},{key:"processBlockElement",value:function(e){if(e){var t,r,n=this.options.customBlockFn,a=e.nodeName.toLowerCase();if(n){var o=n(e);null!=o&&(t=o.type,r=o.data)}var i=!0;if(null==t&&(i=!1,t=this.getBlockTypeFromTagName(a)),t===l.BLOCK_TYPE.CODE){var s=e.getAttribute("data-language");s&&(r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(r,!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(r).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},r,{language:s}))}var c=function(e){switch(e){case l.BLOCK_TYPE.UNORDERED_LIST_ITEM:case l.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}(t),f=!u.hasOwnProperty(a);if(!i&&t===l.BLOCK_TYPE.UNSTYLED){var d=this.blockStack.slice(-1)[0];d&&(t=d.type)}var v={tagName:a,textFragments:[],type:t,styleStack:[m],entityStack:[null],depth:c?this.depth:0,data:r};f&&(this.blockList.push(v),c&&(this.depth+=1)),this.blockStack.push(v),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),this.blockStack.pop(),f&&c&&(this.depth-=1)}}},{key:"processInlineElement",value:function(e){var t=e.nodeName.toLowerCase();if("br"!==t){var r=this.blockStack.slice(-1)[0],n=r.styleStack.slice(-1)[0],a=r.entityStack.slice(-1)[0],o=this.options.customInlineFn,i=o?o(e,this.inlineCreators):null;if(null!=i)switch(i.type){case"STYLE":n=n.add(i.style);break;case"ENTITY":a=i.entityKey}else n=function(e,t,r){switch(t){case"b":case"strong":return e.add(l.INLINE_STYLE.BOLD);case"i":case"em":return e.add(l.INLINE_STYLE.ITALIC);case"u":case"ins":return e.add(l.INLINE_STYLE.UNDERLINE);case"code":return e.add(l.INLINE_STYLE.CODE);case"s":case"del":return e.add(l.INLINE_STYLE.STRIKETHROUGH);default:return r&&r[t]?e.add(r[t]):e}}(n,t,this.options.elementStyles),T.hasOwnProperty(t)&&(a=T[t](this,t,e)||a);r.styleStack.push(n),r.entityStack.push(a),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),c.hasOwnProperty(t)&&this.processText("\xa0"),r.entityStack.pop(),r.styleStack.pop()}else this.processText(b)}},{key:"processTextNode",value:function(e){var t=e.nodeValue;t=(t=t.replace(y,"\n")).split("\u200b").join(b),this.processText(t)}},{key:"processText",value:function(e){var t=this.blockStack.slice(-1)[0],r=t.styleStack.slice(-1)[0],n=t.entityStack.slice(-1)[0],a=o.CharacterMetadata.create({style:r,entity:n}),l=(0,i.Repeat)(a,e.length);t.textFragments.push({text:e,characterMeta:l})}},{key:"processNode",value:function(e){if(1===e.nodeType){var t=e,r=t.nodeName.toLowerCase();s.hasOwnProperty(r)?this.processInlineElement(t):this.processBlockElement(t)}else 3===e.nodeType&&this.processTextNode(e)}},{key:"createEntity",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"MUTABLE";return this.contentStateForEntities=this.contentStateForEntities.createEntity(e,r,t),this.contentStateForEntities.getLastCreatedEntityKey()}}],r&&d(t.prototype,r),a&&d(t,a),e}();function M(e){var t={};if(null!==e&&"object"===f(e)&&!Array.isArray(e))for(var r=e,n=0,a=Object.keys(r);n<a.length;n++){var o=a[n],i=r[o];"string"===typeof i&&(t[o]=i)}return t}function E(e,t){return new k(t).process(e)}function C(e){var t;"undefined"!==typeof DOMParser?t=(new DOMParser).parseFromString(e,"text/html"):(t=document.implementation.createHTMLDocument("")).documentElement&&(t.documentElement.innerHTML=e);return t.body||t.createElement("body")}function S(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var A={};function O(e,t){var r=t||A,n=r.parser,a=S(r,["parser"]);return null==n&&(n=C),E(n(e),a)}},77530:(e,t,r)=>{"use strict";r.r(t),r.d(t,{BLOCK_TYPE:()=>n,Constants:()=>i,ENTITY_TYPE:()=>a,INLINE_STYLE:()=>o,callModifierForSelectedBlocks:()=>h,getEntityRanges:()=>u,getSelectedBlocks:()=>f,selectionContainsEntity:()=>p});var n={UNSTYLED:"unstyled",HEADER_ONE:"header-one",HEADER_TWO:"header-two",HEADER_THREE:"header-three",HEADER_FOUR:"header-four",HEADER_FIVE:"header-five",HEADER_SIX:"header-six",UNORDERED_LIST_ITEM:"unordered-list-item",ORDERED_LIST_ITEM:"ordered-list-item",BLOCKQUOTE:"blockquote",PULLQUOTE:"pullquote",CODE:"code-block",ATOMIC:"atomic"},a={LINK:"LINK",IMAGE:"IMAGE",EMBED:"embed"},o={BOLD:"BOLD",CODE:"CODE",ITALIC:"ITALIC",STRIKETHROUGH:"STRIKETHROUGH",UNDERLINE:"UNDERLINE"};const i={BLOCK_TYPE:n,ENTITY_TYPE:a,INLINE_STYLE:o};var l=r(64453),s=new l.OrderedSet;function u(e,t){for(var r=null,n=null,a=[],o=0,i=0,l=e.length;i<l;i++){n=r;var s=t.get(i);r=s?s.getEntity():null,i>0&&r!==n&&(a.push([n,c(e.slice(o,i),t.slice(o,i))]),o=i)}return a.push([r,c(e.slice(o),t.slice(o))]),a}function c(e,t){for(var r=s,n=s,a=[],o=0,i=0,u=e.length;i<u;i++){n=r;var c=t.get(i);r=c?c.getStyle():s,i>0&&!(0,l.is)(r,n)&&(a.push([e.slice(o,i),n]),o=i)}return a.push([e.slice(o),r]),a}const f=function(e,t,r){var n=t===r,a=e.getBlockForKey(t);if(!a)return[];var o=[a];if(!n)for(var i=t;i!==r;){var l=e.getBlockAfter(i);if(!l){o=[];break}o.push(l),i=l.getKey()}return o},p=function(e){return function(t,r){var n=t.getCurrentContent(),a=r||t.getSelection(),o=a.getStartKey(),i=a.getEndKey(),l=a.getStartOffset(),s=a.getEndOffset(),u=o===i,c=f(n,o,i),p=!1,d=l+1,h=s-1;return c.forEach((function(t){e(t,(function(e,r){if(!p){var n=t.getKey();u&&(r<d||e>h)||n===o&&r<d||n===i&&e>h||(p=!0)}}),n)})),p}};var d=r(54410);const h=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];var o=e.getCurrentContent(),i=e.getSelection(),l=i.getStartKey(),s=i.getEndKey(),u=i.getStartOffset(),c=i.getEndOffset(),p=l===s,h=f(o,l,s),v=e;return h.forEach((function(e){var r=e.getKey(),a=u,o=c;r===l?(a=u,o=p?c:e.getText().length):r===s?(a=p?u:0,o=c):(a=0,o=e.getText().length);var i=new d.SelectionState({anchorKey:r,anchorOffset:a,focusKey:r,focusOffset:o});v=t.apply(void 0,[v,i].concat(n))})),d.EditorState.forceSelection(v,i)}},62370:(e,t,r)=>{"use strict";function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){a(e,t,r[t])}))}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(13305),i=r(52367),l=r(87707),s=r(66559),u=r(25763),c=r(56283),f=r(70306),p=r(78819),d=r(31320),h=r(7414),v=p("draft_tree_data_support"),m=v?s:l,g=d.List,y=d.Repeat,b={insertAtomicBlock:function(e,t,r){var a=e.getCurrentContent(),l=e.getSelection(),s=u.removeRange(a,l,"backward"),p=s.getSelectionAfter(),d=u.splitBlock(s,p),h=d.getSelectionAfter(),b=u.setBlockType(d,h,"atomic"),_=i.create({entity:t}),x={key:f(),type:"atomic",text:r,characterList:g(y(_,r.length))},w={key:f(),type:"unstyled"};v&&(x=n({},x,{nextSibling:w.key}),w=n({},w,{prevSibling:x.key}));var T=[new m(x),new m(w)],k=o.createFromArray(T),M=u.replaceWithFragment(b,h,k),E=M.merge({selectionBefore:l,selectionAfter:M.getSelectionAfter().set("hasFocus",!0)});return c.push(e,E,"insert-fragment")},moveAtomicBlock:function(e,t,r,n){var a,o=e.getCurrentContent(),i=e.getSelection();if("before"===n||"after"===n){var l=o.getBlockForKey("before"===n?r.getStartKey():r.getEndKey());a=h(o,t,l,n)}else{var s=u.removeRange(o,r,"backward"),f=s.getSelectionAfter(),p=s.getBlockForKey(f.getFocusKey());if(0===f.getStartOffset())a=h(s,t,p,"before");else if(f.getEndOffset()===p.getLength())a=h(s,t,p,"after");else{var d=u.splitBlock(s,f),v=d.getSelectionAfter(),m=d.getBlockForKey(v.getFocusKey());a=h(d,t,m,"before")}}var g=a.merge({selectionBefore:i,selectionAfter:a.getSelectionAfter().set("hasFocus",!0)});return c.push(e,g,"move-block")}};e.exports=b},13305:(e,t,r)=>{"use strict";var n=r(31320).OrderedMap,a={createFromArray:function(e){return n(e.map((function(e){return[e.getKey(),e]})))}};e.exports=a},8208:(e,t,r)=>{"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=r(78678),o=r(63112),i=r(31320),l=i.List,s=i.Repeat,u=i.Record,c=function(){return!0},f=u({start:null,end:null}),p=u({start:null,end:null,decoratorKey:null,leaves:null}),d={generate:function(e,t,r){var n=t.getLength();if(!n)return l.of(new p({start:0,end:0,decoratorKey:null,leaves:l.of(new f({start:0,end:0}))}));var o=[],i=r?r.getDecorations(t,e):l(s(null,n)),u=t.getCharacterList();return a(i,v,c,(function(e,t){o.push(new p({start:e,end:t,decoratorKey:i.get(e),leaves:h(u.slice(e,t).toList(),e)}))})),l(o)},fromJS:function(e){var t=e.leaves,r=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,["leaves"]);return new p(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},a=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),a.forEach((function(t){n(e,t,r[t])}))}return e}({},r,{leaves:null!=t?l(Array.isArray(t)?t:o(t)).map((function(e){return f(e)})):null}))}};function h(e,t){var r=[],n=e.map((function(e){return e.getStyle()})).toList();return a(n,v,c,(function(e,n){r.push(new f({start:e+t,end:n+t}))})),l(r)}function v(e,t){return e===t}e.exports=d},52367:(e,t,r)=>{"use strict";var n=r(31320),a=n.Map,o=n.OrderedSet,i=n.Record,l=o(),s={style:l,entity:null},u=function(e){var t,r;function n(){return e.apply(this,arguments)||this}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=n.prototype;return i.getStyle=function(){return this.get("style")},i.getEntity=function(){return this.get("entity")},i.hasStyle=function(e){return this.getStyle().includes(e)},n.applyStyle=function(e,t){var r=e.set("style",e.getStyle().add(t));return n.create(r)},n.removeStyle=function(e,t){var r=e.set("style",e.getStyle().remove(t));return n.create(r)},n.applyEntity=function(e,t){var r=e.getEntity()===t?e:e.set("entity",t);return n.create(r)},n.create=function(e){if(!e)return c;var t=a({style:l,entity:null}).merge(e),r=f.get(t);if(r)return r;var o=new n(t);return f=f.set(t,o),o},n.fromJS=function(e){var t=e.style,r=e.entity;return new n({style:Array.isArray(t)?o(t):t,entity:Array.isArray(r)?o(r):r})},n}(i(s)),c=new u,f=a([[a(s),c]]);u.EMPTY=c,e.exports=u},33366:(e,t,r)=>{"use strict";var n=r(31320).List,a=function(){function e(e){var t,r,n;n=void 0,(r="_decorators")in(t=this)?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var r=Array(e.getText().length).fill(null);return this._decorators.forEach((function(n,a){var o=0;(0,n.strategy)(e,(function(e,t){(function(e,t,r){for(var n=t;n<r;n++)if(null!=e[n])return!1;return!0})(r,e,t)&&(!function(e,t,r,n){for(var a=t;a<r;a++)e[a]=n}(r,e,t,a+"."+o),o++)}),t)})),n(r)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();e.exports=a},87707:(e,t,r)=>{"use strict";var n=r(52367),a=r(78678),o=r(31320),i=o.List,l=o.Map,s=o.OrderedSet,u=o.Record,c=o.Repeat,f=s(),p=u({key:"",type:"unstyled",text:"",characterList:i(),depth:0,data:l()}),d=function(e){var t,r;function o(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,r=e.text;return r&&!t&&(e.characterList=i(c(n.EMPTY,r.length))),e}(t))||this}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var l=o.prototype;return l.getKey=function(){return this.get("key")},l.getType=function(){return this.get("type")},l.getText=function(){return this.get("text")},l.getCharacterList=function(){return this.get("characterList")},l.getLength=function(){return this.getText().length},l.getDepth=function(){return this.get("depth")},l.getData=function(){return this.get("data")},l.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():f},l.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},l.findStyleRanges=function(e,t){a(this.getCharacterList(),h,e,t)},l.findEntityRanges=function(e,t){a(this.getCharacterList(),v,e,t)},o}(p);function h(e,t){return e.getStyle()===t.getStyle()}function v(e,t){return e.getEntity()===t.getEntity()}e.exports=d},66559:(e,t,r)=>{"use strict";var n=r(52367),a=r(78678),o=r(31320),i=o.List,l=o.Map,s=o.OrderedSet,u=o.Record,c=o.Repeat,f=s(),p={parent:null,characterList:i(),data:l(),depth:0,key:"",text:"",type:"unstyled",children:i(),prevSibling:null,nextSibling:null},d=function(e,t){return e.getStyle()===t.getStyle()},h=function(e,t){return e.getEntity()===t.getEntity()},v=function(e){var t,r;function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return e.call(this,function(e){if(!e)return e;var t=e.characterList,r=e.text;return r&&!t&&(e.characterList=i(c(n.EMPTY,r.length))),e}(t))||this}r=e,(t=o).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var l=o.prototype;return l.getKey=function(){return this.get("key")},l.getType=function(){return this.get("type")},l.getText=function(){return this.get("text")},l.getCharacterList=function(){return this.get("characterList")},l.getLength=function(){return this.getText().length},l.getDepth=function(){return this.get("depth")},l.getData=function(){return this.get("data")},l.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():f},l.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},l.getChildKeys=function(){return this.get("children")},l.getParentKey=function(){return this.get("parent")},l.getPrevSiblingKey=function(){return this.get("prevSibling")},l.getNextSiblingKey=function(){return this.get("nextSibling")},l.findStyleRanges=function(e,t){a(this.getCharacterList(),d,e,t)},l.findEntityRanges=function(e,t){a(this.getCharacterList(),h,e,t)},o}(u(p));e.exports=v},34075:(e,t,r)=>{"use strict";function n(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"===typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){a(e,t,r[t])}))}return e}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(13305),i=r(52367),l=r(87707),s=r(66559),u=r(92593),c=r(94666),f=r(70306),p=r(63112),d=r(78819),h=r(31320),v=r(83272),m=h.List,g=h.Record,y=h.Repeat,b=h.Map,_=h.OrderedMap,x=g({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),w=d("draft_tree_data_support")?s:l,T=function(e){var t,r;function a(){return e.apply(this,arguments)||this}r=e,(t=a).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var l=a.prototype;return l.getEntityMap=function(){return u},l.getBlockMap=function(){return this.get("blockMap")},l.getSelectionBefore=function(){return this.get("selectionBefore")},l.getSelectionAfter=function(){return this.get("selectionAfter")},l.getBlockForKey=function(e){return this.getBlockMap().get(e)},l.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},l.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},l.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,r){return r===e})).skip(1).first()},l.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,r){return r===e})).skip(1).first()},l.getBlocksAsArray=function(){return this.getBlockMap().toArray()},l.getFirstBlock=function(){return this.getBlockMap().first()},l.getLastBlock=function(){return this.getBlockMap().last()},l.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},l.getLastCreatedEntityKey=function(){return u.__getLastCreatedEntityKey()},l.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},l.createEntity=function(e,t,r){return u.__create(e,t,r),this},l.mergeEntityData=function(e,t){return u.__mergeData(e,t),this},l.replaceEntityData=function(e,t){return u.__replaceData(e,t),this},l.addEntity=function(e){return u.__add(e),this},l.getEntity=function(e){return u.__get(e)},l.getAllEntities=function(){return u.__getAll()},l.loadWithEntities=function(e){return u.__loadWithEntities(e)},a.createFromBlockArray=function(e,t){var r=Array.isArray(e)?e:e.contentBlocks,n=o.createFromArray(r),i=n.isEmpty()?new c:c.createEmpty(n.first().getKey());return new a({blockMap:n,entityMap:t||u,selectionBefore:i,selectionAfter:i})},

main.187c56e6.js at commit 6fef7f8, under CC-BY-NC-ND-4.0 · at the source

Overview

Authors: Zeynep Yentür1,2,3,4,5, Lizia Branco5, Kseniia Sarieva2,3,4, Daria Andreeva5, Theresa Kagermeier2,4,5, Christina Kulka6, Mohamed A. Jarboui7, Federico Colombo8, Florencia Diaz8, Pierre Collignon9, Katharina Becker2, Christine Selhuber-Unkel8, Simone Mayer1,2,5,9
  1. The Heidelberg Academy of Sciences and Humanities,Heidelberg, Germany
  2. Hertie Institute for Clinical Brain Research, University of Tübingen,Tübingen, Germany
  3. International Max Planck Research School, Graduate Training Centre of Neuroscience, University of Tübingen,Tübingen, Germany
  4. Graduate Training Centre of Neuroscience, University of Tübingen,Tübingen, Germany
  5. Systemic Cellular Neurobiology, Zoological Institute, Karlsruhe Institute of Technology (KIT),Karlsruhe, Germany
  6. University of Tübingen,Tübingen, Germany
  7. Core Facility for Medical Proteomics, Institute for Ophthalmic Research, University Clinic Tübingen,Tübingen, Germany
  8. Institute for Molecular Systems Engineering and Advanced Materials (IMSEAM), Heidelberg University,Heidelberg, Germany
  9. Institute of Biological and Chemical Systems - Functional Molecular Systems, Karlsruhe Institute of Technology (KIT),Eggenstein-Leopoldshafen, Germany
Journal: Molecular psychiatry, volume 31, issue 9, pages 4977-4994
Dates: received 10 June 2025; accepted 23 March 2026; published online 24 April 2026; in print 2026
Type: Research article · Language: English
License: CC BY
Identifiers: DOI 10.1038/s41380-026-03585-5 · PMID 42032298 · PMCID PMC13441967 · OpenAlex W4411639202
Open access: hybrid, a free copy (OpenAlex)
Status: code verified
Categories: genetics / omics (modality), human (organism), mouse (organism), epilepsy (population), autism (population)
Methods: Spectral & time-frequency, Statistics, Smoothing, state filtering, decompositions, Machine learning, fMRI & imaging
Keywords: Neuroscience, Autism spectrum disorders, Stem cells
MeSH: Neural Stem Cells*, Valproic Acid*, Animals, Anticonvulsants, Cellular Microenvironment, Extracellular Matrix, Female, Humans, Mice, Multiomics, Neurodevelopment, Organoids, Prosencephalon, Proteomics, Signal Transduction, Transcriptome (* major topic)
Topic: Tissue Engineering and Regenerative Medicine (Surgery, Medicine), according to OpenAlex
Citations: cited by 2 papers (Europe PMC); 88 references in the paper

Abstract

Pharmaceutical agents, such as antiepileptic medications, can cross fetal barriers and affect the developing brain. Prenatal exposure to the antiepileptic drug valproate (VPA) is associated with an increased risk of neurodevelopmental disorders, including congenital malformations and autism spectrum disorder. In animal models and neural organoids, VPA has been shown to alter signaling pathways, such as Wnt pathway, providing insights into VPA-induced neurodevelopmental defects. Here, we exposed dorsal forebrain organoids to VPA for 30 days and examined effects at the tissue, cellular, and molecular level. VPA treatment disrupted ventricular-like regions, indicating defects in cell-cell and cell-matrix interactions. Transcriptomics analysis confirmed altered expression of extracellular matrix (ECM) genes and single cell RNA sequencing analysis identified genes involved in microenvironment sensing, such as cellular mechanosensing and Hippo-YAP/TAZ signaling pathway. Finally, proteomics analysis corroborated that VPA alters the microenvironment of the human dorsal forebrain organoids by disrupting the secretion of ECM proteins. Altogether, our study suggests that VPA-treated dorsal forebrain organoids serve as a model to investigate the role of extracellular processes in brain development and to understand how their disruptions might contribute to neurodevelopmental disorders.

Reproduced under the paper's license (CC BY), from the paper cited above.

Repository

Its files are read in the Code ↔ Paper reader above, with 6 matches between paragraphs and lines of code.

bigomics/omicsplayground

License: CC-BY-NC-ND-4.0
State: the link answers, verified on 30 September 2026
Evidence: files inventoried
Commit: 6fef7f8a45e52498af8d753e620129f4f44037c8, 29 September 2026
Languages: R (457), JavaScript (9), Shell (3), Quarto (1)
Size: 2,864 files, 470 scripts
Software Heritage: archived
Found in: the text, “Mass spectrometry data analysis and statistics”
Holds: README, license file, environment (DESCRIPTION, docker/Dockerfile, docker/Dockerfile.backend, docker/Dockerfile.test, docker/Dockerfile.update, components/app/DESCRIPTION, components/board.admin/DESCRIPTION, components/board.biomarker/DESCRIPTION, components/board.clustering/DESCRIPTION, components/board.compare/DESCRIPTION, components/board.connectivity/DESCRIPTION, components/board.correlation/DESCRIPTION), tests, continuous integration, documentation, 3 notebooks
Not found: CITATION.cff
Tools: Plotly (69 files), limma (37 files), ggplot2 (23 files), tidyverse (21 files), igraph (16 files), data.table (10 files), edgeR (9 files), reshape2 (6 files), WGCNA (6 files), patchwork (5 files), UMAP (4 files), reticulate (3 files), ComplexHeatmap (1 file), cowplot (1 file), Seurat (1 file)
Availability: 1 check, the latest on 30 September 2026: the link answers
  • 30 September 2026: the link answers
472 files

Tracing map

Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.

What the map holds:

  • 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
  • 470 scripts, each with its path and the digest of its content;
  • 6 matches between paragraphs of the paper and lines of the code (method lexical-v1);
  • neither the text of the paper nor the code itself.

Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.

Data

No dataset and no data link were found in the paper.

Data availability

All bulk RNA sequencing data is submitted to ArrayExpress and is available under the ID E-MTAB-15191. Single cell RNA sequencing data is submitted to CellxGene and is available under the URL: https://cellxgene.cziscience.com/collections/c2879de0-affc-496b-8e2b-f57ed9ec3c34. All MS data and MS data analysis dataset are submitted to MassIVE and can be accessed under the ID MSV000097991 or ProteomeXchange repository under the accession ID PXD064286. The MS data with only Ctrl DFOs has been used in another manuscript and is available in MassIVE under the accession ID MSV000094878 or ProteomeXchange repository under the accession ID PXD052612. Supplementary information is available at MP’s website.

Reproduced under the paper's license (CC BY), from the paper cited above.

Versions

The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.

Version 1, 30 September 2026: the first record

Recorded: type, language, journal, volume, issue, pages, dates, 13 authors, 3 keywords, 16 MeSH terms, 10 funders, 85 references.

Cite

This paper

Yentür, Z., Branco, L., Sarieva, K., Andreeva, D., Kagermeier, T., Kulka, C., Jarboui, M. A., Colombo, F., Diaz, F., Collignon, P., Becker, K., Selhuber-Unkel, C., & Mayer, S. (2026). Multiomics analysis identifies VPA-induced changes in neural progenitor cells, ventricular-like regions, and cellular microenvironment in dorsal forebrain organoids. Molecular psychiatry, 31(9), 4977-4994. https://doi.org/10.1038/s41380-026-03585-5

BibTeX

@article{yentur2026multiomics,
author = {Yentür, Zeynep and Branco, Lizia and Sarieva, Kseniia and Andreeva, Daria and Kagermeier, Theresa and Kulka, Christina and Jarboui, Mohamed A. and Colombo, Federico and Diaz, Florencia and Collignon, Pierre and Becker, Katharina and Selhuber-Unkel, Christine and Mayer, Simone},
title = {{Multiomics analysis identifies VPA-induced changes in neural progenitor cells, ventricular-like regions, and cellular microenvironment in dorsal forebrain organoids}},
journal = {Molecular psychiatry},
year = {2026},
month = apr,
volume = {31},
number = {9},
pages = {4977--4994},
publisher = {Springer Nature},
issn = {1359-4184},
doi = {10.1038/s41380-026-03585-5},
url = {https://doi.org/10.1038/s41380-026-03585-5},
pmid = {42032298},
pmcid = {PMC13441967}
}

RIS

TY - JOUR
AU - Yentür, Zeynep
AU - Branco, Lizia
AU - Sarieva, Kseniia
AU - Andreeva, Daria
AU - Kagermeier, Theresa
AU - Kulka, Christina
AU - Jarboui, Mohamed A.
AU - Colombo, Federico
AU - Diaz, Florencia
AU - Collignon, Pierre
AU - Becker, Katharina
AU - Selhuber-Unkel, Christine
AU - Mayer, Simone
TI - Multiomics analysis identifies VPA-induced changes in neural progenitor cells, ventricular-like regions, and cellular microenvironment in dorsal forebrain organoids
T2 - Molecular psychiatry
J2 - Mol Psychiatry
PY - 2026
DA - 2026/04/24
VL - 31
IS - 9
SP - 4977
EP - 4994
SN - 1359-4184
PB - Springer Nature
DO - 10.1038/s41380-026-03585-5
UR - https://doi.org/10.1038/s41380-026-03585-5
LA - en
ER -

CSL-JSON

{
"id": "10.1038/s41380-026-03585-5",
"type": "article-journal",
"title": "Multiomics analysis identifies VPA-induced changes in neural progenitor cells, ventricular-like regions, and cellular microenvironment in dorsal forebrain organoids",
"container-title": "Molecular psychiatry",
"author": [
{
"family": "Yentür",
"given": "Zeynep"
},
{
"family": "Branco",
"given": "Lizia"
},
{
"family": "Sarieva",
"given": "Kseniia"
},
{
"family": "Andreeva",
"given": "Daria"
},
{
"family": "Kagermeier",
"given": "Theresa"
},
{
"family": "Kulka",
"given": "Christina"
},
{
"family": "Jarboui",
"given": "Mohamed A."
},
{
"family": "Colombo",
"given": "Federico"
},
{
"family": "Diaz",
"given": "Florencia"
},
{
"family": "Collignon",
"given": "Pierre"
},
{
"family": "Becker",
"given": "Katharina"
},
{
"family": "Selhuber-Unkel",
"given": "Christine"
},
{
"family": "Mayer",
"given": "Simone"
}
],
"container-title-short": "Mol Psychiatry",
"volume": "31",
"issue": "9",
"page": "4977-4994",
"DOI": "10.1038/s41380-026-03585-5",
"PMID": "42032298",
"PMCID": "PMC13441967",
"ISSN": "1359-4184",
"publisher": "Springer Nature",
"URL": "https://doi.org/10.1038/s41380-026-03585-5",
"language": "en",
"issued": {
"date-parts": [
[
2026,
4,
24
]
]
}
}

The tracing map gets a citation of its own once an author has validated it and it has a DOI.

Similar papers

The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.

[1] doi:10.1016/j.xcrm.2026.102766 [code]
A longitudinal single-cell and spatial multiomic atlas of pediatric high-grade glioma.
Journal: Cell reports. Medicine
In common: WGCNA, edgeR, limma, 11 other tools, genetics / omics, 3 references
[2] doi:10.1038/s41593-026-02367-0 [code]
A reproducible three-dimensional model of human brain tissue to investigate physiological and disease-associated microglia phenotypes.
Journal: Nature neuroscience
In common: WGCNA, edgeR, reticulate, 10 other tools, 4 references
[3] doi:10.1073/pnas.2523130123 [code]
FABP7 controls radial glial scaffold stability during human cortical development.
Journal: Proceedings of the National Academy of Sciences of the United States of America
In common: edgeR, reticulate, limma, 11 other tools, autism, mouse
[4] doi:10.1093/bioinformatics/btag592 [code]
Network-based stratification of allele-specific expression reveals patient subgroups in Huntington's disease.
Journal: Bioinformatics (Oxford, England)
In common: WGCNA, edgeR, reticulate, 11 other tools, genetics / omics
[5] doi:10.1038/s42003-026-10957-8 [code]
Brain defence by the extracellular matrix protein Cochlin.
Journal: Communications biology
In common: WGCNA, edgeR, reticulate, 11 other tools, mouse
[6] doi:10.3390/ijms27104466 [code]
Uncovering the Key Circuit FOSL2/FOS/EGR3/EGR1, Contributing to the Hyperexcitability of Excitatory Neurons in the Epileptic Temporal Cortex and Hippocampus.
Journal: International journal of molecular sciences
In common: reticulate, limma, UMAP, 10 other tools, epilepsy, genetics / omics, 1 reference
[7] doi:10.1038/s41467-026-76675-1 [code]
Long-read proteogenomic atlas of human neuronal differentiation reveals isoform diversity informing neurodevelopmental risk mechanisms.
Journal: Nature communications
In common: WGCNA, edgeR, reticulate, 10 other tools, autism, genetics / omics
[8] doi:10.1186/s12967-026-08266-z [code]
Single-cell multi-omic integration analysis prioritizes druggable genes and reveals cell-type-specific causal effects in glioblastomagenesis.
Journal: Journal of translational medicine
In common: edgeR, reticulate, limma, 9 other tools, genetics / omics, 1 reference
[9] doi:10.1038/s41398-026-04200-5 [code]
Postmortem brain single-nucleus and bulk gene expression analyses identify shared and distinct abnormalities in bipolar disorder and major depressive disorder.
Journal: Translational psychiatry
In common: WGCNA, edgeR, limma, 8 other tools, genetics / omics, 2 references
[10] doi:10.1126/sciadv.aeg3223 [code]
The extreme diversity of retinal amacrine cells has deep evolutionary roots.
Journal: Science advances
In common: WGCNA, reticulate, igraph, 9 other tools, genetics / omics, 1 reference

Contribute

The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.

Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.

Request its removal

To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).

Discussion, reproductions, activity

Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.

Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.

Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.