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

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

/*! For license information please see query.js.LICENSE.txt */
(()=>{var t={5150:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PageTitle=void 0;var r,i=function(){function t(t,e){for(var n=0;n3e4)&&($("#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?a.default.createElement("span",{className:"status-light status-light-red",id:"status-indicator"}):a.default.createElement("span",{className:"status-light",id:"status-indicator"}):a.default.createElement("span",{className:"status-light status-light-green",id:"status-indicator"})}},{key:"render",value:function(){var t=this.state.info;return t?a.default.createElement("div",null,a.default.createElement("nav",{className:"navbar"},a.default.createElement("div",{className:"container-fluid"},a.default.createElement("div",{className:"navbar-header"},a.default.createElement("table",null,a.default.createElement("tbody",null,a.default.createElement("tr",null,a.default.createElement("td",null,a.default.createElement("a",{href:"/ui/"},a.default.createElement("img",{src:"assets/logo.png"}))),a.default.createElement("td",null,a.default.createElement("span",{className:"navbar-brand"},this.props.title)))))),a.default.createElement("div",{id:"navbar",className:"navbar-collapse collapse"},a.default.createElement("ul",{className:"nav navbar-nav navbar-right"},a.default.createElement("li",null,a.default.createElement("span",{className:"navbar-cluster-info"},a.default.createElement("span",{className:"uppercase"},"Version"),a.default.createElement("br",null),a.default.createElement("span",{className:"text uppercase",id:"version-number"},t.nodeVersion.version))),a.default.createElement("li",null,a.default.createElement("span",{className:"navbar-cluster-info"},a.default.createElement("span",{className:"uppercase"},"Environment"),a.default.createElement("br",null),a.default.createElement("span",{className:"text uppercase",id:"environment"},t.environment))),a.default.createElement("li",null,a.default.createElement("span",{className:"navbar-cluster-info"},a.default.createElement("span",{className:"uppercase"},"Uptime"),a.default.createElement("br",null),a.default.createElement("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Connection status"},this.renderStatusLight())," ",a.default.createElement("span",{className:"text",id:"uptime"},t.uptime))),a.default.createElement("li",null,a.default.createElement("span",{className:"navbar-cluster-info"},a.default.createElement("span",{className:"text",id:"logout"},a.default.createElement("a",{className:"btn btn-logout",href:"logout"},"Log Out")))))))),a.default.createElement("div",{id:"no-connection-modal",className:"modal",tabIndex:"-1",role:"dialog"},a.default.createElement("div",{className:"modal-dialog modal-sm",role:"document"},a.default.createElement("div",{className:"modal-content"},a.default.createElement("div",{className:"row error-message"},a.default.createElement("div",{className:"col-xs-12"},a.default.createElement("br",null),a.default.createElement("h4",null,"Unable to connect to server"),a.default.createElement("p",null,this.state.errorText?"Error: "+this.state.errorText:null))))))):null}}]),e}(a.default.Component)},9978:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QueryDetail=void 0;var r=function(){function t(t,e){for(var n=0;ni.length)return 1;for(var a=0;au?1:-1}return 0}},{key:"showPortNumbers",value:function(t){for(var e={},n=0;n=1e3){var a=Date.now(),u=(0,o.getStageNumber)(t.stageId);if(e.renderHistogram("#scheduled-time-histogram-"+u,r,o.formatDuration),e.renderHistogram("#cpu-time-histogram-"+u,i,o.formatDuration),this.state.expanded){for(var c={offset:{}},l=0;l=0){var p=((0,o.parseDuration)(t.queryStats.totalScheduledTime)-i)/(1e3*d),g=((0,o.parseDuration)(t.queryStats.totalCpuTime)-a)/(1e3*d),v=((0,o.parseDuration)(t.queryStats.physicalInputReadTime)-s)/1e3,y=(t.queryStats.processedInputPositions-u)/d,m=((0,o.parseDataSize)(t.queryStats.processedInputDataSize)-c)/d,_=v>0?((0,o.parseDataSize)(t.queryStats.physicalInputDataSize)-l)/v:0;this.setState({scheduledTimeRate:(0,o.addToHistory)(p,this.state.scheduledTimeRate),cpuTimeRate:(0,o.addToHistory)(g,this.state.cpuTimeRate),rowInputRate:(0,o.addToHistory)(y,this.state.rowInputRate),byteInputRate:(0,o.addToHistory)(m,this.state.byteInputRate),reservedMemory:(0,o.addToHistory)((0,o.parseDataSize)(t.queryStats.totalMemoryReservation),this.state.reservedMemory),physicalInputRate:(0,o.addToHistory)(_,this.state.physicalInputRate)})}this.resetTimer()}}.bind(this)).fail((function(){t.setState({initialized:!0}),t.resetTimer()}))}},{key:"handleStageRefreshClick",value:function(){this.state.stageRefresh?this.setState({stageRefresh:!1,lastSnapshotStages:this.state.query.outputStage}):this.setState({stageRefresh:!0})}},{key:"renderStageRefreshButton",value:function(){return this.state.stageRefresh?i.default.createElement("button",{className:"btn btn-info live-button",onClick:this.handleStageRefreshClick.bind(this)},"Auto-Refresh: On"):i.default.createElement("button",{className:"btn btn-info live-button",onClick:this.handleStageRefreshClick.bind(this)},"Auto-Refresh: Off")}},{key:"componentDidMount",value:function(){this.refreshLoop()}},{key:"componentDidUpdate",value:function(){if(null===this.state.lastRender||Date.now()-this.state.lastRender>=1e3||this.state.ended&&!this.state.renderingEnded){var t=Date.now();$("#scheduled-time-rate-sparkline").sparkline(this.state.scheduledTimeRate,$.extend({},x,{chartRangeMin:0,numberFormatter:o.precisionRound})),$("#cpu-time-rate-sparkline").sparkline(this.state.cpuTimeRate,$.extend({},x,{chartRangeMin:0,numberFormatter:o.precisionRound})),$("#row-input-rate-sparkline").sparkline(this.state.rowInputRate,$.extend({},x,{numberFormatter:o.formatCount})),$("#byte-input-rate-sparkline").sparkline(this.state.byteInputRate,$.extend({},x,{numberFormatter:o.formatDataSize})),$("#reserved-memory-sparkline").sparkline(this.state.reservedMemory,$.extend({},x,{numberFormatter:o.formatDataSize})),$("#physical-input-rate-sparkline").sparkline(this.state.physicalInputRate,$.extend({},x,{numberFormatter:o.formatDataSize})),null===this.state.lastRender&&($("#query").each((function(t,e){hljs.highlightBlock(e)})),$("#prepared-query").each((function(t,e){hljs.highlightBlock(e)}))),this.setState({renderingEnded:this.state.ended,lastRender:t})}$('[data-toggle="tooltip"]').tooltip(),new window.ClipboardJS(".copy-button")}},{key:"renderStages",value:function(t){if(null!==this.state.lastSnapshotStage)return i.default.createElement("div",null,i.default.createElement("div",{className:"row"},i.default.createElement("div",{className:"col-xs-9"},i.default.createElement("h3",null,"Stages")),i.default.createElement("div",{className:"col-xs-3"},i.default.createElement("table",{className:"header-inline-links"},i.default.createElement("tbody",null,i.default.createElement("tr",null,i.default.createElement("td",null,this.renderStageRefreshButton())))))),i.default.createElement("div",{className:"row"},i.default.createElement("div",{className:"col-xs-12"},i.default.createElement(w,{key:this.state.query.queryId,outputStage:this.state.lastSnapshotStage,taskRetriesEnabled:t}))))}},{key:"renderPreparedQuery",value:function(){var t=this.state.query;if(t.hasOwnProperty("preparedQuery")&&null!==t.preparedQuery)return i.default.createElement("div",{className:"col-xs-12"},i.default.createElement("h3",null,"Prepared Query",i.default.createElement("a",{className:"btn copy-button","data-clipboard-target":"#prepared-query-text","data-toggle":"tooltip","data-placement":"right",title:"Copy to clipboard"},i.default.createElement("span",{className:"glyphicon glyphicon-copy","aria-hidden":"true",alt:"Copy to clipboard"}))),i.default.createElement("pre",{id:"prepared-query"},i.default.createElement("code",{className:"lang-sql",id:"prepared-query-text"},t.preparedQuery)))}},{key:"renderSessionProperties",value:function(){var t=this.state.query,e=[];for(var n in t.session.systemProperties)t.session.systemProperties.hasOwnProperty(n)&&e.push(i.default.createElement("span",null,"- ",n+"="+t.session.systemProperties[n]," ",i.default.createElement("br",null)));for(var r in t.session.catalogProperties)if(t.session.catalogProperties.hasOwnProperty(r))for(var a in t.session.catalogProperties[r])t.session.catalogProperties[r].hasOwnProperty(a)&&e.push(i.default.createElement("span",null,"- ",r+"."+a+"="+t.session.catalogProperties[r][a]," ",i.default.createElement("br",null)));return e}},{key:"renderResourceEstimates",value:function(){var t=this.state.query,e=t.session.resourceEstimates,n=[];for(var r in e)if(e.hasOwnProperty(r)){for(var a=r.match(/([A-Z])/g)||[],o=r,u=0,c=a.length;u0?i.default.createElement("div",{className:"row"},i.default.createElement("div",{className:"col-xs-12"},i.default.createElement("h3",null,"Warnings"),i.default.createElement("hr",{className:"h3-hr"}),i.default.createElement("table",{className:"table",id:"warnings-table"},t.warnings.map((function(t){return i.default.createElement("tr",null,i.default.createElement("td",null,t.warningCode.name),i.default.createElement("td",null,t.message))}))))):null}},{key:"renderFailureInfo",value:function(){var t=this.state.query;return t.failureInfo?i.default.createElement("div",{className:"row"},i.default.createElement("div",{className:"col-xs-12"},i.default.createElement("h3",null,"Error Information"),i.default.createElement("hr",{className:"h3-hr"}),i.default.createElement("table",{className:"table"},i.default.createElement("tbody",null,i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Error Type"),i.default.createElement("td",{className:"info-text"},t.errorType)),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Error Code"),i.default.createElement("td",{className:"info-text"},t.errorCode.name+" ("+this.state.query.errorCode.code+")")),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Stack Trace",i.default.createElement("a",{className:"btn copy-button","data-clipboard-target":"#stack-trace","data-toggle":"tooltip","data-placement":"right",title:"Copy to clipboard"},i.default.createElement("span",{className:"glyphicon glyphicon-copy","aria-hidden":"true",alt:"Copy to clipboard"}))),i.default.createElement("td",{className:"info-text"},i.default.createElement("pre",{id:"stack-trace"},e.formatStackTrace(t.failureInfo)))))))):""}},{key:"render",value:function(){var t=this.state.query;if(null===t||!1===this.state.initialized){var e=i.default.createElement("div",{className:"loader"},"Loading...");return this.state.initialized&&(e="Query not found"),i.default.createElement("div",{className:"row error-message"},i.default.createElement("div",{className:"col-xs-12"},i.default.createElement("h4",null,e)))}var n="TASK"==t.retryPolicy;return i.default.createElement("div",null,i.default.createElement(u.QueryHeader,{query:t}),i.default.createElement("div",{className:"row"},i.default.createElement("div",{className:"col-xs-6"},i.default.createElement("h3",null,"Session"),i.default.createElement("hr",{className:"h3-hr"}),i.default.createElement("table",{className:"table"},i.default.createElement("tbody",null,i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"User"),i.default.createElement("td",{className:"info-text wrap-text"},i.default.createElement("span",{id:"query-user"},t.session.user),"  ",i.default.createElement("a",{href:"#",className:"copy-button","data-clipboard-target":"#query-user","data-toggle":"tooltip","data-placement":"right",title:"Copy to clipboard"},i.default.createElement("span",{className:"glyphicon glyphicon-copy","aria-hidden":"true",alt:"Copy to clipboard"})))),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Principal"),i.default.createElement("td",{className:"info-text wrap-text"},t.session.principal)),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Source"),i.default.createElement("td",{className:"info-text wrap-text"},t.session.source)),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Catalog"),i.default.createElement("td",{className:"info-text"},t.session.catalog)),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Schema"),i.default.createElement("td",{className:"info-text"},t.session.schema)),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Time zone"),i.default.createElement("td",{className:"info-text"},t.session.timeZone)),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Client Address"),i.default.createElement("td",{className:"info-text"},t.session.remoteUserAddress)),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Client Tags"),i.default.createElement("td",{className:"info-text"},t.session.clientTags.join(", "))),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Session Properties"),i.default.createElement("td",{className:"info-text wrap-text"},this.renderSessionProperties())),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Resource Estimates"),i.default.createElement("td",{className:"info-text wrap-text"},this.renderResourceEstimates()))))),i.default.createElement("div",{className:"col-xs-6"},i.default.createElement("h3",null,"Execution"),i.default.createElement("hr",{className:"h3-hr"}),i.default.createElement("table",{className:"table"},i.default.createElement("tbody",null,i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Resource Group"),i.default.createElement("td",{className:"info-text wrap-text"},t.resourceGroupId?t.resourceGroupId.join("."):"n/a")),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Submission Time"),i.default.createElement("td",{className:"info-text"},(0,o.formatShortDateTime)(new Date(t.queryStats.createTime)))),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Completion Time"),i.default.createElement("td",{className:"info-text"},t.queryStats.endTime?(0,o.formatShortDateTime)(new Date(t.queryStats.endTime)):"")),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Elapsed Time"),i.default.createElement("td",{className:"info-text"},t.queryStats.elapsedTime)),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Queued Time"),i.default.createElement("td",{className:"info-text"},t.queryStats.queuedTime)),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Analysis Time"),i.default.createElement("td",{className:"info-text"},t.queryStats.analysisTime)),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Planning Time"),i.default.createElement("td",{className:"info-text"},t.queryStats.planningTime)),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Execution Time"),i.default.createElement("td",{className:"info-text"},t.queryStats.executionTime)))))),i.default.createElement("div",{className:"row"},i.default.createElement("div",{className:"col-xs-12"},i.default.createElement("div",{className:"row"},i.default.createElement("div",{className:"col-xs-6"},i.default.createElement("h3",null,"Resource Utilization Summary"),i.default.createElement("hr",{className:"h3-hr"}),i.default.createElement("table",{className:"table"},i.default.createElement("tbody",null,i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"CPU Time"),i.default.createElement("td",{className:"info-text"},t.queryStats.totalCpuTime),n&&i.default.createElement("td",{className:"info-failed"},t.queryStats.failedCpuTime)),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Planning CPU Time"),i.default.createElement("td",{className:"info-text"},t.queryStats.planningCpuTime)),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Scheduled Time"),i.default.createElement("td",{className:"info-text"},t.queryStats.totalScheduledTime),n&&i.default.createElement("td",{className:"info-failed"},t.queryStats.failedScheduledTime)),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Input Rows"),i.default.createElement("td",{className:"info-text"},(0,o.formatCount)(t.queryStats.processedInputPositions)),n&&i.default.createElement("td",{className:"info-failed"},t.queryStats.failedProcessedInputPositions)),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Input Data"),i.default.createElement("td",{className:"info-text"},(0,o.parseAndFormatDataSize)(t.queryStats.processedInputDataSize)),n&&i.default.createElement("td",{className:"info-failed"},t.queryStats.failedProcessedInputDataSize)),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Physical Input Rows"),i.default.createElement("td",{className:"info-text"},(0,o.formatCount)(t.queryStats.physicalInputPositions)),n&&i.default.createElement("td",{className:"info-failed"},(0,o.formatCount)(t.queryStats.failedPhysicalInputPositions))),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Physical Input Data"),i.default.createElement("td",{className:"info-text"},(0,o.parseAndFormatDataSize)(t.queryStats.physicalInputDataSize)),n&&i.default.createElement("td",{className:"info-failed"},(0,o.parseAndFormatDataSize)(t.queryStats.failedPhysicalInputDataSize))),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Physical Input Read Time"),i.default.createElement("td",{className:"info-text"},t.queryStats.physicalInputReadTime),n&&i.default.createElement("td",{className:"info-failed"},t.queryStats.failedPhysicalInputReadTime)),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Internal Network Rows"),i.default.createElement("td",{className:"info-text"},(0,o.formatCount)(t.queryStats.internalNetworkInputPositions)),n&&i.default.createElement("td",{className:"info-failed"},(0,o.formatCount)(t.queryStats.failedInternalNetworkInputPositions))),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Internal Network Data"),i.default.createElement("td",{className:"info-text"},(0,o.parseAndFormatDataSize)(t.queryStats.internalNetworkInputDataSize)),n&&i.default.createElement("td",{className:"info-failed"},(0,o.parseAndFormatDataSize)(t.queryStats.failedInternalNetworkInputDataSize))),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Peak User Memory"),i.default.createElement("td",{className:"info-text"},(0,o.parseAndFormatDataSize)(t.queryStats.peakUserMemoryReservation))),(0,o.parseDataSize)(t.queryStats.peakRevocableMemoryReservation)>0&&i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Peak Revocable Memory"),i.default.createElement("td",{className:"info-text"},(0,o.parseAndFormatDataSize)(t.queryStats.peakRevocableMemoryReservation))),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Peak Total Memory"),i.default.createElement("td",{className:"info-text"},(0,o.parseAndFormatDataSize)(t.queryStats.peakTotalMemoryReservation))),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Cumulative User Memory"),i.default.createElement("td",{className:"info-text"},(0,o.formatDataSize)(t.queryStats.cumulativeUserMemory/1e3)+"*seconds"),n&&i.default.createElement("td",{className:"info-failed"},(0,o.formatDataSize)(t.queryStats.failedCumulativeUserMemory/1e3)+"*seconds")),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Output Rows"),i.default.createElement("td",{className:"info-text"},(0,o.formatCount)(t.queryStats.outputPositions)),n&&i.default.createElement("td",{className:"info-failed"},(0,o.formatCount)(t.queryStats.failedOutputPositions))),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Output Data"),i.default.createElement("td",{className:"info-text"},(0,o.parseAndFormatDataSize)(t.queryStats.outputDataSize)),n&&i.default.createElement("td",{className:"info-failed"},(0,o.parseAndFormatDataSize)(t.queryStats.failedOutputDataSize))),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Written Rows"),i.default.createElement("td",{className:"info-text"},(0,o.formatCount)(t.queryStats.writtenPositions))),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Logical Written Data"),i.default.createElement("td",{className:"info-text"},(0,o.parseAndFormatDataSize)(t.queryStats.logicalWrittenDataSize))),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Physical Written Data"),i.default.createElement("td",{className:"info-text"},(0,o.parseAndFormatDataSize)(t.queryStats.physicalWrittenDataSize)),n&&i.default.createElement("td",{className:"info-failed"},(0,o.parseAndFormatDataSize)(t.queryStats.failedPhysicalWrittenDataSize))),(0,o.parseDataSize)(t.queryStats.spilledDataSize)>0&&i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Spilled Data"),i.default.createElement("td",{className:"info-text"},(0,o.parseAndFormatDataSize)(t.queryStats.spilledDataSize)))))),i.default.createElement("div",{className:"col-xs-6"},i.default.createElement("h3",null,"Timeline"),i.default.createElement("hr",{className:"h3-hr"}),i.default.createElement("table",{className:"table"},i.default.createElement("tbody",null,i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Parallelism"),i.default.createElement("td",{rowSpan:"2"},i.default.createElement("div",{className:"query-stats-sparkline-container"},i.default.createElement("span",{className:"sparkline",id:"cpu-time-rate-sparkline"},i.default.createElement("div",{className:"loader"},"Loading ..."))))),i.default.createElement("tr",{className:"tr-noborder"},i.default.createElement("td",{className:"info-sparkline-text"},(0,o.formatCount)(this.state.cpuTimeRate[this.state.cpuTimeRate.length-1]))),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Scheduled Time/s"),i.default.createElement("td",{rowSpan:"2"},i.default.createElement("div",{className:"query-stats-sparkline-container"},i.default.createElement("span",{className:"sparkline",id:"scheduled-time-rate-sparkline"},i.default.createElement("div",{className:"loader"},"Loading ..."))))),i.default.createElement("tr",{className:"tr-noborder"},i.default.createElement("td",{className:"info-sparkline-text"},(0,o.formatCount)(this.state.scheduledTimeRate[this.state.scheduledTimeRate.length-1]))),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Input Rows/s"),i.default.createElement("td",{rowSpan:"2"},i.default.createElement("div",{className:"query-stats-sparkline-container"},i.default.createElement("span",{className:"sparkline",id:"row-input-rate-sparkline"},i.default.createElement("div",{className:"loader"},"Loading ..."))))),i.default.createElement("tr",{className:"tr-noborder"},i.default.createElement("td",{className:"info-sparkline-text"},(0,o.formatCount)(this.state.rowInputRate[this.state.rowInputRate.length-1]))),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Input Bytes/s"),i.default.createElement("td",{rowSpan:"2"},i.default.createElement("div",{className:"query-stats-sparkline-container"},i.default.createElement("span",{className:"sparkline",id:"byte-input-rate-sparkline"},i.default.createElement("div",{className:"loader"},"Loading ..."))))),i.default.createElement("tr",{className:"tr-noborder"},i.default.createElement("td",{className:"info-sparkline-text"},(0,o.formatDataSize)(this.state.byteInputRate[this.state.byteInputRate.length-1]))),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Physical Input Bytes/s"),i.default.createElement("td",{rowSpan:"2"},i.default.createElement("div",{className:"query-stats-sparkline-container"},i.default.createElement("span",{className:"sparkline",id:"physical-input-rate-sparkline"},i.default.createElement("div",{className:"loader"},"Loading ..."))))),i.default.createElement("tr",{className:"tr-noborder"},i.default.createElement("td",{className:"info-sparkline-text"},(0,o.formatDataSize)(this.state.physicalInputRate[this.state.physicalInputRate.length-1]))),i.default.createElement("tr",null,i.default.createElement("td",{className:"info-title"},"Memory Utilization"),i.default.createElement("td",{rowSpan:"2"},i.default.createElement("div",{className:"query-stats-sparkline-container"},i.default.createElement("span",{className:"sparkline",id:"reserved-memory-sparkline"},i.default.createElement("div",{className:"loader"},"Loading ..."))))),i.default.createElement("tr",{className:"tr-noborder"},i.default.createElement("td",{className:"info-sparkline-text"},(0,o.formatDataSize)(this.state.reservedMemory[this.state.reservedMemory.length-1]))))))))),this.renderWarningInfo(),this.renderFailureInfo(),i.default.createElement("div",{className:"row"},i.default.createElement("div",{className:"col-xs-12"},i.default.createElement("h3",null,"Query",i.default.createElement("a",{className:"btn copy-button","data-clipboard-target":"#query-text","data-toggle":"tooltip","data-placement":"right",title:"Copy to clipboard"},i.default.createElement("span",{className:"glyphicon glyphicon-copy","aria-hidden":"true",alt:"Copy to clipboard"}))),i.default.createElement("pre",{id:"query"},i.default.createElement("code",{className:"lang-sql",id:"query-text"},t.query))),this.renderPreparedQuery()),this.renderStages(n))}}],[{key:"formatStackTrace",value:function(t){return e.formatStackTraceHelper(t,[],"","")}},{key:"formatStackTraceHelper",value:function(t,n,r,i){var a=i+r+e.failureInfoToString(t)+"\n";if(t.stack){var o=0;null!==n&&(o=e.countSharedStackFrames(t.stack,n));for(var u=0;u{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.QueryHeader=void 0;var r,i=function(){function t(t,e){for(var n=0;n{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GLYPHICON_HIGHLIGHT=e.GLYPHICON_DEFAULT=void 0,e.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}},e.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"}},e.getHumanReadableState=c,e.getProgressBarPercentage=l,e.getProgressBarTitle=function(t,e){return t.queryStats.progressPercentage&&"RUNNING"===t.state?c(t,e)+" ("+l(t)+"%)":c(t,e)},e.isQueryEnded=function(t){return["FINISHED","FAILED","CANCELED"].indexOf(t.state)>-1},e.addToHistory=function(t,e){return 0===e.length?e.concat([t]):e.concat([t]).slice(Math.max(e.length-s,0))},e.addExponentiallyWeightedToHistory=function(t,e){if(0===e.length)return e.concat([t]);var n=t*f+e[e.length-1]*(1-f);return t<1&&(n=0),e.concat([n]).slice(Math.max(e.length-s,0))},e.initializeGraph=function(){return new r.graphlib.Graph({compound:!0}).setGraph({rankdir:"BT"}).setDefaultEdgeLabel((function(){return{}}))},e.initializeSvg=function(t){var e=i.select(t);return e.append("g"),e},e.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[]},e.truncateString=function(t,e){return t&&t.length>e?t.substring(0,e)+"...":t},e.getStageNumber=function(t){return Number.parseInt(t.slice(t.indexOf(".")+1,t.length))},e.getTaskIdSuffix=h,e.getTaskNumber=function(t){return Number.parseInt(h(h(t)))},e.getFirstParameter=function(t){var e=t.substring(1);return-1!==e.indexOf("&")?e.substring(0,e.indexOf("&")):e},e.getHostname=function(t){var e=new URL(t).hostname;return"["===e.charAt(0)&&"]"===e.charAt(e.length-1)&&(e=e.substr(1,e.length-2)),e},e.getPort=function(t){return new URL(t).port},e.getHostAndPort=function(t){var e=new URL(t);return e.hostname+":"+e.port},e.computeRate=function(t,e){return 0===e?0:t/e*1e3},e.precisionRound=d,e.formatDuration=function(t){var e="ms";return t>1e3&&(t/=1e3,e="s"),"s"===e&&t>60&&(t/=60,e="m"),"m"===e&&t>60&&(t/=60,e="h"),"h"===e&&t>24&&(t/=24,e="d"),"d"===e&&t>7&&(t/=7,e="w"),d(t)+e},e.formatRows=function(t){return 1===t?"1 row":p(t)+" rows"},e.formatCount=p,e.formatDataSizeBytes=function(t){return v(t,"")},e.formatDataSize=g,e.parseDataSize=y,e.parseAndFormatDataSize=function(t){var e=y(t);return null==e?"":g(e)},e.parseDuration=function(t){var e=/^\s*(\d+(?:\.\d+)?)\s*([a-zA-Z]+)\s*$/.exec(t);if(null===e)return null;var n=parseFloat(e[1]);switch(e[2]){case"ns":return n/1e6;case"us":return n/1e3;case"ms":return n;case"s":return 1e3*n;case"m":return 1e3*n*60;case"h":return 1e3*n*60*60;case"d":return 1e3*n*60*60*24;default:return null}},e.formatShortTime=m,e.formatShortDateTime=function(t){var e=t.getFullYear(),n=""+(t.getMonth()+1),r=""+t.getDate();return e+"-"+(n[1]?n:"0"+n[0])+"-"+(r[1]?r:"0"+r[0])+" "+m(t)};var r=a(n(4949)),i=a(n(9808));function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}e.GLYPHICON_DEFAULT={color:"#1edcff"},e.GLYPHICON_HIGHLIGHT={color:"#999999"};var o="—",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,e){if("RUNNING"===t.state){var n="RUNNING";if(t.scheduled&&t.queryStats.totalDrivers>0&&t.queryStats.runningDrivers>=0)return t.queryStats.fullyBlocked&&(n="BLOCKED",t.queryStats.blockedReasons&&t.queryStats.blockedReasons.length>0&&(n+=" ("+t.queryStats.blockedReasons.join(", ")+")")),"reserved"===t.memoryPool&&(n+=" (RESERVED)"),n}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 e&&t.errorCode&&t.errorCode.name&&(r+=" "+o+" "+t.errorCode.name),r}return t.state}function l(t){var e=t.queryStats.progressPercentage;return e&&"RUNNING"===t.state?Math.round(e):100}var s=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 e="";return t>1e3&&(t/=1e3,e="K"),t>1e3&&(t/=1e3,e="M"),t>1e3&&(t/=1e3,e="B"),t>1e3&&(t/=1e3,e="T"),t>1e3&&(t/=1e3,e="Q"),d(t)+e}function g(t){return v(t,"B")}function v(t,e){var n=e;return 0===t?"0"+n:(t>=1024&&(t/=1024,n="K"+e),t>=1024&&(t/=1024,n="M"+e),t>=1024&&(t/=1024,n="G"+e),t>=1024&&(t/=1024,n="T"+e),t>=1024&&(t/=1024,n="P"+e),d(t)+n)}function y(t){var e=/^\s*(\d+(?:\.\d+)?)\s*([a-zA-Z]+)\s*$/.exec(t);if(null===e)return null;var n=parseFloat(e[1]);switch(e[2]){case"B":return n;case"kB":return n*Math.pow(2,10);case"MB":return n*Math.pow(2,20);case"GB":return n*Math.pow(2,30);case"TB":return n*Math.pow(2,40);case"PB":return n*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,e,n)=>{"use strict";n.d(e,{qh:()=>m,XP:()=>v,UI:()=>o,b1:()=>u,t8:()=>g,VO:()=>y});var r="$";function i(){}function a(t,e){var n=new i;if(t instanceof i)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,a=-1,o=t.length;if(null==e)for(;++a=r.length)return null!=t&&n.sort(t),null!=e?e(n):n;for(var l,s,f,h=-1,d=n.length,p=r[i++],g=o(),v=u();++hr.length)return t;var a,o=i[n-1];return null!=e&&n>=r.length?a=t.entries():(a=[],t.each((function(t,e){a.push({key:e,values:u(t,n)})}))),null!=o?a.sort((function(t,e){return o(t.key,e.key)})):a}return n={object:function(t){return a(t,0,c,l)},map:function(t){return a(t,0,s,f)},entries:function(t){return u(a(t,0,s,f),0)},key:function(t){return r.push(t),n},sortKeys:function(t){return i[r.length-1]=t,n},sortValues:function(e){return t=e,n},rollup:function(t){return e=t,n}}}function c(){return{}}function l(t,e,n){t[e]=n}function s(){return o()}function f(t,e,n){t.set(e,n)}function h(){}var d=o.prototype;function p(t,e){var n=new h;if(t instanceof h)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)for(;++r{"use strict";n.d(e,{W:()=>c});var r={value:function(){}};function i(){for(var t,e=0,n=arguments.length,r={};e=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),c=-1,l=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++c0)for(var n,r,i=new Array(n),a=0;a{"use strict";n.d(e,{Sf:()=>d,Jb:()=>p,ue:()=>f,Bj:()=>h,yv:()=>l,vP:()=>m,n5:()=>_,tJ:()=>v,E0:()=>y});var r={},i={},a=34,o=10,u=13;function c(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+"]"})).join(",")+"}")}function l(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function l(t,e){var c,l=[],s=t.length,f=0,h=0,d=s<=0,p=!1;function g(){if(d)return i;if(p)return p=!1,r;var e,c,l=f;if(t.charCodeAt(l)===a){for(;f++=s?d=!0:(c=t.charCodeAt(f++))===o?p=!0:c===u&&(p=!0,t.charCodeAt(f)===o&&++f),t.slice(l+1,e-1).replace(/""/g,'"')}for(;f{"use strict";n.r(e),n.d(e,{active:()=>Ha,arc:()=>rb,area:()=>lb,areaRadial:()=>mb,ascending:()=>i,axisBottom:()=>ct,axisLeft:()=>lt,axisRight:()=>ut,axisTop:()=>ot,bisect:()=>l,bisectLeft:()=>c,bisectRight:()=>u,bisector:()=>a,blob:()=>ru,brush:()=>go,brushSelection:()=>fo,brushX:()=>ho,brushY:()=>po,buffer:()=>au,chord:()=>Eo,clientPoint:()=>Pe,cluster:()=>pd,color:()=>fn,contourDensity:()=>tu,contours:()=>$o,create:()=>Ne,creator:()=>vt,cross:()=>h,csv:()=>su,csvFormat:()=>eu.Sf,csvFormatRows:()=>eu.Jb,csvParse:()=>eu.ue,csvParseRows:()=>eu.Bj,cubehelix:()=>Zn,curveBasis:()=>Kb,curveBasisClosed:()=>tw,curveBasisOpen:()=>nw,curveBundle:()=>iw,curveCardinal:()=>uw,curveCardinalClosed:()=>lw,curveCardinalOpen:()=>fw,curveCatmullRom:()=>pw,curveCatmullRomClosed:()=>vw,curveCatmullRomOpen:()=>mw,curveLinear:()=>ab,curveLinearClosed:()=>bw,curveMonotoneX:()=>Tw,curveMonotoneY:()=>Cw,curveNatural:()=>Rw,curveStep:()=>Ow,curveStepAfter:()=>Lw,curveStepBefore:()=>Dw,customEvent:()=>ye,descending:()=>d,deviation:()=>v,dispatch:()=>st.W,drag:()=>We,dragDisable:()=>ze,dragEnable:()=>Fe,dsv:()=>lu,dsvFormat:()=>eu.yv,easeBack:()=>Da,easeBackIn:()=>Ia,easeBackInOut:()=>Da,easeBackOut:()=>Oa,easeBounce:()=>Aa,easeBounceIn:()=>Ca,easeBounceInOut:()=>Pa,easeBounceOut:()=>Aa,easeCircle:()=>ma,easeCircleIn:()=>va,easeCircleInOut:()=>ma,easeCircleOut:()=>ya,easeCubic:()=>ia,easeCubicIn:()=>na,easeCubicInOut:()=>ia,easeCubicOut:()=>ra,easeElastic:()=>za,easeElasticIn:()=>Ua,easeElasticInOut:()=>Fa,easeElasticOut:()=>za,easeExp:()=>ga,easeExpIn:()=>da,easeExpInOut:()=>ga,easeExpOut:()=>pa,easeLinear:()=>Ki,easePoly:()=>ua,easePolyIn:()=>aa,easePolyInOut:()=>ua,easePolyOut:()=>oa,easeQuad:()=>ea,easeQuadIn:()=>Ji,easeQuadInOut:()=>ea,easeQuadOut:()=>ta,easeSin:()=>ha,easeSinIn:()=>sa,easeSinInOut:()=>ha,easeSinOut:()=>fa,entries:()=>Fo.qh,event:()=>he,extent:()=>y,forceCenter:()=>_u,forceCollide:()=>Ru,forceLink:()=>Du,forceManyBody:()=>ju,forceRadial:()=>Bu,forceSimulation:()=>qu,forceX:()=>Hu,forceY:()=>Yu,format:()=>ec,formatDefaultLocale:()=>ac,formatLocale:()=>ic,formatPrefix:()=>nc,formatSpecifier:()=>Gu,geoAlbers:()=>Th,geoAlbersUsa:()=>Ch,geoArea:()=>el,geoAzimuthalEqualArea:()=>Ih,geoAzimuthalEqualAreaRaw:()=>Rh,geoAzimuthalEquidistant:()=>Dh,geoAzimuthalEquidistantRaw:()=>Oh,geoBounds:()=>Xl,geoCentroid:()=>as,geoCircle:()=>vs,geoClipAntimeridian:()=>Ss,geoClipCircle:()=>Ts,geoClipExtent:()=>Rs,geoClipRectangle:()=>Ps,geoConicConformal:()=>jh,geoConicConformalRaw:()=>qh,geoConicEqualArea:()=>Sh,geoConicEqualAreaRaw:()=>Nh,geoConicEquidistant:()=>Vh,geoConicEquidistantRaw:()=>Yh,geoContains:()=>Js,geoDistance:()=>Ys,geoEqualEarth:()=>Kh,geoEqualEarthRaw:()=>Zh,geoEquirectangular:()=>Hh,geoEquirectangularRaw:()=>Bh,geoGnomonic:()=>td,geoGnomonicRaw:()=>Jh,geoGraticule:()=>nf,geoGraticule10:()=>rf,geoIdentity:()=>nd,geoInterpolate:()=>af,geoLength:()=>js,geoMercator:()=>Uh,geoMercatorRaw:()=>Lh,geoNaturalEarth1:()=>id,geoNaturalEarth1Raw:()=>rd,geoOrthographic:()=>od,geoOrthographicRaw:()=>ad,geoPath:()=>ch,geoProjection:()=>Eh,geoProjectionMutator:()=>Mh,geoRotation:()=>ds,geoStereographic:()=>cd,geoStereographicRaw:()=>ud,geoStream:()=>Bc,geoTransform:()=>lh,geoTransverseMercator:()=>sd,geoTransverseMercatorRaw:()=>ld,gray:()=>Rn,hcl:()=>jn,hierarchy:()=>vd,histogram:()=>P,hsl:()=>_n,html:()=>yu,image:()=>hu,interpolate:()=>yr,interpolateArray:()=>sr,interpolateBasis:()=>tr,interpolateBasisClosed:()=>er,interpolateBlues:()=>d_,interpolateBrBG:()=>km,interpolateBuGn:()=>Hm,interpolateBuPu:()=>Vm,interpolateCool:()=>N_,interpolateCubehelix:()=>Vr,interpolateCubehelixDefault:()=>M_,interpolateCubehelixLong:()=>Wr,interpolateDate:()=>fr,interpolateDiscrete:()=>mr,interpolateGnBu:()=>Xm,interpolateGreens:()=>g_,interpolateGreys:()=>y_,interpolateHcl:()=>Br,interpolateHclLong:()=>Hr,interpolateHsl:()=>zr,interpolateHslLong:()=>Fr,interpolateHue:()=>_r,interpolateInferno:()=>L_,interpolateLab:()=>qr,interpolateMagma:()=>D_,interpolateNumber:()=>hr,interpolateObject:()=>dr,interpolateOrRd:()=>Gm,interpolateOranges:()=>E_,interpolatePRGn:()=>Sm,interpolatePiYG:()=>Cm,interpolatePlasma:()=>U_,interpolatePuBu:()=>Jm,interpolatePuBuGn:()=>Zm,interpolatePuOr:()=>Pm,interpolatePuRd:()=>e_,interpolatePurples:()=>__,interpolateRainbow:()=>T_,interpolateRdBu:()=>Im,interpolateRdGy:()=>Dm,interpolateRdPu:()=>r_,interpolateRdYlBu:()=>Um,interpolateRdYlGn:()=>Fm,interpolateReds:()=>w_,interpolateRgb:()=>or,interpolateRgbBasis:()=>cr,interpolateRgbBasisClosed:()=>lr,interpolateRound:()=>br,interpolateSinebow:()=>R_,interpolateSpectral:()=>jm,interpolateString:()=>vr,interpolateTransformCss:()=>Cr,interpolateTransformSvg:()=>Ar,interpolateViridis:()=>O_,interpolateWarm:()=>k_,interpolateYlGn:()=>u_,interpolateYlGnBu:()=>a_,interpolateYlOrBr:()=>l_,interpolateYlOrRd:()=>f_,interpolateZoom:()=>Lr,interrupt:()=>Ci,interval:()=>gi,isoFormat:()=>Qy,isoParse:()=>Ky,json:()=>pu,keys:()=>Fo.XP,lab:()=>In,lch:()=>qn,line:()=>cb,lineRadial:()=>yb,linkHorizontal:()=>Sb,linkRadial:()=>Cb,linkVertical:()=>Tb,local:()=>Te,map:()=>Fo.UI,matcher:()=>Mt,max:()=>D,mean:()=>L,median:()=>U,merge:()=>z,min:()=>F,mouse:()=>Re,namespace:()=>dt,namespaces:()=>ht,nest:()=>Fo.b1,now:()=>oi,pack:()=>qd,packEnclose:()=>xd,packSiblings:()=>Dd,pairs:()=>s,partition:()=>Wd,path:()=>Ro,permute:()=>q,pie:()=>hb,piecewise:()=>Xr,pointRadial:()=>_b,polygonArea:()=>pp,polygonCentroid:()=>gp,polygonContains:()=>bp,polygonHull:()=>_p,polygonLength:()=>wp,precisionFixed:()=>oc,precisionPrefix:()=>uc,precisionRound:()=>cc,quadtree:()=>Nu,quantile:()=>R,quantize:()=>$r,radialArea:()=>mb,radialLine:()=>yb,randomBates:()=>Sp,randomExponential:()=>Tp,randomIrwinHall:()=>Np,randomLogNormal:()=>kp,randomNormal:()=>Mp,randomUniform:()=>Ep,range:()=>E,rgb:()=>gn,ribbon:()=>zo,scaleBand:()=>Op,scaleDiverging:()=>hm,scaleIdentity:()=>Xp,scaleImplicit:()=>Rp,scaleLinear:()=>Wp,scaleLog:()=>eg,scaleOrdinal:()=>Ip,scalePoint:()=>Lp,scalePow:()=>rg,scaleQuantile:()=>ag,scaleQuantize:()=>og,scaleSequential:()=>fm,scaleSqrt:()=>ig,scaleThreshold:()=>ug,scaleTime:()=>lm,scaleUtc:()=>sm,scan:()=>j,schemeAccent:()=>gm,schemeBlues:()=>h_,schemeBrBG:()=>Mm,schemeBuGn:()=>Bm,schemeBuPu:()=>Ym,schemeCategory10:()=>pm,schemeDark2:()=>vm,schemeGnBu:()=>Wm,schemeGreens:()=>p_,schemeGreys:()=>v_,schemeOrRd:()=>$m,schemeOranges:()=>x_,schemePRGn:()=>Nm,schemePaired:()=>ym,schemePastel1:()=>mm,schemePastel2:()=>_m,schemePiYG:()=>Tm,schemePuBu:()=>Km,schemePuBuGn:()=>Qm,schemePuOr:()=>Am,schemePuRd:()=>t_,schemePurples:()=>m_,schemeRdBu:()=>Rm,schemeRdGy:()=>Om,schemeRdPu:()=>n_,schemeRdYlBu:()=>Lm,schemeRdYlGn:()=>zm,schemeReds:()=>b_,schemeSet1:()=>bm,schemeSet2:()=>wm,schemeSet3:()=>xm,schemeSpectral:()=>qm,schemeYlGn:()=>o_,schemeYlGnBu:()=>i_,schemeYlOrBr:()=>c_,schemeYlOrRd:()=>s_,select:()=>ke,selectAll:()=>Ie,selection:()=>Me,selector:()=>mt,selectorAll:()=>bt,set:()=>Fo.t8,shuffle:()=>B,stack:()=>qw,stackOffsetDiverging:()=>Bw,stackOffsetExpand:()=>jw,stackOffsetNone:()=>Uw,stackOffsetSilhouette:()=>Hw,stackOffsetWiggle:()=>Yw,stackOrderAscending:()=>Vw,stackOrderDescending:()=>Xw,stackOrderInsideOut:()=>$w,stackOrderNone:()=>zw,stackOrderReverse:()=>Gw,stratify:()=>Kd,style:()=>jt,sum:()=>H,svg:()=>mu,symbol:()=>$b,symbolCircle:()=>Ab,symbolCross:()=>Pb,symbolDiamond:()=>Ob,symbolSquare:()=>Fb,symbolStar:()=>zb,symbolTriangle:()=>jb,symbolWye:()=>Wb,symbols:()=>Xb,text:()=>uu,thresholdFreedmanDiaconis:()=>I,thresholdScott:()=>O,thresholdSturges:()=>A,tickIncrement:()=>T,tickStep:()=>C,ticks:()=>S,timeDay:()=>Cg,timeDays:()=>Ag,timeFormat:()=>Iv,timeFormatDefaultLocale:()=>Xy,timeFormatLocale:()=>Pv,timeFriday:()=>Ug,timeFridays:()=>Yg,timeHour:()=>Ng,timeHours:()=>Sg,timeInterval:()=>sg,timeMillisecond:()=>hg,timeMilliseconds:()=>dg,timeMinute:()=>Eg,timeMinutes:()=>Mg,timeMonday:()=>Ig,timeMondays:()=>qg,timeMonth:()=>Xg,timeMonths:()=>$g,timeParse:()=>Ov,timeSaturday:()=>zg,timeSaturdays:()=>Vg,timeSecond:()=>bg,timeSeconds:()=>wg,timeSunday:()=>Rg,timeSundays:()=>Fg,timeThursday:()=>Lg,timeThursdays:()=>Hg,timeTuesday:()=>Og,timeTuesdays:()=>jg,timeWednesday:()=>Dg,timeWednesdays:()=>Bg,timeWeek:()=>Rg,timeWeeks:()=>Fg,timeYear:()=>Qg,timeYears:()=>Zg,timeout:()=>pi,timer:()=>li,timerFlush:()=>si,touch:()=>Oe,touches:()=>De,transition:()=>Gi,transpose:()=>Y,tree:()=>ap,treemap:()=>sp,treemapBinary:()=>fp,treemapDice:()=>Vd,treemapResquarify:()=>dp,treemapSlice:()=>op,treemapSliceDice:()=>hp,treemapSquarify:()=>lp,tsv:()=>fu,tsvFormat:()=>eu.vP,tsvFormatRows:()=>eu.n5,tsvParse:()=>eu.tJ,tsvParseRows:()=>eu.E0,utcDay:()=>av,utcDays:()=>ov,utcFormat:()=>Dv,utcFriday:()=>dv,utcFridays:()=>bv,utcHour:()=>nv,utcHours:()=>rv,utcMillisecond:()=>hg,utcMilliseconds:()=>dg,utcMinute:()=>Jg,utcMinutes:()=>tv,utcMonday:()=>lv,utcMondays:()=>vv,utcMonth:()=>Ev,utcMonths:()=>Mv,utcParse:()=>Lv,utcSaturday:()=>pv,utcSaturdays:()=>wv,utcSecond:()=>bg,utcSeconds:()=>wg,utcSunday:()=>cv,utcSundays:()=>gv,utcThursday:()=>hv,utcThursdays:()=>_v,utcTuesday:()=>sv,utcTuesdays:()=>yv,utcWednesday:()=>fv,utcWednesdays:()=>mv,utcWeek:()=>cv,utcWeeks:()=>gv,utcYear:()=>Nv,utcYears:()=>Sv,values:()=>Fo.VO,variance:()=>g,version:()=>r,voronoi:()=>Dx,window:()=>Ut,xml:()=>vu,zip:()=>W,zoom:()=>Gx,zoomIdentity:()=>Fx,zoomTransform:()=>qx});var r="5.7.0";function i(t,e){return te?1:t>=e?0:NaN}function a(t){var e;return 1===t.length&&(e=t,t=function(t,n){return i(e(t),n)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)>0?i=a:r=a+1}return r}}}var o=a(i),u=o.right,c=o.left;const l=u;function s(t,e){null==e&&(e=f);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);nt?1:e>=t?0:NaN}function p(t){return null===t?NaN:+t}function g(t,e){var n,r,i=t.length,a=0,o=-1,u=0,c=0;if(null==e)for(;++o1)return c/(a-1)}function v(t,e){var n=g(t,e);return n?Math.sqrt(n):n}function y(t,e){var n,r,i,a=t.length,o=-1;if(null==e){for(;++o=n)for(r=i=n;++on&&(r=n),i=n)for(r=i=n;++on&&(r=n),i0)return[t];if((r=e0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++u=0?(a>=M?10:a>=k?5:a>=N?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=M?10:a>=k?5:a>=N?2:1)}function C(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=M?i*=10:a>=k?i*=5:a>=N&&(i*=2),ef;)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]:s,p.x1=i=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,a=Math.floor(i),o=+n(t[a],a,t);return o+(+n(t[a+1],a+1,t)-o)*(i-a)}}function I(t,e,n){return t=b.call(t,p).sort(i),Math.ceil((n-e)/(2*(R(t,.75)-R(t,.25))*Math.pow(t.length,-1/3)))}function O(t,e,n){return Math.ceil((n-e)/(3.5*v(t)*Math.pow(t.length,-1/3)))}function D(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a=n)for(r=n;++ar&&(r=n)}else for(;++a=n)for(r=n;++ar&&(r=n);return r}function L(t,e){var n,r=t.length,i=r,a=-1,o=0;if(null==e)for(;++a=0;)for(e=(r=t[i]).length;--e>=0;)n[--o]=r[e];return n}function F(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a=n)for(r=n;++an&&(r=n)}else for(;++a=n)for(r=n;++an&&(r=n);return r}function q(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r}function j(t,e){if(n=t.length){var n,r,a=0,o=0,u=t[o];for(null==e&&(e=i);++a=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),ht.hasOwnProperty(e)?{space:ht[e],local:t}:t}function pt(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===ft&&e.documentElement.namespaceURI===ft?e.createElement(t):e.createElementNS(n,t)}}function gt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function vt(t){var e=dt(t);return(e.local?gt:pt)(e)}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 Et=xt.webkitMatchesSelector||xt.msMatchesSelector||xt.mozMatchesSelector||xt.oMatchesSelector;wt=function(t){return function(){return Et.call(this,t)}}}}const Mt=wt;function kt(t){return new Array(t.length)}function Nt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Nt.prototype={constructor:Nt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var St="$";function Tt(t,e,n,r,i,a){for(var o,u=0,c=e.length,l=a.length;ue?1:t>=e?0:NaN}function Pt(t){return function(){this.removeAttribute(t)}}function Rt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function It(t,e){return function(){this.setAttribute(t,e)}}function Ot(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Dt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Lt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Ut(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function zt(t){return function(){this.style.removeProperty(t)}}function Ft(t,e,n){return function(){this.style.setProperty(t,e,n)}}function qt(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function jt(t,e){return t.style.getPropertyValue(e)||Ut(t).getComputedStyle(t,null).getPropertyValue(e)}function Bt(t){return function(){delete this[t]}}function Ht(t,e){return function(){this[t]=e}}function Yt(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}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 $t(t,e){for(var n=Wt(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var fe={},he=null;function de(t,e,n){return t=pe(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function pe(t,e,n){return function(r){var i=he;he=r;try{t.call(this,this.__data__,e,n)}finally{he=i}}}function ge(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r=w&&(w=b+1);!(_=y[w])&&++w=0;)(r=i[a])&&(o&&o!==r.nextSibling&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=At);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==e?zt:"function"==typeof e?qt:Ft)(t,e,null==n?"":n)):jt(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Bt:"function"==typeof e?Yt:Ht)(t,e)):this.node()[t]},classed:function(t,e){var n=Vt(t+"");if(arguments.length<2){for(var r=Wt(this.node()),i=-1,a=n.length;++i=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),o=a.length;if(!(arguments.length<2)){for(u=e?ve:ge,null==n&&(n=!1),r=0;rf}c.mouse("drag")}function g(){ke(he.view).on("mousemove.drag mouseup.drag",null),Fe(he.view,n),Ue(),c.mouse("end")}function v(){if(i.apply(this,arguments)){var t,e,n=he.changedTouches,r=a.apply(this,arguments),o=n.length;for(t=0;t>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=nn.exec(t))?hn(parseInt(e[1],16)):(e=rn.exec(t))?new vn(e[1],e[2],e[3],1):(e=an.exec(t))?new vn(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=on.exec(t))?dn(e[1],e[2],e[3],e[4]):(e=un.exec(t))?dn(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=cn.exec(t))?mn(e[1],e[2]/100,e[3]/100,1):(e=ln.exec(t))?mn(e[1],e[2]/100,e[3]/100,e[4]):sn.hasOwnProperty(t)?hn(sn[t]):"transparent"===t?new vn(NaN,NaN,NaN,0):null}function hn(t){return new vn(t>>16&255,t>>8&255,255&t,1)}function dn(t,e,n,r){return r<=0&&(t=e=n=NaN),new vn(t,e,n,r)}function pn(t){return t instanceof Ge||(t=fn(t)),t?new vn((t=t.rgb()).r,t.g,t.b,t.opacity):new vn}function gn(t,e,n,r){return 1===arguments.length?pn(t):new vn(t,e,n,null==r?1:r)}function vn(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function yn(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function mn(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new bn(t,e,n,r)}function _n(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof bn)return new bn(t.h,t.s,t.l,t.opacity);if(t instanceof Ge||(t=fn(t)),!t)return new bn;if(t instanceof bn)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,u=a-i,c=(a+i)/2;return u?(o=e===a?(n-r)/u+6*(n0&&c<1?0:o,new bn(o,u,c,t.opacity)}(t):new bn(t,e,n,null==r?1:r)}function bn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function wn(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Xe(Ge,fn,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Xe(vn,gn,$e(Ge,{brighter:function(t){return t=null==t?Ze:Math.pow(Ze,t),new vn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Qe:Math.pow(Qe,t),new vn(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"#"+yn(this.r)+yn(this.g)+yn(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+")")}})),Xe(bn,_n,$e(Ge,{brighter:function(t){return t=null==t?Ze:Math.pow(Ze,t),new bn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Qe:Math.pow(Qe,t),new bn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new vn(wn(t>=240?t-240:t+120,i,r),wn(t,i,r),wn(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 xn=Math.PI/180,En=180/Math.PI,Mn=.96422,kn=1,Nn=.82521,Sn=4/29,Tn=6/29,Cn=3*Tn*Tn,An=Tn*Tn*Tn;function Pn(t){if(t instanceof On)return new On(t.l,t.a,t.b,t.opacity);if(t instanceof Bn){if(isNaN(t.h))return new On(t.l,0,0,t.opacity);var e=t.h*xn;return new On(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof vn||(t=pn(t));var n,r,i=zn(t.r),a=zn(t.g),o=zn(t.b),u=Dn((.2225045*i+.7168786*a+.0606169*o)/kn);return i===a&&a===o?n=r=u:(n=Dn((.4360747*i+.3850649*a+.1430804*o)/Mn),r=Dn((.0139322*i+.0971045*a+.7141733*o)/Nn)),new On(116*u-16,500*(n-u),200*(u-r),t.opacity)}function Rn(t,e){return new On(t,0,0,null==e?1:e)}function In(t,e,n,r){return 1===arguments.length?Pn(t):new On(t,e,n,null==r?1:r)}function On(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Dn(t){return t>An?Math.pow(t,1/3):t/Cn+Sn}function Ln(t){return t>Tn?t*t*t:Cn*(t-Sn)}function Un(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function zn(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Fn(t){if(t instanceof Bn)return new Bn(t.h,t.c,t.l,t.opacity);if(t instanceof On||(t=Pn(t)),0===t.a&&0===t.b)return new Bn(NaN,0,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*En;return new Bn(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function qn(t,e,n,r){return 1===arguments.length?Fn(t):new Bn(n,e,t,null==r?1:r)}function jn(t,e,n,r){return 1===arguments.length?Fn(t):new Bn(t,e,n,null==r?1:r)}function Bn(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}Xe(On,In,$e(Ge,{brighter:function(t){return new On(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new On(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new vn(Un(3.1338561*(e=Mn*Ln(e))-1.6168667*(t=kn*Ln(t))-.4906146*(n=Nn*Ln(n))),Un(-.9787684*e+1.9161415*t+.033454*n),Un(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),Xe(Bn,jn,$e(Ge,{brighter:function(t){return new Bn(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Bn(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return Pn(this).rgb()}}));var Hn=-.14861,Yn=1.78277,Vn=-.29227,Wn=-.90649,Xn=1.97294,$n=Xn*Wn,Gn=Xn*Yn,Qn=Yn*Vn-Wn*Hn;function Zn(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Kn)return new Kn(t.h,t.s,t.l,t.opacity);t instanceof vn||(t=pn(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(Qn*r+$n*e-Gn*n)/(Qn+$n-Gn),a=r-i,o=(Xn*(n-i)-Vn*a)/Wn,u=Math.sqrt(o*o+a*a)/(Xn*i*(1-i)),c=u?Math.atan2(o,a)*En-120:NaN;return new Kn(c<0?c+360:c,u,i,t.opacity)}(t):new Kn(t,e,n,null==r?1:r)}function Kn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Jn(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}function tr(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,u=r180||n<-180?n-360*Math.round(n/360):n):nr(isNaN(t)?e:t)}function ar(t,e){var n=e-t;return n?rr(t,n):nr(isNaN(t)?e:t)}Xe(Kn,Zn,$e(Ge,{brighter:function(t){return t=null==t?Ze:Math.pow(Ze,t),new Kn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Qe:Math.pow(Qe,t),new Kn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*xn,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new vn(255*(e+n*(Hn*r+Yn*i)),255*(e+n*(Vn*r+Wn*i)),255*(e+n*(Xn*r)),this.opacity)}}));const or=function t(e){var n=function(t){return 1==(t=+t)?ar:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):nr(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=gn(t)).r,(e=gn(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=ar(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function ur(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),u=new Array(i);for(n=0;na&&(i=e.slice(a,i),u[o]?u[o]+=i:u[++o]=i),(n=n[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,c.push({i:o,x:hr(n,r)})),a=gr.lastIndex;return a180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:hr(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,u,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:hr(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,u,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var u=a.push(i(a)+"scale(",null,",",null,")");o.push({i:u-4,x:hr(t,n)},{i:u-2,x:hr(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,u,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++n=0&&e._call.call(null,t),e=e._next;--Zr}function fi(){ni=(ei=ii.now())+ri,Zr=Kr=0;try{si()}finally{Zr=0,function(){for(var t,e,n=Gr,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Gr=e);Qr=t,di(r)}(),ni=0}}function hi(){var t=ii.now(),e=t-ei;e>ti&&(ri-=e,ei=t)}function di(t){Zr||(Kr&&(Kr=clearTimeout(Kr)),t-ni>24?(t<1/0&&(Kr=setTimeout(fi,t-ii.now()-ri)),Jr&&(Jr=clearInterval(Jr))):(Jr||(ei=ii.now(),Jr=setInterval(hi,ti)),Zr=1,ai(fi)))}function pi(t,e,n){var r=new ci;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r}function gi(t,e,n){var r=new ci,i=e;return null==e?(r.restart(t,e,n),r):(e=+e,n=null==n?oi():+n,r.restart((function a(o){o+=i,r.restart(a,i+=e,n),t(o)}),e,n),r)}ci.prototype=li.prototype={constructor:ci,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?oi():+n)+(null==e?0:+e),this._next||Qr===this||(Qr?Qr._next=this:Gr=this,Qr=this),this._call=t,this._time=n,di()},stop:function(){this._call&&(this._call=null,this._time=1/0,di())}};var vi=(0,st.W)("start","end","interrupt"),yi=[],mi=0,_i=1,bi=2,wi=3,xi=4,Ei=5,Mi=6;function ki(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(c){var l,s,f,h;if(n.state!==_i)return u();for(l in i)if((h=i[l]).name===n.name){if(h.state===wi)return pi(a);h.state===xi?(h.state=Mi,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[l]):+lmi)throw new Error("too late; already scheduled");return n}function Si(t,e){var n=Ti(t,e);if(n.state>bi)throw new Error("too late; already started");return n}function Ti(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Ci(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>bi&&n.state=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Ni:Si;return function(){var o=a(this,t),u=o.on;u!==r&&(i=(r=u).copy()).on(e,n),o.on=i}}(n,t,e))},attr:function(t,e){var n=dt(t),r="transform"===n?Ar:Ii;return this.attrTween(t,"function"==typeof e?(n.local?Fi:zi)(n,r,Ri(this,"attr."+t,e)):null==e?(n.local?Di:Oi)(n):(n.local?Ui:Li)(n,r,e+""))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=dt(t);return this.tween(n,(r.local?qi:ji)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?Cr:Ii;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var a=jt(this,t),o=(this.style.removeProperty(t),jt(this,t));return a===o?null:a===n&&o===r?i:i=e(n=a,r=o)}}(t,r)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof e?function(t,e,n){var r,i,a;return function(){var o=jt(this,t),u=n(this);return null==u&&(this.style.removeProperty(t),u=jt(this,t)),o===u?null:o===r&&u===i?a:a=e(r=o,i=u)}}(t,r,Ri(this,"style."+t,e)):function(t,e,n){var r,i;return function(){var a=jt(this,t);return a===n?null:a===r?i:i=e(r=a,n)}}(t,r,e+""),n)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){function r(){var r=this,i=e.apply(r,arguments);return i&&function(e){r.style.setProperty(t,i(e),n)}}return r._value=e,r}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Ri(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 e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=Ti(this.node(),n).tween,a=0,o=i.length;a_i&&n.name===e)return new $i([[t]],Ba,e,+r);return null}function Ya(t){return function(){return t}}function Va(t,e,n){this.target=t,this.type=e,this.selection=n}function Wa(){he.stopImmediatePropagation()}function Xa(){he.preventDefault(),he.stopImmediatePropagation()}var $a={name:"drag"},Ga={name:"space"},Qa={name:"handle"},Za={name:"center"},Ka={name:"x",handles:["e","w"].map(oo),input:function(t,e){return t&&[[t[0],e[0][1]],[t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Ja={name:"y",handles:["n","s"].map(oo),input:function(t,e){return t&&[[e[0][0],t[0]],[e[1][0],t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},to={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(oo),input:function(t){return t},output:function(t){return t}},eo={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"},no={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},ro={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},io={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},ao={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function oo(t){return{type:t}}function uo(){return!he.button}function co(){var t=this.ownerSVGElement||this;return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function lo(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function so(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function fo(t){var e=t.__brush;return e?e.dim.output(e.selection):null}function ho(){return vo(Ka)}function po(){return vo(Ja)}function go(){return vo(to)}function vo(t){var e,n=co,r=uo,i=(0,st.W)(o,"start","brush","end"),a=6;function o(e){var n=e.property("__brush",f).selectAll(".overlay").data([oo("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",eo.overlay).merge(n).each((function(){var t=lo(this).extent;ke(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])})),e.selectAll(".selection").data([oo("selection")]).enter().append("rect").attr("class","selection").attr("cursor",eo.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.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 eo[t.type]})),e.each(u).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",s)}function u(){var t=ke(this),e=lo(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-a/2:e[0][0]-a/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-a/2:e[0][1]-a/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+a:a})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+a:a}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(t,e){return t.__brush.emitter||new l(t,e)}function l(t,e){this.that=t,this.args=e,this.state=t.__brush,this.active=0}function s(){if(he.touches){if(he.changedTouches.length0&&(n=i-d),x<0?f=h-p:x>0&&(a=o-p),b=Ga,D.attr("cursor",eo.selection),z());break;default:return}Xa()}),!0).on("keyup.brush",(function(){switch(he.keyCode){case 16:A&&(v=y=A=!1,z());break;case 18:b===Za&&(w<0?l=s:w>0&&(n=i),x<0?f=h:x>0&&(a=o),b=Qa,z());break;case 32:b===Ga&&(he.altKey?(w&&(l=s-d*w,n=i+d*w),x&&(f=h-p*x,a=o+p*x),b=Za):(w<0?l=s:w>0&&(n=i),x<0?f=h:x>0&&(a=o),b=Qa),D.attr("cursor",eo[_]),z());break;default:return}Xa()}),!0).on("mousemove.brush",U,!0).on("mouseup.brush",F,!0);ze(he.view)}Wa(),Ci(m),u.call(m),I.start()}function U(){var t=Re(m);!A||v||y||(Math.abs(t[0]-R[0])>Math.abs(t[1]-R[1])?y=!0:v=!0),R=t,g=!0,Xa(),z()}function z(){var t;switch(d=R[0]-P[0],p=R[1]-P[1],b){case Ga:case $a:w&&(d=Math.max(N-n,Math.min(T-l,d)),i=n+d,s=l+d),x&&(p=Math.max(S-a,Math.min(C-f,p)),o=a+p,h=f+p);break;case Qa:w<0?(d=Math.max(N-n,Math.min(T-n,d)),i=n+d,s=l):w>0&&(d=Math.max(N-l,Math.min(T-l,d)),i=n,s=l+d),x<0?(p=Math.max(S-a,Math.min(C-a,p)),o=a+p,h=f):x>0&&(p=Math.max(S-f,Math.min(C-f,p)),o=a,h=f+p);break;case Za:w&&(i=Math.max(N,Math.min(T,n-d*w)),s=Math.max(N,Math.min(T,l+d*w))),x&&(o=Math.max(S,Math.min(C,a-p*x)),h=Math.max(S,Math.min(C,f+p*x)))}sTo)if(Math.abs(s*u-c*l)>To&&i){var h=n-a,d=r-o,p=u*u+c*c,g=h*h+d*d,v=Math.sqrt(p),y=Math.sqrt(f),m=i*Math.tan((No-Math.acos((p+f-g)/(2*v*y)))/2),_=m/y,b=m/v;Math.abs(_-1)>To&&(this._+="L"+(t+_*l)+","+(e+_*s)),this._+="A"+i+","+i+",0,0,"+ +(s*h>l*d)+","+(this._x1=t+b*u)+","+(this._y1=e+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,r,i,a){t=+t,e=+e;var o=(n=+n)*Math.cos(r),u=n*Math.sin(r),c=t+o,l=e+u,s=1^a,f=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>To||Math.abs(this._y1-l)>To)&&(this._+="L"+c+","+l),n&&(f<0&&(f=f%So+So),f>Co?this._+="A"+n+","+n+",0,1,"+s+","+(t-o)+","+(e-u)+"A"+n+","+n+",0,1,"+s+","+(this._x1=c)+","+(this._y1=l):f>To&&(this._+="A"+n+","+n+",0,"+ +(f>=No)+","+s+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const Ro=Po;function Io(t){return t.source}function Oo(t){return t.target}function Do(t){return t.radius}function Lo(t){return t.startAngle}function Uo(t){return t.endAngle}function zo(){var t=Io,e=Oo,n=Do,r=Lo,i=Uo,a=null;function o(){var o,u=Mo.call(arguments),c=t.apply(this,u),l=e.apply(this,u),s=+n.apply(this,(u[0]=c,u)),f=r.apply(this,u)-bo,h=i.apply(this,u)-bo,d=s*yo(f),p=s*mo(f),g=+n.apply(this,(u[0]=l,u)),v=r.apply(this,u)-bo,y=i.apply(this,u)-bo;if(a||(a=o=Ro()),a.moveTo(d,p),a.arc(0,0,s,f,h),f===v&&h===y||(a.quadraticCurveTo(0,0,g*yo(v),g*mo(v)),a.arc(0,0,g,v,y)),a.quadraticCurveTo(0,0,d,p),a.closePath(),o)return a=null,o+""||null}return o.radius=function(t){return arguments.length?(n="function"==typeof t?t:ko(+t),o):n},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:ko(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:ko(+t),o):i},o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(t){return arguments.length?(e=t,o):e},o.context=function(t){return arguments.length?(a=null==t?null:t,o):a},o}var Fo=n(8949),qo=Array.prototype.slice;function jo(t,e){return t-e}function Bo(t){return function(){return t}}function Ho(t,e){for(var n,r=-1,i=e.length;++rr!=d>r&&n<(h-l)*(r-s)/(d-s)+l&&(i=-i)}return i}function Vo(t,e,n){var r,i,a,o;return function(t,e,n){return(e[0]-t[0])*(n[1]-t[1])==(n[0]-t[0])*(e[1]-t[1])}(t,e,n)&&(i=t[r=+(t[0]===e[0])],a=n[r],o=e[r],i<=a&&a<=o||o<=a&&a<=i)}function Wo(){}var Xo=[[],[[[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 $o(){var t=1,e=1,n=A,r=u;function i(t){var e=n(t);if(Array.isArray(e))e=e.slice().sort(jo);else{var r=y(t),i=r[0],o=r[1];e=C(i,o,e),e=E(Math.floor(i/e)*e,Math.floor(o/e)*e,e)}return e.map((function(e){return a(t,e)}))}function a(n,i){var a=[],u=[];return function(n,r,i){var a,u,c,l,s,f,h=new Array,d=new Array;for(a=u=-1,l=n[0]>=r,Xo[l<<1].forEach(p);++a=r,Xo[c|l<<1].forEach(p);for(Xo[l<<0].forEach(p);++u=r,s=n[u*t]>=r,Xo[l<<1|s<<2].forEach(p);++a=r,f=s,s=n[u*t+a+1]>=r,Xo[c|l<<1|s<<2|f<<3].forEach(p);Xo[l|s<<3].forEach(p)}for(a=-1,s=n[u*t]>=r,Xo[s<<2].forEach(p);++a=r,Xo[s<<2|f<<3].forEach(p);function p(t){var e,n,r=[t[0][0]+a,t[0][1]+u],c=[t[1][0]+a,t[1][1]+u],l=o(r),s=o(c);(e=d[l])?(n=h[s])?(delete d[e.end],delete h[n.start],e===n?(e.ring.push(c),i(e.ring)):h[e.start]=d[n.end]={start:e.start,end:n.end,ring:e.ring.concat(n.ring)}):(delete d[e.end],e.ring.push(c),d[e.end=s]=e):(e=h[s])?(n=d[l])?(delete h[e.start],delete d[n.end],e===n?(e.ring.push(c),i(e.ring)):h[n.start]=d[e.end]={start:n.start,end:e.end,ring:n.ring.concat(e.ring)}):(delete h[e.start],e.ring.unshift(r),h[e.start=l]=e):h[l]=d[s]={start:l,end:s,ring:[r,c]}}Xo[s<<3].forEach(p)}(n,i,(function(t){r(t,n,i),function(t){for(var e=0,n=t.length,r=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];++e0?a.push([t]):u.push(t)})),u.forEach((function(t){for(var e,n=0,r=a.length;n0&&o0&&u0&&a>0))throw new Error("invalid size");return t=r,e=a,i},i.thresholds=function(t){return arguments.length?(n="function"==typeof t?t:Array.isArray(t)?Bo(qo.call(t)):Bo(t),i):n},i.smooth=function(t){return arguments.length?(r=t?u:Wo,i):r===u},i}function Go(t,e,n){for(var r=t.width,i=t.height,a=1+(n<<1),o=0;o=n&&(u>=a&&(c-=t.data[u-a+o*r]),e.data[u-n+o*r]=c/Math.min(u+1,r-1+a-u,a))}function Qo(t,e,n){for(var r=t.width,i=t.height,a=1+(n<<1),o=0;o=n&&(u>=a&&(c-=t.data[o+(u-a)*r]),e.data[o+(u-n)*r]=c/Math.min(u+1,i-1+a-u,a))}function Zo(t){return t[0]}function Ko(t){return t[1]}function Jo(){return 1}function tu(){var t=Zo,e=Ko,n=Jo,r=960,i=500,a=20,o=2,u=3*a,c=r+2*u>>o,l=i+2*u>>o,s=Bo(20);function f(r){var i=new Float32Array(c*l),f=new Float32Array(c*l);r.forEach((function(r,a,s){var f=+t(r,a,s)+u>>o,h=+e(r,a,s)+u>>o,d=+n(r,a,s);f>=0&&f=0&&h>o),Qo({width:c,height:l,data:f},{width:c,height:l,data:i},a>>o),Go({width:c,height:l,data:i},{width:c,height:l,data:f},a>>o),Qo({width:c,height:l,data:f},{width:c,height:l,data:i},a>>o),Go({width:c,height:l,data:i},{width:c,height:l,data:f},a>>o),Qo({width:c,height:l,data:f},{width:c,height:l,data:i},a>>o);var d=s(i);if(!Array.isArray(d)){var p=D(i);d=C(0,p,d),(d=E(0,Math.floor(p/d)*d,d)).shift()}return $o().thresholds(d).size([c,l])(i).map(h)}function h(t){return t.value*=Math.pow(2,-2*o),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,o)-u,t[1]=t[1]*Math.pow(2,o)-u}function v(){return c=r+2*(u=3*a)>>o,l=i+2*u>>o,f}return f.x=function(e){return arguments.length?(t="function"==typeof e?e:Bo(+e),f):t},f.y=function(t){return arguments.length?(e="function"==typeof t?t:Bo(+t),f):e},f.weight=function(t){return arguments.length?(n="function"==typeof t?t:Bo(+t),f):n},f.size=function(t){if(!arguments.length)return[r,i];var e=Math.ceil(t[0]),n=Math.ceil(t[1]);if(!(e>=0||e>=0))throw new Error("invalid size");return r=e,i=n,v()},f.cellSize=function(t){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return o=Math.floor(Math.log(t)/Math.LN2),v()},f.thresholds=function(t){return arguments.length?(s="function"==typeof t?t:Array.isArray(t)?Bo(qo.call(t)):Bo(t),f):s},f.bandwidth=function(t){if(!arguments.length)return Math.sqrt(a*(a+1));if(!((t=+t)>=0))throw new Error("invalid bandwidth");return a=Math.round((Math.sqrt(4*t*t+1)-1)/2),v()},f}var eu=n(2279);function nu(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function ru(t,e){return fetch(t,e).then(nu)}function iu(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function au(t,e){return fetch(t,e).then(iu)}function ou(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function uu(t,e){return fetch(t,e).then(ou)}function cu(t){return function(e,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=void 0),uu(e,n).then((function(e){return t(e,r)}))}}function lu(t,e,n,r){3===arguments.length&&"function"==typeof n&&(r=n,n=void 0);var i=(0,eu.yv)(t);return uu(e,n).then((function(t){return i.parse(t,r)}))}var su=cu(eu.ue),fu=cu(eu.tJ);function hu(t,e){return new Promise((function(n,r){var i=new Image;for(var a in e)i[a]=e[a];i.onerror=r,i.onload=function(){n(i)},i.src=t}))}function du(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.json()}function pu(t,e){return fetch(t,e).then(du)}function gu(t){return function(e,n){return uu(e,n).then((function(e){return(new DOMParser).parseFromString(e,t)}))}}const vu=gu("application/xml");var yu=gu("text/html"),mu=gu("image/svg+xml");function _u(t,e){var n;function r(){var r,i,a=n.length,o=0,u=0;for(r=0;r=(a=(g+y)/2))?g=a:y=a,(s=n>=(o=(v+m)/2))?v=o:m=o,i=d,!(d=d[f=s<<1|l]))return i[f]=p,t;if(u=+t._x.call(null,d.data),c=+t._y.call(null,d.data),e===u&&n===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),(l=e>=(a=(g+y)/2))?g=a:y=a,(s=n>=(o=(v+m)/2))?v=o:m=o}while((f=s<<1|l)==(h=(c>=o)<<1|u>=a));return i[h]=d,i[f]=p,t}function Eu(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function Mu(t){return t[0]}function ku(t){return t[1]}function Nu(t,e,n){var r=new Su(null==e?Mu:e,null==n?ku:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Su(t,e,n,r,i,a){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function Tu(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Cu=Nu.prototype=Su.prototype;function Au(t){return t.x+t.vx}function Pu(t){return t.y+t.vy}function Ru(t){var e,n,r=1,i=1;function a(){for(var t,a,u,c,l,s,f,h=e.length,d=0;dc+d||il+d||au.index){var p=c-o.x-o.vx,g=l-o.y-o.vy,v=p*p+g*g;vt.r&&(t.r=t[e].r)}function u(){if(e){var r,i,a=e.length;for(n=new Array(a),r=0;rs&&(s=r),if&&(f=i));for(st||t>i||r>e||e>a))return this;var o,u,c=i-n,l=this._root;switch(u=(e<(r+a)/2)<<1|t<(n+i)/2){case 0:do{(o=new Array(4))[u]=l,l=o}while(a=r+(c*=2),t>(i=n+c)||e>a);break;case 1:do{(o=new Array(4))[u]=l,l=o}while(a=r+(c*=2),(n=i-c)>t||e>a);break;case 2:do{(o=new Array(4))[u]=l,l=o}while(r=a-(c*=2),t>(i=n+c)||r>e);break;case 3:do{(o=new Array(4))[u]=l,l=o}while(r=a-(c*=2),(n=i-c)>t||r>e)}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=r,this._x1=i,this._y1=a,this},Cu.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.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,e,n){var r,i,a,o,u,c,l,s=this._x0,f=this._y0,h=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new Eu(g,s,f,h,d)),null==n?n=1/0:(s=t-n,f=e-n,h=t+n,d=e+n,n*=n);c=p.pop();)if(!(!(g=c.node)||(i=c.x0)>h||(a=c.y0)>d||(o=c.x1)=y)<<1|t>=v)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-l],p[p.length-1-l]=c)}else{var m=t-+this._x.call(null,g.data),_=e-+this._y.call(null,g.data),b=m*m+_*_;if(b=(u=(p+v)/2))?p=u:v=u,(s=o>=(c=(g+y)/2))?g=c:y=c,e=d,!(d=d[f=s<<1|l]))return this;if(!d.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(n=e,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):e?(i?e[f]=i:delete e[f],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[h]=d:this._root=d),this):(this._root=i,this)},Cu.removeAll=function(t){for(var e=0,n=t.length;e1?(null==n?u.remove(t):u.set(t,d(n)),e):u.get(t)},find:function(e,n,r){var i,a,o,u,c,l=0,s=t.length;for(null==r?r=1/0:r*=r,l=0;l1?(l.on(t,n),e):l.on(t)}}}function ju(){var t,e,n,r,i=bu(-30),a=1,o=1/0,u=.81;function c(r){var i,a=t.length,o=Nu(t,Lu,Uu).visitAfter(s);for(n=r,i=0;i=o)){(t.data!==e||t.next)&&(0===s&&(d+=(s=wu())*s),0===f&&(d+=(f=wu())*f),d1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Wu(t){return(t=Vu(Math.abs(t)))?t[1]:NaN}var Xu,$u=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Gu(t){return new Qu(t)}function Qu(t){if(!(e=$u.exec(t)))throw new Error("invalid format: "+t);var e;this.fill=e[1]||" ",this.align=e[2]||">",this.sign=e[3]||"-",this.symbol=e[4]||"",this.zero=!!e[5],this.width=e[6]&&+e[6],this.comma=!!e[7],this.precision=e[8]&&+e[8].slice(1),this.trim=!!e[9],this.type=e[10]||""}function Zu(t,e){var n=Vu(t,e);if(!n)return t+"";var r=n[0],i=n[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")}Gu.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,e){return(100*t).toFixed(e)},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,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Zu(100*t,e)},r:Zu,s:function(t,e){var n=Vu(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(Xu=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Vu(t,Math.max(0,e+a-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,ec,nc,rc=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ic(t){var e,n,r=t.grouping&&t.thousands?(e=t.grouping,n=t.thousands,function(t,r){for(var i=t.length,a=[],o=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),a.push(t.substring(i-=u,i+u)),!((c+=u+1)>r));)u=e[o=(o+1)%e.length];return a.reverse().join(n)}):Ju,i=t.currency,a=t.decimal,o=t.numerals?function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(t.numerals):Ju,u=t.percent||"%";function c(t){var e=(t=Gu(t)).fill,n=t.align,c=t.sign,l=t.symbol,s=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"),(s||"0"===e&&"="===n)&&(s=!0,e="0",n="=");var v="$"===l?i[0]:"#"===l&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",y="$"===l?i[1]:/[%p]/.test(g)?u:"",m=Ku[g],_=/[defgprs%]/.test(g);function b(t){var i,u,l,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 e,n=t.length,r=1,i=-1;r0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(e+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(l=t.charCodeAt(i))||l>57){w=(46===l?a+t.slice(i+1):t.slice(i))+w,t=t.slice(0,i);break}}h&&!s&&(t=r(t,1/0));var E=b.length+t.length+w.length,M=E>1)+b+t+w+M.slice(E);break;default:t=M+b+t+w}return o(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,e){var n=c(((t=Gu(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Wu(e)/3))),i=Math.pow(10,-r),a=rc[8+r/3];return function(t){return n(i*t)+a}}}}function ac(t){return tc=ic(t),ec=tc.format,nc=tc.formatPrefix,tc}function oc(t){return Math.max(0,-Wu(Math.abs(t)))}function uc(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Wu(e)/3)))-Wu(Math.abs(t)))}function cc(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Wu(e)-Wu(t))+1}function lc(){return new sc}function sc(){this.reset()}ac({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),sc.prototype={constructor:sc,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 sc;function hc(t,e,n){var r=t.s=e+n,i=r-e,a=r-i;t.t=e-a+(n-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,Ec=Math.atan2,Mc=Math.cos,kc=Math.ceil,Nc=Math.exp,Sc=(Math.floor,Math.log),Tc=Math.pow,Cc=Math.sin,Ac=Math.sign||function(t){return t>0?1:t<0?-1:0},Pc=Math.sqrt,Rc=Math.tan;function Ic(t){return t>1?0:t<-1?gc:Math.acos(t)}function Oc(t){return t>1?vc:t<-1?-vc:Math.asin(t)}function Dc(t){return(t=Cc(t/2))*t}function Lc(){}function Uc(t,e){t&&Fc.hasOwnProperty(t.type)&&Fc[t.type](t,e)}var zc={Feature:function(t,e){Uc(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r=0?1:-1,i=r*n,a=Mc(e=(e*=bc)/2+yc),o=Cc(e),u=Xc*o,c=Wc*a+u*Mc(i),l=u*r*Cc(i);$c.add(Ec(l,c)),Vc=t,Wc=a,Xc=o}function el(t){return Gc.reset(),Bc(t,Qc),2*Gc}function nl(t){return[Ec(t[1],t[0]),Oc(t[2])]}function rl(t){var e=t[0],n=t[1],r=Mc(n);return[r*Mc(e),r*Cc(e),Cc(n)]}function il(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function al(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function ol(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function ul(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function cl(t){var e=Pc(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var ll,sl,fl,hl,dl,pl,gl,vl,yl,ml,_l,bl,wl,xl,El,Ml,kl,Nl,Sl,Tl,Cl,Al,Pl,Rl,Il,Ol,Dl=lc(),Ll={point:Ul,lineStart:Fl,lineEnd:ql,polygonStart:function(){Ll.point=jl,Ll.lineStart=Bl,Ll.lineEnd=Hl,Dl.reset(),Qc.polygonStart()},polygonEnd:function(){Qc.polygonEnd(),Ll.point=Ul,Ll.lineStart=Fl,Ll.lineEnd=ql,$c<0?(ll=-(fl=180),sl=-(hl=90)):Dl>dc?hl=90:Dl<-dc&&(sl=-90),ml[0]=ll,ml[1]=fl}};function Ul(t,e){yl.push(ml=[ll=t,fl=t]),ehl&&(hl=e)}function zl(t,e){var n=rl([t*bc,e*bc]);if(vl){var r=al(vl,n),i=al([r[1],-r[0],0],r);cl(i),i=nl(i);var a,o=t-dl,u=o>0?1:-1,c=i[0]*_c*u,l=wc(o)>180;l^(u*dlhl&&(hl=a):l^(u*dl<(c=(c+360)%360-180)&&chl&&(hl=e)),l?tYl(ll,fl)&&(fl=t):Yl(t,fl)>Yl(ll,fl)&&(ll=t):fl>=ll?(tfl&&(fl=t)):t>dl?Yl(ll,t)>Yl(ll,fl)&&(fl=t):Yl(t,fl)>Yl(ll,fl)&&(ll=t)}else yl.push(ml=[ll=t,fl=t]);ehl&&(hl=e),vl=n,dl=t}function Fl(){Ll.point=zl}function ql(){ml[0]=ll,ml[1]=fl,Ll.point=Ul,vl=null}function jl(t,e){if(vl){var n=t-dl;Dl.add(wc(n)>180?n+(n>0?360:-360):n)}else pl=t,gl=e;Qc.point(t,e),zl(t,e)}function Bl(){Qc.lineStart()}function Hl(){jl(pl,gl),Qc.lineEnd(),wc(Dl)>dc&&(ll=-(fl=180)),ml[0]=ll,ml[1]=fl,vl=null}function Yl(t,e){return(e-=t)<0?e+360:e}function Vl(t,e){return t[0]-e[0]}function Wl(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:eYl(r[0],r[1])&&(r[1]=i[1]),Yl(i[0],r[1])>Yl(r[0],r[1])&&(r[0]=i[0])):a.push(r=i);for(o=-1/0,e=0,r=a[n=a.length-1];e<=n;r=i,++e)i=a[e],(u=Yl(r[1],i[0]))>o&&(o=u,ll=i[0],fl=r[1])}return yl=ml=null,ll===1/0||sl===1/0?[[NaN,NaN],[NaN,NaN]]:[[ll,sl],[fl,hl]]}var $l={sphere:Lc,point:Gl,lineStart:Zl,lineEnd:ts,polygonStart:function(){$l.lineStart=es,$l.lineEnd=ns},polygonEnd:function(){$l.lineStart=Zl,$l.lineEnd=ts}};function Gl(t,e){t*=bc;var n=Mc(e*=bc);Ql(n*Mc(t),n*Cc(t),Cc(e))}function Ql(t,e,n){++_l,wl+=(t-wl)/_l,xl+=(e-xl)/_l,El+=(n-El)/_l}function Zl(){$l.point=Kl}function Kl(t,e){t*=bc;var n=Mc(e*=bc);Rl=n*Mc(t),Il=n*Cc(t),Ol=Cc(e),$l.point=Jl,Ql(Rl,Il,Ol)}function Jl(t,e){t*=bc;var n=Mc(e*=bc),r=n*Mc(t),i=n*Cc(t),a=Cc(e),o=Ec(Pc((o=Il*a-Ol*i)*o+(o=Ol*r-Rl*a)*o+(o=Rl*i-Il*r)*o),Rl*r+Il*i+Ol*a);bl+=o,Ml+=o*(Rl+(Rl=r)),kl+=o*(Il+(Il=i)),Nl+=o*(Ol+(Ol=a)),Ql(Rl,Il,Ol)}function ts(){$l.point=Gl}function es(){$l.point=rs}function ns(){is(Al,Pl),$l.point=Gl}function rs(t,e){Al=t,Pl=e,t*=bc,e*=bc,$l.point=is;var n=Mc(e);Rl=n*Mc(t),Il=n*Cc(t),Ol=Cc(e),Ql(Rl,Il,Ol)}function is(t,e){t*=bc;var n=Mc(e*=bc),r=n*Mc(t),i=n*Cc(t),a=Cc(e),o=Il*a-Ol*i,u=Ol*r-Rl*a,c=Rl*i-Il*r,l=Pc(o*o+u*u+c*c),s=Oc(l),f=l&&-s/l;Sl+=f*o,Tl+=f*u,Cl+=f*c,bl+=s,Ml+=s*(Rl+(Rl=r)),kl+=s*(Il+(Il=i)),Nl+=s*(Ol+(Ol=a)),Ql(Rl,Il,Ol)}function as(t){_l=bl=wl=xl=El=Ml=kl=Nl=Sl=Tl=Cl=0,Bc(t,$l);var e=Sl,n=Tl,r=Cl,i=e*e+n*n+r*r;return igc?t-mc:t<-gc?t+mc:t,e]}function ls(t,e,n){return(t%=mc)?e||n?us(fs(t),hs(e,n)):fs(t):e||n?hs(e,n):cs}function ss(t){return function(e,n){return[(e+=t)>gc?e-mc:e<-gc?e+mc:e,n]}}function fs(t){var e=ss(t);return e.invert=ss(-t),e}function hs(t,e){var n=Mc(t),r=Cc(t),i=Mc(e),a=Cc(e);function o(t,e){var o=Mc(e),u=Mc(t)*o,c=Cc(t)*o,l=Cc(e),s=l*n+u*r;return[Ec(c*i-s*a,u*n-l*r),Oc(s*i+c*a)]}return o.invert=function(t,e){var o=Mc(e),u=Mc(t)*o,c=Cc(t)*o,l=Cc(e),s=l*i-c*a;return[Ec(c*i+l*a,u*n+s*r),Oc(s*n-u*r)]},o}function ds(t){function e(e){return(e=t(e[0]*bc,e[1]*bc))[0]*=_c,e[1]*=_c,e}return t=ls(t[0]*bc,t[1]*bc,t.length>2?t[2]*bc:0),e.invert=function(e){return(e=t.invert(e[0]*bc,e[1]*bc))[0]*=_c,e[1]*=_c,e},e}function ps(t,e,n,r,i,a){if(n){var o=Mc(e),u=Cc(e),c=r*n;null==i?(i=e+r*mc,a=e-c/2):(i=gs(o,i),a=gs(o,a),(r>0?ia)&&(i+=r*mc));for(var l,s=i;r>0?s>a:s1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function ms(t,e){return wc(t[0]-e[0])=0;--a)i.point((s=l[a])[0],s[1]);else r(h.x,h.p.x,-1,i);h=h.p}l=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}}function ws(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0?1:-1,k=M*E,N=k>gc,S=g*w;if(xs.add(Ec(S*M*Cc(k),v*x+S*Mc(k))),o+=N?E+M*mc:E,N^d>=n^_>=n){var T=al(rl(h),rl(m));cl(T);var C=al(a,T);cl(C);var A=(N^E>=0?-1:1)*Oc(C[2]);(r>A||r===A&&(T[0]||T[1]))&&(u+=N^E>=0?1:-1)}}return(o<-dc||o0){for(f||(i.polygonStart(),f=!0),i.lineStart(),t=0;t1&&2&c&&h.push(h.pop().concat(h.shift())),o.push(h.filter(ks))}return h}}function ks(t){return t.length>1}function Ns(t,e){return((t=t.x)[0]<0?t[1]-vc-dc:vc-t[1])-((e=e.x)[0]<0?e[1]-vc-dc:vc-e[1])}const Ss=Ms((function(){return!0}),(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var u=a>0?gc:-gc,c=wc(a-n);wc(c-gc)0?vc:-vc),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(a,r),e=0):i!==u&&c>=gc&&(wc(n-i)dc?xc((Cc(e)*(a=Mc(r))*Cc(n)-Cc(r)*(i=Mc(e))*Cc(t))/(i*a*o)):(e+r)/2}(n,r,a,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),e=0),t.point(n=a,r=o),i=u},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*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]-e[0])>dc){var a=t[0]0,i=wc(e)>dc;function a(t,n){return Mc(t)*Mc(n)>e}function o(t,n,r){var i=[1,0,0],a=al(rl(t),rl(n)),o=il(a,a),u=a[0],c=o-u*u;if(!c)return!r&&t;var l=e*o/c,s=-e*u/c,f=al(i,a),h=ul(i,l);ol(h,ul(a,s));var d=f,p=il(h,d),g=il(d,d),v=p*p-g*(il(h,h)-1);if(!(v<0)){var y=Pc(v),m=ul(d,(-p-y)/g);if(ol(m,h),m=nl(m),!r)return m;var _,b=t[0],w=n[0],x=t[1],E=n[1];w0^m[1]<(wc(m[0]-b)gc^(b<=m[0]&&m[0]<=w)){var N=ul(d,(-p+y)/g);return ol(N,h),[m,nl(N)]}}}function u(e,n){var i=r?t:gc-t,a=0;return e<-i?a|=1:e>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}return Ms(a,(function(t){var e,n,c,l,s;return{lineStart:function(){l=c=!1,s=1},point:function(f,h){var d,p=[f,h],g=a(f,h),v=r?g?0:u(f,h):g?u(f+(f<0?gc:-gc),h):0;if(!e&&(l=c=g)&&t.lineStart(),g!==c&&(!(d=o(e,p))||ms(e,d)||ms(p,d))&&(p[0]+=dc,p[1]+=dc,g=a(p[0],p[1])),g!==c)s=0,g?(t.lineStart(),d=o(p,e),t.point(d[0],d[1])):(d=o(e,p),t.point(d[0],d[1]),t.lineEnd()),e=d;else if(i&&e&&r^g){var y;v&n||!(y=o(p,e,!0))||(s=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||e&&ms(e,p)||t.point(p[0],p[1]),e=p,c=g,n=v},lineEnd:function(){c&&t.lineEnd(),e=null},clean:function(){return s|(l&&c)<<1}}}),(function(e,r,i,a){ps(a,t,n,i,e,r)}),r?[0,-t]:[-gc,t-gc])}var Cs=1e9,As=-Cs;function Ps(t,e,n,r){function i(i,a){return t<=i&&i<=n&&e<=a&&a<=r}function a(i,a,u,l){var s=0,f=0;if(null==i||(s=o(i,u))!==(f=o(a,u))||c(i,a)<0^u>0)do{l.point(0===s||3===s?t:n,s>1?r:e)}while((s=(s+u+4)%4)!==f);else l.point(a[0],a[1])}function o(r,i){return wc(r[0]-t)0?0:3:wc(r[0]-n)0?2:1:wc(r[1]-e)0?1:0:i>0?3:2}function u(t,e){return c(t.x,e.x)}function c(t,e){var n=o(t,1),r=o(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(o){var c,l,s,f,h,d,p,g,v,y,m,_=o,b=ys(),w={point:x,lineStart:function(){w.point=E,l&&l.push(s=[]),y=!0,v=!1,p=g=NaN},lineEnd:function(){c&&(E(f,h),d&&v&&b.rejoin(),c.push(b.result())),w.point=x,v&&_.lineEnd()},polygonStart:function(){_=b,c=[],l=[],m=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=l.length;nr&&(h-a)*(r-o)>(d-o)*(t-a)&&++e:d<=r&&(h-a)*(r-o)<(d-o)*(t-a)&&--e;return e}(),n=m&&e,i=(c=z(c)).length;(n||i)&&(o.polygonStart(),n&&(o.lineStart(),a(null,null,1,o),o.lineEnd()),i&&bs(c,u,e,a,o),o.polygonEnd()),_=o,c=l=s=null}};function x(t,e){i(t,e)&&_.point(t,e)}function E(a,o){var u=i(a,o);if(l&&s.push([a,o]),y)f=a,h=o,d=u,y=!1,u&&(_.lineStart(),_.point(a,o));else if(u&&v)_.point(a,o);else{var c=[p=Math.max(As,Math.min(Cs,p)),g=Math.max(As,Math.min(Cs,g))],b=[a=Math.max(As,Math.min(Cs,a)),o=Math.max(As,Math.min(Cs,o))];!function(t,e,n,r,i,a){var o,u=t[0],c=t[1],l=0,s=1,f=e[0]-u,h=e[1]-c;if(o=n-u,f||!(o>0)){if(o/=f,f<0){if(o0){if(o>s)return;o>l&&(l=o)}if(o=i-u,f||!(o<0)){if(o/=f,f<0){if(o>s)return;o>l&&(l=o)}else if(f>0){if(o0)){if(o/=h,h<0){if(o0){if(o>s)return;o>l&&(l=o)}if(o=a-c,h||!(o<0)){if(o/=h,h<0){if(o>s)return;o>l&&(l=o)}else if(h>0){if(o0&&(t[0]=u+l*f,t[1]=c+l*h),s<1&&(e[0]=u+s*f,e[1]=c+s*h),!0}}}}}(c,b,t,e,n,r)?u&&(_.lineStart(),_.point(a,o),m=!1):(v||(_.lineStart(),_.point(c[0],c[1])),_.point(b[0],b[1]),u||_.lineEnd(),m=!1)}p=a,g=o,v=u}return w}}function Rs(){var t,e,n,r=0,i=0,a=960,o=500;return n={stream:function(n){return t&&e===n?t:t=Ps(r,i,a,o)(e=n)},extent:function(u){return arguments.length?(r=+u[0][0],i=+u[0][1],a=+u[1][0],o=+u[1][1],t=e=null,n):[[r,i],[a,o]]}}}var Is,Os,Ds,Ls=lc(),Us={sphere:Lc,point:Lc,lineStart:function(){Us.point=Fs,Us.lineEnd=zs},lineEnd:Lc,polygonStart:Lc,polygonEnd:Lc};function zs(){Us.point=Us.lineEnd=Lc}function Fs(t,e){Is=t*=bc,Os=Cc(e*=bc),Ds=Mc(e),Us.point=qs}function qs(t,e){t*=bc;var n=Cc(e*=bc),r=Mc(e),i=wc(t-Is),a=Mc(i),o=r*Cc(i),u=Ds*n-Os*r*a,c=Os*n+Ds*r*a;Ls.add(Ec(Pc(o*o+u*u),c)),Is=t,Os=n,Ds=r}function js(t){return Ls.reset(),Bc(t,Us),+Ls}var Bs=[null,null],Hs={type:"LineString",coordinates:Bs};function Ys(t,e){return Bs[0]=t,Bs[1]=e,js(Hs)}var Vs={Feature:function(t,e){return Xs(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++rdc})).map(c)).concat(E(kc(a/d)*d,i,d).filter((function(t){return wc(t%g)>dc})).map(l))}return y.lines=function(){return m().map((function(t){return{type:"LineString",coordinates:t}}))},y.outline=function(){return{type:"Polygon",coordinates:[s(r).concat(f(o).slice(1),s(n).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],n=+t[1][0],u=+t[0][1],o=+t[1][1],r>n&&(t=r,r=n,n=t),u>o&&(t=u,u=o,o=t),y.precision(v)):[[r,u],[n,o]]},y.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],a=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),a>i&&(n=a,a=i,i=n),y.precision(v)):[[e,a],[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(a,i,90),l=ef(e,t,v),s=tf(u,o,90),f=ef(r,n,v),y):v},y.extentMajor([[-180,-90+dc],[180,90-dc]]).extentMinor([[-180,-80-dc],[180,80+dc]])}function rf(){return nf()()}function af(t,e){var n=t[0]*bc,r=t[1]*bc,i=e[0]*bc,a=e[1]*bc,o=Mc(r),u=Cc(r),c=Mc(a),l=Cc(a),s=o*Mc(n),f=o*Cc(n),h=c*Mc(i),d=c*Cc(i),p=2*Oc(Pc(Dc(a-r)+o*c*Dc(i-n))),g=Cc(p),v=p?function(t){var e=Cc(t*=p)/g,n=Cc(p-t)/g,r=n*s+e*h,i=n*f+e*d,a=n*u+e*l;return[Ec(i,r)*_c,Ec(a,Pc(r*r+i*i))*_c]}:function(){return[n*_c,r*_c]};return v.distance=p,v}function of(t){return t}var uf,cf,lf,sf,ff=lc(),hf=lc(),df={point:Lc,lineStart:Lc,lineEnd:Lc,polygonStart:function(){df.lineStart=pf,df.lineEnd=yf},polygonEnd:function(){df.lineStart=df.lineEnd=df.point=Lc,ff.add(wc(hf)),hf.reset()},result:function(){var t=ff/2;return ff.reset(),t}};function pf(){df.point=gf}function gf(t,e){df.point=vf,uf=lf=t,cf=sf=e}function vf(t,e){hf.add(sf*t-lf*e),lf=t,sf=e}function yf(){vf(uf,cf)}const mf=df;var _f=1/0,bf=_f,wf=-_f,xf=wf,Ef={point:function(t,e){t<_f&&(_f=t),t>wf&&(wf=t),exf&&(xf=e)},lineStart:Lc,lineEnd:Lc,polygonStart:Lc,polygonEnd:Lc,result:function(){var t=[[_f,bf],[wf,xf]];return wf=xf=-(bf=_f=1/0),t}};const Mf=Ef;var kf,Nf,Sf,Tf,Cf=0,Af=0,Pf=0,Rf=0,If=0,Of=0,Df=0,Lf=0,Uf=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=Uf?[Df/Uf,Lf/Uf]:Of?[Rf/Of,If/Of]:Pf?[Cf/Pf,Af/Pf]:[NaN,NaN];return Cf=Af=Pf=Rf=If=Of=Df=Lf=Uf=0,t}};function Ff(t,e){Cf+=t,Af+=e,++Pf}function qf(){zf.point=jf}function jf(t,e){zf.point=Bf,Ff(Sf=t,Tf=e)}function Bf(t,e){var n=t-Sf,r=e-Tf,i=Pc(n*n+r*r);Rf+=i*(Sf+t)/2,If+=i*(Tf+e)/2,Of+=i,Ff(Sf=t,Tf=e)}function Hf(){zf.point=Ff}function Yf(){zf.point=Wf}function Vf(){Xf(kf,Nf)}function Wf(t,e){zf.point=Xf,Ff(kf=Sf=t,Nf=Tf=e)}function Xf(t,e){var n=t-Sf,r=e-Tf,i=Pc(n*n+r*r);Rf+=i*(Sf+t)/2,If+=i*(Tf+e)/2,Of+=i,Df+=(i=Tf*t-Sf*e)*(Sf+t),Lf+=i*(Tf+e),Uf+=3*i,Ff(Sf=t,Tf=e)}const $f=zf;function Gf(t){this._context=t}Gf.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,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,mc)}},result:Lc};var Qf,Zf,Kf,Jf,th,eh=lc(),nh={point:Lc,lineStart:function(){nh.point=rh},lineEnd:function(){Qf&&ih(Zf,Kf),nh.point=Lc},polygonStart:function(){Qf=!0},polygonEnd:function(){Qf=null},result:function(){var t=+eh;return eh.reset(),t}};function rh(t,e){nh.point=ih,Zf=Jf=t,Kf=th=e}function ih(t,e){Jf-=t,th-=e,eh.add(Pc(Jf*Jf+th*th)),Jf=t,th=e}const ah=nh;function oh(){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,e){var n,r,i=4.5;function a(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),Bc(t,n(r))),r.result()}return a.area=function(t){return Bc(t,n(mf)),mf.result()},a.measure=function(t){return Bc(t,n(ah)),ah.result()},a.bounds=function(t){return Bc(t,n(Mf)),Mf.result()},a.centroid=function(t){return Bc(t,n($f)),$f.result()},a.projection=function(e){return arguments.length?(n=null==e?(t=null,of):(t=e).stream,a):t},a.context=function(t){return arguments.length?(r=null==t?(e=null,new oh):new Gf(e=t),"function"!=typeof i&&r.pointRadius(i),a):e},a.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),a):i},a.projection(t).context(e)}function lh(t){return{stream:sh(t)}}function sh(t){return function(e){var n=new fh;for(var r in t)n[r]=t[r];return n.stream=e,n}}function fh(){}function hh(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),Bc(n,t.stream(Mf)),e(Mf.result()),null!=r&&t.clipExtent(r),t}function dh(t,e,n){return hh(t,(function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),o=+e[0][0]+(r-a*(n[1][0]+n[0][0]))/2,u=+e[0][1]+(i-a*(n[1][1]+n[0][1]))/2;t.scale(150*a).translate([o,u])}),n)}function ph(t,e,n){return dh(t,[[0,0],e],n)}function gh(t,e,n){return hh(t,(function(n){var r=+e,i=r/(n[1][0]-n[0][0]),a=(r-i*(n[1][0]+n[0][0]))/2,o=-i*n[0][1];t.scale(150*i).translate([a,o])}),n)}function vh(t,e,n){return hh(t,(function(n){var r=+e,i=r/(n[1][1]-n[0][1]),a=-i*n[0][0],o=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([a,o])}),n)}oh.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,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=uh(this._radius)),this._string.push("M",t,",",e,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,e){this.stream.point(t,e)},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=Mc(30*bc);function _h(t,e){return+e?function(t,e){function n(r,i,a,o,u,c,l,s,f,h,d,p,g,v){var y=l-r,m=s-i,_=y*y+m*m;if(_>4*e&&g--){var b=o+h,w=u+d,x=c+p,E=Pc(b*b+w*w+x*x),M=Oc(x/=E),k=wc(wc(x)-1)e||wc((y*C+m*A)/_-.5)>.3||o*h+u*d+c*p2?t[2]%360*bc:0,S()):[v*_c,y*_c,m*_c]},k.angle=function(t){return arguments.length?(_=t%360*bc,S()):_*_c},k.precision=function(t){return arguments.length?(o=_h(u,M=t*t),T()):Pc(M)},k.fitExtent=function(t,e){return dh(k,t,e)},k.fitSize=function(t,e){return ph(k,t,e)},k.fitWidth=function(t,e){return gh(k,t,e)},k.fitHeight=function(t,e){return vh(k,t,e)},function(){return e=t.apply(this,arguments),k.invert=e.invert&&N,S()}}function kh(t){var e=0,n=gc/3,r=Mh(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*bc,n=t[1]*bc):[e*_c,n*_c]},i}function Nh(t,e){var n=Cc(t),r=(n+Cc(e))/2;if(wc(r)=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:o).invert(t)},s.stream=function(n){return t&&e===n?t:(r=[o.stream(e=n),u.stream(n),c.stream(n)],i=r.length,t={point:function(t,e){for(var n=-1;++n0?e<-vc+dc&&(e=-vc+dc):e>vc-dc&&(e=vc-dc);var n=i/Tc(Fh(e),r);return[n*Cc(r*t),i-n*Mc(r*t)]}return a.invert=function(t,e){var n=i-e,a=Ac(r)*Pc(t*t+n*n);return[Ec(t,wc(n))/r*Ac(n),2*xc(Tc(i/a,1/r))-vc]},a}function jh(){return kh(qh).scale(109.5).parallels([30,30])}function Bh(t,e){return[t,e]}function Hh(){return Eh(Bh).scale(152.63)}function Yh(t,e){var n=Mc(t),r=t===e?Cc(t):(n-Mc(e))/(e-t),i=n/r+t;if(wc(r)2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}function fd(t,e){return t.parent===e.parent?1:2}function hd(t,e){return t+e.x}function dd(t,e){return Math.max(t,e.y)}function pd(){var t=fd,e=1,n=1,r=!1;function i(i){var a,o=0;i.eachAfter((function(e){var n=e.children;n?(e.x=function(t){return t.reduce(hd,0)/t.length}(n),e.y=function(t){return 1+t.reduce(dd,0)}(n)):(e.x=a?o+=t(e,a):0,e.y=0,a=e)}));var u=function(t){for(var e;e=t.children;)t=e[0];return t}(i),c=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),l=u.x-t(u,c)/2,s=c.x+t(c,u)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-l)/(s-l)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function gd(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function vd(t,e){var n,r,i,a,o,u=new bd(t),c=+t.value&&(u.value=t.value),l=[u];for(null==e&&(e=yd);n=l.pop();)if(c&&(n.value=+n.data.value),(i=e(n.data))&&(o=i.length))for(n.children=new Array(o),a=o-1;a>=0;--a)l.push(r=n.children[a]=new bd(i[a])),r.parent=n,r.depth=n.depth+1;return u.eachBefore(_d)}function yd(t){return t.children}function md(t){t.data=t.data.data}function _d(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function bd(t){this.data=t,this.depth=this.height=0,this.parent=null}Zh.invert=function(t,e){for(var n,r=e,i=r*r,a=i*i*i,o=0;o<12&&(a=(i=(r-=n=(r*(Wh+Xh*i+a*($h+Gh*i))-e)/(Wh+3*Xh*i+a*(7*$h+9*Gh*i)))*r)*i*i,!(wc(n)dc&&--i>0);return[t/(.8707+(a=r*r)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),r]},ad.invert=Ph(Oc),ud.invert=Ph((function(t){return 2*xc(t)})),ld.invert=function(t,e){return[-e,2*xc(Nc(t))-vc]},bd.prototype=vd.prototype={constructor:bd,count:function(){return this.eachAfter(gd)},each:function(t){var e,n,r,i,a=this,o=[a];do{for(e=o.reverse(),o=[];a=e.pop();)if(t(a),n=a.children)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return vd(this).eachBefore(md)}};var wd=Array.prototype.slice;function xd(t){for(var e,n,r=0,i=(t=function(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}(wd.call(t))).length,a=[];r0&&n*n>r*r+i*i}function Nd(t,e){for(var n=0;n(o*=o)?(r=(l+o-i)/(2*l),a=Math.sqrt(Math.max(0,o/l-r*r)),n.x=t.x-r*u-a*c,n.y=t.y-r*c+a*u):(r=(l+i-o)/(2*l),a=Math.sqrt(Math.max(0,i/l-r*r)),n.x=e.x+r*u-a*c,n.y=e.y+r*c+a*u)):(n.x=e.x+n.r,n.y=e.y)}function Pd(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function Rd(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function Id(t){this._=t,this.next=null,this.previous=null}function Od(t){if(!(i=t.length))return 0;var e,n,r,i,a,o,u,c,l,s,f;if((e=t[0]).x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;Ad(n,e,r=t[2]),e=new Id(e),n=new Id(n),r=new Id(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(u=3;u0)throw new Error("cycle");return a}return n.id=function(e){return arguments.length?(t=Ld(e),n):t},n.parentId=function(t){return arguments.length?(e=Ld(t),n):e},n}function Jd(t,e){return t.parent===e.parent?1:2}function tp(t){var e=t.children;return e?e[0]:t.t}function ep(t){var e=t.children;return e?e[e.length-1]:t.t}function np(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function rp(t,e,n){return t.a.parent===e.parent?t.a:n}function ip(t,e){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=e}function ap(){var t=Jd,e=1,n=1,r=null;function i(i){var c=function(t){for(var e,n,r,i,a,o=new ip(t,0),u=[o];e=u.pop();)if(r=e._.children)for(e.children=new Array(a=r.length),i=a-1;i>=0;--i)u.push(n=e.children[i]=new ip(r[i],i)),n.parent=e;return(o.parent=new ip(null,0)).children=[o],o}(i);if(c.eachAfter(a),c.parent.m=-c.z,c.eachBefore(o),r)i.eachBefore(u);else{var l=i,s=i,f=i;i.eachBefore((function(t){t.xs.x&&(s=t),t.depth>f.depth&&(f=t)}));var h=l===s?1:t(l,s)/2,d=h-l.x,p=e/(s.x+h+d),g=n/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*g}))}return i}function a(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,a=i.length;--a>=0;)(e=i[a]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var a=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,a=e,o=e,u=n,c=a.parent.children[0],l=a.m,s=o.m,f=u.m,h=c.m;u=ep(u),a=tp(a),u&&a;)c=tp(c),(o=ep(o)).a=e,(i=u.z+f-a.z-l+t(u._,a._))>0&&(np(rp(u,e,r),e,i),l+=i,s+=i),f+=u.m,l+=a.m,h+=c.m,s+=o.m;u&&!ep(o)&&(o.t=u,o.m+=f-s),a&&!tp(c)&&(c.t=a,c.m+=l-h,r=e)}return r}(e,i,e.parent.A||r[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function op(t,e,n,r,i){for(var a,o=t.children,u=-1,c=o.length,l=t.value&&(i-n)/t.value;++uh&&(h=u),v=s*s*g,(d=Math.max(h/v,v/f))>p){s-=u;break}p=d}y.push(o={value:s,dice:c1?e:1)},n}(up);function sp(){var t=lp,e=!1,n=1,r=1,i=[0],a=Ud,o=Ud,u=Ud,c=Ud,l=Ud;function s(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(f),i=[0],e&&t.eachBefore(Yd),t}function f(e){var n=i[e.depth],r=e.x0+n,s=e.y0+n,f=e.x1-n,h=e.y1-n;f=n-1){var s=u[e];return s.x0=i,s.y0=a,s.x1=o,void(s.y1=c)}for(var f=l[e],h=r/2+f,d=e+1,p=n-1;d>>1;l[g]c-a){var m=(i*y+o*v)/r;t(e,d,v,i,a,m,c),t(d,n,y,m,a,o,c)}else{var _=(a*y+c*v)/r;t(e,d,v,i,a,o,_),t(d,n,y,i,_,o,c)}}(0,c,t.value,e,n,r,i)}function hp(t,e,n,r,i){(1&t.depth?op:Vd)(t,e,n,r,i)}const dp=function t(e){function n(t,n,r,i,a){if((o=t._squarify)&&o.ratio===e)for(var o,u,c,l,s,f=-1,h=o.length,d=t.value;++f1?e:1)},n}(up);function pp(t){for(var e,n=-1,r=t.length,i=t[r-1],a=0;++n1&&vp(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function _p(t){if((n=t.length)<3)return null;var e,n,r=new Array(n),i=new Array(n);for(e=0;e=0;--e)l.push(t[r[a[e]][2]]);for(e=+u;eu!=l>u&&o<(c-n)*(u-r)/(l-r)+n&&(s=!s),c=n,l=r;return s}function wp(t){for(var e,n,r=-1,i=t.length,a=t[i-1],o=a[0],u=a[1],c=0;++r1);return t+n*a*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(xp),kp=function t(e){function n(){var t=Mp.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(xp),Np=function t(e){function n(t){return function(){for(var n=0,r=0;r2?Bp:jp,r=i=null,s}function s(e){return(r||(r=n(a,o,c?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=e?0:t>=n?1:r(t)}}}(t):t,u)))(+e)}return s.invert=function(t){return(i||(i=n(o,a,qp,c?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}}(e):e)))(+t)},s.domain=function(t){return arguments.length?(a=Ap.call(t,zp),l()):a.slice()},s.range=function(t){return arguments.length?(o=Pp.call(t),l()):o.slice()},s.rangeRound=function(t){return o=Pp.call(t),u=br,l()},s.clamp=function(t){return arguments.length?(c=!!t,l()):c},s.interpolate=function(t){return arguments.length?(u=t,l()):u},l()}function Vp(t){var e=t.domain;return t.ticks=function(t){var n=e();return S(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){return function(t,e,n){var r,i=t[0],a=t[t.length-1],o=C(i,a,null==e?10:e);switch((n=Gu(null==n?",f":n)).type){case"s":var u=Math.max(Math.abs(i),Math.abs(a));return null!=n.precision||isNaN(r=uc(o,u))||(n.precision=r),nc(n,u);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=cc(o,Math.max(Math.abs(i),Math.abs(a))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=oc(o))||(n.precision=r-2*("%"===n.type))}return ec(n)}(e(),t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),a=0,o=i.length-1,u=i[a],c=i[o];return c0?r=T(u=Math.floor(u/r)*r,c=Math.ceil(c/r)*r,n):r<0&&(r=T(u=Math.ceil(u*r)/r,c=Math.floor(c*r)/r,n)),r>0?(i[a]=Math.floor(u/r)*r,i[o]=Math.ceil(c/r)*r,e(i)):r<0&&(i[a]=Math.ceil(u*r)/r,i[o]=Math.floor(c*r)/r,e(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 e(t){return+t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=Ap.call(n,zp),e):t.slice()},e.copy=function(){return Xp().domain(t)},Vp(e)}function $p(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o0){for(;hc)break;g.push(f)}}else for(;h=1;--s)if(!((f=l*s)c)break;g.push(f)}}else g=S(h,d,Math.min(d-h,p)).map(i);return a?g.reverse():g},t.tickFormat=function(e,a){if(null==a&&(a=10===n?".0e":","),"function"!=typeof a&&(a=ec(a)),e===1/0)return a;null==e&&(e=10);var o=Math.max(1,n*e/t.ticks().length);return function(t){var e=t/i(Math.round(r(t)));return e*n0?n[i-1]:t[0],i=n?[r[n-1],e]:[r[o-1],r[o]]},a.copy=function(){return og().domain([t,e]).range(i)},Vp(a)}function ug(){var t=[.5],e=[0,1],n=1;function r(r){if(r<=r)return e[l(t,r,0,n)]}return r.domain=function(i){return arguments.length?(t=Pp.call(i),n=Math.min(t.length,e.length-1),r):t.slice()},r.range=function(i){return arguments.length?(e=Pp.call(i),n=Math.min(t.length,e.length-1),r):e.slice()},r.invertExtent=function(n){var r=e.indexOf(n);return[t[r-1],t[r]]},r.copy=function(){return ug().domain(t).range(e)},r}var cg=new Date,lg=new Date;function sg(t,e,n,r){function i(e){return t(e=new Date(+e)),e}return i.floor=i,i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return u;do{u.push(o=new Date(+n)),e(n,a),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return cg.setTime(+e),lg.setTime(+r),t(cg),t(lg),Math.floor(n(cg,lg))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var fg=sg((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));fg.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?sg((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):fg:null};const hg=fg;var dg=fg.range,pg=1e3,gg=6e4,vg=36e5,yg=864e5,mg=6048e5,_g=sg((function(t){t.setTime(Math.floor(t/pg)*pg)}),(function(t,e){t.setTime(+t+e*pg)}),(function(t,e){return(e-t)/pg}),(function(t){return t.getUTCSeconds()}));const bg=_g;var wg=_g.range,xg=sg((function(t){t.setTime(Math.floor(t/gg)*gg)}),(function(t,e){t.setTime(+t+e*gg)}),(function(t,e){return(e-t)/gg}),(function(t){return t.getMinutes()}));const Eg=xg;var Mg=xg.range,kg=sg((function(t){var e=t.getTimezoneOffset()*gg%vg;e<0&&(e+=vg),t.setTime(Math.floor((+t-e)/vg)*vg+e)}),(function(t,e){t.setTime(+t+e*vg)}),(function(t,e){return(e-t)/vg}),(function(t){return t.getHours()}));const Ng=kg;var Sg=kg.range,Tg=sg((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*gg)/yg}),(function(t){return t.getDate()-1}));const Cg=Tg;var Ag=Tg.range;function Pg(t){return sg((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*gg)/mg}))}var Rg=Pg(0),Ig=Pg(1),Og=Pg(2),Dg=Pg(3),Lg=Pg(4),Ug=Pg(5),zg=Pg(6),Fg=Rg.range,qg=Ig.range,jg=Og.range,Bg=Dg.range,Hg=Lg.range,Yg=Ug.range,Vg=zg.range,Wg=sg((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));const Xg=Wg;var $g=Wg.range,Gg=sg((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Gg.every=function(t){return isFinite(t=Math.floor(t))&&t>0?sg((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const Qg=Gg;var Zg=Gg.range,Kg=sg((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*gg)}),(function(t,e){return(e-t)/gg}),(function(t){return t.getUTCMinutes()}));const Jg=Kg;var tv=Kg.range,ev=sg((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*vg)}),(function(t,e){return(e-t)/vg}),(function(t){return t.getUTCHours()}));const nv=ev;var rv=ev.range,iv=sg((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/yg}),(function(t){return t.getUTCDate()-1}));const av=iv;var ov=iv.range;function uv(t){return sg((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/mg}))}var cv=uv(0),lv=uv(1),sv=uv(2),fv=uv(3),hv=uv(4),dv=uv(5),pv=uv(6),gv=cv.range,vv=lv.range,yv=sv.range,mv=fv.range,_v=hv.range,bv=dv.range,wv=pv.range,xv=sg((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));const Ev=xv;var Mv=xv.range,kv=sg((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));kv.every=function(t){return isFinite(t=Math.floor(t))&&t>0?sg((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const Nv=kv;var Sv=kv.range;function Tv(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}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 e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}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 Pv(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,u=t.months,c=t.shortMonths,l=Hv(i),s=Yv(i),f=Hv(a),h=Yv(a),d=Hv(o),p=Yv(o),g=Hv(u),v=Yv(u),y=Hv(c),m=Yv(c),_={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:sy,e:sy,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:Ey,x:null,X:null,y:My,Y:ky,Z:Ny,"%":Yy},b={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:Sy,e:Sy,f:Ry,H:Ty,I:Cy,j:Ay,L:Py,m:Iy,M:Oy,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:Vy,s:Wy,S:Dy,u:Ly,U:Uy,V:zy,w:Fy,W:qy,x:null,X:null,y:jy,Y:By,Z:Hy,"%":Yy},w={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=m[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=v[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return M(t,e,n,r)},d:ty,e:ty,f:oy,H:ny,I:ny,j:ey,L:ay,m:Jv,M:ry,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=s[r[0].toLowerCase()],n+r[0].length):-1},Q:cy,s:ly,S:iy,u:Wv,U:Xv,V:$v,w:Vv,W:Gv,x:function(t,e,r){return M(t,n,e,r)},X:function(t,e,n){return M(t,r,e,n)},y:Zv,Y:Qv,Z:Kv,"%":uy};function x(t,e){return function(n){var r,i,a,o=[],u=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++u53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=Cv(Av(a.y))).getUTCDay(),r=i>4||0===i?lv.ceil(r):lv(r),r=av.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=e(Av(a.y))).getDay(),r=i>4||0===i?Ig.ceil(r):Ig(r),r=Cg.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?Cv(Av(a.y)).getUTCDay():e(Av(a.y)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,Cv(a)):e(a)}}function M(t,e,n,r){for(var i,a,o=0,u=e.length,c=n.length;o=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=w[i in Uv?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return _.x=x(n,_),_.X=x(r,_),_.c=x(e,_),b.x=x(n,b),b.X=x(r,b),b.c=x(e,b),{format:function(t){var e=x(t+="",_);return e.toString=function(){return t},e},parse:function(t){var e=E(t+="",Tv);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=E(t,Cv);return e.toString=function(){return t},e}}}var Rv,Iv,Ov,Dv,Lv,Uv={"-":"",_:" ",0:"0"},zv=/^\s*\d+/,Fv=/^%/,qv=/[\\^$*+?|[\]().{}]/g;function jv(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a68?1900:2e3),n+r[0].length):-1}function Kv(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Jv(t,e,n){var r=zv.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ty(t,e,n){var r=zv.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function ey(t,e,n){var r=zv.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function ny(t,e,n){var r=zv.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function ry(t,e,n){var r=zv.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function iy(t,e,n){var r=zv.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function ay(t,e,n){var r=zv.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function oy(t,e,n){var r=zv.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function uy(t,e,n){var r=Fv.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function cy(t,e,n){var r=zv.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function ly(t,e,n){var r=zv.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function sy(t,e){return jv(t.getDate(),e,2)}function fy(t,e){return jv(t.getHours(),e,2)}function hy(t,e){return jv(t.getHours()%12||12,e,2)}function dy(t,e){return jv(1+Cg.count(Qg(t),t),e,3)}function py(t,e){return jv(t.getMilliseconds(),e,3)}function gy(t,e){return py(t,e)+"000"}function vy(t,e){return jv(t.getMonth()+1,e,2)}function yy(t,e){return jv(t.getMinutes(),e,2)}function my(t,e){return jv(t.getSeconds(),e,2)}function _y(t){var e=t.getDay();return 0===e?7:e}function by(t,e){return jv(Rg.count(Qg(t),t),e,2)}function wy(t,e){var n=t.getDay();return t=n>=4||0===n?Lg(t):Lg.ceil(t),jv(Lg.count(Qg(t),t)+(4===Qg(t).getDay()),e,2)}function xy(t){return t.getDay()}function Ey(t,e){return jv(Ig.count(Qg(t),t),e,2)}function My(t,e){return jv(t.getFullYear()%100,e,2)}function ky(t,e){return jv(t.getFullYear()%1e4,e,4)}function Ny(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+jv(e/60|0,"0",2)+jv(e%60,"0",2)}function Sy(t,e){return jv(t.getUTCDate(),e,2)}function Ty(t,e){return jv(t.getUTCHours(),e,2)}function Cy(t,e){return jv(t.getUTCHours()%12||12,e,2)}function Ay(t,e){return jv(1+av.count(Nv(t),t),e,3)}function Py(t,e){return jv(t.getUTCMilliseconds(),e,3)}function Ry(t,e){return Py(t,e)+"000"}function Iy(t,e){return jv(t.getUTCMonth()+1,e,2)}function Oy(t,e){return jv(t.getUTCMinutes(),e,2)}function Dy(t,e){return jv(t.getUTCSeconds(),e,2)}function Ly(t){var e=t.getUTCDay();return 0===e?7:e}function Uy(t,e){return jv(cv.count(Nv(t),t),e,2)}function zy(t,e){var n=t.getUTCDay();return t=n>=4||0===n?hv(t):hv.ceil(t),jv(hv.count(Nv(t),t)+(4===Nv(t).getUTCDay()),e,2)}function Fy(t){return t.getUTCDay()}function qy(t,e){return jv(lv.count(Nv(t),t),e,2)}function jy(t,e){return jv(t.getUTCFullYear()%100,e,2)}function By(t,e){return jv(t.getUTCFullYear()%1e4,e,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 Rv=Pv(t),Iv=Rv.format,Ov=Rv.parse,Dv=Rv.utcFormat,Lv=Rv.utcParse,Rv}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 $y="%Y-%m-%dT%H:%M:%S.%LZ",Gy=Date.prototype.toISOString?function(t){return t.toISOString()}:Dv($y);const Qy=Gy;var Zy=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:Lv($y);const Ky=Zy;var Jy=1e3,tm=60*Jy,em=60*tm,nm=24*em,rm=7*nm,im=30*nm,am=365*nm;function om(t){return new Date(t)}function um(t){return t instanceof Date?+t:+new Date(+t)}function cm(t,e,n,r,i,o,u,c,l){var s=Yp(qp,hr),f=s.invert,h=s.domain,d=l(".%L"),p=l(":%S"),g=l("%I:%M"),v=l("%I %p"),y=l("%a %d"),m=l("%b %d"),_=l("%B"),b=l("%Y"),w=[[u,1,Jy],[u,5,5*Jy],[u,15,15*Jy],[u,30,30*Jy],[o,1,tm],[o,5,5*tm],[o,15,15*tm],[o,30,30*tm],[i,1,em],[i,3,3*em],[i,6,6*em],[i,12,12*em],[r,1,nm],[r,2,2*nm],[n,1,rm],[e,1,im],[e,3,3*im],[t,1,am]];function x(a){return(u(a)1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return S_.h=360*t-100,S_.s=1.5-1.5*e,S_.l=.8-.9*e,S_+""}var C_=gn(),A_=Math.PI/3,P_=2*Math.PI/3;function R_(t){var e;return t=(.5-t)*Math.PI,C_.r=255*(e=Math.sin(t))*e,C_.g=255*(e=Math.sin(t+A_))*e,C_.b=255*(e=Math.sin(t+P_))*e,C_+""}function I_(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}const O_=I_(dm("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var D_=I_(dm("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),L_=I_(dm("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),U_=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,$_=X_/2,G_=2*X_;function Q_(t){return t>=1?$_:t<=-1?-$_: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 eb(t){return t&&t.padAngle}function nb(t,e,n,r,i,a,o){var u=t-n,c=e-r,l=(o?a:-a)/V_(u*u+c*c),s=l*c,f=-l*u,h=t+s,d=e+f,p=n+s,g=r+f,v=(h+p)/2,y=(d+g)/2,m=p-h,_=g-d,b=m*m+_*_,w=i-a,x=h*g-p*d,E=(_<0?-1:1)*V_(B_(0,w*w*b-x*x)),M=(x*_-m*E)/b,k=(-x*m-_*E)/b,N=(x*_+m*E)/b,S=(-x*m+_*E)/b,T=M-v,C=k-y,A=N-v,P=S-y;return T*T+C*C>A*A+P*P&&(M=N,k=S),{cx:M,cy:k,x01:-s,y01:-f,x11:M*(i/w-1),y11:k*(i/w-1)}}function rb(){var t=Z_,e=K_,n=z_(0),r=null,i=J_,a=tb,o=eb,u=null;function c(){var c,l,s,f=+t.apply(this,arguments),h=+e.apply(this,arguments),d=i.apply(this,arguments)-$_,p=a.apply(this,arguments)-$_,g=F_(p-d),v=p>d;if(u||(u=c=Ro()),hW_)if(g>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,E=g,M=g,k=o.apply(this,arguments)/2,N=k>W_&&(r?+r.apply(this,arguments):V_(f*f+h*h)),S=H_(F_(h-f)/2,+n.apply(this,arguments)),T=S,C=S;if(N>W_){var A=Q_(N/f*Y_(k)),P=Q_(N/h*Y_(k));(E-=2*A)>W_?(w+=A*=v?1:-1,x-=A):(E=0,w=x=(d+p)/2),(M-=2*P)>W_?(_+=P*=v?1:-1,b-=P):(M=0,_=b=(d+p)/2)}var R=h*j_(_),I=h*Y_(_),O=f*j_(x),D=f*Y_(x);if(S>W_){var L=h*j_(b),U=h*Y_(b),z=f*j_(w),F=f*Y_(w);if(gW_?function(t,e,n,r,i,a,o,u){var c=n-t,l=r-e,s=o-i,f=u-a,h=(s*(e-a)-f*(t-i))/(f*c-s*l);return[t+h*c,e+h*l]}(R,I,z,F,L,U,O,D):[O,D],j=R-q[0],B=I-q[1],H=L-q[0],Y=U-q[1],V=1/Y_(((s=(j*H+B*Y)/(V_(j*j+B*B)*V_(H*H+Y*Y)))>1?0:s<-1?X_:Math.acos(s))/2),W=V_(q[0]*q[0]+q[1]*q[1]);T=H_(S,(f-W)/(V-1)),C=H_(S,(h-W)/(V+1))}}M>W_?C>W_?(y=nb(z,F,R,I,h,C,v),m=nb(L,U,O,D,h,C,v),u.moveTo(y.cx+y.x01,y.cy+y.y01),CW_&&E>W_?T>W_?(y=nb(O,D,L,U,f,-T,v),m=nb(R,I,z,F,f,-T,v),u.lineTo(y.cx+y.x01,y.cy+y.y01),T=s;--f)u.point(v[f],y[f]);u.lineEnd(),u.areaEnd()}g&&(v[l]=+t(h,l,c),y[l]=+n(h,l,c),u.point(e?+e(h,l,c):v[l],r?+r(h,l,c):y[l]))}if(d)return u=null,d+""||null}function l(){return cb().defined(i).curve(o).context(a)}return c.x=function(n){return arguments.length?(t="function"==typeof n?n:z_(+n),e=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:z_(+e),c):t},c.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:z_(+t),c):e},c.y=function(t){return arguments.length?(n="function"==typeof t?t:z_(+t),r=null,c):n},c.y0=function(t){return arguments.length?(n="function"==typeof t?t:z_(+t),c):n},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 l().x(t).y(n)},c.lineY1=function(){return l().x(t).y(r)},c.lineX1=function(){return l().x(e).y(n)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:z_(!!t),c):i},c.curve=function(t){return arguments.length?(o=t,null!=a&&(u=o(a)),c):o},c.context=function(t){return arguments.length?(null==t?a=u=null:u=o(a=t),c):a},c}function sb(t,e){return et?1:e>=t?0:NaN}function fb(t){return t}function hb(){var t=fb,e=sb,n=null,r=z_(0),i=z_(G_),a=z_(0);function o(o){var u,c,l,s,f,h=o.length,d=0,p=new Array(h),g=new Array(h),v=+r.apply(this,arguments),y=Math.min(G_,Math.max(-G_,i.apply(this,arguments)-v)),m=Math.min(Math.abs(y)/h,a.apply(this,arguments)),_=m*(y<0?-1:1);for(u=0;u0&&(d+=f);for(null!=e?p.sort((function(t,n){return e(g[t],g[n])})):null!=n&&p.sort((function(t,e){return n(o[t],o[e])})),u=0,l=d?(y-h*_)/d:0;u0?f*l:0)+_,g[c]={data:o[c],index:u,value:f,startAngle:v,endAngle:s,padAngle:m};return g}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:z_(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,n=null,o):e},o.sort=function(t){return arguments.length?(n=t,e=null,o):n},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:z_(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:z_(+t),o):i},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:z_(+t),o):a},o}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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var db=gb(ab);function pb(t){this._curve=t}function gb(t){function e(e){return new pb(t(e))}return e._curve=t,e}function vb(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(gb(t)):e()._curve},t}function yb(){return vb(cb().curve(db))}function mb(){var t=lb().curve(db),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,a=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(n())},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(a())},delete t.lineY1,t.curve=function(t){return arguments.length?e(gb(t)):e()._curve},t}function _b(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*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,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var bb=Array.prototype.slice;function wb(t){return t.source}function xb(t){return t.target}function Eb(t){var e=wb,n=xb,r=ob,i=ub,a=null;function o(){var o,u=bb.call(arguments),c=e.apply(this,u),l=n.apply(this,u);if(a||(a=o=Ro()),t(a,+r.apply(this,(u[0]=c,u)),+i.apply(this,u),+r.apply(this,(u[0]=l,u)),+i.apply(this,u)),o)return a=null,o+""||null}return o.source=function(t){return arguments.length?(e=t,o):e},o.target=function(t){return arguments.length?(n=t,o):n},o.x=function(t){return arguments.length?(r="function"==typeof t?t:z_(+t),o):r},o.y=function(t){return arguments.length?(i="function"==typeof t?t:z_(+t),o):i},o.context=function(t){return arguments.length?(a=null==t?null:t,o):a},o}function Mb(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function kb(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function Nb(t,e,n,r,i){var a=_b(e,n),o=_b(e,n=(n+i)/2),u=_b(r,n),c=_b(r,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],u[0],u[1],c[0],c[1])}function Sb(){return Eb(Mb)}function Tb(){return Eb(kb)}function Cb(){var t=Eb(Nb);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const Ab={draw:function(t,e){var n=Math.sqrt(e/X_);t.moveTo(n,0),t.arc(0,0,n,0,G_)}},Pb={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}};var Rb=Math.sqrt(1/3),Ib=2*Rb;const Ob={draw:function(t,e){var n=Math.sqrt(e/Ib),r=n*Rb;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}};var Db=Math.sin(X_/10)/Math.sin(7*X_/10),Lb=Math.sin(G_/10)*Db,Ub=-Math.cos(G_/10)*Db;const zb={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=Lb*n,i=Ub*n;t.moveTo(0,-n),t.lineTo(r,i);for(var a=1;a<5;++a){var o=G_*a/5,u=Math.cos(o),c=Math.sin(o);t.lineTo(c*n,-u*n),t.lineTo(u*r-c*i,c*r+u*i)}t.closePath()}},Fb={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}};var qb=Math.sqrt(3);const jb={draw:function(t,e){var n=-Math.sqrt(e/(3*qb));t.moveTo(0,2*n),t.lineTo(-qb*n,-n),t.lineTo(qb*n,-n),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,e){var n=Math.sqrt(e/Vb),r=n/2,i=n*Yb,a=r,o=n*Yb+n,u=-a,c=o;t.moveTo(r,i),t.lineTo(a,o),t.lineTo(u,c),t.lineTo(Bb*r-Hb*i,Hb*r+Bb*i),t.lineTo(Bb*a-Hb*o,Hb*a+Bb*o),t.lineTo(Bb*u-Hb*c,Hb*u+Bb*c),t.lineTo(Bb*r+Hb*i,Bb*i-Hb*r),t.lineTo(Bb*a+Hb*o,Bb*o-Hb*a),t.lineTo(Bb*u+Hb*c,Bb*c-Hb*u),t.closePath()}};var Xb=[Ab,Pb,Ob,Fb,zb,jb,Wb];function $b(){var t=z_(Ab),e=z_(64),n=null;function r(){var r;if(n||(n=r=Ro()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(e){return arguments.length?(t="function"==typeof e?e:z_(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:z_(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r}function Gb(){}function Qb(t,e,n){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+e)/6,(t._y0+4*t._y1+n)/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 ew(t){this._context=t}function nw(t){return new ew(t)}function rw(t,e){this._basis=new Zb(t),this._beta=e}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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},Jb.prototype={areaStart:Gb,areaEnd:Gb,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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Qb(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ew.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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Qb(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},rw.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],a=e[0],o=t[n]-i,u=e[n]-a,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*o),this._beta*e[c]+(1-this._beta)*(a+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const iw=function t(e){function n(t){return 1===e?new Zb(t):new rw(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function aw(t,e,n){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-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function ow(t,e){this._context=t,this._k=(1-e)/6}ow.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:aw(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:aw(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const uw=function t(e){function n(t){return new ow(t,e)}return n.tension=function(e){return t(+e)},n}(0);function cw(t,e){this._context=t,this._k=(1-e)/6}cw.prototype={areaStart:Gb,areaEnd:Gb,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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:aw(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const lw=function t(e){function n(t){return new cw(t,e)}return n.tension=function(e){return t(+e)},n}(0);function sw(t,e){this._context=t,this._k=(1-e)/6}sw.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,e){switch(t=+t,e=+e,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:aw(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const fw=function t(e){function n(t){return new sw(t,e)}return n.tension=function(e){return t(+e)},n}(0);function hw(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=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 l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,s=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/s,o=(o*l+t._y1*t._l23_2a-n*t._l12_2a)/s}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function dw(t,e){this._context=t,this._alpha=e}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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:hw(this,t,e)}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=e}};const pw=function t(e){function n(t){return e?new dw(t,e):new ow(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function gw(t,e){this._context=t,this._alpha=e}gw.prototype={areaStart:Gb,areaEnd:Gb,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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:hw(this,t,e)}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=e}};const vw=function t(e){function n(t){return e?new gw(t,e):new cw(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function yw(t,e){this._context=t,this._alpha=e}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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+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,e)}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=e}};const mw=function t(e){function n(t){return e?new yw(t,e):new sw(t,0)}return n.alpha=function(e){return t(+e)},n}(.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,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),u=(a*i+o*r)/(r+i);return(ww(a)+ww(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Ew(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Mw(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,u=(a-r)/3;t._context.bezierCurveTo(r+u,i+u*e,a-u,o-u*n,a,o)}function kw(t){this._context=t}function Nw(t){this._context=new Sw(t)}function Sw(t){this._context=t}function Tw(t){return new kw(t)}function Cw(t){return new Nw(t)}function Aw(t){this._context=t}function Pw(t){var e,n,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e1)for(var n,r,i,a=1,o=t[e[0]],u=o.length;a=0;)n[e]=e;return n}function Fw(t,e){return t[e]}function qw(){var t=z_([]),e=zw,n=Uw,r=Fw;function i(i){var a,o,u=t.apply(this,arguments),c=i.length,l=u.length,s=new Array(l);for(a=0;a0){for(var n,r,i,a=0,o=t[0].length;a1)for(var n,r,i,a,o,u,c=0,l=t[e[0]].length;c=0?(r[0]=a,r[1]=a+=i):i<0?(r[1]=o,r[0]=o+=i):r[0]=a}function Hw(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],a=i.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,a=0,o=1;o=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},Jw.prototype={constructor:Jw,insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=rx(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(ex(this,n),n=(t=n).U),n.C=!1,r.C=!0,nx(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(nx(this,n),n=(t=n).U),n.C=!1,r.C=!0,ex(this,r)),n=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 e,n,r,i=t.U,a=t.L,o=t.R;if(n=a?o?rx(o):a:o,i?i.L===t?i.L=n:i.R=n:this._=n,a&&o?(r=n.C,n.C=t.C,n.L=a,a.U=n,n!==o?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=o,o.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,ex(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,nx(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,ex(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,nx(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,ex(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,nx(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};const ix=Jw;function ax(t,e,n,r){var i=[null,null],a=Cx.push(i)-1;return i.left=t,i.right=e,n&&ux(i,t,e,n),r&&ux(i,e,t,r),Sx[t.index].halfedges.push(a),Sx[e.index].halfedges.push(a),i}function ox(t,e,n){var r=[e,n];return r.left=t,r}function ux(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function cx(t,e,n,r,i){var a,o=t[0],u=t[1],c=o[0],l=o[1],s=0,f=1,h=u[0]-c,d=u[1]-l;if(a=e-c,h||!(a>0)){if(a/=h,h<0){if(a0){if(a>f)return;a>s&&(s=a)}if(a=r-c,h||!(a<0)){if(a/=h,h<0){if(a>f)return;a>s&&(s=a)}else if(h>0){if(a0)){if(a/=d,d<0){if(a0){if(a>f)return;a>s&&(s=a)}if(a=i-l,d||!(a<0)){if(a/=d,d<0){if(a>f)return;a>s&&(s=a)}else if(d>0){if(a0||f<1)||(s>0&&(t[0]=[c+s*h,l+s*d]),f<1&&(t[1]=[c+f*h,l+f*d]),!0)}}}}}function lx(t,e,n,r,i){var a=t[1];if(a)return!0;var o,u,c=t[0],l=t.left,s=t.right,f=l[0],h=l[1],d=s[0],p=s[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,n];a=[g,i]}else{if(c){if(c[1]1)if(f>d){if(c){if(c[1]>=i)return}else c=[(n-u)/o,n];a=[(i-u)/o,i]}else{if(c){if(c[1]=r)return}else c=[e,o*e+u];a=[r,o*r+u]}else{if(c){if(c[0]=-Px)){var d=c*c+l*l,p=s*s+f*f,g=(f*d-l*p)/h,v=(c*p-s*d)/h,y=px.pop()||new gx;y.arc=t,y.site=i,y.x=g+o,y.y=(y.cy=v+u)+Math.sqrt(g*g+v*v),t.circle=y;for(var m=null,_=Tx._;_;)if(y.y<_.y||y.y===_.y&&y.x<=_.x){if(!_.L){m=_.P;break}_=_.L}else{if(!_.R){m=_;break}_=_.R}Tx.insert(m,y),m||(dx=y)}}}}function yx(t){var e=t.circle;e&&(e.P||(dx=e.N),Tx.remove(e),px.push(e),tx(e),t.circle=null)}var mx=[];function _x(){tx(this),this.edge=this.site=this.circle=null}function bx(t){var e=mx.pop()||new _x;return e.site=t,e}function wx(t){yx(t),Nx.remove(t),mx.push(t),tx(t)}function xx(t){var e=t.circle,n=e.x,r=e.cy,i=[n,r],a=t.P,o=t.N,u=[t];wx(t);for(var c=a;c.circle&&Math.abs(n-c.circle.x)Ax)u=u.L;else{if(!((i=a-kx(u,o))>Ax)){r>-Ax?(e=u.P,n=u):i>-Ax?(e=u,n=u.N):e=n=u;break}if(!u.R){e=u;break}u=u.R}!function(t){Sx[t.index]={site:t,halfedges:[]}}(t);var c=bx(t);if(Nx.insert(e,c),e||n){if(e===n)return yx(e),n=bx(e.site),Nx.insert(c,n),c.edge=n.edge=ax(e.site,c.site),vx(e),void vx(n);if(n){yx(e),yx(n);var l=e.site,s=l[0],f=l[1],h=t[0]-s,d=t[1]-f,p=n.site,g=p[0]-s,v=p[1]-f,y=2*(h*v-d*g),m=h*h+d*d,_=g*g+v*v,b=[(v*m-d*_)/y+s,(h*_-g*m)/y+f];ux(n.edge,l,p,b),c.edge=ax(l,t,null,b),n.edge=ax(t,p,null,b),vx(e),vx(n)}else c.edge=ax(e.site,c.site)}}function Mx(t,e){var n=t.site,r=n[0],i=n[1],a=i-e;if(!a)return r;var o=t.P;if(!o)return-1/0;var u=(n=o.site)[0],c=n[1],l=c-e;if(!l)return u;var s=u-r,f=1/a-1/l,h=s/l;return f?(-h+Math.sqrt(h*h-2*f*(s*s/(-2*l)-c+l/2+i-a/2)))/f+r:(r+u)/2}function kx(t,e){var n=t.N;if(n)return Mx(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var Nx,Sx,Tx,Cx,Ax=1e-6,Px=1e-12;function Rx(t,e,n){return(t[0]-n[0])*(e[1]-t[1])-(t[0]-e[0])*(n[1]-t[1])}function Ix(t,e){return e[1]-t[1]||e[0]-t[0]}function Ox(t,e){var n,r,i,a=t.sort(Ix).pop();for(Cx=[],Sx=new Array(t.length),Nx=new ix,Tx=new ix;;)if(i=dx,a&&(!i||a[1]Ax||Math.abs(i[0][1]-i[1][1])>Ax)||delete Cx[a]}(o,u,c,l),function(t,e,n,r){var i,a,o,u,c,l,s,f,h,d,p,g,v=Sx.length,y=!0;for(i=0;iAx||Math.abs(g-h)>Ax)&&(c.splice(u,0,Cx.push(ox(o,d,Math.abs(p-t)Ax?[t,Math.abs(f-t)Ax?[Math.abs(h-r)Ax?[n,Math.abs(f-n)Ax?[Math.abs(h-e)=u)return null;var c=t-i.site[0],l=e-i.site[1],s=c*c+l*l;do{i=a.cells[r=o],o=null,i.halfedges.forEach((function(n){var r=a.edges[n],u=r.left;if(u!==i.site&&u||(u=r.right)){var c=t-u[0],l=e-u[1],f=c*c+l*l;fr?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function Gx(){var t,e,n=Hx,r=Yx,i=$x,a=Wx,o=Xx,u=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],l=250,s=Lr,f=[],h=(0,st.W)("start","zoom","end"),d=500,p=150,g=0;function v(t){t.property("__zoom",Vx).on("wheel.zoom",E).on("mousedown.zoom",M).on("dblclick.zoom",k).filter(o).on("touchstart.zoom",N).on("touchmove.zoom",S).on("touchend.zoom touchcancel.zoom",T).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(t,e){return(e=Math.max(u[0],Math.min(u[1],e)))===t.k?t:new zx(e,t.x,t.y)}function m(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[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,e,n){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,a=w(t,i),o=r.apply(t,i),u=n||_(o),c=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),l=t.__zoom,f="function"==typeof e?e.apply(t,i):e,h=s(l.invert(u).concat(c/l.k),f.invert(u).concat(c/f.k));return function(t){if(1===t)t=f;else{var e=h(t),n=c/e[2];t=new zx(n,u[0]-e[0]*n,u[1]-e[1]*n)}a.zoom(null,t)}}))}function w(t,e){for(var n,r=0,i=f.length;rg}t.zoom("mouse",i(m(t.that.__zoom,t.mouse[0]=Re(t.that),t.mouse[1]),t.extent,c))}),!0).on("mouseup.zoom",(function(){r.on("mousemove.zoom mouseup.zoom",null),Fe(he.view,t.moved),Bx(),t.end()}),!0),a=Re(this),o=he.clientX,u=he.clientY;ze(he.view),jx(),t.mouse=[a,this.__zoom.invert(a)],Ci(this),t.start()}}function k(){if(n.apply(this,arguments)){var t=this.__zoom,e=Re(this),a=t.invert(e),o=t.k*(he.shiftKey?.5:2),u=i(m(y(t,o),e,a),r.apply(this,arguments),c);Bx(),l>0?ke(this).transition().duration(l).call(b,u,e):ke(this).call(v.transform,u)}}function N(){if(n.apply(this,arguments)){var e,r,i,a,o=w(this,arguments),u=he.changedTouches,c=u.length;for(jx(),r=0;r{t.exports={graphlib:n(6614),dagre:n(1463),intersect:n(8114),render:n(5787),util:n(8355),version:n(5689)}},9144:(t,e,n)=>{var r=n(8355);function i(t,e,n,i){var a=t.append("marker").attr("id",e).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(a,n[i+"Style"]),n[i+"Class"]&&a.attr("class",n[i+"Class"])}t.exports={default:i,normal:i,vee:function(t,e,n,i){var a=t.append("marker").attr("id",e).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(a,n[i+"Style"]),n[i+"Class"]&&a.attr("class",n[i+"Class"])},undirected:function(t,e,n,i){var a=t.append("marker").attr("id",e).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(a,n[i+"Style"]),n[i+"Class"]&&a.attr("class",n[i+"Class"])}}},5632:(t,e,n)=>{var r=n(8355),i=n(4322),a=n(1322);t.exports=function(t,e){var n=e.nodes().filter((function(t){return r.isSubgraph(e,t)})),o=t.selectAll("g.cluster").data(n,(function(t){return t}));return o.selectAll("*").remove(),o.enter().append("g").attr("class","cluster").attr("id",(function(t){return e.node(t).id})).style("opacity",0),o=t.selectAll("g.cluster"),r.applyTransition(o,e).style("opacity",1),o.each((function(t){var n=e.node(t),r=i.select(this);i.select(this).append("rect");var o=r.append("g").attr("class","label");a(o,n,n.clusterLabelPos)})),o.selectAll("rect").each((function(t){var n=e.node(t),a=i.select(this);r.applyStyle(a,n.style)})),r.applyTransition(o.exit(),e).style("opacity",0).remove(),o}},6315:(t,e,n)=>{"use strict";var r=n(1034),i=n(1322),a=n(8355),o=n(4322);t.exports=function(t,e){var n=t.selectAll("g.edgeLabel").data(e.edges(),(function(t){return a.edgeToId(t)})).classed("update",!0);return n.selectAll("*").remove(),n.enter().append("g").classed("edgeLabel",!0).style("opacity",0),(n=t.selectAll("g.edgeLabel")).each((function(t){var n=e.edge(t),a=i(o.select(this),e.edge(t),0,0).classed("label",!0),u=a.node().getBBox();n.labelId&&a.attr("id",n.labelId),r.has(n,"width")||(n.width=u.width),r.has(n,"height")||(n.height=u.height)})),a.applyTransition(n.exit(),e).style("opacity",0).remove(),n}},940:(t,e,n)=>{"use strict";var r=n(1034),i=n(3042),a=n(8355),o=n(4322);function u(t,e){var n=o.line().x((function(t){return t.x})).y((function(t){return t.y}));return n.curve(t.curve),n(e)}t.exports=function(t,e,n){var c=t.selectAll("g.edgePath").data(e.edges(),(function(t){return a.edgeToId(t)})).classed("update",!0);return function(t,e){var n=t.enter().append("g").attr("class","edgePath").style("opacity",0);n.append("path").attr("class","path").attr("d",(function(t){var n=e.edge(t),i=e.node(t.v).elem;return u(n,r.range(n.points.length).map((function(){return e=(t=i).getBBox(),{x:(n=t.ownerSVGElement.getScreenCTM().inverse().multiply(t.getScreenCTM()).translate(e.width/2,e.height/2)).e,y:n.f};var t,e,n})))})),n.append("defs")}(c,e),function(t,e){var n=t.exit();a.applyTransition(n,e).style("opacity",0).remove(),a.applyTransition(n.select("path.path"),e).attr("d",(function(t){var n=e.node(t.v);return n?u({},r.range(this.getTotalLength()).map((function(){return n}))):o.select(this).attr("d")}))}(c,e),c=t.selectAll("g.edgePath"),a.applyTransition(c,e).style("opacity",1),c.each((function(t){var n=o.select(this),r=e.edge(t);r.elem=this,r.id&&n.attr("id",r.id),a.applyClass(n,r.class,(n.classed("update")?"update ":"")+"edgePath")})),c.selectAll("path.path").each((function(t){var n=e.edge(t);n.arrowheadId=r.uniqueId("arrowhead");var c=o.select(this).attr("marker-end",(function(){return"url("+(t=location.href,e=n.arrowheadId,t.split("#")[0]+"#"+e+")");var t,e})).style("fill","none");a.applyTransition(c,e).attr("d",(function(t){return function(t,e){var n=t.edge(e),r=t.node(e.v),a=t.node(e.w),o=n.points.slice(1,n.points.length-1);return o.unshift(i(r,o[0])),o.push(i(a,o[o.length-1])),u(n,o)}(e,t)})),a.applyStyle(c,n.style)})),c.selectAll("defs *").remove(),c.selectAll("defs").each((function(t){var r=e.edge(t);(0,n[r.arrowhead])(o.select(this),r.arrowheadId,r,"arrowhead")})),c}},607:(t,e,n)=>{"use strict";var r=n(1034),i=n(1322),a=n(8355),o=n(4322);t.exports=function(t,e,n){var u=e.nodes().filter((function(t){return!a.isSubgraph(e,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=e.node(t),c=o.select(this);a.applyClass(c,u.class,(c.classed("update")?"update ":"")+"node");var l=c.append("g").attr("class","label"),s=i(l,u),f=n[u.shape],h=r.pick(s.node().getBBox(),"width","height");u.elem=this,u.id&&c.attr("id",u.id),u.labelId&&l.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,l.attr("transform","translate("+(u.paddingLeft-u.paddingRight)/2+","+(u.paddingTop-u.paddingBottom)/2+")");var d=f(o.select(this),h,u);a.applyStyle(d,u.style);var p=d.node().getBBox();u.width=p.width,u.height=p.height})),a.applyTransition(c.exit(),e).style("opacity",0).remove(),c}},4322:(t,e,n)=>{var r;if(!r)try{r=n(1524)}catch(t){}r||(r=window.d3),t.exports=r},1463:(t,e,n)=>{var r;try{r=n(681)}catch(t){}r||(r=window.dagre),t.exports=r},6614:(t,e,n)=>{var r;try{r=n(8282)}catch(t){}r||(r=window.graphlib),t.exports=r},8114:(t,e,n)=>{t.exports={node:n(3042),circle:n(6587),ellipse:n(3260),polygon:n(5337),rect:n(8049)}},6587:(t,e,n)=>{var r=n(3260);t.exports=function(t,e,n){return r(t,e,e,n)}},3260:t=>{t.exports=function(t,e,n,r){var i=t.x,a=t.y,o=i-r.x,u=a-r.y,c=Math.sqrt(e*e*u*u+n*n*o*o),l=Math.abs(e*n*o/c);r.x{function e(t,e){return t*e>0}t.exports=function(t,n,r,i){var a,o,u,c,l,s,f,h,d,p,g,v,y;if(!(a=n.y-t.y,u=t.x-n.x,l=n.x*t.y-t.x*n.y,d=a*r.x+u*r.y+l,p=a*i.x+u*i.y+l,0!==d&&0!==p&&e(d,p)||(o=i.y-r.y,c=r.x-i.x,s=i.x*r.y-r.x*i.y,f=o*t.x+c*t.y+s,h=o*n.x+c*n.y+s,0!==f&&0!==h&&e(f,h)||0==(g=a*c-o*u))))return v=Math.abs(g/2),{x:(y=u*s-c*l)<0?(y-v)/g:(y+v)/g,y:(y=o*l-a*s)<0?(y-v)/g:(y+v)/g}}},3042:t=>{t.exports=function(t,e){return t.intersect(e)}},5337:(t,e,n)=>{var r=n(6808);t.exports=function(t,e,n){var i=t.x,a=t.y,o=[],u=Number.POSITIVE_INFINITY,c=Number.POSITIVE_INFINITY;e.forEach((function(t){u=Math.min(u,t.x),c=Math.min(c,t.y)}));for(var l=i-t.width/2-u,s=a-t.height/2-c,f=0;f1&&o.sort((function(t,e){var r=t.x-n.x,i=t.y-n.y,a=Math.sqrt(r*r+i*i),o=e.x-n.x,u=e.y-n.y,c=Math.sqrt(o*o+u*u);return a{t.exports=function(t,e){var n,r,i=t.x,a=t.y,o=e.x-i,u=e.y-a,c=t.width/2,l=t.height/2;return Math.abs(u)*c>Math.abs(o)*l?(u<0&&(l=-l),n=0===u?0:l*o/u,r=l):(o<0&&(c=-c),n=c,r=0===o?0:c*u/o),{x:i+n,y:a+r}}},8284:(t,e,n)=>{var r=n(8355);t.exports=function(t,e){var n=t.append("foreignObject").attr("width","100000"),i=n.append("xhtml:div");i.attr("xmlns","http://www.w3.org/1999/xhtml");var a=e.label;switch(typeof a){case"function":i.insert(a);break;case"object":i.insert((function(){return a}));break;default:i.html(a)}r.applyStyle(i,e.labelStyle),i.style("display","inline-block"),i.style("white-space","nowrap");var o=i.node().getBoundingClientRect();return n.attr("width",o.width).attr("height",o.height),n}},1322:(t,e,n)=>{var r=n(7318),i=n(8284),a=n(8287);t.exports=function(t,e,n){var o=e.label,u=t.append("g");"svg"===e.labelType?a(u,e):"string"!=typeof o||"html"===e.labelType?i(u,e):r(u,e);var c,l=u.node().getBBox();switch(n){case"top":c=-e.height/2;break;case"bottom":c=e.height/2-l.height;break;default:c=-l.height/2}return u.attr("transform","translate("+-l.width/2+","+c+")"),u}},8287:(t,e,n)=>{var r=n(8355);t.exports=function(t,e){var n=t;return n.node().appendChild(e.label),r.applyStyle(n,e.labelStyle),n}},7318:(t,e,n)=>{var r=n(8355);t.exports=function(t,e){for(var n=t.append("text"),i=function(t){for(var e,n="",r=!1,i=0;i{var r;try{r=n(6486)}catch(t){}r||(r=window._),t.exports=r},6381:(t,e,n)=>{"use strict";var r=n(8355),i=n(4322);t.exports=function(t,e){var n=t.filter((function(){return!i.select(this).classed("update")}));function a(t){var n=e.node(t);return"translate("+n.x+","+n.y+")"}n.attr("transform",a),r.applyTransition(t,e).style("opacity",1).attr("transform",a),r.applyTransition(n.selectAll("rect"),e).attr("width",(function(t){return e.node(t).width})).attr("height",(function(t){return e.node(t).height})).attr("x",(function(t){return-e.node(t).width/2})).attr("y",(function(t){return-e.node(t).height/2}))}},4577:(t,e,n)=>{"use strict";var r=n(8355),i=n(4322),a=n(1034);t.exports=function(t,e){function n(t){var n=e.edge(t);return a.has(n,"x")?"translate("+n.x+","+n.y+")":""}t.filter((function(){return!i.select(this).classed("update")})).attr("transform",n),r.applyTransition(t,e).style("opacity",1).attr("transform",n)}},4849:(t,e,n)=>{"use strict";var r=n(8355),i=n(4322);t.exports=function(t,e){function n(t){var n=e.node(t);return"translate("+n.x+","+n.y+")"}t.filter((function(){return!i.select(this).classed("update")})).attr("transform",n),r.applyTransition(t,e).style("opacity",1).attr("transform",n)}},5787:(t,e,n)=>{var r=n(1034),i=n(4322),a=n(1463).layout;t.exports=function(){var t=n(607),e=n(5632),i=n(6315),l=n(940),s=n(4849),f=n(4577),h=n(6381),d=n(4418),p=n(9144),g=function(n,g){!function(t){t.nodes().forEach((function(e){var n=t.node(e);r.has(n,"label")||t.children(e).length||(n.label=e),r.has(n,"paddingX")&&r.defaults(n,{paddingLeft:n.paddingX,paddingRight:n.paddingX}),r.has(n,"paddingY")&&r.defaults(n,{paddingTop:n.paddingY,paddingBottom:n.paddingY}),r.has(n,"padding")&&r.defaults(n,{paddingLeft:n.padding,paddingRight:n.padding,paddingTop:n.padding,paddingBottom:n.padding}),r.defaults(n,o),r.each(["paddingLeft","paddingRight","paddingTop","paddingBottom"],(function(t){n[t]=Number(n[t])})),r.has(n,"width")&&(n._prevWidth=n.width),r.has(n,"height")&&(n._prevHeight=n.height)})),t.edges().forEach((function(e){var n=t.edge(e);r.has(n,"label")||(n.label=""),r.defaults(n,u)}))}(g),n.selectAll("*").remove();var v=c(n,"output"),y=c(v,"clusters"),m=c(v,"edgePaths"),_=i(c(v,"edgeLabels"),g),b=t(c(v,"nodes"),g,d);a(g),s(b,g),f(_,g),l(m,g,p);var w=e(y,g);h(w,g),function(t){r.each(t.nodes(),(function(e){var n=t.node(e);r.has(n,"_prevWidth")?n.width=n._prevWidth:delete n.width,r.has(n,"_prevHeight")?n.height=n._prevHeight:delete n.height,delete n._prevWidth,delete n._prevHeight}))}(g)};return g.createNodes=function(e){return arguments.length?(t=e,g):t},g.createClusters=function(t){return arguments.length?(e=t,g):e},g.createEdgeLabels=function(t){return arguments.length?(i=t,g):i},g.createEdgePaths=function(t){return arguments.length?(l=t,g):l},g.shapes=function(t){return arguments.length?(d=t,g):d},g.arrows=function(t){return arguments.length?(p=t,g):p},g};var o={paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10,rx:0,ry:0,shape:"rect"},u={arrowhead:"normal",curve:i.curveLinear};function c(t,e){var n=t.select("g."+e);return n.empty()&&(n=t.append("g").attr("class",e)),n}},4418:(t,e,n)=>{"use strict";var r=n(8049),i=n(3260),a=n(6587),o=n(5337);t.exports={rect:function(t,e,n){var i=t.insert("rect",":first-child").attr("rx",n.rx).attr("ry",n.ry).attr("x",-e.width/2).attr("y",-e.height/2).attr("width",e.width).attr("height",e.height);return n.intersect=function(t){return r(n,t)},i},ellipse:function(t,e,n){var r=e.width/2,a=e.height/2,o=t.insert("ellipse",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("rx",r).attr("ry",a);return n.intersect=function(t){return i(n,r,a,t)},o},circle:function(t,e,n){var r=Math.max(e.width,e.height)/2,i=t.insert("circle",":first-child").attr("x",-e.width/2).attr("y",-e.height/2).attr("r",r);return n.intersect=function(t){return a(n,r,t)},i},diamond:function(t,e,n){var r=e.width*Math.SQRT2/2,i=e.height*Math.SQRT2/2,a=[{x:0,y:-i},{x:-r,y:0},{x:0,y:i},{x:r,y:0}],u=t.insert("polygon",":first-child").attr("points",a.map((function(t){return t.x+","+t.y})).join(" "));return n.intersect=function(t){return o(n,a,t)},u}}},8355:(t,e,n)=>{var r=n(1034);t.exports={isSubgraph:function(t,e){return!!t.children(e).length},edgeToId:function(t){return a(t.v)+":"+a(t.w)+":"+a(t.name)},applyStyle:function(t,e){e&&t.attr("style",e)},applyClass:function(t,e,n){e&&t.attr("class",e).attr("class",n+" "+t.attr("class"))},applyTransition:function(t,e){var n=e.graph();if(r.isPlainObject(n)){var i=n.transition;if(r.isFunction(i))return i(t)}return t}};var i=/:/g;function a(t){return t?String(t).replace(i,"\\:"):""}},5689:t=>{t.exports="0.6.1"},1524:(t,e,n)=>{"use strict";n.r(e),n.d(e,{active:()=>VL,arc:()=>iS,area:()=>sS,areaRadial:()=>_S,ascending:()=>i,axisBottom:()=>ct,axisLeft:()=>lt,axisRight:()=>ut,axisTop:()=>ot,bisect:()=>l,bisectLeft:()=>c,bisectRight:()=>u,bisector:()=>a,brush:()=>qi,brushSelection:()=>Ui,brushX:()=>zi,brushY:()=>Fi,chord:()=>Zi,clientPoint:()=>SN,cluster:()=>Hg,color:()=>Wa,create:()=>xN,creator:()=>hk,cross:()=>h,csv:()=>R_,csvFormat:()=>Sc,csvFormatRows:()=>Tc,csvParse:()=>kc,csvParseRows:()=>Nc,cubehelix:()=>Co,curveBasis:()=>JS,curveBasisClosed:()=>eT,curveBasisOpen:()=>rT,curveBundle:()=>aT,curveCardinal:()=>cT,curveCardinalClosed:()=>sT,curveCardinalOpen:()=>hT,curveCatmullRom:()=>gT,curveCatmullRomClosed:()=>yT,curveCatmullRomOpen:()=>_T,curveLinear:()=>oS,curveLinearClosed:()=>wT,curveMonotoneX:()=>CT,curveMonotoneY:()=>AT,curveNatural:()=>IT,curveStep:()=>DT,curveStepAfter:()=>UT,curveStepBefore:()=>LT,customEvent:()=>dN,descending:()=>d,deviation:()=>v,dispatch:()=>Lo,drag:()=>vc,dragDisable:()=>cc,dragEnable:()=>lc,dsvFormat:()=>Ec,easeBack:()=>yl,easeBackIn:()=>gl,easeBackInOut:()=>yl,easeBackOut:()=>vl,easeBounce:()=>hl,easeBounceIn:()=>fl,easeBounceInOut:()=>dl,easeBounceOut:()=>hl,easeCircle:()=>tl,easeCircleIn:()=>Kc,easeCircleInOut:()=>tl,easeCircleOut:()=>Jc,easeCubic:()=>qc,easeCubicIn:()=>zc,easeCubicInOut:()=>qc,easeCubicOut:()=>Fc,easeElastic:()=>bl,easeElasticIn:()=>_l,easeElasticInOut:()=>wl,easeElasticOut:()=>bl,easeExp:()=>Zc,easeExpIn:()=>Gc,easeExpInOut:()=>Zc,easeExpOut:()=>Qc,easeLinear:()=>Oc,easePoly:()=>Hc,easePolyIn:()=>jc,easePolyInOut:()=>Hc,easePolyOut:()=>Bc,easeQuad:()=>Uc,easeQuadIn:()=>Dc,easeQuadInOut:()=>Uc,easeQuadOut:()=>Lc,easeSin:()=>$c,easeSinIn:()=>Wc,easeSinInOut:()=>$c,easeSinOut:()=>Xc,entries:()=>Ta,event:()=>cN,extent:()=>y,forceCenter:()=>xl,forceCollide:()=>Dl,forceLink:()=>Yl,forceManyBody:()=>ws,forceRadial:()=>xs,forceSimulation:()=>bs,forceX:()=>Es,forceY:()=>Ms,format:()=>Os,formatDefaultLocale:()=>zs,formatLocale:()=>Us,formatPrefix:()=>Ds,formatSpecifier:()=>As,geoAlbers:()=>sg,geoAlbersUsa:()=>fg,geoArea:()=>Df,geoAzimuthalEqualArea:()=>gg,geoAzimuthalEqualAreaRaw:()=>pg,geoAzimuthalEquidistant:()=>yg,geoAzimuthalEquidistantRaw:()=>vg,geoBounds:()=>Sh,geoCentroid:()=>Fh,geoCircle:()=>Qh,geoClipAntimeridian:()=>hd,geoClipCircle:()=>dd,geoClipExtent:()=>yd,geoClipRectangle:()=>vd,geoConicConformal:()=>Eg,geoConicConformalRaw:()=>xg,geoConicEqualArea:()=>lg,geoConicEqualAreaRaw:()=>cg,geoConicEquidistant:()=>Sg,geoConicEquidistantRaw:()=>Ng,geoContains:()=>zd,geoDistance:()=>Cd,geoEquirectangular:()=>kg,geoEquirectangularRaw:()=>Mg,geoGnomonic:()=>Cg,geoGnomonicRaw:()=>Tg,geoGraticule:()=>jd,geoGraticule10:()=>Bd,geoIdentity:()=>Pg,geoInterpolate:()=>Hd,geoLength:()=>Nd,geoMercator:()=>_g,geoMercatorRaw:()=>mg,geoNaturalEarth1:()=>Ig,geoNaturalEarth1Raw:()=>Rg,geoOrthographic:()=>Dg,geoOrthographicRaw:()=>Og,geoPath:()=>Wp,geoProjection:()=>ag,geoProjectionMutator:()=>og,geoRotation:()=>Xh,geoStereographic:()=>Ug,geoStereographicRaw:()=>Lg,geoStream:()=>xf,geoTransform:()=>Xp,geoTransverseMercator:()=>Fg,geoTransverseMercatorRaw:()=>zg,hcl:()=>_o,hierarchy:()=>Vg,histogram:()=>P,hsl:()=>Ja,html:()=>N_,interpolate:()=>lm,interpolateArray:()=>nm,interpolateBasis:()=>Wy,interpolateBasisClosed:()=>Xy,interpolateCool:()=>KM,interpolateCubehelix:()=>Dm,interpolateCubehelixDefault:()=>QM,interpolateCubehelixLong:()=>Lm,interpolateDate:()=>rm,interpolateHcl:()=>Rm,interpolateHclLong:()=>Im,interpolateHsl:()=>Tm,interpolateHslLong:()=>Cm,interpolateInferno:()=>ik,interpolateLab:()=>Am,interpolateMagma:()=>rk,interpolateNumber:()=>im,interpolateObject:()=>am,interpolatePlasma:()=>ak,interpolateRainbow:()=>tk,interpolateRgb:()=>Ky,interpolateRgbBasis:()=>tm,interpolateRgbBasisClosed:()=>em,interpolateRound:()=>sm,interpolateString:()=>cm,interpolateTransformCss:()=>_m,interpolateTransformSvg:()=>bm,interpolateViridis:()=>nk,interpolateWarm:()=>ZM,interpolateZoom:()=>Nm,interrupt:()=>WO,interval:()=>WR,isoFormat:()=>MR,isoParse:()=>kR,json:()=>S_,keys:()=>Na,lab:()=>ho,line:()=>lS,lineRadial:()=>mS,linkHorizontal:()=>TS,linkRadial:()=>AS,linkVertical:()=>CS,local:()=>MN,map:()=>va,matcher:()=>bk,max:()=>D,mean:()=>L,median:()=>U,merge:()=>z,min:()=>F,mouse:()=>TN,namespace:()=>lk,namespaces:()=>ck,nest:()=>ya,now:()=>UR,pack:()=>gv,packEnclose:()=>Zg,packSiblings:()=>sv,pairs:()=>s,partition:()=>wv,path:()=>Ym,permute:()=>q,pie:()=>dS,pointRadial:()=>bS,polygonArea:()=>Vm,polygonCentroid:()=>Wm,polygonContains:()=>Zm,polygonHull:()=>Qm,polygonLength:()=>Km,precisionFixed:()=>Fs,precisionPrefix:()=>qs,precisionRound:()=>js,quadtree:()=>r_,quantile:()=>R,quantize:()=>Um,queue:()=>p_,radialArea:()=>_S,radialLine:()=>mS,randomBates:()=>b_,randomExponential:()=>w_,randomIrwinHall:()=>__,randomLogNormal:()=>m_,randomNormal:()=>y_,randomUniform:()=>v_,range:()=>E,request:()=>M_,rgb:()=>Qa,ribbon:()=>ha,scaleBand:()=>ab,scaleIdentity:()=>ox,scaleImplicit:()=>rb,scaleLinear:()=>ax,scaleLog:()=>px,scaleOrdinal:()=>ib,scalePoint:()=>ub,scalePow:()=>vx,scaleQuantile:()=>mx,scaleQuantize:()=>_x,scaleSequential:()=>ok,scaleSqrt:()=>yx,scaleThreshold:()=>bx,scaleTime:()=>HM,scaleUtc:()=>YM,scan:()=>j,schemeCategory10:()=>WM,schemeCategory20:()=>GM,schemeCategory20b:()=>XM,schemeCategory20c:()=>$M,select:()=>wN,selectAll:()=>CN,selection:()=>bN,selector:()=>pk,selectorAll:()=>vk,set:()=>ka,shuffle:()=>B,stack:()=>jT,stackOffsetDiverging:()=>HT,stackOffsetExpand:()=>BT,stackOffsetNone:()=>zT,stackOffsetSilhouette:()=>YT,stackOffsetWiggle:()=>VT,stackOrderAscending:()=>WT,stackOrderDescending:()=>$T,stackOrderInsideOut:()=>GT,stackOrderNone:()=>FT,stackOrderReverse:()=>QT,stratify:()=>Sv,style:()=>Uk,sum:()=>H,symbol:()=>GS,symbolCircle:()=>PS,symbolCross:()=>RS,symbolDiamond:()=>DS,symbolSquare:()=>qS,symbolStar:()=>FS,symbolTriangle:()=>BS,symbolWye:()=>XS,symbols:()=>$S,text:()=>T_,thresholdFreedmanDiaconis:()=>I,thresholdScott:()=>O,thresholdSturges:()=>A,tickIncrement:()=>T,tickStep:()=>C,ticks:()=>S,timeDay:()=>mC,timeDays:()=>_C,timeFormat:()=>cP,timeFormatDefaultLocale:()=>xR,timeFormatLocale:()=>oP,timeFriday:()=>NC,timeFridays:()=>IC,timeHour:()=>gC,timeHours:()=>vC,timeInterval:()=>JT,timeMillisecond:()=>eC,timeMilliseconds:()=>nC,timeMinute:()=>hC,timeMinutes:()=>dC,timeMonday:()=>xC,timeMondays:()=>CC,timeMonth:()=>LC,timeMonths:()=>UC,timeParse:()=>lP,timeSaturday:()=>SC,timeSaturdays:()=>OC,timeSecond:()=>lC,timeSeconds:()=>sC,timeSunday:()=>wC,timeSundays:()=>TC,timeThursday:()=>kC,timeThursdays:()=>RC,timeTuesday:()=>EC,timeTuesdays:()=>AC,timeWednesday:()=>MC,timeWednesdays:()=>PC,timeWeek:()=>wC,timeWeeks:()=>TC,timeYear:()=>FC,timeYears:()=>qC,timeout:()=>VR,timer:()=>qR,timerFlush:()=>jR,touch:()=>AN,touches:()=>PN,transition:()=>UL,transpose:()=>Y,tree:()=>Ov,treemap:()=>Fv,treemapBinary:()=>qv,treemapDice:()=>bv,treemapResquarify:()=>Bv,treemapSlice:()=>Dv,treemapSliceDice:()=>jv,treemapSquarify:()=>zv,tsv:()=>I_,tsvFormat:()=>Rc,tsvFormatRows:()=>Ic,tsvParse:()=>Ac,tsvParseRows:()=>Pc,utcDay:()=>$C,utcDays:()=>GC,utcFormat:()=>sP,utcFriday:()=>nA,utcFridays:()=>lA,utcHour:()=>VC,utcHours:()=>WC,utcMillisecond:()=>eC,utcMilliseconds:()=>nC,utcMinute:()=>BC,utcMinutes:()=>HC,utcMonday:()=>KC,utcMondays:()=>aA,utcMonth:()=>hA,utcMonths:()=>dA,utcParse:()=>fP,utcSaturday:()=>rA,utcSaturdays:()=>sA,utcSecond:()=>lC,utcSeconds:()=>sC,utcSunday:()=>ZC,utcSundays:()=>iA,utcThursday:()=>eA,utcThursdays:()=>cA,utcTuesday:()=>JC,utcTuesdays:()=>oA,utcWednesday:()=>tA,utcWednesdays:()=>uA,utcWeek:()=>ZC,utcWeeks:()=>iA,utcYear:()=>gA,utcYears:()=>vA,values:()=>Sa,variance:()=>g,version:()=>r,voronoi:()=>PU,window:()=>Ik,xml:()=>C_,zip:()=>W,zoom:()=>Jj,zoomIdentity:()=>Hj,zoomTransform:()=>Yj});var r="4.13.0";function i(t,e){return te?1:t>=e?0:NaN}function a(t){var e;return 1===t.length&&(e=t,t=function(t,n){return i(e(t),n)}),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)>0?i=a:r=a+1}return r}}}var o=a(i),u=o.right,c=o.left;const l=u;function s(t,e){null==e&&(e=f);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);nt?1:e>=t?0:NaN}function p(t){return null===t?NaN:+t}function g(t,e){var n,r,i=t.length,a=0,o=-1,u=0,c=0;if(null==e)for(;++o1)return c/(a-1)}function v(t,e){var n=g(t,e);return n?Math.sqrt(n):n}function y(t,e){var n,r,i,a=t.length,o=-1;if(null==e){for(;++o=n)for(r=i=n;++on&&(r=n),i=n)for(r=i=n;++on&&(r=n),i0)return[t];if((r=e0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++u=0?(a>=M?10:a>=k?5:a>=N?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=M?10:a>=k?5:a>=N?2:1)}function C(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=M?i*=10:a>=k?i*=5:a>=N&&(i*=2),ef;)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]:s,p.x1=i=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,a=Math.floor(i),o=+n(t[a],a,t);return o+(+n(t[a+1],a+1,t)-o)*(i-a)}}function I(t,e,n){return t=b.call(t,p).sort(i),Math.ceil((n-e)/(2*(R(t,.75)-R(t,.25))*Math.pow(t.length,-1/3)))}function O(t,e,n){return Math.ceil((n-e)/(3.5*v(t)*Math.pow(t.length,-1/3)))}function D(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a=n)for(r=n;++ar&&(r=n)}else for(;++a=n)for(r=n;++ar&&(r=n);return r}function L(t,e){var n,r=t.length,i=r,a=-1,o=0;if(null==e)for(;++a=0;)for(e=(r=t[i]).length;--e>=0;)n[--o]=r[e];return n}function F(t,e){var n,r,i=t.length,a=-1;if(null==e){for(;++a=n)for(r=n;++an&&(r=n)}else for(;++a=n)for(r=n;++an&&(r=n);return r}function q(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r}function j(t,e){if(n=t.length){var n,r,a=0,o=0,u=t[o];for(null==e&&(e=i);++a=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),o=-1,u=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o0)for(var n,r,i=new Array(n),a=0;a=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),yt.hasOwnProperty(e)?{space:yt[e],local:t}:t}function _t(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===vt&&e.documentElement.namespaceURI===vt?e.createElement(t):e.createElementNS(n,t)}}function bt(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function wt(t){var e=mt(t);return(e.local?bt:_t)(e)}function xt(){}function Et(t){return null==t?xt:function(){return this.querySelector(t)}}function Mt(){return[]}function kt(t){return null==t?Mt:function(){return this.querySelectorAll(t)}}var Nt=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var St=document.documentElement;if(!St.matches){var Tt=St.webkitMatchesSelector||St.msMatchesSelector||St.mozMatchesSelector||St.oMatchesSelector;Nt=function(t){return function(){return Tt.call(this,t)}}}}const Ct=Nt;function At(t){return new Array(t.length)}function Pt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Pt.prototype={constructor:Pt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Rt="$";function It(t,e,n,r,i,a){for(var o,u=0,c=e.length,l=a.length;ue?1:t>=e?0:NaN}function Lt(t){return function(){this.removeAttribute(t)}}function Ut(t){return function(){this.removeAttributeNS(t.space,t.local)}}function zt(t,e){return function(){this.setAttribute(t,e)}}function Ft(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function qt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function jt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}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,e,n){return function(){this.style.setProperty(t,e,n)}}function Vt(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Wt(t,e){return t.style.getPropertyValue(e)||Bt(t).getComputedStyle(t,null).getPropertyValue(e)}function Xt(t){return function(){delete this[t]}}function $t(t,e){return function(){this[t]=e}}function Gt(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}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,e){for(var n=Zt(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ve={},ye=null;function me(t,e,n){return t=_e(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function _e(t,e,n){return function(r){var i=ye;ye=r;try{t.call(this,this.__data__,e,n)}finally{ye=i}}}function be(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r=w&&(w=b+1);!(_=y[w])&&++w=0;)(r=i[a])&&(o&&o!==r.nextSibling&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Dt);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==e?Ht:"function"==typeof e?Vt:Yt)(t,e,null==n?"":n)):Wt(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?Xt:"function"==typeof e?Gt:$t)(t,e)):this.node()[t]},classed:function(t,e){var n=Qt(t+"");if(arguments.length<2){for(var r=Zt(this.node()),i=-1,a=n.length;++i=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),o=a.length;if(!(arguments.length<2)){for(u=e?we:be,null==n&&(n=!1),r=0;r>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=He.exec(t))?Ke(parseInt(e[1],16)):(e=Ye.exec(t))?new nn(e[1],e[2],e[3],1):(e=Ve.exec(t))?new nn(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=We.exec(t))?Je(e[1],e[2],e[3],e[4]):(e=Xe.exec(t))?Je(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=$e.exec(t))?an(e[1],e[2]/100,e[3]/100,1):(e=Ge.exec(t))?an(e[1],e[2]/100,e[3]/100,e[4]):Qe.hasOwnProperty(t)?Ke(Qe[t]):"transparent"===t?new nn(NaN,NaN,NaN,0):null}function Ke(t){return new nn(t>>16&255,t>>8&255,255&t,1)}function Je(t,e,n,r){return r<=0&&(t=e=n=NaN),new nn(t,e,n,r)}function tn(t){return t instanceof Le||(t=Ze(t)),t?new nn((t=t.rgb()).r,t.g,t.b,t.opacity):new nn}function en(t,e,n,r){return 1===arguments.length?tn(t):new nn(t,e,n,null==r?1:r)}function nn(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function rn(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function an(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new un(t,e,n,r)}function on(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof un)return new un(t.h,t.s,t.l,t.opacity);if(t instanceof Le||(t=Ze(t)),!t)return new un;if(t instanceof un)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,u=a-i,c=(a+i)/2;return u?(o=e===a?(n-r)/u+6*(n0&&c<1?0:o,new un(o,u,c,t.opacity)}(t):new un(t,e,n,null==r?1:r)}function un(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function cn(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Oe(Le,Ze,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Oe(nn,en,De(Le,{brighter:function(t){return t=null==t?ze:Math.pow(ze,t),new nn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Ue:Math.pow(Ue,t),new nn(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"#"+rn(this.r)+rn(this.g)+rn(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+")")}})),Oe(un,on,De(Le,{brighter:function(t){return t=null==t?ze:Math.pow(ze,t),new un(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Ue:Math.pow(Ue,t),new un(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new nn(cn(t>=240?t-240:t+120,i,r),cn(t,i,r),cn(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 ln=Math.PI/180,sn=180/Math.PI,fn=.96422,hn=1,dn=.82521,pn=4/29,gn=6/29,vn=3*gn*gn,yn=gn*gn*gn;function mn(t){if(t instanceof _n)return new _n(t.l,t.a,t.b,t.opacity);if(t instanceof kn){if(isNaN(t.h))return new _n(t.l,0,0,t.opacity);var e=t.h*ln;return new _n(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof nn||(t=tn(t));var n,r,i=En(t.r),a=En(t.g),o=En(t.b),u=bn((.2225045*i+.7168786*a+.0606169*o)/hn);return i===a&&a===o?n=r=u:(n=bn((.4360747*i+.3850649*a+.1430804*o)/fn),r=bn((.0139322*i+.0971045*a+.7141733*o)/dn)),new _n(116*u-16,500*(n-u),200*(u-r),t.opacity)}function _n(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function bn(t){return t>yn?Math.pow(t,1/3):t/vn+pn}function wn(t){return t>gn?t*t*t:vn*(t-pn)}function xn(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function En(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Mn(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof kn)return new kn(t.h,t.c,t.l,t.opacity);if(t instanceof _n||(t=mn(t)),0===t.a&&0===t.b)return new kn(NaN,0,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*sn;return new kn(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new kn(t,e,n,null==r?1:r)}function kn(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}Oe(_n,(function(t,e,n,r){return 1===arguments.length?mn(t):new _n(t,e,n,null==r?1:r)}),De(Le,{brighter:function(t){return new _n(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new _n(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new nn(xn(3.1338561*(e=fn*wn(e))-1.6168667*(t=hn*wn(t))-.4906146*(n=dn*wn(n))),xn(-.9787684*e+1.9161415*t+.033454*n),xn(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),Oe(kn,Mn,De(Le,{brighter:function(t){return new kn(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new kn(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return mn(this).rgb()}}));var Nn=-.14861,Sn=1.78277,Tn=-.29227,Cn=-.90649,An=1.97294,Pn=An*Cn,Rn=An*Sn,In=Sn*Tn-Cn*Nn;function On(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Dn)return new Dn(t.h,t.s,t.l,t.opacity);t instanceof nn||(t=tn(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(In*r+Pn*e-Rn*n)/(In+Pn-Rn),a=r-i,o=(An*(n-i)-Tn*a)/Cn,u=Math.sqrt(o*o+a*a)/(An*i*(1-i)),c=u?Math.atan2(o,a)*sn-120:NaN;return new Dn(c<0?c+360:c,u,i,t.opacity)}(t):new Dn(t,e,n,null==r?1:r)}function Dn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Ln(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}function Un(t){return function(){return t}}function zn(t,e){return function(n){return t+n*e}}function Fn(t,e){var n=e-t;return n?zn(t,n>180||n<-180?n-360*Math.round(n/360):n):Un(isNaN(t)?e:t)}function qn(t,e){var n=e-t;return n?zn(t,n):Un(isNaN(t)?e:t)}Oe(Dn,On,De(Le,{brighter:function(t){return t=null==t?ze:Math.pow(ze,t),new Dn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Ue:Math.pow(Ue,t),new Dn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*ln,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new nn(255*(e+n*(Nn*r+Sn*i)),255*(e+n*(Tn*r+Cn*i)),255*(e+n*(An*r)),this.opacity)}}));const jn=function t(e){var n=function(t){return 1==(t=+t)?qn:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Un(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=en(t)).r,(e=en(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=qn(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function Bn(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),u=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,u=ra&&(i=e.slice(a,i),u[o]?u[o]+=i:u[++o]=i),(n=n[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,c.push({i:o,x:Vn(n,r)})),a=$n.lastIndex;return a180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Vn(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,u,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Vn(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,u,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var u=a.push(i(a)+"scale(",null,",",null,")");o.push({i:u-4,x:Vn(t,n)},{i:u-2,x:Vn(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,u,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++n=0&&e._call.call(null,t),e=e._next;--hr}()}finally{hr=0,function(){for(var t,e,n=sr,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:sr=e);fr=t,Sr(r)}(),yr=0}}function Nr(){var t=_r.now(),e=t-vr;e>gr&&(mr-=e,vr=t)}function Sr(t){hr||(dr&&(dr=clearTimeout(dr)),t-yr>24?(t<1/0&&(dr=setTimeout(kr,t-_r.now()-mr)),pr&&(pr=clearInterval(pr))):(pr||(vr=_r.now(),pr=setInterval(Nr,gr)),hr=1,br(kr)))}function Tr(t,e,n){var r=new Er;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r}Er.prototype=Mr.prototype={constructor:Er,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?wr():+n)+(null==e?0:+e),this._next||fr===this||(fr?fr._next=this:sr=this,fr=this),this._call=t,this._time=n,Sr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Sr())}};var Cr=gt("start","end","interrupt"),Ar=[],Pr=0,Rr=1,Ir=2,Or=3,Dr=4,Lr=5,Ur=6;function zr(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(c){var l,s,f,h;if(n.state!==Rr)return u();for(l in i)if((h=i[l]).name===n.name){if(h.state===Or)return Tr(a);h.state===Dr?(h.state=Ur,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[l]):+lPr)throw new Error("too late; already scheduled");return n}function qr(t,e){var n=jr(t,e);if(n.state>Ir)throw new Error("too late; already started");return n}function jr(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Br(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>Ir&&n.state=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Fr:qr;return function(){var o=a(this,t),u=o.on;u!==r&&(i=(r=u).copy()).on(e,n),o.on=i}}(n,t,e))},attr:function(t,e){var n=mt(t),r="transform"===n?or:Wr;return this.attrTween(t,"function"==typeof e?(n.local?Kr:Zr)(n,r,Vr(this,"attr."+t,e)):null==e?(n.local?$r:Xr)(n):(n.local?Qr:Gr)(n,r,e+""))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=mt(t);return this.tween(n,(r.local?Jr:ti)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?ar:Wr;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var a=Wt(this,t),o=(this.style.removeProperty(t),Wt(this,t));return a===o?null:a===n&&o===r?i:i=e(n=a,r=o)}}(t,r)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof e?function(t,e,n){var r,i,a;return function(){var o=Wt(this,t),u=n(this);return null==u&&(this.style.removeProperty(t),u=Wt(this,t)),o===u?null:o===r&&u===i?a:a=e(r=o,i=u)}}(t,r,Vr(this,"style."+t,e)):function(t,e,n){var r,i;return function(){var a=Wt(this,t);return a===n?null:a===r?i:i=e(r=a,n)}}(t,r,e+""),n)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){function r(){var r=this,i=e.apply(r,arguments);return i&&function(e){r.style.setProperty(t,i(e),n)}}return r._value=e,r}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(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 e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=jr(this.node(),n).tween,a=0,o=i.length;a0&&(n=i-d),x<0?f=h-p:x>0&&(a=o-p),b=wi,D.attr("cursor",Si.selection),z());break;default:return}yi()}),!0).on("keyup.brush",(function(){switch(ye.keyCode){case 16:A&&(v=y=A=!1,z());break;case 18:b===Ei&&(w<0?l=s:w>0&&(n=i),x<0?f=h:x>0&&(a=o),b=xi,z());break;case 32:b===wi&&(ye.altKey?(w&&(l=s-d*w,n=i+d*w),x&&(f=h-p*x,a=o+p*x),b=Ei):(w<0?l=s:w>0&&(n=i),x<0?f=h:x>0&&(a=o),b=xi),D.attr("cursor",Si[_]),z());break;default:return}yi()}),!0).on("mousemove.brush",U,!0).on("mouseup.brush",F,!0);!function(t){var e=t.document.documentElement,n=Ce(t).on("dragstart.drag",Ie,!0);"onselectstart"in e?n.on("selectstart.drag",Ie,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}(ye.view)}vi(),Br(m),u.call(m),I.start()}function U(){var t=Re(m);!A||v||y||(Math.abs(t[0]-R[0])>Math.abs(t[1]-R[1])?y=!0:v=!0),R=t,g=!0,yi(),z()}function z(){var t;switch(d=R[0]-P[0],p=R[1]-P[1],b){case wi:case bi:w&&(d=Math.max(N-n,Math.min(T-l,d)),i=n+d,s=l+d),x&&(p=Math.max(S-a,Math.min(C-f,p)),o=a+p,h=f+p);break;case xi:w<0?(d=Math.max(N-n,Math.min(T-n,d)),i=n+d,s=l):w>0&&(d=Math.max(N-l,Math.min(T-l,d)),i=n,s=l+d),x<0?(p=Math.max(S-a,Math.min(C-a,p)),o=a+p,h=f):x>0&&(p=Math.max(S-f,Math.min(C-f,p)),o=a,h=f+p);break;case Ei:w&&(i=Math.max(N,Math.min(T,n-d*w)),s=Math.max(N,Math.min(T,l+d*w))),x&&(o=Math.max(S,Math.min(C,a-p*x)),h=Math.max(S,Math.min(C,f+p*x)))}se?1:t>=e?0:NaN}1===(mi=Bi).length&&(_i=mi,mi=function(t,e){return Bi(_i(t),e)});var Hi=Array.prototype;function Yi(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),a=new Array(i);++rna)if(Math.abs(s*u-c*l)>na&&i){var h=n-a,d=r-o,p=u*u+c*c,g=h*h+d*d,v=Math.sqrt(p),y=Math.sqrt(f),m=i*Math.tan((ta-Math.acos((p+f-g)/(2*v*y)))/2),_=m/y,b=m/v;Math.abs(_-1)>na&&(this._+="L"+(t+_*l)+","+(e+_*s)),this._+="A"+i+","+i+",0,0,"+ +(s*h>l*d)+","+(this._x1=t+b*u)+","+(this._y1=e+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,r,i,a){t=+t,e=+e;var o=(n=+n)*Math.cos(r),u=n*Math.sin(r),c=t+o,l=e+u,s=1^a,f=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>na||Math.abs(this._y1-l)>na)&&(this._+="L"+c+","+l),n&&(f<0&&(f=f%ea+ea),f>ra?this._+="A"+n+","+n+",0,1,"+s+","+(t-o)+","+(e-u)+"A"+n+","+n+",0,1,"+s+","+(this._x1=c)+","+(this._y1=l):f>na&&(this._+="A"+n+","+n+",0,"+ +(f>=ta)+","+s+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const oa=aa;function ua(t){return t.source}function ca(t){return t.target}function la(t){return t.radius}function sa(t){return t.startAngle}function fa(t){return t.endAngle}function ha(){var t=ua,e=ca,n=la,r=sa,i=fa,a=null;function o(){var o,u=Ki.call(arguments),c=t.apply(this,u),l=e.apply(this,u),s=+n.apply(this,(u[0]=c,u)),f=r.apply(this,u)-$i,h=i.apply(this,u)-$i,d=s*Vi(f),p=s*Wi(f),g=+n.apply(this,(u[0]=l,u)),v=r.apply(this,u)-$i,y=i.apply(this,u)-$i;if(a||(a=o=oa()),a.moveTo(d,p),a.arc(0,0,s,f,h),f===v&&h===y||(a.quadraticCurveTo(0,0,g*Vi(v),g*Wi(v)),a.arc(0,0,g,v,y)),a.quadraticCurveTo(0,0,d,p),a.closePath(),o)return a=null,o+""||null}return o.radius=function(t){return arguments.length?(n="function"==typeof t?t:Ji(+t),o):n},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Ji(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:Ji(+t),o):i},o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(t){return arguments.length?(e=t,o):e},o.context=function(t){return arguments.length?(a=null==t?null:t,o):a},o}var da="$";function pa(){}function ga(t,e){var n=new pa;if(t instanceof pa)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,a=t.length;if(null==e)for(;++i=r.length)return null!=t&&n.sort(t),null!=e?e(n):n;for(var c,l,s,f=-1,h=n.length,d=r[i++],p=va(),g=o();++fr.length)return t;var a,u=i[n-1];return null!=e&&n>=r.length?a=t.entries():(a=[],t.each((function(t,e){a.push({key:e,values:o(t,n)})}))),null!=u?a.sort((function(t,e){return u(t.key,e.key)})):a}return n={object:function(t){return a(t,0,ma,_a)},map:function(t){return a(t,0,ba,wa)},entries:function(t){return o(a(t,0,ba,wa),0)},key:function(t){return r.push(t),n},sortKeys:function(t){return i[r.length-1]=t,n},sortValues:function(e){return t=e,n},rollup:function(t){return e=t,n}}}function ma(){return{}}function _a(t,e,n){t[e]=n}function ba(){return va()}function wa(t,e,n){t.set(e,n)}function xa(){}var Ea=va.prototype;function Ma(t,e){var n=new xa;if(t instanceof xa)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)for(;++r>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=za.exec(t))?Xa(parseInt(e[1],16)):(e=Fa.exec(t))?new Za(e[1],e[2],e[3],1):(e=qa.exec(t))?new Za(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ja.exec(t))?$a(e[1],e[2],e[3],e[4]):(e=Ba.exec(t))?$a(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ha.exec(t))?Ka(e[1],e[2]/100,e[3]/100,1):(e=Ya.exec(t))?Ka(e[1],e[2]/100,e[3]/100,e[4]):Va.hasOwnProperty(t)?Xa(Va[t]):"transparent"===t?new Za(NaN,NaN,NaN,0):null}function Xa(t){return new Za(t>>16&255,t>>8&255,255&t,1)}function $a(t,e,n,r){return r<=0&&(t=e=n=NaN),new Za(t,e,n,r)}function Ga(t){return t instanceof Pa||(t=Wa(t)),t?new Za((t=t.rgb()).r,t.g,t.b,t.opacity):new Za}function Qa(t,e,n,r){return 1===arguments.length?Ga(t):new Za(t,e,n,null==r?1:r)}function Za(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Ka(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new to(t,e,n,r)}function Ja(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof to)return new to(t.h,t.s,t.l,t.opacity);if(t instanceof Pa||(t=Wa(t)),!t)return new to;if(t instanceof to)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,u=a-i,c=(a+i)/2;return u?(o=e===a?(n-r)/u+6*(n0&&c<1?0:o,new to(o,u,c,t.opacity)}(t):new to(t,e,n,null==r?1:r)}function to(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function eo(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Ca(Pa,Wa,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Ca(Za,Qa,Aa(Pa,{brighter:function(t){return t=null==t?Ia:Math.pow(Ia,t),new Za(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Ra:Math.pow(Ra,t),new Za(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+")")}})),Ca(to,Ja,Aa(Pa,{brighter:function(t){return t=null==t?Ia:Math.pow(Ia,t),new to(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Ra:Math.pow(Ra,t),new to(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Za(eo(t>=240?t-240:t+120,i,r),eo(t,i,r),eo(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 no=Math.PI/180,ro=180/Math.PI,io=.95047,ao=1,oo=1.08883,uo=4/29,co=6/29,lo=3*co*co,so=co*co*co;function fo(t){if(t instanceof po)return new po(t.l,t.a,t.b,t.opacity);if(t instanceof bo){var e=t.h*no;return new po(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof Za||(t=Ga(t));var n=mo(t.r),r=mo(t.g),i=mo(t.b),a=go((.4124564*n+.3575761*r+.1804375*i)/io),o=go((.2126729*n+.7151522*r+.072175*i)/ao);return new po(116*o-16,500*(a-o),200*(o-go((.0193339*n+.119192*r+.9503041*i)/oo)),t.opacity)}function ho(t,e,n,r){return 1===arguments.length?fo(t):new po(t,e,n,null==r?1:r)}function po(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function go(t){return t>so?Math.pow(t,1/3):t/lo+uo}function vo(t){return t>co?t*t*t:lo*(t-uo)}function yo(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function mo(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function _o(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof bo)return new bo(t.h,t.c,t.l,t.opacity);t instanceof po||(t=fo(t));var e=Math.atan2(t.b,t.a)*ro;return new bo(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new bo(t,e,n,null==r?1:r)}function bo(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}Ca(po,ho,Aa(Pa,{brighter:function(t){return new po(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new po(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return t=ao*vo(t),new Za(yo(3.2404542*(e=io*vo(e))-1.5371385*t-.4985314*(n=oo*vo(n))),yo(-.969266*e+1.8760108*t+.041556*n),yo(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),Ca(bo,_o,Aa(Pa,{brighter:function(t){return new bo(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new bo(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return fo(this).rgb()}}));var wo=-.14861,xo=1.78277,Eo=-.29227,Mo=-.90649,ko=1.97294,No=ko*Mo,So=ko*xo,To=xo*Eo-Mo*wo;function Co(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Ao)return new Ao(t.h,t.s,t.l,t.opacity);t instanceof Za||(t=Ga(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(To*r+No*e-So*n)/(To+No-So),a=r-i,o=(ko*(n-i)-Eo*a)/Mo,u=Math.sqrt(o*o+a*a)/(ko*i*(1-i)),c=u?Math.atan2(o,a)*ro-120:NaN;return new Ao(c<0?c+360:c,u,i,t.opacity)}(t):new Ao(t,e,n,null==r?1:r)}function Ao(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Ca(Ao,Co,Aa(Pa,{brighter:function(t){return t=null==t?Ia:Math.pow(Ia,t),new Ao(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Ra:Math.pow(Ra,t),new Ao(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*no,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new Za(255*(e+n*(wo*r+xo*i)),255*(e+n*(Eo*r+Mo*i)),255*(e+n*(ko*r)),this.opacity)}}));var Po={value:function(){}};function Ro(){for(var t,e=0,n=arguments.length,r={};e=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),o=-1,u=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o0)for(var n,r,i=new Array(n),a=0;a=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),o=-1,u=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o0)for(var n,r,i=new Array(n),a=0;a=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Yo.hasOwnProperty(e)?{space:Yo[e],local:t}:t}function Wo(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Ho&&e.documentElement.namespaceURI===Ho?e.createElement(t):e.createElementNS(n,t)}}function Xo(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function $o(t){var e=Vo(t);return(e.local?Xo:Wo)(e)}function Go(){}function Qo(t){return null==t?Go:function(){return this.querySelector(t)}}function Zo(){return[]}var Ko=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var Jo=document.documentElement;if(!Jo.matches){var tu=Jo.webkitMatchesSelector||Jo.msMatchesSelector||Jo.mozMatchesSelector||Jo.oMatchesSelector;Ko=function(t){return function(){return tu.call(this,t)}}}}const eu=Ko;function nu(t){return new Array(t.length)}function ru(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}ru.prototype={constructor:ru,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var iu="$";function au(t,e,n,r,i,a){for(var o,u=0,c=e.length,l=a.length;ue?1:t>=e?0:NaN}function cu(t){return function(){this.removeAttribute(t)}}function lu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function su(t,e){return function(){this.setAttribute(t,e)}}function fu(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function hu(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function du(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}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,e,n){return function(){this.style.setProperty(t,e,n)}}function yu(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function mu(t){return function(){delete this[t]}}function _u(t,e){return function(){this[t]=e}}function bu(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function wu(t){return t.trim().split(/^|\s+/)}function xu(t){return t.classList||new Eu(t)}function Eu(t){this._node=t,this._names=wu(t.getAttribute("class")||"")}function Mu(t,e){for(var n=xu(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ju={},Bu=null;function Hu(t,e,n){return t=Yu(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function Yu(t,e,n){return function(r){var i=Bu;Bu=r;try{t.call(this,this.__data__,e,n)}finally{Bu=i}}}function Vu(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r=w&&(w=b+1);!(_=y[w])&&++w=0;)(r=i[a])&&(o&&o!==r.nextSibling&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=uu);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==e?gu:"function"==typeof e?yu:vu)(t,e,null==n?"":n)):function(t,e){return t.style.getPropertyValue(e)||pu(t).getComputedStyle(t,null).getPropertyValue(e)}(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?mu:"function"==typeof e?bu:_u)(t,e)):this.node()[t]},classed:function(t,e){var n=wu(t+"");if(arguments.length<2){for(var r=xu(this.node()),i=-1,a=n.length;++i=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),o=a.length;if(!(arguments.length<2)){for(u=e?Wu:Vu,null==n&&(n=!1),r=0;rf}c.mouse("drag")}function g(){Ju(Bu.view).on("mousemove.drag mouseup.drag",null),lc(Bu.view,n),uc(),c.mouse("end")}function v(){if(i.apply(this,arguments)){var t,e,n=Bu.changedTouches,r=a.apply(this,arguments),o=n.length;for(t=0;t=a?c=!0:(r=t.charCodeAt(o++))===bc?l=!0:r===wc&&(l=!0,t.charCodeAt(o)===bc&&++o),t.slice(i+1,e-1).replace(/""/g,'"')}for(;o=(a=(g+y)/2))?g=a:y=a,(s=n>=(o=(v+m)/2))?v=o:m=o,i=d,!(d=d[f=s<<1|l]))return i[f]=p,t;if(u=+t._x.call(null,d.data),c=+t._y.call(null,d.data),e===u&&n===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),(l=e>=(a=(g+y)/2))?g=a:y=a,(s=n>=(o=(v+m)/2))?v=o:m=o}while((f=s<<1|l)==(h=(c>=o)<<1|u>=a));return i[h]=d,i[f]=p,t}function Nl(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function Sl(t){return t[0]}function Tl(t){return t[1]}function Cl(t,e,n){var r=new Al(null==e?Sl:e,null==n?Tl:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function Al(t,e,n,r,i,a){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function Pl(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var Rl=Cl.prototype=Al.prototype;function Il(t){return t.x+t.vx}function Ol(t){return t.y+t.vy}function Dl(t){var e,n,r=1,i=1;function a(){for(var t,a,u,c,l,s,f,h=e.length,d=0;dc+d||il+d||au.index){var p=c-o.x-o.vx,g=l-o.y-o.vy,v=p*p+g*g;vt.r&&(t.r=t[e].r)}function u(){if(e){var r,i,a=e.length;for(n=new Array(a),r=0;rs&&(s=r),if&&(f=i));for(st||t>i||r>e||e>a))return this;var o,u,c=i-n,l=this._root;switch(u=(e<(r+a)/2)<<1|t<(n+i)/2){case 0:do{(o=new Array(4))[u]=l,l=o}while(a=r+(c*=2),t>(i=n+c)||e>a);break;case 1:do{(o=new Array(4))[u]=l,l=o}while(a=r+(c*=2),(n=i-c)>t||e>a);break;case 2:do{(o=new Array(4))[u]=l,l=o}while(r=a-(c*=2),t>(i=n+c)||r>e);break;case 3:do{(o=new Array(4))[u]=l,l=o}while(r=a-(c*=2),(n=i-c)>t||r>e)}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=r,this._x1=i,this._y1=a,this},Rl.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},Rl.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]]},Rl.find=function(t,e,n){var r,i,a,o,u,c,l,s=this._x0,f=this._y0,h=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new Nl(g,s,f,h,d)),null==n?n=1/0:(s=t-n,f=e-n,h=t+n,d=e+n,n*=n);c=p.pop();)if(!(!(g=c.node)||(i=c.x0)>h||(a=c.y0)>d||(o=c.x1)=y)<<1|t>=v)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-l],p[p.length-1-l]=c)}else{var m=t-+this._x.call(null,g.data),_=e-+this._y.call(null,g.data),b=m*m+_*_;if(b=(u=(p+v)/2))?p=u:v=u,(s=o>=(c=(g+y)/2))?g=c:y=c,e=d,!(d=d[f=s<<1|l]))return this;if(!d.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(n=e,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):e?(i?e[f]=i:delete e[f],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[h]=d:this._root=d),this):(this._root=i,this)},Rl.removeAll=function(t){for(var e=0,n=t.length;e=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),o=-1,u=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o0)for(var n,r,i=new Array(n),a=0;a=0&&e._call.call(null,t),e=e._next;--Jl}()}finally{Jl=0,function(){for(var t,e,n=Zl,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Zl=e);Kl=t,ps(r)}(),is=0}}function ds(){var t=os.now(),e=t-rs;e>ns&&(as-=e,rs=t)}function ps(t){Jl||(ts&&(ts=clearTimeout(ts)),t-is>24?(t<1/0&&(ts=setTimeout(hs,t-os.now()-as)),es&&(es=clearInterval(es))):(es||(rs=os.now(),es=setInterval(ds,ns)),Jl=1,us(hs)))}function gs(t){return t.x}function vs(t){return t.y}ss.prototype=fs.prototype={constructor:ss,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?cs():+n)+(null==e?0:+e),this._next||Kl===this||(Kl?Kl._next=this:Zl=this,Kl=this),this._call=t,this._time=n,ps()},stop:function(){this._call&&(this._call=null,this._time=1/0,ps())}};var ys,ms=10,_s=Math.PI*(3-Math.sqrt(5));function bs(t){var e,n=1,r=.001,i=1-Math.pow(r,1/300),a=0,o=.6,u=Fl(),c=fs(s),l=Ql("tick","end");function s(){f(),l.call("tick",e),n1?(null==n?u.remove(t):u.set(t,d(n)),e):u.get(t)},find:function(e,n,r){var i,a,o,u,c,l=0,s=t.length;for(null==r?r=1/0:r*=r,l=0;l1?(l.on(t,n),e):l.on(t)}}}function ws(){var t,e,n,r,i=El(-30),a=1,o=1/0,u=.81;function c(r){var i,a=t.length,o=Cl(t,gs,vs).visitAfter(s);for(n=r,i=0;i=o)){(t.data!==e||t.next)&&(0===s&&(d+=(s=Ml())*s),0===f&&(d+=(f=Ml())*f),d1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Ns(t){return(t=ks(Math.abs(t)))?t[1]:NaN}function Ss(t,e){var n=ks(t,e);if(!n)return t+"";var r=n[0],i=n[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 Ts={"":function(t,e){t:for(var n,r=(t=t.toPrecision(e)).length,i=1,a=-1;i0&&(a=0)}return a>0?t.slice(0,a)+t.slice(n+1):t},"%":function(t,e){return(100*t).toFixed(e)},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,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Ss(100*t,e)},r:Ss,s:function(t,e){var n=ks(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(ys=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+ks(t,Math.max(0,e+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};var Cs=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?([a-z%])?$/i;function As(t){return new Ps(t)}function Ps(t){if(!(e=Cs.exec(t)))throw new Error("invalid format: "+t);var e,n=e[1]||" ",r=e[2]||">",i=e[3]||"-",a=e[4]||"",o=!!e[5],u=e[6]&&+e[6],c=!!e[7],l=e[8]&&+e[8].slice(1),s=e[9]||"";"n"===s?(c=!0,s="g"):Ts[s]||(s=""),(o||"0"===n&&"="===r)&&(o=!0,n="0",r="="),this.fill=n,this.align=r,this.sign=i,this.symbol=a,this.zero=o,this.width=u,this.comma=c,this.precision=l,this.type=s}function Rs(t){return t}As.prototype=Ps.prototype,Ps.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 Is,Os,Ds,Ls=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Us(t){var e,n,r=t.grouping&&t.thousands?(e=t.grouping,n=t.thousands,function(t,r){for(var i=t.length,a=[],o=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),a.push(t.substring(i-=u,i+u)),!((c+=u+1)>r));)u=e[o=(o+1)%e.length];return a.reverse().join(n)}):Rs,i=t.currency,a=t.decimal,o=t.numerals?function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(t.numerals):Rs,u=t.percent||"%";function c(t){var e=(t=As(t)).fill,n=t.align,c=t.sign,l=t.symbol,s=t.zero,f=t.width,h=t.comma,d=t.precision,p=t.type,g="$"===l?i[0]:"#"===l&&/[boxX]/.test(p)?"0"+p.toLowerCase():"",v="$"===l?i[1]:/[%p]/.test(p)?u:"",y=Ts[p],m=!p||/[defgprs%]/.test(p);function _(t){var i,u,l,_=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?Ls[8+ys/3]:"")+b+(w&&"("===c?")":""),m)for(i=-1,u=t.length;++i(l=t.charCodeAt(i))||l>57){b=(46===l?a+t.slice(i+1):t.slice(i))+b,t=t.slice(0,i);break}}h&&!s&&(t=r(t,1/0));var x=_.length+t.length+b.length,E=x>1)+_+t+b+E.slice(x);break;default:t=E+_+t+b}return o(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,e){var n=c(((t=As(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Ns(e)/3))),i=Math.pow(10,-r),a=Ls[8+r/3];return function(t){return n(i*t)+a}}}}function zs(t){return Is=Us(t),Os=Is.format,Ds=Is.formatPrefix,Is}function Fs(t){return Math.max(0,-Ns(Math.abs(t)))}function qs(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ns(e)/3)))-Ns(Math.abs(t)))}function js(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Ns(e)-Ns(t))+1}function Bs(){return new Hs}function Hs(){this.reset()}zs({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),Hs.prototype={constructor:Hs,reset:function(){this.s=this.t=0},add:function(t){Vs(Ys,t,this.t),Vs(this,Ys.s,this.s),this.s?this.t+=Ys.t:this.s=Ys.t},valueOf:function(){return this.s}};var Ys=new Hs;function Vs(t,e,n){var r=t.s=e+n,i=r-e,a=r-i;t.t=e-a+(n-i)}var Ws=1e-6,Xs=1e-12,$s=Math.PI,Gs=$s/2,Qs=$s/4,Zs=2*$s,Ks=180/$s,Js=$s/180,tf=Math.abs,ef=Math.atan,nf=Math.atan2,rf=Math.cos,af=Math.ceil,of=Math.exp,uf=(Math.floor,Math.log),cf=Math.pow,lf=Math.sin,sf=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?$s:Math.acos(t)}function pf(t){return t>1?Gs:t<-1?-Gs:Math.asin(t)}function gf(t){return(t=lf(t/2))*t}function vf(){}function yf(t,e){t&&_f.hasOwnProperty(t.type)&&_f[t.type](t,e)}var mf={Feature:function(t,e){yf(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r=0?1:-1,i=r*n,a=rf(e=(e*=Js)/2+Qs),o=lf(e),u=Sf*o,c=Nf*a+u*rf(i),l=u*r*lf(i);Tf.add(nf(l,c)),kf=t,Nf=a,Sf=o}function Df(t){return Cf.reset(),xf(t,Af),2*Cf}function Lf(t){return[nf(t[1],t[0]),pf(t[2])]}function Uf(t){var e=t[0],n=t[1],r=rf(n);return[r*rf(e),r*lf(e),lf(n)]}function zf(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Ff(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function qf(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function jf(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Bf(t){var e=ff(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var Hf,Yf,Vf,Wf,Xf,$f,Gf,Qf,Zf,Kf,Jf,th,eh,nh,rh,ih,ah,oh,uh,ch,lh,sh,fh,hh,dh,ph,gh=Bs(),vh={point:yh,lineStart:_h,lineEnd:bh,polygonStart:function(){vh.point=wh,vh.lineStart=xh,vh.lineEnd=Eh,gh.reset(),Af.polygonStart()},polygonEnd:function(){Af.polygonEnd(),vh.point=yh,vh.lineStart=_h,vh.lineEnd=bh,Tf<0?(Hf=-(Vf=180),Yf=-(Wf=90)):gh>Ws?Wf=90:gh<-Ws&&(Yf=-90),Kf[0]=Hf,Kf[1]=Vf}};function yh(t,e){Zf.push(Kf=[Hf=t,Vf=t]),eWf&&(Wf=e)}function mh(t,e){var n=Uf([t*Js,e*Js]);if(Qf){var r=Ff(Qf,n),i=Ff([r[1],-r[0],0],r);Bf(i),i=Lf(i);var a,o=t-Xf,u=o>0?1:-1,c=i[0]*Ks*u,l=tf(o)>180;l^(u*XfWf&&(Wf=a):l^(u*Xf<(c=(c+360)%360-180)&&cWf&&(Wf=e)),l?tMh(Hf,Vf)&&(Vf=t):Mh(t,Vf)>Mh(Hf,Vf)&&(Hf=t):Vf>=Hf?(tVf&&(Vf=t)):t>Xf?Mh(Hf,t)>Mh(Hf,Vf)&&(Vf=t):Mh(t,Vf)>Mh(Hf,Vf)&&(Hf=t)}else Zf.push(Kf=[Hf=t,Vf=t]);eWf&&(Wf=e),Qf=n,Xf=t}function _h(){vh.point=mh}function bh(){Kf[0]=Hf,Kf[1]=Vf,vh.point=yh,Qf=null}function wh(t,e){if(Qf){var n=t-Xf;gh.add(tf(n)>180?n+(n>0?360:-360):n)}else $f=t,Gf=e;Af.point(t,e),mh(t,e)}function xh(){Af.lineStart()}function Eh(){wh($f,Gf),Af.lineEnd(),tf(gh)>Ws&&(Hf=-(Vf=180)),Kf[0]=Hf,Kf[1]=Vf,Qf=null}function Mh(t,e){return(e-=t)<0?e+360:e}function kh(t,e){return t[0]-e[0]}function Nh(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:eMh(r[0],r[1])&&(r[1]=i[1]),Mh(i[0],r[1])>Mh(r[0],r[1])&&(r[0]=i[0])):a.push(r=i);for(o=-1/0,e=0,r=a[n=a.length-1];e<=n;r=i,++e)i=a[e],(u=Mh(r[1],i[0]))>o&&(o=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 Th={sphere:vf,point:Ch,lineStart:Ph,lineEnd:Oh,polygonStart:function(){Th.lineStart=Dh,Th.lineEnd=Lh},polygonEnd:function(){Th.lineStart=Ph,Th.lineEnd=Oh}};function Ch(t,e){t*=Js;var n=rf(e*=Js);Ah(n*rf(t),n*lf(t),lf(e))}function Ah(t,e,n){++Jf,eh+=(t-eh)/Jf,nh+=(e-nh)/Jf,rh+=(n-rh)/Jf}function Ph(){Th.point=Rh}function Rh(t,e){t*=Js;var n=rf(e*=Js);hh=n*rf(t),dh=n*lf(t),ph=lf(e),Th.point=Ih,Ah(hh,dh,ph)}function Ih(t,e){t*=Js;var n=rf(e*=Js),r=n*rf(t),i=n*lf(t),a=lf(e),o=nf(ff((o=dh*a-ph*i)*o+(o=ph*r-hh*a)*o+(o=hh*i-dh*r)*o),hh*r+dh*i+ph*a);th+=o,ih+=o*(hh+(hh=r)),ah+=o*(dh+(dh=i)),oh+=o*(ph+(ph=a)),Ah(hh,dh,ph)}function Oh(){Th.point=Ch}function Dh(){Th.point=Uh}function Lh(){zh(sh,fh),Th.point=Ch}function Uh(t,e){sh=t,fh=e,t*=Js,e*=Js,Th.point=zh;var n=rf(e);hh=n*rf(t),dh=n*lf(t),ph=lf(e),Ah(hh,dh,ph)}function zh(t,e){t*=Js;var n=rf(e*=Js),r=n*rf(t),i=n*lf(t),a=lf(e),o=dh*a-ph*i,u=ph*r-hh*a,c=hh*i-dh*r,l=ff(o*o+u*u+c*c),s=pf(l),f=l&&-s/l;uh+=f*o,ch+=f*u,lh+=f*c,th+=s,ih+=s*(hh+(hh=r)),ah+=s*(dh+(dh=i)),oh+=s*(ph+(ph=a)),Ah(hh,dh,ph)}function Fh(t){Jf=th=eh=nh=rh=ih=ah=oh=uh=ch=lh=0,xf(t,Th);var e=uh,n=ch,r=lh,i=e*e+n*n+r*r;return i$s?t-Zs:t<-$s?t+Zs:t,e]}function Hh(t,e,n){return(t%=Zs)?e||n?jh(Vh(t),Wh(e,n)):Vh(t):e||n?Wh(e,n):Bh}function Yh(t){return function(e,n){return[(e+=t)>$s?e-Zs:e<-$s?e+Zs:e,n]}}function Vh(t){var e=Yh(t);return e.invert=Yh(-t),e}function Wh(t,e){var n=rf(t),r=lf(t),i=rf(e),a=lf(e);function o(t,e){var o=rf(e),u=rf(t)*o,c=lf(t)*o,l=lf(e),s=l*n+u*r;return[nf(c*i-s*a,u*n-l*r),pf(s*i+c*a)]}return o.invert=function(t,e){var o=rf(e),u=rf(t)*o,c=lf(t)*o,l=lf(e),s=l*i-c*a;return[nf(c*i+l*a,u*n+s*r),pf(s*n-u*r)]},o}function Xh(t){function e(e){return(e=t(e[0]*Js,e[1]*Js))[0]*=Ks,e[1]*=Ks,e}return t=Hh(t[0]*Js,t[1]*Js,t.length>2?t[2]*Js:0),e.invert=function(e){return(e=t.invert(e[0]*Js,e[1]*Js))[0]*=Ks,e[1]*=Ks,e},e}function $h(t,e,n,r,i,a){if(n){var o=rf(e),u=lf(e),c=r*n;null==i?(i=e+r*Zs,a=e-c/2):(i=Gh(o,i),a=Gh(o,a),(r>0?ia)&&(i+=r*Zs));for(var l,s=i;r>0?s>a:s1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Kh(t,e){return tf(t[0]-e[0])=0;--a)i.point((s=l[a])[0],s[1]);else r(h.x,h.p.x,-1,i);h=h.p}l=(h=h.o).z,d=!d}while(!h.v);i.lineEnd()}}}function ed(t){if(e=t.length){for(var e,n,r=0,i=t[0];++r=0?1:-1,M=E*x,k=M>$s,N=p*b;if(nd.add(nf(N*E*lf(M),g*w+N*rf(M))),a+=k?x+E*Zs:x,k^h>=n^m>=n){var S=Ff(Uf(f),Uf(y));Bf(S);var T=Ff(i,S);Bf(T);var C=(k^x>=0?-1:1)*pf(T[2]);(r>C||r===C&&(S[0]||S[1]))&&(o+=k^x>=0?1:-1)}}return(a<-Ws||ae?1:t>=e?0:NaN}var ad=function(t){return 1===t.length&&(t=function(t){return function(e,n){return id(t(e),n)}}(t)),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)>0?i=a:r=a+1}return r}}}(id);ad.right,ad.left;var od=Array.prototype;function ud(t){for(var e,n,r,i=t.length,a=-1,o=0;++a=0;)for(e=(r=t[i]).length;--e>=0;)n[--o]=r[e];return n}function cd(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),a=new Array(i);++r0){for(f||(i.polygonStart(),f=!0),i.lineStart(),t=0;t1&&2&c&&h.push(h.pop().concat(h.shift())),o.push(h.filter(sd))}return h}}function sd(t){return t.length>1}function fd(t,e){return((t=t.x)[0]<0?t[1]-Gs-Ws:Gs-t[1])-((e=e.x)[0]<0?e[1]-Gs-Ws:Gs-e[1])}od.slice,od.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);const hd=ld((function(){return!0}),(function(t){var e,n=NaN,r=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var u=a>0?$s:-$s,c=tf(a-n);tf(c-$s)0?Gs:-Gs),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(a,r),e=0):i!==u&&c>=$s&&(tf(n-i)Ws?ef((lf(e)*(a=rf(r))*lf(n)-lf(r)*(i=rf(e))*lf(t))/(i*a*o)):(e+r)/2}(n,r,a,o),t.point(i,r),t.lineEnd(),t.lineStart(),t.point(u,r),e=0),t.point(n=a,r=o),i=u},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}),(function(t,e,n,r){var i;if(null==t)i=n*Gs,r.point(-$s,i),r.point(0,i),r.point($s,i),r.point($s,0),r.point($s,-i),r.point(0,-i),r.point(-$s,-i),r.point(-$s,0),r.point(-$s,i);else if(tf(t[0]-e[0])>Ws){var a=t[0]0,i=tf(e)>Ws;function a(t,n){return rf(t)*rf(n)>e}function o(t,n,r){var i=[1,0,0],a=Ff(Uf(t),Uf(n)),o=zf(a,a),u=a[0],c=o-u*u;if(!c)return!r&&t;var l=e*o/c,s=-e*u/c,f=Ff(i,a),h=jf(i,l);qf(h,jf(a,s));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=Lf(m),!r)return m;var _,b=t[0],w=n[0],x=t[1],E=n[1];w0^m[1]<(tf(m[0]-b)$s^(b<=m[0]&&m[0]<=w)){var N=jf(d,(-p+y)/g);return qf(N,h),[m,Lf(N)]}}}function u(e,n){var i=r?t:$s-t,a=0;return e<-i?a|=1:e>i&&(a|=2),n<-i?a|=4:n>i&&(a|=8),a}return ld(a,(function(t){var e,n,c,l,s;return{lineStart:function(){l=c=!1,s=1},point:function(f,h){var d,p=[f,h],g=a(f,h),v=r?g?0:u(f,h):g?u(f+(f<0?$s:-$s),h):0;if(!e&&(l=c=g)&&t.lineStart(),g!==c&&(!(d=o(e,p))||Kh(e,d)||Kh(p,d))&&(p[0]+=Ws,p[1]+=Ws,g=a(p[0],p[1])),g!==c)s=0,g?(t.lineStart(),d=o(p,e),t.point(d[0],d[1])):(d=o(e,p),t.point(d[0],d[1]),t.lineEnd()),e=d;else if(i&&e&&r^g){var y;v&n||!(y=o(p,e,!0))||(s=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||e&&Kh(e,p)||t.point(p[0],p[1]),e=p,c=g,n=v},lineEnd:function(){c&&t.lineEnd(),e=null},clean:function(){return s|(l&&c)<<1}}}),(function(e,r,i,a){$h(a,t,n,i,e,r)}),r?[0,-t]:[-$s,t-$s])}var pd=1e9,gd=-pd;function vd(t,e,n,r){function i(i,a){return t<=i&&i<=n&&e<=a&&a<=r}function a(i,a,u,l){var s=0,f=0;if(null==i||(s=o(i,u))!==(f=o(a,u))||c(i,a)<0^u>0)do{l.point(0===s||3===s?t:n,s>1?r:e)}while((s=(s+u+4)%4)!==f);else l.point(a[0],a[1])}function o(r,i){return tf(r[0]-t)0?0:3:tf(r[0]-n)0?2:1:tf(r[1]-e)0?1:0:i>0?3:2}function u(t,e){return c(t.x,e.x)}function c(t,e){var n=o(t,1),r=o(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(o){var c,l,s,f,h,d,p,g,v,y,m,_=o,b=Zh(),w={point:x,lineStart:function(){w.point=E,l&&l.push(s=[]),y=!0,v=!1,p=g=NaN},lineEnd:function(){c&&(E(f,h),d&&v&&b.rejoin(),c.push(b.result())),w.point=x,v&&_.lineEnd()},polygonStart:function(){_=b,c=[],l=[],m=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,i=l.length;nr&&(h-a)*(r-o)>(d-o)*(t-a)&&++e:d<=r&&(h-a)*(r-o)<(d-o)*(t-a)&&--e;return e}(),n=m&&e,i=(c=ud(c)).length;(n||i)&&(o.polygonStart(),n&&(o.lineStart(),a(null,null,1,o),o.lineEnd()),i&&td(c,u,e,a,o),o.polygonEnd()),_=o,c=l=s=null}};function x(t,e){i(t,e)&&_.point(t,e)}function E(a,o){var u=i(a,o);if(l&&s.push([a,o]),y)f=a,h=o,d=u,y=!1,u&&(_.lineStart(),_.point(a,o));else if(u&&v)_.point(a,o);else{var c=[p=Math.max(gd,Math.min(pd,p)),g=Math.max(gd,Math.min(pd,g))],b=[a=Math.max(gd,Math.min(pd,a)),o=Math.max(gd,Math.min(pd,o))];!function(t,e,n,r,i,a){var o,u=t[0],c=t[1],l=0,s=1,f=e[0]-u,h=e[1]-c;if(o=n-u,f||!(o>0)){if(o/=f,f<0){if(o0){if(o>s)return;o>l&&(l=o)}if(o=i-u,f||!(o<0)){if(o/=f,f<0){if(o>s)return;o>l&&(l=o)}else if(f>0){if(o0)){if(o/=h,h<0){if(o0){if(o>s)return;o>l&&(l=o)}if(o=a-c,h||!(o<0)){if(o/=h,h<0){if(o>s)return;o>l&&(l=o)}else if(h>0){if(o0&&(t[0]=u+l*f,t[1]=c+l*h),s<1&&(e[0]=u+s*f,e[1]=c+s*h),!0}}}}}(c,b,t,e,n,r)?u&&(_.lineStart(),_.point(a,o),m=!1):(v||(_.lineStart(),_.point(c[0],c[1])),_.point(b[0],b[1]),u||_.lineEnd(),m=!1)}p=a,g=o,v=u}return w}}function yd(){var t,e,n,r=0,i=0,a=960,o=500;return n={stream:function(n){return t&&e===n?t:t=vd(r,i,a,o)(e=n)},extent:function(u){return arguments.length?(r=+u[0][0],i=+u[0][1],a=+u[1][0],o=+u[1][1],t=e=null,n):[[r,i],[a,o]]}}}var md,_d,bd,wd=Bs(),xd={sphere:vf,point:vf,lineStart:function(){xd.point=Md,xd.lineEnd=Ed},lineEnd:vf,polygonStart:vf,polygonEnd:vf};function Ed(){xd.point=xd.lineEnd=vf}function Md(t,e){md=t*=Js,_d=lf(e*=Js),bd=rf(e),xd.point=kd}function kd(t,e){t*=Js;var n=lf(e*=Js),r=rf(e),i=tf(t-md),a=rf(i),o=r*lf(i),u=bd*n-_d*r*a,c=_d*n+bd*r*a;wd.add(nf(ff(o*o+u*u),c)),md=t,_d=n,bd=r}function Nd(t){return wd.reset(),xf(t,xd),+wd}var Sd=[null,null],Td={type:"LineString",coordinates:Sd};function Cd(t,e){return Sd[0]=t,Sd[1]=e,Nd(Td)}var Ad={Feature:function(t,e){return Rd(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++rWs})).map(c)).concat(cd(af(a/d)*d,i,d).filter((function(t){return tf(t%g)>Ws})).map(l))}return y.lines=function(){return m().map((function(t){return{type:"LineString",coordinates:t}}))},y.outline=function(){return{type:"Polygon",coordinates:[s(r).concat(f(o).slice(1),s(n).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],n=+t[1][0],u=+t[0][1],o=+t[1][1],r>n&&(t=r,r=n,n=t),u>o&&(t=u,u=o,o=t),y.precision(v)):[[r,u],[n,o]]},y.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],a=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),a>i&&(n=a,a=i,i=n),y.precision(v)):[[e,a],[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(a,i,90),l=qd(e,t,v),s=Fd(u,o,90),f=qd(r,n,v),y):v},y.extentMajor([[-180,-90+Ws],[180,90-Ws]]).extentMinor([[-180,-80-Ws],[180,80+Ws]])}function Bd(){return jd()()}function Hd(t,e){var n=t[0]*Js,r=t[1]*Js,i=e[0]*Js,a=e[1]*Js,o=rf(r),u=lf(r),c=rf(a),l=lf(a),s=o*rf(n),f=o*lf(n),h=c*rf(i),d=c*lf(i),p=2*pf(ff(gf(a-r)+o*c*gf(i-n))),g=lf(p),v=p?function(t){var e=lf(t*=p)/g,n=lf(p-t)/g,r=n*s+e*h,i=n*f+e*d,a=n*u+e*l;return[nf(i,r)*Ks,nf(a,ff(r*r+i*i))*Ks]}:function(){return[n*Ks,r*Ks]};return v.distance=p,v}function Yd(t){return t}var Vd,Wd,Xd,$d,Gd=Bs(),Qd=Bs(),Zd={point:vf,lineStart:vf,lineEnd:vf,polygonStart:function(){Zd.lineStart=Kd,Zd.lineEnd=ep},polygonEnd:function(){Zd.lineStart=Zd.lineEnd=Zd.point=vf,Gd.add(tf(Qd)),Qd.reset()},result:function(){var t=Gd/2;return Gd.reset(),t}};function Kd(){Zd.point=Jd}function Jd(t,e){Zd.point=tp,Vd=Xd=t,Wd=$d=e}function tp(t,e){Qd.add($d*t-Xd*e),Xd=t,$d=e}function ep(){tp(Vd,Wd)}const np=Zd;var rp=1/0,ip=rp,ap=-rp,op=ap,up={point:function(t,e){tap&&(ap=t),eop&&(op=e)},lineStart:vf,lineEnd:vf,polygonStart:vf,polygonEnd:vf,result:function(){var t=[[rp,ip],[ap,op]];return ap=op=-(ip=rp=1/0),t}};const cp=up;var lp,sp,fp,hp,dp=0,pp=0,gp=0,vp=0,yp=0,mp=0,_p=0,bp=0,wp=0,xp={point:Ep,lineStart:Mp,lineEnd:Sp,polygonStart:function(){xp.lineStart=Tp,xp.lineEnd=Cp},polygonEnd:function(){xp.point=Ep,xp.lineStart=Mp,xp.lineEnd=Sp},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 Ep(t,e){dp+=t,pp+=e,++gp}function Mp(){xp.point=kp}function kp(t,e){xp.point=Np,Ep(fp=t,hp=e)}function Np(t,e){var n=t-fp,r=e-hp,i=ff(n*n+r*r);vp+=i*(fp+t)/2,yp+=i*(hp+e)/2,mp+=i,Ep(fp=t,hp=e)}function Sp(){xp.point=Ep}function Tp(){xp.point=Ap}function Cp(){Pp(lp,sp)}function Ap(t,e){xp.point=Pp,Ep(lp=fp=t,sp=hp=e)}function Pp(t,e){var n=t-fp,r=e-hp,i=ff(n*n+r*r);vp+=i*(fp+t)/2,yp+=i*(hp+e)/2,mp+=i,_p+=(i=hp*t-fp*e)*(fp+t),bp+=i*(hp+e),wp+=3*i,Ep(fp=t,hp=e)}const Rp=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,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,Zs)}},result:vf};var Op,Dp,Lp,Up,zp,Fp=Bs(),qp={point:vf,lineStart:function(){qp.point=jp},lineEnd:function(){Op&&Bp(Dp,Lp),qp.point=vf},polygonStart:function(){Op=!0},polygonEnd:function(){Op=null},result:function(){var t=+Fp;return Fp.reset(),t}};function jp(t,e){qp.point=Bp,Dp=Up=t,Lp=zp=e}function Bp(t,e){Up-=t,zp-=e,Fp.add(ff(Up*Up+zp*zp)),Up=t,zp=e}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,e){var n,r,i=4.5;function a(t){return t&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),xf(t,n(r))),r.result()}return a.area=function(t){return xf(t,n(np)),np.result()},a.measure=function(t){return xf(t,n(Hp)),Hp.result()},a.bounds=function(t){return xf(t,n(cp)),cp.result()},a.centroid=function(t){return xf(t,n(Rp)),Rp.result()},a.projection=function(e){return arguments.length?(n=null==e?(t=null,Yd):(t=e).stream,a):t},a.context=function(t){return arguments.length?(r=null==t?(e=null,new Yp):new Ip(e=t),"function"!=typeof i&&r.pointRadius(i),a):e},a.pointRadius=function(t){return arguments.length?(i="function"==typeof t?t:(r.pointRadius(+t),+t),a):i},a.projection(t).context(e)}function Xp(t){return{stream:$p(t)}}function $p(t){return function(e){var n=new Gp;for(var r in t)n[r]=t[r];return n.stream=e,n}}function Gp(){}function Qp(t,e,n){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),xf(n,t.stream(cp)),e(cp.result()),null!=r&&t.clipExtent(r),t}function Zp(t,e,n){return Qp(t,(function(n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),o=+e[0][0]+(r-a*(n[1][0]+n[0][0]))/2,u=+e[0][1]+(i-a*(n[1][1]+n[0][1]))/2;t.scale(150*a).translate([o,u])}),n)}function Kp(t,e,n){return Zp(t,[[0,0],e],n)}function Jp(t,e,n){return Qp(t,(function(n){var r=+e,i=r/(n[1][0]-n[0][0]),a=(r-i*(n[1][0]+n[0][0]))/2,o=-i*n[0][1];t.scale(150*i).translate([a,o])}),n)}function tg(t,e,n){return Qp(t,(function(n){var r=+e,i=r/(n[1][1]-n[0][1]),a=-i*n[0][0],o=(r-i*(n[1][1]+n[0][1]))/2;t.scale(150*i).translate([a,o])}),n)}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,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=Vp(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},Gp.prototype={constructor:Gp,point:function(t,e){this.stream.point(t,e)},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 eg=16,ng=rf(30*Js);function rg(t,e){return+e?function(t,e){function n(r,i,a,o,u,c,l,s,f,h,d,p,g,v){var y=l-r,m=s-i,_=y*y+m*m;if(_>4*e&&g--){var b=o+h,w=u+d,x=c+p,E=ff(b*b+w*w+x*x),M=pf(x/=E),k=tf(tf(x)-1)e||tf((y*C+m*A)/_-.5)>.3||o*h+u*d+c*p2?t[2]%360*Js:0,T()):[v*Ks,y*Ks,m*Ks]},k.precision=function(t){return arguments.length?(M=rg(S,E=t*t),C()):ff(E)},k.fitExtent=function(t,e){return Zp(k,t,e)},k.fitSize=function(t,e){return Kp(k,t,e)},k.fitWidth=function(t,e){return Jp(k,t,e)},k.fitHeight=function(t,e){return tg(k,t,e)},function(){return e=t.apply(this,arguments),k.invert=e.invert&&N,T()}}function ug(t){var e=0,n=$s/3,r=og(t),i=r(e,n);return i.parallels=function(t){return arguments.length?r(e=t[0]*Js,n=t[1]*Js):[e*Ks,n*Ks]},i}function cg(t,e){var n=lf(t),r=(n+lf(e))/2;if(tf(r)=.12&&i<.234&&r>=-.425&&r<-.214?u:i>=.166&&i<.234&&r>=-.214&&r<-.115?c:o).invert(t)},s.stream=function(n){return t&&e===n?t:(r=[o.stream(e=n),u.stream(n),c.stream(n)],i=r.length,t={point:function(t,e){for(var n=-1;++n0?e<-Gs+Ws&&(e=-Gs+Ws):e>Gs-Ws&&(e=Gs-Ws);var n=i/cf(wg(e),r);return[n*lf(r*t),i-n*rf(r*t)]}return a.invert=function(t,e){var n=i-e,a=sf(r)*ff(t*t+n*n);return[nf(t,tf(n))/r*sf(n),2*ef(cf(i/a,1/r))-Gs]},a}function Eg(){return ug(xg).scale(109.5).parallels([30,30])}function Mg(t,e){return[t,e]}function kg(){return ag(Mg).scale(152.63)}function Ng(t,e){var n=rf(t),r=t===e?lf(t):(n-rf(e))/(e-t),i=n/r+t;if(tf(r)2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}function qg(t,e){return t.parent===e.parent?1:2}function jg(t,e){return t+e.x}function Bg(t,e){return Math.max(t,e.y)}function Hg(){var t=qg,e=1,n=1,r=!1;function i(i){var a,o=0;i.eachAfter((function(e){var n=e.children;n?(e.x=function(t){return t.reduce(jg,0)/t.length}(n),e.y=function(t){return 1+t.reduce(Bg,0)}(n)):(e.x=a?o+=t(e,a):0,e.y=0,a=e)}));var u=function(t){for(var e;e=t.children;)t=e[0];return t}(i),c=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),l=u.x-t(u,c)/2,s=c.x+t(c,u)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-l)/(s-l)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function Yg(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function Vg(t,e){var n,r,i,a,o,u=new Gg(t),c=+t.value&&(u.value=t.value),l=[u];for(null==e&&(e=Wg);n=l.pop();)if(c&&(n.value=+n.data.value),(i=e(n.data))&&(o=i.length))for(n.children=new Array(o),a=o-1;a>=0;--a)l.push(r=n.children[a]=new Gg(i[a])),r.parent=n,r.depth=n.depth+1;return u.eachBefore($g)}function Wg(t){return t.children}function Xg(t){t.data=t.data.data}function $g(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Gg(t){this.data=t,this.depth=this.height=0,this.parent=null}vg.invert=dg((function(t){return t})),mg.invert=function(t,e){return[t,2*ef(of(e))-Gs]},Mg.invert=Mg,Tg.invert=dg(ef),Rg.invert=function(t,e){var n,r=e,i=25;do{var a=r*r,o=a*a;r-=n=(r*(1.007226+a*(.015085+o*(.028874*a-.044475-.005916*o)))-e)/(1.007226+a*(.045255+o*(.259866*a-.311325-.005916*11*o)))}while(tf(n)>Ws&&--i>0);return[t/(.8707+(a=r*r)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),r]},Og.invert=dg(pf),Lg.invert=dg((function(t){return 2*ef(t)})),zg.invert=function(t,e){return[-e,2*ef(of(t))-Gs]},Gg.prototype=Vg.prototype={constructor:Gg,count:function(){return this.eachAfter(Yg)},each:function(t){var e,n,r,i,a=this,o=[a];do{for(e=o.reverse(),o=[];a=e.pop();)if(t(a),n=a.children)for(r=0,i=n.length;r=0;--n)i.push(e[n]);return this},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return Vg(this).eachBefore(Xg)}};var Qg=Array.prototype.slice;function Zg(t){for(var e,n,r=0,i=(t=function(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}(Qg.call(t))).length,a=[];r0&&n*n>r*r+i*i}function ev(t,e){for(var n=0;nn*n+r*r}function uv(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function cv(t){this._=t,this.next=null,this.previous=null}function lv(t){if(!(i=t.length))return 0;var e,n,r,i,a,o,u,c,l,s,f;if((e=t[0]).x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;av(n,e,r=t[2]),e=new cv(e),n=new cv(n),r=new cv(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(u=3;u0)throw new Error("cycle");return a}return n.id=function(e){return arguments.length?(t=fv(e),n):t},n.parentId=function(t){return arguments.length?(e=fv(t),n):e},n}function Tv(t,e){return t.parent===e.parent?1:2}function Cv(t){var e=t.children;return e?e[0]:t.t}function Av(t){var e=t.children;return e?e[e.length-1]:t.t}function Pv(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Rv(t,e,n){return t.a.parent===e.parent?t.a:n}function Iv(t,e){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=e}function Ov(){var t=Tv,e=1,n=1,r=null;function i(i){var c=function(t){for(var e,n,r,i,a,o=new Iv(t,0),u=[o];e=u.pop();)if(r=e._.children)for(e.children=new Array(a=r.length),i=a-1;i>=0;--i)u.push(n=e.children[i]=new Iv(r[i],i)),n.parent=e;return(o.parent=new Iv(null,0)).children=[o],o}(i);if(c.eachAfter(a),c.parent.m=-c.z,c.eachBefore(o),r)i.eachBefore(u);else{var l=i,s=i,f=i;i.eachBefore((function(t){t.xs.x&&(s=t),t.depth>f.depth&&(f=t)}));var h=l===s?1:t(l,s)/2,d=h-l.x,p=e/(s.x+h+d),g=n/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*g}))}return i}function a(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,a=i.length;--a>=0;)(e=i[a]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var a=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,a=e,o=e,u=n,c=a.parent.children[0],l=a.m,s=o.m,f=u.m,h=c.m;u=Av(u),a=Cv(a),u&&a;)c=Cv(c),(o=Av(o)).a=e,(i=u.z+f-a.z-l+t(u._,a._))>0&&(Pv(Rv(u,e,r),e,i),l+=i,s+=i),f+=u.m,l+=a.m,h+=c.m,s+=o.m;u&&!Av(o)&&(o.t=u,o.m+=f-s),a&&!Cv(c)&&(c.t=a,c.m+=l-h,r=e)}return r}(e,i,e.parent.A||r[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function Dv(t,e,n,r,i){for(var a,o=t.children,u=-1,c=o.length,l=t.value&&(i-n)/t.value;++uh&&(h=u),v=s*s*g,(d=Math.max(h/v,v/f))>p){s-=u;break}p=d}y.push(o={value:s,dice:c1?e:1)},n}(Lv);function Fv(){var t=zv,e=!1,n=1,r=1,i=[0],a=hv,o=hv,u=hv,c=hv,l=hv;function s(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(f),i=[0],e&&t.eachBefore(_v),t}function f(e){var n=i[e.depth],r=e.x0+n,s=e.y0+n,f=e.x1-n,h=e.y1-n;f=n-1){var s=u[e];return s.x0=i,s.y0=a,s.x1=o,void(s.y1=c)}for(var f=l[e],h=r/2+f,d=e+1,p=n-1;d>>1;l[g]c-a){var m=(i*y+o*v)/r;t(e,d,v,i,a,m,c),t(d,n,y,m,a,o,c)}else{var _=(a*y+c*v)/r;t(e,d,v,i,a,o,_),t(d,n,y,i,_,o,c)}}(0,c,t.value,e,n,r,i)}function jv(t,e,n,r,i){(1&t.depth?Dv:bv)(t,e,n,r,i)}const Bv=function t(e){function n(t,n,r,i,a){if((o=t._squarify)&&o.ratio===e)for(var o,u,c,l,s,f=-1,h=o.length,d=t.value;++f1?e:1)},n}(Lv);function Hv(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Yv(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Vv(){}var Wv=.7,Xv=1.4285714285714286,$v="\\s*([+-]?\\d+)\\s*",Gv="\\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\\("+[$v,$v,$v]+"\\)$"),ty=new RegExp("^rgb\\("+[Qv,Qv,Qv]+"\\)$"),ey=new RegExp("^rgba\\("+[$v,$v,$v,Gv]+"\\)$"),ny=new RegExp("^rgba\\("+[Qv,Qv,Qv,Gv]+"\\)$"),ry=new RegExp("^hsl\\("+[Gv,Qv,Qv]+"\\)$"),iy=new RegExp("^hsla\\("+[Gv,Qv,Qv,Gv]+"\\)$"),ay={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 oy(t){var e;return t=(t+"").trim().toLowerCase(),(e=Zv.exec(t))?new fy((e=parseInt(e[1],16))>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=Kv.exec(t))?uy(parseInt(e[1],16)):(e=Jv.exec(t))?new fy(e[1],e[2],e[3],1):(e=ty.exec(t))?new fy(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=ey.exec(t))?cy(e[1],e[2],e[3],e[4]):(e=ny.exec(t))?cy(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=ry.exec(t))?dy(e[1],e[2]/100,e[3]/100,1):(e=iy.exec(t))?dy(e[1],e[2]/100,e[3]/100,e[4]):ay.hasOwnProperty(t)?uy(ay[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,e,n,r){return r<=0&&(t=e=n=NaN),new fy(t,e,n,r)}function ly(t){return t instanceof Vv||(t=oy(t)),t?new fy((t=t.rgb()).r,t.g,t.b,t.opacity):new fy}function sy(t,e,n,r){return 1===arguments.length?ly(t):new fy(t,e,n,null==r?1:r)}function fy(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,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,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new gy(t,e,n,r)}function py(t,e,n,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=oy(t)),!t)return new gy;if(t instanceof gy)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,u=a-i,c=(a+i)/2;return u?(o=e===a?(n-r)/u+6*(n0&&c<1?0:o,new gy(o,u,c,t.opacity)}(t):new gy(t,e,n,null==r?1:r)}function gy(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function vy(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Hv(Vv,oy,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Hv(fy,sy,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),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-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,Ey=6/29,My=3*Ey*Ey,ky=Ey*Ey*Ey;function Ny(t){if(t instanceof Ty)return new Ty(t.l,t.a,t.b,t.opacity);if(t instanceof Oy){if(isNaN(t.h))return new Ty(t.l,0,0,t.opacity);var e=t.h*yy;return new Ty(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof fy||(t=ly(t));var n,r,i=Ry(t.r),a=Ry(t.g),o=Ry(t.b),u=Cy((.2225045*i+.7168786*a+.0606169*o)/by);return i===a&&a===o?n=r=u:(n=Cy((.4360747*i+.3850649*a+.1430804*o)/_y),r=Cy((.0139322*i+.0971045*a+.7141733*o)/wy)),new Ty(116*u-16,500*(n-u),200*(u-r),t.opacity)}function Sy(t,e,n,r){return 1===arguments.length?Ny(t):new Ty(t,e,n,null==r?1:r)}function Ty(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Cy(t){return t>ky?Math.pow(t,1/3):t/My+xy}function Ay(t){return t>Ey?t*t*t:My*(t-xy)}function Py(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ry(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Iy(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Oy)return new Oy(t.h,t.c,t.l,t.opacity);if(t instanceof Ty||(t=Ny(t)),0===t.a&&0===t.b)return new Oy(NaN,0,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*my;return new Oy(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new Oy(t,e,n,null==r?1:r)}function Oy(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}Hv(Ty,Sy,Yv(Vv,{brighter:function(t){return new Ty(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Ty(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new fy(Py(3.1338561*(e=_y*Ay(e))-1.6168667*(t=by*Ay(t))-.4906146*(n=wy*Ay(n))),Py(-.9787684*e+1.9161415*t+.033454*n),Py(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),Hv(Oy,Iy,Yv(Vv,{brighter:function(t){return new Oy(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new Oy(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return Ny(this).rgb()}}));var Dy=-.14861,Ly=1.78277,Uy=-.29227,zy=-.90649,Fy=1.97294,qy=Fy*zy,jy=Fy*Ly,By=Ly*Uy-zy*Dy;function Hy(t,e,n,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=ly(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(By*r+qy*e-jy*n)/(By+qy-jy),a=r-i,o=(Fy*(n-i)-Uy*a)/zy,u=Math.sqrt(o*o+a*a)/(Fy*i*(1-i)),c=u?Math.atan2(o,a)*my-120:NaN;return new Yy(c<0?c+360:c,u,i,t.opacity)}(t):new Yy(t,e,n,null==r?1:r)}function Yy(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Vy(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}function Wy(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,u=r180||n<-180?n-360*Math.round(n/360):n):$y(isNaN(t)?e:t)}function Zy(t,e){var n=e-t;return n?Gy(t,n):$y(isNaN(t)?e: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,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new fy(255*(e+n*(Dy*r+Ly*i)),255*(e+n*(Uy*r+zy*i)),255*(e+n*(Fy*r)),this.opacity)}}));const Ky=function t(e){var n=function(t){return 1==(t=+t)?Zy:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):$y(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=sy(t)).r,(e=sy(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=Zy(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function Jy(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),u=new Array(i);for(n=0;na&&(i=e.slice(a,i),u[o]?u[o]+=i:u[++o]=i),(n=n[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,c.push({i:o,x:im(n,r)})),a=um.lastIndex;return a180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:im(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,u,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:im(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,u,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var u=a.push(i(a)+"scale(",null,",",null,")");o.push({i:u-4,x:im(t,n)},{i:u-2,x:im(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,u,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++nqm)if(Math.abs(s*u-c*l)>qm&&i){var h=n-a,d=r-o,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+_*l)+","+(e+_*s)),this._+="A"+i+","+i+",0,0,"+ +(s*h>l*d)+","+(this._x1=t+b*u)+","+(this._y1=e+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,r,i,a){t=+t,e=+e;var o=(n=+n)*Math.cos(r),u=n*Math.sin(r),c=t+o,l=e+u,s=1^a,f=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>qm||Math.abs(this._y1-l)>qm)&&(this._+="L"+c+","+l),n&&(f<0&&(f=f%Fm+Fm),f>jm?this._+="A"+n+","+n+",0,1,"+s+","+(t-o)+","+(e-u)+"A"+n+","+n+",0,1,"+s+","+(this._x1=c)+","+(this._y1=l):f>qm&&(this._+="A"+n+","+n+",0,"+ +(f>=zm)+","+s+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const Ym=Hm;function Vm(t){for(var e,n=-1,r=t.length,i=t[r-1],a=0;++n1&&Xm(t[n[r-2]],t[n[r-1]],t[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function Qm(t){if((n=t.length)<3)return null;var e,n,r=new Array(n),i=new Array(n);for(e=0;e=0;--e)l.push(t[r[a[e]][2]]);for(e=+u;eu!=l>u&&o<(c-n)*(u-r)/(l-r)+n&&(s=!s),c=n,l=r;return s}function Km(t){for(var e,n,r=-1,i=t.length,a=t[i-1],o=a[0],u=a[1],c=0;++r=(a=(g+y)/2))?g=a:y=a,(s=n>=(o=(v+m)/2))?v=o:m=o,i=d,!(d=d[f=s<<1|l]))return i[f]=p,t;if(u=+t._x.call(null,d.data),c=+t._y.call(null,d.data),e===u&&n===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),(l=e>=(a=(g+y)/2))?g=a:y=a,(s=n>=(o=(v+m)/2))?v=o:m=o}while((f=s<<1|l)==(h=(c>=o)<<1|u>=a));return i[h]=d,i[f]=p,t}function t_(t,e,n,r,i){this.node=t,this.x0=e,this.y0=n,this.x1=r,this.y1=i}function e_(t){return t[0]}function n_(t){return t[1]}function r_(t,e,n){var r=new i_(null==e?e_:e,null==n?n_:n,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function i_(t,e,n,r,i,a){this._x=t,this._y=e,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function a_(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var o_=r_.prototype=i_.prototype;o_.copy=function(){var t,e,n=new i_(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=a_(r),n;for(t=[{source:r,target:n._root=new Array(4)}];r=t.pop();)for(var i=0;i<4;++i)(e=r.source[i])&&(e.length?t.push({source:e,target:r.target[i]=new Array(4)}):r.target[i]=a_(e));return n},o_.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return Jm(this.cover(e,n),e,n,t)},o_.addAll=function(t){var e,n,r,i,a=t.length,o=new Array(a),u=new Array(a),c=1/0,l=1/0,s=-1/0,f=-1/0;for(n=0;ns&&(s=r),if&&(f=i));for(st||t>i||r>e||e>a))return this;var o,u,c=i-n,l=this._root;switch(u=(e<(r+a)/2)<<1|t<(n+i)/2){case 0:do{(o=new Array(4))[u]=l,l=o}while(a=r+(c*=2),t>(i=n+c)||e>a);break;case 1:do{(o=new Array(4))[u]=l,l=o}while(a=r+(c*=2),(n=i-c)>t||e>a);break;case 2:do{(o=new Array(4))[u]=l,l=o}while(r=a-(c*=2),t>(i=n+c)||r>e);break;case 3:do{(o=new Array(4))[u]=l,l=o}while(r=a-(c*=2),(n=i-c)>t||r>e)}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=r,this._x1=i,this._y1=a,this},o_.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},o_.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]]},o_.find=function(t,e,n){var r,i,a,o,u,c,l,s=this._x0,f=this._y0,h=this._x1,d=this._y1,p=[],g=this._root;for(g&&p.push(new t_(g,s,f,h,d)),null==n?n=1/0:(s=t-n,f=e-n,h=t+n,d=e+n,n*=n);c=p.pop();)if(!(!(g=c.node)||(i=c.x0)>h||(a=c.y0)>d||(o=c.x1)=y)<<1|t>=v)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-l],p[p.length-1-l]=c)}else{var m=t-+this._x.call(null,g.data),_=e-+this._y.call(null,g.data),b=m*m+_*_;if(b=(u=(p+v)/2))?p=u:v=u,(s=o>=(c=(g+y)/2))?g=c:y=c,e=d,!(d=d[f=s<<1|l]))return this;if(!d.length)break;(e[f+1&3]||e[f+2&3]||e[f+3&3])&&(n=e,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):e?(i?e[f]=i:delete e[f],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[h]=d:this._root=d),this):(this._root=i,this)},o_.removeAll=function(t){for(var e=0,n=t.length;e=0;)if((n=t._tasks[r])&&(t._tasks[r]=null,n.abort))try{n.abort()}catch(e){}t._active=NaN,d_(t)}function d_(t){if(!t._active&&t._call){var e=t._data;t._data=void 0,t._call(t._error,e)}}function p_(t){if(null==t)t=1/0;else if(!((t=+t)>=1))throw new Error("invalid concurrency");return new l_(t)}function g_(){return Math.random()}l_.prototype=p_.prototype={constructor:l_,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 e=u_.call(arguments,1);return e.push(t),++this._waiting,this._tasks.push(e),s_(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(e,n){t.apply(null,[e].concat(n))},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(e){function n(t,n){return t=null==t?0:+t,n=null==n?1:+n,1===arguments.length?(n=t,t=0):n-=t,function(){return e()*n+t}}return n.source=t,n}(g_),y_=function t(e){function n(t,n){var r,i;return t=null==t?0:+t,n=null==n?1:+n,function(){var a;if(null!=r)a=r,r=null;else do{r=2*e()-1,a=2*e()-1,i=r*r+a*a}while(!i||i>1);return t+n*a*Math.sqrt(-2*Math.log(i)/i)}}return n.source=t,n}(g_),m_=function t(e){function n(){var t=y_.source(e).apply(this,arguments);return function(){return Math.exp(t())}}return n.source=t,n}(g_),__=function t(e){function n(t){return function(){for(var n=0,r=0;r=200&&r<300||304===r){if(i)try{e=i.call(n,c)}catch(t){return void o.call("error",n,t)}else e=c;o.call("load",n,e)}else o.call("error",n,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){o.call("progress",n,t)},n={header:function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?u.get(t):(null==e?u.remove(t):u.set(t,e+""),n)},mimeType:function(t){return arguments.length?(r=null==t?null:t+"",n):r},responseType:function(t){return arguments.length?(a=t,n):a},timeout:function(t){return arguments.length?(f=+t,n):f},user:function(t){return arguments.length<1?l:(l=null==t?null:t+"",n)},password:function(t){return arguments.length<1?s:(s=null==t?null:t+"",n)},response:function(t){return i=t,n},get:function(t,e){return n.send("GET",t,e)},post:function(t,e){return n.send("POST",t,e)},send:function(e,i,h){return c.open(e,t,!0,l,s),null==r||u.has("accept")||u.set("accept",r+",*/*"),c.setRequestHeader&&u.each((function(t,e){c.setRequestHeader(e,t)})),null!=r&&c.overrideMimeType&&c.overrideMimeType(r),null!=a&&(c.responseType=a),f>0&&(c.timeout=f),null==h&&"function"==typeof i&&(h=i,i=null),null!=h&&1===h.length&&(h=function(t){return function(e,n){t(null==e?n:null)}}(h)),null!=h&&n.on("error",h).on("load",(function(t){h(null,t)})),o.call("beforesend",n,c),c.send(null==i?null:i),n},abort:function(){return c.abort(),n},on:function(){var t=o.on.apply(o,arguments);return t===o?n:t}},null!=e){if("function"!=typeof e)throw new Error("invalid callback: "+e);return n.get(e)}return n}function k_(t,e){return function(n,r){var i=M_(n).mimeType(t).response(e);if(null!=r){if("function"!=typeof r)throw new Error("invalid callback: "+r);return i.get(r)}return i}}const N_=k_("text/html",(function(t){return document.createRange().createContextualFragment(t.responseText)})),S_=k_("application/json",(function(t){return JSON.parse(t.responseText)})),T_=k_("text/plain",(function(t){return t.responseText})),C_=k_("application/xml",(function(t){var e=t.responseXML;if(!e)throw new Error("parse error");return e}));var A_=n(2279);function P_(t,e){return function(n,r,i){arguments.length<3&&(i=r,r=null);var a=M_(n).mimeType(t);return a.row=function(t){return arguments.length?a.response(function(t,e){return function(n){return t(n.responseText,e)}}(e,r=t)):r},a.row(r),i?a.get(i):a}}const R_=P_("text/csv",A_.ue),I_=P_("text/tab-separated-values",A_.tJ);function O_(t,e){return te?1:t>=e?0:NaN}function D_(t){return 1===t.length&&(t=function(t){return function(e,n){return O_(t(e),n)}}(t)),{left:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)<0?r=a+1:i=a}return r},right:function(e,n,r,i){for(null==r&&(r=0),null==i&&(i=e.length);r>>1;t(e[a],n)>0?i=a:r=a+1}return r}}}var L_=D_(O_),U_=L_.right;L_.left;const z_=U_;var F_=Array.prototype,q_=(F_.slice,F_.map,Math.sqrt(50)),j_=Math.sqrt(10),B_=Math.sqrt(2);function H_(t,e,n){var r,i,a,o,u=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++u=0?(a>=q_?10:a>=j_?5:a>=B_?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=q_?10:a>=j_?5:a>=B_?2:1)}function V_(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=q_?i*=10:a>=j_?i*=5:a>=B_&&(i*=2),e=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,a=Math.floor(i),o=+n(t[a],a,t);return o+(+n(t[a+1],a+1,t)-o)*(i-a)}}var $_="$";function G_(){}function Q_(t,e){var n=new G_;if(t instanceof G_)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,a=t.length;if(null==e)for(;++i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=yb.exec(t))?Nb(parseInt(e[1],16)):(e=mb.exec(t))?new Ab(e[1],e[2],e[3],1):(e=_b.exec(t))?new Ab(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=bb.exec(t))?Sb(e[1],e[2],e[3],e[4]):(e=wb.exec(t))?Sb(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=xb.exec(t))?Rb(e[1],e[2]/100,e[3]/100,1):(e=Eb.exec(t))?Rb(e[1],e[2]/100,e[3]/100,e[4]):Mb.hasOwnProperty(t)?Nb(Mb[t]):"transparent"===t?new Ab(NaN,NaN,NaN,0):null}function Nb(t){return new Ab(t>>16&255,t>>8&255,255&t,1)}function Sb(t,e,n,r){return r<=0&&(t=e=n=NaN),new Ab(t,e,n,r)}function Tb(t){return t instanceof sb||(t=kb(t)),t?new Ab((t=t.rgb()).r,t.g,t.b,t.opacity):new Ab}function Cb(t,e,n,r){return 1===arguments.length?Tb(t):new Ab(t,e,n,null==r?1:r)}function Ab(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Pb(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Rb(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Ob(t,e,n,r)}function Ib(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof Ob)return new Ob(t.h,t.s,t.l,t.opacity);if(t instanceof sb||(t=kb(t)),!t)return new Ob;if(t instanceof Ob)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,u=a-i,c=(a+i)/2;return u?(o=e===a?(n-r)/u+6*(n0&&c<1?0:o,new Ob(o,u,c,t.opacity)}(t):new Ob(t,e,n,null==r?1:r)}function Ob(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Db(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}cb(sb,kb,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),cb(Ab,Cb,lb(sb,{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"#"+Pb(this.r)+Pb(this.g)+Pb(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(Ob,Ib,lb(sb,{brighter:function(t){return t=null==t?hb:Math.pow(hb,t),new Ob(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?fb:Math.pow(fb,t),new Ob(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Ab(Db(t>=240?t-240:t+120,i,r),Db(t,i,r),Db(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 Lb=Math.PI/180,Ub=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 e=t.h*Lb;return new Wb(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof Ab||(t=Tb(t));var n,r,i=Qb(t.r),a=Qb(t.g),o=Qb(t.b),u=Xb((.2225045*i+.7168786*a+.0606169*o)/Fb);return i===a&&a===o?n=r=u:(n=Xb((.4360747*i+.3850649*a+.1430804*o)/zb),r=Xb((.0139322*i+.0971045*a+.7141733*o)/qb)),new Wb(116*u-16,500*(n-u),200*(u-r),t.opacity)}function Wb(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Xb(t){return t>Yb?Math.pow(t,1/3):t/Hb+jb}function $b(t){return t>Bb?t*t*t:Hb*(t-jb)}function Gb(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,e,n,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 e=Math.atan2(t.b,t.a)*Ub;return new Kb(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new Kb(t,e,n,null==r?1:r)}function Kb(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}cb(Wb,(function(t,e,n,r){return 1===arguments.length?Vb(t):new Wb(t,e,n,null==r?1:r)}),lb(sb,{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,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new Ab(Gb(3.1338561*(e=zb*$b(e))-1.6168667*(t=Fb*$b(t))-.4906146*(n=qb*$b(n))),Gb(-.9787684*e+1.9161415*t+.033454*n),Gb(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),cb(Kb,Zb,lb(sb,{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,ew=-.29227,nw=-.90649,rw=1.97294,iw=rw*nw,aw=rw*tw,ow=tw*ew-nw*Jb;function uw(t,e,n,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=Tb(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(ow*r+iw*e-aw*n)/(ow+iw-aw),a=r-i,o=(rw*(n-i)-ew*a)/nw,u=Math.sqrt(o*o+a*a)/(rw*i*(1-i)),c=u?Math.atan2(o,a)*Ub-120:NaN;return new cw(c<0?c+360:c,u,i,t.opacity)}(t):new cw(t,e,n,null==r?1:r)}function cw(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function lw(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}function sw(t){return function(){return t}}function fw(t,e){return function(n){return t+n*e}}function hw(t,e){var n=e-t;return n?fw(t,n>180||n<-180?n-360*Math.round(n/360):n):sw(isNaN(t)?e:t)}function dw(t,e){var n=e-t;return n?fw(t,n):sw(isNaN(t)?e:t)}cb(cw,uw,lb(sb,{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)*Lb,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new Ab(255*(e+n*(Jb*r+tw*i)),255*(e+n*(ew*r+nw*i)),255*(e+n*(rw*r)),this.opacity)}}));const pw=function t(e){var n=function(t){return 1==(t=+t)?dw:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):sw(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=Cb(t)).r,(e=Cb(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=dw(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function gw(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),u=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,u=ra&&(i=e.slice(a,i),u[o]?u[o]+=i:u[++o]=i),(n=n[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,c.push({i:o,x:mw(n,r)})),a=ww.lastIndex;return a180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:mw(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,u,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:mw(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,u,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var u=a.push(i(a)+"scale(",null,",",null,")");o.push({i:u-4,x:mw(t,n)},{i:u-2,x:mw(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,u,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++n2?Bw:jw,r=i=null,s}function s(e){return(r||(r=n(a,o,c?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=e?0:t>=n?1:r(t)}}}(t):t,u)))(+e)}return s.invert=function(t){return(i||(i=n(o,a,qw,c?function(t){return function(e,n){var r=t(e=+e,n=+n);return function(t){return t<=0?e:t>=1?n:r(t)}}}(e):e)))(+t)},s.domain=function(t){return arguments.length?(a=eb.call(t,zw),l()):a.slice()},s.range=function(t){return arguments.length?(o=nb.call(t),l()):o.slice()},s.rangeRound=function(t){return o=nb.call(t),u=Mw,l()},s.clamp=function(t){return arguments.length?(c=!!t,l()):c},s.interpolate=function(t){return arguments.length?(u=t,l()):u},l()}function Vw(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Ww(t){return(t=Vw(Math.abs(t)))?t[1]:NaN}var Xw,$w=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Gw(t){return new Qw(t)}function Qw(t){if(!(e=$w.exec(t)))throw new Error("invalid format: "+t);var e;this.fill=e[1]||" ",this.align=e[2]||">",this.sign=e[3]||"-",this.symbol=e[4]||"",this.zero=!!e[5],this.width=e[6]&&+e[6],this.comma=!!e[7],this.precision=e[8]&&+e[8].slice(1),this.trim=!!e[9],this.type=e[10]||""}function Zw(t,e){var n=Vw(t,e);if(!n)return t+"";var r=n[0],i=n[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")}Gw.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,e){return(100*t).toFixed(e)},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,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return Zw(100*t,e)},r:Zw,s:function(t,e){var n=Vw(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(Xw=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Vw(t,Math.max(0,e+a-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,ex,nx,rx=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ix(t){var e=t.domain;return t.ticks=function(t){var n=e();return H_(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){return function(t,e,n){var r,i=t[0],a=t[t.length-1],o=V_(i,a,null==e?10:e);switch((n=Gw(null==n?",f":n)).type){case"s":var u=Math.max(Math.abs(i),Math.abs(a));return null!=n.precision||isNaN(r=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ww(e)/3)))-Ww(Math.abs(t)))}(o,u))||(n.precision=r),nx(n,u);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Ww(e)-Ww(t))+1}(o,Math.max(Math.abs(i),Math.abs(a))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=function(t){return Math.max(0,-Ww(Math.abs(t)))}(o))||(n.precision=r-2*("%"===n.type))}return ex(n)}(e(),t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),a=0,o=i.length-1,u=i[a],c=i[o];return c0?r=Y_(u=Math.floor(u/r)*r,c=Math.ceil(c/r)*r,n):r<0&&(r=Y_(u=Math.ceil(u*r)/r,c=Math.floor(c*r)/r,n)),r>0?(i[a]=Math.floor(u/r)*r,i[o]=Math.ceil(c/r)*r,e(i)):r<0&&(i[a]=Math.ceil(u*r)/r,i[o]=Math.floor(c*r)/r,e(i)),t},t}function ax(){var t=Yw(qw,mw);return t.copy=function(){return Hw(t,ax())},ix(t)}function ox(){var t=[0,1];function e(t){return+t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=eb.call(n,zw),e):t.slice()},e.copy=function(){return ox().domain(t)},ix(e)}function ux(t,e){var n,r=0,i=(t=t.slice()).length-1,a=t[r],o=t[i];return o0){for(;hc)break;g.push(f)}}else for(;h=1;--s)if(!((f=l*s)c)break;g.push(f)}}else g=H_(h,d,Math.min(d-h,p)).map(i);return a?g.reverse():g},t.tickFormat=function(e,a){if(null==a&&(a=10===n?".0e":","),"function"!=typeof a&&(a=ex(a)),e===1/0)return a;null==e&&(e=10);var o=Math.max(1,n*e/t.ticks().length);return function(t){var e=t/i(Math.round(r(t)));return e*n0?n[i-1]:t[0],i=n?[r[n-1],e]:[r[o-1],r[o]]},a.copy=function(){return _x().domain([t,e]).range(i)},ix(a)}function bx(){var t=[.5],e=[0,1],n=1;function r(r){if(r<=r)return e[z_(t,r,0,n)]}return r.domain=function(i){return arguments.length?(t=nb.call(i),n=Math.min(t.length,e.length-1),r):t.slice()},r.range=function(i){return arguments.length?(e=nb.call(i),n=Math.min(t.length,e.length-1),r):e.slice()},r.invertExtent=function(n){var r=e.indexOf(n);return[t[r-1],t[r]]},r.copy=function(){return bx().domain(t).range(e)},r}tx=function(t){var e,n,r=t.grouping&&t.thousands?(e=t.grouping,n=t.thousands,function(t,r){for(var i=t.length,a=[],o=0,u=e[0],c=0;i>0&&u>0&&(c+u+1>r&&(u=Math.max(1,r-c)),a.push(t.substring(i-=u,i+u)),!((c+=u+1)>r));)u=e[o=(o+1)%e.length];return a.reverse().join(n)}):Jw,i=t.currency,a=t.decimal,o=t.numerals?function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(t.numerals):Jw,u=t.percent||"%";function c(t){var e=(t=Gw(t)).fill,n=t.align,c=t.sign,l=t.symbol,s=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"),(s||"0"===e&&"="===n)&&(s=!0,e="0",n="=");var v="$"===l?i[0]:"#"===l&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",y="$"===l?i[1]:/[%p]/.test(g)?u:"",m=Kw[g],_=/[defgprs%]/.test(g);function b(t){var i,u,l,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 e,n=t.length,r=1,i=-1;r0){if(!+t[r])break t;i=0}}return i>0?t.slice(0,i)+t.slice(e+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(l=t.charCodeAt(i))||l>57){w=(46===l?a+t.slice(i+1):t.slice(i))+w,t=t.slice(0,i);break}}h&&!s&&(t=r(t,1/0));var E=b.length+t.length+w.length,M=E>1)+b+t+w+M.slice(E);break;default:t=M+b+t+w}return o(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,e){var n=c(((t=Gw(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Ww(e)/3))),i=Math.pow(10,-r),a=rx[8+r/3];return function(t){return n(i*t)+a}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),ex=tx.format,nx=tx.formatPrefix;var wx=new Date,xx=new Date;function Ex(t,e,n,r){function i(e){return t(e=new Date(+e)),e}return i.floor=i,i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return u;do{u.push(o=new Date(+n)),e(n,a),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return wx.setTime(+e),xx.setTime(+r),t(wx),t(xx),Math.floor(n(wx,xx))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var Mx=Ex((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));Mx.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?Ex((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Mx:null};const kx=Mx;Mx.range;var Nx=1e3,Sx=6e4,Tx=36e5,Cx=864e5,Ax=6048e5,Px=Ex((function(t){t.setTime(Math.floor(t/Nx)*Nx)}),(function(t,e){t.setTime(+t+e*Nx)}),(function(t,e){return(e-t)/Nx}),(function(t){return t.getUTCSeconds()}));const Rx=Px;Px.range;var Ix=Ex((function(t){t.setTime(Math.floor(t/Sx)*Sx)}),(function(t,e){t.setTime(+t+e*Sx)}),(function(t,e){return(e-t)/Sx}),(function(t){return t.getMinutes()}));const Ox=Ix;Ix.range;var Dx=Ex((function(t){var e=t.getTimezoneOffset()*Sx%Tx;e<0&&(e+=Tx),t.setTime(Math.floor((+t-e)/Tx)*Tx+e)}),(function(t,e){t.setTime(+t+e*Tx)}),(function(t,e){return(e-t)/Tx}),(function(t){return t.getHours()}));const Lx=Dx;Dx.range;var Ux=Ex((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Sx)/Cx}),(function(t){return t.getDate()-1}));const zx=Ux;function Fx(t){return Ex((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Sx)/Ax}))}Ux.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,Ex((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})));const $x=Xx;Xx.range;var Gx=Ex((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));Gx.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ex((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const Qx=Gx;Gx.range;var Zx=Ex((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*Sx)}),(function(t,e){return(e-t)/Sx}),(function(t){return t.getUTCMinutes()}));const Kx=Zx;Zx.range;var Jx=Ex((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*Tx)}),(function(t,e){return(e-t)/Tx}),(function(t){return t.getUTCHours()}));const tE=Jx;Jx.range;var eE=Ex((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/Cx}),(function(t){return t.getUTCDate()-1}));const nE=eE;function rE(t){return Ex((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/Ax}))}eE.range;var iE=rE(0),aE=rE(1),oE=rE(2),uE=rE(3),cE=rE(4),lE=rE(5),sE=rE(6),fE=(iE.range,aE.range,oE.range,uE.range,cE.range,lE.range,sE.range,Ex((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})));const hE=fE;fE.range;var dE=Ex((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));dE.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Ex((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const pE=dE;function gE(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function vE(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function yE(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}dE.range;var mE,_E,bE,wE,xE={"-":"",_:" ",0:"0"},EE=/^\s*\d+/,ME=/^%/,kE=/[\\^$*+?|[\]().{}]/g;function NE(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a68?1900:2e3),n+r[0].length):-1}function UE(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function zE(t,e,n){var r=EE.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function FE(t,e,n){var r=EE.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function qE(t,e,n){var r=EE.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function jE(t,e,n){var r=EE.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function BE(t,e,n){var r=EE.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function HE(t,e,n){var r=EE.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function YE(t,e,n){var r=EE.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function VE(t,e,n){var r=EE.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function WE(t,e,n){var r=ME.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function XE(t,e,n){var r=EE.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function $E(t,e,n){var r=EE.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function GE(t,e){return NE(t.getDate(),e,2)}function QE(t,e){return NE(t.getHours(),e,2)}function ZE(t,e){return NE(t.getHours()%12||12,e,2)}function KE(t,e){return NE(1+zx.count(Qx(t),t),e,3)}function JE(t,e){return NE(t.getMilliseconds(),e,3)}function tM(t,e){return JE(t,e)+"000"}function eM(t,e){return NE(t.getMonth()+1,e,2)}function nM(t,e){return NE(t.getMinutes(),e,2)}function rM(t,e){return NE(t.getSeconds(),e,2)}function iM(t){var e=t.getDay();return 0===e?7:e}function aM(t,e){return NE(qx.count(Qx(t),t),e,2)}function oM(t,e){var n=t.getDay();return t=n>=4||0===n?Yx(t):Yx.ceil(t),NE(Yx.count(Qx(t),t)+(4===Qx(t).getDay()),e,2)}function uM(t){return t.getDay()}function cM(t,e){return NE(jx.count(Qx(t),t),e,2)}function lM(t,e){return NE(t.getFullYear()%100,e,2)}function sM(t,e){return NE(t.getFullYear()%1e4,e,4)}function fM(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+NE(e/60|0,"0",2)+NE(e%60,"0",2)}function hM(t,e){return NE(t.getUTCDate(),e,2)}function dM(t,e){return NE(t.getUTCHours(),e,2)}function pM(t,e){return NE(t.getUTCHours()%12||12,e,2)}function gM(t,e){return NE(1+nE.count(pE(t),t),e,3)}function vM(t,e){return NE(t.getUTCMilliseconds(),e,3)}function yM(t,e){return vM(t,e)+"000"}function mM(t,e){return NE(t.getUTCMonth()+1,e,2)}function _M(t,e){return NE(t.getUTCMinutes(),e,2)}function bM(t,e){return NE(t.getUTCSeconds(),e,2)}function wM(t){var e=t.getUTCDay();return 0===e?7:e}function xM(t,e){return NE(iE.count(pE(t),t),e,2)}function EM(t,e){var n=t.getUTCDay();return t=n>=4||0===n?cE(t):cE.ceil(t),NE(cE.count(pE(t),t)+(4===pE(t).getUTCDay()),e,2)}function MM(t){return t.getUTCDay()}function kM(t,e){return NE(aE.count(pE(t),t),e,2)}function NM(t,e){return NE(t.getUTCFullYear()%100,e,2)}function SM(t,e){return NE(t.getUTCFullYear()%1e4,e,4)}function TM(){return"+0000"}function CM(){return"%"}function AM(t){return+t}function PM(t){return Math.floor(+t/1e3)}mE=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,u=t.months,c=t.shortMonths,l=TE(i),s=CE(i),f=TE(a),h=CE(a),d=TE(o),p=CE(o),g=TE(u),v=CE(u),y=TE(c),m=CE(c),_={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:GE,e:GE,f:tM,H:QE,I:ZE,j:KE,L:JE,m:eM,M:nM,p:function(t){return i[+(t.getHours()>=12)]},Q:AM,s:PM,S:rM,u:iM,U:aM,V:oM,w:uM,W:cM,x:null,X:null,y:lM,Y:sM,Z:fM,"%":CM},b={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:hM,e:hM,f:yM,H:dM,I:pM,j:gM,L:vM,m:mM,M:_M,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:AM,s:PM,S:bM,u:wM,U:xM,V:EM,w:MM,W:kM,x:null,X:null,y:NM,Y:SM,Z:TM,"%":CM},w={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=m[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=v[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return M(t,e,n,r)},d:FE,e:FE,f:VE,H:jE,I:jE,j:qE,L:YE,m:zE,M:BE,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=s[r[0].toLowerCase()],n+r[0].length):-1},Q:XE,s:$E,S:HE,u:PE,U:RE,V:IE,w:AE,W:OE,x:function(t,e,r){return M(t,n,e,r)},X:function(t,e,n){return M(t,r,e,n)},y:LE,Y:DE,Z:UE,"%":WE};function x(t,e){return function(n){var r,i,a,o=[],u=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++u53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=vE(yE(a.y))).getUTCDay(),r=i>4||0===i?aE.ceil(r):aE(r),r=nE.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=e(yE(a.y))).getDay(),r=i>4||0===i?jx.ceil(r):jx(r),r=zx.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?vE(yE(a.y)).getUTCDay():e(yE(a.y)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,vE(a)):e(a)}}function M(t,e,n,r){for(var i,a,o=0,u=e.length,c=n.length;o=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=w[i in xE?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return _.x=x(n,_),_.X=x(r,_),_.c=x(e,_),b.x=x(n,b),b.X=x(r,b),b.c=x(e,b),{format:function(t){var e=x(t+="",_);return e.toString=function(){return t},e},parse:function(t){var e=E(t+="",gE);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=E(t,vE);return e.toString=function(){return t},e}}}({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"]}),_E=mE.format,mE.parse,bE=mE.utcFormat,wE=mE.utcParse;var RM="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||bE(RM),+new Date("2000-01-01T00:00:00.000Z")||wE(RM);var IM=1e3,OM=60*IM,DM=60*OM,LM=24*DM,UM=7*LM,zM=30*LM,FM=365*LM;function qM(t){return new Date(t)}function jM(t){return t instanceof Date?+t:+new Date(+t)}function BM(t,e,n,r,i,a,o,u,c){var l=Yw(qw,mw),s=l.invert,f=l.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=[[o,1,IM],[o,5,5*IM],[o,15,15*IM],[o,30,30*IM],[a,1,OM],[a,5,5*OM],[a,15,15*OM],[a,30,30*OM],[i,1,DM],[i,3,3*DM],[i,6,6*DM],[i,12,12*DM],[r,1,LM],[r,2,2*LM],[n,1,UM],[e,1,zM],[e,3,3*zM],[t,1,FM]];function w(u){return(o(u)1)&&(t-=Math.floor(t));var e=Math.abs(t-.5);return JM.h=360*t-100,JM.s=1.5-1.5*e,JM.l=.8-.9*e,JM+""}function ek(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}const nk=ek(VM("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var rk=ek(VM("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),ik=ek(VM("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),ak=ek(VM("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function ok(t){var e=0,n=1,r=!1;function i(i){var a=(i-e)/(n-e);return t(r?Math.max(0,Math.min(1,a)):a)}return i.domain=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.clamp=function(t){return arguments.length?(r=!!t,i):r},i.interpolator=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return ok(t).domain([e,n]).clamp(r)},ix(i)}var uk="http://www.w3.org/1999/xhtml";const ck={svg:"http://www.w3.org/2000/svg",xhtml:uk,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function lk(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),ck.hasOwnProperty(e)?{space:ck[e],local:t}:t}function sk(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===uk&&e.documentElement.namespaceURI===uk?e.createElement(t):e.createElementNS(n,t)}}function fk(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function hk(t){var e=lk(t);return(e.local?fk:sk)(e)}function dk(){}function pk(t){return null==t?dk:function(){return this.querySelector(t)}}function gk(){return[]}function vk(t){return null==t?gk:function(){return this.querySelectorAll(t)}}var yk=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var mk=document.documentElement;if(!mk.matches){var _k=mk.webkitMatchesSelector||mk.msMatchesSelector||mk.mozMatchesSelector||mk.oMatchesSelector;yk=function(t){return function(){return _k.call(this,t)}}}}const bk=yk;function wk(t){return new Array(t.length)}function xk(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}xk.prototype={constructor:xk,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var Ek="$";function Mk(t,e,n,r,i,a){for(var o,u=0,c=e.length,l=a.length;ue?1:t>=e?0:NaN}function Sk(t){return function(){this.removeAttribute(t)}}function Tk(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ck(t,e){return function(){this.setAttribute(t,e)}}function Ak(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Pk(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Rk(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Ik(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Ok(t){return function(){this.style.removeProperty(t)}}function Dk(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Lk(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Uk(t,e){return t.style.getPropertyValue(e)||Ik(t).getComputedStyle(t,null).getPropertyValue(e)}function zk(t){return function(){delete this[t]}}function Fk(t,e){return function(){this[t]=e}}function qk(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function jk(t){return t.trim().split(/^|\s+/)}function Bk(t){return t.classList||new Hk(t)}function Hk(t){this._node=t,this._names=jk(t.getAttribute("class")||"")}function Yk(t,e){for(var n=Bk(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var uN={},cN=null;function lN(t,e,n){return t=sN(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function sN(t,e,n){return function(r){var i=cN;cN=r;try{t.call(this,this.__data__,e,n)}finally{cN=i}}}function fN(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r=w&&(w=b+1);!(_=y[w])&&++w=0;)(r=i[a])&&(o&&o!==r.nextSibling&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Nk);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==e?Ok:"function"==typeof e?Lk:Dk)(t,e,null==n?"":n)):Uk(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?zk:"function"==typeof e?qk:Fk)(t,e)):this.node()[t]},classed:function(t,e){var n=jk(t+"");if(arguments.length<2){for(var r=Bk(this.node()),i=-1,a=n.length;++i=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),o=a.length;if(!(arguments.length<2)){for(u=e?hN:fN,null==n&&(n=!1),r=0;rON)if(Math.abs(s*u-c*l)>ON&&i){var h=n-a,d=r-o,p=u*u+c*c,g=h*h+d*d,v=Math.sqrt(p),y=Math.sqrt(f),m=i*Math.tan((RN-Math.acos((p+f-g)/(2*v*y)))/2),_=m/y,b=m/v;Math.abs(_-1)>ON&&(this._+="L"+(t+_*l)+","+(e+_*s)),this._+="A"+i+","+i+",0,0,"+ +(s*h>l*d)+","+(this._x1=t+b*u)+","+(this._y1=e+b*c)}else this._+="L"+(this._x1=t)+","+(this._y1=e)},arc:function(t,e,n,r,i,a){t=+t,e=+e;var o=(n=+n)*Math.cos(r),u=n*Math.sin(r),c=t+o,l=e+u,s=1^a,f=a?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+c+","+l:(Math.abs(this._x1-c)>ON||Math.abs(this._y1-l)>ON)&&(this._+="L"+c+","+l),n&&(f<0&&(f=f%IN+IN),f>DN?this._+="A"+n+","+n+",0,1,"+s+","+(t-o)+","+(e-u)+"A"+n+","+n+",0,1,"+s+","+(this._x1=c)+","+(this._y1=l):f>ON&&(this._+="A"+n+","+n+",0,"+ +(f>=RN)+","+s+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const zN=UN;function FN(t){return function(){return t}}var qN=Math.abs,jN=Math.atan2,BN=Math.cos,HN=Math.max,YN=Math.min,VN=Math.sin,WN=Math.sqrt,XN=1e-12,$N=Math.PI,GN=$N/2,QN=2*$N;function ZN(t){return t>=1?GN:t<=-1?-GN:Math.asin(t)}function KN(t){return t.innerRadius}function JN(t){return t.outerRadius}function tS(t){return t.startAngle}function eS(t){return t.endAngle}function nS(t){return t&&t.padAngle}function rS(t,e,n,r,i,a,o){var u=t-n,c=e-r,l=(o?a:-a)/WN(u*u+c*c),s=l*c,f=-l*u,h=t+s,d=e+f,p=n+s,g=r+f,v=(h+p)/2,y=(d+g)/2,m=p-h,_=g-d,b=m*m+_*_,w=i-a,x=h*g-p*d,E=(_<0?-1:1)*WN(HN(0,w*w*b-x*x)),M=(x*_-m*E)/b,k=(-x*m-_*E)/b,N=(x*_+m*E)/b,S=(-x*m+_*E)/b,T=M-v,C=k-y,A=N-v,P=S-y;return T*T+C*C>A*A+P*P&&(M=N,k=S),{cx:M,cy:k,x01:-s,y01:-f,x11:M*(i/w-1),y11:k*(i/w-1)}}function iS(){var t=KN,e=JN,n=FN(0),r=null,i=tS,a=eS,o=nS,u=null;function c(){var c,l,s,f=+t.apply(this,arguments),h=+e.apply(this,arguments),d=i.apply(this,arguments)-GN,p=a.apply(this,arguments)-GN,g=qN(p-d),v=p>d;if(u||(u=c=zN()),hXN)if(g>QN-XN)u.moveTo(h*BN(d),h*VN(d)),u.arc(0,0,h,d,p,!v),f>XN&&(u.moveTo(f*BN(p),f*VN(p)),u.arc(0,0,f,p,d,v));else{var y,m,_=d,b=p,w=d,x=p,E=g,M=g,k=o.apply(this,arguments)/2,N=k>XN&&(r?+r.apply(this,arguments):WN(f*f+h*h)),S=YN(qN(h-f)/2,+n.apply(this,arguments)),T=S,C=S;if(N>XN){var A=ZN(N/f*VN(k)),P=ZN(N/h*VN(k));(E-=2*A)>XN?(w+=A*=v?1:-1,x-=A):(E=0,w=x=(d+p)/2),(M-=2*P)>XN?(_+=P*=v?1:-1,b-=P):(M=0,_=b=(d+p)/2)}var R=h*BN(_),I=h*VN(_),O=f*BN(x),D=f*VN(x);if(S>XN){var L=h*BN(b),U=h*VN(b),z=f*BN(w),F=f*VN(w);if(g<$N){var q=E>XN?function(t,e,n,r,i,a,o,u){var c=n-t,l=r-e,s=o-i,f=u-a,h=(s*(e-a)-f*(t-i))/(f*c-s*l);return[t+h*c,e+h*l]}(R,I,z,F,L,U,O,D):[O,D],j=R-q[0],B=I-q[1],H=L-q[0],Y=U-q[1],V=1/VN(((s=(j*H+B*Y)/(WN(j*j+B*B)*WN(H*H+Y*Y)))>1?0:s<-1?$N:Math.acos(s))/2),W=WN(q[0]*q[0]+q[1]*q[1]);T=YN(S,(f-W)/(V-1)),C=YN(S,(h-W)/(V+1))}}M>XN?C>XN?(y=rS(z,F,R,I,h,C,v),m=rS(L,U,O,D,h,C,v),u.moveTo(y.cx+y.x01,y.cy+y.y01),CXN&&E>XN?T>XN?(y=rS(O,D,L,U,f,-T,v),m=rS(R,I,z,F,f,-T,v),u.lineTo(y.cx+y.x01,y.cy+y.y01),T=s;--f)u.point(v[f],y[f]);u.lineEnd(),u.areaEnd()}g&&(v[l]=+t(h,l,c),y[l]=+n(h,l,c),u.point(e?+e(h,l,c):v[l],r?+r(h,l,c):y[l]))}if(d)return u=null,d+""||null}function l(){return lS().defined(i).curve(o).context(a)}return c.x=function(n){return arguments.length?(t="function"==typeof n?n:FN(+n),e=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:FN(+e),c):t},c.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:FN(+t),c):e},c.y=function(t){return arguments.length?(n="function"==typeof t?t:FN(+t),r=null,c):n},c.y0=function(t){return arguments.length?(n="function"==typeof t?t:FN(+t),c):n},c.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:FN(+t),c):r},c.lineX0=c.lineY0=function(){return l().x(t).y(n)},c.lineY1=function(){return l().x(t).y(r)},c.lineX1=function(){return l().x(e).y(n)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:FN(!!t),c):i},c.curve=function(t){return arguments.length?(o=t,null!=a&&(u=o(a)),c):o},c.context=function(t){return arguments.length?(null==t?a=u=null:u=o(a=t),c):a},c}function fS(t,e){return et?1:e>=t?0:NaN}function hS(t){return t}function dS(){var t=hS,e=fS,n=null,r=FN(0),i=FN(QN),a=FN(0);function o(o){var u,c,l,s,f,h=o.length,d=0,p=new Array(h),g=new Array(h),v=+r.apply(this,arguments),y=Math.min(QN,Math.max(-QN,i.apply(this,arguments)-v)),m=Math.min(Math.abs(y)/h,a.apply(this,arguments)),_=m*(y<0?-1:1);for(u=0;u0&&(d+=f);for(null!=e?p.sort((function(t,n){return e(g[t],g[n])})):null!=n&&p.sort((function(t,e){return n(o[t],o[e])})),u=0,l=d?(y-h*_)/d:0;u0?f*l:0)+_,g[c]={data:o[c],index:u,value:f,startAngle:v,endAngle:s,padAngle:m};return g}return o.value=function(e){return arguments.length?(t="function"==typeof e?e:FN(+e),o):t},o.sortValues=function(t){return arguments.length?(e=t,n=null,o):e},o.sort=function(t){return arguments.length?(n=t,e=null,o):n},o.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:FN(+t),o):r},o.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:FN(+t),o):i},o.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:FN(+t),o):a},o}aS.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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var pS=vS(oS);function gS(t){this._curve=t}function vS(t){function e(e){return new gS(t(e))}return e._curve=t,e}function yS(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(vS(t)):e()._curve},t}function mS(){return yS(lS().curve(pS))}function _S(){var t=sS().curve(pS),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,a=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 yS(n())},delete t.lineX0,t.lineEndAngle=function(){return yS(r())},delete t.lineX1,t.lineInnerRadius=function(){return yS(i())},delete t.lineY0,t.lineOuterRadius=function(){return yS(a())},delete t.lineY1,t.curve=function(t){return arguments.length?e(vS(t)):e()._curve},t}function bS(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}gS.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var wS=Array.prototype.slice;function xS(t){return t.source}function ES(t){return t.target}function MS(t){var e=xS,n=ES,r=uS,i=cS,a=null;function o(){var o,u=wS.call(arguments),c=e.apply(this,u),l=n.apply(this,u);if(a||(a=o=zN()),t(a,+r.apply(this,(u[0]=c,u)),+i.apply(this,u),+r.apply(this,(u[0]=l,u)),+i.apply(this,u)),o)return a=null,o+""||null}return o.source=function(t){return arguments.length?(e=t,o):e},o.target=function(t){return arguments.length?(n=t,o):n},o.x=function(t){return arguments.length?(r="function"==typeof t?t:FN(+t),o):r},o.y=function(t){return arguments.length?(i="function"==typeof t?t:FN(+t),o):i},o.context=function(t){return arguments.length?(a=null==t?null:t,o):a},o}function kS(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function NS(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function SS(t,e,n,r,i){var a=bS(e,n),o=bS(e,n=(n+i)/2),u=bS(r,n),c=bS(r,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],u[0],u[1],c[0],c[1])}function TS(){return MS(kS)}function CS(){return MS(NS)}function AS(){var t=MS(SS);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const PS={draw:function(t,e){var n=Math.sqrt(e/$N);t.moveTo(n,0),t.arc(0,0,n,0,QN)}},RS={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}};var IS=Math.sqrt(1/3),OS=2*IS;const DS={draw:function(t,e){var n=Math.sqrt(e/OS),r=n*IS;t.moveTo(0,-n),t.lineTo(r,0),t.lineTo(0,n),t.lineTo(-r,0),t.closePath()}};var LS=Math.sin($N/10)/Math.sin(7*$N/10),US=Math.sin(QN/10)*LS,zS=-Math.cos(QN/10)*LS;const FS={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),r=US*n,i=zS*n;t.moveTo(0,-n),t.lineTo(r,i);for(var a=1;a<5;++a){var o=QN*a/5,u=Math.cos(o),c=Math.sin(o);t.lineTo(c*n,-u*n),t.lineTo(u*r-c*i,c*r+u*i)}t.closePath()}},qS={draw:function(t,e){var n=Math.sqrt(e),r=-n/2;t.rect(r,r,n,n)}};var jS=Math.sqrt(3);const BS={draw:function(t,e){var n=-Math.sqrt(e/(3*jS));t.moveTo(0,2*n),t.lineTo(-jS*n,-n),t.lineTo(jS*n,-n),t.closePath()}};var HS=-.5,YS=Math.sqrt(3)/2,VS=1/Math.sqrt(12),WS=3*(VS/2+1);const XS={draw:function(t,e){var n=Math.sqrt(e/WS),r=n/2,i=n*VS,a=r,o=n*VS+n,u=-a,c=o;t.moveTo(r,i),t.lineTo(a,o),t.lineTo(u,c),t.lineTo(HS*r-YS*i,YS*r+HS*i),t.lineTo(HS*a-YS*o,YS*a+HS*o),t.lineTo(HS*u-YS*c,YS*u+HS*c),t.lineTo(HS*r+YS*i,HS*i-YS*r),t.lineTo(HS*a+YS*o,HS*o-YS*a),t.lineTo(HS*u+YS*c,HS*c-YS*u),t.closePath()}};var $S=[PS,RS,DS,qS,FS,BS,XS];function GS(){var t=FN(PS),e=FN(64),n=null;function r(){var r;if(n||(n=r=zN()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(e){return arguments.length?(t="function"==typeof e?e:FN(e),r):t},r.size=function(t){return arguments.length?(e="function"==typeof t?t:FN(+t),r):e},r.context=function(t){return arguments.length?(n=null==t?null:t,r):n},r}function QS(){}function ZS(t,e,n){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+e)/6,(t._y0+4*t._y1+n)/6)}function KS(t){this._context=t}function JS(t){return new KS(t)}function tT(t){this._context=t}function eT(t){return new tT(t)}function nT(t){this._context=t}function rT(t){return new nT(t)}function iT(t,e){this._basis=new KS(t),this._beta=e}KS.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:ZS(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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:ZS(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},tT.prototype={areaStart:QS,areaEnd:QS,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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:ZS(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},nT.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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ZS(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},iT.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var r,i=t[0],a=e[0],o=t[n]-i,u=e[n]-a,c=-1;++c<=n;)r=c/n,this._basis.point(this._beta*t[c]+(1-this._beta)*(i+r*o),this._beta*e[c]+(1-this._beta)*(a+r*u));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const aT=function t(e){function n(t){return 1===e?new KS(t):new iT(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function oT(t,e,n){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-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function uT(t,e){this._context=t,this._k=(1-e)/6}uT.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:oT(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:oT(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const cT=function t(e){function n(t){return new uT(t,e)}return n.tension=function(e){return t(+e)},n}(0);function lT(t,e){this._context=t,this._k=(1-e)/6}lT.prototype={areaStart:QS,areaEnd:QS,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,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:oT(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const sT=function t(e){function n(t){return new lT(t,e)}return n.tension=function(e){return t(+e)},n}(0);function fT(t,e){this._context=t,this._k=(1-e)/6}fT.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,e){switch(t=+t,e=+e,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:oT(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const hT=function t(e){function n(t){return new fT(t,e)}return n.tension=function(e){return t(+e)},n}(0);function dT(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>XN){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>XN){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,s=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/s,o=(o*l+t._y1*t._l23_2a-n*t._l12_2a)/s}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function pT(t,e){this._context=t,this._alpha=e}pT.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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:dT(this,t,e)}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=e}};const gT=function t(e){function n(t){return e?new pT(t,e):new uT(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function vT(t,e){this._context=t,this._alpha=e}vT.prototype={areaStart:QS,areaEnd:QS,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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:dT(this,t,e)}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=e}};const yT=function t(e){function n(t){return e?new vT(t,e):new lT(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function mT(t,e){this._context=t,this._alpha=e}mT.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,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+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:dT(this,t,e)}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=e}};const _T=function t(e){function n(t){return e?new mT(t,e):new fT(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function bT(t){this._context=t}function wT(t){return new bT(t)}function xT(t){return t<0?-1:1}function ET(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),u=(a*i+o*r)/(r+i);return(xT(a)+xT(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function MT(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function kT(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,u=(a-r)/3;t._context.bezierCurveTo(r+u,i+u*e,a-u,o-u*n,a,o)}function NT(t){this._context=t}function ST(t){this._context=new TT(t)}function TT(t){this._context=t}function CT(t){return new NT(t)}function AT(t){return new ST(t)}function PT(t){this._context=t}function RT(t){var e,n,r=t.length-1,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[r-1]=(t[r]+i[r-1])/2,e=0;e1)for(var n,r,i,a=1,o=t[e[0]],u=o.length;a=0;)n[e]=e;return n}function qT(t,e){return t[e]}function jT(){var t=FN([]),e=FT,n=zT,r=qT;function i(i){var a,o,u=t.apply(this,arguments),c=i.length,l=u.length,s=new Array(l);for(a=0;a0){for(var n,r,i,a=0,o=t[0].length;a1)for(var n,r,i,a,o,u,c=0,l=t[e[0]].length;c=0?(r[0]=a,r[1]=a+=i):i<0?(r[1]=o,r[0]=o+=i):r[0]=a}function YT(t,e){if((n=t.length)>0){for(var n,r=0,i=t[e[0]],a=i.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,a=0,o=1;o=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var ZT=new Date,KT=new Date;function JT(t,e,n,r){function i(e){return t(e=new Date(+e)),e}return i.floor=i,i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return u;do{u.push(o=new Date(+n)),e(n,a),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return ZT.setTime(+e),KT.setTime(+r),t(ZT),t(KT),Math.floor(n(ZT,KT))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var tC=JT((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));tC.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?JT((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):tC:null};const eC=tC;var nC=tC.range,rC=1e3,iC=6e4,aC=36e5,oC=864e5,uC=6048e5,cC=JT((function(t){t.setTime(Math.floor(t/rC)*rC)}),(function(t,e){t.setTime(+t+e*rC)}),(function(t,e){return(e-t)/rC}),(function(t){return t.getUTCSeconds()}));const lC=cC;var sC=cC.range,fC=JT((function(t){t.setTime(Math.floor(t/iC)*iC)}),(function(t,e){t.setTime(+t+e*iC)}),(function(t,e){return(e-t)/iC}),(function(t){return t.getMinutes()}));const hC=fC;var dC=fC.range,pC=JT((function(t){var e=t.getTimezoneOffset()*iC%aC;e<0&&(e+=aC),t.setTime(Math.floor((+t-e)/aC)*aC+e)}),(function(t,e){t.setTime(+t+e*aC)}),(function(t,e){return(e-t)/aC}),(function(t){return t.getHours()}));const gC=pC;var vC=pC.range,yC=JT((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*iC)/oC}),(function(t){return t.getDate()-1}));const mC=yC;var _C=yC.range;function bC(t){return JT((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*iC)/uC}))}var wC=bC(0),xC=bC(1),EC=bC(2),MC=bC(3),kC=bC(4),NC=bC(5),SC=bC(6),TC=wC.range,CC=xC.range,AC=EC.range,PC=MC.range,RC=kC.range,IC=NC.range,OC=SC.range,DC=JT((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));const LC=DC;var UC=DC.range,zC=JT((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));zC.every=function(t){return isFinite(t=Math.floor(t))&&t>0?JT((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const FC=zC;var qC=zC.range,jC=JT((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*iC)}),(function(t,e){return(e-t)/iC}),(function(t){return t.getUTCMinutes()}));const BC=jC;var HC=jC.range,YC=JT((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*aC)}),(function(t,e){return(e-t)/aC}),(function(t){return t.getUTCHours()}));const VC=YC;var WC=YC.range,XC=JT((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/oC}),(function(t){return t.getUTCDate()-1}));const $C=XC;var GC=XC.range;function QC(t){return JT((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/uC}))}var ZC=QC(0),KC=QC(1),JC=QC(2),tA=QC(3),eA=QC(4),nA=QC(5),rA=QC(6),iA=ZC.range,aA=KC.range,oA=JC.range,uA=tA.range,cA=eA.range,lA=nA.range,sA=rA.range,fA=JT((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()}));const hA=fA;var dA=fA.range,pA=JT((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));pA.every=function(t){return isFinite(t=Math.floor(t))&&t>0?JT((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const gA=pA;var vA=pA.range,yA=new Date,mA=new Date;function _A(t,e,n,r){function i(e){return t(e=new Date(+e)),e}return i.floor=i,i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e0))return u;do{u.push(o=new Date(+n)),e(n,a),t(n)}while(o=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(i.count=function(e,r){return yA.setTime(+e),mA.setTime(+r),t(yA),t(mA),Math.floor(n(yA,mA))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t==0}:function(e){return i.count(0,e)%t==0}):i:null}),i}var bA=_A((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));bA.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?_A((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):bA:null},bA.range;var wA=1e3,xA=6e4,EA=36e5,MA=864e5,kA=6048e5,NA=_A((function(t){t.setTime(Math.floor(t/wA)*wA)}),(function(t,e){t.setTime(+t+e*wA)}),(function(t,e){return(e-t)/wA}),(function(t){return t.getUTCSeconds()}));NA.range;var SA=_A((function(t){t.setTime(Math.floor(t/xA)*xA)}),(function(t,e){t.setTime(+t+e*xA)}),(function(t,e){return(e-t)/xA}),(function(t){return t.getMinutes()}));SA.range;var TA=_A((function(t){var e=t.getTimezoneOffset()*xA%EA;e<0&&(e+=EA),t.setTime(Math.floor((+t-e)/EA)*EA+e)}),(function(t,e){t.setTime(+t+e*EA)}),(function(t,e){return(e-t)/EA}),(function(t){return t.getHours()}));TA.range;var CA=_A((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*xA)/MA}),(function(t){return t.getDate()-1}));const AA=CA;function PA(t){return _A((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*xA)/kA}))}CA.range;var RA=PA(0),IA=PA(1),OA=PA(2),DA=PA(3),LA=PA(4),UA=PA(5),zA=PA(6),FA=(RA.range,IA.range,OA.range,DA.range,LA.range,UA.range,zA.range,_A((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.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,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));qA.every=function(t){return isFinite(t=Math.floor(t))&&t>0?_A((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};const jA=qA;qA.range;var BA=_A((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*xA)}),(function(t,e){return(e-t)/xA}),(function(t){return t.getUTCMinutes()}));BA.range;var HA=_A((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*EA)}),(function(t,e){return(e-t)/EA}),(function(t){return t.getUTCHours()}));HA.range;var YA=_A((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/MA}),(function(t){return t.getUTCDate()-1}));const VA=YA;function WA(t){return _A((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/kA}))}YA.range;var XA=WA(0),$A=WA(1),GA=WA(2),QA=WA(3),ZA=WA(4),KA=WA(5),JA=WA(6),tP=(XA.range,$A.range,GA.range,QA.range,ZA.range,KA.range,JA.range,_A((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})));tP.range;var eP=_A((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));eP.every=function(t){return isFinite(t=Math.floor(t))&&t>0?_A((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};const nP=eP;function rP(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function iP(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function aP(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function oP(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,a=t.days,o=t.shortDays,u=t.months,c=t.shortMonths,l=mP(i),s=_P(i),f=mP(a),h=_P(a),d=mP(o),p=_P(o),g=mP(u),v=_P(u),y=mP(c),m=_P(c),_={a:function(t){return o[t.getDay()]},A:function(t){return a[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:FP,e:FP,f:YP,H:qP,I:jP,j:BP,L:HP,m:VP,M:WP,p:function(t){return i[+(t.getHours()>=12)]},Q:bR,s:wR,S:XP,u:$P,U:GP,V:QP,w:ZP,W:KP,x:null,X:null,y:JP,Y:tR,Z:eR,"%":_R},b={a:function(t){return o[t.getUTCDay()]},A:function(t){return a[t.getUTCDay()]},b:function(t){return c[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:nR,e:nR,f:uR,H:rR,I:iR,j:aR,L:oR,m:cR,M:lR,p:function(t){return i[+(t.getUTCHours()>=12)]},Q:bR,s:wR,S:sR,u:fR,U:hR,V:dR,w:pR,W:gR,x:null,X:null,y:vR,Y:yR,Z:mR,"%":_R},w={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p[r[0].toLowerCase()],n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=m[r[0].toLowerCase()],n+r[0].length):-1},B:function(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=v[r[0].toLowerCase()],n+r[0].length):-1},c:function(t,n,r){return M(t,e,n,r)},d:CP,e:CP,f:DP,H:PP,I:PP,j:AP,L:OP,m:TP,M:RP,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=s[r[0].toLowerCase()],n+r[0].length):-1},Q:UP,s:zP,S:IP,u:wP,U:xP,V:EP,w:bP,W:MP,x:function(t,e,r){return M(t,n,e,r)},X:function(t,e,n){return M(t,r,e,n)},y:NP,Y:kP,Z:SP,"%":LP};function x(t,e){return function(n){var r,i,a,o=[],u=-1,c=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++u53)return null;"w"in a||(a.w=1),"Z"in a?(i=(r=iP(aP(a.y))).getUTCDay(),r=i>4||0===i?$A.ceil(r):$A(r),r=VA.offset(r,7*(a.V-1)),a.y=r.getUTCFullYear(),a.m=r.getUTCMonth(),a.d=r.getUTCDate()+(a.w+6)%7):(i=(r=e(aP(a.y))).getDay(),r=i>4||0===i?IA.ceil(r):IA(r),r=AA.offset(r,7*(a.V-1)),a.y=r.getFullYear(),a.m=r.getMonth(),a.d=r.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?iP(aP(a.y)).getUTCDay():e(aP(a.y)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,iP(a)):e(a)}}function M(t,e,n,r){for(var i,a,o=0,u=e.length,c=n.length;o=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=w[i in hP?e.charAt(o++):i])||(r=a(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return _.x=x(n,_),_.X=x(r,_),_.c=x(e,_),b.x=x(n,b),b.X=x(r,b),b.c=x(e,b),{format:function(t){var e=x(t+="",_);return e.toString=function(){return t},e},parse:function(t){var e=E(t+="",rP);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=E(t,iP);return e.toString=function(){return t},e}}}eP.range;var uP,cP,lP,sP,fP,hP={"-":"",_:" ",0:"0"},dP=/^\s*\d+/,pP=/^%/,gP=/[\\^$*+?|[\]().{}]/g;function vP(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a68?1900:2e3),n+r[0].length):-1}function SP(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function TP(t,e,n){var r=dP.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function CP(t,e,n){var r=dP.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function AP(t,e,n){var r=dP.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function PP(t,e,n){var r=dP.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function RP(t,e,n){var r=dP.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function IP(t,e,n){var r=dP.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function OP(t,e,n){var r=dP.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function DP(t,e,n){var r=dP.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function LP(t,e,n){var r=pP.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function UP(t,e,n){var r=dP.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function zP(t,e,n){var r=dP.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function FP(t,e){return vP(t.getDate(),e,2)}function qP(t,e){return vP(t.getHours(),e,2)}function jP(t,e){return vP(t.getHours()%12||12,e,2)}function BP(t,e){return vP(1+AA.count(jA(t),t),e,3)}function HP(t,e){return vP(t.getMilliseconds(),e,3)}function YP(t,e){return HP(t,e)+"000"}function VP(t,e){return vP(t.getMonth()+1,e,2)}function WP(t,e){return vP(t.getMinutes(),e,2)}function XP(t,e){return vP(t.getSeconds(),e,2)}function $P(t){var e=t.getDay();return 0===e?7:e}function GP(t,e){return vP(RA.count(jA(t),t),e,2)}function QP(t,e){var n=t.getDay();return t=n>=4||0===n?LA(t):LA.ceil(t),vP(LA.count(jA(t),t)+(4===jA(t).getDay()),e,2)}function ZP(t){return t.getDay()}function KP(t,e){return vP(IA.count(jA(t),t),e,2)}function JP(t,e){return vP(t.getFullYear()%100,e,2)}function tR(t,e){return vP(t.getFullYear()%1e4,e,4)}function eR(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+vP(e/60|0,"0",2)+vP(e%60,"0",2)}function nR(t,e){return vP(t.getUTCDate(),e,2)}function rR(t,e){return vP(t.getUTCHours(),e,2)}function iR(t,e){return vP(t.getUTCHours()%12||12,e,2)}function aR(t,e){return vP(1+VA.count(nP(t),t),e,3)}function oR(t,e){return vP(t.getUTCMilliseconds(),e,3)}function uR(t,e){return oR(t,e)+"000"}function cR(t,e){return vP(t.getUTCMonth()+1,e,2)}function lR(t,e){return vP(t.getUTCMinutes(),e,2)}function sR(t,e){return vP(t.getUTCSeconds(),e,2)}function fR(t){var e=t.getUTCDay();return 0===e?7:e}function hR(t,e){return vP(XA.count(nP(t),t),e,2)}function dR(t,e){var n=t.getUTCDay();return t=n>=4||0===n?ZA(t):ZA.ceil(t),vP(ZA.count(nP(t),t)+(4===nP(t).getUTCDay()),e,2)}function pR(t){return t.getUTCDay()}function gR(t,e){return vP($A.count(nP(t),t),e,2)}function vR(t,e){return vP(t.getUTCFullYear()%100,e,2)}function yR(t,e){return vP(t.getUTCFullYear()%1e4,e,4)}function mR(){return"+0000"}function _R(){return"%"}function bR(t){return+t}function wR(t){return Math.floor(+t/1e3)}function xR(t){return uP=oP(t),cP=uP.format,lP=uP.parse,sP=uP.utcFormat,fP=uP.utcParse,uP}xR({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 ER="%Y-%m-%dT%H:%M:%S.%LZ";const MR=Date.prototype.toISOString?function(t){return t.toISOString()}:sP(ER),kR=+new Date("2000-01-01T00:00:00.000Z")?function(t){var e=new Date(t);return isNaN(e)?null:e}:fP(ER);var NR,SR,TR=0,CR=0,AR=0,PR=1e3,RR=0,IR=0,OR=0,DR="object"==typeof performance&&performance.now?performance:Date,LR="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function UR(){return IR||(LR(zR),IR=DR.now()+OR)}function zR(){IR=0}function FR(){this._call=this._time=this._next=null}function qR(t,e,n){var r=new FR;return r.restart(t,e,n),r}function jR(){UR(),++TR;for(var t,e=NR;e;)(t=IR-e._time)>=0&&e._call.call(null,t),e=e._next;--TR}function BR(){IR=(RR=DR.now())+OR,TR=CR=0;try{jR()}finally{TR=0,function(){for(var t,e,n=NR,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:NR=e);SR=t,YR(r)}(),IR=0}}function HR(){var t=DR.now(),e=t-RR;e>PR&&(OR-=e,RR=t)}function YR(t){TR||(CR&&(CR=clearTimeout(CR)),t-IR>24?(t<1/0&&(CR=setTimeout(BR,t-DR.now()-OR)),AR&&(AR=clearInterval(AR))):(AR||(RR=DR.now(),AR=setInterval(HR,PR)),TR=1,LR(BR)))}function VR(t,e,n){var r=new FR;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r}function WR(t,e,n){var r=new FR,i=e;return null==e?(r.restart(t,e,n),r):(e=+e,n=null==n?UR():+n,r.restart((function a(o){o+=i,r.restart(a,i+=e,n),t(o)}),e,n),r)}FR.prototype=qR.prototype={constructor:FR,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?UR():+n)+(null==e?0:+e),this._next||SR===this||(SR?SR._next=this:NR=this,SR=this),this._call=t,this._time=n,YR()},stop:function(){this._call&&(this._call=null,this._time=1/0,YR())}};var XR="http://www.w3.org/1999/xhtml";const $R={svg:"http://www.w3.org/2000/svg",xhtml:XR,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function GR(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),$R.hasOwnProperty(e)?{space:$R[e],local:t}:t}function QR(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===XR&&e.documentElement.namespaceURI===XR?e.createElement(t):e.createElementNS(n,t)}}function ZR(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function KR(t){var e=GR(t);return(e.local?ZR:QR)(e)}function JR(){}function tI(t){return null==t?JR:function(){return this.querySelector(t)}}function eI(){return[]}function nI(t){return null==t?eI: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 aI=iI.webkitMatchesSelector||iI.msMatchesSelector||iI.mozMatchesSelector||iI.oMatchesSelector;rI=function(t){return function(){return aI.call(this,t)}}}}const oI=rI;function uI(t){return new Array(t.length)}function cI(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}cI.prototype={constructor:cI,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var lI="$";function sI(t,e,n,r,i,a){for(var o,u=0,c=e.length,l=a.length;ue?1:t>=e?0:NaN}function dI(t){return function(){this.removeAttribute(t)}}function pI(t){return function(){this.removeAttributeNS(t.space,t.local)}}function gI(t,e){return function(){this.setAttribute(t,e)}}function vI(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function yI(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function mI(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}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,e,n){return function(){this.style.setProperty(t,e,n)}}function xI(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function EI(t,e){return t.style.getPropertyValue(e)||_I(t).getComputedStyle(t,null).getPropertyValue(e)}function MI(t){return function(){delete this[t]}}function kI(t,e){return function(){this[t]=e}}function NI(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function SI(t){return t.trim().split(/^|\s+/)}function TI(t){return t.classList||new CI(t)}function CI(t){this._node=t,this._names=SI(t.getAttribute("class")||"")}function AI(t,e){for(var n=TI(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var XI={},$I=null;function GI(t,e,n){return t=QI(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function QI(t,e,n){return function(r){var i=$I;$I=r;try{t.call(this,this.__data__,e,n)}finally{$I=i}}}function ZI(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r=w&&(w=b+1);!(_=y[w])&&++w=0;)(r=i[a])&&(o&&o!==r.nextSibling&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=hI);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==e?bI:"function"==typeof e?xI:wI)(t,e,null==n?"":n)):EI(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?MI:"function"==typeof e?NI:kI)(t,e)):this.node()[t]},classed:function(t,e){var n=SI(t+"");if(arguments.length<2){for(var r=TI(this.node()),i=-1,a=n.length;++i=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),o=a.length;if(!(arguments.length<2)){for(u=e?KI:ZI,null==n&&(n=!1),r=0;r=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),o=-1,u=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o0)for(var n,r,i=new Array(n),a=0;a=0&&e._call.call(null,t),e=e._next;--vO}()}finally{vO=0,function(){for(var t,e,n=pO,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:pO=e);gO=t,PO(r)}(),wO=0}}function AO(){var t=EO.now(),e=t-bO;e>_O&&(xO-=e,bO=t)}function PO(t){vO||(yO&&(yO=clearTimeout(yO)),t-wO>24?(t<1/0&&(yO=setTimeout(CO,t-EO.now()-xO)),mO&&(mO=clearInterval(mO))):(mO||(bO=EO.now(),mO=setInterval(AO,_O)),vO=1,MO(CO)))}function RO(t,e,n){var r=new SO;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r}SO.prototype=TO.prototype={constructor:SO,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?kO():+n)+(null==e?0:+e),this._next||gO===this||(gO?gO._next=this:pO=this,gO=this),this._call=t,this._time=n,PO()},stop:function(){this._call&&(this._call=null,this._time=1/0,PO())}};var IO=dO("start","end","interrupt"),OO=[],DO=0,LO=1,UO=2,zO=3,FO=4,qO=5,jO=6;function BO(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(c){var l,s,f,h;if(n.state!==LO)return u();for(l in i)if((h=i[l]).name===n.name){if(h.state===zO)return RO(a);h.state===FO?(h.state=jO,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[l]):+lDO)throw new Error("too late; already scheduled");return n}function YO(t,e){var n=VO(t,e);if(n.state>UO)throw new Error("too late; already started");return n}function VO(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function WO(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>UO&&n.state>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=nD.exec(t))?fD(parseInt(e[1],16)):(e=rD.exec(t))?new gD(e[1],e[2],e[3],1):(e=iD.exec(t))?new gD(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=aD.exec(t))?hD(e[1],e[2],e[3],e[4]):(e=oD.exec(t))?hD(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=uD.exec(t))?yD(e[1],e[2]/100,e[3]/100,1):(e=cD.exec(t))?yD(e[1],e[2]/100,e[3]/100,e[4]):lD.hasOwnProperty(t)?fD(lD[t]):"transparent"===t?new gD(NaN,NaN,NaN,0):null}function fD(t){return new gD(t>>16&255,t>>8&255,255&t,1)}function hD(t,e,n,r){return r<=0&&(t=e=n=NaN),new gD(t,e,n,r)}function dD(t){return t instanceof GO||(t=sD(t)),t?new gD((t=t.rgb()).r,t.g,t.b,t.opacity):new gD}function pD(t,e,n,r){return 1===arguments.length?dD(t):new gD(t,e,n,null==r?1:r)}function gD(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function vD(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function yD(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new _D(t,e,n,r)}function mD(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof _D)return new _D(t.h,t.s,t.l,t.opacity);if(t instanceof GO||(t=sD(t)),!t)return new _D;if(t instanceof _D)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,u=a-i,c=(a+i)/2;return u?(o=e===a?(n-r)/u+6*(n0&&c<1?0:o,new _D(o,u,c,t.opacity)}(t):new _D(t,e,n,null==r?1:r)}function _D(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function bD(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}XO(GO,sD,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),XO(gD,pD,$O(GO,{brighter:function(t){return t=null==t?ZO:Math.pow(ZO,t),new gD(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?QO:Math.pow(QO,t),new gD(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"#"+vD(this.r)+vD(this.g)+vD(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+")")}})),XO(_D,mD,$O(GO,{brighter:function(t){return t=null==t?ZO:Math.pow(ZO,t),new _D(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?QO:Math.pow(QO,t),new _D(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new gD(bD(t>=240?t-240:t+120,i,r),bD(t,i,r),bD(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 wD=Math.PI/180,xD=180/Math.PI,ED=.96422,MD=1,kD=.82521,ND=4/29,SD=6/29,TD=3*SD*SD,CD=SD*SD*SD;function AD(t){if(t instanceof PD)return new PD(t.l,t.a,t.b,t.opacity);if(t instanceof UD){if(isNaN(t.h))return new PD(t.l,0,0,t.opacity);var e=t.h*wD;return new PD(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof gD||(t=dD(t));var n,r,i=DD(t.r),a=DD(t.g),o=DD(t.b),u=RD((.2225045*i+.7168786*a+.0606169*o)/MD);return i===a&&a===o?n=r=u:(n=RD((.4360747*i+.3850649*a+.1430804*o)/ED),r=RD((.0139322*i+.0971045*a+.7141733*o)/kD)),new PD(116*u-16,500*(n-u),200*(u-r),t.opacity)}function PD(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function RD(t){return t>CD?Math.pow(t,1/3):t/TD+ND}function ID(t){return t>SD?t*t*t:TD*(t-ND)}function OD(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function DD(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function LD(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof UD)return new UD(t.h,t.c,t.l,t.opacity);if(t instanceof PD||(t=AD(t)),0===t.a&&0===t.b)return new UD(NaN,0,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*xD;return new UD(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new UD(t,e,n,null==r?1:r)}function UD(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}XO(PD,(function(t,e,n,r){return 1===arguments.length?AD(t):new PD(t,e,n,null==r?1:r)}),$O(GO,{brighter:function(t){return new PD(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new PD(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new gD(OD(3.1338561*(e=ED*ID(e))-1.6168667*(t=MD*ID(t))-.4906146*(n=kD*ID(n))),OD(-.9787684*e+1.9161415*t+.033454*n),OD(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),XO(UD,LD,$O(GO,{brighter:function(t){return new UD(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new UD(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return AD(this).rgb()}}));var zD=-.14861,FD=1.78277,qD=-.29227,jD=-.90649,BD=1.97294,HD=BD*jD,YD=BD*FD,VD=FD*qD-jD*zD;function WD(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof XD)return new XD(t.h,t.s,t.l,t.opacity);t instanceof gD||(t=dD(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(VD*r+HD*e-YD*n)/(VD+HD-YD),a=r-i,o=(BD*(n-i)-qD*a)/jD,u=Math.sqrt(o*o+a*a)/(BD*i*(1-i)),c=u?Math.atan2(o,a)*xD-120:NaN;return new XD(c<0?c+360:c,u,i,t.opacity)}(t):new XD(t,e,n,null==r?1:r)}function XD(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function $D(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}function GD(t){return function(){return t}}function QD(t,e){return function(n){return t+n*e}}function ZD(t,e){var n=e-t;return n?QD(t,n>180||n<-180?n-360*Math.round(n/360):n):GD(isNaN(t)?e:t)}function KD(t,e){var n=e-t;return n?QD(t,n):GD(isNaN(t)?e:t)}XO(XD,WD,$O(GO,{brighter:function(t){return t=null==t?ZO:Math.pow(ZO,t),new XD(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?QO:Math.pow(QO,t),new XD(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*wD,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new gD(255*(e+n*(zD*r+FD*i)),255*(e+n*(qD*r+jD*i)),255*(e+n*(BD*r)),this.opacity)}}));const JD=function t(e){var n=function(t){return 1==(t=+t)?KD:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):GD(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=pD(t)).r,(e=pD(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=KD(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function tL(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),u=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,u=ra&&(i=e.slice(a,i),u[o]?u[o]+=i:u[++o]=i),(n=n[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,c.push({i:o,x:eL(n,r)})),a=rL.lastIndex;return a180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:eL(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,u,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:eL(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,u,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var u=a.push(i(a)+"scale(",null,",",null,")");o.push({i:u-4,x:eL(t,n)},{i:u-2,x:eL(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,u,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++n=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?HO:YO;return function(){var o=a(this,t),u=o.on;u!==r&&(i=(r=u).copy()).on(e,n),o.on=i}}(n,t,e))},attr:function(t,e){var n=GR(t),r="transform"===n?pL:wL;return this.attrTween(t,"function"==typeof e?(n.local?SL:NL)(n,r,bL(this,"attr."+t,e)):null==e?(n.local?EL:xL)(n):(n.local?kL:ML)(n,r,e+""))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=GR(t);return this.tween(n,(r.local?TL:CL)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?dL:wL;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var a=EI(this,t),o=(this.style.removeProperty(t),EI(this,t));return a===o?null:a===n&&o===r?i:i=e(n=a,r=o)}}(t,r)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof e?function(t,e,n){var r,i,a;return function(){var o=EI(this,t),u=n(this);return null==u&&(this.style.removeProperty(t),u=EI(this,t)),o===u?null:o===r&&u===i?a:a=e(r=o,i=u)}}(t,r,bL(this,"style."+t,e)):function(t,e,n){var r,i;return function(){var a=EI(this,t);return a===n?null:a===r?i:i=e(r=a,n)}}(t,r,e+""),n)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){function r(){var r=this,i=e.apply(r,arguments);return i&&function(e){r.style.setProperty(t,i(e),n)}}return r._value=e,r}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(bL(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 e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=VO(this.node(),n).tween,a=0,o=i.length;aLO&&n.name===e)return new LL([[t]],YL,e,+r);return null}function WL(t){return function(){return t}}function XL(t){return t[0]}function $L(t){return t[1]}function GL(){this._=null}function QL(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function ZL(t,e){var n=e,r=e.R,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function KL(t,e){var n=e,r=e.L,i=n.U;i?i.L===n?i.L=r:i.R=r:t._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function JL(t){for(;t.L;)t=t.L;return t}GL.prototype={constructor:GL,insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=JL(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(ZL(this,n),n=(t=n).U),n.C=!1,r.C=!0,KL(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(KL(this,n),n=(t=n).U),n.C=!1,r.C=!0,ZL(this,r)),n=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 e,n,r,i=t.U,a=t.L,o=t.R;if(n=a?o?JL(o):a:o,i?i.L===t?i.L=n:i.R=n:this._=n,a&&o?(r=n.C,n.C=t.C,n.L=a,a.U=n,n!==o?(i=n.U,n.U=t.U,t=n.R,i.L=t,n.R=o,o.U=n):(n.U=i,i=n,t=n.R)):(r=t.C,t=n),t&&(t.U=i),!r)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&&(e.C=!1,i.C=!0,ZL(this,i),e=i.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,KL(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,ZL(this,i),t=this._;break}}else if((e=i.L).C&&(e.C=!1,i.C=!0,KL(this,i),e=i.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,ZL(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,KL(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&&(t.C=!1)}}};const tU=GL;function eU(t,e,n,r){var i=[null,null],a=kU.push(i)-1;return i.left=t,i.right=e,n&&rU(i,t,e,n),r&&rU(i,e,t,r),EU[t.index].halfedges.push(a),EU[e.index].halfedges.push(a),i}function nU(t,e,n){var r=[e,n];return r.left=t,r}function rU(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function iU(t,e,n,r,i){var a,o=t[0],u=t[1],c=o[0],l=o[1],s=0,f=1,h=u[0]-c,d=u[1]-l;if(a=e-c,h||!(a>0)){if(a/=h,h<0){if(a0){if(a>f)return;a>s&&(s=a)}if(a=r-c,h||!(a<0)){if(a/=h,h<0){if(a>f)return;a>s&&(s=a)}else if(h>0){if(a0)){if(a/=d,d<0){if(a0){if(a>f)return;a>s&&(s=a)}if(a=i-l,d||!(a<0)){if(a/=d,d<0){if(a>f)return;a>s&&(s=a)}else if(d>0){if(a0||f<1)||(s>0&&(t[0]=[c+s*h,l+s*d]),f<1&&(t[1]=[c+f*h,l+f*d]),!0)}}}}}function aU(t,e,n,r,i){var a=t[1];if(a)return!0;var o,u,c=t[0],l=t.left,s=t.right,f=l[0],h=l[1],d=s[0],p=s[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,n];a=[g,i]}else{if(c){if(c[1]1)if(f>d){if(c){if(c[1]>=i)return}else c=[(n-u)/o,n];a=[(i-u)/o,i]}else{if(c){if(c[1]=r)return}else c=[e,o*e+u];a=[r,o*r+u]}else{if(c){if(c[0]=-SU)){var d=c*c+l*l,p=s*s+f*f,g=(f*d-l*p)/h,v=(c*p-s*d)/h,y=sU.pop()||new fU;y.arc=t,y.site=i,y.x=g+o,y.y=(y.cy=v+u)+Math.sqrt(g*g+v*v),t.circle=y;for(var m=null,_=MU._;_;)if(y.y<_.y||y.y===_.y&&y.x<=_.x){if(!_.L){m=_.P;break}_=_.L}else{if(!_.R){m=_;break}_=_.R}MU.insert(m,y),m||(lU=y)}}}}function dU(t){var e=t.circle;e&&(e.P||(lU=e.N),MU.remove(e),sU.push(e),QL(e),t.circle=null)}var pU=[];function gU(){QL(this),this.edge=this.site=this.circle=null}function vU(t){var e=pU.pop()||new gU;return e.site=t,e}function yU(t){dU(t),xU.remove(t),pU.push(t),QL(t)}function mU(t){var e=t.circle,n=e.x,r=e.cy,i=[n,r],a=t.P,o=t.N,u=[t];yU(t);for(var c=a;c.circle&&Math.abs(n-c.circle.x)NU)u=u.L;else{if(!((i=a-wU(u,o))>NU)){r>-NU?(e=u.P,n=u):i>-NU?(e=u,n=u.N):e=n=u;break}if(!u.R){e=u;break}u=u.R}!function(t){EU[t.index]={site:t,halfedges:[]}}(t);var c=vU(t);if(xU.insert(e,c),e||n){if(e===n)return dU(e),n=vU(e.site),xU.insert(c,n),c.edge=n.edge=eU(e.site,c.site),hU(e),void hU(n);if(n){dU(e),dU(n);var l=e.site,s=l[0],f=l[1],h=t[0]-s,d=t[1]-f,p=n.site,g=p[0]-s,v=p[1]-f,y=2*(h*v-d*g),m=h*h+d*d,_=g*g+v*v,b=[(v*m-d*_)/y+s,(h*_-g*m)/y+f];rU(n.edge,l,p,b),c.edge=eU(l,t,null,b),n.edge=eU(t,p,null,b),hU(e),hU(n)}else c.edge=eU(e.site,c.site)}}function bU(t,e){var n=t.site,r=n[0],i=n[1],a=i-e;if(!a)return r;var o=t.P;if(!o)return-1/0;var u=(n=o.site)[0],c=n[1],l=c-e;if(!l)return u;var s=u-r,f=1/a-1/l,h=s/l;return f?(-h+Math.sqrt(h*h-2*f*(s*s/(-2*l)-c+l/2+i-a/2)))/f+r:(r+u)/2}function wU(t,e){var n=t.N;if(n)return bU(n,e);var r=t.site;return r[1]===e?r[0]:1/0}var xU,EU,MU,kU,NU=1e-6,SU=1e-12;function TU(t,e,n){return(t[0]-n[0])*(e[1]-t[1])-(t[0]-e[0])*(n[1]-t[1])}function CU(t,e){return e[1]-t[1]||e[0]-t[0]}function AU(t,e){var n,r,i,a=t.sort(CU).pop();for(kU=[],EU=new Array(t.length),xU=new tU,MU=new tU;;)if(i=lU,a&&(!i||a[1]NU||Math.abs(i[0][1]-i[1][1])>NU)||delete kU[a]}(o,u,c,l),function(t,e,n,r){var i,a,o,u,c,l,s,f,h,d,p,g,v=EU.length,y=!0;for(i=0;iNU||Math.abs(g-h)>NU)&&(c.splice(u,0,kU.push(nU(o,d,Math.abs(p-t)NU?[t,Math.abs(f-t)NU?[Math.abs(h-r)NU?[n,Math.abs(f-n)NU?[Math.abs(h-e)=u)return null;var c=t-i.site[0],l=e-i.site[1],s=c*c+l*l;do{i=a.cells[r=o],o=null,i.halfedges.forEach((function(n){var r=a.edges[n],u=r.left;if(u!==i.site&&u||(u=r.right)){var c=t-u[0],l=e-u[1],f=c*c+l*l;f=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),o=-1,u=a.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++o0)for(var n,r,i=new Array(n),a=0;a=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),FU.hasOwnProperty(e)?{space:FU[e],local:t}:t}function jU(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===zU&&e.documentElement.namespaceURI===zU?e.createElement(t):e.createElementNS(n,t)}}function BU(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function HU(t){var e=qU(t);return(e.local?BU:jU)(e)}function YU(){}function VU(t){return null==t?YU:function(){return this.querySelector(t)}}function WU(){return[]}function XU(t){return null==t?WU:function(){return this.querySelectorAll(t)}}var $U=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var GU=document.documentElement;if(!GU.matches){var QU=GU.webkitMatchesSelector||GU.msMatchesSelector||GU.mozMatchesSelector||GU.oMatchesSelector;$U=function(t){return function(){return QU.call(this,t)}}}}const ZU=$U;function KU(t){return new Array(t.length)}function JU(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}JU.prototype={constructor:JU,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var tz="$";function ez(t,e,n,r,i,a){for(var o,u=0,c=e.length,l=a.length;ue?1:t>=e?0:NaN}function iz(t){return function(){this.removeAttribute(t)}}function az(t){return function(){this.removeAttributeNS(t.space,t.local)}}function oz(t,e){return function(){this.setAttribute(t,e)}}function uz(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function cz(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function lz(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function sz(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function fz(t){return function(){this.style.removeProperty(t)}}function hz(t,e,n){return function(){this.style.setProperty(t,e,n)}}function dz(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function pz(t,e){return t.style.getPropertyValue(e)||sz(t).getComputedStyle(t,null).getPropertyValue(e)}function gz(t){return function(){delete this[t]}}function vz(t,e){return function(){this[t]=e}}function yz(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}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,e){for(var n=_z(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var zz={},Fz=null;function qz(t,e,n){return t=jz(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function jz(t,e,n){return function(r){var i=Fz;Fz=r;try{t.call(this,this.__data__,e,n)}finally{Fz=i}}}function Bz(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r=w&&(w=b+1);!(_=y[w])&&++w=0;)(r=i[a])&&(o&&o!==r.nextSibling&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=rz);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a1?this.each((null==e?fz:"function"==typeof e?dz:hz)(t,e,null==n?"":n)):pz(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?gz:"function"==typeof e?yz:vz)(t,e)):this.node()[t]},classed:function(t,e){var n=mz(t+"");if(arguments.length<2){for(var r=_z(this.node()),i=-1,a=n.length;++i=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),o=a.length;if(!(arguments.length<2)){for(u=e?Hz:Bz,null==n&&(n=!1),r=0;r>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):(e=pF.exec(t))?EF(parseInt(e[1],16)):(e=gF.exec(t))?new SF(e[1],e[2],e[3],1):(e=vF.exec(t))?new SF(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=yF.exec(t))?MF(e[1],e[2],e[3],e[4]):(e=mF.exec(t))?MF(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=_F.exec(t))?CF(e[1],e[2]/100,e[3]/100,1):(e=bF.exec(t))?CF(e[1],e[2]/100,e[3]/100,e[4]):wF.hasOwnProperty(t)?EF(wF[t]):"transparent"===t?new SF(NaN,NaN,NaN,0):null}function EF(t){return new SF(t>>16&255,t>>8&255,255&t,1)}function MF(t,e,n,r){return r<=0&&(t=e=n=NaN),new SF(t,e,n,r)}function kF(t){return t instanceof uF||(t=xF(t)),t?new SF((t=t.rgb()).r,t.g,t.b,t.opacity):new SF}function NF(t,e,n,r){return 1===arguments.length?kF(t):new SF(t,e,n,null==r?1:r)}function SF(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function TF(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function CF(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new PF(t,e,n,r)}function AF(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof PF)return new PF(t.h,t.s,t.l,t.opacity);if(t instanceof uF||(t=xF(t)),!t)return new PF;if(t instanceof PF)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,u=a-i,c=(a+i)/2;return u?(o=e===a?(n-r)/u+6*(n0&&c<1?0:o,new PF(o,u,c,t.opacity)}(t):new PF(t,e,n,null==r?1:r)}function PF(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function RF(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}aF(uF,xF,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),aF(SF,NF,oF(uF,{brighter:function(t){return t=null==t?lF:Math.pow(lF,t),new SF(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?cF:Math.pow(cF,t),new SF(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"#"+TF(this.r)+TF(this.g)+TF(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+")")}})),aF(PF,AF,oF(uF,{brighter:function(t){return t=null==t?lF:Math.pow(lF,t),new PF(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?cF:Math.pow(cF,t),new PF(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new SF(RF(t>=240?t-240:t+120,i,r),RF(t,i,r),RF(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,OF=180/Math.PI,DF=.96422,LF=1,UF=.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 GF){if(isNaN(t.h))return new HF(t.l,0,0,t.opacity);var e=t.h*IF;return new HF(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}t instanceof SF||(t=kF(t));var n,r,i=XF(t.r),a=XF(t.g),o=XF(t.b),u=YF((.2225045*i+.7168786*a+.0606169*o)/LF);return i===a&&a===o?n=r=u:(n=YF((.4360747*i+.3850649*a+.1430804*o)/DF),r=YF((.0139322*i+.0971045*a+.7141733*o)/UF)),new HF(116*u-16,500*(n-u),200*(u-r),t.opacity)}function HF(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,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 $F(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof GF)return new GF(t.h,t.c,t.l,t.opacity);if(t instanceof HF||(t=BF(t)),0===t.a&&0===t.b)return new GF(NaN,0,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*OF;return new GF(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}(t):new GF(t,e,n,null==r?1:r)}function GF(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}aF(HF,(function(t,e,n,r){return 1===arguments.length?BF(t):new HF(t,e,n,null==r?1:r)}),oF(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,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return new SF(WF(3.1338561*(e=DF*VF(e))-1.6168667*(t=LF*VF(t))-.4906146*(n=UF*VF(n))),WF(-.9787684*e+1.9161415*t+.033454*n),WF(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),aF(GF,$F,oF(uF,{brighter:function(t){return new GF(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new GF(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,eq=tq*JF,nq=tq*ZF,rq=ZF*KF-JF*QF;function iq(t,e,n,r){return 1===arguments.length?function(t){if(t instanceof aq)return new aq(t.h,t.s,t.l,t.opacity);t instanceof SF||(t=kF(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(rq*r+eq*e-nq*n)/(rq+eq-nq),a=r-i,o=(tq*(n-i)-KF*a)/JF,u=Math.sqrt(o*o+a*a)/(tq*i*(1-i)),c=u?Math.atan2(o,a)*OF-120:NaN;return new aq(c<0?c+360:c,u,i,t.opacity)}(t):new aq(t,e,n,null==r?1:r)}function aq(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function oq(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}function uq(t){return function(){return t}}function cq(t,e){return function(n){return t+n*e}}function lq(t,e){var n=e-t;return n?cq(t,n>180||n<-180?n-360*Math.round(n/360):n):uq(isNaN(t)?e:t)}function sq(t,e){var n=e-t;return n?cq(t,n):uq(isNaN(t)?e:t)}aF(aq,iq,oF(uF,{brighter:function(t){return t=null==t?lF:Math.pow(lF,t),new aq(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?cF:Math.pow(cF,t),new aq(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*IF,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new SF(255*(e+n*(QF*r+ZF*i)),255*(e+n*(KF*r+JF*i)),255*(e+n*(tq*r)),this.opacity)}}));const fq=function t(e){var n=function(t){return 1==(t=+t)?sq:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):uq(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=NF(t)).r,(e=NF(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=sq(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+""}}return r.gamma=t,r}(1);function hq(t){return function(e){var n,r,i=e.length,a=new Array(i),o=new Array(i),u=new Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],a=t[r+1],o=r>0?t[r-1]:2*i-a,u=ra&&(i=e.slice(a,i),u[o]?u[o]+=i:u[++o]=i),(n=n[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,c.push({i:o,x:dq(n,r)})),a=gq.lastIndex;return a180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:dq(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(a.rotate,o.rotate,u,c),function(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:dq(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(a.skewX,o.skewX,u,c),function(t,e,n,r,a,o){if(t!==n||e!==r){var u=a.push(i(a)+"scale(",null,",",null,")");o.push({i:u-4,x:dq(t,n)},{i:u-2,x:dq(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,u,c),a=o=null,function(t){for(var e,n=-1,r=c.length;++n=0&&e._call.call(null,t),e=e._next;--zq}()}finally{zq=0,function(){for(var t,e,n=Lq,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Lq=e);Uq=t,Jq(r)}(),Hq=0}}function Kq(){var t=Vq.now(),e=t-Bq;e>jq&&(Yq-=e,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,e,n){var r=new Gq;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r}Gq.prototype=Qq.prototype={constructor:Gq,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Xq():+n)+(null==e?0:+e),this._next||Uq===this||(Uq?Uq._next=this:Lq=this,Uq=this),this._call=t,this._time=n,Jq()},stop:function(){this._call&&(this._call=null,this._time=1/0,Jq())}};var ej=UU("start","end","interrupt"),nj=[],rj=0,ij=1,aj=2,oj=3,uj=4,cj=5,lj=6;function sj(t,e,n,r,i,a){var o=t.__transition;if(o){if(n in o)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function a(c){var l,s,f,h;if(n.state!==ij)return u();for(l in i)if((h=i[l]).name===n.name){if(h.state===oj)return tj(a);h.state===uj?(h.state=lj,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[l]):+lrj)throw new Error("too late; already scheduled");return n}function hj(t,e){var n=dj(t,e);if(n.state>aj)throw new Error("too late; already started");return n}function dj(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function pj(t,e){var n,r,i,a=t.__transition,o=!0;if(a){for(i in e=null==e?null:e+"",a)(n=a[i]).name===e?(r=n.state>aj&&n.state=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?fj:hj;return function(){var o=a(this,t),u=o.on;u!==r&&(i=(r=u).copy()).on(e,n),o.on=i}}(n,t,e))},attr:function(t,e){var n=qU(t),r="transform"===n?Nq:mj;return this.attrTween(t,"function"==typeof e?(n.local?Mj:Ej)(n,r,yj(this,"attr."+t,e)):null==e?(n.local?bj:_j)(n):(n.local?xj:wj)(n,r,e+""))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=qU(t);return this.tween(n,(r.local?kj:Nj)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?kq:mj;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var a=pz(this,t),o=(this.style.removeProperty(t),pz(this,t));return a===o?null:a===n&&o===r?i:i=e(n=a,r=o)}}(t,r)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof e?function(t,e,n){var r,i,a;return function(){var o=pz(this,t),u=n(this);return null==u&&(this.style.removeProperty(t),u=pz(this,t)),o===u?null:o===r&&u===i?a:a=e(r=o,i=u)}}(t,r,yj(this,"style."+t,e)):function(t,e,n){var r,i;return function(){var a=pz(this,t);return a===n?null:a===r?i:i=e(r=a,n)}}(t,r,e+""),n)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){function r(){var r=this,i=e.apply(r,arguments);return i&&function(e){r.style.setProperty(t,i(e),n)}}return r._value=e,r}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(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 e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=dj(this.node(),n).tween,a=0,o=i.length;ar?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function Jj(){var t,e,n=Xj,r=$j,i=Kj,a=Qj,o=Zj,u=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],l=250,s=Rq,f=[],h=UU("start","zoom","end"),d=500,p=150,g=0;function v(t){t.property("__zoom",Gj).on("wheel.zoom",E).on("mousedown.zoom",M).on("dblclick.zoom",k).filter(o).on("touchstart.zoom",N).on("touchmove.zoom",S).on("touchend.zoom touchcancel.zoom",T).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(t,e){return(e=Math.max(u[0],Math.min(u[1],e)))===t.k?t:new Bj(e,t.x,t.y)}function m(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[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,e,n){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,a=w(t,i),o=r.apply(t,i),u=n||_(o),c=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),l=t.__zoom,f="function"==typeof e?e.apply(t,i):e,h=s(l.invert(u).concat(c/l.k),f.invert(u).concat(c/f.k));return function(t){if(1===t)t=f;else{var e=h(t),n=c/e[2];t=new Bj(n,u[0]-e[0]*n,u[1]-e[1]*n)}a.zoom(null,t)}}))}function w(t,e){for(var n,r=0,i=f.length;rg}t.zoom("mouse",i(m(t.that.__zoom,t.mouse[0]=nF(t.that),t.mouse[1]),t.extent,c))}),!0).on("mouseup.zoom",(function(){r.on("mousemove.zoom mouseup.zoom",null),function(t,e){var n=t.document.documentElement,r=Zz(t).on("dragstart.drag",null);e&&(r.on("click.drag",iF,!0),setTimeout((function(){r.on("click.drag",null)}),0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}(Fz.view,t.moved),Wj(),t.end()}),!0),a=nF(this),o=Fz.clientX,u=Fz.clientY;!function(t){var e=t.document.documentElement,n=Zz(t).on("dragstart.drag",iF,!0);"onselectstart"in e?n.on("selectstart.drag",iF,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}(Fz.view),Vj(),t.mouse=[a,this.__zoom.invert(a)],pj(this),t.start()}}function k(){if(n.apply(this,arguments)){var t=this.__zoom,e=nF(this),a=t.invert(e),o=t.k*(Fz.shiftKey?.5:2),u=i(m(y(t,o),e,a),r.apply(this,arguments),c);Wj(),l>0?Zz(this).transition().duration(l).call(b,u,e):Zz(this).call(v.transform,u)}}function N(){if(n.apply(this,arguments)){var e,r,i,a,o=w(this,arguments),u=Fz.changedTouches,c=u.length;for(Vj(),r=0;r{t.exports={graphlib:n(574),layout:n(8123),debug:n(7570),util:{time:n(1138).time,notime:n(1138).notime},version:n(8177)}},2188:(t,e,n)=>{"use strict";var r=n(8436),i=n(4079);t.exports={run:function(t){var e="greedy"===t.graph().acyclicer?i(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],n={},i={};return r.forEach(t.nodes(),(function a(o){r.has(i,o)||(i[o]=!0,n[o]=!0,r.forEach(t.outEdges(o),(function(t){r.has(n,t.w)?e.push(t):a(t.w)})),delete n[o])})),e}(t);r.forEach(e,(function(e){var n=t.edge(e);t.removeEdge(e),n.forwardName=e.name,n.reversed=!0,t.setEdge(e.w,e.v,n,r.uniqueId("rev"))}))},undo:function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.reversed){t.removeEdge(e);var r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}}))}}},1133:(t,e,n)=>{var r=n(8436),i=n(1138);function a(t,e,n,r,a,o){var u={width:0,height:0,rank:o,borderType:e},c=a[e][o-1],l=i.addDummyNode(t,"border",u,n);a[e][o]=l,t.setParent(l,r),c&&t.setEdge(c,l,{weight:1})}t.exports=function(t){r.forEach(t.children(),(function e(n){var i=t.children(n),o=t.node(n);if(i.length&&r.forEach(i,e),r.has(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(var u=o.minRank,c=o.maxRank+1;u{"use strict";var r=n(8436);function i(t){r.forEach(t.nodes(),(function(e){a(t.node(e))})),r.forEach(t.edges(),(function(e){a(t.edge(e))}))}function a(t){var e=t.width;t.width=t.height,t.height=e}function o(t){t.y=-t.y}function u(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||i(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){r.forEach(t.nodes(),(function(e){o(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,o),r.has(n,"y")&&o(n)}))}(t),"lr"!==e&&"rl"!==e||(function(t){r.forEach(t.nodes(),(function(e){u(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.forEach(n.points,u),r.has(n,"x")&&u(n)}))}(t),i(t))}}},7822:t=>{function e(){var t={};t._next=t._prev=t,this._sentinel=t}function n(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function r(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=e,e.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return n(e),e},e.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&n(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},e.prototype.toString=function(){for(var t=[],e=this._sentinel,n=e._prev;n!==e;)t.push(JSON.stringify(n,r)),n=n._prev;return"["+t.join(", ")+"]"}},7570:(t,e,n)=>{var r=n(8436),i=n(1138),a=n(574).Graph;t.exports={debugOrdering:function(t){var e=i.buildLayerMatrix(t),n=new a({compound:!0,multigraph:!0}).setGraph({});return r.forEach(t.nodes(),(function(e){n.setNode(e,{label:e}),n.setParent(e,"layer"+t.node(e).rank)})),r.forEach(t.edges(),(function(t){n.setEdge(t.v,t.w,{},t.name)})),r.forEach(e,(function(t,e){var i="layer"+e;n.setNode(i,{rank:"same"}),r.reduce(t,(function(t,e){return n.setEdge(t,e,{style:"invis"}),e}))})),n}}},574:(t,e,n)=>{var r;try{r=n(8282)}catch(t){}r||(r=window.graphlib),t.exports=r},4079:(t,e,n)=>{var r=n(8436),i=n(574).Graph,a=n(7822);t.exports=function(t,e){if(t.nodeCount()<=1)return[];var n=function(t,e){var n=new i,o=0,u=0;r.forEach(t.nodes(),(function(t){n.setNode(t,{v:t,in:0,out:0})})),r.forEach(t.edges(),(function(t){var r=n.edge(t.v,t.w)||0,i=e(t),a=r+i;n.setEdge(t.v,t.w,a),u=Math.max(u,n.node(t.v).out+=i),o=Math.max(o,n.node(t.w).in+=i)}));var l=r.range(u+o+3).map((function(){return new a})),s=o+1;return r.forEach(n.nodes(),(function(t){c(l,s,n.node(t))})),{graph:n,buckets:l,zeroIdx:s}}(t,e||o),l=function(t,e,n){for(var r,i=[],a=e[e.length-1],o=e[0];t.nodeCount();){for(;r=o.dequeue();)u(t,e,n,r);for(;r=a.dequeue();)u(t,e,n,r);if(t.nodeCount())for(var c=e.length-2;c>0;--c)if(r=e[c].dequeue()){i=i.concat(u(t,e,n,r,!0));break}}return i}(n.graph,n.buckets,n.zeroIdx);return r.flatten(r.map(l,(function(e){return t.outEdges(e.v,e.w)})),!0)};var o=r.constant(1);function u(t,e,n,i,a){var o=a?[]:void 0;return r.forEach(t.inEdges(i.v),(function(r){var i=t.edge(r),u=t.node(r.v);a&&o.push({v:r.v,w:r.w}),u.out-=i,c(e,n,u)})),r.forEach(t.outEdges(i.v),(function(r){var i=t.edge(r),a=r.w,o=t.node(a);o.in-=i,c(e,n,o)})),t.removeNode(i.v),o}function c(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}},8123:(t,e,n)=>{"use strict";var r=n(8436),i=n(2188),a=n(5995),o=n(8093),u=n(1138).normalizeRanks,c=n(4219),l=n(1138).removeEmptyRanks,s=n(2981),f=n(1133),h=n(3258),d=n(3408),p=n(7873),g=n(1138),v=n(574).Graph;t.exports=function(t,e){var n=e&&e.debugTiming?g.time:g.notime;n("layout",(function(){var e=n("  buildLayoutGraph",(function(){return function(t){var e=new v({multigraph:!0,compound:!0}),n=N(t.graph());return e.setGraph(r.merge({},m,k(n,y),r.pick(n,_))),r.forEach(t.nodes(),(function(n){var i=N(t.node(n));e.setNode(n,r.defaults(k(i,b),w)),e.setParent(n,t.parent(n))})),r.forEach(t.edges(),(function(n){var i=N(t.edge(n));e.setEdge(n,r.merge({},E,k(i,x),r.pick(i,M)))})),e}(t)}));n("  runLayout",(function(){!function(t,e){e("    makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,r.forEach(t.edges(),(function(n){var r=t.edge(n);r.minlen*=2,"c"!==r.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?r.width+=r.labeloffset:r.height+=r.labeloffset)}))}(t)})),e("    removeSelfEdges",(function(){!function(t){r.forEach(t.edges(),(function(e){if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e("    acyclic",(function(){i.run(t)})),e("    nestingGraph.run",(function(){s.run(t)})),e("    rank",(function(){o(g.asNonCompoundGraph(t))})),e("    injectEdgeLabelProxies",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(n.width&&n.height){var r=t.node(e.v),i={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e};g.addDummyNode(t,"edge-proxy",i,"_ep")}}))}(t)})),e("    removeEmptyRanks",(function(){l(t)})),e("    nestingGraph.cleanup",(function(){s.cleanup(t)})),e("    normalizeRanks",(function(){u(t)})),e("    assignRankMinMax",(function(){!function(t){var e=0;r.forEach(t.nodes(),(function(n){var i=t.node(n);i.borderTop&&(i.minRank=t.node(i.borderTop).rank,i.maxRank=t.node(i.borderBottom).rank,e=r.max(e,i.maxRank))})),t.graph().maxRank=e}(t)})),e("    removeEdgeLabelProxies",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);"edge-proxy"===n.dummy&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))}))}(t)})),e("    normalize.run",(function(){a.run(t)})),e("    parentDummyChains",(function(){c(t)})),e("    addBorderSegments",(function(){f(t)})),e("    order",(function(){d(t)})),e("    insertSelfEdges",(function(){!function(t){var e=g.buildLayerMatrix(t);r.forEach(e,(function(e){var n=0;r.forEach(e,(function(e,i){var a=t.node(e);a.order=i+n,r.forEach(a.selfEdges,(function(e){g.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:a.rank,order:i+ ++n,e:e.e,label:e.label},"_se")})),delete a.selfEdges}))}))}(t)})),e("    adjustCoordinateSystem",(function(){h.adjust(t)})),e("    position",(function(){p(t)})),e("    positionSelfEdges",(function(){!function(t){r.forEach(t.nodes(),(function(e){var n=t.node(e);if("selfedge"===n.dummy){var r=t.node(n.e.v),i=r.x+r.width/2,a=r.y,o=n.x-i,u=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*o/3,y:a-u},{x:i+5*o/6,y:a-u},{x:i+o,y:a},{x:i+5*o/6,y:a+u},{x:i+2*o/3,y:a+u}],n.label.x=n.x,n.label.y=n.y}}))}(t)})),e("    removeBorderNodes",(function(){!function(t){r.forEach(t.nodes(),(function(e){if(t.children(e).length){var n=t.node(e),i=t.node(n.borderTop),a=t.node(n.borderBottom),o=t.node(r.last(n.borderLeft)),u=t.node(r.last(n.borderRight));n.width=Math.abs(u.x-o.x),n.height=Math.abs(a.y-i.y),n.x=o.x+n.width/2,n.y=i.y+n.height/2}})),r.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e("    normalize.undo",(function(){a.undo(t)})),e("    fixupEdgeLabelCoords",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);if(r.has(n,"x"))switch("l"!==n.labelpos&&"r"!==n.labelpos||(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset}}))}(t)})),e("    undoCoordinateSystem",(function(){h.undo(t)})),e("    translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,n=0,i=Number.POSITIVE_INFINITY,a=0,o=t.graph(),u=o.marginx||0,c=o.marginy||0;function l(t){var r=t.x,o=t.y,u=t.width,c=t.height;e=Math.min(e,r-u/2),n=Math.max(n,r+u/2),i=Math.min(i,o-c/2),a=Math.max(a,o+c/2)}r.forEach(t.nodes(),(function(e){l(t.node(e))})),r.forEach(t.edges(),(function(e){var n=t.edge(e);r.has(n,"x")&&l(n)})),e-=u,i-=c,r.forEach(t.nodes(),(function(n){var r=t.node(n);r.x-=e,r.y-=i})),r.forEach(t.edges(),(function(n){var a=t.edge(n);r.forEach(a.points,(function(t){t.x-=e,t.y-=i})),r.has(a,"x")&&(a.x-=e),r.has(a,"y")&&(a.y-=i)})),o.width=n-e+u,o.height=a-i+c}(t)})),e("    assignNodeIntersects",(function(){!function(t){r.forEach(t.edges(),(function(e){var n,r,i=t.edge(e),a=t.node(e.v),o=t.node(e.w);i.points?(n=i.points[0],r=i.points[i.points.length-1]):(i.points=[],n=o,r=a),i.points.unshift(g.intersectRect(a,n)),i.points.push(g.intersectRect(o,r))}))}(t)})),e("    reversePoints",(function(){!function(t){r.forEach(t.edges(),(function(e){var n=t.edge(e);n.reversed&&n.points.reverse()}))}(t)})),e("    acyclic.undo",(function(){i.undo(t)}))}(e,n)})),n("  updateInputGraph",(function(){!function(t,e){r.forEach(t.nodes(),(function(n){var r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,e.children(n).length&&(r.width=i.width,r.height=i.height))})),r.forEach(t.edges(),(function(n){var i=t.edge(n),a=e.edge(n);i.points=a.points,r.has(a,"x")&&(i.x=a.x,i.y=a.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};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"],E={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},M=["labelpos"];function k(t,e){return r.mapValues(r.pick(t,e),Number)}function N(t){var e={};return r.forEach(t,(function(t,n){e[n.toLowerCase()]=t})),e}},8436:(t,e,n)=>{var r;try{r=n(6486)}catch(t){}r||(r=window._),t.exports=r},2981:(t,e,n)=>{var r=n(8436),i=n(1138);function a(t,e,n,o,u,c,l){var s=t.children(l);if(s.length){var f=i.addBorderNode(t,"_bt"),h=i.addBorderNode(t,"_bb"),d=t.node(l);t.setParent(f,l),d.borderTop=f,t.setParent(h,l),d.borderBottom=h,r.forEach(s,(function(r){a(t,e,n,o,u,c,r);var i=t.node(r),s=i.borderTop?i.borderTop:r,d=i.borderBottom?i.borderBottom:r,p=i.borderTop?o:2*o,g=s!==d?1:u-c[l]+1;t.setEdge(f,s,{weight:p,minlen:g,nestingEdge:!0}),t.setEdge(d,h,{weight:p,minlen:g,nestingEdge:!0})})),t.parent(l)||t.setEdge(e,f,{weight:0,minlen:u+c[l]})}else l!==e&&t.setEdge(e,l,{weight:0,minlen:n})}t.exports={run:function(t){var e=i.addDummyNode(t,"root",{},"_root"),n=function(t){var e={};function n(i,a){var o=t.children(i);o&&o.length&&r.forEach(o,(function(t){n(t,a+1)})),e[i]=a}return r.forEach(t.children(),(function(t){n(t,1)})),e}(t),o=r.max(r.values(n))-1,u=2*o+1;t.graph().nestingRoot=e,r.forEach(t.edges(),(function(e){t.edge(e).minlen*=u}));var c=function(t){return r.reduce(t.edges(),(function(e,n){return e+t.edge(n).weight}),0)}(t)+1;r.forEach(t.children(),(function(r){a(t,e,u,c,o,n,r)})),t.graph().nodeRankFactor=u},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,r.forEach(t.edges(),(function(e){t.edge(e).nestingEdge&&t.removeEdge(e)}))}}},5995:(t,e,n)=>{"use strict";var r=n(8436),i=n(1138);t.exports={run:function(t){t.graph().dummyChains=[],r.forEach(t.edges(),(function(e){!function(t,e){var n,r,a,o=e.v,u=t.node(o).rank,c=e.w,l=t.node(c).rank,s=e.name,f=t.edge(e),h=f.labelRank;if(l!==u+1){for(t.removeEdge(e),a=0,++u;u{var r=n(8436);t.exports=function(t,e,n){var i,a={};r.forEach(n,(function(n){for(var r,o,u=t.parent(n);u;){if((r=t.parent(u))?(o=a[r],a[r]=u):(o=i,i=u),o&&o!==u)return void e.setEdge(o,u);u=r}}))}},5439:(t,e,n)=>{var r=n(8436);t.exports=function(t,e){return r.map(e,(function(e){var n=t.inEdges(e);if(n.length){var i=r.reduce(n,(function(e,n){var r=t.edge(n),i=t.node(n.v);return{sum:e.sum+r.weight*i.order,weight:e.weight+r.weight}}),{sum:0,weight:0});return{v:e,barycenter:i.sum/i.weight,weight:i.weight}}return{v:e}}))}},3128:(t,e,n)=>{var r=n(8436),i=n(574).Graph;t.exports=function(t,e,n){var a=function(t){for(var e;t.hasNode(e=r.uniqueId("_root")););return e}(t),o=new i({compound:!0}).setGraph({root:a}).setDefaultNodeLabel((function(e){return t.node(e)}));return r.forEach(t.nodes(),(function(i){var u=t.node(i),c=t.parent(i);(u.rank===e||u.minRank<=e&&e<=u.maxRank)&&(o.setNode(i),o.setParent(i,c||a),r.forEach(t[n](i),(function(e){var n=e.v===i?e.w:e.v,a=o.edge(n,i),u=r.isUndefined(a)?0:a.weight;o.setEdge(n,i,{weight:t.edge(e).weight+u})})),r.has(u,"minRank")&&o.setNode(i,{borderLeft:u.borderLeft[e],borderRight:u.borderRight[e]}))})),o}},6630:(t,e,n)=>{"use strict";var r=n(8436);function i(t,e,n){for(var i=r.zipObject(n,r.map(n,(function(t,e){return e}))),a=r.flatten(r.map(e,(function(e){return r.chain(t.outEdges(e)).map((function(e){return{pos:i[e.w],weight:t.edge(e).weight}})).sortBy("pos").value()})),!0),o=1;o0;)e%2&&(n+=c[e+1]),c[e=e-1>>1]+=t.weight;l+=t.weight*n}))),l}t.exports=function(t,e){for(var n=0,r=1;r{"use strict";var r=n(8436),i=n(2588),a=n(6630),o=n(1026),u=n(3128),c=n(5093),l=n(574).Graph,s=n(1138);function f(t,e,n){return r.map(e,(function(e){return u(t,e,n)}))}function h(t,e){var n=new l;r.forEach(t,(function(t){var i=t.graph().root,a=o(t,i,n,e);r.forEach(a.vs,(function(e,n){t.node(e).order=n})),c(t,n,a.vs)}))}function d(t,e){r.forEach(e,(function(e){r.forEach(e,(function(e,n){t.node(e).order=n}))}))}t.exports=function(t){var e=s.maxRank(t),n=f(t,r.range(1,e+1),"inEdges"),o=f(t,r.range(e-1,-1,-1),"outEdges"),u=i(t);d(t,u);for(var c,l=Number.POSITIVE_INFINITY,p=0,g=0;g<4;++p,++g){h(p%2?n:o,p%4>=2),u=s.buildLayerMatrix(t);var v=a(t,u);v{"use strict";var r=n(8436);t.exports=function(t){var e={},n=r.filter(t.nodes(),(function(e){return!t.children(e).length})),i=r.max(r.map(n,(function(e){return t.node(e).rank}))),a=r.map(r.range(i+1),(function(){return[]})),o=r.sortBy(n,(function(e){return t.node(e).rank}));return r.forEach(o,(function n(i){if(!r.has(e,i)){e[i]=!0;var o=t.node(i);a[o.rank].push(i),r.forEach(t.successors(i),n)}})),a}},3678:(t,e,n)=>{"use strict";var r=n(8436);t.exports=function(t,e){var n={};return r.forEach(t,(function(t,e){var i=n[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};r.isUndefined(t.barycenter)||(i.barycenter=t.barycenter,i.weight=t.weight)})),r.forEach(e.edges(),(function(t){var e=n[t.v],i=n[t.w];r.isUndefined(e)||r.isUndefined(i)||(i.indegree++,e.out.push(n[t.w]))})),function(t){var e=[];function n(t){return function(e){var n,i,a,o;e.merged||(r.isUndefined(e.barycenter)||r.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&(i=e,a=0,o=0,(n=t).weight&&(a+=n.barycenter*n.weight,o+=n.weight),i.weight&&(a+=i.barycenter*i.weight,o+=i.weight),n.vs=i.vs.concat(n.vs),n.barycenter=a/o,n.weight=o,n.i=Math.min(i.i,n.i),i.merged=!0)}}function i(e){return function(n){n.in.push(e),0==--n.indegree&&t.push(n)}}for(;t.length;){var a=t.pop();e.push(a),r.forEach(a.in.reverse(),n(a)),r.forEach(a.out,i(a))}return r.chain(e).filter((function(t){return!t.merged})).map((function(t){return r.pick(t,["vs","i","barycenter","weight"])})).value()}(r.filter(n,(function(t){return!t.indegree})))}},1026:(t,e,n)=>{var r=n(8436),i=n(5439),a=n(3678),o=n(7304);t.exports=function t(e,n,u,c){var l=e.children(n),s=e.node(n),f=s?s.borderLeft:void 0,h=s?s.borderRight:void 0,d={};f&&(l=r.filter(l,(function(t){return t!==f&&t!==h})));var p=i(e,l);r.forEach(p,(function(n){if(e.children(n.v).length){var i=t(e,n.v,u,c);d[n.v]=i,r.has(i,"barycenter")&&(a=n,o=i,r.isUndefined(a.barycenter)?(a.barycenter=o.barycenter,a.weight=o.weight):(a.barycenter=(a.barycenter*a.weight+o.barycenter*o.weight)/(a.weight+o.weight),a.weight+=o.weight))}var a,o}));var g=a(p,u);!function(t,e){r.forEach(t,(function(t){t.vs=r.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}(g,d);var v=o(g,c);if(f&&(v.vs=r.flatten([f,v.vs,h],!0),e.predecessors(f).length)){var y=e.node(e.predecessors(f)[0]),m=e.node(e.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,e,n)=>{var r=n(8436),i=n(1138);function a(t,e,n){for(var i;e.length&&(i=r.last(e)).i<=n;)e.pop(),t.push(i.vs),n++;return n}t.exports=function(t,e){var n,o=i.partition(t,(function(t){return r.has(t,"barycenter")})),u=o.lhs,c=r.sortBy(o.rhs,(function(t){return-t.i})),l=[],s=0,f=0,h=0;u.sort((n=!!e,function(t,e){return t.barycentere.barycenter?1:n?e.i-t.i:t.i-e.i})),h=a(l,c,h),r.forEach(u,(function(t){h+=t.vs.length,l.push(t.vs),s+=t.barycenter*t.weight,f+=t.weight,h=a(l,c,h)}));var d={vs:r.flatten(l,!0)};return f&&(d.barycenter=s/f,d.weight=f),d}},4219:(t,e,n)=>{var r=n(8436);t.exports=function(t){var e=function(t){var e={},n=0;return r.forEach(t.children(),(function i(a){var o=n;r.forEach(t.children(a),i),e[a]={low:o,lim:n++}})),e}(t);r.forEach(t.graph().dummyChains,(function(n){for(var r=t.node(n),i=r.edgeObj,a=function(t,e,n,r){var i,a,o=[],u=[],c=Math.min(e[n].low,e[r].low),l=Math.max(e[n].lim,e[r].lim);i=n;do{i=t.parent(i),o.push(i)}while(i&&(e[i].low>c||l>e[i].lim));for(a=i,i=r;(i=t.parent(i))!==a;)u.push(i);return{path:o.concat(u.reverse()),lca:a}}(t,e,i.v,i.w),o=a.path,u=a.lca,c=0,l=o[c],s=!0;n!==i.w;){if(r=t.node(n),s){for(;(l=o[c])!==u&&t.node(l).maxRank{"use strict";var r=n(8436),i=n(574).Graph,a=n(1138);function o(t,e){var n={};return r.reduce(e,(function(e,i){var a=0,o=0,u=e.length,l=r.last(i);return r.forEach(i,(function(e,s){var f=function(t,e){if(t.node(e).dummy)return r.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),h=f?t.node(f).order:u;(f||e===l)&&(r.forEach(i.slice(o,s+1),(function(e){r.forEach(t.predecessors(e),(function(r){var i=t.node(r),o=i.order;!(ou)&&c(n,e,l)}))}))}return r.reduce(e,(function(e,n){var a,o=-1,u=0;return r.forEach(n,(function(r,c){if("border"===t.node(r).dummy){var l=t.predecessors(r);l.length&&(a=t.node(l[0]).order,i(n,u,c,o,a),u=c,o=a)}i(n,u,n.length,a,e.length)})),n})),n}function c(t,e,n){if(e>n){var r=e;e=n,n=r}var i=t[e];i||(t[e]=i={}),i[n]=!0}function l(t,e,n){if(e>n){var i=e;e=n,n=i}return r.has(t[e],n)}function s(t,e,n,i){var a={},o={},u={};return r.forEach(e,(function(t){r.forEach(t,(function(t,e){a[t]=t,o[t]=t,u[t]=e}))})),r.forEach(e,(function(t){var e=-1;r.forEach(t,(function(t){var c=i(t);if(c.length){c=r.sortBy(c,(function(t){return u[t]}));for(var s=(c.length-1)/2,f=Math.floor(s),h=Math.ceil(s);f<=h;++f){var d=c[f];o[t]===t&&e{"use strict";var r=n(8436),i=n(1138),a=n(3573).positionX;t.exports=function(t){(function(t){var e=i.buildLayerMatrix(t),n=t.graph().ranksep,a=0;r.forEach(e,(function(e){var i=r.max(r.map(e,(function(e){return t.node(e).height})));r.forEach(e,(function(e){t.node(e).y=a+i/2})),a+=i+n}))})(t=i.asNonCompoundGraph(t)),r.forEach(a(t),(function(e,n){t.node(n).x=e}))}},300:(t,e,n)=>{"use strict";var r=n(8436),i=n(574).Graph,a=n(6681).slack;function o(t,e){return r.forEach(t.nodes(),(function n(i){r.forEach(e.nodeEdges(i),(function(r){var o=r.v,u=i===o?r.w:o;t.hasNode(u)||a(e,r)||(t.setNode(u,{}),t.setEdge(i,u,{}),n(u))}))})),t.nodeCount()}function u(t,e){return r.minBy(e.edges(),(function(n){if(t.hasNode(n.v)!==t.hasNode(n.w))return a(e,n)}))}function c(t,e,n){r.forEach(t.nodes(),(function(t){e.node(t).rank+=n}))}t.exports=function(t){var e,n,r=new i({directed:!1}),l=t.nodes()[0],s=t.nodeCount();for(r.setNode(l,{});o(r,t){"use strict";var r=n(6681).longestPath,i=n(300),a=n(2472);t.exports=function(t){switch(t.graph().ranker){case"network-simplex":default:!function(t){a(t)}(t);break;case"tight-tree":!function(t){r(t),i(t)}(t);break;case"longest-path":o(t)}};var o=r},2472:(t,e,n)=>{"use strict";var r=n(8436),i=n(300),a=n(6681).slack,o=n(6681).longestPath,u=n(574).alg.preorder,c=n(574).alg.postorder,l=n(1138).simplify;function s(t){t=l(t),o(t);var e,n=i(t);for(d(n),f(n,t);e=g(n);)y(n,t,e,v(n,t,e))}function f(t,e){var n=c(t,t.nodes());n=n.slice(0,n.length-1),r.forEach(n,(function(n){!function(t,e,n){var r=t.node(n).parent;t.edge(n,r).cutvalue=h(t,e,n)}(t,e,n)}))}function h(t,e,n){var i=t.node(n).parent,a=!0,o=e.edge(n,i),u=0;return o||(a=!1,o=e.edge(i,n)),u=o.weight,r.forEach(e.nodeEdges(n),(function(r){var o,c,l=r.v===n,s=l?r.w:r.v;if(s!==i){var f=l===a,h=e.edge(r).weight;if(u+=f?h:-h,o=n,c=s,t.hasEdge(o,c)){var d=t.edge(n,s).cutvalue;u+=f?-d:d}}})),u}function d(t,e){arguments.length<2&&(e=t.nodes()[0]),p(t,{},1,e)}function p(t,e,n,i,a){var o=n,u=t.node(i);return e[i]=!0,r.forEach(t.neighbors(i),(function(a){r.has(e,a)||(n=p(t,e,n,a,i))})),u.low=o,u.lim=n++,a?u.parent=a:delete u.parent,n}function g(t){return r.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function v(t,e,n){var i=n.v,o=n.w;e.hasEdge(i,o)||(i=n.w,o=n.v);var u=t.node(i),c=t.node(o),l=u,s=!1;u.lim>c.lim&&(l=c,s=!0);var f=r.filter(e.edges(),(function(e){return s===m(0,t.node(e.v),l)&&s!==m(0,t.node(e.w),l)}));return r.minBy(f,(function(t){return a(e,t)}))}function y(t,e,n,i){var a=n.v,o=n.w;t.removeEdge(a,o),t.setEdge(i.v,i.w,{}),d(t),f(t,e),function(t,e){var n=r.find(t.nodes(),(function(t){return!e.node(t).parent})),i=u(t,n);i=i.slice(1),r.forEach(i,(function(n){var r=t.node(n).parent,i=e.edge(n,r),a=!1;i||(i=e.edge(r,n),a=!0),e.node(n).rank=e.node(r).rank+(a?i.minlen:-i.minlen)}))}(t,e)}function m(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}t.exports=s,s.initLowLimValues=d,s.initCutValues=f,s.calcCutValue=h,s.leaveEdge=g,s.enterEdge=v,s.exchangeEdges=y},6681:(t,e,n)=>{"use strict";var r=n(8436);t.exports={longestPath:function(t){var e={};r.forEach(t.sources(),(function n(i){var a=t.node(i);if(r.has(e,i))return a.rank;e[i]=!0;var o=r.minBy(r.map(t.outEdges(i),(function(e){return n(e.w)-t.edge(e).minlen})));return o!==Number.POSITIVE_INFINITY&&null!=o||(o=0),a.rank=o}))},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},1138:(t,e,n)=>{"use strict";var r=n(8436),i=n(574).Graph;function a(t,e,n,i){var a;do{a=r.uniqueId(i)}while(t.hasNode(a));return n.dummy=e,t.setNode(a,n),a}function o(t){return r.max(r.map(t.nodes(),(function(e){var n=t.node(e).rank;if(!r.isUndefined(n))return n})))}t.exports={addDummyNode:a,simplify:function(t){var e=(new i).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){var r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})})),e},asNonCompoundGraph:function(t){var e=new i({multigraph:t.isMultigraph()}).setGraph(t.graph());return r.forEach(t.nodes(),(function(n){t.children(n).length||e.setNode(n,t.node(n))})),r.forEach(t.edges(),(function(n){e.setEdge(n,t.edge(n))})),e},successorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.outEdges(e),(function(e){n[e.w]=(n[e.w]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=r.map(t.nodes(),(function(e){var n={};return r.forEach(t.inEdges(e),(function(e){n[e.v]=(n[e.v]||0)+t.edge(e).weight})),n}));return r.zipObject(t.nodes(),e)},intersectRect:function(t,e){var n,r,i=t.x,a=t.y,o=e.x-i,u=e.y-a,c=t.width/2,l=t.height/2;if(!o&&!u)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(u)*c>Math.abs(o)*l?(u<0&&(l=-l),n=l*o/u,r=l):(o<0&&(c=-c),n=c,r=c*u/o),{x:i+n,y:a+r}},buildLayerMatrix:function(t){var e=r.map(r.range(o(t)+1),(function(){return[]}));return r.forEach(t.nodes(),(function(n){var i=t.node(n),a=i.rank;r.isUndefined(a)||(e[a][i.order]=n)})),e},normalizeRanks:function(t){var e=r.minBy(r.map(t.nodes(),(function(e){return t.node(e).rank})));r.forEach(t.nodes(),(function(n){var i=t.node(n);r.has(i,"rank")&&(i.rank-=e)}))},removeEmptyRanks:function(t){var e=r.minBy(r.map(t.nodes(),(function(e){return t.node(e).rank}))),n=[];r.forEach(t.nodes(),(function(r){var i=t.node(r).rank-e;n[i]||(n[i]=[]),n[i].push(r)}));var i=0,a=t.graph().nodeRankFactor;r.forEach(n,(function(e,n){r.isUndefined(e)&&n%a!=0?--i:i&&r.forEach(e,(function(e){t.node(e).rank+=i}))}))},addBorderNode:function(t,e,n,r){var i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),a(t,"border",i,e)},maxRank:o,partition:function(t,e){var n={lhs:[],rhs:[]};return r.forEach(t,(function(t){e(t)?n.lhs.push(t):n.rhs.push(t)})),n},time:function(t,e){var n=r.now();try{return e()}finally{console.log(t+" time: "+(r.now()-n)+"ms")}},notime:function(t,e){return e()}}},8177:t=>{t.exports="0.8.2"},6508:t=>{"use strict";var e=!("undefined"==typeof window||!window.document||!window.document.createElement),n={canUseDOM:e,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:e&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:e&&!!window.screen,isInWorker:!e};t.exports=n},7476:(t,e,n)=>{"use strict";var r=n(2334);t.exports=function t(e,n){return!(!e||!n)&&(e===n||!r(e)&&(r(n)?t(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}},139:t=>{"use strict";function e(t){return function(){return t}}var n=function(){};n.thatReturns=e,n.thatReturnsFalse=e(!1),n.thatReturnsTrue=e(!0),n.thatReturnsNull=e(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(t){return t},t.exports=n},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(e){return t.body}}},3759:t=>{"use strict";t.exports=function(t,e,n,r,i,a,o,u){if(!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,o,u],s=0;(c=new Error(e.replace(/%s/g,(function(){return l[s++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},901:t=>{"use strict";t.exports=function(t){var e=(t?t.ownerDocument||t:document).defaultView||window;return!(!t||!("function"==typeof e.Node?t instanceof e.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}},2334:(t,e,n)=>{"use strict";var r=n(901);t.exports=function(t){return r(t)&&3==t.nodeType}},9303:t=>{"use strict";var e=Object.prototype.hasOwnProperty;function n(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}t.exports=function(t,r){if(n(t,r))return!0;if("object"!=typeof t||null===t||"object"!=typeof r||null===r)return!1;var i=Object.keys(t),a=Object.keys(r);if(i.length!==a.length)return!1;for(var o=0;o{var r=n(2354);t.exports={Graph:r.Graph,json:n(8974),alg:n(2440),version:r.version}},2842:(t,e,n)=>{var r=n(9126);t.exports=function(t){var e,n={},i=[];function a(i){r.has(n,i)||(n[i]=!0,e.push(i),r.each(t.successors(i),a),r.each(t.predecessors(i),a))}return r.each(t.nodes(),(function(t){e=[],a(t),e.length&&i.push(e)})),i}},3984:(t,e,n)=>{var r=n(9126);function i(t,e,n,a,o,u){r.has(a,e)||(a[e]=!0,n||u.push(e),r.each(o(e),(function(e){i(t,e,n,a,o,u)})),n&&u.push(e))}t.exports=function(t,e,n){r.isArray(e)||(e=[e]);var a=(t.isDirected()?t.successors:t.neighbors).bind(t),o=[],u={};return r.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);i(t,e,"post"===n,u,a,o)})),o}},4847:(t,e,n)=>{var r=n(3763),i=n(9126);t.exports=function(t,e,n){return i.transform(t.nodes(),(function(i,a){i[a]=r(t,a,e,n)}),{})}},3763:(t,e,n)=>{var r=n(9126),i=n(5639);t.exports=function(t,e,n,r){return function(t,e,n,r){var a,o,u={},c=new i,l=function(t){var e=t.v!==a?t.v:t.w,r=u[e],i=n(t),l=o.distance+i;if(i<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+i);l0&&(a=c.removeMin(),(o=u[a]).distance!==Number.POSITIVE_INFINITY);)r(a).forEach(l);return u}(t,String(e),n||a,r||function(e){return t.outEdges(e)})};var a=r.constant(1)},9096:(t,e,n)=>{var r=n(9126),i=n(5023);t.exports=function(t){return r.filter(i(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}},8924:(t,e,n)=>{var r=n(9126);t.exports=function(t,e,n){return function(t,e,n){var r={},i=t.nodes();return i.forEach((function(t){r[t]={},r[t][t]={distance:0},i.forEach((function(e){t!==e&&(r[t][e]={distance:Number.POSITIVE_INFINITY})})),n(t).forEach((function(n){var i=n.v===t?n.w:n.v,a=e(n);r[t][i]={distance:a,predecessor:t}}))})),i.forEach((function(t){var e=r[t];i.forEach((function(n){var a=r[n];i.forEach((function(n){var r=a[t],i=e[n],o=a[n],u=r.distance+i.distance;u{t.exports={components:n(2842),dijkstra:n(3763),dijkstraAll:n(4847),findCycles:n(9096),floydWarshall:n(8924),isAcyclic:n(2707),postorder:n(8828),preorder:n(2648),prim:n(514),tarjan:n(5023),topsort:n(2166)}},2707:(t,e,n)=>{var r=n(2166);t.exports=function(t){try{r(t)}catch(t){if(t instanceof r.CycleException)return!1;throw t}return!0}},8828:(t,e,n)=>{var r=n(3984);t.exports=function(t,e){return r(t,e,"post")}},2648:(t,e,n)=>{var r=n(3984);t.exports=function(t,e){return r(t,e,"pre")}},514:(t,e,n)=>{var r=n(9126),i=n(771),a=n(5639);t.exports=function(t,e){var n,o=new i,u={},c=new a;function l(t){var r=t.v===n?t.w:t.v,i=c.priority(r);if(void 0!==i){var a=e(t);a0;){if(n=c.removeMin(),r.has(u,n))o.setEdge(n,u[n]);else{if(s)throw new Error("Input graph is not connected: "+t);s=!0}t.nodeEdges(n).forEach(l)}return o}},5023:(t,e,n)=>{var r=n(9126);t.exports=function(t){var e=0,n=[],i={},a=[];function o(u){var c=i[u]={onStack:!0,lowlink:e,index:e++};if(n.push(u),t.successors(u).forEach((function(t){r.has(i,t)?i[t].onStack&&(c.lowlink=Math.min(c.lowlink,i[t].index)):(o(t),c.lowlink=Math.min(c.lowlink,i[t].lowlink))})),c.lowlink===c.index){var l,s=[];do{l=n.pop(),i[l].onStack=!1,s.push(l)}while(u!==l);a.push(s)}}return t.nodes().forEach((function(t){r.has(i,t)||o(t)})),a}},2166:(t,e,n)=>{var r=n(9126);function i(t){var e={},n={},i=[];if(r.each(t.sinks(),(function o(u){if(r.has(n,u))throw new a;r.has(e,u)||(n[u]=!0,e[u]=!0,r.each(t.predecessors(u),o),delete n[u],i.push(u))})),r.size(e)!==t.nodeCount())throw new a;return i}function a(){}t.exports=i,i.CycleException=a},5639:(t,e,n)=>{var r=n(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 e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},i.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},i.prototype.add=function(t,e){var n=this._keyIndices;if(t=String(t),!r.has(n,t)){var i=this._arr,a=i.length;return n[t]=a,i.push({key:t,priority:e}),this._decrease(a),!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,e){var n=this._keyIndices[t];if(e>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[n].priority+" New: "+e);this._arr[n].priority=e,this._decrease(n)},i.prototype._heapify=function(t){var e=this._arr,n=2*t,r=n+1,i=t;n>1].priority{"use strict";var r=n(9126);t.exports=u;var i="\0",a="\0",o="";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[a]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function c(t,e){t[e]?t[e]++:t[e]=1}function l(t,e){--t[e]||delete t[e]}function s(t,e,n,a){var u=""+e,c=""+n;if(!t&&u>c){var l=u;u=c,c=l}return u+o+c+o+(r.isUndefined(a)?i:a)}function f(t,e){return s(t,e.v,e.w,e.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(e){return r.isEmpty(t._in[e])}))},u.prototype.sinks=function(){var t=this;return r.filter(this.nodes(),(function(e){return r.isEmpty(t._out[e])}))},u.prototype.setNodes=function(t,e){var n=arguments,i=this;return r.each(t,(function(t){n.length>1?i.setNode(t,e):i.setNode(t)})),this},u.prototype.setNode=function(t,e){return r.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=a,this._children[t]={},this._children[a][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 e=this;if(r.has(this._nodes,t)){var n=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],r.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),r.each(r.keys(this._in[t]),n),delete this._in[t],delete this._preds[t],r.each(r.keys(this._out[t]),n),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},u.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(e))e=a;else{for(var n=e+="";!r.isUndefined(n);n=this.parent(n))if(n===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},u.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},u.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==a)return e}},u.prototype.children=function(t){if(r.isUndefined(t)&&(t=a),this._isCompound){var e=this._children[t];if(e)return r.keys(e)}else{if(t===a)return this.nodes();if(this.hasNode(t))return[]}},u.prototype.predecessors=function(t){var e=this._preds[t];if(e)return r.keys(e)},u.prototype.successors=function(t){var e=this._sucs[t];if(e)return r.keys(e)},u.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return r.union(e,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 e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var n=this;r.each(this._nodes,(function(n,r){t(r)&&e.setNode(r,n)})),r.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,n.edge(t))}));var i={};function a(t){var r=n.parent(t);return void 0===r||e.hasNode(r)?(i[t]=r,r):r in i?i[r]:a(r)}return this._isCompound&&r.each(e.nodes(),(function(t){e.setParent(t,a(t))})),e},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,e){var n=this,i=arguments;return r.reduce(t,(function(t,r){return i.length>1?n.setEdge(t,r,e):n.setEdge(t,r),r})),this},u.prototype.setEdge=function(){var t,e,n,i,a=!1,o=arguments[0];"object"==typeof o&&null!==o&&"v"in o?(t=o.v,e=o.w,n=o.name,2===arguments.length&&(i=arguments[1],a=!0)):(t=o,e=arguments[1],n=arguments[3],arguments.length>2&&(i=arguments[2],a=!0)),t=""+t,e=""+e,r.isUndefined(n)||(n=""+n);var u=s(this._isDirected,t,e,n);if(r.has(this._edgeLabels,u))return a&&(this._edgeLabels[u]=i),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[u]=a?i:this._defaultEdgeLabelFn(t,e,n);var l=function(t,e,n,r){var i=""+e,a=""+n;if(!t&&i>a){var o=i;i=a,a=o}var u={v:i,w:a};return r&&(u.name=r),u}(this._isDirected,t,e,n);return t=l.v,e=l.w,Object.freeze(l),this._edgeObjs[u]=l,c(this._preds[e],t),c(this._sucs[t],e),this._in[e][u]=l,this._out[t][u]=l,this._edgeCount++,this},u.prototype.edge=function(t,e,n){var r=1===arguments.length?f(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return this._edgeLabels[r]},u.prototype.hasEdge=function(t,e,n){var i=1===arguments.length?f(this._isDirected,arguments[0]):s(this._isDirected,t,e,n);return r.has(this._edgeLabels,i)},u.prototype.removeEdge=function(t,e,n){var r=1===arguments.length?f(this._isDirected,arguments[0]):s(this._isDirected,t,e,n),i=this._edgeObjs[r];return i&&(t=i.v,e=i.w,delete this._edgeLabels[r],delete this._edgeObjs[r],l(this._preds[e],t),l(this._sucs[t],e),delete this._in[e][r],delete this._out[t][r],this._edgeCount--),this},u.prototype.inEdges=function(t,e){var n=this._in[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.v===e})):i}},u.prototype.outEdges=function(t,e){var n=this._out[t];if(n){var i=r.values(n);return e?r.filter(i,(function(t){return t.w===e})):i}},u.prototype.nodeEdges=function(t,e){var n=this.inEdges(t,e);if(n)return n.concat(this.outEdges(t,e))}},2354:(t,e,n)=>{t.exports={Graph:n(771),version:n(9631)}},8974:(t,e,n)=>{var r=n(9126),i=n(771);function a(t){return r.map(t.nodes(),(function(e){var n=t.node(e),i=t.parent(e),a={v:e};return r.isUndefined(n)||(a.value=n),r.isUndefined(i)||(a.parent=i),a}))}function o(t){return r.map(t.edges(),(function(e){var n=t.edge(e),i={v:e.v,w:e.w};return r.isUndefined(e.name)||(i.name=e.name),r.isUndefined(n)||(i.value=n),i}))}t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:a(t),edges:o(t)};return r.isUndefined(t.graph())||(e.value=r.clone(t.graph())),e},read:function(t){var e=new i(t.options).setGraph(t.value);return r.each(t.nodes,(function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)})),r.each(t.edges,(function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),e}}},9126:(t,e,n)=>{var r;try{r=n(6486)}catch(t){}r||(r=window._),t.exports=r},9631:t=>{t.exports="2.1.5"},6486:function(t,e,n){var r;t=n.nmd(t),function(){var i,a=200,o="Expected a function",u="__lodash_hash_undefined__",c="__lodash_placeholder__",l=1,s=2,f=4,h=1,d=2,p=1,g=2,v=4,y=8,m=16,_=32,b=64,w=128,x=256,E=512,M=800,k=16,N=1/0,S=9007199254740991,T=17976931348623157e292,C=NaN,A=4294967295,P=A-1,R=A>>>1,I=[["ary",w],["bind",p],["bindKey",g],["curry",y],["curryRight",m],["flip",E],["partial",_],["partialRight",b],["rearg",x]],O="[object Arguments]",D="[object Array]",L="[object AsyncFunction]",U="[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]",$="[object Proxy]",G="[object RegExp]",Q="[object Set]",Z="[object String]",K="[object Symbol]",J="[object Undefined]",tt="[object WeakMap]",et="[object ArrayBuffer]",nt="[object DataView]",rt="[object Float32Array]",it="[object Float64Array]",at="[object Int8Array]",ot="[object Int16Array]",ut="[object Int32Array]",ct="[object Uint8Array]",lt="[object Uint8ClampedArray]",st="[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)\]/,Et=/^\w*$/,Mt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,kt=/[\\^$.*+?()[\]{}|]/g,Nt=RegExp(kt.source),St=/^\s+|\s+$/g,Tt=/^\s+/,Ct=/\s+$/,At=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Pt=/\{\n\/\* \[wrapped with (.+)\] \*/,Rt=/,? & /,It=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ot=/\\(\\)?/g,Dt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Lt=/\w*$/,Ut=/^[-+]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",$t="a-z\\xdf-\\xf6\\xf8-\\xff",Gt="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+"]",te="["+Wt+"]",ee="\\d+",ne="["+Xt+"]",re="["+$t+"]",ie="[^"+Vt+Zt+ee+Xt+$t+Gt+"]",ae="\\ud83c[\\udffb-\\udfff]",oe="[^"+Vt+"]",ue="(?:\\ud83c[\\udde6-\\uddff]){2}",ce="[\\ud800-\\udbff][\\udc00-\\udfff]",le="["+Gt+"]",se="\\u200d",fe="(?:"+re+"|"+ie+")",he="(?:"+le+"|"+ie+")",de="(?:['’](?:d|ll|m|re|s|t|ve))?",pe="(?:['’](?:D|LL|M|RE|S|T|VE))?",ge="(?:"+te+"|"+ae+")?",ve="["+Qt+"]?",ye=ve+ge+"(?:"+se+"(?:"+[oe,ue,ce].join("|")+")"+ve+ge+")*",me="(?:"+[ne,ue,ce].join("|")+")"+ye,_e="(?:"+[oe+te+"?",te,ue,ce,Kt].join("|")+")",be=RegExp("['’]","g"),we=RegExp(te,"g"),xe=RegExp(ae+"(?="+ae+")|"+_e+ye,"g"),Ee=RegExp([le+"?"+re+"+"+de+"(?="+[Jt,le,"$"].join("|")+")",he+"+"+pe+"(?="+[Jt,le+fe,"$"].join("|")+")",le+"?"+fe+"+"+de,le+"+"+pe,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ee,me].join("|"),"g"),Me=RegExp("["+se+Vt+Wt+Qt+"]"),ke=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ne=["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"],Se=-1,Te={};Te[rt]=Te[it]=Te[at]=Te[ot]=Te[ut]=Te[ct]=Te[lt]=Te[st]=Te[ft]=!0,Te[O]=Te[D]=Te[et]=Te[U]=Te[nt]=Te[z]=Te[q]=Te[j]=Te[H]=Te[Y]=Te[W]=Te[G]=Te[Q]=Te[Z]=Te[tt]=!1;var Ce={};Ce[O]=Ce[D]=Ce[et]=Ce[nt]=Ce[U]=Ce[z]=Ce[rt]=Ce[it]=Ce[at]=Ce[ot]=Ce[ut]=Ce[H]=Ce[Y]=Ce[W]=Ce[G]=Ce[Q]=Ce[Z]=Ce[K]=Ce[ct]=Ce[lt]=Ce[st]=Ce[ft]=!0,Ce[q]=Ce[j]=Ce[tt]=!1;var Ae={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Pe=parseFloat,Re=parseInt,Ie="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,Oe="object"==typeof self&&self&&self.Object===Object&&self,De=Ie||Oe||Function("return this")(),Le=e&&!e.nodeType&&e,Ue=Le&&t&&!t.nodeType&&t,ze=Ue&&Ue.exports===Le,Fe=ze&&Ie.process,qe=function(){try{return Ue&&Ue.require&&Ue.require("util").types||Fe&&Fe.binding&&Fe.binding("util")}catch(t){}}(),je=qe&&qe.isArrayBuffer,Be=qe&&qe.isDate,He=qe&&qe.isMap,Ye=qe&&qe.isRegExp,Ve=qe&&qe.isSet,We=qe&&qe.isTypedArray;function Xe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function $e(t,e,n,r){for(var i=-1,a=null==t?0:t.length;++i-1}function tn(t,e,n){for(var r=-1,i=null==t?0:t.length;++r-1;);return n}function En(t,e){for(var n=t.length;n--&&sn(e,t[n],0)>-1;);return n}var Mn=gn({À:"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"}),kn=gn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Nn(t){return"\\"+Ae[t]}function Sn(t){return Me.test(t)}function Tn(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function Cn(t,e){return function(n){return t(e(n))}}function An(t,e){for(var n=-1,r=t.length,i=0,a=[];++n",""":'"',"'":"'"}),Ln=function t(e){var n,r=(e=null==e?De:Ln.defaults(De.Object(),e,Ln.pick(De,Ne))).Array,Vt=e.Date,Wt=e.Error,Xt=e.Function,$t=e.Math,Gt=e.Object,Qt=e.RegExp,Zt=e.String,Kt=e.TypeError,Jt=r.prototype,te=Xt.prototype,ee=Gt.prototype,ne=e["__core-js_shared__"],re=te.toString,ie=ee.hasOwnProperty,ae=0,oe=(n=/[^.]+$/.exec(ne&&ne.keys&&ne.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",ue=ee.toString,ce=re.call(Gt),le=De._,se=Qt("^"+re.call(ie).replace(kt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),fe=ze?e.Buffer:i,he=e.Symbol,de=e.Uint8Array,pe=fe?fe.allocUnsafe:i,ge=Cn(Gt.getPrototypeOf,Gt),ve=Gt.create,ye=ee.propertyIsEnumerable,me=Jt.splice,_e=he?he.isConcatSpreadable:i,xe=he?he.iterator:i,Me=he?he.toStringTag:i,Ae=function(){try{var t=Pa(Gt,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ie=e.clearTimeout!==De.clearTimeout&&e.clearTimeout,Oe=Vt&&Vt.now!==De.Date.now&&Vt.now,Le=e.setTimeout!==De.setTimeout&&e.setTimeout,Ue=$t.ceil,Fe=$t.floor,qe=Gt.getOwnPropertySymbols,un=fe?fe.isBuffer:i,gn=e.isFinite,Un=Jt.join,zn=Cn(Gt.keys,Gt),Fn=$t.max,qn=$t.min,jn=Vt.now,Bn=e.parseInt,Hn=$t.random,Yn=Jt.reverse,Vn=Pa(e,"DataView"),Wn=Pa(e,"Map"),Xn=Pa(e,"Promise"),$n=Pa(e,"Set"),Gn=Pa(e,"WeakMap"),Qn=Pa(Gt,"create"),Zn=Gn&&new Gn,Kn={},Jn=ao(Vn),tr=ao(Wn),er=ao(Xn),nr=ao($n),rr=ao(Gn),ir=he?he.prototype:i,ar=ir?ir.valueOf:i,or=ir?ir.toString:i;function ur(t){if(Eu(t)&&!hu(t)&&!(t instanceof fr)){if(t instanceof sr)return t;if(ie.call(t,"__wrapped__"))return oo(t)}return new sr(t)}var cr=function(){function t(){}return function(e){if(!xu(e))return{};if(ve)return ve(e);t.prototype=e;var n=new t;return t.prototype=i,n}}();function lr(){}function sr(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,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 e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function Cr(t,e,n,r,a,o){var u,c=e&l,h=e&s,d=e&f;if(n&&(u=a?n(t,r,a,o):n(t)),u!==i)return u;if(!xu(t))return t;var p=hu(t);if(p){if(u=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&ie.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!c)return Gi(t,u)}else{var g=Oa(t),v=g==j||g==B;if(vu(t))return Hi(t,c);if(g==W||g==O||v&&!a){if(u=h||v?{}:La(t),!c)return h?function(t,e){return Qi(t,Ia(t),e)}(t,function(t,e){return t&&Qi(e,tc(e),t)}(u,t)):function(t,e){return Qi(t,Ra(t),e)}(t,kr(u,t))}else{if(!Ce[g])return a?t:{};u=function(t,e,n){var r,i=t.constructor;switch(e){case et:return Yi(t);case U:case z:return new i(+t);case nt:return function(t,e){var n=e?Yi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case rt:case it:case at:case ot:case ut:case ct:case lt:case st:case ft:return Vi(t,n);case H:return new i;case Y:case Z:return new i(t);case G:return function(t){var e=new t.constructor(t.source,Lt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case Q:return new i;case K:return r=t,ar?Gt(ar.call(r)):{}}}(t,g,c)}}o||(o=new vr);var y=o.get(t);if(y)return y;o.set(t,u),Tu(t)?t.forEach((function(r){u.add(Cr(r,e,n,r,t,o))})):Mu(t)&&t.forEach((function(r,i){u.set(i,Cr(r,e,n,i,t,o))}));var m=p?i:(d?h?Ma:Ea:h?tc:Ju)(t);return Ge(m||t,(function(r,i){m&&(r=t[i=r]),xr(u,i,Cr(r,e,n,i,t,o))})),u}function Ar(t,e,n){var r=n.length;if(null==t)return!r;for(t=Gt(t);r--;){var a=n[r],o=e[a],u=t[a];if(u===i&&!(a in t)||!o(u))return!1}return!0}function Pr(t,e,n){if("function"!=typeof t)throw new Kt(o);return Qa((function(){t.apply(i,n)}),e)}function Rr(t,e,n,r){var i=-1,o=Je,u=!0,c=t.length,l=[],s=e.length;if(!c)return l;n&&(e=en(e,_n(n))),r?(o=tn,u=!1):e.length>=a&&(o=wn,u=!1,e=new gr(e));t:for(;++i-1},dr.prototype.set=function(t,e){var n=this.__data__,r=Er(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},pr.prototype.clear=function(){this.size=0,this.__data__={hash:new hr,map:new(Wn||dr),string:new hr}},pr.prototype.delete=function(t){var e=Ca(this,t).delete(t);return this.size-=e?1:0,e},pr.prototype.get=function(t){return Ca(this,t).get(t)},pr.prototype.has=function(t){return Ca(this,t).has(t)},pr.prototype.set=function(t,e){var n=Ca(this,t),r=n.size;return n.set(t,e),this.size+=n.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 e=this.__data__,n=e.delete(t);return this.size=e.size,n},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,e){var n=this.__data__;if(n instanceof dr){var r=n.__data__;if(!Wn||r.length0&&n(u)?e>1?zr(u,e-1,n,r,i):nn(i,u):r||(i[i.length]=u)}return i}var Fr=ta(),qr=ta(!0);function jr(t,e){return t&&Fr(t,e,Ju)}function Br(t,e){return t&&qr(t,e,Ju)}function Hr(t,e){return Ke(e,(function(e){return _u(t[e])}))}function Yr(t,e){for(var n=0,r=(e=Fi(e,t)).length;null!=t&&ne}function $r(t,e){return null!=t&&ie.call(t,e)}function Gr(t,e){return null!=t&&e in Gt(t)}function Qr(t,e,n){for(var a=n?tn:Je,o=t[0].length,u=t.length,c=u,l=r(u),s=1/0,f=[];c--;){var h=t[c];c&&e&&(h=en(h,_n(e))),s=qn(h.length,s),l[c]=!n&&(e||o>=120&&h.length>=120)?new gr(c&&h):i}h=t[0];var d=-1,p=l[0];t:for(;++d=u?c:c*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}));r--;)t[r]=t[r].value;return t}(i)}function fi(t,e,n){for(var r=-1,i=e.length,a={};++r-1;)u!==t&&me.call(u,c,1),me.call(t,c,1);return t}function di(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==a){var a=i;za(i)?me.call(t,i,1):Pi(t,i)}}return t}function pi(t,e){return t+Fe(Hn()*(e-t+1))}function gi(t,e){var n="";if(!t||e<1||e>S)return n;do{e%2&&(n+=t),(e=Fe(e/2))&&(t+=t)}while(e);return n}function vi(t,e){return Za(Wa(t,e,kc),t+"")}function yi(t){return mr(cc(t))}function mi(t,e){var n=cc(t);return to(n,Tr(e,0,n.length))}function _i(t,e,n,r){if(!xu(t))return t;for(var a=-1,o=(e=Fi(e,t)).length,u=o-1,c=t;null!=c&&++aa?0:a+e),(n=n>a?a:n)<0&&(n+=a),a=e>n?0:n-e>>>0,e>>>=0;for(var o=r(a);++i>>1,o=t[a];null!==o&&!Au(o)&&(n?o<=e:o=a){var s=e?null:ga(t);if(s)return Pn(s);u=!1,i=wn,l=new gr}else l=e?[]:c;t:for(;++r=r?t:Ei(t,e,n)}var Bi=Ie||function(t){return De.clearTimeout(t)};function Hi(t,e){if(e)return t.slice();var n=t.length,r=pe?pe(n):new t.constructor(n);return t.copy(r),r}function Yi(t){var e=new t.constructor(t.byteLength);return new de(e).set(new de(t)),e}function Vi(t,e){var n=e?Yi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Wi(t,e){if(t!==e){var n=t!==i,r=null===t,a=t==t,o=Au(t),u=e!==i,c=null===e,l=e==e,s=Au(e);if(!c&&!s&&!o&&t>e||o&&u&&l&&!c&&!s||r&&u&&l||!n&&l||!a)return 1;if(!r&&!o&&!s&&t1?n[a-1]:i,u=a>2?n[2]:i;for(o=t.length>3&&"function"==typeof o?(a--,o):i,u&&Fa(n[0],n[1],u)&&(o=a<3?i:o,a=1),e=Gt(e);++r-1?a[o?e[u]:u]:i}}function aa(t){return xa((function(e){var n=e.length,r=n,a=sr.prototype.thru;for(t&&e.reverse();r--;){var u=e[r];if("function"!=typeof u)throw new Kt(o);if(a&&!c&&"wrapper"==Na(u))var c=new sr([],!0)}for(r=c?r:n;++r1&&y.reverse(),h&&sc))return!1;var s=o.get(t);if(s&&o.get(e))return s==e;var f=-1,p=!0,g=n&d?new gr:i;for(o.set(t,e),o.set(e,t);++f-1&&t%1==0&&t1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(At,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Ge(I,(function(n){var r="_."+n[0];e&n[1]&&!Je(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(Pt);return e?e[1].split(Rt):[]}(r),n)))}function Ja(t){var e=0,n=0;return function(){var r=jn(),a=k-(r-n);if(n=r,a>0){if(++e>=M)return arguments[0]}else e=0;return t.apply(i,arguments)}}function to(t,e){var n=-1,r=t.length,a=r-1;for(e=e===i?r:e;++n1?t[e-1]:i;return n="function"==typeof n?(t.pop(),n):i,So(t,n)}));function Oo(t){var e=ur(t);return e.__chain__=!0,e}function Do(t,e){return e(t)}var Lo=xa((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,a=function(e){return Sr(e,t)};return!(e>1||this.__actions__.length)&&r instanceof fr&&za(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:Do,args:[a],thisArg:i}),new sr(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(i),t}))):this.thru(a)})),Uo=Zi((function(t,e,n){ie.call(t,n)?++t[n]:Nr(t,n,1)})),zo=ia(so),Fo=ia(fo);function qo(t,e){return(hu(t)?Ge:Ir)(t,Ta(e,3))}function jo(t,e){return(hu(t)?Qe:Or)(t,Ta(e,3))}var Bo=Zi((function(t,e,n){ie.call(t,n)?t[n].push(e):Nr(t,n,[e])})),Ho=vi((function(t,e,n){var i=-1,a="function"==typeof e,o=pu(t)?r(t.length):[];return Ir(t,(function(t){o[++i]=a?Xe(e,t,n):Zr(t,e,n)})),o})),Yo=Zi((function(t,e,n){Nr(t,n,e)}));function Vo(t,e){return(hu(t)?en:ai)(t,Ta(e,3))}var Wo=Zi((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),Xo=vi((function(t,e){if(null==t)return[];var n=e.length;return n>1&&Fa(t,e[0],e[1])?e=[]:n>2&&Fa(e[0],e[1],e[2])&&(e=[e[0]]),si(t,zr(e,1),[])})),$o=Oe||function(){return De.Date.now()};function Go(t,e,n){return e=n?i:e,e=t&&null==e?t.length:e,ya(t,w,i,i,i,i,e)}function Qo(t,e){var n;if("function"!=typeof e)throw new Kt(o);return t=Lu(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=i),n}}var Zo=vi((function(t,e,n){var r=p;if(n.length){var i=An(n,Sa(Zo));r|=_}return ya(t,r,e,n,i)})),Ko=vi((function(t,e,n){var r=p|g;if(n.length){var i=An(n,Sa(Ko));r|=_}return ya(e,r,t,n,i)}));function Jo(t,e,n){var r,a,u,c,l,s,f=0,h=!1,d=!1,p=!0;if("function"!=typeof t)throw new Kt(o);function g(e){var n=r,o=a;return r=a=i,f=e,c=t.apply(o,n)}function v(t){var n=t-s;return s===i||n>=e||n<0||d&&t-f>=u}function y(){var t=$o();if(v(t))return m(t);l=Qa(y,function(t){var n=e-(t-s);return d?qn(n,u-(t-f)):n}(t))}function m(t){return l=i,p&&r?g(t):(r=a=i,c)}function _(){var t=$o(),n=v(t);if(r=arguments,a=this,s=t,n){if(l===i)return function(t){return f=t,l=Qa(y,e),h?g(t):c}(s);if(d)return Bi(l),l=Qa(y,e),g(s)}return l===i&&(l=Qa(y,e)),c}return e=zu(e)||0,xu(n)&&(h=!!n.leading,u=(d="maxWait"in n)?Fn(zu(n.maxWait)||0,e):u,p="trailing"in n?!!n.trailing:p),_.cancel=function(){l!==i&&Bi(l),f=0,r=s=a=l=i},_.flush=function(){return l===i?c:m($o())},_}var tu=vi((function(t,e){return Pr(t,1,e)})),eu=vi((function(t,e,n){return Pr(t,zu(e)||0,n)}));function nu(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Kt(o);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(nu.Cache||pr),n}function ru(t){if("function"!=typeof t)throw new Kt(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}nu.Cache=pr;var iu=qi((function(t,e){var n=(e=1==e.length&&hu(e[0])?en(e[0],_n(Ta())):en(zr(e,1),_n(Ta()))).length;return vi((function(r){for(var i=-1,a=qn(r.length,n);++i=e})),fu=Kr(function(){return arguments}())?Kr:function(t){return Eu(t)&&ie.call(t,"callee")&&!ye.call(t,"callee")},hu=r.isArray,du=je?_n(je):function(t){return Eu(t)&&Wr(t)==et};function pu(t){return null!=t&&wu(t.length)&&!_u(t)}function gu(t){return Eu(t)&&pu(t)}var vu=un||zc,yu=Be?_n(Be):function(t){return Eu(t)&&Wr(t)==z};function mu(t){if(!Eu(t))return!1;var e=Wr(t);return e==q||e==F||"string"==typeof t.message&&"string"==typeof t.name&&!Nu(t)}function _u(t){if(!xu(t))return!1;var e=Wr(t);return e==j||e==B||e==L||e==$}function bu(t){return"number"==typeof t&&t==Lu(t)}function wu(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=S}function xu(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Eu(t){return null!=t&&"object"==typeof t}var Mu=He?_n(He):function(t){return Eu(t)&&Oa(t)==H};function ku(t){return"number"==typeof t||Eu(t)&&Wr(t)==Y}function Nu(t){if(!Eu(t)||Wr(t)!=W)return!1;var e=ge(t);if(null===e)return!0;var n=ie.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&re.call(n)==ce}var Su=Ye?_n(Ye):function(t){return Eu(t)&&Wr(t)==G},Tu=Ve?_n(Ve):function(t){return Eu(t)&&Oa(t)==Q};function Cu(t){return"string"==typeof t||!hu(t)&&Eu(t)&&Wr(t)==Z}function Au(t){return"symbol"==typeof t||Eu(t)&&Wr(t)==K}var Pu=We?_n(We):function(t){return Eu(t)&&wu(t.length)&&!!Te[Wr(t)]},Ru=ha(ii),Iu=ha((function(t,e){return t<=e}));function Ou(t){if(!t)return[];if(pu(t))return Cu(t)?On(t):Gi(t);if(xe&&t[xe])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[xe]());var e=Oa(t);return(e==H?Tn:e==Q?Pn:cc)(t)}function Du(t){return t?(t=zu(t))===N||t===-N?(t<0?-1:1)*T:t==t?t:0:0===t?t:0}function Lu(t){var e=Du(t),n=e%1;return e==e?n?e-n:e:0}function Uu(t){return t?Tr(Lu(t),0,A):0}function zu(t){if("number"==typeof t)return t;if(Au(t))return C;if(xu(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=xu(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(St,"");var n=zt.test(t);return n||qt.test(t)?Re(t.slice(2),n?2:8):Ut.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,e){if(Ha(e)||pu(e))Qi(e,Ju(e),t);else for(var n in e)ie.call(e,n)&&xr(t,n,e[n])})),Bu=Ki((function(t,e){Qi(e,tc(e),t)})),Hu=Ki((function(t,e,n,r){Qi(e,tc(e),t,r)})),Yu=Ki((function(t,e,n,r){Qi(e,Ju(e),t,r)})),Vu=xa(Sr),Wu=vi((function(t,e){t=Gt(t);var n=-1,r=e.length,a=r>2?e[2]:i;for(a&&Fa(e[0],e[1],a)&&(r=1);++n1),e})),Qi(t,Ma(t),n),r&&(n=Cr(n,l|s|f,ba));for(var i=e.length;i--;)Pi(n,e[i]);return n})),ic=xa((function(t,e){return null==t?{}:function(t,e){return fi(t,e,(function(e,n){return Gu(t,n)}))}(t,e)}));function ac(t,e){if(null==t)return{};var n=en(Ma(t),(function(t){return[t]}));return e=Ta(e),fi(t,n,(function(t,n){return e(t,n[0])}))}var oc=va(Ju),uc=va(tc);function cc(t){return null==t?[]:bn(t,Ju(t))}var lc=na((function(t,e,n){return e=e.toLowerCase(),t+(n?sc(e):e)}));function sc(t){return mc(qu(t).toLowerCase())}function fc(t){return(t=qu(t))&&t.replace(Bt,Mn).replace(we,"")}var hc=na((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),dc=na((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),pc=ea("toLowerCase"),gc=na((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),vc=na((function(t,e,n){return t+(n?" ":"")+mc(e)})),yc=na((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),mc=ea("toUpperCase");function _c(t,e,n){return t=qu(t),(e=n?i:e)===i?function(t){return ke.test(t)}(t)?function(t){return t.match(Ee)||[]}(t):function(t){return t.match(It)||[]}(t):t.match(e)||[]}var bc=vi((function(t,e){try{return Xe(t,i,e)}catch(t){return mu(t)?t:new Wt(t)}})),wc=xa((function(t,e){return Ge(e,(function(e){e=io(e),Nr(t,e,Zo(t[e],t))})),t}));function xc(t){return function(){return t}}var Ec=aa(),Mc=aa(!0);function kc(t){return t}function Nc(t){return ni("function"==typeof t?t:Cr(t,l))}var Sc=vi((function(t,e){return function(n){return Zr(n,t,e)}})),Tc=vi((function(t,e){return function(n){return Zr(t,n,e)}}));function Cc(t,e,n){var r=Ju(e),i=Hr(e,r);null!=n||xu(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=Hr(e,Ju(e)));var a=!(xu(n)&&"chain"in n&&!n.chain),o=_u(t);return Ge(i,(function(n){var r=e[n];t[n]=r,o&&(t.prototype[n]=function(){var e=this.__chain__;if(a||e){var n=t(this.__wrapped__);return(n.__actions__=Gi(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,nn([this.value()],arguments))})})),t}function Ac(){}var Pc=la(en),Rc=la(Ze),Ic=la(on);function Oc(t){return qa(t)?pn(io(t)):function(t){return function(e){return Yr(e,t)}}(t)}var Dc=fa(),Lc=fa(!0);function Uc(){return[]}function zc(){return!1}var Fc,qc=ca((function(t,e){return t+e}),0),jc=pa("ceil"),Bc=ca((function(t,e){return t/e}),1),Hc=pa("floor"),Yc=ca((function(t,e){return t*e}),1),Vc=pa("round"),Wc=ca((function(t,e){return t-e}),0);return ur.after=function(t,e){if("function"!=typeof e)throw new Kt(o);return t=Lu(t),function(){if(--t<1)return e.apply(this,arguments)}},ur.ary=Go,ur.assign=ju,ur.assignIn=Bu,ur.assignInWith=Hu,ur.assignWith=Yu,ur.at=Vu,ur.before=Qo,ur.bind=Zo,ur.bindAll=wc,ur.bindKey=Ko,ur.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return hu(t)?t:[t]},ur.chain=Oo,ur.chunk=function(t,e,n){e=(n?Fa(t,e,n):e===i)?1:Fn(Lu(e),0);var a=null==t?0:t.length;if(!a||e<1)return[];for(var o=0,u=0,c=r(Ue(a/e));oa?0:a+n),(r=r===i||r>a?a:Lu(r))<0&&(r+=a),r=n>r?0:Uu(r);n>>0)?(t=qu(t))&&("string"==typeof e||null!=e&&!Su(e))&&!(e=Ci(e))&&Sn(t)?ji(On(t),0,n):t.split(e,n):[]},ur.spread=function(t,e){if("function"!=typeof t)throw new Kt(o);return e=null==e?0:Fn(Lu(e),0),vi((function(n){var r=n[e],i=ji(n,0,e);return r&&nn(i,r),Xe(t,this,i)}))},ur.tail=function(t){var e=null==t?0:t.length;return e?Ei(t,1,e):[]},ur.take=function(t,e,n){return t&&t.length?Ei(t,0,(e=n||e===i?1:Lu(e))<0?0:e):[]},ur.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?Ei(t,(e=r-(e=n||e===i?1:Lu(e)))<0?0:e,r):[]},ur.takeRightWhile=function(t,e){return t&&t.length?Ii(t,Ta(e,3),!1,!0):[]},ur.takeWhile=function(t,e){return t&&t.length?Ii(t,Ta(e,3)):[]},ur.tap=function(t,e){return e(t),t},ur.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new Kt(o);return xu(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Jo(t,e,{leading:r,maxWait:e,trailing:i})},ur.thru=Do,ur.toArray=Ou,ur.toPairs=oc,ur.toPairsIn=uc,ur.toPath=function(t){return hu(t)?en(t,io):Au(t)?[t]:Gi(ro(qu(t)))},ur.toPlainObject=Fu,ur.transform=function(t,e,n){var r=hu(t),i=r||vu(t)||Pu(t);if(e=Ta(e,4),null==n){var a=t&&t.constructor;n=i?r?new a:[]:xu(t)&&_u(a)?cr(ge(t)):{}}return(i?Ge:jr)(t,(function(t,r,i){return e(n,t,r,i)})),n},ur.unary=function(t){return Go(t,1)},ur.union=Eo,ur.unionBy=Mo,ur.unionWith=ko,ur.uniq=function(t){return t&&t.length?Ai(t):[]},ur.uniqBy=function(t,e){return t&&t.length?Ai(t,Ta(e,2)):[]},ur.uniqWith=function(t,e){return e="function"==typeof e?e:i,t&&t.length?Ai(t,i,e):[]},ur.unset=function(t,e){return null==t||Pi(t,e)},ur.unzip=No,ur.unzipWith=So,ur.update=function(t,e,n){return null==t?t:Ri(t,e,zi(n))},ur.updateWith=function(t,e,n,r){return r="function"==typeof r?r:i,null==t?t:Ri(t,e,zi(n),r)},ur.values=cc,ur.valuesIn=function(t){return null==t?[]:bn(t,tc(t))},ur.without=To,ur.words=_c,ur.wrap=function(t,e){return au(zi(e),t)},ur.xor=Co,ur.xorBy=Ao,ur.xorWith=Po,ur.zip=Ro,ur.zipObject=function(t,e){return Li(t||[],e||[],xr)},ur.zipObjectDeep=function(t,e){return Li(t||[],e||[],_i)},ur.zipWith=Io,ur.entries=oc,ur.entriesIn=uc,ur.extend=Bu,ur.extendWith=Hu,Cc(ur,ur),ur.add=qc,ur.attempt=bc,ur.camelCase=lc,ur.capitalize=sc,ur.ceil=jc,ur.clamp=function(t,e,n){return n===i&&(n=e,e=i),n!==i&&(n=(n=zu(n))==n?n:0),e!==i&&(e=(e=zu(e))==e?e:0),Tr(zu(t),e,n)},ur.clone=function(t){return Cr(t,f)},ur.cloneDeep=function(t){return Cr(t,l|f)},ur.cloneDeepWith=function(t,e){return Cr(t,l|f,e="function"==typeof e?e:i)},ur.cloneWith=function(t,e){return Cr(t,f,e="function"==typeof e?e:i)},ur.conformsTo=function(t,e){return null==e||Ar(t,e,Ju(e))},ur.deburr=fc,ur.defaultTo=function(t,e){return null==t||t!=t?e:t},ur.divide=Bc,ur.endsWith=function(t,e,n){t=qu(t),e=Ci(e);var r=t.length,a=n=n===i?r:Tr(Lu(n),0,r);return(n-=e.length)>=0&&t.slice(n,a)==e},ur.eq=cu,ur.escape=function(t){return(t=qu(t))&&mt.test(t)?t.replace(vt,kn):t},ur.escapeRegExp=function(t){return(t=qu(t))&&Nt.test(t)?t.replace(kt,"\\$&"):t},ur.every=function(t,e,n){var r=hu(t)?Ze:Dr;return n&&Fa(t,e,n)&&(e=i),r(t,Ta(e,3))},ur.find=zo,ur.findIndex=so,ur.findKey=function(t,e){return cn(t,Ta(e,3),jr)},ur.findLast=Fo,ur.findLastIndex=fo,ur.findLastKey=function(t,e){return cn(t,Ta(e,3),Br)},ur.floor=Hc,ur.forEach=qo,ur.forEachRight=jo,ur.forIn=function(t,e){return null==t?t:Fr(t,Ta(e,3),tc)},ur.forInRight=function(t,e){return null==t?t:qr(t,Ta(e,3),tc)},ur.forOwn=function(t,e){return t&&jr(t,Ta(e,3))},ur.forOwnRight=function(t,e){return t&&Br(t,Ta(e,3))},ur.get=$u,ur.gt=lu,ur.gte=su,ur.has=function(t,e){return null!=t&&Da(t,e,$r)},ur.hasIn=Gu,ur.head=po,ur.identity=kc,ur.includes=function(t,e,n,r){t=pu(t)?t:cc(t),n=n&&!r?Lu(n):0;var i=t.length;return n<0&&(n=Fn(i+n,0)),Cu(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&sn(t,e,n)>-1},ur.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:Lu(n);return i<0&&(i=Fn(r+i,0)),sn(t,e,i)},ur.inRange=function(t,e,n){return e=Du(e),n===i?(n=e,e=0):n=Du(n),function(t,e,n){return t>=qn(e,n)&&t=-S&&t<=S},ur.isSet=Tu,ur.isString=Cu,ur.isSymbol=Au,ur.isTypedArray=Pu,ur.isUndefined=function(t){return t===i},ur.isWeakMap=function(t){return Eu(t)&&Oa(t)==tt},ur.isWeakSet=function(t){return Eu(t)&&"[object WeakSet]"==Wr(t)},ur.join=function(t,e){return null==t?"":Un.call(t,e)},ur.kebabCase=hc,ur.last=mo,ur.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var a=r;return n!==i&&(a=(a=Lu(n))<0?Fn(r+a,0):qn(a,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,a):ln(t,hn,a,!0)},ur.lowerCase=dc,ur.lowerFirst=pc,ur.lt=Ru,ur.lte=Iu,ur.max=function(t){return t&&t.length?Lr(t,kc,Xr):i},ur.maxBy=function(t,e){return t&&t.length?Lr(t,Ta(e,2),Xr):i},ur.mean=function(t){return dn(t,kc)},ur.meanBy=function(t,e){return dn(t,Ta(e,2))},ur.min=function(t){return t&&t.length?Lr(t,kc,ii):i},ur.minBy=function(t,e){return t&&t.length?Lr(t,Ta(e,2),ii):i},ur.stubArray=Uc,ur.stubFalse=zc,ur.stubObject=function(){return{}},ur.stubString=function(){return""},ur.stubTrue=function(){return!0},ur.multiply=Yc,ur.nth=function(t,e){return t&&t.length?li(t,Lu(e)):i},ur.noConflict=function(){return De._===this&&(De._=le),this},ur.noop=Ac,ur.now=$o,ur.pad=function(t,e,n){t=qu(t);var r=(e=Lu(e))?In(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return sa(Fe(i),n)+t+sa(Ue(i),n)},ur.padEnd=function(t,e,n){t=qu(t);var r=(e=Lu(e))?In(t):0;return e&&re){var r=t;t=e,e=r}if(n||t%1||e%1){var a=Hn();return qn(t+a*(e-t+Pe("1e-"+((a+"").length-1))),e)}return pi(t,e)},ur.reduce=function(t,e,n){var r=hu(t)?rn:vn,i=arguments.length<3;return r(t,Ta(e,4),n,i,Ir)},ur.reduceRight=function(t,e,n){var r=hu(t)?an:vn,i=arguments.length<3;return r(t,Ta(e,4),n,i,Or)},ur.repeat=function(t,e,n){return e=(n?Fa(t,e,n):e===i)?1:Lu(e),gi(qu(t),e)},ur.replace=function(){var t=arguments,e=qu(t[0]);return t.length<3?e:e.replace(t[1],t[2])},ur.result=function(t,e,n){var r=-1,a=(e=Fi(e,t)).length;for(a||(a=1,t=i);++rS)return[];var n=A,r=qn(t,A);e=Ta(e),t-=A;for(var i=mn(r,e);++n=o)return t;var c=n-In(r);if(c<1)return r;var l=u?ji(u,0,c).join(""):t.slice(0,c);if(a===i)return l+r;if(u&&(c+=l.length-c),Su(a)){if(t.slice(c).search(a)){var s,f=l;for(a.global||(a=Qt(a.source,qu(Lt.exec(a))+"g")),a.lastIndex=0;s=a.exec(f);)var h=s.index;l=l.slice(0,h===i?c:h)}}else if(t.indexOf(Ci(a),c)!=c){var d=l.lastIndexOf(a);d>-1&&(l=l.slice(0,d))}return l+r},ur.unescape=function(t){return(t=qu(t))&&yt.test(t)?t.replace(gt,Dn):t},ur.uniqueId=function(t){var e=++ae;return qu(t)+e},ur.upperCase=yc,ur.upperFirst=mc,ur.each=qo,ur.eachRight=jo,ur.first=po,Cc(ur,(Fc={},jr(ur,(function(t,e){ie.call(ur.prototype,e)||(Fc[e]=t)})),Fc),{chain:!1}),ur.VERSION="4.17.14",Ge(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){ur[t].placeholder=ur})),Ge(["drop","take"],(function(t,e){fr.prototype[t]=function(n){n=n===i?1:Fn(Lu(n),0);var r=this.__filtered__&&!e?new fr(this):this.clone();return r.__filtered__?r.__takeCount__=qn(n,r.__takeCount__):r.__views__.push({size:qn(n,A),type:t+(r.__dir__<0?"Right":"")}),r},fr.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Ge(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;fr.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Ta(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Ge(["head","last"],(function(t,e){var n="take"+(e?"Right":"");fr.prototype[t]=function(){return this[n](1).value()[0]}})),Ge(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");fr.prototype[t]=function(){return this.__filtered__?new fr(this):this[n](1)}})),fr.prototype.compact=function(){return this.filter(kc)},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,e){return"function"==typeof t?new fr(this):this.map((function(n){return Zr(n,t,e)}))})),fr.prototype.reject=function(t){return this.filter(ru(Ta(t)))},fr.prototype.slice=function(t,e){t=Lu(t);var n=this;return n.__filtered__&&(t>0||e<0)?new fr(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==i&&(n=(e=Lu(e))<0?n.dropRight(-e):n.take(e-t)),n)},fr.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},fr.prototype.toArray=function(){return this.take(A)},jr(fr.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),a=ur[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);a&&(ur.prototype[e]=function(){var e=this.__wrapped__,u=r?[1]:arguments,c=e instanceof fr,l=u[0],s=c||hu(e),f=function(t){var e=a.apply(ur,nn([t],u));return r&&h?e[0]:e};s&&n&&"function"==typeof l&&1!=l.length&&(c=s=!1);var h=this.__chain__,d=!!this.__actions__.length,p=o&&!h,g=c&&!d;if(!o&&s){e=g?e:new fr(this);var v=t.apply(e,u);return v.__actions__.push({func:Do,args:[f],thisArg:i}),new sr(v,h)}return p&&g?t.apply(this,u):(v=this.thru(f),p?r?v.value()[0]:v.value():v)})})),Ge(["pop","push","shift","sort","splice","unshift"],(function(t){var e=Jt[t],n=/^(?: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 e.apply(hu(i)?i:[],t)}return this[n]((function(n){return e.apply(hu(n)?n:[],t)}))}})),jr(fr.prototype,(function(t,e){var n=ur[e];if(n){var r=n.name+"";ie.call(Kn,r)||(Kn[r]=[]),Kn[r].push({name:e,func:n})}})),Kn[oa(i,g).name]=[{name:"wrapper",func:i}],fr.prototype.clone=function(){var t=new fr(this.__wrapped__);return t.__actions__=Gi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Gi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Gi(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(),e=this.__dir__,n=hu(t),r=e<0,i=n?t.length:0,a=function(t,e,n){for(var r=-1,i=n.length;++r=this.__values__.length;return{done:t,value:t?i:this.__values__[this.__index__++]}},ur.prototype.plant=function(t){for(var e,n=this;n instanceof lr;){var r=oo(n);r.__index__=0,r.__values__=i,e?a.__wrapped__=r:e=r;var a=r;n=n.__wrapped__}return a.__wrapped__=t,e},ur.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof fr){var e=t;return this.__actions__.length&&(e=new fr(this)),(e=e.reverse()).__actions__.push({func:Do,args:[xo],thisArg:i}),new sr(e,this.__chain__)}return this.thru(xo)},ur.prototype.toJSON=ur.prototype.valueOf=ur.prototype.value=function(){return Oi(this.__wrapped__,this.__actions__)},ur.prototype.first=ur.prototype.head,xe&&(ur.prototype[xe]=function(){return this}),ur}();De._=Ln,(r=function(){return Ln}.call(e,n,e,t))===i||(t.exports=r)}.call(this)},7418:t=>{"use strict";var e=Object.getOwnPropertySymbols,n=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 e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[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 a,o,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=n(3759),i=n(7294),a=n(6508),o=n(7418),u=n(139),c=n(1003),l=n(9303),s=n(7476),f=n(3677);function h(t){for(var e=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,i=0;ithis.eventPool.length&&this.eventPool.push(t)}function kt(t){t.eventPool=[],t.getPooled=Et,t.release=Mt}o(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,e=this.constructor.Interface;for(t in e)this[t]=null;for(e=0;e=At),It=String.fromCharCode(32),Ot={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(" ")}},Dt=!1;function Lt(t,e){switch(t){case"keyup":return-1!==Tt.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Ut(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var zt=!1,Ft={eventTypes:Ot,extractEvents:function(t,e,n,r){var i=void 0,a=void 0;if(Ct)t:{switch(t){case"compositionstart":i=Ot.compositionStart;break t;case"compositionend":i=Ot.compositionEnd;break t;case"compositionupdate":i=Ot.compositionUpdate;break t}i=void 0}else zt?Lt(t,n)&&(i=Ot.compositionEnd):"keydown"===t&&229===n.keyCode&&(i=Ot.compositionStart);return i?(Rt&&(zt||i!==Ot.compositionStart?i===Ot.compositionEnd&&zt&&(a=mt()):(yt._root=r,yt._startText=_t(),zt=!0)),i=Nt.getPooled(i,e,n,r),(a||null!==(a=Ut(n)))&&(i.data=a),nt(i),a=i):a=null,(t=Pt?function(t,e){switch(t){case"compositionend":return Ut(e);case"keypress":return 32!==e.which?null:(Dt=!0,It);case"textInput":return(t=e.data)===It&&Dt?null:t;default:return null}}(t,n):function(t,e){if(zt)return"compositionend"===t||!Ct&&Lt(t,e)?(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(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1