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

web.9088.10bc5e152cf432ef.js Maven / Gradle / Ivy

(self.webpackChunkflink=self.webpackChunkflink||[]).push([[9088],{29088:(M,z,a)=>{"use strict";a.d(z,{B:()=>Fn});var f=a(36895),h=a(94650),y=a(24006),x=a(60711),v=a(15925),_=a(70655),S=a(29521),E=a(77579),N=a(54968),k=a(56451),O=a(82722),L=a(39300),V=a(18505),W=a(54004);function et(...wt){const zt=wt.length;if(0===zt)throw new Error("list of properties cannot be empty.");return(0,W.U)(R=>{let Z=R;for(let dt=0;dt{class wt{constructor(){this.isDragging=!1}}return wt.\u0275fac=function(R){return new(R||wt)},wt.\u0275prov=h.Yz7({token:wt,factory:wt.\u0275fac}),wt})(),Wt=(()=>{class wt{constructor(R,Z){this.sliderService=R,this.cdr=Z,this.tooltipVisible="default",this.active=!1,this.dir="ltr",this.style={},this.enterHandle=()=>{this.sliderService.isDragging||(this.toggleTooltip(!0),this.updateTooltipPosition(),this.cdr.detectChanges())},this.leaveHandle=()=>{this.sliderService.isDragging||(this.toggleTooltip(!1),this.cdr.detectChanges())}}ngOnChanges(R){const{offset:Z,value:dt,active:Nt,tooltipVisible:Qt,reverse:rn,dir:En}=R;(Z||rn||En)&&this.updateStyle(),dt&&(this.updateTooltipTitle(),this.updateTooltipPosition()),Nt&&this.toggleTooltip(!!Nt.currentValue),"always"===Qt?.currentValue&&Promise.resolve().then(()=>this.toggleTooltip(!0,!0))}focus(){var R;null===(R=this.handleEl)||void 0===R||R.nativeElement.focus()}toggleTooltip(R,Z=!1){if(Z||"default"===this.tooltipVisible&&this.tooltip)if(R){var dt;null===(dt=this.tooltip)||void 0===dt||dt.show()}else{var Nt;null===(Nt=this.tooltip)||void 0===Nt||Nt.hide()}}updateTooltipTitle(){this.tooltipTitle=this.tooltipFormatter?this.tooltipFormatter(this.value):`${this.value}`}updateTooltipPosition(){this.tooltip&&Promise.resolve().then(()=>{var R;return null===(R=this.tooltip)||void 0===R?void 0:R.updatePosition()})}updateStyle(){const Z=this.reverse,Nt=this.vertical?{[Z?"top":"bottom"]:`${this.offset}%`,[Z?"bottom":"top"]:"auto",transform:Z?null:"translateY(+50%)"}:{...this.getHorizontalStylePosition(),transform:`translateX(${Z?"rtl"===this.dir?"-":"+":"rtl"===this.dir?"+":"-"}50%)`};this.style=Nt,this.cdr.markForCheck()}getHorizontalStylePosition(){let R=this.reverse?"auto":`${this.offset}%`,Z=this.reverse?`${this.offset}%`:"auto";if("rtl"===this.dir){const dt=R;R=Z,Z=dt}return{left:R,right:Z}}}return wt.\u0275fac=function(R){return new(R||wt)(h.Y36(Lt),h.Y36(h.sBO))},wt.\u0275cmp=h.Xpm({type:wt,selectors:[["nz-slider-handle"]],viewQuery:function(R,Z){if(1&R&&(h.Gf(X,5),h.Gf(it.SY,5)),2&R){let dt;h.iGM(dt=h.CRH())&&(Z.handleEl=dt.first),h.iGM(dt=h.CRH())&&(Z.tooltip=dt.first)}},hostBindings:function(R,Z){1&R&&h.NdJ("mouseenter",function(){return Z.enterHandle()})("mouseleave",function(){return Z.leaveHandle()})},inputs:{vertical:"vertical",reverse:"reverse",offset:"offset",value:"value",tooltipVisible:"tooltipVisible",tooltipPlacement:"tooltipPlacement",tooltipFormatter:"tooltipFormatter",active:"active",dir:"dir"},exportAs:["nzSliderHandle"],features:[h.TTD],decls:2,vars:4,consts:[["tabindex","0","nz-tooltip","",1,"ant-slider-handle",3,"ngStyle","nzTooltipTitle","nzTooltipTrigger","nzTooltipPlacement"],["handle",""]],template:function(R,Z){1&R&&h._UZ(0,"div",0,1),2&R&&h.Q6J("ngStyle",Z.style)("nzTooltipTitle",null===Z.tooltipFormatter||"never"===Z.tooltipVisible?null:Z.tooltipTitle)("nzTooltipTrigger",null)("nzTooltipPlacement",Z.tooltipPlacement)},dependencies:[f.PC,it.SY],encapsulation:2,changeDetection:0}),(0,_.gn)([(0,j.yF)()],wt.prototype,"active",void 0),wt})(),en=(()=>{class wt{constructor(){this.offset=0,this.reverse=!1,this.dir="ltr",this.length=0,this.vertical=!1,this.included=!1,this.style={}}ngOnChanges(){const Z=this.reverse,dt=this.included?"visible":"hidden",Qt=this.length,rn=this.vertical?{[Z?"top":"bottom"]:`${this.offset}%`,[Z?"bottom":"top"]:"auto",height:`${Qt}%`,visibility:dt}:{...this.getHorizontalStylePosition(),width:`${Qt}%`,visibility:dt};this.style=rn}getHorizontalStylePosition(){let R=this.reverse?"auto":`${this.offset}%`,Z=this.reverse?`${this.offset}%`:"auto";if("rtl"===this.dir){const dt=R;R=Z,Z=dt}return{left:R,right:Z}}}return wt.\u0275fac=function(R){return new(R||wt)},wt.\u0275cmp=h.Xpm({type:wt,selectors:[["nz-slider-track"]],inputs:{offset:"offset",reverse:"reverse",dir:"dir",length:"length",vertical:"vertical",included:"included"},exportAs:["nzSliderTrack"],features:[h.TTD],decls:1,vars:1,consts:[[1,"ant-slider-track",3,"ngStyle"]],template:function(R,Z){1&R&&h._UZ(0,"div",0),2&R&&h.Q6J("ngStyle",Z.style)},dependencies:[f.PC],encapsulation:2,changeDetection:0}),(0,_.gn)([(0,j.Rn)()],wt.prototype,"offset",void 0),(0,_.gn)([(0,j.yF)()],wt.prototype,"reverse",void 0),(0,_.gn)([(0,j.Rn)()],wt.prototype,"length",void 0),(0,_.gn)([(0,j.yF)()],wt.prototype,"vertical",void 0),(0,_.gn)([(0,j.yF)()],wt.prototype,"included",void 0),wt})(),un=(()=>{class wt{constructor(){this.lowerBound=null,this.upperBound=null,this.marksArray=[],this.vertical=!1,this.included=!1,this.steps=[]}ngOnChanges(R){const{marksArray:Z,lowerBound:dt,upperBound:Nt,reverse:Qt}=R;(Z||Qt)&&this.buildSteps(),(Z||dt||Nt||Qt)&&this.togglePointActive()}trackById(R,Z){return Z.value}buildSteps(){const R=this.vertical?"bottom":"left";this.steps=this.marksArray.map(Z=>{const{value:dt,config:Nt}=Z;let Qt=Z.offset;return this.reverse&&(Qt=(this.max-dt)/(this.max-this.min)*100),{value:dt,offset:Qt,config:Nt,active:!1,style:{[R]:`${Qt}%`}}})}togglePointActive(){this.steps&&null!==this.lowerBound&&null!==this.upperBound&&this.steps.forEach(R=>{const Z=R.value;R.active=!this.included&&Z===this.upperBound||this.included&&Z<=this.upperBound&&Z>=this.lowerBound})}}return wt.\u0275fac=function(R){return new(R||wt)},wt.\u0275cmp=h.Xpm({type:wt,selectors:[["nz-slider-step"]],inputs:{lowerBound:"lowerBound",upperBound:"upperBound",marksArray:"marksArray",min:"min",max:"max",vertical:"vertical",included:"included",reverse:"reverse"},exportAs:["nzSliderStep"],features:[h.TTD],decls:2,vars:2,consts:[[1,"ant-slider-step"],["class","ant-slider-dot",3,"ant-slider-dot-active","ngStyle",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ant-slider-dot",3,"ngStyle"]],template:function(R,Z){1&R&&(h.TgZ(0,"div",0),h.YNc(1,lt,1,3,"span",1),h.qZA()),2&R&&(h.xp6(1),h.Q6J("ngForOf",Z.steps)("ngForTrackBy",Z.trackById))},dependencies:[f.sg,f.PC],encapsulation:2,changeDetection:0}),(0,_.gn)([(0,j.yF)()],wt.prototype,"vertical",void 0),(0,_.gn)([(0,j.yF)()],wt.prototype,"included",void 0),wt})(),bn=(()=>{class wt{constructor(){this.lowerBound=null,this.upperBound=null,this.marksArray=[],this.vertical=!1,this.included=!1,this.marks=[]}ngOnChanges(R){const{marksArray:Z,lowerBound:dt,upperBound:Nt,reverse:Qt}=R;(Z||Qt)&&this.buildMarks(),(Z||dt||Nt||Qt)&&this.togglePointActive()}trackById(R,Z){return Z.value}buildMarks(){const R=this.max-this.min;this.marks=this.marksArray.map(Z=>{const{value:dt,offset:Nt,config:Qt}=Z,rn=this.getMarkStyles(dt,R,Qt);return{label:Nn(Qt)?Qt.label:Qt,offset:Nt,style:rn,value:dt,config:Qt,active:!1}})}getMarkStyles(R,Z,dt){let Nt;const Qt=this.reverse?this.max+this.min-R:R;return Nt=this.vertical?{marginBottom:"-50%",bottom:(Qt-this.min)/Z*100+"%"}:{transform:"translate3d(-50%, 0, 0)",left:(Qt-this.min)/Z*100+"%"},Nn(dt)&&dt.style&&(Nt={...Nt,...dt.style}),Nt}togglePointActive(){this.marks&&null!==this.lowerBound&&null!==this.upperBound&&this.marks.forEach(R=>{const Z=R.value;R.active=!this.included&&Z===this.upperBound||this.included&&Z<=this.upperBound&&Z>=this.lowerBound})}}return wt.\u0275fac=function(R){return new(R||wt)},wt.\u0275cmp=h.Xpm({type:wt,selectors:[["nz-slider-marks"]],inputs:{lowerBound:"lowerBound",upperBound:"upperBound",marksArray:"marksArray",min:"min",max:"max",vertical:"vertical",included:"included",reverse:"reverse"},exportAs:["nzSliderMarks"],features:[h.TTD],decls:2,vars:2,consts:[[1,"ant-slider-mark"],["class","ant-slider-mark-text",3,"ant-slider-mark-active","ngStyle","innerHTML",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ant-slider-mark-text",3,"ngStyle","innerHTML"]],template:function(R,Z){1&R&&(h.TgZ(0,"div",0),h.YNc(1,mt,1,4,"span",1),h.qZA()),2&R&&(h.xp6(1),h.Q6J("ngForOf",Z.marks)("ngForTrackBy",Z.trackById))},dependencies:[f.sg,f.PC],encapsulation:2,changeDetection:0}),(0,_.gn)([(0,j.yF)()],wt.prototype,"vertical",void 0),(0,_.gn)([(0,j.yF)()],wt.prototype,"included",void 0),wt})();function Nn(wt){return"string"!=typeof wt}let $n=(()=>{class wt{constructor(R,Z,dt,Nt){this.sliderService=R,this.cdr=Z,this.platform=dt,this.directionality=Nt,this.nzDisabled=!1,this.nzDots=!1,this.nzIncluded=!0,this.nzRange=!1,this.nzVertical=!1,this.nzReverse=!1,this.nzMarks=null,this.nzMax=100,this.nzMin=0,this.nzStep=1,this.nzTooltipVisible="default",this.nzTooltipPlacement="top",this.nzOnAfterChange=new h.vpe,this.value=null,this.cacheSliderStart=null,this.cacheSliderLength=null,this.activeValueIndex=void 0,this.track={offset:null,length:null},this.handles=[],this.marksArray=null,this.bounds={lower:null,upper:null},this.dir="ltr",this.destroy$=new E.x}ngOnInit(){var R;this.dir=this.directionality.value,null===(R=this.directionality.change)||void 0===R||R.pipe((0,O.R)(this.destroy$)).subscribe(Z=>{this.dir=Z,this.cdr.detectChanges(),this.updateTrackAndHandles(),this.onValueChange(this.getValue(!0))}),this.handles=fe(this.nzRange?2:1),this.marksArray=this.nzMarks?this.generateMarkItems(this.nzMarks):null,this.bindDraggingHandlers(),this.toggleDragDisabled(this.nzDisabled),null===this.getValue()&&this.setValue(this.formatValue(null))}ngOnChanges(R){const{nzDisabled:Z,nzMarks:dt,nzRange:Nt}=R;Z&&!Z.firstChange?this.toggleDragDisabled(Z.currentValue):dt&&!dt.firstChange?this.marksArray=this.nzMarks?this.generateMarkItems(this.nzMarks):null:Nt&&!Nt.firstChange&&(this.handles=fe(Nt.currentValue?2:1),this.setValue(this.formatValue(null)))}ngOnDestroy(){this.unsubscribeDrag(),this.destroy$.next(),this.destroy$.complete()}writeValue(R){this.setValue(R,!0)}onValueChange(R){}onTouched(){}registerOnChange(R){this.onValueChange=R}registerOnTouched(R){this.onTouched=R}setDisabledState(R){this.nzDisabled=R,this.toggleDragDisabled(R)}onKeyDown(R){if(this.nzDisabled)return;const Z=R.keyCode,Nt=Z===S.oh||Z===S.JH;if(Z!==S.SV&&Z!==S.LH&&!Nt)return;R.preventDefault();let Qt=(Nt?-this.nzStep:this.nzStep)*(this.nzReverse?-1:1);Qt="rtl"===this.dir?-1*Qt:Qt,this.setActiveValue((0,j.xV)(this.nzRange?this.value[this.activeValueIndex]+Qt:this.value+Qt,this.nzMin,this.nzMax)),this.nzOnAfterChange.emit(this.getValue(!0))}onHandleFocusIn(R){this.activeValueIndex=R}setValue(R,Z=!1){Z?(this.value=this.formatValue(R),this.updateTrackAndHandles()):function se(wt,zt){return typeof wt==typeof zt&&(An(wt)&&An(zt)?(0,j.cO)(wt,zt):wt===zt)}(this.value,R)||(this.value=R,this.updateTrackAndHandles(),this.onValueChange(this.getValue(!0)))}getValue(R=!1){return R&&this.value&&An(this.value)?[...this.value].sort((Z,dt)=>Z-dt):this.value}getValueToOffset(R){let Z=R;return typeof Z>"u"&&(Z=this.getValue(!0)),An(Z)?Z.map(dt=>this.valueToOffset(dt)):this.valueToOffset(Z)}setActiveValueIndex(R){const Z=this.getValue();if(An(Z)){let Nt,dt=null,Qt=-1;Z.forEach((rn,En)=>{Nt=Math.abs(R-rn),(null===dt||Nt{En.offset=An(Z)?Z[jn]:Z,En.value=An(R)?R[jn]:R||0}),[this.bounds.lower,this.bounds.upper]=Qt,[this.track.offset,this.track.length]=rn,this.cdr.markForCheck()}onDragStart(R){this.toggleDragMoving(!0),this.cacheSliderProperty(),this.setActiveValueIndex(this.getLogicalValue(R)),this.setActiveValue(this.getLogicalValue(R)),this.showHandleTooltip(this.nzRange?this.activeValueIndex:0)}onDragMove(R){this.setActiveValue(this.getLogicalValue(R)),this.cdr.markForCheck()}getLogicalValue(R){return this.nzReverse?this.nzVertical||"rtl"!==this.dir?this.nzMax-R+this.nzMin:R:this.nzVertical||"rtl"!==this.dir?R:this.nzMax-R+this.nzMin}onDragEnd(){this.nzOnAfterChange.emit(this.getValue(!0)),this.toggleDragMoving(!1),this.cacheSliderProperty(!0),this.hideAllHandleTooltip(),this.cdr.markForCheck()}bindDraggingHandlers(){if(!this.platform.isBrowser)return;const R=this.slider.nativeElement,Z=this.nzVertical?"pageY":"pageX",dt={start:"mousedown",move:"mousemove",end:"mouseup",pluckKey:[Z]},Nt={start:"touchstart",move:"touchmove",end:"touchend",pluckKey:["touches","0",Z],filter:Qt=>Qt instanceof TouchEvent};[dt,Nt].forEach(Qt=>{const{start:rn,move:En,end:jn,pluckKey:Jn,filter:je=(()=>!0)}=Qt;Qt.startPlucked$=(0,N.R)(R,rn).pipe((0,L.h)(je),(0,V.b)(j.jJ),et(...Jn),(0,W.U)(le=>this.findClosestValue(le))),Qt.end$=(0,N.R)(document,jn),Qt.moveResolved$=(0,N.R)(document,En).pipe((0,L.h)(je),(0,V.b)(j.jJ),et(...Jn),(0,nt.x)(),(0,W.U)(le=>this.findClosestValue(le)),(0,nt.x)(),(0,O.R)(Qt.end$))}),this.dragStart$=(0,k.T)(dt.startPlucked$,Nt.startPlucked$),this.dragMove$=(0,k.T)(dt.moveResolved$,Nt.moveResolved$),this.dragEnd$=(0,k.T)(dt.end$,Nt.end$)}subscribeDrag(R=["start","move","end"]){-1!==R.indexOf("start")&&this.dragStart$&&!this.dragStart_&&(this.dragStart_=this.dragStart$.subscribe(this.onDragStart.bind(this))),-1!==R.indexOf("move")&&this.dragMove$&&!this.dragMove_&&(this.dragMove_=this.dragMove$.subscribe(this.onDragMove.bind(this))),-1!==R.indexOf("end")&&this.dragEnd$&&!this.dragEnd_&&(this.dragEnd_=this.dragEnd$.subscribe(this.onDragEnd.bind(this)))}unsubscribeDrag(R=["start","move","end"]){-1!==R.indexOf("start")&&this.dragStart_&&(this.dragStart_.unsubscribe(),this.dragStart_=null),-1!==R.indexOf("move")&&this.dragMove_&&(this.dragMove_.unsubscribe(),this.dragMove_=null),-1!==R.indexOf("end")&&this.dragEnd_&&(this.dragEnd_.unsubscribe(),this.dragEnd_=null)}toggleDragMoving(R){const Z=["move","end"];R?(this.sliderService.isDragging=!0,this.subscribeDrag(Z)):(this.sliderService.isDragging=!1,this.unsubscribeDrag(Z))}toggleDragDisabled(R){R?this.unsubscribeDrag():this.subscribeDrag(["start"])}findClosestValue(R){const Z=this.getSliderStartPosition(),dt=this.getSliderLength(),Nt=(0,j.xV)((R-Z)/dt,0,1),Qt=(this.nzMax-this.nzMin)*(this.nzVertical?1-Nt:Nt)+this.nzMin,rn=null===this.nzMarks?[]:Object.keys(this.nzMarks).map(parseFloat).sort((Jn,je)=>Jn-je);if(0!==this.nzStep&&!this.nzDots){const Jn=Math.round(Qt/this.nzStep)*this.nzStep;rn.push(Jn)}const En=rn.map(Jn=>Math.abs(Qt-Jn)),jn=rn[En.indexOf(Math.min(...En))];return 0===this.nzStep?jn:parseFloat(jn.toFixed((0,j.p8)(this.nzStep)))}valueToOffset(R){return(0,j.OY)(this.nzMin,this.nzMax,R)}getSliderStartPosition(){if(null!==this.cacheSliderStart)return this.cacheSliderStart;const R=(0,j.pW)(this.slider.nativeElement);return this.nzVertical?R.top:R.left}getSliderLength(){if(null!==this.cacheSliderLength)return this.cacheSliderLength;const R=this.slider.nativeElement;return this.nzVertical?R.clientHeight:R.clientWidth}cacheSliderProperty(R=!1){this.cacheSliderStart=R?null:this.getSliderStartPosition(),this.cacheSliderLength=R?null:this.getSliderLength()}formatValue(R){return(0,j.kK)(R)?this.nzRange?[this.nzMin,this.nzMax]:this.nzMin:function vn(wt,zt){return!(!An(wt)&&isNaN(wt)||An(wt)&&wt.some(R=>isNaN(R)))&&function oe(wt,zt=!1){if(An(wt)!==zt)throw function ae(){return new Error('The "nzRange" can\'t match the "ngModel"\'s type, please check these properties: "nzRange", "ngModel", "nzDefaultValue".')}();return!0}(wt,zt)}(R,this.nzRange)?An(R)?R.map(Z=>(0,j.xV)(Z,this.nzMin,this.nzMax)):(0,j.xV)(R,this.nzMin,this.nzMax):this.nzDefaultValue?this.nzDefaultValue:this.nzRange?[this.nzMin,this.nzMax]:this.nzMin}showHandleTooltip(R=0){this.handles.forEach((Z,dt)=>{Z.active=dt===R})}hideAllHandleTooltip(){this.handles.forEach(R=>R.active=!1)}generateMarkItems(R){const Z=[];for(const dt in R)if(R.hasOwnProperty(dt)){const Nt=R[dt],Qt="number"==typeof dt?dt:parseFloat(dt);Qt>=this.nzMin&&Qt<=this.nzMax&&Z.push({value:Qt,offset:this.valueToOffset(Qt),config:Nt})}return Z.length?Z:null}}return wt.\u0275fac=function(R){return new(R||wt)(h.Y36(Lt),h.Y36(h.sBO),h.Y36(rt.t4),h.Y36(at.Is,8))},wt.\u0275cmp=h.Xpm({type:wt,selectors:[["nz-slider"]],viewQuery:function(R,Z){if(1&R&&(h.Gf(vt,7),h.Gf(Wt,5)),2&R){let dt;h.iGM(dt=h.CRH())&&(Z.slider=dt.first),h.iGM(dt=h.CRH())&&(Z.handlerComponents=dt)}},hostBindings:function(R,Z){1&R&&h.NdJ("keydown",function(Nt){return Z.onKeyDown(Nt)})},inputs:{nzDisabled:"nzDisabled",nzDots:"nzDots",nzIncluded:"nzIncluded",nzRange:"nzRange",nzVertical:"nzVertical",nzReverse:"nzReverse",nzDefaultValue:"nzDefaultValue",nzMarks:"nzMarks",nzMax:"nzMax",nzMin:"nzMin",nzStep:"nzStep",nzTooltipVisible:"nzTooltipVisible",nzTooltipPlacement:"nzTooltipPlacement",nzTipFormatter:"nzTipFormatter"},outputs:{nzOnAfterChange:"nzOnAfterChange"},exportAs:["nzSlider"],features:[h._Bn([{provide:y.JU,useExisting:(0,h.Gpc)(()=>wt),multi:!0},Lt]),h.TTD],decls:7,vars:17,consts:[[1,"ant-slider"],["slider",""],[1,"ant-slider-rail"],[3,"vertical","included","offset","length","reverse","dir"],[3,"vertical","min","max","lowerBound","upperBound","marksArray","included","reverse",4,"ngIf"],[3,"vertical","reverse","offset","value","active","tooltipFormatter","tooltipVisible","tooltipPlacement","dir","focusin",4,"ngFor","ngForOf"],[3,"vertical","min","max","lowerBound","upperBound","marksArray","included","reverse"],[3,"vertical","reverse","offset","value","active","tooltipFormatter","tooltipVisible","tooltipPlacement","dir","focusin"]],template:function(R,Z){1&R&&(h.TgZ(0,"div",0,1),h._UZ(2,"div",2)(3,"nz-slider-track",3),h.YNc(4,Pt,1,8,"nz-slider-step",4),h.YNc(5,Mt,1,9,"nz-slider-handle",5),h.YNc(6,Ot,1,8,"nz-slider-marks",4),h.qZA()),2&R&&(h.ekj("ant-slider-rtl","rtl"===Z.dir)("ant-slider-disabled",Z.nzDisabled)("ant-slider-vertical",Z.nzVertical)("ant-slider-with-marks",Z.marksArray),h.xp6(3),h.Q6J("vertical",Z.nzVertical)("included",Z.nzIncluded)("offset",Z.track.offset)("length",Z.track.length)("reverse",Z.nzReverse)("dir",Z.dir),h.xp6(1),h.Q6J("ngIf",Z.marksArray),h.xp6(1),h.Q6J("ngForOf",Z.handles),h.xp6(1),h.Q6J("ngIf",Z.marksArray))},dependencies:[at.Lv,f.sg,f.O5,en,Wt,un,bn],encapsulation:2,changeDetection:0}),(0,_.gn)([(0,j.yF)()],wt.prototype,"nzDisabled",void 0),(0,_.gn)([(0,j.yF)()],wt.prototype,"nzDots",void 0),(0,_.gn)([(0,j.yF)()],wt.prototype,"nzIncluded",void 0),(0,_.gn)([(0,j.yF)()],wt.prototype,"nzRange",void 0),(0,_.gn)([(0,j.yF)()],wt.prototype,"nzVertical",void 0),(0,_.gn)([(0,j.yF)()],wt.prototype,"nzReverse",void 0),(0,_.gn)([(0,j.Rn)()],wt.prototype,"nzMax",void 0),(0,_.gn)([(0,j.Rn)()],wt.prototype,"nzMin",void 0),(0,_.gn)([(0,j.Rn)()],wt.prototype,"nzStep",void 0),wt})();function An(wt){return wt instanceof Array&&2===wt.length}function fe(wt){return Array(wt).fill(0).map(()=>({offset:null,value:null,active:!1}))}let Rt=(()=>{class wt{}return wt.\u0275fac=function(R){return new(R||wt)},wt.\u0275mod=h.oAB({type:wt}),wt.\u0275inj=h.cJS({imports:[at.vT,f.ez,rt.ud,it.cg]}),wt})();const Ft=["flink-node",""];function Jt(wt,zt){if(1&wt&&(h.TgZ(0,"div",12),h._uU(1),h.qZA()),2&wt){const R=h.oxw();h.xp6(1),h.hij(" Low Watermark: ",R.lowWatermark," ")}}function dn(wt,zt){if(1&wt&&(h.TgZ(0,"div",13),h._uU(1),h.qZA()),2&wt){const R=h.oxw();h.xp6(1),h.hij(" Operation: ",R.operatorStrategy," ")}}let Sn=(()=>{class wt{constructor(R){this.cd=R,this.backPressuredPercentage=NaN,this.busyPercentage=NaN,this.dataSkewPercentage=NaN,this.height=0,this.backgroundBusyColor="#ee6464",this.backgroundDefaultColor="#5db1ff",this.backgroundBackPressuredColor="#888888",this.borderBusyColor="#ee2222",this.borderDefaultColor="#1890ff",this.borderBackPressuredColor="#000000",this.isValid=Z=>void 0===Z||0===Z||isNaN(Z),this.toRGBA=Z=>{const dt=Z.length,Nt=[],Qt=parseInt(Z.slice(1),16);return Nt[0]=Qt>>16&255,Nt[1]=Qt>>8&255,Nt[2]=255&Qt,Nt[3]=9===dt||5===dt?Math.round((Qt>>24&255)/255*1e4)/1e4:-1,Nt},this.blend=(Z,dt,Nt=.5)=>{Z=Z.trim(),dt=dt.trim(),Nt=Nt<0?-1*Nt:Nt;const rn=this.toRGBA(Z),En=this.toRGBA(dt);return"r"===dt[0]?`rgb${"a"===dt[3]?"a(":"("}${Math.round((En[0]-rn[0])*Nt+rn[0])},${Math.round((En[1]-rn[1])*Nt+rn[1])},${Math.round((En[2]-rn[2])*Nt+rn[2])}${rn[3]<0&&En[3]<0?"":`,${rn[3]>-1&&En[3]>-1?Math.round(1e4*((En[3]-rn[3])*Nt+rn[3]))/1e4:En[3]<0?rn[3]:En[3]}`})`:`#${(4294967296+16777216*(rn[3]>-1&&En[3]>-1?Math.round(255*((En[3]-rn[3])*Nt+rn[3])):En[3]>-1?Math.round(255*En[3]):rn[3]>-1?Math.round(255*rn[3]):255)+65536*Math.round((En[0]-rn[0])*Nt+rn[0])+256*Math.round((En[1]-rn[1])*Nt+rn[1])+Math.round((En[2]-rn[2])*Nt+rn[2])).toString(16).slice(rn[3]>-1||En[3]>-1?1:3)}`}}decodeHTML(R){return(new DOMParser).parseFromString(`${R}`,"text/html").body.textContent}set node(R){let Z=this.decodeHTML(R.description);R.detail&&(Z=this.decodeHTML(R.detail.name)),this.operator=this.decodeHTML(R.operator),this.operatorStrategy=this.decodeHTML(R.operator_strategy),this.parallelism=R.parallelism,this.lowWatermark=R.lowWatermark,this.isValid(R.backPressuredPercentage)&&(this.backPressuredPercentage=R.backPressuredPercentage),this.isValid(R.busyPercentage)&&(this.busyPercentage=R.busyPercentage),this.dataSkewPercentage=R.dataSkewPercentage,this.height=R.height||0,this.id=R.id,this.description=Z&&Z.length>300?`${Z.slice(0,300)}...`:Z}update(R){this.node=R,this.backgroundColor=this.backgroundDefaultColor,this.borderColor=this.borderDefaultColor,R.busyPercentage&&(this.backgroundColor=this.blend(this.backgroundColor,this.backgroundBusyColor,R.busyPercentage/100),this.borderColor=this.blend(this.borderColor,this.borderBusyColor,R.busyPercentage/100)),R.backPressuredPercentage&&(this.backgroundColor=this.blend(this.backgroundColor,this.backgroundBackPressuredColor,R.backPressuredPercentage/100),this.borderColor=this.blend(this.borderColor,this.borderBackPressuredColor,R.backPressuredPercentage/100)),this.cd.markForCheck()}prettyPrint(R){return void 0===R||isNaN(R)?"N/A":`${Math.round(R)}%`}}return wt.\u0275fac=function(R){return new(R||wt)(h.Y36(h.sBO))},wt.\u0275cmp=h.Xpm({type:wt,selectors:[["","flink-node",""]],inputs:{node:"node"},standalone:!0,features:[h.jDz],attrs:Ft,decls:18,vars:15,consts:[[1,"node","node-rect"],[1,"node-labels-container"],[1,"node-label-wrapper"],[1,"content-wrap"],[1,"detail"],[1,"detail","description"],[1,"node-label"],["title","Maximum back pressured percentage across all subtasks",1,"node-label","metric"],["title","Maximum busy percentage across all subtasks",1,"node-label","metric"],["title","Data skew percentage across all subtasks",1,"node-label","metric"],["class","node-label metric",4,"ngIf"],["class","detail last",4,"ngIf"],[1,"node-label","metric"],[1,"detail","last"]],template:function(R,Z){1&R&&(h.O4$(),h.TgZ(0,"g",0)(1,"foreignObject",1),h.kcU(),h.TgZ(2,"div",2)(3,"h4",3)(4,"div",4),h._uU(5),h.qZA(),h.TgZ(6,"div",5),h._uU(7),h.qZA(),h.TgZ(8,"div",6),h._uU(9),h.qZA(),h.TgZ(10,"div",7),h._uU(11),h.qZA(),h.TgZ(12,"div",8),h._uU(13),h.qZA(),h.TgZ(14,"div",9),h._uU(15),h.qZA(),h.YNc(16,Jt,2,1,"div",10),h.YNc(17,dn,2,1,"div",11),h.qZA()()()()),2&R&&(h.xp6(1),h.uIk("y",Z.height?-Z.height/2:0)("width",205)("height",Z.height),h.xp6(1),h.Udp("border-color",Z.borderColor)("background-color",Z.backgroundColor),h.xp6(3),h.Oqu(Z.operator),h.xp6(2),h.Oqu(Z.description),h.xp6(2),h.hij("Parallelism: ",Z.parallelism,""),h.xp6(2),h.hij(" Backpressured (max): ",Z.prettyPrint(Z.backPressuredPercentage)," "),h.xp6(2),h.hij(" Busy (max): ",Z.prettyPrint(Z.busyPercentage)," "),h.xp6(2),h.hij(" Data Skew: ",Z.prettyPrint(Z.dataSkewPercentage)," "),h.xp6(1),h.Q6J("ngIf",Z.lowWatermark),h.xp6(1),h.Q6J("ngIf",Z.operatorStrategy))},dependencies:[f.O5],styles:["[_nghost-%COMP%]{cursor:pointer}[_nghost-%COMP%]   .node-label-wrapper[_ngcontent-%COMP%]{display:inline-block;vertical-align:top;width:100%;height:100%;padding:15px;border-width:1px;border-style:solid;border-radius:0;color:#000000d9;font-size:12px;line-height:1.2;text-align:left;word-break:break-all;cursor:pointer;pointer-events:all}[_nghost-%COMP%]   .node-label-wrapper[_ngcontent-%COMP%]   .content-wrap[_ngcontent-%COMP%]{font-size:12px}[_nghost-%COMP%]   .node-label-wrapper[_ngcontent-%COMP%]   .node-label[_ngcontent-%COMP%]{width:100%;margin-bottom:12px;font-weight:700;text-align:center}[_nghost-%COMP%]   .node-label-wrapper[_ngcontent-%COMP%]   .node-label[_ngcontent-%COMP%]:first-child{margin-top:24px}[_nghost-%COMP%]   .node-label-wrapper[_ngcontent-%COMP%]   .node-label.metric[_ngcontent-%COMP%]{margin-bottom:2px;color:#00000073;font-weight:400;font-size:12px}[_nghost-%COMP%]   .node-label-wrapper[_ngcontent-%COMP%]   .detail[_ngcontent-%COMP%]{margin-bottom:2px;color:#000000d9}[_nghost-%COMP%]   .node-label-wrapper[_ngcontent-%COMP%]   .detail.description[_ngcontent-%COMP%]{color:#000000d9}[_nghost-%COMP%]   .node-label-wrapper[_ngcontent-%COMP%]   .detail.last[_ngcontent-%COMP%]{margin-bottom:0}"],changeDetection:0}),wt})();const zn=["svgContainer"],Zn=["*"];let ue=(()=>{class wt{constructor(R,Z){this.el=R,this.cdr=Z,this.zoom=1,this.transform="translate(0, 0) scale(1)",this.containerTransform={x:0,y:0,k:1},this.nzMaxZoom=5,this.nzMinZoom=.1,this.clickBgEvent=new h.vpe,this.zoomEvent=new h.vpe,this.transformEvent=new h.vpe}zoomTo(R){this.svgSelect.transition().duration(0).call(this.zoomController.scaleTo,R)}setPositionByTransform(R,Z=!1){this.svgSelect.transition().duration(Z?500:0).call(this.zoomController.transform,R)}ngOnInit(){this.svgSelect=(0,x.Z)(this.svgContainer.nativeElement),this.zoomController=(0,v.sP)().scaleExtent([this.nzMinZoom,this.nzMaxZoom]).on("zoom",({transform:R})=>{const{x:Z,y:dt,k:Nt}=R;this.zoom=Nt,this.containerTransform=R,isNaN(Z)||(this.transform=`translate(${Z} ,${dt})scale(${Nt})`),this.zoomEvent.emit(Nt),this.transformEvent.emit(R),this.cdr.markForCheck()}),this.svgSelect.call(this.zoomController).on("wheel.zoom",null)}ngAfterContentInit(){const R=this.el.nativeElement;if(null!==R.parentNode){const Z=R.parentNode.getBoundingClientRect();this.width=Z.width,this.height=Z.height,this.zoomTo(this.zoom)}}}return wt.\u0275fac=function(R){return new(R||wt)(h.Y36(h.SBq),h.Y36(h.sBO))},wt.\u0275cmp=h.Xpm({type:wt,selectors:[["flink-svg-container"]],viewQuery:function(R,Z){if(1&R&&h.Gf(zn,7),2&R){let dt;h.iGM(dt=h.CRH())&&(Z.svgContainer=dt.first)}},inputs:{nzMaxZoom:"nzMaxZoom",nzMinZoom:"nzMinZoom"},outputs:{clickBgEvent:"clickBgEvent",zoomEvent:"zoomEvent",transformEvent:"transformEvent"},standalone:!0,features:[h.jDz],ngContentSelectors:Zn,decls:6,vars:1,consts:[[1,"svg-container"],["width","100%","height","100%",1,"svg-inner"],["svgContainer",""],["width","100%","height","100%","fill","transparent",1,"background",3,"click"]],template:function(R,Z){1&R&&(h.F$t(),h.TgZ(0,"div",0),h.O4$(),h.TgZ(1,"svg",1,2)(3,"rect",3),h.NdJ("click",function(Nt){return Z.clickBgEvent.emit(Nt)}),h.qZA(),h.TgZ(4,"g"),h.Hsn(5),h.qZA()()()),2&R&&(h.xp6(4),h.uIk("transform",Z.transform))},styles:["[_nghost-%COMP%]{position:relative;display:block;width:100%;height:100%}.svg-container[_ngcontent-%COMP%]{position:relative;display:block;width:100%;height:100%}.svg-container[_ngcontent-%COMP%]   .svg-inner[_ngcontent-%COMP%]{position:absolute;top:0;left:0}.svg-container[_ngcontent-%COMP%]   .svg-inner[_ngcontent-%COMP%]   .background[_ngcontent-%COMP%]{cursor:move}"],changeDetection:0}),wt})();var Ln=a(98638),Tt=a(59695);const Gt=["graphElement"],Xt=["overlayElement"],cn=["nodeElement"],hn=["linkElement"];function xn(wt,zt){if(1&wt&&(h.O4$(),h.TgZ(0,"g",11,12),h._UZ(2,"path",13),h.TgZ(3,"text",14)(4,"textPath",15),h._uU(5),h.qZA()()()),2&wt){const R=zt.$implicit;h.Q6J("id",R.id),h.xp6(2),h.ekj("focused",null==R.options?null:R.options.focused),h.Q6J("id","link-"+R.id),h.uIk("marker-end","url(#end-arrow"+(null!=R.options&&R.options.focused?"-focus":"")+")"),h.xp6(2),h.Udp("dominant-baseline",null==R||null==R.options?null:R.options.dominantBaseline),h.uIk("href","#link-"+R.id,null,"xlink"),h.xp6(1),h.AsE(" ",null==R||null==R.detail?null:R.detail.ship_strategy," ",null==R||null==R.detail?null:R.detail.local_strategy," ")}}function Pn(wt,zt){if(1&wt){const R=h.EpF();h.O4$(),h.TgZ(0,"g",16,17),h.NdJ("click",function(dt){const Qt=h.CHM(R).$implicit,rn=h.oxw();return h.KtG(rn.clickNode(Qt,dt))})("mouseenter",function(dt){h.CHM(R);const Nt=h.oxw();return h.KtG(Nt.onNodeMouseEnter(dt))})("mouseleave",function(dt){h.CHM(R);const Nt=h.oxw();return h.KtG(Nt.onNodeMouseLeave(dt))}),h._UZ(2,"g",18),h.qZA()}if(2&wt){const R=zt.$implicit;h.ekj("focused",null==R.options?null:R.options.focused),h.Q6J("id",R.id),h.xp6(2),h.Q6J("node",R)}}var Mn=(()=>{return(wt=Mn||(Mn={})).Hidden="hidden",wt.Visible="visible",Mn;var wt})();let Fn=(()=>{class wt extends class Vt{constructor(){this.config={ranker:"network-simplex",align:"DL",marginx:20,marginy:20,edgesep:150,ranksep:150},this.layoutNodes=[],this.layoutLinks=[]}createGraph(zt={}){this.graph=new Tt.graphlib.Graph(zt),this.graph.setGraph({rankdir:"LR",...this.config}),this.graph.setDefaultEdgeLabel(()=>({}))}setNodes(zt){zt.forEach(R=>{R.width=R.width||48,R.height=R.height||48,this.graph.setNode(R.id,R)})}setEdge(zt){zt.forEach(R=>{let Z=0;R.local_strategy&&(Z+=R.local_strategy.length),R.ship_strategy&&(Z+=R.ship_strategy.length),R.width=3*(Z||1),this.graph.setEdge(R.source,R.target,R)})}initLayout(){if(!this.graph)return Promise.reject();this.layoutNodes=[],this.copyLayoutNodes=[],this.layoutLinks=[],this.copyLayoutLinks=[],Tt.layout(this.graph);const zt=this.graph.graph();return zt.width{const Z=this.graph.edge(R);Z.height=Z.width,Z.width=null}),Tt.layout(this.graph)),this.graph.nodes().forEach(R=>{const Z=this.graph.node(R),dt=`translate(${Z.x-Z.width/2||0}, ${Z.y-.5||0})`;Z.options={transform:dt,oldTransform:dt,scale:1,oldScale:1,focused:!1},this.layoutNodes.push({...Z,options:{...Z.options}}),this.copyLayoutNodes.push({...Z,options:{...Z.options}})}),this.graph.edges().forEach(R=>{const Z=this.graph.edge(R),dt=this.generateLine(Z.points),Nt={id:Z.id,source:Z.source,target:Z.target,points:[...Z.points],options:{line:dt,oldLine:dt,width:1,oldWidth:1,focused:!1,dominantBaseline:this.getDominantBaseline(Z)},detail:{...Z}};this.layoutLinks.push({...Nt,options:{...Nt.options}}),this.copyLayoutLinks.push({...Nt,options:{...Nt.options}})}),Promise.resolve()}getDominantBaseline(zt){return zt.points[zt.points.length-1].x{const dt=this.copyLayoutNodes.find(Nt=>Nt.id===Z.id);dt&&(Z.options.oldScale=Z.options.scale,Z.options.scale=dt.options.scale,Z.options.focused=!1)});const R=this.layoutNodes.find(Z=>Z.id===zt.nodeId);if(R){const Z=this.circleNodes(R);R.options.oldScale=R.options.scale,R.options.scale=1.2*R.options.oldScale,R.options.focused=!0;const dt=R.x+45,Nt=R.y,Qt=[];return this.layoutLinks.forEach(rn=>{rn.options.focused=rn.source===zt.nodeId||rn.target===zt.nodeId,rn.options.focused&&Qt.push(rn.id)}),Promise.resolve({focusedLinkIds:Qt,circularNodeIds:Z.map(rn=>rn.id),transform:{x:zt.transform.x+zt.x-dt,y:zt.transform.y+zt.y-Nt,k:1}})}return Promise.reject()}recoveryLayout(){return this.layoutNodes.forEach(zt=>{const R=this.copyLayoutNodes.find(Z=>Z.id===zt.id);R&&(zt.options.oldTransform=zt.options.transform,zt.options.transform=R.options.transform,zt.options.oldScale=zt.options.scale,zt.options.scale=R.options.scale,zt.x=R.x,zt.y=R.y,zt.options.focused=!1)}),this.layoutLinks.forEach(zt=>{zt.options.focused=!1;const R=this.copyLayoutLinks.find(Z=>Z.id===zt.id);R&&(zt.points=[...R.points],zt.options.oldLine=zt.options.line,zt.options.line=R.options.line,zt.options.oldWidth=zt.options.width,zt.options.width=1)}),Promise.resolve()}circleNodes(zt){const R=[];for(const Z of this.layoutLinks){if(Z.target===zt.id){const dt=this.layoutNodes.find(Nt=>Nt.id===Z.source);dt&&R.push(dt)}if(Z.source===zt.id){const dt=this.layoutNodes.find(Nt=>Nt.id===Z.target);dt&&R.push(dt)}}return R}generateLine(zt){const R=zt;return(0,Ln.line)().x(dt=>dt.x).y(dt=>dt.y).curve(Ln.curveLinear)(R)}}{constructor(R,Z,dt){super(),this.cd=R,this.zone=Z,this.elementRef=dt,this.visibility=Mn.Hidden,this.circleNodeIds=[],this.focusedLinkIds=[],this.zoom=1,this.cacheTransform={x:0,y:0,k:1},this.oldTransform={x:0,y:0,k:1},this.cacheNodes=[],this.cacheLinks=[],this.xCenter=2,this.yCenter=2,this.nodeClick=new h.vpe}updateNode(R,Z){const Nt=this.rectNodeComponents.find(Qt=>Qt.id===R);if(Nt){const Qt=this.cacheNodes.find(rn=>rn.id===R);Nt.update({...Z,width:Qt.width,height:Qt.height})}}focusNode(R,Z=!1){const dt=this.layoutNodes.find(Nt=>Nt.id===R.id);this.clickNode(dt,null,Z,!1)}zoomToLevel(R){this.svgContainer.zoomTo(R)}moveToCenter(){if(this.graph&&this.graph.graph()){this.visibility=Mn.Visible;const R=this.elementRef.nativeElement.getBoundingClientRect(),Z=this.graph.graph();this.cacheTransform.k=Math.min(R.height/(Z.height+200),R.width/(Z.width+120),1);const dt=Z.width*this.cacheTransform.k,Nt=Z.height*this.cacheTransform.k;let Qt=(R.width-dt)/2,rn=(R.height-Nt)/2;(dt<0||Nt<0)&&(Qt=0,rn=0),this.zoom=this.cacheTransform.k,this.cacheTransform.x=Qt,this.cacheTransform.y=rn;const En=v.CR.translate(Qt,rn).scale(this.zoom);this.svgContainer.setPositionByTransform(En)}}flush(R,Z,dt=!1){return new Promise(Nt=>{this.cacheNodes=[...R],this.cacheLinks=[...Z],this.zone.run(()=>{this.selectedNodeId=null,this.createGraph({compound:!0}),this.setNodes(R),this.setEdge(Z),requestAnimationFrame(()=>{this.initLayout().then(()=>{requestAnimationFrame(()=>{this.redrawLines(),this.redrawNodes(),this.moveToCenter(),dt?(this.visibility=Mn.Hidden,setTimeout(()=>{this.resetNodeSize().then(()=>Nt())},300)):Nt()}),this.cd.markForCheck()})})})})}trackByLink(R,Z){return Z.id}trackByNode(R,Z){return Z.id}resetNodeSize(){return this.graphElement.nativeElement.querySelectorAll(".node-group").forEach(R=>{const Z=R.querySelector(".content-wrap");if(Z){const dt=Z.getBoundingClientRect().height,Nt=Z.getBoundingClientRect().width,Qt=this.cacheNodes.find(rn=>rn.id===R.id);Qt&&(Qt.height=dt/this.zoom+30+15,Qt.width=Nt/this.zoom+30)}}),this.flush(this.cacheNodes,this.cacheLinks,!1)}redrawLines(R=!0){this.linkElements.map(Z=>{const dt=this.layoutLinks.find(Nt=>Nt.id===Z.nativeElement.id);dt&&(0,x.Z)(Z.nativeElement).select(".edge").attr("d",dt.options.oldLine).attr("stroke-width",dt.options.oldWidth).transition().duration(R?500:0).attr("d",dt.options.line).attr("stroke-width",dt.options.width)})}redrawNodes(R=!0){this.nodeElements.map(Z=>{const dt=this.layoutNodes.find(Nt=>Nt.id===Z.nativeElement.id);if(dt){const Nt=(0,x.Z)(Z.nativeElement);R?Nt.attr("transform",`${dt.options.oldTransform},scale(${dt.options.oldScale}, ${dt.options.oldScale})`).transition().duration(500).attr("transform",`${dt.options.transform},scale(${dt.options.scale}, ${dt.options.scale})`):Nt.attr("transform",`${dt.options.transform},scale(${dt.options.scale}, ${dt.options.scale})`)}})}clickNode(R,Z,dt=!1,Nt=!0){if(Z&&Z.stopPropagation(),R){if(Nt&&this.nodeClick.emit(R),this.selectedNodeId||(this.oldTransform={...this.svgContainer.containerTransform}),this.selectedNodeId===R.id&&!dt)return;this.selectedNodeId=R.id;const Qt=this.elementRef.nativeElement.getBoundingClientRect(),rn=Qt.width/this.xCenter-this.svgContainer.containerTransform.x,En=Qt.height/this.yCenter-this.svgContainer.containerTransform.y;this.zone.run(()=>{this.zoomFocusLayout({x:rn,y:En,transform:this.svgContainer.containerTransform,nodeId:R.id,zoom:this.svgContainer?this.svgContainer.zoom:1}).then(({transform:jn,focusedLinkIds:Jn,circularNodeIds:je})=>{this.focusedLinkIds=[...Jn],this.circleNodeIds=[...je],requestAnimationFrame(()=>{const le=v.CR.translate(jn.x,jn.y).scale(jn.k);this.svgContainer.setPositionByTransform(le,!0),this.redrawNodes(!dt)}),this.graphElement.nativeElement.appendChild(this.overlayElement.nativeElement),this.graphElement.nativeElement.querySelectorAll(".link-group").forEach(le=>{-1!==this.focusedLinkIds.indexOf(le.id)&&this.graphElement.nativeElement.appendChild(le)}),this.graphElement.nativeElement.querySelectorAll(".node-group").forEach(le=>{-1!==[this.selectedNodeId,...this.circleNodeIds].indexOf(le.id)&&this.graphElement.nativeElement.appendChild(le)}),this.cd.markForCheck()})})}}redrawGraph(){this.selectedNodeId=null,this.circleNodeIds=[],this.focusedLinkIds=[],this.recoveryLayout().then(()=>{requestAnimationFrame(()=>{if(0===this.oldTransform.x&&0===this.oldTransform.y&&1===this.oldTransform.k)this.moveToCenter();else{const R=v.CR.translate(this.oldTransform.x,this.oldTransform.y).scale(this.oldTransform.k);this.svgContainer.setPositionByTransform(R,!0),this.redrawLines(),this.redrawNodes()}}),this.cd.markForCheck()})}onTransform(R){this.cd.detectChanges(),this.cacheTransform.x=R.x,this.cacheTransform.y=R.y,this.cacheTransform.k=R.k,this.zoom=R.k}onNodeMouseEnter(R){this.graphElement.nativeElement.appendChild(R.target),this.layoutLinks.forEach(Z=>{-1!==Z.id.split("-").indexOf(R.target.id)&&(Z.options.focused=!0)}),this.cd.detectChanges()}onNodeMouseLeave(){this.layoutLinks.forEach(R=>{R.options.focused=-1!==this.focusedLinkIds.indexOf(R.id)}),this.graphElement.nativeElement.appendChild(this.overlayElement.nativeElement),this.graphElement.nativeElement.querySelectorAll(".link-group").forEach(R=>{-1!==this.focusedLinkIds.indexOf(R.id)&&this.graphElement.nativeElement.appendChild(R)}),this.graphElement.nativeElement.querySelectorAll(".node-group").forEach(R=>{-1!==[this.selectedNodeId,...this.circleNodeIds].indexOf(R.id)&&this.graphElement.nativeElement.appendChild(R)}),this.cd.detectChanges()}}return wt.\u0275fac=function(R){return new(R||wt)(h.Y36(h.sBO),h.Y36(h.R0b),h.Y36(h.SBq))},wt.\u0275cmp=h.Xpm({type:wt,selectors:[["flink-dagre"]],viewQuery:function(R,Z){if(1&R&&(h.Gf(ue,7),h.Gf(Gt,7),h.Gf(Xt,7),h.Gf(cn,5),h.Gf(hn,5),h.Gf(Sn,5)),2&R){let dt;h.iGM(dt=h.CRH())&&(Z.svgContainer=dt.first),h.iGM(dt=h.CRH())&&(Z.graphElement=dt.first),h.iGM(dt=h.CRH())&&(Z.overlayElement=dt.first),h.iGM(dt=h.CRH())&&(Z.nodeElements=dt),h.iGM(dt=h.CRH())&&(Z.linkElements=dt),h.iGM(dt=h.CRH())&&(Z.rectNodeComponents=dt)}},inputs:{xCenter:"xCenter",yCenter:"yCenter"},outputs:{nodeClick:"nodeClick"},standalone:!0,features:[h.qOj,h.jDz],decls:13,vars:13,consts:[[3,"transformEvent"],[1,"graph"],["graphElement",""],["id","end-arrow","viewBox","1 0 10 10","refX","12","refY","3.5","markerWidth","10","markerHeight","10","orient","auto",1,"edge-marker"],["points","0 0, 10 3.5, 0 7"],["id","end-arrow-focus","viewBox","1 0 10 10","refX","12","refY","3.5","markerWidth","10","markerHeight","15","orient","auto",1,"edge-marker-focus"],["class","link-group",3,"id",4,"ngFor","ngForOf","ngForTrackBy"],["class","node-group",3,"focused","id","click","mouseenter","mouseleave",4,"ngFor","ngForOf","ngForTrackBy"],["transform","scale(999999)","x","-1","y","-1","width","2","height","2",1,"nodes-chart-overlay"],["overlayElement",""],["nzVertical","",3,"nzTipFormatter","nzMin","nzMax","nzStep","ngModel","ngModelChange"],[1,"link-group",3,"id"],["linkElement",""],[1,"edge",3,"id"],["text-anchor","middle","dy","20",1,"edge-label"],["startOffset","50%",1,"text-path"],[1,"node-group",3,"id","click","mouseenter","mouseleave"],["nodeElement",""],["flink-node","",3,"node"]],template:function(R,Z){1&R&&(h.TgZ(0,"flink-svg-container",0),h.NdJ("transformEvent",function(Nt){return Z.onTransform(Nt)}),h.O4$(),h.TgZ(1,"g",1,2)(3,"defs")(4,"marker",3),h._UZ(5,"polygon",4),h.qZA(),h.TgZ(6,"marker",5),h._UZ(7,"polygon",4),h.qZA()(),h.YNc(8,xn,6,10,"g",6),h.YNc(9,Pn,3,4,"g",7),h._UZ(10,"rect",8,9),h.qZA()(),h.kcU(),h.TgZ(12,"nz-slider",10),h.NdJ("ngModelChange",function(Nt){return Z.zoomToLevel(Nt)}),h.qZA()),2&R&&(h.Udp("visibility",Z.visibility),h.xp6(8),h.Q6J("ngForOf",Z.layoutLinks)("ngForTrackBy",Z.trackByLink),h.xp6(1),h.Q6J("ngForOf",Z.layoutNodes)("ngForTrackBy",Z.trackByNode),h.xp6(1),h.ekj("active",Z.selectedNodeId),h.xp6(2),h.Q6J("nzTipFormatter",null)("nzMin",.1)("nzMax",5)("nzStep",.01)("ngModel",Z.zoom))},dependencies:[ue,Sn,Rt,$n,y.u5,y.JJ,y.On,f.ez,f.sg],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%}nz-slider[_ngcontent-%COMP%]{position:absolute;top:50%;right:12px;height:200px;margin-top:-100px}.graph[_ngcontent-%COMP%]{-webkit-user-select:none;-moz-user-select:none;user-select:none}.graph[_ngcontent-%COMP%]   .edge-marker[_ngcontent-%COMP%]{color:#000000d9;fill:#000000d9}.graph[_ngcontent-%COMP%]   .edge-marker-focus[_ngcontent-%COMP%]{color:#1890ff;fill:#1890ff}.graph[_ngcontent-%COMP%]   .edge[_ngcontent-%COMP%]{fill:none;stroke:#000000d9;stroke-opacity:.6;stroke-width:1px}.graph[_ngcontent-%COMP%]   .edge.focused[_ngcontent-%COMP%]{stroke:#1890ff;animation:circle-draw .3s linear infinite;stroke-dasharray:10;stroke-dashoffset:0;stroke-linecap:round;stroke-opacity:1}.graph[_ngcontent-%COMP%]   .link-group[_ngcontent-%COMP%]   .edge-label[_ngcontent-%COMP%]{font-size:10px;fill:#000000d9;stroke:none}.graph[_ngcontent-%COMP%]   .panning-rect[_ngcontent-%COMP%]{cursor:move;fill:#0000}.graph[_ngcontent-%COMP%]   .nodes-chart-overlay[_ngcontent-%COMP%]{opacity:0;pointer-events:none;fill:#fff;-webkit-transition:opacity ease-in .45s}.graph[_ngcontent-%COMP%]   .nodes-chart-overlay.active[_ngcontent-%COMP%]{-webkit-opacity:.7}@keyframes circle-draw{0%{stroke-dashoffset:20}to{stroke-dashoffset:0}}"],changeDetection:0}),wt})()},75349:(M,z,a)=>{"use strict";a.d(z,{Y:()=>L,w:()=>V});var v,_,S,E,f=a(6738),h=180/Math.PI,y={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function x(W,et,nt,j,it,rt){var at,X,lt;return(at=Math.sqrt(W*W+et*et))&&(W/=at,et/=at),(lt=W*nt+et*j)&&(nt-=W*lt,j-=et*lt),(X=Math.sqrt(nt*nt+j*j))&&(nt/=X,j/=X,lt/=X),W*j180?vt+=360:vt-mt>180&&(mt+=360),Mt.push({i:Pt.push(it(Pt)+"rotate(",null,j)-2,x:(0,f.Z)(mt,vt)})):vt&&Pt.push(it(Pt)+"rotate("+vt+j)}(mt.rotate,vt.rotate,Pt,Mt),function X(mt,vt,Pt,Mt){mt!==vt?Mt.push({i:Pt.push(it(Pt)+"skewX(",null,j)-2,x:(0,f.Z)(mt,vt)}):vt&&Pt.push(it(Pt)+"skewX("+vt+j)}(mt.skewX,vt.skewX,Pt,Mt),function lt(mt,vt,Pt,Mt,Ot,Lt){if(mt!==Pt||vt!==Mt){var Wt=Ot.push(it(Ot)+"scale(",null,",",null,")");Lt.push({i:Wt-4,x:(0,f.Z)(mt,Pt)},{i:Wt-2,x:(0,f.Z)(vt,Mt)})}else(1!==Pt||1!==Mt)&&Ot.push(it(Ot)+"scale("+Pt+","+Mt+")")}(mt.scaleX,mt.scaleY,vt.scaleX,vt.scaleY,Pt,Mt),mt=vt=null,function(Ot){for(var en,Lt=-1,Wt=Mt.length;++Lt{"use strict";a.d(z,{Z:()=>E});var f=Math.SQRT2;function v(N){return((N=Math.exp(N))+1/N)/2}function E(N,k){var at,X,O=N[0],L=N[1],V=N[2],nt=k[2],j=k[0]-O,it=k[1]-L,rt=j*j+it*it;if(rt<1e-12)X=Math.log(nt/V)/f,at=function(Ot){return[O+Ot*j,L+Ot*it,V*Math.exp(f*Ot*X)]};else{var lt=Math.sqrt(rt),mt=(nt*nt-V*V+4*rt)/(2*V*2*lt),vt=(nt*nt-V*V-4*rt)/(2*nt*2*lt),Pt=Math.log(Math.sqrt(mt*mt+1)-mt),Mt=Math.log(Math.sqrt(vt*vt+1)-vt);X=(Mt-Pt)/f,at=function(Ot){var Lt=Ot*X,Wt=v(Pt),en=V/(2*lt)*(Wt*function S(N){return((N=Math.exp(2*N))-1)/(N+1)}(f*Lt+Pt)-function _(N){return((N=Math.exp(N))-1/N)/2}(Pt));return[O+en*j,L+en*it,V*Wt/v(f*Lt+Pt)]}}return at.duration=1e3*X,at}},73339:(M,z,a)=>{"use strict";a.d(z,{Z:()=>h});var f=a(49194);function h(y,x,v){var _=new f.B7;return _.restart(function(S){_.stop(),y(S+x)},x=null==x?0:+x,v),_}},59695:(M,z,a)=>{M.exports={graphlib:a(36456),layout:a(14850),debug:a(71914),util:{time:a(11510).time,notime:a(11510).notime},version:a(28126)}},12234:(M,z,a)=>{"use strict";var f=a(45760),h=a(67365);M.exports={run:function y(_){var S="greedy"===_.graph().acyclicer?h(_,function E(N){return function(k){return N.edge(k).weight}}(_)):function x(_){var S=[],E={},N={};return f.forEach(_.nodes(),function k(O){f.has(N,O)||(N[O]=!0,E[O]=!0,f.forEach(_.outEdges(O),function(L){f.has(E,L.w)?S.push(L):k(L.w)}),delete E[O])}),S}(_);f.forEach(S,function(N){var k=_.edge(N);_.removeEdge(N),k.forwardName=N.name,k.reversed=!0,_.setEdge(N.w,N.v,k,f.uniqueId("rev"))})},undo:function v(_){f.forEach(_.edges(),function(S){var E=_.edge(S);if(E.reversed){_.removeEdge(S);var N=E.forwardName;delete E.reversed,delete E.forwardName,_.setEdge(S.w,S.v,E,N)}})}}},79999:(M,z,a)=>{var f=a(45760),h=a(11510);function x(v,_,S,E,N,k){var L=N[_][k-1],V=h.addDummyNode(v,"border",{width:0,height:0,rank:k,borderType:_},S);N[_][k]=V,v.setParent(V,E),L&&v.setEdge(L,V,{weight:1})}M.exports=function y(v){f.forEach(v.children(),function _(S){var E=v.children(S),N=v.node(S);if(E.length&&f.forEach(E,_),f.has(N,"minRank")){N.borderLeft=[],N.borderRight=[];for(var k=N.minRank,O=N.maxRank+1;k{"use strict";var f=a(45760);function x(k){f.forEach(k.nodes(),function(O){v(k.node(O))}),f.forEach(k.edges(),function(O){v(k.edge(O))})}function v(k){var O=k.width;k.width=k.height,k.height=O}function S(k){k.y=-k.y}function N(k){var O=k.x;k.x=k.y,k.y=O}M.exports={adjust:function h(k){var O=k.graph().rankdir.toLowerCase();("lr"===O||"rl"===O)&&x(k)},undo:function y(k){var O=k.graph().rankdir.toLowerCase();("bt"===O||"rl"===O)&&function _(k){f.forEach(k.nodes(),function(O){S(k.node(O))}),f.forEach(k.edges(),function(O){var L=k.edge(O);f.forEach(L.points,S),f.has(L,"y")&&S(L)})}(k),("lr"===O||"rl"===O)&&(function E(k){f.forEach(k.nodes(),function(O){N(k.node(O))}),f.forEach(k.edges(),function(O){var L=k.edge(O);f.forEach(L.points,N),f.has(L,"x")&&N(L)})}(k),x(k))}}},3226:M=>{function z(){var h={};h._next=h._prev=h,this._sentinel=h}function a(h){h._prev._next=h._next,h._next._prev=h._prev,delete h._next,delete h._prev}function f(h,y){if("_next"!==h&&"_prev"!==h)return y}M.exports=z,z.prototype.dequeue=function(){var h=this._sentinel,y=h._prev;if(y!==h)return a(y),y},z.prototype.enqueue=function(h){var y=this._sentinel;h._prev&&h._next&&a(h),h._next=y._next,y._next._prev=h,y._next=h,h._prev=y},z.prototype.toString=function(){for(var h=[],y=this._sentinel,x=y._prev;x!==y;)h.push(JSON.stringify(x,f)),x=x._prev;return"["+h.join(", ")+"]"}},71914:(M,z,a)=>{var f=a(45760),h=a(11510),y=a(36456).Graph;M.exports={debugOrdering:function x(v){var _=h.buildLayerMatrix(v),S=new y({compound:!0,multigraph:!0}).setGraph({});return f.forEach(v.nodes(),function(E){S.setNode(E,{label:E}),S.setParent(E,"layer"+v.node(E).rank)}),f.forEach(v.edges(),function(E){S.setEdge(E.v,E.w,{},E.name)}),f.forEach(_,function(E,N){S.setNode("layer"+N,{rank:"same"}),f.reduce(E,function(O,L){return S.setEdge(O,L,{style:"invis"}),L})}),S}}},36456:(M,z,a)=>{var f;try{f=a(85510)}catch{}f||(f=window.graphlib),M.exports=f},67365:(M,z,a)=>{var f=a(45760),h=a(36456).Graph,y=a(3226);M.exports=function v(k,O){if(k.nodeCount()<=1)return[];var L=function E(k,O){var L=new h,V=0,W=0;f.forEach(k.nodes(),function(j){L.setNode(j,{v:j,in:0,out:0})}),f.forEach(k.edges(),function(j){var it=L.edge(j.v,j.w)||0,rt=O(j);L.setEdge(j.v,j.w,it+rt),W=Math.max(W,L.node(j.v).out+=rt),V=Math.max(V,L.node(j.w).in+=rt)});var et=f.range(W+V+3).map(function(){return new y}),nt=V+1;return f.forEach(L.nodes(),function(j){N(et,nt,L.node(j))}),{graph:L,buckets:et,zeroIdx:nt}}(k,O||x),V=function _(k,O,L){for(var nt,V=[],W=O[O.length-1],et=O[0];k.nodeCount();){for(;nt=et.dequeue();)S(k,O,L,nt);for(;nt=W.dequeue();)S(k,O,L,nt);if(k.nodeCount())for(var j=O.length-2;j>0;--j)if(nt=O[j].dequeue()){V=V.concat(S(k,O,L,nt,!0));break}}return V}(L.graph,L.buckets,L.zeroIdx);return f.flatten(f.map(V,function(W){return k.outEdges(W.v,W.w)}),!0)};var x=f.constant(1);function S(k,O,L,V,W){var et=W?[]:void 0;return f.forEach(k.inEdges(V.v),function(nt){var j=k.edge(nt),it=k.node(nt.v);W&&et.push({v:nt.v,w:nt.w}),it.out-=j,N(O,L,it)}),f.forEach(k.outEdges(V.v),function(nt){var j=k.edge(nt),rt=k.node(nt.w);rt.in-=j,N(O,L,rt)}),k.removeNode(V.v),et}function N(k,O,L){L.out?L.in?k[L.out-L.in+O].enqueue(L):k[k.length-1].enqueue(L):k[0].enqueue(L)}},14850:(M,z,a)=>{"use strict";var f=a(45760),h=a(12234),y=a(91496),x=a(94124),v=a(11510).normalizeRanks,_=a(60162),S=a(11510).removeEmptyRanks,E=a(1230),N=a(79999),k=a(83870),O=a(32974),L=a(78226),V=a(11510),W=a(36456).Graph;M.exports=function et(Rt,Ct){var Ft=Ct&&Ct.debugTiming?V.time:V.notime;Ft("layout",function(){var Jt=Ft("  buildLayoutGraph",function(){return function Mt(Rt){var Ct=new W({multigraph:!0,compound:!0}),Ft=se(Rt.graph());return Ct.setGraph(f.merge({},rt,oe(Ft,it),f.pick(Ft,at))),f.forEach(Rt.nodes(),function(Jt){var dn=se(Rt.node(Jt));Ct.setNode(Jt,f.defaults(oe(dn,X),lt)),Ct.setParent(Jt,Rt.parent(Jt))}),f.forEach(Rt.edges(),function(Jt){var dn=se(Rt.edge(Jt));Ct.setEdge(Jt,f.merge({},vt,oe(dn,mt),f.pick(dn,Pt)))}),Ct}(Rt)});Ft("  runLayout",function(){!function nt(Rt,Ct){Ct("    makeSpaceForEdgeLabels",function(){!function Ot(Rt){var Ct=Rt.graph();Ct.ranksep/=2,f.forEach(Rt.edges(),function(Ft){var Jt=Rt.edge(Ft);Jt.minlen*=2,"c"!==Jt.labelpos.toLowerCase()&&("TB"===Ct.rankdir||"BT"===Ct.rankdir?Jt.width+=Jt.labeloffset:Jt.height+=Jt.labeloffset)})}(Rt)}),Ct("    removeSelfEdges",function(){!function An(Rt){f.forEach(Rt.edges(),function(Ct){if(Ct.v===Ct.w){var Ft=Rt.node(Ct.v);Ft.selfEdges||(Ft.selfEdges=[]),Ft.selfEdges.push({e:Ct,label:Rt.edge(Ct)}),Rt.removeEdge(Ct)}})}(Rt)}),Ct("    acyclic",function(){h.run(Rt)}),Ct("    nestingGraph.run",function(){E.run(Rt)}),Ct("    rank",function(){x(V.asNonCompoundGraph(Rt))}),Ct("    injectEdgeLabelProxies",function(){!function Lt(Rt){f.forEach(Rt.edges(),function(Ct){var Ft=Rt.edge(Ct);if(Ft.width&&Ft.height){var Jt=Rt.node(Ct.v),dn=Rt.node(Ct.w);V.addDummyNode(Rt,"edge-proxy",{rank:(dn.rank-Jt.rank)/2+Jt.rank,e:Ct},"_ep")}})}(Rt)}),Ct("    removeEmptyRanks",function(){S(Rt)}),Ct("    nestingGraph.cleanup",function(){E.cleanup(Rt)}),Ct("    normalizeRanks",function(){v(Rt)}),Ct("    assignRankMinMax",function(){!function Wt(Rt){var Ct=0;f.forEach(Rt.nodes(),function(Ft){var Jt=Rt.node(Ft);Jt.borderTop&&(Jt.minRank=Rt.node(Jt.borderTop).rank,Jt.maxRank=Rt.node(Jt.borderBottom).rank,Ct=f.max(Ct,Jt.maxRank))}),Rt.graph().maxRank=Ct}(Rt)}),Ct("    removeEdgeLabelProxies",function(){!function en(Rt){f.forEach(Rt.nodes(),function(Ct){var Ft=Rt.node(Ct);"edge-proxy"===Ft.dummy&&(Rt.edge(Ft.e).labelRank=Ft.rank,Rt.removeNode(Ct))})}(Rt)}),Ct("    normalize.run",function(){y.run(Rt)}),Ct("    parentDummyChains",function(){_(Rt)}),Ct("    addBorderSegments",function(){N(Rt)}),Ct("    order",function(){O(Rt)}),Ct("    insertSelfEdges",function(){!function fe(Rt){var Ct=V.buildLayerMatrix(Rt);f.forEach(Ct,function(Ft){var Jt=0;f.forEach(Ft,function(dn,Sn){var zn=Rt.node(dn);zn.order=Sn+Jt,f.forEach(zn.selfEdges,function(Zn){V.addDummyNode(Rt,"selfedge",{width:Zn.label.width,height:Zn.label.height,rank:zn.rank,order:Sn+ ++Jt,e:Zn.e,label:Zn.label},"_se")}),delete zn.selfEdges})})}(Rt)}),Ct("    adjustCoordinateSystem",function(){k.adjust(Rt)}),Ct("    position",function(){L(Rt)}),Ct("    positionSelfEdges",function(){!function vn(Rt){f.forEach(Rt.nodes(),function(Ct){var Ft=Rt.node(Ct);if("selfedge"===Ft.dummy){var Jt=Rt.node(Ft.e.v),dn=Jt.x+Jt.width/2,Sn=Jt.y,zn=Ft.x-dn,Zn=Jt.height/2;Rt.setEdge(Ft.e,Ft.label),Rt.removeNode(Ct),Ft.label.points=[{x:dn+2*zn/3,y:Sn-Zn},{x:dn+5*zn/6,y:Sn-Zn},{x:dn+zn,y:Sn},{x:dn+5*zn/6,y:Sn+Zn},{x:dn+2*zn/3,y:Sn+Zn}],Ft.label.x=Ft.x,Ft.label.y=Ft.y}})}(Rt)}),Ct("    removeBorderNodes",function(){!function ae(Rt){f.forEach(Rt.nodes(),function(Ct){if(Rt.children(Ct).length){var Ft=Rt.node(Ct),Jt=Rt.node(Ft.borderTop),dn=Rt.node(Ft.borderBottom),Sn=Rt.node(f.last(Ft.borderLeft)),zn=Rt.node(f.last(Ft.borderRight));Ft.width=Math.abs(zn.x-Sn.x),Ft.height=Math.abs(dn.y-Jt.y),Ft.x=Sn.x+Ft.width/2,Ft.y=Jt.y+Ft.height/2}}),f.forEach(Rt.nodes(),function(Ct){"border"===Rt.node(Ct).dummy&&Rt.removeNode(Ct)})}(Rt)}),Ct("    normalize.undo",function(){y.undo(Rt)}),Ct("    fixupEdgeLabelCoords",function(){!function Nn(Rt){f.forEach(Rt.edges(),function(Ct){var Ft=Rt.edge(Ct);if(f.has(Ft,"x"))switch(("l"===Ft.labelpos||"r"===Ft.labelpos)&&(Ft.width-=Ft.labeloffset),Ft.labelpos){case"l":Ft.x-=Ft.width/2+Ft.labeloffset;break;case"r":Ft.x+=Ft.width/2+Ft.labeloffset}})}(Rt)}),Ct("    undoCoordinateSystem",function(){k.undo(Rt)}),Ct("    translateGraph",function(){!function un(Rt){var Ct=Number.POSITIVE_INFINITY,Ft=0,Jt=Number.POSITIVE_INFINITY,dn=0,Sn=Rt.graph(),zn=Sn.marginx||0,Zn=Sn.marginy||0;function ue(Ln){var Tt=Ln.x,Vt=Ln.y,Gt=Ln.width,Xt=Ln.height;Ct=Math.min(Ct,Tt-Gt/2),Ft=Math.max(Ft,Tt+Gt/2),Jt=Math.min(Jt,Vt-Xt/2),dn=Math.max(dn,Vt+Xt/2)}f.forEach(Rt.nodes(),function(Ln){ue(Rt.node(Ln))}),f.forEach(Rt.edges(),function(Ln){var Tt=Rt.edge(Ln);f.has(Tt,"x")&&ue(Tt)}),Ct-=zn,Jt-=Zn,f.forEach(Rt.nodes(),function(Ln){var Tt=Rt.node(Ln);Tt.x-=Ct,Tt.y-=Jt}),f.forEach(Rt.edges(),function(Ln){var Tt=Rt.edge(Ln);f.forEach(Tt.points,function(Vt){Vt.x-=Ct,Vt.y-=Jt}),f.has(Tt,"x")&&(Tt.x-=Ct),f.has(Tt,"y")&&(Tt.y-=Jt)}),Sn.width=Ft-Ct+zn,Sn.height=dn-Jt+Zn}(Rt)}),Ct("    assignNodeIntersects",function(){!function bn(Rt){f.forEach(Rt.edges(),function(Ct){var Sn,zn,Ft=Rt.edge(Ct),Jt=Rt.node(Ct.v),dn=Rt.node(Ct.w);Ft.points?(Sn=Ft.points[0],zn=Ft.points[Ft.points.length-1]):(Ft.points=[],Sn=dn,zn=Jt),Ft.points.unshift(V.intersectRect(Jt,Sn)),Ft.points.push(V.intersectRect(dn,zn))})}(Rt)}),Ct("    reversePoints",function(){!function $n(Rt){f.forEach(Rt.edges(),function(Ct){var Ft=Rt.edge(Ct);Ft.reversed&&Ft.points.reverse()})}(Rt)}),Ct("    acyclic.undo",function(){h.undo(Rt)})}(Jt,Ft)}),Ft("  updateInputGraph",function(){!function j(Rt,Ct){f.forEach(Rt.nodes(),function(Ft){var Jt=Rt.node(Ft),dn=Ct.node(Ft);Jt&&(Jt.x=dn.x,Jt.y=dn.y,Ct.children(Ft).length&&(Jt.width=dn.width,Jt.height=dn.height))}),f.forEach(Rt.edges(),function(Ft){var Jt=Rt.edge(Ft),dn=Ct.edge(Ft);Jt.points=dn.points,f.has(dn,"x")&&(Jt.x=dn.x,Jt.y=dn.y)}),Rt.graph().width=Ct.graph().width,Rt.graph().height=Ct.graph().height}(Rt,Jt)})})};var it=["nodesep","edgesep","ranksep","marginx","marginy"],rt={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},at=["acyclicer","ranker","rankdir","align"],X=["width","height"],lt={width:0,height:0},mt=["minlen","weight","width","height","labeloffset"],vt={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Pt=["labelpos"];function oe(Rt,Ct){return f.mapValues(f.pick(Rt,Ct),Number)}function se(Rt){var Ct={};return f.forEach(Rt,function(Ft,Jt){Ct[Jt.toLowerCase()]=Ft}),Ct}},45760:(M,z,a)=>{var f;try{f={cloneDeep:a(90733),constant:a(76684),defaults:a(28800),each:a(35474),filter:a(35281),find:a(62516),flatten:a(22274),forEach:a(89851),forIn:a(41176),has:a(54842),isUndefined:a(34235),last:a(25809),map:a(19984),mapValues:a(10203),max:a(18176),merge:a(80567),min:a(29439),minBy:a(29525),now:a(31710),pick:a(16372),range:a(90361),reduce:a(81337),sortBy:a(12906),uniqueId:a(51541),values:a(90377),zipObject:a(21617)}}catch{}f||(f=window._),M.exports=f},1230:(M,z,a)=>{var f=a(45760),h=a(11510);function x(E,N,k,O,L,V,W){var et=E.children(W);if(et.length){var nt=h.addBorderNode(E,"_bt"),j=h.addBorderNode(E,"_bb"),it=E.node(W);E.setParent(nt,W),it.borderTop=nt,E.setParent(j,W),it.borderBottom=j,f.forEach(et,function(rt){x(E,N,k,O,L,V,rt);var at=E.node(rt),X=at.borderTop?at.borderTop:rt,lt=at.borderBottom?at.borderBottom:rt,mt=at.borderTop?O:2*O,vt=X!==lt?1:L-V[W]+1;E.setEdge(nt,X,{weight:mt,minlen:vt,nestingEdge:!0}),E.setEdge(lt,j,{weight:mt,minlen:vt,nestingEdge:!0})}),E.parent(W)||E.setEdge(N,nt,{weight:0,minlen:L+V[W]})}else W!==N&&E.setEdge(N,W,{weight:0,minlen:k})}M.exports={run:function y(E){var N=h.addDummyNode(E,"root",{},"_root"),k=function v(E){var N={};function k(O,L){var V=E.children(O);V&&V.length&&f.forEach(V,function(W){k(W,L+1)}),N[O]=L}return f.forEach(E.children(),function(O){k(O,1)}),N}(E),O=f.max(f.values(k))-1,L=2*O+1;E.graph().nestingRoot=N,f.forEach(E.edges(),function(W){E.edge(W).minlen*=L});var V=function _(E){return f.reduce(E.edges(),function(N,k){return N+E.edge(k).weight},0)}(E)+1;f.forEach(E.children(),function(W){x(E,N,L,V,O,k,W)}),E.graph().nodeRankFactor=L},cleanup:function S(E){var N=E.graph();E.removeNode(N.nestingRoot),delete N.nestingRoot,f.forEach(E.edges(),function(k){E.edge(k).nestingEdge&&E.removeEdge(k)})}}},91496:(M,z,a)=>{"use strict";var f=a(45760),h=a(11510);M.exports={run:function y(_){_.graph().dummyChains=[],f.forEach(_.edges(),function(S){!function x(_,S){var E=S.v,N=_.node(E).rank,k=S.w,O=_.node(k).rank,L=S.name,V=_.edge(S),W=V.labelRank;if(O!==N+1){var et,nt,j;for(_.removeEdge(S),j=0,++N;N{var f=a(45760);M.exports=function h(y,x,v){var S,_={};f.forEach(v,function(E){for(var k,O,N=y.parent(E);N;){if((k=y.parent(N))?(O=_[k],_[k]=N):(O=S,S=N),O&&O!==N)return void x.setEdge(O,N);N=k}})}},81323:(M,z,a)=>{var f=a(45760);M.exports=function h(y,x){return f.map(x,function(v){var _=y.inEdges(v);if(_.length){var S=f.reduce(_,function(E,N){var k=y.edge(N),O=y.node(N.v);return{sum:E.sum+k.weight*O.order,weight:E.weight+k.weight}},{sum:0,weight:0});return{v,barycenter:S.sum/S.weight,weight:S.weight}}return{v}})}},1686:(M,z,a)=>{var f=a(45760),h=a(36456).Graph;M.exports=function y(v,_,S){var E=function x(v){for(var _;v.hasNode(_=f.uniqueId("_root")););return _}(v),N=new h({compound:!0}).setGraph({root:E}).setDefaultNodeLabel(function(k){return v.node(k)});return f.forEach(v.nodes(),function(k){var O=v.node(k),L=v.parent(k);(O.rank===_||O.minRank<=_&&_<=O.maxRank)&&(N.setNode(k),N.setParent(k,L||E),f.forEach(v[S](k),function(V){var W=V.v===k?V.w:V.v,et=N.edge(W,k),nt=f.isUndefined(et)?0:et.weight;N.setEdge(W,k,{weight:v.edge(V).weight+nt})}),f.has(O,"minRank")&&N.setNode(k,{borderLeft:O.borderLeft[_],borderRight:O.borderRight[_]}))}),N}},18796:(M,z,a)=>{"use strict";var f=a(45760);function y(x,v,_){for(var S=f.zipObject(_,f.map(_,function(V,W){return W})),E=f.flatten(f.map(v,function(V){return f.sortBy(f.map(x.outEdges(V),function(W){return{pos:S[W.w],weight:x.edge(W).weight}}),"pos")}),!0),N=1;N<_.length;)N<<=1;var k=2*N-1;N-=1;var O=f.map(new Array(k),function(){return 0}),L=0;return f.forEach(E.forEach(function(V){var W=V.pos+N;O[W]+=V.weight;for(var et=0;W>0;)W%2&&(et+=O[W+1]),O[W=W-1>>1]+=V.weight;L+=V.weight*et})),L}M.exports=function h(x,v){for(var _=0,S=1;S{"use strict";var f=a(45760),h=a(49402),y=a(18796),x=a(61057),v=a(1686),_=a(33034),S=a(36456).Graph,E=a(11510);function k(V,W,et){return f.map(W,function(nt){return v(V,nt,et)})}function O(V,W){var et=new S;f.forEach(V,function(nt){var j=nt.graph().root,it=x(nt,j,et,W);f.forEach(it.vs,function(rt,at){nt.node(rt).order=at}),_(nt,et,it.vs)})}function L(V,W){f.forEach(W,function(et){f.forEach(et,function(nt,j){V.node(nt).order=j})})}M.exports=function N(V){var W=E.maxRank(V),et=k(V,f.range(1,W+1),"inEdges"),nt=k(V,f.range(W-1,-1,-1),"outEdges"),j=h(V);L(V,j);for(var rt,it=Number.POSITIVE_INFINITY,at=0,X=0;X<4;++at,++X){O(at%2?et:nt,at%4>=2),j=E.buildLayerMatrix(V);var lt=y(V,j);lt{"use strict";var f=a(45760);M.exports=function h(y){var x={},v=f.filter(y.nodes(),function(k){return!y.children(k).length}),_=f.max(f.map(v,function(k){return y.node(k).rank})),S=f.map(f.range(_+1),function(){return[]}),N=f.sortBy(v,function(k){return y.node(k).rank});return f.forEach(N,function E(k){if(!f.has(x,k)){x[k]=!0;var O=y.node(k);S[O.rank].push(k),f.forEach(y.successors(k),E)}}),S}},83826:(M,z,a)=>{"use strict";var f=a(45760);M.exports=function h(v,_){var S={};return f.forEach(v,function(N,k){var O=S[N.v]={indegree:0,in:[],out:[],vs:[N.v],i:k};f.isUndefined(N.barycenter)||(O.barycenter=N.barycenter,O.weight=N.weight)}),f.forEach(_.edges(),function(N){var k=S[N.v],O=S[N.w];!f.isUndefined(k)&&!f.isUndefined(O)&&(O.indegree++,k.out.push(S[N.w]))}),function y(v){var _=[];function S(k){return function(O){O.merged||(f.isUndefined(O.barycenter)||f.isUndefined(k.barycenter)||O.barycenter>=k.barycenter)&&function x(v,_){var S=0,E=0;v.weight&&(S+=v.barycenter*v.weight,E+=v.weight),_.weight&&(S+=_.barycenter*_.weight,E+=_.weight),v.vs=_.vs.concat(v.vs),v.barycenter=S/E,v.weight=E,v.i=Math.min(_.i,v.i),_.merged=!0}(k,O)}}function E(k){return function(O){O.in.push(k),0==--O.indegree&&v.push(O)}}for(;v.length;){var N=v.pop();_.push(N),f.forEach(N.in.reverse(),S(N)),f.forEach(N.out,E(N))}return f.map(f.filter(_,function(k){return!k.merged}),function(k){return f.pick(k,["vs","i","barycenter","weight"])})}(f.filter(S,function(N){return!N.indegree}))}},61057:(M,z,a)=>{var f=a(45760),h=a(81323),y=a(83826),x=a(93803);M.exports=function v(E,N,k,O){var L=E.children(N),V=E.node(N),W=V?V.borderLeft:void 0,et=V?V.borderRight:void 0,nt={};W&&(L=f.filter(L,function(lt){return lt!==W&<!==et}));var j=h(E,L);f.forEach(j,function(lt){if(E.children(lt.v).length){var mt=v(E,lt.v,k,O);nt[lt.v]=mt,f.has(mt,"barycenter")&&function S(E,N){f.isUndefined(E.barycenter)?(E.barycenter=N.barycenter,E.weight=N.weight):(E.barycenter=(E.barycenter*E.weight+N.barycenter*N.weight)/(E.weight+N.weight),E.weight+=N.weight)}(lt,mt)}});var it=y(j,k);!function _(E,N){f.forEach(E,function(k){k.vs=f.flatten(k.vs.map(function(O){return N[O]?N[O].vs:O}),!0)})}(it,nt);var rt=x(it,O);if(W&&(rt.vs=f.flatten([W,rt.vs,et],!0),E.predecessors(W).length)){var at=E.node(E.predecessors(W)[0]),X=E.node(E.predecessors(et)[0]);f.has(rt,"barycenter")||(rt.barycenter=0,rt.weight=0),rt.barycenter=(rt.barycenter*rt.weight+at.order+X.order)/(rt.weight+2),rt.weight+=2}return rt}},93803:(M,z,a)=>{var f=a(45760),h=a(11510);function x(_,S,E){for(var N;S.length&&(N=f.last(S)).i<=E;)S.pop(),_.push(N.vs),E++;return E}M.exports=function y(_,S){var E=h.partition(_,function(nt){return f.has(nt,"barycenter")}),N=E.lhs,k=f.sortBy(E.rhs,function(nt){return-nt.i}),O=[],L=0,V=0,W=0;N.sort(function v(_){return function(S,E){return S.barycenterE.barycenter?1:_?E.i-S.i:S.i-E.i}}(!!S)),W=x(O,k,W),f.forEach(N,function(nt){W+=nt.vs.length,O.push(nt.vs),L+=nt.barycenter*nt.weight,V+=nt.weight,W=x(O,k,W)});var et={vs:f.flatten(O,!0)};return V&&(et.barycenter=L/V,et.weight=V),et}},60162:(M,z,a)=>{var f=a(45760);M.exports=function h(v){var _=function x(v){var _={},S=0;return f.forEach(v.children(),function E(N){var k=S;f.forEach(v.children(N),E),_[N]={low:k,lim:S++}}),_}(v);f.forEach(v.graph().dummyChains,function(S){for(var E=v.node(S),N=E.edgeObj,k=function y(v,_,S,E){var V,W,N=[],k=[],O=Math.min(_[S].low,_[E].low),L=Math.max(_[S].lim,_[E].lim);V=S;do{V=v.parent(V),N.push(V)}while(V&&(_[V].low>O||L>_[V].lim));for(W=V,V=E;(V=v.parent(V))!==W;)k.push(V);return{path:N.concat(k.reverse()),lca:W}}(v,_,N.v,N.w),O=k.path,L=k.lca,V=0,W=O[V],et=!0;S!==N.w;){if(E=v.node(S),et){for(;(W=O[V])!==L&&v.node(W).maxRank{"use strict";var f=a(45760),h=a(36456).Graph,y=a(11510);function x(it,rt){var at={};return f.reduce(rt,function X(lt,mt){var vt=0,Pt=0,Mt=lt.length,Ot=f.last(mt);return f.forEach(mt,function(Lt,Wt){var en=function _(it,rt){if(it.node(rt).dummy)return f.find(it.predecessors(rt),function(at){return it.node(at).dummy})}(it,Lt),un=en?it.node(en).order:Mt;(en||Lt===Ot)&&(f.forEach(mt.slice(Pt,Wt+1),function(bn){f.forEach(it.predecessors(bn),function(Nn){var $n=it.node(Nn),ae=$n.order;(aeOt)&&S(at,en,Lt)})})}return f.reduce(rt,function lt(mt,vt){var Mt,Pt=-1,Ot=0;return f.forEach(vt,function(Lt,Wt){if("border"===it.node(Lt).dummy){var en=it.predecessors(Lt);en.length&&(Mt=it.node(en[0]).order,X(vt,Ot,Wt,Pt,Mt),Ot=Wt,Pt=Mt)}X(vt,Ot,vt.length,Mt,mt.length)}),vt}),at}function S(it,rt,at){if(rt>at){var X=rt;rt=at,at=X}var lt=it[rt];lt||(it[rt]=lt={}),lt[at]=!0}function E(it,rt,at){if(rt>at){var X=rt;rt=at,at=X}return f.has(it[rt],at)}function N(it,rt,at,X){var lt={},mt={},vt={};return f.forEach(rt,function(Pt){f.forEach(Pt,function(Mt,Ot){lt[Mt]=Mt,mt[Mt]=Mt,vt[Mt]=Ot})}),f.forEach(rt,function(Pt){var Mt=-1;f.forEach(Pt,function(Ot){var Lt=X(Ot);if(Lt.length)for(var Wt=((Lt=f.sortBy(Lt,function(Nn){return vt[Nn]})).length-1)/2,en=Math.floor(Wt),un=Math.ceil(Wt);en<=un;++en){var bn=Lt[en];mt[Ot]===Ot&&Mt{"use strict";var f=a(45760),h=a(11510),y=a(54058).positionX;M.exports=function x(_){(function v(_){var S=h.buildLayerMatrix(_),E=_.graph().ranksep,N=0;f.forEach(S,function(k){var O=f.max(f.map(k,function(L){return _.node(L).height}));f.forEach(k,function(L){_.node(L).y=N+O/2}),N+=O+E})})(_=h.asNonCompoundGraph(_)),f.forEach(y(_),function(S,E){_.node(E).x=S})}},96632:(M,z,a)=>{"use strict";var f=a(45760),h=a(36456).Graph,y=a(1916).slack;function v(E,N){return f.forEach(E.nodes(),function k(O){f.forEach(N.nodeEdges(O),function(L){var V=L.v,W=O===V?L.w:V;!E.hasNode(W)&&!y(N,L)&&(E.setNode(W,{}),E.setEdge(O,W,{}),k(W))})}),E.nodeCount()}function _(E,N){return f.minBy(N.edges(),function(k){if(E.hasNode(k.v)!==E.hasNode(k.w))return y(N,k)})}function S(E,N,k){f.forEach(E.nodes(),function(O){N.node(O).rank+=k})}M.exports=function x(E){var L,V,N=new h({directed:!1}),k=E.nodes()[0],O=E.nodeCount();for(N.setNode(k,{});v(N,E){"use strict";var h=a(1916).longestPath,y=a(96632),x=a(63804);M.exports=function v(N){switch(N.graph().ranker){case"network-simplex":default:!function E(N){x(N)}(N);break;case"tight-tree":!function S(N){h(N),y(N)}(N);break;case"longest-path":_(N)}};var _=h},63804:(M,z,a)=>{"use strict";var f=a(45760),h=a(96632),y=a(1916).slack,x=a(1916).longestPath,v=a(36456).alg.preorder,_=a(36456).alg.postorder,S=a(11510).simplify;function E(at){at=S(at),x(at);var lt,X=h(at);for(L(X),N(X,at);lt=W(X);)nt(X,at,lt,et(X,at,lt))}function N(at,X){var lt=_(at,at.nodes());lt=lt.slice(0,lt.length-1),f.forEach(lt,function(mt){!function k(at,X,lt){var mt=at.node(lt);at.edge(lt,mt.parent).cutvalue=O(at,X,lt)}(at,X,mt)})}function O(at,X,lt){var vt=at.node(lt).parent,Pt=!0,Mt=X.edge(lt,vt),Ot=0;return Mt||(Pt=!1,Mt=X.edge(vt,lt)),Ot=Mt.weight,f.forEach(X.nodeEdges(lt),function(Lt){var Wt=Lt.v===lt,en=Wt?Lt.w:Lt.v;if(en!==vt){var un=Wt===Pt,bn=X.edge(Lt).weight;if(Ot+=un?bn:-bn,function it(at,X,lt){return at.hasEdge(X,lt)}(at,lt,en)){var Nn=at.edge(lt,en).cutvalue;Ot+=un?-Nn:Nn}}}),Ot}function L(at,X){arguments.length<2&&(X=at.nodes()[0]),V(at,{},1,X)}function V(at,X,lt,mt,vt){var Pt=lt,Mt=at.node(mt);return X[mt]=!0,f.forEach(at.neighbors(mt),function(Ot){f.has(X,Ot)||(lt=V(at,X,lt,Ot,mt))}),Mt.low=Pt,Mt.lim=lt++,vt?Mt.parent=vt:delete Mt.parent,lt}function W(at){return f.find(at.edges(),function(X){return at.edge(X).cutvalue<0})}function et(at,X,lt){var mt=lt.v,vt=lt.w;X.hasEdge(mt,vt)||(mt=lt.w,vt=lt.v);var Pt=at.node(mt),Mt=at.node(vt),Ot=Pt,Lt=!1;Pt.lim>Mt.lim&&(Ot=Mt,Lt=!0);var Wt=f.filter(X.edges(),function(en){return Lt===rt(0,at.node(en.v),Ot)&&Lt!==rt(0,at.node(en.w),Ot)});return f.minBy(Wt,function(en){return y(X,en)})}function nt(at,X,lt,mt){at.removeEdge(lt.v,lt.w),at.setEdge(mt.v,mt.w,{}),L(at),N(at,X),function j(at,X){var lt=f.find(at.nodes(),function(vt){return!X.node(vt).parent}),mt=v(at,lt);mt=mt.slice(1),f.forEach(mt,function(vt){var Pt=at.node(vt).parent,Mt=X.edge(vt,Pt),Ot=!1;Mt||(Mt=X.edge(Pt,vt),Ot=!0),X.node(vt).rank=X.node(Pt).rank+(Ot?Mt.minlen:-Mt.minlen)})}(at,X)}function rt(at,X,lt){return lt.low<=X.lim&&X.lim<=lt.lim}M.exports=E,E.initLowLimValues=L,E.initCutValues=N,E.calcCutValue=O,E.leaveEdge=W,E.enterEdge=et,E.exchangeEdges=nt},1916:(M,z,a)=>{"use strict";var f=a(45760);M.exports={longestPath:function h(x){var v={};f.forEach(x.sources(),function _(S){var E=x.node(S);if(f.has(v,S))return E.rank;v[S]=!0;var N=f.min(f.map(x.outEdges(S),function(k){return _(k.w)-x.edge(k).minlen}));return(N===Number.POSITIVE_INFINITY||null==N)&&(N=0),E.rank=N})},slack:function y(x,v){return x.node(v.w).rank-x.node(v.v).rank-x.edge(v).minlen}}},11510:(M,z,a)=>{"use strict";var f=a(45760),h=a(36456).Graph;function y(j,it,rt,at){var X;do{X=f.uniqueId(at)}while(j.hasNode(X));return rt.dummy=it,j.setNode(X,rt),X}function V(j){return f.max(f.map(j.nodes(),function(it){var rt=j.node(it).rank;if(!f.isUndefined(rt))return rt}))}M.exports={addDummyNode:y,simplify:function x(j){var it=(new h).setGraph(j.graph());return f.forEach(j.nodes(),function(rt){it.setNode(rt,j.node(rt))}),f.forEach(j.edges(),function(rt){var at=it.edge(rt.v,rt.w)||{weight:0,minlen:1},X=j.edge(rt);it.setEdge(rt.v,rt.w,{weight:at.weight+X.weight,minlen:Math.max(at.minlen,X.minlen)})}),it},asNonCompoundGraph:function v(j){var it=new h({multigraph:j.isMultigraph()}).setGraph(j.graph());return f.forEach(j.nodes(),function(rt){j.children(rt).length||it.setNode(rt,j.node(rt))}),f.forEach(j.edges(),function(rt){it.setEdge(rt,j.edge(rt))}),it},successorWeights:function _(j){var it=f.map(j.nodes(),function(rt){var at={};return f.forEach(j.outEdges(rt),function(X){at[X.w]=(at[X.w]||0)+j.edge(X).weight}),at});return f.zipObject(j.nodes(),it)},predecessorWeights:function S(j){var it=f.map(j.nodes(),function(rt){var at={};return f.forEach(j.inEdges(rt),function(X){at[X.v]=(at[X.v]||0)+j.edge(X).weight}),at});return f.zipObject(j.nodes(),it)},intersectRect:function E(j,it){var Pt,Mt,rt=j.x,at=j.y,X=it.x-rt,lt=it.y-at,mt=j.width/2,vt=j.height/2;if(!X&&!lt)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(lt)*mt>Math.abs(X)*vt?(lt<0&&(vt=-vt),Pt=vt*X/lt,Mt=vt):(X<0&&(mt=-mt),Pt=mt,Mt=mt*lt/X),{x:rt+Pt,y:at+Mt}},buildLayerMatrix:function N(j){var it=f.map(f.range(V(j)+1),function(){return[]});return f.forEach(j.nodes(),function(rt){var at=j.node(rt),X=at.rank;f.isUndefined(X)||(it[X][at.order]=rt)}),it},normalizeRanks:function k(j){var it=f.min(f.map(j.nodes(),function(rt){return j.node(rt).rank}));f.forEach(j.nodes(),function(rt){var at=j.node(rt);f.has(at,"rank")&&(at.rank-=it)})},removeEmptyRanks:function O(j){var it=f.min(f.map(j.nodes(),function(lt){return j.node(lt).rank})),rt=[];f.forEach(j.nodes(),function(lt){var mt=j.node(lt).rank-it;rt[mt]||(rt[mt]=[]),rt[mt].push(lt)});var at=0,X=j.graph().nodeRankFactor;f.forEach(rt,function(lt,mt){f.isUndefined(lt)&&mt%X!=0?--at:at&&f.forEach(lt,function(vt){j.node(vt).rank+=at})})},addBorderNode:function L(j,it,rt,at){var X={width:0,height:0};return arguments.length>=4&&(X.rank=rt,X.order=at),y(j,"border",X,it)},maxRank:V,partition:function W(j,it){var rt={lhs:[],rhs:[]};return f.forEach(j,function(at){it(at)?rt.lhs.push(at):rt.rhs.push(at)}),rt},time:function et(j,it){var rt=f.now();try{return it()}finally{console.log(j+" time: "+(f.now()-rt)+"ms")}},notime:function nt(j,it){return it()}}},28126:M=>{M.exports="0.8.5"},85510:(M,z,a)=>{var f=a(51838);M.exports={Graph:f.Graph,json:a(21088),alg:a(83430),version:f.version}},86730:(M,z,a)=>{var f=a(79138);M.exports=function h(y){var _,x={},v=[];function S(E){f.has(x,E)||(x[E]=!0,_.push(E),f.each(y.successors(E),S),f.each(y.predecessors(E),S))}return f.each(y.nodes(),function(E){_=[],S(E),_.length&&v.push(_)}),v}},22163:(M,z,a)=>{var f=a(79138);function y(x,v,_,S,E,N){f.has(S,v)||(S[v]=!0,_||N.push(v),f.each(E(v),function(k){y(x,k,_,S,E,N)}),_&&N.push(v))}M.exports=function h(x,v,_){f.isArray(v)||(v=[v]);var S=(x.isDirected()?x.successors:x.neighbors).bind(x),E=[],N={};return f.each(v,function(k){if(!x.hasNode(k))throw new Error("Graph does not have node: "+k);y(x,k,"post"===_,N,S,E)}),E}},25668:(M,z,a)=>{var f=a(61718),h=a(79138);M.exports=function y(x,v,_){return h.transform(x.nodes(),function(S,E){S[E]=f(x,E,v,_)},{})}},61718:(M,z,a)=>{var f=a(79138),h=a(3358);M.exports=function x(_,S,E,N){return function v(_,S,E,N){var L,V,k={},O=new h,W=function(et){var nt=et.v!==L?et.v:et.w,j=k[nt],it=E(et),rt=V.distance+it;if(it<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+et+" Weight: "+it);rt0&&(L=O.removeMin(),(V=k[L]).distance!==Number.POSITIVE_INFINITY);)N(L).forEach(W);return k}(_,String(S),E||y,N||function(k){return _.outEdges(k)})};var y=f.constant(1)},9611:(M,z,a)=>{var f=a(79138),h=a(73585);M.exports=function y(x){return f.filter(h(x),function(v){return v.length>1||1===v.length&&x.hasEdge(v[0],v[0])})}},22881:(M,z,a)=>{var f=a(79138);M.exports=function y(v,_,S){return function x(v,_,S){var E={},N=v.nodes();return N.forEach(function(k){E[k]={},E[k][k]={distance:0},N.forEach(function(O){k!==O&&(E[k][O]={distance:Number.POSITIVE_INFINITY})}),S(k).forEach(function(O){var L=O.v===k?O.w:O.v,V=_(O);E[k][L]={distance:V,predecessor:k}})}),N.forEach(function(k){var O=E[k];N.forEach(function(L){var V=E[L];N.forEach(function(W){var nt=O[W],j=V[W],it=V[k].distance+nt.distance;it{M.exports={components:a(86730),dijkstra:a(61718),dijkstraAll:a(25668),findCycles:a(9611),floydWarshall:a(22881),isAcyclic:a(46693),postorder:a(46694),preorder:a(5330),prim:a(46823),tarjan:a(73585),topsort:a(52180)}},46693:(M,z,a)=>{var f=a(52180);M.exports=function h(y){try{f(y)}catch(x){if(x instanceof f.CycleException)return!1;throw x}return!0}},46694:(M,z,a)=>{var f=a(22163);M.exports=function h(y,x){return f(y,x,"post")}},5330:(M,z,a)=>{var f=a(22163);M.exports=function h(y,x){return f(y,x,"pre")}},46823:(M,z,a)=>{var f=a(79138),h=a(66568),y=a(3358);M.exports=function x(v,_){var k,S=new h,E={},N=new y;function O(V){var W=V.v===k?V.w:V.v,et=N.priority(W);if(void 0!==et){var nt=_(V);nt0;){if(k=N.removeMin(),f.has(E,k))S.setEdge(k,E[k]);else{if(L)throw new Error("Input graph is not connected: "+v);L=!0}v.nodeEdges(k).forEach(O)}return S}},73585:(M,z,a)=>{var f=a(79138);M.exports=function h(y){var x=0,v=[],_={},S=[];function E(N){var k=_[N]={onStack:!0,lowlink:x,index:x++};if(v.push(N),y.successors(N).forEach(function(V){f.has(_,V)?_[V].onStack&&(k.lowlink=Math.min(k.lowlink,_[V].index)):(E(V),k.lowlink=Math.min(k.lowlink,_[V].lowlink))}),k.lowlink===k.index){var L,O=[];do{L=v.pop(),_[L].onStack=!1,O.push(L)}while(N!==L);S.push(O)}}return y.nodes().forEach(function(N){f.has(_,N)||E(N)}),S}},52180:(M,z,a)=>{var f=a(79138);function h(x){var v={},_={},S=[];if(f.each(x.sinks(),function E(N){if(f.has(_,N))throw new y;f.has(v,N)||(_[N]=!0,v[N]=!0,f.each(x.predecessors(N),E),delete _[N],S.push(N))}),f.size(v)!==x.nodeCount())throw new y;return S}function y(){}M.exports=h,h.CycleException=y,y.prototype=new Error},3358:(M,z,a)=>{var f=a(79138);function h(){this._arr=[],this._keyIndices={}}M.exports=h,h.prototype.size=function(){return this._arr.length},h.prototype.keys=function(){return this._arr.map(function(y){return y.key})},h.prototype.has=function(y){return f.has(this._keyIndices,y)},h.prototype.priority=function(y){var x=this._keyIndices[y];if(void 0!==x)return this._arr[x].priority},h.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},h.prototype.add=function(y,x){var v=this._keyIndices;if(y=String(y),!f.has(v,y)){var _=this._arr,S=_.length;return v[y]=S,_.push({key:y,priority:x}),this._decrease(S),!0}return!1},h.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var y=this._arr.pop();return delete this._keyIndices[y.key],this._heapify(0),y.key},h.prototype.decrease=function(y,x){var v=this._keyIndices[y];if(x>this._arr[v].priority)throw new Error("New priority is greater than current priority. Key: "+y+" Old: "+this._arr[v].priority+" New: "+x);this._arr[v].priority=x,this._decrease(v)},h.prototype._heapify=function(y){var x=this._arr,v=2*y,_=v+1,S=y;v>1].priority{"use strict";var f=a(79138);M.exports=v;var y="\0";function v(O){this._isDirected=!f.has(O,"directed")||O.directed,this._isMultigraph=!!f.has(O,"multigraph")&&O.multigraph,this._isCompound=!!f.has(O,"compound")&&O.compound,this._label=void 0,this._defaultNodeLabelFn=f.constant(void 0),this._defaultEdgeLabelFn=f.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[y]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function _(O,L){O[L]?O[L]++:O[L]=1}function S(O,L){--O[L]||delete O[L]}function E(O,L,V,W){var et=""+L,nt=""+V;if(!O&&et>nt){var j=et;et=nt,nt=j}return et+"\x01"+nt+"\x01"+(f.isUndefined(W)?"\0":W)}function N(O,L,V,W){var et=""+L,nt=""+V;if(!O&&et>nt){var j=et;et=nt,nt=j}var it={v:et,w:nt};return W&&(it.name=W),it}function k(O,L){return E(O,L.v,L.w,L.name)}v.prototype._nodeCount=0,v.prototype._edgeCount=0,v.prototype.isDirected=function(){return this._isDirected},v.prototype.isMultigraph=function(){return this._isMultigraph},v.prototype.isCompound=function(){return this._isCompound},v.prototype.setGraph=function(O){return this._label=O,this},v.prototype.graph=function(){return this._label},v.prototype.setDefaultNodeLabel=function(O){return f.isFunction(O)||(O=f.constant(O)),this._defaultNodeLabelFn=O,this},v.prototype.nodeCount=function(){return this._nodeCount},v.prototype.nodes=function(){return f.keys(this._nodes)},v.prototype.sources=function(){var O=this;return f.filter(this.nodes(),function(L){return f.isEmpty(O._in[L])})},v.prototype.sinks=function(){var O=this;return f.filter(this.nodes(),function(L){return f.isEmpty(O._out[L])})},v.prototype.setNodes=function(O,L){var V=arguments,W=this;return f.each(O,function(et){V.length>1?W.setNode(et,L):W.setNode(et)}),this},v.prototype.setNode=function(O,L){return f.has(this._nodes,O)?(arguments.length>1&&(this._nodes[O]=L),this):(this._nodes[O]=arguments.length>1?L:this._defaultNodeLabelFn(O),this._isCompound&&(this._parent[O]=y,this._children[O]={},this._children[y][O]=!0),this._in[O]={},this._preds[O]={},this._out[O]={},this._sucs[O]={},++this._nodeCount,this)},v.prototype.node=function(O){return this._nodes[O]},v.prototype.hasNode=function(O){return f.has(this._nodes,O)},v.prototype.removeNode=function(O){var L=this;if(f.has(this._nodes,O)){var V=function(W){L.removeEdge(L._edgeObjs[W])};delete this._nodes[O],this._isCompound&&(this._removeFromParentsChildList(O),delete this._parent[O],f.each(this.children(O),function(W){L.setParent(W)}),delete this._children[O]),f.each(f.keys(this._in[O]),V),delete this._in[O],delete this._preds[O],f.each(f.keys(this._out[O]),V),delete this._out[O],delete this._sucs[O],--this._nodeCount}return this},v.prototype.setParent=function(O,L){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(f.isUndefined(L))L=y;else{for(var V=L+="";!f.isUndefined(V);V=this.parent(V))if(V===O)throw new Error("Setting "+L+" as parent of "+O+" would create a cycle");this.setNode(L)}return this.setNode(O),this._removeFromParentsChildList(O),this._parent[O]=L,this._children[L][O]=!0,this},v.prototype._removeFromParentsChildList=function(O){delete this._children[this._parent[O]][O]},v.prototype.parent=function(O){if(this._isCompound){var L=this._parent[O];if(L!==y)return L}},v.prototype.children=function(O){if(f.isUndefined(O)&&(O=y),this._isCompound){var L=this._children[O];if(L)return f.keys(L)}else{if(O===y)return this.nodes();if(this.hasNode(O))return[]}},v.prototype.predecessors=function(O){var L=this._preds[O];if(L)return f.keys(L)},v.prototype.successors=function(O){var L=this._sucs[O];if(L)return f.keys(L)},v.prototype.neighbors=function(O){var L=this.predecessors(O);if(L)return f.union(L,this.successors(O))},v.prototype.isLeaf=function(O){return 0===(this.isDirected()?this.successors(O):this.neighbors(O)).length},v.prototype.filterNodes=function(O){var L=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});L.setGraph(this.graph());var V=this;f.each(this._nodes,function(nt,j){O(j)&&L.setNode(j,nt)}),f.each(this._edgeObjs,function(nt){L.hasNode(nt.v)&&L.hasNode(nt.w)&&L.setEdge(nt,V.edge(nt))});var W={};function et(nt){var j=V.parent(nt);return void 0===j||L.hasNode(j)?(W[nt]=j,j):j in W?W[j]:et(j)}return this._isCompound&&f.each(L.nodes(),function(nt){L.setParent(nt,et(nt))}),L},v.prototype.setDefaultEdgeLabel=function(O){return f.isFunction(O)||(O=f.constant(O)),this._defaultEdgeLabelFn=O,this},v.prototype.edgeCount=function(){return this._edgeCount},v.prototype.edges=function(){return f.values(this._edgeObjs)},v.prototype.setPath=function(O,L){var V=this,W=arguments;return f.reduce(O,function(et,nt){return W.length>1?V.setEdge(et,nt,L):V.setEdge(et,nt),nt}),this},v.prototype.setEdge=function(){var O,L,V,W,et=!1,nt=arguments[0];"object"==typeof nt&&null!==nt&&"v"in nt?(O=nt.v,L=nt.w,V=nt.name,2===arguments.length&&(W=arguments[1],et=!0)):(O=nt,L=arguments[1],V=arguments[3],arguments.length>2&&(W=arguments[2],et=!0)),O=""+O,L=""+L,f.isUndefined(V)||(V=""+V);var j=E(this._isDirected,O,L,V);if(f.has(this._edgeLabels,j))return et&&(this._edgeLabels[j]=W),this;if(!f.isUndefined(V)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(O),this.setNode(L),this._edgeLabels[j]=et?W:this._defaultEdgeLabelFn(O,L,V);var it=N(this._isDirected,O,L,V);return O=it.v,L=it.w,Object.freeze(it),this._edgeObjs[j]=it,_(this._preds[L],O),_(this._sucs[O],L),this._in[L][j]=it,this._out[O][j]=it,this._edgeCount++,this},v.prototype.edge=function(O,L,V){var W=1===arguments.length?k(this._isDirected,arguments[0]):E(this._isDirected,O,L,V);return this._edgeLabels[W]},v.prototype.hasEdge=function(O,L,V){var W=1===arguments.length?k(this._isDirected,arguments[0]):E(this._isDirected,O,L,V);return f.has(this._edgeLabels,W)},v.prototype.removeEdge=function(O,L,V){var W=1===arguments.length?k(this._isDirected,arguments[0]):E(this._isDirected,O,L,V),et=this._edgeObjs[W];return et&&(O=et.v,L=et.w,delete this._edgeLabels[W],delete this._edgeObjs[W],S(this._preds[L],O),S(this._sucs[O],L),delete this._in[L][W],delete this._out[O][W],this._edgeCount--),this},v.prototype.inEdges=function(O,L){var V=this._in[O];if(V){var W=f.values(V);return L?f.filter(W,function(et){return et.v===L}):W}},v.prototype.outEdges=function(O,L){var V=this._out[O];if(V){var W=f.values(V);return L?f.filter(W,function(et){return et.w===L}):W}},v.prototype.nodeEdges=function(O,L){var V=this.inEdges(O,L);if(V)return V.concat(this.outEdges(O,L))}},51838:(M,z,a)=>{M.exports={Graph:a(66568),version:a(75089)}},21088:(M,z,a)=>{var f=a(79138),h=a(66568);function x(S){return f.map(S.nodes(),function(E){var N=S.node(E),k=S.parent(E),O={v:E};return f.isUndefined(N)||(O.value=N),f.isUndefined(k)||(O.parent=k),O})}function v(S){return f.map(S.edges(),function(E){var N=S.edge(E),k={v:E.v,w:E.w};return f.isUndefined(E.name)||(k.name=E.name),f.isUndefined(N)||(k.value=N),k})}M.exports={write:function y(S){var E={options:{directed:S.isDirected(),multigraph:S.isMultigraph(),compound:S.isCompound()},nodes:x(S),edges:v(S)};return f.isUndefined(S.graph())||(E.value=f.clone(S.graph())),E},read:function _(S){var E=new h(S.options).setGraph(S.value);return f.each(S.nodes,function(N){E.setNode(N.v,N.value),N.parent&&E.setParent(N.v,N.parent)}),f.each(S.edges,function(N){E.setEdge({v:N.v,w:N.w,name:N.name},N.value)}),E}}},79138:(M,z,a)=>{var f;try{f={clone:a(11094),constant:a(76684),each:a(35474),filter:a(35281),has:a(54842),isArray:a(21503),isEmpty:a(71973),isFunction:a(75946),isUndefined:a(34235),keys:a(118),map:a(19984),reduce:a(81337),size:a(55637),transform:a(89416),union:a(68921),values:a(90377)}}catch{}f||(f=window._),M.exports=f},75089:M=>{M.exports="2.1.8"},37244:(M,z,a)=>{var y=a(53436)(a(12119),"DataView");M.exports=y},54994:(M,z,a)=>{var f=a(64312),h=a(46421),y=a(15764),x=a(18685),v=a(26676);function _(S){var E=-1,N=null==S?0:S.length;for(this.clear();++E{var f=a(41840),h=a(34378),y=a(54981),x=a(67343),v=a(98895);function _(S){var E=-1,N=null==S?0:S.length;for(this.clear();++E{var y=a(53436)(a(12119),"Map");M.exports=y},99850:(M,z,a)=>{var f=a(10638),h=a(11184),y=a(70866),x=a(43771),v=a(51772);function _(S){var E=-1,N=null==S?0:S.length;for(this.clear();++E{var y=a(53436)(a(12119),"Promise");M.exports=y},46323:(M,z,a)=>{var y=a(53436)(a(12119),"Set");M.exports=y},58849:(M,z,a)=>{var f=a(99850),h=a(4600),y=a(31387);function x(v){var _=-1,S=null==v?0:v.length;for(this.__data__=new f;++_{var f=a(9215),h=a(13720),y=a(64410),x=a(45576),v=a(22247),_=a(41585);function S(E){var N=this.__data__=new f(E);this.size=N.size}S.prototype.clear=h,S.prototype.delete=y,S.prototype.get=x,S.prototype.has=v,S.prototype.set=_,M.exports=S},60443:(M,z,a)=>{var f=a(12119);M.exports=f.Symbol},73457:(M,z,a)=>{var f=a(12119);M.exports=f.Uint8Array},24243:(M,z,a)=>{var y=a(53436)(a(12119),"WeakMap");M.exports=y},26999:M=>{M.exports=function z(a,f,h){switch(h.length){case 0:return a.call(f);case 1:return a.call(f,h[0]);case 2:return a.call(f,h[0],h[1]);case 3:return a.call(f,h[0],h[1],h[2])}return a.apply(f,h)}},96837:M=>{M.exports=function z(a,f){for(var h=-1,y=null==a?0:a.length;++h{M.exports=function z(a,f){for(var h=-1,y=null==a?0:a.length,x=0,v=[];++h{var f=a(14164);M.exports=function h(y,x){return!(null==y||!y.length)&&f(y,x,0)>-1}},37609:M=>{M.exports=function z(a,f,h){for(var y=-1,x=null==a?0:a.length;++y{var f=a(85334),h=a(77151),y=a(21503),x=a(80891),v=a(58442),_=a(48159),E=Object.prototype.hasOwnProperty;M.exports=function N(k,O){var L=y(k),V=!L&&h(k),W=!L&&!V&&x(k),et=!L&&!V&&!W&&_(k),nt=L||V||W||et,j=nt?f(k.length,String):[],it=j.length;for(var rt in k)(O||E.call(k,rt))&&(!nt||!("length"==rt||W&&("offset"==rt||"parent"==rt)||et&&("buffer"==rt||"byteLength"==rt||"byteOffset"==rt)||v(rt,it)))&&j.push(rt);return j}},84633:M=>{M.exports=function z(a,f){for(var h=-1,y=null==a?0:a.length,x=Array(y);++h{M.exports=function z(a,f){for(var h=-1,y=f.length,x=a.length;++h{M.exports=function z(a,f,h,y){var x=-1,v=null==a?0:a.length;for(y&&v&&(h=a[++x]);++x{M.exports=function z(a,f){for(var h=-1,y=null==a?0:a.length;++h{var h=a(11847)("length");M.exports=h},49276:(M,z,a)=>{var f=a(85683),h=a(20217);M.exports=function y(x,v,_){(void 0!==_&&!h(x[v],_)||void 0===_&&!(v in x))&&f(x,v,_)}},89719:(M,z,a)=>{var f=a(85683),h=a(20217),x=Object.prototype.hasOwnProperty;M.exports=function v(_,S,E){var N=_[S];(!x.call(_,S)||!h(N,E)||void 0===E&&!(S in _))&&f(_,S,E)}},43503:(M,z,a)=>{var f=a(20217);M.exports=function h(y,x){for(var v=y.length;v--;)if(f(y[v][0],x))return v;return-1}},94121:(M,z,a)=>{var f=a(31989),h=a(118);M.exports=function y(x,v){return x&&f(v,h(v),x)}},99287:(M,z,a)=>{var f=a(31989),h=a(16555);M.exports=function y(x,v){return x&&f(v,h(v),x)}},85683:(M,z,a)=>{var f=a(56713);M.exports=function h(y,x,v){"__proto__"==x&&f?f(y,x,{configurable:!0,enumerable:!0,value:v,writable:!0}):y[x]=v}},44462:(M,z,a)=>{var f=a(2858),h=a(96837),y=a(89719),x=a(94121),v=a(99287),_=a(19292),S=a(99454),E=a(84444),N=a(59905),k=a(47597),O=a(6967),L=a(28794),V=a(76782),W=a(37878),et=a(4264),nt=a(21503),j=a(80891),it=a(13222),rt=a(25940),at=a(90799),X=a(118),lt=a(16555),Mt="[object Arguments]",un="[object Function]",ae="[object Object]",Vt={};Vt[Mt]=Vt["[object Array]"]=Vt["[object ArrayBuffer]"]=Vt["[object DataView]"]=Vt["[object Boolean]"]=Vt["[object Date]"]=Vt["[object Float32Array]"]=Vt["[object Float64Array]"]=Vt["[object Int8Array]"]=Vt["[object Int16Array]"]=Vt["[object Int32Array]"]=Vt["[object Map]"]=Vt["[object Number]"]=Vt[ae]=Vt["[object RegExp]"]=Vt["[object Set]"]=Vt["[object String]"]=Vt["[object Symbol]"]=Vt["[object Uint8Array]"]=Vt["[object Uint8ClampedArray]"]=Vt["[object Uint16Array]"]=Vt["[object Uint32Array]"]=!0,Vt["[object Error]"]=Vt[un]=Vt["[object WeakMap]"]=!1,M.exports=function Gt(Xt,cn,hn,xn,Pn,Mn){var Fn,wt=1&cn,zt=2&cn,R=4&cn;if(hn&&(Fn=Pn?hn(Xt,xn,Pn,Mn):hn(Xt)),void 0!==Fn)return Fn;if(!rt(Xt))return Xt;var Z=nt(Xt);if(Z){if(Fn=V(Xt),!wt)return S(Xt,Fn)}else{var dt=L(Xt),Nt=dt==un||"[object GeneratorFunction]"==dt;if(j(Xt))return _(Xt,wt);if(dt==ae||dt==Mt||Nt&&!Pn){if(Fn=zt||Nt?{}:et(Xt),!wt)return zt?N(Xt,v(Fn,Xt)):E(Xt,x(Fn,Xt))}else{if(!Vt[dt])return Pn?Xt:{};Fn=W(Xt,dt,wt)}}Mn||(Mn=new f);var Qt=Mn.get(Xt);if(Qt)return Qt;Mn.set(Xt,Fn),at(Xt)?Xt.forEach(function(jn){Fn.add(Gt(jn,cn,hn,jn,Xt,Mn))}):it(Xt)&&Xt.forEach(function(jn,Jn){Fn.set(Jn,Gt(jn,cn,hn,Jn,Xt,Mn))});var En=Z?void 0:(R?zt?O:k:zt?lt:X)(Xt);return h(En||Xt,function(jn,Jn){En&&(jn=Xt[Jn=jn]),y(Fn,Jn,Gt(jn,cn,hn,Jn,Xt,Mn))}),Fn}},78858:(M,z,a)=>{var f=a(25940),h=Object.create,y=function(){function x(){}return function(v){if(!f(v))return{};if(h)return h(v);x.prototype=v;var _=new x;return x.prototype=void 0,_}}();M.exports=y},43132:(M,z,a)=>{var f=a(45184),y=a(16539)(f);M.exports=y},67308:(M,z,a)=>{var f=a(44129);M.exports=function h(y,x,v){for(var _=-1,S=y.length;++_{var f=a(43132);M.exports=function h(y,x){var v=[];return f(y,function(_,S,E){x(_,S,E)&&v.push(_)}),v}},65317:M=>{M.exports=function z(a,f,h,y){for(var x=a.length,v=h+(y?1:-1);y?v--:++v{var f=a(85059),h=a(75039);M.exports=function y(x,v,_,S,E){var N=-1,k=x.length;for(_||(_=h),E||(E=[]);++N0&&_(O)?v>1?y(O,v-1,_,S,E):f(E,O):S||(E[E.length]=O)}return E}},30755:(M,z,a)=>{var h=a(40456)();M.exports=h},45184:(M,z,a)=>{var f=a(30755),h=a(118);M.exports=function y(x,v){return x&&f(x,v,h)}},15456:(M,z,a)=>{var f=a(65456),h=a(68533);M.exports=function y(x,v){for(var _=0,S=(v=f(v,x)).length;null!=x&&_{var f=a(85059),h=a(21503);M.exports=function y(x,v,_){var S=v(x);return h(x)?S:f(S,_(x))}},93337:(M,z,a)=>{var f=a(60443),h=a(21318),y=a(92902),_=f?f.toStringTag:void 0;M.exports=function S(E){return null==E?void 0===E?"[object Undefined]":"[object Null]":_&&_ in Object(E)?h(E):y(E)}},31100:M=>{M.exports=function z(a,f){return a>f}},84781:M=>{var a=Object.prototype.hasOwnProperty;M.exports=function f(h,y){return null!=h&&a.call(h,y)}},69989:M=>{M.exports=function z(a,f){return null!=a&&f in Object(a)}},14164:(M,z,a)=>{var f=a(65317),h=a(70968),y=a(24977);M.exports=function x(v,_,S){return _==_?y(v,_,S):f(v,h,S)}},60186:(M,z,a)=>{var f=a(93337),h=a(72671);M.exports=function x(v){return h(v)&&"[object Arguments]"==f(v)}},85740:(M,z,a)=>{var f=a(58325),h=a(72671);M.exports=function y(x,v,_,S,E){return x===v||(null==x||null==v||!h(x)&&!h(v)?x!=x&&v!=v:f(x,v,_,S,y,E))}},58325:(M,z,a)=>{var f=a(2858),h=a(63914),y=a(78583),x=a(32286),v=a(28794),_=a(21503),S=a(80891),E=a(48159),k="[object Arguments]",O="[object Array]",L="[object Object]",W=Object.prototype.hasOwnProperty;M.exports=function et(nt,j,it,rt,at,X){var lt=_(nt),mt=_(j),vt=lt?O:v(nt),Pt=mt?O:v(j),Mt=(vt=vt==k?L:vt)==L,Ot=(Pt=Pt==k?L:Pt)==L,Lt=vt==Pt;if(Lt&&S(nt)){if(!S(j))return!1;lt=!0,Mt=!1}if(Lt&&!Mt)return X||(X=new f),lt||E(nt)?h(nt,j,it,rt,at,X):y(nt,j,vt,it,rt,at,X);if(!(1&it)){var Wt=Mt&&W.call(nt,"__wrapped__"),en=Ot&&W.call(j,"__wrapped__");if(Wt||en){var un=Wt?nt.value():nt,bn=en?j.value():j;return X||(X=new f),at(un,bn,it,rt,X)}}return!!Lt&&(X||(X=new f),x(nt,j,it,rt,at,X))}},97021:(M,z,a)=>{var f=a(28794),h=a(72671);M.exports=function x(v){return h(v)&&"[object Map]"==f(v)}},40431:(M,z,a)=>{var f=a(2858),h=a(85740);M.exports=function v(_,S,E,N){var k=E.length,O=k,L=!N;if(null==_)return!O;for(_=Object(_);k--;){var V=E[k];if(L&&V[2]?V[1]!==_[V[0]]:!(V[0]in _))return!1}for(;++k{M.exports=function z(a){return a!=a}},37304:(M,z,a)=>{var f=a(75946),h=a(91943),y=a(25940),x=a(52827),_=/^\[object .+?Constructor\]$/,O=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");M.exports=function L(V){return!(!y(V)||h(V))&&(f(V)?O:_).test(x(V))}},771:(M,z,a)=>{var f=a(28794),h=a(72671);M.exports=function x(v){return h(v)&&"[object Set]"==f(v)}},1083:(M,z,a)=>{var f=a(93337),h=a(96231),y=a(72671),Lt={};Lt["[object Float32Array]"]=Lt["[object Float64Array]"]=Lt["[object Int8Array]"]=Lt["[object Int16Array]"]=Lt["[object Int32Array]"]=Lt["[object Uint8Array]"]=Lt["[object Uint8ClampedArray]"]=Lt["[object Uint16Array]"]=Lt["[object Uint32Array]"]=!0,Lt["[object Arguments]"]=Lt["[object Array]"]=Lt["[object ArrayBuffer]"]=Lt["[object Boolean]"]=Lt["[object DataView]"]=Lt["[object Date]"]=Lt["[object Error]"]=Lt["[object Function]"]=Lt["[object Map]"]=Lt["[object Number]"]=Lt["[object Object]"]=Lt["[object RegExp]"]=Lt["[object Set]"]=Lt["[object String]"]=Lt["[object WeakMap]"]=!1,M.exports=function Wt(en){return y(en)&&h(en.length)&&!!Lt[f(en)]}},96517:(M,z,a)=>{var f=a(98133),h=a(9458),y=a(32608),x=a(21503),v=a(87495);M.exports=function _(S){return"function"==typeof S?S:null==S?y:"object"==typeof S?x(S)?h(S[0],S[1]):f(S):v(S)}},81172:(M,z,a)=>{var f=a(45488),h=a(85491),x=Object.prototype.hasOwnProperty;M.exports=function v(_){if(!f(_))return h(_);var S=[];for(var E in Object(_))x.call(_,E)&&"constructor"!=E&&S.push(E);return S}},92809:(M,z,a)=>{var f=a(25940),h=a(45488),y=a(32158),v=Object.prototype.hasOwnProperty;M.exports=function _(S){if(!f(S))return y(S);var E=h(S),N=[];for(var k in S)"constructor"==k&&(E||!v.call(S,k))||N.push(k);return N}},99069:M=>{M.exports=function z(a,f){return a{var f=a(43132),h=a(56507);M.exports=function y(x,v){var _=-1,S=h(x)?Array(x.length):[];return f(x,function(E,N,k){S[++_]=v(E,N,k)}),S}},98133:(M,z,a)=>{var f=a(40431),h=a(22379),y=a(642);M.exports=function x(v){var _=h(v);return 1==_.length&&_[0][2]?y(_[0][0],_[0][1]):function(S){return S===v||f(S,v,_)}}},9458:(M,z,a)=>{var f=a(85740),h=a(8817),y=a(11172),x=a(45352),v=a(22442),_=a(642),S=a(68533);M.exports=function k(O,L){return x(O)&&v(L)?_(S(O),L):function(V){var W=h(V,O);return void 0===W&&W===L?y(V,O):f(L,W,3)}}},73842:(M,z,a)=>{var f=a(2858),h=a(49276),y=a(30755),x=a(33675),v=a(25940),_=a(16555),S=a(99351);M.exports=function E(N,k,O,L,V){N!==k&&y(k,function(W,et){if(V||(V=new f),v(W))x(N,k,et,O,E,L,V);else{var nt=L?L(S(N,et),W,et+"",N,k,V):void 0;void 0===nt&&(nt=W),h(N,et,nt)}},_)}},33675:(M,z,a)=>{var f=a(49276),h=a(19292),y=a(65208),x=a(99454),v=a(4264),_=a(77151),S=a(21503),E=a(21330),N=a(80891),k=a(75946),O=a(25940),L=a(97614),V=a(48159),W=a(99351),et=a(8067);M.exports=function nt(j,it,rt,at,X,lt,mt){var vt=W(j,rt),Pt=W(it,rt),Mt=mt.get(Pt);if(Mt)f(j,rt,Mt);else{var Ot=lt?lt(vt,Pt,rt+"",j,it,mt):void 0,Lt=void 0===Ot;if(Lt){var Wt=S(Pt),en=!Wt&&N(Pt),un=!Wt&&!en&&V(Pt);Ot=Pt,Wt||en||un?S(vt)?Ot=vt:E(vt)?Ot=x(vt):en?(Lt=!1,Ot=h(Pt,!0)):un?(Lt=!1,Ot=y(Pt,!0)):Ot=[]:L(Pt)||_(Pt)?(Ot=vt,_(vt)?Ot=et(vt):(!O(vt)||k(vt))&&(Ot=v(Pt))):Lt=!1}Lt&&(mt.set(Pt,Ot),X(Ot,Pt,at,lt,mt),mt.delete(Pt)),f(j,rt,Ot)}}},6119:(M,z,a)=>{var f=a(84633),h=a(15456),y=a(96517),x=a(92046),v=a(18750),_=a(85647),S=a(41215),E=a(32608),N=a(21503);M.exports=function k(O,L,V){L=L.length?f(L,function(nt){return N(nt)?function(j){return h(j,1===nt.length?nt[0]:nt)}:nt}):[E];var W=-1;L=f(L,_(y));var et=x(O,function(nt,j,it){return{criteria:f(L,function(at){return at(nt)}),index:++W,value:nt}});return v(et,function(nt,j){return S(nt,j,V)})}},83021:(M,z,a)=>{var f=a(95495),h=a(11172);M.exports=function y(x,v){return f(x,v,function(_,S){return h(x,S)})}},95495:(M,z,a)=>{var f=a(15456),h=a(55963),y=a(65456);M.exports=function x(v,_,S){for(var E=-1,N=_.length,k={};++E{M.exports=function z(a){return function(f){return f?.[a]}}},39222:(M,z,a)=>{var f=a(15456);M.exports=function h(y){return function(x){return f(x,y)}}},16307:M=>{var z=Math.ceil,a=Math.max;M.exports=function f(h,y,x,v){for(var _=-1,S=a(z((y-h)/(x||1)),0),E=Array(S);S--;)E[v?S:++_]=h,h+=x;return E}},13570:M=>{M.exports=function z(a,f,h,y,x){return x(a,function(v,_,S){h=y?(y=!1,v):f(h,v,_,S)}),h}},23269:(M,z,a)=>{var f=a(32608),h=a(53983),y=a(72185);M.exports=function x(v,_){return y(h(v,_,f),v+"")}},55963:(M,z,a)=>{var f=a(89719),h=a(65456),y=a(58442),x=a(25940),v=a(68533);M.exports=function _(S,E,N,k){if(!x(S))return S;for(var O=-1,L=(E=h(E,S)).length,V=L-1,W=S;null!=W&&++O{var f=a(76684),h=a(56713),y=a(32608);M.exports=h?function(v,_){return h(v,"toString",{configurable:!0,enumerable:!1,value:f(_),writable:!0})}:y},18750:M=>{M.exports=function z(a,f){var h=a.length;for(a.sort(f);h--;)a[h]=a[h].value;return a}},85334:M=>{M.exports=function z(a,f){for(var h=-1,y=Array(a);++h{var f=a(60443),h=a(84633),y=a(21503),x=a(44129),_=f?f.prototype:void 0,S=_?_.toString:void 0;M.exports=function E(N){if("string"==typeof N)return N;if(y(N))return h(N,E)+"";if(x(N))return S?S.call(N):"";var k=N+"";return"0"==k&&1/N==-1/0?"-0":k}},83348:(M,z,a)=>{var f=a(42760),h=/^\s+/;M.exports=function y(x){return x&&x.slice(0,f(x)+1).replace(h,"")}},85647:M=>{M.exports=function z(a){return function(f){return a(f)}}},80707:(M,z,a)=>{var f=a(58849),h=a(61253),y=a(37609),x=a(25972),v=a(14575),_=a(24174);M.exports=function E(N,k,O){var L=-1,V=h,W=N.length,et=!0,nt=[],j=nt;if(O)et=!1,V=y;else if(W>=200){var it=k?null:v(N);if(it)return _(it);et=!1,V=x,j=new f}else j=k?[]:nt;t:for(;++L{var f=a(84633);M.exports=function h(y,x){return f(x,function(v){return y[v]})}},38645:M=>{M.exports=function z(a,f,h){for(var y=-1,x=a.length,v=f.length,_={};++y{M.exports=function z(a,f){return a.has(f)}},21481:(M,z,a)=>{var f=a(32608);M.exports=function h(y){return"function"==typeof y?y:f}},65456:(M,z,a)=>{var f=a(21503),h=a(45352),y=a(32855),x=a(73943);M.exports=function v(_,S){return f(_)?_:h(_,S)?[_]:y(x(_))}},43362:(M,z,a)=>{var f=a(73457);M.exports=function h(y){var x=new y.constructor(y.byteLength);return new f(x).set(new f(y)),x}},19292:(M,z,a)=>{M=a.nmd(M);var f=a(12119),h=z&&!z.nodeType&&z,y=h&&M&&!M.nodeType&&M,v=y&&y.exports===h?f.Buffer:void 0,_=v?v.allocUnsafe:void 0;M.exports=function S(E,N){if(N)return E.slice();var k=E.length,O=_?_(k):new E.constructor(k);return E.copy(O),O}},17e3:(M,z,a)=>{var f=a(43362);M.exports=function h(y,x){var v=x?f(y.buffer):y.buffer;return new y.constructor(v,y.byteOffset,y.byteLength)}},74098:M=>{var z=/\w*$/;M.exports=function a(f){var h=new f.constructor(f.source,z.exec(f));return h.lastIndex=f.lastIndex,h}},62533:(M,z,a)=>{var f=a(60443),h=f?f.prototype:void 0,y=h?h.valueOf:void 0;M.exports=function x(v){return y?Object(y.call(v)):{}}},65208:(M,z,a)=>{var f=a(43362);M.exports=function h(y,x){var v=x?f(y.buffer):y.buffer;return new y.constructor(v,y.byteOffset,y.length)}},13443:(M,z,a)=>{var f=a(44129);M.exports=function h(y,x){if(y!==x){var v=void 0!==y,_=null===y,S=y==y,E=f(y),N=void 0!==x,k=null===x,O=x==x,L=f(x);if(!k&&!L&&!E&&y>x||E&&N&&O&&!k&&!L||_&&N&&O||!v&&O||!S)return 1;if(!_&&!E&&!L&&y{var f=a(13443);M.exports=function h(y,x,v){for(var _=-1,S=y.criteria,E=x.criteria,N=S.length,k=v.length;++_=k?O:O*("desc"==v[_]?-1:1)}return y.index-x.index}},99454:M=>{M.exports=function z(a,f){var h=-1,y=a.length;for(f||(f=Array(y));++h{var f=a(89719),h=a(85683);M.exports=function y(x,v,_,S){var E=!_;_||(_={});for(var N=-1,k=v.length;++N{var f=a(31989),h=a(39383);M.exports=function y(x,v){return f(x,h(x),v)}},59905:(M,z,a)=>{var f=a(31989),h=a(53051);M.exports=function y(x,v){return f(x,h(x),v)}},24610:(M,z,a)=>{var f=a(12119);M.exports=f["__core-js_shared__"]},84944:(M,z,a)=>{var f=a(23269),h=a(93342);M.exports=function y(x){return f(function(v,_){var S=-1,E=_.length,N=E>1?_[E-1]:void 0,k=E>2?_[2]:void 0;for(N=x.length>3&&"function"==typeof N?(E--,N):void 0,k&&h(_[0],_[1],k)&&(N=E<3?void 0:N,E=1),v=Object(v);++S{var f=a(56507);M.exports=function h(y,x){return function(v,_){if(null==v)return v;if(!f(v))return y(v,_);for(var S=v.length,E=x?S:-1,N=Object(v);(x?E--:++E{M.exports=function z(a){return function(f,h,y){for(var x=-1,v=Object(f),_=y(f),S=_.length;S--;){var E=_[a?S:++x];if(!1===h(v[E],E,v))break}return f}}},24653:(M,z,a)=>{var f=a(96517),h=a(56507),y=a(118);M.exports=function x(v){return function(_,S,E){var N=Object(_);if(!h(_)){var k=f(S,3);_=y(_),S=function(L){return k(N[L],L,N)}}var O=v(_,S,E);return O>-1?N[k?_[O]:O]:void 0}}},97509:(M,z,a)=>{var f=a(16307),h=a(93342),y=a(12232);M.exports=function x(v){return function(_,S,E){return E&&"number"!=typeof E&&h(_,S,E)&&(S=E=void 0),_=y(_),void 0===S?(S=_,_=0):S=y(S),E=void 0===E?_{var f=a(46323),h=a(12552),y=a(24174),v=f&&1/y(new f([,-0]))[1]==1/0?function(_){return new f(_)}:h;M.exports=v},56713:(M,z,a)=>{var f=a(53436),h=function(){try{var y=f(Object,"defineProperty");return y({},"",{}),y}catch{}}();M.exports=h},63914:(M,z,a)=>{var f=a(58849),h=a(79503),y=a(25972);M.exports=function _(S,E,N,k,O,L){var V=1&N,W=S.length,et=E.length;if(W!=et&&!(V&&et>W))return!1;var nt=L.get(S),j=L.get(E);if(nt&&j)return nt==E&&j==S;var it=-1,rt=!0,at=2&N?new f:void 0;for(L.set(S,E),L.set(E,S);++it{var f=a(60443),h=a(73457),y=a(20217),x=a(63914),v=a(83205),_=a(24174),at=f?f.prototype:void 0,X=at?at.valueOf:void 0;M.exports=function lt(mt,vt,Pt,Mt,Ot,Lt,Wt){switch(Pt){case"[object DataView]":if(mt.byteLength!=vt.byteLength||mt.byteOffset!=vt.byteOffset)return!1;mt=mt.buffer,vt=vt.buffer;case"[object ArrayBuffer]":return!(mt.byteLength!=vt.byteLength||!Lt(new h(mt),new h(vt)));case"[object Boolean]":case"[object Date]":case"[object Number]":return y(+mt,+vt);case"[object Error]":return mt.name==vt.name&&mt.message==vt.message;case"[object RegExp]":case"[object String]":return mt==vt+"";case"[object Map]":var en=v;case"[object Set]":if(en||(en=_),mt.size!=vt.size&&!(1&Mt))return!1;var bn=Wt.get(mt);if(bn)return bn==vt;Mt|=2,Wt.set(mt,vt);var Nn=x(en(mt),en(vt),Mt,Ot,Lt,Wt);return Wt.delete(mt),Nn;case"[object Symbol]":if(X)return X.call(mt)==X.call(vt)}return!1}},32286:(M,z,a)=>{var f=a(47597),x=Object.prototype.hasOwnProperty;M.exports=function v(_,S,E,N,k,O){var L=1&E,V=f(_),W=V.length;if(W!=f(S).length&&!L)return!1;for(var j=W;j--;){var it=V[j];if(!(L?it in S:x.call(S,it)))return!1}var rt=O.get(_),at=O.get(S);if(rt&&at)return rt==S&&at==_;var X=!0;O.set(_,S),O.set(S,_);for(var lt=L;++j{var f=a(22274),h=a(53983),y=a(72185);M.exports=function x(v){return y(h(v,void 0,f),v+"")}},79122:M=>{var z="object"==typeof global&&global&&global.Object===Object&&global;M.exports=z},47597:(M,z,a)=>{var f=a(38247),h=a(39383),y=a(118);M.exports=function x(v){return f(v,y,h)}},6967:(M,z,a)=>{var f=a(38247),h=a(53051),y=a(16555);M.exports=function x(v){return f(v,y,h)}},54537:(M,z,a)=>{var f=a(23819);M.exports=function h(y,x){var v=y.__data__;return f(x)?v["string"==typeof x?"string":"hash"]:v.map}},22379:(M,z,a)=>{var f=a(22442),h=a(118);M.exports=function y(x){for(var v=h(x),_=v.length;_--;){var S=v[_],E=x[S];v[_]=[S,E,f(E)]}return v}},53436:(M,z,a)=>{var f=a(37304),h=a(51990);M.exports=function y(x,v){var _=h(x,v);return f(_)?_:void 0}},29519:(M,z,a)=>{var h=a(69385)(Object.getPrototypeOf,Object);M.exports=h},21318:(M,z,a)=>{var f=a(60443),h=Object.prototype,y=h.hasOwnProperty,x=h.toString,v=f?f.toStringTag:void 0;M.exports=function _(S){var E=y.call(S,v),N=S[v];try{S[v]=void 0;var k=!0}catch{}var O=x.call(S);return k&&(E?S[v]=N:delete S[v]),O}},39383:(M,z,a)=>{var f=a(69779),h=a(49975),x=Object.prototype.propertyIsEnumerable,v=Object.getOwnPropertySymbols;M.exports=v?function(S){return null==S?[]:(S=Object(S),f(v(S),function(E){return x.call(S,E)}))}:h},53051:(M,z,a)=>{var f=a(85059),h=a(29519),y=a(39383),x=a(49975);M.exports=Object.getOwnPropertySymbols?function(S){for(var E=[];S;)f(E,y(S)),S=h(S);return E}:x},28794:(M,z,a)=>{var f=a(37244),h=a(51501),y=a(44267),x=a(46323),v=a(24243),_=a(93337),S=a(52827),E="[object Map]",k="[object Promise]",O="[object Set]",L="[object WeakMap]",V="[object DataView]",W=S(f),et=S(h),nt=S(y),j=S(x),it=S(v),rt=_;(f&&rt(new f(new ArrayBuffer(1)))!=V||h&&rt(new h)!=E||y&&rt(y.resolve())!=k||x&&rt(new x)!=O||v&&rt(new v)!=L)&&(rt=function(at){var X=_(at),lt="[object Object]"==X?at.constructor:void 0,mt=lt?S(lt):"";if(mt)switch(mt){case W:return V;case et:return E;case nt:return k;case j:return O;case it:return L}return X}),M.exports=rt},51990:M=>{M.exports=function z(a,f){return a?.[f]}},47283:(M,z,a)=>{var f=a(65456),h=a(77151),y=a(21503),x=a(58442),v=a(96231),_=a(68533);M.exports=function S(E,N,k){for(var O=-1,L=(N=f(N,E)).length,V=!1;++O{var _=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");M.exports=function S(E){return _.test(E)}},64312:(M,z,a)=>{var f=a(60862);M.exports=function h(){this.__data__=f?f(null):{},this.size=0}},46421:M=>{M.exports=function z(a){var f=this.has(a)&&delete this.__data__[a];return this.size-=f?1:0,f}},15764:(M,z,a)=>{var f=a(60862),x=Object.prototype.hasOwnProperty;M.exports=function v(_){var S=this.__data__;if(f){var E=S[_];return"__lodash_hash_undefined__"===E?void 0:E}return x.call(S,_)?S[_]:void 0}},18685:(M,z,a)=>{var f=a(60862),y=Object.prototype.hasOwnProperty;M.exports=function x(v){var _=this.__data__;return f?void 0!==_[v]:y.call(_,v)}},26676:(M,z,a)=>{var f=a(60862);M.exports=function y(x,v){var _=this.__data__;return this.size+=this.has(x)?0:1,_[x]=f&&void 0===v?"__lodash_hash_undefined__":v,this}},76782:M=>{var a=Object.prototype.hasOwnProperty;M.exports=function f(h){var y=h.length,x=new h.constructor(y);return y&&"string"==typeof h[0]&&a.call(h,"index")&&(x.index=h.index,x.input=h.input),x}},37878:(M,z,a)=>{var f=a(43362),h=a(17e3),y=a(74098),x=a(62533),v=a(65208);M.exports=function Pt(Mt,Ot,Lt){var Wt=Mt.constructor;switch(Ot){case"[object ArrayBuffer]":return f(Mt);case"[object Boolean]":case"[object Date]":return new Wt(+Mt);case"[object DataView]":return h(Mt,Lt);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return v(Mt,Lt);case"[object Map]":case"[object Set]":return new Wt;case"[object Number]":case"[object String]":return new Wt(Mt);case"[object RegExp]":return y(Mt);case"[object Symbol]":return x(Mt)}}},4264:(M,z,a)=>{var f=a(78858),h=a(29519),y=a(45488);M.exports=function x(v){return"function"!=typeof v.constructor||y(v)?{}:f(h(v))}},75039:(M,z,a)=>{var f=a(60443),h=a(77151),y=a(21503),x=f?f.isConcatSpreadable:void 0;M.exports=function v(_){return y(_)||h(_)||!!(x&&_&&_[x])}},58442:M=>{var a=/^(?:0|[1-9]\d*)$/;M.exports=function f(h,y){var x=typeof h;return!!(y=y??9007199254740991)&&("number"==x||"symbol"!=x&&a.test(h))&&h>-1&&h%1==0&&h{var f=a(20217),h=a(56507),y=a(58442),x=a(25940);M.exports=function v(_,S,E){if(!x(E))return!1;var N=typeof S;return!!("number"==N?h(E)&&y(S,E.length):"string"==N&&S in E)&&f(E[S],_)}},45352:(M,z,a)=>{var f=a(21503),h=a(44129),y=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,x=/^\w*$/;M.exports=function v(_,S){if(f(_))return!1;var E=typeof _;return!("number"!=E&&"symbol"!=E&&"boolean"!=E&&null!=_&&!h(_))||x.test(_)||!y.test(_)||null!=S&&_ in Object(S)}},23819:M=>{M.exports=function z(a){var f=typeof a;return"string"==f||"number"==f||"symbol"==f||"boolean"==f?"__proto__"!==a:null===a}},91943:(M,z,a)=>{var x,f=a(24610),h=(x=/[^.]+$/.exec(f&&f.keys&&f.keys.IE_PROTO||""))?"Symbol(src)_1."+x:"";M.exports=function y(x){return!!h&&h in x}},45488:M=>{var z=Object.prototype;M.exports=function a(f){var h=f&&f.constructor;return f===("function"==typeof h&&h.prototype||z)}},22442:(M,z,a)=>{var f=a(25940);M.exports=function h(y){return y==y&&!f(y)}},41840:M=>{M.exports=function z(){this.__data__=[],this.size=0}},34378:(M,z,a)=>{var f=a(43503),y=Array.prototype.splice;M.exports=function x(v){var _=this.__data__,S=f(_,v);return!(S<0||(S==_.length-1?_.pop():y.call(_,S,1),--this.size,0))}},54981:(M,z,a)=>{var f=a(43503);M.exports=function h(y){var x=this.__data__,v=f(x,y);return v<0?void 0:x[v][1]}},67343:(M,z,a)=>{var f=a(43503);M.exports=function h(y){return f(this.__data__,y)>-1}},98895:(M,z,a)=>{var f=a(43503);M.exports=function h(y,x){var v=this.__data__,_=f(v,y);return _<0?(++this.size,v.push([y,x])):v[_][1]=x,this}},10638:(M,z,a)=>{var f=a(54994),h=a(9215),y=a(51501);M.exports=function x(){this.size=0,this.__data__={hash:new f,map:new(y||h),string:new f}}},11184:(M,z,a)=>{var f=a(54537);M.exports=function h(y){var x=f(this,y).delete(y);return this.size-=x?1:0,x}},70866:(M,z,a)=>{var f=a(54537);M.exports=function h(y){return f(this,y).get(y)}},43771:(M,z,a)=>{var f=a(54537);M.exports=function h(y){return f(this,y).has(y)}},51772:(M,z,a)=>{var f=a(54537);M.exports=function h(y,x){var v=f(this,y),_=v.size;return v.set(y,x),this.size+=v.size==_?0:1,this}},83205:M=>{M.exports=function z(a){var f=-1,h=Array(a.size);return a.forEach(function(y,x){h[++f]=[x,y]}),h}},642:M=>{M.exports=function z(a,f){return function(h){return null!=h&&h[a]===f&&(void 0!==f||a in Object(h))}}},90719:(M,z,a)=>{var f=a(30535);M.exports=function y(x){var v=f(x,function(S){return 500===_.size&&_.clear(),S}),_=v.cache;return v}},60862:(M,z,a)=>{var h=a(53436)(Object,"create");M.exports=h},85491:(M,z,a)=>{var h=a(69385)(Object.keys,Object);M.exports=h},32158:M=>{M.exports=function z(a){var f=[];if(null!=a)for(var h in Object(a))f.push(h);return f}},73597:(M,z,a)=>{M=a.nmd(M);var f=a(79122),h=z&&!z.nodeType&&z,y=h&&M&&!M.nodeType&&M,v=y&&y.exports===h&&f.process,_=function(){try{return y&&y.require&&y.require("util").types||v&&v.binding&&v.binding("util")}catch{}}();M.exports=_},92902:M=>{var a=Object.prototype.toString;M.exports=function f(h){return a.call(h)}},69385:M=>{M.exports=function z(a,f){return function(h){return a(f(h))}}},53983:(M,z,a)=>{var f=a(26999),h=Math.max;M.exports=function y(x,v,_){return v=h(void 0===v?x.length-1:v,0),function(){for(var S=arguments,E=-1,N=h(S.length-v,0),k=Array(N);++E{var f=a(79122),h="object"==typeof self&&self&&self.Object===Object&&self,y=f||h||Function("return this")();M.exports=y},99351:M=>{M.exports=function z(a,f){if(("constructor"!==f||"function"!=typeof a[f])&&"__proto__"!=f)return a[f]}},4600:M=>{M.exports=function a(f){return this.__data__.set(f,"__lodash_hash_undefined__"),this}},31387:M=>{M.exports=function z(a){return this.__data__.has(a)}},24174:M=>{M.exports=function z(a){var f=-1,h=Array(a.size);return a.forEach(function(y){h[++f]=y}),h}},72185:(M,z,a)=>{var f=a(69510),y=a(10029)(f);M.exports=y},10029:M=>{var f=Date.now;M.exports=function h(y){var x=0,v=0;return function(){var _=f(),S=16-(_-v);if(v=_,S>0){if(++x>=800)return arguments[0]}else x=0;return y.apply(void 0,arguments)}}},13720:(M,z,a)=>{var f=a(9215);M.exports=function h(){this.__data__=new f,this.size=0}},64410:M=>{M.exports=function z(a){var f=this.__data__,h=f.delete(a);return this.size=f.size,h}},45576:M=>{M.exports=function z(a){return this.__data__.get(a)}},22247:M=>{M.exports=function z(a){return this.__data__.has(a)}},41585:(M,z,a)=>{var f=a(9215),h=a(51501),y=a(99850);M.exports=function v(_,S){var E=this.__data__;if(E instanceof f){var N=E.__data__;if(!h||N.length<199)return N.push([_,S]),this.size=++E.size,this;E=this.__data__=new y(N)}return E.set(_,S),this.size=E.size,this}},24977:M=>{M.exports=function z(a,f,h){for(var y=h-1,x=a.length;++y{var f=a(75481),h=a(77609),y=a(81149);M.exports=function x(v){return h(v)?y(v):f(v)}},32855:(M,z,a)=>{var f=a(90719),h=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,y=/\\(\\)?/g,x=f(function(v){var _=[];return 46===v.charCodeAt(0)&&_.push(""),v.replace(h,function(S,E,N,k){_.push(N?k.replace(y,"$1"):E||S)}),_});M.exports=x},68533:(M,z,a)=>{var f=a(44129);M.exports=function y(x){if("string"==typeof x||f(x))return x;var v=x+"";return"0"==v&&1/x==-1/0?"-0":v}},52827:M=>{var a=Function.prototype.toString;M.exports=function f(h){if(null!=h){try{return a.call(h)}catch{}try{return h+""}catch{}}return""}},42760:M=>{var z=/\s/;M.exports=function a(f){for(var h=f.length;h--&&z.test(f.charAt(h)););return h}},81149:M=>{var z="\\ud800-\\udfff",v="["+z+"]",_="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",S="\\ud83c[\\udffb-\\udfff]",N="[^"+z+"]",k="(?:\\ud83c[\\udde6-\\uddff]){2}",O="[\\ud800-\\udbff][\\udc00-\\udfff]",V="(?:"+_+"|"+S+")?",W="[\\ufe0e\\ufe0f]?",nt=W+V+"(?:\\u200d(?:"+[N,k,O].join("|")+")"+W+V+")*",j="(?:"+[N+_+"?",_,k,O,v].join("|")+")",it=RegExp(S+"(?="+S+")|"+j+nt,"g");M.exports=function rt(at){for(var X=it.lastIndex=0;it.test(at);)++X;return X}},11094:(M,z,a)=>{var f=a(44462);M.exports=function y(x){return f(x,4)}},90733:(M,z,a)=>{var f=a(44462);M.exports=function x(v){return f(v,5)}},76684:M=>{M.exports=function z(a){return function(){return a}}},28800:(M,z,a)=>{var f=a(23269),h=a(20217),y=a(93342),x=a(16555),v=Object.prototype,_=v.hasOwnProperty,S=f(function(E,N){E=Object(E);var k=-1,O=N.length,L=O>2?N[2]:void 0;for(L&&y(N[0],N[1],L)&&(O=1);++k{M.exports=a(89851)},20217:M=>{M.exports=function z(a,f){return a===f||a!=a&&f!=f}},35281:(M,z,a)=>{var f=a(69779),h=a(33609),y=a(96517),x=a(21503);M.exports=function v(_,S){return(x(_)?f:h)(_,y(S,3))}},62516:(M,z,a)=>{var y=a(24653)(a(36397));M.exports=y},36397:(M,z,a)=>{var f=a(65317),h=a(96517),y=a(44401),x=Math.max;M.exports=function v(_,S,E){var N=null==_?0:_.length;if(!N)return-1;var k=null==E?0:y(E);return k<0&&(k=x(N+k,0)),f(_,h(S,3),k)}},22274:(M,z,a)=>{var f=a(50686);M.exports=function h(y){return null!=y&&y.length?f(y,1):[]}},89851:(M,z,a)=>{var f=a(96837),h=a(43132),y=a(21481),x=a(21503);M.exports=function v(_,S){return(x(_)?f:h)(_,y(S))}},41176:(M,z,a)=>{var f=a(30755),h=a(21481),y=a(16555);M.exports=function x(v,_){return null==v?v:f(v,h(_),y)}},8817:(M,z,a)=>{var f=a(15456);M.exports=function h(y,x,v){var _=null==y?void 0:f(y,x);return void 0===_?v:_}},54842:(M,z,a)=>{var f=a(84781),h=a(47283);M.exports=function y(x,v){return null!=x&&h(x,v,f)}},11172:(M,z,a)=>{var f=a(69989),h=a(47283);M.exports=function y(x,v){return null!=x&&h(x,v,f)}},32608:M=>{M.exports=function z(a){return a}},77151:(M,z,a)=>{var f=a(60186),h=a(72671),y=Object.prototype,x=y.hasOwnProperty,v=y.propertyIsEnumerable,_=f(function(){return arguments}())?f:function(S){return h(S)&&x.call(S,"callee")&&!v.call(S,"callee")};M.exports=_},21503:M=>{M.exports=Array.isArray},56507:(M,z,a)=>{var f=a(75946),h=a(96231);M.exports=function y(x){return null!=x&&h(x.length)&&!f(x)}},21330:(M,z,a)=>{var f=a(56507),h=a(72671);M.exports=function y(x){return h(x)&&f(x)}},80891:(M,z,a)=>{M=a.nmd(M);var f=a(12119),h=a(63580),y=z&&!z.nodeType&&z,x=y&&M&&!M.nodeType&&M,_=x&&x.exports===y?f.Buffer:void 0;M.exports=(_?_.isBuffer:void 0)||h},71973:(M,z,a)=>{var f=a(81172),h=a(28794),y=a(77151),x=a(21503),v=a(56507),_=a(80891),S=a(45488),E=a(48159),L=Object.prototype.hasOwnProperty;M.exports=function V(W){if(null==W)return!0;if(v(W)&&(x(W)||"string"==typeof W||"function"==typeof W.splice||_(W)||E(W)||y(W)))return!W.length;var et=h(W);if("[object Map]"==et||"[object Set]"==et)return!W.size;if(S(W))return!f(W).length;for(var nt in W)if(L.call(W,nt))return!1;return!0}},75946:(M,z,a)=>{var f=a(93337),h=a(25940);M.exports=function S(E){if(!h(E))return!1;var N=f(E);return"[object Function]"==N||"[object GeneratorFunction]"==N||"[object AsyncFunction]"==N||"[object Proxy]"==N}},96231:M=>{M.exports=function a(f){return"number"==typeof f&&f>-1&&f%1==0&&f<=9007199254740991}},13222:(M,z,a)=>{var f=a(97021),h=a(85647),y=a(73597),x=y&&y.isMap,v=x?h(x):f;M.exports=v},25940:M=>{M.exports=function z(a){var f=typeof a;return null!=a&&("object"==f||"function"==f)}},72671:M=>{M.exports=function z(a){return null!=a&&"object"==typeof a}},97614:(M,z,a)=>{var f=a(93337),h=a(29519),y=a(72671),S=Function.prototype.toString,E=Object.prototype.hasOwnProperty,N=S.call(Object);M.exports=function k(O){if(!y(O)||"[object Object]"!=f(O))return!1;var L=h(O);if(null===L)return!0;var V=E.call(L,"constructor")&&L.constructor;return"function"==typeof V&&V instanceof V&&S.call(V)==N}},90799:(M,z,a)=>{var f=a(771),h=a(85647),y=a(73597),x=y&&y.isSet,v=x?h(x):f;M.exports=v},30248:(M,z,a)=>{var f=a(93337),h=a(21503),y=a(72671);M.exports=function v(_){return"string"==typeof _||!h(_)&&y(_)&&"[object String]"==f(_)}},44129:(M,z,a)=>{var f=a(93337),h=a(72671);M.exports=function x(v){return"symbol"==typeof v||h(v)&&"[object Symbol]"==f(v)}},48159:(M,z,a)=>{var f=a(1083),h=a(85647),y=a(73597),x=y&&y.isTypedArray,v=x?h(x):f;M.exports=v},34235:M=>{M.exports=function z(a){return void 0===a}},118:(M,z,a)=>{var f=a(72271),h=a(81172),y=a(56507);M.exports=function x(v){return y(v)?f(v):h(v)}},16555:(M,z,a)=>{var f=a(72271),h=a(92809),y=a(56507);M.exports=function x(v){return y(v)?f(v,!0):h(v)}},25809:M=>{M.exports=function z(a){var f=null==a?0:a.length;return f?a[f-1]:void 0}},19984:(M,z,a)=>{var f=a(84633),h=a(96517),y=a(92046),x=a(21503);M.exports=function v(_,S){return(x(_)?f:y)(_,h(S,3))}},10203:(M,z,a)=>{var f=a(85683),h=a(45184),y=a(96517);M.exports=function x(v,_){var S={};return _=y(_,3),h(v,function(E,N,k){f(S,N,_(E,N,k))}),S}},18176:(M,z,a)=>{var f=a(67308),h=a(31100),y=a(32608);M.exports=function x(v){return v&&v.length?f(v,y,h):void 0}},30535:(M,z,a)=>{var f=a(99850);function y(x,v){if("function"!=typeof x||null!=v&&"function"!=typeof v)throw new TypeError("Expected a function");var _=function(){var S=arguments,E=v?v.apply(this,S):S[0],N=_.cache;if(N.has(E))return N.get(E);var k=x.apply(this,S);return _.cache=N.set(E,k)||N,k};return _.cache=new(y.Cache||f),_}y.Cache=f,M.exports=y},80567:(M,z,a)=>{var f=a(73842),y=a(84944)(function(x,v,_){f(x,v,_)});M.exports=y},29439:(M,z,a)=>{var f=a(67308),h=a(99069),y=a(32608);M.exports=function x(v){return v&&v.length?f(v,y,h):void 0}},29525:(M,z,a)=>{var f=a(67308),h=a(96517),y=a(99069);M.exports=function x(v,_){return v&&v.length?f(v,h(_,2),y):void 0}},12552:M=>{M.exports=function z(){}},31710:(M,z,a)=>{var f=a(12119);M.exports=function(){return f.Date.now()}},16372:(M,z,a)=>{var f=a(83021),y=a(3975)(function(x,v){return null==x?{}:f(x,v)});M.exports=y},87495:(M,z,a)=>{var f=a(11847),h=a(39222),y=a(45352),x=a(68533);M.exports=function v(_){return y(_)?f(x(_)):h(_)}},90361:(M,z,a)=>{var h=a(97509)();M.exports=h},81337:(M,z,a)=>{var f=a(8745),h=a(43132),y=a(96517),x=a(13570),v=a(21503);M.exports=function _(S,E,N){var k=v(S)?f:x,O=arguments.length<3;return k(S,y(E,4),N,O,h)}},55637:(M,z,a)=>{var f=a(81172),h=a(28794),y=a(56507),x=a(30248),v=a(52315);M.exports=function E(N){if(null==N)return 0;if(y(N))return x(N)?v(N):N.length;var k=h(N);return"[object Map]"==k||"[object Set]"==k?N.size:f(N).length}},12906:(M,z,a)=>{var f=a(50686),h=a(6119),y=a(23269),x=a(93342),v=y(function(_,S){if(null==_)return[];var E=S.length;return E>1&&x(_,S[0],S[1])?S=[]:E>2&&x(S[0],S[1],S[2])&&(S=[S[0]]),h(_,f(S,1),[])});M.exports=v},49975:M=>{M.exports=function z(){return[]}},63580:M=>{M.exports=function z(){return!1}},12232:(M,z,a)=>{var f=a(51467),h=1/0;M.exports=function x(v){return v?(v=f(v))===h||v===-h?17976931348623157e292*(v<0?-1:1):v==v?v:0:0===v?v:0}},44401:(M,z,a)=>{var f=a(12232);M.exports=function h(y){var x=f(y),v=x%1;return x==x?v?x-v:x:0}},51467:(M,z,a)=>{var f=a(83348),h=a(25940),y=a(44129),v=/^[-+]0x[0-9a-f]+$/i,_=/^0b[01]+$/i,S=/^0o[0-7]+$/i,E=parseInt;M.exports=function N(k){if("number"==typeof k)return k;if(y(k))return NaN;if(h(k)){var O="function"==typeof k.valueOf?k.valueOf():k;k=h(O)?O+"":O}if("string"!=typeof k)return 0===k?k:+k;k=f(k);var L=_.test(k);return L||S.test(k)?E(k.slice(2),L?2:8):v.test(k)?NaN:+k}},8067:(M,z,a)=>{var f=a(31989),h=a(16555);M.exports=function y(x){return f(x,h(x))}},73943:(M,z,a)=>{var f=a(93935);M.exports=function h(y){return null==y?"":f(y)}},89416:(M,z,a)=>{var f=a(96837),h=a(78858),y=a(45184),x=a(96517),v=a(29519),_=a(21503),S=a(80891),E=a(75946),N=a(25940),k=a(48159);M.exports=function O(L,V,W){var et=_(L),nt=et||S(L)||k(L);if(V=x(V,4),null==W){var j=L&&L.constructor;W=nt?et?new j:[]:N(L)&&E(j)?h(v(L)):{}}return(nt?f:y)(L,function(it,rt,at){return V(W,it,rt,at)}),W}},68921:(M,z,a)=>{var f=a(50686),h=a(23269),y=a(80707),x=a(21330),v=h(function(_){return y(f(_,1,x,!0))});M.exports=v},51541:(M,z,a)=>{var f=a(73943),h=0;M.exports=function y(x){var v=++h;return f(x)+v}},90377:(M,z,a)=>{var f=a(19179),h=a(118);M.exports=function y(x){return null==x?[]:f(x,h(x))}},21617:(M,z,a)=>{var f=a(89719),h=a(38645);M.exports=function y(x,v){return h(x||[],v||[],f)}},60903:(M,z,a)=>{"use strict";a.d(z,{Z:()=>S});var f={value:()=>{}};function h(){for(var O,E=0,N=arguments.length,k={};E=0&&(O=k.slice(L+1),k=k.slice(0,L)),k&&!N.hasOwnProperty(k))throw new Error("unknown type: "+k);return{type:k,name:O}})}function v(E,N){for(var L,k=0,O=E.length;k0)for(var L,V,k=new Array(L),O=0;O{"use strict";a.d(z,{D:()=>x,Z:()=>y});var f=a(60711),h=a(51466);function y(v){var _=v.document.documentElement,S=(0,f.Z)(v).on("dragstart.drag",h.ZP,h.Dd);"onselectstart"in _?S.on("selectstart.drag",h.ZP,h.Dd):(_.__noselect=_.style.MozUserSelect,_.style.MozUserSelect="none")}function x(v,_){var S=v.document.documentElement,E=(0,f.Z)(v).on("dragstart.drag",null);_&&(E.on("click.drag",h.ZP,h.Dd),setTimeout(function(){E.on("click.drag",null)},0)),"onselectstart"in S?E.on("selectstart.drag",null):(S.style.MozUserSelect=S.__noselect,delete S.__noselect)}},51466:(M,z,a)=>{"use strict";a.d(z,{Dd:()=>h,Q7:()=>f,ZP:()=>x,rG:()=>y});const f={passive:!1},h={capture:!0,passive:!1};function y(v){v.stopImmediatePropagation()}function x(v){v.preventDefault(),v.stopImmediatePropagation()}},89515:(M,z,a)=>{"use strict";a.d(z,{WU:()=>y,ZP:()=>v,jH:()=>x});var h,y,x,f=a(21058);function v(_){return h=(0,f.Z)(_),y=h.format,x=h.formatPrefix,h}v({thousands:",",grouping:[3],currency:["$",""]})},73661:(M,z,a)=>{"use strict";a.d(z,{Z:()=>h});var f=a(58352);function h(y){return(y=(0,f.V)(Math.abs(y)))?y[1]:NaN}},58352:(M,z,a)=>{"use strict";function f(y){return Math.abs(y=Math.round(y))>=1e21?y.toLocaleString("en").replace(/,/g,""):y.toString(10)}function h(y,x){if((v=(y=x?y.toExponential(x-1):y.toExponential()).indexOf("e"))<0)return null;var v,_=y.slice(0,v);return[_.length>1?_[0]+_.slice(2):_,+y.slice(v+1)]}a.d(z,{V:()=>h,Z:()=>f})},9009:(M,z,a)=>{"use strict";a.d(z,{Z:()=>h,v:()=>y});var f=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function h(x){if(!(v=f.exec(x)))throw new Error("invalid format: "+x);var v;return new y({fill:v[1],align:v[2],sign:v[3],symbol:v[4],zero:v[5],width:v[6],comma:v[7],precision:v[8]&&v[8].slice(1),trim:v[9],type:v[10]})}function y(x){this.fill=void 0===x.fill?" ":x.fill+"",this.align=void 0===x.align?">":x.align+"",this.sign=void 0===x.sign?"-":x.sign+"",this.symbol=void 0===x.symbol?"":x.symbol+"",this.zero=!!x.zero,this.width=void 0===x.width?void 0:+x.width,this.comma=!!x.comma,this.precision=void 0===x.precision?void 0:+x.precision,this.trim=!!x.trim,this.type=void 0===x.type?"":x.type+""}h.prototype=y.prototype,y.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},21058:(M,z,a)=>{"use strict";a.d(z,{Z:()=>W});var S,f=a(73661),x=a(9009),_=a(58352);function N(et,nt){var j=(0,_.V)(et,nt);if(!j)return et+"";var it=j[0],rt=j[1];return rt<0?"0."+new Array(-rt).join("0")+it:it.length>rt+1?it.slice(0,rt+1)+"."+it.slice(rt+1):it+new Array(rt-it.length+2).join("0")}const k={"%":(et,nt)=>(100*et).toFixed(nt),b:et=>Math.round(et).toString(2),c:et=>et+"",d:_.Z,e:(et,nt)=>et.toExponential(nt),f:(et,nt)=>et.toFixed(nt),g:(et,nt)=>et.toPrecision(nt),o:et=>Math.round(et).toString(8),p:(et,nt)=>N(100*et,nt),r:N,s:function E(et,nt){var j=(0,_.V)(et,nt);if(!j)return et+"";var it=j[0],rt=j[1],at=rt-(S=3*Math.max(-8,Math.min(8,Math.floor(rt/3))))+1,X=it.length;return at===X?it:at>X?it+new Array(at-X+1).join("0"):at>0?it.slice(0,at)+"."+it.slice(at):"0."+new Array(1-at).join("0")+(0,_.V)(et,Math.max(0,nt+at-1))[0]},X:et=>Math.round(et).toString(16).toUpperCase(),x:et=>Math.round(et).toString(16)};function O(et){return et}var L=Array.prototype.map,V=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function W(et){var nt=void 0===et.grouping||void 0===et.thousands?O:function h(et,nt){return function(j,it){for(var rt=j.length,at=[],X=0,lt=et[0],mt=0;rt>0&<>0&&(mt+lt+1>it&&(lt=Math.max(1,it-mt)),at.push(j.substring(rt-=lt,rt+lt)),!((mt+=lt+1)>it));)lt=et[X=(X+1)%et.length];return at.reverse().join(nt)}}(L.call(et.grouping,Number),et.thousands+""),j=void 0===et.currency?"":et.currency[0]+"",it=void 0===et.currency?"":et.currency[1]+"",rt=void 0===et.decimal?".":et.decimal+"",at=void 0===et.numerals?O:function y(et){return function(nt){return nt.replace(/[0-9]/g,function(j){return et[+j]})}}(L.call(et.numerals,String)),X=void 0===et.percent?"%":et.percent+"",lt=void 0===et.minus?"\u2212":et.minus+"",mt=void 0===et.nan?"NaN":et.nan+"";function vt(Mt){var Ot=(Mt=(0,x.Z)(Mt)).fill,Lt=Mt.align,Wt=Mt.sign,en=Mt.symbol,un=Mt.zero,bn=Mt.width,Nn=Mt.comma,$n=Mt.precision,ae=Mt.trim,An=Mt.type;"n"===An?(Nn=!0,An="g"):k[An]||(void 0===$n&&($n=12),ae=!0,An="g"),(un||"0"===Ot&&"="===Lt)&&(un=!0,Ot="0",Lt="=");var fe="$"===en?j:"#"===en&&/[boxX]/.test(An)?"0"+An.toLowerCase():"",vn="$"===en?it:/[%p]/.test(An)?X:"",oe=k[An],se=/[defgprs%]/.test(An);function Rt(Ct){var dn,Sn,zn,Ft=fe,Jt=vn;if("c"===An)Jt=oe(Ct)+Jt,Ct="";else{var Zn=(Ct=+Ct)<0||1/Ct<0;if(Ct=isNaN(Ct)?mt:oe(Math.abs(Ct),$n),ae&&(Ct=function v(et){t:for(var rt,nt=et.length,j=1,it=-1;j0&&(it=0)}return it>0?et.slice(0,it)+et.slice(rt+1):et}(Ct)),Zn&&0==+Ct&&"+"!==Wt&&(Zn=!1),Ft=(Zn?"("===Wt?Wt:lt:"-"===Wt||"("===Wt?"":Wt)+Ft,Jt=("s"===An?V[8+S/3]:"")+Jt+(Zn&&"("===Wt?")":""),se)for(dn=-1,Sn=Ct.length;++dn(zn=Ct.charCodeAt(dn))||zn>57){Jt=(46===zn?rt+Ct.slice(dn+1):Ct.slice(dn))+Jt,Ct=Ct.slice(0,dn);break}}Nn&&!un&&(Ct=nt(Ct,1/0));var ue=Ft.length+Ct.length+Jt.length,Ln=ue>1)+Ft+Ct+Jt+Ln.slice(ue);break;default:Ct=Ln+Ft+Ct+Jt}return at(Ct)}return $n=void 0===$n?6:/[gprs]/.test(An)?Math.max(1,Math.min(21,$n)):Math.max(0,Math.min(20,$n)),Rt.toString=function(){return Mt+""},Rt}return{format:vt,formatPrefix:function Pt(Mt,Ot){var Lt=vt(((Mt=(0,x.Z)(Mt)).type="f",Mt)),Wt=3*Math.max(-8,Math.min(8,Math.floor((0,f.Z)(Ot)/3))),en=Math.pow(10,-Wt),un=V[8+Wt/3];return function(bn){return Lt(en*bn)+un}}}}},1280:(M,z,a)=>{"use strict";function f(h){return null==h?[]:Array.isArray(h)?h:Array.from(h)}a.d(z,{Z:()=>f})},31919:(M,z,a)=>{"use strict";a.d(z,{Z:()=>v});var f=a(76022),h=a(93001);function y(_){return function(){var S=this.ownerDocument,E=this.namespaceURI;return E===h.P&&S.documentElement.namespaceURI===h.P?S.createElement(_):S.createElementNS(E,_)}}function x(_){return function(){return this.ownerDocument.createElementNS(_.space,_.local)}}function v(_){var S=(0,f.Z)(_);return(S.local?x:y)(S)}},40318:(M,z,a)=>{"use strict";function f(y){return function(){return this.matches(y)}}function h(y){return function(x){return x.matches(y)}}a.d(z,{P:()=>h,Z:()=>f})},76022:(M,z,a)=>{"use strict";a.d(z,{Z:()=>h});var f=a(93001);function h(y){var x=y+="",v=x.indexOf(":");return v>=0&&"xmlns"!==(x=y.slice(0,v))&&(y=y.slice(v+1)),f.Z.hasOwnProperty(x)?{space:f.Z[x],local:y}:y}},93001:(M,z,a)=>{"use strict";a.d(z,{P:()=>f,Z:()=>h});var f="http://www.w3.org/1999/xhtml";const h={svg:"http://www.w3.org/2000/svg",xhtml:f,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},40726:(M,z,a)=>{"use strict";a.d(z,{Z:()=>h});var f=a(51310);function h(y,x){if(y=(0,f.Z)(y),void 0===x&&(x=y.currentTarget),x){var v=x.ownerSVGElement||x;if(v.createSVGPoint){var _=v.createSVGPoint();return _.x=y.clientX,_.y=y.clientY,[(_=_.matrixTransform(x.getScreenCTM().inverse())).x,_.y]}if(x.getBoundingClientRect){var S=x.getBoundingClientRect();return[y.clientX-S.left-x.clientLeft,y.clientY-S.top-x.clientTop]}}return[y.pageX,y.pageY]}},60711:(M,z,a)=>{"use strict";a.d(z,{Z:()=>h});var f=a(12265);function h(y){return"string"==typeof y?new f.Y1([[document.querySelector(y)]],[document.documentElement]):new f.Y1([[y]],f.Jz)}},12265:(M,z,a)=>{"use strict";a.d(z,{Y1:()=>_e,ZP:()=>ft,Jz:()=>Ni});var f=a(59360),y=a(1280),x=a(83554),S=a(40318),E=Array.prototype.find;function k(){return this.firstElementChild}var L=Array.prototype.filter;function V(){return Array.from(this.children)}function j(D){return new Array(D.length)}function rt(D,G){this.ownerDocument=D.ownerDocument,this.namespaceURI=D.namespaceURI,this._next=null,this._parent=D,this.__data__=G}function at(D){return function(){return D}}function X(D,G,ht,bt,yt,At){for(var Bt,Zt=0,Kt=G.length,nn=At.length;ZtG?1:D>=G?0:NaN}rt.prototype={constructor:rt,appendChild:function(D){return this._parent.insertBefore(D,this._next)},insertBefore:function(D,G){return this._parent.insertBefore(D,G)},querySelector:function(D){return this._parent.querySelector(D)},querySelectorAll:function(D){return this._parent.querySelectorAll(D)}};var vn=a(76022);function oe(D){return function(){this.removeAttribute(D)}}function se(D){return function(){this.removeAttributeNS(D.space,D.local)}}function Rt(D,G){return function(){this.setAttribute(D,G)}}function Ct(D,G){return function(){this.setAttributeNS(D.space,D.local,G)}}function Ft(D,G){return function(){var ht=G.apply(this,arguments);null==ht?this.removeAttribute(D):this.setAttribute(D,ht)}}function Jt(D,G){return function(){var ht=G.apply(this,arguments);null==ht?this.removeAttributeNS(D.space,D.local):this.setAttributeNS(D.space,D.local,ht)}}var Sn=a(90663);function zn(D){return function(){delete this[D]}}function Zn(D,G){return function(){this[D]=G}}function ue(D,G){return function(){var ht=G.apply(this,arguments);null==ht?delete this[D]:this[D]=ht}}function Tt(D){return D.trim().split(/^|\s+/)}function Vt(D){return D.classList||new Gt(D)}function Gt(D){this._node=D,this._names=Tt(D.getAttribute("class")||"")}function Xt(D,G){for(var ht=Vt(D),bt=-1,yt=G.length;++bt=0&&(this._names.splice(G,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(D){return this._names.indexOf(D)>=0}};var je=a(31919);function Si(){return null}function mo(){var D=this.parentNode;D&&D.removeChild(this)}function We(){var D=this.cloneNode(!1),G=this.parentNode;return G?G.insertBefore(D,this.nextSibling):D}function yo(){var D=this.cloneNode(!0),G=this.parentNode;return G?G.insertBefore(D,this.nextSibling):D}function wo(D){return D.trim().split(/^|\s+/).map(function(G){var ht="",bt=G.indexOf(".");return bt>=0&&(ht=G.slice(bt+1),G=G.slice(0,bt)),{type:G,name:ht}})}function _o(D){return function(){var G=this.__on;if(G){for(var At,ht=0,bt=-1,yt=G.length;ht=Ii&&(Ii=mr+1);!(Ms=ws[Ii])&&++Ii=0;)(Zt=bt[yt])&&(At&&4^Zt.compareDocumentPosition(At)&&At.parentNode.insertBefore(Zt,At),At=Zt);return this},sort:function en(D){function G(In,On){return In&&On?D(In.__data__,On.__data__):!In-!On}D||(D=un);for(var ht=this._groups,bt=ht.length,yt=new Array(bt),At=0;At1?this.each((null==G?zn:"function"==typeof G?ue:Zn)(D,G)):this.node()[D]},classed:function Mn(D,G){var ht=Tt(D+"");if(arguments.length<2){for(var bt=Vt(this.node()),yt=-1,At=ht.length;++yt{"use strict";a.d(z,{S:()=>_,Z:()=>v});var f=a(17104);function h(S){return function(){this.style.removeProperty(S)}}function y(S,E,N){return function(){this.style.setProperty(S,E,N)}}function x(S,E,N){return function(){var k=E.apply(this,arguments);null==k?this.style.removeProperty(S):this.style.setProperty(S,k,N)}}function v(S,E,N){return arguments.length>1?this.each((null==E?h:"function"==typeof E?x:y)(S,E,N??"")):_(this.node(),S)}function _(S,E){return S.style.getPropertyValue(E)||(0,f.Z)(S).getComputedStyle(S,null).getPropertyValue(E)}},59360:(M,z,a)=>{"use strict";function f(){}function h(y){return null==y?f:function(){return this.querySelector(y)}}a.d(z,{Z:()=>h})},83554:(M,z,a)=>{"use strict";function f(){return[]}function h(y){return null==y?f:function(){return this.querySelectorAll(y)}}a.d(z,{Z:()=>h})},51310:(M,z,a)=>{"use strict";function f(h){let y;for(;y=h.sourceEvent;)h=y;return h}a.d(z,{Z:()=>f})},17104:(M,z,a)=>{"use strict";function f(h){return h.ownerDocument&&h.ownerDocument.defaultView||h.document&&h||h.defaultView}a.d(z,{Z:()=>f})},81728:(M,z,a)=>{"use strict";a.d(z,{bB:()=>So,e1:()=>rt,eR:()=>Dr});var f=a(12265),h=a(60903),y=a(49194),x=a(73339),v=(0,h.Z)("start","end","cancel","interrupt"),_=[];function W(ft,D,G,ht,bt,yt){var At=ft.__transition;if(At){if(G in At)return}else ft.__transition={};!function it(ft,D,G){var bt,ht=ft.__transition;function At(Kt){var nn,_n,In,On;if(1!==G.state)return Bt();for(nn in ht)if((On=ht[nn]).name===G.name){if(3===On.state)return(0,x.Z)(At);4===On.state?(On.state=6,On.timer.stop(),On.on.call("interrupt",ft,ft.__data__,On.index,On.group),delete ht[nn]):+nn0)throw new Error("too late; already scheduled");return G}function nt(ft,D){var G=j(ft,D);if(G.state>3)throw new Error("too late; already running");return G}function j(ft,D){var G=ft.__transition;if(!G||!(G=G[D]))throw new Error("transition not found");return G}function rt(ft,D){var ht,bt,At,G=ft.__transition,yt=!0;if(G){for(At in D=null==D?null:D+"",G)(ht=G[At]).name===D?(bt=ht.state>2&&ht.state<5,ht.state=6,ht.timer.stop(),ht.on.call(bt?"interrupt":"cancel",ft,ft.__data__,ht.index,ht.group),delete G[At]):yt=!1;yt&&delete ft.__transition}}var X=a(75349),lt=a(76022);function mt(ft,D){var G,ht;return function(){var bt=nt(this,ft),yt=bt.tween;if(yt!==G)for(var At=0,Zt=(ht=G=yt).length;At=0&&(D=D.slice(0,G)),!D||"start"===D})}(D)?et:nt;return function(){var At=yt(this,ft),Zt=At.on;Zt!==ht&&(bt=(ht=Zt).copy()).on(D,G),At.on=bt}}var zt=a(59360),Z=a(83554),Nt=f.ZP.prototype.constructor,rn=a(90663);function jn(ft){return function(){this.style.removeProperty(ft)}}function go(ft,D,G){return function(ht){this.style.setProperty(ft,D.call(this,ht),G)}}function mo(ft,D,G){var ht,bt;function yt(){var At=D.apply(this,arguments);return At!==bt&&(ht=(bt=At)&&go(ft,At,G)),ht}return yt._value=D,yt}function Ai(ft){return function(D){this.textContent=ft.call(this,D)}}function xo(ft){var D,G;function ht(){var bt=ft.apply(this,arguments);return bt!==G&&(D=(G=bt)&&Ai(bt)),D}return ht._value=ft,ht}var Ci=0;function Ue(ft,D,G,ht){this._groups=ft,this._parents=D,this._name=G,this._id=ht}function Dr(ft){return(0,f.ZP)().transition(ft)}function Pi(){return++Ci}var Xe=f.ZP.prototype;Ue.prototype=Dr.prototype={constructor:Ue,select:function R(ft){var D=this._name,G=this._id;"function"!=typeof ft&&(ft=(0,zt.Z)(ft));for(var ht=this._groups,bt=ht.length,yt=new Array(bt),At=0;At1&&ht.name===D)return new Ue([[ft]],Oi,D,+bt);return null}},15925:(M,z,a)=>{"use strict";a.d(z,{ax:()=>N,sP:()=>at,CR:()=>k,P2:()=>O});var f=a(60903),h=a(39374),y=a(76257),x=a(60711),v=a(40726),_=a(81728);const S=X=>()=>X;function E(X,{sourceEvent:lt,target:mt,transform:vt,dispatch:Pt}){Object.defineProperties(this,{type:{value:X,enumerable:!0,configurable:!0},sourceEvent:{value:lt,enumerable:!0,configurable:!0},target:{value:mt,enumerable:!0,configurable:!0},transform:{value:vt,enumerable:!0,configurable:!0},_:{value:Pt}})}function N(X,lt,mt){this.k=X,this.x=lt,this.y=mt}N.prototype={constructor:N,scale:function(X){return 1===X?this:new N(this.k*X,this.x,this.y)},translate:function(X,lt){return 0===X&0===lt?this:new N(this.k,this.x+this.k*X,this.y+this.k*lt)},apply:function(X){return[X[0]*this.k+this.x,X[1]*this.k+this.y]},applyX:function(X){return X*this.k+this.x},applyY:function(X){return X*this.k+this.y},invert:function(X){return[(X[0]-this.x)/this.k,(X[1]-this.y)/this.k]},invertX:function(X){return(X-this.x)/this.k},invertY:function(X){return(X-this.y)/this.k},rescaleX:function(X){return X.copy().domain(X.range().map(this.invertX,this).map(X.invert,X))},rescaleY:function(X){return X.copy().domain(X.range().map(this.invertY,this).map(X.invert,X))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var k=new N(1,0,0);function O(X){for(;!X.__zoom;)if(!(X=X.parentNode))return k;return X.__zoom}function L(X){X.stopImmediatePropagation()}function V(X){X.preventDefault(),X.stopImmediatePropagation()}function W(X){return!(X.ctrlKey&&"wheel"!==X.type||X.button)}function et(){var X=this;return X instanceof SVGElement?(X=X.ownerSVGElement||X).hasAttribute("viewBox")?[[(X=X.viewBox.baseVal).x,X.y],[X.x+X.width,X.y+X.height]]:[[0,0],[X.width.baseVal.value,X.height.baseVal.value]]:[[0,0],[X.clientWidth,X.clientHeight]]}function nt(){return this.__zoom||k}function j(X){return-X.deltaY*(1===X.deltaMode?.05:X.deltaMode?1:.002)*(X.ctrlKey?10:1)}function it(){return navigator.maxTouchPoints||"ontouchstart"in this}function rt(X,lt,mt){var vt=X.invertX(lt[0][0])-mt[0][0],Pt=X.invertX(lt[1][0])-mt[1][0],Mt=X.invertY(lt[0][1])-mt[0][1],Ot=X.invertY(lt[1][1])-mt[1][1];return X.translate(Pt>vt?(vt+Pt)/2:Math.min(0,vt)||Math.max(0,Pt),Ot>Mt?(Mt+Ot)/2:Math.min(0,Mt)||Math.max(0,Ot))}function at(){var un,bn,Nn,X=W,lt=et,mt=rt,vt=j,Pt=it,Mt=[0,1/0],Ot=[[-1/0,-1/0],[1/0,1/0]],Lt=250,Wt=y.Z,en=(0,f.Z)("start","zoom","end"),An=0,fe=10;function vn(Tt){Tt.property("__zoom",nt).on("wheel.zoom",dn,{passive:!1}).on("mousedown.zoom",Sn).on("dblclick.zoom",zn).filter(Pt).on("touchstart.zoom",Zn).on("touchmove.zoom",ue).on("touchend.zoom touchcancel.zoom",Ln).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function oe(Tt,Vt){return(Vt=Math.max(Mt[0],Math.min(Mt[1],Vt)))===Tt.k?Tt:new N(Vt,Tt.x,Tt.y)}function se(Tt,Vt,Gt){var Xt=Vt[0]-Gt[0]*Tt.k,cn=Vt[1]-Gt[1]*Tt.k;return Xt===Tt.x&&cn===Tt.y?Tt:new N(Tt.k,Xt,cn)}function Rt(Tt){return[(+Tt[0][0]+ +Tt[1][0])/2,(+Tt[0][1]+ +Tt[1][1])/2]}function Ct(Tt,Vt,Gt,Xt){Tt.on("start.zoom",function(){Ft(this,arguments).event(Xt).start()}).on("interrupt.zoom end.zoom",function(){Ft(this,arguments).event(Xt).end()}).tween("zoom",function(){var cn=this,hn=arguments,xn=Ft(cn,hn).event(Xt),Pn=lt.apply(cn,hn),Mn=null==Gt?Rt(Pn):"function"==typeof Gt?Gt.apply(cn,hn):Gt,Fn=Math.max(Pn[1][0]-Pn[0][0],Pn[1][1]-Pn[0][1]),wt=cn.__zoom,zt="function"==typeof Vt?Vt.apply(cn,hn):Vt,R=Wt(wt.invert(Mn).concat(Fn/wt.k),zt.invert(Mn).concat(Fn/zt.k));return function(Z){if(1===Z)Z=zt;else{var dt=R(Z),Nt=Fn/dt[2];Z=new N(Nt,Mn[0]-dt[0]*Nt,Mn[1]-dt[1]*Nt)}xn.zoom(null,Z)}})}function Ft(Tt,Vt,Gt){return!Gt&&Tt.__zooming||new Jt(Tt,Vt)}function Jt(Tt,Vt){this.that=Tt,this.args=Vt,this.active=0,this.sourceEvent=null,this.extent=lt.apply(Tt,Vt),this.taps=0}function dn(Tt,...Vt){if(X.apply(this,arguments)){var Gt=Ft(this,Vt).event(Tt),Xt=this.__zoom,cn=Math.max(Mt[0],Math.min(Mt[1],Xt.k*Math.pow(2,vt.apply(this,arguments)))),hn=(0,v.Z)(Tt);if(Gt.wheel)(Gt.mouse[0][0]!==hn[0]||Gt.mouse[0][1]!==hn[1])&&(Gt.mouse[1]=Xt.invert(Gt.mouse[0]=hn)),clearTimeout(Gt.wheel);else{if(Xt.k===cn)return;Gt.mouse=[hn,Xt.invert(hn)],(0,_.e1)(this),Gt.start()}V(Tt),Gt.wheel=setTimeout(xn,150),Gt.zoom("mouse",mt(se(oe(Xt,cn),Gt.mouse[0],Gt.mouse[1]),Gt.extent,Ot))}function xn(){Gt.wheel=null,Gt.end()}}function Sn(Tt,...Vt){if(!Nn&&X.apply(this,arguments)){var Gt=Tt.currentTarget,Xt=Ft(this,Vt,!0).event(Tt),cn=(0,x.Z)(Tt.view).on("mousemove.zoom",Mn,!0).on("mouseup.zoom",Fn,!0),hn=(0,v.Z)(Tt,Gt),xn=Tt.clientX,Pn=Tt.clientY;(0,h.Z)(Tt.view),L(Tt),Xt.mouse=[hn,this.__zoom.invert(hn)],(0,_.e1)(this),Xt.start()}function Mn(wt){if(V(wt),!Xt.moved){var zt=wt.clientX-xn,R=wt.clientY-Pn;Xt.moved=zt*zt+R*R>An}Xt.event(wt).zoom("mouse",mt(se(Xt.that.__zoom,Xt.mouse[0]=(0,v.Z)(wt,Gt),Xt.mouse[1]),Xt.extent,Ot))}function Fn(wt){cn.on("mousemove.zoom mouseup.zoom",null),(0,h.D)(wt.view,Xt.moved),V(wt),Xt.event(wt).end()}}function zn(Tt,...Vt){if(X.apply(this,arguments)){var Gt=this.__zoom,Xt=(0,v.Z)(Tt.changedTouches?Tt.changedTouches[0]:Tt,this),cn=Gt.invert(Xt),hn=Gt.k*(Tt.shiftKey?.5:2),xn=mt(se(oe(Gt,hn),Xt,cn),lt.apply(this,Vt),Ot);V(Tt),Lt>0?(0,x.Z)(this).transition().duration(Lt).call(Ct,xn,Xt,Tt):(0,x.Z)(this).call(vn.transform,xn,Xt,Tt)}}function Zn(Tt,...Vt){if(X.apply(this,arguments)){var hn,xn,Pn,Mn,Gt=Tt.touches,Xt=Gt.length,cn=Ft(this,Vt,Tt.changedTouches.length===Xt).event(Tt);for(L(Tt),xn=0;xn{"use strict";function f(t,n){return null==t||null==n?NaN:tn?1:t>=n?0:NaN}function h(t,n){return null==t||null==n?NaN:nt?1:n>=t?0:NaN}function y(t){let n,e,r;function i(u,l,c=0,d=u.length){if(c>>1;e(u[g],l)<0?c=g+1:d=g}while(cf(t(u),l),r=(u,l)=>t(u)-l):(n=t===f||t===h?t:x,e=t,r=t),{left:i,center:function s(u,l,c=0,d=u.length){const g=i(u,l,c,d-1);return g>c&&r(u[g-1],l)>-r(u[g],l)?g-1:g},right:function o(u,l,c=0,d=u.length){if(c>>1;e(u[g],l)<=0?c=g+1:d=g}while(clt,Delaunay:()=>nc,FormatSpecifier:()=>Xs.v,InternMap:()=>Pt,InternSet:()=>Mt,Node:()=>bi,Voronoi:()=>Ql,ZoomTransform:()=>ou.ax,active:()=>Co.bB,arc:()=>N5,area:()=>Kp,areaRadial:()=>t1,ascending:()=>f,autoType:()=>km,axisBottom:()=>Ms,axisLeft:()=>Z1,axisRight:()=>_s,axisTop:()=>Ii,bin:()=>Fn,bisect:()=>O,bisectCenter:()=>k,bisectLeft:()=>N,bisectRight:()=>E,bisector:()=>y,blob:()=>zm,brush:()=>tg,brushSelection:()=>Q1,brushX:()=>J1,brushY:()=>q1,buffer:()=>Lm,chord:()=>eg,chordDirected:()=>ig,chordTranspose:()=>rg,cluster:()=>$2,color:()=>he.ZP,contourDensity:()=>Og,contours:()=>Tl,count:()=>L,create:()=>c5,creator:()=>Hp.Z,cross:()=>j,csv:()=>Um,csvFormat:()=>wm,csvFormatBody:()=>_m,csvFormatRow:()=>Em,csvFormatRows:()=>Mm,csvFormatValue:()=>Tm,csvParse:()=>nh,csvParseRows:()=>xm,cubehelix:()=>fr,cumsum:()=>it,curveBasis:()=>Q5,curveBasisClosed:()=>J5,curveBasisOpen:()=>q5,curveBumpX:()=>e1,curveBumpY:()=>r1,curveBundle:()=>t4,curveCardinal:()=>n4,curveCardinalClosed:()=>e4,curveCardinalOpen:()=>r4,curveCatmullRom:()=>i4,curveCatmullRomClosed:()=>o4,curveCatmullRomOpen:()=>s4,curveLinear:()=>Qa,curveLinearClosed:()=>a4,curveMonotoneX:()=>u4,curveMonotoneY:()=>c4,curveNatural:()=>f4,curveStep:()=>l4,curveStepAfter:()=>d4,curveStepBefore:()=>h4,descending:()=>h,deviation:()=>at,difference:()=>ft,disjoint:()=>D,dispatch:()=>Es.Z,drag:()=>mm,dragDisable:()=>Ri.Z,dragEnable:()=>Ri.D,dsv:()=>Bm,dsvFormat:()=>Hs,easeBack:()=>Rn.easeBack,easeBackIn:()=>Rn.easeBackIn,easeBackInOut:()=>Rn.easeBackInOut,easeBackOut:()=>Rn.easeBackOut,easeBounce:()=>Rn.easeBounce,easeBounceIn:()=>Rn.easeBounceIn,easeBounceInOut:()=>Rn.easeBounceInOut,easeBounceOut:()=>Rn.easeBounceOut,easeCircle:()=>Rn.easeCircle,easeCircleIn:()=>Rn.easeCircleIn,easeCircleInOut:()=>Rn.easeCircleInOut,easeCircleOut:()=>Rn.easeCircleOut,easeCubic:()=>Rn.easeCubic,easeCubicIn:()=>Rn.easeCubicIn,easeCubicInOut:()=>Rn.easeCubicInOut,easeCubicOut:()=>Rn.easeCubicOut,easeElastic:()=>Rn.easeElastic,easeElasticIn:()=>Rn.easeElasticIn,easeElasticInOut:()=>Rn.easeElasticInOut,easeElasticOut:()=>Rn.easeElasticOut,easeExp:()=>Rn.easeExp,easeExpIn:()=>Rn.easeExpIn,easeExpInOut:()=>Rn.easeExpInOut,easeExpOut:()=>Rn.easeExpOut,easeLinear:()=>Rn.easeLinear,easePoly:()=>Rn.easePoly,easePolyIn:()=>Rn.easePolyIn,easePolyInOut:()=>Rn.easePolyInOut,easePolyOut:()=>Rn.easePolyOut,easeQuad:()=>Rn.easeQuad,easeQuadIn:()=>Rn.easeQuadIn,easeQuadInOut:()=>Rn.easeQuadInOut,easeQuadOut:()=>Rn.easeQuadOut,easeSin:()=>Rn.easeSin,easeSinIn:()=>Rn.easeSinIn,easeSinInOut:()=>Rn.easeSinInOut,easeSinOut:()=>Rn.easeSinOut,every:()=>Eo,extent:()=>X,fcumsum:()=>vt,filter:()=>Ni,flatGroup:()=>ae,flatRollup:()=>An,forceCenter:()=>Xm,forceCollide:()=>dv,forceLink:()=>gv,forceManyBody:()=>Ev,forceRadial:()=>Tv,forceSimulation:()=>Mv,forceX:()=>Sv,forceY:()=>Av,format:()=>qi.WU,formatDefaultLocale:()=>qi.ZP,formatLocale:()=>Cv.Z,formatPrefix:()=>qi.jH,formatSpecifier:()=>Xs.Z,fsum:()=>mt,geoAlbers:()=>wd,geoAlbersUsa:()=>A2,geoArea:()=>kv,geoAzimuthalEqualArea:()=>C2,geoAzimuthalEqualAreaRaw:()=>jc,geoAzimuthalEquidistant:()=>P2,geoAzimuthalEquidistantRaw:()=>Wc,geoBounds:()=>Dv,geoCentroid:()=>Gv,geoCircle:()=>Yv,geoClipAntimeridian:()=>Tc,geoClipCircle:()=>Yh,geoClipExtent:()=>Kv,geoClipRectangle:()=>ga,geoConicConformal:()=>O2,geoConicConformalRaw:()=>Ed,geoConicEqualArea:()=>Aa,geoConicEqualAreaRaw:()=>xd,geoConicEquidistant:()=>I2,geoConicEquidistantRaw:()=>Td,geoContains:()=>r2,geoDistance:()=>ya,geoEqualEarth:()=>z2,geoEqualEarthRaw:()=>Xc,geoEquirectangular:()=>k2,geoEquirectangularRaw:()=>Jo,geoGnomonic:()=>D2,geoGnomonicRaw:()=>$c,geoGraticule:()=>qh,geoGraticule10:()=>i2,geoIdentity:()=>L2,geoInterpolate:()=>o2,geoLength:()=>Vh,geoMercator:()=>N2,geoMercatorRaw:()=>Qo,geoNaturalEarth1:()=>F2,geoNaturalEarth1Raw:()=>Kc,geoOrthographic:()=>B2,geoOrthographicRaw:()=>Qc,geoPath:()=>v2,geoProjection:()=>Tr,geoProjectionMutator:()=>Vc,geoRotation:()=>zh,geoStereographic:()=>U2,geoStereographicRaw:()=>Jc,geoStream:()=>dr,geoTransform:()=>y2,geoTransverseMercator:()=>Z2,geoTransverseMercatorRaw:()=>qc,gray:()=>mg,greatest:()=>xo,greatestIndex:()=>wo,group:()=>bn,groupSort:()=>zn,groups:()=>Nn,hcl:()=>Ns,hierarchy:()=>tf,histogram:()=>Fn,hsl:()=>he.Ym,html:()=>jm,image:()=>Gm,index:()=>oe,indexes:()=>se,interpolate:()=>Ao.Z,interpolateArray:()=>Gy.Z,interpolateBasis:()=>Yy.Z,interpolateBasisClosed:()=>Vy.Z,interpolateBlues:()=>V6,interpolateBrBG:()=>M6,interpolateBuGn:()=>k6,interpolateBuPu:()=>I6,interpolateCividis:()=>K6,interpolateCool:()=>q6,interpolateCubehelix:()=>rb,interpolateCubehelixDefault:()=>Q6,interpolateCubehelixLong:()=>La,interpolateDate:()=>Hy.Z,interpolateDiscrete:()=>jy,interpolateGnBu:()=>R6,interpolateGreens:()=>H6,interpolateGreys:()=>j6,interpolateHcl:()=>nb,interpolateHclLong:()=>eb,interpolateHsl:()=>Jy,interpolateHslLong:()=>qy,interpolateHue:()=>Wy,interpolateInferno:()=>a5,interpolateLab:()=>tb,interpolateMagma:()=>s5,interpolateNumber:()=>Vd.Z,interpolateNumberArray:()=>Xy.Z,interpolateObject:()=>$y.Z,interpolateOrRd:()=>z6,interpolateOranges:()=>$6,interpolatePRGn:()=>E6,interpolatePiYG:()=>T6,interpolatePlasma:()=>u5,interpolatePuBu:()=>L6,interpolatePuBuGn:()=>D6,interpolatePuOr:()=>S6,interpolatePuRd:()=>F6,interpolatePurples:()=>W6,interpolateRainbow:()=>t5,interpolateRdBu:()=>A6,interpolateRdGy:()=>C6,interpolateRdPu:()=>B6,interpolateRdYlBu:()=>P6,interpolateRdYlGn:()=>N6,interpolateReds:()=>X6,interpolateRgb:()=>Da.ZP,interpolateRgbBasis:()=>Da.hD,interpolateRgbBasisClosed:()=>Da.YD,interpolateRound:()=>za,interpolateSinebow:()=>r5,interpolateSpectral:()=>O6,interpolateString:()=>Ky.Z,interpolateTransformCss:()=>Hd.Y,interpolateTransformSvg:()=>Hd.w,interpolateTurbo:()=>i5,interpolateViridis:()=>o5,interpolateWarm:()=>J6,interpolateYlGn:()=>Z6,interpolateYlGnBu:()=>U6,interpolateYlOrBr:()=>G6,interpolateYlOrRd:()=>Y6,interpolateZoom:()=>Qy.Z,interrupt:()=>Co.e1,intersection:()=>G,interval:()=>k4,isoFormat:()=>A4,isoParse:()=>N4,json:()=>Vm,lab:()=>Ps,lch:()=>vg,least:()=>bo,leastIndex:()=>Ai,line:()=>Yf,lineRadial:()=>qp,link:()=>Ja,linkHorizontal:()=>B5,linkRadial:()=>Z5,linkVertical:()=>U5,local:()=>jp,map:()=>_e,matcher:()=>l5.Z,max:()=>wt,maxIndex:()=>En,mean:()=>jn,median:()=>Jn,merge:()=>le,min:()=>zt,minIndex:()=>Si,mode:()=>go,namespace:()=>h5.Z,namespaces:()=>d5.Z,nice:()=>Pn,now:()=>Ji.zO,pack:()=>Ty,packEnclose:()=>by,packSiblings:()=>My,pairs:()=>mo,partition:()=>Sy,path:()=>ei,permute:()=>Ft,pie:()=>R5,piecewise:()=>$d,pointRadial:()=>ps,pointer:()=>zi.Z,pointers:()=>g5,polygonArea:()=>ob,polygonCentroid:()=>sb,polygonContains:()=>fb,polygonHull:()=>cb,polygonLength:()=>lb,precisionFixed:()=>uh,precisionPrefix:()=>ch,precisionRound:()=>fh,quadtree:()=>Ws,quantile:()=>dt,quantileSorted:()=>Nt,quantize:()=>ib,quickselect:()=>R,radialArea:()=>t1,radialLine:()=>qp,randomBates:()=>gb,randomBernoulli:()=>yb,randomBeta:()=>qd,randomBinomial:()=>t0,randomCauchy:()=>xb,randomExponential:()=>mb,randomGamma:()=>ff,randomGeometric:()=>Jd,randomInt:()=>db,randomIrwinHall:()=>Qd,randomLcg:()=>Tb,randomLogNormal:()=>pb,randomLogistic:()=>wb,randomNormal:()=>cf,randomPareto:()=>vb,randomPoisson:()=>_b,randomUniform:()=>hb,randomWeibull:()=>bb,range:()=>We,rank:()=>yo,reduce:()=>Oi,reverse:()=>So,rgb:()=>he.B8,ribbon:()=>dg,ribbonArrow:()=>pg,rollup:()=>fe,rollups:()=>vn,scaleBand:()=>df,scaleDiverging:()=>gp,scaleDivergingLog:()=>mp,scaleDivergingPow:()=>Bf,scaleDivergingSqrt:()=>h6,scaleDivergingSymlog:()=>vp,scaleIdentity:()=>s0,scaleImplicit:()=>lf,scaleLinear:()=>o0,scaleLog:()=>l0,scaleOrdinal:()=>hf,scalePoint:()=>Sb,scalePow:()=>bf,scaleQuantile:()=>y0,scaleQuantize:()=>b0,scaleRadial:()=>v0,scaleSequential:()=>lp,scaleSequentialLog:()=>hp,scaleSequentialPow:()=>Ff,scaleSequentialQuantile:()=>pp,scaleSequentialSqrt:()=>l6,scaleSequentialSymlog:()=>dp,scaleSqrt:()=>Fb,scaleSymlog:()=>p0,scaleThreshold:()=>x0,scaleTime:()=>c6,scaleUtc:()=>f6,scan:()=>_o,schemeAccent:()=>p6,schemeBlues:()=>Bp,schemeBrBG:()=>yp,schemeBuGn:()=>Ap,schemeBuPu:()=>Cp,schemeCategory10:()=>d6,schemeDark2:()=>g6,schemeGnBu:()=>Pp,schemeGreens:()=>Up,schemeGreys:()=>Zp,schemeOrRd:()=>Np,schemeOranges:()=>Vp,schemePRGn:()=>bp,schemePaired:()=>m6,schemePastel1:()=>v6,schemePastel2:()=>y6,schemePiYG:()=>xp,schemePuBu:()=>kp,schemePuBuGn:()=>Op,schemePuOr:()=>wp,schemePuRd:()=>Ip,schemePurples:()=>Gp,schemeRdBu:()=>_p,schemeRdGy:()=>Mp,schemeRdPu:()=>Rp,schemeRdYlBu:()=>Ep,schemeRdYlGn:()=>Tp,schemeReds:()=>Yp,schemeSet1:()=>b6,schemeSet2:()=>x6,schemeSet3:()=>w6,schemeSpectral:()=>Sp,schemeTableau10:()=>_6,schemeYlGn:()=>Dp,schemeYlGnBu:()=>zp,schemeYlOrBr:()=>Lp,schemeYlOrRd:()=>Fp,select:()=>Sr.Z,selectAll:()=>v5,selection:()=>Wa.ZP,selector:()=>y5.Z,selectorAll:()=>b5.Z,shuffle:()=>Mo,shuffler:()=>Ci,some:()=>To,sort:()=>Jt,stack:()=>m4,stackOffsetDiverging:()=>y4,stackOffsetExpand:()=>v4,stackOffsetNone:()=>ho,stackOffsetSilhouette:()=>b4,stackOffsetWiggle:()=>x4,stackOrderAppearance:()=>I1,stackOrderAscending:()=>R1,stackOrderDescending:()=>_4,stackOrderInsideOut:()=>M4,stackOrderNone:()=>po,stackOrderReverse:()=>E4,stratify:()=>Ny,style:()=>x5.S,subset:()=>At,sum:()=>Ue,superset:()=>bt,svg:()=>Wm,symbol:()=>K5,symbolAsterisk:()=>i1,symbolCircle:()=>qa,symbolCross:()=>o1,symbolDiamond:()=>a1,symbolDiamond2:()=>u1,symbolPlus:()=>c1,symbolSquare:()=>f1,symbolSquare2:()=>l1,symbolStar:()=>d1,symbolTriangle:()=>p1,symbolTriangle2:()=>g1,symbolWye:()=>m1,symbolX:()=>v1,symbols:()=>y1,symbolsFill:()=>y1,symbolsStroke:()=>$5,text:()=>js,thresholdFreedmanDiaconis:()=>Qt,thresholdScott:()=>rn,thresholdSturges:()=>Mn,tickFormat:()=>i0,tickIncrement:()=>hn,tickStep:()=>xn,ticks:()=>cn,timeDay:()=>ss,timeDays:()=>Gb,timeFormat:()=>zf,timeFormatDefaultLocale:()=>fp,timeFormatLocale:()=>X0,timeFriday:()=>N0,timeFridays:()=>Wb,timeHour:()=>Sf,timeHours:()=>Zb,timeInterval:()=>ge,timeMillisecond:()=>Ef,timeMilliseconds:()=>_0,timeMinute:()=>Tf,timeMinutes:()=>Ub,timeMonday:()=>as,timeMondays:()=>Yb,timeMonth:()=>Af,timeMonths:()=>$b,timeParse:()=>cp,timeSaturday:()=>O0,timeSaturdays:()=>Xb,timeSecond:()=>Wr,timeSeconds:()=>E0,timeSunday:()=>uo,timeSundays:()=>k0,timeThursday:()=>Mi,timeThursdays:()=>jb,timeTickInterval:()=>W0,timeTicks:()=>j0,timeTuesday:()=>C0,timeTuesdays:()=>Vb,timeWednesday:()=>P0,timeWednesdays:()=>Hb,timeWeek:()=>uo,timeWeeks:()=>k0,timeYear:()=>Xr,timeYears:()=>Kb,timeout:()=>O4.Z,timer:()=>Ji.HT,timerFlush:()=>Ji.R8,transition:()=>Co.eR,transpose:()=>Dr,tree:()=>Ly,treemap:()=>Fy,treemapBinary:()=>By,treemapDice:()=>is,treemapResquarify:()=>Zy,treemapSlice:()=>Ra,treemapSliceDice:()=>Uy,treemapSquarify:()=>Yd,tsv:()=>Zm,tsvFormat:()=>Am,tsvFormatBody:()=>Cm,tsvFormatRow:()=>Nm,tsvFormatRows:()=>Pm,tsvFormatValue:()=>Om,tsvParse:()=>eh,tsvParseRows:()=>Sm,union:()=>Zt,utcDay:()=>us,utcDays:()=>qb,utcFormat:()=>Za,utcFriday:()=>B0,utcFridays:()=>i3,utcHour:()=>Nf,utcHours:()=>Jb,utcMillisecond:()=>Ef,utcMilliseconds:()=>_0,utcMinute:()=>Pf,utcMinutes:()=>Qb,utcMonday:()=>cs,utcMondays:()=>t3,utcMonth:()=>Of,utcMonths:()=>s3,utcParse:()=>Df,utcSaturday:()=>U0,utcSaturdays:()=>o3,utcSecond:()=>Wr,utcSeconds:()=>E0,utcSunday:()=>co,utcSundays:()=>Z0,utcThursday:()=>Ti,utcThursdays:()=>r3,utcTickInterval:()=>H0,utcTicks:()=>V0,utcTuesday:()=>L0,utcTuesdays:()=>n3,utcWednesday:()=>F0,utcWednesdays:()=>e3,utcWeek:()=>co,utcWeeks:()=>Z0,utcYear:()=>$r,utcYears:()=>a3,variance:()=>rt,window:()=>w5.Z,xml:()=>Hm,zip:()=>Xe,zoom:()=>ou.sP,zoomIdentity:()=>ou.CR,zoomTransform:()=>ou.P2});const S=y(f),E=S.right,N=S.left,k=y(v).center,O=E;function L(t,n){let e=0;if(void 0===n)for(let r of t)null!=r&&(r=+r)>=r&&++e;else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(i=+i)>=i&&++e}return e}function V(t){return 0|t.length}function W(t){return!(t>0)}function et(t){return"object"!=typeof t||"length"in t?t:Array.from(t)}function j(...t){const n="function"==typeof t[t.length-1]&&function nt(t){return n=>t(...n)}(t.pop()),e=(t=t.map(et)).map(V),r=t.length-1,i=new Array(r+1).fill(0),o=[];if(r<0||e.some(W))return o;for(;;){o.push(i.map((u,l)=>t[l][u]));let s=r;for(;++i[s]===e[s];){if(0===s)return n?o.map(n):o;i[s--]=0}}}function it(t,n){var e=0,r=0;return Float64Array.from(t,void 0===n?i=>e+=+i||0:i=>e+=+n(i,r++,t)||0)}function rt(t,n){let r,e=0,i=0,o=0;if(void 0===n)for(let s of t)null!=s&&(s=+s)>=s&&(r=s-i,i+=r/++e,o+=r*(s-i));else{let s=-1;for(let u of t)null!=(u=n(u,++s,t))&&(u=+u)>=u&&(r=u-i,i+=r/++e,o+=r*(u-i))}if(e>1)return o/(e-1)}function at(t,n){const e=rt(t,n);return e&&Math.sqrt(e)}function X(t,n){let e,r;if(void 0===n)for(const i of t)null!=i&&(void 0===e?i>=i&&(e=r=i):(e>i&&(e=i),r=o&&(e=r=o):(e>o&&(e=o),r0){for(s=n[--e];e>0&&(r=s,i=n[--e],s=r+i,o=i-(s-r),!o););e>0&&(o<0&&n[e-1]<0||o>0&&n[e-1]>0)&&(i=2*o,r=s+i,i==r-s&&(s=r))}return s}}function mt(t,n){const e=new lt;if(void 0===n)for(let r of t)(r=+r)&&e.add(r);else{let r=-1;for(let i of t)(i=+n(i,++r,t))&&e.add(i)}return+e}function vt(t,n){const e=new lt;let r=-1;return Float64Array.from(t,void 0===n?i=>e.add(+i||0):i=>e.add(+n(i,++r,t)||0))}class Pt extends Map{constructor(n,e=en){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=n)for(const[r,i]of n)this.set(r,i)}get(n){return super.get(Ot(this,n))}has(n){return super.has(Ot(this,n))}set(n,e){return super.set(Lt(this,n),e)}delete(n){return super.delete(Wt(this,n))}}class Mt extends Set{constructor(n,e=en){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=n)for(const r of n)this.add(r)}has(n){return super.has(Ot(this,n))}add(n){return super.add(Lt(this,n))}delete(n){return super.delete(Wt(this,n))}}function Ot({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):e}function Lt({_intern:t,_key:n},e){const r=n(e);return t.has(r)?t.get(r):(t.set(r,e),e)}function Wt({_intern:t,_key:n},e){const r=n(e);return t.has(r)&&(e=t.get(r),t.delete(r)),e}function en(t){return null!==t&&"object"==typeof t?t.valueOf():t}function un(t){return t}function bn(t,...n){return Ct(t,un,un,n)}function Nn(t,...n){return Ct(t,Array.from,un,n)}function $n(t,n){for(let e=1,r=n.length;ei.pop().map(([o,s])=>[...i,o,s]));return t}function ae(t,...n){return $n(Nn(t,...n),n)}function An(t,n,...e){return $n(vn(t,n,...e),e)}function fe(t,n,...e){return Ct(t,un,n,e)}function vn(t,n,...e){return Ct(t,Array.from,n,e)}function oe(t,...n){return Ct(t,un,Rt,n)}function se(t,...n){return Ct(t,Array.from,Rt,n)}function Rt(t){if(1!==t.length)throw new Error("duplicate key");return t[0]}function Ct(t,n,e,r){return function i(o,s){if(s>=r.length)return e(o);const u=new Pt,l=r[s++];let c=-1;for(const d of o){const g=l(d,++c,o),p=u.get(g);p?p.push(d):u.set(g,[d])}for(const[d,g]of u)u.set(d,i(g,s));return n(u)}(t,0)}function Ft(t,n){return Array.from(n,e=>t[e])}function Jt(t,...n){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");t=Array.from(t);let[e]=n;if(e&&2!==e.length||n.length>1){const r=Uint32Array.from(t,(i,o)=>o);return n.length>1?(n=n.map(i=>t.map(i)),r.sort((i,o)=>{for(const s of n){const u=Sn(s[i],s[o]);if(u)return u}})):(e=t.map(e),r.sort((i,o)=>Sn(e[i],e[o]))),Ft(t,r)}return t.sort(dn(e))}function dn(t=f){if(t===f)return Sn;if("function"!=typeof t)throw new TypeError("compare is not a function");return(n,e)=>{const r=t(n,e);return r||0===r?r:(0===t(e,e))-(0===t(n,n))}}function Sn(t,n){return(null==t||!(t>=t))-(null==n||!(n>=n))||(tn?1:0)}function zn(t,n,e){return(2!==n.length?Jt(fe(t,n,e),([r,i],[o,s])=>f(i,s)||f(r,o)):Jt(bn(t,e),([r,i],[o,s])=>n(i,s)||f(r,o))).map(([r])=>r)}var ue=Array.prototype.slice;function Tt(t){return()=>t}var Vt=Math.sqrt(50),Gt=Math.sqrt(10),Xt=Math.sqrt(2);function cn(t,n,e){var r,o,s,u,i=-1;if(e=+e,(t=+t)==(n=+n)&&e>0)return[t];if((r=n0){let l=Math.round(t/u),c=Math.round(n/u);for(l*un&&--c,s=new Array(o=c-l+1);++in&&--c,s=new Array(o=c-l+1);++i=0?(o>=Vt?10:o>=Gt?5:o>=Xt?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Vt?10:o>=Gt?5:o>=Xt?2:1)}function xn(t,n,e){var r=Math.abs(n-t)/Math.max(0,e),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Vt?i*=10:o>=Gt?i*=5:o>=Xt&&(i*=2),n0?(t=Math.floor(t/i)*i,n=Math.ceil(n/i)*i):i<0&&(t=Math.ceil(t*i)/i,n=Math.floor(n*i)/i),r=i}}function Mn(t){return Math.ceil(Math.log(L(t))/Math.LN2)+1}function Fn(){var t=un,n=X,e=Mn;function r(i){Array.isArray(i)||(i=Array.from(i));var o,u,l,s=i.length,c=new Array(s);for(o=0;o=p)if(T>=p&&n===X){const P=hn(g,p,I);isFinite(P)&&(P>0?p=(Math.floor(p/P)+1)*P:P<0&&(p=(Math.ceil(p*-P)+1)/-P))}else m.pop()}for(var A=m.length;m[0]<=g;)m.shift(),--A;for(;m[A-1]>p;)m.pop(),--A;var b,w=new Array(A+1);for(o=0;o<=A;++o)(b=w[o]=[]).x0=o>0?m[o-1]:g,b.x1=o0)for(o=0;o=r)&&(e=r);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e=i)&&(e=i)}return e}function zt(t,n){let e;if(void 0===n)for(const r of t)null!=r&&(e>r||void 0===e&&r>=r)&&(e=r);else{let r=-1;for(let i of t)null!=(i=n(i,++r,t))&&(e>i||void 0===e&&i>=i)&&(e=i)}return e}function R(t,n,e=0,r=t.length-1,i){for(i=void 0===i?Sn:dn(i);r>e;){if(r-e>600){const l=r-e+1,c=n-e+1,d=Math.log(l),g=.5*Math.exp(2*d/3),p=.5*Math.sqrt(d*g*(l-g)/l)*(c-l/2<0?-1:1);R(t,n,Math.max(e,Math.floor(n-c*g/l+p)),Math.min(r,Math.floor(n+(l-c)*g/l+p)),i)}const o=t[n];let s=e,u=r;for(Z(t,e,n),i(t[r],o)>0&&Z(t,e,r);s0;)--u}0===i(t[e],o)?Z(t,e,u):(++u,Z(t,u,r)),u<=n&&(e=u+1),n<=u&&(r=u-1)}return t}function Z(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function dt(t,n,e){if(t=Float64Array.from(function*_(t,n){if(void 0===n)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(r=+r)>=r&&(yield r)}}(t,e)),r=t.length){if((n=+n)<=0||r<2)return zt(t);if(n>=1)return wt(t);var r,i=(r-1)*n,o=Math.floor(i),s=wt(R(t,o).subarray(0,o+1));return s+(zt(t.subarray(o+1))-s)*(i-o)}}function Nt(t,n,e=v){if(r=t.length){if((n=+n)<=0||r<2)return+e(t[0],0,t);if(n>=1)return+e(t[r-1],r-1,t);var r,i=(r-1)*n,o=Math.floor(i),s=+e(t[o],o,t);return s+(+e(t[o+1],o+1,t)-s)*(i-o)}}function Qt(t,n,e){return Math.ceil((e-n)/(2*(dt(t,.75)-dt(t,.25))*Math.pow(L(t),-1/3)))}function rn(t,n,e){return Math.ceil((e-n)*Math.cbrt(L(t))/(3.49*at(t)))}function En(t,n){let e,r=-1,i=-1;if(void 0===n)for(const o of t)++i,null!=o&&(e=o)&&(e=o,r=i);else for(let o of t)null!=(o=n(o,++i,t))&&(e=o)&&(e=o,r=i);return r}function jn(t,n){let e=0,r=0;if(void 0===n)for(let i of t)null!=i&&(i=+i)>=i&&(++e,r+=i);else{let i=-1;for(let o of t)null!=(o=n(o,++i,t))&&(o=+o)>=o&&(++e,r+=o)}if(e)return r/e}function Jn(t,n){return dt(t,.5,n)}function le(t){return Array.from(function*je(t){for(const n of t)yield*n}(t))}function Si(t,n){let e,r=-1,i=-1;if(void 0===n)for(const o of t)++i,null!=o&&(e>o||void 0===e&&o>=o)&&(e=o,r=i);else for(let o of t)null!=(o=n(o,++i,t))&&(e>o||void 0===e&&o>=o)&&(e=o,r=i);return r}function go(t,n){const e=new Pt;if(void 0===n)for(let o of t)null!=o&&o>=o&&e.set(o,(e.get(o)||0)+1);else{let o=-1;for(let s of t)null!=(s=n(s,++o,t))&&s>=s&&e.set(s,(e.get(s)||0)+1)}let r,i=0;for(const[o,s]of e)s>i&&(i=s,r=o);return r}function mo(t,n=vo){const e=[];let r,i=!1;for(const o of t)i&&e.push(n(r,o)),r=o,i=!0;return e}function vo(t,n){return[t,n]}function We(t,n,e){t=+t,n=+n,e=(i=arguments.length)<2?(n=t,t=0,1):i<3?1:+e;for(var r=-1,i=0|Math.max(0,Math.ceil((n-t)/e)),o=new Array(i);++rn(e[u],e[l]);let o,s;return Uint32Array.from(e,(u,l)=>l).sort(n===f?(u,l)=>Sn(e[u],e[l]):dn(i)).forEach((u,l)=>{const c=i(u,void 0===o?u:o);c>=0?((void 0===o||c>0)&&(o=u,s=l),r[u]=s):r[u]=NaN}),r}function bo(t,n=f){let e,r=!1;if(1===n.length){let i;for(const o of t){const s=n(o);(r?f(s,i)<0:0===f(s,s))&&(e=o,i=s,r=!0)}}else for(const i of t)(r?n(i,e)<0:0===n(i,i))&&(e=i,r=!0);return e}function Ai(t,n=f){if(1===n.length)return Si(t,n);let e,r=-1,i=-1;for(const o of t)++i,(r<0?0===n(o,o):n(o,e)<0)&&(e=o,r=i);return r}function xo(t,n=f){let e,r=!1;if(1===n.length){let i;for(const o of t){const s=n(o);(r?f(s,i)>0:0===f(s,s))&&(e=o,i=s,r=!0)}}else for(const i of t)(r?n(i,e)>0:0===n(i,i))&&(e=i,r=!0);return e}function wo(t,n=f){if(1===n.length)return En(t,n);let e,r=-1,i=-1;for(const o of t)++i,(r<0?0===n(o,o):n(o,e)>0)&&(e=o,r=i);return r}function _o(t,n){const e=Ai(t,n);return e<0?void 0:e}const Mo=Ci(Math.random);function Ci(t){return function(e,r=0,i=e.length){let o=i-(r=+r);for(;o;){const s=t()*o--|0,u=e[o+r];e[o+r]=e[s+r],e[s+r]=u}return e}}function Ue(t,n){let e=0;if(void 0===n)for(let r of t)(r=+r)&&(e+=r);else{let r=-1;for(let i of t)(i=+n(i,++r,t))&&(e+=i)}return e}function Dr(t){if(!(o=t.length))return[];for(var n=-1,e=zt(t,Pi),r=new Array(e);++nn(e,r,t))}function Oi(t,n,e){if("function"!=typeof n)throw new TypeError("reducer is not a function");const r=t[Symbol.iterator]();let i,o,s=-1;if(arguments.length<3){if(({done:i,value:e}=r.next()),i)return;++s}for(;({done:i,value:o}=r.next()),!i;)e=n(e,o,++s,t);return e}function So(t){if("function"!=typeof t[Symbol.iterator])throw new TypeError("values is not iterable");return Array.from(t).reverse()}function ft(t,...n){t=new Mt(t);for(const e of n)for(const r of e)t.delete(r);return t}function D(t,n){const e=n[Symbol.iterator](),r=new Mt;for(const i of t){if(r.has(i))return!1;let o,s;for(;({value:o,done:s}=e.next())&&!s;){if(Object.is(i,o))return!1;r.add(o)}}return!0}function G(t,...n){t=new Mt(t),n=n.map(ht);t:for(const e of t)for(const r of n)if(!r.has(e)){t.delete(e);continue t}return t}function ht(t){return t instanceof Mt?t:new Mt(t)}function bt(t,n){const e=t[Symbol.iterator](),r=new Set;for(const i of n){const o=yt(i);if(r.has(o))continue;let s,u;for(;({value:s,done:u}=e.next());){if(u)return!1;const l=yt(s);if(r.add(l),Object.is(o,l))break}}return!0}function yt(t){return null!==t&&"object"==typeof t?t.valueOf():t}function At(t,n){return bt(n,t)}function Zt(...t){const n=new Mt;for(const e of t)for(const r of e)n.add(r);return n}function Bt(t){return t}function Me(t){return"translate("+t+",0)"}function xe(t){return"translate(0,"+t+")"}function ki(t){return n=>+t(n)}function ws(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),e=>+t(e)+n}function au(){return!this.__axis}function mr(t,n){var e=[],r=null,i=null,o=6,s=6,u=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=1===t||4===t?-1:1,d=4===t||2===t?"x":"y",g=1===t||3===t?Me:xe;function p(m){var A=r??(n.ticks?n.ticks.apply(n,e):n.domain()),w=i??(n.tickFormat?n.tickFormat.apply(n,e):Bt),b=Math.max(o,0)+u,T=n.range(),I=+T[0]+l,P=+T[T.length-1]+l,C=(n.bandwidth?ws:ki)(n.copy(),l),F=m.selection?m.selection():m,B=F.selectAll(".domain").data([null]),H=F.selectAll(".tick").data(A,n).order(),Q=H.exit(),ot=H.enter().append("g").attr("class","tick"),$=H.select("line"),tt=H.select("text");B=B.merge(B.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),H=H.merge(ot),$=$.merge(ot.append("line").attr("stroke","currentColor").attr(d+"2",c*o)),tt=tt.merge(ot.append("text").attr("fill","currentColor").attr(d,c*b).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),m!==F&&(B=B.transition(m),H=H.transition(m),$=$.transition(m),tt=tt.transition(m),Q=Q.transition(m).attr("opacity",1e-6).attr("transform",function(st){return isFinite(st=C(st))?g(st+l):this.getAttribute("transform")}),ot.attr("opacity",1e-6).attr("transform",function(st){var pt=this.parentNode.__axis;return g((pt&&isFinite(pt=pt(st))?pt:C(st))+l)})),Q.remove(),B.attr("d",4===t||2===t?s?"M"+c*s+","+I+"H"+l+"V"+P+"H"+c*s:"M"+l+","+I+"V"+P:s?"M"+I+","+c*s+"V"+l+"H"+P+"V"+c*s:"M"+I+","+l+"H"+P),H.attr("opacity",1).attr("transform",function(st){return g(C(st)+l)}),$.attr(d+"2",c*o),tt.attr(d,c*b).text(w),F.filter(au).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),F.each(function(){this.__axis=C})}return p.scale=function(m){return arguments.length?(n=m,p):n},p.ticks=function(){return e=Array.from(arguments),p},p.tickArguments=function(m){return arguments.length?(e=null==m?[]:Array.from(m),p):e.slice()},p.tickValues=function(m){return arguments.length?(r=null==m?null:Array.from(m),p):r&&r.slice()},p.tickFormat=function(m){return arguments.length?(i=m,p):i},p.tickSize=function(m){return arguments.length?(o=s=+m,p):o},p.tickSizeInner=function(m){return arguments.length?(o=+m,p):o},p.tickSizeOuter=function(m){return arguments.length?(s=+m,p):s},p.tickPadding=function(m){return arguments.length?(u=+m,p):u},p.offset=function(m){return arguments.length?(l=+m,p):l},p}function Ii(t){return mr(1,t)}function _s(t){return mr(2,t)}function Ms(t){return mr(3,t)}function Z1(t){return mr(4,t)}var Es=a(60903),Ri=a(39374),Ao=a(37656),Sr=a(60711),zi=a(40726),Co=a(81728);const uu=t=>()=>t;function G1(t,{sourceEvent:n,target:e,selection:r,mode:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:e,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function Y1(t){t.stopImmediatePropagation()}function cu(t){t.preventDefault(),t.stopImmediatePropagation()}var Jf={name:"drag"},fu={name:"space"},Di={name:"handle"},Li={name:"center"};const{abs:qf,max:Ee,min:Te}=Math;function tl(t){return[+t[0],+t[1]]}function lu(t){return[tl(t[0]),tl(t[1])]}var Ts={name:"x",handles:["w","e"].map(Po),input:function(t,n){return null==t?null:[[+t[0],n[0][1]],[+t[1],n[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},Ss={name:"y",handles:["n","s"].map(Po),input:function(t,n){return null==t?null:[[n[0][0],+t[0]],[n[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},V1={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Po),input:function(t){return null==t?null:lu(t)},output:function(t){return t}},Ar={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"},nl={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},el={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},H1={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},j1={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Po(t){return{type:t}}function W1(t){return!t.ctrlKey&&!t.button}function X1(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function $1(){return navigator.maxTouchPoints||"ontouchstart"in this}function hu(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function K1(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function Q1(t){var n=t.__brush;return n?n.dim.output(n.selection):null}function J1(){return du(Ts)}function q1(){return du(Ss)}function tg(){return du(V1)}function du(t){var u,n=X1,e=W1,r=$1,i=!0,o=(0,Es.Z)("start","brush","end"),s=6;function l(b){var T=b.property("__brush",w).selectAll(".overlay").data([Po("overlay")]);T.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Ar.overlay).merge(T).each(function(){var P=hu(this).extent;(0,Sr.Z)(this).attr("x",P[0][0]).attr("y",P[0][1]).attr("width",P[1][0]-P[0][0]).attr("height",P[1][1]-P[0][1])}),b.selectAll(".selection").data([Po("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Ar.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var I=b.selectAll(".handle").data(t.handles,function(P){return P.type});I.exit().remove(),I.enter().append("rect").attr("class",function(P){return"handle handle--"+P.type}).attr("cursor",function(P){return Ar[P.type]}),b.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",p).filter(r).on("touchstart.brush",p).on("touchmove.brush",m).on("touchend.brush touchcancel.brush",A).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function c(){var b=(0,Sr.Z)(this),T=hu(this).selection;T?(b.selectAll(".selection").style("display",null).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]),b.selectAll(".handle").style("display",null).attr("x",function(I){return"e"===I.type[I.type.length-1]?T[1][0]-s/2:T[0][0]-s/2}).attr("y",function(I){return"s"===I.type[0]?T[1][1]-s/2:T[0][1]-s/2}).attr("width",function(I){return"n"===I.type||"s"===I.type?T[1][0]-T[0][0]+s:s}).attr("height",function(I){return"e"===I.type||"w"===I.type?T[1][1]-T[0][1]+s:s})):b.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function d(b,T,I){var P=b.__brush.emitter;return!P||I&&P.clean?new g(b,T,I):P}function g(b,T,I){this.that=b,this.args=T,this.state=b.__brush,this.active=0,this.clean=I}function p(b){if((!u||b.touches)&&e.apply(this,arguments)){var $,tt,pt,U,q,ct,ut,J,St,It,Ht,T=this,I=b.target.__data__.type,P="selection"===(i&&b.metaKey?I="overlay":I)?Jf:i&&b.altKey?Li:Di,C=t===Ss?null:H1[I],F=t===Ts?null:j1[I],B=hu(T),H=B.extent,Q=B.selection,ot=H[0][0],st=H[0][1],Y=H[1][0],K=H[1][1],gt=0,xt=0,_t=C&&F&&i&&b.shiftKey,Dt=Array.from(b.touches||[b],$t=>{const yn=$t.identifier;return($t=(0,zi.Z)($t,T)).point0=$t.slice(),$t.identifier=yn,$t});(0,Co.e1)(T);var qt=d(T,arguments,!0).beforestart();if("overlay"===I){Q&&(St=!0);const $t=[Dt[0],Dt[1]||Dt[0]];B.selection=Q=[[$=t===Ss?ot:Te($t[0][0],$t[1][0]),pt=t===Ts?st:Te($t[0][1],$t[1][1])],[q=t===Ss?Y:Ee($t[0][0],$t[1][0]),ut=t===Ts?K:Ee($t[0][1],$t[1][1])]],Dt.length>1&&tn(b)}else $=Q[0][0],pt=Q[0][1],q=Q[1][0],ut=Q[1][1];tt=$,U=pt,ct=q,J=ut;var kt=(0,Sr.Z)(T).attr("pointer-events","none"),Ut=kt.selectAll(".overlay").attr("cursor",Ar[I]);if(b.touches)qt.moved=Et,qt.ended=sn;else{var Yt=(0,Sr.Z)(b.view).on("mousemove.brush",Et,!0).on("mouseup.brush",sn,!0);i&&Yt.on("keydown.brush",wn,!0).on("keyup.brush",fn,!0),(0,Ri.Z)(b.view)}c.call(T),qt.start(b,P.name)}function Et($t){for(const yn of $t.changedTouches||[$t])for(const Qn of Dt)Qn.identifier===yn.identifier&&(Qn.cur=(0,zi.Z)(yn,T));if(_t&&!It&&!Ht&&1===Dt.length){const yn=Dt[0];qf(yn.cur[0]-yn[0])>qf(yn.cur[1]-yn[1])?Ht=!0:It=!0}for(const yn of Dt)yn.cur&&(yn[0]=yn.cur[0],yn[1]=yn.cur[1]);St=!0,cu($t),tn($t)}function tn($t){const yn=Dt[0],Qn=yn.point0;var Hn;switch(gt=yn[0]-Qn[0],xt=yn[1]-Qn[1],P){case fu:case Jf:C&&(gt=Ee(ot-$,Te(Y-q,gt)),tt=$+gt,ct=q+gt),F&&(xt=Ee(st-pt,Te(K-ut,xt)),U=pt+xt,J=ut+xt);break;case Di:Dt[1]?(C&&(tt=Ee(ot,Te(Y,Dt[0][0])),ct=Ee(ot,Te(Y,Dt[1][0])),C=1),F&&(U=Ee(st,Te(K,Dt[0][1])),J=Ee(st,Te(K,Dt[1][1])),F=1)):(C<0?(gt=Ee(ot-$,Te(Y-$,gt)),tt=$+gt,ct=q):C>0&&(gt=Ee(ot-q,Te(Y-q,gt)),tt=$,ct=q+gt),F<0?(xt=Ee(st-pt,Te(K-pt,xt)),U=pt+xt,J=ut):F>0&&(xt=Ee(st-ut,Te(K-ut,xt)),U=pt,J=ut+xt));break;case Li:C&&(tt=Ee(ot,Te(Y,$-gt*C)),ct=Ee(ot,Te(Y,q+gt*C))),F&&(U=Ee(st,Te(K,pt-xt*F)),J=Ee(st,Te(K,ut+xt*F)))}ct0&&($=tt-gt),F<0?ut=J-xt:F>0&&(pt=U-xt),P=fu,Ut.attr("cursor",Ar.selection),tn($t));break;default:return}cu($t)}function fn($t){switch($t.keyCode){case 16:_t&&(It=Ht=_t=!1,tn($t));break;case 18:P===Li&&(C<0?q=ct:C>0&&($=tt),F<0?ut=J:F>0&&(pt=U),P=Di,tn($t));break;case 32:P===fu&&($t.altKey?(C&&(q=ct-gt*C,$=tt+gt*C),F&&(ut=J-xt*F,pt=U+xt*F),P=Li):(C<0?q=ct:C>0&&($=tt),F<0?ut=J:F>0&&(pt=U),P=Di),Ut.attr("cursor",Ar[I]),tn($t));break;default:return}cu($t)}}function m(b){d(this,arguments).moved(b)}function A(b){d(this,arguments).ended(b)}function w(){var b=this.__brush||{selection:null};return b.extent=lu(n.apply(this,arguments)),b.dim=t,b}return l.move=function(b,T,I){b.tween?b.on("start.brush",function(P){d(this,arguments).beforestart().start(P)}).on("interrupt.brush end.brush",function(P){d(this,arguments).end(P)}).tween("brush",function(){var P=this,C=P.__brush,F=d(P,arguments),B=C.selection,H=t.input("function"==typeof T?T.apply(this,arguments):T,C.extent),Q=(0,Ao.Z)(B,H);function ot($){C.selection=1===$&&null===H?null:Q($),c.call(P),F.brush()}return null!==B&&null!==H?ot:ot(1)}):b.each(function(){var P=this,C=arguments,F=P.__brush,B=t.input("function"==typeof T?T.apply(P,C):T,F.extent),H=d(P,C).beforestart();(0,Co.e1)(P),F.selection=null===B?null:B,c.call(P),H.start(I).brush(I).end(I)})},l.clear=function(b,T){l.move(b,null,T)},g.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(b,T){return this.starting?(this.starting=!1,this.emit("start",b,T)):this.emit("brush",b),this},brush:function(b,T){return this.emit("brush",b,T),this},end:function(b,T){return 0==--this.active&&(delete this.state.emitter,this.emit("end",b,T)),this},emit:function(b,T,I){var P=(0,Sr.Z)(this.that).datum();o.call(b,this.that,new G1(b,{sourceEvent:T,target:l,selection:t.output(this.state.selection),mode:I,dispatch:o}),P)}},l.extent=function(b){return arguments.length?(n="function"==typeof b?b:uu(lu(b)),l):n},l.filter=function(b){return arguments.length?(e="function"==typeof b?b:uu(!!b),l):e},l.touchable=function(b){return arguments.length?(r="function"==typeof b?b:uu(!!b),l):r},l.handleSize=function(b){return arguments.length?(s=+b,l):s},l.keyModifiers=function(b){return arguments.length?(i=!!b,l):i},l.on=function(){var b=o.on.apply(o,arguments);return b===o?l:b},l}var rl=Math.abs,Fi=Math.cos,Bi=Math.sin,il=Math.PI,As=il/2,ol=2*il,sl=Math.max,pu=1e-12;function gu(t,n){return Array.from({length:n-t},(e,r)=>t+r)}function ng(t){return function(n,e){return t(n.source.value+n.target.value,e.source.value+e.target.value)}}function eg(){return mu(!1,!1)}function rg(){return mu(!1,!0)}function ig(){return mu(!0,!1)}function mu(t,n){var e=0,r=null,i=null,o=null;function s(u){var A,l=u.length,c=new Array(l),d=gu(0,l),g=new Array(l*l),p=new Array(l),m=0;u=Float64Array.from({length:l*l},n?(w,b)=>u[b%l][b/l|0]:(w,b)=>u[b/l|0][b%l]);for(let w=0;wr(c[b],c[T]));for(const b of d){const T=w;if(t){const I=gu(1+~l,l).filter(P=>P<0?u[~P*l+b]:u[b*l+P]);i&&I.sort((P,C)=>i(P<0?-u[~P*l+b]:u[b*l+P],C<0?-u[~C*l+b]:u[b*l+C]));for(const P of I)P<0?(g[~P*l+b]||(g[~P*l+b]={source:null,target:null})).target={index:b,startAngle:w,endAngle:w+=u[~P*l+b]*m,value:u[~P*l+b]}:(g[b*l+P]||(g[b*l+P]={source:null,target:null})).source={index:b,startAngle:w,endAngle:w+=u[b*l+P]*m,value:u[b*l+P]};p[b]={index:b,startAngle:T,endAngle:w,value:c[b]}}else{const I=gu(0,l).filter(P=>u[b*l+P]||u[P*l+b]);i&&I.sort((P,C)=>i(u[b*l+P],u[b*l+C]));for(const P of I){let C;if(bni)if(Math.abs(d*u-l*c)>ni&&i){var p=e-o,m=r-s,A=u*u+l*l,w=p*p+m*m,b=Math.sqrt(A),T=Math.sqrt(g),I=i*Math.tan((vu-Math.acos((A+g-w)/(2*b*T)))/2),P=I/T,C=I/b;Math.abs(P-1)>ni&&(this._+="L"+(t+P*c)+","+(n+P*d)),this._+="A"+i+","+i+",0,0,"+ +(d*p>c*m)+","+(this._x1=t+C*u)+","+(this._y1=n+C*l)}else this._+="L"+(this._x1=t)+","+(this._y1=n)},arc:function(t,n,e,r,i,o){t=+t,n=+n,o=!!o;var s=(e=+e)*Math.cos(r),u=e*Math.sin(r),l=t+s,c=n+u,d=1^o,g=o?r-i:i-r;if(e<0)throw new Error("negative radius: "+e);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>ni||Math.abs(this._y1-c)>ni)&&(this._+="L"+l+","+c),e&&(g<0&&(g=g%yu+yu),g>og?this._+="A"+e+","+e+",0,1,"+d+","+(t-s)+","+(n-u)+"A"+e+","+e+",0,1,"+d+","+(this._x1=l)+","+(this._y1=c):g>ni&&(this._+="A"+e+","+e+",0,"+ +(g>=vu)+","+d+","+(this._x1=t+e*Math.cos(i))+","+(this._y1=n+e*Math.sin(i))))},rect:function(t,n,e,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +e+"v"+ +r+"h"+-e+"Z"},toString:function(){return this._}};const ei=al;var sg=Array.prototype.slice;function ri(t){return function(){return t}}function ag(t){return t.source}function ug(t){return t.target}function ul(t){return t.radius}function cg(t){return t.startAngle}function fg(t){return t.endAngle}function lg(){return 0}function hg(){return 10}function cl(t){var n=ag,e=ug,r=ul,i=ul,o=cg,s=fg,u=lg,l=null;function c(){var d,g=n.apply(this,arguments),p=e.apply(this,arguments),m=u.apply(this,arguments)/2,A=sg.call(arguments),w=+r.apply(this,(A[0]=g,A)),b=o.apply(this,A)-As,T=s.apply(this,A)-As,I=+i.apply(this,(A[0]=p,A)),P=o.apply(this,A)-As,C=s.apply(this,A)-As;if(l||(l=d=ei()),m>pu&&(rl(T-b)>2*m+pu?T>b?(b+=m,T-=m):(b-=m,T+=m):b=T=(b+T)/2,rl(C-P)>2*m+pu?C>P?(P+=m,C-=m):(P-=m,C+=m):P=C=(P+C)/2),l.moveTo(w*Fi(b),w*Bi(b)),l.arc(0,0,w,b,T),b!==P||T!==C)if(t){var F=+t.apply(this,arguments),B=I-F,H=(P+C)/2;l.quadraticCurveTo(0,0,B*Fi(P),B*Bi(P)),l.lineTo(I*Fi(H),I*Bi(H)),l.lineTo(B*Fi(C),B*Bi(C))}else l.quadraticCurveTo(0,0,I*Fi(P),I*Bi(P)),l.arc(0,0,I,P,C);if(l.quadraticCurveTo(0,0,w*Fi(b),w*Bi(b)),l.closePath(),d)return l=null,d+""||null}return t&&(c.headRadius=function(d){return arguments.length?(t="function"==typeof d?d:ri(+d),c):t}),c.radius=function(d){return arguments.length?(r=i="function"==typeof d?d:ri(+d),c):r},c.sourceRadius=function(d){return arguments.length?(r="function"==typeof d?d:ri(+d),c):r},c.targetRadius=function(d){return arguments.length?(i="function"==typeof d?d:ri(+d),c):i},c.startAngle=function(d){return arguments.length?(o="function"==typeof d?d:ri(+d),c):o},c.endAngle=function(d){return arguments.length?(s="function"==typeof d?d:ri(+d),c):s},c.padAngle=function(d){return arguments.length?(u="function"==typeof d?d:ri(+d),c):u},c.source=function(d){return arguments.length?(n=d,c):n},c.target=function(d){return arguments.length?(e=d,c):e},c.context=function(d){return arguments.length?(l=d??null,c):l},c}function dg(){return cl()}function pg(){return cl(hg)}var he=a(22491),Ui=a(65275);const fl=Math.PI/180,ll=180/Math.PI,gl=4/29,Zi=6/29,ml=3*Zi*Zi;function vl(t){if(t instanceof cr)return new cr(t.l,t.a,t.b,t.opacity);if(t instanceof vr)return bl(t);t instanceof he.Ss||(t=(0,he.SU)(t));var o,s,n=Mu(t.r),e=Mu(t.g),r=Mu(t.b),i=xu((.2225045*n+.7168786*e+.0606169*r)/1);return n===e&&e===r?o=s=i:(o=xu((.4360747*n+.3850649*e+.1430804*r)/.96422),s=xu((.0139322*n+.0971045*e+.7141733*r)/.82521)),new cr(116*i-16,500*(o-i),200*(i-s),t.opacity)}function mg(t,n){return new cr(t,0,0,n??1)}function Ps(t,n,e,r){return 1===arguments.length?vl(t):new cr(t,n,e,r??1)}function cr(t,n,e,r){this.l=+t,this.a=+n,this.b=+e,this.opacity=+r}function xu(t){return t>.008856451679035631?Math.pow(t,1/3):t/ml+gl}function wu(t){return t>Zi?t*t*t:ml*(t-gl)}function _u(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Mu(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function yl(t){if(t instanceof vr)return new vr(t.h,t.c,t.l,t.opacity);if(t instanceof cr||(t=vl(t)),0===t.a&&0===t.b)return new vr(NaN,0()=>t;function _g(t,n){for(var i,e=-1,r=n.length;++er!=m>r&&e<(p-c)*(r-d)/(m-d)+c&&(i=-i)}return i}function Eg(t,n,e){var r;return function Tg(t,n,e){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])}(t,n,e)&&function Sg(t,n,e){return t<=n&&n<=e||e<=n&&n<=t}(t[r=+(t[0]===n[0])],e[r],n[r])}function Ag(){}var Cr=[[],[[[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 Tl(){var t=1,n=1,e=Mn,r=l;function i(c){var d=e(c);if(Array.isArray(d))d=d.slice().sort(xg);else{const g=X(c),p=xn(g[0],g[1],d);d=cn(Math.floor(g[0]/p)*p,Math.floor(g[1]/p-1)*p,d)}return d.map(g=>o(c,g))}function o(c,d){var g=[],p=[];return function s(c,d,g){var A,w,T,I,P,p=new Array,m=new Array;for(A=w=-1,Cr[(T=c[0]>=d)<<1].forEach(C);++A=d)<<1].forEach(C);for(Cr[T<<0].forEach(C);++w=d)<<1|(I=c[w*t]>=d)<<2].forEach(C);++A=d)<<1|(I=c[w*t+A+1]>=d)<<2|P<<3].forEach(C);Cr[T|I<<3].forEach(C)}for(A=-1,Cr[(I=c[w*t]>=d)<<2].forEach(C);++A=d)<<2|P<<3].forEach(C);function C(F){var $,tt,B=[F[0][0]+A,F[0][1]+w],H=[F[1][0]+A,F[1][1]+w],Q=u(B),ot=u(H);($=m[Q])?(tt=p[ot])?(delete m[$.end],delete p[tt.start],$===tt?($.ring.push(H),g($.ring)):p[$.start]=m[tt.end]={start:$.start,end:tt.end,ring:$.ring.concat(tt.ring)}):(delete m[$.end],$.ring.push(H),m[$.end=ot]=$):($=p[ot])?(tt=m[Q])?(delete p[$.start],delete m[tt.end],$===tt?($.ring.push(H),g($.ring)):p[tt.start]=m[$.end]={start:tt.start,end:$.end,ring:tt.ring.concat($.ring)}):(delete p[$.start],$.ring.unshift(B),p[$.start=Q]=$):p[Q]=m[ot]={start:Q,end:ot,ring:[B,H]}}Cr[I<<3].forEach(C)}(c,d,function(m){r(m,c,d),function wg(t){for(var n=0,e=t.length,r=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++n0?g.push([m]):p.push(m)}),p.forEach(function(m){for(var b,A=0,w=g.length;A0&&m0&&A=0&&g>=0))throw new Error("invalid size");return t=d,n=g,i},i.thresholds=function(c){return arguments.length?(e="function"==typeof c?c:Array.isArray(c)?Lr(El.call(c)):Lr(c),i):e},i.smooth=function(c){return arguments.length?(r=c?l:Ag,i):r===l},i}function Su(t,n,e){for(var r=t.width,i=t.height,o=1+(e<<1),s=0;s=e&&(u>=o&&(l-=t.data[u-o+s*r]),n.data[u-e+s*r]=l/Math.min(u+1,r-1+o-u,o))}function Au(t,n,e){for(var r=t.width,i=t.height,o=1+(e<<1),s=0;s=e&&(u>=o&&(l-=t.data[s+(u-o)*r]),n.data[s+(u-e)*r]=l/Math.min(u+1,i-1+o-u,o))}function Cg(t){return t[0]}function Pg(t){return t[1]}function Ng(){return 1}function Og(){var t=Cg,n=Pg,e=Ng,r=960,i=500,o=20,s=2,u=3*o,l=r+2*u>>s,c=i+2*u>>s,d=Lr(20);function g(T){var I=new Float32Array(l*c),P=new Float32Array(l*c),C=Math.pow(2,-s);T.forEach(function(H,Q,ot){var $=(t(H,Q,ot)+u)*C,tt=(n(H,Q,ot)+u)*C,st=+e(H,Q,ot);if($>=0&&$=0&&tt>s),Au({width:l,height:c,data:P},{width:l,height:c,data:I},o>>s),Su({width:l,height:c,data:I},{width:l,height:c,data:P},o>>s),Au({width:l,height:c,data:P},{width:l,height:c,data:I},o>>s),Su({width:l,height:c,data:I},{width:l,height:c,data:P},o>>s),Au({width:l,height:c,data:P},{width:l,height:c,data:I},o>>s);var F=d(I);if(!Array.isArray(F)){var B=wt(I);F=xn(0,B,F),(F=We(0,Math.floor(B/F)*F,F)).shift()}return Tl().thresholds(F).size([l,c])(I).map(p)}function p(T){return T.value*=Math.pow(2,-2*s),T.coordinates.forEach(m),T}function m(T){T.forEach(A)}function A(T){T.forEach(w)}function w(T){T[0]=T[0]*Math.pow(2,s)-u,T[1]=T[1]*Math.pow(2,s)-u}function b(){return l=r+2*(u=3*o)>>s,c=i+2*u>>s,g}return g.x=function(T){return arguments.length?(t="function"==typeof T?T:Lr(+T),g):t},g.y=function(T){return arguments.length?(n="function"==typeof T?T:Lr(+T),g):n},g.weight=function(T){return arguments.length?(e="function"==typeof T?T:Lr(+T),g):e},g.size=function(T){if(!arguments.length)return[r,i];var I=+T[0],P=+T[1];if(!(I>=0&&P>=0))throw new Error("invalid size");return r=I,i=P,b()},g.cellSize=function(T){if(!arguments.length)return 1<=1))throw new Error("invalid cell size");return s=Math.floor(Math.log(T)/Math.LN2),b()},g.thresholds=function(T){return arguments.length?(d="function"==typeof T?T:Array.isArray(T)?Lr(El.call(T)):Lr(T),g):d},g.bandwidth=function(T){if(!arguments.length)return Math.sqrt(o*(o+1));if(!((T=+T)>=0))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*T*T+1)-1)/2),b()},g}const de=134217729;function Oo(t,n,e,r,i){let o,s,u,l,c=n[0],d=r[0],g=0,p=0;d>c==d>-c?(o=c,c=n[++g]):(o=d,d=r[++p]);let m=0;if(gc==d>-c?(s=c+o,u=o-(s-c),c=n[++g]):(s=d+o,u=o-(s-d),d=r[++p]),o=s,0!==u&&(i[m++]=u);gc==d>-c?(s=o+c,l=s-o,u=o-(s-l)+(c-l),c=n[++g]):(s=o+d,l=s-o,u=o-(s-l)+(d-l),d=r[++p]),o=s,0!==u&&(i[m++]=u);for(;g0!=u>0)return l;const c=Math.abs(s+u);return Math.abs(l)>=33306690738754716e-32*c?l:-function Lg(t,n,e,r,i,o,s){let u,l,c,d,g,p,m,A,w,b,T,I,P,C,F,B,H,Q;const ot=t-i,$=e-i,tt=n-o,st=r-o;C=ot*st,p=de*ot,m=p-(p-ot),A=ot-m,p=de*st,w=p-(p-st),b=st-w,F=A*b-(C-m*w-A*w-m*b),B=tt*$,p=de*tt,m=p-(p-tt),A=tt-m,p=de*$,w=p-(p-$),b=$-w,H=A*b-(B-m*w-A*w-m*b),T=F-H,g=F-T,Gi[0]=F-(T+g)+(g-H),I=C+T,g=I-C,P=C-(I-g)+(T-g),T=P-B,g=P-T,Gi[1]=P-(T+g)+(g-B),Q=I+T,g=Q-I,Gi[2]=I-(Q-g)+(T-g),Gi[3]=Q;let pt=function Ig(t,n){let e=n[0];for(let r=1;r=U||-pt>=U||(g=t-ot,u=t-(ot+g)+(g-i),g=e-$,c=e-($+g)+(g-i),g=n-tt,l=n-(tt+g)+(g-o),g=r-st,d=r-(st+g)+(g-o),0===u&&0===l&&0===c&&0===d)||(U=11093356479670487e-47*s+33306690738754706e-32*Math.abs(pt),pt+=ot*d+st*u-(tt*c+$*l),pt>=U||-pt>=U))return pt;C=u*st,p=de*u,m=p-(p-u),A=u-m,p=de*st,w=p-(p-st),b=st-w,F=A*b-(C-m*w-A*w-m*b),B=l*$,p=de*l,m=p-(p-l),A=l-m,p=de*$,w=p-(p-$),b=$-w,H=A*b-(B-m*w-A*w-m*b),T=F-H,g=F-T,Ce[0]=F-(T+g)+(g-H),I=C+T,g=I-C,P=C-(I-g)+(T-g),T=P-B,g=P-T,Ce[1]=P-(T+g)+(g-B),Q=I+T,g=Q-I,Ce[2]=I-(Q-g)+(T-g),Ce[3]=Q;const Y=Oo(4,Gi,4,Ce,Sl);C=ot*d,p=de*ot,m=p-(p-ot),A=ot-m,p=de*d,w=p-(p-d),b=d-w,F=A*b-(C-m*w-A*w-m*b),B=tt*c,p=de*tt,m=p-(p-tt),A=tt-m,p=de*c,w=p-(p-c),b=c-w,H=A*b-(B-m*w-A*w-m*b),T=F-H,g=F-T,Ce[0]=F-(T+g)+(g-H),I=C+T,g=I-C,P=C-(I-g)+(T-g),T=P-B,g=P-T,Ce[1]=P-(T+g)+(g-B),Q=I+T,g=Q-I,Ce[2]=I-(Q-g)+(T-g),Ce[3]=Q;const q=Oo(Y,Sl,4,Ce,Al);C=u*d,p=de*u,m=p-(p-u),A=u-m,p=de*d,w=p-(p-d),b=d-w,F=A*b-(C-m*w-A*w-m*b),B=l*c,p=de*l,m=p-(p-l),A=l-m,p=de*c,w=p-(p-c),b=c-w,H=A*b-(B-m*w-A*w-m*b),T=F-H,g=F-T,Ce[0]=F-(T+g)+(g-H),I=C+T,g=I-C,P=C-(I-g)+(T-g),T=P-B,g=P-T,Ce[1]=P-(T+g)+(g-B),Q=I+T,g=Q-I,Ce[2]=I-(Q-g)+(T-g),Ce[3]=Q;const ct=Oo(q,Al,4,Ce,Cl);return Cl[ct-1]}(t,n,e,r,i,o,c)}jt(4),jt(4),jt(4),jt(4),jt(4),jt(4),jt(4),jt(4),jt(4),jt(8),jt(8),jt(8),jt(4),jt(8),jt(8),jt(8),jt(12),jt(192),jt(192),jt(4),jt(4),jt(4),jt(4),jt(4),jt(4),jt(4),jt(4),jt(8),jt(8),jt(8),jt(8),jt(8),jt(8),jt(8),jt(8),jt(8),jt(4),jt(4),jt(4),jt(8),jt(16),jt(16),jt(16),jt(32),jt(32),jt(48),jt(64),jt(1152),jt(1152),jt(4),jt(4),jt(4),jt(4),jt(4),jt(4),jt(4),jt(4),jt(4),jt(4),jt(24),jt(24),jt(24),jt(24),jt(24),jt(24),jt(24),jt(24),jt(24),jt(24),jt(1152),jt(1152),jt(1152),jt(1152),jt(1152),jt(2304),jt(2304),jt(3456),jt(5760),jt(8),jt(8),jt(8),jt(16),jt(24),jt(48),jt(48),jt(96),jt(192),jt(384),jt(384),jt(384),jt(768),jt(96),jt(96),jt(96),jt(1152);const $l=Math.pow(2,-52),Gs=new Uint32Array(512);class Ys{static from(n,e=rm,r=im){const i=n.length,o=new Float64Array(2*i);for(let s=0;s>1;if(e>0&&"number"!=typeof n[0])throw new Error("Expected coords to contain numbers.");this.coords=n;const r=Math.max(2*e-5,0);this._triangles=new Uint32Array(3*r),this._halfedges=new Int32Array(3*r),this._hashSize=Math.ceil(Math.sqrt(e)),this._hullPrev=new Uint32Array(e),this._hullNext=new Uint32Array(e),this._hullTri=new Uint32Array(e),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(e),this._dists=new Float64Array(e),this.update()}update(){const{coords:n,_hullPrev:e,_hullNext:r,_hullTri:i,_hullHash:o}=this,s=n.length>>1;let u=1/0,l=1/0,c=-1/0,d=-1/0;for(let $=0;$c&&(c=tt),st>d&&(d=st),this._ids[$]=$}const g=(u+c)/2,p=(l+d)/2;let A,w,b,m=1/0;for(let $=0;$0&&(w=$,m=tt)}let P=n[2*w],C=n[2*w+1],F=1/0;for(let $=0;$pt&&($[tt++]=U,pt=this._dists[U])}return this.hull=$.subarray(0,tt),this.triangles=new Uint32Array(0),void(this.halfedges=new Uint32Array(0))}if(ks(T,I,P,C,B,H)<0){const $=w,tt=P,st=C;w=b,P=B,C=H,b=$,B=tt,H=st}const Q=function em(t,n,e,r,i,o){const s=e-t,u=r-n,l=i-t,c=o-n,d=s*s+u*u,g=l*l+c*c,p=.5/(s*c-u*l);return{x:t+(c*d-u*g)*p,y:n+(s*g-l*d)*p}}(T,I,P,C,B,H);this._cx=Q.x,this._cy=Q.y;for(let $=0;$0&&Math.abs(U-tt)<=$l&&Math.abs(Y-st)<=$l||(tt=U,st=Y,pt===A||pt===w||pt===b))continue;let q=0;for(let gt=0,xt=this._hashKey(U,Y);gt=0;)if(ct=K,ct===q){ct=-1;break}if(-1===ct)continue;let ut=this._addTriangle(ct,pt,r[ct],-1,-1,i[ct]);i[pt]=this._legalize(ut+2),i[ct]=ut,ot++;let J=r[ct];for(;K=r[J],ks(U,Y,n[2*J],n[2*J+1],n[2*K],n[2*K+1])<0;)ut=this._addTriangle(J,pt,K,i[pt],-1,i[J]),i[pt]=this._legalize(ut+2),r[J]=J,ot--,J=K;if(ct===q)for(;K=e[ct],ks(U,Y,n[2*K],n[2*K+1],n[2*ct],n[2*ct+1])<0;)ut=this._addTriangle(K,pt,ct,-1,i[ct],i[K]),this._legalize(ut+2),i[K]=ut,r[ct]=ct,ot--,ct=K;this._hullStart=e[pt]=ct,r[ct]=e[J]=pt,r[pt]=J,o[this._hashKey(U,Y)]=pt,o[this._hashKey(n[2*ct],n[2*ct+1])]=ct}this.hull=new Uint32Array(ot);for(let $=0,tt=this._hullStart;$0?3-e:1+e)/4}(n-this._cx,e-this._cy)*this._hashSize)%this._hashSize}_legalize(n){const{_triangles:e,_halfedges:r,coords:i}=this;let o=0,s=0;for(;;){const u=r[n],l=n-n%3;if(s=l+(n+2)%3,-1===u){if(0===o)break;n=Gs[--o];continue}const c=u-u%3,g=c+(u+2)%3,p=e[s],m=e[n],A=e[l+(n+1)%3],w=e[g];if(tm(i[2*p],i[2*p+1],i[2*m],i[2*m+1],i[2*A],i[2*A+1],i[2*w],i[2*w+1])){e[n]=w,e[u]=p;const T=r[g];if(-1===T){let P=this._hullStart;do{if(this._hullTri[P]===g){this._hullTri[P]=n;break}P=this._hullPrev[P]}while(P!==this._hullStart)}this._link(n,T),this._link(u,r[s]),this._link(s,g);const I=c+(u+1)%3;o=e&&n[t[u]]>s;)t[u+1]=t[u--];t[u+1]=o}else{let o=e+1,s=r;zo(t,e+r>>1,o),n[t[e]]>n[t[r]]&&zo(t,e,r),n[t[o]]>n[t[r]]&&zo(t,o,r),n[t[e]]>n[t[o]]&&zo(t,e,o);const u=t[o],l=n[u];for(;;){do{o++}while(n[t[o]]l);if(s=s-e?(Ki(t,n,o,r),Ki(t,n,e,s-1)):(Ki(t,n,e,s-1),Ki(t,n,o,r))}}function zo(t,n,e){const r=t[n];t[n]=t[e],t[e]=r}function rm(t){return t[0]}function im(t){return t[1]}class di{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(n,e){this._+=`M${this._x0=this._x1=+n},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(n,e){this._+=`L${this._x1=+n},${this._y1=+e}`}arc(n,e,r){const i=(n=+n)+(r=+r),o=e=+e;if(r<0)throw new Error("negative radius");null===this._x1?this._+=`M${i},${o}`:(Math.abs(this._x1-i)>1e-6||Math.abs(this._y1-o)>1e-6)&&(this._+="L"+i+","+o),r&&(this._+=`A${r},${r},0,1,1,${n-r},${e}A${r},${r},0,1,1,${this._x1=i},${this._y1=o}`)}rect(n,e,r,i){this._+=`M${this._x0=this._x1=+n},${this._y0=this._y1=+e}h${+r}v${+i}h${-r}Z`}value(){return this._||null}}class tc{constructor(){this._=[]}moveTo(n,e){this._.push([n,e])}closePath(){this._.push(this._[0].slice())}lineTo(n,e){this._.push([n,e])}value(){return this._.length?this._:null}}class Ql{constructor(n,[e,r,i,o]=[0,0,960,500]){if(!((i=+i)>=(e=+e)&&(o=+o)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=n,this._circumcenters=new Float64Array(2*n.points.length),this.vectors=new Float64Array(2*n.points.length),this.xmax=i,this.xmin=e,this.ymax=o,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:n,hull:e,triangles:r},vectors:i}=this,o=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let b,T,m=0,A=0,w=r.length;m1;)o-=2;for(let s=2;s4)for(let s=0;s0){if(e>=this.ymax)return null;(s=(this.ymax-e)/i)0){if(n>=this.xmax)return null;(s=(this.xmax-n)/r)this.xmax?2:0)|(ethis.ymax?8:0)}}const om=2*Math.PI,Qi=Math.pow;function sm(t){return t[0]}function am(t){return t[1]}function cm(t,n,e){return[t+Math.sin(t+n)*e,n+Math.cos(t-n)*e]}class nc{static from(n,e=sm,r=am,i){return new nc("length"in n?function fm(t,n,e,r){const i=t.length,o=new Float64Array(2*i);for(let s=0;s2&&function um(t){const{triangles:n,coords:e}=t;for(let r=0;r1e-10)return!1}return!0}(n)){this.collinear=Int32Array.from({length:e.length/2},(p,m)=>m).sort((p,m)=>e[2*p]-e[2*m]||e[2*p+1]-e[2*m+1]);const l=this.collinear[0],c=this.collinear[this.collinear.length-1],d=[e[2*l],e[2*l+1],e[2*c],e[2*c+1]],g=1e-8*Math.hypot(d[3]-d[1],d[2]-d[0]);for(let p=0,m=e.length/2;p0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=i[0],s[i[0]]=1,2===i.length&&(s[i[1]]=0,this.triangles[1]=i[1],this.triangles[2]=i[1]))}voronoi(n){return new Ql(this,n)}*neighbors(n){const{inedges:e,hull:r,_hullIndex:i,halfedges:o,triangles:s,collinear:u}=this;if(u){const g=u.indexOf(n);return g>0&&(yield u[g-1]),void(g=0&&o!==r&&o!==i;)r=o;return o}_step(n,e,r){const{inedges:i,hull:o,_hullIndex:s,halfedges:u,triangles:l,points:c}=this;if(-1===i[n]||!c.length)return(n+1)%(c.length>>1);let d=n,g=Qi(e-c[2*n],2)+Qi(r-c[2*n+1],2);const p=i[n];let m=p;do{let A=l[m];const w=Qi(e-c[2*A],2)+Qi(r-c[2*A+1],2);if(w()=>t;function ec(t,{sourceEvent:n,subject:e,target:r,identifier:i,active:o,x:s,y:u,dx:l,dy:c,dispatch:d}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},subject:{value:e,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:u,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:d}})}function hm(t){return!t.ctrlKey&&!t.button}function dm(){return this.parentNode}function pm(t,n){return n??{x:t.x,y:t.y}}function gm(){return navigator.maxTouchPoints||"ontouchstart"in this}function mm(){var u,l,c,d,t=hm,n=dm,e=pm,r=gm,i={},o=(0,Es.Z)("start","drag","end"),s=0,g=0;function p(C){C.on("mousedown.drag",m).filter(r).on("touchstart.drag",b).on("touchmove.drag",T,Pr.Q7).on("touchend.drag touchcancel.drag",I).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(C,F){if(!d&&t.call(this,C,F)){var B=P(this,n.call(this,C,F),C,F,"mouse");!B||((0,Sr.Z)(C.view).on("mousemove.drag",A,Pr.Dd).on("mouseup.drag",w,Pr.Dd),(0,Ri.Z)(C.view),(0,Pr.rG)(C),c=!1,u=C.clientX,l=C.clientY,B("start",C))}}function A(C){if((0,Pr.ZP)(C),!c){var F=C.clientX-u,B=C.clientY-l;c=F*F+B*B>g}i.mouse("drag",C)}function w(C){(0,Sr.Z)(C.view).on("mousemove.drag mouseup.drag",null),(0,Ri.D)(C.view,c),(0,Pr.ZP)(C),i.mouse("end",C)}function b(C,F){if(t.call(this,C,F)){var ot,$,B=C.changedTouches,H=n.call(this,C,F),Q=B.length;for(ot=0;ot=A?I=!0:10===(Q=g.charCodeAt(w++))?P=!0:13===Q&&(P=!0,10===g.charCodeAt(w)&&++w),g.slice(H+1,B-1).replace(/""/g,'"')}for(;w9999?"+"+Ye(t,6):Ye(t,4)}(t.getUTCFullYear())+"-"+Ye(t.getUTCMonth()+1,2)+"-"+Ye(t.getUTCDate(),2)+(i?"T"+Ye(n,2)+":"+Ye(e,2)+":"+Ye(r,2)+"."+Ye(i,3)+"Z":r?"T"+Ye(n,2)+":"+Ye(e,2)+":"+Ye(r,2)+"Z":e||n?"T"+Ye(n,2)+":"+Ye(e,2)+"Z":"")}(g):n.test(g+="")?'"'+g.replace(/"/g,'""')+'"':g}return{parse:function r(g,p){var m,A,w=i(g,function(b,T){if(m)return m(b,T-1);A=b,m=p?function vm(t,n){var e=ql(t);return function(r,i){return n(e(r),i,t)}}(b,p):ql(b)});return w.columns=A||[],w},parseRows:i,format:function s(g,p){return null==p&&(p=th(g)),[p.map(d).join(t)].concat(o(g,p)).join("\n")},formatBody:function u(g,p){return null==p&&(p=th(g)),o(g,p).join("\n")},formatRows:function l(g){return g.map(c).join("\n")},formatRow:c,formatValue:d}}var pi=Hs(","),nh=pi.parse,xm=pi.parseRows,wm=pi.format,_m=pi.formatBody,Mm=pi.formatRows,Em=pi.formatRow,Tm=pi.formatValue,gi=Hs("\t"),eh=gi.parse,Sm=gi.parseRows,Am=gi.format,Cm=gi.formatBody,Pm=gi.formatRows,Nm=gi.formatRow,Om=gi.formatValue;function km(t){for(var n in t){var r,i,e=t[n].trim();if(e)if("true"===e)e=!0;else if("false"===e)e=!1;else if("NaN"===e)e=NaN;else if(isNaN(r=+e)){if(!(i=e.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;Im&&!!i[4]&&!i[7]&&(e=e.replace(/-/g,"/").replace(/T/," ")),e=new Date(e)}else e=r;else e=null;t[n]=e}return t}const Im=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours();var Rn=a(33256);function Rm(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.blob()}function zm(t,n){return fetch(t,n).then(Rm)}function Dm(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.arrayBuffer()}function Lm(t,n){return fetch(t,n).then(Dm)}function Fm(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);return t.text()}function js(t,n){return fetch(t,n).then(Fm)}function rh(t){return function(n,e,r){return 2===arguments.length&&"function"==typeof e&&(r=e,e=void 0),js(n,e).then(function(i){return t(i,r)})}}function Bm(t,n,e,r){3===arguments.length&&"function"==typeof e&&(r=e,e=void 0);var i=Hs(t);return js(n,e).then(function(o){return i.parse(o,r)})}var Um=rh(nh),Zm=rh(eh);function Gm(t,n){return new Promise(function(e,r){var i=new Image;for(var o in n)i[o]=n[o];i.onerror=r,i.onload=function(){e(i)},i.src=t})}function Ym(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}function Vm(t,n){return fetch(t,n).then(Ym)}function sc(t){return(n,e)=>js(n,e).then(r=>(new DOMParser).parseFromString(r,t))}const Hm=sc("application/xml");var jm=sc("text/html"),Wm=sc("image/svg+xml");function Xm(t,n){var e,r=1;function i(){var o,u,s=e.length,l=0,c=0;for(o=0;o=(g=(u+c)/2))?u=g:c=g,(b=e>=(p=(l+d)/2))?l=p:d=p,i=o,!(o=o[T=b<<1|w]))return i[T]=s,t;if(m=+t._x.call(null,o.data),A=+t._y.call(null,o.data),n===m&&e===A)return s.next=o,i?i[T]=s:t._root=s,t;do{i=i?i[T]=new Array(4):t._root=new Array(4),(w=n>=(g=(u+c)/2))?u=g:c=g,(b=e>=(p=(l+d)/2))?l=p:d=p}while((T=b<<1|w)==(I=(A>=p)<<1|m>=g));return i[I]=o,i[T]=s,t}function Oe(t,n,e,r,i){this.node=t,this.x0=n,this.y0=e,this.x1=r,this.y1=i}function av(t){return t[0]}function cv(t){return t[1]}function Ws(t,n,e){var r=new ac(n??av,e??cv,NaN,NaN,NaN,NaN);return null==t?r:r.addAll(t)}function ac(t,n,e,r,i,o){this._x=t,this._y=n,this._x0=e,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function oh(t){for(var n={data:t.data},e=n;t=t.next;)e=e.next={data:t.data};return n}var ke=Ws.prototype=ac.prototype;function pe(t){return function(){return t}}function Yr(t){return 1e-6*(t()-.5)}function lv(t){return t.x+t.vx}function hv(t){return t.y+t.vy}function dv(t){var n,e,r,i=1,o=1;function s(){for(var c,g,p,m,A,w,b,d=n.length,T=0;Tm+$||BA+$||Hp.index){var tt=m-Q.x-Q.vx,st=A-Q.y-Q.vy,pt=tt*tt+st*st;pt<$*$&&(0===tt&&(pt+=(tt=Yr(r))*tt),0===st&&(pt+=(st=Yr(r))*st),pt=($-(pt=Math.sqrt(pt)))/pt*i,p.vx+=(tt*=pt)*($=(ot*=ot)/(b+ot)),p.vy+=(st*=pt)*$,Q.vx-=tt*($=1-$),Q.vy-=st*$)}}}function u(c){if(c.data)return c.r=e[c.data.index];for(var d=c.r=0;d<4;++d)c[d]&&c[d].r>c.r&&(c.r=c[d].r)}function l(){if(n){var c,g,d=n.length;for(e=new Array(d),c=0;c[n(F,B,s),F]));for(b=0,u=new Array(T);bd&&(d=i),og&&(g=o));if(l>d||c>g)return this;for(this.cover(l,c).cover(d,g),e=0;et||t>=i||r>n||n>=o;)switch(c=(nd||(u=A.y0)>g||(l=A.x1)=T)<<1|t>=b)&&(A=p[p.length-1],p[p.length-1]=p[p.length-1-w],p[p.length-1-w]=A)}else{var I=t-+this._x.call(null,m.data),P=n-+this._y.call(null,m.data),C=I*I+P*P;if(C=(p=(s+l)/2))?s=p:l=p,(w=g>=(m=(u+c)/2))?u=m:c=m,n=e,!(e=e[b=w<<1|A]))return this;if(!e.length)break;(n[b+1&3]||n[b+2&3]||n[b+3&3])&&(r=n,T=b)}for(;e.data!==t;)if(i=e,!(e=e.next))return this;return(o=e.next)&&delete e.next,i?(o?i.next=o:delete i.next,this):n?(o?n[b]=o:delete n[b],(e=n[0]||n[1]||n[2]||n[3])&&e===(n[3]||n[2]||n[1]||n[0])&&!e.length&&(r?r[T]=e:this._root=e),this):(this._root=o,this)},ke.removeAll=function ev(t){for(var n=0,e=t.length;n(t=(1664525*t+1013904223)%ah)/ah}();function g(){p(),c.call("tick",n),e1?(null==b?u.delete(w):u.set(w,A(b)),n):u.get(w)},find:function(w,b,T){var C,F,B,H,Q,I=0,P=t.length;for(null==T?T=1/0:T*=T,I=0;I1?(c.on(w,b),n):c.on(w)}}}function Ev(){var t,n,e,r,o,i=pe(-30),s=1,u=1/0,l=.81;function c(m){var A,w=t.length,b=Ws(t,bv,xv).visitAfter(g);for(r=m,A=0;A=u)){(m.data!==n||m.next)&&(0===T&&(C+=(T=Yr(e))*T),0===I&&(C+=(I=Yr(e))*I),C0?1:t<0?-1:0},ve=Math.sqrt,fc=Math.tan;function hh(t){return t>1?0:t<-1?kn:Math.acos(t)}function ze(t){return t>1?re:t<-1?-re:Math.asin(t)}function dh(t){return(t=on(t/2))*t}function ne(){}function Js(t,n){t&&gh.hasOwnProperty(t.type)&&gh[t.type](t,n)}var ph={Feature:function(t,n){Js(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r=0?1:-1,i=r*e,o=ln(n=(n*=mn)/2+$s),s=on(n),u=pc*s,l=dc*o+u*ln(i),c=u*r*on(i);qs.add(Re(c,l)),hc=t,dc=o,pc=s}function kv(t){return ta=new lt,dr(t,_r),2*ta}function na(t){return[Re(t[1],t[0]),ze(t[2])]}function mi(t){var n=t[0],e=t[1],r=ln(e);return[r*ln(n),r*on(n),on(e)]}function ea(t,n){return t[0]*n[0]+t[1]*n[1]+t[2]*n[2]}function no(t,n){return[t[1]*n[2]-t[2]*n[1],t[2]*n[0]-t[0]*n[2],t[0]*n[1]-t[1]*n[0]]}function gc(t,n){t[0]+=n[0],t[1]+=n[1],t[2]+=n[2]}function ra(t,n){return[t[0]*n,t[1]*n,t[2]*n]}function ia(t){var n=ve(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=n,t[1]/=n,t[2]/=n}var ee,Ve,ie,nr,vi,xh,wh,eo,Bo,Vr,Nr,Or={point:mc,lineStart:Mh,lineEnd:Eh,polygonStart:function(){Or.point=Th,Or.lineStart=Iv,Or.lineEnd=Rv,Bo=new lt,_r.polygonStart()},polygonEnd:function(){_r.polygonEnd(),Or.point=mc,Or.lineStart=Mh,Or.lineEnd=Eh,qs<0?(ee=-(ie=180),Ve=-(nr=90)):Bo>gn?nr=90:Bo<-gn&&(Ve=-90),Nr[0]=ee,Nr[1]=ie},sphere:function(){ee=-(ie=180),Ve=-(nr=90)}};function mc(t,n){Vr.push(Nr=[ee=t,ie=t]),nnr&&(nr=n)}function _h(t,n){var e=mi([t*mn,n*mn]);if(eo){var r=no(eo,e),o=no([r[1],-r[0],0],r);ia(o),o=na(o);var c,s=t-vi,u=s>0?1:-1,l=o[0]*Wn*u,d=Dn(s)>180;d^(u*vinr&&(nr=c):d^(u*vi<(l=(l+360)%360-180)&&lnr&&(nr=n)),d?ter(ee,ie)&&(ie=t):er(t,ie)>er(ee,ie)&&(ee=t):ie>=ee?(tie&&(ie=t)):t>vi?er(ee,t)>er(ee,ie)&&(ie=t):er(t,ie)>er(ee,ie)&&(ee=t)}else Vr.push(Nr=[ee=t,ie=t]);nnr&&(nr=n),eo=e,vi=t}function Mh(){Or.point=_h}function Eh(){Nr[0]=ee,Nr[1]=ie,Or.point=mc,eo=null}function Th(t,n){if(eo){var e=t-vi;Bo.add(Dn(e)>180?e+(e>0?360:-360):e)}else xh=t,wh=n;_r.point(t,n),_h(t,n)}function Iv(){_r.lineStart()}function Rv(){Th(xh,wh),_r.lineEnd(),Dn(Bo)>gn&&(ee=-(ie=180)),Nr[0]=ee,Nr[1]=ie,eo=null}function er(t,n){return(n-=t)<0?n+360:n}function zv(t,n){return t[0]-n[0]}function Sh(t,n){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:ner(r[0],r[1])&&(r[1]=i[1]),er(i[0],r[1])>er(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(s=-1/0,n=0,r=o[e=o.length-1];n<=e;r=i,++n)(u=er(r[1],(i=o[n])[0]))>s&&(s=u,ee=i[0],ie=r[1])}return Vr=Nr=null,ee===1/0||Ve===1/0?[[NaN,NaN],[NaN,NaN]]:[[ee,Ve],[ie,nr]]}var Uo,oa,sa,aa,ua,ca,fa,la,vc,yc,bc,Ah,Ch,De,Le,Fe,pr={sphere:ne,point:xc,lineStart:Ph,lineEnd:Nh,polygonStart:function(){pr.lineStart=Bv,pr.lineEnd=Uv},polygonEnd:function(){pr.lineStart=Ph,pr.lineEnd=Nh}};function xc(t,n){t*=mn;var e=ln(n*=mn);Zo(e*ln(t),e*on(t),on(n))}function Zo(t,n,e){++Uo,sa+=(t-sa)/Uo,aa+=(n-aa)/Uo,ua+=(e-ua)/Uo}function Ph(){pr.point=Lv}function Lv(t,n){t*=mn;var e=ln(n*=mn);De=e*ln(t),Le=e*on(t),Fe=on(n),pr.point=Fv,Zo(De,Le,Fe)}function Fv(t,n){t*=mn;var e=ln(n*=mn),r=e*ln(t),i=e*on(t),o=on(n),s=Re(ve((s=Le*o-Fe*i)*s+(s=Fe*r-De*o)*s+(s=De*i-Le*r)*s),De*r+Le*i+Fe*o);oa+=s,ca+=s*(De+(De=r)),fa+=s*(Le+(Le=i)),la+=s*(Fe+(Fe=o)),Zo(De,Le,Fe)}function Nh(){pr.point=xc}function Bv(){pr.point=Zv}function Uv(){Oh(Ah,Ch),pr.point=xc}function Zv(t,n){Ah=t,Ch=n,t*=mn,n*=mn,pr.point=Oh;var e=ln(n);De=e*ln(t),Le=e*on(t),Fe=on(n),Zo(De,Le,Fe)}function Oh(t,n){t*=mn;var e=ln(n*=mn),r=e*ln(t),i=e*on(t),o=on(n),s=Le*o-Fe*i,u=Fe*r-De*o,l=De*i-Le*r,c=uc(s,u,l),d=ze(c),g=c&&-d/c;vc.add(g*s),yc.add(g*u),bc.add(g*l),oa+=d,ca+=d*(De+(De=r)),fa+=d*(Le+(Le=i)),la+=d*(Fe+(Fe=o)),Zo(De,Le,Fe)}function Gv(t){Uo=oa=sa=aa=ua=ca=fa=la=0,vc=new lt,yc=new lt,bc=new lt,dr(t,pr);var n=+vc,e=+yc,r=+bc,i=uc(n,e,r);return ikn?t+Math.round(-t/Ie)*Ie:t,n]}function Mc(t,n,e){return(t%=Ie)?n||e?wc(Ih(t),Rh(n,e)):Ih(t):n||e?Rh(n,e):_c}function kh(t){return function(n,e){return[(n+=t)>kn?n-Ie:n<-kn?n+Ie:n,e]}}function Ih(t){var n=kh(t);return n.invert=kh(-t),n}function Rh(t,n){var e=ln(t),r=on(t),i=ln(n),o=on(n);function s(u,l){var c=ln(l),d=ln(u)*c,g=on(u)*c,p=on(l),m=p*e+d*r;return[Re(g*i-m*o,d*e-p*r),ze(m*i+g*o)]}return s.invert=function(u,l){var c=ln(l),d=ln(u)*c,g=on(u)*c,p=on(l),m=p*i-g*o;return[Re(g*i+p*o,d*e+m*r),ze(m*e-d*r)]},s}function zh(t){function n(e){return(e=t(e[0]*mn,e[1]*mn))[0]*=Wn,e[1]*=Wn,e}return t=Mc(t[0]*mn,t[1]*mn,t.length>2?t[2]*mn:0),n.invert=function(e){return(e=t.invert(e[0]*mn,e[1]*mn))[0]*=Wn,e[1]*=Wn,e},n}function Dh(t,n,e,r,i,o){if(e){var s=ln(n),u=on(n),l=r*e;null==i?(i=n+r*Ie,o=n-l/2):(i=Lh(s,i),o=Lh(s,o),(r>0?io)&&(i+=r*Ie));for(var c,d=i;r>0?d>o:d1&&t.push(t.pop().concat(t.shift()))},result:function(){var e=t;return t=[],n=null,e}}}function ha(t,n){return Dn(t[0]-n[0])=0;--u)i.point((g=d[u])[0],g[1]);else r(p.x,p.p.x,-1,i);p=p.p}d=(p=p.o).z,m=!m}while(!p.v);i.lineEnd()}}}function Uh(t){if(n=t.length){for(var n,i,e=0,r=t[0];++e=0?1:-1,$=ot*Q,tt=$>kn,st=b*B;if(l.add(Re(st*ot*on($),T*H+st*ln($))),s+=tt?Q+ot*Ie:Q,tt^A>=e^C>=e){var pt=no(mi(m),mi(P));ia(pt);var U=no(o,pt);ia(U);var Y=(tt^Q>=0?-1:1)*ze(U[2]);(r>Y||r===Y&&(pt[0]||pt[1]))&&(u+=tt^Q>=0?1:-1)}}return(s<-gn||s0){for(l||(i.polygonStart(),l=!0),i.lineStart(),B=0;B1&&2&C&&F.push(F.pop().concat(F.shift())),d.push(F.filter(Vv))}}return p}}function Vv(t){return t.length>1}function Hv(t,n){return((t=t.x)[0]<0?t[1]-re-gn:re-t[1])-((n=n.x)[0]<0?n[1]-re-gn:re-n[1])}_c.invert=_c;const Tc=Gh(function(){return!0},function jv(t){var i,n=NaN,e=NaN,r=NaN;return{lineStart:function(){t.lineStart(),i=1},point:function(o,s){var u=o>0?kn:-kn,l=Dn(o-n);Dn(l-kn)0?re:-re),t.point(r,e),t.lineEnd(),t.lineStart(),t.point(u,e),t.point(o,e),i=0):r!==u&&l>=kn&&(Dn(n-r)gn?to((on(n)*(o=ln(r))*on(e)-on(r)*(i=ln(n))*on(t))/(i*o*s)):(n+r)/2}(n,e,o,s),t.point(r,e),t.lineEnd(),t.lineStart(),t.point(u,e),i=0),t.point(n=o,e=s),r=u},lineEnd:function(){t.lineEnd(),n=e=NaN},clean:function(){return 2-i}}},function Xv(t,n,e,r){var i;if(null==t)r.point(-kn,i=e*re),r.point(0,i),r.point(kn,i),r.point(kn,0),r.point(kn,-i),r.point(0,-i),r.point(-kn,-i),r.point(-kn,0),r.point(-kn,i);else if(Dn(t[0]-n[0])>gn){var o=t[0]0,i=Dn(n)>gn;function s(d,g){return ln(d)*ln(g)>n}function l(d,g,p){var w=[1,0,0],b=no(mi(d),mi(g)),T=ea(b,b),I=b[0],P=T-I*I;if(!P)return!p&&d;var C=n*T/P,F=-n*I/P,B=no(w,b),H=ra(w,C);gc(H,ra(b,F));var ot=B,$=ea(H,ot),tt=ea(ot,ot),st=$*$-tt*(ea(H,H)-1);if(!(st<0)){var pt=ve(st),U=ra(ot,(-$-pt)/tt);if(gc(U,H),U=na(U),!p)return U;var ut,Y=d[0],q=g[0],ct=d[1],K=g[1];q0^U[1]<(Dn(U[0]-Y)kn^(Y<=U[0]&&U[0]<=q)){var St=ra(ot,(-$+pt)/tt);return gc(St,H),[U,na(St)]}}}function c(d,g){var p=r?t:kn-t,m=0;return d<-p?m|=1:d>p&&(m|=2),g<-p?m|=4:g>p&&(m|=8),m}return Gh(s,function u(d){var g,p,m,A,w;return{lineStart:function(){A=m=!1,w=1},point:function(b,T){var P,I=[b,T],C=s(b,T),F=r?C?0:c(b,T):C?c(b+(b<0?kn:-kn),T):0;if(!g&&(A=m=C)&&d.lineStart(),C!==m&&(!(P=l(g,I))||ha(g,P)||ha(I,P))&&(I[2]=1),C!==m)w=0,C?(d.lineStart(),P=l(I,g),d.point(P[0],P[1])):(P=l(g,I),d.point(P[0],P[1],2),d.lineEnd()),g=P;else if(i&&g&&r^C){var B;!(F&p)&&(B=l(I,g,!0))&&(w=0,r?(d.lineStart(),d.point(B[0][0],B[0][1]),d.point(B[1][0],B[1][1]),d.lineEnd()):(d.point(B[1][0],B[1][1]),d.lineEnd(),d.lineStart(),d.point(B[0][0],B[0][1],3)))}C&&(!g||!ha(g,I))&&d.point(I[0],I[1]),g=I,m=C,p=F},lineEnd:function(){m&&d.lineEnd(),g=null},clean:function(){return w|(A&&m)<<1}}},function o(d,g,p,m){Dh(m,t,e,p,d,g)},r?[0,-t]:[-kn,t-kn])}var Go=1e9,pa=-Go;function ga(t,n,e,r){function i(c,d){return t<=c&&c<=e&&n<=d&&d<=r}function o(c,d,g,p){var m=0,A=0;if(null==c||(m=s(c,g))!==(A=s(d,g))||l(c,d)<0^g>0)do{p.point(0===m||3===m?t:e,m>1?r:n)}while((m=(m+g+4)%4)!==A);else p.point(d[0],d[1])}function s(c,d){return Dn(c[0]-t)0?0:3:Dn(c[0]-e)0?2:1:Dn(c[1]-n)0?1:0:d>0?3:2}function u(c,d){return l(c.x,d.x)}function l(c,d){var g=s(c,1),p=s(d,1);return g!==p?g-p:0===g?d[1]-c[1]:1===g?c[0]-d[0]:2===g?c[1]-d[1]:d[0]-c[0]}return function(c){var p,m,A,w,b,T,I,P,C,F,B,d=c,g=Fh(),H={point:Q,lineStart:function st(){H.point=U,m&&m.push(A=[]),F=!0,C=!1,I=P=NaN},lineEnd:function pt(){p&&(U(w,b),T&&C&&g.rejoin(),p.push(g.result())),H.point=Q,C&&d.lineEnd()},polygonStart:function $(){d=g,p=[],m=[],B=!0},polygonEnd:function tt(){var Y=function ot(){for(var Y=0,q=0,ct=m.length;qr&&(_t-xt)*(r-St)>(It-St)*(t-xt)&&++Y:It<=r&&(_t-xt)*(r-St)<(It-St)*(t-xt)&&--Y;return Y}(),q=B&&Y,ct=(p=le(p)).length;(q||ct)&&(c.polygonStart(),q&&(c.lineStart(),o(null,null,1,c),c.lineEnd()),ct&&Bh(p,u,Y,o,c),c.polygonEnd()),d=c,p=m=A=null}};function Q(Y,q){i(Y,q)&&d.point(Y,q)}function U(Y,q){var ct=i(Y,q);if(m&&A.push([Y,q]),F)w=Y,b=q,T=ct,F=!1,ct&&(d.lineStart(),d.point(Y,q));else if(ct&&C)d.point(Y,q);else{var K=[I=Math.max(pa,Math.min(Go,I)),P=Math.max(pa,Math.min(Go,P))],ut=[Y=Math.max(pa,Math.min(Go,Y)),q=Math.max(pa,Math.min(Go,q))];!function $v(t,n,e,r,i,o){var A,s=t[0],u=t[1],d=0,g=1,p=n[0]-s,m=n[1]-u;if(A=e-s,p||!(A>0)){if(A/=p,p<0){if(A0){if(A>g)return;A>d&&(d=A)}if(A=i-s,p||!(A<0)){if(A/=p,p<0){if(A>g)return;A>d&&(d=A)}else if(p>0){if(A0)){if(A/=m,m<0){if(A0){if(A>g)return;A>d&&(d=A)}if(A=o-u,m||!(A<0)){if(A/=m,m<0){if(A>g)return;A>d&&(d=A)}else if(m>0){if(A0&&(t[0]=s+d*p,t[1]=u+d*m),g<1&&(n[0]=s+g*p,n[1]=u+g*m),!0}}}}}(K,ut,t,n,e,r)?ct&&(d.lineStart(),d.point(Y,q),B=!1):(C||(d.lineStart(),d.point(K[0],K[1])),d.point(ut[0],ut[1]),ct||d.lineEnd(),B=!1)}I=Y,P=q,C=ct}return H}}function Kv(){var i,o,s,t=0,n=0,e=960,r=500;return s={stream:function(u){return i&&o===u?i:i=ga(t,n,e,r)(o=u)},extent:function(u){return arguments.length?(t=+u[0][0],n=+u[0][1],e=+u[1][0],r=+u[1][1],i=o=null,s):[[t,n],[e,r]]}}}var Sc,Ac,ma,va,io={sphere:ne,point:ne,lineStart:function Qv(){io.point=qv,io.lineEnd=Jv},lineEnd:ne,polygonStart:ne,polygonEnd:ne};function Jv(){io.point=io.lineEnd=ne}function qv(t,n){Ac=t*=mn,ma=on(n*=mn),va=ln(n),io.point=t2}function t2(t,n){t*=mn;var e=on(n*=mn),r=ln(n),i=Dn(t-Ac),o=ln(i),u=r*on(i),l=va*e-ma*r*o,c=ma*e+va*r*o;Sc.add(Re(ve(u*u+l*l),c)),Ac=t,ma=e,va=r}function Vh(t){return Sc=new lt,dr(t,io),+Sc}var Cc=[null,null],n2={type:"LineString",coordinates:Cc};function ya(t,n){return Cc[0]=t,Cc[1]=n,Vh(n2)}var Hh={Feature:function(t,n){return ba(t.geometry,n)},FeatureCollection:function(t,n){for(var e=t.features,r=-1,i=e.length;++r0&&(i=ya(t[o],t[o-1]))>0&&e<=i&&r<=i&&(e+r-i)*(1-Math.pow((e-r)/i,2))gn}).map(p)).concat(We(Ks(o/c)*c,i,c).filter(function(P){return Dn(P%g)>gn}).map(m))}return T.lines=function(){return I().map(function(P){return{type:"LineString",coordinates:P}})},T.outline=function(){return{type:"Polygon",coordinates:[A(r).concat(w(s).slice(1),A(e).reverse().slice(1),w(u).reverse().slice(1))]}},T.extent=function(P){return arguments.length?T.extentMajor(P).extentMinor(P):T.extentMinor()},T.extentMajor=function(P){return arguments.length?(u=+P[0][1],s=+P[1][1],(r=+P[0][0])>(e=+P[1][0])&&(P=r,r=e,e=P),u>s&&(P=u,u=s,s=P),T.precision(b)):[[r,u],[e,s]]},T.extentMinor=function(P){return arguments.length?(o=+P[0][1],i=+P[1][1],(n=+P[0][0])>(t=+P[1][0])&&(P=n,n=t,t=P),o>i&&(P=o,o=i,i=P),T.precision(b)):[[n,o],[t,i]]},T.step=function(P){return arguments.length?T.stepMajor(P).stepMinor(P):T.stepMinor()},T.stepMajor=function(P){return arguments.length?(d=+P[0],g=+P[1],T):[d,g]},T.stepMinor=function(P){return arguments.length?(l=+P[0],c=+P[1],T):[l,c]},T.precision=function(P){return arguments.length?(b=+P,p=Qh(o,i,90),m=Jh(n,t,b),A=Qh(u,s,90),w=Jh(r,e,b),T):b},T.extentMajor([[-180,-90+gn],[180,90-gn]]).extentMinor([[-180,-80-gn],[180,80+gn]])}function i2(){return qh()()}function o2(t,n){var e=t[0]*mn,r=t[1]*mn,i=n[0]*mn,o=n[1]*mn,s=ln(r),u=on(r),l=ln(o),c=on(o),d=s*ln(e),g=s*on(e),p=l*ln(i),m=l*on(i),A=2*ze(ve(dh(o-r)+s*l*dh(i-e))),w=on(A),b=A?function(T){var I=on(T*=A)/w,P=on(A-T)/w,C=P*d+I*p,F=P*g+I*m,B=P*u+I*c;return[Re(F,C)*Wn,Re(B,ve(C*C+F*F))*Wn]}:function(){return[e*Wn,r*Wn]};return b.distance=A,b}const Yo=t=>t;var td,nd,Oc,kc,Pc=new lt,Nc=new lt,Hr={point:ne,lineStart:ne,lineEnd:ne,polygonStart:function(){Hr.lineStart=s2,Hr.lineEnd=u2},polygonEnd:function(){Hr.lineStart=Hr.lineEnd=Hr.point=ne,Pc.add(Dn(Nc)),Nc=new lt},result:function(){var t=Pc/2;return Pc=new lt,t}};function s2(){Hr.point=a2}function a2(t,n){Hr.point=ed,td=Oc=t,nd=kc=n}function ed(t,n){Nc.add(kc*t-Oc*n),Oc=t,kc=n}function u2(){ed(td,nd)}const rd=Hr;var oo=1/0,xa=oo,Vo=-oo,wa=Vo;const _a={point:function f2(t,n){tVo&&(Vo=t),nwa&&(wa=n)},lineStart:ne,lineEnd:ne,polygonStart:ne,polygonEnd:ne,result:function(){var t=[[oo,xa],[Vo,wa]];return Vo=wa=-(xa=oo=1/0),t}};var id,od,Mr,Er,Ic=0,Rc=0,Ho=0,Ma=0,Ea=0,so=0,zc=0,Dc=0,jo=0,gr={point:yi,lineStart:sd,lineEnd:ad,polygonStart:function(){gr.lineStart=d2,gr.lineEnd=p2},polygonEnd:function(){gr.point=yi,gr.lineStart=sd,gr.lineEnd=ad},result:function(){var t=jo?[zc/jo,Dc/jo]:so?[Ma/so,Ea/so]:Ho?[Ic/Ho,Rc/Ho]:[NaN,NaN];return Ic=Rc=Ho=Ma=Ea=so=zc=Dc=jo=0,t}};function yi(t,n){Ic+=t,Rc+=n,++Ho}function sd(){gr.point=l2}function l2(t,n){gr.point=h2,yi(Mr=t,Er=n)}function h2(t,n){var e=t-Mr,r=n-Er,i=ve(e*e+r*r);Ma+=i*(Mr+t)/2,Ea+=i*(Er+n)/2,so+=i,yi(Mr=t,Er=n)}function ad(){gr.point=yi}function d2(){gr.point=g2}function p2(){ud(id,od)}function g2(t,n){gr.point=ud,yi(id=Mr=t,od=Er=n)}function ud(t,n){var e=t-Mr,r=n-Er,i=ve(e*e+r*r);Ma+=i*(Mr+t)/2,Ea+=i*(Er+n)/2,so+=i,zc+=(i=Er*t-Mr*n)*(Mr+t),Dc+=i*(Er+n),jo+=3*i,yi(Mr=t,Er=n)}const cd=gr;function fd(t){this._context=t}fd.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._context.moveTo(t,n),this._point=1;break;case 1:this._context.lineTo(t,n);break;default:this._context.moveTo(t+this._radius,n),this._context.arc(t,n,this._radius,0,Ie)}},result:ne};var Fc,ld,hd,Wo,Xo,Lc=new lt,Ta={point:ne,lineStart:function(){Ta.point=m2},lineEnd:function(){Fc&&dd(ld,hd),Ta.point=ne},polygonStart:function(){Fc=!0},polygonEnd:function(){Fc=null},result:function(){var t=+Lc;return Lc=new lt,t}};function m2(t,n){Ta.point=dd,ld=Wo=t,hd=Xo=n}function dd(t,n){Lc.add(ve((Wo-=t)*Wo+(Xo-=n)*Xo)),Wo=t,Xo=n}const pd=Ta;function gd(){this._string=[]}function md(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function v2(t,n){var r,i,e=4.5;function o(s){return s&&("function"==typeof e&&i.pointRadius(+e.apply(this,arguments)),dr(s,r(i))),i.result()}return o.area=function(s){return dr(s,r(rd)),rd.result()},o.measure=function(s){return dr(s,r(pd)),pd.result()},o.bounds=function(s){return dr(s,r(_a)),_a.result()},o.centroid=function(s){return dr(s,r(cd)),cd.result()},o.projection=function(s){return arguments.length?(r=null==s?(t=null,Yo):(t=s).stream,o):t},o.context=function(s){return arguments.length?(i=null==s?(n=null,new gd):new fd(n=s),"function"!=typeof e&&i.pointRadius(e),o):n},o.pointRadius=function(s){return arguments.length?(e="function"==typeof s?s:(i.pointRadius(+s),+s),o):e},o.projection(t).context(n)}function y2(t){return{stream:$o(t)}}function $o(t){return function(n){var e=new Bc;for(var r in t)e[r]=t[r];return e.stream=n,e}}function Bc(){}function Uc(t,n,e){var r=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=r&&t.clipExtent(null),dr(e,t.stream(_a)),n(_a.result()),null!=r&&t.clipExtent(r),t}function Sa(t,n,e){return Uc(t,function(r){var i=n[1][0]-n[0][0],o=n[1][1]-n[0][1],s=Math.min(i/(r[1][0]-r[0][0]),o/(r[1][1]-r[0][1])),u=+n[0][0]+(i-s*(r[1][0]+r[0][0]))/2,l=+n[0][1]+(o-s*(r[1][1]+r[0][1]))/2;t.scale(150*s).translate([u,l])},e)}function Zc(t,n,e){return Sa(t,[[0,0],n],e)}function Gc(t,n,e){return Uc(t,function(r){var i=+n,o=i/(r[1][0]-r[0][0]),s=(i-o*(r[1][0]+r[0][0]))/2,u=-o*r[0][1];t.scale(150*o).translate([s,u])},e)}function Yc(t,n,e){return Uc(t,function(r){var i=+n,o=i/(r[1][1]-r[0][1]),s=-o*r[0][0],u=(i-o*(r[1][1]+r[0][1]))/2;t.scale(150*o).translate([s,u])},e)}gd.prototype={_radius:4.5,_circle:md(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,n){switch(this._point){case 0:this._string.push("M",t,",",n),this._point=1;break;case 1:this._string.push("L",t,",",n);break;default:null==this._circle&&(this._circle=md(this._radius)),this._string.push("M",t,",",n,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},Bc.prototype={constructor:Bc,point:function(t,n){this.stream.point(t,n)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var b2=ln(30*mn);function yd(t,n){return+n?function w2(t,n){function e(r,i,o,s,u,l,c,d,g,p,m,A,w,b){var T=c-r,I=d-i,P=T*T+I*I;if(P>4*n&&w--){var C=s+p,F=u+m,B=l+A,H=ve(C*C+F*F+B*B),Q=ze(B/=H),ot=Dn(Dn(B)-1)n||Dn((T*pt+I*U)/P-.5)>.3||s*p+u*m+l*A2?Y[2]%360*mn:0,pt()):[u*Wn,l*Wn,c*Wn]},tt.angle=function(Y){return arguments.length?(g=Y%360*mn,pt()):g*Wn},tt.reflectX=function(Y){return arguments.length?(p=Y?-1:1,pt()):p<0},tt.reflectY=function(Y){return arguments.length?(m=Y?-1:1,pt()):m<0},tt.precision=function(Y){return arguments.length?(B=yd(H,F=Y*Y),U()):ve(F)},tt.fitExtent=function(Y,q){return Sa(tt,Y,q)},tt.fitSize=function(Y,q){return Zc(tt,Y,q)},tt.fitWidth=function(Y,q){return Gc(tt,Y,q)},tt.fitHeight=function(Y,q){return Yc(tt,Y,q)},function(){return n=t.apply(this,arguments),tt.invert=n.invert&&st,pt()}}function Hc(t){var n=0,e=kn/3,r=Vc(t),i=r(n,e);return i.parallels=function(o){return arguments.length?r(n=o[0]*mn,e=o[1]*mn):[n*Wn,e*Wn]},i}function xd(t,n){var e=on(t),r=(e+on(n))/2;if(Dn(r)=.12&&b<.234&&w>=-.425&&w<-.214?i:b>=.166&&b<.234&&w>=-.214&&w<-.115?s:e).invert(p)},d.stream=function(p){return t&&n===p?t:t=function S2(t){var n=t.length;return{point:function(e,r){for(var i=-1;++i0?u<-re+gn&&(u=-re+gn):u>re-gn&&(u=re-gn);var l=i/cc(Ca(u),r);return[l*on(r*s),i-l*ln(r*s)]}return o.invert=function(s,u){var l=i-u,c=rr(r)*ve(s*s+l*l),d=Re(s,Dn(l))*rr(l);return l*r<0&&(d-=kn*rr(s)*rr(l)),[d/r,2*to(cc(i/c,1/r))-re]},o}function O2(){return Hc(Ed).scale(109.5).parallels([30,30])}function Jo(t,n){return[t,n]}function k2(){return Tr(Jo).scale(152.63)}function Td(t,n){var e=ln(t),r=t===n?on(t):(e-ln(n))/(n-t),i=e/r+t;if(Dn(r)2?r[2]+90:90]):[(r=e())[0],r[1],r[2]-90]},e([0,0,90]).scale(159.155)}function G2(t,n){return t.parent===n.parent?1:2}function V2(t,n){return t+n.x}function j2(t,n){return Math.max(t,n.y)}function $2(){var t=G2,n=1,e=1,r=!1;function i(o){var s,u=0;o.eachAfter(function(p){var m=p.children;m?(p.x=function Y2(t){return t.reduce(V2,0)/t.length}(m),p.y=function H2(t){return 1+t.reduce(j2,0)}(m)):(p.x=s?u+=t(p,s):0,p.y=0,s=p)});var l=function W2(t){for(var n;n=t.children;)t=n[0];return t}(o),c=function X2(t){for(var n;n=t.children;)t=n[n.length-1];return t}(o),d=l.x-t(l,c)/2,g=c.x+t(c,l)/2;return o.eachAfter(r?function(p){p.x=(p.x-o.x)*n,p.y=(o.y-p.y)*e}:function(p){p.x=(p.x-d)/(g-d)*n,p.y=(1-(o.y?p.y/o.y:1))*e})}return i.separation=function(o){return arguments.length?(t=o,i):t},i.size=function(o){return arguments.length?(r=!1,n=+o[0],e=+o[1],i):r?null:[n,e]},i.nodeSize=function(o){return arguments.length?(r=!0,n=+o[0],e=+o[1],i):r?[n,e]:null},i}function K2(t){var n=0,e=t.children,r=e&&e.length;if(r)for(;--r>=0;)n+=e[r].value;else n=1;t.value=n}function tf(t,n){t instanceof Map?(t=[void 0,t],void 0===n&&(n=dy)):void 0===n&&(n=hy);for(var r,o,s,u,l,e=new bi(t),i=[e];r=i.pop();)if((s=n(r.data))&&(l=(s=Array.from(s)).length))for(r.children=s,u=l-1;u>=0;--u)i.push(o=s[u]=new bi(s[u])),o.parent=r,o.depth=r.depth+1;return e.eachBefore(Sd)}function hy(t){return t.children}function dy(t){return Array.isArray(t)?t[1]:null}function py(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Sd(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function bi(t){this.data=t,this.depth=this.height=0,this.parent=null}function Na(t){return null==t?null:Ad(t)}function Ad(t){if("function"!=typeof t)throw new Error;return t}function xi(){return 0}function ao(t){return function(){return t}}Xc.invert=function(t,n){for(var s,e=n,r=e*e,i=r*r*r,o=0;o<12&&(i=(r=(e-=s=(e*(qo+ts*r+i*(ns+es*r))-n)/(qo+3*ts*r+i*(7*ns+9*es*r)))*e)*r*r,!(Dn(s)gn&&--r>0);return[t/(.8707+(o=e*e)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),e]},Qc.invert=Ko(ze),Jc.invert=Ko(function(t){return 2*to(t)}),qc.invert=function(t,n){return[-n,2*to(lh(t))-re]},bi.prototype=tf.prototype={constructor:bi,count:function Q2(){return this.eachAfter(K2)},each:function J2(t,n){let e=-1;for(const r of this)t.call(n,r,++e,this);return this},eachAfter:function ty(t,n){for(var o,s,u,e=this,r=[e],i=[],l=-1;e=r.pop();)if(i.push(e),o=e.children)for(s=0,u=o.length;s=0;--o)r.push(i[o]);return this},find:function ny(t,n){let e=-1;for(const r of this)if(t.call(n,r,++e,this))return r},sum:function ey(t){return this.eachAfter(function(n){for(var e=+t(n.data)||0,r=n.children,i=r&&r.length;--i>=0;)e+=r[i].value;n.value=e})},sort:function ry(t){return this.eachBefore(function(n){n.children&&n.children.sort(t)})},path:function iy(t){for(var n=this,e=function oy(t,n){if(t===n)return t;var e=t.ancestors(),r=n.ancestors(),i=null;for(t=e.pop(),n=r.pop();t===n;)i=t,t=e.pop(),n=r.pop();return i}(n,t),r=[n];n!==e;)r.push(n=n.parent);for(var i=r.length;t!==e;)r.splice(i,0,t),t=t.parent;return r},ancestors:function sy(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function ay(){return Array.from(this)},leaves:function uy(){var t=[];return this.eachBefore(function(n){n.children||t.push(n)}),t},links:function cy(){var t=this,n=[];return t.each(function(e){e!==t&&n.push({source:e.parent,target:e})}),n},copy:function ly(){return tf(this).eachBefore(py)},[Symbol.iterator]:function*fy(){var n,r,i,o,t=this,e=[t];do{for(n=e.reverse(),e=[];t=n.pop();)if(yield t,r=t.children)for(i=0,o=r.length;i(t=(1664525*t+1013904223)%Cd)/Cd}function by(t){return Pd(t,nf())}function Pd(t,n){for(var o,s,e=0,r=(t=function yy(t,n){let r,i,e=t.length;for(;e;)i=n()*e--|0,r=t[e],t[e]=t[i],t[i]=r;return t}(Array.from(t),n)).length,i=[];e0&&e*e>r*r+i*i}function ef(t,n){for(var e=0;e1e-6?(tt+Math.sqrt(tt*tt-4*$*st))/(2*$):st/tt);return{x:r+B+H*pt,y:i+Q+ot*pt,r:pt}}function kd(t,n,e){var i,o,u,l,r=t.x-n.x,s=t.y-n.y,c=r*r+s*s;c?(o=n.r+e.r,l=t.r+e.r,(o*=o)>(l*=l)?(i=(c+l-o)/(2*c),u=Math.sqrt(Math.max(0,l/c-i*i)),e.x=t.x-i*r-u*s,e.y=t.y-i*s+u*r):(i=(c+o-l)/(2*c),u=Math.sqrt(Math.max(0,o/c-i*i)),e.x=n.x+i*r-u*s,e.y=n.y+i*s+u*r)):(e.x=n.x+e.r,e.y=n.y)}function Id(t,n){var e=t.r+n.r-1e-6,r=n.x-t.x,i=n.y-t.y;return e>0&&e*e>r*r+i*i}function Rd(t){var n=t._,e=t.next._,r=n.r+e.r,i=(n.x*e.r+e.x*n.r)/r,o=(n.y*e.r+e.y*n.r)/r;return i*i+o*o}function ka(t){this._=t,this.next=null,this.previous=null}function zd(t,n){if(!(o=(t=function vy(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}(t)).length))return 0;var e,r,i,o,s,u,l,c,d,g,p;if((e=t[0]).x=0,e.y=0,!(o>1))return e.r;if(e.x=-(r=t[1]).r,r.x=e.r,r.y=0,!(o>2))return e.r+r.r;kd(r,e,i=t[2]),e=new ka(e),r=new ka(r),i=new ka(i),e.next=i.previous=r,r.next=e.previous=i,i.next=r.previous=e;t:for(l=3;lfunction Oy(t){let n=(t=`${t}`).length;return sf(t,n-1)&&!sf(t,n-2)&&(t=t.slice(0,-1)),"/"===t[0]?t:`/${t}`}(e(C,F,i))),I=T.map(Ud),P=new Set(T).add("");for(const C of I)P.has(C)||(P.add(C),T.push(C),I.push(Ud(C)),o.push(of));s=(C,F)=>T[F],u=(C,F)=>I[F]}for(d=0,l=o.length;d=0&&(m=o[T]).data===of;--T)m.data=null}if(g.parent=Ay,g.eachBefore(function(T){T.depth=T.parent.depth+1,--l}).eachBefore(Sd),g.parent=null,l>0)throw new Error("cycle");return g}return r.id=function(i){return arguments.length?(t=Na(i),r):t},r.parentId=function(i){return arguments.length?(n=Na(i),r):n},r.path=function(i){return arguments.length?(e=Na(i),r):e},r}function Ud(t){let n=t.length;if(n<2)return"";for(;--n>1&&!sf(t,n););return t.slice(0,n)}function sf(t,n){if("/"===t[n]){let e=0;for(;n>0&&"\\"===t[--n];)++e;if(0==(1&e))return!0}return!1}function ky(t,n){return t.parent===n.parent?1:2}function af(t){var n=t.children;return n?n[0]:t.t}function uf(t){var n=t.children;return n?n[n.length-1]:t.t}function Iy(t,n,e){var r=e/(n.i-t.i);n.c-=r,n.s+=e,t.c+=r,n.z+=e,n.m+=e}function zy(t,n,e){return t.a.parent===n.parent?t.a:e}function Ia(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}function Ly(){var t=ky,n=1,e=1,r=null;function i(c){var d=function Dy(t){for(var e,i,o,s,u,n=new Ia(t,0),r=[n];e=r.pop();)if(o=e._.children)for(e.children=new Array(u=o.length),s=u-1;s>=0;--s)r.push(i=e.children[s]=new Ia(o[s],s)),i.parent=e;return(n.parent=new Ia(null,0)).children=[n],n}(c);if(d.eachAfter(o),d.parent.m=-d.z,d.eachBefore(s),r)c.eachBefore(l);else{var g=c,p=c,m=c;c.eachBefore(function(I){I.xp.x&&(p=I),I.depth>m.depth&&(m=I)});var A=g===p?1:t(g,p)/2,w=A-g.x,b=n/(p.x+A+w),T=e/(m.depth||1);c.eachBefore(function(I){I.x=(I.x+w)*b,I.y=I.depth*T})}return c}function o(c){var d=c.children,g=c.parent.children,p=c.i?g[c.i-1]:null;if(d){!function Ry(t){for(var o,n=0,e=0,r=t.children,i=r.length;--i>=0;)(o=r[i]).z+=n,o.m+=n,n+=o.s+(e+=o.c)}(c);var m=(d[0].z+d[d.length-1].z)/2;p?(c.z=p.z+t(c._,p._),c.m=c.z-m):c.z=m}else p&&(c.z=p.z+t(c._,p._));c.parent.A=function u(c,d,g){if(d){for(var C,p=c,m=c,A=d,w=p.parent.children[0],b=p.m,T=m.m,I=A.m,P=w.m;A=uf(A),p=af(p),A&&p;)w=af(w),(m=uf(m)).a=c,(C=A.z+I-p.z-b+t(A._,p._))>0&&(Iy(zy(A,c,g),c,C),b+=C,T+=C),I+=A.m,b+=p.m,P+=w.m,T+=m.m;A&&!uf(m)&&(m.t=A,m.m+=I-T),p&&!af(w)&&(w.t=p,w.m+=b-P,g=c)}return g}(c,p,c.parent.A||g[0])}function s(c){c._.x=c.z+c.parent.m,c.m+=c.parent.m}function l(c){c.x*=n,c.y=c.depth*e}return i.separation=function(c){return arguments.length?(t=c,i):t},i.size=function(c){return arguments.length?(r=!1,n=+c[0],e=+c[1],i):r?null:[n,e]},i.nodeSize=function(c){return arguments.length?(r=!0,n=+c[0],e=+c[1],i):r?[n,e]:null},i}function Ra(t,n,e,r,i){for(var s,o=t.children,u=-1,l=o.length,c=t.value&&(i-e)/t.value;++uI&&(I=c),B=b*b*F,(P=Math.max(I/B,B/T))>C){b-=c;break}C=P}s.push(l={value:b,dice:m1?r:1)},e}(Zd);function Fy(){var t=Yd,n=!1,e=1,r=1,i=[0],o=xi,s=xi,u=xi,l=xi,c=xi;function d(p){return p.x0=p.y0=0,p.x1=e,p.y1=r,p.eachBefore(g),i=[0],n&&p.eachBefore(Fd),p}function g(p){var m=i[p.depth],A=p.x0+m,w=p.y0+m,b=p.x1-m,T=p.y1-m;b=p-1){var I=o[g];return I.x0=A,I.y0=w,I.x1=b,void(I.y1=T)}for(var P=c[g],C=m/2+P,F=g+1,B=p-1;F>>1;c[H]T-w){var $=m?(A*ot+b*Q)/m:b;d(g,F,Q,A,w,$,T),d(F,p,ot,$,w,b,T)}else{var tt=m?(w*ot+T*Q)/m:T;d(g,F,Q,A,w,b,tt),d(F,p,ot,A,tt,b,T)}}(0,u,t.value,n,e,r,i)}function Uy(t,n,e,r,i){(1&t.depth?Ra:is)(t,n,e,r,i)}const Zy=function t(n){function e(r,i,o,s,u){if((l=r._squarify)&&l.ratio===n)for(var l,c,d,g,m,p=-1,A=l.length,w=r.value;++p1?r:1)},e}(Zd);var Gy=a(90268),Yy=a(16712),Vy=a(68523),Hy=a(15629);function jy(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}var ce=a(35147);function Wy(t,n){var e=(0,ce.wx)(+t,+n);return function(r){var i=e(r);return i-360*Math.floor(i/360)}}var Vd=a(6738),Xy=a(62681),$y=a(84858);function za(t,n){return t=+t,n=+n,function(e){return Math.round(t*(1-e)+n*e)}}var Ky=a(23096),Hd=a(75349),Qy=a(76257),Da=a(86811);function jd(t){return function(n,e){var r=t((n=(0,he.Ym)(n)).h,(e=(0,he.Ym)(e)).h),i=(0,ce.ZP)(n.s,e.s),o=(0,ce.ZP)(n.l,e.l),s=(0,ce.ZP)(n.opacity,e.opacity);return function(u){return n.h=r(u),n.s=i(u),n.l=o(u),n.opacity=s(u),n+""}}}const Jy=jd(ce.wx);var qy=jd(ce.ZP);function tb(t,n){var e=(0,ce.ZP)((t=Ps(t)).l,(n=Ps(n)).l),r=(0,ce.ZP)(t.a,n.a),i=(0,ce.ZP)(t.b,n.b),o=(0,ce.ZP)(t.opacity,n.opacity);return function(s){return t.l=e(s),t.a=r(s),t.b=i(s),t.opacity=o(s),t+""}}function Wd(t){return function(n,e){var r=t((n=Ns(n)).h,(e=Ns(e)).h),i=(0,ce.ZP)(n.c,e.c),o=(0,ce.ZP)(n.l,e.l),s=(0,ce.ZP)(n.opacity,e.opacity);return function(u){return n.h=r(u),n.c=i(u),n.l=o(u),n.opacity=s(u),n+""}}}const nb=Wd(ce.wx);var eb=Wd(ce.ZP);function Xd(t){return function n(e){function r(i,o){var s=t((i=fr(i)).h,(o=fr(o)).h),u=(0,ce.ZP)(i.s,o.s),l=(0,ce.ZP)(i.l,o.l),c=(0,ce.ZP)(i.opacity,o.opacity);return function(d){return i.h=s(d),i.s=u(d),i.l=l(Math.pow(d,e)),i.opacity=c(d),i+""}}return e=+e,r.gamma=n,r}(1)}const rb=Xd(ce.wx);var La=Xd(ce.ZP);function $d(t,n){for(var e=0,r=n.length-1,i=n[0],o=new Array(r<0?0:r);e1&&ab(t[e[r-2]],t[e[r-1]],t[i])<=0;)--r;e[r++]=i}return e.slice(0,r)}function cb(t){if((e=t.length)<3)return null;var n,e,r=new Array(e),i=new Array(e);for(n=0;n=0;--n)c.push(t[r[o[n]][2]]);for(n=+u;no!=u>o&&i<(s-l)*(o-c)/(u-c)+l&&(d=!d),s=l,u=c;return d}function lb(t){for(var i,o,n=-1,e=t.length,r=t[e-1],s=r[0],u=r[1],l=0;++n1);return r+i*u*Math.sqrt(-2*Math.log(s)/s)}}return e.source=t,e}(we),pb=function t(n){var e=cf.source(n);function r(){var i=e.apply(this,arguments);return function(){return Math.exp(i())}}return r.source=t,r}(we),Qd=function t(n){function e(r){return(r=+r)<=0?()=>0:function(){for(var i=0,o=r;o>1;--o)i+=n();return i+o*n()}}return e.source=t,e}(we),gb=function t(n){var e=Qd.source(n);function r(i){if(0==(i=+i))return n;var o=e(i);return function(){return o()/i}}return r.source=t,r}(we),mb=function t(n){function e(r){return function(){return-Math.log1p(-n())/r}}return e.source=t,e}(we),vb=function t(n){function e(r){if((r=+r)<0)throw new RangeError("invalid alpha");return r=1/-r,function(){return Math.pow(1-n(),r)}}return e.source=t,e}(we),yb=function t(n){function e(r){if((r=+r)<0||r>1)throw new RangeError("invalid p");return function(){return Math.floor(n()+r)}}return e.source=t,e}(we),Jd=function t(n){function e(r){if((r=+r)<0||r>1)throw new RangeError("invalid p");return 0===r?()=>1/0:1===r?()=>1:(r=Math.log1p(-r),function(){return 1+Math.floor(Math.log1p(-n())/r)})}return e.source=t,e}(we),ff=function t(n){var e=cf.source(n)();function r(i,o){if((i=+i)<0)throw new RangeError("invalid k");if(0===i)return()=>0;if(o=null==o?1:+o,1===i)return()=>-Math.log1p(-n())*o;var s=(i<1?i+1:i)-1/3,u=1/(3*Math.sqrt(s)),l=i<1?()=>Math.pow(n(),1/i):()=>1;return function(){do{do{var c=e(),d=1+u*c}while(d<=0);d*=d*d;var g=1-n()}while(g>=1-.0331*c*c*c*c&&Math.log(g)>=.5*c*c+s*(1-d+Math.log(d)));return s*d*l()*o}}return r.source=t,r}(we),qd=function t(n){var e=ff.source(n);function r(i,o){var s=e(i),u=e(o);return function(){var l=s();return 0===l?0:l/(l+u())}}return r.source=t,r}(we),t0=function t(n){var e=Jd.source(n),r=qd.source(n);function i(o,s){return o=+o,(s=+s)>=1?()=>o:s<=0?()=>0:function(){for(var u=0,l=o,c=s;l*c>16&&l*(1-c)>16;){var d=Math.floor((l+1)*c),g=r(d,l-d+1)();g<=c?(u+=d,l-=d,c=(c-g)/(1-g)):(l=d-1,c/=g)}for(var p=c<.5,A=e(p?c:1-c),w=A(),b=0;w<=l;++b)w+=A();return u+(p?b:l-b)}}return i.source=t,i}(we),bb=function t(n){function e(r,i,o){var s;return 0==(r=+r)?s=u=>-Math.log(u):(r=1/r,s=u=>Math.pow(u,r)),i=null==i?0:+i,o=null==o?1:+o,function(){return i+o*s(-Math.log1p(-n()))}}return e.source=t,e}(we),xb=function t(n){function e(r,i){return r=null==r?0:+r,i=null==i?1:+i,function(){return r+i*Math.tan(Math.PI*n())}}return e.source=t,e}(we),wb=function t(n){function e(r,i){return r=null==r?0:+r,i=null==i?1:+i,function(){var o=n();return r+i*Math.log(o/(1-o))}}return e.source=t,e}(we),_b=function t(n){var e=ff.source(n),r=t0.source(n);function i(o){return function(){for(var s=0,u=o;u>16;){var l=Math.floor(.875*u),c=e(l)();if(c>u)return s+r(l-1,u/c)();s+=l,u-=c}for(var d=-Math.log1p(-n()),g=0;d<=u;++g)d-=Math.log1p(-n());return s+g}}return i.source=t,i}(we),n0=1/4294967296;function Tb(t=Math.random()){let n=0|(0<=t&&t<1?t/n0:Math.abs(t));return()=>(n=1664525*n+1013904223|0,n0*(n>>>0))}function ir(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}function kr(t,n){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof n?this.interpolator(n):this.range(n)}return this}const lf=Symbol("implicit");function hf(){var t=new Pt,n=[],e=[],r=lf;function i(o){let s=t.get(o);if(void 0===s){if(r!==lf)return r;t.set(o,s=n.push(o)-1)}return e[s%e.length]}return i.domain=function(o){if(!arguments.length)return n.slice();n=[],t=new Pt;for(const s of o)t.has(s)||t.set(s,n.push(s)-1);return i},i.range=function(o){return arguments.length?(e=Array.from(o),i):e.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return hf(n,e).unknown(r)},ir.apply(i,arguments),i}function df(){var o,s,t=hf().unknown(void 0),n=t.domain,e=t.range,r=0,i=1,u=!1,l=0,c=0,d=.5;function g(){var p=n().length,m=in&&(e=t,t=n,n=e),function(r){return Math.max(t,Math.min(n,r))}}(t[0],t[p-1])),u=p>2?Nb:Pb,l=c=null,g}function g(p){return null==p||isNaN(p=+p)?o:(l||(l=u(t.map(r),n,e)))(r(s(p)))}return g.invert=function(p){return s(i((c||(c=u(n,t.map(r),Vd.Z)))(p)))},g.domain=function(p){return arguments.length?(t=Array.from(p,Fa),d()):t.slice()},g.range=function(p){return arguments.length?(n=Array.from(p),d()):n.slice()},g.rangeRound=function(p){return n=Array.from(p),e=za,d()},g.clamp=function(p){return arguments.length?(s=!!p||Be,d()):s!==Be},g.interpolate=function(p){return arguments.length?(e=p,d()):e},g.unknown=function(p){return arguments.length?(o=p,g):o},function(p,m){return r=p,i=m,d()}}function gf(){return Ba()(Be,Be)}function i0(t,n,e,r){var o,i=xn(t,n,e);switch((r=(0,Xs.Z)(r??",f")).type){case"s":var s=Math.max(Math.abs(t),Math.abs(n));return null==r.precision&&!isNaN(o=ch(i,s))&&(r.precision=o),(0,qi.jH)(r,s);case"":case"e":case"g":case"p":case"r":null==r.precision&&!isNaN(o=fh(i,Math.max(Math.abs(t),Math.abs(n))))&&(r.precision=o-("e"===r.type));break;case"f":case"%":null==r.precision&&!isNaN(o=uh(i))&&(r.precision=o-2*("%"===r.type))}return(0,qi.WU)(r)}function jr(t){var n=t.domain;return t.ticks=function(e){var r=n();return cn(r[0],r[r.length-1],e??10)},t.tickFormat=function(e,r){var i=n();return i0(i[0],i[i.length-1],e??10,r)},t.nice=function(e){null==e&&(e=10);var l,c,r=n(),i=0,o=r.length-1,s=r[i],u=r[o],d=10;for(u0;){if((c=hn(s,u,e))===l)return r[i]=s,r[o]=u,n(r);if(c>0)s=Math.floor(s/c)*c,u=Math.ceil(u/c)*c;else{if(!(c<0))break;s=Math.ceil(s*c)/c,u=Math.floor(u*c)/c}l=c}return t},t}function o0(){var t=gf();return t.copy=function(){return os(t,o0())},ir.apply(t,arguments),jr(t)}function s0(t){var n;function e(r){return null==r||isNaN(r=+r)?n:r}return e.invert=e,e.domain=e.range=function(r){return arguments.length?(t=Array.from(r,Fa),e):t.slice()},e.unknown=function(r){return arguments.length?(n=r,e):n},e.copy=function(){return s0(t).unknown(n)},t=arguments.length?Array.from(t,Fa):[0,1],jr(e)}function a0(t,n){var s,e=0,r=(t=t.slice()).length-1,i=t[e],o=t[r];return o-t(-n,e)}function mf(t){const n=t(u0,c0),e=n.domain;let i,o,r=10;function s(){return i=function zb(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),n=>Math.log(n)/t)}(r),o=function Rb(t){return 10===t?Ib:t===Math.E?Math.exp:n=>Math.pow(t,n)}(r),e()[0]<0?(i=f0(i),o=f0(o),t(Ob,kb)):t(u0,c0),n}return n.base=function(u){return arguments.length?(r=+u,s()):r},n.domain=function(u){return arguments.length?(e(u),s()):e()},n.ticks=u=>{const l=e();let c=l[0],d=l[l.length-1];const g=d0){for(;p<=m;++p)for(A=1;Ad)break;T.push(w)}}else for(;p<=m;++p)for(A=r-1;A>=1;--A)if(w=p>0?A/o(-p):A*o(p),!(wd)break;T.push(w)}2*T.length{if(null==u&&(u=10),null==l&&(l=10===r?"s":","),"function"!=typeof l&&(!(r%1)&&null==(l=(0,Xs.Z)(l)).precision&&(l.trim=!0),l=(0,qi.WU)(l)),u===1/0)return l;const c=Math.max(1,r*u/n.ticks().length);return d=>{let g=d/o(Math.round(i(d)));return g*re(a0(e(),{floor:u=>o(Math.floor(i(u))),ceil:u=>o(Math.ceil(i(u)))})),n}function l0(){const t=mf(Ba()).domain([1,10]);return t.copy=()=>os(t,l0()).base(t.base()),ir.apply(t,arguments),t}function h0(t){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/t))}}function d0(t){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*t}}function vf(t){var n=1,e=t(h0(n),d0(n));return e.constant=function(r){return arguments.length?t(h0(n=+r),d0(n)):n},jr(e)}function p0(){var t=vf(Ba());return t.copy=function(){return os(t,p0()).constant(t.constant())},ir.apply(t,arguments)}function g0(t){return function(n){return n<0?-Math.pow(-n,t):Math.pow(n,t)}}function Db(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Lb(t){return t<0?-t*t:t*t}function yf(t){var n=t(Be,Be),e=1;function r(){return 1===e?t(Be,Be):.5===e?t(Db,Lb):t(g0(e),g0(1/e))}return n.exponent=function(i){return arguments.length?(e=+i,r()):e},jr(n)}function bf(){var t=yf(Ba());return t.copy=function(){return os(t,bf()).exponent(t.exponent())},ir.apply(t,arguments),t}function Fb(){return bf.apply(null,arguments).exponent(.5)}function m0(t){return Math.sign(t)*t*t}function Bb(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function v0(){var r,t=gf(),n=[0,1],e=!1;function i(o){var s=Bb(t(o));return isNaN(s)?r:e?Math.round(s):s}return i.invert=function(o){return t.invert(m0(o))},i.domain=function(o){return arguments.length?(t.domain(o),i):t.domain()},i.range=function(o){return arguments.length?(t.range((n=Array.from(o,Fa)).map(m0)),i):n.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(e=!!o,i):e},i.clamp=function(o){return arguments.length?(t.clamp(o),i):t.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return v0(t.domain(),n).round(e).clamp(t.clamp()).unknown(r)},ir.apply(i,arguments),jr(i)}function y0(){var r,t=[],n=[],e=[];function i(){var s=0,u=Math.max(1,n.length);for(e=new Array(u-1);++s0?e[u-1]:t[0],u=e?[r[e-1],n]:[r[c-1],r[c]]},s.unknown=function(l){return arguments.length&&(o=l),s},s.thresholds=function(){return r.slice()},s.copy=function(){return b0().domain([t,n]).range(i).unknown(o)},ir.apply(jr(s),arguments)}function x0(){var e,t=[.5],n=[0,1],r=1;function i(o){return null!=o&&o<=o?n[O(t,o,0,r)]:e}return i.domain=function(o){return arguments.length?(t=Array.from(o),r=Math.min(t.length,n.length-1),i):t.slice()},i.range=function(o){return arguments.length?(n=Array.from(o),r=Math.min(t.length,n.length-1),i):n.slice()},i.invertExtent=function(o){var s=n.indexOf(o);return[t[s-1],t[s]]},i.unknown=function(o){return arguments.length?(e=o,i):e},i.copy=function(){return x0().domain(t).range(n).unknown(e)},ir.apply(i,arguments)}const Ir=1e3,or=6e4,Rr=60*or,wi=24*Rr,xf=7*wi,w0=30*wi,wf=365*wi;var _f=new Date,Mf=new Date;function ge(t,n,e,r){function i(o){return t(o=0===arguments.length?new Date:new Date(+o)),o}return i.floor=function(o){return t(o=new Date(+o)),o},i.ceil=function(o){return t(o=new Date(o-1)),n(o,1),t(o),o},i.round=function(o){var s=i(o),u=i.ceil(o);return o-s0))return l;do{l.push(c=new Date(+o)),n(o,u),t(o)}while(c=s)for(;t(s),!o(s);)s.setTime(s-1)},function(s,u){if(s>=s)if(u<0)for(;++u<=0;)for(;n(s,-1),!o(s););else for(;--u>=0;)for(;n(s,1),!o(s););})},e&&(i.count=function(o,s){return _f.setTime(+o),Mf.setTime(+s),t(_f),t(Mf),Math.floor(e(_f,Mf))},i.every=function(o){return o=Math.floor(o),isFinite(o)&&o>0?o>1?i.filter(r?function(s){return r(s)%o==0}:function(s){return i.count(0,s)%o==0}):i:null}),i}var Ua=ge(function(){},function(t,n){t.setTime(+t+n)},function(t,n){return n-t});Ua.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?ge(function(n){n.setTime(Math.floor(n/t)*t)},function(n,e){n.setTime(+n+e*t)},function(n,e){return(e-n)/t}):Ua:null};const Ef=Ua;var _0=Ua.range,M0=ge(function(t){t.setTime(t-t.getMilliseconds())},function(t,n){t.setTime(+t+n*Ir)},function(t,n){return(n-t)/Ir},function(t){return t.getUTCSeconds()});const Wr=M0;var E0=M0.range,T0=ge(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ir)},function(t,n){t.setTime(+t+n*or)},function(t,n){return(n-t)/or},function(t){return t.getMinutes()});const Tf=T0;var Ub=T0.range,S0=ge(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ir-t.getMinutes()*or)},function(t,n){t.setTime(+t+n*Rr)},function(t,n){return(n-t)/Rr},function(t){return t.getHours()});const Sf=S0;var Zb=S0.range,A0=ge(t=>t.setHours(0,0,0,0),(t,n)=>t.setDate(t.getDate()+n),(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*or)/wi,t=>t.getDate()-1);const ss=A0;var Gb=A0.range;function _i(t){return ge(function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)},function(n,e){n.setDate(n.getDate()+7*e)},function(n,e){return(e-n-(e.getTimezoneOffset()-n.getTimezoneOffset())*or)/xf})}var uo=_i(0),as=_i(1),C0=_i(2),P0=_i(3),Mi=_i(4),N0=_i(5),O0=_i(6),k0=uo.range,Yb=as.range,Vb=C0.range,Hb=P0.range,jb=Mi.range,Wb=N0.range,Xb=O0.range,I0=ge(function(t){t.setDate(1),t.setHours(0,0,0,0)},function(t,n){t.setMonth(t.getMonth()+n)},function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())},function(t){return t.getMonth()});const Af=I0;var $b=I0.range,Cf=ge(function(t){t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n)},function(t,n){return n.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Cf.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ge(function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)},function(n,e){n.setFullYear(n.getFullYear()+e*t)}):null};const Xr=Cf;var Kb=Cf.range,R0=ge(function(t){t.setUTCSeconds(0,0)},function(t,n){t.setTime(+t+n*or)},function(t,n){return(n-t)/or},function(t){return t.getUTCMinutes()});const Pf=R0;var Qb=R0.range,z0=ge(function(t){t.setUTCMinutes(0,0,0)},function(t,n){t.setTime(+t+n*Rr)},function(t,n){return(n-t)/Rr},function(t){return t.getUTCHours()});const Nf=z0;var Jb=z0.range,D0=ge(function(t){t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCDate(t.getUTCDate()+n)},function(t,n){return(n-t)/wi},function(t){return t.getUTCDate()-1});const us=D0;var qb=D0.range;function Ei(t){return ge(function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCDate(n.getUTCDate()+7*e)},function(n,e){return(e-n)/xf})}var co=Ei(0),cs=Ei(1),L0=Ei(2),F0=Ei(3),Ti=Ei(4),B0=Ei(5),U0=Ei(6),Z0=co.range,t3=cs.range,n3=L0.range,e3=F0.range,r3=Ti.range,i3=B0.range,o3=U0.range,G0=ge(function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCMonth(t.getUTCMonth()+n)},function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())},function(t){return t.getUTCMonth()});const Of=G0;var s3=G0.range,kf=ge(function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)},function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});kf.every=function(t){return isFinite(t=Math.floor(t))&&t>0?ge(function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},function(n,e){n.setUTCFullYear(n.getUTCFullYear()+e*t)}):null};const $r=kf;var a3=kf.range;function Y0(t,n,e,r,i,o){const s=[[Wr,1,Ir],[Wr,5,5e3],[Wr,15,15e3],[Wr,30,3e4],[o,1,or],[o,5,5*or],[o,15,15*or],[o,30,30*or],[i,1,Rr],[i,3,3*Rr],[i,6,6*Rr],[i,12,12*Rr],[r,1,wi],[r,2,2*wi],[e,1,xf],[n,1,w0],[n,3,3*w0],[t,1,wf]];function l(c,d,g){const p=Math.abs(d-c)/g,m=y(([,,b])=>b).right(s,p);if(m===s.length)return t.every(xn(c/wf,d/wf,g));if(0===m)return Ef.every(Math.max(xn(c,d,g),1));const[A,w]=s[p/s[m-1][2]=12)]},q:function xt(kt){return 1+~~(kt.getMonth()/3)},Q:ap,s:up,S:I3,u:R3,U:z3,V:D3,w:L3,W:F3,x:null,X:null,y:B3,Y:Z3,Z:Y3,"%":sp},C={a:function St(kt){return s[kt.getUTCDay()]},A:function _t(kt){return o[kt.getUTCDay()]},b:function It(kt){return l[kt.getUTCMonth()]},B:function Ht(kt){return u[kt.getUTCMonth()]},c:null,d:rp,e:rp,f:W3,g:r6,G:o6,H:V3,I:H3,j:j3,L:ip,m:X3,M:$3,p:function Dt(kt){return i[+(kt.getUTCHours()>=12)]},q:function qt(kt){return 1+~~(kt.getUTCMonth()/3)},Q:ap,s:up,S:K3,u:Q3,U:J3,V:q3,w:t6,W:n6,x:null,X:null,y:e6,Y:i6,Z:s6,"%":sp},F={a:function $(kt,Ut,Yt){var Et=m.exec(Ut.slice(Yt));return Et?(kt.w=A.get(Et[0].toLowerCase()),Yt+Et[0].length):-1},A:function tt(kt,Ut,Yt){var Et=g.exec(Ut.slice(Yt));return Et?(kt.w=p.get(Et[0].toLowerCase()),Yt+Et[0].length):-1},b:function st(kt,Ut,Yt){var Et=T.exec(Ut.slice(Yt));return Et?(kt.m=I.get(Et[0].toLowerCase()),Yt+Et[0].length):-1},B:function pt(kt,Ut,Yt){var Et=w.exec(Ut.slice(Yt));return Et?(kt.m=b.get(Et[0].toLowerCase()),Yt+Et[0].length):-1},c:function U(kt,Ut,Yt){return Q(kt,n,Ut,Yt)},d:J0,e:J0,f:M3,g:Q0,G:K0,H:q0,I:q0,j:b3,L:_3,m:y3,M:x3,p:function ot(kt,Ut,Yt){var Et=c.exec(Ut.slice(Yt));return Et?(kt.p=d.get(Et[0].toLowerCase()),Yt+Et[0].length):-1},q:v3,Q:T3,s:S3,S:w3,u:h3,U:d3,V:p3,w:l3,W:g3,x:function Y(kt,Ut,Yt){return Q(kt,e,Ut,Yt)},X:function q(kt,Ut,Yt){return Q(kt,r,Ut,Yt)},y:Q0,Y:K0,Z:m3,"%":E3};function B(kt,Ut){return function(Yt){var fn,$t,yn,Et=[],tn=-1,sn=0,wn=kt.length;for(Yt instanceof Date||(Yt=new Date(+Yt));++tn53)return null;"w"in Et||(Et.w=1),"Z"in Et?(wn=(sn=Rf(fs(Et.y,0,1))).getUTCDay(),sn=wn>4||0===wn?cs.ceil(sn):cs(sn),sn=us.offset(sn,7*(Et.V-1)),Et.y=sn.getUTCFullYear(),Et.m=sn.getUTCMonth(),Et.d=sn.getUTCDate()+(Et.w+6)%7):(wn=(sn=If(fs(Et.y,0,1))).getDay(),sn=wn>4||0===wn?as.ceil(sn):as(sn),sn=ss.offset(sn,7*(Et.V-1)),Et.y=sn.getFullYear(),Et.m=sn.getMonth(),Et.d=sn.getDate()+(Et.w+6)%7)}else("W"in Et||"U"in Et)&&("w"in Et||(Et.w="u"in Et?Et.u%7:"W"in Et?1:0),wn="Z"in Et?Rf(fs(Et.y,0,1)).getUTCDay():If(fs(Et.y,0,1)).getDay(),Et.m=0,Et.d="W"in Et?(Et.w+6)%7+7*Et.W-(wn+5)%7:Et.w+7*Et.U-(wn+6)%7);return"Z"in Et?(Et.H+=Et.Z/100|0,Et.M+=Et.Z%100,Rf(Et)):If(Et)}}function Q(kt,Ut,Yt,Et){for(var fn,$t,tn=0,sn=Ut.length,wn=Yt.length;tn=wn)return-1;if(37===(fn=Ut.charCodeAt(tn++))){if(fn=Ut.charAt(tn++),!($t=F[fn in $0?Ut.charAt(tn++):fn])||(Et=$t(kt,Yt,Et))<0)return-1}else if(fn!=Yt.charCodeAt(Et++))return-1}return Et}return P.x=B(e,P),P.X=B(r,P),P.c=B(n,P),C.x=B(e,C),C.X=B(r,C),C.c=B(n,C),{format:function(kt){var Ut=B(kt+="",P);return Ut.toString=function(){return kt},Ut},parse:function(kt){var Ut=H(kt+="",!1);return Ut.toString=function(){return kt},Ut},utcFormat:function(kt){var Ut=B(kt+="",C);return Ut.toString=function(){return kt},Ut},utcParse:function(kt){var Ut=H(kt+="",!0);return Ut.toString=function(){return kt},Ut}}}var fo,zf,cp,Za,Df,$0={"-":"",_:" ",0:"0"},ye=/^\s*\d+/,u3=/^%/,c3=/[\\^$*+?|[\]().{}]/g;function Un(t,n,e){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o[n.toLowerCase(),e]))}function l3(t,n,e){var r=ye.exec(n.slice(e,e+1));return r?(t.w=+r[0],e+r[0].length):-1}function h3(t,n,e){var r=ye.exec(n.slice(e,e+1));return r?(t.u=+r[0],e+r[0].length):-1}function d3(t,n,e){var r=ye.exec(n.slice(e,e+2));return r?(t.U=+r[0],e+r[0].length):-1}function p3(t,n,e){var r=ye.exec(n.slice(e,e+2));return r?(t.V=+r[0],e+r[0].length):-1}function g3(t,n,e){var r=ye.exec(n.slice(e,e+2));return r?(t.W=+r[0],e+r[0].length):-1}function K0(t,n,e){var r=ye.exec(n.slice(e,e+4));return r?(t.y=+r[0],e+r[0].length):-1}function Q0(t,n,e){var r=ye.exec(n.slice(e,e+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),e+r[0].length):-1}function m3(t,n,e){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(e,e+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),e+r[0].length):-1}function v3(t,n,e){var r=ye.exec(n.slice(e,e+1));return r?(t.q=3*r[0]-3,e+r[0].length):-1}function y3(t,n,e){var r=ye.exec(n.slice(e,e+2));return r?(t.m=r[0]-1,e+r[0].length):-1}function J0(t,n,e){var r=ye.exec(n.slice(e,e+2));return r?(t.d=+r[0],e+r[0].length):-1}function b3(t,n,e){var r=ye.exec(n.slice(e,e+3));return r?(t.m=0,t.d=+r[0],e+r[0].length):-1}function q0(t,n,e){var r=ye.exec(n.slice(e,e+2));return r?(t.H=+r[0],e+r[0].length):-1}function x3(t,n,e){var r=ye.exec(n.slice(e,e+2));return r?(t.M=+r[0],e+r[0].length):-1}function w3(t,n,e){var r=ye.exec(n.slice(e,e+2));return r?(t.S=+r[0],e+r[0].length):-1}function _3(t,n,e){var r=ye.exec(n.slice(e,e+3));return r?(t.L=+r[0],e+r[0].length):-1}function M3(t,n,e){var r=ye.exec(n.slice(e,e+6));return r?(t.L=Math.floor(r[0]/1e3),e+r[0].length):-1}function E3(t,n,e){var r=u3.exec(n.slice(e,e+1));return r?e+r[0].length:-1}function T3(t,n,e){var r=ye.exec(n.slice(e));return r?(t.Q=+r[0],e+r[0].length):-1}function S3(t,n,e){var r=ye.exec(n.slice(e));return r?(t.s=+r[0],e+r[0].length):-1}function tp(t,n){return Un(t.getDate(),n,2)}function A3(t,n){return Un(t.getHours(),n,2)}function C3(t,n){return Un(t.getHours()%12||12,n,2)}function P3(t,n){return Un(1+ss.count(Xr(t),t),n,3)}function np(t,n){return Un(t.getMilliseconds(),n,3)}function N3(t,n){return np(t,n)+"000"}function O3(t,n){return Un(t.getMonth()+1,n,2)}function k3(t,n){return Un(t.getMinutes(),n,2)}function I3(t,n){return Un(t.getSeconds(),n,2)}function R3(t){var n=t.getDay();return 0===n?7:n}function z3(t,n){return Un(uo.count(Xr(t)-1,t),n,2)}function ep(t){var n=t.getDay();return n>=4||0===n?Mi(t):Mi.ceil(t)}function D3(t,n){return t=ep(t),Un(Mi.count(Xr(t),t)+(4===Xr(t).getDay()),n,2)}function L3(t){return t.getDay()}function F3(t,n){return Un(as.count(Xr(t)-1,t),n,2)}function B3(t,n){return Un(t.getFullYear()%100,n,2)}function U3(t,n){return Un((t=ep(t)).getFullYear()%100,n,2)}function Z3(t,n){return Un(t.getFullYear()%1e4,n,4)}function G3(t,n){var e=t.getDay();return Un((t=e>=4||0===e?Mi(t):Mi.ceil(t)).getFullYear()%1e4,n,4)}function Y3(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Un(n/60|0,"0",2)+Un(n%60,"0",2)}function rp(t,n){return Un(t.getUTCDate(),n,2)}function V3(t,n){return Un(t.getUTCHours(),n,2)}function H3(t,n){return Un(t.getUTCHours()%12||12,n,2)}function j3(t,n){return Un(1+us.count($r(t),t),n,3)}function ip(t,n){return Un(t.getUTCMilliseconds(),n,3)}function W3(t,n){return ip(t,n)+"000"}function X3(t,n){return Un(t.getUTCMonth()+1,n,2)}function $3(t,n){return Un(t.getUTCMinutes(),n,2)}function K3(t,n){return Un(t.getUTCSeconds(),n,2)}function Q3(t){var n=t.getUTCDay();return 0===n?7:n}function J3(t,n){return Un(co.count($r(t)-1,t),n,2)}function op(t){var n=t.getUTCDay();return n>=4||0===n?Ti(t):Ti.ceil(t)}function q3(t,n){return t=op(t),Un(Ti.count($r(t),t)+(4===$r(t).getUTCDay()),n,2)}function t6(t){return t.getUTCDay()}function n6(t,n){return Un(cs.count($r(t)-1,t),n,2)}function e6(t,n){return Un(t.getUTCFullYear()%100,n,2)}function r6(t,n){return Un((t=op(t)).getUTCFullYear()%100,n,2)}function i6(t,n){return Un(t.getUTCFullYear()%1e4,n,4)}function o6(t,n){var e=t.getUTCDay();return Un((t=e>=4||0===e?Ti(t):Ti.ceil(t)).getUTCFullYear()%1e4,n,4)}function s6(){return"+0000"}function sp(){return"%"}function ap(t){return+t}function up(t){return Math.floor(+t/1e3)}function fp(t){return fo=X0(t),zf=fo.format,cp=fo.parse,Za=fo.utcFormat,Df=fo.utcParse,fo}function a6(t){return new Date(t)}function u6(t){return t instanceof Date?+t:+new Date(+t)}function Lf(t,n,e,r,i,o,s,u,l,c){var d=gf(),g=d.invert,p=d.domain,m=c(".%L"),A=c(":%S"),w=c("%I:%M"),b=c("%I %p"),T=c("%a %d"),I=c("%b %d"),P=c("%B"),C=c("%Y");function F(B){return(l(B)n(i/(t.length-1)))},e.quantiles=function(r){return Array.from({length:r+1},(i,o)=>dt(t,o/r))},e.copy=function(){return pp(n).domain(t)},kr.apply(e,arguments)}function Ya(){var i,o,s,u,l,d,p,t=0,n=.5,e=1,r=1,c=Be,g=!1;function m(w){return isNaN(w=+w)?p:(w=.5+((w=+d(w))-o)*(r*w(0,Da.hD)(t[t.length-1]);var yp=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Cn);const M6=Xn(yp);var bp=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Cn);const E6=Xn(bp);var xp=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Cn);const T6=Xn(xp);var wp=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Cn);const S6=Xn(wp);var _p=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Cn);const A6=Xn(_p);var Mp=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Cn);const C6=Xn(Mp);var Ep=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Cn);const P6=Xn(Ep);var Tp=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Cn);const N6=Xn(Tp);var Sp=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Cn);const O6=Xn(Sp);var Ap=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Cn);const k6=Xn(Ap);var Cp=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Cn);const I6=Xn(Cp);var Pp=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Cn);const R6=Xn(Pp);var Np=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Cn);const z6=Xn(Np);var Op=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Cn);const D6=Xn(Op);var kp=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Cn);const L6=Xn(kp);var Ip=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Cn);const F6=Xn(Ip);var Rp=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Cn);const B6=Xn(Rp);var zp=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Cn);const U6=Xn(zp);var Dp=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Cn);const Z6=Xn(Dp);var Lp=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Cn);const G6=Xn(Lp);var Fp=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Cn);const Y6=Xn(Fp);var Bp=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Cn);const V6=Xn(Bp);var Up=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Cn);const H6=Xn(Up);var Zp=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Cn);const j6=Xn(Zp);var Gp=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Cn);const W6=Xn(Gp);var Yp=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Cn);const X6=Xn(Yp);var Vp=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Cn);const $6=Xn(Vp);function K6(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-t*(35.34-t*(2381.73-t*(6402.7-t*(7024.72-2710.57*t)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+t*(170.73+t*(52.82-t*(131.46-t*(176.58-67.37*t)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+t*(442.36-t*(2482.43-t*(6167.24-t*(6614.94-2475.67*t)))))))+")"}const Q6=La(fr(300,.5,0),fr(-240,.5,1));var J6=La(fr(-100,.75,.35),fr(80,1.5,.8)),q6=La(fr(260,.75,.35),fr(80,1.5,.8)),Va=fr();function t5(t){(t<0||t>1)&&(t-=Math.floor(t));var n=Math.abs(t-.5);return Va.h=360*t-100,Va.s=1.5-1.5*n,Va.l=.8-.9*n,Va+""}var Ha=(0,he.B8)(),n5=Math.PI/3,e5=2*Math.PI/3;function r5(t){var n;return t=(.5-t)*Math.PI,Ha.r=255*(n=Math.sin(t))*n,Ha.g=255*(n=Math.sin(t+n5))*n,Ha.b=255*(n=Math.sin(t+e5))*n,Ha+""}function i5(t){return t=Math.max(0,Math.min(1,t)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+t*(1172.33-t*(10793.56-t*(33300.12-t*(38394.49-14825.05*t)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+t*(557.33+t*(1225.33-t*(3574.96-t*(1073.77+707.56*t)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+t*(3211.1-t*(15327.97-t*(27814-t*(22569.18-6838.66*t)))))))+")"}function ja(t){var n=t.length;return function(e){return t[Math.max(0,Math.min(n-1,Math.floor(e*n)))]}}const o5=ja(Cn("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var s5=ja(Cn("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),a5=ja(Cn("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),u5=ja(Cn("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),Hp=a(31919);function c5(t){return(0,Sr.Z)((0,Hp.Z)(t).call(document.documentElement))}var f5=0;function jp(){return new Uf}function Uf(){this._="@"+(++f5).toString(36)}Uf.prototype=jp.prototype={constructor:Uf,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var l5=a(40318),h5=a(76022),d5=a(93001),p5=a(51310);function g5(t,n){return t.target&&(t=(0,p5.Z)(t),void 0===n&&(n=t.currentTarget),t=t.touches||[t]),Array.from(t,e=>(0,zi.Z)(e,n))}var m5=a(1280),Wa=a(12265);function v5(t){return"string"==typeof t?new Wa.Y1([document.querySelectorAll(t)],[document.documentElement]):new Wa.Y1([(0,m5.Z)(t)],Wa.Jz)}var y5=a(59360),b5=a(83554),x5=a(90663),w5=a(17104);function Tn(t){return function(){return t}}const Wp=Math.abs,Se=Math.atan2,zr=Math.cos,_5=Math.max,lo=Math.min,He=Math.sin,Kn=Math.sqrt,Ae=1e-12,Qr=Math.PI,Xa=Qr/2,Jr=2*Qr;function M5(t){return t>1?0:t<-1?Qr:Math.acos(t)}function Xp(t){return t>=1?Xa:t<=-1?-Xa:Math.asin(t)}function E5(t){return t.innerRadius}function T5(t){return t.outerRadius}function S5(t){return t.startAngle}function A5(t){return t.endAngle}function C5(t){return t&&t.padAngle}function P5(t,n,e,r,i,o,s,u){var l=e-t,c=r-n,d=s-i,g=u-o,p=g*l-d*c;if(!(p*pU*U+Y*Y&&(Q=$,ot=tt),{cx:Q,cy:ot,x01:-d,y01:-g,x11:Q*(i/F-1),y11:ot*(i/F-1)}}function N5(){var t=E5,n=T5,e=Tn(0),r=null,i=S5,o=A5,s=C5,u=null;function l(){var c,d,g=+t.apply(this,arguments),p=+n.apply(this,arguments),m=i.apply(this,arguments)-Xa,A=o.apply(this,arguments)-Xa,w=Wp(A-m),b=A>m;if(u||(u=c=ei()),pAe)if(w>Jr-Ae)u.moveTo(p*zr(m),p*He(m)),u.arc(0,0,p,m,A,!b),g>Ae&&(u.moveTo(g*zr(A),g*He(A)),u.arc(0,0,g,A,m,b));else{var st,pt,T=m,I=A,P=m,C=A,F=w,B=w,H=s.apply(this,arguments)/2,Q=H>Ae&&(r?+r.apply(this,arguments):Kn(g*g+p*p)),ot=lo(Wp(p-g)/2,+e.apply(this,arguments)),$=ot,tt=ot;if(Q>Ae){var U=Xp(Q/g*He(H)),Y=Xp(Q/p*He(H));(F-=2*U)>Ae?(P+=U*=b?1:-1,C-=U):(F=0,P=C=(m+A)/2),(B-=2*Y)>Ae?(T+=Y*=b?1:-1,I-=Y):(B=0,T=I=(m+A)/2)}var q=p*zr(T),ct=p*He(T),K=g*zr(C),ut=g*He(C);if(ot>Ae){var _t,J=p*zr(I),gt=p*He(I),xt=g*zr(P),St=g*He(P);if(wAe?tt>Ae?(st=$a(xt,St,q,ct,p,tt,b),pt=$a(J,gt,K,ut,p,tt,b),u.moveTo(st.cx+st.x01,st.cy+st.y01),ttAe&&F>Ae?$>Ae?(st=$a(K,ut,J,gt,g,-$,b),pt=$a(q,ct,xt,St,g,-$,b),u.lineTo(st.cx+st.x01,st.cy+st.y01),$=p;--m)u.point(I[m],P[m]);u.lineEnd(),u.areaEnd()}b&&(I[g]=+t(w,g,d),P[g]=+n(w,g,d),u.point(r?+r(w,g,d):I[g],e?+e(w,g,d):P[g]))}if(T)return u=null,T+""||null}function c(){return Yf().defined(i).curve(s).context(o)}return t="function"==typeof t?t:void 0===t?Zf:Tn(+t),n="function"==typeof n?n:Tn(void 0===n?0:+n),e="function"==typeof e?e:void 0===e?Gf:Tn(+e),l.x=function(d){return arguments.length?(t="function"==typeof d?d:Tn(+d),r=null,l):t},l.x0=function(d){return arguments.length?(t="function"==typeof d?d:Tn(+d),l):t},l.x1=function(d){return arguments.length?(r=null==d?null:"function"==typeof d?d:Tn(+d),l):r},l.y=function(d){return arguments.length?(n="function"==typeof d?d:Tn(+d),e=null,l):n},l.y0=function(d){return arguments.length?(n="function"==typeof d?d:Tn(+d),l):n},l.y1=function(d){return arguments.length?(e=null==d?null:"function"==typeof d?d:Tn(+d),l):e},l.lineX0=l.lineY0=function(){return c().x(t).y(n)},l.lineY1=function(){return c().x(t).y(e)},l.lineX1=function(){return c().x(r).y(n)},l.defined=function(d){return arguments.length?(i="function"==typeof d?d:Tn(!!d),l):i},l.curve=function(d){return arguments.length?(s=d,null!=o&&(u=s(o)),l):s},l.context=function(d){return arguments.length?(null==d?o=u=null:u=s(o=d),l):o},l}function k5(t,n){return nt?1:n>=t?0:NaN}function I5(t){return t}function R5(){var t=I5,n=k5,e=null,r=Tn(0),i=Tn(Jr),o=Tn(0);function s(u){var l,d,g,T,C,c=(u=Ka(u)).length,p=0,m=new Array(c),A=new Array(c),w=+r.apply(this,arguments),b=Math.min(Jr,Math.max(-Jr,i.apply(this,arguments)-w)),I=Math.min(Math.abs(b)/c,o.apply(this,arguments)),P=I*(b<0?-1:1);for(l=0;l0&&(p+=C);for(null!=n?m.sort(function(F,B){return n(A[F],A[B])}):null!=e&&m.sort(function(F,B){return e(u[F],u[B])}),l=0,g=p?(b-c*P)/p:0;l0?C*g:0)+P,padAngle:I};return A}return s.value=function(u){return arguments.length?(t="function"==typeof u?u:Tn(+u),s):t},s.sortValues=function(u){return arguments.length?(n=u,e=null,s):n},s.sort=function(u){return arguments.length?(e=u,n=null,s):e},s.startAngle=function(u){return arguments.length?(r="function"==typeof u?u:Tn(+u),s):r},s.endAngle=function(u){return arguments.length?(i="function"==typeof u?u:Tn(+u),s):i},s.padAngle=function(u){return arguments.length?(o="function"==typeof u?u:Tn(+u),s):o},s}$p.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var Qp=Vf(Qa);function Jp(t){this._curve=t}function Vf(t){function n(e){return new Jp(t(e))}return n._curve=t,n}function ds(t){var n=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(e){return arguments.length?n(Vf(e)):n()._curve},t}function qp(){return ds(Yf().curve(Qp))}function t1(){var t=Kp().curve(Qp),n=t.curve,e=t.lineX0,r=t.lineX1,i=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return ds(e())},delete t.lineX0,t.lineEndAngle=function(){return ds(r())},delete t.lineX1,t.lineInnerRadius=function(){return ds(i())},delete t.lineY0,t.lineOuterRadius=function(){return ds(o())},delete t.lineY1,t.curve=function(s){return arguments.length?n(Vf(s)):n()._curve},t}function ps(t,n){return[(n=+n)*Math.cos(t-=Math.PI/2),n*Math.sin(t)]}Jp.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};class n1{constructor(n,e){this._context=n,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(n,e){switch(n=+n,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,e):this._context.moveTo(n,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+n)/2,this._y0,this._x0,e,n,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,n,this._y0,n,e)}this._x0=n,this._y0=e}}class z5{constructor(n){this._context=n}lineStart(){this._point=0}lineEnd(){}point(n,e){if(n=+n,e=+e,0==this._point++)this._x0=n,this._y0=e;else{const r=ps(this._x0,this._y0),i=ps(this._x0,this._y0=(this._y0+e)/2),o=ps(n,this._y0),s=ps(n,e);this._context.moveTo(...r),this._context.bezierCurveTo(...i,...o,...s)}}}function e1(t){return new n1(t,!0)}function r1(t){return new n1(t,!1)}function D5(t){return new z5(t)}function L5(t){return t.source}function F5(t){return t.target}function Ja(t){let n=L5,e=F5,r=Zf,i=Gf,o=null,s=null;function u(){let l;const c=O5.call(arguments),d=n.apply(this,c),g=e.apply(this,c);if(null==o&&(s=t(l=ei())),s.lineStart(),c[0]=d,s.point(+r.apply(this,c),+i.apply(this,c)),c[0]=g,s.point(+r.apply(this,c),+i.apply(this,c)),s.lineEnd(),l)return s=null,l+""||null}return u.source=function(l){return arguments.length?(n=l,u):n},u.target=function(l){return arguments.length?(e=l,u):e},u.x=function(l){return arguments.length?(r="function"==typeof l?l:Tn(+l),u):r},u.y=function(l){return arguments.length?(i="function"==typeof l?l:Tn(+l),u):i},u.context=function(l){return arguments.length?(null==l?o=s=null:s=t(o=l),u):o},u}function B5(){return Ja(e1)}function U5(){return Ja(r1)}function Z5(){const t=Ja(D5);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t}const G5=Kn(3),i1={draw(t,n){const e=.59436*Kn(n+lo(n/28,.75)),r=e/2,i=r*G5;t.moveTo(0,e),t.lineTo(0,-e),t.moveTo(-i,-r),t.lineTo(i,r),t.moveTo(-i,r),t.lineTo(i,-r)}},qa={draw(t,n){const e=Kn(n/Qr);t.moveTo(e,0),t.arc(0,0,e,0,Jr)}},o1={draw(t,n){const e=Kn(n/5)/2;t.moveTo(-3*e,-e),t.lineTo(-e,-e),t.lineTo(-e,-3*e),t.lineTo(e,-3*e),t.lineTo(e,-e),t.lineTo(3*e,-e),t.lineTo(3*e,e),t.lineTo(e,e),t.lineTo(e,3*e),t.lineTo(-e,3*e),t.lineTo(-e,e),t.lineTo(-3*e,e),t.closePath()}},s1=Kn(1/3),Y5=2*s1,a1={draw(t,n){const e=Kn(n/Y5),r=e*s1;t.moveTo(0,-e),t.lineTo(r,0),t.lineTo(0,e),t.lineTo(-r,0),t.closePath()}},u1={draw(t,n){const e=.62625*Kn(n);t.moveTo(0,-e),t.lineTo(e,0),t.lineTo(0,e),t.lineTo(-e,0),t.closePath()}},c1={draw(t,n){const e=.87559*Kn(n-lo(n/7,2));t.moveTo(-e,0),t.lineTo(e,0),t.moveTo(0,e),t.lineTo(0,-e)}},f1={draw(t,n){const e=Kn(n),r=-e/2;t.rect(r,r,e,e)}},l1={draw(t,n){const e=.4431*Kn(n);t.moveTo(e,e),t.lineTo(e,-e),t.lineTo(-e,-e),t.lineTo(-e,e),t.closePath()}},h1=He(Qr/10)/He(7*Qr/10),H5=He(Jr/10)*h1,j5=-zr(Jr/10)*h1,d1={draw(t,n){const e=Kn(.8908130915292852*n),r=H5*e,i=j5*e;t.moveTo(0,-e),t.lineTo(r,i);for(let o=1;o<5;++o){const s=Jr*o/5,u=zr(s),l=He(s);t.lineTo(l*e,-u*e),t.lineTo(u*r-l*i,l*r+u*i)}t.closePath()}},Hf=Kn(3),p1={draw(t,n){const e=-Kn(n/(3*Hf));t.moveTo(0,2*e),t.lineTo(-Hf*e,-e),t.lineTo(Hf*e,-e),t.closePath()}},W5=Kn(3),g1={draw(t,n){const e=.6824*Kn(n),r=e/2,i=e*W5/2;t.moveTo(0,-e),t.lineTo(i,r),t.lineTo(-i,r),t.closePath()}},sr=-.5,ar=Kn(3)/2,jf=1/Kn(12),X5=3*(jf/2+1),m1={draw(t,n){const e=Kn(n/X5),r=e/2,i=e*jf,o=r,s=e*jf+e,u=-o,l=s;t.moveTo(r,i),t.lineTo(o,s),t.lineTo(u,l),t.lineTo(sr*r-ar*i,ar*r+sr*i),t.lineTo(sr*o-ar*s,ar*o+sr*s),t.lineTo(sr*u-ar*l,ar*u+sr*l),t.lineTo(sr*r+ar*i,sr*i-ar*r),t.lineTo(sr*o+ar*s,sr*s-ar*o),t.lineTo(sr*u+ar*l,sr*l-ar*u),t.closePath()}},v1={draw(t,n){const e=.6189*Kn(n-lo(n/6,1.7));t.moveTo(-e,-e),t.lineTo(e,e),t.moveTo(-e,e),t.lineTo(e,-e)}},y1=[qa,o1,a1,f1,d1,p1,m1],$5=[qa,c1,v1,g1,i1,l1,u1];function K5(t,n){let e=null;function r(){let i;if(e||(e=i=ei()),t.apply(this,arguments).draw(e,+n.apply(this,arguments)),i)return e=null,i+""||null}return t="function"==typeof t?t:Tn(t||qa),n="function"==typeof n?n:Tn(void 0===n?64:+n),r.type=function(i){return arguments.length?(t="function"==typeof i?i:Tn(i),r):t},r.size=function(i){return arguments.length?(n="function"==typeof i?i:Tn(+i),r):n},r.context=function(i){return arguments.length?(e=i??null,r):e},r}function qr(){}function tu(t,n,e){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+n)/6,(t._y0+4*t._y1+e)/6)}function nu(t){this._context=t}function Q5(t){return new nu(t)}function b1(t){this._context=t}function J5(t){return new b1(t)}function x1(t){this._context=t}function q5(t){return new x1(t)}function w1(t,n){this._basis=new nu(t),this._beta=n}nu.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:tu(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:tu(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},b1.prototype={areaStart:qr,areaEnd:qr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x2=t,this._y2=n;break;case 1:this._point=2,this._x3=t,this._y3=n;break;case 2:this._point=3,this._x4=t,this._y4=n,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:tu(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},x1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var e=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 3:this._point=4;default:tu(this,t,n)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n}},w1.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,n=this._y,e=t.length-1;if(e>0)for(var l,r=t[0],i=n[0],o=t[e]-r,s=n[e]-i,u=-1;++u<=e;)this._basis.point(this._beta*t[u]+(1-this._beta)*(r+(l=u/e)*o),this._beta*n[u]+(1-this._beta)*(i+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,n){this._x.push(+t),this._y.push(+n)}};const t4=function t(n){function e(r){return 1===n?new nu(r):new w1(r,n)}return e.beta=function(r){return t(+r)},e}(.85);function eu(t,n,e){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-e),t._x2,t._y2)}function Wf(t,n){this._context=t,this._k=(1-n)/6}Wf.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:eu(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2,this._x1=t,this._y1=n;break;case 2:this._point=3;default:eu(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const n4=function t(n){function e(r){return new Wf(r,n)}return e.tension=function(r){return t(+r)},e}(0);function Xf(t,n){this._context=t,this._k=(1-n)/6}Xf.prototype={areaStart:qr,areaEnd:qr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:eu(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const e4=function t(n){function e(r){return new Xf(r,n)}return e.tension=function(r){return t(+r)},e}(0);function $f(t,n){this._context=t,this._k=(1-n)/6}$f.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:eu(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const r4=function t(n){function e(r){return new $f(r,n)}return e.tension=function(r){return t(+r)},e}(0);function Kf(t,n,e){var r=t._x1,i=t._y1,o=t._x2,s=t._y2;if(t._l01_a>Ae){var u=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*u-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*u-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>Ae){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,d=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-n*t._l12_2a)/d,s=(s*c+t._y1*t._l23_2a-e*t._l12_2a)/d}t._context.bezierCurveTo(r,i,o,s,t._x2,t._y2)}function _1(t,n){this._context=t,this._alpha=n}_1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:Kf(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const i4=function t(n){function e(r){return n?new _1(r,n):new Wf(r,0)}return e.alpha=function(r){return t(+r)},e}(.5);function M1(t,n){this._context=t,this._alpha=n}M1.prototype={areaStart:qr,areaEnd:qr,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=n;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3,this._x5=t,this._y5=n;break;default:Kf(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const o4=function t(n){function e(r){return n?new M1(r,n):new Xf(r,0)}return e.alpha=function(r){return t(+r)},e}(.5);function E1(t,n){this._context=t,this._alpha=n}E1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){if(t=+t,n=+n,this._point){var e=this._x2-t,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(e*e+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Kf(this,t,n)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};const s4=function t(n){function e(r){return n?new E1(r,n):new $f(r,0)}return e.alpha=function(r){return t(+r)},e}(.5);function T1(t){this._context=t}function a4(t){return new T1(t)}function S1(t){return t<0?-1:1}function A1(t,n,e){var r=t._x1-t._x0,i=n-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),s=(e-t._y1)/(i||r<0&&-0),u=(o*i+s*r)/(r+i);return(S1(o)+S1(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(u))||0}function C1(t,n){var e=t._x1-t._x0;return e?(3*(t._y1-t._y0)/e-n)/2:n}function Qf(t,n,e){var r=t._x0,o=t._x1,s=t._y1,u=(o-r)/3;t._context.bezierCurveTo(r+u,t._y0+u*n,o-u,s-u*e,o,s)}function ru(t){this._context=t}function P1(t){this._context=new N1(t)}function N1(t){this._context=t}function u4(t){return new ru(t)}function c4(t){return new P1(t)}function O1(t){this._context=t}function k1(t){var n,r,e=t.length-1,i=new Array(e),o=new Array(e),s=new Array(e);for(i[0]=0,o[0]=2,s[0]=t[0]+2*t[1],n=1;n=0;--n)i[n]=(s[n]-i[n+1])/o[n];for(o[e-1]=(t[e]+i[e-1])/2,n=0;n1)for(var r,i,s,e=1,o=t[n[0]],u=o.length;e=0;)e[n]=n;return e}function p4(t,n){return t[n]}function g4(t){const n=[];return n.key=t,n}function m4(){var t=Tn([]),n=po,e=ho,r=p4;function i(o){var u,d,s=Array.from(t.apply(this,arguments),g4),l=s.length,c=-1;for(const g of o)for(u=0,++c;u0){for(var e,r,s,i=0,o=t[0].length;i0)for(var e,i,o,s,u,l,r=0,c=t[n[0]].length;r0?(i[0]=s,i[1]=s+=o):o<0?(i[1]=u,i[0]=u+=o):(i[0]=0,i[1]=o)}function b4(t,n){if((i=t.length)>0){for(var i,e=0,r=t[n[0]],o=r.length;e0&&(o=(i=t[n[0]]).length)>0){for(var i,o,s,e=0,r=1;ro&&(o=i,e=n);return e}function R1(t){var n=t.map(z1);return po(t).sort(function(e,r){return n[e]-n[r]})}function z1(t){for(var i,n=0,e=-1,r=t.length;++e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var e=this._x*(1-this._t)+t*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,n)}}this._x=t,this._y=n}};var D1="%Y-%m-%dT%H:%M:%S.%LZ";const A4=Date.prototype.toISOString?function T4(t){return t.toISOString()}:Za(D1),N4=+new Date("2000-01-01T00:00:00.000Z")?function C4(t){var n=new Date(t);return isNaN(n)?null:n}:Df(D1);var O4=a(73339);function k4(t,n,e){var r=new Ji.B7,i=n;return null==n?(r.restart(t,n,e),r):(n=+n,e=null==e?(0,Ji.zO)():+e,r.restart(function o(s){s+=i,r.restart(o,i+=n,e),t(s)},n,e),r)}var ou=a(15925)}}]);




© 2015 - 2025 Weber Informatics LLC | Privacy Policy