@moderneinc/react-charts 1.1.0 → 1.2.0-next.0d3f64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/chrono-chart/chrono-chart.component.d.ts +10 -0
- package/dist/components/chrono-chart/chrono-chart.types.d.ts +129 -0
- package/dist/components/chrono-chart/components/category-table.component.d.ts +13 -0
- package/dist/components/chrono-chart/components/category-table.types.d.ts +42 -0
- package/dist/components/chrono-chart/utils/data-transformer.d.ts +41 -0
- package/dist/components/d3-stacked-area-chart/d3-stacked-area-chart.component.d.ts +7 -0
- package/dist/components/d3-stacked-area-chart/d3-stacked-area-chart.types.d.ts +95 -0
- package/dist/components/d3-stacked-area-chart/hooks/use-d3-stacked-area.hook.d.ts +35 -0
- package/dist/components/morph-chart/hooks/shared/computations.d.ts +29 -0
- package/dist/components/morph-chart/hooks/shared/types.d.ts +24 -0
- package/dist/components/morph-chart/hooks/use-morph-chart.hook.d.ts +90 -0
- package/dist/components/morph-chart/index.d.ts +2 -0
- package/dist/components/morph-chart/morph-chart.component.d.ts +14 -0
- package/dist/components/morph-chart/morph-chart.types.d.ts +175 -0
- package/dist/components/morph-chart/utils/accordion-generator.d.ts +102 -0
- package/dist/components/morph-chart/utils/animation-constants.d.ts +23 -0
- package/dist/components/morph-chart/utils/animation-utils.d.ts +44 -0
- package/dist/components/morph-chart/utils/arc-path-calculator.d.ts +53 -0
- package/dist/components/morph-chart/utils/area-renderer.d.ts +24 -0
- package/dist/components/morph-chart/utils/bar-renderer.d.ts +19 -0
- package/dist/components/morph-chart/utils/gsap-orchestrator.d.ts +291 -0
- package/dist/components/morph-chart/utils/morph-interpolator.d.ts +96 -0
- package/dist/components/morph-chart/utils/parliament-renderer.d.ts +23 -0
- package/dist/components/morph-chart/utils/parliament-seat-extractor.d.ts +33 -0
- package/dist/components/morph-chart/utils/position-mapper.d.ts +48 -0
- package/dist/components/morph-chart/utils/segment-transformer.d.ts +70 -0
- package/dist/components/morph-chart/utils/slinky-3d-generator.d.ts +35 -0
- package/dist/components/morph-chart/utils/svg-patterns.d.ts +19 -0
- package/dist/components/morph-chart/utils/svg-slinky-generator.d.ts +25 -0
- package/dist/components/parliament-chart/hooks/{useParliamentChart.d.ts → use-parliament-chart.hook.d.ts} +6 -2
- package/dist/components/parliament-chart/{ParliamentChart.d.ts → parliament-chart.component.d.ts} +1 -1
- package/dist/components/parliament-chart/{ParliamentChart.types.d.ts → parliament-chart.types.d.ts} +6 -1
- package/dist/components/parliament-chart/utils/parliament-animation.d.ts +13 -0
- package/dist/components/stacked-area-chart/hooks/use-stacked-area-chart.hook.d.ts +6 -0
- package/dist/components/stacked-area-chart/stacked-area-chart.component.d.ts +10 -0
- package/dist/components/stacked-area-chart/stacked-area-chart.constants.d.ts +115 -0
- package/dist/components/stacked-area-chart/stacked-area-chart.types.d.ts +186 -0
- package/dist/components/stacked-area-chart/utils/color.utils.d.ts +4 -0
- package/dist/components/stacked-area-with-timeline/hooks/use-stacked-area-with-timeline.hook.d.ts +52 -0
- package/dist/components/stacked-area-with-timeline/index.d.ts +4 -0
- package/dist/components/stacked-area-with-timeline/stacked-area-with-timeline.component.d.ts +3 -0
- package/dist/components/stacked-area-with-timeline/stacked-area-with-timeline.types.d.ts +97 -0
- package/dist/components/stacked-area-with-timeline/utils/render-timeline-track.d.ts +54 -0
- package/dist/components/timeline-chart/hooks/use-timeline-chart.hook.d.ts +2 -0
- package/dist/components/timeline-chart/timeline-chart.component.d.ts +9 -0
- package/dist/components/timeline-chart/timeline-chart.types.d.ts +156 -0
- package/dist/components/timeline-chart/timeline-selected-events.component.d.ts +9 -0
- package/dist/index.cjs +144 -11
- package/dist/index.d.ts +23 -8
- package/dist/index.js +31597 -4839
- package/dist/theme/{defaultColors.d.ts → default-colors.d.ts} +8 -4
- package/dist/theme/timeline-defaults.d.ts +82 -0
- package/package.json +37 -14
- /package/dist/components/parliament-chart/{ParliamentChart.constants.d.ts → parliament-chart.constants.d.ts} +0 -0
- /package/dist/components/parliament-chart/utils/{parliamentArcCalculator.d.ts → parliament-arc-calculator.d.ts} +0 -0
- /package/dist/components/parliament-chart/utils/{parliamentChartData.utils.d.ts → parliament-chart-data.utils.d.ts} +0 -0
- /package/dist/components/parliament-chart/utils/{parliamentSvgEnhanced.d.ts → parliament-svg-enhanced.d.ts} +0 -0
- /package/dist/components/parliament-chart/utils/{parliamentSvgPatterns.d.ts → parliament-svg-patterns.d.ts} +0 -0
- /package/dist/components/parliament-chart/utils/{parliamentSvg.d.ts → parliament-svg.d.ts} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,42 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("react/jsx-runtime"),_s=require("@mui/icons-material"),M=require("@mui/material"),fe=require("react"),Ss=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class ve{constructor(e,n,t){this.normal=n,this.property=e,t&&(this.space=t)}}ve.prototype.normal={};ve.prototype.property={};ve.prototype.space=void 0;function Sl(r,e){const n={},t={};for(const a of r)Object.assign(n,a.property),Object.assign(t,a.normal);return new ve(n,t,e)}function ye(r){return r.toLowerCase()}class B{constructor(e,n){this.attribute=n,this.property=e}}B.prototype.attribute="";B.prototype.booleanish=!1;B.prototype.boolean=!1;B.prototype.commaOrSpaceSeparated=!1;B.prototype.commaSeparated=!1;B.prototype.defined=!1;B.prototype.mustUseProperty=!1;B.prototype.number=!1;B.prototype.overloadedBoolean=!1;B.prototype.property="";B.prototype.spaceSeparated=!1;B.prototype.space=void 0;let xs=0;const x=Q(),E=Q(),zn=Q(),p=Q(),O=Q(),te=Q(),U=Q();function Q(){return 2**++xs}const Bn=Object.freeze(Object.defineProperty({__proto__:null,boolean:x,booleanish:E,commaOrSpaceSeparated:U,commaSeparated:te,number:p,overloadedBoolean:zn,spaceSeparated:O},Symbol.toStringTag,{value:"Module"})),Be=Object.keys(Bn);class Wn extends B{constructor(e,n,t,a){let i=-1;if(super(e,n),sa(this,"space",a),typeof t=="number")for(;++i<Be.length;){const o=Be[i];sa(this,Be[i],(t&Bn[o])===Bn[o])}}}Wn.prototype.defined=!0;function sa(r,e,n){n&&(r[e]=n)}function ie(r){const e={},n={};for(const[t,a]of Object.entries(r.properties)){const i=new Wn(t,r.transform(r.attributes||{},t),a,r.space);r.mustUseProperty&&r.mustUseProperty.includes(t)&&(i.mustUseProperty=!0),e[t]=i,n[ye(t)]=t,n[ye(i.attribute)]=t}return new ve(e,n,r.space)}const xl=ie({properties:{ariaActiveDescendant:null,ariaAtomic:E,ariaAutoComplete:null,ariaBusy:E,ariaChecked:E,ariaColCount:p,ariaColIndex:p,ariaColSpan:p,ariaControls:O,ariaCurrent:null,ariaDescribedBy:O,ariaDetails:null,ariaDisabled:E,ariaDropEffect:O,ariaErrorMessage:null,ariaExpanded:E,ariaFlowTo:O,ariaGrabbed:E,ariaHasPopup:null,ariaHidden:E,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:O,ariaLevel:p,ariaLive:null,ariaModal:E,ariaMultiLine:E,ariaMultiSelectable:E,ariaOrientation:null,ariaOwns:O,ariaPlaceholder:null,ariaPosInSet:p,ariaPressed:E,ariaReadOnly:E,ariaRelevant:null,ariaRequired:E,ariaRoleDescription:O,ariaRowCount:p,ariaRowIndex:p,ariaRowSpan:p,ariaSelected:E,ariaSetSize:p,ariaSort:null,ariaValueMax:p,ariaValueMin:p,ariaValueNow:p,ariaValueText:null,role:null},transform(r,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function Al(r,e){return e in r?r[e]:e}function ql(r,e){return Al(r,e.toLowerCase())}const As=ie({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:te,acceptCharset:O,accessKey:O,action:null,allow:null,allowFullScreen:x,allowPaymentRequest:x,allowUserMedia:x,alt:null,as:null,async:x,autoCapitalize:null,autoComplete:O,autoFocus:x,autoPlay:x,blocking:O,capture:null,charSet:null,checked:x,cite:null,className:O,cols:p,colSpan:null,content:null,contentEditable:E,controls:x,controlsList:O,coords:p|te,crossOrigin:null,data:null,dateTime:null,decoding:null,default:x,defer:x,dir:null,dirName:null,disabled:x,download:zn,draggable:E,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:x,formTarget:null,headers:O,height:p,hidden:zn,high:p,href:null,hrefLang:null,htmlFor:O,httpEquiv:O,id:null,imageSizes:null,imageSrcSet:null,inert:x,inputMode:null,integrity:null,is:null,isMap:x,itemId:null,itemProp:O,itemRef:O,itemScope:x,itemType:O,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:x,low:p,manifest:null,max:null,maxLength:p,media:null,method:null,min:null,minLength:p,multiple:x,muted:x,name:null,nonce:null,noModule:x,noValidate:x,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:x,optimum:p,pattern:null,ping:O,placeholder:null,playsInline:x,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:x,referrerPolicy:null,rel:O,required:x,reversed:x,rows:p,rowSpan:p,sandbox:O,scope:null,scoped:x,seamless:x,selected:x,shadowRootClonable:x,shadowRootDelegatesFocus:x,shadowRootMode:null,shape:null,size:p,sizes:null,slot:null,span:p,spellCheck:E,src:null,srcDoc:null,srcLang:null,srcSet:null,start:p,step:null,style:null,tabIndex:p,target:null,title:null,translate:null,type:null,typeMustMatch:x,useMap:null,value:E,width:p,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:O,axis:null,background:null,bgColor:null,border:p,borderColor:null,bottomMargin:p,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:x,declare:x,event:null,face:null,frame:null,frameBorder:null,hSpace:p,leftMargin:p,link:null,longDesc:null,lowSrc:null,marginHeight:p,marginWidth:p,noResize:x,noHref:x,noShade:x,noWrap:x,object:null,profile:null,prompt:null,rev:null,rightMargin:p,rules:null,scheme:null,scrolling:E,standby:null,summary:null,text:null,topMargin:p,valueType:null,version:null,vAlign:null,vLink:null,vSpace:p,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:x,disableRemotePlayback:x,prefix:null,property:null,results:p,security:null,unselectable:null},space:"html",transform:ql}),qs=ie({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:U,accentHeight:p,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:p,amplitude:p,arabicForm:null,ascent:p,attributeName:null,attributeType:null,azimuth:p,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:p,by:null,calcMode:null,capHeight:p,className:O,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:p,diffuseConstant:p,direction:null,display:null,dur:null,divisor:p,dominantBaseline:null,download:x,dx:null,dy:null,edgeMode:null,editable:null,elevation:p,enableBackground:null,end:null,event:null,exponent:p,externalResourcesRequired:null,fill:null,fillOpacity:p,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:te,g2:te,glyphName:te,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:p,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:p,horizOriginX:p,horizOriginY:p,id:null,ideographic:p,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:p,k:p,k1:p,k2:p,k3:p,k4:p,kernelMatrix:U,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:p,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:p,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:p,overlineThickness:p,paintOrder:null,panose1:null,path:null,pathLength:p,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:O,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:p,pointsAtY:p,pointsAtZ:p,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:U,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:U,rev:U,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:U,requiredFeatures:U,requiredFonts:U,requiredFormats:U,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:p,specularExponent:p,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:p,strikethroughThickness:p,string:null,stroke:null,strokeDashArray:U,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:p,strokeOpacity:p,strokeWidth:null,style:null,surfaceScale:p,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:U,tabIndex:p,tableValues:null,target:null,targetX:p,targetY:p,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:U,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:p,underlineThickness:p,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:p,values:null,vAlphabetic:p,vMathematical:p,vectorEffect:null,vHanging:p,vIdeographic:p,version:null,vertAdvY:p,vertOriginX:p,vertOriginY:p,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:p,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Al}),Cl=ie({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(r,e){return"xlink:"+e.slice(5).toLowerCase()}}),Rl=ie({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ql}),wl=ie({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(r,e){return"xml:"+e.slice(3).toLowerCase()}}),Cs=/[A-Z]/g,ua=/-[a-z]/g,Rs=/^data[-\w.:]+$/i;function Tl(r,e){const n=ye(e);let t=e,a=B;if(n in r.normal)return r.property[r.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Rs.test(e)){if(e.charAt(4)==="-"){const i=e.slice(5).replace(ua,Ts);t="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=e.slice(4);if(!ua.test(i)){let o=i.replace(Cs,ws);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}a=Wn}return new a(t,e)}function ws(r){return"-"+r.toLowerCase()}function Ts(r){return r.charAt(1).toUpperCase()}const Ol=Sl([xl,As,Cl,Rl,wl],"html"),Vn=Sl([xl,qs,Cl,Rl,wl],"svg"),ca={}.hasOwnProperty;function Os(r,e){const n=e||{};function t(a,...i){let o=t.invalid;const l=t.handlers;if(a&&ca.call(a,r)){const s=String(a[r]);o=ca.call(l,s)?l[s]:t.unknown}if(o)return o.call(this,a,...i)}return t.handlers=n.handlers||{},t.invalid=n.invalid,t.unknown=n.unknown,t}const Ms=/["&'<>`]/g,Ps=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Es=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Is=/[|\\{}()[\]^$+*?.]/g,fa=new WeakMap;function Ls(r,e){if(r=r.replace(e.subset?Ds(e.subset):Ms,t),e.subset||e.escapeOnly)return r;return r.replace(Ps,n).replace(Es,t);function n(a,i,o){return e.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,o.charCodeAt(i+2),e)}function t(a,i,o){return e.format(a.charCodeAt(0),o.charCodeAt(i+1),e)}}function Ds(r){let e=fa.get(r);return e||(e=Ns(r),fa.set(r,e)),e}function Ns(r){const e=[];let n=-1;for(;++n<r.length;)e.push(r[n].replace(Is,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const ks=/[\dA-Fa-f]/;function Fs(r,e,n){const t="&#x"+r.toString(16).toUpperCase();return n&&e&&!ks.test(String.fromCharCode(e))?t:t+";"}const js=/\d/;function Hs(r,e,n){const t="&#"+String(r);return n&&e&&!js.test(String.fromCharCode(e))?t:t+";"}const zs=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Ge={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Bs=["cent","copy","divide","gt","lt","not","para","times"],Ml={}.hasOwnProperty,Gn={};let Ce;for(Ce in Ge)Ml.call(Ge,Ce)&&(Gn[Ge[Ce]]=Ce);const Gs=/[^\dA-Za-z]/;function Us(r,e,n,t){const a=String.fromCharCode(r);if(Ml.call(Gn,a)){const i=Gn[a],o="&"+i;return n&&zs.includes(i)&&!Bs.includes(i)&&(!t||e&&e!==61&&Gs.test(String.fromCharCode(e)))?o:o+";"}return""}function Ks(r,e,n){let t=Fs(r,e,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=Us(r,e,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const i=Hs(r,e,n.omitOptionalSemicolons);i.length<t.length&&(t=i)}return a&&(!n.useShortestReferences||a.length<t.length)?a:t}function ne(r,e){return Ls(r,Object.assign({format:Ks},e))}const $s=/^>|^->|<!--|-->|--!>|<!-$/g,Ws=[">"],Vs=["<",">"];function Ys(r,e,n,t){return t.settings.bogusComments?"<?"+ne(r.value,Object.assign({},t.settings.characterReferences,{subset:Ws}))+">":"<!--"+r.value.replace($s,a)+"-->";function a(i){return ne(i,Object.assign({},t.settings.characterReferences,{subset:Vs}))}}function Xs(r,e,n,t){return"<!"+(t.settings.upperDoctype?"DOCTYPE":"doctype")+(t.settings.tightDoctype?"":" ")+"html>"}function da(r,e){const n=String(r);if(typeof e!="string")throw new TypeError("Expected character");let t=0,a=n.indexOf(e);for(;a!==-1;)t++,a=n.indexOf(e,a+e.length);return t}function ha(r){const e=[],n=String(r||"");let t=n.indexOf(","),a=0,i=!1;for(;!i;){t===-1&&(t=n.length,i=!0);const o=n.slice(a,t).trim();(o||!i)&&e.push(o),a=t+1,t=n.indexOf(",",a)}return e}function Zs(r,e){const n=e||{};return(r[r.length-1]===""?[...r,""]:r).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function pa(r){const e=String(r||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function Js(r){return r.join(" ").trim()}const Qs=/[ \t\n\f\r]/g;function Yn(r){return typeof r=="object"?r.type==="text"?ga(r.value):!1:ga(r)}function ga(r){return r.replace(Qs,"")===""}const L=El(1),Pl=El(-1),eu=[];function El(r){return e;function e(n,t,a){const i=n?n.children:eu;let o=(t||0)+r,l=i[o];if(!a)for(;l&&Yn(l);)o+=r,l=i[o];return l}}const ru={}.hasOwnProperty;function Il(r){return e;function e(n,t,a){return ru.call(r,n.tagName)&&r[n.tagName](n,t,a)}}const Xn=Il({body:nu,caption:Ue,colgroup:Ue,dd:lu,dt:ou,head:Ue,html:tu,li:iu,optgroup:su,option:uu,p:au,rp:ma,rt:ma,tbody:fu,td:ya,tfoot:du,th:ya,thead:cu,tr:hu});function Ue(r,e,n){const t=L(n,e,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&Yn(t.value.charAt(0)))}function tu(r,e,n){const t=L(n,e);return!t||t.type!=="comment"}function nu(r,e,n){const t=L(n,e);return!t||t.type!=="comment"}function au(r,e,n){const t=L(n,e);return t?t.type==="element"&&(t.tagName==="address"||t.tagName==="article"||t.tagName==="aside"||t.tagName==="blockquote"||t.tagName==="details"||t.tagName==="div"||t.tagName==="dl"||t.tagName==="fieldset"||t.tagName==="figcaption"||t.tagName==="figure"||t.tagName==="footer"||t.tagName==="form"||t.tagName==="h1"||t.tagName==="h2"||t.tagName==="h3"||t.tagName==="h4"||t.tagName==="h5"||t.tagName==="h6"||t.tagName==="header"||t.tagName==="hgroup"||t.tagName==="hr"||t.tagName==="main"||t.tagName==="menu"||t.tagName==="nav"||t.tagName==="ol"||t.tagName==="p"||t.tagName==="pre"||t.tagName==="section"||t.tagName==="table"||t.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function iu(r,e,n){const t=L(n,e);return!t||t.type==="element"&&t.tagName==="li"}function ou(r,e,n){const t=L(n,e);return!!(t&&t.type==="element"&&(t.tagName==="dt"||t.tagName==="dd"))}function lu(r,e,n){const t=L(n,e);return!t||t.type==="element"&&(t.tagName==="dt"||t.tagName==="dd")}function ma(r,e,n){const t=L(n,e);return!t||t.type==="element"&&(t.tagName==="rp"||t.tagName==="rt")}function su(r,e,n){const t=L(n,e);return!t||t.type==="element"&&t.tagName==="optgroup"}function uu(r,e,n){const t=L(n,e);return!t||t.type==="element"&&(t.tagName==="option"||t.tagName==="optgroup")}function cu(r,e,n){const t=L(n,e);return!!(t&&t.type==="element"&&(t.tagName==="tbody"||t.tagName==="tfoot"))}function fu(r,e,n){const t=L(n,e);return!t||t.type==="element"&&(t.tagName==="tbody"||t.tagName==="tfoot")}function du(r,e,n){return!L(n,e)}function hu(r,e,n){const t=L(n,e);return!t||t.type==="element"&&t.tagName==="tr"}function ya(r,e,n){const t=L(n,e);return!t||t.type==="element"&&(t.tagName==="td"||t.tagName==="th")}const pu=Il({body:yu,colgroup:vu,head:mu,html:gu,tbody:bu});function gu(r){const e=L(r,-1);return!e||e.type!=="comment"}function mu(r){const e=new Set;for(const t of r.children)if(t.type==="element"&&(t.tagName==="base"||t.tagName==="title")){if(e.has(t.tagName))return!1;e.add(t.tagName)}const n=r.children[0];return!n||n.type==="element"}function yu(r){const e=L(r,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&Yn(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function vu(r,e,n){const t=Pl(n,e),a=L(r,-1,!0);return n&&t&&t.type==="element"&&t.tagName==="colgroup"&&Xn(t,n.children.indexOf(t),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function bu(r,e,n){const t=Pl(n,e),a=L(r,-1);return n&&t&&t.type==="element"&&(t.tagName==="thead"||t.tagName==="tbody")&&Xn(t,n.children.indexOf(t),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const Re={name:[[`
|
|
1
|
+
"use strict";var ck=Object.defineProperty;var fk=(e,t,r)=>t in e?ck(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Yo=(e,t,r)=>fk(e,typeof t!="symbol"?t+"":t,r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react/jsx-runtime"),Q=require("@mui/material"),O=require("react"),HO=require("@mui/icons-material");function hk(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const rn=hk(O);function pk(e){return e}var _f=1,wf=2,ry=3,fs=4,F0=1e-6;function dk(e){return"translate("+e+",0)"}function mk(e){return"translate(0,"+e+")"}function yk(e){return t=>+e(t)}function gk(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),r=>+e(r)+t}function vk(){return!this.__axis}function GO(e,t){var r=[],n=null,i=null,a=6,o=6,s=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=e===_f||e===fs?-1:1,c=e===fs||e===wf?"x":"y",f=e===_f||e===ry?dk:mk;function h(p){var y=n??(t.ticks?t.ticks.apply(t,r):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,r):pk),d=Math.max(a,0)+s,b=t.range(),v=+b[0]+l,x=+b[b.length-1]+l,_=(t.bandwidth?gk:yk)(t.copy(),l),g=p.selection?p.selection():p,w=g.selectAll(".domain").data([null]),S=g.selectAll(".tick").data(y,t).order(),A=S.exit(),T=S.enter().append("g").attr("class","tick"),M=S.select("line"),P=S.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),S=S.merge(T),M=M.merge(T.append("line").attr("stroke","currentColor").attr(c+"2",u*a)),P=P.merge(T.append("text").attr("fill","currentColor").attr(c,u*d).attr("dy",e===_f?"0em":e===ry?"0.71em":"0.32em")),p!==g&&(w=w.transition(p),S=S.transition(p),M=M.transition(p),P=P.transition(p),A=A.transition(p).attr("opacity",F0).attr("transform",function(E){return isFinite(E=_(E))?f(E+l):this.getAttribute("transform")}),T.attr("opacity",F0).attr("transform",function(E){var C=this.parentNode.__axis;return f((C&&isFinite(C=C(E))?C:_(E))+l)})),A.remove(),w.attr("d",e===fs||e===wf?o?"M"+u*o+","+v+"H"+l+"V"+x+"H"+u*o:"M"+l+","+v+"V"+x:o?"M"+v+","+u*o+"V"+l+"H"+x+"V"+u*o:"M"+v+","+l+"H"+x),S.attr("opacity",1).attr("transform",function(E){return f(_(E)+l)}),M.attr(c+"2",u*a),P.attr(c,u*d).text(m),g.filter(vk).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===wf?"start":e===fs?"end":"middle"),g.each(function(){this.__axis=_})}return h.scale=function(p){return arguments.length?(t=p,h):t},h.ticks=function(){return r=Array.from(arguments),h},h.tickArguments=function(p){return arguments.length?(r=p==null?[]:Array.from(p),h):r.slice()},h.tickValues=function(p){return arguments.length?(n=p==null?null:Array.from(p),h):n&&n.slice()},h.tickFormat=function(p){return arguments.length?(i=p,h):i},h.tickSize=function(p){return arguments.length?(a=o=+p,h):a},h.tickSizeInner=function(p){return arguments.length?(a=+p,h):a},h.tickSizeOuter=function(p){return arguments.length?(o=+p,h):o},h.tickPadding=function(p){return arguments.length?(s=+p,h):s},h.offset=function(p){return arguments.length?(l=+p,h):l},h}function la(e){return GO(ry,e)}function ua(e){return GO(fs,e)}var bk={value:()=>{}};function rv(){for(var e=0,t=arguments.length,r={},n;e<t;++e){if(!(n=arguments[e]+"")||n in r||/[\s.]/.test(n))throw new Error("illegal type: "+n);r[n]=[]}return new lu(r)}function lu(e){this._=e}function xk(e,t){return e.trim().split(/^|\s+/).map(function(r){var n="",i=r.indexOf(".");if(i>=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}lu.prototype=rv.prototype={constructor:lu,on:function(e,t){var r=this._,n=xk(e+"",r),i,a=-1,o=n.length;if(arguments.length<2){for(;++a<o;)if((i=(e=n[a]).type)&&(i=_k(r[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(i=(e=n[a]).type)r[i]=z0(r[i],e.name,t);else if(t==null)for(i in r)r[i]=z0(r[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new lu(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var r=new Array(i),n=0,i,a;n<i;++n)r[n]=arguments[n+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],n=0,i=a.length;n<i;++n)a[n].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],i=0,a=n.length;i<a;++i)n[i].value.apply(t,r)}};function _k(e,t){for(var r=0,n=e.length,i;r<n;++r)if((i=e[r]).name===t)return i.value}function z0(e,t,r){for(var n=0,i=e.length;n<i;++n)if(e[n].name===t){e[n]=bk,e=e.slice(0,n).concat(e.slice(n+1));break}return r!=null&&e.push({name:t,value:r}),e}var ny="http://www.w3.org/1999/xhtml";const U0={svg:"http://www.w3.org/2000/svg",xhtml:ny,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Pc(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),U0.hasOwnProperty(t)?{space:U0[t],local:e}:e}function wk(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===ny&&t.documentElement.namespaceURI===ny?t.createElement(e):t.createElementNS(r,e)}}function Sk(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function KO(e){var t=Pc(e);return(t.local?Sk:wk)(t)}function Ak(){}function nv(e){return e==null?Ak:function(){return this.querySelector(e)}}function Ok(e){typeof e!="function"&&(e=nv(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,s=n[i]=new Array(o),l,u,c=0;c<o;++c)(l=a[c])&&(u=e.call(l,l.__data__,c,a))&&("__data__"in l&&(u.__data__=l.__data__),s[c]=u);return new zr(n,this._parents)}function Tk(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Pk(){return[]}function XO(e){return e==null?Pk:function(){return this.querySelectorAll(e)}}function Ek(e){return function(){return Tk(e.apply(this,arguments))}}function Mk(e){typeof e=="function"?e=Ek(e):e=XO(e);for(var t=this._groups,r=t.length,n=[],i=[],a=0;a<r;++a)for(var o=t[a],s=o.length,l,u=0;u<s;++u)(l=o[u])&&(n.push(e.call(l,l.__data__,u,o)),i.push(l));return new zr(n,i)}function YO(e){return function(){return this.matches(e)}}function VO(e){return function(t){return t.matches(e)}}var Ck=Array.prototype.find;function kk(e){return function(){return Ck.call(this.children,e)}}function $k(){return this.firstElementChild}function jk(e){return this.select(e==null?$k:kk(typeof e=="function"?e:VO(e)))}var Rk=Array.prototype.filter;function Dk(){return Array.from(this.children)}function Ik(e){return function(){return Rk.call(this.children,e)}}function Nk(e){return this.selectAll(e==null?Dk:Ik(typeof e=="function"?e:VO(e)))}function Lk(e){typeof e!="function"&&(e=YO(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,s=n[i]=[],l,u=0;u<o;++u)(l=a[u])&&e.call(l,l.__data__,u,a)&&s.push(l);return new zr(n,this._parents)}function ZO(e){return new Array(e.length)}function Bk(){return new zr(this._enter||this._groups.map(ZO),this._parents)}function mu(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}mu.prototype={constructor:mu,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function qk(e){return function(){return e}}function Fk(e,t,r,n,i,a){for(var o=0,s,l=t.length,u=a.length;o<u;++o)(s=t[o])?(s.__data__=a[o],n[o]=s):r[o]=new mu(e,a[o]);for(;o<l;++o)(s=t[o])&&(i[o]=s)}function zk(e,t,r,n,i,a,o){var s,l,u=new Map,c=t.length,f=a.length,h=new Array(c),p;for(s=0;s<c;++s)(l=t[s])&&(h[s]=p=o.call(l,l.__data__,s,t)+"",u.has(p)?i[s]=l:u.set(p,l));for(s=0;s<f;++s)p=o.call(e,a[s],s,a)+"",(l=u.get(p))?(n[s]=l,l.__data__=a[s],u.delete(p)):r[s]=new mu(e,a[s]);for(s=0;s<c;++s)(l=t[s])&&u.get(h[s])===l&&(i[s]=l)}function Uk(e){return e.__data__}function Wk(e,t){if(!arguments.length)return Array.from(this,Uk);var r=t?zk:Fk,n=this._parents,i=this._groups;typeof e!="function"&&(e=qk(e));for(var a=i.length,o=new Array(a),s=new Array(a),l=new Array(a),u=0;u<a;++u){var c=n[u],f=i[u],h=f.length,p=Hk(e.call(c,c&&c.__data__,u,n)),y=p.length,m=s[u]=new Array(y),d=o[u]=new Array(y),b=l[u]=new Array(h);r(c,f,m,d,b,p,t);for(var v=0,x=0,_,g;v<y;++v)if(_=m[v]){for(v>=x&&(x=v+1);!(g=d[x])&&++x<y;);_._next=g||null}}return o=new zr(o,n),o._enter=s,o._exit=l,o}function Hk(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Gk(){return new zr(this._exit||this._groups.map(ZO),this._parents)}function Kk(e,t,r){var n=this.enter(),i=this,a=this.exit();return typeof e=="function"?(n=e(n),n&&(n=n.selection())):n=n.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),r==null?a.remove():r(a),n&&i?n.merge(i).order():i}function Xk(e){for(var t=e.selection?e.selection():e,r=this._groups,n=t._groups,i=r.length,a=n.length,o=Math.min(i,a),s=new Array(i),l=0;l<o;++l)for(var u=r[l],c=n[l],f=u.length,h=s[l]=new Array(f),p,y=0;y<f;++y)(p=u[y]||c[y])&&(h[y]=p);for(;l<i;++l)s[l]=r[l];return new zr(s,this._parents)}function Yk(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var n=e[t],i=n.length-1,a=n[i],o;--i>=0;)(o=n[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Vk(e){e||(e=Zk);function t(f,h){return f&&h?e(f.__data__,h.__data__):!f-!h}for(var r=this._groups,n=r.length,i=new Array(n),a=0;a<n;++a){for(var o=r[a],s=o.length,l=i[a]=new Array(s),u,c=0;c<s;++c)(u=o[c])&&(l[c]=u);l.sort(t)}return new zr(i,this._parents).order()}function Zk(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Jk(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Qk(){return Array.from(this)}function t$(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,a=n.length;i<a;++i){var o=n[i];if(o)return o}return null}function e$(){let e=0;for(const t of this)++e;return e}function r$(){return!this.node()}function n$(e){for(var t=this._groups,r=0,n=t.length;r<n;++r)for(var i=t[r],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function i$(e){return function(){this.removeAttribute(e)}}function a$(e){return function(){this.removeAttributeNS(e.space,e.local)}}function o$(e,t){return function(){this.setAttribute(e,t)}}function s$(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function l$(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function u$(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function c$(e,t){var r=Pc(e);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((t==null?r.local?a$:i$:typeof t=="function"?r.local?u$:l$:r.local?s$:o$)(r,t))}function JO(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function f$(e){return function(){this.style.removeProperty(e)}}function h$(e,t,r){return function(){this.style.setProperty(e,t,r)}}function p$(e,t,r){return function(){var n=t.apply(this,arguments);n==null?this.style.removeProperty(e):this.style.setProperty(e,n,r)}}function d$(e,t,r){return arguments.length>1?this.each((t==null?f$:typeof t=="function"?p$:h$)(e,t,r??"")):to(this.node(),e)}function to(e,t){return e.style.getPropertyValue(t)||JO(e).getComputedStyle(e,null).getPropertyValue(t)}function m$(e){return function(){delete this[e]}}function y$(e,t){return function(){this[e]=t}}function g$(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function v$(e,t){return arguments.length>1?this.each((t==null?m$:typeof t=="function"?g$:y$)(e,t)):this.node()[e]}function QO(e){return e.trim().split(/^|\s+/)}function iv(e){return e.classList||new tT(e)}function tT(e){this._node=e,this._names=QO(e.getAttribute("class")||"")}tT.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function eT(e,t){for(var r=iv(e),n=-1,i=t.length;++n<i;)r.add(t[n])}function rT(e,t){for(var r=iv(e),n=-1,i=t.length;++n<i;)r.remove(t[n])}function b$(e){return function(){eT(this,e)}}function x$(e){return function(){rT(this,e)}}function _$(e,t){return function(){(t.apply(this,arguments)?eT:rT)(this,e)}}function w$(e,t){var r=QO(e+"");if(arguments.length<2){for(var n=iv(this.node()),i=-1,a=r.length;++i<a;)if(!n.contains(r[i]))return!1;return!0}return this.each((typeof t=="function"?_$:t?b$:x$)(r,t))}function S$(){this.textContent=""}function A$(e){return function(){this.textContent=e}}function O$(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function T$(e){return arguments.length?this.each(e==null?S$:(typeof e=="function"?O$:A$)(e)):this.node().textContent}function P$(){this.innerHTML=""}function E$(e){return function(){this.innerHTML=e}}function M$(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function C$(e){return arguments.length?this.each(e==null?P$:(typeof e=="function"?M$:E$)(e)):this.node().innerHTML}function k$(){this.nextSibling&&this.parentNode.appendChild(this)}function $$(){return this.each(k$)}function j$(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function R$(){return this.each(j$)}function D$(e){var t=typeof e=="function"?e:KO(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function I$(){return null}function N$(e,t){var r=typeof e=="function"?e:KO(e),n=t==null?I$:typeof t=="function"?t:nv(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})}function L$(){var e=this.parentNode;e&&e.removeChild(this)}function B$(){return this.each(L$)}function q$(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function F$(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function z$(e){return this.select(e?F$:q$)}function U$(e){return arguments.length?this.property("__data__",e):this.node().__data__}function W$(e){return function(t){e.call(this,t,this.__data__)}}function H$(e){return e.trim().split(/^|\s+/).map(function(t){var r="",n=t.indexOf(".");return n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),{type:t,name:r}})}function G$(e){return function(){var t=this.__on;if(t){for(var r=0,n=-1,i=t.length,a;r<i;++r)a=t[r],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++n]=a;++n?t.length=n:delete this.__on}}}function K$(e,t,r){return function(){var n=this.__on,i,a=W$(t);if(n){for(var o=0,s=n.length;o<s;++o)if((i=n[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=r),i.value=t;return}}this.addEventListener(e.type,a,r),i={type:e.type,name:e.name,value:t,listener:a,options:r},n?n.push(i):this.__on=[i]}}function X$(e,t,r){var n=H$(e+""),i,a=n.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,u=s.length,c;l<u;++l)for(i=0,c=s[l];i<a;++i)if((o=n[i]).type===c.type&&o.name===c.name)return c.value}return}for(s=t?K$:G$,i=0;i<a;++i)this.each(s(n[i],t,r));return this}function nT(e,t,r){var n=JO(e),i=n.CustomEvent;typeof i=="function"?i=new i(t,r):(i=n.document.createEvent("Event"),r?(i.initEvent(t,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Y$(e,t){return function(){return nT(this,e,t)}}function V$(e,t){return function(){return nT(this,e,t.apply(this,arguments))}}function Z$(e,t){return this.each((typeof t=="function"?V$:Y$)(e,t))}function*J$(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,a=n.length,o;i<a;++i)(o=n[i])&&(yield o)}var iT=[null];function zr(e,t){this._groups=e,this._parents=t}function Io(){return new zr([[document.documentElement]],iT)}function Q$(){return this}zr.prototype=Io.prototype={constructor:zr,select:Ok,selectAll:Mk,selectChild:jk,selectChildren:Nk,filter:Lk,data:Wk,enter:Bk,exit:Gk,join:Kk,merge:Xk,selection:Q$,order:Yk,sort:Vk,call:Jk,nodes:Qk,node:t$,size:e$,empty:r$,each:n$,attr:c$,style:d$,property:v$,classed:w$,text:T$,html:C$,raise:$$,lower:R$,append:D$,insert:N$,remove:B$,clone:z$,datum:U$,on:X$,dispatch:Z$,[Symbol.iterator]:J$};function Kt(e){return typeof e=="string"?new zr([[document.querySelector(e)]],[document.documentElement]):new zr([[e]],iT)}function tj(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ca(e,t){if(e=tj(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var n=r.createSVGPoint();return n.x=e.clientX,n.y=e.clientY,n=n.matrixTransform(t.getScreenCTM().inverse()),[n.x,n.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const iy={capture:!0,passive:!1};function ay(e){e.preventDefault(),e.stopImmediatePropagation()}function ej(e){var t=e.document.documentElement,r=Kt(e).on("dragstart.drag",ay,iy);"onselectstart"in t?r.on("selectstart.drag",ay,iy):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function rj(e,t){var r=e.document.documentElement,n=Kt(e).on("dragstart.drag",null);t&&(n.on("click.drag",ay,iy),setTimeout(function(){n.on("click.drag",null)},0)),"onselectstart"in r?n.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}function av(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function aT(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Tl(){}var Ds=.7,yu=1/Ds,Wa="\\s*([+-]?\\d+)\\s*",Is="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Cn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",nj=/^#([0-9a-f]{3,8})$/,ij=new RegExp(`^rgb\\(${Wa},${Wa},${Wa}\\)$`),aj=new RegExp(`^rgb\\(${Cn},${Cn},${Cn}\\)$`),oj=new RegExp(`^rgba\\(${Wa},${Wa},${Wa},${Is}\\)$`),sj=new RegExp(`^rgba\\(${Cn},${Cn},${Cn},${Is}\\)$`),lj=new RegExp(`^hsl\\(${Is},${Cn},${Cn}\\)$`),uj=new RegExp(`^hsla\\(${Is},${Cn},${Cn},${Is}\\)$`),W0={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};av(Tl,fa,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:H0,formatHex:H0,formatHex8:cj,formatHsl:fj,formatRgb:G0,toString:G0});function H0(){return this.rgb().formatHex()}function cj(){return this.rgb().formatHex8()}function fj(){return oT(this).formatHsl()}function G0(){return this.rgb().formatRgb()}function fa(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=nj.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?K0(t):r===3?new vr(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Fl(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Fl(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=ij.exec(e))?new vr(t[1],t[2],t[3],1):(t=aj.exec(e))?new vr(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=oj.exec(e))?Fl(t[1],t[2],t[3],t[4]):(t=sj.exec(e))?Fl(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=lj.exec(e))?V0(t[1],t[2]/100,t[3]/100,1):(t=uj.exec(e))?V0(t[1],t[2]/100,t[3]/100,t[4]):W0.hasOwnProperty(e)?K0(W0[e]):e==="transparent"?new vr(NaN,NaN,NaN,0):null}function K0(e){return new vr(e>>16&255,e>>8&255,e&255,1)}function Fl(e,t,r,n){return n<=0&&(e=t=r=NaN),new vr(e,t,r,n)}function hj(e){return e instanceof Tl||(e=fa(e)),e?(e=e.rgb(),new vr(e.r,e.g,e.b,e.opacity)):new vr}function oy(e,t,r,n){return arguments.length===1?hj(e):new vr(e,t,r,n??1)}function vr(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}av(vr,oy,aT(Tl,{brighter(e){return e=e==null?yu:Math.pow(yu,e),new vr(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ds:Math.pow(Ds,e),new vr(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new vr(ta(this.r),ta(this.g),ta(this.b),gu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:X0,formatHex:X0,formatHex8:pj,formatRgb:Y0,toString:Y0}));function X0(){return`#${Ki(this.r)}${Ki(this.g)}${Ki(this.b)}`}function pj(){return`#${Ki(this.r)}${Ki(this.g)}${Ki(this.b)}${Ki((isNaN(this.opacity)?1:this.opacity)*255)}`}function Y0(){const e=gu(this.opacity);return`${e===1?"rgb(":"rgba("}${ta(this.r)}, ${ta(this.g)}, ${ta(this.b)}${e===1?")":`, ${e})`}`}function gu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ta(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ki(e){return e=ta(e),(e<16?"0":"")+e.toString(16)}function V0(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new pn(e,t,r,n)}function oT(e){if(e instanceof pn)return new pn(e.h,e.s,e.l,e.opacity);if(e instanceof Tl||(e=fa(e)),!e)return new pn;if(e instanceof pn)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r<n)*6:r===a?o=(n-t)/s+2:o=(t-r)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new pn(o,s,l,e.opacity)}function dj(e,t,r,n){return arguments.length===1?oT(e):new pn(e,t,r,n??1)}function pn(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}av(pn,dj,aT(Tl,{brighter(e){return e=e==null?yu:Math.pow(yu,e),new pn(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ds:Math.pow(Ds,e),new pn(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new vr(Sf(e>=240?e-240:e+120,i,n),Sf(e,i,n),Sf(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new pn(Z0(this.h),zl(this.s),zl(this.l),gu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=gu(this.opacity);return`${e===1?"hsl(":"hsla("}${Z0(this.h)}, ${zl(this.s)*100}%, ${zl(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Z0(e){return e=(e||0)%360,e<0?e+360:e}function zl(e){return Math.max(0,Math.min(1,e||0))}function Sf(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const ov=e=>()=>e;function mj(e,t){return function(r){return e+r*t}}function yj(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function gj(e){return(e=+e)==1?sT:function(t,r){return r-t?yj(t,r,e):ov(isNaN(t)?r:t)}}function sT(e,t){var r=t-e;return r?mj(e,r):ov(isNaN(e)?t:e)}const vu=(function e(t){var r=gj(t);function n(i,a){var o=r((i=oy(i)).r,(a=oy(a)).r),s=r(i.g,a.g),l=r(i.b,a.b),u=sT(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=s(c),i.b=l(c),i.opacity=u(c),i+""}}return n.gamma=e,n})(1);function vj(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function bj(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function xj(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=ba(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(s){for(o=0;o<n;++o)a[o]=i[o](s);return a}}function _j(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function hn(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function wj(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=ba(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var sy=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Af=new RegExp(sy.source,"g");function Sj(e){return function(){return e}}function Aj(e){return function(t){return e(t)+""}}function lT(e,t){var r=sy.lastIndex=Af.lastIndex=0,n,i,a,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=sy.exec(e))&&(i=Af.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),s[o]?s[o]+=a:s[++o]=a),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:hn(n,i)})),r=Af.lastIndex;return r<t.length&&(a=t.slice(r),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?Aj(l[0].x):Sj(t):(t=l.length,function(u){for(var c=0,f;c<t;++c)s[(f=l[c]).i]=f.x(u);return s.join("")})}function ba(e,t){var r=typeof t,n;return t==null||r==="boolean"?ov(t):(r==="number"?hn:r==="string"?(n=fa(t))?(t=n,vu):lT:t instanceof fa?vu:t instanceof Date?_j:bj(t)?vj:Array.isArray(t)?xj:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?wj:hn)(e,t)}function sv(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}var J0=180/Math.PI,ly={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function uT(e,t,r,n,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*r+t*n)&&(r-=e*l,n-=t*l),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,l/=s),e*n<t*r&&(e=-e,t=-t,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*J0,skewX:Math.atan(l)*J0,scaleX:o,scaleY:s}}var Ul;function Oj(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?ly:uT(t.a,t.b,t.c,t.d,t.e,t.f)}function Tj(e){return e==null||(Ul||(Ul=document.createElementNS("http://www.w3.org/2000/svg","g")),Ul.setAttribute("transform",e),!(e=Ul.transform.baseVal.consolidate()))?ly:(e=e.matrix,uT(e.a,e.b,e.c,e.d,e.e,e.f))}function cT(e,t,r,n){function i(u){return u.length?u.pop()+" ":""}function a(u,c,f,h,p,y){if(u!==f||c!==h){var m=p.push("translate(",null,t,null,r);y.push({i:m-4,x:hn(u,f)},{i:m-2,x:hn(c,h)})}else(f||h)&&p.push("translate("+f+t+h+r)}function o(u,c,f,h){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),h.push({i:f.push(i(f)+"rotate(",null,n)-2,x:hn(u,c)})):c&&f.push(i(f)+"rotate("+c+n)}function s(u,c,f,h){u!==c?h.push({i:f.push(i(f)+"skewX(",null,n)-2,x:hn(u,c)}):c&&f.push(i(f)+"skewX("+c+n)}function l(u,c,f,h,p,y){if(u!==f||c!==h){var m=p.push(i(p)+"scale(",null,",",null,")");y.push({i:m-4,x:hn(u,f)},{i:m-2,x:hn(c,h)})}else(f!==1||h!==1)&&p.push(i(p)+"scale("+f+","+h+")")}return function(u,c){var f=[],h=[];return u=e(u),c=e(c),a(u.translateX,u.translateY,c.translateX,c.translateY,f,h),o(u.rotate,c.rotate,f,h),s(u.skewX,c.skewX,f,h),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,f,h),u=c=null,function(p){for(var y=-1,m=h.length,d;++y<m;)f[(d=h[y]).i]=d.x(p);return f.join("")}}}var Pj=cT(Oj,"px, ","px)","deg)"),Ej=cT(Tj,", ",")",")");function Mj(e,t){t===void 0&&(t=e,e=ba);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var s=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[s](o-s)}}var eo=0,hs=0,Vo=0,fT=1e3,bu,ps,xu=0,ha=0,Ec=0,Ns=typeof performance=="object"&&performance.now?performance:Date,hT=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function lv(){return ha||(hT(Cj),ha=Ns.now()+Ec)}function Cj(){ha=0}function _u(){this._call=this._time=this._next=null}_u.prototype=pT.prototype={constructor:_u,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?lv():+r)+(t==null?0:+t),!this._next&&ps!==this&&(ps?ps._next=this:bu=this,ps=this),this._call=e,this._time=r,uy()},stop:function(){this._call&&(this._call=null,this._time=1/0,uy())}};function pT(e,t,r){var n=new _u;return n.restart(e,t,r),n}function kj(){lv(),++eo;for(var e=bu,t;e;)(t=ha-e._time)>=0&&e._call.call(void 0,t),e=e._next;--eo}function Q0(){ha=(xu=Ns.now())+Ec,eo=hs=0;try{kj()}finally{eo=0,jj(),ha=0}}function $j(){var e=Ns.now(),t=e-xu;t>fT&&(Ec-=t,xu=e)}function jj(){for(var e,t=bu,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:bu=r);ps=e,uy(n)}function uy(e){if(!eo){hs&&(hs=clearTimeout(hs));var t=e-ha;t>24?(e<1/0&&(hs=setTimeout(Q0,e-Ns.now()-Ec)),Vo&&(Vo=clearInterval(Vo))):(Vo||(xu=Ns.now(),Vo=setInterval($j,fT)),eo=1,hT(Q0))}}function tb(e,t,r){var n=new _u;return t=t==null?0:+t,n.restart(i=>{n.stop(),e(i+t)},t,r),n}var Rj=rv("start","end","cancel","interrupt"),Dj=[],dT=0,eb=1,cy=2,uu=3,rb=4,fy=5,cu=6;function Mc(e,t,r,n,i,a){var o=e.__transition;if(!o)e.__transition={};else if(r in o)return;Ij(e,r,{name:t,index:n,group:i,on:Rj,tween:Dj,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:dT})}function uv(e,t){var r=yn(e,t);if(r.state>dT)throw new Error("too late; already scheduled");return r}function Dn(e,t){var r=yn(e,t);if(r.state>uu)throw new Error("too late; already running");return r}function yn(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function Ij(e,t,r){var n=e.__transition,i;n[t]=r,r.timer=pT(a,0,r.time);function a(u){r.state=eb,r.timer.restart(o,r.delay,r.time),r.delay<=u&&o(u-r.delay)}function o(u){var c,f,h,p;if(r.state!==eb)return l();for(c in n)if(p=n[c],p.name===r.name){if(p.state===uu)return tb(o);p.state===rb?(p.state=cu,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete n[c]):+c<t&&(p.state=cu,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete n[c])}if(tb(function(){r.state===uu&&(r.state=rb,r.timer.restart(s,r.delay,r.time),s(u))}),r.state=cy,r.on.call("start",e,e.__data__,r.index,r.group),r.state===cy){for(r.state=uu,i=new Array(h=r.tween.length),c=0,f=-1;c<h;++c)(p=r.tween[c].value.call(e,e.__data__,r.index,r.group))&&(i[++f]=p);i.length=f+1}}function s(u){for(var c=u<r.duration?r.ease.call(null,u/r.duration):(r.timer.restart(l),r.state=fy,1),f=-1,h=i.length;++f<h;)i[f].call(e,c);r.state===fy&&(r.on.call("end",e,e.__data__,r.index,r.group),l())}function l(){r.state=cu,r.timer.stop(),delete n[t];for(var u in n)return;delete e.__transition}}function hy(e,t){var r=e.__transition,n,i,a=!0,o;if(r){t=t==null?null:t+"";for(o in r){if((n=r[o]).name!==t){a=!1;continue}i=n.state>cy&&n.state<fy,n.state=cu,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]}a&&delete e.__transition}}function Nj(e){return this.each(function(){hy(this,e)})}function Lj(e,t){var r,n;return function(){var i=Dn(this,e),a=i.tween;if(a!==r){n=r=a;for(var o=0,s=n.length;o<s;++o)if(n[o].name===t){n=n.slice(),n.splice(o,1);break}}i.tween=n}}function Bj(e,t,r){var n,i;if(typeof r!="function")throw new Error;return function(){var a=Dn(this,e),o=a.tween;if(o!==n){i=(n=o).slice();for(var s={name:t,value:r},l=0,u=i.length;l<u;++l)if(i[l].name===t){i[l]=s;break}l===u&&i.push(s)}a.tween=i}}function qj(e,t){var r=this._id;if(e+="",arguments.length<2){for(var n=yn(this.node(),r).tween,i=0,a=n.length,o;i<a;++i)if((o=n[i]).name===e)return o.value;return null}return this.each((t==null?Lj:Bj)(r,e,t))}function cv(e,t,r){var n=e._id;return e.each(function(){var i=Dn(this,n);(i.value||(i.value={}))[t]=r.apply(this,arguments)}),function(i){return yn(i,n).value[t]}}function mT(e,t){var r;return(typeof t=="number"?hn:t instanceof fa?vu:(r=fa(t))?(t=r,vu):lT)(e,t)}function Fj(e){return function(){this.removeAttribute(e)}}function zj(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Uj(e,t,r){var n,i=r+"",a;return function(){var o=this.getAttribute(e);return o===i?null:o===n?a:a=t(n=o,r)}}function Wj(e,t,r){var n,i=r+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===n?a:a=t(n=o,r)}}function Hj(e,t,r){var n,i,a;return function(){var o,s=r(this),l;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),l=s+"",o===l?null:o===n&&l===i?a:(i=l,a=t(n=o,s)))}}function Gj(e,t,r){var n,i,a;return function(){var o,s=r(this),l;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),l=s+"",o===l?null:o===n&&l===i?a:(i=l,a=t(n=o,s)))}}function Kj(e,t){var r=Pc(e),n=r==="transform"?Ej:mT;return this.attrTween(e,typeof t=="function"?(r.local?Gj:Hj)(r,n,cv(this,"attr."+e,t)):t==null?(r.local?zj:Fj)(r):(r.local?Wj:Uj)(r,n,t))}function Xj(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Yj(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function Vj(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&Yj(e,a)),r}return i._value=t,i}function Zj(e,t){var r,n;function i(){var a=t.apply(this,arguments);return a!==n&&(r=(n=a)&&Xj(e,a)),r}return i._value=t,i}function Jj(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var n=Pc(e);return this.tween(r,(n.local?Vj:Zj)(n,t))}function Qj(e,t){return function(){uv(this,e).delay=+t.apply(this,arguments)}}function t2(e,t){return t=+t,function(){uv(this,e).delay=t}}function e2(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Qj:t2)(t,e)):yn(this.node(),t).delay}function r2(e,t){return function(){Dn(this,e).duration=+t.apply(this,arguments)}}function n2(e,t){return t=+t,function(){Dn(this,e).duration=t}}function i2(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?r2:n2)(t,e)):yn(this.node(),t).duration}function a2(e,t){if(typeof t!="function")throw new Error;return function(){Dn(this,e).ease=t}}function o2(e){var t=this._id;return arguments.length?this.each(a2(t,e)):yn(this.node(),t).ease}function s2(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Dn(this,e).ease=r}}function l2(e){if(typeof e!="function")throw new Error;return this.each(s2(this._id,e))}function u2(e){typeof e!="function"&&(e=YO(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var a=t[i],o=a.length,s=n[i]=[],l,u=0;u<o;++u)(l=a[u])&&e.call(l,l.__data__,u,a)&&s.push(l);return new Yn(n,this._parents,this._name,this._id)}function c2(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,n=t.length,i=r.length,a=Math.min(n,i),o=new Array(n),s=0;s<a;++s)for(var l=t[s],u=r[s],c=l.length,f=o[s]=new Array(c),h,p=0;p<c;++p)(h=l[p]||u[p])&&(f[p]=h);for(;s<n;++s)o[s]=t[s];return new Yn(o,this._parents,this._name,this._id)}function f2(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function h2(e,t,r){var n,i,a=f2(t)?uv:Dn;return function(){var o=a(this,e),s=o.on;s!==n&&(i=(n=s).copy()).on(t,r),o.on=i}}function p2(e,t){var r=this._id;return arguments.length<2?yn(this.node(),r).on.on(e):this.each(h2(r,e,t))}function d2(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function m2(){return this.on("end.remove",d2(this._id))}function y2(e){var t=this._name,r=this._id;typeof e!="function"&&(e=nv(e));for(var n=this._groups,i=n.length,a=new Array(i),o=0;o<i;++o)for(var s=n[o],l=s.length,u=a[o]=new Array(l),c,f,h=0;h<l;++h)(c=s[h])&&(f=e.call(c,c.__data__,h,s))&&("__data__"in c&&(f.__data__=c.__data__),u[h]=f,Mc(u[h],t,r,h,u,yn(c,r)));return new Yn(a,this._parents,t,r)}function g2(e){var t=this._name,r=this._id;typeof e!="function"&&(e=XO(e));for(var n=this._groups,i=n.length,a=[],o=[],s=0;s<i;++s)for(var l=n[s],u=l.length,c,f=0;f<u;++f)if(c=l[f]){for(var h=e.call(c,c.__data__,f,l),p,y=yn(c,r),m=0,d=h.length;m<d;++m)(p=h[m])&&Mc(p,t,r,m,h,y);a.push(h),o.push(c)}return new Yn(a,o,t,r)}var v2=Io.prototype.constructor;function b2(){return new v2(this._groups,this._parents)}function x2(e,t){var r,n,i;return function(){var a=to(this,e),o=(this.style.removeProperty(e),to(this,e));return a===o?null:a===r&&o===n?i:i=t(r=a,n=o)}}function yT(e){return function(){this.style.removeProperty(e)}}function _2(e,t,r){var n,i=r+"",a;return function(){var o=to(this,e);return o===i?null:o===n?a:a=t(n=o,r)}}function w2(e,t,r){var n,i,a;return function(){var o=to(this,e),s=r(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(e),to(this,e))),o===l?null:o===n&&l===i?a:(i=l,a=t(n=o,s))}}function S2(e,t){var r,n,i,a="style."+t,o="end."+a,s;return function(){var l=Dn(this,e),u=l.on,c=l.value[a]==null?s||(s=yT(t)):void 0;(u!==r||i!==c)&&(n=(r=u).copy()).on(o,i=c),l.on=n}}function A2(e,t,r){var n=(e+="")=="transform"?Pj:mT;return t==null?this.styleTween(e,x2(e,n)).on("end.style."+e,yT(e)):typeof t=="function"?this.styleTween(e,w2(e,n,cv(this,"style."+e,t))).each(S2(this._id,e)):this.styleTween(e,_2(e,n,t),r).on("end.style."+e,null)}function O2(e,t,r){return function(n){this.style.setProperty(e,t.call(this,n),r)}}function T2(e,t,r){var n,i;function a(){var o=t.apply(this,arguments);return o!==i&&(n=(i=o)&&O2(e,o,r)),n}return a._value=t,a}function P2(e,t,r){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;return this.tween(n,T2(e,t,r??""))}function E2(e){return function(){this.textContent=e}}function M2(e){return function(){var t=e(this);this.textContent=t??""}}function C2(e){return this.tween("text",typeof e=="function"?M2(cv(this,"text",e)):E2(e==null?"":e+""))}function k2(e){return function(t){this.textContent=e.call(this,t)}}function $2(e){var t,r;function n(){var i=e.apply(this,arguments);return i!==r&&(t=(r=i)&&k2(i)),t}return n._value=e,n}function j2(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,$2(e))}function R2(){for(var e=this._name,t=this._id,r=gT(),n=this._groups,i=n.length,a=0;a<i;++a)for(var o=n[a],s=o.length,l,u=0;u<s;++u)if(l=o[u]){var c=yn(l,t);Mc(l,e,r,u,o,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Yn(n,this._parents,e,r)}function D2(){var e,t,r=this,n=r._id,i=r.size();return new Promise(function(a,o){var s={value:o},l={value:function(){--i===0&&a()}};r.each(function(){var u=Dn(this,n),c=u.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),u.on=t}),i===0&&a()})}var I2=0;function Yn(e,t,r,n){this._groups=e,this._parents=t,this._name=r,this._id=n}function fv(e){return Io().transition(e)}function gT(){return++I2}var Nn=Io.prototype;Yn.prototype=fv.prototype={constructor:Yn,select:y2,selectAll:g2,selectChild:Nn.selectChild,selectChildren:Nn.selectChildren,filter:u2,merge:c2,selection:b2,transition:R2,call:Nn.call,nodes:Nn.nodes,node:Nn.node,size:Nn.size,empty:Nn.empty,each:Nn.each,on:p2,attr:Kj,attrTween:Jj,style:A2,styleTween:P2,text:C2,textTween:j2,remove:m2,tween:qj,delay:e2,duration:i2,ease:o2,easeVarying:l2,end:D2,[Symbol.iterator]:Nn[Symbol.iterator]};function N2(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var L2={time:null,delay:0,duration:250,ease:N2};function B2(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function q2(e){var t,r;e instanceof Yn?(t=e._id,e=e._name):(t=gT(),(r=L2).time=lv(),e=e==null?null:e+"");for(var n=this._groups,i=n.length,a=0;a<i;++a)for(var o=n[a],s=o.length,l,u=0;u<s;++u)(l=o[u])&&Mc(l,e,t,u,o,r||B2(l,t));return new Yn(n,this._parents,e,t)}Io.prototype.interrupt=Nj;Io.prototype.transition=q2;const Of=e=>()=>e;function F2(e,{sourceEvent:t,target:r,selection:n,mode:i,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},selection:{value:n,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:a}})}function z2(e){e.stopImmediatePropagation()}function Tf(e){e.preventDefault(),e.stopImmediatePropagation()}var nb={name:"drag"},Pf={name:"space"},Ca={name:"handle"},ka={name:"center"};const{abs:ib,max:ir,min:ar}=Math;function ab(e){return[+e[0],+e[1]]}function ob(e){return[ab(e[0]),ab(e[1])]}var fu={name:"x",handles:["w","e"].map(py),input:function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},Ef={},Ln={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"},sb={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},lb={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},U2={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},W2={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function py(e){return{type:e}}function H2(e){return!e.ctrlKey&&!e.button}function G2(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function K2(){return navigator.maxTouchPoints||"ontouchstart"in this}function Mf(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function X2(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function Pl(){return Y2(fu)}function Y2(e){var t=G2,r=H2,n=K2,i=!0,a=rv("start","brush","end"),o=6,s;function l(d){var b=d.property("__brush",m).selectAll(".overlay").data([py("overlay")]);b.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Ln.overlay).merge(b).each(function(){var x=Mf(this).extent;Kt(this).attr("x",x[0][0]).attr("y",x[0][1]).attr("width",x[1][0]-x[0][0]).attr("height",x[1][1]-x[0][1])}),d.selectAll(".selection").data([py("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Ln.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var v=d.selectAll(".handle").data(e.handles,function(x){return x.type});v.exit().remove(),v.enter().append("rect").attr("class",function(x){return"handle handle--"+x.type}).attr("cursor",function(x){return Ln[x.type]}),d.each(u).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(n).on("touchstart.brush",h).on("touchmove.brush",p).on("touchend.brush touchcancel.brush",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}l.move=function(d,b,v){d.tween?d.on("start.brush",function(x){c(this,arguments).beforestart().start(x)}).on("interrupt.brush end.brush",function(x){c(this,arguments).end(x)}).tween("brush",function(){var x=this,_=x.__brush,g=c(x,arguments),w=_.selection,S=e.input(typeof b=="function"?b.apply(this,arguments):b,_.extent),A=ba(w,S);function T(M){_.selection=M===1&&S===null?null:A(M),u.call(x),g.brush()}return w!==null&&S!==null?T:T(1)}):d.each(function(){var x=this,_=arguments,g=x.__brush,w=e.input(typeof b=="function"?b.apply(x,_):b,g.extent),S=c(x,_).beforestart();hy(x),g.selection=w===null?null:w,u.call(x),S.start(v).brush(v).end(v)})},l.clear=function(d,b){l.move(d,null,b)};function u(){var d=Kt(this),b=Mf(this).selection;b?(d.selectAll(".selection").style("display",null).attr("x",b[0][0]).attr("y",b[0][1]).attr("width",b[1][0]-b[0][0]).attr("height",b[1][1]-b[0][1]),d.selectAll(".handle").style("display",null).attr("x",function(v){return v.type[v.type.length-1]==="e"?b[1][0]-o/2:b[0][0]-o/2}).attr("y",function(v){return v.type[0]==="s"?b[1][1]-o/2:b[0][1]-o/2}).attr("width",function(v){return v.type==="n"||v.type==="s"?b[1][0]-b[0][0]+o:o}).attr("height",function(v){return v.type==="e"||v.type==="w"?b[1][1]-b[0][1]+o:o})):d.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(d,b,v){var x=d.__brush.emitter;return x&&(!v||!x.clean)?x:new f(d,b,v)}function f(d,b,v){this.that=d,this.args=b,this.state=d.__brush,this.active=0,this.clean=v}f.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(d,b){return this.starting?(this.starting=!1,this.emit("start",d,b)):this.emit("brush",d),this},brush:function(d,b){return this.emit("brush",d,b),this},end:function(d,b){return--this.active===0&&(delete this.state.emitter,this.emit("end",d,b)),this},emit:function(d,b,v){var x=Kt(this.that).datum();a.call(d,this.that,new F2(d,{sourceEvent:b,target:l,selection:e.output(this.state.selection),mode:v,dispatch:a}),x)}};function h(d){if(s&&!d.touches||!r.apply(this,arguments))return;var b=this,v=d.target.__data__.type,x=(i&&d.metaKey?v="overlay":v)==="selection"?nb:i&&d.altKey?ka:Ca,_=e===Ef?null:U2[v],g=e===fu?null:W2[v],w=Mf(b),S=w.extent,A=w.selection,T=S[0][0],M,P,E=S[0][1],C,$,j=S[1][0],k,R,L=S[1][1],U,I,B=0,q=0,N,G=_&&g&&i&&d.shiftKey,F,K,Z=Array.from(d.touches||[d],at=>{const dt=at.identifier;return at=ca(at,b),at.point0=at.slice(),at.identifier=dt,at});hy(b);var X=c(b,arguments,!0).beforestart();if(v==="overlay"){A&&(N=!0);const at=[Z[0],Z[1]||Z[0]];w.selection=A=[[M=e===Ef?T:ar(at[0][0],at[1][0]),C=e===fu?E:ar(at[0][1],at[1][1])],[k=e===Ef?j:ir(at[0][0],at[1][0]),U=e===fu?L:ir(at[0][1],at[1][1])]],Z.length>1&&rt(d)}else M=A[0][0],C=A[0][1],k=A[1][0],U=A[1][1];P=M,$=C,R=k,I=U;var z=Kt(b).attr("pointer-events","none"),Y=z.selectAll(".overlay").attr("cursor",Ln[v]);if(d.touches)X.moved=D,X.ended=W;else{var V=Kt(d.view).on("mousemove.brush",D,!0).on("mouseup.brush",W,!0);i&&V.on("keydown.brush",tt,!0).on("keyup.brush",ft,!0),ej(d.view)}u.call(b),X.start(d,x.name);function D(at){for(const dt of at.changedTouches||[at])for(const Pt of Z)Pt.identifier===dt.identifier&&(Pt.cur=ca(dt,b));if(G&&!F&&!K&&Z.length===1){const dt=Z[0];ib(dt.cur[0]-dt[0])>ib(dt.cur[1]-dt[1])?K=!0:F=!0}for(const dt of Z)dt.cur&&(dt[0]=dt.cur[0],dt[1]=dt.cur[1]);N=!0,Tf(at),rt(at)}function rt(at){const dt=Z[0],Pt=dt.point0;var ct;switch(B=dt[0]-Pt[0],q=dt[1]-Pt[1],x){case Pf:case nb:{_&&(B=ir(T-M,ar(j-k,B)),P=M+B,R=k+B),g&&(q=ir(E-C,ar(L-U,q)),$=C+q,I=U+q);break}case Ca:{Z[1]?(_&&(P=ir(T,ar(j,Z[0][0])),R=ir(T,ar(j,Z[1][0])),_=1),g&&($=ir(E,ar(L,Z[0][1])),I=ir(E,ar(L,Z[1][1])),g=1)):(_<0?(B=ir(T-M,ar(j-M,B)),P=M+B,R=k):_>0&&(B=ir(T-k,ar(j-k,B)),P=M,R=k+B),g<0?(q=ir(E-C,ar(L-C,q)),$=C+q,I=U):g>0&&(q=ir(E-U,ar(L-U,q)),$=C,I=U+q));break}case ka:{_&&(P=ir(T,ar(j,M-B*_)),R=ir(T,ar(j,k+B*_))),g&&($=ir(E,ar(L,C-q*g)),I=ir(E,ar(L,U+q*g)));break}}R<P&&(_*=-1,ct=M,M=k,k=ct,ct=P,P=R,R=ct,v in sb&&Y.attr("cursor",Ln[v=sb[v]])),I<$&&(g*=-1,ct=C,C=U,U=ct,ct=$,$=I,I=ct,v in lb&&Y.attr("cursor",Ln[v=lb[v]])),w.selection&&(A=w.selection),F&&(P=A[0][0],R=A[1][0]),K&&($=A[0][1],I=A[1][1]),(A[0][0]!==P||A[0][1]!==$||A[1][0]!==R||A[1][1]!==I)&&(w.selection=[[P,$],[R,I]],u.call(b),X.brush(at,x.name))}function W(at){if(z2(at),at.touches){if(at.touches.length)return;s&&clearTimeout(s),s=setTimeout(function(){s=null},500)}else rj(at.view,N),V.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);z.attr("pointer-events","all"),Y.attr("cursor",Ln.overlay),w.selection&&(A=w.selection),X2(A)&&(w.selection=null,u.call(b)),X.end(at,x.name)}function tt(at){switch(at.keyCode){case 16:{G=_&&g;break}case 18:{x===Ca&&(_&&(k=R-B*_,M=P+B*_),g&&(U=I-q*g,C=$+q*g),x=ka,rt(at));break}case 32:{(x===Ca||x===ka)&&(_<0?k=R-B:_>0&&(M=P-B),g<0?U=I-q:g>0&&(C=$-q),x=Pf,Y.attr("cursor",Ln.selection),rt(at));break}default:return}Tf(at)}function ft(at){switch(at.keyCode){case 16:{G&&(F=K=G=!1,rt(at));break}case 18:{x===ka&&(_<0?k=R:_>0&&(M=P),g<0?U=I:g>0&&(C=$),x=Ca,rt(at));break}case 32:{x===Pf&&(at.altKey?(_&&(k=R-B*_,M=P+B*_),g&&(U=I-q*g,C=$+q*g),x=ka):(_<0?k=R:_>0&&(M=P),g<0?U=I:g>0&&(C=$),x=Ca),Y.attr("cursor",Ln[v]),rt(at));break}default:return}Tf(at)}}function p(d){c(this,arguments).moved(d)}function y(d){c(this,arguments).ended(d)}function m(){var d=this.__brush||{selection:null};return d.extent=ob(t.apply(this,arguments)),d.dim=e,d}return l.extent=function(d){return arguments.length?(t=typeof d=="function"?d:Of(ob(d)),l):t},l.filter=function(d){return arguments.length?(r=typeof d=="function"?d:Of(!!d),l):r},l.touchable=function(d){return arguments.length?(n=typeof d=="function"?d:Of(!!d),l):n},l.handleSize=function(d){return arguments.length?(o=+d,l):o},l.keyModifiers=function(d){return arguments.length?(i=!!d,l):i},l.on=function(){var d=a.on.apply(a,arguments);return d===a?l:d},l}function wi(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function V2(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function hv(e){let t,r,n;e.length!==2?(t=wi,r=(s,l)=>wi(e(s),l),n=(s,l)=>e(s)-l):(t=e===wi||e===V2?e:Z2,r=e,n=e);function i(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;r(s[f],l)<0?u=f+1:c=f}while(u<c)}return u}function a(s,l,u=0,c=s.length){if(u<c){if(t(l,l)!==0)return c;do{const f=u+c>>>1;r(s[f],l)<=0?u=f+1:c=f}while(u<c)}return u}function o(s,l,u=0,c=s.length){const f=i(s,l,u,c-1);return f>u&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:i,center:o,right:a}}function Z2(){return 0}function vT(e){return e===null?NaN:+e}function*J2(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const Q2=hv(wi),El=Q2.right;hv(vT).center;class ub extends Map{constructor(t,r=rR){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(cb(this,t))}has(t){return super.has(cb(this,t))}set(t,r){return super.set(tR(this,t),r)}delete(t){return super.delete(eR(this,t))}}function cb({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function tR({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function eR({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function rR(e){return e!==null&&typeof e=="object"?e.valueOf():e}function nR(e=wi){if(e===wi)return bT;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function bT(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const iR=Math.sqrt(50),aR=Math.sqrt(10),oR=Math.sqrt(2);function wu(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=iR?10:a>=aR?5:a>=oR?2:1;let s,l,u;return i<0?(u=Math.pow(10,-i)/o,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,i)*o,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=r&&r<2?wu(e,t,r*2):[s,l,u]}function dy(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?wu(t,e,r):wu(e,t,r);if(!(a>=i))return[];const s=a-i+1,l=new Array(s);if(n)if(o<0)for(let u=0;u<s;++u)l[u]=(a-u)/-o;else for(let u=0;u<s;++u)l[u]=(a-u)*o;else if(o<0)for(let u=0;u<s;++u)l[u]=(i+u)/-o;else for(let u=0;u<s;++u)l[u]=(i+u)*o;return l}function my(e,t,r){return t=+t,e=+e,r=+r,wu(e,t,r)[2]}function yy(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?my(t,e,r):my(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function fb(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function hb(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function xT(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?bT:nR(i);n>r;){if(n-r>600){const l=n-r+1,u=t-r+1,c=Math.log(l),f=.5*Math.exp(2*c/3),h=.5*Math.sqrt(c*f*(l-f)/l)*(u-l/2<0?-1:1),p=Math.max(r,Math.floor(t-u*f/l+h)),y=Math.min(n,Math.floor(t+(l-u)*f/l+h));xT(e,t,p,y,i)}const a=e[t];let o=r,s=n;for(Zo(e,r,t),i(e[n],a)>0&&Zo(e,r,n);o<s;){for(Zo(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[r],a)===0?Zo(e,r,s):(++s,Zo(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function Zo(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function sR(e,t,r){if(e=Float64Array.from(J2(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return hb(e);if(t>=1)return fb(e);var n,i=(n-1)*t,a=Math.floor(i),o=fb(xT(e,a).subarray(0,a+1)),s=hb(e.subarray(a+1));return o+(s-o)*(i-a)}}function lR(e,t,r=vT){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),s=+r(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function uR(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function on(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function ri(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const gy=Symbol("implicit");function pv(){var e=new ub,t=[],r=[],n=gy;function i(a){let o=e.get(a);if(o===void 0){if(n!==gy)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new ub;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return pv(t,r).unknown(n)},on.apply(i,arguments),i}function Ls(){var e=pv().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,s=!1,l=0,u=0,c=.5;delete e.unknown;function f(){var h=t().length,p=i<n,y=p?i:n,m=p?n:i;a=(m-y)/Math.max(1,h-l+u*2),s&&(a=Math.floor(a)),y+=(m-y-a*(h-l))*c,o=a*(1-l),s&&(y=Math.round(y),o=Math.round(o));var d=uR(h).map(function(b){return y+a*b});return r(p?d.reverse():d)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([n,i]=h,n=+n,i=+i,f()):[n,i]},e.rangeRound=function(h){return[n,i]=h,n=+n,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(s=!!h,f()):s},e.padding=function(h){return arguments.length?(l=Math.min(1,u=+h),f()):l},e.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),f()):l},e.paddingOuter=function(h){return arguments.length?(u=+h,f()):u},e.align=function(h){return arguments.length?(c=Math.max(0,Math.min(1,h)),f()):c},e.copy=function(){return Ls(t(),[n,i]).round(s).paddingInner(l).paddingOuter(u).align(c)},on.apply(f(),arguments)}function _T(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return _T(t())},e}function bs(){return _T(Ls.apply(null,arguments).paddingInner(1))}function cR(e){return function(){return e}}function Su(e){return+e}var pb=[0,1];function mr(e){return e}function vy(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:cR(isNaN(t)?NaN:.5)}function fR(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function hR(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=vy(i,n),a=r(o,a)):(n=vy(n,i),a=r(a,o)),function(s){return a(n(s))}}function pR(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=vy(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(s){var l=El(e,s,1,n)-1;return a[l](i[l](s))}}function Ml(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Cc(){var e=pb,t=pb,r=ba,n,i,a,o=mr,s,l,u;function c(){var h=Math.min(e.length,t.length);return o!==mr&&(o=fR(e[0],e[h-1])),s=h>2?pR:hR,l=u=null,f}function f(h){return h==null||isNaN(h=+h)?a:(l||(l=s(e.map(n),t,r)))(n(o(h)))}return f.invert=function(h){return o(i((u||(u=s(t,e.map(n),hn)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,Su),c()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),c()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),r=sv,c()},f.clamp=function(h){return arguments.length?(o=h?!0:mr,c()):o!==mr},f.interpolate=function(h){return arguments.length?(r=h,c()):r},f.unknown=function(h){return arguments.length?(a=h,f):a},function(h,p){return n=h,i=p,c()}}function dv(){return Cc()(mr,mr)}function dR(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Au(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function ro(e){return e=Au(Math.abs(e)),e?e[1]:NaN}function mR(e,t){return function(r,n){for(var i=r.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),a.push(r.substring(i-=s,i+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function yR(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var gR=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Bs(e){if(!(t=gR.exec(e)))throw new Error("invalid format: "+e);var t;return new mv({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Bs.prototype=mv.prototype;function mv(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}mv.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function vR(e){t:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break t;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var wT;function bR(e,t){var r=Au(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(wT=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Au(e,Math.max(0,t+a-1))[0]}function db(e,t){var r=Au(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const mb={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:dR,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>db(e*100,t),r:db,s:bR,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function yb(e){return e}var gb=Array.prototype.map,vb=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function xR(e){var t=e.grouping===void 0||e.thousands===void 0?yb:mR(gb.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?yb:yR(gb.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(f){f=Bs(f);var h=f.fill,p=f.align,y=f.sign,m=f.symbol,d=f.zero,b=f.width,v=f.comma,x=f.precision,_=f.trim,g=f.type;g==="n"?(v=!0,g="g"):mb[g]||(x===void 0&&(x=12),_=!0,g="g"),(d||h==="0"&&p==="=")&&(d=!0,h="0",p="=");var w=m==="$"?r:m==="#"&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",S=m==="$"?n:/[%p]/.test(g)?o:"",A=mb[g],T=/[defgprs%]/.test(g);x=x===void 0?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function M(P){var E=w,C=S,$,j,k;if(g==="c")C=A(P)+C,P="";else{P=+P;var R=P<0||1/P<0;if(P=isNaN(P)?l:A(Math.abs(P),x),_&&(P=vR(P)),R&&+P==0&&y!=="+"&&(R=!1),E=(R?y==="("?y:s:y==="-"||y==="("?"":y)+E,C=(g==="s"?vb[8+wT/3]:"")+C+(R&&y==="("?")":""),T){for($=-1,j=P.length;++$<j;)if(k=P.charCodeAt($),48>k||k>57){C=(k===46?i+P.slice($+1):P.slice($))+C,P=P.slice(0,$);break}}}v&&!d&&(P=t(P,1/0));var L=E.length+P.length+C.length,U=L<b?new Array(b-L+1).join(h):"";switch(v&&d&&(P=t(U+P,U.length?b-C.length:1/0),U=""),p){case"<":P=E+P+C+U;break;case"=":P=E+U+P+C;break;case"^":P=U.slice(0,L=U.length>>1)+E+P+C+U.slice(L);break;default:P=U+E+P+C;break}return a(P)}return M.toString=function(){return f+""},M}function c(f,h){var p=u((f=Bs(f),f.type="f",f)),y=Math.max(-8,Math.min(8,Math.floor(ro(h)/3)))*3,m=Math.pow(10,-y),d=vb[8+y/3];return function(b){return p(m*b)+d}}return{format:u,formatPrefix:c}}var Wl,yv,ST;_R({thousands:",",grouping:[3],currency:["$",""]});function _R(e){return Wl=xR(e),yv=Wl.format,ST=Wl.formatPrefix,Wl}function wR(e){return Math.max(0,-ro(Math.abs(e)))}function SR(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ro(t)/3)))*3-ro(Math.abs(e)))}function AR(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ro(t)-ro(e))+1}function AT(e,t,r,n){var i=yy(e,t,r),a;switch(n=Bs(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=SR(i,o))&&(n.precision=a),ST(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=AR(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=wR(i))&&(n.precision=a-(n.type==="%")*2);break}}return yv(n)}function Ei(e){var t=e.domain;return e.ticks=function(r){var n=t();return dy(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return AT(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],s=n[a],l,u,c=10;for(s<o&&(u=o,o=s,s=u,u=i,i=a,a=u);c-- >0;){if(u=my(o,s,r),u===l)return n[i]=o,n[a]=s,t(n);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function Oi(){var e=dv();return e.copy=function(){return Ml(e,Oi())},on.apply(e,arguments),Ei(e)}function OT(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Su),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return OT(e).unknown(t)},e=arguments.length?Array.from(e,Su):[0,1],Ei(r)}function TT(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function bb(e){return Math.log(e)}function xb(e){return Math.exp(e)}function OR(e){return-Math.log(-e)}function TR(e){return-Math.exp(-e)}function PR(e){return isFinite(e)?+("1e"+e):e<0?0:e}function ER(e){return e===10?PR:e===Math.E?Math.exp:t=>Math.pow(e,t)}function MR(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function _b(e){return(t,r)=>-e(-t,r)}function gv(e){const t=e(bb,xb),r=t.domain;let n=10,i,a;function o(){return i=MR(n),a=ER(n),r()[0]<0?(i=_b(i),a=_b(a),e(OR,TR)):e(bb,xb),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let u=l[0],c=l[l.length-1];const f=c<u;f&&([u,c]=[c,u]);let h=i(u),p=i(c),y,m;const d=s==null?10:+s;let b=[];if(!(n%1)&&p-h<d){if(h=Math.floor(h),p=Math.ceil(p),u>0){for(;h<=p;++h)for(y=1;y<n;++y)if(m=h<0?y/a(-h):y*a(h),!(m<u)){if(m>c)break;b.push(m)}}else for(;h<=p;++h)for(y=n-1;y>=1;--y)if(m=h>0?y/a(-h):y*a(h),!(m<u)){if(m>c)break;b.push(m)}b.length*2<d&&(b=dy(u,c,d))}else b=dy(h,p,Math.min(p-h,d)).map(a);return f?b.reverse():b},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Bs(l)).precision==null&&(l.trim=!0),l=yv(l)),s===1/0)return l;const u=Math.max(1,n*s/t.ticks().length);return c=>{let f=c/a(Math.round(i(c)));return f*n<n-.5&&(f*=n),f<=u?l(c):""}},t.nice=()=>r(TT(r(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function PT(){const e=gv(Cc()).domain([1,10]);return e.copy=()=>Ml(e,PT()).base(e.base()),on.apply(e,arguments),e}function wb(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Sb(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function vv(e){var t=1,r=e(wb(t),Sb(t));return r.constant=function(n){return arguments.length?e(wb(t=+n),Sb(t)):t},Ei(r)}function ET(){var e=vv(Cc());return e.copy=function(){return Ml(e,ET()).constant(e.constant())},on.apply(e,arguments)}function Ab(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function CR(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function kR(e){return e<0?-e*e:e*e}function bv(e){var t=e(mr,mr),r=1;function n(){return r===1?e(mr,mr):r===.5?e(CR,kR):e(Ab(r),Ab(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Ei(t)}function xv(){var e=bv(Cc());return e.copy=function(){return Ml(e,xv()).exponent(e.exponent())},on.apply(e,arguments),e}function $R(){return xv.apply(null,arguments).exponent(.5)}function Ob(e){return Math.sign(e)*e*e}function jR(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function MT(){var e=dv(),t=[0,1],r=!1,n;function i(a){var o=jR(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Ob(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Su)).map(Ob)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return MT(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},on.apply(i,arguments),Ei(i)}function CT(){var e=[],t=[],r=[],n;function i(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o<s;)r[o-1]=lR(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?n:t[El(r,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?r[s-1]:e[0],s<r.length?r[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(wi),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return CT().domain(e).range(t).unknown(n)},on.apply(a,arguments)}function kT(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(l){return l!=null&&l<=l?i[El(n,l,0,r)]:a}function s(){var l=-1;for(n=new Array(r);++l<r;)n[l]=((l+1)*t-(l-r)*e)/(r+1);return o}return o.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},o.range=function(l){return arguments.length?(r=(i=Array.from(l)).length-1,s()):i.slice()},o.invertExtent=function(l){var u=i.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,n[0]]:u>=r?[n[r-1],t]:[n[u-1],n[u]]},o.unknown=function(l){return arguments.length&&(a=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return kT().domain([e,t]).range(i).unknown(a)},on.apply(Ei(o),arguments)}function $T(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[El(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return $T().domain(e).range(t).unknown(r)},on.apply(i,arguments)}const Cf=new Date,kf=new Date;function Fe(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const l=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return l;let u;do l.push(u=new Date(+a)),t(a,s),e(a);while(u<a&&a<o);return l},i.filter=a=>Fe(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(Cf.setTime(+a),kf.setTime(+o),e(Cf),e(kf),Math.floor(r(Cf,kf))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Ou=Fe(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ou.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Fe(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):Ou);Ou.range;const Un=1e3,Jr=Un*60,Wn=Jr*60,Vn=Wn*24,_v=Vn*7,Tb=Vn*30,$f=Vn*365,Xi=Fe(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Un)},(e,t)=>(t-e)/Un,e=>e.getUTCSeconds());Xi.range;const wv=Fe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Un)},(e,t)=>{e.setTime(+e+t*Jr)},(e,t)=>(t-e)/Jr,e=>e.getMinutes());wv.range;const Sv=Fe(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Jr)},(e,t)=>(t-e)/Jr,e=>e.getUTCMinutes());Sv.range;const Av=Fe(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Un-e.getMinutes()*Jr)},(e,t)=>{e.setTime(+e+t*Wn)},(e,t)=>(t-e)/Wn,e=>e.getHours());Av.range;const Ov=Fe(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Wn)},(e,t)=>(t-e)/Wn,e=>e.getUTCHours());Ov.range;const Cl=Fe(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Jr)/Vn,e=>e.getDate()-1);Cl.range;const kc=Fe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Vn,e=>e.getUTCDate()-1);kc.range;const jT=Fe(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Vn,e=>Math.floor(e/Vn));jT.range;function xa(e){return Fe(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*Jr)/_v)}const $c=xa(0),Tu=xa(1),RR=xa(2),DR=xa(3),no=xa(4),IR=xa(5),NR=xa(6);$c.range;Tu.range;RR.range;DR.range;no.range;IR.range;NR.range;function _a(e){return Fe(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/_v)}const jc=_a(0),Pu=_a(1),LR=_a(2),BR=_a(3),io=_a(4),qR=_a(5),FR=_a(6);jc.range;Pu.range;LR.range;BR.range;io.range;qR.range;FR.range;const Tv=Fe(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Tv.range;const Pv=Fe(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Pv.range;const Zn=Fe(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Zn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Fe(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Zn.range;const Jn=Fe(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Jn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Fe(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Jn.range;function RT(e,t,r,n,i,a){const o=[[Xi,1,Un],[Xi,5,5*Un],[Xi,15,15*Un],[Xi,30,30*Un],[a,1,Jr],[a,5,5*Jr],[a,15,15*Jr],[a,30,30*Jr],[i,1,Wn],[i,3,3*Wn],[i,6,6*Wn],[i,12,12*Wn],[n,1,Vn],[n,2,2*Vn],[r,1,_v],[t,1,Tb],[t,3,3*Tb],[e,1,$f]];function s(u,c,f){const h=c<u;h&&([u,c]=[c,u]);const p=f&&typeof f.range=="function"?f:l(u,c,f),y=p?p.range(u,+c+1):[];return h?y.reverse():y}function l(u,c,f){const h=Math.abs(c-u)/f,p=hv(([,,d])=>d).right(o,h);if(p===o.length)return e.every(yy(u/$f,c/$f,f));if(p===0)return Ou.every(Math.max(yy(u,c,f),1));const[y,m]=o[h/o[p-1][2]<o[p][2]/h?p-1:p];return y.every(m)}return[s,l]}const[zR,UR]=RT(Jn,Pv,jc,jT,Ov,Sv),[WR,HR]=RT(Zn,Tv,$c,Cl,Av,wv);function jf(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Rf(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Jo(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function GR(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,u=Qo(i),c=ts(i),f=Qo(a),h=ts(a),p=Qo(o),y=ts(o),m=Qo(s),d=ts(s),b=Qo(l),v=ts(l),x={a:R,A:L,b:U,B:I,c:null,d:$b,e:$b,f:mD,g:OD,G:PD,H:hD,I:pD,j:dD,L:DT,m:yD,M:gD,p:B,q,Q:Db,s:Ib,S:vD,u:bD,U:xD,V:_D,w:wD,W:SD,x:null,X:null,y:AD,Y:TD,Z:ED,"%":Rb},_={a:N,A:G,b:F,B:K,c:null,d:jb,e:jb,f:$D,g:zD,G:WD,H:MD,I:CD,j:kD,L:NT,m:jD,M:RD,p:Z,q:X,Q:Db,s:Ib,S:DD,u:ID,U:ND,V:LD,w:BD,W:qD,x:null,X:null,y:FD,Y:UD,Z:HD,"%":Rb},g={a:M,A:P,b:E,B:C,c:$,d:Cb,e:Cb,f:lD,g:Mb,G:Eb,H:kb,I:kb,j:iD,L:sD,m:nD,M:aD,p:T,q:rD,Q:cD,s:fD,S:oD,u:ZR,U:JR,V:QR,w:VR,W:tD,x:j,X:k,y:Mb,Y:Eb,Z:eD,"%":uD};x.x=w(r,x),x.X=w(n,x),x.c=w(t,x),_.x=w(r,_),_.X=w(n,_),_.c=w(t,_);function w(z,Y){return function(V){var D=[],rt=-1,W=0,tt=z.length,ft,at,dt;for(V instanceof Date||(V=new Date(+V));++rt<tt;)z.charCodeAt(rt)===37&&(D.push(z.slice(W,rt)),(at=Pb[ft=z.charAt(++rt)])!=null?ft=z.charAt(++rt):at=ft==="e"?" ":"0",(dt=Y[ft])&&(ft=dt(V,at)),D.push(ft),W=rt+1);return D.push(z.slice(W,rt)),D.join("")}}function S(z,Y){return function(V){var D=Jo(1900,void 0,1),rt=A(D,z,V+="",0),W,tt;if(rt!=V.length)return null;if("Q"in D)return new Date(D.Q);if("s"in D)return new Date(D.s*1e3+("L"in D?D.L:0));if(Y&&!("Z"in D)&&(D.Z=0),"p"in D&&(D.H=D.H%12+D.p*12),D.m===void 0&&(D.m="q"in D?D.q:0),"V"in D){if(D.V<1||D.V>53)return null;"w"in D||(D.w=1),"Z"in D?(W=Rf(Jo(D.y,0,1)),tt=W.getUTCDay(),W=tt>4||tt===0?Pu.ceil(W):Pu(W),W=kc.offset(W,(D.V-1)*7),D.y=W.getUTCFullYear(),D.m=W.getUTCMonth(),D.d=W.getUTCDate()+(D.w+6)%7):(W=jf(Jo(D.y,0,1)),tt=W.getDay(),W=tt>4||tt===0?Tu.ceil(W):Tu(W),W=Cl.offset(W,(D.V-1)*7),D.y=W.getFullYear(),D.m=W.getMonth(),D.d=W.getDate()+(D.w+6)%7)}else("W"in D||"U"in D)&&("w"in D||(D.w="u"in D?D.u%7:"W"in D?1:0),tt="Z"in D?Rf(Jo(D.y,0,1)).getUTCDay():jf(Jo(D.y,0,1)).getDay(),D.m=0,D.d="W"in D?(D.w+6)%7+D.W*7-(tt+5)%7:D.w+D.U*7-(tt+6)%7);return"Z"in D?(D.H+=D.Z/100|0,D.M+=D.Z%100,Rf(D)):jf(D)}}function A(z,Y,V,D){for(var rt=0,W=Y.length,tt=V.length,ft,at;rt<W;){if(D>=tt)return-1;if(ft=Y.charCodeAt(rt++),ft===37){if(ft=Y.charAt(rt++),at=g[ft in Pb?Y.charAt(rt++):ft],!at||(D=at(z,V,D))<0)return-1}else if(ft!=V.charCodeAt(D++))return-1}return D}function T(z,Y,V){var D=u.exec(Y.slice(V));return D?(z.p=c.get(D[0].toLowerCase()),V+D[0].length):-1}function M(z,Y,V){var D=p.exec(Y.slice(V));return D?(z.w=y.get(D[0].toLowerCase()),V+D[0].length):-1}function P(z,Y,V){var D=f.exec(Y.slice(V));return D?(z.w=h.get(D[0].toLowerCase()),V+D[0].length):-1}function E(z,Y,V){var D=b.exec(Y.slice(V));return D?(z.m=v.get(D[0].toLowerCase()),V+D[0].length):-1}function C(z,Y,V){var D=m.exec(Y.slice(V));return D?(z.m=d.get(D[0].toLowerCase()),V+D[0].length):-1}function $(z,Y,V){return A(z,t,Y,V)}function j(z,Y,V){return A(z,r,Y,V)}function k(z,Y,V){return A(z,n,Y,V)}function R(z){return o[z.getDay()]}function L(z){return a[z.getDay()]}function U(z){return l[z.getMonth()]}function I(z){return s[z.getMonth()]}function B(z){return i[+(z.getHours()>=12)]}function q(z){return 1+~~(z.getMonth()/3)}function N(z){return o[z.getUTCDay()]}function G(z){return a[z.getUTCDay()]}function F(z){return l[z.getUTCMonth()]}function K(z){return s[z.getUTCMonth()]}function Z(z){return i[+(z.getUTCHours()>=12)]}function X(z){return 1+~~(z.getUTCMonth()/3)}return{format:function(z){var Y=w(z+="",x);return Y.toString=function(){return z},Y},parse:function(z){var Y=S(z+="",!1);return Y.toString=function(){return z},Y},utcFormat:function(z){var Y=w(z+="",_);return Y.toString=function(){return z},Y},utcParse:function(z){var Y=S(z+="",!0);return Y.toString=function(){return z},Y}}}var Pb={"-":"",_:" ",0:"0"},Ke=/^\s*\d+/,KR=/^%/,XR=/[\\^$*+?|[\]().{}]/g;function Dt(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function YR(e){return e.replace(XR,"\\$&")}function Qo(e){return new RegExp("^(?:"+e.map(YR).join("|")+")","i")}function ts(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function VR(e,t,r){var n=Ke.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function ZR(e,t,r){var n=Ke.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function JR(e,t,r){var n=Ke.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function QR(e,t,r){var n=Ke.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function tD(e,t,r){var n=Ke.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Eb(e,t,r){var n=Ke.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Mb(e,t,r){var n=Ke.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function eD(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function rD(e,t,r){var n=Ke.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function nD(e,t,r){var n=Ke.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Cb(e,t,r){var n=Ke.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function iD(e,t,r){var n=Ke.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function kb(e,t,r){var n=Ke.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function aD(e,t,r){var n=Ke.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function oD(e,t,r){var n=Ke.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function sD(e,t,r){var n=Ke.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function lD(e,t,r){var n=Ke.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function uD(e,t,r){var n=KR.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function cD(e,t,r){var n=Ke.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function fD(e,t,r){var n=Ke.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function $b(e,t){return Dt(e.getDate(),t,2)}function hD(e,t){return Dt(e.getHours(),t,2)}function pD(e,t){return Dt(e.getHours()%12||12,t,2)}function dD(e,t){return Dt(1+Cl.count(Zn(e),e),t,3)}function DT(e,t){return Dt(e.getMilliseconds(),t,3)}function mD(e,t){return DT(e,t)+"000"}function yD(e,t){return Dt(e.getMonth()+1,t,2)}function gD(e,t){return Dt(e.getMinutes(),t,2)}function vD(e,t){return Dt(e.getSeconds(),t,2)}function bD(e){var t=e.getDay();return t===0?7:t}function xD(e,t){return Dt($c.count(Zn(e)-1,e),t,2)}function IT(e){var t=e.getDay();return t>=4||t===0?no(e):no.ceil(e)}function _D(e,t){return e=IT(e),Dt(no.count(Zn(e),e)+(Zn(e).getDay()===4),t,2)}function wD(e){return e.getDay()}function SD(e,t){return Dt(Tu.count(Zn(e)-1,e),t,2)}function AD(e,t){return Dt(e.getFullYear()%100,t,2)}function OD(e,t){return e=IT(e),Dt(e.getFullYear()%100,t,2)}function TD(e,t){return Dt(e.getFullYear()%1e4,t,4)}function PD(e,t){var r=e.getDay();return e=r>=4||r===0?no(e):no.ceil(e),Dt(e.getFullYear()%1e4,t,4)}function ED(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Dt(t/60|0,"0",2)+Dt(t%60,"0",2)}function jb(e,t){return Dt(e.getUTCDate(),t,2)}function MD(e,t){return Dt(e.getUTCHours(),t,2)}function CD(e,t){return Dt(e.getUTCHours()%12||12,t,2)}function kD(e,t){return Dt(1+kc.count(Jn(e),e),t,3)}function NT(e,t){return Dt(e.getUTCMilliseconds(),t,3)}function $D(e,t){return NT(e,t)+"000"}function jD(e,t){return Dt(e.getUTCMonth()+1,t,2)}function RD(e,t){return Dt(e.getUTCMinutes(),t,2)}function DD(e,t){return Dt(e.getUTCSeconds(),t,2)}function ID(e){var t=e.getUTCDay();return t===0?7:t}function ND(e,t){return Dt(jc.count(Jn(e)-1,e),t,2)}function LT(e){var t=e.getUTCDay();return t>=4||t===0?io(e):io.ceil(e)}function LD(e,t){return e=LT(e),Dt(io.count(Jn(e),e)+(Jn(e).getUTCDay()===4),t,2)}function BD(e){return e.getUTCDay()}function qD(e,t){return Dt(Pu.count(Jn(e)-1,e),t,2)}function FD(e,t){return Dt(e.getUTCFullYear()%100,t,2)}function zD(e,t){return e=LT(e),Dt(e.getUTCFullYear()%100,t,2)}function UD(e,t){return Dt(e.getUTCFullYear()%1e4,t,4)}function WD(e,t){var r=e.getUTCDay();return e=r>=4||r===0?io(e):io.ceil(e),Dt(e.getUTCFullYear()%1e4,t,4)}function HD(){return"+0000"}function Rb(){return"%"}function Db(e){return+e}function Ib(e){return Math.floor(+e/1e3)}var $a,BT,qT;GD({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function GD(e){return $a=GR(e),BT=$a.format,$a.parse,qT=$a.utcFormat,$a.utcParse,$a}function KD(e){return new Date(e)}function XD(e){return e instanceof Date?+e:+new Date(+e)}function Ev(e,t,r,n,i,a,o,s,l,u){var c=dv(),f=c.invert,h=c.domain,p=u(".%L"),y=u(":%S"),m=u("%I:%M"),d=u("%I %p"),b=u("%a %d"),v=u("%b %d"),x=u("%B"),_=u("%Y");function g(w){return(l(w)<w?p:s(w)<w?y:o(w)<w?m:a(w)<w?d:n(w)<w?i(w)<w?b:v:r(w)<w?x:_)(w)}return c.invert=function(w){return new Date(f(w))},c.domain=function(w){return arguments.length?h(Array.from(w,XD)):h().map(KD)},c.ticks=function(w){var S=h();return e(S[0],S[S.length-1],w??10)},c.tickFormat=function(w,S){return S==null?g:u(S)},c.nice=function(w){var S=h();return(!w||typeof w.range!="function")&&(w=t(S[0],S[S.length-1],w??10)),w?h(TT(S,w)):c},c.copy=function(){return Ml(c,Ev(e,t,r,n,i,a,o,s,l,u))},c}function Ha(){return on.apply(Ev(WR,HR,Zn,Tv,$c,Cl,Av,wv,Xi,BT).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function YD(){return on.apply(Ev(zR,UR,Jn,Pv,jc,kc,Ov,Sv,Xi,qT).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Rc(){var e=0,t=1,r,n,i,a,o=mr,s=!1,l;function u(f){return f==null||isNaN(f=+f)?l:o(i===0?.5:(f=(a(f)-r)*i,s?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),u):[e,t]},u.clamp=function(f){return arguments.length?(s=!!f,u):s},u.interpolator=function(f){return arguments.length?(o=f,u):o};function c(f){return function(h){var p,y;return arguments.length?([p,y]=h,o=f(p,y),u):[o(0),o(1)]}}return u.range=c(ba),u.rangeRound=c(sv),u.unknown=function(f){return arguments.length?(l=f,u):l},function(f){return a=f,r=f(e),n=f(t),i=r===n?0:1/(n-r),u}}function Mi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function FT(){var e=Ei(Rc()(mr));return e.copy=function(){return Mi(e,FT())},ri.apply(e,arguments)}function zT(){var e=gv(Rc()).domain([1,10]);return e.copy=function(){return Mi(e,zT()).base(e.base())},ri.apply(e,arguments)}function UT(){var e=vv(Rc());return e.copy=function(){return Mi(e,UT()).constant(e.constant())},ri.apply(e,arguments)}function Mv(){var e=bv(Rc());return e.copy=function(){return Mi(e,Mv()).exponent(e.exponent())},ri.apply(e,arguments)}function VD(){return Mv.apply(null,arguments).exponent(.5)}function WT(){var e=[],t=mr;function r(n){if(n!=null&&!isNaN(n=+n))return t((El(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(wi),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>sR(e,a/n))},r.copy=function(){return WT(t).domain(e)},ri.apply(r,arguments)}function Dc(){var e=0,t=.5,r=1,n=1,i,a,o,s,l,u=mr,c,f=!1,h;function p(m){return isNaN(m=+m)?h:(m=.5+((m=+c(m))-a)*(n*m<n*a?s:l),u(f?Math.max(0,Math.min(1,m)):m))}p.domain=function(m){return arguments.length?([e,t,r]=m,i=c(e=+e),a=c(t=+t),o=c(r=+r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,p):[e,t,r]},p.clamp=function(m){return arguments.length?(f=!!m,p):f},p.interpolator=function(m){return arguments.length?(u=m,p):u};function y(m){return function(d){var b,v,x;return arguments.length?([b,v,x]=d,u=Mj(m,[b,v,x]),p):[u(0),u(.5),u(1)]}}return p.range=y(ba),p.rangeRound=y(sv),p.unknown=function(m){return arguments.length?(h=m,p):h},function(m){return c=m,i=m(e),a=m(t),o=m(r),s=i===a?0:.5/(a-i),l=a===o?0:.5/(o-a),n=a<i?-1:1,p}}function HT(){var e=Ei(Dc()(mr));return e.copy=function(){return Mi(e,HT())},ri.apply(e,arguments)}function GT(){var e=gv(Dc()).domain([.1,1,10]);return e.copy=function(){return Mi(e,GT()).base(e.base())},ri.apply(e,arguments)}function KT(){var e=vv(Dc());return e.copy=function(){return Mi(e,KT()).constant(e.constant())},ri.apply(e,arguments)}function Cv(){var e=bv(Dc());return e.copy=function(){return Mi(e,Cv()).exponent(e.exponent())},ri.apply(e,arguments)}function ZD(){return Cv.apply(null,arguments).exponent(.5)}function ae(e){return function(){return e}}const XT=Math.cos,Eu=Math.sin,gn=Math.sqrt,Mu=Math.PI,Ic=2*Mu,by=Math.PI,xy=2*by,Wi=1e-6,JD=xy-Wi;function YT(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function QD(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return YT;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class tI{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?YT:QD(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,l=n-t,u=i-r,c=o-t,f=s-r,h=c*c+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(h>Wi)if(!(Math.abs(f*l-u*c)>Wi)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let p=n-o,y=i-s,m=l*l+u*u,d=p*p+y*y,b=Math.sqrt(m),v=Math.sqrt(h),x=a*Math.tan((by-Math.acos((m+h-d)/(2*b*v)))/2),_=x/v,g=x/b;Math.abs(_-1)>Wi&&this._append`L${t+_*c},${r+_*f}`,this._append`A${a},${a},0,0,${+(f*p>c*y)},${this._x1=t+g*l},${this._y1=r+g*u}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),l=n*Math.sin(i),u=t+s,c=r+l,f=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${u},${c}`:(Math.abs(this._x1-u)>Wi||Math.abs(this._y1-c)>Wi)&&this._append`L${u},${c}`,n&&(h<0&&(h=h%xy+xy),h>JD?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=u},${this._y1=c}`:h>Wi&&this._append`A${n},${n},0,${+(h>=by)},${f},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function kv(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new tI(t)}function $v(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function VT(e){this._context=e}VT.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Qn(e){return new VT(e)}function ZT(e){return e[0]}function JT(e){return e[1]}function jv(e,t){var r=ae(!0),n=null,i=Qn,a=null,o=kv(s);e=typeof e=="function"?e:e===void 0?ZT:ae(e),t=typeof t=="function"?t:t===void 0?JT:ae(t);function s(l){var u,c=(l=$v(l)).length,f,h=!1,p;for(n==null&&(a=i(p=o())),u=0;u<=c;++u)!(u<c&&r(f=l[u],u,l))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(f,u,l),+t(f,u,l));if(p)return a=null,p+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:ae(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:ae(+l),s):t},s.defined=function(l){return arguments.length?(r=typeof l=="function"?l:ae(!!l),s):r},s.curve=function(l){return arguments.length?(i=l,n!=null&&(a=i(n)),s):i},s.context=function(l){return arguments.length?(l==null?n=a=null:a=i(n=l),s):n},s}function mi(e,t,r){var n=null,i=ae(!0),a=null,o=Qn,s=null,l=kv(u);e=typeof e=="function"?e:e===void 0?ZT:ae(+e),t=typeof t=="function"?t:ae(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?JT:ae(+r);function u(f){var h,p,y,m=(f=$v(f)).length,d,b=!1,v,x=new Array(m),_=new Array(m);for(a==null&&(s=o(v=l())),h=0;h<=m;++h){if(!(h<m&&i(d=f[h],h,f))===b)if(b=!b)p=h,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),y=h-1;y>=p;--y)s.point(x[y],_[y]);s.lineEnd(),s.areaEnd()}b&&(x[h]=+e(d,h,f),_[h]=+t(d,h,f),s.point(n?+n(d,h,f):x[h],r?+r(d,h,f):_[h]))}if(v)return s=null,v+""||null}function c(){return jv().defined(i).curve(o).context(a)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:ae(+f),n=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:ae(+f),u):e},u.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:ae(+f),u):n},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:ae(+f),r=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:ae(+f),u):t},u.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:ae(+f),u):r},u.lineX0=u.lineY0=function(){return c().x(e).y(t)},u.lineY1=function(){return c().x(e).y(r)},u.lineX1=function(){return c().x(n).y(t)},u.defined=function(f){return arguments.length?(i=typeof f=="function"?f:ae(!!f),u):i},u.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),u):o},u.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),u):a},u}class QT{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function eI(e){return new QT(e,!0)}function rI(e){return new QT(e,!1)}const Rv={draw(e,t){const r=gn(t/Mu);e.moveTo(r,0),e.arc(0,0,r,0,Ic)}},nI={draw(e,t){const r=gn(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},tP=gn(1/3),iI=tP*2,aI={draw(e,t){const r=gn(t/iI),n=r*tP;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},oI={draw(e,t){const r=gn(t),n=-r/2;e.rect(n,n,r,r)}},sI=.8908130915292852,eP=Eu(Mu/10)/Eu(7*Mu/10),lI=Eu(Ic/10)*eP,uI=-XT(Ic/10)*eP,cI={draw(e,t){const r=gn(t*sI),n=lI*r,i=uI*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=Ic*a/5,s=XT(o),l=Eu(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*i,l*n+s*i)}e.closePath()}},Df=gn(3),fI={draw(e,t){const r=-gn(t/(Df*3));e.moveTo(0,r*2),e.lineTo(-Df*r,-r),e.lineTo(Df*r,-r),e.closePath()}},Kr=-.5,Xr=gn(3)/2,_y=1/gn(12),hI=(_y/2+1)*3,pI={draw(e,t){const r=gn(t/hI),n=r/2,i=r*_y,a=n,o=r*_y+r,s=-a,l=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(s,l),e.lineTo(Kr*n-Xr*i,Xr*n+Kr*i),e.lineTo(Kr*a-Xr*o,Xr*a+Kr*o),e.lineTo(Kr*s-Xr*l,Xr*s+Kr*l),e.lineTo(Kr*n+Xr*i,Kr*i-Xr*n),e.lineTo(Kr*a+Xr*o,Kr*o-Xr*a),e.lineTo(Kr*s+Xr*l,Kr*l-Xr*s),e.closePath()}};function dI(e,t){let r=null,n=kv(i);e=typeof e=="function"?e:ae(e||Rv),t=typeof t=="function"?t:ae(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:ae(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:ae(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function Cu(){}function ku(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function rP(e){this._context=e}rP.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:ku(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:ku(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function mI(e){return new rP(e)}function nP(e){this._context=e}nP.prototype={areaStart:Cu,areaEnd:Cu,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);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ku(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function yI(e){return new nP(e)}function iP(e){this._context=e}iP.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||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ku(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function gI(e){return new iP(e)}function aP(e){this._context=e}aP.prototype={areaStart:Cu,areaEnd:Cu,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function vI(e){return new aP(e)}function Nb(e){return e<0?-1:1}function Lb(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),s=(a*i+o*n)/(n+i);return(Nb(a)+Nb(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Bb(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function If(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-n)/3;e._context.bezierCurveTo(n+s,i+s*t,a-s,o-s*r,a,o)}function $u(e){this._context=e}$u.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:If(this,this._t0,Bb(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,If(this,Bb(this,r=Lb(this,e,t)),r);break;default:If(this,this._t0,r=Lb(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function oP(e){this._context=new sP(e)}(oP.prototype=Object.create($u.prototype)).point=function(e,t){$u.prototype.point.call(this,t,e)};function sP(e){this._context=e}sP.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function bI(e){return new $u(e)}function xI(e){return new oP(e)}function lP(e){this._context=e}lP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=qb(e),i=qb(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function qb(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function _I(e){return new lP(e)}function Nc(e,t){this._context=e,this._t=t}Nc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function wI(e){return new Nc(e,.5)}function SI(e){return new Nc(e,0)}function AI(e){return new Nc(e,1)}function ao(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,s=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function wy(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function OI(e,t){return e[t]}function TI(e){const t=[];return t.key=e,t}function qs(){var e=ae([]),t=wy,r=ao,n=OI;function i(a){var o=Array.from(e.apply(this,arguments),TI),s,l=o.length,u=-1,c;for(const f of a)for(s=0,++u;s<l;++s)(o[s][u]=[0,+n(f,o[s].key,u,a)]).data=f;for(s=0,c=$v(t(o));s<l;++s)o[c[s]].index=s;return r(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:ae(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:ae(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?wy:typeof a=="function"?a:ae(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??ao,i):r},i}function PI(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}ao(e,t)}}function EI(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,s=0;o<i;++o)s+=e[o][r][1]||0;n[r][1]+=n[r][0]=-s/2}ao(e,t)}}function MI(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var s=0,l=0,u=0;s<o;++s){for(var c=e[t[s]],f=c[n][1]||0,h=c[n-1][1]||0,p=(f-h)/2,y=0;y<s;++y){var m=e[t[y]],d=m[n][1]||0,b=m[n-1][1]||0;p+=d-b}l+=f,u+=p*f}i[n-1][1]+=i[n-1][0]=r,l&&(r-=u/l)}i[n-1][1]+=i[n-1][0]=r,ao(e,t)}}function Fn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}/*!
|
|
2
|
+
* GSAP 3.13.0
|
|
3
|
+
* https://gsap.com
|
|
4
|
+
*
|
|
5
|
+
* @license Copyright 2008-2025, GreenSock. All rights reserved.
|
|
6
|
+
* Subject to the terms at https://gsap.com/standard-license
|
|
7
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
8
|
+
*/var Fr={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},oo={duration:.5,overwrite:!1,delay:0},Dv,tr,ue,Qr=1e8,te=1/Qr,Sy=Math.PI*2,CI=Sy/4,kI=0,cP=Math.sqrt,$I=Math.cos,jI=Math.sin,Ge=function(t){return typeof t=="string"},be=function(t){return typeof t=="function"},ti=function(t){return typeof t=="number"},Iv=function(t){return typeof t>"u"},jn=function(t){return typeof t=="object"},_r=function(t){return t!==!1},Nv=function(){return typeof window<"u"},Hl=function(t){return be(t)||Ge(t)},fP=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},fr=Array.isArray,Ay=/(?:-?\.?\d|\.)+/gi,hP=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Ba=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Nf=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,pP=/[+-]=-?[.\d]+/,dP=/[^,'"\[\]\s]+/gi,RI=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,de,An,Oy,Lv,Ur={},ju={},mP,yP=function(t){return(ju=so(t,Ur))&&Pr},Bv=function(t,r){return console.warn("Invalid property",t,"set to",r,"Missing plugin? gsap.registerPlugin()")},Fs=function(t,r){return!r&&console.warn(t)},gP=function(t,r){return t&&(Ur[t]=r)&&ju&&(ju[t]=r)||Ur},zs=function(){return 0},DI={suppressEvents:!0,isStart:!0,kill:!1},hu={suppressEvents:!0,kill:!1},II={suppressEvents:!0},qv={},Si=[],Ty={},vP,Nr={},Lf={},Fb=30,pu=[],Fv="",zv=function(t){var r=t[0],n,i;if(jn(r)||be(r)||(t=[t]),!(n=(r._gsap||{}).harness)){for(i=pu.length;i--&&!pu[i].targetTest(r););n=pu[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new zP(t[i],n)))||t.splice(i,1);return t},ea=function(t){return t._gsap||zv(tn(t))[0]._gsap},bP=function(t,r,n){return(n=t[r])&&be(n)?t[r]():Iv(n)&&t.getAttribute&&t.getAttribute(r)||n},wr=function(t,r){return(t=t.split(",")).forEach(r)||t},Ae=function(t){return Math.round(t*1e5)/1e5||0},ke=function(t){return Math.round(t*1e7)/1e7||0},Ga=function(t,r){var n=r.charAt(0),i=parseFloat(r.substr(2));return t=parseFloat(t),n==="+"?t+i:n==="-"?t-i:n==="*"?t*i:t/i},NI=function(t,r){for(var n=r.length,i=0;t.indexOf(r[i])<0&&++i<n;);return i<n},Ru=function(){var t=Si.length,r=Si.slice(0),n,i;for(Ty={},Si.length=0,n=0;n<t;n++)i=r[n],i&&i._lazy&&(i.render(i._lazy[0],i._lazy[1],!0)._lazy=0)},Uv=function(t){return!!(t._initted||t._startAt||t.add)},xP=function(t,r,n,i){Si.length&&!tr&&Ru(),t.render(r,n,!!(tr&&r<0&&Uv(t))),Si.length&&!tr&&Ru()},_P=function(t){var r=parseFloat(t);return(r||r===0)&&(t+"").match(dP).length<2?r:Ge(t)?t.trim():t},wP=function(t){return t},Wr=function(t,r){for(var n in r)n in t||(t[n]=r[n]);return t},LI=function(t){return function(r,n){for(var i in n)i in r||i==="duration"&&t||i==="ease"||(r[i]=n[i])}},so=function(t,r){for(var n in r)t[n]=r[n];return t},zb=function e(t,r){for(var n in r)n!=="__proto__"&&n!=="constructor"&&n!=="prototype"&&(t[n]=jn(r[n])?e(t[n]||(t[n]={}),r[n]):r[n]);return t},Du=function(t,r){var n={},i;for(i in t)i in r||(n[i]=t[i]);return n},xs=function(t){var r=t.parent||de,n=t.keyframes?LI(fr(t.keyframes)):Wr;if(_r(t.inherit))for(;r;)n(t,r.vars.defaults),r=r.parent||r._dp;return t},BI=function(t,r){for(var n=t.length,i=n===r.length;i&&n--&&t[n]===r[n];);return n<0},SP=function(t,r,n,i,a){var o=t[i],s;if(a)for(s=r[a];o&&o[a]>s;)o=o._prev;return o?(r._next=o._next,o._next=r):(r._next=t[n],t[n]=r),r._next?r._next._prev=r:t[i]=r,r._prev=o,r.parent=r._dp=t,r},Lc=function(t,r,n,i){n===void 0&&(n="_first"),i===void 0&&(i="_last");var a=r._prev,o=r._next;a?a._next=o:t[n]===r&&(t[n]=o),o?o._prev=a:t[i]===r&&(t[i]=a),r._next=r._prev=r.parent=null},Ti=function(t,r){t.parent&&(!r||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},ra=function(t,r){if(t&&(!r||r._end>t._dur||r._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},qI=function(t){for(var r=t.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return t},Py=function(t,r,n,i){return t._startAt&&(tr?t._startAt.revert(hu):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(r,!0,i))},FI=function e(t){return!t||t._ts&&e(t.parent)},Ub=function(t){return t._repeat?lo(t._tTime,t=t.duration()+t._rDelay)*t:0},lo=function(t,r){var n=Math.floor(t=ke(t/r));return t&&n===t?n-1:n},Iu=function(t,r){return(t-r._start)*r._ts+(r._ts>=0?0:r._dirty?r.totalDuration():r._tDur)},Bc=function(t){return t._end=ke(t._start+(t._tDur/Math.abs(t._ts||t._rts||te)||0))},qc=function(t,r){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=ke(n._time-(t._ts>0?r/t._ts:((t._dirty?t.totalDuration():t._tDur)-r)/-t._ts)),Bc(t),n._dirty||ra(n,t)),t},AP=function(t,r){var n;if((r._time||!r._dur&&r._initted||r._start<t._time&&(r._dur||!r.add))&&(n=Iu(t.rawTime(),r),(!r._dur||kl(0,r.totalDuration(),n)-r._tTime>te)&&r.render(n,!0)),ra(t,r)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(n=t;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-te}},Tn=function(t,r,n,i){return r.parent&&Ti(r),r._start=ke((ti(n)?n:n||t!==de?Vr(t,n,r):t._time)+r._delay),r._end=ke(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),SP(t,r,"_first","_last",t._sort?"_start":0),Ey(r)||(t._recent=r),i||AP(t,r),t._ts<0&&qc(t,t._tTime),t},OP=function(t,r){return(Ur.ScrollTrigger||Bv("scrollTrigger",r))&&Ur.ScrollTrigger.create(r,t)},TP=function(t,r,n,i,a){if(Hv(t,r,a),!t._initted)return 1;if(!n&&t._pt&&!tr&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&vP!==Lr.frame)return Si.push(t),t._lazy=[a,i],1},zI=function e(t){var r=t.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||e(r))},Ey=function(t){var r=t.data;return r==="isFromStart"||r==="isStart"},UI=function(t,r,n,i){var a=t.ratio,o=r<0||!r&&(!t._start&&zI(t)&&!(!t._initted&&Ey(t))||(t._ts<0||t._dp._ts<0)&&!Ey(t))?0:1,s=t._rDelay,l=0,u,c,f;if(s&&t._repeat&&(l=kl(0,t._tDur,r),c=lo(l,s),t._yoyo&&c&1&&(o=1-o),c!==lo(t._tTime,s)&&(a=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==a||tr||i||t._zTime===te||!r&&t._zTime){if(!t._initted&&TP(t,r,i,n,l))return;for(f=t._zTime,t._zTime=r||(n?te:0),n||(n=r&&!f),t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=l,u=t._pt;u;)u.r(o,u.d),u=u._next;r<0&&Py(t,r,n,!0),t._onUpdate&&!n&&qr(t,"onUpdate"),l&&t._repeat&&!n&&t.parent&&qr(t,"onRepeat"),(r>=t._tDur||r<0)&&t.ratio===o&&(o&&Ti(t,1),!n&&!tr&&(qr(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=r)},WI=function(t,r,n){var i;if(n>r)for(i=t._first;i&&i._start<=n;){if(i.data==="isPause"&&i._start>r)return i;i=i._next}else for(i=t._last;i&&i._start>=n;){if(i.data==="isPause"&&i._start<r)return i;i=i._prev}},uo=function(t,r,n,i){var a=t._repeat,o=ke(r)||0,s=t._tTime/t._tDur;return s&&!i&&(t._time*=o/t._dur),t._dur=o,t._tDur=a?a<0?1e10:ke(o*(a+1)+t._rDelay*a):o,s>0&&!i&&qc(t,t._tTime=t._tDur*s),t.parent&&Bc(t),n||ra(t.parent,t),t},Wb=function(t){return t instanceof pr?ra(t):uo(t,t._dur)},HI={_start:0,endTime:zs,totalDuration:zs},Vr=function e(t,r,n){var i=t.labels,a=t._recent||HI,o=t.duration()>=Qr?a.endTime(!1):t._dur,s,l,u;return Ge(r)&&(isNaN(r)||r in i)?(l=r.charAt(0),u=r.substr(-1)==="%",s=r.indexOf("="),l==="<"||l===">"?(s>=0&&(r=r.replace(/=/,"")),(l==="<"?a._start:a.endTime(a._repeat>=0))+(parseFloat(r.substr(1))||0)*(u?(s<0?a:n).totalDuration()/100:1)):s<0?(r in i||(i[r]=o),i[r]):(l=parseFloat(r.charAt(s-1)+r.substr(s+1)),u&&n&&(l=l/100*(fr(n)?n[0]:n).totalDuration()),s>1?e(t,r.substr(0,s-1),n)+l:o+l)):r==null?o:+r},_s=function(t,r,n){var i=ti(r[1]),a=(i?2:1)+(t<2?0:1),o=r[a],s,l;if(i&&(o.duration=r[1]),o.parent=n,t){for(s=o,l=n;l&&!("immediateRender"in s);)s=l.vars.defaults||{},l=_r(l.vars.inherit)&&l.parent;o.immediateRender=_r(s.immediateRender),t<2?o.runBackwards=1:o.startAt=r[a-1]}return new Ce(r[0],o,r[a+1])},Ci=function(t,r){return t||t===0?r(t):r},kl=function(t,r,n){return n<t?t:n>r?r:n},cr=function(t,r){return!Ge(t)||!(r=RI.exec(t))?"":r[1]},GI=function(t,r,n){return Ci(n,function(i){return kl(t,r,i)})},My=[].slice,PP=function(t,r){return t&&jn(t)&&"length"in t&&(!r&&!t.length||t.length-1 in t&&jn(t[0]))&&!t.nodeType&&t!==An},KI=function(t,r,n){return n===void 0&&(n=[]),t.forEach(function(i){var a;return Ge(i)&&!r||PP(i,1)?(a=n).push.apply(a,tn(i)):n.push(i)})||n},tn=function(t,r,n){return ue&&!r&&ue.selector?ue.selector(t):Ge(t)&&!n&&(Oy||!co())?My.call((r||Lv).querySelectorAll(t),0):fr(t)?KI(t,n):PP(t)?My.call(t,0):t?[t]:[]},Cy=function(t){return t=tn(t)[0]||Fs("Invalid scope")||{},function(r){var n=t.current||t.nativeElement||t;return tn(r,n.querySelectorAll?n:n===t?Fs("Invalid scope")||Lv.createElement("div"):t)}},EP=function(t){return t.sort(function(){return .5-Math.random()})},MP=function(t){if(be(t))return t;var r=jn(t)?t:{each:t},n=na(r.ease),i=r.from||0,a=parseFloat(r.base)||0,o={},s=i>0&&i<1,l=isNaN(i)||s,u=r.axis,c=i,f=i;return Ge(i)?c=f={center:.5,edges:.5,end:1}[i]||0:!s&&l&&(c=i[0],f=i[1]),function(h,p,y){var m=(y||r).length,d=o[m],b,v,x,_,g,w,S,A,T;if(!d){if(T=r.grid==="auto"?0:(r.grid||[1,Qr])[1],!T){for(S=-Qr;S<(S=y[T++].getBoundingClientRect().left)&&T<m;);T<m&&T--}for(d=o[m]=[],b=l?Math.min(T,m)*c-.5:i%T,v=T===Qr?0:l?m*f/T-.5:i/T|0,S=0,A=Qr,w=0;w<m;w++)x=w%T-b,_=v-(w/T|0),d[w]=g=u?Math.abs(u==="y"?_:x):cP(x*x+_*_),g>S&&(S=g),g<A&&(A=g);i==="random"&&EP(d),d.max=S-A,d.min=A,d.v=m=(parseFloat(r.amount)||parseFloat(r.each)*(T>m?m-1:u?u==="y"?m/T:T:Math.max(T,m/T))||0)*(i==="edges"?-1:1),d.b=m<0?a-m:a,d.u=cr(r.amount||r.each)||0,n=n&&m<0?BP(n):n}return m=(d[h]-d.min)/d.max||0,ke(d.b+(n?n(m):m)*d.v)+d.u}},ky=function(t){var r=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var i=ke(Math.round(parseFloat(n)/t)*t*r);return(i-i%1)/r+(ti(n)?0:cr(n))}},CP=function(t,r){var n=fr(t),i,a;return!n&&jn(t)&&(i=n=t.radius||Qr,t.values?(t=tn(t.values),(a=!ti(t[0]))&&(i*=i)):t=ky(t.increment)),Ci(r,n?be(t)?function(o){return a=t(o),Math.abs(a-o)<=i?a:o}:function(o){for(var s=parseFloat(a?o.x:o),l=parseFloat(a?o.y:0),u=Qr,c=0,f=t.length,h,p;f--;)a?(h=t[f].x-s,p=t[f].y-l,h=h*h+p*p):h=Math.abs(t[f]-s),h<u&&(u=h,c=f);return c=!i||u<=i?t[c]:o,a||c===o||ti(o)?c:c+cr(o)}:ky(t))},kP=function(t,r,n,i){return Ci(fr(t)?!r:n===!0?!!(n=0):!i,function(){return fr(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(i=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t-n/2+Math.random()*(r-t+n*.99))/n)*n*i)/i})},XI=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return function(i){return r.reduce(function(a,o){return o(a)},i)}},YI=function(t,r){return function(n){return t(parseFloat(n))+(r||cr(n))}},VI=function(t,r,n){return jP(t,r,0,1,n)},$P=function(t,r,n){return Ci(n,function(i){return t[~~r(i)]})},ZI=function e(t,r,n){var i=r-t;return fr(t)?$P(t,e(0,t.length),r):Ci(n,function(a){return(i+(a-t)%i)%i+t})},JI=function e(t,r,n){var i=r-t,a=i*2;return fr(t)?$P(t,e(0,t.length-1),r):Ci(n,function(o){return o=(a+(o-t)%a)%a||0,t+(o>i?a-o:o)})},Us=function(t){for(var r=0,n="",i,a,o,s;~(i=t.indexOf("random(",r));)o=t.indexOf(")",i),s=t.charAt(i+7)==="[",a=t.substr(i+7,o-i-7).match(s?dP:Ay),n+=t.substr(r,i-r)+kP(s?a:+a[0],s?0:+a[1],+a[2]||1e-5),r=o+1;return n+t.substr(r,t.length-r)},jP=function(t,r,n,i,a){var o=r-t,s=i-n;return Ci(a,function(l){return n+((l-t)/o*s||0)})},QI=function e(t,r,n,i){var a=isNaN(t+r)?0:function(p){return(1-p)*t+p*r};if(!a){var o=Ge(t),s={},l,u,c,f,h;if(n===!0&&(i=1)&&(n=null),o)t={p:t},r={p:r};else if(fr(t)&&!fr(r)){for(c=[],f=t.length,h=f-2,u=1;u<f;u++)c.push(e(t[u-1],t[u]));f--,a=function(y){y*=f;var m=Math.min(h,~~y);return c[m](y-m)},n=r}else i||(t=so(fr(t)?[]:{},t));if(!c){for(l in r)Wv.call(s,t,l,"get",r[l]);a=function(y){return Xv(y,s)||(o?t.p:t)}}}return Ci(n,a)},Hb=function(t,r,n){var i=t.labels,a=Qr,o,s,l;for(o in i)s=i[o]-r,s<0==!!n&&s&&a>(s=Math.abs(s))&&(l=o,a=s);return l},qr=function(t,r,n){var i=t.vars,a=i[r],o=ue,s=t._ctx,l,u,c;if(a)return l=i[r+"Params"],u=i.callbackScope||t,n&&Si.length&&Ru(),s&&(ue=s),c=l?a.apply(u,l):a.call(u),ue=o,c},ds=function(t){return Ti(t),t.scrollTrigger&&t.scrollTrigger.kill(!!tr),t.progress()<1&&qr(t,"onInterrupt"),t},qa,RP=[],DP=function(t){if(t)if(t=!t.name&&t.default||t,Nv()||t.headless){var r=t.name,n=be(t),i=r&&!n&&t.init?function(){this._props=[]}:t,a={init:zs,render:Xv,add:Wv,kill:mN,modifier:dN,rawVars:0},o={targetTest:0,get:0,getSetter:Kv,aliases:{},register:0};if(co(),t!==i){if(Nr[r])return;Wr(i,Wr(Du(t,a),o)),so(i.prototype,so(a,Du(t,o))),Nr[i.prop=r]=i,t.targetTest&&(pu.push(i),qv[r]=1),r=(r==="css"?"CSS":r.charAt(0).toUpperCase()+r.substr(1))+"Plugin"}gP(r,i),t.register&&t.register(Pr,i,Sr)}else RP.push(t)},Qt=255,ms={aqua:[0,Qt,Qt],lime:[0,Qt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Qt],navy:[0,0,128],white:[Qt,Qt,Qt],olive:[128,128,0],yellow:[Qt,Qt,0],orange:[Qt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Qt,0,0],pink:[Qt,192,203],cyan:[0,Qt,Qt],transparent:[Qt,Qt,Qt,0]},Bf=function(t,r,n){return t+=t<0?1:t>1?-1:0,(t*6<1?r+(n-r)*t*6:t<.5?n:t*3<2?r+(n-r)*(2/3-t)*6:r)*Qt+.5|0},IP=function(t,r,n){var i=t?ti(t)?[t>>16,t>>8&Qt,t&Qt]:0:ms.black,a,o,s,l,u,c,f,h,p,y;if(!i){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),ms[t])i=ms[t];else if(t.charAt(0)==="#"){if(t.length<6&&(a=t.charAt(1),o=t.charAt(2),s=t.charAt(3),t="#"+a+a+o+o+s+s+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return i=parseInt(t.substr(1,6),16),[i>>16,i>>8&Qt,i&Qt,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),i=[t>>16,t>>8&Qt,t&Qt]}else if(t.substr(0,3)==="hsl"){if(i=y=t.match(Ay),!r)l=+i[0]%360/360,u=+i[1]/100,c=+i[2]/100,o=c<=.5?c*(u+1):c+u-c*u,a=c*2-o,i.length>3&&(i[3]*=1),i[0]=Bf(l+1/3,a,o),i[1]=Bf(l,a,o),i[2]=Bf(l-1/3,a,o);else if(~t.indexOf("="))return i=t.match(hP),n&&i.length<4&&(i[3]=1),i}else i=t.match(Ay)||ms.transparent;i=i.map(Number)}return r&&!y&&(a=i[0]/Qt,o=i[1]/Qt,s=i[2]/Qt,f=Math.max(a,o,s),h=Math.min(a,o,s),c=(f+h)/2,f===h?l=u=0:(p=f-h,u=c>.5?p/(2-f-h):p/(f+h),l=f===a?(o-s)/p+(o<s?6:0):f===o?(s-a)/p+2:(a-o)/p+4,l*=60),i[0]=~~(l+.5),i[1]=~~(u*100+.5),i[2]=~~(c*100+.5)),n&&i.length<4&&(i[3]=1),i},NP=function(t){var r=[],n=[],i=-1;return t.split(Ai).forEach(function(a){var o=a.match(Ba)||[];r.push.apply(r,o),n.push(i+=o.length+1)}),r.c=n,r},Gb=function(t,r,n){var i="",a=(t+i).match(Ai),o=r?"hsla(":"rgba(",s=0,l,u,c,f;if(!a)return t;if(a=a.map(function(h){return(h=IP(h,r,1))&&o+(r?h[0]+","+h[1]+"%,"+h[2]+"%,"+h[3]:h.join(","))+")"}),n&&(c=NP(t),l=n.c,l.join(i)!==c.c.join(i)))for(u=t.replace(Ai,"1").split(Ba),f=u.length-1;s<f;s++)i+=u[s]+(~l.indexOf(s)?a.shift()||o+"0,0,0,0)":(c.length?c:a.length?a:n).shift());if(!u)for(u=t.split(Ai),f=u.length-1;s<f;s++)i+=u[s]+a[s];return i+u[f]},Ai=(function(){var e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",t;for(t in ms)e+="|"+t+"\\b";return new RegExp(e+")","gi")})(),tN=/hsl[a]?\(/,LP=function(t){var r=t.join(" "),n;if(Ai.lastIndex=0,Ai.test(r))return n=tN.test(r),t[1]=Gb(t[1],n),t[0]=Gb(t[0],n,NP(t[1])),!0},Ws,Lr=(function(){var e=Date.now,t=500,r=33,n=e(),i=n,a=1e3/240,o=a,s=[],l,u,c,f,h,p,y=function m(d){var b=e()-i,v=d===!0,x,_,g,w;if((b>t||b<0)&&(n+=b-r),i+=b,g=i-n,x=g-o,(x>0||v)&&(w=++f.frame,h=g-f.time*1e3,f.time=g=g/1e3,o+=x+(x>=a?4:a-x),_=1),v||(l=u(m)),_)for(p=0;p<s.length;p++)s[p](g,h,w,d)};return f={time:0,frame:0,tick:function(){y(!0)},deltaRatio:function(d){return h/(1e3/(d||60))},wake:function(){mP&&(!Oy&&Nv()&&(An=Oy=window,Lv=An.document||{},Ur.gsap=Pr,(An.gsapVersions||(An.gsapVersions=[])).push(Pr.version),yP(ju||An.GreenSockGlobals||!An.gsap&&An||{}),RP.forEach(DP)),c=typeof requestAnimationFrame<"u"&&requestAnimationFrame,l&&f.sleep(),u=c||function(d){return setTimeout(d,o-f.time*1e3+1|0)},Ws=1,y(2))},sleep:function(){(c?cancelAnimationFrame:clearTimeout)(l),Ws=0,u=zs},lagSmoothing:function(d,b){t=d||1/0,r=Math.min(b||33,t)},fps:function(d){a=1e3/(d||240),o=f.time*1e3+a},add:function(d,b,v){var x=b?function(_,g,w,S){d(_,g,w,S),f.remove(x)}:d;return f.remove(d),s[v?"unshift":"push"](x),co(),x},remove:function(d,b){~(b=s.indexOf(d))&&s.splice(b,1)&&p>=b&&p--},_listeners:s},f})(),co=function(){return!Ws&&Lr.wake()},Ct={},eN=/^[\d.\-M][\d.\-,\s]/,rN=/["']/g,nN=function(t){for(var r={},n=t.substr(1,t.length-3).split(":"),i=n[0],a=1,o=n.length,s,l,u;a<o;a++)l=n[a],s=a!==o-1?l.lastIndexOf(","):l.length,u=l.substr(0,s),r[i]=isNaN(u)?u.replace(rN,"").trim():+u,i=l.substr(s+1).trim();return r},iN=function(t){var r=t.indexOf("(")+1,n=t.indexOf(")"),i=t.indexOf("(",r);return t.substring(r,~i&&i<n?t.indexOf(")",n+1):n)},aN=function(t){var r=(t+"").split("("),n=Ct[r[0]];return n&&r.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[nN(r[1])]:iN(t).split(",").map(_P)):Ct._CE&&eN.test(t)?Ct._CE("",t):n},BP=function(t){return function(r){return 1-t(1-r)}},qP=function e(t,r){for(var n=t._first,i;n;)n instanceof pr?e(n,r):n.vars.yoyoEase&&(!n._yoyo||!n._repeat)&&n._yoyo!==r&&(n.timeline?e(n.timeline,r):(i=n._ease,n._ease=n._yEase,n._yEase=i,n._yoyo=r)),n=n._next},na=function(t,r){return t&&(be(t)?t:Ct[t]||aN(t))||r},wa=function(t,r,n,i){n===void 0&&(n=function(l){return 1-r(1-l)}),i===void 0&&(i=function(l){return l<.5?r(l*2)/2:1-r((1-l)*2)/2});var a={easeIn:r,easeOut:n,easeInOut:i},o;return wr(t,function(s){Ct[s]=Ur[s]=a,Ct[o=s.toLowerCase()]=n;for(var l in a)Ct[o+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=Ct[s+"."+l]=a[l]}),a},FP=function(t){return function(r){return r<.5?(1-t(1-r*2))/2:.5+t((r-.5)*2)/2}},qf=function e(t,r,n){var i=r>=1?r:1,a=(n||(t?.3:.45))/(r<1?r:1),o=a/Sy*(Math.asin(1/i)||0),s=function(c){return c===1?1:i*Math.pow(2,-10*c)*jI((c-o)*a)+1},l=t==="out"?s:t==="in"?function(u){return 1-s(1-u)}:FP(s);return a=Sy/a,l.config=function(u,c){return e(t,u,c)},l},Ff=function e(t,r){r===void 0&&(r=1.70158);var n=function(o){return o?--o*o*((r+1)*o+r)+1:0},i=t==="out"?n:t==="in"?function(a){return 1-n(1-a)}:FP(n);return i.config=function(a){return e(t,a)},i};wr("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var r=t<5?t+1:t;wa(e+",Power"+(r-1),t?function(n){return Math.pow(n,r)}:function(n){return n},function(n){return 1-Math.pow(1-n,r)},function(n){return n<.5?Math.pow(n*2,r)/2:1-Math.pow((1-n)*2,r)/2})});Ct.Linear.easeNone=Ct.none=Ct.Linear.easeIn;wa("Elastic",qf("in"),qf("out"),qf());(function(e,t){var r=1/t,n=2*r,i=2.5*r,a=function(s){return s<r?e*s*s:s<n?e*Math.pow(s-1.5/t,2)+.75:s<i?e*(s-=2.25/t)*s+.9375:e*Math.pow(s-2.625/t,2)+.984375};wa("Bounce",function(o){return 1-a(1-o)},a)})(7.5625,2.75);wa("Expo",function(e){return Math.pow(2,10*(e-1))*e+e*e*e*e*e*e*(1-e)});wa("Circ",function(e){return-(cP(1-e*e)-1)});wa("Sine",function(e){return e===1?1:-$I(e*CI)+1});wa("Back",Ff("in"),Ff("out"),Ff());Ct.SteppedEase=Ct.steps=Ur.SteppedEase={config:function(t,r){t===void 0&&(t=1);var n=1/t,i=t+(r?0:1),a=r?1:0,o=1-te;return function(s){return((i*kl(0,o,s)|0)+a)*n}}};oo.ease=Ct["quad.out"];wr("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(e){return Fv+=e+","+e+"Params,"});var zP=function(t,r){this.id=kI++,t._gsap=this,this.target=t,this.harness=r,this.get=r?r.get:bP,this.set=r?r.getSetter:Kv},Hs=(function(){function e(r){this.vars=r,this._delay=+r.delay||0,(this._repeat=r.repeat===1/0?-2:r.repeat||0)&&(this._rDelay=r.repeatDelay||0,this._yoyo=!!r.yoyo||!!r.yoyoEase),this._ts=1,uo(this,+r.duration,1,1),this.data=r.data,ue&&(this._ctx=ue,ue.data.push(this)),Ws||Lr.wake()}var t=e.prototype;return t.delay=function(n){return n||n===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+n-this._delay),this._delay=n,this):this._delay},t.duration=function(n){return arguments.length?this.totalDuration(this._repeat>0?n+(n+this._rDelay)*this._repeat:n):this.totalDuration()&&this._dur},t.totalDuration=function(n){return arguments.length?(this._dirty=0,uo(this,this._repeat<0?n:(n-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(n,i){if(co(),!arguments.length)return this._tTime;var a=this._dp;if(a&&a.smoothChildTiming&&this._ts){for(qc(this,n),!a._dp||a.parent||AP(a,this);a&&a.parent;)a.parent._time!==a._start+(a._ts>=0?a._tTime/a._ts:(a.totalDuration()-a._tTime)/-a._ts)&&a.totalTime(a._tTime,!0),a=a.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&n<this._tDur||this._ts<0&&n>0||!this._tDur&&!n)&&Tn(this._dp,this,this._start-this._delay)}return(this._tTime!==n||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===te||!n&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=n),xP(this,n,i)),this},t.time=function(n,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),n+Ub(this))%(this._dur+this._rDelay)||(n?this._dur:0),i):this._time},t.totalProgress=function(n,i){return arguments.length?this.totalTime(this.totalDuration()*n,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(n,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-n:n)+Ub(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(n,i){var a=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(n-1)*a,i):this._repeat?lo(this._tTime,a)+1:1},t.timeScale=function(n,i){if(!arguments.length)return this._rts===-te?0:this._rts;if(this._rts===n)return this;var a=this.parent&&this._ts?Iu(this.parent._time,this):this._tTime;return this._rts=+n||0,this._ts=this._ps||n===-te?0:this._rts,this.totalTime(kl(-Math.abs(this._delay),this.totalDuration(),a),i!==!1),Bc(this),qI(this)},t.paused=function(n){return arguments.length?(this._ps!==n&&(this._ps=n,n?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(co(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==te&&(this._tTime-=te)))),this):this._ps},t.startTime=function(n){if(arguments.length){this._start=n;var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&Tn(i,this,n-this._delay),this}return this._start},t.endTime=function(n){return this._start+(_r(n)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(n){var i=this.parent||this._dp;return i?n&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Iu(i.rawTime(n),this):this._tTime:this._tTime},t.revert=function(n){n===void 0&&(n=II);var i=tr;return tr=n,Uv(this)&&(this.timeline&&this.timeline.revert(n),this.totalTime(-.01,n.suppressEvents)),this.data!=="nested"&&n.kill!==!1&&this.kill(),tr=i,this},t.globalTime=function(n){for(var i=this,a=arguments.length?n:i.rawTime();i;)a=i._start+a/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(n):a},t.repeat=function(n){return arguments.length?(this._repeat=n===1/0?-2:n,Wb(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(n){if(arguments.length){var i=this._time;return this._rDelay=n,Wb(this),i?this.time(i):this}return this._rDelay},t.yoyo=function(n){return arguments.length?(this._yoyo=n,this):this._yoyo},t.seek=function(n,i){return this.totalTime(Vr(this,n),_r(i))},t.restart=function(n,i){return this.play().totalTime(n?-this._delay:0,_r(i)),this._dur||(this._zTime=-te),this},t.play=function(n,i){return n!=null&&this.seek(n,i),this.reversed(!1).paused(!1)},t.reverse=function(n,i){return n!=null&&this.seek(n||this.totalDuration(),i),this.reversed(!0).paused(!1)},t.pause=function(n,i){return n!=null&&this.seek(n,i),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(n){return arguments.length?(!!n!==this.reversed()&&this.timeScale(-this._rts||(n?-te:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-te,this},t.isActive=function(){var n=this.parent||this._dp,i=this._start,a;return!!(!n||this._ts&&this._initted&&n.isActive()&&(a=n.rawTime(!0))>=i&&a<this.endTime(!0)-te)},t.eventCallback=function(n,i,a){var o=this.vars;return arguments.length>1?(i?(o[n]=i,a&&(o[n+"Params"]=a),n==="onUpdate"&&(this._onUpdate=i)):delete o[n],this):o[n]},t.then=function(n){var i=this;return new Promise(function(a){var o=be(n)?n:wP,s=function(){var u=i.then;i.then=null,be(o)&&(o=o(i))&&(o.then||o===i)&&(i.then=u),a(o),i.then=u};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?s():i._prom=s})},t.kill=function(){ds(this)},e})();Wr(Hs.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-te,_prom:0,_ps:!1,_rts:1});var pr=(function(e){uP(t,e);function t(n,i){var a;return n===void 0&&(n={}),a=e.call(this,n)||this,a.labels={},a.smoothChildTiming=!!n.smoothChildTiming,a.autoRemoveChildren=!!n.autoRemoveChildren,a._sort=_r(n.sortChildren),de&&Tn(n.parent||de,Fn(a),i),n.reversed&&a.reverse(),n.paused&&a.paused(!0),n.scrollTrigger&&OP(Fn(a),n.scrollTrigger),a}var r=t.prototype;return r.to=function(i,a,o){return _s(0,arguments,this),this},r.from=function(i,a,o){return _s(1,arguments,this),this},r.fromTo=function(i,a,o,s){return _s(2,arguments,this),this},r.set=function(i,a,o){return a.duration=0,a.parent=this,xs(a).repeatDelay||(a.repeat=0),a.immediateRender=!!a.immediateRender,new Ce(i,a,Vr(this,o),1),this},r.call=function(i,a,o){return Tn(this,Ce.delayedCall(0,i,a),o)},r.staggerTo=function(i,a,o,s,l,u,c){return o.duration=a,o.stagger=o.stagger||s,o.onComplete=u,o.onCompleteParams=c,o.parent=this,new Ce(i,o,Vr(this,l)),this},r.staggerFrom=function(i,a,o,s,l,u,c){return o.runBackwards=1,xs(o).immediateRender=_r(o.immediateRender),this.staggerTo(i,a,o,s,l,u,c)},r.staggerFromTo=function(i,a,o,s,l,u,c,f){return s.startAt=o,xs(s).immediateRender=_r(s.immediateRender),this.staggerTo(i,a,s,l,u,c,f)},r.render=function(i,a,o){var s=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,c=i<=0?0:ke(i),f=this._zTime<0!=i<0&&(this._initted||!u),h,p,y,m,d,b,v,x,_,g,w,S;if(this!==de&&c>l&&i>=0&&(c=l),c!==this._tTime||o||f){if(s!==this._time&&u&&(c+=this._time-s,i+=this._time-s),h=c,_=this._start,x=this._ts,b=!x,f&&(u||(s=this._zTime),(i||!a)&&(this._zTime=i)),this._repeat){if(w=this._yoyo,d=u+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(d*100+i,a,o);if(h=ke(c%d),c===l?(m=this._repeat,h=u):(g=ke(c/d),m=~~g,m&&m===g&&(h=u,m--),h>u&&(h=u)),g=lo(this._tTime,d),!s&&this._tTime&&g!==m&&this._tTime-g*d-this._dur<=0&&(g=m),w&&m&1&&(h=u-h,S=1),m!==g&&!this._lock){var A=w&&g&1,T=A===(w&&m&1);if(m<g&&(A=!A),s=A?0:c%u?u:c,this._lock=1,this.render(s||(S?0:ke(m*d)),a,!u)._lock=0,this._tTime=c,!a&&this.parent&&qr(this,"onRepeat"),this.vars.repeatRefresh&&!S&&(this.invalidate()._lock=1),s&&s!==this._time||b!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(u=this._dur,l=this._tDur,T&&(this._lock=2,s=A?u:-1e-4,this.render(s,!0),this.vars.repeatRefresh&&!S&&this.invalidate()),this._lock=0,!this._ts&&!b)return this;qP(this,S)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(v=WI(this,ke(s),ke(h)),v&&(c-=h-(h=v._start))),this._tTime=c,this._time=h,this._act=!x,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=i,s=0),!s&&c&&!a&&!g&&(qr(this,"onStart"),this._tTime!==c))return this;if(h>=s&&i>=0)for(p=this._first;p;){if(y=p._next,(p._act||h>=p._start)&&p._ts&&v!==p){if(p.parent!==this)return this.render(i,a,o);if(p.render(p._ts>0?(h-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(h-p._start)*p._ts,a,o),h!==this._time||!this._ts&&!b){v=0,y&&(c+=this._zTime=-te);break}}p=y}else{p=this._last;for(var M=i<0?i:h;p;){if(y=p._prev,(p._act||M<=p._end)&&p._ts&&v!==p){if(p.parent!==this)return this.render(i,a,o);if(p.render(p._ts>0?(M-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(M-p._start)*p._ts,a,o||tr&&Uv(p)),h!==this._time||!this._ts&&!b){v=0,y&&(c+=this._zTime=M?-te:te);break}}p=y}}if(v&&!a&&(this.pause(),v.render(h>=s?0:-te)._zTime=h>=s?1:-1,this._ts))return this._start=_,Bc(this),this.render(i,a,o);this._onUpdate&&!a&&qr(this,"onUpdate",!0),(c===l&&this._tTime>=this.totalDuration()||!c&&s)&&(_===this._start||Math.abs(x)!==Math.abs(this._ts))&&(this._lock||((i||!u)&&(c===l&&this._ts>0||!c&&this._ts<0)&&Ti(this,1),!a&&!(i<0&&!s)&&(c||s||!l)&&(qr(this,c===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(c<l&&this.timeScale()>0)&&this._prom())))}return this},r.add=function(i,a){var o=this;if(ti(a)||(a=Vr(this,a,i)),!(i instanceof Hs)){if(fr(i))return i.forEach(function(s){return o.add(s,a)}),this;if(Ge(i))return this.addLabel(i,a);if(be(i))i=Ce.delayedCall(0,i);else return this}return this!==i?Tn(this,i,a):this},r.getChildren=function(i,a,o,s){i===void 0&&(i=!0),a===void 0&&(a=!0),o===void 0&&(o=!0),s===void 0&&(s=-Qr);for(var l=[],u=this._first;u;)u._start>=s&&(u instanceof Ce?a&&l.push(u):(o&&l.push(u),i&&l.push.apply(l,u.getChildren(!0,a,o)))),u=u._next;return l},r.getById=function(i){for(var a=this.getChildren(1,1,1),o=a.length;o--;)if(a[o].vars.id===i)return a[o]},r.remove=function(i){return Ge(i)?this.removeLabel(i):be(i)?this.killTweensOf(i):(i.parent===this&&Lc(this,i),i===this._recent&&(this._recent=this._last),ra(this))},r.totalTime=function(i,a){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ke(Lr.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),e.prototype.totalTime.call(this,i,a),this._forcing=0,this):this._tTime},r.addLabel=function(i,a){return this.labels[i]=Vr(this,a),this},r.removeLabel=function(i){return delete this.labels[i],this},r.addPause=function(i,a,o){var s=Ce.delayedCall(0,a||zs,o);return s.data="isPause",this._hasPause=1,Tn(this,s,Vr(this,i))},r.removePause=function(i){var a=this._first;for(i=Vr(this,i);a;)a._start===i&&a.data==="isPause"&&Ti(a),a=a._next},r.killTweensOf=function(i,a,o){for(var s=this.getTweensOf(i,o),l=s.length;l--;)yi!==s[l]&&s[l].kill(i,a);return this},r.getTweensOf=function(i,a){for(var o=[],s=tn(i),l=this._first,u=ti(a),c;l;)l instanceof Ce?NI(l._targets,s)&&(u?(!yi||l._initted&&l._ts)&&l.globalTime(0)<=a&&l.globalTime(l.totalDuration())>a:!a||l.isActive())&&o.push(l):(c=l.getTweensOf(s,a)).length&&o.push.apply(o,c),l=l._next;return o},r.tweenTo=function(i,a){a=a||{};var o=this,s=Vr(o,i),l=a,u=l.startAt,c=l.onStart,f=l.onStartParams,h=l.immediateRender,p,y=Ce.to(o,Wr({ease:a.ease||"none",lazy:!1,immediateRender:!1,time:s,overwrite:"auto",duration:a.duration||Math.abs((s-(u&&"time"in u?u.time:o._time))/o.timeScale())||te,onStart:function(){if(o.pause(),!p){var d=a.duration||Math.abs((s-(u&&"time"in u?u.time:o._time))/o.timeScale());y._dur!==d&&uo(y,d,0,1).render(y._time,!0,!0),p=1}c&&c.apply(y,f||[])}},a));return h?y.render(0):y},r.tweenFromTo=function(i,a,o){return this.tweenTo(a,Wr({startAt:{time:Vr(this,i)}},o))},r.recent=function(){return this._recent},r.nextLabel=function(i){return i===void 0&&(i=this._time),Hb(this,Vr(this,i))},r.previousLabel=function(i){return i===void 0&&(i=this._time),Hb(this,Vr(this,i),1)},r.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+te)},r.shiftChildren=function(i,a,o){o===void 0&&(o=0);for(var s=this._first,l=this.labels,u;s;)s._start>=o&&(s._start+=i,s._end+=i),s=s._next;if(a)for(u in l)l[u]>=o&&(l[u]+=i);return ra(this)},r.invalidate=function(i){var a=this._first;for(this._lock=0;a;)a.invalidate(i),a=a._next;return e.prototype.invalidate.call(this,i)},r.clear=function(i){i===void 0&&(i=!0);for(var a=this._first,o;a;)o=a._next,this.remove(a),a=o;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),ra(this)},r.totalDuration=function(i){var a=0,o=this,s=o._last,l=Qr,u,c,f;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-i:i));if(o._dirty){for(f=o.parent;s;)u=s._prev,s._dirty&&s.totalDuration(),c=s._start,c>l&&o._sort&&s._ts&&!o._lock?(o._lock=1,Tn(o,s,c-s._delay,1)._lock=0):l=c,c<0&&s._ts&&(a-=c,(!f&&!o._dp||f&&f.smoothChildTiming)&&(o._start+=c/o._ts,o._time-=c,o._tTime-=c),o.shiftChildren(-c,!1,-1/0),l=0),s._end>a&&s._ts&&(a=s._end),s=u;uo(o,o===de&&o._time>a?o._time:a,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(i){if(de._ts&&(xP(de,Iu(i,de)),vP=Lr.frame),Lr.frame>=Fb){Fb+=Fr.autoSleep||120;var a=de._first;if((!a||!a._ts)&&Fr.autoSleep&&Lr._listeners.length<2){for(;a&&!a._ts;)a=a._next;a||Lr.sleep()}}},t})(Hs);Wr(pr.prototype,{_lock:0,_hasPause:0,_forcing:0});var oN=function(t,r,n,i,a,o,s){var l=new Sr(this._pt,t,r,0,1,XP,null,a),u=0,c=0,f,h,p,y,m,d,b,v;for(l.b=n,l.e=i,n+="",i+="",(b=~i.indexOf("random("))&&(i=Us(i)),o&&(v=[n,i],o(v,t,r),n=v[0],i=v[1]),h=n.match(Nf)||[];f=Nf.exec(i);)y=f[0],m=i.substring(u,f.index),p?p=(p+1)%5:m.substr(-5)==="rgba("&&(p=1),y!==h[c++]&&(d=parseFloat(h[c-1])||0,l._pt={_next:l._pt,p:m||c===1?m:",",s:d,c:y.charAt(1)==="="?Ga(d,y)-d:parseFloat(y)-d,m:p&&p<4?Math.round:0},u=Nf.lastIndex);return l.c=u<i.length?i.substring(u,i.length):"",l.fp=s,(pP.test(i)||b)&&(l.e=0),this._pt=l,l},Wv=function(t,r,n,i,a,o,s,l,u,c){be(i)&&(i=i(a||0,t,o));var f=t[r],h=n!=="get"?n:be(f)?u?t[r.indexOf("set")||!be(t["get"+r.substr(3)])?r:"get"+r.substr(3)](u):t[r]():f,p=be(f)?u?fN:GP:Gv,y;if(Ge(i)&&(~i.indexOf("random(")&&(i=Us(i)),i.charAt(1)==="="&&(y=Ga(h,i)+(cr(h)||0),(y||y===0)&&(i=y))),!c||h!==i||$y)return!isNaN(h*i)&&i!==""?(y=new Sr(this._pt,t,r,+h||0,i-(h||0),typeof f=="boolean"?pN:KP,0,p),u&&(y.fp=u),s&&y.modifier(s,this,t),this._pt=y):(!f&&!(r in t)&&Bv(r,i),oN.call(this,t,r,h,i,p,l||Fr.stringFilter,u))},sN=function(t,r,n,i,a){if(be(t)&&(t=ws(t,a,r,n,i)),!jn(t)||t.style&&t.nodeType||fr(t)||fP(t))return Ge(t)?ws(t,a,r,n,i):t;var o={},s;for(s in t)o[s]=ws(t[s],a,r,n,i);return o},UP=function(t,r,n,i,a,o){var s,l,u,c;if(Nr[t]&&(s=new Nr[t]).init(a,s.rawVars?r[t]:sN(r[t],i,a,o,n),n,i,o)!==!1&&(n._pt=l=new Sr(n._pt,a,t,0,1,s.render,s,0,s.priority),n!==qa))for(u=n._ptLookup[n._targets.indexOf(a)],c=s._props.length;c--;)u[s._props[c]]=l;return s},yi,$y,Hv=function e(t,r,n){var i=t.vars,a=i.ease,o=i.startAt,s=i.immediateRender,l=i.lazy,u=i.onUpdate,c=i.runBackwards,f=i.yoyoEase,h=i.keyframes,p=i.autoRevert,y=t._dur,m=t._startAt,d=t._targets,b=t.parent,v=b&&b.data==="nested"?b.vars.targets:d,x=t._overwrite==="auto"&&!Dv,_=t.timeline,g,w,S,A,T,M,P,E,C,$,j,k,R;if(_&&(!h||!a)&&(a="none"),t._ease=na(a,oo.ease),t._yEase=f?BP(na(f===!0?a:f,oo.ease)):0,f&&t._yoyo&&!t._repeat&&(f=t._yEase,t._yEase=t._ease,t._ease=f),t._from=!_&&!!i.runBackwards,!_||h&&!i.stagger){if(E=d[0]?ea(d[0]).harness:0,k=E&&i[E.prop],g=Du(i,qv),m&&(m._zTime<0&&m.progress(1),r<0&&c&&s&&!p?m.render(-1,!0):m.revert(c&&y?hu:DI),m._lazy=0),o){if(Ti(t._startAt=Ce.set(d,Wr({data:"isStart",overwrite:!1,parent:b,immediateRender:!0,lazy:!m&&_r(l),startAt:null,delay:0,onUpdate:u&&function(){return qr(t,"onUpdate")},stagger:0},o))),t._startAt._dp=0,t._startAt._sat=t,r<0&&(tr||!s&&!p)&&t._startAt.revert(hu),s&&y&&r<=0&&n<=0){r&&(t._zTime=r);return}}else if(c&&y&&!m){if(r&&(s=!1),S=Wr({overwrite:!1,data:"isFromStart",lazy:s&&!m&&_r(l),immediateRender:s,stagger:0,parent:b},g),k&&(S[E.prop]=k),Ti(t._startAt=Ce.set(d,S)),t._startAt._dp=0,t._startAt._sat=t,r<0&&(tr?t._startAt.revert(hu):t._startAt.render(-1,!0)),t._zTime=r,!s)e(t._startAt,te,te);else if(!r)return}for(t._pt=t._ptCache=0,l=y&&_r(l)||l&&!y,w=0;w<d.length;w++){if(T=d[w],P=T._gsap||zv(d)[w]._gsap,t._ptLookup[w]=$={},Ty[P.id]&&Si.length&&Ru(),j=v===d?w:v.indexOf(T),E&&(C=new E).init(T,k||g,t,j,v)!==!1&&(t._pt=A=new Sr(t._pt,T,C.name,0,1,C.render,C,0,C.priority),C._props.forEach(function(L){$[L]=A}),C.priority&&(M=1)),!E||k)for(S in g)Nr[S]&&(C=UP(S,g,t,j,T,v))?C.priority&&(M=1):$[S]=A=Wv.call(t,T,S,"get",g[S],j,v,0,i.stringFilter);t._op&&t._op[w]&&t.kill(T,t._op[w]),x&&t._pt&&(yi=t,de.killTweensOf(T,$,t.globalTime(r)),R=!t.parent,yi=0),t._pt&&l&&(Ty[P.id]=1)}M&&YP(t),t._onInit&&t._onInit(t)}t._onUpdate=u,t._initted=(!t._op||t._pt)&&!R,h&&r<=0&&_.render(Qr,!0,!0)},lN=function(t,r,n,i,a,o,s,l){var u=(t._pt&&t._ptCache||(t._ptCache={}))[r],c,f,h,p;if(!u)for(u=t._ptCache[r]=[],h=t._ptLookup,p=t._targets.length;p--;){if(c=h[p][r],c&&c.d&&c.d._pt)for(c=c.d._pt;c&&c.p!==r&&c.fp!==r;)c=c._next;if(!c)return $y=1,t.vars[r]="+=0",Hv(t,s),$y=0,l?Fs(r+" not eligible for reset"):1;u.push(c)}for(p=u.length;p--;)f=u[p],c=f._pt||f,c.s=(i||i===0)&&!a?i:c.s+(i||0)+o*c.c,c.c=n-c.s,f.e&&(f.e=Ae(n)+cr(f.e)),f.b&&(f.b=c.s+cr(f.b))},uN=function(t,r){var n=t[0]?ea(t[0]).harness:0,i=n&&n.aliases,a,o,s,l;if(!i)return r;a=so({},r);for(o in i)if(o in a)for(l=i[o].split(","),s=l.length;s--;)a[l[s]]=a[o];return a},cN=function(t,r,n,i){var a=r.ease||i||"power1.inOut",o,s;if(fr(r))s=n[t]||(n[t]=[]),r.forEach(function(l,u){return s.push({t:u/(r.length-1)*100,v:l,e:a})});else for(o in r)s=n[o]||(n[o]=[]),o==="ease"||s.push({t:parseFloat(t),v:r[o],e:a})},ws=function(t,r,n,i,a){return be(t)?t.call(r,n,i,a):Ge(t)&&~t.indexOf("random(")?Us(t):t},WP=Fv+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",HP={};wr(WP+",id,stagger,delay,duration,paused,scrollTrigger",function(e){return HP[e]=1});var Ce=(function(e){uP(t,e);function t(n,i,a,o){var s;typeof i=="number"&&(a.duration=i,i=a,a=null),s=e.call(this,o?i:xs(i))||this;var l=s.vars,u=l.duration,c=l.delay,f=l.immediateRender,h=l.stagger,p=l.overwrite,y=l.keyframes,m=l.defaults,d=l.scrollTrigger,b=l.yoyoEase,v=i.parent||de,x=(fr(n)||fP(n)?ti(n[0]):"length"in i)?[n]:tn(n),_,g,w,S,A,T,M,P;if(s._targets=x.length?zv(x):Fs("GSAP target "+n+" not found. https://gsap.com",!Fr.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=p,y||h||Hl(u)||Hl(c)){if(i=s.vars,_=s.timeline=new pr({data:"nested",defaults:m||{},targets:v&&v.data==="nested"?v.vars.targets:x}),_.kill(),_.parent=_._dp=Fn(s),_._start=0,h||Hl(u)||Hl(c)){if(S=x.length,M=h&&MP(h),jn(h))for(A in h)~WP.indexOf(A)&&(P||(P={}),P[A]=h[A]);for(g=0;g<S;g++)w=Du(i,HP),w.stagger=0,b&&(w.yoyoEase=b),P&&so(w,P),T=x[g],w.duration=+ws(u,Fn(s),g,T,x),w.delay=(+ws(c,Fn(s),g,T,x)||0)-s._delay,!h&&S===1&&w.delay&&(s._delay=c=w.delay,s._start+=c,w.delay=0),_.to(T,w,M?M(g,T,x):0),_._ease=Ct.none;_.duration()?u=c=0:s.timeline=0}else if(y){xs(Wr(_.vars.defaults,{ease:"none"})),_._ease=na(y.ease||i.ease||"none");var E=0,C,$,j;if(fr(y))y.forEach(function(k){return _.to(x,k,">")}),_.duration();else{w={};for(A in y)A==="ease"||A==="easeEach"||cN(A,y[A],w,y.easeEach);for(A in w)for(C=w[A].sort(function(k,R){return k.t-R.t}),E=0,g=0;g<C.length;g++)$=C[g],j={ease:$.e,duration:($.t-(g?C[g-1].t:0))/100*u},j[A]=$.v,_.to(x,j,E),E+=j.duration;_.duration()<u&&_.to({},{duration:u-_.duration()})}}u||s.duration(u=_.duration())}else s.timeline=0;return p===!0&&!Dv&&(yi=Fn(s),de.killTweensOf(x),yi=0),Tn(v,Fn(s),a),i.reversed&&s.reverse(),i.paused&&s.paused(!0),(f||!u&&!y&&s._start===ke(v._time)&&_r(f)&&FI(Fn(s))&&v.data!=="nested")&&(s._tTime=-te,s.render(Math.max(0,-c)||0)),d&&OP(Fn(s),d),s}var r=t.prototype;return r.render=function(i,a,o){var s=this._time,l=this._tDur,u=this._dur,c=i<0,f=i>l-te&&!c?l:i<te?0:i,h,p,y,m,d,b,v,x,_;if(!u)UI(this,i,a,o);else if(f!==this._tTime||!i||o||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==c||this._lazy){if(h=f,x=this.timeline,this._repeat){if(m=u+this._rDelay,this._repeat<-1&&c)return this.totalTime(m*100+i,a,o);if(h=ke(f%m),f===l?(y=this._repeat,h=u):(d=ke(f/m),y=~~d,y&&y===d?(h=u,y--):h>u&&(h=u)),b=this._yoyo&&y&1,b&&(_=this._yEase,h=u-h),d=lo(this._tTime,m),h===s&&!o&&this._initted&&y===d)return this._tTime=f,this;y!==d&&(x&&this._yEase&&qP(x,b),this.vars.repeatRefresh&&!b&&!this._lock&&h!==m&&this._initted&&(this._lock=o=1,this.render(ke(m*y),!0).invalidate()._lock=0))}if(!this._initted){if(TP(this,c?i:h,o,a,f))return this._tTime=0,this;if(s!==this._time&&!(o&&this.vars.repeatRefresh&&y!==d))return this;if(u!==this._dur)return this.render(i,a,o)}if(this._tTime=f,this._time=h,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=v=(_||this._ease)(h/u),this._from&&(this.ratio=v=1-v),!s&&f&&!a&&!d&&(qr(this,"onStart"),this._tTime!==f))return this;for(p=this._pt;p;)p.r(v,p.d),p=p._next;x&&x.render(i<0?i:x._dur*x._ease(h/this._dur),a,o)||this._startAt&&(this._zTime=i),this._onUpdate&&!a&&(c&&Py(this,i,a,o),qr(this,"onUpdate")),this._repeat&&y!==d&&this.vars.onRepeat&&!a&&this.parent&&qr(this,"onRepeat"),(f===this._tDur||!f)&&this._tTime===f&&(c&&!this._onUpdate&&Py(this,i,!0,!0),(i||!u)&&(f===this._tDur&&this._ts>0||!f&&this._ts<0)&&Ti(this,1),!a&&!(c&&!s)&&(f||s||b)&&(qr(this,f===l?"onComplete":"onReverseComplete",!0),this._prom&&!(f<l&&this.timeScale()>0)&&this._prom()))}return this},r.targets=function(){return this._targets},r.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),e.prototype.invalidate.call(this,i)},r.resetTo=function(i,a,o,s,l){Ws||Lr.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),c;return this._initted||Hv(this,u),c=this._ease(u/this._dur),lN(this,i,a,o,s,c,u,l)?this.resetTo(i,a,o,s,1):(qc(this,0),this.parent||SP(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(i,a){if(a===void 0&&(a="all"),!i&&(!a||a==="all"))return this._lazy=this._pt=0,this.parent?ds(this):this.scrollTrigger&&this.scrollTrigger.kill(!!tr),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(i,a,yi&&yi.vars.overwrite!==!0)._first||ds(this),this.parent&&o!==this.timeline.totalDuration()&&uo(this,this._dur*this.timeline._tDur/o,0,1),this}var s=this._targets,l=i?tn(i):s,u=this._ptLookup,c=this._pt,f,h,p,y,m,d,b;if((!a||a==="all")&&BI(s,l))return a==="all"&&(this._pt=0),ds(this);for(f=this._op=this._op||[],a!=="all"&&(Ge(a)&&(m={},wr(a,function(v){return m[v]=1}),a=m),a=uN(s,a)),b=s.length;b--;)if(~l.indexOf(s[b])){h=u[b],a==="all"?(f[b]=a,y=h,p={}):(p=f[b]=f[b]||{},y=a);for(m in y)d=h&&h[m],d&&((!("kill"in d.d)||d.d.kill(m)===!0)&&Lc(this,d,"_pt"),delete h[m]),p!=="all"&&(p[m]=1)}return this._initted&&!this._pt&&c&&ds(this),this},t.to=function(i,a){return new t(i,a,arguments[2])},t.from=function(i,a){return _s(1,arguments)},t.delayedCall=function(i,a,o,s){return new t(a,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:a,onReverseComplete:a,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:s})},t.fromTo=function(i,a,o){return _s(2,arguments)},t.set=function(i,a){return a.duration=0,a.repeatDelay||(a.repeat=0),new t(i,a)},t.killTweensOf=function(i,a,o){return de.killTweensOf(i,a,o)},t})(Hs);Wr(Ce.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});wr("staggerTo,staggerFrom,staggerFromTo",function(e){Ce[e]=function(){var t=new pr,r=My.call(arguments,0);return r.splice(e==="staggerFromTo"?5:4,0,0),t[e].apply(t,r)}});var Gv=function(t,r,n){return t[r]=n},GP=function(t,r,n){return t[r](n)},fN=function(t,r,n,i){return t[r](i.fp,n)},hN=function(t,r,n){return t.setAttribute(r,n)},Kv=function(t,r){return be(t[r])?GP:Iv(t[r])&&t.setAttribute?hN:Gv},KP=function(t,r){return r.set(r.t,r.p,Math.round((r.s+r.c*t)*1e6)/1e6,r)},pN=function(t,r){return r.set(r.t,r.p,!!(r.s+r.c*t),r)},XP=function(t,r){var n=r._pt,i="";if(!t&&r.b)i=r.b;else if(t===1&&r.e)i=r.e;else{for(;n;)i=n.p+(n.m?n.m(n.s+n.c*t):Math.round((n.s+n.c*t)*1e4)/1e4)+i,n=n._next;i+=r.c}r.set(r.t,r.p,i,r)},Xv=function(t,r){for(var n=r._pt;n;)n.r(t,n.d),n=n._next},dN=function(t,r,n,i){for(var a=this._pt,o;a;)o=a._next,a.p===i&&a.modifier(t,r,n),a=o},mN=function(t){for(var r=this._pt,n,i;r;)i=r._next,r.p===t&&!r.op||r.op===t?Lc(this,r,"_pt"):r.dep||(n=1),r=i;return!n},yN=function(t,r,n,i){i.mSet(t,r,i.m.call(i.tween,n,i.mt),i)},YP=function(t){for(var r=t._pt,n,i,a,o;r;){for(n=r._next,i=a;i&&i.pr>r.pr;)i=i._next;(r._prev=i?i._prev:o)?r._prev._next=r:a=r,(r._next=i)?i._prev=r:o=r,r=n}t._pt=a},Sr=(function(){function e(r,n,i,a,o,s,l,u,c){this.t=n,this.s=a,this.c=o,this.p=i,this.r=s||KP,this.d=l||this,this.set=u||Gv,this.pr=c||0,this._next=r,r&&(r._prev=this)}var t=e.prototype;return t.modifier=function(n,i,a){this.mSet=this.mSet||this.set,this.set=yN,this.m=n,this.mt=a,this.tween=i},e})();wr(Fv+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(e){return qv[e]=1});Ur.TweenMax=Ur.TweenLite=Ce;Ur.TimelineLite=Ur.TimelineMax=pr;de=new pr({sortChildren:!1,defaults:oo,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Fr.stringFilter=LP;var ia=[],du={},gN=[],Kb=0,vN=0,zf=function(t){return(du[t]||gN).map(function(r){return r()})},jy=function(){var t=Date.now(),r=[];t-Kb>2&&(zf("matchMediaInit"),ia.forEach(function(n){var i=n.queries,a=n.conditions,o,s,l,u;for(s in i)o=An.matchMedia(i[s]).matches,o&&(l=1),o!==a[s]&&(a[s]=o,u=1);u&&(n.revert(),l&&r.push(n))}),zf("matchMediaRevert"),r.forEach(function(n){return n.onMatch(n,function(i){return n.add(null,i)})}),Kb=t,zf("matchMedia"))},VP=(function(){function e(r,n){this.selector=n&&Cy(n),this.data=[],this._r=[],this.isReverted=!1,this.id=vN++,r&&this.add(r)}var t=e.prototype;return t.add=function(n,i,a){be(n)&&(a=i,i=n,n=be);var o=this,s=function(){var u=ue,c=o.selector,f;return u&&u!==o&&u.data.push(o),a&&(o.selector=Cy(a)),ue=o,f=i.apply(o,arguments),be(f)&&o._r.push(f),ue=u,o.selector=c,o.isReverted=!1,f};return o.last=s,n===be?s(o,function(l){return o.add(null,l)}):n?o[n]=s:s},t.ignore=function(n){var i=ue;ue=null,n(this),ue=i},t.getTweens=function(){var n=[];return this.data.forEach(function(i){return i instanceof e?n.push.apply(n,i.getTweens()):i instanceof Ce&&!(i.parent&&i.parent.data==="nested")&&n.push(i)}),n},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(n,i){var a=this;if(n?(function(){for(var s=a.getTweens(),l=a.data.length,u;l--;)u=a.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(c){return s.splice(s.indexOf(c),1)}));for(s.map(function(c){return{g:c._dur||c._delay||c._sat&&!c._sat.vars.immediateRender?c.globalTime(0):-1/0,t:c}}).sort(function(c,f){return f.g-c.g||-1/0}).forEach(function(c){return c.t.revert(n)}),l=a.data.length;l--;)u=a.data[l],u instanceof pr?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof Ce)&&u.revert&&u.revert(n);a._r.forEach(function(c){return c(n,a)}),a.isReverted=!0})():this.data.forEach(function(s){return s.kill&&s.kill()}),this.clear(),i)for(var o=ia.length;o--;)ia[o].id===this.id&&ia.splice(o,1)},t.revert=function(n){this.kill(n||{})},e})(),bN=(function(){function e(r){this.contexts=[],this.scope=r,ue&&ue.data.push(this)}var t=e.prototype;return t.add=function(n,i,a){jn(n)||(n={matches:n});var o=new VP(0,a||this.scope),s=o.conditions={},l,u,c;ue&&!o.selector&&(o.selector=ue.selector),this.contexts.push(o),i=o.add("onMatch",i),o.queries=n;for(u in n)u==="all"?c=1:(l=An.matchMedia(n[u]),l&&(ia.indexOf(o)<0&&ia.push(o),(s[u]=l.matches)&&(c=1),l.addListener?l.addListener(jy):l.addEventListener("change",jy)));return c&&i(o,function(f){return o.add(null,f)}),this},t.revert=function(n){this.kill(n||{})},t.kill=function(n){this.contexts.forEach(function(i){return i.kill(n,!0)})},e})(),Nu={registerPlugin:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];r.forEach(function(i){return DP(i)})},timeline:function(t){return new pr(t)},getTweensOf:function(t,r){return de.getTweensOf(t,r)},getProperty:function(t,r,n,i){Ge(t)&&(t=tn(t)[0]);var a=ea(t||{}).get,o=n?wP:_P;return n==="native"&&(n=""),t&&(r?o((Nr[r]&&Nr[r].get||a)(t,r,n,i)):function(s,l,u){return o((Nr[s]&&Nr[s].get||a)(t,s,l,u))})},quickSetter:function(t,r,n){if(t=tn(t),t.length>1){var i=t.map(function(c){return Pr.quickSetter(c,r,n)}),a=i.length;return function(c){for(var f=a;f--;)i[f](c)}}t=t[0]||{};var o=Nr[r],s=ea(t),l=s.harness&&(s.harness.aliases||{})[r]||r,u=o?function(c){var f=new o;qa._pt=0,f.init(t,n?c+n:c,qa,0,[t]),f.render(1,f),qa._pt&&Xv(1,qa)}:s.set(t,l);return o?u:function(c){return u(t,l,n?c+n:c,s,1)}},quickTo:function(t,r,n){var i,a=Pr.to(t,Wr((i={},i[r]="+=0.1",i.paused=!0,i.stagger=0,i),n||{})),o=function(l,u,c){return a.resetTo(r,l,u,c)};return o.tween=a,o},isTweening:function(t){return de.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=na(t.ease,oo.ease)),zb(oo,t||{})},config:function(t){return zb(Fr,t||{})},registerEffect:function(t){var r=t.name,n=t.effect,i=t.plugins,a=t.defaults,o=t.extendTimeline;(i||"").split(",").forEach(function(s){return s&&!Nr[s]&&!Ur[s]&&Fs(r+" effect requires "+s+" plugin.")}),Lf[r]=function(s,l,u){return n(tn(s),Wr(l||{},a),u)},o&&(pr.prototype[r]=function(s,l,u){return this.add(Lf[r](s,jn(l)?l:(u=l)&&{},this),u)})},registerEase:function(t,r){Ct[t]=na(r)},parseEase:function(t,r){return arguments.length?na(t,r):Ct},getById:function(t){return de.getById(t)},exportRoot:function(t,r){t===void 0&&(t={});var n=new pr(t),i,a;for(n.smoothChildTiming=_r(t.smoothChildTiming),de.remove(n),n._dp=0,n._time=n._tTime=de._time,i=de._first;i;)a=i._next,(r||!(!i._dur&&i instanceof Ce&&i.vars.onComplete===i._targets[0]))&&Tn(n,i,i._start-i._delay),i=a;return Tn(de,n,0),n},context:function(t,r){return t?new VP(t,r):ue},matchMedia:function(t){return new bN(t)},matchMediaRefresh:function(){return ia.forEach(function(t){var r=t.conditions,n,i;for(i in r)r[i]&&(r[i]=!1,n=1);n&&t.revert()})||jy()},addEventListener:function(t,r){var n=du[t]||(du[t]=[]);~n.indexOf(r)||n.push(r)},removeEventListener:function(t,r){var n=du[t],i=n&&n.indexOf(r);i>=0&&n.splice(i,1)},utils:{wrap:ZI,wrapYoyo:JI,distribute:MP,random:kP,snap:CP,normalize:VI,getUnit:cr,clamp:GI,splitColor:IP,toArray:tn,selector:Cy,mapRange:jP,pipe:XI,unitize:YI,interpolate:QI,shuffle:EP},install:yP,effects:Lf,ticker:Lr,updateRoot:pr.updateRoot,plugins:Nr,globalTimeline:de,core:{PropTween:Sr,globals:gP,Tween:Ce,Timeline:pr,Animation:Hs,getCache:ea,_removeLinkedListItem:Lc,reverting:function(){return tr},context:function(t){return t&&ue&&(ue.data.push(t),t._ctx=ue),ue},suppressOverwrites:function(t){return Dv=t}}};wr("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return Nu[e]=Ce[e]});Lr.add(pr.updateRoot);qa=Nu.to({},{duration:0});var xN=function(t,r){for(var n=t._pt;n&&n.p!==r&&n.op!==r&&n.fp!==r;)n=n._next;return n},_N=function(t,r){var n=t._targets,i,a,o;for(i in r)for(a=n.length;a--;)o=t._ptLookup[a][i],o&&(o=o.d)&&(o._pt&&(o=xN(o,i)),o&&o.modifier&&o.modifier(r[i],t,n[a],i))},Uf=function(t,r){return{name:t,headless:1,rawVars:1,init:function(i,a,o){o._onInit=function(s){var l,u;if(Ge(a)&&(l={},wr(a,function(c){return l[c]=1}),a=l),r){l={};for(u in a)l[u]=r(a[u]);a=l}_N(s,a)}}}},Pr=Nu.registerPlugin({name:"attr",init:function(t,r,n,i,a){var o,s,l;this.tween=n;for(o in r)l=t.getAttribute(o)||"",s=this.add(t,"setAttribute",(l||0)+"",r[o],i,a,0,0,o),s.op=o,s.b=l,this._props.push(o)},render:function(t,r){for(var n=r._pt;n;)tr?n.set(n.t,n.p,n.b,n):n.r(t,n.d),n=n._next}},{name:"endArray",headless:1,init:function(t,r){for(var n=r.length;n--;)this.add(t,n,t[n]||0,r[n],0,0,0,0,0,1)}},Uf("roundProps",ky),Uf("modifiers"),Uf("snap",CP))||Nu;Ce.version=pr.version=Pr.version="3.13.0";mP=1;Nv()&&co();Ct.Power0;Ct.Power1;Ct.Power2;Ct.Power3;Ct.Power4;Ct.Linear;Ct.Quad;Ct.Cubic;Ct.Quart;Ct.Quint;Ct.Strong;Ct.Elastic;Ct.Back;Ct.SteppedEase;Ct.Bounce;Ct.Sine;Ct.Expo;Ct.Circ;/*!
|
|
9
|
+
* CSSPlugin 3.13.0
|
|
10
|
+
* https://gsap.com
|
|
11
|
+
*
|
|
12
|
+
* Copyright 2008-2025, GreenSock. All rights reserved.
|
|
13
|
+
* Subject to the terms at https://gsap.com/standard-license
|
|
14
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
15
|
+
*/var Xb,gi,Ka,Yv,Yi,Yb,Vv,wN=function(){return typeof window<"u"},ei={},Hi=180/Math.PI,Xa=Math.PI/180,ja=Math.atan2,Vb=1e8,Zv=/([A-Z])/g,SN=/(left|right|width|margin|padding|x)/i,AN=/[\s,\(]\S/,Pn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Ry=function(t,r){return r.set(r.t,r.p,Math.round((r.s+r.c*t)*1e4)/1e4+r.u,r)},ON=function(t,r){return r.set(r.t,r.p,t===1?r.e:Math.round((r.s+r.c*t)*1e4)/1e4+r.u,r)},TN=function(t,r){return r.set(r.t,r.p,t?Math.round((r.s+r.c*t)*1e4)/1e4+r.u:r.b,r)},PN=function(t,r){var n=r.s+r.c*t;r.set(r.t,r.p,~~(n+(n<0?-.5:.5))+r.u,r)},ZP=function(t,r){return r.set(r.t,r.p,t?r.e:r.b,r)},JP=function(t,r){return r.set(r.t,r.p,t!==1?r.b:r.e,r)},EN=function(t,r,n){return t.style[r]=n},MN=function(t,r,n){return t.style.setProperty(r,n)},CN=function(t,r,n){return t._gsap[r]=n},kN=function(t,r,n){return t._gsap.scaleX=t._gsap.scaleY=n},$N=function(t,r,n,i,a){var o=t._gsap;o.scaleX=o.scaleY=n,o.renderTransform(a,o)},jN=function(t,r,n,i,a){var o=t._gsap;o[r]=n,o.renderTransform(a,o)},me="transform",Ar=me+"Origin",RN=function e(t,r){var n=this,i=this.target,a=i.style,o=i._gsap;if(t in ei&&a){if(this.tfm=this.tfm||{},t!=="transform")t=Pn[t]||t,~t.indexOf(",")?t.split(",").forEach(function(s){return n.tfm[s]=zn(i,s)}):this.tfm[t]=o.x?o[t]:zn(i,t),t===Ar&&(this.tfm.zOrigin=o.zOrigin);else return Pn.transform.split(",").forEach(function(s){return e.call(n,s,r)});if(this.props.indexOf(me)>=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Ar,r,"")),t=me}(a||r)&&this.props.push(t,r,a[t])},QP=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},DN=function(){var t=this.props,r=this.target,n=r.style,i=r._gsap,a,o;for(a=0;a<t.length;a+=3)t[a+1]?t[a+1]===2?r[t[a]](t[a+2]):r[t[a]]=t[a+2]:t[a+2]?n[t[a]]=t[a+2]:n.removeProperty(t[a].substr(0,2)==="--"?t[a]:t[a].replace(Zv,"-$1").toLowerCase());if(this.tfm){for(o in this.tfm)i[o]=this.tfm[o];i.svg&&(i.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),a=Vv(),(!a||!a.isStart)&&!n[me]&&(QP(n),i.zOrigin&&n[Ar]&&(n[Ar]+=" "+i.zOrigin+"px",i.zOrigin=0,i.renderTransform()),i.uncache=1)}},tE=function(t,r){var n={target:t,props:[],revert:DN,save:RN};return t._gsap||Pr.core.getCache(t),r&&t.style&&t.nodeType&&r.split(",").forEach(function(i){return n.save(i)}),n},eE,Dy=function(t,r){var n=gi.createElementNS?gi.createElementNS((r||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):gi.createElement(t);return n&&n.style?n:gi.createElement(t)},en=function e(t,r,n){var i=getComputedStyle(t);return i[r]||i.getPropertyValue(r.replace(Zv,"-$1").toLowerCase())||i.getPropertyValue(r)||!n&&e(t,fo(r)||r,1)||""},Zb="O,Moz,ms,Ms,Webkit".split(","),fo=function(t,r,n){var i=r||Yi,a=i.style,o=5;if(t in a&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);o--&&!(Zb[o]+t in a););return o<0?null:(o===3?"ms":o>=0?Zb[o]:"")+t},Iy=function(){wN()&&window.document&&(Xb=window,gi=Xb.document,Ka=gi.documentElement,Yi=Dy("div")||{style:{}},Dy("div"),me=fo(me),Ar=me+"Origin",Yi.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",eE=!!fo("perspective"),Vv=Pr.core.reverting,Yv=1)},Jb=function(t){var r=t.ownerSVGElement,n=Dy("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0),a;i.style.display="block",n.appendChild(i),Ka.appendChild(n);try{a=i.getBBox()}catch{}return n.removeChild(i),Ka.removeChild(n),a},Qb=function(t,r){for(var n=r.length;n--;)if(t.hasAttribute(r[n]))return t.getAttribute(r[n])},rE=function(t){var r,n;try{r=t.getBBox()}catch{r=Jb(t),n=1}return r&&(r.width||r.height)||n||(r=Jb(t)),r&&!r.width&&!r.x&&!r.y?{x:+Qb(t,["x","cx","x1"])||0,y:+Qb(t,["y","cy","y1"])||0,width:0,height:0}:r},nE=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&rE(t))},pa=function(t,r){if(r){var n=t.style,i;r in ei&&r!==Ar&&(r=me),n.removeProperty?(i=r.substr(0,2),(i==="ms"||r.substr(0,6)==="webkit")&&(r="-"+r),n.removeProperty(i==="--"?r:r.replace(Zv,"-$1").toLowerCase())):n.removeAttribute(r)}},vi=function(t,r,n,i,a,o){var s=new Sr(t._pt,r,n,0,1,o?JP:ZP);return t._pt=s,s.b=i,s.e=a,t._props.push(n),s},tx={deg:1,rad:1,turn:1},IN={grid:1,flex:1},Pi=function e(t,r,n,i){var a=parseFloat(n)||0,o=(n+"").trim().substr((a+"").length)||"px",s=Yi.style,l=SN.test(r),u=t.tagName.toLowerCase()==="svg",c=(u?"client":"offset")+(l?"Width":"Height"),f=100,h=i==="px",p=i==="%",y,m,d,b;if(i===o||!a||tx[i]||tx[o])return a;if(o!=="px"&&!h&&(a=e(t,r,n,"px")),b=t.getCTM&&nE(t),(p||o==="%")&&(ei[r]||~r.indexOf("adius")))return y=b?t.getBBox()[l?"width":"height"]:t[c],Ae(p?a/y*f:a/100*y);if(s[l?"width":"height"]=f+(h?o:i),m=i!=="rem"&&~r.indexOf("adius")||i==="em"&&t.appendChild&&!u?t:t.parentNode,b&&(m=(t.ownerSVGElement||{}).parentNode),(!m||m===gi||!m.appendChild)&&(m=gi.body),d=m._gsap,d&&p&&d.width&&l&&d.time===Lr.time&&!d.uncache)return Ae(a/d.width*f);if(p&&(r==="height"||r==="width")){var v=t.style[r];t.style[r]=f+i,y=t[c],v?t.style[r]=v:pa(t,r)}else(p||o==="%")&&!IN[en(m,"display")]&&(s.position=en(t,"position")),m===t&&(s.position="static"),m.appendChild(Yi),y=Yi[c],m.removeChild(Yi),s.position="absolute";return l&&p&&(d=ea(m),d.time=Lr.time,d.width=m[c]),Ae(h?y*a/f:y&&a?f/y*a:0)},zn=function(t,r,n,i){var a;return Yv||Iy(),r in Pn&&r!=="transform"&&(r=Pn[r],~r.indexOf(",")&&(r=r.split(",")[0])),ei[r]&&r!=="transform"?(a=Ks(t,i),a=r!=="transformOrigin"?a[r]:a.svg?a.origin:Bu(en(t,Ar))+" "+a.zOrigin+"px"):(a=t.style[r],(!a||a==="auto"||i||~(a+"").indexOf("calc("))&&(a=Lu[r]&&Lu[r](t,r,n)||en(t,r)||bP(t,r)||(r==="opacity"?1:0))),n&&!~(a+"").trim().indexOf(" ")?Pi(t,r,a,n)+n:a},NN=function(t,r,n,i){if(!n||n==="none"){var a=fo(r,t,1),o=a&&en(t,a,1);o&&o!==n?(r=a,n=o):r==="borderColor"&&(n=en(t,"borderTopColor"))}var s=new Sr(this._pt,t.style,r,0,1,XP),l=0,u=0,c,f,h,p,y,m,d,b,v,x,_,g;if(s.b=n,s.e=i,n+="",i+="",i.substring(0,6)==="var(--"&&(i=en(t,i.substring(4,i.indexOf(")")))),i==="auto"&&(m=t.style[r],t.style[r]=i,i=en(t,r)||i,m?t.style[r]=m:pa(t,r)),c=[n,i],LP(c),n=c[0],i=c[1],h=n.match(Ba)||[],g=i.match(Ba)||[],g.length){for(;f=Ba.exec(i);)d=f[0],v=i.substring(l,f.index),y?y=(y+1)%5:(v.substr(-5)==="rgba("||v.substr(-5)==="hsla(")&&(y=1),d!==(m=h[u++]||"")&&(p=parseFloat(m)||0,_=m.substr((p+"").length),d.charAt(1)==="="&&(d=Ga(p,d)+_),b=parseFloat(d),x=d.substr((b+"").length),l=Ba.lastIndex-x.length,x||(x=x||Fr.units[r]||_,l===i.length&&(i+=x,s.e+=x)),_!==x&&(p=Pi(t,r,m,x)||0),s._pt={_next:s._pt,p:v||u===1?v:",",s:p,c:b-p,m:y&&y<4||r==="zIndex"?Math.round:0});s.c=l<i.length?i.substring(l,i.length):""}else s.r=r==="display"&&i==="none"?JP:ZP;return pP.test(i)&&(s.e=0),this._pt=s,s},ex={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},LN=function(t){var r=t.split(" "),n=r[0],i=r[1]||"50%";return(n==="top"||n==="bottom"||i==="left"||i==="right")&&(t=n,n=i,i=t),r[0]=ex[n]||n,r[1]=ex[i]||i,r.join(" ")},BN=function(t,r){if(r.tween&&r.tween._time===r.tween._dur){var n=r.t,i=n.style,a=r.u,o=n._gsap,s,l,u;if(a==="all"||a===!0)i.cssText="",l=1;else for(a=a.split(","),u=a.length;--u>-1;)s=a[u],ei[s]&&(l=1,s=s==="transformOrigin"?Ar:me),pa(n,s);l&&(pa(n,me),o&&(o.svg&&n.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",Ks(n,1),o.uncache=1,QP(i)))}},Lu={clearProps:function(t,r,n,i,a){if(a.data!=="isFromStart"){var o=t._pt=new Sr(t._pt,r,n,0,0,BN);return o.u=i,o.pr=-10,o.tween=a,t._props.push(n),1}}},Gs=[1,0,0,1,0,0],iE={},aE=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},rx=function(t){var r=en(t,me);return aE(r)?Gs:r.substr(7).match(hP).map(Ae)},Jv=function(t,r){var n=t._gsap||ea(t),i=t.style,a=rx(t),o,s,l,u;return n.svg&&t.getAttribute("transform")?(l=t.transform.baseVal.consolidate().matrix,a=[l.a,l.b,l.c,l.d,l.e,l.f],a.join(",")==="1,0,0,1,0,0"?Gs:a):(a===Gs&&!t.offsetParent&&t!==Ka&&!n.svg&&(l=i.display,i.display="block",o=t.parentNode,(!o||!t.offsetParent&&!t.getBoundingClientRect().width)&&(u=1,s=t.nextElementSibling,Ka.appendChild(t)),a=rx(t),l?i.display=l:pa(t,"display"),u&&(s?o.insertBefore(t,s):o?o.appendChild(t):Ka.removeChild(t))),r&&a.length>6?[a[0],a[1],a[4],a[5],a[12],a[13]]:a)},Ny=function(t,r,n,i,a,o){var s=t._gsap,l=a||Jv(t,!0),u=s.xOrigin||0,c=s.yOrigin||0,f=s.xOffset||0,h=s.yOffset||0,p=l[0],y=l[1],m=l[2],d=l[3],b=l[4],v=l[5],x=r.split(" "),_=parseFloat(x[0])||0,g=parseFloat(x[1])||0,w,S,A,T;n?l!==Gs&&(S=p*d-y*m)&&(A=_*(d/S)+g*(-m/S)+(m*v-d*b)/S,T=_*(-y/S)+g*(p/S)-(p*v-y*b)/S,_=A,g=T):(w=rE(t),_=w.x+(~x[0].indexOf("%")?_/100*w.width:_),g=w.y+(~(x[1]||x[0]).indexOf("%")?g/100*w.height:g)),i||i!==!1&&s.smooth?(b=_-u,v=g-c,s.xOffset=f+(b*p+v*m)-b,s.yOffset=h+(b*y+v*d)-v):s.xOffset=s.yOffset=0,s.xOrigin=_,s.yOrigin=g,s.smooth=!!i,s.origin=r,s.originIsAbsolute=!!n,t.style[Ar]="0px 0px",o&&(vi(o,s,"xOrigin",u,_),vi(o,s,"yOrigin",c,g),vi(o,s,"xOffset",f,s.xOffset),vi(o,s,"yOffset",h,s.yOffset)),t.setAttribute("data-svg-origin",_+" "+g)},Ks=function(t,r){var n=t._gsap||new zP(t);if("x"in n&&!r&&!n.uncache)return n;var i=t.style,a=n.scaleX<0,o="px",s="deg",l=getComputedStyle(t),u=en(t,Ar)||"0",c,f,h,p,y,m,d,b,v,x,_,g,w,S,A,T,M,P,E,C,$,j,k,R,L,U,I,B,q,N,G,F;return c=f=h=m=d=b=v=x=_=0,p=y=1,n.svg=!!(t.getCTM&&nE(t)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[me]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[me]!=="none"?l[me]:"")),i.scale=i.rotate=i.translate="none"),S=Jv(t,n.svg),n.svg&&(n.uncache?(L=t.getBBox(),u=n.xOrigin-L.x+"px "+(n.yOrigin-L.y)+"px",R=""):R=!r&&t.getAttribute("data-svg-origin"),Ny(t,R||u,!!R||n.originIsAbsolute,n.smooth!==!1,S)),g=n.xOrigin||0,w=n.yOrigin||0,S!==Gs&&(P=S[0],E=S[1],C=S[2],$=S[3],c=j=S[4],f=k=S[5],S.length===6?(p=Math.sqrt(P*P+E*E),y=Math.sqrt($*$+C*C),m=P||E?ja(E,P)*Hi:0,v=C||$?ja(C,$)*Hi+m:0,v&&(y*=Math.abs(Math.cos(v*Xa))),n.svg&&(c-=g-(g*P+w*C),f-=w-(g*E+w*$))):(F=S[6],N=S[7],I=S[8],B=S[9],q=S[10],G=S[11],c=S[12],f=S[13],h=S[14],A=ja(F,q),d=A*Hi,A&&(T=Math.cos(-A),M=Math.sin(-A),R=j*T+I*M,L=k*T+B*M,U=F*T+q*M,I=j*-M+I*T,B=k*-M+B*T,q=F*-M+q*T,G=N*-M+G*T,j=R,k=L,F=U),A=ja(-C,q),b=A*Hi,A&&(T=Math.cos(-A),M=Math.sin(-A),R=P*T-I*M,L=E*T-B*M,U=C*T-q*M,G=$*M+G*T,P=R,E=L,C=U),A=ja(E,P),m=A*Hi,A&&(T=Math.cos(A),M=Math.sin(A),R=P*T+E*M,L=j*T+k*M,E=E*T-P*M,k=k*T-j*M,P=R,j=L),d&&Math.abs(d)+Math.abs(m)>359.9&&(d=m=0,b=180-b),p=Ae(Math.sqrt(P*P+E*E+C*C)),y=Ae(Math.sqrt(k*k+F*F)),A=ja(j,k),v=Math.abs(A)>2e-4?A*Hi:0,_=G?1/(G<0?-G:G):0),n.svg&&(R=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!aE(en(t,me)),R&&t.setAttribute("transform",R))),Math.abs(v)>90&&Math.abs(v)<270&&(a?(p*=-1,v+=m<=0?180:-180,m+=m<=0?180:-180):(y*=-1,v+=v<=0?180:-180)),r=r||n.uncache,n.x=c-((n.xPercent=c&&(!r&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-c)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+o,n.y=f-((n.yPercent=f&&(!r&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-f)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+o,n.z=h+o,n.scaleX=Ae(p),n.scaleY=Ae(y),n.rotation=Ae(m)+s,n.rotationX=Ae(d)+s,n.rotationY=Ae(b)+s,n.skewX=v+s,n.skewY=x+s,n.transformPerspective=_+o,(n.zOrigin=parseFloat(u.split(" ")[2])||!r&&n.zOrigin||0)&&(i[Ar]=Bu(u)),n.xOffset=n.yOffset=0,n.force3D=Fr.force3D,n.renderTransform=n.svg?FN:eE?oE:qN,n.uncache=0,n},Bu=function(t){return(t=t.split(" "))[0]+" "+t[1]},Wf=function(t,r,n){var i=cr(r);return Ae(parseFloat(r)+parseFloat(Pi(t,"x",n+"px",i)))+i},qN=function(t,r){r.z="0px",r.rotationY=r.rotationX="0deg",r.force3D=0,oE(t,r)},Fi="0deg",es="0px",zi=") ",oE=function(t,r){var n=r||this,i=n.xPercent,a=n.yPercent,o=n.x,s=n.y,l=n.z,u=n.rotation,c=n.rotationY,f=n.rotationX,h=n.skewX,p=n.skewY,y=n.scaleX,m=n.scaleY,d=n.transformPerspective,b=n.force3D,v=n.target,x=n.zOrigin,_="",g=b==="auto"&&t&&t!==1||b===!0;if(x&&(f!==Fi||c!==Fi)){var w=parseFloat(c)*Xa,S=Math.sin(w),A=Math.cos(w),T;w=parseFloat(f)*Xa,T=Math.cos(w),o=Wf(v,o,S*T*-x),s=Wf(v,s,-Math.sin(w)*-x),l=Wf(v,l,A*T*-x+x)}d!==es&&(_+="perspective("+d+zi),(i||a)&&(_+="translate("+i+"%, "+a+"%) "),(g||o!==es||s!==es||l!==es)&&(_+=l!==es||g?"translate3d("+o+", "+s+", "+l+") ":"translate("+o+", "+s+zi),u!==Fi&&(_+="rotate("+u+zi),c!==Fi&&(_+="rotateY("+c+zi),f!==Fi&&(_+="rotateX("+f+zi),(h!==Fi||p!==Fi)&&(_+="skew("+h+", "+p+zi),(y!==1||m!==1)&&(_+="scale("+y+", "+m+zi),v.style[me]=_||"translate(0, 0)"},FN=function(t,r){var n=r||this,i=n.xPercent,a=n.yPercent,o=n.x,s=n.y,l=n.rotation,u=n.skewX,c=n.skewY,f=n.scaleX,h=n.scaleY,p=n.target,y=n.xOrigin,m=n.yOrigin,d=n.xOffset,b=n.yOffset,v=n.forceCSS,x=parseFloat(o),_=parseFloat(s),g,w,S,A,T;l=parseFloat(l),u=parseFloat(u),c=parseFloat(c),c&&(c=parseFloat(c),u+=c,l+=c),l||u?(l*=Xa,u*=Xa,g=Math.cos(l)*f,w=Math.sin(l)*f,S=Math.sin(l-u)*-h,A=Math.cos(l-u)*h,u&&(c*=Xa,T=Math.tan(u-c),T=Math.sqrt(1+T*T),S*=T,A*=T,c&&(T=Math.tan(c),T=Math.sqrt(1+T*T),g*=T,w*=T)),g=Ae(g),w=Ae(w),S=Ae(S),A=Ae(A)):(g=f,A=h,w=S=0),(x&&!~(o+"").indexOf("px")||_&&!~(s+"").indexOf("px"))&&(x=Pi(p,"x",o,"px"),_=Pi(p,"y",s,"px")),(y||m||d||b)&&(x=Ae(x+y-(y*g+m*S)+d),_=Ae(_+m-(y*w+m*A)+b)),(i||a)&&(T=p.getBBox(),x=Ae(x+i/100*T.width),_=Ae(_+a/100*T.height)),T="matrix("+g+","+w+","+S+","+A+","+x+","+_+")",p.setAttribute("transform",T),v&&(p.style[me]=T)},zN=function(t,r,n,i,a){var o=360,s=Ge(a),l=parseFloat(a)*(s&&~a.indexOf("rad")?Hi:1),u=l-i,c=i+u+"deg",f,h;return s&&(f=a.split("_")[1],f==="short"&&(u%=o,u!==u%(o/2)&&(u+=u<0?o:-o)),f==="cw"&&u<0?u=(u+o*Vb)%o-~~(u/o)*o:f==="ccw"&&u>0&&(u=(u-o*Vb)%o-~~(u/o)*o)),t._pt=h=new Sr(t._pt,r,n,i,u,ON),h.e=c,h.u="deg",t._props.push(n),h},nx=function(t,r){for(var n in r)t[n]=r[n];return t},UN=function(t,r,n){var i=nx({},n._gsap),a="perspective,force3D,transformOrigin,svgOrigin",o=n.style,s,l,u,c,f,h,p,y;i.svg?(u=n.getAttribute("transform"),n.setAttribute("transform",""),o[me]=r,s=Ks(n,1),pa(n,me),n.setAttribute("transform",u)):(u=getComputedStyle(n)[me],o[me]=r,s=Ks(n,1),o[me]=u);for(l in ei)u=i[l],c=s[l],u!==c&&a.indexOf(l)<0&&(p=cr(u),y=cr(c),f=p!==y?Pi(n,l,u,y):parseFloat(u),h=parseFloat(c),t._pt=new Sr(t._pt,s,l,f,h-f,Ry),t._pt.u=y||0,t._props.push(l));nx(s,i)};wr("padding,margin,Width,Radius",function(e,t){var r="Top",n="Right",i="Bottom",a="Left",o=(t<3?[r,n,i,a]:[r+a,r+n,i+n,i+a]).map(function(s){return t<2?e+s:"border"+s+e});Lu[t>1?"border"+e:e]=function(s,l,u,c,f){var h,p;if(arguments.length<4)return h=o.map(function(y){return zn(s,y,u)}),p=h.join(" "),p.split(h[0]).length===5?h[0]:p;h=(c+"").split(" "),p={},o.forEach(function(y,m){return p[y]=h[m]=h[m]||h[(m-1)/2|0]}),s.init(l,p,f)}});var sE={name:"css",register:Iy,targetTest:function(t){return t.style&&t.nodeType},init:function(t,r,n,i,a){var o=this._props,s=t.style,l=n.vars.startAt,u,c,f,h,p,y,m,d,b,v,x,_,g,w,S,A;Yv||Iy(),this.styles=this.styles||tE(t),A=this.styles.props,this.tween=n;for(m in r)if(m!=="autoRound"&&(c=r[m],!(Nr[m]&&UP(m,r,n,i,t,a)))){if(p=typeof c,y=Lu[m],p==="function"&&(c=c.call(n,i,t,a),p=typeof c),p==="string"&&~c.indexOf("random(")&&(c=Us(c)),y)y(this,t,m,c,n)&&(S=1);else if(m.substr(0,2)==="--")u=(getComputedStyle(t).getPropertyValue(m)+"").trim(),c+="",Ai.lastIndex=0,Ai.test(u)||(d=cr(u),b=cr(c)),b?d!==b&&(u=Pi(t,m,u,b)+b):d&&(c+=d),this.add(s,"setProperty",u,c,i,a,0,0,m),o.push(m),A.push(m,0,s[m]);else if(p!=="undefined"){if(l&&m in l?(u=typeof l[m]=="function"?l[m].call(n,i,t,a):l[m],Ge(u)&&~u.indexOf("random(")&&(u=Us(u)),cr(u+"")||u==="auto"||(u+=Fr.units[m]||cr(zn(t,m))||""),(u+"").charAt(1)==="="&&(u=zn(t,m))):u=zn(t,m),h=parseFloat(u),v=p==="string"&&c.charAt(1)==="="&&c.substr(0,2),v&&(c=c.substr(2)),f=parseFloat(c),m in Pn&&(m==="autoAlpha"&&(h===1&&zn(t,"visibility")==="hidden"&&f&&(h=0),A.push("visibility",0,s.visibility),vi(this,s,"visibility",h?"inherit":"hidden",f?"inherit":"hidden",!f)),m!=="scale"&&m!=="transform"&&(m=Pn[m],~m.indexOf(",")&&(m=m.split(",")[0]))),x=m in ei,x){if(this.styles.save(m),p==="string"&&c.substring(0,6)==="var(--"&&(c=en(t,c.substring(4,c.indexOf(")"))),f=parseFloat(c)),_||(g=t._gsap,g.renderTransform&&!r.parseTransform||Ks(t,r.parseTransform),w=r.smoothOrigin!==!1&&g.smooth,_=this._pt=new Sr(this._pt,s,me,0,1,g.renderTransform,g,0,-1),_.dep=1),m==="scale")this._pt=new Sr(this._pt,g,"scaleY",g.scaleY,(v?Ga(g.scaleY,v+f):f)-g.scaleY||0,Ry),this._pt.u=0,o.push("scaleY",m),m+="X";else if(m==="transformOrigin"){A.push(Ar,0,s[Ar]),c=LN(c),g.svg?Ny(t,c,0,w,0,this):(b=parseFloat(c.split(" ")[2])||0,b!==g.zOrigin&&vi(this,g,"zOrigin",g.zOrigin,b),vi(this,s,m,Bu(u),Bu(c)));continue}else if(m==="svgOrigin"){Ny(t,c,1,w,0,this);continue}else if(m in iE){zN(this,g,m,h,v?Ga(h,v+c):c);continue}else if(m==="smoothOrigin"){vi(this,g,"smooth",g.smooth,c);continue}else if(m==="force3D"){g[m]=c;continue}else if(m==="transform"){UN(this,c,t);continue}}else m in s||(m=fo(m)||m);if(x||(f||f===0)&&(h||h===0)&&!AN.test(c)&&m in s)d=(u+"").substr((h+"").length),f||(f=0),b=cr(c)||(m in Fr.units?Fr.units[m]:d),d!==b&&(h=Pi(t,m,u,b)),this._pt=new Sr(this._pt,x?g:s,m,h,(v?Ga(h,v+f):f)-h,!x&&(b==="px"||m==="zIndex")&&r.autoRound!==!1?PN:Ry),this._pt.u=b||0,d!==b&&b!=="%"&&(this._pt.b=u,this._pt.r=TN);else if(m in s)NN.call(this,t,m,u,v?v+c:c);else if(m in t)this.add(t,m,u||t[m],v?v+c:c,i,a);else if(m!=="parseTransform"){Bv(m,c);continue}x||(m in s?A.push(m,0,s[m]):typeof t[m]=="function"?A.push(m,2,t[m]()):A.push(m,1,u||t[m])),o.push(m)}}S&&YP(this)},render:function(t,r){if(r.tween._time||!Vv())for(var n=r._pt;n;)n.r(t,n.d),n=n._next;else r.styles.revert()},get:zn,aliases:Pn,getSetter:function(t,r,n){var i=Pn[r];return i&&i.indexOf(",")<0&&(r=i),r in ei&&r!==Ar&&(t._gsap.x||zn(t,"x"))?n&&Yb===n?r==="scale"?kN:CN:(Yb=n||{})&&(r==="scale"?$N:jN):t.style&&!Iv(t.style[r])?EN:~r.indexOf("-")?MN:Kv(t,r)},core:{_removeProperty:pa,_getMatrix:Jv}};Pr.utils.checkPrefix=fo;Pr.core.getStyleSaver=tE;(function(e,t,r,n){var i=wr(e+","+t+","+r,function(a){ei[a]=1});wr(t,function(a){Fr.units[a]="deg",iE[a]=1}),Pn[i[13]]=e+","+t,wr(n,function(a){var o=a.split(":");Pn[o[1]]=i[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");wr("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){Fr.units[e]="px"});Pr.registerPlugin(sE);var Ly=Pr.registerPlugin(sE)||Pr;Ly.core.Tween;const Ra={IN_OUT:"power2.inOut",OUT:"power2.out"},rs={NO_STAGGER:0,RIPPLE_STAGGER_DELAY:.05};class lE{constructor(t,r={}){Yo(this,"timeline");Yo(this,"currentStage","");Yo(this,"callbacks");Yo(this,"durations");this.durations=t,this.callbacks=r,this.timeline=Ly.timeline({paused:!0,onUpdate:()=>this.handleProgress(),onComplete:()=>{var i,a,o,s;(a=(i=this.callbacks).onComplete)==null||a.call(i),(s=(o=this.callbacks).onStageComplete)==null||s.call(o,"complete")}});let n=0;this.timeline.addLabel("seatsToRings",n),n+=t.seatsToRings/1e3,this.timeline.addLabel("ringsToBar",n),n+=t.ringsToBar/1e3,this.timeline.addLabel("axesReveal",n),n+=t.axesReveal/1e3,this.timeline.addLabel("barSlide",n),n+=t.barSlide/1e3,this.timeline.addLabel("barsGrow",n),n+=t.barsGrow/1e3,this.timeline.addLabel("barsToArea",n)}animateSeatsToRings(t,r){const n=this.durations.seatsToRings/1e3;return t.each(function(){const i=this;if(!i.getAttribute("data-orig-x")){const a=i.getAttribute("x"),o=i.getAttribute("y"),s=i.getAttribute("width"),l=i.getAttribute("height");i.setAttribute("data-orig-x",a||"0"),i.setAttribute("data-orig-y",o||"0"),i.setAttribute("data-orig-width",s||"0"),i.setAttribute("data-orig-height",l||"0")}}),this.timeline.to(t.nodes(),{width:2,y:(i,a)=>parseFloat(a.getAttribute("y")||"0"),height:(i,a)=>{const o=parseFloat(a.getAttribute("y")||"0");return r-o},duration:n,ease:Ra.IN_OUT,stagger:rs.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="seatsToRings",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"seatsToRings")}},"seatsToRings"),this}animateRingsToBar(t,r){const n=this.durations.ringsToBar/1e3;return t.each(function(i,a){const o=this;if(!r[a])return;const l=o.getAttribute("x"),u=o.getAttribute("y"),c=o.getAttribute("width"),f=o.getAttribute("height");o.setAttribute("data-orig-x",l||"0"),o.setAttribute("data-orig-y",u||"0"),o.setAttribute("data-orig-width",c||"0"),o.setAttribute("data-orig-height",f||"0")}),this.timeline.to(t.nodes(),{x:i=>{var a;return((a=r[i])==null?void 0:a.x)??0},y:i=>{var a;return((a=r[i])==null?void 0:a.y)??0},width:i=>{var a;return((a=r[i])==null?void 0:a.width)??0},height:i=>{var a;return((a=r[i])==null?void 0:a.height)??0},duration:n,ease:Ra.IN_OUT,stagger:rs.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="ringsToBar",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"ringsToBar")}},"ringsToBar"),this}animateAxesReveal(t,r){const n=this.durations.axesReveal/1e3;return this.timeline.to([t.node(),r.node()],{opacity:1,duration:n,ease:Ra.IN_OUT,stagger:rs.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="axesReveal",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"axesReveal")}},"axesReveal"),this}animateBarSlide(t,r){const n=this.durations.barSlide/1e3;return this.timeline.to(t.nodes(),{x:r,duration:n,ease:Ra.OUT,stagger:rs.NO_STAGGER,onStart:()=>{var i,a;this.currentStage="barSlide",(a=(i=this.callbacks).onStageComplete)==null||a.call(i,"barSlide")}},"barSlide"),this}animateBarsGrow(t,r,n=rs.RIPPLE_STAGGER_DELAY){const i=this.durations.barsGrow/1e3;return t.nodes().forEach((o,s)=>{const l=o,u=l.getAttribute("data-final-y")||"0",c=l.getAttribute("data-final-height")||"0",f=parseInt(l.getAttribute("data-timestamp-index")||"0"),p=Math.abs(f-r)*n;this.timeline.fromTo(l,{height:0,y:parseFloat(l.getAttribute("data-chart-baseline")||"400")},{y:parseFloat(u),height:parseFloat(c),duration:i,delay:p,ease:Ra.OUT},"barsGrow")}),this.timeline.call(()=>{var o,s;this.currentStage="barsGrow",(s=(o=this.callbacks).onStageComplete)==null||s.call(o,"barsGrow")},[],"barsGrow"),this}animateBarsToArea(t,r,n,i){const a=this.durations.barsToArea/1e3,o=new Map;return t.each(function(){var c;const s=this,l=s.getAttribute("class");if(!l)return;const u=l.match(/category-([\w-]+)/);if(u&&u[1]){const f=u[1];o.has(f)||o.set(f,[]),(c=o.get(f))==null||c.push(s)}}),this.timeline.set(t.nodes(),{opacity:0},"barsToArea"),this.timeline.set(r.nodes(),{opacity:1},"barsToArea"),r.each(function(){const s=this,l=s.getAttribute("data-category");if(!l)return;const u=n.get(l);u&&Ly.to(s,{attr:{d:u},duration:a,ease:Ra.IN_OUT})}),this.timeline.call(()=>{var s,l;this.currentStage="barsToArea",(l=(s=this.callbacks).onStageComplete)==null||l.call(s,"barsToArea")},[],"barsToArea"),this}handleProgress(){var r,n;const t=this.timeline.progress();(n=(r=this.callbacks).onProgress)==null||n.call(r,t)}getControls(){return{play:()=>this.timeline.play(),pause:()=>this.timeline.pause(),reverse:()=>this.timeline.reverse(),restart:()=>this.timeline.restart(),seek:t=>this.timeline.progress(t),seekToStage:t=>{const r=this.timeline.labels[t];r!==void 0&&this.timeline.seek(r)},kill:()=>this.timeline.kill(),getProgress:()=>this.timeline.progress(),getCurrentStage:()=>this.currentStage,getTimeline:()=>this.timeline}}play(){this.timeline.play()}destroy(){this.timeline.kill()}}function WN(e,t){const{arcAngle:r,arcAngleFlexibility:n=5,radius:i,seatSize:a,minSeatSize:o,maxSeatSize:s,spacing:l,innerRadiusRatio:u}=t,c=i*u,f=e.reduce((E,C)=>E+C.seats,0);let h={seatSize:a,arcAngle:r,score:-1};const p=r-n,y=r+n;for(let E=p;E<=y;E+=2.5){const C=E*Math.PI/180;for(let $=s;$>=o;$-=.1){const j=$*2,k=j*l,R=Math.floor((i-c)/k);for(let L=1;L<=Math.min(R,10);L++){let U=0;for(let I=0;I<L;I++){const B=c+(I+.5)*k,q=j*l/B,N=Math.floor(C/q);U+=N}if(U>=f){const I=f/U,B=($-o)/(s-o),q=(U-f)/f,N=q<.15?1:q<.3?.7:q<.5?.4:.1,G=1-Math.abs(E-r)/n,F=N*.5+B*.3+I*.15+G*.05;F>h.score&&(h={seatSize:$,arcAngle:E,rings:L,score:F})}}}}const m=h.seatSize,d=h.arcAngle,b=d*Math.PI/180,v=m*2,x=v*l,_=Math.floor((i-c)/x),g=[],w=-b/2-Math.PI/2,S=[];let A=0,T=[];for(let E=1;E<=_;E++){let C=0;const $=[];for(let j=0;j<E;j++){const k=c+(j+.5)*x,R=v*l/k,L=Math.floor(b/R);$.push(L),C+=L}if(C>=f){A=E,T=$;break}}if(A>0)S.push(...T);else for(let E=0;E<_;E++){const C=c+(E+.5)*x,$=v*l/C,j=Math.floor(b/$);S.push(j)}for(let E=0;E<S.length;E++){const C=c+(E+.5)*x,$=S[E]??0;if($>0){const j=b/$;for(let k=0;k<$;k++){const R=w+(k+.5)*j,L=Math.cos(R)*C,U=Math.sin(R)*C;g.push({ring:E,index:k,angle:R,x:L,y:U})}}}g.sort((E,C)=>{const $=E.angle-C.angle;return Math.abs($)>.001?$:E.ring-C.ring});const M=[];let P=0;return e.forEach((E,C)=>{const $=Math.min(E.seats,g.length-P);for(let j=0;j<$&&P<g.length;j++){const k=g[P++];k&&M.push({x:k.x,y:k.y,category:E.name,categoryIndex:C,seatIndex:j,ring:k.ring,angle:k.angle,radius:m})}}),{arcAngle:d,radius:i,innerRadius:c,centerX:i,centerY:i,seatSize:m,seats:M,totalSeats:f}}function HN(e,t,r){const n=t<=r?1:r/t;return e.filter(i=>i.value>0).map(i=>{const a=t<=r?i.value:Math.max(1,Math.floor(i.value*n));return{id:i.dataKey,name:i.label,seats:a,colour:i.color}})}function qu({svg:e,events:t,xScale:r,chartHeight:n,chartWidth:i,timelineHeight:a,timelineOffset:o,instanceId:s,setHoveredTimelineEvent:l,enableBrush:u=!1,onTimeRangeChange:c,minAllowedTime:f,maxAllowedTime:h,brushColor:p="#69b3a2",mainGroupSelector:y}){const m=n+o,d=s?`.main-chart-group-${s}`:".main-chart-group",b=e.select(y??d),v=s?`timeline-track timeline-track-${s}`:"timeline-track",x=b.append("g").attr("class",v),_=6,g=s?`timeline-clip-${s}`:`timeline-clip-${Math.random().toString(36).substr(2,9)}`;e.append("defs").append("clipPath").attr("id",g).append("rect").attr("x",0).attr("y",m).attr("width",i+_).attr("height",a),x.append("rect").attr("class","timeline-background").attr("x",0).attr("y",m).attr("width",i).attr("height",a).attr("fill","#FFFFFF").attr("stroke","#9CA3AF").attr("stroke-width",1);const w=x.append("g").attr("clip-path",`url(#${g})`),S=3,A=w.selectAll(".timeline-event").data(t).enter().append("rect").attr("class","timeline-event").attr("x",M=>r(new Date(M.timestamp))-S/2).attr("y",m).attr("width",S).attr("height",a).attr("fill",M=>M.color||"#2F42FF").attr("stroke","none").attr("cursor","pointer").attr("data-timestamp",M=>M.timestamp).attr("data-event-name",M=>M.eventName),T=6;if(A.on("mouseenter",function(M,P){const E=Kt(this),C=r(new Date(P.timestamp));E.transition().duration(150).attr("x",C-T/2).attr("width",T),l&&l({timestamp:P.timestamp,eventName:P.eventName,x:C})}).on("mouseleave",function(M,P){const E=Kt(this),C=r(new Date(P.timestamp));E.transition().duration(150).attr("x",C-S/2).attr("width",S),l&&l(null)}),u&&c){const M=f,P=h,E=Pl().extent([[0,m],[i,m+a]]).on("start",j=>{if(!j.selection&&M!==void 0&&P!==void 0){const k=j.sourceEvent;if(k){const R=k.offsetX,L=+r.invert(R);if(L<M||L>P){const U=s?`.timeline-brush-${s}`:".timeline-brush";e.select(U).call(E.move,null);return}}}}).on("brush",j=>{if(!j.selection)return;const[k,R]=j.selection;let L=+r.invert(k),U=+r.invert(R);M!==void 0&&(L=Math.max(L,M),U=Math.max(U,M)),P!==void 0&&(L=Math.min(L,P),U=Math.min(U,P));const I=r(new Date(L)),B=r(new Date(U));if(I!==k||B!==R){const q=s?`.timeline-brush-${s}`:".timeline-brush";e.select(q).call(E.move,[I,B])}}).on("end",j=>{if(!j.selection)return;const[k,R]=j.selection,L=[+r.invert(k),+r.invert(R)];M!==void 0&&(L[0]=Math.max(L[0],M)),P!==void 0&&(L[1]=Math.min(L[1],P)),c(L);const U=s?`.timeline-brush-${s}`:".timeline-brush";e.select(U).call(E.move,null)}),C=s?`timeline-brush timeline-brush-${s}`:"timeline-brush",$=b.append("g").attr("class",C).call(E);$.selectAll(".selection").attr("fill",p).attr("fill-opacity",.2).attr("stroke",p).attr("stroke-width",1),$.selectAll(".handle").attr("fill",p).attr("fill-opacity",.8),$.on("dblclick",()=>{const j=r.domain(),k=[+j[0],+j[1]];c(k)})}}const Or={neoGrey:{200:"#EDEFEF",400:"#ADB5BD"},neoDigitalGreen:{600:"#40c048"}},Ss=["#4CA75A","#FDDA04","#FFC008","#FF9800","#F9A91B","#FF5C24","#ED4134","#CB3446"],br={greyHatch:{background:Or.neoGrey[200],lines:Or.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}};function GN(e,t){const r=e.append("pattern").attr("id",`${t}-greyHatchPattern`).attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("patternUnits","userSpaceOnUse");r.append("rect").attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("fill",br.greyHatch.background),r.append("path").attr("d","M0,2 L8,2").attr("stroke",br.greyHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M0,6 L8,6").attr("stroke",br.greyHatch.lines).attr("stroke-width",.5)}function KN(e,t){const r=e.append("pattern").attr("id",`${t}-dataMissingHatchPattern`).attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("patternUnits","userSpaceOnUse");r.append("rect").attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("fill",br.dataMissingHatch.background),r.append("path").attr("d","M0,8 L8,0").attr("stroke",br.dataMissingHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M-2,2 L2,-2").attr("stroke",br.dataMissingHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M6,10 L10,6").attr("stroke",br.dataMissingHatch.lines).attr("stroke-width",.5)}function XN(e,t){const r=e.append("pattern").attr("id",`${t}-noLstHatchPattern`).attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("patternUnits","userSpaceOnUse");r.append("rect").attr("x",0).attr("y",0).attr("width",8).attr("height",8).attr("fill",br.noLstHatch.background),r.append("path").attr("d","M0,0 L8,8").attr("stroke",br.noLstHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M-2,6 L2,10").attr("stroke",br.noLstHatch.lines).attr("stroke-width",.5),r.append("path").attr("d","M6,-2 L10,2").attr("stroke",br.noLstHatch.lines).attr("stroke-width",.5)}function Gl(e,t){let r=e.select("defs");r.empty()&&(r=e.append("defs")),GN(r,t),KN(r,t),XN(r,t)}function ix(e,t){if(e.startsWith("url(#")&&e.endsWith(")")){const r=e.slice(5,-1);return`url(#${t}-${r})`}return e}function Qv(e){return e.includes("greyHatchPattern")?br.greyHatch.lines:e.includes("dataMissingHatchPattern")?br.dataMissingHatch.lines:e.includes("noLstHatchPattern")?br.noLstHatch.lines:e}function By(e,t,r,n){const{xScale:i,yScale:a,addClasses:o=!0,instanceId:s}=n,l=mi().x(h=>i(new Date(h.data.timestamp))).y0(h=>a(h[0])).y1(h=>a(h[1])).curve(Qn),u=jv().x(h=>i(new Date(h.data.timestamp))).y(h=>a(h[1])).curve(Qn),c=s?`areas areas-${s}`:"areas";let f=e.select(s?`.areas-${s}`:".areas");f.empty()&&(f=e.append("g").attr("class",c)),t.forEach((h,p)=>{var b;const y=r[p];if(!y)return;const m=((b=y.parliamentMapping)==null?void 0:b.isSpecialCategory)??!1,d=Qv(y.color);if(m){const v=f.append("path").datum(h).attr("fill","none").attr("stroke",d).attr("stroke-width",3).attr("stroke-dasharray","15 8").attr("d",u).style("pointer-events","none");if(o){const x=s?`area area-${s} area-${y.dataKey}`:`area area-${y.dataKey}`;v.attr("class",x)}}else{const v=f.append("path").datum(h).attr("fill",y.color).attr("fill-opacity",y.fillOpacity??.7).attr("stroke",d).attr("stroke-width",y.strokeWidth??1.5).attr("d",l).style("pointer-events","none");if(o){const x=s?`area area-${s} area-${y.dataKey}`:`area area-${y.dataKey}`;v.attr("class",x)}}})}function YN(e,t){var n;const r=[];for(const i of e){let a=0;for(const o of t){const s=i[o.dataKey]||0,l=a,u=a+s;r.push({timestamp:i.timestamp,category:o.label,dataKey:o.dataKey,y0:l,y1:u,value:s,color:o.color,isSpecialCategory:((n=o.parliamentMapping)==null?void 0:n.isSpecialCategory)??!1}),a+=s}}return r}function sr(e){return e.replace(/[^a-zA-Z0-9-_]/g,"-")}function uE(e,t,r,n){const{centerX:i,centerY:a,addClasses:o=!0,instanceId:s,parliamentRadius:l=200}=n,u=s?`parliament parliament-${s}`:"parliament";let c=e.select(s?`.parliament-${s}`:".parliament");c.empty()&&(c=e.append("g").attr("class",u)),t.seats.forEach(p=>{const y=r.find(b=>b.label===p.category);if(!y)return;const m=c.append("circle").attr("cx",i+p.x).attr("cy",a+p.y).attr("r",p.radius).attr("fill",y.color).attr("stroke",y.color).attr("stroke-width",.5),d=c.append("circle").attr("cx",i+p.x).attr("cy",a+p.y).attr("r",p.radius*2.5).attr("fill","transparent").attr("stroke","none").attr("pointer-events","all");if(o){const b=s?`seat seat-${s} seat-${sr(p.category)}`:`seat seat-${sr(p.category)}`;m.attr("class",b),d.attr("class",b)}});const f=s?`parliament-label parliament-label-${s}`:"parliament-label";if(e.select(`.${f.split(" ")[0]}`).empty()){const p=e.append("g").attr("class",f).attr("transform",`translate(${i},${a-l*.15})`).style("opacity","0").style("pointer-events","none");p.append("text").attr("class","label-category").attr("text-anchor","middle").attr("dy","-15").style("font-size","22px").style("fill","#666").style("font-family","system-ui, -apple-system, sans-serif"),p.append("text").attr("class","label-value").attr("text-anchor","middle").attr("dy","35").style("font-size","48px").style("font-weight","bold").style("font-family","system-ui, -apple-system, sans-serif");const y=p.append("g").attr("class","scale-indicator").attr("transform","translate(0, 65)").style("opacity","0");y.append("circle").attr("r",4).attr("cx",-30).attr("cy",0).style("fill","#888"),y.append("text").attr("x",-20).attr("y",0).attr("dy","0.35em").attr("text-anchor","start").style("font-size","18px").style("fill","#666").style("font-style","italic").style("font-family","system-ui, -apple-system, sans-serif")}}function VN(e,t,r,n,i,a,o=!1){var f;const s=new Map;let l=i;if(t.length>0&&((f=t[0])==null?void 0:f.timestamp)!==void 0){const h=t[0].timestamp;l=r(new Date(h))}const u=new Map;for(const h of e.seats)u.has(h.category)||u.set(h.category,[]),u.get(h.category).push(h);const c=new Map;for(const h of t)c.set(h.dataKey,{y0:h.y0,y1:h.y1,isSpecialCategory:h.isSpecialCategory}),h.label&&h.label!==h.dataKey&&c.set(h.label,{y0:h.y0,y1:h.y1,isSpecialCategory:h.isSpecialCategory});for(const h of e.seats){const p=c.get(h.category);if(!p){s.set(h,{x:l,y:a/2});continue}const y=n(p.y0),m=n(p.y1);let d;if(o){const b=u.get(h.category)??[],v=h.seatIndex,x=b.length;if(x===1)d=(y+m)/2;else{const _=v/(x-1);d=y+(m-y)*_}}else d=m;s.set(h,{x:l,y:d})}return s}function ZN(e,t,r){var o;if(e.length===0)return[];const n=e[e.length-1],i=[];let a=0;for(const s of t){const l=n[s.dataKey]||0,u=a,c=a+l;i.push({dataKey:s.dataKey,label:s.label,y0:u,y1:c,value:l,timestamp:n.timestamp,isSpecialCategory:((o=s.parliamentMapping)==null?void 0:o.isSpecialCategory)??!1}),a+=l}return i}function JN(e){const t=e;return{seatsToLines:t*.2,seatsToBar:t*.07,crossFadePause:t*.003,barSlideToTimeline:t*.22,axesAndBarsGrow:t*.22,barsToArea:t*.287}}const Vi=new Map;Kt.prototype.transition=fv;const QN=({containerRef:e,data:t,categories:r,mode:n,width:i,height:a,margin:o,timeRange:s,showGrid:l=!0,showAxes:u=!0,axisLabelColor:c,axisLabelSize:f=14,formatDate:h,formatValue:p,markers:y=[],arcAngle:m=200,parliamentRadius:d=200,seatSize:b=4.5,animationDuration:v=900,onMorphComplete:x,onAnimationStateChange:_,onTimelineReady:g,onAnimationProgress:w,onHoveredDataChange:S,hoveredCategory:A,maxSeats:T=2e3,parliamentTimestamp:M,enableBrush:P=!1,onTimeRangeChange:E,minAllowedTime:C,maxAllowedTime:$,showScaleIndicator:j=!1,reposPerSeat:k=1,timelineEvents:R=[],showTimeline:L=!1,timelineHeight:U=40,timelineOffset:I=35,brushColor:B="#69b3a2"})=>{const[q,N]=O.useState("area"),[G,F]=O.useState(!1),[K,Z]=O.useState(null),[X,z]=O.useState(0),[Y,V]=O.useState(null),[D,rt]=O.useState(null),[W,tt]=O.useState([]),ft=O.useRef(null),at=O.useRef(n),dt=O.useRef(!0),Pt=O.useRef(!1),ct=O.useRef(`morph-${Math.random().toString(36).substr(2,9)}`),nt=O.useRef(void 0),pt=O.useRef(s),kt=O.useRef(y),lt=O.useRef(R),At=O.useRef(x),gt=O.useRef(_),Ot=O.useRef(g),oe=O.useRef(w),Wt=O.useRef(S);O.useEffect(()=>{At.current=x,gt.current=_,Ot.current=g,oe.current=w,Wt.current=S},[x,_,g,w,S]),O.useEffect(()=>{if(e.current&&q==="parliament")if(A){const Nt=r.find(Jt=>Jt.dataKey===A);if(Nt){const Jt=Nt.label;if(Z(Jt),Os(e.current,Jt),t.length>0){const xe=t[t.length-1],re=Math.round(xe.values[Nt.dataKey]||0),ye={label:Nt.label,value:re,color:Qv(Nt.color)};Fu(e.current,ye,j,k,ct.current)}}}else Z(null),Os(e.current,null),Fu(e.current,null,j,k,ct.current)},[A,q,r,t,j,k]);const fe=i-o.left-o.right,Zt=a-o.top-o.bottom;return O.useEffect(()=>{var Ht;if(!e.current||t.length===0||r.length===0||(nt.current&&(nt.current(),nt.current=void 0),Pt.current))return;const Nt=Kt(e.current),Jt=n!==at.current;dt.current?(Nt.selectAll("*").remove(),Gl(Nt,ct.current),dt.current=!1):Jt||(Nt.selectAll("*").remove(),Gl(Nt,ct.current));const xe=t[t.length-1],re=r.reduce((yt,Gt)=>yt+(xe.values[Gt.dataKey]||0),0),ye=t.map(yt=>{const Gt={timestamp:yt.timestamp};for(const ne of r)Gt[ne.dataKey]=yt.values[ne.dataKey]||0;return Gt}),Mr=r.map(yt=>yt.dataKey),je=qs().keys(Mr),sn=je(ye),Xe=t.map(yt=>yt.timestamp),Cr=Jt||!s?Math.min(...Xe):s[0],er=Jt||!s?Math.max(...Xe):s[1],Hr=[...Xe].sort((yt,Gt)=>yt-Gt),Ue=[];for(let yt=0;yt<Hr.length-1;yt++)Ue.push(Hr[yt+1]-Hr[yt]);const Lt=Ue.length>0?Ue.reduce((yt,Gt)=>yt+Gt,0)/Ue.length:0,_e=er+Lt*1.15,jt=Ha().domain([new Date(Cr),new Date(_e)]).range([0,fe]),Te=ye.filter(yt=>yt.timestamp>=Cr&&yt.timestamp<=er),Ye=je(Te),he=Ye.length>0?Math.max(...Ye[Ye.length-1].map(yt=>yt[1]??0)):0,we=Oi().domain([0,he*1.15]).range([Zt,0]),Re=r.map(yt=>({...yt,color:ix(yt.color,ct.current)})),Gr=Re.map(yt=>({dataKey:yt.dataKey,label:yt.label,color:yt.color,value:xe.values[yt.dataKey]||0})),et=HN(Gr,re,T).reverse(),mt=WN(et,{arcAngle:m,radius:d,seatSize:b,minSeatSize:4,maxSeatSize:30,spacing:1.1,innerRadiusRatio:.4});ft.current=mt;const wt=ZN(ye,r),Rt=VN(mt,wt,jt,we,fe,Zt);if(Jt&&!Pt.current){Pt.current=!0,F(!0),(Ht=gt.current)==null||Ht.call(gt,!0),V(null),tt([]),z(0);let yt=Nt.select("g[transform]");if(yt.empty()&&(yt=Nt.select("g")),yt.empty()){Nt.selectAll("*").remove(),Gl(Nt,ct.current),Hf(Nt,n==="parliament"?"parliament":"area",sn,Re,mt,jt,we,fe,Zt,o,l,u,c,f,h,p,P,E,ct.current,y,s,tt,V,R,L,U,I,rt,C,$,B),F(!1),N(n==="parliament"?"parliament":"area"),z(n==="parliament"?1:0),at.current=n;return}const Gt=setTimeout(()=>{Pt.current=!1,F(!1),at.current=n},v*3);rL(Nt,n,sn,Re,mt,Rt,jt,we,fe,Zt,o,v,()=>{var ne,We;if(clearTimeout(Gt),Pt.current=!1,F(!1),N(n==="parliament"?"parliament":"area"),n==="parliament"&&z(1),(ne=gt.current)==null||ne.call(gt,!1),(We=At.current)==null||We.call(At),at.current=n,n==="parliament"&&e.current&&Wt.current&&(nt.current=Gf(e.current,Re,t,K,Z,Wt.current,j,k,ct.current)),n!=="parliament"&&e.current){const ge=Kt(e.current),De=ge.select(ct.current?`.main-chart-group-${ct.current}`:".main-chart-group");if(L){const hr=ct.current?`.timeline-track-${ct.current}`:".timeline-track",rr=ct.current?`.timeline-brush-${ct.current}`:".timeline-brush";De.select(hr).remove(),De.select(rr).remove(),qu({svg:ge,events:R,xScale:jt,chartHeight:Zt,chartWidth:fe,timelineHeight:U,timelineOffset:I,instanceId:ct.current,setHoveredTimelineEvent:rt,enableBrush:P,onTimeRangeChange:E,minAllowedTime:C,maxAllowedTime:$,brushColor:B})}if(P&&E&&!L){const hr=De.select(ct.current?`.chart-content-group-${ct.current}`:".chart-content-group");tL(hr,fe,Zt,jt,E,ct.current,ge,C,$,B)}if(y.length>0&&tt&&V&&s){const rr=y.filter(pe=>pe.timestamp>=(s[0]??0)-1&&pe.timestamp<=(s[1]??1/0)+1).map(pe=>({...pe,x:jt(new Date(pe.timestamp))}));if(tt(rr),rr.length>0){ax(De,rr,Zt,fe,P,V,ct.current);const pe=De.select(ct.current?`.markers-${ct.current}`:".markers");if(!pe.empty()){De.selectAll(".marker-hover-overlay").remove();const ai=De.append("rect").attr("class","marker-hover-overlay").attr("x",0).attr("y",0).attr("width",fe).attr("height",Zt).attr("fill","none").attr("pointer-events","all");let bn=null;ai.on("mousemove",function(oi){const[Ko]=ca(oi,this);let si=null,xn=1/0;if(rr.forEach(Ii=>{const Pa=Math.abs(Ko-Ii.x);Pa<xn&&(xn=Pa,si=Ii)}),!si||xn>50){bn!==null&&(bn=null,pe.selectAll(".marker-line").attr("opacity",0),pe.selectAll(".marker-label").attr("opacity",0),V(null));return}const kr=si;bn!==kr.timestamp&&(bn=kr.timestamp,pe.selectAll(".marker-line").attr("opacity",0),pe.selectAll(".marker-label").attr("opacity",0),pe.selectAll(".marker-line").filter(function(){return Kt(this).attr("data-timestamp")===String(kr.timestamp)}).attr("opacity",.6),pe.selectAll(".marker-label").filter(function(){return Kt(this).attr("data-timestamp")===String(kr.timestamp)}).attr("opacity",1),V(kr))}),ai.on("mouseleave",function(){bn=null,pe.selectAll(".marker-line").attr("opacity",0),pe.selectAll(".marker-label").attr("opacity",0),V(null)})}}}}},u,f,h,p,Ot.current,(ne,We)=>{var ge;if(n==="parliament"&&ne>=.95){const De=(ne-.95)/.05;z(Math.min(De,1))}(ge=oe.current)==null||ge.call(oe,ne,We)},M,ct.current)}else at.current=n,n==="parliament"&&(V(null),tt([])),Hf(Nt,n==="parliament"?"parliament":"area",sn,Re,mt,jt,we,fe,Zt,o,l,u,c,f,h,p,P,E,ct.current,y,s,tt,V,R,L,U,I,rt,C,$,B),N(n==="parliament"?"parliament":"area"),z(n==="parliament"?1:0),n==="parliament"&&e.current&&Wt.current&&(nt.current=Gf(e.current,Re,t,K,Z,Wt.current,j,k,ct.current));return()=>{nt.current&&(nt.current(),nt.current=void 0)}},[n]),O.useEffect(()=>{var Te,Ye;if(!e.current||t.length===0||Pt.current)return;if(dt.current){pt.current=s;return}if(!(s!==pt.current&&((s==null?void 0:s[0])!==((Te=pt.current)==null?void 0:Te[0])||(s==null?void 0:s[1])!==((Ye=pt.current)==null?void 0:Ye[1]))))return;pt.current=s;const Jt=Kt(e.current),xe=t.map(he=>{const we={timestamp:he.timestamp};for(const Re of r)we[Re.dataKey]=he.values[Re.dataKey]||0;return we}),re=r.map(he=>he.dataKey),Mr=qs().keys(re)(xe),je=t.map(he=>he.timestamp),sn=s?s[0]:Math.min(...je),Xe=s?s[1]:Math.max(...je),er=(je.length>1?(je[je.length-1]-je[0])/(je.length-1):0)*.5,Hr=Ha().domain([new Date(sn-er),new Date(Xe+er)]).range([0,i-o.left-o.right]),Ue=Math.max(...Mr[Mr.length-1].map(he=>he[1])),Lt=Oi().domain([0,Ue*1.1]).range([a-o.top-o.bottom,0]);if(!ft.current)return;const _e=ft.current,jt=r.map(he=>({...he,color:ix(he.color,ct.current)}));Jt.selectAll("*").remove(),Gl(Jt,ct.current),Hf(Jt,q==="parliament"?"parliament":"area",Mr,jt,_e,Hr,Lt,i-o.left-o.right,a-o.top-o.bottom,o,l,u,c,f,h,p,P,E,ct.current,y,s,tt,V,R,L,U,I,rt,C,$,B),q==="parliament"&&e.current&&Wt.current&&(nt.current=Gf(e.current,jt,t,K,Z,Wt.current,j,k,ct.current))},[s]),O.useEffect(()=>{if(!e.current||t.length===0||Pt.current)return;if(dt.current){kt.current=y,lt.current=R;return}if(q==="parliament"){kt.current=y,lt.current=R;return}const Nt=y.length!==kt.current.length||y.some((Lt,_e)=>{var jt,Te;return Lt.timestamp!==((jt=kt.current[_e])==null?void 0:jt.timestamp)||Lt.label!==((Te=kt.current[_e])==null?void 0:Te.label)}),Jt=R.length!==lt.current.length||R.some((Lt,_e)=>{var jt,Te;return Lt.timestamp!==((jt=lt.current[_e])==null?void 0:jt.timestamp)||Lt.eventName!==((Te=lt.current[_e])==null?void 0:Te.eventName)});if(!Nt&&!Jt)return;kt.current=y,lt.current=R;const xe=Kt(e.current),re=xe.select(ct.current?`.main-chart-group-${ct.current}`:".main-chart-group");if(re.empty())return;const ye=t.map(Lt=>Lt.timestamp),Mr=s?s[0]:Math.min(...ye),je=s?s[1]:Math.max(...ye),Xe=(ye.length>1?(ye[ye.length-1]-ye[0])/(ye.length-1):0)*.5,Cr=i-o.left-o.right,er=a-o.top-o.bottom,Hr=Ha().domain([new Date(Mr-Xe),new Date(je+Xe)]).range([0,Cr]);if(Jt&&L){const Lt=ct.current?`.timeline-track-${ct.current}`:".timeline-track",_e=ct.current?`.timeline-brush-${ct.current}`:".timeline-brush";re.select(Lt).remove(),re.select(_e).remove(),qu({svg:xe,events:R,xScale:Hr,chartHeight:er,chartWidth:Cr,timelineHeight:U,timelineOffset:I,instanceId:ct.current,setHoveredTimelineEvent:rt,enableBrush:P,onTimeRangeChange:E,minAllowedTime:C,maxAllowedTime:$,brushColor:B})}let Ue=[];if(Nt&&y.length>0&&s){const Lt=ct.current?`.markers-${ct.current}`:".markers";re.select(Lt).remove();const _e=1;Ue=y.filter(jt=>jt.timestamp>=(s[0]??0)-_e&&jt.timestamp<=(s[1]??1/0)+_e).map(jt=>({...jt,x:Hr(new Date(jt.timestamp))})),tt(Ue),Ue.length>0&&ax(re,Ue,er,Cr,P,V,ct.current)}if(Ue.length>0){const Lt=re.select(ct.current?`.markers-${ct.current}`:".markers");if(!Lt.empty()){re.selectAll(".marker-hover-overlay").remove();const _e=re.append("rect").attr("class","marker-hover-overlay").attr("x",0).attr("y",0).attr("width",Cr).attr("height",er).attr("fill","none").attr("pointer-events","all");let jt=null;_e.on("mousemove",function(Te){const[Ye]=ca(Te,this);let he=null,we=1/0;if(Ue.forEach(et=>{const mt=Math.abs(Ye-et.x);mt<we&&(we=mt,he=et)}),!he||we>50){jt!==null&&(jt=null,Lt.selectAll(".marker-line").attr("opacity",0),Lt.selectAll(".marker-label").attr("opacity",0),V(null));return}const Gr=he;jt!==Gr.timestamp&&(jt=Gr.timestamp,Lt.selectAll(".marker-line").attr("opacity",0),Lt.selectAll(".marker-label").attr("opacity",0),Lt.selectAll(".marker-line").filter(function(){return Kt(this).attr("data-timestamp")===String(Gr.timestamp)}).attr("opacity",.6),Lt.selectAll(".marker-label").filter(function(){return Kt(this).attr("data-timestamp")===String(Gr.timestamp)}).attr("opacity",1),V(Gr))}),_e.on("mouseleave",function(){jt=null,Lt.selectAll(".marker-line").attr("opacity",0),Lt.selectAll(".marker-label").attr("opacity",0),V(null)})}}},[y,R,G]),{isMorphing:G,currentMode:q,hoveredCategory:K,scaleIndicatorOpacity:X,visibleMarkers:W,hoveredMarker:Y,setHoveredMarker:V,hoveredTimelineEvent:D,setHoveredTimelineEvent:rt}};function tL(e,t,r,n,i,a,o,s,l,u){const c=s,f=l,h=Pl().extent([[0,0],[t,r]]).on("start",y=>{if(!y.selection&&c!==void 0&&f!==void 0){const m=y.sourceEvent;if(m){const d=m.offsetX,b=+n.invert(d);if(b<c||b>f){o.select(".brush").call(h.move,null);return}}}}).on("brush",y=>{if(!y.selection)return;const[m,d]=y.selection;let b=+n.invert(m),v=+n.invert(d);c!==void 0&&(b=Math.max(b,c),v=Math.max(v,c)),f!==void 0&&(b=Math.min(b,f),v=Math.min(v,f));const x=n(new Date(b)),_=n(new Date(v));(x!==m||_!==d)&&o.select(".brush").call(h.move,[x,_])}).on("end",y=>{if(!y.selection)return;const[m,d]=y.selection,b=[+n.invert(m),+n.invert(d)];c!==void 0&&(b[0]=Math.max(b[0],c)),f!==void 0&&(b[1]=Math.min(b[1],f)),i(b),o.select(".brush").call(h.move,null)}),p=e.append("g").attr("class","brush").call(h);p.selectAll(".selection").attr("fill",u).attr("fill-opacity",.2).attr("stroke",u).attr("stroke-width",1),p.selectAll(".handle").attr("fill",u).attr("fill-opacity",.8),p.on("dblclick",()=>{const y=n.domain(),m=[+y[0],+y[1]];s!==void 0&&(m[0]=Math.max(m[0],s)),l!==void 0&&(m[1]=Math.min(m[1],l)),i(m)})}function ax(e,t,r,n,i,a,o){const s=o?`markers markers-${o}`:"markers",l=e.append("g").attr("class",s);t.forEach(u=>{l.append("line").attr("class","marker-line").attr("data-timestamp",u.timestamp).attr("x1",u.x).attr("x2",u.x).attr("y1",0).attr("y2",r).attr("stroke",u.color??"#2F42FF").attr("stroke-width",2).attr("opacity",0),u.label&&l.append("text").attr("class","marker-label").attr("data-timestamp",u.timestamp).attr("x",u.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",u.color??"#2F42FF").attr("opacity",0)})}function eL(e,t,r,n,i,a,o){let s=null,l;a?l=e.select(".brush .overlay"):l=e.append("rect").attr("class","marker-hover-overlay").attr("width",n).attr("height",i).attr("fill","none").attr("pointer-events","all");const u=c=>{let f=null,h=1/0;if(r.forEach(m=>{const d=Math.abs(c-m.x);d<h&&(h=d,f=m)}),!f||h>50)return s!==null&&(s=null,t.selectAll(".marker-line").attr("opacity",0),t.selectAll(".marker-label").attr("opacity",0),o(null)),!1;const y=f;return s===y.timestamp||(s=y.timestamp,t.selectAll(".marker-line").attr("opacity",0),t.selectAll(".marker-label").attr("opacity",0),t.selectAll(".marker-line").filter(function(){return Kt(this).attr("data-timestamp")===String(y.timestamp)}).attr("opacity",.6),t.selectAll(".marker-label").filter(function(){return Kt(this).attr("data-timestamp")===String(y.timestamp)}).attr("opacity",1),o(y)),!0};l.on("mousemove",function(c){const[f]=ca(c,this);u(f)}),l.on("mouseleave",function(){s=null,t.selectAll(".marker-line").attr("opacity",0),t.selectAll(".marker-label").attr("opacity",0),o(null)})}function Hf(e,t,r,n,i,a,o,s,l,u,c,f,h,p,y,m,d=!1,b,v,x=[],_=[0,0],g,w,S=[],A=!1,T=40,M=15,P,E,C,$="#69b3a2"){const j=E,k=C;let R=null;const L=v?`main-chart-group main-chart-group-${v}`:"main-chart-group",U=e.append("g").attr("class",L).attr("transform",`translate(${u.left},${u.top})`),I=v?`chart-clip-${v}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`;e.select("defs").append("clipPath").attr("id",I).append("rect").attr("x",0).attr("y",0).attr("width",s).attr("height",l);const B=v?`chart-content-group chart-content-group-${v}`:"chart-content-group",q=U.append("g").attr("class",B).attr("clip-path",`url(#${I})`);if(c&&t!=="parliament"&&(q.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(la(a).ticks(6).tickSize(l).tickFormat(()=>"")),q.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(ua(o).ticks(5).tickSize(-s).tickFormat(()=>""))),t==="area"&&(By(q,r,n,{xScale:a,yScale:o,addClasses:!0,instanceId:v}),x.length>0)){const G=x.filter(F=>F.timestamp>=_[0]-1&&F.timestamp<=_[1]+1).map(F=>({...F,x:a(new Date(F.timestamp))}));R={markersGroup:null,visibleMarkers:G},g&&g(G)}if(t==="parliament"){const N=s/2,G=i.radius+10,F=l-i.radius*.3,K=Math.max(G,F);uE(q,i,n,{centerX:N,centerY:K,addClasses:!0,instanceId:v,parliamentRadius:i.radius})}if(f&&t!=="parliament"){const G=la(a).ticks(6).tickPadding(12);y&&G.tickFormat(Y=>y(+Y));const K=U.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${l})`).call(G).selectAll("text").attr("font-size",p).attr("font-weight",500);h&&K.attr("fill",h);const Z=ua(o).ticks(5);Z.tickFormat(Y=>+Y==0?"":m?m(+Y):String(Y));const z=U.append("g").attr("class","axis axis-y").call(Z).selectAll("text").attr("font-size",p).attr("font-weight",500);h&&z.attr("fill",h)}if(d&&b&&t==="area"){const N=j,G=k,F=Pl().extent([[0,0],[s,l]]).on("start",Z=>{if(!Z.selection&&N!==void 0&&G!==void 0){const X=Z.sourceEvent;if(X){const z=X.offsetX-((u==null?void 0:u.left)||0),Y=+a.invert(z);if(Y<N||Y>G){e.select(".brush").call(F.move,null);return}}}}).on("brush",Z=>{if(!Z.selection)return;const[X,z]=Z.selection;let Y=+a.invert(X),V=+a.invert(z);N!==void 0&&(Y=Math.max(Y,N),V=Math.max(V,N)),G!==void 0&&(Y=Math.min(Y,G),V=Math.min(V,G));const D=a(new Date(Y)),rt=a(new Date(V));(D!==X||rt!==z)&&e.select(".brush").call(F.move,[D,rt])}).on("end",Z=>{if(!Z.selection)return;const[X,z]=Z.selection,Y=[+a.invert(X),+a.invert(z)];N!==void 0&&(Y[0]=Math.max(Y[0],N)),G!==void 0&&(Y[1]=Math.min(Y[1],G)),b(Y),e.select(".brush").call(F.move,null)}),K=q.append("g").attr("class","brush").call(F);K.selectAll(".selection").attr("fill",$).attr("fill-opacity",.2).attr("stroke",$).attr("stroke-width",1),K.selectAll(".handle").attr("fill",$).attr("fill-opacity",.8),K.on("dblclick",()=>{const Z=a.domain(),X=[+Z[0],+Z[1]];b(X)})}if(t==="area"&&R&&R.visibleMarkers.length>0){const N=U.append("g").attr("class","markers").attr("clip-path",`url(#${I})`);R.visibleMarkers.forEach(G=>{N.append("line").attr("class","marker-line").attr("data-timestamp",G.timestamp).attr("x1",G.x).attr("x2",G.x).attr("y1",0).attr("y2",l).attr("stroke",G.color??"#2F42FF").attr("stroke-width",2).attr("opacity",0),G.label&&N.append("text").attr("class","marker-label").attr("data-timestamp",G.timestamp).attr("x",G.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",G.color??"#2F42FF").attr("opacity",0)}),R.markersGroup=N}t==="area"&&A&&P&&qu({svg:e,events:S,xScale:a,chartHeight:l,chartWidth:s,timelineHeight:T,timelineOffset:M,instanceId:v,setHoveredTimelineEvent:P,enableBrush:d,onTimeRangeChange:b,minAllowedTime:j,maxAllowedTime:k,brushColor:$}),R&&R.visibleMarkers.length>0&&w&&t==="area"&&eL(q,R.markersGroup,R.visibleMarkers,s,l,d,w)}function rL(e,t,r,n,i,a,o,s,l,u,c,f,h,p=!0,y=14,m,d,b,v,x,_){const g=e.select(_?`.main-chart-group-${_}`:".main-chart-group");g.selectAll(".markers").remove(),g.selectAll(".marker-hover-overlay").remove(),g.selectAll(".brush").remove(),t==="stacked-area"||t==="area"?nL(g,r,n,i,a,o,s,l,u,f,h,p,y,m,d,b,v,x,_):iL(g,r,n,i,a,o,s,l,u,f,h,p,y,m,d,b,v,x,_)}function As(e,t,r,n,i,a,o,s){const l=e[a];if(!l)return"";const u=l.find(w=>w.data.timestamp===o);if(!u)return"";const c=u.data,f=t[a];if(!f)return"";const h=f.dataKey,p=c[h];if(!p||p<=0)return"";const y=r.get(o);if(!y)return"";const m=y.x,d=y.width,b=u[0],v=u[1],x=s?i:n(b),_=s?i:n(v),g=[];return g.push(`M ${m} ${x}`),g.push(`L ${m} ${_}`),g.push(`L ${m+d} ${_}`),g.push(`L ${m+d} ${x}`),g.push("Z"),g.join(" ")}function nL(e,t,r,n,i,a,o,s,l,u,c,f=!0,h=14,p,y,m,d,b,v){var Ll;const x=v?`.seat-${v}`:".seat",_=e.selectAll(x),g=v?`.chart-content-group-${v}`:".chart-content-group";let w=e.select(g);if(w.empty()){const it=e.attr("clip-path"),ut=it?((Ll=it.match(/url\(#(.+)\)/))==null?void 0:Ll[1])||`chart-clip-${Math.random().toString(36).substr(2,9)}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`,xt=v?`chart-content-group chart-content-group-${v}`:"chart-content-group";w=e.append("g").attr("class",xt).attr("clip-path",`url(#${ut})`)}if(_.size()===0){By(e,t,r,{xScale:a,yScale:o,addClasses:!0,instanceId:v}),c();return}const S=JN(u),A=v?Vi.get(v):void 0;A&&(A.destroy(),v&&Vi.delete(v));const T=it=>it<.2?"seatsToRings":it<.35?"ringsToBar":it<.464?"axesReveal":it<.6?"barSlide":it<.82?"barsGrow":"barsToArea",M=new lE({seatsToRings:S.seatsToLines,ringsToBar:S.seatsToBar,axesReveal:S.barSlideToTimeline*.3,barSlide:S.barSlideToTimeline*.7,barsGrow:S.axesAndBarsGrow,barsToArea:S.barsToArea},{onStageComplete:it=>{},onProgress:it=>{if(d){const ut=T(it);d(it,ut)}},onComplete:()=>{c()}});v&&Vi.set(v,M),m&&m(M.getControls().getTimeline());const P=t[0].map(it=>it.data),E=YN(P,r),C=s/2,$=n.radius+10,j=l-n.radius*.3,k=Math.max($,j),R=P.map(it=>it.timestamp),L=b??Math.max(...R),U=new Map,I=[];R.forEach((it,ut)=>{const xt=a(new Date(it)),Et=R[ut+1];if(Et){const le=a(new Date(Et))-xt;I.push(le)}});const B=I.length>0?I.reduce((it,ut)=>it+ut,0)/I.length:30;R.forEach((it,ut)=>{const xt=a(new Date(it)),Et=R[ut+1],le=ut===R.length-1?B:a(new Date(Et))-xt;U.set(it,{x:xt,width:le})});const q=E.filter(it=>it.timestamp===L),N=U.get(L),G=666,F=v?`parliament-bar-path parliament-bar-path-${v}`:"parliament-bar-path",K=w.append("g").attr("class",F);q.sort((it,ut)=>ut.y0-it.y0),new Map().set(L,{x:G-N.width/2,width:N.width});const X=[],z=(n.radius-n.innerRadius)*.6,V=l*.8,D=k,rt=q.reduce((it,ut)=>it+(ut.y1-ut.y0),0);let W=0;r.forEach(it=>{const ut=q.find(Ze=>Ze.dataKey===it.dataKey);if(!ut)return;const Se=(ut.y1-ut.y0)/rt*V,le=D-W,nr=D-W-Se,Ve=G-z/2,gr=`M ${Ve} ${le} L ${Ve} ${nr} L ${Ve+z} ${nr} L ${Ve+z} ${le} Z`;W+=Se;const $r=K.append("path").attr("class",`parliament-bar-segment category-${sr(ut.dataKey)}`).attr("d",gr).attr("fill",ut.color).style("opacity",0).node();$r&&X.push($r)}),v&&(window.orchestratorMap=Vi);const tt=M.getControls().getTimeline(),ft=S.seatsToLines/1e3,at=S.seatsToBar/1e3;tt.call(()=>{d==null||d(tt.progress(),"seatsToRings")},[],"seatsToRings");const dt=_.nodes(),Pt=C,ct=k,nt=Math.max(...n.seats.map(it=>it.ring)),pt=n.seats.filter(it=>it.ring===nt),kt=e.append("g").attr("class",`seat-lines-${v||"default"}`),lt=r.map(it=>{const ut=_.filter(`.seat-${sr(it.dataKey)}`).size();return ut>0?{name:it.dataKey,seatCount:ut,color:it.color}:null}).filter(it=>it!==null).reverse(),At=lt.reduce((it,ut)=>it+ut.seatCount,0),gt=pt.length,Ot=n.radius-n.innerRadius,oe=Ot*.6,Wt=oe/2,fe=Ot*.6,Zt=[];let Nt=0;lt.forEach(it=>{const ut=Math.max(1,Math.round(it.seatCount/At*gt));for(let xt=0;xt<ut;xt++){const Et=(Nt+xt)/gt,Se=n.arcAngle*Math.PI/180,nr=-Se/2-Math.PI/2+Et*Se,Ve=(n.innerRadius+n.radius)/2,gr=Pt+Math.cos(nr)*Ve,$r=ct+Math.sin(nr)*Ve,Ze=Math.cos(nr),li=Math.sin(nr),Ni=gr-Wt*Ze,Ea=$r-Wt*li,Ie=gr+Wt*Ze,ui=$r+Wt*li,ci=kt.append("line").attr("class","seat-line").attr("x1",Ni).attr("y1",Ea).attr("x2",Ie).attr("y2",ui).attr("stroke",it.color).attr("stroke-width",n.seatSize*2).attr("stroke-linecap","butt").style("opacity",0).attr("data-angle",nr*180/Math.PI).attr("data-center-x",gr).attr("data-center-y",$r).attr("data-initial-length",oe).node();Zt.push({element:ci,angle:nr})}Nt+=ut});const Jt=()=>{kt.remove()},xe=ft*.5,re=0,ye=[];if(ye.push(...dt),ye.sort((it,ut)=>{const xt=parseInt(it.getAttribute("data-layout-index")||"-1",10),Et=parseInt(ut.getAttribute("data-layout-index")||"-1",10);return xt-Et}),ye.length>0&&Zt.length>0){const it=Zt.map(ut=>ut.element);tt.to(ye,{attr:{r:1.5},duration:xe*.3,ease:"power2.in"},`seatsToRings+=${re}`),it.forEach(ut=>{const xt=ut.getAttribute("x1")||"0",Et=ut.getAttribute("y1")||"0",Se=ut.getAttribute("x2")||"0",le=ut.getAttribute("y2")||"0";ut.setAttribute("data-final-x1",xt),ut.setAttribute("data-final-y1",Et),ut.setAttribute("data-final-x2",Se),ut.setAttribute("data-final-y2",le),ut.setAttribute("x1",xt),ut.setAttribute("y1",Et),ut.setAttribute("x2",xt),ut.setAttribute("y2",Et)}),tt.to(it,{attr:{x2:(ut,xt)=>parseFloat(xt.getAttribute("data-final-x2")||"0"),y2:(ut,xt)=>parseFloat(xt.getAttribute("data-final-y2")||"0")},opacity:.9,duration:xe*.6,ease:"power2.out"},`seatsToRings+=${re+xe*.2}`),tt.to(ye,{opacity:0,duration:xe*.3,ease:"power2.out"},`seatsToRings+=${re+xe*.3}`)}const Mr=ft*.05,je=ft*.7,sn=re+xe+Mr;if(Zt.length>0){const it=G,ut=k,Et=l*.8/Zt.length,Se=ut,le=[...Zt].sort((gr,$r)=>$r.angle-gr.angle),Ve=.6/le.length;le.forEach((gr,$r)=>{const Ze=it,Ni=Se-$r*Et,Ea=Ve*$r*je,Ie=gr.element,ui=parseFloat(Ie.getAttribute("data-final-x1")||"0"),ci=parseFloat(Ie.getAttribute("data-final-y1")||"0"),Xo=parseFloat(Ie.getAttribute("data-final-x2")||"0"),Ma=parseFloat(Ie.getAttribute("data-final-y2")||"0"),Bl=(ui+Xo)/2,_n=(ci+Ma)/2,fi=Math.atan2(Ma-ci,Xo-ui),Li=Math.sqrt(Math.pow(Xo-ui,2)+Math.pow(Ma-ci,2));tt.to({progress:0},{progress:1,duration:je*.5,ease:"power2.inOut",delay:Ea,onUpdate:function(){const Pe=this.progress(),gf=Bl+(Ze-Bl)*Pe,vf=_n+(Ni-_n)*Pe,wn=40*4*Pe*(1-Pe),Bi=gf,qi=vf-wn,xf=0-fi,In=fi+xf*Pe*Pe,ql=(Li+(fe-Li)*Pe)/2,ok=Bi-ql*Math.cos(In),sk=qi-ql*Math.sin(In),lk=Bi+ql*Math.cos(In),uk=qi+ql*Math.sin(In);Ie.setAttribute("x1",ok.toString()),Ie.setAttribute("y1",sk.toString()),Ie.setAttribute("x2",lk.toString()),Ie.setAttribute("y2",uk.toString())},onComplete:function(){const Pe=fe/2;Ie.setAttribute("x1",(Ze-Pe).toString()),Ie.setAttribute("y1",Ni.toString()),Ie.setAttribute("x2",(Ze+Pe).toString()),Ie.setAttribute("y2",Ni.toString())}},`seatsToRings+=${sn}`),tt.to(gr.element,{opacity:.95,duration:je*.3,ease:"power2.out",delay:Ea},`seatsToRings+=${sn}`)})}const Xe=kt,Cr=[];q.forEach((it,ut)=>{const xt=_.filter(`.seat-${sr(it.category)}`),Et=xt.size();if(Et===0)return;const Se=o(it.y1),le=o(it.y0)-o(it.y1),nr=xt.nodes().sort((_n,fi)=>{const Li=parseInt(_n.getAttribute("data-layout-index")||"-1",10),Pe=parseInt(fi.getAttribute("data-layout-index")||"-1",10);return Li-Pe}),Ve=Math.max(N.width,100),gr=le,$r=Ve/Math.max(gr,1),Ze=Math.max(2,Math.ceil(Math.sqrt(Et*$r))),li=Math.ceil(Et/Ze),Ni=Ve*.8,Ea=gr*.8,Ie=Ze>1?Ni/(Ze-1):0,ui=li>1?Ea/(li-1):0,ci=Ze>1?(Ze-1)*Ie:0,Xo=li>1?(li-1)*ui:0,Ma=G-Ve/2+(Ve-ci)/2,Bl=Se+(gr-Xo)/2;nr.forEach((_n,fi)=>{const Li=parseInt(_n.getAttribute("data-layout-index")||"-1",10),Pe=Li>=0?n.seats[Li]:void 0,gf=Pe?C+Pe.x:parseFloat(_n.getAttribute("cx")||"0"),vf=Pe?k+Pe.y:parseFloat(_n.getAttribute("cy")||"0"),B0=(Pe==null?void 0:Pe.radius)||parseFloat(_n.getAttribute("r")||"4"),wn=Et%Ze;let Bi,qi;if(wn>0&&fi<wn)qi=0,Bi=fi;else{const In=fi-(wn>0?wn:0);Bi=In%Ze,qi=Math.floor(In/Ze)+(wn>0?1:0)}let bf=Ma+Bi*Ie;if(wn>0&&qi===0){const In=wn>1?(wn-1)*Ie:0,q0=(ci-In)/2;bf=Ma+q0+Bi*Ie}const xf=Bl+qi*ui;Cr.push({element:_n,startX:gf,startY:vf,startRadius:B0,category:it.dataKey,segmentIndex:ut,endY:xf,endX:bf})})});const er=Cr.map(it=>{const ut=it.startX-C,xt=it.startY-k,Et=Math.atan2(xt,ut);return{...it,angle:Et}});er.sort((it,ut)=>ut.angle-it.angle);const Hr=at*.8,Ue=.6,Lt=er.length,jt=Hr/Math.max(Lt,1)*(Lt-1)+Ue,Te=at*.3,Ye=jt;tt.to(X,{opacity:1,duration:Te,ease:"power2.inOut"},`seatsToBar+=${Ye}`),Xe&&(tt.to(Xe.selectAll(".seat-line").nodes(),{opacity:0,duration:Te,ease:"power2.inOut"},`seatsToBar+=${Ye}`),tt.call(()=>{Jt()},[],`seatsToBar+=${Ye+Te}`));const he=S.barSlideToTimeline/1e3;let we=null,Re=null;if(f){const ut=la(a).ticks(6).tickPadding(12);p&&ut.tickFormat(Et=>p(Et.getTime())),we=e.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${l})`).attr("opacity",0),we.call(ut).selectAll("text").attr("font-size",h).attr("font-weight",500);const xt=ua(o).ticks(5);xt.tickFormat(Et=>+Et==0?"":y?y(Et):String(Et)),Re=e.append("g").attr("class","axis axis-y").attr("opacity",0),Re.call(xt).selectAll("text").attr("font-size",h).attr("font-weight",500)}const Gr=S.crossFadePause/1e3,et=Ye+Te+Gr;X.forEach(it=>{const ut=Array.from(it.classList).find(le=>le.startsWith("category-"));if(!ut||!q.find(le=>sr(le.dataKey)===ut.replace("category-","")))return;const Et=r.findIndex(le=>sr(le.dataKey)===ut.replace("category-",""));if(Et===-1)return;const Se=As(t,r,U,o,l,Et,L,!1);Se&&tt.to(it,{attr:{d:Se},duration:he,ease:"power2.out"},`seatsToBar+=${et}`)});const mt=mi().x(it=>a(it.data.timestamp)).y0(it=>o(it[0])).y1(it=>o(it[1])).curve(Qn),wt=new Map;t.forEach((it,ut)=>{const xt=r[ut];if(xt){const Et=mt(it)||"";wt.set(xt.dataKey,Et)}});const Rt=et+he;f&&we&&Re&&tt.to([we.node(),Re.node()],{opacity:1,duration:.6,ease:"power2.inOut"},`seatsToBar+=${et}`);const Ht=w.select(".grid-vertical"),yt=w.select(".grid-horizontal");if(!Ht.empty()||!yt.empty()){const ut=[];Ht.empty()||ut.push(Ht.node()),yt.empty()||ut.push(yt.node()),tt.to(ut,{opacity:.1,duration:.6,ease:"power2.inOut"},`seatsToBar+=${et}`)}const Gt=S.axesAndBarsGrow/1e3,ne=S.barsToArea/1e3,We=v?`histogram-paths histogram-paths-${v}`:"histogram-paths",ge=w.append("g").attr("class",We);R.forEach(it=>{if(it===L)return;const ut=U.get(it);ut&&r.forEach((xt,Et)=>{const Se=As(t,r,U,o,l,Et,it,!0),le=As(t,r,U,o,l,Et,it,!1);if(!Se||!le)return;const nr=v?`histogram-path histogram-path-${v} category-${sr(xt.dataKey)}`:`histogram-path category-${sr(xt.dataKey)}`;ge.append("path").attr("class",nr).attr("d",Se).attr("fill",xt.color).attr("stroke",xt.color).attr("stroke-width",.5).attr("shape-rendering","crispEdges").attr("opacity",0).attr("data-category",xt.dataKey).attr("data-timestamp",it).attr("data-x-position",ut.x).attr("data-full-height-path",le)})});const De=v?`.histogram-path-${v}`:".histogram-path",hr=ge.selectAll(De);tt.to(hr.nodes(),{opacity:1,duration:.3,ease:"power2.inOut"},`seatsToBar+=${Rt}`);const rr=N.x+N.width/2;hr.each(function(){var Ve;const it=this.getAttribute("data-full-height-path");if(!it)return;const ut=parseFloat(this.getAttribute("data-x-position")||"0"),xt=parseFloat(this.getAttribute("data-timestamp")||"0"),Et=((Ve=U.get(xt))==null?void 0:Ve.width)||0,Se=ut+Et/2,nr=Math.abs(Se-rr)*8e-4;tt.to(this,{attr:{d:it},duration:Gt,ease:"power2.out"},`seatsToBar+=${Rt+nr}`)});const pe=Rt+Gt,ai=R[R.length-1],oi=a(new Date(ai))+B,si=a.invert(oi).getTime(),xn=t.map(it=>{const ut=it[it.length-1],xt={...ut,data:{...ut.data,timestamp:si}};return[...it,xt]});By(e,xn,r,{xScale:a,yScale:o,addClasses:!0,instanceId:v});const yf=v?`.area-${v}`:".area",kr=e.selectAll(yf);kr.attr("opacity",0),tt.to(hr.nodes(),{opacity:0,duration:ne,ease:"power2.inOut"},`seatsToBar+=${pe}`);const Ii=K.selectAll("path").nodes();Ii.length>0&&tt.to(Ii,{opacity:0,duration:ne,ease:"power2.inOut"},`seatsToBar+=${pe}`),tt.to(kr.nodes(),{opacity:1,duration:ne,ease:"power2.inOut"},`seatsToBar+=${pe}`);const Pa=c;M.getControls().getTimeline().eventCallback("onComplete",()=>{const it=v?`.morph-bar-${v}`:".morph-bar";e.selectAll(it).remove();const ut=v?`.histogram-paths-${v}`:".histogram-paths";e.selectAll(ut).remove(),f&&(we&&we.attr("opacity",1),Re&&Re.attr("opacity",1)),Pa()}),M.play()}function iL(e,t,r,n,i,a,o,s,l,u,c,f=!0,h=14,p,y,m,d,b,v){var Gr;const x=v?`.chart-content-group-${v}`:".chart-content-group";let _=e.select(x);if(_.empty()){const et=e.attr("clip-path"),mt=et?((Gr=et.match(/url\(#(.+)\)/))==null?void 0:Gr[1])||`chart-clip-${Math.random().toString(36).substr(2,9)}`:`chart-clip-${Math.random().toString(36).substr(2,9)}`,wt=v?`chart-content-group chart-content-group-${v}`:"chart-content-group";_=e.append("g").attr("class",wt).attr("clip-path",`url(#${mt})`)}const g=v?`.area-${v}`:".area",w=e.selectAll(g);if(w.size()===0){aL(e,r,n,s,l,v),c();return}const S={areaToBar:u*.18,barsShrink:u*.22,barSlide:u*.22,axesHide:u*.03,barToRings:u*.07,ringsExpand:u*.18,ringsHold:u*.05,ringsToSeats:u*.07},A=v?Vi.get(v):void 0;A&&(A.destroy(),v&&Vi.delete(v));const T=et=>et<.18?"areaToBar":et<.4?"barsShrink":et<.62?"barSlide":et<.65?"axesHide":et<.72?"barToRings":et<.9?"ringsExpand":et<.95?"ringsHold":"ringsToSeats",M=new lE({seatsToRings:S.ringsToSeats,ringsHold:S.ringsHold,ringsToBar:S.barToRings,axesReveal:S.axesHide,barSlide:S.barSlide,barsGrow:S.barsShrink,barsToArea:S.areaToBar},{onStageComplete:et=>{},onProgress:et=>{if(d){const mt=T(et);d(et,mt)}},onComplete:()=>{c()}});v&&Vi.set(v,M),m&&m(M.getControls().getTimeline());const E=t[0].map(et=>et.data).map(et=>et.timestamp),C=b??Math.max(...E),$=new Map,j=[];E.forEach((et,mt)=>{const wt=a(new Date(et)),Rt=E[mt+1];if(Rt){const yt=a(new Date(Rt))-wt;j.push(yt)}});const k=j.length>0?j.reduce((et,mt)=>et+mt,0)/j.length:30;E.forEach((et,mt)=>{const wt=a(new Date(et)),Rt=E[mt+1],yt=mt===E.length-1?k:a(new Date(Rt))-wt;$.set(et,{x:wt,width:yt})});const R=M.getControls().getTimeline(),L=S.areaToBar/1e3,U=v?`histogram-paths histogram-paths-${v}`:"histogram-paths",I=_.append("g").attr("class",U);E.forEach(et=>{const mt=$.get(et);mt&&r.forEach((wt,Rt)=>{const Ht=As(t,r,$,o,l,Rt,et,!1);if(!Ht)return;const yt=v?`histogram-path histogram-path-${v} category-${sr(wt.dataKey)}`:`histogram-path category-${sr(wt.dataKey)}`;I.append("path").attr("class",yt).attr("d",Ht).attr("fill",wt.color).attr("stroke",wt.color).attr("stroke-width",.5).attr("shape-rendering","crispEdges").attr("opacity",0).attr("data-category",wt.dataKey).attr("data-timestamp",et).attr("data-x-position",mt.x)})});const B=v?`.histogram-path-${v}`:".histogram-path",q=I.selectAll(B);R.to(w.nodes(),{opacity:0,duration:L,ease:"power2.inOut"},"areaToBar"),R.to(q.nodes(),{opacity:1,duration:L,ease:"power2.inOut"},"areaToBar");const N=S.barsShrink/1e3,G=L;q.each(function(){const et=parseFloat(this.getAttribute("data-timestamp")||"0");if(et===C)return;const mt=r.find(Ht=>this.classList.contains(`category-${sr(Ht.dataKey)}`));if(!mt)return;const wt=r.indexOf(mt),Rt=As(t,r,$,o,l,wt,et,!0);Rt&&R.to(this,{attr:{d:Rt},duration:N,ease:"power2.in"},G)});const F=S.axesHide/1e3,K=G+N;if(f){const et=e.select(".axis-x"),mt=e.select(".axis-y");et.empty()||R.to(et.node(),{opacity:0,duration:F,ease:"power2.inOut"},K),mt.empty()||R.to(mt.node(),{opacity:0,duration:F,ease:"power2.inOut"},K)}const Z=_.select(".grid-vertical"),X=_.select(".grid-horizontal");Z.empty()||R.to(Z.node(),{opacity:0,duration:F,ease:"power2.inOut"},K),X.empty()||R.to(X.node(),{opacity:0,duration:F,ease:"power2.inOut"},K);const z=[];t.forEach((et,mt)=>{const wt=et.find(Ht=>Ht.data.timestamp===C);if(!wt)return;const Rt=r[mt];Rt&&z.push({category:Rt.label,dataKey:Rt.dataKey,color:Rt.color,y0:wt[0],y1:wt[1]})}),z.sort((et,mt)=>mt.y0-et.y0);const Y=z.reduce((et,mt)=>et+(mt.y1-mt.y0),0),V=n.radius-n.innerRadius,D=s/2,rt=n.radius+10,W=l-n.radius*.3,tt=Math.max(rt,W),ft=V*.6,dt=l*.8,Pt=tt,ct=S.barSlide/1e3,nt=K+F,pt=666,kt=q.nodes().filter(et=>parseFloat(et.getAttribute("data-timestamp")||"0")!==C);R.to(kt,{opacity:0,duration:ct*.2,ease:"power2.out"},nt);const lt=q.nodes().filter(et=>parseFloat(et.getAttribute("data-timestamp")||"0")===C);lt.forEach(et=>{const mt=et.getAttribute("data-category");if(!mt)return;const wt=z.find(hr=>hr.dataKey===mt);if(!wt)return;const yt=(wt.y1-wt.y0)/Y*dt;let Gt=0;for(const hr of r){const rr=z.find(bn=>bn.dataKey===hr.dataKey);if(!rr)continue;if(rr.dataKey===wt.dataKey)break;const ai=(rr.y1-rr.y0)/Y;Gt+=ai*dt}const ne=Pt-Gt,We=Pt-Gt-yt,ge=pt-ft/2,De=`M ${ge} ${ne} L ${ge} ${We} L ${ge+ft} ${We} L ${ge+ft} ${ne} Z`;R.to(et,{attr:{d:De},duration:ct,ease:"power2.inOut"},nt)});const At=S.barToRings/1e3,gt=nt+ct,Ot=S.ringsExpand/1e3,oe=gt+At,Wt=S.ringsHold/1e3,fe=oe+Ot,Zt=S.ringsToSeats/1e3,Nt=fe+Wt,Jt=Math.max(...n.seats.map(et=>et.ring)),xe=n.seats.filter(et=>et.ring===Jt),re=_.append("g").attr("class",`slinky-${v||"h2p-default"}`),ye=()=>{re.remove()};xe.forEach((et,mt)=>{const wt=r.find(Rt=>Rt.label===et.category);wt&&re.append("line").attr("class","slinky-ring").attr("x1",0).attr("y1",0).attr("x2",0).attr("y2",0).attr("stroke",wt.color).attr("stroke-width",n.seatSize*2).attr("stroke-linecap","butt").attr("data-category",et.category).attr("data-category-index",et.categoryIndex).attr("data-ring-index",mt).attr("data-seat-x",D+et.x).attr("data-seat-y",tt+et.y).attr("data-seat-angle",Math.atan2(et.y,et.x)).style("opacity",0)});const Mr=re.selectAll(".slinky-ring").nodes(),je=pt,sn=dt/Mr.length,Xe=[...Mr].sort((et,mt)=>{const wt=parseFloat(et.getAttribute("data-seat-angle")||"0");return parseFloat(mt.getAttribute("data-seat-angle")||"0")-wt}),Cr=Pt;Xe.forEach((et,mt)=>{const wt=Cr-mt*sn,Ht=ft/2,yt=je-Ht,Gt=je+Ht;et.setAttribute("x1",yt.toString()),et.setAttribute("y1",wt.toString()),et.setAttribute("x2",Gt.toString()),et.setAttribute("y2",wt.toString()),et.style.opacity="0"}),R.to(lt,{opacity:0,duration:At*.7,ease:"power2.out"},gt+At*.3),R.to(Xe,{opacity:1,duration:At,ease:"power2.in",stagger:.005},gt);const er=V*.8;Xe.forEach((et,mt)=>{const wt=parseFloat(et.getAttribute("data-seat-x")||"0"),Rt=parseFloat(et.getAttribute("data-seat-y")||"0"),Ht=parseFloat(et.getAttribute("data-seat-angle")||"0"),yt=(Xe.length-1-mt)/Xe.length*(Ot*.4),Gt=parseFloat(et.getAttribute("x1")||"0"),ne=parseFloat(et.getAttribute("y1")||"0"),We=parseFloat(et.getAttribute("x2")||"0"),ge=parseFloat(et.getAttribute("y2")||"0"),De=(Gt+We)/2,hr=(ne+ge)/2,rr=Math.atan2(ge-ne,We-Gt),pe=Math.sqrt(Math.pow(We-Gt,2)+Math.pow(ge-ne,2)),ai=wt-er/2*Math.cos(Ht),bn=Rt-er/2*Math.sin(Ht);R.to({progress:0},{progress:1,duration:Ot*.7,ease:"power2.out",onUpdate:function(){const oi=this.progress(),Ko=De+(ai-De)*oi,si=hr+(bn-hr)*oi,xn=rr+(Ht-rr)*oi,kr=(pe+(er-pe)*oi)/2,Ii=Ko-kr*Math.cos(xn),Pa=si-kr*Math.sin(xn),Ll=Ko+kr*Math.cos(xn),it=si+kr*Math.sin(xn);et.setAttribute("x1",Ii.toString()),et.setAttribute("y1",Pa.toString()),et.setAttribute("x2",Ll.toString()),et.setAttribute("y2",it.toString())}},oe+yt),R.to(et,{opacity:.9,duration:Ot*.3,ease:"power2.in"},oe+yt)}),R.call(()=>{d&&d(R.progress(),"ringsHold")},[],fe);const Hr=v?`parliament parliament-${v}`:"parliament",Ue=_.append("g").attr("class",Hr);n.seats.forEach((et,mt)=>{const wt=r.find(We=>We.label===et.category);if(!wt)return;const Rt=D+et.x,Ht=tt+et.y;let yt,Gt,ne;et.ring===Jt?(yt=Rt,Gt=Ht,ne=2):(yt=Rt,Gt=Ht,ne=et.radius),Ue.append("circle").attr("cx",yt).attr("cy",Gt).attr("r",ne).attr("fill",wt.color).attr("stroke",wt.color).attr("stroke-width",.5).attr("opacity",0).attr("class",()=>v?`seat seat-${v} seat-${sr(et.category)}`:`seat seat-${sr(et.category)}`).attr("data-layout-index",mt).attr("data-ring",et.ring).attr("data-final-x",Rt).attr("data-final-y",Ht).attr("data-final-r",et.radius)});const Lt=v?`.seat-${v}`:".seat",_e=Ue.selectAll(Lt);R.to(Mr,{opacity:0,duration:Zt*.2,ease:"power3.out"},Nt),R.to(_e.nodes(),{opacity:.8,duration:Zt*.3,ease:"power2.in"},Nt+Zt*.25);const jt=_e.nodes(),Te=[],Ye=[];jt.forEach(et=>{parseInt(et.getAttribute("data-ring")||"0")===Jt?Te.push(et):Ye.push(et)});const he=Zt*.2,we=Zt*.7;Te.forEach(et=>{const mt=parseFloat(et.getAttribute("data-final-r")||"4");R.to(et,{attr:{r:mt},opacity:1,duration:we*.6,ease:"power2.out"},Nt+he)}),Ye.length>0&&R.to(Ye,{opacity:1,duration:we*.5,ease:"power2.in"},Nt+he+Zt*.15);const Re=c;M.getControls().getTimeline().eventCallback("onComplete",()=>{const et=v?`.areas-${v}`:".areas",mt=v?`.histogram-paths-${v}`:".histogram-paths";e.selectAll(et).remove(),e.selectAll(mt).remove(),ye(),e.selectAll(".axis-x").remove(),e.selectAll(".axis-y").remove(),_.selectAll(".grid-vertical").remove(),_.selectAll(".grid-horizontal").remove();const wt=v?`.parliament-label-${v}`:".parliament-label";if(e.select(wt).empty()){const Ht=s/2,yt=n.radius+10,Gt=l-n.radius*.3,ne=Math.max(yt,Gt),We=v?`parliament-label parliament-label-${v}`:"parliament-label",ge=e.append("g").attr("class",We).attr("transform",`translate(${Ht},${ne-n.radius*.15})`).style("opacity","0").style("pointer-events","none");ge.append("text").attr("class","label-category").attr("text-anchor","middle").attr("dy","-15").style("font-size","22px").style("fill","#666").style("font-family","system-ui, -apple-system, sans-serif"),ge.append("text").attr("class","label-value").attr("text-anchor","middle").attr("dy","35").style("font-size","48px").style("font-weight","bold").style("font-family","system-ui, -apple-system, sans-serif");const De=ge.append("g").attr("class","scale-indicator").attr("transform","translate(0, 65)").style("opacity","0");De.append("circle").attr("r",4).attr("cx",-30).attr("cy",0).style("fill","#888"),De.append("text").attr("x",-20).attr("y",0).attr("dy","0.35em").attr("text-anchor","start").style("font-size","18px").style("fill","#666").style("font-style","italic").style("font-family","system-ui, -apple-system, sans-serif")}Re()}),M.play()}function aL(e,t,r,n,i,a){const o=n/2,s=r.radius+10,l=i-r.radius*.3,u=Math.max(s,l);uE(e,r,t,{centerX:o,centerY:u,addClasses:!0,instanceId:a,parliamentRadius:r.radius})}function Fu(e,t,r,n,i){const a=i?`.parliament-label-${i}`:".parliament-label",o=Kt(e).select(a);if(!o.empty())if(t){o.style("opacity","1"),o.select(".label-category").text(t.label).style("fill","#666");const s=t.value>1?"repos":"repo";o.select(".label-value").text(`${t.value} ${s}`).style("fill",t.color);const l=o.select(".scale-indicator");r?l.style("opacity","1").select("text").text(`= ~${n} repos`):l.style("opacity","0")}else o.style("opacity","0")}function Gf(e,t,r,n,i,a,o,s,l){const u=e.querySelectorAll(".seat");if(!u||u.length===0)return;const c=r[r.length-1];if(!c)return;const f=[];u.forEach(p=>{const y=p;y.style.cursor="pointer",y.style.transition="fill-opacity 150ms ease, stroke-opacity 150ms ease"}),u.forEach(p=>{const d=(p.getAttribute("class")||"").split(/\s+/).filter(g=>g.startsWith("seat-")),b=d[d.length-1];if(!b)return;const v=b.substring(5),x=t.find(g=>sr(g.label)===v);if(!x)return;const _=()=>{i(x.label);const g=Math.round(c.values[x.dataKey]||0),w=Qv(x.color),S={label:x.label,value:g,color:w};a&&a(S),Fu(e,S,o??!1,s??1,l),Os(e,x.label)};p.addEventListener("mouseenter",_),f.push({element:p,handler:_})});const h=()=>{i(null),a&&a(null),Fu(e,null,!1,1,l),Os(e,null)};return e.addEventListener("mouseleave",h),n&&Os(e,n),()=>{f.forEach(({element:p,handler:y})=>{p.removeEventListener("mouseenter",y)}),e.removeEventListener("mouseleave",h),u.forEach(p=>{const y=p;y.style.cursor="",y.style.transition=""})}}function Os(e,t){const r=e.querySelectorAll(".seat"),n=t?sr(t):null;r.forEach(i=>{const a=i,l=(i.getAttribute("class")||"").split(/\s+/).filter(f=>f.startsWith("seat-")),u=l[l.length-1];if(!u)return;const c=u.substring(5);n?c===n?(a.setAttribute("fill-opacity","1"),a.setAttribute("stroke-opacity","1")):(a.setAttribute("fill-opacity","0.3"),a.setAttribute("stroke-opacity","0.2")):(a.setAttribute("fill-opacity","1"),a.setAttribute("stroke-opacity","1"))})}const cE=({data:e,categories:t,mode:r,width:n=900,height:i=400,margin:a={top:10,right:30,bottom:40,left:60},timeRange:o,showGrid:s=!0,showAxes:l=!0,axisLabelColor:u,axisLabelSize:c=14,formatDate:f,formatValue:h,markers:p=[],arcAngle:y=200,parliamentRadius:m=200,seatSize:d=4.5,animationDuration:b=900,onMorphComplete:v,onAnimationStateChange:x,onTimelineReady:_,onAnimationProgress:g,onHoveredDataChange:w,hoveredCategory:S,maxSeats:A=500,showTooltip:T=!0,showTable:M=!1,showScaledIndicator:P=!0,parliamentTimestamp:E,enableBrush:C=!1,onTimeRangeChange:$,minAllowedTime:j,maxAllowedTime:k,timelineEvents:R=[],showTimeline:L=!1,timelineHeight:U=40,timelineOffset:I,brushColor:B="#69b3a2"})=>{const q=O.useRef(null),N=O.useCallback(at=>{w&&w(at)},[w]),G=12,K=I??6+G+c+G,Z=e[e.length-1],X=Z?t.reduce((at,dt)=>at+(Z.values[dt.dataKey]||0),0):0,z=X>A,Y=z?Math.round(X/A):1,V=L&&r==="stacked-area"?i+U+K:i,{isMorphing:D,currentMode:rt,visibleMarkers:W,hoveredMarker:tt,hoveredTimelineEvent:ft}=QN({containerRef:q,data:e,categories:t,mode:r,width:n,height:i,margin:a,timeRange:o,showGrid:s,showAxes:l,axisLabelColor:u,axisLabelSize:c,formatDate:f,formatValue:h,markers:p,arcAngle:y,parliamentRadius:m,seatSize:d,animationDuration:b,onMorphComplete:v,onAnimationStateChange:x,onTimelineReady:_,onAnimationProgress:g,onHoveredDataChange:N,hoveredCategory:S,maxSeats:A,parliamentTimestamp:E,enableBrush:C,onTimeRangeChange:$,minAllowedTime:j,maxAllowedTime:k,showScaleIndicator:P&&z,reposPerSeat:Y,timelineEvents:R,showTimeline:L,timelineHeight:U,timelineOffset:K,brushColor:B});return H.jsxs(Q.Box,{sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[H.jsx("svg",{ref:q,viewBox:`0 0 ${n} ${V}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",height:"auto",display:"block"}}),rt==="area"&&W.map(at=>{const dt=(at.x+a.left)/n*100,Pt=a.top/i*100,ct=new Date(at.timestamp),nt=f?f(at.timestamp):ct.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),pt=H.jsxs(Q.Box,{children:[H.jsx(Q.Box,{sx:{color:"#B6BFFF",fontFamily:"monospace",fontSize:"0.8125rem",mb:at.label?.5:0},children:nt}),at.label&&H.jsx(Q.Box,{sx:{color:"white",fontWeight:500},children:at.label})]});return H.jsx(Q.Tooltip,{title:pt,open:(tt==null?void 0:tt.timestamp)===at.timestamp,placement:"top",arrow:!0,slotProps:{tooltip:{sx:{bgcolor:"#131E7A",fontSize:"0.875rem",px:2,py:1,borderRadius:1,boxShadow:"0px 2px 8px rgba(0,0,0,0.15)","& .MuiTooltip-arrow":{color:"#131E7A"}}},popper:{sx:{pointerEvents:"none"}}},children:H.jsx(Q.Box,{sx:{position:"absolute",left:`${dt}%`,top:`${Pt}%`,width:"1px",height:`${(i-a.top-a.bottom)/i*100}%`,pointerEvents:"none"}})},at.timestamp)}),ft&&rt==="area"&&H.jsx(Q.Tooltip,{title:H.jsxs(Q.Box,{children:[H.jsx(Q.Box,{sx:{color:"#B6BFFF",fontFamily:"monospace",fontSize:"0.8125rem",mb:.5},children:f?f(ft.timestamp):new Date(ft.timestamp).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0})}),H.jsx(Q.Box,{sx:{color:"white",fontWeight:500},children:ft.eventName})]}),open:!0,placement:"top",arrow:!0,slotProps:{tooltip:{sx:{bgcolor:"#131E7A",fontSize:"0.875rem",px:2,py:1,borderRadius:1,boxShadow:"0px 2px 8px rgba(0,0,0,0.15)","& .MuiTooltip-arrow":{color:"#131E7A"}}},popper:{sx:{pointerEvents:"none"}}},children:H.jsx(Q.Box,{sx:{position:"absolute",left:`${(ft.x+a.left)/n*100}%`,top:`${(i+K+U/2)/V*100}%`,width:"1px",height:"1px",pointerEvents:"none"}})}),D&&H.jsxs(Q.Box,{sx:{position:"absolute",top:8,right:8,padding:"4px 8px",backgroundColor:"rgba(0,0,0,0.7)",color:"white",borderRadius:"4px",fontSize:"12px",pointerEvents:"none",display:"none"},children:["Morphing: ",rt," → ",r]})]})},fE=[{minRepos:0,maxRepos:10,minArc:90,maxArc:90,minSeatSize:28,maxSeatSize:28},{minRepos:10,maxRepos:25,minArc:90,maxArc:110,minSeatSize:24,maxSeatSize:24},{minRepos:25,maxRepos:50,minArc:110,maxArc:120,minSeatSize:20,maxSeatSize:20},{minRepos:50,maxRepos:100,minArc:120,maxArc:150,minSeatSize:16.5,maxSeatSize:16.5},{minRepos:100,maxRepos:200,minArc:150,maxArc:180,minSeatSize:15,maxSeatSize:15},{minRepos:200,maxRepos:1/0,minArc:180,maxArc:180,minSeatSize:14.5,maxSeatSize:14.5}],t0=({repositoryCount:e})=>{const t=fE.find(s=>e>=s.minRepos&&e<s.maxRepos);if(!t)return 180;if(t.minArc===t.maxArc)return t.minArc;const r=t.maxRepos-t.minRepos,i=(e-t.minRepos)/r,a=t.maxArc-t.minArc,o=t.minArc+a*i;return Math.round(o)},e0=({repositoryCount:e})=>{const t=fE.find(s=>e>=s.minRepos&&e<s.maxRepos);if(!t)return 6.5;if(t.minSeatSize===t.maxSeatSize)return t.minSeatSize;const r=t.maxRepos-t.minRepos,i=(e-t.minRepos)/r,a=t.maxSeatSize-t.minSeatSize,o=t.minSeatSize+a*i;return Math.round(o*10)/10};class $l{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}$l.prototype.normal={};$l.prototype.property={};$l.prototype.space=void 0;function hE(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new $l(r,n,t)}function Xs(e){return e.toLowerCase()}class Er{constructor(t,r){this.attribute=r,this.property=t}}Er.prototype.attribute="";Er.prototype.booleanish=!1;Er.prototype.boolean=!1;Er.prototype.commaOrSpaceSeparated=!1;Er.prototype.commaSeparated=!1;Er.prototype.defined=!1;Er.prototype.mustUseProperty=!1;Er.prototype.number=!1;Er.prototype.overloadedBoolean=!1;Er.prototype.property="";Er.prototype.spaceSeparated=!1;Er.prototype.space=void 0;let oL=0;const Tt=Sa(),Ee=Sa(),qy=Sa(),ot=Sa(),ie=Sa(),Ya=Sa(),jr=Sa();function Sa(){return 2**++oL}const Fy=Object.freeze(Object.defineProperty({__proto__:null,boolean:Tt,booleanish:Ee,commaOrSpaceSeparated:jr,commaSeparated:Ya,number:ot,overloadedBoolean:qy,spaceSeparated:ie},Symbol.toStringTag,{value:"Module"})),Kf=Object.keys(Fy);class r0 extends Er{constructor(t,r,n,i){let a=-1;if(super(t,r),ox(this,"space",i),typeof n=="number")for(;++a<Kf.length;){const o=Kf[a];ox(this,Kf[a],(n&Fy[o])===Fy[o])}}}r0.prototype.defined=!0;function ox(e,t,r){r&&(e[t]=r)}function No(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const a=new r0(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[Xs(n)]=n,r[Xs(a.attribute)]=n}return new $l(t,r,e.space)}const pE=No({properties:{ariaActiveDescendant:null,ariaAtomic:Ee,ariaAutoComplete:null,ariaBusy:Ee,ariaChecked:Ee,ariaColCount:ot,ariaColIndex:ot,ariaColSpan:ot,ariaControls:ie,ariaCurrent:null,ariaDescribedBy:ie,ariaDetails:null,ariaDisabled:Ee,ariaDropEffect:ie,ariaErrorMessage:null,ariaExpanded:Ee,ariaFlowTo:ie,ariaGrabbed:Ee,ariaHasPopup:null,ariaHidden:Ee,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ie,ariaLevel:ot,ariaLive:null,ariaModal:Ee,ariaMultiLine:Ee,ariaMultiSelectable:Ee,ariaOrientation:null,ariaOwns:ie,ariaPlaceholder:null,ariaPosInSet:ot,ariaPressed:Ee,ariaReadOnly:Ee,ariaRelevant:null,ariaRequired:Ee,ariaRoleDescription:ie,ariaRowCount:ot,ariaRowIndex:ot,ariaRowSpan:ot,ariaSelected:Ee,ariaSetSize:ot,ariaSort:null,ariaValueMax:ot,ariaValueMin:ot,ariaValueNow:ot,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function dE(e,t){return t in e?e[t]:t}function mE(e,t){return dE(e,t.toLowerCase())}const sL=No({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ya,acceptCharset:ie,accessKey:ie,action:null,allow:null,allowFullScreen:Tt,allowPaymentRequest:Tt,allowUserMedia:Tt,alt:null,as:null,async:Tt,autoCapitalize:null,autoComplete:ie,autoFocus:Tt,autoPlay:Tt,blocking:ie,capture:null,charSet:null,checked:Tt,cite:null,className:ie,cols:ot,colSpan:null,content:null,contentEditable:Ee,controls:Tt,controlsList:ie,coords:ot|Ya,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Tt,defer:Tt,dir:null,dirName:null,disabled:Tt,download:qy,draggable:Ee,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Tt,formTarget:null,headers:ie,height:ot,hidden:qy,high:ot,href:null,hrefLang:null,htmlFor:ie,httpEquiv:ie,id:null,imageSizes:null,imageSrcSet:null,inert:Tt,inputMode:null,integrity:null,is:null,isMap:Tt,itemId:null,itemProp:ie,itemRef:ie,itemScope:Tt,itemType:ie,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Tt,low:ot,manifest:null,max:null,maxLength:ot,media:null,method:null,min:null,minLength:ot,multiple:Tt,muted:Tt,name:null,nonce:null,noModule:Tt,noValidate:Tt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Tt,optimum:ot,pattern:null,ping:ie,placeholder:null,playsInline:Tt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Tt,referrerPolicy:null,rel:ie,required:Tt,reversed:Tt,rows:ot,rowSpan:ot,sandbox:ie,scope:null,scoped:Tt,seamless:Tt,selected:Tt,shadowRootClonable:Tt,shadowRootDelegatesFocus:Tt,shadowRootMode:null,shape:null,size:ot,sizes:null,slot:null,span:ot,spellCheck:Ee,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ot,step:null,style:null,tabIndex:ot,target:null,title:null,translate:null,type:null,typeMustMatch:Tt,useMap:null,value:Ee,width:ot,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ie,axis:null,background:null,bgColor:null,border:ot,borderColor:null,bottomMargin:ot,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Tt,declare:Tt,event:null,face:null,frame:null,frameBorder:null,hSpace:ot,leftMargin:ot,link:null,longDesc:null,lowSrc:null,marginHeight:ot,marginWidth:ot,noResize:Tt,noHref:Tt,noShade:Tt,noWrap:Tt,object:null,profile:null,prompt:null,rev:null,rightMargin:ot,rules:null,scheme:null,scrolling:Ee,standby:null,summary:null,text:null,topMargin:ot,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ot,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Tt,disableRemotePlayback:Tt,prefix:null,property:null,results:ot,security:null,unselectable:null},space:"html",transform:mE}),lL=No({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:jr,accentHeight:ot,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ot,amplitude:ot,arabicForm:null,ascent:ot,attributeName:null,attributeType:null,azimuth:ot,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ot,by:null,calcMode:null,capHeight:ot,className:ie,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ot,diffuseConstant:ot,direction:null,display:null,dur:null,divisor:ot,dominantBaseline:null,download:Tt,dx:null,dy:null,edgeMode:null,editable:null,elevation:ot,enableBackground:null,end:null,event:null,exponent:ot,externalResourcesRequired:null,fill:null,fillOpacity:ot,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ya,g2:Ya,glyphName:Ya,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ot,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ot,horizOriginX:ot,horizOriginY:ot,id:null,ideographic:ot,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ot,k:ot,k1:ot,k2:ot,k3:ot,k4:ot,kernelMatrix:jr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ot,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ot,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ot,overlineThickness:ot,paintOrder:null,panose1:null,path:null,pathLength:ot,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ie,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ot,pointsAtY:ot,pointsAtZ:ot,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:jr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:jr,rev:jr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:jr,requiredFeatures:jr,requiredFonts:jr,requiredFormats:jr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ot,specularExponent:ot,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ot,strikethroughThickness:ot,string:null,stroke:null,strokeDashArray:jr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ot,strokeOpacity:ot,strokeWidth:null,style:null,surfaceScale:ot,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:jr,tabIndex:ot,tableValues:null,target:null,targetX:ot,targetY:ot,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:jr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ot,underlineThickness:ot,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ot,values:null,vAlphabetic:ot,vMathematical:ot,vectorEffect:null,vHanging:ot,vIdeographic:ot,version:null,vertAdvY:ot,vertOriginX:ot,vertOriginY:ot,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ot,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:dE}),yE=No({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),gE=No({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:mE}),vE=No({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),uL=/[A-Z]/g,sx=/-[a-z]/g,cL=/^data[-\w.:]+$/i;function bE(e,t){const r=Xs(t);let n=t,i=Er;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&cL.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(sx,hL);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!sx.test(a)){let o=a.replace(uL,fL);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=r0}return new i(n,t)}function fL(e){return"-"+e.toLowerCase()}function hL(e){return e.charAt(1).toUpperCase()}const xE=hE([pE,sL,yE,gE,vE],"html"),n0=hE([pE,lL,yE,gE,vE],"svg");function lx(e){const t=[],r=String(e||"");let n=r.indexOf(","),i=0,a=!1;for(;!a;){n===-1&&(n=r.length,a=!0);const o=r.slice(i,n).trim();(o||!a)&&t.push(o),i=n+1,n=r.indexOf(",",i)}return t}function pL(e,t){const r=t||{};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const ux=/[#.]/g;function dL(e,t){const r=e||"",n={};let i=0,a,o;for(;i<r.length;){ux.lastIndex=i;const s=ux.exec(r),l=r.slice(i,s?s.index:r.length);l&&(a?a==="#"?n.id=l:Array.isArray(n.className)?n.className.push(l):n.className=[l]:o=l,i+=l.length),s&&(a=s[0],i++)}return{type:"element",tagName:o||t||"div",properties:n,children:[]}}function cx(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function mL(e){return e.join(" ").trim()}function _E(e,t,r){const n=r?bL(r):void 0;function i(a,o,...s){let l;if(a==null){l={type:"root",children:[]};const u=o;s.unshift(u)}else{l=dL(a,t);const u=l.tagName.toLowerCase(),c=n?n.get(u):void 0;if(l.tagName=c||u,yL(o))s.unshift(o);else for(const[f,h]of Object.entries(o))gL(e,l.properties,f,h)}for(const u of s)zy(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return i}function yL(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,r=Object.keys(e);for(const n of r){const i=t[n];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const o of a)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function gL(e,t,r,n){const i=bE(e,r);let a;if(n!=null){if(typeof n=="number"){if(Number.isNaN(n))return;a=n}else typeof n=="boolean"?a=n:typeof n=="string"?i.spaceSeparated?a=cx(n):i.commaSeparated?a=lx(n):i.commaOrSpaceSeparated?a=cx(lx(n).join(" ")):a=fx(i,i.property,n):Array.isArray(n)?a=[...n]:a=i.property==="style"?vL(n):String(n);if(Array.isArray(a)){const o=[];for(const s of a)o.push(fx(i,i.property,s));a=o}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function zy(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const r of t)zy(e,r);else if(typeof t=="object"&&"type"in t)t.type==="root"?zy(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function fx(e,t,r){if(typeof r=="string"){if(e.number&&r&&!Number.isNaN(Number(r)))return Number(r);if((e.boolean||e.overloadedBoolean)&&(r===""||Xs(r)===Xs(t)))return!0}return r}function vL(e){const t=[];for(const[r,n]of Object.entries(e))t.push([r,n].join(": "));return t.join("; ")}function bL(e){const t=new Map;for(const r of e)t.set(r.toLowerCase(),r);return t}const xL=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"];_E(xE,"div");const jl=_E(n0,"g",xL),wE=(e=jl)=>e("pattern",{id:"greyHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:Or.neoGrey[200]}),e("path",{d:"M0,2 L8,2",stroke:Or.neoGrey[400],"stroke-width":.5}),e("path",{d:"M0,6 L8,6",stroke:Or.neoGrey[400],"stroke-width":.5})]),SE=(e=jl)=>e("pattern",{id:"dataMissingHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:"#FFF3CC"}),e("path",{d:"M0,8 L8,0",stroke:"#FFB800","stroke-width":.5}),e("path",{d:"M-2,2 L2,-2",stroke:"#FFB800","stroke-width":.5}),e("path",{d:"M6,10 L10,6",stroke:"#FFB800","stroke-width":.5})]),AE=(e=jl)=>e("pattern",{id:"noLstHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[e("rect",{x:0,y:0,width:8,height:8,fill:"#FFE5E5"}),e("path",{d:"M0,0 L8,8",stroke:"#ED4134","stroke-width":.5}),e("path",{d:"M-2,6 L2,10",stroke:"#ED4134","stroke-width":.5}),e("path",{d:"M6,-2 L10,2",stroke:"#ED4134","stroke-width":.5})]),Yt={greyHatch:{background:Or.neoGrey[200],lines:Or.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}},_L=({categories:e,activeCategory:t,onCategoryHover:r,mode:n,visible:i=!0})=>H.jsx(Q.Box,{className:"category-table",sx:{width:"100%",display:"flex",justifyContent:"center",opacity:i?1:0,transition:"opacity 0.3s ease-in-out","@media (min-width: 1024px) and (max-width: 1225px)":{overflowX:"auto",maxWidth:"100%"}},onMouseLeave:()=>r(null),children:H.jsxs(Q.Table,{"aria-label":"Categories summary",className:"category-summary-table",size:"small",sx:{maxWidth:{xs:"clamp(360px, 90%, 400px)",sm:"clamp(360px, 90%, 400px)",md:"clamp(360px, 85%, 420px)",lg:"clamp(360px, 90%, 400px)"},"@media (min-width: 1024px) and (max-width: 1225px)":{maxWidth:"360px","& .MuiTableCell-root":{padding:"1px 4px",fontSize:"9.5px"}},"& .MuiTableCell-root":{padding:"2px 8px",borderBottom:"none",fontSize:"clamp(10px, 1.8vw, 11.5px)"}},children:[H.jsx("thead",{children:H.jsxs(Q.TableRow,{children:[H.jsx(Q.TableCell,{}),H.jsx(Q.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),n==="point-in-time"?H.jsxs(H.Fragment,{children:[H.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"#"}),H.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"%"})]}):H.jsxs(H.Fragment,{children:[H.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Last"}),H.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Max"}),H.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"Min"})]})]})}),H.jsx("tbody",{children:e.map(a=>{const o=a.color==="url(#greyHatchPattern)"?Yt.greyHatch.lines:a.color==="url(#dataMissingHatchPattern)"?Yt.dataMissingHatch.lines:a.color==="url(#noLstHatchPattern)"?Yt.noLstHatch.lines:a.color;return H.jsxs(Q.TableRow,{onMouseEnter:()=>r(a.id),sx:{cursor:"pointer",transition:"background-color 0.15s ease",backgroundColor:t===a.id?`${o}15`:"transparent","&:hover":{backgroundColor:`${o}15`}},children:[H.jsx(Q.TableCell,{align:"center",sx:{width:20},children:H.jsx(Q.Box,{sx:{width:n==="historical"?4:12,height:12,backgroundColor:a.color==="url(#greyHatchPattern)"?Yt.greyHatch.background:a.color==="url(#dataMissingHatchPattern)"?Yt.dataMissingHatch.background:a.color==="url(#noLstHatchPattern)"?Yt.noLstHatch.background:a.color,borderRadius:n==="historical"?2:"50%",position:"relative",overflow:"hidden",transition:"transform 0.15s ease",transform:t===a.id?"scale(1.2)":"scale(1)",...a.label==="N/A"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
|
|
16
|
+
0deg,
|
|
17
|
+
transparent,
|
|
18
|
+
transparent 3px,
|
|
19
|
+
${Yt.greyHatch.lines} 3px,
|
|
20
|
+
${Yt.greyHatch.lines} 4px
|
|
21
|
+
)`,borderRadius:n==="historical"?2:"50%"}},...a.label==="Data Missing"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
|
|
22
|
+
45deg,
|
|
23
|
+
transparent,
|
|
24
|
+
transparent 3px,
|
|
25
|
+
${Yt.dataMissingHatch.lines} 3px,
|
|
26
|
+
${Yt.dataMissingHatch.lines} 4px
|
|
27
|
+
)`,borderRadius:n==="historical"?2:"50%"}},...a.label==="No LST"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
|
|
28
|
+
-45deg,
|
|
29
|
+
transparent,
|
|
30
|
+
transparent 3px,
|
|
31
|
+
${Yt.noLstHatch.lines} 3px,
|
|
32
|
+
${Yt.noLstHatch.lines} 4px
|
|
33
|
+
)`,borderRadius:n==="historical"?2:"50%"}}}})}),H.jsx(Q.TableCell,{children:H.jsxs(Q.Stack,{direction:"row",alignItems:"center",gap:.5,children:[H.jsx("span",{children:a.label}),a.tooltip&&H.jsx(Q.Tooltip,{title:a.tooltip,placement:"right",arrow:!0,children:H.jsx(HO.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),n==="point-in-time"?H.jsxs(H.Fragment,{children:[H.jsx(Q.TableCell,{align:"right",children:a.value}),H.jsxs(Q.TableCell,{align:"right",children:[a.percentage,"%"]})]}):H.jsxs(H.Fragment,{children:[H.jsx(Q.TableCell,{align:"right",children:a.value}),H.jsx(Q.TableCell,{align:"right",children:a.max??"-"}),H.jsx(Q.TableCell,{align:"right",children:a.min??"-"})]})]},a.id)})})]})}),hx={"N/A":"Items that aren't applicable to this migration.","No LST":"There are no LSTs for these items.","Data Missing":"There is data missing in the LSTs."},wL=(e,t="point-in-time")=>{const r=e.timeSeries[e.timeSeries.length-1];if(!r)return[];const n=e.categories.filter(f=>{var h;return!((h=f.parliamentMapping)!=null&&h.isSpecialCategory)}),i=n.reduce((f,h)=>f+(r.values[h.id]??0),0),a=e.metadata.specialCounts,o=a?(a.notApplicable??0)+(a.noLst??0)+(a.unavailable??0):0,s=i+o,l=t==="historical"?new Map(n.map(f=>{const h=e.timeSeries.map(p=>Math.round(p.values[f.id]??0)).filter(p=>p!==void 0);return[f.id,{max:Math.max(...h),min:Math.min(...h)}]})):null,u=n.map(f=>{const h=Math.round(r.values[f.id]??0),p=h/s*100,y=p>0&&p<1?"< 1":p.toFixed(0),m={id:f.id,label:f.label,value:h,percentage:Number.parseFloat(y),color:f.color,tooltip:hx[f.label]};if(l){const d=l.get(f.id);d&&(m.max=d.max,m.min=d.min)}return m}),c=[];if(a){const f=e.categories.filter(h=>{var p;return(p=h.parliamentMapping)==null?void 0:p.isSpecialCategory});for(const h of f){let p=0;if(h.label==="N/A"?p=Math.round(a.notApplicable??0):h.label==="No LST"?p=Math.round(a.noLst??0):h.label==="Data Missing"&&(p=Math.round(a.unavailable??0)),p>0){const y=p/s*100,m=y>0&&y<1?"< 1":y.toFixed(0);c.push({id:h.id,label:h.label,value:p,percentage:Number.parseFloat(m),color:h.color,tooltip:hx[h.label]})}}}return[...u,...c]},SL=e=>{if(!e.timeSeries[e.timeSeries.length-1])throw new Error("ChronoChart: No data points available");const r=e.timeSeries.map(i=>({timestamp:i.timestamp,values:i.values})),n=e.categories.map(i=>{var a;return{dataKey:i.id,label:i.label,color:i.color,fillOpacity:.7,strokeWidth:(a=i.parliamentMapping)!=null&&a.isSpecialCategory?3:1.5,strokeDasharray:i.strokeDasharray,parliamentMapping:i.parliamentMapping}});return{data:r,categories:n}},AL=e=>{if(!e.timeSeries||e.timeSeries.length===0)throw new Error("ChronoChart: timeSeries must not be empty");if(!e.categories||e.categories.length===0)throw new Error("ChronoChart: categories must not be empty");if(!e.metadata||typeof e.metadata.total!="number")throw new Error("ChronoChart: metadata.total is required");if(!e.timeSeries.every((n,i)=>i===0||n.timestamp>=e.timeSeries[i-1].timestamp))throw new Error("ChronoChart: timeSeries must be sorted by timestamp (ascending)");const r=e.timeSeries[0];if(r){for(const n of e.categories.filter(i=>{var a;return!((a=i.parliamentMapping)!=null&&a.isSpecialCategory)}))if(!(n.id in r.values))throw new Error(`ChronoChart: Category "${n.id}" not found in timeSeries data`)}},OE=({data:e,selectedIndex:t,title:r,subtitle:n,showHeader:i=!0,width:a=960,height:o=400,timeRange:s,onTimeRangeChange:l,minAllowedTime:u,maxAllowedTime:c,enableBrush:f=!1,showLegend:h=!0,showTooltip:p=!0,showGrid:y=!0,axisLabelColor:m,axisLabelSize:d=14,enableAnimation:b=!0,animationDuration:v=5439,disableTimeline:x=!1,formatDate:_,formatValue:g,onAnimationStateChange:w,onTimelineReady:S,onAnimationProgress:A,brushColor:T="#69b3a2"})=>{AL(e);const[M,P]=O.useState(null),[E,C]=O.useState(!0),$=O.useRef("historical"),j=O.useRef(void 0),k=O.useMemo(()=>e.timeSeries.length===1||t!==void 0?"point-in-time":"historical",[t,e.timeSeries.length]),R=O.useMemo(()=>{var tt;let W;return t!==void 0&&e.timeSeries[t]?(W=e.timeSeries[t].timestamp,j.current=W):$.current==="point-in-time"&&k==="historical"&&j.current!==void 0?W=j.current:W=(tt=e.timeSeries[e.timeSeries.length-1])==null?void 0:tt.timestamp,$.current=k,W},[t,e.timeSeries,k]),L=e.timeSeries[0].timestamp,U=e.timeSeries[e.timeSeries.length-1].timestamp,[I,B]=O.useState([L,U]),q=s??I,N=O.useCallback(W=>{const tt=[u!==void 0?Math.max(W[0],u):W[0],c!==void 0?Math.min(W[1],c):W[1]];l?l(tt):B(tt)},[l,u,c]);O.useEffect(()=>{P(null)},[k]);const G=O.useMemo(()=>({top:10,right:30,left:60,bottom:30}),[]),F=O.useMemo(()=>SL(e),[e]),K=O.useMemo(()=>wL(e,k),[e,k]),Z=O.useMemo(()=>{const W=e.timeSeries[e.timeSeries.length-1];return W?Object.values(W.values).reduce((tt,ft)=>tt+ft,0):0},[e.timeSeries]),X=O.useMemo(()=>t0({repositoryCount:Z}),[Z]),z=O.useMemo(()=>e0({repositoryCount:Z}),[Z]),Y=O.useMemo(()=>{const W=o-G.top-G.bottom;return Math.round(W*.9)},[o,G]),V=O.useMemo(()=>e.events?e.events.map(W=>({timestamp:W.timestamp,label:W.eventName,color:typeof W.color=="string"?W.color:"#2F42FF"})):[],[e.events]),D=O.useCallback(W=>{if(W){const tt=e.categories.find(ft=>ft.label===W.label);P((tt==null?void 0:tt.id)??null)}else P(null)},[e.categories]),rt=O.useCallback(W=>{C(!W),w&&w(W)},[w]);return H.jsxs(Q.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[i&&(r||n)&&H.jsxs(Q.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[r&&H.jsx(Q.Typography,{variant:"h5",sx:{fontWeight:500},children:r}),n&&H.jsx(Q.Typography,{variant:"body2",sx:{color:"text.secondary"},children:n})]}),H.jsx(Q.Box,{sx:{position:"relative",width:"100%"},children:H.jsx(cE,{data:F.data,categories:F.categories,mode:k==="point-in-time"?"parliament":"stacked-area",width:a,height:o,timeRange:q,onTimeRangeChange:N,minAllowedTime:u,maxAllowedTime:c,enableBrush:f,showGrid:y,showAxes:!0,axisLabelColor:m,axisLabelSize:d,margin:G,markers:V,formatDate:_,formatValue:g,animationDuration:v,onAnimationStateChange:rt,onTimelineReady:S,onAnimationProgress:A,onHoveredDataChange:D,hoveredCategory:M,arcAngle:X,parliamentRadius:Y,seatSize:z,parliamentTimestamp:R,timelineEvents:e.events??[],showTimeline:k==="historical"&&!x,brushColor:T})}),H.jsx(_L,{categories:K,activeCategory:M,onCategoryHover:P,mode:k,visible:E})]})},OL=({containerRef:e,data:t,categories:r,width:n,height:i,margin:a,timeRange:o,showGrid:s=!0,showXAxis:l=!0,showYAxis:u=!0,enableBrush:c=!1,zoomToSelection:f=!1,onTimeRangeChange:h,formatDate:p,formatValue:y,markers:m=[],markerVisibilityMode:d="hover",onMarkerHoverChange:b,brushColor:v="#69b3a2"})=>{O.useEffect(()=>{if(!e.current||t.length===0||r.length===0)return;const x=Kt(e.current),_=n-a.left-a.right,g=i-a.top-a.bottom;x.selectAll("*").remove();const w=x.append("g").attr("transform",`translate(${a.left},${a.top})`),S=`d3-chart-clip-${Math.random().toString(36).substr(2,9)}`;x.append("defs").append("clipPath").attr("id",S).append("rect").attr("x",0).attr("y",0).attr("width",_).attr("height",g);const A=w.append("g").attr("clip-path",`url(#${S})`),T=[...t].sort((N,G)=>N.timestamp-G.timestamp),M=r.map(N=>N.dataKey),P=qs().keys(M),E=P(T),C=t.map(N=>N.timestamp),$=o?o[0]:Math.min(...C),j=o?o[1]:Math.max(...C),k=Ha().domain([new Date($),new Date(j)]).range([0,_]),R=T.filter(N=>N.timestamp>=$&&N.timestamp<=j),L=P(R),U=L.length>0?Math.max(...L[L.length-1].map(N=>N[1]??0)):0,I=Oi().domain([0,U*1.1]).range([g,0]).nice();s&&(A.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(la(k).ticks(6).tickSize(g).tickFormat(()=>"")),A.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(ua(I).ticks(5).tickSize(-_).tickFormat(()=>"")));const B=mi().x(N=>k(new Date(N.data.timestamp))).y0(N=>I(N[0])).y1(N=>I(N[1])).curve(Qn),q=A.append("g").attr("class","areas");if(E.forEach((N,G)=>{const F=r[G];if(!F)return;const K=q.append("path").datum(N).attr("class",`area area-${F.dataKey}`).attr("fill",F.color).attr("fill-opacity",F.fillOpacity??.7).attr("stroke",F.color).attr("stroke-width",F.strokeWidth??1.5).attr("d",B);F.strokeDasharray&&K.attr("stroke-dasharray",F.strokeDasharray)}),m.length>0){const N=A.append("g").attr("class","markers"),G=d==="hover"?0:.6,F=m.filter(K=>K.timestamp>=$&&K.timestamp<=j).map(K=>({...K,x:k(new Date(K.timestamp))}));if(F.forEach(K=>{const Z=N.append("line").attr("class","marker-line").attr("data-timestamp",K.timestamp).attr("x1",K.x).attr("x2",K.x).attr("y1",0).attr("y2",g).attr("stroke",K.color??"#131E7A").attr("stroke-width",2).attr("opacity",G);K.strokeDasharray&&Z.attr("stroke-dasharray",K.strokeDasharray),K.label&&N.append("text").attr("class","marker-label").attr("data-timestamp",K.timestamp).attr("x",K.x).attr("y",-5).attr("text-anchor","middle").attr("font-size",10).attr("fill",K.color??"#131E7A").attr("opacity",G).text(K.label)}),d==="hover"&&F.length>0){const K=x.append("g").attr("class","marker-tooltip").attr("transform",`translate(${a.left},${a.top})`).style("pointer-events","none").style("display","none"),Z=K.append("rect").attr("fill","#131E7A").attr("rx",4).attr("ry",4).attr("filter","drop-shadow(0px 2px 4px rgba(0,0,0,0.2))"),X=K.append("text").attr("fill","white").attr("font-size",12).attr("font-weight",500).attr("text-anchor","middle");let z=null;const Y=A.append("rect").attr("class","marker-hover-overlay").attr("width",_).attr("height",g).attr("fill","none").attr("pointer-events","all"),V=D=>{let rt=null,W=1/0;if(F.forEach(gt=>{const Ot=Math.abs(D-gt.x);Ot<W&&(W=Ot,rt=gt)}),!rt||W>50)return z!==null&&(z=null,N.selectAll(".marker-line").attr("opacity",0),N.selectAll(".marker-label").attr("opacity",0),K.style("display","none"),b==null||b(!1)),!1;const ft=rt;if(z===null&&(b==null||b(!0)),z===ft.timestamp)return!0;z=ft.timestamp,N.selectAll(".marker-line").attr("opacity",0),N.selectAll(".marker-label").attr("opacity",0),N.selectAll(".marker-line").filter(function(){return Kt(this).attr("data-timestamp")===String(ft.timestamp)}).attr("opacity",.6),N.selectAll(".marker-label").filter(function(){return Kt(this).attr("data-timestamp")===String(ft.timestamp)}).attr("opacity",1);const at=new Date(ft.timestamp),dt=p?p(ft.timestamp):at.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),Pt=ft.label?`${ft.label}: ${dt}`:dt;X.text(Pt);const ct=X.node().getBBox(),nt=8,pt=ct.width+nt*2,kt=ct.height+nt*2;Z.attr("width",pt).attr("height",kt);let lt=ft.x-pt/2;const At=10;return lt<0?lt=0:lt+pt>_&&(lt=_-pt),K.attr("transform",`translate(${a.left+lt},${a.top+At})`),X.attr("x",pt/2).attr("y",kt/2+4),K.style("display","block"),!0};Y.on("mousemove",function(D){const[rt]=ca(D,this);V(rt)&&D.stopPropagation()}),Y.on("mouseleave",function(){z=null,N.selectAll(".marker-line").attr("opacity",0),N.selectAll(".marker-label").attr("opacity",0),K.style("display","none"),b==null||b(!1)})}}if(l){const N=la(k).ticks(6);p&&N.tickFormat(G=>p(+G)),w.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${g})`).call(N).selectAll("text").attr("font-size",11)}if(u){const N=ua(I).ticks(5);y&&N.tickFormat(G=>y(+G)),w.append("g").attr("class","axis axis-y").call(N).selectAll("text").attr("font-size",11)}if(c&&h){const N=Pl().extent([[0,0],[_,g]]).on("end",F=>{if(!F.selection)return;const[K,Z]=F.selection,X=[+k.invert(K),+k.invert(Z)];h(X),f&&x.select(".brush").call(N.move,null)}),G=A.append("g").attr("class","brush").call(N);G.selectAll(".selection").attr("fill",v).attr("fill-opacity",.2).attr("stroke",v).attr("stroke-width",1),G.selectAll(".handle").attr("fill",v).attr("fill-opacity",.8)}return()=>{x.selectAll("*").remove()}},[e,t,r,n,i,a,o,s,l,u,c,f,h,p,y,m,d,b,v])},TL=({data:e,categories:t,title:r,subtitle:n,showHeader:i=!0,showLegend:a=!0,showTooltip:o=!0,width:s=800,height:l=400,margin:u={top:20,right:30,bottom:40,left:60},timeRange:c,showGrid:f=!0,showAxes:h=!0,showXAxis:p,showYAxis:y,formatDate:m,formatValue:d,onTimeRangeChange:b,enableBrush:v=!1,zoomToSelection:x=!1,markers:_=[],markerVisibilityMode:g="hover",brushColor:w="#69b3a2"})=>{const S=O.useRef(null),[A,T]=O.useState(null),[M,P]=O.useState(!1);O.useEffect(()=>{M&&T(null)},[M]),OL({containerRef:S,data:e,categories:t,width:s,height:l,margin:u,timeRange:c,showGrid:f,showXAxis:p!==void 0?p:h,showYAxis:y!==void 0?y:h,enableBrush:v,zoomToSelection:x,onTimeRangeChange:b,formatDate:m,formatValue:d,markers:_,markerVisibilityMode:g,onMarkerHoverChange:P,brushColor:w});const $=k=>{if(!o||!S.current||M)return;const R=S.current.getBoundingClientRect(),L=k.clientX-R.left-u.left,U=k.clientY-R.top,I=s-u.left-u.right;if(L<0||L>I){T(null);return}const B=e.map(V=>V.timestamp),q=c?c[0]:Math.min(...B),N=c?c[1]:Math.max(...B),G=L/I*(N-q)+q,K=((V,D)=>{let rt=0,W=V.length;for(;rt<W;){const tt=rt+W>>>1;V[tt]<D?rt=tt+1:W=tt}return rt})(B,G),Z=e[K-1],X=e[K];let z=X;if(Z&&X?z=G-Z.timestamp>X.timestamp-G?X:Z:Z&&(z=Z),!z){T(null);return}const Y=t.map(V=>({label:V.label,value:z[V.dataKey]??0,color:V.color}));T({visible:!0,x:k.clientX-R.left,y:U,timestamp:z.timestamp,values:Y})},j=()=>{o&&T(null)};return H.jsxs(Q.Stack,{sx:{width:"100%",alignItems:"center",gap:2},children:[i&&(r||n)&&H.jsxs(Q.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},children:[r&&H.jsx(Q.Typography,{variant:"h5",sx:{fontWeight:500},children:r}),n&&H.jsx(Q.Typography,{variant:"body2",sx:{color:"text.secondary"},children:n})]}),H.jsxs(Q.Box,{sx:{width:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[H.jsx("svg",{ref:S,viewBox:`0 0 ${s} ${l}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",maxWidth:"1200px",minWidth:"400px",height:"auto",display:"block"},onMouseMove:$,onMouseLeave:j}),o&&A&&A.visible&&H.jsxs(Q.Paper,{elevation:3,sx:{position:"absolute",left:A.x+10,top:A.y-10,pointerEvents:"none",padding:1.5,minWidth:150,zIndex:1e3,transform:A.x>s/2?"translateX(-100%) translateX(-20px)":"none"},children:[H.jsx(Q.Typography,{variant:"caption",sx:{fontWeight:600,mb:1},children:m?m(A.timestamp):new Date(A.timestamp).toLocaleDateString()}),H.jsx(Q.Stack,{spacing:.5,sx:{mt:1},children:A.values.map(k=>H.jsxs(Q.Stack,{direction:"row",justifyContent:"space-between",spacing:2,alignItems:"center",children:[H.jsxs(Q.Stack,{direction:"row",spacing:.5,alignItems:"center",children:[H.jsx(Q.Box,{sx:{width:8,height:8,backgroundColor:k.color,borderRadius:"50%"}}),H.jsxs(Q.Typography,{variant:"caption",children:[k.label,":"]})]}),H.jsx(Q.Typography,{variant:"caption",sx:{fontWeight:600},children:d?d(k.value):k.value})]},k.label))})]})]}),a&&H.jsx(Q.Stack,{direction:"row",spacing:3,sx:{flexWrap:"wrap",justifyContent:"center",gap:2},children:t.map(k=>H.jsxs(Q.Stack,{direction:"row",spacing:1,alignItems:"center",sx:{cursor:"pointer","&:hover":{opacity:.7}},children:[H.jsx(Q.Box,{sx:{width:16,height:16,backgroundColor:k.color,opacity:k.fillOpacity??.7,border:`2px solid ${k.color}`,borderRadius:"2px",...k.strokeDasharray&&{backgroundImage:`repeating-linear-gradient(
|
|
34
|
+
45deg,
|
|
35
|
+
transparent,
|
|
36
|
+
transparent 4px,
|
|
37
|
+
${k.color} 4px,
|
|
38
|
+
${k.color} 8px
|
|
39
|
+
)`}}}),H.jsx(Q.Typography,{variant:"body2",children:k.label})]},k.dataKey))})]})},PL=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],px={}.hasOwnProperty;function EL(e,t){const r=t||{};function n(i,...a){let o=n.invalid;const s=n.handlers;if(i&&px.call(i,e)){const l=String(i[e]);o=px.call(s,l)?s[l]:n.unknown}if(o)return o.call(this,i,...a)}return n.handlers=r.handlers||{},n.invalid=r.invalid,n.unknown=r.unknown,n}const ML=/["&'<>`]/g,CL=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,kL=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,$L=/[|\\{}()[\]^$+*?.]/g,dx=new WeakMap;function jL(e,t){if(e=e.replace(t.subset?RL(t.subset):ML,n),t.subset||t.escapeOnly)return e;return e.replace(CL,r).replace(kL,n);function r(i,a,o){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,o.charCodeAt(a+2),t)}function n(i,a,o){return t.format(i.charCodeAt(0),o.charCodeAt(a+1),t)}}function RL(e){let t=dx.get(e);return t||(t=DL(e),dx.set(e,t)),t}function DL(e){const t=[];let r=-1;for(;++r<e.length;)t.push(e[r].replace($L,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const IL=/[\dA-Fa-f]/;function NL(e,t,r){const n="&#x"+e.toString(16).toUpperCase();return r&&t&&!IL.test(String.fromCharCode(t))?n:n+";"}const LL=/\d/;function BL(e,t,r){const n="&#"+String(e);return r&&t&&!LL.test(String.fromCharCode(t))?n:n+";"}const qL=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Xf={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},FL=["cent","copy","divide","gt","lt","not","para","times"],TE={}.hasOwnProperty,Uy={};let Kl;for(Kl in Xf)TE.call(Xf,Kl)&&(Uy[Xf[Kl]]=Kl);const zL=/[^\dA-Za-z]/;function UL(e,t,r,n){const i=String.fromCharCode(e);if(TE.call(Uy,i)){const a=Uy[i],o="&"+a;return r&&qL.includes(a)&&!FL.includes(a)&&(!n||t&&t!==61&&zL.test(String.fromCharCode(t)))?o:o+";"}return""}function WL(e,t,r){let n=NL(e,t,r.omitOptionalSemicolons),i;if((r.useNamedReferences||r.useShortestReferences)&&(i=UL(e,t,r.omitOptionalSemicolons,r.attribute)),(r.useShortestReferences||!i)&&r.useShortestReferences){const a=BL(e,t,r.omitOptionalSemicolons);a.length<n.length&&(n=a)}return i&&(!r.useShortestReferences||i.length<n.length)?i:n}function Va(e,t){return jL(e,Object.assign({format:WL},t))}const HL=/^>|^->|<!--|-->|--!>|<!-$/g,GL=[">"],KL=["<",">"];function XL(e,t,r,n){return n.settings.bogusComments?"<?"+Va(e.value,Object.assign({},n.settings.characterReferences,{subset:GL}))+">":"<!--"+e.value.replace(HL,i)+"-->";function i(a){return Va(a,Object.assign({},n.settings.characterReferences,{subset:KL}))}}function YL(e,t,r,n){return"<!"+(n.settings.upperDoctype?"DOCTYPE":"doctype")+(n.settings.tightDoctype?"":" ")+"html>"}function mx(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let n=0,i=r.indexOf(t);for(;i!==-1;)n++,i=r.indexOf(t,i+t.length);return n}const VL=/[ \t\n\f\r]/g;function i0(e){return typeof e=="object"?e.type==="text"?yx(e.value):!1:yx(e)}function yx(e){return e.replace(VL,"")===""}const ze=EE(1),PE=EE(-1),ZL=[];function EE(e){return t;function t(r,n,i){const a=r?r.children:ZL;let o=(n||0)+e,s=a[o];if(!i)for(;s&&i0(s);)o+=e,s=a[o];return s}}const JL={}.hasOwnProperty;function ME(e){return t;function t(r,n,i){return JL.call(e,r.tagName)&&e[r.tagName](r,n,i)}}const a0=ME({body:tB,caption:Yf,colgroup:Yf,dd:iB,dt:nB,head:Yf,html:QL,li:rB,optgroup:aB,option:oB,p:eB,rp:gx,rt:gx,tbody:lB,td:vx,tfoot:uB,th:vx,thead:sB,tr:cB});function Yf(e,t,r){const n=ze(r,t,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&i0(n.value.charAt(0)))}function QL(e,t,r){const n=ze(r,t);return!n||n.type!=="comment"}function tB(e,t,r){const n=ze(r,t);return!n||n.type!=="comment"}function eB(e,t,r){const n=ze(r,t);return n?n.type==="element"&&(n.tagName==="address"||n.tagName==="article"||n.tagName==="aside"||n.tagName==="blockquote"||n.tagName==="details"||n.tagName==="div"||n.tagName==="dl"||n.tagName==="fieldset"||n.tagName==="figcaption"||n.tagName==="figure"||n.tagName==="footer"||n.tagName==="form"||n.tagName==="h1"||n.tagName==="h2"||n.tagName==="h3"||n.tagName==="h4"||n.tagName==="h5"||n.tagName==="h6"||n.tagName==="header"||n.tagName==="hgroup"||n.tagName==="hr"||n.tagName==="main"||n.tagName==="menu"||n.tagName==="nav"||n.tagName==="ol"||n.tagName==="p"||n.tagName==="pre"||n.tagName==="section"||n.tagName==="table"||n.tagName==="ul"):!r||!(r.type==="element"&&(r.tagName==="a"||r.tagName==="audio"||r.tagName==="del"||r.tagName==="ins"||r.tagName==="map"||r.tagName==="noscript"||r.tagName==="video"))}function rB(e,t,r){const n=ze(r,t);return!n||n.type==="element"&&n.tagName==="li"}function nB(e,t,r){const n=ze(r,t);return!!(n&&n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd"))}function iB(e,t,r){const n=ze(r,t);return!n||n.type==="element"&&(n.tagName==="dt"||n.tagName==="dd")}function gx(e,t,r){const n=ze(r,t);return!n||n.type==="element"&&(n.tagName==="rp"||n.tagName==="rt")}function aB(e,t,r){const n=ze(r,t);return!n||n.type==="element"&&n.tagName==="optgroup"}function oB(e,t,r){const n=ze(r,t);return!n||n.type==="element"&&(n.tagName==="option"||n.tagName==="optgroup")}function sB(e,t,r){const n=ze(r,t);return!!(n&&n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot"))}function lB(e,t,r){const n=ze(r,t);return!n||n.type==="element"&&(n.tagName==="tbody"||n.tagName==="tfoot")}function uB(e,t,r){return!ze(r,t)}function cB(e,t,r){const n=ze(r,t);return!n||n.type==="element"&&n.tagName==="tr"}function vx(e,t,r){const n=ze(r,t);return!n||n.type==="element"&&(n.tagName==="td"||n.tagName==="th")}const fB=ME({body:dB,colgroup:mB,head:pB,html:hB,tbody:yB});function hB(e){const t=ze(e,-1);return!t||t.type!=="comment"}function pB(e){const t=new Set;for(const n of e.children)if(n.type==="element"&&(n.tagName==="base"||n.tagName==="title")){if(t.has(n.tagName))return!1;t.add(n.tagName)}const r=e.children[0];return!r||r.type==="element"}function dB(e){const t=ze(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&i0(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function mB(e,t,r){const n=PE(r,t),i=ze(e,-1,!0);return r&&n&&n.type==="element"&&n.tagName==="colgroup"&&a0(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function yB(e,t,r){const n=PE(r,t),i=ze(e,-1);return r&&n&&n.type==="element"&&(n.tagName==="thead"||n.tagName==="tbody")&&a0(n,r.children.indexOf(n),r)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const Xl={name:[[`
|
|
2
40
|
\f\r &/=>`.split(""),`
|
|
3
41
|
\f\r "&'/=>\``.split("")],[`\0
|
|
4
42
|
\f\r "&'/<=>`.split(""),`\0
|
|
@@ -6,22 +44,117 @@
|
|
|
6
44
|
\f\r &>`.split(""),`\0
|
|
7
45
|
\f\r "&'<=>\``.split("")],[`\0
|
|
8
46
|
\f\r "&'<=>\``.split(""),`\0
|
|
9
|
-
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function _u(r,e,n,t){const a=t.schema,i=a.space==="svg"?!1:t.settings.omitOptionalTags;let o=a.space==="svg"?t.settings.closeEmptyElements:t.settings.voids.includes(r.tagName.toLowerCase());const l=[];let s;a.space==="html"&&r.tagName==="svg"&&(t.schema=Vn);const u=Su(t,r.properties),f=t.all(a.space==="html"&&r.tagName==="template"?r.content:r);return t.schema=a,f&&(o=!1),(u||!i||!pu(r,e,n))&&(l.push("<",r.tagName,u?" "+u:""),o&&(a.space==="svg"||t.settings.closeSelfClosing)&&(s=u.charAt(u.length-1),(!t.settings.tightSelfClosing||s==="/"||s&&s!=='"'&&s!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(f),!o&&(!i||!Xn(r,e,n))&&l.push("</"+r.tagName+">"),l.join("")}function Su(r,e){const n=[];let t=-1,a;if(e){for(a in e)if(e[a]!==null&&e[a]!==void 0){const i=xu(r,a,e[a]);i&&n.push(i)}}for(;++t<n.length;){const i=r.settings.tightAttributes?n[t].charAt(n[t].length-1):void 0;t!==n.length-1&&i!=='"'&&i!=="'"&&(n[t]+=" ")}return n.join("")}function xu(r,e,n){const t=Tl(r.schema,e),a=r.settings.allowParseErrors&&r.schema.space==="html"?0:1,i=r.settings.allowDangerousCharacters?0:1;let o=r.quote,l;if(t.overloadedBoolean&&(n===t.attribute||n==="")?n=!0:(t.boolean||t.overloadedBoolean)&&(typeof n!="string"||n===t.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const s=ne(t.attribute,Object.assign({},r.settings.characterReferences,{subset:Re.name[a][i]}));return n===!0||(n=Array.isArray(n)?(t.commaSeparated?Zs:Js)(n,{padLeft:!r.settings.tightCommaSeparatedLists}):String(n),r.settings.collapseEmptyAttributes&&!n)?s:(r.settings.preferUnquoted&&(l=ne(n,Object.assign({},r.settings.characterReferences,{attribute:!0,subset:Re.unquoted[a][i]}))),l!==n&&(r.settings.quoteSmart&&da(n,o)>da(n,r.alternative)&&(o=r.alternative),l=o+ne(n,Object.assign({},r.settings.characterReferences,{subset:(o==="'"?Re.single:Re.double)[a][i],attribute:!0}))+o),s+(l&&"="+l))}const Au=["<","&"];function Ll(r,e,n,t){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?r.value:ne(r.value,Object.assign({},t.settings.characterReferences,{subset:Au}))}function qu(r,e,n,t){return t.settings.allowDangerousHtml?r.value:Ll(r,e,n,t)}function Cu(r,e,n,t){return t.all(r)}const Ru=Os("type",{invalid:wu,unknown:Tu,handlers:{comment:Ys,doctype:Xs,element:_u,raw:qu,root:Cu,text:Ll}});function wu(r){throw new Error("Expected node, not `"+r+"`")}function Tu(r){const e=r;throw new Error("Cannot compile unknown node `"+e.type+"`")}const Ou={},Mu={},Pu=[];function Eu(r,e){const n=Ou,t=n.quote||'"',a=t==='"'?"'":'"';if(t!=='"'&&t!=="'")throw new Error("Invalid quote `"+t+"`, expected `'` or `\"`");return{one:Iu,all:Lu,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||Ss,characterReferences:n.characterReferences||Mu,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Vn:Ol,quote:t,alternative:a}.one(Array.isArray(r)?{type:"root",children:r}:r,void 0,void 0)}function Iu(r,e,n){return Ru(r,e,n,this)}function Lu(r){const e=[],n=r&&r.children||Pu;let t=-1;for(;++t<n.length;)e[t]=this.one(n[t],t,r);return e.join("")}const J={neoGrey:{200:"#EDEFEF",400:"#ADB5BD"},neoDigitalGreen:{600:"#40c048"}},H={arcAngle:180,maxSeats:200,useEnhanced:!0,chartConfig:{radius:220,seatSize:5,minSeatSize:4,maxSeatSize:18,spacing:1.1,innerRadiusRatio:.4,arcAngleFlexibility:5},colors:{emptySeats:"#f8f8f8",emptySeatsBorder:"#d8d8d8",seatBorder:"#fff"},animation:{transitionDuration:"0.2s",hoverOpacity:{active:"1",dimmed:"0.2",empty:"0.3"}},scaling:{enableScaling:!0,scaleThreshold:200}},ae={COMPLETED:J.neoDigitalGreen[600],NOT_APPLICABLE:"url(#greyHatchPattern)",NO_LST:"url(#noLstHatchPattern)",DATA_MISSING:"url(#dataMissingHatchPattern)"},pe="N/A",ge="No LST",me="Data Missing",va=/[#.]/g;function Du(r,e){const n=r||"",t={};let a=0,i,o;for(;a<n.length;){va.lastIndex=a;const l=va.exec(n),s=n.slice(a,l?l.index:n.length);s&&(i?i==="#"?t.id=s:Array.isArray(t.className)?t.className.push(s):t.className=[s]:o=s,a+=s.length),l&&(i=l[0],a++)}return{type:"element",tagName:o||e||"div",properties:t,children:[]}}function Dl(r,e,n){const t=n?ju(n):void 0;function a(i,o,...l){let s;if(i==null){s={type:"root",children:[]};const u=o;l.unshift(u)}else{s=Du(i,e);const u=s.tagName.toLowerCase(),f=t?t.get(u):void 0;if(s.tagName=f||u,Nu(o))l.unshift(o);else for(const[d,c]of Object.entries(o))ku(r,s.properties,d,c)}for(const u of l)Un(s.children,u);return s.type==="element"&&s.tagName==="template"&&(s.content={type:"root",children:s.children},s.children=[]),s}return a}function Nu(r){if(r===null||typeof r!="object"||Array.isArray(r))return!0;if(typeof r.type!="string")return!1;const e=r,n=Object.keys(r);for(const t of n){const a=e[t];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const o of i)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in r&&Array.isArray(r.children))}function ku(r,e,n,t){const a=Tl(r,n);let i;if(t!=null){if(typeof t=="number"){if(Number.isNaN(t))return;i=t}else typeof t=="boolean"?i=t:typeof t=="string"?a.spaceSeparated?i=pa(t):a.commaSeparated?i=ha(t):a.commaOrSpaceSeparated?i=pa(ha(t).join(" ")):i=ba(a,a.property,t):Array.isArray(t)?i=[...t]:i=a.property==="style"?Fu(t):String(t);if(Array.isArray(i)){const o=[];for(const l of i)o.push(ba(a,a.property,l));i=o}a.property==="className"&&Array.isArray(e.className)&&(i=e.className.concat(i)),e[a.property]=i}}function Un(r,e){if(e!=null)if(typeof e=="number"||typeof e=="string")r.push({type:"text",value:String(e)});else if(Array.isArray(e))for(const n of e)Un(r,n);else if(typeof e=="object"&&"type"in e)e.type==="root"?Un(r,e.children):r.push(e);else throw new Error("Expected node, nodes, or string, got `"+e+"`")}function ba(r,e,n){if(typeof n=="string"){if(r.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((r.boolean||r.overloadedBoolean)&&(n===""||ye(n)===ye(e)))return!0}return n}function Fu(r){const e=[];for(const[n,t]of Object.entries(r))e.push([n,t].join(": "));return e.join("; ")}function ju(r){const e=new Map;for(const n of r)e.set(n.toLowerCase(),n);return e}const Hu=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"];Dl(Ol,"div");const be=Dl(Vn,"g",Hu);var we=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function oe(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Ke,_a;function Nl(){if(_a)return Ke;_a=1;var r=typeof we=="object"&&we&&we.Object===Object&&we;return Ke=r,Ke}var $e,Sa;function Y(){if(Sa)return $e;Sa=1;var r=Nl(),e=typeof self=="object"&&self&&self.Object===Object&&self,n=r||e||Function("return this")();return $e=n,$e}var We,xa;function zu(){if(xa)return We;xa=1;var r=/\s/;function e(n){for(var t=n.length;t--&&r.test(n.charAt(t)););return t}return We=e,We}var Ve,Aa;function Bu(){if(Aa)return Ve;Aa=1;var r=zu(),e=/^\s+/;function n(t){return t&&t.slice(0,r(t)+1).replace(e,"")}return Ve=n,Ve}var Ye,qa;function _e(){if(qa)return Ye;qa=1;function r(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}return Ye=r,Ye}var Xe,Ca;function Se(){if(Ca)return Xe;Ca=1;var r=Y(),e=r.Symbol;return Xe=e,Xe}var Ze,Ra;function Gu(){if(Ra)return Ze;Ra=1;var r=Se(),e=Object.prototype,n=e.hasOwnProperty,t=e.toString,a=r?r.toStringTag:void 0;function i(o){var l=n.call(o,a),s=o[a];try{o[a]=void 0;var u=!0}catch{}var f=t.call(o);return u&&(l?o[a]=s:delete o[a]),f}return Ze=i,Ze}var Je,wa;function Uu(){if(wa)return Je;wa=1;var r=Object.prototype,e=r.toString;function n(t){return e.call(t)}return Je=n,Je}var Qe,Ta;function xe(){if(Ta)return Qe;Ta=1;var r=Se(),e=Gu(),n=Uu(),t="[object Null]",a="[object Undefined]",i=r?r.toStringTag:void 0;function o(l){return l==null?l===void 0?a:t:i&&i in Object(l)?e(l):n(l)}return Qe=o,Qe}var er,Oa;function Ae(){if(Oa)return er;Oa=1;function r(e){return e!=null&&typeof e=="object"}return er=r,er}var rr,Ma;function qe(){if(Ma)return rr;Ma=1;var r=xe(),e=Ae(),n="[object Symbol]";function t(a){return typeof a=="symbol"||e(a)&&r(a)==n}return rr=t,rr}var tr,Pa;function kl(){if(Pa)return tr;Pa=1;var r=Bu(),e=_e(),n=qe(),t=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,l=parseInt;function s(u){if(typeof u=="number")return u;if(n(u))return t;if(e(u)){var f=typeof u.valueOf=="function"?u.valueOf():u;u=e(f)?f+"":f}if(typeof u!="string")return u===0?u:+u;u=r(u);var d=i.test(u);return d||o.test(u)?l(u.slice(2),d?2:8):a.test(u)?t:+u}return tr=s,tr}var nr,Ea;function Fl(){if(Ea)return nr;Ea=1;var r=kl(),e=1/0,n=17976931348623157e292;function t(a){if(!a)return a===0?a:0;if(a=r(a),a===e||a===-e){var i=a<0?-1:1;return i*n}return a===a?a:0}return nr=t,nr}var ar,Ia;function jl(){if(Ia)return ar;Ia=1;var r=Fl();function e(n){var t=r(n),a=t%1;return t===t?a?t-a:t:0}return ar=e,ar}var ir,La;function Oe(){if(La)return ir;La=1;function r(e,n){for(var t=-1,a=e==null?0:e.length,i=Array(a);++t<a;)i[t]=n(e[t],t,e);return i}return ir=r,ir}var or,Da;function V(){if(Da)return or;Da=1;var r=Array.isArray;return or=r,or}var lr,Na;function Ku(){if(Na)return lr;Na=1;var r=Se(),e=Oe(),n=V(),t=qe(),a=r?r.prototype:void 0,i=a?a.toString:void 0;function o(l){if(typeof l=="string")return l;if(n(l))return e(l,o)+"";if(t(l))return i?i.call(l):"";var s=l+"";return s=="0"&&1/l==-1/0?"-0":s}return lr=o,lr}var sr,ka;function Hl(){if(ka)return sr;ka=1;var r=Ku();function e(n){return n==null?"":r(n)}return sr=e,sr}var ur,Fa;function $u(){if(Fa)return ur;Fa=1;var r=Y(),e=jl(),n=kl(),t=Hl(),a=r.isFinite,i=Math.min;function o(l){var s=Math[l];return function(u,f){if(u=n(u),f=f==null?0:i(e(f),292),f&&a(u)){var d=(t(u)+"e").split("e"),c=s(d[0]+"e"+(+d[1]+f));return d=(t(c)+"e").split("e"),+(d[0]+"e"+(+d[1]-f))}return s(u)}}return ur=o,ur}var cr,ja;function Wu(){if(ja)return cr;ja=1;var r=$u(),e=r("round");return cr=e,cr}var Vu=Wu();const Yu=oe(Vu);var fr,Ha;function zl(){if(Ha)return fr;Ha=1;function r(e,n){for(var t=-1,a=n.length,i=e.length;++t<a;)e[i+t]=n[t];return e}return fr=r,fr}var dr,za;function Xu(){if(za)return dr;za=1;var r=xe(),e=Ae(),n="[object Arguments]";function t(a){return e(a)&&r(a)==n}return dr=t,dr}var hr,Ba;function Zn(){if(Ba)return hr;Ba=1;var r=Xu(),e=Ae(),n=Object.prototype,t=n.hasOwnProperty,a=n.propertyIsEnumerable,i=r((function(){return arguments})())?r:function(o){return e(o)&&t.call(o,"callee")&&!a.call(o,"callee")};return hr=i,hr}var pr,Ga;function Zu(){if(Ga)return pr;Ga=1;var r=Se(),e=Zn(),n=V(),t=r?r.isConcatSpreadable:void 0;function a(i){return n(i)||e(i)||!!(t&&i&&i[t])}return pr=a,pr}var gr,Ua;function Bl(){if(Ua)return gr;Ua=1;var r=zl(),e=Zu();function n(t,a,i,o,l){var s=-1,u=t.length;for(i||(i=e),l||(l=[]);++s<u;){var f=t[s];a>0&&i(f)?a>1?n(f,a-1,i,o,l):r(l,f):o||(l[l.length]=f)}return l}return gr=n,gr}var mr,Ka;function Jn(){if(Ka)return mr;Ka=1;var r=V(),e=qe(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,t=/^\w*$/;function a(i,o){if(r(i))return!1;var l=typeof i;return l=="number"||l=="symbol"||l=="boolean"||i==null||e(i)?!0:t.test(i)||!n.test(i)||o!=null&&i in Object(o)}return mr=a,mr}var yr,$a;function Gl(){if($a)return yr;$a=1;var r=xe(),e=_e(),n="[object AsyncFunction]",t="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function o(l){if(!e(l))return!1;var s=r(l);return s==t||s==a||s==n||s==i}return yr=o,yr}var vr,Wa;function Ju(){if(Wa)return vr;Wa=1;var r=Y(),e=r["__core-js_shared__"];return vr=e,vr}var br,Va;function Qu(){if(Va)return br;Va=1;var r=Ju(),e=(function(){var t=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function n(t){return!!e&&e in t}return br=n,br}var _r,Ya;function Ul(){if(Ya)return _r;Ya=1;var r=Function.prototype,e=r.toString;function n(t){if(t!=null){try{return e.call(t)}catch{}try{return t+""}catch{}}return""}return _r=n,_r}var Sr,Xa;function ec(){if(Xa)return Sr;Xa=1;var r=Gl(),e=Qu(),n=_e(),t=Ul(),a=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,o=Function.prototype,l=Object.prototype,s=o.toString,u=l.hasOwnProperty,f=RegExp("^"+s.call(u).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(c){if(!n(c)||e(c))return!1;var h=r(c)?f:i;return h.test(t(c))}return Sr=d,Sr}var xr,Za;function rc(){if(Za)return xr;Za=1;function r(e,n){return e==null?void 0:e[n]}return xr=r,xr}var Ar,Ja;function ee(){if(Ja)return Ar;Ja=1;var r=ec(),e=rc();function n(t,a){var i=e(t,a);return r(i)?i:void 0}return Ar=n,Ar}var qr,Qa;function Me(){if(Qa)return qr;Qa=1;var r=ee(),e=r(Object,"create");return qr=e,qr}var Cr,ei;function tc(){if(ei)return Cr;ei=1;var r=Me();function e(){this.__data__=r?r(null):{},this.size=0}return Cr=e,Cr}var Rr,ri;function nc(){if(ri)return Rr;ri=1;function r(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}return Rr=r,Rr}var wr,ti;function ac(){if(ti)return wr;ti=1;var r=Me(),e="__lodash_hash_undefined__",n=Object.prototype,t=n.hasOwnProperty;function a(i){var o=this.__data__;if(r){var l=o[i];return l===e?void 0:l}return t.call(o,i)?o[i]:void 0}return wr=a,wr}var Tr,ni;function ic(){if(ni)return Tr;ni=1;var r=Me(),e=Object.prototype,n=e.hasOwnProperty;function t(a){var i=this.__data__;return r?i[a]!==void 0:n.call(i,a)}return Tr=t,Tr}var Or,ai;function oc(){if(ai)return Or;ai=1;var r=Me(),e="__lodash_hash_undefined__";function n(t,a){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=r&&a===void 0?e:a,this}return Or=n,Or}var Mr,ii;function lc(){if(ii)return Mr;ii=1;var r=tc(),e=nc(),n=ac(),t=ic(),a=oc();function i(o){var l=-1,s=o==null?0:o.length;for(this.clear();++l<s;){var u=o[l];this.set(u[0],u[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=n,i.prototype.has=t,i.prototype.set=a,Mr=i,Mr}var Pr,oi;function sc(){if(oi)return Pr;oi=1;function r(){this.__data__=[],this.size=0}return Pr=r,Pr}var Er,li;function Qn(){if(li)return Er;li=1;function r(e,n){return e===n||e!==e&&n!==n}return Er=r,Er}var Ir,si;function Pe(){if(si)return Ir;si=1;var r=Qn();function e(n,t){for(var a=n.length;a--;)if(r(n[a][0],t))return a;return-1}return Ir=e,Ir}var Lr,ui;function uc(){if(ui)return Lr;ui=1;var r=Pe(),e=Array.prototype,n=e.splice;function t(a){var i=this.__data__,o=r(i,a);if(o<0)return!1;var l=i.length-1;return o==l?i.pop():n.call(i,o,1),--this.size,!0}return Lr=t,Lr}var Dr,ci;function cc(){if(ci)return Dr;ci=1;var r=Pe();function e(n){var t=this.__data__,a=r(t,n);return a<0?void 0:t[a][1]}return Dr=e,Dr}var Nr,fi;function fc(){if(fi)return Nr;fi=1;var r=Pe();function e(n){return r(this.__data__,n)>-1}return Nr=e,Nr}var kr,di;function dc(){if(di)return kr;di=1;var r=Pe();function e(n,t){var a=this.__data__,i=r(a,n);return i<0?(++this.size,a.push([n,t])):a[i][1]=t,this}return kr=e,kr}var Fr,hi;function Ee(){if(hi)return Fr;hi=1;var r=sc(),e=uc(),n=cc(),t=fc(),a=dc();function i(o){var l=-1,s=o==null?0:o.length;for(this.clear();++l<s;){var u=o[l];this.set(u[0],u[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=n,i.prototype.has=t,i.prototype.set=a,Fr=i,Fr}var jr,pi;function ea(){if(pi)return jr;pi=1;var r=ee(),e=Y(),n=r(e,"Map");return jr=n,jr}var Hr,gi;function hc(){if(gi)return Hr;gi=1;var r=lc(),e=Ee(),n=ea();function t(){this.size=0,this.__data__={hash:new r,map:new(n||e),string:new r}}return Hr=t,Hr}var zr,mi;function pc(){if(mi)return zr;mi=1;function r(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}return zr=r,zr}var Br,yi;function Ie(){if(yi)return Br;yi=1;var r=pc();function e(n,t){var a=n.__data__;return r(t)?a[typeof t=="string"?"string":"hash"]:a.map}return Br=e,Br}var Gr,vi;function gc(){if(vi)return Gr;vi=1;var r=Ie();function e(n){var t=r(this,n).delete(n);return this.size-=t?1:0,t}return Gr=e,Gr}var Ur,bi;function mc(){if(bi)return Ur;bi=1;var r=Ie();function e(n){return r(this,n).get(n)}return Ur=e,Ur}var Kr,_i;function yc(){if(_i)return Kr;_i=1;var r=Ie();function e(n){return r(this,n).has(n)}return Kr=e,Kr}var $r,Si;function vc(){if(Si)return $r;Si=1;var r=Ie();function e(n,t){var a=r(this,n),i=a.size;return a.set(n,t),this.size+=a.size==i?0:1,this}return $r=e,$r}var Wr,xi;function ra(){if(xi)return Wr;xi=1;var r=hc(),e=gc(),n=mc(),t=yc(),a=vc();function i(o){var l=-1,s=o==null?0:o.length;for(this.clear();++l<s;){var u=o[l];this.set(u[0],u[1])}}return i.prototype.clear=r,i.prototype.delete=e,i.prototype.get=n,i.prototype.has=t,i.prototype.set=a,Wr=i,Wr}var Vr,Ai;function bc(){if(Ai)return Vr;Ai=1;var r=ra(),e="Expected a function";function n(t,a){if(typeof t!="function"||a!=null&&typeof a!="function")throw new TypeError(e);var i=function(){var o=arguments,l=a?a.apply(this,o):o[0],s=i.cache;if(s.has(l))return s.get(l);var u=t.apply(this,o);return i.cache=s.set(l,u)||s,u};return i.cache=new(n.Cache||r),i}return n.Cache=r,Vr=n,Vr}var Yr,qi;function _c(){if(qi)return Yr;qi=1;var r=bc(),e=500;function n(t){var a=r(t,function(o){return i.size===e&&i.clear(),o}),i=a.cache;return a}return Yr=n,Yr}var Xr,Ci;function Sc(){if(Ci)return Xr;Ci=1;var r=_c(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,t=r(function(a){var i=[];return a.charCodeAt(0)===46&&i.push(""),a.replace(e,function(o,l,s,u){i.push(s?u.replace(n,"$1"):l||o)}),i});return Xr=t,Xr}var Zr,Ri;function Kl(){if(Ri)return Zr;Ri=1;var r=V(),e=Jn(),n=Sc(),t=Hl();function a(i,o){return r(i)?i:e(i,o)?[i]:n(t(i))}return Zr=a,Zr}var Jr,wi;function Le(){if(wi)return Jr;wi=1;var r=qe();function e(n){if(typeof n=="string"||r(n))return n;var t=n+"";return t=="0"&&1/n==-1/0?"-0":t}return Jr=e,Jr}var Qr,Ti;function ta(){if(Ti)return Qr;Ti=1;var r=Kl(),e=Le();function n(t,a){a=r(a,t);for(var i=0,o=a.length;t!=null&&i<o;)t=t[e(a[i++])];return i&&i==o?t:void 0}return Qr=n,Qr}var et,Oi;function xc(){if(Oi)return et;Oi=1;var r=Ee();function e(){this.__data__=new r,this.size=0}return et=e,et}var rt,Mi;function Ac(){if(Mi)return rt;Mi=1;function r(e){var n=this.__data__,t=n.delete(e);return this.size=n.size,t}return rt=r,rt}var tt,Pi;function qc(){if(Pi)return tt;Pi=1;function r(e){return this.__data__.get(e)}return tt=r,tt}var nt,Ei;function Cc(){if(Ei)return nt;Ei=1;function r(e){return this.__data__.has(e)}return nt=r,nt}var at,Ii;function Rc(){if(Ii)return at;Ii=1;var r=Ee(),e=ea(),n=ra(),t=200;function a(i,o){var l=this.__data__;if(l instanceof r){var s=l.__data__;if(!e||s.length<t-1)return s.push([i,o]),this.size=++l.size,this;l=this.__data__=new n(s)}return l.set(i,o),this.size=l.size,this}return at=a,at}var it,Li;function $l(){if(Li)return it;Li=1;var r=Ee(),e=xc(),n=Ac(),t=qc(),a=Cc(),i=Rc();function o(l){var s=this.__data__=new r(l);this.size=s.size}return o.prototype.clear=e,o.prototype.delete=n,o.prototype.get=t,o.prototype.has=a,o.prototype.set=i,it=o,it}var ot,Di;function wc(){if(Di)return ot;Di=1;var r="__lodash_hash_undefined__";function e(n){return this.__data__.set(n,r),this}return ot=e,ot}var lt,Ni;function Tc(){if(Ni)return lt;Ni=1;function r(e){return this.__data__.has(e)}return lt=r,lt}var st,ki;function Oc(){if(ki)return st;ki=1;var r=ra(),e=wc(),n=Tc();function t(a){var i=-1,o=a==null?0:a.length;for(this.__data__=new r;++i<o;)this.add(a[i])}return t.prototype.add=t.prototype.push=e,t.prototype.has=n,st=t,st}var ut,Fi;function Mc(){if(Fi)return ut;Fi=1;function r(e,n){for(var t=-1,a=e==null?0:e.length;++t<a;)if(n(e[t],t,e))return!0;return!1}return ut=r,ut}var ct,ji;function Pc(){if(ji)return ct;ji=1;function r(e,n){return e.has(n)}return ct=r,ct}var ft,Hi;function Wl(){if(Hi)return ft;Hi=1;var r=Oc(),e=Mc(),n=Pc(),t=1,a=2;function i(o,l,s,u,f,d){var c=s&t,h=o.length,g=l.length;if(h!=g&&!(c&&g>h))return!1;var v=d.get(o),b=d.get(l);if(v&&b)return v==l&&b==o;var y=-1,_=!0,m=s&a?new r:void 0;for(d.set(o,l),d.set(l,o);++y<h;){var S=o[y],T=l[y];if(u)var A=c?u(T,S,y,l,o,d):u(S,T,y,o,l,d);if(A!==void 0){if(A)continue;_=!1;break}if(m){if(!e(l,function(q,P){if(!n(m,P)&&(S===q||f(S,q,s,u,d)))return m.push(P)})){_=!1;break}}else if(!(S===T||f(S,T,s,u,d))){_=!1;break}}return d.delete(o),d.delete(l),_}return ft=i,ft}var dt,zi;function Ec(){if(zi)return dt;zi=1;var r=Y(),e=r.Uint8Array;return dt=e,dt}var ht,Bi;function Ic(){if(Bi)return ht;Bi=1;function r(e){var n=-1,t=Array(e.size);return e.forEach(function(a,i){t[++n]=[i,a]}),t}return ht=r,ht}var pt,Gi;function Lc(){if(Gi)return pt;Gi=1;function r(e){var n=-1,t=Array(e.size);return e.forEach(function(a){t[++n]=a}),t}return pt=r,pt}var gt,Ui;function Dc(){if(Ui)return gt;Ui=1;var r=Se(),e=Ec(),n=Qn(),t=Wl(),a=Ic(),i=Lc(),o=1,l=2,s="[object Boolean]",u="[object Date]",f="[object Error]",d="[object Map]",c="[object Number]",h="[object RegExp]",g="[object Set]",v="[object String]",b="[object Symbol]",y="[object ArrayBuffer]",_="[object DataView]",m=r?r.prototype:void 0,S=m?m.valueOf:void 0;function T(A,q,P,N,j,C,K){switch(P){case _:if(A.byteLength!=q.byteLength||A.byteOffset!=q.byteOffset)return!1;A=A.buffer,q=q.buffer;case y:return!(A.byteLength!=q.byteLength||!C(new e(A),new e(q)));case s:case u:case c:return n(+A,+q);case f:return A.name==q.name&&A.message==q.message;case h:case v:return A==q+"";case d:var z=a;case g:var Z=N&o;if(z||(z=i),A.size!=q.size&&!Z)return!1;var re=K.get(A);if(re)return re==q;N|=l,K.set(A,q);var Fe=t(z(A),z(q),N,j,C,K);return K.delete(A),Fe;case b:if(S)return S.call(A)==S.call(q)}return!1}return gt=T,gt}var mt,Ki;function Nc(){if(Ki)return mt;Ki=1;var r=zl(),e=V();function n(t,a,i){var o=a(t);return e(t)?o:r(o,i(t))}return mt=n,mt}var yt,$i;function kc(){if($i)return yt;$i=1;function r(e,n){for(var t=-1,a=e==null?0:e.length,i=0,o=[];++t<a;){var l=e[t];n(l,t,e)&&(o[i++]=l)}return o}return yt=r,yt}var vt,Wi;function Fc(){if(Wi)return vt;Wi=1;function r(){return[]}return vt=r,vt}var bt,Vi;function jc(){if(Vi)return bt;Vi=1;var r=kc(),e=Fc(),n=Object.prototype,t=n.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(o){return o==null?[]:(o=Object(o),r(a(o),function(l){return t.call(o,l)}))}:e;return bt=i,bt}var _t,Yi;function Hc(){if(Yi)return _t;Yi=1;function r(e,n){for(var t=-1,a=Array(e);++t<e;)a[t]=n(t);return a}return _t=r,_t}var de={exports:{}},St,Xi;function zc(){if(Xi)return St;Xi=1;function r(){return!1}return St=r,St}de.exports;var Zi;function Vl(){return Zi||(Zi=1,(function(r,e){var n=Y(),t=zc(),a=e&&!e.nodeType&&e,i=a&&!0&&r&&!r.nodeType&&r,o=i&&i.exports===a,l=o?n.Buffer:void 0,s=l?l.isBuffer:void 0,u=s||t;r.exports=u})(de,de.exports)),de.exports}var xt,Ji;function na(){if(Ji)return xt;Ji=1;var r=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function n(t,a){var i=typeof t;return a=a??r,!!a&&(i=="number"||i!="symbol"&&e.test(t))&&t>-1&&t%1==0&&t<a}return xt=n,xt}var At,Qi;function aa(){if(Qi)return At;Qi=1;var r=9007199254740991;function e(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=r}return At=e,At}var qt,eo;function Bc(){if(eo)return qt;eo=1;var r=xe(),e=aa(),n=Ae(),t="[object Arguments]",a="[object Array]",i="[object Boolean]",o="[object Date]",l="[object Error]",s="[object Function]",u="[object Map]",f="[object Number]",d="[object Object]",c="[object RegExp]",h="[object Set]",g="[object String]",v="[object WeakMap]",b="[object ArrayBuffer]",y="[object DataView]",_="[object Float32Array]",m="[object Float64Array]",S="[object Int8Array]",T="[object Int16Array]",A="[object Int32Array]",q="[object Uint8Array]",P="[object Uint8ClampedArray]",N="[object Uint16Array]",j="[object Uint32Array]",C={};C[_]=C[m]=C[S]=C[T]=C[A]=C[q]=C[P]=C[N]=C[j]=!0,C[t]=C[a]=C[b]=C[i]=C[y]=C[o]=C[l]=C[s]=C[u]=C[f]=C[d]=C[c]=C[h]=C[g]=C[v]=!1;function K(z){return n(z)&&e(z.length)&&!!C[r(z)]}return qt=K,qt}var Ct,ro;function Yl(){if(ro)return Ct;ro=1;function r(e){return function(n){return e(n)}}return Ct=r,Ct}var he={exports:{}};he.exports;var to;function Gc(){return to||(to=1,(function(r,e){var n=Nl(),t=e&&!e.nodeType&&e,a=t&&!0&&r&&!r.nodeType&&r,i=a&&a.exports===t,o=i&&n.process,l=(function(){try{var s=a&&a.require&&a.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}})();r.exports=l})(he,he.exports)),he.exports}var Rt,no;function Xl(){if(no)return Rt;no=1;var r=Bc(),e=Yl(),n=Gc(),t=n&&n.isTypedArray,a=t?e(t):r;return Rt=a,Rt}var wt,ao;function Uc(){if(ao)return wt;ao=1;var r=Hc(),e=Zn(),n=V(),t=Vl(),a=na(),i=Xl(),o=Object.prototype,l=o.hasOwnProperty;function s(u,f){var d=n(u),c=!d&&e(u),h=!d&&!c&&t(u),g=!d&&!c&&!h&&i(u),v=d||c||h||g,b=v?r(u.length,String):[],y=b.length;for(var _ in u)(f||l.call(u,_))&&!(v&&(_=="length"||h&&(_=="offset"||_=="parent")||g&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||a(_,y)))&&b.push(_);return b}return wt=s,wt}var Tt,io;function Kc(){if(io)return Tt;io=1;var r=Object.prototype;function e(n){var t=n&&n.constructor,a=typeof t=="function"&&t.prototype||r;return n===a}return Tt=e,Tt}var Ot,oo;function $c(){if(oo)return Ot;oo=1;function r(e,n){return function(t){return e(n(t))}}return Ot=r,Ot}var Mt,lo;function Wc(){if(lo)return Mt;lo=1;var r=$c(),e=r(Object.keys,Object);return Mt=e,Mt}var Pt,so;function Vc(){if(so)return Pt;so=1;var r=Kc(),e=Wc(),n=Object.prototype,t=n.hasOwnProperty;function a(i){if(!r(i))return e(i);var o=[];for(var l in Object(i))t.call(i,l)&&l!="constructor"&&o.push(l);return o}return Pt=a,Pt}var Et,uo;function De(){if(uo)return Et;uo=1;var r=Gl(),e=aa();function n(t){return t!=null&&e(t.length)&&!r(t)}return Et=n,Et}var It,co;function Ne(){if(co)return It;co=1;var r=Uc(),e=Vc(),n=De();function t(a){return n(a)?r(a):e(a)}return It=t,It}var Lt,fo;function Yc(){if(fo)return Lt;fo=1;var r=Nc(),e=jc(),n=Ne();function t(a){return r(a,n,e)}return Lt=t,Lt}var Dt,ho;function Xc(){if(ho)return Dt;ho=1;var r=Yc(),e=1,n=Object.prototype,t=n.hasOwnProperty;function a(i,o,l,s,u,f){var d=l&e,c=r(i),h=c.length,g=r(o),v=g.length;if(h!=v&&!d)return!1;for(var b=h;b--;){var y=c[b];if(!(d?y in o:t.call(o,y)))return!1}var _=f.get(i),m=f.get(o);if(_&&m)return _==o&&m==i;var S=!0;f.set(i,o),f.set(o,i);for(var T=d;++b<h;){y=c[b];var A=i[y],q=o[y];if(s)var P=d?s(q,A,y,o,i,f):s(A,q,y,i,o,f);if(!(P===void 0?A===q||u(A,q,l,s,f):P)){S=!1;break}T||(T=y=="constructor")}if(S&&!T){var N=i.constructor,j=o.constructor;N!=j&&"constructor"in i&&"constructor"in o&&!(typeof N=="function"&&N instanceof N&&typeof j=="function"&&j instanceof j)&&(S=!1)}return f.delete(i),f.delete(o),S}return Dt=a,Dt}var Nt,po;function Zc(){if(po)return Nt;po=1;var r=ee(),e=Y(),n=r(e,"DataView");return Nt=n,Nt}var kt,go;function Jc(){if(go)return kt;go=1;var r=ee(),e=Y(),n=r(e,"Promise");return kt=n,kt}var Ft,mo;function Qc(){if(mo)return Ft;mo=1;var r=ee(),e=Y(),n=r(e,"Set");return Ft=n,Ft}var jt,yo;function ef(){if(yo)return jt;yo=1;var r=ee(),e=Y(),n=r(e,"WeakMap");return jt=n,jt}var Ht,vo;function rf(){if(vo)return Ht;vo=1;var r=Zc(),e=ea(),n=Jc(),t=Qc(),a=ef(),i=xe(),o=Ul(),l="[object Map]",s="[object Object]",u="[object Promise]",f="[object Set]",d="[object WeakMap]",c="[object DataView]",h=o(r),g=o(e),v=o(n),b=o(t),y=o(a),_=i;return(r&&_(new r(new ArrayBuffer(1)))!=c||e&&_(new e)!=l||n&&_(n.resolve())!=u||t&&_(new t)!=f||a&&_(new a)!=d)&&(_=function(m){var S=i(m),T=S==s?m.constructor:void 0,A=T?o(T):"";if(A)switch(A){case h:return c;case g:return l;case v:return u;case b:return f;case y:return d}return S}),Ht=_,Ht}var zt,bo;function tf(){if(bo)return zt;bo=1;var r=$l(),e=Wl(),n=Dc(),t=Xc(),a=rf(),i=V(),o=Vl(),l=Xl(),s=1,u="[object Arguments]",f="[object Array]",d="[object Object]",c=Object.prototype,h=c.hasOwnProperty;function g(v,b,y,_,m,S){var T=i(v),A=i(b),q=T?f:a(v),P=A?f:a(b);q=q==u?d:q,P=P==u?d:P;var N=q==d,j=P==d,C=q==P;if(C&&o(v)){if(!o(b))return!1;T=!0,N=!1}if(C&&!N)return S||(S=new r),T||l(v)?e(v,b,y,_,m,S):n(v,b,q,y,_,m,S);if(!(y&s)){var K=N&&h.call(v,"__wrapped__"),z=j&&h.call(b,"__wrapped__");if(K||z){var Z=K?v.value():v,re=z?b.value():b;return S||(S=new r),m(Z,re,y,_,S)}}return C?(S||(S=new r),t(v,b,y,_,m,S)):!1}return zt=g,zt}var Bt,_o;function Zl(){if(_o)return Bt;_o=1;var r=tf(),e=Ae();function n(t,a,i,o,l){return t===a?!0:t==null||a==null||!e(t)&&!e(a)?t!==t&&a!==a:r(t,a,i,o,n,l)}return Bt=n,Bt}var Gt,So;function nf(){if(So)return Gt;So=1;var r=$l(),e=Zl(),n=1,t=2;function a(i,o,l,s){var u=l.length,f=u,d=!s;if(i==null)return!f;for(i=Object(i);u--;){var c=l[u];if(d&&c[2]?c[1]!==i[c[0]]:!(c[0]in i))return!1}for(;++u<f;){c=l[u];var h=c[0],g=i[h],v=c[1];if(d&&c[2]){if(g===void 0&&!(h in i))return!1}else{var b=new r;if(s)var y=s(g,v,h,i,o,b);if(!(y===void 0?e(v,g,n|t,s,b):y))return!1}}return!0}return Gt=a,Gt}var Ut,xo;function Jl(){if(xo)return Ut;xo=1;var r=_e();function e(n){return n===n&&!r(n)}return Ut=e,Ut}var Kt,Ao;function af(){if(Ao)return Kt;Ao=1;var r=Jl(),e=Ne();function n(t){for(var a=e(t),i=a.length;i--;){var o=a[i],l=t[o];a[i]=[o,l,r(l)]}return a}return Kt=n,Kt}var $t,qo;function Ql(){if(qo)return $t;qo=1;function r(e,n){return function(t){return t==null?!1:t[e]===n&&(n!==void 0||e in Object(t))}}return $t=r,$t}var Wt,Co;function of(){if(Co)return Wt;Co=1;var r=nf(),e=af(),n=Ql();function t(a){var i=e(a);return i.length==1&&i[0][2]?n(i[0][0],i[0][1]):function(o){return o===a||r(o,a,i)}}return Wt=t,Wt}var Vt,Ro;function lf(){if(Ro)return Vt;Ro=1;var r=ta();function e(n,t,a){var i=n==null?void 0:r(n,t);return i===void 0?a:i}return Vt=e,Vt}var Yt,wo;function sf(){if(wo)return Yt;wo=1;function r(e,n){return e!=null&&n in Object(e)}return Yt=r,Yt}var Xt,To;function uf(){if(To)return Xt;To=1;var r=Kl(),e=Zn(),n=V(),t=na(),a=aa(),i=Le();function o(l,s,u){s=r(s,l);for(var f=-1,d=s.length,c=!1;++f<d;){var h=i(s[f]);if(!(c=l!=null&&u(l,h)))break;l=l[h]}return c||++f!=d?c:(d=l==null?0:l.length,!!d&&a(d)&&t(h,d)&&(n(l)||e(l)))}return Xt=o,Xt}var Zt,Oo;function cf(){if(Oo)return Zt;Oo=1;var r=sf(),e=uf();function n(t,a){return t!=null&&e(t,a,r)}return Zt=n,Zt}var Jt,Mo;function ff(){if(Mo)return Jt;Mo=1;var r=Zl(),e=lf(),n=cf(),t=Jn(),a=Jl(),i=Ql(),o=Le(),l=1,s=2;function u(f,d){return t(f)&&a(d)?i(o(f),d):function(c){var h=e(c,f);return h===void 0&&h===d?n(c,f):r(d,h,l|s)}}return Jt=u,Jt}var Qt,Po;function ke(){if(Po)return Qt;Po=1;function r(e){return e}return Qt=r,Qt}var en,Eo;function df(){if(Eo)return en;Eo=1;function r(e){return function(n){return n==null?void 0:n[e]}}return en=r,en}var rn,Io;function hf(){if(Io)return rn;Io=1;var r=ta();function e(n){return function(t){return r(t,n)}}return rn=e,rn}var tn,Lo;function pf(){if(Lo)return tn;Lo=1;var r=df(),e=hf(),n=Jn(),t=Le();function a(i){return n(i)?r(t(i)):e(i)}return tn=a,tn}var nn,Do;function es(){if(Do)return nn;Do=1;var r=of(),e=ff(),n=ke(),t=V(),a=pf();function i(o){return typeof o=="function"?o:o==null?n:typeof o=="object"?t(o)?e(o[0],o[1]):r(o):a(o)}return nn=i,nn}var an,No;function gf(){if(No)return an;No=1;function r(e){return function(n,t,a){for(var i=-1,o=Object(n),l=a(n),s=l.length;s--;){var u=l[e?s:++i];if(t(o[u],u,o)===!1)break}return n}}return an=r,an}var on,ko;function mf(){if(ko)return on;ko=1;var r=gf(),e=r();return on=e,on}var ln,Fo;function yf(){if(Fo)return ln;Fo=1;var r=mf(),e=Ne();function n(t,a){return t&&r(t,a,e)}return ln=n,ln}var sn,jo;function vf(){if(jo)return sn;jo=1;var r=De();function e(n,t){return function(a,i){if(a==null)return a;if(!r(a))return n(a,i);for(var o=a.length,l=t?o:-1,s=Object(a);(t?l--:++l<o)&&i(s[l],l,s)!==!1;);return a}}return sn=e,sn}var un,Ho;function bf(){if(Ho)return un;Ho=1;var r=yf(),e=vf(),n=e(r);return un=n,un}var cn,zo;function rs(){if(zo)return cn;zo=1;var r=bf(),e=De();function n(t,a){var i=-1,o=e(t)?Array(t.length):[];return r(t,function(l,s,u){o[++i]=a(l,s,u)}),o}return cn=n,cn}var fn,Bo;function _f(){if(Bo)return fn;Bo=1;function r(e,n){var t=e.length;for(e.sort(n);t--;)e[t]=e[t].value;return e}return fn=r,fn}var dn,Go;function Sf(){if(Go)return dn;Go=1;var r=qe();function e(n,t){if(n!==t){var a=n!==void 0,i=n===null,o=n===n,l=r(n),s=t!==void 0,u=t===null,f=t===t,d=r(t);if(!u&&!d&&!l&&n>t||l&&s&&f&&!u&&!d||i&&s&&f||!a&&f||!o)return 1;if(!i&&!l&&!d&&n<t||d&&a&&o&&!i&&!l||u&&a&&o||!s&&o||!f)return-1}return 0}return dn=e,dn}var hn,Uo;function xf(){if(Uo)return hn;Uo=1;var r=Sf();function e(n,t,a){for(var i=-1,o=n.criteria,l=t.criteria,s=o.length,u=a.length;++i<s;){var f=r(o[i],l[i]);if(f){if(i>=u)return f;var d=a[i];return f*(d=="desc"?-1:1)}}return n.index-t.index}return hn=e,hn}var pn,Ko;function Af(){if(Ko)return pn;Ko=1;var r=Oe(),e=ta(),n=es(),t=rs(),a=_f(),i=Yl(),o=xf(),l=ke(),s=V();function u(f,d,c){d.length?d=r(d,function(v){return s(v)?function(b){return e(b,v.length===1?v[0]:v)}:v}):d=[l];var h=-1;d=r(d,i(n));var g=t(f,function(v,b,y){var _=r(d,function(m){return m(v)});return{criteria:_,index:++h,value:v}});return a(g,function(v,b){return o(v,b,c)})}return pn=u,pn}var gn,$o;function qf(){if($o)return gn;$o=1;function r(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}return gn=r,gn}var mn,Wo;function Cf(){if(Wo)return mn;Wo=1;var r=qf(),e=Math.max;function n(t,a,i){return a=e(a===void 0?t.length-1:a,0),function(){for(var o=arguments,l=-1,s=e(o.length-a,0),u=Array(s);++l<s;)u[l]=o[a+l];l=-1;for(var f=Array(a+1);++l<a;)f[l]=o[l];return f[a]=i(u),r(t,this,f)}}return mn=n,mn}var yn,Vo;function Rf(){if(Vo)return yn;Vo=1;function r(e){return function(){return e}}return yn=r,yn}var vn,Yo;function wf(){if(Yo)return vn;Yo=1;var r=ee(),e=(function(){try{var n=r(Object,"defineProperty");return n({},"",{}),n}catch{}})();return vn=e,vn}var bn,Xo;function Tf(){if(Xo)return bn;Xo=1;var r=Rf(),e=wf(),n=ke(),t=e?function(a,i){return e(a,"toString",{configurable:!0,enumerable:!1,value:r(i),writable:!0})}:n;return bn=t,bn}var _n,Zo;function Of(){if(Zo)return _n;Zo=1;var r=800,e=16,n=Date.now;function t(a){var i=0,o=0;return function(){var l=n(),s=e-(l-o);if(o=l,s>0){if(++i>=r)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return _n=t,_n}var Sn,Jo;function Mf(){if(Jo)return Sn;Jo=1;var r=Tf(),e=Of(),n=e(r);return Sn=n,Sn}var xn,Qo;function Pf(){if(Qo)return xn;Qo=1;var r=ke(),e=Cf(),n=Mf();function t(a,i){return n(e(a,i,r),a+"")}return xn=t,xn}var An,el;function ia(){if(el)return An;el=1;var r=Qn(),e=De(),n=na(),t=_e();function a(i,o,l){if(!t(l))return!1;var s=typeof o;return(s=="number"?e(l)&&n(o,l.length):s=="string"&&o in l)?r(l[o],i):!1}return An=a,An}var qn,rl;function Ef(){if(rl)return qn;rl=1;var r=Bl(),e=Af(),n=Pf(),t=ia(),a=n(function(i,o){if(i==null)return[];var l=o.length;return l>1&&t(i,o[0],o[1])?o=[]:l>2&&t(o[0],o[1],o[2])&&(o=[o[0]]),e(i,r(o,1),[])});return qn=a,qn}var If=Ef();const Lf=oe(If);var Cn,tl;function Df(){if(tl)return Cn;tl=1;function r(e){for(var n=-1,t=e==null?0:e.length,a={};++n<t;){var i=e[n];a[i[0]]=i[1]}return a}return Cn=r,Cn}var Nf=Df();const nl=oe(Nf);var Rn,al;function kf(){if(al)return Rn;al=1;var r=Math.ceil,e=Math.max;function n(t,a,i,o){for(var l=-1,s=e(r((a-t)/(i||1)),0),u=Array(s);s--;)u[o?s:++l]=t,t+=i;return u}return Rn=n,Rn}var wn,il;function Ff(){if(il)return wn;il=1;var r=kf(),e=ia(),n=Fl();function t(a){return function(i,o,l){return l&&typeof l!="number"&&e(i,o,l)&&(o=l=void 0),i=n(i),o===void 0?(o=i,i=0):o=n(o),l=l===void 0?i<o?1:-1:n(l),r(i,o,l,a)}}return wn=t,wn}var Tn,ol;function jf(){if(ol)return Tn;ol=1;var r=Ff(),e=r();return Tn=e,Tn}var Hf=jf();const zf=oe(Hf);var On,ll;function Bf(){if(ll)return On;ll=1;var r=Oe(),e=es(),n=rs(),t=V();function a(i,o){var l=t(i)?r:n;return l(i,e(o,3))}return On=a,On}var Mn,sl;function Gf(){if(sl)return Mn;sl=1;var r=Bl(),e=Bf();function n(t,a){return r(e(t,a),1)}return Mn=n,Mn}var Uf=Gf();const Kf=oe(Uf);var Pn,ul;function ts(){if(ul)return Pn;ul=1;function r(e,n,t){return e===e&&(t!==void 0&&(e=e<=t?e:t),n!==void 0&&(e=e>=n?e:n)),e}return Pn=r,Pn}var En,cl;function $f(){if(cl)return En;cl=1;function r(e,n){var t=-1,a=e.length;for(n||(n=Array(a));++t<a;)n[t]=e[t];return n}return En=r,En}var In,fl;function Wf(){if(fl)return In;fl=1;var r=Math.floor,e=Math.random;function n(t,a){return t+r(e()*(a-t+1))}return In=n,In}var Ln,dl;function ns(){if(dl)return Ln;dl=1;var r=Wf();function e(n,t){var a=-1,i=n.length,o=i-1;for(t=t===void 0?i:t;++a<t;){var l=r(a,o),s=n[l];n[l]=n[a],n[a]=s}return n.length=t,n}return Ln=e,Ln}var Dn,hl;function Vf(){if(hl)return Dn;hl=1;var r=ts(),e=$f(),n=ns();function t(a,i){return n(e(a),r(i,0,a.length))}return Dn=t,Dn}var Nn,pl;function Yf(){if(pl)return Nn;pl=1;var r=Oe();function e(n,t){return r(t,function(a){return n[a]})}return Nn=e,Nn}var kn,gl;function Xf(){if(gl)return kn;gl=1;var r=Yf(),e=Ne();function n(t){return t==null?[]:r(t,e(t))}return kn=n,kn}var Fn,ml;function Zf(){if(ml)return Fn;ml=1;var r=ts(),e=ns(),n=Xf();function t(a,i){var o=n(a);return e(o,r(i,0,o.length))}return Fn=t,Fn}var jn,yl;function Jf(){if(yl)return jn;yl=1;var r=Vf(),e=Zf(),n=V(),t=ia(),a=jl();function i(o,l,s){(s?t(o,l,s):l===void 0)?l=1:l=a(l);var u=n(o)?r:e;return u(o,l)}return jn=i,jn}var Qf=Jf();const ed=oe(Qf),rd=r=>Yu(r,14),vl=r=>Object.values(r).reduce((e,n)=>e+n,0),td=(r,e,n={})=>{const t=Object.assign({draw:!1},n);if(Object.values(r).length<1)throw new Error("vote distribution must contain at least one party");if(!Object.values(r).every(g=>typeof g=="number"&&g>=0))throw new Error("party vote counts must be non-negative integers");if(!Number.isInteger(e)||e<=0)throw new Error("seats must be a positive integer");if(typeof t.draw!="boolean")throw new Error("opt.draw must be a boolean");const a=vl(r),i=nl(Object.entries(r).map(([g,v])=>{const b=Math.max(e-Object.keys(r).length,0),y=Math.round(b*v/a);return[g,y]})),o=nl(Object.entries(r).map(([g,v])=>{const b=e+Object.keys(r).length,y=Math.min(Math.round(b*v/a),e);return[g,y]})),l=Kf(Object.entries(r).map(([g,v])=>{const b=i[g],y=o[g];return zf(b,y).map(_=>{const m=rd(v/(_+.5));return{party:g,quotient:m}})})),s=vl(i),u=e-s,f=Lf(l,({quotient:g})=>-g),d=f[u-1].quotient,c=f.filter(({quotient:g})=>g>d),h=f.filter(({quotient:g})=>g===d);if(c.length+h.length===u)c.push(...h);else{if(!t.draw)throw new Error("result is ambiguous, a draw would need to be made, but opt.draw is disabled");c.push(...ed(h,u-c.length))}return c.reduce((g,{party:v})=>(g[v]+=1,g),i)},as=(r=be)=>r("pattern",{id:"greyHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[r("rect",{x:0,y:0,width:8,height:8,fill:J.neoGrey[200]}),r("path",{d:"M0,2 L8,2",stroke:J.neoGrey[400],"stroke-width":.5}),r("path",{d:"M0,6 L8,6",stroke:J.neoGrey[400],"stroke-width":.5})]),is=(r=be)=>r("pattern",{id:"dataMissingHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[r("rect",{x:0,y:0,width:8,height:8,fill:"#FFF3CC"}),r("path",{d:"M0,8 L8,0",stroke:"#FFB800","stroke-width":.5}),r("path",{d:"M-2,2 L2,-2",stroke:"#FFB800","stroke-width":.5}),r("path",{d:"M6,10 L10,6",stroke:"#FFB800","stroke-width":.5})]),os=(r=be)=>r("pattern",{id:"noLstHatchPattern",x:0,y:0,width:8,height:8,patternUnits:"userSpaceOnUse"},[r("rect",{x:0,y:0,width:8,height:8,fill:"#FFE5E5"}),r("path",{d:"M0,0 L8,8",stroke:"#ED4134","stroke-width":.5}),r("path",{d:"M-2,6 L2,10",stroke:"#ED4134","stroke-width":.5}),r("path",{d:"M6,-2 L10,2",stroke:"#ED4134","stroke-width":.5})]),F={greyHatch:{background:J.neoGrey[200],lines:J.neoGrey[400]},dataMissingHatch:{background:"#FFF3CC",lines:"#FFB800"},noLstHatch:{background:"#FFE5E5",lines:"#ED4134"}},Te=r=>Math.round(r*1e10)/1e10,nd=r=>r.reduce((e,n)=>e+n.seats,0),ad=r=>r.flat(),id=(r,e,n)=>{const t=(Math.PI-n)/2,a=e/r+t-Math.PI;return{x:Te(r*Math.cos(a)),y:Te(r*Math.sin(a))}},ls=(r,e,n,t)=>{const a=t*e*n/(r-e),i=1+t*(e-1)*e/2/(r-e);return a/i},ue=(r,e,n,t)=>{const a=t/Math.PI*.7142857142857143;return Math.abs(ls(r,e,n,t)*e/n-a)},od=(r,e,n)=>{let t=Math.floor(Math.log(r)/Math.log(2))||1,a=ue(r,t,e,n),i=0;for(ue(r,t+1,e,n)<a&&(i=1),ue(r,t-1,e,n)<a&&t>1&&(i=-1);ue(r,t+i,e,n)<a&&t>0;)a=ue(r,t+i,e,n),t+=i;return t},ld=(r,e)=>{var a,i;let n,t;for(let o=0;o<r.length;o++)t=Te((e[o]||0)/(((a=r[o])==null?void 0:a.length)??1)),(!n||t<n)&&(n=t);for(let o=0;o<r.length;o++)if(t=Te((e[o]||0)/(((i=r[o])==null?void 0:i.length)??1)),t===n)return o;return 0},sd=(r,e,n)=>{const t=nd(r),a=od(t,e,n),i=ls(t,a,e,n);let o={};for(let c=1;c<=a;c++)o[c]=e-(c-1)*i;o=td(o,t);const l=[];let s,u,f;for(let c=1;c<=a;c++){const h=[];s=e-(c-1)*i,u=n*s/((o[c]??1)-1||1);for(let g=0;g<=(o[c]??1)-1;g++)f={...id(s,g*u,n),r:.4*i},h.push(f);l.push(h)}const d=Array(l.length).fill(0);for(const c of r)for(let h=0;h<c.seats;h++){const g=ld(l,d),v=l[g],b=d[g]??0,y=v==null?void 0:v[b];y&&(y.fill=c.colour,y.party=String(c.id)),d[g]=b+1}return ad(l)},ud=r=>e=>r("circle",{cx:e.x,cy:e.y,r:e.r,fill:e.fill,class:e.party}),cd={seatCount:!1,arcAngle:180,hFunction:be},fd=(r,e={})=>{var b;const{seatCount:n,arcAngle:t,hFunction:a}=Object.assign({},cd,e);if(typeof n!="boolean")throw new Error("`seatCount` option must be a boolean");if(typeof a!="function")throw new Error("`hFunction` option must be a function");if(typeof t!="number"||t<=0||t>360)throw new Error("`arcAngle` option must be a number between 0 and 360");const i=t*Math.PI/180,o=20,l=sd(r,o,i),s=(((b=l[0])==null?void 0:b.r)??0)/.4||0,u=l.map(ud(a));n&&u.push(a("text",{x:0,y:0,"text-anchor":"middle",style:{"font-family":"Helvetica","font-size":.25*o+"px"},class:"seatNumber"},String(u.length)));const f=t<=180?o+s:o*(1+Math.sin((i-Math.PI)/2))+s,d=o+s,c=Math.max(f,d),h=t<=180?-o-s/2:-o*(1+Math.sin((i-Math.PI)/2))-s/2,g=a("defs",[as(a),is(a),os(a)]);return a("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:[-o-s/2,h,2*o+s,c].join(",")},[g,...u])},dd={seatCount:!1,arcAngle:200,arcAngleFlexibility:5,radius:380,seatSize:4.5,minSeatSize:1.8,maxSeatSize:3,spacing:1.8,innerRadiusRatio:.6,showLabels:!0,hFunction:be},hd=(r,e={})=>{const n={...dd,...e},{arcAngle:t,arcAngleFlexibility:a,radius:i,seatSize:o,minSeatSize:l,maxSeatSize:s,spacing:u,innerRadiusRatio:f,showLabels:d,hFunction:c}=n,h=i*f,g=r.reduce((R,D)=>R+D.seats,0);let v={seatSize:o,arcAngle:t,score:-1};const b=t-a,y=t+a;for(let R=b;R<=y;R+=2.5){const D=R*Math.PI/180;for(let I=s;I>=l;I-=.1){const G=I*2,$=G*u,X=Math.floor((i-h)/$);for(let W=1;W<=Math.min(X,10);W++){let k=0;for(let le=0;le<W;le++){const He=h+(le+.5)*$,se=G*u/He,ze=Math.floor(D/se);k+=ze}if(k>=g){const le=g/k,He=(I-l)/(s-l),se=(k-g)/g,ze=se<.15?1:se<.3?.7:se<.5?.4:.1,bs=1-Math.abs(R-t)/a,la=ze*.5+He*.3+le*.15+bs*.05;la>v.score&&(v={seatSize:I,arcAngle:R,rings:W,score:la})}}}}const _=v.seatSize,m=v.arcAngle,S=m*Math.PI/180,T=_*2,A=T*u,q=Math.floor((i-h)/A),P=[],N=-S/2-Math.PI/2,j=[];let C=0,K=[];for(let R=1;R<=q;R++){let D=0;const I=[];for(let G=0;G<R;G++){const $=h+(G+.5)*A,X=T*u/$,W=Math.floor(S/X);I.push(W),D+=W}if(D>=g){C=R,K=I;break}}if(C>0)j.push(...K);else for(let R=0;R<q;R++){const D=h+(R+.5)*A,I=T*u/D,G=Math.floor(S/I);j.push(G)}for(let R=0;R<j.length;R++){const D=h+(R+.5)*A,I=j[R]??0;if(I>0){const G=S/I;for(let $=0;$<I;$++){const X=N+($+.5)*G,W=Math.cos(X)*D,k=Math.sin(X)*D;P.push({ring:R,index:$,angle:X,x:W,y:k})}}}P.sort((R,D)=>{const I=R.angle-D.angle;return Math.abs(I)>.001?I:R.ring-D.ring});const z=[];let Z=0;r.forEach(R=>{const D=[],I=Math.min(R.seats,P.length-Z);let G=1/0,$=-1/0;for(let W=0;W<I&&Z<P.length;W++){const k=P[Z++];k&&(G=Math.min(G,k.angle),$=Math.max($,k.angle),Math.sqrt(k.x*k.x+k.y*k.y),D.push(c("circle",{fill:R.colour,stroke:R.colour,className:"circle seat-visual seat-hover-zone",transform:`translate(${k.x}, ${k.y})`,r:_,"data-party":R.name,"data-party-id":String(R.id),style:"pointer-events: all; cursor: pointer;"})))}const X=D;z.push(c("g",{className:"party-group","data-party":R.name,style:"opacity: 1; outline: none;"},X))});const re=c("g",{className:"arc-bg"},[c("circle",{className:"outer",cx:0,cy:0,fill:"#ffffff",r:i}),c("circle",{className:"inner",cx:0,cy:0,fill:"#ffffff",r:h})]),Fe=c("g",{className:"points-container"},z),hs=d?c("g",{className:"label-container",mask:"url(#label-clip)",style:"pointer-events: none;"},[c("text",{className:"party_count",dy:"-0.05em",style:"font-size: 24vw; font-weight: bold; text-anchor: middle; display: none; opacity: 0; fill: rgb(19, 90, 225); transform: scale(1);"}),c("text",{className:"party_name",y:0,dy:"1em",style:"font-size: 6vw; font-weight: normal; text-anchor: middle; display: none; opacity: 0; fill: rgb(19, 90, 225); transform: scale(1);"})]):null,ps=c("defs",[c("radialGradient",{id:"label-gradient"},[c("stop",{offset:"0%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),c("stop",{offset:"80%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),c("stop",{offset:"90%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0.1;"}),c("stop",{offset:"100%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0;"})]),c("mask",{id:"label-clip"},[c("circle",{fill:"url(#label-gradient)",r:h})]),as(c),is(c),os(c)]),gs=c("g",{className:"arc-container",transform:`translate(${i}, ${i})`},[re,Fe,hs].filter(Boolean)),oa=S/2;let je;if(m<=180)je=i*Math.sin(oa)+_;else{const R=oa-Math.PI/2;je=i*(1+Math.sin(R))+_}const ms=i+_,ys=i*2,vs=Math.max(je,ms);return c("svg",{id:"chart-container","font-family":"Canva Sans Variable",viewBox:`0 0 ${ys} ${vs}`,preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg"},[gs,ps])};function ss(r){return!r||!r.color?"#cccccc":r.color==="url(#hatchPattern)"?ae.COMPLETED:r.color==="url(#greyHatchPattern)"?F.greyHatch.lines:r.color}function Kn(r,e){if(!r)return;const n=r.querySelectorAll(".party-group");n&&n.length>0&&n.forEach(t=>{if(!t)return;const a=t,i=a.getAttribute("data-party");e?i===e?a.style.opacity=H.animation.hoverOpacity.active:a.style.opacity=H.animation.hoverOpacity.dimmed:a.style.opacity="1"})}function $n(r,e){r.forEach(n=>{const t=n,a=n.getAttribute("class")||"";e?a===e?(t.setAttribute("fill-opacity","1"),t.setAttribute("stroke-opacity","1")):(t.setAttribute("fill-opacity",H.animation.hoverOpacity.dimmed),t.setAttribute("stroke-opacity","0.2")):(t.setAttribute("fill-opacity","1"),t.setAttribute("stroke-opacity","1"))})}const pd=({containerRef:r,processedData:e,totalRepositories:n,arcAngle:t,useEnhanced:a,maxSeats:i,setHoveredData:o,activePartyName:l,setActivePartyName:s,chartConfig:u,seatSize:f})=>{fe.useEffect(()=>{if(!r.current||e.length===0)return;for(;r.current.firstChild;)r.current.removeChild(r.current.firstChild);const d=n<=i?1:i/n,c=e.filter(m=>m.value>0).map(m=>{const S=n<=i?m.value:Math.max(1,Math.floor(m.value*d));return{id:String(m.id),name:m.label,seats:S,colour:m.color==="url(#hatchPattern)"?ae.COMPLETED:m.color}}),h=a?hd(c,{arcAngle:t,arcAngleFlexibility:u.arcAngleFlexibility,radius:u.radius,seatSize:f,minSeatSize:u.minSeatSize,maxSeatSize:u.maxSeatSize,spacing:u.spacing,innerRadiusRatio:u.innerRadiusRatio,showLabels:!0}):fd(c,{arcAngle:t});h.properties&&(h.properties.width="100%",h.properties.height="100%",h.properties.style="display: block; width: 100%; max-width: 100%; height: auto;",h.properties.preserveAspectRatio="xMidYMid meet");const g=Eu(h),y=new DOMParser().parseFromString(g,"image/svg+xml").documentElement;if(!y)return;y.setAttribute("width","100%"),y.setAttribute("height","100%"),y.style.width="100%",y.style.height="auto",y.style.display="block",a?gd(y,c,e,o,l,s):md(y,c,e,o,l,s);const _=()=>{if(o(null),s(null),a)Kn(y,null);else{const m=y.querySelectorAll("circle");$n(m,null)}};return y&&y.addEventListener("mouseleave",_),r.current.appendChild(y),()=>{if(y&&y.removeEventListener("mouseleave",_),r.current)for(;r.current.firstChild;)r.current.removeChild(r.current.firstChild)}},[e,n,t,a,i,o,l,s,r,u,f])};function gd(r,e,n,t,a,i){if(!r)return;const o=r.querySelectorAll(".seat-hover-zone"),l=r.querySelectorAll(".party-group circle.seat-visual");l&&l.length>0&&l.forEach(s=>{if(s){const u=s;u.style.stroke=H.colors.seatBorder,u.style.strokeWidth="0.5",u.setAttribute("fill-opacity","1"),u.style.transition=`fill-opacity ${H.animation.transitionDuration} ease, stroke-opacity ${H.animation.transitionDuration} ease`}}),o&&o.length>0&&o.forEach(s=>{if(!s)return;const u=s.getAttribute("data-party"),f=s.getAttribute("data-party-id"),d=()=>{if(u&&u!==a){const c=e.find(h=>h.name===u||String(h.id)===f);if(c){const h=n.find(g=>g.label===c.name||String(g.id)===c.id);if(h){const g=ss(h);t({label:h.label||"Unknown",value:h.value||0,color:g}),i(c.name),Kn(r,c.name)}}}};s.addEventListener("mouseenter",d)}),a&&Kn(r,a)}function md(r,e,n,t,a,i){if(!r)return;const o=r.querySelectorAll("circle");if(o&&o.length>0&&(o.forEach(l=>{if(l){const s=l;s.style.cursor="pointer",s.style.stroke=H.colors.seatBorder,s.style.strokeWidth="0.5",s.setAttribute("fill-opacity","1"),s.style.transition=`fill-opacity ${H.animation.transitionDuration} ease, stroke-opacity ${H.animation.transitionDuration} ease`}}),o.forEach(l=>{if(!l)return;const s=l.getAttribute("class")||"",u=parseInt(s,10),f=e[u],d=()=>{if(f){const c=f.name;if(c&&c!==a){const h=n.find(g=>g.label===f.name||String(g.id)===f.id);if(h){const g=ss(h);t({label:h.label||"Unknown",value:h.value||0,color:g}),i(c),$n(o,s)}}}};l.addEventListener("mouseenter",d)})),a){const l=e.find(s=>s.name===a);if(l){const s=e.indexOf(l);$n(o,String(s))}}}const us=[{minRepos:0,maxRepos:10,minArc:90,maxArc:90,minSeatSize:18,maxSeatSize:18},{minRepos:10,maxRepos:25,minArc:90,maxArc:110,minSeatSize:14,maxSeatSize:14},{minRepos:25,maxRepos:50,minArc:110,maxArc:120,minSeatSize:10,maxSeatSize:10},{minRepos:50,maxRepos:100,minArc:120,maxArc:150,minSeatSize:7,maxSeatSize:7},{minRepos:100,maxRepos:200,minArc:150,maxArc:180,minSeatSize:5.5,maxSeatSize:5.5},{minRepos:200,maxRepos:1/0,minArc:180,maxArc:180,minSeatSize:5,maxSeatSize:5}],cs=({repositoryCount:r})=>{const e=us.find(l=>r>=l.minRepos&&r<l.maxRepos);if(!e)return 180;if(e.minArc===e.maxArc)return e.minArc;const n=e.maxRepos-e.minRepos,a=(r-e.minRepos)/n,i=e.maxArc-e.minArc,o=e.minArc+i*a;return Math.round(o)},fs=({repositoryCount:r})=>{const e=us.find(l=>r>=l.minRepos&&r<l.maxRepos);if(!e)return 5;if(e.minSeatSize===e.maxSeatSize)return e.minSeatSize;const n=e.maxRepos-e.minRepos,a=(r-e.minRepos)/n,i=e.maxSeatSize-e.minSeatSize,o=e.minSeatSize+i*a;return Math.round(o*10)/10},Hn=["#4CA75A","#FDDA04","#FFC008","#FF9800","#F9A91B","#FF5C24","#ED4134","#CB3446"],bl={[pe]:ae.NOT_APPLICABLE,[ge]:ae.NO_LST,[me]:ae.DATA_MISSING},ce=(r,e,n)=>{if(r in bl)return bl[r];const t=n-1-e,a=Hn.length,i=Math.floor(t/Math.max(1,n-1)*(a-1)),o=Math.min(Math.max(0,i),a-1);return Hn[o]??Hn[0]??"#000000"},ds=({dataSeries:r,notApplicableRepositories:e,noLstRepositories:n,unavailableRepositories:t})=>{const{special:a,regular:i}=r.reduce((h,g,v)=>([pe,ge,me].includes(g.label)?h.special.push({...g,originalIndex:v}):h.regular.push({...g,originalIndex:v}),h),{special:[],regular:[]}),o=i.reverse().map((h,g)=>({id:`measure-${g}`,label:h.label,value:h.value,color:ce(h.label,i.length-1-g,i.length)})),l=a.map((h,g)=>({id:h.label.toLowerCase().replace(" ","-"),label:h.label,value:h.value,color:ce(h.label,g,a.length)})),s=t,u={id:"no-lst",label:ge,value:n,color:ce(ge,0,1)},f={id:"data-missing",label:me,value:s,color:ce(me,0,1)},d={id:"n/a",label:pe,value:e,color:ce(pe,0,1)},c=[...o,...l];return u.value>0&&c.push(u),f.value>0&&c.push(f),d.value>0&&c.push(d),c},_l={"N/A":"Repos that aren't applicable to this migration.","No LST":"There are no LSTs for these repos.","Data Missing":"There is data missing in the LSTs."},yd=({dataSeries:r,totalRepositories:e,notApplicableRepositories:n,noLstRepositories:t,unavailableRepositories:a,arcAngle:i,useEnhanced:o=H.useEnhanced})=>{const l=fe.useRef(null),[s,u]=fe.useState(null),[f,d]=fe.useState(null),h=ds({dataSeries:r,notApplicableRepositories:n,noLstRepositories:t,unavailableRepositories:a}).map(m=>{const S=typeof m.color=="function"?m.color("arc"):m.color,T=typeof m.label=="function"?m.label("arc"):m.label;return{...m,color:S,label:T}}),g=i??cs({repositoryCount:e}),v=fs({repositoryCount:e});pd({containerRef:l,processedData:h,totalRepositories:e,arcAngle:g,useEnhanced:o,maxSeats:H.maxSeats,setHoveredData:u,activePartyName:f,setActivePartyName:d,chartConfig:H.chartConfig,seatSize:v});const b=h.map(m=>{const S=m.value/e*100,T=S>0&&S<1?"< 1":S.toFixed(0);return{id:String(m.id),label:m.label,value:m.value,percentage:T,color:m.color}}),y=e>H.maxSeats,_=y?Math.round(e/H.maxSeats):1;return w.jsxs(M.Stack,{sx:{width:"100%",alignItems:"center",gap:{xs:.5,sm:.75,md:1,lg:1},py:0,"@media (min-width: 1024px) and (max-width: 1225px)":{gap:.25}},children:[w.jsxs(M.Box,{className:"parliament-chart-container",sx:{position:"relative",width:"100%",minHeight:"200px",mb:{xs:.5,sm:.75,md:1},"@media (min-width: 1024px) and (max-width: 1225px)":{maxHeight:"250px",mb:.25}},children:[w.jsx(M.Box,{className:"parliament-chart-svg-container",ref:l,sx:{width:"100%",height:"100%",position:"relative",display:"flex",justifyContent:"center",alignItems:"center","& svg":{width:"100%",height:"100%",maxWidth:"100%","@media (min-width: 1024px) and (max-width: 1225px)":{maxHeight:"230px"}}}}),w.jsxs(M.Box,{className:"parliament-chart-tooltip",sx:{position:"absolute",bottom:"0%",left:"50%",transform:"translate(-50%, 0%)",pointerEvents:"none",textAlign:"center",zIndex:10,"@media (min-width: 1024px) and (max-width: 1225px)":{bottom:"5%"}},children:[s&&w.jsxs(fe.Fragment,{children:[w.jsx(M.Typography,{sx:{color:"text.secondary",mb:.3,fontSize:"clamp(0.75rem, 1.5vw, 0.85rem)",display:"block","@media (min-width: 1024px) and (max-width: 1225px)":{fontSize:"0.7rem",mb:.2}},children:s.label}),w.jsxs(M.Typography,{sx:{fontWeight:"bold",color:s.color,lineHeight:1,fontSize:"clamp(1.1rem, 2.2vw, 1.3rem)","@media (min-width: 1024px) and (max-width: 1225px)":{fontSize:"1rem"}},children:[s.value," ",s.value>1?"repos":"repo"]})]}),y&&w.jsxs(M.Box,{className:"parliament-chart-scaled-indicator",sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:.5,mt:s?.5:0,color:"text.secondary",fontSize:"clamp(0.65rem, 1.2vw, 0.72rem)"},children:[w.jsx(M.Box,{className:"parliament-chart-scaled-indicator-dot",sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"#888888",flexShrink:0}}),w.jsxs(M.Typography,{variant:"caption",sx:{fontSize:"inherit",fontStyle:"italic"},children:["= ~",_," repos"]})]})]})]}),w.jsx(M.Box,{className:"parliament-chart-data-table",sx:{width:"100%",display:"flex",justifyContent:"center","@media (min-width: 1024px) and (max-width: 1225px)":{overflowX:"auto",maxWidth:"100%"}},onMouseLeave:()=>{u(null),d(null)},children:w.jsxs(M.Table,{"aria-label":"Repository categories summary",className:"parliament-chart-table",size:"small",sx:{maxWidth:{xs:"clamp(360px, 90%, 400px)",sm:"clamp(360px, 90%, 400px)",md:"clamp(360px, 85%, 420px)",lg:"clamp(360px, 90%, 400px)"},"@media (min-width: 1024px) and (max-width: 1225px)":{maxWidth:"360px","& .MuiTableCell-root":{padding:"1px 4px",fontSize:"9.5px"}},"& .MuiTableCell-root":{padding:"2px 8px",borderBottom:"none",fontSize:"clamp(10px, 1.8vw, 11.5px)"}},children:[w.jsx("thead",{children:w.jsxs(M.TableRow,{children:[w.jsx(M.TableCell,{}),w.jsx(M.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),w.jsx(M.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"# of repos"}),w.jsx(M.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"% of org"})]})}),w.jsx("tbody",{children:b.map(m=>{const S=m.color==="url(#greyHatchPattern)"?F.greyHatch.lines:m.color==="url(#dataMissingHatchPattern)"?F.dataMissingHatch.lines:m.color==="url(#noLstHatchPattern)"?F.noLstHatch.lines:m.color;return w.jsxs(M.TableRow,{onMouseEnter:()=>{d(m.label),u({label:m.label,value:m.value,color:m.color==="url(#greyHatchPattern)"?F.greyHatch.lines:m.color==="url(#dataMissingHatchPattern)"?F.dataMissingHatch.lines:m.color==="url(#noLstHatchPattern)"?F.noLstHatch.lines:m.color})},sx:{cursor:"pointer",transition:"background-color 0.15s ease",backgroundColor:f===m.label?`${S}15`:"transparent","&:hover":{backgroundColor:`${S}15`}},children:[w.jsx(M.TableCell,{align:"center",sx:{width:20},children:w.jsx(M.Box,{sx:{width:12,height:12,backgroundColor:m.color==="url(#greyHatchPattern)"?F.greyHatch.background:m.color==="url(#dataMissingHatchPattern)"?F.dataMissingHatch.background:m.color==="url(#noLstHatchPattern)"?F.noLstHatch.background:m.color,borderRadius:"50%",position:"relative",overflow:"hidden",transition:"transform 0.15s ease",transform:f===m.label?"scale(1.2)":"scale(1)",...m.label==="N/A"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
|
|
47
|
+
\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function gB(e,t,r,n){const i=n.schema,a=i.space==="svg"?!1:n.settings.omitOptionalTags;let o=i.space==="svg"?n.settings.closeEmptyElements:n.settings.voids.includes(e.tagName.toLowerCase());const s=[];let l;i.space==="html"&&e.tagName==="svg"&&(n.schema=n0);const u=vB(n,e.properties),c=n.all(i.space==="html"&&e.tagName==="template"?e.content:e);return n.schema=i,c&&(o=!1),(u||!a||!fB(e,t,r))&&(s.push("<",e.tagName,u?" "+u:""),o&&(i.space==="svg"||n.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!n.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(c),!o&&(!a||!a0(e,t,r))&&s.push("</"+e.tagName+">"),s.join("")}function vB(e,t){const r=[];let n=-1,i;if(t){for(i in t)if(t[i]!==null&&t[i]!==void 0){const a=bB(e,i,t[i]);a&&r.push(a)}}for(;++n<r.length;){const a=e.settings.tightAttributes?r[n].charAt(r[n].length-1):void 0;n!==r.length-1&&a!=='"'&&a!=="'"&&(r[n]+=" ")}return r.join("")}function bB(e,t,r){const n=bE(e.schema,t),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,a=e.settings.allowDangerousCharacters?0:1;let o=e.quote,s;if(n.overloadedBoolean&&(r===n.attribute||r==="")?r=!0:(n.boolean||n.overloadedBoolean)&&(typeof r!="string"||r===n.attribute||r==="")&&(r=!!r),r==null||r===!1||typeof r=="number"&&Number.isNaN(r))return"";const l=Va(n.attribute,Object.assign({},e.settings.characterReferences,{subset:Xl.name[i][a]}));return r===!0||(r=Array.isArray(r)?(n.commaSeparated?pL:mL)(r,{padLeft:!e.settings.tightCommaSeparatedLists}):String(r),e.settings.collapseEmptyAttributes&&!r)?l:(e.settings.preferUnquoted&&(s=Va(r,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Xl.unquoted[i][a]}))),s!==r&&(e.settings.quoteSmart&&mx(r,o)>mx(r,e.alternative)&&(o=e.alternative),s=o+Va(r,Object.assign({},e.settings.characterReferences,{subset:(o==="'"?Xl.single:Xl.double)[i][a],attribute:!0}))+o),l+(s&&"="+s))}const xB=["<","&"];function CE(e,t,r,n){return r&&r.type==="element"&&(r.tagName==="script"||r.tagName==="style")?e.value:Va(e.value,Object.assign({},n.settings.characterReferences,{subset:xB}))}function _B(e,t,r,n){return n.settings.allowDangerousHtml?e.value:CE(e,t,r,n)}function wB(e,t,r,n){return n.all(e)}const SB=EL("type",{invalid:AB,unknown:OB,handlers:{comment:XL,doctype:YL,element:gB,raw:_B,root:wB,text:CE}});function AB(e){throw new Error("Expected node, not `"+e+"`")}function OB(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const TB={},PB={},EB=[];function MB(e,t){const r=TB,n=r.quote||'"',i=n==='"'?"'":'"';if(n!=='"'&&n!=="'")throw new Error("Invalid quote `"+n+"`, expected `'` or `\"`");return{one:CB,all:kB,settings:{omitOptionalTags:r.omitOptionalTags||!1,allowParseErrors:r.allowParseErrors||!1,allowDangerousCharacters:r.allowDangerousCharacters||!1,quoteSmart:r.quoteSmart||!1,preferUnquoted:r.preferUnquoted||!1,tightAttributes:r.tightAttributes||!1,upperDoctype:r.upperDoctype||!1,tightDoctype:r.tightDoctype||!1,bogusComments:r.bogusComments||!1,tightCommaSeparatedLists:r.tightCommaSeparatedLists||!1,tightSelfClosing:r.tightSelfClosing||!1,collapseEmptyAttributes:r.collapseEmptyAttributes||!1,allowDangerousHtml:r.allowDangerousHtml||!1,voids:r.voids||PL,characterReferences:r.characterReferences||PB,closeSelfClosing:r.closeSelfClosing||!1,closeEmptyElements:r.closeEmptyElements||!1},schema:r.space==="svg"?n0:xE,quote:n,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function CB(e,t,r){return SB(e,t,r,this)}function kB(e){const t=[],r=e&&e.children||EB;let n=-1;for(;++n<r.length;)t[n]=this.one(r[n],n,e);return t.join("")}const dr={arcAngle:180,maxSeats:200,useEnhanced:!0,chartConfig:{radius:220,seatSize:5,minSeatSize:4,maxSeatSize:18,spacing:1.1,innerRadiusRatio:.4,arcAngleFlexibility:5},colors:{emptySeats:"#f8f8f8",emptySeatsBorder:"#d8d8d8",seatBorder:"#fff"},animation:{transitionDuration:"0.2s",hoverOpacity:{active:"1",dimmed:"0.2",empty:"0.3"}},scaling:{enableScaling:!0,scaleThreshold:200}},Za={COMPLETED:Or.neoDigitalGreen[600],NOT_APPLICABLE:"url(#greyHatchPattern)",NO_LST:"url(#noLstHatchPattern)",DATA_MISSING:"url(#dataMissingHatchPattern)"},Ts="N/A",Ps="No LST",Es="Data Missing";function $B(e,t,r,n="left-to-right",i=900,a){Kt.prototype.transition=fv;const o=t*Math.PI/180,s=-o/2-Math.PI/2,l=o/2-Math.PI/2;let u=e.querySelector("defs");u||(u=document.createElementNS("http://www.w3.org/2000/svg","defs"),e.appendChild(u));const c="arc-sweep-clip";let f=u.querySelector(`#${c}`);f||(f=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),f.setAttribute("id",c),u.appendChild(f));const h=document.createElementNS("http://www.w3.org/2000/svg","path");f.innerHTML="",f.appendChild(h);const p=e.querySelector(".arc-container"),y=e.querySelector(".points-container");if(y&&p)if(y.setAttribute("clip-path",`url(#${c})`),n==="left-to-right"){const d=v=>{const x=r*1.5,_=Math.cos(v)*x,g=Math.sin(v)*x,w=Math.cos(l)*x,S=Math.sin(l)*x,A=l-v>Math.PI?1:0;return`M 0,0 L ${_},${g} A ${x},${x} 0 ${A},1 ${w},${S} Z`};h.setAttribute("d",d(s)),Kt(h).transition().duration(i).ease(v=>1-Math.pow(1-v,3)).tween("arc-sweep",()=>v=>{const x=s+(l-s)*v;h.setAttribute("d",d(x))}).on("end",()=>{a&&a(),setTimeout(()=>{y.removeAttribute("clip-path")},50)})}else{const d=v=>{const x=r*1.5,_=Math.cos(v)*x,g=Math.sin(v)*x,w=Math.cos(l)*x,S=Math.sin(l)*x,A=l-v>Math.PI?1:0;return`M 0,0 L ${_},${g} A ${x},${x} 0 ${A},1 ${w},${S} Z`};h.setAttribute("d",d(l)),Kt(h).transition().duration(i).ease(v=>1-Math.pow(1-v,3)).tween("arc-sweep",()=>v=>{const x=l-(l-s)*v;h.setAttribute("d",d(x))}).on("end",()=>{y.removeAttribute("clip-path"),a&&a()})}}var Yl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vf,bx;function kE(){if(bx)return Vf;bx=1;var e=typeof Yl=="object"&&Yl&&Yl.Object===Object&&Yl;return Vf=e,Vf}var Zf,xx;function vn(){if(xx)return Zf;xx=1;var e=kE(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Zf=r,Zf}var Jf,_x;function jB(){if(_x)return Jf;_x=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Jf=t,Jf}var Qf,wx;function RB(){if(wx)return Qf;wx=1;var e=jB(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Qf=r,Qf}var th,Sx;function ki(){if(Sx)return th;Sx=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return th=e,th}var eh,Ax;function Rl(){if(Ax)return eh;Ax=1;var e=vn(),t=e.Symbol;return eh=t,eh}var rh,Ox;function DB(){if(Ox)return rh;Ox=1;var e=Rl(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var s=r.call(o,i),l=o[i];try{o[i]=void 0;var u=!0}catch{}var c=n.call(o);return u&&(s?o[i]=l:delete o[i]),c}return rh=a,rh}var nh,Tx;function IB(){if(Tx)return nh;Tx=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return nh=r,nh}var ih,Px;function ni(){if(Px)return ih;Px=1;var e=Rl(),t=DB(),r=IB(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?i:n:a&&a in Object(s)?t(s):r(s)}return ih=o,ih}var ah,Ex;function ii(){if(Ex)return ah;Ex=1;function e(t){return t!=null&&typeof t=="object"}return ah=e,ah}var oh,Mx;function Lo(){if(Mx)return oh;Mx=1;var e=ni(),t=ii(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return oh=n,oh}var sh,Cx;function o0(){if(Cx)return sh;Cx=1;var e=RB(),t=ki(),r=Lo(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function l(u){if(typeof u=="number")return u;if(r(u))return n;if(t(u)){var c=typeof u.valueOf=="function"?u.valueOf():u;u=t(c)?c+"":c}if(typeof u!="string")return u===0?u:+u;u=e(u);var f=a.test(u);return f||o.test(u)?s(u.slice(2),f?2:8):i.test(u)?n:+u}return sh=l,sh}var lh,kx;function $E(){if(kx)return lh;kx=1;var e=o0(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return lh=n,lh}var uh,$x;function s0(){if($x)return uh;$x=1;var e=$E();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return uh=t,uh}var ch,jx;function Fc(){if(jx)return ch;jx=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return ch=e,ch}var fh,Rx;function yr(){if(Rx)return fh;Rx=1;var e=Array.isArray;return fh=e,fh}var hh,Dx;function NB(){if(Dx)return hh;Dx=1;var e=Rl(),t=Fc(),r=yr(),n=Lo(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return t(s,o)+"";if(n(s))return a?a.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}return hh=o,hh}var ph,Ix;function l0(){if(Ix)return ph;Ix=1;var e=NB();function t(r){return r==null?"":e(r)}return ph=t,ph}var dh,Nx;function LB(){if(Nx)return dh;Nx=1;var e=vn(),t=s0(),r=o0(),n=l0(),i=e.isFinite,a=Math.min;function o(s){var l=Math[s];return function(u,c){if(u=r(u),c=c==null?0:a(t(c),292),c&&i(u)){var f=(n(u)+"e").split("e"),h=l(f[0]+"e"+(+f[1]+c));return f=(n(h)+"e").split("e"),+(f[0]+"e"+(+f[1]-c))}return l(u)}}return dh=o,dh}var mh,Lx;function BB(){if(Lx)return mh;Lx=1;var e=LB(),t=e("round");return mh=t,mh}var qB=BB();const FB=Xt(qB);var yh,Bx;function jE(){if(Bx)return yh;Bx=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return yh=e,yh}var gh,qx;function zB(){if(qx)return gh;qx=1;var e=ni(),t=ii(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return gh=n,gh}var vh,Fx;function u0(){if(Fx)return vh;Fx=1;var e=zB(),t=ii(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return vh=a,vh}var bh,zx;function UB(){if(zx)return bh;zx=1;var e=Rl(),t=u0(),r=yr(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return bh=i,bh}var xh,Ux;function RE(){if(Ux)return xh;Ux=1;var e=jE(),t=UB();function r(n,i,a,o,s){var l=-1,u=n.length;for(a||(a=t),s||(s=[]);++l<u;){var c=n[l];i>0&&a(c)?i>1?r(c,i-1,a,o,s):e(s,c):o||(s[s.length]=c)}return s}return xh=r,xh}var _h,Wx;function c0(){if(Wx)return _h;Wx=1;var e=yr(),t=Lo(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var s=typeof a;return s=="number"||s=="symbol"||s=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return _h=i,_h}var wh,Hx;function f0(){if(Hx)return wh;Hx=1;var e=ni(),t=ki(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(s){if(!t(s))return!1;var l=e(s);return l==n||l==i||l==r||l==a}return wh=o,wh}var Sh,Gx;function WB(){if(Gx)return Sh;Gx=1;var e=vn(),t=e["__core-js_shared__"];return Sh=t,Sh}var Ah,Kx;function HB(){if(Kx)return Ah;Kx=1;var e=WB(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return Ah=r,Ah}var Oh,Xx;function DE(){if(Xx)return Oh;Xx=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return Oh=r,Oh}var Th,Yx;function GB(){if(Yx)return Th;Yx=1;var e=f0(),t=HB(),r=ki(),n=DE(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,l=o.toString,u=s.hasOwnProperty,c=RegExp("^"+l.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!r(h)||t(h))return!1;var p=e(h)?c:a;return p.test(n(h))}return Th=f,Th}var Ph,Vx;function KB(){if(Vx)return Ph;Vx=1;function e(t,r){return t==null?void 0:t[r]}return Ph=e,Ph}var Eh,Zx;function Aa(){if(Zx)return Eh;Zx=1;var e=GB(),t=KB();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return Eh=r,Eh}var Mh,Jx;function zc(){if(Jx)return Mh;Jx=1;var e=Aa(),t=e(Object,"create");return Mh=t,Mh}var Ch,Qx;function XB(){if(Qx)return Ch;Qx=1;var e=zc();function t(){this.__data__=e?e(null):{},this.size=0}return Ch=t,Ch}var kh,t_;function YB(){if(t_)return kh;t_=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return kh=e,kh}var $h,e_;function VB(){if(e_)return $h;e_=1;var e=zc(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var s=o[a];return s===t?void 0:s}return n.call(o,a)?o[a]:void 0}return $h=i,$h}var jh,r_;function ZB(){if(r_)return jh;r_=1;var e=zc(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return jh=n,jh}var Rh,n_;function JB(){if(n_)return Rh;n_=1;var e=zc(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return Rh=r,Rh}var Dh,i_;function QB(){if(i_)return Dh;i_=1;var e=XB(),t=YB(),r=VB(),n=ZB(),i=JB();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Dh=a,Dh}var Ih,a_;function tq(){if(a_)return Ih;a_=1;function e(){this.__data__=[],this.size=0}return Ih=e,Ih}var Nh,o_;function h0(){if(o_)return Nh;o_=1;function e(t,r){return t===r||t!==t&&r!==r}return Nh=e,Nh}var Lh,s_;function Uc(){if(s_)return Lh;s_=1;var e=h0();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Lh=t,Lh}var Bh,l_;function eq(){if(l_)return Bh;l_=1;var e=Uc(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():r.call(a,o,1),--this.size,!0}return Bh=n,Bh}var qh,u_;function rq(){if(u_)return qh;u_=1;var e=Uc();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return qh=t,qh}var Fh,c_;function nq(){if(c_)return Fh;c_=1;var e=Uc();function t(r){return e(this.__data__,r)>-1}return Fh=t,Fh}var zh,f_;function iq(){if(f_)return zh;f_=1;var e=Uc();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return zh=t,zh}var Uh,h_;function Wc(){if(h_)return Uh;h_=1;var e=tq(),t=eq(),r=rq(),n=nq(),i=iq();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Uh=a,Uh}var Wh,p_;function p0(){if(p_)return Wh;p_=1;var e=Aa(),t=vn(),r=e(t,"Map");return Wh=r,Wh}var Hh,d_;function aq(){if(d_)return Hh;d_=1;var e=QB(),t=Wc(),r=p0();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Hh=n,Hh}var Gh,m_;function oq(){if(m_)return Gh;m_=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Gh=e,Gh}var Kh,y_;function Hc(){if(y_)return Kh;y_=1;var e=oq();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Kh=t,Kh}var Xh,g_;function sq(){if(g_)return Xh;g_=1;var e=Hc();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Xh=t,Xh}var Yh,v_;function lq(){if(v_)return Yh;v_=1;var e=Hc();function t(r){return e(this,r).get(r)}return Yh=t,Yh}var Vh,b_;function uq(){if(b_)return Vh;b_=1;var e=Hc();function t(r){return e(this,r).has(r)}return Vh=t,Vh}var Zh,x_;function cq(){if(x_)return Zh;x_=1;var e=Hc();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Zh=t,Zh}var Jh,__;function d0(){if(__)return Jh;__=1;var e=aq(),t=sq(),r=lq(),n=uq(),i=cq();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var u=o[s];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Jh=a,Jh}var Qh,w_;function IE(){if(w_)return Qh;w_=1;var e=d0(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,s=i?i.apply(this,o):o[0],l=a.cache;if(l.has(s))return l.get(s);var u=n.apply(this,o);return a.cache=l.set(s,u)||l,u};return a.cache=new(r.Cache||e),a}return r.Cache=e,Qh=r,Qh}var tp,S_;function fq(){if(S_)return tp;S_=1;var e=IE(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return tp=r,tp}var ep,A_;function hq(){if(A_)return ep;A_=1;var e=fq(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,s,l,u){a.push(l?u.replace(r,"$1"):s||o)}),a});return ep=n,ep}var rp,O_;function NE(){if(O_)return rp;O_=1;var e=yr(),t=c0(),r=hq(),n=l0();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return rp=i,rp}var np,T_;function Gc(){if(T_)return np;T_=1;var e=Lo();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return np=t,np}var ip,P_;function m0(){if(P_)return ip;P_=1;var e=NE(),t=Gc();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return ip=r,ip}var ap,E_;function pq(){if(E_)return ap;E_=1;var e=Wc();function t(){this.__data__=new e,this.size=0}return ap=t,ap}var op,M_;function dq(){if(M_)return op;M_=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return op=e,op}var sp,C_;function mq(){if(C_)return sp;C_=1;function e(t){return this.__data__.get(t)}return sp=e,sp}var lp,k_;function yq(){if(k_)return lp;k_=1;function e(t){return this.__data__.has(t)}return lp=e,lp}var up,$_;function gq(){if($_)return up;$_=1;var e=Wc(),t=p0(),r=d0(),n=200;function i(a,o){var s=this.__data__;if(s instanceof e){var l=s.__data__;if(!t||l.length<n-1)return l.push([a,o]),this.size=++s.size,this;s=this.__data__=new r(l)}return s.set(a,o),this.size=s.size,this}return up=i,up}var cp,j_;function LE(){if(j_)return cp;j_=1;var e=Wc(),t=pq(),r=dq(),n=mq(),i=yq(),a=gq();function o(s){var l=this.__data__=new e(s);this.size=l.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,cp=o,cp}var fp,R_;function vq(){if(R_)return fp;R_=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return fp=t,fp}var hp,D_;function bq(){if(D_)return hp;D_=1;function e(t){return this.__data__.has(t)}return hp=e,hp}var pp,I_;function BE(){if(I_)return pp;I_=1;var e=d0(),t=vq(),r=bq();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,pp=n,pp}var dp,N_;function qE(){if(N_)return dp;N_=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return dp=e,dp}var mp,L_;function FE(){if(L_)return mp;L_=1;function e(t,r){return t.has(r)}return mp=e,mp}var yp,B_;function zE(){if(B_)return yp;B_=1;var e=BE(),t=qE(),r=FE(),n=1,i=2;function a(o,s,l,u,c,f){var h=l&n,p=o.length,y=s.length;if(p!=y&&!(h&&y>p))return!1;var m=f.get(o),d=f.get(s);if(m&&d)return m==s&&d==o;var b=-1,v=!0,x=l&i?new e:void 0;for(f.set(o,s),f.set(s,o);++b<p;){var _=o[b],g=s[b];if(u)var w=h?u(g,_,b,s,o,f):u(_,g,b,o,s,f);if(w!==void 0){if(w)continue;v=!1;break}if(x){if(!t(s,function(S,A){if(!r(x,A)&&(_===S||c(_,S,l,u,f)))return x.push(A)})){v=!1;break}}else if(!(_===g||c(_,g,l,u,f))){v=!1;break}}return f.delete(o),f.delete(s),v}return yp=a,yp}var gp,q_;function xq(){if(q_)return gp;q_=1;var e=vn(),t=e.Uint8Array;return gp=t,gp}var vp,F_;function _q(){if(F_)return vp;F_=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return vp=e,vp}var bp,z_;function y0(){if(z_)return bp;z_=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return bp=e,bp}var xp,U_;function wq(){if(U_)return xp;U_=1;var e=Rl(),t=xq(),r=h0(),n=zE(),i=_q(),a=y0(),o=1,s=2,l="[object Boolean]",u="[object Date]",c="[object Error]",f="[object Map]",h="[object Number]",p="[object RegExp]",y="[object Set]",m="[object String]",d="[object Symbol]",b="[object ArrayBuffer]",v="[object DataView]",x=e?e.prototype:void 0,_=x?x.valueOf:void 0;function g(w,S,A,T,M,P,E){switch(A){case v:if(w.byteLength!=S.byteLength||w.byteOffset!=S.byteOffset)return!1;w=w.buffer,S=S.buffer;case b:return!(w.byteLength!=S.byteLength||!P(new t(w),new t(S)));case l:case u:case h:return r(+w,+S);case c:return w.name==S.name&&w.message==S.message;case p:case m:return w==S+"";case f:var C=i;case y:var $=T&o;if(C||(C=a),w.size!=S.size&&!$)return!1;var j=E.get(w);if(j)return j==S;T|=s,E.set(w,S);var k=n(C(w),C(S),T,M,P,E);return E.delete(w),k;case d:if(_)return _.call(w)==_.call(S)}return!1}return xp=g,xp}var _p,W_;function Sq(){if(W_)return _p;W_=1;var e=jE(),t=yr();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return _p=r,_p}var wp,H_;function Aq(){if(H_)return wp;H_=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var s=t[n];r(s,n,t)&&(o[a++]=s)}return o}return wp=e,wp}var Sp,G_;function Oq(){if(G_)return Sp;G_=1;function e(){return[]}return Sp=e,Sp}var Ap,K_;function Tq(){if(K_)return Ap;K_=1;var e=Aq(),t=Oq(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(s){return n.call(o,s)}))}:t;return Ap=a,Ap}var Op,X_;function Pq(){if(X_)return Op;X_=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Op=e,Op}var ys={exports:{}},Tp,Y_;function Eq(){if(Y_)return Tp;Y_=1;function e(){return!1}return Tp=e,Tp}ys.exports;var V_;function UE(){return V_||(V_=1,(function(e,t){var r=vn(),n=Eq(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u})(ys,ys.exports)),ys.exports}var Pp,Z_;function g0(){if(Z_)return Pp;Z_=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Pp=r,Pp}var Ep,J_;function v0(){if(J_)return Ep;J_=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return Ep=t,Ep}var Mp,Q_;function Mq(){if(Q_)return Mp;Q_=1;var e=ni(),t=v0(),r=ii(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",l="[object Function]",u="[object Map]",c="[object Number]",f="[object Object]",h="[object RegExp]",p="[object Set]",y="[object String]",m="[object WeakMap]",d="[object ArrayBuffer]",b="[object DataView]",v="[object Float32Array]",x="[object Float64Array]",_="[object Int8Array]",g="[object Int16Array]",w="[object Int32Array]",S="[object Uint8Array]",A="[object Uint8ClampedArray]",T="[object Uint16Array]",M="[object Uint32Array]",P={};P[v]=P[x]=P[_]=P[g]=P[w]=P[S]=P[A]=P[T]=P[M]=!0,P[n]=P[i]=P[d]=P[a]=P[b]=P[o]=P[s]=P[l]=P[u]=P[c]=P[f]=P[h]=P[p]=P[y]=P[m]=!1;function E(C){return r(C)&&t(C.length)&&!!P[e(C)]}return Mp=E,Mp}var Cp,t1;function WE(){if(t1)return Cp;t1=1;function e(t){return function(r){return t(r)}}return Cp=e,Cp}var gs={exports:{}};gs.exports;var e1;function Cq(){return e1||(e1=1,(function(e,t){var r=kE(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=(function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}})();e.exports=s})(gs,gs.exports)),gs.exports}var kp,r1;function HE(){if(r1)return kp;r1=1;var e=Mq(),t=WE(),r=Cq(),n=r&&r.isTypedArray,i=n?t(n):e;return kp=i,kp}var $p,n1;function kq(){if(n1)return $p;n1=1;var e=Pq(),t=u0(),r=yr(),n=UE(),i=g0(),a=HE(),o=Object.prototype,s=o.hasOwnProperty;function l(u,c){var f=r(u),h=!f&&t(u),p=!f&&!h&&n(u),y=!f&&!h&&!p&&a(u),m=f||h||p||y,d=m?e(u.length,String):[],b=d.length;for(var v in u)(c||s.call(u,v))&&!(m&&(v=="length"||p&&(v=="offset"||v=="parent")||y&&(v=="buffer"||v=="byteLength"||v=="byteOffset")||i(v,b)))&&d.push(v);return d}return $p=l,$p}var jp,i1;function $q(){if(i1)return jp;i1=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return jp=t,jp}var Rp,a1;function GE(){if(a1)return Rp;a1=1;function e(t,r){return function(n){return t(r(n))}}return Rp=e,Rp}var Dp,o1;function jq(){if(o1)return Dp;o1=1;var e=GE(),t=e(Object.keys,Object);return Dp=t,Dp}var Ip,s1;function Rq(){if(s1)return Ip;s1=1;var e=$q(),t=jq(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&o.push(s);return o}return Ip=i,Ip}var Np,l1;function Dl(){if(l1)return Np;l1=1;var e=f0(),t=v0();function r(n){return n!=null&&t(n.length)&&!e(n)}return Np=r,Np}var Lp,u1;function Il(){if(u1)return Lp;u1=1;var e=kq(),t=Rq(),r=Dl();function n(i){return r(i)?e(i):t(i)}return Lp=n,Lp}var Bp,c1;function Dq(){if(c1)return Bp;c1=1;var e=Sq(),t=Tq(),r=Il();function n(i){return e(i,r,t)}return Bp=n,Bp}var qp,f1;function Iq(){if(f1)return qp;f1=1;var e=Dq(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,s,l,u,c){var f=s&t,h=e(a),p=h.length,y=e(o),m=y.length;if(p!=m&&!f)return!1;for(var d=p;d--;){var b=h[d];if(!(f?b in o:n.call(o,b)))return!1}var v=c.get(a),x=c.get(o);if(v&&x)return v==o&&x==a;var _=!0;c.set(a,o),c.set(o,a);for(var g=f;++d<p;){b=h[d];var w=a[b],S=o[b];if(l)var A=f?l(S,w,b,o,a,c):l(w,S,b,a,o,c);if(!(A===void 0?w===S||u(w,S,s,l,c):A)){_=!1;break}g||(g=b=="constructor")}if(_&&!g){var T=a.constructor,M=o.constructor;T!=M&&"constructor"in a&&"constructor"in o&&!(typeof T=="function"&&T instanceof T&&typeof M=="function"&&M instanceof M)&&(_=!1)}return c.delete(a),c.delete(o),_}return qp=i,qp}var Fp,h1;function Nq(){if(h1)return Fp;h1=1;var e=Aa(),t=vn(),r=e(t,"DataView");return Fp=r,Fp}var zp,p1;function Lq(){if(p1)return zp;p1=1;var e=Aa(),t=vn(),r=e(t,"Promise");return zp=r,zp}var Up,d1;function KE(){if(d1)return Up;d1=1;var e=Aa(),t=vn(),r=e(t,"Set");return Up=r,Up}var Wp,m1;function Bq(){if(m1)return Wp;m1=1;var e=Aa(),t=vn(),r=e(t,"WeakMap");return Wp=r,Wp}var Hp,y1;function qq(){if(y1)return Hp;y1=1;var e=Nq(),t=p0(),r=Lq(),n=KE(),i=Bq(),a=ni(),o=DE(),s="[object Map]",l="[object Object]",u="[object Promise]",c="[object Set]",f="[object WeakMap]",h="[object DataView]",p=o(e),y=o(t),m=o(r),d=o(n),b=o(i),v=a;return(e&&v(new e(new ArrayBuffer(1)))!=h||t&&v(new t)!=s||r&&v(r.resolve())!=u||n&&v(new n)!=c||i&&v(new i)!=f)&&(v=function(x){var _=a(x),g=_==l?x.constructor:void 0,w=g?o(g):"";if(w)switch(w){case p:return h;case y:return s;case m:return u;case d:return c;case b:return f}return _}),Hp=v,Hp}var Gp,g1;function Fq(){if(g1)return Gp;g1=1;var e=LE(),t=zE(),r=wq(),n=Iq(),i=qq(),a=yr(),o=UE(),s=HE(),l=1,u="[object Arguments]",c="[object Array]",f="[object Object]",h=Object.prototype,p=h.hasOwnProperty;function y(m,d,b,v,x,_){var g=a(m),w=a(d),S=g?c:i(m),A=w?c:i(d);S=S==u?f:S,A=A==u?f:A;var T=S==f,M=A==f,P=S==A;if(P&&o(m)){if(!o(d))return!1;g=!0,T=!1}if(P&&!T)return _||(_=new e),g||s(m)?t(m,d,b,v,x,_):r(m,d,S,b,v,x,_);if(!(b&l)){var E=T&&p.call(m,"__wrapped__"),C=M&&p.call(d,"__wrapped__");if(E||C){var $=E?m.value():m,j=C?d.value():d;return _||(_=new e),x($,j,b,v,_)}}return P?(_||(_=new e),n(m,d,b,v,x,_)):!1}return Gp=y,Gp}var Kp,v1;function b0(){if(v1)return Kp;v1=1;var e=Fq(),t=ii();function r(n,i,a,o,s){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,s)}return Kp=r,Kp}var Xp,b1;function zq(){if(b1)return Xp;b1=1;var e=LE(),t=b0(),r=1,n=2;function i(a,o,s,l){var u=s.length,c=u,f=!l;if(a==null)return!c;for(a=Object(a);u--;){var h=s[u];if(f&&h[2]?h[1]!==a[h[0]]:!(h[0]in a))return!1}for(;++u<c;){h=s[u];var p=h[0],y=a[p],m=h[1];if(f&&h[2]){if(y===void 0&&!(p in a))return!1}else{var d=new e;if(l)var b=l(y,m,p,a,o,d);if(!(b===void 0?t(m,y,r|n,l,d):b))return!1}}return!0}return Xp=i,Xp}var Yp,x1;function XE(){if(x1)return Yp;x1=1;var e=ki();function t(r){return r===r&&!e(r)}return Yp=t,Yp}var Vp,_1;function Uq(){if(_1)return Vp;_1=1;var e=XE(),t=Il();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],s=n[o];i[a]=[o,s,e(s)]}return i}return Vp=r,Vp}var Zp,w1;function YE(){if(w1)return Zp;w1=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return Zp=e,Zp}var Jp,S1;function Wq(){if(S1)return Jp;S1=1;var e=zq(),t=Uq(),r=YE();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return Jp=n,Jp}var Qp,A1;function VE(){if(A1)return Qp;A1=1;var e=m0();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Qp=t,Qp}var td,O1;function Hq(){if(O1)return td;O1=1;function e(t,r){return t!=null&&r in Object(t)}return td=e,td}var ed,T1;function Gq(){if(T1)return ed;T1=1;var e=NE(),t=u0(),r=yr(),n=g0(),i=v0(),a=Gc();function o(s,l,u){l=e(l,s);for(var c=-1,f=l.length,h=!1;++c<f;){var p=a(l[c]);if(!(h=s!=null&&u(s,p)))break;s=s[p]}return h||++c!=f?h:(f=s==null?0:s.length,!!f&&i(f)&&n(p,f)&&(r(s)||t(s)))}return ed=o,ed}var rd,P1;function Kq(){if(P1)return rd;P1=1;var e=Hq(),t=Gq();function r(n,i){return n!=null&&t(n,i,e)}return rd=r,rd}var nd,E1;function Xq(){if(E1)return nd;E1=1;var e=b0(),t=VE(),r=Kq(),n=c0(),i=XE(),a=YE(),o=Gc(),s=1,l=2;function u(c,f){return n(c)&&i(f)?a(o(c),f):function(h){var p=t(h,c);return p===void 0&&p===f?r(h,c):e(f,p,s|l)}}return nd=u,nd}var id,M1;function Bo(){if(M1)return id;M1=1;function e(t){return t}return id=e,id}var ad,C1;function Yq(){if(C1)return ad;C1=1;function e(t){return function(r){return r==null?void 0:r[t]}}return ad=e,ad}var od,k1;function Vq(){if(k1)return od;k1=1;var e=m0();function t(r){return function(n){return e(n,r)}}return od=t,od}var sd,$1;function Zq(){if($1)return sd;$1=1;var e=Yq(),t=Vq(),r=c0(),n=Gc();function i(a){return r(a)?e(n(a)):t(a)}return sd=i,sd}var ld,j1;function $i(){if(j1)return ld;j1=1;var e=Wq(),t=Xq(),r=Bo(),n=yr(),i=Zq();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return ld=a,ld}var ud,R1;function Jq(){if(R1)return ud;R1=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),s=i(r),l=s.length;l--;){var u=s[t?l:++a];if(n(o[u],u,o)===!1)break}return r}}return ud=e,ud}var cd,D1;function Qq(){if(D1)return cd;D1=1;var e=Jq(),t=e();return cd=t,cd}var fd,I1;function ZE(){if(I1)return fd;I1=1;var e=Qq(),t=Il();function r(n,i){return n&&e(n,i,t)}return fd=r,fd}var hd,N1;function tF(){if(N1)return hd;N1=1;var e=Dl();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,s=n?o:-1,l=Object(i);(n?s--:++s<o)&&a(l[s],s,l)!==!1;);return i}}return hd=t,hd}var pd,L1;function x0(){if(L1)return pd;L1=1;var e=ZE(),t=tF(),r=t(e);return pd=r,pd}var dd,B1;function JE(){if(B1)return dd;B1=1;var e=x0(),t=Dl();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(s,l,u){o[++a]=i(s,l,u)}),o}return dd=r,dd}var md,q1;function eF(){if(q1)return md;q1=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return md=e,md}var yd,F1;function rF(){if(F1)return yd;F1=1;var e=Lo();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,s=e(r),l=n!==void 0,u=n===null,c=n===n,f=e(n);if(!u&&!f&&!s&&r>n||s&&l&&c&&!u&&!f||a&&l&&c||!i&&c||!o)return 1;if(!a&&!s&&!f&&r<n||f&&i&&o&&!a&&!s||u&&i&&o||!l&&o||!c)return-1}return 0}return yd=t,yd}var gd,z1;function nF(){if(z1)return gd;z1=1;var e=rF();function t(r,n,i){for(var a=-1,o=r.criteria,s=n.criteria,l=o.length,u=i.length;++a<l;){var c=e(o[a],s[a]);if(c){if(a>=u)return c;var f=i[a];return c*(f=="desc"?-1:1)}}return r.index-n.index}return gd=t,gd}var vd,U1;function iF(){if(U1)return vd;U1=1;var e=Fc(),t=m0(),r=$i(),n=JE(),i=eF(),a=WE(),o=nF(),s=Bo(),l=yr();function u(c,f,h){f.length?f=e(f,function(m){return l(m)?function(d){return t(d,m.length===1?m[0]:m)}:m}):f=[s];var p=-1;f=e(f,a(r));var y=n(c,function(m,d,b){var v=e(f,function(x){return x(m)});return{criteria:v,index:++p,value:m}});return i(y,function(m,d){return o(m,d,h)})}return vd=u,vd}var bd,W1;function aF(){if(W1)return bd;W1=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return bd=e,bd}var xd,H1;function oF(){if(H1)return xd;H1=1;var e=aF(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,s=-1,l=t(o.length-i,0),u=Array(l);++s<l;)u[s]=o[i+s];s=-1;for(var c=Array(i+1);++s<i;)c[s]=o[s];return c[i]=a(u),e(n,this,c)}}return xd=r,xd}var _d,G1;function sF(){if(G1)return _d;G1=1;function e(t){return function(){return t}}return _d=e,_d}var wd,K1;function QE(){if(K1)return wd;K1=1;var e=Aa(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return wd=t,wd}var Sd,X1;function lF(){if(X1)return Sd;X1=1;var e=sF(),t=QE(),r=Bo(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Sd=n,Sd}var Ad,Y1;function uF(){if(Y1)return Ad;Y1=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var s=r(),l=t-(s-o);if(o=s,l>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Ad=n,Ad}var Od,V1;function cF(){if(V1)return Od;V1=1;var e=lF(),t=uF(),r=t(e);return Od=r,Od}var Td,Z1;function fF(){if(Z1)return Td;Z1=1;var e=Bo(),t=oF(),r=cF();function n(i,a){return r(t(i,a,e),i+"")}return Td=n,Td}var Pd,J1;function Nl(){if(J1)return Pd;J1=1;var e=h0(),t=Dl(),r=g0(),n=ki();function i(a,o,s){if(!n(s))return!1;var l=typeof o;return(l=="number"?t(s)&&r(o,s.length):l=="string"&&o in s)?e(s[o],a):!1}return Pd=i,Pd}var Ed,Q1;function hF(){if(Q1)return Ed;Q1=1;var e=RE(),t=iF(),r=fF(),n=Nl(),i=r(function(a,o){if(a==null)return[];var s=o.length;return s>1&&n(a,o[0],o[1])?o=[]:s>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Ed=i,Ed}var pF=hF();const Kc=Xt(pF);var Md,tw;function dF(){if(tw)return Md;tw=1;function e(t){for(var r=-1,n=t==null?0:t.length,i={};++r<n;){var a=t[r];i[a[0]]=a[1]}return i}return Md=e,Md}var mF=dF();const ew=Xt(mF);var Cd,rw;function yF(){if(rw)return Cd;rw=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var s=-1,l=t(e((i-n)/(a||1)),0),u=Array(l);l--;)u[o?l:++s]=n,n+=a;return u}return Cd=r,Cd}var kd,nw;function gF(){if(nw)return kd;nw=1;var e=yF(),t=Nl(),r=$E();function n(i){return function(a,o,s){return s&&typeof s!="number"&&t(a,o,s)&&(o=s=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),s=s===void 0?a<o?1:-1:r(s),e(a,o,s,i)}}return kd=n,kd}var $d,iw;function vF(){if(iw)return $d;iw=1;var e=gF(),t=e();return $d=t,$d}var bF=vF();const Ys=Xt(bF);var jd,aw;function xF(){if(aw)return jd;aw=1;var e=Fc(),t=$i(),r=JE(),n=yr();function i(a,o){var s=n(a)?e:r;return s(a,t(o,3))}return jd=i,jd}var Rd,ow;function _F(){if(ow)return Rd;ow=1;var e=RE(),t=xF();function r(n,i){return e(t(n,i),1)}return Rd=r,Rd}var wF=_F();const tM=Xt(wF);var Dd,sw;function eM(){if(sw)return Dd;sw=1;function e(t,r,n){return t===t&&(n!==void 0&&(t=t<=n?t:n),r!==void 0&&(t=t>=r?t:r)),t}return Dd=e,Dd}var Id,lw;function SF(){if(lw)return Id;lw=1;function e(t,r){var n=-1,i=t.length;for(r||(r=Array(i));++n<i;)r[n]=t[n];return r}return Id=e,Id}var Nd,uw;function AF(){if(uw)return Nd;uw=1;var e=Math.floor,t=Math.random;function r(n,i){return n+e(t()*(i-n+1))}return Nd=r,Nd}var Ld,cw;function rM(){if(cw)return Ld;cw=1;var e=AF();function t(r,n){var i=-1,a=r.length,o=a-1;for(n=n===void 0?a:n;++i<n;){var s=e(i,o),l=r[s];r[s]=r[i],r[i]=l}return r.length=n,r}return Ld=t,Ld}var Bd,fw;function OF(){if(fw)return Bd;fw=1;var e=eM(),t=SF(),r=rM();function n(i,a){return r(t(i),e(a,0,i.length))}return Bd=n,Bd}var qd,hw;function TF(){if(hw)return qd;hw=1;var e=Fc();function t(r,n){return e(n,function(i){return r[i]})}return qd=t,qd}var Fd,pw;function PF(){if(pw)return Fd;pw=1;var e=TF(),t=Il();function r(n){return n==null?[]:e(n,t(n))}return Fd=r,Fd}var zd,dw;function EF(){if(dw)return zd;dw=1;var e=eM(),t=rM(),r=PF();function n(i,a){var o=r(i);return t(o,e(a,0,o.length))}return zd=n,zd}var Ud,mw;function MF(){if(mw)return Ud;mw=1;var e=OF(),t=EF(),r=yr(),n=Nl(),i=s0();function a(o,s,l){(l?n(o,s,l):s===void 0)?s=1:s=i(s);var u=r(o)?e:t;return u(o,s)}return Ud=a,Ud}var CF=MF();const kF=Xt(CF),$F=e=>FB(e,14),yw=e=>Object.values(e).reduce((t,r)=>t+r,0),jF=(e,t,r={})=>{const n=Object.assign({draw:!1},r);if(Object.values(e).length<1)throw new Error("vote distribution must contain at least one party");if(!Object.values(e).every(y=>typeof y=="number"&&y>=0))throw new Error("party vote counts must be non-negative integers");if(!Number.isInteger(t)||t<=0)throw new Error("seats must be a positive integer");if(typeof n.draw!="boolean")throw new Error("opt.draw must be a boolean");const i=yw(e),a=ew(Object.entries(e).map(([y,m])=>{const d=Math.max(t-Object.keys(e).length,0),b=Math.round(d*m/i);return[y,b]})),o=ew(Object.entries(e).map(([y,m])=>{const d=t+Object.keys(e).length,b=Math.min(Math.round(d*m/i),t);return[y,b]})),s=tM(Object.entries(e).map(([y,m])=>{const d=a[y],b=o[y];return Ys(d,b).map(v=>{const x=$F(m/(v+.5));return{party:y,quotient:x}})})),l=yw(a),u=t-l,c=Kc(s,({quotient:y})=>-y),f=c[u-1].quotient,h=c.filter(({quotient:y})=>y>f),p=c.filter(({quotient:y})=>y===f);if(h.length+p.length===u)h.push(...p);else{if(!n.draw)throw new Error("result is ambiguous, a draw would need to be made, but opt.draw is disabled");h.push(...kF(p,u-h.length))}return h.reduce((y,{party:m})=>(y[m]+=1,y),a)},zu=e=>Math.round(e*1e10)/1e10,RF=e=>e.reduce((t,r)=>t+r.seats,0),DF=e=>e.flat(),IF=(e,t,r)=>{const n=(Math.PI-r)/2,i=t/e+n-Math.PI;return{x:zu(e*Math.cos(i)),y:zu(e*Math.sin(i))}},nM=(e,t,r,n)=>{const i=n*t*r/(e-t),a=1+n*(t-1)*t/2/(e-t);return i/a},ns=(e,t,r,n)=>{const i=n/Math.PI*.7142857142857143;return Math.abs(nM(e,t,r,n)*t/r-i)},NF=(e,t,r)=>{let n=Math.floor(Math.log(e)/Math.log(2))||1,i=ns(e,n,t,r),a=0;for(ns(e,n+1,t,r)<i&&(a=1),ns(e,n-1,t,r)<i&&n>1&&(a=-1);ns(e,n+a,t,r)<i&&n>0;)i=ns(e,n+a,t,r),n+=a;return n},LF=(e,t)=>{var i,a;let r,n;for(let o=0;o<e.length;o++)n=zu((t[o]||0)/(((i=e[o])==null?void 0:i.length)??1)),(!r||n<r)&&(r=n);for(let o=0;o<e.length;o++)if(n=zu((t[o]||0)/(((a=e[o])==null?void 0:a.length)??1)),n===r)return o;return 0},BF=(e,t,r)=>{const n=RF(e),i=NF(n,t,r),a=nM(n,i,t,r);let o={};for(let h=1;h<=i;h++)o[h]=t-(h-1)*a;o=jF(o,n);const s=[];let l,u,c;for(let h=1;h<=i;h++){const p=[];l=t-(h-1)*a,u=r*l/((o[h]??1)-1||1);for(let y=0;y<=(o[h]??1)-1;y++)c={...IF(l,y*u,r),r:.4*a},p.push(c);s.push(p)}const f=Array(s.length).fill(0);for(const h of e)for(let p=0;p<h.seats;p++){const y=LF(s,f),m=s[y],d=f[y]??0,b=m==null?void 0:m[d];b&&(b.fill=h.colour,b.party=String(h.id)),f[y]=d+1}return DF(s)},qF=e=>t=>e("circle",{cx:t.x,cy:t.y,r:t.r,fill:t.fill,class:t.party}),FF={seatCount:!1,arcAngle:180,hFunction:jl},zF=(e,t={})=>{var d;const{seatCount:r,arcAngle:n,hFunction:i}=Object.assign({},FF,t);if(typeof r!="boolean")throw new Error("`seatCount` option must be a boolean");if(typeof i!="function")throw new Error("`hFunction` option must be a function");if(typeof n!="number"||n<=0||n>360)throw new Error("`arcAngle` option must be a number between 0 and 360");const a=n*Math.PI/180,o=20,s=BF(e,o,a),l=(((d=s[0])==null?void 0:d.r)??0)/.4||0,u=s.map(qF(i));r&&u.push(i("text",{x:0,y:0,"text-anchor":"middle",style:{"font-family":"Helvetica","font-size":.25*o+"px"},class:"seatNumber"},String(u.length)));const c=n<=180?o+l:o*(1+Math.sin((a-Math.PI)/2))+l,f=o+l,h=Math.max(c,f),p=n<=180?-o-l/2:-o*(1+Math.sin((a-Math.PI)/2))-l/2,y=i("defs",[wE(i),SE(i),AE(i)]);return i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:[-o-l/2,p,2*o+l,h].join(",")},[y,...u])},UF={seatCount:!1,arcAngle:200,arcAngleFlexibility:5,radius:380,seatSize:4.5,minSeatSize:1.8,maxSeatSize:3,spacing:1.8,innerRadiusRatio:.6,showLabels:!0,hFunction:jl},WF=(e,t={})=>{const r={...UF,...t},{arcAngle:n,arcAngleFlexibility:i,radius:a,seatSize:o,minSeatSize:s,maxSeatSize:l,spacing:u,innerRadiusRatio:c,showLabels:f,hFunction:h}=r,p=a*c,y=e.reduce((X,z)=>X+z.seats,0);let m={seatSize:o,arcAngle:n,score:-1};const d=n-i,b=n+i;for(let X=d;X<=b;X+=2.5){const z=X*Math.PI/180;for(let Y=l;Y>=s;Y-=.1){const V=Y*2,D=V*u,rt=Math.floor((a-p)/D);for(let W=1;W<=Math.min(rt,10);W++){let tt=0;for(let ft=0;ft<W;ft++){const at=p+(ft+.5)*D,dt=V*u/at,Pt=Math.floor(z/dt);tt+=Pt}if(tt>=y){const ft=y/tt,at=(Y-s)/(l-s),dt=(tt-y)/y,Pt=dt<.15?1:dt<.3?.7:dt<.5?.4:.1,ct=1-Math.abs(X-n)/i,nt=Pt*.5+at*.3+ft*.15+ct*.05;nt>m.score&&(m={seatSize:Y,arcAngle:X,rings:W,score:nt})}}}}const v=m.seatSize,x=m.arcAngle,_=x*Math.PI/180,g=v*2,w=g*u,S=Math.floor((a-p)/w),A=[],T=-_/2-Math.PI/2,M=[];let P=0,E=[];for(let X=1;X<=S;X++){let z=0;const Y=[];for(let V=0;V<X;V++){const D=p+(V+.5)*w,rt=g*u/D,W=Math.floor(_/rt);Y.push(W),z+=W}if(z>=y){P=X,E=Y;break}}if(P>0)M.push(...E);else for(let X=0;X<S;X++){const z=p+(X+.5)*w,Y=g*u/z,V=Math.floor(_/Y);M.push(V)}for(let X=0;X<M.length;X++){const z=p+(X+.5)*w,Y=M[X]??0;if(Y>0){const V=_/Y;for(let D=0;D<Y;D++){const rt=T+(D+.5)*V,W=Math.cos(rt)*z,tt=Math.sin(rt)*z;A.push({ring:X,index:D,angle:rt,x:W,y:tt})}}}A.sort((X,z)=>{const Y=X.angle-z.angle;return Math.abs(Y)>.001?Y:X.ring-z.ring});const C=[];let $=0;e.forEach(X=>{const z=[],Y=Math.min(X.seats,A.length-$);let V=1/0,D=-1/0;for(let W=0;W<Y&&$<A.length;W++){const tt=A[$++];tt&&(V=Math.min(V,tt.angle),D=Math.max(D,tt.angle),Math.sqrt(tt.x*tt.x+tt.y*tt.y),z.push(h("circle",{fill:X.colour,stroke:X.colour,className:"circle seat-visual seat-hover-zone",transform:`translate(${tt.x}, ${tt.y})`,r:v,"data-party":X.name,"data-party-id":String(X.id),style:"pointer-events: all; cursor: pointer;"})))}const rt=z;C.push(h("g",{className:"party-group","data-party":X.name,style:"opacity: 1; outline: none;"},rt))});const j=h("g",{className:"arc-bg"},[h("circle",{className:"outer",cx:0,cy:0,fill:"#ffffff",r:a}),h("circle",{className:"inner",cx:0,cy:0,fill:"#ffffff",r:p})]),k=h("g",{className:"points-container"},C),R=f?h("g",{className:"label-container",mask:"url(#label-clip)",style:"pointer-events: none;"},[h("text",{className:"party_count",dy:"-0.05em",style:"font-size: 24vw; font-weight: bold; text-anchor: middle; display: none; opacity: 0; fill: rgb(19, 90, 225); transform: scale(1);"}),h("text",{className:"party_name",y:0,dy:"1em",style:"font-size: 6vw; font-weight: normal; text-anchor: middle; display: none; opacity: 0; fill: rgb(19, 90, 225); transform: scale(1);"})]):null,L=h("defs",[h("radialGradient",{id:"label-gradient"},[h("stop",{offset:"0%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),h("stop",{offset:"80%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 1;"}),h("stop",{offset:"90%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0.1;"}),h("stop",{offset:"100%",style:"stop-color: rgb(255, 255, 255); stop-opacity: 0;"})]),h("mask",{id:"label-clip"},[h("circle",{fill:"url(#label-gradient)",r:p})]),wE(h),SE(h),AE(h)]),B=h("g",{className:"arc-container",transform:`translate(${a}, ${a})`},[j,k,R].filter(Boolean)),q=_/2;let N;if(x<=180)N=a*Math.sin(q)+v;else{const X=q-Math.PI/2;N=a*(1+Math.sin(X))+v}const G=a+v,F=a*2,K=Math.max(N,G);return h("svg",{id:"chart-container","font-family":"Canva Sans Variable",viewBox:`0 0 ${F} ${K}`,preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg"},[B,L])};function iM(e){return!e||!e.color?"#cccccc":e.color==="url(#hatchPattern)"?Za.COMPLETED:e.color==="url(#greyHatchPattern)"?Yt.greyHatch.lines:e.color}function Wy(e,t){if(!e)return;const r=e.querySelectorAll(".party-group");r&&r.length>0&&r.forEach(n=>{if(!n)return;const i=n,a=i.getAttribute("data-party");t?a===t?i.style.opacity=dr.animation.hoverOpacity.active:i.style.opacity=dr.animation.hoverOpacity.dimmed:i.style.opacity="1"})}function Hy(e,t){e.forEach(r=>{const n=r,i=r.getAttribute("class")||"";t?i===t?(n.setAttribute("fill-opacity","1"),n.setAttribute("stroke-opacity","1")):(n.setAttribute("fill-opacity",dr.animation.hoverOpacity.dimmed),n.setAttribute("stroke-opacity","0.2")):(n.setAttribute("fill-opacity","1"),n.setAttribute("stroke-opacity","1"))})}const HF=({containerRef:e,processedData:t,totalRepositories:r,arcAngle:n,useEnhanced:i,maxSeats:a,setHoveredData:o,activePartyName:s,setActivePartyName:l,chartConfig:u,seatSize:c,shouldAnimate:f=!1,animationDirection:h="left-to-right",onAnimationComplete:p})=>{O.useEffect(()=>{if(!e.current||t.length===0)return;for(;e.current.firstChild;)e.current.removeChild(e.current.firstChild);const y=r<=a?1:a/r,m=t.filter(w=>w.value>0).map(w=>{const S=r<=a?w.value:Math.max(1,Math.floor(w.value*y));return{id:String(w.id),name:w.label,seats:S,colour:w.color==="url(#hatchPattern)"?Za.COMPLETED:w.color}}),d=i?WF(m,{arcAngle:n,arcAngleFlexibility:u.arcAngleFlexibility,radius:u.radius,seatSize:c,minSeatSize:u.minSeatSize,maxSeatSize:u.maxSeatSize,spacing:u.spacing,innerRadiusRatio:u.innerRadiusRatio,showLabels:!0}):zF(m,{arcAngle:n});d.properties&&(d.properties.width="100%",d.properties.height="100%",d.properties.style="display: block; width: 100%; max-width: 100%; height: auto;",d.properties.preserveAspectRatio="xMidYMid meet");const b=MB(d),_=new DOMParser().parseFromString(b,"image/svg+xml").documentElement;if(!_)return;_.setAttribute("width","100%"),_.setAttribute("height","100%"),_.style.width="100%",_.style.height="auto",_.style.display="block",i?GF(_,m,t,o,s,l):KF(_,m,t,o,s,l);const g=()=>{if(o(null),l(null),i)Wy(_,null);else{const w=_.querySelectorAll("circle");Hy(w,null)}};return _&&_.addEventListener("mouseleave",g),e.current.appendChild(_),f&&_&&$B(_,n,u.radius,h,900,p),()=>{if(_&&_.removeEventListener("mouseleave",g),e.current)for(;e.current.firstChild;)e.current.removeChild(e.current.firstChild)}},[t,r,n,i,a,o,s,l,e,u,c,f,h,p])};function GF(e,t,r,n,i,a){if(!e)return;const o=e.querySelectorAll(".seat-hover-zone"),s=e.querySelectorAll(".party-group circle.seat-visual");s&&s.length>0&&s.forEach(l=>{if(l){const u=l;u.style.stroke=dr.colors.seatBorder,u.style.strokeWidth="0.5",u.setAttribute("fill-opacity","1"),u.style.transition=`fill-opacity ${dr.animation.transitionDuration} ease, stroke-opacity ${dr.animation.transitionDuration} ease`}}),o&&o.length>0&&o.forEach(l=>{if(!l)return;const u=l.getAttribute("data-party"),c=l.getAttribute("data-party-id"),f=()=>{if(u&&u!==i){const h=t.find(p=>p.name===u||String(p.id)===c);if(h){const p=r.find(y=>y.label===h.name||String(y.id)===h.id);if(p){const y=iM(p);n({label:p.label||"Unknown",value:p.value||0,color:y}),a(h.name),Wy(e,h.name)}}}};l.addEventListener("mouseenter",f)}),i&&Wy(e,i)}function KF(e,t,r,n,i,a){if(!e)return;const o=e.querySelectorAll("circle");if(o&&o.length>0&&(o.forEach(s=>{if(s){const l=s;l.style.cursor="pointer",l.style.stroke=dr.colors.seatBorder,l.style.strokeWidth="0.5",l.setAttribute("fill-opacity","1"),l.style.transition=`fill-opacity ${dr.animation.transitionDuration} ease, stroke-opacity ${dr.animation.transitionDuration} ease`}}),o.forEach(s=>{if(!s)return;const l=s.getAttribute("class")||"",u=parseInt(l,10),c=t[u],f=()=>{if(c){const h=c.name;if(h&&h!==i){const p=r.find(y=>y.label===c.name||String(y.id)===c.id);if(p){const y=iM(p);n({label:p.label||"Unknown",value:p.value||0,color:y}),a(h),Hy(o,l)}}}};s.addEventListener("mouseenter",f)})),i){const s=t.find(l=>l.name===i);if(s){const l=t.indexOf(s);Hy(o,String(l))}}}const Wd=Ss,gw={[Ts]:Za.NOT_APPLICABLE,[Ps]:Za.NO_LST,[Es]:Za.DATA_MISSING},is=(e,t,r)=>{if(e in gw)return gw[e];const n=r-1-t,i=Wd.length,a=Math.floor(n/Math.max(1,r-1)*(i-1)),o=Math.min(Math.max(0,a),i-1);return Wd[o]??Wd[0]??"#000000"},aM=({dataSeries:e,notApplicableRepositories:t,noLstRepositories:r,unavailableRepositories:n})=>{const{special:i,regular:a}=e.reduce((p,y,m)=>([Ts,Ps,Es].includes(y.label)?p.special.push({...y,originalIndex:m}):p.regular.push({...y,originalIndex:m}),p),{special:[],regular:[]}),o=a.reverse().map((p,y)=>({id:`measure-${y}`,label:p.label,value:p.value,color:is(p.label,a.length-1-y,a.length)})),s=i.map((p,y)=>({id:p.label.toLowerCase().replace(" ","-"),label:p.label,value:p.value,color:is(p.label,y,i.length)})),l=n,u={id:"no-lst",label:Ps,value:r,color:is(Ps,0,1)},c={id:"data-missing",label:Es,value:l,color:is(Es,0,1)},f={id:"n/a",label:Ts,value:t,color:is(Ts,0,1)},h=[];return f.value>0&&h.push(f),u.value>0&&h.push(u),c.value>0&&h.push(c),h.push(...s),h.push(...o),h},vw={"N/A":"Repos that aren't applicable to this migration.","No LST":"There are no LSTs for these repos.","Data Missing":"There is data missing in the LSTs."},XF=({dataSeries:e,totalRepositories:t,notApplicableRepositories:r,noLstRepositories:n,unavailableRepositories:i,arcAngle:a,useEnhanced:o=dr.useEnhanced,showTable:s=!0,shouldAnimate:l=!1,animationDirection:u="left-to-right",onAnimationComplete:c})=>{const f=O.useRef(null),[h,p]=O.useState(null),[y,m]=O.useState(null),b=aM({dataSeries:e,notApplicableRepositories:r,noLstRepositories:n,unavailableRepositories:i}).map(S=>{const A=typeof S.color=="function"?S.color("arc"):S.color,T=typeof S.label=="function"?S.label("arc"):S.label;return{...S,color:A,label:T}}),v=a??t0({repositoryCount:t}),x=e0({repositoryCount:t});HF({containerRef:f,processedData:b,totalRepositories:t,arcAngle:v,useEnhanced:o,maxSeats:dr.maxSeats,setHoveredData:p,activePartyName:y,setActivePartyName:m,chartConfig:dr.chartConfig,seatSize:x,shouldAnimate:l,animationDirection:u,onAnimationComplete:c});const _=b.map(S=>{const A=S.value/t*100,T=A>0&&A<1?"< 1":A.toFixed(0);return{id:String(S.id),label:S.label,value:S.value,percentage:T,color:S.color}}),g=t>dr.maxSeats,w=g?Math.round(t/dr.maxSeats):1;return H.jsxs(Q.Stack,{sx:{width:"100%",alignItems:"center",gap:{xs:.5,sm:.75,md:1,lg:1},py:0,"@media (min-width: 1024px) and (max-width: 1225px)":{gap:.25}},children:[H.jsxs(Q.Box,{className:"parliament-chart-container",sx:{position:"relative",width:"100%",minHeight:"200px",mb:{xs:.5,sm:.75,md:1},"@media (min-width: 1024px) and (max-width: 1225px)":{maxHeight:"250px",mb:.25}},children:[H.jsx(Q.Box,{className:"parliament-chart-svg-container",ref:f,sx:{width:"100%",height:"100%",position:"relative",display:"flex",justifyContent:"center",alignItems:"center","& svg":{width:"100%",height:"100%",maxWidth:"100%","@media (min-width: 1024px) and (max-width: 1225px)":{maxHeight:"230px"}}}}),H.jsxs(Q.Box,{className:"parliament-chart-tooltip",sx:{position:"absolute",bottom:"0%",left:"50%",transform:"translate(-50%, 0%)",pointerEvents:"none",textAlign:"center",zIndex:10,"@media (min-width: 1024px) and (max-width: 1225px)":{bottom:"5%"}},children:[h&&H.jsxs(O.Fragment,{children:[H.jsx(Q.Typography,{sx:{color:"text.secondary",mb:.3,fontSize:"clamp(0.75rem, 1.5vw, 0.85rem)",display:"block","@media (min-width: 1024px) and (max-width: 1225px)":{fontSize:"0.7rem",mb:.2}},children:h.label}),H.jsxs(Q.Typography,{sx:{fontWeight:"bold",color:h.color,lineHeight:1,fontSize:"clamp(1.1rem, 2.2vw, 1.3rem)","@media (min-width: 1024px) and (max-width: 1225px)":{fontSize:"1rem"}},children:[h.value," ",h.value>1?"repos":"repo"]})]}),g&&H.jsxs(Q.Box,{className:"parliament-chart-scaled-indicator",sx:{display:"flex",alignItems:"center",justifyContent:"center",gap:.5,mt:h?.5:0,color:"text.secondary",fontSize:"clamp(0.65rem, 1.2vw, 0.72rem)"},children:[H.jsx(Q.Box,{className:"parliament-chart-scaled-indicator-dot",sx:{width:8,height:8,borderRadius:"50%",backgroundColor:"#888888",flexShrink:0}}),H.jsxs(Q.Typography,{variant:"caption",sx:{fontSize:"inherit",fontStyle:"italic"},children:["= ~",w," repos"]})]})]})]}),s&&H.jsx(Q.Box,{className:"parliament-chart-data-table",sx:{width:"100%",display:"flex",justifyContent:"center","@media (min-width: 1024px) and (max-width: 1225px)":{overflowX:"auto",maxWidth:"100%"}},onMouseLeave:()=>{p(null),m(null)},children:H.jsxs(Q.Table,{"aria-label":"Repository categories summary",className:"parliament-chart-table",size:"small",sx:{maxWidth:{xs:"clamp(360px, 90%, 400px)",sm:"clamp(360px, 90%, 400px)",md:"clamp(360px, 85%, 420px)",lg:"clamp(360px, 90%, 400px)"},"@media (min-width: 1024px) and (max-width: 1225px)":{maxWidth:"360px","& .MuiTableCell-root":{padding:"1px 4px",fontSize:"9.5px"}},"& .MuiTableCell-root":{padding:"2px 8px",borderBottom:"none",fontSize:"clamp(10px, 1.8vw, 11.5px)"}},children:[H.jsx("thead",{children:H.jsxs(Q.TableRow,{children:[H.jsx(Q.TableCell,{}),H.jsx(Q.TableCell,{sx:{fontWeight:"bold"},children:"Category"}),H.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"# of repos"}),H.jsx(Q.TableCell,{align:"right",sx:{fontWeight:"bold"},children:"% of org"})]})}),H.jsx("tbody",{children:_.map(S=>{const A=S.color==="url(#greyHatchPattern)"?Yt.greyHatch.lines:S.color==="url(#dataMissingHatchPattern)"?Yt.dataMissingHatch.lines:S.color==="url(#noLstHatchPattern)"?Yt.noLstHatch.lines:S.color;return H.jsxs(Q.TableRow,{onMouseEnter:()=>{m(S.label),p({label:S.label,value:S.value,color:S.color==="url(#greyHatchPattern)"?Yt.greyHatch.lines:S.color==="url(#dataMissingHatchPattern)"?Yt.dataMissingHatch.lines:S.color==="url(#noLstHatchPattern)"?Yt.noLstHatch.lines:S.color})},sx:{cursor:"pointer",transition:"background-color 0.15s ease",backgroundColor:y===S.label?`${A}15`:"transparent","&:hover":{backgroundColor:`${A}15`}},children:[H.jsx(Q.TableCell,{align:"center",sx:{width:20},children:H.jsx(Q.Box,{sx:{width:12,height:12,backgroundColor:S.color==="url(#greyHatchPattern)"?Yt.greyHatch.background:S.color==="url(#dataMissingHatchPattern)"?Yt.dataMissingHatch.background:S.color==="url(#noLstHatchPattern)"?Yt.noLstHatch.background:S.color,borderRadius:"50%",position:"relative",overflow:"hidden",transition:"transform 0.15s ease",transform:y===S.label?"scale(1.2)":"scale(1)",...S.label==="N/A"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
|
|
10
48
|
0deg,
|
|
11
49
|
transparent,
|
|
12
50
|
transparent 3px,
|
|
13
|
-
${
|
|
14
|
-
${
|
|
15
|
-
)`,borderRadius:"50%"}},...
|
|
51
|
+
${Yt.greyHatch.lines} 3px,
|
|
52
|
+
${Yt.greyHatch.lines} 4px
|
|
53
|
+
)`,borderRadius:"50%"}},...S.label==="Data Missing"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
|
|
16
54
|
45deg,
|
|
17
55
|
transparent,
|
|
18
56
|
transparent 3px,
|
|
19
|
-
${
|
|
20
|
-
${
|
|
21
|
-
)`,borderRadius:"50%"}},...
|
|
57
|
+
${Yt.dataMissingHatch.lines} 3px,
|
|
58
|
+
${Yt.dataMissingHatch.lines} 4px
|
|
59
|
+
)`,borderRadius:"50%"}},...S.label==="No LST"&&{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`repeating-linear-gradient(
|
|
22
60
|
-45deg,
|
|
23
61
|
transparent,
|
|
24
62
|
transparent 3px,
|
|
25
|
-
${
|
|
26
|
-
${
|
|
27
|
-
)`,borderRadius:"50%"}}}})}),
|
|
63
|
+
${Yt.noLstHatch.lines} 3px,
|
|
64
|
+
${Yt.noLstHatch.lines} 4px
|
|
65
|
+
)`,borderRadius:"50%"}}}})}),H.jsx(Q.TableCell,{children:H.jsxs(Q.Stack,{direction:"row",alignItems:"center",gap:.5,children:[H.jsx("span",{children:S.label}),vw[S.label]&&H.jsx(Q.Tooltip,{title:vw[S.label],placement:"right",arrow:!0,children:H.jsx(HO.InfoOutlined,{sx:{fontSize:".875rem",color:"text.secondary"}})})]})}),H.jsx(Q.TableCell,{align:"right",children:S.value}),H.jsxs(Q.TableCell,{align:"right",children:[S.percentage,"%"]})]},S.id)})})]})})]})};function oM(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=oM(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Mt(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=oM(e))&&(n&&(n+=" "),n+=t);return n}var YF=VE();const nn=Xt(YF);var Hd,bw;function VF(){if(bw)return Hd;bw=1;function e(t){return t==null}return Hd=e,Hd}var ZF=VF();const bt=Xt(ZF);var Gd,xw;function JF(){if(xw)return Gd;xw=1;var e=ni(),t=yr(),r=ii(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Gd=i,Gd}var QF=JF();const da=Xt(QF);var t5=f0();const St=Xt(t5);var e5=ki();const qo=Xt(e5);var Vl={exports:{}},Bt={};/**
|
|
66
|
+
* @license React
|
|
67
|
+
* react-is.production.min.js
|
|
68
|
+
*
|
|
69
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
70
|
+
*
|
|
71
|
+
* This source code is licensed under the MIT license found in the
|
|
72
|
+
* LICENSE file in the root directory of this source tree.
|
|
73
|
+
*/var _w;function r5(){if(_w)return Bt;_w=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function m(d){if(typeof d=="object"&&d!==null){var b=d.$$typeof;switch(b){case e:switch(d=d.type,d){case r:case i:case n:case u:case c:return d;default:switch(d=d&&d.$$typeof,d){case s:case o:case l:case h:case f:case a:return d;default:return b}}case t:return b}}}return Bt.ContextConsumer=o,Bt.ContextProvider=a,Bt.Element=e,Bt.ForwardRef=l,Bt.Fragment=r,Bt.Lazy=h,Bt.Memo=f,Bt.Portal=t,Bt.Profiler=i,Bt.StrictMode=n,Bt.Suspense=u,Bt.SuspenseList=c,Bt.isAsyncMode=function(){return!1},Bt.isConcurrentMode=function(){return!1},Bt.isContextConsumer=function(d){return m(d)===o},Bt.isContextProvider=function(d){return m(d)===a},Bt.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},Bt.isForwardRef=function(d){return m(d)===l},Bt.isFragment=function(d){return m(d)===r},Bt.isLazy=function(d){return m(d)===h},Bt.isMemo=function(d){return m(d)===f},Bt.isPortal=function(d){return m(d)===t},Bt.isProfiler=function(d){return m(d)===i},Bt.isStrictMode=function(d){return m(d)===n},Bt.isSuspense=function(d){return m(d)===u},Bt.isSuspenseList=function(d){return m(d)===c},Bt.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===i||d===n||d===u||d===c||d===p||typeof d=="object"&&d!==null&&(d.$$typeof===h||d.$$typeof===f||d.$$typeof===a||d.$$typeof===o||d.$$typeof===l||d.$$typeof===y||d.getModuleId!==void 0)},Bt.typeOf=m,Bt}var qt={};/**
|
|
74
|
+
* @license React
|
|
75
|
+
* react-is.development.js
|
|
76
|
+
*
|
|
77
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the MIT license found in the
|
|
80
|
+
* LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/var ww;function n5(){return ww||(ww=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),y=!1,m=!1,d=!1,b=!1,v=!1,x;x=Symbol.for("react.module.reference");function _(W){return!!(typeof W=="string"||typeof W=="function"||W===r||W===i||v||W===n||W===u||W===c||b||W===p||y||m||d||typeof W=="object"&&W!==null&&(W.$$typeof===h||W.$$typeof===f||W.$$typeof===a||W.$$typeof===o||W.$$typeof===l||W.$$typeof===x||W.getModuleId!==void 0))}function g(W){if(typeof W=="object"&&W!==null){var tt=W.$$typeof;switch(tt){case e:var ft=W.type;switch(ft){case r:case i:case n:case u:case c:return ft;default:var at=ft&&ft.$$typeof;switch(at){case s:case o:case l:case h:case f:case a:return at;default:return tt}}case t:return tt}}}var w=o,S=a,A=e,T=l,M=r,P=h,E=f,C=t,$=i,j=n,k=u,R=c,L=!1,U=!1;function I(W){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(W){return U||(U=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function q(W){return g(W)===o}function N(W){return g(W)===a}function G(W){return typeof W=="object"&&W!==null&&W.$$typeof===e}function F(W){return g(W)===l}function K(W){return g(W)===r}function Z(W){return g(W)===h}function X(W){return g(W)===f}function z(W){return g(W)===t}function Y(W){return g(W)===i}function V(W){return g(W)===n}function D(W){return g(W)===u}function rt(W){return g(W)===c}qt.ContextConsumer=w,qt.ContextProvider=S,qt.Element=A,qt.ForwardRef=T,qt.Fragment=M,qt.Lazy=P,qt.Memo=E,qt.Portal=C,qt.Profiler=$,qt.StrictMode=j,qt.Suspense=k,qt.SuspenseList=R,qt.isAsyncMode=I,qt.isConcurrentMode=B,qt.isContextConsumer=q,qt.isContextProvider=N,qt.isElement=G,qt.isForwardRef=F,qt.isFragment=K,qt.isLazy=Z,qt.isMemo=X,qt.isPortal=z,qt.isProfiler=Y,qt.isStrictMode=V,qt.isSuspense=D,qt.isSuspenseList=rt,qt.isValidElementType=_,qt.typeOf=g})()),qt}var Sw;function i5(){return Sw||(Sw=1,process.env.NODE_ENV==="production"?Vl.exports=r5():Vl.exports=n5()),Vl.exports}var a5=i5(),Kd,Aw;function sM(){if(Aw)return Kd;Aw=1;var e=ni(),t=ii(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Kd=n,Kd}var Xd,Ow;function o5(){if(Ow)return Xd;Ow=1;var e=sM();function t(r){return e(r)&&r!=+r}return Xd=t,Xd}var s5=o5();const Fo=Xt(s5);var l5=sM();const u5=Xt(l5);var dn=function(t){return t===0?0:t>0?1:-1},Zi=function(t){return da(t)&&t.indexOf("%")===t.length-1},st=function(t){return u5(t)&&!Fo(t)},c5=function(t){return bt(t)},Be=function(t){return st(t)||da(t)},f5=0,Oa=function(t){var r=++f5;return"".concat(t||"").concat(r)},ma=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!st(t)&&!da(t))return n;var a;if(Zi(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return Fo(a)&&(a=n),i&&a>r&&(a=r),a},di=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},h5=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},Oe=function(t,r){return st(t)&&st(r)?function(n){return t+n*(r-t)}:function(){return r}};function Uu(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):nn(n,t))===r})}var p5=function(t){if(!t||!t.length)return null;for(var r=t.length,n=0,i=0,a=0,o=0,s=1/0,l=-1/0,u=0,c=0,f=0;f<r;f++)u=t[f].cx||0,c=t[f].cy||0,n+=u,i+=c,a+=u*c,o+=u*u,s=Math.min(s,u),l=Math.max(l,u);var h=r*o!==n*n?(r*a-n*i)/(r*o-n*n):0;return{xmin:s,xmax:l,a:h,b:(i-h*n)/r}},d5=function(t,r){return st(t)&&st(r)?t-r:da(t)&&da(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function Ja(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function Gy(e){"@babel/helpers - typeof";return Gy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gy(e)}var m5=["viewBox","children"],y5=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Tw=["points","pathLength"],Yd={svg:m5,polygon:Tw,polyline:Tw},_0=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Wu=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(O.isValidElement(t)&&(n=t.props),!qo(n))return null;var i={};return Object.keys(n).forEach(function(a){_0.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},g5=function(t,r,n){return function(i){return t(r,n,i),null}},Vs=function(t,r,n){if(!qo(t)||Gy(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];_0.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=g5(o,r,n))}),i},v5=["children"],b5=["children"];function Pw(e,t){if(e==null)return{};var r=x5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function x5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ky(e){"@babel/helpers - typeof";return Ky=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ky(e)}var Ew={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Gn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Mw=null,Vd=null,w0=function e(t){if(t===Mw&&Array.isArray(Vd))return Vd;var r=[];return O.Children.forEach(t,function(n){bt(n)||(a5.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),Vd=r,Mw=t,r};function Tr(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Gn(i)}):n=[Gn(t)],w0(e).forEach(function(i){var a=nn(i,"type.displayName")||nn(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Ir(e,t){var r=Tr(e,t);return r&&r[0]}var Cw=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!st(n)||n<=0||!st(i)||i<=0)},_5=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],w5=function(t){return t&&t.type&&da(t.type)&&_5.indexOf(t.type)>=0},lM=function(t){return t&&Ky(t)==="object"&&"clipDot"in t},S5=function(t,r,n,i){var a,o=(a=Yd==null?void 0:Yd[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!St(t)&&(i&&o.includes(r)||y5.includes(r))||n&&_0.includes(r)},_t=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(O.isValidElement(t)&&(i=t.props),!qo(i))return null;var a={};return Object.keys(i).forEach(function(o){var s;S5((s=i)===null||s===void 0?void 0:s[o],o,r,n)&&(a[o]=i[o])}),a},Xy=function e(t,r){if(t===r)return!0;var n=O.Children.count(t);if(n!==O.Children.count(r))return!1;if(n===0)return!0;if(n===1)return kw(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!kw(a,o))return!1}return!0},kw=function(t,r){if(bt(t)&&bt(r))return!0;if(!bt(t)&&!bt(r)){var n=t.props||{},i=n.children,a=Pw(n,v5),o=r.props||{},s=o.children,l=Pw(o,b5);return i&&s?Ja(a,l)&&Xy(i,s):!i&&!s?Ja(a,l):!1}return!1},$w=function(t,r){var n=[],i={};return w0(t).forEach(function(a,o){if(w5(a))n.push(a);else if(a){var s=Gn(a.type),l=r[s]||{},u=l.handler,c=l.once;if(u&&(!c||!i[s])){var f=u(a,s,o);n.push(f),i[s]=!0}}}),n},A5=function(t){var r=t&&t.type;return r&&Ew[r]?Ew[r]:null},O5=function(t,r){return w0(r).indexOf(t)},T5=["children","width","height","viewBox","className","style","title","desc"];function Yy(){return Yy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yy.apply(this,arguments)}function P5(e,t){if(e==null)return{};var r=E5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function E5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Vy(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,s=e.title,l=e.desc,u=P5(e,T5),c=i||{width:r,height:n,x:0,y:0},f=Mt("recharts-surface",a);return O.createElement("svg",Yy({},_t(u,!0,"svg"),{className:f,width:r,height:n,style:o,viewBox:"".concat(c.x," ").concat(c.y," ").concat(c.width," ").concat(c.height)}),O.createElement("title",null,s),O.createElement("desc",null,l),t)}var M5=["children","className"];function Zy(){return Zy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zy.apply(this,arguments)}function C5(e,t){if(e==null)return{};var r=k5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function k5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var It=O.forwardRef(function(e,t){var r=e.children,n=e.className,i=C5(e,M5),a=Mt("recharts-layer",n);return O.createElement("g",Zy({className:a},_t(i,!0),{ref:t}),r)}),$5=process.env.NODE_ENV!=="production",Kn=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];if($5&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var o=0;console.warn(r.replace(/%s/g,function(){return i[o++]}))}},Zd,jw;function j5(){if(jw)return Zd;jw=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return Zd=e,Zd}var Jd,Rw;function R5(){if(Rw)return Jd;Rw=1;var e=j5();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return Jd=t,Jd}var Qd,Dw;function uM(){if(Dw)return Qd;Dw=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+i+a+"]");function l(u){return s.test(u)}return Qd=l,Qd}var tm,Iw;function D5(){if(Iw)return tm;Iw=1;function e(t){return t.split("")}return tm=e,tm}var em,Nw;function I5(){if(Nw)return em;Nw=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",s="["+i+"]",l="\\ud83c[\\udffb-\\udfff]",u="(?:"+s+"|"+l+")",c="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",y=u+"?",m="["+a+"]?",d="(?:"+p+"(?:"+[c,f,h].join("|")+")"+m+y+")*",b=m+y+d,v="(?:"+[c+s+"?",s,f,h,o].join("|")+")",x=RegExp(l+"(?="+l+")|"+v+b,"g");function _(g){return g.match(x)||[]}return em=_,em}var rm,Lw;function N5(){if(Lw)return rm;Lw=1;var e=D5(),t=uM(),r=I5();function n(i){return t(i)?r(i):e(i)}return rm=n,rm}var nm,Bw;function L5(){if(Bw)return nm;Bw=1;var e=R5(),t=uM(),r=N5(),n=l0();function i(a){return function(o){o=n(o);var s=t(o)?r(o):void 0,l=s?s[0]:o.charAt(0),u=s?e(s,1).join(""):o.slice(1);return l[a]()+u}}return nm=i,nm}var im,qw;function B5(){if(qw)return im;qw=1;var e=L5(),t=e("toUpperCase");return im=t,im}var q5=B5();const Xc=Xt(q5);function Zs(e){"@babel/helpers - typeof";return Zs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zs(e)}var F5=["type","size","sizeType"];function Jy(){return Jy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jy.apply(this,arguments)}function Fw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function zw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fw(Object(r),!0).forEach(function(n){z5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function z5(e,t,r){return t=U5(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U5(e){var t=W5(e,"string");return Zs(t)=="symbol"?t:t+""}function W5(e,t){if(Zs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function H5(e,t){if(e==null)return{};var r=G5(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function G5(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var cM={symbolCircle:Rv,symbolCross:nI,symbolDiamond:aI,symbolSquare:oI,symbolStar:cI,symbolTriangle:fI,symbolWye:pI},K5=Math.PI/180,X5=function(t){var r="symbol".concat(Xc(t));return cM[r]||Rv},Y5=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*K5;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},V5=function(t,r){cM["symbol".concat(Xc(t))]=r},Yc=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,s=o===void 0?"area":o,l=H5(t,F5),u=zw(zw({},l),{},{type:n,size:a,sizeType:s}),c=function(){var d=X5(n),b=dI().type(d).size(Y5(a,s,n));return b()},f=u.className,h=u.cx,p=u.cy,y=_t(u,!0);return h===+h&&p===+p&&a===+a?O.createElement("path",Jy({},y,{className:Mt("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(p,")"),d:c()})):null};Yc.registerSymbol=V5;function ho(e){"@babel/helpers - typeof";return ho=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ho(e)}function Qy(){return Qy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qy.apply(this,arguments)}function Uw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Z5(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Uw(Object(r),!0).forEach(function(n){Js(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uw(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function J5(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q5(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,hM(n.key),n)}}function tz(e,t,r){return t&&Q5(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ez(e,t,r){return t=Hu(t),rz(e,fM()?Reflect.construct(t,r||[],Hu(e).constructor):t.apply(e,r))}function rz(e,t){if(t&&(ho(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nz(e)}function nz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fM=function(){return!!e})()}function Hu(e){return Hu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Hu(e)}function iz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tg(e,t)}function tg(e,t){return tg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},tg(e,t)}function Js(e,t,r){return t=hM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hM(e){var t=az(e,"string");return ho(t)=="symbol"?t:t+""}function az(e,t){if(ho(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ho(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Yr=32,S0=(function(e){function t(){return J5(this,t),ez(this,t,arguments)}return iz(t,e),tz(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Yr/2,o=Yr/6,s=Yr/3,l=n.inactive?i:n.color;if(n.type==="plainline")return O.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Yr,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return O.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(s,`
|
|
82
|
+
A`).concat(o,",").concat(o,",0,1,1,").concat(2*s,",").concat(a,`
|
|
83
|
+
H`).concat(Yr,"M").concat(2*s,",").concat(a,`
|
|
84
|
+
A`).concat(o,",").concat(o,",0,1,1,").concat(s,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return O.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(Yr/8,"h").concat(Yr,"v").concat(Yr*3/4,"h").concat(-Yr,"z"),className:"recharts-legend-icon"});if(O.isValidElement(n.legendIcon)){var u=Z5({},n);return delete u.legendIcon,O.cloneElement(n.legendIcon,u)}return O.createElement(Yc,{fill:l,cx:a,cy:a,size:Yr,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,s=i.layout,l=i.formatter,u=i.inactiveColor,c={x:0,y:0,width:Yr,height:Yr},f={display:s==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(p,y){var m=p.formatter||l,d=Mt(Js(Js({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var b=St(p.value)?null:p.value;Kn(!St(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var v=p.inactive?u:p.color;return O.createElement("li",Qy({className:d,style:f,key:"legend-item-".concat(y)},Vs(n.props,p,y)),O.createElement(Vy,{width:o,height:o,viewBox:c,style:h},n.renderIcon(p)),O.createElement("span",{className:"recharts-legend-item-text",style:{color:v}},m?m(b,p,y):b))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var s={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return O.createElement("ul",{className:"recharts-default-legend",style:s},this.renderItems())}}])})(O.PureComponent);Js(S0,"displayName","Legend");Js(S0,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var am,Ww;function pM(){if(Ww)return am;Ww=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return am=e,am}var om,Hw;function oz(){if(Hw)return om;Hw=1;function e(t){return t!==t}return om=e,om}var sm,Gw;function sz(){if(Gw)return sm;Gw=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return sm=e,sm}var lm,Kw;function lz(){if(Kw)return lm;Kw=1;var e=pM(),t=oz(),r=sz();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return lm=n,lm}var um,Xw;function uz(){if(Xw)return um;Xw=1;var e=lz();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return um=t,um}var cm,Yw;function cz(){if(Yw)return cm;Yw=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return cm=e,cm}var fm,Vw;function fz(){if(Vw)return fm;Vw=1;function e(){}return fm=e,fm}var hm,Zw;function hz(){if(Zw)return hm;Zw=1;var e=KE(),t=fz(),r=y0(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return hm=i,hm}var pm,Jw;function pz(){if(Jw)return pm;Jw=1;var e=BE(),t=uz(),r=cz(),n=FE(),i=hz(),a=y0(),o=200;function s(l,u,c){var f=-1,h=t,p=l.length,y=!0,m=[],d=m;if(c)y=!1,h=r;else if(p>=o){var b=u?null:i(l);if(b)return a(b);y=!1,h=n,d=new e}else d=u?[]:m;t:for(;++f<p;){var v=l[f],x=u?u(v):v;if(v=c||v!==0?v:0,y&&x===x){for(var _=d.length;_--;)if(d[_]===x)continue t;u&&d.push(x),m.push(v)}else h(d,x,c)||(d!==m&&d.push(x),m.push(v))}return m}return pm=s,pm}var dm,Qw;function dz(){if(Qw)return dm;Qw=1;var e=$i(),t=pz();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return dm=r,dm}var mz=dz();const tS=Xt(mz);function dM(e,t,r){return t===!0?tS(e,r):St(t)?tS(e,t):e}function po(e){"@babel/helpers - typeof";return po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},po(e)}var yz=["ref"];function eS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eS(Object(r),!0).forEach(function(n){Vc(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yM(n.key),n)}}function vz(e,t,r){return t&&rS(e.prototype,t),r&&rS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function bz(e,t,r){return t=Gu(t),xz(e,mM()?Reflect.construct(t,r||[],Gu(e).constructor):t.apply(e,r))}function xz(e,t){if(t&&(po(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _z(e)}function _z(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mM=function(){return!!e})()}function Gu(e){return Gu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Gu(e)}function wz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eg(e,t)}function eg(e,t){return eg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},eg(e,t)}function Vc(e,t,r){return t=yM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yM(e){var t=Sz(e,"string");return po(t)=="symbol"?t:t+""}function Sz(e,t){if(po(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(po(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Az(e,t){if(e==null)return{};var r=Oz(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Oz(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Tz(e){return e.value}function Pz(e,t){if(O.isValidElement(e))return O.cloneElement(e,t);if(typeof e=="function")return O.createElement(e,t);t.ref;var r=Az(t,yz);return O.createElement(S0,r)}var nS=1,aa=(function(e){function t(){var r;gz(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=bz(this,t,[].concat(i)),Vc(r,"lastBoundingBox",{width:-1,height:-1}),r}return wz(t,e),vz(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>nS||Math.abs(i.height-this.lastBoundingBox.height)>nS)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Bn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,s=i.verticalAlign,l=i.margin,u=i.chartWidth,c=i.chartHeight,f,h;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var p=this.getBBoxSnapshot();f={left:((u||0)-p.width)/2}}else f=o==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(s==="middle"){var y=this.getBBoxSnapshot();h={top:((c||0)-y.height)/2}}else h=s==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Bn(Bn({},f),h)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,s=i.height,l=i.wrapperStyle,u=i.payloadUniqBy,c=i.payload,f=Bn(Bn({position:"absolute",width:o||"auto",height:s||"auto"},this.getDefaultPosition(l)),l);return O.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){n.wrapperNode=p}},Pz(a,Bn(Bn({},this.props),{},{payload:dM(c,u,Tz)})))}}],[{key:"getWithHeight",value:function(n,i){var a=Bn(Bn({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&st(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(O.PureComponent);Vc(aa,"displayName","Legend");Vc(aa,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});function Qs(e){"@babel/helpers - typeof";return Qs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qs(e)}function rg(){return rg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rg.apply(this,arguments)}function Ez(e,t){return $z(e)||kz(e,t)||Cz(e,t)||Mz()}function Mz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
85
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cz(e,t){if(e){if(typeof e=="string")return iS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return iS(e,t)}}function iS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function kz(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function $z(e){if(Array.isArray(e))return e}function aS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function mm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aS(Object(r),!0).forEach(function(n){jz(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jz(e,t,r){return t=Rz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rz(e){var t=Dz(e,"string");return Qs(t)=="symbol"?t:t+""}function Dz(e,t){if(Qs(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qs(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Iz(e){return Array.isArray(e)&&Be(e[0])&&Be(e[1])?e.join(" ~ "):e}var Nz=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,s=o===void 0?{}:o,l=t.labelStyle,u=l===void 0?{}:l,c=t.payload,f=t.formatter,h=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,m=t.label,d=t.labelFormatter,b=t.accessibilityLayer,v=b===void 0?!1:b,x=function(){if(c&&c.length){var E={padding:0,margin:0},C=(h?Kc(c,h):c).map(function($,j){if($.type==="none")return null;var k=mm({display:"block",paddingTop:4,paddingBottom:4,color:$.color||"#000"},s),R=$.formatter||f||Iz,L=$.value,U=$.name,I=L,B=U;if(R&&I!=null&&B!=null){var q=R(L,U,$,j,c);if(Array.isArray(q)){var N=Ez(q,2);I=N[0],B=N[1]}else I=q}return O.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(j),style:k},Be(B)?O.createElement("span",{className:"recharts-tooltip-item-name"},B):null,Be(B)?O.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,O.createElement("span",{className:"recharts-tooltip-item-value"},I),O.createElement("span",{className:"recharts-tooltip-item-unit"},$.unit||""))});return O.createElement("ul",{className:"recharts-tooltip-item-list",style:E},C)}return null},_=mm({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),g=mm({margin:0},u),w=!bt(m),S=w?m:"",A=Mt("recharts-default-tooltip",p),T=Mt("recharts-tooltip-label",y);w&&d&&c!==void 0&&c!==null&&(S=d(m,c));var M=v?{role:"status","aria-live":"assertive"}:{};return O.createElement("div",rg({className:A,style:_},M),O.createElement("p",{className:T,style:g},O.isValidElement(S)?S:"".concat(S)),x())};function tl(e){"@babel/helpers - typeof";return tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tl(e)}function Zl(e,t,r){return t=Lz(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lz(e){var t=Bz(e,"string");return tl(t)=="symbol"?t:t+""}function Bz(e,t){if(tl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(tl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var as="recharts-tooltip-wrapper",qz={visibility:"hidden"};function Fz(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return Mt(as,Zl(Zl(Zl(Zl({},"".concat(as,"-right"),st(r)&&t&&st(t.x)&&r>=t.x),"".concat(as,"-left"),st(r)&&t&&st(t.x)&&r<t.x),"".concat(as,"-bottom"),st(n)&&t&&st(t.y)&&n>=t.y),"".concat(as,"-top"),st(n)&&t&&st(t.y)&&n<t.y))}function oS(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,s=e.tooltipDimension,l=e.viewBox,u=e.viewBoxDimension;if(a&&st(a[n]))return a[n];var c=r[n]-s-i,f=r[n]+i;if(t[n])return o[n]?c:f;if(o[n]){var h=c,p=l[n];return h<p?Math.max(f,l[n]):Math.max(c,l[n])}var y=f+s,m=l[n]+u;return y>m?Math.max(c,l[n]):Math.max(f,l[n])}function zz(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Uz(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,u,c,f;return o.height>0&&o.width>0&&r?(c=oS({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),f=oS({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),u=zz({translateX:c,translateY:f,useTranslate3d:s})):u=qz,{cssProperties:u,cssClasses:Fz({translateX:c,translateY:f,coordinate:r})}}function mo(e){"@babel/helpers - typeof";return mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mo(e)}function sS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sS(Object(r),!0).forEach(function(n){ig(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wz(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hz(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vM(n.key),n)}}function Gz(e,t,r){return t&&Hz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kz(e,t,r){return t=Ku(t),Xz(e,gM()?Reflect.construct(t,r||[],Ku(e).constructor):t.apply(e,r))}function Xz(e,t){if(t&&(mo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yz(e)}function Yz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gM=function(){return!!e})()}function Ku(e){return Ku=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ku(e)}function Vz(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ng(e,t)}function ng(e,t){return ng=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ng(e,t)}function ig(e,t,r){return t=vM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vM(e){var t=Zz(e,"string");return mo(t)=="symbol"?t:t+""}function Zz(e,t){if(mo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var uS=1,Jz=(function(e){function t(){var r;Wz(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Kz(this,t,[].concat(i)),ig(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),ig(r,"handleKeyDown",function(o){if(o.key==="Escape"){var s,l,u,c;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(s=(l=r.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&s!==void 0?s:0,y:(u=(c=r.props.coordinate)===null||c===void 0?void 0:c.y)!==null&&u!==void 0?u:0}})}}),r}return Vz(t,e),Gz(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>uS||Math.abs(n.height-this.state.lastBoundingBox.height)>uS)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.children,c=i.coordinate,f=i.hasPayload,h=i.isAnimationActive,p=i.offset,y=i.position,m=i.reverseDirection,d=i.useTranslate3d,b=i.viewBox,v=i.wrapperStyle,x=Uz({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:p,position:y,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:d,viewBox:b}),_=x.cssClasses,g=x.cssProperties,w=lS(lS({transition:h&&a?"transform ".concat(s,"ms ").concat(l):void 0},g),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},v);return O.createElement("div",{tabIndex:-1,className:_,style:w,ref:function(A){n.wrapperNode=A}},u)}}])})(O.PureComponent),Qz=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},ji={isSsr:Qz()};function yo(e){"@babel/helpers - typeof";return yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yo(e)}function cS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function fS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cS(Object(r),!0).forEach(function(n){A0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function t3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function e3(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xM(n.key),n)}}function r3(e,t,r){return t&&e3(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function n3(e,t,r){return t=Xu(t),i3(e,bM()?Reflect.construct(t,r||[],Xu(e).constructor):t.apply(e,r))}function i3(e,t){if(t&&(yo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return a3(e)}function a3(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bM=function(){return!!e})()}function Xu(e){return Xu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xu(e)}function o3(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ag(e,t)}function ag(e,t){return ag=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ag(e,t)}function A0(e,t,r){return t=xM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xM(e){var t=s3(e,"string");return yo(t)=="symbol"?t:t+""}function s3(e,t){if(yo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function l3(e){return e.dataKey}function u3(e,t){return O.isValidElement(e)?O.cloneElement(e,t):typeof e=="function"?O.createElement(e,t):O.createElement(Nz,t)}var On=(function(e){function t(){return t3(this,t),n3(this,t,arguments)}return o3(t,e),r3(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,s=i.animationDuration,l=i.animationEasing,u=i.content,c=i.coordinate,f=i.filterNull,h=i.isAnimationActive,p=i.offset,y=i.payload,m=i.payloadUniqBy,d=i.position,b=i.reverseDirection,v=i.useTranslate3d,x=i.viewBox,_=i.wrapperStyle,g=y??[];f&&g.length&&(g=dM(y.filter(function(S){return S.value!=null&&(S.hide!==!0||n.props.includeHidden)}),m,l3));var w=g.length>0;return O.createElement(Jz,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:h,active:a,coordinate:c,hasPayload:w,offset:p,position:d,reverseDirection:b,useTranslate3d:v,viewBox:x,wrapperStyle:_},u3(u,fS(fS({},this.props),{},{payload:g})))}}])})(O.PureComponent);A0(On,"displayName","Tooltip");A0(On,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!ji.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var ym,hS;function c3(){if(hS)return ym;hS=1;var e=vn(),t=function(){return e.Date.now()};return ym=t,ym}var gm,pS;function f3(){if(pS)return gm;pS=1;var e=ki(),t=c3(),r=o0(),n="Expected a function",i=Math.max,a=Math.min;function o(s,l,u){var c,f,h,p,y,m,d=0,b=!1,v=!1,x=!0;if(typeof s!="function")throw new TypeError(n);l=r(l)||0,e(u)&&(b=!!u.leading,v="maxWait"in u,h=v?i(r(u.maxWait)||0,l):h,x="trailing"in u?!!u.trailing:x);function _(C){var $=c,j=f;return c=f=void 0,d=C,p=s.apply(j,$),p}function g(C){return d=C,y=setTimeout(A,l),b?_(C):p}function w(C){var $=C-m,j=C-d,k=l-$;return v?a(k,h-j):k}function S(C){var $=C-m,j=C-d;return m===void 0||$>=l||$<0||v&&j>=h}function A(){var C=t();if(S(C))return T(C);y=setTimeout(A,w(C))}function T(C){return y=void 0,x&&c?_(C):(c=f=void 0,p)}function M(){y!==void 0&&clearTimeout(y),d=0,c=m=f=y=void 0}function P(){return y===void 0?p:T(t())}function E(){var C=t(),$=S(C);if(c=arguments,f=this,m=C,$){if(y===void 0)return g(m);if(v)return clearTimeout(y),y=setTimeout(A,l),_(m)}return y===void 0&&(y=setTimeout(A,l)),p}return E.cancel=M,E.flush=P,E}return gm=o,gm}var vm,dS;function h3(){if(dS)return vm;dS=1;var e=f3(),t=ki(),r="Expected a function";function n(i,a,o){var s=!0,l=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(s="leading"in o?!!o.leading:s,l="trailing"in o?!!o.trailing:l),e(i,a,{leading:s,maxWait:a,trailing:l})}return vm=n,vm}var p3=h3();const _M=Xt(p3);function el(e){"@babel/helpers - typeof";return el=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},el(e)}function mS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mS(Object(r),!0).forEach(function(n){d3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d3(e,t,r){return t=m3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m3(e){var t=y3(e,"string");return el(t)=="symbol"?t:t+""}function y3(e,t){if(el(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(el(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function g3(e,t){return _3(e)||x3(e,t)||b3(e,t)||v3()}function v3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
86
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b3(e,t){if(e){if(typeof e=="string")return yS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yS(e,t)}}function yS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function x3(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function _3(e){if(Array.isArray(e))return e}var w3=O.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,s=e.height,l=s===void 0?"100%":s,u=e.minWidth,c=u===void 0?0:u,f=e.minHeight,h=e.maxHeight,p=e.children,y=e.debounce,m=y===void 0?0:y,d=e.id,b=e.className,v=e.onResize,x=e.style,_=x===void 0?{}:x,g=O.useRef(null),w=O.useRef();w.current=v,O.useImperativeHandle(t,function(){return Object.defineProperty(g.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),g.current},configurable:!0})});var S=O.useState({containerWidth:i.width,containerHeight:i.height}),A=g3(S,2),T=A[0],M=A[1],P=O.useCallback(function(C,$){M(function(j){var k=Math.round(C),R=Math.round($);return j.containerWidth===k&&j.containerHeight===R?j:{containerWidth:k,containerHeight:R}})},[]);O.useEffect(function(){var C=function(U){var I,B=U[0].contentRect,q=B.width,N=B.height;P(q,N),(I=w.current)===null||I===void 0||I.call(w,q,N)};m>0&&(C=_M(C,m,{trailing:!0,leading:!1}));var $=new ResizeObserver(C),j=g.current.getBoundingClientRect(),k=j.width,R=j.height;return P(k,R),$.observe(g.current),function(){$.disconnect()}},[P,m]);var E=O.useMemo(function(){var C=T.containerWidth,$=T.containerHeight;if(C<0||$<0)return null;Kn(Zi(o)||Zi(l),`The width(%s) and height(%s) are both fixed numbers,
|
|
87
|
+
maybe you don't need to use a ResponsiveContainer.`,o,l),Kn(!r||r>0,"The aspect(%s) must be greater than zero.",r);var j=Zi(o)?C:o,k=Zi(l)?$:l;r&&r>0&&(j?k=j/r:k&&(j=k*r),h&&k>h&&(k=h)),Kn(j>0||k>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
88
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
89
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
90
|
+
height and width.`,j,k,o,l,c,f,r);var R=!Array.isArray(p)&&Gn(p.type).endsWith("Chart");return O.Children.map(p,function(L){return O.isValidElement(L)?O.cloneElement(L,Jl({width:j,height:k},R?{style:Jl({height:"100%",width:"100%",maxHeight:k,maxWidth:j},L.props.style)}:{})):L})},[r,p,l,h,f,c,T,o]);return O.createElement("div",{id:d?"".concat(d):void 0,className:Mt("recharts-responsive-container",b),style:Jl(Jl({},_),{},{width:o,height:l,minWidth:c,minHeight:f,maxHeight:h}),ref:g},E)}),O0=function(t){return null};O0.displayName="Cell";function rl(e){"@babel/helpers - typeof";return rl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rl(e)}function gS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function og(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gS(Object(r),!0).forEach(function(n){S3(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function S3(e,t,r){return t=A3(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A3(e){var t=O3(e,"string");return rl(t)=="symbol"?t:t+""}function O3(e,t){if(rl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(rl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Da={widthCache:{},cacheCount:0},T3=2e3,P3={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},vS="recharts_measurement_span";function E3(e){var t=og({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Ms=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ji.isSsr)return{width:0,height:0};var n=E3(r),i=JSON.stringify({text:t,copyStyle:n});if(Da.widthCache[i])return Da.widthCache[i];try{var a=document.getElementById(vS);a||(a=document.createElement("span"),a.setAttribute("id",vS),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=og(og({},P3),n);Object.assign(a.style,o),a.textContent="".concat(t);var s=a.getBoundingClientRect(),l={width:s.width,height:s.height};return Da.widthCache[i]=l,++Da.cacheCount>T3&&(Da.cacheCount=0,Da.widthCache={}),l}catch{return{width:0,height:0}}},M3=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function nl(e){"@babel/helpers - typeof";return nl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nl(e)}function Yu(e,t){return j3(e)||$3(e,t)||k3(e,t)||C3()}function C3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
91
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k3(e,t){if(e){if(typeof e=="string")return bS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bS(e,t)}}function bS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $3(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function j3(e){if(Array.isArray(e))return e}function R3(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,I3(n.key),n)}}function D3(e,t,r){return t&&xS(e.prototype,t),r&&xS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function I3(e){var t=N3(e,"string");return nl(t)=="symbol"?t:t+""}function N3(e,t){if(nl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(nl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _S=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,wS=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,L3=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,B3=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,wM={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},q3=Object.keys(wM),Fa="NaN";function F3(e,t){return e*wM[t]}var Ql=(function(){function e(t,r){R3(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!L3.test(r)&&(this.num=NaN,this.unit=""),q3.includes(r)&&(this.num=F3(t,r),this.unit="px")}return D3(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=B3.exec(r))!==null&&n!==void 0?n:[],a=Yu(i,3),o=a[1],s=a[2];return new e(parseFloat(o),s??"")}}])})();function SM(e){if(e.includes(Fa))return Fa;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=_S.exec(t))!==null&&r!==void 0?r:[],i=Yu(n,4),a=i[1],o=i[2],s=i[3],l=Ql.parse(a??""),u=Ql.parse(s??""),c=o==="*"?l.multiply(u):l.divide(u);if(c.isNaN())return Fa;t=t.replace(_S,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,h=(f=wS.exec(t))!==null&&f!==void 0?f:[],p=Yu(h,4),y=p[1],m=p[2],d=p[3],b=Ql.parse(y??""),v=Ql.parse(d??""),x=m==="+"?b.add(v):b.subtract(v);if(x.isNaN())return Fa;t=t.replace(wS,x.toString())}return t}var SS=/\(([^()]*)\)/;function z3(e){for(var t=e;t.includes("(");){var r=SS.exec(t),n=Yu(r,2),i=n[1];t=t.replace(SS,SM(i))}return t}function U3(e){var t=e.replace(/\s+/g,"");return t=z3(t),t=SM(t),t}function W3(e){try{return U3(e)}catch{return Fa}}function bm(e){var t=W3(e.slice(5,-1));return t===Fa?"":t}var H3=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],G3=["dx","dy","angle","className","breakAll"];function sg(){return sg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sg.apply(this,arguments)}function AS(e,t){if(e==null)return{};var r=K3(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function K3(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function OS(e,t){return Z3(e)||V3(e,t)||Y3(e,t)||X3()}function X3(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
92
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y3(e,t){if(e){if(typeof e=="string")return TS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return TS(e,t)}}function TS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function V3(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function Z3(e){if(Array.isArray(e))return e}var AM=/[ \f\n\r\t\v\u2028\u2029]+/,OM=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];bt(r)||(n?a=r.toString().split(""):a=r.toString().split(AM));var o=a.map(function(l){return{word:l,width:Ms(l,i).width}}),s=n?0:Ms(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},J3=function(t,r,n,i,a){var o=t.maxLines,s=t.children,l=t.style,u=t.breakAll,c=st(o),f=s,h=function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return j.reduce(function(k,R){var L=R.word,U=R.width,I=k[k.length-1];if(I&&(i==null||a||I.width+U+n<Number(i)))I.words.push(L),I.width+=U+n;else{var B={words:[L],width:U};k.push(B)}return k},[])},p=h(r),y=function(j){return j.reduce(function(k,R){return k.width>R.width?k:R})};if(!c)return p;for(var m="…",d=function(j){var k=f.slice(0,j),R=OM({breakAll:u,style:l,children:k+m}).wordsWithComputedWidth,L=h(R),U=L.length>o||y(L).width>Number(i);return[U,L]},b=0,v=f.length-1,x=0,_;b<=v&&x<=f.length-1;){var g=Math.floor((b+v)/2),w=g-1,S=d(w),A=OS(S,2),T=A[0],M=A[1],P=d(g),E=OS(P,1),C=E[0];if(!T&&!C&&(b=g+1),T&&C&&(v=g-1),!T&&C){_=M;break}x++}return _||p},PS=function(t){var r=bt(t)?[]:t.toString().split(AM);return[{words:r}]},Q3=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!ji.isSsr){var l,u,c=OM({breakAll:o,children:i,style:a});if(c){var f=c.wordsWithComputedWidth,h=c.spaceWidth;l=f,u=h}else return PS(i);return J3({breakAll:o,children:i,maxLines:s,style:a},l,u,r,n)}return PS(i)},ES="#808080",Vu=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,u=l===void 0?"0.71em":l,c=t.scaleToFit,f=c===void 0?!1:c,h=t.textAnchor,p=h===void 0?"start":h,y=t.verticalAnchor,m=y===void 0?"end":y,d=t.fill,b=d===void 0?ES:d,v=AS(t,H3),x=O.useMemo(function(){return Q3({breakAll:v.breakAll,children:v.children,maxLines:v.maxLines,scaleToFit:f,style:v.style,width:v.width})},[v.breakAll,v.children,v.maxLines,f,v.style,v.width]),_=v.dx,g=v.dy,w=v.angle,S=v.className,A=v.breakAll,T=AS(v,G3);if(!Be(n)||!Be(a))return null;var M=n+(st(_)?_:0),P=a+(st(g)?g:0),E;switch(m){case"start":E=bm("calc(".concat(u,")"));break;case"middle":E=bm("calc(".concat((x.length-1)/2," * -").concat(s," + (").concat(u," / 2))"));break;default:E=bm("calc(".concat(x.length-1," * -").concat(s,")"));break}var C=[];if(f){var $=x[0].width,j=v.width;C.push("scale(".concat((st(j)?j/$:1)/$,")"))}return w&&C.push("rotate(".concat(w,", ").concat(M,", ").concat(P,")")),C.length&&(T.transform=C.join(" ")),O.createElement("text",sg({},_t(T,!0),{x:M,y:P,className:Mt("recharts-text",S),textAnchor:p,fill:b.includes("url")?ES:b}),x.map(function(k,R){var L=k.words.join(A?"":" ");return O.createElement("tspan",{x:M,dy:R===0?E:s,key:"".concat(L,"-").concat(R)},L)}))};const MS=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Ls,scaleDiverging:HT,scaleDivergingLog:GT,scaleDivergingPow:Cv,scaleDivergingSqrt:ZD,scaleDivergingSymlog:KT,scaleIdentity:OT,scaleImplicit:gy,scaleLinear:Oi,scaleLog:PT,scaleOrdinal:pv,scalePoint:bs,scalePow:xv,scaleQuantile:CT,scaleQuantize:kT,scaleRadial:MT,scaleSequential:FT,scaleSequentialLog:zT,scaleSequentialPow:Mv,scaleSequentialQuantile:WT,scaleSequentialSqrt:VD,scaleSequentialSymlog:UT,scaleSqrt:$R,scaleSymlog:ET,scaleThreshold:$T,scaleTime:Ha,scaleUtc:YD,tickFormat:AT},Symbol.toStringTag,{value:"Module"}));var xm,CS;function TM(){if(CS)return xm;CS=1;var e=Lo();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var s=r[a],l=n(s);if(l!=null&&(u===void 0?l===l&&!e(l):i(l,u)))var u=l,c=s}return c}return xm=t,xm}var _m,kS;function tU(){if(kS)return _m;kS=1;function e(t,r){return t>r}return _m=e,_m}var wm,$S;function eU(){if($S)return wm;$S=1;var e=TM(),t=tU(),r=Bo();function n(i){return i&&i.length?e(i,r,t):void 0}return wm=n,wm}var rU=eU();const bi=Xt(rU);var Sm,jS;function nU(){if(jS)return Sm;jS=1;function e(t,r){return t<r}return Sm=e,Sm}var Am,RS;function iU(){if(RS)return Am;RS=1;var e=TM(),t=nU(),r=Bo();function n(i){return i&&i.length?e(i,r,t):void 0}return Am=n,Am}var aU=iU();const Zc=Xt(aU);var Om,DS;function oU(){if(DS)return Om;DS=1;var e=b0();function t(r,n){return e(r,n)}return Om=t,Om}var sU=oU();const ya=Xt(sU);var zo=1e9,lU={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},P0,ce=!0,an="[DecimalError] ",oa=an+"Invalid argument: ",T0=an+"Exponent out of range: ",Uo=Math.floor,Gi=Math.pow,uU=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Br,He=1e7,se=7,PM=9007199254740991,Zu=Uo(PM/se),ht={};ht.absoluteValue=ht.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ht.comparedTo=ht.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};ht.decimalPlaces=ht.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*se;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};ht.dividedBy=ht.div=function(e){return Xn(this,new this.constructor(e))};ht.dividedToIntegerBy=ht.idiv=function(e){var t=this,r=t.constructor;return ee(Xn(t,new r(e),0,1),r.precision)};ht.equals=ht.eq=function(e){return!this.cmp(e)};ht.exponent=function(){return $e(this)};ht.greaterThan=ht.gt=function(e){return this.cmp(e)>0};ht.greaterThanOrEqualTo=ht.gte=function(e){return this.cmp(e)>=0};ht.isInteger=ht.isint=function(){return this.e>this.d.length-2};ht.isNegative=ht.isneg=function(){return this.s<0};ht.isPositive=ht.ispos=function(){return this.s>0};ht.isZero=function(){return this.s===0};ht.lessThan=ht.lt=function(e){return this.cmp(e)<0};ht.lessThanOrEqualTo=ht.lte=function(e){return this.cmp(e)<1};ht.logarithm=ht.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Br))throw Error(an+"NaN");if(r.s<1)throw Error(an+(r.s?"NaN":"-Infinity"));return r.eq(Br)?new n(0):(ce=!1,t=Xn(il(r,a),il(e,a),a),ce=!0,ee(t,i))};ht.minus=ht.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?CM(t,e):EM(t,(e.s=-e.s,e))};ht.modulo=ht.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(an+"NaN");return r.s?(ce=!1,t=Xn(r,e,0,1).times(e),ce=!0,r.minus(t)):ee(new n(r),i)};ht.naturalExponential=ht.exp=function(){return MM(this)};ht.naturalLogarithm=ht.ln=function(){return il(this)};ht.negated=ht.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ht.plus=ht.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?EM(t,e):CM(t,(e.s=-e.s,e))};ht.precision=ht.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(oa+e);if(t=$e(i)+1,n=i.d.length-1,r=n*se+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};ht.squareRoot=ht.sqrt=function(){var e,t,r,n,i,a,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(an+"NaN")}for(e=$e(s),ce=!1,i=Math.sqrt(+s),i==0||i==1/0?(t=En(s.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Uo((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(i.toString()),r=l.precision,i=o=r+3;;)if(a=n,n=a.plus(Xn(s,a,o+2)).times(.5),En(a.d).slice(0,o)===(t=En(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ee(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if(t!="9999")break;o+=4}return ce=!0,ee(n,r)};ht.times=ht.mul=function(e){var t,r,n,i,a,o,s,l,u,c=this,f=c.constructor,h=c.d,p=(e=new f(e)).d;if(!c.s||!e.s)return new f(0);for(e.s*=c.s,r=c.e+e.e,l=h.length,u=p.length,l<u&&(a=h,h=p,p=a,o=l,l=u,u=o),a=[],o=l+u,n=o;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=l+n;i>n;)s=a[i]+p[n]*h[i-n-1]+t,a[i--]=s%He|0,t=s/He|0;a[i]=(a[i]+t)%He|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,ce?ee(e,f.precision):e};ht.toDecimalPlaces=ht.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Rn(e,0,zo),t===void 0?t=n.rounding:Rn(t,0,8),ee(r,e+$e(r)+1,t))};ht.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=ga(n,!0):(Rn(e,0,zo),t===void 0?t=i.rounding:Rn(t,0,8),n=ee(new i(n),e+1,t),r=ga(n,!0,e+1)),r};ht.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?ga(i):(Rn(e,0,zo),t===void 0?t=a.rounding:Rn(t,0,8),n=ee(new a(i),e+$e(i)+1,t),r=ga(n.abs(),!1,e+$e(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};ht.toInteger=ht.toint=function(){var e=this,t=e.constructor;return ee(new t(e),$e(e)+1,t.rounding)};ht.toNumber=function(){return+this};ht.toPower=ht.pow=function(e){var t,r,n,i,a,o,s=this,l=s.constructor,u=12,c=+(e=new l(e));if(!e.s)return new l(Br);if(s=new l(s),!s.s){if(e.s<1)throw Error(an+"Infinity");return s}if(s.eq(Br))return s;if(n=l.precision,e.eq(Br))return ee(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=s.s,o){if((r=c<0?-c:c)<=PM){for(i=new l(Br),t=Math.ceil(n/se+4),ce=!1;r%2&&(i=i.times(s),NS(i.d,t)),r=Uo(r/2),r!==0;)s=s.times(s),NS(s.d,t);return ce=!0,e.s<0?new l(Br).div(i):ee(i,n)}}else if(a<0)throw Error(an+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,ce=!1,i=e.times(il(s,n+u)),ce=!0,i=MM(i),i.s=a,i};ht.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=$e(i),n=ga(i,r<=a.toExpNeg||r>=a.toExpPos)):(Rn(e,1,zo),t===void 0?t=a.rounding:Rn(t,0,8),i=ee(new a(i),e,t),r=$e(i),n=ga(i,e<=r||r<=a.toExpNeg,e)),n};ht.toSignificantDigits=ht.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Rn(e,1,zo),t===void 0?t=n.rounding:Rn(t,0,8)),ee(new n(r),e,t)};ht.toString=ht.valueOf=ht.val=ht.toJSON=ht[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=$e(e),r=e.constructor;return ga(e,t<=r.toExpNeg||t>=r.toExpPos)};function EM(e,t){var r,n,i,a,o,s,l,u,c=e.constructor,f=c.precision;if(!e.s||!t.s)return t.s||(t=new c(e)),ce?ee(t,f):t;if(l=e.d,u=t.d,o=e.e,i=t.e,l=l.slice(),a=o-i,a){for(a<0?(n=l,a=-a,s=u.length):(n=u,i=o,s=l.length),o=Math.ceil(f/se),s=o>s?o+1:s+1,a>s&&(a=s,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(s=l.length,a=u.length,s-a<0&&(a=s,n=u,u=l,l=n),r=0;a;)r=(l[--a]=l[a]+u[a]+r)/He|0,l[a]%=He;for(r&&(l.unshift(r),++i),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=i,ce?ee(t,f):t}function Rn(e,t,r){if(e!==~~e||e<t||e>r)throw Error(oa+e)}function En(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=se-n.length,r&&(a+=pi(r)),a+=n;o=e[t],n=o+"",r=se-n.length,r&&(a+=pi(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Xn=(function(){function e(n,i){var a,o=0,s=n.length;for(n=n.slice();s--;)a=n[s]*i+o,n[s]=a%He|0,o=a/He|0;return o&&n.unshift(o),n}function t(n,i,a,o){var s,l;if(a!=o)l=a>o?1:-1;else for(s=l=0;s<a;s++)if(n[s]!=i[s]){l=n[s]>i[s]?1:-1;break}return l}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*He+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var s,l,u,c,f,h,p,y,m,d,b,v,x,_,g,w,S,A,T=n.constructor,M=n.s==i.s?1:-1,P=n.d,E=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(an+"Division by zero");for(l=n.e-i.e,S=E.length,g=P.length,p=new T(M),y=p.d=[],u=0;E[u]==(P[u]||0);)++u;if(E[u]>(P[u]||0)&&--l,a==null?v=a=T.precision:o?v=a+($e(n)-$e(i))+1:v=a,v<0)return new T(0);if(v=v/se+2|0,u=0,S==1)for(c=0,E=E[0],v++;(u<g||c)&&v--;u++)x=c*He+(P[u]||0),y[u]=x/E|0,c=x%E|0;else{for(c=He/(E[0]+1)|0,c>1&&(E=e(E,c),P=e(P,c),S=E.length,g=P.length),_=S,m=P.slice(0,S),d=m.length;d<S;)m[d++]=0;A=E.slice(),A.unshift(0),w=E[0],E[1]>=He/2&&++w;do c=0,s=t(E,m,S,d),s<0?(b=m[0],S!=d&&(b=b*He+(m[1]||0)),c=b/w|0,c>1?(c>=He&&(c=He-1),f=e(E,c),h=f.length,d=m.length,s=t(f,m,h,d),s==1&&(c--,r(f,S<h?A:E,h))):(c==0&&(s=c=1),f=E.slice()),h=f.length,h<d&&f.unshift(0),r(m,f,d),s==-1&&(d=m.length,s=t(E,m,S,d),s<1&&(c++,r(m,S<d?A:E,d))),d=m.length):s===0&&(c++,m=[0]),y[u++]=c,s&&m[0]?m[d++]=P[_]||0:(m=[P[_]],d=1);while((_++<g||m[0]!==void 0)&&v--)}return y[0]||y.shift(),p.e=l,ee(p,o?a+$e(p)+1:a)}})();function MM(e,t){var r,n,i,a,o,s,l=0,u=0,c=e.constructor,f=c.precision;if($e(e)>16)throw Error(T0+$e(e));if(!e.s)return new c(Br);for(ce=!1,s=f,o=new c(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(n=Math.log(Gi(2,u))/Math.LN10*2+5|0,s+=n,r=i=a=new c(Br),c.precision=s;;){if(i=ee(i.times(e),s),r=r.times(++l),o=a.plus(Xn(i,r,s)),En(o.d).slice(0,s)===En(a.d).slice(0,s)){for(;u--;)a=ee(a.times(a),s);return c.precision=f,t==null?(ce=!0,ee(a,f)):a}a=o}}function $e(e){for(var t=e.e*se,r=e.d[0];r>=10;r/=10)t++;return t}function Tm(e,t,r){if(t>e.LN10.sd())throw ce=!0,r&&(e.precision=r),Error(an+"LN10 precision limit exceeded");return ee(new e(e.LN10),t)}function pi(e){for(var t="";e--;)t+="0";return t}function il(e,t){var r,n,i,a,o,s,l,u,c,f=1,h=10,p=e,y=p.d,m=p.constructor,d=m.precision;if(p.s<1)throw Error(an+(p.s?"NaN":"-Infinity"));if(p.eq(Br))return new m(0);if(t==null?(ce=!1,u=d):u=t,p.eq(10))return t==null&&(ce=!0),Tm(m,u);if(u+=h,m.precision=u,r=En(y),n=r.charAt(0),a=$e(p),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=En(p.d),n=r.charAt(0),f++;a=$e(p),n>1?(p=new m("0."+r),a++):p=new m(n+"."+r.slice(1))}else return l=Tm(m,u+2,d).times(a+""),p=il(new m(n+"."+r.slice(1)),u-h).plus(l),m.precision=d,t==null?(ce=!0,ee(p,d)):p;for(s=o=p=Xn(p.minus(Br),p.plus(Br),u),c=ee(p.times(p),u),i=3;;){if(o=ee(o.times(c),u),l=s.plus(Xn(o,new m(i),u)),En(l.d).slice(0,u)===En(s.d).slice(0,u))return s=s.times(2),a!==0&&(s=s.plus(Tm(m,u+2,d).times(a+""))),s=Xn(s,new m(f),u),m.precision=d,t==null?(ce=!0,ee(s,d)):s;s=l,i+=2}}function IS(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=Uo(r/se),e.d=[],n=(r+1)%se,r<0&&(n+=se),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=se;n<i;)e.d.push(+t.slice(n,n+=se));t=t.slice(n),n=se-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),ce&&(e.e>Zu||e.e<-Zu))throw Error(T0+r)}else e.s=0,e.e=0,e.d=[0];return e}function ee(e,t,r){var n,i,a,o,s,l,u,c,f=e.d;for(o=1,a=f[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=se,i=t,u=f[c=0];else{if(c=Math.ceil((n+1)/se),a=f.length,c>=a)return e;for(u=a=f[c],o=1;a>=10;a/=10)o++;n%=se,i=n-se+o}if(r!==void 0&&(a=Gi(10,o-i-1),s=u/a%10|0,l=t<0||f[c+1]!==void 0||u%a,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?i>0?u/Gi(10,o-i):0:f[c-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(a=$e(e),f.length=1,t=t-a-1,f[0]=Gi(10,(se-t%se)%se),e.e=Uo(-t/se)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=c,a=1,c--):(f.length=c+1,a=Gi(10,se-n),f[c]=i>0?(u/Gi(10,o-i)%Gi(10,i)|0)*a:0),l)for(;;)if(c==0){(f[0]+=a)==He&&(f[0]=1,++e.e);break}else{if(f[c]+=a,f[c]!=He)break;f[c--]=0,a=1}for(n=f.length;f[--n]===0;)f.pop();if(ce&&(e.e>Zu||e.e<-Zu))throw Error(T0+$e(e));return e}function CM(e,t){var r,n,i,a,o,s,l,u,c,f,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),ce?ee(t,p):t;if(l=e.d,f=t.d,n=t.e,u=e.e,l=l.slice(),o=u-n,o){for(c=o<0,c?(r=l,o=-o,s=f.length):(r=f,n=u,s=l.length),i=Math.max(Math.ceil(p/se),s)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=l.length,s=f.length,c=i<s,c&&(s=i),i=0;i<s;i++)if(l[i]!=f[i]){c=l[i]<f[i];break}o=0}for(c&&(r=l,l=f,f=r,t.s=-t.s),s=l.length,i=f.length-s;i>0;--i)l[s++]=0;for(i=f.length;i>o;){if(l[--i]<f[i]){for(a=i;a&&l[--a]===0;)l[a]=He-1;--l[a],l[i]+=He}l[i]-=f[i]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--n;return l[0]?(t.d=l,t.e=n,ce?ee(t,p):t):new h(0)}function ga(e,t,r){var n,i=$e(e),a=En(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+pi(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+pi(-i-1)+a,r&&(n=r-o)>0&&(a+=pi(n))):i>=o?(a+=pi(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+pi(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=pi(n))),e.s<0?"-"+a:a}function NS(e,t){if(e.length>t)return e.length=t,!0}function kM(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(oa+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return IS(o,a.toString())}else if(typeof a!="string")throw Error(oa+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,uU.test(a))IS(o,a);else throw Error(oa+a)}if(i.prototype=ht,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=kM,i.config=i.set=cU,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function cU(e){if(!e||typeof e!="object")throw Error(an+"Object expected");var t,r,n,i=["precision",1,zo,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(Uo(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(oa+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(oa+r+": "+n);return this}var P0=kM(lU);Br=new P0(1);const Vt=P0;function fU(e){return mU(e)||dU(e)||pU(e)||hU()}function hU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
93
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pU(e,t){if(e){if(typeof e=="string")return lg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lg(e,t)}}function dU(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function mU(e){if(Array.isArray(e))return lg(e)}function lg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var yU=function(t){return t},$M={},jM=function(t){return t===$M},LS=function(t){return function r(){return arguments.length===0||arguments.length===1&&jM(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},gU=function e(t,r){return t===1?r:LS(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(s){return s!==$M}).length;return o>=t?r.apply(void 0,i):e(t-o,LS(function(){for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];var c=i.map(function(f){return jM(f)?l.shift():f});return r.apply(void 0,fU(c).concat(l))}))})},Jc=function(t){return gU(t.length,t)},ug=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},vU=Jc(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),bU=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return yU;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(s,l){return l(s)},a.apply(void 0,arguments))}},cg=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},RM=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(s,l){return s===r[l]})||(r=a,n=t.apply(void 0,a)),n}};function xU(e){var t;return e===0?t=1:t=Math.floor(new Vt(e).abs().log(10).toNumber())+1,t}function _U(e,t,r){for(var n=new Vt(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var wU=Jc(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),SU=Jc(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),AU=Jc(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Qc={rangeStep:_U,getDigitCount:xU,interpolateNumber:wU,uninterpolateNumber:SU,uninterpolateTruncation:AU};function fg(e){return PU(e)||TU(e)||DM(e)||OU()}function OU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
94
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TU(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function PU(e){if(Array.isArray(e))return hg(e)}function al(e,t){return CU(e)||MU(e,t)||DM(e,t)||EU()}function EU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
95
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function DM(e,t){if(e){if(typeof e=="string")return hg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hg(e,t)}}function hg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function MU(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){i=!0,a=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function CU(e){if(Array.isArray(e))return e}function IM(e){var t=al(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function NM(e,t,r){if(e.lte(0))return new Vt(0);var n=Qc.getDigitCount(e.toNumber()),i=new Vt(10).pow(n),a=e.div(i),o=n!==1?.05:.1,s=new Vt(Math.ceil(a.div(o).toNumber())).add(r).mul(o),l=s.mul(i);return t?l:new Vt(Math.ceil(l))}function kU(e,t,r){var n=1,i=new Vt(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new Vt(10).pow(Qc.getDigitCount(e)-1),i=new Vt(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new Vt(Math.floor(e)))}else e===0?i=new Vt(Math.floor((t-1)/2)):r||(i=new Vt(Math.floor(e)));var o=Math.floor((t-1)/2),s=bU(vU(function(l){return i.add(new Vt(l-o).mul(n)).toNumber()}),ug);return s(0,t)}function LM(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Vt(0),tickMin:new Vt(0),tickMax:new Vt(0)};var a=NM(new Vt(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new Vt(0):(o=new Vt(e).add(t).div(2),o=o.sub(new Vt(o).mod(a)));var s=Math.ceil(o.sub(e).div(a).toNumber()),l=Math.ceil(new Vt(t).sub(o).div(a).toNumber()),u=s+l+1;return u>r?LM(e,t,r,n,i+1):(u<r&&(l=t>0?l+(r-u):l,s=t>0?s:s+(r-u)),{step:a,tickMin:o.sub(new Vt(s).mul(a)),tickMax:o.add(new Vt(l).mul(a))})}function $U(e){var t=al(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),s=IM([r,n]),l=al(s,2),u=l[0],c=l[1];if(u===-1/0||c===1/0){var f=c===1/0?[u].concat(fg(ug(0,i-1).map(function(){return 1/0}))):[].concat(fg(ug(0,i-1).map(function(){return-1/0})),[c]);return r>n?cg(f):f}if(u===c)return kU(u,i,a);var h=LM(u,c,o,a),p=h.step,y=h.tickMin,m=h.tickMax,d=Qc.rangeStep(y,m.add(new Vt(.1).mul(p)),p);return r>n?cg(d):d}function jU(e,t){var r=al(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=IM([n,i]),s=al(o,2),l=s[0],u=s[1];if(l===-1/0||u===1/0)return[n,i];if(l===u)return[l];var c=Math.max(t,2),f=NM(new Vt(u).sub(l).div(c-1),a,0),h=[].concat(fg(Qc.rangeStep(new Vt(l),new Vt(u).sub(new Vt(.99).mul(f)),f)),[u]);return n>i?cg(h):h}var RU=RM($U),DU=RM(jU),IU=process.env.NODE_ENV==="production",Pm="Invariant failed";function xr(e,t){if(IU)throw new Error(Pm);var r=typeof t=="function"?t():t,n=r?"".concat(Pm,": ").concat(r):Pm;throw new Error(n)}var NU=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function go(e){"@babel/helpers - typeof";return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},go(e)}function Ju(){return Ju=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ju.apply(this,arguments)}function LU(e,t){return zU(e)||FU(e,t)||qU(e,t)||BU()}function BU(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
96
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qU(e,t){if(e){if(typeof e=="string")return BS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return BS(e,t)}}function BS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FU(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function zU(e){if(Array.isArray(e))return e}function UU(e,t){if(e==null)return{};var r=WU(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function WU(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function HU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GU(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,FM(n.key),n)}}function KU(e,t,r){return t&&GU(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function XU(e,t,r){return t=Qu(t),YU(e,BM()?Reflect.construct(t,r||[],Qu(e).constructor):t.apply(e,r))}function YU(e,t){if(t&&(go(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return VU(e)}function VU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BM=function(){return!!e})()}function Qu(e){return Qu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qu(e)}function ZU(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pg(e,t)}function pg(e,t){return pg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pg(e,t)}function qM(e,t,r){return t=FM(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FM(e){var t=JU(e,"string");return go(t)=="symbol"?t:t+""}function JU(e,t){if(go(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(go(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Wo=(function(e){function t(){return HU(this,t),XU(this,t,arguments)}return ZU(t,e),KU(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,s=n.dataKey,l=n.data,u=n.dataPointFormatter,c=n.xAxis,f=n.yAxis,h=UU(n,NU),p=_t(h,!1);this.props.direction==="x"&&c.type!=="number"&&(process.env.NODE_ENV!=="production"?xr(!1,'ErrorBar requires Axis type property to be "number".'):xr());var y=l.map(function(m){var d=u(m,s),b=d.x,v=d.y,x=d.value,_=d.errorVal;if(!_)return null;var g=[],w,S;if(Array.isArray(_)){var A=LU(_,2);w=A[0],S=A[1]}else w=S=_;if(a==="vertical"){var T=c.scale,M=v+i,P=M+o,E=M-o,C=T(x-w),$=T(x+S);g.push({x1:$,y1:P,x2:$,y2:E}),g.push({x1:C,y1:M,x2:$,y2:M}),g.push({x1:C,y1:P,x2:C,y2:E})}else if(a==="horizontal"){var j=f.scale,k=b+i,R=k-o,L=k+o,U=j(x-w),I=j(x+S);g.push({x1:R,y1:I,x2:L,y2:I}),g.push({x1:k,y1:U,x2:k,y2:I}),g.push({x1:R,y1:U,x2:L,y2:U})}return O.createElement(It,Ju({className:"recharts-errorBar",key:"bar-".concat(g.map(function(B){return"".concat(B.x1,"-").concat(B.x2,"-").concat(B.y1,"-").concat(B.y2)}))},p),g.map(function(B){return O.createElement("line",Ju({},B,{key:"line-".concat(B.x1,"-").concat(B.x2,"-").concat(B.y1,"-").concat(B.y2)}))}))});return O.createElement(It,{className:"recharts-errorBars"},y)}}])})(O.Component);qM(Wo,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});qM(Wo,"displayName","ErrorBar");function ol(e){"@babel/helpers - typeof";return ol=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ol(e)}function qS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ui(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qS(Object(r),!0).forEach(function(n){QU(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QU(e,t,r){return t=tW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tW(e){var t=eW(e,"string");return ol(t)=="symbol"?t:t+""}function eW(e,t){if(ol(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ol(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zM=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Ir(r,aa);if(!o)return null;var s=aa.defaultProps,l=s!==void 0?Ui(Ui({},s),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:a==="children"?u=(n||[]).reduce(function(c,f){var h=f.item,p=f.props,y=p.sectors||p.data||[];return c.concat(y.map(function(m){return{type:o.props.iconType||h.props.legendType,value:m.name,color:m.fill,payload:m}}))},[]):u=(n||[]).map(function(c){var f=c.item,h=f.type.defaultProps,p=h!==void 0?Ui(Ui({},h),f.props):{},y=p.dataKey,m=p.name,d=p.legendType,b=p.hide;return{inactive:b,dataKey:y,type:l.iconType||d||"square",color:E0(f),value:m||y,payload:p}}),Ui(Ui(Ui({},l),aa.getWithHeight(o,i)),{},{payload:u,item:o})};function sl(e){"@babel/helpers - typeof";return sl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sl(e)}function FS(e){return aW(e)||iW(e)||nW(e)||rW()}function rW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
97
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nW(e,t){if(e){if(typeof e=="string")return dg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return dg(e,t)}}function iW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aW(e){if(Array.isArray(e))return dg(e)}function dg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function zS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ve(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zS(Object(r),!0).forEach(function(n){Qa(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Qa(e,t,r){return t=oW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oW(e){var t=sW(e,"string");return sl(t)=="symbol"?t:t+""}function sW(e,t){if(sl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qe(e,t,r){return bt(e)||bt(t)?r:Be(t)?nn(e,t,r):St(t)?t(e):r}function Cs(e,t,r,n){var i=tM(e,function(s){return qe(s,t)});if(r==="number"){var a=i.filter(function(s){return st(s)||parseFloat(s)});return a.length?[Zc(a),bi(a)]:[1/0,-1/0]}var o=n?i.filter(function(s){return!bt(s)}):i;return o.map(function(s){return Be(s)||s instanceof Date?s:""})}var lW=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var l=a.range,u=0;u<s;u++){var c=u>0?i[u-1].coordinate:i[s-1].coordinate,f=i[u].coordinate,h=u>=s-1?i[0].coordinate:i[u+1].coordinate,p=void 0;if(dn(f-c)!==dn(h-f)){var y=[];if(dn(h-f)===dn(l[1]-l[0])){p=h;var m=f+l[1]-l[0];y[0]=Math.min(m,(m+c)/2),y[1]=Math.max(m,(m+c)/2)}else{p=c;var d=h+l[1]-l[0];y[0]=Math.min(f,(d+f)/2),y[1]=Math.max(f,(d+f)/2)}var b=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(t>b[0]&&t<=b[1]||t>=y[0]&&t<=y[1]){o=i[u].index;break}}else{var v=Math.min(c,h),x=Math.max(c,h);if(t>(v+f)/2&&t<=(x+f)/2){o=i[u].index;break}}}else for(var _=0;_<s;_++)if(_===0&&t<=(n[_].coordinate+n[_+1].coordinate)/2||_>0&&_<s-1&&t>(n[_].coordinate+n[_-1].coordinate)/2&&t<=(n[_].coordinate+n[_+1].coordinate)/2||_===s-1&&t>(n[_].coordinate+n[_-1].coordinate)/2){o=n[_].index;break}return o},E0=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ve(ve({},t.type.defaultProps),t.props):t.props,o=a.stroke,s=a.fill,l;switch(i){case"Line":l=o;break;case"Area":case"Radar":l=o&&o!=="none"?o:s;break;default:l=s;break}return l},uW=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},s=Object.keys(a),l=0,u=s.length;l<u;l++)for(var c=a[s[l]].stackGroups,f=Object.keys(c),h=0,p=f.length;h<p;h++){var y=c[f[h]],m=y.items,d=y.cateAxisId,b=m.filter(function(S){return Gn(S.type).indexOf("Bar")>=0});if(b&&b.length){var v=b[0].type.defaultProps,x=v!==void 0?ve(ve({},v),b[0].props):b[0].props,_=x.barSize,g=x[d];o[g]||(o[g]=[]);var w=bt(_)?r:_;o[g].push({item:b[0],stackList:b.slice(1),barSize:bt(w)?void 0:ma(w,n,0)})}}return o},cW=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,s=t.maxBarSize,l=o.length;if(l<1)return null;var u=ma(r,i,0,!0),c,f=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=i/l,y=o.reduce(function(_,g){return _+g.barSize||0},0);y+=(l-1)*u,y>=i&&(y-=(l-1)*u,u=0),y>=i&&p>0&&(h=!0,p*=.9,y=l*p);var m=(i-y)/2>>0,d={offset:m-u,size:0};c=o.reduce(function(_,g){var w={item:g.item,position:{offset:d.offset+d.size+u,size:h?p:g.barSize}},S=[].concat(FS(_),[w]);return d=S[S.length-1].position,g.stackList&&g.stackList.length&&g.stackList.forEach(function(A){S.push({item:A,position:d})}),S},f)}else{var b=ma(n,i,0,!0);i-2*b-(l-1)*u<=0&&(u=0);var v=(i-2*b-(l-1)*u)/l;v>1&&(v>>=0);var x=s===+s?Math.min(v,s):v;c=o.reduce(function(_,g,w){var S=[].concat(FS(_),[{item:g.item,position:{offset:b+(v+u)*w+(v-x)/2,size:x}}]);return g.stackList&&g.stackList.length&&g.stackList.forEach(function(A){S.push({item:A,position:S[S.length-1].position})}),S},f)}return c},fW=function(t,r,n,i){var a=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),u=zM({children:a,legendWidth:l});if(u){var c=i||{},f=c.width,h=c.height,p=u.align,y=u.verticalAlign,m=u.layout;if((m==="vertical"||m==="horizontal"&&y==="middle")&&p!=="center"&&st(t[p]))return ve(ve({},t),{},Qa({},p,t[p]+(f||0)));if((m==="horizontal"||m==="vertical"&&p==="center")&&y!=="middle"&&st(t[y]))return ve(ve({},t),{},Qa({},y,t[y]+(h||0)))}return t},hW=function(t,r,n){return bt(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},UM=function(t,r,n,i,a){var o=r.props.children,s=Tr(o,Wo).filter(function(u){return hW(i,a,u.props.direction)});if(s&&s.length){var l=s.map(function(u){return u.props.dataKey});return t.reduce(function(u,c){var f=qe(c,n);if(bt(f))return u;var h=Array.isArray(f)?[Zc(f),bi(f)]:[f,f],p=l.reduce(function(y,m){var d=qe(c,m,0),b=h[0]-Math.abs(Array.isArray(d)?d[0]:d),v=h[1]+Math.abs(Array.isArray(d)?d[1]:d);return[Math.min(b,y[0]),Math.max(v,y[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},pW=function(t,r,n,i,a){var o=r.map(function(s){return UM(t,s,n,a,i)}).filter(function(s){return!bt(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},WM=function(t,r,n,i,a){var o=r.map(function(l){var u=l.props.dataKey;return n==="number"&&u&&UM(t,l,u,i)||Cs(t,u,n,a)});if(n==="number")return o.reduce(function(l,u){return[Math.min(l[0],u[0]),Math.max(l[1],u[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,u){for(var c=0,f=u.length;c<f;c++)s[u[c]]||(s[u[c]]=!0,l.push(u[c]));return l},[])},HM=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},GM=function(t,r,n,i){if(i)return t.map(function(l){return l.coordinate});var a,o,s=t.map(function(l){return l.coordinate===r&&(a=!0),l.coordinate===n&&(o=!0),l.coordinate});return a||s.push(r),o||s.push(n),s},Hn=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,s=t.range,l=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/l:0;if(u=t.axisType==="angleAxis"&&(s==null?void 0:s.length)>=2?dn(s[0]-s[1])*2*u:u,r&&(t.ticks||t.niceTicks)){var c=(t.ticks||t.niceTicks).map(function(f){var h=a?a.indexOf(f):f;return{coordinate:i(h)+u,value:f,offset:u}});return c.filter(function(f){return!Fo(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,h){return{coordinate:i(f)+u,value:f,index:h,offset:u}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(f){return{coordinate:i(f)+u,value:f,offset:u}}):i.domain().map(function(f,h){return{coordinate:i(f)+u,value:a?a[f]:f,index:h,offset:u}})},Em=new WeakMap,tu=function(t,r){if(typeof r!="function")return t;Em.has(t)||Em.set(t,new WeakMap);var n=Em.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},dW=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,s=t.axisType;if(i==="auto")return o==="radial"&&s==="radiusAxis"?{scale:Ls(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:Oi(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:bs(),realScaleType:"point"}:a==="category"?{scale:Ls(),realScaleType:"band"}:{scale:Oi(),realScaleType:"linear"};if(da(i)){var l="scale".concat(Xc(i));return{scale:(MS[l]||bs)(),realScaleType:MS[l]?l:"point"}}return St(i)?{scale:i}:{scale:bs(),realScaleType:"point"}},US=1e-4,mW=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-US,o=Math.max(i[0],i[1])+US,s=t(r[0]),l=t(r[n-1]);(s<a||s>o||l<a||l>o)&&t.domain([r[0],r[n-1]])}},yW=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},gW=function(t,r){if(!r||r.length!==2||!st(r[0])||!st(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!st(t[0])||t[0]<n)&&(a[0]=n),(!st(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},vW=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,s=0;s<r;++s){var l=Fo(t[s][n][1])?t[s][n][0]:t[s][n][1];l>=0?(t[s][n][0]=a,t[s][n][1]=a+l,a=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1])}},bW=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var s=Fo(t[o][n][1])?t[o][n][0]:t[o][n][1];s>=0?(t[o][n][0]=a,t[o][n][1]=a+s,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},xW={sign:vW,expand:PI,none:ao,silhouette:EI,wiggle:MI,positive:bW},_W=function(t,r,n){var i=r.map(function(s){return s.props.dataKey}),a=xW[n],o=qs().keys(i).value(function(s,l){return+qe(s,l,0)}).order(wy).offset(a);return o(t)},wW=function(t,r,n,i,a,o){if(!t)return null;var s=o?r.reverse():r,l={},u=s.reduce(function(f,h){var p,y=(p=h.type)!==null&&p!==void 0&&p.defaultProps?ve(ve({},h.type.defaultProps),h.props):h.props,m=y.stackId,d=y.hide;if(d)return f;var b=y[n],v=f[b]||{hasStack:!1,stackGroups:{}};if(Be(m)){var x=v.stackGroups[m]||{numericAxisId:n,cateAxisId:i,items:[]};x.items.push(h),v.hasStack=!0,v.stackGroups[m]=x}else v.stackGroups[Oa("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[h]};return ve(ve({},f),{},Qa({},b,v))},l),c={};return Object.keys(u).reduce(function(f,h){var p=u[h];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(m,d){var b=p.stackGroups[d];return ve(ve({},m),{},Qa({},d,{numericAxisId:n,cateAxisId:i,items:b.items,stackedData:_W(t,b.items,a)}))},y)}return ve(ve({},f),{},Qa({},h,p))},c)},SW=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var c=RU(u,a,s);return t.domain([Zc(c),bi(c)]),{niceTicks:c}}if(a&&i==="number"){var f=t.domain(),h=DU(f,a,s);return{niceTicks:h}}return null};function vo(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!bt(i[t.dataKey])){var s=Uu(r,"value",i[t.dataKey]);if(s)return s.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var l=qe(i,bt(o)?t.dataKey:o);return bt(l)?null:t.scale(l)}var WS=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+i:null;var l=qe(o,r.dataKey,r.domain[s]);return bt(l)?null:r.scale(l)-a/2+i},AW=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},OW=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ve(ve({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Be(a)){var o=r[a];if(o){var s=o.items.indexOf(t);return s>=0?o.stackedData[s]:null}}return null},TW=function(t){return t.reduce(function(r,n){return[Zc(n.concat([r[0]]).filter(st)),bi(n.concat([r[1]]).filter(st))]},[1/0,-1/0])},KM=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],s=o.stackedData,l=s.reduce(function(u,c){var f=TW(c.slice(r,n+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(l[0],i[0]),Math.max(l[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},HS=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,GS=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,mg=function(t,r,n){if(St(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(st(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(HS.test(t[0])){var a=+HS.exec(t[0])[1];i[0]=r[0]-a}else St(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(st(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(GS.test(t[1])){var o=+GS.exec(t[1])[1];i[1]=r[1]+o}else St(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},tc=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=Kc(r,function(f){return f.coordinate}),o=1/0,s=1,l=a.length;s<l;s++){var u=a[s],c=a[s-1];o=Math.min((u.coordinate||0)-(c.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},KS=function(t,r,n){return!t||!t.length||ya(t,nn(n,"type.defaultProps.domain"))?r:t},XM=function(t,r){var n=t.type.defaultProps?ve(ve({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,s=n.formatter,l=n.tooltipType,u=n.chartType,c=n.hide;return ve(ve({},_t(t,!1)),{},{dataKey:i,unit:o,formatter:s,name:a||i,color:E0(t),value:qe(r,i),type:l,payload:r,chartType:u,hide:c})};function ll(e){"@babel/helpers - typeof";return ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ll(e)}function XS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function YS(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?XS(Object(r),!0).forEach(function(n){PW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PW(e,t,r){return t=EW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EW(e){var t=MW(e,"string");return ll(t)=="symbol"?t:t+""}function MW(e,t){if(ll(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ll(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ec=Math.PI/180,CW=function(t){return t*180/Math.PI},Qe=function(t,r,n,i){return{x:t+Math.cos(-ec*i)*n,y:r+Math.sin(-ec*i)*n}},kW=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},$W=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,s=kW({x:n,y:i},{x:a,y:o});if(s<=0)return{radius:s};var l=(n-a)/s,u=Math.acos(l);return i>o&&(u=2*Math.PI-u),{radius:s,angle:CW(u),angleInRadian:u}},jW=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},RW=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),s=Math.min(a,o);return t+s*360},VS=function(t,r){var n=t.x,i=t.y,a=$W({x:n,y:i},r),o=a.radius,s=a.angle,l=r.innerRadius,u=r.outerRadius;if(o<l||o>u)return!1;if(o===0)return!0;var c=jW(r),f=c.startAngle,h=c.endAngle,p=s,y;if(f<=h){for(;p>h;)p-=360;for(;p<f;)p+=360;y=p>=f&&p<=h}else{for(;p>f;)p-=360;for(;p<h;)p+=360;y=p>=h&&p<=f}return y?YS(YS({},r),{},{radius:o,angle:RW(p,r)}):null};function ul(e){"@babel/helpers - typeof";return ul=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ul(e)}var DW=["offset"];function IW(e){return qW(e)||BW(e)||LW(e)||NW()}function NW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
98
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LW(e,t){if(e){if(typeof e=="string")return yg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yg(e,t)}}function BW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qW(e){if(Array.isArray(e))return yg(e)}function yg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FW(e,t){if(e==null)return{};var r=zW(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function zW(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ZS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Le(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZS(Object(r),!0).forEach(function(n){UW(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function UW(e,t,r){return t=WW(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WW(e){var t=HW(e,"string");return ul(t)=="symbol"?t:t+""}function HW(e,t){if(ul(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ul(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cl(){return cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cl.apply(this,arguments)}var GW=function(t){var r=t.value,n=t.formatter,i=bt(t.children)?r:t.children;return St(n)?n(i):i},KW=function(t,r){var n=dn(r-t),i=Math.min(Math.abs(r-t),360);return n*i},XW=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,s=t.className,l=a,u=l.cx,c=l.cy,f=l.innerRadius,h=l.outerRadius,p=l.startAngle,y=l.endAngle,m=l.clockWise,d=(f+h)/2,b=KW(p,y),v=b>=0?1:-1,x,_;i==="insideStart"?(x=p+v*o,_=m):i==="insideEnd"?(x=y-v*o,_=!m):i==="end"&&(x=y+v*o,_=m),_=b<=0?_:!_;var g=Qe(u,c,d,x),w=Qe(u,c,d,x+(_?1:-1)*359),S="M".concat(g.x,",").concat(g.y,`
|
|
99
|
+
A`).concat(d,",").concat(d,",0,1,").concat(_?0:1,`,
|
|
100
|
+
`).concat(w.x,",").concat(w.y),A=bt(t.id)?Oa("recharts-radial-line-"):t.id;return O.createElement("text",cl({},n,{dominantBaseline:"central",className:Mt("recharts-radial-bar-label",s)}),O.createElement("defs",null,O.createElement("path",{id:A,d:S})),O.createElement("textPath",{xlinkHref:"#".concat(A)},r))},YW=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,s=a.cy,l=a.innerRadius,u=a.outerRadius,c=a.startAngle,f=a.endAngle,h=(c+f)/2;if(i==="outside"){var p=Qe(o,s,u+n,h),y=p.x,m=p.y;return{x:y,y:m,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var d=(l+u)/2,b=Qe(o,s,d,h),v=b.x,x=b.y;return{x:v,y:x,textAnchor:"middle",verticalAnchor:"middle"}},VW=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,s=o.x,l=o.y,u=o.width,c=o.height,f=c>=0?1:-1,h=f*i,p=f>0?"end":"start",y=f>0?"start":"end",m=u>=0?1:-1,d=m*i,b=m>0?"end":"start",v=m>0?"start":"end";if(a==="top"){var x={x:s+u/2,y:l-f*i,textAnchor:"middle",verticalAnchor:p};return Le(Le({},x),n?{height:Math.max(l-n.y,0),width:u}:{})}if(a==="bottom"){var _={x:s+u/2,y:l+c+h,textAnchor:"middle",verticalAnchor:y};return Le(Le({},_),n?{height:Math.max(n.y+n.height-(l+c),0),width:u}:{})}if(a==="left"){var g={x:s-d,y:l+c/2,textAnchor:b,verticalAnchor:"middle"};return Le(Le({},g),n?{width:Math.max(g.x-n.x,0),height:c}:{})}if(a==="right"){var w={x:s+u+d,y:l+c/2,textAnchor:v,verticalAnchor:"middle"};return Le(Le({},w),n?{width:Math.max(n.x+n.width-w.x,0),height:c}:{})}var S=n?{width:u,height:c}:{};return a==="insideLeft"?Le({x:s+d,y:l+c/2,textAnchor:v,verticalAnchor:"middle"},S):a==="insideRight"?Le({x:s+u-d,y:l+c/2,textAnchor:b,verticalAnchor:"middle"},S):a==="insideTop"?Le({x:s+u/2,y:l+h,textAnchor:"middle",verticalAnchor:y},S):a==="insideBottom"?Le({x:s+u/2,y:l+c-h,textAnchor:"middle",verticalAnchor:p},S):a==="insideTopLeft"?Le({x:s+d,y:l+h,textAnchor:v,verticalAnchor:y},S):a==="insideTopRight"?Le({x:s+u-d,y:l+h,textAnchor:b,verticalAnchor:y},S):a==="insideBottomLeft"?Le({x:s+d,y:l+c-h,textAnchor:v,verticalAnchor:p},S):a==="insideBottomRight"?Le({x:s+u-d,y:l+c-h,textAnchor:b,verticalAnchor:p},S):qo(a)&&(st(a.x)||Zi(a.x))&&(st(a.y)||Zi(a.y))?Le({x:s+ma(a.x,u),y:l+ma(a.y,c),textAnchor:"end",verticalAnchor:"end"},S):Le({x:s+u/2,y:l+c/2,textAnchor:"middle",verticalAnchor:"middle"},S)},ZW=function(t){return"cx"in t&&st(t.cx)};function lr(e){var t=e.offset,r=t===void 0?5:t,n=FW(e,DW),i=Le({offset:r},n),a=i.viewBox,o=i.position,s=i.value,l=i.children,u=i.content,c=i.className,f=c===void 0?"":c,h=i.textBreakAll;if(!a||bt(s)&&bt(l)&&!O.isValidElement(u)&&!St(u))return null;if(O.isValidElement(u))return O.cloneElement(u,i);var p;if(St(u)){if(p=O.createElement(u,i),O.isValidElement(p))return p}else p=GW(i);var y=ZW(a),m=_t(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return XW(i,p,m);var d=y?YW(i):VW(i);return O.createElement(Vu,cl({className:Mt("recharts-label",f)},m,d,{breakAll:h}),p)}lr.displayName="Label";var YM=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,u=t.innerRadius,c=t.outerRadius,f=t.x,h=t.y,p=t.top,y=t.left,m=t.width,d=t.height,b=t.clockWise,v=t.labelViewBox;if(v)return v;if(st(m)&&st(d)){if(st(f)&&st(h))return{x:f,y:h,width:m,height:d};if(st(p)&&st(y))return{x:p,y,width:m,height:d}}return st(f)&&st(h)?{x:f,y:h,width:0,height:0}:st(r)&&st(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:c||l||s||0,clockWise:b}:t.viewBox?t.viewBox:{}},JW=function(t,r){return t?t===!0?O.createElement(lr,{key:"label-implicit",viewBox:r}):Be(t)?O.createElement(lr,{key:"label-implicit",viewBox:r,value:t}):O.isValidElement(t)?t.type===lr?O.cloneElement(t,{key:"label-implicit",viewBox:r}):O.createElement(lr,{key:"label-implicit",content:t,viewBox:r}):St(t)?O.createElement(lr,{key:"label-implicit",content:t,viewBox:r}):qo(t)?O.createElement(lr,cl({viewBox:r},t,{key:"label-implicit"})):null:null},QW=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=YM(t),o=Tr(i,lr).map(function(l,u){return O.cloneElement(l,{viewBox:r||a,key:"label-".concat(u)})});if(!n)return o;var s=JW(t.label,r||a);return[s].concat(IW(o))};lr.parseViewBox=YM;lr.renderCallByParent=QW;var Mm,JS;function t8(){if(JS)return Mm;JS=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Mm=e,Mm}var e8=t8();const r8=Xt(e8);function fl(e){"@babel/helpers - typeof";return fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fl(e)}var n8=["valueAccessor"],i8=["data","dataKey","clockWise","id","textBreakAll"];function a8(e){return u8(e)||l8(e)||s8(e)||o8()}function o8(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
101
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s8(e,t){if(e){if(typeof e=="string")return gg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gg(e,t)}}function l8(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function u8(e){if(Array.isArray(e))return gg(e)}function gg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function rc(){return rc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rc.apply(this,arguments)}function QS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QS(Object(r),!0).forEach(function(n){c8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QS(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function c8(e,t,r){return t=f8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f8(e){var t=h8(e,"string");return fl(t)=="symbol"?t:t+""}function h8(e,t){if(fl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eA(e,t){if(e==null)return{};var r=p8(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function p8(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var d8=function(t){return Array.isArray(t.value)?r8(t.value):t.value};function kn(e){var t=e.valueAccessor,r=t===void 0?d8:t,n=eA(e,n8),i=n.data,a=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,u=eA(n,i8);return!i||!i.length?null:O.createElement(It,{className:"recharts-label-list"},i.map(function(c,f){var h=bt(a)?r(c,f):qe(c&&c.payload,a),p=bt(s)?{}:{id:"".concat(s,"-").concat(f)};return O.createElement(lr,rc({},_t(c,!0),u,p,{parentViewBox:c.parentViewBox,value:h,textBreakAll:l,viewBox:lr.parseViewBox(bt(o)?c:tA(tA({},c),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}kn.displayName="LabelList";function m8(e,t){return e?e===!0?O.createElement(kn,{key:"labelList-implicit",data:t}):O.isValidElement(e)||St(e)?O.createElement(kn,{key:"labelList-implicit",data:t,content:e}):qo(e)?O.createElement(kn,rc({data:t},e,{key:"labelList-implicit"})):null:null}function y8(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=Tr(n,kn).map(function(o,s){return O.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return i;var a=m8(e.label,t);return[a].concat(a8(i))}kn.renderCallByParent=y8;function hl(e){"@babel/helpers - typeof";return hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hl(e)}function vg(){return vg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vg.apply(this,arguments)}function rA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rA(Object(r),!0).forEach(function(n){g8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g8(e,t,r){return t=v8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v8(e){var t=b8(e,"string");return hl(t)=="symbol"?t:t+""}function b8(e,t){if(hl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var x8=function(t,r){var n=dn(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},eu=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,s=t.isExternal,l=t.cornerRadius,u=t.cornerIsExternal,c=l*(s?1:-1)+i,f=Math.asin(l/c)/ec,h=u?a:a+o*f,p=Qe(r,n,c,h),y=Qe(r,n,i,h),m=u?a-o*f:a,d=Qe(r,n,c*Math.cos(f*ec),m);return{center:p,circleTangency:y,lineTangency:d,theta:f}},VM=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,s=t.endAngle,l=x8(o,s),u=o+l,c=Qe(r,n,a,o),f=Qe(r,n,a,u),h="M ".concat(c.x,",").concat(c.y,`
|
|
102
|
+
A `).concat(a,",").concat(a,`,0,
|
|
103
|
+
`).concat(+(Math.abs(l)>180),",").concat(+(o>u),`,
|
|
104
|
+
`).concat(f.x,",").concat(f.y,`
|
|
105
|
+
`);if(i>0){var p=Qe(r,n,i,o),y=Qe(r,n,i,u);h+="L ".concat(y.x,",").concat(y.y,`
|
|
106
|
+
A `).concat(i,",").concat(i,`,0,
|
|
107
|
+
`).concat(+(Math.abs(l)>180),",").concat(+(o<=u),`,
|
|
108
|
+
`).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(r,",").concat(n," Z");return h},_8=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,u=t.startAngle,c=t.endAngle,f=dn(c-u),h=eu({cx:r,cy:n,radius:a,angle:u,sign:f,cornerRadius:o,cornerIsExternal:l}),p=h.circleTangency,y=h.lineTangency,m=h.theta,d=eu({cx:r,cy:n,radius:a,angle:c,sign:-f,cornerRadius:o,cornerIsExternal:l}),b=d.circleTangency,v=d.lineTangency,x=d.theta,_=l?Math.abs(u-c):Math.abs(u-c)-m-x;if(_<0)return s?"M ".concat(y.x,",").concat(y.y,`
|
|
109
|
+
a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
|
|
110
|
+
a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
|
|
111
|
+
`):VM({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:u,endAngle:c});var g="M ".concat(y.x,",").concat(y.y,`
|
|
112
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,`
|
|
113
|
+
A`).concat(a,",").concat(a,",0,").concat(+(_>180),",").concat(+(f<0),",").concat(b.x,",").concat(b.y,`
|
|
114
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(v.x,",").concat(v.y,`
|
|
115
|
+
`);if(i>0){var w=eu({cx:r,cy:n,radius:i,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),S=w.circleTangency,A=w.lineTangency,T=w.theta,M=eu({cx:r,cy:n,radius:i,angle:c,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),P=M.circleTangency,E=M.lineTangency,C=M.theta,$=l?Math.abs(u-c):Math.abs(u-c)-T-C;if($<0&&o===0)return"".concat(g,"L").concat(r,",").concat(n,"Z");g+="L".concat(E.x,",").concat(E.y,`
|
|
116
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(P.x,",").concat(P.y,`
|
|
117
|
+
A`).concat(i,",").concat(i,",0,").concat(+($>180),",").concat(+(f>0),",").concat(S.x,",").concat(S.y,`
|
|
118
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(A.x,",").concat(A.y,"Z")}else g+="L".concat(r,",").concat(n,"Z");return g},w8={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},ZM=function(t){var r=nA(nA({},w8),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,u=r.cornerIsExternal,c=r.startAngle,f=r.endAngle,h=r.className;if(o<a||c===f)return null;var p=Mt("recharts-sector",h),y=o-a,m=ma(s,y,0,!0),d;return m>0&&Math.abs(c-f)<360?d=_8({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(m,y/2),forceCornerRadius:l,cornerIsExternal:u,startAngle:c,endAngle:f}):d=VM({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:c,endAngle:f}),O.createElement("path",vg({},_t(r,!0),{className:p,d,role:"img"}))};function pl(e){"@babel/helpers - typeof";return pl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pl(e)}function bg(){return bg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bg.apply(this,arguments)}function iA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function aA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iA(Object(r),!0).forEach(function(n){S8(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function S8(e,t,r){return t=A8(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A8(e){var t=O8(e,"string");return pl(t)=="symbol"?t:t+""}function O8(e,t){if(pl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oA={curveBasisClosed:yI,curveBasisOpen:gI,curveBasis:mI,curveBumpX:eI,curveBumpY:rI,curveLinearClosed:vI,curveLinear:Qn,curveMonotoneX:bI,curveMonotoneY:xI,curveNatural:_I,curveStep:wI,curveStepAfter:AI,curveStepBefore:SI},ru=function(t){return t.x===+t.x&&t.y===+t.y},os=function(t){return t.x},ss=function(t){return t.y},T8=function(t,r){if(St(t))return t;var n="curve".concat(Xc(t));return(n==="curveMonotone"||n==="curveBump")&&r?oA["".concat(n).concat(r==="vertical"?"Y":"X")]:oA[n]||Qn},P8=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,s=t.layout,l=t.connectNulls,u=l===void 0?!1:l,c=T8(n,s),f=u?a.filter(function(m){return ru(m)}):a,h;if(Array.isArray(o)){var p=u?o.filter(function(m){return ru(m)}):o,y=f.map(function(m,d){return aA(aA({},m),{},{base:p[d]})});return s==="vertical"?h=mi().y(ss).x1(os).x0(function(m){return m.base.x}):h=mi().x(os).y1(ss).y0(function(m){return m.base.y}),h.defined(ru).curve(c),h(y)}return s==="vertical"&&st(o)?h=mi().y(ss).x1(os).x0(o):st(o)?h=mi().x(os).y1(ss).y0(o):h=jv().x(os).y(ss),h.defined(ru).curve(c),h(f)},sa=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?P8(t):i;return rn.createElement("path",bg({},_t(t,!1),Wu(t),{className:Mt("recharts-curve",r),d:o,ref:a}))},nu={exports:{}},iu={exports:{}},Ft={};/** @license React v16.13.1
|
|
119
|
+
* react-is.production.min.js
|
|
120
|
+
*
|
|
121
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
122
|
+
*
|
|
123
|
+
* This source code is licensed under the MIT license found in the
|
|
124
|
+
* LICENSE file in the root directory of this source tree.
|
|
125
|
+
*/var sA;function E8(){if(sA)return Ft;sA=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(g){if(typeof g=="object"&&g!==null){var w=g.$$typeof;switch(w){case t:switch(g=g.type,g){case l:case u:case n:case a:case i:case f:return g;default:switch(g=g&&g.$$typeof,g){case s:case c:case y:case p:case o:return g;default:return w}}case r:return w}}}function _(g){return x(g)===u}return Ft.AsyncMode=l,Ft.ConcurrentMode=u,Ft.ContextConsumer=s,Ft.ContextProvider=o,Ft.Element=t,Ft.ForwardRef=c,Ft.Fragment=n,Ft.Lazy=y,Ft.Memo=p,Ft.Portal=r,Ft.Profiler=a,Ft.StrictMode=i,Ft.Suspense=f,Ft.isAsyncMode=function(g){return _(g)||x(g)===l},Ft.isConcurrentMode=_,Ft.isContextConsumer=function(g){return x(g)===s},Ft.isContextProvider=function(g){return x(g)===o},Ft.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},Ft.isForwardRef=function(g){return x(g)===c},Ft.isFragment=function(g){return x(g)===n},Ft.isLazy=function(g){return x(g)===y},Ft.isMemo=function(g){return x(g)===p},Ft.isPortal=function(g){return x(g)===r},Ft.isProfiler=function(g){return x(g)===a},Ft.isStrictMode=function(g){return x(g)===i},Ft.isSuspense=function(g){return x(g)===f},Ft.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===u||g===a||g===i||g===f||g===h||typeof g=="object"&&g!==null&&(g.$$typeof===y||g.$$typeof===p||g.$$typeof===o||g.$$typeof===s||g.$$typeof===c||g.$$typeof===d||g.$$typeof===b||g.$$typeof===v||g.$$typeof===m)},Ft.typeOf=x,Ft}var zt={};/** @license React v16.13.1
|
|
126
|
+
* react-is.development.js
|
|
127
|
+
*
|
|
128
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
129
|
+
*
|
|
130
|
+
* This source code is licensed under the MIT license found in the
|
|
131
|
+
* LICENSE file in the root directory of this source tree.
|
|
132
|
+
*/var lA;function M8(){return lA||(lA=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,d=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(D){return typeof D=="string"||typeof D=="function"||D===n||D===u||D===a||D===i||D===f||D===h||typeof D=="object"&&D!==null&&(D.$$typeof===y||D.$$typeof===p||D.$$typeof===o||D.$$typeof===s||D.$$typeof===c||D.$$typeof===d||D.$$typeof===b||D.$$typeof===v||D.$$typeof===m)}function _(D){if(typeof D=="object"&&D!==null){var rt=D.$$typeof;switch(rt){case t:var W=D.type;switch(W){case l:case u:case n:case a:case i:case f:return W;default:var tt=W&&W.$$typeof;switch(tt){case s:case c:case y:case p:case o:return tt;default:return rt}}case r:return rt}}}var g=l,w=u,S=s,A=o,T=t,M=c,P=n,E=y,C=p,$=r,j=a,k=i,R=f,L=!1;function U(D){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(D)||_(D)===l}function I(D){return _(D)===u}function B(D){return _(D)===s}function q(D){return _(D)===o}function N(D){return typeof D=="object"&&D!==null&&D.$$typeof===t}function G(D){return _(D)===c}function F(D){return _(D)===n}function K(D){return _(D)===y}function Z(D){return _(D)===p}function X(D){return _(D)===r}function z(D){return _(D)===a}function Y(D){return _(D)===i}function V(D){return _(D)===f}zt.AsyncMode=g,zt.ConcurrentMode=w,zt.ContextConsumer=S,zt.ContextProvider=A,zt.Element=T,zt.ForwardRef=M,zt.Fragment=P,zt.Lazy=E,zt.Memo=C,zt.Portal=$,zt.Profiler=j,zt.StrictMode=k,zt.Suspense=R,zt.isAsyncMode=U,zt.isConcurrentMode=I,zt.isContextConsumer=B,zt.isContextProvider=q,zt.isElement=N,zt.isForwardRef=G,zt.isFragment=F,zt.isLazy=K,zt.isMemo=Z,zt.isPortal=X,zt.isProfiler=z,zt.isStrictMode=Y,zt.isSuspense=V,zt.isValidElementType=x,zt.typeOf=_})()),zt}var uA;function JM(){return uA||(uA=1,process.env.NODE_ENV==="production"?iu.exports=E8():iu.exports=M8()),iu.exports}/*
|
|
133
|
+
object-assign
|
|
134
|
+
(c) Sindre Sorhus
|
|
135
|
+
@license MIT
|
|
136
|
+
*/var Cm,cA;function C8(){if(cA)return Cm;cA=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(c){return o[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Cm=i()?Object.assign:function(a,o){for(var s,l=n(a),u,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var f in s)t.call(s,f)&&(l[f]=s[f]);if(e){u=e(s);for(var h=0;h<u.length;h++)r.call(s,u[h])&&(l[u[h]]=s[u[h]])}}return l},Cm}var km,fA;function M0(){if(fA)return km;fA=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return km=e,km}var $m,hA;function QM(){return hA||(hA=1,$m=Function.call.bind(Object.prototype.hasOwnProperty)),$m}var jm,pA;function k8(){if(pA)return jm;pA=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=M0(),r={},n=QM();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,s,l,u){if(process.env.NODE_ENV!=="production"){for(var c in a)if(n(a,c)){var f;try{if(typeof a[c]!="function"){var h=Error((l||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=a[c](o,c,l,s,null,t)}catch(y){f=y}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var p=u?u():"";e("Failed "+s+" type: "+f.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},jm=i,jm}var Rm,dA;function $8(){if(dA)return Rm;dA=1;var e=JM(),t=C8(),r=M0(),n=QM(),i=k8(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function o(){return null}return Rm=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function f(I){var B=I&&(u&&I[u]||I[c]);if(typeof B=="function")return B}var h="<<anonymous>>",p={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:v(),arrayOf:x,element:_(),elementType:g(),instanceOf:w,node:M(),objectOf:A,oneOf:S,oneOfType:T,shape:E,exact:C};function y(I,B){return I===B?I!==0||1/I===1/B:I!==I&&B!==B}function m(I,B){this.message=I,this.data=B&&typeof B=="object"?B:{},this.stack=""}m.prototype=Error.prototype;function d(I){if(process.env.NODE_ENV!=="production")var B={},q=0;function N(F,K,Z,X,z,Y,V){if(X=X||h,Y=Y||Z,V!==r){if(l){var D=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw D.name="Invariant Violation",D}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var rt=X+":"+Z;!B[rt]&&q<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Y+"` prop on `"+X+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),B[rt]=!0,q++)}}return K[Z]==null?F?K[Z]===null?new m("The "+z+" `"+Y+"` is marked as required "+("in `"+X+"`, but its value is `null`.")):new m("The "+z+" `"+Y+"` is marked as required in "+("`"+X+"`, but its value is `undefined`.")):null:I(K,Z,X,z,Y)}var G=N.bind(null,!1);return G.isRequired=N.bind(null,!0),G}function b(I){function B(q,N,G,F,K,Z){var X=q[N],z=k(X);if(z!==I){var Y=R(X);return new m("Invalid "+F+" `"+K+"` of type "+("`"+Y+"` supplied to `"+G+"`, expected ")+("`"+I+"`."),{expectedType:I})}return null}return d(B)}function v(){return d(o)}function x(I){function B(q,N,G,F,K){if(typeof I!="function")return new m("Property `"+K+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var Z=q[N];if(!Array.isArray(Z)){var X=k(Z);return new m("Invalid "+F+" `"+K+"` of type "+("`"+X+"` supplied to `"+G+"`, expected an array."))}for(var z=0;z<Z.length;z++){var Y=I(Z,z,G,F,K+"["+z+"]",r);if(Y instanceof Error)return Y}return null}return d(B)}function _(){function I(B,q,N,G,F){var K=B[q];if(!s(K)){var Z=k(K);return new m("Invalid "+G+" `"+F+"` of type "+("`"+Z+"` supplied to `"+N+"`, expected a single ReactElement."))}return null}return d(I)}function g(){function I(B,q,N,G,F){var K=B[q];if(!e.isValidElementType(K)){var Z=k(K);return new m("Invalid "+G+" `"+F+"` of type "+("`"+Z+"` supplied to `"+N+"`, expected a single ReactElement type."))}return null}return d(I)}function w(I){function B(q,N,G,F,K){if(!(q[N]instanceof I)){var Z=I.name||h,X=U(q[N]);return new m("Invalid "+F+" `"+K+"` of type "+("`"+X+"` supplied to `"+G+"`, expected ")+("instance of `"+Z+"`."))}return null}return d(B)}function S(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function B(q,N,G,F,K){for(var Z=q[N],X=0;X<I.length;X++)if(y(Z,I[X]))return null;var z=JSON.stringify(I,function(V,D){var rt=R(D);return rt==="symbol"?String(D):D});return new m("Invalid "+F+" `"+K+"` of value `"+String(Z)+"` "+("supplied to `"+G+"`, expected one of "+z+"."))}return d(B)}function A(I){function B(q,N,G,F,K){if(typeof I!="function")return new m("Property `"+K+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var Z=q[N],X=k(Z);if(X!=="object")return new m("Invalid "+F+" `"+K+"` of type "+("`"+X+"` supplied to `"+G+"`, expected an object."));for(var z in Z)if(n(Z,z)){var Y=I(Z,z,G,F,K+"."+z,r);if(Y instanceof Error)return Y}return null}return d(B)}function T(I){if(!Array.isArray(I))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var B=0;B<I.length;B++){var q=I[B];if(typeof q!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+L(q)+" at index "+B+"."),o}function N(G,F,K,Z,X){for(var z=[],Y=0;Y<I.length;Y++){var V=I[Y],D=V(G,F,K,Z,X,r);if(D==null)return null;D.data&&n(D.data,"expectedType")&&z.push(D.data.expectedType)}var rt=z.length>0?", expected one of type ["+z.join(", ")+"]":"";return new m("Invalid "+Z+" `"+X+"` supplied to "+("`"+K+"`"+rt+"."))}return d(N)}function M(){function I(B,q,N,G,F){return $(B[q])?null:new m("Invalid "+G+" `"+F+"` supplied to "+("`"+N+"`, expected a ReactNode."))}return d(I)}function P(I,B,q,N,G){return new m((I||"React class")+": "+B+" type `"+q+"."+N+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function E(I){function B(q,N,G,F,K){var Z=q[N],X=k(Z);if(X!=="object")return new m("Invalid "+F+" `"+K+"` of type `"+X+"` "+("supplied to `"+G+"`, expected `object`."));for(var z in I){var Y=I[z];if(typeof Y!="function")return P(G,F,K,z,R(Y));var V=Y(Z,z,G,F,K+"."+z,r);if(V)return V}return null}return d(B)}function C(I){function B(q,N,G,F,K){var Z=q[N],X=k(Z);if(X!=="object")return new m("Invalid "+F+" `"+K+"` of type `"+X+"` "+("supplied to `"+G+"`, expected `object`."));var z=t({},q[N],I);for(var Y in z){var V=I[Y];if(n(I,Y)&&typeof V!="function")return P(G,F,K,Y,R(V));if(!V)return new m("Invalid "+F+" `"+K+"` key `"+Y+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(q[N],null," ")+`
|
|
137
|
+
Valid keys: `+JSON.stringify(Object.keys(I),null," "));var D=V(Z,Y,G,F,K+"."+Y,r);if(D)return D}return null}return d(B)}function $(I){switch(typeof I){case"number":case"string":case"undefined":return!0;case"boolean":return!I;case"object":if(Array.isArray(I))return I.every($);if(I===null||s(I))return!0;var B=f(I);if(B){var q=B.call(I),N;if(B!==I.entries){for(;!(N=q.next()).done;)if(!$(N.value))return!1}else for(;!(N=q.next()).done;){var G=N.value;if(G&&!$(G[1]))return!1}}else return!1;return!0;default:return!1}}function j(I,B){return I==="symbol"?!0:B?B["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&B instanceof Symbol:!1}function k(I){var B=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":j(B,I)?"symbol":B}function R(I){if(typeof I>"u"||I===null)return""+I;var B=k(I);if(B==="object"){if(I instanceof Date)return"date";if(I instanceof RegExp)return"regexp"}return B}function L(I){var B=R(I);switch(B){case"array":case"object":return"an "+B;case"boolean":case"date":case"regexp":return"a "+B;default:return B}}function U(I){return!I.constructor||!I.constructor.name?h:I.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},Rm}var Dm,mA;function j8(){if(mA)return Dm;mA=1;var e=M0();function t(){}function r(){}return r.resetWarningCache=t,Dm=function(){function n(o,s,l,u,c,f){if(f!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Dm}var yA;function R8(){if(yA)return nu.exports;if(yA=1,process.env.NODE_ENV!=="production"){var e=JM(),t=!0;nu.exports=$8()(e.isElement,t)}else nu.exports=j8()();return nu.exports}var D8=R8();const Ut=Xt(D8);var I8=Object.getOwnPropertyNames,N8=Object.getOwnPropertySymbols,L8=Object.prototype.hasOwnProperty;function gA(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function au(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,o=a.get(r),s=a.get(n);if(o&&s)return o===n&&s===r;a.set(r,n),a.set(n,r);var l=e(r,n,i);return a.delete(r),a.delete(n),l}}function B8(e){return e!=null?e[Symbol.toStringTag]:void 0}function vA(e){return I8(e).concat(N8(e))}var q8=Object.hasOwn||(function(e,t){return L8.call(e,t)});function Ta(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var F8="__v",z8="__o",U8="_owner",bA=Object.getOwnPropertyDescriptor,xA=Object.keys;function W8(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function H8(e,t){return Ta(e.getTime(),t.getTime())}function G8(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function K8(e,t){return e===t}function _A(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.entries(),o,s,l=0;(o=a.next())&&!o.done;){for(var u=t.entries(),c=!1,f=0;(s=u.next())&&!s.done;){if(i[f]){f++;continue}var h=o.value,p=s.value;if(r.equals(h[0],p[0],l,f,e,t,r)&&r.equals(h[1],p[1],h[0],p[0],e,t,r)){c=i[f]=!0;break}f++}if(!c)return!1;l++}return!0}var X8=Ta;function Y8(e,t,r){var n=xA(e),i=n.length;if(xA(t).length!==i)return!1;for(;i-- >0;)if(!tC(e,t,r,n[i]))return!1;return!0}function ls(e,t,r){var n=vA(e),i=n.length;if(vA(t).length!==i)return!1;for(var a,o,s;i-- >0;)if(a=n[i],!tC(e,t,r,a)||(o=bA(e,a),s=bA(t,a),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function V8(e,t){return Ta(e.valueOf(),t.valueOf())}function Z8(e,t){return e.source===t.source&&e.flags===t.flags}function wA(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.values(),o,s;(o=a.next())&&!o.done;){for(var l=t.values(),u=!1,c=0;(s=l.next())&&!s.done;){if(!i[c]&&r.equals(o.value,s.value,o.value,s.value,e,t,r)){u=i[c]=!0;break}c++}if(!u)return!1}return!0}function J8(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function Q8(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function tC(e,t,r,n){return(n===U8||n===z8||n===F8)&&(e.$$typeof||t.$$typeof)?!0:q8(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var tH="[object Arguments]",eH="[object Boolean]",rH="[object Date]",nH="[object Error]",iH="[object Map]",aH="[object Number]",oH="[object Object]",sH="[object RegExp]",lH="[object Set]",uH="[object String]",cH="[object URL]",fH=Array.isArray,SA=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,AA=Object.assign,hH=Object.prototype.toString.call.bind(Object.prototype.toString);function pH(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,s=e.areObjectsEqual,l=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,c=e.areSetsEqual,f=e.areTypedArraysEqual,h=e.areUrlsEqual,p=e.unknownTagComparators;return function(m,d,b){if(m===d)return!0;if(m==null||d==null)return!1;var v=typeof m;if(v!==typeof d)return!1;if(v!=="object")return v==="number"?o(m,d,b):v==="function"?i(m,d,b):!1;var x=m.constructor;if(x!==d.constructor)return!1;if(x===Object)return s(m,d,b);if(fH(m))return t(m,d,b);if(SA!=null&&SA(m))return f(m,d,b);if(x===Date)return r(m,d,b);if(x===RegExp)return u(m,d,b);if(x===Map)return a(m,d,b);if(x===Set)return c(m,d,b);var _=hH(m);if(_===rH)return r(m,d,b);if(_===sH)return u(m,d,b);if(_===iH)return a(m,d,b);if(_===lH)return c(m,d,b);if(_===oH)return typeof m.then!="function"&&typeof d.then!="function"&&s(m,d,b);if(_===cH)return h(m,d,b);if(_===nH)return n(m,d,b);if(_===tH)return s(m,d,b);if(_===eH||_===aH||_===uH)return l(m,d,b);if(p){var g=p[_];if(!g){var w=B8(m);w&&(g=p[w])}if(g)return g(m,d,b)}return!1}}function dH(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?ls:W8,areDatesEqual:H8,areErrorsEqual:G8,areFunctionsEqual:K8,areMapsEqual:n?gA(_A,ls):_A,areNumbersEqual:X8,areObjectsEqual:n?ls:Y8,arePrimitiveWrappersEqual:V8,areRegExpsEqual:Z8,areSetsEqual:n?gA(wA,ls):wA,areTypedArraysEqual:n?ls:J8,areUrlsEqual:Q8,unknownTagComparators:void 0};if(r&&(i=AA({},i,r(i))),t){var a=au(i.areArraysEqual),o=au(i.areMapsEqual),s=au(i.areObjectsEqual),l=au(i.areSetsEqual);i=AA({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return i}function mH(e){return function(t,r,n,i,a,o,s){return e(t,r,s)}}function yH(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(l,u){var c=n(),f=c.cache,h=f===void 0?t?new WeakMap:void 0:f,p=c.meta;return r(l,u,{cache:h,equals:i,meta:p,strict:a})};if(t)return function(l,u){return r(l,u,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(l,u){return r(l,u,o)}}var gH=Ri();Ri({strict:!0});Ri({circular:!0});Ri({circular:!0,strict:!0});Ri({createInternalComparator:function(){return Ta}});Ri({strict:!0,createInternalComparator:function(){return Ta}});Ri({circular:!0,createInternalComparator:function(){return Ta}});Ri({circular:!0,createInternalComparator:function(){return Ta},strict:!0});function Ri(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,s=dH(e),l=pH(s),u=n?n(l):mH(l);return yH({circular:r,comparator:l,createState:i,equals:u,strict:o})}function vH(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function OA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):vH(i)};requestAnimationFrame(n)}function xg(e){"@babel/helpers - typeof";return xg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xg(e)}function bH(e){return SH(e)||wH(e)||_H(e)||xH()}function xH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
138
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _H(e,t){if(e){if(typeof e=="string")return TA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return TA(e,t)}}function TA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function SH(e){if(Array.isArray(e))return e}function AH(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,s=bH(o),l=s[0],u=s.slice(1);if(typeof l=="number"){OA(i.bind(null,u),l);return}i(l),OA(i.bind(null,u));return}xg(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function dl(e){"@babel/helpers - typeof";return dl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dl(e)}function PA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function EA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?PA(Object(r),!0).forEach(function(n){eC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eC(e,t,r){return t=OH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OH(e){var t=TH(e,"string");return dl(t)==="symbol"?t:String(t)}function TH(e,t){if(dl(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dl(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PH=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},EH=function(t){return t},MH=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},ks=function(t,r){return Object.keys(r).reduce(function(n,i){return EA(EA({},n),{},eC({},i,t(i,r[i])))},{})},MA=function(t,r,n){return t.map(function(i){return"".concat(MH(i)," ").concat(r,"ms ").concat(n)}).join(",")},CH=process.env.NODE_ENV!=="production",nc=function(t,r,n,i,a,o,s,l){if(CH&&typeof console<"u"&&console.warn&&(r===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(r===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,a,o,s,l],c=0;console.warn(r.replace(/%s/g,function(){return u[c++]}))}};function kH(e,t){return RH(e)||jH(e,t)||rC(e,t)||$H()}function $H(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
139
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jH(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function RH(e){if(Array.isArray(e))return e}function DH(e){return LH(e)||NH(e)||rC(e)||IH()}function IH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
140
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rC(e,t){if(e){if(typeof e=="string")return _g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _g(e,t)}}function NH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function LH(e){if(Array.isArray(e))return _g(e)}function _g(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var ic=1e-4,nC=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},iC=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},CA=function(t,r){return function(n){var i=nC(t,r);return iC(i,n)}},BH=function(t,r){return function(n){var i=nC(t,r),a=[].concat(DH(i.map(function(o,s){return o*s}).slice(1)),[0]);return iC(a,n)}},kA=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],s=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,s=1;break;case"ease":i=.25,a=.1,o=.25,s=1;break;case"ease-in":i=.42,a=0,o=1,s=1;break;case"ease-out":i=.42,a=0,o=.58,s=1;break;case"ease-in-out":i=0,a=0,o=.58,s=1;break;default:{var l=r[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var u=l[1].split(")")[0].split(",").map(function(d){return parseFloat(d)}),c=kH(u,4);i=c[0],a=c[1],o=c[2],s=c[3]}else nc(!1,"[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s",r)}}nc([i,o,a,s].every(function(d){return typeof d=="number"&&d>=0&&d<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var f=CA(i,o),h=CA(a,s),p=BH(i,o),y=function(b){return b>1?1:b<0?0:b},m=function(b){for(var v=b>1?1:b,x=v,_=0;_<8;++_){var g=f(x)-v,w=p(x);if(Math.abs(g-v)<ic||w<ic)return h(x);x=y(x-g/w)}return h(x)};return m.isStepper=!1,m},qH=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,s=o===void 0?17:o,l=function(c,f,h){var p=-(c-f)*n,y=h*a,m=h+(p-y)*s/1e3,d=h*s/1e3+c;return Math.abs(d-f)<ic&&Math.abs(m)<ic?[f,0]:[d,m]};return l.isStepper=!0,l.dt=s,l},FH=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return kA(i);case"spring":return qH();default:if(i.split("(")[0]==="cubic-bezier")return kA(i);nc(!1,"[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s",r)}return typeof i=="function"?i:(nc(!1,"[configEasing]: first argument type should be function or string, instead received %s",r),null)};function ml(e){"@babel/helpers - typeof";return ml=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ml(e)}function $A(e){return WH(e)||UH(e)||aC(e)||zH()}function zH(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
141
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UH(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WH(e){if(Array.isArray(e))return Sg(e)}function jA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Je(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jA(Object(r),!0).forEach(function(n){wg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wg(e,t,r){return t=HH(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HH(e){var t=GH(e,"string");return ml(t)==="symbol"?t:String(t)}function GH(e,t){if(ml(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ml(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function KH(e,t){return VH(e)||YH(e,t)||aC(e,t)||XH()}function XH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
142
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aC(e,t){if(e){if(typeof e=="string")return Sg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sg(e,t)}}function Sg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function YH(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function VH(e){if(Array.isArray(e))return e}var ac=function(t,r,n){return t+(r-t)*n},Ag=function(t){var r=t.from,n=t.to;return r!==n},ZH=function e(t,r,n){var i=ks(function(a,o){if(Ag(o)){var s=t(o.from,o.to,o.velocity),l=KH(s,2),u=l[0],c=l[1];return Je(Je({},o),{},{from:u,velocity:c})}return o},r);return n<1?ks(function(a,o){return Ag(o)?Je(Je({},o),{},{velocity:ac(o.velocity,i[a].velocity,n),from:ac(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const JH=(function(e,t,r,n,i){var a=PH(e,t),o=a.reduce(function(d,b){return Je(Je({},d),{},wg({},b,[e[b],t[b]]))},{}),s=a.reduce(function(d,b){return Je(Je({},d),{},wg({},b,{from:e[b],velocity:0,to:t[b]}))},{}),l=-1,u,c,f=function(){return null},h=function(){return ks(function(b,v){return v.from},s)},p=function(){return!Object.values(s).filter(Ag).length},y=function(b){u||(u=b);var v=b-u,x=v/r.dt;s=ZH(r,s,x),i(Je(Je(Je({},e),t),h())),u=b,p()||(l=requestAnimationFrame(f))},m=function(b){c||(c=b);var v=(b-c)/n,x=ks(function(g,w){return ac.apply(void 0,$A(w).concat([r(v)]))},o);if(i(Je(Je(Je({},e),t),x)),v<1)l=requestAnimationFrame(f);else{var _=ks(function(g,w){return ac.apply(void 0,$A(w).concat([r(1)]))},o);i(Je(Je(Je({},e),t),_))}};return f=r.isStepper?y:m,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(l)}}});function bo(e){"@babel/helpers - typeof";return bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bo(e)}var QH=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function tG(e,t){if(e==null)return{};var r=eG(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function eG(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Im(e){return aG(e)||iG(e)||nG(e)||rG()}function rG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
143
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nG(e,t){if(e){if(typeof e=="string")return Og(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Og(e,t)}}function iG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aG(e){if(Array.isArray(e))return Og(e)}function Og(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function RA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ln(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RA(Object(r),!0).forEach(function(n){vs(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vs(e,t,r){return t=oC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sG(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,oC(n.key),n)}}function lG(e,t,r){return t&&sG(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oC(e){var t=uG(e,"string");return bo(t)==="symbol"?t:String(t)}function uG(e,t){if(bo(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bo(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cG(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tg(e,t)}function Tg(e,t){return Tg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Tg(e,t)}function fG(e){var t=hG();return function(){var n=oc(e),i;if(t){var a=oc(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Pg(this,i)}}function Pg(e,t){if(t&&(bo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Eg(e)}function Eg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hG(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function oc(e){return oc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},oc(e)}var mn=(function(e){cG(r,e);var t=fG(r);function r(n,i){var a;oG(this,r),a=t.call(this,n,i);var o=a.props,s=o.isActive,l=o.attributeName,u=o.from,c=o.to,f=o.steps,h=o.children,p=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Eg(a)),a.changeStyle=a.changeStyle.bind(Eg(a)),!s||p<=0)return a.state={style:{}},typeof h=="function"&&(a.state={style:c}),Pg(a);if(f&&f.length)a.state={style:f[0].style};else if(u){if(typeof h=="function")return a.state={style:u},Pg(a);a.state={style:l?vs({},l,u):u}}else a.state={style:{}};return a}return lG(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,s=a.canBegin,l=a.attributeName,u=a.shouldReAnimate,c=a.to,f=a.from,h=this.state.style;if(s){if(!o){var p={style:l?vs({},l,c):c};this.state&&h&&(l&&h[l]!==c||!l&&h!==c)&&this.setState(p);return}if(!(gH(i.to,c)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=y||u?f:i.to;if(this.state&&h){var d={style:l?vs({},l,m):m};(l&&h[l]!==m||!l&&h!==m)&&this.setState(d)}this.runAnimation(ln(ln({},this.props),{},{from:m,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,s=i.to,l=i.duration,u=i.easing,c=i.begin,f=i.onAnimationEnd,h=i.onAnimationStart,p=JH(o,s,FH(u),l,this.changeStyle),y=function(){a.stopJSAnimation=p()};this.manager.start([h,c,y,l,f])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,s=i.begin,l=i.onAnimationStart,u=o[0],c=u.style,f=u.duration,h=f===void 0?0:f,p=function(m,d,b){if(b===0)return m;var v=d.duration,x=d.easing,_=x===void 0?"ease":x,g=d.style,w=d.properties,S=d.onAnimationEnd,A=b>0?o[b-1]:d,T=w||Object.keys(g);if(typeof _=="function"||_==="spring")return[].concat(Im(m),[a.runJSAnimation.bind(a,{from:A.style,to:g,duration:v,easing:_}),v]);var M=MA(T,v,_),P=ln(ln(ln({},A.style),g),{},{transition:M});return[].concat(Im(m),[P,v,S]).filter(EH)};return this.manager.start([l].concat(Im(o.reduce(p,[c,Math.max(h,s)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=AH());var a=i.begin,o=i.duration,s=i.attributeName,l=i.to,u=i.easing,c=i.onAnimationStart,f=i.onAnimationEnd,h=i.steps,p=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(i);return}if(h.length>1){this.runStepAnimation(i);return}var m=s?vs({},s,l):l,d=MA(Object.keys(m),o,u);y.start([c,a,ln(ln({},m),{},{transition:d}),o,f])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var s=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var l=tG(i,QH),u=O.Children.count(a),c=this.state.style;if(typeof a=="function")return a(c);if(!s||u===0||o<=0)return a;var f=function(p){var y=p.props,m=y.style,d=m===void 0?{}:m,b=y.className,v=O.cloneElement(p,ln(ln({},l),{},{style:ln(ln({},d),c),className:b}));return v};return u===1?f(O.Children.only(a)):O.createElement("div",null,O.Children.map(a,function(h){return f(h)}))}}]),r})(O.PureComponent);mn.displayName="Animate";mn.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};mn.propTypes={from:Ut.oneOfType([Ut.object,Ut.string]),to:Ut.oneOfType([Ut.object,Ut.string]),attributeName:Ut.string,duration:Ut.number,begin:Ut.number,easing:Ut.oneOfType([Ut.string,Ut.func]),steps:Ut.arrayOf(Ut.shape({duration:Ut.number.isRequired,style:Ut.object.isRequired,easing:Ut.oneOfType([Ut.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Ut.func]),properties:Ut.arrayOf("string"),onAnimationEnd:Ut.func})),children:Ut.oneOfType([Ut.node,Ut.func]),isActive:Ut.bool,canBegin:Ut.bool,onAnimationEnd:Ut.func,shouldReAnimate:Ut.bool,onAnimationStart:Ut.func,onAnimationReStart:Ut.func};function yl(e){"@babel/helpers - typeof";return yl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yl(e)}function sc(){return sc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sc.apply(this,arguments)}function pG(e,t){return gG(e)||yG(e,t)||mG(e,t)||dG()}function dG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
144
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mG(e,t){if(e){if(typeof e=="string")return DA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return DA(e,t)}}function DA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yG(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function gG(e){if(Array.isArray(e))return e}function IA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function NA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?IA(Object(r),!0).forEach(function(n){vG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vG(e,t,r){return t=bG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bG(e){var t=xG(e,"string");return yl(t)=="symbol"?t:t+""}function xG(e,t){if(yl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LA=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),s=i>=0?1:-1,l=n>=0?1:-1,u=i>=0&&n>=0||i<0&&n<0?1:0,c;if(o>0&&a instanceof Array){for(var f=[0,0,0,0],h=0,p=4;h<p;h++)f[h]=a[h]>o?o:a[h];c="M".concat(t,",").concat(r+s*f[0]),f[0]>0&&(c+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+l*f[0],",").concat(r)),c+="L ".concat(t+n-l*f[1],",").concat(r),f[1]>0&&(c+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`,
|
|
145
|
+
`).concat(t+n,",").concat(r+s*f[1])),c+="L ".concat(t+n,",").concat(r+i-s*f[2]),f[2]>0&&(c+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`,
|
|
146
|
+
`).concat(t+n-l*f[2],",").concat(r+i)),c+="L ".concat(t+l*f[3],",").concat(r+i),f[3]>0&&(c+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`,
|
|
147
|
+
`).concat(t,",").concat(r+i-s*f[3])),c+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);c="M ".concat(t,",").concat(r+s*y,`
|
|
148
|
+
A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+l*y,",").concat(r,`
|
|
149
|
+
L `).concat(t+n-l*y,",").concat(r,`
|
|
150
|
+
A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+n,",").concat(r+s*y,`
|
|
151
|
+
L `).concat(t+n,",").concat(r+i-s*y,`
|
|
152
|
+
A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+n-l*y,",").concat(r+i,`
|
|
153
|
+
L `).concat(t+l*y,",").concat(r+i,`
|
|
154
|
+
A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t,",").concat(r+i-s*y," Z")}else c="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return c},_G=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var u=Math.min(a,a+s),c=Math.max(a,a+s),f=Math.min(o,o+l),h=Math.max(o,o+l);return n>=u&&n<=c&&i>=f&&i<=h}return!1},wG={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},C0=function(t){var r=NA(NA({},wG),t),n=O.useRef(),i=O.useState(-1),a=pG(i,2),o=a[0],s=a[1];O.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var _=n.current.getTotalLength();_&&s(_)}catch{}},[]);var l=r.x,u=r.y,c=r.width,f=r.height,h=r.radius,p=r.className,y=r.animationEasing,m=r.animationDuration,d=r.animationBegin,b=r.isAnimationActive,v=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||c===0||f===0)return null;var x=Mt("recharts-rectangle",p);return v?O.createElement(mn,{canBegin:o>0,from:{width:c,height:f,x:l,y:u},to:{width:c,height:f,x:l,y:u},duration:m,animationEasing:y,isActive:v},function(_){var g=_.width,w=_.height,S=_.x,A=_.y;return O.createElement(mn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:m,isActive:b,easing:y},O.createElement("path",sc({},_t(r,!0),{className:x,d:LA(S,A,g,w,h),ref:n})))}):O.createElement("path",sc({},_t(r,!0),{className:x,d:LA(l,u,c,f,h)}))};function Mg(){return Mg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mg.apply(this,arguments)}var tf=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=Mt("recharts-dot",a);return r===+r&&n===+n&&i===+i?rn.createElement("circle",Mg({},_t(t,!1),Wu(t),{className:o,cx:r,cy:n,r:i})):null};function gl(e){"@babel/helpers - typeof";return gl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gl(e)}var SG=["x","y","top","left","width","height","className"];function Cg(){return Cg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cg.apply(this,arguments)}function BA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function AG(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?BA(Object(r),!0).forEach(function(n){OG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function OG(e,t,r){return t=TG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TG(e){var t=PG(e,"string");return gl(t)=="symbol"?t:t+""}function PG(e,t){if(gl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function EG(e,t){if(e==null)return{};var r=MG(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function MG(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var CG=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},kG=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,s=o===void 0?0:o,l=t.left,u=l===void 0?0:l,c=t.width,f=c===void 0?0:c,h=t.height,p=h===void 0?0:h,y=t.className,m=EG(t,SG),d=AG({x:n,y:a,top:s,left:u,width:f,height:p},m);return!st(n)||!st(a)||!st(f)||!st(p)||!st(s)||!st(u)?null:O.createElement("path",Cg({},_t(d,!0),{className:Mt("recharts-cross",y),d:CG(n,a,f,p,s,u)}))},Nm,qA;function $G(){if(qA)return Nm;qA=1;var e=GE(),t=e(Object.getPrototypeOf,Object);return Nm=t,Nm}var Lm,FA;function jG(){if(FA)return Lm;FA=1;var e=ni(),t=$G(),r=ii(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,s=a.hasOwnProperty,l=o.call(Object);function u(c){if(!r(c)||e(c)!=n)return!1;var f=t(c);if(f===null)return!0;var h=s.call(f,"constructor")&&f.constructor;return typeof h=="function"&&h instanceof h&&o.call(h)==l}return Lm=u,Lm}var RG=jG();const DG=Xt(RG);var Bm,zA;function IG(){if(zA)return Bm;zA=1;var e=ni(),t=ii(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Bm=n,Bm}var NG=IG();const LG=Xt(NG);function vl(e){"@babel/helpers - typeof";return vl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vl(e)}function lc(){return lc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lc.apply(this,arguments)}function BG(e,t){return UG(e)||zG(e,t)||FG(e,t)||qG()}function qG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
155
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FG(e,t){if(e){if(typeof e=="string")return UA(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return UA(e,t)}}function UA(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function zG(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function UG(e){if(Array.isArray(e))return e}function WA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function HA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WA(Object(r),!0).forEach(function(n){WG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WG(e,t,r){return t=HG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HG(e){var t=GG(e,"string");return vl(t)=="symbol"?t:t+""}function GG(e,t){if(vl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var GA=function(t,r,n,i,a){var o=n-i,s;return s="M ".concat(t,",").concat(r),s+="L ".concat(t+n,",").concat(r),s+="L ".concat(t+n-o/2,",").concat(r+a),s+="L ".concat(t+n-o/2-i,",").concat(r+a),s+="L ".concat(t,",").concat(r," Z"),s},KG={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},XG=function(t){var r=HA(HA({},KG),t),n=O.useRef(),i=O.useState(-1),a=BG(i,2),o=a[0],s=a[1];O.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var x=n.current.getTotalLength();x&&s(x)}catch{}},[]);var l=r.x,u=r.y,c=r.upperWidth,f=r.lowerWidth,h=r.height,p=r.className,y=r.animationEasing,m=r.animationDuration,d=r.animationBegin,b=r.isUpdateAnimationActive;if(l!==+l||u!==+u||c!==+c||f!==+f||h!==+h||c===0&&f===0||h===0)return null;var v=Mt("recharts-trapezoid",p);return b?O.createElement(mn,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:u},to:{upperWidth:c,lowerWidth:f,height:h,x:l,y:u},duration:m,animationEasing:y,isActive:b},function(x){var _=x.upperWidth,g=x.lowerWidth,w=x.height,S=x.x,A=x.y;return O.createElement(mn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:m,easing:y},O.createElement("path",lc({},_t(r,!0),{className:v,d:GA(S,A,_,g,w),ref:n})))}):O.createElement("g",null,O.createElement("path",lc({},_t(r,!0),{className:v,d:GA(l,u,c,f,h)})))},YG=["option","shapeType","propTransformer","activeClassName","isActive"];function bl(e){"@babel/helpers - typeof";return bl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bl(e)}function VG(e,t){if(e==null)return{};var r=ZG(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ZG(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function KA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function uc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KA(Object(r),!0).forEach(function(n){JG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JG(e,t,r){return t=QG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QG(e){var t=t6(e,"string");return bl(t)=="symbol"?t:t+""}function t6(e,t){if(bl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function e6(e,t){return uc(uc({},t),e)}function r6(e,t){return e==="symbols"}function XA(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return O.createElement(C0,r);case"trapezoid":return O.createElement(XG,r);case"sector":return O.createElement(ZM,r);case"symbols":if(r6(t))return O.createElement(Yc,r);break;default:return null}}function n6(e){return O.isValidElement(e)?e.props:e}function kg(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?e6:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,s=e.isActive,l=VG(e,YG),u;if(O.isValidElement(t))u=O.cloneElement(t,uc(uc({},l),n6(t)));else if(St(t))u=t(l);else if(DG(t)&&!LG(t)){var c=i(t,l);u=O.createElement(XA,{shapeType:r,elementProps:c})}else{var f=l;u=O.createElement(XA,{shapeType:r,elementProps:f})}return s?O.createElement(It,{className:o},u):u}function ef(e,t){return t!=null&&"trapezoids"in e.props}function rf(e,t){return t!=null&&"sectors"in e.props}function xl(e,t){return t!=null&&"points"in e.props}function i6(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function a6(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function o6(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function s6(e,t){var r;return ef(e,t)?r=i6:rf(e,t)?r=a6:xl(e,t)&&(r=o6),r}function l6(e,t){var r;return ef(e,t)?r="trapezoids":rf(e,t)?r="sectors":xl(e,t)&&(r="points"),r}function u6(e,t){if(ef(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(rf(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return xl(e,t)?t.payload:{}}function c6(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=l6(r,t),a=u6(r,t),o=n.filter(function(l,u){var c=ya(a,l),f=r.props[i].filter(function(y){var m=s6(r,t);return m(y,t)}),h=r.props[i].indexOf(f[f.length-1]),p=u===h;return c&&p}),s=n.indexOf(o[o.length-1]);return s}function _l(e){"@babel/helpers - typeof";return _l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_l(e)}function YA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function VA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YA(Object(r),!0).forEach(function(n){sC(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sC(e,t,r){return t=f6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f6(e){var t=h6(e,"string");return _l(t)=="symbol"?t:t+""}function h6(e,t){if(_l(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_l(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var p6=["Webkit","Moz","O","ms"],d6=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=p6.reduce(function(a,o){return VA(VA({},a),{},sC({},o+n,r))},{});return i[t]=r,i};function xo(e){"@babel/helpers - typeof";return xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xo(e)}function cc(){return cc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cc.apply(this,arguments)}function ZA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZA(Object(r),!0).forEach(function(n){Dr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function m6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JA(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,uC(n.key),n)}}function y6(e,t,r){return t&&JA(e.prototype,t),r&&JA(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function g6(e,t,r){return t=fc(t),v6(e,lC()?Reflect.construct(t,r||[],fc(e).constructor):t.apply(e,r))}function v6(e,t){if(t&&(xo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return b6(e)}function b6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lC=function(){return!!e})()}function fc(e){return fc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},fc(e)}function x6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$g(e,t)}function $g(e,t){return $g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},$g(e,t)}function Dr(e,t,r){return t=uC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uC(e){var t=_6(e,"string");return xo(t)=="symbol"?t:t+""}function _6(e,t){if(xo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var w6=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,u=bs().domain(Ys(0,l)).range([a,a+o-s]),c=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(n),endX:u(i),scale:u,scaleValues:c}},QA=function(t){return t.changedTouches&&!!t.changedTouches.length},_o=(function(e){function t(r){var n;return m6(this,t),n=g6(this,t,[r]),Dr(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Dr(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Dr(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,s=i.startIndex;o==null||o({endIndex:a,startIndex:s})}),n.detachDragEndListener()}),Dr(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Dr(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Dr(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Dr(n,"handleSlideDragStart",function(i){var a=QA(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return x6(t,e),y6(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,s=this.props,l=s.gap,u=s.data,c=u.length-1,f=Math.min(i,a),h=Math.max(i,a),p=t.getIndexInRange(o,f),y=t.getIndexInRange(o,h);return{startIndex:p-p%l,endIndex:y===c?c:y-y%l}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,s=i.dataKey,l=qe(a[n],s,n);return St(o)?o(l,n):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,s=i.endX,l=this.props,u=l.x,c=l.width,f=l.travellerWidth,h=l.startIndex,p=l.endIndex,y=l.onChange,m=n.pageX-a;m>0?m=Math.min(m,u+c-f-s,u+c-f-o):m<0&&(m=Math.max(m,u-o,u-s));var d=this.getIndex({startX:o+m,endX:s+m});(d.startIndex!==h||d.endIndex!==p)&&y&&y(d),this.setState({startX:o+m,endX:s+m,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=QA(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,s=i.endX,l=i.startX,u=this.state[o],c=this.props,f=c.x,h=c.width,p=c.travellerWidth,y=c.onChange,m=c.gap,d=c.data,b={startX:this.state.startX,endX:this.state.endX},v=n.pageX-a;v>0?v=Math.min(v,f+h-p-u):v<0&&(v=Math.max(v,f-u)),b[o]=u+v;var x=this.getIndex(b),_=x.startIndex,g=x.endIndex,w=function(){var A=d.length-1;return o==="startX"&&(s>l?_%m===0:g%m===0)||s<l&&g===A||o==="endX"&&(s>l?g%m===0:_%m===0)||s>l&&g===A};this.setState(Dr(Dr({},o,u+v),"brushMoveStartX",n.pageX),function(){y&&w()&&y(x)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,s=o.scaleValues,l=o.startX,u=o.endX,c=this.state[i],f=s.indexOf(c);if(f!==-1){var h=f+n;if(!(h===-1||h>=s.length)){var p=s[h];i==="startX"&&p>=u||i==="endX"&&p<=l||this.setState(Dr({},i,p),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.fill,u=n.stroke;return O.createElement("rect",{stroke:u,fill:l,x:i,y:a,width:o,height:s})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.data,u=n.children,c=n.padding,f=O.Children.only(u);return f?O.cloneElement(f,{x:i,y:a,width:o,height:s,margin:c,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,s=this,l=this.props,u=l.y,c=l.travellerWidth,f=l.height,h=l.traveller,p=l.ariaLabel,y=l.data,m=l.startIndex,d=l.endIndex,b=Math.max(n,this.props.x),v=qm(qm({},_t(this.props,!1)),{},{x:b,y:u,width:c,height:f}),x=p||"Min value: ".concat((a=y[m])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[d])===null||o===void 0?void 0:o.name);return O.createElement(It,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(g){["ArrowLeft","ArrowRight"].includes(g.key)&&(g.preventDefault(),g.stopPropagation(),s.handleTravellerMoveKeyboard(g.key==="ArrowRight"?1:-1,i))},onFocus:function(){s.setState({isTravellerFocused:!0})},onBlur:function(){s.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,v))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,s=a.height,l=a.stroke,u=a.travellerWidth,c=Math.min(n,i)+u,f=Math.max(Math.abs(i-n)-u,0);return O.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:c,y:o,width:f,height:s})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,s=n.height,l=n.travellerWidth,u=n.stroke,c=this.state,f=c.startX,h=c.endX,p=5,y={pointerEvents:"none",fill:u};return O.createElement(It,{className:"recharts-brush-texts"},O.createElement(Vu,cc({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-p,y:o+s/2},y),this.getTextOfTick(i)),O.createElement(Vu,cc({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,h)+l+p,y:o+s/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,s=n.x,l=n.y,u=n.width,c=n.height,f=n.alwaysShowText,h=this.state,p=h.startX,y=h.endX,m=h.isTextActive,d=h.isSlideMoving,b=h.isTravellerMoving,v=h.isTravellerFocused;if(!i||!i.length||!st(s)||!st(l)||!st(u)||!st(c)||u<=0||c<=0)return null;var x=Mt("recharts-brush",a),_=O.Children.count(o)===1,g=d6("userSelect","none");return O.createElement(It,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),_&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(m||d||b||v||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,s=n.height,l=n.stroke,u=Math.floor(a+s/2)-1;return O.createElement(O.Fragment,null,O.createElement("rect",{x:i,y:a,width:o,height:s,fill:l,stroke:"none"}),O.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),O.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return O.isValidElement(n)?a=O.cloneElement(n,i):St(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,s=n.x,l=n.travellerWidth,u=n.updateId,c=n.startIndex,f=n.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return qm({prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o},a&&a.length?w6({data:a,width:o,x:s,travellerWidth:l,startIndex:c,endIndex:f}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||s!==i.prevX||l!==i.prevTravellerWidth)){i.scale.range([s,s+o-l]);var h=i.scale.domain().map(function(p){return i.scale(p)});return{prevData:a,prevTravellerWidth:l,prevUpdateId:u,prevX:s,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,s=a-1;s-o>1;){var l=Math.floor((o+s)/2);n[l]>i?s=l:o=l}return i>=n[s]?s:o}}])})(O.PureComponent);Dr(_o,"displayName","Brush");Dr(_o,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Fm,tO;function S6(){if(tO)return Fm;tO=1;var e=x0();function t(r,n){var i;return e(r,function(a,o,s){return i=n(a,o,s),!i}),!!i}return Fm=t,Fm}var zm,eO;function A6(){if(eO)return zm;eO=1;var e=qE(),t=$i(),r=S6(),n=yr(),i=Nl();function a(o,s,l){var u=n(o)?e:r;return l&&i(o,s,l)&&(s=void 0),u(o,t(s,3))}return zm=a,zm}var O6=A6();const T6=Xt(O6);var $n=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},Um,rO;function P6(){if(rO)return Um;rO=1;var e=QE();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Um=t,Um}var Wm,nO;function E6(){if(nO)return Wm;nO=1;var e=P6(),t=ZE(),r=$i();function n(i,a){var o={};return a=r(a,3),t(i,function(s,l,u){e(o,l,a(s,l,u))}),o}return Wm=n,Wm}var M6=E6();const C6=Xt(M6);var Hm,iO;function k6(){if(iO)return Hm;iO=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return Hm=e,Hm}var Gm,aO;function $6(){if(aO)return Gm;aO=1;var e=x0();function t(r,n){var i=!0;return e(r,function(a,o,s){return i=!!n(a,o,s),i}),i}return Gm=t,Gm}var Km,oO;function j6(){if(oO)return Km;oO=1;var e=k6(),t=$6(),r=$i(),n=yr(),i=Nl();function a(o,s,l){var u=n(o)?e:t;return l&&i(o,s,l)&&(s=void 0),u(o,r(s,3))}return Km=a,Km}var R6=j6();const cC=Xt(R6);var D6=["x","y"];function wo(e){"@babel/helpers - typeof";return wo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wo(e)}function jg(){return jg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jg.apply(this,arguments)}function sO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function us(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sO(Object(r),!0).forEach(function(n){I6(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function I6(e,t,r){return t=N6(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N6(e){var t=L6(e,"string");return wo(t)=="symbol"?t:t+""}function L6(e,t){if(wo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function B6(e,t){if(e==null)return{};var r=q6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function q6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function F6(e,t){var r=e.x,n=e.y,i=B6(e,D6),a="".concat(r),o=parseInt(a,10),s="".concat(n),l=parseInt(s,10),u="".concat(t.height||i.height),c=parseInt(u,10),f="".concat(t.width||i.width),h=parseInt(f,10);return us(us(us(us(us({},t),i),o?{x:o}:{}),l?{y:l}:{}),{},{height:c,width:h,name:t.name,radius:t.radius})}function lO(e){return O.createElement(kg,jg({shapeType:"rectangle",propTransformer:F6,activeClassName:"recharts-active-bar"},e))}var z6=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=st(n)||c5(n);return a?t(n,i):(a||(process.env.NODE_ENV!=="production"?xr(!1,"minPointSize callback function received a value with type of ".concat(wo(n),". Currently only numbers or null/undefined are supported.")):xr()),r)}},U6=["value","background"],fC;function So(e){"@babel/helpers - typeof";return So=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},So(e)}function W6(e,t){if(e==null)return{};var r=H6(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function H6(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function hc(){return hc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hc.apply(this,arguments)}function uO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Me(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?uO(Object(r),!0).forEach(function(n){xi(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function G6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pC(n.key),n)}}function K6(e,t,r){return t&&cO(e.prototype,t),r&&cO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function X6(e,t,r){return t=pc(t),Y6(e,hC()?Reflect.construct(t,r||[],pc(e).constructor):t.apply(e,r))}function Y6(e,t){if(t&&(So(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V6(e)}function V6(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hC=function(){return!!e})()}function pc(e){return pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},pc(e)}function Z6(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rg(e,t)}function Rg(e,t){return Rg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Rg(e,t)}function xi(e,t,r){return t=pC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pC(e){var t=J6(e,"string");return So(t)=="symbol"?t:t+""}function J6(e,t){if(So(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(So(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ho=(function(e){function t(){var r;G6(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=X6(this,t,[].concat(i)),xi(r,"state",{isAnimationFinished:!1}),xi(r,"id",Oa("recharts-bar-")),xi(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),xi(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return Z6(t,e),K6(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.dataKey,l=a.activeIndex,u=a.activeBar,c=_t(this.props,!1);return n&&n.map(function(f,h){var p=h===l,y=p?u:o,m=Me(Me(Me({},c),f),{},{isActive:p,option:y,index:h,dataKey:s,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return O.createElement(It,hc({className:"recharts-bar-rectangle"},Vs(i.props,f,h),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value,"-").concat(h)}),O.createElement(lO,m))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,s=i.isAnimationActive,l=i.animationBegin,u=i.animationDuration,c=i.animationEasing,f=i.animationId,h=this.state.prevData;return O.createElement(mn,{begin:l,duration:u,isActive:s,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var y=p.t,m=a.map(function(d,b){var v=h&&h[b];if(v){var x=Oe(v.x,d.x),_=Oe(v.y,d.y),g=Oe(v.width,d.width),w=Oe(v.height,d.height);return Me(Me({},d),{},{x:x(y),y:_(y),width:g(y),height:w(y)})}if(o==="horizontal"){var S=Oe(0,d.height),A=S(y);return Me(Me({},d),{},{y:d.y+d.height-A,height:A})}var T=Oe(0,d.width),M=T(y);return Me(Me({},d),{},{width:M})});return O.createElement(It,null,n.renderRectanglesStatically(m))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!ya(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,s=i.activeIndex,l=_t(this.props.background,!1);return a.map(function(u,c){u.value;var f=u.background,h=W6(u,U6);if(!f)return null;var p=Me(Me(Me(Me(Me({},h),{},{fill:"#eee"},f),l),Vs(n.props,u,c)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:c,className:"recharts-bar-background-rectangle"});return O.createElement(lO,hc({key:"background-bar-".concat(c),option:n.props.background,isActive:c===s},p))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,s=a.xAxis,l=a.yAxis,u=a.layout,c=a.children,f=Tr(c,Wo);if(!f)return null;var h=u==="vertical"?o[0].height/2:o[0].width/2,p=function(d,b){var v=Array.isArray(d.value)?d.value[1]:d.value;return{x:d.x,y:d.y,value:v,errorVal:qe(d,b)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement(It,y,f.map(function(m){return O.cloneElement(m,{key:"error-bar-".concat(i,"-").concat(m.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,s=n.xAxis,l=n.yAxis,u=n.left,c=n.top,f=n.width,h=n.height,p=n.isAnimationActive,y=n.background,m=n.id;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,b=Mt("recharts-bar",o),v=s&&s.allowDataOverflow,x=l&&l.allowDataOverflow,_=v||x,g=bt(m)?this.id:m;return O.createElement(It,{className:b},v||x?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(g)},O.createElement("rect",{x:v?u:u-f/2,y:x?c:c-h/2,width:v?f:f*2,height:x?h:h*2}))):null,O.createElement(It,{className:"recharts-bar-rectangles",clipPath:_?"url(#clipPath-".concat(g,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(_,g),(!p||d)&&kn.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(O.PureComponent);fC=Ho;xi(Ho,"displayName","Bar");xi(Ho,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!ji.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});xi(Ho,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,u=e.stackedData,c=e.dataStartIndex,f=e.displayedData,h=e.offset,p=yW(n,r);if(!p)return null;var y=t.layout,m=r.type.defaultProps,d=m!==void 0?Me(Me({},m),r.props):r.props,b=d.dataKey,v=d.children,x=d.minPointSize,_=y==="horizontal"?o:a,g=u?_.scale.domain():null,w=AW({numericAxis:_}),S=Tr(v,O0),A=f.map(function(T,M){var P,E,C,$,j,k;u?P=gW(u[c+M],g):(P=qe(T,b),Array.isArray(P)||(P=[w,P]));var R=z6(x,fC.defaultProps.minPointSize)(P[1],M);if(y==="horizontal"){var L,U=[o.scale(P[0]),o.scale(P[1])],I=U[0],B=U[1];E=WS({axis:a,ticks:s,bandSize:i,offset:p.offset,entry:T,index:M}),C=(L=B??I)!==null&&L!==void 0?L:void 0,$=p.size;var q=I-B;if(j=Number.isNaN(q)?0:q,k={x:E,y:o.y,width:$,height:o.height},Math.abs(R)>0&&Math.abs(j)<Math.abs(R)){var N=dn(j||R)*(Math.abs(R)-Math.abs(j));C-=N,j+=N}}else{var G=[a.scale(P[0]),a.scale(P[1])],F=G[0],K=G[1];if(E=F,C=WS({axis:o,ticks:l,bandSize:i,offset:p.offset,entry:T,index:M}),$=K-F,j=p.size,k={x:a.x,y:C,width:a.width,height:j},Math.abs(R)>0&&Math.abs($)<Math.abs(R)){var Z=dn($||R)*(Math.abs(R)-Math.abs($));$+=Z}}return Me(Me(Me({},T),{},{x:E,y:C,width:$,height:j,value:u?P:P[1],payload:T,background:k},S&&S[M]&&S[M].props),{},{tooltipPayload:[XM(r,T)],tooltipPosition:{x:E+$/2,y:C+j/2}})});return Me({data:A,layout:y},h)});function wl(e){"@babel/helpers - typeof";return wl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wl(e)}function Q6(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dC(n.key),n)}}function t4(e,t,r){return t&&fO(e.prototype,t),r&&fO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function hO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hO(Object(r),!0).forEach(function(n){nf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nf(e,t,r){return t=dC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dC(e){var t=e4(e,"string");return wl(t)=="symbol"?t:t+""}function e4(e,t){if(wl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var r4=function(t,r,n,i,a){var o=t.width,s=t.height,l=t.layout,u=t.children,c=Object.keys(r),f={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:s-n.bottom,bottomMirror:s-n.bottom},h=!!Ir(u,Ho);return c.reduce(function(p,y){var m=r[y],d=m.orientation,b=m.domain,v=m.padding,x=v===void 0?{}:v,_=m.mirror,g=m.reversed,w="".concat(d).concat(_?"Mirror":""),S,A,T,M,P;if(m.type==="number"&&(m.padding==="gap"||m.padding==="no-gap")){var E=b[1]-b[0],C=1/0,$=m.categoricalDomain.sort(d5);if($.forEach(function(G,F){F>0&&(C=Math.min((G||0)-($[F-1]||0),C))}),Number.isFinite(C)){var j=C/E,k=m.layout==="vertical"?n.height:n.width;if(m.padding==="gap"&&(S=j*k/2),m.padding==="no-gap"){var R=ma(t.barCategoryGap,j*k),L=j*k/2;S=L-R-(L-R)/k*R}}}i==="xAxis"?A=[n.left+(x.left||0)+(S||0),n.left+n.width-(x.right||0)-(S||0)]:i==="yAxis"?A=l==="horizontal"?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(S||0),n.top+n.height-(x.bottom||0)-(S||0)]:A=m.range,g&&(A=[A[1],A[0]]);var U=dW(m,a,h),I=U.scale,B=U.realScaleType;I.domain(b).range(A),mW(I);var q=SW(I,cn(cn({},m),{},{realScaleType:B}));i==="xAxis"?(P=d==="top"&&!_||d==="bottom"&&_,T=n.left,M=f[w]-P*m.height):i==="yAxis"&&(P=d==="left"&&!_||d==="right"&&_,T=f[w]-P*m.width,M=n.top);var N=cn(cn(cn({},m),q),{},{realScaleType:B,x:T,y:M,scale:I,width:i==="xAxis"?n.width:m.width,height:i==="yAxis"?n.height:m.height});return N.bandSize=tc(N,q),!m.hide&&i==="xAxis"?f[w]+=(P?-1:1)*N.height:m.hide||(f[w]+=(P?-1:1)*N.width),cn(cn({},p),{},nf({},y,N))},{})},mC=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},n4=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return mC({x:r,y:n},{x:i,y:a})},yC=(function(){function e(t){Q6(this,e),this.scale=t}return t4(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(i){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();nf(yC,"EPS",1e-4);var k0=function(t){var r=Object.keys(t).reduce(function(n,i){return cn(cn({},n),{},nf({},i,yC.create(t[i])))},{});return cn(cn({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,s=a.position;return C6(i,function(l,u){return r[u].apply(l,{bandAware:o,position:s})})},isInRange:function(i){return cC(i,function(a,o){return r[o].isInRange(a)})}})};function i4(e){return(e%180+180)%180}var a4=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=i4(i),o=a*Math.PI/180,s=Math.atan(n/r),l=o>s&&o<Math.PI-s?n/Math.sin(o):r/Math.cos(o);return Math.abs(l)},Xm,pO;function o4(){if(pO)return Xm;pO=1;var e=$i(),t=Dl(),r=Il();function n(i){return function(a,o,s){var l=Object(a);if(!t(a)){var u=e(o,3);a=r(a),o=function(f){return u(l[f],f,l)}}var c=i(a,o,s);return c>-1?l[u?a[c]:c]:void 0}}return Xm=n,Xm}var Ym,dO;function s4(){if(dO)return Ym;dO=1;var e=pM(),t=$i(),r=s0(),n=Math.max;function i(a,o,s){var l=a==null?0:a.length;if(!l)return-1;var u=s==null?0:r(s);return u<0&&(u=n(l+u,0)),e(a,t(o,3),u)}return Ym=i,Ym}var Vm,mO;function l4(){if(mO)return Vm;mO=1;var e=o4(),t=s4(),r=e(t);return Vm=r,Vm}var u4=l4();const c4=Xt(u4);var f4=IE();const h4=Xt(f4);var p4=h4(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")});function dc(e){"@babel/helpers - typeof";return dc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dc(e)}var $0=O.createContext(void 0),j0=O.createContext(void 0),gC=O.createContext(void 0),vC=O.createContext({}),bC=O.createContext(void 0),xC=O.createContext(0),_C=O.createContext(0),yO=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,s=t.children,l=t.width,u=t.height,c=p4(a);return O.createElement($0.Provider,{value:n},O.createElement(j0.Provider,{value:i},O.createElement(vC.Provider,{value:a},O.createElement(gC.Provider,{value:c},O.createElement(bC.Provider,{value:o},O.createElement(xC.Provider,{value:u},O.createElement(_C.Provider,{value:l},s)))))))},d4=function(){return O.useContext(bC)};function wC(e){var t=Object.keys(e);return t.length===0?"There are no available ids.":"Available ids are: ".concat(t,".")}var SC=function(t){var r=O.useContext($0);r==null&&(process.env.NODE_ENV!=="production"?xr(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):xr());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?xr(!1,'Could not find xAxis by id "'.concat(t,'" [').concat(dc(t),"]. ").concat(wC(r))):xr()),n},m4=function(){var t=O.useContext($0);return di(t)},y4=function(){var t=O.useContext(j0),r=c4(t,function(n){return cC(n.domain,Number.isFinite)});return r||di(t)},AC=function(t){var r=O.useContext(j0);r==null&&(process.env.NODE_ENV!=="production"?xr(!1,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):xr());var n=r[t];return n==null&&(process.env.NODE_ENV!=="production"?xr(!1,'Could not find yAxis by id "'.concat(t,'" [').concat(dc(t),"]. ").concat(wC(r))):xr()),n},g4=function(){var t=O.useContext(gC);return t},v4=function(){return O.useContext(vC)},R0=function(){return O.useContext(_C)},D0=function(){return O.useContext(xC)};function Ao(e){"@babel/helpers - typeof";return Ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ao(e)}function b4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,TC(n.key),n)}}function _4(e,t,r){return t&&x4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function w4(e,t,r){return t=mc(t),S4(e,OC()?Reflect.construct(t,r||[],mc(e).constructor):t.apply(e,r))}function S4(e,t){if(t&&(Ao(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A4(e)}function A4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OC=function(){return!!e})()}function mc(e){return mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},mc(e)}function O4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dg(e,t)}function Dg(e,t){return Dg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Dg(e,t)}function gO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function vO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?gO(Object(r),!0).forEach(function(n){I0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function I0(e,t,r){return t=TC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TC(e){var t=T4(e,"string");return Ao(t)=="symbol"?t:t+""}function T4(e,t){if(Ao(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ao(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function P4(e,t){return k4(e)||C4(e,t)||M4(e,t)||E4()}function E4(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
156
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M4(e,t){if(e){if(typeof e=="string")return bO(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bO(e,t)}}function bO(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function C4(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function k4(e){if(Array.isArray(e))return e}function Ig(){return Ig=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ig.apply(this,arguments)}var $4=function(t,r){var n;return O.isValidElement(t)?n=O.cloneElement(t,r):St(t)?n=t(r):n=O.createElement("line",Ig({},r,{className:"recharts-reference-line-line"})),n},j4=function(t,r,n,i,a,o,s,l,u){var c=a.x,f=a.y,h=a.width,p=a.height;if(n){var y=u.y,m=t.y.apply(y,{position:o});if($n(u,"discard")&&!t.y.isInRange(m))return null;var d=[{x:c+h,y:m},{x:c,y:m}];return l==="left"?d.reverse():d}if(r){var b=u.x,v=t.x.apply(b,{position:o});if($n(u,"discard")&&!t.x.isInRange(v))return null;var x=[{x:v,y:f+p},{x:v,y:f}];return s==="top"?x.reverse():x}if(i){var _=u.segment,g=_.map(function(w){return t.apply(w,{position:o})});return $n(u,"discard")&&T6(g,function(w){return!t.isInRange(w)})?null:g}return null};function R4(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,s=e.className,l=e.alwaysShow,u=d4(),c=SC(i),f=AC(a),h=g4();if(!u||!h)return null;Kn(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=k0({x:c.scale,y:f.scale}),y=Be(t),m=Be(r),d=n&&n.length===2,b=j4(p,y,m,d,h,e.position,c.orientation,f.orientation,e);if(!b)return null;var v=P4(b,2),x=v[0],_=x.x,g=x.y,w=v[1],S=w.x,A=w.y,T=$n(e,"hidden")?"url(#".concat(u,")"):void 0,M=vO(vO({clipPath:T},_t(e,!0)),{},{x1:_,y1:g,x2:S,y2:A});return O.createElement(It,{className:Mt("recharts-reference-line",s)},$4(o,M),lr.renderCallByParent(e,n4({x1:_,y1:g,x2:S,y2:A})))}var af=(function(e){function t(){return b4(this,t),w4(this,t,arguments)}return O4(t,e),_4(t,[{key:"render",value:function(){return O.createElement(R4,this.props)}}])})(O.Component);I0(af,"displayName","ReferenceLine");I0(af,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Ng(){return Ng=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ng.apply(this,arguments)}function Oo(e){"@babel/helpers - typeof";return Oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oo(e)}function xO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _O(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xO(Object(r),!0).forEach(function(n){of(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function D4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function I4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,EC(n.key),n)}}function N4(e,t,r){return t&&I4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function L4(e,t,r){return t=yc(t),B4(e,PC()?Reflect.construct(t,r||[],yc(e).constructor):t.apply(e,r))}function B4(e,t){if(t&&(Oo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return q4(e)}function q4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(PC=function(){return!!e})()}function yc(e){return yc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},yc(e)}function F4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lg(e,t)}function Lg(e,t){return Lg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Lg(e,t)}function of(e,t,r){return t=EC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EC(e){var t=z4(e,"string");return Oo(t)=="symbol"?t:t+""}function z4(e,t){if(Oo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Oo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var U4=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=k0({x:i.scale,y:a.scale}),s=o.apply({x:r,y:n},{bandAware:!0});return $n(t,"discard")&&!o.isInRange(s)?null:s},sf=(function(e){function t(){return D4(this,t),L4(this,t,arguments)}return F4(t,e),N4(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,s=n.alwaysShow,l=n.clipPathId,u=Be(i),c=Be(a);if(Kn(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!c)return null;var f=U4(this.props);if(!f)return null;var h=f.x,p=f.y,y=this.props,m=y.shape,d=y.className,b=$n(this.props,"hidden")?"url(#".concat(l,")"):void 0,v=_O(_O({clipPath:b},_t(this.props,!0)),{},{cx:h,cy:p});return O.createElement(It,{className:Mt("recharts-reference-dot",d)},t.renderDot(m,v),lr.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])})(O.Component);of(sf,"displayName","ReferenceDot");of(sf,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});of(sf,"renderDot",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):St(e)?r=e(t):r=O.createElement(tf,Ng({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function Bg(){return Bg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Bg.apply(this,arguments)}function To(e){"@babel/helpers - typeof";return To=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},To(e)}function wO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function SO(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wO(Object(r),!0).forEach(function(n){lf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function W4(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H4(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,CC(n.key),n)}}function G4(e,t,r){return t&&H4(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function K4(e,t,r){return t=gc(t),X4(e,MC()?Reflect.construct(t,r||[],gc(e).constructor):t.apply(e,r))}function X4(e,t){if(t&&(To(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Y4(e)}function Y4(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MC=function(){return!!e})()}function gc(e){return gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},gc(e)}function V4(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qg(e,t)}function qg(e,t){return qg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},qg(e,t)}function lf(e,t,r){return t=CC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CC(e){var t=Z4(e,"string");return To(t)=="symbol"?t:t+""}function Z4(e,t){if(To(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(To(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var J4=function(t,r,n,i,a){var o=a.x1,s=a.x2,l=a.y1,u=a.y2,c=a.xAxis,f=a.yAxis;if(!c||!f)return null;var h=k0({x:c.scale,y:f.scale}),p={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:n?h.y.apply(l,{position:"start"}):h.y.rangeMin},y={x:r?h.x.apply(s,{position:"end"}):h.x.rangeMax,y:i?h.y.apply(u,{position:"end"}):h.y.rangeMax};return $n(a,"discard")&&(!h.isInRange(p)||!h.isInRange(y))?null:mC(p,y)},uf=(function(e){function t(){return W4(this,t),K4(this,t,arguments)}return V4(t,e),G4(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,s=n.y2,l=n.className,u=n.alwaysShow,c=n.clipPathId;Kn(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=Be(i),h=Be(a),p=Be(o),y=Be(s),m=this.props.shape;if(!f&&!h&&!p&&!y&&!m)return null;var d=J4(f,h,p,y,this.props);if(!d&&!m)return null;var b=$n(this.props,"hidden")?"url(#".concat(c,")"):void 0;return O.createElement(It,{className:Mt("recharts-reference-area",l)},t.renderRect(m,SO(SO({clipPath:b},_t(this.props,!0)),d)),lr.renderCallByParent(this.props,d))}}])})(O.Component);lf(uf,"displayName","ReferenceArea");lf(uf,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});lf(uf,"renderRect",function(e,t){var r;return O.isValidElement(e)?r=O.cloneElement(e,t):St(e)?r=e(t):r=O.createElement(C0,Bg({},t,{className:"recharts-reference-area-rect"})),r});function kC(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function Q4(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return a4(n,r)}function tK(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,s=e.height;return t===1?{start:n?i:a,end:n?i+o:a+s}:{start:n?i+o:a+s,end:n?i:a}}function vc(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function eK(e,t){return kC(e,t+1)}function rK(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,s=t.end,l=0,u=1,c=o,f=function(){var y=n==null?void 0:n[l];if(y===void 0)return{v:kC(n,u)};var m=l,d,b=function(){return d===void 0&&(d=r(y,m)),d},v=y.coordinate,x=l===0||vc(e,v,b,c,s);x||(l=0,c=o,u+=1),x&&(c=v+e*(b()/2+i),l+=u)},h;u<=a.length;)if(h=f(),h)return h.v;return[]}function Sl(e){"@babel/helpers - typeof";return Sl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sl(e)}function AO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function or(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?AO(Object(r),!0).forEach(function(n){nK(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):AO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nK(e,t,r){return t=iK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iK(e){var t=aK(e,"string");return Sl(t)=="symbol"?t:t+""}function aK(e,t){if(Sl(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Sl(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oK(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,s=t.start,l=t.end,u=function(h){var p=a[h],y,m=function(){return y===void 0&&(y=r(p,h)),y};if(h===o-1){var d=e*(p.coordinate+e*m()/2-l);a[h]=p=or(or({},p),{},{tickCoord:d>0?p.coordinate-d*e:p.coordinate})}else a[h]=p=or(or({},p),{},{tickCoord:p.coordinate});var b=vc(e,p.tickCoord,m,s,l);b&&(l=p.tickCoord-e*(m()/2+i),a[h]=or(or({},p),{},{isShow:!0}))},c=o-1;c>=0;c--)u(c);return a}function sK(e,t,r,n,i,a){var o=(n||[]).slice(),s=o.length,l=t.start,u=t.end;if(a){var c=n[s-1],f=r(c,s-1),h=e*(c.coordinate+e*f/2-u);o[s-1]=c=or(or({},c),{},{tickCoord:h>0?c.coordinate-h*e:c.coordinate});var p=vc(e,c.tickCoord,function(){return f},l,u);p&&(u=c.tickCoord-e*(f/2+i),o[s-1]=or(or({},c),{},{isShow:!0}))}for(var y=a?s-1:s,m=function(v){var x=o[v],_,g=function(){return _===void 0&&(_=r(x,v)),_};if(v===0){var w=e*(x.coordinate-e*g()/2-l);o[v]=x=or(or({},x),{},{tickCoord:w<0?x.coordinate-w*e:x.coordinate})}else o[v]=x=or(or({},x),{},{tickCoord:x.coordinate});var S=vc(e,x.tickCoord,g,l,u);S&&(l=x.tickCoord+e*(g()/2+i),o[v]=or(or({},x),{},{isShow:!0}))},d=0;d<y;d++)m(d);return o}function N0(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,s=e.orientation,l=e.interval,u=e.tickFormatter,c=e.unit,f=e.angle;if(!i||!i.length||!n)return[];if(st(l)||ji.isSsr)return eK(i,typeof l=="number"&&st(l)?l:0);var h=[],p=s==="top"||s==="bottom"?"width":"height",y=c&&p==="width"?Ms(c,{fontSize:t,letterSpacing:r}):{width:0,height:0},m=function(x,_){var g=St(u)?u(x.value,_):x.value;return p==="width"?Q4(Ms(g,{fontSize:t,letterSpacing:r}),y,f):Ms(g,{fontSize:t,letterSpacing:r})[p]},d=i.length>=2?dn(i[1].coordinate-i[0].coordinate):1,b=tK(a,d,p);return l==="equidistantPreserveStart"?rK(d,b,m,i,o):(l==="preserveStart"||l==="preserveStartEnd"?h=sK(d,b,m,i,o,l==="preserveStartEnd"):h=oK(d,b,m,i,o),h.filter(function(v){return v.isShow}))}var lK=["viewBox"],uK=["viewBox"],cK=["ticks"];function Po(e){"@babel/helpers - typeof";return Po=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Po(e)}function za(){return za=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},za.apply(this,arguments)}function OO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?OO(Object(r),!0).forEach(function(n){L0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zm(e,t){if(e==null)return{};var r=fK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function hK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jC(n.key),n)}}function pK(e,t,r){return t&&TO(e.prototype,t),r&&TO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function dK(e,t,r){return t=bc(t),mK(e,$C()?Reflect.construct(t,r||[],bc(e).constructor):t.apply(e,r))}function mK(e,t){if(t&&(Po(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yK(e)}function yK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($C=function(){return!!e})()}function bc(e){return bc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},bc(e)}function gK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fg(e,t)}function Fg(e,t){return Fg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Fg(e,t)}function L0(e,t,r){return t=jC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jC(e){var t=vK(e,"string");return Po(t)=="symbol"?t:t+""}function vK(e,t){if(Po(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Po(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Go=(function(e){function t(r){var n;return hK(this,t),n=dK(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return gK(t,e),pK(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Zm(n,lK),s=this.props,l=s.viewBox,u=Zm(s,uK);return!Ja(a,l)||!Ja(o,u)||!Ja(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,s=i.width,l=i.height,u=i.orientation,c=i.tickSize,f=i.mirror,h=i.tickMargin,p,y,m,d,b,v,x=f?-1:1,_=n.tickSize||c,g=st(n.tickCoord)?n.tickCoord:n.coordinate;switch(u){case"top":p=y=n.coordinate,d=o+ +!f*l,m=d-x*_,v=m-x*h,b=g;break;case"left":m=d=n.coordinate,y=a+ +!f*s,p=y-x*_,b=p-x*h,v=g;break;case"right":m=d=n.coordinate,y=a+ +f*s,p=y+x*_,b=p+x*h,v=g;break;default:p=y=n.coordinate,d=o+ +f*l,m=d+x*_,v=m+x*h,b=g;break}return{line:{x1:p,y1:m,x2:y,y2:d},tick:{x:b,y:v}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,s=n.height,l=n.orientation,u=n.mirror,c=n.axisLine,f=Ne(Ne(Ne({},_t(this.props,!1)),_t(c,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var h=+(l==="top"&&!u||l==="bottom"&&u);f=Ne(Ne({},f),{},{x1:i,y1:a+h*s,x2:i+o,y2:a+h*s})}else{var p=+(l==="left"&&!u||l==="right"&&u);f=Ne(Ne({},f),{},{x1:i+p*o,y1:a,x2:i+p*o,y2:a+s})}return O.createElement("line",za({},f,{className:Mt("recharts-cartesian-axis-line",nn(c,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,s=this.props,l=s.tickLine,u=s.stroke,c=s.tick,f=s.tickFormatter,h=s.unit,p=N0(Ne(Ne({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),m=this.getTickVerticalAnchor(),d=_t(this.props,!1),b=_t(c,!1),v=Ne(Ne({},d),{},{fill:"none"},_t(l,!1)),x=p.map(function(_,g){var w=o.getTickLineCoord(_),S=w.line,A=w.tick,T=Ne(Ne(Ne(Ne({textAnchor:y,verticalAnchor:m},d),{},{stroke:"none",fill:u},b),A),{},{index:g,payload:_,visibleTicksCount:p.length,tickFormatter:f});return O.createElement(It,za({className:"recharts-cartesian-axis-tick",key:"tick-".concat(_.value,"-").concat(_.coordinate,"-").concat(_.tickCoord)},Vs(o.props,_,g)),l&&O.createElement("line",za({},v,S,{className:Mt("recharts-cartesian-axis-tick-line",nn(l,"className"))})),c&&t.renderTickItem(c,T,"".concat(St(f)?f(_.value,g):_.value).concat(h||"")))});return O.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,s=i.height,l=i.ticksGenerator,u=i.className,c=i.hide;if(c)return null;var f=this.props,h=f.ticks,p=Zm(f,cK),y=h;return St(l)&&(y=h&&h.length>0?l(this.props):l(p)),o<=0||s<=0||!y||!y.length?null:O.createElement(It,{className:Mt("recharts-cartesian-axis",u),ref:function(d){n.layerReference=d}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),lr.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,s=Mt(i.className,"recharts-cartesian-axis-tick-value");return O.isValidElement(n)?o=O.cloneElement(n,Ne(Ne({},i),{},{className:s})):St(n)?o=n(Ne(Ne({},i),{},{className:s})):o=O.createElement(Vu,za({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(O.Component);L0(Go,"displayName","CartesianAxis");L0(Go,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var bK=["x1","y1","x2","y2","key"],xK=["offset"];function va(e){"@babel/helpers - typeof";return va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},va(e)}function PO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ur(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?PO(Object(r),!0).forEach(function(n){_K(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):PO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _K(e,t,r){return t=wK(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wK(e){var t=SK(e,"string");return va(t)=="symbol"?t:t+""}function SK(e,t){if(va(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(va(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ji(){return Ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ji.apply(this,arguments)}function EO(e,t){if(e==null)return{};var r=AK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function AK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var OK=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,s=t.height,l=t.ry;return O.createElement("rect",{x:i,y:a,ry:l,width:o,height:s,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function RC(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(St(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,s=t.key,l=EO(t,bK),u=_t(l,!1);u.offset;var c=EO(u,xK);r=O.createElement("line",Ji({},c,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:s}))}return r}function TK(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=ur(ur({},e),{},{x1:t,y1:s,x2:t+r,y2:s,key:"line-".concat(l),index:l});return RC(i,u)});return O.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function PK(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(s,l){var u=ur(ur({},e),{},{x1:s,y1:t,x2:s,y2:t+r,key:"line-".concat(l),index:l});return RC(i,u)});return O.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function EK(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,s=e.horizontalPoints,l=e.horizontal,u=l===void 0?!0:l;if(!u||!t||!t.length)return null;var c=s.map(function(h){return Math.round(h+i-i)}).sort(function(h,p){return h-p});i!==c[0]&&c.unshift(0);var f=c.map(function(h,p){var y=!c[p+1],m=y?i+o-h:c[p+1]-h;if(m<=0)return null;var d=p%t.length;return O.createElement("rect",{key:"react-".concat(p),y:h,x:n,height:m,width:a,stroke:"none",fill:t[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function MK(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,s=e.width,l=e.height,u=e.verticalPoints;if(!r||!n||!n.length)return null;var c=u.map(function(h){return Math.round(h+a-a)}).sort(function(h,p){return h-p});a!==c[0]&&c.unshift(0);var f=c.map(function(h,p){var y=!c[p+1],m=y?a+s-h:c[p+1]-h;if(m<=0)return null;var d=p%n.length;return O.createElement("rect",{key:"react-".concat(p),x:h,y:o,width:m,height:l,stroke:"none",fill:n[d],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return O.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var CK=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return GM(N0(ur(ur(ur({},Go.defaultProps),n),{},{ticks:Hn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},kK=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return GM(N0(ur(ur(ur({},Go.defaultProps),n),{},{ticks:Hn(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},Ia={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function DC(e){var t,r,n,i,a,o,s=R0(),l=D0(),u=v4(),c=ur(ur({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Ia.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Ia.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Ia.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Ia.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Ia.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Ia.verticalFill,x:st(e.x)?e.x:u.left,y:st(e.y)?e.y:u.top,width:st(e.width)?e.width:u.width,height:st(e.height)?e.height:u.height}),f=c.x,h=c.y,p=c.width,y=c.height,m=c.syncWithTicks,d=c.horizontalValues,b=c.verticalValues,v=m4(),x=y4();if(!st(p)||p<=0||!st(y)||y<=0||!st(f)||f!==+f||!st(h)||h!==+h)return null;var _=c.verticalCoordinatesGenerator||CK,g=c.horizontalCoordinatesGenerator||kK,w=c.horizontalPoints,S=c.verticalPoints;if((!w||!w.length)&&St(g)){var A=d&&d.length,T=g({yAxis:x?ur(ur({},x),{},{ticks:A?d:x.ticks}):void 0,width:s,height:l,offset:u},A?!0:m);Kn(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(va(T),"]")),Array.isArray(T)&&(w=T)}if((!S||!S.length)&&St(_)){var M=b&&b.length,P=_({xAxis:v?ur(ur({},v),{},{ticks:M?b:v.ticks}):void 0,width:s,height:l,offset:u},M?!0:m);Kn(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(va(P),"]")),Array.isArray(P)&&(S=P)}return O.createElement("g",{className:"recharts-cartesian-grid"},O.createElement(OK,{fill:c.fill,fillOpacity:c.fillOpacity,x:c.x,y:c.y,width:c.width,height:c.height,ry:c.ry}),O.createElement(TK,Ji({},c,{offset:u,horizontalPoints:w,xAxis:v,yAxis:x})),O.createElement(PK,Ji({},c,{offset:u,verticalPoints:S,xAxis:v,yAxis:x})),O.createElement(EK,Ji({},c,{horizontalPoints:w})),O.createElement(MK,Ji({},c,{verticalPoints:S})))}DC.displayName="CartesianGrid";var $K=["type","layout","connectNulls","ref"],jK=["key"];function Eo(e){"@babel/helpers - typeof";return Eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eo(e)}function MO(e,t){if(e==null)return{};var r=RK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function $s(){return $s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$s.apply(this,arguments)}function CO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CO(Object(r),!0).forEach(function(n){fn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Na(e){return LK(e)||NK(e)||IK(e)||DK()}function DK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
157
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IK(e,t){if(e){if(typeof e=="string")return zg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zg(e,t)}}function NK(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function LK(e){if(Array.isArray(e))return zg(e)}function zg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function BK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,NC(n.key),n)}}function qK(e,t,r){return t&&kO(e.prototype,t),r&&kO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function FK(e,t,r){return t=xc(t),zK(e,IC()?Reflect.construct(t,r||[],xc(e).constructor):t.apply(e,r))}function zK(e,t){if(t&&(Eo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return UK(e)}function UK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IC=function(){return!!e})()}function xc(e){return xc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},xc(e)}function WK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ug(e,t)}function Ug(e,t){return Ug=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Ug(e,t)}function fn(e,t,r){return t=NC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NC(e){var t=HK(e,"string");return Eo(t)=="symbol"?t:t+""}function HK(e,t){if(Eo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Eo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cf=(function(e){function t(){var r;BK(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=FK(this,t,[].concat(i)),fn(r,"state",{isAnimationFinished:!0,totalLength:0}),fn(r,"generateSimpleStrokeDasharray",function(o,s){return"".concat(s,"px ").concat(o-s,"px")}),fn(r,"getStrokeDasharray",function(o,s,l){var u=l.reduce(function(b,v){return b+v});if(!u)return r.generateSimpleStrokeDasharray(s,o);for(var c=Math.floor(o/u),f=o%u,h=s-o,p=[],y=0,m=0;y<l.length;m+=l[y],++y)if(m+l[y]>f){p=[].concat(Na(l.slice(0,y)),[f-m]);break}var d=p.length%2===0?[0,h]:[h];return[].concat(Na(t.repeat(l,c)),Na(p),d).map(function(b){return"".concat(b,"px")}).join(", ")}),fn(r,"id",Oa("recharts-line-")),fn(r,"pathRef",function(o){r.mainCurve=o}),fn(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0}),r.props.onAnimationEnd&&r.props.onAnimationEnd()}),fn(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1}),r.props.onAnimationStart&&r.props.onAnimationStart()}),r}return WK(t,e),qK(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();this.setState({totalLength:n})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var n=this.getTotalLength();n!==this.state.totalLength&&this.setState({totalLength:n})}}},{key:"getTotalLength",value:function(){var n=this.mainCurve;try{return n&&n.getTotalLength&&n.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,s=a.xAxis,l=a.yAxis,u=a.layout,c=a.children,f=Tr(c,Wo);if(!f)return null;var h=function(m,d){return{x:m.x,y:m.y,value:m.value,errorVal:qe(m.payload,d)}},p={clipPath:n?"url(#clipPath-".concat(i,")"):null};return O.createElement(It,p,f.map(function(y){return O.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:s,yAxis:l,layout:u,dataPointFormatter:h})}))}},{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.dot,u=s.points,c=s.dataKey,f=_t(this.props,!1),h=_t(l,!0),p=u.map(function(m,d){var b=Rr(Rr(Rr({key:"dot-".concat(d),r:3},f),h),{},{index:d,cx:m.x,cy:m.y,value:m.value,dataKey:c,payload:m.payload,points:u});return t.renderDotItem(l,b)}),y={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(It,$s({className:"recharts-line-dots",key:"dots"},y),p)}},{key:"renderCurveStatically",value:function(n,i,a,o){var s=this.props,l=s.type,u=s.layout,c=s.connectNulls;s.ref;var f=MO(s,$K),h=Rr(Rr(Rr({},_t(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:n},o),{},{type:l,layout:u,connectNulls:c});return O.createElement(sa,$s({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.strokeDasharray,u=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,h=o.animationEasing,p=o.animationId,y=o.animateNewValues,m=o.width,d=o.height,b=this.state,v=b.prevPoints,x=b.totalLength;return O.createElement(mn,{begin:c,duration:f,isActive:u,easing:h,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(_){var g=_.t;if(v){var w=v.length/s.length,S=s.map(function(E,C){var $=Math.floor(C*w);if(v[$]){var j=v[$],k=Oe(j.x,E.x),R=Oe(j.y,E.y);return Rr(Rr({},E),{},{x:k(g),y:R(g)})}if(y){var L=Oe(m*2,E.x),U=Oe(d/2,E.y);return Rr(Rr({},E),{},{x:L(g),y:U(g)})}return Rr(Rr({},E),{},{x:E.x,y:E.y})});return a.renderCurveStatically(S,n,i)}var A=Oe(0,x),T=A(g),M;if(l){var P="".concat(l).split(/[,\s]+/gim).map(function(E){return parseFloat(E)});M=a.getStrokeDasharray(T,x,P)}else M=a.generateSimpleStrokeDasharray(x,T);return a.renderCurveStatically(s,n,i,{strokeDasharray:M})})}},{key:"renderCurve",value:function(n,i){var a=this.props,o=a.points,s=a.isAnimationActive,l=this.state,u=l.prevPoints,c=l.totalLength;return s&&o&&o.length&&(!u&&c>0||!ya(u,o))?this.renderCurveWithAnimation(n,i):this.renderCurveStatically(o,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,u=i.xAxis,c=i.yAxis,f=i.top,h=i.left,p=i.width,y=i.height,m=i.isAnimationActive,d=i.id;if(a||!s||!s.length)return null;var b=this.state.isAnimationFinished,v=s.length===1,x=Mt("recharts-line",l),_=u&&u.allowDataOverflow,g=c&&c.allowDataOverflow,w=_||g,S=bt(d)?this.id:d,A=(n=_t(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=A.r,M=T===void 0?3:T,P=A.strokeWidth,E=P===void 0?2:P,C=lM(o)?o:{},$=C.clipDot,j=$===void 0?!0:$,k=M*2+E;return O.createElement(It,{className:x},_||g?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(S)},O.createElement("rect",{x:_?h:h-p/2,y:g?f:f-y/2,width:_?p:p*2,height:g?y:y*2})),!j&&O.createElement("clipPath",{id:"clipPath-dots-".concat(S)},O.createElement("rect",{x:h-k/2,y:f-k/2,width:p+k,height:y+k}))):null,!v&&this.renderCurve(w,S),this.renderErrorBar(w,S),(v||o)&&this.renderDots(w,j,S),(!m||b)&&kn.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}},{key:"repeat",value:function(n,i){for(var a=n.length%2!==0?[].concat(Na(n),[0]):n,o=[],s=0;s<i;++s)o=[].concat(Na(o),Na(a));return o}},{key:"renderDotItem",value:function(n,i){var a;if(O.isValidElement(n))a=O.cloneElement(n,i);else if(St(n))a=n(i);else{var o=i.key,s=MO(i,jK),l=Mt("recharts-line-dot",typeof n!="boolean"?n.className:"");a=O.createElement(tf,$s({key:o},s,{className:l}))}return a}}])})(O.PureComponent);fn(cf,"displayName","Line");fn(cf,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ji.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});fn(cf,"getComposedData",function(e){var t=e.props,r=e.xAxis,n=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,s=e.bandSize,l=e.displayedData,u=e.offset,c=t.layout,f=l.map(function(h,p){var y=qe(h,o);return c==="horizontal"?{x:vo({axis:r,ticks:i,bandSize:s,entry:h,index:p}),y:bt(y)?null:n.scale(y),value:y,payload:h}:{x:bt(y)?null:r.scale(y),y:vo({axis:n,ticks:a,bandSize:s,entry:h,index:p}),value:y,payload:h}});return Rr({points:f,layout:c},u)});var GK=["layout","type","stroke","connectNulls","isRange","ref"],KK=["key"],LC;function Mo(e){"@babel/helpers - typeof";return Mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mo(e)}function BC(e,t){if(e==null)return{};var r=XK(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function XK(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Qi(){return Qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qi.apply(this,arguments)}function $O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function hi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$O(Object(r),!0).forEach(function(n){Mn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$O(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function YK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,FC(n.key),n)}}function VK(e,t,r){return t&&jO(e.prototype,t),r&&jO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ZK(e,t,r){return t=_c(t),JK(e,qC()?Reflect.construct(t,r||[],_c(e).constructor):t.apply(e,r))}function JK(e,t){if(t&&(Mo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return QK(e)}function QK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(qC=function(){return!!e})()}function _c(e){return _c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},_c(e)}function tX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wg(e,t)}function Wg(e,t){return Wg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Wg(e,t)}function Mn(e,t,r){return t=FC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FC(e){var t=eX(e,"string");return Mo(t)=="symbol"?t:t+""}function eX(e,t){if(Mo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Di=(function(e){function t(){var r;YK(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=ZK(this,t,[].concat(i)),Mn(r,"state",{isAnimationFinished:!0}),Mn(r,"id",Oa("recharts-area-")),Mn(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),St(o)&&o()}),Mn(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),St(o)&&o()}),r}return tX(t,e),VK(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,s=this.state.isAnimationFinished;if(o&&!s)return null;var l=this.props,u=l.dot,c=l.points,f=l.dataKey,h=_t(this.props,!1),p=_t(u,!0),y=c.map(function(d,b){var v=hi(hi(hi({key:"dot-".concat(b),r:3},h),p),{},{index:b,cx:d.x,cy:d.y,dataKey:f,value:d.value,payload:d.payload,points:c});return t.renderDotItem(u,v)}),m={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return O.createElement(It,Qi({className:"recharts-area-dots"},m),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].x,u=o[o.length-1].x,c=n*Math.abs(l-u),f=bi(o.map(function(h){return h.y||0}));return st(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(bi(a.map(function(h){return h.y||0})),f)),st(f)?O.createElement("rect",{x:l<u?l:l-c,y:0,width:c,height:Math.floor(f+(s?parseInt("".concat(s),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,s=i.strokeWidth,l=o[0].y,u=o[o.length-1].y,c=n*Math.abs(l-u),f=bi(o.map(function(h){return h.x||0}));return st(a)&&typeof a=="number"?f=Math.max(a,f):a&&Array.isArray(a)&&a.length&&(f=Math.max(bi(a.map(function(h){return h.x||0})),f)),st(f)?O.createElement("rect",{x:0,y:l<u?l:l-c,width:f+(s?parseInt("".concat(s),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var s=this.props,l=s.layout,u=s.type,c=s.stroke,f=s.connectNulls,h=s.isRange;s.ref;var p=BC(s,GK);return O.createElement(It,{clipPath:a?"url(#clipPath-".concat(o,")"):null},O.createElement(sa,Qi({},_t(p,!0),{points:n,connectNulls:f,type:u,baseLine:i,layout:l,stroke:"none",className:"recharts-area-area"})),c!=="none"&&O.createElement(sa,Qi({},_t(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:f,fill:"none",points:n})),c!=="none"&&h&&O.createElement(sa,Qi({},_t(this.props,!1),{className:"recharts-area-curve",layout:l,type:u,connectNulls:f,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,s=o.points,l=o.baseLine,u=o.isAnimationActive,c=o.animationBegin,f=o.animationDuration,h=o.animationEasing,p=o.animationId,y=this.state,m=y.prevPoints,d=y.prevBaseLine;return O.createElement(mn,{begin:c,duration:f,isActive:u,easing:h,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(b){var v=b.t;if(m){var x=m.length/s.length,_=s.map(function(A,T){var M=Math.floor(T*x);if(m[M]){var P=m[M],E=Oe(P.x,A.x),C=Oe(P.y,A.y);return hi(hi({},A),{},{x:E(v),y:C(v)})}return A}),g;if(st(l)&&typeof l=="number"){var w=Oe(d,l);g=w(v)}else if(bt(l)||Fo(l)){var S=Oe(d,0);g=S(v)}else g=l.map(function(A,T){var M=Math.floor(T*x);if(d[M]){var P=d[M],E=Oe(P.x,A.x),C=Oe(P.y,A.y);return hi(hi({},A),{},{x:E(v),y:C(v)})}return A});return a.renderAreaStatically(_,g,n,i)}return O.createElement(It,null,O.createElement("defs",null,O.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(v))),O.createElement(It,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(s,l,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,s=a.baseLine,l=a.isAnimationActive,u=this.state,c=u.prevPoints,f=u.prevBaseLine,h=u.totalLength;return l&&o&&o.length&&(!c&&h>0||!ya(c,o)||!ya(f,s))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,s,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,s=i.points,l=i.className,u=i.top,c=i.left,f=i.xAxis,h=i.yAxis,p=i.width,y=i.height,m=i.isAnimationActive,d=i.id;if(a||!s||!s.length)return null;var b=this.state.isAnimationFinished,v=s.length===1,x=Mt("recharts-area",l),_=f&&f.allowDataOverflow,g=h&&h.allowDataOverflow,w=_||g,S=bt(d)?this.id:d,A=(n=_t(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=A.r,M=T===void 0?3:T,P=A.strokeWidth,E=P===void 0?2:P,C=lM(o)?o:{},$=C.clipDot,j=$===void 0?!0:$,k=M*2+E;return O.createElement(It,{className:x},_||g?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(S)},O.createElement("rect",{x:_?c:c-p/2,y:g?u:u-y/2,width:_?p:p*2,height:g?y:y*2})),!j&&O.createElement("clipPath",{id:"clipPath-dots-".concat(S)},O.createElement("rect",{x:c-k/2,y:u-k/2,width:p+k,height:y+k}))):null,v?null:this.renderArea(w,S),(o||v)&&this.renderDots(w,j,S),(!m||b)&&kn.renderCallByParent(this.props,s))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(O.PureComponent);LC=Di;Mn(Di,"displayName","Area");Mn(Di,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!ji.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Mn(Di,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,s=o??a;if(st(s)&&typeof s=="number")return s;var l=i==="horizontal"?n:r,u=l.scale.domain();if(l.type==="number"){var c=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return s==="dataMin"?f:s==="dataMax"||c<0?c:Math.max(Math.min(u[0],u[1]),0)}return s==="dataMin"?u[0]:s==="dataMax"?u[1]:u[0]});Mn(Di,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,s=e.bandSize,l=e.dataKey,u=e.stackedData,c=e.dataStartIndex,f=e.displayedData,h=e.offset,p=t.layout,y=u&&u.length,m=LC.getBaseValue(t,r,n,i),d=p==="horizontal",b=!1,v=f.map(function(_,g){var w;y?w=u[c+g]:(w=qe(_,l),Array.isArray(w)?b=!0:w=[m,w]);var S=w[1]==null||y&&qe(_,l)==null;return d?{x:vo({axis:n,ticks:a,bandSize:s,entry:_,index:g}),y:S?null:i.scale(w[1]),value:w,payload:_}:{x:S?null:n.scale(w[1]),y:vo({axis:i,ticks:o,bandSize:s,entry:_,index:g}),value:w,payload:_}}),x;return y||b?x=v.map(function(_){var g=Array.isArray(_.value)?_.value[0]:null;return d?{x:_.x,y:g!=null&&_.y!=null?i.scale(g):null}:{x:g!=null?n.scale(g):null,y:_.y}}):x=d?i.scale(m):n.scale(m),hi({points:v,baseLine:x,layout:p,isRange:b},h)});Mn(Di,"renderDotItem",function(e,t){var r;if(O.isValidElement(e))r=O.cloneElement(e,t);else if(St(e))r=e(t);else{var n=Mt("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=BC(t,KK);r=O.createElement(tf,Qi({},a,{key:i,className:n}))}return r});function Co(e){"@babel/helpers - typeof";return Co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Co(e)}function rX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nX(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,WC(n.key),n)}}function iX(e,t,r){return t&&nX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function aX(e,t,r){return t=wc(t),oX(e,zC()?Reflect.construct(t,r||[],wc(e).constructor):t.apply(e,r))}function oX(e,t){if(t&&(Co(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sX(e)}function sX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zC=function(){return!!e})()}function wc(e){return wc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},wc(e)}function lX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hg(e,t)}function Hg(e,t){return Hg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Hg(e,t)}function UC(e,t,r){return t=WC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WC(e){var t=uX(e,"string");return Co(t)=="symbol"?t:t+""}function uX(e,t){if(Co(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Co(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ff=(function(e){function t(){return rX(this,t),aX(this,t,arguments)}return lX(t,e),iX(t,[{key:"render",value:function(){return null}}])})(rn.Component);UC(ff,"displayName","ZAxis");UC(ff,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var cX=["option","isActive"];function js(){return js=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},js.apply(this,arguments)}function fX(e,t){if(e==null)return{};var r=hX(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function hX(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function pX(e){var t=e.option,r=e.isActive,n=fX(e,cX);return typeof t=="string"?rn.createElement(kg,js({option:rn.createElement(Yc,js({type:t},n)),isActive:r,shapeType:"symbols"},n)):rn.createElement(kg,js({option:t,isActive:r,shapeType:"symbols"},n))}function ko(e){"@babel/helpers - typeof";return ko=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ko(e)}function Rs(){return Rs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rs.apply(this,arguments)}function RO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Zr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?RO(Object(r),!0).forEach(function(n){_i(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):RO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DO(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,GC(n.key),n)}}function mX(e,t,r){return t&&DO(e.prototype,t),r&&DO(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function yX(e,t,r){return t=Sc(t),gX(e,HC()?Reflect.construct(t,r||[],Sc(e).constructor):t.apply(e,r))}function gX(e,t){if(t&&(ko(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vX(e)}function vX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(HC=function(){return!!e})()}function Sc(e){return Sc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Sc(e)}function bX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gg(e,t)}function Gg(e,t){return Gg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gg(e,t)}function _i(e,t,r){return t=GC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GC(e){var t=xX(e,"string");return ko(t)=="symbol"?t:t+""}function xX(e,t){if(ko(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ko(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var hf=(function(e){function t(){var r;dX(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=yX(this,t,[].concat(i)),_i(r,"state",{isAnimationFinished:!1}),_i(r,"handleAnimationEnd",function(){r.setState({isAnimationFinished:!0})}),_i(r,"handleAnimationStart",function(){r.setState({isAnimationFinished:!1})}),_i(r,"id",Oa("recharts-scatter-")),r}return bX(t,e),mX(t,[{key:"renderSymbolsStatically",value:function(n){var i=this,a=this.props,o=a.shape,s=a.activeShape,l=a.activeIndex,u=_t(this.props,!1);return n.map(function(c,f){var h=l===f,p=h?s:o,y=Zr(Zr({},u),c);return O.createElement(It,Rs({className:"recharts-scatter-symbol",key:"symbol-".concat(c==null?void 0:c.cx,"-").concat(c==null?void 0:c.cy,"-").concat(c==null?void 0:c.size,"-").concat(f)},Vs(i.props,c,f),{role:"img"}),O.createElement(pX,Rs({option:p,isActive:h,key:"symbol-".concat(f)},y)))})}},{key:"renderSymbolsWithAnimation",value:function(){var n=this,i=this.props,a=i.points,o=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,c=i.animationId,f=this.state.prevPoints;return O.createElement(mn,{begin:s,duration:l,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var p=h.t,y=a.map(function(m,d){var b=f&&f[d];if(b){var v=Oe(b.cx,m.cx),x=Oe(b.cy,m.cy),_=Oe(b.size,m.size);return Zr(Zr({},m),{},{cx:v(p),cy:x(p),size:_(p)})}var g=Oe(0,m.size);return Zr(Zr({},m),{},{size:g(p)})});return O.createElement(It,null,n.renderSymbolsStatically(y))})}},{key:"renderSymbols",value:function(){var n=this.props,i=n.points,a=n.isAnimationActive,o=this.state.prevPoints;return a&&i&&i.length&&(!o||!ya(o,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var n=this.props.isAnimationActive;if(n&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,o=i.xAxis,s=i.yAxis,l=i.children,u=Tr(l,Wo);return u?u.map(function(c,f){var h=c.props,p=h.direction,y=h.dataKey;return O.cloneElement(c,{key:"".concat(p,"-").concat(y,"-").concat(a[f]),data:a,xAxis:o,yAxis:s,layout:p==="x"?"vertical":"horizontal",dataPointFormatter:function(d,b){return{x:d.cx,y:d.cy,value:p==="x"?+d.node.x:+d.node.y,errorVal:qe(d,b)}}})}):null}},{key:"renderLine",value:function(){var n=this.props,i=n.points,a=n.line,o=n.lineType,s=n.lineJointType,l=_t(this.props,!1),u=_t(a,!1),c,f;if(o==="joint")c=i.map(function(x){return{x:x.cx,y:x.cy}});else if(o==="fitting"){var h=p5(i),p=h.xmin,y=h.xmax,m=h.a,d=h.b,b=function(_){return m*_+d};c=[{x:p,y:b(p)},{x:y,y:b(y)}]}var v=Zr(Zr(Zr({},l),{},{fill:"none",stroke:l&&l.fill},u),{},{points:c});return O.isValidElement(a)?f=O.cloneElement(a,v):St(a)?f=a(v):f=O.createElement(sa,Rs({},v,{type:s})),O.createElement(It,{className:"recharts-scatter-line",key:"recharts-scatter-line"},f)}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.points,o=n.line,s=n.className,l=n.xAxis,u=n.yAxis,c=n.left,f=n.top,h=n.width,p=n.height,y=n.id,m=n.isAnimationActive;if(i||!a||!a.length)return null;var d=this.state.isAnimationFinished,b=Mt("recharts-scatter",s),v=l&&l.allowDataOverflow,x=u&&u.allowDataOverflow,_=v||x,g=bt(y)?this.id:y;return O.createElement(It,{className:b,clipPath:_?"url(#clipPath-".concat(g,")"):null},v||x?O.createElement("defs",null,O.createElement("clipPath",{id:"clipPath-".concat(g)},O.createElement("rect",{x:v?c:c-h/2,y:x?f:f-p/2,width:v?h:h*2,height:x?p:p*2}))):null,o&&this.renderLine(),this.renderErrorBar(),O.createElement(It,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!m||d)&&kn.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,prevPoints:i.curPoints}:n.points!==i.curPoints?{curPoints:n.points}:null}}])})(O.PureComponent);_i(hf,"displayName","Scatter");_i(hf,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!ji.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});_i(hf,"getComposedData",function(e){var t=e.xAxis,r=e.yAxis,n=e.zAxis,i=e.item,a=e.displayedData,o=e.xAxisTicks,s=e.yAxisTicks,l=e.offset,u=i.props.tooltipType,c=Tr(i.props.children,O0),f=bt(t.dataKey)?i.props.dataKey:t.dataKey,h=bt(r.dataKey)?i.props.dataKey:r.dataKey,p=n&&n.dataKey,y=n?n.range:ff.defaultProps.range,m=y&&y[0],d=t.scale.bandwidth?t.scale.bandwidth():0,b=r.scale.bandwidth?r.scale.bandwidth():0,v=a.map(function(x,_){var g=qe(x,f),w=qe(x,h),S=!bt(p)&&qe(x,p)||"-",A=[{name:bt(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:g,payload:x,dataKey:f,type:u},{name:bt(r.dataKey)?i.props.name:r.name||r.dataKey,unit:r.unit||"",value:w,payload:x,dataKey:h,type:u}];S!=="-"&&A.push({name:n.name||n.dataKey,unit:n.unit||"",value:S,payload:x,dataKey:p,type:u});var T=vo({axis:t,ticks:o,bandSize:d,entry:x,index:_,dataKey:f}),M=vo({axis:r,ticks:s,bandSize:b,entry:x,index:_,dataKey:h}),P=S!=="-"?n.scale(S):m,E=Math.sqrt(Math.max(P,0)/Math.PI);return Zr(Zr({},x),{},{cx:T,cy:M,x:T-E,y:M-E,xAxis:t,yAxis:r,zAxis:n,width:2*E,height:2*E,size:P,node:{x:g,y:w,z:S},tooltipPayload:A,tooltipPosition:{x:T,y:M},payload:x},c&&c[_]&&c[_].props)});return Zr({points:v},l)});function $o(e){"@babel/helpers - typeof";return $o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$o(e)}function _X(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wX(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,YC(n.key),n)}}function SX(e,t,r){return t&&wX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function AX(e,t,r){return t=Ac(t),OX(e,KC()?Reflect.construct(t,r||[],Ac(e).constructor):t.apply(e,r))}function OX(e,t){if(t&&($o(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return TX(e)}function TX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KC=function(){return!!e})()}function Ac(e){return Ac=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ac(e)}function PX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Kg(e,t)}function Kg(e,t){return Kg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Kg(e,t)}function XC(e,t,r){return t=YC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YC(e){var t=EX(e,"string");return $o(t)=="symbol"?t:t+""}function EX(e,t){if($o(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($o(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Xg(){return Xg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xg.apply(this,arguments)}function MX(e){var t=e.xAxisId,r=R0(),n=D0(),i=SC(t);return i==null?null:rn.createElement(Go,Xg({},i,{className:Mt("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return Hn(o,!0)}}))}var pf=(function(e){function t(){return _X(this,t),AX(this,t,arguments)}return PX(t,e),SX(t,[{key:"render",value:function(){return rn.createElement(MX,this.props)}}])})(rn.Component);XC(pf,"displayName","XAxis");XC(pf,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function jo(e){"@babel/helpers - typeof";return jo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jo(e)}function CX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kX(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,JC(n.key),n)}}function $X(e,t,r){return t&&kX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jX(e,t,r){return t=Oc(t),RX(e,VC()?Reflect.construct(t,r||[],Oc(e).constructor):t.apply(e,r))}function RX(e,t){if(t&&(jo(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return DX(e)}function DX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VC=function(){return!!e})()}function Oc(e){return Oc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Oc(e)}function IX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Yg(e,t)}function Yg(e,t){return Yg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Yg(e,t)}function ZC(e,t,r){return t=JC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JC(e){var t=NX(e,"string");return jo(t)=="symbol"?t:t+""}function NX(e,t){if(jo(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(jo(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Vg(){return Vg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vg.apply(this,arguments)}var LX=function(t){var r=t.yAxisId,n=R0(),i=D0(),a=AC(r);return a==null?null:rn.createElement(Go,Vg({},a,{className:Mt("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(s){return Hn(s,!0)}}))},df=(function(e){function t(){return CX(this,t),jX(this,t,arguments)}return IX(t,e),$X(t,[{key:"render",value:function(){return rn.createElement(LX,this.props)}}])})(rn.Component);ZC(df,"displayName","YAxis");ZC(df,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function IO(e){return zX(e)||FX(e)||qX(e)||BX()}function BX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
158
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qX(e,t){if(e){if(typeof e=="string")return Zg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zg(e,t)}}function FX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zX(e){if(Array.isArray(e))return Zg(e)}function Zg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Jg=function(t,r,n,i,a){var o=Tr(t,af),s=Tr(t,sf),l=[].concat(IO(o),IO(s)),u=Tr(t,uf),c="".concat(i,"Id"),f=i[0],h=r;if(l.length&&(h=l.reduce(function(m,d){if(d.props[c]===n&&$n(d.props,"extendDomain")&&st(d.props[f])){var b=d.props[f];return[Math.min(m[0],b),Math.max(m[1],b)]}return m},h)),u.length){var p="".concat(f,"1"),y="".concat(f,"2");h=u.reduce(function(m,d){if(d.props[c]===n&&$n(d.props,"extendDomain")&&st(d.props[p])&&st(d.props[y])){var b=d.props[p],v=d.props[y];return[Math.min(m[0],b,v),Math.max(m[1],b,v)]}return m},h)}return a&&a.length&&(h=a.reduce(function(m,d){return st(d)?[Math.min(m[0],d),Math.max(m[1],d)]:m},h)),h},Jm={exports:{}},NO;function UX(){return NO||(NO=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(l,u,c){this.fn=l,this.context=u,this.once=c||!1}function a(l,u,c,f,h){if(typeof c!="function")throw new TypeError("The listener must be a function");var p=new i(c,f||l,h),y=r?r+u:u;return l._events[y]?l._events[y].fn?l._events[y]=[l._events[y],p]:l._events[y].push(p):(l._events[y]=p,l._eventsCount++),l}function o(l,u){--l._eventsCount===0?l._events=new n:delete l._events[u]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],c,f;if(this._eventsCount===0)return u;for(f in c=this._events)t.call(c,f)&&u.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(c)):u},s.prototype.listeners=function(u){var c=r?r+u:u,f=this._events[c];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,p=f.length,y=new Array(p);h<p;h++)y[h]=f[h].fn;return y},s.prototype.listenerCount=function(u){var c=r?r+u:u,f=this._events[c];return f?f.fn?1:f.length:0},s.prototype.emit=function(u,c,f,h,p,y){var m=r?r+u:u;if(!this._events[m])return!1;var d=this._events[m],b=arguments.length,v,x;if(d.fn){switch(d.once&&this.removeListener(u,d.fn,void 0,!0),b){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,c),!0;case 3:return d.fn.call(d.context,c,f),!0;case 4:return d.fn.call(d.context,c,f,h),!0;case 5:return d.fn.call(d.context,c,f,h,p),!0;case 6:return d.fn.call(d.context,c,f,h,p,y),!0}for(x=1,v=new Array(b-1);x<b;x++)v[x-1]=arguments[x];d.fn.apply(d.context,v)}else{var _=d.length,g;for(x=0;x<_;x++)switch(d[x].once&&this.removeListener(u,d[x].fn,void 0,!0),b){case 1:d[x].fn.call(d[x].context);break;case 2:d[x].fn.call(d[x].context,c);break;case 3:d[x].fn.call(d[x].context,c,f);break;case 4:d[x].fn.call(d[x].context,c,f,h);break;default:if(!v)for(g=1,v=new Array(b-1);g<b;g++)v[g-1]=arguments[g];d[x].fn.apply(d[x].context,v)}}return!0},s.prototype.on=function(u,c,f){return a(this,u,c,f,!1)},s.prototype.once=function(u,c,f){return a(this,u,c,f,!0)},s.prototype.removeListener=function(u,c,f,h){var p=r?r+u:u;if(!this._events[p])return this;if(!c)return o(this,p),this;var y=this._events[p];if(y.fn)y.fn===c&&(!h||y.once)&&(!f||y.context===f)&&o(this,p);else{for(var m=0,d=[],b=y.length;m<b;m++)(y[m].fn!==c||h&&!y[m].once||f&&y[m].context!==f)&&d.push(y[m]);d.length?this._events[p]=d.length===1?d[0]:d:o(this,p)}return this},s.prototype.removeAllListeners=function(u){var c;return u?(c=r?r+u:u,this._events[c]&&o(this,c)):(this._events=new n,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=r,s.EventEmitter=s,e.exports=s})(Jm)),Jm.exports}var WX=UX();const HX=Xt(WX);var Qm=new HX,ty="recharts.syncMouseEvents";function Al(e){"@babel/helpers - typeof";return Al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Al(e)}function GX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KX(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,QC(n.key),n)}}function XX(e,t,r){return t&&KX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ey(e,t,r){return t=QC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QC(e){var t=YX(e,"string");return Al(t)=="symbol"?t:t+""}function YX(e,t){if(Al(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Al(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var VX=(function(){function e(){GX(this,e),ey(this,"activeIndex",0),ey(this,"coordinateList",[]),ey(this,"layout","horizontal")}return XX(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,s=o===void 0?null:o,l=r.layout,u=l===void 0?null:l,c=r.offset,f=c===void 0?null:c,h=r.mouseHandlerCallback,p=h===void 0?null:h;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=s??this.container,this.layout=u??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,s=i.height,l=this.coordinateList[this.activeIndex].coordinate,u=((r=window)===null||r===void 0?void 0:r.scrollX)||0,c=((n=window)===null||n===void 0?void 0:n.scrollY)||0,f=a+l+u,h=o+this.offset.top+s/2+c;this.mouseHandlerCallback({pageX:f,pageY:h})}}}])})();function ZX(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e==null?void 0:e[0],i=e==null?void 0:e[1];if(n&&i&&st(n)&&st(i))return!0}return!1}function JX(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function tk(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=Qe(t,r,n,i),s=Qe(t,r,n,a);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function QX(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var s=t.cx,l=t.cy,u=t.innerRadius,c=t.outerRadius,f=t.angle,h=Qe(s,l,u,f),p=Qe(s,l,c,f);n=h.x,i=h.y,a=p.x,o=p.y}else return tk(t);return[{x:n,y:i},{x:a,y:o}]}function Ol(e){"@babel/helpers - typeof";return Ol=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ol(e)}function LO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ou(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LO(Object(r),!0).forEach(function(n){tY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function tY(e,t,r){return t=eY(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eY(e){var t=rY(e,"string");return Ol(t)=="symbol"?t:t+""}function rY(e,t){if(Ol(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ol(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nY(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,s=e.activePayload,l=e.offset,u=e.activeTooltipIndex,c=e.tooltipAxisBandSize,f=e.layout,h=e.chartName,p=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!p||!a||!o||h!=="ScatterChart"&&i!=="axis")return null;var y,m=sa;if(h==="ScatterChart")y=o,m=kG;else if(h==="BarChart")y=JX(f,o,l,c),m=C0;else if(f==="radial"){var d=tk(o),b=d.cx,v=d.cy,x=d.radius,_=d.startAngle,g=d.endAngle;y={cx:b,cy:v,startAngle:_,endAngle:g,innerRadius:x,outerRadius:x},m=ZM}else y={points:QX(f,o,l)},m=sa;var w=ou(ou(ou(ou({stroke:"#ccc",pointerEvents:"none"},l),y),_t(p,!1)),{},{payload:s,payloadIndex:u,className:Mt("recharts-tooltip-cursor",p.className)});return O.isValidElement(p)?O.cloneElement(p,w):O.createElement(m,w)}var iY=["item"],aY=["children","className","width","height","style","compact","title","desc"];function Ro(e){"@babel/helpers - typeof";return Ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ro(e)}function Ua(){return Ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ua.apply(this,arguments)}function BO(e,t){return lY(e)||sY(e,t)||rk(e,t)||oY()}function oY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
159
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sY(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}function lY(e){if(Array.isArray(e))return e}function qO(e,t){if(e==null)return{};var r=uY(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function uY(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function cY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fY(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,nk(n.key),n)}}function hY(e,t,r){return t&&fY(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pY(e,t,r){return t=Tc(t),dY(e,ek()?Reflect.construct(t,r||[],Tc(e).constructor):t.apply(e,r))}function dY(e,t){if(t&&(Ro(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mY(e)}function mY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ek(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ek=function(){return!!e})()}function Tc(e){return Tc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Tc(e)}function yY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qg(e,t)}function Qg(e,t){return Qg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qg(e,t)}function Do(e){return bY(e)||vY(e)||rk(e)||gY()}function gY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
160
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rk(e,t){if(e){if(typeof e=="string")return tv(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tv(e,t)}}function vY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bY(e){if(Array.isArray(e))return tv(e)}function tv(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function FO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function J(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?FO(Object(r),!0).forEach(function(n){vt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):FO(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vt(e,t,r){return t=nk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nk(e){var t=xY(e,"string");return Ro(t)=="symbol"?t:t+""}function xY(e,t){if(Ro(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ro(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _Y={xAxis:["bottom","top"],yAxis:["left","right"]},wY={width:"100%",height:"100%"},ik={x:0,y:0};function su(e){return e}var SY=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},AY=function(t,r,n,i){var a=r.find(function(c){return c&&c.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,s=i.radius;return J(J(J({},i),Qe(i.cx,i.cy,s,o)),{},{angle:o,radius:s})}var l=a.coordinate,u=i.angle;return J(J(J({},i),Qe(i.cx,i.cy,l,u)),{},{angle:u,radius:l})}return ik},mf=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(s,l){var u=l.props.data;return u&&u.length?[].concat(Do(s),Do(u)):s},[]);return o.length>0?o:t&&t.length&&st(i)&&st(a)?t.slice(i,a+1):[]};function ak(e){return e==="number"?[0,"auto"]:void 0}var ev=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,s=mf(r,t);return n<0||!a||!a.length||n>=s.length?null:a.reduce(function(l,u){var c,f=(c=u.props.data)!==null&&c!==void 0?c:r;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=f===void 0?s:f;h=Uu(p,o.dataKey,i)}else h=f&&f[n]||s[n];return h?[].concat(Do(l),[XM(u,h)]):l},[])},zO=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=SY(a,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,u=t.tooltipTicks,c=lW(o,s,u,l);if(c>=0&&u){var f=u[c]&&u[c].value,h=ev(t,r,c,f),p=AY(n,s,c,a);return{activeTooltipIndex:c,activeLabel:f,activePayload:h,activeCoordinate:p}}return null},OY=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,h=t.stackOffset,p=HM(c,a);return n.reduce(function(y,m){var d,b=m.type.defaultProps!==void 0?J(J({},m.type.defaultProps),m.props):m.props,v=b.type,x=b.dataKey,_=b.allowDataOverflow,g=b.allowDuplicatedCategory,w=b.scale,S=b.ticks,A=b.includeHidden,T=b[o];if(y[T])return y;var M=mf(t.data,{graphicalItems:i.filter(function(q){var N,G=o in q.props?q.props[o]:(N=q.type.defaultProps)===null||N===void 0?void 0:N[o];return G===T}),dataStartIndex:l,dataEndIndex:u}),P=M.length,E,C,$;ZX(b.domain,_,v)&&(E=mg(b.domain,null,_),p&&(v==="number"||w!=="auto")&&($=Cs(M,x,"category")));var j=ak(v);if(!E||E.length===0){var k,R=(k=b.domain)!==null&&k!==void 0?k:j;if(x){if(E=Cs(M,x,v),v==="category"&&p){var L=h5(E);g&&L?(C=E,E=Ys(0,P)):g||(E=KS(R,E,m).reduce(function(q,N){return q.indexOf(N)>=0?q:[].concat(Do(q),[N])},[]))}else if(v==="category")g?E=E.filter(function(q){return q!==""&&!bt(q)}):E=KS(R,E,m).reduce(function(q,N){return q.indexOf(N)>=0||N===""||bt(N)?q:[].concat(Do(q),[N])},[]);else if(v==="number"){var U=pW(M,i.filter(function(q){var N,G,F=o in q.props?q.props[o]:(N=q.type.defaultProps)===null||N===void 0?void 0:N[o],K="hide"in q.props?q.props.hide:(G=q.type.defaultProps)===null||G===void 0?void 0:G.hide;return F===T&&(A||!K)}),x,a,c);U&&(E=U)}p&&(v==="number"||w!=="auto")&&($=Cs(M,x,"category"))}else p?E=Ys(0,P):s&&s[T]&&s[T].hasStack&&v==="number"?E=h==="expand"?[0,1]:KM(s[T].stackGroups,l,u):E=WM(M,i.filter(function(q){var N=o in q.props?q.props[o]:q.type.defaultProps[o],G="hide"in q.props?q.props.hide:q.type.defaultProps.hide;return N===T&&(A||!G)}),v,c,!0);if(v==="number")E=Jg(f,E,T,a,S),R&&(E=mg(R,E,_));else if(v==="category"&&R){var I=R,B=E.every(function(q){return I.indexOf(q)>=0});B&&(E=I)}}return J(J({},y),{},vt({},T,J(J({},b),{},{axisType:a,domain:E,categoricalDomain:$,duplicateDomain:C,originalDomain:(d=b.domain)!==null&&d!==void 0?d:j,isCategorical:p,layout:c})))},{})},TY=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.layout,f=t.children,h=mf(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:u}),p=h.length,y=HM(c,a),m=-1;return n.reduce(function(d,b){var v=b.type.defaultProps!==void 0?J(J({},b.type.defaultProps),b.props):b.props,x=v[o],_=ak("number");if(!d[x]){m++;var g;return y?g=Ys(0,p):s&&s[x]&&s[x].hasStack?(g=KM(s[x].stackGroups,l,u),g=Jg(f,g,x,a)):(g=mg(_,WM(h,n.filter(function(w){var S,A,T=o in w.props?w.props[o]:(S=w.type.defaultProps)===null||S===void 0?void 0:S[o],M="hide"in w.props?w.props.hide:(A=w.type.defaultProps)===null||A===void 0?void 0:A.hide;return T===x&&!M}),"number",c),i.defaultProps.allowDataOverflow),g=Jg(f,g,x,a)),J(J({},d),{},vt({},x,J(J({axisType:a},i.defaultProps),{},{hide:!0,orientation:nn(_Y,"".concat(a,".").concat(m%2),null),domain:g,originalDomain:_,isCategorical:y,layout:c})))}return d},{})},PY=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,u=r.dataEndIndex,c=t.children,f="".concat(i,"Id"),h=Tr(c,a),p={};return h&&h.length?p=OY(t,{axes:h,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u}):o&&o.length&&(p=TY(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:f,stackGroups:s,dataStartIndex:l,dataEndIndex:u})),p},EY=function(t){var r=di(t),n=Hn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Kc(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:tc(r,n)}},UO=function(t){var r=t.children,n=t.defaultShowTooltip,i=Ir(r,_o),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},MY=function(t){return!t||!t.length?!1:t.some(function(r){var n=Gn(r&&r.type);return n&&n.indexOf("Bar")>=0})},WO=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},CY=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,s=t.yAxisMap,l=s===void 0?{}:s,u=n.width,c=n.height,f=n.children,h=n.margin||{},p=Ir(f,_o),y=Ir(f,aa),m=Object.keys(l).reduce(function(g,w){var S=l[w],A=S.orientation;return!S.mirror&&!S.hide?J(J({},g),{},vt({},A,g[A]+S.width)):g},{left:h.left||0,right:h.right||0}),d=Object.keys(o).reduce(function(g,w){var S=o[w],A=S.orientation;return!S.mirror&&!S.hide?J(J({},g),{},vt({},A,nn(g,"".concat(A))+S.height)):g},{top:h.top||0,bottom:h.bottom||0}),b=J(J({},d),m),v=b.bottom;p&&(b.bottom+=p.props.height||_o.defaultProps.height),y&&r&&(b=fW(b,i,n,r));var x=u-b.left-b.right,_=c-b.top-b.bottom;return J(J({brushBottom:v},b),{},{width:Math.max(x,0),height:Math.max(_,0)})},kY=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},$Y=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,s=o===void 0?["axis"]:o,l=t.axisComponents,u=t.legendContent,c=t.formatAxisMap,f=t.defaultProps,h=function(b,v){var x=v.graphicalItems,_=v.stackGroups,g=v.offset,w=v.updateId,S=v.dataStartIndex,A=v.dataEndIndex,T=b.barSize,M=b.layout,P=b.barGap,E=b.barCategoryGap,C=b.maxBarSize,$=WO(M),j=$.numericAxisName,k=$.cateAxisName,R=MY(x),L=[];return x.forEach(function(U,I){var B=mf(b.data,{graphicalItems:[U],dataStartIndex:S,dataEndIndex:A}),q=U.type.defaultProps!==void 0?J(J({},U.type.defaultProps),U.props):U.props,N=q.dataKey,G=q.maxBarSize,F=q["".concat(j,"Id")],K=q["".concat(k,"Id")],Z={},X=l.reduce(function(nt,pt){var kt,lt,At=v["".concat(pt.axisType,"Map")],gt=q["".concat(pt.axisType,"Id")];At&&At[gt]||pt.axisType==="zAxis"||(process.env.NODE_ENV!=="production"?xr(!1,"Specifying a(n) ".concat(pt.axisType,"Id requires a corresponding ").concat(pt.axisType,"Id on the targeted graphical component ").concat((kt=U==null||(lt=U.type)===null||lt===void 0?void 0:lt.displayName)!==null&&kt!==void 0?kt:"")):xr());var Ot=At[gt];return J(J({},nt),{},vt(vt({},pt.axisType,Ot),"".concat(pt.axisType,"Ticks"),Hn(Ot)))},Z),z=X[k],Y=X["".concat(k,"Ticks")],V=_&&_[F]&&_[F].hasStack&&OW(U,_[F].stackGroups),D=Gn(U.type).indexOf("Bar")>=0,rt=tc(z,Y),W=[],tt=R&&uW({barSize:T,stackGroups:_,totalSize:kY(X,k)});if(D){var ft,at,dt=bt(G)?C:G,Pt=(ft=(at=tc(z,Y,!0))!==null&&at!==void 0?at:dt)!==null&&ft!==void 0?ft:0;W=cW({barGap:P,barCategoryGap:E,bandSize:Pt!==rt?Pt:rt,sizeList:tt[K],maxBarSize:dt}),Pt!==rt&&(W=W.map(function(nt){return J(J({},nt),{},{position:J(J({},nt.position),{},{offset:nt.position.offset-Pt/2})})}))}var ct=U&&U.type&&U.type.getComposedData;ct&&L.push({props:J(J({},ct(J(J({},X),{},{displayedData:B,props:b,dataKey:N,item:U,bandSize:rt,barPosition:W,offset:g,stackedData:V,layout:M,dataStartIndex:S,dataEndIndex:A}))),{},vt(vt(vt({key:U.key||"item-".concat(I)},j,X[j]),k,X[k]),"animationId",w)),childIndex:O5(U,b.children),item:U})}),L},p=function(b,v){var x=b.props,_=b.dataStartIndex,g=b.dataEndIndex,w=b.updateId;if(!Cw({props:x}))return null;var S=x.children,A=x.layout,T=x.stackOffset,M=x.data,P=x.reverseStackOrder,E=WO(A),C=E.numericAxisName,$=E.cateAxisName,j=Tr(S,n),k=wW(M,j,"".concat(C,"Id"),"".concat($,"Id"),T,P),R=l.reduce(function(q,N){var G="".concat(N.axisType,"Map");return J(J({},q),{},vt({},G,PY(x,J(J({},N),{},{graphicalItems:j,stackGroups:N.axisType===C&&k,dataStartIndex:_,dataEndIndex:g}))))},{}),L=CY(J(J({},R),{},{props:x,graphicalItems:j}),v==null?void 0:v.legendBBox);Object.keys(R).forEach(function(q){R[q]=c(x,R[q],L,q.replace("Map",""),r)});var U=R["".concat($,"Map")],I=EY(U),B=h(x,J(J({},R),{},{dataStartIndex:_,dataEndIndex:g,updateId:w,graphicalItems:j,stackGroups:k,offset:L}));return J(J({formattedGraphicalItems:B,graphicalItems:j,offset:L,stackGroups:k},I),R)},y=(function(d){function b(v){var x,_,g;return cY(this,b),g=pY(this,b,[v]),vt(g,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),vt(g,"accessibilityManager",new VX),vt(g,"handleLegendBBoxUpdate",function(w){if(w){var S=g.state,A=S.dataStartIndex,T=S.dataEndIndex,M=S.updateId;g.setState(J({legendBBox:w},p({props:g.props,dataStartIndex:A,dataEndIndex:T,updateId:M},J(J({},g.state),{},{legendBBox:w}))))}}),vt(g,"handleReceiveSyncEvent",function(w,S,A){if(g.props.syncId===w){if(A===g.eventEmitterSymbol&&typeof g.props.syncMethod!="function")return;g.applySyncEvent(S)}}),vt(g,"handleBrushChange",function(w){var S=w.startIndex,A=w.endIndex;if(S!==g.state.dataStartIndex||A!==g.state.dataEndIndex){var T=g.state.updateId;g.setState(function(){return J({dataStartIndex:S,dataEndIndex:A},p({props:g.props,dataStartIndex:S,dataEndIndex:A,updateId:T},g.state))}),g.triggerSyncEvent({dataStartIndex:S,dataEndIndex:A})}}),vt(g,"handleMouseEnter",function(w){var S=g.getMouseInfo(w);if(S){var A=J(J({},S),{},{isTooltipActive:!0});g.setState(A),g.triggerSyncEvent(A);var T=g.props.onMouseEnter;St(T)&&T(A,w)}}),vt(g,"triggeredAfterMouseMove",function(w){var S=g.getMouseInfo(w),A=S?J(J({},S),{},{isTooltipActive:!0}):{isTooltipActive:!1};g.setState(A),g.triggerSyncEvent(A);var T=g.props.onMouseMove;St(T)&&T(A,w)}),vt(g,"handleItemMouseEnter",function(w){g.setState(function(){return{isTooltipActive:!0,activeItem:w,activePayload:w.tooltipPayload,activeCoordinate:w.tooltipPosition||{x:w.cx,y:w.cy}}})}),vt(g,"handleItemMouseLeave",function(){g.setState(function(){return{isTooltipActive:!1}})}),vt(g,"handleMouseMove",function(w){w.persist(),g.throttleTriggeredAfterMouseMove(w)}),vt(g,"handleMouseLeave",function(w){g.throttleTriggeredAfterMouseMove.cancel();var S={isTooltipActive:!1};g.setState(S),g.triggerSyncEvent(S);var A=g.props.onMouseLeave;St(A)&&A(S,w)}),vt(g,"handleOuterEvent",function(w){var S=A5(w),A=nn(g.props,"".concat(S));if(S&&St(A)){var T,M;/.*touch.*/i.test(S)?M=g.getMouseInfo(w.changedTouches[0]):M=g.getMouseInfo(w),A((T=M)!==null&&T!==void 0?T:{},w)}}),vt(g,"handleClick",function(w){var S=g.getMouseInfo(w);if(S){var A=J(J({},S),{},{isTooltipActive:!0});g.setState(A),g.triggerSyncEvent(A);var T=g.props.onClick;St(T)&&T(A,w)}}),vt(g,"handleMouseDown",function(w){var S=g.props.onMouseDown;if(St(S)){var A=g.getMouseInfo(w);S(A,w)}}),vt(g,"handleMouseUp",function(w){var S=g.props.onMouseUp;if(St(S)){var A=g.getMouseInfo(w);S(A,w)}}),vt(g,"handleTouchMove",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&g.throttleTriggeredAfterMouseMove(w.changedTouches[0])}),vt(g,"handleTouchStart",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&g.handleMouseDown(w.changedTouches[0])}),vt(g,"handleTouchEnd",function(w){w.changedTouches!=null&&w.changedTouches.length>0&&g.handleMouseUp(w.changedTouches[0])}),vt(g,"handleDoubleClick",function(w){var S=g.props.onDoubleClick;if(St(S)){var A=g.getMouseInfo(w);S(A,w)}}),vt(g,"handleContextMenu",function(w){var S=g.props.onContextMenu;if(St(S)){var A=g.getMouseInfo(w);S(A,w)}}),vt(g,"triggerSyncEvent",function(w){g.props.syncId!==void 0&&Qm.emit(ty,g.props.syncId,w,g.eventEmitterSymbol)}),vt(g,"applySyncEvent",function(w){var S=g.props,A=S.layout,T=S.syncMethod,M=g.state.updateId,P=w.dataStartIndex,E=w.dataEndIndex;if(w.dataStartIndex!==void 0||w.dataEndIndex!==void 0)g.setState(J({dataStartIndex:P,dataEndIndex:E},p({props:g.props,dataStartIndex:P,dataEndIndex:E,updateId:M},g.state)));else if(w.activeTooltipIndex!==void 0){var C=w.chartX,$=w.chartY,j=w.activeTooltipIndex,k=g.state,R=k.offset,L=k.tooltipTicks;if(!R)return;if(typeof T=="function")j=T(L,w);else if(T==="value"){j=-1;for(var U=0;U<L.length;U++)if(L[U].value===w.activeLabel){j=U;break}}var I=J(J({},R),{},{x:R.left,y:R.top}),B=Math.min(C,I.x+I.width),q=Math.min($,I.y+I.height),N=L[j]&&L[j].value,G=ev(g.state,g.props.data,j),F=L[j]?{x:A==="horizontal"?L[j].coordinate:B,y:A==="horizontal"?q:L[j].coordinate}:ik;g.setState(J(J({},w),{},{activeLabel:N,activeCoordinate:F,activePayload:G,activeTooltipIndex:j}))}else g.setState(w)}),vt(g,"renderCursor",function(w){var S,A=g.state,T=A.isTooltipActive,M=A.activeCoordinate,P=A.activePayload,E=A.offset,C=A.activeTooltipIndex,$=A.tooltipAxisBandSize,j=g.getTooltipEventType(),k=(S=w.props.active)!==null&&S!==void 0?S:T,R=g.props.layout,L=w.key||"_recharts-cursor";return O.createElement(nY,{key:L,activeCoordinate:M,activePayload:P,activeTooltipIndex:C,chartName:r,element:w,isActive:k,layout:R,offset:E,tooltipAxisBandSize:$,tooltipEventType:j})}),vt(g,"renderPolarAxis",function(w,S,A){var T=nn(w,"type.axisType"),M=nn(g.state,"".concat(T,"Map")),P=w.type.defaultProps,E=P!==void 0?J(J({},P),w.props):w.props,C=M&&M[E["".concat(T,"Id")]];return O.cloneElement(w,J(J({},C),{},{className:Mt(T,C.className),key:w.key||"".concat(S,"-").concat(A),ticks:Hn(C,!0)}))}),vt(g,"renderPolarGrid",function(w){var S=w.props,A=S.radialLines,T=S.polarAngles,M=S.polarRadius,P=g.state,E=P.radiusAxisMap,C=P.angleAxisMap,$=di(E),j=di(C),k=j.cx,R=j.cy,L=j.innerRadius,U=j.outerRadius;return O.cloneElement(w,{polarAngles:Array.isArray(T)?T:Hn(j,!0).map(function(I){return I.coordinate}),polarRadius:Array.isArray(M)?M:Hn($,!0).map(function(I){return I.coordinate}),cx:k,cy:R,innerRadius:L,outerRadius:U,key:w.key||"polar-grid",radialLines:A})}),vt(g,"renderLegend",function(){var w=g.state.formattedGraphicalItems,S=g.props,A=S.children,T=S.width,M=S.height,P=g.props.margin||{},E=T-(P.left||0)-(P.right||0),C=zM({children:A,formattedGraphicalItems:w,legendWidth:E,legendContent:u});if(!C)return null;var $=C.item,j=qO(C,iY);return O.cloneElement($,J(J({},j),{},{chartWidth:T,chartHeight:M,margin:P,onBBoxUpdate:g.handleLegendBBoxUpdate}))}),vt(g,"renderTooltip",function(){var w,S=g.props,A=S.children,T=S.accessibilityLayer,M=Ir(A,On);if(!M)return null;var P=g.state,E=P.isTooltipActive,C=P.activeCoordinate,$=P.activePayload,j=P.activeLabel,k=P.offset,R=(w=M.props.active)!==null&&w!==void 0?w:E;return O.cloneElement(M,{viewBox:J(J({},k),{},{x:k.left,y:k.top}),active:R,label:j,payload:R?$:[],coordinate:C,accessibilityLayer:T})}),vt(g,"renderBrush",function(w){var S=g.props,A=S.margin,T=S.data,M=g.state,P=M.offset,E=M.dataStartIndex,C=M.dataEndIndex,$=M.updateId;return O.cloneElement(w,{key:w.key||"_recharts-brush",onChange:tu(g.handleBrushChange,w.props.onChange),data:T,x:st(w.props.x)?w.props.x:P.left,y:st(w.props.y)?w.props.y:P.top+P.height+P.brushBottom-(A.bottom||0),width:st(w.props.width)?w.props.width:P.width,startIndex:E,endIndex:C,updateId:"brush-".concat($)})}),vt(g,"renderReferenceElement",function(w,S,A){if(!w)return null;var T=g,M=T.clipPathId,P=g.state,E=P.xAxisMap,C=P.yAxisMap,$=P.offset,j=w.type.defaultProps||{},k=w.props,R=k.xAxisId,L=R===void 0?j.xAxisId:R,U=k.yAxisId,I=U===void 0?j.yAxisId:U;return O.cloneElement(w,{key:w.key||"".concat(S,"-").concat(A),xAxis:E[L],yAxis:C[I],viewBox:{x:$.left,y:$.top,width:$.width,height:$.height},clipPathId:M})}),vt(g,"renderActivePoints",function(w){var S=w.item,A=w.activePoint,T=w.basePoint,M=w.childIndex,P=w.isRange,E=[],C=S.props.key,$=S.item.type.defaultProps!==void 0?J(J({},S.item.type.defaultProps),S.item.props):S.item.props,j=$.activeDot,k=$.dataKey,R=J(J({index:M,dataKey:k,cx:A.x,cy:A.y,r:4,fill:E0(S.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},_t(j,!1)),Wu(j));return E.push(b.renderActiveDot(j,R,"".concat(C,"-activePoint-").concat(M))),T?E.push(b.renderActiveDot(j,J(J({},R),{},{cx:T.x,cy:T.y}),"".concat(C,"-basePoint-").concat(M))):P&&E.push(null),E}),vt(g,"renderGraphicChild",function(w,S,A){var T=g.filterFormatItem(w,S,A);if(!T)return null;var M=g.getTooltipEventType(),P=g.state,E=P.isTooltipActive,C=P.tooltipAxis,$=P.activeTooltipIndex,j=P.activeLabel,k=g.props.children,R=Ir(k,On),L=T.props,U=L.points,I=L.isRange,B=L.baseLine,q=T.item.type.defaultProps!==void 0?J(J({},T.item.type.defaultProps),T.item.props):T.item.props,N=q.activeDot,G=q.hide,F=q.activeBar,K=q.activeShape,Z=!!(!G&&E&&R&&(N||F||K)),X={};M!=="axis"&&R&&R.props.trigger==="click"?X={onClick:tu(g.handleItemMouseEnter,w.props.onClick)}:M!=="axis"&&(X={onMouseLeave:tu(g.handleItemMouseLeave,w.props.onMouseLeave),onMouseEnter:tu(g.handleItemMouseEnter,w.props.onMouseEnter)});var z=O.cloneElement(w,J(J({},T.props),X));function Y(pt){return typeof C.dataKey=="function"?C.dataKey(pt.payload):null}if(Z)if($>=0){var V,D;if(C.dataKey&&!C.allowDuplicatedCategory){var rt=typeof C.dataKey=="function"?Y:"payload.".concat(C.dataKey.toString());V=Uu(U,rt,j),D=I&&B&&Uu(B,rt,j)}else V=U==null?void 0:U[$],D=I&&B&&B[$];if(K||F){var W=w.props.activeIndex!==void 0?w.props.activeIndex:$;return[O.cloneElement(w,J(J(J({},T.props),X),{},{activeIndex:W})),null,null]}if(!bt(V))return[z].concat(Do(g.renderActivePoints({item:T,activePoint:V,basePoint:D,childIndex:$,isRange:I})))}else{var tt,ft=(tt=g.getItemByXY(g.state.activeCoordinate))!==null&&tt!==void 0?tt:{graphicalItem:z},at=ft.graphicalItem,dt=at.item,Pt=dt===void 0?w:dt,ct=at.childIndex,nt=J(J(J({},T.props),X),{},{activeIndex:ct});return[O.cloneElement(Pt,nt),null,null]}return I?[z,null,null]:[z,null]}),vt(g,"renderCustomized",function(w,S,A){return O.cloneElement(w,J(J({key:"recharts-customized-".concat(A)},g.props),g.state))}),vt(g,"renderMap",{CartesianGrid:{handler:su,once:!0},ReferenceArea:{handler:g.renderReferenceElement},ReferenceLine:{handler:su},ReferenceDot:{handler:g.renderReferenceElement},XAxis:{handler:su},YAxis:{handler:su},Brush:{handler:g.renderBrush,once:!0},Bar:{handler:g.renderGraphicChild},Line:{handler:g.renderGraphicChild},Area:{handler:g.renderGraphicChild},Radar:{handler:g.renderGraphicChild},RadialBar:{handler:g.renderGraphicChild},Scatter:{handler:g.renderGraphicChild},Pie:{handler:g.renderGraphicChild},Funnel:{handler:g.renderGraphicChild},Tooltip:{handler:g.renderCursor,once:!0},PolarGrid:{handler:g.renderPolarGrid,once:!0},PolarAngleAxis:{handler:g.renderPolarAxis},PolarRadiusAxis:{handler:g.renderPolarAxis},Customized:{handler:g.renderCustomized}}),g.clipPathId="".concat((x=v.id)!==null&&x!==void 0?x:Oa("recharts"),"-clip"),g.throttleTriggeredAfterMouseMove=_M(g.triggeredAfterMouseMove,(_=v.throttleDelay)!==null&&_!==void 0?_:1e3/60),g.state={},g}return yY(b,d),hY(b,[{key:"componentDidMount",value:function(){var x,_;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(_=this.props.margin.top)!==null&&_!==void 0?_:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,_=x.children,g=x.data,w=x.height,S=x.layout,A=Ir(_,On);if(A){var T=A.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var M=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,P=ev(this.state,g,T,M),E=this.state.tooltipTicks[T].coordinate,C=(this.state.offset.top+w)/2,$=S==="horizontal",j=$?{x:E,y:C}:{y:E,x:C},k=this.state.formattedGraphicalItems.find(function(L){var U=L.item;return U.type.name==="Scatter"});k&&(j=J(J({},j),k.props.points[T].tooltipPosition),P=k.props.points[T].tooltipPayload);var R={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:M,activePayload:P,activeCoordinate:j};this.setState(R),this.renderCursor(A),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,_){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==_.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var g,w;this.accessibilityManager.setDetails({offset:{left:(g=this.props.margin.left)!==null&&g!==void 0?g:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0}})}return null}},{key:"componentDidUpdate",value:function(x){Xy([Ir(x.children,On)],[Ir(this.props.children,On)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=Ir(this.props.children,On);if(x&&typeof x.props.shared=="boolean"){var _=x.props.shared?"axis":"item";return s.indexOf(_)>=0?_:a}return a}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var _=this.container,g=_.getBoundingClientRect(),w=M3(g),S={chartX:Math.round(x.pageX-w.left),chartY:Math.round(x.pageY-w.top)},A=g.width/_.offsetWidth||1,T=this.inRange(S.chartX,S.chartY,A);if(!T)return null;var M=this.state,P=M.xAxisMap,E=M.yAxisMap,C=this.getTooltipEventType(),$=zO(this.state,this.props.data,this.props.layout,T);if(C!=="axis"&&P&&E){var j=di(P).scale,k=di(E).scale,R=j&&j.invert?j.invert(S.chartX):null,L=k&&k.invert?k.invert(S.chartY):null;return J(J({},S),{},{xValue:R,yValue:L},$)}return $?J(J({},S),$):null}},{key:"inRange",value:function(x,_){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,w=this.props.layout,S=x/g,A=_/g;if(w==="horizontal"||w==="vertical"){var T=this.state.offset,M=S>=T.left&&S<=T.left+T.width&&A>=T.top&&A<=T.top+T.height;return M?{x:S,y:A}:null}var P=this.state,E=P.angleAxisMap,C=P.radiusAxisMap;if(E&&C){var $=di(E);return VS({x:S,y:A},$)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,_=this.getTooltipEventType(),g=Ir(x,On),w={};g&&_==="axis"&&(g.props.trigger==="click"?w={onClick:this.handleClick}:w={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var S=Wu(this.props,this.handleOuterEvent);return J(J({},S),w)}},{key:"addListener",value:function(){Qm.on(ty,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Qm.removeListener(ty,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,_,g){for(var w=this.state.formattedGraphicalItems,S=0,A=w.length;S<A;S++){var T=w[S];if(T.item===x||T.props.key===x.key||_===Gn(T.item.type)&&g===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,_=this.state.offset,g=_.left,w=_.top,S=_.height,A=_.width;return O.createElement("defs",null,O.createElement("clipPath",{id:x},O.createElement("rect",{x:g,y:w,height:S,width:A})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(_,g){var w=BO(g,2),S=w[0],A=w[1];return J(J({},_),{},vt({},S,A.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(_,g){var w=BO(g,2),S=w[0],A=w[1];return J(J({},_),{},vt({},S,A.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var _;return(_=this.state.xAxisMap)===null||_===void 0||(_=_[x])===null||_===void 0?void 0:_.scale}},{key:"getYScaleByAxisId",value:function(x){var _;return(_=this.state.yAxisMap)===null||_===void 0||(_=_[x])===null||_===void 0?void 0:_.scale}},{key:"getItemByXY",value:function(x){var _=this.state,g=_.formattedGraphicalItems,w=_.activeItem;if(g&&g.length)for(var S=0,A=g.length;S<A;S++){var T=g[S],M=T.props,P=T.item,E=P.type.defaultProps!==void 0?J(J({},P.type.defaultProps),P.props):P.props,C=Gn(P.type);if(C==="Bar"){var $=(M.data||[]).find(function(L){return _G(x,L)});if($)return{graphicalItem:T,payload:$}}else if(C==="RadialBar"){var j=(M.data||[]).find(function(L){return VS(x,L)});if(j)return{graphicalItem:T,payload:j}}else if(ef(T,w)||rf(T,w)||xl(T,w)){var k=c6({graphicalItem:T,activeTooltipItem:w,itemData:E.data}),R=E.activeIndex===void 0?k:E.activeIndex;return{graphicalItem:J(J({},T),{},{childIndex:R}),payload:xl(T,w)?E.data[k]:T.props.data[k]}}}return null}},{key:"render",value:function(){var x=this;if(!Cw(this))return null;var _=this.props,g=_.children,w=_.className,S=_.width,A=_.height,T=_.style,M=_.compact,P=_.title,E=_.desc,C=qO(_,aY),$=_t(C,!1);if(M)return O.createElement(yO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement(Vy,Ua({},$,{width:S,height:A,title:P,desc:E}),this.renderClipPath(),$w(g,this.renderMap)));if(this.props.accessibilityLayer){var j,k;$.tabIndex=(j=this.props.tabIndex)!==null&&j!==void 0?j:0,$.role=(k=this.props.role)!==null&&k!==void 0?k:"application",$.onKeyDown=function(L){x.accessibilityManager.keyboardEvent(L)},$.onFocus=function(){x.accessibilityManager.focus()}}var R=this.parseEventsOfWrapper();return O.createElement(yO,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},O.createElement("div",Ua({className:Mt("recharts-wrapper",w),style:J({position:"relative",cursor:"default",width:S,height:A},T)},R,{ref:function(U){x.container=U}}),O.createElement(Vy,Ua({},$,{width:S,height:A,title:P,desc:E,style:wY}),this.renderClipPath(),$w(g,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(O.Component);vt(y,"displayName",r),vt(y,"defaultProps",J({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),vt(y,"getDerivedStateFromProps",function(d,b){var v=d.dataKey,x=d.data,_=d.children,g=d.width,w=d.height,S=d.layout,A=d.stackOffset,T=d.margin,M=b.dataStartIndex,P=b.dataEndIndex;if(b.updateId===void 0){var E=UO(d);return J(J(J({},E),{},{updateId:0},p(J(J({props:d},E),{},{updateId:0}),b)),{},{prevDataKey:v,prevData:x,prevWidth:g,prevHeight:w,prevLayout:S,prevStackOffset:A,prevMargin:T,prevChildren:_})}if(v!==b.prevDataKey||x!==b.prevData||g!==b.prevWidth||w!==b.prevHeight||S!==b.prevLayout||A!==b.prevStackOffset||!Ja(T,b.prevMargin)){var C=UO(d),$={chartX:b.chartX,chartY:b.chartY,isTooltipActive:b.isTooltipActive},j=J(J({},zO(b,x,S)),{},{updateId:b.updateId+1}),k=J(J(J({},C),$),j);return J(J(J({},k),p(J({props:d},k),b)),{},{prevDataKey:v,prevData:x,prevWidth:g,prevHeight:w,prevLayout:S,prevStackOffset:A,prevMargin:T,prevChildren:_})}if(!Xy(_,b.prevChildren)){var R,L,U,I,B=Ir(_,_o),q=B&&(R=(L=B.props)===null||L===void 0?void 0:L.startIndex)!==null&&R!==void 0?R:M,N=B&&(U=(I=B.props)===null||I===void 0?void 0:I.endIndex)!==null&&U!==void 0?U:P,G=q!==M||N!==P,F=!bt(x),K=F&&!G?b.updateId:b.updateId+1;return J(J({updateId:K},p(J(J({props:d},b),{},{updateId:K,dataStartIndex:q,dataEndIndex:N}),b)),{},{prevChildren:_,dataStartIndex:q,dataEndIndex:N})}return null}),vt(y,"renderActiveDot",function(d,b,v){var x;return O.isValidElement(d)?x=O.cloneElement(d,b):St(d)?x=d(b):x=O.createElement(tf,b),O.createElement(It,{className:"recharts-active-dot",key:v},x)});var m=O.forwardRef(function(b,v){return O.createElement(y,Ua({},b,{ref:v}))});return m.displayName=y.displayName,m},jY=$Y({chartName:"ComposedChart",GraphicalChild:[cf,Di,Ho,hf],axisComponents:[{axisType:"xAxis",AxisComp:pf},{axisType:"yAxis",AxisComp:df},{axisType:"zAxis",AxisComp:ff}],formatAxisMap:r4});const cs=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},RY=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),DY=e=>new Intl.NumberFormat("en-US").format(e);function IY(e){const{data:t,categories:r,formatDate:n,formatValue:i}=e,a=O.useMemo(()=>{if(!t||t.length===0)return cs()&&console.warn("StackedAreaChart: No data provided. Chart will be empty."),[];const h=[...t].sort((y,m)=>y.timestamp-m.timestamp);return h.some(y=>typeof y.timestamp!="number"||Number.isNaN(y.timestamp))&&cs()&&console.warn("StackedAreaChart: Some data points have invalid timestamps. These may not render correctly."),h},[t]),o=O.useMemo(()=>{if(!r||r.length===0)return cs()&&console.warn("StackedAreaChart: No categories provided. Chart will be empty."),[];const h=r.filter(p=>!p.dataKey||!p.label||!p.color?(cs()&&console.warn("StackedAreaChart: Category is missing required fields:",p),!1):!0);if(cs()&&a.length>0){const p=a[0];if(p){const y=new Set(Object.keys(p)),m=h.filter(d=>!y.has(d.dataKey));m.length>0&&console.warn("StackedAreaChart: Some categories do not exist in data:",m.map(d=>d.dataKey))}}return h},[r,a]),{minTimestamp:s,maxTimestamp:l}=O.useMemo(()=>{if(a.length===0)return{minTimestamp:0,maxTimestamp:0};const h=a[0],p=a[a.length-1];return{minTimestamp:(h==null?void 0:h.timestamp)??0,maxTimestamp:(p==null?void 0:p.timestamp)??0}},[a]),u=O.useMemo(()=>a.length===0||o.length===0?0:Math.max(...a.map(h=>o.reduce((p,y)=>{const m=h[y.dataKey];return p+(typeof m=="number"?m:0)},0))),[a,o]),c=O.useMemo(()=>n||RY,[n]),f=O.useMemo(()=>i||DY,[i]);return{processedData:a,processedCategories:o,minTimestamp:s,maxTimestamp:l,maxTotalValue:u,dateFormatter:c,valueFormatter:f}}function NY(e,t){const r=t-1-e,n=Ss.length,i=Math.floor(r/Math.max(1,t-1)*(n-1)),a=Math.min(Math.max(0,i),n-1);return Ss[a]??Ss[0]??"#000000"}function LY(e){return Array.from({length:e},(t,r)=>NY(r,e))}const La=LY(5),qn={critical:"#dc3545",high:"#fd7e14",medium:"#ffc107",low:"#17a2b8",complete:Or.neoDigitalGreen[600],inProgress:"#007bff",farthest:La[0],far:La[1],close:La[2],closest:La[3],completed:La[4],primary:"#007bff",secondary:"#6c757d",success:Or.neoDigitalGreen[600],danger:"#dc3545",warning:"#ffc107",info:"#17a2b8",light:Or.neoGrey[200],dark:"#343a40"},$t={dimensions:{height:400,width:"100%",minHeight:200},margin:{top:10,right:30,left:0,bottom:0},animation:{enabled:!0,duration:1500,easing:"ease"},display:{showHeader:!0,showLegend:!0,showTooltip:!0,showXAxis:!0,showYAxis:!0,showGrid:!0},curve:{type:"monotone"},stack:{offset:"none"},axis:{strokeColor:Or.neoGrey[400],tickColor:"#666",labelColor:"#666"},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:Or.neoGrey[400],borderWidth:1,borderRadius:4,padding:10},legend:{iconSize:14,iconType:"square",layout:"horizontal",align:"center",verticalAlign:"bottom"},marker:{strokeColor:"#666",strokeWidth:2,strokeDasharray:"5 5",labelColor:"#666"}},BY={migration:La,severity:[qn.critical,qn.high,qn.medium,qn.low,qn.info],status:[qn.danger,qn.warning,qn.success],extended:["#e74c3c","#e67e22","#f39c12","#2ecc71","#3498db","#9b59b6","#1abc9c","#95a5a6"],colorblindSafe:["#0173B2","#DE8F05","#029E73","#CC78BC","#CA9161","#FBAFE4","#949494","#ECE133"]},qY={FARTHEST:"Farthest",FAR:"Far",CLOSE:"Close",CLOSEST:"Closest",COMPLETE:"Complete",CRITICAL:"Critical",HIGH:"High",MEDIUM:"Medium",LOW:"Low",INFO:"Info",NOT_APPLICABLE:"N/A",NO_LST:"No LST",DATA_MISSING:"Data Missing"},FY=({data:e,categories:t,markers:r=[],title:n,subtitle:i,showHeader:a=$t.display.showHeader,height:o=$t.dimensions.height,width:s=$t.dimensions.width,showLegend:l=$t.display.showLegend,showTooltip:u=$t.display.showTooltip,showXAxis:c=$t.display.showXAxis,showYAxis:f=$t.display.showYAxis,showGrid:h=$t.display.showGrid,enableAnimation:p=$t.animation.enabled,animationDuration:y=$t.animation.duration,animationEasing:m=$t.animation.easing,formatDate:d,formatValue:b,tooltipFormatter:v,slotProps:x,margin:_=$t.margin,curveType:g=$t.curve.type,stackOffset:w=$t.stack.offset,timeRange:S,onTimeRangeChange:A,enableBrush:T=!1,zoomToSelection:M=!1})=>{const{processedData:P,processedCategories:E,dateFormatter:C,valueFormatter:$}=IY({data:e,categories:t,formatDate:d,formatValue:b}),[j,k]=O.useState(null),[R,L]=O.useState(!1),[U,I]=O.useState(null),[B,q]=O.useState(null),N=O.useRef(null),G=S?[S[0],S[1]]:["dataMin","dataMax"],F=P.length>0?P[0].timestamp:0,K=P.length>0?P[P.length-1].timestamp:0,Z=O.useMemo(()=>{const nt=S?S[0]:F,pt=S?S[1]:K,kt=6;if(nt===pt||nt===0)return[];const lt=(pt-nt)/(kt-1);return Array.from({length:kt},(At,gt)=>Math.round(nt+lt*gt))},[S,F,K]),X=O.useCallback((nt,pt)=>{const kt=nt/pt*100,lt=K-F;return F+kt/100*lt},[F,K]),z=O.useCallback(nt=>{const pt=K-F;return pt===0?0:(nt-F)/pt*100},[F,K]),Y=O.useCallback(nt=>{if(!T)return;const pt=nt.currentTarget.getBoundingClientRect(),kt=nt.clientX-pt.left,lt=X(kt,pt.width);L(!0),I(lt),q(lt)},[T,X]),V=O.useCallback(nt=>{if(!N.current)return;const pt=nt.currentTarget.getBoundingClientRect(),kt=nt.clientX-pt.left,lt=pt.width,At=X(kt,lt);if(R)U!==null&&q(At);else{const Ot=r.find(oe=>Math.abs(oe.timestamp-At)<2592e5);k((Ot==null?void 0:Ot.timestamp)??null)}},[R,U,X,r]),D=O.useCallback(()=>{if(R&&U!==null&&B!==null&&A){const nt=Math.min(U,B),pt=Math.max(U,B);nt!==pt&&A([nt,pt])}L(!1),I(null),q(null)},[R,U,B,A]),rt=O.useCallback(()=>{D(),k(null)},[D]),tt=(M?R:!0)&&R&&U!==null&&B!==null?{left:z(Math.min(U,B)),width:Math.abs(z(B)-z(U))}:null,at=(S?P.filter(nt=>nt.timestamp>=S[0]&&nt.timestamp<=S[1]):P).slice().reverse().map(nt=>{const pt=r.find(kt=>kt.timestamp===nt.timestamp);return pt&&pt.label?{...nt,__markerLabel:pt.label}:nt}),dt=nt=>C(nt),Pt=nt=>$(nt),ct=({active:nt,payload:pt,label:kt})=>{if(!nt||!pt||pt.length===0)return null;const lt=at.find(gt=>gt.timestamp===kt);if(lt&&"__markerLabel"in lt){const Ot=String(lt.__markerLabel).split(" - "),oe=Ot[0]||"",Wt=Ot[1]||"";return H.jsxs(Q.Box,{sx:{backgroundColor:"#131E7A",border:"1px solid #2F42FF",borderRadius:"4px",padding:"12px 16px"},children:[H.jsx(Q.Typography,{sx:{color:"#B6BFFF",fontSize:"14px",fontWeight:400,marginBottom:"4px"},children:Wt}),H.jsx(Q.Typography,{sx:{color:"white",fontSize:"14px",fontWeight:500},children:oe})]})}return H.jsxs(Q.Box,{sx:{backgroundColor:$t.tooltip.backgroundColor,border:`${$t.tooltip.borderWidth}px solid ${$t.tooltip.borderColor}`,borderRadius:$t.tooltip.borderRadius,padding:$t.tooltip.padding},children:[H.jsx(Q.Typography,{sx:{marginBottom:"8px",fontWeight:500},children:C(kt)}),pt.map((gt,Ot)=>H.jsxs(Q.Box,{sx:{display:"flex",alignItems:"center",gap:1,mb:.5},children:[H.jsx(Q.Box,{sx:{width:10,height:10,backgroundColor:gt.color,borderRadius:"2px"}}),H.jsxs(Q.Typography,{sx:{fontSize:"14px"},children:[gt.name,": ",$(gt.value)]})]},`item-${Ot}`))]})};return H.jsxs(Q.Stack,{sx:{width:"100%",alignItems:"center"},...x==null?void 0:x.container,children:[a&&(n||i)&&H.jsxs(Q.Stack,{spacing:.5,sx:{mb:2,width:"100%",alignItems:"center"},...x==null?void 0:x.header,children:[n&&H.jsx(Q.Typography,{variant:"h5",sx:{fontWeight:500},...x==null?void 0:x.title,children:n}),i&&H.jsx(Q.Typography,{variant:"body2",sx:{color:"text.secondary"},...x==null?void 0:x.subtitle,children:i})]}),H.jsxs(Q.Box,{ref:N,sx:{width:"100%",height:`${o}px`,minHeight:$t.dimensions.minHeight,position:"relative"},...x==null?void 0:x.chartContainer,children:[H.jsx(w3,{width:s,height:"100%",children:H.jsxs(jY,{data:at,margin:_,stackOffset:w,children:[h&&H.jsx(DC,{strokeDasharray:"3 3",stroke:$t.axis.strokeColor,opacity:.3}),c&&H.jsx(pf,{dataKey:"timestamp",type:"number",domain:G,tickFormatter:dt,stroke:$t.axis.strokeColor,tick:{fill:$t.axis.tickColor},scale:"time",ticks:Z}),f&&H.jsx(df,{tickFormatter:Pt,stroke:$t.axis.strokeColor,tick:{fill:$t.axis.tickColor}}),u&&H.jsx(On,{content:H.jsx(ct,{})}),l&&H.jsx(aa,{iconSize:$t.legend.iconSize,iconType:$t.legend.iconType,layout:$t.legend.layout,align:$t.legend.align,verticalAlign:$t.legend.verticalAlign}),E.map((nt,pt)=>H.jsx(Di,{type:g,dataKey:nt.dataKey,name:nt.label,stackId:"1",stroke:nt.color,fill:nt.strokeDasharray?"transparent":nt.color,fillOpacity:nt.strokeDasharray?0:nt.fillOpacity??.7,strokeWidth:nt.strokeWidth??2,strokeDasharray:nt.strokeDasharray,isAnimationActive:p,animationDuration:y,animationEasing:m,animationBegin:p?(E.length-1-pt)*100:0},nt.dataKey)),r.filter(nt=>j===null||nt.timestamp===j).map((nt,pt)=>H.jsx(af,{x:nt.timestamp,stroke:nt.color??$t.marker.strokeColor,strokeWidth:nt.strokeWidth??$t.marker.strokeWidth,strokeDasharray:nt.strokeDasharray??$t.marker.strokeDasharray,strokeOpacity:j===null?0:1},`marker-${nt.timestamp}-${pt}`))]},S?`${S[0]}-${S[1]}`:"default")}),T&&H.jsxs(Q.Box,{sx:{position:"absolute",top:_.top||0,left:_.left||0,right:_.right||0,bottom:_.bottom||0,cursor:R?"col-resize":"crosshair",pointerEvents:"all"},onMouseDown:Y,onMouseMove:V,onMouseUp:D,onMouseLeave:rt,children:[tt&&H.jsx(Q.Box,{sx:{position:"absolute",left:`${tt.left}%`,width:`${tt.width}%`,top:0,bottom:0,backgroundColor:"rgba(0, 123, 255, 0.1)",border:"1px solid rgba(0, 123, 255, 0.5)",pointerEvents:"none"}}),j&&H.jsx(H.Fragment,{children:r.filter(nt=>nt.timestamp===j).map(nt=>H.jsx(Q.Box,{sx:{position:"absolute",left:`${z(nt.timestamp)}%`,top:"-50px",transform:"translateX(-50%)",backgroundColor:"#992FB9",color:"white",padding:"6px 10px",borderRadius:"4px",fontSize:"12px",whiteSpace:"nowrap",pointerEvents:"none",zIndex:10,boxShadow:"0 2px 8px rgba(0,0,0,0.15)"},children:nt.label||C(nt.timestamp)},`tooltip-${nt.timestamp}`))})]})]})]})},zY=({containerRef:e,data:t,categories:r,width:n,height:i,margin:a,timelineEvents:o=[],showTimeline:s=!0,timelineHeight:l=40,timelineOffset:u=35,timeRange:c,showGrid:f=!0,showAxes:h=!0,axisLabelColor:p,axisLabelSize:y=14,enableBrush:m=!1,onTimeRangeChange:d,minAllowedTime:b,maxAllowedTime:v,brushColor:x="#69b3a2",formatDate:_,formatValue:g,markers:w=[],onHoveredDataChange:S,hoveredCategory:A,onTimelineEventHover:T})=>{const[M,P]=O.useState(null),[E,C]=O.useState(null),[$,j]=O.useState([]),k=O.useRef(`sawt-${Math.random().toString(36).substr(2,9)}`),R=O.useCallback(L=>{P(L),T==null||T(L)},[T]);return O.useEffect(()=>{if(!e.current||t.length===0||r.length===0)return;const L=Kt(e.current),U=n-a.left-a.right,I=i-a.top-a.bottom,B=k.current;L.selectAll("*").remove();const q=`main-chart-group main-chart-group-${B}`,N=L.append("g").attr("class",q).attr("transform",`translate(${a.left},${a.top})`),G=`sawt-clip-${B}`;L.append("defs").append("clipPath").attr("id",G).append("rect").attr("x",0).attr("y",0).attr("width",U).attr("height",I);const F=N.append("g").attr("clip-path",`url(#${G})`),Z=[...t.map(lt=>({timestamp:lt.timestamp,...lt.values}))].sort((lt,At)=>lt.timestamp-At.timestamp),X=r.map(lt=>lt.dataKey),z=qs().keys(X),Y=z(Z),V=t.map(lt=>lt.timestamp),D=c?c[0]:Math.min(...V),rt=c?c[1]:Math.max(...V),W=Ha().domain([new Date(D),new Date(rt)]).range([0,U]),tt=Z.filter(lt=>lt.timestamp>=D&<.timestamp<=rt),ft=z(tt),at=ft.length>0?Math.max(...ft[ft.length-1].map(lt=>lt[1]??0)):0,dt=Oi().domain([0,at*1.1]).range([I,0]).nice();f&&(F.append("g").attr("class","grid grid-vertical").attr("opacity",.1).call(la(W).ticks(6).tickSize(I).tickFormat(()=>"")),F.append("g").attr("class","grid grid-horizontal").attr("opacity",.1).call(ua(dt).ticks(5).tickSize(-U).tickFormat(()=>"")));const Pt=mi().x(lt=>W(new Date(lt.data.timestamp))).y0(lt=>dt(lt[0])).y1(lt=>dt(lt[1])).curve(Qn),ct=F.append("g").attr("class","areas");Y.forEach((lt,At)=>{const gt=r[At];if(!gt)return;const Ot=A===gt.dataKey,oe=A!=null;ct.append("path").datum(lt).attr("class",`area area-${gt.dataKey}`).attr("fill",gt.color).attr("fill-opacity",oe?Ot?.9:.3:.7).attr("stroke",gt.color).attr("stroke-width",Ot?2:1.5).attr("d",Pt).on("mouseenter",()=>{const Wt=tt[tt.length-1],fe=Wt?Wt[gt.dataKey]??0:0;S==null||S({label:gt.label,value:fe,color:gt.color})}).on("mouseleave",()=>{S==null||S(null)})});const nt=w.filter(lt=>lt.timestamp>=D&<.timestamp<=rt).map(lt=>({...lt,x:W(new Date(lt.timestamp))}));j(lt=>lt.length!==nt.length||lt.some((At,gt)=>{var Ot,oe;return At.timestamp!==((Ot=nt[gt])==null?void 0:Ot.timestamp)||At.x!==((oe=nt[gt])==null?void 0:oe.x)})?nt:lt);let pt=null;if(nt.length>0&&(pt=F.append("g").attr("class","markers"),nt.forEach(lt=>{pt.append("line").attr("class","marker-line").attr("data-timestamp",lt.timestamp).attr("x1",lt.x).attr("x2",lt.x).attr("y1",0).attr("y2",I).attr("stroke",lt.color??"#131E7A").attr("stroke-width",2).attr("opacity",0)})),h){const At=la(W).ticks(6).tickPadding(12);_&&At.tickFormat(Ot=>_(+Ot)),N.append("g").attr("class","axis axis-x").attr("transform",`translate(0,${I})`).call(At).selectAll("text").attr("font-size",y).attr("fill",p??null);const gt=ua(dt).ticks(5);gt.tickFormat(Ot=>+Ot==0?"":g?g(+Ot):String(Ot)),N.append("g").attr("class","axis axis-y").call(gt).selectAll("text").attr("font-size",y).attr("fill",p??null)}if(m&&d){const lt=Pl().extent([[0,0],[U,I]]).on("end",gt=>{if(!gt.selection)return;const[Ot,oe]=gt.selection,Wt=[+W.invert(Ot),+W.invert(oe)];b!==void 0&&(Wt[0]=Math.max(Wt[0],b)),v!==void 0&&(Wt[1]=Math.min(Wt[1],v)),d(Wt),L.select(".brush").call(lt.move,null)}),At=F.append("g").attr("class","brush").call(lt);At.selectAll(".selection").attr("fill",x).attr("fill-opacity",.2).attr("stroke",x).attr("stroke-width",1),At.selectAll(".handle").attr("fill",x).attr("fill-opacity",.8)}if(s&&o&&o.length>0&&qu({svg:L,events:o,xScale:W,chartHeight:I,chartWidth:U,timelineHeight:l,timelineOffset:u,instanceId:B,setHoveredTimelineEvent:R,enableBrush:m,onTimeRangeChange:d,minAllowedTime:b,maxAllowedTime:v,brushColor:x,mainGroupSelector:`.main-chart-group-${B}`}),nt.length>0&&pt){let lt=null,At;m?At=F.select(".brush .overlay"):At=N.append("rect").attr("class","marker-hover-overlay").attr("width",U).attr("height",I).attr("fill","none").attr("pointer-events","all");const gt=pt,Ot=Wt=>{let fe=null,Zt=1/0;if(nt.forEach(xe=>{const re=Math.abs(Wt-xe.x);re<Zt&&(Zt=re,fe=xe)}),!fe||Zt>50)return lt!==null&&(lt=null,gt.selectAll(".marker-line").attr("opacity",0),C(null)),!1;const Jt=fe;return lt===Jt.timestamp||(lt=Jt.timestamp,gt.selectAll(".marker-line").attr("opacity",0),gt.selectAll(".marker-line").filter(function(){return Kt(this).attr("data-timestamp")===String(Jt.timestamp)}).attr("opacity",.6),C(Jt)),!0},oe=function(Wt){const[fe]=ca(Wt,this);Ot(fe)};At.on("mouseenter",oe),At.on("mousemove",oe),At.on("mouseleave",function(){lt=null,gt.selectAll(".marker-line").attr("opacity",0),C(null)})}return()=>{L.selectAll("*").remove()}},[e,t,r,n,i,a,o,s,l,u,c,f,h,p,y,m,d,b,v,x,_,g,w,S,A,R]),{hoveredTimelineEvent:M,hoveredMarker:E,visibleMarkers:$}},UY=({data:e,categories:t,timelineEvents:r=[],showTimeline:n=!0,timelineHeight:i=40,timelineOffset:a,width:o=900,height:s=400,margin:l={top:10,right:30,bottom:40,left:60},showGrid:u=!0,showAxes:c=!0,axisLabelColor:f,axisLabelSize:h=14,formatDate:p,formatValue:y,timeRange:m,enableBrush:d=!1,onTimeRangeChange:b,minAllowedTime:v,maxAllowedTime:x,brushColor:_="#69b3a2",markers:g=[],onHoveredDataChange:w,hoveredCategory:S,onTimelineEventHover:A})=>{const T=O.useRef(null),M=12,E=a??6+M+h+M,C=n&&r&&r.length>0,$=C?s+i+E:s,{hoveredTimelineEvent:j,hoveredMarker:k,visibleMarkers:R}=zY({containerRef:T,data:e,categories:t,width:o,height:s,margin:l,timelineEvents:r,showTimeline:C,timelineHeight:i,timelineOffset:E,timeRange:m,showGrid:u,showAxes:c,axisLabelColor:f,axisLabelSize:h,enableBrush:d,onTimeRangeChange:b,minAllowedTime:v,maxAllowedTime:x,brushColor:_,formatDate:p,formatValue:y,markers:g,onHoveredDataChange:w,hoveredCategory:S,onTimelineEventHover:A});return H.jsxs(Q.Box,{sx:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",position:"relative"},children:[H.jsx("svg",{ref:T,viewBox:`0 0 ${o} ${$}`,preserveAspectRatio:"xMidYMid meet",style:{width:"100%",height:"auto",display:"block"}}),R.map(L=>{const U=(L.x+l.left)/o*100,I=l.top/$*100,B=new Date(L.timestamp),q=p?p(L.timestamp):B.toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),N=H.jsxs(Q.Box,{children:[H.jsx(Q.Box,{sx:{color:"#B6BFFF",fontFamily:"monospace",fontSize:"0.8125rem",mb:L.label?.5:0},children:q}),L.label&&H.jsx(Q.Box,{sx:{color:"white",fontWeight:500},children:L.label})]});return H.jsx(Q.Tooltip,{title:N,open:(k==null?void 0:k.timestamp)===L.timestamp,placement:"top",arrow:!0,slotProps:{tooltip:{sx:{bgcolor:"#131E7A",fontSize:"0.875rem",px:2,py:1,borderRadius:1,boxShadow:"0px 2px 8px rgba(0,0,0,0.15)","& .MuiTooltip-arrow":{color:"#131E7A"}}},popper:{sx:{pointerEvents:"none"}}},children:H.jsx(Q.Box,{sx:{position:"absolute",left:`${U}%`,top:`${I}%`,width:"1px",height:`${(s-l.top-l.bottom)/$*100}%`,pointerEvents:"none"}})},L.timestamp)}),j&&C&&!k&&H.jsx(Q.Tooltip,{title:H.jsxs(Q.Box,{children:[H.jsx(Q.Box,{sx:{color:"#B6BFFF",fontFamily:"monospace",fontSize:"0.8125rem",mb:.5},children:p?p(j.timestamp):new Date(j.timestamp).toLocaleString("en-US",{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",hour12:!0})}),H.jsx(Q.Box,{sx:{color:"white",fontWeight:500},children:j.eventName})]}),open:!0,placement:"top",arrow:!0,slotProps:{tooltip:{sx:{bgcolor:"#131E7A",fontSize:"0.875rem",px:2,py:1,borderRadius:1,boxShadow:"0px 2px 8px rgba(0,0,0,0.15)","& .MuiTooltip-arrow":{color:"#131E7A"}}},popper:{sx:{pointerEvents:"none"}}},children:H.jsx(Q.Box,{sx:{position:"absolute",left:`${(j.x+l.left)/o*100}%`,top:`${(s+E+i/2)/$*100}%`,width:"1px",height:"1px",pointerEvents:"none"}})})]})},Sn={colors:{primary:"#992FB9",background:"#FFFFFF",border:"#9CA3AF",highlightBackground:"rgba(31, 41, 55, 0.14)",monthLabel:"#9ca3af",tooltipText:"#6b7280"},dimensions:{height:32,eventWidth:2}},WY=(e="#4B5563")=>({startHandle:{sx:{position:"absolute",left:"-6px",top:"-10px",width:"14px",height:"calc(100% + 10px)",zIndex:3,display:"flex",justifyContent:"center",transition:"opacity 0.2s","&::before":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:`8px solid ${e}`,transition:"border-top-color 0.2s",pointerEvents:"none"},"&::after":{content:'""',position:"absolute",top:"8px",left:"50%",transform:"translateX(-50%)",width:"2px",height:"calc(100% - 8px)",backgroundColor:e,transition:"background-color 0.2s",pointerEvents:"none"},"&:hover::before":{borderTopColor:e},"&:hover::after":{backgroundColor:e},"&:active::before":{borderTopColor:e},"&:active::after":{backgroundColor:e}}},endHandle:{sx:{position:"absolute",right:"-6px",top:"-10px",width:"14px",height:"calc(100% + 10px)",zIndex:3,display:"flex",justifyContent:"center",transition:"opacity 0.2s","&::before":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:`8px solid ${e}`,transition:"border-top-color 0.2s",pointerEvents:"none"},"&::after":{content:'""',position:"absolute",top:"8px",left:"50%",transform:"translateX(-50%)",width:"2px",height:"calc(100% - 8px)",backgroundColor:e,transition:"background-color 0.2s",pointerEvents:"none"},"&:hover::before":{borderTopColor:e},"&:hover::after":{backgroundColor:e},"&:active::before":{borderTopColor:e},"&:active::after":{backgroundColor:e}}}}),un={header:{sx:{}},title:{sx:{m:0}},instructions:{sx:{color:"text.secondary",minHeight:"40px",display:"flex",alignItems:"center"}},monthLabelsContainer:{sx:{justifyContent:"space-between",px:1.25,height:"20px",fontSize:"11px",color:Sn.colors.monthLabel,mb:1}},monthLabel:{sx:{fontSize:"11px"}},timeline:{sx:{position:"relative",height:`${Sn.dimensions.height}px`,backgroundColor:Sn.colors.background,borderRadius:0,overflow:"visible",border:`1px solid ${Sn.colors.border}`}},event:{sx:{position:"absolute",top:0,width:`${Sn.dimensions.eventWidth}px`,height:"100%",backgroundColor:Sn.colors.primary,cursor:"pointer",transition:"transform 0.2s",transformOrigin:"center"}},selection:{sx:{position:"absolute",top:0,height:"100%",backgroundColor:Sn.colors.highlightBackground,pointerEvents:"none"}},tooltip:{sx:{position:"absolute",bottom:"-40px",backgroundColor:"white",p:"6px 10px",borderRadius:.5,boxShadow:"0 2px 8px rgba(0,0,0,0.15)",whiteSpace:"nowrap",pointerEvents:"none",zIndex:10,border:`1px solid ${Sn.colors.border}`}},tooltipEventName:{sx:{fontWeight:600}},tooltipDate:{sx:{color:Sn.colors.tooltipText,fontSize:"11px"}}},HY=(e="#9CA3AF")=>({startHandle:{sx:{position:"absolute",left:"-8px",top:0,width:"20px",height:"100%",zIndex:3,display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 0.2s","&::before":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:"1px",height:"100%",backgroundColor:e,transition:"background-color 0.2s",pointerEvents:"none"},"&::after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"9px",height:"16px",backgroundColor:"#F9FAFB",border:`1px solid ${e}`,transition:"border-color 0.2s, background-color 0.2s",pointerEvents:"none",backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`,backgroundPosition:"35% center, 65% center",backgroundSize:"1px 50%, 1px 50%",backgroundRepeat:"no-repeat"},"&:hover::before":{backgroundColor:e},"&:hover::after":{borderColor:e,backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`},"&:active::before":{backgroundColor:e},"&:active::after":{borderColor:e,backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`}}},endHandle:{sx:{position:"absolute",right:"-8px",top:0,width:"20px",height:"100%",zIndex:3,display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 0.2s","&::before":{content:'""',position:"absolute",top:0,left:"50%",transform:"translateX(-50%)",width:"1px",height:"100%",backgroundColor:e,transition:"background-color 0.2s",pointerEvents:"none"},"&::after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"9px",height:"16px",backgroundColor:"#F9FAFB",border:`1px solid ${e}`,transition:"border-color 0.2s, background-color 0.2s",pointerEvents:"none",backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`,backgroundPosition:"35% center, 65% center",backgroundSize:"1px 50%, 1px 50%",backgroundRepeat:"no-repeat"},"&:hover::before":{backgroundColor:e},"&:hover::after":{borderColor:e,backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`},"&:active::before":{backgroundColor:e},"&:active::after":{borderColor:e,backgroundImage:`linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%), linear-gradient(to bottom, transparent 0%, transparent 25%, ${e} 25%, ${e} 75%, transparent 75%)`}}}}),GY=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},KY=({events:e,selectedRange:t,onSelectionChange:r,enableZoom:n,zoomToSelection:i,visibleRange:a,onVisibleRangeChange:o})=>{GY()&&e.length>1&&(e.every((K,Z)=>Z===0||K.timestamp>=e[Z-1].timestamp)||console.warn("TimelineChart: events array should be sorted by timestamp for optimal performance and correct behavior."));const[s,l]=O.useState(!1),[u,c]=O.useState(null),[f,h]=O.useState(null),[p,y]=O.useState({start:null,end:null}),[m,d]=O.useState({start:null,end:null}),[b,v]=O.useState(null),x=O.useRef(null),_=t??p,g=a??m,w=O.useMemo(()=>{var F;return e.length>0?((F=e[0])==null?void 0:F.timestamp)??0:0},[e]),S=O.useMemo(()=>{var F;return e.length>0?((F=e[e.length-1])==null?void 0:F.timestamp)??0:0},[e]),A=O.useMemo(()=>i&&g.start&&g.end?g.start:w,[i,g,w]),T=O.useMemo(()=>i&&g.start&&g.end?g.end:S,[i,g,S]),M=O.useMemo(()=>T-A,[T,A]),P=O.useMemo(()=>!n&&_.start!==null&&_.end!==null,[n,_]),E=O.useCallback(F=>M===0?0:(F-A)/M*100,[A,M]),C=O.useCallback((F,K)=>{const Z=F/K*100;return A+Z/100*M},[A,M]),$=O.useCallback(F=>{t===void 0&&y(F),r==null||r(F)},[t,r]),j=O.useCallback(F=>{const K=F.currentTarget.getBoundingClientRect(),Z=F.clientX-K.left,X=C(Z,K.width);l(!0),c(X),$({start:X,end:X})},[C,$]),k=O.useCallback(F=>{if(!s||u===null)return;const K=F.currentTarget.getBoundingClientRect(),Z=F.clientX-K.left,X=C(Z,K.width);if(f==="start"){const z=Math.min(X,_.end-M*.01);$({start:Math.max(z,A),end:_.end})}else if(f==="end"){const z=Math.max(X,_.start+M*.01);$({start:_.start,end:Math.min(z,T)})}else if(f==="body"){const z=X-u,Y=_.end-_.start;let V=_.start+z,D=_.end+z;V<A&&(V=A,D=A+Y),D>T&&(D=T,V=T-Y),$({start:V,end:D}),c(X)}else $({start:Math.min(u,X),end:Math.max(u,X)})},[s,u,f,_,M,A,T,C,$]),R=O.useCallback(()=>{const F=s;if(l(!1),h(null),F&&i&&_.start&&_.end&&_.start!==_.end){const K={start:_.start,end:_.end};a===void 0&&d(K),o==null||o(K)}},[s,i,_,a,o]);O.useEffect(()=>{if(!s||u===null||!x.current)return;const F=Z=>{const X=x.current;if(!X)return;const z=X.getBoundingClientRect(),Y=Z.clientX-z.left,V=C(Y,z.width);if(f==="start"){const D=Math.min(V,_.end-M*.01);$({start:Math.max(D,A),end:_.end})}else if(f==="end"){const D=Math.max(V,_.start+M*.01);$({start:_.start,end:Math.min(D,T)})}else if(f==="body"){const D=V-u,rt=_.end-_.start;let W=_.start+D,tt=_.end+D;W<A&&(W=A,tt=A+rt),tt>T&&(tt=T,W=T-rt),$({start:W,end:tt}),c(V)}else $({start:Math.min(u,V),end:Math.max(u,V)})},K=()=>{R()};return document.addEventListener("mousemove",F),document.addEventListener("mouseup",K),()=>{document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",K)}},[s,u,f,_,M,A,T,C,$,R]);const L=O.useCallback(F=>{F.stopPropagation(),_.start!==null&&(l(!0),c(_.start),h("start"))},[_]),U=O.useCallback(F=>{F.stopPropagation(),_.end!==null&&(l(!0),c(_.end),h("end"))},[_]),I=O.useCallback(F=>{F.stopPropagation();const K=x.current;if(!K)return;const Z=K.getBoundingClientRect(),X=F.clientX-Z.left,z=C(X,Z.width);l(!0),c(z),h("body")},[C]),B=O.useCallback(F=>{if(F.cancelable&&n&&F.preventDefault(),!n||!_.start||!_.end||M===0)return;const K=(_.start+_.end)/2,Z=_.end-_.start,X=F.deltaY>0?1.1:.9,z=Math.max(Z*X,M*.01),Y=M*1.5,V=Math.min(z,Y);let D=K-V/2,rt=K+V/2;D<A&&(D=A,rt=Math.min(A+V,T)),rt>T&&(rt=T,D=Math.max(T-V,A)),$({start:D,end:rt})},[n,_,M,A,T,$]),q=O.useCallback(()=>!_.start||!_.end?[]:e.filter(F=>F.timestamp>=_.start&&F.timestamp<=_.end),[e,_]),N=O.useCallback(()=>{const F={start:w,end:S};a===void 0&&d({start:null,end:null}),o==null||o(F)},[w,S,a,o]),G=O.useCallback(()=>{i&&N()},[i,N]);return{isDragging:s,dragStart:u,dragHandleType:f,internalSelectedRange:_,internalVisibleRange:g,hoveredEvent:b,minDate:A,maxDate:T,timeSpan:M,timelineContainerRef:x,getPositionFromTimestamp:E,getTimestampFromPosition:C,handleMouseDown:j,handleMouseMove:k,handleMouseUp:R,handleWheel:B,handleDoubleClick:G,handleStartHandleMouseDown:L,handleEndHandleMouseDown:U,handleSelectionBodyMouseDown:I,setHoveredEvent:v,getEventsInRange:q,resetZoom:N,showHandles:P}},XY=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),YY=e=>new Date(e).toLocaleDateString("en-US",{month:"short",year:"numeric"}),VY=e=>{const t=e/864e5;return t>60?r=>new Date(r).toLocaleDateString("en-US",{month:"short",year:"numeric"}):t>7?r=>new Date(r).toLocaleDateString("en-US",{month:"short",day:"numeric"}):r=>new Date(r).toLocaleDateString("en-US",{month:"short",day:"numeric",hour:"numeric",hour12:!0})},ZY=()=>{var e,t;try{return((t=(e=globalThis.process)==null?void 0:e.env)==null?void 0:t.NODE_ENV)==="development"}catch{return!1}},JY=(e,t="arrow",r)=>{const n=t==="grip"?HY(r||"#9CA3AF"):WY(r||"#4B5563");return{header:{...un.header,...e==null?void 0:e.header},title:{...un.title,...e==null?void 0:e.title},instructions:{...un.instructions,...e==null?void 0:e.instructions},monthLabelsContainer:{...un.monthLabelsContainer,...e==null?void 0:e.monthLabelsContainer},monthLabel:{...un.monthLabel,...e==null?void 0:e.monthLabel},timeline:{...un.timeline,...e==null?void 0:e.timeline},event:{...un.event,...e==null?void 0:e.event},selection:{...un.selection,...e==null?void 0:e.selection},startHandle:{...n.startHandle,...e==null?void 0:e.startHandle},endHandle:{...n.endHandle,...e==null?void 0:e.endHandle},tooltip:{...un.tooltip,...e==null?void 0:e.tooltip},tooltipEventName:{...un.tooltipEventName,...e==null?void 0:e.tooltipEventName},tooltipDate:{...un.tooltipDate,...e==null?void 0:e.tooltipDate}}},QY=({events:e,onSelectionChange:t,selectedRange:r,height:n=Sn.dimensions.height,margin:i={top:0,right:0,bottom:0,left:0},formatDate:a=XY,formatMonthYear:o=YY,showMonthLabels:s=!0,monthLabelCount:l=6,enableZoom:u=!0,dragHandleVariant:c="arrow",dragHandleColor:f,showHeader:h=!0,title:p="Event Timeline Selector",zoomToSelection:y=!1,visibleRange:m,onVisibleRangeChange:d,timeRange:b,onTimeRangeChange:v,slotProps:x})=>{const _=b?{start:b[0],end:b[1]}:m,g=v?F=>{F.start!==null&&F.end!==null&&v([F.start,F.end])}:d;ZY()&&e.length>500&&console.warn(`TimelineChart: Rendering ${e.length} events may impact performance. Consider implementing virtualization or canvas rendering for datasets larger than 500 events.`);const w=O.useMemo(()=>JY(x,c,f),[x,c,f]),{isDragging:S,dragHandleType:A,internalSelectedRange:T,hoveredEvent:M,minDate:P,timeSpan:E,timelineContainerRef:C,getPositionFromTimestamp:$,handleMouseDown:j,handleWheel:k,handleDoubleClick:R,handleStartHandleMouseDown:L,handleEndHandleMouseDown:U,handleSelectionBodyMouseDown:I,setHoveredEvent:B,getEventsInRange:q,showHandles:N}=KY({events:e,selectedRange:r,onSelectionChange:t,enableZoom:u,zoomToSelection:y,visibleRange:_,onVisibleRangeChange:g}),G=T.start&&T.end?`Selected: ${a(T.start)} - ${a(T.end)} (${q().length} events)`:"Click and drag on the timeline below to select a date range. Use mouse wheel to zoom in/out.";return H.jsxs(Q.Stack,{sx:{width:"100%"},children:[h&&H.jsxs(Q.Stack,{spacing:1,sx:{mb:3},...w.header,children:[H.jsx(Q.Typography,{variant:"h5",...w.title,children:p}),H.jsx(Q.Typography,{variant:"body2",...w.instructions,children:G})]}),s&&H.jsx(Q.Stack,{direction:"row",...w.monthLabelsContainer,sx:{...w.monthLabelsContainer.sx,paddingLeft:`${i.left}px`,paddingRight:`${i.right}px`},children:Array.from({length:l},(F,K)=>{const Z=P+E/(l-1)*K,X=VY(E);return H.jsx(Q.Typography,{variant:"caption",...w.monthLabel,children:X(Z)},K)})}),H.jsxs(Q.Box,{...w.timeline,sx:{...w.timeline.sx,height:`${n}px`,paddingLeft:`${i.left}px`,paddingRight:`${i.right}px`},children:[H.jsx(Q.Box,{sx:{position:"absolute",top:i.top,left:0,right:0,bottom:i.bottom},children:e.map((F,K)=>{const Z=$(F.timestamp);return H.jsx(Q.Box,{onMouseEnter:()=>B(F),onMouseLeave:()=>B(null),"aria-label":`Event: ${F.eventName} at ${a(F.timestamp)}`,...w.event,sx:{...w.event.sx,left:`${Z}%`,transform:(M==null?void 0:M.timestamp)===F.timestamp?"scaleX(2)":"scaleX(1)"}},`${F.timestamp}-${K}`)})}),T.start&&T.end&&(!y||S)&&H.jsx(Q.Box,{...w.selection,onMouseDown:N&&!S?I:void 0,sx:{...w.selection.sx,left:`${$(T.start)}%`,width:`${$(T.end)-$(T.start)}%`,pointerEvents:N?"all":"none",zIndex:2,cursor:N&&!S?A==="body"?"grabbing":"grab":"default"},children:N&&!(S&&A===null)&&H.jsxs(H.Fragment,{children:[H.jsx(Q.Box,{...w.startHandle,onMouseDown:L,sx:{...w.startHandle.sx,cursor:"ew-resize",opacity:S&&A!=="start"?.5:1},"aria-label":"Drag to adjust start of selection"}),H.jsx(Q.Box,{...w.endHandle,onMouseDown:U,sx:{...w.endHandle.sx,cursor:"ew-resize",opacity:S&&A!=="end"?.5:1},"aria-label":"Drag to adjust end of selection"})]})}),H.jsx(Q.Box,{ref:C,role:"application","aria-label":"Interactive timeline - click and drag to select date range","aria-describedby":h?void 0:"timeline-instructions",tabIndex:0,sx:{position:"absolute",top:0,left:0,right:0,height:"100%",cursor:"crosshair",pointerEvents:"all",zIndex:1},onMouseDown:j,onWheel:k,onDoubleClick:R}),!h&&H.jsx("span",{id:"timeline-instructions",style:{display:"none"},children:G}),M&&H.jsxs(Q.Box,{role:"tooltip","aria-live":"polite",...w.tooltip,sx:{...w.tooltip.sx,left:`${$(M.timestamp)}%`,transform:"translateX(-50%)"},children:[H.jsx(Q.Typography,{variant:"body2",...w.tooltipEventName,children:M.eventName}),H.jsx(Q.Typography,{variant:"caption",...w.tooltipDate,children:a(M.timestamp)})]})]})]})},tV="#8b5cf6",eV=e=>new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),rV=({events:e,title:t="Events in Selected Range",maxHeight:r="200px",formatDate:n=eV,primaryColor:i=tV})=>e.length===0?null:H.jsxs("div",{style:{marginTop:"24px",padding:"20px",backgroundColor:"#f9fafb",borderRadius:"8px",border:"1px solid #e5e7eb"},children:[H.jsxs("h3",{style:{margin:"0 0 12px 0",fontSize:"16px",color:"#374151"},children:[t," (",e.length,")"]}),H.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(250px, 1fr))",gap:"8px",maxHeight:r,overflowY:"auto"},children:e.map((a,o)=>H.jsxs("div",{style:{padding:"8px 12px",backgroundColor:"white",borderRadius:"4px",fontSize:"13px",border:"1px solid #e5e7eb"},children:[H.jsx("div",{style:{fontWeight:500,color:i},children:a.eventName}),H.jsx("div",{style:{color:"#6b7280",fontSize:"12px",marginTop:"2px"},children:n(a.timestamp)})]},`${a.timestamp}-${o}`))})]});exports.CAMPAIGN_DATA_MISSING=Es;exports.CAMPAIGN_NOT_APPLICABLE=Ts;exports.CAMPAIGN_NO_LST=Ps;exports.CATEGORY_LABELS=qY;exports.ChronoChart=OE;exports.ChronoPerspectiveChart=OE;exports.D3StackedAreaChart=TL;exports.DEFAULT_CHART_COLORS=Or;exports.DEFAULT_CHART_CONFIG=dr;exports.DEFAULT_STACKED_AREA_COLORS=qn;exports.DEFAULT_STACKED_AREA_CONFIG=$t;exports.MEASURE_GRADIENT_COLORS=Ss;exports.MODERNE_VULNERABILITY_COLORS=Za;exports.MorphChart=cE;exports.ParliamentChart=XF;exports.STACKED_AREA_PALETTES=BY;exports.StackedAreaChart=FY;exports.StackedAreaWithTimeline=UY;exports.TimelineChart=QY;exports.TimelineSelectedEvents=rV;exports.calculateDataSeries=aM;exports.calculateOptimalArcAngle=t0;exports.calculateOptimalSeatSize=e0;
|