All Downloads are FREE. Search and download functionalities are using the official Maven repository.

webapp.dist.index.js Maven / Gradle / Ivy

/*! For license information please see index.js.LICENSE.txt */
(()=>{var t={2259:(t,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ClusterHUD=void 0;var r,i=function(){function t(t,n){for(var e=0;e=1e3){var t=Date.now();$("#running-queries-sparkline").sparkline(this.state.runningQueries,$.extend({},u,{chartRangeMin:0})),$("#blocked-queries-sparkline").sparkline(this.state.blockedQueries,$.extend({},u,{chartRangeMin:0})),$("#queued-queries-sparkline").sparkline(this.state.queuedQueries,$.extend({},u,{chartRangeMin:0})),$("#active-workers-sparkline").sparkline(this.state.activeWorkers,$.extend({},u,{chartRangeMin:0})),$("#running-drivers-sparkline").sparkline(this.state.runningDrivers,$.extend({},u,{numberFormatter:a.precisionRound})),$("#reserved-memory-sparkline").sparkline(this.state.reservedMemory,$.extend({},u,{numberFormatter:a.formatDataSizeBytes})),$("#row-input-rate-sparkline").sparkline(this.state.rowInputRate,$.extend({},u,{numberFormatter:a.formatCount})),$("#byte-input-rate-sparkline").sparkline(this.state.byteInputRate,$.extend({},u,{numberFormatter:a.formatDataSizeBytes})),$("#cpu-time-rate-sparkline").sparkline(this.state.perWorkerCpuTimeRate,$.extend({},u,{numberFormatter:a.precisionRound})),this.setState({lastRender:t})}$('[data-toggle="tooltip"]').tooltip()}},{key:"render",value:function(){return o.default.createElement("div",{className:"row"},o.default.createElement("div",{className:"col-xs-12"},o.default.createElement("div",{className:"row"},o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat-title"},o.default.createElement("span",{className:"text","data-toggle":"tooltip","data-placement":"right",title:"Total number of queries currently running"},"Running queries"))),o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat-title"},o.default.createElement("span",{className:"text","data-toggle":"tooltip","data-placement":"right",title:"Total number of active worker nodes"},"Active workers"))),o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat-title"},o.default.createElement("span",{className:"text","data-toggle":"tooltip","data-placement":"right",title:"Moving average of input rows processed per second"},"Rows/sec")))),o.default.createElement("div",{className:"row stat-line-end"},o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat stat-large"},o.default.createElement("span",{className:"stat-text"},this.state.runningQueries[this.state.runningQueries.length-1]),o.default.createElement("span",{className:"sparkline",id:"running-queries-sparkline"},o.default.createElement("div",{className:"loader"},"Loading ...")))),o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat stat-large"},o.default.createElement("a",{target:"_blank",href:"workers.html"},o.default.createElement("span",{className:"stat-text"},this.state.activeWorkers[this.state.activeWorkers.length-1])),o.default.createElement("span",{className:"sparkline",id:"active-workers-sparkline"},o.default.createElement("div",{className:"loader"},"Loading ...")))),o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat stat-large"},o.default.createElement("span",{className:"stat-text"},(0,a.formatCount)(this.state.rowInputRate[this.state.rowInputRate.length-1])),o.default.createElement("span",{className:"sparkline",id:"row-input-rate-sparkline"},o.default.createElement("div",{className:"loader"},"Loading ..."))))),o.default.createElement("div",{className:"row"},o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat-title"},o.default.createElement("span",{className:"text","data-toggle":"tooltip","data-placement":"right",title:"Total number of queries currently queued and awaiting execution"},"Queued queries"))),o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat-title"},o.default.createElement("span",{className:"text","data-toggle":"tooltip","data-placement":"right",title:"Moving average of total running drivers"},"Runnable drivers"))),o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat-title"},o.default.createElement("span",{className:"text","data-toggle":"tooltip","data-placement":"right",title:"Moving average of input bytes processed per second"},"Bytes/sec")))),o.default.createElement("div",{className:"row stat-line-end"},o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat stat-large"},o.default.createElement("span",{className:"stat-text"},this.state.queuedQueries[this.state.queuedQueries.length-1]),o.default.createElement("span",{className:"sparkline",id:"queued-queries-sparkline"},o.default.createElement("div",{className:"loader"},"Loading ...")))),o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat stat-large"},o.default.createElement("span",{className:"stat-text"},(0,a.formatCount)(this.state.runningDrivers[this.state.runningDrivers.length-1])),o.default.createElement("span",{className:"sparkline",id:"running-drivers-sparkline"},o.default.createElement("div",{className:"loader"},"Loading ...")))),o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat stat-large"},o.default.createElement("span",{className:"stat-text"},(0,a.formatDataSizeBytes)(this.state.byteInputRate[this.state.byteInputRate.length-1])),o.default.createElement("span",{className:"sparkline",id:"byte-input-rate-sparkline"},o.default.createElement("div",{className:"loader"},"Loading ..."))))),o.default.createElement("div",{className:"row"},o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat-title"},o.default.createElement("span",{className:"text","data-toggle":"tooltip","data-placement":"right",title:"Total number of queries currently blocked and unable to make progress"},"Blocked Queries"))),o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat-title"},o.default.createElement("span",{className:"text","data-toggle":"tooltip","data-placement":"right",title:"Total amount of memory reserved by all running queries"},"Reserved Memory (B)"))),o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat-title"},o.default.createElement("span",{className:"text","data-toggle":"tooltip","data-placement":"right",title:"Moving average of CPU time utilized per second per worker"},"Worker Parallelism")))),o.default.createElement("div",{className:"row stat-line-end"},o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat stat-large"},o.default.createElement("span",{className:"stat-text"},this.state.blockedQueries[this.state.blockedQueries.length-1]),o.default.createElement("span",{className:"sparkline",id:"blocked-queries-sparkline"},o.default.createElement("div",{className:"loader"},"Loading ...")))),o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat stat-large"},o.default.createElement("span",{className:"stat-text"},(0,a.formatDataSizeBytes)(this.state.reservedMemory[this.state.reservedMemory.length-1])),o.default.createElement("span",{className:"sparkline",id:"reserved-memory-sparkline"},o.default.createElement("div",{className:"loader"},"Loading ...")))),o.default.createElement("div",{className:"col-xs-4"},o.default.createElement("div",{className:"stat stat-large"},o.default.createElement("span",{className:"stat-text"},(0,a.formatCount)(this.state.perWorkerCpuTimeRate[this.state.perWorkerCpuTimeRate.length-1])),o.default.createElement("span",{className:"sparkline",id:"cpu-time-rate-sparkline"},o.default.createElement("div",{className:"loader"},"Loading ...")))))))}}]),n}(o.default.Component)},5150:(t,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.PageTitle=void 0;var r,i=function(){function t(t,n){for(var e=0;e3e4)&&($("#no-connection-modal").modal(),t.setState({modalShown:!0}))}))}},{key:"resetTimer",value:function(){clearTimeout(this.timeoutId),this.timeoutId=setTimeout(this.refreshLoop.bind(this),1e3)}},{key:"componentDidMount",value:function(){this.refreshLoop.bind(this)()}},{key:"renderStatusLight",value:function(){return this.state.noConnection?this.state.lightShown?o.default.createElement("span",{className:"status-light status-light-red",id:"status-indicator"}):o.default.createElement("span",{className:"status-light",id:"status-indicator"}):o.default.createElement("span",{className:"status-light status-light-green",id:"status-indicator"})}},{key:"render",value:function(){var t=this.state.info;return t?o.default.createElement("div",null,o.default.createElement("nav",{className:"navbar"},o.default.createElement("div",{className:"container-fluid"},o.default.createElement("div",{className:"navbar-header"},o.default.createElement("table",null,o.default.createElement("tbody",null,o.default.createElement("tr",null,o.default.createElement("td",null,o.default.createElement("a",{href:"/ui/"},o.default.createElement("img",{src:"assets/logo.png"}))),o.default.createElement("td",null,o.default.createElement("span",{className:"navbar-brand"},this.props.title)))))),o.default.createElement("div",{id:"navbar",className:"navbar-collapse collapse"},o.default.createElement("ul",{className:"nav navbar-nav navbar-right"},o.default.createElement("li",null,o.default.createElement("span",{className:"navbar-cluster-info"},o.default.createElement("span",{className:"uppercase"},"Version"),o.default.createElement("br",null),o.default.createElement("span",{className:"text uppercase",id:"version-number"},t.nodeVersion.version))),o.default.createElement("li",null,o.default.createElement("span",{className:"navbar-cluster-info"},o.default.createElement("span",{className:"uppercase"},"Environment"),o.default.createElement("br",null),o.default.createElement("span",{className:"text uppercase",id:"environment"},t.environment))),o.default.createElement("li",null,o.default.createElement("span",{className:"navbar-cluster-info"},o.default.createElement("span",{className:"uppercase"},"Uptime"),o.default.createElement("br",null),o.default.createElement("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Connection status"},this.renderStatusLight())," ",o.default.createElement("span",{className:"text",id:"uptime"},t.uptime))),o.default.createElement("li",null,o.default.createElement("span",{className:"navbar-cluster-info"},o.default.createElement("span",{className:"text",id:"logout"},o.default.createElement("a",{className:"btn btn-logout",href:"logout"},"Log Out")))))))),o.default.createElement("div",{id:"no-connection-modal",className:"modal",tabIndex:"-1",role:"dialog"},o.default.createElement("div",{className:"modal-dialog modal-sm",role:"document"},o.default.createElement("div",{className:"modal-content"},o.default.createElement("div",{className:"row error-message"},o.default.createElement("div",{className:"col-xs-12"},o.default.createElement("br",null),o.default.createElement("h4",null,"Unable to connect to server"),o.default.createElement("p",null,this.state.errorText?"Error: "+this.state.errorText:null))))))):null}}]),n}(o.default.Component)},1878:(t,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.QueryList=n.QueryListItem=void 0;var r,i=function(){function t(t,n){for(var e=0;e-1&&(i0){if(o+=u,!(a<5)){o+="\n...";break}o+="\n"}}return o}}]),n}(o.default.Component),f=function(t){function n(){return u(this,n),c(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return s(n,t),i(n,[{key:"render",value:function(){var t=this.props.queries.map(function(t){return o.default.createElement(l,{key:t.queryId,query:t})}.bind(this));return o.default.createElement("div",null,t)}}]),n}(o.default.Component),h={RUNNING:function(t){return!("QUEUED"===t.state||"FINISHED"===t.state||"FAILED"===t.state)},QUEUED:function(t){return"QUEUED"===t.state},FINISHED:function(t){return"FINISHED"===t.state}},d={CREATED:function(t){return Date.parse(t.queryStats.createTime)},ELAPSED:function(t){return(0,a.parseDuration)(t.queryStats.elapsedTime)},EXECUTION:function(t){return(0,a.parseDuration)(t.queryStats.executionTime)},CPU:function(t){return(0,a.parseDuration)(t.queryStats.totalCpuTime)},CUMULATIVE_MEMORY:function(t){return t.queryStats.cumulativeUserMemory},CURRENT_MEMORY:function(t){return(0,a.parseDataSize)(t.queryStats.userMemoryReservation)}},p={USER_ERROR:function(t){return"FAILED"===t.state&&"USER_ERROR"===t.errorType},INTERNAL_ERROR:function(t){return"FAILED"===t.state&&"INTERNAL_ERROR"===t.errorType},INSUFFICIENT_RESOURCES:function(t){return"FAILED"===t.state&&"INSUFFICIENT_RESOURCES"===t.errorType},EXTERNAL:function(t){return"FAILED"===t.state&&"EXTERNAL"===t.errorType}},g={ASCENDING:function(t){return t},DESCENDING:function(t){return-t}};n.QueryList=function(t){function n(t){u(this,n);var e=c(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,t));return e.state={allQueries:[],displayedQueries:[],reorderInterval:5e3,currentSortType:d.CREATED,currentSortOrder:g.DESCENDING,stateFilters:[h.RUNNING,h.QUEUED],errorTypeFilters:[p.INTERNAL_ERROR,p.INSUFFICIENT_RESOURCES,p.EXTERNAL],searchString:"",maxQueries:100,lastRefresh:Date.now(),lastReorder:Date.now(),initialized:!1},e.refreshLoop=e.refreshLoop.bind(e),e.handleSearchStringChange=e.handleSearchStringChange.bind(e),e.executeSearch=e.executeSearch.bind(e),e.handleSortClick=e.handleSortClick.bind(e),e}return s(n,t),i(n,[{key:"sortQueries",value:function(t,n,e){t.sort((function(t,r){return e(n(t)-n(r))}),this)}},{key:"sortAndLimitQueries",value:function(t,n,e,r){this.sortQueries(t,n,e),t.length>r&&t.splice(r,t.length-r)}},{key:"filterQueries",value:function(t,n,e,r){var i=t.filter((function(t){for(var r=0;r=this.state.reorderInterval?(e=(e=this.filterQueries(e,this.state.stateFilters,this.state.errorTypeFilters,this.state.searchString)).concat(r),this.sortQueries(e,this.state.currentSortType,this.state.currentSortOrder),a=Date.now()):(this.sortQueries(r,this.state.currentSortType,this.state.currentSortOrder),e=e.concat(r)),0!==this.state.maxQueries&&e.length>this.state.maxQueries&&e.splice(this.state.maxQueries,e.length-this.state.maxQueries),this.setState({allQueries:t,displayedQueries:e,lastRefresh:o,lastReorder:a,initialized:!0}),this.resetTimer()}.bind(this)).fail(function(){this.setState({initialized:!0}),this.resetTimer()}.bind(this))}},{key:"componentDidMount",value:function(){this.refreshLoop()}},{key:"handleSearchStringChange",value:function(t){var n=t.target.value;clearTimeout(this.searchTimeoutId),this.setState({searchString:n}),this.searchTimeoutId=setTimeout(this.executeSearch,200)}},{key:"executeSearch",value:function(){clearTimeout(this.searchTimeoutId);var t=this.filterQueries(this.state.allQueries,this.state.stateFilters,this.state.errorTypeFilters,this.state.searchString);this.sortAndLimitQueries(t,this.state.currentSortType,this.state.currentSortOrder,this.state.maxQueries),this.setState({displayedQueries:t})}},{key:"renderMaxQueriesListItem",value:function(t,n){return o.default.createElement("li",null,o.default.createElement("a",{href:"#",className:this.state.maxQueries===t?"selected":"",onClick:this.handleMaxQueriesClick.bind(this,t)},n))}},{key:"handleMaxQueriesClick",value:function(t){var n=this.filterQueries(this.state.allQueries,this.state.stateFilters,this.state.errorTypeFilters,this.state.searchString);this.sortAndLimitQueries(n,this.state.currentSortType,this.state.currentSortOrder,t),this.setState({maxQueries:t,displayedQueries:n})}},{key:"renderReorderListItem",value:function(t,n){return o.default.createElement("li",null,o.default.createElement("a",{href:"#",className:this.state.reorderInterval===t?"selected":"",onClick:this.handleReorderClick.bind(this,t)},n))}},{key:"handleReorderClick",value:function(t){this.state.reorderInterval!==t&&this.setState({reorderInterval:t})}},{key:"renderSortListItem",value:function(t,n){if(this.state.currentSortType===t){var e=this.state.currentSortOrder===g.ASCENDING?o.default.createElement("span",{className:"glyphicon glyphicon-triangle-top"}):o.default.createElement("span",{className:"glyphicon glyphicon-triangle-bottom"});return o.default.createElement("li",null,o.default.createElement("a",{href:"#",className:"selected",onClick:this.handleSortClick.bind(this,t)},n," ",e))}return o.default.createElement("li",null,o.default.createElement("a",{href:"#",onClick:this.handleSortClick.bind(this,t)},n))}},{key:"handleSortClick",value:function(t){var n=t,e=g.DESCENDING;this.state.currentSortType===t&&this.state.currentSortOrder===g.DESCENDING&&(e=g.ASCENDING);var r=this.filterQueries(this.state.allQueries,this.state.stateFilters,this.state.errorTypeFilters,this.state.searchString);this.sortAndLimitQueries(r,n,e,this.state.maxQueries),this.setState({displayedQueries:r,currentSortType:n,currentSortOrder:e})}},{key:"renderFilterButton",value:function(t,n){var e={color:"#57aac7"},r="btn btn-sm btn-info style-check";return this.state.stateFilters.indexOf(t)>-1&&(r+=" active",e={color:"#ffffff"}),o.default.createElement("button",{type:"button",className:r,onClick:this.handleStateFilterClick.bind(this,t)},o.default.createElement("span",{className:"glyphicon glyphicon-ok",style:e})," ",n)}},{key:"handleStateFilterClick",value:function(t){var n=this.state.stateFilters.slice();this.state.stateFilters.indexOf(t)>-1?n.splice(n.indexOf(t),1):n.push(t);var e=this.filterQueries(this.state.allQueries,n,this.state.errorTypeFilters,this.state.searchString);this.sortAndLimitQueries(e,this.state.currentSortType,this.state.currentSortOrder,this.state.maxQueries),this.setState({stateFilters:n,displayedQueries:e})}},{key:"renderErrorTypeListItem",value:function(t,n){var e={color:"#ffffff"};return this.state.errorTypeFilters.indexOf(t)>-1&&(e=a.GLYPHICON_HIGHLIGHT),o.default.createElement("li",null,o.default.createElement("a",{href:"#",onClick:this.handleErrorTypeFilterClick.bind(this,t)},o.default.createElement("span",{className:"glyphicon glyphicon-ok",style:e})," ",n))}},{key:"handleErrorTypeFilterClick",value:function(t){var n=this.state.errorTypeFilters.slice();this.state.errorTypeFilters.indexOf(t)>-1?n.splice(n.indexOf(t),1):n.push(t);var e=this.filterQueries(this.state.allQueries,this.state.stateFilters,n,this.state.searchString);this.sortAndLimitQueries(e,this.state.currentSortType,this.state.currentSortOrder,this.state.maxQueries),this.setState({errorTypeFilters:n,displayedQueries:e})}},{key:"render",value:function(){var t=o.default.createElement(f,{queries:this.state.displayedQueries});if(null===this.state.displayedQueries||0===this.state.displayedQueries.length){var n=o.default.createElement("div",{className:"loader"},"Loading...");this.state.initialized&&(n=null===this.state.allQueries||0===this.state.allQueries.length?"No queries":"No queries matched filters"),t=o.default.createElement("div",{className:"row error-message"},o.default.createElement("div",{className:"col-xs-12"},o.default.createElement("h4",null,n)))}return o.default.createElement("div",null,o.default.createElement("div",{className:"row toolbar-row"},o.default.createElement("div",{className:"col-xs-12 toolbar-col"},o.default.createElement("div",{className:"input-group input-group-sm"},o.default.createElement("input",{type:"text",className:"form-control form-control-small search-bar",placeholder:"User, source, query ID, query state, resource group, error name, or query text",onChange:this.handleSearchStringChange,value:this.state.searchString}),o.default.createElement("span",{className:"input-group-addon filter-addon"},"State:"),o.default.createElement("div",{className:"input-group-btn"},this.renderFilterButton(h.RUNNING,"Running"),this.renderFilterButton(h.QUEUED,"Queued"),this.renderFilterButton(h.FINISHED,"Finished"),o.default.createElement("button",{type:"button",id:"error-type-dropdown",className:"btn btn-default dropdown-toggle","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},"Failed ",o.default.createElement("span",{className:"caret"})),o.default.createElement("ul",{className:"dropdown-menu error-type-dropdown-menu"},this.renderErrorTypeListItem(p.INTERNAL_ERROR,"Internal Error"),this.renderErrorTypeListItem(p.EXTERNAL,"External Error"),this.renderErrorTypeListItem(p.INSUFFICIENT_RESOURCES,"Resources Error"),this.renderErrorTypeListItem(p.USER_ERROR,"User Error")))," ",o.default.createElement("div",{className:"input-group-btn"},o.default.createElement("button",{type:"button",className:"btn btn-default dropdown-toggle","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},"Sort ",o.default.createElement("span",{className:"caret"})),o.default.createElement("ul",{className:"dropdown-menu"},this.renderSortListItem(d.CREATED,"Creation Time"),this.renderSortListItem(d.ELAPSED,"Elapsed Time"),this.renderSortListItem(d.CPU,"CPU Time"),this.renderSortListItem(d.EXECUTION,"Execution Time"),this.renderSortListItem(d.CURRENT_MEMORY,"Current Memory"),this.renderSortListItem(d.CUMULATIVE_MEMORY,"Cumulative User Memory")))," ",o.default.createElement("div",{className:"input-group-btn"},o.default.createElement("button",{type:"button",className:"btn btn-default dropdown-toggle","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},"Reorder Interval ",o.default.createElement("span",{className:"caret"})),o.default.createElement("ul",{className:"dropdown-menu"},this.renderReorderListItem(1e3,"1s"),this.renderReorderListItem(5e3,"5s"),this.renderReorderListItem(1e4,"10s"),this.renderReorderListItem(3e4,"30s"),o.default.createElement("li",{role:"separator",className:"divider"}),this.renderReorderListItem(0,"Off")))," ",o.default.createElement("div",{className:"input-group-btn"},o.default.createElement("button",{type:"button",className:"btn btn-default dropdown-toggle","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},"Show ",o.default.createElement("span",{className:"caret"})),o.default.createElement("ul",{className:"dropdown-menu"},this.renderMaxQueriesListItem(20,"20 queries"),this.renderMaxQueriesListItem(50,"50 queries"),this.renderMaxQueriesListItem(100,"100 queries"),o.default.createElement("li",{role:"separator",className:"divider"}),this.renderMaxQueriesListItem(0,"All queries")))))),t)}}]),n}(o.default.Component)},6712:(t,n,e)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.GLYPHICON_HIGHLIGHT=n.GLYPHICON_DEFAULT=void 0,n.getQueryStateColor=function(t){switch(t.state){case"QUEUED":return u.QUEUED;case"PLANNING":return u.PLANNING;case"STARTING":case"FINISHING":case"RUNNING":return t.queryStats&&t.queryStats.fullyBlocked?u.BLOCKED:u.RUNNING;case"FAILED":switch(t.errorType){case"USER_ERROR":return"USER_CANCELED"===t.errorCode.name?u.CANCELED:u.USER_ERROR;case"EXTERNAL":return u.EXTERNAL_ERROR;case"INSUFFICIENT_RESOURCES":return u.INSUFFICIENT_RESOURCES;default:return u.UNKNOWN_ERROR}case"FINISHED":return u.FINISHED;default:return u.QUEUED}},n.getStageStateColor=function(t){switch(t.state){case"PLANNED":return u.QUEUED;case"SCHEDULING":case"SCHEDULING_SPLITS":case"SCHEDULED":return u.PLANNING;case"RUNNING":return t.stageStats&&t.stageStats.fullyBlocked?u.BLOCKED:u.RUNNING;case"FINISHED":return u.FINISHED;case"CANCELED":case"ABORTED":return u.CANCELED;case"FAILED":return u.UNKNOWN_ERROR;default:return"#b5b5b5"}},n.getHumanReadableState=c,n.getProgressBarPercentage=s,n.getProgressBarTitle=function(t,n){return t.queryStats.progressPercentage&&"RUNNING"===t.state?c(t,n)+" ("+s(t)+"%)":c(t,n)},n.isQueryEnded=function(t){return["FINISHED","FAILED","CANCELED"].indexOf(t.state)>-1},n.addToHistory=function(t,n){return 0===n.length?n.concat([t]):n.concat([t]).slice(Math.max(n.length-l,0))},n.addExponentiallyWeightedToHistory=function(t,n){if(0===n.length)return n.concat([t]);var e=t*f+n[n.length-1]*(1-f);return t<1&&(e=0),n.concat([e]).slice(Math.max(n.length-l,0))},n.initializeGraph=function(){return new r.graphlib.Graph({compound:!0}).setGraph({rankdir:"BT"}).setDefaultEdgeLabel((function(){return{}}))},n.initializeSvg=function(t){var n=i.select(t);return n.append("g"),n},n.getChildren=function(t){switch(t["@type"]){case"output":case"explainAnalyze":case"project":case"filter":case"aggregation":case"sort":case"markDistinct":case"window":case"rowNumber":case"topnRanking":case"limit":case"distinctlimit":case"topn":case"sample":case"tablewriter":case"delete":case"tableDelete":case"tablecommit":case"groupid":case"unnest":case"scalar":return[t.source];case"join":case"spatialjoin":return[t.left,t.right];case"semijoin":return[t.source,t.filteringSource];case"indexjoin":return[t.probeSource,t.indexSource];case"union":case"exchange":return t.sources;case"remoteSource":case"tablescan":case"values":case"indexsource":break;default:console.log("NOTE: Unhandled PlanNode: "+t["@type"])}return[]},n.truncateString=function(t,n){return t&&t.length>n?t.substring(0,n)+"...":t},n.getStageNumber=function(t){return Number.parseInt(t.slice(t.indexOf(".")+1,t.length))},n.getTaskIdSuffix=h,n.getTaskNumber=function(t){return Number.parseInt(h(h(t)))},n.getFirstParameter=function(t){var n=t.substring(1);return-1!==n.indexOf("&")?n.substring(0,n.indexOf("&")):n},n.getHostname=function(t){var n=new URL(t).hostname;return"["===n.charAt(0)&&"]"===n.charAt(n.length-1)&&(n=n.substr(1,n.length-2)),n},n.getPort=function(t){return new URL(t).port},n.getHostAndPort=function(t){var n=new URL(t);return n.hostname+":"+n.port},n.computeRate=function(t,n){return 0===n?0:t/n*1e3},n.precisionRound=d,n.formatDuration=function(t){var n="ms";return t>1e3&&(t/=1e3,n="s"),"s"===n&&t>60&&(t/=60,n="m"),"m"===n&&t>60&&(t/=60,n="h"),"h"===n&&t>24&&(t/=24,n="d"),"d"===n&&t>7&&(t/=7,n="w"),d(t)+n},n.formatRows=function(t){return 1===t?"1 row":p(t)+" rows"},n.formatCount=p,n.formatDataSizeBytes=function(t){return v(t,"")},n.formatDataSize=g,n.parseDataSize=y,n.parseAndFormatDataSize=function(t){var n=y(t);return null==n?"":g(n)},n.parseDuration=function(t){var n=/^\s*(\d+(?:\.\d+)?)\s*([a-zA-Z]+)\s*$/.exec(t);if(null===n)return null;var e=parseFloat(n[1]);switch(n[2]){case"ns":return e/1e6;case"us":return e/1e3;case"ms":return e;case"s":return 1e3*e;case"m":return 1e3*e*60;case"h":return 1e3*e*60*60;case"d":return 1e3*e*60*60*24;default:return null}},n.formatShortTime=m,n.formatShortDateTime=function(t){var n=t.getFullYear(),e=""+(t.getMonth()+1),r=""+t.getDate();return n+"-"+(e[1]?e:"0"+e[0])+"-"+(r[1]?r:"0"+r[0])+" "+m(t)};var r=o(e(4949)),i=o(e(9808));function o(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e]);return n.default=t,n}n.GLYPHICON_DEFAULT={color:"#1edcff"},n.GLYPHICON_HIGHLIGHT={color:"#999999"};var a="—",u={QUEUED:"#1b8f72",RUNNING:"#19874e",PLANNING:"#674f98",FINISHED:"#1a4629",BLOCKED:"#61003b",USER_ERROR:"#9a7d66",CANCELED:"#858959",INSUFFICIENT_RESOURCES:"#7f5b72",EXTERNAL_ERROR:"#ca7640",UNKNOWN_ERROR:"#943524"};function c(t,n){if("RUNNING"===t.state){var e="RUNNING";if(t.scheduled&&t.queryStats.totalDrivers>0&&t.queryStats.runningDrivers>=0)return t.queryStats.fullyBlocked&&(e="BLOCKED",t.queryStats.blockedReasons&&t.queryStats.blockedReasons.length>0&&(e+=" ("+t.queryStats.blockedReasons.join(", ")+")")),"reserved"===t.memoryPool&&(e+=" (RESERVED)"),e}if("FAILED"===t.state){var r="";switch(t.errorType){case"USER_ERROR":r="USER ERROR","USER_CANCELED"===t.errorCode.name&&(r="USER CANCELED");break;case"INTERNAL_ERROR":r="INTERNAL ERROR";break;case"INSUFFICIENT_RESOURCES":r="INSUFFICIENT RESOURCES";break;case"EXTERNAL":r="EXTERNAL ERROR"}return n&&t.errorCode&&t.errorCode.name&&(r+=" "+a+" "+t.errorCode.name),r}return t.state}function s(t){var n=t.queryStats.progressPercentage;return n&&"RUNNING"===t.state?Math.round(n):100}var l=300,f=.2;function h(t){return t.slice(t.indexOf(".")+1,t.length)}function d(t){return t<10?t.toFixed(2):t<100?t.toFixed(1):Math.round(t).toString()}function p(t){var n="";return t>1e3&&(t/=1e3,n="K"),t>1e3&&(t/=1e3,n="M"),t>1e3&&(t/=1e3,n="B"),t>1e3&&(t/=1e3,n="T"),t>1e3&&(t/=1e3,n="Q"),d(t)+n}function g(t){return v(t,"B")}function v(t,n){var e=n;return 0===t?"0"+e:(t>=1024&&(t/=1024,e="K"+n),t>=1024&&(t/=1024,e="M"+n),t>=1024&&(t/=1024,e="G"+n),t>=1024&&(t/=1024,e="T"+n),t>=1024&&(t/=1024,e="P"+n),d(t)+e)}function y(t){var n=/^\s*(\d+(?:\.\d+)?)\s*([a-zA-Z]+)\s*$/.exec(t);if(null===n)return null;var e=parseFloat(n[1]);switch(n[2]){case"B":return e;case"kB":return e*Math.pow(2,10);case"MB":return e*Math.pow(2,20);case"GB":return e*Math.pow(2,30);case"TB":return e*Math.pow(2,40);case"PB":return e*Math.pow(2,50);default:return null}}function m(t){return(t.getHours()%12||12)+":"+(t.getMinutes()<10?"0":"")+t.getMinutes()+(t.getHours()>=12?"pm":"am")}},8949:(t,n,e)=>{"use strict";e.d(n,{qh:()=>m,XP:()=>v,UI:()=>a,b1:()=>u,t8:()=>g,VO:()=>y});var r="$";function i(){}function o(t,n){var e=new i;if(t instanceof i)t.each((function(t,n){e.set(n,t)}));else if(Array.isArray(t)){var r,o=-1,a=t.length;if(null==n)for(;++o=r.length)return null!=t&&e.sort(t),null!=n?n(e):e;for(var s,l,f,h=-1,d=e.length,p=r[i++],g=a(),v=u();++hr.length)return t;var o,a=i[e-1];return null!=n&&e>=r.length?o=t.entries():(o=[],t.each((function(t,n){o.push({key:n,values:u(t,e)})}))),null!=a?o.sort((function(t,n){return a(t.key,n.key)})):o}return e={object:function(t){return o(t,0,c,s)},map:function(t){return o(t,0,l,f)},entries:function(t){return u(o(t,0,l,f),0)},key:function(t){return r.push(t),e},sortKeys:function(t){return i[r.length-1]=t,e},sortValues:function(n){return t=n,e},rollup:function(t){return n=t,e}}}function c(){return{}}function s(t,n,e){t[n]=e}function l(){return a()}function f(t,n,e){t.set(n,e)}function h(){}var d=a.prototype;function p(t,n){var e=new h;if(t instanceof h)t.each((function(t){e.add(t)}));else if(t){var r=-1,i=t.length;if(null==n)for(;++r{"use strict";e.d(n,{W:()=>c});var r={value:function(){}};function i(){for(var t,n=0,e=arguments.length,r={};n=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))),c=-1,s=o.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++c0)for(var e,r,i=new Array(e),o=0;o{"use strict";e.d(n,{Sf:()=>d,Jb:()=>p,ue:()=>f,Bj:()=>h,yv:()=>s,vP:()=>m,n5:()=>_,tJ:()=>v,E0:()=>y});var r={},i={},o=34,a=10,u=13;function c(t){return new Function("d","return {"+t.map((function(t,n){return JSON.stringify(t)+": d["+n+"]"})).join(",")+"}")}function s(t){var n=new RegExp('["'+t+"\n\r]"),e=t.charCodeAt(0);function s(t,n){var c,s=[],l=t.length,f=0,h=0,d=l<=0,p=!1;function g(){if(d)return i;if(p)return p=!1,r;var n,c,s=f;if(t.charCodeAt(s)===o){for(;f++=l?d=!0:(c=t.charCodeAt(f++))===a?p=!0:c===u&&(p=!0,t.charCodeAt(f)===a&&++f),t.slice(s+1,n-1).replace(/""/g,'"')}for(;f{"use strict";e.r(n),e.d(n,{active:()=>Yo,arc:()=>rb,area:()=>sb,areaRadial:()=>mb,ascending:()=>i,axisBottom:()=>ct,axisLeft:()=>st,axisRight:()=>ut,axisTop:()=>at,bisect:()=>s,bisectLeft:()=>c,bisectRight:()=>u,bisector:()=>o,blob:()=>ru,brush:()=>ga,brushSelection:()=>ha,brushX:()=>da,brushY:()=>pa,buffer:()=>ou,chord:()=>Ma,clientPoint:()=>Pn,cluster:()=>pd,color:()=>fe,contourDensity:()=>tu,contours:()=>Ga,create:()=>Tn,creator:()=>vt,cross:()=>h,csv:()=>lu,csvFormat:()=>nu.Sf,csvFormatRows:()=>nu.Jb,csvParse:()=>nu.ue,csvParseRows:()=>nu.Bj,cubehelix:()=>Ze,curveBasis:()=>Kb,curveBasisClosed:()=>tw,curveBasisOpen:()=>ew,curveBundle:()=>iw,curveCardinal:()=>uw,curveCardinalClosed:()=>sw,curveCardinalOpen:()=>fw,curveCatmullRom:()=>pw,curveCatmullRomClosed:()=>vw,curveCatmullRomOpen:()=>mw,curveLinear:()=>ob,curveLinearClosed:()=>bw,curveMonotoneX:()=>Sw,curveMonotoneY:()=>Cw,curveNatural:()=>Pw,curveStep:()=>Lw,curveStepAfter:()=>Dw,curveStepBefore:()=>Uw,customEvent:()=>mn,descending:()=>d,deviation:()=>v,dispatch:()=>lt.W,drag:()=>Xn,dragDisable:()=>Fn,dragEnable:()=>qn,dsv:()=>su,dsvFormat:()=>nu.yv,easeBack:()=>Do,easeBackIn:()=>Lo,easeBackInOut:()=>Do,easeBackOut:()=>Uo,easeBounce:()=>Ro,easeBounceIn:()=>Ao,easeBounceInOut:()=>Po,easeBounceOut:()=>Ro,easeCircle:()=>_o,easeCircleIn:()=>yo,easeCircleInOut:()=>_o,easeCircleOut:()=>mo,easeCubic:()=>io,easeCubicIn:()=>eo,easeCubicInOut:()=>io,easeCubicOut:()=>ro,easeElastic:()=>Fo,easeElasticIn:()=>zo,easeElasticInOut:()=>qo,easeElasticOut:()=>Fo,easeExp:()=>vo,easeExpIn:()=>po,easeExpInOut:()=>vo,easeExpOut:()=>go,easeLinear:()=>Ki,easePoly:()=>uo,easePolyIn:()=>oo,easePolyInOut:()=>uo,easePolyOut:()=>ao,easeQuad:()=>no,easeQuadIn:()=>Ji,easeQuadInOut:()=>no,easeQuadOut:()=>to,easeSin:()=>ho,easeSinIn:()=>lo,easeSinInOut:()=>ho,easeSinOut:()=>fo,entries:()=>Fa.qh,event:()=>dn,extent:()=>y,forceCenter:()=>_u,forceCollide:()=>Pu,forceLink:()=>Uu,forceManyBody:()=>ju,forceRadial:()=>Bu,forceSimulation:()=>qu,forceX:()=>Hu,forceY:()=>Yu,format:()=>nc,formatDefaultLocale:()=>oc,formatLocale:()=>ic,formatPrefix:()=>ec,formatSpecifier:()=>$u,geoAlbers:()=>Sh,geoAlbersUsa:()=>Ch,geoArea:()=>ns,geoAzimuthalEqualArea:()=>Ih,geoAzimuthalEqualAreaRaw:()=>Ph,geoAzimuthalEquidistant:()=>Uh,geoAzimuthalEquidistantRaw:()=>Lh,geoBounds:()=>Xs,geoCentroid:()=>ol,geoCircle:()=>vl,geoClipAntimeridian:()=>Tl,geoClipCircle:()=>Sl,geoClipExtent:()=>Pl,geoClipRectangle:()=>Rl,geoConicConformal:()=>jh,geoConicConformalRaw:()=>qh,geoConicEqualArea:()=>Th,geoConicEqualAreaRaw:()=>kh,geoConicEquidistant:()=>Vh,geoConicEquidistantRaw:()=>Yh,geoContains:()=>Jl,geoDistance:()=>Yl,geoEqualEarth:()=>Kh,geoEqualEarthRaw:()=>Zh,geoEquirectangular:()=>Hh,geoEquirectangularRaw:()=>Bh,geoGnomonic:()=>td,geoGnomonicRaw:()=>Jh,geoGraticule:()=>ef,geoGraticule10:()=>rf,geoIdentity:()=>ed,geoInterpolate:()=>of,geoLength:()=>jl,geoMercator:()=>Oh,geoMercatorRaw:()=>Dh,geoNaturalEarth1:()=>id,geoNaturalEarth1Raw:()=>rd,geoOrthographic:()=>ad,geoOrthographicRaw:()=>od,geoPath:()=>ch,geoProjection:()=>Mh,geoProjectionMutator:()=>Eh,geoRotation:()=>dl,geoStereographic:()=>cd,geoStereographicRaw:()=>ud,geoStream:()=>Bc,geoTransform:()=>sh,geoTransverseMercator:()=>ld,geoTransverseMercatorRaw:()=>sd,gray:()=>Pe,hcl:()=>je,hierarchy:()=>vd,histogram:()=>R,hsl:()=>_e,html:()=>yu,image:()=>hu,interpolate:()=>yr,interpolateArray:()=>lr,interpolateBasis:()=>tr,interpolateBasisClosed:()=>nr,interpolateBlues:()=>d_,interpolateBrBG:()=>Nm,interpolateBuGn:()=>Hm,interpolateBuPu:()=>Vm,interpolateCool:()=>k_,interpolateCubehelix:()=>Vr,interpolateCubehelixDefault:()=>E_,interpolateCubehelixLong:()=>Wr,interpolateDate:()=>fr,interpolateDiscrete:()=>mr,interpolateGnBu:()=>Xm,interpolateGreens:()=>g_,interpolateGreys:()=>y_,interpolateHcl:()=>Br,interpolateHclLong:()=>Hr,interpolateHsl:()=>zr,interpolateHslLong:()=>Fr,interpolateHue:()=>_r,interpolateInferno:()=>D_,interpolateLab:()=>qr,interpolateMagma:()=>U_,interpolateNumber:()=>hr,interpolateObject:()=>dr,interpolateOrRd:()=>$m,interpolateOranges:()=>M_,interpolatePRGn:()=>Tm,interpolatePiYG:()=>Cm,interpolatePlasma:()=>O_,interpolatePuBu:()=>Jm,interpolatePuBuGn:()=>Zm,interpolatePuOr:()=>Rm,interpolatePuRd:()=>n_,interpolatePurples:()=>__,interpolateRainbow:()=>S_,interpolateRdBu:()=>Im,interpolateRdGy:()=>Um,interpolateRdPu:()=>r_,interpolateRdYlBu:()=>Om,interpolateRdYlGn:()=>Fm,interpolateReds:()=>w_,interpolateRgb:()=>ar,interpolateRgbBasis:()=>cr,interpolateRgbBasisClosed:()=>sr,interpolateRound:()=>br,interpolateSinebow:()=>P_,interpolateSpectral:()=>jm,interpolateString:()=>vr,interpolateTransformCss:()=>Cr,interpolateTransformSvg:()=>Ar,interpolateViridis:()=>L_,interpolateWarm:()=>N_,interpolateYlGn:()=>u_,interpolateYlGnBu:()=>o_,interpolateYlOrBr:()=>s_,interpolateYlOrRd:()=>f_,interpolateZoom:()=>Dr,interrupt:()=>Ci,interval:()=>gi,isoFormat:()=>Qy,isoParse:()=>Ky,json:()=>pu,keys:()=>Fa.XP,lab:()=>Ie,lch:()=>qe,line:()=>cb,lineRadial:()=>yb,linkHorizontal:()=>Tb,linkRadial:()=>Cb,linkVertical:()=>Sb,local:()=>Cn,map:()=>Fa.UI,matcher:()=>Et,max:()=>U,mean:()=>D,median:()=>O,merge:()=>z,min:()=>F,mouse:()=>In,namespace:()=>dt,namespaces:()=>ht,nest:()=>Fa.b1,now:()=>ai,pack:()=>qd,packEnclose:()=>xd,packSiblings:()=>Ud,pairs:()=>l,partition:()=>Wd,path:()=>Pa,permute:()=>q,pie:()=>hb,piecewise:()=>Xr,pointRadial:()=>_b,polygonArea:()=>pp,polygonCentroid:()=>gp,polygonContains:()=>bp,polygonHull:()=>_p,polygonLength:()=>wp,precisionFixed:()=>ac,precisionPrefix:()=>uc,precisionRound:()=>cc,quadtree:()=>ku,quantile:()=>P,quantize:()=>Gr,radialArea:()=>mb,radialLine:()=>yb,randomBates:()=>Tp,randomExponential:()=>Sp,randomIrwinHall:()=>kp,randomLogNormal:()=>Np,randomNormal:()=>Ep,randomUniform:()=>Mp,range:()=>M,rgb:()=>ge,ribbon:()=>za,scaleBand:()=>Lp,scaleDiverging:()=>hm,scaleIdentity:()=>Xp,scaleImplicit:()=>Pp,scaleLinear:()=>Wp,scaleLog:()=>ng,scaleOrdinal:()=>Ip,scalePoint:()=>Dp,scalePow:()=>rg,scaleQuantile:()=>og,scaleQuantize:()=>ag,scaleSequential:()=>fm,scaleSqrt:()=>ig,scaleThreshold:()=>ug,scaleTime:()=>sm,scaleUtc:()=>lm,scan:()=>j,schemeAccent:()=>gm,schemeBlues:()=>h_,schemeBrBG:()=>Em,schemeBuGn:()=>Bm,schemeBuPu:()=>Ym,schemeCategory10:()=>pm,schemeDark2:()=>vm,schemeGnBu:()=>Wm,schemeGreens:()=>p_,schemeGreys:()=>v_,schemeOrRd:()=>Gm,schemeOranges:()=>x_,schemePRGn:()=>km,schemePaired:()=>ym,schemePastel1:()=>mm,schemePastel2:()=>_m,schemePiYG:()=>Sm,schemePuBu:()=>Km,schemePuBuGn:()=>Qm,schemePuOr:()=>Am,schemePuRd:()=>t_,schemePurples:()=>m_,schemeRdBu:()=>Pm,schemeRdGy:()=>Lm,schemeRdPu:()=>e_,schemeRdYlBu:()=>Dm,schemeRdYlGn:()=>zm,schemeReds:()=>b_,schemeSet1:()=>bm,schemeSet2:()=>wm,schemeSet3:()=>xm,schemeSpectral:()=>qm,schemeYlGn:()=>a_,schemeYlGnBu:()=>i_,schemeYlOrBr:()=>c_,schemeYlOrRd:()=>l_,select:()=>kn,selectAll:()=>Ln,selection:()=>Nn,selector:()=>mt,selectorAll:()=>bt,set:()=>Fa.t8,shuffle:()=>B,stack:()=>qw,stackOffsetDiverging:()=>Bw,stackOffsetExpand:()=>jw,stackOffsetNone:()=>Ow,stackOffsetSilhouette:()=>Hw,stackOffsetWiggle:()=>Yw,stackOrderAscending:()=>Vw,stackOrderDescending:()=>Xw,stackOrderInsideOut:()=>Gw,stackOrderNone:()=>zw,stackOrderReverse:()=>$w,stratify:()=>Kd,style:()=>jt,sum:()=>H,svg:()=>mu,symbol:()=>Gb,symbolCircle:()=>Ab,symbolCross:()=>Rb,symbolDiamond:()=>Lb,symbolSquare:()=>Fb,symbolStar:()=>zb,symbolTriangle:()=>jb,symbolWye:()=>Wb,symbols:()=>Xb,text:()=>uu,thresholdFreedmanDiaconis:()=>I,thresholdScott:()=>L,thresholdSturges:()=>A,tickIncrement:()=>S,tickStep:()=>C,ticks:()=>T,timeDay:()=>Cg,timeDays:()=>Ag,timeFormat:()=>Iv,timeFormatDefaultLocale:()=>Xy,timeFormatLocale:()=>Rv,timeFriday:()=>Og,timeFridays:()=>Yg,timeHour:()=>kg,timeHours:()=>Tg,timeInterval:()=>lg,timeMillisecond:()=>hg,timeMilliseconds:()=>dg,timeMinute:()=>Mg,timeMinutes:()=>Eg,timeMonday:()=>Ig,timeMondays:()=>qg,timeMonth:()=>Xg,timeMonths:()=>Gg,timeParse:()=>Lv,timeSaturday:()=>zg,timeSaturdays:()=>Vg,timeSecond:()=>bg,timeSeconds:()=>wg,timeSunday:()=>Pg,timeSundays:()=>Fg,timeThursday:()=>Dg,timeThursdays:()=>Hg,timeTuesday:()=>Lg,timeTuesdays:()=>jg,timeWednesday:()=>Ug,timeWednesdays:()=>Bg,timeWeek:()=>Pg,timeWeeks:()=>Fg,timeYear:()=>Qg,timeYears:()=>Zg,timeout:()=>pi,timer:()=>si,timerFlush:()=>li,touch:()=>Un,touches:()=>Dn,transition:()=>$i,transpose:()=>Y,tree:()=>op,treemap:()=>lp,treemapBinary:()=>fp,treemapDice:()=>Vd,treemapResquarify:()=>dp,treemapSlice:()=>ap,treemapSliceDice:()=>hp,treemapSquarify:()=>sp,tsv:()=>fu,tsvFormat:()=>nu.vP,tsvFormatRows:()=>nu.n5,tsvParse:()=>nu.tJ,tsvParseRows:()=>nu.E0,utcDay:()=>ov,utcDays:()=>av,utcFormat:()=>Uv,utcFriday:()=>dv,utcFridays:()=>bv,utcHour:()=>ev,utcHours:()=>rv,utcMillisecond:()=>hg,utcMilliseconds:()=>dg,utcMinute:()=>Jg,utcMinutes:()=>tv,utcMonday:()=>sv,utcMondays:()=>vv,utcMonth:()=>Mv,utcMonths:()=>Ev,utcParse:()=>Dv,utcSaturday:()=>pv,utcSaturdays:()=>wv,utcSecond:()=>bg,utcSeconds:()=>wg,utcSunday:()=>cv,utcSundays:()=>gv,utcThursday:()=>hv,utcThursdays:()=>_v,utcTuesday:()=>lv,utcTuesdays:()=>yv,utcWednesday:()=>fv,utcWednesdays:()=>mv,utcWeek:()=>cv,utcWeeks:()=>gv,utcYear:()=>kv,utcYears:()=>Tv,values:()=>Fa.VO,variance:()=>g,version:()=>r,voronoi:()=>Ux,window:()=>Ot,xml:()=>vu,zip:()=>W,zoom:()=>$x,zoomIdentity:()=>Fx,zoomTransform:()=>qx});var r="5.7.0";function i(t,n){return tn?1:t>=n?0:NaN}function o(t){var n;return 1===t.length&&(n=t,t=function(t,e){return i(n(t),e)}),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)>0?i=o:r=o+1}return r}}}var a=o(i),u=a.right,c=a.left;const s=u;function l(t,n){null==n&&(n=f);for(var e=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);et?1:n>=t?0:NaN}function p(t){return null===t?NaN:+t}function g(t,n){var e,r,i=t.length,o=0,a=-1,u=0,c=0;if(null==n)for(;++a1)return c/(o-1)}function v(t,n){var e=g(t,n);return e?Math.sqrt(e):e}function y(t,n){var e,r,i,o=t.length,a=-1;if(null==n){for(;++a=e)for(r=i=e;++ae&&(r=e),i=e)for(r=i=e;++ae&&(r=e),i0)return[t];if((r=n0)for(t=Math.ceil(t/a),n=Math.floor(n/a),o=new Array(i=Math.ceil(n-t+1));++u=0?(o>=E?10:o>=N?5:o>=k?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=E?10:o>=N?5:o>=k?2:1)}function C(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=E?i*=10:o>=N?i*=5:o>=k&&(i*=2),nf;)h.pop(),--d;var p,g=new Array(d+1);for(i=0;i<=d;++i)(p=g[i]=[]).x0=i>0?h[i-1]:l,p.x1=i=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),a=+e(t[o],o,t);return a+(+e(t[o+1],o+1,t)-a)*(i-o)}}function I(t,n,e){return t=b.call(t,p).sort(i),Math.ceil((e-n)/(2*(P(t,.75)-P(t,.25))*Math.pow(t.length,-1/3)))}function L(t,n,e){return Math.ceil((e-n)/(3.5*v(t)*Math.pow(t.length,-1/3)))}function U(t,n){var e,r,i=t.length,o=-1;if(null==n){for(;++o=e)for(r=e;++or&&(r=e)}else for(;++o=e)for(r=e;++or&&(r=e);return r}function D(t,n){var e,r=t.length,i=r,o=-1,a=0;if(null==n)for(;++o=0;)for(n=(r=t[i]).length;--n>=0;)e[--a]=r[n];return e}function F(t,n){var e,r,i=t.length,o=-1;if(null==n){for(;++o=e)for(r=e;++oe&&(r=e)}else for(;++o=e)for(r=e;++oe&&(r=e);return r}function q(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r}function j(t,n){if(e=t.length){var e,r,o=0,a=0,u=t[a];for(null==n&&(n=i);++o=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),ht.hasOwnProperty(n)?{space:ht[n],local:t}:t}function pt(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===ft&&n.documentElement.namespaceURI===ft?n.createElement(t):n.createElementNS(e,t)}}function gt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function vt(t){var n=dt(t);return(n.local?gt:pt)(n)}function yt(){}function mt(t){return null==t?yt:function(){return this.querySelector(t)}}function _t(){return[]}function bt(t){return null==t?_t:function(){return this.querySelectorAll(t)}}var wt=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var xt=document.documentElement;if(!xt.matches){var Mt=xt.webkitMatchesSelector||xt.msMatchesSelector||xt.mozMatchesSelector||xt.oMatchesSelector;wt=function(t){return function(){return Mt.call(this,t)}}}}const Et=wt;function Nt(t){return new Array(t.length)}function kt(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}kt.prototype={constructor:kt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Tt="$";function St(t,n,e,r,i,o){for(var a,u=0,c=n.length,s=o.length;un?1:t>=n?0:NaN}function Rt(t){return function(){this.removeAttribute(t)}}function Pt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function It(t,n){return function(){this.setAttribute(t,n)}}function Lt(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function Ut(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function Dt(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Ot(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function zt(t){return function(){this.style.removeProperty(t)}}function Ft(t,n,e){return function(){this.style.setProperty(t,n,e)}}function qt(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function jt(t,n){return t.style.getPropertyValue(n)||Ot(t).getComputedStyle(t,null).getPropertyValue(n)}function Bt(t){return function(){delete this[t]}}function Ht(t,n){return function(){this[t]=n}}function Yt(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Vt(t){return t.trim().split(/^|\s+/)}function Wt(t){return t.classList||new Xt(t)}function Xt(t){this._node=t,this._names=Vt(t.getAttribute("class")||"")}function Gt(t,n){for(var e=Wt(t),r=-1,i=n.length;++r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var hn={},dn=null;function pn(t,n,e){return t=gn(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function gn(t,n,e){return function(r){var i=dn;dn=r;try{t.call(this,this.__data__,n,e)}finally{dn=i}}}function vn(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r=w&&(w=b+1);!(_=y[w])&&++w=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=At);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o1?this.each((null==n?zt:"function"==typeof n?qt:Ft)(t,n,null==e?"":e)):jt(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?Bt:"function"==typeof n?Yt:Ht)(t,n)):this.node()[t]},classed:function(t,n){var e=Vt(t+"");if(arguments.length<2){for(var r=Wt(this.node()),i=-1,o=e.length;++i=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(u=n?yn:vn,null==e&&(e=!1),r=0;rf}c.mouse("drag")}function g(){kn(dn.view).on("mousemove.drag mouseup.drag",null),qn(dn.view,e),zn(),c.mouse("end")}function v(){if(i.apply(this,arguments)){var t,n,e=dn.changedTouches,r=o.apply(this,arguments),a=e.length;for(t=0;t>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):(n=re.exec(t))?he(parseInt(n[1],16)):(n=ie.exec(t))?new ve(n[1],n[2],n[3],1):(n=oe.exec(t))?new ve(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=ae.exec(t))?de(n[1],n[2],n[3],n[4]):(n=ue.exec(t))?de(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=ce.exec(t))?me(n[1],n[2]/100,n[3]/100,1):(n=se.exec(t))?me(n[1],n[2]/100,n[3]/100,n[4]):le.hasOwnProperty(t)?he(le[t]):"transparent"===t?new ve(NaN,NaN,NaN,0):null}function he(t){return new ve(t>>16&255,t>>8&255,255&t,1)}function de(t,n,e,r){return r<=0&&(t=n=e=NaN),new ve(t,n,e,r)}function pe(t){return t instanceof Qn||(t=fe(t)),t?new ve((t=t.rgb()).r,t.g,t.b,t.opacity):new ve}function ge(t,n,e,r){return 1===arguments.length?pe(t):new ve(t,n,e,null==r?1:r)}function ve(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function ye(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function me(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new be(t,n,e,r)}function _e(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof be)return new be(t.h,t.s,t.l,t.opacity);if(t instanceof Qn||(t=fe(t)),!t)return new be;if(t instanceof be)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e0&&c<1?0:a,new be(a,u,c,t.opacity)}(t):new be(t,n,e,null==r?1:r)}function be(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function we(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}Gn(Qn,fe,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Gn(ve,ge,$n(Qn,{brighter:function(t){return t=null==t?Kn:Math.pow(Kn,t),new ve(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Zn:Math.pow(Zn,t),new ve(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+ye(this.r)+ye(this.g)+ye(this.b)},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),Gn(be,_e,$n(Qn,{brighter:function(t){return t=null==t?Kn:Math.pow(Kn,t),new be(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Zn:Math.pow(Zn,t),new be(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new ve(we(t>=240?t-240:t+120,i,r),we(t,i,r),we(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var xe=Math.PI/180,Me=180/Math.PI,Ee=.96422,Ne=1,ke=.82521,Te=4/29,Se=6/29,Ce=3*Se*Se,Ae=Se*Se*Se;function Re(t){if(t instanceof Le)return new Le(t.l,t.a,t.b,t.opacity);if(t instanceof Be){if(isNaN(t.h))return new Le(t.l,0,0,t.opacity);var n=t.h*xe;return new Le(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof ve||(t=pe(t));var e,r,i=ze(t.r),o=ze(t.g),a=ze(t.b),u=Ue((.2225045*i+.7168786*o+.0606169*a)/Ne);return i===o&&o===a?e=r=u:(e=Ue((.4360747*i+.3850649*o+.1430804*a)/Ee),r=Ue((.0139322*i+.0971045*o+.7141733*a)/ke)),new Le(116*u-16,500*(e-u),200*(u-r),t.opacity)}function Pe(t,n){return new Le(t,0,0,null==n?1:n)}function Ie(t,n,e,r){return 1===arguments.length?Re(t):new Le(t,n,e,null==r?1:r)}function Le(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function Ue(t){return t>Ae?Math.pow(t,1/3):t/Ce+Te}function De(t){return t>Se?t*t*t:Ce*(t-Te)}function Oe(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ze(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Fe(t){if(t instanceof Be)return new Be(t.h,t.c,t.l,t.opacity);if(t instanceof Le||(t=Re(t)),0===t.a&&0===t.b)return new Be(NaN,0,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*Me;return new Be(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function qe(t,n,e,r){return 1===arguments.length?Fe(t):new Be(e,n,t,null==r?1:r)}function je(t,n,e,r){return 1===arguments.length?Fe(t):new Be(t,n,e,null==r?1:r)}function Be(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}Gn(Le,Ie,$n(Qn,{brighter:function(t){return new Le(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Le(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return new ve(Oe(3.1338561*(n=Ee*De(n))-1.6168667*(t=Ne*De(t))-.4906146*(e=ke*De(e))),Oe(-.9787684*n+1.9161415*t+.033454*e),Oe(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),Gn(Be,je,$n(Qn,{brighter:function(t){return new Be(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Be(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return Re(this).rgb()}}));var He=-.14861,Ye=1.78277,Ve=-.29227,We=-.90649,Xe=1.97294,Ge=Xe*We,$e=Xe*Ye,Qe=Ye*Ve-We*He;function Ze(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Ke)return new Ke(t.h,t.s,t.l,t.opacity);t instanceof ve||(t=pe(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(Qe*r+Ge*n-$e*e)/(Qe+Ge-$e),o=r-i,a=(Xe*(e-i)-Ve*o)/We,u=Math.sqrt(a*a+o*o)/(Xe*i*(1-i)),c=u?Math.atan2(a,o)*Me-120:NaN;return new Ke(c<0?c+360:c,u,i,t.opacity)}(t):new Ke(t,n,e,null==r?1:r)}function Ke(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Je(t,n,e,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*r+a*i)/6}function tr(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=r180||e<-180?e-360*Math.round(e/360):e):er(isNaN(t)?n:t)}function or(t,n){var e=n-t;return e?rr(t,e):er(isNaN(t)?n:t)}Gn(Ke,Ze,$n(Qn,{brighter:function(t){return t=null==t?Kn:Math.pow(Kn,t),new Ke(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Zn:Math.pow(Zn,t),new Ke(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*xe,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new ve(255*(n+e*(He*r+Ye*i)),255*(n+e*(Ve*r+We*i)),255*(n+e*(Xe*r)),this.opacity)}}));const ar=function t(n){var e=function(t){return 1==(t=+t)?or:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):er(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=ge(t)).r,(n=ge(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=or(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function ur(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),u=new Array(i);for(e=0;eo&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:hr(e,r)})),o=gr.lastIndex;return o180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:hr(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,a.rotate,u,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:hr(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,a.skewX,u,c),function(t,n,e,r,o,a){if(t!==e||n!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:hr(t,e)},{i:u-2,x:hr(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var n,e=-1,r=c.length;++e=0&&n._call.call(null,t),n=n._next;--Zr}function fi(){ei=(ni=ii.now())+ri,Zr=Kr=0;try{li()}finally{Zr=0,function(){for(var t,n,e=$r,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:$r=n);Qr=t,di(r)}(),ei=0}}function hi(){var t=ii.now(),n=t-ni;n>ti&&(ri-=n,ni=t)}function di(t){Zr||(Kr&&(Kr=clearTimeout(Kr)),t-ei>24?(t<1/0&&(Kr=setTimeout(fi,t-ii.now()-ri)),Jr&&(Jr=clearInterval(Jr))):(Jr||(ni=ii.now(),Jr=setInterval(hi,ti)),Zr=1,oi(fi)))}function pi(t,n,e){var r=new ci;return n=null==n?0:+n,r.restart((function(e){r.stop(),t(e+n)}),n,e),r}function gi(t,n,e){var r=new ci,i=n;return null==n?(r.restart(t,n,e),r):(n=+n,e=null==e?ai():+e,r.restart((function o(a){a+=i,r.restart(o,i+=n,e),t(a)}),n,e),r)}ci.prototype=si.prototype={constructor:ci,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?ai():+e)+(null==n?0:+n),this._next||Qr===this||(Qr?Qr._next=this:$r=this,Qr=this),this._call=t,this._time=e,di()},stop:function(){this._call&&(this._call=null,this._time=1/0,di())}};var vi=(0,lt.W)("start","end","interrupt"),yi=[],mi=0,_i=1,bi=2,wi=3,xi=4,Mi=5,Ei=6;function Ni(t,n,e,r,i,o){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(c){var s,l,f,h;if(e.state!==_i)return u();for(s in i)if((h=i[s]).name===e.name){if(h.state===wi)return pi(o);h.state===xi?(h.state=Ei,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[s]):+smi)throw new Error("too late; already scheduled");return e}function Ti(t,n){var e=Si(t,n);if(e.state>bi)throw new Error("too late; already started");return e}function Si(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function Ci(t,n){var e,r,i,o=t.__transition,a=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>bi&&e.state=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?ki:Ti;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(n,e),a.on=i}}(e,t,n))},attr:function(t,n){var e=dt(t),r="transform"===e?Ar:Ii;return this.attrTween(t,"function"==typeof n?(e.local?Fi:zi)(e,r,Pi(this,"attr."+t,n)):null==n?(e.local?Ui:Li)(e):(e.local?Oi:Di)(e,r,n+""))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=dt(t);return this.tween(e,(r.local?qi:ji)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?Cr:Ii;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=jt(this,t),a=(this.style.removeProperty(t),jt(this,t));return o===a?null:o===e&&a===r?i:i=n(e=o,r=a)}}(t,r)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof n?function(t,n,e){var r,i,o;return function(){var a=jt(this,t),u=e(this);return null==u&&(this.style.removeProperty(t),u=jt(this,t)),a===u?null:a===r&&u===i?o:o=n(r=a,i=u)}}(t,r,Pi(this,"style."+t,n)):function(t,n,e){var r,i;return function(){var o=jt(this,t);return o===e?null:o===r?i:i=n(r=o,e)}}(t,r,n+""),e)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,function(t,n,e){function r(){var r=this,i=n.apply(r,arguments);return i&&function(n){r.style.setProperty(t,i(n),e)}}return r._value=n,r}(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(Pi(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},remove:function(){return this.on("end.remove",function(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=Si(this.node(),e).tween,o=0,a=i.length;o_i&&e.name===n)return new Gi([[t]],Ho,n,+r);return null}function Vo(t){return function(){return t}}function Wo(t,n,e){this.target=t,this.type=n,this.selection=e}function Xo(){dn.stopImmediatePropagation()}function Go(){dn.preventDefault(),dn.stopImmediatePropagation()}var $o={name:"drag"},Qo={name:"space"},Zo={name:"handle"},Ko={name:"center"},Jo={name:"x",handles:["e","w"].map(ua),input:function(t,n){return t&&[[t[0],n[0][1]],[t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},ta={name:"y",handles:["n","s"].map(ua),input:function(t,n){return t&&[[n[0][0],t[0]],[n[1][0],t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},na={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(ua),input:function(t){return t},output:function(t){return t}},ea={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},ra={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},ia={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},oa={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},aa={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function ua(t){return{type:t}}function ca(){return!dn.button}function sa(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function la(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function fa(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function ha(t){var n=t.__brush;return n?n.dim.output(n.selection):null}function da(){return va(Jo)}function pa(){return va(ta)}function ga(){return va(na)}function va(t){var n,e=sa,r=ca,i=(0,lt.W)(a,"start","brush","end"),o=6;function a(n){var e=n.property("__brush",f).selectAll(".overlay").data([ua("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",ea.overlay).merge(e).each((function(){var t=la(this).extent;kn(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),n.selectAll(".selection").data([ua("selection")]).enter().append("rect").attr("class","selection").attr("cursor",ea.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=n.selectAll(".handle").data(t.handles,(function(t){return t.type}));r.exit().remove(),r.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return ea[t.type]})),n.each(u).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",l)}function u(){var t=kn(this),n=la(this).selection;n?(t.selectAll(".selection").style("display",null).attr("x",n[0][0]).attr("y",n[0][1]).attr("width",n[1][0]-n[0][0]).attr("height",n[1][1]-n[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?n[1][0]-o/2:n[0][0]-o/2})).attr("y",(function(t){return"s"===t.type[0]?n[1][1]-o/2:n[0][1]-o/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?n[1][0]-n[0][0]+o:o})).attr("height",(function(t){return"e"===t.type||"w"===t.type?n[1][1]-n[0][1]+o:o}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(t,n){return t.__brush.emitter||new s(t,n)}function s(t,n){this.that=t,this.args=n,this.state=t.__brush,this.active=0}function l(){if(dn.touches){if(dn.changedTouches.length0&&(e=i-d),x<0?f=h-p:x>0&&(o=a-p),b=Qo,U.attr("cursor",ea.selection),z());break;default:return}Go()}),!0).on("keyup.brush",(function(){switch(dn.keyCode){case 16:A&&(v=y=A=!1,z());break;case 18:b===Ko&&(w<0?s=l:w>0&&(e=i),x<0?f=h:x>0&&(o=a),b=Zo,z());break;case 32:b===Qo&&(dn.altKey?(w&&(s=l-d*w,e=i+d*w),x&&(f=h-p*x,o=a+p*x),b=Ko):(w<0?s=l:w>0&&(e=i),x<0?f=h:x>0&&(o=a),b=Zo),U.attr("cursor",ea[_]),z());break;default:return}Go()}),!0).on("mousemove.brush",O,!0).on("mouseup.brush",F,!0);Fn(dn.view)}Xo(),Ci(m),u.call(m),I.start()}function O(){var t=In(m);!A||v||y||(Math.abs(t[0]-P[0])>Math.abs(t[1]-P[1])?y=!0:v=!0),P=t,g=!0,Go(),z()}function z(){var t;switch(d=P[0]-R[0],p=P[1]-R[1],b){case Qo:case $o:w&&(d=Math.max(k-e,Math.min(S-s,d)),i=e+d,l=s+d),x&&(p=Math.max(T-o,Math.min(C-f,p)),a=o+p,h=f+p);break;case Zo:w<0?(d=Math.max(k-e,Math.min(S-e,d)),i=e+d,l=s):w>0&&(d=Math.max(k-s,Math.min(S-s,d)),i=e,l=s+d),x<0?(p=Math.max(T-o,Math.min(C-o,p)),a=o+p,h=f):x>0&&(p=Math.max(T-f,Math.min(C-f,p)),a=o,h=f+p);break;case Ko:w&&(i=Math.max(k,Math.min(S,e-d*w)),l=Math.max(k,Math.min(S,s+d*w))),x&&(a=Math.max(T,Math.min(C,o-p*x)),h=Math.max(T,Math.min(C,f+p*x)))}lSa)if(Math.abs(l*u-c*s)>Sa&&i){var h=e-o,d=r-a,p=u*u+c*c,g=h*h+d*d,v=Math.sqrt(p),y=Math.sqrt(f),m=i*Math.tan((ka-Math.acos((p+f-g)/(2*v*y)))/2),_=m/y,b=m/v;Math.abs(_-1)>Sa&&(this._+="L"+(t+_*s)+","+(n+_*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>s*d)+","+(this._x1=t+b*u)+","+(this._y1=n+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,r,i,o){t=+t,n=+n;var a=(e=+e)*Math.cos(r),u=e*Math.sin(r),c=t+a,s=n+u,l=1^o,f=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+s:(Math.abs(this._x1-c)>Sa||Math.abs(this._y1-s)>Sa)&&(this._+="L"+c+","+s),e&&(f<0&&(f=f%Ta+Ta),f>Ca?this._+="A"+e+","+e+",0,1,"+l+","+(t-a)+","+(n-u)+"A"+e+","+e+",0,1,"+l+","+(this._x1=c)+","+(this._y1=s):f>Sa&&(this._+="A"+e+","+e+",0,"+ +(f>=ka)+","+l+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};const Pa=Ra;function Ia(t){return t.source}function La(t){return t.target}function Ua(t){return t.radius}function Da(t){return t.startAngle}function Oa(t){return t.endAngle}function za(){var t=Ia,n=La,e=Ua,r=Da,i=Oa,o=null;function a(){var a,u=Ea.call(arguments),c=t.apply(this,u),s=n.apply(this,u),l=+e.apply(this,(u[0]=c,u)),f=r.apply(this,u)-ba,h=i.apply(this,u)-ba,d=l*ya(f),p=l*ma(f),g=+e.apply(this,(u[0]=s,u)),v=r.apply(this,u)-ba,y=i.apply(this,u)-ba;if(o||(o=a=Pa()),o.moveTo(d,p),o.arc(0,0,l,f,h),f===v&&h===y||(o.quadraticCurveTo(0,0,g*ya(v),g*ma(v)),o.arc(0,0,g,v,y)),o.quadraticCurveTo(0,0,d,p),o.closePath(),a)return o=null,a+""||null}return a.radius=function(t){return arguments.length?(e="function"==typeof t?t:Na(+t),a):e},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Na(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Na(+t),a):i},a.source=function(n){return arguments.length?(t=n,a):t},a.target=function(t){return arguments.length?(n=t,a):n},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}var Fa=e(8949),qa=Array.prototype.slice;function ja(t,n){return t-n}function Ba(t){return function(){return t}}function Ha(t,n){for(var e,r=-1,i=n.length;++rr!=d>r&&e<(h-s)*(r-l)/(d-l)+s&&(i=-i)}return i}function Va(t,n,e){var r,i,o,a;return function(t,n,e){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])}(t,n,e)&&(i=t[r=+(t[0]===n[0])],o=e[r],a=n[r],i<=o&&o<=a||a<=o&&o<=i)}function Wa(){}var Xa=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function Ga(){var t=1,n=1,e=A,r=u;function i(t){var n=e(t);if(Array.isArray(n))n=n.slice().sort(ja);else{var r=y(t),i=r[0],a=r[1];n=C(i,a,n),n=M(Math.floor(i/n)*n,Math.floor(a/n)*n,n)}return n.map((function(n){return o(t,n)}))}function o(e,i){var o=[],u=[];return function(e,r,i){var o,u,c,s,l,f,h=new Array,d=new Array;for(o=u=-1,s=e[0]>=r,Xa[s<<1].forEach(p);++o=r,Xa[c|s<<1].forEach(p);for(Xa[s<<0].forEach(p);++u=r,l=e[u*t]>=r,Xa[s<<1|l<<2].forEach(p);++o=r,f=l,l=e[u*t+o+1]>=r,Xa[c|s<<1|l<<2|f<<3].forEach(p);Xa[s|l<<3].forEach(p)}for(o=-1,l=e[u*t]>=r,Xa[l<<2].forEach(p);++o=r,Xa[l<<2|f<<3].forEach(p);function p(t){var n,e,r=[t[0][0]+o,t[0][1]+u],c=[t[1][0]+o,t[1][1]+u],s=a(r),l=a(c);(n=d[s])?(e=h[l])?(delete d[n.end],delete h[e.start],n===e?(n.ring.push(c),i(n.ring)):h[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete d[n.end],n.ring.push(c),d[n.end=l]=n):(n=h[l])?(e=d[s])?(delete h[n.start],delete d[e.end],n===e?(n.ring.push(c),i(n.ring)):h[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete h[n.start],n.ring.unshift(r),h[n.start=s]=n):h[s]=d[l]={start:s,end:l,ring:[r,c]}}Xa[l<<3].forEach(p)}(e,i,(function(t){r(t,e,i),function(t){for(var n=0,e=t.length,r=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++n0?o.push([t]):u.push(t)})),u.forEach((function(t){for(var n,e=0,r=o.length;e0&&a0&&u0&&o>0))throw new Error("invalid size");return t=r,n=o,i},i.thresholds=function(t){return arguments.length?(e="function"==typeof t?t:Array.isArray(t)?Ba(qa.call(t)):Ba(t),i):e},i.smooth=function(t){return arguments.length?(r=t?u:Wa,i):r===u},i}function $a(t,n,e){for(var r=t.width,i=t.height,o=1+(e<<1),a=0;a=e&&(u>=o&&(c-=t.data[u-o+a*r]),n.data[u-e+a*r]=c/Math.min(u+1,r-1+o-u,o))}function Qa(t,n,e){for(var r=t.width,i=t.height,o=1+(e<<1),a=0;a=e&&(u>=o&&(c-=t.data[a+(u-o)*r]),n.data[a+(u-e)*r]=c/Math.min(u+1,i-1+o-u,o))}function Za(t){return t[0]}function Ka(t){return t[1]}function Ja(){return 1}function tu(){var t=Za,n=Ka,e=Ja,r=960,i=500,o=20,a=2,u=3*o,c=r+2*u>>a,s=i+2*u>>a,l=Ba(20);function f(r){var i=new Float32Array(c*s),f=new Float32Array(c*s);r.forEach((function(r,o,l){var f=+t(r,o,l)+u>>a,h=+n(r,o,l)+u>>a,d=+e(r,o,l);f>=0&&f=0&&h>a),Qa({width:c,height:s,data:f},{width:c,height:s,data:i},o>>a),$a({width:c,height:s,data:i},{width:c,height:s,data:f},o>>a),Qa({width:c,height:s,data:f},{width:c,height:s,data:i},o>>a),$a({width:c,height:s,data:i},{width:c,height:s,data:f},o>>a),Qa({width:c,height:s,data:f},{width:c,height:s,data:i},o>>a);var d=l(i);if(!Array.isArray(d)){var p=U(i);d=C(0,p,d),(d=M(0,Math.floor(p/d)*d,d)).shift()}return Ga().thresholds(d).size([c,s])(i).map(h)}function h(t){return t.value*=Math.pow(2,-2*a),t.coordinates.forEach(d),t}function d(t){t.forEach(p)}function p(t){t.forEach(g)}function g(t){t[0]=t[0]*Math.pow(2,a)-u,t[1]=t[1]*Math.pow(2,a)-u}function v(){return c=r+2*(u=3*o)>>a,s=i+2*u>>a,f}return f.x=function(n){return arguments.length?(t="function"==typeof n?n:Ba(+n),f):t},f.y=function(t){return arguments.length?(n="function"==typeof t?t:Ba(+t),f):n},f.weight=function(t){return arguments.length?(e="function"==typeof t?t:Ba(+t),f):e},f.size=function(t){if(!arguments.length)return[r,i];var n=Math.ceil(t[0]),e=Math.ceil(t[1]);if(!(n>=0||n>=0))throw new Error("invalid size");return r=n,i=e,v()},f.cellSize=function(t){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return a=Math.floor(Math.log(t)/Math.LN2),v()},f.thresholds=function(t){return arguments.length?(l="function"==typeof t?t:Array.isArray(t)?Ba(qa.call(t)):Ba(t),f):l},f.bandwidth=function(t){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*t*t+1)-1)/2),v()},f}var nu=e(2279);function eu(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function ru(t,n){return fetch(t,n).then(eu)}function iu(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function ou(t,n){return fetch(t,n).then(iu)}function au(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function uu(t,n){return fetch(t,n).then(au)}function cu(t){return function(n,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=void 0),uu(n,e).then((function(n){return t(n,r)}))}}function su(t,n,e,r){3===arguments.length&&"function"==typeof e&&(r=e,e=void 0);var i=(0,nu.yv)(t);return uu(n,e).then((function(t){return i.parse(t,r)}))}var lu=cu(nu.ue),fu=cu(nu.tJ);function hu(t,n){return new Promise((function(e,r){var i=new Image;for(var o in n)i[o]=n[o];i.onerror=r,i.onload=function(){e(i)},i.src=t}))}function du(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.json()}function pu(t,n){return fetch(t,n).then(du)}function gu(t){return function(n,e){return uu(n,e).then((function(n){return(new DOMParser).parseFromString(n,t)}))}}const vu=gu("application/xml");var yu=gu("text/html"),mu=gu("image/svg+xml");function _u(t,n){var e;function r(){var r,i,o=e.length,a=0,u=0;for(r=0;r=(o=(g+y)/2))?g=o:y=o,(l=e>=(a=(v+m)/2))?v=a:m=a,i=d,!(d=d[f=l<<1|s]))return i[f]=p,t;if(u=+t._x.call(null,d.data),c=+t._y.call(null,d.data),n===u&&e===c)return p.next=d,i?i[f]=p:t._root=p,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(s=n>=(o=(g+y)/2))?g=o:y=o,(l=e>=(a=(v+m)/2))?v=a:m=a}while((f=l<<1|s)==(h=(c>=a)<<1|u>=o));return i[h]=d,i[f]=p,t}function Mu(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i}function Eu(t){return t[0]}function Nu(t){return t[1]}function ku(t,n,e){var r=new Tu(null==n?Eu:n,null==e?Nu:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Tu(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Su(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var Cu=ku.prototype=Tu.prototype;function Au(t){return t.x+t.vx}function Ru(t){return t.y+t.vy}function Pu(t){var n,e,r=1,i=1;function o(){for(var t,o,u,c,s,l,f,h=n.length,d=0;dc+d||is+d||ou.index){var p=c-a.x-a.vx,g=s-a.y-a.vy,v=p*p+g*g;vt.r&&(t.r=t[n].r)}function u(){if(n){var r,i,o=n.length;for(e=new Array(o),r=0;rl&&(l=r),if&&(f=i));for(lt||t>i||r>n||n>o))return this;var a,u,c=i-e,s=this._root;switch(u=(n<(r+o)/2)<<1|t<(e+i)/2){case 0:do{(a=new Array(4))[u]=s,s=a}while(o=r+(c*=2),t>(i=e+c)||n>o);break;case 1:do{(a=new Array(4))[u]=s,s=a}while(o=r+(c*=2),(e=i-c)>t||n>o);break;case 2:do{(a=new Array(4))[u]=s,s=a}while(r=o-(c*=2),t>(i=e+c)||r>n);break;case 3:do{(a=new Array(4))[u]=s,s=a}while(r=o-(c*=2),(e=i-c)>t||r>n)}this._root&&this._root.length&&(this._root=s)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},Cu.data=function(){var t=[];return this.visit((function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)})),t},Cu.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Cu.find=function(t,n,e){var r,i,o,a,u,c,s,l=this._x0,f=this._y0,h=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new Mu(g,l,f,h,d)),null==e?e=1/0:(l=t-e,f=n-e,h=t+e,d=n+e,e*=e);c=p.pop();)if(!(!(g=c.node)||(i=c.x0)>h||(o=c.y0)>d||(a=c.x1)=y)<<1|t>=v)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-s],p[p.length-1-s]=c)}else{var m=t-+this._x.call(null,g.data),_=n-+this._y.call(null,g.data),b=m*m+_*_;if(b=(u=(p+v)/2))?p=u:v=u,(l=a>=(c=(g+y)/2))?g=c:y=c,n=d,!(d=d[f=l<<1|s]))return this;if(!d.length)break;(n[f+1&3]||n[f+2&3]||n[f+3&3])&&(e=n,h=f)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):n?(i?n[f]=i:delete n[f],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)},Cu.removeAll=function(t){for(var n=0,e=t.length;n1?(null==e?u.remove(t):u.set(t,d(e)),n):u.get(t)},find:function(n,e,r){var i,o,a,u,c,s=0,l=t.length;for(null==r?r=1/0:r*=r,s=0;s1?(s.on(t,e),n):s.on(t)}}}function ju(){var t,n,e,r,i=bu(-30),o=1,a=1/0,u=.81;function c(r){var i,o=t.length,a=ku(t,Du,Ou).visitAfter(l);for(e=r,i=0;i=a)){(t.data!==n||t.next)&&(0===l&&(d+=(l=wu())*l),0===f&&(d+=(f=wu())*f),d1?r[0]+r.slice(2):r,+t.slice(e+1)]}function Wu(t){return(t=Vu(Math.abs(t)))?t[1]:NaN}var Xu,Gu=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function $u(t){return new Qu(t)}function Qu(t){if(!(n=Gu.exec(t)))throw new Error("invalid format: "+t);var n;this.fill=n[1]||" ",this.align=n[2]||">",this.sign=n[3]||"-",this.symbol=n[4]||"",this.zero=!!n[5],this.width=n[6]&&+n[6],this.comma=!!n[7],this.precision=n[8]&&+n[8].slice(1),this.trim=!!n[9],this.type=n[10]||""}function Zu(t,n){var e=Vu(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}$u.prototype=Qu.prototype,Qu.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Ku={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return Zu(100*t,n)},r:Zu,s:function(t,n){var e=Vu(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(Xu=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Vu(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function Ju(t){return t}var tc,nc,ec,rc=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ic(t){var n,e,r=t.grouping&&t.thousands?(n=t.grouping,e=t.thousands,function(t,r){for(var i=t.length,o=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),o.push(t.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return o.reverse().join(e)}):Ju,i=t.currency,o=t.decimal,a=t.numerals?function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(t.numerals):Ju,u=t.percent||"%";function c(t){var n=(t=$u(t)).fill,e=t.align,c=t.sign,s=t.symbol,l=t.zero,f=t.width,h=t.comma,d=t.precision,p=t.trim,g=t.type;"n"===g?(h=!0,g="g"):Ku[g]||(null==d&&(d=12),p=!0,g="g"),(l||"0"===n&&"="===e)&&(l=!0,n="0",e="=");var v="$"===s?i[0]:"#"===s&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",y="$"===s?i[1]:/[%p]/.test(g)?u:"",m=Ku[g],_=/[defgprs%]/.test(g);function b(t){var i,u,s,b=v,w=y;if("c"===g)w=m(t)+w,t="";else{var x=(t=+t)<0;if(t=m(Math.abs(t),d),p&&(t=function(t){t:for(var n,e=t.length,r=1,i=-1;r0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),x&&0==+t&&(x=!1),b=(x?"("===c?c:"-":"-"===c||"("===c?"":c)+b,w=("s"===g?rc[8+Xu/3]:"")+w+(x&&"("===c?")":""),_)for(i=-1,u=t.length;++i(s=t.charCodeAt(i))||s>57){w=(46===s?o+t.slice(i+1):t.slice(i))+w,t=t.slice(0,i);break}}h&&!l&&(t=r(t,1/0));var M=b.length+t.length+w.length,E=M>1)+b+t+w+E.slice(M);break;default:t=E+b+t+w}return a(t)}return d=null==d?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),b.toString=function(){return t+""},b}return{format:c,formatPrefix:function(t,n){var e=c(((t=$u(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Wu(n)/3))),i=Math.pow(10,-r),o=rc[8+r/3];return function(t){return e(i*t)+o}}}}function oc(t){return tc=ic(t),nc=tc.format,ec=tc.formatPrefix,tc}function ac(t){return Math.max(0,-Wu(Math.abs(t)))}function uc(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Wu(n)/3)))-Wu(Math.abs(t)))}function cc(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Wu(n)-Wu(t))+1}function sc(){return new lc}function lc(){this.reset()}oc({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),lc.prototype={constructor:lc,reset:function(){this.s=this.t=0},add:function(t){hc(fc,t,this.t),hc(this,fc.s,this.s),this.s?this.t+=fc.t:this.s=fc.t},valueOf:function(){return this.s}};var fc=new lc;function hc(t,n,e){var r=t.s=n+e,i=r-n,o=r-i;t.t=n-o+(e-i)}var dc=1e-6,pc=1e-12,gc=Math.PI,vc=gc/2,yc=gc/4,mc=2*gc,_c=180/gc,bc=gc/180,wc=Math.abs,xc=Math.atan,Mc=Math.atan2,Ec=Math.cos,Nc=Math.ceil,kc=Math.exp,Tc=(Math.floor,Math.log),Sc=Math.pow,Cc=Math.sin,Ac=Math.sign||function(t){return t>0?1:t<0?-1:0},Rc=Math.sqrt,Pc=Math.tan;function Ic(t){return t>1?0:t<-1?gc:Math.acos(t)}function Lc(t){return t>1?vc:t<-1?-vc:Math.asin(t)}function Uc(t){return(t=Cc(t/2))*t}function Dc(){}function Oc(t,n){t&&Fc.hasOwnProperty(t.type)&&Fc[t.type](t,n)}var zc={Feature:function(t,n){Oc(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r=0?1:-1,i=r*e,o=Ec(n=(n*=bc)/2+yc),a=Cc(n),u=Xc*a,c=Wc*o+u*Ec(i),s=u*r*Cc(i);Gc.add(Mc(s,c)),Vc=t,Wc=o,Xc=a}function ns(t){return $c.reset(),Bc(t,Qc),2*$c}function es(t){return[Mc(t[1],t[0]),Lc(t[2])]}function rs(t){var n=t[0],e=t[1],r=Ec(e);return[r*Ec(n),r*Cc(n),Cc(e)]}function is(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function os(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function as(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function us(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function cs(t){var n=Rc(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var ss,ls,fs,hs,ds,ps,gs,vs,ys,ms,_s,bs,ws,xs,Ms,Es,Ns,ks,Ts,Ss,Cs,As,Rs,Ps,Is,Ls,Us=sc(),Ds={point:Os,lineStart:Fs,lineEnd:qs,polygonStart:function(){Ds.point=js,Ds.lineStart=Bs,Ds.lineEnd=Hs,Us.reset(),Qc.polygonStart()},polygonEnd:function(){Qc.polygonEnd(),Ds.point=Os,Ds.lineStart=Fs,Ds.lineEnd=qs,Gc<0?(ss=-(fs=180),ls=-(hs=90)):Us>dc?hs=90:Us<-dc&&(ls=-90),ms[0]=ss,ms[1]=fs}};function Os(t,n){ys.push(ms=[ss=t,fs=t]),nhs&&(hs=n)}function zs(t,n){var e=rs([t*bc,n*bc]);if(vs){var r=os(vs,e),i=os([r[1],-r[0],0],r);cs(i),i=es(i);var o,a=t-ds,u=a>0?1:-1,c=i[0]*_c*u,s=wc(a)>180;s^(u*dshs&&(hs=o):s^(u*ds<(c=(c+360)%360-180)&&chs&&(hs=n)),s?tYs(ss,fs)&&(fs=t):Ys(t,fs)>Ys(ss,fs)&&(ss=t):fs>=ss?(tfs&&(fs=t)):t>ds?Ys(ss,t)>Ys(ss,fs)&&(fs=t):Ys(t,fs)>Ys(ss,fs)&&(ss=t)}else ys.push(ms=[ss=t,fs=t]);nhs&&(hs=n),vs=e,ds=t}function Fs(){Ds.point=zs}function qs(){ms[0]=ss,ms[1]=fs,Ds.point=Os,vs=null}function js(t,n){if(vs){var e=t-ds;Us.add(wc(e)>180?e+(e>0?360:-360):e)}else ps=t,gs=n;Qc.point(t,n),zs(t,n)}function Bs(){Qc.lineStart()}function Hs(){js(ps,gs),Qc.lineEnd(),wc(Us)>dc&&(ss=-(fs=180)),ms[0]=ss,ms[1]=fs,vs=null}function Ys(t,n){return(n-=t)<0?n+360:n}function Vs(t,n){return t[0]-n[0]}function Ws(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:nYs(r[0],r[1])&&(r[1]=i[1]),Ys(i[0],r[1])>Ys(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,n=0,r=o[e=o.length-1];n<=e;r=i,++n)i=o[n],(u=Ys(r[1],i[0]))>a&&(a=u,ss=i[0],fs=r[1])}return ys=ms=null,ss===1/0||ls===1/0?[[NaN,NaN],[NaN,NaN]]:[[ss,ls],[fs,hs]]}var Gs={sphere:Dc,point:$s,lineStart:Zs,lineEnd:tl,polygonStart:function(){Gs.lineStart=nl,Gs.lineEnd=el},polygonEnd:function(){Gs.lineStart=Zs,Gs.lineEnd=tl}};function $s(t,n){t*=bc;var e=Ec(n*=bc);Qs(e*Ec(t),e*Cc(t),Cc(n))}function Qs(t,n,e){++_s,ws+=(t-ws)/_s,xs+=(n-xs)/_s,Ms+=(e-Ms)/_s}function Zs(){Gs.point=Ks}function Ks(t,n){t*=bc;var e=Ec(n*=bc);Ps=e*Ec(t),Is=e*Cc(t),Ls=Cc(n),Gs.point=Js,Qs(Ps,Is,Ls)}function Js(t,n){t*=bc;var e=Ec(n*=bc),r=e*Ec(t),i=e*Cc(t),o=Cc(n),a=Mc(Rc((a=Is*o-Ls*i)*a+(a=Ls*r-Ps*o)*a+(a=Ps*i-Is*r)*a),Ps*r+Is*i+Ls*o);bs+=a,Es+=a*(Ps+(Ps=r)),Ns+=a*(Is+(Is=i)),ks+=a*(Ls+(Ls=o)),Qs(Ps,Is,Ls)}function tl(){Gs.point=$s}function nl(){Gs.point=rl}function el(){il(As,Rs),Gs.point=$s}function rl(t,n){As=t,Rs=n,t*=bc,n*=bc,Gs.point=il;var e=Ec(n);Ps=e*Ec(t),Is=e*Cc(t),Ls=Cc(n),Qs(Ps,Is,Ls)}function il(t,n){t*=bc;var e=Ec(n*=bc),r=e*Ec(t),i=e*Cc(t),o=Cc(n),a=Is*o-Ls*i,u=Ls*r-Ps*o,c=Ps*i-Is*r,s=Rc(a*a+u*u+c*c),l=Lc(s),f=s&&-l/s;Ts+=f*a,Ss+=f*u,Cs+=f*c,bs+=l,Es+=l*(Ps+(Ps=r)),Ns+=l*(Is+(Is=i)),ks+=l*(Ls+(Ls=o)),Qs(Ps,Is,Ls)}function ol(t){_s=bs=ws=xs=Ms=Es=Ns=ks=Ts=Ss=Cs=0,Bc(t,Gs);var n=Ts,e=Ss,r=Cs,i=n*n+e*e+r*r;return igc?t-mc:t<-gc?t+mc:t,n]}function sl(t,n,e){return(t%=mc)?n||e?ul(fl(t),hl(n,e)):fl(t):n||e?hl(n,e):cl}function ll(t){return function(n,e){return[(n+=t)>gc?n-mc:n<-gc?n+mc:n,e]}}function fl(t){var n=ll(t);return n.invert=ll(-t),n}function hl(t,n){var e=Ec(t),r=Cc(t),i=Ec(n),o=Cc(n);function a(t,n){var a=Ec(n),u=Ec(t)*a,c=Cc(t)*a,s=Cc(n),l=s*e+u*r;return[Mc(c*i-l*o,u*e-s*r),Lc(l*i+c*o)]}return a.invert=function(t,n){var a=Ec(n),u=Ec(t)*a,c=Cc(t)*a,s=Cc(n),l=s*i-c*o;return[Mc(c*i+s*o,u*e+l*r),Lc(l*e-u*r)]},a}function dl(t){function n(n){return(n=t(n[0]*bc,n[1]*bc))[0]*=_c,n[1]*=_c,n}return t=sl(t[0]*bc,t[1]*bc,t.length>2?t[2]*bc:0),n.invert=function(n){return(n=t.invert(n[0]*bc,n[1]*bc))[0]*=_c,n[1]*=_c,n},n}function pl(t,n,e,r,i,o){if(e){var a=Ec(n),u=Cc(n),c=r*e;null==i?(i=n+r*mc,o=n-c/2):(i=gl(a,i),o=gl(a,o),(r>0?io)&&(i+=r*mc));for(var s,l=i;r>0?l>o:l1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}}function ml(t,n){return wc(t[0]-n[0])=0;--o)i.point((l=s[o])[0],l[1]);else r(h.x,h.p.x,-1,i);h=h.p}s=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}}function wl(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r=0?1:-1,N=E*M,k=N>gc,T=g*w;if(xl.add(Mc(T*E*Cc(N),v*x+T*Ec(N))),a+=k?M+E*mc:M,k^d>=e^_>=e){var S=os(rs(h),rs(m));cs(S);var C=os(o,S);cs(C);var A=(k^M>=0?-1:1)*Lc(C[2]);(r>A||r===A&&(S[0]||S[1]))&&(u+=k^M>=0?1:-1)}}return(a<-dc||a0){for(f||(i.polygonStart(),f=!0),i.lineStart(),t=0;t1&&2&c&&h.push(h.pop().concat(h.shift())),a.push(h.filter(Nl))}return h}}function Nl(t){return t.length>1}function kl(t,n){return((t=t.x)[0]<0?t[1]-vc-dc:vc-t[1])-((n=n.x)[0]<0?n[1]-vc-dc:vc-n[1])}const Tl=El((function(){return!0}),(function(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,a){var u=o>0?gc:-gc,c=wc(o-e);wc(c-gc)0?vc:-vc),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(o,r),n=0):i!==u&&c>=gc&&(wc(e-i)dc?xc((Cc(n)*(o=Ec(r))*Cc(e)-Cc(r)*(i=Ec(n))*Cc(t))/(i*o*a)):(n+r)/2}(e,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),n=0),t.point(e=o,r=a),i=u},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}}),(function(t,n,e,r){var i;if(null==t)i=e*vc,r.point(-gc,i),r.point(0,i),r.point(gc,i),r.point(gc,0),r.point(gc,-i),r.point(0,-i),r.point(-gc,-i),r.point(-gc,0),r.point(-gc,i);else if(wc(t[0]-n[0])>dc){var o=t[0]0,i=wc(n)>dc;function o(t,e){return Ec(t)*Ec(e)>n}function a(t,e,r){var i=[1,0,0],o=os(rs(t),rs(e)),a=is(o,o),u=o[0],c=a-u*u;if(!c)return!r&&t;var s=n*a/c,l=-n*u/c,f=os(i,o),h=us(i,s);as(h,us(o,l));var d=f,p=is(h,d),g=is(d,d),v=p*p-g*(is(h,h)-1);if(!(v<0)){var y=Rc(v),m=us(d,(-p-y)/g);if(as(m,h),m=es(m),!r)return m;var _,b=t[0],w=e[0],x=t[1],M=e[1];w0^m[1]<(wc(m[0]-b)gc^(b<=m[0]&&m[0]<=w)){var k=us(d,(-p+y)/g);return as(k,h),[m,es(k)]}}}function u(n,e){var i=r?t:gc-t,o=0;return n<-i?o|=1:n>i&&(o|=2),e<-i?o|=4:e>i&&(o|=8),o}return El(o,(function(t){var n,e,c,s,l;return{lineStart:function(){s=c=!1,l=1},point:function(f,h){var d,p=[f,h],g=o(f,h),v=r?g?0:u(f,h):g?u(f+(f<0?gc:-gc),h):0;if(!n&&(s=c=g)&&t.lineStart(),g!==c&&(!(d=a(n,p))||ml(n,d)||ml(p,d))&&(p[0]+=dc,p[1]+=dc,g=o(p[0],p[1])),g!==c)l=0,g?(t.lineStart(),d=a(p,n),t.point(d[0],d[1])):(d=a(n,p),t.point(d[0],d[1]),t.lineEnd()),n=d;else if(i&&n&&r^g){var y;v&e||!(y=a(p,n,!0))||(l=0,r?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!g||n&&ml(n,p)||t.point(p[0],p[1]),n=p,c=g,e=v},lineEnd:function(){c&&t.lineEnd(),n=null},clean:function(){return l|(s&&c)<<1}}}),(function(n,r,i,o){pl(o,t,e,i,n,r)}),r?[0,-t]:[-gc,t-gc])}var Cl=1e9,Al=-Cl;function Rl(t,n,e,r){function i(i,o){return t<=i&&i<=e&&n<=o&&o<=r}function o(i,o,u,s){var l=0,f=0;if(null==i||(l=a(i,u))!==(f=a(o,u))||c(i,o)<0^u>0)do{s.point(0===l||3===l?t:e,l>1?r:n)}while((l=(l+u+4)%4)!==f);else s.point(o[0],o[1])}function a(r,i){return wc(r[0]-t)0?0:3:wc(r[0]-e)0?2:1:wc(r[1]-n)0?1:0:i>0?3:2}function u(t,n){return c(t.x,n.x)}function c(t,n){var e=a(t,1),r=a(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(a){var c,s,l,f,h,d,p,g,v,y,m,_=a,b=yl(),w={point:x,lineStart:function(){w.point=M,s&&s.push(l=[]),y=!0,v=!1,p=g=NaN},lineEnd:function(){c&&(M(f,h),d&&v&&b.rejoin(),c.push(b.result())),w.point=x,v&&_.lineEnd()},polygonStart:function(){_=b,c=[],s=[],m=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,i=s.length;er&&(h-o)*(r-a)>(d-a)*(t-o)&&++n:d<=r&&(h-o)*(r-a)<(d-a)*(t-o)&&--n;return n}(),e=m&&n,i=(c=z(c)).length;(e||i)&&(a.polygonStart(),e&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&bl(c,u,n,o,a),a.polygonEnd()),_=a,c=s=l=null}};function x(t,n){i(t,n)&&_.point(t,n)}function M(o,a){var u=i(o,a);if(s&&l.push([o,a]),y)f=o,h=a,d=u,y=!1,u&&(_.lineStart(),_.point(o,a));else if(u&&v)_.point(o,a);else{var c=[p=Math.max(Al,Math.min(Cl,p)),g=Math.max(Al,Math.min(Cl,g))],b=[o=Math.max(Al,Math.min(Cl,o)),a=Math.max(Al,Math.min(Cl,a))];!function(t,n,e,r,i,o){var a,u=t[0],c=t[1],s=0,l=1,f=n[0]-u,h=n[1]-c;if(a=e-u,f||!(a>0)){if(a/=f,f<0){if(a0){if(a>l)return;a>s&&(s=a)}if(a=i-u,f||!(a<0)){if(a/=f,f<0){if(a>l)return;a>s&&(s=a)}else if(f>0){if(a0)){if(a/=h,h<0){if(a0){if(a>l)return;a>s&&(s=a)}if(a=o-c,h||!(a<0)){if(a/=h,h<0){if(a>l)return;a>s&&(s=a)}else if(h>0){if(a0&&(t[0]=u+s*f,t[1]=c+s*h),l<1&&(n[0]=u+l*f,n[1]=c+l*h),!0}}}}}(c,b,t,n,e,r)?u&&(_.lineStart(),_.point(o,a),m=!1):(v||(_.lineStart(),_.point(c[0],c[1])),_.point(b[0],b[1]),u||_.lineEnd(),m=!1)}p=o,g=a,v=u}return w}}function Pl(){var t,n,e,r=0,i=0,o=960,a=500;return e={stream:function(e){return t&&n===e?t:t=Rl(r,i,o,a)(n=e)},extent:function(u){return arguments.length?(r=+u[0][0],i=+u[0][1],o=+u[1][0],a=+u[1][1],t=n=null,e):[[r,i],[o,a]]}}}var Il,Ll,Ul,Dl=sc(),Ol={sphere:Dc,point:Dc,lineStart:function(){Ol.point=Fl,Ol.lineEnd=zl},lineEnd:Dc,polygonStart:Dc,polygonEnd:Dc};function zl(){Ol.point=Ol.lineEnd=Dc}function Fl(t,n){Il=t*=bc,Ll=Cc(n*=bc),Ul=Ec(n),Ol.point=ql}function ql(t,n){t*=bc;var e=Cc(n*=bc),r=Ec(n),i=wc(t-Il),o=Ec(i),a=r*Cc(i),u=Ul*e-Ll*r*o,c=Ll*e+Ul*r*o;Dl.add(Mc(Rc(a*a+u*u),c)),Il=t,Ll=e,Ul=r}function jl(t){return Dl.reset(),Bc(t,Ol),+Dl}var Bl=[null,null],Hl={type:"LineString",coordinates:Bl};function Yl(t,n){return Bl[0]=t,Bl[1]=n,jl(Hl)}var Vl={Feature:function(t,n){return Xl(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++rdc})).map(c)).concat(M(Nc(o/d)*d,i,d).filter((function(t){return wc(t%g)>dc})).map(s))}return y.lines=function(){return m().map((function(t){return{type:"LineString",coordinates:t}}))},y.outline=function(){return{type:"Polygon",coordinates:[l(r).concat(f(a).slice(1),l(e).reverse().slice(1),f(u).reverse().slice(1))]}},y.extent=function(t){return arguments.length?y.extentMajor(t).extentMinor(t):y.extentMinor()},y.extentMajor=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],u=+t[0][1],a=+t[1][1],r>e&&(t=r,r=e,e=t),u>a&&(t=u,u=a,a=t),y.precision(v)):[[r,u],[e,a]]},y.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],o=+e[0][1],i=+e[1][1],n>t&&(e=n,n=t,t=e),o>i&&(e=o,o=i,i=e),y.precision(v)):[[n,o],[t,i]]},y.step=function(t){return arguments.length?y.stepMajor(t).stepMinor(t):y.stepMinor()},y.stepMajor=function(t){return arguments.length?(p=+t[0],g=+t[1],y):[p,g]},y.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],y):[h,d]},y.precision=function(h){return arguments.length?(v=+h,c=tf(o,i,90),s=nf(n,t,v),l=tf(u,a,90),f=nf(r,e,v),y):v},y.extentMajor([[-180,-90+dc],[180,90-dc]]).extentMinor([[-180,-80-dc],[180,80+dc]])}function rf(){return ef()()}function of(t,n){var e=t[0]*bc,r=t[1]*bc,i=n[0]*bc,o=n[1]*bc,a=Ec(r),u=Cc(r),c=Ec(o),s=Cc(o),l=a*Ec(e),f=a*Cc(e),h=c*Ec(i),d=c*Cc(i),p=2*Lc(Rc(Uc(o-r)+a*c*Uc(i-e))),g=Cc(p),v=p?function(t){var n=Cc(t*=p)/g,e=Cc(p-t)/g,r=e*l+n*h,i=e*f+n*d,o=e*u+n*s;return[Mc(i,r)*_c,Mc(o,Rc(r*r+i*i))*_c]}:function(){return[e*_c,r*_c]};return v.distance=p,v}function af(t){return t}var uf,cf,sf,lf,ff=sc(),hf=sc(),df={point:Dc,lineStart:Dc,lineEnd:Dc,polygonStart:function(){df.lineStart=pf,df.lineEnd=yf},polygonEnd:function(){df.lineStart=df.lineEnd=df.point=Dc,ff.add(wc(hf)),hf.reset()},result:function(){var t=ff/2;return ff.reset(),t}};function pf(){df.point=gf}function gf(t,n){df.point=vf,uf=sf=t,cf=lf=n}function vf(t,n){hf.add(lf*t-sf*n),sf=t,lf=n}function yf(){vf(uf,cf)}const mf=df;var _f=1/0,bf=_f,wf=-_f,xf=wf,Mf={point:function(t,n){t<_f&&(_f=t),t>wf&&(wf=t),nxf&&(xf=n)},lineStart:Dc,lineEnd:Dc,polygonStart:Dc,polygonEnd:Dc,result:function(){var t=[[_f,bf],[wf,xf]];return wf=xf=-(bf=_f=1/0),t}};const Ef=Mf;var Nf,kf,Tf,Sf,Cf=0,Af=0,Rf=0,Pf=0,If=0,Lf=0,Uf=0,Df=0,Of=0,zf={point:Ff,lineStart:qf,lineEnd:Hf,polygonStart:function(){zf.lineStart=Yf,zf.lineEnd=Vf},polygonEnd:function(){zf.point=Ff,zf.lineStart=qf,zf.lineEnd=Hf},result:function(){var t=Of?[Uf/Of,Df/Of]:Lf?[Pf/Lf,If/Lf]:Rf?[Cf/Rf,Af/Rf]:[NaN,NaN];return Cf=Af=Rf=Pf=If=Lf=Uf=Df=Of=0,t}};function Ff(t,n){Cf+=t,Af+=n,++Rf}function qf(){zf.point=jf}function jf(t,n){zf.point=Bf,Ff(Tf=t,Sf=n)}function Bf(t,n){var e=t-Tf,r=n-Sf,i=Rc(e*e+r*r);Pf+=i*(Tf+t)/2,If+=i*(Sf+n)/2,Lf+=i,Ff(Tf=t,Sf=n)}function Hf(){zf.point=Ff}function Yf(){zf.point=Wf}function Vf(){Xf(Nf,kf)}function Wf(t,n){zf.point=Xf,Ff(Nf=Tf=t,kf=Sf=n)}function Xf(t,n){var e=t-Tf,r=n-Sf,i=Rc(e*e+r*r);Pf+=i*(Tf+t)/2,If+=i*(Sf+n)/2,Lf+=i,Uf+=(i=Sf*t-Tf*n)*(Tf+t),Df+=i*(Sf+n),Of+=3*i,Ff(Tf=t,Sf=n)}const Gf=zf;function $f(t){this._context=t}$f.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,mc)}},result:Dc};var Qf,Zf,Kf,Jf,th,nh=sc(),eh={point:Dc,lineStart:function(){eh.point=rh},lineEnd:function(){Qf&&ih(Zf,Kf),eh.point=Dc},polygonStart:function(){Qf=!0},polygonEnd:function(){Qf=null},result:function(){var t=+nh;return nh.reset(),t}};function rh(t,n){eh.point=ih,Zf=Jf=t,Kf=th=n}function ih(t,n){Jf-=t,th-=n,nh.add(Rc(Jf*Jf+th*th)),Jf=t,th=n}const oh=eh;function ah(){this._string=[]}function uh(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function ch(t,n){var e,r,i=4.5;function o(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),Bc(t,e(r))),r.result()}return o.area=function(t){return Bc(t,e(mf)),mf.result()},o.measure=function(t){return Bc(t,e(oh)),oh.result()},o.bounds=function(t){return Bc(t,e(Ef)),Ef.result()},o.centroid=function(t){return Bc(t,e(Gf)),Gf.result()},o.projection=function(n){return arguments.length?(e=null==n?(t=null,af):(t=n).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(n=null,new ah):new $f(n=t),"function"!=typeof i&&r.pointRadius(i),o):n},o.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),o):i},o.projection(t).context(n)}function sh(t){return{stream:lh(t)}}function lh(t){return function(n){var e=new fh;for(var r in t)e[r]=t[r];return e.stream=n,e}}function fh(){}function hh(t,n,e){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),Bc(e,t.stream(Ef)),n(Ef.result()),null!=r&&t.clipExtent(r),t}function dh(t,n,e){return hh(t,(function(e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],o=Math.min(r/(e[1][0]-e[0][0]),i/(e[1][1]-e[0][1])),a=+n[0][0]+(r-o*(e[1][0]+e[0][0]))/2,u=+n[0][1]+(i-o*(e[1][1]+e[0][1]))/2;t.scale(150*o).translate([a,u])}),e)}function ph(t,n,e){return dh(t,[[0,0],n],e)}function gh(t,n,e){return hh(t,(function(e){var r=+n,i=r/(e[1][0]-e[0][0]),o=(r-i*(e[1][0]+e[0][0]))/2,a=-i*e[0][1];t.scale(150*i).translate([o,a])}),e)}function vh(t,n,e){return hh(t,(function(e){var r=+n,i=r/(e[1][1]-e[0][1]),o=-i*e[0][0],a=(r-i*(e[1][1]+e[0][1]))/2;t.scale(150*i).translate([o,a])}),e)}ah.prototype={_radius:4.5,_circle:uh(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:null==this._circle&&(this._circle=uh(this._radius)),this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},fh.prototype={constructor:fh,point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var yh=16,mh=Ec(30*bc);function _h(t,n){return+n?function(t,n){function e(r,i,o,a,u,c,s,l,f,h,d,p,g,v){var y=s-r,m=l-i,_=y*y+m*m;if(_>4*n&&g--){var b=a+h,w=u+d,x=c+p,M=Rc(b*b+w*w+x*x),E=Lc(x/=M),N=wc(wc(x)-1)n||wc((y*C+m*A)/_-.5)>.3||a*h+u*d+c*p2?t[2]%360*bc:0,T()):[v*_c,y*_c,m*_c]},N.angle=function(t){return arguments.length?(_=t%360*bc,T()):_*_c},N.precision=function(t){return arguments.length?(a=_h(u,E=t*t),S()):Rc(E)},N.fitExtent=function(t,n){return dh(N,t,n)},N.fitSize=function(t,n){return ph(N,t,n)},N.fitWidth=function(t,n){return gh(N,t,n)},N.fitHeight=function(t,n){return vh(N,t,n)},function(){return n=t.apply(this,arguments),N.invert=n.invert&&k,T()}}function Nh(t){var n=0,e=gc/3,r=Eh(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*bc,e=t[1]*bc):[n*_c,e*_c]},i}function kh(t,n){var e=Cc(t),r=(e+Cc(n))/2;if(wc(r)=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:a).invert(t)},l.stream=function(e){return t&&n===e?t:(r=[a.stream(n=e),u.stream(e),c.stream(e)],i=r.length,t={point:function(t,n){for(var e=-1;++e0?n<-vc+dc&&(n=-vc+dc):n>vc-dc&&(n=vc-dc);var e=i/Sc(Fh(n),r);return[e*Cc(r*t),i-e*Ec(r*t)]}return o.invert=function(t,n){var e=i-n,o=Ac(r)*Rc(t*t+e*e);return[Mc(t,wc(e))/r*Ac(e),2*xc(Sc(i/o,1/r))-vc]},o}function jh(){return Nh(qh).scale(109.5).parallels([30,30])}function Bh(t,n){return[t,n]}function Hh(){return Mh(Bh).scale(152.63)}function Yh(t,n){var e=Ec(t),r=t===n?Cc(t):(e-Ec(n))/(n-t),i=e/r+t;if(wc(r)2?t[2]+90:90]):[(t=e())[0],t[1],t[2]-90]},e([0,0,90]).scale(159.155)}function fd(t,n){return t.parent===n.parent?1:2}function hd(t,n){return t+n.x}function dd(t,n){return Math.max(t,n.y)}function pd(){var t=fd,n=1,e=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(n){var e=n.children;e?(n.x=function(t){return t.reduce(hd,0)/t.length}(e),n.y=function(t){return 1+t.reduce(dd,0)}(e)):(n.x=o?a+=t(n,o):0,n.y=0,o=n)}));var u=function(t){for(var n;n=t.children;)t=n[0];return t}(i),c=function(t){for(var n;n=t.children;)t=n[n.length-1];return t}(i),s=u.x-t(u,c)/2,l=c.x+t(c,u)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*n,t.y=(i.y-t.y)*e}:function(t){t.x=(t.x-s)/(l-s)*n,t.y=(1-(i.y?t.y/i.y:1))*e})}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i}function gd(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function vd(t,n){var e,r,i,o,a,u=new bd(t),c=+t.value&&(u.value=t.value),s=[u];for(null==n&&(n=yd);e=s.pop();)if(c&&(e.value=+e.data.value),(i=n(e.data))&&(a=i.length))for(e.children=new Array(a),o=a-1;o>=0;--o)s.push(r=e.children[o]=new bd(i[o])),r.parent=e,r.depth=e.depth+1;return u.eachBefore(_d)}function yd(t){return t.children}function md(t){t.data=t.data.data}function _d(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function bd(t){this.data=t,this.depth=this.height=0,this.parent=null}Zh.invert=function(t,n){for(var e,r=n,i=r*r,o=i*i*i,a=0;a<12&&(o=(i=(r-=e=(r*(Wh+Xh*i+o*(Gh+$h*i))-n)/(Wh+3*Xh*i+o*(7*Gh+9*$h*i)))*r)*i*i,!(wc(e)dc&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},od.invert=Rh(Lc),ud.invert=Rh((function(t){return 2*xc(t)})),sd.invert=function(t,n){return[-n,2*xc(kc(t))-vc]},bd.prototype=vd.prototype={constructor:bd,count:function(){return this.eachAfter(gd)},each:function(t){var n,e,r,i,o=this,a=[o];do{for(n=a.reverse(),a=[];o=n.pop();)if(t(o),e=o.children)for(r=0,i=e.length;r=0;--e)i.push(n[e]);return this},sum:function(t){return this.eachAfter((function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){var t=[];return this.each((function(n){t.push(n)})),t},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(e){e!==t&&n.push({source:e.parent,target:e})})),n},copy:function(){return vd(this).eachBefore(md)}};var wd=Array.prototype.slice;function xd(t){for(var n,e,r=0,i=(t=function(t){for(var n,e,r=t.length;r;)e=Math.random()*r--|0,n=t[r],t[r]=t[e],t[e]=n;return t}(wd.call(t))).length,o=[];r0&&e*e>r*r+i*i}function kd(t,n){for(var e=0;e(a*=a)?(r=(s+a-i)/(2*s),o=Math.sqrt(Math.max(0,a/s-r*r)),e.x=t.x-r*u-o*c,e.y=t.y-r*c+o*u):(r=(s+i-a)/(2*s),o=Math.sqrt(Math.max(0,i/s-r*r)),e.x=n.x+r*u-o*c,e.y=n.y+r*c+o*u)):(e.x=n.x+e.r,e.y=n.y)}function Rd(t,n){var e=t.r+n.r-1e-6,r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function Pd(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,o=(n.y*e.r+e.y*n.r)/r;return i*i+o*o}function Id(t){this._=t,this.next=null,this.previous=null}function Ld(t){if(!(i=t.length))return 0;var n,e,r,i,o,a,u,c,s,l,f;if((n=t[0]).x=0,n.y=0,!(i>1))return n.r;if(e=t[1],n.x=-e.r,e.x=n.r,e.y=0,!(i>2))return n.r+e.r;Ad(e,n,r=t[2]),n=new Id(n),e=new Id(e),r=new Id(r),n.next=r.previous=e,e.next=n.previous=r,r.next=e.previous=n;t:for(u=3;u0)throw new Error("cycle");return o}return e.id=function(n){return arguments.length?(t=Dd(n),e):t},e.parentId=function(t){return arguments.length?(n=Dd(t),e):n},e}function Jd(t,n){return t.parent===n.parent?1:2}function tp(t){var n=t.children;return n?n[0]:t.t}function np(t){var n=t.children;return n?n[n.length-1]:t.t}function ep(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function rp(t,n,e){return t.a.parent===n.parent?t.a:e}function ip(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}function op(){var t=Jd,n=1,e=1,r=null;function i(i){var c=function(t){for(var n,e,r,i,o,a=new ip(t,0),u=[a];n=u.pop();)if(r=n._.children)for(n.children=new Array(o=r.length),i=o-1;i>=0;--i)u.push(e=n.children[i]=new ip(r[i],i)),e.parent=n;return(a.parent=new ip(null,0)).children=[a],a}(i);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)i.eachBefore(u);else{var s=i,l=i,f=i;i.eachBefore((function(t){t.xl.x&&(l=t),t.depth>f.depth&&(f=t)}));var h=s===l?1:t(s,l)/2,d=h-s.x,p=n/(l.x+h+d),g=e/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*g}))}return i}function o(n){var e=n.children,r=n.parent.children,i=n.i?r[n.i-1]:null;if(e){!function(t){for(var n,e=0,r=0,i=t.children,o=i.length;--o>=0;)(n=i[o]).z+=e,n.m+=e,e+=n.s+(r+=n.c)}(n);var o=(e[0].z+e[e.length-1].z)/2;i?(n.z=i.z+t(n._,i._),n.m=n.z-o):n.z=o}else i&&(n.z=i.z+t(n._,i._));n.parent.A=function(n,e,r){if(e){for(var i,o=n,a=n,u=e,c=o.parent.children[0],s=o.m,l=a.m,f=u.m,h=c.m;u=np(u),o=tp(o),u&&o;)c=tp(c),(a=np(a)).a=n,(i=u.z+f-o.z-s+t(u._,o._))>0&&(ep(rp(u,n,r),n,i),s+=i,l+=i),f+=u.m,s+=o.m,h+=c.m,l+=a.m;u&&!np(a)&&(a.t=u,a.m+=f-l),o&&!tp(c)&&(c.t=o,c.m+=s-h,r=n)}return r}(n,i,n.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=n,t.y=t.depth*e}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i}function ap(t,n,e,r,i){for(var o,a=t.children,u=-1,c=a.length,s=t.value&&(i-e)/t.value;++uh&&(h=u),v=l*l*g,(d=Math.max(h/v,v/f))>p){l-=u;break}p=d}y.push(a={value:l,dice:c1?n:1)},e}(up);function lp(){var t=sp,n=!1,e=1,r=1,i=[0],o=Od,a=Od,u=Od,c=Od,s=Od;function l(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(f),i=[0],n&&t.eachBefore(Yd),t}function f(n){var e=i[n.depth],r=n.x0+e,l=n.y0+e,f=n.x1-e,h=n.y1-e;f=e-1){var l=u[n];return l.x0=i,l.y0=o,l.x1=a,void(l.y1=c)}for(var f=s[n],h=r/2+f,d=n+1,p=e-1;d>>1;s[g]c-o){var m=(i*y+a*v)/r;t(n,d,v,i,o,m,c),t(d,e,y,m,o,a,c)}else{var _=(o*y+c*v)/r;t(n,d,v,i,o,a,_),t(d,e,y,i,_,a,c)}}(0,c,t.value,n,e,r,i)}function hp(t,n,e,r,i){(1&t.depth?ap:Vd)(t,n,e,r,i)}const dp=function t(n){function e(t,e,r,i,o){if((a=t._squarify)&&a.ratio===n)for(var a,u,c,s,l,f=-1,h=a.length,d=t.value;++f1?n:1)},e}(up);function pp(t){for(var n,e=-1,r=t.length,i=t[r-1],o=0;++e1&&vp(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function _p(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n=0;--n)s.push(t[r[o[n]][2]]);for(n=+u;nu!=s>u&&a<(c-e)*(u-r)/(s-r)+e&&(l=!l),c=e,s=r;return l}function wp(t){for(var n,e,r=-1,i=t.length,o=t[i-1],a=o[0],u=o[1],c=0;++r1);return t+e*o*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(xp),Np=function t(n){function e(){var t=Ep.source(n).apply(this,arguments);return function(){return Math.exp(t())}}return e.source=t,e}(xp),kp=function t(n){function e(t){return function(){for(var e=0,r=0;r2?Bp:jp,r=i=null,l}function l(n){return(r||(r=e(o,a,c?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=n?0:t>=e?1:r(t)}}}(t):t,u)))(+n)}return l.invert=function(t){return(i||(i=e(a,o,qp,c?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=0?n:t>=1?e:r(t)}}}(n):n)))(+t)},l.domain=function(t){return arguments.length?(o=Ap.call(t,zp),s()):o.slice()},l.range=function(t){return arguments.length?(a=Rp.call(t),s()):a.slice()},l.rangeRound=function(t){return a=Rp.call(t),u=br,s()},l.clamp=function(t){return arguments.length?(c=!!t,s()):c},l.interpolate=function(t){return arguments.length?(u=t,s()):u},s()}function Vp(t){var n=t.domain;return t.ticks=function(t){var e=n();return T(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){return function(t,n,e){var r,i=t[0],o=t[t.length-1],a=C(i,o,null==n?10:n);switch((e=$u(null==e?",f":e)).type){case"s":var u=Math.max(Math.abs(i),Math.abs(o));return null!=e.precision||isNaN(r=uc(a,u))||(e.precision=r),ec(e,u);case"":case"e":case"g":case"p":case"r":null!=e.precision||isNaN(r=cc(a,Math.max(Math.abs(i),Math.abs(o))))||(e.precision=r-("e"===e.type));break;case"f":case"%":null!=e.precision||isNaN(r=ac(a))||(e.precision=r-2*("%"===e.type))}return nc(e)}(n(),t,e)},t.nice=function(e){null==e&&(e=10);var r,i=n(),o=0,a=i.length-1,u=i[o],c=i[a];return c0?r=S(u=Math.floor(u/r)*r,c=Math.ceil(c/r)*r,e):r<0&&(r=S(u=Math.ceil(u*r)/r,c=Math.floor(c*r)/r,e)),r>0?(i[o]=Math.floor(u/r)*r,i[a]=Math.ceil(c/r)*r,n(i)):r<0&&(i[o]=Math.ceil(u*r)/r,i[a]=Math.floor(c*r)/r,n(i)),t},t}function Wp(){var t=Yp(qp,hr);return t.copy=function(){return Hp(t,Wp())},Vp(t)}function Xp(){var t=[0,1];function n(t){return+t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=Ap.call(e,zp),n):t.slice()},n.copy=function(){return Xp().domain(t)},Vp(n)}function Gp(t,n){var e,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a0){for(;hc)break;g.push(f)}}else for(;h=1;--l)if(!((f=s*l)c)break;g.push(f)}}else g=T(h,d,Math.min(d-h,p)).map(i);return o?g.reverse():g},t.tickFormat=function(n,o){if(null==o&&(o=10===e?".0e":","),"function"!=typeof o&&(o=nc(o)),n===1/0)return o;null==n&&(n=10);var a=Math.max(1,e*n/t.ticks().length);return function(t){var n=t/i(Math.round(r(t)));return n*e0?e[i-1]:t[0],i=e?[r[e-1],n]:[r[a-1],r[a]]},o.copy=function(){return ag().domain([t,n]).range(i)},Vp(o)}function ug(){var t=[.5],n=[0,1],e=1;function r(r){if(r<=r)return n[s(t,r,0,e)]}return r.domain=function(i){return arguments.length?(t=Rp.call(i),e=Math.min(t.length,n.length-1),r):t.slice()},r.range=function(i){return arguments.length?(n=Rp.call(i),e=Math.min(t.length,n.length-1),r):n.slice()},r.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},r.copy=function(){return ug().domain(t).range(n)},r}var cg=new Date,sg=new Date;function lg(t,n,e,r){function i(n){return t(n=new Date(+n)),n}return i.floor=i,i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n0))return u;do{u.push(a=new Date(+e)),n(e,o),t(e)}while(a=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(i.count=function(n,r){return cg.setTime(+n),sg.setTime(+r),t(cg),t(sg),Math.floor(e(cg,sg))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var fg=lg((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));fg.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?lg((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):fg:null};const hg=fg;var dg=fg.range,pg=1e3,gg=6e4,vg=36e5,yg=864e5,mg=6048e5,_g=lg((function(t){t.setTime(Math.floor(t/pg)*pg)}),(function(t,n){t.setTime(+t+n*pg)}),(function(t,n){return(n-t)/pg}),(function(t){return t.getUTCSeconds()}));const bg=_g;var wg=_g.range,xg=lg((function(t){t.setTime(Math.floor(t/gg)*gg)}),(function(t,n){t.setTime(+t+n*gg)}),(function(t,n){return(n-t)/gg}),(function(t){return t.getMinutes()}));const Mg=xg;var Eg=xg.range,Ng=lg((function(t){var n=t.getTimezoneOffset()*gg%vg;n<0&&(n+=vg),t.setTime(Math.floor((+t-n)/vg)*vg+n)}),(function(t,n){t.setTime(+t+n*vg)}),(function(t,n){return(n-t)/vg}),(function(t){return t.getHours()}));const kg=Ng;var Tg=Ng.range,Sg=lg((function(t){t.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*gg)/yg}),(function(t){return t.getDate()-1}));const Cg=Sg;var Ag=Sg.range;function Rg(t){return lg((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*gg)/mg}))}var Pg=Rg(0),Ig=Rg(1),Lg=Rg(2),Ug=Rg(3),Dg=Rg(4),Og=Rg(5),zg=Rg(6),Fg=Pg.range,qg=Ig.range,jg=Lg.range,Bg=Ug.range,Hg=Dg.range,Yg=Og.range,Vg=zg.range,Wg=lg((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));const Xg=Wg;var Gg=Wg.range,$g=lg((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));$g.every=function(t){return isFinite(t=Math.floor(t))&&t>0?lg((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null};const Qg=$g;var Zg=$g.range,Kg=lg((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*gg)}),(function(t,n){return(n-t)/gg}),(function(t){return t.getUTCMinutes()}));const Jg=Kg;var tv=Kg.range,nv=lg((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*vg)}),(function(t,n){return(n-t)/vg}),(function(t){return t.getUTCHours()}));const ev=nv;var rv=nv.range,iv=lg((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/yg}),(function(t){return t.getUTCDate()-1}));const ov=iv;var av=iv.range;function uv(t){return lg((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/mg}))}var cv=uv(0),sv=uv(1),lv=uv(2),fv=uv(3),hv=uv(4),dv=uv(5),pv=uv(6),gv=cv.range,vv=sv.range,yv=lv.range,mv=fv.range,_v=hv.range,bv=dv.range,wv=pv.range,xv=lg((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));const Mv=xv;var Ev=xv.range,Nv=lg((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));Nv.every=function(t){return isFinite(t=Math.floor(t))&&t>0?lg((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null};const kv=Nv;var Tv=Nv.range;function Sv(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Cv(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Av(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function Rv(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,s=Hv(i),l=Yv(i),f=Hv(o),h=Yv(o),d=Hv(a),p=Yv(a),g=Hv(u),v=Yv(u),y=Hv(c),m=Yv(c),_={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:ly,e:ly,f:gy,H:fy,I:hy,j:dy,L:py,m:vy,M:yy,p:function(t){return i[+(t.getHours()>=12)]},Q:Vy,s:Wy,S:my,u:_y,U:by,V:wy,w:xy,W:My,x:null,X:null,y:Ey,Y:Ny,Z:ky,"%":Yy},b={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:Ty,e:Ty,f:Py,H:Sy,I:Cy,j:Ay,L:Ry,m:Iy,M:Ly,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:Vy,s:Wy,S:Uy,u:Dy,U:Oy,V:zy,w:Fy,W:qy,x:null,X:null,y:jy,Y:By,Z:Hy,"%":Yy},w={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=f.exec(n.slice(e));return r?(t.w=h[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=y.exec(n.slice(e));return r?(t.m=m[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=v[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,e,r){return E(t,n,e,r)},d:ty,e:ty,f:ay,H:ey,I:ey,j:ny,L:oy,m:Jv,M:ry,p:function(t,n,e){var r=s.exec(n.slice(e));return r?(t.p=l[r[0].toLowerCase()],e+r[0].length):-1},Q:cy,s:sy,S:iy,u:Wv,U:Xv,V:Gv,w:Vv,W:$v,x:function(t,n,r){return E(t,e,n,r)},X:function(t,n,e){return E(t,r,n,e)},y:Zv,Y:Qv,Z:Kv,"%":uy};function x(t,n){return function(e){var r,i,o,a=[],u=-1,c=0,s=t.length;for(e instanceof Date||(e=new Date(+e));++u53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=Cv(Av(o.y))).getUTCDay(),r=i>4||0===i?sv.ceil(r):sv(r),r=ov.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=n(Av(o.y))).getDay(),r=i>4||0===i?Ig.ceil(r):Ig(r),r=Cg.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.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),i="Z"in o?Cv(Av(o.y)).getUTCDay():n(Av(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Cv(o)):n(o)}}function E(t,n,e,r){for(var i,o,a=0,u=n.length,c=e.length;a=c)return-1;if(37===(i=n.charCodeAt(a++))){if(i=n.charAt(a++),!(o=w[i in Ov?n.charAt(a++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return _.x=x(e,_),_.X=x(r,_),_.c=x(n,_),b.x=x(e,b),b.X=x(r,b),b.c=x(n,b),{format:function(t){var n=x(t+="",_);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",Sv);return n.toString=function(){return t},n},utcFormat:function(t){var n=x(t+="",b);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t,Cv);return n.toString=function(){return t},n}}}var Pv,Iv,Lv,Uv,Dv,Ov={"-":"",_:" ",0:"0"},zv=/^\s*\d+/,Fv=/^%/,qv=/[\\^$*+?|[\]().{}]/g;function jv(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),e+r[0].length):-1}function Kv(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function Jv(t,n,e){var r=zv.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function ty(t,n,e){var r=zv.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function ny(t,n,e){var r=zv.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function ey(t,n,e){var r=zv.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function ry(t,n,e){var r=zv.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function iy(t,n,e){var r=zv.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function oy(t,n,e){var r=zv.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function ay(t,n,e){var r=zv.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function uy(t,n,e){var r=Fv.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function cy(t,n,e){var r=zv.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function sy(t,n,e){var r=zv.exec(n.slice(e));return r?(t.Q=1e3*+r[0],e+r[0].length):-1}function ly(t,n){return jv(t.getDate(),n,2)}function fy(t,n){return jv(t.getHours(),n,2)}function hy(t,n){return jv(t.getHours()%12||12,n,2)}function dy(t,n){return jv(1+Cg.count(Qg(t),t),n,3)}function py(t,n){return jv(t.getMilliseconds(),n,3)}function gy(t,n){return py(t,n)+"000"}function vy(t,n){return jv(t.getMonth()+1,n,2)}function yy(t,n){return jv(t.getMinutes(),n,2)}function my(t,n){return jv(t.getSeconds(),n,2)}function _y(t){var n=t.getDay();return 0===n?7:n}function by(t,n){return jv(Pg.count(Qg(t),t),n,2)}function wy(t,n){var e=t.getDay();return t=e>=4||0===e?Dg(t):Dg.ceil(t),jv(Dg.count(Qg(t),t)+(4===Qg(t).getDay()),n,2)}function xy(t){return t.getDay()}function My(t,n){return jv(Ig.count(Qg(t),t),n,2)}function Ey(t,n){return jv(t.getFullYear()%100,n,2)}function Ny(t,n){return jv(t.getFullYear()%1e4,n,4)}function ky(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+jv(n/60|0,"0",2)+jv(n%60,"0",2)}function Ty(t,n){return jv(t.getUTCDate(),n,2)}function Sy(t,n){return jv(t.getUTCHours(),n,2)}function Cy(t,n){return jv(t.getUTCHours()%12||12,n,2)}function Ay(t,n){return jv(1+ov.count(kv(t),t),n,3)}function Ry(t,n){return jv(t.getUTCMilliseconds(),n,3)}function Py(t,n){return Ry(t,n)+"000"}function Iy(t,n){return jv(t.getUTCMonth()+1,n,2)}function Ly(t,n){return jv(t.getUTCMinutes(),n,2)}function Uy(t,n){return jv(t.getUTCSeconds(),n,2)}function Dy(t){var n=t.getUTCDay();return 0===n?7:n}function Oy(t,n){return jv(cv.count(kv(t),t),n,2)}function zy(t,n){var e=t.getUTCDay();return t=e>=4||0===e?hv(t):hv.ceil(t),jv(hv.count(kv(t),t)+(4===kv(t).getUTCDay()),n,2)}function Fy(t){return t.getUTCDay()}function qy(t,n){return jv(sv.count(kv(t),t),n,2)}function jy(t,n){return jv(t.getUTCFullYear()%100,n,2)}function By(t,n){return jv(t.getUTCFullYear()%1e4,n,4)}function Hy(){return"+0000"}function Yy(){return"%"}function Vy(t){return+t}function Wy(t){return Math.floor(+t/1e3)}function Xy(t){return Pv=Rv(t),Iv=Pv.format,Lv=Pv.parse,Uv=Pv.utcFormat,Dv=Pv.utcParse,Pv}Xy({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"]});var Gy="%Y-%m-%dT%H:%M:%S.%LZ",$y=Date.prototype.toISOString?function(t){return t.toISOString()}:Uv(Gy);const Qy=$y;var Zy=+new Date("2000-01-01T00:00:00.000Z")?function(t){var n=new Date(t);return isNaN(n)?null:n}:Dv(Gy);const Ky=Zy;var Jy=1e3,tm=60*Jy,nm=60*tm,em=24*nm,rm=7*em,im=30*em,om=365*em;function am(t){return new Date(t)}function um(t){return t instanceof Date?+t:+new Date(+t)}function cm(t,n,e,r,i,a,u,c,s){var l=Yp(qp,hr),f=l.invert,h=l.domain,d=s(".%L"),p=s(":%S"),g=s("%I:%M"),v=s("%I %p"),y=s("%a %d"),m=s("%b %d"),_=s("%B"),b=s("%Y"),w=[[u,1,Jy],[u,5,5*Jy],[u,15,15*Jy],[u,30,30*Jy],[a,1,tm],[a,5,5*tm],[a,15,15*tm],[a,30,30*tm],[i,1,nm],[i,3,3*nm],[i,6,6*nm],[i,12,12*nm],[r,1,em],[r,2,2*em],[e,1,rm],[n,1,im],[n,3,3*im],[t,1,om]];function x(o){return(u(o)1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return T_.h=360*t-100,T_.s=1.5-1.5*n,T_.l=.8-.9*n,T_+""}var C_=ge(),A_=Math.PI/3,R_=2*Math.PI/3;function P_(t){var n;return t=(.5-t)*Math.PI,C_.r=255*(n=Math.sin(t))*n,C_.g=255*(n=Math.sin(t+A_))*n,C_.b=255*(n=Math.sin(t+R_))*n,C_+""}function I_(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}const L_=I_(dm("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var U_=I_(dm("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),D_=I_(dm("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),O_=I_(dm("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function z_(t){return function(){return t}}var F_=Math.abs,q_=Math.atan2,j_=Math.cos,B_=Math.max,H_=Math.min,Y_=Math.sin,V_=Math.sqrt,W_=1e-12,X_=Math.PI,G_=X_/2,$_=2*X_;function Q_(t){return t>=1?G_:t<=-1?-G_:Math.asin(t)}function Z_(t){return t.innerRadius}function K_(t){return t.outerRadius}function J_(t){return t.startAngle}function tb(t){return t.endAngle}function nb(t){return t&&t.padAngle}function eb(t,n,e,r,i,o,a){var u=t-e,c=n-r,s=(a?o:-o)/V_(u*u+c*c),l=s*c,f=-s*u,h=t+l,d=n+f,p=e+l,g=r+f,v=(h+p)/2,y=(d+g)/2,m=p-h,_=g-d,b=m*m+_*_,w=i-o,x=h*g-p*d,M=(_<0?-1:1)*V_(B_(0,w*w*b-x*x)),E=(x*_-m*M)/b,N=(-x*m-_*M)/b,k=(x*_+m*M)/b,T=(-x*m+_*M)/b,S=E-v,C=N-y,A=k-v,R=T-y;return S*S+C*C>A*A+R*R&&(E=k,N=T),{cx:E,cy:N,x01:-l,y01:-f,x11:E*(i/w-1),y11:N*(i/w-1)}}function rb(){var t=Z_,n=K_,e=z_(0),r=null,i=J_,o=tb,a=nb,u=null;function c(){var c,s,l,f=+t.apply(this,arguments),h=+n.apply(this,arguments),d=i.apply(this,arguments)-G_,p=o.apply(this,arguments)-G_,g=F_(p-d),v=p>d;if(u||(u=c=Pa()),hW_)if(g>$_-W_)u.moveTo(h*j_(d),h*Y_(d)),u.arc(0,0,h,d,p,!v),f>W_&&(u.moveTo(f*j_(p),f*Y_(p)),u.arc(0,0,f,p,d,v));else{var y,m,_=d,b=p,w=d,x=p,M=g,E=g,N=a.apply(this,arguments)/2,k=N>W_&&(r?+r.apply(this,arguments):V_(f*f+h*h)),T=H_(F_(h-f)/2,+e.apply(this,arguments)),S=T,C=T;if(k>W_){var A=Q_(k/f*Y_(N)),R=Q_(k/h*Y_(N));(M-=2*A)>W_?(w+=A*=v?1:-1,x-=A):(M=0,w=x=(d+p)/2),(E-=2*R)>W_?(_+=R*=v?1:-1,b-=R):(E=0,_=b=(d+p)/2)}var P=h*j_(_),I=h*Y_(_),L=f*j_(x),U=f*Y_(x);if(T>W_){var D=h*j_(b),O=h*Y_(b),z=f*j_(w),F=f*Y_(w);if(gW_?function(t,n,e,r,i,o,a,u){var c=e-t,s=r-n,l=a-i,f=u-o,h=(l*(n-o)-f*(t-i))/(f*c-l*s);return[t+h*c,n+h*s]}(P,I,z,F,D,O,L,U):[L,U],j=P-q[0],B=I-q[1],H=D-q[0],Y=O-q[1],V=1/Y_(((l=(j*H+B*Y)/(V_(j*j+B*B)*V_(H*H+Y*Y)))>1?0:l<-1?X_:Math.acos(l))/2),W=V_(q[0]*q[0]+q[1]*q[1]);S=H_(T,(f-W)/(V-1)),C=H_(T,(h-W)/(V+1))}}E>W_?C>W_?(y=eb(z,F,P,I,h,C,v),m=eb(D,O,L,U,h,C,v),u.moveTo(y.cx+y.x01,y.cy+y.y01),CW_&&M>W_?S>W_?(y=eb(L,U,D,O,f,-S,v),m=eb(P,I,z,F,f,-S,v),u.lineTo(y.cx+y.x01,y.cy+y.y01),S=l;--f)u.point(v[f],y[f]);u.lineEnd(),u.areaEnd()}g&&(v[s]=+t(h,s,c),y[s]=+e(h,s,c),u.point(n?+n(h,s,c):v[s],r?+r(h,s,c):y[s]))}if(d)return u=null,d+""||null}function s(){return cb().defined(i).curve(a).context(o)}return c.x=function(e){return arguments.length?(t="function"==typeof e?e:z_(+e),n=null,c):t},c.x0=function(n){return arguments.length?(t="function"==typeof n?n:z_(+n),c):t},c.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:z_(+t),c):n},c.y=function(t){return arguments.length?(e="function"==typeof t?t:z_(+t),r=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:z_(+t),c):e},c.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:z_(+t),c):r},c.lineX0=c.lineY0=function(){return s().x(t).y(e)},c.lineY1=function(){return s().x(t).y(r)},c.lineX1=function(){return s().x(n).y(e)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:z_(!!t),c):i},c.curve=function(t){return arguments.length?(a=t,null!=o&&(u=a(o)),c):a},c.context=function(t){return arguments.length?(null==t?o=u=null:u=a(o=t),c):o},c}function lb(t,n){return nt?1:n>=t?0:NaN}function fb(t){return t}function hb(){var t=fb,n=lb,e=null,r=z_(0),i=z_($_),o=z_(0);function a(a){var u,c,s,l,f,h=a.length,d=0,p=new Array(h),g=new Array(h),v=+r.apply(this,arguments),y=Math.min($_,Math.max(-$_,i.apply(this,arguments)-v)),m=Math.min(Math.abs(y)/h,o.apply(this,arguments)),_=m*(y<0?-1:1);for(u=0;u0&&(d+=f);for(null!=n?p.sort((function(t,e){return n(g[t],g[e])})):null!=e&&p.sort((function(t,n){return e(a[t],a[n])})),u=0,s=d?(y-h*_)/d:0;u0?f*s:0)+_,g[c]={data:a[c],index:u,value:f,startAngle:v,endAngle:l,padAngle:m};return g}return a.value=function(n){return arguments.length?(t="function"==typeof n?n:z_(+n),a):t},a.sortValues=function(t){return arguments.length?(n=t,e=null,a):n},a.sort=function(t){return arguments.length?(e=t,n=null,a):e},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:z_(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:z_(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:z_(+t),a):o},a}ib.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var db=gb(ob);function pb(t){this._curve=t}function gb(t){function n(n){return new pb(t(n))}return n._curve=t,n}function vb(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(gb(t)):n()._curve},t}function yb(){return vb(cb().curve(db))}function mb(){var t=sb().curve(db),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return vb(e())},delete t.lineX0,t.lineEndAngle=function(){return vb(r())},delete t.lineX1,t.lineInnerRadius=function(){return vb(i())},delete t.lineY0,t.lineOuterRadius=function(){return vb(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(gb(t)):n()._curve},t}function _b(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}pb.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var bb=Array.prototype.slice;function wb(t){return t.source}function xb(t){return t.target}function Mb(t){var n=wb,e=xb,r=ab,i=ub,o=null;function a(){var a,u=bb.call(arguments),c=n.apply(this,u),s=e.apply(this,u);if(o||(o=a=Pa()),t(o,+r.apply(this,(u[0]=c,u)),+i.apply(this,u),+r.apply(this,(u[0]=s,u)),+i.apply(this,u)),a)return o=null,a+""||null}return a.source=function(t){return arguments.length?(n=t,a):n},a.target=function(t){return arguments.length?(e=t,a):e},a.x=function(t){return arguments.length?(r="function"==typeof t?t:z_(+t),a):r},a.y=function(t){return arguments.length?(i="function"==typeof t?t:z_(+t),a):i},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}function Eb(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function Nb(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function kb(t,n,e,r,i){var o=_b(n,e),a=_b(n,e=(e+i)/2),u=_b(r,e),c=_b(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(a[0],a[1],u[0],u[1],c[0],c[1])}function Tb(){return Mb(Eb)}function Sb(){return Mb(Nb)}function Cb(){var t=Mb(kb);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const Ab={draw:function(t,n){var e=Math.sqrt(n/X_);t.moveTo(e,0),t.arc(0,0,e,0,$_)}},Rb={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}};var Pb=Math.sqrt(1/3),Ib=2*Pb;const Lb={draw:function(t,n){var e=Math.sqrt(n/Ib),r=e*Pb;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}};var Ub=Math.sin(X_/10)/Math.sin(7*X_/10),Db=Math.sin($_/10)*Ub,Ob=-Math.cos($_/10)*Ub;const zb={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),r=Db*e,i=Ob*e;t.moveTo(0,-e),t.lineTo(r,i);for(var o=1;o<5;++o){var a=$_*o/5,u=Math.cos(a),c=Math.sin(a);t.lineTo(c*e,-u*e),t.lineTo(u*r-c*i,c*r+u*i)}t.closePath()}},Fb={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}};var qb=Math.sqrt(3);const jb={draw:function(t,n){var e=-Math.sqrt(n/(3*qb));t.moveTo(0,2*e),t.lineTo(-qb*e,-e),t.lineTo(qb*e,-e),t.closePath()}};var Bb=-.5,Hb=Math.sqrt(3)/2,Yb=1/Math.sqrt(12),Vb=3*(Yb/2+1);const Wb={draw:function(t,n){var e=Math.sqrt(n/Vb),r=e/2,i=e*Yb,o=r,a=e*Yb+e,u=-o,c=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(u,c),t.lineTo(Bb*r-Hb*i,Hb*r+Bb*i),t.lineTo(Bb*o-Hb*a,Hb*o+Bb*a),t.lineTo(Bb*u-Hb*c,Hb*u+Bb*c),t.lineTo(Bb*r+Hb*i,Bb*i-Hb*r),t.lineTo(Bb*o+Hb*a,Bb*a-Hb*o),t.lineTo(Bb*u+Hb*c,Bb*c-Hb*u),t.closePath()}};var Xb=[Ab,Rb,Lb,Fb,zb,jb,Wb];function Gb(){var t=z_(Ab),n=z_(64),e=null;function r(){var r;if(e||(e=r=Pa()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),r)return e=null,r+""||null}return r.type=function(n){return arguments.length?(t="function"==typeof n?n:z_(n),r):t},r.size=function(t){return arguments.length?(n="function"==typeof t?t:z_(+t),r):n},r.context=function(t){return arguments.length?(e=null==t?null:t,r):e},r}function $b(){}function Qb(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function Zb(t){this._context=t}function Kb(t){return new Zb(t)}function Jb(t){this._context=t}function tw(t){return new Jb(t)}function nw(t){this._context=t}function ew(t){return new nw(t)}function rw(t,n){this._basis=new Zb(t),this._beta=n}Zb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Qb(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Qb(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},Jb.prototype={areaStart:$b,areaEnd:$b,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:Qb(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},nw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:Qb(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},rw.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],a=t[e]-i,u=n[e]-o,c=-1;++c<=e;)r=c/e,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*a),this._beta*n[c]+(1-this._beta)*(o+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};const iw=function t(n){function e(t){return 1===n?new Zb(t):new rw(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function ow(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function aw(t,n){this._context=t,this._k=(1-n)/6}aw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ow(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:ow(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const uw=function t(n){function e(t){return new aw(t,n)}return e.tension=function(n){return t(+n)},e}(0);function cw(t,n){this._context=t,this._k=(1-n)/6}cw.prototype={areaStart:$b,areaEnd:$b,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:ow(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const sw=function t(n){function e(t){return new cw(t,n)}return e.tension=function(n){return t(+n)},e}(0);function lw(t,n){this._context=t,this._k=(1-n)/6}lw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ow(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const fw=function t(n){function e(t){return new lw(t,n)}return e.tension=function(n){return t(+n)},e}(0);function hw(t,n,e){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>W_){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>W_){var s=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*s+t._x1*t._l23_2a-n*t._l12_2a)/l,a=(a*s+t._y1*t._l23_2a-e*t._l12_2a)/l}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function dw(t,n){this._context=t,this._alpha=n}dw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:hw(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const pw=function t(n){function e(t){return n?new dw(t,n):new aw(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function gw(t,n){this._context=t,this._alpha=n}gw.prototype={areaStart:$b,areaEnd:$b,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:hw(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const vw=function t(n){function e(t){return n?new gw(t,n):new cw(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function yw(t,n){this._context=t,this._alpha=n}yw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:hw(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const mw=function t(n){function e(t){return n?new yw(t,n):new lw(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function _w(t){this._context=t}function bw(t){return new _w(t)}function ww(t){return t<0?-1:1}function xw(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(e-t._y1)/(i||r<0&&-0),u=(o*i+a*r)/(r+i);return(ww(o)+ww(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function Mw(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function Ew(t,n,e){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*n,o-u,a-u*e,o,a)}function Nw(t){this._context=t}function kw(t){this._context=new Tw(t)}function Tw(t){this._context=t}function Sw(t){return new Nw(t)}function Cw(t){return new kw(t)}function Aw(t){this._context=t}function Rw(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],n=1;n=0;--n)i[n]=(a[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n1)for(var e,r,i,o=1,a=t[n[0]],u=a.length;o=0;)e[n]=n;return e}function Fw(t,n){return t[n]}function qw(){var t=z_([]),n=zw,e=Ow,r=Fw;function i(i){var o,a,u=t.apply(this,arguments),c=i.length,s=u.length,l=new Array(s);for(o=0;o0){for(var e,r,i,o=0,a=t[0].length;o1)for(var e,r,i,o,a,u,c=0,s=t[n[0]].length;c=0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):r[0]=o}function Hw(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,a=1;a=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}},Jw.prototype={constructor:Jw,insert:function(t,n){var e,r,i;if(t){if(n.P=t,n.N=t.N,t.N&&(t.N.P=n),t.N=n,t.R){for(t=t.R;t.L;)t=t.L;t.L=n}else t.R=n;e=t}else this._?(t=rx(this._),n.P=null,n.N=t,t.P=t.L=n,e=t):(n.P=n.N=null,this._=n,e=null);for(n.L=n.R=null,n.U=e,n.C=!0,t=n;e&&e.C;)e===(r=e.U).L?(i=r.R)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(nx(this,e),e=(t=e).U),e.C=!1,r.C=!0,ex(this,r)):(i=r.L)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(ex(this,e),e=(t=e).U),e.C=!1,r.C=!0,nx(this,r)),e=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var n,e,r,i=t.U,o=t.L,a=t.R;if(e=o?a?rx(a):o:a,i?i.L===t?i.L=e:i.R=e:this._=e,o&&a?(r=e.C,e.C=t.C,e.L=o,o.U=e,e!==a?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=a,a.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((n=i.R).C&&(n.C=!1,i.C=!0,nx(this,i),n=i.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,ex(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,nx(this,i),t=this._;break}}else if((n=i.L).C&&(n.C=!1,i.C=!0,ex(this,i),n=i.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,nx(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,ex(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};const ix=Jw;function ox(t,n,e,r){var i=[null,null],o=Cx.push(i)-1;return i.left=t,i.right=n,e&&ux(i,t,n,e),r&&ux(i,n,t,r),Tx[t.index].halfedges.push(o),Tx[n.index].halfedges.push(o),i}function ax(t,n,e){var r=[n,e];return r.left=t,r}function ux(t,n,e,r){t[0]||t[1]?t.left===e?t[1]=r:t[0]=r:(t[0]=r,t.left=n,t.right=e)}function cx(t,n,e,r,i){var o,a=t[0],u=t[1],c=a[0],s=a[1],l=0,f=1,h=u[0]-c,d=u[1]-s;if(o=n-c,h||!(o>0)){if(o/=h,h<0){if(o0){if(o>f)return;o>l&&(l=o)}if(o=r-c,h||!(o<0)){if(o/=h,h<0){if(o>f)return;o>l&&(l=o)}else if(h>0){if(o0)){if(o/=d,d<0){if(o0){if(o>f)return;o>l&&(l=o)}if(o=i-s,d||!(o<0)){if(o/=d,d<0){if(o>f)return;o>l&&(l=o)}else if(d>0){if(o0||f<1)||(l>0&&(t[0]=[c+l*h,s+l*d]),f<1&&(t[1]=[c+f*h,s+f*d]),!0)}}}}}function sx(t,n,e,r,i){var o=t[1];if(o)return!0;var a,u,c=t[0],s=t.left,l=t.right,f=s[0],h=s[1],d=l[0],p=l[1],g=(f+d)/2,v=(h+p)/2;if(p===h){if(g=r)return;if(f>d){if(c){if(c[1]>=i)return}else c=[g,e];o=[g,i]}else{if(c){if(c[1]1)if(f>d){if(c){if(c[1]>=i)return}else c=[(e-u)/a,e];o=[(i-u)/a,i]}else{if(c){if(c[1]=r)return}else c=[n,a*n+u];o=[r,a*r+u]}else{if(c){if(c[0]=-Rx)){var d=c*c+s*s,p=l*l+f*f,g=(f*d-s*p)/h,v=(c*p-l*d)/h,y=px.pop()||new gx;y.arc=t,y.site=i,y.x=g+a,y.y=(y.cy=v+u)+Math.sqrt(g*g+v*v),t.circle=y;for(var m=null,_=Sx._;_;)if(y.y<_.y||y.y===_.y&&y.x<=_.x){if(!_.L){m=_.P;break}_=_.L}else{if(!_.R){m=_;break}_=_.R}Sx.insert(m,y),m||(dx=y)}}}}function yx(t){var n=t.circle;n&&(n.P||(dx=n.N),Sx.remove(n),px.push(n),tx(n),t.circle=null)}var mx=[];function _x(){tx(this),this.edge=this.site=this.circle=null}function bx(t){var n=mx.pop()||new _x;return n.site=t,n}function wx(t){yx(t),kx.remove(t),mx.push(t),tx(t)}function xx(t){var n=t.circle,e=n.x,r=n.cy,i=[e,r],o=t.P,a=t.N,u=[t];wx(t);for(var c=o;c.circle&&Math.abs(e-c.circle.x)Ax)u=u.L;else{if(!((i=o-Nx(u,a))>Ax)){r>-Ax?(n=u.P,e=u):i>-Ax?(n=u,e=u.N):n=e=u;break}if(!u.R){n=u;break}u=u.R}!function(t){Tx[t.index]={site:t,halfedges:[]}}(t);var c=bx(t);if(kx.insert(n,c),n||e){if(n===e)return yx(n),e=bx(n.site),kx.insert(c,e),c.edge=e.edge=ox(n.site,c.site),vx(n),void vx(e);if(e){yx(n),yx(e);var s=n.site,l=s[0],f=s[1],h=t[0]-l,d=t[1]-f,p=e.site,g=p[0]-l,v=p[1]-f,y=2*(h*v-d*g),m=h*h+d*d,_=g*g+v*v,b=[(v*m-d*_)/y+l,(h*_-g*m)/y+f];ux(e.edge,s,p,b),c.edge=ox(s,t,null,b),e.edge=ox(t,p,null,b),vx(n),vx(e)}else c.edge=ox(n.site,c.site)}}function Ex(t,n){var e=t.site,r=e[0],i=e[1],o=i-n;if(!o)return r;var a=t.P;if(!a)return-1/0;var u=(e=a.site)[0],c=e[1],s=c-n;if(!s)return u;var l=u-r,f=1/o-1/s,h=l/s;return f?(-h+Math.sqrt(h*h-2*f*(l*l/(-2*s)-c+s/2+i-o/2)))/f+r:(r+u)/2}function Nx(t,n){var e=t.N;if(e)return Ex(e,n);var r=t.site;return r[1]===n?r[0]:1/0}var kx,Tx,Sx,Cx,Ax=1e-6,Rx=1e-12;function Px(t,n,e){return(t[0]-e[0])*(n[1]-t[1])-(t[0]-n[0])*(e[1]-t[1])}function Ix(t,n){return n[1]-t[1]||n[0]-t[0]}function Lx(t,n){var e,r,i,o=t.sort(Ix).pop();for(Cx=[],Tx=new Array(t.length),kx=new ix,Sx=new ix;;)if(i=dx,o&&(!i||o[1]Ax||Math.abs(i[0][1]-i[1][1])>Ax)||delete Cx[o]}(a,u,c,s),function(t,n,e,r){var i,o,a,u,c,s,l,f,h,d,p,g,v=Tx.length,y=!0;for(i=0;iAx||Math.abs(g-h)>Ax)&&(c.splice(u,0,Cx.push(ax(a,d,Math.abs(p-t)Ax?[t,Math.abs(f-t)Ax?[Math.abs(h-r)Ax?[e,Math.abs(f-e)Ax?[Math.abs(h-n)=u)return null;var c=t-i.site[0],s=n-i.site[1],l=c*c+s*s;do{i=o.cells[r=a],a=null,i.halfedges.forEach((function(e){var r=o.edges[e],u=r.left;if(u!==i.site&&u||(u=r.right)){var c=t-u[0],s=n-u[1],f=c*c+s*s;fr?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function $x(){var t,n,e=Hx,r=Yx,i=Gx,o=Wx,a=Xx,u=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],s=250,l=Dr,f=[],h=(0,lt.W)("start","zoom","end"),d=500,p=150,g=0;function v(t){t.property("__zoom",Vx).on("wheel.zoom",M).on("mousedown.zoom",E).on("dblclick.zoom",N).filter(a).on("touchstart.zoom",k).on("touchmove.zoom",T).on("touchend.zoom touchcancel.zoom",S).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(t,n){return(n=Math.max(u[0],Math.min(u[1],n)))===t.k?t:new zx(n,t.x,t.y)}function m(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new zx(t.k,r,i)}function _(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function b(t,n,e){t.on("start.zoom",(function(){w(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){w(this,arguments).end()})).tween("zoom",(function(){var t=this,i=arguments,o=w(t,i),a=r.apply(t,i),u=e||_(a),c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),s=t.__zoom,f="function"==typeof n?n.apply(t,i):n,h=l(s.invert(u).concat(c/s.k),f.invert(u).concat(c/f.k));return function(t){if(1===t)t=f;else{var n=h(t),e=c/n[2];t=new zx(e,u[0]-n[0]*e,u[1]-n[1]*e)}o.zoom(null,t)}}))}function w(t,n){for(var e,r=0,i=f.length;rg}t.zoom("mouse",i(m(t.that.__zoom,t.mouse[0]=In(t.that),t.mouse[1]),t.extent,c))}),!0).on("mouseup.zoom",(function(){r.on("mousemove.zoom mouseup.zoom",null),qn(dn.view,t.moved),Bx(),t.end()}),!0),o=In(this),a=dn.clientX,u=dn.clientY;Fn(dn.view),jx(),t.mouse=[o,this.__zoom.invert(o)],Ci(this),t.start()}}function N(){if(e.apply(this,arguments)){var t=this.__zoom,n=In(this),o=t.invert(n),a=t.k*(dn.shiftKey?.5:2),u=i(m(y(t,a),n,o),r.apply(this,arguments),c);Bx(),s>0?kn(this).transition().duration(s).call(b,u,n):kn(this).call(v.transform,u)}}function k(){if(e.apply(this,arguments)){var n,r,i,o,a=w(this,arguments),u=dn.changedTouches,c=u.length;for(jx(),r=0;r{t.exports={graphlib:e(6614),dagre:e(1463),intersect:e(8114),render:e(5787),util:e(8355),version:e(5689)}},9144:(t,n,e)=>{var r=e(8355);function i(t,n,e,i){var o=t.append("marker").attr("id",n).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(o,e[i+"Style"]),e[i+"Class"]&&o.attr("class",e[i+"Class"])}t.exports={default:i,normal:i,vee:function(t,n,e,i){var o=t.append("marker").attr("id",n).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 L 4 5 z").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(o,e[i+"Style"]),e[i+"Class"]&&o.attr("class",e[i+"Class"])},undirected:function(t,n,e,i){var o=t.append("marker").attr("id",n).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerUnits","strokeWidth").attr("markerWidth",8).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 0 5 L 10 5").style("stroke-width",1).style("stroke-dasharray","1,0");r.applyStyle(o,e[i+"Style"]),e[i+"Class"]&&o.attr("class",e[i+"Class"])}}},5632:(t,n,e)=>{var r=e(8355),i=e(4322),o=e(1322);t.exports=function(t,n){var e=n.nodes().filter((function(t){return r.isSubgraph(n,t)})),a=t.selectAll("g.cluster").data(e,(function(t){return t}));return a.selectAll("*").remove(),a.enter().append("g").attr("class","cluster").attr("id",(function(t){return n.node(t).id})).style("opacity",0),a=t.selectAll("g.cluster"),r.applyTransition(a,n).style("opacity",1),a.each((function(t){var e=n.node(t),r=i.select(this);i.select(this).append("rect");var a=r.append("g").attr("class","label");o(a,e,e.clusterLabelPos)})),a.selectAll("rect").each((function(t){var e=n.node(t),o=i.select(this);r.applyStyle(o,e.style)})),r.applyTransition(a.exit(),n).style("opacity",0).remove(),a}},6315:(t,n,e)=>{"use strict";var r=e(1034),i=e(1322),o=e(8355),a=e(4322);t.exports=function(t,n){var e=t.selectAll("g.edgeLabel").data(n.edges(),(function(t){return o.edgeToId(t)})).classed("update",!0);return e.selectAll("*").remove(),e.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(e=t.selectAll("g.edgeLabel")).each((function(t){var e=n.edge(t),o=i(a.select(this),n.edge(t),0,0).classed("label",!0),u=o.node().getBBox();e.labelId&&o.attr("id",e.labelId),r.has(e,"width")||(e.width=u.width),r.has(e,"height")||(e.height=u.height)})),o.applyTransition(e.exit(),n).style("opacity",0).remove(),e}},940:(t,n,e)=>{"use strict";var r=e(1034),i=e(3042),o=e(8355),a=e(4322);function u(t,n){var e=a.line().x((function(t){return t.x})).y((function(t){return t.y}));return e.curve(t.curve),e(n)}t.exports=function(t,n,e){var c=t.selectAll("g.edgePath").data(n.edges(),(function(t){return o.edgeToId(t)})).classed("update",!0);return function(t,n){var e=t.enter().append("g").attr("class","edgePath").style("opacity",0);e.append("path").attr("class","path").attr("d",(function(t){var e=n.edge(t),i=n.node(t.v).elem;return u(e,r.range(e.points.length).map((function(){return n=(t=i).getBBox(),{x:(e=t.ownerSVGElement.getScreenCTM().inverse().multiply(t.getScreenCTM()).translate(n.width/2,n.height/2)).e,y:e.f};var t,n,e})))})),e.append("defs")}(c,n),function(t,n){var e=t.exit();o.applyTransition(e,n).style("opacity",0).remove(),o.applyTransition(e.select("path.path"),n).attr("d",(function(t){var e=n.node(t.v);return e?u({},r.range(this.getTotalLength()).map((function(){return e}))):a.select(this).attr("d")}))}(c,n),c=t.selectAll("g.edgePath"),o.applyTransition(c,n).style("opacity",1),c.each((function(t){var e=a.select(this),r=n.edge(t);r.elem=this,r.id&&e.attr("id",r.id),o.applyClass(e,r.class,(e.classed("update")?"update ":"")+"edgePath")})),c.selectAll("path.path").each((function(t){var e=n.edge(t);e.arrowheadId=r.uniqueId("arrowhead");var c=a.select(this).attr("marker-end",(function(){return"url("+(t=location.href,n=e.arrowheadId,t.split("#")[0]+"#"+n+")");var t,n})).style("fill","none");o.applyTransition(c,n).attr("d",(function(t){return function(t,n){var e=t.edge(n),r=t.node(n.v),o=t.node(n.w),a=e.points.slice(1,e.points.length-1);return a.unshift(i(r,a[0])),a.push(i(o,a[a.length-1])),u(e,a)}(n,t)})),o.applyStyle(c,e.style)})),c.selectAll("defs *").remove(),c.selectAll("defs").each((function(t){var r=n.edge(t);(0,e[r.arrowhead])(a.select(this),r.arrowheadId,r,"arrowhead")})),c}},607:(t,n,e)=>{"use strict";var r=e(1034),i=e(1322),o=e(8355),a=e(4322);t.exports=function(t,n,e){var u=n.nodes().filter((function(t){return!o.isSubgraph(n,t)})),c=t.selectAll("g.node").data(u,(function(t){return t})).classed("update",!0);return c.selectAll("*").remove(),c.enter().append("g").attr("class","node").style("opacity",0),(c=t.selectAll("g.node")).each((function(t){var u=n.node(t),c=a.select(this);o.applyClass(c,u.class,(c.classed("update")?"update ":"")+"node");var s=c.append("g").attr("class","label"),l=i(s,u),f=e[u.shape],h=r.pick(l.node().getBBox(),"width","height");u.elem=this,u.id&&c.attr("id",u.id),u.labelId&&s.attr("id",u.labelId),r.has(u,"width")&&(h.width=u.width),r.has(u,"height")&&(h.height=u.height),h.width+=u.paddingLeft+u.paddingRight,h.height+=u.paddingTop+u.paddingBottom,s.attr("transform","translate("+(u.paddingLeft-u.paddingRight)/2+","+(u.paddingTop-u.paddingBottom)/2+")");var d=f(a.select(this),h,u);o.applyStyle(d,u.style);var p=d.node().getBBox();u.width=p.width,u.height=p.height})),o.applyTransition(c.exit(),n).style("opacity",0).remove(),c}},4322:(t,n,e)=>{var r;if(!r)try{r=e(1524)}catch(t){}r||(r=window.d3),t.exports=r},1463:(t,n,e)=>{var r;try{r=e(681)}catch(t){}r||(r=window.dagre),t.exports=r},6614:(t,n,e)=>{var r;try{r=e(8282)}catch(t){}r||(r=window.graphlib),t.exports=r},8114:(t,n,e)=>{t.exports={node:e(3042),circle:e(6587),ellipse:e(3260),polygon:e(5337),rect:e(8049)}},6587:(t,n,e)=>{var r=e(3260);t.exports=function(t,n,e){return r(t,n,n,e)}},3260:t=>{t.exports=function(t,n,e,r){var i=t.x,o=t.y,a=i-r.x,u=o-r.y,c=Math.sqrt(n*n*u*u+e*e*a*a),s=Math.abs(n*e*a/c);r.x{function n(t,n){return t*n>0}t.exports=function(t,e,r,i){var o,a,u,c,s,l,f,h,d,p,g,v,y;if(!(o=e.y-t.y,u=t.x-e.x,s=e.x*t.y-t.x*e.y,d=o*r.x+u*r.y+s,p=o*i.x+u*i.y+s,0!==d&&0!==p&&n(d,p)||(a=i.y-r.y,c=r.x-i.x,l=i.x*r.y-r.x*i.y,f=a*t.x+c*t.y+l,h=a*e.x+c*e.y+l,0!==f&&0!==h&&n(f,h)||0==(g=o*c-a*u))))return v=Math.abs(g/2),{x:(y=u*l-c*s)<0?(y-v)/g:(y+v)/g,y:(y=a*s-o*l)<0?(y-v)/g:(y+v)/g}}},3042:t=>{t.exports=function(t,n){return t.intersect(n)}},5337:(t,n,e)=>{var r=e(6808);t.exports=function(t,n,e){var i=t.x,o=t.y,a=[],u=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY;n.forEach((function(t){u=Math.min(u,t.x),c=Math.min(c,t.y)}));for(var s=i-t.width/2-u,l=o-t.height/2-c,f=0;f1&&a.sort((function(t,n){var r=t.x-e.x,i=t.y-e.y,o=Math.sqrt(r*r+i*i),a=n.x-e.x,u=n.y-e.y,c=Math.sqrt(a*a+u*u);return o{t.exports=function(t,n){var e,r,i=t.x,o=t.y,a=n.x-i,u=n.y-o,c=t.width/2,s=t.height/2;return Math.abs(u)*c>Math.abs(a)*s?(u<0&&(s=-s),e=0===u?0:s*a/u,r=s):(a<0&&(c=-c),e=c,r=0===a?0:c*u/a),{x:i+e,y:o+r}}},8284:(t,n,e)=>{var r=e(8355);t.exports=function(t,n){var e=t.append("foreignObject").attr("width","100000"),i=e.append("xhtml:div");i.attr("xmlns","http://www.w3.org/1999/xhtml");var o=n.label;switch(typeof o){case"function":i.insert(o);break;case"object":i.insert((function(){return o}));break;default:i.html(o)}r.applyStyle(i,n.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap");var a=i.node().getBoundingClientRect();return e.attr("width",a.width).attr("height",a.height),e}},1322:(t,n,e)=>{var r=e(7318),i=e(8284),o=e(8287);t.exports=function(t,n,e){var a=n.label,u=t.append("g");"svg"===n.labelType?o(u,n):"string"!=typeof a||"html"===n.labelType?i(u,n):r(u,n);var c,s=u.node().getBBox();switch(e){case"top":c=-n.height/2;break;case"bottom":c=n.height/2-s.height;break;default:c=-s.height/2}return u.attr("transform","translate("+-s.width/2+","+c+")"),u}},8287:(t,n,e)=>{var r=e(8355);t.exports=function(t,n){var e=t;return e.node().appendChild(n.label),r.applyStyle(e,n.labelStyle),e}},7318:(t,n,e)=>{var r=e(8355);t.exports=function(t,n){for(var e=t.append("text"),i=function(t){for(var n,e="",r=!1,i=0;i{var r;try{r=e(6486)}catch(t){}r||(r=window._),t.exports=r},6381:(t,n,e)=>{"use strict";var r=e(8355),i=e(4322);t.exports=function(t,n){var e=t.filter((function(){return!i.select(this).classed("update")}));function o(t){var e=n.node(t);return"translate("+e.x+","+e.y+")"}e.attr("transform",o),r.applyTransition(t,n).style("opacity",1).attr("transform",o),r.applyTransition(e.selectAll("rect"),n).attr("width",(function(t){return n.node(t).width})).attr("height",(function(t){return n.node(t).height})).attr("x",(function(t){return-n.node(t).width/2})).attr("y",(function(t){return-n.node(t).height/2}))}},4577:(t,n,e)=>{"use strict";var r=e(8355),i=e(4322),o=e(1034);t.exports=function(t,n){function e(t){var e=n.edge(t);return o.has(e,"x")?"translate("+e.x+","+e.y+")":""}t.filter((function(){return!i.select(this).classed("update")})).attr("transform",e),r.applyTransition(t,n).style("opacity",1).attr("transform",e)}},4849:(t,n,e)=>{"use strict";var r=e(8355),i=e(4322);t.exports=function(t,n){function e(t){var e=n.node(t);return"translate("+e.x+","+e.y+")"}t.filter((function(){return!i.select(this).classed("update")})).attr("transform",e),r.applyTransition(t,n).style("opacity",1).attr("transform",e)}},5787:(t,n,e)=>{var r=e(1034),i=e(4322),o=e(1463).layout;t.exports=function(){var t=e(607),n=e(5632),i=e(6315),s=e(940),l=e(4849),f=e(4577),h=e(6381),d=e(4418),p=e(9144),g=function(e,g){!function(t){t.nodes().forEach((function(n){var e=t.node(n);r.has(e,"label")||t.children(n).length||(e.label=n),r.has(e,"paddingX")&&r.defaults(e,{paddingLeft:e.paddingX,paddingRight:e.paddingX}),r.has(e,"paddingY")&&r.defaults(e,{paddingTop:e.paddingY,paddingBottom:e.paddingY}),r.has(e,"padding")&&r.defaults(e,{paddingLeft:e.padding,paddingRight:e.padding,paddingTop:e.padding,paddingBottom:e.padding}),r.defaults(e,a),r.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],(function(t){e[t]=Number(e[t])})),r.has(e,"width")&&(e._prevWidth=e.width),r.has(e,"height")&&(e._prevHeight=e.height)})),t.edges().forEach((function(n){var e=t.edge(n);r.has(e,"label")||(e.label=""),r.defaults(e,u)}))}(g),e.selectAll("*").remove();var v=c(e,"output"),y=c(v,"clusters"),m=c(v,"edgePaths"),_=i(c(v,"edgeLabels"),g),b=t(c(v,"nodes"),g,d);o(g),l(b,g),f(_,g),s(m,g,p);var w=n(y,g);h(w,g),function(t){r.each(t.nodes(),(function(n){var e=t.node(n);r.has(e,"_prevWidth")?e.width=e._prevWidth:delete e.width,r.has(e,"_prevHeight")?e.height=e._prevHeight:delete e.height,delete e._prevWidth,delete e._prevHeight}))}(g)};return g.createNodes=function(n){return arguments.length?(t=n,g):t},g.createClusters=function(t){return arguments.length?(n=t,g):n},g.createEdgeLabels=function(t){return arguments.length?(i=t,g):i},g.createEdgePaths=function(t){return arguments.length?(s=t,g):s},g.shapes=function(t){return arguments.length?(d=t,g):d},g.arrows=function(t){return arguments.length?(p=t,g):p},g};var a={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},u={arrowhead:"normal",curve:i.curveLinear};function c(t,n){var e=t.select("g."+n);return e.empty()&&(e=t.append("g").attr("class",n)),e}},4418:(t,n,e)=>{"use strict";var r=e(8049),i=e(3260),o=e(6587),a=e(5337);t.exports={rect:function(t,n,e){var i=t.insert("rect",":first-child").attr("rx",e.rx).attr("ry",e.ry).attr("x",-n.width/2).attr("y",-n.height/2).attr("width",n.width).attr("height",n.height);return e.intersect=function(t){return r(e,t)},i},ellipse:function(t,n,e){var r=n.width/2,o=n.height/2,a=t.insert("ellipse",":first-child").attr("x",-n.width/2).attr("y",-n.height/2).attr("rx",r).attr("ry",o);return e.intersect=function(t){return i(e,r,o,t)},a},circle:function(t,n,e){var r=Math.max(n.width,n.height)/2,i=t.insert("circle",":first-child").attr("x",-n.width/2).attr("y",-n.height/2).attr("r",r);return e.intersect=function(t){return o(e,r,t)},i},diamond:function(t,n,e){var r=n.width*Math.SQRT2/2,i=n.height*Math.SQRT2/2,o=[{x:0,y:-i},{x:-r,y:0},{x:0,y:i},{x:r,y:0}],u=t.insert("polygon",":first-child").attr("points",o.map((function(t){return t.x+","+t.y})).join(" "));return e.intersect=function(t){return a(e,o,t)},u}}},8355:(t,n,e)=>{var r=e(1034);t.exports={isSubgraph:function(t,n){return!!t.children(n).length},edgeToId:function(t){return o(t.v)+":"+o(t.w)+":"+o(t.name)},applyStyle:function(t,n){n&&t.attr("style",n)},applyClass:function(t,n,e){n&&t.attr("class",n).attr("class",e+" "+t.attr("class"))},applyTransition:function(t,n){var e=n.graph();if(r.isPlainObject(e)){var i=e.transition;if(r.isFunction(i))return i(t)}return t}};var i=/:/g;function o(t){return t?String(t).replace(i,"\\:"):""}},5689:t=>{t.exports="0.6.1"},1524:(t,n,e)=>{"use strict";e.r(n),e.d(n,{active:()=>VD,arc:()=>iT,area:()=>lT,areaRadial:()=>_T,ascending:()=>i,axisBottom:()=>ct,axisLeft:()=>st,axisRight:()=>ut,axisTop:()=>at,bisect:()=>s,bisectLeft:()=>c,bisectRight:()=>u,bisector:()=>o,brush:()=>qi,brushSelection:()=>Oi,brushX:()=>zi,brushY:()=>Fi,chord:()=>Zi,clientPoint:()=>Tk,cluster:()=>Hg,color:()=>Xo,create:()=>xk,creator:()=>hN,cross:()=>h,csv:()=>P_,csvFormat:()=>Tc,csvFormatRows:()=>Sc,csvParse:()=>Nc,csvParseRows:()=>kc,cubehelix:()=>Ca,curveBasis:()=>JT,curveBasisClosed:()=>nS,curveBasisOpen:()=>rS,curveBundle:()=>oS,curveCardinal:()=>cS,curveCardinalClosed:()=>lS,curveCardinalOpen:()=>hS,curveCatmullRom:()=>gS,curveCatmullRomClosed:()=>yS,curveCatmullRomOpen:()=>_S,curveLinear:()=>aT,curveLinearClosed:()=>wS,curveMonotoneX:()=>CS,curveMonotoneY:()=>AS,curveNatural:()=>IS,curveStep:()=>US,curveStepAfter:()=>OS,curveStepBefore:()=>DS,customEvent:()=>dk,descending:()=>d,deviation:()=>v,dispatch:()=>Da,drag:()=>vc,dragDisable:()=>cc,dragEnable:()=>sc,dsvFormat:()=>Mc,easeBack:()=>ys,easeBackIn:()=>gs,easeBackInOut:()=>ys,easeBackOut:()=>vs,easeBounce:()=>hs,easeBounceIn:()=>fs,easeBounceInOut:()=>ds,easeBounceOut:()=>hs,easeCircle:()=>ts,easeCircleIn:()=>Kc,easeCircleInOut:()=>ts,easeCircleOut:()=>Jc,easeCubic:()=>qc,easeCubicIn:()=>zc,easeCubicInOut:()=>qc,easeCubicOut:()=>Fc,easeElastic:()=>bs,easeElasticIn:()=>_s,easeElasticInOut:()=>ws,easeElasticOut:()=>bs,easeExp:()=>Zc,easeExpIn:()=>$c,easeExpInOut:()=>Zc,easeExpOut:()=>Qc,easeLinear:()=>Lc,easePoly:()=>Hc,easePolyIn:()=>jc,easePolyInOut:()=>Hc,easePolyOut:()=>Bc,easeQuad:()=>Oc,easeQuadIn:()=>Uc,easeQuadInOut:()=>Oc,easeQuadOut:()=>Dc,easeSin:()=>Gc,easeSinIn:()=>Wc,easeSinInOut:()=>Gc,easeSinOut:()=>Xc,entries:()=>Co,event:()=>ck,extent:()=>y,forceCenter:()=>xs,forceCollide:()=>Us,forceLink:()=>Ys,forceManyBody:()=>wl,forceRadial:()=>xl,forceSimulation:()=>bl,forceX:()=>Ml,forceY:()=>El,format:()=>Ll,formatDefaultLocale:()=>zl,formatLocale:()=>Ol,formatPrefix:()=>Ul,formatSpecifier:()=>Al,geoAlbers:()=>lg,geoAlbersUsa:()=>fg,geoArea:()=>Uf,geoAzimuthalEqualArea:()=>gg,geoAzimuthalEqualAreaRaw:()=>pg,geoAzimuthalEquidistant:()=>yg,geoAzimuthalEquidistantRaw:()=>vg,geoBounds:()=>Th,geoCentroid:()=>Fh,geoCircle:()=>Qh,geoClipAntimeridian:()=>hd,geoClipCircle:()=>dd,geoClipExtent:()=>yd,geoClipRectangle:()=>vd,geoConicConformal:()=>Mg,geoConicConformalRaw:()=>xg,geoConicEqualArea:()=>sg,geoConicEqualAreaRaw:()=>cg,geoConicEquidistant:()=>Tg,geoConicEquidistantRaw:()=>kg,geoContains:()=>zd,geoDistance:()=>Cd,geoEquirectangular:()=>Ng,geoEquirectangularRaw:()=>Eg,geoGnomonic:()=>Cg,geoGnomonicRaw:()=>Sg,geoGraticule:()=>jd,geoGraticule10:()=>Bd,geoIdentity:()=>Rg,geoInterpolate:()=>Hd,geoLength:()=>kd,geoMercator:()=>_g,geoMercatorRaw:()=>mg,geoNaturalEarth1:()=>Ig,geoNaturalEarth1Raw:()=>Pg,geoOrthographic:()=>Ug,geoOrthographicRaw:()=>Lg,geoPath:()=>Wp,geoProjection:()=>og,geoProjectionMutator:()=>ag,geoRotation:()=>Xh,geoStereographic:()=>Og,geoStereographicRaw:()=>Dg,geoStream:()=>xf,geoTransform:()=>Xp,geoTransverseMercator:()=>Fg,geoTransverseMercatorRaw:()=>zg,hcl:()=>_a,hierarchy:()=>Vg,histogram:()=>R,hsl:()=>ta,html:()=>k_,interpolate:()=>sm,interpolateArray:()=>em,interpolateBasis:()=>Wy,interpolateBasisClosed:()=>Xy,interpolateCool:()=>KE,interpolateCubehelix:()=>Um,interpolateCubehelixDefault:()=>QE,interpolateCubehelixLong:()=>Dm,interpolateDate:()=>rm,interpolateHcl:()=>Pm,interpolateHclLong:()=>Im,interpolateHsl:()=>Sm,interpolateHslLong:()=>Cm,interpolateInferno:()=>iN,interpolateLab:()=>Am,interpolateMagma:()=>rN,interpolateNumber:()=>im,interpolateObject:()=>om,interpolatePlasma:()=>oN,interpolateRainbow:()=>tN,interpolateRgb:()=>Ky,interpolateRgbBasis:()=>tm,interpolateRgbBasisClosed:()=>nm,interpolateRound:()=>lm,interpolateString:()=>cm,interpolateTransformCss:()=>_m,interpolateTransformSvg:()=>bm,interpolateViridis:()=>eN,interpolateWarm:()=>ZE,interpolateZoom:()=>km,interrupt:()=>WL,interval:()=>WP,isoFormat:()=>EP,isoParse:()=>NP,json:()=>T_,keys:()=>To,lab:()=>da,line:()=>sT,lineRadial:()=>mT,linkHorizontal:()=>ST,linkRadial:()=>AT,linkVertical:()=>CT,local:()=>Ek,map:()=>yo,matcher:()=>bN,max:()=>U,mean:()=>D,median:()=>O,merge:()=>z,min:()=>F,mouse:()=>Sk,namespace:()=>sN,namespaces:()=>cN,nest:()=>mo,now:()=>OP,pack:()=>gv,packEnclose:()=>Zg,packSiblings:()=>lv,pairs:()=>l,partition:()=>wv,path:()=>Ym,permute:()=>q,pie:()=>dT,pointRadial:()=>bT,polygonArea:()=>Vm,polygonCentroid:()=>Wm,polygonContains:()=>Zm,polygonHull:()=>Qm,polygonLength:()=>Km,precisionFixed:()=>Fl,precisionPrefix:()=>ql,precisionRound:()=>jl,quadtree:()=>r_,quantile:()=>P,quantize:()=>Om,queue:()=>p_,radialArea:()=>_T,radialLine:()=>mT,randomBates:()=>b_,randomExponential:()=>w_,randomIrwinHall:()=>__,randomLogNormal:()=>m_,randomNormal:()=>y_,randomUniform:()=>v_,range:()=>M,request:()=>E_,rgb:()=>Zo,ribbon:()=>ho,scaleBand:()=>ob,scaleIdentity:()=>ax,scaleImplicit:()=>rb,scaleLinear:()=>ox,scaleLog:()=>px,scaleOrdinal:()=>ib,scalePoint:()=>ub,scalePow:()=>vx,scaleQuantile:()=>mx,scaleQuantize:()=>_x,scaleSequential:()=>aN,scaleSqrt:()=>yx,scaleThreshold:()=>bx,scaleTime:()=>HE,scaleUtc:()=>YE,scan:()=>j,schemeCategory10:()=>WE,schemeCategory20:()=>$E,schemeCategory20b:()=>XE,schemeCategory20c:()=>GE,select:()=>wk,selectAll:()=>Ck,selection:()=>bk,selector:()=>pN,selectorAll:()=>vN,set:()=>ko,shuffle:()=>B,stack:()=>jS,stackOffsetDiverging:()=>HS,stackOffsetExpand:()=>BS,stackOffsetNone:()=>zS,stackOffsetSilhouette:()=>YS,stackOffsetWiggle:()=>VS,stackOrderAscending:()=>WS,stackOrderDescending:()=>GS,stackOrderInsideOut:()=>$S,stackOrderNone:()=>FS,stackOrderReverse:()=>QS,stratify:()=>Tv,style:()=>ON,sum:()=>H,symbol:()=>$T,symbolCircle:()=>RT,symbolCross:()=>PT,symbolDiamond:()=>UT,symbolSquare:()=>qT,symbolStar:()=>FT,symbolTriangle:()=>BT,symbolWye:()=>XT,symbols:()=>GT,text:()=>S_,thresholdFreedmanDiaconis:()=>I,thresholdScott:()=>L,thresholdSturges:()=>A,tickIncrement:()=>S,tickStep:()=>C,ticks:()=>T,timeDay:()=>mC,timeDays:()=>_C,timeFormat:()=>cR,timeFormatDefaultLocale:()=>xP,timeFormatLocale:()=>aR,timeFriday:()=>kC,timeFridays:()=>IC,timeHour:()=>gC,timeHours:()=>vC,timeInterval:()=>JS,timeMillisecond:()=>nC,timeMilliseconds:()=>eC,timeMinute:()=>hC,timeMinutes:()=>dC,timeMonday:()=>xC,timeMondays:()=>CC,timeMonth:()=>DC,timeMonths:()=>OC,timeParse:()=>sR,timeSaturday:()=>TC,timeSaturdays:()=>LC,timeSecond:()=>sC,timeSeconds:()=>lC,timeSunday:()=>wC,timeSundays:()=>SC,timeThursday:()=>NC,timeThursdays:()=>PC,timeTuesday:()=>MC,timeTuesdays:()=>AC,timeWednesday:()=>EC,timeWednesdays:()=>RC,timeWeek:()=>wC,timeWeeks:()=>SC,timeYear:()=>FC,timeYears:()=>qC,timeout:()=>VP,timer:()=>qP,timerFlush:()=>jP,touch:()=>Ak,touches:()=>Rk,transition:()=>OD,transpose:()=>Y,tree:()=>Lv,treemap:()=>Fv,treemapBinary:()=>qv,treemapDice:()=>bv,treemapResquarify:()=>Bv,treemapSlice:()=>Uv,treemapSliceDice:()=>jv,treemapSquarify:()=>zv,tsv:()=>I_,tsvFormat:()=>Pc,tsvFormatRows:()=>Ic,tsvParse:()=>Ac,tsvParseRows:()=>Rc,utcDay:()=>GC,utcDays:()=>$C,utcFormat:()=>lR,utcFriday:()=>eA,utcFridays:()=>sA,utcHour:()=>VC,utcHours:()=>WC,utcMillisecond:()=>nC,utcMilliseconds:()=>eC,utcMinute:()=>BC,utcMinutes:()=>HC,utcMonday:()=>KC,utcMondays:()=>oA,utcMonth:()=>hA,utcMonths:()=>dA,utcParse:()=>fR,utcSaturday:()=>rA,utcSaturdays:()=>lA,utcSecond:()=>sC,utcSeconds:()=>lC,utcSunday:()=>ZC,utcSundays:()=>iA,utcThursday:()=>nA,utcThursdays:()=>cA,utcTuesday:()=>JC,utcTuesdays:()=>aA,utcWednesday:()=>tA,utcWednesdays:()=>uA,utcWeek:()=>ZC,utcWeeks:()=>iA,utcYear:()=>gA,utcYears:()=>vA,values:()=>So,variance:()=>g,version:()=>r,voronoi:()=>RO,window:()=>IN,xml:()=>C_,zip:()=>W,zoom:()=>Jj,zoomIdentity:()=>Hj,zoomTransform:()=>Yj});var r="4.13.0";function i(t,n){return tn?1:t>=n?0:NaN}function o(t){var n;return 1===t.length&&(n=t,t=function(t,e){return i(n(t),e)}),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)>0?i=o:r=o+1}return r}}}var a=o(i),u=a.right,c=a.left;const s=u;function l(t,n){null==n&&(n=f);for(var e=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);et?1:n>=t?0:NaN}function p(t){return null===t?NaN:+t}function g(t,n){var e,r,i=t.length,o=0,a=-1,u=0,c=0;if(null==n)for(;++a1)return c/(o-1)}function v(t,n){var e=g(t,n);return e?Math.sqrt(e):e}function y(t,n){var e,r,i,o=t.length,a=-1;if(null==n){for(;++a=e)for(r=i=e;++ae&&(r=e),i=e)for(r=i=e;++ae&&(r=e),i0)return[t];if((r=n0)for(t=Math.ceil(t/a),n=Math.floor(n/a),o=new Array(i=Math.ceil(n-t+1));++u=0?(o>=E?10:o>=N?5:o>=k?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=E?10:o>=N?5:o>=k?2:1)}function C(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=E?i*=10:o>=N?i*=5:o>=k&&(i*=2),nf;)h.pop(),--d;var p,g=new Array(d+1);for(i=0;i<=d;++i)(p=g[i]=[]).x0=i>0?h[i-1]:l,p.x1=i=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),a=+e(t[o],o,t);return a+(+e(t[o+1],o+1,t)-a)*(i-o)}}function I(t,n,e){return t=b.call(t,p).sort(i),Math.ceil((e-n)/(2*(P(t,.75)-P(t,.25))*Math.pow(t.length,-1/3)))}function L(t,n,e){return Math.ceil((e-n)/(3.5*v(t)*Math.pow(t.length,-1/3)))}function U(t,n){var e,r,i=t.length,o=-1;if(null==n){for(;++o=e)for(r=e;++or&&(r=e)}else for(;++o=e)for(r=e;++or&&(r=e);return r}function D(t,n){var e,r=t.length,i=r,o=-1,a=0;if(null==n)for(;++o=0;)for(n=(r=t[i]).length;--n>=0;)e[--a]=r[n];return e}function F(t,n){var e,r,i=t.length,o=-1;if(null==n){for(;++o=e)for(r=e;++oe&&(r=e)}else for(;++o=e)for(r=e;++oe&&(r=e);return r}function q(t,n){for(var e=n.length,r=new Array(e);e--;)r[e]=t[n[e]];return r}function j(t,n){if(e=t.length){var e,r,o=0,a=0,u=t[a];for(null==n&&(n=i);++o=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))),a=-1,u=o.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++a0)for(var e,r,i=new Array(e),o=0;o=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),yt.hasOwnProperty(n)?{space:yt[n],local:t}:t}function _t(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===vt&&n.documentElement.namespaceURI===vt?n.createElement(t):n.createElementNS(e,t)}}function bt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function wt(t){var n=mt(t);return(n.local?bt:_t)(n)}function xt(){}function Mt(t){return null==t?xt:function(){return this.querySelector(t)}}function Et(){return[]}function Nt(t){return null==t?Et:function(){return this.querySelectorAll(t)}}var kt=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var Tt=document.documentElement;if(!Tt.matches){var St=Tt.webkitMatchesSelector||Tt.msMatchesSelector||Tt.mozMatchesSelector||Tt.oMatchesSelector;kt=function(t){return function(){return St.call(this,t)}}}}const Ct=kt;function At(t){return new Array(t.length)}function Rt(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}Rt.prototype={constructor:Rt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Pt="$";function It(t,n,e,r,i,o){for(var a,u=0,c=n.length,s=o.length;un?1:t>=n?0:NaN}function Dt(t){return function(){this.removeAttribute(t)}}function Ot(t){return function(){this.removeAttributeNS(t.space,t.local)}}function zt(t,n){return function(){this.setAttribute(t,n)}}function Ft(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function qt(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function jt(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function Bt(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Ht(t){return function(){this.style.removeProperty(t)}}function Yt(t,n,e){return function(){this.style.setProperty(t,n,e)}}function Vt(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function Wt(t,n){return t.style.getPropertyValue(n)||Bt(t).getComputedStyle(t,null).getPropertyValue(n)}function Xt(t){return function(){delete this[t]}}function Gt(t,n){return function(){this[t]=n}}function $t(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function Qt(t){return t.trim().split(/^|\s+/)}function Zt(t){return t.classList||new Kt(t)}function Kt(t){this._node=t,this._names=Qt(t.getAttribute("class")||"")}function Jt(t,n){for(var e=Zt(t),r=-1,i=n.length;++r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var yn={},mn=null;function _n(t,n,e){return t=bn(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function bn(t,n,e){return function(r){var i=mn;mn=r;try{t.call(this,this.__data__,n,e)}finally{mn=i}}}function wn(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r=w&&(w=b+1);!(_=y[w])&&++w=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=Ut);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o1?this.each((null==n?Ht:"function"==typeof n?Vt:Yt)(t,n,null==e?"":e)):Wt(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?Xt:"function"==typeof n?$t:Gt)(t,n)):this.node()[t]},classed:function(t,n){var e=Qt(t+"");if(arguments.length<2){for(var r=Zt(this.node()),i=-1,o=e.length;++i=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(u=n?xn:wn,null==e&&(e=!1),r=0;r>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):(n=Yn.exec(t))?Jn(parseInt(n[1],16)):(n=Vn.exec(t))?new re(n[1],n[2],n[3],1):(n=Wn.exec(t))?new re(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Xn.exec(t))?te(n[1],n[2],n[3],n[4]):(n=Gn.exec(t))?te(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=$n.exec(t))?oe(n[1],n[2]/100,n[3]/100,1):(n=Qn.exec(t))?oe(n[1],n[2]/100,n[3]/100,n[4]):Zn.hasOwnProperty(t)?Jn(Zn[t]):"transparent"===t?new re(NaN,NaN,NaN,0):null}function Jn(t){return new re(t>>16&255,t>>8&255,255&t,1)}function te(t,n,e,r){return r<=0&&(t=n=e=NaN),new re(t,n,e,r)}function ne(t){return t instanceof On||(t=Kn(t)),t?new re((t=t.rgb()).r,t.g,t.b,t.opacity):new re}function ee(t,n,e,r){return 1===arguments.length?ne(t):new re(t,n,e,null==r?1:r)}function re(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function ie(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function oe(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new ue(t,n,e,r)}function ae(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof ue)return new ue(t.h,t.s,t.l,t.opacity);if(t instanceof On||(t=Kn(t)),!t)return new ue;if(t instanceof ue)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e0&&c<1?0:a,new ue(a,u,c,t.opacity)}(t):new ue(t,n,e,null==r?1:r)}function ue(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function ce(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}Un(On,Kn,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Un(re,ee,Dn(On,{brighter:function(t){return t=null==t?Fn:Math.pow(Fn,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?zn:Math.pow(zn,t),new re(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+ie(this.r)+ie(this.g)+ie(this.b)},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),Un(ue,ae,Dn(On,{brighter:function(t){return t=null==t?Fn:Math.pow(Fn,t),new ue(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?zn:Math.pow(zn,t),new ue(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new re(ce(t>=240?t-240:t+120,i,r),ce(t,i,r),ce(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var se=Math.PI/180,le=180/Math.PI,fe=.96422,he=1,de=.82521,pe=4/29,ge=6/29,ve=3*ge*ge,ye=ge*ge*ge;function me(t){if(t instanceof _e)return new _e(t.l,t.a,t.b,t.opacity);if(t instanceof Ne){if(isNaN(t.h))return new _e(t.l,0,0,t.opacity);var n=t.h*se;return new _e(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof re||(t=ne(t));var e,r,i=Me(t.r),o=Me(t.g),a=Me(t.b),u=be((.2225045*i+.7168786*o+.0606169*a)/he);return i===o&&o===a?e=r=u:(e=be((.4360747*i+.3850649*o+.1430804*a)/fe),r=be((.0139322*i+.0971045*o+.7141733*a)/de)),new _e(116*u-16,500*(e-u),200*(u-r),t.opacity)}function _e(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function be(t){return t>ye?Math.pow(t,1/3):t/ve+pe}function we(t){return t>ge?t*t*t:ve*(t-pe)}function xe(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Me(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Ee(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Ne)return new Ne(t.h,t.c,t.l,t.opacity);if(t instanceof _e||(t=me(t)),0===t.a&&0===t.b)return new Ne(NaN,0,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*le;return new Ne(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new Ne(t,n,e,null==r?1:r)}function Ne(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}Un(_e,(function(t,n,e,r){return 1===arguments.length?me(t):new _e(t,n,e,null==r?1:r)}),Dn(On,{brighter:function(t){return new _e(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new _e(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return new re(xe(3.1338561*(n=fe*we(n))-1.6168667*(t=he*we(t))-.4906146*(e=de*we(e))),xe(-.9787684*n+1.9161415*t+.033454*e),xe(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),Un(Ne,Ee,Dn(On,{brighter:function(t){return new Ne(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Ne(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return me(this).rgb()}}));var ke=-.14861,Te=1.78277,Se=-.29227,Ce=-.90649,Ae=1.97294,Re=Ae*Ce,Pe=Ae*Te,Ie=Te*Se-Ce*ke;function Le(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Ue)return new Ue(t.h,t.s,t.l,t.opacity);t instanceof re||(t=ne(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(Ie*r+Re*n-Pe*e)/(Ie+Re-Pe),o=r-i,a=(Ae*(e-i)-Se*o)/Ce,u=Math.sqrt(a*a+o*o)/(Ae*i*(1-i)),c=u?Math.atan2(a,o)*le-120:NaN;return new Ue(c<0?c+360:c,u,i,t.opacity)}(t):new Ue(t,n,e,null==r?1:r)}function Ue(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function De(t,n,e,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*r+a*i)/6}function Oe(t){return function(){return t}}function ze(t,n){return function(e){return t+e*n}}function Fe(t,n){var e=n-t;return e?ze(t,e>180||e<-180?e-360*Math.round(e/360):e):Oe(isNaN(t)?n:t)}function qe(t,n){var e=n-t;return e?ze(t,e):Oe(isNaN(t)?n:t)}Un(Ue,Le,Dn(On,{brighter:function(t){return t=null==t?Fn:Math.pow(Fn,t),new Ue(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?zn:Math.pow(zn,t),new Ue(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*se,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new re(255*(n+e*(ke*r+Te*i)),255*(n+e*(Se*r+Ce*i)),255*(n+e*(Ae*r)),this.opacity)}}));const je=function t(n){var e=function(t){return 1==(t=+t)?qe:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):Oe(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=ee(t)).r,(n=ee(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=qe(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function Be(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),u=new Array(i);for(e=0;e=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=ro&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:Ve(e,r)})),o=Ge.lastIndex;return o180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:Ve(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,a.rotate,u,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:Ve(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,a.skewX,u,c),function(t,n,e,r,o,a){if(t!==e||n!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:Ve(t,e)},{i:u-2,x:Ve(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var n,e=-1,r=c.length;++e=0&&n._call.call(null,t),n=n._next;--hr}()}finally{hr=0,function(){for(var t,n,e=lr,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:lr=n);fr=t,Tr(r)}(),yr=0}}function kr(){var t=_r.now(),n=t-vr;n>gr&&(mr-=n,vr=t)}function Tr(t){hr||(dr&&(dr=clearTimeout(dr)),t-yr>24?(t<1/0&&(dr=setTimeout(Nr,t-_r.now()-mr)),pr&&(pr=clearInterval(pr))):(pr||(vr=_r.now(),pr=setInterval(kr,gr)),hr=1,br(Nr)))}function Sr(t,n,e){var r=new Mr;return n=null==n?0:+n,r.restart((function(e){r.stop(),t(e+n)}),n,e),r}Mr.prototype=Er.prototype={constructor:Mr,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?wr():+e)+(null==n?0:+n),this._next||fr===this||(fr?fr._next=this:lr=this,fr=this),this._call=t,this._time=e,Tr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Tr())}};var Cr=gt("start","end","interrupt"),Ar=[],Rr=0,Pr=1,Ir=2,Lr=3,Ur=4,Dr=5,Or=6;function zr(t,n,e,r,i,o){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(c){var s,l,f,h;if(e.state!==Pr)return u();for(s in i)if((h=i[s]).name===e.name){if(h.state===Lr)return Sr(o);h.state===Ur?(h.state=Or,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[s]):+sRr)throw new Error("too late; already scheduled");return e}function qr(t,n){var e=jr(t,n);if(e.state>Ir)throw new Error("too late; already started");return e}function jr(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function Br(t,n){var e,r,i,o=t.__transition,a=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>Ir&&e.state=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?Fr:qr;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(n,e),a.on=i}}(e,t,n))},attr:function(t,n){var e=mt(t),r="transform"===e?ar:Wr;return this.attrTween(t,"function"==typeof n?(e.local?Kr:Zr)(e,r,Vr(this,"attr."+t,n)):null==n?(e.local?Gr:Xr)(e):(e.local?Qr:$r)(e,r,n+""))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=mt(t);return this.tween(e,(r.local?Jr:ti)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?or:Wr;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=Wt(this,t),a=(this.style.removeProperty(t),Wt(this,t));return o===a?null:o===e&&a===r?i:i=n(e=o,r=a)}}(t,r)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof n?function(t,n,e){var r,i,o;return function(){var a=Wt(this,t),u=e(this);return null==u&&(this.style.removeProperty(t),u=Wt(this,t)),a===u?null:a===r&&u===i?o:o=n(r=a,i=u)}}(t,r,Vr(this,"style."+t,n)):function(t,n,e){var r,i;return function(){var o=Wt(this,t);return o===e?null:o===r?i:i=n(r=o,e)}}(t,r,n+""),e)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,function(t,n,e){function r(){var r=this,i=n.apply(r,arguments);return i&&function(n){r.style.setProperty(t,i(n),e)}}return r._value=n,r}(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(Vr(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},remove:function(){return this.on("end.remove",function(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=jr(this.node(),e).tween,o=0,a=i.length;o0&&(e=i-d),x<0?f=h-p:x>0&&(o=a-p),b=wi,U.attr("cursor",Ti.selection),z());break;default:return}yi()}),!0).on("keyup.brush",(function(){switch(mn.keyCode){case 16:A&&(v=y=A=!1,z());break;case 18:b===Mi&&(w<0?s=l:w>0&&(e=i),x<0?f=h:x>0&&(o=a),b=xi,z());break;case 32:b===wi&&(mn.altKey?(w&&(s=l-d*w,e=i+d*w),x&&(f=h-p*x,o=a+p*x),b=Mi):(w<0?s=l:w>0&&(e=i),x<0?f=h:x>0&&(o=a),b=xi),U.attr("cursor",Ti[_]),z());break;default:return}yi()}),!0).on("mousemove.brush",O,!0).on("mouseup.brush",F,!0);!function(t){var n=t.document.documentElement,e=An(t).on("dragstart.drag",Ln,!0);"onselectstart"in n?e.on("selectstart.drag",Ln,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}(mn.view)}vi(),Br(m),u.call(m),I.start()}function O(){var t=In(m);!A||v||y||(Math.abs(t[0]-P[0])>Math.abs(t[1]-P[1])?y=!0:v=!0),P=t,g=!0,yi(),z()}function z(){var t;switch(d=P[0]-R[0],p=P[1]-R[1],b){case wi:case bi:w&&(d=Math.max(k-e,Math.min(S-s,d)),i=e+d,l=s+d),x&&(p=Math.max(T-o,Math.min(C-f,p)),a=o+p,h=f+p);break;case xi:w<0?(d=Math.max(k-e,Math.min(S-e,d)),i=e+d,l=s):w>0&&(d=Math.max(k-s,Math.min(S-s,d)),i=e,l=s+d),x<0?(p=Math.max(T-o,Math.min(C-o,p)),a=o+p,h=f):x>0&&(p=Math.max(T-f,Math.min(C-f,p)),a=o,h=f+p);break;case Mi:w&&(i=Math.max(k,Math.min(S,e-d*w)),l=Math.max(k,Math.min(S,s+d*w))),x&&(a=Math.max(T,Math.min(C,o-p*x)),h=Math.max(T,Math.min(C,f+p*x)))}ln?1:t>=n?0:NaN}1===(mi=Bi).length&&(_i=mi,mi=function(t,n){return Bi(_i(t),n)});var Hi=Array.prototype;function Yi(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++reo)if(Math.abs(l*u-c*s)>eo&&i){var h=e-o,d=r-a,p=u*u+c*c,g=h*h+d*d,v=Math.sqrt(p),y=Math.sqrt(f),m=i*Math.tan((to-Math.acos((p+f-g)/(2*v*y)))/2),_=m/y,b=m/v;Math.abs(_-1)>eo&&(this._+="L"+(t+_*s)+","+(n+_*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>s*d)+","+(this._x1=t+b*u)+","+(this._y1=n+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,r,i,o){t=+t,n=+n;var a=(e=+e)*Math.cos(r),u=e*Math.sin(r),c=t+a,s=n+u,l=1^o,f=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+s:(Math.abs(this._x1-c)>eo||Math.abs(this._y1-s)>eo)&&(this._+="L"+c+","+s),e&&(f<0&&(f=f%no+no),f>ro?this._+="A"+e+","+e+",0,1,"+l+","+(t-a)+","+(n-u)+"A"+e+","+e+",0,1,"+l+","+(this._x1=c)+","+(this._y1=s):f>eo&&(this._+="A"+e+","+e+",0,"+ +(f>=to)+","+l+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};const ao=oo;function uo(t){return t.source}function co(t){return t.target}function so(t){return t.radius}function lo(t){return t.startAngle}function fo(t){return t.endAngle}function ho(){var t=uo,n=co,e=so,r=lo,i=fo,o=null;function a(){var a,u=Ki.call(arguments),c=t.apply(this,u),s=n.apply(this,u),l=+e.apply(this,(u[0]=c,u)),f=r.apply(this,u)-Gi,h=i.apply(this,u)-Gi,d=l*Vi(f),p=l*Wi(f),g=+e.apply(this,(u[0]=s,u)),v=r.apply(this,u)-Gi,y=i.apply(this,u)-Gi;if(o||(o=a=ao()),o.moveTo(d,p),o.arc(0,0,l,f,h),f===v&&h===y||(o.quadraticCurveTo(0,0,g*Vi(v),g*Wi(v)),o.arc(0,0,g,v,y)),o.quadraticCurveTo(0,0,d,p),o.closePath(),a)return o=null,a+""||null}return a.radius=function(t){return arguments.length?(e="function"==typeof t?t:Ji(+t),a):e},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Ji(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Ji(+t),a):i},a.source=function(n){return arguments.length?(t=n,a):t},a.target=function(t){return arguments.length?(n=t,a):n},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}var po="$";function go(){}function vo(t,n){var e=new go;if(t instanceof go)t.each((function(t,n){e.set(n,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==n)for(;++i=r.length)return null!=t&&e.sort(t),null!=n?n(e):e;for(var c,s,l,f=-1,h=e.length,d=r[i++],p=yo(),g=a();++fr.length)return t;var o,u=i[e-1];return null!=n&&e>=r.length?o=t.entries():(o=[],t.each((function(t,n){o.push({key:n,values:a(t,e)})}))),null!=u?o.sort((function(t,n){return u(t.key,n.key)})):o}return e={object:function(t){return o(t,0,_o,bo)},map:function(t){return o(t,0,wo,xo)},entries:function(t){return a(o(t,0,wo,xo),0)},key:function(t){return r.push(t),e},sortKeys:function(t){return i[r.length-1]=t,e},sortValues:function(n){return t=n,e},rollup:function(t){return n=t,e}}}function _o(){return{}}function bo(t,n,e){t[n]=e}function wo(){return yo()}function xo(t,n,e){t.set(n,e)}function Mo(){}var Eo=yo.prototype;function No(t,n){var e=new Mo;if(t instanceof Mo)t.each((function(t){e.add(t)}));else if(t){var r=-1,i=t.length;if(null==n)for(;++r>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):(n=Fo.exec(t))?Go(parseInt(n[1],16)):(n=qo.exec(t))?new Ko(n[1],n[2],n[3],1):(n=jo.exec(t))?new Ko(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Bo.exec(t))?$o(n[1],n[2],n[3],n[4]):(n=Ho.exec(t))?$o(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Yo.exec(t))?Jo(n[1],n[2]/100,n[3]/100,1):(n=Vo.exec(t))?Jo(n[1],n[2]/100,n[3]/100,n[4]):Wo.hasOwnProperty(t)?Go(Wo[t]):"transparent"===t?new Ko(NaN,NaN,NaN,0):null}function Go(t){return new Ko(t>>16&255,t>>8&255,255&t,1)}function $o(t,n,e,r){return r<=0&&(t=n=e=NaN),new Ko(t,n,e,r)}function Qo(t){return t instanceof Po||(t=Xo(t)),t?new Ko((t=t.rgb()).r,t.g,t.b,t.opacity):new Ko}function Zo(t,n,e,r){return 1===arguments.length?Qo(t):new Ko(t,n,e,null==r?1:r)}function Ko(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Jo(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new na(t,n,e,r)}function ta(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof na)return new na(t.h,t.s,t.l,t.opacity);if(t instanceof Po||(t=Xo(t)),!t)return new na;if(t instanceof na)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e0&&c<1?0:a,new na(a,u,c,t.opacity)}(t):new na(t,n,e,null==r?1:r)}function na(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function ea(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}Ao(Po,Xo,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Ao(Ko,Zo,Ro(Po,{brighter:function(t){return t=null==t?Lo:Math.pow(Lo,t),new Ko(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Io:Math.pow(Io,t),new Ko(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),Ao(na,ta,Ro(Po,{brighter:function(t){return t=null==t?Lo:Math.pow(Lo,t),new na(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Io:Math.pow(Io,t),new na(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new Ko(ea(t>=240?t-240:t+120,i,r),ea(t,i,r),ea(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var ra=Math.PI/180,ia=180/Math.PI,oa=.95047,aa=1,ua=1.08883,ca=4/29,sa=6/29,la=3*sa*sa,fa=sa*sa*sa;function ha(t){if(t instanceof pa)return new pa(t.l,t.a,t.b,t.opacity);if(t instanceof ba){var n=t.h*ra;return new pa(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof Ko||(t=Qo(t));var e=ma(t.r),r=ma(t.g),i=ma(t.b),o=ga((.4124564*e+.3575761*r+.1804375*i)/oa),a=ga((.2126729*e+.7151522*r+.072175*i)/aa);return new pa(116*a-16,500*(o-a),200*(a-ga((.0193339*e+.119192*r+.9503041*i)/ua)),t.opacity)}function da(t,n,e,r){return 1===arguments.length?ha(t):new pa(t,n,e,null==r?1:r)}function pa(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function ga(t){return t>fa?Math.pow(t,1/3):t/la+ca}function va(t){return t>sa?t*t*t:la*(t-ca)}function ya(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function ma(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function _a(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof ba)return new ba(t.h,t.c,t.l,t.opacity);t instanceof pa||(t=ha(t));var n=Math.atan2(t.b,t.a)*ia;return new ba(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new ba(t,n,e,null==r?1:r)}function ba(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}Ao(pa,da,Ro(Po,{brighter:function(t){return new pa(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new pa(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return t=aa*va(t),new Ko(ya(3.2404542*(n=oa*va(n))-1.5371385*t-.4985314*(e=ua*va(e))),ya(-.969266*n+1.8760108*t+.041556*e),ya(.0556434*n-.2040259*t+1.0572252*e),this.opacity)}})),Ao(ba,_a,Ro(Po,{brighter:function(t){return new ba(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new ba(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return ha(this).rgb()}}));var wa=-.14861,xa=1.78277,Ma=-.29227,Ea=-.90649,Na=1.97294,ka=Na*Ea,Ta=Na*xa,Sa=xa*Ma-Ea*wa;function Ca(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Aa)return new Aa(t.h,t.s,t.l,t.opacity);t instanceof Ko||(t=Qo(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(Sa*r+ka*n-Ta*e)/(Sa+ka-Ta),o=r-i,a=(Na*(e-i)-Ma*o)/Ea,u=Math.sqrt(a*a+o*o)/(Na*i*(1-i)),c=u?Math.atan2(a,o)*ia-120:NaN;return new Aa(c<0?c+360:c,u,i,t.opacity)}(t):new Aa(t,n,e,null==r?1:r)}function Aa(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}Ao(Aa,Ca,Ro(Po,{brighter:function(t){return t=null==t?Lo:Math.pow(Lo,t),new Aa(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Io:Math.pow(Io,t),new Aa(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*ra,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new Ko(255*(n+e*(wa*r+xa*i)),255*(n+e*(Ma*r+Ea*i)),255*(n+e*(Na*r)),this.opacity)}}));var Ra={value:function(){}};function Pa(){for(var t,n=0,e=arguments.length,r={};n=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))),a=-1,u=o.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++a0)for(var e,r,i=new Array(e),o=0;o=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))),a=-1,u=o.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++a0)for(var e,r,i=new Array(e),o=0;o=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Ya.hasOwnProperty(n)?{space:Ya[n],local:t}:t}function Wa(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===Ha&&n.documentElement.namespaceURI===Ha?n.createElement(t):n.createElementNS(e,t)}}function Xa(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ga(t){var n=Va(t);return(n.local?Xa:Wa)(n)}function $a(){}function Qa(t){return null==t?$a:function(){return this.querySelector(t)}}function Za(){return[]}var Ka=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var Ja=document.documentElement;if(!Ja.matches){var tu=Ja.webkitMatchesSelector||Ja.msMatchesSelector||Ja.mozMatchesSelector||Ja.oMatchesSelector;Ka=function(t){return function(){return tu.call(this,t)}}}}const nu=Ka;function eu(t){return new Array(t.length)}function ru(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}ru.prototype={constructor:ru,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var iu="$";function ou(t,n,e,r,i,o){for(var a,u=0,c=n.length,s=o.length;un?1:t>=n?0:NaN}function cu(t){return function(){this.removeAttribute(t)}}function su(t){return function(){this.removeAttributeNS(t.space,t.local)}}function lu(t,n){return function(){this.setAttribute(t,n)}}function fu(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function hu(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function du(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function pu(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function gu(t){return function(){this.style.removeProperty(t)}}function vu(t,n,e){return function(){this.style.setProperty(t,n,e)}}function yu(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function mu(t){return function(){delete this[t]}}function _u(t,n){return function(){this[t]=n}}function bu(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function wu(t){return t.trim().split(/^|\s+/)}function xu(t){return t.classList||new Mu(t)}function Mu(t){this._node=t,this._names=wu(t.getAttribute("class")||"")}function Eu(t,n){for(var e=xu(t),r=-1,i=n.length;++r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ju={},Bu=null;function Hu(t,n,e){return t=Yu(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function Yu(t,n,e){return function(r){var i=Bu;Bu=r;try{t.call(this,this.__data__,n,e)}finally{Bu=i}}}function Vu(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r=w&&(w=b+1);!(_=y[w])&&++w=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=uu);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o1?this.each((null==n?gu:"function"==typeof n?yu:vu)(t,n,null==e?"":e)):function(t,n){return t.style.getPropertyValue(n)||pu(t).getComputedStyle(t,null).getPropertyValue(n)}(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?mu:"function"==typeof n?bu:_u)(t,n)):this.node()[t]},classed:function(t,n){var e=wu(t+"");if(arguments.length<2){for(var r=xu(this.node()),i=-1,o=e.length;++i=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(u=n?Wu:Vu,null==e&&(e=!1),r=0;rf}c.mouse("drag")}function g(){Ju(Bu.view).on("mousemove.drag mouseup.drag",null),sc(Bu.view,e),uc(),c.mouse("end")}function v(){if(i.apply(this,arguments)){var t,n,e=Bu.changedTouches,r=o.apply(this,arguments),a=e.length;for(t=0;t=o?c=!0:(r=t.charCodeAt(a++))===bc?s=!0:r===wc&&(s=!0,t.charCodeAt(a)===bc&&++a),t.slice(i+1,n-1).replace(/""/g,'"')}for(;a=(o=(g+y)/2))?g=o:y=o,(l=e>=(a=(v+m)/2))?v=a:m=a,i=d,!(d=d[f=l<<1|s]))return i[f]=p,t;if(u=+t._x.call(null,d.data),c=+t._y.call(null,d.data),n===u&&e===c)return p.next=d,i?i[f]=p:t._root=p,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(s=n>=(o=(g+y)/2))?g=o:y=o,(l=e>=(a=(v+m)/2))?v=a:m=a}while((f=l<<1|s)==(h=(c>=a)<<1|u>=o));return i[h]=d,i[f]=p,t}function ks(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i}function Ts(t){return t[0]}function Ss(t){return t[1]}function Cs(t,n,e){var r=new As(null==n?Ts:n,null==e?Ss:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function As(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function Rs(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var Ps=Cs.prototype=As.prototype;function Is(t){return t.x+t.vx}function Ls(t){return t.y+t.vy}function Us(t){var n,e,r=1,i=1;function o(){for(var t,o,u,c,s,l,f,h=n.length,d=0;dc+d||is+d||ou.index){var p=c-a.x-a.vx,g=s-a.y-a.vy,v=p*p+g*g;vt.r&&(t.r=t[n].r)}function u(){if(n){var r,i,o=n.length;for(e=new Array(o),r=0;rl&&(l=r),if&&(f=i));for(lt||t>i||r>n||n>o))return this;var a,u,c=i-e,s=this._root;switch(u=(n<(r+o)/2)<<1|t<(e+i)/2){case 0:do{(a=new Array(4))[u]=s,s=a}while(o=r+(c*=2),t>(i=e+c)||n>o);break;case 1:do{(a=new Array(4))[u]=s,s=a}while(o=r+(c*=2),(e=i-c)>t||n>o);break;case 2:do{(a=new Array(4))[u]=s,s=a}while(r=o-(c*=2),t>(i=e+c)||r>n);break;case 3:do{(a=new Array(4))[u]=s,s=a}while(r=o-(c*=2),(e=i-c)>t||r>n)}this._root&&this._root.length&&(this._root=s)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},Ps.data=function(){var t=[];return this.visit((function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)})),t},Ps.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},Ps.find=function(t,n,e){var r,i,o,a,u,c,s,l=this._x0,f=this._y0,h=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new ks(g,l,f,h,d)),null==e?e=1/0:(l=t-e,f=n-e,h=t+e,d=n+e,e*=e);c=p.pop();)if(!(!(g=c.node)||(i=c.x0)>h||(o=c.y0)>d||(a=c.x1)=y)<<1|t>=v)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-s],p[p.length-1-s]=c)}else{var m=t-+this._x.call(null,g.data),_=n-+this._y.call(null,g.data),b=m*m+_*_;if(b=(u=(p+v)/2))?p=u:v=u,(l=a>=(c=(g+y)/2))?g=c:y=c,n=d,!(d=d[f=l<<1|s]))return this;if(!d.length)break;(n[f+1&3]||n[f+2&3]||n[f+3&3])&&(e=n,h=f)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):n?(i?n[f]=i:delete n[f],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)},Ps.removeAll=function(t){for(var n=0,e=t.length;n=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))),a=-1,u=o.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++a0)for(var e,r,i=new Array(e),o=0;o=0&&n._call.call(null,t),n=n._next;--Js}()}finally{Js=0,function(){for(var t,n,e=Zs,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Zs=n);Ks=t,pl(r)}(),il=0}}function dl(){var t=al.now(),n=t-rl;n>el&&(ol-=n,rl=t)}function pl(t){Js||(tl&&(tl=clearTimeout(tl)),t-il>24?(t<1/0&&(tl=setTimeout(hl,t-al.now()-ol)),nl&&(nl=clearInterval(nl))):(nl||(rl=al.now(),nl=setInterval(dl,el)),Js=1,ul(hl)))}function gl(t){return t.x}function vl(t){return t.y}ll.prototype=fl.prototype={constructor:ll,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?cl():+e)+(null==n?0:+n),this._next||Ks===this||(Ks?Ks._next=this:Zs=this,Ks=this),this._call=t,this._time=e,pl()},stop:function(){this._call&&(this._call=null,this._time=1/0,pl())}};var yl,ml=10,_l=Math.PI*(3-Math.sqrt(5));function bl(t){var n,e=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,u=Fs(),c=fl(l),s=Qs("tick","end");function l(){f(),s.call("tick",n),e1?(null==e?u.remove(t):u.set(t,d(e)),n):u.get(t)},find:function(n,e,r){var i,o,a,u,c,s=0,l=t.length;for(null==r?r=1/0:r*=r,s=0;s1?(s.on(t,e),n):s.on(t)}}}function wl(){var t,n,e,r,i=Ms(-30),o=1,a=1/0,u=.81;function c(r){var i,o=t.length,a=Cs(t,gl,vl).visitAfter(l);for(e=r,i=0;i=a)){(t.data!==n||t.next)&&(0===l&&(d+=(l=Es())*l),0===f&&(d+=(f=Es())*f),d1?r[0]+r.slice(2):r,+t.slice(e+1)]}function kl(t){return(t=Nl(Math.abs(t)))?t[1]:NaN}function Tl(t,n){var e=Nl(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const Sl={"":function(t,n){t:for(var e,r=(t=t.toPrecision(n)).length,i=1,o=-1;i0&&(o=0)}return o>0?t.slice(0,o)+t.slice(e+1):t},"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return Tl(100*t,n)},r:Tl,s:function(t,n){var e=Nl(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(yl=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Nl(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};var Cl=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function Al(t){return new Rl(t)}function Rl(t){if(!(n=Cl.exec(t)))throw new Error("invalid format: "+t);var n,e=n[1]||" ",r=n[2]||">",i=n[3]||"-",o=n[4]||"",a=!!n[5],u=n[6]&&+n[6],c=!!n[7],s=n[8]&&+n[8].slice(1),l=n[9]||"";"n"===l?(c=!0,l="g"):Sl[l]||(l=""),(a||"0"===e&&"="===r)&&(a=!0,e="0",r="="),this.fill=e,this.align=r,this.sign=i,this.symbol=o,this.zero=a,this.width=u,this.comma=c,this.precision=s,this.type=l}function Pl(t){return t}Al.prototype=Rl.prototype,Rl.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+this.type};var Il,Ll,Ul,Dl=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ol(t){var n,e,r=t.grouping&&t.thousands?(n=t.grouping,e=t.thousands,function(t,r){for(var i=t.length,o=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),o.push(t.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return o.reverse().join(e)}):Pl,i=t.currency,o=t.decimal,a=t.numerals?function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(t.numerals):Pl,u=t.percent||"%";function c(t){var n=(t=Al(t)).fill,e=t.align,c=t.sign,s=t.symbol,l=t.zero,f=t.width,h=t.comma,d=t.precision,p=t.type,g="$"===s?i[0]:"#"===s&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",v="$"===s?i[1]:/[%p]/.test(p)?u:"",y=Sl[p],m=!p||/[defgprs%]/.test(p);function _(t){var i,u,s,_=g,b=v;if("c"===p)b=y(t)+b,t="";else{var w=(t=+t)<0;if(t=y(Math.abs(t),d),w&&0==+t&&(w=!1),_=(w?"("===c?c:"-":"-"===c||"("===c?"":c)+_,b=("s"===p?Dl[8+yl/3]:"")+b+(w&&"("===c?")":""),m)for(i=-1,u=t.length;++i(s=t.charCodeAt(i))||s>57){b=(46===s?o+t.slice(i+1):t.slice(i))+b,t=t.slice(0,i);break}}h&&!l&&(t=r(t,1/0));var x=_.length+t.length+b.length,M=x>1)+_+t+b+M.slice(x);break;default:t=M+_+t+b}return a(t)}return d=null==d?p?6:12:/[gprs]/.test(p)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),_.toString=function(){return t+""},_}return{format:c,formatPrefix:function(t,n){var e=c(((t=Al(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(kl(n)/3))),i=Math.pow(10,-r),o=Dl[8+r/3];return function(t){return e(i*t)+o}}}}function zl(t){return Il=Ol(t),Ll=Il.format,Ul=Il.formatPrefix,Il}function Fl(t){return Math.max(0,-kl(Math.abs(t)))}function ql(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(kl(n)/3)))-kl(Math.abs(t)))}function jl(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,kl(n)-kl(t))+1}function Bl(){return new Hl}function Hl(){this.reset()}zl({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),Hl.prototype={constructor:Hl,reset:function(){this.s=this.t=0},add:function(t){Vl(Yl,t,this.t),Vl(this,Yl.s,this.s),this.s?this.t+=Yl.t:this.s=Yl.t},valueOf:function(){return this.s}};var Yl=new Hl;function Vl(t,n,e){var r=t.s=n+e,i=r-n,o=r-i;t.t=n-o+(e-i)}var Wl=1e-6,Xl=1e-12,Gl=Math.PI,$l=Gl/2,Ql=Gl/4,Zl=2*Gl,Kl=180/Gl,Jl=Gl/180,tf=Math.abs,nf=Math.atan,ef=Math.atan2,rf=Math.cos,of=Math.ceil,af=Math.exp,uf=(Math.floor,Math.log),cf=Math.pow,sf=Math.sin,lf=Math.sign||function(t){return t>0?1:t<0?-1:0},ff=Math.sqrt,hf=Math.tan;function df(t){return t>1?0:t<-1?Gl:Math.acos(t)}function pf(t){return t>1?$l:t<-1?-$l:Math.asin(t)}function gf(t){return(t=sf(t/2))*t}function vf(){}function yf(t,n){t&&_f.hasOwnProperty(t.type)&&_f[t.type](t,n)}var mf={Feature:function(t,n){yf(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r=0?1:-1,i=r*e,o=rf(n=(n*=Jl)/2+Ql),a=sf(n),u=Tf*a,c=kf*o+u*rf(i),s=u*r*sf(i);Sf.add(ef(s,c)),Nf=t,kf=o,Tf=a}function Uf(t){return Cf.reset(),xf(t,Af),2*Cf}function Df(t){return[ef(t[1],t[0]),pf(t[2])]}function Of(t){var n=t[0],e=t[1],r=rf(e);return[r*rf(n),r*sf(n),sf(e)]}function zf(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function Ff(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function qf(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function jf(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function Bf(t){var n=ff(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var Hf,Yf,Vf,Wf,Xf,Gf,$f,Qf,Zf,Kf,Jf,th,nh,eh,rh,ih,oh,ah,uh,ch,sh,lh,fh,hh,dh,ph,gh=Bl(),vh={point:yh,lineStart:_h,lineEnd:bh,polygonStart:function(){vh.point=wh,vh.lineStart=xh,vh.lineEnd=Mh,gh.reset(),Af.polygonStart()},polygonEnd:function(){Af.polygonEnd(),vh.point=yh,vh.lineStart=_h,vh.lineEnd=bh,Sf<0?(Hf=-(Vf=180),Yf=-(Wf=90)):gh>Wl?Wf=90:gh<-Wl&&(Yf=-90),Kf[0]=Hf,Kf[1]=Vf}};function yh(t,n){Zf.push(Kf=[Hf=t,Vf=t]),nWf&&(Wf=n)}function mh(t,n){var e=Of([t*Jl,n*Jl]);if(Qf){var r=Ff(Qf,e),i=Ff([r[1],-r[0],0],r);Bf(i),i=Df(i);var o,a=t-Xf,u=a>0?1:-1,c=i[0]*Kl*u,s=tf(a)>180;s^(u*XfWf&&(Wf=o):s^(u*Xf<(c=(c+360)%360-180)&&cWf&&(Wf=n)),s?tEh(Hf,Vf)&&(Vf=t):Eh(t,Vf)>Eh(Hf,Vf)&&(Hf=t):Vf>=Hf?(tVf&&(Vf=t)):t>Xf?Eh(Hf,t)>Eh(Hf,Vf)&&(Vf=t):Eh(t,Vf)>Eh(Hf,Vf)&&(Hf=t)}else Zf.push(Kf=[Hf=t,Vf=t]);nWf&&(Wf=n),Qf=e,Xf=t}function _h(){vh.point=mh}function bh(){Kf[0]=Hf,Kf[1]=Vf,vh.point=yh,Qf=null}function wh(t,n){if(Qf){var e=t-Xf;gh.add(tf(e)>180?e+(e>0?360:-360):e)}else Gf=t,$f=n;Af.point(t,n),mh(t,n)}function xh(){Af.lineStart()}function Mh(){wh(Gf,$f),Af.lineEnd(),tf(gh)>Wl&&(Hf=-(Vf=180)),Kf[0]=Hf,Kf[1]=Vf,Qf=null}function Eh(t,n){return(n-=t)<0?n+360:n}function Nh(t,n){return t[0]-n[0]}function kh(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:nEh(r[0],r[1])&&(r[1]=i[1]),Eh(i[0],r[1])>Eh(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,n=0,r=o[e=o.length-1];n<=e;r=i,++n)i=o[n],(u=Eh(r[1],i[0]))>a&&(a=u,Hf=i[0],Vf=r[1])}return Zf=Kf=null,Hf===1/0||Yf===1/0?[[NaN,NaN],[NaN,NaN]]:[[Hf,Yf],[Vf,Wf]]}var Sh={sphere:vf,point:Ch,lineStart:Rh,lineEnd:Lh,polygonStart:function(){Sh.lineStart=Uh,Sh.lineEnd=Dh},polygonEnd:function(){Sh.lineStart=Rh,Sh.lineEnd=Lh}};function Ch(t,n){t*=Jl;var e=rf(n*=Jl);Ah(e*rf(t),e*sf(t),sf(n))}function Ah(t,n,e){++Jf,nh+=(t-nh)/Jf,eh+=(n-eh)/Jf,rh+=(e-rh)/Jf}function Rh(){Sh.point=Ph}function Ph(t,n){t*=Jl;var e=rf(n*=Jl);hh=e*rf(t),dh=e*sf(t),ph=sf(n),Sh.point=Ih,Ah(hh,dh,ph)}function Ih(t,n){t*=Jl;var e=rf(n*=Jl),r=e*rf(t),i=e*sf(t),o=sf(n),a=ef(ff((a=dh*o-ph*i)*a+(a=ph*r-hh*o)*a+(a=hh*i-dh*r)*a),hh*r+dh*i+ph*o);th+=a,ih+=a*(hh+(hh=r)),oh+=a*(dh+(dh=i)),ah+=a*(ph+(ph=o)),Ah(hh,dh,ph)}function Lh(){Sh.point=Ch}function Uh(){Sh.point=Oh}function Dh(){zh(lh,fh),Sh.point=Ch}function Oh(t,n){lh=t,fh=n,t*=Jl,n*=Jl,Sh.point=zh;var e=rf(n);hh=e*rf(t),dh=e*sf(t),ph=sf(n),Ah(hh,dh,ph)}function zh(t,n){t*=Jl;var e=rf(n*=Jl),r=e*rf(t),i=e*sf(t),o=sf(n),a=dh*o-ph*i,u=ph*r-hh*o,c=hh*i-dh*r,s=ff(a*a+u*u+c*c),l=pf(s),f=s&&-l/s;uh+=f*a,ch+=f*u,sh+=f*c,th+=l,ih+=l*(hh+(hh=r)),oh+=l*(dh+(dh=i)),ah+=l*(ph+(ph=o)),Ah(hh,dh,ph)}function Fh(t){Jf=th=nh=eh=rh=ih=oh=ah=uh=ch=sh=0,xf(t,Sh);var n=uh,e=ch,r=sh,i=n*n+e*e+r*r;return iGl?t-Zl:t<-Gl?t+Zl:t,n]}function Hh(t,n,e){return(t%=Zl)?n||e?jh(Vh(t),Wh(n,e)):Vh(t):n||e?Wh(n,e):Bh}function Yh(t){return function(n,e){return[(n+=t)>Gl?n-Zl:n<-Gl?n+Zl:n,e]}}function Vh(t){var n=Yh(t);return n.invert=Yh(-t),n}function Wh(t,n){var e=rf(t),r=sf(t),i=rf(n),o=sf(n);function a(t,n){var a=rf(n),u=rf(t)*a,c=sf(t)*a,s=sf(n),l=s*e+u*r;return[ef(c*i-l*o,u*e-s*r),pf(l*i+c*o)]}return a.invert=function(t,n){var a=rf(n),u=rf(t)*a,c=sf(t)*a,s=sf(n),l=s*i-c*o;return[ef(c*i+s*o,u*e+l*r),pf(l*e-u*r)]},a}function Xh(t){function n(n){return(n=t(n[0]*Jl,n[1]*Jl))[0]*=Kl,n[1]*=Kl,n}return t=Hh(t[0]*Jl,t[1]*Jl,t.length>2?t[2]*Jl:0),n.invert=function(n){return(n=t.invert(n[0]*Jl,n[1]*Jl))[0]*=Kl,n[1]*=Kl,n},n}function Gh(t,n,e,r,i,o){if(e){var a=rf(n),u=sf(n),c=r*e;null==i?(i=n+r*Zl,o=n-c/2):(i=$h(a,i),o=$h(a,o),(r>0?io)&&(i+=r*Zl));for(var s,l=i;r>0?l>o:l1&&n.push(n.pop().concat(n.shift()))},result:function(){var e=n;return n=[],t=null,e}}}function Kh(t,n){return tf(t[0]-n[0])=0;--o)i.point((l=s[o])[0],l[1]);else r(h.x,h.p.x,-1,i);h=h.p}s=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}}function nd(t){if(n=t.length){for(var n,e,r=0,i=t[0];++r=0?1:-1,E=M*x,N=E>Gl,k=p*b;if(ed.add(ef(k*M*sf(E),g*w+k*rf(E))),o+=N?x+M*Zl:x,N^h>=e^m>=e){var T=Ff(Of(f),Of(y));Bf(T);var S=Ff(i,T);Bf(S);var C=(N^x>=0?-1:1)*pf(S[2]);(r>C||r===C&&(T[0]||T[1]))&&(a+=N^x>=0?1:-1)}}return(o<-Wl||on?1:t>=n?0:NaN}var od=function(t){return 1===t.length&&(t=function(t){return function(n,e){return id(t(n),e)}}(t)),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)>0?i=o:r=o+1}return r}}}(id);od.right,od.left;var ad=Array.prototype;function ud(t){for(var n,e,r,i=t.length,o=-1,a=0;++o=0;)for(n=(r=t[i]).length;--n>=0;)e[--a]=r[n];return e}function cd(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++r0){for(f||(i.polygonStart(),f=!0),i.lineStart(),t=0;t1&&2&c&&h.push(h.pop().concat(h.shift())),a.push(h.filter(ld))}return h}}function ld(t){return t.length>1}function fd(t,n){return((t=t.x)[0]<0?t[1]-$l-Wl:$l-t[1])-((n=n.x)[0]<0?n[1]-$l-Wl:$l-n[1])}ad.slice,ad.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);const hd=sd((function(){return!0}),(function(t){var n,e=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),n=1},point:function(o,a){var u=o>0?Gl:-Gl,c=tf(o-e);tf(c-Gl)0?$l:-$l),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(o,r),n=0):i!==u&&c>=Gl&&(tf(e-i)Wl?nf((sf(n)*(o=rf(r))*sf(e)-sf(r)*(i=rf(n))*sf(t))/(i*o*a)):(n+r)/2}(e,r,o,a),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),n=0),t.point(e=o,r=a),i=u},lineEnd:function(){t.lineEnd(),e=r=NaN},clean:function(){return 2-n}}}),(function(t,n,e,r){var i;if(null==t)i=e*$l,r.point(-Gl,i),r.point(0,i),r.point(Gl,i),r.point(Gl,0),r.point(Gl,-i),r.point(0,-i),r.point(-Gl,-i),r.point(-Gl,0),r.point(-Gl,i);else if(tf(t[0]-n[0])>Wl){var o=t[0]0,i=tf(n)>Wl;function o(t,e){return rf(t)*rf(e)>n}function a(t,e,r){var i=[1,0,0],o=Ff(Of(t),Of(e)),a=zf(o,o),u=o[0],c=a-u*u;if(!c)return!r&&t;var s=n*a/c,l=-n*u/c,f=Ff(i,o),h=jf(i,s);qf(h,jf(o,l));var d=f,p=zf(h,d),g=zf(d,d),v=p*p-g*(zf(h,h)-1);if(!(v<0)){var y=ff(v),m=jf(d,(-p-y)/g);if(qf(m,h),m=Df(m),!r)return m;var _,b=t[0],w=e[0],x=t[1],M=e[1];w0^m[1]<(tf(m[0]-b)Gl^(b<=m[0]&&m[0]<=w)){var k=jf(d,(-p+y)/g);return qf(k,h),[m,Df(k)]}}}function u(n,e){var i=r?t:Gl-t,o=0;return n<-i?o|=1:n>i&&(o|=2),e<-i?o|=4:e>i&&(o|=8),o}return sd(o,(function(t){var n,e,c,s,l;return{lineStart:function(){s=c=!1,l=1},point:function(f,h){var d,p=[f,h],g=o(f,h),v=r?g?0:u(f,h):g?u(f+(f<0?Gl:-Gl),h):0;if(!n&&(s=c=g)&&t.lineStart(),g!==c&&(!(d=a(n,p))||Kh(n,d)||Kh(p,d))&&(p[0]+=Wl,p[1]+=Wl,g=o(p[0],p[1])),g!==c)l=0,g?(t.lineStart(),d=a(p,n),t.point(d[0],d[1])):(d=a(n,p),t.point(d[0],d[1]),t.lineEnd()),n=d;else if(i&&n&&r^g){var y;v&e||!(y=a(p,n,!0))||(l=0,r?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1])))}!g||n&&Kh(n,p)||t.point(p[0],p[1]),n=p,c=g,e=v},lineEnd:function(){c&&t.lineEnd(),n=null},clean:function(){return l|(s&&c)<<1}}}),(function(n,r,i,o){Gh(o,t,e,i,n,r)}),r?[0,-t]:[-Gl,t-Gl])}var pd=1e9,gd=-pd;function vd(t,n,e,r){function i(i,o){return t<=i&&i<=e&&n<=o&&o<=r}function o(i,o,u,s){var l=0,f=0;if(null==i||(l=a(i,u))!==(f=a(o,u))||c(i,o)<0^u>0)do{s.point(0===l||3===l?t:e,l>1?r:n)}while((l=(l+u+4)%4)!==f);else s.point(o[0],o[1])}function a(r,i){return tf(r[0]-t)0?0:3:tf(r[0]-e)0?2:1:tf(r[1]-n)0?1:0:i>0?3:2}function u(t,n){return c(t.x,n.x)}function c(t,n){var e=a(t,1),r=a(n,1);return e!==r?e-r:0===e?n[1]-t[1]:1===e?t[0]-n[0]:2===e?t[1]-n[1]:n[0]-t[0]}return function(a){var c,s,l,f,h,d,p,g,v,y,m,_=a,b=Zh(),w={point:x,lineStart:function(){w.point=M,s&&s.push(l=[]),y=!0,v=!1,p=g=NaN},lineEnd:function(){c&&(M(f,h),d&&v&&b.rejoin(),c.push(b.result())),w.point=x,v&&_.lineEnd()},polygonStart:function(){_=b,c=[],s=[],m=!0},polygonEnd:function(){var n=function(){for(var n=0,e=0,i=s.length;er&&(h-o)*(r-a)>(d-a)*(t-o)&&++n:d<=r&&(h-o)*(r-a)<(d-a)*(t-o)&&--n;return n}(),e=m&&n,i=(c=ud(c)).length;(e||i)&&(a.polygonStart(),e&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&td(c,u,n,o,a),a.polygonEnd()),_=a,c=s=l=null}};function x(t,n){i(t,n)&&_.point(t,n)}function M(o,a){var u=i(o,a);if(s&&l.push([o,a]),y)f=o,h=a,d=u,y=!1,u&&(_.lineStart(),_.point(o,a));else if(u&&v)_.point(o,a);else{var c=[p=Math.max(gd,Math.min(pd,p)),g=Math.max(gd,Math.min(pd,g))],b=[o=Math.max(gd,Math.min(pd,o)),a=Math.max(gd,Math.min(pd,a))];!function(t,n,e,r,i,o){var a,u=t[0],c=t[1],s=0,l=1,f=n[0]-u,h=n[1]-c;if(a=e-u,f||!(a>0)){if(a/=f,f<0){if(a0){if(a>l)return;a>s&&(s=a)}if(a=i-u,f||!(a<0)){if(a/=f,f<0){if(a>l)return;a>s&&(s=a)}else if(f>0){if(a0)){if(a/=h,h<0){if(a0){if(a>l)return;a>s&&(s=a)}if(a=o-c,h||!(a<0)){if(a/=h,h<0){if(a>l)return;a>s&&(s=a)}else if(h>0){if(a0&&(t[0]=u+s*f,t[1]=c+s*h),l<1&&(n[0]=u+l*f,n[1]=c+l*h),!0}}}}}(c,b,t,n,e,r)?u&&(_.lineStart(),_.point(o,a),m=!1):(v||(_.lineStart(),_.point(c[0],c[1])),_.point(b[0],b[1]),u||_.lineEnd(),m=!1)}p=o,g=a,v=u}return w}}function yd(){var t,n,e,r=0,i=0,o=960,a=500;return e={stream:function(e){return t&&n===e?t:t=vd(r,i,o,a)(n=e)},extent:function(u){return arguments.length?(r=+u[0][0],i=+u[0][1],o=+u[1][0],a=+u[1][1],t=n=null,e):[[r,i],[o,a]]}}}var md,_d,bd,wd=Bl(),xd={sphere:vf,point:vf,lineStart:function(){xd.point=Ed,xd.lineEnd=Md},lineEnd:vf,polygonStart:vf,polygonEnd:vf};function Md(){xd.point=xd.lineEnd=vf}function Ed(t,n){md=t*=Jl,_d=sf(n*=Jl),bd=rf(n),xd.point=Nd}function Nd(t,n){t*=Jl;var e=sf(n*=Jl),r=rf(n),i=tf(t-md),o=rf(i),a=r*sf(i),u=bd*e-_d*r*o,c=_d*e+bd*r*o;wd.add(ef(ff(a*a+u*u),c)),md=t,_d=e,bd=r}function kd(t){return wd.reset(),xf(t,xd),+wd}var Td=[null,null],Sd={type:"LineString",coordinates:Td};function Cd(t,n){return Td[0]=t,Td[1]=n,kd(Sd)}var Ad={Feature:function(t,n){return Pd(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++rWl})).map(c)).concat(cd(of(o/d)*d,i,d).filter((function(t){return tf(t%g)>Wl})).map(s))}return y.lines=function(){return m().map((function(t){return{type:"LineString",coordinates:t}}))},y.outline=function(){return{type:"Polygon",coordinates:[l(r).concat(f(a).slice(1),l(e).reverse().slice(1),f(u).reverse().slice(1))]}},y.extent=function(t){return arguments.length?y.extentMajor(t).extentMinor(t):y.extentMinor()},y.extentMajor=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],u=+t[0][1],a=+t[1][1],r>e&&(t=r,r=e,e=t),u>a&&(t=u,u=a,a=t),y.precision(v)):[[r,u],[e,a]]},y.extentMinor=function(e){return arguments.length?(n=+e[0][0],t=+e[1][0],o=+e[0][1],i=+e[1][1],n>t&&(e=n,n=t,t=e),o>i&&(e=o,o=i,i=e),y.precision(v)):[[n,o],[t,i]]},y.step=function(t){return arguments.length?y.stepMajor(t).stepMinor(t):y.stepMinor()},y.stepMajor=function(t){return arguments.length?(p=+t[0],g=+t[1],y):[p,g]},y.stepMinor=function(t){return arguments.length?(h=+t[0],d=+t[1],y):[h,d]},y.precision=function(h){return arguments.length?(v=+h,c=Fd(o,i,90),s=qd(n,t,v),l=Fd(u,a,90),f=qd(r,e,v),y):v},y.extentMajor([[-180,-90+Wl],[180,90-Wl]]).extentMinor([[-180,-80-Wl],[180,80+Wl]])}function Bd(){return jd()()}function Hd(t,n){var e=t[0]*Jl,r=t[1]*Jl,i=n[0]*Jl,o=n[1]*Jl,a=rf(r),u=sf(r),c=rf(o),s=sf(o),l=a*rf(e),f=a*sf(e),h=c*rf(i),d=c*sf(i),p=2*pf(ff(gf(o-r)+a*c*gf(i-e))),g=sf(p),v=p?function(t){var n=sf(t*=p)/g,e=sf(p-t)/g,r=e*l+n*h,i=e*f+n*d,o=e*u+n*s;return[ef(i,r)*Kl,ef(o,ff(r*r+i*i))*Kl]}:function(){return[e*Kl,r*Kl]};return v.distance=p,v}function Yd(t){return t}var Vd,Wd,Xd,Gd,$d=Bl(),Qd=Bl(),Zd={point:vf,lineStart:vf,lineEnd:vf,polygonStart:function(){Zd.lineStart=Kd,Zd.lineEnd=np},polygonEnd:function(){Zd.lineStart=Zd.lineEnd=Zd.point=vf,$d.add(tf(Qd)),Qd.reset()},result:function(){var t=$d/2;return $d.reset(),t}};function Kd(){Zd.point=Jd}function Jd(t,n){Zd.point=tp,Vd=Xd=t,Wd=Gd=n}function tp(t,n){Qd.add(Gd*t-Xd*n),Xd=t,Gd=n}function np(){tp(Vd,Wd)}const ep=Zd;var rp=1/0,ip=rp,op=-rp,ap=op,up={point:function(t,n){top&&(op=t),nap&&(ap=n)},lineStart:vf,lineEnd:vf,polygonStart:vf,polygonEnd:vf,result:function(){var t=[[rp,ip],[op,ap]];return op=ap=-(ip=rp=1/0),t}};const cp=up;var sp,lp,fp,hp,dp=0,pp=0,gp=0,vp=0,yp=0,mp=0,_p=0,bp=0,wp=0,xp={point:Mp,lineStart:Ep,lineEnd:Tp,polygonStart:function(){xp.lineStart=Sp,xp.lineEnd=Cp},polygonEnd:function(){xp.point=Mp,xp.lineStart=Ep,xp.lineEnd=Tp},result:function(){var t=wp?[_p/wp,bp/wp]:mp?[vp/mp,yp/mp]:gp?[dp/gp,pp/gp]:[NaN,NaN];return dp=pp=gp=vp=yp=mp=_p=bp=wp=0,t}};function Mp(t,n){dp+=t,pp+=n,++gp}function Ep(){xp.point=Np}function Np(t,n){xp.point=kp,Mp(fp=t,hp=n)}function kp(t,n){var e=t-fp,r=n-hp,i=ff(e*e+r*r);vp+=i*(fp+t)/2,yp+=i*(hp+n)/2,mp+=i,Mp(fp=t,hp=n)}function Tp(){xp.point=Mp}function Sp(){xp.point=Ap}function Cp(){Rp(sp,lp)}function Ap(t,n){xp.point=Rp,Mp(sp=fp=t,lp=hp=n)}function Rp(t,n){var e=t-fp,r=n-hp,i=ff(e*e+r*r);vp+=i*(fp+t)/2,yp+=i*(hp+n)/2,mp+=i,_p+=(i=hp*t-fp*n)*(fp+t),bp+=i*(hp+n),wp+=3*i,Mp(fp=t,hp=n)}const Pp=xp;function Ip(t){this._context=t}Ip.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,Zl)}},result:vf};var Lp,Up,Dp,Op,zp,Fp=Bl(),qp={point:vf,lineStart:function(){qp.point=jp},lineEnd:function(){Lp&&Bp(Up,Dp),qp.point=vf},polygonStart:function(){Lp=!0},polygonEnd:function(){Lp=null},result:function(){var t=+Fp;return Fp.reset(),t}};function jp(t,n){qp.point=Bp,Up=Op=t,Dp=zp=n}function Bp(t,n){Op-=t,zp-=n,Fp.add(ff(Op*Op+zp*zp)),Op=t,zp=n}const Hp=qp;function Yp(){this._string=[]}function Vp(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function Wp(t,n){var e,r,i=4.5;function o(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),xf(t,e(r))),r.result()}return o.area=function(t){return xf(t,e(ep)),ep.result()},o.measure=function(t){return xf(t,e(Hp)),Hp.result()},o.bounds=function(t){return xf(t,e(cp)),cp.result()},o.centroid=function(t){return xf(t,e(Pp)),Pp.result()},o.projection=function(n){return arguments.length?(e=null==n?(t=null,Yd):(t=n).stream,o):t},o.context=function(t){return arguments.length?(r=null==t?(n=null,new Yp):new Ip(n=t),"function"!=typeof i&&r.pointRadius(i),o):n},o.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),o):i},o.projection(t).context(n)}function Xp(t){return{stream:Gp(t)}}function Gp(t){return function(n){var e=new $p;for(var r in t)e[r]=t[r];return e.stream=n,e}}function $p(){}function Qp(t,n,e){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),xf(e,t.stream(cp)),n(cp.result()),null!=r&&t.clipExtent(r),t}function Zp(t,n,e){return Qp(t,(function(e){var r=n[1][0]-n[0][0],i=n[1][1]-n[0][1],o=Math.min(r/(e[1][0]-e[0][0]),i/(e[1][1]-e[0][1])),a=+n[0][0]+(r-o*(e[1][0]+e[0][0]))/2,u=+n[0][1]+(i-o*(e[1][1]+e[0][1]))/2;t.scale(150*o).translate([a,u])}),e)}function Kp(t,n,e){return Zp(t,[[0,0],n],e)}function Jp(t,n,e){return Qp(t,(function(e){var r=+n,i=r/(e[1][0]-e[0][0]),o=(r-i*(e[1][0]+e[0][0]))/2,a=-i*e[0][1];t.scale(150*i).translate([o,a])}),e)}function tg(t,n,e){return Qp(t,(function(e){var r=+n,i=r/(e[1][1]-e[0][1]),o=-i*e[0][0],a=(r-i*(e[1][1]+e[0][1]))/2;t.scale(150*i).translate([o,a])}),e)}Yp.prototype={_radius:4.5,_circle:Vp(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:null==this._circle&&(this._circle=Vp(this._radius)),this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},$p.prototype={constructor:$p,point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var ng=16,eg=rf(30*Jl);function rg(t,n){return+n?function(t,n){function e(r,i,o,a,u,c,s,l,f,h,d,p,g,v){var y=s-r,m=l-i,_=y*y+m*m;if(_>4*n&&g--){var b=a+h,w=u+d,x=c+p,M=ff(b*b+w*w+x*x),E=pf(x/=M),N=tf(tf(x)-1)n||tf((y*C+m*A)/_-.5)>.3||a*h+u*d+c*p2?t[2]%360*Jl:0,S()):[v*Kl,y*Kl,m*Kl]},N.precision=function(t){return arguments.length?(E=rg(T,M=t*t),C()):ff(M)},N.fitExtent=function(t,n){return Zp(N,t,n)},N.fitSize=function(t,n){return Kp(N,t,n)},N.fitWidth=function(t,n){return Jp(N,t,n)},N.fitHeight=function(t,n){return tg(N,t,n)},function(){return n=t.apply(this,arguments),N.invert=n.invert&&k,S()}}function ug(t){var n=0,e=Gl/3,r=ag(t),i=r(n,e);return i.parallels=function(t){return arguments.length?r(n=t[0]*Jl,e=t[1]*Jl):[n*Kl,e*Kl]},i}function cg(t,n){var e=sf(t),r=(e+sf(n))/2;if(tf(r)=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:a).invert(t)},l.stream=function(e){return t&&n===e?t:(r=[a.stream(n=e),u.stream(e),c.stream(e)],i=r.length,t={point:function(t,n){for(var e=-1;++e0?n<-$l+Wl&&(n=-$l+Wl):n>$l-Wl&&(n=$l-Wl);var e=i/cf(wg(n),r);return[e*sf(r*t),i-e*rf(r*t)]}return o.invert=function(t,n){var e=i-n,o=lf(r)*ff(t*t+e*e);return[ef(t,tf(e))/r*lf(e),2*nf(cf(i/o,1/r))-$l]},o}function Mg(){return ug(xg).scale(109.5).parallels([30,30])}function Eg(t,n){return[t,n]}function Ng(){return og(Eg).scale(152.63)}function kg(t,n){var e=rf(t),r=t===n?sf(t):(e-rf(n))/(n-t),i=e/r+t;if(tf(r)2?t[2]+90:90]):[(t=e())[0],t[1],t[2]-90]},e([0,0,90]).scale(159.155)}function qg(t,n){return t.parent===n.parent?1:2}function jg(t,n){return t+n.x}function Bg(t,n){return Math.max(t,n.y)}function Hg(){var t=qg,n=1,e=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(n){var e=n.children;e?(n.x=function(t){return t.reduce(jg,0)/t.length}(e),n.y=function(t){return 1+t.reduce(Bg,0)}(e)):(n.x=o?a+=t(n,o):0,n.y=0,o=n)}));var u=function(t){for(var n;n=t.children;)t=n[0];return t}(i),c=function(t){for(var n;n=t.children;)t=n[n.length-1];return t}(i),s=u.x-t(u,c)/2,l=c.x+t(c,u)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*n,t.y=(i.y-t.y)*e}:function(t){t.x=(t.x-s)/(l-s)*n,t.y=(1-(i.y?t.y/i.y:1))*e})}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i}function Yg(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function Vg(t,n){var e,r,i,o,a,u=new $g(t),c=+t.value&&(u.value=t.value),s=[u];for(null==n&&(n=Wg);e=s.pop();)if(c&&(e.value=+e.data.value),(i=n(e.data))&&(a=i.length))for(e.children=new Array(a),o=a-1;o>=0;--o)s.push(r=e.children[o]=new $g(i[o])),r.parent=e,r.depth=e.depth+1;return u.eachBefore(Gg)}function Wg(t){return t.children}function Xg(t){t.data=t.data.data}function Gg(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function $g(t){this.data=t,this.depth=this.height=0,this.parent=null}vg.invert=dg((function(t){return t})),mg.invert=function(t,n){return[t,2*nf(af(n))-$l]},Eg.invert=Eg,Sg.invert=dg(nf),Pg.invert=function(t,n){var e,r=n,i=25;do{var o=r*r,a=o*o;r-=e=(r*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-n)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(tf(e)>Wl&&--i>0);return[t/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},Lg.invert=dg(pf),Dg.invert=dg((function(t){return 2*nf(t)})),zg.invert=function(t,n){return[-n,2*nf(af(t))-$l]},$g.prototype=Vg.prototype={constructor:$g,count:function(){return this.eachAfter(Yg)},each:function(t){var n,e,r,i,o=this,a=[o];do{for(n=a.reverse(),a=[];o=n.pop();)if(t(o),e=o.children)for(r=0,i=e.length;r=0;--e)i.push(n[e]);return this},sum:function(t){return this.eachAfter((function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,e=function(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)n=n.parent,r.push(n);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){var t=[];return this.each((function(n){t.push(n)})),t},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(e){e!==t&&n.push({source:e.parent,target:e})})),n},copy:function(){return Vg(this).eachBefore(Xg)}};var Qg=Array.prototype.slice;function Zg(t){for(var n,e,r=0,i=(t=function(t){for(var n,e,r=t.length;r;)e=Math.random()*r--|0,n=t[r],t[r]=t[e],t[e]=n;return t}(Qg.call(t))).length,o=[];r0&&e*e>r*r+i*i}function nv(t,n){for(var e=0;ee*e+r*r}function uv(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,o=(n.y*e.r+e.y*n.r)/r;return i*i+o*o}function cv(t){this._=t,this.next=null,this.previous=null}function sv(t){if(!(i=t.length))return 0;var n,e,r,i,o,a,u,c,s,l,f;if((n=t[0]).x=0,n.y=0,!(i>1))return n.r;if(e=t[1],n.x=-e.r,e.x=n.r,e.y=0,!(i>2))return n.r+e.r;ov(e,n,r=t[2]),n=new cv(n),e=new cv(e),r=new cv(r),n.next=r.previous=e,e.next=n.previous=r,r.next=e.previous=n;t:for(u=3;u0)throw new Error("cycle");return o}return e.id=function(n){return arguments.length?(t=fv(n),e):t},e.parentId=function(t){return arguments.length?(n=fv(t),e):n},e}function Sv(t,n){return t.parent===n.parent?1:2}function Cv(t){var n=t.children;return n?n[0]:t.t}function Av(t){var n=t.children;return n?n[n.length-1]:t.t}function Rv(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function Pv(t,n,e){return t.a.parent===n.parent?t.a:e}function Iv(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}function Lv(){var t=Sv,n=1,e=1,r=null;function i(i){var c=function(t){for(var n,e,r,i,o,a=new Iv(t,0),u=[a];n=u.pop();)if(r=n._.children)for(n.children=new Array(o=r.length),i=o-1;i>=0;--i)u.push(e=n.children[i]=new Iv(r[i],i)),e.parent=n;return(a.parent=new Iv(null,0)).children=[a],a}(i);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)i.eachBefore(u);else{var s=i,l=i,f=i;i.eachBefore((function(t){t.xl.x&&(l=t),t.depth>f.depth&&(f=t)}));var h=s===l?1:t(s,l)/2,d=h-s.x,p=n/(l.x+h+d),g=e/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*g}))}return i}function o(n){var e=n.children,r=n.parent.children,i=n.i?r[n.i-1]:null;if(e){!function(t){for(var n,e=0,r=0,i=t.children,o=i.length;--o>=0;)(n=i[o]).z+=e,n.m+=e,e+=n.s+(r+=n.c)}(n);var o=(e[0].z+e[e.length-1].z)/2;i?(n.z=i.z+t(n._,i._),n.m=n.z-o):n.z=o}else i&&(n.z=i.z+t(n._,i._));n.parent.A=function(n,e,r){if(e){for(var i,o=n,a=n,u=e,c=o.parent.children[0],s=o.m,l=a.m,f=u.m,h=c.m;u=Av(u),o=Cv(o),u&&o;)c=Cv(c),(a=Av(a)).a=n,(i=u.z+f-o.z-s+t(u._,o._))>0&&(Rv(Pv(u,n,r),n,i),s+=i,l+=i),f+=u.m,s+=o.m,h+=c.m,l+=a.m;u&&!Av(a)&&(a.t=u,a.m+=f-l),o&&!Cv(c)&&(c.t=o,c.m+=s-h,r=n)}return r}(n,i,n.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=n,t.y=t.depth*e}return i.separation=function(n){return arguments.length?(t=n,i):t},i.size=function(t){return arguments.length?(r=!1,n=+t[0],e=+t[1],i):r?null:[n,e]},i.nodeSize=function(t){return arguments.length?(r=!0,n=+t[0],e=+t[1],i):r?[n,e]:null},i}function Uv(t,n,e,r,i){for(var o,a=t.children,u=-1,c=a.length,s=t.value&&(i-e)/t.value;++uh&&(h=u),v=l*l*g,(d=Math.max(h/v,v/f))>p){l-=u;break}p=d}y.push(a={value:l,dice:c1?n:1)},e}(Dv);function Fv(){var t=zv,n=!1,e=1,r=1,i=[0],o=hv,a=hv,u=hv,c=hv,s=hv;function l(t){return t.x0=t.y0=0,t.x1=e,t.y1=r,t.eachBefore(f),i=[0],n&&t.eachBefore(_v),t}function f(n){var e=i[n.depth],r=n.x0+e,l=n.y0+e,f=n.x1-e,h=n.y1-e;f=e-1){var l=u[n];return l.x0=i,l.y0=o,l.x1=a,void(l.y1=c)}for(var f=s[n],h=r/2+f,d=n+1,p=e-1;d>>1;s[g]c-o){var m=(i*y+a*v)/r;t(n,d,v,i,o,m,c),t(d,e,y,m,o,a,c)}else{var _=(o*y+c*v)/r;t(n,d,v,i,o,a,_),t(d,e,y,i,_,a,c)}}(0,c,t.value,n,e,r,i)}function jv(t,n,e,r,i){(1&t.depth?Uv:bv)(t,n,e,r,i)}const Bv=function t(n){function e(t,e,r,i,o){if((a=t._squarify)&&a.ratio===n)for(var a,u,c,s,l,f=-1,h=a.length,d=t.value;++f1?n:1)},e}(Dv);function Hv(t,n,e){t.prototype=n.prototype=e,e.constructor=t}function Yv(t,n){var e=Object.create(t.prototype);for(var r in n)e[r]=n[r];return e}function Vv(){}var Wv=.7,Xv=1.4285714285714286,Gv="\\s*([+-]?\\d+)\\s*",$v="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Qv="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Zv=/^#([0-9a-f]{3})$/,Kv=/^#([0-9a-f]{6})$/,Jv=new RegExp("^rgb\\("+[Gv,Gv,Gv]+"\\)$"),ty=new RegExp("^rgb\\("+[Qv,Qv,Qv]+"\\)$"),ny=new RegExp("^rgba\\("+[Gv,Gv,Gv,$v]+"\\)$"),ey=new RegExp("^rgba\\("+[Qv,Qv,Qv,$v]+"\\)$"),ry=new RegExp("^hsl\\("+[$v,Qv,Qv]+"\\)$"),iy=new RegExp("^hsla\\("+[$v,Qv,Qv,$v]+"\\)$"),oy={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 ay(t){var n;return t=(t+"").trim().toLowerCase(),(n=Zv.exec(t))?new fy((n=parseInt(n[1],16))>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):(n=Kv.exec(t))?uy(parseInt(n[1],16)):(n=Jv.exec(t))?new fy(n[1],n[2],n[3],1):(n=ty.exec(t))?new fy(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=ny.exec(t))?cy(n[1],n[2],n[3],n[4]):(n=ey.exec(t))?cy(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=ry.exec(t))?dy(n[1],n[2]/100,n[3]/100,1):(n=iy.exec(t))?dy(n[1],n[2]/100,n[3]/100,n[4]):oy.hasOwnProperty(t)?uy(oy[t]):"transparent"===t?new fy(NaN,NaN,NaN,0):null}function uy(t){return new fy(t>>16&255,t>>8&255,255&t,1)}function cy(t,n,e,r){return r<=0&&(t=n=e=NaN),new fy(t,n,e,r)}function sy(t){return t instanceof Vv||(t=ay(t)),t?new fy((t=t.rgb()).r,t.g,t.b,t.opacity):new fy}function ly(t,n,e,r){return 1===arguments.length?sy(t):new fy(t,n,e,null==r?1:r)}function fy(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function hy(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function dy(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new gy(t,n,e,r)}function py(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof gy)return new gy(t.h,t.s,t.l,t.opacity);if(t instanceof Vv||(t=ay(t)),!t)return new gy;if(t instanceof gy)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e0&&c<1?0:a,new gy(a,u,c,t.opacity)}(t):new gy(t,n,e,null==r?1:r)}function gy(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function vy(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}Hv(Vv,ay,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Hv(fy,ly,Yv(Vv,{brighter:function(t){return t=null==t?Xv:Math.pow(Xv,t),new fy(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Wv:Math.pow(Wv,t),new fy(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+hy(this.r)+hy(this.g)+hy(this.b)},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),Hv(gy,py,Yv(Vv,{brighter:function(t){return t=null==t?Xv:Math.pow(Xv,t),new gy(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Wv:Math.pow(Wv,t),new gy(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new fy(vy(t>=240?t-240:t+120,i,r),vy(t,i,r),vy(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var yy=Math.PI/180,my=180/Math.PI,_y=.96422,by=1,wy=.82521,xy=4/29,My=6/29,Ey=3*My*My,Ny=My*My*My;function ky(t){if(t instanceof Sy)return new Sy(t.l,t.a,t.b,t.opacity);if(t instanceof Ly){if(isNaN(t.h))return new Sy(t.l,0,0,t.opacity);var n=t.h*yy;return new Sy(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof fy||(t=sy(t));var e,r,i=Py(t.r),o=Py(t.g),a=Py(t.b),u=Cy((.2225045*i+.7168786*o+.0606169*a)/by);return i===o&&o===a?e=r=u:(e=Cy((.4360747*i+.3850649*o+.1430804*a)/_y),r=Cy((.0139322*i+.0971045*o+.7141733*a)/wy)),new Sy(116*u-16,500*(e-u),200*(u-r),t.opacity)}function Ty(t,n,e,r){return 1===arguments.length?ky(t):new Sy(t,n,e,null==r?1:r)}function Sy(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function Cy(t){return t>Ny?Math.pow(t,1/3):t/Ey+xy}function Ay(t){return t>My?t*t*t:Ey*(t-xy)}function Ry(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Py(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Iy(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Ly)return new Ly(t.h,t.c,t.l,t.opacity);if(t instanceof Sy||(t=ky(t)),0===t.a&&0===t.b)return new Ly(NaN,0,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*my;return new Ly(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new Ly(t,n,e,null==r?1:r)}function Ly(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}Hv(Sy,Ty,Yv(Vv,{brighter:function(t){return new Sy(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Sy(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return new fy(Ry(3.1338561*(n=_y*Ay(n))-1.6168667*(t=by*Ay(t))-.4906146*(e=wy*Ay(e))),Ry(-.9787684*n+1.9161415*t+.033454*e),Ry(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),Hv(Ly,Iy,Yv(Vv,{brighter:function(t){return new Ly(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Ly(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return ky(this).rgb()}}));var Uy=-.14861,Dy=1.78277,Oy=-.29227,zy=-.90649,Fy=1.97294,qy=Fy*zy,jy=Fy*Dy,By=Dy*Oy-zy*Uy;function Hy(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Yy)return new Yy(t.h,t.s,t.l,t.opacity);t instanceof fy||(t=sy(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(By*r+qy*n-jy*e)/(By+qy-jy),o=r-i,a=(Fy*(e-i)-Oy*o)/zy,u=Math.sqrt(a*a+o*o)/(Fy*i*(1-i)),c=u?Math.atan2(a,o)*my-120:NaN;return new Yy(c<0?c+360:c,u,i,t.opacity)}(t):new Yy(t,n,e,null==r?1:r)}function Yy(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Vy(t,n,e,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*r+a*i)/6}function Wy(t){var n=t.length-1;return function(e){var r=e<=0?e=0:e>=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=r180||e<-180?e-360*Math.round(e/360):e):Gy(isNaN(t)?n:t)}function Zy(t,n){var e=n-t;return e?$y(t,e):Gy(isNaN(t)?n:t)}Hv(Yy,Hy,Yv(Vv,{brighter:function(t){return t=null==t?Xv:Math.pow(Xv,t),new Yy(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Wv:Math.pow(Wv,t),new Yy(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*yy,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new fy(255*(n+e*(Uy*r+Dy*i)),255*(n+e*(Oy*r+zy*i)),255*(n+e*(Fy*r)),this.opacity)}}));const Ky=function t(n){var e=function(t){return 1==(t=+t)?Zy:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):Gy(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=ly(t)).r,(n=ly(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=Zy(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function Jy(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),u=new Array(i);for(e=0;eo&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:im(e,r)})),o=um.lastIndex;return o180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:im(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,a.rotate,u,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:im(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,a.skewX,u,c),function(t,n,e,r,o,a){if(t!==e||n!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:im(t,e)},{i:u-2,x:im(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var n,e=-1,r=c.length;++eqm)if(Math.abs(l*u-c*s)>qm&&i){var h=e-o,d=r-a,p=u*u+c*c,g=h*h+d*d,v=Math.sqrt(p),y=Math.sqrt(f),m=i*Math.tan((zm-Math.acos((p+f-g)/(2*v*y)))/2),_=m/y,b=m/v;Math.abs(_-1)>qm&&(this._+="L"+(t+_*s)+","+(n+_*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>s*d)+","+(this._x1=t+b*u)+","+(this._y1=n+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,r,i,o){t=+t,n=+n;var a=(e=+e)*Math.cos(r),u=e*Math.sin(r),c=t+a,s=n+u,l=1^o,f=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+s:(Math.abs(this._x1-c)>qm||Math.abs(this._y1-s)>qm)&&(this._+="L"+c+","+s),e&&(f<0&&(f=f%Fm+Fm),f>jm?this._+="A"+e+","+e+",0,1,"+l+","+(t-a)+","+(n-u)+"A"+e+","+e+",0,1,"+l+","+(this._x1=c)+","+(this._y1=s):f>qm&&(this._+="A"+e+","+e+",0,"+ +(f>=zm)+","+l+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};const Ym=Hm;function Vm(t){for(var n,e=-1,r=t.length,i=t[r-1],o=0;++e1&&Xm(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function Qm(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n=0;--n)s.push(t[r[o[n]][2]]);for(n=+u;nu!=s>u&&a<(c-e)*(u-r)/(s-r)+e&&(l=!l),c=e,s=r;return l}function Km(t){for(var n,e,r=-1,i=t.length,o=t[i-1],a=o[0],u=o[1],c=0;++r=(o=(g+y)/2))?g=o:y=o,(l=e>=(a=(v+m)/2))?v=a:m=a,i=d,!(d=d[f=l<<1|s]))return i[f]=p,t;if(u=+t._x.call(null,d.data),c=+t._y.call(null,d.data),n===u&&e===c)return p.next=d,i?i[f]=p:t._root=p,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(s=n>=(o=(g+y)/2))?g=o:y=o,(l=e>=(a=(v+m)/2))?v=a:m=a}while((f=l<<1|s)==(h=(c>=a)<<1|u>=o));return i[h]=d,i[f]=p,t}function t_(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i}function n_(t){return t[0]}function e_(t){return t[1]}function r_(t,n,e){var r=new i_(null==n?n_:n,null==e?e_:e,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function i_(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function o_(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var a_=r_.prototype=i_.prototype;a_.copy=function(){var t,n,e=new i_(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return e;if(!r.length)return e._root=o_(r),e;for(t=[{source:r,target:e._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(n=r.source[i])&&(n.length?t.push({source:n,target:r.target[i]=new Array(4)}):r.target[i]=o_(n));return e},a_.add=function(t){var n=+this._x.call(null,t),e=+this._y.call(null,t);return Jm(this.cover(n,e),n,e,t)},a_.addAll=function(t){var n,e,r,i,o=t.length,a=new Array(o),u=new Array(o),c=1/0,s=1/0,l=-1/0,f=-1/0;for(e=0;el&&(l=r),if&&(f=i));for(lt||t>i||r>n||n>o))return this;var a,u,c=i-e,s=this._root;switch(u=(n<(r+o)/2)<<1|t<(e+i)/2){case 0:do{(a=new Array(4))[u]=s,s=a}while(o=r+(c*=2),t>(i=e+c)||n>o);break;case 1:do{(a=new Array(4))[u]=s,s=a}while(o=r+(c*=2),(e=i-c)>t||n>o);break;case 2:do{(a=new Array(4))[u]=s,s=a}while(r=o-(c*=2),t>(i=e+c)||r>n);break;case 3:do{(a=new Array(4))[u]=s,s=a}while(r=o-(c*=2),(e=i-c)>t||r>n)}this._root&&this._root.length&&(this._root=s)}return this._x0=e,this._y0=r,this._x1=i,this._y1=o,this},a_.data=function(){var t=[];return this.visit((function(n){if(!n.length)do{t.push(n.data)}while(n=n.next)})),t},a_.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},a_.find=function(t,n,e){var r,i,o,a,u,c,s,l=this._x0,f=this._y0,h=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new t_(g,l,f,h,d)),null==e?e=1/0:(l=t-e,f=n-e,h=t+e,d=n+e,e*=e);c=p.pop();)if(!(!(g=c.node)||(i=c.x0)>h||(o=c.y0)>d||(a=c.x1)=y)<<1|t>=v)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-s],p[p.length-1-s]=c)}else{var m=t-+this._x.call(null,g.data),_=n-+this._y.call(null,g.data),b=m*m+_*_;if(b=(u=(p+v)/2))?p=u:v=u,(l=a>=(c=(g+y)/2))?g=c:y=c,n=d,!(d=d[f=l<<1|s]))return this;if(!d.length)break;(n[f+1&3]||n[f+2&3]||n[f+3&3])&&(e=n,h=f)}for(;d.data!==t;)if(r=d,!(d=d.next))return this;return(i=d.next)&&delete d.next,r?(i?r.next=i:delete r.next,this):n?(i?n[f]=i:delete n[f],(d=n[0]||n[1]||n[2]||n[3])&&d===(n[3]||n[2]||n[1]||n[0])&&!d.length&&(e?e[h]=d:this._root=d),this):(this._root=i,this)},a_.removeAll=function(t){for(var n=0,e=t.length;n=0;)if((e=t._tasks[r])&&(t._tasks[r]=null,e.abort))try{e.abort()}catch(n){}t._active=NaN,d_(t)}function d_(t){if(!t._active&&t._call){var n=t._data;t._data=void 0,t._call(t._error,n)}}function p_(t){if(null==t)t=1/0;else if(!((t=+t)>=1))throw new Error("invalid concurrency");return new s_(t)}function g_(){return Math.random()}s_.prototype=p_.prototype={constructor:s_,defer:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var n=u_.call(arguments,1);return n.push(t),++this._waiting,this._tasks.push(n),l_(this),this},abort:function(){return null==this._error&&h_(this,new Error("abort")),this},await:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(n,e){t.apply(null,[n].concat(e))},d_(this),this},awaitAll:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=t,d_(this),this}};const v_=function t(n){function e(t,e){return t=null==t?0:+t,e=null==e?1:+e,1===arguments.length?(e=t,t=0):e-=t,function(){return n()*e+t}}return e.source=t,e}(g_),y_=function t(n){function e(t,e){var r,i;return t=null==t?0:+t,e=null==e?1:+e,function(){var o;if(null!=r)o=r,r=null;else do{r=2*n()-1,o=2*n()-1,i=r*r+o*o}while(!i||i>1);return t+e*o*Math.sqrt(-2*Math.log(i)/i)}}return e.source=t,e}(g_),m_=function t(n){function e(){var t=y_.source(n).apply(this,arguments);return function(){return Math.exp(t())}}return e.source=t,e}(g_),__=function t(n){function e(t){return function(){for(var e=0,r=0;r=200&&r<300||304===r){if(i)try{n=i.call(e,c)}catch(t){return void a.call("error",e,t)}else n=c;a.call("load",e,n)}else a.call("error",e,t)}if("undefined"!=typeof XDomainRequest&&!("withCredentials"in c)&&/^(http(s)?:)?\/\//.test(t)&&(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=c.ontimeout=h:c.onreadystatechange=function(t){c.readyState>3&&h(t)},c.onprogress=function(t){a.call("progress",e,t)},e={header:function(t,n){return t=(t+"").toLowerCase(),arguments.length<2?u.get(t):(null==n?u.remove(t):u.set(t,n+""),e)},mimeType:function(t){return arguments.length?(r=null==t?null:t+"",e):r},responseType:function(t){return arguments.length?(o=t,e):o},timeout:function(t){return arguments.length?(f=+t,e):f},user:function(t){return arguments.length<1?s:(s=null==t?null:t+"",e)},password:function(t){return arguments.length<1?l:(l=null==t?null:t+"",e)},response:function(t){return i=t,e},get:function(t,n){return e.send("GET",t,n)},post:function(t,n){return e.send("POST",t,n)},send:function(n,i,h){return c.open(n,t,!0,s,l),null==r||u.has("accept")||u.set("accept",r+",*/*"),c.setRequestHeader&&u.each((function(t,n){c.setRequestHeader(n,t)})),null!=r&&c.overrideMimeType&&c.overrideMimeType(r),null!=o&&(c.responseType=o),f>0&&(c.timeout=f),null==h&&"function"==typeof i&&(h=i,i=null),null!=h&&1===h.length&&(h=function(t){return function(n,e){t(null==n?e:null)}}(h)),null!=h&&e.on("error",h).on("load",(function(t){h(null,t)})),a.call("beforesend",e,c),c.send(null==i?null:i),e},abort:function(){return c.abort(),e},on:function(){var t=a.on.apply(a,arguments);return t===a?e:t}},null!=n){if("function"!=typeof n)throw new Error("invalid callback: "+n);return e.get(n)}return e}function N_(t,n){return function(e,r){var i=E_(e).mimeType(t).response(n);if(null!=r){if("function"!=typeof r)throw new Error("invalid callback: "+r);return i.get(r)}return i}}const k_=N_("text/html",(function(t){return document.createRange().createContextualFragment(t.responseText)})),T_=N_("application/json",(function(t){return JSON.parse(t.responseText)})),S_=N_("text/plain",(function(t){return t.responseText})),C_=N_("application/xml",(function(t){var n=t.responseXML;if(!n)throw new Error("parse error");return n}));var A_=e(2279);function R_(t,n){return function(e,r,i){arguments.length<3&&(i=r,r=null);var o=E_(e).mimeType(t);return o.row=function(t){return arguments.length?o.response(function(t,n){return function(e){return t(e.responseText,n)}}(n,r=t)):r},o.row(r),i?o.get(i):o}}const P_=R_("text/csv",A_.ue),I_=R_("text/tab-separated-values",A_.tJ);function L_(t,n){return tn?1:t>=n?0:NaN}function U_(t){return 1===t.length&&(t=function(t){return function(n,e){return L_(t(n),e)}}(t)),{left:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)<0?r=o+1:i=o}return r},right:function(n,e,r,i){for(null==r&&(r=0),null==i&&(i=n.length);r>>1;t(n[o],e)>0?i=o:r=o+1}return r}}}var D_=U_(L_),O_=D_.right;D_.left;const z_=O_;var F_=Array.prototype,q_=(F_.slice,F_.map,Math.sqrt(50)),j_=Math.sqrt(10),B_=Math.sqrt(2);function H_(t,n,e){var r,i,o,a,u=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n0)for(t=Math.ceil(t/a),n=Math.floor(n/a),o=new Array(i=Math.ceil(n-t+1));++u=0?(o>=q_?10:o>=j_?5:o>=B_?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=q_?10:o>=j_?5:o>=B_?2:1)}function V_(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=q_?i*=10:o>=j_?i*=5:o>=B_&&(i*=2),n=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),a=+e(t[o],o,t);return a+(+e(t[o+1],o+1,t)-a)*(i-o)}}var G_="$";function $_(){}function Q_(t,n){var e=new $_;if(t instanceof $_)t.each((function(t,n){e.set(n,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==n)for(;++i>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):(n=yb.exec(t))?kb(parseInt(n[1],16)):(n=mb.exec(t))?new Ab(n[1],n[2],n[3],1):(n=_b.exec(t))?new Ab(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=bb.exec(t))?Tb(n[1],n[2],n[3],n[4]):(n=wb.exec(t))?Tb(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=xb.exec(t))?Pb(n[1],n[2]/100,n[3]/100,1):(n=Mb.exec(t))?Pb(n[1],n[2]/100,n[3]/100,n[4]):Eb.hasOwnProperty(t)?kb(Eb[t]):"transparent"===t?new Ab(NaN,NaN,NaN,0):null}function kb(t){return new Ab(t>>16&255,t>>8&255,255&t,1)}function Tb(t,n,e,r){return r<=0&&(t=n=e=NaN),new Ab(t,n,e,r)}function Sb(t){return t instanceof lb||(t=Nb(t)),t?new Ab((t=t.rgb()).r,t.g,t.b,t.opacity):new Ab}function Cb(t,n,e,r){return 1===arguments.length?Sb(t):new Ab(t,n,e,null==r?1:r)}function Ab(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function Rb(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Pb(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new Lb(t,n,e,r)}function Ib(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Lb)return new Lb(t.h,t.s,t.l,t.opacity);if(t instanceof lb||(t=Nb(t)),!t)return new Lb;if(t instanceof Lb)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e0&&c<1?0:a,new Lb(a,u,c,t.opacity)}(t):new Lb(t,n,e,null==r?1:r)}function Lb(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function Ub(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}cb(lb,Nb,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),cb(Ab,Cb,sb(lb,{brighter:function(t){return t=null==t?hb:Math.pow(hb,t),new Ab(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?fb:Math.pow(fb,t),new Ab(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+Rb(this.r)+Rb(this.g)+Rb(this.b)},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),cb(Lb,Ib,sb(lb,{brighter:function(t){return t=null==t?hb:Math.pow(hb,t),new Lb(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?fb:Math.pow(fb,t),new Lb(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new Ab(Ub(t>=240?t-240:t+120,i,r),Ub(t,i,r),Ub(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var Db=Math.PI/180,Ob=180/Math.PI,zb=.96422,Fb=1,qb=.82521,jb=4/29,Bb=6/29,Hb=3*Bb*Bb,Yb=Bb*Bb*Bb;function Vb(t){if(t instanceof Wb)return new Wb(t.l,t.a,t.b,t.opacity);if(t instanceof Kb){if(isNaN(t.h))return new Wb(t.l,0,0,t.opacity);var n=t.h*Db;return new Wb(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof Ab||(t=Sb(t));var e,r,i=Qb(t.r),o=Qb(t.g),a=Qb(t.b),u=Xb((.2225045*i+.7168786*o+.0606169*a)/Fb);return i===o&&o===a?e=r=u:(e=Xb((.4360747*i+.3850649*o+.1430804*a)/zb),r=Xb((.0139322*i+.0971045*o+.7141733*a)/qb)),new Wb(116*u-16,500*(e-u),200*(u-r),t.opacity)}function Wb(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function Xb(t){return t>Yb?Math.pow(t,1/3):t/Hb+jb}function Gb(t){return t>Bb?t*t*t:Hb*(t-jb)}function $b(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Qb(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Zb(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof Kb)return new Kb(t.h,t.c,t.l,t.opacity);if(t instanceof Wb||(t=Vb(t)),0===t.a&&0===t.b)return new Kb(NaN,0,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*Ob;return new Kb(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new Kb(t,n,e,null==r?1:r)}function Kb(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}cb(Wb,(function(t,n,e,r){return 1===arguments.length?Vb(t):new Wb(t,n,e,null==r?1:r)}),sb(lb,{brighter:function(t){return new Wb(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Wb(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return new Ab($b(3.1338561*(n=zb*Gb(n))-1.6168667*(t=Fb*Gb(t))-.4906146*(e=qb*Gb(e))),$b(-.9787684*n+1.9161415*t+.033454*e),$b(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),cb(Kb,Zb,sb(lb,{brighter:function(t){return new Kb(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Kb(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return Vb(this).rgb()}}));var Jb=-.14861,tw=1.78277,nw=-.29227,ew=-.90649,rw=1.97294,iw=rw*ew,ow=rw*tw,aw=tw*nw-ew*Jb;function uw(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof cw)return new cw(t.h,t.s,t.l,t.opacity);t instanceof Ab||(t=Sb(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(aw*r+iw*n-ow*e)/(aw+iw-ow),o=r-i,a=(rw*(e-i)-nw*o)/ew,u=Math.sqrt(a*a+o*o)/(rw*i*(1-i)),c=u?Math.atan2(a,o)*Ob-120:NaN;return new cw(c<0?c+360:c,u,i,t.opacity)}(t):new cw(t,n,e,null==r?1:r)}function cw(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function sw(t,n,e,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*r+a*i)/6}function lw(t){return function(){return t}}function fw(t,n){return function(e){return t+e*n}}function hw(t,n){var e=n-t;return e?fw(t,e>180||e<-180?e-360*Math.round(e/360):e):lw(isNaN(t)?n:t)}function dw(t,n){var e=n-t;return e?fw(t,e):lw(isNaN(t)?n:t)}cb(cw,uw,sb(lb,{brighter:function(t){return t=null==t?hb:Math.pow(hb,t),new cw(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?fb:Math.pow(fb,t),new cw(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*Db,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new Ab(255*(n+e*(Jb*r+tw*i)),255*(n+e*(nw*r+ew*i)),255*(n+e*(rw*r)),this.opacity)}}));const pw=function t(n){var e=function(t){return 1==(t=+t)?dw:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):lw(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=Cb(t)).r,(n=Cb(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=dw(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function gw(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),u=new Array(i);for(e=0;e=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=ro&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:mw(e,r)})),o=ww.lastIndex;return o180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:mw(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,a.rotate,u,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:mw(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,a.skewX,u,c),function(t,n,e,r,o,a){if(t!==e||n!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:mw(t,e)},{i:u-2,x:mw(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var n,e=-1,r=c.length;++e2?Bw:jw,r=i=null,l}function l(n){return(r||(r=e(o,a,c?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=n?0:t>=e?1:r(t)}}}(t):t,u)))(+n)}return l.invert=function(t){return(i||(i=e(a,o,qw,c?function(t){return function(n,e){var r=t(n=+n,e=+e);return function(t){return t<=0?n:t>=1?e:r(t)}}}(n):n)))(+t)},l.domain=function(t){return arguments.length?(o=nb.call(t,zw),s()):o.slice()},l.range=function(t){return arguments.length?(a=eb.call(t),s()):a.slice()},l.rangeRound=function(t){return a=eb.call(t),u=Ew,s()},l.clamp=function(t){return arguments.length?(c=!!t,s()):c},l.interpolate=function(t){return arguments.length?(u=t,s()):u},s()}function Vw(t,n){if((e=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var e,r=t.slice(0,e);return[r.length>1?r[0]+r.slice(2):r,+t.slice(e+1)]}function Ww(t){return(t=Vw(Math.abs(t)))?t[1]:NaN}var Xw,Gw=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function $w(t){return new Qw(t)}function Qw(t){if(!(n=Gw.exec(t)))throw new Error("invalid format: "+t);var n;this.fill=n[1]||" ",this.align=n[2]||">",this.sign=n[3]||"-",this.symbol=n[4]||"",this.zero=!!n[5],this.width=n[6]&&+n[6],this.comma=!!n[7],this.precision=n[8]&&+n[8].slice(1),this.trim=!!n[9],this.type=n[10]||""}function Zw(t,n){var e=Vw(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}$w.prototype=Qw.prototype,Qw.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Kw={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return Zw(100*t,n)},r:Zw,s:function(t,n){var e=Vw(t,n);if(!e)return t+"";var r=e[0],i=e[1],o=i-(Xw=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Vw(t,Math.max(0,n+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function Jw(t){return t}var tx,nx,ex,rx=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ix(t){var n=t.domain;return t.ticks=function(t){var e=n();return H_(e[0],e[e.length-1],null==t?10:t)},t.tickFormat=function(t,e){return function(t,n,e){var r,i=t[0],o=t[t.length-1],a=V_(i,o,null==n?10:n);switch((e=$w(null==e?",f":e)).type){case"s":var u=Math.max(Math.abs(i),Math.abs(o));return null!=e.precision||isNaN(r=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ww(n)/3)))-Ww(Math.abs(t)))}(a,u))||(e.precision=r),ex(e,u);case"":case"e":case"g":case"p":case"r":null!=e.precision||isNaN(r=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Ww(n)-Ww(t))+1}(a,Math.max(Math.abs(i),Math.abs(o))))||(e.precision=r-("e"===e.type));break;case"f":case"%":null!=e.precision||isNaN(r=function(t){return Math.max(0,-Ww(Math.abs(t)))}(a))||(e.precision=r-2*("%"===e.type))}return nx(e)}(n(),t,e)},t.nice=function(e){null==e&&(e=10);var r,i=n(),o=0,a=i.length-1,u=i[o],c=i[a];return c0?r=Y_(u=Math.floor(u/r)*r,c=Math.ceil(c/r)*r,e):r<0&&(r=Y_(u=Math.ceil(u*r)/r,c=Math.floor(c*r)/r,e)),r>0?(i[o]=Math.floor(u/r)*r,i[a]=Math.ceil(c/r)*r,n(i)):r<0&&(i[o]=Math.ceil(u*r)/r,i[a]=Math.floor(c*r)/r,n(i)),t},t}function ox(){var t=Yw(qw,mw);return t.copy=function(){return Hw(t,ox())},ix(t)}function ax(){var t=[0,1];function n(t){return+t}return n.invert=n,n.domain=n.range=function(e){return arguments.length?(t=nb.call(e,zw),n):t.slice()},n.copy=function(){return ax().domain(t)},ix(n)}function ux(t,n){var e,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a0){for(;hc)break;g.push(f)}}else for(;h=1;--l)if(!((f=s*l)c)break;g.push(f)}}else g=H_(h,d,Math.min(d-h,p)).map(i);return o?g.reverse():g},t.tickFormat=function(n,o){if(null==o&&(o=10===e?".0e":","),"function"!=typeof o&&(o=nx(o)),n===1/0)return o;null==n&&(n=10);var a=Math.max(1,e*n/t.ticks().length);return function(t){var n=t/i(Math.round(r(t)));return n*e0?e[i-1]:t[0],i=e?[r[e-1],n]:[r[a-1],r[a]]},o.copy=function(){return _x().domain([t,n]).range(i)},ix(o)}function bx(){var t=[.5],n=[0,1],e=1;function r(r){if(r<=r)return n[z_(t,r,0,e)]}return r.domain=function(i){return arguments.length?(t=eb.call(i),e=Math.min(t.length,n.length-1),r):t.slice()},r.range=function(i){return arguments.length?(n=eb.call(i),e=Math.min(t.length,n.length-1),r):n.slice()},r.invertExtent=function(e){var r=n.indexOf(e);return[t[r-1],t[r]]},r.copy=function(){return bx().domain(t).range(n)},r}tx=function(t){var n,e,r=t.grouping&&t.thousands?(n=t.grouping,e=t.thousands,function(t,r){for(var i=t.length,o=[],a=0,u=n[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),o.push(t.substring(i-=u,i+u)),!((c+=u+1)>r));)u=n[a=(a+1)%n.length];return o.reverse().join(e)}):Jw,i=t.currency,o=t.decimal,a=t.numerals?function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(t.numerals):Jw,u=t.percent||"%";function c(t){var n=(t=$w(t)).fill,e=t.align,c=t.sign,s=t.symbol,l=t.zero,f=t.width,h=t.comma,d=t.precision,p=t.trim,g=t.type;"n"===g?(h=!0,g="g"):Kw[g]||(null==d&&(d=12),p=!0,g="g"),(l||"0"===n&&"="===e)&&(l=!0,n="0",e="=");var v="$"===s?i[0]:"#"===s&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",y="$"===s?i[1]:/[%p]/.test(g)?u:"",m=Kw[g],_=/[defgprs%]/.test(g);function b(t){var i,u,s,b=v,w=y;if("c"===g)w=m(t)+w,t="";else{var x=(t=+t)<0;if(t=m(Math.abs(t),d),p&&(t=function(t){t:for(var n,e=t.length,r=1,i=-1;r0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(n+1):t}(t)),x&&0==+t&&(x=!1),b=(x?"("===c?c:"-":"-"===c||"("===c?"":c)+b,w=("s"===g?rx[8+Xw/3]:"")+w+(x&&"("===c?")":""),_)for(i=-1,u=t.length;++i(s=t.charCodeAt(i))||s>57){w=(46===s?o+t.slice(i+1):t.slice(i))+w,t=t.slice(0,i);break}}h&&!l&&(t=r(t,1/0));var M=b.length+t.length+w.length,E=M>1)+b+t+w+E.slice(M);break;default:t=E+b+t+w}return a(t)}return d=null==d?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,d)):Math.max(0,Math.min(20,d)),b.toString=function(){return t+""},b}return{format:c,formatPrefix:function(t,n){var e=c(((t=$w(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Ww(n)/3))),i=Math.pow(10,-r),o=rx[8+r/3];return function(t){return e(i*t)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),nx=tx.format,ex=tx.formatPrefix;var wx=new Date,xx=new Date;function Mx(t,n,e,r){function i(n){return t(n=new Date(+n)),n}return i.floor=i,i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n0))return u;do{u.push(a=new Date(+e)),n(e,o),t(e)}while(a=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(i.count=function(n,r){return wx.setTime(+n),xx.setTime(+r),t(wx),t(xx),Math.floor(e(wx,xx))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var Ex=Mx((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));Ex.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Mx((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):Ex:null};const Nx=Ex;Ex.range;var kx=1e3,Tx=6e4,Sx=36e5,Cx=864e5,Ax=6048e5,Rx=Mx((function(t){t.setTime(Math.floor(t/kx)*kx)}),(function(t,n){t.setTime(+t+n*kx)}),(function(t,n){return(n-t)/kx}),(function(t){return t.getUTCSeconds()}));const Px=Rx;Rx.range;var Ix=Mx((function(t){t.setTime(Math.floor(t/Tx)*Tx)}),(function(t,n){t.setTime(+t+n*Tx)}),(function(t,n){return(n-t)/Tx}),(function(t){return t.getMinutes()}));const Lx=Ix;Ix.range;var Ux=Mx((function(t){var n=t.getTimezoneOffset()*Tx%Sx;n<0&&(n+=Sx),t.setTime(Math.floor((+t-n)/Sx)*Sx+n)}),(function(t,n){t.setTime(+t+n*Sx)}),(function(t,n){return(n-t)/Sx}),(function(t){return t.getHours()}));const Dx=Ux;Ux.range;var Ox=Mx((function(t){t.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Tx)/Cx}),(function(t){return t.getDate()-1}));const zx=Ox;function Fx(t){return Mx((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Tx)/Ax}))}Ox.range;var qx=Fx(0),jx=Fx(1),Bx=Fx(2),Hx=Fx(3),Yx=Fx(4),Vx=Fx(5),Wx=Fx(6),Xx=(qx.range,jx.range,Bx.range,Hx.range,Yx.range,Vx.range,Wx.range,Mx((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})));const Gx=Xx;Xx.range;var $x=Mx((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));$x.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Mx((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null};const Qx=$x;$x.range;var Zx=Mx((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*Tx)}),(function(t,n){return(n-t)/Tx}),(function(t){return t.getUTCMinutes()}));const Kx=Zx;Zx.range;var Jx=Mx((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*Sx)}),(function(t,n){return(n-t)/Sx}),(function(t){return t.getUTCHours()}));const tM=Jx;Jx.range;var nM=Mx((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/Cx}),(function(t){return t.getUTCDate()-1}));const eM=nM;function rM(t){return Mx((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/Ax}))}nM.range;var iM=rM(0),oM=rM(1),aM=rM(2),uM=rM(3),cM=rM(4),sM=rM(5),lM=rM(6),fM=(iM.range,oM.range,aM.range,uM.range,cM.range,sM.range,lM.range,Mx((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})));const hM=fM;fM.range;var dM=Mx((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));dM.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Mx((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null};const pM=dM;function gM(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function vM(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function yM(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}dM.range;var mM,_M,bM,wM,xM={"-":"",_:" ",0:"0"},MM=/^\s*\d+/,EM=/^%/,NM=/[\\^$*+?|[\]().{}]/g;function kM(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),e+r[0].length):-1}function OM(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function zM(t,n,e){var r=MM.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function FM(t,n,e){var r=MM.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function qM(t,n,e){var r=MM.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function jM(t,n,e){var r=MM.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function BM(t,n,e){var r=MM.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function HM(t,n,e){var r=MM.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function YM(t,n,e){var r=MM.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function VM(t,n,e){var r=MM.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function WM(t,n,e){var r=EM.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function XM(t,n,e){var r=MM.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function GM(t,n,e){var r=MM.exec(n.slice(e));return r?(t.Q=1e3*+r[0],e+r[0].length):-1}function $M(t,n){return kM(t.getDate(),n,2)}function QM(t,n){return kM(t.getHours(),n,2)}function ZM(t,n){return kM(t.getHours()%12||12,n,2)}function KM(t,n){return kM(1+zx.count(Qx(t),t),n,3)}function JM(t,n){return kM(t.getMilliseconds(),n,3)}function tE(t,n){return JM(t,n)+"000"}function nE(t,n){return kM(t.getMonth()+1,n,2)}function eE(t,n){return kM(t.getMinutes(),n,2)}function rE(t,n){return kM(t.getSeconds(),n,2)}function iE(t){var n=t.getDay();return 0===n?7:n}function oE(t,n){return kM(qx.count(Qx(t),t),n,2)}function aE(t,n){var e=t.getDay();return t=e>=4||0===e?Yx(t):Yx.ceil(t),kM(Yx.count(Qx(t),t)+(4===Qx(t).getDay()),n,2)}function uE(t){return t.getDay()}function cE(t,n){return kM(jx.count(Qx(t),t),n,2)}function sE(t,n){return kM(t.getFullYear()%100,n,2)}function lE(t,n){return kM(t.getFullYear()%1e4,n,4)}function fE(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+kM(n/60|0,"0",2)+kM(n%60,"0",2)}function hE(t,n){return kM(t.getUTCDate(),n,2)}function dE(t,n){return kM(t.getUTCHours(),n,2)}function pE(t,n){return kM(t.getUTCHours()%12||12,n,2)}function gE(t,n){return kM(1+eM.count(pM(t),t),n,3)}function vE(t,n){return kM(t.getUTCMilliseconds(),n,3)}function yE(t,n){return vE(t,n)+"000"}function mE(t,n){return kM(t.getUTCMonth()+1,n,2)}function _E(t,n){return kM(t.getUTCMinutes(),n,2)}function bE(t,n){return kM(t.getUTCSeconds(),n,2)}function wE(t){var n=t.getUTCDay();return 0===n?7:n}function xE(t,n){return kM(iM.count(pM(t),t),n,2)}function ME(t,n){var e=t.getUTCDay();return t=e>=4||0===e?cM(t):cM.ceil(t),kM(cM.count(pM(t),t)+(4===pM(t).getUTCDay()),n,2)}function EE(t){return t.getUTCDay()}function NE(t,n){return kM(oM.count(pM(t),t),n,2)}function kE(t,n){return kM(t.getUTCFullYear()%100,n,2)}function TE(t,n){return kM(t.getUTCFullYear()%1e4,n,4)}function SE(){return"+0000"}function CE(){return"%"}function AE(t){return+t}function RE(t){return Math.floor(+t/1e3)}mM=function(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,s=SM(i),l=CM(i),f=SM(o),h=CM(o),d=SM(a),p=CM(a),g=SM(u),v=CM(u),y=SM(c),m=CM(c),_={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:$M,e:$M,f:tE,H:QM,I:ZM,j:KM,L:JM,m:nE,M:eE,p:function(t){return i[+(t.getHours()>=12)]},Q:AE,s:RE,S:rE,u:iE,U:oE,V:aE,w:uE,W:cE,x:null,X:null,y:sE,Y:lE,Z:fE,"%":CE},b={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:hE,e:hE,f:yE,H:dE,I:pE,j:gE,L:vE,m:mE,M:_E,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:AE,s:RE,S:bE,u:wE,U:xE,V:ME,w:EE,W:NE,x:null,X:null,y:kE,Y:TE,Z:SE,"%":CE},w={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=f.exec(n.slice(e));return r?(t.w=h[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=y.exec(n.slice(e));return r?(t.m=m[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=v[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,e,r){return E(t,n,e,r)},d:FM,e:FM,f:VM,H:jM,I:jM,j:qM,L:YM,m:zM,M:BM,p:function(t,n,e){var r=s.exec(n.slice(e));return r?(t.p=l[r[0].toLowerCase()],e+r[0].length):-1},Q:XM,s:GM,S:HM,u:RM,U:PM,V:IM,w:AM,W:LM,x:function(t,n,r){return E(t,e,n,r)},X:function(t,n,e){return E(t,r,n,e)},y:DM,Y:UM,Z:OM,"%":WM};function x(t,n){return function(e){var r,i,o,a=[],u=-1,c=0,s=t.length;for(e instanceof Date||(e=new Date(+e));++u53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=vM(yM(o.y))).getUTCDay(),r=i>4||0===i?oM.ceil(r):oM(r),r=eM.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=n(yM(o.y))).getDay(),r=i>4||0===i?jx.ceil(r):jx(r),r=zx.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.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),i="Z"in o?vM(yM(o.y)).getUTCDay():n(yM(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,vM(o)):n(o)}}function E(t,n,e,r){for(var i,o,a=0,u=n.length,c=e.length;a=c)return-1;if(37===(i=n.charCodeAt(a++))){if(i=n.charAt(a++),!(o=w[i in xM?n.charAt(a++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return _.x=x(e,_),_.X=x(r,_),_.c=x(n,_),b.x=x(e,b),b.X=x(r,b),b.c=x(n,b),{format:function(t){var n=x(t+="",_);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",gM);return n.toString=function(){return t},n},utcFormat:function(t){var n=x(t+="",b);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t,vM);return n.toString=function(){return t},n}}}({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"]}),_M=mM.format,mM.parse,bM=mM.utcFormat,wM=mM.utcParse;var PE="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||bM(PE),+new Date("2000-01-01T00:00:00.000Z")||wM(PE);var IE=1e3,LE=60*IE,UE=60*LE,DE=24*UE,OE=7*DE,zE=30*DE,FE=365*DE;function qE(t){return new Date(t)}function jE(t){return t instanceof Date?+t:+new Date(+t)}function BE(t,n,e,r,i,o,a,u,c){var s=Yw(qw,mw),l=s.invert,f=s.domain,h=c(".%L"),d=c(":%S"),p=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),y=c("%b %d"),m=c("%B"),_=c("%Y"),b=[[a,1,IE],[a,5,5*IE],[a,15,15*IE],[a,30,30*IE],[o,1,LE],[o,5,5*LE],[o,15,15*LE],[o,30,30*LE],[i,1,UE],[i,3,3*UE],[i,6,6*UE],[i,12,12*UE],[r,1,DE],[r,2,2*DE],[e,1,OE],[n,1,zE],[n,3,3*zE],[t,1,FE]];function w(u){return(a(u)1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return JE.h=360*t-100,JE.s=1.5-1.5*n,JE.l=.8-.9*n,JE+""}function nN(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}const eN=nN(VE("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var rN=nN(VE("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),iN=nN(VE("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),oN=nN(VE("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function aN(t){var n=0,e=1,r=!1;function i(i){var o=(i-n)/(e-n);return t(r?Math.max(0,Math.min(1,o)):o)}return i.domain=function(t){return arguments.length?(n=+t[0],e=+t[1],i):[n,e]},i.clamp=function(t){return arguments.length?(r=!!t,i):r},i.interpolator=function(n){return arguments.length?(t=n,i):t},i.copy=function(){return aN(t).domain([n,e]).clamp(r)},ix(i)}var uN="http://www.w3.org/1999/xhtml";const cN={svg:"http://www.w3.org/2000/svg",xhtml:uN,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function sN(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),cN.hasOwnProperty(n)?{space:cN[n],local:t}:t}function lN(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===uN&&n.documentElement.namespaceURI===uN?n.createElement(t):n.createElementNS(e,t)}}function fN(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function hN(t){var n=sN(t);return(n.local?fN:lN)(n)}function dN(){}function pN(t){return null==t?dN:function(){return this.querySelector(t)}}function gN(){return[]}function vN(t){return null==t?gN:function(){return this.querySelectorAll(t)}}var yN=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var mN=document.documentElement;if(!mN.matches){var _N=mN.webkitMatchesSelector||mN.msMatchesSelector||mN.mozMatchesSelector||mN.oMatchesSelector;yN=function(t){return function(){return _N.call(this,t)}}}}const bN=yN;function wN(t){return new Array(t.length)}function xN(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}xN.prototype={constructor:xN,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var MN="$";function EN(t,n,e,r,i,o){for(var a,u=0,c=n.length,s=o.length;un?1:t>=n?0:NaN}function TN(t){return function(){this.removeAttribute(t)}}function SN(t){return function(){this.removeAttributeNS(t.space,t.local)}}function CN(t,n){return function(){this.setAttribute(t,n)}}function AN(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function RN(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function PN(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function IN(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function LN(t){return function(){this.style.removeProperty(t)}}function UN(t,n,e){return function(){this.style.setProperty(t,n,e)}}function DN(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function ON(t,n){return t.style.getPropertyValue(n)||IN(t).getComputedStyle(t,null).getPropertyValue(n)}function zN(t){return function(){delete this[t]}}function FN(t,n){return function(){this[t]=n}}function qN(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function jN(t){return t.trim().split(/^|\s+/)}function BN(t){return t.classList||new HN(t)}function HN(t){this._node=t,this._names=jN(t.getAttribute("class")||"")}function YN(t,n){for(var e=BN(t),r=-1,i=n.length;++r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var uk={},ck=null;function sk(t,n,e){return t=lk(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function lk(t,n,e){return function(r){var i=ck;ck=r;try{t.call(this,this.__data__,n,e)}finally{ck=i}}}function fk(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r=w&&(w=b+1);!(_=y[w])&&++w=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=kN);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o1?this.each((null==n?LN:"function"==typeof n?DN:UN)(t,n,null==e?"":e)):ON(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?zN:"function"==typeof n?qN:FN)(t,n)):this.node()[t]},classed:function(t,n){var e=jN(t+"");if(arguments.length<2){for(var r=BN(this.node()),i=-1,o=e.length;++i=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(u=n?hk:fk,null==e&&(e=!1),r=0;rLk)if(Math.abs(l*u-c*s)>Lk&&i){var h=e-o,d=r-a,p=u*u+c*c,g=h*h+d*d,v=Math.sqrt(p),y=Math.sqrt(f),m=i*Math.tan((Pk-Math.acos((p+f-g)/(2*v*y)))/2),_=m/y,b=m/v;Math.abs(_-1)>Lk&&(this._+="L"+(t+_*s)+","+(n+_*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>s*d)+","+(this._x1=t+b*u)+","+(this._y1=n+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,r,i,o){t=+t,n=+n;var a=(e=+e)*Math.cos(r),u=e*Math.sin(r),c=t+a,s=n+u,l=1^o,f=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+c+","+s:(Math.abs(this._x1-c)>Lk||Math.abs(this._y1-s)>Lk)&&(this._+="L"+c+","+s),e&&(f<0&&(f=f%Ik+Ik),f>Uk?this._+="A"+e+","+e+",0,1,"+l+","+(t-a)+","+(n-u)+"A"+e+","+e+",0,1,"+l+","+(this._x1=c)+","+(this._y1=s):f>Lk&&(this._+="A"+e+","+e+",0,"+ +(f>=Pk)+","+l+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};const zk=Ok;function Fk(t){return function(){return t}}var qk=Math.abs,jk=Math.atan2,Bk=Math.cos,Hk=Math.max,Yk=Math.min,Vk=Math.sin,Wk=Math.sqrt,Xk=1e-12,Gk=Math.PI,$k=Gk/2,Qk=2*Gk;function Zk(t){return t>=1?$k:t<=-1?-$k:Math.asin(t)}function Kk(t){return t.innerRadius}function Jk(t){return t.outerRadius}function tT(t){return t.startAngle}function nT(t){return t.endAngle}function eT(t){return t&&t.padAngle}function rT(t,n,e,r,i,o,a){var u=t-e,c=n-r,s=(a?o:-o)/Wk(u*u+c*c),l=s*c,f=-s*u,h=t+l,d=n+f,p=e+l,g=r+f,v=(h+p)/2,y=(d+g)/2,m=p-h,_=g-d,b=m*m+_*_,w=i-o,x=h*g-p*d,M=(_<0?-1:1)*Wk(Hk(0,w*w*b-x*x)),E=(x*_-m*M)/b,N=(-x*m-_*M)/b,k=(x*_+m*M)/b,T=(-x*m+_*M)/b,S=E-v,C=N-y,A=k-v,R=T-y;return S*S+C*C>A*A+R*R&&(E=k,N=T),{cx:E,cy:N,x01:-l,y01:-f,x11:E*(i/w-1),y11:N*(i/w-1)}}function iT(){var t=Kk,n=Jk,e=Fk(0),r=null,i=tT,o=nT,a=eT,u=null;function c(){var c,s,l,f=+t.apply(this,arguments),h=+n.apply(this,arguments),d=i.apply(this,arguments)-$k,p=o.apply(this,arguments)-$k,g=qk(p-d),v=p>d;if(u||(u=c=zk()),hXk)if(g>Qk-Xk)u.moveTo(h*Bk(d),h*Vk(d)),u.arc(0,0,h,d,p,!v),f>Xk&&(u.moveTo(f*Bk(p),f*Vk(p)),u.arc(0,0,f,p,d,v));else{var y,m,_=d,b=p,w=d,x=p,M=g,E=g,N=a.apply(this,arguments)/2,k=N>Xk&&(r?+r.apply(this,arguments):Wk(f*f+h*h)),T=Yk(qk(h-f)/2,+e.apply(this,arguments)),S=T,C=T;if(k>Xk){var A=Zk(k/f*Vk(N)),R=Zk(k/h*Vk(N));(M-=2*A)>Xk?(w+=A*=v?1:-1,x-=A):(M=0,w=x=(d+p)/2),(E-=2*R)>Xk?(_+=R*=v?1:-1,b-=R):(E=0,_=b=(d+p)/2)}var P=h*Bk(_),I=h*Vk(_),L=f*Bk(x),U=f*Vk(x);if(T>Xk){var D=h*Bk(b),O=h*Vk(b),z=f*Bk(w),F=f*Vk(w);if(gXk?function(t,n,e,r,i,o,a,u){var c=e-t,s=r-n,l=a-i,f=u-o,h=(l*(n-o)-f*(t-i))/(f*c-l*s);return[t+h*c,n+h*s]}(P,I,z,F,D,O,L,U):[L,U],j=P-q[0],B=I-q[1],H=D-q[0],Y=O-q[1],V=1/Vk(((l=(j*H+B*Y)/(Wk(j*j+B*B)*Wk(H*H+Y*Y)))>1?0:l<-1?Gk:Math.acos(l))/2),W=Wk(q[0]*q[0]+q[1]*q[1]);S=Yk(T,(f-W)/(V-1)),C=Yk(T,(h-W)/(V+1))}}E>Xk?C>Xk?(y=rT(z,F,P,I,h,C,v),m=rT(D,O,L,U,h,C,v),u.moveTo(y.cx+y.x01,y.cy+y.y01),CXk&&M>Xk?S>Xk?(y=rT(L,U,D,O,f,-S,v),m=rT(P,I,z,F,f,-S,v),u.lineTo(y.cx+y.x01,y.cy+y.y01),S=l;--f)u.point(v[f],y[f]);u.lineEnd(),u.areaEnd()}g&&(v[s]=+t(h,s,c),y[s]=+e(h,s,c),u.point(n?+n(h,s,c):v[s],r?+r(h,s,c):y[s]))}if(d)return u=null,d+""||null}function s(){return sT().defined(i).curve(a).context(o)}return c.x=function(e){return arguments.length?(t="function"==typeof e?e:Fk(+e),n=null,c):t},c.x0=function(n){return arguments.length?(t="function"==typeof n?n:Fk(+n),c):t},c.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:Fk(+t),c):n},c.y=function(t){return arguments.length?(e="function"==typeof t?t:Fk(+t),r=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:Fk(+t),c):e},c.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Fk(+t),c):r},c.lineX0=c.lineY0=function(){return s().x(t).y(e)},c.lineY1=function(){return s().x(t).y(r)},c.lineX1=function(){return s().x(n).y(e)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:Fk(!!t),c):i},c.curve=function(t){return arguments.length?(a=t,null!=o&&(u=a(o)),c):a},c.context=function(t){return arguments.length?(null==t?o=u=null:u=a(o=t),c):o},c}function fT(t,n){return nt?1:n>=t?0:NaN}function hT(t){return t}function dT(){var t=hT,n=fT,e=null,r=Fk(0),i=Fk(Qk),o=Fk(0);function a(a){var u,c,s,l,f,h=a.length,d=0,p=new Array(h),g=new Array(h),v=+r.apply(this,arguments),y=Math.min(Qk,Math.max(-Qk,i.apply(this,arguments)-v)),m=Math.min(Math.abs(y)/h,o.apply(this,arguments)),_=m*(y<0?-1:1);for(u=0;u0&&(d+=f);for(null!=n?p.sort((function(t,e){return n(g[t],g[e])})):null!=e&&p.sort((function(t,n){return e(a[t],a[n])})),u=0,s=d?(y-h*_)/d:0;u0?f*s:0)+_,g[c]={data:a[c],index:u,value:f,startAngle:v,endAngle:l,padAngle:m};return g}return a.value=function(n){return arguments.length?(t="function"==typeof n?n:Fk(+n),a):t},a.sortValues=function(t){return arguments.length?(n=t,e=null,a):n},a.sort=function(t){return arguments.length?(e=t,n=null,a):e},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Fk(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Fk(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Fk(+t),a):o},a}oT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var pT=vT(aT);function gT(t){this._curve=t}function vT(t){function n(n){return new gT(t(n))}return n._curve=t,n}function yT(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?n(vT(t)):n()._curve},t}function mT(){return yT(sT().curve(pT))}function _T(){var t=lT().curve(pT),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return yT(e())},delete t.lineX0,t.lineEndAngle=function(){return yT(r())},delete t.lineX1,t.lineInnerRadius=function(){return yT(i())},delete t.lineY0,t.lineOuterRadius=function(){return yT(o())},delete t.lineY1,t.curve=function(t){return arguments.length?n(vT(t)):n()._curve},t}function bT(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}gT.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};var wT=Array.prototype.slice;function xT(t){return t.source}function MT(t){return t.target}function ET(t){var n=xT,e=MT,r=uT,i=cT,o=null;function a(){var a,u=wT.call(arguments),c=n.apply(this,u),s=e.apply(this,u);if(o||(o=a=zk()),t(o,+r.apply(this,(u[0]=c,u)),+i.apply(this,u),+r.apply(this,(u[0]=s,u)),+i.apply(this,u)),a)return o=null,a+""||null}return a.source=function(t){return arguments.length?(n=t,a):n},a.target=function(t){return arguments.length?(e=t,a):e},a.x=function(t){return arguments.length?(r="function"==typeof t?t:Fk(+t),a):r},a.y=function(t){return arguments.length?(i="function"==typeof t?t:Fk(+t),a):i},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}function NT(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n=(n+r)/2,e,n,i,r,i)}function kT(t,n,e,r,i){t.moveTo(n,e),t.bezierCurveTo(n,e=(e+i)/2,r,e,r,i)}function TT(t,n,e,r,i){var o=bT(n,e),a=bT(n,e=(e+i)/2),u=bT(r,e),c=bT(r,i);t.moveTo(o[0],o[1]),t.bezierCurveTo(a[0],a[1],u[0],u[1],c[0],c[1])}function ST(){return ET(NT)}function CT(){return ET(kT)}function AT(){var t=ET(TT);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const RT={draw:function(t,n){var e=Math.sqrt(n/Gk);t.moveTo(e,0),t.arc(0,0,e,0,Qk)}},PT={draw:function(t,n){var e=Math.sqrt(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}};var IT=Math.sqrt(1/3),LT=2*IT;const UT={draw:function(t,n){var e=Math.sqrt(n/LT),r=e*IT;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}};var DT=Math.sin(Gk/10)/Math.sin(7*Gk/10),OT=Math.sin(Qk/10)*DT,zT=-Math.cos(Qk/10)*DT;const FT={draw:function(t,n){var e=Math.sqrt(.8908130915292852*n),r=OT*e,i=zT*e;t.moveTo(0,-e),t.lineTo(r,i);for(var o=1;o<5;++o){var a=Qk*o/5,u=Math.cos(a),c=Math.sin(a);t.lineTo(c*e,-u*e),t.lineTo(u*r-c*i,c*r+u*i)}t.closePath()}},qT={draw:function(t,n){var e=Math.sqrt(n),r=-e/2;t.rect(r,r,e,e)}};var jT=Math.sqrt(3);const BT={draw:function(t,n){var e=-Math.sqrt(n/(3*jT));t.moveTo(0,2*e),t.lineTo(-jT*e,-e),t.lineTo(jT*e,-e),t.closePath()}};var HT=-.5,YT=Math.sqrt(3)/2,VT=1/Math.sqrt(12),WT=3*(VT/2+1);const XT={draw:function(t,n){var e=Math.sqrt(n/WT),r=e/2,i=e*VT,o=r,a=e*VT+e,u=-o,c=a;t.moveTo(r,i),t.lineTo(o,a),t.lineTo(u,c),t.lineTo(HT*r-YT*i,YT*r+HT*i),t.lineTo(HT*o-YT*a,YT*o+HT*a),t.lineTo(HT*u-YT*c,YT*u+HT*c),t.lineTo(HT*r+YT*i,HT*i-YT*r),t.lineTo(HT*o+YT*a,HT*a-YT*o),t.lineTo(HT*u+YT*c,HT*c-YT*u),t.closePath()}};var GT=[RT,PT,UT,qT,FT,BT,XT];function $T(){var t=Fk(RT),n=Fk(64),e=null;function r(){var r;if(e||(e=r=zk()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),r)return e=null,r+""||null}return r.type=function(n){return arguments.length?(t="function"==typeof n?n:Fk(n),r):t},r.size=function(t){return arguments.length?(n="function"==typeof t?t:Fk(+t),r):n},r.context=function(t){return arguments.length?(e=null==t?null:t,r):e},r}function QT(){}function ZT(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function KT(t){this._context=t}function JT(t){return new KT(t)}function tS(t){this._context=t}function nS(t){return new tS(t)}function eS(t){this._context=t}function rS(t){return new eS(t)}function iS(t,n){this._basis=new KT(t),this._beta=n}KT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ZT(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ZT(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},tS.prototype={areaStart:QT,areaEnd:QT,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:ZT(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},eS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:ZT(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},iS.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var r,i=t[0],o=n[0],a=t[e]-i,u=n[e]-o,c=-1;++c<=e;)r=c/e,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*a),this._beta*n[c]+(1-this._beta)*(o+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};const oS=function t(n){function e(t){return 1===n?new KT(t):new iS(t,n)}return e.beta=function(n){return t(+n)},e}(.85);function aS(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function uS(t,n){this._context=t,this._k=(1-n)/6}uS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:aS(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:aS(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const cS=function t(n){function e(t){return new uS(t,n)}return e.tension=function(n){return t(+n)},e}(0);function sS(t,n){this._context=t,this._k=(1-n)/6}sS.prototype={areaStart:QT,areaEnd:QT,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:aS(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const lS=function t(n){function e(t){return new sS(t,n)}return e.tension=function(n){return t(+n)},e}(0);function fS(t,n){this._context=t,this._k=(1-n)/6}fS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:aS(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const hS=function t(n){function e(t){return new fS(t,n)}return e.tension=function(n){return t(+n)},e}(0);function dS(t,n,e){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>Xk){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>Xk){var s=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*s+t._x1*t._l23_2a-n*t._l12_2a)/l,a=(a*s+t._y1*t._l23_2a-e*t._l12_2a)/l}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function pS(t,n){this._context=t,this._alpha=n}pS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:dS(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const gS=function t(n){function e(t){return n?new pS(t,n):new uS(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function vS(t,n){this._context=t,this._alpha=n}vS.prototype={areaStart:QT,areaEnd:QT,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:dS(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const yS=function t(n){function e(t){return n?new vS(t,n):new sS(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function mS(t,n){this._context=t,this._alpha=n}mS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:dS(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const _S=function t(n){function e(t){return n?new mS(t,n):new fS(t,0)}return e.alpha=function(n){return t(+n)},e}(.5);function bS(t){this._context=t}function wS(t){return new bS(t)}function xS(t){return t<0?-1:1}function MS(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(e-t._y1)/(i||r<0&&-0),u=(o*i+a*r)/(r+i);return(xS(o)+xS(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function ES(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function NS(t,n,e){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,i+u*n,o-u,a-u*e,o,a)}function kS(t){this._context=t}function TS(t){this._context=new SS(t)}function SS(t){this._context=t}function CS(t){return new kS(t)}function AS(t){return new TS(t)}function RS(t){this._context=t}function PS(t){var n,e,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],n=1;n=0;--n)i[n]=(a[n]-i[n+1])/o[n];for(o[r-1]=(t[r]+i[r-1])/2,n=0;n1)for(var e,r,i,o=1,a=t[n[0]],u=a.length;o=0;)e[n]=n;return e}function qS(t,n){return t[n]}function jS(){var t=Fk([]),n=FS,e=zS,r=qS;function i(i){var o,a,u=t.apply(this,arguments),c=i.length,s=u.length,l=new Array(s);for(o=0;o0){for(var e,r,i,o=0,a=t[0].length;o1)for(var e,r,i,o,a,u,c=0,s=t[n[0]].length;c=0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):r[0]=o}function YS(t,n){if((e=t.length)>0){for(var e,r=0,i=t[n[0]],o=i.length;r0&&(r=(e=t[n[0]]).length)>0){for(var e,r,i,o=0,a=1;a=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var ZS=new Date,KS=new Date;function JS(t,n,e,r){function i(n){return t(n=new Date(+n)),n}return i.floor=i,i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n0))return u;do{u.push(a=new Date(+e)),n(e,o),t(e)}while(a=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(i.count=function(n,r){return ZS.setTime(+n),KS.setTime(+r),t(ZS),t(KS),Math.floor(e(ZS,KS))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var tC=JS((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));tC.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?JS((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):tC:null};const nC=tC;var eC=tC.range,rC=1e3,iC=6e4,oC=36e5,aC=864e5,uC=6048e5,cC=JS((function(t){t.setTime(Math.floor(t/rC)*rC)}),(function(t,n){t.setTime(+t+n*rC)}),(function(t,n){return(n-t)/rC}),(function(t){return t.getUTCSeconds()}));const sC=cC;var lC=cC.range,fC=JS((function(t){t.setTime(Math.floor(t/iC)*iC)}),(function(t,n){t.setTime(+t+n*iC)}),(function(t,n){return(n-t)/iC}),(function(t){return t.getMinutes()}));const hC=fC;var dC=fC.range,pC=JS((function(t){var n=t.getTimezoneOffset()*iC%oC;n<0&&(n+=oC),t.setTime(Math.floor((+t-n)/oC)*oC+n)}),(function(t,n){t.setTime(+t+n*oC)}),(function(t,n){return(n-t)/oC}),(function(t){return t.getHours()}));const gC=pC;var vC=pC.range,yC=JS((function(t){t.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*iC)/aC}),(function(t){return t.getDate()-1}));const mC=yC;var _C=yC.range;function bC(t){return JS((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*iC)/uC}))}var wC=bC(0),xC=bC(1),MC=bC(2),EC=bC(3),NC=bC(4),kC=bC(5),TC=bC(6),SC=wC.range,CC=xC.range,AC=MC.range,RC=EC.range,PC=NC.range,IC=kC.range,LC=TC.range,UC=JS((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));const DC=UC;var OC=UC.range,zC=JS((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));zC.every=function(t){return isFinite(t=Math.floor(t))&&t>0?JS((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null};const FC=zC;var qC=zC.range,jC=JS((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*iC)}),(function(t,n){return(n-t)/iC}),(function(t){return t.getUTCMinutes()}));const BC=jC;var HC=jC.range,YC=JS((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*oC)}),(function(t,n){return(n-t)/oC}),(function(t){return t.getUTCHours()}));const VC=YC;var WC=YC.range,XC=JS((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/aC}),(function(t){return t.getUTCDate()-1}));const GC=XC;var $C=XC.range;function QC(t){return JS((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/uC}))}var ZC=QC(0),KC=QC(1),JC=QC(2),tA=QC(3),nA=QC(4),eA=QC(5),rA=QC(6),iA=ZC.range,oA=KC.range,aA=JC.range,uA=tA.range,cA=nA.range,sA=eA.range,lA=rA.range,fA=JS((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));const hA=fA;var dA=fA.range,pA=JS((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));pA.every=function(t){return isFinite(t=Math.floor(t))&&t>0?JS((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null};const gA=pA;var vA=pA.range,yA=new Date,mA=new Date;function _A(t,n,e,r){function i(n){return t(n=new Date(+n)),n}return i.floor=i,i.ceil=function(e){return t(e=new Date(e-1)),n(e,1),t(e),e},i.round=function(t){var n=i(t),e=i.ceil(t);return t-n0))return u;do{u.push(a=new Date(+e)),n(e,o),t(e)}while(a=n)for(;t(n),!e(n);)n.setTime(n-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;n(t,-1),!e(t););else for(;--r>=0;)for(;n(t,1),!e(t););}))},e&&(i.count=function(n,r){return yA.setTime(+n),mA.setTime(+r),t(yA),t(mA),Math.floor(e(yA,mA))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(n){return r(n)%t==0}:function(n){return i.count(0,n)%t==0}):i:null}),i}var bA=_A((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));bA.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?_A((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,e){n.setTime(+n+e*t)}),(function(n,e){return(e-n)/t})):bA:null},bA.range;var wA=1e3,xA=6e4,MA=36e5,EA=864e5,NA=6048e5,kA=_A((function(t){t.setTime(Math.floor(t/wA)*wA)}),(function(t,n){t.setTime(+t+n*wA)}),(function(t,n){return(n-t)/wA}),(function(t){return t.getUTCSeconds()}));kA.range;var TA=_A((function(t){t.setTime(Math.floor(t/xA)*xA)}),(function(t,n){t.setTime(+t+n*xA)}),(function(t,n){return(n-t)/xA}),(function(t){return t.getMinutes()}));TA.range;var SA=_A((function(t){var n=t.getTimezoneOffset()*xA%MA;n<0&&(n+=MA),t.setTime(Math.floor((+t-n)/MA)*MA+n)}),(function(t,n){t.setTime(+t+n*MA)}),(function(t,n){return(n-t)/MA}),(function(t){return t.getHours()}));SA.range;var CA=_A((function(t){t.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*xA)/EA}),(function(t){return t.getDate()-1}));const AA=CA;function RA(t){return _A((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*xA)/NA}))}CA.range;var PA=RA(0),IA=RA(1),LA=RA(2),UA=RA(3),DA=RA(4),OA=RA(5),zA=RA(6),FA=(PA.range,IA.range,LA.range,UA.range,DA.range,OA.range,zA.range,_A((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})));FA.range;var qA=_A((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));qA.every=function(t){return isFinite(t=Math.floor(t))&&t>0?_A((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,e){n.setFullYear(n.getFullYear()+e*t)})):null};const jA=qA;qA.range;var BA=_A((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*xA)}),(function(t,n){return(n-t)/xA}),(function(t){return t.getUTCMinutes()}));BA.range;var HA=_A((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*MA)}),(function(t,n){return(n-t)/MA}),(function(t){return t.getUTCHours()}));HA.range;var YA=_A((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/EA}),(function(t){return t.getUTCDate()-1}));const VA=YA;function WA(t){return _A((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/NA}))}YA.range;var XA=WA(0),GA=WA(1),$A=WA(2),QA=WA(3),ZA=WA(4),KA=WA(5),JA=WA(6),tR=(XA.range,GA.range,$A.range,QA.range,ZA.range,KA.range,JA.range,_A((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})));tR.range;var nR=_A((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));nR.every=function(t){return isFinite(t=Math.floor(t))&&t>0?_A((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)})):null};const eR=nR;function rR(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function iR(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function oR(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function aR(t){var n=t.dateTime,e=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,u=t.months,c=t.shortMonths,s=mR(i),l=_R(i),f=mR(o),h=_R(o),d=mR(a),p=_R(a),g=mR(u),v=_R(u),y=mR(c),m=_R(c),_={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:FR,e:FR,f:YR,H:qR,I:jR,j:BR,L:HR,m:VR,M:WR,p:function(t){return i[+(t.getHours()>=12)]},Q:bP,s:wP,S:XR,u:GR,U:$R,V:QR,w:ZR,W:KR,x:null,X:null,y:JR,Y:tP,Z:nP,"%":_P},b={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:eP,e:eP,f:uP,H:rP,I:iP,j:oP,L:aP,m:cP,M:sP,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:bP,s:wP,S:lP,u:fP,U:hP,V:dP,w:pP,W:gP,x:null,X:null,y:vP,Y:yP,Z:mP,"%":_P},w={a:function(t,n,e){var r=d.exec(n.slice(e));return r?(t.w=p[r[0].toLowerCase()],e+r[0].length):-1},A:function(t,n,e){var r=f.exec(n.slice(e));return r?(t.w=h[r[0].toLowerCase()],e+r[0].length):-1},b:function(t,n,e){var r=y.exec(n.slice(e));return r?(t.m=m[r[0].toLowerCase()],e+r[0].length):-1},B:function(t,n,e){var r=g.exec(n.slice(e));return r?(t.m=v[r[0].toLowerCase()],e+r[0].length):-1},c:function(t,e,r){return E(t,n,e,r)},d:CR,e:CR,f:UR,H:RR,I:RR,j:AR,L:LR,m:SR,M:PR,p:function(t,n,e){var r=s.exec(n.slice(e));return r?(t.p=l[r[0].toLowerCase()],e+r[0].length):-1},Q:OR,s:zR,S:IR,u:wR,U:xR,V:MR,w:bR,W:ER,x:function(t,n,r){return E(t,e,n,r)},X:function(t,n,e){return E(t,r,n,e)},y:kR,Y:NR,Z:TR,"%":DR};function x(t,n){return function(e){var r,i,o,a=[],u=-1,c=0,s=t.length;for(e instanceof Date||(e=new Date(+e));++u53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=iR(oR(o.y))).getUTCDay(),r=i>4||0===i?GA.ceil(r):GA(r),r=VA.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=n(oR(o.y))).getDay(),r=i>4||0===i?IA.ceil(r):IA(r),r=AA.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.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),i="Z"in o?iR(oR(o.y)).getUTCDay():n(oR(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,iR(o)):n(o)}}function E(t,n,e,r){for(var i,o,a=0,u=n.length,c=e.length;a=c)return-1;if(37===(i=n.charCodeAt(a++))){if(i=n.charAt(a++),!(o=w[i in hR?n.charAt(a++):i])||(r=o(t,e,r))<0)return-1}else if(i!=e.charCodeAt(r++))return-1}return r}return _.x=x(e,_),_.X=x(r,_),_.c=x(n,_),b.x=x(e,b),b.X=x(r,b),b.c=x(n,b),{format:function(t){var n=x(t+="",_);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",rR);return n.toString=function(){return t},n},utcFormat:function(t){var n=x(t+="",b);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t,iR);return n.toString=function(){return t},n}}}nR.range;var uR,cR,sR,lR,fR,hR={"-":"",_:" ",0:"0"},dR=/^\s*\d+/,pR=/^%/,gR=/[\\^$*+?|[\]().{}]/g;function vR(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o68?1900:2e3),e+r[0].length):-1}function TR(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function SR(t,n,e){var r=dR.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function CR(t,n,e){var r=dR.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function AR(t,n,e){var r=dR.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function RR(t,n,e){var r=dR.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function PR(t,n,e){var r=dR.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function IR(t,n,e){var r=dR.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function LR(t,n,e){var r=dR.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function UR(t,n,e){var r=dR.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function DR(t,n,e){var r=pR.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function OR(t,n,e){var r=dR.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function zR(t,n,e){var r=dR.exec(n.slice(e));return r?(t.Q=1e3*+r[0],e+r[0].length):-1}function FR(t,n){return vR(t.getDate(),n,2)}function qR(t,n){return vR(t.getHours(),n,2)}function jR(t,n){return vR(t.getHours()%12||12,n,2)}function BR(t,n){return vR(1+AA.count(jA(t),t),n,3)}function HR(t,n){return vR(t.getMilliseconds(),n,3)}function YR(t,n){return HR(t,n)+"000"}function VR(t,n){return vR(t.getMonth()+1,n,2)}function WR(t,n){return vR(t.getMinutes(),n,2)}function XR(t,n){return vR(t.getSeconds(),n,2)}function GR(t){var n=t.getDay();return 0===n?7:n}function $R(t,n){return vR(PA.count(jA(t),t),n,2)}function QR(t,n){var e=t.getDay();return t=e>=4||0===e?DA(t):DA.ceil(t),vR(DA.count(jA(t),t)+(4===jA(t).getDay()),n,2)}function ZR(t){return t.getDay()}function KR(t,n){return vR(IA.count(jA(t),t),n,2)}function JR(t,n){return vR(t.getFullYear()%100,n,2)}function tP(t,n){return vR(t.getFullYear()%1e4,n,4)}function nP(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+vR(n/60|0,"0",2)+vR(n%60,"0",2)}function eP(t,n){return vR(t.getUTCDate(),n,2)}function rP(t,n){return vR(t.getUTCHours(),n,2)}function iP(t,n){return vR(t.getUTCHours()%12||12,n,2)}function oP(t,n){return vR(1+VA.count(eR(t),t),n,3)}function aP(t,n){return vR(t.getUTCMilliseconds(),n,3)}function uP(t,n){return aP(t,n)+"000"}function cP(t,n){return vR(t.getUTCMonth()+1,n,2)}function sP(t,n){return vR(t.getUTCMinutes(),n,2)}function lP(t,n){return vR(t.getUTCSeconds(),n,2)}function fP(t){var n=t.getUTCDay();return 0===n?7:n}function hP(t,n){return vR(XA.count(eR(t),t),n,2)}function dP(t,n){var e=t.getUTCDay();return t=e>=4||0===e?ZA(t):ZA.ceil(t),vR(ZA.count(eR(t),t)+(4===eR(t).getUTCDay()),n,2)}function pP(t){return t.getUTCDay()}function gP(t,n){return vR(GA.count(eR(t),t),n,2)}function vP(t,n){return vR(t.getUTCFullYear()%100,n,2)}function yP(t,n){return vR(t.getUTCFullYear()%1e4,n,4)}function mP(){return"+0000"}function _P(){return"%"}function bP(t){return+t}function wP(t){return Math.floor(+t/1e3)}function xP(t){return uR=aR(t),cR=uR.format,sR=uR.parse,lR=uR.utcFormat,fR=uR.utcParse,uR}xP({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"]});var MP="%Y-%m-%dT%H:%M:%S.%LZ";const EP=Date.prototype.toISOString?function(t){return t.toISOString()}:lR(MP),NP=+new Date("2000-01-01T00:00:00.000Z")?function(t){var n=new Date(t);return isNaN(n)?null:n}:fR(MP);var kP,TP,SP=0,CP=0,AP=0,RP=1e3,PP=0,IP=0,LP=0,UP="object"==typeof performance&&performance.now?performance:Date,DP="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function OP(){return IP||(DP(zP),IP=UP.now()+LP)}function zP(){IP=0}function FP(){this._call=this._time=this._next=null}function qP(t,n,e){var r=new FP;return r.restart(t,n,e),r}function jP(){OP(),++SP;for(var t,n=kP;n;)(t=IP-n._time)>=0&&n._call.call(null,t),n=n._next;--SP}function BP(){IP=(PP=UP.now())+LP,SP=CP=0;try{jP()}finally{SP=0,function(){for(var t,n,e=kP,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:kP=n);TP=t,YP(r)}(),IP=0}}function HP(){var t=UP.now(),n=t-PP;n>RP&&(LP-=n,PP=t)}function YP(t){SP||(CP&&(CP=clearTimeout(CP)),t-IP>24?(t<1/0&&(CP=setTimeout(BP,t-UP.now()-LP)),AP&&(AP=clearInterval(AP))):(AP||(PP=UP.now(),AP=setInterval(HP,RP)),SP=1,DP(BP)))}function VP(t,n,e){var r=new FP;return n=null==n?0:+n,r.restart((function(e){r.stop(),t(e+n)}),n,e),r}function WP(t,n,e){var r=new FP,i=n;return null==n?(r.restart(t,n,e),r):(n=+n,e=null==e?OP():+e,r.restart((function o(a){a+=i,r.restart(o,i+=n,e),t(a)}),n,e),r)}FP.prototype=qP.prototype={constructor:FP,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?OP():+e)+(null==n?0:+n),this._next||TP===this||(TP?TP._next=this:kP=this,TP=this),this._call=t,this._time=e,YP()},stop:function(){this._call&&(this._call=null,this._time=1/0,YP())}};var XP="http://www.w3.org/1999/xhtml";const GP={svg:"http://www.w3.org/2000/svg",xhtml:XP,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function $P(t){var n=t+="",e=n.indexOf(":");return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),GP.hasOwnProperty(n)?{space:GP[n],local:t}:t}function QP(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===XP&&n.documentElement.namespaceURI===XP?n.createElement(t):n.createElementNS(e,t)}}function ZP(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function KP(t){var n=$P(t);return(n.local?ZP:QP)(n)}function JP(){}function tI(t){return null==t?JP:function(){return this.querySelector(t)}}function nI(){return[]}function eI(t){return null==t?nI:function(){return this.querySelectorAll(t)}}var rI=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var iI=document.documentElement;if(!iI.matches){var oI=iI.webkitMatchesSelector||iI.msMatchesSelector||iI.mozMatchesSelector||iI.oMatchesSelector;rI=function(t){return function(){return oI.call(this,t)}}}}const aI=rI;function uI(t){return new Array(t.length)}function cI(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}cI.prototype={constructor:cI,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var sI="$";function lI(t,n,e,r,i,o){for(var a,u=0,c=n.length,s=o.length;un?1:t>=n?0:NaN}function dI(t){return function(){this.removeAttribute(t)}}function pI(t){return function(){this.removeAttributeNS(t.space,t.local)}}function gI(t,n){return function(){this.setAttribute(t,n)}}function vI(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function yI(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function mI(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function _I(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function bI(t){return function(){this.style.removeProperty(t)}}function wI(t,n,e){return function(){this.style.setProperty(t,n,e)}}function xI(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function MI(t,n){return t.style.getPropertyValue(n)||_I(t).getComputedStyle(t,null).getPropertyValue(n)}function EI(t){return function(){delete this[t]}}function NI(t,n){return function(){this[t]=n}}function kI(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function TI(t){return t.trim().split(/^|\s+/)}function SI(t){return t.classList||new CI(t)}function CI(t){this._node=t,this._names=TI(t.getAttribute("class")||"")}function AI(t,n){for(var e=SI(t),r=-1,i=n.length;++r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var XI={},GI=null;function $I(t,n,e){return t=QI(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function QI(t,n,e){return function(r){var i=GI;GI=r;try{t.call(this,this.__data__,n,e)}finally{GI=i}}}function ZI(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r=w&&(w=b+1);!(_=y[w])&&++w=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=hI);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o1?this.each((null==n?bI:"function"==typeof n?xI:wI)(t,n,null==e?"":e)):MI(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?EI:"function"==typeof n?kI:NI)(t,n)):this.node()[t]},classed:function(t,n){var e=TI(t+"");if(arguments.length<2){for(var r=SI(this.node()),i=-1,o=e.length;++i=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(u=n?KI:ZI,null==e&&(e=!1),r=0;r=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))),a=-1,u=o.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++a0)for(var e,r,i=new Array(e),o=0;o=0&&n._call.call(null,t),n=n._next;--vL}()}finally{vL=0,function(){for(var t,n,e=pL,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:pL=n);gL=t,RL(r)}(),wL=0}}function AL(){var t=ML.now(),n=t-bL;n>_L&&(xL-=n,bL=t)}function RL(t){vL||(yL&&(yL=clearTimeout(yL)),t-wL>24?(t<1/0&&(yL=setTimeout(CL,t-ML.now()-xL)),mL&&(mL=clearInterval(mL))):(mL||(bL=ML.now(),mL=setInterval(AL,_L)),vL=1,EL(CL)))}function PL(t,n,e){var r=new TL;return n=null==n?0:+n,r.restart((function(e){r.stop(),t(e+n)}),n,e),r}TL.prototype=SL.prototype={constructor:TL,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?NL():+e)+(null==n?0:+n),this._next||gL===this||(gL?gL._next=this:pL=this,gL=this),this._call=t,this._time=e,RL()},stop:function(){this._call&&(this._call=null,this._time=1/0,RL())}};var IL=dL("start","end","interrupt"),LL=[],UL=0,DL=1,OL=2,zL=3,FL=4,qL=5,jL=6;function BL(t,n,e,r,i,o){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(c){var s,l,f,h;if(e.state!==DL)return u();for(s in i)if((h=i[s]).name===e.name){if(h.state===zL)return PL(o);h.state===FL?(h.state=jL,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[s]):+sUL)throw new Error("too late; already scheduled");return e}function YL(t,n){var e=VL(t,n);if(e.state>OL)throw new Error("too late; already started");return e}function VL(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function WL(t,n){var e,r,i,o=t.__transition,a=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>OL&&e.state>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):(n=eU.exec(t))?fU(parseInt(n[1],16)):(n=rU.exec(t))?new gU(n[1],n[2],n[3],1):(n=iU.exec(t))?new gU(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=oU.exec(t))?hU(n[1],n[2],n[3],n[4]):(n=aU.exec(t))?hU(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=uU.exec(t))?yU(n[1],n[2]/100,n[3]/100,1):(n=cU.exec(t))?yU(n[1],n[2]/100,n[3]/100,n[4]):sU.hasOwnProperty(t)?fU(sU[t]):"transparent"===t?new gU(NaN,NaN,NaN,0):null}function fU(t){return new gU(t>>16&255,t>>8&255,255&t,1)}function hU(t,n,e,r){return r<=0&&(t=n=e=NaN),new gU(t,n,e,r)}function dU(t){return t instanceof $L||(t=lU(t)),t?new gU((t=t.rgb()).r,t.g,t.b,t.opacity):new gU}function pU(t,n,e,r){return 1===arguments.length?dU(t):new gU(t,n,e,null==r?1:r)}function gU(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function vU(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function yU(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new _U(t,n,e,r)}function mU(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof _U)return new _U(t.h,t.s,t.l,t.opacity);if(t instanceof $L||(t=lU(t)),!t)return new _U;if(t instanceof _U)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e0&&c<1?0:a,new _U(a,u,c,t.opacity)}(t):new _U(t,n,e,null==r?1:r)}function _U(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function bU(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}XL($L,lU,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),XL(gU,pU,GL($L,{brighter:function(t){return t=null==t?ZL:Math.pow(ZL,t),new gU(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?QL:Math.pow(QL,t),new gU(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+vU(this.r)+vU(this.g)+vU(this.b)},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),XL(_U,mU,GL($L,{brighter:function(t){return t=null==t?ZL:Math.pow(ZL,t),new _U(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?QL:Math.pow(QL,t),new _U(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new gU(bU(t>=240?t-240:t+120,i,r),bU(t,i,r),bU(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var wU=Math.PI/180,xU=180/Math.PI,MU=.96422,EU=1,NU=.82521,kU=4/29,TU=6/29,SU=3*TU*TU,CU=TU*TU*TU;function AU(t){if(t instanceof RU)return new RU(t.l,t.a,t.b,t.opacity);if(t instanceof OU){if(isNaN(t.h))return new RU(t.l,0,0,t.opacity);var n=t.h*wU;return new RU(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof gU||(t=dU(t));var e,r,i=UU(t.r),o=UU(t.g),a=UU(t.b),u=PU((.2225045*i+.7168786*o+.0606169*a)/EU);return i===o&&o===a?e=r=u:(e=PU((.4360747*i+.3850649*o+.1430804*a)/MU),r=PU((.0139322*i+.0971045*o+.7141733*a)/NU)),new RU(116*u-16,500*(e-u),200*(u-r),t.opacity)}function RU(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function PU(t){return t>CU?Math.pow(t,1/3):t/SU+kU}function IU(t){return t>TU?t*t*t:SU*(t-kU)}function LU(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function UU(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function DU(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof OU)return new OU(t.h,t.c,t.l,t.opacity);if(t instanceof RU||(t=AU(t)),0===t.a&&0===t.b)return new OU(NaN,0,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*xU;return new OU(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new OU(t,n,e,null==r?1:r)}function OU(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}XL(RU,(function(t,n,e,r){return 1===arguments.length?AU(t):new RU(t,n,e,null==r?1:r)}),GL($L,{brighter:function(t){return new RU(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new RU(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return new gU(LU(3.1338561*(n=MU*IU(n))-1.6168667*(t=EU*IU(t))-.4906146*(e=NU*IU(e))),LU(-.9787684*n+1.9161415*t+.033454*e),LU(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),XL(OU,DU,GL($L,{brighter:function(t){return new OU(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new OU(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return AU(this).rgb()}}));var zU=-.14861,FU=1.78277,qU=-.29227,jU=-.90649,BU=1.97294,HU=BU*jU,YU=BU*FU,VU=FU*qU-jU*zU;function WU(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof XU)return new XU(t.h,t.s,t.l,t.opacity);t instanceof gU||(t=dU(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(VU*r+HU*n-YU*e)/(VU+HU-YU),o=r-i,a=(BU*(e-i)-qU*o)/jU,u=Math.sqrt(a*a+o*o)/(BU*i*(1-i)),c=u?Math.atan2(a,o)*xU-120:NaN;return new XU(c<0?c+360:c,u,i,t.opacity)}(t):new XU(t,n,e,null==r?1:r)}function XU(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function GU(t,n,e,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*r+a*i)/6}function $U(t){return function(){return t}}function QU(t,n){return function(e){return t+e*n}}function ZU(t,n){var e=n-t;return e?QU(t,e>180||e<-180?e-360*Math.round(e/360):e):$U(isNaN(t)?n:t)}function KU(t,n){var e=n-t;return e?QU(t,e):$U(isNaN(t)?n:t)}XL(XU,WU,GL($L,{brighter:function(t){return t=null==t?ZL:Math.pow(ZL,t),new XU(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?QL:Math.pow(QL,t),new XU(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*wU,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new gU(255*(n+e*(zU*r+FU*i)),255*(n+e*(qU*r+jU*i)),255*(n+e*(BU*r)),this.opacity)}}));const JU=function t(n){var e=function(t){return 1==(t=+t)?KU:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):$U(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=pU(t)).r,(n=pU(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=KU(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function tD(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),u=new Array(i);for(e=0;e=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=ro&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:nD(e,r)})),o=rD.lastIndex;return o180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:nD(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,a.rotate,u,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:nD(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,a.skewX,u,c),function(t,n,e,r,o,a){if(t!==e||n!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:nD(t,e)},{i:u-2,x:nD(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var n,e=-1,r=c.length;++e=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?HL:YL;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(n,e),a.on=i}}(e,t,n))},attr:function(t,n){var e=$P(t),r="transform"===e?pD:wD;return this.attrTween(t,"function"==typeof n?(e.local?TD:kD)(e,r,bD(this,"attr."+t,n)):null==n?(e.local?MD:xD)(e):(e.local?ND:ED)(e,r,n+""))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=$P(t);return this.tween(e,(r.local?SD:CD)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?dD:wD;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=MI(this,t),a=(this.style.removeProperty(t),MI(this,t));return o===a?null:o===e&&a===r?i:i=n(e=o,r=a)}}(t,r)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof n?function(t,n,e){var r,i,o;return function(){var a=MI(this,t),u=e(this);return null==u&&(this.style.removeProperty(t),u=MI(this,t)),a===u?null:a===r&&u===i?o:o=n(r=a,i=u)}}(t,r,bD(this,"style."+t,n)):function(t,n,e){var r,i;return function(){var o=MI(this,t);return o===e?null:o===r?i:i=n(r=o,e)}}(t,r,n+""),e)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,function(t,n,e){function r(){var r=this,i=n.apply(r,arguments);return i&&function(n){r.style.setProperty(t,i(n),e)}}return r._value=n,r}(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(bD(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},remove:function(){return this.on("end.remove",function(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=VL(this.node(),e).tween,o=0,a=i.length;oDL&&e.name===n)return new DD([[t]],YD,n,+r);return null}function WD(t){return function(){return t}}function XD(t){return t[0]}function GD(t){return t[1]}function $D(){this._=null}function QD(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function ZD(t,n){var e=n,r=n.R,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.R=r.L,e.R&&(e.R.U=e),r.L=e}function KD(t,n){var e=n,r=n.L,i=e.U;i?i.L===e?i.L=r:i.R=r:t._=r,r.U=i,e.U=r,e.L=r.R,e.L&&(e.L.U=e),r.R=e}function JD(t){for(;t.L;)t=t.L;return t}$D.prototype={constructor:$D,insert:function(t,n){var e,r,i;if(t){if(n.P=t,n.N=t.N,t.N&&(t.N.P=n),t.N=n,t.R){for(t=t.R;t.L;)t=t.L;t.L=n}else t.R=n;e=t}else this._?(t=JD(this._),n.P=null,n.N=t,t.P=t.L=n,e=t):(n.P=n.N=null,this._=n,e=null);for(n.L=n.R=null,n.U=e,n.C=!0,t=n;e&&e.C;)e===(r=e.U).L?(i=r.R)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.R&&(ZD(this,e),e=(t=e).U),e.C=!1,r.C=!0,KD(this,r)):(i=r.L)&&i.C?(e.C=i.C=!1,r.C=!0,t=r):(t===e.L&&(KD(this,e),e=(t=e).U),e.C=!1,r.C=!0,ZD(this,r)),e=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var n,e,r,i=t.U,o=t.L,a=t.R;if(e=o?a?JD(a):o:a,i?i.L===t?i.L=e:i.R=e:this._=e,o&&a?(r=e.C,e.C=t.C,e.L=o,o.U=e,e!==a?(i=e.U,e.U=t.U,t=e.R,i.L=t,e.R=a,a.U=e):(e.U=i,i=e,t=e.R)):(r=t.C,t=e),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((n=i.R).C&&(n.C=!1,i.C=!0,ZD(this,i),n=i.R),n.L&&n.L.C||n.R&&n.R.C){n.R&&n.R.C||(n.L.C=!1,n.C=!0,KD(this,n),n=i.R),n.C=i.C,i.C=n.R.C=!1,ZD(this,i),t=this._;break}}else if((n=i.L).C&&(n.C=!1,i.C=!0,KD(this,i),n=i.L),n.L&&n.L.C||n.R&&n.R.C){n.L&&n.L.C||(n.R.C=!1,n.C=!0,ZD(this,n),n=i.L),n.C=i.C,i.C=n.L.C=!1,KD(this,i),t=this._;break}n.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};const tO=$D;function nO(t,n,e,r){var i=[null,null],o=NO.push(i)-1;return i.left=t,i.right=n,e&&rO(i,t,n,e),r&&rO(i,n,t,r),MO[t.index].halfedges.push(o),MO[n.index].halfedges.push(o),i}function eO(t,n,e){var r=[n,e];return r.left=t,r}function rO(t,n,e,r){t[0]||t[1]?t.left===e?t[1]=r:t[0]=r:(t[0]=r,t.left=n,t.right=e)}function iO(t,n,e,r,i){var o,a=t[0],u=t[1],c=a[0],s=a[1],l=0,f=1,h=u[0]-c,d=u[1]-s;if(o=n-c,h||!(o>0)){if(o/=h,h<0){if(o0){if(o>f)return;o>l&&(l=o)}if(o=r-c,h||!(o<0)){if(o/=h,h<0){if(o>f)return;o>l&&(l=o)}else if(h>0){if(o0)){if(o/=d,d<0){if(o0){if(o>f)return;o>l&&(l=o)}if(o=i-s,d||!(o<0)){if(o/=d,d<0){if(o>f)return;o>l&&(l=o)}else if(d>0){if(o0||f<1)||(l>0&&(t[0]=[c+l*h,s+l*d]),f<1&&(t[1]=[c+f*h,s+f*d]),!0)}}}}}function oO(t,n,e,r,i){var o=t[1];if(o)return!0;var a,u,c=t[0],s=t.left,l=t.right,f=s[0],h=s[1],d=l[0],p=l[1],g=(f+d)/2,v=(h+p)/2;if(p===h){if(g=r)return;if(f>d){if(c){if(c[1]>=i)return}else c=[g,e];o=[g,i]}else{if(c){if(c[1]1)if(f>d){if(c){if(c[1]>=i)return}else c=[(e-u)/a,e];o=[(i-u)/a,i]}else{if(c){if(c[1]=r)return}else c=[n,a*n+u];o=[r,a*r+u]}else{if(c){if(c[0]=-TO)){var d=c*c+s*s,p=l*l+f*f,g=(f*d-s*p)/h,v=(c*p-l*d)/h,y=lO.pop()||new fO;y.arc=t,y.site=i,y.x=g+a,y.y=(y.cy=v+u)+Math.sqrt(g*g+v*v),t.circle=y;for(var m=null,_=EO._;_;)if(y.y<_.y||y.y===_.y&&y.x<=_.x){if(!_.L){m=_.P;break}_=_.L}else{if(!_.R){m=_;break}_=_.R}EO.insert(m,y),m||(sO=y)}}}}function dO(t){var n=t.circle;n&&(n.P||(sO=n.N),EO.remove(n),lO.push(n),QD(n),t.circle=null)}var pO=[];function gO(){QD(this),this.edge=this.site=this.circle=null}function vO(t){var n=pO.pop()||new gO;return n.site=t,n}function yO(t){dO(t),xO.remove(t),pO.push(t),QD(t)}function mO(t){var n=t.circle,e=n.x,r=n.cy,i=[e,r],o=t.P,a=t.N,u=[t];yO(t);for(var c=o;c.circle&&Math.abs(e-c.circle.x)kO)u=u.L;else{if(!((i=o-wO(u,a))>kO)){r>-kO?(n=u.P,e=u):i>-kO?(n=u,e=u.N):n=e=u;break}if(!u.R){n=u;break}u=u.R}!function(t){MO[t.index]={site:t,halfedges:[]}}(t);var c=vO(t);if(xO.insert(n,c),n||e){if(n===e)return dO(n),e=vO(n.site),xO.insert(c,e),c.edge=e.edge=nO(n.site,c.site),hO(n),void hO(e);if(e){dO(n),dO(e);var s=n.site,l=s[0],f=s[1],h=t[0]-l,d=t[1]-f,p=e.site,g=p[0]-l,v=p[1]-f,y=2*(h*v-d*g),m=h*h+d*d,_=g*g+v*v,b=[(v*m-d*_)/y+l,(h*_-g*m)/y+f];rO(e.edge,s,p,b),c.edge=nO(s,t,null,b),e.edge=nO(t,p,null,b),hO(n),hO(e)}else c.edge=nO(n.site,c.site)}}function bO(t,n){var e=t.site,r=e[0],i=e[1],o=i-n;if(!o)return r;var a=t.P;if(!a)return-1/0;var u=(e=a.site)[0],c=e[1],s=c-n;if(!s)return u;var l=u-r,f=1/o-1/s,h=l/s;return f?(-h+Math.sqrt(h*h-2*f*(l*l/(-2*s)-c+s/2+i-o/2)))/f+r:(r+u)/2}function wO(t,n){var e=t.N;if(e)return bO(e,n);var r=t.site;return r[1]===n?r[0]:1/0}var xO,MO,EO,NO,kO=1e-6,TO=1e-12;function SO(t,n,e){return(t[0]-e[0])*(n[1]-t[1])-(t[0]-n[0])*(e[1]-t[1])}function CO(t,n){return n[1]-t[1]||n[0]-t[0]}function AO(t,n){var e,r,i,o=t.sort(CO).pop();for(NO=[],MO=new Array(t.length),xO=new tO,EO=new tO;;)if(i=sO,o&&(!i||o[1]kO||Math.abs(i[0][1]-i[1][1])>kO)||delete NO[o]}(a,u,c,s),function(t,n,e,r){var i,o,a,u,c,s,l,f,h,d,p,g,v=MO.length,y=!0;for(i=0;ikO||Math.abs(g-h)>kO)&&(c.splice(u,0,NO.push(eO(a,d,Math.abs(p-t)kO?[t,Math.abs(f-t)kO?[Math.abs(h-r)kO?[e,Math.abs(f-e)kO?[Math.abs(h-n)=u)return null;var c=t-i.site[0],s=n-i.site[1],l=c*c+s*s;do{i=o.cells[r=a],a=null,i.halfedges.forEach((function(e){var r=o.edges[e],u=r.left;if(u!==i.site&&u||(u=r.right)){var c=t-u[0],s=n-u[1],f=c*c+s*s;f=0&&(n=t.slice(e+1),t=t.slice(0,e)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))),a=-1,u=o.length;if(!(arguments.length<2)){if(null!=n&&"function"!=typeof n)throw new Error("invalid callback: "+n);for(;++a0)for(var e,r,i=new Array(e),o=0;o=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),FO.hasOwnProperty(n)?{space:FO[n],local:t}:t}function jO(t){return function(){var n=this.ownerDocument,e=this.namespaceURI;return e===zO&&n.documentElement.namespaceURI===zO?n.createElement(t):n.createElementNS(e,t)}}function BO(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function HO(t){var n=qO(t);return(n.local?BO:jO)(n)}function YO(){}function VO(t){return null==t?YO:function(){return this.querySelector(t)}}function WO(){return[]}function XO(t){return null==t?WO:function(){return this.querySelectorAll(t)}}var GO=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var $O=document.documentElement;if(!$O.matches){var QO=$O.webkitMatchesSelector||$O.msMatchesSelector||$O.mozMatchesSelector||$O.oMatchesSelector;GO=function(t){return function(){return QO.call(this,t)}}}}const ZO=GO;function KO(t){return new Array(t.length)}function JO(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}JO.prototype={constructor:JO,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var tz="$";function nz(t,n,e,r,i,o){for(var a,u=0,c=n.length,s=o.length;un?1:t>=n?0:NaN}function iz(t){return function(){this.removeAttribute(t)}}function oz(t){return function(){this.removeAttributeNS(t.space,t.local)}}function az(t,n){return function(){this.setAttribute(t,n)}}function uz(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function cz(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}function sz(t,n){return function(){var e=n.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}function lz(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function fz(t){return function(){this.style.removeProperty(t)}}function hz(t,n,e){return function(){this.style.setProperty(t,n,e)}}function dz(t,n,e){return function(){var r=n.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,e)}}function pz(t,n){return t.style.getPropertyValue(n)||lz(t).getComputedStyle(t,null).getPropertyValue(n)}function gz(t){return function(){delete this[t]}}function vz(t,n){return function(){this[t]=n}}function yz(t,n){return function(){var e=n.apply(this,arguments);null==e?delete this[t]:this[t]=e}}function mz(t){return t.trim().split(/^|\s+/)}function _z(t){return t.classList||new bz(t)}function bz(t){this._node=t,this._names=mz(t.getAttribute("class")||"")}function wz(t,n){for(var e=_z(t),r=-1,i=n.length;++r=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var zz={},Fz=null;function qz(t,n,e){return t=jz(t,n,e),function(n){var e=n.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||t.call(this,n)}}function jz(t,n,e){return function(r){var i=Fz;Fz=r;try{t.call(this,this.__data__,n,e)}finally{Fz=i}}}function Bz(t){return function(){var n=this.__on;if(n){for(var e,r=0,i=-1,o=n.length;r=w&&(w=b+1);!(_=y[w])&&++w=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function n(n,e){return n&&e?t(n.__data__,e.__data__):!n-!e}t||(t=rz);for(var e=this._groups,r=e.length,i=new Array(r),o=0;o1?this.each((null==n?fz:"function"==typeof n?dz:hz)(t,n,null==e?"":e)):pz(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?gz:"function"==typeof n?yz:vz)(t,n)):this.node()[t]},classed:function(t,n){var e=mz(t+"");if(arguments.length<2){for(var r=_z(this.node()),i=-1,o=e.length;++i=0&&(n=t.slice(e+1),t=t.slice(0,e)),{type:t,name:n}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(u=n?Hz:Bz,null==e&&(e=!1),r=0;r>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):(n=pF.exec(t))?MF(parseInt(n[1],16)):(n=gF.exec(t))?new TF(n[1],n[2],n[3],1):(n=vF.exec(t))?new TF(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=yF.exec(t))?EF(n[1],n[2],n[3],n[4]):(n=mF.exec(t))?EF(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=_F.exec(t))?CF(n[1],n[2]/100,n[3]/100,1):(n=bF.exec(t))?CF(n[1],n[2]/100,n[3]/100,n[4]):wF.hasOwnProperty(t)?MF(wF[t]):"transparent"===t?new TF(NaN,NaN,NaN,0):null}function MF(t){return new TF(t>>16&255,t>>8&255,255&t,1)}function EF(t,n,e,r){return r<=0&&(t=n=e=NaN),new TF(t,n,e,r)}function NF(t){return t instanceof uF||(t=xF(t)),t?new TF((t=t.rgb()).r,t.g,t.b,t.opacity):new TF}function kF(t,n,e,r){return 1===arguments.length?NF(t):new TF(t,n,e,null==r?1:r)}function TF(t,n,e,r){this.r=+t,this.g=+n,this.b=+e,this.opacity=+r}function SF(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function CF(t,n,e,r){return r<=0?t=n=e=NaN:e<=0||e>=1?t=n=NaN:n<=0&&(t=NaN),new RF(t,n,e,r)}function AF(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof RF)return new RF(t.h,t.s,t.l,t.opacity);if(t instanceof uF||(t=xF(t)),!t)return new RF;if(t instanceof RF)return t;var n=(t=t.rgb()).r/255,e=t.g/255,r=t.b/255,i=Math.min(n,e,r),o=Math.max(n,e,r),a=NaN,u=o-i,c=(o+i)/2;return u?(a=n===o?(e-r)/u+6*(e0&&c<1?0:a,new RF(a,u,c,t.opacity)}(t):new RF(t,n,e,null==r?1:r)}function RF(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function PF(t,n,e){return 255*(t<60?n+(e-n)*t/60:t<180?e:t<240?n+(e-n)*(240-t)/60:n)}oF(uF,xF,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),oF(TF,kF,aF(uF,{brighter:function(t){return t=null==t?sF:Math.pow(sF,t),new TF(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?cF:Math.pow(cF,t),new TF(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+SF(this.r)+SF(this.g)+SF(this.b)},toString:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}})),oF(RF,AF,aF(uF,{brighter:function(t){return t=null==t?sF:Math.pow(sF,t),new RF(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?cF:Math.pow(cF,t),new RF(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,e=this.l,r=e+(e<.5?e:1-e)*n,i=2*e-r;return new TF(PF(t>=240?t-240:t+120,i,r),PF(t,i,r),PF(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var IF=Math.PI/180,LF=180/Math.PI,UF=.96422,DF=1,OF=.82521,zF=4/29,FF=6/29,qF=3*FF*FF,jF=FF*FF*FF;function BF(t){if(t instanceof HF)return new HF(t.l,t.a,t.b,t.opacity);if(t instanceof $F){if(isNaN(t.h))return new HF(t.l,0,0,t.opacity);var n=t.h*IF;return new HF(t.l,Math.cos(n)*t.c,Math.sin(n)*t.c,t.opacity)}t instanceof TF||(t=NF(t));var e,r,i=XF(t.r),o=XF(t.g),a=XF(t.b),u=YF((.2225045*i+.7168786*o+.0606169*a)/DF);return i===o&&o===a?e=r=u:(e=YF((.4360747*i+.3850649*o+.1430804*a)/UF),r=YF((.0139322*i+.0971045*o+.7141733*a)/OF)),new HF(116*u-16,500*(e-u),200*(u-r),t.opacity)}function HF(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function YF(t){return t>jF?Math.pow(t,1/3):t/qF+zF}function VF(t){return t>FF?t*t*t:qF*(t-zF)}function WF(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function XF(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function GF(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof $F)return new $F(t.h,t.c,t.l,t.opacity);if(t instanceof HF||(t=BF(t)),0===t.a&&0===t.b)return new $F(NaN,0,t.l,t.opacity);var n=Math.atan2(t.b,t.a)*LF;return new $F(n<0?n+360:n,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new $F(t,n,e,null==r?1:r)}function $F(t,n,e,r){this.h=+t,this.c=+n,this.l=+e,this.opacity=+r}oF(HF,(function(t,n,e,r){return 1===arguments.length?BF(t):new HF(t,n,e,null==r?1:r)}),aF(uF,{brighter:function(t){return new HF(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new HF(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,e=isNaN(this.b)?t:t-this.b/200;return new TF(WF(3.1338561*(n=UF*VF(n))-1.6168667*(t=DF*VF(t))-.4906146*(e=OF*VF(e))),WF(-.9787684*n+1.9161415*t+.033454*e),WF(.0719453*n-.2289914*t+1.4052427*e),this.opacity)}})),oF($F,GF,aF(uF,{brighter:function(t){return new $F(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new $F(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return BF(this).rgb()}}));var QF=-.14861,ZF=1.78277,KF=-.29227,JF=-.90649,tq=1.97294,nq=tq*JF,eq=tq*ZF,rq=ZF*KF-JF*QF;function iq(t,n,e,r){return 1===arguments.length?function(t){if(t instanceof oq)return new oq(t.h,t.s,t.l,t.opacity);t instanceof TF||(t=NF(t));var n=t.r/255,e=t.g/255,r=t.b/255,i=(rq*r+nq*n-eq*e)/(rq+nq-eq),o=r-i,a=(tq*(e-i)-KF*o)/JF,u=Math.sqrt(a*a+o*o)/(tq*i*(1-i)),c=u?Math.atan2(a,o)*LF-120:NaN;return new oq(c<0?c+360:c,u,i,t.opacity)}(t):new oq(t,n,e,null==r?1:r)}function oq(t,n,e,r){this.h=+t,this.s=+n,this.l=+e,this.opacity=+r}function aq(t,n,e,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*e+(1+3*t+3*o-3*a)*r+a*i)/6}function uq(t){return function(){return t}}function cq(t,n){return function(e){return t+e*n}}function sq(t,n){var e=n-t;return e?cq(t,e>180||e<-180?e-360*Math.round(e/360):e):uq(isNaN(t)?n:t)}function lq(t,n){var e=n-t;return e?cq(t,e):uq(isNaN(t)?n:t)}oF(oq,iq,aF(uF,{brighter:function(t){return t=null==t?sF:Math.pow(sF,t),new oq(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?cF:Math.pow(cF,t),new oq(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*IF,n=+this.l,e=isNaN(this.s)?0:this.s*n*(1-n),r=Math.cos(t),i=Math.sin(t);return new TF(255*(n+e*(QF*r+ZF*i)),255*(n+e*(KF*r+JF*i)),255*(n+e*(tq*r)),this.opacity)}}));const fq=function t(n){var e=function(t){return 1==(t=+t)?lq:function(n,e){return e-n?function(t,n,e){return t=Math.pow(t,e),n=Math.pow(n,e)-t,e=1/e,function(r){return Math.pow(t+r*n,e)}}(n,e,t):uq(isNaN(n)?e:n)}}(n);function r(t,n){var r=e((t=kF(t)).r,(n=kF(n)).r),i=e(t.g,n.g),o=e(t.b,n.b),a=lq(t.opacity,n.opacity);return function(n){return t.r=r(n),t.g=i(n),t.b=o(n),t.opacity=a(n),t+""}}return r.gamma=t,r}(1);function hq(t){return function(n){var e,r,i=n.length,o=new Array(i),a=new Array(i),u=new Array(i);for(e=0;e=1?(e=1,n-1):Math.floor(e*n),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=ro&&(i=n.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(e=e[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,c.push({i:a,x:dq(e,r)})),o=gq.lastIndex;return o180?n+=360:n-t>180&&(t+=360),o.push({i:e.push(i(e)+"rotate(",null,r)-2,x:dq(t,n)})):n&&e.push(i(e)+"rotate("+n+r)}(o.rotate,a.rotate,u,c),function(t,n,e,o){t!==n?o.push({i:e.push(i(e)+"skewX(",null,r)-2,x:dq(t,n)}):n&&e.push(i(e)+"skewX("+n+r)}(o.skewX,a.skewX,u,c),function(t,n,e,r,o,a){if(t!==e||n!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:dq(t,e)},{i:u-2,x:dq(n,r)})}else 1===e&&1===r||o.push(i(o)+"scale("+e+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,c),o=a=null,function(t){for(var n,e=-1,r=c.length;++e=0&&n._call.call(null,t),n=n._next;--zq}()}finally{zq=0,function(){for(var t,n,e=Dq,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Dq=n);Oq=t,Jq(r)}(),Hq=0}}function Kq(){var t=Vq.now(),n=t-Bq;n>jq&&(Yq-=n,Bq=t)}function Jq(t){zq||(Fq&&(Fq=clearTimeout(Fq)),t-Hq>24?(t<1/0&&(Fq=setTimeout(Zq,t-Vq.now()-Yq)),qq&&(qq=clearInterval(qq))):(qq||(Bq=Vq.now(),qq=setInterval(Kq,jq)),zq=1,Wq(Zq)))}function tj(t,n,e){var r=new $q;return n=null==n?0:+n,r.restart((function(e){r.stop(),t(e+n)}),n,e),r}$q.prototype=Qq.prototype={constructor:$q,restart:function(t,n,e){if("function"!=typeof t)throw new TypeError("callback is not a function");e=(null==e?Xq():+e)+(null==n?0:+n),this._next||Oq===this||(Oq?Oq._next=this:Dq=this,Oq=this),this._call=t,this._time=e,Jq()},stop:function(){this._call&&(this._call=null,this._time=1/0,Jq())}};var nj=OO("start","end","interrupt"),ej=[],rj=0,ij=1,oj=2,aj=3,uj=4,cj=5,sj=6;function lj(t,n,e,r,i,o){var a=t.__transition;if(a){if(e in a)return}else t.__transition={};!function(t,n,e){var r,i=t.__transition;function o(c){var s,l,f,h;if(e.state!==ij)return u();for(s in i)if((h=i[s]).name===e.name){if(h.state===aj)return tj(o);h.state===uj?(h.state=sj,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[s]):+srj)throw new Error("too late; already scheduled");return e}function hj(t,n){var e=dj(t,n);if(e.state>oj)throw new Error("too late; already started");return e}function dj(t,n){var e=t.__transition;if(!e||!(e=e[n]))throw new Error("transition not found");return e}function pj(t,n){var e,r,i,o=t.__transition,a=!0;if(o){for(i in n=null==n?null:n+"",o)(e=o[i]).name===n?(r=e.state>oj&&e.state=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?fj:hj;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(n,e),a.on=i}}(e,t,n))},attr:function(t,n){var e=qO(t),r="transform"===e?kq:mj;return this.attrTween(t,"function"==typeof n?(e.local?Ej:Mj)(e,r,yj(this,"attr."+t,n)):null==n?(e.local?bj:_j)(e):(e.local?xj:wj)(e,r,n+""))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=qO(t);return this.tween(e,(r.local?Nj:kj)(r,n))},style:function(t,n,e){var r="transform"==(t+="")?Nq:mj;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var o=pz(this,t),a=(this.style.removeProperty(t),pz(this,t));return o===a?null:o===e&&a===r?i:i=n(e=o,r=a)}}(t,r)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof n?function(t,n,e){var r,i,o;return function(){var a=pz(this,t),u=e(this);return null==u&&(this.style.removeProperty(t),u=pz(this,t)),a===u?null:a===r&&u===i?o:o=n(r=a,i=u)}}(t,r,yj(this,"style."+t,n)):function(t,n,e){var r,i;return function(){var o=pz(this,t);return o===e?null:o===r?i:i=n(r=o,e)}}(t,r,n+""),e)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,function(t,n,e){function r(){var r=this,i=n.apply(r,arguments);return i&&function(n){r.style.setProperty(t,i(n),e)}}return r._value=n,r}(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(yj(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},remove:function(){return this.on("end.remove",function(t){return function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}}(this._id))},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=dj(this.node(),e).tween,o=0,a=i.length;or?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function Jj(){var t,n,e=Xj,r=Gj,i=Kj,o=Qj,a=Zj,u=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],s=250,l=Pq,f=[],h=OO("start","zoom","end"),d=500,p=150,g=0;function v(t){t.property("__zoom",$j).on("wheel.zoom",M).on("mousedown.zoom",E).on("dblclick.zoom",N).filter(a).on("touchstart.zoom",k).on("touchmove.zoom",T).on("touchend.zoom touchcancel.zoom",S).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(t,n){return(n=Math.max(u[0],Math.min(u[1],n)))===t.k?t:new Bj(n,t.x,t.y)}function m(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new Bj(t.k,r,i)}function _(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function b(t,n,e){t.on("start.zoom",(function(){w(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){w(this,arguments).end()})).tween("zoom",(function(){var t=this,i=arguments,o=w(t,i),a=r.apply(t,i),u=e||_(a),c=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),s=t.__zoom,f="function"==typeof n?n.apply(t,i):n,h=l(s.invert(u).concat(c/s.k),f.invert(u).concat(c/f.k));return function(t){if(1===t)t=f;else{var n=h(t),e=c/n[2];t=new Bj(e,u[0]-n[0]*e,u[1]-n[1]*e)}o.zoom(null,t)}}))}function w(t,n){for(var e,r=0,i=f.length;rg}t.zoom("mouse",i(m(t.that.__zoom,t.mouse[0]=eF(t.that),t.mouse[1]),t.extent,c))}),!0).on("mouseup.zoom",(function(){r.on("mousemove.zoom mouseup.zoom",null),function(t,n){var e=t.document.documentElement,r=Zz(t).on("dragstart.drag",null);n&&(r.on("click.drag",iF,!0),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in e?r.on("selectstart.drag",null):(e.style.MozUserSelect=e.__noselect,delete e.__noselect)}(Fz.view,t.moved),Wj(),t.end()}),!0),o=eF(this),a=Fz.clientX,u=Fz.clientY;!function(t){var n=t.document.documentElement,e=Zz(t).on("dragstart.drag",iF,!0);"onselectstart"in n?e.on("selectstart.drag",iF,!0):(n.__noselect=n.style.MozUserSelect,n.style.MozUserSelect="none")}(Fz.view),Vj(),t.mouse=[o,this.__zoom.invert(o)],pj(this),t.start()}}function N(){if(e.apply(this,arguments)){var t=this.__zoom,n=eF(this),o=t.invert(n),a=t.k*(Fz.shiftKey?.5:2),u=i(m(y(t,a),n,o),r.apply(this,arguments),c);Wj(),s>0?Zz(this).transition().duration(s).call(b,u,n):Zz(this).call(v.transform,u)}}function k(){if(e.apply(this,arguments)){var n,r,i,o,a=w(this,arguments),u=Fz.changedTouches,c=u.length;for(Vj(),r=0;r{t.exports={graphlib:e(574),layout:e(8123),debug:e(7570),util:{time:e(1138).time,notime:e(1138).notime},version:e(8177)}},2188:(t,n,e)=>{"use strict";var r=e(8436),i=e(4079);t.exports={run:function(t){var n="greedy"===t.graph().acyclicer?i(t,function(t){return function(n){return t.edge(n).weight}}(t)):function(t){var n=[],e={},i={};return r.forEach(t.nodes(),(function o(a){r.has(i,a)||(i[a]=!0,e[a]=!0,r.forEach(t.outEdges(a),(function(t){r.has(e,t.w)?n.push(t):o(t.w)})),delete e[a])})),n}(t);r.forEach(n,(function(n){var e=t.edge(n);t.removeEdge(n),e.forwardName=n.name,e.reversed=!0,t.setEdge(n.w,n.v,e,r.uniqueId("rev"))}))},undo:function(t){r.forEach(t.edges(),(function(n){var e=t.edge(n);if(e.reversed){t.removeEdge(n);var r=e.forwardName;delete e.reversed,delete e.forwardName,t.setEdge(n.w,n.v,e,r)}}))}}},1133:(t,n,e)=>{var r=e(8436),i=e(1138);function o(t,n,e,r,o,a){var u={width:0,height:0,rank:a,borderType:n},c=o[n][a-1],s=i.addDummyNode(t,"border",u,e);o[n][a]=s,t.setParent(s,r),c&&t.setEdge(c,s,{weight:1})}t.exports=function(t){r.forEach(t.children(),(function n(e){var i=t.children(e),a=t.node(e);if(i.length&&r.forEach(i,n),r.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var u=a.minRank,c=a.maxRank+1;u{"use strict";var r=e(8436);function i(t){r.forEach(t.nodes(),(function(n){o(t.node(n))})),r.forEach(t.edges(),(function(n){o(t.edge(n))}))}function o(t){var n=t.width;t.width=t.height,t.height=n}function a(t){t.y=-t.y}function u(t){var n=t.x;t.x=t.y,t.y=n}t.exports={adjust:function(t){var n=t.graph().rankdir.toLowerCase();"lr"!==n&&"rl"!==n||i(t)},undo:function(t){var n=t.graph().rankdir.toLowerCase();"bt"!==n&&"rl"!==n||function(t){r.forEach(t.nodes(),(function(n){a(t.node(n))})),r.forEach(t.edges(),(function(n){var e=t.edge(n);r.forEach(e.points,a),r.has(e,"y")&&a(e)}))}(t),"lr"!==n&&"rl"!==n||(function(t){r.forEach(t.nodes(),(function(n){u(t.node(n))})),r.forEach(t.edges(),(function(n){var e=t.edge(n);r.forEach(e.points,u),r.has(e,"x")&&u(e)}))}(t),i(t))}}},7822:t=>{function n(){var t={};t._next=t._prev=t,this._sentinel=t}function e(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function r(t,n){if("_next"!==t&&"_prev"!==t)return n}t.exports=n,n.prototype.dequeue=function(){var t=this._sentinel,n=t._prev;if(n!==t)return e(n),n},n.prototype.enqueue=function(t){var n=this._sentinel;t._prev&&t._next&&e(t),t._next=n._next,n._next._prev=t,n._next=t,t._prev=n},n.prototype.toString=function(){for(var t=[],n=this._sentinel,e=n._prev;e!==n;)t.push(JSON.stringify(e,r)),e=e._prev;return"["+t.join(", ")+"]"}},7570:(t,n,e)=>{var r=e(8436),i=e(1138),o=e(574).Graph;t.exports={debugOrdering:function(t){var n=i.buildLayerMatrix(t),e=new o({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),(function(n){e.setNode(n,{label:n}),e.setParent(n,"layer"+t.node(n).rank)})),r.forEach(t.edges(),(function(t){e.setEdge(t.v,t.w,{},t.name)})),r.forEach(n,(function(t,n){var i="layer"+n;e.setNode(i,{rank:"same"}),r.reduce(t,(function(t,n){return e.setEdge(t,n,{style:"invis"}),n}))})),e}}},574:(t,n,e)=>{var r;try{r=e(8282)}catch(t){}r||(r=window.graphlib),t.exports=r},4079:(t,n,e)=>{var r=e(8436),i=e(574).Graph,o=e(7822);t.exports=function(t,n){if(t.nodeCount()<=1)return[];var e=function(t,n){var e=new i,a=0,u=0;r.forEach(t.nodes(),(function(t){e.setNode(t,{v:t,in:0,out:0})})),r.forEach(t.edges(),(function(t){var r=e.edge(t.v,t.w)||0,i=n(t),o=r+i;e.setEdge(t.v,t.w,o),u=Math.max(u,e.node(t.v).out+=i),a=Math.max(a,e.node(t.w).in+=i)}));var s=r.range(u+a+3).map((function(){return new o})),l=a+1;return r.forEach(e.nodes(),(function(t){c(s,l,e.node(t))})),{graph:e,buckets:s,zeroIdx:l}}(t,n||a),s=function(t,n,e){for(var r,i=[],o=n[n.length-1],a=n[0];t.nodeCount();){for(;r=a.dequeue();)u(t,n,e,r);for(;r=o.dequeue();)u(t,n,e,r);if(t.nodeCount())for(var c=n.length-2;c>0;--c)if(r=n[c].dequeue()){i=i.concat(u(t,n,e,r,!0));break}}return i}(e.graph,e.buckets,e.zeroIdx);return r.flatten(r.map(s,(function(n){return t.outEdges(n.v,n.w)})),!0)};var a=r.constant(1);function u(t,n,e,i,o){var a=o?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),u=t.node(r.v);o&&a.push({v:r.v,w:r.w}),u.out-=i,c(n,e,u)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),o=r.w,a=t.node(o);a.in-=i,c(n,e,a)})),t.removeNode(i.v),a}function c(t,n,e){e.out?e.in?t[e.out-e.in+n].enqueue(e):t[t.length-1].enqueue(e):t[0].enqueue(e)}},8123:(t,n,e)=>{"use strict";var r=e(8436),i=e(2188),o=e(5995),a=e(8093),u=e(1138).normalizeRanks,c=e(4219),s=e(1138).removeEmptyRanks,l=e(2981),f=e(1133),h=e(3258),d=e(3408),p=e(7873),g=e(1138),v=e(574).Graph;t.exports=function(t,n){var e=n&&n.debugTiming?g.time:g.notime;e("layout",(function(){var n=e("  buildLayoutGraph",(function(){return function(t){var n=new v({multigraph:!0,compound:!0}),e=k(t.graph());return n.setGraph(r.merge({},m,N(e,y),r.pick(e,_))),r.forEach(t.nodes(),(function(e){var i=k(t.node(e));n.setNode(e,r.defaults(N(i,b),w)),n.setParent(e,t.parent(e))})),r.forEach(t.edges(),(function(e){var i=k(t.edge(e));n.setEdge(e,r.merge({},M,N(i,x),r.pick(i,E)))})),n}(t)}));e("  runLayout",(function(){!function(t,n){n("    makeSpaceForEdgeLabels",(function(){!function(t){var n=t.graph();n.ranksep/=2,r.forEach(t.edges(),(function(e){var r=t.edge(e);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===n.rankdir||"BT"===n.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(t)})),n("    removeSelfEdges",(function(){!function(t){r.forEach(t.edges(),(function(n){if(n.v===n.w){var e=t.node(n.v);e.selfEdges||(e.selfEdges=[]),e.selfEdges.push({e:n,label:t.edge(n)}),t.removeEdge(n)}}))}(t)})),n("    acyclic",(function(){i.run(t)})),n("    nestingGraph.run",(function(){l.run(t)})),n("    rank",(function(){a(g.asNonCompoundGraph(t))})),n("    injectEdgeLabelProxies",(function(){!function(t){r.forEach(t.edges(),(function(n){var e=t.edge(n);if(e.width&&e.height){var r=t.node(n.v),i={rank:(t.node(n.w).rank-r.rank)/2+r.rank,e:n};g.addDummyNode(t,"edge-proxy",i,"_ep")}}))}(t)})),n("    removeEmptyRanks",(function(){s(t)})),n("    nestingGraph.cleanup",(function(){l.cleanup(t)})),n("    normalizeRanks",(function(){u(t)})),n("    assignRankMinMax",(function(){!function(t){var n=0;r.forEach(t.nodes(),(function(e){var i=t.node(e);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,n=r.max(n,i.maxRank))})),t.graph().maxRank=n}(t)})),n("    removeEdgeLabelProxies",(function(){!function(t){r.forEach(t.nodes(),(function(n){var e=t.node(n);"edge-proxy"===e.dummy&&(t.edge(e.e).labelRank=e.rank,t.removeNode(n))}))}(t)})),n("    normalize.run",(function(){o.run(t)})),n("    parentDummyChains",(function(){c(t)})),n("    addBorderSegments",(function(){f(t)})),n("    order",(function(){d(t)})),n("    insertSelfEdges",(function(){!function(t){var n=g.buildLayerMatrix(t);r.forEach(n,(function(n){var e=0;r.forEach(n,(function(n,i){var o=t.node(n);o.order=i+e,r.forEach(o.selfEdges,(function(n){g.addDummyNode(t,"selfedge",{width:n.label.width,height:n.label.height,rank:o.rank,order:i+ ++e,e:n.e,label:n.label},"_se")})),delete o.selfEdges}))}))}(t)})),n("    adjustCoordinateSystem",(function(){h.adjust(t)})),n("    position",(function(){p(t)})),n("    positionSelfEdges",(function(){!function(t){r.forEach(t.nodes(),(function(n){var e=t.node(n);if("selfedge"===e.dummy){var r=t.node(e.e.v),i=r.x+r.width/2,o=r.y,a=e.x-i,u=r.height/2;t.setEdge(e.e,e.label),t.removeNode(n),e.label.points=[{x:i+2*a/3,y:o-u},{x:i+5*a/6,y:o-u},{x:i+a,y:o},{x:i+5*a/6,y:o+u},{x:i+2*a/3,y:o+u}],e.label.x=e.x,e.label.y=e.y}}))}(t)})),n("    removeBorderNodes",(function(){!function(t){r.forEach(t.nodes(),(function(n){if(t.children(n).length){var e=t.node(n),i=t.node(e.borderTop),o=t.node(e.borderBottom),a=t.node(r.last(e.borderLeft)),u=t.node(r.last(e.borderRight));e.width=Math.abs(u.x-a.x),e.height=Math.abs(o.y-i.y),e.x=a.x+e.width/2,e.y=i.y+e.height/2}})),r.forEach(t.nodes(),(function(n){"border"===t.node(n).dummy&&t.removeNode(n)}))}(t)})),n("    normalize.undo",(function(){o.undo(t)})),n("    fixupEdgeLabelCoords",(function(){!function(t){r.forEach(t.edges(),(function(n){var e=t.edge(n);if(r.has(e,"x"))switch("l"!==e.labelpos&&"r"!==e.labelpos||(e.width-=e.labeloffset),e.labelpos){case"l":e.x-=e.width/2+e.labeloffset;break;case"r":e.x+=e.width/2+e.labeloffset}}))}(t)})),n("    undoCoordinateSystem",(function(){h.undo(t)})),n("    translateGraph",(function(){!function(t){var n=Number.POSITIVE_INFINITY,e=0,i=Number.POSITIVE_INFINITY,o=0,a=t.graph(),u=a.marginx||0,c=a.marginy||0;function s(t){var r=t.x,a=t.y,u=t.width,c=t.height;n=Math.min(n,r-u/2),e=Math.max(e,r+u/2),i=Math.min(i,a-c/2),o=Math.max(o,a+c/2)}r.forEach(t.nodes(),(function(n){s(t.node(n))})),r.forEach(t.edges(),(function(n){var e=t.edge(n);r.has(e,"x")&&s(e)})),n-=u,i-=c,r.forEach(t.nodes(),(function(e){var r=t.node(e);r.x-=n,r.y-=i})),r.forEach(t.edges(),(function(e){var o=t.edge(e);r.forEach(o.points,(function(t){t.x-=n,t.y-=i})),r.has(o,"x")&&(o.x-=n),r.has(o,"y")&&(o.y-=i)})),a.width=e-n+u,a.height=o-i+c}(t)})),n("    assignNodeIntersects",(function(){!function(t){r.forEach(t.edges(),(function(n){var e,r,i=t.edge(n),o=t.node(n.v),a=t.node(n.w);i.points?(e=i.points[0],r=i.points[i.points.length-1]):(i.points=[],e=a,r=o),i.points.unshift(g.intersectRect(o,e)),i.points.push(g.intersectRect(a,r))}))}(t)})),n("    reversePoints",(function(){!function(t){r.forEach(t.edges(),(function(n){var e=t.edge(n);e.reversed&&e.points.reverse()}))}(t)})),n("    acyclic.undo",(function(){i.undo(t)}))}(n,e)})),e("  updateInputGraph",(function(){!function(t,n){r.forEach(t.nodes(),(function(e){var r=t.node(e),i=n.node(e);r&&(r.x=i.x,r.y=i.y,n.children(e).length&&(r.width=i.width,r.height=i.height))})),r.forEach(t.edges(),(function(e){var i=t.edge(e),o=n.edge(e);i.points=o.points,r.has(o,"x")&&(i.x=o.x,i.y=o.y)})),t.graph().width=n.graph().width,t.graph().height=n.graph().height}(t,n)}))}))};var y=["nodesep","edgesep","ranksep","marginx","marginy"],m={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_=["acyclicer","ranker","rankdir","align"],b=["width","height"],w={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],M={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},E=["labelpos"];function N(t,n){return r.mapValues(r.pick(t,n),Number)}function k(t){var n={};return r.forEach(t,(function(t,e){n[e.toLowerCase()]=t})),n}},8436:(t,n,e)=>{var r;try{r=e(6486)}catch(t){}r||(r=window._),t.exports=r},2981:(t,n,e)=>{var r=e(8436),i=e(1138);function o(t,n,e,a,u,c,s){var l=t.children(s);if(l.length){var f=i.addBorderNode(t,"_bt"),h=i.addBorderNode(t,"_bb"),d=t.node(s);t.setParent(f,s),d.borderTop=f,t.setParent(h,s),d.borderBottom=h,r.forEach(l,(function(r){o(t,n,e,a,u,c,r);var i=t.node(r),l=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?a:2*a,g=l!==d?1:u-c[s]+1;t.setEdge(f,l,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(d,h,{weight:p,minlen:g,nestingEdge:!0})})),t.parent(s)||t.setEdge(n,f,{weight:0,minlen:u+c[s]})}else s!==n&&t.setEdge(n,s,{weight:0,minlen:e})}t.exports={run:function(t){var n=i.addDummyNode(t,"root",{},"_root"),e=function(t){var n={};function e(i,o){var a=t.children(i);a&&a.length&&r.forEach(a,(function(t){e(t,o+1)})),n[i]=o}return r.forEach(t.children(),(function(t){e(t,1)})),n}(t),a=r.max(r.values(e))-1,u=2*a+1;t.graph().nestingRoot=n,r.forEach(t.edges(),(function(n){t.edge(n).minlen*=u}));var c=function(t){return r.reduce(t.edges(),(function(n,e){return n+t.edge(e).weight}),0)}(t)+1;r.forEach(t.children(),(function(r){o(t,n,u,c,a,e,r)})),t.graph().nodeRankFactor=u},cleanup:function(t){var n=t.graph();t.removeNode(n.nestingRoot),delete n.nestingRoot,r.forEach(t.edges(),(function(n){t.edge(n).nestingEdge&&t.removeEdge(n)}))}}},5995:(t,n,e)=>{"use strict";var r=e(8436),i=e(1138);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(n){!function(t,n){var e,r,o,a=n.v,u=t.node(a).rank,c=n.w,s=t.node(c).rank,l=n.name,f=t.edge(n),h=f.labelRank;if(s!==u+1){for(t.removeEdge(n),o=0,++u;u{var r=e(8436);t.exports=function(t,n,e){var i,o={};r.forEach(e,(function(e){for(var r,a,u=t.parent(e);u;){if((r=t.parent(u))?(a=o[r],o[r]=u):(a=i,i=u),a&&a!==u)return void n.setEdge(a,u);u=r}}))}},5439:(t,n,e)=>{var r=e(8436);t.exports=function(t,n){return r.map(n,(function(n){var e=t.inEdges(n);if(e.length){var i=r.reduce(e,(function(n,e){var r=t.edge(e),i=t.node(e.v);return{sum:n.sum+r.weight*i.order,weight:n.weight+r.weight}}),{sum:0,weight:0});return{v:n,barycenter:i.sum/i.weight,weight:i.weight}}return{v:n}}))}},3128:(t,n,e)=>{var r=e(8436),i=e(574).Graph;t.exports=function(t,n,e){var o=function(t){for(var n;t.hasNode(n=r.uniqueId("_root")););return n}(t),a=new i({compound:!0}).setGraph({root:o}).setDefaultNodeLabel((function(n){return t.node(n)}));return r.forEach(t.nodes(),(function(i){var u=t.node(i),c=t.parent(i);(u.rank===n||u.minRank<=n&&n<=u.maxRank)&&(a.setNode(i),a.setParent(i,c||o),r.forEach(t[e](i),(function(n){var e=n.v===i?n.w:n.v,o=a.edge(e,i),u=r.isUndefined(o)?0:o.weight;a.setEdge(e,i,{weight:t.edge(n).weight+u})})),r.has(u,"minRank")&&a.setNode(i,{borderLeft:u.borderLeft[n],borderRight:u.borderRight[n]}))})),a}},6630:(t,n,e)=>{"use strict";var r=e(8436);function i(t,n,e){for(var i=r.zipObject(e,r.map(e,(function(t,n){return n}))),o=r.flatten(r.map(n,(function(n){return r.chain(t.outEdges(n)).map((function(n){return{pos:i[n.w],weight:t.edge(n).weight}})).sortBy("pos").value()})),!0),a=1;a0;)n%2&&(e+=c[n+1]),c[n=n-1>>1]+=t.weight;s+=t.weight*e}))),s}t.exports=function(t,n){for(var e=0,r=1;r{"use strict";var r=e(8436),i=e(2588),o=e(6630),a=e(1026),u=e(3128),c=e(5093),s=e(574).Graph,l=e(1138);function f(t,n,e){return r.map(n,(function(n){return u(t,n,e)}))}function h(t,n){var e=new s;r.forEach(t,(function(t){var i=t.graph().root,o=a(t,i,e,n);r.forEach(o.vs,(function(n,e){t.node(n).order=e})),c(t,e,o.vs)}))}function d(t,n){r.forEach(n,(function(n){r.forEach(n,(function(n,e){t.node(n).order=e}))}))}t.exports=function(t){var n=l.maxRank(t),e=f(t,r.range(1,n+1),"inEdges"),a=f(t,r.range(n-1,-1,-1),"outEdges"),u=i(t);d(t,u);for(var c,s=Number.POSITIVE_INFINITY,p=0,g=0;g<4;++p,++g){h(p%2?e:a,p%4>=2),u=l.buildLayerMatrix(t);var v=o(t,u);v{"use strict";var r=e(8436);t.exports=function(t){var n={},e=r.filter(t.nodes(),(function(n){return!t.children(n).length})),i=r.max(r.map(e,(function(n){return t.node(n).rank}))),o=r.map(r.range(i+1),(function(){return[]})),a=r.sortBy(e,(function(n){return t.node(n).rank}));return r.forEach(a,(function e(i){if(!r.has(n,i)){n[i]=!0;var a=t.node(i);o[a.rank].push(i),r.forEach(t.successors(i),e)}})),o}},3678:(t,n,e)=>{"use strict";var r=e(8436);t.exports=function(t,n){var e={};return r.forEach(t,(function(t,n){var i=e[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:n};r.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)})),r.forEach(n.edges(),(function(t){var n=e[t.v],i=e[t.w];r.isUndefined(n)||r.isUndefined(i)||(i.indegree++,n.out.push(e[t.w]))})),function(t){var n=[];function e(t){return function(n){var e,i,o,a;n.merged||(r.isUndefined(n.barycenter)||r.isUndefined(t.barycenter)||n.barycenter>=t.barycenter)&&(i=n,o=0,a=0,(e=t).weight&&(o+=e.barycenter*e.weight,a+=e.weight),i.weight&&(o+=i.barycenter*i.weight,a+=i.weight),e.vs=i.vs.concat(e.vs),e.barycenter=o/a,e.weight=a,e.i=Math.min(i.i,e.i),i.merged=!0)}}function i(n){return function(e){e.in.push(n),0==--e.indegree&&t.push(e)}}for(;t.length;){var o=t.pop();n.push(o),r.forEach(o.in.reverse(),e(o)),r.forEach(o.out,i(o))}return r.chain(n).filter((function(t){return!t.merged})).map((function(t){return r.pick(t,["vs","i","barycenter","weight"])})).value()}(r.filter(e,(function(t){return!t.indegree})))}},1026:(t,n,e)=>{var r=e(8436),i=e(5439),o=e(3678),a=e(7304);t.exports=function t(n,e,u,c){var s=n.children(e),l=n.node(e),f=l?l.borderLeft:void 0,h=l?l.borderRight:void 0,d={};f&&(s=r.filter(s,(function(t){return t!==f&&t!==h})));var p=i(n,s);r.forEach(p,(function(e){if(n.children(e.v).length){var i=t(n,e.v,u,c);d[e.v]=i,r.has(i,"barycenter")&&(o=e,a=i,r.isUndefined(o.barycenter)?(o.barycenter=a.barycenter,o.weight=a.weight):(o.barycenter=(o.barycenter*o.weight+a.barycenter*a.weight)/(o.weight+a.weight),o.weight+=a.weight))}var o,a}));var g=o(p,u);!function(t,n){r.forEach(t,(function(t){t.vs=r.flatten(t.vs.map((function(t){return n[t]?n[t].vs:t})),!0)}))}(g,d);var v=a(g,c);if(f&&(v.vs=r.flatten([f,v.vs,h],!0),n.predecessors(f).length)){var y=n.node(n.predecessors(f)[0]),m=n.node(n.predecessors(h)[0]);r.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+y.order+m.order)/(v.weight+2),v.weight+=2}return v}},7304:(t,n,e)=>{var r=e(8436),i=e(1138);function o(t,n,e){for(var i;n.length&&(i=r.last(n)).i<=e;)n.pop(),t.push(i.vs),e++;return e}t.exports=function(t,n){var e,a=i.partition(t,(function(t){return r.has(t,"barycenter")})),u=a.lhs,c=r.sortBy(a.rhs,(function(t){return-t.i})),s=[],l=0,f=0,h=0;u.sort((e=!!n,function(t,n){return t.barycentern.barycenter?1:e?n.i-t.i:t.i-n.i})),h=o(s,c,h),r.forEach(u,(function(t){h+=t.vs.length,s.push(t.vs),l+=t.barycenter*t.weight,f+=t.weight,h=o(s,c,h)}));var d={vs:r.flatten(s,!0)};return f&&(d.barycenter=l/f,d.weight=f),d}},4219:(t,n,e)=>{var r=e(8436);t.exports=function(t){var n=function(t){var n={},e=0;return r.forEach(t.children(),(function i(o){var a=e;r.forEach(t.children(o),i),n[o]={low:a,lim:e++}})),n}(t);r.forEach(t.graph().dummyChains,(function(e){for(var r=t.node(e),i=r.edgeObj,o=function(t,n,e,r){var i,o,a=[],u=[],c=Math.min(n[e].low,n[r].low),s=Math.max(n[e].lim,n[r].lim);i=e;do{i=t.parent(i),a.push(i)}while(i&&(n[i].low>c||s>n[i].lim));for(o=i,i=r;(i=t.parent(i))!==o;)u.push(i);return{path:a.concat(u.reverse()),lca:o}}(t,n,i.v,i.w),a=o.path,u=o.lca,c=0,s=a[c],l=!0;e!==i.w;){if(r=t.node(e),l){for(;(s=a[c])!==u&&t.node(s).maxRank{"use strict";var r=e(8436),i=e(574).Graph,o=e(1138);function a(t,n){var e={};return r.reduce(n,(function(n,i){var o=0,a=0,u=n.length,s=r.last(i);return r.forEach(i,(function(n,l){var f=function(t,n){if(t.node(n).dummy)return r.find(t.predecessors(n),(function(n){return t.node(n).dummy}))}(t,n),h=f?t.node(f).order:u;(f||n===s)&&(r.forEach(i.slice(a,l+1),(function(n){r.forEach(t.predecessors(n),(function(r){var i=t.node(r),a=i.order;!(au)&&c(e,n,s)}))}))}return r.reduce(n,(function(n,e){var o,a=-1,u=0;return r.forEach(e,(function(r,c){if("border"===t.node(r).dummy){var s=t.predecessors(r);s.length&&(o=t.node(s[0]).order,i(e,u,c,a,o),u=c,a=o)}i(e,u,e.length,o,n.length)})),e})),e}function c(t,n,e){if(n>e){var r=n;n=e,e=r}var i=t[n];i||(t[n]=i={}),i[e]=!0}function s(t,n,e){if(n>e){var i=n;n=e,e=i}return r.has(t[n],e)}function l(t,n,e,i){var o={},a={},u={};return r.forEach(n,(function(t){r.forEach(t,(function(t,n){o[t]=t,a[t]=t,u[t]=n}))})),r.forEach(n,(function(t){var n=-1;r.forEach(t,(function(t){var c=i(t);if(c.length){c=r.sortBy(c,(function(t){return u[t]}));for(var l=(c.length-1)/2,f=Math.floor(l),h=Math.ceil(l);f<=h;++f){var d=c[f];a[t]===t&&n{"use strict";var r=e(8436),i=e(1138),o=e(3573).positionX;t.exports=function(t){(function(t){var n=i.buildLayerMatrix(t),e=t.graph().ranksep,o=0;r.forEach(n,(function(n){var i=r.max(r.map(n,(function(n){return t.node(n).height})));r.forEach(n,(function(n){t.node(n).y=o+i/2})),o+=i+e}))})(t=i.asNonCompoundGraph(t)),r.forEach(o(t),(function(n,e){t.node(e).x=n}))}},300:(t,n,e)=>{"use strict";var r=e(8436),i=e(574).Graph,o=e(6681).slack;function a(t,n){return r.forEach(t.nodes(),(function e(i){r.forEach(n.nodeEdges(i),(function(r){var a=r.v,u=i===a?r.w:a;t.hasNode(u)||o(n,r)||(t.setNode(u,{}),t.setEdge(i,u,{}),e(u))}))})),t.nodeCount()}function u(t,n){return r.minBy(n.edges(),(function(e){if(t.hasNode(e.v)!==t.hasNode(e.w))return o(n,e)}))}function c(t,n,e){r.forEach(t.nodes(),(function(t){n.node(t).rank+=e}))}t.exports=function(t){var n,e,r=new i({directed:!1}),s=t.nodes()[0],l=t.nodeCount();for(r.setNode(s,{});a(r,t){"use strict";var r=e(6681).longestPath,i=e(300),o=e(2472);t.exports=function(t){switch(t.graph().ranker){case"network-simplex":default:!function(t){o(t)}(t);break;case"tight-tree":!function(t){r(t),i(t)}(t);break;case"longest-path":a(t)}};var a=r},2472:(t,n,e)=>{"use strict";var r=e(8436),i=e(300),o=e(6681).slack,a=e(6681).longestPath,u=e(574).alg.preorder,c=e(574).alg.postorder,s=e(1138).simplify;function l(t){t=s(t),a(t);var n,e=i(t);for(d(e),f(e,t);n=g(e);)y(e,t,n,v(e,t,n))}function f(t,n){var e=c(t,t.nodes());e=e.slice(0,e.length-1),r.forEach(e,(function(e){!function(t,n,e){var r=t.node(e).parent;t.edge(e,r).cutvalue=h(t,n,e)}(t,n,e)}))}function h(t,n,e){var i=t.node(e).parent,o=!0,a=n.edge(e,i),u=0;return a||(o=!1,a=n.edge(i,e)),u=a.weight,r.forEach(n.nodeEdges(e),(function(r){var a,c,s=r.v===e,l=s?r.w:r.v;if(l!==i){var f=s===o,h=n.edge(r).weight;if(u+=f?h:-h,a=e,c=l,t.hasEdge(a,c)){var d=t.edge(e,l).cutvalue;u+=f?-d:d}}})),u}function d(t,n){arguments.length<2&&(n=t.nodes()[0]),p(t,{},1,n)}function p(t,n,e,i,o){var a=e,u=t.node(i);return n[i]=!0,r.forEach(t.neighbors(i),(function(o){r.has(n,o)||(e=p(t,n,e,o,i))})),u.low=a,u.lim=e++,o?u.parent=o:delete u.parent,e}function g(t){return r.find(t.edges(),(function(n){return t.edge(n).cutvalue<0}))}function v(t,n,e){var i=e.v,a=e.w;n.hasEdge(i,a)||(i=e.w,a=e.v);var u=t.node(i),c=t.node(a),s=u,l=!1;u.lim>c.lim&&(s=c,l=!0);var f=r.filter(n.edges(),(function(n){return l===m(0,t.node(n.v),s)&&l!==m(0,t.node(n.w),s)}));return r.minBy(f,(function(t){return o(n,t)}))}function y(t,n,e,i){var o=e.v,a=e.w;t.removeEdge(o,a),t.setEdge(i.v,i.w,{}),d(t),f(t,n),function(t,n){var e=r.find(t.nodes(),(function(t){return!n.node(t).parent})),i=u(t,e);i=i.slice(1),r.forEach(i,(function(e){var r=t.node(e).parent,i=n.edge(e,r),o=!1;i||(i=n.edge(r,e),o=!0),n.node(e).rank=n.node(r).rank+(o?i.minlen:-i.minlen)}))}(t,n)}function m(t,n,e){return e.low<=n.lim&&n.lim<=e.lim}t.exports=l,l.initLowLimValues=d,l.initCutValues=f,l.calcCutValue=h,l.leaveEdge=g,l.enterEdge=v,l.exchangeEdges=y},6681:(t,n,e)=>{"use strict";var r=e(8436);t.exports={longestPath:function(t){var n={};r.forEach(t.sources(),(function e(i){var o=t.node(i);if(r.has(n,i))return o.rank;n[i]=!0;var a=r.minBy(r.map(t.outEdges(i),(function(n){return e(n.w)-t.edge(n).minlen})));return a!==Number.POSITIVE_INFINITY&&null!=a||(a=0),o.rank=a}))},slack:function(t,n){return t.node(n.w).rank-t.node(n.v).rank-t.edge(n).minlen}}},1138:(t,n,e)=>{"use strict";var r=e(8436),i=e(574).Graph;function o(t,n,e,i){var o;do{o=r.uniqueId(i)}while(t.hasNode(o));return e.dummy=n,t.setNode(o,e),o}function a(t){return r.max(r.map(t.nodes(),(function(n){var e=t.node(n).rank;if(!r.isUndefined(e))return e})))}t.exports={addDummyNode:o,simplify:function(t){var n=(new i).setGraph(t.graph());return r.forEach(t.nodes(),(function(e){n.setNode(e,t.node(e))})),r.forEach(t.edges(),(function(e){var r=n.edge(e.v,e.w)||{weight:0,minlen:1},i=t.edge(e);n.setEdge(e.v,e.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),n},asNonCompoundGraph:function(t){var n=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(e){t.children(e).length||n.setNode(e,t.node(e))})),r.forEach(t.edges(),(function(e){n.setEdge(e,t.edge(e))})),n},successorWeights:function(t){var n=r.map(t.nodes(),(function(n){var e={};return r.forEach(t.outEdges(n),(function(n){e[n.w]=(e[n.w]||0)+t.edge(n).weight})),e}));return r.zipObject(t.nodes(),n)},predecessorWeights:function(t){var n=r.map(t.nodes(),(function(n){var e={};return r.forEach(t.inEdges(n),(function(n){e[n.v]=(e[n.v]||0)+t.edge(n).weight})),e}));return r.zipObject(t.nodes(),n)},intersectRect:function(t,n){var e,r,i=t.x,o=t.y,a=n.x-i,u=n.y-o,c=t.width/2,s=t.height/2;if(!a&&!u)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(u)*c>Math.abs(a)*s?(u<0&&(s=-s),e=s*a/u,r=s):(a<0&&(c=-c),e=c,r=c*u/a),{x:i+e,y:o+r}},buildLayerMatrix:function(t){var n=r.map(r.range(a(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(e){var i=t.node(e),o=i.rank;r.isUndefined(o)||(n[o][i.order]=e)})),n},normalizeRanks:function(t){var n=r.minBy(r.map(t.nodes(),(function(n){return t.node(n).rank})));r.forEach(t.nodes(),(function(e){var i=t.node(e);r.has(i,"rank")&&(i.rank-=n)}))},removeEmptyRanks:function(t){var n=r.minBy(r.map(t.nodes(),(function(n){return t.node(n).rank}))),e=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-n;e[i]||(e[i]=[]),e[i].push(r)}));var i=0,o=t.graph().nodeRankFactor;r.forEach(e,(function(n,e){r.isUndefined(n)&&e%o!=0?--i:i&&r.forEach(n,(function(n){t.node(n).rank+=i}))}))},addBorderNode:function(t,n,e,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=e,i.order=r),o(t,"border",i,n)},maxRank:a,partition:function(t,n){var e={lhs:[],rhs:[]};return r.forEach(t,(function(t){n(t)?e.lhs.push(t):e.rhs.push(t)})),e},time:function(t,n){var e=r.now();try{return n()}finally{console.log(t+" time: "+(r.now()-e)+"ms")}},notime:function(t,n){return n()}}},8177:t=>{t.exports="0.8.2"},6508:t=>{"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),e={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};t.exports=e},7476:(t,n,e)=>{"use strict";var r=e(2334);t.exports=function t(n,e){return!(!n||!e)&&(n===e||!r(n)&&(r(e)?t(n,e.parentNode):"contains"in n?n.contains(e):!!n.compareDocumentPosition&&!!(16&n.compareDocumentPosition(e))))}},139:t=>{"use strict";function n(t){return function(){return t}}var e=function(){};e.thatReturns=n,e.thatReturnsFalse=n(!1),e.thatReturnsTrue=n(!0),e.thatReturnsNull=n(null),e.thatReturnsThis=function(){return this},e.thatReturnsArgument=function(t){return t},t.exports=e},3677:t=>{"use strict";t.exports={}},1003:t=>{"use strict";t.exports=function(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(n){return t.body}}},3759:t=>{"use strict";t.exports=function(t,n,e,r,i,o,a,u){if(!t){var c;if(void 0===n)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[e,r,i,o,a,u],l=0;(c=new Error(n.replace(/%s/g,(function(){return s[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},901:t=>{"use strict";t.exports=function(t){var n=(t?t.ownerDocument||t:document).defaultView||window;return!(!t||!("function"==typeof n.Node?t instanceof n.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}},2334:(t,n,e)=>{"use strict";var r=e(901);t.exports=function(t){return r(t)&&3==t.nodeType}},9303:t=>{"use strict";var n=Object.prototype.hasOwnProperty;function e(t,n){return t===n?0!==t||0!==n||1/t==1/n:t!=t&&n!=n}t.exports=function(t,r){if(e(t,r))return!0;if("object"!=typeof t||null===t||"object"!=typeof r||null===r)return!1;var i=Object.keys(t),o=Object.keys(r);if(i.length!==o.length)return!1;for(var a=0;a{var r=e(2354);t.exports={Graph:r.Graph,json:e(8974),alg:e(2440),version:r.version}},2842:(t,n,e)=>{var r=e(9126);t.exports=function(t){var n,e={},i=[];function o(i){r.has(e,i)||(e[i]=!0,n.push(i),r.each(t.successors(i),o),r.each(t.predecessors(i),o))}return r.each(t.nodes(),(function(t){n=[],o(t),n.length&&i.push(n)})),i}},3984:(t,n,e)=>{var r=e(9126);function i(t,n,e,o,a,u){r.has(o,n)||(o[n]=!0,e||u.push(n),r.each(a(n),(function(n){i(t,n,e,o,a,u)})),e&&u.push(n))}t.exports=function(t,n,e){r.isArray(n)||(n=[n]);var o=(t.isDirected()?t.successors:t.neighbors).bind(t),a=[],u={};return r.each(n,(function(n){if(!t.hasNode(n))throw new Error("Graph does not have node: "+n);i(t,n,"post"===e,u,o,a)})),a}},4847:(t,n,e)=>{var r=e(3763),i=e(9126);t.exports=function(t,n,e){return i.transform(t.nodes(),(function(i,o){i[o]=r(t,o,n,e)}),{})}},3763:(t,n,e)=>{var r=e(9126),i=e(5639);t.exports=function(t,n,e,r){return function(t,n,e,r){var o,a,u={},c=new i,s=function(t){var n=t.v!==o?t.v:t.w,r=u[n],i=e(t),s=a.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);s0&&(o=c.removeMin(),(a=u[o]).distance!==Number.POSITIVE_INFINITY);)r(o).forEach(s);return u}(t,String(n),e||o,r||function(n){return t.outEdges(n)})};var o=r.constant(1)},9096:(t,n,e)=>{var r=e(9126),i=e(5023);t.exports=function(t){return r.filter(i(t),(function(n){return n.length>1||1===n.length&&t.hasEdge(n[0],n[0])}))}},8924:(t,n,e)=>{var r=e(9126);t.exports=function(t,n,e){return function(t,n,e){var r={},i=t.nodes();return i.forEach((function(t){r[t]={},r[t][t]={distance:0},i.forEach((function(n){t!==n&&(r[t][n]={distance:Number.POSITIVE_INFINITY})})),e(t).forEach((function(e){var i=e.v===t?e.w:e.v,o=n(e);r[t][i]={distance:o,predecessor:t}}))})),i.forEach((function(t){var n=r[t];i.forEach((function(e){var o=r[e];i.forEach((function(e){var r=o[t],i=n[e],a=o[e],u=r.distance+i.distance;u{t.exports={components:e(2842),dijkstra:e(3763),dijkstraAll:e(4847),findCycles:e(9096),floydWarshall:e(8924),isAcyclic:e(2707),postorder:e(8828),preorder:e(2648),prim:e(514),tarjan:e(5023),topsort:e(2166)}},2707:(t,n,e)=>{var r=e(2166);t.exports=function(t){try{r(t)}catch(t){if(t instanceof r.CycleException)return!1;throw t}return!0}},8828:(t,n,e)=>{var r=e(3984);t.exports=function(t,n){return r(t,n,"post")}},2648:(t,n,e)=>{var r=e(3984);t.exports=function(t,n){return r(t,n,"pre")}},514:(t,n,e)=>{var r=e(9126),i=e(771),o=e(5639);t.exports=function(t,n){var e,a=new i,u={},c=new o;function s(t){var r=t.v===e?t.w:t.v,i=c.priority(r);if(void 0!==i){var o=n(t);o0;){if(e=c.removeMin(),r.has(u,e))a.setEdge(e,u[e]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(e).forEach(s)}return a}},5023:(t,n,e)=>{var r=e(9126);t.exports=function(t){var n=0,e=[],i={},o=[];function a(u){var c=i[u]={onStack:!0,lowlink:n,index:n++};if(e.push(u),t.successors(u).forEach((function(t){r.has(i,t)?i[t].onStack&&(c.lowlink=Math.min(c.lowlink,i[t].index)):(a(t),c.lowlink=Math.min(c.lowlink,i[t].lowlink))})),c.lowlink===c.index){var s,l=[];do{s=e.pop(),i[s].onStack=!1,l.push(s)}while(u!==s);o.push(l)}}return t.nodes().forEach((function(t){r.has(i,t)||a(t)})),o}},2166:(t,n,e)=>{var r=e(9126);function i(t){var n={},e={},i=[];if(r.each(t.sinks(),(function a(u){if(r.has(e,u))throw new o;r.has(n,u)||(e[u]=!0,n[u]=!0,r.each(t.predecessors(u),a),delete e[u],i.push(u))})),r.size(n)!==t.nodeCount())throw new o;return i}function o(){}t.exports=i,i.CycleException=o},5639:(t,n,e)=>{var r=e(9126);function i(){this._arr=[],this._keyIndices={}}t.exports=i,i.prototype.size=function(){return this._arr.length},i.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},i.prototype.has=function(t){return r.has(this._keyIndices,t)},i.prototype.priority=function(t){var n=this._keyIndices[t];if(void 0!==n)return this._arr[n].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,n){var e=this._keyIndices;if(t=String(t),!r.has(e,t)){var i=this._arr,o=i.length;return e[t]=o,i.push({key:t,priority:n}),this._decrease(o),!0}return!1},i.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},i.prototype.decrease=function(t,n){var e=this._keyIndices[t];if(n>this._arr[e].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[e].priority+" New: "+n);this._arr[e].priority=n,this._decrease(e)},i.prototype._heapify=function(t){var n=this._arr,e=2*t,r=e+1,i=t;e>1].priority{"use strict";var r=e(9126);t.exports=u;var i="\0",o="\0",a="";function u(t){this._isDirected=!r.has(t,"directed")||t.directed,this._isMultigraph=!!r.has(t,"multigraph")&&t.multigraph,this._isCompound=!!r.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=r.constant(void 0),this._defaultEdgeLabelFn=r.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[o]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function c(t,n){t[n]?t[n]++:t[n]=1}function s(t,n){--t[n]||delete t[n]}function l(t,n,e,o){var u=""+n,c=""+e;if(!t&&u>c){var s=u;u=c,c=s}return u+a+c+a+(r.isUndefined(o)?i:o)}function f(t,n){return l(t,n.v,n.w,n.name)}u.prototype._nodeCount=0,u.prototype._edgeCount=0,u.prototype.isDirected=function(){return this._isDirected},u.prototype.isMultigraph=function(){return this._isMultigraph},u.prototype.isCompound=function(){return this._isCompound},u.prototype.setGraph=function(t){return this._label=t,this},u.prototype.graph=function(){return this._label},u.prototype.setDefaultNodeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultNodeLabelFn=t,this},u.prototype.nodeCount=function(){return this._nodeCount},u.prototype.nodes=function(){return r.keys(this._nodes)},u.prototype.sources=function(){var t=this;return r.filter(this.nodes(),(function(n){return r.isEmpty(t._in[n])}))},u.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(n){return r.isEmpty(t._out[n])}))},u.prototype.setNodes=function(t,n){var e=arguments,i=this;return r.each(t,(function(t){e.length>1?i.setNode(t,n):i.setNode(t)})),this},u.prototype.setNode=function(t,n){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=n),this):(this._nodes[t]=arguments.length>1?n:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=o,this._children[t]={},this._children[o][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},u.prototype.node=function(t){return this._nodes[t]},u.prototype.hasNode=function(t){return r.has(this._nodes,t)},u.prototype.removeNode=function(t){var n=this;if(r.has(this._nodes,t)){var e=function(t){n.removeEdge(n._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),(function(t){n.setParent(t)})),delete this._children[t]),r.each(r.keys(this._in[t]),e),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),e),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},u.prototype.setParent=function(t,n){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(n))n=o;else{for(var e=n+="";!r.isUndefined(e);e=this.parent(e))if(e===t)throw new Error("Setting "+n+" as parent of "+t+" would create a cycle");this.setNode(n)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=n,this._children[n][t]=!0,this},u.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},u.prototype.parent=function(t){if(this._isCompound){var n=this._parent[t];if(n!==o)return n}},u.prototype.children=function(t){if(r.isUndefined(t)&&(t=o),this._isCompound){var n=this._children[t];if(n)return r.keys(n)}else{if(t===o)return this.nodes();if(this.hasNode(t))return[]}},u.prototype.predecessors=function(t){var n=this._preds[t];if(n)return r.keys(n)},u.prototype.successors=function(t){var n=this._sucs[t];if(n)return r.keys(n)},u.prototype.neighbors=function(t){var n=this.predecessors(t);if(n)return r.union(n,this.successors(t))},u.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},u.prototype.filterNodes=function(t){var n=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});n.setGraph(this.graph());var e=this;r.each(this._nodes,(function(e,r){t(r)&&n.setNode(r,e)})),r.each(this._edgeObjs,(function(t){n.hasNode(t.v)&&n.hasNode(t.w)&&n.setEdge(t,e.edge(t))}));var i={};function o(t){var r=e.parent(t);return void 0===r||n.hasNode(r)?(i[t]=r,r):r in i?i[r]:o(r)}return this._isCompound&&r.each(n.nodes(),(function(t){n.setParent(t,o(t))})),n},u.prototype.setDefaultEdgeLabel=function(t){return r.isFunction(t)||(t=r.constant(t)),this._defaultEdgeLabelFn=t,this},u.prototype.edgeCount=function(){return this._edgeCount},u.prototype.edges=function(){return r.values(this._edgeObjs)},u.prototype.setPath=function(t,n){var e=this,i=arguments;return r.reduce(t,(function(t,r){return i.length>1?e.setEdge(t,r,n):e.setEdge(t,r),r})),this},u.prototype.setEdge=function(){var t,n,e,i,o=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(t=a.v,n=a.w,e=a.name,2===arguments.length&&(i=arguments[1],o=!0)):(t=a,n=arguments[1],e=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),t=""+t,n=""+n,r.isUndefined(e)||(e=""+e);var u=l(this._isDirected,t,n,e);if(r.has(this._edgeLabels,u))return o&&(this._edgeLabels[u]=i),this;if(!r.isUndefined(e)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(n),this._edgeLabels[u]=o?i:this._defaultEdgeLabelFn(t,n,e);var s=function(t,n,e,r){var i=""+n,o=""+e;if(!t&&i>o){var a=i;i=o,o=a}var u={v:i,w:o};return r&&(u.name=r),u}(this._isDirected,t,n,e);return t=s.v,n=s.w,Object.freeze(s),this._edgeObjs[u]=s,c(this._preds[n],t),c(this._sucs[t],n),this._in[n][u]=s,this._out[t][u]=s,this._edgeCount++,this},u.prototype.edge=function(t,n,e){var r=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,t,n,e);return this._edgeLabels[r]},u.prototype.hasEdge=function(t,n,e){var i=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,t,n,e);return r.has(this._edgeLabels,i)},u.prototype.removeEdge=function(t,n,e){var r=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,t,n,e),i=this._edgeObjs[r];return i&&(t=i.v,n=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],s(this._preds[n],t),s(this._sucs[t],n),delete this._in[n][r],delete this._out[t][r],this._edgeCount--),this},u.prototype.inEdges=function(t,n){var e=this._in[t];if(e){var i=r.values(e);return n?r.filter(i,(function(t){return t.v===n})):i}},u.prototype.outEdges=function(t,n){var e=this._out[t];if(e){var i=r.values(e);return n?r.filter(i,(function(t){return t.w===n})):i}},u.prototype.nodeEdges=function(t,n){var e=this.inEdges(t,n);if(e)return e.concat(this.outEdges(t,n))}},2354:(t,n,e)=>{t.exports={Graph:e(771),version:e(9631)}},8974:(t,n,e)=>{var r=e(9126),i=e(771);function o(t){return r.map(t.nodes(),(function(n){var e=t.node(n),i=t.parent(n),o={v:n};return r.isUndefined(e)||(o.value=e),r.isUndefined(i)||(o.parent=i),o}))}function a(t){return r.map(t.edges(),(function(n){var e=t.edge(n),i={v:n.v,w:n.w};return r.isUndefined(n.name)||(i.name=n.name),r.isUndefined(e)||(i.value=e),i}))}t.exports={write:function(t){var n={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:o(t),edges:a(t)};return r.isUndefined(t.graph())||(n.value=r.clone(t.graph())),n},read:function(t){var n=new i(t.options).setGraph(t.value);return r.each(t.nodes,(function(t){n.setNode(t.v,t.value),t.parent&&n.setParent(t.v,t.parent)})),r.each(t.edges,(function(t){n.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),n}}},9126:(t,n,e)=>{var r;try{r=e(6486)}catch(t){}r||(r=window._),t.exports=r},9631:t=>{t.exports="2.1.5"},6486:function(t,n,e){var r;t=e.nmd(t),function(){var i,o=200,a="Expected a function",u="__lodash_hash_undefined__",c="__lodash_placeholder__",s=1,l=2,f=4,h=1,d=2,p=1,g=2,v=4,y=8,m=16,_=32,b=64,w=128,x=256,M=512,E=800,N=16,k=1/0,T=9007199254740991,S=17976931348623157e292,C=NaN,A=4294967295,R=A-1,P=A>>>1,I=[["ary",w],["bind",p],["bindKey",g],["curry",y],["curryRight",m],["flip",M],["partial",_],["partialRight",b],["rearg",x]],L="[object Arguments]",U="[object Array]",D="[object AsyncFunction]",O="[object Boolean]",z="[object Date]",F="[object DOMException]",q="[object Error]",j="[object Function]",B="[object GeneratorFunction]",H="[object Map]",Y="[object Number]",V="[object Null]",W="[object Object]",X="[object Promise]",G="[object Proxy]",$="[object RegExp]",Q="[object Set]",Z="[object String]",K="[object Symbol]",J="[object Undefined]",tt="[object WeakMap]",nt="[object ArrayBuffer]",et="[object DataView]",rt="[object Float32Array]",it="[object Float64Array]",ot="[object Int8Array]",at="[object Int16Array]",ut="[object Int32Array]",ct="[object Uint8Array]",st="[object Uint8ClampedArray]",lt="[object Uint16Array]",ft="[object Uint32Array]",ht=/\b__p \+= '';/g,dt=/\b(__p \+=) '' \+/g,pt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,gt=/&(?:amp|lt|gt|quot|#39);/g,vt=/[&<>"']/g,yt=RegExp(gt.source),mt=RegExp(vt.source),_t=/<%-([\s\S]+?)%>/g,bt=/<%([\s\S]+?)%>/g,wt=/<%=([\s\S]+?)%>/g,xt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Mt=/^\w*$/,Et=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nt=/[\\^$.*+?()[\]{}|]/g,kt=RegExp(Nt.source),Tt=/^\s+|\s+$/g,St=/^\s+/,Ct=/\s+$/,At=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Rt=/\{\n\/\* \[wrapped with (.+)\] \*/,Pt=/,? & /,It=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Lt=/\\(\\)?/g,Ut=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Dt=/\w*$/,Ot=/^[-+]0x[0-9a-f]+$/i,zt=/^0b[01]+$/i,Ft=/^\[object .+?Constructor\]$/,qt=/^0o[0-7]+$/i,jt=/^(?:0|[1-9]\d*)$/,Bt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ht=/($^)/,Yt=/['\n\r\u2028\u2029\\]/g,Vt="\\ud800-\\udfff",Wt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Xt="\\u2700-\\u27bf",Gt="a-z\\xdf-\\xf6\\xf8-\\xff",$t="A-Z\\xc0-\\xd6\\xd8-\\xde",Qt="\\ufe0e\\ufe0f",Zt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Kt="["+Vt+"]",Jt="["+Zt+"]",tn="["+Wt+"]",nn="\\d+",en="["+Xt+"]",rn="["+Gt+"]",on="[^"+Vt+Zt+nn+Xt+Gt+$t+"]",an="\\ud83c[\\udffb-\\udfff]",un="[^"+Vt+"]",cn="(?:\\ud83c[\\udde6-\\uddff]){2}",sn="[\\ud800-\\udbff][\\udc00-\\udfff]",ln="["+$t+"]",fn="\\u200d",hn="(?:"+rn+"|"+on+")",dn="(?:"+ln+"|"+on+")",pn="(?:['’](?:d|ll|m|re|s|t|ve))?",gn="(?:['’](?:D|LL|M|RE|S|T|VE))?",vn="(?:"+tn+"|"+an+")?",yn="["+Qt+"]?",mn=yn+vn+"(?:"+fn+"(?:"+[un,cn,sn].join("|")+")"+yn+vn+")*",_n="(?:"+[en,cn,sn].join("|")+")"+mn,bn="(?:"+[un+tn+"?",tn,cn,sn,Kt].join("|")+")",wn=RegExp("['’]","g"),xn=RegExp(tn,"g"),Mn=RegExp(an+"(?="+an+")|"+bn+mn,"g"),En=RegExp([ln+"?"+rn+"+"+pn+"(?="+[Jt,ln,"$"].join("|")+")",dn+"+"+gn+"(?="+[Jt,ln+hn,"$"].join("|")+")",ln+"?"+hn+"+"+pn,ln+"+"+gn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",nn,_n].join("|"),"g"),Nn=RegExp("["+fn+Vt+Wt+Qt+"]"),kn=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Tn=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Sn=-1,Cn={};Cn[rt]=Cn[it]=Cn[ot]=Cn[at]=Cn[ut]=Cn[ct]=Cn[st]=Cn[lt]=Cn[ft]=!0,Cn[L]=Cn[U]=Cn[nt]=Cn[O]=Cn[et]=Cn[z]=Cn[q]=Cn[j]=Cn[H]=Cn[Y]=Cn[W]=Cn[$]=Cn[Q]=Cn[Z]=Cn[tt]=!1;var An={};An[L]=An[U]=An[nt]=An[et]=An[O]=An[z]=An[rt]=An[it]=An[ot]=An[at]=An[ut]=An[H]=An[Y]=An[W]=An[$]=An[Q]=An[Z]=An[K]=An[ct]=An[st]=An[lt]=An[ft]=!0,An[q]=An[j]=An[tt]=!1;var Rn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Pn=parseFloat,In=parseInt,Ln="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g,Un="object"==typeof self&&self&&self.Object===Object&&self,Dn=Ln||Un||Function("return this")(),On=n&&!n.nodeType&&n,zn=On&&t&&!t.nodeType&&t,Fn=zn&&zn.exports===On,qn=Fn&&Ln.process,jn=function(){try{return zn&&zn.require&&zn.require("util").types||qn&&qn.binding&&qn.binding("util")}catch(t){}}(),Bn=jn&&jn.isArrayBuffer,Hn=jn&&jn.isDate,Yn=jn&&jn.isMap,Vn=jn&&jn.isRegExp,Wn=jn&&jn.isSet,Xn=jn&&jn.isTypedArray;function Gn(t,n,e){switch(e.length){case 0:return t.call(n);case 1:return t.call(n,e[0]);case 2:return t.call(n,e[0],e[1]);case 3:return t.call(n,e[0],e[1],e[2])}return t.apply(n,e)}function $n(t,n,e,r){for(var i=-1,o=null==t?0:t.length;++i-1}function ne(t,n,e){for(var r=-1,i=null==t?0:t.length;++r-1;);return e}function Me(t,n){for(var e=t.length;e--&&le(n,t[e],0)>-1;);return e}var Ee=ge({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Ne=ge({"&":"&","<":"<",">":">",'"':""","'":"'"});function ke(t){return"\\"+Rn[t]}function Te(t){return Nn.test(t)}function Se(t){var n=-1,e=Array(t.size);return t.forEach((function(t,r){e[++n]=[r,t]})),e}function Ce(t,n){return function(e){return t(n(e))}}function Ae(t,n){for(var e=-1,r=t.length,i=0,o=[];++e",""":'"',"'":"'"}),De=function t(n){var e,r=(n=null==n?Dn:De.defaults(Dn.Object(),n,De.pick(Dn,Tn))).Array,Vt=n.Date,Wt=n.Error,Xt=n.Function,Gt=n.Math,$t=n.Object,Qt=n.RegExp,Zt=n.String,Kt=n.TypeError,Jt=r.prototype,tn=Xt.prototype,nn=$t.prototype,en=n["__core-js_shared__"],rn=tn.toString,on=nn.hasOwnProperty,an=0,un=(e=/[^.]+$/.exec(en&&en.keys&&en.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"",cn=nn.toString,sn=rn.call($t),ln=Dn._,fn=Qt("^"+rn.call(on).replace(Nt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hn=Fn?n.Buffer:i,dn=n.Symbol,pn=n.Uint8Array,gn=hn?hn.allocUnsafe:i,vn=Ce($t.getPrototypeOf,$t),yn=$t.create,mn=nn.propertyIsEnumerable,_n=Jt.splice,bn=dn?dn.isConcatSpreadable:i,Mn=dn?dn.iterator:i,Nn=dn?dn.toStringTag:i,Rn=function(){try{var t=Po($t,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ln=n.clearTimeout!==Dn.clearTimeout&&n.clearTimeout,Un=Vt&&Vt.now!==Dn.Date.now&&Vt.now,On=n.setTimeout!==Dn.setTimeout&&n.setTimeout,zn=Gt.ceil,qn=Gt.floor,jn=$t.getOwnPropertySymbols,ue=hn?hn.isBuffer:i,ge=n.isFinite,Oe=Jt.join,ze=Ce($t.keys,$t),Fe=Gt.max,qe=Gt.min,je=Vt.now,Be=n.parseInt,He=Gt.random,Ye=Jt.reverse,Ve=Po(n,"DataView"),We=Po(n,"Map"),Xe=Po(n,"Promise"),Ge=Po(n,"Set"),$e=Po(n,"WeakMap"),Qe=Po($t,"create"),Ze=$e&&new $e,Ke={},Je=aa(Ve),tr=aa(We),nr=aa(Xe),er=aa(Ge),rr=aa($e),ir=dn?dn.prototype:i,or=ir?ir.valueOf:i,ar=ir?ir.toString:i;function ur(t){if(Mu(t)&&!hu(t)&&!(t instanceof fr)){if(t instanceof lr)return t;if(on.call(t,"__wrapped__"))return ua(t)}return new lr(t)}var cr=function(){function t(){}return function(n){if(!xu(n))return{};if(yn)return yn(n);t.prototype=n;var e=new t;return t.prototype=i,e}}();function sr(){}function lr(t,n){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=i}function fr(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=A,this.__views__=[]}function hr(t){var n=-1,e=null==t?0:t.length;for(this.clear();++n=n?t:n)),t}function Cr(t,n,e,r,o,a){var u,c=n&s,h=n&l,d=n&f;if(e&&(u=o?e(t,r,o,a):e(t)),u!==i)return u;if(!xu(t))return t;var p=hu(t);if(p){if(u=function(t){var n=t.length,e=new t.constructor(n);return n&&"string"==typeof t[0]&&on.call(t,"index")&&(e.index=t.index,e.input=t.input),e}(t),!c)return $i(t,u)}else{var g=Uo(t),v=g==j||g==B;if(vu(t))return Hi(t,c);if(g==W||g==L||v&&!o){if(u=h||v?{}:Oo(t),!c)return h?function(t,n){return Qi(t,Lo(t),n)}(t,function(t,n){return t&&Qi(n,tc(n),t)}(u,t)):function(t,n){return Qi(t,Io(t),n)}(t,Nr(u,t))}else{if(!An[g])return o?t:{};u=function(t,n,e){var r,i=t.constructor;switch(n){case nt:return Yi(t);case O:case z:return new i(+t);case et:return function(t,n){var e=n?Yi(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case rt:case it:case ot:case at:case ut:case ct:case st:case lt:case ft:return Vi(t,e);case H:return new i;case Y:case Z:return new i(t);case $:return function(t){var n=new t.constructor(t.source,Dt.exec(t));return n.lastIndex=t.lastIndex,n}(t);case Q:return new i;case K:return r=t,or?$t(or.call(r)):{}}}(t,g,c)}}a||(a=new vr);var y=a.get(t);if(y)return y;a.set(t,u),Su(t)?t.forEach((function(r){u.add(Cr(r,n,e,r,t,a))})):Eu(t)&&t.forEach((function(r,i){u.set(i,Cr(r,n,e,i,t,a))}));var m=p?i:(d?h?No:Eo:h?tc:Ju)(t);return Qn(m||t,(function(r,i){m&&(r=t[i=r]),xr(u,i,Cr(r,n,e,i,t,a))})),u}function Ar(t,n,e){var r=e.length;if(null==t)return!r;for(t=$t(t);r--;){var o=e[r],a=n[o],u=t[o];if(u===i&&!(o in t)||!a(u))return!1}return!0}function Rr(t,n,e){if("function"!=typeof t)throw new Kt(a);return Zo((function(){t.apply(i,e)}),n)}function Pr(t,n,e,r){var i=-1,a=te,u=!0,c=t.length,s=[],l=n.length;if(!c)return s;e&&(n=ee(n,_e(e))),r?(a=ne,u=!1):n.length>=o&&(a=we,u=!1,n=new gr(n));t:for(;++i-1},dr.prototype.set=function(t,n){var e=this.__data__,r=Mr(e,t);return r<0?(++this.size,e.push([t,n])):e[r][1]=n,this},pr.prototype.clear=function(){this.size=0,this.__data__={hash:new hr,map:new(We||dr),string:new hr}},pr.prototype.delete=function(t){var n=Ao(this,t).delete(t);return this.size-=n?1:0,n},pr.prototype.get=function(t){return Ao(this,t).get(t)},pr.prototype.has=function(t){return Ao(this,t).has(t)},pr.prototype.set=function(t,n){var e=Ao(this,t),r=e.size;return e.set(t,n),this.size+=e.size==r?0:1,this},gr.prototype.add=gr.prototype.push=function(t){return this.__data__.set(t,u),this},gr.prototype.has=function(t){return this.__data__.has(t)},vr.prototype.clear=function(){this.__data__=new dr,this.size=0},vr.prototype.delete=function(t){var n=this.__data__,e=n.delete(t);return this.size=n.size,e},vr.prototype.get=function(t){return this.__data__.get(t)},vr.prototype.has=function(t){return this.__data__.has(t)},vr.prototype.set=function(t,n){var e=this.__data__;if(e instanceof dr){var r=e.__data__;if(!We||r.length0&&e(u)?n>1?zr(u,n-1,e,r,i):re(i,u):r||(i[i.length]=u)}return i}var Fr=to(),qr=to(!0);function jr(t,n){return t&&Fr(t,n,Ju)}function Br(t,n){return t&&qr(t,n,Ju)}function Hr(t,n){return Jn(n,(function(n){return _u(t[n])}))}function Yr(t,n){for(var e=0,r=(n=Fi(n,t)).length;null!=t&&en}function Gr(t,n){return null!=t&&on.call(t,n)}function $r(t,n){return null!=t&&n in $t(t)}function Qr(t,n,e){for(var o=e?ne:te,a=t[0].length,u=t.length,c=u,s=r(u),l=1/0,f=[];c--;){var h=t[c];c&&n&&(h=ee(h,_e(n))),l=qe(h.length,l),s[c]=!e&&(n||a>=120&&h.length>=120)?new gr(c&&h):i}h=t[0];var d=-1,p=s[0];t:for(;++d=u?c:c*("desc"==e[r]?-1:1)}return t.index-n.index}(t,n,e)}));r--;)t[r]=t[r].value;return t}(i)}function fi(t,n,e){for(var r=-1,i=n.length,o={};++r-1;)u!==t&&_n.call(u,c,1),_n.call(t,c,1);return t}function di(t,n){for(var e=t?n.length:0,r=e-1;e--;){var i=n[e];if(e==r||i!==o){var o=i;Fo(i)?_n.call(t,i,1):Ri(t,i)}}return t}function pi(t,n){return t+qn(He()*(n-t+1))}function gi(t,n){var e="";if(!t||n<1||n>T)return e;do{n%2&&(e+=t),(n=qn(n/2))&&(t+=t)}while(n);return e}function vi(t,n){return Ko(Xo(t,n,Nc),t+"")}function yi(t){return mr(cc(t))}function mi(t,n){var e=cc(t);return na(e,Sr(n,0,e.length))}function _i(t,n,e,r){if(!xu(t))return t;for(var o=-1,a=(n=Fi(n,t)).length,u=a-1,c=t;null!=c&&++oo?0:o+n),(e=e>o?o:e)<0&&(e+=o),o=n>e?0:e-n>>>0,n>>>=0;for(var a=r(o);++i>>1,a=t[o];null!==a&&!Au(a)&&(e?a<=n:a=o){var l=n?null:vo(t);if(l)return Re(l);u=!1,i=we,s=new gr}else s=n?[]:c;t:for(;++r=r?t:Mi(t,n,e)}var Bi=Ln||function(t){return Dn.clearTimeout(t)};function Hi(t,n){if(n)return t.slice();var e=t.length,r=gn?gn(e):new t.constructor(e);return t.copy(r),r}function Yi(t){var n=new t.constructor(t.byteLength);return new pn(n).set(new pn(t)),n}function Vi(t,n){var e=n?Yi(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function Wi(t,n){if(t!==n){var e=t!==i,r=null===t,o=t==t,a=Au(t),u=n!==i,c=null===n,s=n==n,l=Au(n);if(!c&&!l&&!a&&t>n||a&&u&&s&&!c&&!l||r&&u&&s||!e&&s||!o)return 1;if(!r&&!a&&!l&&t1?e[o-1]:i,u=o>2?e[2]:i;for(a=t.length>3&&"function"==typeof a?(o--,a):i,u&&qo(e[0],e[1],u)&&(a=o<3?i:a,o=1),n=$t(n);++r-1?o[a?n[u]:u]:i}}function oo(t){return Mo((function(n){var e=n.length,r=e,o=lr.prototype.thru;for(t&&n.reverse();r--;){var u=n[r];if("function"!=typeof u)throw new Kt(a);if(o&&!c&&"wrapper"==To(u))var c=new lr([],!0)}for(r=c?r:e;++r1&&y.reverse(),h&&lc))return!1;var l=a.get(t);if(l&&a.get(n))return l==n;var f=-1,p=!0,g=e&d?new gr:i;for(a.set(t,n),a.set(n,t);++f-1&&t%1==0&&t1?"& ":"")+n[r],n=n.join(e>2?", ":" "),t.replace(At,"{\n/* [wrapped with "+n+"] */\n")}(r,function(t,n){return Qn(I,(function(e){var r="_."+e[0];n&e[1]&&!te(t,r)&&t.push(r)})),t.sort()}(function(t){var n=t.match(Rt);return n?n[1].split(Pt):[]}(r),e)))}function ta(t){var n=0,e=0;return function(){var r=je(),o=N-(r-e);if(e=r,o>0){if(++n>=E)return arguments[0]}else n=0;return t.apply(i,arguments)}}function na(t,n){var e=-1,r=t.length,o=r-1;for(n=n===i?r:n;++e1?t[n-1]:i;return e="function"==typeof e?(t.pop(),e):i,Ta(t,e)}));function La(t){var n=ur(t);return n.__chain__=!0,n}function Ua(t,n){return n(t)}var Da=Mo((function(t){var n=t.length,e=n?t[0]:0,r=this.__wrapped__,o=function(n){return Tr(n,t)};return!(n>1||this.__actions__.length)&&r instanceof fr&&Fo(e)?((r=r.slice(e,+e+(n?1:0))).__actions__.push({func:Ua,args:[o],thisArg:i}),new lr(r,this.__chain__).thru((function(t){return n&&!t.length&&t.push(i),t}))):this.thru(o)})),Oa=Zi((function(t,n,e){on.call(t,e)?++t[e]:kr(t,e,1)})),za=io(fa),Fa=io(ha);function qa(t,n){return(hu(t)?Qn:Ir)(t,Co(n,3))}function ja(t,n){return(hu(t)?Zn:Lr)(t,Co(n,3))}var Ba=Zi((function(t,n,e){on.call(t,e)?t[e].push(n):kr(t,e,[n])})),Ha=vi((function(t,n,e){var i=-1,o="function"==typeof n,a=pu(t)?r(t.length):[];return Ir(t,(function(t){a[++i]=o?Gn(n,t,e):Zr(t,n,e)})),a})),Ya=Zi((function(t,n,e){kr(t,e,n)}));function Va(t,n){return(hu(t)?ee:oi)(t,Co(n,3))}var Wa=Zi((function(t,n,e){t[e?0:1].push(n)}),(function(){return[[],[]]})),Xa=vi((function(t,n){if(null==t)return[];var e=n.length;return e>1&&qo(t,n[0],n[1])?n=[]:e>2&&qo(n[0],n[1],n[2])&&(n=[n[0]]),li(t,zr(n,1),[])})),Ga=Un||function(){return Dn.Date.now()};function $a(t,n,e){return n=e?i:n,n=t&&null==n?t.length:n,mo(t,w,i,i,i,i,n)}function Qa(t,n){var e;if("function"!=typeof n)throw new Kt(a);return t=Du(t),function(){return--t>0&&(e=n.apply(this,arguments)),t<=1&&(n=i),e}}var Za=vi((function(t,n,e){var r=p;if(e.length){var i=Ae(e,So(Za));r|=_}return mo(t,r,n,e,i)})),Ka=vi((function(t,n,e){var r=p|g;if(e.length){var i=Ae(e,So(Ka));r|=_}return mo(n,r,t,e,i)}));function Ja(t,n,e){var r,o,u,c,s,l,f=0,h=!1,d=!1,p=!0;if("function"!=typeof t)throw new Kt(a);function g(n){var e=r,a=o;return r=o=i,f=n,c=t.apply(a,e)}function v(t){var e=t-l;return l===i||e>=n||e<0||d&&t-f>=u}function y(){var t=Ga();if(v(t))return m(t);s=Zo(y,function(t){var e=n-(t-l);return d?qe(e,u-(t-f)):e}(t))}function m(t){return s=i,p&&r?g(t):(r=o=i,c)}function _(){var t=Ga(),e=v(t);if(r=arguments,o=this,l=t,e){if(s===i)return function(t){return f=t,s=Zo(y,n),h?g(t):c}(l);if(d)return Bi(s),s=Zo(y,n),g(l)}return s===i&&(s=Zo(y,n)),c}return n=zu(n)||0,xu(e)&&(h=!!e.leading,u=(d="maxWait"in e)?Fe(zu(e.maxWait)||0,n):u,p="trailing"in e?!!e.trailing:p),_.cancel=function(){s!==i&&Bi(s),f=0,r=l=o=s=i},_.flush=function(){return s===i?c:m(Ga())},_}var tu=vi((function(t,n){return Rr(t,1,n)})),nu=vi((function(t,n,e){return Rr(t,zu(n)||0,e)}));function eu(t,n){if("function"!=typeof t||null!=n&&"function"!=typeof n)throw new Kt(a);var e=function(){var r=arguments,i=n?n.apply(this,r):r[0],o=e.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return e.cache=o.set(i,a)||o,a};return e.cache=new(eu.Cache||pr),e}function ru(t){if("function"!=typeof t)throw new Kt(a);return function(){var n=arguments;switch(n.length){case 0:return!t.call(this);case 1:return!t.call(this,n[0]);case 2:return!t.call(this,n[0],n[1]);case 3:return!t.call(this,n[0],n[1],n[2])}return!t.apply(this,n)}}eu.Cache=pr;var iu=qi((function(t,n){var e=(n=1==n.length&&hu(n[0])?ee(n[0],_e(Co())):ee(zr(n,1),_e(Co()))).length;return vi((function(r){for(var i=-1,o=qe(r.length,e);++i=n})),fu=Kr(function(){return arguments}())?Kr:function(t){return Mu(t)&&on.call(t,"callee")&&!mn.call(t,"callee")},hu=r.isArray,du=Bn?_e(Bn):function(t){return Mu(t)&&Wr(t)==nt};function pu(t){return null!=t&&wu(t.length)&&!_u(t)}function gu(t){return Mu(t)&&pu(t)}var vu=ue||zc,yu=Hn?_e(Hn):function(t){return Mu(t)&&Wr(t)==z};function mu(t){if(!Mu(t))return!1;var n=Wr(t);return n==q||n==F||"string"==typeof t.message&&"string"==typeof t.name&&!ku(t)}function _u(t){if(!xu(t))return!1;var n=Wr(t);return n==j||n==B||n==D||n==G}function bu(t){return"number"==typeof t&&t==Du(t)}function wu(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=T}function xu(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)}function Mu(t){return null!=t&&"object"==typeof t}var Eu=Yn?_e(Yn):function(t){return Mu(t)&&Uo(t)==H};function Nu(t){return"number"==typeof t||Mu(t)&&Wr(t)==Y}function ku(t){if(!Mu(t)||Wr(t)!=W)return!1;var n=vn(t);if(null===n)return!0;var e=on.call(n,"constructor")&&n.constructor;return"function"==typeof e&&e instanceof e&&rn.call(e)==sn}var Tu=Vn?_e(Vn):function(t){return Mu(t)&&Wr(t)==$},Su=Wn?_e(Wn):function(t){return Mu(t)&&Uo(t)==Q};function Cu(t){return"string"==typeof t||!hu(t)&&Mu(t)&&Wr(t)==Z}function Au(t){return"symbol"==typeof t||Mu(t)&&Wr(t)==K}var Ru=Xn?_e(Xn):function(t){return Mu(t)&&wu(t.length)&&!!Cn[Wr(t)]},Pu=ho(ii),Iu=ho((function(t,n){return t<=n}));function Lu(t){if(!t)return[];if(pu(t))return Cu(t)?Le(t):$i(t);if(Mn&&t[Mn])return function(t){for(var n,e=[];!(n=t.next()).done;)e.push(n.value);return e}(t[Mn]());var n=Uo(t);return(n==H?Se:n==Q?Re:cc)(t)}function Uu(t){return t?(t=zu(t))===k||t===-k?(t<0?-1:1)*S:t==t?t:0:0===t?t:0}function Du(t){var n=Uu(t),e=n%1;return n==n?e?n-e:n:0}function Ou(t){return t?Sr(Du(t),0,A):0}function zu(t){if("number"==typeof t)return t;if(Au(t))return C;if(xu(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=xu(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Tt,"");var e=zt.test(t);return e||qt.test(t)?In(t.slice(2),e?2:8):Ot.test(t)?C:+t}function Fu(t){return Qi(t,tc(t))}function qu(t){return null==t?"":Ci(t)}var ju=Ki((function(t,n){if(Yo(n)||pu(n))Qi(n,Ju(n),t);else for(var e in n)on.call(n,e)&&xr(t,e,n[e])})),Bu=Ki((function(t,n){Qi(n,tc(n),t)})),Hu=Ki((function(t,n,e,r){Qi(n,tc(n),t,r)})),Yu=Ki((function(t,n,e,r){Qi(n,Ju(n),t,r)})),Vu=Mo(Tr),Wu=vi((function(t,n){t=$t(t);var e=-1,r=n.length,o=r>2?n[2]:i;for(o&&qo(n[0],n[1],o)&&(r=1);++e1),n})),Qi(t,No(t),e),r&&(e=Cr(e,s|l|f,wo));for(var i=n.length;i--;)Ri(e,n[i]);return e})),ic=Mo((function(t,n){return null==t?{}:function(t,n){return fi(t,n,(function(n,e){return $u(t,e)}))}(t,n)}));function oc(t,n){if(null==t)return{};var e=ee(No(t),(function(t){return[t]}));return n=Co(n),fi(t,e,(function(t,e){return n(t,e[0])}))}var ac=yo(Ju),uc=yo(tc);function cc(t){return null==t?[]:be(t,Ju(t))}var sc=eo((function(t,n,e){return n=n.toLowerCase(),t+(e?lc(n):n)}));function lc(t){return mc(qu(t).toLowerCase())}function fc(t){return(t=qu(t))&&t.replace(Bt,Ee).replace(xn,"")}var hc=eo((function(t,n,e){return t+(e?"-":"")+n.toLowerCase()})),dc=eo((function(t,n,e){return t+(e?" ":"")+n.toLowerCase()})),pc=no("toLowerCase"),gc=eo((function(t,n,e){return t+(e?"_":"")+n.toLowerCase()})),vc=eo((function(t,n,e){return t+(e?" ":"")+mc(n)})),yc=eo((function(t,n,e){return t+(e?" ":"")+n.toUpperCase()})),mc=no("toUpperCase");function _c(t,n,e){return t=qu(t),(n=e?i:n)===i?function(t){return kn.test(t)}(t)?function(t){return t.match(En)||[]}(t):function(t){return t.match(It)||[]}(t):t.match(n)||[]}var bc=vi((function(t,n){try{return Gn(t,i,n)}catch(t){return mu(t)?t:new Wt(t)}})),wc=Mo((function(t,n){return Qn(n,(function(n){n=oa(n),kr(t,n,Za(t[n],t))})),t}));function xc(t){return function(){return t}}var Mc=oo(),Ec=oo(!0);function Nc(t){return t}function kc(t){return ei("function"==typeof t?t:Cr(t,s))}var Tc=vi((function(t,n){return function(e){return Zr(e,t,n)}})),Sc=vi((function(t,n){return function(e){return Zr(t,e,n)}}));function Cc(t,n,e){var r=Ju(n),i=Hr(n,r);null!=e||xu(n)&&(i.length||!r.length)||(e=n,n=t,t=this,i=Hr(n,Ju(n)));var o=!(xu(e)&&"chain"in e&&!e.chain),a=_u(t);return Qn(i,(function(e){var r=n[e];t[e]=r,a&&(t.prototype[e]=function(){var n=this.__chain__;if(o||n){var e=t(this.__wrapped__);return(e.__actions__=$i(this.__actions__)).push({func:r,args:arguments,thisArg:t}),e.__chain__=n,e}return r.apply(t,re([this.value()],arguments))})})),t}function Ac(){}var Rc=so(ee),Pc=so(Kn),Ic=so(ae);function Lc(t){return jo(t)?pe(oa(t)):function(t){return function(n){return Yr(n,t)}}(t)}var Uc=fo(),Dc=fo(!0);function Oc(){return[]}function zc(){return!1}var Fc,qc=co((function(t,n){return t+n}),0),jc=go("ceil"),Bc=co((function(t,n){return t/n}),1),Hc=go("floor"),Yc=co((function(t,n){return t*n}),1),Vc=go("round"),Wc=co((function(t,n){return t-n}),0);return ur.after=function(t,n){if("function"!=typeof n)throw new Kt(a);return t=Du(t),function(){if(--t<1)return n.apply(this,arguments)}},ur.ary=$a,ur.assign=ju,ur.assignIn=Bu,ur.assignInWith=Hu,ur.assignWith=Yu,ur.at=Vu,ur.before=Qa,ur.bind=Za,ur.bindAll=wc,ur.bindKey=Ka,ur.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return hu(t)?t:[t]},ur.chain=La,ur.chunk=function(t,n,e){n=(e?qo(t,n,e):n===i)?1:Fe(Du(n),0);var o=null==t?0:t.length;if(!o||n<1)return[];for(var a=0,u=0,c=r(zn(o/n));ao?0:o+e),(r=r===i||r>o?o:Du(r))<0&&(r+=o),r=e>r?0:Ou(r);e>>0)?(t=qu(t))&&("string"==typeof n||null!=n&&!Tu(n))&&!(n=Ci(n))&&Te(t)?ji(Le(t),0,e):t.split(n,e):[]},ur.spread=function(t,n){if("function"!=typeof t)throw new Kt(a);return n=null==n?0:Fe(Du(n),0),vi((function(e){var r=e[n],i=ji(e,0,n);return r&&re(i,r),Gn(t,this,i)}))},ur.tail=function(t){var n=null==t?0:t.length;return n?Mi(t,1,n):[]},ur.take=function(t,n,e){return t&&t.length?Mi(t,0,(n=e||n===i?1:Du(n))<0?0:n):[]},ur.takeRight=function(t,n,e){var r=null==t?0:t.length;return r?Mi(t,(n=r-(n=e||n===i?1:Du(n)))<0?0:n,r):[]},ur.takeRightWhile=function(t,n){return t&&t.length?Ii(t,Co(n,3),!1,!0):[]},ur.takeWhile=function(t,n){return t&&t.length?Ii(t,Co(n,3)):[]},ur.tap=function(t,n){return n(t),t},ur.throttle=function(t,n,e){var r=!0,i=!0;if("function"!=typeof t)throw new Kt(a);return xu(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),Ja(t,n,{leading:r,maxWait:n,trailing:i})},ur.thru=Ua,ur.toArray=Lu,ur.toPairs=ac,ur.toPairsIn=uc,ur.toPath=function(t){return hu(t)?ee(t,oa):Au(t)?[t]:$i(ia(qu(t)))},ur.toPlainObject=Fu,ur.transform=function(t,n,e){var r=hu(t),i=r||vu(t)||Ru(t);if(n=Co(n,4),null==e){var o=t&&t.constructor;e=i?r?new o:[]:xu(t)&&_u(o)?cr(vn(t)):{}}return(i?Qn:jr)(t,(function(t,r,i){return n(e,t,r,i)})),e},ur.unary=function(t){return $a(t,1)},ur.union=Ma,ur.unionBy=Ea,ur.unionWith=Na,ur.uniq=function(t){return t&&t.length?Ai(t):[]},ur.uniqBy=function(t,n){return t&&t.length?Ai(t,Co(n,2)):[]},ur.uniqWith=function(t,n){return n="function"==typeof n?n:i,t&&t.length?Ai(t,i,n):[]},ur.unset=function(t,n){return null==t||Ri(t,n)},ur.unzip=ka,ur.unzipWith=Ta,ur.update=function(t,n,e){return null==t?t:Pi(t,n,zi(e))},ur.updateWith=function(t,n,e,r){return r="function"==typeof r?r:i,null==t?t:Pi(t,n,zi(e),r)},ur.values=cc,ur.valuesIn=function(t){return null==t?[]:be(t,tc(t))},ur.without=Sa,ur.words=_c,ur.wrap=function(t,n){return ou(zi(n),t)},ur.xor=Ca,ur.xorBy=Aa,ur.xorWith=Ra,ur.zip=Pa,ur.zipObject=function(t,n){return Di(t||[],n||[],xr)},ur.zipObjectDeep=function(t,n){return Di(t||[],n||[],_i)},ur.zipWith=Ia,ur.entries=ac,ur.entriesIn=uc,ur.extend=Bu,ur.extendWith=Hu,Cc(ur,ur),ur.add=qc,ur.attempt=bc,ur.camelCase=sc,ur.capitalize=lc,ur.ceil=jc,ur.clamp=function(t,n,e){return e===i&&(e=n,n=i),e!==i&&(e=(e=zu(e))==e?e:0),n!==i&&(n=(n=zu(n))==n?n:0),Sr(zu(t),n,e)},ur.clone=function(t){return Cr(t,f)},ur.cloneDeep=function(t){return Cr(t,s|f)},ur.cloneDeepWith=function(t,n){return Cr(t,s|f,n="function"==typeof n?n:i)},ur.cloneWith=function(t,n){return Cr(t,f,n="function"==typeof n?n:i)},ur.conformsTo=function(t,n){return null==n||Ar(t,n,Ju(n))},ur.deburr=fc,ur.defaultTo=function(t,n){return null==t||t!=t?n:t},ur.divide=Bc,ur.endsWith=function(t,n,e){t=qu(t),n=Ci(n);var r=t.length,o=e=e===i?r:Sr(Du(e),0,r);return(e-=n.length)>=0&&t.slice(e,o)==n},ur.eq=cu,ur.escape=function(t){return(t=qu(t))&&mt.test(t)?t.replace(vt,Ne):t},ur.escapeRegExp=function(t){return(t=qu(t))&&kt.test(t)?t.replace(Nt,"\\$&"):t},ur.every=function(t,n,e){var r=hu(t)?Kn:Ur;return e&&qo(t,n,e)&&(n=i),r(t,Co(n,3))},ur.find=za,ur.findIndex=fa,ur.findKey=function(t,n){return ce(t,Co(n,3),jr)},ur.findLast=Fa,ur.findLastIndex=ha,ur.findLastKey=function(t,n){return ce(t,Co(n,3),Br)},ur.floor=Hc,ur.forEach=qa,ur.forEachRight=ja,ur.forIn=function(t,n){return null==t?t:Fr(t,Co(n,3),tc)},ur.forInRight=function(t,n){return null==t?t:qr(t,Co(n,3),tc)},ur.forOwn=function(t,n){return t&&jr(t,Co(n,3))},ur.forOwnRight=function(t,n){return t&&Br(t,Co(n,3))},ur.get=Gu,ur.gt=su,ur.gte=lu,ur.has=function(t,n){return null!=t&&Do(t,n,Gr)},ur.hasIn=$u,ur.head=pa,ur.identity=Nc,ur.includes=function(t,n,e,r){t=pu(t)?t:cc(t),e=e&&!r?Du(e):0;var i=t.length;return e<0&&(e=Fe(i+e,0)),Cu(t)?e<=i&&t.indexOf(n,e)>-1:!!i&&le(t,n,e)>-1},ur.indexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var i=null==e?0:Du(e);return i<0&&(i=Fe(r+i,0)),le(t,n,i)},ur.inRange=function(t,n,e){return n=Uu(n),e===i?(e=n,n=0):e=Uu(e),function(t,n,e){return t>=qe(n,e)&&t=-T&&t<=T},ur.isSet=Su,ur.isString=Cu,ur.isSymbol=Au,ur.isTypedArray=Ru,ur.isUndefined=function(t){return t===i},ur.isWeakMap=function(t){return Mu(t)&&Uo(t)==tt},ur.isWeakSet=function(t){return Mu(t)&&"[object WeakSet]"==Wr(t)},ur.join=function(t,n){return null==t?"":Oe.call(t,n)},ur.kebabCase=hc,ur.last=ma,ur.lastIndexOf=function(t,n,e){var r=null==t?0:t.length;if(!r)return-1;var o=r;return e!==i&&(o=(o=Du(e))<0?Fe(r+o,0):qe(o,r-1)),n==n?function(t,n,e){for(var r=e+1;r--;)if(t[r]===n)return r;return r}(t,n,o):se(t,he,o,!0)},ur.lowerCase=dc,ur.lowerFirst=pc,ur.lt=Pu,ur.lte=Iu,ur.max=function(t){return t&&t.length?Dr(t,Nc,Xr):i},ur.maxBy=function(t,n){return t&&t.length?Dr(t,Co(n,2),Xr):i},ur.mean=function(t){return de(t,Nc)},ur.meanBy=function(t,n){return de(t,Co(n,2))},ur.min=function(t){return t&&t.length?Dr(t,Nc,ii):i},ur.minBy=function(t,n){return t&&t.length?Dr(t,Co(n,2),ii):i},ur.stubArray=Oc,ur.stubFalse=zc,ur.stubObject=function(){return{}},ur.stubString=function(){return""},ur.stubTrue=function(){return!0},ur.multiply=Yc,ur.nth=function(t,n){return t&&t.length?si(t,Du(n)):i},ur.noConflict=function(){return Dn._===this&&(Dn._=ln),this},ur.noop=Ac,ur.now=Ga,ur.pad=function(t,n,e){t=qu(t);var r=(n=Du(n))?Ie(t):0;if(!n||r>=n)return t;var i=(n-r)/2;return lo(qn(i),e)+t+lo(zn(i),e)},ur.padEnd=function(t,n,e){t=qu(t);var r=(n=Du(n))?Ie(t):0;return n&&rn){var r=t;t=n,n=r}if(e||t%1||n%1){var o=He();return qe(t+o*(n-t+Pn("1e-"+((o+"").length-1))),n)}return pi(t,n)},ur.reduce=function(t,n,e){var r=hu(t)?ie:ve,i=arguments.length<3;return r(t,Co(n,4),e,i,Ir)},ur.reduceRight=function(t,n,e){var r=hu(t)?oe:ve,i=arguments.length<3;return r(t,Co(n,4),e,i,Lr)},ur.repeat=function(t,n,e){return n=(e?qo(t,n,e):n===i)?1:Du(n),gi(qu(t),n)},ur.replace=function(){var t=arguments,n=qu(t[0]);return t.length<3?n:n.replace(t[1],t[2])},ur.result=function(t,n,e){var r=-1,o=(n=Fi(n,t)).length;for(o||(o=1,t=i);++rT)return[];var e=A,r=qe(t,A);n=Co(n),t-=A;for(var i=me(r,n);++e=a)return t;var c=e-Ie(r);if(c<1)return r;var s=u?ji(u,0,c).join(""):t.slice(0,c);if(o===i)return s+r;if(u&&(c+=s.length-c),Tu(o)){if(t.slice(c).search(o)){var l,f=s;for(o.global||(o=Qt(o.source,qu(Dt.exec(o))+"g")),o.lastIndex=0;l=o.exec(f);)var h=l.index;s=s.slice(0,h===i?c:h)}}else if(t.indexOf(Ci(o),c)!=c){var d=s.lastIndexOf(o);d>-1&&(s=s.slice(0,d))}return s+r},ur.unescape=function(t){return(t=qu(t))&&yt.test(t)?t.replace(gt,Ue):t},ur.uniqueId=function(t){var n=++an;return qu(t)+n},ur.upperCase=yc,ur.upperFirst=mc,ur.each=qa,ur.eachRight=ja,ur.first=pa,Cc(ur,(Fc={},jr(ur,(function(t,n){on.call(ur.prototype,n)||(Fc[n]=t)})),Fc),{chain:!1}),ur.VERSION="4.17.14",Qn(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){ur[t].placeholder=ur})),Qn(["drop","take"],(function(t,n){fr.prototype[t]=function(e){e=e===i?1:Fe(Du(e),0);var r=this.__filtered__&&!n?new fr(this):this.clone();return r.__filtered__?r.__takeCount__=qe(e,r.__takeCount__):r.__views__.push({size:qe(e,A),type:t+(r.__dir__<0?"Right":"")}),r},fr.prototype[t+"Right"]=function(n){return this.reverse()[t](n).reverse()}})),Qn(["filter","map","takeWhile"],(function(t,n){var e=n+1,r=1==e||3==e;fr.prototype[t]=function(t){var n=this.clone();return n.__iteratees__.push({iteratee:Co(t,3),type:e}),n.__filtered__=n.__filtered__||r,n}})),Qn(["head","last"],(function(t,n){var e="take"+(n?"Right":"");fr.prototype[t]=function(){return this[e](1).value()[0]}})),Qn(["initial","tail"],(function(t,n){var e="drop"+(n?"":"Right");fr.prototype[t]=function(){return this.__filtered__?new fr(this):this[e](1)}})),fr.prototype.compact=function(){return this.filter(Nc)},fr.prototype.find=function(t){return this.filter(t).head()},fr.prototype.findLast=function(t){return this.reverse().find(t)},fr.prototype.invokeMap=vi((function(t,n){return"function"==typeof t?new fr(this):this.map((function(e){return Zr(e,t,n)}))})),fr.prototype.reject=function(t){return this.filter(ru(Co(t)))},fr.prototype.slice=function(t,n){t=Du(t);var e=this;return e.__filtered__&&(t>0||n<0)?new fr(e):(t<0?e=e.takeRight(-t):t&&(e=e.drop(t)),n!==i&&(e=(n=Du(n))<0?e.dropRight(-n):e.take(n-t)),e)},fr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},fr.prototype.toArray=function(){return this.take(A)},jr(fr.prototype,(function(t,n){var e=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),o=ur[r?"take"+("last"==n?"Right":""):n],a=r||/^find/.test(n);o&&(ur.prototype[n]=function(){var n=this.__wrapped__,u=r?[1]:arguments,c=n instanceof fr,s=u[0],l=c||hu(n),f=function(t){var n=o.apply(ur,re([t],u));return r&&h?n[0]:n};l&&e&&"function"==typeof s&&1!=s.length&&(c=l=!1);var h=this.__chain__,d=!!this.__actions__.length,p=a&&!h,g=c&&!d;if(!a&&l){n=g?n:new fr(this);var v=t.apply(n,u);return v.__actions__.push({func:Ua,args:[f],thisArg:i}),new lr(v,h)}return p&&g?t.apply(this,u):(v=this.thru(f),p?r?v.value()[0]:v.value():v)})})),Qn(["pop","push","shift","sort","splice","unshift"],(function(t){var n=Jt[t],e=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);ur.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return n.apply(hu(i)?i:[],t)}return this[e]((function(e){return n.apply(hu(e)?e:[],t)}))}})),jr(fr.prototype,(function(t,n){var e=ur[n];if(e){var r=e.name+"";on.call(Ke,r)||(Ke[r]=[]),Ke[r].push({name:n,func:e})}})),Ke[ao(i,g).name]=[{name:"wrapper",func:i}],fr.prototype.clone=function(){var t=new fr(this.__wrapped__);return t.__actions__=$i(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=$i(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=$i(this.__views__),t},fr.prototype.reverse=function(){if(this.__filtered__){var t=new fr(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},fr.prototype.value=function(){var t=this.__wrapped__.value(),n=this.__dir__,e=hu(t),r=n<0,i=e?t.length:0,o=function(t,n,e){for(var r=-1,i=e.length;++r=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},ur.prototype.plant=function(t){for(var n,e=this;e instanceof sr;){var r=ua(e);r.__index__=0,r.__values__=i,n?o.__wrapped__=r:n=r;var o=r;e=e.__wrapped__}return o.__wrapped__=t,n},ur.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof fr){var n=t;return this.__actions__.length&&(n=new fr(this)),(n=n.reverse()).__actions__.push({func:Ua,args:[xa],thisArg:i}),new lr(n,this.__chain__)}return this.thru(xa)},ur.prototype.toJSON=ur.prototype.valueOf=ur.prototype.value=function(){return Li(this.__wrapped__,this.__actions__)},ur.prototype.first=ur.prototype.head,Mn&&(ur.prototype[Mn]=function(){return this}),ur}();Dn._=De,(r=function(){return De}.call(n,e,n,t))===i||(t.exports=r)}.call(this)},7418:t=>{"use strict";var n=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var n={},e=0;e<10;e++)n["_"+String.fromCharCode(e)]=e;if("0123456789"!==Object.getOwnPropertyNames(n).map((function(t){return n[t]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,i){for(var o,a,u=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),c=1;c{"use strict";var r=e(3759),i=e(7294),o=e(6508),a=e(7418),u=e(139),c=e(1003),s=e(9303),l=e(7476),f=e(3677);function h(t){for(var n=arguments.length-1,e="https://reactjs.org/docs/error-decoder.html?invariant="+t,i=0;ithis.eventPool.length&&this.eventPool.push(t)}function Nt(t){t.eventPool=[],t.getPooled=Mt,t.release=Et}a(xt.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=u.thatReturnsTrue)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=u.thatReturnsTrue)},persist:function(){this.isPersistent=u.thatReturnsTrue},isPersistent:u.thatReturnsFalse,destructor:function(){var t,n=this.constructor.Interface;for(t in n)this[t]=null;for(n=0;n=At),It=String.fromCharCode(32),Lt={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Ut=!1;function Dt(t,n){switch(t){case"keyup":return-1!==St.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Ot(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var zt=!1,Ft={eventTypes:Lt,extractEvents:function(t,n,e,r){var i=void 0,o=void 0;if(Ct)t:{switch(t){case"compositionstart":i=Lt.compositionStart;break t;case"compositionend":i=Lt.compositionEnd;break t;case"compositionupdate":i=Lt.compositionUpdate;break t}i=void 0}else zt?Dt(t,e)&&(i=Lt.compositionEnd):"keydown"===t&&229===e.keyCode&&(i=Lt.compositionStart);return i?(Pt&&(zt||i!==Lt.compositionStart?i===Lt.compositionEnd&&zt&&(o=mt()):(yt._root=r,yt._startText=_t(),zt=!0)),i=kt.getPooled(i,n,e,r),(o||null!==(o=Ot(e)))&&(i.data=o),et(i),o=i):o=null,(t=Rt?function(t,n){switch(t){case"compositionend":return Ot(n);case"keypress":return 32!==n.which?null:(Ut=!0,It);case"textInput":return(t=n.data)===It&&Ut?null:t;default:return null}}(t,e):function(t,n){if(zt)return"compositionend"===t||!Ct&&Dt(t,n)?(t=mt(),yt._root=null,yt._startText=null,yt._fallbackText=null,zt=!1,t):null;switch(t){case"paste":default:return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1




© 2015 - 2025 Weber Informatics LLC | Privacy Policy