@eshal-bot/chat-widget 0.2.52 → 0.2.54
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/{chat-widget-MarkdownRenderer-CLQhhk33.esm.js → chat-widget-MarkdownRenderer-D4fhjH4t.esm.js} +3 -3
- package/dist/chat-widget-index-C0VY-3ea.esm.js +20 -0
- package/dist/chat-widget.esm.js +1 -1
- package/dist/chat-widget.js +735 -452
- package/dist/chat-widget.min.js +6 -6
- package/dist/chat-widget.umd.js +8 -8
- package/package.json +1 -1
- package/dist/chat-widget-index-BZbPoQVV.esm.js +0 -20
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import*as e from"react";import t,{isValidElement as n,Children as r,PureComponent as a,forwardRef as i,useRef as o,useImperativeHandle as s,useState as l,useCallback as c,useEffect as u,useMemo as d,cloneElement as p,createElement as f,useContext as g,createContext as m,Component as h}from"react";import{c as b,v as y,a as v,b as E,E as S,l as w,s as A,n as k,V as x,A as T,
|
|
1
|
+
import*as e from"react";import t,{isValidElement as n,Children as r,PureComponent as a,forwardRef as i,useRef as o,useImperativeHandle as s,useState as l,useCallback as c,useEffect as u,useMemo as d,cloneElement as p,createElement as f,useContext as g,createContext as m,Component as h}from"react";import{c as b,v as y,a as v,b as E,E as S,l as w,s as A,n as k,V as x,A as T,C as O,d as _,e as I,m as N,p as R,t as C,W as D,f as P,F as L,L as M,r as F}from"./chat-widget-index-C0VY-3ea.esm.js";import{jsxs as j,jsx as B,Fragment as U}from"react/jsx-runtime";import{createPortal as z}from"react-dom";import"react-dom/client";
|
|
2
2
|
/**
|
|
3
3
|
* @license lucide-react v0.575.0 - ISC
|
|
4
4
|
*
|
|
5
5
|
* This source code is licensed under the ISC license.
|
|
6
6
|
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/const z=b("calendar-check",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]]),$=b("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),G=b("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),q=b("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),H=b("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),V=b("ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]);var W="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Y(){}function K(){}const X=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Z=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Q={};function J(e,t){return(Q.jsx?Z:X).test(e)}const ee=/[ \t\n\f\r]/g;function te(e){return""===e.replace(ee,"")}let ne=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};function re(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new ne(n,r,t)}function ae(e){return e.toLowerCase()}ne.prototype.normal={},ne.prototype.property={},ne.prototype.space=void 0;let ie=class{constructor(e,t){this.attribute=t,this.property=e}};ie.prototype.attribute="",ie.prototype.booleanish=!1,ie.prototype.boolean=!1,ie.prototype.commaOrSpaceSeparated=!1,ie.prototype.commaSeparated=!1,ie.prototype.defined=!1,ie.prototype.mustUseProperty=!1,ie.prototype.number=!1,ie.prototype.overloadedBoolean=!1,ie.prototype.property="",ie.prototype.spaceSeparated=!1,ie.prototype.space=void 0;let oe=0;const se=ge(),le=ge(),ce=ge(),ue=ge(),de=ge(),pe=ge(),fe=ge();function ge(){return 2**++oe}var me=Object.freeze({__proto__:null,boolean:se,booleanish:le,commaOrSpaceSeparated:fe,commaSeparated:pe,number:ue,overloadedBoolean:ce,spaceSeparated:de});const he=Object.keys(me);let be=class extends ie{constructor(e,t,n,r){let a=-1;if(super(e,t),ye(this,"space",r),"number"==typeof n)for(;++a<he.length;){const e=he[a];ye(this,he[a],(n&me[e])===me[e])}}};function ye(e,t,n){n&&(e[t]=n)}function ve(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new be(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[ae(r)]=r,n[ae(i.attribute)]=r}return new ne(t,n,e.space)}be.prototype.defined=!0;const Ee=ve({properties:{ariaActiveDescendant:null,ariaAtomic:le,ariaAutoComplete:null,ariaBusy:le,ariaChecked:le,ariaColCount:ue,ariaColIndex:ue,ariaColSpan:ue,ariaControls:de,ariaCurrent:null,ariaDescribedBy:de,ariaDetails:null,ariaDisabled:le,ariaDropEffect:de,ariaErrorMessage:null,ariaExpanded:le,ariaFlowTo:de,ariaGrabbed:le,ariaHasPopup:null,ariaHidden:le,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:de,ariaLevel:ue,ariaLive:null,ariaModal:le,ariaMultiLine:le,ariaMultiSelectable:le,ariaOrientation:null,ariaOwns:de,ariaPlaceholder:null,ariaPosInSet:ue,ariaPressed:le,ariaReadOnly:le,ariaRelevant:null,ariaRequired:le,ariaRoleDescription:de,ariaRowCount:ue,ariaRowIndex:ue,ariaRowSpan:ue,ariaSelected:le,ariaSetSize:ue,ariaSort:null,ariaValueMax:ue,ariaValueMin:ue,ariaValueNow:ue,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function Se(e,t){return t in e?e[t]:t}function we(e,t){return Se(e,t.toLowerCase())}const Ae=ve({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:pe,acceptCharset:de,accessKey:de,action:null,allow:null,allowFullScreen:se,allowPaymentRequest:se,allowUserMedia:se,alt:null,as:null,async:se,autoCapitalize:null,autoComplete:de,autoFocus:se,autoPlay:se,blocking:de,capture:null,charSet:null,checked:se,cite:null,className:de,cols:ue,colSpan:null,content:null,contentEditable:le,controls:se,controlsList:de,coords:ue|pe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:se,defer:se,dir:null,dirName:null,disabled:se,download:ce,draggable:le,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:se,formTarget:null,headers:de,height:ue,hidden:ce,high:ue,href:null,hrefLang:null,htmlFor:de,httpEquiv:de,id:null,imageSizes:null,imageSrcSet:null,inert:se,inputMode:null,integrity:null,is:null,isMap:se,itemId:null,itemProp:de,itemRef:de,itemScope:se,itemType:de,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:se,low:ue,manifest:null,max:null,maxLength:ue,media:null,method:null,min:null,minLength:ue,multiple:se,muted:se,name:null,nonce:null,noModule:se,noValidate:se,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:se,optimum:ue,pattern:null,ping:de,placeholder:null,playsInline:se,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:se,referrerPolicy:null,rel:de,required:se,reversed:se,rows:ue,rowSpan:ue,sandbox:de,scope:null,scoped:se,seamless:se,selected:se,shadowRootClonable:se,shadowRootDelegatesFocus:se,shadowRootMode:null,shape:null,size:ue,sizes:null,slot:null,span:ue,spellCheck:le,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ue,step:null,style:null,tabIndex:ue,target:null,title:null,translate:null,type:null,typeMustMatch:se,useMap:null,value:le,width:ue,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:de,axis:null,background:null,bgColor:null,border:ue,borderColor:null,bottomMargin:ue,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:se,declare:se,event:null,face:null,frame:null,frameBorder:null,hSpace:ue,leftMargin:ue,link:null,longDesc:null,lowSrc:null,marginHeight:ue,marginWidth:ue,noResize:se,noHref:se,noShade:se,noWrap:se,object:null,profile:null,prompt:null,rev:null,rightMargin:ue,rules:null,scheme:null,scrolling:le,standby:null,summary:null,text:null,topMargin:ue,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ue,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:se,disableRemotePlayback:se,prefix:null,property:null,results:ue,security:null,unselectable:null},space:"html",transform:we}),ke=ve({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:fe,accentHeight:ue,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ue,amplitude:ue,arabicForm:null,ascent:ue,attributeName:null,attributeType:null,azimuth:ue,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ue,by:null,calcMode:null,capHeight:ue,className:de,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:ue,diffuseConstant:ue,direction:null,display:null,dur:null,divisor:ue,dominantBaseline:null,download:se,dx:null,dy:null,edgeMode:null,editable:null,elevation:ue,enableBackground:null,end:null,event:null,exponent:ue,externalResourcesRequired:null,fill:null,fillOpacity:ue,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:pe,g2:pe,glyphName:pe,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ue,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ue,horizOriginX:ue,horizOriginY:ue,id:null,ideographic:ue,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ue,k:ue,k1:ue,k2:ue,k3:ue,k4:ue,kernelMatrix:fe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ue,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:ue,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:ue,overlineThickness:ue,paintOrder:null,panose1:null,path:null,pathLength:ue,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:de,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ue,pointsAtY:ue,pointsAtZ:ue,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:fe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:fe,rev:fe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:fe,requiredFeatures:fe,requiredFonts:fe,requiredFormats:fe,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:ue,specularExponent:ue,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ue,strikethroughThickness:ue,string:null,stroke:null,strokeDashArray:fe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ue,strokeOpacity:ue,strokeWidth:null,style:null,surfaceScale:ue,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:fe,tabIndex:ue,tableValues:null,target:null,targetX:ue,targetY:ue,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:fe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ue,underlineThickness:ue,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ue,values:null,vAlphabetic:ue,vMathematical:ue,vectorEffect:null,vHanging:ue,vIdeographic:ue,version:null,vertAdvY:ue,vertOriginX:ue,vertOriginY:ue,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ue,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Se}),xe=ve({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),Te=ve({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:we}),Oe=ve({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),_e={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Ie=/[A-Z]/g,Ne=/-[a-z]/g,Re=/^data[-\w.:]+$/i;function Ce(e){return"-"+e.toLowerCase()}function De(e){return e.charAt(1).toUpperCase()}const Pe=re([Ee,Ae,xe,Te,Oe],"html"),Le=re([Ee,ke,xe,Te,Oe],"svg");var Me={},Fe=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,je=/\n/g,Be=/^\s*/,Ue=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ze=/^:\s*/,$e=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ge=/^[;\s]*/,qe=/^\s+|\s+$/g,He="";function Ve(e){return e?e.replace(qe,He):He}var We=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(e){var t=e.match(je);t&&(n+=t.length);var a=e.lastIndexOf("\n");r=~a?e.length-a:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new o(e),c(),t}}function o(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function s(a){var i=new Error(t.source+":"+n+":"+r+": "+a);if(i.reason=a,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i}function l(t){var n=t.exec(e);if(n){var r=n[0];return a(r),e=e.slice(r.length),n}}function c(){l(Be)}function u(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=i();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;He!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,He===e.charAt(n-1))return s("End of comment missing");var o=e.slice(2,n-2);return r+=2,a(o),e=e.slice(n),r+=2,t({type:"comment",comment:o})}}function p(){var e=i(),t=l(Ue);if(t){if(d(),!l(ze))return s("property missing ':'");var n=l($e),r=e({type:"declaration",property:Ve(t[0].replace(Fe,He)),value:n?Ve(n[0].replace(Fe,He)):He});return l(Ge),r}}return o.prototype.content=e,c(),function(){var e,t=[];for(u(t);e=p();)!1!==e&&(t.push(e),u(t));return t}()},Ye=W&&W.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Me,"__esModule",{value:!0}),Me.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;const r=(0,Ke.default)(e),a="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;const{property:r,value:i}=e;a?t(r,i,e):i&&(n=n||{},n[r]=i)}),n};const Ke=Ye(We);var Xe={};Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.camelCase=void 0;var Ze=/^--[a-zA-Z0-9_-]+$/,Qe=/-([a-z])/g,Je=/^[^-]+$/,et=/^-(webkit|moz|ms|o|khtml)-/,tt=/^-(ms)-/,nt=function(e,t){return t.toUpperCase()},rt=function(e,t){return"".concat(t,"-")};Xe.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||Je.test(e)||Ze.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(tt,rt):e.replace(et,rt)).replace(Qe,nt))};var at=(W&&W.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Me),it=Xe;function ot(e,t){var n={};return e&&"string"==typeof e?((0,at.default)(e,function(e,r){e&&r&&(n[(0,it.camelCase)(e,t)]=r)}),n):n}ot.default=ot;var st=ot;const lt=ut("end"),ct=ut("start");function ut(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function dt(e){return e&&"object"==typeof e?"position"in e||"type"in e?ft(e.position):"start"in e||"end"in e?ft(e):"line"in e||"column"in e?pt(e):"":""}function pt(e){return gt(e&&e.line)+":"+gt(e&&e.column)}function ft(e){return pt(e&&e.start)+"-"+pt(e&&e.end)}function gt(e){return e&&"number"==typeof e?e:1}class mt extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",a={},i=!1;if(t&&(a="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!a.cause&&e&&(i=!0,r=e.message,a.cause=e),!a.ruleId&&!a.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?a.ruleId=n:(a.source=n.slice(0,e),a.ruleId=n.slice(e+1))}if(!a.place&&a.ancestors&&a.ancestors){const e=a.ancestors[a.ancestors.length-1];e&&(a.place=e.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=dt(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=i&&a.cause&&"string"==typeof a.cause.stack?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}mt.prototype.file="",mt.prototype.name="",mt.prototype.reason="",mt.prototype.message="",mt.prototype.stack="",mt.prototype.column=void 0,mt.prototype.line=void 0,mt.prototype.ancestors=void 0,mt.prototype.cause=void 0,mt.prototype.fatal=void 0,mt.prototype.place=void 0,mt.prototype.ruleId=void 0,mt.prototype.source=void 0;const ht={}.hasOwnProperty,bt=new Map,yt=/[A-Z]/g,vt=new Set(["table","tbody","thead","tfoot","tr"]),Et=new Set(["td","th"]),St="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function wt(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,a,i){const o=Array.isArray(a.children),s=ct(n);return t(r,a,i,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,a,i){const o=Array.isArray(a.children)?n:t;return i?o(r,a,i):o(r,a)}}(0,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Le:Pe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=At(a,e,void 0);return i&&"string"!=typeof i?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function At(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let a=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(a=Le,e.schema=a);e.ancestors.push(t);const i=_t(e,t.tagName,!1),o=function(e,t){const n={};let r,a;for(a in t.properties)if("children"!==a&&ht.call(t.properties,a)){const i=Ot(e,a,t.properties[a]);if(i){const[a,o]=i;e.tableCellAlignToStyle&&"align"===a&&"string"==typeof o&&Et.has(t.tagName)?r=o:n[a]=o}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let s=Tt(e,t);vt.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&te(t.value):te(t));var t}));return kt(e,o,i,t),xt(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}It(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let a=r;"svg"===t.name&&"html"===r.space&&(a=Le,e.schema=a);e.ancestors.push(t);const i=null===t.name?e.Fragment:_t(e,t.name,!0),o=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];Y(t.type);const a=t.expression;Y(a.type);const i=a.properties[0];Y(i.type),Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else It(e,t.position);else{const a=r.name;let i;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];Y(t.type),i=e.evaluater.evaluateExpression(t.expression)}else It(e,t.position);else i=null===r.value||r.value;n[a]=i}return n}(e,t),s=Tt(e,t);return kt(e,o,i,t),xt(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);It(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return xt(r,Tt(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function kt(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function xt(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Tt(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:bt;for(;++r<t.children.length;){const i=t.children[r];let o;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=a.get(e)||0;o=e+"-"+t,a.set(e,t+1)}}const s=At(e,i,o);void 0!==s&&n.push(s)}return n}function Ot(e,t,n){const r=function(e,t){const n=ae(t);let r=t,a=ie;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Re.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Ne,De);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Ne.test(e)){let n=e.replace(Ie,Ce);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}a=be}return new a(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return st(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new mt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=St+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)ht.call(e,n)&&(t[Nt(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?_e[r.property]||r.property:r.attribute,n]}}function _t(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,a=-1;for(;++a<e.length;){const t=J(e[a])?{type:"Identifier",name:e[a]}:{type:"Literal",value:e[a]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(a&&"Literal"===t.type),optional:!1}:t}r=n}else r=J(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return ht.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);It(e)}function It(e,t){const n=new mt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=St+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Nt(e){let t=e.replace(yt,Rt);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function Rt(e){return"-"+e.toLowerCase()}const Ct={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Dt={};function Pt(e,t){return Lt(e,"boolean"!=typeof Dt.includeImageAlt||Dt.includeImageAlt,"boolean"!=typeof Dt.includeHtml||Dt.includeHtml)}function Lt(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Mt(e.children,t,n)}return Array.isArray(e)?Mt(e,t,n):""}function Mt(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=Lt(e[a],t,n);return r.join("")}const Ft={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},jt={}.hasOwnProperty;function Bt(e){return!!jt.call(Ft,e)&&Ft[e]}function Ut(e,t,n,r){const a=e.length;let i,o=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o<r.length;)i=r.slice(o,o+1e4),i.unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function zt(e,t){return e.length>0?(Ut(e,e.length,0,t),e):t}const $t={}.hasOwnProperty;function Gt(e){const t={};let n=-1;for(;++n<e.length;)qt(t,e[n]);return t}function qt(e,t){let n;for(n in t){const r=($t.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let i;if(a)for(i in a){$t.call(r,i)||(r[i]=[]);const e=a[i];Ht(r[i],Array.isArray(e)?e:e?[e]:[])}}}function Ht(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Ut(e,0,0,r)}function Vt(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function Wt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Yt=sn(/[A-Za-z]/),Kt=sn(/[\dA-Za-z]/),Xt=sn(/[#-'*+\--9=?A-Z^-~]/);function Zt(e){return null!==e&&(e<32||127===e)}const Qt=sn(/\d/),Jt=sn(/[\dA-Fa-f]/),en=sn(/[!-/:-@[-`{-~]/);function tn(e){return null!==e&&e<-2}function nn(e){return null!==e&&(e<0||32===e)}function rn(e){return-2===e||-1===e||32===e}const an=sn(/\p{P}|\p{S}/u),on=sn(/\s/);function sn(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function ln(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let o="";if(37===i&&Kt(e.charCodeAt(n+1))&&Kt(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(o=String.fromCharCode(i,t),a=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function cn(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(rn(r))return e.enter(n),o(r);return t(r)};function o(r){return rn(r)&&i++<a?(e.consume(r),o):(e.exit(n),t(r))}}const un={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),cn(e,t,"linePrefix")},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,a(t)}function a(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):tn(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),a)}}};const dn={tokenize:function(e){const t=this,n=[];let r,a,i,o=0;return s;function s(r){if(o<n.length){const a=n[o];return t.containerState=a[1],e.attempt(a[0].continuation,l,c)(r)}return c(r)}function l(e){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const n=t.events.length;let a,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){a=t.events[i][1].end;break}b(o);let s=n;for(;s<t.events.length;)t.events[s][1].end={...a},s++;return Ut(t.events,i+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(a){if(o===n.length){if(!r)return p(a);if(r.currentConstruct&&r.currentConstruct.concrete)return g(a);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(pn,u,d)(a)}function u(e){return r&&y(),b(o),p(e)}function d(e){return t.parser.lazy[t.now().line]=o!==n.length,i=t.now().offset,g(e)}function p(n){return t.containerState={},e.attempt(pn,f,g)(n)}function f(e){return o++,n.push([t.currentConstruct,t.containerState]),p(e)}function g(n){return null===n?(r&&y(),b(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:a}),m(n))}function m(n){return null===n?(h(e.exit("chunkFlow"),!0),b(0),void e.consume(n)):tn(n)?(e.consume(n),h(e.exit("chunkFlow")),o=0,t.interrupt=void 0,s):(e.consume(n),m)}function h(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let a,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(a){s=t.events[l][1].end;break}a=!0}for(b(o),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;Ut(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function b(r){let a=n.length;for(;a-- >r;){const r=n[a];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function y(){r.write([null]),a=void 0,r=void 0,t.containerState._closeFlow=void 0}}},pn={tokenize:function(e,t,n){return cn(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function fn(e){return null===e||nn(e)||on(e)?1:an(e)?2:void 0}function gn(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const mn={name:"attention",resolveAll:function(e,t){let n,r,a,i,o,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},p={...e[u][1].start};hn(d,-s),hn(p,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},a={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...i.start},end:{...o.end}},e[n][1].end={...i.start},e[u][1].start={...o.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=zt(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=zt(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",a,t]]),l=zt(l,gn(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=zt(l,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=zt(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Ut(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=fn(r);let i;return function(t){return i=t,e.enter("attentionSequence"),o(t)};function o(s){if(s===i)return e.consume(s),o;const l=e.exit("attentionSequence"),c=fn(s),u=!c||2===c&&a||n.includes(s),d=!a||2===a&&c||n.includes(r);return l._open=Boolean(42===i?u:u&&(a||!d)),l._close=Boolean(42===i?d:d&&(c||!u)),t(s)}}};function hn(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const bn={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a};function a(t){return Yt(t)?(e.consume(t),i):64===t?n(t):l(t)}function i(e){return 43===e||45===e||46===e||Kt(e)?(r=1,o(e)):l(e)}function o(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||Kt(t))&&r++<32?(e.consume(t),o):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||Zt(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):Xt(t)?(e.consume(t),l):n(t)}function c(e){return Kt(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||Kt(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const yn={partial:!0,tokenize:function(e,t,n){return function(t){return rn(t)?cn(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||tn(e)?t(e):n(e)}}};const vn={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(rn(t))return cn(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return a(t)};function a(r){return e.attempt(vn,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),a}return n(t)};function a(n){return rn(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const En={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return en(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const Sn={name:"characterReference",tokenize:function(e,t,n){const r=this;let a,i,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,i=Kt,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,i=Jt,c):(e.enter("characterReferenceValue"),a=7,i=Qt,c(t))}function c(s){if(59===s&&o){const a=e.exit("characterReferenceValue");return i!==Kt||Bt(r.sliceSerialize(a))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&o++<a?(e.consume(s),c):n(s)}}};const wn={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},An={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return o;function o(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),rn(t)?cn(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===i?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===i?(a++,e.consume(t),u):a>=s?(e.exit("codeFencedFenceSequence"),rn(t)?cn(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||tn(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,o=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return o=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===i?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),rn(t)?cn(e,c,"whitespace")(t):c(t))}function c(n){return null===n||tn(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(wn,f,y)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||tn(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):rn(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),cn(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||tn(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||tn(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),p)}function f(t){return e.attempt(a,y,g)(t)}function g(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return o>0&&rn(t)?cn(e,h,"linePrefix",o+1)(t):h(t)}function h(t){return null===t||tn(t)?e.check(wn,f,y)(t):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||tn(t)?(e.exit("codeFlowValue"),h(t)):(e.consume(t),b)}function y(n){return e.exit("codeFenced"),t(n)}}};const kn={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),cn(e,a,"linePrefix",5)(t)};function a(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?s(t):tn(t)?e.attempt(xn,i,s)(t):(e.enter("codeFlowValue"),o(t))}function o(t){return null===t||tn(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),o)}function s(n){return e.exit("codeIndented"),t(n)}}},xn={partial:!0,tokenize:function(e,t,n){const r=this;return a;function a(t){return r.parser.lazy[r.now().line]?n(t):tn(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):cn(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):tn(e)?a(e):n(e)}}};const Tn={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,a=3;if(!("lineEnding"!==e[a][1].type&&"space"!==e[a][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=a;++t<r;)if("codeTextData"===e[t][1].type){e[a][1].type="codeTextPadding",e[r][1].type="codeTextPadding",a+=2,r-=2;break}t=a-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,a,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),o(t)};function o(t){return 96===t?(e.consume(t),i++,o):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(a=e.enter("codeTextSequence"),r=0,c(t)):tn(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||tn(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(a.type="codeTextData",l(n))}}};class On{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const a=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&_n(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),_n(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),_n(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);_n(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);_n(this.left,t.reverse())}}}function _n(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function In(e){const t={};let n,r,a,i,o,s,l,c=-1;const u=new On(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,a=0,a<s.length&&"lineEndingBlank"===s[a][1].type&&(a+=2),a<s.length&&"content"===s[a][1].type))for(;++a<s.length&&"content"!==s[a][1].type;)"chunkText"===s[a][1].type&&(s[a][1]._isInFirstContentOfListItem=!0,a++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Nn(u,c)),c=t[c],l=!0);else if(n[1]._container){for(a=c,r=void 0;a--;)if(i=u.get(a),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=a);else if("linePrefix"!==i[1].type&&"listItemIndent"!==i[1].type)break;r&&(n[1].end={...u.get(r)[1].start},o=u.slice(r,c),o.unshift(n),u.splice(r,c-r+1,o))}}return Ut(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function Nn(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const i=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,l=[],c={};let u,d,p=-1,f=n,g=0,m=0;const h=[m];for(;f;){for(;e.get(++a)[1]!==f;);i.push(a),f._tokenizer||(u=r.sliceStream(f),f.next||u.push(null),d&&o.defineSkip(f.start),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,h.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(o.events=[],f?(f._tokenizer=void 0,f.previous=void 0):h.pop(),p=h.length;p--;){const t=s.slice(h[p],h[p+1]),n=i.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),p=-1;++p<l.length;)c[g+l[p][0]]=g+l[p][1],g+=l[p][1]-l[p][0]-1;return c}const Rn={resolve:function(e){return In(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?a(t):tn(t)?e.check(Cn,i,a)(t):(e.consume(t),r)}function a(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Cn={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),cn(e,a,"linePrefix")};function a(a){if(null===a||tn(a))return n(a);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}};function Dn(e,t,n,r,a,i,o,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(a),e.enter(i),e.consume(t),e.exit(i),d;if(null===t||32===t||41===t||Zt(t))return n(t);return e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),g(t)};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||tn(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function g(a){return u||null!==a&&41!==a&&!nn(a)?u<c&&40===a?(e.consume(a),u++,g):41===a?(e.consume(a),u--,g):null===a||32===a||40===a||Zt(a)?n(a):(e.consume(a),92===a?m:g):(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(a))}function m(t){return 40===t||41===t||92===t?(e.consume(t),g):g(t)}}function Pn(e,t,n,r,a,i){const o=this;let s,l=0;return function(t){return e.enter(r),e.enter(a),e.consume(t),e.exit(a),e.enter(i),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(d):93===d?(e.exit(i),e.enter(a),e.consume(d),e.exit(a),e.exit(r),t):tn(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||tn(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!rn(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function Ln(e,t,n,r,a,i){let o;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(a),e.consume(t),e.exit(a),o=40===t?41:t,s;return n(t)};function s(n){return n===o?(e.enter(a),e.consume(n),e.exit(a),e.exit(r),t):(e.enter(i),l(n))}function l(t){return t===o?(e.exit(i),s(o)):null===t?n(t):tn(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),cn(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===o||null===t||tn(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===o||92===t?(e.consume(t),c):c(t)}}function Mn(e,t){let n;return function r(a){if(tn(a))return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r;if(rn(a))return cn(e,r,n?"linePrefix":"lineSuffix")(a);return t(a)}}const Fn={name:"definition",tokenize:function(e,t,n){const r=this;let a;return function(t){return e.enter("definition"),function(t){return Pn.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return a=Wt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return nn(t)?Mn(e,s)(t):s(t)}function s(t){return Dn(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(jn,c,c)(t)}function c(t){return rn(t)?cn(e,u,"whitespace")(t):u(t)}function u(i){return null===i||tn(i)?(e.exit("definition"),r.parser.defined.push(a),t(i)):n(i)}}},jn={partial:!0,tokenize:function(e,t,n){return function(t){return nn(t)?Mn(e,r)(t):n(t)};function r(t){return Ln(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function a(t){return rn(t)?cn(e,i,"whitespace")(t):i(t)}function i(e){return null===e||tn(e)?t(e):n(e)}}};const Bn={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return tn(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const Un={name:"headingAtx",resolve:function(e,t){let n,r,a=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);a-2>i&&"whitespace"===e[a][1].type&&(a-=2);"atxHeadingSequence"===e[a][1].type&&(i===a-1||a-4>i&&"whitespace"===e[a-2][1].type)&&(a-=i+1===a?2:4);a>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[a][1].end},r={type:"chunkText",start:e[i][1].start,end:e[a][1].end,contentType:"text"},Ut(e,i,a-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),a(t)}(t)};function a(t){return 35===t&&r++<6?(e.consume(t),a):null===t||nn(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),o(n)):null===n||tn(n)?(e.exit("atxHeading"),t(n)):rn(n)?cn(e,i,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function o(t){return 35===t?(e.consume(t),o):(e.exit("atxHeadingSequence"),i(t))}function s(t){return null===t||35===t||nn(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}}};const zn=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],$n=["pre","script","style","textarea"],Gn={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let a,i,o,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),i=!0,f):63===s?(e.consume(s),a=3,r.interrupt?t:P):Yt(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function u(i){return 45===i?(e.consume(i),a=2,d):91===i?(e.consume(i),a=5,s=0,p):Yt(i)?(e.consume(i),a=4,r.interrupt?t:P):n(i)}function d(a){return 45===a?(e.consume(a),r.interrupt?t:P):n(a)}function p(a){const i="CDATA[";return a===i.charCodeAt(s++)?(e.consume(a),6===s?r.interrupt?t:T:p):n(a)}function f(t){return Yt(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(null===s||47===s||62===s||nn(s)){const l=47===s,c=o.toLowerCase();return l||i||!$n.includes(c)?zn.includes(o.toLowerCase())?(a=6,l?(e.consume(s),m):r.interrupt?t(s):T(s)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):i?h(s):b(s)):(a=1,r.interrupt?t(s):T(s))}return 45===s||Kt(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function m(a){return 62===a?(e.consume(a),r.interrupt?t:T):n(a)}function h(t){return rn(t)?(e.consume(t),h):k(t)}function b(t){return 47===t?(e.consume(t),k):58===t||95===t||Yt(t)?(e.consume(t),y):rn(t)?(e.consume(t),b):k(t)}function y(t){return 45===t||46===t||58===t||95===t||Kt(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),E):rn(t)?(e.consume(t),v):b(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,S):rn(t)?(e.consume(t),E):w(t)}function S(t){return t===l?(e.consume(t),l=null,A):null===t||tn(t)?n(t):(e.consume(t),S)}function w(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||nn(t)?v(t):(e.consume(t),w)}function A(e){return 47===e||62===e||rn(e)?b(e):n(e)}function k(t){return 62===t?(e.consume(t),x):n(t)}function x(t){return null===t||tn(t)?T(t):rn(t)?(e.consume(t),x):n(t)}function T(t){return 45===t&&2===a?(e.consume(t),N):60===t&&1===a?(e.consume(t),R):62===t&&4===a?(e.consume(t),L):63===t&&3===a?(e.consume(t),P):93===t&&5===a?(e.consume(t),D):!tn(t)||6!==a&&7!==a?null===t||tn(t)?(e.exit("htmlFlowData"),O(t)):(e.consume(t),T):(e.exit("htmlFlowData"),e.check(qn,M,O)(t))}function O(t){return e.check(Hn,_,M)(t)}function _(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return null===t||tn(t)?O(t):(e.enter("htmlFlowData"),T(t))}function N(t){return 45===t?(e.consume(t),P):T(t)}function R(t){return 47===t?(e.consume(t),o="",C):T(t)}function C(t){if(62===t){const n=o.toLowerCase();return $n.includes(n)?(e.consume(t),L):T(t)}return Yt(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),C):T(t)}function D(t){return 93===t?(e.consume(t),P):T(t)}function P(t){return 62===t?(e.consume(t),L):45===t&&2===a?(e.consume(t),P):T(t)}function L(t){return null===t||tn(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),L)}function M(n){return e.exit("htmlFlow"),t(n)}}},qn={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(yn,t,n)}}},Hn={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(tn(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a;return n(t)};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const Vn={name:"htmlText",tokenize:function(e,t,n){const r=this;let a,i,o;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),E):63===t?(e.consume(t),y):Yt(t)?(e.consume(t),A):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,f):Yt(t)?(e.consume(t),b):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):tn(t)?(o=u,C(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?R(e):45===e?d(e):u(e)}function f(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?g:f):n(t)}function g(t){return null===t?n(t):93===t?(e.consume(t),m):tn(t)?(o=g,C(t)):(e.consume(t),g)}function m(t){return 93===t?(e.consume(t),h):g(t)}function h(t){return 62===t?R(t):93===t?(e.consume(t),h):g(t)}function b(t){return null===t||62===t?R(t):tn(t)?(o=b,C(t)):(e.consume(t),b)}function y(t){return null===t?n(t):63===t?(e.consume(t),v):tn(t)?(o=y,C(t)):(e.consume(t),y)}function v(e){return 62===e?R(e):y(e)}function E(t){return Yt(t)?(e.consume(t),S):n(t)}function S(t){return 45===t||Kt(t)?(e.consume(t),S):w(t)}function w(t){return tn(t)?(o=w,C(t)):rn(t)?(e.consume(t),w):R(t)}function A(t){return 45===t||Kt(t)?(e.consume(t),A):47===t||62===t||nn(t)?k(t):n(t)}function k(t){return 47===t?(e.consume(t),R):58===t||95===t||Yt(t)?(e.consume(t),x):tn(t)?(o=k,C(t)):rn(t)?(e.consume(t),k):R(t)}function x(t){return 45===t||46===t||58===t||95===t||Kt(t)?(e.consume(t),x):T(t)}function T(t){return 61===t?(e.consume(t),O):tn(t)?(o=T,C(t)):rn(t)?(e.consume(t),T):k(t)}function O(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,_):tn(t)?(o=O,C(t)):rn(t)?(e.consume(t),O):(e.consume(t),I)}function _(t){return t===a?(e.consume(t),a=void 0,N):null===t?n(t):tn(t)?(o=_,C(t)):(e.consume(t),_)}function I(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||nn(t)?k(t):(e.consume(t),I)}function N(e){return 47===e||62===e||nn(e)?k(e):n(e)}function R(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function C(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),D}function D(t){return rn(t)?cn(e,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):P(t)}function P(t){return e.enter("htmlTextData"),o(t)}}};const Wn={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&Ut(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,a,i,o=e.length,s=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(a){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(a=o);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[a][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[a-2][1].start}};return i=[["enter",l,t],["enter",c,t]],i=zt(i,e.slice(r+1,r+s+3)),i=zt(i,[["enter",u,t]]),i=zt(i,gn(t.parser.constructs.insideSpan.null,e.slice(r+s+4,a-3),t)),i=zt(i,[["exit",u,t],e[a-2],e[a-1],["exit",c,t]]),i=zt(i,e.slice(a+1)),i=zt(i,[["exit",l,t]]),Ut(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let a,i,o=r.events.length;for(;o--;)if(("labelImage"===r.events[o][1].type||"labelLink"===r.events[o][1].type)&&!r.events[o][1]._balanced){a=r.events[o][1];break}return function(t){if(!a)return n(t);if(a._inactive)return u(t);return i=r.parser.defined.includes(Wt(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(Yn,c,i?c:u)(t):91===t?e.attempt(Kn,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(Xn,c,u)(t)}function c(e){return t(e)}function u(e){return a._balanced=!0,n(e)}}},Yn={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return nn(t)?Mn(e,a)(t):a(t)}function a(t){return 41===t?c(t):Dn(e,i,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return nn(t)?Mn(e,s)(t):c(t)}function o(e){return n(e)}function s(t){return 34===t||39===t||40===t?Ln(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return nn(t)?Mn(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},Kn={tokenize:function(e,t,n){const r=this;return function(t){return Pn.call(r,e,a,i,"reference","referenceMarker","referenceString")(t)};function a(e){return r.parser.defined.includes(Wt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},Xn={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const Zn={name:"labelStartImage",resolveAll:Wn.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),a};function a(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Qn={name:"labelStartLink",resolveAll:Wn.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),a};function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Jn={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),cn(e,t,"linePrefix")}}};const er={name:"thematicBreak",tokenize:function(e,t,n){let r,a=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),o(i)):a>=3&&(null===i||tn(i))?(e.exit("thematicBreak"),t(i)):n(i)}function o(t){return t===r?(e.consume(t),a++,o):(e.exit("thematicBreakSequence"),rn(t)?cn(e,i,"whitespace")(t):i(t))}}};const tr={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(yn,a,i);function a(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,cn(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!rn(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(rr,t,o)(n))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,cn(e,e.attempt(tr,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,o=0;return function(t){const a=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===a?!r.containerState.marker||t===r.containerState.marker:Qt(t)){if(r.containerState.type||(r.containerState.type=a,e.enter(a,{_container:!0})),"listUnordered"===a)return e.enter("listItemPrefix"),42===t||45===t?e.check(er,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return Qt(t)&&++o<10?(e.consume(t),s):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(yn,r.interrupt?n:c,e.attempt(nr,d,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return rn(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},nr={partial:!0,tokenize:function(e,t,n){const r=this;return cn(e,function(e){const a=r.events[r.events.length-1];return!rn(e)&&a&&"listItemPrefixWhitespace"===a[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},rr={partial:!0,tokenize:function(e,t,n){const r=this;return cn(e,function(e){const a=r.events[r.events.length-1];return a&&"listItemIndent"===a[1].type&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}};const ar={name:"setextUnderline",resolveTo:function(e,t){let n,r,a,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),a||"definition"!==e[i][1].type||(a=i);const o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",o,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=o;return e.push(["exit",o,t]),e},tokenize:function(e,t,n){const r=this;let a;return function(t){let o,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){o="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||o))return e.enter("setextHeadingLine"),a=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===a?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),rn(t)?cn(e,o,"lineSuffix")(t):o(t))}function o(r){return null===r||tn(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const ir={tokenize:function(e){const t=this,n=e.attempt(yn,function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,cn(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Rn,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const or={resolveAll:ur()},sr=cr("string"),lr=cr("text");function cr(e){return{resolveAll:ur("text"===e?dr:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],a=t.attempt(r,i,o);return i;function i(e){return l(e)?a(e):o(e)}function o(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),a(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let a=-1;if(t)for(;++a<t.length;){const e=t[a];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function ur(e){return function(t,n){let r,a=-1;for(;++a<=t.length;)void 0===r?t[a]&&"data"===t[a][1].type&&(r=a,a++):t[a]&&"data"===t[a][1].type||(a!==r+2&&(t[r][1].end=t[a-1][1].end,t.splice(r+2,a-r-2),a=r+2),r=void 0);return e?e(t,n):t}}function dr(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],a=t.sliceStream(r);let i,o=a.length,s=-1,l=0;for(;o--;){const e=a[o];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)i=!0,l++;else if(-1!==e){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const a={type:n===e.length||i||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:r.start._bufferIndex+s,_index:r.start._index+o,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...a.start},r.start.offset===r.end.offset?Object.assign(r,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}const pr={42:tr,43:tr,45:tr,48:tr,49:tr,50:tr,51:tr,52:tr,53:tr,54:tr,55:tr,56:tr,57:tr,62:vn},fr={91:Fn},gr={[-2]:kn,[-1]:kn,32:kn},mr={35:Un,42:er,45:[ar,er],60:Gn,61:ar,95:er,96:An,126:An},hr={38:Sn,92:En},br={[-5]:Jn,[-4]:Jn,[-3]:Jn,33:Zn,38:Sn,42:mn,60:[bn,Vn],91:Qn,92:[Bn,En],93:Wn,95:mn,96:Tn},yr={null:[mn,or]};var vr=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:fr,disable:{null:[]},document:pr,flow:mr,flowInitial:gr,insideSpan:yr,string:hr,text:br});function Er(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},i=[];let o=[],s=[];const l={attempt:h(function(e,t){b(e,t.from)}),check:h(m),consume:function(e){tn(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,y()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:h(m,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){a[e.line]=e.column,y()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let o;if("string"==typeof i)o=i;else switch(i){case-5:o="\r";break;case-4:o="\n";break;case-3:o="\r\n";break;case-2:o=t?" ":"\t";break;case-1:if(!t&&a)continue;o=" ";break;default:o=String.fromCharCode(i)}a=-2===i,r.push(o)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){if(o=zt(o,e),f(),null!==o[o.length-1])return[];return b(t,0),c.events=gn(i,c.events,c),c.events}};let u=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let o;if(n===a)o=[e[n].slice(r,i)];else{if(o=e.slice(n,a),r>-1){const e=o[0];"string"==typeof e?o[0]=e.slice(r):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}(o,e)}function p(){const{_bufferIndex:e,_index:t,line:n,column:a,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:a,offset:i}}function f(){let e;for(;r._index<o.length;){const t=o[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)g(t.charCodeAt(r._bufferIndex));else g(t)}}function g(e){u=u(e)}function m(e,t){t.restore()}function h(e,t){return function(n,a,i){let o,u,d,f;return Array.isArray(n)?g(n):"tokenize"in n?g([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return g([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function g(e){return o=e,u=0,0===e.length?i:m(e[u])}function m(e){return function(n){f=function(){const e=p(),t=c.previous,n=c.currentConstruct,a=c.events.length,i=Array.from(s);return{from:a,restore:o};function o(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=a,s=i,y()}}(),d=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return b();return e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,h,b)(n)}}function h(t){return e(d,f),a}function b(e){return f.restore(),++u<o.length?m(o[u]):i}}}function b(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&Ut(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function y(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}const Sr=/[\0\t\n\r]/g;const wr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ar(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Vt(n.slice(t?2:1),t?16:10)}return Bt(n)||e}const kr={}.hasOwnProperty;function xr(e,t,n){return t&&"object"==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(te),autolinkProtocol:x,autolinkEmail:x,atxHeading:i(Z),blockQuote:i(V),characterEscape:x,characterReference:x,codeFenced:i(W),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(W,o),codeText:i(Y,o),codeTextData:x,data:x,codeFlowValue:x,definition:i(K),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(X),hardBreakEscape:i(Q),hardBreakTrailing:i(Q),htmlFlow:i(J,o),htmlFlowData:x,htmlText:i(J,o),htmlTextData:x,image:i(ee),label:o,link:i(te),listItem:i(re),listItemValue:p,listOrdered:i(ne,d),listUnordered:i(ne),paragraph:i(ae),reference:B,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(Z),strong:i(ie),thematicBreak:i(se)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:H,autolinkProtocol:q,blockQuote:l(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:$,characterReference:G,codeFenced:l(h),codeFencedFence:m,codeFencedFenceInfo:f,codeFencedFenceMeta:g,codeFlowValue:T,codeIndented:l(b),codeText:l(R),codeTextData:T,data:T,definition:l(),definitionDestinationString:E,definitionLabelString:y,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(_),hardBreakTrailing:l(_),htmlFlow:l(I),htmlFlowData:T,htmlText:l(N),htmlTextData:T,image:l(D),label:L,labelText:P,lineEnding:O,link:l(C),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:U,resourceDestinationString:M,resourceTitleString:F,resource:j,setextHeading:l(k),setextHeadingLineSequence:A,setextHeadingText:w,strong:l(),thematicBreak:l()}};Or(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:s,exit:c,buffer:o,resume:u,data:n},l=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])l.push(d);else{d=a(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];kr.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},i),e[d][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||Ir).call(i,void 0,e[0])}for(r.position={start:Tr(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Tr(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function a(e,t,n){let r,a,i,o,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||l||i||(i=s),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=s;for(a=void 0;o--;){const t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;a&&(e[a][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",a=o}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!a||i<a)&&(r._spread=!0),r.end=Object.assign({},a?e[a][1].start:t[1].end),e.splice(a||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const a={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=a,e.splice(s,0,["enter",a,t[2]]),s++,n++,i=void 0,o=!0}}}return e[t][1]._spread=c,n}function i(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Tr(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+dt({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||Ir).call(this,e,r[0])}n.position.end=Tr(e.end)}function u(){return Pt(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function f(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function g(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function h(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function y(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Wt(this.sliceSerialize(e)).toLowerCase()}function v(){const e=this.resume();this.stack[this.stack.length-1].title=e}function E(){const e=this.resume();this.stack[this.stack.length-1].url=e}function S(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function A(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function k(){this.data.setextHeadingSlurpLineEnding=void 0}function x(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=oe(),n.position={start:Tr(e.start),end:void 0},t.push(n)),this.stack.push(n)}function T(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Tr(e.end)}function O(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=Tr(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(x.call(this,e),T.call(this,e))}function _(){this.data.atHardBreak=!0}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function N(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.resume();this.stack[this.stack.length-1].value=e}function C(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function D(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(wr,Ar)}(t),n.identifier=Wt(t).toLowerCase()}function L(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function M(){const e=this.resume();this.stack[this.stack.length-1].url=e}function F(){const e=this.resume();this.stack[this.stack.length-1].title=e}function j(){this.data.inReference=void 0}function B(){this.data.referenceType="collapsed"}function U(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Wt(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function z(e){this.data.characterReferenceType=e.type}function $(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=Vt(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=Bt(t)}this.stack[this.stack.length-1].value+=r}function G(e){this.stack.pop().position.end=Tr(e.end)}function q(e){T.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function H(e){T.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function V(){return{type:"blockquote",children:[]}}function W(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function K(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function Z(){return{type:"heading",depth:0,children:[]}}function Q(){return{type:"break"}}function J(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ae(){return{type:"paragraph",children:[]}}function ie(){return{type:"strong",children:[]}}function oe(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}(n)(function(e){for(;!In(e););return e}(function(e){const t={constructs:Gt([vr,...(e||{}).extensions||[]]),content:n(un),defined:[],document:n(dn),flow:n(ir),lazy:{},string:n(sr),text:n(lr)};return t;function n(e){return function(n){return Er(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(a,i,o){const s=[];let l,c,u,d,p;for(a=n+("string"==typeof a?a.toString():new TextDecoder(i||void 0).decode(a)),u=0,n="",r&&(65279===a.charCodeAt(0)&&u++,r=void 0);u<a.length;){if(Sr.lastIndex=u,l=Sr.exec(a),d=l&&void 0!==l.index?l.index:a.length,p=a.charCodeAt(d),!l){n=a.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(a.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return o&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function Tr(e){return{line:e.line,column:e.column,offset:e.offset}}function Or(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Or(e,r):_r(e,r)}}function _r(e,t){let n;for(n in t)if(kr.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Ir(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+dt({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+dt({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+dt({start:t.start,end:t.end})+") is still open")}function Nr(e){const t=this;t.parser=function(n){return xr(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Rr(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),i=a[0];i&&"text"===i.type?i.value="["+i.value:a.unshift({type:"text",value:"["});const o=a[a.length-1];return o&&"text"===o.type?o.value+=r:a.push({type:"text",value:r}),a}function Cr(e){const t=e.spread;return null==t?e.children.length>1:t}function Dr(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const i=[];for(;r;)i.push(Pr(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(Pr(t.slice(a),a>0,!1)),i.join("")}function Pr(e,t,n){let r=0,a=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(a-1);for(;9===t||32===t;)a--,t=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}const Lr={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(r.className=["language-"+a[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=ln(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let o,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=i+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Rr(e,t);const a={src:ln(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(a.title=r.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:ln(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Rr(e,t);const a={href:ln(r.url||"")};null!==r.title&&void 0!==r.title&&(a.title=r.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:ln(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),a=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Cr(n[r])}return t}(n):Cr(t),i={},o=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(a||0!==s||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||a?o.push(e):o.push(...e.children)}const l=r[r.length-1];l&&(a||"element"!==l.type||"p"!==l.tagName)&&o.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let a=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++a<r.length;){const e=r[a];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),a.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=ct(t.children[1]),o=lt(t.children[t.children.length-1]);i&&o&&(r.position={start:i,end:o}),a.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,a=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,o=i?i.length:t.children.length;let s=-1;const l=[];for(;++s<o;){const n=t.children[s],r={},o=i?i[s]:void 0;o&&(r.align=o);let c={type:"element",tagName:a,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:Dr(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Mr,yaml:Mr,definition:Mr,footnoteDefinition:Mr};function Mr(){}const Fr="object"==typeof self?self:globalThis,jr=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=a=>{if(e.has(a))return e.get(a);const[i,o]=t[a];switch(i){case 0:case-1:return n(o,a);case 1:{const e=n([],a);for(const t of o)e.push(r(t));return e}case 2:{const e=n({},a);for(const[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),a);case 4:{const{source:e,flags:t}=o;return n(new RegExp(e,t),a)}case 5:{const e=n(new Map,a);for(const[t,n]of o)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,a);for(const t of o)e.add(r(t));return e}case 7:{const{name:e,message:t}=o;return n(new Fr[e](t),a)}case 8:return n(BigInt(o),a);case"BigInt":return n(Object(BigInt(o)),a);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new Fr[i](o),a)};return r})(new Map,e)(0),Br="",{toString:Ur}={},{keys:zr}=Object,$r=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Ur.call(e).slice(8,-1);switch(n){case"Array":return[1,Br];case"Object":return[2,Br];case"Date":return[3,Br];case"RegExp":return[4,Br];case"Map":return[5,Br];case"Set":return[6,Br];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Gr=([e,t])=>0===e&&("function"===t||"symbol"===t),qr=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const a=(e,t)=>{const a=r.push(e)-1;return n.set(t,a),a},i=r=>{if(n.has(r))return n.get(r);let[o,s]=$r(r);switch(o){case 0:{let t=r;switch(s){case"bigint":o=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return a([-1],r)}return a([o,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),a([s,[...e]],r)}const e=[],t=a([o,e],r);for(const t of r)e.push(i(t));return t}case 2:{if(s)switch(s){case"BigInt":return a([s,r.toString()],r);case"Boolean":case"Number":case"String":return a([s,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],l=a([o,n],r);for(const t of zr(r))!e&&Gr($r(r[t]))||n.push([i(t),i(r[t])]);return l}case 3:return a([o,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return a([o,{source:e,flags:t}],r)}case 5:{const t=[],n=a([o,t],r);for(const[n,a]of r)(e||!Gr($r(n))&&!Gr($r(a)))&&t.push([i(n),i(a)]);return n}case 6:{const t=[],n=a([o,t],r);for(const n of r)!e&&Gr($r(n))||t.push(i(n));return n}}const{message:l}=r;return a([o,{name:s,message:l}],r)};return i})(!(t||n),!!t,new Map,r)(e),r};var Hr="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?jr(qr(e,t)):structuredClone(e):(e,t)=>jr(qr(e,t));function Vr(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Wr(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Yr={}.hasOwnProperty,Kr={};function Xr(e,t){e.position&&(t.position=function(e){const t=ct(e),n=lt(e);if(t&&n)return{start:t,end:n}}(e))}function Zr(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,a=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&a&&Object.assign(n.properties,Hr(a)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function Qr(e,t){const n=t.data||{},r=!("value"in t)||Yr.call(n,"hProperties")||Yr.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function Jr(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function ea(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function ta(e,t){const n=function(e,t){const n=t||Kr,r=new Map,a=new Map,i=new Map,o={...Lr,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const a=s.one(n[r],e);if(a){if(r&&"break"===n[r-1].type&&(Array.isArray(a)||"text"!==a.type||(a.value=ea(a.value)),!Array.isArray(a)&&"element"===a.type)){const e=a.children[0];e&&"text"===e.type&&(e.value=ea(e.value))}Array.isArray(a)?t.push(...a):t.push(a)}}}return t},applyData:Zr,definitionById:r,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:o,one:function(e,t){const n=e.type,r=s.handlers[n];if(Yr.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=Hr(n);return r.children=s.all(e),r}return Hr(e)}return(s.options.unknownHandler||Qr)(s,e,t)},options:n,patch:Xr,wrap:Jr};return y(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:a,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),s}(e,t),r=n.one(e,void 0),a=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Vr,r=e.options.footnoteBackLabel||Wr,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const a=e.footnoteById.get(e.footnoteOrder[l]);if(!a)continue;const i=e.all(a),o=String(a.identifier).toUpperCase(),c=ln(o.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(o);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const f=i[i.length-1];if(f&&"element"===f.type&&"p"===f.tagName){const e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...d)}else i.push(...d);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(a,g),s.push(g)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Hr(o),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:"\n"},a),i}function na(e,t){return e&&"run"in e?async function(n,r){const a=ta(n,{file:r,...t});await e.run(a,r)}:function(n,r){return ta(n,{file:r,...e||t})}}function ra(e){if(e)throw e}var aa=Object.prototype.hasOwnProperty,ia=Object.prototype.toString,oa=Object.defineProperty,sa=Object.getOwnPropertyDescriptor,la=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===ia.call(e)},ca=function(e){if(!e||"[object Object]"!==ia.call(e))return!1;var t,n=aa.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&aa.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||aa.call(e,t)},ua=function(e,t){oa&&"__proto__"===t.name?oa(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},da=function(e,t){if("__proto__"===t){if(!aa.call(e,t))return;if(sa)return sa(e,t).value}return e[t]},pa=function e(){var t,n,r,a,i,o,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=da(s,n),s!==(a=da(t,n))&&(u&&a&&(ca(a)||(i=la(a)))?(i?(i=!1,o=r&&la(r)?r:[]):o=r&&ca(r)?r:{},ua(s,{name:n,newValue:e(u,o,a)})):void 0!==a&&ua(s,{name:n,newValue:a}));return s};function fa(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function ga(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function a(i,...o){const s=e[++n];let l=-1;if(i)r(i);else{for(;++l<t.length;)null!==o[l]&&void 0!==o[l]||(o[l]=t[l]);t=o,s?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let o;r&&t.push(a);try{o=e.apply(this,t)}catch(e){if(r&&n)throw e;return a(e)}r||(o&&o.then&&"function"==typeof o.then?o.then(i,a):o instanceof Error?a(o):i(o))}function a(e,...r){n||(n=!0,t(e,...r))}function i(e){a(null,e)}}(s,a)(...o):r(null,...o)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const ma={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');ha(e);let n,r=0,a=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(a=i):(s=-1,a=o));r===a?a=o:a<0&&(a=e.length);return e.slice(r,a)},dirname:function(e){if(ha(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){ha(e);let t,n=e.length,r=-1,a=0,i=-1,o=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==o&&(o=1):i>-1&&(o=-1);else if(t){a=n+1;break}}if(i<0||r<0||0===o||1===o&&i===r-1&&i===a+1)return"";return e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)ha(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){ha(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,a="",i=0,o=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(o===l-1||1===s);else if(o!==l-1&&2===s){if(a.length<2||2!==i||46!==a.codePointAt(a.length-1)||46!==a.codePointAt(a.length-2))if(a.length>2){if(r=a.lastIndexOf("/"),r!==a.length-1){r<0?(a="",i=0):(a=a.slice(0,r),i=a.length-1-a.lastIndexOf("/")),o=l,s=0;continue}}else if(a.length>0){a="",i=0,o=l,s=0;continue}t&&(a=a.length>0?a+"/..":"..",i=2)}else a.length>0?a+="/"+e.slice(o+1,l):a=e.slice(o+1,l),i=l-o-1;o=l,s=0}else 46===n&&s>-1?s++:s=-1}return a}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function ha(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ba={cwd:function(){return"/"}};function ya(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function va(e){if("string"==typeof e)e=new URL(e);else if(!ya(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const Ea=["history","path","basename","stem","extname","dirname"];class Sa{constructor(e){let t;t=e?ya(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":ba.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<Ea.length;){const e=Ea[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)Ea.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?ma.basename(this.path):void 0}set basename(e){Aa(e,"basename"),wa(e,"basename"),this.path=ma.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?ma.dirname(this.path):void 0}set dirname(e){ka(this.basename,"dirname"),this.path=ma.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?ma.extname(this.path):void 0}set extname(e){if(wa(e,"extname"),ka(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ma.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){ya(e)&&(e=va(e)),Aa(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?ma.basename(this.path,this.extname):void 0}set stem(e){Aa(e,"stem"),wa(e,"stem"),this.path=ma.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new mt(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function wa(e,t){if(e&&e.includes(ma.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ma.sep+"`")}function Aa(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ka(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const xa=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Ta={}.hasOwnProperty;class Oa extends xa{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=ga()}copy(){const e=new Oa;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(pa(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(Ra("data",this.frozen),this.namespace[e]=t,this):Ta.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Ra("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Pa(e),n=this.parser||this.Parser;return Ia("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Ia("process",this.parser||this.Parser),Na("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,a){const i=Pa(e),o=n.parse(i);function s(e,n){e||!n?a(e):r?r(n):t(void 0,n)}n.run(o,i,function(e,t,r){if(e||!t||!r)return s(e);const a=t,i=n.stringify(a,r);var o;"string"==typeof(o=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(o)?r.value=i:r.result=i,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),Ia("processSync",this.parser||this.Parser),Na("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,ra(e),t=r}),Da("processSync","process",n),t}run(e,t,n){Ca(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?a(void 0,n):new Promise(a);function a(a,i){const o=Pa(t);r.run(e,o,function(t,r,o){const s=r||e;t?i(t):a?a(s):n(void 0,s,o)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){ra(e),n=t,r=!0}),Da("runSync","run",r),n}stringify(e,t){this.freeze();const n=Pa(t),r=this.compiler||this.Compiler;return Na("stringify",r),Ca(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(Ra("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?o(e):i(e)}return this;function a(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=pa(!0,r.settings,e.settings))}function o(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){a(e[t])}}}function s(e,t){let r=-1,a=-1;for(;++r<n.length;)if(n[r][0]===e){a=r;break}if(-1===a)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const o=n[a][1];fa(o)&&fa(r)&&(r=pa(!0,o,r)),n[a]=[e,r,...i]}}}}const _a=(new Oa).freeze();function Ia(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Na(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ra(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ca(e){if(!fa(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Da(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Pa(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new Sa(e)}const La=[],Ma={allowDangerousHtml:!0},Fa=/^(https?|ircs?|mailto|xmpp)$/i,ja=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ba(e){const t=function(e){const t=e.rehypePlugins||La,n=e.remarkPlugins||La,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ma}:Ma,a=_a().use(Nr).use(n).use(na,r).use(t);return a}(e),n=function(e){const t=e.children||"",n=new Sa;"string"==typeof t&&(n.value=t);return n}(e);return function(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,i=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||Ua;for(const e of ja)Object.hasOwn(t,e.from)&&K((e.from,e.to&&e.to,e.id));t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:"root"===e.type?e.children:[e]});return y(e,c),wt(e,{Fragment:B,components:a,ignoreInvalidStyle:!0,jsx:j,jsxs:F,passKeys:!0,passNode:!0});function c(e,t,a){if("raw"===e.type&&a&&"number"==typeof t)return o?a.children.splice(t,1):a.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in Ct)if(Object.hasOwn(Ct,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Ct[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=l(String(n||""),t,e))}}if("element"===e.type){let o=n?!n.includes(e.tagName):!!i&&i.includes(e.tagName);if(!o&&r&&"number"==typeof t&&(o=!r(e,t,a)),o&&a&&"number"==typeof t)return s&&e.children?a.children.splice(t,1,...e.children):a.children.splice(t,1),t}}}(t.runSync(t.parse(n),n),e)}function Ua(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return-1===t||-1!==a&&t>a||-1!==n&&t>n||-1!==r&&t>r||Fa.test(e.slice(0,t))?e:""}function za(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;-1!==a;)r++,a=n.indexOf(t,a+t.length);return r}function $a(e,t,n){const r=v((n||{}).ignore||[]),a=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([Ga(e[0]),qa(e[1])])}return t}(t);let i=-1;for(;++i<a.length;)E(e,"text",o);function o(e,t){let n,o=-1;for(;++o<t.length;){const e=t[o],a=n?n.children:void 0;if(r(e,a?a.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=a[i][0],o=a[i][1];let s=0;const l=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,a={index:d.index,input:d.input,stack:[...t,e]};let i=o(...d,a);if("string"==typeof i&&(i=i.length>0?{type:"text",value:i}:void 0),!1===i?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(i)?u.push(...i):i&&u.push(i),s=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e];return l+u.length}(e,t)}}function Ga(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function qa(e){return"function"==typeof e?e:function(){return e}}const Ha="phrasing",Va=["autolink","link","image","label"];function Wa(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ya(e){this.config.enter.autolinkProtocol.call(this,e)}function Ka(e){this.config.exit.autolinkProtocol.call(this,e)}function Xa(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Za(e){this.config.exit.autolinkEmail.call(this,e)}function Qa(e){this.exit(e)}function Ja(e){$a(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ei],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,ti]],{ignore:["link","linkReference"]})}function ei(e,t,n,r,a){let i="";if(!ni(a))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const o=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=za(e,"(");let i=za(e,")");for(;-1!==r&&a>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:i+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function ti(e,t,n,r){return!(!ni(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function ni(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||on(n)||an(n))&&(!t||47!==n)}function ri(){this.buffer()}function ai(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ii(){this.buffer()}function oi(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function si(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Wt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function li(e){this.exit(e)}function ci(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Wt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ui(e){this.exit(e)}function di(e,t,n,r){const a=n.createTracker(r);let i=a.move("[^");const o=n.enter("footnoteReference"),s=n.enter("reference");return i+=a.move(n.safe(n.associationId(e),{after:"]",before:i})),s(),o(),i+=a.move("]"),i}function pi(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,a){const i=r.createTracker(a);let o=i.move("[^");const s=r.enter("footnoteDefinition"),l=r.enter("label");o+=i.move(r.safe(r.associationId(e),{before:o,after:"]"})),l(),o+=i.move("]:"),e.children&&e.children.length>0&&(i.shift(4),o+=i.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,i.current()),t?gi:fi)));return s(),o},footnoteReference:di},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function fi(e,t,n){return 0===t?e:gi(e,t,n)}function gi(e,t,n){return(n?"":" ")+e}di.peek=function(){return"["};const mi=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function hi(e){this.enter({type:"delete",children:[]},e)}function bi(e){this.exit(e)}function yi(e,t,n,r){const a=n.createTracker(r),i=n.enter("strikethrough");let o=a.move("~~");return o+=n.containerPhrasing(e,{...a.current(),before:o,after:"~"}),o+=a.move("~~"),i(),o}function vi(e){return e.length}function Ei(e){return null==e?"":String(e)}function Si(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function wi(e,t,n){return">"+(n?"":" ")+e}function Ai(e,t){return ki(e,t.inConstruct,!0)&&!ki(e,t.notInConstruct,!1)}function ki(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function xi(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if("\n"===n.unsafe[a].character&&Ai(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function Ti(e,t,n){return(n?"":" ")+e}function Oi(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function _i(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ii(e,t,n){const r=fn(e),a=fn(t);return void 0===r?void 0===a?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Ni(e,t,n,r){const a=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),i=n.enter("emphasis"),o=n.createTracker(r),s=o.move(a);let l=o.move(n.containerPhrasing(e,{after:a,before:s,...o.current()}));const c=l.charCodeAt(0),u=Ii(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=_i(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=Ii(r.after.charCodeAt(0),d,a);p.inside&&(l=l.slice(0,-1)+_i(d));const f=o.move(a);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+f}function Ri(e){return e.value||""}function Ci(e,t,n,r){const a=Oi(n),i='"'===a?"Quote":"Apostrophe",o=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),c+=l.move(")"),o(),c}function Di(e,t,n,r){const a=e.referenceType,i=n.enter("imageReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=u,i(),"full"!==a&&c&&c===d?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function Pi(e,t,n){let r=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);let a;if(e.atBreak)for(;a=t.exec(r);){let e=a.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(a.index+1)}}return a+r+a}function Li(e,t){const n=Pt(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function Mi(e,t,n,r){const a=Oi(n),i='"'===a?"Quote":"Apostrophe",o=n.createTracker(r);let s,l;if(Li(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=o.move("<");return r+=o.move(n.containerPhrasing(e,{before:r,after:">",...o.current()})),r+=o.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let c=o.move("[");return c+=o.move(n.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(l=n.enter("destinationRaw"),c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=o.move(" "+a),c+=o.move(n.safe(e.title,{before:c,after:a,...o.current()})),c+=o.move(a),l()),c+=o.move(")"),s(),c}function Fi(e,t,n,r){const a=e.referenceType,i=n.enter("linkReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=u,i(),"full"!==a&&c&&c===d?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function ji(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Bi(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}yi.peek=function(){return"~"},Ni.peek=function(e,t,n){return n.options.emphasis||"*"},Ri.peek=function(){return"<"},Ci.peek=function(){return"!"},Di.peek=function(){return"!"},Pi.peek=function(){return"`"},Mi.peek=function(e,t,n){return Li(e,n)?"<":"["},Fi.peek=function(){return"["};const Ui=v(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function zi(e,t,n,r){const a=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),o=n.createTracker(r),s=o.move(a+a);let l=o.move(n.containerPhrasing(e,{after:a,before:s,...o.current()}));const c=l.charCodeAt(0),u=Ii(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=_i(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=Ii(r.after.charCodeAt(0),d,a);p.inside&&(l=l.slice(0,-1)+_i(d));const f=o.move(a+a);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+f}zi.peek=function(e,t,n){return n.options.strong||"*"};const $i={blockquote:function(e,t,n,r){const a=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const o=n.indentLines(n.containerFlow(e,i.current()),wi);return a(),o},break:xi,code:function(e,t,n,r){const a=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",o="`"===a?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,Ti);return e(),t}const s=n.createTracker(r),l=a.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),a=r,i=0,o=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===a?++i>o&&(o=i):i=1,a=r+t.length,r=n.indexOf(t,a);return o}(i,a)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${o}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),i&&(u+=s.move(i+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){const a=Oi(n),i='"'===a?"Quote":"Apostrophe",o=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),o(),c},emphasis:Ni,hardBreak:xi,heading:function(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(function(e,t){let n=!1;return y(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,S}),Boolean((!e.depth||e.depth<3)&&Pt(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),o=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),o+"\n"+(1===a?"=":"-").repeat(o.length-(Math.max(o.lastIndexOf("\r"),o.lastIndexOf("\n"))+1))}const o="#".repeat(a),s=n.enter("headingAtx"),l=n.enter("phrasing");i.move(o+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(c)&&(c=_i(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),l(),s(),c},html:Ri,image:Ci,imageReference:Di,inlineCode:Pi,link:Mi,linkReference:Fi,list:function(e,t,n,r){const a=n.enter("list"),i=n.bulletCurrent;let o=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):ji(n);const s=e.ordered?"."===o?")":".":function(e){const t=ji(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&o===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==o&&"-"!==o||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),Bi(n)===o&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(o=s),n.bulletCurrent=o;const c=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=i,a(),c},listItem:function(e,t,n,r){const a=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||ji(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let o=i.length+1;("tab"===a||"mixed"===a&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));const s=n.createTracker(r);s.move(i+" ".repeat(o-i.length)),s.shift(o);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){if(t)return(n?"":" ".repeat(o))+e;return(n?i:i+" ".repeat(o-i.length))+e});return l(),c},paragraph:function(e,t,n,r){const a=n.enter("paragraph"),i=n.enter("phrasing"),o=n.containerPhrasing(e,r);return i(),a(),o},root:function(e,t,n,r){return(e.children.some(function(e){return Ui(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:zi,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(Bi(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function Gi(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function qi(e){this.exit(e),this.data.inTable=void 0}function Hi(e){this.enter({type:"tableRow",children:[]},e)}function Vi(e){this.exit(e)}function Wi(e){this.enter({type:"tableCell",children:[]},e)}function Yi(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Ki));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Ki(e,t){return"|"===t?t:e}function Xi(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=$i.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let a=-1;const i=[],o=t.enter("table");for(;++a<r.length;)i[a]=l(r[a],t,n);return o(),i}(e,n,r),e.align)},tableCell:o,tableRow:function(e,t,n,r){const a=l(e,n,r),i=s([a]);return i.slice(0,i.indexOf("\n"))}}};function o(e,t,n,r){const a=n.enter("tableCell"),o=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:i,after:i});return o(),a(),s}function s(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||vi,i=[],o=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let i=-1;for(e[u].length>c&&(c=e[u].length);++i<e[u].length;){const o=Ei(e[u][i]);if(!1!==n.alignDelimiters){const e=a(o);r[i]=e,(void 0===l[i]||e>l[i])&&(l[i]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if("object"==typeof r&&"length"in r)for(;++d<c;)i[d]=Si(r[d]);else{const e=Si(r);for(;++d<c;)i[d]=e}d=-1;const p=[],f=[];for(;++d<c;){const e=i[d];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let a=!1===n.alignDelimiters?1:Math.max(1,l[d]-t.length-r.length);const o=t+"-".repeat(a)+r;!1!==n.alignDelimiters&&(a=t.length+a+r.length,a>l[d]&&(l[d]=a),f[d]=a),p[d]=o}o.splice(1,0,p),s.splice(1,0,f),u=-1;const g=[];for(;++u<o.length;){const e=o[u],t=s[u];d=-1;const r=[];for(;++d<c;){const a=e[d]||"";let o="",s="";if(!1!==n.alignDelimiters){const e=l[d]-(t[d]||0),n=i[d];114===n?o=" ".repeat(e):99===n?e%2?(o=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(o=" ".repeat(e/2),s=o):s=" ".repeat(e)}!1===n.delimiterStart||d||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===a||!1===n.delimiterStart&&!d||r.push(" "),!1!==n.alignDelimiters&&r.push(o),r.push(a),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&d===c-1||r.push("|")}g.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return g.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:a})}function l(e,t,n){const r=e.children;let a=-1;const i=[],s=t.enter("tableRow");for(;++a<r.length;)i[a]=o(r[a],0,t,n);return s(),i}}function Zi(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function Qi(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let a,i=-1;for(;++i<r.length;){const e=r[i];if("paragraph"===e.type){a=e;break}}a===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Ji(e,t,n,r){const a=e.children[0],i="boolean"==typeof e.checked&&a&&"paragraph"===a.type,o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);i&&s.move(o);let l=$i.listItem(e,t,n,{...r,...s.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),l}const eo={tokenize:function(e,t,n){let r=0;return function t(i){if((87===i||119===i)&&r<3)return r++,e.consume(i),t;if(46===i&&3===r)return e.consume(i),a;return n(i)};function a(e){return null===e?n(e):t(e)}},partial:!0},to={tokenize:function(e,t,n){let r,a,i;return o;function o(t){return 46===t||95===t?e.check(ro,l,s)(t):null===t||nn(t)||on(t)||45!==t&&an(t)?l(t):(i=!0,e.consume(t),o)}function s(t){return 95===t?r=!0:(a=r,r=void 0),e.consume(t),o}function l(e){return a||r||!i?n(e):t(e)}},partial:!0},no={tokenize:function(e,t){let n=0,r=0;return a;function a(o){return 40===o?(n++,e.consume(o),a):41===o&&r<n?i(o):33===o||34===o||38===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||60===o||63===o||93===o||95===o||126===o?e.check(ro,t,i)(o):null===o||nn(o)||on(o)?t(o):(e.consume(o),a)}function i(t){return 41===t&&r++,e.consume(t),a}},partial:!0},ro={tokenize:function(e,t,n){return r;function r(o){return 33===o||34===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||63===o||95===o||126===o?(e.consume(o),r):38===o?(e.consume(o),i):93===o?(e.consume(o),a):60===o||null===o||nn(o)||on(o)?t(o):n(o)}function a(e){return null===e||40===e||91===e||nn(e)||on(e)?t(e):r(e)}function i(e){return Yt(e)?o(e):n(e)}function o(t){return 59===t?(e.consume(t),r):Yt(t)?(e.consume(t),o):n(t)}},partial:!0},ao={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return Kt(e)?n(e):t(e)}},partial:!0},io={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!uo.call(r,r.previous)||mo(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(eo,e.attempt(to,e.attempt(no,a),n),n)(t)};function a(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:uo},oo={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let a="",i=!1;return function(t){if((72===t||104===t)&&po.call(r,r.previous)&&!mo(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(t),e.consume(t),o;return n(t)};function o(t){if(Yt(t)&&a.length<5)return a+=String.fromCodePoint(t),e.consume(t),o;if(58===t){const n=a.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),i?l:(i=!0,s)):n(t)}function l(t){return null===t||Zt(t)||nn(t)||on(t)||an(t)?n(t):e.attempt(to,e.attempt(no,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:po},so={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let a,i;return function(t){if(!go(t)||!fo.call(r,r.previous)||mo(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(t)};function o(t){return go(t)?(e.consume(t),o):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(ao,c,l)(t):45===t||95===t||Kt(t)?(i=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),a=!0,s}function c(o){return i&&a&&Yt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:fo},lo={};let co=48;for(;co<123;)lo[co]=so,co++,58===co?co=65:91===co&&(co=97);function uo(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||nn(e)}function po(e){return!Yt(e)}function fo(e){return!(47===e||go(e))}function go(e){return 43===e||45===e||46===e||95===e||Kt(e)}function mo(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}lo[43]=so,lo[45]=so,lo[46]=so,lo[95]=so,lo[72]=[so,oo],lo[104]=[so,oo],lo[87]=[so,io],lo[119]=[so,io];const ho={tokenize:function(e,t,n){const r=this;return cn(e,function(e){const a=r.events[r.events.length-1];return a&&"gfmFootnoteDefinitionIndent"===a[1].type&&4===a[2].sliceSerialize(a[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function bo(e,t,n){const r=this;let a=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;a--;){const e=r.events[a][1];if("labelImage"===e.type){o=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!o||!o._balanced)return n(a);const s=Wt(r.sliceSerialize({start:o.end,end:r.now()}));if(94!==s.codePointAt(0)||!i.includes(s.slice(1)))return n(a);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)}}function yo(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function vo(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(o>999||93===s&&!i||null===s||91===s||nn(s))return n(s);if(93===s){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return a.includes(Wt(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return nn(s)||(i=!0),o++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,l):l(t)}}function Eo(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,o,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!o||null===t||91===t||nn(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=Wt(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return nn(t)||(o=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(i)||a.push(i),cn(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function So(e,t,n){return e.check(yn,t,e.attempt(ho,t,n))}function wo(e){e.exit("gfmFootnoteDefinition")}function Ao(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const a=this.previous,i=this.events;let o=0;return function(t){if(126===a&&"characterEscape"!==i[i.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(i){const l=fn(a);if(126===i)return o>1?r(i):(e.consume(i),o++,s);if(o<2&&!t)return r(i);const c=e.exit("strikethroughSequenceTemporary"),u=fn(i);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(i)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const a={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",a,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],s=t.parser.constructs.insideSpan.null;s&&Ut(o,o.length,0,gn(s,e.slice(r+1,n),t)),Ut(o,o.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",a,t]]),Ut(e,r-1,n-r+3,o),n=r+o.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class ko{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let a=0;if(0===n&&0===r.length)return;for(;a<e.map.length;){if(e.map[a][0]===t)return e.map[a][1]+=n,void e.map[a][2].push(...r);a+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function xo(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if("enter"===a[0])"tableContent"===a[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===a[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===a[1].type)break}else"enter"===a[0]&&"tableDelimiterRow"===a[1].type&&(n=!0);t+=1}return r}function To(e,t,n){const r=this;let a,i=0,o=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const a=t>-1?r.events[t][1].type:null,i="tableHead"===a||"tableRow"===a?E:s;if(i===E&&r.parser.lazy[r.now().line])return n(e);return i(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return a=!0,o+=1,l(e)}(t)}function l(t){return null===t?n(t):tn(t)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):rn(t)?cn(e,l,"whitespace")(t):(o+=1,a&&(a=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||nn(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),a=!1,rn(t)?cn(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?g(t):124===t?(a=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):v(t)}function f(t){return rn(t)?cn(e,g,"whitespace")(t):g(t)}function g(t){return 58===t?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(o+=1,m(t)):null===t||tn(t)?y(t):v(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),h(t)):v(t)}function h(t){return 45===t?(e.consume(t),h):58===t?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(t))}function b(t){return rn(t)?cn(e,y,"whitespace")(t):y(t)}function y(n){return 124===n?p(n):(null===n||tn(n))&&a&&i===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):v(n)}function v(e){return n(e)}function E(t){return e.enter("tableRow"),S(t)}function S(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),S):null===n||tn(n)?(e.exit("tableRow"),t(n)):rn(n)?cn(e,S,"whitespace")(n):(e.enter("data"),w(n))}function w(t){return null===t||124===t||nn(t)?(e.exit("data"),S(t)):(e.consume(t),92===t?A:w)}function A(t){return 92===t||124===t?(e.consume(t),w):w(t)}}function Oo(e,t){let n,r,a,i=-1,o=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new ko;for(;++i<e.length;){const f=e[i],g=f[1];"enter"===f[0]?"tableHead"===g.type?(u=!1,0!==d&&(Io(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(i,0,[["enter",n,t]])):"tableRow"===g.type||"tableDelimiterRow"===g.type?(o=!0,a=void 0,l=[0,0,0,0],c=[0,i+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(i,0,[["enter",r,t]])),s="tableDelimiterRow"===g.type?2:r?3:1):!s||"data"!==g.type&&"tableDelimiterMarker"!==g.type&&"tableDelimiterFiller"!==g.type?"tableCellDivider"===g.type&&(o?o=!1:(0!==l[1]&&(c[0]=c[1],a=_o(p,t,l,s,void 0,a)),l=c,c=[l[1],i,0,0])):(o=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],a=_o(p,t,l,s,void 0,a),l=[0,0,0,0]),c[2]=i)):"tableHead"===g.type?(u=!0,d=i):"tableRow"===g.type||"tableDelimiterRow"===g.type?(d=i,0!==l[1]?(c[0]=c[1],a=_o(p,t,l,s,i,a)):0!==c[1]&&(a=_o(p,t,c,s,i,a)),s=0):!s||"data"!==g.type&&"tableDelimiterMarker"!==g.type&&"tableDelimiterFiller"!==g.type||(c[3]=i)}for(0!==d&&Io(p,t,d,n,r),p.consume(t.events),i=-1;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=xo(t.events,i))}return e}function _o(e,t,n,r,a,i){const o=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},No(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const s=No(t.events,n[1]);if(i={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){const a=No(t.events,n[2]),i=No(t.events,n[3]),o={type:"tableContent",start:Object.assign({},a),end:Object.assign({},i)};if(e.add(n[2],0,[["enter",o,t]]),2!==r){const r=t.events[n[2]],a=t.events[n[3]];if(r[1].end=Object.assign({},a[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==a&&(i.end=Object.assign({},No(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function Io(e,t,n,r,a){const i=[],o=No(t.events,n);a&&(a.end=Object.assign({},o),i.push(["exit",a,t])),r.end=Object.assign({},o),i.push(["exit",r,t]),e.add(n+1,0,i)}function No(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const Ro={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),a};function a(t){return nn(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(t)}function o(r){return tn(r)?t(r):rn(r)?e.check({tokenize:Co},t,n)(r):n(r)}}};function Co(e,t,n){return cn(e,function(e){return null===e?n(e):t(e)},"whitespace")}const Do={};function Po(e){const t=e||Do,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return Gt([{text:lo},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Eo,continuation:{tokenize:So},exit:wo}},text:{91:{name:"gfmFootnoteCall",tokenize:vo},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:bo,resolveTo:yo}}},Ao(e),{flow:{null:{name:"table",tokenize:To,resolveAll:Oo}}},{text:{91:Ro}}])}(t)),a.push([{transforms:[Ja],enter:{literalAutolink:Wa,literalAutolinkEmail:Ya,literalAutolinkHttp:Ya,literalAutolinkWww:Ya},exit:{literalAutolink:Qa,literalAutolinkEmail:Za,literalAutolinkHttp:Ka,literalAutolinkWww:Xa}},{enter:{gfmFootnoteCallString:ri,gfmFootnoteCall:ai,gfmFootnoteDefinitionLabelString:ii,gfmFootnoteDefinition:oi},exit:{gfmFootnoteCallString:si,gfmFootnoteCall:li,gfmFootnoteDefinitionLabelString:ci,gfmFootnoteDefinition:ui}},{canContainEols:["delete"],enter:{strikethrough:hi},exit:{strikethrough:bi}},{enter:{table:Gi,tableData:Wi,tableHeader:Wi,tableRow:Hi},exit:{codeText:Yi,table:qi,tableData:Vi,tableHeader:Vi,tableRow:Vi}},{exit:{taskListCheckValueChecked:Zi,taskListCheckValueUnchecked:Zi,paragraph:Qi}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ha,notInConstruct:Va},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ha,notInConstruct:Va},{character:":",before:"[ps]",after:"\\/",inConstruct:Ha,notInConstruct:Va}]},pi(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:mi}],handlers:{delete:yi}},Xi(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ji}}]}}(t))}function Lo(){return{type:"break"}}function Mo(){return function(e){!function(e){$a(e,[/\r?\n|\r/g,Lo])}(e)}}function Fo(){return e=>{y(e,"listItem",e=>{y(e,"break",(e,t,n)=>{n&&void 0!==t&&(n.children[t]={type:"text",value:"\n"})})})}}function jo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Bo(e){return function(e){if(Array.isArray(e))return jo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return jo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jo(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Uo(e){return Uo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uo(e)}function zo(e){var t=function(e,t){if("object"!=Uo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Uo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Uo(t)?t:t+""}function $o(e,t,n){return(t=zo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Go(){return Go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Go.apply(null,arguments)}function qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ho(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qo(Object(n),!0).forEach(function(t){$o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Vo={};function Wo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return function(e){if(0===e.length||1===e.length)return e;var t,n,r=e.join(".");return Vo[r]||(Vo[r]=0===(n=(t=e).length)||1===n?t:2===n?[t[0],t[1],"".concat(t[0],".").concat(t[1]),"".concat(t[1],".").concat(t[0])]:3===n?[t[0],t[1],t[2],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0])]:n>=4?[t[0],t[1],t[2],t[3],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[2],".").concat(t[3]),"".concat(t[3],".").concat(t[0]),"".concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[0]),"".concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[3],".").concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[2],".").concat(t[1],".").concat(t[0])]:void 0),Vo[r]}(e.filter(function(e){return"token"!==e})).reduce(function(e,t){return Ho(Ho({},e),n[t])},t)}function Yo(e){return e.join(" ")}function Ko(e){var n=e.node,r=e.stylesheet,a=e.style,i=void 0===a?{}:a,o=e.useInlineStyles,s=e.key,l=n.properties,c=n.type,u=n.tagName,d=n.value;if("text"===c)return d;if(u){var p,f=function(e,t){var n=0;return function(r){return n+=1,r.map(function(r,a){return Ko({node:r,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(a)})})}}(r,o);if(o){var g=Object.keys(r).reduce(function(e,t){return t.split(".").forEach(function(t){e.includes(t)||e.push(t)}),e},[]),m=l.className&&l.className.includes("token")?["token"]:[],h=l.className&&m.concat(l.className.filter(function(e){return!g.includes(e)}));p=Ho(Ho({},l),{},{className:Yo(h)||void 0,style:Wo(l.className,Object.assign({},l.style,i),r)})}else p=Ho(Ho({},l),{},{className:Yo(l.className)});var b=f(n.children);return t.createElement(u,Go({key:s},p),b)}}var Xo=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zo(Object(n),!0).forEach(function(t){$o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Jo=/\n/g;function es(e){var n=e.codeString,r=e.codeStyle,a=e.containerStyle,i=void 0===a?{float:"left",paddingRight:"10px"}:a,o=e.numberStyle,s=void 0===o?{}:o,l=e.startingLineNumber;return t.createElement("code",{style:Object.assign({},r,i)},function(e){var n=e.lines,r=e.startingLineNumber,a=e.style;return n.map(function(e,n){var i=n+r;return t.createElement("span",{key:"line-".concat(n),className:"react-syntax-highlighter-line-number",style:"function"==typeof a?a(i):a},"".concat(i,"\n"))})}({lines:n.replace(/\n$/,"").split("\n"),style:s,startingLineNumber:l}))}function ts(e){return"".concat(e.toString().length,".25em")}function ns(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function rs(e,t,n){var r={display:"inline-block",minWidth:ts(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},a="function"==typeof e?e(t):e;return Qo(Qo({},r),a)}function as(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,a=e.largestLineNumber,i=e.showInlineLineNumbers,o=e.lineProps,s=void 0===o?{}:o,l=e.className,c=void 0===l?[]:l,u=e.showLineNumbers,d=e.wrapLongLines,p=e.wrapLines,f=void 0!==p&&p?Qo({},"function"==typeof s?s(n):s):{};if(f.className=f.className?[].concat(Bo(f.className.trim().split(/\s+/)),Bo(c)):c,n&&i){var g=rs(r,n,a);t.unshift(ns(n,g))}return d&u&&(f.style=Qo({display:"flex"},f.style)),{type:"element",tagName:"span",properties:f,children:t}}function is(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=0;r<e.length;r++){var a=e[r];if("text"===a.type)n.push(as({children:[a],className:Bo(new Set(t))}));else if(a.children){var i=t.concat(a.properties.className);is(a.children,i).forEach(function(e){return n.push(e)})}}return n}function os(e,t,n,r,a,i,o,s,l){var c,u=is(e.value),d=[],p=-1,f=0;function g(e,i){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t||c.length>0?function(e,i){return as({children:e,lineNumber:i,lineNumberStyle:s,largestLineNumber:o,showInlineLineNumbers:a,lineProps:n,className:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],showLineNumbers:r,wrapLongLines:l,wrapLines:t})}(e,i,c):function(e,t){if(r&&t&&a){var n=rs(s,t,o);e.unshift(ns(t,n))}return e}(e,i)}for(var m=function(){var e=u[f],t=e.children[0].value;if(t.match(Jo)){var n=t.split("\n");n.forEach(function(t,a){var o=r&&d.length+i,s={type:"text",value:"".concat(t,"\n")};if(0===a){var l=g(u.slice(p+1,f).concat(as({children:[s],className:e.properties.className})),o);d.push(l)}else if(a===n.length-1){var c=u[f+1]&&u[f+1].children&&u[f+1].children[0],m={type:"text",value:"".concat(t)};if(c){var h=as({children:[m],className:e.properties.className});u.splice(f+1,0,h)}else{var b=g([m],o,e.properties.className);d.push(b)}}else{var y=g([s],o,e.properties.className);d.push(y)}}),p=f}f++};f<u.length;)m();if(p!==u.length-1){var h=u.slice(p+1,u.length);if(h&&h.length){var b=g(h,r&&d.length+i);d.push(b)}}return t?d:(c=[]).concat.apply(c,d)}function ss(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(e,t){return Ko({node:e,stylesheet:n,useInlineStyles:r,key:"code-segment-".concat(t)})})}function ls(e){return e&&void 0!==e.highlightAuto}var cs=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)us.call(n,r)&&(e[r]=n[r])}return e},us=Object.prototype.hasOwnProperty;var ds=fs,ps=fs.prototype;function fs(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}ps.space=null,ps.normal={},ps.property={};var gs=cs,ms=ds,hs=function(e){var t,n,r=e.length,a=[],i=[],o=-1;for(;++o<r;)t=e[o],a.push(t.property),i.push(t.normal),n=t.space;return new ms(gs.apply(null,a),gs.apply(null,i),n)};var bs=function(e){return e.toLowerCase()};var ys=Es,vs=Es.prototype;function Es(e,t){this.property=e,this.attribute=t}vs.space=null,vs.attribute=null,vs.property=null,vs.boolean=!1,vs.booleanish=!1,vs.overloadedBoolean=!1,vs.number=!1,vs.commaSeparated=!1,vs.spaceSeparated=!1,vs.commaOrSpaceSeparated=!1,vs.mustUseProperty=!1,vs.defined=!1;var Ss={},ws=0;function As(){return Math.pow(2,++ws)}Ss.boolean=As(),Ss.booleanish=As(),Ss.overloadedBoolean=As(),Ss.number=As(),Ss.spaceSeparated=As(),Ss.commaSeparated=As(),Ss.commaOrSpaceSeparated=As();var ks=ys,xs=Ss,Ts=Is;Is.prototype=new ks,Is.prototype.defined=!0;var Os=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],_s=Os.length;function Is(e,t,n,r){var a,i=-1;for(Ns(this,"space",r),ks.call(this,e,t);++i<_s;)Ns(this,a=Os[i],(n&xs[a])===xs[a])}function Ns(e,t,n){n&&(e[t]=n)}var Rs=bs,Cs=ds,Ds=Ts,Ps=function(e){var t,n,r=e.space,a=e.mustUseProperty||[],i=e.attributes||{},o=e.properties,s=e.transform,l={},c={};for(t in o)n=new Ds(t,s(i,t),o[t],r),-1!==a.indexOf(t)&&(n.mustUseProperty=!0),l[t]=n,c[Rs(t)]=t,c[Rs(n.attribute)]=t;return new Cs(l,c,r)};var Ls=Ps({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});var Ms=Ps({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});var Fs=function(e,t){return t in e?e[t]:t};var js=Fs,Bs=function(e,t){return js(e,t.toLowerCase())};var Us=Ps({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Bs,properties:{xmlns:null,xmlnsXLink:null}}),zs=Ss,$s=Ps,Gs=zs.booleanish,qs=zs.number,Hs=zs.spaceSeparated,Vs=$s({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Gs,ariaAutoComplete:null,ariaBusy:Gs,ariaChecked:Gs,ariaColCount:qs,ariaColIndex:qs,ariaColSpan:qs,ariaControls:Hs,ariaCurrent:null,ariaDescribedBy:Hs,ariaDetails:null,ariaDisabled:Gs,ariaDropEffect:Hs,ariaErrorMessage:null,ariaExpanded:Gs,ariaFlowTo:Hs,ariaGrabbed:Gs,ariaHasPopup:null,ariaHidden:Gs,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Hs,ariaLevel:qs,ariaLive:null,ariaModal:Gs,ariaMultiLine:Gs,ariaMultiSelectable:Gs,ariaOrientation:null,ariaOwns:Hs,ariaPlaceholder:null,ariaPosInSet:qs,ariaPressed:Gs,ariaReadOnly:Gs,ariaRelevant:null,ariaRequired:Gs,ariaRoleDescription:Hs,ariaRowCount:qs,ariaRowIndex:qs,ariaRowSpan:qs,ariaSelected:Gs,ariaSetSize:qs,ariaSort:null,ariaValueMax:qs,ariaValueMin:qs,ariaValueNow:qs,ariaValueText:null,role:null}});var Ws=Ss,Ys=Ps,Ks=Bs,Xs=Ws.boolean,Zs=Ws.overloadedBoolean,Qs=Ws.booleanish,Js=Ws.number,el=Ws.spaceSeparated,tl=Ws.commaSeparated,nl=hs([Ms,Ls,Us,Vs,Ys({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ks,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:tl,acceptCharset:el,accessKey:el,action:null,allow:null,allowFullScreen:Xs,allowPaymentRequest:Xs,allowUserMedia:Xs,alt:null,as:null,async:Xs,autoCapitalize:null,autoComplete:el,autoFocus:Xs,autoPlay:Xs,capture:Xs,charSet:null,checked:Xs,cite:null,className:el,cols:Js,colSpan:null,content:null,contentEditable:Qs,controls:Xs,controlsList:el,coords:Js|tl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Xs,defer:Xs,dir:null,dirName:null,disabled:Xs,download:Zs,draggable:Qs,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Xs,formTarget:null,headers:el,height:Js,hidden:Xs,high:Js,href:null,hrefLang:null,htmlFor:el,httpEquiv:el,id:null,imageSizes:null,imageSrcSet:tl,inputMode:null,integrity:null,is:null,isMap:Xs,itemId:null,itemProp:el,itemRef:el,itemScope:Xs,itemType:el,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Xs,low:Js,manifest:null,max:null,maxLength:Js,media:null,method:null,min:null,minLength:Js,multiple:Xs,muted:Xs,name:null,nonce:null,noModule:Xs,noValidate:Xs,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu: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,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:Xs,optimum:Js,pattern:null,ping:el,placeholder:null,playsInline:Xs,poster:null,preload:null,readOnly:Xs,referrerPolicy:null,rel:el,required:Xs,reversed:Xs,rows:Js,rowSpan:Js,sandbox:el,scope:null,scoped:Xs,seamless:Xs,selected:Xs,shape:null,size:Js,sizes:null,slot:null,span:Js,spellCheck:Qs,src:null,srcDoc:null,srcLang:null,srcSet:tl,start:Js,step:null,style:null,tabIndex:Js,target:null,title:null,translate:null,type:null,typeMustMatch:Xs,useMap:null,value:Qs,width:Js,wrap:null,align:null,aLink:null,archive:el,axis:null,background:null,bgColor:null,border:Js,borderColor:null,bottomMargin:Js,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Xs,declare:Xs,event:null,face:null,frame:null,frameBorder:null,hSpace:Js,leftMargin:Js,link:null,longDesc:null,lowSrc:null,marginHeight:Js,marginWidth:Js,noResize:Xs,noHref:Xs,noShade:Xs,noWrap:Xs,object:null,profile:null,prompt:null,rev:null,rightMargin:Js,rules:null,scheme:null,scrolling:Qs,standby:null,summary:null,text:null,topMargin:Js,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Js,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Xs,disableRemotePlayback:Xs,prefix:null,property:null,results:Js,security:null,unselectable:null}})]),rl=bs,al=Ts,il=ys,ol="data",sl=function(e,t){var n=rl(t),r=t,a=il;if(n in e.normal)return e.property[e.normal[n]];n.length>4&&n.slice(0,4)===ol&&ll.test(t)&&("-"===t.charAt(4)?r=function(e){var t=e.slice(5).replace(cl,pl);return ol+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);if(cl.test(t))return e;t=t.replace(ul,dl),"-"!==t.charAt(0)&&(t="-"+t);return ol+t}(t),a=al);return new a(r,t)},ll=/^data[-\w.:]+$/i,cl=/-[a-z]/g,ul=/[A-Z]/g;function dl(e){return"-"+e.toLowerCase()}function pl(e){return e.charAt(1).toUpperCase()}var fl=function(e,t){var n,r,a,i=e||"",o=t||"div",s={},l=0;for(;l<i.length;)gl.lastIndex=l,a=gl.exec(i),(n=i.slice(l,a?a.index:i.length))&&(r?"#"===r?s.id=n:s.className?s.className.push(n):s.className=[n]:o=n,l+=n.length),a&&(r=a[0],l++);return{type:"element",tagName:o,properties:s,children:[]}},gl=/[#.]/g;var ml={parse:function(e){var t=String(e||hl).trim();return t===hl?[]:t.split(yl)},stringify:function(e){return e.join(bl).trim()}},hl="",bl=" ",yl=/[ \t\n\r\f]+/g;var vl={parse:function(e){var t,n=[],r=String(e||wl),a=r.indexOf(El),i=0,o=!1;for(;!o;)-1===a&&(a=r.length,o=!0),!(t=r.slice(i,a).trim())&&o||n.push(t),i=a+1,a=r.indexOf(El,i);return n},stringify:function(e,t){var n=t||{},r=!1===n.padLeft?wl:Sl,a=n.padRight?Sl:wl;e[e.length-1]===wl&&(e=e.concat(wl));return e.join(a+El+r).trim()}},El=",",Sl=" ",wl="";var Al=sl,kl=bs,xl=fl,Tl=ml.parse,Ol=vl.parse,_l=function(e,t,n){var r=n?function(e){var t,n=e.length,r=-1,a={};for(;++r<n;)a[(t=e[r]).toLowerCase()]=t;return a}(n):null;return function(e,n){var i,o=xl(e,t),s=Array.prototype.slice.call(arguments,2),l=o.tagName.toLowerCase();o.tagName=r&&Il.call(r,l)?r[l]:l,n&&function(e,t){return"string"==typeof e||"length"in e||function(e,t){var n=t.type;if("input"===e||!n||"string"!=typeof n)return!1;if("object"==typeof t.children&&"length"in t.children)return!0;if(n=n.toLowerCase(),"button"===e)return"menu"!==n&&"submit"!==n&&"reset"!==n&&"button"!==n;return"value"in t}(t.tagName,e)}(n,o)&&(s.unshift(n),n=null);if(n)for(i in n)a(o.properties,i,n[i]);Nl(o.children,s),"template"===o.tagName&&(o.content={type:"root",children:o.children},o.children=[]);return o};function a(t,n,r){var a,i,o;null!=r&&r==r&&(i=(a=Al(e,n)).property,"string"==typeof(o=r)&&(a.spaceSeparated?o=Tl(o):a.commaSeparated?o=Ol(o):a.commaOrSpaceSeparated&&(o=Tl(Ol(o).join(" ")))),"style"===i&&"string"!=typeof r&&(o=function(e){var t,n=[];for(t in e)n.push([t,e[t]].join(": "));return n.join("; ")}(o)),"className"===i&&t.className&&(o=t.className.concat(o)),t[i]=function(e,t,n){var r,a,i;if("object"!=typeof n||!("length"in n))return Rl(e,t,n);a=n.length,r=-1,i=[];for(;++r<a;)i[r]=Rl(e,t,n[r]);return i}(a,i,o))}},Il={}.hasOwnProperty;function Nl(e,t){var n,r;if("string"!=typeof t&&"number"!=typeof t)if("object"==typeof t&&"length"in t)for(n=-1,r=t.length;++n<r;)Nl(e,t[n]);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}else e.push({type:"text",value:String(t)})}function Rl(e,t,n){var r=n;return e.number||e.positiveNumber?isNaN(r)||""===r||(r=Number(r)):(e.boolean||e.overloadedBoolean)&&("string"!=typeof r||""!==r&&kl(n)!==kl(t)||(r=!0)),r}var Cl=_l(nl,"div");Cl.displayName="html";var Dl=Cl,Pl=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57};var Ll=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57};var Ml=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90};var Fl=Ml,jl=Pl;var Bl={AEli:"Æ",AElig:"Æ",AM:"&",AMP:"&",Aacut:"Á",Aacute:"Á",Abreve:"Ă",Acir:"Â",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrav:"À",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Arin:"Å",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atild:"Ã",Atilde:"Ã",Aum:"Ä",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COP:"©",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedi:"Ç",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ET:"Ð",ETH:"Ð",Eacut:"É",Eacute:"É",Ecaron:"Ě",Ecir:"Ê",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrav:"È",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Eum:"Ë",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",G:">",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacut:"Í",Iacute:"Í",Icir:"Î",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrav:"Ì",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Ium:"Ï",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",L:"<",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntild:"Ñ",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacut:"Ó",Oacute:"Ó",Ocir:"Ô",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograv:"Ò",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslas:"Ø",Oslash:"Ø",Otild:"Õ",Otilde:"Õ",Otimes:"⨷",Oum:"Ö",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUO:'"',QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",RE:"®",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THOR:"Þ",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacut:"Ú",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucir:"Û",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrav:"Ù",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uum:"Ü",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacut:"Ý",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacut:"á",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acir:"â",acirc:"â",acut:"´",acute:"´",acy:"а",aeli:"æ",aelig:"æ",af:"",afr:"𝔞",agrav:"à",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",am:"&",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",arin:"å",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atild:"ã",atilde:"ã",aum:"ä",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvba:"¦",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedi:"ç",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedi:"¸",cedil:"¸",cemptyv:"⦲",cen:"¢",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",cop:"©",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curre:"¤",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",de:"°",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divid:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacut:"é",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"ê",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrav:"è",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",et:"ð",eth:"ð",eum:"ë",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac1:"¼",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac3:"¾",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",g:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacut:"í",iacute:"í",ic:"",icir:"î",icirc:"î",icy:"и",iecy:"е",iexc:"¡",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrav:"ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iques:"¿",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",ium:"ï",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laqu:"«",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",l:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",mac:"¯",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micr:"µ",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middo:"·",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbs:" ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",no:"¬",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntild:"ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacut:"ó",oacute:"ó",oast:"⊛",ocir:"ô",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograv:"ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"º",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslas:"ø",oslash:"ø",osol:"⊘",otild:"õ",otilde:"õ",otimes:"⊗",otimesas:"⨶",oum:"ö",ouml:"ö",ovbar:"⌽",par:"¶",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusm:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",poun:"£",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quo:'"',quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raqu:"»",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",re:"®",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sec:"§",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",sh:"",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szli:"ß",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thor:"þ",thorn:"þ",tilde:"˜",time:"×",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacut:"ú",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucir:"û",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrav:"ù",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",um:"¨",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uum:"ü",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacut:"ý",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",ye:"¥",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yum:"ÿ",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},Ul=function(e){return!!zl.call(Bl,e)&&Bl[e]},zl={}.hasOwnProperty;var $l={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:"ÿ"},Gl={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},ql=Pl,Hl=Ll,Vl=function(e){return Fl(e)||jl(e)},Wl=Ul,Yl=function(e,t){var n,r,a={};t||(t={});for(r in Ql)n=t[r],a[r]=null==n?Ql[r]:n;(a.position.indent||a.position.start)&&(a.indent=a.position.indent||[],a.position=a.position.start);return function(e,t){var n,r,a,i,o,s,l,c,u,d,p,f,g,m,h,b,y,v,E,S=t.additional,w=t.nonTerminated,A=t.text,k=t.reference,x=t.warning,T=t.textContext,O=t.referenceContext,_=t.warningContext,I=t.position,N=t.indent||[],R=e.length,C=0,D=-1,P=I.column||1,L=I.line||1,M="",F=[];"string"==typeof S&&(S=S.charCodeAt(0));b=j(),c=x?B:Zl,C--,R++;for(;++C<R;)if(o===ec&&(P=N[D]||1),(o=e.charCodeAt(C))===rc){if((l=e.charCodeAt(C+1))===Jl||l===ec||l===tc||l===nc||l===rc||l===ic||l!=l||S&&l===S){M+=Xl(o),P++;continue}for(f=g=C+1,E=g,l===sc?(E=++f,(l=e.charCodeAt(E))===lc||l===cc?(m=pc,E=++f):m=fc):m=dc,n="",p="",i="",h=mc[m],E--;++E<R&&h(l=e.charCodeAt(E));)i+=Xl(l),m===dc&&Kl.call($l,i)&&(n=i,p=$l[i]);(a=e.charCodeAt(E)===ac)&&(E++,(r=m===dc&&Wl(i))&&(n=i,p=r)),v=1+E-g,(a||w)&&(i?m===dc?(a&&!p?c(Ec,1):(n!==i&&(v=1+(E=f+n.length)-f,a=!1),a||(u=n?hc:yc,t.attribute?(l=e.charCodeAt(E))===oc?(c(u,v),p=null):Vl(l)?p=null:c(u,v):c(u,v))),s=p):(a||c(bc,v),kc(s=parseInt(i,gc[m]))?(c(wc,v),s=Xl(uc)):s in Gl?(c(Sc,v),s=Gl[s]):(d="",xc(s)&&c(Sc,v),s>65535&&(d+=Xl((s-=65536)>>>10|55296),s=56320|1023&s),s=d+Xl(s))):m!==dc&&c(vc,v)),s?(U(),b=j(),C=E-1,P+=E-g+1,F.push(s),(y=j()).offset++,k&&k.call(O,s,{start:b,end:y},e.slice(g-1,E)),b=y):(i=e.slice(g-1,E),M+=i,P+=i.length,C=E-1)}else 10===o&&(L++,D++,P=0),o==o?(M+=Xl(o),P++):U();return F.join("");function j(){return{line:L,column:P,offset:C+(I.offset||0)}}function B(e,t){var n=j();n.column+=t,n.offset+=t,x.call(_,Ac[e],n,e)}function U(){M&&(F.push(M),A&&A.call(T,M,{start:b,end:j()}),M="")}}(e,a)},Kl={}.hasOwnProperty,Xl=String.fromCharCode,Zl=Function.prototype,Ql={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},Jl=9,ec=10,tc=12,nc=32,rc=38,ac=59,ic=60,oc=61,sc=35,lc=88,cc=120,uc=65533,dc="named",pc="hexadecimal",fc="decimal",gc={};gc[pc]=16,gc[fc]=10;var mc={};mc[dc]=Vl,mc[fc]=ql,mc[pc]=Hl;var hc=1,bc=2,yc=3,vc=4,Ec=5,Sc=6,wc=7,Ac={};function kc(e){return e>=55296&&e<=57343||e>1114111}function xc(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||!(65535&~e)||65534==(65535&e)}Ac[hc]="Named character references must be terminated by a semicolon",Ac[bc]="Numeric character references must be terminated by a semicolon",Ac[yc]="Named character references cannot be empty",Ac[vc]="Numeric character references cannot be empty",Ac[Ec]="Named character references must be known",Ac[Sc]="Numeric character references cannot be disallowed",Ac[wc]="Numeric character references cannot be outside the permissible Unicode range";var Tc={exports:{}};!function(e){var t=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},a={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},a.util.type(t)){case"Object":if(i=a.util.objId(t),n[i])return n[i];for(var o in r={},n[i]=r,t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case"Array":return i=a.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(t,a){r[a]=e(t,n)}),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var a=e.classList;if(a.contains(t))return!0;if(a.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=a.util.clone(a.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||a.languages)[e],o={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(o[l]=n[l]);n.hasOwnProperty(s)||(o[s]=i[s])}var c=r[e];return r[e]=o,a.languages.DFS(a.languages,function(t,n){n===c&&t!=e&&(this[t]=o)}),o},DFS:function e(t,n,r,i){i=i||{};var o=a.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var l=t[s],c=a.util.type(l);"Object"!==c||i[o(l)]?"Array"!==c||i[o(l)]||(i[o(l)]=!0,e(l,n,s,i)):(i[o(l)]=!0,e(l,n,null,i))}}},plugins:{},highlightAll:function(e,t){a.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),a.hooks.run("before-all-elements-highlight",r);for(var i,o=0;i=r.elements[o++];)a.highlightElement(i,!0===t,r.callback)},highlightElement:function(t,n,r){var i=a.util.getLanguage(t),o=a.languages[i];a.util.setLanguage(t,i);var s=t.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&a.util.setLanguage(s,i);var l={element:t,language:i,grammar:o,code:t.textContent};function c(e){l.highlightedCode=e,a.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,a.hooks.run("after-highlight",l),a.hooks.run("complete",l),r&&r.call(l.element)}if(a.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return a.hooks.run("complete",l),void(r&&r.call(l.element));if(a.hooks.run("before-highlight",l),l.grammar)if(n&&e.Worker){var u=new Worker(a.filename);u.onmessage=function(e){c(e.data)},u.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(a.highlight(l.code,l.grammar,l.language));else c(a.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(a.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=a.tokenize(r.code,r.grammar),a.hooks.run("after-tokenize",r),i.stringify(a.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var a=new l;return c(a,a.head,e),s(e,a,t,a.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(a)},hooks:{all:{},add:function(e,t){var n=a.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=a.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function o(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var i=a[1].length;a.index+=i,a[0]=a[0].slice(i)}return a}function s(e,t,n,r,l,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var f=n[p];f=Array.isArray(f)?f:[f];for(var g=0;g<f.length;++g){if(d&&d.cause==p+","+g)return;var m=f[g],h=m.inside,b=!!m.lookbehind,y=!!m.greedy,v=m.alias;if(y&&!m.pattern.global){var E=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,E+"g")}for(var S=m.pattern||m,w=r.next,A=l;w!==t.tail&&!(d&&A>=d.reach);A+=w.value.length,w=w.next){var k=w.value;if(t.length>e.length)return;if(!(k instanceof i)){var x,T=1;if(y){if(!(x=o(S,A,e,b))||x.index>=e.length)break;var O=x.index,_=x.index+x[0].length,I=A;for(I+=w.value.length;O>=I;)I+=(w=w.next).value.length;if(A=I-=w.value.length,w.value instanceof i)continue;for(var N=w;N!==t.tail&&(I<_||"string"==typeof N.value);N=N.next)T++,I+=N.value.length;T--,k=e.slice(A,I),x.index-=A}else if(!(x=o(S,0,k,b)))continue;O=x.index;var R=x[0],C=k.slice(0,O),D=k.slice(O+R.length),P=A+k.length;d&&P>d.reach&&(d.reach=P);var L=w.prev;if(C&&(L=c(t,L,C),A+=C.length),u(t,L,T),w=c(t,L,new i(p,h?a.tokenize(R,h):R,v,R)),D&&c(t,w,D),T>1){var M={cause:p+","+g,reach:P};s(e,t,n,w.prev,A,M),d&&M.reach>d.reach&&(d.reach=M.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function u(e,t,n){for(var r=t.next,a=0;a<n&&r!==e.tail;a++)r=r.next;t.next=r,r.prev=t,e.length-=a}if(e.Prism=a,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=e(t,n)}),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(i.classes,o):i.classes.push(o)),a.hooks.run("wrap",i);var s="";for(var l in i.attributes)s+=" "+l+'="'+(i.attributes[l]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(a.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,o=n.immediateClose;e.postMessage(a.highlight(i,a.languages[r],r)),o&&e.close()},!1),a):a;var d=a.util.currentScript();function p(){a.manual||a.highlightAll()}if(d&&(a.filename=d.src,d.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var f=document.readyState;"loading"===f||"interactive"===f&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return a}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
|
|
7
|
+
*/const $=b("calendar-check",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"m9 16 2 2 4-4",key:"19s6y9"}]]),G=b("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),q=b("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),H=b("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),V=b("ticket",[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]]);var W="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Y(){}function K(){}const X=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Z=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Q={};function J(e,t){return(Q.jsx?Z:X).test(e)}const ee=/[ \t\n\f\r]/g;function te(e){return""===e.replace(ee,"")}let ne=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};function re(e,t){const n={},r={};for(const t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new ne(n,r,t)}function ae(e){return e.toLowerCase()}ne.prototype.normal={},ne.prototype.property={},ne.prototype.space=void 0;let ie=class{constructor(e,t){this.attribute=t,this.property=e}};ie.prototype.attribute="",ie.prototype.booleanish=!1,ie.prototype.boolean=!1,ie.prototype.commaOrSpaceSeparated=!1,ie.prototype.commaSeparated=!1,ie.prototype.defined=!1,ie.prototype.mustUseProperty=!1,ie.prototype.number=!1,ie.prototype.overloadedBoolean=!1,ie.prototype.property="",ie.prototype.spaceSeparated=!1,ie.prototype.space=void 0;let oe=0;const se=ge(),le=ge(),ce=ge(),ue=ge(),de=ge(),pe=ge(),fe=ge();function ge(){return 2**++oe}var me=Object.freeze({__proto__:null,boolean:se,booleanish:le,commaOrSpaceSeparated:fe,commaSeparated:pe,number:ue,overloadedBoolean:ce,spaceSeparated:de});const he=Object.keys(me);let be=class extends ie{constructor(e,t,n,r){let a=-1;if(super(e,t),ye(this,"space",r),"number"==typeof n)for(;++a<he.length;){const e=he[a];ye(this,he[a],(n&me[e])===me[e])}}};function ye(e,t,n){n&&(e[t]=n)}function ve(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new be(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[ae(r)]=r,n[ae(i.attribute)]=r}return new ne(t,n,e.space)}be.prototype.defined=!0;const Ee=ve({properties:{ariaActiveDescendant:null,ariaAtomic:le,ariaAutoComplete:null,ariaBusy:le,ariaChecked:le,ariaColCount:ue,ariaColIndex:ue,ariaColSpan:ue,ariaControls:de,ariaCurrent:null,ariaDescribedBy:de,ariaDetails:null,ariaDisabled:le,ariaDropEffect:de,ariaErrorMessage:null,ariaExpanded:le,ariaFlowTo:de,ariaGrabbed:le,ariaHasPopup:null,ariaHidden:le,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:de,ariaLevel:ue,ariaLive:null,ariaModal:le,ariaMultiLine:le,ariaMultiSelectable:le,ariaOrientation:null,ariaOwns:de,ariaPlaceholder:null,ariaPosInSet:ue,ariaPressed:le,ariaReadOnly:le,ariaRelevant:null,ariaRequired:le,ariaRoleDescription:de,ariaRowCount:ue,ariaRowIndex:ue,ariaRowSpan:ue,ariaSelected:le,ariaSetSize:ue,ariaSort:null,ariaValueMax:ue,ariaValueMin:ue,ariaValueNow:ue,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function Se(e,t){return t in e?e[t]:t}function we(e,t){return Se(e,t.toLowerCase())}const Ae=ve({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:pe,acceptCharset:de,accessKey:de,action:null,allow:null,allowFullScreen:se,allowPaymentRequest:se,allowUserMedia:se,alt:null,as:null,async:se,autoCapitalize:null,autoComplete:de,autoFocus:se,autoPlay:se,blocking:de,capture:null,charSet:null,checked:se,cite:null,className:de,cols:ue,colSpan:null,content:null,contentEditable:le,controls:se,controlsList:de,coords:ue|pe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:se,defer:se,dir:null,dirName:null,disabled:se,download:ce,draggable:le,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:se,formTarget:null,headers:de,height:ue,hidden:ce,high:ue,href:null,hrefLang:null,htmlFor:de,httpEquiv:de,id:null,imageSizes:null,imageSrcSet:null,inert:se,inputMode:null,integrity:null,is:null,isMap:se,itemId:null,itemProp:de,itemRef:de,itemScope:se,itemType:de,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:se,low:ue,manifest:null,max:null,maxLength:ue,media:null,method:null,min:null,minLength:ue,multiple:se,muted:se,name:null,nonce:null,noModule:se,noValidate:se,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:se,optimum:ue,pattern:null,ping:de,placeholder:null,playsInline:se,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:se,referrerPolicy:null,rel:de,required:se,reversed:se,rows:ue,rowSpan:ue,sandbox:de,scope:null,scoped:se,seamless:se,selected:se,shadowRootClonable:se,shadowRootDelegatesFocus:se,shadowRootMode:null,shape:null,size:ue,sizes:null,slot:null,span:ue,spellCheck:le,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ue,step:null,style:null,tabIndex:ue,target:null,title:null,translate:null,type:null,typeMustMatch:se,useMap:null,value:le,width:ue,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:de,axis:null,background:null,bgColor:null,border:ue,borderColor:null,bottomMargin:ue,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:se,declare:se,event:null,face:null,frame:null,frameBorder:null,hSpace:ue,leftMargin:ue,link:null,longDesc:null,lowSrc:null,marginHeight:ue,marginWidth:ue,noResize:se,noHref:se,noShade:se,noWrap:se,object:null,profile:null,prompt:null,rev:null,rightMargin:ue,rules:null,scheme:null,scrolling:le,standby:null,summary:null,text:null,topMargin:ue,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ue,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:se,disableRemotePlayback:se,prefix:null,property:null,results:ue,security:null,unselectable:null},space:"html",transform:we}),ke=ve({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:fe,accentHeight:ue,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ue,amplitude:ue,arabicForm:null,ascent:ue,attributeName:null,attributeType:null,azimuth:ue,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ue,by:null,calcMode:null,capHeight:ue,className:de,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:ue,diffuseConstant:ue,direction:null,display:null,dur:null,divisor:ue,dominantBaseline:null,download:se,dx:null,dy:null,edgeMode:null,editable:null,elevation:ue,enableBackground:null,end:null,event:null,exponent:ue,externalResourcesRequired:null,fill:null,fillOpacity:ue,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:pe,g2:pe,glyphName:pe,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ue,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ue,horizOriginX:ue,horizOriginY:ue,id:null,ideographic:ue,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ue,k:ue,k1:ue,k2:ue,k3:ue,k4:ue,kernelMatrix:fe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ue,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:ue,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:ue,overlineThickness:ue,paintOrder:null,panose1:null,path:null,pathLength:ue,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:de,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ue,pointsAtY:ue,pointsAtZ:ue,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:fe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:fe,rev:fe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:fe,requiredFeatures:fe,requiredFonts:fe,requiredFormats:fe,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:ue,specularExponent:ue,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ue,strikethroughThickness:ue,string:null,stroke:null,strokeDashArray:fe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ue,strokeOpacity:ue,strokeWidth:null,style:null,surfaceScale:ue,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:fe,tabIndex:ue,tableValues:null,target:null,targetX:ue,targetY:ue,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:fe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ue,underlineThickness:ue,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ue,values:null,vAlphabetic:ue,vMathematical:ue,vectorEffect:null,vHanging:ue,vIdeographic:ue,version:null,vertAdvY:ue,vertOriginX:ue,vertOriginY:ue,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ue,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Se}),xe=ve({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),Te=ve({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:we}),Oe=ve({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),_e={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Ie=/[A-Z]/g,Ne=/-[a-z]/g,Re=/^data[-\w.:]+$/i;function Ce(e){return"-"+e.toLowerCase()}function De(e){return e.charAt(1).toUpperCase()}const Pe=re([Ee,Ae,xe,Te,Oe],"html"),Le=re([Ee,ke,xe,Te,Oe],"svg");var Me={},Fe=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,je=/\n/g,Be=/^\s*/,Ue=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ze=/^:\s*/,$e=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ge=/^[;\s]*/,qe=/^\s+|\s+$/g,He="";function Ve(e){return e?e.replace(qe,He):He}var We=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function a(e){var t=e.match(je);t&&(n+=t.length);var a=e.lastIndexOf("\n");r=~a?e.length-a:r+e.length}function i(){var e={line:n,column:r};return function(t){return t.position=new o(e),c(),t}}function o(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function s(a){var i=new Error(t.source+":"+n+":"+r+": "+a);if(i.reason=a,i.filename=t.source,i.line=n,i.column=r,i.source=e,!t.silent)throw i}function l(t){var n=t.exec(e);if(n){var r=n[0];return a(r),e=e.slice(r.length),n}}function c(){l(Be)}function u(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=i();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;He!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,He===e.charAt(n-1))return s("End of comment missing");var o=e.slice(2,n-2);return r+=2,a(o),e=e.slice(n),r+=2,t({type:"comment",comment:o})}}function p(){var e=i(),t=l(Ue);if(t){if(d(),!l(ze))return s("property missing ':'");var n=l($e),r=e({type:"declaration",property:Ve(t[0].replace(Fe,He)),value:n?Ve(n[0].replace(Fe,He)):He});return l(Ge),r}}return o.prototype.content=e,c(),function(){var e,t=[];for(u(t);e=p();)!1!==e&&(t.push(e),u(t));return t}()},Ye=W&&W.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Me,"__esModule",{value:!0}),Me.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;const r=(0,Ke.default)(e),a="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;const{property:r,value:i}=e;a?t(r,i,e):i&&(n=n||{},n[r]=i)}),n};const Ke=Ye(We);var Xe={};Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.camelCase=void 0;var Ze=/^--[a-zA-Z0-9_-]+$/,Qe=/-([a-z])/g,Je=/^[^-]+$/,et=/^-(webkit|moz|ms|o|khtml)-/,tt=/^-(ms)-/,nt=function(e,t){return t.toUpperCase()},rt=function(e,t){return"".concat(t,"-")};Xe.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||Je.test(e)||Ze.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(tt,rt):e.replace(et,rt)).replace(Qe,nt))};var at=(W&&W.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(Me),it=Xe;function ot(e,t){var n={};return e&&"string"==typeof e?((0,at.default)(e,function(e,r){e&&r&&(n[(0,it.camelCase)(e,t)]=r)}),n):n}ot.default=ot;var st=ot;const lt=ut("end"),ct=ut("start");function ut(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function dt(e){return e&&"object"==typeof e?"position"in e||"type"in e?ft(e.position):"start"in e||"end"in e?ft(e):"line"in e||"column"in e?pt(e):"":""}function pt(e){return gt(e&&e.line)+":"+gt(e&&e.column)}function ft(e){return pt(e&&e.start)+"-"+pt(e&&e.end)}function gt(e){return e&&"number"==typeof e?e:1}class mt extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",a={},i=!1;if(t&&(a="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!a.cause&&e&&(i=!0,r=e.message,a.cause=e),!a.ruleId&&!a.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?a.ruleId=n:(a.source=n.slice(0,e),a.ruleId=n.slice(e+1))}if(!a.place&&a.ancestors&&a.ancestors){const e=a.ancestors[a.ancestors.length-1];e&&(a.place=e.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=dt(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=i&&a.cause&&"string"==typeof a.cause.stack?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}mt.prototype.file="",mt.prototype.name="",mt.prototype.reason="",mt.prototype.message="",mt.prototype.stack="",mt.prototype.column=void 0,mt.prototype.line=void 0,mt.prototype.ancestors=void 0,mt.prototype.cause=void 0,mt.prototype.fatal=void 0,mt.prototype.place=void 0,mt.prototype.ruleId=void 0,mt.prototype.source=void 0;const ht={}.hasOwnProperty,bt=new Map,yt=/[A-Z]/g,vt=new Set(["table","tbody","thead","tfoot","tr"]),Et=new Set(["td","th"]),St="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function wt(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,a,i){const o=Array.isArray(a.children),s=ct(n);return t(r,a,i,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,a,i){const o=Array.isArray(a.children)?n:t;return i?o(r,a,i):o(r,a)}}(0,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Le:Pe,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=At(a,e,void 0);return i&&"string"!=typeof i?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function At(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let a=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(a=Le,e.schema=a);e.ancestors.push(t);const i=_t(e,t.tagName,!1),o=function(e,t){const n={};let r,a;for(a in t.properties)if("children"!==a&&ht.call(t.properties,a)){const i=Ot(e,a,t.properties[a]);if(i){const[a,o]=i;e.tableCellAlignToStyle&&"align"===a&&"string"==typeof o&&Et.has(t.tagName)?r=o:n[a]=o}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let s=Tt(e,t);vt.has(t.tagName)&&(s=s.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&te(t.value):te(t));var t}));return kt(e,o,i,t),xt(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}It(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let a=r;"svg"===t.name&&"html"===r.space&&(a=Le,e.schema=a);e.ancestors.push(t);const i=null===t.name?e.Fragment:_t(e,t.name,!0),o=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];Y(t.type);const a=t.expression;Y(a.type);const i=a.properties[0];Y(i.type),Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else It(e,t.position);else{const a=r.name;let i;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];Y(t.type),i=e.evaluater.evaluateExpression(t.expression)}else It(e,t.position);else i=null===r.value||r.value;n[a]=i}return n}(e,t),s=Tt(e,t);return kt(e,o,i,t),xt(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);It(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return xt(r,Tt(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function kt(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function xt(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Tt(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:bt;for(;++r<t.children.length;){const i=t.children[r];let o;if(e.passKeys){const e="element"===i.type?i.tagName:"mdxJsxFlowElement"===i.type||"mdxJsxTextElement"===i.type?i.name:void 0;if(e){const t=a.get(e)||0;o=e+"-"+t,a.set(e,t+1)}}const s=At(e,i,o);void 0!==s&&n.push(s)}return n}function Ot(e,t,n){const r=function(e,t){const n=ae(t);let r=t,a=ie;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&Re.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(Ne,De);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!Ne.test(e)){let n=e.replace(Ie,Ce);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}a=be}return new a(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return st(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const n=t,r=new mt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=St+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)ht.call(e,n)&&(t[Nt(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?_e[r.property]||r.property:r.attribute,n]}}function _t(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,a=-1;for(;++a<e.length;){const t=J(e[a])?{type:"Identifier",name:e[a]}:{type:"Literal",value:e[a]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(a&&"Literal"===t.type),optional:!1}:t}r=n}else r=J(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return ht.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);It(e)}function It(e,t){const n=new mt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=St+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Nt(e){let t=e.replace(yt,Rt);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function Rt(e){return"-"+e.toLowerCase()}const Ct={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Dt={};function Pt(e,t){return Lt(e,"boolean"!=typeof Dt.includeImageAlt||Dt.includeImageAlt,"boolean"!=typeof Dt.includeHtml||Dt.includeHtml)}function Lt(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Mt(e.children,t,n)}return Array.isArray(e)?Mt(e,t,n):""}function Mt(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=Lt(e[a],t,n);return r.join("")}const Ft={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},jt={}.hasOwnProperty;function Bt(e){return!!jt.call(Ft,e)&&Ft[e]}function Ut(e,t,n,r){const a=e.length;let i,o=0;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o<r.length;)i=r.slice(o,o+1e4),i.unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function zt(e,t){return e.length>0?(Ut(e,e.length,0,t),e):t}const $t={}.hasOwnProperty;function Gt(e){const t={};let n=-1;for(;++n<e.length;)qt(t,e[n]);return t}function qt(e,t){let n;for(n in t){const r=($t.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let i;if(a)for(i in a){$t.call(r,i)||(r[i]=[]);const e=a[i];Ht(r[i],Array.isArray(e)?e:e?[e]:[])}}}function Ht(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Ut(e,0,0,r)}function Vt(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function Wt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Yt=sn(/[A-Za-z]/),Kt=sn(/[\dA-Za-z]/),Xt=sn(/[#-'*+\--9=?A-Z^-~]/);function Zt(e){return null!==e&&(e<32||127===e)}const Qt=sn(/\d/),Jt=sn(/[\dA-Fa-f]/),en=sn(/[!-/:-@[-`{-~]/);function tn(e){return null!==e&&e<-2}function nn(e){return null!==e&&(e<0||32===e)}function rn(e){return-2===e||-1===e||32===e}const an=sn(/\p{P}|\p{S}/u),on=sn(/\s/);function sn(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function ln(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let o="";if(37===i&&Kt(e.charCodeAt(n+1))&&Kt(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(o=String.fromCharCode(i,t),a=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function cn(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(rn(r))return e.enter(n),o(r);return t(r)};function o(r){return rn(r)&&i++<a?(e.consume(r),o):(e.exit(n),t(r))}}const un={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),cn(e,t,"linePrefix")},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,a(t)}function a(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):tn(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),a)}}};const dn={tokenize:function(e){const t=this,n=[];let r,a,i,o=0;return s;function s(r){if(o<n.length){const a=n[o];return t.containerState=a[1],e.attempt(a[0].continuation,l,c)(r)}return c(r)}function l(e){if(o++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&y();const n=t.events.length;let a,i=n;for(;i--;)if("exit"===t.events[i][0]&&"chunkFlow"===t.events[i][1].type){a=t.events[i][1].end;break}b(o);let s=n;for(;s<t.events.length;)t.events[s][1].end={...a},s++;return Ut(t.events,i+1,0,t.events.slice(n)),t.events.length=s,c(e)}return s(e)}function c(a){if(o===n.length){if(!r)return p(a);if(r.currentConstruct&&r.currentConstruct.concrete)return g(a);t.interrupt=Boolean(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(pn,u,d)(a)}function u(e){return r&&y(),b(o),p(e)}function d(e){return t.parser.lazy[t.now().line]=o!==n.length,i=t.now().offset,g(e)}function p(n){return t.containerState={},e.attempt(pn,f,g)(n)}function f(e){return o++,n.push([t.currentConstruct,t.containerState]),p(e)}function g(n){return null===n?(r&&y(),b(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:a}),m(n))}function m(n){return null===n?(h(e.exit("chunkFlow"),!0),b(0),void e.consume(n)):tn(n)?(e.consume(n),h(e.exit("chunkFlow")),o=0,t.interrupt=void 0,s):(e.consume(n),m)}function h(e,n){const s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,r.defineSkip(e.start),r.write(s),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<i&&(!r.events[e][1].end||r.events[e][1].end.offset>i))return;const n=t.events.length;let a,s,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(a){s=t.events[l][1].end;break}a=!0}for(b(o),e=n;e<t.events.length;)t.events[e][1].end={...s},e++;Ut(t.events,l+1,0,t.events.slice(n)),t.events.length=e}}function b(r){let a=n.length;for(;a-- >r;){const r=n[a];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function y(){r.write([null]),a=void 0,r=void 0,t.containerState._closeFlow=void 0}}},pn={tokenize:function(e,t,n){return cn(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function fn(e){return null===e||nn(e)||on(e)?1:an(e)?2:void 0}function gn(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const mn={name:"attention",resolveAll:function(e,t){let n,r,a,i,o,s,l,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close)for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const d={...e[n][1].end},p={...e[u][1].start};hn(d,-s),hn(p,s),i={type:s>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},o={type:s>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},a={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:s>1?"strong":"emphasis",start:{...i.start},end:{...o.end}},e[n][1].end={...i.start},e[u][1].start={...o.end},l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=zt(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=zt(l,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",a,t]]),l=zt(l,gn(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=zt(l,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=zt(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Ut(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=fn(r);let i;return function(t){return i=t,e.enter("attentionSequence"),o(t)};function o(s){if(s===i)return e.consume(s),o;const l=e.exit("attentionSequence"),c=fn(s),u=!c||2===c&&a||n.includes(s),d=!a||2===a&&c||n.includes(r);return l._open=Boolean(42===i?u:u&&(a||!d)),l._close=Boolean(42===i?d:d&&(c||!u)),t(s)}}};function hn(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const bn={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a};function a(t){return Yt(t)?(e.consume(t),i):64===t?n(t):l(t)}function i(e){return 43===e||45===e||46===e||Kt(e)?(r=1,o(e)):l(e)}function o(t){return 58===t?(e.consume(t),r=0,s):(43===t||45===t||46===t||Kt(t))&&r++<32?(e.consume(t),o):(r=0,l(t))}function s(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||Zt(r)?n(r):(e.consume(r),s)}function l(t){return 64===t?(e.consume(t),c):Xt(t)?(e.consume(t),l):n(t)}function c(e){return Kt(e)?u(e):n(e)}function u(n){return 46===n?(e.consume(n),r=0,c):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):d(n)}function d(t){if((45===t||Kt(t))&&r++<63){const n=45===t?d:u;return e.consume(t),n}return n(t)}}};const yn={partial:!0,tokenize:function(e,t,n){return function(t){return rn(t)?cn(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||tn(e)?t(e):n(e)}}};const vn={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(rn(t))return cn(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return a(t)};function a(r){return e.attempt(vn,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),a}return n(t)};function a(n){return rn(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const En={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return en(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const Sn={name:"characterReference",tokenize:function(e,t,n){const r=this;let a,i,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),a=31,i=Kt,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,i=Jt,c):(e.enter("characterReferenceValue"),a=7,i=Qt,c(t))}function c(s){if(59===s&&o){const a=e.exit("characterReferenceValue");return i!==Kt||Bt(r.sliceSerialize(a))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return i(s)&&o++<a?(e.consume(s),c):n(s)}}};const wn={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},An={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return o;function o(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),rn(t)?cn(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===i?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===i?(a++,e.consume(t),u):a>=s?(e.exit("codeFencedFenceSequence"),rn(t)?cn(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||tn(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let i,o=0,s=0;return function(t){return function(t){const n=r.events[r.events.length-1];return o=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===i?(s++,e.consume(t),l):s<3?n(t):(e.exit("codeFencedFenceSequence"),rn(t)?cn(e,c,"whitespace")(t):c(t))}function c(n){return null===n||tn(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(wn,f,y)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||tn(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):rn(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),cn(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),u)}function d(t){return null===t||tn(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),p(t))}function p(t){return null===t||tn(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===i?n(t):(e.consume(t),p)}function f(t){return e.attempt(a,y,g)(t)}function g(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return o>0&&rn(t)?cn(e,h,"linePrefix",o+1)(t):h(t)}function h(t){return null===t||tn(t)?e.check(wn,f,y)(t):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||tn(t)?(e.exit("codeFlowValue"),h(t)):(e.consume(t),b)}function y(n){return e.exit("codeFenced"),t(n)}}};const kn={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),cn(e,a,"linePrefix",5)(t)};function a(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?s(t):tn(t)?e.attempt(xn,i,s)(t):(e.enter("codeFlowValue"),o(t))}function o(t){return null===t||tn(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),o)}function s(n){return e.exit("codeIndented"),t(n)}}},xn={partial:!0,tokenize:function(e,t,n){const r=this;return a;function a(t){return r.parser.lazy[r.now().line]?n(t):tn(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):cn(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):tn(e)?a(e):n(e)}}};const Tn={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,a=3;if(!("lineEnding"!==e[a][1].type&&"space"!==e[a][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=a;++t<r;)if("codeTextData"===e[t][1].type){e[a][1].type="codeTextPadding",e[r][1].type="codeTextPadding",a+=2,r-=2;break}t=a-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,a,i=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),o(t)};function o(t){return 96===t?(e.consume(t),i++,o):(e.exit("codeTextSequence"),s(t))}function s(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),s):96===t?(a=e.enter("codeTextSequence"),r=0,c(t)):tn(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(t))}function l(t){return null===t||32===t||96===t||tn(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}function c(n){return 96===n?(e.consume(n),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(a.type="codeTextData",l(n))}}};class On{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const a=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&_n(this.left,n),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),_n(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),_n(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);_n(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);_n(this.left,t.reverse())}}}function _n(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function In(e){const t={};let n,r,a,i,o,s,l,c=-1;const u=new On(e);for(;++c<u.length;){for(;c in t;)c=t[c];if(n=u.get(c),c&&"chunkFlow"===n[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&(s=n[1]._tokenizer.events,a=0,a<s.length&&"lineEndingBlank"===s[a][1].type&&(a+=2),a<s.length&&"content"===s[a][1].type))for(;++a<s.length&&"content"!==s[a][1].type;)"chunkText"===s[a][1].type&&(s[a][1]._isInFirstContentOfListItem=!0,a++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Nn(u,c)),c=t[c],l=!0);else if(n[1]._container){for(a=c,r=void 0;a--;)if(i=u.get(a),"lineEnding"===i[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(r&&(u.get(r)[1].type="lineEndingBlank"),i[1].type="lineEnding",r=a);else if("linePrefix"!==i[1].type&&"listItemIndent"!==i[1].type)break;r&&(n[1].end={...u.get(r)[1].start},o=u.slice(r,c),o.unshift(n),u.splice(r,c-r+1,o))}}return Ut(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!l}function Nn(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const i=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,l=[],c={};let u,d,p=-1,f=n,g=0,m=0;const h=[m];for(;f;){for(;e.get(++a)[1]!==f;);i.push(a),f._tokenizer||(u=r.sliceStream(f),f.next||u.push(null),d&&o.defineSkip(f.start),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),f._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++p<s.length;)"exit"===s[p][0]&&"enter"===s[p-1][0]&&s[p][1].type===s[p-1][1].type&&s[p][1].start.line!==s[p][1].end.line&&(m=p+1,h.push(m),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(o.events=[],f?(f._tokenizer=void 0,f.previous=void 0):h.pop(),p=h.length;p--;){const t=s.slice(h[p],h[p+1]),n=i.pop();l.push([n,n+t.length-1]),e.splice(n,2,t)}for(l.reverse(),p=-1;++p<l.length;)c[g+l[p][0]]=g+l[p][1],g+=l[p][1]-l[p][0]-1;return c}const Rn={resolve:function(e){return In(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?a(t):tn(t)?e.check(Cn,i,a)(t):(e.consume(t),r)}function a(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Cn={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),cn(e,a,"linePrefix")};function a(a){if(null===a||tn(a))return n(a);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(a):e.interrupt(r.parser.constructs.flow,n,t)(a)}}};function Dn(e,t,n,r,a,i,o,s,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(a),e.enter(i),e.consume(t),e.exit(i),d;if(null===t||32===t||41===t||Zt(t))return n(t);return e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),g(t)};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(s),d(t)):null===t||60===t||tn(t)?n(t):(e.consume(t),92===t?f:p)}function f(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function g(a){return u||null!==a&&41!==a&&!nn(a)?u<c&&40===a?(e.consume(a),u++,g):41===a?(e.consume(a),u--,g):null===a||32===a||40===a||Zt(a)?n(a):(e.consume(a),92===a?m:g):(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(a))}function m(t){return 40===t||41===t||92===t?(e.consume(t),g):g(t)}}function Pn(e,t,n,r,a,i){const o=this;let s,l=0;return function(t){return e.enter(r),e.enter(a),e.consume(t),e.exit(a),e.enter(i),c};function c(d){return l>999||null===d||91===d||93===d&&!s||94===d&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?n(d):93===d?(e.exit(i),e.enter(a),e.consume(d),e.exit(a),e.exit(r),t):tn(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||tn(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),s||(s=!rn(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function Ln(e,t,n,r,a,i){let o;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(a),e.consume(t),e.exit(a),o=40===t?41:t,s;return n(t)};function s(n){return n===o?(e.enter(a),e.consume(n),e.exit(a),e.exit(r),t):(e.enter(i),l(n))}function l(t){return t===o?(e.exit(i),s(o)):null===t?n(t):tn(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),cn(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===o||null===t||tn(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===o||92===t?(e.consume(t),c):c(t)}}function Mn(e,t){let n;return function r(a){if(tn(a))return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r;if(rn(a))return cn(e,r,n?"linePrefix":"lineSuffix")(a);return t(a)}}const Fn={name:"definition",tokenize:function(e,t,n){const r=this;let a;return function(t){return e.enter("definition"),function(t){return Pn.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return a=Wt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return nn(t)?Mn(e,s)(t):s(t)}function s(t){return Dn(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(jn,c,c)(t)}function c(t){return rn(t)?cn(e,u,"whitespace")(t):u(t)}function u(i){return null===i||tn(i)?(e.exit("definition"),r.parser.defined.push(a),t(i)):n(i)}}},jn={partial:!0,tokenize:function(e,t,n){return function(t){return nn(t)?Mn(e,r)(t):n(t)};function r(t){return Ln(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function a(t){return rn(t)?cn(e,i,"whitespace")(t):i(t)}function i(e){return null===e||tn(e)?t(e):n(e)}}};const Bn={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return tn(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const Un={name:"headingAtx",resolve:function(e,t){let n,r,a=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);a-2>i&&"whitespace"===e[a][1].type&&(a-=2);"atxHeadingSequence"===e[a][1].type&&(i===a-1||a-4>i&&"whitespace"===e[a-2][1].type)&&(a-=i+1===a?2:4);a>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[a][1].end},r={type:"chunkText",start:e[i][1].start,end:e[a][1].end,contentType:"text"},Ut(e,i,a-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),a(t)}(t)};function a(t){return 35===t&&r++<6?(e.consume(t),a):null===t||nn(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),o(n)):null===n||tn(n)?(e.exit("atxHeading"),t(n)):rn(n)?cn(e,i,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function o(t){return 35===t?(e.consume(t),o):(e.exit("atxHeadingSequence"),i(t))}function s(t){return null===t||35===t||nn(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),s)}}};const zn=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],$n=["pre","script","style","textarea"],Gn={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let a,i,o,s,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(s){return 33===s?(e.consume(s),u):47===s?(e.consume(s),i=!0,f):63===s?(e.consume(s),a=3,r.interrupt?t:P):Yt(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function u(i){return 45===i?(e.consume(i),a=2,d):91===i?(e.consume(i),a=5,s=0,p):Yt(i)?(e.consume(i),a=4,r.interrupt?t:P):n(i)}function d(a){return 45===a?(e.consume(a),r.interrupt?t:P):n(a)}function p(a){const i="CDATA[";return a===i.charCodeAt(s++)?(e.consume(a),6===s?r.interrupt?t:T:p):n(a)}function f(t){return Yt(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(null===s||47===s||62===s||nn(s)){const l=47===s,c=o.toLowerCase();return l||i||!$n.includes(c)?zn.includes(o.toLowerCase())?(a=6,l?(e.consume(s),m):r.interrupt?t(s):T(s)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):i?h(s):b(s)):(a=1,r.interrupt?t(s):T(s))}return 45===s||Kt(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function m(a){return 62===a?(e.consume(a),r.interrupt?t:T):n(a)}function h(t){return rn(t)?(e.consume(t),h):k(t)}function b(t){return 47===t?(e.consume(t),k):58===t||95===t||Yt(t)?(e.consume(t),y):rn(t)?(e.consume(t),b):k(t)}function y(t){return 45===t||46===t||58===t||95===t||Kt(t)?(e.consume(t),y):v(t)}function v(t){return 61===t?(e.consume(t),E):rn(t)?(e.consume(t),v):b(t)}function E(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,S):rn(t)?(e.consume(t),E):w(t)}function S(t){return t===l?(e.consume(t),l=null,A):null===t||tn(t)?n(t):(e.consume(t),S)}function w(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||nn(t)?v(t):(e.consume(t),w)}function A(e){return 47===e||62===e||rn(e)?b(e):n(e)}function k(t){return 62===t?(e.consume(t),x):n(t)}function x(t){return null===t||tn(t)?T(t):rn(t)?(e.consume(t),x):n(t)}function T(t){return 45===t&&2===a?(e.consume(t),N):60===t&&1===a?(e.consume(t),R):62===t&&4===a?(e.consume(t),L):63===t&&3===a?(e.consume(t),P):93===t&&5===a?(e.consume(t),D):!tn(t)||6!==a&&7!==a?null===t||tn(t)?(e.exit("htmlFlowData"),O(t)):(e.consume(t),T):(e.exit("htmlFlowData"),e.check(qn,M,O)(t))}function O(t){return e.check(Hn,_,M)(t)}function _(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return null===t||tn(t)?O(t):(e.enter("htmlFlowData"),T(t))}function N(t){return 45===t?(e.consume(t),P):T(t)}function R(t){return 47===t?(e.consume(t),o="",C):T(t)}function C(t){if(62===t){const n=o.toLowerCase();return $n.includes(n)?(e.consume(t),L):T(t)}return Yt(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),C):T(t)}function D(t){return 93===t?(e.consume(t),P):T(t)}function P(t){return 62===t?(e.consume(t),L):45===t&&2===a?(e.consume(t),P):T(t)}function L(t){return null===t||tn(t)?(e.exit("htmlFlowData"),M(t)):(e.consume(t),L)}function M(n){return e.exit("htmlFlow"),t(n)}}},qn={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(yn,t,n)}}},Hn={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(tn(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a;return n(t)};function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const Vn={name:"htmlText",tokenize:function(e,t,n){const r=this;let a,i,o;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),s};function s(t){return 33===t?(e.consume(t),l):47===t?(e.consume(t),E):63===t?(e.consume(t),y):Yt(t)?(e.consume(t),A):n(t)}function l(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,f):Yt(t)?(e.consume(t),b):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):tn(t)?(o=u,C(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?R(e):45===e?d(e):u(e)}function f(t){const r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),6===i?g:f):n(t)}function g(t){return null===t?n(t):93===t?(e.consume(t),m):tn(t)?(o=g,C(t)):(e.consume(t),g)}function m(t){return 93===t?(e.consume(t),h):g(t)}function h(t){return 62===t?R(t):93===t?(e.consume(t),h):g(t)}function b(t){return null===t||62===t?R(t):tn(t)?(o=b,C(t)):(e.consume(t),b)}function y(t){return null===t?n(t):63===t?(e.consume(t),v):tn(t)?(o=y,C(t)):(e.consume(t),y)}function v(e){return 62===e?R(e):y(e)}function E(t){return Yt(t)?(e.consume(t),S):n(t)}function S(t){return 45===t||Kt(t)?(e.consume(t),S):w(t)}function w(t){return tn(t)?(o=w,C(t)):rn(t)?(e.consume(t),w):R(t)}function A(t){return 45===t||Kt(t)?(e.consume(t),A):47===t||62===t||nn(t)?k(t):n(t)}function k(t){return 47===t?(e.consume(t),R):58===t||95===t||Yt(t)?(e.consume(t),x):tn(t)?(o=k,C(t)):rn(t)?(e.consume(t),k):R(t)}function x(t){return 45===t||46===t||58===t||95===t||Kt(t)?(e.consume(t),x):T(t)}function T(t){return 61===t?(e.consume(t),O):tn(t)?(o=T,C(t)):rn(t)?(e.consume(t),T):k(t)}function O(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,_):tn(t)?(o=O,C(t)):rn(t)?(e.consume(t),O):(e.consume(t),I)}function _(t){return t===a?(e.consume(t),a=void 0,N):null===t?n(t):tn(t)?(o=_,C(t)):(e.consume(t),_)}function I(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||nn(t)?k(t):(e.consume(t),I)}function N(e){return 47===e||62===e||nn(e)?k(e):n(e)}function R(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function C(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),D}function D(t){return rn(t)?cn(e,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):P(t)}function P(t){return e.enter("htmlTextData"),o(t)}}};const Wn={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&Ut(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,a,i,o=e.length,s=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(a){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(a=o);const l={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[a][1].end}},u={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[a-2][1].start}};return i=[["enter",l,t],["enter",c,t]],i=zt(i,e.slice(r+1,r+s+3)),i=zt(i,[["enter",u,t]]),i=zt(i,gn(t.parser.constructs.insideSpan.null,e.slice(r+s+4,a-3),t)),i=zt(i,[["exit",u,t],e[a-2],e[a-1],["exit",c,t]]),i=zt(i,e.slice(a+1)),i=zt(i,[["exit",l,t]]),Ut(e,r,e.length,i),e},tokenize:function(e,t,n){const r=this;let a,i,o=r.events.length;for(;o--;)if(("labelImage"===r.events[o][1].type||"labelLink"===r.events[o][1].type)&&!r.events[o][1]._balanced){a=r.events[o][1];break}return function(t){if(!a)return n(t);if(a._inactive)return u(t);return i=r.parser.defined.includes(Wt(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),s};function s(t){return 40===t?e.attempt(Yn,c,i?c:u)(t):91===t?e.attempt(Kn,c,i?l:u)(t):i?c(t):u(t)}function l(t){return e.attempt(Xn,c,u)(t)}function c(e){return t(e)}function u(e){return a._balanced=!0,n(e)}}},Yn={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return nn(t)?Mn(e,a)(t):a(t)}function a(t){return 41===t?c(t):Dn(e,i,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function i(t){return nn(t)?Mn(e,s)(t):c(t)}function o(e){return n(e)}function s(t){return 34===t||39===t||40===t?Ln(e,l,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function l(t){return nn(t)?Mn(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},Kn={tokenize:function(e,t,n){const r=this;return function(t){return Pn.call(r,e,a,i,"reference","referenceMarker","referenceString")(t)};function a(e){return r.parser.defined.includes(Wt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function i(e){return n(e)}}},Xn={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const Zn={name:"labelStartImage",resolveAll:Wn.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),a};function a(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),i):n(t)}function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Qn={name:"labelStartLink",resolveAll:Wn.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),a};function a(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};const Jn={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),cn(e,t,"linePrefix")}}};const er={name:"thematicBreak",tokenize:function(e,t,n){let r,a=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,i(e)}(t)};function i(i){return i===r?(e.enter("thematicBreakSequence"),o(i)):a>=3&&(null===i||tn(i))?(e.exit("thematicBreak"),t(i)):n(i)}function o(t){return t===r?(e.consume(t),a++,o):(e.exit("thematicBreakSequence"),rn(t)?cn(e,i,"whitespace")(t):i(t))}}};const tr={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(yn,a,i);function a(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,cn(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!rn(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(rr,t,o)(n))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,cn(e,e.attempt(tr,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,o=0;return function(t){const a=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===a?!r.containerState.marker||t===r.containerState.marker:Qt(t)){if(r.containerState.type||(r.containerState.type=a,e.enter(a,{_container:!0})),"listUnordered"===a)return e.enter("listItemPrefix"),42===t||45===t?e.check(er,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return Qt(t)&&++o<10?(e.consume(t),s):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(yn,r.interrupt?n:c,e.attempt(nr,d,u))}function c(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function u(t){return rn(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},nr={partial:!0,tokenize:function(e,t,n){const r=this;return cn(e,function(e){const a=r.events[r.events.length-1];return!rn(e)&&a&&"listItemPrefixWhitespace"===a[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},rr={partial:!0,tokenize:function(e,t,n){const r=this;return cn(e,function(e){const a=r.events[r.events.length-1];return a&&"listItemIndent"===a[1].type&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}};const ar={name:"setextUnderline",resolveTo:function(e,t){let n,r,a,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),a||"definition"!==e[i][1].type||(a=i);const o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",o,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end={...e[a][1].end}):e[n][1]=o;return e.push(["exit",o,t]),e},tokenize:function(e,t,n){const r=this;let a;return function(t){let o,s=r.events.length;for(;s--;)if("lineEnding"!==r.events[s][1].type&&"linePrefix"!==r.events[s][1].type&&"content"!==r.events[s][1].type){o="paragraph"===r.events[s][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||o))return e.enter("setextHeadingLine"),a=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===a?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),rn(t)?cn(e,o,"lineSuffix")(t):o(t))}function o(r){return null===r||tn(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const ir={tokenize:function(e){const t=this,n=e.attempt(yn,function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,cn(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Rn,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const or={resolveAll:ur()},sr=cr("string"),lr=cr("text");function cr(e){return{resolveAll:ur("text"===e?dr:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],a=t.attempt(r,i,o);return i;function i(e){return l(e)?a(e):o(e)}function o(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return l(e)?(t.exit("data"),a(e)):(t.consume(e),s)}function l(e){if(null===e)return!0;const t=r[e];let a=-1;if(t)for(;++a<t.length;){const e=t[a];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function ur(e){return function(t,n){let r,a=-1;for(;++a<=t.length;)void 0===r?t[a]&&"data"===t[a][1].type&&(r=a,a++):t[a]&&"data"===t[a][1].type||(a!==r+2&&(t[r][1].end=t[a-1][1].end,t.splice(r+2,a-r-2),a=r+2),r=void 0);return e?e(t,n):t}}function dr(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],a=t.sliceStream(r);let i,o=a.length,s=-1,l=0;for(;o--;){const e=a[o];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)i=!0,l++;else if(-1!==e){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){const a={type:n===e.length||i||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:r.start._bufferIndex+s,_index:r.start._index+o,line:r.end.line,column:r.end.column-l,offset:r.end.offset-l},end:{...r.end}};r.end={...a.start},r.start.offset===r.end.offset?Object.assign(r,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}const pr={42:tr,43:tr,45:tr,48:tr,49:tr,50:tr,51:tr,52:tr,53:tr,54:tr,55:tr,56:tr,57:tr,62:vn},fr={91:Fn},gr={[-2]:kn,[-1]:kn,32:kn},mr={35:Un,42:er,45:[ar,er],60:Gn,61:ar,95:er,96:An,126:An},hr={38:Sn,92:En},br={[-5]:Jn,[-4]:Jn,[-3]:Jn,33:Zn,38:Sn,42:mn,60:[bn,Vn],91:Qn,92:[Bn,En],93:Wn,95:mn,96:Tn},yr={null:[mn,or]};var vr=Object.freeze({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:fr,disable:{null:[]},document:pr,flow:mr,flowInitial:gr,insideSpan:yr,string:hr,text:br});function Er(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},i=[];let o=[],s=[];const l={attempt:h(function(e,t){b(e,t.from)}),check:h(m),consume:function(e){tn(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,y()):-1!==e&&(r.column++,r.offset++);r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++));c.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){const t=s.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:h(m,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){a[e.line]=e.column,y()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let o;if("string"==typeof i)o=i;else switch(i){case-5:o="\r";break;case-4:o="\n";break;case-3:o="\r\n";break;case-2:o=t?" ":"\t";break;case-1:if(!t&&a)continue;o=" ";break;default:o=String.fromCharCode(i)}a=-2===i,r.push(o)}return r.join("")}(d(e),t)},sliceStream:d,write:function(e){if(o=zt(o,e),f(),null!==o[o.length-1])return[];return b(t,0),c.events=gn(i,c.events,c),c.events}};let u=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function d(e){return function(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let o;if(n===a)o=[e[n].slice(r,i)];else{if(o=e.slice(n,a),r>-1){const e=o[0];"string"==typeof e?o[0]=e.slice(r):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}(o,e)}function p(){const{_bufferIndex:e,_index:t,line:n,column:a,offset:i}=r;return{_bufferIndex:e,_index:t,line:n,column:a,offset:i}}function f(){let e;for(;r._index<o.length;){const t=o[r._index];if("string"==typeof t)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)g(t.charCodeAt(r._bufferIndex));else g(t)}}function g(e){u=u(e)}function m(e,t){t.restore()}function h(e,t){return function(n,a,i){let o,u,d,f;return Array.isArray(n)?g(n):"tokenize"in n?g([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return g([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function g(e){return o=e,u=0,0===e.length?i:m(e[u])}function m(e){return function(n){f=function(){const e=p(),t=c.previous,n=c.currentConstruct,a=c.events.length,i=Array.from(s);return{from:a,restore:o};function o(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=a,s=i,y()}}(),d=e,e.partial||(c.currentConstruct=e);if(e.name&&c.parser.constructs.disable.null.includes(e.name))return b();return e.tokenize.call(t?Object.assign(Object.create(c),t):c,l,h,b)(n)}}function h(t){return e(d,f),a}function b(e){return f.restore(),++u<o.length?m(o[u]):i}}}function b(e,t){e.resolveAll&&!i.includes(e)&&i.push(e),e.resolve&&Ut(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function y(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}const Sr=/[\0\t\n\r]/g;const wr=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ar(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Vt(n.slice(t?2:1),t?16:10)}return Bt(n)||e}const kr={}.hasOwnProperty;function xr(e,t,n){return t&&"object"==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(te),autolinkProtocol:x,autolinkEmail:x,atxHeading:i(Z),blockQuote:i(V),characterEscape:x,characterReference:x,codeFenced:i(W),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(W,o),codeText:i(Y,o),codeTextData:x,data:x,codeFlowValue:x,definition:i(K),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(X),hardBreakEscape:i(Q),hardBreakTrailing:i(Q),htmlFlow:i(J,o),htmlFlowData:x,htmlText:i(J,o),htmlTextData:x,image:i(ee),label:o,link:i(te),listItem:i(re),listItemValue:p,listOrdered:i(ne,d),listUnordered:i(ne),paragraph:i(ae),reference:B,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(Z),strong:i(ie),thematicBreak:i(se)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:H,autolinkProtocol:q,blockQuote:l(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:$,characterReference:G,codeFenced:l(h),codeFencedFence:m,codeFencedFenceInfo:f,codeFencedFenceMeta:g,codeFlowValue:T,codeIndented:l(b),codeText:l(R),codeTextData:T,data:T,definition:l(),definitionDestinationString:E,definitionLabelString:y,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(_),hardBreakTrailing:l(_),htmlFlow:l(I),htmlFlowData:T,htmlText:l(N),htmlTextData:T,image:l(D),label:L,labelText:P,lineEnding:O,link:l(C),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:U,resourceDestinationString:M,resourceTitleString:F,resource:j,setextHeading:l(k),setextHeadingLineSequence:A,setextHeadingText:w,strong:l(),thematicBreak:l()}};Or(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:s,exit:c,buffer:o,resume:u,data:n},l=[];let d=-1;for(;++d<e.length;)if("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)if("enter"===e[d][0])l.push(d);else{d=a(e,l.pop(),d)}for(d=-1;++d<e.length;){const n=t[e[d][0]];kr.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},i),e[d][1])}if(i.tokenStack.length>0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||Ir).call(i,void 0,e[0])}for(r.position={start:Tr(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Tr(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function a(e,t,n){let r,a,i,o,s=t-1,l=-1,c=!1;for(;++s<=n;){const t=e[s];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?l++:l--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||l||i||(i=s),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!l&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===l&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=s;for(a=void 0;o--;){const t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;a&&(e[a][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",a=o}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}i&&(!a||i<a)&&(r._spread=!0),r.end=Object.assign({},a?e[a][1].start:t[1].end),e.splice(a||s,0,["exit",r,t[2]]),s++,n++}if("listItemPrefix"===t[1].type){const a={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=a,e.splice(s,0,["enter",a,t[2]]),s++,n++,i=void 0,o=!0}}}return e[t][1]._spread=c,n}function i(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Tr(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),c.call(this,t)}}function c(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+dt({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||Ir).call(this,e,r[0])}n.position.end=Tr(e.end)}function u(){return Pt(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function f(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function g(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function h(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function y(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Wt(this.sliceSerialize(e)).toLowerCase()}function v(){const e=this.resume();this.stack[this.stack.length-1].title=e}function E(){const e=this.resume();this.stack[this.stack.length-1].url=e}function S(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function A(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function k(){this.data.setextHeadingSlurpLineEnding=void 0}function x(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=oe(),n.position={start:Tr(e.start),end:void 0},t.push(n)),this.stack.push(n)}function T(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Tr(e.end)}function O(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=Tr(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(x.call(this,e),T.call(this,e))}function _(){this.data.atHardBreak=!0}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function N(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.resume();this.stack[this.stack.length-1].value=e}function C(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function D(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(wr,Ar)}(t),n.identifier=Wt(t).toLowerCase()}function L(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function M(){const e=this.resume();this.stack[this.stack.length-1].url=e}function F(){const e=this.resume();this.stack[this.stack.length-1].title=e}function j(){this.data.inReference=void 0}function B(){this.data.referenceType="collapsed"}function U(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Wt(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function z(e){this.data.characterReferenceType=e.type}function $(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=Vt(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=Bt(t)}this.stack[this.stack.length-1].value+=r}function G(e){this.stack.pop().position.end=Tr(e.end)}function q(e){T.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function H(e){T.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function V(){return{type:"blockquote",children:[]}}function W(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function K(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function X(){return{type:"emphasis",children:[]}}function Z(){return{type:"heading",depth:0,children:[]}}function Q(){return{type:"break"}}function J(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}function re(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}function ae(){return{type:"paragraph",children:[]}}function ie(){return{type:"strong",children:[]}}function oe(){return{type:"text",value:""}}function se(){return{type:"thematicBreak"}}}(n)(function(e){for(;!In(e););return e}(function(e){const t={constructs:Gt([vr,...(e||{}).extensions||[]]),content:n(un),defined:[],document:n(dn),flow:n(ir),lazy:{},string:n(sr),text:n(lr)};return t;function n(e){return function(n){return Er(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(a,i,o){const s=[];let l,c,u,d,p;for(a=n+("string"==typeof a?a.toString():new TextDecoder(i||void 0).decode(a)),u=0,n="",r&&(65279===a.charCodeAt(0)&&u++,r=void 0);u<a.length;){if(Sr.lastIndex=u,l=Sr.exec(a),d=l&&void 0!==l.index?l.index:a.length,p=a.charCodeAt(d),!l){n=a.slice(u);break}if(10===p&&u===d&&e)s.push(-3),e=void 0;else switch(e&&(s.push(-5),e=void 0),u<d&&(s.push(a.slice(u,d)),t+=d-u),p){case 0:s.push(65533),t++;break;case 9:for(c=4*Math.ceil(t/4),s.push(-2);t++<c;)s.push(-1);break;case 10:s.push(-4),t=1;break;default:e=!0,t=1}u=d+1}return o&&(e&&s.push(-5),n&&s.push(n),s.push(null)),s}}()(e,t,!0))))}function Tr(e){return{line:e.line,column:e.column,offset:e.offset}}function Or(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Or(e,r):_r(e,r)}}function _r(e,t){let n;for(n in t)if(kr.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Ir(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+dt({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+dt({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+dt({start:t.start,end:t.end})+") is still open")}function Nr(e){const t=this;t.parser=function(n){return xr(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Rr(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),i=a[0];i&&"text"===i.type?i.value="["+i.value:a.unshift({type:"text",value:"["});const o=a[a.length-1];return o&&"text"===o.type?o.value+=r:a.push({type:"text",value:r}),a}function Cr(e){const t=e.spread;return null==t?e.children.length>1:t}function Dr(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const i=[];for(;r;)i.push(Pr(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(Pr(t.slice(a),a>0,!1)),i.join("")}function Pr(e,t,n){let r=0,a=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(a-1);for(;9===t||32===t;)a--,t=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}const Lr={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(r.className=["language-"+a[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=ln(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let o,s=e.footnoteCounts.get(r);void 0===s?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=i+1,s+=1,e.footnoteCounts.set(r,s);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Rr(e,t);const a={src:ln(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(a.title=r.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:ln(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Rr(e,t);const a={href:ln(r.url||"")};null!==r.title&&void 0!==r.title&&(a.title=r.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:ln(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),a=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Cr(n[r])}return t}(n):Cr(t),i={},o=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const e=r[s];(a||0!==s||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||a?o.push(e):o.push(...e.children)}const l=r[r.length-1];l&&(a||"element"!==l.type||"p"!==l.tagName)&&o.push({type:"text",value:"\n"});const c={type:"element",tagName:"li",properties:i,children:o};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){const n={},r=e.all(t);let a=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++a<r.length;){const e=r[a];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),a.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=ct(t.children[1]),o=lt(t.children[t.children.length-1]);i&&o&&(r.position={start:i,end:o}),a.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,a=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,o=i?i.length:t.children.length;let s=-1;const l=[];for(;++s<o;){const n=t.children[s],r={},o=i?i[s]:void 0;o&&(r.align=o);let c={type:"element",tagName:a,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),l.push(c)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(l,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){const n={type:"text",value:Dr(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Mr,yaml:Mr,definition:Mr,footnoteDefinition:Mr};function Mr(){}const Fr="object"==typeof self?self:globalThis,jr=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=a=>{if(e.has(a))return e.get(a);const[i,o]=t[a];switch(i){case 0:case-1:return n(o,a);case 1:{const e=n([],a);for(const t of o)e.push(r(t));return e}case 2:{const e=n({},a);for(const[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),a);case 4:{const{source:e,flags:t}=o;return n(new RegExp(e,t),a)}case 5:{const e=n(new Map,a);for(const[t,n]of o)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,a);for(const t of o)e.add(r(t));return e}case 7:{const{name:e,message:t}=o;return n(new Fr[e](t),a)}case 8:return n(BigInt(o),a);case"BigInt":return n(Object(BigInt(o)),a);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new Fr[i](o),a)};return r})(new Map,e)(0),Br="",{toString:Ur}={},{keys:zr}=Object,$r=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Ur.call(e).slice(8,-1);switch(n){case"Array":return[1,Br];case"Object":return[2,Br];case"Date":return[3,Br];case"RegExp":return[4,Br];case"Map":return[5,Br];case"Set":return[6,Br];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Gr=([e,t])=>0===e&&("function"===t||"symbol"===t),qr=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const a=(e,t)=>{const a=r.push(e)-1;return n.set(t,a),a},i=r=>{if(n.has(r))return n.get(r);let[o,s]=$r(r);switch(o){case 0:{let t=r;switch(s){case"bigint":o=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);t=null;break;case"undefined":return a([-1],r)}return a([o,t],r)}case 1:{if(s){let e=r;return"DataView"===s?e=new Uint8Array(r.buffer):"ArrayBuffer"===s&&(e=new Uint8Array(r)),a([s,[...e]],r)}const e=[],t=a([o,e],r);for(const t of r)e.push(i(t));return t}case 2:{if(s)switch(s){case"BigInt":return a([s,r.toString()],r);case"Boolean":case"Number":case"String":return a([s,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],l=a([o,n],r);for(const t of zr(r))!e&&Gr($r(r[t]))||n.push([i(t),i(r[t])]);return l}case 3:return a([o,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return a([o,{source:e,flags:t}],r)}case 5:{const t=[],n=a([o,t],r);for(const[n,a]of r)(e||!Gr($r(n))&&!Gr($r(a)))&&t.push([i(n),i(a)]);return n}case 6:{const t=[],n=a([o,t],r);for(const n of r)!e&&Gr($r(n))||t.push(i(n));return n}}const{message:l}=r;return a([o,{name:s,message:l}],r)};return i})(!(t||n),!!t,new Map,r)(e),r};var Hr="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?jr(qr(e,t)):structuredClone(e):(e,t)=>jr(qr(e,t));function Vr(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Wr(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Yr={}.hasOwnProperty,Kr={};function Xr(e,t){e.position&&(t.position=function(e){const t=ct(e),n=lt(e);if(t&&n)return{start:t,end:n}}(e))}function Zr(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,a=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&a&&Object.assign(n.properties,Hr(a)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function Qr(e,t){const n=t.data||{},r=!("value"in t)||Yr.call(n,"hProperties")||Yr.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function Jr(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function ea(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function ta(e,t){const n=function(e,t){const n=t||Kr,r=new Map,a=new Map,i=new Map,o={...Lr,...n.handlers},s={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const a=s.one(n[r],e);if(a){if(r&&"break"===n[r-1].type&&(Array.isArray(a)||"text"!==a.type||(a.value=ea(a.value)),!Array.isArray(a)&&"element"===a.type)){const e=a.children[0];e&&"text"===e.type&&(e.value=ea(e.value))}Array.isArray(a)?t.push(...a):t.push(a)}}}return t},applyData:Zr,definitionById:r,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:o,one:function(e,t){const n=e.type,r=s.handlers[n];if(Yr.call(s.handlers,n)&&r)return r(s,e,t);if(s.options.passThrough&&s.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=Hr(n);return r.children=s.all(e),r}return Hr(e)}return(s.options.unknownHandler||Qr)(s,e,t)},options:n,patch:Xr,wrap:Jr};return y(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:a,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),s}(e,t),r=n.one(e,void 0),a=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Vr,r=e.options.footnoteBackLabel||Wr,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const a=e.footnoteById.get(e.footnoteOrder[l]);if(!a)continue;const i=e.all(a),o=String(a.identifier).toUpperCase(),c=ln(o.toLowerCase());let u=0;const d=[],p=e.footnoteCounts.get(o);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(l,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(l,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const f=i[i.length-1];if(f&&"element"===f.type&&"p"===f.tagName){const e=f.children[f.children.length-1];e&&"text"===e.type?e.value+=" ":f.children.push({type:"text",value:" "}),f.children.push(...d)}else i.push(...d);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(i,!0)};e.patch(a,g),s.push(g)}if(0!==s.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Hr(o),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:"\n"},a),i}function na(e,t){return e&&"run"in e?async function(n,r){const a=ta(n,{file:r,...t});await e.run(a,r)}:function(n,r){return ta(n,{file:r,...e||t})}}function ra(e){if(e)throw e}var aa=Object.prototype.hasOwnProperty,ia=Object.prototype.toString,oa=Object.defineProperty,sa=Object.getOwnPropertyDescriptor,la=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===ia.call(e)},ca=function(e){if(!e||"[object Object]"!==ia.call(e))return!1;var t,n=aa.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&aa.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||aa.call(e,t)},ua=function(e,t){oa&&"__proto__"===t.name?oa(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},da=function(e,t){if("__proto__"===t){if(!aa.call(e,t))return;if(sa)return sa(e,t).value}return e[t]},pa=function e(){var t,n,r,a,i,o,s=arguments[0],l=1,c=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!=typeof s&&"function"!=typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=da(s,n),s!==(a=da(t,n))&&(u&&a&&(ca(a)||(i=la(a)))?(i?(i=!1,o=r&&la(r)?r:[]):o=r&&ca(r)?r:{},ua(s,{name:n,newValue:e(u,o,a)})):void 0!==a&&ua(s,{name:n,newValue:a}));return s};function fa(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function ga(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function a(i,...o){const s=e[++n];let l=-1;if(i)r(i);else{for(;++l<t.length;)null!==o[l]&&void 0!==o[l]||(o[l]=t[l]);t=o,s?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let o;r&&t.push(a);try{o=e.apply(this,t)}catch(e){if(r&&n)throw e;return a(e)}r||(o&&o.then&&"function"==typeof o.then?o.then(i,a):o instanceof Error?a(o):i(o))}function a(e,...r){n||(n=!0,t(e,...r))}function i(e){a(null,e)}}(s,a)(...o):r(null,...o)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const ma={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');ha(e);let n,r=0,a=-1,i=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1);return a<0?"":e.slice(r,a)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(a=i):(s=-1,a=o));r===a?a=o:a<0&&(a=e.length);return e.slice(r,a)},dirname:function(e){if(ha(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){ha(e);let t,n=e.length,r=-1,a=0,i=-1,o=0;for(;n--;){const s=e.codePointAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?i<0?i=n:1!==o&&(o=1):i>-1&&(o=-1);else if(t){a=n+1;break}}if(i<0||r<0||0===o||1===o&&i===r-1&&i===a+1)return"";return e.slice(i,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)ha(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){ha(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,a="",i=0,o=-1,s=0,l=-1;for(;++l<=e.length;){if(l<e.length)n=e.codePointAt(l);else{if(47===n)break;n=47}if(47===n){if(o===l-1||1===s);else if(o!==l-1&&2===s){if(a.length<2||2!==i||46!==a.codePointAt(a.length-1)||46!==a.codePointAt(a.length-2))if(a.length>2){if(r=a.lastIndexOf("/"),r!==a.length-1){r<0?(a="",i=0):(a=a.slice(0,r),i=a.length-1-a.lastIndexOf("/")),o=l,s=0;continue}}else if(a.length>0){a="",i=0,o=l,s=0;continue}t&&(a=a.length>0?a+"/..":"..",i=2)}else a.length>0?a+="/"+e.slice(o+1,l):a=e.slice(o+1,l),i=l-o-1;o=l,s=0}else 46===n&&s>-1?s++:s=-1}return a}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function ha(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ba={cwd:function(){return"/"}};function ya(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function va(e){if("string"==typeof e)e=new URL(e);else if(!ya(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const Ea=["history","path","basename","stem","extname","dirname"];class Sa{constructor(e){let t;t=e?ya(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":ba.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<Ea.length;){const e=Ea[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)Ea.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?ma.basename(this.path):void 0}set basename(e){Aa(e,"basename"),wa(e,"basename"),this.path=ma.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?ma.dirname(this.path):void 0}set dirname(e){ka(this.basename,"dirname"),this.path=ma.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?ma.extname(this.path):void 0}set extname(e){if(wa(e,"extname"),ka(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ma.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){ya(e)&&(e=va(e)),Aa(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?ma.basename(this.path,this.extname):void 0}set stem(e){Aa(e,"stem"),wa(e,"stem"),this.path=ma.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new mt(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function wa(e,t){if(e&&e.includes(ma.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ma.sep+"`")}function Aa(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ka(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const xa=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Ta={}.hasOwnProperty;class Oa extends xa{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=ga()}copy(){const e=new Oa;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(pa(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(Ra("data",this.frozen),this.namespace[e]=t,this):Ta.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Ra("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Pa(e),n=this.parser||this.Parser;return Ia("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Ia("process",this.parser||this.Parser),Na("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,a){const i=Pa(e),o=n.parse(i);function s(e,n){e||!n?a(e):r?r(n):t(void 0,n)}n.run(o,i,function(e,t,r){if(e||!t||!r)return s(e);const a=t,i=n.stringify(a,r);var o;"string"==typeof(o=i)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(o)?r.value=i:r.result=i,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),Ia("processSync",this.parser||this.Parser),Na("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,ra(e),t=r}),Da("processSync","process",n),t}run(e,t,n){Ca(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?a(void 0,n):new Promise(a);function a(a,i){const o=Pa(t);r.run(e,o,function(t,r,o){const s=r||e;t?i(t):a?a(s):n(void 0,s,o)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){ra(e),n=t,r=!0}),Da("runSync","run",r),n}stringify(e,t){this.freeze();const n=Pa(t),r=this.compiler||this.Compiler;return Na("stringify",r),Ca(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(Ra("use",this.frozen),null==e);else if("function"==typeof e)s(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?o(e):i(e)}return this;function a(e){if("function"==typeof e)s(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;s(t,n)}else i(e)}}function i(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=pa(!0,r.settings,e.settings))}function o(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){a(e[t])}}}function s(e,t){let r=-1,a=-1;for(;++r<n.length;)if(n[r][0]===e){a=r;break}if(-1===a)n.push([e,...t]);else if(t.length>0){let[r,...i]=t;const o=n[a][1];fa(o)&&fa(r)&&(r=pa(!0,o,r)),n[a]=[e,r,...i]}}}}const _a=(new Oa).freeze();function Ia(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Na(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ra(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ca(e){if(!fa(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Da(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Pa(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new Sa(e)}const La=[],Ma={allowDangerousHtml:!0},Fa=/^(https?|ircs?|mailto|xmpp)$/i,ja=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ba(e){const t=function(e){const t=e.rehypePlugins||La,n=e.remarkPlugins||La,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ma}:Ma,a=_a().use(Nr).use(n).use(na,r).use(t);return a}(e),n=function(e){const t=e.children||"",n=new Sa;"string"==typeof t&&(n.value=t);return n}(e);return function(e,t){const n=t.allowedElements,r=t.allowElement,a=t.components,i=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||Ua;for(const e of ja)Object.hasOwn(t,e.from)&&K((e.from,e.to&&e.to,e.id));t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:"root"===e.type?e.children:[e]});return y(e,c),wt(e,{Fragment:U,components:a,ignoreInvalidStyle:!0,jsx:B,jsxs:j,passKeys:!0,passNode:!0});function c(e,t,a){if("raw"===e.type&&a&&"number"==typeof t)return o?a.children.splice(t,1):a.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in Ct)if(Object.hasOwn(Ct,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Ct[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=l(String(n||""),t,e))}}if("element"===e.type){let o=n?!n.includes(e.tagName):!!i&&i.includes(e.tagName);if(!o&&r&&"number"==typeof t&&(o=!r(e,t,a)),o&&a&&"number"==typeof t)return s&&e.children?a.children.splice(t,1,...e.children):a.children.splice(t,1),t}}}(t.runSync(t.parse(n),n),e)}function Ua(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return-1===t||-1!==a&&t>a||-1!==n&&t>n||-1!==r&&t>r||Fa.test(e.slice(0,t))?e:""}function za(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;-1!==a;)r++,a=n.indexOf(t,a+t.length);return r}function $a(e,t,n){const r=v((n||{}).ignore||[]),a=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([Ga(e[0]),qa(e[1])])}return t}(t);let i=-1;for(;++i<a.length;)E(e,"text",o);function o(e,t){let n,o=-1;for(;++o<t.length;){const e=t[o],a=n?n.children:void 0;if(r(e,a?a.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=a[i][0],o=a[i][1];let s=0;const l=n.children.indexOf(e);let c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){const n=d.index,a={index:d.index,input:d.input,stack:[...t,e]};let i=o(...d,a);if("string"==typeof i&&(i=i.length>0?{type:"text",value:i}:void 0),!1===i?r.lastIndex=n+1:(s!==n&&u.push({type:"text",value:e.value.slice(s,n)}),Array.isArray(i)?u.push(...i):i&&u.push(i),s=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}c?(s<e.value.length&&u.push({type:"text",value:e.value.slice(s)}),n.children.splice(l,1,...u)):u=[e];return l+u.length}(e,t)}}function Ga(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function qa(e){return"function"==typeof e?e:function(){return e}}const Ha="phrasing",Va=["autolink","link","image","label"];function Wa(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ya(e){this.config.enter.autolinkProtocol.call(this,e)}function Ka(e){this.config.exit.autolinkProtocol.call(this,e)}function Xa(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Za(e){this.config.exit.autolinkEmail.call(this,e)}function Qa(e){this.exit(e)}function Ja(e){$a(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ei],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,ti]],{ignore:["link","linkReference"]})}function ei(e,t,n,r,a){let i="";if(!ni(a))return!1;if(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const o=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=za(e,"(");let i=za(e,")");for(;-1!==r&&a>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}(n+r);if(!o[0])return!1;const s={type:"link",title:null,url:i+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[s,{type:"text",value:o[1]}]:s}function ti(e,t,n,r){return!(!ni(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function ni(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||on(n)||an(n))&&(!t||47!==n)}function ri(){this.buffer()}function ai(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ii(){this.buffer()}function oi(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function si(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Wt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function li(e){this.exit(e)}function ci(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Wt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ui(e){this.exit(e)}function di(e,t,n,r){const a=n.createTracker(r);let i=a.move("[^");const o=n.enter("footnoteReference"),s=n.enter("reference");return i+=a.move(n.safe(n.associationId(e),{after:"]",before:i})),s(),o(),i+=a.move("]"),i}function pi(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,a){const i=r.createTracker(a);let o=i.move("[^");const s=r.enter("footnoteDefinition"),l=r.enter("label");o+=i.move(r.safe(r.associationId(e),{before:o,after:"]"})),l(),o+=i.move("]:"),e.children&&e.children.length>0&&(i.shift(4),o+=i.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,i.current()),t?gi:fi)));return s(),o},footnoteReference:di},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function fi(e,t,n){return 0===t?e:gi(e,t,n)}function gi(e,t,n){return(n?"":" ")+e}di.peek=function(){return"["};const mi=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function hi(e){this.enter({type:"delete",children:[]},e)}function bi(e){this.exit(e)}function yi(e,t,n,r){const a=n.createTracker(r),i=n.enter("strikethrough");let o=a.move("~~");return o+=n.containerPhrasing(e,{...a.current(),before:o,after:"~"}),o+=a.move("~~"),i(),o}function vi(e){return e.length}function Ei(e){return null==e?"":String(e)}function Si(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function wi(e,t,n){return">"+(n?"":" ")+e}function Ai(e,t){return ki(e,t.inConstruct,!0)&&!ki(e,t.notInConstruct,!1)}function ki(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function xi(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if("\n"===n.unsafe[a].character&&Ai(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function Ti(e,t,n){return(n?"":" ")+e}function Oi(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function _i(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Ii(e,t,n){const r=fn(e),a=fn(t);return void 0===r?void 0===a?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===a?{inside:!1,outside:!1}:1===a?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Ni(e,t,n,r){const a=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),i=n.enter("emphasis"),o=n.createTracker(r),s=o.move(a);let l=o.move(n.containerPhrasing(e,{after:a,before:s,...o.current()}));const c=l.charCodeAt(0),u=Ii(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=_i(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=Ii(r.after.charCodeAt(0),d,a);p.inside&&(l=l.slice(0,-1)+_i(d));const f=o.move(a);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+f}function Ri(e){return e.value||""}function Ci(e,t,n,r){const a=Oi(n),i='"'===a?"Quote":"Apostrophe",o=n.enter("image");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),c+=l.move(")"),o(),c}function Di(e,t,n,r){const a=e.referenceType,i=n.enter("imageReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("![");const c=n.safe(e.alt,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=u,i(),"full"!==a&&c&&c===d?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function Pi(e,t,n){let r=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const e=n.unsafe[i],t=n.compilePattern(e);let a;if(e.atBreak)for(;a=t.exec(r);){let e=a.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(a.index+1)}}return a+r+a}function Li(e,t){const n=Pt(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function Mi(e,t,n,r){const a=Oi(n),i='"'===a?"Quote":"Apostrophe",o=n.createTracker(r);let s,l;if(Li(e,n)){const t=n.stack;n.stack=[],s=n.enter("autolink");let r=o.move("<");return r+=o.move(n.containerPhrasing(e,{before:r,after:">",...o.current()})),r+=o.move(">"),s(),n.stack=t,r}s=n.enter("link"),l=n.enter("label");let c=o.move("[");return c+=o.move(n.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(n.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(l=n.enter("destinationRaw"),c+=o.move(n.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=o.move(" "+a),c+=o.move(n.safe(e.title,{before:c,after:a,...o.current()})),c+=o.move(a),l()),c+=o.move(")"),s(),c}function Fi(e,t,n,r){const a=e.referenceType,i=n.enter("linkReference");let o=n.enter("label");const s=n.createTracker(r);let l=s.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...s.current()});l+=s.move(c+"]["),o();const u=n.stack;n.stack=[],o=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...s.current()});return o(),n.stack=u,i(),"full"!==a&&c&&c===d?"shortcut"===a?l=l.slice(0,-1):l+=s.move("]"):l+=s.move(d+"]"),l}function ji(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Bi(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}yi.peek=function(){return"~"},Ni.peek=function(e,t,n){return n.options.emphasis||"*"},Ri.peek=function(){return"<"},Ci.peek=function(){return"!"},Di.peek=function(){return"!"},Pi.peek=function(){return"`"},Mi.peek=function(e,t,n){return Li(e,n)?"<":"["},Fi.peek=function(){return"["};const Ui=v(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function zi(e,t,n,r){const a=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),i=n.enter("strong"),o=n.createTracker(r),s=o.move(a+a);let l=o.move(n.containerPhrasing(e,{after:a,before:s,...o.current()}));const c=l.charCodeAt(0),u=Ii(r.before.charCodeAt(r.before.length-1),c,a);u.inside&&(l=_i(c)+l.slice(1));const d=l.charCodeAt(l.length-1),p=Ii(r.after.charCodeAt(0),d,a);p.inside&&(l=l.slice(0,-1)+_i(d));const f=o.move(a+a);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:u.outside},s+l+f}zi.peek=function(e,t,n){return n.options.strong||"*"};const $i={blockquote:function(e,t,n,r){const a=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const o=n.indentLines(n.containerFlow(e,i.current()),wi);return a(),o},break:xi,code:function(e,t,n,r){const a=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),i=e.value||"",o="`"===a?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(i,Ti);return e(),t}const s=n.createTracker(r),l=a.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),a=r,i=0,o=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===a?++i>o&&(o=i):i=1,a=r+t.length,r=n.indexOf(t,a);return o}(i,a)+1,3)),c=n.enter("codeFenced");let u=s.move(l);if(e.lang){const t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${o}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:"\n",encode:["`"],...s.current()})),t()}return u+=s.move("\n"),i&&(u+=s.move(i+"\n")),u+=s.move(l),c(),u},definition:function(e,t,n,r){const a=Oi(n),i='"'===a?"Quote":"Apostrophe",o=n.enter("definition");let s=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(s=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...l.current()}))),s(),e.title&&(s=n.enter(`title${i}`),c+=l.move(" "+a),c+=l.move(n.safe(e.title,{before:c,after:a,...l.current()})),c+=l.move(a),s()),o(),c},emphasis:Ni,hardBreak:xi,heading:function(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(function(e,t){let n=!1;return y(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,S}),Boolean((!e.depth||e.depth<3)&&Pt(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),o=n.containerPhrasing(e,{...i.current(),before:"\n",after:"\n"});return r(),t(),o+"\n"+(1===a?"=":"-").repeat(o.length-(Math.max(o.lastIndexOf("\r"),o.lastIndexOf("\n"))+1))}const o="#".repeat(a),s=n.enter("headingAtx"),l=n.enter("phrasing");i.move(o+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...i.current()});return/^[\t ]/.test(c)&&(c=_i(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),l(),s(),c},html:Ri,image:Ci,imageReference:Di,inlineCode:Pi,link:Mi,linkReference:Fi,list:function(e,t,n,r){const a=n.enter("list"),i=n.bulletCurrent;let o=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):ji(n);const s=e.ordered?"."===o?")":".":function(e){const t=ji(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let l=!(!t||!n.bulletLastUsed)&&o===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==o&&"-"!==o||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(l=!0),Bi(n)===o&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){l=!0;break}}}}l&&(o=s),n.bulletCurrent=o;const c=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=i,a(),c},listItem:function(e,t,n,r){const a=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let i=n.bulletCurrent||ji(n);t&&"list"===t.type&&t.ordered&&(i=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+i);let o=i.length+1;("tab"===a||"mixed"===a&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));const s=n.createTracker(r);s.move(i+" ".repeat(o-i.length)),s.shift(o);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),function(e,t,n){if(t)return(n?"":" ".repeat(o))+e;return(n?i:i+" ".repeat(o-i.length))+e});return l(),c},paragraph:function(e,t,n,r){const a=n.enter("paragraph"),i=n.enter("phrasing"),o=n.containerPhrasing(e,r);return i(),a(),o},root:function(e,t,n,r){return(e.children.some(function(e){return Ui(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:zi,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(Bi(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function Gi(e){const t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function qi(e){this.exit(e),this.data.inTable=void 0}function Hi(e){this.enter({type:"tableRow",children:[]},e)}function Vi(e){this.exit(e)}function Wi(e){this.enter({type:"tableCell",children:[]},e)}function Yi(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Ki));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Ki(e,t){return"|"===t?t:e}function Xi(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=$i.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return s(function(e,t,n){const r=e.children;let a=-1;const i=[],o=t.enter("table");for(;++a<r.length;)i[a]=l(r[a],t,n);return o(),i}(e,n,r),e.align)},tableCell:o,tableRow:function(e,t,n,r){const a=l(e,n,r),i=s([a]);return i.slice(0,i.indexOf("\n"))}}};function o(e,t,n,r){const a=n.enter("tableCell"),o=n.enter("phrasing"),s=n.containerPhrasing(e,{...r,before:i,after:i});return o(),a(),s}function s(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||vi,i=[],o=[],s=[],l=[];let c=0,u=-1;for(;++u<e.length;){const t=[],r=[];let i=-1;for(e[u].length>c&&(c=e[u].length);++i<e[u].length;){const o=Ei(e[u][i]);if(!1!==n.alignDelimiters){const e=a(o);r[i]=e,(void 0===l[i]||e>l[i])&&(l[i]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if("object"==typeof r&&"length"in r)for(;++d<c;)i[d]=Si(r[d]);else{const e=Si(r);for(;++d<c;)i[d]=e}d=-1;const p=[],f=[];for(;++d<c;){const e=i[d];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let a=!1===n.alignDelimiters?1:Math.max(1,l[d]-t.length-r.length);const o=t+"-".repeat(a)+r;!1!==n.alignDelimiters&&(a=t.length+a+r.length,a>l[d]&&(l[d]=a),f[d]=a),p[d]=o}o.splice(1,0,p),s.splice(1,0,f),u=-1;const g=[];for(;++u<o.length;){const e=o[u],t=s[u];d=-1;const r=[];for(;++d<c;){const a=e[d]||"";let o="",s="";if(!1!==n.alignDelimiters){const e=l[d]-(t[d]||0),n=i[d];114===n?o=" ".repeat(e):99===n?e%2?(o=" ".repeat(e/2+.5),s=" ".repeat(e/2-.5)):(o=" ".repeat(e/2),s=o):s=" ".repeat(e)}!1===n.delimiterStart||d||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===a||!1===n.delimiterStart&&!d||r.push(" "),!1!==n.alignDelimiters&&r.push(o),r.push(a),!1!==n.alignDelimiters&&r.push(s),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&d===c-1||r.push("|")}g.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return g.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:a})}function l(e,t,n){const r=e.children;let a=-1;const i=[],s=t.enter("tableRow");for(;++a<r.length;)i[a]=o(r[a],0,t,n);return s(),i}}function Zi(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function Qi(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let a,i=-1;for(;++i<r.length;){const e=r[i];if("paragraph"===e.type){a=e;break}}a===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Ji(e,t,n,r){const a=e.children[0],i="boolean"==typeof e.checked&&a&&"paragraph"===a.type,o="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);i&&s.move(o);let l=$i.listItem(e,t,n,{...r,...s.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),l}const eo={tokenize:function(e,t,n){let r=0;return function t(i){if((87===i||119===i)&&r<3)return r++,e.consume(i),t;if(46===i&&3===r)return e.consume(i),a;return n(i)};function a(e){return null===e?n(e):t(e)}},partial:!0},to={tokenize:function(e,t,n){let r,a,i;return o;function o(t){return 46===t||95===t?e.check(ro,l,s)(t):null===t||nn(t)||on(t)||45!==t&&an(t)?l(t):(i=!0,e.consume(t),o)}function s(t){return 95===t?r=!0:(a=r,r=void 0),e.consume(t),o}function l(e){return a||r||!i?n(e):t(e)}},partial:!0},no={tokenize:function(e,t){let n=0,r=0;return a;function a(o){return 40===o?(n++,e.consume(o),a):41===o&&r<n?i(o):33===o||34===o||38===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||60===o||63===o||93===o||95===o||126===o?e.check(ro,t,i)(o):null===o||nn(o)||on(o)?t(o):(e.consume(o),a)}function i(t){return 41===t&&r++,e.consume(t),a}},partial:!0},ro={tokenize:function(e,t,n){return r;function r(o){return 33===o||34===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||63===o||95===o||126===o?(e.consume(o),r):38===o?(e.consume(o),i):93===o?(e.consume(o),a):60===o||null===o||nn(o)||on(o)?t(o):n(o)}function a(e){return null===e||40===e||91===e||nn(e)||on(e)?t(e):r(e)}function i(e){return Yt(e)?o(e):n(e)}function o(t){return 59===t?(e.consume(t),r):Yt(t)?(e.consume(t),o):n(t)}},partial:!0},ao={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return Kt(e)?n(e):t(e)}},partial:!0},io={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!uo.call(r,r.previous)||mo(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(eo,e.attempt(to,e.attempt(no,a),n),n)(t)};function a(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:uo},oo={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let a="",i=!1;return function(t){if((72===t||104===t)&&po.call(r,r.previous)&&!mo(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(t),e.consume(t),o;return n(t)};function o(t){if(Yt(t)&&a.length<5)return a+=String.fromCodePoint(t),e.consume(t),o;if(58===t){const n=a.toLowerCase();if("http"===n||"https"===n)return e.consume(t),s}return n(t)}function s(t){return 47===t?(e.consume(t),i?l:(i=!0,s)):n(t)}function l(t){return null===t||Zt(t)||nn(t)||on(t)||an(t)?n(t):e.attempt(to,e.attempt(no,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:po},so={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let a,i;return function(t){if(!go(t)||!fo.call(r,r.previous)||mo(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(t)};function o(t){return go(t)?(e.consume(t),o):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(ao,c,l)(t):45===t||95===t||Kt(t)?(i=!0,e.consume(t),s):c(t)}function l(t){return e.consume(t),a=!0,s}function c(o){return i&&a&&Yt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:fo},lo={};let co=48;for(;co<123;)lo[co]=so,co++,58===co?co=65:91===co&&(co=97);function uo(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||nn(e)}function po(e){return!Yt(e)}function fo(e){return!(47===e||go(e))}function go(e){return 43===e||45===e||46===e||95===e||Kt(e)}function mo(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}lo[43]=so,lo[45]=so,lo[46]=so,lo[95]=so,lo[72]=[so,oo],lo[104]=[so,oo],lo[87]=[so,io],lo[119]=[so,io];const ho={tokenize:function(e,t,n){const r=this;return cn(e,function(e){const a=r.events[r.events.length-1];return a&&"gfmFootnoteDefinitionIndent"===a[1].type&&4===a[2].sliceSerialize(a[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function bo(e,t,n){const r=this;let a=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;a--;){const e=r.events[a][1];if("labelImage"===e.type){o=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(a){if(!o||!o._balanced)return n(a);const s=Wt(r.sliceSerialize({start:o.end,end:r.now()}));if(94!==s.codePointAt(0)||!i.includes(s.slice(1)))return n(a);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)}}function yo(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function vo(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(s){if(o>999||93===s&&!i||null===s||91===s||nn(s))return n(s);if(93===s){e.exit("chunkString");const i=e.exit("gfmFootnoteCallString");return a.includes(Wt(r.sliceSerialize(i)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return nn(s)||(i=!0),o++,e.consume(s),92===s?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,l):l(t)}}function Eo(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,o,s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!o||null===t||91===t||nn(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return i=Wt(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return nn(t)||(o=!0),s++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(i)||a.push(i),cn(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function So(e,t,n){return e.check(yn,t,e.attempt(ho,t,n))}function wo(e){e.exit("gfmFootnoteDefinition")}function Ao(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const a=this.previous,i=this.events;let o=0;return function(t){if(126===a&&"characterEscape"!==i[i.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(i){const l=fn(a);if(126===i)return o>1?r(i):(e.consume(i),o++,s);if(o<2&&!t)return r(i);const c=e.exit("strikethroughSequenceTemporary"),u=fn(i);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(i)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const a={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},i={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",a,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",i,t]],s=t.parser.constructs.insideSpan.null;s&&Ut(o,o.length,0,gn(s,e.slice(r+1,n),t)),Ut(o,o.length,0,[["exit",i,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",a,t]]),Ut(e,r-1,n-r+3,o),n=r+o.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class ko{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let a=0;if(0===n&&0===r.length)return;for(;a<e.map.length;){if(e.map[a][0]===t)return e.map[a][1]+=n,void e.map[a][2].push(...r);a+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function xo(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if("enter"===a[0])"tableContent"===a[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===a[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===a[1].type)break}else"enter"===a[0]&&"tableDelimiterRow"===a[1].type&&(n=!0);t+=1}return r}function To(e,t,n){const r=this;let a,i=0,o=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const a=t>-1?r.events[t][1].type:null,i="tableHead"===a||"tableRow"===a?E:s;if(i===E&&r.parser.lazy[r.now().line])return n(e);return i(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return a=!0,o+=1,l(e)}(t)}function l(t){return null===t?n(t):tn(t)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):rn(t)?cn(e,l,"whitespace")(t):(o+=1,a&&(a=!1,i+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),a=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||nn(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),a=!1,rn(t)?cn(e,p,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t))}function p(t){return 45===t||58===t?g(t):124===t?(a=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):v(t)}function f(t){return rn(t)?cn(e,g,"whitespace")(t):g(t)}function g(t){return 58===t?(o+=1,a=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(o+=1,m(t)):null===t||tn(t)?y(t):v(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),h(t)):v(t)}function h(t){return 45===t?(e.consume(t),h):58===t?(a=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(t))}function b(t){return rn(t)?cn(e,y,"whitespace")(t):y(t)}function y(n){return 124===n?p(n):(null===n||tn(n))&&a&&i===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):v(n)}function v(e){return n(e)}function E(t){return e.enter("tableRow"),S(t)}function S(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),S):null===n||tn(n)?(e.exit("tableRow"),t(n)):rn(n)?cn(e,S,"whitespace")(n):(e.enter("data"),w(n))}function w(t){return null===t||124===t||nn(t)?(e.exit("data"),S(t)):(e.consume(t),92===t?A:w)}function A(t){return 92===t||124===t?(e.consume(t),w):w(t)}}function Oo(e,t){let n,r,a,i=-1,o=!0,s=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,d=0;const p=new ko;for(;++i<e.length;){const f=e[i],g=f[1];"enter"===f[0]?"tableHead"===g.type?(u=!1,0!==d&&(Io(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(i,0,[["enter",n,t]])):"tableRow"===g.type||"tableDelimiterRow"===g.type?(o=!0,a=void 0,l=[0,0,0,0],c=[0,i+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(i,0,[["enter",r,t]])),s="tableDelimiterRow"===g.type?2:r?3:1):!s||"data"!==g.type&&"tableDelimiterMarker"!==g.type&&"tableDelimiterFiller"!==g.type?"tableCellDivider"===g.type&&(o?o=!1:(0!==l[1]&&(c[0]=c[1],a=_o(p,t,l,s,void 0,a)),l=c,c=[l[1],i,0,0])):(o=!1,0===c[2]&&(0!==l[1]&&(c[0]=c[1],a=_o(p,t,l,s,void 0,a),l=[0,0,0,0]),c[2]=i)):"tableHead"===g.type?(u=!0,d=i):"tableRow"===g.type||"tableDelimiterRow"===g.type?(d=i,0!==l[1]?(c[0]=c[1],a=_o(p,t,l,s,i,a)):0!==c[1]&&(a=_o(p,t,c,s,i,a)),s=0):!s||"data"!==g.type&&"tableDelimiterMarker"!==g.type&&"tableDelimiterFiller"!==g.type||(c[3]=i)}for(0!==d&&Io(p,t,d,n,r),p.consume(t.events),i=-1;++i<t.events.length;){const e=t.events[i];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=xo(t.events,i))}return e}function _o(e,t,n,r,a,i){const o=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(i.end=Object.assign({},No(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const s=No(t.events,n[1]);if(i={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",i,t]]),0!==n[2]){const a=No(t.events,n[2]),i=No(t.events,n[3]),o={type:"tableContent",start:Object.assign({},a),end:Object.assign({},i)};if(e.add(n[2],0,[["enter",o,t]]),2!==r){const r=t.events[n[2]],a=t.events[n[3]];if(r[1].end=Object.assign({},a[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==a&&(i.end=Object.assign({},No(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function Io(e,t,n,r,a){const i=[],o=No(t.events,n);a&&(a.end=Object.assign({},o),i.push(["exit",a,t])),r.end=Object.assign({},o),i.push(["exit",r,t]),e.add(n+1,0,i)}function No(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const Ro={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),a};function a(t){return nn(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),i):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),i):n(t)}function i(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(t)}function o(r){return tn(r)?t(r):rn(r)?e.check({tokenize:Co},t,n)(r):n(r)}}};function Co(e,t,n){return cn(e,function(e){return null===e?n(e):t(e)},"whitespace")}const Do={};function Po(e){const t=e||Do,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),a=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),i=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return Gt([{text:lo},{document:{91:{name:"gfmFootnoteDefinition",tokenize:Eo,continuation:{tokenize:So},exit:wo}},text:{91:{name:"gfmFootnoteCall",tokenize:vo},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:bo,resolveTo:yo}}},Ao(e),{flow:{null:{name:"table",tokenize:To,resolveAll:Oo}}},{text:{91:Ro}}])}(t)),a.push([{transforms:[Ja],enter:{literalAutolink:Wa,literalAutolinkEmail:Ya,literalAutolinkHttp:Ya,literalAutolinkWww:Ya},exit:{literalAutolink:Qa,literalAutolinkEmail:Za,literalAutolinkHttp:Ka,literalAutolinkWww:Xa}},{enter:{gfmFootnoteCallString:ri,gfmFootnoteCall:ai,gfmFootnoteDefinitionLabelString:ii,gfmFootnoteDefinition:oi},exit:{gfmFootnoteCallString:si,gfmFootnoteCall:li,gfmFootnoteDefinitionLabelString:ci,gfmFootnoteDefinition:ui}},{canContainEols:["delete"],enter:{strikethrough:hi},exit:{strikethrough:bi}},{enter:{table:Gi,tableData:Wi,tableHeader:Wi,tableRow:Hi},exit:{codeText:Yi,table:qi,tableData:Vi,tableHeader:Vi,tableRow:Vi}},{exit:{taskListCheckValueChecked:Zi,taskListCheckValueUnchecked:Zi,paragraph:Qi}}]),i.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ha,notInConstruct:Va},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ha,notInConstruct:Va},{character:":",before:"[ps]",after:"\\/",inConstruct:Ha,notInConstruct:Va}]},pi(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:mi}],handlers:{delete:yi}},Xi(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Ji}}]}}(t))}function Lo(){return{type:"break"}}function Mo(){return function(e){!function(e){$a(e,[/\r?\n|\r/g,Lo])}(e)}}function Fo(){return e=>{y(e,"listItem",e=>{y(e,"break",(e,t,n)=>{n&&void 0!==t&&(n.children[t]={type:"text",value:"\n"})})})}}function jo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Bo(e){return function(e){if(Array.isArray(e))return jo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return jo(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?jo(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Uo(e){return Uo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Uo(e)}function zo(e){var t=function(e,t){if("object"!=Uo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Uo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Uo(t)?t:t+""}function $o(e,t,n){return(t=zo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Go(){return Go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Go.apply(null,arguments)}function qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ho(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qo(Object(n),!0).forEach(function(t){$o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Vo={};function Wo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return function(e){if(0===e.length||1===e.length)return e;var t,n,r=e.join(".");return Vo[r]||(Vo[r]=0===(n=(t=e).length)||1===n?t:2===n?[t[0],t[1],"".concat(t[0],".").concat(t[1]),"".concat(t[1],".").concat(t[0])]:3===n?[t[0],t[1],t[2],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0])]:n>=4?[t[0],t[1],t[2],t[3],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[2],".").concat(t[3]),"".concat(t[3],".").concat(t[0]),"".concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[0]),"".concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[3],".").concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[2],".").concat(t[1],".").concat(t[0])]:void 0),Vo[r]}(e.filter(function(e){return"token"!==e})).reduce(function(e,t){return Ho(Ho({},e),n[t])},t)}function Yo(e){return e.join(" ")}function Ko(e){var n=e.node,r=e.stylesheet,a=e.style,i=void 0===a?{}:a,o=e.useInlineStyles,s=e.key,l=n.properties,c=n.type,u=n.tagName,d=n.value;if("text"===c)return d;if(u){var p,f=function(e,t){var n=0;return function(r){return n+=1,r.map(function(r,a){return Ko({node:r,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(a)})})}}(r,o);if(o){var g=Object.keys(r).reduce(function(e,t){return t.split(".").forEach(function(t){e.includes(t)||e.push(t)}),e},[]),m=l.className&&l.className.includes("token")?["token"]:[],h=l.className&&m.concat(l.className.filter(function(e){return!g.includes(e)}));p=Ho(Ho({},l),{},{className:Yo(h)||void 0,style:Wo(l.className,Object.assign({},l.style,i),r)})}else p=Ho(Ho({},l),{},{className:Yo(l.className)});var b=f(n.children);return t.createElement(u,Go({key:s},p),b)}}var Xo=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function Zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zo(Object(n),!0).forEach(function(t){$o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Jo=/\n/g;function es(e){var n=e.codeString,r=e.codeStyle,a=e.containerStyle,i=void 0===a?{float:"left",paddingRight:"10px"}:a,o=e.numberStyle,s=void 0===o?{}:o,l=e.startingLineNumber;return t.createElement("code",{style:Object.assign({},r,i)},function(e){var n=e.lines,r=e.startingLineNumber,a=e.style;return n.map(function(e,n){var i=n+r;return t.createElement("span",{key:"line-".concat(n),className:"react-syntax-highlighter-line-number",style:"function"==typeof a?a(i):a},"".concat(i,"\n"))})}({lines:n.replace(/\n$/,"").split("\n"),style:s,startingLineNumber:l}))}function ts(e){return"".concat(e.toString().length,".25em")}function ns(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function rs(e,t,n){var r={display:"inline-block",minWidth:ts(n),paddingRight:"1em",textAlign:"right",userSelect:"none"},a="function"==typeof e?e(t):e;return Qo(Qo({},r),a)}function as(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,a=e.largestLineNumber,i=e.showInlineLineNumbers,o=e.lineProps,s=void 0===o?{}:o,l=e.className,c=void 0===l?[]:l,u=e.showLineNumbers,d=e.wrapLongLines,p=e.wrapLines,f=void 0!==p&&p?Qo({},"function"==typeof s?s(n):s):{};if(f.className=f.className?[].concat(Bo(f.className.trim().split(/\s+/)),Bo(c)):c,n&&i){var g=rs(r,n,a);t.unshift(ns(n,g))}return d&u&&(f.style=Qo({display:"flex"},f.style)),{type:"element",tagName:"span",properties:f,children:t}}function is(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=0;r<e.length;r++){var a=e[r];if("text"===a.type)n.push(as({children:[a],className:Bo(new Set(t))}));else if(a.children){var i=t.concat(a.properties.className);is(a.children,i).forEach(function(e){return n.push(e)})}}return n}function os(e,t,n,r,a,i,o,s,l){var c,u=is(e.value),d=[],p=-1,f=0;function g(e,i){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return t||c.length>0?function(e,i){return as({children:e,lineNumber:i,lineNumberStyle:s,largestLineNumber:o,showInlineLineNumbers:a,lineProps:n,className:arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],showLineNumbers:r,wrapLongLines:l,wrapLines:t})}(e,i,c):function(e,t){if(r&&t&&a){var n=rs(s,t,o);e.unshift(ns(t,n))}return e}(e,i)}for(var m=function(){var e=u[f],t=e.children[0].value;if(t.match(Jo)){var n=t.split("\n");n.forEach(function(t,a){var o=r&&d.length+i,s={type:"text",value:"".concat(t,"\n")};if(0===a){var l=g(u.slice(p+1,f).concat(as({children:[s],className:e.properties.className})),o);d.push(l)}else if(a===n.length-1){var c=u[f+1]&&u[f+1].children&&u[f+1].children[0],m={type:"text",value:"".concat(t)};if(c){var h=as({children:[m],className:e.properties.className});u.splice(f+1,0,h)}else{var b=g([m],o,e.properties.className);d.push(b)}}else{var y=g([s],o,e.properties.className);d.push(y)}}),p=f}f++};f<u.length;)m();if(p!==u.length-1){var h=u.slice(p+1,u.length);if(h&&h.length){var b=g(h,r&&d.length+i);d.push(b)}}return t?d:(c=[]).concat.apply(c,d)}function ss(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(e,t){return Ko({node:e,stylesheet:n,useInlineStyles:r,key:"code-segment-".concat(t)})})}function ls(e){return e&&void 0!==e.highlightAuto}var cs=function(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var r in n)us.call(n,r)&&(e[r]=n[r])}return e},us=Object.prototype.hasOwnProperty;var ds=fs,ps=fs.prototype;function fs(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}ps.space=null,ps.normal={},ps.property={};var gs=cs,ms=ds,hs=function(e){var t,n,r=e.length,a=[],i=[],o=-1;for(;++o<r;)t=e[o],a.push(t.property),i.push(t.normal),n=t.space;return new ms(gs.apply(null,a),gs.apply(null,i),n)};var bs=function(e){return e.toLowerCase()};var ys=Es,vs=Es.prototype;function Es(e,t){this.property=e,this.attribute=t}vs.space=null,vs.attribute=null,vs.property=null,vs.boolean=!1,vs.booleanish=!1,vs.overloadedBoolean=!1,vs.number=!1,vs.commaSeparated=!1,vs.spaceSeparated=!1,vs.commaOrSpaceSeparated=!1,vs.mustUseProperty=!1,vs.defined=!1;var Ss={},ws=0;function As(){return Math.pow(2,++ws)}Ss.boolean=As(),Ss.booleanish=As(),Ss.overloadedBoolean=As(),Ss.number=As(),Ss.spaceSeparated=As(),Ss.commaSeparated=As(),Ss.commaOrSpaceSeparated=As();var ks=ys,xs=Ss,Ts=Is;Is.prototype=new ks,Is.prototype.defined=!0;var Os=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],_s=Os.length;function Is(e,t,n,r){var a,i=-1;for(Ns(this,"space",r),ks.call(this,e,t);++i<_s;)Ns(this,a=Os[i],(n&xs[a])===xs[a])}function Ns(e,t,n){n&&(e[t]=n)}var Rs=bs,Cs=ds,Ds=Ts,Ps=function(e){var t,n,r=e.space,a=e.mustUseProperty||[],i=e.attributes||{},o=e.properties,s=e.transform,l={},c={};for(t in o)n=new Ds(t,s(i,t),o[t],r),-1!==a.indexOf(t)&&(n.mustUseProperty=!0),l[t]=n,c[Rs(t)]=t,c[Rs(n.attribute)]=t;return new Cs(l,c,r)};var Ls=Ps({space:"xlink",transform:function(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});var Ms=Ps({space:"xml",transform:function(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});var Fs=function(e,t){return t in e?e[t]:t};var js=Fs,Bs=function(e,t){return js(e,t.toLowerCase())};var Us=Ps({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Bs,properties:{xmlns:null,xmlnsXLink:null}}),zs=Ss,$s=Ps,Gs=zs.booleanish,qs=zs.number,Hs=zs.spaceSeparated,Vs=$s({transform:function(e,t){return"role"===t?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Gs,ariaAutoComplete:null,ariaBusy:Gs,ariaChecked:Gs,ariaColCount:qs,ariaColIndex:qs,ariaColSpan:qs,ariaControls:Hs,ariaCurrent:null,ariaDescribedBy:Hs,ariaDetails:null,ariaDisabled:Gs,ariaDropEffect:Hs,ariaErrorMessage:null,ariaExpanded:Gs,ariaFlowTo:Hs,ariaGrabbed:Gs,ariaHasPopup:null,ariaHidden:Gs,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Hs,ariaLevel:qs,ariaLive:null,ariaModal:Gs,ariaMultiLine:Gs,ariaMultiSelectable:Gs,ariaOrientation:null,ariaOwns:Hs,ariaPlaceholder:null,ariaPosInSet:qs,ariaPressed:Gs,ariaReadOnly:Gs,ariaRelevant:null,ariaRequired:Gs,ariaRoleDescription:Hs,ariaRowCount:qs,ariaRowIndex:qs,ariaRowSpan:qs,ariaSelected:Gs,ariaSetSize:qs,ariaSort:null,ariaValueMax:qs,ariaValueMin:qs,ariaValueNow:qs,ariaValueText:null,role:null}});var Ws=Ss,Ys=Ps,Ks=Bs,Xs=Ws.boolean,Zs=Ws.overloadedBoolean,Qs=Ws.booleanish,Js=Ws.number,el=Ws.spaceSeparated,tl=Ws.commaSeparated,nl=hs([Ms,Ls,Us,Vs,Ys({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Ks,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:tl,acceptCharset:el,accessKey:el,action:null,allow:null,allowFullScreen:Xs,allowPaymentRequest:Xs,allowUserMedia:Xs,alt:null,as:null,async:Xs,autoCapitalize:null,autoComplete:el,autoFocus:Xs,autoPlay:Xs,capture:Xs,charSet:null,checked:Xs,cite:null,className:el,cols:Js,colSpan:null,content:null,contentEditable:Qs,controls:Xs,controlsList:el,coords:Js|tl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Xs,defer:Xs,dir:null,dirName:null,disabled:Xs,download:Zs,draggable:Qs,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Xs,formTarget:null,headers:el,height:Js,hidden:Xs,high:Js,href:null,hrefLang:null,htmlFor:el,httpEquiv:el,id:null,imageSizes:null,imageSrcSet:tl,inputMode:null,integrity:null,is:null,isMap:Xs,itemId:null,itemProp:el,itemRef:el,itemScope:Xs,itemType:el,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Xs,low:Js,manifest:null,max:null,maxLength:Js,media:null,method:null,min:null,minLength:Js,multiple:Xs,muted:Xs,name:null,nonce:null,noModule:Xs,noValidate:Xs,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu: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,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:Xs,optimum:Js,pattern:null,ping:el,placeholder:null,playsInline:Xs,poster:null,preload:null,readOnly:Xs,referrerPolicy:null,rel:el,required:Xs,reversed:Xs,rows:Js,rowSpan:Js,sandbox:el,scope:null,scoped:Xs,seamless:Xs,selected:Xs,shape:null,size:Js,sizes:null,slot:null,span:Js,spellCheck:Qs,src:null,srcDoc:null,srcLang:null,srcSet:tl,start:Js,step:null,style:null,tabIndex:Js,target:null,title:null,translate:null,type:null,typeMustMatch:Xs,useMap:null,value:Qs,width:Js,wrap:null,align:null,aLink:null,archive:el,axis:null,background:null,bgColor:null,border:Js,borderColor:null,bottomMargin:Js,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Xs,declare:Xs,event:null,face:null,frame:null,frameBorder:null,hSpace:Js,leftMargin:Js,link:null,longDesc:null,lowSrc:null,marginHeight:Js,marginWidth:Js,noResize:Xs,noHref:Xs,noShade:Xs,noWrap:Xs,object:null,profile:null,prompt:null,rev:null,rightMargin:Js,rules:null,scheme:null,scrolling:Qs,standby:null,summary:null,text:null,topMargin:Js,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Js,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Xs,disableRemotePlayback:Xs,prefix:null,property:null,results:Js,security:null,unselectable:null}})]),rl=bs,al=Ts,il=ys,ol="data",sl=function(e,t){var n=rl(t),r=t,a=il;if(n in e.normal)return e.property[e.normal[n]];n.length>4&&n.slice(0,4)===ol&&ll.test(t)&&("-"===t.charAt(4)?r=function(e){var t=e.slice(5).replace(cl,pl);return ol+t.charAt(0).toUpperCase()+t.slice(1)}(t):t=function(e){var t=e.slice(4);if(cl.test(t))return e;t=t.replace(ul,dl),"-"!==t.charAt(0)&&(t="-"+t);return ol+t}(t),a=al);return new a(r,t)},ll=/^data[-\w.:]+$/i,cl=/-[a-z]/g,ul=/[A-Z]/g;function dl(e){return"-"+e.toLowerCase()}function pl(e){return e.charAt(1).toUpperCase()}var fl=function(e,t){var n,r,a,i=e||"",o=t||"div",s={},l=0;for(;l<i.length;)gl.lastIndex=l,a=gl.exec(i),(n=i.slice(l,a?a.index:i.length))&&(r?"#"===r?s.id=n:s.className?s.className.push(n):s.className=[n]:o=n,l+=n.length),a&&(r=a[0],l++);return{type:"element",tagName:o,properties:s,children:[]}},gl=/[#.]/g;var ml={parse:function(e){var t=String(e||hl).trim();return t===hl?[]:t.split(yl)},stringify:function(e){return e.join(bl).trim()}},hl="",bl=" ",yl=/[ \t\n\r\f]+/g;var vl={parse:function(e){var t,n=[],r=String(e||wl),a=r.indexOf(El),i=0,o=!1;for(;!o;)-1===a&&(a=r.length,o=!0),!(t=r.slice(i,a).trim())&&o||n.push(t),i=a+1,a=r.indexOf(El,i);return n},stringify:function(e,t){var n=t||{},r=!1===n.padLeft?wl:Sl,a=n.padRight?Sl:wl;e[e.length-1]===wl&&(e=e.concat(wl));return e.join(a+El+r).trim()}},El=",",Sl=" ",wl="";var Al=sl,kl=bs,xl=fl,Tl=ml.parse,Ol=vl.parse,_l=function(e,t,n){var r=n?function(e){var t,n=e.length,r=-1,a={};for(;++r<n;)a[(t=e[r]).toLowerCase()]=t;return a}(n):null;return function(e,n){var i,o=xl(e,t),s=Array.prototype.slice.call(arguments,2),l=o.tagName.toLowerCase();o.tagName=r&&Il.call(r,l)?r[l]:l,n&&function(e,t){return"string"==typeof e||"length"in e||function(e,t){var n=t.type;if("input"===e||!n||"string"!=typeof n)return!1;if("object"==typeof t.children&&"length"in t.children)return!0;if(n=n.toLowerCase(),"button"===e)return"menu"!==n&&"submit"!==n&&"reset"!==n&&"button"!==n;return"value"in t}(t.tagName,e)}(n,o)&&(s.unshift(n),n=null);if(n)for(i in n)a(o.properties,i,n[i]);Nl(o.children,s),"template"===o.tagName&&(o.content={type:"root",children:o.children},o.children=[]);return o};function a(t,n,r){var a,i,o;null!=r&&r==r&&(i=(a=Al(e,n)).property,"string"==typeof(o=r)&&(a.spaceSeparated?o=Tl(o):a.commaSeparated?o=Ol(o):a.commaOrSpaceSeparated&&(o=Tl(Ol(o).join(" ")))),"style"===i&&"string"!=typeof r&&(o=function(e){var t,n=[];for(t in e)n.push([t,e[t]].join(": "));return n.join("; ")}(o)),"className"===i&&t.className&&(o=t.className.concat(o)),t[i]=function(e,t,n){var r,a,i;if("object"!=typeof n||!("length"in n))return Rl(e,t,n);a=n.length,r=-1,i=[];for(;++r<a;)i[r]=Rl(e,t,n[r]);return i}(a,i,o))}},Il={}.hasOwnProperty;function Nl(e,t){var n,r;if("string"!=typeof t&&"number"!=typeof t)if("object"==typeof t&&"length"in t)for(n=-1,r=t.length;++n<r;)Nl(e,t[n]);else{if("object"!=typeof t||!("type"in t))throw new Error("Expected node, nodes, or string, got `"+t+"`");e.push(t)}else e.push({type:"text",value:String(t)})}function Rl(e,t,n){var r=n;return e.number||e.positiveNumber?isNaN(r)||""===r||(r=Number(r)):(e.boolean||e.overloadedBoolean)&&("string"!=typeof r||""!==r&&kl(n)!==kl(t)||(r=!0)),r}var Cl=_l(nl,"div");Cl.displayName="html";var Dl=Cl,Pl=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57};var Ll=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57};var Ml=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90};var Fl=Ml,jl=Pl;var Bl={AEli:"Æ",AElig:"Æ",AM:"&",AMP:"&",Aacut:"Á",Aacute:"Á",Abreve:"Ă",Acir:"Â",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrav:"À",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Arin:"Å",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atild:"Ã",Atilde:"Ã",Aum:"Ä",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COP:"©",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedi:"Ç",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ET:"Ð",ETH:"Ð",Eacut:"É",Eacute:"É",Ecaron:"Ě",Ecir:"Ê",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrav:"È",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Eum:"Ë",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",G:">",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacut:"Í",Iacute:"Í",Icir:"Î",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrav:"Ì",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Ium:"Ï",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",L:"<",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntild:"Ñ",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacut:"Ó",Oacute:"Ó",Ocir:"Ô",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograv:"Ò",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslas:"Ø",Oslash:"Ø",Otild:"Õ",Otilde:"Õ",Otimes:"⨷",Oum:"Ö",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUO:'"',QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",RE:"®",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THOR:"Þ",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacut:"Ú",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucir:"Û",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrav:"Ù",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uum:"Ü",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacut:"Ý",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacut:"á",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acir:"â",acirc:"â",acut:"´",acute:"´",acy:"а",aeli:"æ",aelig:"æ",af:"",afr:"𝔞",agrav:"à",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",am:"&",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",arin:"å",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atild:"ã",atilde:"ã",aum:"ä",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvba:"¦",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedi:"ç",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedi:"¸",cedil:"¸",cemptyv:"⦲",cen:"¢",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",cop:"©",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curre:"¤",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",de:"°",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divid:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacut:"é",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"ê",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrav:"è",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",et:"ð",eth:"ð",eum:"ë",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac1:"¼",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac3:"¾",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",g:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacut:"í",iacute:"í",ic:"",icir:"î",icirc:"î",icy:"и",iecy:"е",iexc:"¡",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrav:"ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iques:"¿",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",ium:"ï",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laqu:"«",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",l:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",mac:"¯",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micr:"µ",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middo:"·",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbs:" ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",no:"¬",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntild:"ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacut:"ó",oacute:"ó",oast:"⊛",ocir:"ô",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograv:"ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"º",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslas:"ø",oslash:"ø",osol:"⊘",otild:"õ",otilde:"õ",otimes:"⊗",otimesas:"⨶",oum:"ö",ouml:"ö",ovbar:"⌽",par:"¶",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusm:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",poun:"£",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quo:'"',quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raqu:"»",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",re:"®",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sec:"§",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",sh:"",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szli:"ß",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thor:"þ",thorn:"þ",tilde:"˜",time:"×",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacut:"ú",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucir:"û",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrav:"ù",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",um:"¨",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uum:"ü",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacut:"ý",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",ye:"¥",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yum:"ÿ",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},Ul=function(e){return!!zl.call(Bl,e)&&Bl[e]},zl={}.hasOwnProperty;var $l={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:"ÿ"},Gl={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},ql=Pl,Hl=Ll,Vl=function(e){return Fl(e)||jl(e)},Wl=Ul,Yl=function(e,t){var n,r,a={};t||(t={});for(r in Ql)n=t[r],a[r]=null==n?Ql[r]:n;(a.position.indent||a.position.start)&&(a.indent=a.position.indent||[],a.position=a.position.start);return function(e,t){var n,r,a,i,o,s,l,c,u,d,p,f,g,m,h,b,y,v,E,S=t.additional,w=t.nonTerminated,A=t.text,k=t.reference,x=t.warning,T=t.textContext,O=t.referenceContext,_=t.warningContext,I=t.position,N=t.indent||[],R=e.length,C=0,D=-1,P=I.column||1,L=I.line||1,M="",F=[];"string"==typeof S&&(S=S.charCodeAt(0));b=j(),c=x?B:Zl,C--,R++;for(;++C<R;)if(o===ec&&(P=N[D]||1),(o=e.charCodeAt(C))===rc){if((l=e.charCodeAt(C+1))===Jl||l===ec||l===tc||l===nc||l===rc||l===ic||l!=l||S&&l===S){M+=Xl(o),P++;continue}for(f=g=C+1,E=g,l===sc?(E=++f,(l=e.charCodeAt(E))===lc||l===cc?(m=pc,E=++f):m=fc):m=dc,n="",p="",i="",h=mc[m],E--;++E<R&&h(l=e.charCodeAt(E));)i+=Xl(l),m===dc&&Kl.call($l,i)&&(n=i,p=$l[i]);(a=e.charCodeAt(E)===ac)&&(E++,(r=m===dc&&Wl(i))&&(n=i,p=r)),v=1+E-g,(a||w)&&(i?m===dc?(a&&!p?c(Ec,1):(n!==i&&(v=1+(E=f+n.length)-f,a=!1),a||(u=n?hc:yc,t.attribute?(l=e.charCodeAt(E))===oc?(c(u,v),p=null):Vl(l)?p=null:c(u,v):c(u,v))),s=p):(a||c(bc,v),kc(s=parseInt(i,gc[m]))?(c(wc,v),s=Xl(uc)):s in Gl?(c(Sc,v),s=Gl[s]):(d="",xc(s)&&c(Sc,v),s>65535&&(d+=Xl((s-=65536)>>>10|55296),s=56320|1023&s),s=d+Xl(s))):m!==dc&&c(vc,v)),s?(U(),b=j(),C=E-1,P+=E-g+1,F.push(s),(y=j()).offset++,k&&k.call(O,s,{start:b,end:y},e.slice(g-1,E)),b=y):(i=e.slice(g-1,E),M+=i,P+=i.length,C=E-1)}else 10===o&&(L++,D++,P=0),o==o?(M+=Xl(o),P++):U();return F.join("");function j(){return{line:L,column:P,offset:C+(I.offset||0)}}function B(e,t){var n=j();n.column+=t,n.offset+=t,x.call(_,Ac[e],n,e)}function U(){M&&(F.push(M),A&&A.call(T,M,{start:b,end:j()}),M="")}}(e,a)},Kl={}.hasOwnProperty,Xl=String.fromCharCode,Zl=Function.prototype,Ql={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},Jl=9,ec=10,tc=12,nc=32,rc=38,ac=59,ic=60,oc=61,sc=35,lc=88,cc=120,uc=65533,dc="named",pc="hexadecimal",fc="decimal",gc={};gc[pc]=16,gc[fc]=10;var mc={};mc[dc]=Vl,mc[fc]=ql,mc[pc]=Hl;var hc=1,bc=2,yc=3,vc=4,Ec=5,Sc=6,wc=7,Ac={};function kc(e){return e>=55296&&e<=57343||e>1114111}function xc(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||!(65535&~e)||65534==(65535&e)}Ac[hc]="Named character references must be terminated by a semicolon",Ac[bc]="Numeric character references must be terminated by a semicolon",Ac[yc]="Named character references cannot be empty",Ac[vc]="Numeric character references cannot be empty",Ac[Ec]="Named character references must be known",Ac[Sc]="Numeric character references cannot be disallowed",Ac[wc]="Numeric character references cannot be outside the permissible Unicode range";var Tc={exports:{}};!function(e){var t=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},a={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof i?new i(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,i;switch(n=n||{},a.util.type(t)){case"Object":if(i=a.util.objId(t),n[i])return n[i];for(var o in r={},n[i]=r,t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case"Array":return i=a.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(t,a){r[a]=e(t,n)}),r);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var a=e.classList;if(a.contains(t))return!0;if(a.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=a.util.clone(a.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var i=(r=r||a.languages)[e],o={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var l in n)n.hasOwnProperty(l)&&(o[l]=n[l]);n.hasOwnProperty(s)||(o[s]=i[s])}var c=r[e];return r[e]=o,a.languages.DFS(a.languages,function(t,n){n===c&&t!=e&&(this[t]=o)}),o},DFS:function e(t,n,r,i){i=i||{};var o=a.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var l=t[s],c=a.util.type(l);"Object"!==c||i[o(l)]?"Array"!==c||i[o(l)]||(i[o(l)]=!0,e(l,n,s,i)):(i[o(l)]=!0,e(l,n,null,i))}}},plugins:{},highlightAll:function(e,t){a.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),a.hooks.run("before-all-elements-highlight",r);for(var i,o=0;i=r.elements[o++];)a.highlightElement(i,!0===t,r.callback)},highlightElement:function(t,n,r){var i=a.util.getLanguage(t),o=a.languages[i];a.util.setLanguage(t,i);var s=t.parentElement;s&&"pre"===s.nodeName.toLowerCase()&&a.util.setLanguage(s,i);var l={element:t,language:i,grammar:o,code:t.textContent};function c(e){l.highlightedCode=e,a.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,a.hooks.run("after-highlight",l),a.hooks.run("complete",l),r&&r.call(l.element)}if(a.hooks.run("before-sanity-check",l),(s=l.element.parentElement)&&"pre"===s.nodeName.toLowerCase()&&!s.hasAttribute("tabindex")&&s.setAttribute("tabindex","0"),!l.code)return a.hooks.run("complete",l),void(r&&r.call(l.element));if(a.hooks.run("before-highlight",l),l.grammar)if(n&&e.Worker){var u=new Worker(a.filename);u.onmessage=function(e){c(e.data)},u.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else c(a.highlight(l.code,l.grammar,l.language));else c(a.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(a.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=a.tokenize(r.code,r.grammar),a.hooks.run("after-tokenize",r),i.stringify(a.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var a=new l;return c(a,a.head,e),s(e,a,t,a.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(a)},hooks:{all:{},add:function(e,t){var n=a.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=a.hooks.all[e];if(n&&n.length)for(var r,i=0;r=n[i++];)r(t)}},Token:i};function i(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function o(e,t,n,r){e.lastIndex=t;var a=e.exec(n);if(a&&r&&a[1]){var i=a[1].length;a.index+=i,a[0]=a[0].slice(i)}return a}function s(e,t,n,r,l,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var f=n[p];f=Array.isArray(f)?f:[f];for(var g=0;g<f.length;++g){if(d&&d.cause==p+","+g)return;var m=f[g],h=m.inside,b=!!m.lookbehind,y=!!m.greedy,v=m.alias;if(y&&!m.pattern.global){var E=m.pattern.toString().match(/[imsuy]*$/)[0];m.pattern=RegExp(m.pattern.source,E+"g")}for(var S=m.pattern||m,w=r.next,A=l;w!==t.tail&&!(d&&A>=d.reach);A+=w.value.length,w=w.next){var k=w.value;if(t.length>e.length)return;if(!(k instanceof i)){var x,T=1;if(y){if(!(x=o(S,A,e,b))||x.index>=e.length)break;var O=x.index,_=x.index+x[0].length,I=A;for(I+=w.value.length;O>=I;)I+=(w=w.next).value.length;if(A=I-=w.value.length,w.value instanceof i)continue;for(var N=w;N!==t.tail&&(I<_||"string"==typeof N.value);N=N.next)T++,I+=N.value.length;T--,k=e.slice(A,I),x.index-=A}else if(!(x=o(S,0,k,b)))continue;O=x.index;var R=x[0],C=k.slice(0,O),D=k.slice(O+R.length),P=A+k.length;d&&P>d.reach&&(d.reach=P);var L=w.prev;if(C&&(L=c(t,L,C),A+=C.length),u(t,L,T),w=c(t,L,new i(p,h?a.tokenize(R,h):R,v,R)),D&&c(t,w,D),T>1){var M={cause:p+","+g,reach:P};s(e,t,n,w.prev,A,M),d&&M.reach>d.reach&&(d.reach=M.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function c(e,t,n){var r=t.next,a={value:n,prev:t,next:r};return t.next=a,r.prev=a,e.length++,a}function u(e,t,n){for(var r=t.next,a=0;a<n&&r!==e.tail;a++)r=r.next;t.next=r,r.prev=t,e.length-=a}if(e.Prism=a,i.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=e(t,n)}),r}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(i.classes,o):i.classes.push(o)),a.hooks.run("wrap",i);var s="";for(var l in i.attributes)s+=" "+l+'="'+(i.attributes[l]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+"</"+i.tag+">"},!e.document)return e.addEventListener?(a.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,i=n.code,o=n.immediateClose;e.postMessage(a.highlight(i,a.languages[r],r)),o&&e.close()},!1),a):a;var d=a.util.currentScript();function p(){a.manual||a.highlightAll()}if(d&&(a.filename=d.src,d.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var f=document.readyState;"loading"===f||"interactive"===f&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return a}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
|
|
8
8
|
/**
|
|
9
9
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
10
10
|
*
|
|
@@ -34,4 +34,4 @@ import*as e from"react";import t,{isValidElement as n,Children as r,PureComponen
|
|
|
34
34
|
object-assign
|
|
35
35
|
(c) Sindre Sorhus
|
|
36
36
|
@license MIT
|
|
37
|
-
*/function Kz(){if(Mz)return Lz;Mz=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return Lz=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,a){for(var i,o,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))t.call(i,c)&&(s[c]=i[c]);if(e){o=e(i);for(var u=0;u<o.length;u++)n.call(i,o[u])&&(s[o[u]]=i[o[u]])}}return s},Lz}function Xz(){if(jz)return Fz;jz=1;return Fz="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Zz(){return Uz?Bz:(Uz=1,Bz=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Qz=Yz();Nz.exports=function(){if(qz)return Gz;qz=1;var e=Yz(),t=Kz(),n=Xz(),r=Zz(),a=function(){if($z)return zz;$z=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Xz(),n={},r=Zz();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function a(a,i,o,s,l){if("production"!==process.env.NODE_ENV)for(var c in a)if(r(a,c)){var u;try{if("function"!=typeof a[c]){var d=Error((s||"React class")+": "+o+" 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 d.name="Invariant Violation",d}u=a[c](i,c,s,o,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+o+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var p=l?l():"";e("Failed "+o+" type: "+u.message+(null!=p?p:""))}}}return a.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},zz=a}(),i=function(){};function o(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Gz=function(s,l){var c="function"==typeof Symbol&&Symbol.iterator,u="<<anonymous>>",d={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:g(o),arrayOf:function(e){return g(function(t,r,a,i,o){if("function"!=typeof e)return new f("Property `"+o+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new f("Invalid "+i+" `"+o+"` of type `"+y(s)+"` supplied to `"+a+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,a,i,o+"["+l+"]",n);if(c instanceof Error)return c}return null})},element:g(function(e,t,n,r,a){var i=e[t];return s(i)?null:new f("Invalid "+r+" `"+a+"` of type `"+y(i)+"` supplied to `"+n+"`, expected a single ReactElement.")}),elementType:g(function(t,n,r,a,i){var o=t[n];return e.isValidElementType(o)?null:new f("Invalid "+a+" `"+i+"` of type `"+y(o)+"` supplied to `"+r+"`, expected a single ReactElement type.")}),instanceOf:function(e){return g(function(t,n,r,a,i){if(!(t[n]instanceof e)){var o=e.name||u;return new f("Invalid "+a+" `"+i+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:u)+"` supplied to `"+r+"`, expected instance of `"+o+"`.")}var s;return null})},node:g(function(e,t,n,r,a){return b(e[t])?null:new f("Invalid "+r+" `"+a+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(e){return g(function(t,a,i,o,s){if("function"!=typeof e)return new f("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[a],c=y(l);if("object"!==c)return new f("Invalid "+o+" `"+s+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var u in l)if(r(l,u)){var d=e(l,u,i,o,s+"."+u,n);if(d instanceof Error)return d}return null})},oneOf:function(e){return Array.isArray(e)?g(function(t,n,r,a,i){for(var o=t[n],s=0;s<e.length;s++)if(p(o,e[s]))return null;var l=JSON.stringify(e,function(e,t){return"symbol"===v(t)?String(t):t});return new f("Invalid "+a+" `"+i+"` of value `"+String(o)+"` supplied to `"+r+"`, expected one of "+l+".")}):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"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]).":"Invalid argument supplied to oneOf, expected an array."),o)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var t=0;t<e.length;t++){var a=e[t];if("function"!=typeof a)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+E(a)+" at index "+t+"."),o}return g(function(t,a,i,o,s){for(var l=[],c=0;c<e.length;c++){var u=(0,e[c])(t,a,i,o,s,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&l.push(u.data.expectedType)}return new f("Invalid "+o+" `"+s+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")})},shape:function(e){return g(function(t,r,a,i,o){var s=t[r],l=y(s);if("object"!==l)return new f("Invalid "+i+" `"+o+"` of type `"+l+"` supplied to `"+a+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return h(a,i,o,c,v(u));var d=u(s,c,a,i,o+"."+c,n);if(d)return d}return null})},exact:function(e){return g(function(a,i,o,s,l){var c=a[i],u=y(c);if("object"!==u)return new f("Invalid "+s+" `"+l+"` of type `"+u+"` supplied to `"+o+"`, expected `object`.");var d=t({},a[i],e);for(var p in d){var g=e[p];if(r(e,p)&&"function"!=typeof g)return h(o,s,l,p,v(g));if(!g)return new f("Invalid "+s+" `"+l+"` key `"+p+"` supplied to `"+o+"`.\nBad object: "+JSON.stringify(a[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=g(c,p,o,s,l+"."+p,n);if(m)return m}return null})}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function g(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function a(a,o,s,c,d,p,g){if(c=c||u,p=p||s,g!==n){if(l){var m=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 m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var h=c+":"+s;!t[h]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. 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."),t[h]=!0,r++)}}return null==o[s]?a?null===o[s]?new f("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new f("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(o,s,c,d,p)}var o=a.bind(null,!1);return o.isRequired=a.bind(null,!0),o}function m(e){return g(function(t,n,r,a,i,o){var s=t[n];return y(s)!==e?new f("Invalid "+a+" `"+i+"` of type `"+v(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null})}function h(e,t,n,r,a){return new f((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+a+"`.")}function b(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(b);if(null===e||s(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!b(n.value))return!1}else for(;!(n=r.next()).done;){var a=n.value;if(a&&!b(a[1]))return!1}return!0;default:return!1}}function y(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function v(e){if(null==e)return""+e;var t=y(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function E(e){var t=v(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return f.prototype=Error.prototype,d.checkPropTypes=a,d.resetWarningCache=a.resetWarningCache,d.PropTypes=d,d},Gz}()(Qz.isElement,!0)}else Nz.exports=function(){if(Vz)return Hz;Vz=1;var e=Xz();function t(){}function n(){}return n.resetWarningCache=t,Hz=function(){function r(t,n,r,a,i,o){if(o!==e){var s=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 s.name="Invariant Violation",s}}function a(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var Jz=Nz.exports;const{getOwnPropertyNames:e$,getOwnPropertySymbols:t$}=Object,{hasOwnProperty:n$}=Object.prototype;function r$(e,t){return function(n,r,a){return e(n,r,a)&&t(n,r,a)}}function a$(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);const{cache:a}=r,i=a.get(t),o=a.get(n);if(i&&o)return i===n&&o===t;a.set(t,n),a.set(n,t);const s=e(t,n,r);return a.delete(t),a.delete(n),s}}function i$(e){return e$(e).concat(t$(e))}const o$=Object.hasOwn||((e,t)=>n$.call(e,t));function s$(e,t){return e===t||!e&&!t&&e!=e&&t!=t}const{getOwnPropertyDescriptor:l$,keys:c$}=Object;function u$(e,t){return e.byteLength===t.byteLength&&A$(new Uint8Array(e),new Uint8Array(t))}function d$(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function p$(e,t){return e.byteLength===t.byteLength&&A$(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function f$(e,t){return s$(e.getTime(),t.getTime())}function g$(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function m$(e,t){return e===t}function h$(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),i=e.entries();let o,s,l=0;for(;(o=i.next())&&!o.done;){const r=t.entries();let i=!1,c=0;for(;(s=r.next())&&!s.done;){if(a[c]){c++;continue}const r=o.value,u=s.value;if(n.equals(r[0],u[0],l,c,e,t,n)&&n.equals(r[1],u[1],r[0],u[0],e,t,n)){i=a[c]=!0;break}c++}if(!i)return!1;l++}return!0}const b$=s$;function y$(e,t,n){const r=c$(e);let a=r.length;if(c$(t).length!==a)return!1;for(;a-- >0;)if(!x$(e,t,n,r[a]))return!1;return!0}function v$(e,t,n){const r=i$(e);let a,i,o,s=r.length;if(i$(t).length!==s)return!1;for(;s-- >0;){if(a=r[s],!x$(e,t,n,a))return!1;if(i=l$(e,a),o=l$(t,a),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function E$(e,t){return s$(e.valueOf(),t.valueOf())}function S$(e,t){return e.source===t.source&&e.flags===t.flags}function w$(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),i=e.values();let o,s;for(;(o=i.next())&&!o.done;){const r=t.values();let i=!1,l=0;for(;(s=r.next())&&!s.done;){if(!a[l]&&n.equals(o.value,s.value,o.value,s.value,e,t,n)){i=a[l]=!0;break}l++}if(!i)return!1}return!0}function A$(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function k$(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 x$(e,t,n,r){return!("_owner"!==r&&"__o"!==r&&"__v"!==r||!e.$$typeof&&!t.$$typeof)||o$(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const T$={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},O$=Object.prototype.toString;function _$({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:i,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:l,arePrimitiveWrappersEqual:c,areRegExpsEqual:u,areSetsEqual:d,areTypedArraysEqual:p,areUrlsEqual:f,unknownTagComparators:g}){return function(m,h,b){if(m===h)return!0;if(null==m||null==h)return!1;const y=typeof m;if(y!==typeof h)return!1;if("object"!==y)return"number"===y?s(m,h,b):"function"===y&&i(m,h,b);const v=m.constructor;if(v!==h.constructor)return!1;if(v===Object)return l(m,h,b);if(Array.isArray(m))return t(m,h,b);if(v===Date)return r(m,h,b);if(v===RegExp)return u(m,h,b);if(v===Map)return o(m,h,b);if(v===Set)return d(m,h,b);const E=O$.call(m);if("[object Date]"===E)return r(m,h,b);if("[object RegExp]"===E)return u(m,h,b);if("[object Map]"===E)return o(m,h,b);if("[object Set]"===E)return d(m,h,b);if("[object Object]"===E)return"function"!=typeof m.then&&"function"!=typeof h.then&&l(m,h,b);if("[object URL]"===E)return f(m,h,b);if("[object Error]"===E)return a(m,h,b);if("[object Arguments]"===E)return l(m,h,b);if(T$[E])return p(m,h,b);if("[object ArrayBuffer]"===E)return e(m,h,b);if("[object DataView]"===E)return n(m,h,b);if("[object Boolean]"===E||"[object Number]"===E||"[object String]"===E)return c(m,h,b);if(g){let e=g[E];if(!e){const t=null!=(S=m)?S[Symbol.toStringTag]:void 0;t&&(e=g[t])}if(e)return e(m,h,b)}var S;return!1}}const I$=N$();function N$(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:a=!1}=e,i=function({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:u$,areArraysEqual:n?v$:d$,areDataViewsEqual:p$,areDatesEqual:f$,areErrorsEqual:g$,areFunctionsEqual:m$,areMapsEqual:n?r$(h$,v$):h$,areNumbersEqual:b$,areObjectsEqual:n?v$:y$,arePrimitiveWrappersEqual:E$,areRegExpsEqual:S$,areSetsEqual:n?r$(w$,v$):w$,areTypedArraysEqual:n?r$(A$,v$):A$,areUrlsEqual:k$,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const e=a$(r.areArraysEqual),t=a$(r.areMapsEqual),n=a$(r.areObjectsEqual),a=a$(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:n,areSetsEqual:a})}return r}(e),o=_$(i),s=n?n(o):(l=o,function(e,t,n,r,a,i,o){return l(e,t,o)});var l;return function({circular:e,comparator:t,createState:n,equals:r,strict:a}){if(n)return function(i,o){const{cache:s=(e?new WeakMap:void 0),meta:l}=n();return t(i,o,{cache:s,equals:r,meta:l,strict:a})};if(e)return function(e,n){return t(e,n,{cache:new WeakMap,equals:r,meta:void 0,strict:a})};const i={cache:void 0,equals:r,meta:void 0,strict:a};return function(e,n){return t(e,n,i)}}({circular:t,comparator:o,createState:r,equals:s,strict:a})}function R$(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame(function r(a){n<0&&(n=a),a-n>t?(e(a),n=-1):function(e){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(e)}(r)})}function C$(e){return C$="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C$(e)}function D$(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return P$(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P$(e,t)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P$(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function L$(){var e=function(){return null},t=!1,n=function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var a=D$(r),i=a[0],o=a.slice(1);return"number"==typeof i?void R$(n.bind(null,o),i):(n(i),void R$(n.bind(null,o)))}"object"===C$(r)&&e(r),"function"==typeof r&&r()}};return{stop:function(){t=!0},start:function(e){t=!1,n(e)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}function M$(e){return M$="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M$(e)}function F$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function j$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F$(Object(n),!0).forEach(function(t){B$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function B$(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==M$(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==M$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===M$(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}N$({strict:!0}),N$({circular:!0}),N$({circular:!0,strict:!0}),N$({createInternalComparator:()=>s$}),N$({strict:!0,createInternalComparator:()=>s$}),N$({circular:!0,createInternalComparator:()=>s$}),N$({circular:!0,createInternalComparator:()=>s$,strict:!0});var U$=function(e){return e},z$=function(e,t){return Object.keys(t).reduce(function(n,r){return j$(j$({},n),{},B$({},r,e(r,t[r])))},{})},$$=function(e,t,n){return e.map(function(e){return"".concat(function(e){return e.replace(/([A-Z])/g,function(e){return"-".concat(e.toLowerCase())})}(e)," ").concat(t,"ms ").concat(n)}).join(",")},G$="production"!==process.env.NODE_ENV,q$=function(e,t,n,r,a,i,o,s){if(G$&&"undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,a,i,o,s],c=0;console.warn(t.replace(/%s/g,function(){return l[c++]}))}};function H$(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(e,t)||W$(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V$(e){return function(e){if(Array.isArray(e))return Y$(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||W$(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W$(e,t){if(e){if("string"==typeof e)return Y$(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y$(e,t):void 0}}function Y$(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var K$=1e-4,X$=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},Z$=function(e,t){return e.map(function(e,n){return e*Math.pow(t,n)}).reduce(function(e,t){return e+t})},Q$=function(e,t){return function(n){var r=X$(e,t);return Z$(r,n)}},J$=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],a=t[1],i=t[2],o=t[3];if(1===t.length)switch(t[0]){case"linear":r=0,a=0,i=1,o=1;break;case"ease":r=.25,a=.1,i=.25,o=1;break;case"ease-in":r=.42,a=0,i=1,o=1;break;case"ease-out":r=.42,a=0,i=.58,o=1;break;case"ease-in-out":r=0,a=0,i=.58,o=1;break;default:var s=t[0].split("(");if("cubic-bezier"===s[0]&&4===s[1].split(")")[0].split(",").length){var l=s[1].split(")")[0].split(",").map(function(e){return parseFloat(e)}),c=H$(l,4);r=c[0],a=c[1],i=c[2],o=c[3]}else q$(!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",t)}q$([r,i,a,o].every(function(e){return"number"==typeof e&&e>=0&&e<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",t);var u,d,p=Q$(r,i),f=Q$(a,o),g=(u=r,d=i,function(e){var t=X$(u,d),n=[].concat(V$(t.map(function(e,t){return e*t}).slice(1)),[0]);return Z$(n,e)}),m=function(e){return e>1?1:e<0?0:e},h=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var a=p(n)-t,i=g(n);if(Math.abs(a-t)<K$||i<K$)return f(n);n=m(n-a/i)}return f(n)};return h.isStepper=!1,h},eG=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if("string"==typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return J$(r);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,a=void 0===r?8:r,i=e.dt,o=void 0===i?17:i,s=function(e,t,r){var i=r+(-(e-t)*n-r*a)*o/1e3,s=r*o/1e3+e;return Math.abs(s-t)<K$&&Math.abs(i)<K$?[t,0]:[s,i]};return s.isStepper=!0,s.dt=o,s}();default:if("cubic-bezier"===r.split("(")[0])return J$(r);q$(!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",t)}return"function"==typeof r?r:(q$(!1,"[configEasing]: first argument type should be function or string, instead received %s",t),null)};function tG(e){return tG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tG(e)}function nG(e){return function(e){if(Array.isArray(e))return lG(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||sG(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function aG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rG(Object(n),!0).forEach(function(t){iG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function iG(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==tG(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==tG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===tG(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oG(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(e,t)||sG(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sG(e,t){if(e){if("string"==typeof e)return lG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lG(e,t):void 0}}function lG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var cG=function(e,t,n){return e+(t-e)*n},uG=function(e){return e.from!==e.to},dG=function e(t,n,r){var a=z$(function(e,n){if(uG(n)){var r=oG(t(n.from,n.to,n.velocity),2),a=r[0],i=r[1];return aG(aG({},n),{},{from:a,velocity:i})}return n},n);return r<1?z$(function(e,t){return uG(t)?aG(aG({},t),{},{velocity:cG(t.velocity,a[e].velocity,r),from:cG(t.from,a[e].from,r)}):t},n):e(t,a,r-1)},pG=function(e,t,n,r,a){var i,o,s,l,c=(i=e,o=t,[Object.keys(i),Object.keys(o)].reduce(function(e,t){return e.filter(function(e){return t.includes(e)})})),u=c.reduce(function(n,r){return aG(aG({},n),{},iG({},r,[e[r],t[r]]))},{}),d=c.reduce(function(n,r){return aG(aG({},n),{},iG({},r,{from:e[r],velocity:0,to:t[r]}))},{}),p=-1,f=function(){return null};return f=n.isStepper?function(r){s||(s=r);var i=(r-s)/n.dt;d=dG(n,d,i),a(aG(aG(aG({},e),t),z$(function(e,t){return t.from},d))),s=r,Object.values(d).filter(uG).length&&(p=requestAnimationFrame(f))}:function(i){l||(l=i);var o=(i-l)/r,s=z$(function(e,t){return cG.apply(void 0,nG(t).concat([n(o)]))},u);if(a(aG(aG(aG({},e),t),s)),o<1)p=requestAnimationFrame(f);else{var c=z$(function(e,t){return cG.apply(void 0,nG(t).concat([n(1)]))},u);a(aG(aG(aG({},e),t),c))}},function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(p)}}};function fG(e){return fG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fG(e)}var gG=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function mG(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function hG(e){return function(e){if(Array.isArray(e))return bG(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return bG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bG(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yG(Object(n),!0).forEach(function(t){EG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function EG(e,t,n){return(t=wG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SG(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wG(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wG(e){var t=function(e,t){if("object"!==fG(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==fG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===fG(t)?t:String(t)}function AG(e,t){return AG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},AG(e,t)}function kG(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=OG(e);if(t){var a=OG(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return xG(this,n)}}function xG(e,t){if(t&&("object"===fG(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return TG(e)}function TG(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OG(e){return OG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},OG(e)}var _G=function(){!function(e,t){if("function"!=typeof t&&null!==t)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)}(n,a);var e=kG(n);function n(t,r){var a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var i=(a=e.call(this,t,r)).props,o=i.isActive,s=i.attributeName,l=i.from,c=i.to,u=i.steps,d=i.children,p=i.duration;if(a.handleStyleChange=a.handleStyleChange.bind(TG(a)),a.changeStyle=a.changeStyle.bind(TG(a)),!o||p<=0)return a.state={style:{}},"function"==typeof d&&(a.state={style:c}),xG(a);if(u&&u.length)a.state={style:u[0].style};else if(l){if("function"==typeof d)return a.state={style:l},xG(a);a.state={style:s?EG({},s,l):l}}else a.state={style:{}};return a}return SG(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,t&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isActive,r=t.canBegin,a=t.attributeName,i=t.shouldReAnimate,o=t.to,s=t.from,l=this.state.style;if(r)if(n){if(!(I$(e.to,o)&&e.canBegin&&e.isActive)){var c=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var u=c||i?s:e.to;if(this.state&&l){var d={style:a?EG({},a,u):u};(a&&l[a]!==u||!a&&l!==u)&&this.setState(d)}this.runAnimation(vG(vG({},this.props),{},{from:u,begin:0}))}}else{var p={style:a?EG({},a,o):o};this.state&&l&&(a&&l[a]!==o||!a&&l!==o)&&this.setState(p)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),e&&e()}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"runJSAnimation",value:function(e){var t=this,n=e.from,r=e.to,a=e.duration,i=e.easing,o=e.begin,s=e.onAnimationEnd,l=e.onAnimationStart,c=pG(n,r,eG(i),a,this.changeStyle);this.manager.start([l,o,function(){t.stopJSAnimation=c()},a,s])}},{key:"runStepAnimation",value:function(e){var t=this,n=e.steps,r=e.begin,a=e.onAnimationStart,i=n[0],o=i.style,s=i.duration,l=void 0===s?0:s;return this.manager.start([a].concat(hG(n.reduce(function(e,r,a){if(0===a)return e;var i=r.duration,o=r.easing,s=void 0===o?"ease":o,l=r.style,c=r.properties,u=r.onAnimationEnd,d=a>0?n[a-1]:r,p=c||Object.keys(l);if("function"==typeof s||"spring"===s)return[].concat(hG(e),[t.runJSAnimation.bind(t,{from:d.style,to:l,duration:i,easing:s}),i]);var f=$$(p,i,s),g=vG(vG(vG({},d.style),l),{},{transition:f});return[].concat(hG(e),[g,i,u]).filter(U$)},[o,Math.max(l,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=L$());var t=e.begin,n=e.duration,r=e.attributeName,a=e.to,i=e.easing,o=e.onAnimationStart,s=e.onAnimationEnd,l=e.steps,c=e.children,u=this.manager;if(this.unSubscribe=u.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof c&&"spring"!==i)if(l.length>1)this.runStepAnimation(e);else{var d=r?EG({},r,a):a,p=$$(Object.keys(d),n,i);u.start([o,t,vG(vG({},d),{},{transition:p}),n,s])}else this.runJSAnimation(e)}},{key:"render",value:function(){var e=this.props,n=e.children;e.begin;var a=e.duration;e.attributeName,e.easing;var i=e.isActive;e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart;var o=mG(e,gG),s=r.count(n),l=this.state.style;if("function"==typeof n)return n(l);if(!i||0===s||a<=0)return n;var c=function(e){var t=e.props,n=t.style,r=void 0===n?{}:n,a=t.className;return p(e,vG(vG({},o),{},{style:vG(vG({},r),l),className:a}))};return 1===s?c(r.only(n)):t.createElement("div",null,r.map(n,function(e){return c(e)}))}}]),n}();function IG(e){return IG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},IG(e)}function NG(){return NG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NG.apply(this,arguments)}function RG(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return CG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CG(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function CG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function DG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function PG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DG(Object(n),!0).forEach(function(t){LG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function LG(e,t,n){var r;return r=function(e,t){if("object"!=IG(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=IG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==IG(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}_G.displayName="Animate",_G.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},_G.propTypes={from:Jz.oneOfType([Jz.object,Jz.string]),to:Jz.oneOfType([Jz.object,Jz.string]),attributeName:Jz.string,duration:Jz.number,begin:Jz.number,easing:Jz.oneOfType([Jz.string,Jz.func]),steps:Jz.arrayOf(Jz.shape({duration:Jz.number.isRequired,style:Jz.object.isRequired,easing:Jz.oneOfType([Jz.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Jz.func]),properties:Jz.arrayOf("string"),onAnimationEnd:Jz.func})),children:Jz.oneOfType([Jz.node,Jz.func]),isActive:Jz.bool,canBegin:Jz.bool,onAnimationEnd:Jz.func,shouldReAnimate:Jz.bool,onAnimationStart:Jz.func,onAnimationReStart:Jz.func};var MG=function(e,t,n,r,a){var i,o=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,l=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(o>0&&a instanceof Array){for(var u=[0,0,0,0],d=0;d<4;d++)u[d]=a[d]>o?o:a[d];i="M".concat(e,",").concat(t+s*u[0]),u[0]>0&&(i+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(c,",").concat(e+l*u[0],",").concat(t)),i+="L ".concat(e+n-l*u[1],",").concat(t),u[1]>0&&(i+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(c,",\n ").concat(e+n,",").concat(t+s*u[1])),i+="L ".concat(e+n,",").concat(t+r-s*u[2]),u[2]>0&&(i+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(c,",\n ").concat(e+n-l*u[2],",").concat(t+r)),i+="L ".concat(e+l*u[3],",").concat(t+r),u[3]>0&&(i+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(c,",\n ").concat(e,",").concat(t+r-s*u[3])),i+="Z"}else if(o>0&&a===+a&&a>0){var p=Math.min(o,a);i="M ".concat(e,",").concat(t+s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+l*p,",").concat(t,"\n L ").concat(e+n-l*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+n,",").concat(t+s*p,"\n L ").concat(e+n,",").concat(t+r-s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+n-l*p,",").concat(t+r,"\n L ").concat(e+l*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e,",").concat(t+r-s*p," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},FG=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,a=t.x,i=t.y,o=t.width,s=t.height;if(Math.abs(o)>0&&Math.abs(s)>0){var l=Math.min(a,a+o),c=Math.max(a,a+o),u=Math.min(i,i+s),d=Math.max(i,i+s);return n>=l&&n<=c&&r>=u&&r<=d}return!1},jG={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},BG=function(e){var n=PG(PG({},jG),e),r=o(),a=RG(l(-1),2),i=a[0],s=a[1];u(function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&s(e)}catch(e){}},[]);var c=n.x,d=n.y,p=n.width,f=n.height,g=n.radius,m=n.className,h=n.animationEasing,b=n.animationDuration,y=n.animationBegin,v=n.isAnimationActive,E=n.isUpdateAnimationActive;if(c!==+c||d!==+d||p!==+p||f!==+f||0===p||0===f)return null;var S=IE("recharts-rectangle",m);return E?t.createElement(_G,{canBegin:i>0,from:{width:p,height:f,x:c,y:d},to:{width:p,height:f,x:c,y:d},duration:b,animationEasing:h,isActive:E},function(e){var a=e.width,o=e.height,s=e.x,l=e.y;return t.createElement(_G,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:b,isActive:v,easing:h},t.createElement("path",NG({},QA(n,!0),{className:S,d:MG(s,l,a,o,g),ref:r})))}):t.createElement("path",NG({},QA(n,!0),{className:S,d:MG(c,d,p,f,g)}))},UG=["points","className","baseLinePoints","connectNulls"];function zG(){return zG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zG.apply(this,arguments)}function $G(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function GG(e){return function(e){if(Array.isArray(e))return qG(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return qG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qG(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var HG=function(e){return e&&e.x===+e.x&&e.y===+e.y},VG=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach(function(e){HG(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])}),HG(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t}(e);t&&(n=[n.reduce(function(e,t){return[].concat(GG(e),GG(t))},[])]);var r=n.map(function(e){return e.reduce(function(e,t,n){return"".concat(e).concat(0===n?"M":"L").concat(t.x,",").concat(t.y)},"")}).join("");return 1===n.length?"".concat(r,"Z"):r},WG=function(e){var n=e.points,r=e.className,a=e.baseLinePoints,i=e.connectNulls,o=$G(e,UG);if(!n||!n.length)return null;var s=IE("recharts-polygon",r);if(a&&a.length){var l=o.stroke&&"none"!==o.stroke,c=function(e,t,n){var r=VG(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(VG(t.reverse(),n).slice(1))}(n,a,i);return t.createElement("g",{className:s},t.createElement("path",zG({},QA(o,!0),{fill:"Z"===c.slice(-1)?o.fill:"none",stroke:"none",d:c})),l?t.createElement("path",zG({},QA(o,!0),{fill:"none",d:VG(n,i)})):null,l?t.createElement("path",zG({},QA(o,!0),{fill:"none",d:VG(a,i)})):null)}var u=VG(n,i);return t.createElement("path",zG({},QA(o,!0),{fill:"Z"===u.slice(-1)?o.fill:"none",className:s,d:u}))};function YG(){return YG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YG.apply(this,arguments)}var KG=function(t){var n=t.cx,r=t.cy,a=t.r,i=IE("recharts-dot",t.className);return n===+n&&r===+r&&a===+a?e.createElement("circle",YG({},QA(t,!1),MA(t),{className:i,cx:n,cy:r,r:a})):null};function XG(e){return XG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},XG(e)}var ZG=["x","y","top","left","width","height","className"];function QG(){return QG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QG.apply(this,arguments)}function JG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eq(e,t,n){var r;return r=function(e,t){if("object"!=XG(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=XG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==XG(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tq(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var nq=function(e,t,n,r,a,i){return"M".concat(e,",").concat(a,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)},rq=function(e){var n=e.x,r=void 0===n?0:n,a=e.y,i=void 0===a?0:a,o=e.top,s=void 0===o?0:o,l=e.left,c=void 0===l?0:l,u=e.width,d=void 0===u?0:u,p=e.height,f=void 0===p?0:p,g=e.className,m=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JG(Object(n),!0).forEach(function(t){eq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({x:r,y:i,top:s,left:c,width:d,height:f},tq(e,ZG));return SA(r)&&SA(i)&&SA(d)&&SA(f)&&SA(s)&&SA(c)?t.createElement("path",QG({},QA(m,!0),{className:IE("recharts-cross",g),d:nq(r,i,d,f,s,c)})):null},aq=rj,iq=aj,oq=FI;var sq=function(e,t){return e&&e.length?aq(e,oq(t),iq):void 0},lq=rj,cq=FI,uq=cj;var dq=function(e,t){return e&&e.length?lq(e,cq(t),uq):void 0},pq=["cx","cy","angle","ticks","axisLine"],fq=["ticks","tick","angle","tickFormatter","stroke"];function gq(e){return gq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gq(e)}function mq(){return mq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mq.apply(this,arguments)}function hq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hq(Object(n),!0).forEach(function(t){kq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yq(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function vq(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xq(r.key),r)}}function Eq(e,t,n){return t=wq(t),function(e,t){if(t&&("object"===gq(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Sq()?Reflect.construct(t,n||[],wq(e).constructor):t.apply(e,n))}function Sq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Sq=function(){return!!e})()}function wq(e){return wq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wq(e)}function Aq(e,t){return Aq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Aq(e,t)}function kq(e,t,n){return(t=xq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xq(e){var t=function(e,t){if("object"!=gq(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=gq(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gq(t)?t:t+""}var Tq=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Eq(this,e,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&Aq(e,t)}(e,a),n=e,r=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,a=n.cx,i=n.cy;return CU(a,i,t,r)}},{key:"getTickTextAnchor",value:function(){var e;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,a=e.ticks,i=sq(a,function(e){return e.coordinate||0});return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:dq(a,function(e){return e.coordinate||0}).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.cx,r=e.cy,a=e.angle,i=e.ticks,o=e.axisLine,s=yq(e,pq),l=i.reduce(function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]},[1/0,-1/0]),c=CU(n,r,l[0],a),u=CU(n,r,l[1],a),d=bq(bq(bq({},QA(s,!1)),{},{fill:"none"},QA(o,!1)),{},{x1:c.x,y1:c.y,x2:u.x,y2:u.y});return t.createElement("line",mq({className:"recharts-polar-radius-axis-line"},d))}},{key:"renderTicks",value:function(){var n=this,r=this.props,a=r.ticks,i=r.tick,o=r.angle,s=r.tickFormatter,l=r.stroke,c=yq(r,fq),u=this.getTickTextAnchor(),d=QA(c,!1),p=QA(i,!1),f=a.map(function(r,a){var c=n.getTickValueCoord(r),f=bq(bq(bq(bq({textAnchor:u,transform:"rotate(".concat(90-o,", ").concat(c.x,", ").concat(c.y,")")},d),{},{stroke:"none",fill:l},p),{},{index:a},c),{},{payload:r});return t.createElement(ck,mq({className:IE("recharts-polar-radius-axis-tick",FU(i)),key:"tick-".concat(r.coordinate)},FA(n.props,r,a)),e.renderTickItem(i,f,s?s(r.value,a):r.value))});return t.createElement(ck,{className:"recharts-polar-radius-axis-ticks"},f)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.axisLine,a=e.tick;return n&&n.length?t.createElement(ck,{className:IE("recharts-polar-radius-axis",this.props.className)},r&&this.renderAxisLine(),a&&this.renderTicks(),YU.renderCallByParent(this.props,this.getViewBox())):null}}],i=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):oS(e)?e(n):t.createElement(vD,mq({},n,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],r&&vq(n.prototype,r),i&&vq(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}();function Oq(e){return Oq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oq(e)}function _q(){return _q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_q.apply(this,arguments)}function Iq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Iq(Object(n),!0).forEach(function(t){Mq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rq(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fq(r.key),r)}}function Cq(e,t,n){return t=Pq(t),function(e,t){if(t&&("object"===Oq(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Dq()?Reflect.construct(t,n||[],Pq(e).constructor):t.apply(e,n))}function Dq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Dq=function(){return!!e})()}function Pq(e){return Pq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pq(e)}function Lq(e,t){return Lq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lq(e,t)}function Mq(e,t,n){return(t=Fq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fq(e){var t=function(e,t){if("object"!=Oq(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Oq(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Oq(t)?t:t+""}kq(Tq,"displayName","PolarRadiusAxis"),kq(Tq,"axisType","radiusAxis"),kq(Tq,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var jq=Math.PI/180,Bq=1e-5,Uq=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Cq(this,e,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&Lq(e,t)}(e,a),n=e,r=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,a=t.radius,i=t.orientation,o=t.tickSize||8,s=CU(n,r,a,e.coordinate),l=CU(n,r,a+("inner"===i?-1:1)*o,e.coordinate);return{x1:s.x,y1:s.y,x2:l.x,y2:l.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*jq);return n>Bq?"outer"===t?"start":"end":n<-Bq?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.cx,r=e.cy,a=e.radius,i=e.axisLine,o=e.axisLineType,s=Nq(Nq({},QA(this.props,!1)),{},{fill:"none"},QA(i,!1));if("circle"===o)return t.createElement(KG,_q({className:"recharts-polar-angle-axis-line"},s,{cx:n,cy:r,r:a}));var l=this.props.ticks.map(function(e){return CU(n,r,a,e.coordinate)});return t.createElement(WG,_q({className:"recharts-polar-angle-axis-line"},s,{points:l}))}},{key:"renderTicks",value:function(){var n=this,r=this.props,a=r.ticks,i=r.tick,o=r.tickLine,s=r.tickFormatter,l=r.stroke,c=QA(this.props,!1),u=QA(i,!1),d=Nq(Nq({},c),{},{fill:"none"},QA(o,!1)),p=a.map(function(r,a){var p=n.getTickLineCoord(r),f=Nq(Nq(Nq({textAnchor:n.getTickTextAnchor(r)},c),{},{stroke:"none",fill:l},u),{},{index:a,payload:r,x:p.x2,y:p.y2});return t.createElement(ck,_q({className:IE("recharts-polar-angle-axis-tick",FU(i)),key:"tick-".concat(r.coordinate)},FA(n.props,r,a)),o&&t.createElement("line",_q({className:"recharts-polar-angle-axis-tick-line"},d,p)),i&&e.renderTickItem(i,f,s?s(r.value,a):r.value))});return t.createElement(ck,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.radius,a=e.axisLine;return r<=0||!n||!n.length?null:t.createElement(ck,{className:IE("recharts-polar-angle-axis",this.props.className)},a&&this.renderAxisLine(),this.renderTicks())}}],i=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):oS(e)?e(n):t.createElement(vD,_q({},n,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],r&&Rq(n.prototype,r),i&&Rq(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}();Mq(Uq,"displayName","PolarAngleAxis"),Mq(Uq,"axisType","angleAxis"),Mq(Uq,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var zq=$O(Object.getPrototypeOf,Object),$q=VE,Gq=zq,qq=WE,Hq=Function.prototype,Vq=Object.prototype,Wq=Hq.toString,Yq=Vq.hasOwnProperty,Kq=Wq.call(Object);var Xq=function(e){if(!qq(e)||"[object Object]"!=$q(e))return!1;var t=Gq(e);if(null===t)return!0;var n=Yq.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Wq.call(n)==Kq},Zq=VE,Qq=WE;var Jq=function(e){return!0===e||!1===e||Qq(e)&&"[object Boolean]"==Zq(e)};function eH(e){return eH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eH(e)}function tH(){return tH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tH.apply(this,arguments)}function nH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return rH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rH(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function aH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function iH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aH(Object(n),!0).forEach(function(t){oH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oH(e,t,n){var r;return r=function(e,t){if("object"!=eH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=eH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==eH(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sH,lH=function(e,t,n,r,a){var i,o=n-r;return i="M ".concat(e,",").concat(t),i+="L ".concat(e+n,",").concat(t),i+="L ".concat(e+n-o/2,",").concat(t+a),i+="L ".concat(e+n-o/2-r,",").concat(t+a),i+="L ".concat(e,",").concat(t," Z")},cH={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},uH=function(e){var n=iH(iH({},cH),e),r=o(),a=nH(l(-1),2),i=a[0],s=a[1];u(function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&s(e)}catch(e){}},[]);var c=n.x,d=n.y,p=n.upperWidth,f=n.lowerWidth,g=n.height,m=n.className,h=n.animationEasing,b=n.animationDuration,y=n.animationBegin,v=n.isUpdateAnimationActive;if(c!==+c||d!==+d||p!==+p||f!==+f||g!==+g||0===p&&0===f||0===g)return null;var E=IE("recharts-trapezoid",m);return v?t.createElement(_G,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:g,x:c,y:d},to:{upperWidth:p,lowerWidth:f,height:g,x:c,y:d},duration:b,animationEasing:h,isActive:v},function(e){var a=e.upperWidth,o=e.lowerWidth,s=e.height,l=e.x,c=e.y;return t.createElement(_G,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:b,easing:h},t.createElement("path",tH({},QA(n,!0),{className:E,d:lH(l,c,a,o,s),ref:r})))}):t.createElement("g",null,t.createElement("path",tH({},QA(n,!0),{className:E,d:lH(c,d,p,f,g)})))},dH=["option","shapeType","propTransformer","activeClassName","isActive"];function pH(e){return pH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pH(e)}function fH(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function gH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gH(Object(n),!0).forEach(function(t){hH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hH(e,t,n){var r;return r=function(e,t){if("object"!=pH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=pH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==pH(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bH(e,t){return mH(mH({},t),e)}function yH(e){var n=e.shapeType,r=e.elementProps;switch(n){case"rectangle":return t.createElement(BG,r);case"trapezoid":return t.createElement(uH,r);case"sector":return t.createElement(bz,r);case"symbols":if(function(e){return"symbols"===e}(n))return t.createElement(eT,r);break;default:return null}}function vH(e){var r,a=e.option,i=e.shapeType,o=e.propTransformer,s=void 0===o?bH:o,l=e.activeClassName,c=void 0===l?"recharts-active-shape":l,u=e.isActive,d=fH(e,dH);if(n(a))r=p(a,mH(mH({},d),function(e){return n(e)?e.props:e}(a)));else if(oS(a))r=a(d);else if(Xq(a)&&!Jq(a)){var f=s(a,d);r=t.createElement(yH,{shapeType:i,elementProps:f})}else{var g=d;r=t.createElement(yH,{shapeType:i,elementProps:g})}return u?t.createElement(ck,{className:c},r):r}function EH(e,t){return null!=t&&"trapezoids"in e.props}function SH(e,t){return null!=t&&"sectors"in e.props}function wH(e,t){return null!=t&&"points"in e.props}function AH(e,t){var n,r,a=e.x===(null==t||null===(n=t.labelViewBox)||void 0===n?void 0:n.x)||e.x===t.x,i=e.y===(null==t||null===(r=t.labelViewBox)||void 0===r?void 0:r.y)||e.y===t.y;return a&&i}function kH(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function xH(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function TH(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=function(e,t){var n;return EH(e,t)?n="trapezoids":SH(e,t)?n="sectors":wH(e,t)&&(n="points"),n}(n,t),i=function(e,t){var n,r;return EH(e,t)?null===(n=t.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:SH(e,t)?null===(r=t.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:wH(e,t)?t.payload:{}}(n,t),o=r.filter(function(e,r){var o=Aj(i,e),s=n.props[a].filter(function(e){var r=function(e,t){var n;return EH(e,t)?n=AH:SH(e,t)?n=kH:wH(e,t)&&(n=xH),n}(n,t);return r(e,t)}),l=n.props[a].indexOf(s[s.length-1]);return o&&r===l});return r.indexOf(o[o.length-1])}function OH(e){return OH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},OH(e)}function _H(){return _H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_H.apply(this,arguments)}function IH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function NH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IH(Object(n),!0).forEach(function(t){MH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function RH(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,FH(r.key),r)}}function CH(e,t,n){return t=PH(t),function(e,t){if(t&&("object"===OH(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,DH()?Reflect.construct(t,n||[],PH(e).constructor):t.apply(e,n))}function DH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(DH=function(){return!!e})()}function PH(e){return PH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},PH(e)}function LH(e,t){return LH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},LH(e,t)}function MH(e,t,n){return(t=FH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FH(e){var t=function(e,t){if("object"!=OH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=OH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==OH(t)?t:t+""}var jH=function(){function e(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),MH(n=CH(this,e,[t]),"pieRef",null),MH(n,"sectorRefs",[]),MH(n,"id",kA("recharts-pie-")),MH(n,"handleAnimationEnd",function(){var e=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),oS(e)&&e()}),MH(n,"handleAnimationStart",function(){var e=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),oS(e)&&e()}),n.state={isAnimationFinished:!t.isAnimationActive,prevIsAnimationActive:t.isAnimationActive,prevAnimationId:t.animationId,sectorToFocus:0},n}return function(e,t){if("function"!=typeof t&&null!==t)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&&LH(e,t)}(e,a),n=e,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"hasActiveIndex",value:function(){var e=this.props.activeIndex;return Array.isArray(e)?0!==e.length:e||0===e}},{key:"renderLabels",value:function(n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,a=r.label,i=r.labelLine,o=r.dataKey,s=r.valueKey,l=QA(this.props,!1),c=QA(a,!1),u=QA(i,!1),d=a&&a.offsetRadius||20,p=n.map(function(n,r){var p=(n.startAngle+n.endAngle)/2,f=CU(n.cx,n.cy,n.outerRadius+d,p),g=NH(NH(NH(NH({},l),n),{},{stroke:"none"},c),{},{index:r,textAnchor:e.getTextAnchor(f.x,n.cx)},f),m=NH(NH(NH(NH({},l),n),{},{fill:"none",stroke:n.fill},u),{},{index:r,points:[CU(n.cx,n.cy,n.outerRadius,p),f]}),h=o;return rA(o)&&rA(s)?h="value":rA(o)&&(h=s),t.createElement(ck,{key:"label-".concat(n.startAngle,"-").concat(n.endAngle,"-").concat(n.midAngle,"-").concat(r)},i&&e.renderLabelLineItem(i,m,"line"),e.renderLabelItem(a,g,JB(n,h)))});return t.createElement(ck,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(e){var n=this,r=this.props,a=r.activeShape,i=r.blendStroke,o=r.inactiveShape;return e.map(function(r,s){if(0===(null==r?void 0:r.startAngle)&&0===(null==r?void 0:r.endAngle)&&1!==e.length)return null;var l=n.isActiveIndex(s),c=o&&n.hasActiveIndex()?o:null,u=l?a:c,d=NH(NH({},r),{},{stroke:i?r.fill:r.stroke,tabIndex:-1});return t.createElement(ck,_H({ref:function(e){e&&!n.sectorRefs.includes(e)&&n.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},FA(n.props,r,s),{key:"sector-".concat(null==r?void 0:r.startAngle,"-").concat(null==r?void 0:r.endAngle,"-").concat(r.midAngle,"-").concat(s)}),t.createElement(vH,_H({option:u,isActive:l,shapeType:"sector"},d)))})}},{key:"renderSectorsWithAnimation",value:function(){var e=this,n=this.props,r=n.sectors,a=n.isAnimationActive,i=n.animationBegin,o=n.animationDuration,s=n.animationEasing,l=n.animationId,c=this.state,u=c.prevSectors,d=c.prevIsAnimationActive;return t.createElement(_G,{begin:i,duration:o,isActive:a,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(l,"-").concat(d),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(n){var a=n.t,i=[],o=(r&&r[0]).startAngle;return r.forEach(function(e,t){var n=u&&u[t],r=t>0?nA(e,"paddingAngle",0):0;if(n){var s=OA(n.endAngle-n.startAngle,e.endAngle-e.startAngle),l=NH(NH({},e),{},{startAngle:o+r,endAngle:o+s(a)+r});i.push(l),o=l.endAngle}else{var c=e.endAngle,d=e.startAngle,p=OA(0,c-d)(a),f=NH(NH({},e),{},{startAngle:o+r,endAngle:o+p+r});i.push(f),o=f.endAngle}}),t.createElement(ck,null,e.renderSectorsStatically(i))})}},{key:"attachKeyboardHandlers",value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case"ArrowLeft":var n=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case"ArrowRight":var r=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case"Escape":t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&Aj(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,n=this.props,r=n.hide,a=n.sectors,i=n.className,o=n.label,s=n.cx,l=n.cy,c=n.innerRadius,u=n.outerRadius,d=n.isAnimationActive,p=this.state.isAnimationFinished;if(r||!a||!a.length||!SA(s)||!SA(l)||!SA(c)||!SA(u))return null;var f=IE("recharts-pie",i);return t.createElement(ck,{tabIndex:this.props.rootTabIndex,className:f,ref:function(t){e.pieRef=t}},this.renderSectors(),o&&this.renderLabels(a),YU.renderCallByParent(this.props,null,!1),(!d||p)&&lz.renderCallByParent(this.props,a,!1))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,n,r){if(t.isValidElement(e))return t.cloneElement(e,n);if(oS(e))return e(n);var a=IE("recharts-pie-label-line","boolean"!=typeof e?e.className:"");return t.createElement(Iz,_H({},n,{key:r,type:"linear",className:a}))}},{key:"renderLabelItem",value:function(e,n,r){if(t.isValidElement(e))return t.cloneElement(e,n);var a=r;if(oS(e)&&(a=e(n),t.isValidElement(a)))return a;var i=IE("recharts-pie-label-text","boolean"==typeof e||oS(e)?"":e.className);return t.createElement(vD,_H({},n,{alignmentBaseline:"middle",className:i}),a)}}],r&&RH(n.prototype,r),i&&RH(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}();sH=jH,MH(jH,"displayName","Pie"),MH(jH,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!WR,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),MH(jH,"parseDeltaAngle",function(e,t){return vA(t-e)*Math.min(Math.abs(t-e),360)}),MH(jH,"getRealPieData",function(e){var t=e.data,n=e.children,r=QA(e,!1),a=WA(n,MC);return t&&t.length?t.map(function(e,t){return NH(NH(NH({payload:e},r),e),a&&a[t]&&a[t].props)}):a&&a.length?a.map(function(e){return NH(NH({},r),e.props)}):[]}),MH(jH,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,a=t.width,i=t.height,o=DU(a,i);return{cx:r+xA(e.cx,a,a/2),cy:n+xA(e.cy,i,i/2),innerRadius:xA(e.innerRadius,o,0),outerRadius:xA(e.outerRadius,o,.8*o),maxRadius:e.maxRadius||Math.sqrt(a*a+i*i)/2}}),MH(jH,"getComposedData",function(e){var t=e.item,n=e.offset,r=void 0!==t.type.defaultProps?NH(NH({},t.type.defaultProps),t.props):t.props,a=sH.getRealPieData(r);if(!a||!a.length)return null;var i=r.cornerRadius,o=r.startAngle,s=r.endAngle,l=r.paddingAngle,c=r.dataKey,u=r.nameKey,d=r.valueKey,p=r.tooltipType,f=Math.abs(r.minAngle),g=sH.parseCoordinateOfPie(r,n),m=sH.parseDeltaAngle(o,s),h=Math.abs(m),b=c;rA(c)&&rA(d)?(dk(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),b="value"):rA(c)&&(dk(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),b=d);var y,v,E=a.filter(function(e){return 0!==JB(e,b,0)}).length,S=h-E*f-(h>=360?E:E-1)*l,w=a.reduce(function(e,t){var n=JB(t,b,0);return e+(SA(n)?n:0)},0);w>0&&(y=a.map(function(e,t){var n,r=JB(e,b,0),a=JB(e,u,t),s=(SA(r)?r:0)/w,c=(n=t?v.endAngle+vA(m)*l*(0!==r?1:0):o)+vA(m)*((0!==r?f:0)+s*S),d=(n+c)/2,h=(g.innerRadius+g.outerRadius)/2,y=[{name:a,value:r,payload:e,dataKey:b,type:p}],E=CU(g.cx,g.cy,h,d);return v=NH(NH(NH({percent:s,cornerRadius:i,name:a,tooltipPayload:y,midAngle:d,middleRadius:h,tooltipPosition:E},e),g),{},{value:JB(e,b),startAngle:n,endAngle:c,payload:e,paddingAngle:vA(m)*l})}));return NH(NH({},g),{},{sectors:y,data:a})});var BH=Math.ceil,UH=Math.max;var zH=function(e,t,n,r){for(var a=-1,i=UH(BH((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++a]=e,e+=n;return o},$H=vC,GH=1/0;var qH=function(e){return e?(e=$H(e))===GH||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},HH=zH,VH=hR,WH=qH;var YH=function(e){return function(t,n,r){return r&&"number"!=typeof r&&VH(t,n,r)&&(n=r=void 0),t=WH(t),void 0===n?(n=t,t=0):n=WH(n),r=void 0===r?t<n?1:-1:WH(r),HH(t,n,r,e)}}();function KH(e){return KH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},KH(e)}function XH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ZH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XH(Object(n),!0).forEach(function(t){QH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function QH(e,t,n){var r;return r=function(e,t){if("object"!=KH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=KH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==KH(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var JH=["Webkit","Moz","O","ms"];function eV(e){return eV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eV(e)}function tV(){return tV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tV.apply(this,arguments)}function nV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nV(Object(n),!0).forEach(function(t){cV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aV(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uV(r.key),r)}}function iV(e,t,n){return t=sV(t),function(e,t){if(t&&("object"===eV(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,oV()?Reflect.construct(t,n||[],sV(e).constructor):t.apply(e,n))}function oV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(oV=function(){return!!e})()}function sV(e){return sV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sV(e)}function lV(e,t){return lV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lV(e,t)}function cV(e,t,n){return(t=uV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uV(e){var t=function(e,t){if("object"!=eV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=eV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==eV(t)?t:t+""}var dV=function(e){return e.changedTouches&&!!e.changedTouches.length},pV=function(){function e(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),cV(n=iV(this,e,[t]),"handleDrag",function(e){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(e):n.state.isSlideMoving&&n.handleSlideDrag(e)}),cV(n,"handleTouchMove",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleDrag(e.changedTouches[0])}),cV(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var e=n.props,t=e.endIndex,r=e.onDragEnd,a=e.startIndex;null==r||r({endIndex:t,startIndex:a})}),n.detachDragEndListener()}),cV(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),cV(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),cV(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),cV(n,"handleSlideDragStart",function(e){var t=dV(e)?e.changedTouches[0]:e;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return function(e,t){if("function"!=typeof t&&null!==t)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&&lV(e,t)}(e,a),n=e,i=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var n=t.startX,r=t.endX,a=this.state.scaleValues,i=this.props,o=i.gap,s=i.data.length-1,l=Math.min(n,r),c=Math.max(n,r),u=e.getIndexInRange(a,l),d=e.getIndexInRange(a,c);return{startIndex:u-u%o,endIndex:d===s?s:d-d%o}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,a=t.dataKey,i=JB(n[e],a,e);return oS(r)?r(i,e):i}},{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(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,a=t.endX,i=this.props,o=i.x,s=i.width,l=i.travellerWidth,c=i.startIndex,u=i.endIndex,d=i.onChange,p=e.pageX-n;p>0?p=Math.min(p,o+s-l-a,o+s-l-r):p<0&&(p=Math.max(p,o-r,o-a));var f=this.getIndex({startX:r+p,endX:a+p});f.startIndex===c&&f.endIndex===u||!d||d(f),this.setState({startX:r+p,endX:a+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=dV(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t=this.state,n=t.brushMoveStartX,r=t.movingTravellerId,a=t.endX,i=t.startX,o=this.state[r],s=this.props,l=s.x,c=s.width,u=s.travellerWidth,d=s.onChange,p=s.gap,f=s.data,g={startX:this.state.startX,endX:this.state.endX},m=e.pageX-n;m>0?m=Math.min(m,l+c-u-o):m<0&&(m=Math.max(m,l-o)),g[r]=o+m;var h=this.getIndex(g),b=h.startIndex,y=h.endIndex;this.setState(cV(cV({},r,o+m),"brushMoveStartX",e.pageX),function(){var e;d&&(e=f.length-1,("startX"===r&&(a>i?b%p===0:y%p===0)||a<i&&y===e||"endX"===r&&(a>i?y%p===0:b%p===0)||a>i&&y===e)&&d(h))})}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var n=this,r=this.state,a=r.scaleValues,i=r.startX,o=r.endX,s=this.state[t],l=a.indexOf(s);if(-1!==l){var c=l+e;if(!(-1===c||c>=a.length)){var u=a[c];"startX"===t&&u>=o||"endX"===t&&u<=i||this.setState(cV({},t,u),function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))})}}}},{key:"renderBackground",value:function(){var e=this.props,n=e.x,r=e.y,a=e.width,i=e.height,o=e.fill,s=e.stroke;return t.createElement("rect",{stroke:s,fill:o,x:n,y:r,width:a,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,n=e.x,a=e.y,i=e.width,o=e.height,s=e.data,l=e.children,c=e.padding,u=r.only(l);return u?t.cloneElement(u,{x:n,y:a,width:i,height:o,margin:c,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(n,r){var a,i,o=this,s=this.props,l=s.y,c=s.travellerWidth,u=s.height,d=s.traveller,p=s.ariaLabel,f=s.data,g=s.startIndex,m=s.endIndex,h=Math.max(n,this.props.x),b=rV(rV({},QA(this.props,!1)),{},{x:h,y:l,width:c,height:u}),y=p||"Min value: ".concat(null===(a=f[g])||void 0===a?void 0:a.name,", Max value: ").concat(null===(i=f[m])||void 0===i?void 0:i.name);return t.createElement(ck,{tabIndex:0,role:"slider","aria-label":y,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),o.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,r))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(d,b))}},{key:"renderSlide",value:function(e,n){var r=this.props,a=r.y,i=r.height,o=r.stroke,s=r.travellerWidth,l=Math.min(e,n)+s,c=Math.max(Math.abs(n-e)-s,0);return t.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:o,fillOpacity:.2,x:l,y:a,width:c,height:i})}},{key:"renderText",value:function(){var e=this.props,n=e.startIndex,r=e.endIndex,a=e.y,i=e.height,o=e.travellerWidth,s=e.stroke,l=this.state,c=l.startX,u=l.endX,d={pointerEvents:"none",fill:s};return t.createElement(ck,{className:"recharts-brush-texts"},t.createElement(vD,tV({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,u)-5,y:a+i/2},d),this.getTextOfTick(n)),t.createElement(vD,tV({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,u)+o+5,y:a+i/2},d),this.getTextOfTick(r)))}},{key:"render",value:function(){var e=this.props,n=e.data,r=e.className,a=e.children,i=e.x,o=e.y,s=e.width,l=e.height,c=e.alwaysShowText,u=this.state,d=u.startX,p=u.endX,f=u.isTextActive,g=u.isSlideMoving,m=u.isTravellerMoving,h=u.isTravellerFocused;if(!n||!n.length||!SA(i)||!SA(o)||!SA(s)||!SA(l)||s<=0||l<=0)return null;var b=IE("recharts-brush",r),y=1===t.Children.count(a),v=function(e,t){var n=e.replace(/(\w)/,function(e){return e.toUpperCase()}),r=JH.reduce(function(e,r){return ZH(ZH({},e),{},QH({},r+n,t))},{});return r[e]=t,r}("userSelect","none");return t.createElement(ck,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:v},this.renderBackground(),y&&this.renderPanorama(),this.renderSlide(d,p),this.renderTravellerLayer(d,"startX"),this.renderTravellerLayer(p,"endX"),(f||g||m||h||c)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(e){var n=e.x,r=e.y,a=e.width,i=e.height,o=e.stroke,s=Math.floor(r+i/2)-1;return t.createElement(t.Fragment,null,t.createElement("rect",{x:n,y:r,width:a,height:i,fill:o,stroke:"none"}),t.createElement("line",{x1:n+1,y1:s,x2:n+a-1,y2:s,fill:"none",stroke:"#fff"}),t.createElement("line",{x1:n+1,y1:s+2,x2:n+a-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,r){return t.isValidElement(n)?t.cloneElement(n,r):oS(n)?n(r):e.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,a=e.x,i=e.travellerWidth,o=e.updateId,s=e.startIndex,l=e.endIndex;if(n!==t.prevData||o!==t.prevUpdateId)return rV({prevData:n,prevTravellerWidth:i,prevUpdateId:o,prevX:a,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,a=e.x,i=e.width,o=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,l=YD().domain(YH(0,s)).range([a,a+i-o]),c=l.domain().map(function(e){return l(e)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(n),endX:l(r),scale:l,scaleValues:c}}({data:n,width:r,x:a,travellerWidth:i,startIndex:s,endIndex:l}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||a!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([a,a+r-i]);var c=t.scale.domain().map(function(e){return t.scale(e)});return{prevData:n,prevTravellerWidth:i,prevUpdateId:o,prevX:a,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:c}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var a=Math.floor((n+r)/2);e[a]>t?r=a:n=a}return t>=e[r]?r:n}}],i&&aV(n.prototype,i),o&&aV(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}();cV(pV,"displayName","Brush"),cV(pV,"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 fV=DN;var gV=function(e,t){var n;return fV(e,function(e,r,a){return!(n=t(e,r,a))}),!!n},mV=CT,hV=FI,bV=gV,yV=NE,vV=hR;var EV=function(e,t,n){var r=yV(e)?mV:bV;return n&&vV(e,t,n)&&(t=void 0),r(e,hV(t))},SV=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},wV=nR;var AV=function(e,t,n){"__proto__"==t&&wV?wV(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},kV=AV,xV=NN,TV=FI;var OV=function(e,t){var n={};return t=TV(t),xV(e,function(e,r,a){kV(n,r,t(e,r,a))}),n};var _V=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0},IV=DN;var NV=function(e,t){var n=!0;return IV(e,function(e,r,a){return n=!!t(e,r,a)}),n},RV=_V,CV=NV,DV=FI,PV=NE,LV=hR;var MV=function(e,t,n){var r=PV(e)?RV:CV;return n&&LV(e,t,n)&&(t=void 0),r(e,DV(t))},FV=["x","y"];function jV(e){return jV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jV(e)}function BV(){return BV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BV.apply(this,arguments)}function UV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UV(Object(n),!0).forEach(function(t){$V(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $V(e,t,n){var r;return r=function(e,t){if("object"!=jV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=jV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==jV(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GV(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function qV(e,t){var n=e.x,r=e.y,a=GV(e,FV),i="".concat(n),o=parseInt(i,10),s="".concat(r),l=parseInt(s,10),c="".concat(t.height||a.height),u=parseInt(c,10),d="".concat(t.width||a.width),p=parseInt(d,10);return zV(zV(zV(zV(zV({},t),a),o?{x:o}:{}),l?{y:l}:{}),{},{height:u,width:p,name:t.name,radius:t.radius})}function HV(e){return t.createElement(vH,BV({shapeType:"rectangle",propTransformer:qV,activeClassName:"recharts-active-bar"},e))}var VV,WV=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n,r){if("number"==typeof e)return e;var a=SA(n)||function(e){return rA(e)}(n);return a?e(n,r):(a||("production"!==process.env.NODE_ENV?OB(0,"minPointSize callback function received a value with type of ".concat(jV(n),". Currently only numbers or null/undefined are supported.")):OB()),t)}},YV=["value","background"];function KV(e){return KV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},KV(e)}function XV(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function ZV(){return ZV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZV.apply(this,arguments)}function QV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function JV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QV(Object(n),!0).forEach(function(t){iW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eW(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oW(r.key),r)}}function tW(e,t,n){return t=rW(t),function(e,t){if(t&&("object"===KV(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,nW()?Reflect.construct(t,n||[],rW(e).constructor):t.apply(e,n))}function nW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(nW=function(){return!!e})()}function rW(e){return rW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rW(e)}function aW(e,t){return aW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},aW(e,t)}function iW(e,t,n){return(t=oW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oW(e){var t=function(e,t){if("object"!=KV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=KV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==KV(t)?t:t+""}var sW=function(){function e(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return iW(t=tW(this,e,[].concat(r)),"state",{isAnimationFinished:!1}),iW(t,"id",kA("recharts-bar-")),iW(t,"handleAnimationEnd",function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()}),iW(t,"handleAnimationStart",function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()}),t}return function(e,t){if("function"!=typeof t&&null!==t)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&&aW(e,t)}(e,a),n=e,r=[{key:"renderRectanglesStatically",value:function(e){var n=this,r=this.props,a=r.shape,i=r.dataKey,o=r.activeIndex,s=r.activeBar,l=QA(this.props,!1);return e&&e.map(function(e,r){var c=r===o,u=c?s:a,d=JV(JV(JV({},l),e),{},{isActive:c,option:u,index:r,dataKey:i,onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd});return t.createElement(ck,ZV({className:"recharts-bar-rectangle"},FA(n.props,e,r),{key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value,"-").concat(r)}),t.createElement(HV,d))})}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,n=this.props,r=n.data,a=n.layout,i=n.isAnimationActive,o=n.animationBegin,s=n.animationDuration,l=n.animationEasing,c=n.animationId,u=this.state.prevData;return t.createElement(_G,{begin:o,duration:s,isActive:i,easing:l,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(n){var i=n.t,o=r.map(function(e,t){var n=u&&u[t];if(n){var r=OA(n.x,e.x),o=OA(n.y,e.y),s=OA(n.width,e.width),l=OA(n.height,e.height);return JV(JV({},e),{},{x:r(i),y:o(i),width:s(i),height:l(i)})}if("horizontal"===a){var c=OA(0,e.height)(i);return JV(JV({},e),{},{y:e.y+e.height-c,height:c})}var d=OA(0,e.width)(i);return JV(JV({},e),{},{width:d})});return t.createElement(ck,null,e.renderRectanglesStatically(o))})}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&Aj(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,n=this.props,r=n.data,a=n.dataKey,i=n.activeIndex,o=QA(this.props.background,!1);return r.map(function(n,r){n.value;var s=n.background,l=XV(n,YV);if(!s)return null;var c=JV(JV(JV(JV(JV({},l),{},{fill:"#eee"},s),o),FA(e.props,n,r)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:a,index:r,className:"recharts-bar-background-rectangle"});return t.createElement(HV,ZV({key:"background-bar-".concat(r),option:e.props.background,isActive:r===i},c))})}},{key:"renderErrorBar",value:function(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,a=r.data,i=r.xAxis,o=r.yAxis,s=r.layout,l=WA(r.children,zB);if(!l)return null;var c="vertical"===s?a[0].height/2:a[0].width/2,u=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:JB(e,t)}},d={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(ck,d,l.map(function(e){return t.cloneElement(e,{key:"error-bar-".concat(n,"-").concat(e.props.dataKey),data:a,xAxis:i,yAxis:o,layout:s,offset:c,dataPointFormatter:u})}))}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.data,a=e.className,i=e.xAxis,o=e.yAxis,s=e.left,l=e.top,c=e.width,u=e.height,d=e.isAnimationActive,p=e.background,f=e.id;if(n||!r||!r.length)return null;var g=this.state.isAnimationFinished,m=IE("recharts-bar",a),h=i&&i.allowDataOverflow,b=o&&o.allowDataOverflow,y=h||b,v=rA(f)?this.id:f;return t.createElement(ck,{className:m},h||b?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(v)},t.createElement("rect",{x:h?s:s-c/2,y:b?l:l-u/2,width:h?c:2*c,height:b?u:2*u}))):null,t.createElement(ck,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(v,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(y,v),(!d||g)&&lz.renderCallByParent(this.props,r))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],r&&eW(n.prototype,r),i&&eW(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}();function lW(e){return lW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lW(e)}function cW(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fW(r.key),r)}}function uW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uW(Object(n),!0).forEach(function(t){pW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pW(e,t,n){return(t=fW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fW(e){var t=function(e,t){if("object"!=lW(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=lW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lW(t)?t:t+""}VV=sW,iW(sW,"displayName","Bar"),iW(sW,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!WR,animationBegin:0,animationDuration:400,animationEasing:"ease"}),iW(sW,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,a=e.bandSize,i=e.xAxis,o=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,c=e.stackedData,u=e.dataStartIndex,d=e.displayedData,p=e.offset,f=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null}(r,n);if(!f)return null;var g=t.layout,m=n.type.defaultProps,h=void 0!==m?JV(JV({},m),n.props):n.props,b=h.dataKey,y=h.children,v=h.minPointSize,E="horizontal"===g?o:i,S=c?E.scale.domain():null,w=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return r<=0&&a>=0?0:a<0?a:r}return n[0]}({numericAxis:E}),A=WA(y,MC),k=d.map(function(e,t){var r,d,p,m,h,y;c?r=function(e,t){if(!t||2!==t.length||!SA(t[0])||!SA(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),a=[e[0],e[1]];return(!SA(e[0])||e[0]<n)&&(a[0]=n),(!SA(e[1])||e[1]>r)&&(a[1]=r),a[0]>r&&(a[0]=r),a[1]<n&&(a[1]=n),a}(c[u+t],S):(r=JB(e,b),Array.isArray(r)||(r=[w,r]));var E=WV(v,VV.defaultProps.minPointSize)(r[1],t);if("horizontal"===g){var k,x=[o.scale(r[0]),o.scale(r[1])],T=x[0],O=x[1];d=hU({axis:i,ticks:s,bandSize:a,offset:f.offset,entry:e,index:t}),p=null!==(k=null!=O?O:T)&&void 0!==k?k:void 0,m=f.size;var _=T-O;if(h=Number.isNaN(_)?0:_,y={x:d,y:o.y,width:m,height:o.height},Math.abs(E)>0&&Math.abs(h)<Math.abs(E)){var I=vA(h||E)*(Math.abs(E)-Math.abs(h));p-=I,h+=I}}else{var N=[i.scale(r[0]),i.scale(r[1])],R=N[0],C=N[1];if(d=R,p=hU({axis:o,ticks:l,bandSize:a,offset:f.offset,entry:e,index:t}),m=C-R,h=f.size,y={x:i.x,y:p,width:i.width,height:h},Math.abs(E)>0&&Math.abs(m)<Math.abs(E))m+=vA(m||E)*(Math.abs(E)-Math.abs(m))}return JV(JV(JV({},e),{},{x:d,y:p,width:m,height:h,value:c?r:r[1],payload:e,background:y},A&&A[t]&&A[t].props),{},{tooltipPayload:[AU(n,e)],tooltipPosition:{x:d+m/2,y:p+h/2}})});return JV({data:k,layout:g},p)});var gW=function(e,t,n,r,a){var i=e.width,o=e.height,s=e.layout,l=e.children,c=Object.keys(t),u={left:n.left,leftMirror:n.left,right:i-n.right,rightMirror:i-n.right,top:n.top,topMirror:n.top,bottom:o-n.bottom,bottomMirror:o-n.bottom},d=!!YA(l,sW);return c.reduce(function(i,o){var l,c,p,f,g,m=t[o],h=m.orientation,b=m.domain,y=m.padding,v=void 0===y?{}:y,E=m.mirror,S=m.reversed,w="".concat(h).concat(E?"Mirror":"");if("number"===m.type&&("gap"===m.padding||"no-gap"===m.padding)){var A=b[1]-b[0],k=1/0,x=m.categoricalDomain.sort(IA);if(x.forEach(function(e,t){t>0&&(k=Math.min((e||0)-(x[t-1]||0),k))}),Number.isFinite(k)){var T=k/A,O="vertical"===m.layout?n.height:n.width;if("gap"===m.padding&&(l=T*O/2),"no-gap"===m.padding){var _=xA(e.barCategoryGap,T*O),I=T*O/2;l=I-_-(I-_)/O*_}}}c="xAxis"===r?[n.left+(v.left||0)+(l||0),n.left+n.width-(v.right||0)-(l||0)]:"yAxis"===r?"horizontal"===s?[n.top+n.height-(v.bottom||0),n.top+(v.top||0)]:[n.top+(v.top||0)+(l||0),n.top+n.height-(v.bottom||0)-(l||0)]:m.range,S&&(c=[c[1],c[0]]);var N=cU(m,a,d),R=N.scale,C=N.realScaleType;R.domain(b).range(c),dU(R);var D=gU(R,dW(dW({},m),{},{realScaleType:C}));"xAxis"===r?(g="top"===h&&!E||"bottom"===h&&E,p=n.left,f=u[w]-g*m.height):"yAxis"===r&&(g="left"===h&&!E||"right"===h&&E,p=u[w]-g*m.width,f=n.top);var P=dW(dW(dW({},m),D),{},{realScaleType:C,x:p,y:f,scale:R,width:"xAxis"===r?n.width:m.width,height:"yAxis"===r?n.height:m.height});return P.bandSize=SU(P,D),m.hide||"xAxis"!==r?m.hide||(u[w]+=(g?-1:1)*P.width):u[w]+=(g?-1:1)*P.height,dW(dW({},i),{},pW({},o,P))},{})},mW=function(e,t){var n=e.x,r=e.y,a=t.x,i=t.y;return{x:Math.min(n,a),y:Math.min(r,i),width:Math.abs(a-n),height:Math.abs(i-r)}},hW=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}return t=e,n=[{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(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(n){var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],r=[{key:"create",value:function(t){return new e(t)}}],n&&cW(t.prototype,n),r&&cW(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();pW(hW,"EPS",1e-4);var bW=function(e){var t=Object.keys(e).reduce(function(t,n){return dW(dW({},t),{},pW({},n,hW.create(e[n])))},{});return dW(dW({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,a=n.position;return OV(e,function(e,n){return t[n].apply(e,{bandAware:r,position:a})})},isInRange:function(e){return MV(e,function(e,n){return t[n].isInRange(e)})}})};var yW=FI,vW=XO,EW=e_;var SW=function(e){return function(t,n,r){var a=Object(t);if(!vW(t)){var i=yW(n);t=EW(t),n=function(e){return i(a[e],e,a)}}var o=e(t,n,r);return o>-1?a[i?t[o]:o]:void 0}},wW=qH;var AW=jI,kW=FI,xW=function(e){var t=wW(e),n=t%1;return t==t?n?t-n:t:0},TW=Math.max;var OW=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:xW(n);return a<0&&(a=TW(r+a,0)),AW(e,kW(t),a)},_W=SW(OW),IW=Nw(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 NW(e){return NW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},NW(e)}var RW=m(void 0),CW=m(void 0),DW=m(void 0),PW=m({}),LW=m(void 0),MW=m(0),FW=m(0),jW=function(e){var n=e.state,r=n.xAxisMap,a=n.yAxisMap,i=n.offset,o=e.clipPathId,s=e.children,l=e.width,c=e.height,u=IW(i);return t.createElement(RW.Provider,{value:r},t.createElement(CW.Provider,{value:a},t.createElement(PW.Provider,{value:i},t.createElement(DW.Provider,{value:u},t.createElement(LW.Provider,{value:o},t.createElement(MW.Provider,{value:c},t.createElement(FW.Provider,{value:l},s)))))))};function BW(e){var t=Object.keys(e);return 0===t.length?"There are no available ids.":"Available ids are: ".concat(t,".")}var UW=function(e){var t=g(RW);null==t&&("production"!==process.env.NODE_ENV?OB(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):OB());var n=t[e];return null==n&&("production"!==process.env.NODE_ENV?OB(0,'Could not find xAxis by id "'.concat(e,'" [').concat(NW(e),"]. ").concat(BW(t))):OB()),n},zW=function(e){var t=g(CW);null==t&&("production"!==process.env.NODE_ENV?OB(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):OB());var n=t[e];return null==n&&("production"!==process.env.NODE_ENV?OB(0,'Could not find yAxis by id "'.concat(e,'" [').concat(NW(e),"]. ").concat(BW(t))):OB()),n},$W=function(){return g(FW)},GW=function(){return g(MW)};function qW(e){return qW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qW(e)}function HW(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,JW(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function VW(e,t,n){return t=YW(t),function(e,t){if(t&&("object"===qW(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,WW()?Reflect.construct(t,n||[],YW(e).constructor):t.apply(e,n))}function WW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(WW=function(){return!!e})()}function YW(e){return YW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},YW(e)}function KW(e,t){return KW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KW(e,t)}function XW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ZW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XW(Object(n),!0).forEach(function(t){QW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function QW(e,t,n){return(t=JW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JW(e){var t=function(e,t){if("object"!=qW(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=qW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==qW(t)?t:t+""}function eY(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return tY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tY(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nY(){return nY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nY.apply(this,arguments)}function rY(e){var n=e.x,r=e.y,a=e.segment,i=e.xAxisId,o=e.yAxisId,s=e.shape,l=e.className,c=e.alwaysShow,u=g(LW),d=UW(i),p=zW(o),f=g(DW);if(!u||!f)return null;dk(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var m=function(e,t,n,r,a,i,o,s,l){var c=a.x,u=a.y,d=a.width,p=a.height;if(n){var f=l.y,g=e.y.apply(f,{position:i});if(SV(l,"discard")&&!e.y.isInRange(g))return null;var m=[{x:c+d,y:g},{x:c,y:g}];return"left"===s?m.reverse():m}if(t){var h=l.x,b=e.x.apply(h,{position:i});if(SV(l,"discard")&&!e.x.isInRange(b))return null;var y=[{x:b,y:u+p},{x:b,y:u}];return"top"===o?y.reverse():y}if(r){var v=l.segment.map(function(t){return e.apply(t,{position:i})});return SV(l,"discard")&&EV(v,function(t){return!e.isInRange(t)})?null:v}return null}(bW({x:d.scale,y:p.scale}),wA(n),wA(r),a&&2===a.length,f,e.position,d.orientation,p.orientation,e);if(!m)return null;var h=eY(m,2),b=h[0],y=b.x,v=b.y,E=h[1],S=E.x,w=E.y,A=ZW(ZW({clipPath:SV(e,"hidden")?"url(#".concat(u,")"):void 0},QA(e,!0)),{},{x1:y,y1:v,x2:S,y2:w});return t.createElement(ck,{className:IE("recharts-reference-line",l)},function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):oS(e)?e(n):t.createElement("line",nY({},n,{className:"recharts-reference-line-line"}))}(s,A),YU.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,a=e.y2;return mW({x:t,y:n},{x:r,y:a})}({x1:y,y1:v,x2:S,y2:w})))}var aY=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),VW(this,e,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&KW(e,t)}(e,t.Component),HW(e,[{key:"render",value:function(){return t.createElement(rY,this.props)}}])}();function iY(){return iY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iY.apply(this,arguments)}function oY(e){return oY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oY(e)}function sY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sY(Object(n),!0).forEach(function(t){gY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cY(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mY(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uY(e,t,n){return t=pY(t),function(e,t){if(t&&("object"===oY(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,dY()?Reflect.construct(t,n||[],pY(e).constructor):t.apply(e,n))}function dY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(dY=function(){return!!e})()}function pY(e){return pY=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pY(e)}function fY(e,t){return fY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fY(e,t)}function gY(e,t,n){return(t=mY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mY(e){var t=function(e,t){if("object"!=oY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=oY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==oY(t)?t:t+""}QW(aY,"displayName","ReferenceLine"),QW(aY,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var hY=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),uY(this,e,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&fY(e,t)}(e,t.Component),cY(e,[{key:"render",value:function(){var n=this.props,r=n.x,a=n.y,i=n.r,o=n.alwaysShow,s=n.clipPathId,l=wA(r),c=wA(a);if(dk(void 0===o,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!l||!c)return null;var u=function(e){var t=e.x,n=e.y,r=e.xAxis,a=e.yAxis,i=bW({x:r.scale,y:a.scale}),o=i.apply({x:t,y:n},{bandAware:!0});return SV(e,"discard")&&!i.isInRange(o)?null:o}(this.props);if(!u)return null;var d=u.x,p=u.y,f=this.props,g=f.shape,m=f.className,h=lY(lY({clipPath:SV(this.props,"hidden")?"url(#".concat(s,")"):void 0},QA(this.props,!0)),{},{cx:d,cy:p});return t.createElement(ck,{className:IE("recharts-reference-dot",m)},e.renderDot(g,h),YU.renderCallByParent(this.props,{x:d-i,y:p-i,width:2*i,height:2*i}))}}])}();function bY(){return bY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bY.apply(this,arguments)}function yY(e){return yY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yY(e)}function vY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function EY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vY(Object(n),!0).forEach(function(t){TY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function SY(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,OY(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wY(e,t,n){return t=kY(t),function(e,t){if(t&&("object"===yY(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,AY()?Reflect.construct(t,n||[],kY(e).constructor):t.apply(e,n))}function AY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(AY=function(){return!!e})()}function kY(e){return kY=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kY(e)}function xY(e,t){return xY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xY(e,t)}function TY(e,t,n){return(t=OY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OY(e){var t=function(e,t){if("object"!=yY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=yY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==yY(t)?t:t+""}gY(hY,"displayName","ReferenceDot"),gY(hY,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),gY(hY,"renderDot",function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):oS(e)?e(n):t.createElement(KG,iY({},n,{cx:n.cx,cy:n.cy,className:"recharts-reference-dot-dot"}))});var _Y=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),wY(this,e,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&xY(e,t)}(e,t.Component),SY(e,[{key:"render",value:function(){var n=this.props,r=n.x1,a=n.x2,i=n.y1,o=n.y2,s=n.className,l=n.alwaysShow,c=n.clipPathId;dk(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=wA(r),d=wA(a),p=wA(i),f=wA(o),g=this.props.shape;if(!(u||d||p||f||g))return null;var m=function(e,t,n,r,a){var i=a.x1,o=a.x2,s=a.y1,l=a.y2,c=a.xAxis,u=a.yAxis;if(!c||!u)return null;var d=bW({x:c.scale,y:u.scale}),p={x:e?d.x.apply(i,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(s,{position:"start"}):d.y.rangeMin},f={x:t?d.x.apply(o,{position:"end"}):d.x.rangeMax,y:r?d.y.apply(l,{position:"end"}):d.y.rangeMax};return!SV(a,"discard")||d.isInRange(p)&&d.isInRange(f)?mW(p,f):null}(u,d,p,f,this.props);if(!m&&!g)return null;var h=SV(this.props,"hidden")?"url(#".concat(c,")"):void 0;return t.createElement(ck,{className:IE("recharts-reference-area",s)},e.renderRect(g,EY(EY({clipPath:h},QA(this.props,!0)),m)),YU.renderCallByParent(this.props,m))}}])}();function IY(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],a=0;a<e.length;a+=t)r.push(e[a]);return r}function NY(e,t,n){return function(e){var t=e.width,n=e.height,r=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),a=r*Math.PI/180,i=Math.atan(n/t),o=a>i&&a<Math.PI-i?n/Math.sin(a):t/Math.cos(a);return Math.abs(o)}({width:e.width+t.width,height:e.height+t.height},n)}function RY(e,t,n,r,a){if(e*t<e*r||e*t>e*a)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-a)<=0}function CY(e){return CY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},CY(e)}function DY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function PY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DY(Object(n),!0).forEach(function(t){LY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function LY(e,t,n){var r;return r=function(e,t){if("object"!=CY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=CY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==CY(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MY(e,t,n){var r=e.tick,a=e.ticks,i=e.viewBox,o=e.minTickGap,s=e.orientation,l=e.interval,c=e.tickFormatter,u=e.unit,d=e.angle;if(!a||!a.length||!r)return[];if(SA(l)||WR)return function(e,t){return IY(e,t+1)}(a,"number"==typeof l&&SA(l)?l:0);var p=[],f="top"===s||"bottom"===s?"width":"height",g=u&&"width"===f?qC(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},m=function(e,r){var a=oS(c)?c(e.value,r):e.value;return"width"===f?NY(qC(a,{fontSize:t,letterSpacing:n}),g,d):qC(a,{fontSize:t,letterSpacing:n})[f]},h=a.length>=2?vA(a[1].coordinate-a[0].coordinate):1,b=function(e,t,n){var r="width"===n,a=e.x,i=e.y,o=e.width,s=e.height;return 1===t?{start:r?a:i,end:r?a+o:i+s}:{start:r?a+o:i+s,end:r?a:i}}(i,h,f);return"equidistantPreserveStart"===l?function(e,t,n,r,a){for(var i,o=(r||[]).slice(),s=t.start,l=t.end,c=0,u=1,d=s,p=function(){var t=null==r?void 0:r[c];if(void 0===t)return{v:IY(r,u)};var i,o=c,p=function(){return void 0===i&&(i=n(t,o)),i},f=t.coordinate,g=0===c||RY(e,f,p,d,l);g||(c=0,d=s,u+=1),g&&(d=f+e*(p()/2+a),c+=u)};u<=o.length;)if(i=p())return i.v;return[]}(h,b,m,a,o):(p="preserveStart"===l||"preserveStartEnd"===l?function(e,t,n,r,a,i){var o=(r||[]).slice(),s=o.length,l=t.start,c=t.end;if(i){var u=r[s-1],d=n(u,s-1),p=e*(u.coordinate+e*d/2-c);o[s-1]=u=PY(PY({},u),{},{tickCoord:p>0?u.coordinate-p*e:u.coordinate}),RY(e,u.tickCoord,function(){return d},l,c)&&(c=u.tickCoord-e*(d/2+a),o[s-1]=PY(PY({},u),{},{isShow:!0}))}for(var f=i?s-1:s,g=function(t){var r,i=o[t],s=function(){return void 0===r&&(r=n(i,t)),r};if(0===t){var u=e*(i.coordinate-e*s()/2-l);o[t]=i=PY(PY({},i),{},{tickCoord:u<0?i.coordinate-u*e:i.coordinate})}else o[t]=i=PY(PY({},i),{},{tickCoord:i.coordinate});RY(e,i.tickCoord,s,l,c)&&(l=i.tickCoord+e*(s()/2+a),o[t]=PY(PY({},i),{},{isShow:!0}))},m=0;m<f;m++)g(m);return o}(h,b,m,a,o,"preserveStartEnd"===l):function(e,t,n,r,a){for(var i=(r||[]).slice(),o=i.length,s=t.start,l=t.end,c=function(t){var r,c=i[t],u=function(){return void 0===r&&(r=n(c,t)),r};if(t===o-1){var d=e*(c.coordinate+e*u()/2-l);i[t]=c=PY(PY({},c),{},{tickCoord:d>0?c.coordinate-d*e:c.coordinate})}else i[t]=c=PY(PY({},c),{},{tickCoord:c.coordinate});RY(e,c.tickCoord,u,s,l)&&(l=c.tickCoord-e*(u()/2+a),i[t]=PY(PY({},c),{},{isShow:!0}))},u=o-1;u>=0;u--)c(u);return i}(h,b,m,a,o),p.filter(function(e){return e.isShow}))}TY(_Y,"displayName","ReferenceArea"),TY(_Y,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),TY(_Y,"renderRect",function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):oS(e)?e(n):t.createElement(BG,bY({},n,{className:"recharts-reference-area-rect"}))});var FY=["viewBox"],jY=["viewBox"],BY=["ticks"];function UY(e){return UY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},UY(e)}function zY(){return zY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zY.apply(this,arguments)}function $Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function GY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$Y(Object(n),!0).forEach(function(t){XY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$Y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qY(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function HY(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ZY(r.key),r)}}function VY(e,t,n){return t=YY(t),function(e,t){if(t&&("object"===UY(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,WY()?Reflect.construct(t,n||[],YY(e).constructor):t.apply(e,n))}function WY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(WY=function(){return!!e})()}function YY(e){return YY=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},YY(e)}function KY(e,t){return KY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KY(e,t)}function XY(e,t,n){return(t=ZY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZY(e){var t=function(e,t){if("object"!=UY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=UY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==UY(t)?t:t+""}var QY=function(){function e(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(n=VY(this,e,[t])).state={fontSize:"",letterSpacing:""},n}return function(e,t){if("function"!=typeof t&&null!==t)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&&KY(e,t)}(e,h),n=e,r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=qY(e,FY),a=this.props,i=a.viewBox,o=qY(a,jY);return!NA(n,i)||!NA(r,o)||!NA(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,n,r,a,i,o,s=this.props,l=s.x,c=s.y,u=s.width,d=s.height,p=s.orientation,f=s.tickSize,g=s.mirror,m=s.tickMargin,h=g?-1:1,b=e.tickSize||f,y=SA(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,o=(r=(a=c+ +!g*d)-h*b)-h*m,i=y;break;case"left":r=a=e.coordinate,i=(t=(n=l+ +!g*u)-h*b)-h*m,o=y;break;case"right":r=a=e.coordinate,i=(t=(n=l+ +g*u)+h*b)+h*m,o=y;break;default:t=n=e.coordinate,o=(r=(a=c+ +g*d)+h*b)+h*m,i=y}return{line:{x1:t,y1:r,x2:n,y2:a},tick:{x:i,y:o}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.x,r=e.y,a=e.width,i=e.height,o=e.orientation,s=e.mirror,l=e.axisLine,c=GY(GY(GY({},QA(this.props,!1)),QA(l,!1)),{},{fill:"none"});if("top"===o||"bottom"===o){var u=+("top"===o&&!s||"bottom"===o&&s);c=GY(GY({},c),{},{x1:n,y1:r+u*i,x2:n+a,y2:r+u*i})}else{var d=+("left"===o&&!s||"right"===o&&s);c=GY(GY({},c),{},{x1:n+d*a,y1:r,x2:n+d*a,y2:r+i})}return t.createElement("line",zY({},c,{className:IE("recharts-cartesian-axis-line",nA(l,"className"))}))}},{key:"renderTicks",value:function(n,r,a){var i=this,o=this.props,s=o.tickLine,l=o.stroke,c=o.tick,u=o.tickFormatter,d=o.unit,p=MY(GY(GY({},this.props),{},{ticks:n}),r,a),f=this.getTickTextAnchor(),g=this.getTickVerticalAnchor(),m=QA(this.props,!1),h=QA(c,!1),b=GY(GY({},m),{},{fill:"none"},QA(s,!1)),y=p.map(function(n,r){var a=i.getTickLineCoord(n),o=a.line,y=a.tick,v=GY(GY(GY(GY({textAnchor:f,verticalAnchor:g},m),{},{stroke:"none",fill:l},h),y),{},{index:r,payload:n,visibleTicksCount:p.length,tickFormatter:u});return t.createElement(ck,zY({className:"recharts-cartesian-axis-tick",key:"tick-".concat(n.value,"-").concat(n.coordinate,"-").concat(n.tickCoord)},FA(i.props,n,r)),s&&t.createElement("line",zY({},b,o,{className:IE("recharts-cartesian-axis-tick-line",nA(s,"className"))})),c&&e.renderTickItem(c,v,"".concat(oS(u)?u(n.value,r):n.value).concat(d||"")))});return t.createElement("g",{className:"recharts-cartesian-axis-ticks"},y)}},{key:"render",value:function(){var e=this,n=this.props,r=n.axisLine,a=n.width,i=n.height,o=n.ticksGenerator,s=n.className;if(n.hide)return null;var l=this.props,c=l.ticks,u=qY(l,BY),d=c;return oS(o)&&(d=c&&c.length>0?o(this.props):o(u)),a<=0||i<=0||!d||!d.length?null:t.createElement(ck,{className:IE("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},r&&this.renderAxisLine(),this.renderTicks(d,this.state.fontSize,this.state.letterSpacing),YU.renderCallByParent(this.props))}}],a=[{key:"renderTickItem",value:function(e,n,r){var a=IE(n.className,"recharts-cartesian-axis-tick-value");return t.isValidElement(e)?t.cloneElement(e,GY(GY({},n),{},{className:a})):oS(e)?e(GY(GY({},n),{},{className:a})):t.createElement(vD,zY({},n,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&HY(n.prototype,r),a&&HY(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}();XY(QY,"displayName","CartesianAxis"),XY(QY,"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 JY=["x1","y1","x2","y2","key"],eK=["offset"];function tK(e){return tK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tK(e)}function nK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nK(Object(n),!0).forEach(function(t){aK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aK(e,t,n){var r;return r=function(e,t){if("object"!=tK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=tK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==tK(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iK(){return iK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iK.apply(this,arguments)}function oK(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var sK=function(e){var n=e.fill;if(!n||"none"===n)return null;var r=e.fillOpacity,a=e.x,i=e.y,o=e.width,s=e.height,l=e.ry;return t.createElement("rect",{x:a,y:i,ry:l,width:o,height:s,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function lK(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(oS(e))r=e(n);else{var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.key,c=oK(n,JY),u=QA(c,!1);u.offset;var d=oK(u,eK);r=t.createElement("line",iK({},d,{x1:a,y1:i,x2:o,y2:s,fill:"none",key:l}))}return r}function cK(e){var n=e.x,r=e.width,a=e.horizontal,i=void 0===a||a,o=e.horizontalPoints;if(!i||!o||!o.length)return null;var s=o.map(function(t,a){var o=rK(rK({},e),{},{x1:n,y1:t,x2:n+r,y2:t,key:"line-".concat(a),index:a});return lK(i,o)});return t.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function uK(e){var n=e.y,r=e.height,a=e.vertical,i=void 0===a||a,o=e.verticalPoints;if(!i||!o||!o.length)return null;var s=o.map(function(t,a){var o=rK(rK({},e),{},{x1:t,y1:n,x2:t,y2:n+r,key:"line-".concat(a),index:a});return lK(i,o)});return t.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function dK(e){var n=e.horizontalFill,r=e.fillOpacity,a=e.x,i=e.y,o=e.width,s=e.height,l=e.horizontalPoints,c=e.horizontal;if(!(void 0===c||c)||!n||!n.length)return null;var u=l.map(function(e){return Math.round(e+i-i)}).sort(function(e,t){return e-t});i!==u[0]&&u.unshift(0);var d=u.map(function(e,l){var c=!u[l+1]?i+s-e:u[l+1]-e;if(c<=0)return null;var d=l%n.length;return t.createElement("rect",{key:"react-".concat(l),y:e,x:a,height:c,width:o,stroke:"none",fill:n[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return t.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function pK(e){var n=e.vertical,r=void 0===n||n,a=e.verticalFill,i=e.fillOpacity,o=e.x,s=e.y,l=e.width,c=e.height,u=e.verticalPoints;if(!r||!a||!a.length)return null;var d=u.map(function(e){return Math.round(e+o-o)}).sort(function(e,t){return e-t});o!==d[0]&&d.unshift(0);var p=d.map(function(e,n){var r=!d[n+1]?o+l-e:d[n+1]-e;if(r<=0)return null;var u=n%a.length;return t.createElement("rect",{key:"react-".concat(n),x:e,y:s,width:r,height:c,stroke:"none",fill:a[u],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return t.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var fK=function(e,t){var n=e.xAxis,r=e.width,a=e.height,i=e.offset;return iU(MY(rK(rK(rK({},QY.defaultProps),n),{},{ticks:oU(n,!0),viewBox:{x:0,y:0,width:r,height:a}})),i.left,i.left+i.width,t)},gK=function(e,t){var n=e.yAxis,r=e.width,a=e.height,i=e.offset;return iU(MY(rK(rK(rK({},QY.defaultProps),n),{},{ticks:oU(n,!0),viewBox:{x:0,y:0,width:r,height:a}})),i.top,i.top+i.height,t)},mK={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function hK(e){var n,r,a,i,o,s,l,c,u=$W(),d=GW(),p=g(PW),f=rK(rK({},e),{},{stroke:null!==(n=e.stroke)&&void 0!==n?n:mK.stroke,fill:null!==(r=e.fill)&&void 0!==r?r:mK.fill,horizontal:null!==(a=e.horizontal)&&void 0!==a?a:mK.horizontal,horizontalFill:null!==(i=e.horizontalFill)&&void 0!==i?i:mK.horizontalFill,vertical:null!==(o=e.vertical)&&void 0!==o?o:mK.vertical,verticalFill:null!==(s=e.verticalFill)&&void 0!==s?s:mK.verticalFill,x:SA(e.x)?e.x:p.left,y:SA(e.y)?e.y:p.top,width:SA(e.width)?e.width:p.width,height:SA(e.height)?e.height:p.height}),m=f.x,h=f.y,b=f.width,y=f.height,v=f.syncWithTicks,E=f.horizontalValues,S=f.verticalValues,w=(l=g(RW),TA(l)),A=(c=g(CW),_W(c,function(e){return MV(e.domain,Number.isFinite)})||TA(c));if(!SA(b)||b<=0||!SA(y)||y<=0||!SA(m)||m!==+m||!SA(h)||h!==+h)return null;var k=f.verticalCoordinatesGenerator||fK,x=f.horizontalCoordinatesGenerator||gK,T=f.horizontalPoints,O=f.verticalPoints;if((!T||!T.length)&&oS(x)){var _=E&&E.length,I=x({yAxis:A?rK(rK({},A),{},{ticks:_?E:A.ticks}):void 0,width:u,height:d,offset:p},!!_||v);dk(Array.isArray(I),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(tK(I),"]")),Array.isArray(I)&&(T=I)}if((!O||!O.length)&&oS(k)){var N=S&&S.length,R=k({xAxis:w?rK(rK({},w),{},{ticks:N?S:w.ticks}):void 0,width:u,height:d,offset:p},!!N||v);dk(Array.isArray(R),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(tK(R),"]")),Array.isArray(R)&&(O=R)}return t.createElement("g",{className:"recharts-cartesian-grid"},t.createElement(sK,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),t.createElement(cK,iK({},f,{offset:p,horizontalPoints:T,xAxis:w,yAxis:A})),t.createElement(uK,iK({},f,{offset:p,verticalPoints:O,xAxis:w,yAxis:A})),t.createElement(dK,iK({},f,{horizontalPoints:T})),t.createElement(pK,iK({},f,{verticalPoints:O})))}hK.displayName="CartesianGrid";var bK=["type","layout","connectNulls","ref"],yK=["key"];function vK(e){return vK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vK(e)}function EK(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function SK(){return SK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SK.apply(this,arguments)}function wK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function AK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wK(Object(n),!0).forEach(function(t){RK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kK(e){return function(e){if(Array.isArray(e))return xK(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return xK(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xK(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xK(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function TK(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,CK(r.key),r)}}function OK(e,t,n){return t=IK(t),function(e,t){if(t&&("object"===vK(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_K()?Reflect.construct(t,n||[],IK(e).constructor):t.apply(e,n))}function _K(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_K=function(){return!!e})()}function IK(e){return IK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},IK(e)}function NK(e,t){return NK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},NK(e,t)}function RK(e,t,n){return(t=CK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CK(e){var t=function(e,t){if("object"!=vK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=vK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==vK(t)?t:t+""}var DK=function(){function e(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return RK(t=OK(this,e,[].concat(r)),"state",{isAnimationFinished:!0,totalLength:0}),RK(t,"generateSimpleStrokeDasharray",function(e,t){return"".concat(t,"px ").concat(e-t,"px")}),RK(t,"getStrokeDasharray",function(n,r,a){var i=a.reduce(function(e,t){return e+t});if(!i)return t.generateSimpleStrokeDasharray(r,n);for(var o=Math.floor(n/i),s=n%i,l=r-n,c=[],u=0,d=0;u<a.length;d+=a[u],++u)if(d+a[u]>s){c=[].concat(kK(a.slice(0,u)),[s-d]);break}var p=c.length%2==0?[0,l]:[l];return[].concat(kK(e.repeat(a,o)),kK(c),p).map(function(e){return"".concat(e,"px")}).join(", ")}),RK(t,"id",kA("recharts-line-")),RK(t,"pathRef",function(e){t.mainCurve=e}),RK(t,"handleAnimationEnd",function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()}),RK(t,"handleAnimationStart",function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()}),t}return function(e,t){if("function"!=typeof t&&null!==t)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&&NK(e,t)}(e,a),n=e,r=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();e!==this.state.totalLength&&this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,a=r.points,i=r.xAxis,o=r.yAxis,s=r.layout,l=WA(r.children,zB);if(!l)return null;var c=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:JB(e.payload,t)}},u={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(ck,u,l.map(function(e){return t.cloneElement(e,{key:"bar-".concat(e.props.dataKey),data:a,xAxis:i,yAxis:o,layout:s,dataPointFormatter:c})}))}},{key:"renderDots",value:function(n,r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.dot,s=i.points,l=i.dataKey,c=QA(this.props,!1),u=QA(o,!0),d=s.map(function(t,n){var r=AK(AK(AK({key:"dot-".concat(n),r:3},c),u),{},{index:n,cx:t.x,cy:t.y,value:t.value,dataKey:l,payload:t.payload,points:s});return e.renderDotItem(o,r)}),p={clipPath:n?"url(#clipPath-".concat(r?"":"dots-").concat(a,")"):null};return t.createElement(ck,SK({className:"recharts-line-dots",key:"dots"},p),d)}},{key:"renderCurveStatically",value:function(e,n,r,a){var i=this.props,o=i.type,s=i.layout,l=i.connectNulls;i.ref;var c=EK(i,bK),u=AK(AK(AK({},QA(c,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:n?"url(#clipPath-".concat(r,")"):null,points:e},a),{},{type:o,layout:s,connectNulls:l});return t.createElement(Iz,SK({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,n){var r=this,a=this.props,i=a.points,o=a.strokeDasharray,s=a.isAnimationActive,l=a.animationBegin,c=a.animationDuration,u=a.animationEasing,d=a.animationId,p=a.animateNewValues,f=a.width,g=a.height,m=this.state,h=m.prevPoints,b=m.totalLength;return t.createElement(_G,{begin:l,duration:c,isActive:s,easing:u,from:{t:0},to:{t:1},key:"line-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(t){var a=t.t;if(h){var s=h.length/i.length,l=i.map(function(e,t){var n=Math.floor(t*s);if(h[n]){var r=h[n],i=OA(r.x,e.x),o=OA(r.y,e.y);return AK(AK({},e),{},{x:i(a),y:o(a)})}if(p){var l=OA(2*f,e.x),c=OA(g/2,e.y);return AK(AK({},e),{},{x:l(a),y:c(a)})}return AK(AK({},e),{},{x:e.x,y:e.y})});return r.renderCurveStatically(l,e,n)}var c,u=OA(0,b)(a);if(o){var d="".concat(o).split(/[,\s]+/gim).map(function(e){return parseFloat(e)});c=r.getStrokeDasharray(u,b,d)}else c=r.generateSimpleStrokeDasharray(b,u);return r.renderCurveStatically(i,e,n,{strokeDasharray:c})})}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,a=n.isAnimationActive,i=this.state,o=i.prevPoints,s=i.totalLength;return a&&r&&r.length&&(!o&&s>0||!Aj(o,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e,n=this.props,r=n.hide,a=n.dot,i=n.points,o=n.className,s=n.xAxis,l=n.yAxis,c=n.top,u=n.left,d=n.width,p=n.height,f=n.isAnimationActive,g=n.id;if(r||!i||!i.length)return null;var m=this.state.isAnimationFinished,h=1===i.length,b=IE("recharts-line",o),y=s&&s.allowDataOverflow,v=l&&l.allowDataOverflow,E=y||v,S=rA(g)?this.id:g,w=null!==(e=QA(a,!1))&&void 0!==e?e:{r:3,strokeWidth:2},A=w.r,k=void 0===A?3:A,x=w.strokeWidth,T=void 0===x?2:x,O=(ZA(a)?a:{}).clipDot,_=void 0===O||O,I=2*k+T;return t.createElement(ck,{className:b},y||v?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(S)},t.createElement("rect",{x:y?u:u-d/2,y:v?c:c-p/2,width:y?d:2*d,height:v?p:2*p})),!_&&t.createElement("clipPath",{id:"clipPath-dots-".concat(S)},t.createElement("rect",{x:u-I/2,y:c-I/2,width:d+I,height:p+I}))):null,!h&&this.renderCurve(E,S),this.renderErrorBar(E,S),(h||a)&&this.renderDots(E,_,S),(!f||m)&&lz.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?[].concat(kK(e),[0]):e,r=[],a=0;a<t;++a)r=[].concat(kK(r),kK(n));return r}},{key:"renderDotItem",value:function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(oS(e))r=e(n);else{var a=n.key,i=EK(n,yK),o=IE("recharts-line-dot","boolean"!=typeof e?e.className:"");r=t.createElement(KG,SK({key:a},i,{className:o}))}return r}}],r&&TK(n.prototype,r),i&&TK(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}();RK(DK,"displayName","Line"),RK(DK,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!WR,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),RK(DK,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,a=e.xAxisTicks,i=e.yAxisTicks,o=e.dataKey,s=e.bandSize,l=e.displayedData,c=e.offset,u=t.layout,d=l.map(function(e,t){var l=JB(e,o);return"horizontal"===u?{x:mU({axis:n,ticks:a,bandSize:s,entry:e,index:t}),y:rA(l)?null:r.scale(l),value:l,payload:e}:{x:rA(l)?null:n.scale(l),y:mU({axis:r,ticks:i,bandSize:s,entry:e,index:t}),value:l,payload:e}});return AK({points:d,layout:u},c)});var PK,LK=["layout","type","stroke","connectNulls","isRange","ref"],MK=["key"];function FK(e){return FK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},FK(e)}function jK(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function BK(){return BK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BK.apply(this,arguments)}function UK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UK(Object(n),!0).forEach(function(t){WK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YK(r.key),r)}}function GK(e,t,n){return t=HK(t),function(e,t){if(t&&("object"===FK(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,qK()?Reflect.construct(t,n||[],HK(e).constructor):t.apply(e,n))}function qK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qK=function(){return!!e})()}function HK(e){return HK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},HK(e)}function VK(e,t){return VK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},VK(e,t)}function WK(e,t,n){return(t=YK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YK(e){var t=function(e,t){if("object"!=FK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=FK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==FK(t)?t:t+""}var KK=function(){function e(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return WK(t=GK(this,e,[].concat(r)),"state",{isAnimationFinished:!0}),WK(t,"id",kA("recharts-area-")),WK(t,"handleAnimationEnd",function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),oS(e)&&e()}),WK(t,"handleAnimationStart",function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),oS(e)&&e()}),t}return function(e,t){if("function"!=typeof t&&null!==t)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&&VK(e,t)}(e,a),n=e,r=[{key:"renderDots",value:function(n,r,a){var i=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(i&&!o)return null;var s=this.props,l=s.dot,c=s.points,u=s.dataKey,d=QA(this.props,!1),p=QA(l,!0),f=c.map(function(t,n){var r=zK(zK(zK({key:"dot-".concat(n),r:3},d),p),{},{index:n,cx:t.x,cy:t.y,dataKey:u,value:t.value,payload:t.payload,points:c});return e.renderDotItem(l,r)}),g={clipPath:n?"url(#clipPath-".concat(r?"":"dots-").concat(a,")"):null};return t.createElement(ck,BK({className:"recharts-area-dots"},g),f)}},{key:"renderHorizontalRect",value:function(e){var n=this.props,r=n.baseLine,a=n.points,i=n.strokeWidth,o=a[0].x,s=a[a.length-1].x,l=e*Math.abs(o-s),c=lj(a.map(function(e){return e.y||0}));return SA(r)&&"number"==typeof r?c=Math.max(r,c):r&&Array.isArray(r)&&r.length&&(c=Math.max(lj(r.map(function(e){return e.y||0})),c)),SA(c)?t.createElement("rect",{x:o<s?o:o-l,y:0,width:l,height:Math.floor(c+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(e){var n=this.props,r=n.baseLine,a=n.points,i=n.strokeWidth,o=a[0].y,s=a[a.length-1].y,l=e*Math.abs(o-s),c=lj(a.map(function(e){return e.x||0}));return SA(r)&&"number"==typeof r?c=Math.max(r,c):r&&Array.isArray(r)&&r.length&&(c=Math.max(lj(r.map(function(e){return e.x||0})),c)),SA(c)?t.createElement("rect",{x:0,y:o<s?o:o-l,width:c+(i?parseInt("".concat(i),10):1),height:Math.floor(l)}):null}},{key:"renderClipRect",value:function(e){return"vertical"===this.props.layout?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:"renderAreaStatically",value:function(e,n,r,a){var i=this.props,o=i.layout,s=i.type,l=i.stroke,c=i.connectNulls,u=i.isRange;i.ref;var d=jK(i,LK);return t.createElement(ck,{clipPath:r?"url(#clipPath-".concat(a,")"):null},t.createElement(Iz,BK({},QA(d,!0),{points:e,connectNulls:c,type:s,baseLine:n,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==l&&t.createElement(Iz,BK({},QA(this.props,!1),{className:"recharts-area-curve",layout:o,type:s,connectNulls:c,fill:"none",points:e})),"none"!==l&&u&&t.createElement(Iz,BK({},QA(this.props,!1),{className:"recharts-area-curve",layout:o,type:s,connectNulls:c,fill:"none",points:n})))}},{key:"renderAreaWithAnimation",value:function(e,n){var r=this,a=this.props,i=a.points,o=a.baseLine,s=a.isAnimationActive,l=a.animationBegin,c=a.animationDuration,u=a.animationEasing,d=a.animationId,p=this.state,f=p.prevPoints,g=p.prevBaseLine;return t.createElement(_G,{begin:l,duration:c,isActive:s,easing:u,from:{t:0},to:{t:1},key:"area-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(a){var s=a.t;if(f){var l,c=f.length/i.length,u=i.map(function(e,t){var n=Math.floor(t*c);if(f[n]){var r=f[n],a=OA(r.x,e.x),i=OA(r.y,e.y);return zK(zK({},e),{},{x:a(s),y:i(s)})}return e});return l=SA(o)&&"number"==typeof o?OA(g,o)(s):rA(o)||yA(o)?OA(g,0)(s):o.map(function(e,t){var n=Math.floor(t*c);if(g[n]){var r=g[n],a=OA(r.x,e.x),i=OA(r.y,e.y);return zK(zK({},e),{},{x:a(s),y:i(s)})}return e}),r.renderAreaStatically(u,l,e,n)}return t.createElement(ck,null,t.createElement("defs",null,t.createElement("clipPath",{id:"animationClipPath-".concat(n)},r.renderClipRect(s))),t.createElement(ck,{clipPath:"url(#animationClipPath-".concat(n,")")},r.renderAreaStatically(i,o,e,n)))})}},{key:"renderArea",value:function(e,t){var n=this.props,r=n.points,a=n.baseLine,i=n.isAnimationActive,o=this.state,s=o.prevPoints,l=o.prevBaseLine,c=o.totalLength;return i&&r&&r.length&&(!s&&c>0||!Aj(s,r)||!Aj(l,a))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,a,e,t)}},{key:"render",value:function(){var e,n=this.props,r=n.hide,a=n.dot,i=n.points,o=n.className,s=n.top,l=n.left,c=n.xAxis,u=n.yAxis,d=n.width,p=n.height,f=n.isAnimationActive,g=n.id;if(r||!i||!i.length)return null;var m=this.state.isAnimationFinished,h=1===i.length,b=IE("recharts-area",o),y=c&&c.allowDataOverflow,v=u&&u.allowDataOverflow,E=y||v,S=rA(g)?this.id:g,w=null!==(e=QA(a,!1))&&void 0!==e?e:{r:3,strokeWidth:2},A=w.r,k=void 0===A?3:A,x=w.strokeWidth,T=void 0===x?2:x,O=(ZA(a)?a:{}).clipDot,_=void 0===O||O,I=2*k+T;return t.createElement(ck,{className:b},y||v?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(S)},t.createElement("rect",{x:y?l:l-d/2,y:v?s:s-p/2,width:y?d:2*d,height:v?p:2*p})),!_&&t.createElement("clipPath",{id:"clipPath-dots-".concat(S)},t.createElement("rect",{x:l-I/2,y:s-I/2,width:d+I,height:p+I}))):null,h?null:this.renderArea(E,S),(a||h)&&this.renderDots(E,_,S),(!f||m)&&lz.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],r&&$K(n.prototype,r),i&&$K(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}();function XK(e){return XK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},XK(e)}function ZK(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rX(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function QK(e,t,n){return t=eX(t),function(e,t){if(t&&("object"===XK(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,JK()?Reflect.construct(t,n||[],eX(e).constructor):t.apply(e,n))}function JK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(JK=function(){return!!e})()}function eX(e){return eX=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eX(e)}function tX(e,t){return tX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tX(e,t)}function nX(e,t,n){return(t=rX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rX(e){var t=function(e,t){if("object"!=XK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=XK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==XK(t)?t:t+""}function aX(){return aX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aX.apply(this,arguments)}function iX(t){var n=t.xAxisId,r=$W(),a=GW(),i=UW(n);return null==i?null:e.createElement(QY,aX({},i,{className:IE("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(e){return oU(e,!0)}}))}PK=KK,WK(KK,"displayName","Area"),WK(KK,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!WR,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),WK(KK,"getBaseValue",function(e,t,n,r){var a=e.layout,i=e.baseValue,o=t.props.baseValue,s=null!=o?o:i;if(SA(s)&&"number"==typeof s)return s;var l="horizontal"===a?r:n,c=l.scale.domain();if("number"===l.type){var u=Math.max(c[0],c[1]),d=Math.min(c[0],c[1]);return"dataMin"===s?d:"dataMax"===s||u<0?u:Math.max(Math.min(c[0],c[1]),0)}return"dataMin"===s?c[0]:"dataMax"===s?c[1]:c[0]}),WK(KK,"getComposedData",function(e){var t,n=e.props,r=e.item,a=e.xAxis,i=e.yAxis,o=e.xAxisTicks,s=e.yAxisTicks,l=e.bandSize,c=e.dataKey,u=e.stackedData,d=e.dataStartIndex,p=e.displayedData,f=e.offset,g=n.layout,m=u&&u.length,h=PK.getBaseValue(n,r,a,i),b="horizontal"===g,y=!1,v=p.map(function(e,t){var n;m?n=u[d+t]:(n=JB(e,c),Array.isArray(n)?y=!0:n=[h,n]);var r=null==n[1]||m&&null==JB(e,c);return b?{x:mU({axis:a,ticks:o,bandSize:l,entry:e,index:t}),y:r?null:i.scale(n[1]),value:n,payload:e}:{x:r?null:a.scale(n[1]),y:mU({axis:i,ticks:s,bandSize:l,entry:e,index:t}),value:n,payload:e}});return t=m||y?v.map(function(e){var t=Array.isArray(e.value)?e.value[0]:null;return b?{x:e.x,y:null!=t&&null!=e.y?i.scale(t):null}:{x:null!=t?a.scale(t):null,y:e.y}}):b?i.scale(h):a.scale(h),zK({points:v,baseLine:t,layout:g,isRange:y},f)}),WK(KK,"renderDotItem",function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(oS(e))r=e(n);else{var a=IE("recharts-area-dot","boolean"!=typeof e?e.className:""),i=n.key,o=jK(n,MK);r=t.createElement(KG,BK({},o,{key:i,className:a}))}return r});var oX=function(){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),QK(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&tX(e,t)}(t,e.Component),ZK(t,[{key:"render",value:function(){return e.createElement(iX,this.props)}}])}();function sX(e){return sX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sX(e)}function lX(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gX(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cX(e,t,n){return t=dX(t),function(e,t){if(t&&("object"===sX(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,uX()?Reflect.construct(t,n||[],dX(e).constructor):t.apply(e,n))}function uX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(uX=function(){return!!e})()}function dX(e){return dX=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dX(e)}function pX(e,t){return pX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pX(e,t)}function fX(e,t,n){return(t=gX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gX(e){var t=function(e,t){if("object"!=sX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=sX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==sX(t)?t:t+""}function mX(){return mX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mX.apply(this,arguments)}nX(oX,"displayName","XAxis"),nX(oX,"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});var hX=function(t){var n=t.yAxisId,r=$W(),a=GW(),i=zW(n);return null==i?null:e.createElement(QY,mX({},i,{className:IE("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(e){return oU(e,!0)}}))},bX=function(){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),cX(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&pX(e,t)}(t,e.Component),lX(t,[{key:"render",value:function(){return e.createElement(hX,this.props)}}])}();function yX(e){return function(e){if(Array.isArray(e))return vX(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return vX(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vX(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}fX(bX,"displayName","YAxis"),fX(bX,"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});var EX=function(e,t,n,r,a){var i=WA(e,aY),o=WA(e,hY),s=[].concat(yX(i),yX(o)),l=WA(e,_Y),c="".concat(r,"Id"),u=r[0],d=t;if(s.length&&(d=s.reduce(function(e,t){if(t.props[c]===n&&SV(t.props,"extendDomain")&&SA(t.props[u])){var r=t.props[u];return[Math.min(e[0],r),Math.max(e[1],r)]}return e},d)),l.length){var p="".concat(u,"1"),f="".concat(u,"2");d=l.reduce(function(e,t){if(t.props[c]===n&&SV(t.props,"extendDomain")&&SA(t.props[p])&&SA(t.props[f])){var r=t.props[p],a=t.props[f];return[Math.min(e[0],r,a),Math.max(e[1],r,a)]}return e},d)}return a&&a.length&&(d=a.reduce(function(e,t){return SA(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e},d)),d},SX={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new a(r,i||e,o),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function o(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,a=[];if(0===this._eventsCount)return a;for(r in e=this._events)t.call(e,r)&&a.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var a=0,i=r.length,o=new Array(i);a<i;a++)o[a]=r[a].fn;return o},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,a,i,o){var s=n?n+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,a),!0;case 5:return u.fn.call(u.context,t,r,a,i),!0;case 6:return u.fn.call(u.context,t,r,a,i,o),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var p,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,r);break;case 4:u[c].fn.call(u[c].context,t,r,a);break;default:if(!l)for(p=1,l=new Array(d-1);p<d;p++)l[p-1]=arguments[p];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,a){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return o(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||a&&!s.once||r&&s.context!==r||o(this,i);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||a&&!s[l].once||r&&s[l].context!==r)&&c.push(s[l]);c.length?this._events[i]=1===c.length?c[0]:c:o(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&o(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(SX);var wX=new(0,SX.exports),AX="recharts.syncMouseEvents";function kX(e){return kX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kX(e)}function xX(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,OX(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function TX(e,t,n){return(t=OX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OX(e){var t=function(e,t){if("object"!=kX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=kX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==kX(t)?t:t+""}var _X=function(){return xX(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),TX(this,"activeIndex",0),TX(this,"coordinateList",[]),TX(this,"layout","horizontal")},[{key:"setDetails",value:function(e){var t,n=e.coordinateList,r=void 0===n?null:n,a=e.container,i=void 0===a?null:a,o=e.layout,s=void 0===o?null:o,l=e.offset,c=void 0===l?null:l,u=e.mouseHandlerCallback,d=void 0===u?null:u;this.coordinateList=null!==(t=null!=r?r:this.coordinateList)&&void 0!==t?t:[],this.container=null!=i?i:this.container,this.layout=null!=s?s:this.layout,this.offset=null!=c?c:this.offset,this.mouseHandlerCallback=null!=d?d: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(e){if(0!==this.coordinateList.length)switch(e.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(e){this.activeIndex=e}},{key:"spoofMouse",value:function(){var e,t;if("horizontal"===this.layout&&0!==this.coordinateList.length){var n=this.container.getBoundingClientRect(),r=n.x,a=n.y,i=n.height,o=this.coordinateList[this.activeIndex].coordinate,s=(null===(e=window)||void 0===e?void 0:e.scrollX)||0,l=(null===(t=window)||void 0===t?void 0:t.scrollY)||0,c=r+o+s,u=a+this.offset.top+i/2+l;this.mouseHandlerCallback({pageX:c,pageY:u})}}}])}();function IX(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,i=e.endAngle;return{points:[CU(t,n,r,a),CU(t,n,r,i)],cx:t,cy:n,radius:r,startAngle:a,endAngle:i}}function NX(e,t,n){var r,a,i,o;if("horizontal"===e)i=r=t.x,a=n.top,o=n.top+n.height;else if("vertical"===e)o=a=t.y,r=n.left,i=n.left+n.width;else if(null!=t.cx&&null!=t.cy){if("centric"!==e)return IX(t);var s=t.cx,l=t.cy,c=t.innerRadius,u=t.outerRadius,d=t.angle,p=CU(s,l,c,d),f=CU(s,l,u,d);r=p.x,a=p.y,i=f.x,o=f.y}return[{x:r,y:a},{x:i,y:o}]}function RX(e){return RX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},RX(e)}function CX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function DX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CX(Object(n),!0).forEach(function(t){PX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function PX(e,t,n){var r;return r=function(e,t){if("object"!=RX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=RX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==RX(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LX(e){var t,r,a,i=e.element,o=e.tooltipEventType,s=e.isActive,l=e.activeCoordinate,c=e.activePayload,u=e.offset,d=e.activeTooltipIndex,g=e.tooltipAxisBandSize,m=e.layout,h=e.chartName,b=null!==(t=i.props.cursor)&&void 0!==t?t:null===(r=i.type.defaultProps)||void 0===r?void 0:r.cursor;if(!i||!b||!s||!l||"ScatterChart"!==h&&"axis"!==o)return null;var y=Iz;if("ScatterChart"===h)a=l,y=rq;else if("BarChart"===h)a=function(e,t,n,r){var a=r/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-a:n.left+.5,y:"horizontal"===e?n.top+.5:t.y-a,width:"horizontal"===e?r:n.width-1,height:"horizontal"===e?n.height-1:r}}(m,l,u,g),y=BG;else if("radial"===m){var v=IX(l),E=v.cx,S=v.cy,w=v.radius;a={cx:E,cy:S,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:w,outerRadius:w},y=bz}else a={points:NX(m,l,u)},y=Iz;var A=DX(DX(DX(DX({stroke:"#ccc",pointerEvents:"none"},u),a),QA(b,!1)),{},{payload:c,payloadIndex:d,className:IE("recharts-tooltip-cursor",b.className)});return n(b)?p(b,A):f(y,A)}var MX=["item"],FX=["children","className","width","height","style","compact","title","desc"];function jX(e){return jX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jX(e)}function BX(){return BX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BX.apply(this,arguments)}function UX(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(e,t)||YX(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zX(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function $X(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,JX(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GX(e,t,n){return t=HX(t),function(e,t){if(t&&("object"===jX(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,qX()?Reflect.construct(t,n||[],HX(e).constructor):t.apply(e,n))}function qX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qX=function(){return!!e})()}function HX(e){return HX=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},HX(e)}function VX(e,t){return VX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},VX(e,t)}function WX(e){return function(e){if(Array.isArray(e))return KX(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||YX(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function YX(e,t){if(e){if("string"==typeof e)return KX(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?KX(e,t):void 0}}function KX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ZX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XX(Object(n),!0).forEach(function(t){QX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function QX(e,t,n){return(t=JX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JX(e){var t=function(e,t){if("object"!=jX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=jX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==jX(t)?t:t+""}var eZ={xAxis:["bottom","top"],yAxis:["left","right"]},tZ={width:"100%",height:"100%"},nZ={x:0,y:0};function rZ(e){return e}var aZ=function(e,t){var n=t.graphicalItems,r=t.dataStartIndex,a=t.dataEndIndex,i=(null!=n?n:[]).reduce(function(e,t){var n=t.props.data;return n&&n.length?[].concat(WX(e),WX(n)):e},[]);return i.length>0?i:e&&e.length&&SA(r)&&SA(a)?e.slice(r,a+1):[]};function iZ(e){return"number"===e?[0,"auto"]:void 0}var oZ=function(e,t,n,r){var a=e.graphicalItems,i=e.tooltipAxis,o=aZ(t,e);return n<0||!a||!a.length||n>=o.length?null:a.reduce(function(a,s){var l,c,u=null!==(l=s.props.data)&&void 0!==l?l:t;(u&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=n&&(u=u.slice(e.dataStartIndex,e.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?c=_A(void 0===u?o:u,i.dataKey,r):c=u&&u[n]||o[n];return c?[].concat(WX(a),[AU(s,c)]):a},[])},sZ=function(e,t,n,r){var a=r||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(a,n),o=e.orderedTooltipTicks,s=e.tooltipAxis,l=e.tooltipTicks,c=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,i=-1,o=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(o<=1)return 0;if(a&&"angleAxis"===a.axisType&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var s=a.range,l=0;l<o;l++){var c=l>0?r[l-1].coordinate:r[o-1].coordinate,u=r[l].coordinate,d=l>=o-1?r[0].coordinate:r[l+1].coordinate,p=void 0;if(vA(u-c)!==vA(d-u)){var f=[];if(vA(d-u)===vA(s[1]-s[0])){p=d;var g=u+s[1]-s[0];f[0]=Math.min(g,(g+c)/2),f[1]=Math.max(g,(g+c)/2)}else{p=c;var m=d+s[1]-s[0];f[0]=Math.min(u,(m+u)/2),f[1]=Math.max(u,(m+u)/2)}var h=[Math.min(u,(p+u)/2),Math.max(u,(p+u)/2)];if(e>h[0]&&e<=h[1]||e>=f[0]&&e<=f[1]){i=r[l].index;break}}else{var b=Math.min(c,d),y=Math.max(c,d);if(e>(b+u)/2&&e<=(y+u)/2){i=r[l].index;break}}}else for(var v=0;v<o;v++)if(0===v&&e<=(n[v].coordinate+n[v+1].coordinate)/2||v>0&&v<o-1&&e>(n[v].coordinate+n[v-1].coordinate)/2&&e<=(n[v].coordinate+n[v+1].coordinate)/2||v===o-1&&e>(n[v].coordinate+n[v-1].coordinate)/2){i=n[v].index;break}return i}(i,o,l,s);if(c>=0&&l){var u=l[c]&&l[c].value,d=oZ(e,t,c,u),p=function(e,t,n,r){var a=t.find(function(e){return e&&e.index===n});if(a){if("horizontal"===e)return{x:a.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:a.coordinate};if("centric"===e){var i=a.coordinate,o=r.radius;return ZX(ZX(ZX({},r),CU(r.cx,r.cy,o,i)),{},{angle:i,radius:o})}var s=a.coordinate,l=r.angle;return ZX(ZX(ZX({},r),CU(r.cx,r.cy,s,l)),{},{angle:l,radius:s})}return nZ}(n,o,c,a);return{activeTooltipIndex:c,activeLabel:u,activePayload:d,activeCoordinate:p}}return null},lZ=function(e,t){var n=t.axes,r=t.graphicalItems,a=t.axisType,i=t.axisIdKey,o=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,c=e.layout,u=e.children,d=e.stackOffset,p=aU(c,a);return n.reduce(function(t,n){var f,g=void 0!==n.type.defaultProps?ZX(ZX({},n.type.defaultProps),n.props):n.props,m=g.type,h=g.dataKey,b=g.allowDataOverflow,y=g.allowDuplicatedCategory,v=g.scale,E=g.ticks,S=g.includeHidden,w=g[i];if(t[w])return t;var A,k,x,T=aZ(e.data,{graphicalItems:r.filter(function(e){var t;return(i in e.props?e.props[i]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[i])===w}),dataStartIndex:s,dataEndIndex:l}),O=T.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],a=null==e?void 0:e[1];if(r&&a&&SA(r)&&SA(a))return!0}return!1})(g.domain,b,m)&&(A=EU(g.domain,null,b),!p||"number"!==m&&"auto"===v||(x=eU(T,h,"category")));var _=iZ(m);if(!A||0===A.length){var I,N=null!==(I=g.domain)&&void 0!==I?I:_;if(h){if(A=eU(T,h,m),"category"===m&&p){var R=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(A);y&&R?(k=A,A=YH(0,O)):y||(A=wU(N,A,n).reduce(function(e,t){return e.indexOf(t)>=0?e:[].concat(WX(e),[t])},[]))}else if("category"===m)A=y?A.filter(function(e){return""!==e&&!rA(e)}):wU(N,A,n).reduce(function(e,t){return e.indexOf(t)>=0||""===t||rA(t)?e:[].concat(WX(e),[t])},[]);else if("number"===m){var C=function(e,t,n,r,a){var i=t.map(function(t){return nU(e,t,n,a,r)}).filter(function(e){return!rA(e)});return i&&i.length?i.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null}(T,r.filter(function(e){var t,n,r=i in e.props?e.props[i]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[i],a="hide"in e.props?e.props.hide:null===(n=e.type.defaultProps)||void 0===n?void 0:n.hide;return r===w&&(S||!a)}),h,a,c);C&&(A=C)}!p||"number"!==m&&"auto"===v||(x=eU(T,h,"category"))}else A=p?YH(0,O):o&&o[w]&&o[w].hasStack&&"number"===m?"expand"===d?[0,1]:bU(o[w].stackGroups,s,l):rU(T,r.filter(function(e){var t=i in e.props?e.props[i]:e.type.defaultProps[i],n="hide"in e.props?e.props.hide:e.type.defaultProps.hide;return t===w&&(S||!n)}),m,c,!0);if("number"===m)A=EX(u,A,w,a,E),N&&(A=EU(N,A,b));else if("category"===m&&N){var D=N;A.every(function(e){return D.indexOf(e)>=0})&&(A=D)}}return ZX(ZX({},t),{},QX({},w,ZX(ZX({},g),{},{axisType:a,domain:A,categoricalDomain:x,duplicateDomain:k,originalDomain:null!==(f=g.domain)&&void 0!==f?f:_,isCategorical:p,layout:c})))},{})},cZ=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,a=t.AxisComp,i=t.graphicalItems,o=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,c=e.children,u="".concat(r,"Id"),d=WA(c,a),p={};return d&&d.length?p=lZ(e,{axes:d,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:o,dataStartIndex:s,dataEndIndex:l}):i&&i.length&&(p=function(e,t){var n=t.graphicalItems,r=t.Axis,a=t.axisType,i=t.axisIdKey,o=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,c=e.layout,u=e.children,d=aZ(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:l}),p=d.length,f=aU(c,a),g=-1;return n.reduce(function(e,t){var m,h=(void 0!==t.type.defaultProps?ZX(ZX({},t.type.defaultProps),t.props):t.props)[i],b=iZ("number");return e[h]?e:(g++,f?m=YH(0,p):o&&o[h]&&o[h].hasStack?(m=bU(o[h].stackGroups,s,l),m=EX(u,m,h,a)):(m=EU(b,rU(d,n.filter(function(e){var t,n,r=i in e.props?e.props[i]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[i],a="hide"in e.props?e.props.hide:null===(n=e.type.defaultProps)||void 0===n?void 0:n.hide;return r===h&&!a}),"number",c),r.defaultProps.allowDataOverflow),m=EX(u,m,h,a)),ZX(ZX({},e),{},QX({},h,ZX(ZX({axisType:a},r.defaultProps),{},{hide:!0,orientation:nA(eZ,"".concat(a,".").concat(g%2),null),domain:m,originalDomain:b,isCategorical:f,layout:c}))))},{})}(e,{Axis:a,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:o,dataStartIndex:s,dataEndIndex:l})),p},uZ=function(e){var t=e.children,n=e.defaultShowTooltip,r=YA(t,pV),a=0,i=0;return e.data&&0!==e.data.length&&(i=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(a=r.props.startIndex),r.props.endIndex>=0&&(i=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:Boolean(n)}},dZ=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},pZ=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),a=void 0===r?{}:r,i=e.yAxisMap,o=void 0===i?{}:i,s=n.width,l=n.height,c=n.children,u=n.margin||{},d=YA(c,pV),p=YA(c,EN),f=Object.keys(o).reduce(function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:ZX(ZX({},e),{},QX({},r,e[r]+n.width))},{left:u.left||0,right:u.right||0}),g=Object.keys(a).reduce(function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:ZX(ZX({},e),{},QX({},r,nA(e,"".concat(r))+n.height))},{top:u.top||0,bottom:u.bottom||0}),m=ZX(ZX({},g),f),h=m.bottom;d&&(m.bottom+=d.props.height||pV.defaultProps.height),p&&t&&(m=function(e,t,n,r){var a=n.children,i=n.width,o=n.margin,s=i-(o.left||0)-(o.right||0),l=VB({children:a,legendWidth:s});if(l){var c=r||{},u=c.width,d=c.height,p=l.align,f=l.verticalAlign,g=l.layout;if(("vertical"===g||"horizontal"===g&&"middle"===f)&&"center"!==p&&SA(e[p]))return ZB(ZB({},e),{},QB({},p,e[p]+(u||0)));if(("horizontal"===g||"vertical"===g&&"center"===p)&&"middle"!==f&&SA(e[f]))return ZB(ZB({},e),{},QB({},f,e[f]+(d||0)))}return e}(m,0,n,t));var b=s-m.left-m.right,y=l-m.top-m.bottom;return ZX(ZX({brushBottom:h},m),{},{width:Math.max(b,0),height:Math.max(y,0)})},fZ=function(e,t){return"xAxis"===t?e[t].width:"yAxis"===t?e[t].height:void 0},gZ=function(e){var r=e.chartName,a=e.GraphicalChild,o=e.defaultTooltipEventType,s=void 0===o?"axis":o,l=e.validateTooltipEventTypes,c=void 0===l?["axis"]:l,u=e.axisComponents,d=e.legendContent,f=e.formatAxisMap,g=e.defaultProps,m=function(e,t){var n=t.graphicalItems,r=t.stackGroups,a=t.offset,i=t.updateId,o=t.dataStartIndex,s=t.dataEndIndex,l=e.barSize,c=e.layout,d=e.barGap,p=e.barCategoryGap,f=e.maxBarSize,g=dZ(c),m=g.numericAxisName,h=g.cateAxisName,b=function(e){return!(!e||!e.length)&&e.some(function(e){var t=GA(e&&e.type);return t&&t.indexOf("Bar")>=0})}(n),y=[];return n.forEach(function(n,g){var v=aZ(e.data,{graphicalItems:[n],dataStartIndex:o,dataEndIndex:s}),E=void 0!==n.type.defaultProps?ZX(ZX({},n.type.defaultProps),n.props):n.props,S=E.dataKey,w=E.maxBarSize,A=E["".concat(m,"Id")],k=E["".concat(h,"Id")],x=u.reduce(function(e,r){var a,i,o=t["".concat(r.axisType,"Map")],s=E["".concat(r.axisType,"Id")];o&&o[s]||"zAxis"===r.axisType||("production"!==process.env.NODE_ENV?OB(0,"Specifying a(n) ".concat(r.axisType,"Id requires a corresponding ").concat(r.axisType,"Id on the targeted graphical component ").concat(null!==(a=null==n||null===(i=n.type)||void 0===i?void 0:i.displayName)&&void 0!==a?a:"")):OB());var l=o[s];return ZX(ZX({},e),{},QX(QX({},r.axisType,l),"".concat(r.axisType,"Ticks"),oU(l)))},{}),T=x[h],O=x["".concat(h,"Ticks")],_=r&&r[A]&&r[A].hasStack&&function(e,t){var n,r=(null!==(n=e.type)&&void 0!==n&&n.defaultProps?ZB(ZB({},e.type.defaultProps),e.props):e.props).stackId;if(wA(r)){var a=t[r];if(a){var i=a.items.indexOf(e);return i>=0?a.stackedData[i]:null}}return null}(n,r[A].stackGroups),I=GA(n.type).indexOf("Bar")>=0,N=SU(T,O),R=[],C=b&&function(e){var t=e.barSize,n=e.totalSize,r=e.stackGroups,a=void 0===r?{}:r;if(!a)return{};for(var i={},o=Object.keys(a),s=0,l=o.length;s<l;s++)for(var c=a[o[s]].stackGroups,u=Object.keys(c),d=0,p=u.length;d<p;d++){var f=c[u[d]],g=f.items,m=f.cateAxisId,h=g.filter(function(e){return GA(e.type).indexOf("Bar")>=0});if(h&&h.length){var b=h[0].type.defaultProps,y=void 0!==b?ZB(ZB({},b),h[0].props):h[0].props,v=y.barSize,E=y[m];i[E]||(i[E]=[]);var S=rA(v)?t:v;i[E].push({item:h[0],stackList:h.slice(1),barSize:rA(S)?void 0:xA(S,n,0)})}}return i}({barSize:l,stackGroups:r,totalSize:fZ(x,h)});if(I){var D,P,L=rA(w)?f:w,M=null!==(D=null!==(P=SU(T,O,!0))&&void 0!==P?P:L)&&void 0!==D?D:0;R=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,a=e.sizeList,i=void 0===a?[]:a,o=e.maxBarSize,s=i.length;if(s<1)return null;var l,c=xA(t,r,0,!0),u=[];if(i[0].barSize===+i[0].barSize){var d=!1,p=r/s,f=i.reduce(function(e,t){return e+t.barSize||0},0);(f+=(s-1)*c)>=r&&(f-=(s-1)*c,c=0),f>=r&&p>0&&(d=!0,f=s*(p*=.9));var g={offset:((r-f)/2|0)-c,size:0};l=i.reduce(function(e,t){var n={item:t.item,position:{offset:g.offset+g.size+c,size:d?p:t.barSize}},r=[].concat(YB(e),[n]);return g=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:g})}),r},u)}else{var m=xA(n,r,0,!0);r-2*m-(s-1)*c<=0&&(c=0);var h=(r-2*m-(s-1)*c)/s;h>1&&(h>>=0);var b=o===+o?Math.min(h,o):h;l=i.reduce(function(e,t,n){var r=[].concat(YB(e),[{item:t.item,position:{offset:m+(h+c)*n+(h-b)/2,size:b}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:r[r.length-1].position})}),r},u)}return l}({barGap:d,barCategoryGap:p,bandSize:M!==N?M:N,sizeList:C[k],maxBarSize:L}),M!==N&&(R=R.map(function(e){return ZX(ZX({},e),{},{position:ZX(ZX({},e.position),{},{offset:e.position.offset-M/2})})}))}var F,j,B=n&&n.type&&n.type.getComposedData;B&&y.push({props:ZX(ZX({},B(ZX(ZX({},x),{},{displayedData:v,props:e,dataKey:S,item:n,bandSize:N,barPosition:R,offset:a,stackedData:_,layout:c,dataStartIndex:o,dataEndIndex:s}))),{},QX(QX(QX({key:n.key||"item-".concat(g)},m,x[m]),h,x[h]),"animationId",i)),childIndex:(F=n,j=e.children,VA(j).indexOf(F)),item:n})}),y},b=function(e,t){var n=e.props,i=e.dataStartIndex,o=e.dataEndIndex,s=e.updateId;if(!KA({props:n}))return null;var l=n.children,c=n.layout,d=n.stackOffset,p=n.data,g=n.reverseStackOrder,h=dZ(c),b=h.numericAxisName,y=h.cateAxisName,v=WA(l,a),E=function(e,t,n,r,a,i){if(!e)return null;var o=(i?t.reverse():t).reduce(function(e,t){var a,i=null!==(a=t.type)&&void 0!==a&&a.defaultProps?ZB(ZB({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(i.hide)return e;var s=i[n],l=e[s]||{hasStack:!1,stackGroups:{}};if(wA(o)){var c=l.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(t),l.hasStack=!0,l.stackGroups[o]=c}else l.stackGroups[kA("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return ZB(ZB({},e),{},QB({},s,l))},{});return Object.keys(o).reduce(function(t,i){var s=o[i];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce(function(t,i){var o=s.stackGroups[i];return ZB(ZB({},t),{},QB({},i,{numericAxisId:n,cateAxisId:r,items:o.items,stackedData:fU(e,o.items,a)}))},{})),ZB(ZB({},t),{},QB({},i,s))},{})}(p,v,"".concat(b,"Id"),"".concat(y,"Id"),d,g),S=u.reduce(function(e,t){var r="".concat(t.axisType,"Map");return ZX(ZX({},e),{},QX({},r,cZ(n,ZX(ZX({},t),{},{graphicalItems:v,stackGroups:t.axisType===b&&E,dataStartIndex:i,dataEndIndex:o}))))},{}),w=pZ(ZX(ZX({},S),{},{props:n,graphicalItems:v}),null==t?void 0:t.legendBBox);Object.keys(S).forEach(function(e){S[e]=f(n,S[e],w,e.replace("Map",""),r)});var A,k,x=S["".concat(y,"Map")],T=(A=TA(x),{tooltipTicks:k=oU(A,!1,!0),orderedTooltipTicks:ER(k,function(e){return e.coordinate}),tooltipAxis:A,tooltipAxisBandSize:SU(A,k)}),O=m(n,ZX(ZX({},S),{},{dataStartIndex:i,dataEndIndex:o,updateId:s,graphicalItems:v,stackGroups:E,offset:w}));return ZX(ZX({formattedGraphicalItems:O,graphicalItems:v,offset:w,stackGroups:E},T),S)},y=function(){function e(n){var a,i,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),QX(o=GX(this,e,[n]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),QX(o,"accessibilityManager",new _X),QX(o,"handleLegendBBoxUpdate",function(e){if(e){var t=o.state,n=t.dataStartIndex,r=t.dataEndIndex,a=t.updateId;o.setState(ZX({legendBBox:e},b({props:o.props,dataStartIndex:n,dataEndIndex:r,updateId:a},ZX(ZX({},o.state),{},{legendBBox:e}))))}}),QX(o,"handleReceiveSyncEvent",function(e,t,n){if(o.props.syncId===e){if(n===o.eventEmitterSymbol&&"function"!=typeof o.props.syncMethod)return;o.applySyncEvent(t)}}),QX(o,"handleBrushChange",function(e){var t=e.startIndex,n=e.endIndex;if(t!==o.state.dataStartIndex||n!==o.state.dataEndIndex){var r=o.state.updateId;o.setState(function(){return ZX({dataStartIndex:t,dataEndIndex:n},b({props:o.props,dataStartIndex:t,dataEndIndex:n,updateId:r},o.state))}),o.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}}),QX(o,"handleMouseEnter",function(e){var t=o.getMouseInfo(e);if(t){var n=ZX(ZX({},t),{},{isTooltipActive:!0});o.setState(n),o.triggerSyncEvent(n);var r=o.props.onMouseEnter;oS(r)&&r(n,e)}}),QX(o,"triggeredAfterMouseMove",function(e){var t=o.getMouseInfo(e),n=t?ZX(ZX({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};o.setState(n),o.triggerSyncEvent(n);var r=o.props.onMouseMove;oS(r)&&r(n,e)}),QX(o,"handleItemMouseEnter",function(e){o.setState(function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}})}),QX(o,"handleItemMouseLeave",function(){o.setState(function(){return{isTooltipActive:!1}})}),QX(o,"handleMouseMove",function(e){e.persist(),o.throttleTriggeredAfterMouseMove(e)}),QX(o,"handleMouseLeave",function(e){o.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};o.setState(t),o.triggerSyncEvent(t);var n=o.props.onMouseLeave;oS(n)&&n(t,e)}),QX(o,"handleOuterEvent",function(e){var t,n=function(e){var t=e&&e.type;return t&&$A[t]?$A[t]:null}(e),r=nA(o.props,"".concat(n));n&&oS(r)&&r(null!==(t=/.*touch.*/i.test(n)?o.getMouseInfo(e.changedTouches[0]):o.getMouseInfo(e))&&void 0!==t?t:{},e)}),QX(o,"handleClick",function(e){var t=o.getMouseInfo(e);if(t){var n=ZX(ZX({},t),{},{isTooltipActive:!0});o.setState(n),o.triggerSyncEvent(n);var r=o.props.onClick;oS(r)&&r(n,e)}}),QX(o,"handleMouseDown",function(e){var t=o.props.onMouseDown;oS(t)&&t(o.getMouseInfo(e),e)}),QX(o,"handleMouseUp",function(e){var t=o.props.onMouseUp;oS(t)&&t(o.getMouseInfo(e),e)}),QX(o,"handleTouchMove",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&o.throttleTriggeredAfterMouseMove(e.changedTouches[0])}),QX(o,"handleTouchStart",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&o.handleMouseDown(e.changedTouches[0])}),QX(o,"handleTouchEnd",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&o.handleMouseUp(e.changedTouches[0])}),QX(o,"handleDoubleClick",function(e){var t=o.props.onDoubleClick;oS(t)&&t(o.getMouseInfo(e),e)}),QX(o,"handleContextMenu",function(e){var t=o.props.onContextMenu;oS(t)&&t(o.getMouseInfo(e),e)}),QX(o,"triggerSyncEvent",function(e){void 0!==o.props.syncId&&wX.emit(AX,o.props.syncId,e,o.eventEmitterSymbol)}),QX(o,"applySyncEvent",function(e){var t=o.props,n=t.layout,r=t.syncMethod,a=o.state.updateId,i=e.dataStartIndex,s=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)o.setState(ZX({dataStartIndex:i,dataEndIndex:s},b({props:o.props,dataStartIndex:i,dataEndIndex:s,updateId:a},o.state)));else if(void 0!==e.activeTooltipIndex){var l=e.chartX,c=e.chartY,u=e.activeTooltipIndex,d=o.state,p=d.offset,f=d.tooltipTicks;if(!p)return;if("function"==typeof r)u=r(f,e);else if("value"===r){u=-1;for(var g=0;g<f.length;g++)if(f[g].value===e.activeLabel){u=g;break}}var m=ZX(ZX({},p),{},{x:p.left,y:p.top}),h=Math.min(l,m.x+m.width),y=Math.min(c,m.y+m.height),v=f[u]&&f[u].value,E=oZ(o.state,o.props.data,u),S=f[u]?{x:"horizontal"===n?f[u].coordinate:h,y:"horizontal"===n?y:f[u].coordinate}:nZ;o.setState(ZX(ZX({},e),{},{activeLabel:v,activeCoordinate:S,activePayload:E,activeTooltipIndex:u}))}else o.setState(e)}),QX(o,"renderCursor",function(e){var n,a=o.state,i=a.isTooltipActive,s=a.activeCoordinate,l=a.activePayload,c=a.offset,u=a.activeTooltipIndex,d=a.tooltipAxisBandSize,p=o.getTooltipEventType(),f=null!==(n=e.props.active)&&void 0!==n?n:i,g=o.props.layout,m=e.key||"_recharts-cursor";return t.createElement(LX,{key:m,activeCoordinate:s,activePayload:l,activeTooltipIndex:u,chartName:r,element:e,isActive:f,layout:g,offset:c,tooltipAxisBandSize:d,tooltipEventType:p})}),QX(o,"renderPolarAxis",function(e,t,n){var r=nA(e,"type.axisType"),a=nA(o.state,"".concat(r,"Map")),i=e.type.defaultProps,s=void 0!==i?ZX(ZX({},i),e.props):e.props,l=a&&a[s["".concat(r,"Id")]];return p(e,ZX(ZX({},l),{},{className:IE(r,l.className),key:e.key||"".concat(t,"-").concat(n),ticks:oU(l,!0)}))}),QX(o,"renderPolarGrid",function(e){var t=e.props,n=t.radialLines,r=t.polarAngles,a=t.polarRadius,i=o.state,s=i.radiusAxisMap,l=i.angleAxisMap,c=TA(s),u=TA(l),d=u.cx,f=u.cy,g=u.innerRadius,m=u.outerRadius;return p(e,{polarAngles:Array.isArray(r)?r:oU(u,!0).map(function(e){return e.coordinate}),polarRadius:Array.isArray(a)?a:oU(c,!0).map(function(e){return e.coordinate}),cx:d,cy:f,innerRadius:g,outerRadius:m,key:e.key||"polar-grid",radialLines:n})}),QX(o,"renderLegend",function(){var e=o.state.formattedGraphicalItems,t=o.props,n=t.children,r=t.width,a=t.height,i=o.props.margin||{},s=r-(i.left||0)-(i.right||0),l=VB({children:n,formattedGraphicalItems:e,legendWidth:s,legendContent:d});if(!l)return null;var c=l.item,u=zX(l,MX);return p(c,ZX(ZX({},u),{},{chartWidth:r,chartHeight:a,margin:i,onBBoxUpdate:o.handleLegendBBoxUpdate}))}),QX(o,"renderTooltip",function(){var e,t=o.props,n=t.children,r=t.accessibilityLayer,a=YA(n,iC);if(!a)return null;var i=o.state,s=i.isTooltipActive,l=i.activeCoordinate,c=i.activePayload,u=i.activeLabel,d=i.offset,f=null!==(e=a.props.active)&&void 0!==e?e:s;return p(a,{viewBox:ZX(ZX({},d),{},{x:d.left,y:d.top}),active:f,label:u,payload:f?c:[],coordinate:l,accessibilityLayer:r})}),QX(o,"renderBrush",function(e){var t=o.props,n=t.margin,r=t.data,a=o.state,i=a.offset,s=a.dataStartIndex,l=a.dataEndIndex,c=a.updateId;return p(e,{key:e.key||"_recharts-brush",onChange:lU(o.handleBrushChange,e.props.onChange),data:r,x:SA(e.props.x)?e.props.x:i.left,y:SA(e.props.y)?e.props.y:i.top+i.height+i.brushBottom-(n.bottom||0),width:SA(e.props.width)?e.props.width:i.width,startIndex:s,endIndex:l,updateId:"brush-".concat(c)})}),QX(o,"renderReferenceElement",function(e,t,n){if(!e)return null;var r=o.clipPathId,a=o.state,i=a.xAxisMap,s=a.yAxisMap,l=a.offset,c=e.type.defaultProps||{},u=e.props,d=u.xAxisId,f=void 0===d?c.xAxisId:d,g=u.yAxisId,m=void 0===g?c.yAxisId:g;return p(e,{key:e.key||"".concat(t,"-").concat(n),xAxis:i[f],yAxis:s[m],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:r})}),QX(o,"renderActivePoints",function(t){var n=t.item,r=t.activePoint,a=t.basePoint,i=t.childIndex,o=t.isRange,s=[],l=n.props.key,c=void 0!==n.item.type.defaultProps?ZX(ZX({},n.item.type.defaultProps),n.item.props):n.item.props,u=c.activeDot,d=ZX(ZX({index:i,dataKey:c.dataKey,cx:r.x,cy:r.y,r:4,fill:tU(n.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value},QA(u,!1)),MA(u));return s.push(e.renderActiveDot(u,d,"".concat(l,"-activePoint-").concat(i))),a?s.push(e.renderActiveDot(u,ZX(ZX({},d),{},{cx:a.x,cy:a.y}),"".concat(l,"-basePoint-").concat(i))):o&&s.push(null),s}),QX(o,"renderGraphicChild",function(e,t,n){var r=o.filterFormatItem(e,t,n);if(!r)return null;var a=o.getTooltipEventType(),i=o.state,s=i.isTooltipActive,l=i.tooltipAxis,c=i.activeTooltipIndex,u=i.activeLabel,d=YA(o.props.children,iC),f=r.props,g=f.points,m=f.isRange,h=f.baseLine,b=void 0!==r.item.type.defaultProps?ZX(ZX({},r.item.type.defaultProps),r.item.props):r.item.props,y=b.activeDot,v=b.hide,E=b.activeBar,S=b.activeShape,w=Boolean(!v&&s&&d&&(y||E||S)),A={};"axis"!==a&&d&&"click"===d.props.trigger?A={onClick:lU(o.handleItemMouseEnter,e.props.onClick)}:"axis"!==a&&(A={onMouseLeave:lU(o.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:lU(o.handleItemMouseEnter,e.props.onMouseEnter)});var k=p(e,ZX(ZX({},r.props),A));if(w){if(!(c>=0)){var x,T=(null!==(x=o.getItemByXY(o.state.activeCoordinate))&&void 0!==x?x:{graphicalItem:k}).graphicalItem,O=T.item,_=void 0===O?e:O,I=T.childIndex,N=ZX(ZX(ZX({},r.props),A),{},{activeIndex:I});return[p(_,N),null,null]}var R,C;if(l.dataKey&&!l.allowDuplicatedCategory){var D="function"==typeof l.dataKey?function(e){return"function"==typeof l.dataKey?l.dataKey(e.payload):null}:"payload.".concat(l.dataKey.toString());R=_A(g,D,u),C=m&&h&&_A(h,D,u)}else R=null==g?void 0:g[c],C=m&&h&&h[c];if(S||E){var P=void 0!==e.props.activeIndex?e.props.activeIndex:c;return[p(e,ZX(ZX(ZX({},r.props),A),{},{activeIndex:P})),null,null]}if(!rA(R))return[k].concat(WX(o.renderActivePoints({item:r,activePoint:R,basePoint:C,childIndex:c,isRange:m})))}return m?[k,null,null]:[k,null]}),QX(o,"renderCustomized",function(e,t,n){return p(e,ZX(ZX({key:"recharts-customized-".concat(n)},o.props),o.state))}),QX(o,"renderMap",{CartesianGrid:{handler:rZ,once:!0},ReferenceArea:{handler:o.renderReferenceElement},ReferenceLine:{handler:rZ},ReferenceDot:{handler:o.renderReferenceElement},XAxis:{handler:rZ},YAxis:{handler:rZ},Brush:{handler:o.renderBrush,once:!0},Bar:{handler:o.renderGraphicChild},Line:{handler:o.renderGraphicChild},Area:{handler:o.renderGraphicChild},Radar:{handler:o.renderGraphicChild},RadialBar:{handler:o.renderGraphicChild},Scatter:{handler:o.renderGraphicChild},Pie:{handler:o.renderGraphicChild},Funnel:{handler:o.renderGraphicChild},Tooltip:{handler:o.renderCursor,once:!0},PolarGrid:{handler:o.renderPolarGrid,once:!0},PolarAngleAxis:{handler:o.renderPolarAxis},PolarRadiusAxis:{handler:o.renderPolarAxis},Customized:{handler:o.renderCustomized}}),o.clipPathId="".concat(null!==(a=n.id)&&void 0!==a?a:kA("recharts"),"-clip"),o.throttleTriggeredAfterMouseMove=_C(o.triggeredAfterMouseMove,null!==(i=n.throttleDelay)&&void 0!==i?i:1e3/60),o.state={},o}return function(e,t){if("function"!=typeof t&&null!==t)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&&VX(e,t)}(e,h),$X(e,[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,a=e.layout,i=YA(t,iC);if(i){var o=i.props.defaultIndex;if(!("number"!=typeof o||o<0||o>this.state.tooltipTicks.length-1)){var s=this.state.tooltipTicks[o]&&this.state.tooltipTicks[o].value,l=oZ(this.state,n,o,s),c=this.state.tooltipTicks[o].coordinate,u=(this.state.offset.top+r)/2,d="horizontal"===a?{x:c,y:u}:{y:c,x:u},p=this.state.formattedGraphicalItems.find(function(e){return"Scatter"===e.item.type.name});p&&(d=ZX(ZX({},d),p.props.points[o].tooltipPosition),l=p.props.points[o].tooltipPayload);var f={activeTooltipIndex:o,isTooltipActive:!0,activeLabel:s,activePayload:l,activeCoordinate:d};this.setState(f),this.renderCursor(i),this.accessibilityManager.setIndex(o)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){if(!this.props.accessibilityLayer)return null;var n,r;(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin)&&this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}});return null}},{key:"componentDidUpdate",value:function(e){JA([YA(e.children,iC)],[YA(this.props.children,iC)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=YA(this.props.children,iC);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return c.indexOf(t)>=0?t:s}return s}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=this.container,n=t.getBoundingClientRect(),r=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}}(n),a={chartX:Math.round(e.pageX-r.left),chartY:Math.round(e.pageY-r.top)},i=n.width/t.offsetWidth||1,o=this.inRange(a.chartX,a.chartY,i);if(!o)return null;var s=this.state,l=s.xAxisMap,c=s.yAxisMap,u=this.getTooltipEventType(),d=sZ(this.state,this.props.data,this.props.layout,o);if("axis"!==u&&l&&c){var p=TA(l).scale,f=TA(c).scale,g=p&&p.invert?p.invert(a.chartX):null,m=f&&f.invert?f.invert(a.chartY):null;return ZX(ZX({},a),{},{xValue:g,yValue:m},d)}return d?ZX(ZX({},a),d):null}},{key:"inRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,a=e/n,i=t/n;if("horizontal"===r||"vertical"===r){var o=this.state.offset;return a>=o.left&&a<=o.left+o.width&&i>=o.top&&i<=o.top+o.height?{x:a,y:i}:null}var s=this.state,l=s.angleAxisMap,c=s.radiusAxisMap;if(l&&c){var u=TA(l);return MU({x:a,y:i},u)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=YA(e,iC),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),ZX(ZX({},MA(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){wX.on(AX,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){wX.removeListener(AX,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,a=0,i=r.length;a<i;a++){var o=r[a];if(o.item===e||o.props.key===e.key||t===GA(o.item.type)&&n===o.childIndex)return o}return null}},{key:"renderClipPath",value:function(){var e=this.clipPathId,n=this.state.offset,r=n.left,a=n.top,i=n.height,o=n.width;return t.createElement("defs",null,t.createElement("clipPath",{id:e},t.createElement("rect",{x:r,y:a,height:i,width:o})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce(function(e,t){var n=UX(t,2),r=n[0],a=n[1];return ZX(ZX({},e),{},QX({},r,a.scale))},{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce(function(e,t){var n=UX(t,2),r=n[0],a=n[1];return ZX(ZX({},e),{},QX({},r,a.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(e){var t;return null===(t=this.state.xAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getYScaleByAxisId",value:function(e){var t;return null===(t=this.state.yAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getItemByXY",value:function(e){var t=this.state,n=t.formattedGraphicalItems,r=t.activeItem;if(n&&n.length)for(var a=0,i=n.length;a<i;a++){var o=n[a],s=o.props,l=o.item,c=void 0!==l.type.defaultProps?ZX(ZX({},l.type.defaultProps),l.props):l.props,u=GA(l.type);if("Bar"===u){var d=(s.data||[]).find(function(t){return FG(e,t)});if(d)return{graphicalItem:o,payload:d}}else if("RadialBar"===u){var p=(s.data||[]).find(function(t){return MU(e,t)});if(p)return{graphicalItem:o,payload:p}}else if(EH(o,r)||SH(o,r)||wH(o,r)){var f=TH({graphicalItem:o,activeTooltipItem:r,itemData:c.data}),g=void 0===c.activeIndex?f:c.activeIndex;return{graphicalItem:ZX(ZX({},o),{},{childIndex:g}),payload:wH(o,r)?c.data[f]:o.props.data[f]}}}return null}},{key:"render",value:function(){var e=this;if(!KA(this))return null;var n,r,a=this.props,i=a.children,o=a.className,s=a.width,l=a.height,c=a.style,u=a.compact,d=a.title,p=a.desc,f=zX(a,FX),g=QA(f,!1);if(u)return t.createElement(jW,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},t.createElement(ik,BX({},g,{width:s,height:l,title:d,desc:p}),this.renderClipPath(),tk(i,this.renderMap)));this.props.accessibilityLayer&&(g.tabIndex=null!==(n=this.props.tabIndex)&&void 0!==n?n:0,g.role=null!==(r=this.props.role)&&void 0!==r?r:"application",g.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},g.onFocus=function(){e.accessibilityManager.focus()});var m=this.parseEventsOfWrapper();return t.createElement(jW,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},t.createElement("div",BX({className:IE("recharts-wrapper",o),style:ZX({position:"relative",cursor:"default",width:s,height:l},c)},m,{ref:function(t){e.container=t}}),t.createElement(ik,BX({},g,{width:s,height:l,title:d,desc:p,style:tZ}),this.renderClipPath(),tk(i,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}();QX(y,"displayName",r),QX(y,"defaultProps",ZX({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},g)),QX(y,"getDerivedStateFromProps",function(e,t){var n=e.dataKey,r=e.data,a=e.children,i=e.width,o=e.height,s=e.layout,l=e.stackOffset,c=e.margin,u=t.dataStartIndex,d=t.dataEndIndex;if(void 0===t.updateId){var p=uZ(e);return ZX(ZX(ZX({},p),{},{updateId:0},b(ZX(ZX({props:e},p),{},{updateId:0}),t)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:o,prevLayout:s,prevStackOffset:l,prevMargin:c,prevChildren:a})}if(n!==t.prevDataKey||r!==t.prevData||i!==t.prevWidth||o!==t.prevHeight||s!==t.prevLayout||l!==t.prevStackOffset||!NA(c,t.prevMargin)){var f=uZ(e),g={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},m=ZX(ZX({},sZ(t,r,s)),{},{updateId:t.updateId+1}),h=ZX(ZX(ZX({},f),g),m);return ZX(ZX(ZX({},h),b(ZX({props:e},h),t)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:o,prevLayout:s,prevStackOffset:l,prevMargin:c,prevChildren:a})}if(!JA(a,t.prevChildren)){var y,v,E,S,w=YA(a,pV),A=w&&null!==(y=null===(v=w.props)||void 0===v?void 0:v.startIndex)&&void 0!==y?y:u,k=w&&null!==(E=null===(S=w.props)||void 0===S?void 0:S.endIndex)&&void 0!==E?E:d,x=A!==u||k!==d,T=!rA(r)&&!x?t.updateId:t.updateId+1;return ZX(ZX({updateId:T},b(ZX(ZX({props:e},t),{},{updateId:T,dataStartIndex:A,dataEndIndex:k}),t)),{},{prevChildren:a,dataStartIndex:A,dataEndIndex:k})}return null}),QX(y,"renderActiveDot",function(e,r,a){var i;return i=n(e)?p(e,r):oS(e)?e(r):t.createElement(KG,r),t.createElement(ck,{className:"recharts-active-dot",key:a},i)});var v=i(function(e,n){return t.createElement(y,BX({},e,{ref:n}))});return v.displayName=y.displayName,v},mZ=gZ({chartName:"LineChart",GraphicalChild:DK,axisComponents:[{axisType:"xAxis",AxisComp:oX},{axisType:"yAxis",AxisComp:bX}],formatAxisMap:gW}),hZ=gZ({chartName:"BarChart",GraphicalChild:sW,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:oX},{axisType:"yAxis",AxisComp:bX}],formatAxisMap:gW}),bZ=gZ({chartName:"PieChart",GraphicalChild:jH,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Uq},{axisType:"radiusAxis",AxisComp:Tq}],formatAxisMap:function(e,t,n,r,a){var i=e.width,o=e.height,s=e.startAngle,l=e.endAngle,c=xA(e.cx,i,i/2),u=xA(e.cy,o,o/2),d=DU(i,o,n),p=xA(e.innerRadius,d,0),f=xA(e.outerRadius,d,.8*d);return Object.keys(t).reduce(function(e,n){var i,o=t[n],d=o.domain,g=o.reversed;if(rA(o.range))"angleAxis"===r?i=[s,l]:"radiusAxis"===r&&(i=[p,f]),g&&(i=[i[1],i[0]]);else{var m=_U(i=o.range,2);s=m[0],l=m[1]}var h=cU(o,a),b=h.realScaleType,y=h.scale;y.domain(d).range(i),dU(y);var v=gU(y,TU(TU({},o),{},{realScaleType:b})),E=TU(TU(TU({},o),v),{},{range:i,radius:f,realScaleType:b,scale:y,cx:c,cy:u,innerRadius:p,outerRadius:f,startAngle:s,endAngle:l});return TU(TU({},e),{},OU({},n,E))},{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),yZ=gZ({chartName:"AreaChart",GraphicalChild:KK,axisComponents:[{axisType:"xAxis",AxisComp:oX},{axisType:"yAxis",AxisComp:bX}],formatAxisMap:gW});function vZ(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}const EZ=/(^|[_\W])(price|salary|cost|amount|revenue|expense|total|value|budget|spend|income|sale|balance)/i;function SZ(e){return Number(e).toLocaleString("en-US",{maximumFractionDigits:2})}function wZ(e,t){const n="string"==typeof e?e.trim():"";if(/^[A-Za-z]{3}$/.test(n))try{const e=n.toUpperCase(),t=new Intl.NumberFormat("en-US",{style:"currency",currency:e,maximumFractionDigits:2}),r=new Intl.NumberFormat("en-US",{style:"currency",currency:e,notation:"compact",maximumFractionDigits:1});return{full:e=>t.format(Number(e)),compact:e=>r.format(Number(e))}}catch(e){}return n?{full:e=>`${n}${SZ(e)}`,compact:e=>`${n}${vZ(e)}`}:"string"==typeof t&&EZ.test(t)?{full:SZ,compact:vZ}:null}const AZ=["#1d4ed8","#d97706","#db2777","#0891b2"],kZ=["#3b82f6","#d97706","#db2777","#0891b2"];function xZ(e,t=!1){const n=t?kZ:AZ;return n[e%n.length]}function TZ(e){return Array.isArray(e.series)&&e.series.length>1?e.series:[]}function OZ(e,t){const n=e.map(e=>wZ(t,e.key));return{each:n,axis:n.length>0&&n.every(Boolean)?n[0]:null}}function _Z(e,t,n){return(r,a,i)=>{const o=t[e.findIndex(e=>e.dataKey===(i&&i.dataKey))];return o?o.full(r):n?`${Number(r).toLocaleString()} ${n}`:Number(r).toLocaleString()}}function IZ(e,t){return e.length>0?{color:t}:void 0}function NZ(e){return j(EN,{verticalAlign:"top",iconSize:10,wrapperStyle:{fontSize:11,paddingBottom:6},formatter:t=>j("span",{style:{color:e},children:t})})}function RZ({props:e,isDark:t=!1}){const n=Array.isArray(e.data)?e.data:[],r=wZ(e.currency,e.yKey),a=e.valueLabel||void 0,i=TZ(e),o=OZ(i,e.currency),s=i.length>0?o.axis:r,l=t?"#374151":"#e2e8f0",c=t?"#1f2937":"#ffffff",u=t?"#9ca3af":"#64748b",d=t?"#f3f4f6":"#0f172a",p=t?"#374151":"#e2e8f0",f=t?"#111827":"#ffffff";if(0===n.length)return F("div",{style:{borderRadius:8,border:`1px solid ${l}`,background:c,padding:12,margin:"8px 0"},children:[e.title&&j("div",{style:{fontSize:13,fontWeight:600,color:d,marginBottom:8},children:e.title}),j("div",{style:{color:u,fontSize:12},children:"No chartable data"})]});const g=n.some(e=>String(e.label??"").length>10),m=g?-35:0,h=g?"end":"middle",b=g?48:20,y=g?250:220;return F("div",{style:{borderRadius:8,border:`1px solid ${l}`,background:c,padding:12,margin:"8px 0"},children:[e.title&&j("h3",{style:{fontSize:13,fontWeight:600,color:d,marginBottom:8,marginTop:0},children:e.title}),j("div",{role:"img","aria-label":e.title||a||"Bar chart",style:{height:y,width:"100%"},children:j(LC,{width:"100%",height:"100%",children:F(hZ,{data:n,margin:{top:16,right:12,left:12,bottom:b},children:[j(hK,{strokeDasharray:"3 3",stroke:p}),j(oX,{dataKey:"label",tick:{fontSize:11,fill:u},angle:m,textAnchor:h,interval:0,label:e.xAxisLabel?{value:e.xAxisLabel,position:"insideBottom",offset:-12,fontSize:11,fill:u}:void 0}),j(bX,{width:72,tick:{fontSize:11,fill:u},label:e.yAxisLabel?{value:e.yAxisLabel,angle:-90,position:"insideLeft",fontSize:11,fill:u}:void 0,tickFormatter:t=>s?s.compact(t):e.unit?`${vZ(t)} ${e.unit}`:vZ(t)}),j(iC,{formatter:i.length>0?_Z(i,o.each,e.unit):t=>r?r.full(t):e.unit?`${Number(t).toLocaleString()} ${e.unit}`:Number(t).toLocaleString(),itemStyle:IZ(i,d),contentStyle:{background:f,border:`1px solid ${l}`,borderRadius:6,fontSize:12,color:d}}),i.length>0&&NZ(u),i.length>0?i.map((e,n)=>j(sW,{dataKey:e.dataKey,name:e.name,fill:xZ(n,t),radius:[2,2,0,0]},e.dataKey)):j(sW,{dataKey:"value",name:a,fill:"#3b82f6",radius:[2,2,0,0],label:{position:"top",fill:u,fontSize:10,formatter:e=>r?r.compact(e):vZ(e)}})]})})})]})}function CZ({props:e,isDark:t=!1}){const n=e.trend,r="up"===n?"#059669":"down"===n?"#e11d48":"#64748b",a="up"===n?"↑":"down"===n?"↓":"flat"===n?"→":null,i=t?"#f3f4f6":"#0f172a";return F("div",{style:{borderRadius:8,border:`1px solid ${t?"#374151":"#e2e8f0"}`,background:t?"#1f2937":"#ffffff",padding:12,margin:"8px 0"},children:[j("p",{style:{fontSize:11,fontWeight:500,color:"#64748b",textTransform:"uppercase",letterSpacing:"0.05em",margin:0},children:e.label}),j("p",{style:{marginTop:4,fontSize:28,fontWeight:700,color:i,lineHeight:1.1,marginBottom:0},children:e.value}),e.change&&F("p",{style:{marginTop:4,fontSize:12,color:r,marginBottom:0},children:[a&&j("span",{style:{marginRight:4},children:a}),e.change]})]})}const DZ=["#3b82f6","#10b981","#f59e0b","#ef4444","#8b5cf6","#ec4899","#14b8a6","#f97316","#6366f1","#84cc16","#06b6d4","#a855f7"];function PZ({props:e,isDark:t=!1,donut:n=!1}){const r=Array.isArray(e.data)?e.data:[],a=wZ(e.currency,e.yKey),i=t?"#374151":"#e2e8f0",o=t?"#1f2937":"#ffffff",s=t?"#f3f4f6":"#0f172a",l=t?"#111827":"#ffffff",c=t?"#9ca3af":"#64748b",u=r.map(e=>({name:e.label,value:e.value})),d=Math.PI/180;return F("div",{style:{borderRadius:8,border:`1px solid ${i}`,background:o,padding:12,margin:"8px 0"},children:[e.title&&j("h3",{style:{fontSize:13,fontWeight:600,color:s,marginBottom:8,marginTop:0},children:e.title}),j("div",{role:"img","aria-label":e.title||(n?"Donut chart":"Pie chart"),style:{height:260,width:"100%"},children:j(LC,{width:"100%",height:"100%",children:F(bZ,{children:[j(jH,{data:u,dataKey:"value",nameKey:"name",cx:"50%",cy:"50%",outerRadius:72,innerRadius:n?40:0,paddingAngle:2,labelLine:!1,label:e=>{const r=Number(e&&e.value),i=(o=r,s=Number(e&&e.percent),Number.isFinite(o)&&0!==o?Number.isFinite(s)&&s<.08?"outside":"inside":"none");var o,s;if("none"===i)return null;const l=Number(e.innerRadius)||0,c=Number(e.outerRadius)||0,u=Number(e.cx),p=Number(e.cy),f=-Number(e.midAngle)*d,g=Math.cos(f),m=Math.sin(f),h=a?a.full(r):Number(r).toLocaleString();if("inside"===i){const e=l+(c-l)*(n?.78:.6);return j("text",{x:u+e*g,y:p+e*m,fill:"#ffffff",textAnchor:"middle",dominantBaseline:"central",style:{fontSize:11,fontWeight:600,pointerEvents:"none"},children:h})}const b="string"==typeof e.fill&&e.fill?e.fill:t?"#9ca3af":"#64748b",y=c+8,v=u+y*g,E=p+y*m,S=g>=0,w=v+(S?6:-6);return F("g",{style:{pointerEvents:"none"},children:[j("polyline",{points:`${u+c*g},${p+c*m} ${v},${E} ${w},${E}`,stroke:b,strokeWidth:1,fill:"none"}),j("text",{x:w+(S?2:-2),y:E,fill:b,textAnchor:S?"start":"end",dominantBaseline:"central",style:{fontSize:10,fontWeight:600},children:h})]})},isAnimationActive:!1,children:u.map((e,t)=>j(MC,{fill:DZ[t%DZ.length]},t))}),j(iC,{formatter:e=>a?a.full(e):Number(e).toLocaleString(),contentStyle:{background:l,border:`1px solid ${i}`,borderRadius:6,fontSize:12,color:s}}),j(EN,{iconSize:10,iconType:"circle",wrapperStyle:{fontSize:11,color:c}})]})})})]})}function LZ({props:e,isDark:t=!1,area:n=!1}){const r=Array.isArray(e.data)?e.data:[],a=wZ(e.currency,e.yKey),i=e.valueLabel||void 0,o=TZ(e),s=OZ(o,e.currency),l=o.length>0?s.axis:a,c=o.length>0&&r.length>12,u=t?"#374151":"#e2e8f0",d=t?"#1f2937":"#ffffff",p=t?"#9ca3af":"#64748b",f=t?"#f3f4f6":"#0f172a",g=t?"#374151":"#e2e8f0",m=t?"#111827":"#ffffff";if(0===r.length)return F("div",{style:{borderRadius:8,border:`1px solid ${u}`,background:d,padding:12,margin:"8px 0"},children:[e.title&&j("div",{style:{fontSize:13,fontWeight:600,color:f,marginBottom:8},children:e.title}),j("div",{style:{color:p,fontSize:12},children:"No chartable data"})]});const h=n?yZ:mZ;return F("div",{style:{borderRadius:8,border:`1px solid ${u}`,background:d,padding:12,margin:"8px 0"},children:[e.title&&j("h3",{style:{fontSize:13,fontWeight:600,color:f,marginBottom:8,marginTop:0},children:e.title}),j("div",{role:"img","aria-label":e.title||i||(n?"Area chart":"Line chart"),style:{height:220,width:"100%"},children:j(LC,{width:"100%",height:"100%",children:F(h,{data:r,margin:{top:8,right:12,left:12,bottom:20},children:[j(hK,{strokeDasharray:"3 3",stroke:g}),j(oX,{dataKey:"label",tick:{fontSize:11,fill:p},angle:0,textAnchor:"middle",interval:c?"preserveStartEnd":0,label:e.xAxisLabel?{value:e.xAxisLabel,position:"insideBottom",offset:-12,fontSize:11,fill:p}:void 0}),j(bX,{width:72,tick:{fontSize:11,fill:p},tickFormatter:t=>l?l.compact(t):e.unit?`${vZ(t)} ${e.unit}`:vZ(t)}),j(iC,{formatter:o.length>0?_Z(o,s.each,e.unit):t=>a?a.full(t):e.unit?`${Number(t).toLocaleString()} ${e.unit}`:Number(t).toLocaleString(),itemStyle:IZ(o,f),contentStyle:{background:m,border:`1px solid ${u}`,borderRadius:6,fontSize:12,color:f}}),o.length>0&&NZ(p),o.length>0?o.map((e,r)=>{const a=xZ(r,t),i=!c&&{r:3,fill:a};return n?j(KK,{type:"monotone",dataKey:e.dataKey,name:e.name,stroke:a,fill:a,fillOpacity:.15,strokeWidth:2,dot:i},e.dataKey):j(DK,{type:"monotone",dataKey:e.dataKey,name:e.name,stroke:a,strokeWidth:2,dot:i,activeDot:{r:5}},e.dataKey)}):n?j(KK,{type:"monotone",dataKey:"value",name:i,stroke:"#3b82f6",fill:"#3b82f6",fillOpacity:.15,strokeWidth:2,dot:{r:3,fill:"#3b82f6"}}):j(DK,{type:"monotone",dataKey:"value",name:i,stroke:"#3b82f6",strokeWidth:2,dot:{r:3,fill:"#3b82f6"},activeDot:{r:5}})]})})})]})}const MZ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function FZ(e){if(null==e)return"";const t=String(e).replace(/\s+/g," ").trim();return t?function(e){return-1!==e.indexOf("_")||e===e.toLowerCase()||jZ.test(e)}(t)?t.replace(/[_\-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/\s+/g," ").trim().split(" ").map(function(e){return e===e.toLowerCase()?e.charAt(0).toUpperCase()+e.slice(1):e}).join(" "):t:""}const jZ=/^[a-z]{2}[a-z0-9]*[A-Z][A-Za-z0-9]*$/;const BZ=/(^|[_\W])(price|salary|cost|amount|revenue|expense|total|value|budget|spend|income|sale|balance)/i;const UZ=/^\d{4}-\d{2}-\d{2}([T ]\d{2}:\d{2}(:\d{2})?(\.\d+)?(Z|[+-]\d{2}:?\d{2})?)?$/;const zZ=/^[a-z]+(_[a-z]+)+$/;function $Z(e){return Number.isInteger(e)?e.toLocaleString("en-US"):Number(e.toFixed(2)).toLocaleString("en-US")}const GZ=/^-?\d+(\.\d+)?$/;function qZ(e,t){if("string"!=typeof e||!function(e){return"string"==typeof e&&BZ.test(e)}(t))return null;const n=e.trim();if(!GZ.test(n))return null;const r=Number(n);return Number.isFinite(r)?$Z(r):null}const HZ={color:"#1d4ed8",textDecoration:"underline",overflowWrap:"anywhere"};function VZ(e){const t=w(e);if(!t)return e;let n=0;return t.map(e=>"link"===e.type?j("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",style:HZ,children:e.label},n++):e.value)}const WZ=new Set(T),YZ=e=>N(O(e));function KZ({spec:e,isDark:t=!1,onButtonClick:n}){if(!e||"object"!=typeof e)return null;e={...e,title:A(e.title)};const r=k(e.type);if("revenue-insights"===r)return j(PQ,{spec:e,isDark:t});if("impact-analysis"===r)return j(MQ,{spec:e,isDark:t});if("deviation-analysis"===r)return j(FQ,{spec:e,isDark:t});if("main-drivers"===r)return j(jQ,{spec:e,isDark:t});if("key-observations"===r)return j(UQ,{spec:e,isDark:t});if("recommendations"===r)return j(zQ,{spec:e,isDark:t});if("kpi"===r){const n=e.value??e.amount??e.metric??e.kpi,r=null!=e.delta?Number(e.delta):null,a=e.change??(null!=r&&Number.isFinite(r)?r>=0?`+${r}`:String(r):void 0),i=e.trend??(null!=r&&Number.isFinite(r)?r>0?"up":r<0?"down":"flat":void 0);return j(CZ,{props:{label:e.label||e.title||"",value:null!=n?String(n):"-",change:a,trend:i},isDark:t})}return"table"===r?j(QZ,{spec:e,isDark:t}):WZ.has(r)||Array.isArray(e.data)&&e.data.length>0?j(ZZ,{spec:e,type:r,isDark:t}):"alert"===r?j(JZ,{spec:e,isDark:t}):"card"===r?j(nQ,{spec:e,isDark:t,onButtonClick:n}):"button-group"===r?j(rQ,{spec:e,isDark:t,onButtonClick:n}):"form"===r?j(sQ,{spec:e,isDark:t,onButtonClick:n}):"confirmation"===r?j(lQ,{spec:e,isDark:t,onButtonClick:n}):"verification"===r?j(x,{spec:e,isDark:t,onButtonClick:n}):"menu"===r?j(gQ,{spec:e,isDark:t,onButtonClick:n}):"profile"===r?j(mQ,{spec:e,isDark:t,onButtonClick:n}):"timeline"===r?j(hQ,{spec:e,isDark:t}):"rating"===r?j(bQ,{spec:e,isDark:t}):"comparison"===r?j(yQ,{spec:e,isDark:t,onButtonClick:n}):"gallery"===r?j(vQ,{spec:e,isDark:t}):Array.isArray(e.data)&&e.data.length>0?j(ZZ,{spec:e,type:"bar",isDark:t}):null}const XZ=e=>({border:e?"1px solid #374151":"1px solid #e5e7eb",background:e?"#1f2937":"#ffffff",borderRadius:8,padding:12,margin:"8px 0",fontSize:13,color:e?"#f3f4f6":"#111827"});function ZZ({spec:e,type:t,isDark:n}){const r=function(e){const t=Array.isArray(e.ys)?e.ys.filter(e=>"string"==typeof e&&e):[],n=Array.isArray(e.data)?e.data.find(e=>e&&"object"==typeof e):null,r=n?[...new Set(t)].filter(e=>Object.prototype.hasOwnProperty.call(n,e)):[];if(r.length<2)return[];const a=e.names&&"object"==typeof e.names?e.names:{};return r.map((e,t)=>({key:e,dataKey:`s${t}`,name:"string"==typeof a[e]&&a[e].trim()?a[e].trim():FZ(e)}))}(e),{x:a,y:i}=function(e,t,n){if(!Array.isArray(e)||0===e.length)return{x:"name",y:"value"};const r=e[0]||{};if(t&&Object.prototype.hasOwnProperty.call(r,t)&&n&&Object.prototype.hasOwnProperty.call(r,n))return{x:t,y:n};let a=t||null,i=n||null;for(const e of Object.keys(r)){const t=r[e];null!=a||"string"!=typeof t&&null!=t||(a=e),null==i&&"number"==typeof t&&Number.isFinite(t)&&(i=e)}return{x:a||"name",y:i||"value"}}(e.data,e.x,r.length>0?r[0].key:e.y),o=String(t||"").trim().toLowerCase(),s=r.length>0&&"pie"!==o&&"donut"!==o,l=s?function(e,t,n){return(e||[]).filter(e=>e&&"object"==typeof e).map(e=>{const r={label:AQ(e[t],t)};for(const t of n){const n=null==e[t.key]?NaN:Number(e[t.key]);r[t.dataKey]=Number.isFinite(n)?n:null}return r}).filter(e=>n.some(t=>null!==e[t.dataKey]))}(e.data,a,r):function(e,t,n){return(e||[]).map(e=>{const r=e?.[t];return{label:AQ(r,t),value:Number(e?.[n])}}).filter(e=>Number.isFinite(e.value))}(e.data,a,i),c={title:e.title,data:l,unit:e.unit,xAxisLabel:e.xAxisLabel,yAxisLabel:e.yAxisLabel,yKey:i,valueLabel:FZ(i),currency:e.currency,series:s?r:void 0};return"pie"===o?j(PZ,{props:c,isDark:n,donut:!1}):"donut"===o?j(PZ,{props:c,isDark:n,donut:!0}):"line"===o?j(LZ,{props:c,isDark:n,area:!1}):"area"===o?j(LZ,{props:c,isDark:n,area:!0}):j(RZ,{props:c,isDark:n})}function QZ({spec:e,isDark:t}){const n=Array.isArray(e.columns)&&e.columns.length>0?e.columns:Array.isArray(e.data)&&e.data[0]?Object.keys(e.data[0]):[],r=Array.isArray(e.data)?e.data:Array.isArray(e.rows)?e.rows:[];if(0===n.length||0===r.length)return j("div",{style:XZ(t),children:j("div",{style:{color:t?"#9ca3af":"#6b7280",fontSize:12},children:"Empty table"})});const a=t?"1px solid #374151":"1px solid #e5e7eb";return F("div",{style:XZ(t),children:[e.title&&j("div",{style:{fontWeight:600,marginBottom:8},children:e.title}),j("div",{style:{overflowX:"auto"},children:F("table",{style:{borderCollapse:"collapse",width:"100%",fontSize:12},children:[j("thead",{children:j("tr",{children:n.map(e=>j("th",{style:{border:a,padding:"6px 8px",background:"transparent",textAlign:"left",fontWeight:600},children:FZ(e)},e))})}),j("tbody",{children:r.map((e,t)=>j("tr",{children:n.map((t,n)=>j("td",{style:{border:a,padding:"6px 8px"},children:Array.isArray(e)?kQ(e[n],t):e&&"object"==typeof e?kQ(e[t],t):""},t))},t))})]})})]})}function JZ({spec:e,isDark:t}){const n=String(e.level||"info").toLowerCase(),r={info:{bg:t?"hsl(204 33% 14%)":"hsl(204 100% 97%)",border:t?"hsl(199 89% 58%)":"hsl(199 89% 48%)",text:t?"#bae6fd":"#0c4a6e"},warn:{bg:t?"hsl(36 33% 14%)":"hsl(34 100% 95%)",border:t?"hsl(38 92% 60%)":"hsl(35 100% 50%)",text:t?"#fde68a":"#663c00"},error:{bg:t?"hsl(356 33% 16%)":"hsl(356 100% 97%)",border:t?"hsl(350 89% 65%)":"hsl(350 89% 60%)",text:t?"#fecdd3":"#9f1239"},success:{bg:t?"hsl(152 36% 14%)":"hsl(152 81% 96%)",border:t?"hsl(158 64% 52%)":"hsl(160 84% 39%)",text:t?"#a7f3d0":"#065f46"}};r.warning=r.warn;const a=r[n]||r.info;return F("div",{style:{...XZ(t),background:a.bg,borderLeft:`4px solid ${a.border}`,color:a.text},children:[e.title&&j("div",{style:{fontWeight:600,marginBottom:4},children:e.title}),e.body&&j("div",{style:{fontSize:12,lineHeight:1.6,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:VZ(String(e.body))})]})}const eQ=e=>({success:{bg:e?"hsl(152 36% 14%)":"hsl(152 81% 96%)",fg:e?"hsl(158 64% 52%)":"hsl(160 84% 39%)"},warn:{bg:e?"hsl(36 33% 14%)":"hsl(34 100% 95%)",fg:e?"hsl(38 92% 60%)":"hsl(35 100% 50%)"},error:{bg:e?"hsl(356 33% 16%)":"hsl(356 100% 97%)",fg:e?"hsl(350 89% 65%)":"hsl(350 89% 60%)"},info:{bg:e?"hsl(204 33% 14%)":"hsl(204 100% 97%)",fg:e?"hsl(199 89% 58%)":"hsl(199 89% 48%)"}}),tQ={calendar:z,ticket:V,check:$};function nQ({spec:e,isDark:n,onButtonClick:r}){const a=Array.isArray(e.fields)?e.fields:[],i=Array.isArray(e.actions)?e.actions:[],o=e.status,s=e.icon?tQ[e.icon]:null,[l,c]=t.useState(!1),u=String(e.body||"").trim(),d=String(e.details||"").trim(),p=u.length>0&&d.length>u.length+2,f=YZ(e.image),g=o&&o.label?eQ(n)[o.variant||"success"]:null;return F("div",{style:{...XZ(n),minWidth:0,overflow:"hidden"},children:[f&&j("img",{src:f,alt:e.title||"",referrerPolicy:"no-referrer",onError:e=>{e.currentTarget.style.display="none"},style:{display:"block",margin:"-12px -12px 12px",width:"calc(100% + 24px)",height:140,objectFit:"contain",background:n?"rgba(31,41,55,0.4)":"#f9fafb"}}),(e.title||g)&&F("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,marginBottom:8},children:[F("div",{style:{display:"flex",alignItems:"center",gap:6,minWidth:0},children:[s&&j(s,{size:14,style:{flexShrink:0,color:n?"#60a5fa":cQ}}),e.title&&j("div",{style:{fontWeight:600,minWidth:0,overflowWrap:"anywhere"},children:e.title})]}),g&&j("span",{style:{flexShrink:0,borderRadius:999,padding:"1px 8px",fontSize:10,fontWeight:500,background:g.bg,color:g.fg},children:o.label})]}),(u||d)&&F("div",{children:[j("div",{style:{fontSize:12,lineHeight:1.6,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:VZ(l?d||u:u||d)}),p&&j("button",{type:"button",onClick:()=>c(e=>!e),style:{marginTop:4,padding:0,border:"none",background:"none",fontSize:11,fontWeight:500,color:n?"#60a5fa":cQ,cursor:"pointer"},children:l?"Show less":"Show more"})]}),a.length>0&&j("div",{style:{display:"grid",gridTemplateColumns:"auto 1fr",columnGap:12,rowGap:6,marginTop:u||d?12:0},children:a.map((e,r)=>F(t.Fragment,{children:[j("div",{style:{fontSize:11,fontWeight:500,color:n?"#9ca3af":"#6b7280",whiteSpace:"nowrap"},children:e.label}),j("div",{style:{fontSize:12,minWidth:0,wordBreak:"break-word"},children:"string"==typeof e.value?VZ(e.value):e.value})]},r))}),i.length>0&&j("div",{style:{display:"flex",flexWrap:"wrap",gap:8,marginTop:12},children:i.map((e,t)=>{const a="secondary"!==e.variant,i={display:"inline-flex",alignItems:"center",padding:"6px 12px",borderRadius:6,fontSize:11,fontWeight:500,textDecoration:"none",border:"1px solid "+(a?cQ:n?"#4b5563":"#d1d5db"),background:a?cQ:n?"#1f2937":"#ffffff",color:a?"#ffffff":n?"#e5e7eb":"#374151"},o=O(e.url);if(o)return j("a",{href:o,target:"_blank",rel:"noopener noreferrer",style:i,children:e.label},t);const s=e.value||e.label;return j("button",{type:"button",onClick:r?()=>r(String(s??""),String(e.label??"")):void 0,disabled:!r,title:r?void 0:"Action (no handler wired)",style:{...i,cursor:r?"pointer":"default",opacity:r?1:.5},children:e.label},t)})})]})}function rQ({spec:e,isDark:t,onButtonClick:n,sendValue:r=!1}){const a=Array.isArray(e.buttons)?e.buttons:[];return 0===a.length?null:F("div",{style:{margin:"8px 0"},children:[e.title&&j("div",{style:{fontSize:11,color:t?"#9ca3af":"#6b7280",textTransform:"uppercase",letterSpacing:"0.05em",marginBottom:6},children:e.title}),j("div",{style:{display:"flex",flexWrap:"wrap",gap:6},children:a.map((e,a)=>j("button",{type:"button",onClick:n?()=>n(String((r?e.value:e.label)||e.label||e.value||""),String(e.label||e.value||"")):void 0,disabled:!n,style:{border:"1px solid "+(t?"#374151":"#d1d5db"),background:t?"#1f2937":"#ffffff",color:t?"#f3f4f6":"#111827",padding:"6px 12px",borderRadius:6,fontSize:12,cursor:n?"pointer":"default",opacity:n?1:.6},children:String(e.label||e.value||"")},a))})]})}function aQ(e,t){const n=null==t||"string"==typeof t&&""===t.trim();if(e.required&&n)return`${e.label} is required`;if(n)return null;if("email"===e.type&&"string"==typeof t&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t))return`${e.label} must be a valid email`;if("url"===e.type&&"string"==typeof t)try{new URL(t)}catch{return`${e.label} must be a valid URL`}if("number"===e.type&&"string"==typeof t&&""!==t){const n=Number(t);if(!Number.isFinite(n))return`${e.label} must be a number`;if("number"==typeof e.min&&n<e.min)return`${e.label} must be ≥ ${e.min}`;if("number"==typeof e.max&&n>e.max)return`${e.label} must be ≤ ${e.max}`}if("string"==typeof t){if(null!=e.minLength&&t.length<e.minLength)return`${e.label} must be at least ${e.minLength} characters`;if(null!=e.maxLength&&t.length>e.maxLength)return`${e.label} must be at most ${e.maxLength} characters`;if(e.pattern)try{if(!new RegExp(e.pattern).test(t))return`${e.label} format is invalid`}catch{}}return null}const iQ=new Set(["text","email","tel","url","date","time"]);function oQ({field:e,value:t,error:n,onChange:r,isDark:a,autoId:i}){const o={width:"100%",boxSizing:"border-box",border:"1px solid "+(a?n?"#f87171":"#374151":n?"#ef4444":"#d1d5db"),background:a?"#111827":"#ffffff",color:a?"#f3f4f6":"#111827",borderRadius:6,padding:"6px 8px",fontSize:12},s={display:"block",fontSize:12,fontWeight:600,marginBottom:4};if("hidden"===e.type)return null;if("checkbox"===e.type)return F("div",{style:{marginBottom:10},children:[F("label",{style:{display:"flex",alignItems:"center",gap:6,fontSize:12},children:[j("input",{id:i,type:"checkbox",checked:Boolean(t),onChange:e=>r(e.target.checked)}),e.label,e.required?" *":""]}),n&&j("div",{style:{fontSize:11,color:"#ef4444",marginTop:2},children:n})]});if("select"===e.type){const a=Array.isArray(e.options)?e.options:[];return F("div",{style:{marginBottom:10},children:[F("label",{htmlFor:i,style:s,children:[e.label,e.required?" *":""]}),F("select",{id:i,style:o,value:t??"",onChange:e=>r(e.target.value),children:[j("option",{value:"",disabled:!0,children:e.placeholder||"Select…"}),a.map(e=>j("option",{value:e.value,children:e.label},e.value))]}),n&&j("div",{style:{fontSize:11,color:"#ef4444",marginTop:2},children:n})]})}if("radio"===e.type){const a=Array.isArray(e.options)?e.options:[];return F("div",{style:{marginBottom:10},role:"radiogroup","aria-labelledby":`${i}-label`,children:[F("div",{id:`${i}-label`,style:s,children:[e.label,e.required?" *":""]}),a.map(e=>F("label",{style:{display:"flex",alignItems:"center",gap:6,fontSize:12,marginBottom:2},children:[j("input",{type:"radio",name:i,checked:t===e.value,onChange:()=>r(e.value)}),e.label]},e.value)),n&&j("div",{style:{fontSize:11,color:"#ef4444",marginTop:2},children:n})]})}if("textarea"===e.type)return F("div",{style:{marginBottom:10},children:[F("label",{htmlFor:i,style:s,children:[e.label,e.required?" *":""]}),j("textarea",{id:i,style:{...o,minHeight:60,resize:"vertical"},value:t??"",placeholder:e.placeholder,onChange:e=>r(e.target.value)}),n&&j("div",{style:{fontSize:11,color:"#ef4444",marginTop:2},children:n})]});const l=iQ.has(e.type)?e.type:"number"===e.type?"number":"text";return F("div",{style:{marginBottom:10},children:[F("label",{htmlFor:i,style:s,children:[e.label,e.required?" *":""]}),j("input",{id:i,type:l,style:o,value:t??"",placeholder:e.placeholder,onChange:e=>r(e.target.value)}),e.helpText&&!n&&j("div",{style:{fontSize:11,color:a?"#9ca3af":"#6b7280",marginTop:2},children:e.helpText}),n&&j("div",{style:{fontSize:11,color:"#ef4444",marginTop:2},children:n})]})}function sQ({spec:e,isDark:n,onButtonClick:r}){const a=Array.isArray(e.fields)?e.fields:[],i=t.useMemo(()=>{const e={};for(const t of a)void 0!==t.defaultValue?e[t.name]=t.defaultValue:"checkbox"===t.type?e[t.name]=!1:e[t.name]="";return e},[]),[o,s]=t.useState(i),[l,c]=t.useState({}),[u,d]=t.useState(!1),p=void 0!==t.useContext(_);if(0===a.length)return null;return u?F("div",{style:XZ(n),children:[e.title&&j("div",{style:{fontWeight:600,marginBottom:8},children:e.title}),a.filter(e=>"hidden"!==e.type).map((e,t)=>F("div",{style:{marginBottom:4,fontSize:12},children:[F("span",{style:{color:n?"#9ca3af":"#6b7280"},children:[e.label,": "]}),j("span",{children:String(o[e.name]??"")})]},t))]}):F("form",{style:XZ(n),onSubmit:t=>{if(t.preventDefault(),u||p||!r)return;const n={};let i=!1;for(const e of a){const t=aQ(e,o[e.name]);n[e.name]=t,t&&(i=!0)}if(c(n),i)return;d(!0);let s="";try{s=Object.entries(o).filter(([,e])=>null!=e&&""!==String(e)).map(([e,t])=>`${function(e){return String(e).replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[_-]/g," ").replace(/\b\w/g,e=>e.toUpperCase())}(e)}: ${t}`).join("\n")||"Form submitted"}catch{s="Form submitted"}r(s,e.title||"Form")},noValidate:!0,children:[e.title&&j("div",{style:{fontWeight:600,marginBottom:4},children:e.title}),e.description&&j("div",{style:{fontSize:12,color:n?"#9ca3af":"#6b7280",marginBottom:8},children:e.description}),a.map((e,t)=>j(oQ,{field:e,value:o[e.name],error:l[e.name],onChange:t=>((e,t)=>{s(n=>({...n,[e]:t})),c(t=>t[e]?{...t,[e]:null}:t)})(e.name,t),isDark:n,autoId:`a2ui-form-${e.name||t}`},e.name||t)),j("button",{type:"submit",disabled:!r||p,style:{border:"1px solid "+(n?"#374151":"#d1d5db"),background:r&&!p?"#2563eb":n?"#1f2937":"#f3f4f6",color:r&&!p?"#ffffff":n?"#6b7280":"#9ca3af",padding:"6px 14px",borderRadius:6,fontSize:12,cursor:r&&!p?"pointer":"default"},children:p?"Submitted":e.submitLabel||"Submit"})]})}function lQ({spec:e,isDark:n,onButtonClick:r}){const a=Array.isArray(e.choices)&&e.choices.length>0?e.choices:[e.yes||{label:"Yes",value:"yes"},e.no||{label:"No",value:"no"}],i=t.useContext(_),[o,s]=t.useState(null),l=t.useRef(!1),c=o??I(a,i),u=null!==c||void 0!==i,d=u?a.map(e=>String(e?.value??e?.label??"")===c?{...e,label:`${String(e.label??e.value??"")} ✓`}:e):a,p=r?(t,n)=>{if(l.current||u)return;l.current=!0,s(String(t));const i=a.find(e=>String(e?.value||e?.label||"")===String(t)),o=R(e,i);o?r(t,n,{toolConfirmation:o}):r(t,n)}:void 0;return F("div",{style:XZ(n),children:[e.title&&j("div",{style:{fontWeight:600,marginBottom:6},children:e.title}),e.body&&j("div",{style:{fontSize:12,lineHeight:1.6,marginBottom:8,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:VZ(String(e.body))}),j(rQ,{spec:{buttons:d},isDark:n,onButtonClick:u?void 0:p,sendValue:!0})]})}const cQ="#2563eb";function uQ(e){return{display:"inline-flex",alignItems:"center",borderRadius:999,padding:"2px 8px",fontSize:10,fontWeight:600,background:e?"rgba(37,99,235,0.20)":"#eff6ff",color:e?"#93c5fd":"#1d4ed8"}}function dQ(e,t){return{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"6px 12px",borderRadius:6,fontSize:12,fontWeight:600,border:"none",background:cQ,color:"#ffffff",cursor:t?"default":"pointer",opacity:t?.5:1}}function pQ(e,t){return{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"6px 12px",borderRadius:6,fontSize:12,fontWeight:600,border:"1px solid "+(e?"#374151":"#d1d5db"),background:e?"#1f2937":"#ffffff",color:e?"#f3f4f6":"#111827",textDecoration:"none",cursor:t?"default":"pointer",opacity:t?.5:1}}function fQ({score:e,maxScore:t=5,size:n=14,isDark:r}){const a=[];for(let i=0;i<t;i+=1){const t=e>=i+1,o=!t&&e>i&&e<i+1;a.push(F("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:t?"#fbbf24":o?`url(#a2ui-half-star-${i})`:"none",stroke:t||o?"#fbbf24":r?"#4b5563":"#d1d5db",strokeWidth:"1.5",children:[o&&j("defs",{children:F("linearGradient",{id:`a2ui-half-star-${i}`,children:[j("stop",{offset:"50%",stopColor:"#fbbf24"}),j("stop",{offset:"50%",stopColor:"transparent"})]})}),j("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})]},i))}return j("div",{style:{display:"flex",alignItems:"center",gap:1},children:a})}function gQ({spec:e,isDark:t,onButtonClick:n}){const r=Array.isArray(e.items)?e.items:[];if(0===r.length)return null;const a=t?"1px solid #374151":"1px solid #e5e7eb",i=t?"#9ca3af":"#6b7280";return F("div",{style:{margin:"8px 0"},children:[(e.title||e.subtitle)&&F("div",{style:{marginBottom:8},children:[e.title&&j("div",{style:{fontSize:13,fontWeight:700},children:e.title}),e.subtitle&&j("div",{style:{fontSize:11,color:i},children:e.subtitle})]}),j("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:10},children:r.map((e,r)=>F("div",{style:{border:a,borderRadius:10,overflow:"hidden",background:t?"#1f2937":"#ffffff",display:"flex",flexDirection:"column"},children:[YZ(e.image)&&j("img",{src:YZ(e.image),alt:e.name||"",referrerPolicy:"no-referrer",onError:e=>{e.currentTarget.style.display="none"},style:{height:96,width:"100%",objectFit:"cover",background:t?"#111827":"#f9fafb"}}),F("div",{style:{padding:10,display:"flex",flexDirection:"column",gap:6,flex:1},children:[F("div",{style:{display:"flex",justifyContent:"space-between",gap:6,alignItems:"flex-start"},children:[j("div",{style:{fontSize:12,fontWeight:700,minWidth:0},children:e.name}),e.price&&j("div",{style:{fontSize:12,fontWeight:700,color:cQ,flexShrink:0},children:e.price})]}),e.description&&j("div",{style:{fontSize:11,color:i,lineHeight:1.4},children:e.description}),Array.isArray(e.tags)&&e.tags.length>0&&j("div",{style:{display:"flex",flexWrap:"wrap",gap:4},children:e.tags.map((e,n)=>j("span",{style:uQ(t),children:e},n))}),j("div",{style:{flex:1}}),e.actionLabel&&j("button",{type:"button",onClick:n?()=>n(String(e.value??e.actionLabel),String(e.actionLabel)):void 0,disabled:!n,style:{...dQ(0,!n),alignSelf:"flex-start",marginTop:4},children:e.actionLabel})]})]},r))})]})}function mQ({spec:e,isDark:t,onButtonClick:n}){const r=Array.isArray(e.tags)?e.tags:[],a=Array.isArray(e.actions)?e.actions:[],i=t?"#9ca3af":"#6b7280";return F("div",{style:XZ(t),children:[F("div",{style:{display:"flex",gap:10,alignItems:"flex-start"},children:[j("div",{style:{flexShrink:0,height:44,width:44,borderRadius:"50%",overflow:"hidden",background:t?"rgba(37,99,235,0.20)":"#eff6ff",color:t?"#93c5fd":cQ,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700,fontSize:16},children:YZ(e.avatar)?j("img",{src:YZ(e.avatar),alt:e.name||"",referrerPolicy:"no-referrer",onError:e=>{e.currentTarget.style.display="none"},style:{height:"100%",width:"100%",objectFit:"cover"}}):String(e.name||"").charAt(0).toUpperCase()}),F("div",{style:{minWidth:0,flex:1},children:[j("div",{style:{fontSize:13,fontWeight:700},children:e.name}),e.role&&j("div",{style:{fontSize:11,color:i},children:e.role}),"number"==typeof e.rating&&F("div",{style:{marginTop:4,display:"flex",alignItems:"center",gap:6},children:[j(fQ,{score:e.rating,size:11,isDark:t}),F("span",{style:{fontSize:10,color:i},children:[e.rating.toFixed(1),"number"==typeof e.reviewCount?` (${e.reviewCount})`:""]})]})]})]}),r.length>0&&j("div",{style:{display:"flex",flexWrap:"wrap",gap:4,marginTop:8},children:r.map((e,n)=>j("span",{style:uQ(t),children:e},n))}),e.bio&&j("div",{style:{marginTop:8,fontSize:12,lineHeight:1.5},children:e.bio}),a.length>0&&j("div",{style:{display:"flex",flexWrap:"wrap",gap:6,marginTop:10},children:a.map((e,r)=>{const a="secondary"!==e.variant,i=O(e.url);if(i)return j("a",{href:i,target:"_blank",rel:"noopener noreferrer",style:pQ(t,!1),children:e.label},r);const o=e.value||e.label;return j("button",{type:"button",onClick:n?()=>n(String(o),String(e.label)):void 0,disabled:!n,style:a?dQ(0,!n):pQ(t,!n),children:e.label},r)})})]})}function hQ({spec:e,isDark:t}){const n=Array.isArray(e.steps)?e.steps:[];if(0===n.length)return null;const r=t?"#374151":"#e5e7eb",a=t?"#6b7280":"#9ca3af",i=e=>"done"===e?{background:"#10b981",border:"2px solid #10b981"}:"active"===e?{background:cQ,border:`2px solid ${cQ}`,boxShadow:t?"0 0 0 4px rgba(37,99,235,0.25)":"0 0 0 4px #dbeafe"}:{background:t?"#1f2937":"#ffffff",border:"2px solid "+(t?"#4b5563":"#d1d5db")};return F("div",{style:XZ(t),children:[e.title&&j("div",{style:{fontWeight:700,fontSize:13,marginBottom:10},children:e.title}),j("div",{children:n.map((e,o)=>{const s=e.status||(0===o?"done":"pending"),l=o===n.length-1;return F("div",{style:{display:"flex",gap:10},children:[F("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[j("div",{style:{height:12,width:12,borderRadius:"50%",flexShrink:0,...i(s)}}),!l&&j("div",{style:{width:1,flex:1,background:r,minHeight:16,margin:"2px 0"}})]}),F("div",{style:{minWidth:0,flex:1,paddingBottom:l?0:12},children:[F("div",{style:{display:"flex",justifyContent:"space-between",gap:6},children:[j("span",{style:{fontSize:12,fontWeight:600,color:"pending"===s?a:t?"#f3f4f6":"#111827"},children:e.label}),e.timestamp&&j("span",{style:{fontSize:10,color:a,flexShrink:0},children:e.timestamp})]}),e.description&&j("div",{style:{fontSize:11,color:t?"#9ca3af":"#6b7280",marginTop:2},children:e.description})]})]},o)})})]})}function bQ({spec:e,isDark:t}){const n=e.maxScore||5,r=t?"#9ca3af":"#6b7280";return F("div",{style:XZ(t),children:[e.title&&j("div",{style:{fontSize:11,textTransform:"uppercase",letterSpacing:"0.05em",color:r,marginBottom:4},children:e.title}),F("div",{style:{display:"flex",alignItems:"center",gap:8},children:[j("span",{style:{fontSize:22,fontWeight:700},children:Number(e.score).toFixed(1)}),j(fQ,{score:e.score,maxScore:n,size:15,isDark:t}),"number"==typeof e.reviewCount&&F("span",{style:{fontSize:11,color:r},children:["(",e.reviewCount," review",1===e.reviewCount?"":"s",")"]})]}),e.review&&F("div",{style:{marginTop:8,borderLeft:"2px solid "+(t?"#1e40af":"#bfdbfe"),paddingLeft:10,fontSize:12,fontStyle:"italic",color:t?"#d1d5db":"#374151",lineHeight:1.5},children:['"',e.review,'"',e.author&&F("div",{style:{marginTop:4,fontStyle:"normal",fontSize:10,color:r},children:["- ",e.author]})]})]})}function yQ({spec:e,isDark:t,onButtonClick:n}){const r=Array.isArray(e.plans)?e.plans:[];if(0===r.length)return null;const a=t?"#9ca3af":"#6b7280";return F("div",{style:{margin:"8px 0"},children:[e.title&&j("div",{style:{fontWeight:700,fontSize:13,marginBottom:8},children:e.title}),j("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(150px, 1fr))",gap:10},children:r.map((e,r)=>F("div",{style:{border:e.highlight?`1px solid ${cQ}`:"1px solid "+(t?"#374151":"#e5e7eb"),background:e.highlight?t?"rgba(37,99,235,0.10)":"#eff6ff":t?"#1f2937":"#ffffff",borderRadius:10,padding:12,display:"flex",flexDirection:"column"},children:[e.highlight&&j("span",{style:{alignSelf:"flex-start",marginBottom:6,background:cQ,color:"#ffffff",fontSize:9,fontWeight:700,padding:"2px 7px",borderRadius:999},children:"Recommended"}),j("div",{style:{fontSize:13,fontWeight:700},children:e.name}),e.price&&F("div",{style:{marginTop:2,display:"flex",alignItems:"baseline",gap:3},children:[j("span",{style:{fontSize:18,fontWeight:700},children:e.price}),e.period&&F("span",{style:{fontSize:11,color:a},children:["/",e.period]})]}),Array.isArray(e.features)&&e.features.length>0&&j("ul",{style:{listStyle:"none",padding:0,margin:"8px 0 0",display:"flex",flexDirection:"column",gap:6,flex:1},children:e.features.map((e,n)=>F("li",{style:{display:"flex",gap:6,alignItems:"flex-start",fontSize:11,color:t?"#d1d5db":"#374151"},children:[j("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#10b981",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",style:{marginTop:2,flexShrink:0},children:j("polyline",{points:"20 6 9 17 4 12"})}),j("span",{children:e})]},n))}),e.actionLabel&&j("button",{type:"button",onClick:n?()=>n(String(e.value??e.actionLabel),String(e.actionLabel)):void 0,disabled:!n,style:{...e.highlight?dQ(0,!n):pQ(t,!n),marginTop:10},children:e.actionLabel})]},r))})]})}function vQ({spec:e,isDark:t}){const n=Array.isArray(e.images)?e.images:[];if(0===n.length)return null;const r=t?"#9ca3af":"#6b7280";return F("div",{style:{margin:"8px 0"},children:[e.title&&j("div",{style:{fontWeight:700,fontSize:13,marginBottom:8},children:e.title}),j("div",{className:"slim-scrollbar-x",style:{display:"flex",gap:8,overflowX:"auto",paddingBottom:4},children:n.map((e,n)=>{return F("figure",{style:{flexShrink:0,width:140,margin:0,borderRadius:8,overflow:"hidden",border:"1px solid "+(t?"#374151":"#e5e7eb"),background:t?"#111827":"#f9fafb"},children:[(a=e.url,!(void 0!==O(a)&&void 0===YZ(a))&&j("img",{src:YZ(e.url),alt:e.caption||`Image ${n+1}`,referrerPolicy:"no-referrer",onError:e=>{e.currentTarget.style.display="none"},style:{height:96,width:"100%",objectFit:"cover"}})),e.caption&&j("figcaption",{style:{padding:"5px 8px",fontSize:10,color:r,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.caption})]},n);var a})})]})}const EQ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],SQ=/(^|[_\W])month/i,wQ=/^(\d{4})-(\d{2})(?:-\d{2})?(?:[T\s]|$)/;function AQ(e,t){if("string"==typeof t&&SQ.test(t)){const t="number"==typeof e?e:Number(e);if(Number.isInteger(t)&&t>=1&&t<=12)return EQ[t-1]}const n=function(e){if("string"!=typeof e)return null;const t=e.match(wQ);if(!t)return null;const n=parseInt(t[1],10),r=parseInt(t[2],10);return!Number.isInteger(r)||r<1||r>12?null:`${EQ[r-1]} '${String(n).slice(-2)}`}(e);return n||FZ(e)}function kQ(e,t){if(null==e)return"";if("number"==typeof e)return $Z(e);if("object"==typeof e)return JSON.stringify(e);const n=String(e).trim(),r=function(e){if("string"!=typeof e)return null;const t=e.trim();if(!UZ.test(t))return null;const n=/[T ]\d{2}:\d{2}/.test(t),r=/(Z|[+-]\d{2}:?\d{2})$/.test(t),a=n&&!r?t.replace(" ","T")+"Z":t,i=new Date(a);if(isNaN(i.getTime()))return null;const o=n&&(0!==i.getUTCHours()||0!==i.getUTCMinutes()||0!==i.getUTCSeconds()),s=MZ[i.getUTCMonth()]+" "+i.getUTCDate()+", "+i.getUTCFullYear();if(!o)return s;const l=i.getUTCHours(),c=l>=12?"PM":"AM";return s+", "+(l%12||12)+":"+String(i.getUTCMinutes()).padStart(2,"0")+" "+c}(n);if(r)return r;const a=qZ(n,t);return null!==a?a:"string"!=typeof(i=e)?String(null==i?"":i):i.length>40?i:zZ.test(i)?FZ(i):i;var i}function xQ({size:e=14}){return F("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[j("polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17"}),j("polyline",{points:"16 7 22 7 22 13"})]})}function TQ({size:e=14}){return F("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[j("path",{d:"M16 16c0-1.7-2-3-2-3"}),j("path",{d:"M8 16c0-1.7 2-3 2-3"}),j("path",{d:"M7 21h10"}),j("path",{d:"M12 3v18"}),j("path",{d:"m17 7 5 9h-10z"}),j("path",{d:"m7 7-5 9h10z"})]})}function OQ({size:e=14}){return F("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[j("circle",{cx:"5",cy:"6",r:"3"}),j("circle",{cx:"19",cy:"18",r:"3"}),j("path",{d:"M12 6h5a2 2 0 0 1 2 2v7"}),j("path",{d:"M12 18H7a2 2 0 0 1-2-2V9"})]})}function _Q({size:e=14}){return j("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:j("polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"})})}function IQ({size:e=14}){return F("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[j("path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"}),j("path",{d:"M9 18h6"}),j("path",{d:"M10 22h4"})]})}function NQ({size:e=14}){return F("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[j("circle",{cx:"12",cy:"12",r:"10"}),j("circle",{cx:"12",cy:"12",r:"6"}),j("circle",{cx:"12",cy:"12",r:"2"})]})}function RQ({type:e,icon:t,title:n,count:r,isDark:a,children:i}){const{accent:o,iconBg:s,iconFg:l}=function(e,t){const n={"revenue-insights":t?["#10b981","#064e3b","#a7f3d0"]:["#10b981","#ecfdf5","#065f46"],"impact-analysis":t?["#f59e0b","#78350f","#fde68a"]:["#f59e0b","#fef3c7","#92400e"],"deviation-analysis":t?["#3b82f6","#1e3a8a","#bfdbfe"]:["#3b82f6","#dbeafe","#1e40af"],"main-drivers":t?["#8b5cf6","#4c1d95","#ddd6fe"]:["#8b5cf6","#ede9fe","#5b21b6"],"key-observations":t?["#059669","#064e3b","#a7f3d0"]:["#059669","#f0fdf4","#14532d"],recommendations:t?["#818cf8","#312e81","#c7d2fe"]:["#4f46e5","#eef2ff","#4f46e5"]},[r,a,i]=n[e]||["#64748b","#f1f5f9","#475569"];return{accent:r,iconBg:a,iconFg:i}}(e,a),c=a?"1px solid #374151":"1px solid #e5e7eb";return F("div",{style:{background:a?"#1f2937":"#ffffff",border:c,borderRadius:12,overflow:"hidden",margin:"8px 0",color:a?"#f3f4f6":"#0f172a"},children:[j("div",{style:{height:4,background:o}}),F("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"12px 14px 10px",borderBottom:c},children:[F("div",{style:{display:"flex",alignItems:"center",gap:8,fontSize:13,fontWeight:700},children:[j("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:22,height:22,borderRadius:6,background:s,color:l},children:t}),n]}),null!=r&&j("div",{style:{fontSize:11,color:a?"#9ca3af":"#64748b",fontVariantNumeric:"tabular-nums"},children:r})]}),j("div",{style:{padding:"12px 14px 14px",fontSize:13,lineHeight:1.55},children:i})]})}function CQ({delta:e,isDark:t}){if(!e)return null;const n=function(e){const t=String(e||"").trim();return t?t.startsWith("+")?"up":t.startsWith("-")||t.startsWith("−")?"dn":"flat":"flat"}(e),r=(t?{up:{bg:"#064e3b",fg:"#a7f3d0"},dn:{bg:"#7f1d1d",fg:"#fecaca"},flat:{bg:"#1f2937",fg:"#9ca3af"}}:{up:{bg:"#dcfce7",fg:"#166534"},dn:{bg:"#fee2e2",fg:"#991b1b"},flat:{bg:"#f1f5f9",fg:"#64748b"}})[n];return j("span",{style:{fontSize:9,fontWeight:600,padding:"1px 5px",borderRadius:3,marginLeft:4,background:r.bg,color:r.fg},children:e})}function DQ({items:e,isDark:t}){if(!e||!e.length)return null;const n=t?"1px solid #374151":"1px solid #e5e7eb",r=t?"#9ca3af":"#64748b",a=t?"#f3f4f6":"#0f172a",i=t?"#111827":"#f8fafc";return j("div",{style:{display:"flex",flexWrap:"wrap",gap:6,marginTop:4},children:e.map((e,o)=>F("span",{style:{display:"inline-flex",alignItems:"baseline",gap:4,fontSize:11,lineHeight:1,padding:"5px 8px",borderRadius:6,background:i,border:n},children:[e.label&&F("span",{style:{color:r},children:[e.label,":"]}),j("span",{style:{fontWeight:700,color:a,fontVariantNumeric:"tabular-nums"},children:e.value}),j(CQ,{delta:e.delta,isDark:t})]},o))})}function PQ({spec:e,isDark:t}){const n=Array.isArray(e.totals)?e.totals:[],r=t?"#9ca3af":"#64748b";return F(RQ,{type:"revenue-insights",icon:j(xQ,{}),title:e.title||"Revenue insights",count:null,isDark:t,children:[e.headline&&j("div",{style:{fontSize:18,fontWeight:700,marginBottom:4},children:e.headline}),e.narrative&&j("div",{style:{color:r,marginBottom:n.length?8:0},children:e.narrative}),n.length>0&&j("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(140px, 1fr))",gap:8,marginTop:8},children:n.map((e,n)=>F("div",{style:{background:t?"#111827":"#f8fafc",border:t?"1px solid #374151":"1px solid #e5e7eb",borderRadius:8,padding:"8px 10px"},children:[j("div",{style:{fontSize:11,color:r},children:e.label}),F("div",{style:{fontSize:16,fontWeight:700,fontVariantNumeric:"tabular-nums"},children:[e.value,j(CQ,{delta:e.delta,isDark:t})]})]},n))})]})}function LQ({items:e,sentiment:t,isDark:n}){if(!e||0===e.length)return null;const r="positive"===t?{bg:n?"rgba(16,185,129,0.10)":"#f0fdf4",bd:n?"rgba(52,211,153,0.30)":"#bbf7d0",tx:n?"#a7f3d0":"#14532d",dot:n?"#34d399":"#10b981"}:"negative"===t?{bg:n?"rgba(239,68,68,0.10)":"#fef2f2",bd:n?"rgba(248,113,113,0.30)":"#fecaca",tx:n?"#fecaca":"#7f1d1d",dot:n?"#f87171":"#ef4444"}:{bg:n?"#111827":"#f8fafc",bd:n?"#374151":"#e2e8f0",tx:n?"#f3f4f6":"#0f172a",dot:n?"#9ca3af":"#94a3b8"};return F("div",{children:[j("div",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.4px",color:n?"#9ca3af":"#64748b",margin:"10px 0 6px"},children:"positive"===t?"Positive impact":"negative"===t?"Negative impact":"Neutral"}),e.map((e,t)=>F("div",{style:{background:r.bg,border:`1px solid ${r.bd}`,borderRadius:8,padding:"8px 10px",margin:"4px 0",color:r.tx},children:[F("div",{style:{fontWeight:700,display:"block",marginBottom:2},children:[j("span",{style:{display:"inline-block",width:7,height:7,borderRadius:"50%",background:r.dot,marginRight:6,verticalAlign:"middle"}}),e.title]}),j("div",{children:e.description}),j(DQ,{items:e.metrics,isDark:n})]},t))]})}function MQ({spec:e,isDark:t}){return F(RQ,{type:"impact-analysis",icon:j(TQ,{}),title:e.title||"Impact analysis",count:null,isDark:t,children:[j(LQ,{items:e.positive,sentiment:"positive",isDark:t}),j(LQ,{items:e.negative,sentiment:"negative",isDark:t}),j(LQ,{items:e.neutral,sentiment:"neutral",isDark:t})]})}function FQ({spec:e,isDark:t}){const n=Array.isArray(e.deviations)?e.deviations:[],r=t?"1px solid #374151":"1px solid #e5e7eb",a=t?"#9ca3af":"#64748b",i=t?"#f3f4f6":"#0f172a";return F(RQ,{type:"deviation-analysis",icon:j(OQ,{}),title:e.title||"Deviation analysis",count:null,isDark:t,children:[0===n.length?j("div",{style:{color:a,fontSize:12,padding:"14px 0",textAlign:"center"},children:"No deviations"}):j("div",{style:{overflowX:"auto"},children:F("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:12},children:[j("thead",{children:j("tr",{children:["Segment","Metric","Expected","Actual","Delta"].map(e=>j("th",{style:{padding:"7px 10px",borderBottom:r,textAlign:"left",fontSize:11,color:a,fontWeight:600,textTransform:"uppercase",letterSpacing:"0.3px"},children:e},e))})}),j("tbody",{children:n.map((e,n)=>{return F("tr",{children:[j("td",{style:{padding:"7px 10px",borderBottom:r,color:i},children:e.segment}),j("td",{style:{padding:"7px 10px",borderBottom:r,color:i},children:e.metric}),j("td",{style:{padding:"7px 10px",borderBottom:r,color:i,fontVariantNumeric:"tabular-nums"},children:e.expected}),j("td",{style:{padding:"7px 10px",borderBottom:r,color:i,fontVariantNumeric:"tabular-nums"},children:e.actual}),j("td",{style:{padding:"7px 10px",borderBottom:r,color:(a=e.tone,"up"===a?t?"#34d399":"#15803d":"dn"===a?t?"#f87171":"#b91c1c":t?"#9ca3af":"#64748b"),fontWeight:700,fontVariantNumeric:"tabular-nums"},children:e.delta})]},n);var a})})]})}),e.summary&&j("div",{style:{background:t?"#111827":"#f8fafc",border:r,borderRadius:6,padding:"8px 10px",marginTop:10,fontSize:12,color:i},children:e.summary})]})}function jQ({spec:e,isDark:t}){const n=Array.isArray(e.secondary)?e.secondary:[],r=t?"#9ca3af":"#64748b",a=t?"#9ca3af":"#64748b",i=e.primary;return F(RQ,{type:"main-drivers",icon:j(_Q,{}),title:e.title||"Main drivers",count:null,isDark:t,children:[i&&F("div",{style:{background:t?"rgba(139,92,246,0.10)":"#faf5ff",border:t?"1px solid rgba(167,139,250,0.30)":"1px solid #d8b4fe",borderRadius:8,padding:"10px 12px",marginBottom:n.length?10:0},children:[j("div",{style:{fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.4px",color:t?"#c4b5fd":"#7c3aed",marginBottom:4},children:"Primary driver"}),j("div",{style:{fontWeight:600},children:i.factor}),i.evidence&&j("div",{style:{color:r,fontSize:12,marginTop:4},children:i.evidence}),i.metric&&F("span",{style:{display:"inline-block",marginTop:6,background:t?"rgba(139,92,246,0.20)":"#ede9fe",color:t?"#ddd6fe":"#5b21b6",fontSize:11,fontWeight:600,padding:"2px 7px",borderRadius:6},children:[i.metric.label,": ",i.metric.value]})]}),n.length>0&&F(B,{children:[j("div",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.4px",color:a,margin:"10px 0 6px"},children:"Secondary drivers"}),j("ul",{style:{paddingLeft:20,margin:0},children:n.map((e,t)=>F("li",{style:{marginBottom:6},children:[j("div",{style:{fontWeight:600},children:e.factor}),e.evidence&&j("div",{style:{color:r,fontSize:12,marginTop:2},children:e.evidence})]},t))})]})]})}function BQ({rankBgFg:e,rank:t,chips:n,text:r,narrative:a,metrics:i,impactPill:o,isDark:s}){const l=s?"#9ca3af":"#64748b";return F("div",{style:{display:"flex",gap:10,alignItems:"flex-start",padding:"10px 0",borderBottom:s?"1px dashed #374151":"1px dashed #e5e7eb"},children:[j("div",{style:{flex:"0 0 22px",height:22,width:22,borderRadius:"50%",fontSize:11,fontWeight:700,display:"flex",alignItems:"center",justifyContent:"center",fontVariantNumeric:"tabular-nums",background:e.bg,color:e.fg},children:t}),F("div",{style:{flex:"1 1 auto",minWidth:0,display:"flex",flexDirection:"column",gap:5},children:[n,r&&j("div",{style:{fontSize:13,fontWeight:600},children:r}),a&&j("div",{style:{fontSize:12,color:l},children:a}),j(DQ,{items:i,isDark:s}),o]})]})}function UQ({spec:e,isDark:t}){const n=Array.isArray(e.items)?[...e.items].sort((e,t)=>(e.rank||0)-(t.rank||0)):[],r=t?{bg:"#064e3b",fg:"#a7f3d0"}:{bg:"#f0fdf4",fg:"#14532d"};return j(RQ,{type:"key-observations",icon:j(IQ,{}),title:e.title||"Key observations",count:n.length?`${n.length} item${1===n.length?"":"s"}`:null,isDark:t,children:0===n.length?j("div",{style:{color:t?"#9ca3af":"#64748b",fontSize:12,padding:"14px 0",textAlign:"center"},children:"No observations available."}):n.map((e,n)=>{const a=[];return e.category&&a.push(j("span",{style:$Q("cat",t),children:e.category},"cat")),e.priority&&a.push(j("span",{style:$Q("prio-"+e.priority,t),children:e.priority},"prio")),j(BQ,{rankBgFg:r,rank:e.rank||n+1,chips:a.length?j("div",{style:{display:"flex",flexWrap:"wrap",gap:5},children:a}):null,text:e.text,narrative:e.narrative,metrics:e.metrics,impactPill:null,isDark:t},n)})})}function zQ({spec:e,isDark:t}){const n=Array.isArray(e.items)?[...e.items].sort((e,t)=>(e.rank||0)-(t.rank||0)):[],r=t?{bg:"#312e81",fg:"#c7d2fe"}:{bg:"#4f46e5",fg:"#ffffff"};return j(RQ,{type:"recommendations",icon:j(NQ,{}),title:e.title||"Recommendations",count:n.length?`${n.length} item${1===n.length?"":"s"}`:null,isDark:t,children:0===n.length?j("div",{style:{color:t?"#9ca3af":"#64748b",fontSize:12,padding:"14px 0",textAlign:"center"},children:"No recommendations available."}):n.map((e,n)=>{const a=(e.affected_segments||[]).map((e,n)=>j("span",{style:$Q("seg",t),children:e},n)),i=e.expected_impact?F("span",{style:{alignSelf:"flex-start",display:"inline-flex",alignItems:"center",gap:4,marginTop:2,background:t?"rgba(16,185,129,0.18)":"#dcfce7",color:t?"#a7f3d0":"#166534",fontSize:10,fontWeight:700,padding:"4px 9px",borderRadius:999,border:t?"1px solid rgba(52,211,153,0.30)":"1px solid #bbf7d0"},children:["↑ ",e.expected_impact]}):null;return j(BQ,{rankBgFg:r,rank:e.rank||n+1,chips:a.length?j("div",{style:{display:"flex",flexWrap:"wrap",gap:5},children:a}):null,text:e.action,narrative:e.rationale,metrics:e.metrics,impactPill:i,isDark:t},n)})})}function $Q(e,t){const n={display:"inline-flex",alignItems:"center",fontSize:10,fontWeight:600,lineHeight:1,padding:"3px 7px",borderRadius:999,border:t?"1px solid #374151":"1px solid #e5e7eb",background:t?"#111827":"#f8fafc",color:t?"#9ca3af":"#64748b"};return"cat"===e?{...n,background:t?"rgba(99,102,241,0.20)":"#eef2ff",color:t?"#c7d2fe":"#4f46e5",border:"1px solid transparent"}:"seg"===e?{...n,background:t?"#1f2937":"#f1f5f9",color:t?"#f3f4f6":"#0f172a"}:"prio-high"===e?{...n,background:t?"rgba(239,68,68,0.18)":"#fef2f2",color:t?"#fecaca":"#7f1d1d",border:t?"1px solid rgba(248,113,113,0.30)":"1px solid #fecaca"}:"prio-medium"===e?{...n,background:t?"rgba(99,102,241,0.20)":"#eef2ff",color:t?"#c7d2fe":"#4f46e5",border:"1px solid transparent"}:n}const GQ=/\[([\d०-९][\d०-९\s,]*)\](?!\()/g;function qQ(e){const t=[],n=function(e){return e.replace(/[०-९]/g,function(e){return String(e.charCodeAt(0)-2406)})}(e).split(",");for(let e=0;e<n.length;e+=1){const r=n[e].trim();if(/^\d+$/.test(r)){const e=parseInt(r,10);e>=1&&t.push(e)}}return t}function HQ(e){const t=new Set,n=[];for(let r=0;r<e.length;r+=1){const a=e[r];t.has(a)||(t.add(a),n.push(a))}return n}const VQ=/(\s*)((?:\[[\d०-९][\d०-९\s,]*\](?!\()\s*)+)([.!?])/g;function WQ(e){if(!e)return[];e=function(e){return e.replace(VQ,function(e,t,n,r){return r+" "+n.replace(/\s+$/,"")})}(e);const t=[];let n;for(GQ.lastIndex=0;null!==(n=GQ.exec(e));){const e=qQ(n[1]);0!==e.length&&t.push({start:n.index,end:GQ.lastIndex,indices:e})}if(0===t.length)return[{type:"text",value:e}];const r=[];for(let n=0;n<t.length;n+=1){const a=t[n],i=r.length?r[r.length-1]:null;if(i&&/^\s*$/.test(e.slice(i.end,a.start))){i.end=a.end;for(let e=0;e<a.indices.length;e+=1)i.indices.push(a.indices[e])}else r.push({start:a.start,end:a.end,indices:a.indices.slice()})}const a=[];let i=0;for(let t=0;t<r.length;t+=1){const n=r[t];n.start>i&&a.push({type:"text",value:e.slice(i,n.start)}),a.push({type:"cite",indices:HQ(n.indices)}),i=n.end}return i<e.length&&a.push({type:"text",value:e.slice(i)}),a}function YQ(e,t,n){if(function(e){return"element"===e.type&&("code"===e.tagName||"pre"===e.tagName)}(n))return t+1;const r=WQ(e.value);if(1===r.length&&"text"===r[0].type)return t+1;const a=r.map(function(e,t){if("text"===e.type){return{type:"text",value:t+1<r.length&&"cite"===r[t+1].type?e.value.replace(/[ \t]+$/," "):e.value}}return{type:"element",tagName:"span",properties:{dataEshalCitation:(n=e.indices,n.join(","))},children:[]};var n});return n.children.splice.apply(n.children,[t,1].concat(a)),t+a.length}function KQ(e){const t=e.children;if(!Array.isArray(t))return;let n=0;for(;n<t.length;){const r=t[n];r&&"text"===r.type?n=YQ(r,n,e):(r&&Array.isArray(r.children)&&KQ(r),n+=1)}}function XQ(){return function(e){e&&KQ(e)}}function ZQ(e,t){for(let n=0;n<t.length;n+=1){const r=e[t[n]];if(null!=r)return r}}function QQ(e,t){for(let n=0;n<t.length;n+=1){const r=e[t[n]];if(r)return r}}function JQ(e,t){return function(e){if(!e)return"";try{return decodeURIComponent(String(e))}catch(t){return String(e)}}(e.source_name)||e.url||e.source_type||"Source "+t}const eJ=["source_id"],tJ=["source_id","sourceid"];function nJ(e){return function(e,t){if(!e)return!1;const n=e.url;return"file"===e.source_type||"string"==typeof n&&-1!==n.indexOf("/api/v1/sharepoint/file/")||!!QQ(e,t)&&!n}(e,eJ)}function rJ(e){return n=tJ,(t=e).url||QQ(t,n)||t.source_name||"";var t,n}function aJ({indices:e}){const t=g(C),n=o(null),r=o(null),[a,i]=l(!1),[s,c]=l(null),p=d(()=>t&&Array.isArray(t.sources)?function(e,t,n){const r=[];if(!Array.isArray(e))return r;const a=["url"].concat(n,["source_name"]),i=new Set;for(let n=0;n<t.length;n+=1){const o=t[n];let s;for(let t=0;t<e.length;t+=1){const n=e[t];if(n&&Array.isArray(n.citation_indices)&&-1!==n.citation_indices.indexOf(o)){s=n;break}}if(void 0===s&&(s=e[o-1]),!s)continue;const l=ZQ(s,a),c=String(void 0===l?"":l).toLowerCase();c&&i.has(c)||(c&&i.add(c),r.push({src:s,index:o}))}return r}(t.sources,e,tJ):[],[t,e]);u(()=>{if(!a)return;const e=e=>{const t="function"==typeof e.composedPath?e.composedPath():[],a=n.current&&t.includes(n.current),o=r.current&&t.includes(r.current);a||o||i(!1)},t=e=>{if("Escape"!==e.key){if("Tab"===e.key&&r.current){const t=r.current.querySelectorAll("a[href], button:not([disabled])");if(0===t.length)return;const n=t[0],a=t[t.length-1],i="function"==typeof e.composedPath?e.composedPath()[0]:e.target;e.shiftKey&&i===n?(e.preventDefault(),a.focus()):e.shiftKey||i!==a||(e.preventDefault(),n.focus())}}else i(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[a]);const f=o(!1);if(u(()=>{if(a){f.current=!0;const e=r.current?.querySelector("a[href], button:not([disabled])");e?.focus()}else f.current&&(f.current=!1,n.current?.focus())},[a]),!t)return null;if(Array.isArray(t.sources)&&0===t.sources.length)return null;if(t.sourcesPreliminary)return null;if(0===p.length)return null;const m=p[0],h=p.length-1,b=JQ(m.src,m.index),y=nJ(m.src)&&D(m.src),v=t.downloadingKey&&t.downloadingKey===rJ(m.src),E=e=>{"function"==typeof t.onSourceActivate&&t.onSourceActivate(e)},S=e=>{e.preventDefault(),e.stopPropagation(),1!==p.length?a?i(!1):(()=>{const e=n.current;if(!e)return;const t=e.getBoundingClientRect();c({top:t.bottom+window.scrollY+4,left:t.left+window.scrollX}),i(!0)})():E(m.src)},w=(e,n)=>"function"==typeof t.t?t.t(e):n,A=b+(h?` (${w("moreSources","+{count} more").replace("{count}",String(h))})`:"");return F(B,{children:[F("span",{ref:n,role:"button",tabIndex:0,dir:"ltr",title:A,"aria-label":A,"aria-haspopup":p.length>1?"dialog":void 0,"aria-expanded":p.length>1?a:void 0,onClick:S,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),S(e))},style:{display:"inline-flex",alignItems:"center",gap:3,height:20,padding:"0 5px 0 6px",marginInlineStart:2,marginInlineEnd:7,fontSize:11,lineHeight:1,borderRadius:5,background:t?.textColor?"rgba(128,128,128,0.08)":"rgba(59, 130, 246, 0.10)",color:t?.textColor||"rgb(37, 99, 235)",border:t?.textColor?`0.5px solid ${t.textColor}`:"0.5px solid rgba(59, 130, 246, 0.35)",cursor:"pointer",userSelect:"none",maxWidth:180,verticalAlign:"1px",textDecoration:"none",fontWeight:500,whiteSpace:"nowrap",unicodeBidi:"isolate"},children:[j("span",{style:{display:"inline-flex",flexShrink:0},children:j(y?P:H,{size:12,strokeWidth:2,"aria-hidden":!0})}),j("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:110},children:b}),h>0&&F("span",{style:{background:t?.textColor?"transparent":"rgb(37, 99, 235)",color:t?.textColor||"white",border:t?.textColor?`1px solid ${t.textColor}`:"none",borderRadius:3,padding:"1px 4px",fontSize:9,lineHeight:1,fontWeight:600,marginLeft:1},children:["+",h]}),1===p.length&&j("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,paddingLeft:3,borderLeft:t?.textColor?`0.5px solid ${t.textColor}`:"0.5px solid rgba(59, 130, 246, 0.35)",marginLeft:2},children:v?j(L,{size:12,strokeWidth:2,className:"animate-spin"}):j(y?G:q,{size:12,strokeWidth:2})})]}),a&&s&&"undefined"!=typeof document&&U(F("div",{ref:r,role:"dialog",dir:"ltr","aria-label":w("sourcesCited","{count} sources cited").replace("{count}",String(p.length)),style:{position:"absolute",top:s.top,left:s.left,zIndex:2147483647,background:"#fff",color:"#111",border:"0.5px solid rgba(0, 0, 0, 0.12)",borderRadius:8,boxShadow:"0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0,0,0,0.06)",padding:6,minWidth:240,maxWidth:360,fontSize:12},onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),children:[F("div",{style:{fontSize:10,textTransform:"uppercase",opacity:.55,letterSpacing:"0.06em",padding:"4px 6px 6px"},children:[p.length," source",1===p.length?"":"s"]}),p.map(({src:e,index:n})=>{const r=JQ(e,n),a=nJ(e)&&D(e),i=t.downloadingKey&&t.downloadingKey===rJ(e);return F("button",{type:"button",onClick:()=>E(e),disabled:!!i,title:r,style:{display:"flex",alignItems:"center",gap:8,width:"100%",padding:"6px 8px",border:0,background:"transparent",color:"inherit",cursor:i?"default":"pointer",textAlign:"left",borderRadius:4,font:"inherit"},onMouseEnter:e=>{e.currentTarget.style.background="rgba(0,0,0,0.04)"},onMouseLeave:e=>{e.currentTarget.style.background="transparent"},children:[j("span",{style:{display:"inline-flex",flexShrink:0,opacity:.8},children:j(a?P:H,{size:14,strokeWidth:2,"aria-hidden":!0})}),j("span",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:r}),j("span",{style:{display:"inline-flex",flexShrink:0,opacity:.7},children:i?j(L,{size:14,strokeWidth:2,className:"animate-spin"}):j(a?G:q,{size:14,strokeWidth:2})})]},`${n}-${rJ(e)||n}`)})]}),document.body)]})}const iJ=new Set(["eshal-ui","eshal-chart","chart"]);function oJ(e,t){if(!t)return e;const n=/^```(?:eshal-ui|eshal-chart|chart)\b/m.exec(e);if(n){const t=e.slice(n.index+n[0].length).split("\n").some(e=>"```"===e.trim());if(!t)return e.slice(0,n.index).trimEnd()}const r=e.split("\n");let a=r.length-1;for(;a>0&&""===r[a].trim();)a--;if(!r[a].trim().startsWith("|"))return e;let i=a;for(;i>0&&(r[i-1].trim().startsWith("|")||""===r[i-1].trim());)i--;const o=r.slice(i,a+1).some(e=>/^\|[\s\-:|]+\|/.test(e.trim()));return o?e:r.slice(0,i).join("\n")}function sJ(e){return e.replace(/(\d+\.\d{2})0+(?!\d)/g,"$1")}function lJ({content:e,isStreaming:n,isDark:r=!1,isRtl:a=!1,textColor:i,fontFamily:o,fontSize:s,onButtonClick:l,provideCitations:c=!0}){return j(Ba,{className:"max-w-none [&>*:last-child]:!mb-0 [&>*:first-child]:!mt-0",remarkPlugins:[Po,Mo,Fo],rehypePlugins:c?[XQ,M]:[M],components:{span({node:e,children:t,...n}){const r=n["data-eshal-citation"]??n.dataEshalCitation;if("string"==typeof r&&r.length>0){const e=function(e){if(!e)return[];const t=[],n=String(e).split(",");for(let e=0;e<n.length;e+=1){const r=parseInt(n[e].trim(),10);Number.isFinite(r)&&r>=1&&t.push(r)}return HQ(t)}(r);if(e.length>0)return j(aJ,{indices:e})}return j("span",{...n,children:t})},pre:({children:e,...n})=>function(e){return t.Children.toArray(e).some(e=>{if(!t.isValidElement(e))return!1;const n=e.props?.className;if("string"!=typeof n)return!1;const r=n.match(/language-([\w-]+)/);return!!r&&iJ.has(r[1])})}(e)?j(B,{children:e}):j("pre",{...n,children:e}),a:({node:e,children:t,...n})=>j("a",{className:"underline hover:opacity-80",dir:"ltr",style:{color:i||(r?"#f3f4f6":"#1A1A1A"),unicodeBidi:"isolate"},target:"_blank",rel:"noopener noreferrer",...n,children:t}),p:({node:e,children:t,...n})=>j("p",{className:"leading-relaxed [&:first-child]:!mt-0",style:{color:i||(r?"#f3f4f6":"#1A1A1A"),fontFamily:o||"Inter",fontSize:s||"14px",margin:0,marginTop:0,marginBottom:"li"===e?.parent?.tagName?"0.125rem":"0.85rem",lineHeight:"1.6",padding:0},...n,children:t}),ul:({node:e,children:t,...n})=>j("ul",{className:"list-disc [&:first-child]:!mt-0",style:{marginTop:0,marginBottom:"0.6rem",paddingInlineStart:"1.2rem"},...n,children:t}),ol({node:e,children:n,start:r=1,...a}){const i=Number.isFinite(Number(r))?Number(r):1;let o=0;return j("ol",{className:"[&:first-child]:!mt-0",style:{listStyle:"none",marginTop:0,marginBottom:"0.6rem",paddingInlineStart:0},...a,children:t.Children.map(n,e=>{if(!t.isValidElement(e))return e;const n=i+o;return o+=1,t.cloneElement(e,{"data-ol-index":n})})})},li({node:e,children:t,"data-ol-index":n,...a}){const l={color:i||(r?"#f3f4f6":"#1A1A1A"),fontFamily:o||"Inter",fontSize:s||"14px",marginBottom:"0.3rem",lineHeight:"1.5"};return null!=n?F("li",{style:{...l,listStyle:"none",display:"flex",alignItems:"baseline",gap:"0.4em"},...a,children:[F("span",{style:{flexShrink:0,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif',fontVariantNumeric:"tabular-nums",minWidth:"1.5em",color:"inherit"},"aria-hidden":"false",children:[n,"."]}),j("span",{style:{flex:"1 1 auto",minWidth:0},children:t})]}):j("li",{className:"",style:l,...a,children:t})},h1:({node:e,children:t,...n})=>j("h1",{className:"text-xl font-bold [&:first-child]:!mt-0",style:{color:i||(r?"#f3f4f6":"#1A1A1A"),fontFamily:o||"Inter",marginTop:"0.7rem",marginBottom:"0.45rem",lineHeight:"1.35"},...n,children:t}),h2:({node:e,children:t,...n})=>j("h2",{className:"text-lg font-semibold [&:first-child]:!mt-0",style:{color:i||(r?"#f3f4f6":"#1A1A1A"),fontFamily:o||"Inter",marginTop:"0.65rem",marginBottom:"0.4rem",lineHeight:"1.35"},...n,children:t}),h3:({node:e,children:t,...n})=>j("h3",{className:"text-base font-semibold [&:first-child]:!mt-0",style:{color:i||(r?"#f3f4f6":"#1A1A1A"),fontFamily:o||"Inter",marginTop:"0.6rem",marginBottom:"0.35rem",lineHeight:"1.35"},...n,children:t}),blockquote:({node:e,children:t,...n})=>j("blockquote",{className:"border-l-4 pl-4 italic "+(r?"border-gray-600 text-gray-300":"border-gray-300 text-gray-700"),...n,children:t}),table({node:e,children:t,...n}){if(e?.children?.length>0){function a(e){return e?"string"==typeof e.value?e.value:Array.isArray(e.children)?e.children.map(a).join(""):"":""}const i=e.children.find(e=>"thead"===e.tagName),o=e.children.find(e=>"tbody"===e.tagName),s=i?.children?.find(e=>"tr"===e.tagName),l=(s?.children||[]).filter(e=>"th"===e.tagName).map(e=>a(e)),c=(o?.children||[]).filter(e=>"tr"===e.tagName),u=c.map(e=>(e.children||[]).filter(e=>"td"===e.tagName).map(e=>a(e)));if(l.length>0&&u.length>0){const d=u.map(e=>Object.fromEntries(l.map((t,n)=>[t,e[n]??""])));return j(KZ,{spec:{type:"table",columns:l,data:d},isDark:r})}}return j("div",{className:"overflow-x-auto my-3 rounded-lg border "+(r?"border-gray-700 bg-gray-900":"border-gray-200 bg-white"),children:j("table",{className:"min-w-full border-collapse "+(r?"text-gray-100":"text-gray-900"),...n,children:t})})},th:({node:e,children:t,...n})=>j("th",{className:"border px-3 py-2 text-left font-medium "+(r?"border-gray-700 bg-gray-800/50 text-gray-300":"border-gray-200 bg-gray-50 text-gray-700"),...n,children:t}),td:({node:e,children:t,...n})=>j("td",{className:"border px-3 py-2 "+(r?"border-gray-700":"border-gray-200"),...n,children:t}),code({className:e,children:t,...n}){const a=/language-([\w-]+)/.exec(e||""),i=a?a[1]:null;if(i&&iJ.has(i)){const e=function(e){return"string"==typeof e?e:Array.isArray(e)?e.map(e=>"string"==typeof e?e:"").join(""):""}(t).trim();try{const t=JSON.parse(e);if(t&&"object"==typeof t)return j(KZ,{spec:t,isDark:r,onButtonClick:l})}catch(e){return null}return null}return a?j(TE,{style:OE,language:i,PreTag:"div",wrapLines:!0,...n,children:String(t).replace(/\n$/,"")}):j("code",{className:e,...n,children:t})}},children:sJ(oJ(e,n))})}export{lJ as default,sJ as sanitizeExcessDecimalPrecision,oJ as sanitizeStreamingContent};
|
|
37
|
+
*/function Kz(){if(Mz)return Lz;Mz=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return Lz=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,a){for(var i,o,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))t.call(i,c)&&(s[c]=i[c]);if(e){o=e(i);for(var u=0;u<o.length;u++)n.call(i,o[u])&&(s[o[u]]=i[o[u]])}}return s},Lz}function Xz(){if(jz)return Fz;jz=1;return Fz="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function Zz(){return Uz?Bz:(Uz=1,Bz=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var Qz=Yz();Nz.exports=function(){if(qz)return Gz;qz=1;var e=Yz(),t=Kz(),n=Xz(),r=Zz(),a=function(){if($z)return zz;$z=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Xz(),n={},r=Zz();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function a(a,i,o,s,l){if("production"!==process.env.NODE_ENV)for(var c in a)if(r(a,c)){var u;try{if("function"!=typeof a[c]){var d=Error((s||"React class")+": "+o+" 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 d.name="Invariant Violation",d}u=a[c](i,c,s,o,null,t)}catch(e){u=e}if(!u||u instanceof Error||e((s||"React class")+": type specification of "+o+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in n)){n[u.message]=!0;var p=l?l():"";e("Failed "+o+" type: "+u.message+(null!=p?p:""))}}}return a.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},zz=a}(),i=function(){};function o(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),Gz=function(s,l){var c="function"==typeof Symbol&&Symbol.iterator,u="<<anonymous>>",d={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:g(o),arrayOf:function(e){return g(function(t,r,a,i,o){if("function"!=typeof e)return new f("Property `"+o+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var s=t[r];if(!Array.isArray(s))return new f("Invalid "+i+" `"+o+"` of type `"+y(s)+"` supplied to `"+a+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,a,i,o+"["+l+"]",n);if(c instanceof Error)return c}return null})},element:g(function(e,t,n,r,a){var i=e[t];return s(i)?null:new f("Invalid "+r+" `"+a+"` of type `"+y(i)+"` supplied to `"+n+"`, expected a single ReactElement.")}),elementType:g(function(t,n,r,a,i){var o=t[n];return e.isValidElementType(o)?null:new f("Invalid "+a+" `"+i+"` of type `"+y(o)+"` supplied to `"+r+"`, expected a single ReactElement type.")}),instanceOf:function(e){return g(function(t,n,r,a,i){if(!(t[n]instanceof e)){var o=e.name||u;return new f("Invalid "+a+" `"+i+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:u)+"` supplied to `"+r+"`, expected instance of `"+o+"`.")}var s;return null})},node:g(function(e,t,n,r,a){return b(e[t])?null:new f("Invalid "+r+" `"+a+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(e){return g(function(t,a,i,o,s){if("function"!=typeof e)return new f("Property `"+s+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var l=t[a],c=y(l);if("object"!==c)return new f("Invalid "+o+" `"+s+"` of type `"+c+"` supplied to `"+i+"`, expected an object.");for(var u in l)if(r(l,u)){var d=e(l,u,i,o,s+"."+u,n);if(d instanceof Error)return d}return null})},oneOf:function(e){return Array.isArray(e)?g(function(t,n,r,a,i){for(var o=t[n],s=0;s<e.length;s++)if(p(o,e[s]))return null;var l=JSON.stringify(e,function(e,t){return"symbol"===v(t)?String(t):t});return new f("Invalid "+a+" `"+i+"` of value `"+String(o)+"` supplied to `"+r+"`, expected one of "+l+".")}):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"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]).":"Invalid argument supplied to oneOf, expected an array."),o)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var t=0;t<e.length;t++){var a=e[t];if("function"!=typeof a)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+E(a)+" at index "+t+"."),o}return g(function(t,a,i,o,s){for(var l=[],c=0;c<e.length;c++){var u=(0,e[c])(t,a,i,o,s,n);if(null==u)return null;u.data&&r(u.data,"expectedType")&&l.push(u.data.expectedType)}return new f("Invalid "+o+" `"+s+"` supplied to `"+i+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")})},shape:function(e){return g(function(t,r,a,i,o){var s=t[r],l=y(s);if("object"!==l)return new f("Invalid "+i+" `"+o+"` of type `"+l+"` supplied to `"+a+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!=typeof u)return h(a,i,o,c,v(u));var d=u(s,c,a,i,o+"."+c,n);if(d)return d}return null})},exact:function(e){return g(function(a,i,o,s,l){var c=a[i],u=y(c);if("object"!==u)return new f("Invalid "+s+" `"+l+"` of type `"+u+"` supplied to `"+o+"`, expected `object`.");var d=t({},a[i],e);for(var p in d){var g=e[p];if(r(e,p)&&"function"!=typeof g)return h(o,s,l,p,v(g));if(!g)return new f("Invalid "+s+" `"+l+"` key `"+p+"` supplied to `"+o+"`.\nBad object: "+JSON.stringify(a[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=g(c,p,o,s,l+"."+p,n);if(m)return m}return null})}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function g(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function a(a,o,s,c,d,p,g){if(c=c||u,p=p||s,g!==n){if(l){var m=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 m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var h=c+":"+s;!t[h]&&r<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. 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."),t[h]=!0,r++)}}return null==o[s]?a?null===o[s]?new f("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new f("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(o,s,c,d,p)}var o=a.bind(null,!1);return o.isRequired=a.bind(null,!0),o}function m(e){return g(function(t,n,r,a,i,o){var s=t[n];return y(s)!==e?new f("Invalid "+a+" `"+i+"` of type `"+v(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null})}function h(e,t,n,r,a){return new f((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+a+"`.")}function b(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(b);if(null===e||s(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!b(n.value))return!1}else for(;!(n=r.next()).done;){var a=n.value;if(a&&!b(a[1]))return!1}return!0;default:return!1}}function y(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function v(e){if(null==e)return""+e;var t=y(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function E(e){var t=v(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return f.prototype=Error.prototype,d.checkPropTypes=a,d.resetWarningCache=a.resetWarningCache,d.PropTypes=d,d},Gz}()(Qz.isElement,!0)}else Nz.exports=function(){if(Vz)return Hz;Vz=1;var e=Xz();function t(){}function n(){}return n.resetWarningCache=t,Hz=function(){function r(t,n,r,a,i,o){if(o!==e){var s=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 s.name="Invariant Violation",s}}function a(){return r}r.isRequired=r;var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i}}()();var Jz=Nz.exports;const{getOwnPropertyNames:e$,getOwnPropertySymbols:t$}=Object,{hasOwnProperty:n$}=Object.prototype;function r$(e,t){return function(n,r,a){return e(n,r,a)&&t(n,r,a)}}function a$(e){return function(t,n,r){if(!t||!n||"object"!=typeof t||"object"!=typeof n)return e(t,n,r);const{cache:a}=r,i=a.get(t),o=a.get(n);if(i&&o)return i===n&&o===t;a.set(t,n),a.set(n,t);const s=e(t,n,r);return a.delete(t),a.delete(n),s}}function i$(e){return e$(e).concat(t$(e))}const o$=Object.hasOwn||((e,t)=>n$.call(e,t));function s$(e,t){return e===t||!e&&!t&&e!=e&&t!=t}const{getOwnPropertyDescriptor:l$,keys:c$}=Object;function u$(e,t){return e.byteLength===t.byteLength&&A$(new Uint8Array(e),new Uint8Array(t))}function d$(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function p$(e,t){return e.byteLength===t.byteLength&&A$(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function f$(e,t){return s$(e.getTime(),t.getTime())}function g$(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function m$(e,t){return e===t}function h$(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),i=e.entries();let o,s,l=0;for(;(o=i.next())&&!o.done;){const r=t.entries();let i=!1,c=0;for(;(s=r.next())&&!s.done;){if(a[c]){c++;continue}const r=o.value,u=s.value;if(n.equals(r[0],u[0],l,c,e,t,n)&&n.equals(r[1],u[1],r[0],u[0],e,t,n)){i=a[c]=!0;break}c++}if(!i)return!1;l++}return!0}const b$=s$;function y$(e,t,n){const r=c$(e);let a=r.length;if(c$(t).length!==a)return!1;for(;a-- >0;)if(!x$(e,t,n,r[a]))return!1;return!0}function v$(e,t,n){const r=i$(e);let a,i,o,s=r.length;if(i$(t).length!==s)return!1;for(;s-- >0;){if(a=r[s],!x$(e,t,n,a))return!1;if(i=l$(e,a),o=l$(t,a),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function E$(e,t){return s$(e.valueOf(),t.valueOf())}function S$(e,t){return e.source===t.source&&e.flags===t.flags}function w$(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),i=e.values();let o,s;for(;(o=i.next())&&!o.done;){const r=t.values();let i=!1,l=0;for(;(s=r.next())&&!s.done;){if(!a[l]&&n.equals(o.value,s.value,o.value,s.value,e,t,n)){i=a[l]=!0;break}l++}if(!i)return!1}return!0}function A$(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function k$(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 x$(e,t,n,r){return!("_owner"!==r&&"__o"!==r&&"__v"!==r||!e.$$typeof&&!t.$$typeof)||o$(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const T$={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},O$=Object.prototype.toString;function _$({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:i,areMapsEqual:o,areNumbersEqual:s,areObjectsEqual:l,arePrimitiveWrappersEqual:c,areRegExpsEqual:u,areSetsEqual:d,areTypedArraysEqual:p,areUrlsEqual:f,unknownTagComparators:g}){return function(m,h,b){if(m===h)return!0;if(null==m||null==h)return!1;const y=typeof m;if(y!==typeof h)return!1;if("object"!==y)return"number"===y?s(m,h,b):"function"===y&&i(m,h,b);const v=m.constructor;if(v!==h.constructor)return!1;if(v===Object)return l(m,h,b);if(Array.isArray(m))return t(m,h,b);if(v===Date)return r(m,h,b);if(v===RegExp)return u(m,h,b);if(v===Map)return o(m,h,b);if(v===Set)return d(m,h,b);const E=O$.call(m);if("[object Date]"===E)return r(m,h,b);if("[object RegExp]"===E)return u(m,h,b);if("[object Map]"===E)return o(m,h,b);if("[object Set]"===E)return d(m,h,b);if("[object Object]"===E)return"function"!=typeof m.then&&"function"!=typeof h.then&&l(m,h,b);if("[object URL]"===E)return f(m,h,b);if("[object Error]"===E)return a(m,h,b);if("[object Arguments]"===E)return l(m,h,b);if(T$[E])return p(m,h,b);if("[object ArrayBuffer]"===E)return e(m,h,b);if("[object DataView]"===E)return n(m,h,b);if("[object Boolean]"===E||"[object Number]"===E||"[object String]"===E)return c(m,h,b);if(g){let e=g[E];if(!e){const t=null!=(S=m)?S[Symbol.toStringTag]:void 0;t&&(e=g[t])}if(e)return e(m,h,b)}var S;return!1}}const I$=N$();function N$(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:a=!1}=e,i=function({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:u$,areArraysEqual:n?v$:d$,areDataViewsEqual:p$,areDatesEqual:f$,areErrorsEqual:g$,areFunctionsEqual:m$,areMapsEqual:n?r$(h$,v$):h$,areNumbersEqual:b$,areObjectsEqual:n?v$:y$,arePrimitiveWrappersEqual:E$,areRegExpsEqual:S$,areSetsEqual:n?r$(w$,v$):w$,areTypedArraysEqual:n?r$(A$,v$):A$,areUrlsEqual:k$,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const e=a$(r.areArraysEqual),t=a$(r.areMapsEqual),n=a$(r.areObjectsEqual),a=a$(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:e,areMapsEqual:t,areObjectsEqual:n,areSetsEqual:a})}return r}(e),o=_$(i),s=n?n(o):(l=o,function(e,t,n,r,a,i,o){return l(e,t,o)});var l;return function({circular:e,comparator:t,createState:n,equals:r,strict:a}){if(n)return function(i,o){const{cache:s=(e?new WeakMap:void 0),meta:l}=n();return t(i,o,{cache:s,equals:r,meta:l,strict:a})};if(e)return function(e,n){return t(e,n,{cache:new WeakMap,equals:r,meta:void 0,strict:a})};const i={cache:void 0,equals:r,meta:void 0,strict:a};return function(e,n){return t(e,n,i)}}({circular:t,comparator:o,createState:r,equals:s,strict:a})}function R$(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame(function r(a){n<0&&(n=a),a-n>t?(e(a),n=-1):function(e){"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(e)}(r)})}function C$(e){return C$="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C$(e)}function D$(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return P$(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P$(e,t)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function P$(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function L$(){var e=function(){return null},t=!1,n=function n(r){if(!t){if(Array.isArray(r)){if(!r.length)return;var a=D$(r),i=a[0],o=a.slice(1);return"number"==typeof i?void R$(n.bind(null,o),i):(n(i),void R$(n.bind(null,o)))}"object"===C$(r)&&e(r),"function"==typeof r&&r()}};return{stop:function(){t=!0},start:function(e){t=!1,n(e)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}function M$(e){return M$="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M$(e)}function F$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function j$(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F$(Object(n),!0).forEach(function(t){B$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function B$(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==M$(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==M$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===M$(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}N$({strict:!0}),N$({circular:!0}),N$({circular:!0,strict:!0}),N$({createInternalComparator:()=>s$}),N$({strict:!0,createInternalComparator:()=>s$}),N$({circular:!0,createInternalComparator:()=>s$}),N$({circular:!0,createInternalComparator:()=>s$,strict:!0});var U$=function(e){return e},z$=function(e,t){return Object.keys(t).reduce(function(n,r){return j$(j$({},n),{},B$({},r,e(r,t[r])))},{})},$$=function(e,t,n){return e.map(function(e){return"".concat(function(e){return e.replace(/([A-Z])/g,function(e){return"-".concat(e.toLowerCase())})}(e)," ").concat(t,"ms ").concat(n)}).join(",")},G$="production"!==process.env.NODE_ENV,q$=function(e,t,n,r,a,i,o,s){if(G$&&"undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,a,i,o,s],c=0;console.warn(t.replace(/%s/g,function(){return l[c++]}))}};function H$(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(e,t)||W$(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function V$(e){return function(e){if(Array.isArray(e))return Y$(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||W$(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W$(e,t){if(e){if("string"==typeof e)return Y$(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y$(e,t):void 0}}function Y$(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var K$=1e-4,X$=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},Z$=function(e,t){return e.map(function(e,n){return e*Math.pow(t,n)}).reduce(function(e,t){return e+t})},Q$=function(e,t){return function(n){var r=X$(e,t);return Z$(r,n)}},J$=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],a=t[1],i=t[2],o=t[3];if(1===t.length)switch(t[0]){case"linear":r=0,a=0,i=1,o=1;break;case"ease":r=.25,a=.1,i=.25,o=1;break;case"ease-in":r=.42,a=0,i=1,o=1;break;case"ease-out":r=.42,a=0,i=.58,o=1;break;case"ease-in-out":r=0,a=0,i=.58,o=1;break;default:var s=t[0].split("(");if("cubic-bezier"===s[0]&&4===s[1].split(")")[0].split(",").length){var l=s[1].split(")")[0].split(",").map(function(e){return parseFloat(e)}),c=H$(l,4);r=c[0],a=c[1],i=c[2],o=c[3]}else q$(!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",t)}q$([r,i,a,o].every(function(e){return"number"==typeof e&&e>=0&&e<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",t);var u,d,p=Q$(r,i),f=Q$(a,o),g=(u=r,d=i,function(e){var t=X$(u,d),n=[].concat(V$(t.map(function(e,t){return e*t}).slice(1)),[0]);return Z$(n,e)}),m=function(e){return e>1?1:e<0?0:e},h=function(e){for(var t=e>1?1:e,n=t,r=0;r<8;++r){var a=p(n)-t,i=g(n);if(Math.abs(a-t)<K$||i<K$)return f(n);n=m(n-a/i)}return f(n)};return h.isStepper=!1,h},eG=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if("string"==typeof r)switch(r){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return J$(r);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,n=void 0===t?100:t,r=e.damping,a=void 0===r?8:r,i=e.dt,o=void 0===i?17:i,s=function(e,t,r){var i=r+(-(e-t)*n-r*a)*o/1e3,s=r*o/1e3+e;return Math.abs(s-t)<K$&&Math.abs(i)<K$?[t,0]:[s,i]};return s.isStepper=!0,s.dt=o,s}();default:if("cubic-bezier"===r.split("(")[0])return J$(r);q$(!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",t)}return"function"==typeof r?r:(q$(!1,"[configEasing]: first argument type should be function or string, instead received %s",t),null)};function tG(e){return tG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tG(e)}function nG(e){return function(e){if(Array.isArray(e))return lG(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||sG(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function aG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rG(Object(n),!0).forEach(function(t){iG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function iG(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==tG(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==tG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===tG(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oG(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(e,t)||sG(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function sG(e,t){if(e){if("string"==typeof e)return lG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?lG(e,t):void 0}}function lG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var cG=function(e,t,n){return e+(t-e)*n},uG=function(e){return e.from!==e.to},dG=function e(t,n,r){var a=z$(function(e,n){if(uG(n)){var r=oG(t(n.from,n.to,n.velocity),2),a=r[0],i=r[1];return aG(aG({},n),{},{from:a,velocity:i})}return n},n);return r<1?z$(function(e,t){return uG(t)?aG(aG({},t),{},{velocity:cG(t.velocity,a[e].velocity,r),from:cG(t.from,a[e].from,r)}):t},n):e(t,a,r-1)},pG=function(e,t,n,r,a){var i,o,s,l,c=(i=e,o=t,[Object.keys(i),Object.keys(o)].reduce(function(e,t){return e.filter(function(e){return t.includes(e)})})),u=c.reduce(function(n,r){return aG(aG({},n),{},iG({},r,[e[r],t[r]]))},{}),d=c.reduce(function(n,r){return aG(aG({},n),{},iG({},r,{from:e[r],velocity:0,to:t[r]}))},{}),p=-1,f=function(){return null};return f=n.isStepper?function(r){s||(s=r);var i=(r-s)/n.dt;d=dG(n,d,i),a(aG(aG(aG({},e),t),z$(function(e,t){return t.from},d))),s=r,Object.values(d).filter(uG).length&&(p=requestAnimationFrame(f))}:function(i){l||(l=i);var o=(i-l)/r,s=z$(function(e,t){return cG.apply(void 0,nG(t).concat([n(o)]))},u);if(a(aG(aG(aG({},e),t),s)),o<1)p=requestAnimationFrame(f);else{var c=z$(function(e,t){return cG.apply(void 0,nG(t).concat([n(1)]))},u);a(aG(aG(aG({},e),t),c))}},function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(p)}}};function fG(e){return fG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fG(e)}var gG=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function mG(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function hG(e){return function(e){if(Array.isArray(e))return bG(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return bG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bG(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yG(Object(n),!0).forEach(function(t){EG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function EG(e,t,n){return(t=wG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SG(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wG(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wG(e){var t=function(e,t){if("object"!==fG(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!==fG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===fG(t)?t:String(t)}function AG(e,t){return AG=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},AG(e,t)}function kG(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var n,r=OG(e);if(t){var a=OG(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return xG(this,n)}}function xG(e,t){if(t&&("object"===fG(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return TG(e)}function TG(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OG(e){return OG=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},OG(e)}var _G=function(){!function(e,t){if("function"!=typeof t&&null!==t)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)}(n,a);var e=kG(n);function n(t,r){var a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var i=(a=e.call(this,t,r)).props,o=i.isActive,s=i.attributeName,l=i.from,c=i.to,u=i.steps,d=i.children,p=i.duration;if(a.handleStyleChange=a.handleStyleChange.bind(TG(a)),a.changeStyle=a.changeStyle.bind(TG(a)),!o||p<=0)return a.state={style:{}},"function"==typeof d&&(a.state={style:c}),xG(a);if(u&&u.length)a.state={style:u[0].style};else if(l){if("function"==typeof d)return a.state={style:l},xG(a);a.state={style:s?EG({},s,l):l}}else a.state={style:{}};return a}return SG(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,n=e.canBegin;this.mounted=!0,t&&n&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isActive,r=t.canBegin,a=t.attributeName,i=t.shouldReAnimate,o=t.to,s=t.from,l=this.state.style;if(r)if(n){if(!(I$(e.to,o)&&e.canBegin&&e.isActive)){var c=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var u=c||i?s:e.to;if(this.state&&l){var d={style:a?EG({},a,u):u};(a&&l[a]!==u||!a&&l!==u)&&this.setState(d)}this.runAnimation(vG(vG({},this.props),{},{from:u,begin:0}))}}else{var p={style:a?EG({},a,o):o};this.state&&l&&(a&&l[a]!==o||!a&&l!==o)&&this.setState(p)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),e&&e()}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"runJSAnimation",value:function(e){var t=this,n=e.from,r=e.to,a=e.duration,i=e.easing,o=e.begin,s=e.onAnimationEnd,l=e.onAnimationStart,c=pG(n,r,eG(i),a,this.changeStyle);this.manager.start([l,o,function(){t.stopJSAnimation=c()},a,s])}},{key:"runStepAnimation",value:function(e){var t=this,n=e.steps,r=e.begin,a=e.onAnimationStart,i=n[0],o=i.style,s=i.duration,l=void 0===s?0:s;return this.manager.start([a].concat(hG(n.reduce(function(e,r,a){if(0===a)return e;var i=r.duration,o=r.easing,s=void 0===o?"ease":o,l=r.style,c=r.properties,u=r.onAnimationEnd,d=a>0?n[a-1]:r,p=c||Object.keys(l);if("function"==typeof s||"spring"===s)return[].concat(hG(e),[t.runJSAnimation.bind(t,{from:d.style,to:l,duration:i,easing:s}),i]);var f=$$(p,i,s),g=vG(vG(vG({},d.style),l),{},{transition:f});return[].concat(hG(e),[g,i,u]).filter(U$)},[o,Math.max(l,r)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=L$());var t=e.begin,n=e.duration,r=e.attributeName,a=e.to,i=e.easing,o=e.onAnimationStart,s=e.onAnimationEnd,l=e.steps,c=e.children,u=this.manager;if(this.unSubscribe=u.subscribe(this.handleStyleChange),"function"!=typeof i&&"function"!=typeof c&&"spring"!==i)if(l.length>1)this.runStepAnimation(e);else{var d=r?EG({},r,a):a,p=$$(Object.keys(d),n,i);u.start([o,t,vG(vG({},d),{},{transition:p}),n,s])}else this.runJSAnimation(e)}},{key:"render",value:function(){var e=this.props,n=e.children;e.begin;var a=e.duration;e.attributeName,e.easing;var i=e.isActive;e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart;var o=mG(e,gG),s=r.count(n),l=this.state.style;if("function"==typeof n)return n(l);if(!i||0===s||a<=0)return n;var c=function(e){var t=e.props,n=t.style,r=void 0===n?{}:n,a=t.className;return p(e,vG(vG({},o),{},{style:vG(vG({},r),l),className:a}))};return 1===s?c(r.only(n)):t.createElement("div",null,r.map(n,function(e){return c(e)}))}}]),n}();function IG(e){return IG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},IG(e)}function NG(){return NG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NG.apply(this,arguments)}function RG(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return CG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CG(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function CG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function DG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function PG(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DG(Object(n),!0).forEach(function(t){LG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function LG(e,t,n){var r;return r=function(e,t){if("object"!=IG(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=IG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==IG(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}_G.displayName="Animate",_G.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},_G.propTypes={from:Jz.oneOfType([Jz.object,Jz.string]),to:Jz.oneOfType([Jz.object,Jz.string]),attributeName:Jz.string,duration:Jz.number,begin:Jz.number,easing:Jz.oneOfType([Jz.string,Jz.func]),steps:Jz.arrayOf(Jz.shape({duration:Jz.number.isRequired,style:Jz.object.isRequired,easing:Jz.oneOfType([Jz.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Jz.func]),properties:Jz.arrayOf("string"),onAnimationEnd:Jz.func})),children:Jz.oneOfType([Jz.node,Jz.func]),isActive:Jz.bool,canBegin:Jz.bool,onAnimationEnd:Jz.func,shouldReAnimate:Jz.bool,onAnimationStart:Jz.func,onAnimationReStart:Jz.func};var MG=function(e,t,n,r,a){var i,o=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,l=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(o>0&&a instanceof Array){for(var u=[0,0,0,0],d=0;d<4;d++)u[d]=a[d]>o?o:a[d];i="M".concat(e,",").concat(t+s*u[0]),u[0]>0&&(i+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(c,",").concat(e+l*u[0],",").concat(t)),i+="L ".concat(e+n-l*u[1],",").concat(t),u[1]>0&&(i+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(c,",\n ").concat(e+n,",").concat(t+s*u[1])),i+="L ".concat(e+n,",").concat(t+r-s*u[2]),u[2]>0&&(i+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(c,",\n ").concat(e+n-l*u[2],",").concat(t+r)),i+="L ".concat(e+l*u[3],",").concat(t+r),u[3]>0&&(i+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(c,",\n ").concat(e,",").concat(t+r-s*u[3])),i+="Z"}else if(o>0&&a===+a&&a>0){var p=Math.min(o,a);i="M ".concat(e,",").concat(t+s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+l*p,",").concat(t,"\n L ").concat(e+n-l*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+n,",").concat(t+s*p,"\n L ").concat(e+n,",").concat(t+r-s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e+n-l*p,",").concat(t+r,"\n L ").concat(e+l*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(c,",").concat(e,",").concat(t+r-s*p," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},FG=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,a=t.x,i=t.y,o=t.width,s=t.height;if(Math.abs(o)>0&&Math.abs(s)>0){var l=Math.min(a,a+o),c=Math.max(a,a+o),u=Math.min(i,i+s),d=Math.max(i,i+s);return n>=l&&n<=c&&r>=u&&r<=d}return!1},jG={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},BG=function(e){var n=PG(PG({},jG),e),r=o(),a=RG(l(-1),2),i=a[0],s=a[1];u(function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&s(e)}catch(e){}},[]);var c=n.x,d=n.y,p=n.width,f=n.height,g=n.radius,m=n.className,h=n.animationEasing,b=n.animationDuration,y=n.animationBegin,v=n.isAnimationActive,E=n.isUpdateAnimationActive;if(c!==+c||d!==+d||p!==+p||f!==+f||0===p||0===f)return null;var S=IE("recharts-rectangle",m);return E?t.createElement(_G,{canBegin:i>0,from:{width:p,height:f,x:c,y:d},to:{width:p,height:f,x:c,y:d},duration:b,animationEasing:h,isActive:E},function(e){var a=e.width,o=e.height,s=e.x,l=e.y;return t.createElement(_G,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:b,isActive:v,easing:h},t.createElement("path",NG({},QA(n,!0),{className:S,d:MG(s,l,a,o,g),ref:r})))}):t.createElement("path",NG({},QA(n,!0),{className:S,d:MG(c,d,p,f,g)}))},UG=["points","className","baseLinePoints","connectNulls"];function zG(){return zG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zG.apply(this,arguments)}function $G(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function GG(e){return function(e){if(Array.isArray(e))return qG(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return qG(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qG(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qG(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var HG=function(e){return e&&e.x===+e.x&&e.y===+e.y},VG=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach(function(e){HG(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])}),HG(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t}(e);t&&(n=[n.reduce(function(e,t){return[].concat(GG(e),GG(t))},[])]);var r=n.map(function(e){return e.reduce(function(e,t,n){return"".concat(e).concat(0===n?"M":"L").concat(t.x,",").concat(t.y)},"")}).join("");return 1===n.length?"".concat(r,"Z"):r},WG=function(e){var n=e.points,r=e.className,a=e.baseLinePoints,i=e.connectNulls,o=$G(e,UG);if(!n||!n.length)return null;var s=IE("recharts-polygon",r);if(a&&a.length){var l=o.stroke&&"none"!==o.stroke,c=function(e,t,n){var r=VG(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(VG(t.reverse(),n).slice(1))}(n,a,i);return t.createElement("g",{className:s},t.createElement("path",zG({},QA(o,!0),{fill:"Z"===c.slice(-1)?o.fill:"none",stroke:"none",d:c})),l?t.createElement("path",zG({},QA(o,!0),{fill:"none",d:VG(n,i)})):null,l?t.createElement("path",zG({},QA(o,!0),{fill:"none",d:VG(a,i)})):null)}var u=VG(n,i);return t.createElement("path",zG({},QA(o,!0),{fill:"Z"===u.slice(-1)?o.fill:"none",className:s,d:u}))};function YG(){return YG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YG.apply(this,arguments)}var KG=function(t){var n=t.cx,r=t.cy,a=t.r,i=IE("recharts-dot",t.className);return n===+n&&r===+r&&a===+a?e.createElement("circle",YG({},QA(t,!1),MA(t),{className:i,cx:n,cy:r,r:a})):null};function XG(e){return XG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},XG(e)}var ZG=["x","y","top","left","width","height","className"];function QG(){return QG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QG.apply(this,arguments)}function JG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eq(e,t,n){var r;return r=function(e,t){if("object"!=XG(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=XG(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==XG(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tq(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var nq=function(e,t,n,r,a,i){return"M".concat(e,",").concat(a,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)},rq=function(e){var n=e.x,r=void 0===n?0:n,a=e.y,i=void 0===a?0:a,o=e.top,s=void 0===o?0:o,l=e.left,c=void 0===l?0:l,u=e.width,d=void 0===u?0:u,p=e.height,f=void 0===p?0:p,g=e.className,m=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JG(Object(n),!0).forEach(function(t){eq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({x:r,y:i,top:s,left:c,width:d,height:f},tq(e,ZG));return SA(r)&&SA(i)&&SA(d)&&SA(f)&&SA(s)&&SA(c)?t.createElement("path",QG({},QA(m,!0),{className:IE("recharts-cross",g),d:nq(r,i,d,f,s,c)})):null},aq=rj,iq=aj,oq=FI;var sq=function(e,t){return e&&e.length?aq(e,oq(t),iq):void 0},lq=rj,cq=FI,uq=cj;var dq=function(e,t){return e&&e.length?lq(e,cq(t),uq):void 0},pq=["cx","cy","angle","ticks","axisLine"],fq=["ticks","tick","angle","tickFormatter","stroke"];function gq(e){return gq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gq(e)}function mq(){return mq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mq.apply(this,arguments)}function hq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hq(Object(n),!0).forEach(function(t){kq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yq(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function vq(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xq(r.key),r)}}function Eq(e,t,n){return t=wq(t),function(e,t){if(t&&("object"===gq(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Sq()?Reflect.construct(t,n||[],wq(e).constructor):t.apply(e,n))}function Sq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Sq=function(){return!!e})()}function wq(e){return wq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wq(e)}function Aq(e,t){return Aq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Aq(e,t)}function kq(e,t,n){return(t=xq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xq(e){var t=function(e,t){if("object"!=gq(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=gq(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==gq(t)?t:t+""}var Tq=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Eq(this,e,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&Aq(e,t)}(e,a),n=e,r=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,a=n.cx,i=n.cy;return CU(a,i,t,r)}},{key:"getTickTextAnchor",value:function(){var e;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,a=e.ticks,i=sq(a,function(e){return e.coordinate||0});return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:dq(a,function(e){return e.coordinate||0}).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.cx,r=e.cy,a=e.angle,i=e.ticks,o=e.axisLine,s=yq(e,pq),l=i.reduce(function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]},[1/0,-1/0]),c=CU(n,r,l[0],a),u=CU(n,r,l[1],a),d=bq(bq(bq({},QA(s,!1)),{},{fill:"none"},QA(o,!1)),{},{x1:c.x,y1:c.y,x2:u.x,y2:u.y});return t.createElement("line",mq({className:"recharts-polar-radius-axis-line"},d))}},{key:"renderTicks",value:function(){var n=this,r=this.props,a=r.ticks,i=r.tick,o=r.angle,s=r.tickFormatter,l=r.stroke,c=yq(r,fq),u=this.getTickTextAnchor(),d=QA(c,!1),p=QA(i,!1),f=a.map(function(r,a){var c=n.getTickValueCoord(r),f=bq(bq(bq(bq({textAnchor:u,transform:"rotate(".concat(90-o,", ").concat(c.x,", ").concat(c.y,")")},d),{},{stroke:"none",fill:l},p),{},{index:a},c),{},{payload:r});return t.createElement(ck,mq({className:IE("recharts-polar-radius-axis-tick",FU(i)),key:"tick-".concat(r.coordinate)},FA(n.props,r,a)),e.renderTickItem(i,f,s?s(r.value,a):r.value))});return t.createElement(ck,{className:"recharts-polar-radius-axis-ticks"},f)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.axisLine,a=e.tick;return n&&n.length?t.createElement(ck,{className:IE("recharts-polar-radius-axis",this.props.className)},r&&this.renderAxisLine(),a&&this.renderTicks(),YU.renderCallByParent(this.props,this.getViewBox())):null}}],i=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):oS(e)?e(n):t.createElement(vD,mq({},n,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],r&&vq(n.prototype,r),i&&vq(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}();function Oq(e){return Oq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oq(e)}function _q(){return _q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_q.apply(this,arguments)}function Iq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nq(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Iq(Object(n),!0).forEach(function(t){Mq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Iq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rq(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fq(r.key),r)}}function Cq(e,t,n){return t=Pq(t),function(e,t){if(t&&("object"===Oq(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Dq()?Reflect.construct(t,n||[],Pq(e).constructor):t.apply(e,n))}function Dq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Dq=function(){return!!e})()}function Pq(e){return Pq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pq(e)}function Lq(e,t){return Lq=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lq(e,t)}function Mq(e,t,n){return(t=Fq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fq(e){var t=function(e,t){if("object"!=Oq(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=Oq(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Oq(t)?t:t+""}kq(Tq,"displayName","PolarRadiusAxis"),kq(Tq,"axisType","radiusAxis"),kq(Tq,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var jq=Math.PI/180,Bq=1e-5,Uq=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Cq(this,e,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&Lq(e,t)}(e,a),n=e,r=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,a=t.radius,i=t.orientation,o=t.tickSize||8,s=CU(n,r,a,e.coordinate),l=CU(n,r,a+("inner"===i?-1:1)*o,e.coordinate);return{x1:s.x,y1:s.y,x2:l.x,y2:l.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*jq);return n>Bq?"outer"===t?"start":"end":n<-Bq?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.cx,r=e.cy,a=e.radius,i=e.axisLine,o=e.axisLineType,s=Nq(Nq({},QA(this.props,!1)),{},{fill:"none"},QA(i,!1));if("circle"===o)return t.createElement(KG,_q({className:"recharts-polar-angle-axis-line"},s,{cx:n,cy:r,r:a}));var l=this.props.ticks.map(function(e){return CU(n,r,a,e.coordinate)});return t.createElement(WG,_q({className:"recharts-polar-angle-axis-line"},s,{points:l}))}},{key:"renderTicks",value:function(){var n=this,r=this.props,a=r.ticks,i=r.tick,o=r.tickLine,s=r.tickFormatter,l=r.stroke,c=QA(this.props,!1),u=QA(i,!1),d=Nq(Nq({},c),{},{fill:"none"},QA(o,!1)),p=a.map(function(r,a){var p=n.getTickLineCoord(r),f=Nq(Nq(Nq({textAnchor:n.getTickTextAnchor(r)},c),{},{stroke:"none",fill:l},u),{},{index:a,payload:r,x:p.x2,y:p.y2});return t.createElement(ck,_q({className:IE("recharts-polar-angle-axis-tick",FU(i)),key:"tick-".concat(r.coordinate)},FA(n.props,r,a)),o&&t.createElement("line",_q({className:"recharts-polar-angle-axis-tick-line"},d,p)),i&&e.renderTickItem(i,f,s?s(r.value,a):r.value))});return t.createElement(ck,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.radius,a=e.axisLine;return r<=0||!n||!n.length?null:t.createElement(ck,{className:IE("recharts-polar-angle-axis",this.props.className)},a&&this.renderAxisLine(),this.renderTicks())}}],i=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):oS(e)?e(n):t.createElement(vD,_q({},n,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],r&&Rq(n.prototype,r),i&&Rq(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}();Mq(Uq,"displayName","PolarAngleAxis"),Mq(Uq,"axisType","angleAxis"),Mq(Uq,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var zq=$O(Object.getPrototypeOf,Object),$q=VE,Gq=zq,qq=WE,Hq=Function.prototype,Vq=Object.prototype,Wq=Hq.toString,Yq=Vq.hasOwnProperty,Kq=Wq.call(Object);var Xq=function(e){if(!qq(e)||"[object Object]"!=$q(e))return!1;var t=Gq(e);if(null===t)return!0;var n=Yq.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Wq.call(n)==Kq},Zq=VE,Qq=WE;var Jq=function(e){return!0===e||!1===e||Qq(e)&&"[object Boolean]"==Zq(e)};function eH(e){return eH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eH(e)}function tH(){return tH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tH.apply(this,arguments)}function nH(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return rH(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rH(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rH(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function aH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function iH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aH(Object(n),!0).forEach(function(t){oH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oH(e,t,n){var r;return r=function(e,t){if("object"!=eH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=eH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==eH(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sH,lH=function(e,t,n,r,a){var i,o=n-r;return i="M ".concat(e,",").concat(t),i+="L ".concat(e+n,",").concat(t),i+="L ".concat(e+n-o/2,",").concat(t+a),i+="L ".concat(e+n-o/2-r,",").concat(t+a),i+="L ".concat(e,",").concat(t," Z")},cH={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},uH=function(e){var n=iH(iH({},cH),e),r=o(),a=nH(l(-1),2),i=a[0],s=a[1];u(function(){if(r.current&&r.current.getTotalLength)try{var e=r.current.getTotalLength();e&&s(e)}catch(e){}},[]);var c=n.x,d=n.y,p=n.upperWidth,f=n.lowerWidth,g=n.height,m=n.className,h=n.animationEasing,b=n.animationDuration,y=n.animationBegin,v=n.isUpdateAnimationActive;if(c!==+c||d!==+d||p!==+p||f!==+f||g!==+g||0===p&&0===f||0===g)return null;var E=IE("recharts-trapezoid",m);return v?t.createElement(_G,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:g,x:c,y:d},to:{upperWidth:p,lowerWidth:f,height:g,x:c,y:d},duration:b,animationEasing:h,isActive:v},function(e){var a=e.upperWidth,o=e.lowerWidth,s=e.height,l=e.x,c=e.y;return t.createElement(_G,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:b,easing:h},t.createElement("path",tH({},QA(n,!0),{className:E,d:lH(l,c,a,o,s),ref:r})))}):t.createElement("g",null,t.createElement("path",tH({},QA(n,!0),{className:E,d:lH(c,d,p,f,g)})))},dH=["option","shapeType","propTransformer","activeClassName","isActive"];function pH(e){return pH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pH(e)}function fH(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function gH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gH(Object(n),!0).forEach(function(t){hH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function hH(e,t,n){var r;return r=function(e,t){if("object"!=pH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=pH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==pH(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bH(e,t){return mH(mH({},t),e)}function yH(e){var n=e.shapeType,r=e.elementProps;switch(n){case"rectangle":return t.createElement(BG,r);case"trapezoid":return t.createElement(uH,r);case"sector":return t.createElement(bz,r);case"symbols":if(function(e){return"symbols"===e}(n))return t.createElement(eT,r);break;default:return null}}function vH(e){var r,a=e.option,i=e.shapeType,o=e.propTransformer,s=void 0===o?bH:o,l=e.activeClassName,c=void 0===l?"recharts-active-shape":l,u=e.isActive,d=fH(e,dH);if(n(a))r=p(a,mH(mH({},d),function(e){return n(e)?e.props:e}(a)));else if(oS(a))r=a(d);else if(Xq(a)&&!Jq(a)){var f=s(a,d);r=t.createElement(yH,{shapeType:i,elementProps:f})}else{var g=d;r=t.createElement(yH,{shapeType:i,elementProps:g})}return u?t.createElement(ck,{className:c},r):r}function EH(e,t){return null!=t&&"trapezoids"in e.props}function SH(e,t){return null!=t&&"sectors"in e.props}function wH(e,t){return null!=t&&"points"in e.props}function AH(e,t){var n,r,a=e.x===(null==t||null===(n=t.labelViewBox)||void 0===n?void 0:n.x)||e.x===t.x,i=e.y===(null==t||null===(r=t.labelViewBox)||void 0===r?void 0:r.y)||e.y===t.y;return a&&i}function kH(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function xH(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function TH(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=function(e,t){var n;return EH(e,t)?n="trapezoids":SH(e,t)?n="sectors":wH(e,t)&&(n="points"),n}(n,t),i=function(e,t){var n,r;return EH(e,t)?null===(n=t.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:SH(e,t)?null===(r=t.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:wH(e,t)?t.payload:{}}(n,t),o=r.filter(function(e,r){var o=Aj(i,e),s=n.props[a].filter(function(e){var r=function(e,t){var n;return EH(e,t)?n=AH:SH(e,t)?n=kH:wH(e,t)&&(n=xH),n}(n,t);return r(e,t)}),l=n.props[a].indexOf(s[s.length-1]);return o&&r===l});return r.indexOf(o[o.length-1])}function OH(e){return OH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},OH(e)}function _H(){return _H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_H.apply(this,arguments)}function IH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function NH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IH(Object(n),!0).forEach(function(t){MH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function RH(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,FH(r.key),r)}}function CH(e,t,n){return t=PH(t),function(e,t){if(t&&("object"===OH(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,DH()?Reflect.construct(t,n||[],PH(e).constructor):t.apply(e,n))}function DH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(DH=function(){return!!e})()}function PH(e){return PH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},PH(e)}function LH(e,t){return LH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},LH(e,t)}function MH(e,t,n){return(t=FH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FH(e){var t=function(e,t){if("object"!=OH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=OH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==OH(t)?t:t+""}var jH=function(){function e(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),MH(n=CH(this,e,[t]),"pieRef",null),MH(n,"sectorRefs",[]),MH(n,"id",kA("recharts-pie-")),MH(n,"handleAnimationEnd",function(){var e=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),oS(e)&&e()}),MH(n,"handleAnimationStart",function(){var e=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),oS(e)&&e()}),n.state={isAnimationFinished:!t.isAnimationActive,prevIsAnimationActive:t.isAnimationActive,prevAnimationId:t.animationId,sectorToFocus:0},n}return function(e,t){if("function"!=typeof t&&null!==t)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&&LH(e,t)}(e,a),n=e,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"hasActiveIndex",value:function(){var e=this.props.activeIndex;return Array.isArray(e)?0!==e.length:e||0===e}},{key:"renderLabels",value:function(n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,a=r.label,i=r.labelLine,o=r.dataKey,s=r.valueKey,l=QA(this.props,!1),c=QA(a,!1),u=QA(i,!1),d=a&&a.offsetRadius||20,p=n.map(function(n,r){var p=(n.startAngle+n.endAngle)/2,f=CU(n.cx,n.cy,n.outerRadius+d,p),g=NH(NH(NH(NH({},l),n),{},{stroke:"none"},c),{},{index:r,textAnchor:e.getTextAnchor(f.x,n.cx)},f),m=NH(NH(NH(NH({},l),n),{},{fill:"none",stroke:n.fill},u),{},{index:r,points:[CU(n.cx,n.cy,n.outerRadius,p),f]}),h=o;return rA(o)&&rA(s)?h="value":rA(o)&&(h=s),t.createElement(ck,{key:"label-".concat(n.startAngle,"-").concat(n.endAngle,"-").concat(n.midAngle,"-").concat(r)},i&&e.renderLabelLineItem(i,m,"line"),e.renderLabelItem(a,g,JB(n,h)))});return t.createElement(ck,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(e){var n=this,r=this.props,a=r.activeShape,i=r.blendStroke,o=r.inactiveShape;return e.map(function(r,s){if(0===(null==r?void 0:r.startAngle)&&0===(null==r?void 0:r.endAngle)&&1!==e.length)return null;var l=n.isActiveIndex(s),c=o&&n.hasActiveIndex()?o:null,u=l?a:c,d=NH(NH({},r),{},{stroke:i?r.fill:r.stroke,tabIndex:-1});return t.createElement(ck,_H({ref:function(e){e&&!n.sectorRefs.includes(e)&&n.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},FA(n.props,r,s),{key:"sector-".concat(null==r?void 0:r.startAngle,"-").concat(null==r?void 0:r.endAngle,"-").concat(r.midAngle,"-").concat(s)}),t.createElement(vH,_H({option:u,isActive:l,shapeType:"sector"},d)))})}},{key:"renderSectorsWithAnimation",value:function(){var e=this,n=this.props,r=n.sectors,a=n.isAnimationActive,i=n.animationBegin,o=n.animationDuration,s=n.animationEasing,l=n.animationId,c=this.state,u=c.prevSectors,d=c.prevIsAnimationActive;return t.createElement(_G,{begin:i,duration:o,isActive:a,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(l,"-").concat(d),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(n){var a=n.t,i=[],o=(r&&r[0]).startAngle;return r.forEach(function(e,t){var n=u&&u[t],r=t>0?nA(e,"paddingAngle",0):0;if(n){var s=OA(n.endAngle-n.startAngle,e.endAngle-e.startAngle),l=NH(NH({},e),{},{startAngle:o+r,endAngle:o+s(a)+r});i.push(l),o=l.endAngle}else{var c=e.endAngle,d=e.startAngle,p=OA(0,c-d)(a),f=NH(NH({},e),{},{startAngle:o+r,endAngle:o+p+r});i.push(f),o=f.endAngle}}),t.createElement(ck,null,e.renderSectorsStatically(i))})}},{key:"attachKeyboardHandlers",value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case"ArrowLeft":var n=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case"ArrowRight":var r=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case"Escape":t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&Aj(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,n=this.props,r=n.hide,a=n.sectors,i=n.className,o=n.label,s=n.cx,l=n.cy,c=n.innerRadius,u=n.outerRadius,d=n.isAnimationActive,p=this.state.isAnimationFinished;if(r||!a||!a.length||!SA(s)||!SA(l)||!SA(c)||!SA(u))return null;var f=IE("recharts-pie",i);return t.createElement(ck,{tabIndex:this.props.rootTabIndex,className:f,ref:function(t){e.pieRef=t}},this.renderSectors(),o&&this.renderLabels(a),YU.renderCallByParent(this.props,null,!1),(!d||p)&&lz.renderCallByParent(this.props,a,!1))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(e,n,r){if(t.isValidElement(e))return t.cloneElement(e,n);if(oS(e))return e(n);var a=IE("recharts-pie-label-line","boolean"!=typeof e?e.className:"");return t.createElement(Iz,_H({},n,{key:r,type:"linear",className:a}))}},{key:"renderLabelItem",value:function(e,n,r){if(t.isValidElement(e))return t.cloneElement(e,n);var a=r;if(oS(e)&&(a=e(n),t.isValidElement(a)))return a;var i=IE("recharts-pie-label-text","boolean"==typeof e||oS(e)?"":e.className);return t.createElement(vD,_H({},n,{alignmentBaseline:"middle",className:i}),a)}}],r&&RH(n.prototype,r),i&&RH(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}();sH=jH,MH(jH,"displayName","Pie"),MH(jH,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!WR,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0}),MH(jH,"parseDeltaAngle",function(e,t){return vA(t-e)*Math.min(Math.abs(t-e),360)}),MH(jH,"getRealPieData",function(e){var t=e.data,n=e.children,r=QA(e,!1),a=WA(n,MC);return t&&t.length?t.map(function(e,t){return NH(NH(NH({payload:e},r),e),a&&a[t]&&a[t].props)}):a&&a.length?a.map(function(e){return NH(NH({},r),e.props)}):[]}),MH(jH,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,a=t.width,i=t.height,o=DU(a,i);return{cx:r+xA(e.cx,a,a/2),cy:n+xA(e.cy,i,i/2),innerRadius:xA(e.innerRadius,o,0),outerRadius:xA(e.outerRadius,o,.8*o),maxRadius:e.maxRadius||Math.sqrt(a*a+i*i)/2}}),MH(jH,"getComposedData",function(e){var t=e.item,n=e.offset,r=void 0!==t.type.defaultProps?NH(NH({},t.type.defaultProps),t.props):t.props,a=sH.getRealPieData(r);if(!a||!a.length)return null;var i=r.cornerRadius,o=r.startAngle,s=r.endAngle,l=r.paddingAngle,c=r.dataKey,u=r.nameKey,d=r.valueKey,p=r.tooltipType,f=Math.abs(r.minAngle),g=sH.parseCoordinateOfPie(r,n),m=sH.parseDeltaAngle(o,s),h=Math.abs(m),b=c;rA(c)&&rA(d)?(dk(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),b="value"):rA(c)&&(dk(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),b=d);var y,v,E=a.filter(function(e){return 0!==JB(e,b,0)}).length,S=h-E*f-(h>=360?E:E-1)*l,w=a.reduce(function(e,t){var n=JB(t,b,0);return e+(SA(n)?n:0)},0);w>0&&(y=a.map(function(e,t){var n,r=JB(e,b,0),a=JB(e,u,t),s=(SA(r)?r:0)/w,c=(n=t?v.endAngle+vA(m)*l*(0!==r?1:0):o)+vA(m)*((0!==r?f:0)+s*S),d=(n+c)/2,h=(g.innerRadius+g.outerRadius)/2,y=[{name:a,value:r,payload:e,dataKey:b,type:p}],E=CU(g.cx,g.cy,h,d);return v=NH(NH(NH({percent:s,cornerRadius:i,name:a,tooltipPayload:y,midAngle:d,middleRadius:h,tooltipPosition:E},e),g),{},{value:JB(e,b),startAngle:n,endAngle:c,payload:e,paddingAngle:vA(m)*l})}));return NH(NH({},g),{},{sectors:y,data:a})});var BH=Math.ceil,UH=Math.max;var zH=function(e,t,n,r){for(var a=-1,i=UH(BH((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++a]=e,e+=n;return o},$H=vC,GH=1/0;var qH=function(e){return e?(e=$H(e))===GH||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},HH=zH,VH=hR,WH=qH;var YH=function(e){return function(t,n,r){return r&&"number"!=typeof r&&VH(t,n,r)&&(n=r=void 0),t=WH(t),void 0===n?(n=t,t=0):n=WH(n),r=void 0===r?t<n?1:-1:WH(r),HH(t,n,r,e)}}();function KH(e){return KH="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},KH(e)}function XH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ZH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XH(Object(n),!0).forEach(function(t){QH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function QH(e,t,n){var r;return r=function(e,t){if("object"!=KH(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=KH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==KH(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var JH=["Webkit","Moz","O","ms"];function eV(e){return eV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eV(e)}function tV(){return tV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tV.apply(this,arguments)}function nV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nV(Object(n),!0).forEach(function(t){cV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aV(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uV(r.key),r)}}function iV(e,t,n){return t=sV(t),function(e,t){if(t&&("object"===eV(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,oV()?Reflect.construct(t,n||[],sV(e).constructor):t.apply(e,n))}function oV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(oV=function(){return!!e})()}function sV(e){return sV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sV(e)}function lV(e,t){return lV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lV(e,t)}function cV(e,t,n){return(t=uV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uV(e){var t=function(e,t){if("object"!=eV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=eV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==eV(t)?t:t+""}var dV=function(e){return e.changedTouches&&!!e.changedTouches.length},pV=function(){function e(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),cV(n=iV(this,e,[t]),"handleDrag",function(e){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(e):n.state.isSlideMoving&&n.handleSlideDrag(e)}),cV(n,"handleTouchMove",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleDrag(e.changedTouches[0])}),cV(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var e=n.props,t=e.endIndex,r=e.onDragEnd,a=e.startIndex;null==r||r({endIndex:t,startIndex:a})}),n.detachDragEndListener()}),cV(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),cV(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),cV(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),cV(n,"handleSlideDragStart",function(e){var t=dV(e)?e.changedTouches[0]:e;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:t.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return function(e,t){if("function"!=typeof t&&null!==t)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&&lV(e,t)}(e,a),n=e,i=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var n=t.startX,r=t.endX,a=this.state.scaleValues,i=this.props,o=i.gap,s=i.data.length-1,l=Math.min(n,r),c=Math.max(n,r),u=e.getIndexInRange(a,l),d=e.getIndexInRange(a,c);return{startIndex:u-u%o,endIndex:d===s?s:d-d%o}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,a=t.dataKey,i=JB(n[e],a,e);return oS(r)?r(i,e):i}},{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(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,a=t.endX,i=this.props,o=i.x,s=i.width,l=i.travellerWidth,c=i.startIndex,u=i.endIndex,d=i.onChange,p=e.pageX-n;p>0?p=Math.min(p,o+s-l-a,o+s-l-r):p<0&&(p=Math.max(p,o-r,o-a));var f=this.getIndex({startX:r+p,endX:a+p});f.startIndex===c&&f.endIndex===u||!d||d(f),this.setState({startX:r+p,endX:a+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=dV(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t=this.state,n=t.brushMoveStartX,r=t.movingTravellerId,a=t.endX,i=t.startX,o=this.state[r],s=this.props,l=s.x,c=s.width,u=s.travellerWidth,d=s.onChange,p=s.gap,f=s.data,g={startX:this.state.startX,endX:this.state.endX},m=e.pageX-n;m>0?m=Math.min(m,l+c-u-o):m<0&&(m=Math.max(m,l-o)),g[r]=o+m;var h=this.getIndex(g),b=h.startIndex,y=h.endIndex;this.setState(cV(cV({},r,o+m),"brushMoveStartX",e.pageX),function(){var e;d&&(e=f.length-1,("startX"===r&&(a>i?b%p===0:y%p===0)||a<i&&y===e||"endX"===r&&(a>i?y%p===0:b%p===0)||a>i&&y===e)&&d(h))})}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var n=this,r=this.state,a=r.scaleValues,i=r.startX,o=r.endX,s=this.state[t],l=a.indexOf(s);if(-1!==l){var c=l+e;if(!(-1===c||c>=a.length)){var u=a[c];"startX"===t&&u>=o||"endX"===t&&u<=i||this.setState(cV({},t,u),function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))})}}}},{key:"renderBackground",value:function(){var e=this.props,n=e.x,r=e.y,a=e.width,i=e.height,o=e.fill,s=e.stroke;return t.createElement("rect",{stroke:s,fill:o,x:n,y:r,width:a,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,n=e.x,a=e.y,i=e.width,o=e.height,s=e.data,l=e.children,c=e.padding,u=r.only(l);return u?t.cloneElement(u,{x:n,y:a,width:i,height:o,margin:c,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(n,r){var a,i,o=this,s=this.props,l=s.y,c=s.travellerWidth,u=s.height,d=s.traveller,p=s.ariaLabel,f=s.data,g=s.startIndex,m=s.endIndex,h=Math.max(n,this.props.x),b=rV(rV({},QA(this.props,!1)),{},{x:h,y:l,width:c,height:u}),y=p||"Min value: ".concat(null===(a=f[g])||void 0===a?void 0:a.name,", Max value: ").concat(null===(i=f[m])||void 0===i?void 0:i.name);return t.createElement(ck,{tabIndex:0,role:"slider","aria-label":y,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[r],onTouchStart:this.travellerDragStartHandlers[r],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),o.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,r))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},e.renderTraveller(d,b))}},{key:"renderSlide",value:function(e,n){var r=this.props,a=r.y,i=r.height,o=r.stroke,s=r.travellerWidth,l=Math.min(e,n)+s,c=Math.max(Math.abs(n-e)-s,0);return t.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:o,fillOpacity:.2,x:l,y:a,width:c,height:i})}},{key:"renderText",value:function(){var e=this.props,n=e.startIndex,r=e.endIndex,a=e.y,i=e.height,o=e.travellerWidth,s=e.stroke,l=this.state,c=l.startX,u=l.endX,d={pointerEvents:"none",fill:s};return t.createElement(ck,{className:"recharts-brush-texts"},t.createElement(vD,tV({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,u)-5,y:a+i/2},d),this.getTextOfTick(n)),t.createElement(vD,tV({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,u)+o+5,y:a+i/2},d),this.getTextOfTick(r)))}},{key:"render",value:function(){var e=this.props,n=e.data,r=e.className,a=e.children,i=e.x,o=e.y,s=e.width,l=e.height,c=e.alwaysShowText,u=this.state,d=u.startX,p=u.endX,f=u.isTextActive,g=u.isSlideMoving,m=u.isTravellerMoving,h=u.isTravellerFocused;if(!n||!n.length||!SA(i)||!SA(o)||!SA(s)||!SA(l)||s<=0||l<=0)return null;var b=IE("recharts-brush",r),y=1===t.Children.count(a),v=function(e,t){var n=e.replace(/(\w)/,function(e){return e.toUpperCase()}),r=JH.reduce(function(e,r){return ZH(ZH({},e),{},QH({},r+n,t))},{});return r[e]=t,r}("userSelect","none");return t.createElement(ck,{className:b,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:v},this.renderBackground(),y&&this.renderPanorama(),this.renderSlide(d,p),this.renderTravellerLayer(d,"startX"),this.renderTravellerLayer(p,"endX"),(f||g||m||h||c)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(e){var n=e.x,r=e.y,a=e.width,i=e.height,o=e.stroke,s=Math.floor(r+i/2)-1;return t.createElement(t.Fragment,null,t.createElement("rect",{x:n,y:r,width:a,height:i,fill:o,stroke:"none"}),t.createElement("line",{x1:n+1,y1:s,x2:n+a-1,y2:s,fill:"none",stroke:"#fff"}),t.createElement("line",{x1:n+1,y1:s+2,x2:n+a-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,r){return t.isValidElement(n)?t.cloneElement(n,r):oS(n)?n(r):e.renderDefaultTraveller(r)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,a=e.x,i=e.travellerWidth,o=e.updateId,s=e.startIndex,l=e.endIndex;if(n!==t.prevData||o!==t.prevUpdateId)return rV({prevData:n,prevTravellerWidth:i,prevUpdateId:o,prevX:a,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,a=e.x,i=e.width,o=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,l=YD().domain(YH(0,s)).range([a,a+i-o]),c=l.domain().map(function(e){return l(e)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:l(n),endX:l(r),scale:l,scaleValues:c}}({data:n,width:r,x:a,travellerWidth:i,startIndex:s,endIndex:l}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||a!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([a,a+r-i]);var c=t.scale.domain().map(function(e){return t.scale(e)});return{prevData:n,prevTravellerWidth:i,prevUpdateId:o,prevX:a,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:c}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var a=Math.floor((n+r)/2);e[a]>t?r=a:n=a}return t>=e[r]?r:n}}],i&&aV(n.prototype,i),o&&aV(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}();cV(pV,"displayName","Brush"),cV(pV,"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 fV=DN;var gV=function(e,t){var n;return fV(e,function(e,r,a){return!(n=t(e,r,a))}),!!n},mV=CT,hV=FI,bV=gV,yV=NE,vV=hR;var EV=function(e,t,n){var r=yV(e)?mV:bV;return n&&vV(e,t,n)&&(t=void 0),r(e,hV(t))},SV=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t},wV=nR;var AV=function(e,t,n){"__proto__"==t&&wV?wV(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},kV=AV,xV=NN,TV=FI;var OV=function(e,t){var n={};return t=TV(t),xV(e,function(e,r,a){kV(n,r,t(e,r,a))}),n};var _V=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0},IV=DN;var NV=function(e,t){var n=!0;return IV(e,function(e,r,a){return n=!!t(e,r,a)}),n},RV=_V,CV=NV,DV=FI,PV=NE,LV=hR;var MV=function(e,t,n){var r=PV(e)?RV:CV;return n&&LV(e,t,n)&&(t=void 0),r(e,DV(t))},FV=["x","y"];function jV(e){return jV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jV(e)}function BV(){return BV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BV.apply(this,arguments)}function UV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UV(Object(n),!0).forEach(function(t){$V(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $V(e,t,n){var r;return r=function(e,t){if("object"!=jV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=jV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==jV(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GV(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function qV(e,t){var n=e.x,r=e.y,a=GV(e,FV),i="".concat(n),o=parseInt(i,10),s="".concat(r),l=parseInt(s,10),c="".concat(t.height||a.height),u=parseInt(c,10),d="".concat(t.width||a.width),p=parseInt(d,10);return zV(zV(zV(zV(zV({},t),a),o?{x:o}:{}),l?{y:l}:{}),{},{height:u,width:p,name:t.name,radius:t.radius})}function HV(e){return t.createElement(vH,BV({shapeType:"rectangle",propTransformer:qV,activeClassName:"recharts-active-bar"},e))}var VV,WV=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n,r){if("number"==typeof e)return e;var a=SA(n)||function(e){return rA(e)}(n);return a?e(n,r):(a||("production"!==process.env.NODE_ENV?OB(0,"minPointSize callback function received a value with type of ".concat(jV(n),". Currently only numbers or null/undefined are supported.")):OB()),t)}},YV=["value","background"];function KV(e){return KV="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},KV(e)}function XV(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function ZV(){return ZV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZV.apply(this,arguments)}function QV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function JV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QV(Object(n),!0).forEach(function(t){iW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function eW(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oW(r.key),r)}}function tW(e,t,n){return t=rW(t),function(e,t){if(t&&("object"===KV(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,nW()?Reflect.construct(t,n||[],rW(e).constructor):t.apply(e,n))}function nW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(nW=function(){return!!e})()}function rW(e){return rW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rW(e)}function aW(e,t){return aW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},aW(e,t)}function iW(e,t,n){return(t=oW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oW(e){var t=function(e,t){if("object"!=KV(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=KV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==KV(t)?t:t+""}var sW=function(){function e(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return iW(t=tW(this,e,[].concat(r)),"state",{isAnimationFinished:!1}),iW(t,"id",kA("recharts-bar-")),iW(t,"handleAnimationEnd",function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),e&&e()}),iW(t,"handleAnimationStart",function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),e&&e()}),t}return function(e,t){if("function"!=typeof t&&null!==t)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&&aW(e,t)}(e,a),n=e,r=[{key:"renderRectanglesStatically",value:function(e){var n=this,r=this.props,a=r.shape,i=r.dataKey,o=r.activeIndex,s=r.activeBar,l=QA(this.props,!1);return e&&e.map(function(e,r){var c=r===o,u=c?s:a,d=JV(JV(JV({},l),e),{},{isActive:c,option:u,index:r,dataKey:i,onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd});return t.createElement(ck,ZV({className:"recharts-bar-rectangle"},FA(n.props,e,r),{key:"rectangle-".concat(null==e?void 0:e.x,"-").concat(null==e?void 0:e.y,"-").concat(null==e?void 0:e.value,"-").concat(r)}),t.createElement(HV,d))})}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,n=this.props,r=n.data,a=n.layout,i=n.isAnimationActive,o=n.animationBegin,s=n.animationDuration,l=n.animationEasing,c=n.animationId,u=this.state.prevData;return t.createElement(_G,{begin:o,duration:s,isActive:i,easing:l,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(n){var i=n.t,o=r.map(function(e,t){var n=u&&u[t];if(n){var r=OA(n.x,e.x),o=OA(n.y,e.y),s=OA(n.width,e.width),l=OA(n.height,e.height);return JV(JV({},e),{},{x:r(i),y:o(i),width:s(i),height:l(i)})}if("horizontal"===a){var c=OA(0,e.height)(i);return JV(JV({},e),{},{y:e.y+e.height-c,height:c})}var d=OA(0,e.width)(i);return JV(JV({},e),{},{width:d})});return t.createElement(ck,null,e.renderRectanglesStatically(o))})}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&Aj(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,n=this.props,r=n.data,a=n.dataKey,i=n.activeIndex,o=QA(this.props.background,!1);return r.map(function(n,r){n.value;var s=n.background,l=XV(n,YV);if(!s)return null;var c=JV(JV(JV(JV(JV({},l),{},{fill:"#eee"},s),o),FA(e.props,n,r)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:a,index:r,className:"recharts-bar-background-rectangle"});return t.createElement(HV,ZV({key:"background-bar-".concat(r),option:e.props.background,isActive:r===i},c))})}},{key:"renderErrorBar",value:function(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,a=r.data,i=r.xAxis,o=r.yAxis,s=r.layout,l=WA(r.children,zB);if(!l)return null;var c="vertical"===s?a[0].height/2:a[0].width/2,u=function(e,t){var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:JB(e,t)}},d={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(ck,d,l.map(function(e){return t.cloneElement(e,{key:"error-bar-".concat(n,"-").concat(e.props.dataKey),data:a,xAxis:i,yAxis:o,layout:s,offset:c,dataPointFormatter:u})}))}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.data,a=e.className,i=e.xAxis,o=e.yAxis,s=e.left,l=e.top,c=e.width,u=e.height,d=e.isAnimationActive,p=e.background,f=e.id;if(n||!r||!r.length)return null;var g=this.state.isAnimationFinished,m=IE("recharts-bar",a),h=i&&i.allowDataOverflow,b=o&&o.allowDataOverflow,y=h||b,v=rA(f)?this.id:f;return t.createElement(ck,{className:m},h||b?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(v)},t.createElement("rect",{x:h?s:s-c/2,y:b?l:l-u/2,width:h?c:2*c,height:b?u:2*u}))):null,t.createElement(ck,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(v,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(y,v),(!d||g)&&lz.renderCallByParent(this.props,r))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],r&&eW(n.prototype,r),i&&eW(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}();function lW(e){return lW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lW(e)}function cW(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fW(r.key),r)}}function uW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uW(Object(n),!0).forEach(function(t){pW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pW(e,t,n){return(t=fW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fW(e){var t=function(e,t){if("object"!=lW(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=lW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lW(t)?t:t+""}VV=sW,iW(sW,"displayName","Bar"),iW(sW,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!WR,animationBegin:0,animationDuration:400,animationEasing:"ease"}),iW(sW,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,a=e.bandSize,i=e.xAxis,o=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,c=e.stackedData,u=e.dataStartIndex,d=e.displayedData,p=e.offset,f=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null}(r,n);if(!f)return null;var g=t.layout,m=n.type.defaultProps,h=void 0!==m?JV(JV({},m),n.props):n.props,b=h.dataKey,y=h.children,v=h.minPointSize,E="horizontal"===g?o:i,S=c?E.scale.domain():null,w=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return r<=0&&a>=0?0:a<0?a:r}return n[0]}({numericAxis:E}),A=WA(y,MC),k=d.map(function(e,t){var r,d,p,m,h,y;c?r=function(e,t){if(!t||2!==t.length||!SA(t[0])||!SA(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),a=[e[0],e[1]];return(!SA(e[0])||e[0]<n)&&(a[0]=n),(!SA(e[1])||e[1]>r)&&(a[1]=r),a[0]>r&&(a[0]=r),a[1]<n&&(a[1]=n),a}(c[u+t],S):(r=JB(e,b),Array.isArray(r)||(r=[w,r]));var E=WV(v,VV.defaultProps.minPointSize)(r[1],t);if("horizontal"===g){var k,x=[o.scale(r[0]),o.scale(r[1])],T=x[0],O=x[1];d=hU({axis:i,ticks:s,bandSize:a,offset:f.offset,entry:e,index:t}),p=null!==(k=null!=O?O:T)&&void 0!==k?k:void 0,m=f.size;var _=T-O;if(h=Number.isNaN(_)?0:_,y={x:d,y:o.y,width:m,height:o.height},Math.abs(E)>0&&Math.abs(h)<Math.abs(E)){var I=vA(h||E)*(Math.abs(E)-Math.abs(h));p-=I,h+=I}}else{var N=[i.scale(r[0]),i.scale(r[1])],R=N[0],C=N[1];if(d=R,p=hU({axis:o,ticks:l,bandSize:a,offset:f.offset,entry:e,index:t}),m=C-R,h=f.size,y={x:i.x,y:p,width:i.width,height:h},Math.abs(E)>0&&Math.abs(m)<Math.abs(E))m+=vA(m||E)*(Math.abs(E)-Math.abs(m))}return JV(JV(JV({},e),{},{x:d,y:p,width:m,height:h,value:c?r:r[1],payload:e,background:y},A&&A[t]&&A[t].props),{},{tooltipPayload:[AU(n,e)],tooltipPosition:{x:d+m/2,y:p+h/2}})});return JV({data:k,layout:g},p)});var gW=function(e,t,n,r,a){var i=e.width,o=e.height,s=e.layout,l=e.children,c=Object.keys(t),u={left:n.left,leftMirror:n.left,right:i-n.right,rightMirror:i-n.right,top:n.top,topMirror:n.top,bottom:o-n.bottom,bottomMirror:o-n.bottom},d=!!YA(l,sW);return c.reduce(function(i,o){var l,c,p,f,g,m=t[o],h=m.orientation,b=m.domain,y=m.padding,v=void 0===y?{}:y,E=m.mirror,S=m.reversed,w="".concat(h).concat(E?"Mirror":"");if("number"===m.type&&("gap"===m.padding||"no-gap"===m.padding)){var A=b[1]-b[0],k=1/0,x=m.categoricalDomain.sort(IA);if(x.forEach(function(e,t){t>0&&(k=Math.min((e||0)-(x[t-1]||0),k))}),Number.isFinite(k)){var T=k/A,O="vertical"===m.layout?n.height:n.width;if("gap"===m.padding&&(l=T*O/2),"no-gap"===m.padding){var _=xA(e.barCategoryGap,T*O),I=T*O/2;l=I-_-(I-_)/O*_}}}c="xAxis"===r?[n.left+(v.left||0)+(l||0),n.left+n.width-(v.right||0)-(l||0)]:"yAxis"===r?"horizontal"===s?[n.top+n.height-(v.bottom||0),n.top+(v.top||0)]:[n.top+(v.top||0)+(l||0),n.top+n.height-(v.bottom||0)-(l||0)]:m.range,S&&(c=[c[1],c[0]]);var N=cU(m,a,d),R=N.scale,C=N.realScaleType;R.domain(b).range(c),dU(R);var D=gU(R,dW(dW({},m),{},{realScaleType:C}));"xAxis"===r?(g="top"===h&&!E||"bottom"===h&&E,p=n.left,f=u[w]-g*m.height):"yAxis"===r&&(g="left"===h&&!E||"right"===h&&E,p=u[w]-g*m.width,f=n.top);var P=dW(dW(dW({},m),D),{},{realScaleType:C,x:p,y:f,scale:R,width:"xAxis"===r?n.width:m.width,height:"yAxis"===r?n.height:m.height});return P.bandSize=SU(P,D),m.hide||"xAxis"!==r?m.hide||(u[w]+=(g?-1:1)*P.width):u[w]+=(g?-1:1)*P.height,dW(dW({},i),{},pW({},o,P))},{})},mW=function(e,t){var n=e.x,r=e.y,a=t.x,i=t.y;return{x:Math.min(n,a),y:Math.min(r,i),width:Math.abs(a-n),height:Math.abs(i-r)}},hW=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}return t=e,n=[{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(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(n){var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],r=[{key:"create",value:function(t){return new e(t)}}],n&&cW(t.prototype,n),r&&cW(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,r}();pW(hW,"EPS",1e-4);var bW=function(e){var t=Object.keys(e).reduce(function(t,n){return dW(dW({},t),{},pW({},n,hW.create(e[n])))},{});return dW(dW({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,a=n.position;return OV(e,function(e,n){return t[n].apply(e,{bandAware:r,position:a})})},isInRange:function(e){return MV(e,function(e,n){return t[n].isInRange(e)})}})};var yW=FI,vW=XO,EW=e_;var SW=function(e){return function(t,n,r){var a=Object(t);if(!vW(t)){var i=yW(n);t=EW(t),n=function(e){return i(a[e],e,a)}}var o=e(t,n,r);return o>-1?a[i?t[o]:o]:void 0}},wW=qH;var AW=jI,kW=FI,xW=function(e){var t=wW(e),n=t%1;return t==t?n?t-n:t:0},TW=Math.max;var OW=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:xW(n);return a<0&&(a=TW(r+a,0)),AW(e,kW(t),a)},_W=SW(OW),IW=Nw(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 NW(e){return NW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},NW(e)}var RW=m(void 0),CW=m(void 0),DW=m(void 0),PW=m({}),LW=m(void 0),MW=m(0),FW=m(0),jW=function(e){var n=e.state,r=n.xAxisMap,a=n.yAxisMap,i=n.offset,o=e.clipPathId,s=e.children,l=e.width,c=e.height,u=IW(i);return t.createElement(RW.Provider,{value:r},t.createElement(CW.Provider,{value:a},t.createElement(PW.Provider,{value:i},t.createElement(DW.Provider,{value:u},t.createElement(LW.Provider,{value:o},t.createElement(MW.Provider,{value:c},t.createElement(FW.Provider,{value:l},s)))))))};function BW(e){var t=Object.keys(e);return 0===t.length?"There are no available ids.":"Available ids are: ".concat(t,".")}var UW=function(e){var t=g(RW);null==t&&("production"!==process.env.NODE_ENV?OB(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):OB());var n=t[e];return null==n&&("production"!==process.env.NODE_ENV?OB(0,'Could not find xAxis by id "'.concat(e,'" [').concat(NW(e),"]. ").concat(BW(t))):OB()),n},zW=function(e){var t=g(CW);null==t&&("production"!==process.env.NODE_ENV?OB(0,"Could not find Recharts context; are you sure this is rendered inside a Recharts wrapper component?"):OB());var n=t[e];return null==n&&("production"!==process.env.NODE_ENV?OB(0,'Could not find yAxis by id "'.concat(e,'" [').concat(NW(e),"]. ").concat(BW(t))):OB()),n},$W=function(){return g(FW)},GW=function(){return g(MW)};function qW(e){return qW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qW(e)}function HW(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,JW(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function VW(e,t,n){return t=YW(t),function(e,t){if(t&&("object"===qW(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,WW()?Reflect.construct(t,n||[],YW(e).constructor):t.apply(e,n))}function WW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(WW=function(){return!!e})()}function YW(e){return YW=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},YW(e)}function KW(e,t){return KW=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KW(e,t)}function XW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ZW(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XW(Object(n),!0).forEach(function(t){QW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function QW(e,t,n){return(t=JW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JW(e){var t=function(e,t){if("object"!=qW(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=qW(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==qW(t)?t:t+""}function eY(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return tY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tY(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nY(){return nY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nY.apply(this,arguments)}function rY(e){var n=e.x,r=e.y,a=e.segment,i=e.xAxisId,o=e.yAxisId,s=e.shape,l=e.className,c=e.alwaysShow,u=g(LW),d=UW(i),p=zW(o),f=g(DW);if(!u||!f)return null;dk(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var m=function(e,t,n,r,a,i,o,s,l){var c=a.x,u=a.y,d=a.width,p=a.height;if(n){var f=l.y,g=e.y.apply(f,{position:i});if(SV(l,"discard")&&!e.y.isInRange(g))return null;var m=[{x:c+d,y:g},{x:c,y:g}];return"left"===s?m.reverse():m}if(t){var h=l.x,b=e.x.apply(h,{position:i});if(SV(l,"discard")&&!e.x.isInRange(b))return null;var y=[{x:b,y:u+p},{x:b,y:u}];return"top"===o?y.reverse():y}if(r){var v=l.segment.map(function(t){return e.apply(t,{position:i})});return SV(l,"discard")&&EV(v,function(t){return!e.isInRange(t)})?null:v}return null}(bW({x:d.scale,y:p.scale}),wA(n),wA(r),a&&2===a.length,f,e.position,d.orientation,p.orientation,e);if(!m)return null;var h=eY(m,2),b=h[0],y=b.x,v=b.y,E=h[1],S=E.x,w=E.y,A=ZW(ZW({clipPath:SV(e,"hidden")?"url(#".concat(u,")"):void 0},QA(e,!0)),{},{x1:y,y1:v,x2:S,y2:w});return t.createElement(ck,{className:IE("recharts-reference-line",l)},function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):oS(e)?e(n):t.createElement("line",nY({},n,{className:"recharts-reference-line-line"}))}(s,A),YU.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,a=e.y2;return mW({x:t,y:n},{x:r,y:a})}({x1:y,y1:v,x2:S,y2:w})))}var aY=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),VW(this,e,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&KW(e,t)}(e,t.Component),HW(e,[{key:"render",value:function(){return t.createElement(rY,this.props)}}])}();function iY(){return iY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iY.apply(this,arguments)}function oY(e){return oY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oY(e)}function sY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sY(Object(n),!0).forEach(function(t){gY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cY(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,mY(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uY(e,t,n){return t=pY(t),function(e,t){if(t&&("object"===oY(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,dY()?Reflect.construct(t,n||[],pY(e).constructor):t.apply(e,n))}function dY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(dY=function(){return!!e})()}function pY(e){return pY=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pY(e)}function fY(e,t){return fY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fY(e,t)}function gY(e,t,n){return(t=mY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mY(e){var t=function(e,t){if("object"!=oY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=oY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==oY(t)?t:t+""}QW(aY,"displayName","ReferenceLine"),QW(aY,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var hY=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),uY(this,e,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&fY(e,t)}(e,t.Component),cY(e,[{key:"render",value:function(){var n=this.props,r=n.x,a=n.y,i=n.r,o=n.alwaysShow,s=n.clipPathId,l=wA(r),c=wA(a);if(dk(void 0===o,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!l||!c)return null;var u=function(e){var t=e.x,n=e.y,r=e.xAxis,a=e.yAxis,i=bW({x:r.scale,y:a.scale}),o=i.apply({x:t,y:n},{bandAware:!0});return SV(e,"discard")&&!i.isInRange(o)?null:o}(this.props);if(!u)return null;var d=u.x,p=u.y,f=this.props,g=f.shape,m=f.className,h=lY(lY({clipPath:SV(this.props,"hidden")?"url(#".concat(s,")"):void 0},QA(this.props,!0)),{},{cx:d,cy:p});return t.createElement(ck,{className:IE("recharts-reference-dot",m)},e.renderDot(g,h),YU.renderCallByParent(this.props,{x:d-i,y:p-i,width:2*i,height:2*i}))}}])}();function bY(){return bY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bY.apply(this,arguments)}function yY(e){return yY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yY(e)}function vY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function EY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vY(Object(n),!0).forEach(function(t){TY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function SY(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,OY(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wY(e,t,n){return t=kY(t),function(e,t){if(t&&("object"===yY(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,AY()?Reflect.construct(t,n||[],kY(e).constructor):t.apply(e,n))}function AY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(AY=function(){return!!e})()}function kY(e){return kY=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},kY(e)}function xY(e,t){return xY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xY(e,t)}function TY(e,t,n){return(t=OY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OY(e){var t=function(e,t){if("object"!=yY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=yY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==yY(t)?t:t+""}gY(hY,"displayName","ReferenceDot"),gY(hY,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),gY(hY,"renderDot",function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):oS(e)?e(n):t.createElement(KG,iY({},n,{cx:n.cx,cy:n.cy,className:"recharts-reference-dot-dot"}))});var _Y=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),wY(this,e,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&xY(e,t)}(e,t.Component),SY(e,[{key:"render",value:function(){var n=this.props,r=n.x1,a=n.x2,i=n.y1,o=n.y2,s=n.className,l=n.alwaysShow,c=n.clipPathId;dk(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=wA(r),d=wA(a),p=wA(i),f=wA(o),g=this.props.shape;if(!(u||d||p||f||g))return null;var m=function(e,t,n,r,a){var i=a.x1,o=a.x2,s=a.y1,l=a.y2,c=a.xAxis,u=a.yAxis;if(!c||!u)return null;var d=bW({x:c.scale,y:u.scale}),p={x:e?d.x.apply(i,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(s,{position:"start"}):d.y.rangeMin},f={x:t?d.x.apply(o,{position:"end"}):d.x.rangeMax,y:r?d.y.apply(l,{position:"end"}):d.y.rangeMax};return!SV(a,"discard")||d.isInRange(p)&&d.isInRange(f)?mW(p,f):null}(u,d,p,f,this.props);if(!m&&!g)return null;var h=SV(this.props,"hidden")?"url(#".concat(c,")"):void 0;return t.createElement(ck,{className:IE("recharts-reference-area",s)},e.renderRect(g,EY(EY({clipPath:h},QA(this.props,!0)),m)),YU.renderCallByParent(this.props,m))}}])}();function IY(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],a=0;a<e.length;a+=t)r.push(e[a]);return r}function NY(e,t,n){return function(e){var t=e.width,n=e.height,r=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),a=r*Math.PI/180,i=Math.atan(n/t),o=a>i&&a<Math.PI-i?n/Math.sin(a):t/Math.cos(a);return Math.abs(o)}({width:e.width+t.width,height:e.height+t.height},n)}function RY(e,t,n,r,a){if(e*t<e*r||e*t>e*a)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-a)<=0}function CY(e){return CY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},CY(e)}function DY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function PY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DY(Object(n),!0).forEach(function(t){LY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function LY(e,t,n){var r;return r=function(e,t){if("object"!=CY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=CY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==CY(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MY(e,t,n){var r=e.tick,a=e.ticks,i=e.viewBox,o=e.minTickGap,s=e.orientation,l=e.interval,c=e.tickFormatter,u=e.unit,d=e.angle;if(!a||!a.length||!r)return[];if(SA(l)||WR)return function(e,t){return IY(e,t+1)}(a,"number"==typeof l&&SA(l)?l:0);var p=[],f="top"===s||"bottom"===s?"width":"height",g=u&&"width"===f?qC(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},m=function(e,r){var a=oS(c)?c(e.value,r):e.value;return"width"===f?NY(qC(a,{fontSize:t,letterSpacing:n}),g,d):qC(a,{fontSize:t,letterSpacing:n})[f]},h=a.length>=2?vA(a[1].coordinate-a[0].coordinate):1,b=function(e,t,n){var r="width"===n,a=e.x,i=e.y,o=e.width,s=e.height;return 1===t?{start:r?a:i,end:r?a+o:i+s}:{start:r?a+o:i+s,end:r?a:i}}(i,h,f);return"equidistantPreserveStart"===l?function(e,t,n,r,a){for(var i,o=(r||[]).slice(),s=t.start,l=t.end,c=0,u=1,d=s,p=function(){var t=null==r?void 0:r[c];if(void 0===t)return{v:IY(r,u)};var i,o=c,p=function(){return void 0===i&&(i=n(t,o)),i},f=t.coordinate,g=0===c||RY(e,f,p,d,l);g||(c=0,d=s,u+=1),g&&(d=f+e*(p()/2+a),c+=u)};u<=o.length;)if(i=p())return i.v;return[]}(h,b,m,a,o):(p="preserveStart"===l||"preserveStartEnd"===l?function(e,t,n,r,a,i){var o=(r||[]).slice(),s=o.length,l=t.start,c=t.end;if(i){var u=r[s-1],d=n(u,s-1),p=e*(u.coordinate+e*d/2-c);o[s-1]=u=PY(PY({},u),{},{tickCoord:p>0?u.coordinate-p*e:u.coordinate}),RY(e,u.tickCoord,function(){return d},l,c)&&(c=u.tickCoord-e*(d/2+a),o[s-1]=PY(PY({},u),{},{isShow:!0}))}for(var f=i?s-1:s,g=function(t){var r,i=o[t],s=function(){return void 0===r&&(r=n(i,t)),r};if(0===t){var u=e*(i.coordinate-e*s()/2-l);o[t]=i=PY(PY({},i),{},{tickCoord:u<0?i.coordinate-u*e:i.coordinate})}else o[t]=i=PY(PY({},i),{},{tickCoord:i.coordinate});RY(e,i.tickCoord,s,l,c)&&(l=i.tickCoord+e*(s()/2+a),o[t]=PY(PY({},i),{},{isShow:!0}))},m=0;m<f;m++)g(m);return o}(h,b,m,a,o,"preserveStartEnd"===l):function(e,t,n,r,a){for(var i=(r||[]).slice(),o=i.length,s=t.start,l=t.end,c=function(t){var r,c=i[t],u=function(){return void 0===r&&(r=n(c,t)),r};if(t===o-1){var d=e*(c.coordinate+e*u()/2-l);i[t]=c=PY(PY({},c),{},{tickCoord:d>0?c.coordinate-d*e:c.coordinate})}else i[t]=c=PY(PY({},c),{},{tickCoord:c.coordinate});RY(e,c.tickCoord,u,s,l)&&(l=c.tickCoord-e*(u()/2+a),i[t]=PY(PY({},c),{},{isShow:!0}))},u=o-1;u>=0;u--)c(u);return i}(h,b,m,a,o),p.filter(function(e){return e.isShow}))}TY(_Y,"displayName","ReferenceArea"),TY(_Y,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),TY(_Y,"renderRect",function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):oS(e)?e(n):t.createElement(BG,bY({},n,{className:"recharts-reference-area-rect"}))});var FY=["viewBox"],jY=["viewBox"],BY=["ticks"];function UY(e){return UY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},UY(e)}function zY(){return zY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zY.apply(this,arguments)}function $Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function GY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$Y(Object(n),!0).forEach(function(t){XY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$Y(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qY(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function HY(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ZY(r.key),r)}}function VY(e,t,n){return t=YY(t),function(e,t){if(t&&("object"===UY(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,WY()?Reflect.construct(t,n||[],YY(e).constructor):t.apply(e,n))}function WY(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(WY=function(){return!!e})()}function YY(e){return YY=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},YY(e)}function KY(e,t){return KY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KY(e,t)}function XY(e,t,n){return(t=ZY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZY(e){var t=function(e,t){if("object"!=UY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=UY(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==UY(t)?t:t+""}var QY=function(){function e(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(n=VY(this,e,[t])).state={fontSize:"",letterSpacing:""},n}return function(e,t){if("function"!=typeof t&&null!==t)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&&KY(e,t)}(e,h),n=e,r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=qY(e,FY),a=this.props,i=a.viewBox,o=qY(a,jY);return!NA(n,i)||!NA(r,o)||!NA(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,n,r,a,i,o,s=this.props,l=s.x,c=s.y,u=s.width,d=s.height,p=s.orientation,f=s.tickSize,g=s.mirror,m=s.tickMargin,h=g?-1:1,b=e.tickSize||f,y=SA(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,o=(r=(a=c+ +!g*d)-h*b)-h*m,i=y;break;case"left":r=a=e.coordinate,i=(t=(n=l+ +!g*u)-h*b)-h*m,o=y;break;case"right":r=a=e.coordinate,i=(t=(n=l+ +g*u)+h*b)+h*m,o=y;break;default:t=n=e.coordinate,o=(r=(a=c+ +g*d)+h*b)+h*m,i=y}return{line:{x1:t,y1:r,x2:n,y2:a},tick:{x:i,y:o}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.x,r=e.y,a=e.width,i=e.height,o=e.orientation,s=e.mirror,l=e.axisLine,c=GY(GY(GY({},QA(this.props,!1)),QA(l,!1)),{},{fill:"none"});if("top"===o||"bottom"===o){var u=+("top"===o&&!s||"bottom"===o&&s);c=GY(GY({},c),{},{x1:n,y1:r+u*i,x2:n+a,y2:r+u*i})}else{var d=+("left"===o&&!s||"right"===o&&s);c=GY(GY({},c),{},{x1:n+d*a,y1:r,x2:n+d*a,y2:r+i})}return t.createElement("line",zY({},c,{className:IE("recharts-cartesian-axis-line",nA(l,"className"))}))}},{key:"renderTicks",value:function(n,r,a){var i=this,o=this.props,s=o.tickLine,l=o.stroke,c=o.tick,u=o.tickFormatter,d=o.unit,p=MY(GY(GY({},this.props),{},{ticks:n}),r,a),f=this.getTickTextAnchor(),g=this.getTickVerticalAnchor(),m=QA(this.props,!1),h=QA(c,!1),b=GY(GY({},m),{},{fill:"none"},QA(s,!1)),y=p.map(function(n,r){var a=i.getTickLineCoord(n),o=a.line,y=a.tick,v=GY(GY(GY(GY({textAnchor:f,verticalAnchor:g},m),{},{stroke:"none",fill:l},h),y),{},{index:r,payload:n,visibleTicksCount:p.length,tickFormatter:u});return t.createElement(ck,zY({className:"recharts-cartesian-axis-tick",key:"tick-".concat(n.value,"-").concat(n.coordinate,"-").concat(n.tickCoord)},FA(i.props,n,r)),s&&t.createElement("line",zY({},b,o,{className:IE("recharts-cartesian-axis-tick-line",nA(s,"className"))})),c&&e.renderTickItem(c,v,"".concat(oS(u)?u(n.value,r):n.value).concat(d||"")))});return t.createElement("g",{className:"recharts-cartesian-axis-ticks"},y)}},{key:"render",value:function(){var e=this,n=this.props,r=n.axisLine,a=n.width,i=n.height,o=n.ticksGenerator,s=n.className;if(n.hide)return null;var l=this.props,c=l.ticks,u=qY(l,BY),d=c;return oS(o)&&(d=c&&c.length>0?o(this.props):o(u)),a<=0||i<=0||!d||!d.length?null:t.createElement(ck,{className:IE("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},r&&this.renderAxisLine(),this.renderTicks(d,this.state.fontSize,this.state.letterSpacing),YU.renderCallByParent(this.props))}}],a=[{key:"renderTickItem",value:function(e,n,r){var a=IE(n.className,"recharts-cartesian-axis-tick-value");return t.isValidElement(e)?t.cloneElement(e,GY(GY({},n),{},{className:a})):oS(e)?e(GY(GY({},n),{},{className:a})):t.createElement(vD,zY({},n,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&HY(n.prototype,r),a&&HY(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}();XY(QY,"displayName","CartesianAxis"),XY(QY,"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 JY=["x1","y1","x2","y2","key"],eK=["offset"];function tK(e){return tK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tK(e)}function nK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nK(Object(n),!0).forEach(function(t){aK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aK(e,t,n){var r;return r=function(e,t){if("object"!=tK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=tK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==tK(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iK(){return iK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iK.apply(this,arguments)}function oK(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var sK=function(e){var n=e.fill;if(!n||"none"===n)return null;var r=e.fillOpacity,a=e.x,i=e.y,o=e.width,s=e.height,l=e.ry;return t.createElement("rect",{x:a,y:i,ry:l,width:o,height:s,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function lK(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(oS(e))r=e(n);else{var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.key,c=oK(n,JY),u=QA(c,!1);u.offset;var d=oK(u,eK);r=t.createElement("line",iK({},d,{x1:a,y1:i,x2:o,y2:s,fill:"none",key:l}))}return r}function cK(e){var n=e.x,r=e.width,a=e.horizontal,i=void 0===a||a,o=e.horizontalPoints;if(!i||!o||!o.length)return null;var s=o.map(function(t,a){var o=rK(rK({},e),{},{x1:n,y1:t,x2:n+r,y2:t,key:"line-".concat(a),index:a});return lK(i,o)});return t.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function uK(e){var n=e.y,r=e.height,a=e.vertical,i=void 0===a||a,o=e.verticalPoints;if(!i||!o||!o.length)return null;var s=o.map(function(t,a){var o=rK(rK({},e),{},{x1:t,y1:n,x2:t,y2:n+r,key:"line-".concat(a),index:a});return lK(i,o)});return t.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function dK(e){var n=e.horizontalFill,r=e.fillOpacity,a=e.x,i=e.y,o=e.width,s=e.height,l=e.horizontalPoints,c=e.horizontal;if(!(void 0===c||c)||!n||!n.length)return null;var u=l.map(function(e){return Math.round(e+i-i)}).sort(function(e,t){return e-t});i!==u[0]&&u.unshift(0);var d=u.map(function(e,l){var c=!u[l+1]?i+s-e:u[l+1]-e;if(c<=0)return null;var d=l%n.length;return t.createElement("rect",{key:"react-".concat(l),y:e,x:a,height:c,width:o,stroke:"none",fill:n[d],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return t.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function pK(e){var n=e.vertical,r=void 0===n||n,a=e.verticalFill,i=e.fillOpacity,o=e.x,s=e.y,l=e.width,c=e.height,u=e.verticalPoints;if(!r||!a||!a.length)return null;var d=u.map(function(e){return Math.round(e+o-o)}).sort(function(e,t){return e-t});o!==d[0]&&d.unshift(0);var p=d.map(function(e,n){var r=!d[n+1]?o+l-e:d[n+1]-e;if(r<=0)return null;var u=n%a.length;return t.createElement("rect",{key:"react-".concat(n),x:e,y:s,width:r,height:c,stroke:"none",fill:a[u],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return t.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var fK=function(e,t){var n=e.xAxis,r=e.width,a=e.height,i=e.offset;return iU(MY(rK(rK(rK({},QY.defaultProps),n),{},{ticks:oU(n,!0),viewBox:{x:0,y:0,width:r,height:a}})),i.left,i.left+i.width,t)},gK=function(e,t){var n=e.yAxis,r=e.width,a=e.height,i=e.offset;return iU(MY(rK(rK(rK({},QY.defaultProps),n),{},{ticks:oU(n,!0),viewBox:{x:0,y:0,width:r,height:a}})),i.top,i.top+i.height,t)},mK={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function hK(e){var n,r,a,i,o,s,l,c,u=$W(),d=GW(),p=g(PW),f=rK(rK({},e),{},{stroke:null!==(n=e.stroke)&&void 0!==n?n:mK.stroke,fill:null!==(r=e.fill)&&void 0!==r?r:mK.fill,horizontal:null!==(a=e.horizontal)&&void 0!==a?a:mK.horizontal,horizontalFill:null!==(i=e.horizontalFill)&&void 0!==i?i:mK.horizontalFill,vertical:null!==(o=e.vertical)&&void 0!==o?o:mK.vertical,verticalFill:null!==(s=e.verticalFill)&&void 0!==s?s:mK.verticalFill,x:SA(e.x)?e.x:p.left,y:SA(e.y)?e.y:p.top,width:SA(e.width)?e.width:p.width,height:SA(e.height)?e.height:p.height}),m=f.x,h=f.y,b=f.width,y=f.height,v=f.syncWithTicks,E=f.horizontalValues,S=f.verticalValues,w=(l=g(RW),TA(l)),A=(c=g(CW),_W(c,function(e){return MV(e.domain,Number.isFinite)})||TA(c));if(!SA(b)||b<=0||!SA(y)||y<=0||!SA(m)||m!==+m||!SA(h)||h!==+h)return null;var k=f.verticalCoordinatesGenerator||fK,x=f.horizontalCoordinatesGenerator||gK,T=f.horizontalPoints,O=f.verticalPoints;if((!T||!T.length)&&oS(x)){var _=E&&E.length,I=x({yAxis:A?rK(rK({},A),{},{ticks:_?E:A.ticks}):void 0,width:u,height:d,offset:p},!!_||v);dk(Array.isArray(I),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(tK(I),"]")),Array.isArray(I)&&(T=I)}if((!O||!O.length)&&oS(k)){var N=S&&S.length,R=k({xAxis:w?rK(rK({},w),{},{ticks:N?S:w.ticks}):void 0,width:u,height:d,offset:p},!!N||v);dk(Array.isArray(R),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(tK(R),"]")),Array.isArray(R)&&(O=R)}return t.createElement("g",{className:"recharts-cartesian-grid"},t.createElement(sK,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),t.createElement(cK,iK({},f,{offset:p,horizontalPoints:T,xAxis:w,yAxis:A})),t.createElement(uK,iK({},f,{offset:p,verticalPoints:O,xAxis:w,yAxis:A})),t.createElement(dK,iK({},f,{horizontalPoints:T})),t.createElement(pK,iK({},f,{verticalPoints:O})))}hK.displayName="CartesianGrid";var bK=["type","layout","connectNulls","ref"],yK=["key"];function vK(e){return vK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vK(e)}function EK(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function SK(){return SK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SK.apply(this,arguments)}function wK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function AK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wK(Object(n),!0).forEach(function(t){RK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kK(e){return function(e){if(Array.isArray(e))return xK(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return xK(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xK(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xK(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function TK(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,CK(r.key),r)}}function OK(e,t,n){return t=IK(t),function(e,t){if(t&&("object"===vK(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_K()?Reflect.construct(t,n||[],IK(e).constructor):t.apply(e,n))}function _K(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_K=function(){return!!e})()}function IK(e){return IK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},IK(e)}function NK(e,t){return NK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},NK(e,t)}function RK(e,t,n){return(t=CK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CK(e){var t=function(e,t){if("object"!=vK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=vK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==vK(t)?t:t+""}var DK=function(){function e(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return RK(t=OK(this,e,[].concat(r)),"state",{isAnimationFinished:!0,totalLength:0}),RK(t,"generateSimpleStrokeDasharray",function(e,t){return"".concat(t,"px ").concat(e-t,"px")}),RK(t,"getStrokeDasharray",function(n,r,a){var i=a.reduce(function(e,t){return e+t});if(!i)return t.generateSimpleStrokeDasharray(r,n);for(var o=Math.floor(n/i),s=n%i,l=r-n,c=[],u=0,d=0;u<a.length;d+=a[u],++u)if(d+a[u]>s){c=[].concat(kK(a.slice(0,u)),[s-d]);break}var p=c.length%2==0?[0,l]:[l];return[].concat(kK(e.repeat(a,o)),kK(c),p).map(function(e){return"".concat(e,"px")}).join(", ")}),RK(t,"id",kA("recharts-line-")),RK(t,"pathRef",function(e){t.mainCurve=e}),RK(t,"handleAnimationEnd",function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()}),RK(t,"handleAnimationStart",function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()}),t}return function(e,t){if("function"!=typeof t&&null!==t)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&&NK(e,t)}(e,a),n=e,r=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();e!==this.state.totalLength&&this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,a=r.points,i=r.xAxis,o=r.yAxis,s=r.layout,l=WA(r.children,zB);if(!l)return null;var c=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:JB(e.payload,t)}},u={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(ck,u,l.map(function(e){return t.cloneElement(e,{key:"bar-".concat(e.props.dataKey),data:a,xAxis:i,yAxis:o,layout:s,dataPointFormatter:c})}))}},{key:"renderDots",value:function(n,r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.dot,s=i.points,l=i.dataKey,c=QA(this.props,!1),u=QA(o,!0),d=s.map(function(t,n){var r=AK(AK(AK({key:"dot-".concat(n),r:3},c),u),{},{index:n,cx:t.x,cy:t.y,value:t.value,dataKey:l,payload:t.payload,points:s});return e.renderDotItem(o,r)}),p={clipPath:n?"url(#clipPath-".concat(r?"":"dots-").concat(a,")"):null};return t.createElement(ck,SK({className:"recharts-line-dots",key:"dots"},p),d)}},{key:"renderCurveStatically",value:function(e,n,r,a){var i=this.props,o=i.type,s=i.layout,l=i.connectNulls;i.ref;var c=EK(i,bK),u=AK(AK(AK({},QA(c,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:n?"url(#clipPath-".concat(r,")"):null,points:e},a),{},{type:o,layout:s,connectNulls:l});return t.createElement(Iz,SK({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,n){var r=this,a=this.props,i=a.points,o=a.strokeDasharray,s=a.isAnimationActive,l=a.animationBegin,c=a.animationDuration,u=a.animationEasing,d=a.animationId,p=a.animateNewValues,f=a.width,g=a.height,m=this.state,h=m.prevPoints,b=m.totalLength;return t.createElement(_G,{begin:l,duration:c,isActive:s,easing:u,from:{t:0},to:{t:1},key:"line-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(t){var a=t.t;if(h){var s=h.length/i.length,l=i.map(function(e,t){var n=Math.floor(t*s);if(h[n]){var r=h[n],i=OA(r.x,e.x),o=OA(r.y,e.y);return AK(AK({},e),{},{x:i(a),y:o(a)})}if(p){var l=OA(2*f,e.x),c=OA(g/2,e.y);return AK(AK({},e),{},{x:l(a),y:c(a)})}return AK(AK({},e),{},{x:e.x,y:e.y})});return r.renderCurveStatically(l,e,n)}var c,u=OA(0,b)(a);if(o){var d="".concat(o).split(/[,\s]+/gim).map(function(e){return parseFloat(e)});c=r.getStrokeDasharray(u,b,d)}else c=r.generateSimpleStrokeDasharray(b,u);return r.renderCurveStatically(i,e,n,{strokeDasharray:c})})}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,a=n.isAnimationActive,i=this.state,o=i.prevPoints,s=i.totalLength;return a&&r&&r.length&&(!o&&s>0||!Aj(o,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e,n=this.props,r=n.hide,a=n.dot,i=n.points,o=n.className,s=n.xAxis,l=n.yAxis,c=n.top,u=n.left,d=n.width,p=n.height,f=n.isAnimationActive,g=n.id;if(r||!i||!i.length)return null;var m=this.state.isAnimationFinished,h=1===i.length,b=IE("recharts-line",o),y=s&&s.allowDataOverflow,v=l&&l.allowDataOverflow,E=y||v,S=rA(g)?this.id:g,w=null!==(e=QA(a,!1))&&void 0!==e?e:{r:3,strokeWidth:2},A=w.r,k=void 0===A?3:A,x=w.strokeWidth,T=void 0===x?2:x,O=(ZA(a)?a:{}).clipDot,_=void 0===O||O,I=2*k+T;return t.createElement(ck,{className:b},y||v?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(S)},t.createElement("rect",{x:y?u:u-d/2,y:v?c:c-p/2,width:y?d:2*d,height:v?p:2*p})),!_&&t.createElement("clipPath",{id:"clipPath-dots-".concat(S)},t.createElement("rect",{x:u-I/2,y:c-I/2,width:d+I,height:p+I}))):null,!h&&this.renderCurve(E,S),this.renderErrorBar(E,S),(h||a)&&this.renderDots(E,_,S),(!f||m)&&lz.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var n=e.length%2!=0?[].concat(kK(e),[0]):e,r=[],a=0;a<t;++a)r=[].concat(kK(r),kK(n));return r}},{key:"renderDotItem",value:function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(oS(e))r=e(n);else{var a=n.key,i=EK(n,yK),o=IE("recharts-line-dot","boolean"!=typeof e?e.className:"");r=t.createElement(KG,SK({key:a},i,{className:o}))}return r}}],r&&TK(n.prototype,r),i&&TK(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}();RK(DK,"displayName","Line"),RK(DK,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!WR,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),RK(DK,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,a=e.xAxisTicks,i=e.yAxisTicks,o=e.dataKey,s=e.bandSize,l=e.displayedData,c=e.offset,u=t.layout,d=l.map(function(e,t){var l=JB(e,o);return"horizontal"===u?{x:mU({axis:n,ticks:a,bandSize:s,entry:e,index:t}),y:rA(l)?null:r.scale(l),value:l,payload:e}:{x:rA(l)?null:n.scale(l),y:mU({axis:r,ticks:i,bandSize:s,entry:e,index:t}),value:l,payload:e}});return AK({points:d,layout:u},c)});var PK,LK=["layout","type","stroke","connectNulls","isRange","ref"],MK=["key"];function FK(e){return FK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},FK(e)}function jK(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function BK(){return BK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BK.apply(this,arguments)}function UK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UK(Object(n),!0).forEach(function(t){WK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YK(r.key),r)}}function GK(e,t,n){return t=HK(t),function(e,t){if(t&&("object"===FK(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,qK()?Reflect.construct(t,n||[],HK(e).constructor):t.apply(e,n))}function qK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qK=function(){return!!e})()}function HK(e){return HK=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},HK(e)}function VK(e,t){return VK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},VK(e,t)}function WK(e,t,n){return(t=YK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YK(e){var t=function(e,t){if("object"!=FK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=FK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==FK(t)?t:t+""}var KK=function(){function e(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return WK(t=GK(this,e,[].concat(r)),"state",{isAnimationFinished:!0}),WK(t,"id",kA("recharts-area-")),WK(t,"handleAnimationEnd",function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),oS(e)&&e()}),WK(t,"handleAnimationStart",function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),oS(e)&&e()}),t}return function(e,t){if("function"!=typeof t&&null!==t)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&&VK(e,t)}(e,a),n=e,r=[{key:"renderDots",value:function(n,r,a){var i=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(i&&!o)return null;var s=this.props,l=s.dot,c=s.points,u=s.dataKey,d=QA(this.props,!1),p=QA(l,!0),f=c.map(function(t,n){var r=zK(zK(zK({key:"dot-".concat(n),r:3},d),p),{},{index:n,cx:t.x,cy:t.y,dataKey:u,value:t.value,payload:t.payload,points:c});return e.renderDotItem(l,r)}),g={clipPath:n?"url(#clipPath-".concat(r?"":"dots-").concat(a,")"):null};return t.createElement(ck,BK({className:"recharts-area-dots"},g),f)}},{key:"renderHorizontalRect",value:function(e){var n=this.props,r=n.baseLine,a=n.points,i=n.strokeWidth,o=a[0].x,s=a[a.length-1].x,l=e*Math.abs(o-s),c=lj(a.map(function(e){return e.y||0}));return SA(r)&&"number"==typeof r?c=Math.max(r,c):r&&Array.isArray(r)&&r.length&&(c=Math.max(lj(r.map(function(e){return e.y||0})),c)),SA(c)?t.createElement("rect",{x:o<s?o:o-l,y:0,width:l,height:Math.floor(c+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(e){var n=this.props,r=n.baseLine,a=n.points,i=n.strokeWidth,o=a[0].y,s=a[a.length-1].y,l=e*Math.abs(o-s),c=lj(a.map(function(e){return e.x||0}));return SA(r)&&"number"==typeof r?c=Math.max(r,c):r&&Array.isArray(r)&&r.length&&(c=Math.max(lj(r.map(function(e){return e.x||0})),c)),SA(c)?t.createElement("rect",{x:0,y:o<s?o:o-l,width:c+(i?parseInt("".concat(i),10):1),height:Math.floor(l)}):null}},{key:"renderClipRect",value:function(e){return"vertical"===this.props.layout?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:"renderAreaStatically",value:function(e,n,r,a){var i=this.props,o=i.layout,s=i.type,l=i.stroke,c=i.connectNulls,u=i.isRange;i.ref;var d=jK(i,LK);return t.createElement(ck,{clipPath:r?"url(#clipPath-".concat(a,")"):null},t.createElement(Iz,BK({},QA(d,!0),{points:e,connectNulls:c,type:s,baseLine:n,layout:o,stroke:"none",className:"recharts-area-area"})),"none"!==l&&t.createElement(Iz,BK({},QA(this.props,!1),{className:"recharts-area-curve",layout:o,type:s,connectNulls:c,fill:"none",points:e})),"none"!==l&&u&&t.createElement(Iz,BK({},QA(this.props,!1),{className:"recharts-area-curve",layout:o,type:s,connectNulls:c,fill:"none",points:n})))}},{key:"renderAreaWithAnimation",value:function(e,n){var r=this,a=this.props,i=a.points,o=a.baseLine,s=a.isAnimationActive,l=a.animationBegin,c=a.animationDuration,u=a.animationEasing,d=a.animationId,p=this.state,f=p.prevPoints,g=p.prevBaseLine;return t.createElement(_G,{begin:l,duration:c,isActive:s,easing:u,from:{t:0},to:{t:1},key:"area-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(a){var s=a.t;if(f){var l,c=f.length/i.length,u=i.map(function(e,t){var n=Math.floor(t*c);if(f[n]){var r=f[n],a=OA(r.x,e.x),i=OA(r.y,e.y);return zK(zK({},e),{},{x:a(s),y:i(s)})}return e});return l=SA(o)&&"number"==typeof o?OA(g,o)(s):rA(o)||yA(o)?OA(g,0)(s):o.map(function(e,t){var n=Math.floor(t*c);if(g[n]){var r=g[n],a=OA(r.x,e.x),i=OA(r.y,e.y);return zK(zK({},e),{},{x:a(s),y:i(s)})}return e}),r.renderAreaStatically(u,l,e,n)}return t.createElement(ck,null,t.createElement("defs",null,t.createElement("clipPath",{id:"animationClipPath-".concat(n)},r.renderClipRect(s))),t.createElement(ck,{clipPath:"url(#animationClipPath-".concat(n,")")},r.renderAreaStatically(i,o,e,n)))})}},{key:"renderArea",value:function(e,t){var n=this.props,r=n.points,a=n.baseLine,i=n.isAnimationActive,o=this.state,s=o.prevPoints,l=o.prevBaseLine,c=o.totalLength;return i&&r&&r.length&&(!s&&c>0||!Aj(s,r)||!Aj(l,a))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,a,e,t)}},{key:"render",value:function(){var e,n=this.props,r=n.hide,a=n.dot,i=n.points,o=n.className,s=n.top,l=n.left,c=n.xAxis,u=n.yAxis,d=n.width,p=n.height,f=n.isAnimationActive,g=n.id;if(r||!i||!i.length)return null;var m=this.state.isAnimationFinished,h=1===i.length,b=IE("recharts-area",o),y=c&&c.allowDataOverflow,v=u&&u.allowDataOverflow,E=y||v,S=rA(g)?this.id:g,w=null!==(e=QA(a,!1))&&void 0!==e?e:{r:3,strokeWidth:2},A=w.r,k=void 0===A?3:A,x=w.strokeWidth,T=void 0===x?2:x,O=(ZA(a)?a:{}).clipDot,_=void 0===O||O,I=2*k+T;return t.createElement(ck,{className:b},y||v?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(S)},t.createElement("rect",{x:y?l:l-d/2,y:v?s:s-p/2,width:y?d:2*d,height:v?p:2*p})),!_&&t.createElement("clipPath",{id:"clipPath-dots-".concat(S)},t.createElement("rect",{x:l-I/2,y:s-I/2,width:d+I,height:p+I}))):null,h?null:this.renderArea(E,S),(a||h)&&this.renderDots(E,_,S),(!f||m)&&lz.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],r&&$K(n.prototype,r),i&&$K(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}();function XK(e){return XK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},XK(e)}function ZK(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rX(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function QK(e,t,n){return t=eX(t),function(e,t){if(t&&("object"===XK(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,JK()?Reflect.construct(t,n||[],eX(e).constructor):t.apply(e,n))}function JK(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(JK=function(){return!!e})()}function eX(e){return eX=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eX(e)}function tX(e,t){return tX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tX(e,t)}function nX(e,t,n){return(t=rX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rX(e){var t=function(e,t){if("object"!=XK(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=XK(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==XK(t)?t:t+""}function aX(){return aX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aX.apply(this,arguments)}function iX(t){var n=t.xAxisId,r=$W(),a=GW(),i=UW(n);return null==i?null:e.createElement(QY,aX({},i,{className:IE("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(e){return oU(e,!0)}}))}PK=KK,WK(KK,"displayName","Area"),WK(KK,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!WR,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),WK(KK,"getBaseValue",function(e,t,n,r){var a=e.layout,i=e.baseValue,o=t.props.baseValue,s=null!=o?o:i;if(SA(s)&&"number"==typeof s)return s;var l="horizontal"===a?r:n,c=l.scale.domain();if("number"===l.type){var u=Math.max(c[0],c[1]),d=Math.min(c[0],c[1]);return"dataMin"===s?d:"dataMax"===s||u<0?u:Math.max(Math.min(c[0],c[1]),0)}return"dataMin"===s?c[0]:"dataMax"===s?c[1]:c[0]}),WK(KK,"getComposedData",function(e){var t,n=e.props,r=e.item,a=e.xAxis,i=e.yAxis,o=e.xAxisTicks,s=e.yAxisTicks,l=e.bandSize,c=e.dataKey,u=e.stackedData,d=e.dataStartIndex,p=e.displayedData,f=e.offset,g=n.layout,m=u&&u.length,h=PK.getBaseValue(n,r,a,i),b="horizontal"===g,y=!1,v=p.map(function(e,t){var n;m?n=u[d+t]:(n=JB(e,c),Array.isArray(n)?y=!0:n=[h,n]);var r=null==n[1]||m&&null==JB(e,c);return b?{x:mU({axis:a,ticks:o,bandSize:l,entry:e,index:t}),y:r?null:i.scale(n[1]),value:n,payload:e}:{x:r?null:a.scale(n[1]),y:mU({axis:i,ticks:s,bandSize:l,entry:e,index:t}),value:n,payload:e}});return t=m||y?v.map(function(e){var t=Array.isArray(e.value)?e.value[0]:null;return b?{x:e.x,y:null!=t&&null!=e.y?i.scale(t):null}:{x:null!=t?a.scale(t):null,y:e.y}}):b?i.scale(h):a.scale(h),zK({points:v,baseLine:t,layout:g,isRange:y},f)}),WK(KK,"renderDotItem",function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(oS(e))r=e(n);else{var a=IE("recharts-area-dot","boolean"!=typeof e?e.className:""),i=n.key,o=jK(n,MK);r=t.createElement(KG,BK({},o,{key:i,className:a}))}return r});var oX=function(){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),QK(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&tX(e,t)}(t,e.Component),ZK(t,[{key:"render",value:function(){return e.createElement(iX,this.props)}}])}();function sX(e){return sX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sX(e)}function lX(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gX(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function cX(e,t,n){return t=dX(t),function(e,t){if(t&&("object"===sX(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,uX()?Reflect.construct(t,n||[],dX(e).constructor):t.apply(e,n))}function uX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(uX=function(){return!!e})()}function dX(e){return dX=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dX(e)}function pX(e,t){return pX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pX(e,t)}function fX(e,t,n){return(t=gX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gX(e){var t=function(e,t){if("object"!=sX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=sX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==sX(t)?t:t+""}function mX(){return mX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mX.apply(this,arguments)}nX(oX,"displayName","XAxis"),nX(oX,"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});var hX=function(t){var n=t.yAxisId,r=$W(),a=GW(),i=zW(n);return null==i?null:e.createElement(QY,mX({},i,{className:IE("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(e){return oU(e,!0)}}))},bX=function(){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),cX(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)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&&pX(e,t)}(t,e.Component),lX(t,[{key:"render",value:function(){return e.createElement(hX,this.props)}}])}();function yX(e){return function(e){if(Array.isArray(e))return vX(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return vX(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vX(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}fX(bX,"displayName","YAxis"),fX(bX,"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});var EX=function(e,t,n,r,a){var i=WA(e,aY),o=WA(e,hY),s=[].concat(yX(i),yX(o)),l=WA(e,_Y),c="".concat(r,"Id"),u=r[0],d=t;if(s.length&&(d=s.reduce(function(e,t){if(t.props[c]===n&&SV(t.props,"extendDomain")&&SA(t.props[u])){var r=t.props[u];return[Math.min(e[0],r),Math.max(e[1],r)]}return e},d)),l.length){var p="".concat(u,"1"),f="".concat(u,"2");d=l.reduce(function(e,t){if(t.props[c]===n&&SV(t.props,"extendDomain")&&SA(t.props[p])&&SA(t.props[f])){var r=t.props[p],a=t.props[f];return[Math.min(e[0],r,a),Math.max(e[1],r,a)]}return e},d)}return a&&a.length&&(d=a.reduce(function(e,t){return SA(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e},d)),d},SX={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,o){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new a(r,i||e,o),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function o(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,a=[];if(0===this._eventsCount)return a;for(r in e=this._events)t.call(e,r)&&a.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var a=0,i=r.length,o=new Array(i);a<i;a++)o[a]=r[a].fn;return o},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,a,i,o){var s=n?n+e:e;if(!this._events[s])return!1;var l,c,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,a),!0;case 5:return u.fn.call(u.context,t,r,a,i),!0;case 6:return u.fn.call(u.context,t,r,a,i,o),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var p,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,r);break;case 4:u[c].fn.call(u[c].context,t,r,a);break;default:if(!l)for(p=1,l=new Array(d-1);p<d;p++)l[p-1]=arguments[p];u[c].fn.apply(u[c].context,l)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,a){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return o(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||a&&!s.once||r&&s.context!==r||o(this,i);else{for(var l=0,c=[],u=s.length;l<u;l++)(s[l].fn!==t||a&&!s[l].once||r&&s[l].context!==r)&&c.push(s[l]);c.length?this._events[i]=1===c.length?c[0]:c:o(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&o(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(SX);var wX=new(0,SX.exports),AX="recharts.syncMouseEvents";function kX(e){return kX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kX(e)}function xX(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,OX(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function TX(e,t,n){return(t=OX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OX(e){var t=function(e,t){if("object"!=kX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=kX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==kX(t)?t:t+""}var _X=function(){return xX(function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),TX(this,"activeIndex",0),TX(this,"coordinateList",[]),TX(this,"layout","horizontal")},[{key:"setDetails",value:function(e){var t,n=e.coordinateList,r=void 0===n?null:n,a=e.container,i=void 0===a?null:a,o=e.layout,s=void 0===o?null:o,l=e.offset,c=void 0===l?null:l,u=e.mouseHandlerCallback,d=void 0===u?null:u;this.coordinateList=null!==(t=null!=r?r:this.coordinateList)&&void 0!==t?t:[],this.container=null!=i?i:this.container,this.layout=null!=s?s:this.layout,this.offset=null!=c?c:this.offset,this.mouseHandlerCallback=null!=d?d: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(e){if(0!==this.coordinateList.length)switch(e.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(e){this.activeIndex=e}},{key:"spoofMouse",value:function(){var e,t;if("horizontal"===this.layout&&0!==this.coordinateList.length){var n=this.container.getBoundingClientRect(),r=n.x,a=n.y,i=n.height,o=this.coordinateList[this.activeIndex].coordinate,s=(null===(e=window)||void 0===e?void 0:e.scrollX)||0,l=(null===(t=window)||void 0===t?void 0:t.scrollY)||0,c=r+o+s,u=a+this.offset.top+i/2+l;this.mouseHandlerCallback({pageX:c,pageY:u})}}}])}();function IX(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,i=e.endAngle;return{points:[CU(t,n,r,a),CU(t,n,r,i)],cx:t,cy:n,radius:r,startAngle:a,endAngle:i}}function NX(e,t,n){var r,a,i,o;if("horizontal"===e)i=r=t.x,a=n.top,o=n.top+n.height;else if("vertical"===e)o=a=t.y,r=n.left,i=n.left+n.width;else if(null!=t.cx&&null!=t.cy){if("centric"!==e)return IX(t);var s=t.cx,l=t.cy,c=t.innerRadius,u=t.outerRadius,d=t.angle,p=CU(s,l,c,d),f=CU(s,l,u,d);r=p.x,a=p.y,i=f.x,o=f.y}return[{x:r,y:a},{x:i,y:o}]}function RX(e){return RX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},RX(e)}function CX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function DX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CX(Object(n),!0).forEach(function(t){PX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function PX(e,t,n){var r;return r=function(e,t){if("object"!=RX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=RX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==RX(r)?r:r+"")in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LX(e){var t,r,a,i=e.element,o=e.tooltipEventType,s=e.isActive,l=e.activeCoordinate,c=e.activePayload,u=e.offset,d=e.activeTooltipIndex,g=e.tooltipAxisBandSize,m=e.layout,h=e.chartName,b=null!==(t=i.props.cursor)&&void 0!==t?t:null===(r=i.type.defaultProps)||void 0===r?void 0:r.cursor;if(!i||!b||!s||!l||"ScatterChart"!==h&&"axis"!==o)return null;var y=Iz;if("ScatterChart"===h)a=l,y=rq;else if("BarChart"===h)a=function(e,t,n,r){var a=r/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-a:n.left+.5,y:"horizontal"===e?n.top+.5:t.y-a,width:"horizontal"===e?r:n.width-1,height:"horizontal"===e?n.height-1:r}}(m,l,u,g),y=BG;else if("radial"===m){var v=IX(l),E=v.cx,S=v.cy,w=v.radius;a={cx:E,cy:S,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:w,outerRadius:w},y=bz}else a={points:NX(m,l,u)},y=Iz;var A=DX(DX(DX(DX({stroke:"#ccc",pointerEvents:"none"},u),a),QA(b,!1)),{},{payload:c,payloadIndex:d,className:IE("recharts-tooltip-cursor",b.className)});return n(b)?p(b,A):f(y,A)}var MX=["item"],FX=["children","className","width","height","style","compact","title","desc"];function jX(e){return jX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jX(e)}function BX(){return BX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BX.apply(this,arguments)}function UX(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i,o,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t);else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}(e,t)||YX(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zX(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function $X(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,JX(r.key),r)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function GX(e,t,n){return t=HX(t),function(e,t){if(t&&("object"===jX(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,qX()?Reflect.construct(t,n||[],HX(e).constructor):t.apply(e,n))}function qX(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qX=function(){return!!e})()}function HX(e){return HX=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},HX(e)}function VX(e,t){return VX=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},VX(e,t)}function WX(e){return function(e){if(Array.isArray(e))return KX(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||YX(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function YX(e,t){if(e){if("string"==typeof e)return KX(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?KX(e,t):void 0}}function KX(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ZX(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XX(Object(n),!0).forEach(function(t){QX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function QX(e,t,n){return(t=JX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JX(e){var t=function(e,t){if("object"!=jX(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=jX(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==jX(t)?t:t+""}var eZ={xAxis:["bottom","top"],yAxis:["left","right"]},tZ={width:"100%",height:"100%"},nZ={x:0,y:0};function rZ(e){return e}var aZ=function(e,t){var n=t.graphicalItems,r=t.dataStartIndex,a=t.dataEndIndex,i=(null!=n?n:[]).reduce(function(e,t){var n=t.props.data;return n&&n.length?[].concat(WX(e),WX(n)):e},[]);return i.length>0?i:e&&e.length&&SA(r)&&SA(a)?e.slice(r,a+1):[]};function iZ(e){return"number"===e?[0,"auto"]:void 0}var oZ=function(e,t,n,r){var a=e.graphicalItems,i=e.tooltipAxis,o=aZ(t,e);return n<0||!a||!a.length||n>=o.length?null:a.reduce(function(a,s){var l,c,u=null!==(l=s.props.data)&&void 0!==l?l:t;(u&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=n&&(u=u.slice(e.dataStartIndex,e.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?c=_A(void 0===u?o:u,i.dataKey,r):c=u&&u[n]||o[n];return c?[].concat(WX(a),[AU(s,c)]):a},[])},sZ=function(e,t,n,r){var a=r||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(a,n),o=e.orderedTooltipTicks,s=e.tooltipAxis,l=e.tooltipTicks,c=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,i=-1,o=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(o<=1)return 0;if(a&&"angleAxis"===a.axisType&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var s=a.range,l=0;l<o;l++){var c=l>0?r[l-1].coordinate:r[o-1].coordinate,u=r[l].coordinate,d=l>=o-1?r[0].coordinate:r[l+1].coordinate,p=void 0;if(vA(u-c)!==vA(d-u)){var f=[];if(vA(d-u)===vA(s[1]-s[0])){p=d;var g=u+s[1]-s[0];f[0]=Math.min(g,(g+c)/2),f[1]=Math.max(g,(g+c)/2)}else{p=c;var m=d+s[1]-s[0];f[0]=Math.min(u,(m+u)/2),f[1]=Math.max(u,(m+u)/2)}var h=[Math.min(u,(p+u)/2),Math.max(u,(p+u)/2)];if(e>h[0]&&e<=h[1]||e>=f[0]&&e<=f[1]){i=r[l].index;break}}else{var b=Math.min(c,d),y=Math.max(c,d);if(e>(b+u)/2&&e<=(y+u)/2){i=r[l].index;break}}}else for(var v=0;v<o;v++)if(0===v&&e<=(n[v].coordinate+n[v+1].coordinate)/2||v>0&&v<o-1&&e>(n[v].coordinate+n[v-1].coordinate)/2&&e<=(n[v].coordinate+n[v+1].coordinate)/2||v===o-1&&e>(n[v].coordinate+n[v-1].coordinate)/2){i=n[v].index;break}return i}(i,o,l,s);if(c>=0&&l){var u=l[c]&&l[c].value,d=oZ(e,t,c,u),p=function(e,t,n,r){var a=t.find(function(e){return e&&e.index===n});if(a){if("horizontal"===e)return{x:a.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:a.coordinate};if("centric"===e){var i=a.coordinate,o=r.radius;return ZX(ZX(ZX({},r),CU(r.cx,r.cy,o,i)),{},{angle:i,radius:o})}var s=a.coordinate,l=r.angle;return ZX(ZX(ZX({},r),CU(r.cx,r.cy,s,l)),{},{angle:l,radius:s})}return nZ}(n,o,c,a);return{activeTooltipIndex:c,activeLabel:u,activePayload:d,activeCoordinate:p}}return null},lZ=function(e,t){var n=t.axes,r=t.graphicalItems,a=t.axisType,i=t.axisIdKey,o=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,c=e.layout,u=e.children,d=e.stackOffset,p=aU(c,a);return n.reduce(function(t,n){var f,g=void 0!==n.type.defaultProps?ZX(ZX({},n.type.defaultProps),n.props):n.props,m=g.type,h=g.dataKey,b=g.allowDataOverflow,y=g.allowDuplicatedCategory,v=g.scale,E=g.ticks,S=g.includeHidden,w=g[i];if(t[w])return t;var A,k,x,T=aZ(e.data,{graphicalItems:r.filter(function(e){var t;return(i in e.props?e.props[i]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[i])===w}),dataStartIndex:s,dataEndIndex:l}),O=T.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],a=null==e?void 0:e[1];if(r&&a&&SA(r)&&SA(a))return!0}return!1})(g.domain,b,m)&&(A=EU(g.domain,null,b),!p||"number"!==m&&"auto"===v||(x=eU(T,h,"category")));var _=iZ(m);if(!A||0===A.length){var I,N=null!==(I=g.domain)&&void 0!==I?I:_;if(h){if(A=eU(T,h,m),"category"===m&&p){var R=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(A);y&&R?(k=A,A=YH(0,O)):y||(A=wU(N,A,n).reduce(function(e,t){return e.indexOf(t)>=0?e:[].concat(WX(e),[t])},[]))}else if("category"===m)A=y?A.filter(function(e){return""!==e&&!rA(e)}):wU(N,A,n).reduce(function(e,t){return e.indexOf(t)>=0||""===t||rA(t)?e:[].concat(WX(e),[t])},[]);else if("number"===m){var C=function(e,t,n,r,a){var i=t.map(function(t){return nU(e,t,n,a,r)}).filter(function(e){return!rA(e)});return i&&i.length?i.reduce(function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]},[1/0,-1/0]):null}(T,r.filter(function(e){var t,n,r=i in e.props?e.props[i]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[i],a="hide"in e.props?e.props.hide:null===(n=e.type.defaultProps)||void 0===n?void 0:n.hide;return r===w&&(S||!a)}),h,a,c);C&&(A=C)}!p||"number"!==m&&"auto"===v||(x=eU(T,h,"category"))}else A=p?YH(0,O):o&&o[w]&&o[w].hasStack&&"number"===m?"expand"===d?[0,1]:bU(o[w].stackGroups,s,l):rU(T,r.filter(function(e){var t=i in e.props?e.props[i]:e.type.defaultProps[i],n="hide"in e.props?e.props.hide:e.type.defaultProps.hide;return t===w&&(S||!n)}),m,c,!0);if("number"===m)A=EX(u,A,w,a,E),N&&(A=EU(N,A,b));else if("category"===m&&N){var D=N;A.every(function(e){return D.indexOf(e)>=0})&&(A=D)}}return ZX(ZX({},t),{},QX({},w,ZX(ZX({},g),{},{axisType:a,domain:A,categoricalDomain:x,duplicateDomain:k,originalDomain:null!==(f=g.domain)&&void 0!==f?f:_,isCategorical:p,layout:c})))},{})},cZ=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,a=t.AxisComp,i=t.graphicalItems,o=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,c=e.children,u="".concat(r,"Id"),d=WA(c,a),p={};return d&&d.length?p=lZ(e,{axes:d,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:o,dataStartIndex:s,dataEndIndex:l}):i&&i.length&&(p=function(e,t){var n=t.graphicalItems,r=t.Axis,a=t.axisType,i=t.axisIdKey,o=t.stackGroups,s=t.dataStartIndex,l=t.dataEndIndex,c=e.layout,u=e.children,d=aZ(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:l}),p=d.length,f=aU(c,a),g=-1;return n.reduce(function(e,t){var m,h=(void 0!==t.type.defaultProps?ZX(ZX({},t.type.defaultProps),t.props):t.props)[i],b=iZ("number");return e[h]?e:(g++,f?m=YH(0,p):o&&o[h]&&o[h].hasStack?(m=bU(o[h].stackGroups,s,l),m=EX(u,m,h,a)):(m=EU(b,rU(d,n.filter(function(e){var t,n,r=i in e.props?e.props[i]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[i],a="hide"in e.props?e.props.hide:null===(n=e.type.defaultProps)||void 0===n?void 0:n.hide;return r===h&&!a}),"number",c),r.defaultProps.allowDataOverflow),m=EX(u,m,h,a)),ZX(ZX({},e),{},QX({},h,ZX(ZX({axisType:a},r.defaultProps),{},{hide:!0,orientation:nA(eZ,"".concat(a,".").concat(g%2),null),domain:m,originalDomain:b,isCategorical:f,layout:c}))))},{})}(e,{Axis:a,graphicalItems:i,axisType:r,axisIdKey:u,stackGroups:o,dataStartIndex:s,dataEndIndex:l})),p},uZ=function(e){var t=e.children,n=e.defaultShowTooltip,r=YA(t,pV),a=0,i=0;return e.data&&0!==e.data.length&&(i=e.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(a=r.props.startIndex),r.props.endIndex>=0&&(i=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:Boolean(n)}},dZ=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},pZ=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),a=void 0===r?{}:r,i=e.yAxisMap,o=void 0===i?{}:i,s=n.width,l=n.height,c=n.children,u=n.margin||{},d=YA(c,pV),p=YA(c,EN),f=Object.keys(o).reduce(function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:ZX(ZX({},e),{},QX({},r,e[r]+n.width))},{left:u.left||0,right:u.right||0}),g=Object.keys(a).reduce(function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:ZX(ZX({},e),{},QX({},r,nA(e,"".concat(r))+n.height))},{top:u.top||0,bottom:u.bottom||0}),m=ZX(ZX({},g),f),h=m.bottom;d&&(m.bottom+=d.props.height||pV.defaultProps.height),p&&t&&(m=function(e,t,n,r){var a=n.children,i=n.width,o=n.margin,s=i-(o.left||0)-(o.right||0),l=VB({children:a,legendWidth:s});if(l){var c=r||{},u=c.width,d=c.height,p=l.align,f=l.verticalAlign,g=l.layout;if(("vertical"===g||"horizontal"===g&&"middle"===f)&&"center"!==p&&SA(e[p]))return ZB(ZB({},e),{},QB({},p,e[p]+(u||0)));if(("horizontal"===g||"vertical"===g&&"center"===p)&&"middle"!==f&&SA(e[f]))return ZB(ZB({},e),{},QB({},f,e[f]+(d||0)))}return e}(m,0,n,t));var b=s-m.left-m.right,y=l-m.top-m.bottom;return ZX(ZX({brushBottom:h},m),{},{width:Math.max(b,0),height:Math.max(y,0)})},fZ=function(e,t){return"xAxis"===t?e[t].width:"yAxis"===t?e[t].height:void 0},gZ=function(e){var r=e.chartName,a=e.GraphicalChild,o=e.defaultTooltipEventType,s=void 0===o?"axis":o,l=e.validateTooltipEventTypes,c=void 0===l?["axis"]:l,u=e.axisComponents,d=e.legendContent,f=e.formatAxisMap,g=e.defaultProps,m=function(e,t){var n=t.graphicalItems,r=t.stackGroups,a=t.offset,i=t.updateId,o=t.dataStartIndex,s=t.dataEndIndex,l=e.barSize,c=e.layout,d=e.barGap,p=e.barCategoryGap,f=e.maxBarSize,g=dZ(c),m=g.numericAxisName,h=g.cateAxisName,b=function(e){return!(!e||!e.length)&&e.some(function(e){var t=GA(e&&e.type);return t&&t.indexOf("Bar")>=0})}(n),y=[];return n.forEach(function(n,g){var v=aZ(e.data,{graphicalItems:[n],dataStartIndex:o,dataEndIndex:s}),E=void 0!==n.type.defaultProps?ZX(ZX({},n.type.defaultProps),n.props):n.props,S=E.dataKey,w=E.maxBarSize,A=E["".concat(m,"Id")],k=E["".concat(h,"Id")],x=u.reduce(function(e,r){var a,i,o=t["".concat(r.axisType,"Map")],s=E["".concat(r.axisType,"Id")];o&&o[s]||"zAxis"===r.axisType||("production"!==process.env.NODE_ENV?OB(0,"Specifying a(n) ".concat(r.axisType,"Id requires a corresponding ").concat(r.axisType,"Id on the targeted graphical component ").concat(null!==(a=null==n||null===(i=n.type)||void 0===i?void 0:i.displayName)&&void 0!==a?a:"")):OB());var l=o[s];return ZX(ZX({},e),{},QX(QX({},r.axisType,l),"".concat(r.axisType,"Ticks"),oU(l)))},{}),T=x[h],O=x["".concat(h,"Ticks")],_=r&&r[A]&&r[A].hasStack&&function(e,t){var n,r=(null!==(n=e.type)&&void 0!==n&&n.defaultProps?ZB(ZB({},e.type.defaultProps),e.props):e.props).stackId;if(wA(r)){var a=t[r];if(a){var i=a.items.indexOf(e);return i>=0?a.stackedData[i]:null}}return null}(n,r[A].stackGroups),I=GA(n.type).indexOf("Bar")>=0,N=SU(T,O),R=[],C=b&&function(e){var t=e.barSize,n=e.totalSize,r=e.stackGroups,a=void 0===r?{}:r;if(!a)return{};for(var i={},o=Object.keys(a),s=0,l=o.length;s<l;s++)for(var c=a[o[s]].stackGroups,u=Object.keys(c),d=0,p=u.length;d<p;d++){var f=c[u[d]],g=f.items,m=f.cateAxisId,h=g.filter(function(e){return GA(e.type).indexOf("Bar")>=0});if(h&&h.length){var b=h[0].type.defaultProps,y=void 0!==b?ZB(ZB({},b),h[0].props):h[0].props,v=y.barSize,E=y[m];i[E]||(i[E]=[]);var S=rA(v)?t:v;i[E].push({item:h[0],stackList:h.slice(1),barSize:rA(S)?void 0:xA(S,n,0)})}}return i}({barSize:l,stackGroups:r,totalSize:fZ(x,h)});if(I){var D,P,L=rA(w)?f:w,M=null!==(D=null!==(P=SU(T,O,!0))&&void 0!==P?P:L)&&void 0!==D?D:0;R=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,a=e.sizeList,i=void 0===a?[]:a,o=e.maxBarSize,s=i.length;if(s<1)return null;var l,c=xA(t,r,0,!0),u=[];if(i[0].barSize===+i[0].barSize){var d=!1,p=r/s,f=i.reduce(function(e,t){return e+t.barSize||0},0);(f+=(s-1)*c)>=r&&(f-=(s-1)*c,c=0),f>=r&&p>0&&(d=!0,f=s*(p*=.9));var g={offset:((r-f)/2|0)-c,size:0};l=i.reduce(function(e,t){var n={item:t.item,position:{offset:g.offset+g.size+c,size:d?p:t.barSize}},r=[].concat(YB(e),[n]);return g=r[r.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:g})}),r},u)}else{var m=xA(n,r,0,!0);r-2*m-(s-1)*c<=0&&(c=0);var h=(r-2*m-(s-1)*c)/s;h>1&&(h>>=0);var b=o===+o?Math.min(h,o):h;l=i.reduce(function(e,t,n){var r=[].concat(YB(e),[{item:t.item,position:{offset:m+(h+c)*n+(h-b)/2,size:b}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach(function(e){r.push({item:e,position:r[r.length-1].position})}),r},u)}return l}({barGap:d,barCategoryGap:p,bandSize:M!==N?M:N,sizeList:C[k],maxBarSize:L}),M!==N&&(R=R.map(function(e){return ZX(ZX({},e),{},{position:ZX(ZX({},e.position),{},{offset:e.position.offset-M/2})})}))}var F,j,B=n&&n.type&&n.type.getComposedData;B&&y.push({props:ZX(ZX({},B(ZX(ZX({},x),{},{displayedData:v,props:e,dataKey:S,item:n,bandSize:N,barPosition:R,offset:a,stackedData:_,layout:c,dataStartIndex:o,dataEndIndex:s}))),{},QX(QX(QX({key:n.key||"item-".concat(g)},m,x[m]),h,x[h]),"animationId",i)),childIndex:(F=n,j=e.children,VA(j).indexOf(F)),item:n})}),y},b=function(e,t){var n=e.props,i=e.dataStartIndex,o=e.dataEndIndex,s=e.updateId;if(!KA({props:n}))return null;var l=n.children,c=n.layout,d=n.stackOffset,p=n.data,g=n.reverseStackOrder,h=dZ(c),b=h.numericAxisName,y=h.cateAxisName,v=WA(l,a),E=function(e,t,n,r,a,i){if(!e)return null;var o=(i?t.reverse():t).reduce(function(e,t){var a,i=null!==(a=t.type)&&void 0!==a&&a.defaultProps?ZB(ZB({},t.type.defaultProps),t.props):t.props,o=i.stackId;if(i.hide)return e;var s=i[n],l=e[s]||{hasStack:!1,stackGroups:{}};if(wA(o)){var c=l.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(t),l.hasStack=!0,l.stackGroups[o]=c}else l.stackGroups[kA("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return ZB(ZB({},e),{},QB({},s,l))},{});return Object.keys(o).reduce(function(t,i){var s=o[i];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce(function(t,i){var o=s.stackGroups[i];return ZB(ZB({},t),{},QB({},i,{numericAxisId:n,cateAxisId:r,items:o.items,stackedData:fU(e,o.items,a)}))},{})),ZB(ZB({},t),{},QB({},i,s))},{})}(p,v,"".concat(b,"Id"),"".concat(y,"Id"),d,g),S=u.reduce(function(e,t){var r="".concat(t.axisType,"Map");return ZX(ZX({},e),{},QX({},r,cZ(n,ZX(ZX({},t),{},{graphicalItems:v,stackGroups:t.axisType===b&&E,dataStartIndex:i,dataEndIndex:o}))))},{}),w=pZ(ZX(ZX({},S),{},{props:n,graphicalItems:v}),null==t?void 0:t.legendBBox);Object.keys(S).forEach(function(e){S[e]=f(n,S[e],w,e.replace("Map",""),r)});var A,k,x=S["".concat(y,"Map")],T=(A=TA(x),{tooltipTicks:k=oU(A,!1,!0),orderedTooltipTicks:ER(k,function(e){return e.coordinate}),tooltipAxis:A,tooltipAxisBandSize:SU(A,k)}),O=m(n,ZX(ZX({},S),{},{dataStartIndex:i,dataEndIndex:o,updateId:s,graphicalItems:v,stackGroups:E,offset:w}));return ZX(ZX({formattedGraphicalItems:O,graphicalItems:v,offset:w,stackGroups:E},T),S)},y=function(){function e(n){var a,i,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),QX(o=GX(this,e,[n]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),QX(o,"accessibilityManager",new _X),QX(o,"handleLegendBBoxUpdate",function(e){if(e){var t=o.state,n=t.dataStartIndex,r=t.dataEndIndex,a=t.updateId;o.setState(ZX({legendBBox:e},b({props:o.props,dataStartIndex:n,dataEndIndex:r,updateId:a},ZX(ZX({},o.state),{},{legendBBox:e}))))}}),QX(o,"handleReceiveSyncEvent",function(e,t,n){if(o.props.syncId===e){if(n===o.eventEmitterSymbol&&"function"!=typeof o.props.syncMethod)return;o.applySyncEvent(t)}}),QX(o,"handleBrushChange",function(e){var t=e.startIndex,n=e.endIndex;if(t!==o.state.dataStartIndex||n!==o.state.dataEndIndex){var r=o.state.updateId;o.setState(function(){return ZX({dataStartIndex:t,dataEndIndex:n},b({props:o.props,dataStartIndex:t,dataEndIndex:n,updateId:r},o.state))}),o.triggerSyncEvent({dataStartIndex:t,dataEndIndex:n})}}),QX(o,"handleMouseEnter",function(e){var t=o.getMouseInfo(e);if(t){var n=ZX(ZX({},t),{},{isTooltipActive:!0});o.setState(n),o.triggerSyncEvent(n);var r=o.props.onMouseEnter;oS(r)&&r(n,e)}}),QX(o,"triggeredAfterMouseMove",function(e){var t=o.getMouseInfo(e),n=t?ZX(ZX({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};o.setState(n),o.triggerSyncEvent(n);var r=o.props.onMouseMove;oS(r)&&r(n,e)}),QX(o,"handleItemMouseEnter",function(e){o.setState(function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}})}),QX(o,"handleItemMouseLeave",function(){o.setState(function(){return{isTooltipActive:!1}})}),QX(o,"handleMouseMove",function(e){e.persist(),o.throttleTriggeredAfterMouseMove(e)}),QX(o,"handleMouseLeave",function(e){o.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};o.setState(t),o.triggerSyncEvent(t);var n=o.props.onMouseLeave;oS(n)&&n(t,e)}),QX(o,"handleOuterEvent",function(e){var t,n=function(e){var t=e&&e.type;return t&&$A[t]?$A[t]:null}(e),r=nA(o.props,"".concat(n));n&&oS(r)&&r(null!==(t=/.*touch.*/i.test(n)?o.getMouseInfo(e.changedTouches[0]):o.getMouseInfo(e))&&void 0!==t?t:{},e)}),QX(o,"handleClick",function(e){var t=o.getMouseInfo(e);if(t){var n=ZX(ZX({},t),{},{isTooltipActive:!0});o.setState(n),o.triggerSyncEvent(n);var r=o.props.onClick;oS(r)&&r(n,e)}}),QX(o,"handleMouseDown",function(e){var t=o.props.onMouseDown;oS(t)&&t(o.getMouseInfo(e),e)}),QX(o,"handleMouseUp",function(e){var t=o.props.onMouseUp;oS(t)&&t(o.getMouseInfo(e),e)}),QX(o,"handleTouchMove",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&o.throttleTriggeredAfterMouseMove(e.changedTouches[0])}),QX(o,"handleTouchStart",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&o.handleMouseDown(e.changedTouches[0])}),QX(o,"handleTouchEnd",function(e){null!=e.changedTouches&&e.changedTouches.length>0&&o.handleMouseUp(e.changedTouches[0])}),QX(o,"handleDoubleClick",function(e){var t=o.props.onDoubleClick;oS(t)&&t(o.getMouseInfo(e),e)}),QX(o,"handleContextMenu",function(e){var t=o.props.onContextMenu;oS(t)&&t(o.getMouseInfo(e),e)}),QX(o,"triggerSyncEvent",function(e){void 0!==o.props.syncId&&wX.emit(AX,o.props.syncId,e,o.eventEmitterSymbol)}),QX(o,"applySyncEvent",function(e){var t=o.props,n=t.layout,r=t.syncMethod,a=o.state.updateId,i=e.dataStartIndex,s=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)o.setState(ZX({dataStartIndex:i,dataEndIndex:s},b({props:o.props,dataStartIndex:i,dataEndIndex:s,updateId:a},o.state)));else if(void 0!==e.activeTooltipIndex){var l=e.chartX,c=e.chartY,u=e.activeTooltipIndex,d=o.state,p=d.offset,f=d.tooltipTicks;if(!p)return;if("function"==typeof r)u=r(f,e);else if("value"===r){u=-1;for(var g=0;g<f.length;g++)if(f[g].value===e.activeLabel){u=g;break}}var m=ZX(ZX({},p),{},{x:p.left,y:p.top}),h=Math.min(l,m.x+m.width),y=Math.min(c,m.y+m.height),v=f[u]&&f[u].value,E=oZ(o.state,o.props.data,u),S=f[u]?{x:"horizontal"===n?f[u].coordinate:h,y:"horizontal"===n?y:f[u].coordinate}:nZ;o.setState(ZX(ZX({},e),{},{activeLabel:v,activeCoordinate:S,activePayload:E,activeTooltipIndex:u}))}else o.setState(e)}),QX(o,"renderCursor",function(e){var n,a=o.state,i=a.isTooltipActive,s=a.activeCoordinate,l=a.activePayload,c=a.offset,u=a.activeTooltipIndex,d=a.tooltipAxisBandSize,p=o.getTooltipEventType(),f=null!==(n=e.props.active)&&void 0!==n?n:i,g=o.props.layout,m=e.key||"_recharts-cursor";return t.createElement(LX,{key:m,activeCoordinate:s,activePayload:l,activeTooltipIndex:u,chartName:r,element:e,isActive:f,layout:g,offset:c,tooltipAxisBandSize:d,tooltipEventType:p})}),QX(o,"renderPolarAxis",function(e,t,n){var r=nA(e,"type.axisType"),a=nA(o.state,"".concat(r,"Map")),i=e.type.defaultProps,s=void 0!==i?ZX(ZX({},i),e.props):e.props,l=a&&a[s["".concat(r,"Id")]];return p(e,ZX(ZX({},l),{},{className:IE(r,l.className),key:e.key||"".concat(t,"-").concat(n),ticks:oU(l,!0)}))}),QX(o,"renderPolarGrid",function(e){var t=e.props,n=t.radialLines,r=t.polarAngles,a=t.polarRadius,i=o.state,s=i.radiusAxisMap,l=i.angleAxisMap,c=TA(s),u=TA(l),d=u.cx,f=u.cy,g=u.innerRadius,m=u.outerRadius;return p(e,{polarAngles:Array.isArray(r)?r:oU(u,!0).map(function(e){return e.coordinate}),polarRadius:Array.isArray(a)?a:oU(c,!0).map(function(e){return e.coordinate}),cx:d,cy:f,innerRadius:g,outerRadius:m,key:e.key||"polar-grid",radialLines:n})}),QX(o,"renderLegend",function(){var e=o.state.formattedGraphicalItems,t=o.props,n=t.children,r=t.width,a=t.height,i=o.props.margin||{},s=r-(i.left||0)-(i.right||0),l=VB({children:n,formattedGraphicalItems:e,legendWidth:s,legendContent:d});if(!l)return null;var c=l.item,u=zX(l,MX);return p(c,ZX(ZX({},u),{},{chartWidth:r,chartHeight:a,margin:i,onBBoxUpdate:o.handleLegendBBoxUpdate}))}),QX(o,"renderTooltip",function(){var e,t=o.props,n=t.children,r=t.accessibilityLayer,a=YA(n,iC);if(!a)return null;var i=o.state,s=i.isTooltipActive,l=i.activeCoordinate,c=i.activePayload,u=i.activeLabel,d=i.offset,f=null!==(e=a.props.active)&&void 0!==e?e:s;return p(a,{viewBox:ZX(ZX({},d),{},{x:d.left,y:d.top}),active:f,label:u,payload:f?c:[],coordinate:l,accessibilityLayer:r})}),QX(o,"renderBrush",function(e){var t=o.props,n=t.margin,r=t.data,a=o.state,i=a.offset,s=a.dataStartIndex,l=a.dataEndIndex,c=a.updateId;return p(e,{key:e.key||"_recharts-brush",onChange:lU(o.handleBrushChange,e.props.onChange),data:r,x:SA(e.props.x)?e.props.x:i.left,y:SA(e.props.y)?e.props.y:i.top+i.height+i.brushBottom-(n.bottom||0),width:SA(e.props.width)?e.props.width:i.width,startIndex:s,endIndex:l,updateId:"brush-".concat(c)})}),QX(o,"renderReferenceElement",function(e,t,n){if(!e)return null;var r=o.clipPathId,a=o.state,i=a.xAxisMap,s=a.yAxisMap,l=a.offset,c=e.type.defaultProps||{},u=e.props,d=u.xAxisId,f=void 0===d?c.xAxisId:d,g=u.yAxisId,m=void 0===g?c.yAxisId:g;return p(e,{key:e.key||"".concat(t,"-").concat(n),xAxis:i[f],yAxis:s[m],viewBox:{x:l.left,y:l.top,width:l.width,height:l.height},clipPathId:r})}),QX(o,"renderActivePoints",function(t){var n=t.item,r=t.activePoint,a=t.basePoint,i=t.childIndex,o=t.isRange,s=[],l=n.props.key,c=void 0!==n.item.type.defaultProps?ZX(ZX({},n.item.type.defaultProps),n.item.props):n.item.props,u=c.activeDot,d=ZX(ZX({index:i,dataKey:c.dataKey,cx:r.x,cy:r.y,r:4,fill:tU(n.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value},QA(u,!1)),MA(u));return s.push(e.renderActiveDot(u,d,"".concat(l,"-activePoint-").concat(i))),a?s.push(e.renderActiveDot(u,ZX(ZX({},d),{},{cx:a.x,cy:a.y}),"".concat(l,"-basePoint-").concat(i))):o&&s.push(null),s}),QX(o,"renderGraphicChild",function(e,t,n){var r=o.filterFormatItem(e,t,n);if(!r)return null;var a=o.getTooltipEventType(),i=o.state,s=i.isTooltipActive,l=i.tooltipAxis,c=i.activeTooltipIndex,u=i.activeLabel,d=YA(o.props.children,iC),f=r.props,g=f.points,m=f.isRange,h=f.baseLine,b=void 0!==r.item.type.defaultProps?ZX(ZX({},r.item.type.defaultProps),r.item.props):r.item.props,y=b.activeDot,v=b.hide,E=b.activeBar,S=b.activeShape,w=Boolean(!v&&s&&d&&(y||E||S)),A={};"axis"!==a&&d&&"click"===d.props.trigger?A={onClick:lU(o.handleItemMouseEnter,e.props.onClick)}:"axis"!==a&&(A={onMouseLeave:lU(o.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:lU(o.handleItemMouseEnter,e.props.onMouseEnter)});var k=p(e,ZX(ZX({},r.props),A));if(w){if(!(c>=0)){var x,T=(null!==(x=o.getItemByXY(o.state.activeCoordinate))&&void 0!==x?x:{graphicalItem:k}).graphicalItem,O=T.item,_=void 0===O?e:O,I=T.childIndex,N=ZX(ZX(ZX({},r.props),A),{},{activeIndex:I});return[p(_,N),null,null]}var R,C;if(l.dataKey&&!l.allowDuplicatedCategory){var D="function"==typeof l.dataKey?function(e){return"function"==typeof l.dataKey?l.dataKey(e.payload):null}:"payload.".concat(l.dataKey.toString());R=_A(g,D,u),C=m&&h&&_A(h,D,u)}else R=null==g?void 0:g[c],C=m&&h&&h[c];if(S||E){var P=void 0!==e.props.activeIndex?e.props.activeIndex:c;return[p(e,ZX(ZX(ZX({},r.props),A),{},{activeIndex:P})),null,null]}if(!rA(R))return[k].concat(WX(o.renderActivePoints({item:r,activePoint:R,basePoint:C,childIndex:c,isRange:m})))}return m?[k,null,null]:[k,null]}),QX(o,"renderCustomized",function(e,t,n){return p(e,ZX(ZX({key:"recharts-customized-".concat(n)},o.props),o.state))}),QX(o,"renderMap",{CartesianGrid:{handler:rZ,once:!0},ReferenceArea:{handler:o.renderReferenceElement},ReferenceLine:{handler:rZ},ReferenceDot:{handler:o.renderReferenceElement},XAxis:{handler:rZ},YAxis:{handler:rZ},Brush:{handler:o.renderBrush,once:!0},Bar:{handler:o.renderGraphicChild},Line:{handler:o.renderGraphicChild},Area:{handler:o.renderGraphicChild},Radar:{handler:o.renderGraphicChild},RadialBar:{handler:o.renderGraphicChild},Scatter:{handler:o.renderGraphicChild},Pie:{handler:o.renderGraphicChild},Funnel:{handler:o.renderGraphicChild},Tooltip:{handler:o.renderCursor,once:!0},PolarGrid:{handler:o.renderPolarGrid,once:!0},PolarAngleAxis:{handler:o.renderPolarAxis},PolarRadiusAxis:{handler:o.renderPolarAxis},Customized:{handler:o.renderCustomized}}),o.clipPathId="".concat(null!==(a=n.id)&&void 0!==a?a:kA("recharts"),"-clip"),o.throttleTriggeredAfterMouseMove=_C(o.triggeredAfterMouseMove,null!==(i=n.throttleDelay)&&void 0!==i?i:1e3/60),o.state={},o}return function(e,t){if("function"!=typeof t&&null!==t)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&&VX(e,t)}(e,h),$X(e,[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,n=e.data,r=e.height,a=e.layout,i=YA(t,iC);if(i){var o=i.props.defaultIndex;if(!("number"!=typeof o||o<0||o>this.state.tooltipTicks.length-1)){var s=this.state.tooltipTicks[o]&&this.state.tooltipTicks[o].value,l=oZ(this.state,n,o,s),c=this.state.tooltipTicks[o].coordinate,u=(this.state.offset.top+r)/2,d="horizontal"===a?{x:c,y:u}:{y:c,x:u},p=this.state.formattedGraphicalItems.find(function(e){return"Scatter"===e.item.type.name});p&&(d=ZX(ZX({},d),p.props.points[o].tooltipPosition),l=p.props.points[o].tooltipPayload);var f={activeTooltipIndex:o,isTooltipActive:!0,activeLabel:s,activePayload:l,activeCoordinate:d};this.setState(f),this.renderCursor(i),this.accessibilityManager.setIndex(o)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){if(!this.props.accessibilityLayer)return null;var n,r;(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin)&&this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}});return null}},{key:"componentDidUpdate",value:function(e){JA([YA(e.children,iC)],[YA(this.props.children,iC)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=YA(this.props.children,iC);if(e&&"boolean"==typeof e.props.shared){var t=e.props.shared?"axis":"item";return c.indexOf(t)>=0?t:s}return s}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=this.container,n=t.getBoundingClientRect(),r=function(e){return{top:e.top+window.scrollY-document.documentElement.clientTop,left:e.left+window.scrollX-document.documentElement.clientLeft}}(n),a={chartX:Math.round(e.pageX-r.left),chartY:Math.round(e.pageY-r.top)},i=n.width/t.offsetWidth||1,o=this.inRange(a.chartX,a.chartY,i);if(!o)return null;var s=this.state,l=s.xAxisMap,c=s.yAxisMap,u=this.getTooltipEventType(),d=sZ(this.state,this.props.data,this.props.layout,o);if("axis"!==u&&l&&c){var p=TA(l).scale,f=TA(c).scale,g=p&&p.invert?p.invert(a.chartX):null,m=f&&f.invert?f.invert(a.chartY):null;return ZX(ZX({},a),{},{xValue:g,yValue:m},d)}return d?ZX(ZX({},a),d):null}},{key:"inRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,a=e/n,i=t/n;if("horizontal"===r||"vertical"===r){var o=this.state.offset;return a>=o.left&&a<=o.left+o.width&&i>=o.top&&i<=o.top+o.height?{x:a,y:i}:null}var s=this.state,l=s.angleAxisMap,c=s.radiusAxisMap;if(l&&c){var u=TA(l);return MU({x:a,y:i},u)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=YA(e,iC),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),ZX(ZX({},MA(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){wX.on(AX,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){wX.removeListener(AX,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,a=0,i=r.length;a<i;a++){var o=r[a];if(o.item===e||o.props.key===e.key||t===GA(o.item.type)&&n===o.childIndex)return o}return null}},{key:"renderClipPath",value:function(){var e=this.clipPathId,n=this.state.offset,r=n.left,a=n.top,i=n.height,o=n.width;return t.createElement("defs",null,t.createElement("clipPath",{id:e},t.createElement("rect",{x:r,y:a,height:i,width:o})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce(function(e,t){var n=UX(t,2),r=n[0],a=n[1];return ZX(ZX({},e),{},QX({},r,a.scale))},{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce(function(e,t){var n=UX(t,2),r=n[0],a=n[1];return ZX(ZX({},e),{},QX({},r,a.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(e){var t;return null===(t=this.state.xAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getYScaleByAxisId",value:function(e){var t;return null===(t=this.state.yAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getItemByXY",value:function(e){var t=this.state,n=t.formattedGraphicalItems,r=t.activeItem;if(n&&n.length)for(var a=0,i=n.length;a<i;a++){var o=n[a],s=o.props,l=o.item,c=void 0!==l.type.defaultProps?ZX(ZX({},l.type.defaultProps),l.props):l.props,u=GA(l.type);if("Bar"===u){var d=(s.data||[]).find(function(t){return FG(e,t)});if(d)return{graphicalItem:o,payload:d}}else if("RadialBar"===u){var p=(s.data||[]).find(function(t){return MU(e,t)});if(p)return{graphicalItem:o,payload:p}}else if(EH(o,r)||SH(o,r)||wH(o,r)){var f=TH({graphicalItem:o,activeTooltipItem:r,itemData:c.data}),g=void 0===c.activeIndex?f:c.activeIndex;return{graphicalItem:ZX(ZX({},o),{},{childIndex:g}),payload:wH(o,r)?c.data[f]:o.props.data[f]}}}return null}},{key:"render",value:function(){var e=this;if(!KA(this))return null;var n,r,a=this.props,i=a.children,o=a.className,s=a.width,l=a.height,c=a.style,u=a.compact,d=a.title,p=a.desc,f=zX(a,FX),g=QA(f,!1);if(u)return t.createElement(jW,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},t.createElement(ik,BX({},g,{width:s,height:l,title:d,desc:p}),this.renderClipPath(),tk(i,this.renderMap)));this.props.accessibilityLayer&&(g.tabIndex=null!==(n=this.props.tabIndex)&&void 0!==n?n:0,g.role=null!==(r=this.props.role)&&void 0!==r?r:"application",g.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},g.onFocus=function(){e.accessibilityManager.focus()});var m=this.parseEventsOfWrapper();return t.createElement(jW,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},t.createElement("div",BX({className:IE("recharts-wrapper",o),style:ZX({position:"relative",cursor:"default",width:s,height:l},c)},m,{ref:function(t){e.container=t}}),t.createElement(ik,BX({},g,{width:s,height:l,title:d,desc:p,style:tZ}),this.renderClipPath(),tk(i,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}();QX(y,"displayName",r),QX(y,"defaultProps",ZX({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},g)),QX(y,"getDerivedStateFromProps",function(e,t){var n=e.dataKey,r=e.data,a=e.children,i=e.width,o=e.height,s=e.layout,l=e.stackOffset,c=e.margin,u=t.dataStartIndex,d=t.dataEndIndex;if(void 0===t.updateId){var p=uZ(e);return ZX(ZX(ZX({},p),{},{updateId:0},b(ZX(ZX({props:e},p),{},{updateId:0}),t)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:o,prevLayout:s,prevStackOffset:l,prevMargin:c,prevChildren:a})}if(n!==t.prevDataKey||r!==t.prevData||i!==t.prevWidth||o!==t.prevHeight||s!==t.prevLayout||l!==t.prevStackOffset||!NA(c,t.prevMargin)){var f=uZ(e),g={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},m=ZX(ZX({},sZ(t,r,s)),{},{updateId:t.updateId+1}),h=ZX(ZX(ZX({},f),g),m);return ZX(ZX(ZX({},h),b(ZX({props:e},h),t)),{},{prevDataKey:n,prevData:r,prevWidth:i,prevHeight:o,prevLayout:s,prevStackOffset:l,prevMargin:c,prevChildren:a})}if(!JA(a,t.prevChildren)){var y,v,E,S,w=YA(a,pV),A=w&&null!==(y=null===(v=w.props)||void 0===v?void 0:v.startIndex)&&void 0!==y?y:u,k=w&&null!==(E=null===(S=w.props)||void 0===S?void 0:S.endIndex)&&void 0!==E?E:d,x=A!==u||k!==d,T=!rA(r)&&!x?t.updateId:t.updateId+1;return ZX(ZX({updateId:T},b(ZX(ZX({props:e},t),{},{updateId:T,dataStartIndex:A,dataEndIndex:k}),t)),{},{prevChildren:a,dataStartIndex:A,dataEndIndex:k})}return null}),QX(y,"renderActiveDot",function(e,r,a){var i;return i=n(e)?p(e,r):oS(e)?e(r):t.createElement(KG,r),t.createElement(ck,{className:"recharts-active-dot",key:a},i)});var v=i(function(e,n){return t.createElement(y,BX({},e,{ref:n}))});return v.displayName=y.displayName,v},mZ=gZ({chartName:"LineChart",GraphicalChild:DK,axisComponents:[{axisType:"xAxis",AxisComp:oX},{axisType:"yAxis",AxisComp:bX}],formatAxisMap:gW}),hZ=gZ({chartName:"BarChart",GraphicalChild:sW,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:oX},{axisType:"yAxis",AxisComp:bX}],formatAxisMap:gW}),bZ=gZ({chartName:"PieChart",GraphicalChild:jH,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Uq},{axisType:"radiusAxis",AxisComp:Tq}],formatAxisMap:function(e,t,n,r,a){var i=e.width,o=e.height,s=e.startAngle,l=e.endAngle,c=xA(e.cx,i,i/2),u=xA(e.cy,o,o/2),d=DU(i,o,n),p=xA(e.innerRadius,d,0),f=xA(e.outerRadius,d,.8*d);return Object.keys(t).reduce(function(e,n){var i,o=t[n],d=o.domain,g=o.reversed;if(rA(o.range))"angleAxis"===r?i=[s,l]:"radiusAxis"===r&&(i=[p,f]),g&&(i=[i[1],i[0]]);else{var m=_U(i=o.range,2);s=m[0],l=m[1]}var h=cU(o,a),b=h.realScaleType,y=h.scale;y.domain(d).range(i),dU(y);var v=gU(y,TU(TU({},o),{},{realScaleType:b})),E=TU(TU(TU({},o),v),{},{range:i,radius:f,realScaleType:b,scale:y,cx:c,cy:u,innerRadius:p,outerRadius:f,startAngle:s,endAngle:l});return TU(TU({},e),{},OU({},n,E))},{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),yZ=gZ({chartName:"AreaChart",GraphicalChild:KK,axisComponents:[{axisType:"xAxis",AxisComp:oX},{axisType:"yAxis",AxisComp:bX}],formatAxisMap:gW});function vZ(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}const EZ=/(^|[_\W])(price|salary|cost|amount|revenue|expense|total|value|budget|spend|income|sale|balance)/i;function SZ(e){return Number(e).toLocaleString("en-US",{maximumFractionDigits:2})}function wZ(e,t){const n="string"==typeof e?e.trim():"";if(/^[A-Za-z]{3}$/.test(n))try{const e=n.toUpperCase(),t=new Intl.NumberFormat("en-US",{style:"currency",currency:e,maximumFractionDigits:2}),r=new Intl.NumberFormat("en-US",{style:"currency",currency:e,notation:"compact",maximumFractionDigits:1});return{full:e=>t.format(Number(e)),compact:e=>r.format(Number(e))}}catch(e){}return n?{full:e=>`${n}${SZ(e)}`,compact:e=>`${n}${vZ(e)}`}:"string"==typeof t&&EZ.test(t)?{full:SZ,compact:vZ}:null}const AZ=["#1d4ed8","#d97706","#db2777","#0891b2"],kZ=["#3b82f6","#d97706","#db2777","#0891b2"];function xZ(e,t=!1){const n=t?kZ:AZ;return n[e%n.length]}function TZ(e){return Array.isArray(e.series)&&e.series.length>1?e.series:[]}function OZ(e,t){const n=e.map(e=>wZ(t,e.key));return{each:n,axis:n.length>0&&n.every(Boolean)?n[0]:null}}function _Z(e,t,n){return(r,a,i)=>{const o=t[e.findIndex(e=>e.dataKey===(i&&i.dataKey))];return o?o.full(r):n?`${Number(r).toLocaleString()} ${n}`:Number(r).toLocaleString()}}function IZ(e,t){return e.length>0?{color:t}:void 0}function NZ(e){return B(EN,{verticalAlign:"top",iconSize:10,wrapperStyle:{fontSize:11,paddingBottom:6},formatter:t=>B("span",{style:{color:e},children:t})})}function RZ({props:e,isDark:t=!1}){const n=Array.isArray(e.data)?e.data:[],r=wZ(e.currency,e.yKey),a=e.valueLabel||void 0,i=TZ(e),o=OZ(i,e.currency),s=i.length>0?o.axis:r,l=t?"#374151":"#e2e8f0",c=t?"#1f2937":"#ffffff",u=t?"#9ca3af":"#64748b",d=t?"#f3f4f6":"#0f172a",p=t?"#374151":"#e2e8f0",f=t?"#111827":"#ffffff";if(0===n.length)return j("div",{style:{borderRadius:8,border:`1px solid ${l}`,background:c,padding:12,margin:"8px 0"},children:[e.title&&B("div",{style:{fontSize:13,fontWeight:600,color:d,marginBottom:8},children:e.title}),B("div",{style:{color:u,fontSize:12},children:"No chartable data"})]});const g=n.some(e=>String(e.label??"").length>10),m=g?-35:0,h=g?"end":"middle",b=g?48:20,y=g?250:220;return j("div",{style:{borderRadius:8,border:`1px solid ${l}`,background:c,padding:12,margin:"8px 0"},children:[e.title&&B("h3",{style:{fontSize:13,fontWeight:600,color:d,marginBottom:8,marginTop:0},children:e.title}),B("div",{role:"img","aria-label":e.title||a||"Bar chart",style:{height:y,width:"100%"},children:B(LC,{width:"100%",height:"100%",children:j(hZ,{data:n,margin:{top:16,right:12,left:12,bottom:b},children:[B(hK,{strokeDasharray:"3 3",stroke:p}),B(oX,{dataKey:"label",tick:{fontSize:11,fill:u},angle:m,textAnchor:h,interval:0,label:e.xAxisLabel?{value:e.xAxisLabel,position:"insideBottom",offset:-12,fontSize:11,fill:u}:void 0}),B(bX,{width:72,tick:{fontSize:11,fill:u},label:e.yAxisLabel?{value:e.yAxisLabel,angle:-90,position:"insideLeft",fontSize:11,fill:u}:void 0,tickFormatter:t=>s?s.compact(t):e.unit?`${vZ(t)} ${e.unit}`:vZ(t)}),B(iC,{formatter:i.length>0?_Z(i,o.each,e.unit):t=>r?r.full(t):e.unit?`${Number(t).toLocaleString()} ${e.unit}`:Number(t).toLocaleString(),itemStyle:IZ(i,d),contentStyle:{background:f,border:`1px solid ${l}`,borderRadius:6,fontSize:12,color:d}}),i.length>0&&NZ(u),i.length>0?i.map((e,n)=>B(sW,{dataKey:e.dataKey,name:e.name,fill:xZ(n,t),radius:[2,2,0,0]},e.dataKey)):B(sW,{dataKey:"value",name:a,fill:"#3b82f6",radius:[2,2,0,0],label:{position:"top",fill:u,fontSize:10,formatter:e=>r?r.compact(e):vZ(e)}})]})})})]})}function CZ({props:e,isDark:t=!1}){const n=e.trend,r="up"===n?"#059669":"down"===n?"#e11d48":"#64748b",a="up"===n?"↑":"down"===n?"↓":"flat"===n?"→":null,i=t?"#f3f4f6":"#0f172a";return j("div",{style:{borderRadius:8,border:`1px solid ${t?"#374151":"#e2e8f0"}`,background:t?"#1f2937":"#ffffff",padding:12,margin:"8px 0"},children:[B("p",{style:{fontSize:11,fontWeight:500,color:"#64748b",textTransform:"uppercase",letterSpacing:"0.05em",margin:0},children:e.label}),B("p",{style:{marginTop:4,fontSize:28,fontWeight:700,color:i,lineHeight:1.1,marginBottom:0},children:e.value}),e.change&&j("p",{style:{marginTop:4,fontSize:12,color:r,marginBottom:0},children:[a&&B("span",{style:{marginRight:4},children:a}),e.change]})]})}const DZ=["#3b82f6","#10b981","#f59e0b","#ef4444","#8b5cf6","#ec4899","#14b8a6","#f97316","#6366f1","#84cc16","#06b6d4","#a855f7"];function PZ({props:e,isDark:t=!1,donut:n=!1}){const r=Array.isArray(e.data)?e.data:[],a=wZ(e.currency,e.yKey),i=t?"#374151":"#e2e8f0",o=t?"#1f2937":"#ffffff",s=t?"#f3f4f6":"#0f172a",l=t?"#111827":"#ffffff",c=t?"#9ca3af":"#64748b",u=r.map(e=>({name:e.label,value:e.value})),d=Math.PI/180;return j("div",{style:{borderRadius:8,border:`1px solid ${i}`,background:o,padding:12,margin:"8px 0"},children:[e.title&&B("h3",{style:{fontSize:13,fontWeight:600,color:s,marginBottom:8,marginTop:0},children:e.title}),B("div",{role:"img","aria-label":e.title||(n?"Donut chart":"Pie chart"),style:{height:260,width:"100%"},children:B(LC,{width:"100%",height:"100%",children:j(bZ,{children:[B(jH,{data:u,dataKey:"value",nameKey:"name",cx:"50%",cy:"50%",outerRadius:72,innerRadius:n?40:0,paddingAngle:2,labelLine:!1,label:e=>{const r=Number(e&&e.value),i=(o=r,s=Number(e&&e.percent),Number.isFinite(o)&&0!==o?Number.isFinite(s)&&s<.08?"outside":"inside":"none");var o,s;if("none"===i)return null;const l=Number(e.innerRadius)||0,c=Number(e.outerRadius)||0,u=Number(e.cx),p=Number(e.cy),f=-Number(e.midAngle)*d,g=Math.cos(f),m=Math.sin(f),h=a?a.full(r):Number(r).toLocaleString();if("inside"===i){const e=l+(c-l)*(n?.78:.6);return B("text",{x:u+e*g,y:p+e*m,fill:"#ffffff",textAnchor:"middle",dominantBaseline:"central",style:{fontSize:11,fontWeight:600,pointerEvents:"none"},children:h})}const b="string"==typeof e.fill&&e.fill?e.fill:t?"#9ca3af":"#64748b",y=c+8,v=u+y*g,E=p+y*m,S=g>=0,w=v+(S?6:-6);return j("g",{style:{pointerEvents:"none"},children:[B("polyline",{points:`${u+c*g},${p+c*m} ${v},${E} ${w},${E}`,stroke:b,strokeWidth:1,fill:"none"}),B("text",{x:w+(S?2:-2),y:E,fill:b,textAnchor:S?"start":"end",dominantBaseline:"central",style:{fontSize:10,fontWeight:600},children:h})]})},isAnimationActive:!1,children:u.map((e,t)=>B(MC,{fill:DZ[t%DZ.length]},t))}),B(iC,{formatter:e=>a?a.full(e):Number(e).toLocaleString(),contentStyle:{background:l,border:`1px solid ${i}`,borderRadius:6,fontSize:12,color:s}}),B(EN,{iconSize:10,iconType:"circle",wrapperStyle:{fontSize:11,color:c}})]})})})]})}function LZ({props:e,isDark:t=!1,area:n=!1}){const r=Array.isArray(e.data)?e.data:[],a=wZ(e.currency,e.yKey),i=e.valueLabel||void 0,o=TZ(e),s=OZ(o,e.currency),l=o.length>0?s.axis:a,c=o.length>0&&r.length>12,u=t?"#374151":"#e2e8f0",d=t?"#1f2937":"#ffffff",p=t?"#9ca3af":"#64748b",f=t?"#f3f4f6":"#0f172a",g=t?"#374151":"#e2e8f0",m=t?"#111827":"#ffffff";if(0===r.length)return j("div",{style:{borderRadius:8,border:`1px solid ${u}`,background:d,padding:12,margin:"8px 0"},children:[e.title&&B("div",{style:{fontSize:13,fontWeight:600,color:f,marginBottom:8},children:e.title}),B("div",{style:{color:p,fontSize:12},children:"No chartable data"})]});const h=n?yZ:mZ;return j("div",{style:{borderRadius:8,border:`1px solid ${u}`,background:d,padding:12,margin:"8px 0"},children:[e.title&&B("h3",{style:{fontSize:13,fontWeight:600,color:f,marginBottom:8,marginTop:0},children:e.title}),B("div",{role:"img","aria-label":e.title||i||(n?"Area chart":"Line chart"),style:{height:220,width:"100%"},children:B(LC,{width:"100%",height:"100%",children:j(h,{data:r,margin:{top:8,right:12,left:12,bottom:20},children:[B(hK,{strokeDasharray:"3 3",stroke:g}),B(oX,{dataKey:"label",tick:{fontSize:11,fill:p},angle:0,textAnchor:"middle",interval:c?"preserveStartEnd":0,label:e.xAxisLabel?{value:e.xAxisLabel,position:"insideBottom",offset:-12,fontSize:11,fill:p}:void 0}),B(bX,{width:72,tick:{fontSize:11,fill:p},tickFormatter:t=>l?l.compact(t):e.unit?`${vZ(t)} ${e.unit}`:vZ(t)}),B(iC,{formatter:o.length>0?_Z(o,s.each,e.unit):t=>a?a.full(t):e.unit?`${Number(t).toLocaleString()} ${e.unit}`:Number(t).toLocaleString(),itemStyle:IZ(o,f),contentStyle:{background:m,border:`1px solid ${u}`,borderRadius:6,fontSize:12,color:f}}),o.length>0&&NZ(p),o.length>0?o.map((e,r)=>{const a=xZ(r,t),i=!c&&{r:3,fill:a};return n?B(KK,{type:"monotone",dataKey:e.dataKey,name:e.name,stroke:a,fill:a,fillOpacity:.15,strokeWidth:2,dot:i},e.dataKey):B(DK,{type:"monotone",dataKey:e.dataKey,name:e.name,stroke:a,strokeWidth:2,dot:i,activeDot:{r:5}},e.dataKey)}):n?B(KK,{type:"monotone",dataKey:"value",name:i,stroke:"#3b82f6",fill:"#3b82f6",fillOpacity:.15,strokeWidth:2,dot:{r:3,fill:"#3b82f6"}}):B(DK,{type:"monotone",dataKey:"value",name:i,stroke:"#3b82f6",strokeWidth:2,dot:{r:3,fill:"#3b82f6"},activeDot:{r:5}})]})})})]})}const MZ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function FZ(e){if(null==e)return"";const t=String(e).replace(/\s+/g," ").trim();return t?function(e){return-1!==e.indexOf("_")||e===e.toLowerCase()||jZ.test(e)}(t)?t.replace(/[_\-]+/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/\s+/g," ").trim().split(" ").map(function(e){return e===e.toLowerCase()?e.charAt(0).toUpperCase()+e.slice(1):e}).join(" "):t:""}const jZ=/^[a-z]{2}[a-z0-9]*[A-Z][A-Za-z0-9]*$/;const BZ=/(^|[_\W])(price|salary|cost|amount|revenue|expense|total|value|budget|spend|income|sale|balance)/i;const UZ=/^\d{4}-\d{2}-\d{2}([T ]\d{2}:\d{2}(:\d{2})?(\.\d+)?(Z|[+-]\d{2}:?\d{2})?)?$/;const zZ=/^[a-z]+(_[a-z]+)+$/;function $Z(e){return Number.isInteger(e)?e.toLocaleString("en-US"):Number(e.toFixed(2)).toLocaleString("en-US")}const GZ=/^-?\d+(\.\d+)?$/;function qZ(e,t){if("string"!=typeof e||!function(e){return"string"==typeof e&&BZ.test(e)}(t))return null;const n=e.trim();if(!GZ.test(n))return null;const r=Number(n);return Number.isFinite(r)?$Z(r):null}const HZ={color:"#1d4ed8",textDecoration:"underline",overflowWrap:"anywhere"};function VZ(e){const t=w(e);if(!t)return e;let n=0;return t.map(e=>"link"===e.type?B("a",{href:e.href,target:"_blank",rel:"noopener noreferrer",style:HZ,children:e.label},n++):e.value)}const WZ=new Set(T),YZ=e=>R(_(e));function KZ({spec:e,isDark:t=!1,onButtonClick:n}){if(!e||"object"!=typeof e)return null;e={...e,title:A(e.title)};const r=k(e.type);if("revenue-insights"===r)return B(PQ,{spec:e,isDark:t});if("impact-analysis"===r)return B(MQ,{spec:e,isDark:t});if("deviation-analysis"===r)return B(FQ,{spec:e,isDark:t});if("main-drivers"===r)return B(jQ,{spec:e,isDark:t});if("key-observations"===r)return B(UQ,{spec:e,isDark:t});if("recommendations"===r)return B(zQ,{spec:e,isDark:t});if("kpi"===r){const n=e.value??e.amount??e.metric??e.kpi,r=null!=e.delta?Number(e.delta):null,a=e.change??(null!=r&&Number.isFinite(r)?r>=0?`+${r}`:String(r):void 0),i=e.trend??(null!=r&&Number.isFinite(r)?r>0?"up":r<0?"down":"flat":void 0);return B(CZ,{props:{label:e.label||e.title||"",value:null!=n?String(n):"-",change:a,trend:i},isDark:t})}return"table"===r?B(QZ,{spec:e,isDark:t}):WZ.has(r)||Array.isArray(e.data)&&e.data.length>0?B(ZZ,{spec:e,type:r,isDark:t}):"alert"===r?B(JZ,{spec:e,isDark:t}):"card"===r?B(nQ,{spec:e,isDark:t,onButtonClick:n}):"button-group"===r?B(rQ,{spec:e,isDark:t,onButtonClick:n}):"form"===r?B(sQ,{spec:e,isDark:t,onButtonClick:n}):"confirmation"===r?B(lQ,{spec:e,isDark:t,onButtonClick:n}):"verification"===r?B(x,{spec:e,isDark:t,onButtonClick:n}):"menu"===r?B(gQ,{spec:e,isDark:t,onButtonClick:n}):"profile"===r?B(mQ,{spec:e,isDark:t,onButtonClick:n}):"timeline"===r?B(hQ,{spec:e,isDark:t}):"rating"===r?B(bQ,{spec:e,isDark:t}):"comparison"===r?B(yQ,{spec:e,isDark:t,onButtonClick:n}):"gallery"===r?B(vQ,{spec:e,isDark:t}):Array.isArray(e.data)&&e.data.length>0?B(ZZ,{spec:e,type:"bar",isDark:t}):null}const XZ=e=>({border:e?"1px solid #374151":"1px solid #e5e7eb",background:e?"#1f2937":"#ffffff",borderRadius:8,padding:12,margin:"8px 0",fontSize:13,color:e?"#f3f4f6":"#111827"});function ZZ({spec:e,type:t,isDark:n}){const r=function(e){const t=Array.isArray(e.ys)?e.ys.filter(e=>"string"==typeof e&&e):[],n=Array.isArray(e.data)?e.data.find(e=>e&&"object"==typeof e):null,r=n?[...new Set(t)].filter(e=>Object.prototype.hasOwnProperty.call(n,e)):[];if(r.length<2)return[];const a=e.names&&"object"==typeof e.names?e.names:{};return r.map((e,t)=>({key:e,dataKey:`s${t}`,name:"string"==typeof a[e]&&a[e].trim()?a[e].trim():FZ(e)}))}(e),{x:a,y:i}=function(e,t,n){if(!Array.isArray(e)||0===e.length)return{x:"name",y:"value"};const r=e[0]||{};if(t&&Object.prototype.hasOwnProperty.call(r,t)&&n&&Object.prototype.hasOwnProperty.call(r,n))return{x:t,y:n};let a=t||null,i=n||null;for(const e of Object.keys(r)){const t=r[e];null!=a||"string"!=typeof t&&null!=t||(a=e),null==i&&"number"==typeof t&&Number.isFinite(t)&&(i=e)}return{x:a||"name",y:i||"value"}}(e.data,e.x,r.length>0?r[0].key:e.y),o=String(t||"").trim().toLowerCase(),s=r.length>0&&"pie"!==o&&"donut"!==o,l=s?function(e,t,n){return(e||[]).filter(e=>e&&"object"==typeof e).map(e=>{const r={label:AQ(e[t],t)};for(const t of n){const n=null==e[t.key]?NaN:Number(e[t.key]);r[t.dataKey]=Number.isFinite(n)?n:null}return r}).filter(e=>n.some(t=>null!==e[t.dataKey]))}(e.data,a,r):function(e,t,n){return(e||[]).map(e=>{const r=e?.[t];return{label:AQ(r,t),value:Number(e?.[n])}}).filter(e=>Number.isFinite(e.value))}(e.data,a,i),c={title:e.title,data:l,unit:e.unit,xAxisLabel:e.xAxisLabel,yAxisLabel:e.yAxisLabel,yKey:i,valueLabel:FZ(i),currency:e.currency,series:s?r:void 0};return"pie"===o?B(PZ,{props:c,isDark:n,donut:!1}):"donut"===o?B(PZ,{props:c,isDark:n,donut:!0}):"line"===o?B(LZ,{props:c,isDark:n,area:!1}):"area"===o?B(LZ,{props:c,isDark:n,area:!0}):B(RZ,{props:c,isDark:n})}function QZ({spec:e,isDark:t}){const n=Array.isArray(e.columns)&&e.columns.length>0?e.columns:Array.isArray(e.data)&&e.data[0]?Object.keys(e.data[0]):[],r=Array.isArray(e.data)?e.data:Array.isArray(e.rows)?e.rows:[];if(0===n.length||0===r.length)return B("div",{style:XZ(t),children:B("div",{style:{color:t?"#9ca3af":"#6b7280",fontSize:12},children:"Empty table"})});const a=t?"1px solid #374151":"1px solid #e5e7eb";return j("div",{style:XZ(t),children:[e.title&&B("div",{style:{fontWeight:600,marginBottom:8},children:e.title}),B("div",{style:{overflowX:"auto"},children:j("table",{style:{borderCollapse:"collapse",width:"100%",fontSize:12},children:[B("thead",{children:B("tr",{children:n.map(e=>B("th",{style:{border:a,padding:"6px 8px",background:"transparent",textAlign:"left",fontWeight:600},children:FZ(e)},e))})}),B("tbody",{children:r.map((e,t)=>B("tr",{children:n.map((t,n)=>B("td",{style:{border:a,padding:"6px 8px"},children:Array.isArray(e)?kQ(e[n],t):e&&"object"==typeof e?kQ(e[t],t):""},t))},t))})]})})]})}function JZ({spec:e,isDark:t}){const n=String(e.level||"info").toLowerCase(),r={info:{bg:t?"hsl(204 33% 14%)":"hsl(204 100% 97%)",border:t?"hsl(199 89% 58%)":"hsl(199 89% 48%)",text:t?"#bae6fd":"#0c4a6e"},warn:{bg:t?"hsl(36 33% 14%)":"hsl(34 100% 95%)",border:t?"hsl(38 92% 60%)":"hsl(35 100% 50%)",text:t?"#fde68a":"#663c00"},error:{bg:t?"hsl(356 33% 16%)":"hsl(356 100% 97%)",border:t?"hsl(350 89% 65%)":"hsl(350 89% 60%)",text:t?"#fecdd3":"#9f1239"},success:{bg:t?"hsl(152 36% 14%)":"hsl(152 81% 96%)",border:t?"hsl(158 64% 52%)":"hsl(160 84% 39%)",text:t?"#a7f3d0":"#065f46"}};r.warning=r.warn;const a=r[n]||r.info;return j("div",{style:{...XZ(t),background:a.bg,borderLeft:`4px solid ${a.border}`,color:a.text},children:[e.title&&B("div",{style:{fontWeight:600,marginBottom:4},children:e.title}),e.body&&B("div",{style:{fontSize:12,lineHeight:1.6,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:VZ(String(e.body))})]})}const eQ=e=>({success:{bg:e?"hsl(152 36% 14%)":"hsl(152 81% 96%)",fg:e?"hsl(158 64% 52%)":"hsl(160 84% 39%)"},warn:{bg:e?"hsl(36 33% 14%)":"hsl(34 100% 95%)",fg:e?"hsl(38 92% 60%)":"hsl(35 100% 50%)"},error:{bg:e?"hsl(356 33% 16%)":"hsl(356 100% 97%)",fg:e?"hsl(350 89% 65%)":"hsl(350 89% 60%)"},info:{bg:e?"hsl(204 33% 14%)":"hsl(204 100% 97%)",fg:e?"hsl(199 89% 58%)":"hsl(199 89% 48%)"}}),tQ={calendar:$,ticket:V,check:O};function nQ({spec:e,isDark:n,onButtonClick:r}){const a=Array.isArray(e.fields)?e.fields:[],i=Array.isArray(e.actions)?e.actions:[],o=e.status,s=e.icon?tQ[e.icon]:null,[l,c]=t.useState(!1),u=String(e.body||"").trim(),d=String(e.details||"").trim(),p=u.length>0&&d.length>u.length+2,f=YZ(e.image),g=o&&o.label?eQ(n)[o.variant||"success"]:null;return j("div",{style:{...XZ(n),minWidth:0,overflow:"hidden"},children:[f&&B("img",{src:f,alt:e.title||"",referrerPolicy:"no-referrer",onError:e=>{e.currentTarget.style.display="none"},style:{display:"block",margin:"-12px -12px 12px",width:"calc(100% + 24px)",height:140,objectFit:"contain",background:n?"rgba(31,41,55,0.4)":"#f9fafb"}}),(e.title||g)&&j("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,marginBottom:8},children:[j("div",{style:{display:"flex",alignItems:"center",gap:6,minWidth:0},children:[s&&B(s,{size:14,style:{flexShrink:0,color:n?"#60a5fa":cQ}}),e.title&&B("div",{style:{fontWeight:600,minWidth:0,overflowWrap:"anywhere"},children:e.title})]}),g&&B("span",{style:{flexShrink:0,borderRadius:999,padding:"1px 8px",fontSize:10,fontWeight:500,background:g.bg,color:g.fg},children:o.label})]}),(u||d)&&j("div",{children:[B("div",{style:{fontSize:12,lineHeight:1.6,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:VZ(l?d||u:u||d)}),p&&B("button",{type:"button",onClick:()=>c(e=>!e),style:{marginTop:4,padding:0,border:"none",background:"none",fontSize:11,fontWeight:500,color:n?"#60a5fa":cQ,cursor:"pointer"},children:l?"Show less":"Show more"})]}),a.length>0&&B("div",{style:{display:"grid",gridTemplateColumns:"auto 1fr",columnGap:12,rowGap:6,marginTop:u||d?12:0},children:a.map((e,r)=>j(t.Fragment,{children:[B("div",{style:{fontSize:11,fontWeight:500,color:n?"#9ca3af":"#6b7280",whiteSpace:"nowrap"},children:e.label}),B("div",{style:{fontSize:12,minWidth:0,wordBreak:"break-word"},children:"string"==typeof e.value?VZ(e.value):e.value})]},r))}),i.length>0&&B("div",{style:{display:"flex",flexWrap:"wrap",gap:8,marginTop:12},children:i.map((e,t)=>{const a="secondary"!==e.variant,i={display:"inline-flex",alignItems:"center",padding:"6px 12px",borderRadius:6,fontSize:11,fontWeight:500,textDecoration:"none",border:"1px solid "+(a?cQ:n?"#4b5563":"#d1d5db"),background:a?cQ:n?"#1f2937":"#ffffff",color:a?"#ffffff":n?"#e5e7eb":"#374151"},o=_(e.url);if(o)return B("a",{href:o,target:"_blank",rel:"noopener noreferrer",style:i,children:e.label},t);const s=e.value||e.label;return B("button",{type:"button",onClick:r?()=>r(String(s??""),String(e.label??"")):void 0,disabled:!r,title:r?void 0:"Action (no handler wired)",style:{...i,cursor:r?"pointer":"default",opacity:r?1:.5},children:e.label},t)})})]})}function rQ({spec:e,isDark:t,onButtonClick:n,sendValue:r=!1}){const a=Array.isArray(e.buttons)?e.buttons:[];return 0===a.length?null:j("div",{style:{margin:"8px 0"},children:[e.title&&B("div",{style:{fontSize:11,color:t?"#9ca3af":"#6b7280",textTransform:"uppercase",letterSpacing:"0.05em",marginBottom:6},children:e.title}),B("div",{style:{display:"flex",flexWrap:"wrap",gap:6},children:a.map((e,a)=>B("button",{type:"button",onClick:n?()=>n(String((r?e.value:e.label)||e.label||e.value||""),String(e.label||e.value||"")):void 0,disabled:!n,style:{border:"1px solid "+(t?"#374151":"#d1d5db"),background:t?"#1f2937":"#ffffff",color:t?"#f3f4f6":"#111827",padding:"6px 12px",borderRadius:6,fontSize:12,cursor:n?"pointer":"default",opacity:n?1:.6},children:String(e.label||e.value||"")},a))})]})}function aQ(e,t){const n=null==t||"string"==typeof t&&""===t.trim();if(e.required&&n)return`${e.label} is required`;if(n)return null;if("email"===e.type&&"string"==typeof t&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t))return`${e.label} must be a valid email`;if("url"===e.type&&"string"==typeof t)try{new URL(t)}catch{return`${e.label} must be a valid URL`}if("number"===e.type&&"string"==typeof t&&""!==t){const n=Number(t);if(!Number.isFinite(n))return`${e.label} must be a number`;if("number"==typeof e.min&&n<e.min)return`${e.label} must be ≥ ${e.min}`;if("number"==typeof e.max&&n>e.max)return`${e.label} must be ≤ ${e.max}`}if("string"==typeof t){if(null!=e.minLength&&t.length<e.minLength)return`${e.label} must be at least ${e.minLength} characters`;if(null!=e.maxLength&&t.length>e.maxLength)return`${e.label} must be at most ${e.maxLength} characters`;if(e.pattern)try{if(!new RegExp(e.pattern).test(t))return`${e.label} format is invalid`}catch{}}return null}const iQ=new Set(["text","email","tel","url","date","time"]);function oQ({field:e,value:t,error:n,onChange:r,isDark:a,autoId:i}){const o={width:"100%",boxSizing:"border-box",border:"1px solid "+(a?n?"#f87171":"#374151":n?"#ef4444":"#d1d5db"),background:a?"#111827":"#ffffff",color:a?"#f3f4f6":"#111827",borderRadius:6,padding:"6px 8px",fontSize:12},s={display:"block",fontSize:12,fontWeight:600,marginBottom:4};if("hidden"===e.type)return null;if("checkbox"===e.type)return j("div",{style:{marginBottom:10},children:[j("label",{style:{display:"flex",alignItems:"center",gap:6,fontSize:12},children:[B("input",{id:i,type:"checkbox",checked:Boolean(t),onChange:e=>r(e.target.checked)}),e.label,e.required?" *":""]}),n&&B("div",{style:{fontSize:11,color:"#ef4444",marginTop:2},children:n})]});if("select"===e.type){const a=Array.isArray(e.options)?e.options:[];return j("div",{style:{marginBottom:10},children:[j("label",{htmlFor:i,style:s,children:[e.label,e.required?" *":""]}),j("select",{id:i,style:o,value:t??"",onChange:e=>r(e.target.value),children:[B("option",{value:"",disabled:!0,children:e.placeholder||"Select…"}),a.map(e=>B("option",{value:e.value,children:e.label},e.value))]}),n&&B("div",{style:{fontSize:11,color:"#ef4444",marginTop:2},children:n})]})}if("radio"===e.type){const a=Array.isArray(e.options)?e.options:[];return j("div",{style:{marginBottom:10},role:"radiogroup","aria-labelledby":`${i}-label`,children:[j("div",{id:`${i}-label`,style:s,children:[e.label,e.required?" *":""]}),a.map(e=>j("label",{style:{display:"flex",alignItems:"center",gap:6,fontSize:12,marginBottom:2},children:[B("input",{type:"radio",name:i,checked:t===e.value,onChange:()=>r(e.value)}),e.label]},e.value)),n&&B("div",{style:{fontSize:11,color:"#ef4444",marginTop:2},children:n})]})}if("textarea"===e.type)return j("div",{style:{marginBottom:10},children:[j("label",{htmlFor:i,style:s,children:[e.label,e.required?" *":""]}),B("textarea",{id:i,style:{...o,minHeight:60,resize:"vertical"},value:t??"",placeholder:e.placeholder,onChange:e=>r(e.target.value)}),n&&B("div",{style:{fontSize:11,color:"#ef4444",marginTop:2},children:n})]});const l=iQ.has(e.type)?e.type:"number"===e.type?"number":"text";return j("div",{style:{marginBottom:10},children:[j("label",{htmlFor:i,style:s,children:[e.label,e.required?" *":""]}),B("input",{id:i,type:l,style:o,value:t??"",placeholder:e.placeholder,onChange:e=>r(e.target.value)}),e.helpText&&!n&&B("div",{style:{fontSize:11,color:a?"#9ca3af":"#6b7280",marginTop:2},children:e.helpText}),n&&B("div",{style:{fontSize:11,color:"#ef4444",marginTop:2},children:n})]})}function sQ({spec:e,isDark:n,onButtonClick:r}){const a=Array.isArray(e.fields)?e.fields:[],i=t.useMemo(()=>{const e={};for(const t of a)void 0!==t.defaultValue?e[t.name]=t.defaultValue:"checkbox"===t.type?e[t.name]=!1:e[t.name]="";return e},[]),[o,s]=t.useState(i),[l,c]=t.useState({}),[u,d]=t.useState(!1),p=void 0!==t.useContext(I);if(0===a.length)return null;return u?j("div",{style:XZ(n),children:[e.title&&B("div",{style:{fontWeight:600,marginBottom:8},children:e.title}),a.filter(e=>"hidden"!==e.type).map((e,t)=>j("div",{style:{marginBottom:4,fontSize:12},children:[j("span",{style:{color:n?"#9ca3af":"#6b7280"},children:[e.label,": "]}),B("span",{children:String(o[e.name]??"")})]},t))]}):j("form",{style:XZ(n),onSubmit:t=>{if(t.preventDefault(),u||p||!r)return;const n={};let i=!1;for(const e of a){const t=aQ(e,o[e.name]);n[e.name]=t,t&&(i=!0)}if(c(n),i)return;d(!0);let s="";try{s=Object.entries(o).filter(([,e])=>null!=e&&""!==String(e)).map(([e,t])=>`${function(e){return String(e).replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[_-]/g," ").replace(/\b\w/g,e=>e.toUpperCase())}(e)}: ${t}`).join("\n")||"Form submitted"}catch{s="Form submitted"}r(s,e.title||"Form")},noValidate:!0,children:[e.title&&B("div",{style:{fontWeight:600,marginBottom:4},children:e.title}),e.description&&B("div",{style:{fontSize:12,color:n?"#9ca3af":"#6b7280",marginBottom:8},children:e.description}),a.map((e,t)=>B(oQ,{field:e,value:o[e.name],error:l[e.name],onChange:t=>((e,t)=>{s(n=>({...n,[e]:t})),c(t=>t[e]?{...t,[e]:null}:t)})(e.name,t),isDark:n,autoId:`a2ui-form-${e.name||t}`},e.name||t)),B("button",{type:"submit",disabled:!r||p,style:{border:"1px solid "+(n?"#374151":"#d1d5db"),background:r&&!p?"#2563eb":n?"#1f2937":"#f3f4f6",color:r&&!p?"#ffffff":n?"#6b7280":"#9ca3af",padding:"6px 14px",borderRadius:6,fontSize:12,cursor:r&&!p?"pointer":"default"},children:p?"Submitted":e.submitLabel||"Submit"})]})}function lQ({spec:e,isDark:n,onButtonClick:r}){const a=Array.isArray(e.choices)&&e.choices.length>0?e.choices:[e.yes||{label:"Yes",value:"yes"},e.no||{label:"No",value:"no"}],i=t.useContext(I),[o,s]=t.useState(null),l=t.useRef(!1),c=o??N(a,i),u=null!==c||void 0!==i,d=u?a.map(e=>String(e?.value??e?.label??"")===c?{...e,label:`${String(e.label??e.value??"")} ✓`}:e):a,p=r?(t,n)=>{if(l.current||u)return;l.current=!0,s(String(t));const i=a.find(e=>String(e?.value||e?.label||"")===String(t)),o=C(e,i);o?r(t,n,{toolConfirmation:o}):r(t,n)}:void 0;return j("div",{style:XZ(n),children:[e.title&&B("div",{style:{fontWeight:600,marginBottom:6},children:e.title}),e.body&&B("div",{style:{fontSize:12,lineHeight:1.6,marginBottom:8,whiteSpace:"pre-wrap",wordBreak:"break-word"},children:VZ(String(e.body))}),B(rQ,{spec:{buttons:d},isDark:n,onButtonClick:u?void 0:p,sendValue:!0})]})}const cQ="#2563eb";function uQ(e){return{display:"inline-flex",alignItems:"center",borderRadius:999,padding:"2px 8px",fontSize:10,fontWeight:600,background:e?"rgba(37,99,235,0.20)":"#eff6ff",color:e?"#93c5fd":"#1d4ed8"}}function dQ(e,t){return{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"6px 12px",borderRadius:6,fontSize:12,fontWeight:600,border:"none",background:cQ,color:"#ffffff",cursor:t?"default":"pointer",opacity:t?.5:1}}function pQ(e,t){return{display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"6px 12px",borderRadius:6,fontSize:12,fontWeight:600,border:"1px solid "+(e?"#374151":"#d1d5db"),background:e?"#1f2937":"#ffffff",color:e?"#f3f4f6":"#111827",textDecoration:"none",cursor:t?"default":"pointer",opacity:t?.5:1}}function fQ({score:e,maxScore:t=5,size:n=14,isDark:r}){const a=[];for(let i=0;i<t;i+=1){const t=e>=i+1,o=!t&&e>i&&e<i+1;a.push(j("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:t?"#fbbf24":o?`url(#a2ui-half-star-${i})`:"none",stroke:t||o?"#fbbf24":r?"#4b5563":"#d1d5db",strokeWidth:"1.5",children:[o&&B("defs",{children:j("linearGradient",{id:`a2ui-half-star-${i}`,children:[B("stop",{offset:"50%",stopColor:"#fbbf24"}),B("stop",{offset:"50%",stopColor:"transparent"})]})}),B("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})]},i))}return B("div",{style:{display:"flex",alignItems:"center",gap:1},children:a})}function gQ({spec:e,isDark:t,onButtonClick:n}){const r=Array.isArray(e.items)?e.items:[];if(0===r.length)return null;const a=t?"1px solid #374151":"1px solid #e5e7eb",i=t?"#9ca3af":"#6b7280";return j("div",{style:{margin:"8px 0"},children:[(e.title||e.subtitle)&&j("div",{style:{marginBottom:8},children:[e.title&&B("div",{style:{fontSize:13,fontWeight:700},children:e.title}),e.subtitle&&B("div",{style:{fontSize:11,color:i},children:e.subtitle})]}),B("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(160px, 1fr))",gap:10},children:r.map((e,r)=>j("div",{style:{border:a,borderRadius:10,overflow:"hidden",background:t?"#1f2937":"#ffffff",display:"flex",flexDirection:"column"},children:[YZ(e.image)&&B("img",{src:YZ(e.image),alt:e.name||"",referrerPolicy:"no-referrer",onError:e=>{e.currentTarget.style.display="none"},style:{height:96,width:"100%",objectFit:"cover",background:t?"#111827":"#f9fafb"}}),j("div",{style:{padding:10,display:"flex",flexDirection:"column",gap:6,flex:1},children:[j("div",{style:{display:"flex",justifyContent:"space-between",gap:6,alignItems:"flex-start"},children:[B("div",{style:{fontSize:12,fontWeight:700,minWidth:0},children:e.name}),e.price&&B("div",{style:{fontSize:12,fontWeight:700,color:cQ,flexShrink:0},children:e.price})]}),e.description&&B("div",{style:{fontSize:11,color:i,lineHeight:1.4},children:e.description}),Array.isArray(e.tags)&&e.tags.length>0&&B("div",{style:{display:"flex",flexWrap:"wrap",gap:4},children:e.tags.map((e,n)=>B("span",{style:uQ(t),children:e},n))}),B("div",{style:{flex:1}}),e.actionLabel&&B("button",{type:"button",onClick:n?()=>n(String(e.value??e.actionLabel),String(e.actionLabel)):void 0,disabled:!n,style:{...dQ(0,!n),alignSelf:"flex-start",marginTop:4},children:e.actionLabel})]})]},r))})]})}function mQ({spec:e,isDark:t,onButtonClick:n}){const r=Array.isArray(e.tags)?e.tags:[],a=Array.isArray(e.actions)?e.actions:[],i=t?"#9ca3af":"#6b7280";return j("div",{style:XZ(t),children:[j("div",{style:{display:"flex",gap:10,alignItems:"flex-start"},children:[B("div",{style:{flexShrink:0,height:44,width:44,borderRadius:"50%",overflow:"hidden",background:t?"rgba(37,99,235,0.20)":"#eff6ff",color:t?"#93c5fd":cQ,display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700,fontSize:16},children:YZ(e.avatar)?B("img",{src:YZ(e.avatar),alt:e.name||"",referrerPolicy:"no-referrer",onError:e=>{e.currentTarget.style.display="none"},style:{height:"100%",width:"100%",objectFit:"cover"}}):String(e.name||"").charAt(0).toUpperCase()}),j("div",{style:{minWidth:0,flex:1},children:[B("div",{style:{fontSize:13,fontWeight:700},children:e.name}),e.role&&B("div",{style:{fontSize:11,color:i},children:e.role}),"number"==typeof e.rating&&j("div",{style:{marginTop:4,display:"flex",alignItems:"center",gap:6},children:[B(fQ,{score:e.rating,size:11,isDark:t}),j("span",{style:{fontSize:10,color:i},children:[e.rating.toFixed(1),"number"==typeof e.reviewCount?` (${e.reviewCount})`:""]})]})]})]}),r.length>0&&B("div",{style:{display:"flex",flexWrap:"wrap",gap:4,marginTop:8},children:r.map((e,n)=>B("span",{style:uQ(t),children:e},n))}),e.bio&&B("div",{style:{marginTop:8,fontSize:12,lineHeight:1.5},children:e.bio}),a.length>0&&B("div",{style:{display:"flex",flexWrap:"wrap",gap:6,marginTop:10},children:a.map((e,r)=>{const a="secondary"!==e.variant,i=_(e.url);if(i)return B("a",{href:i,target:"_blank",rel:"noopener noreferrer",style:pQ(t,!1),children:e.label},r);const o=e.value||e.label;return B("button",{type:"button",onClick:n?()=>n(String(o),String(e.label)):void 0,disabled:!n,style:a?dQ(0,!n):pQ(t,!n),children:e.label},r)})})]})}function hQ({spec:e,isDark:t}){const n=Array.isArray(e.steps)?e.steps:[];if(0===n.length)return null;const r=t?"#374151":"#e5e7eb",a=t?"#6b7280":"#9ca3af",i=e=>"done"===e?{background:"#10b981",border:"2px solid #10b981"}:"active"===e?{background:cQ,border:`2px solid ${cQ}`,boxShadow:t?"0 0 0 4px rgba(37,99,235,0.25)":"0 0 0 4px #dbeafe"}:{background:t?"#1f2937":"#ffffff",border:"2px solid "+(t?"#4b5563":"#d1d5db")};return j("div",{style:XZ(t),children:[e.title&&B("div",{style:{fontWeight:700,fontSize:13,marginBottom:10},children:e.title}),B("div",{children:n.map((e,o)=>{const s=e.status||(0===o?"done":"pending"),l=o===n.length-1;return j("div",{style:{display:"flex",gap:10},children:[j("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[B("div",{style:{height:12,width:12,borderRadius:"50%",flexShrink:0,...i(s)}}),!l&&B("div",{style:{width:1,flex:1,background:r,minHeight:16,margin:"2px 0"}})]}),j("div",{style:{minWidth:0,flex:1,paddingBottom:l?0:12},children:[j("div",{style:{display:"flex",justifyContent:"space-between",gap:6},children:[B("span",{style:{fontSize:12,fontWeight:600,color:"pending"===s?a:t?"#f3f4f6":"#111827"},children:e.label}),e.timestamp&&B("span",{style:{fontSize:10,color:a,flexShrink:0},children:e.timestamp})]}),e.description&&B("div",{style:{fontSize:11,color:t?"#9ca3af":"#6b7280",marginTop:2},children:e.description})]})]},o)})})]})}function bQ({spec:e,isDark:t}){const n=e.maxScore||5,r=t?"#9ca3af":"#6b7280";return j("div",{style:XZ(t),children:[e.title&&B("div",{style:{fontSize:11,textTransform:"uppercase",letterSpacing:"0.05em",color:r,marginBottom:4},children:e.title}),j("div",{style:{display:"flex",alignItems:"center",gap:8},children:[B("span",{style:{fontSize:22,fontWeight:700},children:Number(e.score).toFixed(1)}),B(fQ,{score:e.score,maxScore:n,size:15,isDark:t}),"number"==typeof e.reviewCount&&j("span",{style:{fontSize:11,color:r},children:["(",e.reviewCount," review",1===e.reviewCount?"":"s",")"]})]}),e.review&&j("div",{style:{marginTop:8,borderLeft:"2px solid "+(t?"#1e40af":"#bfdbfe"),paddingLeft:10,fontSize:12,fontStyle:"italic",color:t?"#d1d5db":"#374151",lineHeight:1.5},children:['"',e.review,'"',e.author&&j("div",{style:{marginTop:4,fontStyle:"normal",fontSize:10,color:r},children:["- ",e.author]})]})]})}function yQ({spec:e,isDark:t,onButtonClick:n}){const r=Array.isArray(e.plans)?e.plans:[];if(0===r.length)return null;const a=t?"#9ca3af":"#6b7280";return j("div",{style:{margin:"8px 0"},children:[e.title&&B("div",{style:{fontWeight:700,fontSize:13,marginBottom:8},children:e.title}),B("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(150px, 1fr))",gap:10},children:r.map((e,r)=>j("div",{style:{border:e.highlight?`1px solid ${cQ}`:"1px solid "+(t?"#374151":"#e5e7eb"),background:e.highlight?t?"rgba(37,99,235,0.10)":"#eff6ff":t?"#1f2937":"#ffffff",borderRadius:10,padding:12,display:"flex",flexDirection:"column"},children:[e.highlight&&B("span",{style:{alignSelf:"flex-start",marginBottom:6,background:cQ,color:"#ffffff",fontSize:9,fontWeight:700,padding:"2px 7px",borderRadius:999},children:"Recommended"}),B("div",{style:{fontSize:13,fontWeight:700},children:e.name}),e.price&&j("div",{style:{marginTop:2,display:"flex",alignItems:"baseline",gap:3},children:[B("span",{style:{fontSize:18,fontWeight:700},children:e.price}),e.period&&j("span",{style:{fontSize:11,color:a},children:["/",e.period]})]}),Array.isArray(e.features)&&e.features.length>0&&B("ul",{style:{listStyle:"none",padding:0,margin:"8px 0 0",display:"flex",flexDirection:"column",gap:6,flex:1},children:e.features.map((e,n)=>j("li",{style:{display:"flex",gap:6,alignItems:"flex-start",fontSize:11,color:t?"#d1d5db":"#374151"},children:[B("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"#10b981",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round",style:{marginTop:2,flexShrink:0},children:B("polyline",{points:"20 6 9 17 4 12"})}),B("span",{children:e})]},n))}),e.actionLabel&&B("button",{type:"button",onClick:n?()=>n(String(e.value??e.actionLabel),String(e.actionLabel)):void 0,disabled:!n,style:{...e.highlight?dQ(0,!n):pQ(t,!n),marginTop:10},children:e.actionLabel})]},r))})]})}function vQ({spec:e,isDark:t}){const n=Array.isArray(e.images)?e.images:[];if(0===n.length)return null;const r=t?"#9ca3af":"#6b7280";return j("div",{style:{margin:"8px 0"},children:[e.title&&B("div",{style:{fontWeight:700,fontSize:13,marginBottom:8},children:e.title}),B("div",{className:"slim-scrollbar-x",style:{display:"flex",gap:8,overflowX:"auto",paddingBottom:4},children:n.map((e,n)=>{return j("figure",{style:{flexShrink:0,width:140,margin:0,borderRadius:8,overflow:"hidden",border:"1px solid "+(t?"#374151":"#e5e7eb"),background:t?"#111827":"#f9fafb"},children:[(a=e.url,!(void 0!==_(a)&&void 0===YZ(a))&&B("img",{src:YZ(e.url),alt:e.caption||`Image ${n+1}`,referrerPolicy:"no-referrer",onError:e=>{e.currentTarget.style.display="none"},style:{height:96,width:"100%",objectFit:"cover"}})),e.caption&&B("figcaption",{style:{padding:"5px 8px",fontSize:10,color:r,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e.caption})]},n);var a})})]})}const EQ=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],SQ=/(^|[_\W])month/i,wQ=/^(\d{4})-(\d{2})(?:-\d{2})?(?:[T\s]|$)/;function AQ(e,t){if("string"==typeof t&&SQ.test(t)){const t="number"==typeof e?e:Number(e);if(Number.isInteger(t)&&t>=1&&t<=12)return EQ[t-1]}const n=function(e){if("string"!=typeof e)return null;const t=e.match(wQ);if(!t)return null;const n=parseInt(t[1],10),r=parseInt(t[2],10);return!Number.isInteger(r)||r<1||r>12?null:`${EQ[r-1]} '${String(n).slice(-2)}`}(e);return n||FZ(e)}function kQ(e,t){if(null==e)return"";if("number"==typeof e)return $Z(e);if("object"==typeof e)return JSON.stringify(e);const n=String(e).trim(),r=function(e){if("string"!=typeof e)return null;const t=e.trim();if(!UZ.test(t))return null;const n=/[T ]\d{2}:\d{2}/.test(t),r=/(Z|[+-]\d{2}:?\d{2})$/.test(t),a=n&&!r?t.replace(" ","T")+"Z":t,i=new Date(a);if(isNaN(i.getTime()))return null;const o=n&&(0!==i.getUTCHours()||0!==i.getUTCMinutes()||0!==i.getUTCSeconds()),s=MZ[i.getUTCMonth()]+" "+i.getUTCDate()+", "+i.getUTCFullYear();if(!o)return s;const l=i.getUTCHours(),c=l>=12?"PM":"AM";return s+", "+(l%12||12)+":"+String(i.getUTCMinutes()).padStart(2,"0")+" "+c}(n);if(r)return r;const a=qZ(n,t);return null!==a?a:"string"!=typeof(i=e)?String(null==i?"":i):i.length>40?i:zZ.test(i)?FZ(i):i;var i}function xQ({size:e=14}){return j("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[B("polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17"}),B("polyline",{points:"16 7 22 7 22 13"})]})}function TQ({size:e=14}){return j("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[B("path",{d:"M16 16c0-1.7-2-3-2-3"}),B("path",{d:"M8 16c0-1.7 2-3 2-3"}),B("path",{d:"M7 21h10"}),B("path",{d:"M12 3v18"}),B("path",{d:"m17 7 5 9h-10z"}),B("path",{d:"m7 7-5 9h10z"})]})}function OQ({size:e=14}){return j("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[B("circle",{cx:"5",cy:"6",r:"3"}),B("circle",{cx:"19",cy:"18",r:"3"}),B("path",{d:"M12 6h5a2 2 0 0 1 2 2v7"}),B("path",{d:"M12 18H7a2 2 0 0 1-2-2V9"})]})}function _Q({size:e=14}){return B("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:B("polygon",{points:"13 2 3 14 12 14 11 22 21 10 12 10 13 2"})})}function IQ({size:e=14}){return j("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[B("path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"}),B("path",{d:"M9 18h6"}),B("path",{d:"M10 22h4"})]})}function NQ({size:e=14}){return j("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[B("circle",{cx:"12",cy:"12",r:"10"}),B("circle",{cx:"12",cy:"12",r:"6"}),B("circle",{cx:"12",cy:"12",r:"2"})]})}function RQ({type:e,icon:t,title:n,count:r,isDark:a,children:i}){const{accent:o,iconBg:s,iconFg:l}=function(e,t){const n={"revenue-insights":t?["#10b981","#064e3b","#a7f3d0"]:["#10b981","#ecfdf5","#065f46"],"impact-analysis":t?["#f59e0b","#78350f","#fde68a"]:["#f59e0b","#fef3c7","#92400e"],"deviation-analysis":t?["#3b82f6","#1e3a8a","#bfdbfe"]:["#3b82f6","#dbeafe","#1e40af"],"main-drivers":t?["#8b5cf6","#4c1d95","#ddd6fe"]:["#8b5cf6","#ede9fe","#5b21b6"],"key-observations":t?["#059669","#064e3b","#a7f3d0"]:["#059669","#f0fdf4","#14532d"],recommendations:t?["#818cf8","#312e81","#c7d2fe"]:["#4f46e5","#eef2ff","#4f46e5"]},[r,a,i]=n[e]||["#64748b","#f1f5f9","#475569"];return{accent:r,iconBg:a,iconFg:i}}(e,a),c=a?"1px solid #374151":"1px solid #e5e7eb";return j("div",{style:{background:a?"#1f2937":"#ffffff",border:c,borderRadius:12,overflow:"hidden",margin:"8px 0",color:a?"#f3f4f6":"#0f172a"},children:[B("div",{style:{height:4,background:o}}),j("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"12px 14px 10px",borderBottom:c},children:[j("div",{style:{display:"flex",alignItems:"center",gap:8,fontSize:13,fontWeight:700},children:[B("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",width:22,height:22,borderRadius:6,background:s,color:l},children:t}),n]}),null!=r&&B("div",{style:{fontSize:11,color:a?"#9ca3af":"#64748b",fontVariantNumeric:"tabular-nums"},children:r})]}),B("div",{style:{padding:"12px 14px 14px",fontSize:13,lineHeight:1.55},children:i})]})}function CQ({delta:e,isDark:t}){if(!e)return null;const n=function(e){const t=String(e||"").trim();return t?t.startsWith("+")?"up":t.startsWith("-")||t.startsWith("−")?"dn":"flat":"flat"}(e),r=(t?{up:{bg:"#064e3b",fg:"#a7f3d0"},dn:{bg:"#7f1d1d",fg:"#fecaca"},flat:{bg:"#1f2937",fg:"#9ca3af"}}:{up:{bg:"#dcfce7",fg:"#166534"},dn:{bg:"#fee2e2",fg:"#991b1b"},flat:{bg:"#f1f5f9",fg:"#64748b"}})[n];return B("span",{style:{fontSize:9,fontWeight:600,padding:"1px 5px",borderRadius:3,marginLeft:4,background:r.bg,color:r.fg},children:e})}function DQ({items:e,isDark:t}){if(!e||!e.length)return null;const n=t?"1px solid #374151":"1px solid #e5e7eb",r=t?"#9ca3af":"#64748b",a=t?"#f3f4f6":"#0f172a",i=t?"#111827":"#f8fafc";return B("div",{style:{display:"flex",flexWrap:"wrap",gap:6,marginTop:4},children:e.map((e,o)=>j("span",{style:{display:"inline-flex",alignItems:"baseline",gap:4,fontSize:11,lineHeight:1,padding:"5px 8px",borderRadius:6,background:i,border:n},children:[e.label&&j("span",{style:{color:r},children:[e.label,":"]}),B("span",{style:{fontWeight:700,color:a,fontVariantNumeric:"tabular-nums"},children:e.value}),B(CQ,{delta:e.delta,isDark:t})]},o))})}function PQ({spec:e,isDark:t}){const n=Array.isArray(e.totals)?e.totals:[],r=t?"#9ca3af":"#64748b";return j(RQ,{type:"revenue-insights",icon:B(xQ,{}),title:e.title||"Revenue insights",count:null,isDark:t,children:[e.headline&&B("div",{style:{fontSize:18,fontWeight:700,marginBottom:4},children:e.headline}),e.narrative&&B("div",{style:{color:r,marginBottom:n.length?8:0},children:e.narrative}),n.length>0&&B("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(140px, 1fr))",gap:8,marginTop:8},children:n.map((e,n)=>j("div",{style:{background:t?"#111827":"#f8fafc",border:t?"1px solid #374151":"1px solid #e5e7eb",borderRadius:8,padding:"8px 10px"},children:[B("div",{style:{fontSize:11,color:r},children:e.label}),j("div",{style:{fontSize:16,fontWeight:700,fontVariantNumeric:"tabular-nums"},children:[e.value,B(CQ,{delta:e.delta,isDark:t})]})]},n))})]})}function LQ({items:e,sentiment:t,isDark:n}){if(!e||0===e.length)return null;const r="positive"===t?{bg:n?"rgba(16,185,129,0.10)":"#f0fdf4",bd:n?"rgba(52,211,153,0.30)":"#bbf7d0",tx:n?"#a7f3d0":"#14532d",dot:n?"#34d399":"#10b981"}:"negative"===t?{bg:n?"rgba(239,68,68,0.10)":"#fef2f2",bd:n?"rgba(248,113,113,0.30)":"#fecaca",tx:n?"#fecaca":"#7f1d1d",dot:n?"#f87171":"#ef4444"}:{bg:n?"#111827":"#f8fafc",bd:n?"#374151":"#e2e8f0",tx:n?"#f3f4f6":"#0f172a",dot:n?"#9ca3af":"#94a3b8"};return j("div",{children:[B("div",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.4px",color:n?"#9ca3af":"#64748b",margin:"10px 0 6px"},children:"positive"===t?"Positive impact":"negative"===t?"Negative impact":"Neutral"}),e.map((e,t)=>j("div",{style:{background:r.bg,border:`1px solid ${r.bd}`,borderRadius:8,padding:"8px 10px",margin:"4px 0",color:r.tx},children:[j("div",{style:{fontWeight:700,display:"block",marginBottom:2},children:[B("span",{style:{display:"inline-block",width:7,height:7,borderRadius:"50%",background:r.dot,marginRight:6,verticalAlign:"middle"}}),e.title]}),B("div",{children:e.description}),B(DQ,{items:e.metrics,isDark:n})]},t))]})}function MQ({spec:e,isDark:t}){return j(RQ,{type:"impact-analysis",icon:B(TQ,{}),title:e.title||"Impact analysis",count:null,isDark:t,children:[B(LQ,{items:e.positive,sentiment:"positive",isDark:t}),B(LQ,{items:e.negative,sentiment:"negative",isDark:t}),B(LQ,{items:e.neutral,sentiment:"neutral",isDark:t})]})}function FQ({spec:e,isDark:t}){const n=Array.isArray(e.deviations)?e.deviations:[],r=t?"1px solid #374151":"1px solid #e5e7eb",a=t?"#9ca3af":"#64748b",i=t?"#f3f4f6":"#0f172a";return j(RQ,{type:"deviation-analysis",icon:B(OQ,{}),title:e.title||"Deviation analysis",count:null,isDark:t,children:[0===n.length?B("div",{style:{color:a,fontSize:12,padding:"14px 0",textAlign:"center"},children:"No deviations"}):B("div",{style:{overflowX:"auto"},children:j("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:12},children:[B("thead",{children:B("tr",{children:["Segment","Metric","Expected","Actual","Delta"].map(e=>B("th",{style:{padding:"7px 10px",borderBottom:r,textAlign:"left",fontSize:11,color:a,fontWeight:600,textTransform:"uppercase",letterSpacing:"0.3px"},children:e},e))})}),B("tbody",{children:n.map((e,n)=>{return j("tr",{children:[B("td",{style:{padding:"7px 10px",borderBottom:r,color:i},children:e.segment}),B("td",{style:{padding:"7px 10px",borderBottom:r,color:i},children:e.metric}),B("td",{style:{padding:"7px 10px",borderBottom:r,color:i,fontVariantNumeric:"tabular-nums"},children:e.expected}),B("td",{style:{padding:"7px 10px",borderBottom:r,color:i,fontVariantNumeric:"tabular-nums"},children:e.actual}),B("td",{style:{padding:"7px 10px",borderBottom:r,color:(a=e.tone,"up"===a?t?"#34d399":"#15803d":"dn"===a?t?"#f87171":"#b91c1c":t?"#9ca3af":"#64748b"),fontWeight:700,fontVariantNumeric:"tabular-nums"},children:e.delta})]},n);var a})})]})}),e.summary&&B("div",{style:{background:t?"#111827":"#f8fafc",border:r,borderRadius:6,padding:"8px 10px",marginTop:10,fontSize:12,color:i},children:e.summary})]})}function jQ({spec:e,isDark:t}){const n=Array.isArray(e.secondary)?e.secondary:[],r=t?"#9ca3af":"#64748b",a=t?"#9ca3af":"#64748b",i=e.primary;return j(RQ,{type:"main-drivers",icon:B(_Q,{}),title:e.title||"Main drivers",count:null,isDark:t,children:[i&&j("div",{style:{background:t?"rgba(139,92,246,0.10)":"#faf5ff",border:t?"1px solid rgba(167,139,250,0.30)":"1px solid #d8b4fe",borderRadius:8,padding:"10px 12px",marginBottom:n.length?10:0},children:[B("div",{style:{fontSize:10,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.4px",color:t?"#c4b5fd":"#7c3aed",marginBottom:4},children:"Primary driver"}),B("div",{style:{fontWeight:600},children:i.factor}),i.evidence&&B("div",{style:{color:r,fontSize:12,marginTop:4},children:i.evidence}),i.metric&&j("span",{style:{display:"inline-block",marginTop:6,background:t?"rgba(139,92,246,0.20)":"#ede9fe",color:t?"#ddd6fe":"#5b21b6",fontSize:11,fontWeight:600,padding:"2px 7px",borderRadius:6},children:[i.metric.label,": ",i.metric.value]})]}),n.length>0&&j(U,{children:[B("div",{style:{fontSize:11,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.4px",color:a,margin:"10px 0 6px"},children:"Secondary drivers"}),B("ul",{style:{paddingLeft:20,margin:0},children:n.map((e,t)=>j("li",{style:{marginBottom:6},children:[B("div",{style:{fontWeight:600},children:e.factor}),e.evidence&&B("div",{style:{color:r,fontSize:12,marginTop:2},children:e.evidence})]},t))})]})]})}function BQ({rankBgFg:e,rank:t,chips:n,text:r,narrative:a,metrics:i,impactPill:o,isDark:s}){const l=s?"#9ca3af":"#64748b";return j("div",{style:{display:"flex",gap:10,alignItems:"flex-start",padding:"10px 0",borderBottom:s?"1px dashed #374151":"1px dashed #e5e7eb"},children:[B("div",{style:{flex:"0 0 22px",height:22,width:22,borderRadius:"50%",fontSize:11,fontWeight:700,display:"flex",alignItems:"center",justifyContent:"center",fontVariantNumeric:"tabular-nums",background:e.bg,color:e.fg},children:t}),j("div",{style:{flex:"1 1 auto",minWidth:0,display:"flex",flexDirection:"column",gap:5},children:[n,r&&B("div",{style:{fontSize:13,fontWeight:600},children:r}),a&&B("div",{style:{fontSize:12,color:l},children:a}),B(DQ,{items:i,isDark:s}),o]})]})}function UQ({spec:e,isDark:t}){const n=Array.isArray(e.items)?[...e.items].sort((e,t)=>(e.rank||0)-(t.rank||0)):[],r=t?{bg:"#064e3b",fg:"#a7f3d0"}:{bg:"#f0fdf4",fg:"#14532d"};return B(RQ,{type:"key-observations",icon:B(IQ,{}),title:e.title||"Key observations",count:n.length?`${n.length} item${1===n.length?"":"s"}`:null,isDark:t,children:0===n.length?B("div",{style:{color:t?"#9ca3af":"#64748b",fontSize:12,padding:"14px 0",textAlign:"center"},children:"No observations available."}):n.map((e,n)=>{const a=[];return e.category&&a.push(B("span",{style:$Q("cat",t),children:e.category},"cat")),e.priority&&a.push(B("span",{style:$Q("prio-"+e.priority,t),children:e.priority},"prio")),B(BQ,{rankBgFg:r,rank:e.rank||n+1,chips:a.length?B("div",{style:{display:"flex",flexWrap:"wrap",gap:5},children:a}):null,text:e.text,narrative:e.narrative,metrics:e.metrics,impactPill:null,isDark:t},n)})})}function zQ({spec:e,isDark:t}){const n=Array.isArray(e.items)?[...e.items].sort((e,t)=>(e.rank||0)-(t.rank||0)):[],r=t?{bg:"#312e81",fg:"#c7d2fe"}:{bg:"#4f46e5",fg:"#ffffff"};return B(RQ,{type:"recommendations",icon:B(NQ,{}),title:e.title||"Recommendations",count:n.length?`${n.length} item${1===n.length?"":"s"}`:null,isDark:t,children:0===n.length?B("div",{style:{color:t?"#9ca3af":"#64748b",fontSize:12,padding:"14px 0",textAlign:"center"},children:"No recommendations available."}):n.map((e,n)=>{const a=(e.affected_segments||[]).map((e,n)=>B("span",{style:$Q("seg",t),children:e},n)),i=e.expected_impact?j("span",{style:{alignSelf:"flex-start",display:"inline-flex",alignItems:"center",gap:4,marginTop:2,background:t?"rgba(16,185,129,0.18)":"#dcfce7",color:t?"#a7f3d0":"#166534",fontSize:10,fontWeight:700,padding:"4px 9px",borderRadius:999,border:t?"1px solid rgba(52,211,153,0.30)":"1px solid #bbf7d0"},children:["↑ ",e.expected_impact]}):null;return B(BQ,{rankBgFg:r,rank:e.rank||n+1,chips:a.length?B("div",{style:{display:"flex",flexWrap:"wrap",gap:5},children:a}):null,text:e.action,narrative:e.rationale,metrics:e.metrics,impactPill:i,isDark:t},n)})})}function $Q(e,t){const n={display:"inline-flex",alignItems:"center",fontSize:10,fontWeight:600,lineHeight:1,padding:"3px 7px",borderRadius:999,border:t?"1px solid #374151":"1px solid #e5e7eb",background:t?"#111827":"#f8fafc",color:t?"#9ca3af":"#64748b"};return"cat"===e?{...n,background:t?"rgba(99,102,241,0.20)":"#eef2ff",color:t?"#c7d2fe":"#4f46e5",border:"1px solid transparent"}:"seg"===e?{...n,background:t?"#1f2937":"#f1f5f9",color:t?"#f3f4f6":"#0f172a"}:"prio-high"===e?{...n,background:t?"rgba(239,68,68,0.18)":"#fef2f2",color:t?"#fecaca":"#7f1d1d",border:t?"1px solid rgba(248,113,113,0.30)":"1px solid #fecaca"}:"prio-medium"===e?{...n,background:t?"rgba(99,102,241,0.20)":"#eef2ff",color:t?"#c7d2fe":"#4f46e5",border:"1px solid transparent"}:n}const GQ=/\[([\d०-९][\d०-९\s,]*)\](?!\()/g;function qQ(e){const t=[],n=function(e){return e.replace(/[०-९]/g,function(e){return String(e.charCodeAt(0)-2406)})}(e).split(",");for(let e=0;e<n.length;e+=1){const r=n[e].trim();if(/^\d+$/.test(r)){const e=parseInt(r,10);e>=1&&t.push(e)}}return t}function HQ(e){const t=new Set,n=[];for(let r=0;r<e.length;r+=1){const a=e[r];t.has(a)||(t.add(a),n.push(a))}return n}const VQ=/(\s*)((?:\[[\d०-९][\d०-९\s,]*\](?!\()\s*)+)([.!?])/g;function WQ(e){if(!e)return[];e=function(e){return e.replace(VQ,function(e,t,n,r){return r+" "+n.replace(/\s+$/,"")})}(e);const t=[];let n;for(GQ.lastIndex=0;null!==(n=GQ.exec(e));){const e=qQ(n[1]);0!==e.length&&t.push({start:n.index,end:GQ.lastIndex,indices:e})}if(0===t.length)return[{type:"text",value:e}];const r=[];for(let n=0;n<t.length;n+=1){const a=t[n],i=r.length?r[r.length-1]:null;if(i&&/^\s*$/.test(e.slice(i.end,a.start))){i.end=a.end;for(let e=0;e<a.indices.length;e+=1)i.indices.push(a.indices[e])}else r.push({start:a.start,end:a.end,indices:a.indices.slice()})}const a=[];let i=0;for(let t=0;t<r.length;t+=1){const n=r[t];n.start>i&&a.push({type:"text",value:e.slice(i,n.start)}),a.push({type:"cite",indices:HQ(n.indices)}),i=n.end}return i<e.length&&a.push({type:"text",value:e.slice(i)}),a}function YQ(e,t,n){if(function(e){return"element"===e.type&&("code"===e.tagName||"pre"===e.tagName)}(n))return t+1;const r=WQ(e.value);if(1===r.length&&"text"===r[0].type)return t+1;const a=r.map(function(e,t){if("text"===e.type){return{type:"text",value:t+1<r.length&&"cite"===r[t+1].type?e.value.replace(/[ \t]+$/," "):e.value}}return{type:"element",tagName:"span",properties:{dataEshalCitation:(n=e.indices,n.join(","))},children:[]};var n});return n.children.splice.apply(n.children,[t,1].concat(a)),t+a.length}function KQ(e){const t=e.children;if(!Array.isArray(t))return;let n=0;for(;n<t.length;){const r=t[n];r&&"text"===r.type?n=YQ(r,n,e):(r&&Array.isArray(r.children)&&KQ(r),n+=1)}}function XQ(){return function(e){e&&KQ(e)}}function ZQ(e,t){for(let n=0;n<t.length;n+=1){const r=e[t[n]];if(null!=r)return r}}function QQ(e,t){for(let n=0;n<t.length;n+=1){const r=e[t[n]];if(r)return r}}function JQ(e,t){return function(e){if(!e)return"";try{return decodeURIComponent(String(e))}catch(t){return String(e)}}(e.source_name)||e.url||e.source_type||"Source "+t}const eJ=["source_id"],tJ=["source_id","sourceid"];function nJ(e){return function(e,t){if(!e)return!1;const n=e.url;return"file"===e.source_type||"string"==typeof n&&-1!==n.indexOf("/api/v1/sharepoint/file/")||!!QQ(e,t)&&!n}(e,eJ)}function rJ(e){return n=tJ,(t=e).url||QQ(t,n)||t.source_name||"";var t,n}function aJ({indices:e}){const t=g(D),n=o(null),r=o(null),[a,i]=l(!1),[s,c]=l(null),p=d(()=>t&&Array.isArray(t.sources)?function(e,t,n){const r=[];if(!Array.isArray(e))return r;const a=["url"].concat(n,["source_name"]),i=new Set;for(let n=0;n<t.length;n+=1){const o=t[n];let s;for(let t=0;t<e.length;t+=1){const n=e[t];if(n&&Array.isArray(n.citation_indices)&&-1!==n.citation_indices.indexOf(o)){s=n;break}}if(void 0===s&&(s=e[o-1]),!s)continue;const l=ZQ(s,a),c=String(void 0===l?"":l).toLowerCase();c&&i.has(c)||(c&&i.add(c),r.push({src:s,index:o}))}return r}(t.sources,e,tJ):[],[t,e]);u(()=>{if(!a)return;const e=e=>{const t="function"==typeof e.composedPath?e.composedPath():[],a=n.current&&t.includes(n.current),o=r.current&&t.includes(r.current);a||o||i(!1)},t=e=>{if("Escape"!==e.key){if("Tab"===e.key&&r.current){const t=r.current.querySelectorAll("a[href], button:not([disabled])");if(0===t.length)return;const n=t[0],a=t[t.length-1],i="function"==typeof e.composedPath?e.composedPath()[0]:e.target;e.shiftKey&&i===n?(e.preventDefault(),a.focus()):e.shiftKey||i!==a||(e.preventDefault(),n.focus())}}else i(!1)};return document.addEventListener("mousedown",e),document.addEventListener("keydown",t),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}},[a]);const f=o(!1);if(u(()=>{if(a){f.current=!0;const e=r.current?.querySelector("a[href], button:not([disabled])");e?.focus()}else f.current&&(f.current=!1,n.current?.focus())},[a]),!t)return null;if(Array.isArray(t.sources)&&0===t.sources.length)return null;if(t.sourcesPreliminary)return null;if(0===p.length)return null;const m=p[0],h=p.length-1,b=JQ(m.src,m.index),y=nJ(m.src)&&P(m.src),v=t.downloadingKey&&t.downloadingKey===rJ(m.src),E=e=>{"function"==typeof t.onSourceActivate&&t.onSourceActivate(e)},S=e=>{e.preventDefault(),e.stopPropagation(),1!==p.length?a?i(!1):(()=>{const e=n.current;if(!e)return;const t=e.getBoundingClientRect();c({top:t.bottom+window.scrollY+4,left:t.left+window.scrollX}),i(!0)})():E(m.src)},w=(e,n)=>"function"==typeof t.t?t.t(e):n,A=b+(h?` (${w("moreSources","+{count} more").replace("{count}",String(h))})`:"");return j(U,{children:[j("span",{ref:n,role:"button",tabIndex:0,dir:"ltr",title:A,"aria-label":A,"aria-haspopup":p.length>1?"dialog":void 0,"aria-expanded":p.length>1?a:void 0,onClick:S,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),S(e))},style:{display:"inline-flex",alignItems:"center",gap:3,height:20,padding:"0 5px 0 6px",marginInlineStart:2,marginInlineEnd:7,fontSize:11,lineHeight:1,borderRadius:5,background:t?.textColor?"rgba(128,128,128,0.08)":"rgba(59, 130, 246, 0.10)",color:t?.textColor||"rgb(37, 99, 235)",border:t?.textColor?`0.5px solid ${t.textColor}`:"0.5px solid rgba(59, 130, 246, 0.35)",cursor:"pointer",userSelect:"none",maxWidth:180,verticalAlign:"1px",textDecoration:"none",fontWeight:500,whiteSpace:"nowrap",unicodeBidi:"isolate"},children:[B("span",{style:{display:"inline-flex",flexShrink:0},children:B(y?L:H,{size:12,strokeWidth:2,"aria-hidden":!0})}),B("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:110},children:b}),h>0&&j("span",{style:{background:t?.textColor?"transparent":"rgb(37, 99, 235)",color:t?.textColor||"white",border:t?.textColor?`1px solid ${t.textColor}`:"none",borderRadius:3,padding:"1px 4px",fontSize:9,lineHeight:1,fontWeight:600,marginLeft:1},children:["+",h]}),1===p.length&&B("span",{style:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0,paddingLeft:3,borderLeft:t?.textColor?`0.5px solid ${t.textColor}`:"0.5px solid rgba(59, 130, 246, 0.35)",marginLeft:2},children:v?B(M,{size:12,strokeWidth:2,className:"animate-spin"}):B(y?G:q,{size:12,strokeWidth:2})})]}),a&&s&&"undefined"!=typeof document&&z(j("div",{ref:r,role:"dialog",dir:"ltr","aria-label":w("sourcesCited","{count} sources cited").replace("{count}",String(p.length)),style:{position:"absolute",top:s.top,left:s.left,zIndex:2147483647,background:"#fff",color:"#111",border:"0.5px solid rgba(0, 0, 0, 0.12)",borderRadius:8,boxShadow:"0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0,0,0,0.06)",padding:6,minWidth:240,maxWidth:360,fontSize:12},onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),children:[j("div",{style:{fontSize:10,textTransform:"uppercase",opacity:.55,letterSpacing:"0.06em",padding:"4px 6px 6px"},children:[p.length," source",1===p.length?"":"s"]}),p.map(({src:e,index:n})=>{const r=JQ(e,n),a=nJ(e)&&P(e),i=t.downloadingKey&&t.downloadingKey===rJ(e);return j("button",{type:"button",onClick:()=>E(e),disabled:!!i,title:r,style:{display:"flex",alignItems:"center",gap:8,width:"100%",padding:"6px 8px",border:0,background:"transparent",color:"inherit",cursor:i?"default":"pointer",textAlign:"left",borderRadius:4,font:"inherit"},onMouseEnter:e=>{e.currentTarget.style.background="rgba(0,0,0,0.04)"},onMouseLeave:e=>{e.currentTarget.style.background="transparent"},children:[B("span",{style:{display:"inline-flex",flexShrink:0,opacity:.8},children:B(a?L:H,{size:14,strokeWidth:2,"aria-hidden":!0})}),B("span",{style:{flex:1,minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:r}),B("span",{style:{display:"inline-flex",flexShrink:0,opacity:.7},children:i?B(M,{size:14,strokeWidth:2,className:"animate-spin"}):B(a?G:q,{size:14,strokeWidth:2})})]},`${n}-${rJ(e)||n}`)})]}),document.body)]})}const iJ=new Set(["eshal-ui","eshal-chart","chart"]);function oJ(e,t){if(!t)return e;const n=/^```(?:eshal-ui|eshal-chart|chart)\b/m.exec(e);if(n){const t=e.slice(n.index+n[0].length).split("\n").some(e=>"```"===e.trim());if(!t)return e.slice(0,n.index).trimEnd()}const r=e.split("\n");let a=r.length-1;for(;a>0&&""===r[a].trim();)a--;if(!r[a].trim().startsWith("|"))return e;let i=a;for(;i>0&&(r[i-1].trim().startsWith("|")||""===r[i-1].trim());)i--;const o=r.slice(i,a+1).some(e=>/^\|[\s\-:|]+\|/.test(e.trim()));return o?e:r.slice(0,i).join("\n")}function sJ(e){return e.replace(/(\d+\.\d{2})0+(?!\d)/g,"$1")}function lJ({content:e,isStreaming:n,isDark:r=!1,isRtl:a=!1,textColor:i,fontFamily:o,fontSize:s,onButtonClick:l,provideCitations:c=!0}){return B(Ba,{className:"max-w-none [&>*:last-child]:!mb-0 [&>*:first-child]:!mt-0",remarkPlugins:[Po,Mo,Fo],rehypePlugins:c?[XQ,F]:[F],components:{span({node:e,children:t,...n}){const r=n["data-eshal-citation"]??n.dataEshalCitation;if("string"==typeof r&&r.length>0){const e=function(e){if(!e)return[];const t=[],n=String(e).split(",");for(let e=0;e<n.length;e+=1){const r=parseInt(n[e].trim(),10);Number.isFinite(r)&&r>=1&&t.push(r)}return HQ(t)}(r);if(e.length>0)return B(aJ,{indices:e})}return B("span",{...n,children:t})},pre:({children:e,...n})=>function(e){return t.Children.toArray(e).some(e=>{if(!t.isValidElement(e))return!1;const n=e.props?.className;if("string"!=typeof n)return!1;const r=n.match(/language-([\w-]+)/);return!!r&&iJ.has(r[1])})}(e)?B(U,{children:e}):B("pre",{...n,children:e}),a:({node:e,children:t,...n})=>B("a",{className:"underline hover:opacity-80",dir:"ltr",style:{color:i||(r?"#f3f4f6":"#1A1A1A"),unicodeBidi:"isolate"},target:"_blank",rel:"noopener noreferrer",...n,children:t}),p:({node:e,children:t,...n})=>B("p",{className:"leading-relaxed [&:first-child]:!mt-0",style:{color:i||(r?"#f3f4f6":"#1A1A1A"),fontFamily:o||"Inter",fontSize:s||"14px",margin:0,marginTop:0,marginBottom:"li"===e?.parent?.tagName?"0.125rem":"0.85rem",lineHeight:"1.6",padding:0},...n,children:t}),ul:({node:e,children:t,...n})=>B("ul",{className:"list-disc [&:first-child]:!mt-0",style:{marginTop:0,marginBottom:"0.6rem",paddingInlineStart:"1.2rem"},...n,children:t}),ol({node:e,children:n,start:r=1,...a}){const i=Number.isFinite(Number(r))?Number(r):1;let o=0;return B("ol",{className:"[&:first-child]:!mt-0",style:{listStyle:"none",marginTop:0,marginBottom:"0.6rem",paddingInlineStart:0},...a,children:t.Children.map(n,e=>{if(!t.isValidElement(e))return e;const n=i+o;return o+=1,t.cloneElement(e,{"data-ol-index":n})})})},li({node:e,children:t,"data-ol-index":n,...a}){const l={color:i||(r?"#f3f4f6":"#1A1A1A"),fontFamily:o||"Inter",fontSize:s||"14px",marginBottom:"0.3rem",lineHeight:"1.5"};return null!=n?j("li",{style:{...l,listStyle:"none",display:"flex",alignItems:"baseline",gap:"0.4em"},...a,children:[j("span",{style:{flexShrink:0,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif',fontVariantNumeric:"tabular-nums",minWidth:"1.5em",color:"inherit"},"aria-hidden":"false",children:[n,"."]}),B("span",{style:{flex:"1 1 auto",minWidth:0},children:t})]}):B("li",{className:"",style:l,...a,children:t})},h1:({node:e,children:t,...n})=>B("h1",{className:"text-xl font-bold [&:first-child]:!mt-0",style:{color:i||(r?"#f3f4f6":"#1A1A1A"),fontFamily:o||"Inter",marginTop:"0.7rem",marginBottom:"0.45rem",lineHeight:"1.35"},...n,children:t}),h2:({node:e,children:t,...n})=>B("h2",{className:"text-lg font-semibold [&:first-child]:!mt-0",style:{color:i||(r?"#f3f4f6":"#1A1A1A"),fontFamily:o||"Inter",marginTop:"0.65rem",marginBottom:"0.4rem",lineHeight:"1.35"},...n,children:t}),h3:({node:e,children:t,...n})=>B("h3",{className:"text-base font-semibold [&:first-child]:!mt-0",style:{color:i||(r?"#f3f4f6":"#1A1A1A"),fontFamily:o||"Inter",marginTop:"0.6rem",marginBottom:"0.35rem",lineHeight:"1.35"},...n,children:t}),blockquote:({node:e,children:t,...n})=>B("blockquote",{className:"border-l-4 pl-4 italic "+(r?"border-gray-600 text-gray-300":"border-gray-300 text-gray-700"),...n,children:t}),table({node:e,children:t,...n}){if(e?.children?.length>0){function a(e){return e?"string"==typeof e.value?e.value:Array.isArray(e.children)?e.children.map(a).join(""):"":""}const i=e.children.find(e=>"thead"===e.tagName),o=e.children.find(e=>"tbody"===e.tagName),s=i?.children?.find(e=>"tr"===e.tagName),l=(s?.children||[]).filter(e=>"th"===e.tagName).map(e=>a(e)),c=(o?.children||[]).filter(e=>"tr"===e.tagName),u=c.map(e=>(e.children||[]).filter(e=>"td"===e.tagName).map(e=>a(e)));if(l.length>0&&u.length>0){const d=u.map(e=>Object.fromEntries(l.map((t,n)=>[t,e[n]??""])));return B(KZ,{spec:{type:"table",columns:l,data:d},isDark:r})}}return B("div",{className:"overflow-x-auto my-3 rounded-lg border "+(r?"border-gray-700 bg-gray-900":"border-gray-200 bg-white"),children:B("table",{className:"min-w-full border-collapse "+(r?"text-gray-100":"text-gray-900"),...n,children:t})})},th:({node:e,children:t,...n})=>B("th",{className:"border px-3 py-2 text-left font-medium "+(r?"border-gray-700 bg-gray-800/50 text-gray-300":"border-gray-200 bg-gray-50 text-gray-700"),...n,children:t}),td:({node:e,children:t,...n})=>B("td",{className:"border px-3 py-2 "+(r?"border-gray-700":"border-gray-200"),...n,children:t}),code({className:e,children:t,...n}){const a=/language-([\w-]+)/.exec(e||""),i=a?a[1]:null;if(i&&iJ.has(i)){const e=function(e){return"string"==typeof e?e:Array.isArray(e)?e.map(e=>"string"==typeof e?e:"").join(""):""}(t).trim();try{const t=JSON.parse(e);if(t&&"object"==typeof t)return B(KZ,{spec:t,isDark:r,onButtonClick:l})}catch(e){return null}return null}return a?B(TE,{style:OE,language:i,PreTag:"div",wrapLines:!0,...n,children:String(t).replace(/\n$/,"")}):B("code",{className:e,...n,children:t})}},children:sJ(oJ(e,n))})}export{lJ as default,sJ as sanitizeExcessDecimalPrecision,oJ as sanitizeStreamingContent};
|